/* ==========================================================================
   Kicks for Kids Foundation — styles.css
   Design system: design-system/MASTER.md
   Deep navy + sky accent · Fraunces/Inter editorial pairing · reveal motion
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --navy-950: #050d1a;
  --navy-900: #081527;
  --navy-850: #0b1f3a;
  --navy-800: #122a4d;
  --navy-700: #1b3a66;

  /* Brand cyan sampled from the KFK logo wordmark */
  --sky-300: #93ddf8;
  --sky-400: #55cbf3;
  --sky-500: #18b9ec;
  --sky-700: #0b7ca9;

  --leaf-600: #2f7d47;

  --ink: #111e30;
  --ink-soft: #3e5064;
  --paper: #f6f4ef;
  --white: #ffffff;

  --line-dark: rgba(255, 255, 255, 0.12);
  --line-light: rgba(17, 30, 48, 0.12);

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;

  --text-hero: clamp(2.75rem, 6.5vw, 5.25rem);
  --text-h1: clamp(2.5rem, 5.5vw, 4.25rem);
  --text-h2: clamp(2rem, 4vw, 3.1rem);
  --text-h3: clamp(1.25rem, 2vw, 1.5rem);
  --text-lead: clamp(1.125rem, 1.6vw, 1.375rem);

  --space-section: clamp(4.5rem, 10vw, 8rem);
  --container: 72rem;
  --container-wide: 80rem;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-micro: 200ms;
  --dur-enter: 700ms;

  --radius-card: 18px;
  --shadow-card: 0 2px 6px rgba(8, 21, 39, 0.06), 0 18px 44px rgba(8, 21, 39, 0.1);
  --shadow-card-hover: 0 4px 10px rgba(8, 21, 39, 0.08), 0 28px 60px rgba(8, 21, 39, 0.16);

  --header-h: 76px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink-soft);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 { font-size: var(--text-h1); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); font-family: var(--font-body); font-weight: 600; line-height: 1.3; }

p {
  margin: 0 0 1.2em;
}

a {
  color: var(--sky-700);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

::selection {
  background: var(--sky-400);
  color: var(--navy-900);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  background: var(--navy-900);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  transition: top var(--dur-micro) ease;
}

.skip-link:focus {
  top: 1rem;
}

/* ---------- Layout helpers ---------- */
.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.container--wide {
  width: min(100% - 2.5rem, var(--container-wide));
}

.section {
  padding-block: var(--space-section);
  position: relative;
}

.section--paper { background: var(--paper); }
.section--navy {
  background:
    radial-gradient(90rem 40rem at 85% -10%, rgba(63, 169, 230, 0.14), transparent 60%),
    radial-gradient(70rem 36rem at 0% 110%, rgba(27, 58, 102, 0.55), transparent 65%),
    var(--navy-900);
  color: rgba(255, 255, 255, 0.82);
}

.section--navy h1,
.section--navy h2,
.section--navy h3,
.section--navy h4 { color: var(--white); }

.section--navy a { color: var(--sky-300); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sky-700);
  margin-bottom: 1.1rem;
}

.eyebrow::before {
  content: "";
  width: 2rem;
  height: 2px;
  background: currentColor;
  opacity: 0.7;
}

.section--navy .eyebrow { color: var(--sky-400); }

.lead {
  font-size: var(--text-lead);
  line-height: 1.55;
  max-width: 44ch;
}

.prose {
  max-width: 65ch;
}

.prose > p + p { margin-top: 1.2em; }

.section-head {
  max-width: 52rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head--center .eyebrow { justify-content: center; }
.section-head--center .lead { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.8em 1.8em;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--dur-micro) var(--ease-out),
    box-shadow var(--dur-micro) var(--ease-out),
    background-color var(--dur-micro) ease,
    color var(--dur-micro) ease,
    border-color var(--dur-micro) ease;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
  transition: transform var(--dur-micro) var(--ease-out);
}

