/* ============================================================
   CAUSE II — Public Website Theme  (v2)
   ------------------------------------------------------------
   Single stylesheet for resources/views/main/v2/*.
   Section 1  : design-system tokens  (verbatim from
                .tmp/cause2si.site-v.02/_ds/.../tokens/*.css)
   Section 2  : base element styles
   Section 3  : Button component (ported from the DS bundle)
   Section 4  : site layout + sections
   Section 5  : responsive
   Section 6  : motion / reduced-motion

   The v1 theme (public/css/main/main.css) is untouched and is
   still used by resources/views/main/index.blade.php.
   ============================================================ */

/* ============================================================
   1. TOKENS
   ============================================================ */

/* Plus Jakarta Sans is requested from a <link> in main/v2/layouts/app.blade.php
   rather than an @import here: an @import cannot start downloading until this
   stylesheet itself has arrived, which serialises two render-blocking requests.
   The stack below degrades to the system UI font if that link is ever dropped. */

:root {
  /* ---- Brand core ---- */
  --c-yellow:        #F9EC31;
  --c-yellow-deep:   #EAD400;
  --c-ink:           #0E342E;
  --c-ink-soft:      #16463C;
  --c-green:         #37B34A;
  --c-green-deep:    #2A8C3A;
  --c-green-fern:    #267757;
  --c-gold:          #C4B02D;
  --c-blue:          #1C6E8C;
  --c-teal-deep:     #0C3F44;

  /* ---- The four pillars ---- */
  --pillar-township:     #D77F27;
  --pillar-township-ink: #9A560F;
  --pillar-employment:     #8D5722;
  --pillar-employment-ink: #6A3F15;
  --pillar-land:         #C1C66C;
  --pillar-land-ink:     #6E7330;
  --pillar-community:     #006962;
  --pillar-community-ink: #024B45;

  /* ---- Brand gradients ---- */
  --grad-people:   linear-gradient(90deg, #0C3F44 0%, #1C6E8C 22%, #267757 46%, #6E8A3C 70%, #C9A227 88%, #E2CE6E 100%);
  --grad-people-v: linear-gradient(180deg, #0C3F44 0%, #1C6E8C 22%, #267757 46%, #6E8A3C 70%, #C9A227 88%, #E2CE6E 100%);
  --grad-ink:      linear-gradient(135deg, #0E342E 0%, #16463C 100%);

  /* ---- Warm neutral ramp ---- */
  --n-0:   #FFFFFF;
  --n-50:  #FAFAF4;
  --n-100: #F2F2E9;
  --n-200: #E5E5D9;
  --n-300: #D2D3C5;
  --n-400: #ADAFA0;
  --n-500: #84867A;
  --n-600: #5E6056;
  --n-700: #41433B;
  --n-800: #2A2C26;
  --n-900: #181F1B;

  /* ---- Status ---- */
  --status-success:    #2E9E4F;
  --status-success-bg: #E6F4E9;
  --status-warning:    #D77F27;
  --status-warning-bg: #FAEEDF;
  --status-info:       #1C6E8C;
  --status-info-bg:    #E2EFF4;

  /* ---- Semantic surfaces ---- */
  --surface-page:     var(--n-50);
  --surface-card:     var(--n-0);
  --surface-sunken:   var(--n-100);
  --surface-ink:      var(--c-ink);
  --surface-ink-soft: var(--c-ink-soft);

  /* ---- Semantic text ---- */
  --text-strong:        var(--c-ink);
  --text-body:          #28382F;
  --text-muted:         #5E6056;
  /* The design system ships #84867A here, which is only ~3.5:1 on the page
     background. Both places it is used carry 11px meta text, so it is darkened
     to clear 4.5:1 while keeping the same hue and its role in the hierarchy. */
  --text-faint:         #6B6D61;
  --text-on-dark:       #FFFFFF;
  --text-on-dark-muted: rgba(255,255,255,.74);
  --text-link:          var(--c-green-deep);

  /* ---- Borders ---- */
  --border:         var(--n-200);
  --border-strong:  var(--n-300);
  --border-on-dark: rgba(255,255,255,.16);
  --divider:        var(--n-200);

  /* ---- Interaction ---- */
  --focus-ring:  rgba(55,179,74,.45);
  --accent:      var(--c-green);
  --accent-deep: var(--c-green-deep);

  /* ---- Type ---- */
  --font-display: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body:    'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;

  --weight-regular:  400;
  --weight-medium:   500;
  --weight-semibold: 600;
  --weight-bold:     700;
  --weight-extra:    800;

  --text-2xs:  0.6875rem;
  --text-xs:   0.75rem;
  --text-sm:   0.8125rem;
  --text-base: 0.9375rem;
  --text-md:   1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.375rem;
  --text-2xl:  1.75rem;
  --text-3xl:  2.25rem;
  --text-4xl:  3rem;
  --text-5xl:  3.75rem;
  --text-6xl:  4.75rem;

  --leading-none:    1;
  --leading-tight:   1.08;
  --leading-snug:    1.2;
  --leading-normal:  1.5;
  --leading-relaxed: 1.65;

  --tracking-tight:  -0.02em;
  --tracking-snug:   -0.01em;
  --tracking-normal: 0;
  --tracking-wide:   0.04em;
  --tracking-caps:   0.10em;

  /* ---- Spacing ---- */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  --container-max:    1200px;
  --container-narrow: 760px;
  --gutter:           var(--space-6);

  /* ---- Radius ---- */
  --radius-xs:     4px;
  --radius-sm:     8px;
  --radius-md:     12px;
  --radius-lg:     16px;
  --radius-xl:     24px;
  --radius-2xl:    32px;
  --radius-pill:   999px;
  --radius-circle: 50%;
  --radius-button: var(--radius-pill);
  --radius-card:   var(--radius-lg);

  /* ---- Elevation (ink-tinted, never neutral black) ---- */
  --shadow-xs:    0 1px 2px rgba(14,52,46,.06);
  --shadow-sm:    0 1px 3px rgba(14,52,46,.08), 0 1px 2px rgba(14,52,46,.05);
  --shadow-md:    0 4px 14px rgba(14,52,46,.10), 0 1px 3px rgba(14,52,46,.06);
  --shadow-lg:    0 14px 30px rgba(14,52,46,.13), 0 4px 8px rgba(14,52,46,.07);
  --shadow-xl:    0 26px 50px rgba(14,52,46,.18), 0 8px 16px rgba(14,52,46,.08);
  --shadow-focus: 0 0 0 3px var(--focus-ring);

  /* ---- Motion ---- */
  --ease-standard: cubic-bezier(.2, 0, 0, 1);
  --ease-out:      cubic-bezier(.16, 1, .3, 1);
  --ease-in-out:   cubic-bezier(.65, 0, .35, 1);
  --dur-instant: 80ms;
  --dur-fast:    140ms;
  --dur-base:    220ms;
  --dur-slow:    340ms;
  --dur-slower:  560ms;
  --transition-colors: color var(--dur-fast) var(--ease-standard),
                       background-color var(--dur-fast) var(--ease-standard),
                       border-color var(--dur-fast) var(--ease-standard);

  /* ---- Layout constants used by JS + CSS ---- */
  --header-h: 70px;
}

/* ============================================================
   2. BASE
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* keep anchored sections clear of the sticky header */
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body.cii-body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text-body);
  background: var(--surface-page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.cii-body h1, .cii-body h2, .cii-body h3,
.cii-body h4, .cii-body h5, .cii-body h6 {
  margin: 0;
  font-family: var(--font-display);
  color: var(--text-strong);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  font-weight: var(--weight-extra);
  text-wrap: balance;
}

.cii-body p { margin: 0; text-wrap: pretty; }

.cii-body a {
  color: var(--text-link);
  text-decoration: none;
  transition: var(--transition-colors);
}
.cii-body a:hover { color: var(--c-green); }

.cii-body img { max-width: 100%; display: block; }

.cii-body ::selection { background: var(--c-yellow); color: var(--c-ink); }

/* An outline — not a box-shadow — so the focus ring follows each element's own
   border-radius instead of forcing a 4px corner onto pill buttons and 18px cards. */
.cii-body :focus-visible {
  outline: 2px solid var(--c-green-deep);
  outline-offset: 3px;
}
/* Deep green on ink is far below contrast minimums; brighten it on dark sections. */
.cii-on-dark :focus-visible { outline-color: var(--c-yellow); }

/* Screen-reader-only helper + skip link */
.cii-sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.cii-body a.cii-skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--c-yellow); color: var(--c-ink);
  padding: 10px 18px; border-radius: 0 0 var(--radius-md) 0;
  font-weight: var(--weight-bold);
}
.cii-body a.cii-skip:focus { left: 0; }

/* ============================================================
   3. BUTTON  (ported from CAUSEIIDesignSystem_59ba9d.Button)
   ============================================================ */

.cii-btn {
  --_bg: var(--c-ink); --_fg: #fff; --_bd: transparent; --_bgh: #16463C;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--font-display); font-weight: var(--weight-bold);
  line-height: 1; white-space: nowrap; cursor: pointer; text-decoration: none;
  border: 1.5px solid var(--_bd); background: var(--_bg); color: var(--_fg);
  border-radius: var(--radius-button); letter-spacing: var(--tracking-snug);
  transition: background-color var(--dur-fast) var(--ease-standard),
              color var(--dur-fast) var(--ease-standard),
              border-color var(--dur-fast) var(--ease-standard),
              transform var(--dur-fast) var(--ease-standard),
              box-shadow var(--dur-fast) var(--ease-standard);
}
/* `a.cii-btn` (not `.cii-btn`) so buttons rendered as links outrank the generic
   `.cii-body a` colour rule above. */
.cii-btn,
a.cii-btn        { color: var(--_fg); }
.cii-btn:hover,
a.cii-btn:hover  { background: var(--_bgh); color: var(--_fg); }
.cii-btn:active  { transform: translateY(1px) scale(.99); }
.cii-btn[disabled], .cii-btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; pointer-events: none; }

