/* ==========================================================================
   Indigenous.si — Main Stylesheet
   --------------------------------------------------------------------------
   Structure:
     1.  Design tokens (colors, type, spacing)
     2.  Reset & base elements
     3.  Layout helpers (container, section, grid)
     4.  Typography utilities
     5.  Buttons & links
     6.  Header & navigation
     7.  Hero (home) & page hero (inner pages)
     8.  Cards, features, stats
     9.  Media / split sections
    10.  Steps, timeline, pathway
    11.  Partners
    12.  CTA band
    13.  FAQ
    14.  Forms
    15.  Footer
    16.  Motifs & decorative elements
    17.  Animations / reveal
    18.  Utilities
   Mobile-first: base styles target small screens; media queries scale up.
   ========================================================================== */

/* 1. DESIGN TOKENS ======================================================== */
:root {
  /* Brand palette — drawn from the Indigenous.si banner (deep blue → red) */
  --navy-950: #060b26;
  --navy-900: #0a1540;
  --navy-800: #111f5c;
  --blue-700: #1e3aae;
  --blue-600: #2a4bd0;
  --blue-500: #3d63e6;
  --violet-500: #7d4aad;
  --red-600: #c91d2d;
  --red-500: #e3313f;
  --red-400: #f0525c;
  --gold-400: #f4b740;
  --gold-300: #fecf6a;

  /* Neutrals — warm, earth-toned rather than cold crypto greys */
  --sand-50: #fbf8f3;
  --sand-100: #f4eee4;
  --sand-200: #e9dfd0;
  --ink-900: #0f1530;
  --ink-700: #2d3452;
  --ink-500: #5a6180;
  --ink-300: #a3a8bf;
  --white: #ffffff;

  /* Signature gradient */
  --grad-brand: linear-gradient(115deg, #0b1a62 0%, #2645c7 38%, #8447a8 66%, #e3313f 100%);
  --grad-brand-soft: linear-gradient(115deg, rgba(38, 69, 199, 0.12), rgba(227, 49, 63, 0.12));
  --grad-text: linear-gradient(100deg, #3d63e6 0%, #8a4fb3 50%, #e3313f 100%);

  /* Typography */
  --font-display: "Outfit", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-md: 1.25rem;
  --fs-lg: clamp(1.375rem, 1.1rem + 1vw, 1.75rem);
  --fs-xl: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem);
  --fs-2xl: clamp(2.25rem, 1.5rem + 3vw, 3.5rem);
  --fs-3xl: clamp(2.75rem, 1.6rem + 4.6vw, 5rem);

  /* Spacing & shape */
  --space-section: clamp(4.5rem, 3rem + 6vw, 8.5rem);
  --container: 1200px;
  --gutter: clamp(1.25rem, 0.75rem + 2vw, 2.5rem);
  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(15, 21, 48, 0.06), 0 2px 8px rgba(15, 21, 48, 0.05);
  --shadow: 0 10px 30px -12px rgba(15, 21, 48, 0.22);
  --shadow-lg: 0 30px 60px -24px rgba(10, 21, 64, 0.38);

  --header-h: 76px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* 2. RESET & BASE ========================================================= */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--ink-700);
  background: var(--sand-50);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink-900);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  font-weight: 600;
  text-wrap: balance;
}
h1 { font-size: var(--fs-3xl); font-weight: 600; }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-lg); letter-spacing: -0.01em; }
h4 { font-size: var(--fs-md); letter-spacing: -0.01em; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--blue-600); text-underline-offset: 3px; }
a:hover { color: var(--red-600); }

ul, ol { padding-left: 1.2em; }

:focus-visible {
  outline: 3px solid var(--gold-400);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--blue-600); color: var(--white); }

/* Skip link for keyboard users */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 1000;
  padding: 0.75rem 1.25rem;
  background: var(--navy-900);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; color: var(--white); }

/* 3. LAYOUT HELPERS ======================================================= */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 820px; }