.btn:hover svg { transform: translateX(3px); }

.btn:active { transform: scale(0.97); }

.btn--primary {
  background: var(--sky-500);
  color: var(--navy-900);
}

.btn--primary:hover {
  background: var(--sky-400);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(63, 169, 230, 0.35);
}

.btn--ghost {
  border-color: rgba(17, 30, 48, 0.35);
  color: var(--ink);
  background: transparent;
}

.btn--ghost:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

.section--navy .btn--ghost,
.hero .btn--ghost,
.site-footer .btn--ghost {
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--white);
}

.section--navy .btn--ghost:hover,
.hero .btn--ghost:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  text-decoration: none;
}

.text-link svg {
  width: 17px;
  height: 17px;
  transition: transform var(--dur-micro) var(--ease-out);
}

.text-link:hover svg { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  transition: background-color 300ms ease, box-shadow 300ms ease, backdrop-filter 300ms ease;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: var(--header-h);
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(8, 21, 39, 0.92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08), 0 10px 30px rgba(5, 13, 26, 0.35);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
}

.brand img {
  height: 44px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2rem);
}

.site-nav a:not(.btn) {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.4rem 0.1rem;
  position: relative;
}

.site-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--sky-400);
  transition: right var(--dur-micro) var(--ease-out);
}

.site-nav a:not(.btn):hover::after,
.site-nav a:not(.btn)[aria-current="page"]::after {
  right: 0;
}

.site-nav a:not(.btn):hover,
.site-nav a:not(.btn)[aria-current="page"] {
  color: var(--white);
}

.site-nav .btn {
  min-height: 42px;
  padding: 0.55em 1.4em;
  font-size: 0.95rem;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--white);
  cursor: pointer;
}

.nav-toggle svg { width: 26px; height: 26px; }
.nav-toggle .icon-close { display: none; }
.site-header.is-open .icon-menu { display: none; }
.site-header.is-open .icon-close { display: block; }

@media (max-width: 1023px) {
  .nav-toggle { display: inline-flex; }

  /* Positioned absolutely below the header (not fixed): the header's
     backdrop-filter makes it the containing block for positioned children. */
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.25rem;
    padding: 2.5rem clamp(1.5rem, 6vw, 3rem) 3rem;
    background: linear-gradient(180deg, rgb(8, 21, 39), rgb(11, 31, 58));
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transition: opacity 250ms ease, visibility 0s linear 250ms;
  }

  .site-header.is-open .site-nav {
    visibility: visible;
    opacity: 1;
    transition-delay: 0s;
  }

  .site-nav a:not(.btn) {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 6vw, 2.4rem);
    font-weight: 450;
    padding: 0.35em 0;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 400ms var(--ease-out), transform 400ms var(--ease-out);
  }

  .site-header.is-open .site-nav a:not(.btn) {
    opacity: 1;
    transform: none;
    transition-delay: calc(60ms * var(--i, 0) + 80ms);
  }

  .site-nav .btn {
    margin-top: 1.75rem;
    min-height: 52px;
    font-size: 1.05rem;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 400ms var(--ease-out), transform 400ms var(--ease-out);
  }

  .site-header.is-open .site-nav .btn {
    opacity: 1;
    transform: none;
    transition-delay: 480ms;
  }

  body.nav-open {
    overflow: hidden;
  }
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
  background: var(--navy-900);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media video,
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(200deg, rgba(8, 21, 39, 0.25) 0%, rgba(8, 21, 39, 0.45) 55%, rgba(5, 13, 26, 0.88) 100%),
    linear-gradient(0deg, rgba(5, 13, 26, 0.55) 0%, transparent 40%);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
  padding-block: clamp(6rem, 14vh, 9rem) clamp(4.5rem, 10vh, 7rem);
}

.hero .eyebrow {
  color: var(--sky-300);
}

.hero__title {
  font-size: var(--text-hero);
  font-weight: 480;
  color: var(--white);
  margin-bottom: 0.4em;
}