.cii-btn--sm { font-size: var(--text-sm);   padding: .5rem .9rem; }
.cii-btn--md { font-size: var(--text-base); padding: .65rem 1.25rem; }
.cii-btn--lg { font-size: var(--text-md);   padding: .85rem 1.7rem; }
.cii-btn--block { display: flex; width: 100%; }

.cii-btn--primary   { --_bg: var(--c-ink);    --_fg: #fff;         --_bgh: #16463C; }
.cii-btn--accent    { --_bg: var(--c-green);  --_fg: #fff;         --_bgh: var(--c-green-deep); }
.cii-btn--brand     { --_bg: var(--c-yellow); --_fg: var(--c-ink); --_bgh: var(--c-yellow-deep); }
.cii-btn--secondary { --_bg: #fff;            --_fg: var(--c-ink); --_bd: var(--border-strong); --_bgh: var(--n-100); }
.cii-btn--ghost     { --_bg: transparent;     --_fg: var(--c-ink); --_bgh: var(--n-100); }

/* On the ink hero / footer the secondary button inverts */
.cii-on-dark .cii-btn--secondary {
  --_bg: rgba(255,255,255,.10); --_fg: #fff;
  --_bd: rgba(255,255,255,.30); --_bgh: rgba(255,255,255,.18);
}

.cii-btn__icon { display: inline-flex; font-size: 1.15em; }

/* ============================================================
   4. LAYOUT + SECTIONS
   ============================================================ */

.cii-container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---- Section opener: eyebrow → title → lead ---- */
.cii-eyebrow {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--c-green-deep);
  margin: 0;
}
.cii-eyebrow--muted { color: var(--text-muted); }
.cii-eyebrow--brand { color: var(--c-yellow); }

.cii-section-title {
  font-size: var(--text-3xl);
  margin-top: var(--space-3);
}
.cii-section-lead {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--text-muted);
  margin-top: var(--space-3);
}
.cii-section-head--center {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
}

/* ---- HEADER ---- */
.cii-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,250,244,.90);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--dur-base) var(--ease-standard);
}
.cii-header.is-scrolled { box-shadow: var(--shadow-sm); }