.section { padding-block: var(--space-section); position: relative; }
.section--tight { padding-block: calc(var(--space-section) * 0.6); }
.section--sand { background: var(--sand-100); }
.section--white { background: var(--white); }
.section--dark {
  background: var(--navy-950);
  color: rgba(255, 255, 255, 0.78);
  overflow: hidden;
  isolation: isolate; /* keeps decorative glows/lattice behind content but above the background */
}
.section--dark h2,
.section--dark h3,
.section--dark h4 { color: var(--white); }

.section-head { max-width: 760px; margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { font-size: var(--fs-md); color: var(--ink-500); }
.section--dark .section-head p { color: rgba(255, 255, 255, 0.7); }

.grid { display: grid; gap: clamp(1.25rem, 1rem + 1vw, 2rem); }
@media (min-width: 640px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* 4. TYPOGRAPHY UTILITIES ================================================= */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--grad-text);
  border-radius: 2px;
}
.section--dark .eyebrow,
.panel .eyebrow,
.page-hero .eyebrow,
.hero .eyebrow { color: var(--gold-300); }

.lead { font-size: var(--fs-md); line-height: 1.6; color: var(--ink-500); }

.text-gradient {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
/* Gradient text on dark backgrounds needs lighter stops */
.hero .text-gradient,
.page-hero .text-gradient,
.section--dark .text-gradient {
  background: linear-gradient(100deg, #9fb4ff 0%, #e2a6ff 45%, #ff8a8f 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.check-list { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 0.75rem; }
.check-list li { position: relative; padding-left: 2rem; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: var(--grad-brand) ;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 0a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm-1.2 14.2-4-4 1.4-1.4 2.6 2.6 5.6-5.6 1.4 1.4-7 7Z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 0a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm-1.2 14.2-4-4 1.4-1.4 2.6 2.6 5.6-5.6 1.4 1.4-7 7Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* 5. BUTTONS & LINKS ====================================================== */
.btn {
  --btn-bg: var(--navy-900);
  --btn-fg: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.95rem 1.6rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.005em;
  text-decoration: none;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 2px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s, color 0.25s, border-color 0.25s;
  white-space: nowrap;
}
.btn:hover { color: var(--btn-fg); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn svg { width: 1.1em; height: 1.1em; transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn--primary {
  background: linear-gradient(110deg, var(--blue-600) 0%, var(--violet-500) 55%, var(--red-500) 100%);
  background-size: 160% 100%;
  background-position: 0% 50%;
  transition: background-position 0.5s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn--primary:hover { background-position: 100% 50%; box-shadow: 0 14px 30px -12px rgba(227, 49, 63, 0.55); }

.btn--light { --btn-bg: var(--white); --btn-fg: var(--navy-900); }
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}
.btn--ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.08); }
.btn--outline {
  --btn-bg: transparent;
  --btn-fg: var(--navy-900);
  border-color: var(--ink-300);
}
.btn--outline:hover { border-color: var(--navy-900); }
.btn--sm { padding: 0.7rem 1.2rem; font-size: 0.9375rem; }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; }

/* Small screens: let long button labels wrap instead of overflowing */
@media (max-width: 479px) {
  .btn { white-space: normal; text-align: center; }
  .cta-band .btn-row .btn { width: 100%; }
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-weight: 600;
  text-decoration: none;
  color: var(--blue-600);
}
.link-arrow::after { content: "→"; transition: transform 0.25s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* 6. HEADER & NAVIGATION ================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background-color 0.3s, box-shadow 0.3s, backdrop-filter 0.3s;
}
/* Solid state: applied by JS on scroll, and always on pages without a dark hero */
.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(6, 11, 38, 0.88);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
          backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Wordmark logo */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}
.brand:hover { color: var(--white); }
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand__dot { color: var(--red-400); }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  background: transparent;
  color: var(--white);
  cursor: pointer;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s;
  position: relative;
}
.nav-toggle__bars::before,
.nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.is-open .nav-toggle__bars { background: transparent; }
.is-open .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.is-open .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

/* Mobile nav panel */
.site-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--navy-950);
  padding: 2rem var(--gutter) 3rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}
.is-open .site-nav { opacity: 1; visibility: visible; transform: none; }