.hero__title .line {
  display: block;
  overflow: hidden;
  padding-block: 0.06em;
}

.hero__title .line > span {
  display: block;
  transform: translateY(112%);
}

body.is-loaded .hero__title .line > span {
  animation: line-rise 900ms var(--ease-out) forwards;
}

body.is-loaded .hero__title .line:nth-child(2) > span { animation-delay: 120ms; }
body.is-loaded .hero__title .line:nth-child(3) > span { animation-delay: 240ms; }

@keyframes line-rise {
  to { transform: translateY(0); }
}

.hero__sub {
  font-size: var(--text-lead);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.85);
  max-width: 46ch;
  margin-bottom: 2rem;
}

.hero__sub,
.hero__actions,
.hero .eyebrow {
  opacity: 0;
  transform: translateY(22px);
}

body.is-loaded .hero__sub,
body.is-loaded .hero__actions,
body.is-loaded .hero .eyebrow {
  animation: fade-rise 800ms var(--ease-out) forwards;
}

body.is-loaded .hero .eyebrow { animation-delay: 80ms; }
body.is-loaded .hero__sub { animation-delay: 380ms; }
body.is-loaded .hero__actions { animation-delay: 520ms; }

@keyframes fade-rise {
  to {
    opacity: 1;
    transform: none;
  }
}

.hero__scroll {
  position: absolute;
  z-index: 2;
  right: clamp(1.25rem, 4vw, 3rem);
  bottom: 2rem;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  writing-mode: vertical-rl;
}

.hero__scroll::after {
  content: "";
  width: 1px;
  height: 3.5rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), transparent);
  animation: scroll-pulse 2.2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { transform: scaleY(0.55); transform-origin: top; opacity: 0.5; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* ---------- Interior page hero ---------- */
.page-hero {
  position: relative;
  background:
    radial-gradient(80rem 40rem at 90% -20%, rgba(63, 169, 230, 0.18), transparent 60%),
    radial-gradient(60rem 30rem at -10% 120%, rgba(27, 58, 102, 0.6), transparent 60%),
    var(--navy-900);
  color: rgba(255, 255, 255, 0.82);
  padding-top: calc(var(--header-h) + clamp(3.5rem, 9vw, 6.5rem));
  padding-bottom: clamp(3.5rem, 8vw, 6rem);
  overflow: hidden;
}

.page-hero h1 {
  color: var(--white);
  max-width: 16ch;
  font-weight: 480;
}

.page-hero .lead {
  color: rgba(255, 255, 255, 0.82);
}

.page-hero .eyebrow { color: var(--sky-400); }

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
}

.stat__value {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 4.75rem);
  font-weight: 480;
  line-height: 1;
  color: var(--white);
  letter-spacing: -0.015em;
  font-variant-numeric: lining-nums;
  display: flex;
  align-items: baseline;
}

.stat__value .suffix { color: var(--sky-400); }

.stat__label {
  margin-top: 0.6rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.66);
  max-width: 22ch;
}

.stat {
  padding-top: 1.4rem;
  border-top: 1px solid var(--line-dark);
}

/* Light variant */
.stats--light .stat { border-top-color: var(--line-light); }
.stats--light .stat__value { color: var(--ink); }
.stats--light .stat__value .suffix { color: var(--sky-700); }
.stats--light .stat__label { color: var(--ink-soft); }

/* ---------- Cards / pillars ---------- */
.card-grid {
  display: grid;
  gap: clamp(1.25rem, 2.5vw, 2rem);
  grid-template-columns: repeat(auto-fit, minmax(min(19rem, 100%), 1fr));
}

.pillar {
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-card);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  box-shadow: var(--shadow-card);
  transition: transform 350ms var(--ease-out), box-shadow 350ms var(--ease-out);
}

.pillar:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}

.pillar__num {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: var(--sky-700);
  display: block;
  margin-bottom: 1.4rem;
}

