/* ============================================================
   COMPLX PLAY — complxplay.com
   Rebuilt from the Framer site as plain HTML/CSS/JS.
   Measurements and colours were taken from the live Framer build.
   ============================================================ */

:root {
  --bg: #000;
  --ink: #fff;
  --muted: #B3B3B3;
  --soft: #D5DBE6;          /* card copy */
  --navy: #04070D;          /* card ground */
  --link: #0099FF;
  --green: #32CA92;         /* stats, gradient foot */
  --blue: #006CAA;          /* gradient head */
  --mint: #3DFFB8;
  --sky: #00A2FF;
  --edge: rgba(207, 231, 255, 0.2);   /* inset top highlight on cards */

  --inter: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'Fragment Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --anton: 'Anton SC', 'Anton', Impact, sans-serif;

  --max: 1160px;
  --pad: 24px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--inter);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.wrap { width: min(100% - var(--pad) * 2, var(--max)); margin-inline: auto; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 4px; }

/* Card surface used across the site */
.card {
  background: var(--navy);
  border-radius: 12px;
  box-shadow: inset 0 2px 1px 0 var(--edge);
}

/* Gradient text */
.grad-a {
  background: linear-gradient(0deg, var(--green) 0%, var(--blue) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.grad-b {
  background: linear-gradient(0deg, var(--mint) 0%, var(--sky) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Reveal */
.js .rv { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0ms); }
.js .rv.in { opacity: 1; transform: none; }


/* ============================================================
   NAV — frosted pill, top centre, with a drop-down menu
   ============================================================ */
.nav {
  position: fixed;
  top: 20px; left: 50%;
  z-index: 50;
  width: 252px;
  transform: translateX(-50%);
  border-radius: 24px;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    0 0.6px 0.6px -1.25px rgba(0, 0, 0, 0.18),
    0 2.3px 2.3px -2.5px rgba(0, 0, 0, 0.16),
    0 10px 10px -3.75px rgba(0, 0, 0, 0.06);
  transition: background 0.3s;
}
.nav.is-open { background: rgba(20, 20, 20, 0.55); }
.nav-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 46px;
  padding: 0 14px 0 24px;
}
.nav-logo { font-size: 18px; letter-spacing: 0; }
.nav-toggle { width: 36px; height: 36px; display: grid; place-items: center; }
.nav-toggle i {
  position: absolute;
  width: 18px; height: 1.5px;
  background: #fff;
  transition: transform 0.35s var(--ease);
}
.nav-toggle i:first-child { transform: translateY(-3px); }
.nav-toggle i:last-child  { transform: translateY(3px); }
.nav.is-open .nav-toggle i:first-child { transform: rotate(45deg) scaleX(1.25); }
.nav.is-open .nav-toggle i:last-child  { transform: rotate(-45deg) scaleX(1.25); }
.nav-menu {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease);
}
.nav.is-open .nav-menu { grid-template-rows: 1fr; }
.nav-menu ul { overflow: hidden; padding: 0 24px; }
.nav.is-open .nav-menu ul { padding-bottom: 14px; }
.nav-menu a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.2s;
}
.nav-menu a:hover { color: #fff; }
.nav-menu a::after { content: '↗'; font-size: 14px; opacity: 0.8; }


/* ============================================================
   BUTTONS
   ============================================================ */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  border-radius: 100px;
  font-size: 14px;
  letter-spacing: -0.01em;
  line-height: 1;
  transition: transform 0.2s, background 0.2s, color 0.2s;
}
.pill:hover { transform: translateY(-1px); }
.pill--solid { background: #fff; color: #000; }
.pill--line  { border: 2px solid #fff; color: #fff; }
.pill--line:hover { background: #fff; color: #000; }

/* Dark CTA button with a soft glow underneath */
.glow-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: 8px;
  background: var(--navy);
  box-shadow: inset 0 1px 1px 0 var(--edge);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
  transition: transform 0.2s;
}
.glow-btn::after {
  content: '';
  position: absolute;
  left: 15%; right: 15%; bottom: -10px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  filter: blur(10px);
  opacity: 0.6;
  z-index: -1;
}
.glow-btn:hover { transform: translateY(-2px); }
.glow-btn svg { width: 12px; height: 12px; }


/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}
.hero-film {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero::after {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 40%, rgba(0,0,0,0.55) 80%, rgba(0,0,0,0.8) 100%);
}
.hero-copy {
  width: min(100% - 48px, 960px);
  margin: 0 auto 120px;
  text-align: center;
}
.hero-title {
  font-family: var(--mono);
  font-weight: 400;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.hero-sub {
  font-family: var(--mono);
  font-size: clamp(14px, 1.2vw, 17px);
  line-height: 1.2;
  letter-spacing: -0.04em;
  color: var(--muted);
  max-width: 940px;
  margin: 0 auto 24px;
}
.hero-ctas { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

/* Partner marquee pinned to the bottom of the hero */
.marquee {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}
.marquee-track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: marquee 40s linear infinite;
}
.marquee img { height: 66px; width: auto; }
.hero .marquee { position: absolute; left: 0; right: 0; bottom: 0; padding-bottom: 0; transform: translateY(18%); }
@keyframes marquee { to { transform: translateX(-50%); } }


/* ============================================================
   ABOUT
   ============================================================ */
.about { padding: 120px 0 60px; }
.about-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  min-height: 365px;
  padding: 32px 48px;
  border-radius: 20px;
  background: linear-gradient(var(--navy) 0%, #000 100%);
  box-shadow: inset 0 2px 1px 0 var(--edge);
}
.about-copy { text-align: center; max-width: 440px; margin: 0 auto; }
.about-title {
  font-size: clamp(36px, 4vw, 50px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}
.about-copy p { font-size: 16px; line-height: 1.6; letter-spacing: -0.02em; color: #fff; }
.about-copy b { font-weight: 700; }
.about-media img { width: 100%; height: auto; }


/* ============================================================
   RING CAROUSEL — the inside of a slowly turning drum of photos
   ============================================================ */
.ring {
  --n: 14;
  --w: 210px;
  --gap: 22px;
  --r: calc((var(--w) + var(--gap)) * var(--n) / 6.2832);
  position: relative;
  height: 360px;
  overflow: hidden;
  perspective: 900px;
  perspective-origin: 50% 50%;
  mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
}
.ring-track {
  position: absolute;
  left: 50%; top: 50%;
  width: 0; height: 0;
  transform-style: preserve-3d;
  transform: translateZ(calc(var(--r) * -0.15)) rotateY(var(--spin, 0deg));
}
.ring figure {
  position: absolute;
  width: var(--w);
  aspect-ratio: 1;
  left: calc(var(--w) / -2);
  top: calc(var(--w) / -2);
  transform: rotateY(calc(var(--i) * 360deg / var(--n))) translateZ(calc(var(--r) * -1));
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(0, 120, 255, 0.08);
}
.ring figure.tall { aspect-ratio: 260 / 370; top: calc(var(--w) * -0.71); }
.ring img { width: 100%; height: 100%; object-fit: cover; }
.ring::after {
  /* the blue floor glow under the drum */
  content: '';
  position: absolute;
  left: 30%; right: 30%; bottom: 18px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 140, 255, 0.35);
  filter: blur(30px);
  pointer-events: none;
}


/* ============================================================
   MILES FOR A MISSION
   ============================================================ */
.mission { padding: 60px 0; }
.mission-card { overflow: hidden; }
.mission-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  border-radius: 12px 12px 0 0;
  box-shadow: inset 0 -1px 1px 0 rgba(207, 231, 255, 0.1);
}
.hand-heart { width: 26px; height: 26px; flex: none; color: #fff; }
.mission-head h2 {
  flex: 1;
  text-align: center;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 22px;
}
.mission-dots { display: flex; gap: 6px; }
.mission-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); }
.mission-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 40px;
  padding: 32px 40px 40px;
}
.mission-date { font-size: 20px; font-weight: 500; letter-spacing: -0.01em; color: var(--soft); margin-bottom: 14px; }
.mission-text { font-size: 13px; line-height: 1.6; letter-spacing: -0.02em; color: var(--soft); max-width: 420px; }
.mission-text a, .link { color: var(--link); }
.mission-text a:hover, .link:hover { text-decoration: underline; }
.mission-join { margin: 32px 0 14px; font-size: 16px; }
.mission-steps { display: grid; grid-template-columns: 1.65fr 1fr; gap: 10px; max-width: 420px; }
.mission-steps > * { padding: 16px; border-radius: 12px; background: var(--navy); box-shadow: inset 0 2px 1px 0 var(--edge); }
.mission-steps ol { display: grid; gap: 18px; font-size: 13px; }
.mission-donate { position: relative; display: block; font-size: 13px; line-height: 1.2; color: var(--link); }
.mission-donate .hand-heart { position: absolute; top: 0; right: 0; width: 22px; height: 22px; }
.mission-donate span { display: block; padding-top: 16px; }
.mission-photo img { width: 100%; height: auto; }