.nav-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.25rem; }
.nav-list a {
  display: block;
  padding: 0.85rem 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nav-list a:hover,
.nav-list a[aria-current="page"] { color: var(--white); }
.nav-list a[aria-current="page"] { color: var(--gold-300); }

body.nav-locked { overflow: hidden; }

@media (min-width: 1040px) {
  .nav-toggle { display: none; }
  .site-nav {
    position: static;
    inset: auto;
    flex-direction: row;
    align-items: center;
    gap: 1.75rem;
    padding: 0;
    background: none;
    overflow: visible;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav-list { display: flex; gap: 0.25rem; }
  .nav-list a {
    position: relative;
    padding: 0.5rem 0.8rem;
    font-size: 0.975rem;
    border: 0;
  }
  .nav-list a::after {
    content: "";
    position: absolute;
    left: 0.8rem;
    right: 0.8rem;
    bottom: 0.15rem;
    height: 2px;
    border-radius: 2px;
    background: var(--grad-text);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--ease);
  }
  .nav-list a:hover::after,
  .nav-list a[aria-current="page"]::after { transform: scaleX(1); }
  .nav-list a[aria-current="page"] { color: var(--white); }
}

/* 7. HERO (HOME) ========================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: clamp(640px, 100svh, 1000px); /* capped so very tall screens stay balanced */
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 3rem) 0 7rem;
  color: rgba(255, 255, 255, 0.85);
  background: var(--navy-950);
  overflow: hidden;
  isolation: isolate;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  transform: scale(1.04);
  animation: hero-drift 24s ease-in-out infinite alternate;
}
/* Brand gradient overlay keeps text legible on any photo */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(6, 11, 38, 0.92) 0%, rgba(10, 21, 64, 0.72) 45%, rgba(10, 21, 64, 0.15) 100%),
    linear-gradient(180deg, rgba(6, 11, 38, 0.35) 0%, rgba(6, 11, 38, 0) 30%, rgba(6, 11, 38, 0.65) 100%);
}
/* Fallback gradient (shows if the hero image is missing) */
.hero__media { background: var(--grad-brand); }

.hero__content { max-width: 760px; }
.hero h1 { color: var(--white); margin-bottom: 1.5rem; }
.hero .lead { color: rgba(255, 255, 255, 0.82); max-width: 620px; margin-bottom: 2.25rem; font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem); }

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.75rem;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
}
.badge__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold-400); box-shadow: 0 0 0 3px rgba(244, 183, 64, 0.25); }

/* Hero stats strip pinned to the bottom of the hero */
.hero__stats {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(6, 11, 38, 0) 0%, rgba(6, 11, 38, 0.55) 100%);
}
.hero__stats dl {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}
.hero__stats dl > div { padding: 1.1rem 0; display: flex; flex-direction: column-reverse; }
.hero__stats dt { font-size: var(--fs-xs); color: rgba(255, 255, 255, 0.65); order: 2; }
.hero__stats dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.2;
}
.hero__stats .hide-sm { display: none; }
@media (min-width: 760px) {
  .hero__stats dl { grid-template-columns: repeat(4, 1fr); }
  .hero__stats .hide-sm { display: flex; }
  .hero__stats dl > div + div { padding-left: 1.75rem; border-left: 1px solid rgba(255, 255, 255, 0.12); }
  .hero__stats dd { font-size: 1.85rem; }
}
@media (max-width: 759px) {
  .hero { padding-bottom: 9rem; }
}

/* Inner-page hero */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(3.5rem, 2rem + 6vw, 7rem)) 0 clamp(4rem, 3rem + 5vw, 7rem);
  color: rgba(255, 255, 255, 0.82);
  background: var(--navy-950);
  overflow: hidden;
  isolation: isolate;
}
.page-hero::before {
  /* Layered gradient glow echoing the brand banner */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60% 90% at 100% 0%, rgba(227, 49, 63, 0.55) 0%, rgba(227, 49, 63, 0) 60%),
    radial-gradient(50% 80% at 70% 100%, rgba(125, 74, 173, 0.45) 0%, rgba(125, 74, 173, 0) 70%),
    linear-gradient(115deg, #070f3a 0%, #13267f 45%, #2643c2 100%);
}
.page-hero h1 { color: var(--white); font-size: var(--fs-2xl); max-width: 880px; }
.page-hero .lead { color: rgba(255, 255, 255, 0.8); max-width: 680px; }
.page-hero__inner { position: relative; }
/* Full-height variant for short pages (thank-you, 404) */
.page-hero--full { min-height: 78vh; display: flex; align-items: center; }
.page-hero--full + * { margin-top: 0; }