.pillar__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(63, 169, 230, 0.14);
  color: var(--sky-700);
  margin-bottom: 1.4rem;
}

.pillar__icon svg { width: 26px; height: 26px; }

.pillar h3 { margin-bottom: 0.5rem; }

.pillar p { margin: 0; font-size: 0.99rem; }

/* Feature pillars (Development / Resilience / Diplomacy) */
.pillar--feature {
  position: relative;
  overflow: hidden;
}

.pillar--feature::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  width: 2.75rem;
  background: linear-gradient(90deg, var(--sky-500), var(--sky-300));
  transition: width 550ms var(--ease-out);
}

.pillar--feature:hover::before {
  width: 100%;
}

.pillar--feature::after {
  content: attr(data-num);
  position: absolute;
  top: 1rem;
  right: 1.4rem;
  font-family: var(--font-display);
  font-size: 3.75rem;
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
  opacity: 0.07;
  pointer-events: none;
  transition: transform 500ms var(--ease-out), opacity 300ms ease;
}

.pillar--feature:hover::after {
  transform: translateY(-5px);
  opacity: 0.14;
}

.pillar--feature .pillar__icon {
  background: linear-gradient(135deg, rgba(24, 185, 236, 0.2), rgba(24, 185, 236, 0.05));
  transition: transform 450ms var(--ease-out), box-shadow 450ms var(--ease-out);
}

.pillar--feature:hover .pillar__icon {
  transform: translateY(-5px);
  box-shadow: 0 10px 24px rgba(24, 185, 236, 0.28);
}

.pillar--feature .pillar__icon svg {
  transition: transform 450ms var(--ease-out);
}

.pillar--feature:hover .pillar__icon svg {
  transform: rotate(-8deg) scale(1.1);
}

/* Dark card variant */
.section--navy .pillar {
  background: rgba(255, 255, 255, 0.045);
  border-color: var(--line-dark);
  box-shadow: none;
}

.section--navy .pillar__icon {
  background: rgba(92, 184, 236, 0.16);
  color: var(--sky-300);
}

/* ---------- Split feature (image + text) ---------- */
.split {
  display: grid;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}

@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--rev > .split__media { order: 2; }
}

.split__media {
  position: relative;
}

.split__media img {
  width: 100%;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card-hover);
  object-fit: cover;
}

/* Photo lift: soft brand glow behind the image + gentle scroll parallax
   (applied via [data-parallax] in main.js) lifts photos off the page. */
.photo-lift {
  position: relative;
}

.photo-lift::before {
  content: "";
  position: absolute;
  inset: 14% -7% -5% 10%;
  background: radial-gradient(closest-side, rgba(24, 185, 236, 0.38), transparent 72%);
  filter: blur(30px);
  z-index: -1;
  pointer-events: none;
}

.photo-lift img {
  will-change: transform;
}

.split__caption {
  margin-top: 0.9rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
  opacity: 0.85;
}

.section--navy .split__caption { color: rgba(255, 255, 255, 0.6); }

/* ---------- Quote ---------- */
.pull-quote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-style: italic;
  font-weight: 420;
  line-height: 1.35;
  color: var(--ink);
  max-width: 30ch;
  margin: 0;
}