/* ============================================================
   TIMELINE — "How it works" / roadmap
   ============================================================ */
.timeline-head { position: relative; padding: 80px 0 40px; text-align: center; }
.bar {
  position: relative;
  width: min(100% - 48px, 1040px);
  height: 4px;
  margin: 0 auto 10px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
.bar i {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--blue), var(--green), var(--blue));
  transform-origin: left;
  transform: scaleX(var(--p, 0));
}
.timeline-head h2 { font-size: 22px; font-weight: 400; }

.timeline {
  position: relative;
  padding-bottom: 60px;
}
.timeline::before {
  /* geometric line art on both flanks */
  content: '';
  position: absolute; inset: 0;
  background: url(../img/lines.webp) center top / 1440px auto repeat-y;
  opacity: 0.3;
  pointer-events: none;
}
.trow {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 100px 1fr;
  min-height: 321px;
  width: min(100% - 48px, var(--max));
  margin: 0 auto;
}
.trow-line { position: relative; display: flex; justify-content: center; align-items: center; }
.trow-line::before {
  content: '';
  position: absolute; top: 0; bottom: 0; left: 50%;
  width: 2px; transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.14);
}
.trow-line::after {
  content: '';
  position: absolute; top: 0; left: 50%;
  width: 2px; height: calc(var(--p, 0) * 100%);
  transform: translateX(-50%);
  background: linear-gradient(to bottom, var(--blue), var(--green));
  box-shadow: 0 0 12px rgba(50, 202, 146, 0.6);
}
.trow-icon {
  position: relative; z-index: 1;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: #000;
}
.trow-icon img { width: 26px; height: 26px; object-fit: contain; }
.trow-num {
  position: relative; z-index: 1;
  padding: 6px 0;
  background: #000;
  font-size: 22px;
  color: rgba(255, 255, 255, 0.7);
}
.trow-body { align-self: center; max-width: 380px; padding: 24px 32px; }
.trow:nth-child(odd)  .trow-body { grid-column: 1; grid-row: 1; justify-self: end; text-align: right; }
.trow:nth-child(odd)  .trow-line { grid-column: 2; grid-row: 1; }
.trow:nth-child(even) .trow-body { grid-column: 3; grid-row: 1; justify-self: start; }
.trow:nth-child(even) .trow-line { grid-column: 2; grid-row: 1; }
.trow h3 {
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  padding-bottom: 0.1em;
}
.trow p { font-size: 16px; line-height: 1.4; letter-spacing: -0.01em; color: #fff; }
.trow ul, .trow ol { margin-top: 10px; display: grid; gap: 6px; font-size: 15px; color: #fff; }
.trow-end { display: flex; justify-content: center; padding-top: 16px; }
.trow-end img { width: 60px; height: auto; opacity: 0.9; }


/* ============================================================
   SPIN RING — "One Globe – One Community / Connected by Effort"
   ============================================================ */
.spin { position: relative; height: 380px; overflow: hidden; }
.spin-svg {
  position: absolute;
  left: 50%; top: 50%;
  width: min(1200px, 130vw);
  transform: translate(-50%, -50%) rotate(-12deg);
}
.spin text { fill: #fff; }
.spin .m { font-family: var(--mono); }
.spin .i { font-family: var(--inter); }
.spin .g { fill: url(#spinGrad); }
.spin-a, .spin-b { transform-box: view-box; transform-origin: 600px 1180px; }
.spin-a { animation: spin 160s linear infinite; }
.spin-b { animation: spin 180s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }


/* ============================================================
   STATS
   ============================================================ */
.stats { padding: 80px 0 100px; text-align: center; }
.stats h2 { font-family: var(--mono); font-weight: 400; font-size: 27px; letter-spacing: -0.05em; margin-bottom: 40px; }
.stats-grid { display: flex; justify-content: center; flex-wrap: wrap; gap: 40px; }
.stat {
  position: relative;
  width: 200px; height: 200px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}
.stat::after {
  content: '';
  position: absolute; left: 25%; right: 25%; bottom: -12px;
  height: 16px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  filter: blur(12px);
  opacity: 0.45;
}
.stat img { width: 52px; height: 52px; object-fit: contain; margin-bottom: 10px; }
.stat-num { color: var(--green); font-size: 32px; line-height: 1; font-variant-numeric: tabular-nums; }
.stat-num sup { font-size: 28px; font-weight: 500; vertical-align: 0; }
.stat-label { font-family: var(--mono); font-size: 17px; letter-spacing: -0.04em; }


/* ============================================================
   CTA — "Your team is already here."
   ============================================================ */
.cta { padding: 100px 0 120px; text-align: center; }
.cta-tag {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 16px; font-style: italic; letter-spacing: -0.02em; color: var(--soft);
  margin-bottom: 18px;
}
.cta-tag::before, .cta-tag::after { content: ''; width: 44px; height: 1px; background: rgba(213, 219, 230, 0.35); }
.cta h2 {
  font-size: clamp(32px, 3.6vw, 44px);
  font-weight: 500;
  line-height: 1.2;
  background: linear-gradient(161deg, var(--soft) 51.7%, var(--navy) 166%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 18px;
}
.cta p { font-size: 16px; color: var(--soft); letter-spacing: -0.02em; margin-bottom: 40px; }
.cta-buttons { display: flex; justify-content: center; flex-wrap: wrap; gap: 24px; isolation: isolate; }
.cta-mail { display: block; margin-top: 60px; font-size: 16px; color: var(--soft); }


/* ============================================================
   FOOTER — giant faint COMPLX
   ============================================================ */
.footer {
  position: relative;
  min-height: 321px;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.footer-word {
  position: absolute;
  left: 50%; bottom: -48px;
  transform: translateX(-50%);
  font-family: var(--anton);
  font-size: clamp(120px, 27.5vw, 396px);
  line-height: 0.6;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.04);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}
.footer-inner {
  position: relative;
  min-height: 321px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  padding: 40px var(--pad) 28px;
}
.footer-brand img { width: 42px; height: auto; margin-bottom: 12px; }
.footer-brand p { font-size: 15px; }
.footer-brand b { font-weight: 700; }
.footer-links { display: grid; gap: 10px; text-align: right; font-size: 15px; letter-spacing: -0.01em; }
.footer-links a:hover { color: var(--green); }


/* ============================================================
   DEVELOPMENT PAGE
   ============================================================ */
.dev-hero { padding: 150px 0 40px; text-align: center; }
.dev-kicker {
  font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 18px;
}
.dev-lede { font-size: clamp(20px, 2vw, 26px); font-weight: 500; line-height: 1.25; letter-spacing: -0.02em; max-width: 620px; margin: 0 auto 48px; }
.laptop { position: relative; width: min(100%, 760px); margin: 0 auto; }
.laptop-screen {
  position: relative;
  width: 78%;
  margin: 0 auto;
  aspect-ratio: 16 / 10;
  border: 10px solid #111;
  border-bottom-width: 14px;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
  background: #000;
  box-shadow: 0 0 0 1px #2a2a2a;
}
.laptop-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.laptop-base {
  width: 100%; height: 16px;
  border-radius: 0 0 14px 14px;
  background: linear-gradient(#3a3a3c, #1c1c1e);
  position: relative;
}
.laptop-base::before {
  content: ''; position: absolute; left: 42%; right: 42%; top: 0; height: 6px;
  border-radius: 0 0 8px 8px; background: #111;
}
.dev-block { padding: 90px 0 40px; text-align: center; }
.dev-block h2 { font-size: clamp(30px, 3vw, 40px); font-weight: 500; letter-spacing: -0.02em; margin-bottom: 14px; }
.dev-block p { font-size: 15px; line-height: 1.55; color: rgba(255, 255, 255, 0.7); max-width: 560px; margin: 0 auto 40px; }
.dev-shot {
  width: min(100%, 900px); height: auto;
  margin: 0 auto;
  border-radius: 14px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 30px 80px rgba(0, 108, 170, 0.25);
}
.trow-n { display: block; font-size: 22px; color: rgba(255, 255, 255, 0.6); margin-bottom: 8px; }
.partner-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 18px; padding: 0 var(--pad) 40px; }
.partner-row img { height: 56px; width: auto; }


/* ============================================================
   LEARN MORE
   ============================================================ */
.learn { position: relative; padding: 150px 0 80px; }
.learn::before {
  content: ''; position: absolute; inset: 0;
  background: url(../img/lines.webp) center top / 1440px auto repeat-y;
  opacity: 0.5; pointer-events: none;
}
.learn-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; max-width: 980px; margin: 0 auto; }
.learn-card {
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 300px; padding: 22px;
  border-radius: 6px;
  background: #fff; color: #000;
}
.learn-card:nth-child(2) { margin-top: 160px; }
.learn-card img { width: 40px; height: auto; }
.learn-h { font-size: 15px; font-weight: 500; margin-bottom: 6px; }
.learn-card p { font-size: 11px; color: rgba(0, 0, 0, 0.55); }


/* ============================================================
   GALLERY — columns of photos ticking upward behind the wordmark
   ============================================================ */
.gallery {
  position: relative;
  height: 100vh; height: 100svh;
  overflow: hidden;
  background: #0d0d0d;
}
.gallery-cols {
  position: absolute; inset: 0;
  display: grid;
  grid-template-columns: repeat(4, 125px);
  justify-content: center;
  gap: 35px;
}
.gallery-col { display: flex; flex-direction: column; gap: 35px; animation: tick-up 60s linear infinite; }
.gallery-col:nth-child(even) { animation-duration: 75s; animation-direction: reverse; }
.gallery-col img { width: 125px; height: 125px; object-fit: cover; border-radius: 6px; }
@keyframes tick-up { to { transform: translateY(-50%); } }
.gallery-word {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--anton);
  font-size: clamp(56px, 9vw, 130px);
  line-height: 1;
  white-space: nowrap;
  color: #fff;
  mix-blend-mode: difference;
  pointer-events: none;
}
.gallery-hint {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  font-size: 13px; color: rgba(255, 255, 255, 0.6);
}


/* ============================================================
   404
   ============================================================ */
.nf {
  min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center;
  text-align: center;
  padding: 0 var(--pad);
  background:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.12'/%3E%3C/svg%3E"),
    #0a0a0a;
}
.nf h1 { font-family: var(--mono); font-weight: 400; font-size: 22px; margin-bottom: 18px; }
.nf p { font-family: var(--mono); font-size: 18px; line-height: 1.4; color: #1E6FD9; max-width: 640px; }
.nf a { display: inline-block; margin-top: 28px; }


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .about-card { grid-template-columns: 1fr; padding: 32px 24px; }
  .about-media { order: -1; }
  .mission-body { grid-template-columns: 1fr; padding: 24px; }
  .mission-photo { order: -1; }
  .trow { grid-template-columns: 56px 1fr; min-height: 0; }
  .trow:nth-child(n) .trow-line { grid-column: 1; grid-row: 1; }
  .trow:nth-child(n) .trow-body { grid-column: 2; grid-row: 1; justify-self: start; text-align: left; padding: 40px 0 40px 16px; }
  .timeline::before { background-size: 900px auto; opacity: 0.35; }
  .learn-grid { grid-template-columns: 1fr; }
  .learn-card:nth-child(2) { margin-top: 0; }
}

@media (max-width: 600px) {
  .hero-copy { margin-bottom: 110px; }
  .marquee img { height: 48px; }
  .about { padding-top: 80px; }
  .ring { height: 260px; --w: 150px; --gap: 16px; perspective: 600px; }
  .mission-head h2 { font-size: 18px; }
  .mission-steps { grid-template-columns: 1fr; }
  .trow h3 { font-size: 24px; }
  .trow p { font-size: 15px; }
  .spin { height: 240px; }
  .spin-svg { width: 210vw; }
  .stats-grid { gap: 28px; }
  .stat { width: 100%; max-width: 260px; height: 170px; }
  .footer-inner { flex-direction: column-reverse; align-items: flex-start; }
  .footer-links { text-align: left; }
  .gallery-cols { grid-template-columns: repeat(3, 96px); gap: 16px; }
  .gallery-col { gap: 16px; }
  .gallery-col img { width: 96px; height: 96px; }
  .gallery-col:nth-child(4) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rv { opacity: 1; transform: none; transition: none; }
  .marquee-track, .gallery-col, .spin-a, .spin-b { animation: none !important; }
}