.breadcrumb {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.6);
}
.breadcrumb a { color: rgba(255, 255, 255, 0.75); text-decoration: none; }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb li + li::before { content: "/"; margin-right: 0.5rem; opacity: 0.5; }

/* 8. CARDS, FEATURES, STATS =============================================== */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 1.2rem + 1vw, 2.25rem);
  background: var(--white);
  border: 1px solid var(--sand-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card h3 { font-size: 1.3rem; margin-bottom: 0.6rem; }
.card p { color: var(--ink-500); font-size: var(--fs-sm); }
.card .link-arrow { margin-top: auto; padding-top: 1.25rem; }

/* Card with gradient top edge */
.card--accent::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--grad-brand);
}

.card--dark {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}
.card--dark p { color: rgba(255, 255, 255, 0.68); }
.card--dark:hover { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.18); }

.icon-tile {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 1.25rem;
  border-radius: 14px;
  color: var(--blue-600);
  background: var(--grad-brand-soft);
}
.icon-tile svg { width: 26px; height: 26px; }
.icon-tile--warm { color: var(--red-600); background: rgba(227, 49, 63, 0.1); }
.icon-tile--gold { color: #a86b00; background: rgba(244, 183, 64, 0.18); }
.card--dark .icon-tile { color: var(--white); background: rgba(255, 255, 255, 0.08); }

.card__num {
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--ink-300);
  margin-bottom: 1rem;
}

/* Stat blocks */
.stats { display: grid; gap: 1.5rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { padding-top: 1.25rem; border-top: 2px solid rgba(255, 255, 255, 0.14); }
.section:not(.section--dark) .stat { border-top-color: var(--sand-200); }
.stat__value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 1.8rem + 2.5vw, 3.75rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}
.stat__label { font-size: var(--fs-sm); }

/* Pill tag list */
.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin: 1rem 0 0; }
.tags li {
  padding: 0.3rem 0.75rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--ink-700);
  background: var(--sand-100);
  border-radius: 999px;
}
.card--dark .tags li { background: rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.8); }

/* 9. MEDIA / SPLIT SECTIONS =============================================== */
.split {
  display: grid;
  gap: clamp(2.5rem, 2rem + 3vw, 5rem);
  align-items: center;
}
@media (min-width: 940px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--reverse .split__media { order: 2; }
  .split--wide-text { grid-template-columns: 1.1fr 0.9fr; }
}

.media-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--grad-brand);
  box-shadow: var(--shadow-lg);
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-frame--tall { aspect-ratio: 4 / 5; }

/* Offset decorative block behind a framed image */
.media-stack { position: relative; padding: 0 1.25rem 1.25rem 0; }
.media-stack::before {
  content: "";
  position: absolute;
  inset: 1.25rem 0 0 1.25rem;
  border-radius: var(--radius-lg);
  background: var(--grad-brand);
  opacity: 0.9;
}
.media-stack .media-frame { box-shadow: var(--shadow); }

/* Floating caption card on top of an image */
.media-note {
  position: absolute;
  left: -0.5rem;
  bottom: 2.25rem;
  max-width: 260px;
  padding: 1rem 1.25rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  font-size: var(--fs-sm);
  color: var(--ink-700);
}
.media-note strong { display: block; font-family: var(--font-display); font-size: 1.6rem; color: var(--ink-900); line-height: 1.1; }
@media (min-width: 940px) { .media-note { left: -2rem; } }

/* 10. STEPS / PATHWAY ===================================================== */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps--4 { grid-template-columns: repeat(4, 1fr); } }
.step {
  position: relative;
  padding: 2rem 1.75rem 1.75rem;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--sand-200);
  counter-increment: step;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1;
  margin-bottom: 1rem;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.step h3 { font-size: 1.2rem; }