.pull-quote footer {
  margin-top: 1.5rem;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.section--navy .pull-quote { color: var(--white); }
.section--navy .pull-quote footer { color: rgba(255, 255, 255, 0.65); }

.pull-quote .mark {
  color: var(--sky-500);
  font-size: 1.4em;
  line-height: 0;
  vertical-align: -0.3em;
  margin-right: 0.1em;
}

/* ---------- Horizontal scroll gallery ---------- */
.gallery {
  position: relative;
}

.gallery__track {
  display: flex;
  gap: clamp(1rem, 2vw, 1.5rem);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.5rem max(calc((100vw - var(--container-wide)) / 2 + 1.25rem), 1.25rem) 1.5rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.gallery__track::-webkit-scrollbar { display: none; }

.gallery__item {
  flex: 0 0 min(78vw, 520px);
  scroll-snap-align: start;
}

.gallery__track {
  scroll-padding-inline: max(calc((100vw - var(--container-wide)) / 2 + 1.25rem), 1.25rem);
}

.gallery__item img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.gallery__item figcaption {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.66);
  padding-inline: 0.25rem;
}

.gallery--light .gallery__item figcaption { color: var(--ink-soft); }

.gallery__nav {
  display: none;
  gap: 0.6rem;
  position: absolute;
  top: -4.5rem;
  right: max(calc((100vw - var(--container-wide)) / 2 + 1.25rem), 1.25rem);
}

@media (min-width: 1024px) {
  .gallery__nav { display: flex; }
}

.gallery__btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--line-dark);
  background: transparent;
  color: var(--white);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background-color var(--dur-micro) ease, border-color var(--dur-micro) ease, transform var(--dur-micro) ease;
}

.gallery--light .gallery__btn {
  border-color: var(--line-light);
  color: var(--ink);
}

.gallery__btn:hover {
  background: rgba(92, 184, 236, 0.15);
  border-color: var(--sky-400);
  transform: translateY(-2px);
}

.gallery__btn svg { width: 20px; height: 20px; }

/* ---------- Photo mosaic (field galleries) ---------- */
.mosaic {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.25rem 1.25rem 1.25rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.mosaic::-webkit-scrollbar { display: none; }

.mosaic__item {
  position: relative;
  margin: 0;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--navy-850);
  flex: 0 0 80vw;
  aspect-ratio: 3 / 2;
  scroll-snap-align: center;
}

.mosaic__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 800ms var(--ease-out);
}

.mosaic__item:hover img,
.mosaic__item:focus-within img {
  transform: scale(1.055);
}

.mosaic__item figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2.75rem 1.2rem 1rem;
  background: linear-gradient(180deg, transparent, rgba(5, 13, 26, 0.82));
  color: rgba(255, 255, 255, 0.94);
  font-size: 0.875rem;
  line-height: 1.45;
}

@media (min-width: 768px) {
  .mosaic {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: clamp(150px, 17vw, 230px);
    gap: clamp(0.9rem, 1.6vw, 1.25rem);
    overflow: visible;
    padding: 0;
  }

  .mosaic__item {
    flex: none;
    aspect-ratio: auto;
    grid-column: span 2;
  }

  .mosaic__item--feature {
    grid-column: span 4;
    grid-row: span 2;
  }

  .mosaic__item--wide {
    grid-column: span 3;
  }
}

/* Mask reveal for mosaic items: a vertical wipe as they enter.
   Initial clip keeps >=15% visible: Chrome counts the target's own
   clip-path in IntersectionObserver ratios, so a near-total clip
   would never cross the reveal threshold. */
[data-reveal="wipe"] {
  opacity: 0;
  transform: none;
  clip-path: inset(0 0 85% 0 round var(--radius-card));
  transition: opacity 500ms ease, clip-path 950ms var(--ease-out);
  transition-delay: var(--d, 0ms);
}

[data-reveal="wipe"].is-in {
  opacity: 1;
  clip-path: inset(0 0 0 0 round var(--radius-card));
}

/* ---------- Essay list (From the Ground Up) ---------- */
.essay-list {
  border-top: 1px solid var(--line-light);
}

.essay-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(1.25rem, 3.5vw, 3rem);
  align-items: center;
  padding: clamp(1.6rem, 3vw, 2.4rem) clamp(0.25rem, 1vw, 1rem);
  border-bottom: 1px solid var(--line-light);
  text-decoration: none;
  color: inherit;
  transition: background-color 300ms ease;
}

.essay-row:hover {
  background: rgba(24, 185, 236, 0.07);
}

.essay-row__num {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 500;
  color: var(--sky-700);
  align-self: start;
  padding-top: 0.2em;
}