.cii-header__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 12px var(--gutter);
  display: flex; align-items: center; gap: 20px;
  min-height: var(--header-h);
}
.cii-header__logo { display: flex; align-items: center; gap: 12px; flex: none; }
.cii-header__logo img { height: 46px; width: auto; }

.cii-nav { display: flex; gap: 2px; margin-left: 8px; font-weight: var(--weight-semibold); font-size: 13.5px; }
.cii-nav a {
  padding: 8px 13px;
  border-radius: var(--radius-pill);
  color: var(--n-600);
  transition: var(--transition-colors);
}
.cii-nav a:hover { color: var(--c-ink); background: var(--n-100); }
/* Deliberately different from :hover — with both painted the same grey pill there
   was no way to tell the section you are in from the one under the cursor. */
.cii-nav a.is-active {
  color: var(--c-green-deep);
  background: rgba(55, 179, 74, .12);
}

.cii-header__actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }

.cii-burger {
  display: none;
  margin-left: auto;
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--border);
  border-radius: var(--radius-md); color: var(--c-ink); cursor: pointer;
}
.cii-burger:hover { background: var(--n-100); }

/* Collapse via grid-template-rows 0fr -> 1fr. Unlike a guessed max-height this
   always animates to the menu's true height and can never clip a longer menu. */