.step p { font-size: var(--fs-sm); color: var(--ink-500); }
.section--dark .step { background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.1); }
.section--dark .step p { color: rgba(255, 255, 255, 0.68); }
.section--dark .step::before { background: linear-gradient(100deg, #9fb4ff, #ff8a8f); -webkit-background-clip: text; background-clip: text; }

/* Vertical timeline */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--blue-600), var(--violet-500), var(--red-500));
  border-radius: 2px;
}
.timeline li { position: relative; padding: 0 0 2.25rem 3rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--blue-600);
}
.timeline li:nth-child(2)::before { border-color: var(--violet-500); }
.timeline li:nth-child(n+3)::before { border-color: var(--red-500); }
.timeline__label {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin-bottom: 0.25rem;
}
.timeline h3 { font-size: 1.2rem; margin-bottom: 0.35rem; }
.timeline p { color: var(--ink-500); font-size: var(--fs-sm); }

/* Value / principle rows */
.principles { display: grid; gap: 0; border-top: 1px solid var(--sand-200); }
.principle {
  display: grid;
  gap: 0.5rem 2rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--sand-200);
}
@media (min-width: 760px) { .principle { grid-template-columns: 80px 1fr 1.4fr; align-items: baseline; } }
.principle__letter {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 600;
  line-height: 1;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.principle h3 { margin: 0; font-size: 1.25rem; }
.principle p { margin: 0; color: var(--ink-500); }

/* 11. PARTNERS ============================================================ */
.partner-card {
  display: flex;
  flex-direction: column;
  padding: clamp(1.75rem, 1.4rem + 1.4vw, 2.75rem);
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--sand-200);
  box-shadow: var(--shadow-sm);
}
.partner-card__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  height: 56px;
  margin-bottom: 1.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--ink-900);
}
.partner-card__logo img { max-height: 56px; width: auto; }
.partner-card__role {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red-600);
  margin-bottom: 0.5rem;
}
.partner-card h3 { font-size: 1.5rem; }
.partner-card p { color: var(--ink-500); }

/* Simple logo strip (text wordmarks until official logos are added) */
.logo-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 3rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.logo-strip li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink-500);
  opacity: 0.9;
}
.logo-strip svg { width: 28px; height: 28px; }

/* Brand banner showcase (official co-branded banner) */
.banner-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.banner-frame img { width: 100%; }

/* 12. CTA BAND ============================================================ */
.cta-band {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(3rem, 2rem + 4vw, 5.5rem) clamp(1.5rem, 1rem + 4vw, 5rem);
  border-radius: var(--radius-lg);
  background: var(--grad-brand);
  color: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-lg);
}
.cta-band::after {
  /* Subtle woven lattice motif */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--motif-lattice);
  background-size: 56px 56px;
  opacity: 0.12;
  -webkit-mask-image: linear-gradient(90deg, transparent 20%, #000 100%);
          mask-image: linear-gradient(90deg, transparent 20%, #000 100%);
}
.cta-band h2 { color: var(--white); max-width: 760px; }
.cta-band p { max-width: 640px; font-size: var(--fs-md); margin-bottom: 2rem; }

/* Audience pathway cards (Students / Schools / Partners) */
.path-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 2rem;
  border-radius: var(--radius);
  text-decoration: none;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: background-color 0.3s, transform 0.35s var(--ease), border-color 0.3s;
}
.path-card:hover { color: rgba(255, 255, 255, 0.9); background: rgba(255, 255, 255, 0.09); border-color: rgba(255, 255, 255, 0.28); transform: translateY(-4px); }
.path-card h3 { color: var(--white); font-size: 1.35rem; }
.path-card p { font-size: var(--fs-sm); }
.path-card__cta {
  margin-top: auto;
  padding-top: 1.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--gold-300);
}
.path-card__cta::after { content: " →"; }