.essay-row__kicker {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sky-700);
}

.essay-row h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  line-height: 1.2;
  margin: 0.3em 0 0.35em;
  transition: color 200ms ease;
}

.essay-row:hover h3 {
  color: var(--sky-700);
}

.essay-row p {
  margin: 0;
  font-size: 0.97rem;
  max-width: 62ch;
}

.essay-row__meta {
  margin-top: 0.6rem;
  font-size: 0.84rem;
  color: var(--ink-soft);
  opacity: 0.85;
}

.essay-row__arrow {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1.5px solid var(--line-light);
  display: grid;
  place-items: center;
  color: var(--ink);
  transition: background-color 250ms ease, border-color 250ms ease,
    color 250ms ease, transform 350ms var(--ease-out);
}

.essay-row__arrow svg {
  width: 20px;
  height: 20px;
}

.essay-row:hover .essay-row__arrow {
  background: var(--sky-500);
  border-color: var(--sky-500);
  color: var(--navy-900);
  transform: translateX(6px);
}

@media (max-width: 640px) {
  .essay-row {
    grid-template-columns: auto 1fr;
  }

  .essay-row__arrow { display: none; }
}

/* ---------- Partner roll (simple honour list) ---------- */
.partner-roll {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-light);
}

.partner-roll li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.35rem 2rem;
  padding: clamp(1.2rem, 2.5vw, 1.75rem) 0.25rem;
  border-bottom: 1px solid var(--line-light);
  transition: padding-left 350ms var(--ease-out), background-color 250ms ease;
}

.partner-roll li:hover {
  padding-left: 1rem;
  background: rgba(24, 185, 236, 0.05);
}

.partner-roll .name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.3rem, 2.8vw, 1.9rem);
  color: var(--ink);
  line-height: 1.25;
}

.partner-roll .role {
  font-size: 0.88rem;
  color: var(--ink-soft);
}

/* ---------- Marquee (partners) ---------- */
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee__track {
  display: flex;
  gap: clamp(3rem, 6vw, 5rem);
  width: max-content;
  align-items: center;
  animation: marquee 36s linear infinite;
  padding-block: 0.5rem;
}

.marquee:hover .marquee__track { animation-play-state: paused; }

@keyframes marquee {
  to { transform: translateX(-50%); }
}

.marquee__item {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 450;
  color: var(--ink);
  opacity: 0.62;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: clamp(3rem, 6vw, 5rem);
}

.marquee__item::after {
  content: "·";
  color: var(--sky-500);
  opacity: 0.9;
}

/* ---------- Story teaser band ---------- */
.band-cta {
  text-align: center;
}

.band-cta h2 {
  max-width: 22ch;
  margin-inline: auto;
}

.band-cta .lead {
  margin-inline: auto;
  margin-bottom: 2.2rem;
}

.band-cta .btn-row { justify-content: center; }

/* ---------- Article cards ---------- */
.article-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-card);
  padding: clamp(1.6rem, 3vw, 2.2rem);
  box-shadow: var(--shadow-card);
  text-decoration: none;
  color: inherit;
  transition: transform 350ms var(--ease-out), box-shadow 350ms var(--ease-out);
}

.article-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}

.article-card__kicker {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sky-700);
  margin-bottom: 1rem;
}

.article-card h3 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 0.7rem;
}

.article-card p {
  font-size: 0.97rem;
  margin-bottom: 1.4rem;
}

.article-card .text-link {
  margin-top: auto;
  color: var(--sky-700);
}

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  max-width: 46rem;
  padding-left: 2.25rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--sky-500), rgba(63, 169, 230, 0.1));
}

.timeline__item {
  position: relative;
  padding-bottom: clamp(2rem, 4vw, 3rem);
}

.timeline__item:last-child { padding-bottom: 0; }