.cii-mobile-nav {
  display: none;
  grid-template-rows: 0fr;
  border-top: 1px solid var(--border);
  background: var(--n-50);
  transition: grid-template-rows var(--dur-base) var(--ease-standard);
}
.cii-mobile-nav.is-open { grid-template-rows: 1fr; }

/* Keeps the menu scrollable on short viewports (landscape phones) rather than
   letting it run off the bottom of the screen. */
/* `visibility` (not just clipping) so the collapsed links leave the tab order —
   a 0fr grid row still hands focus to whatever is inside it. */
.cii-mobile-nav__scroll {
  overflow: hidden;
  min-height: 0;
  max-height: calc(100vh - var(--header-h));
  max-height: calc(100dvh - var(--header-h));
  visibility: hidden;
  transition: visibility 0s linear var(--dur-base);
}
.cii-mobile-nav.is-open .cii-mobile-nav__scroll {
  overflow-y: auto;
  visibility: visible;
  transition-delay: 0s;
}

.cii-mobile-nav__inner {
  max-width: var(--container-max); margin: 0 auto;
  padding: var(--space-4) var(--gutter) var(--space-6);
  display: flex; flex-direction: column; gap: var(--space-1);
}
.cii-mobile-nav a.cii-mobile-nav__link {
  padding: 12px 14px; border-radius: var(--radius-md);
  color: var(--n-700); font-weight: var(--weight-semibold);
}
.cii-mobile-nav a.cii-mobile-nav__link:hover { background: var(--n-100); color: var(--c-ink); }
.cii-mobile-nav a.cii-mobile-nav__link.is-active {
  color: var(--c-green-deep);
  background: rgba(55, 179, 74, .12);
}
.cii-mobile-nav__cta { display: flex; flex-direction: column; gap: var(--space-2); margin-top: var(--space-3); }

/* ---- HERO ---- */
.cii-hero { position: relative; background: var(--c-ink); color: #fff; overflow: hidden; }
.cii-hero__glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 90% at 78% 30%, rgba(28,110,140,.55) 0%, rgba(14,52,46,0) 55%),
    radial-gradient(90% 80% at 10% 90%, rgba(55,179,74,.28) 0%, rgba(14,52,46,0) 60%);
}
.cii-hero__inner {
  position: relative;
  max-width: var(--container-max); margin: 0 auto;
  padding: 76px var(--gutter) 88px;
  display: grid; grid-template-columns: 1.02fr .98fr; gap: 40px; align-items: center;
}
.cii-hero h1 {
  font-size: var(--text-5xl);
  color: #fff;
  letter-spacing: -0.022em;
  line-height: 1.04;
  margin-top: var(--space-5);
}
.cii-hero__accent { color: var(--c-yellow); }
.cii-hero__lead {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: rgba(255,255,255,.82);
  margin-top: var(--space-6);
  max-width: 50ch;
}
.cii-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--space-8); }
.cii-hero__stats {
  display: flex; flex-wrap: wrap; gap: 32px;
  margin-top: var(--space-10); padding-top: var(--space-6);
  border-top: 1px solid rgba(255,255,255,.14);
}
.cii-hero__stat-value { font-size: 30px; font-weight: var(--weight-extra); color: var(--c-yellow); line-height: 1; }
.cii-hero__stat-label { font-size: 12.5px; color: rgba(255,255,255,.7); margin-top: 6px; }

.cii-hero__art {
  position: relative; min-height: 440px;
  display: flex; align-items: center; justify-content: center;
}
.cii-hero__halo {
  position: absolute; width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(249,236,49,.22) 0%, rgba(249,236,49,0) 70%);
  filter: blur(8px);
}
.cii-hero__canvas { width: 100%; height: 460px; position: relative; z-index: 2; }
.cii-hero__canvas canvas { display: block; }
.cii-hero__fallback {
  position: absolute; width: 300px; height: auto; z-index: 1;
  animation: ciiFloat 6s ease-in-out infinite;
}
.cii-hero__frieze {
  display: block; width: 100%; height: 54px;
  object-fit: cover; object-position: bottom; opacity: .9;
}