/* 13. FAQ ================================================================= */
.faq { border-top: 1px solid var(--sand-200); }
.faq details { border-bottom: 1px solid var(--sand-200); }
.faq summary {
  position: relative;
  padding: 1.4rem 3rem 1.4rem 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink-900);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 0.25rem;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  background:
    linear-gradient(currentColor, currentColor) center / 14px 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 14px no-repeat;
  color: var(--blue-600);
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); color: var(--red-500); }
.faq details > div { padding: 0 0 1.5rem; color: var(--ink-500); max-width: 720px; }

/* 14. FORMS =============================================================== */
.form-card {
  padding: clamp(1.75rem, 1.2rem + 2vw, 3rem);
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--sand-200);
  box-shadow: var(--shadow);
}
.form-grid { display: grid; gap: 1.25rem; }
@media (min-width: 640px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-grid .full { grid-column: 1 / -1; }
}
.field label,
.field legend,
.choice-group legend {
  display: block;
  margin-bottom: 0.45rem;
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink-900);
}
.field .req { color: var(--red-600); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font: inherit;
  font-size: 1rem;
  color: var(--ink-900);
  background: var(--sand-50);
  border: 1.5px solid var(--sand-200);
  border-radius: 12px;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%235a6180'%3E%3Cpath d='M5.3 7.3a1 1 0 0 1 1.4 0L10 10.6l3.3-3.3a1 1 0 1 1 1.4 1.4l-4 4a1 1 0 0 1-1.4 0l-4-4a1 1 0 0 1 0-1.4Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 1.1rem;
  padding-right: 2.75rem;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: var(--white);
  border-color: var(--blue-600);
  box-shadow: 0 0 0 4px rgba(42, 75, 208, 0.15);
}
.field .hint { display: block; margin-top: 0.35rem; font-size: var(--fs-xs); color: var(--ink-500); }
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: var(--red-500); }
.field .error-msg { display: none; margin-top: 0.35rem; font-size: var(--fs-xs); font-weight: 600; color: var(--red-600); }
.field.has-error .error-msg { display: block; }

/* Radio "chip" choices for interest selection */
.choice-group { border: 0; padding: 0; margin: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: inline-block;
  padding: 0.6rem 1rem;
  font-size: var(--fs-sm);
  font-weight: 500;
  border: 1.5px solid var(--sand-200);
  border-radius: 999px;
  background: var(--sand-50);
  cursor: pointer;
  transition: all 0.2s;
}
.choice input:checked + span { color: var(--white); background: var(--navy-900); border-color: var(--navy-900); }
.choice input:focus-visible + span { outline: 3px solid var(--gold-400); outline-offset: 2px; }

.field .checkbox { display: flex; gap: 0.7rem; align-items: flex-start; margin: 0; font-family: var(--font-body); font-size: var(--fs-sm); font-weight: 400; color: var(--ink-500); }
.checkbox input { width: 1.15rem; height: 1.15rem; margin-top: 0.2rem; accent-color: var(--blue-600); flex: none; }
.field .checkbox input { width: 1.15rem; padding: 0; appearance: auto; }

/* Honeypot field — hidden from humans, catches bots */
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.form-status { margin-top: 1rem; font-size: var(--fs-sm); font-weight: 600; }
.form-status.is-error { color: var(--red-600); }
.form-status.is-success { color: #1a7f4b; }

/* Contact person card */
.person {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  margin-bottom: 2rem;
}
.person__avatar {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  flex: none;
  border-radius: 50%;
  background: var(--grad-brand);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  box-shadow: 0 0 0 4px var(--white), 0 0 0 6px var(--sand-200);
}
.person h3 { margin: 0 0 0.2rem; font-size: 1.35rem; }
.person p { margin: 0; font-size: var(--fs-sm); color: var(--ink-500); line-height: 1.5; }

.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.9rem; }
.contact-list a,
.contact-list span {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--ink-900);
  font-weight: 500;
}
.contact-list a:hover { color: var(--blue-600); }
.contact-list .icon-tile { width: 44px; height: 44px; margin: 0; border-radius: 12px; }
.contact-list .icon-tile svg { width: 20px; height: 20px; }