.timeline__item::before {
  content: "";
  position: absolute;
  left: calc(-2.25rem + 2px);
  top: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--navy-900);
  border: 3px solid var(--sky-500);
}

.timeline__year {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--sky-700);
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: 0.35rem;
}

.timeline__item h3 { margin-bottom: 0.4rem; }

.timeline__item p {
  margin: 0;
  max-width: 58ch;
}

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.25rem);
  grid-template-columns: repeat(auto-fill, minmax(min(16rem, 100%), 1fr));
}

.team-card {
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 350ms var(--ease-out), box-shadow 350ms var(--ease-out);
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
}

.team-card__photo {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--navy-850);
}

.team-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: transform 600ms var(--ease-out);
}

.team-card:hover .team-card__photo img { transform: scale(1.045); }

.team-card__body {
  padding: 1.4rem 1.5rem 1.5rem;
}

.team-card__body h3 {
  margin-bottom: 0.15rem;
  font-size: 1.2rem;
}

.team-card__role {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sky-700);
  margin-bottom: 0.9rem;
}

.team-card details summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0;
  min-height: 44px;
  align-items: center;
}

.team-card details summary::-webkit-details-marker { display: none; }

.team-card details summary svg {
  width: 16px;
  height: 16px;
  transition: transform var(--dur-micro) ease;
}

.team-card details[open] summary svg { transform: rotate(45deg); }

.team-card details p {
  font-size: 0.94rem;
  margin: 0.5rem 0 0;
}

.team-card details p + p { margin-top: 0.8em; }

/* ---------- Partner lists ---------- */
.partner-cat {
  padding: clamp(1.75rem, 3vw, 2.4rem);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-card);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.partner-cat h3 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
}

.partner-cat h3 svg {
  width: 22px;
  height: 22px;
  color: var(--sky-700);
  flex: none;
}

.partner-cat ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.partner-cat li {
  padding: 0.6rem 0;
  border-top: 1px solid rgba(17, 30, 48, 0.08);
  font-size: 0.98rem;
}

.partner-cat li strong {
  color: var(--ink);
  font-weight: 600;
}

.partner-cat li .note {
  display: block;
  font-size: 0.86rem;
  opacity: 0.8;
}

/* ---------- Value strip ---------- */
.value-strip {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
  counter-reset: value;
}

.value-strip__item {
  border-top: 2px solid var(--sky-500);
  padding-top: 1.25rem;
}

.value-strip__item h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.45rem;
  color: var(--white);
}

.value-strip__item p {
  font-size: 0.96rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

/* ---------- Forms ---------- */
.form-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-grid .form-field--full { grid-column: 1 / -1; }
}

.form-field label {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.45rem;
}

.form-field label .req {
  color: var(--sky-700);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 52px;
  padding: 0.8rem 1rem;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid rgba(17, 30, 48, 0.22);
  border-radius: 12px;
  transition: border-color var(--dur-micro) ease, box-shadow var(--dur-micro) ease;
}

.form-field textarea {
  min-height: 9rem;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--sky-500);
  box-shadow: 0 0 0 3px rgba(63, 169, 230, 0.25);
}

.form-field .hint {
  font-size: 0.85rem;
  margin-top: 0.4rem;
  color: var(--ink-soft);
}

.form-status {
  margin-top: 1rem;
  font-weight: 600;
  color: var(--leaf-600);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-950);
  color: rgba(255, 255, 255, 0.72);
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 2rem;
  font-size: 0.95rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--sky-300);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line-dark);
}

.footer-brand img {
  height: 52px;
  width: auto;
  margin-bottom: 1.1rem;
}

.footer-brand p {
  max-width: 34ch;
  margin: 0;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sky-400);
  margin-bottom: 1.1rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li { padding: 0.32rem 0; }

.footer-social {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.2rem;
}

.footer-social a {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: border-color var(--dur-micro) ease, background-color var(--dur-micro) ease, transform var(--dur-micro) ease;
}