@keyframes ciiFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---- Generic card ---- */
.cii-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-xs);
}

/* ---- Icon tile ---- */
.cii-icon {
  width: 38px; height: 38px; border-radius: 10px; flex: none;
  display: flex; align-items: center; justify-content: center;
}
/* Fixed tints for the About highlights (the Dashboard tiles are data-driven and
   still pass their colours through inline custom properties). */
.cii-icon--township { background: #FAEEDF;               color: var(--pillar-township); }
.cii-icon--green    { background: #E6F4E9;               color: var(--c-green-deep); }
.cii-icon--blue     { background: #E2EFF4;               color: var(--c-blue); }
.cii-icon--land     { background: #F2F2E9;               color: #6E7330; }
.cii-icon--brand    { background: rgba(249, 236, 49, .16); color: var(--c-yellow); }

/* ---- Utilities ----------------------------------------------------------
   Used in place of inline `style` attributes in the Blade partials, so the
   spacing tracks the token scale and can be overridden per breakpoint.       */
.cii-u-center       { text-align: center; }
.cii-u-mt-0         { margin-top: 0; }
.cii-u-mt-6         { margin-top: var(--space-6); }
.cii-u-block        { display: block; }
.cii-u-mb-3         { margin-bottom: var(--space-3); }
.cii-u-section-head { text-align: center; margin-bottom: var(--space-8); }
.cii-u-stack-head   { margin: var(--space-6) 0 var(--space-3); }

/* ---- ABOUT ---- */
.cii-about {
  max-width: var(--container-max); margin: 0 auto;
  padding: 88px var(--gutter) 40px;
}
.cii-about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.cii-about__body { font-size: var(--text-md); line-height: var(--leading-relaxed); color: var(--n-700); margin-top: var(--space-5); }
.cii-about__body + .cii-about__body { color: var(--text-muted); margin-top: var(--space-4); }
.cii-about__title { font-size: var(--text-3xl); margin-top: var(--space-3); }
.cii-about__title-accent { color: var(--c-gold); }

.cii-highlights { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: var(--space-4); }
.cii-highlight { padding: 18px; }
.cii-highlight__title { font-weight: var(--weight-bold); color: var(--c-ink); margin-top: 12px; font-size: 15px; }
.cii-highlight__meta  { font-size: 13px; color: var(--text-muted); margin-top: 3px; }

.cii-highlight--wide {
  grid-column: span 2; background: var(--c-ink); border-radius: var(--radius-card);
  padding: 18px 20px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.cii-highlight--wide .cii-highlight__title { color: #fff; margin-top: 0; }
.cii-highlight--wide .cii-highlight__meta  { color: rgba(255,255,255,.7); }
.cii-highlight__phase { margin-left: auto; text-align: right; }
.cii-highlight__phase-value {
  font-size: 11px; font-weight: var(--weight-bold);
  letter-spacing: .08em; text-transform: uppercase; color: var(--c-yellow);
}
.cii-highlight__phase-label { font-size: 12px; color: rgba(255,255,255,.6); }

/* ---- COMPONENTS (strategic pillars) ---- */
.cii-components {
  background: var(--surface-sunken);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cii-components__inner { max-width: var(--container-max); margin: 0 auto; padding: 82px var(--gutter); }

/* Flex rather than grid: there are five components in a three-across row, so the
   trailing row of two centres itself instead of hanging left against an empty
   cell. Widths are stated per breakpoint so any component count stays balanced. */
.cii-components__grid {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 18px; margin-top: var(--space-10);
}

.cii-component {
  width: calc((100% - 36px) / 3);
  min-width: 0;
  position: relative; overflow: hidden;
  border-radius: 18px; padding: 26px;
  transition: transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
}
.cii-component:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.cii-component__bar { position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: var(--_accent); }
.cii-component__head { display: flex; align-items: center; gap: 14px; }
.cii-component__n {
  width: 46px; height: 46px; border-radius: 12px; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-weight: var(--weight-extra); font-size: 20px;
  background: var(--_tint); color: var(--_accent);
}
.cii-component__count {
  font-size: 11px; font-weight: var(--weight-bold);
  letter-spacing: .07em; text-transform: uppercase; color: var(--text-faint);
}
.cii-component__title { font-size: var(--text-xl); margin-top: 18px; line-height: 1.2; letter-spacing: var(--tracking-snug); }
.cii-component__desc  { font-size: 14.5px; color: var(--text-muted); line-height: 1.55; margin-top: 10px; }
.cii-components__note {
  flex: 1 1 100%; text-align: center; margin-top: 10px;
  font-size: 15px; color: var(--text-muted); max-width: 64ch;
  margin-inline: auto; line-height: var(--leading-relaxed);
}

/* ---- DASHBOARD ---- */
.cii-dashboard { max-width: var(--container-max); margin: 0 auto; padding: 88px var(--gutter); }
.cii-dashboard__grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 48px; align-items: center; }
.cii-dashboard__title { font-size: var(--text-3xl); margin-top: var(--space-3); line-height: 1.08; }
.cii-dashboard__sub   { font-size: var(--text-lg); font-weight: var(--weight-bold); color: var(--c-ink-soft); margin-top: var(--space-6); }
.cii-dashboard__desc  { font-size: var(--text-md); color: var(--text-muted); line-height: var(--leading-relaxed); margin-top: var(--space-3); }
.cii-features { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cii-feature { padding: 18px; display: flex; gap: 14px; align-items: flex-start; }
.cii-feature--wide { grid-column: span 2; }
.cii-feature__title { font-weight: var(--weight-bold); color: var(--c-ink); font-size: 14.5px; }
.cii-feature__desc  { font-size: 12.5px; color: var(--text-muted); margin-top: 3px; line-height: 1.4; }

/* ---- IMPACT / TARGET AREAS ---- */
.cii-impact { background: var(--c-ink); color: #fff; }
.cii-impact__inner { max-width: var(--container-max); margin: 0 auto; padding: 84px var(--gutter); }
.cii-impact h2 { color: #fff; font-size: var(--text-3xl); margin-top: var(--space-3); }
.cii-impact__lead { font-size: var(--text-lg); color: rgba(255,255,255,.78); margin-top: var(--space-3); line-height: var(--leading-relaxed); }
.cii-impact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: var(--space-10); }

.cii-pillar {
  position: relative; overflow: hidden;
  background: var(--c-ink-soft);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 20px;
  /* extra left padding so the 6px accent bar does not eat into the text gutter */
  padding: 28px 28px 28px 34px;
}
.cii-pillar__bar { position: absolute; top: 0; left: 0; width: 6px; height: 100%; background: var(--_accent); }
.cii-pillar__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.cii-pillar__chip {
  font-size: 11px; font-weight: var(--weight-bold);
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--_chip); background: rgba(255,255,255,.06);
  padding: 5px 11px; border-radius: var(--radius-pill);
}
.cii-pillar__indicators { font-size: 12px; color: rgba(255,255,255,.55); }
.cii-pillar__title { color: #fff; font-size: var(--text-xl); margin: 16px 0 4px; letter-spacing: var(--tracking-snug); }
.cii-pillar__metrics { margin-top: 16px; display: flex; flex-direction: column; gap: 14px; }
.cii-metric {
  display: flex; gap: 14px; align-items: baseline;
  padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,.08);
}
.cii-pillar__metrics .cii-metric:last-child { border-bottom: none; padding-bottom: 0; }
.cii-metric__value {
  font-size: 28px; font-weight: var(--weight-extra); color: var(--c-yellow);
  line-height: 1; flex: none; min-width: 96px;
}
.cii-metric__value--check { font-size: 22px; }
.cii-metric__label { font-size: 13.5px; color: rgba(255,255,255,.76); line-height: 1.45; }

/* ---- NEWS ---- */
.cii-news { max-width: var(--container-max); margin: 0 auto; padding: 84px var(--gutter) 40px; }

/* Flex + centred, so a partial row (fewer than three published articles) stays
   balanced rather than hanging against empty cells. */
.cii-news__grid {
  display: flex; flex-wrap: wrap; justify-content: center;
  align-items: stretch; gap: 20px; margin-top: var(--space-10);
}

/* `a.cii-article` for the same specificity reason as `a.cii-btn` above. */
a.cii-article {
  width: calc((100% - 40px) / 3);
  min-width: 0;
  display: flex; flex-direction: column;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: 18px; overflow: hidden;
  box-shadow: var(--shadow-xs);
  color: inherit;
  transition: box-shadow var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out);
}
a.cii-article:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); color: inherit; }
.cii-article__bar { height: 8px; background: var(--_accent); flex: none; }
.cii-article__figure {
  aspect-ratio: 16 / 9; background: var(--n-100); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.cii-article__figure img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-out); }
.cii-article:hover .cii-article__figure img { transform: scale(1.05); }
.cii-article__placeholder { color: var(--n-400); }
.cii-article__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.cii-article__meta {
  font-size: 11px; font-weight: var(--weight-bold);
  letter-spacing: .07em; text-transform: uppercase; color: var(--text-faint);
}
.cii-article__title {
  font-size: var(--text-lg); color: var(--c-ink);
  letter-spacing: var(--tracking-snug); line-height: 1.28; margin-top: 10px;
  display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden;
  -webkit-line-clamp: 3; line-clamp: 3;
}
.cii-article__excerpt {
  font-size: 14px; color: var(--text-muted); line-height: 1.55;
  margin-top: 12px; flex: 1;
  display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden;
  -webkit-line-clamp: 3; line-clamp: 3;
}
.cii-article__more { font-weight: var(--weight-bold); color: var(--c-green-deep); font-size: 14px; margin-top: 16px; }
.cii-news__empty {
  flex: 1 1 100%; text-align: center; padding: var(--space-16) var(--space-6);
  border: 1px dashed var(--border-strong); border-radius: var(--radius-card); color: var(--text-muted);
}
.cii-news__all { text-align: center; margin-top: 36px; }

/* ---- PARTNERS ---- */
.cii-partners { max-width: var(--container-max); margin: 0 auto; padding: 40px var(--gutter) 80px; }
.cii-partners__grid {
  display: flex; flex-wrap: wrap; justify-content: center;
  align-items: stretch; gap: 18px;
}
.cii-partner {
  width: calc((100% - 54px) / 4);
  min-width: 0;
  padding: 26px 20px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px; text-align: center;
}
/* Logos vary wildly in aspect ratio — cap both axes so no single mark dominates. */
.cii-partner img { height: 64px; max-height: 64px; width: auto; max-width: 100%; object-fit: contain; }
.cii-partner__name { font-size: 13px; font-weight: var(--weight-semibold); color: var(--n-700); }

/* ---- FOOTER ---- */
.cii-footer { background: var(--c-ink); color: rgba(255,255,255,.72); }
.cii-footer__inner {
  max-width: var(--container-max); margin: 0 auto;
  padding: 64px var(--gutter) 28px;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;
}
.cii-footer a { color: rgba(255,255,255,.72); }
.cii-footer a:hover { color: var(--c-yellow); }
.cii-footer__logo { height: 70px; width: auto; }
.cii-footer__blurb { font-size: 14px; line-height: var(--leading-relaxed); margin-top: 18px; max-width: 34ch; }
.cii-footer__head {
  font-size: 13px; font-weight: var(--weight-bold);
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--c-yellow); margin-bottom: 16px;
}
.cii-footer__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.cii-footer__social { display: flex; gap: 12px; }
.cii-footer__social a {
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.cii-footer__social a:hover { background: rgba(255,255,255,.16); color: var(--c-yellow); }
.cii-footer__bar { border-top: 1px solid rgba(255,255,255,.12); }
.cii-footer__bar-inner {
  max-width: var(--container-max); margin: 0 auto;
  padding: 20px var(--gutter);
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between;
  font-size: 13px; color: rgba(255,255,255,.55);
}
/* .30 over the ink background lands around 2.4:1 — effectively unreadable.
   .55 keeps it visually secondary while clearing the 4.5:1 minimum. */
.cii-footer__credit { color: rgba(255,255,255,.55); }

/* ============================================================
   5. RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
  /* The headline stays first — the decorative logo must never push the hero copy
     below the fold on a tablet. */
  .cii-hero__inner       { grid-template-columns: 1fr; gap: 24px; padding-top: 56px; padding-bottom: 64px; }
  .cii-hero__art         { min-height: 340px; }
  .cii-hero__canvas      { height: 340px; }
  .cii-hero__halo        { width: 260px; height: 260px; }
  .cii-hero__fallback    { width: 220px; }
  .cii-hero__lead        { max-width: 62ch; }
  .cii-about__grid       { grid-template-columns: 1fr; gap: 40px; }
  .cii-dashboard__grid   { grid-template-columns: 1fr; gap: 36px; }
  .cii-component         { width: calc((100% - 18px) / 2); }
  a.cii-article          { width: calc((100% - 20px) / 2); }
  .cii-footer__inner     { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 900px) {
  .cii-nav, .cii-header__actions { display: none; }
  .cii-burger     { display: inline-flex; }
  .cii-mobile-nav { display: grid; }
  .cii-hero h1              { font-size: var(--text-4xl); }
  .cii-section-title,
  .cii-about__title,
  .cii-dashboard__title,
  .cii-impact h2            { font-size: var(--text-2xl); }
  .cii-impact__grid         { grid-template-columns: 1fr; }
  .cii-partner              { width: calc((100% - 18px) / 2); }
  /* The 3D scene is disabled below 900px, so reclaim the reserved canvas space. */
  .cii-hero__art            { min-height: 260px; }
  .cii-hero__canvas         { height: 260px; }
}

@media (max-width: 640px) {
  :root { --gutter: var(--space-4); }
  .cii-hero h1           { font-size: var(--text-2xl); }
  .cii-hero__lead        { font-size: var(--text-md); }
  .cii-hero__stats       { gap: 20px 28px; }
  .cii-hero__cta .cii-btn { flex: 1 1 100%; }
  .cii-hero__art         { min-height: 220px; }
  .cii-hero__canvas      { height: 220px; }
  .cii-hero__fallback    { width: 170px; }
  .cii-hero__halo        { width: 200px; height: 200px; }
  .cii-about             { padding-top: 56px; }
  .cii-components__inner,
  .cii-dashboard,
  .cii-impact__inner,
  .cii-news              { padding-top: 56px; padding-bottom: 56px; }
  .cii-component,
  a.cii-article,
  .cii-partner           { width: 100%; }
  .cii-highlights,
  .cii-features          { grid-template-columns: 1fr; }
  .cii-highlight--wide,
  .cii-feature--wide     { grid-column: span 1; }
  .cii-highlight__phase  { margin-left: 0; text-align: left; }
  .cii-footer__inner     { grid-template-columns: 1fr; }
  .cii-metric__value     { min-width: 74px; font-size: 24px; }
  .cii-pillar,
  .cii-component         { padding: 22px; }
  .cii-pillar            { padding-left: 26px; }
  .cii-news__all .cii-btn,
  .cii-mobile-nav__cta .cii-btn { width: 100%; }
}

/* ============================================================
   6. MOTION
   ============================================================ */

/* Scroll reveal.
   Two deliberate choices here:
   1. The hidden state is scoped to `.cii-js`, stamped on <html> by an inline
      script in main/v2/layouts/app.blade.php. Without it a blocked or failed
      script would leave the whole page sitting at opacity 0.
   2. It animates via keyframes rather than a transition, so the long reveal
      duration does not hijack the short hover transitions on the same cards
      (`animation` with fill-mode `backwards` covers the stagger delay but does
      not persist a transform afterwards). */
.cii-js .cii-reveal { opacity: 0; }
.cii-js .cii-reveal.is-visible {
  opacity: 1;
  animation: ciiReveal var(--dur-slower) var(--ease-out) backwards;
}

@keyframes ciiReveal {
  from { opacity: 0; transform: translateY(14px); }
}

/* A light stagger across the card grids */
.cii-js .cii-components__grid .cii-reveal:nth-child(3n + 2),
.cii-js .cii-impact__grid     .cii-reveal:nth-child(2n),
.cii-js .cii-news__grid       .cii-reveal:nth-child(3n + 2),
.cii-js .cii-partners__grid   .cii-reveal:nth-child(4n + 2) { animation-delay: 70ms; }
.cii-js .cii-components__grid .cii-reveal:nth-child(3n),
.cii-js .cii-news__grid       .cii-reveal:nth-child(3n),
.cii-js .cii-partners__grid   .cii-reveal:nth-child(4n + 3) { animation-delay: 140ms; }
.cii-js .cii-partners__grid   .cii-reveal:nth-child(4n)     { animation-delay: 210ms; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cii-js .cii-reveal,
  .cii-js .cii-reveal.is-visible { opacity: 1; transform: none; animation: none; }
  .cii-hero__fallback { animation: none; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