/* 15. FOOTER ============================================================== */
.site-footer {
  position: relative;
  padding: clamp(4rem, 3rem + 4vw, 6rem) 0 2rem;
  background: var(--navy-950);
  color: rgba(255, 255, 255, 0.65);
  font-size: var(--fs-sm);
  overflow: hidden;
}
.site-footer::before {
  /* Gradient rule across the top of the footer */
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--grad-brand);
}
.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.3fr; } }
.site-footer h2 {
  font-size: var(--fs-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.1rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.site-footer a { color: rgba(255, 255, 255, 0.72); text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.site-footer .brand { margin-bottom: 1rem; }
.footer-tagline { max-width: 340px; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.5);
}
.land-ack { max-width: 720px; font-style: italic; }

/* 16. MOTIFS & DECORATIVE ELEMENTS ======================================== */
/* Abstract woven lattice — a generic diamond/weave geometry, used sparingly.
   It intentionally does not reproduce any specific Nation's designs. */
:root {
  --motif-lattice: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1.5'%3E%3Cpath d='M28 4 52 28 28 52 4 28Z'/%3E%3Cpath d='M28 16 40 28 28 40 16 28Z'/%3E%3C/g%3E%3C/svg%3E");
}

/* Thin decorative band: stepped geometric rhythm in brand gradient */
.motif-band {
  height: 14px;
  background: var(--grad-brand);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='14' viewBox='0 0 48 14'%3E%3Cpath d='M0 14V10h6V6h6V2h6v4h6v4h6V6h6V2h6v4h6v8Z'/%3E%3C/svg%3E") repeat-x left bottom / 48px 14px;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='14' viewBox='0 0 48 14'%3E%3Cpath d='M0 14V10h6V6h6V2h6v4h6v4h6V6h6V2h6v4h6v8Z'/%3E%3C/svg%3E") repeat-x left bottom / 48px 14px;
  opacity: 0.85;
}

/* Lattice texture overlay for dark sections / page heroes */
.has-lattice::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--motif-lattice);
  background-size: 64px 64px;
  opacity: 0.05;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(70% 80% at 85% 30%, #000 0%, transparent 75%);
          mask-image: radial-gradient(70% 80% at 85% 30%, #000 0%, transparent 75%);
}

/* Layered mesa/ridgeline silhouette at the bottom of heroes */
.ridgeline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  z-index: 0;
  width: 100%;
  height: clamp(40px, 6vw, 90px);
  pointer-events: none;
  color: var(--sand-50); /* matches the following section's background */
}
.ridgeline--white { color: var(--white); }
.ridgeline--sand { color: var(--sand-100); }

/* Soft glowing orbs for depth on dark sections */
.glow {
  position: absolute;
  z-index: -1;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  pointer-events: none;
}
.glow--blue { background: var(--blue-600); }
.glow--red { background: var(--red-500); }

/* Pull-quote */
.quote {
  position: relative;
  margin: 0;
  padding-left: 1.75rem;
  border-left: 3px solid;
  border-image: linear-gradient(180deg, var(--blue-600), var(--red-500)) 1;
}
.quote p {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink-900);
  letter-spacing: -0.01em;
}
.quote cite { display: block; margin-top: 1rem; font-style: normal; font-size: var(--fs-sm); color: var(--ink-500); }
.section--dark .quote p { color: var(--white); }
.section--dark .quote cite { color: rgba(255, 255, 255, 0.6); }

/* Highlight panel (e.g., first-year targets) */
.panel {
  padding: clamp(1.75rem, 1.4rem + 1.5vw, 2.75rem);
  border-radius: var(--radius-lg);
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.78);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.panel h3 { color: var(--white); }
.panel .glow { width: 320px; height: 320px; right: -120px; top: -120px; }

/* 17. ANIMATIONS / REVEAL ================================================= */
@keyframes hero-drift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.1) translate3d(-1.5%, -1%, 0); }
}

/* Elements fade/slide in when scrolled into view (JS adds .is-visible).
   Only applied when JS is running (html.js) so content is never hidden without JS. */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--delay, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* 18. UTILITIES =========================================================== */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 2rem; }
.muted { color: var(--ink-500); }
.small { font-size: var(--fs-sm); }