.footer-social a:hover {
  border-color: var(--sky-400);
  background: rgba(92, 184, 236, 0.12);
  transform: translateY(-2px);
}

.footer-social svg { width: 19px; height: 19px; }

.footer-legal {
  padding-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-legal p { margin: 0; }

.footer-ack {
  padding-top: 1.5rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  max-width: 72ch;
}

/* ---------- Article (From the Ground Up) ---------- */
.article-hero {
  padding-top: calc(var(--header-h) + clamp(3rem, 8vw, 5.5rem));
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
}

.article-hero h1 {
  max-width: 20ch;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

.article-body {
  max-width: 44rem;
  margin-inline: auto;
  font-size: 1.125rem;
  line-height: 1.8;
}

.article-body h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin-top: 2.2em;
}

.article-body blockquote {
  margin: 2.5rem 0;
  padding-left: 1.5rem;
  border-left: 3px solid var(--sky-500);
  font-family: var(--font-display);
  font-size: 1.35em;
  font-style: italic;
  line-height: 1.45;
  color: var(--ink);
}

.article-body .article-note {
  margin-top: 3rem;
  padding: 1.5rem 1.75rem;
  background: var(--paper);
  border-radius: var(--radius-card);
  font-size: 0.95rem;
}

/* ---------- Reveal animations ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur-enter) var(--ease-out), transform var(--dur-enter) var(--ease-out);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform;
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

[data-reveal="fade"] { transform: none; }

[data-reveal="left"] { transform: translateX(-36px); }
[data-reveal="right"] { transform: translateX(36px); }

[data-reveal="left"].is-in,
[data-reveal="right"].is-in { transform: none; }

/* ---------- Misc ---------- */
.country-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.country-cloud li {
  padding: 0.5rem 1.05rem;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.8);
  transition: border-color var(--dur-micro) ease, color var(--dur-micro) ease, background-color var(--dur-micro) ease;
}

.country-cloud li:hover {
  border-color: var(--sky-400);
  color: var(--white);
  background: rgba(92, 184, 236, 0.1);
}

.country-cloud li.is-highlight {
  border-color: var(--sky-500);
  color: var(--sky-300);
  font-weight: 600;
}

.archive-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(min(17rem, 100%), 1fr));
}

.archive-card {
  border-radius: var(--radius-card);
  overflow: hidden;
  position: relative;
  background: var(--navy-850);
  border: 1px solid var(--line-dark);
}

.archive-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  opacity: 0.92;
  transition: transform 600ms var(--ease-out), opacity 300ms ease;
}

.archive-card:hover img {
  transform: scale(1.04);
  opacity: 1;
}

.archive-card figcaption {
  padding: 1rem 1.2rem 1.2rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.72);
}

.archive-card figcaption strong {
  display: block;
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
  font-weight: 600;
}

.step-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
  display: grid;
  gap: 1.75rem;
}

.step-list li {
  counter-increment: step;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
}

.step-list li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--sky-700);
  line-height: 1.3;
}

.section--navy .step-list li::before { color: var(--sky-400); }

.step-list h3 { margin-bottom: 0.25rem; }
.step-list p { margin: 0; font-size: 0.98rem; }

.divider-soft {
  border: 0;
  height: 1px;
  background: var(--line-light);
  margin: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  [data-reveal] {
    opacity: 1;
    transform: none;
    clip-path: none;
    transition: none;
  }

  .hero__title .line > span,
  .hero__sub,
  .hero__actions,
  .hero .eyebrow {
    transform: none;
    opacity: 1;
    animation: none !important;
  }

  .marquee__track {
    animation: none;
    flex-wrap: wrap;
    width: auto;
    justify-content: center;
  }

  .marquee { mask-image: none; -webkit-mask-image: none; }

  .hero__scroll::after { animation: none; }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ---------- Print ---------- */
@media print {
  .site-header,
  .hero__scroll,
  .site-footer .footer-social,
  .nav-toggle { display: none; }
}
