/* ============================================================
   MOONSHOT 2026 - CODENICELY SOFTWARE SERVICES LLP
   Design system derived entirely from the CodeNicely logo:
   a green gradient mark running deep teal -> green -> lime.
   Sampled values: #21C58C, #35DE7A, #5CF84A
   Neutrals are near-black with a faint green cast. No other hues.
   ============================================================ */

/* ---------- 1. TOKENS ---------- */
:root {
  /* brand - sampled from assets/codenicely-logo.png */
  --cn-teal:  #21C58C;
  --cn-green: #35DE7A;
  --cn-lime:  #5CF84A;

  /* brand tints / shades */
  --cn-green-900: #04140C;
  --cn-green-800: #072016;
  --cn-green-700: #0B3323;
  --cn-green-600: #124A33;
  --cn-soft:  rgba(53, 222, 122, 0.10);
  --cn-softer: rgba(53, 222, 122, 0.05);
  --cn-line:  rgba(53, 222, 122, 0.16);
  --cn-line-strong: rgba(53, 222, 122, 0.42);
  --cn-glow:  rgba(53, 222, 122, 0.28);

  /* ink - near black, faint green cast */
  --ink-000: #040706;
  --ink-050: #060908;
  --ink-100: #070B0A;
  --ink-200: #0A100E;
  --ink-300: #0E1613;
  --ink-400: #141F1A;

  /* text */
  --text:       #E9F5EF;
  --text-dim:   #A9BDB3;
  --text-muted: #7C9188;

  /* gradients */
  --grad-brand: linear-gradient(115deg, var(--cn-teal) 0%, var(--cn-green) 46%, var(--cn-lime) 100%);
  --grad-brand-soft: linear-gradient(115deg, rgba(33,197,140,.18), rgba(92,248,74,.10));

  /* type */
  --font-display: 'Archivo', 'Arial Narrow', system-ui, sans-serif;
  /* Aptos is a system font (ships with Microsoft 365 / Windows 11), not a
     webfont - it is not served from any CDN. Devices that have it render it;
     everything else falls through to the closest available neighbour, with
     Hanken Grotesk as the loaded webfont backstop so the page never shows
     a default serif. */
  --font-body: 'Aptos', 'Aptos Display', 'Segoe UI Variable Text', 'Segoe UI',
               'Hanken Grotesk', system-ui, -apple-system, sans-serif;
  --font-mono: 'Martian Mono', ui-monospace, 'SFMono-Regular', monospace;

  /* layout */
  --gutter: clamp(18px, 4vw, 64px);
  --maxw: 1440px;
  --section-y: clamp(72px, 9vw, 152px);
  --radius: 18px;
  --radius-lg: 26px;

  /* motion - built-in curves are too weak to read as intentional.
     ease-out for anything entering or responding to the user,
     ease-in-out for things moving on screen. never ease-in. */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-io: cubic-bezier(0.77, 0, 0.175, 1);

  --dur-press: 140ms;   /* button feedback   */
  --dur-hover: 180ms;   /* hover states      */
  --dur-panel: 240ms;   /* menus, overlays   */
}

/* ---------- 2. RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--ink-000);
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(15.5px, 0.42vw + 14.4px, 17px);
  line-height: 1.62;
  font-weight: 350;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; padding: 0; }

::selection { background: var(--cn-green); color: var(--ink-000); }

:focus-visible {
  outline: 2px solid var(--cn-green);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 300;
  padding: 10px 16px; background: var(--cn-green); color: var(--ink-000);
  border-radius: 8px; font-family: var(--font-mono); font-size: 12px;
  transform: translateY(-160%); transition: transform var(--dur-hover) var(--ease-out);
}
.skip-link:focus { transform: none; }

/* ---------- 3. AMBIENT BACKGROUND ---------- */
.bg-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(53,222,122,.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(53,222,122,.055) 1px, transparent 1px);
  background-size: 76px 76px;
  opacity: .62;
  mask-image: radial-gradient(ellipse 78% 72% at 50% 34%, #000 0%, rgba(0,0,0,.45) 46%, transparent 82%);
  -webkit-mask-image: radial-gradient(ellipse 78% 72% at 50% 34%, #000 0%, rgba(0,0,0,.45) 46%, transparent 82%);
}

.bg-glow {
  position: fixed; z-index: 0; pointer-events: none;
  border-radius: 50%; opacity: .55;
}
.bg-glow--a {
  width: 46vw; height: 46vw; max-width: 720px; max-height: 720px;
  top: -14vw; right: -8vw;
  background: radial-gradient(circle, rgba(33,197,140,.26), rgba(33,197,140,.08) 42%, transparent 70%);
}
.bg-glow--b {
  width: 38vw; height: 38vw; max-width: 560px; max-height: 560px;
  bottom: -10vw; left: -10vw;
  background: radial-gradient(circle, rgba(92,248,74,.12), rgba(92,248,74,.04) 44%, transparent 72%);
  position: absolute;
}

.bg-noise {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .022;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- 4. LAYOUT PRIMITIVES ---------- */
.container {
  width: 100%; max-width: var(--maxw);
  margin-inline: auto; padding-inline: var(--gutter);
}

.section {
  position: relative; z-index: 2;
  padding-block: var(--section-y);
}

/* the browser skips layout and paint for sections far off screen.
   contain-intrinsic-size keeps the scrollbar honest while they are skipped. */
#rules, #how, #judging, #rewards, #who, #venue {
  content-visibility: auto;
  contain-intrinsic-size: auto 640px;
}

.section__head { margin-bottom: clamp(40px, 5vw, 72px); }
.section__head--split {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
}
.section__note {
  max-width: 34ch; color: var(--text-muted);
  font-size: .96rem; line-height: 1.55;
}
.section__note--center { margin-inline: auto; text-align: center; max-width: 40ch; margin-top: 18px; }

/* ---------- 5. TYPOGRAPHY ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: clamp(9.5px, .55vw, 11px);
  font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  color: var(--cn-green); margin-bottom: 18px;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--cn-lime); box-shadow: 0 0 12px var(--cn-lime);
  animation: pulse 2.6s var(--ease-io) infinite;
}
.eyebrow .sep { width: 18px; height: 1px; background: var(--cn-line-strong); }

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .35; transform: scale(.7); }
}

.h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  font-weight: 600;
  font-stretch: 108%;
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.h2 em { font-style: normal; color: var(--cn-green); }

.lead {
  font-size: clamp(1.05rem, 1.4vw, 1.28rem);
  line-height: 1.5; color: var(--text); font-weight: 400;
  letter-spacing: -0.015em;
}

/* ---------- 6. BUTTONS ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body); font-weight: 600; letter-spacing: -0.01em;
  border-radius: 999px; white-space: nowrap;
  transition: transform var(--dur-hover) var(--ease-out), box-shadow var(--dur-hover) var(--ease-out),
              background-color var(--dur-hover) var(--ease-out), border-color var(--dur-hover) var(--ease-out), color var(--dur-hover) var(--ease-out);
  will-change: transform;
}
.btn__arrow { transition: transform var(--dur-hover) var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(4px); }
.btn:hover .btn__arrow--down { transform: translateY(3px); }

.btn--sm { padding: 9px 18px; font-size: .82rem; }
.btn--lg { padding: 15px 30px; font-size: .97rem; }
.btn--xl { padding: 19px 42px; font-size: 1.06rem; }

.btn--primary {
  background: var(--grad-brand);
  color: #04140C;
  box-shadow: 0 1px 0 rgba(255,255,255,.28) inset, 0 8px 26px -10px var(--cn-glow);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 16px 40px -12px rgba(53,222,122,.55);
}
.btn:active { transform: scale(0.97); }
.btn--primary:active { transform: scale(0.97); }

.btn--ghost {
  border: 1px solid var(--cn-line);
  color: var(--text);
  background: rgba(255,255,255,.02);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover {
  border-color: var(--cn-line-strong);
  background: var(--cn-softer);
  transform: translateY(-2px);
}

.btn--outline {
  border: 1px solid var(--cn-line-strong);
  color: var(--cn-green);
  font-family: var(--font-mono); font-size: .92rem; letter-spacing: .04em;
  border-radius: 6px;
}
.btn--outline:hover {
  background: var(--cn-green); color: var(--ink-000);
  box-shadow: 0 0 44px -8px var(--cn-glow);
}
.btn__rocket { font-size: 1.05em; }

/* ---------- 7. NAVBAR ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background-color 200ms var(--ease-out), border-color 200ms var(--ease-out), backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(4, 7, 6, .72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: rgba(53,222,122,.10);
}
.nav__inner {
  max-width: var(--maxw); margin-inline: auto;
  padding: 14px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav__brand { display: flex; align-items: center; gap: 12px; }
.nav__logo { height: 34px; width: auto; }
.nav__divider { width: 1px; height: 20px; background: var(--cn-line); }
.nav__event {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: .16em; color: var(--text-dim);
}
.nav__event span { color: var(--cn-green); margin-left: .5em; }
.nav__event span::before { content: "'"; opacity: .55; }

.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a {
  position: relative; padding: 8px 14px; border-radius: 8px;
  font-size: .88rem; color: var(--text-dim);
  transition: color 150ms var(--ease-out), background-color 150ms var(--ease-out);
}
.nav__links a::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 3px;
  height: 1px; background: var(--cn-green);
  transform: scaleX(0); transform-origin: left; transition: transform 200ms var(--ease-out);
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after,
.nav__links a.is-active::after { transform: scaleX(1); }
.nav__links a.is-active { color: var(--cn-green); }

.nav__actions { display: flex; align-items: center; gap: 12px; }

/* .nav__toggle is defined in section 24 with real Lucide icons */

.nav__progress {
  height: 1.5px; width: 100%;
  background: var(--grad-brand);
  box-shadow: 0 0 12px var(--cn-glow);
  transform: scaleX(0); transform-origin: left center;
}

/* ---------- 8. HERO ---------- */
.hero {
  position: relative; z-index: 2;
  min-height: 100svh;
  display: flex; align-items: center;
  padding-block: clamp(120px, 16vh, 180px) clamp(80px, 10vh, 120px);
  overflow: hidden;
}
#hero-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: -1;
}
@media (max-width: 900px) {
  /* the assembly sits behind the headline here, so it drops back to a texture */
  #hero-canvas { opacity: .45; }
}
.hero__inner { position: relative; }

.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: .84;
  letter-spacing: -0.055em;
  margin-block: 6px 22px;
  display: flex; align-items: baseline; flex-wrap: wrap; gap: clamp(10px, 2vw, 26px);
}
.hero__word {
  display: flex;
  /* Conservative CSS floor so the wordmark never clips before scripts run;
     fitWordmark() in main.js then measures the real glyph advance and grows
     it to fill the column exactly. */
  font-size: min(11.5rem, calc((min(100vw, var(--maxw)) - 2 * var(--gutter)) / 7.4));
  font-stretch: 112%;
  background: linear-gradient(170deg, #FFFFFF 8%, var(--cn-green) 58%, var(--cn-teal) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.hero__word > span {
  display: inline-block;
  animation: letterIn .9s var(--ease) backwards;
}
.hero__word > span:nth-child(1) { animation-delay: .10s }
.hero__word > span:nth-child(2) { animation-delay: .16s }
.hero__word > span:nth-child(3) { animation-delay: .22s }
.hero__word > span:nth-child(4) { animation-delay: .28s }
.hero__word > span:nth-child(5) { animation-delay: .34s }
.hero__word > span:nth-child(6) { animation-delay: .40s }
.hero__word > span:nth-child(7) { animation-delay: .46s }
.hero__word > span:nth-child(8) { animation-delay: .52s }

@keyframes letterIn {
  from { opacity: 0; transform: translateY(0.34em) rotateX(-55deg); filter: blur(9px); }
  to   { opacity: 1; transform: none; filter: none; }
}

.hero__year {
  font-size: clamp(1.5rem, 4.4vw, 3.4rem);
  font-weight: 500; font-stretch: 88%;
  letter-spacing: .02em;
  -webkit-text-stroke: 1px var(--cn-line-strong);
  color: transparent;
  animation: letterIn .9s var(--ease) .58s backwards;
}

.hero__tagline {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 3.1vw, 2.25rem);
  font-weight: 600; font-stretch: 100%;
  letter-spacing: -0.03em; line-height: 1.12;
  color: var(--text);
  margin-bottom: 22px;
}

.hero__lead {
  font-size: clamp(1.02rem, 1.55vw, 1.32rem);
  color: var(--text); font-weight: 400; letter-spacing: -0.018em;
  max-width: 30ch; margin-bottom: 14px;
}
.hero__sub {
  color: var(--text-muted); max-width: 56ch;
  font-size: .96rem; line-height: 1.6;
}

.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.hero__meta {
  display: flex; flex-wrap: wrap; gap: clamp(22px, 4vw, 56px);
  margin-top: clamp(44px, 6vw, 72px);
  padding-top: 26px;
  border-top: 1px solid rgba(53,222,122,.10);
}
.hero__meta dt {
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 6px;
}
.hero__meta dd {
  font-family: var(--font-display); font-size: 1rem; font-weight: 600;
  font-stretch: 96%; color: var(--text); letter-spacing: -0.01em;
}

.hero__scroll {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  width: 1px; height: 54px; background: linear-gradient(var(--cn-line), transparent);
  overflow: hidden;
}
.hero__scroll span {
  position: absolute; top: 0; left: 0; width: 1px; height: 18px;
  background: var(--cn-green); animation: scrollDot 2.4s var(--ease-io) infinite;
}
@keyframes scrollDot {
  0% { transform: translateY(-20px); opacity: 0 }
  40% { opacity: 1 }
  100% { transform: translateY(56px); opacity: 0 }
}

/* ---------- 9. WHAT IS MOONSHOT ---------- */
.what__grid {
  display: grid; grid-template-columns: 1.05fr 1fr;
  gap: clamp(36px, 6vw, 84px); align-items: start;
}
.what__copy p + p { margin-top: 18px; color: var(--text-dim); }
.what__copy strong { color: var(--text); font-weight: 600; }

.what__pillars { display: grid; gap: 14px; }

.pillar {
  position: relative;
  display: grid; grid-template-columns: auto 1fr; gap: 4px 18px;
  padding: 22px 24px;
  border: 1px solid var(--cn-line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.030), rgba(255,255,255,.008));
  overflow: hidden;
  transition: border-color 200ms var(--ease-out), transform 200ms var(--ease-out), background-color 200ms var(--ease-out);
}
.pillar::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: var(--grad-brand); transform: scaleY(0); transform-origin: top;
  transition: transform 220ms var(--ease-out);
}
.pillar:hover { border-color: var(--cn-line-strong); transform: translateX(4px); }
.pillar:hover::before { transform: scaleY(1); }
.pillar__num {
  grid-row: span 2;
  font-family: var(--font-mono); font-size: 10px; color: var(--cn-green);
  padding-top: 5px; letter-spacing: .1em;
}
.pillar__title {
  font-family: var(--font-display); font-size: 1.06rem; font-weight: 600;
  font-stretch: 100%; letter-spacing: -0.02em;
}
.pillar__desc { color: var(--text-muted); font-size: .9rem; line-height: 1.5; }

/* ---------- 10. CHALLENGE ---------- */
.section--challenge { position: relative; }
.section--challenge::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse 70% 50% at 50% 50%, rgba(33,197,140,.07), transparent 70%);
}

.statement {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 5.2vw, 4.1rem);
  font-weight: 600; font-stretch: 104%;
  line-height: 1.04; letter-spacing: -0.04em;
  margin-inline: auto; text-align: center;
  max-width: 22ch;
}
.statement em { font-style: normal; display: inline-block; color: var(--cn-green); }
.statement__mark {
  display: block; font-size: 3em; line-height: .4; color: var(--cn-line);
  margin-bottom: .18em; font-family: var(--font-display);
}

.sequence {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: clamp(8px, 1.6vw, 20px);
  margin-block: clamp(56px, 8vw, 96px);
}
.sequence__step {
  font-family: var(--font-display);
  font-size: clamp(.95rem, 2.7vw, 2.15rem);
  font-weight: 700; font-stretch: 112%; letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(233,245,239,.30);
  transition: color 220ms var(--ease-out), -webkit-text-stroke-color 220ms var(--ease-out);
}
.sequence__step:hover { color: var(--text); -webkit-text-stroke-color: transparent; }
.sequence__step--on {
  color: var(--cn-green); -webkit-text-stroke-color: transparent;
  text-shadow: 0 0 44px var(--cn-glow);
}
.sequence__arrow { color: var(--cn-green); opacity: .5; font-size: clamp(.8rem, 1.6vw, 1.3rem); }

.encourage {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1px; background: rgba(53,222,122,.12);
  border: 1px solid rgba(53,222,122,.12);
  border-radius: var(--radius); overflow: hidden;
}
.encourage__item {
  background: var(--ink-100);
  padding: 26px 24px;
  display: flex; gap: 14px; align-items: flex-start;
  transition: background-color 200ms var(--ease-out);
}
.encourage__item:hover { background: var(--ink-300); }
.encourage__item span:first-child {
  color: var(--cn-green); font-family: var(--font-mono); font-size: 11px; padding-top: 3px;
}
.encourage__item p { font-size: .94rem; color: var(--text-dim); letter-spacing: -0.01em; }

/* ---------- 11. DOMAIN CARDS ---------- */
.domains {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 1.6vw, 20px);
}

.domain-card {
  position: relative; isolation: isolate;
  display: flex; flex-direction: column;
  padding: 28px 26px 30px;
  min-height: 268px;
  border: 1px solid var(--cn-line);
  border-radius: var(--radius-lg);
  background: linear-gradient(170deg, rgba(255,255,255,.036), rgba(255,255,255,.006) 55%);
  overflow: hidden;
  transition: transform 220ms var(--ease-out), border-color 220ms var(--ease-out), box-shadow 220ms var(--ease-out);
}
.domain-card::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(53,222,122,.16), transparent 60%);
  opacity: 0; transition: opacity 210ms var(--ease-out);
}
.domain-card::after {
  content: ''; position: absolute; inset: 0; z-index: -2; border-radius: inherit;
  box-shadow: 0 0 0 1px rgba(53,222,122,.28) inset;
  opacity: 0; transition: opacity 210ms var(--ease-out);
}
.domain-card:hover {
  transform: translateY(-4px);
  border-color: var(--cn-line-strong);
  box-shadow: 0 24px 60px -30px rgba(53,222,122,.5);
}
.domain-card:hover::before { opacity: 1; }
.domain-card:hover::after { opacity: 1; }

.domain-card__glyph {
  width: 68px; height: 68px; margin-bottom: 20px;
  border-radius: 14px;
  border: 1px solid rgba(53,222,122,.14);
  background: var(--cn-softer);
  position: relative;
  overflow: hidden;
}
/* WebGL-less fallback lives in section 24 (.domain-card__glyph-fallback) */

.domain-card__index {
  position: absolute; top: 24px; right: 26px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em;
  color: var(--text-muted);
}
.domain-card__title {
  font-family: var(--font-display); font-size: 1.18rem; font-weight: 600;
  font-stretch: 100%; letter-spacing: -0.025em; margin-bottom: 10px; line-height: 1.15;
}
.domain-card__desc {
  font-size: .92rem; color: var(--text-muted); line-height: 1.55;
  margin-bottom: 18px;
}
.domain-card__tags {
  margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px;
}
.domain-card__tags li {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: .06em;
  padding: 4px 9px; border-radius: 999px;
  border: 1px solid rgba(53,222,122,.14); color: var(--text-muted);
  transition: color var(--dur-hover) var(--ease-out), border-color var(--dur-hover) var(--ease-out);
}
.domain-card:hover .domain-card__tags li { color: var(--cn-green); border-color: rgba(53,222,122,.3); }

.domain-card--wild {
  background: linear-gradient(170deg, rgba(53,222,122,.13), rgba(33,197,140,.03) 60%);
  border-color: rgba(53,222,122,.30);
}
.domain-card--wild .domain-card__desc { color: var(--text-dim); }

/* ---------- 12. TECHNOLOGY ---------- */
.section--tech { overflow: hidden; }

.marquee {
  position: relative; z-index: 2;
  display: flex; gap: 0;
  margin-block: clamp(30px, 4vw, 48px);
  padding-block: 18px;
  border-block: 1px solid rgba(53,222,122,.12);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track {
  display: flex; align-items: center; gap: 0; flex-shrink: 0;
  animation: marquee 46s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }

.marquee__item {
  display: inline-flex; align-items: center; gap: 26px;
  padding-inline: 13px;
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.2vw, 1.65rem);
  font-weight: 500; font-stretch: 96%; letter-spacing: -0.02em;
  color: var(--text-dim); white-space: nowrap;
}
.marquee__item::after {
  content: '·'; color: var(--cn-green); font-size: 1.1em;
}
.marquee__item--hl { color: var(--cn-green); }

.tech__claim { text-align: center; margin-top: clamp(40px, 6vw, 68px); }
.tech__claim-big {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4.6vw, 3.2rem);
  font-weight: 700; font-stretch: 106%; letter-spacing: -0.04em; line-height: 1.05;
}
.tech__claim-sub {
  margin-top: 16px; color: var(--text-muted); font-size: 1rem;
}
.tech__claim-sub em {
  font-style: normal; color: var(--cn-green); font-weight: 600;
}

/* ---------- 13. RULES ---------- */
.rules {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: clamp(14px, 1.6vw, 18px);
}
.rule-card {
  position: relative;
  padding: 26px 24px 28px;
  border: 1px solid var(--cn-line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.018);
  transition: border-color 200ms var(--ease-out), background-color 200ms var(--ease-out), transform 200ms var(--ease-out);
}
.rule-card:hover {
  border-color: var(--cn-line-strong);
  background: var(--cn-softer);
  transform: translateY(-3px);
}
.rule-card__num {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em;
  color: var(--cn-green); display: block; margin-bottom: 14px;
}
.rule-card__title {
  font-family: var(--font-display); font-size: 1.04rem; font-weight: 600;
  font-stretch: 100%; letter-spacing: -0.022em; margin-bottom: 9px;
}
.rule-card__desc { font-size: .9rem; color: var(--text-muted); line-height: 1.55; }

/* ---------- 14. TIMELINE ---------- */
.section--flow { position: relative; }
.timeline {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  position: relative;
}
.timeline::before {
  content: ''; position: absolute; top: 21px; left: 6%; right: 6%;
  height: 1px; background: linear-gradient(90deg, transparent, var(--cn-line-strong) 12%, var(--cn-line-strong) 88%, transparent);
}
.tl-step { position: relative; padding: 0 12px; text-align: left; }
.tl-step__node {
  position: relative; z-index: 2;
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink-100);
  border: 1px solid var(--cn-line);
  font-family: var(--font-mono); font-size: 11px; color: var(--cn-green);
  margin-bottom: 20px;
  transition: border-color 200ms var(--ease-out), box-shadow 200ms var(--ease-out), background-color .4s;
}
.tl-step:hover .tl-step__node {
  border-color: var(--cn-green);
  background: var(--cn-soft);
  box-shadow: 0 0 0 5px rgba(53,222,122,.07), 0 0 26px -4px var(--cn-glow);
}
.tl-step__title {
  font-family: var(--font-display); font-size: .95rem; font-weight: 700;
  font-stretch: 104%; letter-spacing: .04em; text-transform: uppercase;
  margin-bottom: 8px;
}
.tl-step__desc { font-size: .85rem; color: var(--text-muted); line-height: 1.5; }
.tl-step--last .tl-step__node { border-color: var(--cn-green); color: var(--ink-000); background: var(--grad-brand); }
.tl-step--last .tl-step__title { color: var(--cn-green); }

/* ---------- 15. JUDGING ---------- */
.criteria {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: clamp(12px, 1.4vw, 18px);
}
.criterion {
  position: relative;
  padding: 28px 22px 26px;
  border: 1px solid var(--cn-line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.028), transparent);
  text-align: center;
  transition: border-color 200ms var(--ease-out), transform 200ms var(--ease-out);
}
.criterion:hover { border-color: var(--cn-line-strong); transform: translateY(-3px); }

.criterion__ring {
  --pct: 0;
  position: relative;
  width: 84px; height: 84px; margin: 0 auto 18px;
  border-radius: 50%;
  background:
    conic-gradient(var(--cn-green) calc(var(--pct) * 1%), rgba(53,222,122,.10) 0);
  display: grid; place-items: center;
  transition: background .1s linear;
}
.criterion__ring::before {
  content: ''; position: absolute; inset: 5px;
  border-radius: 50%; background: var(--ink-100);
}
.criterion__pct {
  position: relative;
  font-family: var(--font-mono); font-size: .82rem; font-weight: 500;
  color: var(--cn-green);
}
.criterion__icon { font-size: 20px; display: block; margin-bottom: 10px; }
.criterion__title {
  font-family: var(--font-display); font-size: 1rem; font-weight: 600;
  font-stretch: 100%; letter-spacing: -0.02em; margin-bottom: 8px;
}
.criterion__desc { font-size: .85rem; color: var(--text-muted); line-height: 1.5; }

/* ---------- 16. REWARDS ---------- */
.section--rewards { position: relative; }
.rewards {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 1.6vw, 18px);
}
.reward-card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  padding: 28px 24px 30px;
  border: 1px solid var(--cn-line);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.02);
  transition: border-color 210ms var(--ease-out), transform 210ms var(--ease-out), box-shadow 210ms var(--ease-out);
}
.reward-card:hover {
  transform: translateY(-4px); border-color: var(--cn-line-strong);
  box-shadow: 0 26px 60px -34px rgba(53,222,122,.55);
}
.reward-card__who {
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 16px;
}
.reward-card__icon { font-size: 26px; margin-bottom: 14px; }
.reward-card__what {
  font-family: var(--font-display); font-size: 1.14rem; font-weight: 600;
  font-stretch: 100%; letter-spacing: -0.025em; line-height: 1.2; margin-bottom: 10px;
}
.reward-card__desc { font-size: .87rem; color: var(--text-muted); line-height: 1.55; }

.reward-card--hero {
  background: linear-gradient(165deg, rgba(53,222,122,.16), rgba(33,197,140,.03) 65%);
  border-color: rgba(53,222,122,.34);
}
.reward-card--hero .reward-card__what { color: var(--cn-green); }
.reward-card--hero .reward-card__desc { color: var(--text-dim); }

.fineprint {
  margin-top: 26px; font-size: .8rem; color: var(--text-muted);
  max-width: 74ch; line-height: 1.6;
}

/* ---------- 17. WHO ---------- */
.who__chips {
  display: flex; flex-wrap: wrap; gap: 10px;
  max-width: 940px;
}
.who__chip {
  padding: 11px 20px; border-radius: 999px;
  border: 1px solid var(--cn-line);
  font-size: .92rem; color: var(--text-dim);
  background: rgba(255,255,255,.015);
  transition: border-color var(--dur-hover) var(--ease-out), color var(--dur-hover) var(--ease-out),
              background-color var(--dur-hover) var(--ease-out), transform var(--dur-hover) var(--ease-out);
}
.who__chip:hover {
  border-color: var(--cn-line-strong); color: var(--text);
  background: var(--cn-softer); transform: translateY(-2px);
}
.who__statement {
  margin-top: clamp(44px, 6vw, 70px);
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4.2vw, 3rem);
  font-weight: 600; font-stretch: 104%; line-height: 1.1; letter-spacing: -0.035em;
}
.who__statement em { font-style: normal; color: var(--cn-green); }

/* ---------- 18. REGISTER ---------- */
.register-card {
  position: relative; overflow: hidden;
  text-align: center;
  padding: clamp(48px, 7vw, 88px) clamp(24px, 5vw, 72px);
  border: 1px solid rgba(53,222,122,.26);
  border-radius: clamp(22px, 3vw, 36px);
  background:
    radial-gradient(ellipse 80% 120% at 50% 0%, rgba(53,222,122,.14), transparent 62%),
    linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.005));
}
.register-card__glow {
  position: absolute; top: -50%; left: 50%; transform: translateX(-50%);
  width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle, rgba(53,222,122,.16), transparent 66%);
  filter: blur(60px); pointer-events: none;
}
.register-card .eyebrow { justify-content: center; }
.register-card .h2 { margin-bottom: 14px; }
.register-card__tagline {
  font-family: var(--font-display); font-size: clamp(1rem, 2.1vw, 1.35rem);
  font-weight: 500; letter-spacing: -0.02em; color: var(--cn-green);
  margin-bottom: 34px;
}
.register-card__note {
  margin-top: 22px; color: var(--text-muted); font-size: .88rem;
  max-width: 44ch; margin-inline: auto;
}
.register-card__fields {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  margin-top: 30px; padding-top: 26px;
  border-top: 1px solid rgba(53,222,122,.10);
}
.register-card__fields li {
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-muted);
  padding: 5px 11px; border-radius: 999px; border: 1px solid rgba(53,222,122,.12);
}

/* ---------- 19. FINALE ---------- */
.finale {
  position: relative; z-index: 2;
  text-align: center;
  padding-block: clamp(100px, 14vw, 190px);
  border-top: 1px solid rgba(53,222,122,.10);
  background: radial-gradient(ellipse 60% 80% at 50% 100%, rgba(33,197,140,.10), transparent 70%);
}
.finale__kicker {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 6vw, 4.6rem);
  font-weight: 700; font-stretch: 108%; letter-spacing: -0.045em; line-height: 1;
}
.finale__tagline {
  margin-top: 20px;
  font-family: var(--font-display); font-size: clamp(1rem, 2.4vw, 1.5rem);
  font-weight: 500; letter-spacing: -0.02em;
  color: var(--cn-green);
}
.finale__wordmark {
  margin-top: 28px; margin-bottom: 34px;
  font-family: var(--font-mono); font-size: clamp(.72rem, 1.5vw, .9rem);
  letter-spacing: .42em; color: var(--text-muted); text-indent: .42em;
}

/* ---------- 20. FOOTER ---------- */
.footer {
  position: relative; z-index: 2;
  border-top: 1px solid rgba(53,222,122,.10);
  background: var(--ink-050);
  padding-top: clamp(44px, 5vw, 66px);
}
.footer__inner {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 40px; flex-wrap: wrap;
  padding-bottom: clamp(36px, 4vw, 52px);
}
.footer__logo { height: 48px; margin-bottom: 18px; }
.footer__event {
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 700;
  font-stretch: 108%; letter-spacing: -0.025em;
}
.footer__tagline { color: var(--cn-green); font-size: .9rem; margin-top: 4px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.footer__links a {
  font-size: .89rem; color: var(--text-muted);
  transition: color var(--dur-hover) var(--ease-out);
}
.footer__links a:hover { color: var(--cn-green); }

.footer__base {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-block: 22px;
  border-top: 1px solid rgba(53,222,122,.08);
  font-size: .78rem; color: var(--text-muted);
}
.footer__made { font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; }

/* ---------- 21. SCROLL REVEAL ---------- */
.reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
  transition-delay: calc(var(--d, 0) * 60ms);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- 22. RESPONSIVE ---------- */
@media (max-width: 1080px) {
  .domains { grid-template-columns: repeat(2, 1fr); }
  .criteria { grid-template-columns: repeat(3, 1fr); }
  .rewards { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .timeline::before { display: none; }
}

@media (max-width: 900px) {
  .what__grid { grid-template-columns: 1fr; }
  .nav__links {
    position: fixed; inset: 0 0 auto; top: 0;
    flex-direction: column; align-items: stretch;
    gap: 2px;
    padding: 88px var(--gutter) 32px;
    background: rgba(4,7,6,.96);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--cn-line);
    transform: translateY(-100%);
    transition: transform 220ms var(--ease-out);
    visibility: hidden;
  }
  .nav__links.is-open { transform: none; visibility: visible; }
  .nav__links a { padding: 15px 4px; font-size: 1.15rem; border-bottom: 1px solid rgba(53,222,122,.07); }
  .nav__links a::after { display: none; }
  .nav__toggle { z-index: 2; }
  .nav.is-menu-open { background: transparent; backdrop-filter: none; }
}

@media (max-width: 720px) {
  html { scroll-padding-top: 76px; }
  .domains, .criteria, .rewards, .rules { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; row-gap: 0; }
  .tl-step {
    display: grid; grid-template-columns: 42px 1fr; gap: 0 20px;
    padding: 0 0 30px 0;
  }
  .tl-step__node { margin-bottom: 0; grid-row: span 2; }
  .tl-step::before {
    content: ''; position: absolute; left: 21px; top: 46px; bottom: 4px; width: 1px;
    background: linear-gradient(var(--cn-line-strong), rgba(53,222,122,.05));
  }
  .tl-step--last::before { display: none; }
  .tl-step__title { padding-top: 11px; }

  .hero { min-height: auto; padding-top: 128px; }
  .hero__title { flex-direction: column; align-items: flex-start; gap: 2px; }
  .hero__meta { gap: 20px 34px; }
  .hero__meta > div { min-width: 40%; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; }
  .hero__scroll { display: none; }

  .statement { text-align: left; margin-inline: 0; }
  .sequence { justify-content: flex-start; }
  .encourage { grid-template-columns: 1fr; }
  .section__head--split { flex-direction: column; align-items: flex-start; }
  .footer__inner { flex-direction: column; }
}

@media (max-width: 420px) {
  .nav__logo { height: 28px; }
  .nav__divider, .nav__event { display: none; }
  .domain-card { min-height: 0; }
}

/* ---------- 23. ACCESSIBILITY / MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .marquee__track { animation: none; }
  .hero__word > span, .hero__year { animation: none; opacity: 1; }
}

@media (prefers-contrast: more) {
  :root { --text-muted: #A9BDB3; --cn-line: rgba(53,222,122,.4); }
}


/* ============================================================================
   24. ICONS (Lucide, inlined - see js/icons.js)
   ============================================================================ */
.icon { display: block; flex: none; }

[data-icon] { display: inline-flex; align-items: center; justify-content: center; }

.btn__arrow, .btn__rocket { display: inline-flex; }
.btn__arrow .icon { transition: transform var(--dur-hover) var(--ease-out); }

.encourage__icon { color: var(--cn-green); margin-top: 3px; flex: none; }

.criterion__icon {
  display: flex; justify-content: center;
  color: var(--cn-green); margin-bottom: 10px;
}

.reward-card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-bottom: 16px;
  border-radius: 12px;
  border: 1px solid rgba(53,222,122,.16);
  background: var(--cn-softer);
  color: var(--cn-green);
  transition: border-color var(--dur-hover) var(--ease-out),
              background-color var(--dur-hover) var(--ease-out);
}
.reward-card:hover .reward-card__icon {
  border-color: var(--cn-line-strong);
  background: var(--cn-soft);
}
.reward-card--hero .reward-card__icon {
  border-color: rgba(53,222,122,.4);
  background: rgba(53,222,122,.12);
}

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

/* the Lucide glyph stands in for the 3D one only when WebGL is missing */
.domain-card__glyph-fallback {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: var(--cn-green);
  opacity: 0;
  transition: opacity 150ms var(--ease-out);
}
.no-webgl .domain-card__glyph-fallback { opacity: 1; }

/* nav toggle swaps between two real icons instead of morphing bars */
.nav__toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: 10px;
  align-items: center; justify-content: center;
  border: 1px solid var(--cn-line);
  color: var(--text);
  transition: transform var(--dur-press) var(--ease-out),
              border-color var(--dur-hover) var(--ease-out);
}
.nav__toggle:active { transform: scale(0.94); }
.nav__toggle-icon {
  position: absolute;
  display: inline-flex;
  transition: opacity 150ms var(--ease-out), transform 150ms var(--ease-out);
}
.nav__toggle-icon--close { opacity: 0; transform: scale(0.9) rotate(-45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-icon--open { opacity: 0; transform: scale(0.9) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-icon--close { opacity: 1; transform: none; }

/* ============================================================================
   25. MOTION HANDOFF
   When the Motion bundle is live it owns entrances and card lift, so the CSS
   equivalents step aside rather than fighting it over the same properties.
   ============================================================================ */
.has-motion .reveal { transition: none; }

.has-js-hover {
  transition: border-color var(--dur-hover) var(--ease-out),
              box-shadow 210ms var(--ease-out),
              background-color var(--dur-hover) var(--ease-out);
}
.has-js-hover:hover { transform: none; }

/* ============================================================================
   26. TOUCH INPUT
   Hover on a touch screen fires on tap and sticks. Strip the lift, keep a
   press state so taps still feel acknowledged.
   ============================================================================ */
@media (hover: none), (pointer: coarse) {
  .domain-card:hover, .reward-card:hover, .rule-card:hover, .criterion:hover,
  .pillar:hover, .who__chip:hover, .btn:hover { transform: none; }

  .domain-card:active, .reward-card:active, .rule-card:active,
  .criterion:active, .who__chip:active { border-color: var(--cn-line-strong); }
}

@media (max-width: 900px) {
  .nav__toggle { display: inline-flex; }
}


/* ============================================================================
   27. EVENT DATE
   ============================================================================ */
.register-card__chips {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  margin: -14px 0 30px;
}
.register-card__chips li {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid rgba(53,222,122,.22);
  background: var(--cn-softer);
  color: var(--text-dim);
  font-size: .9rem;
}
.register-card__chips [data-icon] { color: var(--cn-green); }
.register-card__chips strong { color: var(--text); font-weight: 600; }

.footer__date {
  margin-top: 10px;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--text-muted);
}

/* ============================================================================
   28. MOBILE STICKY REGISTER BAR
   Most visitors arrive on a phone, so the primary action stays within thumb
   reach for the whole scroll instead of only existing at two points on a very
   long page. Hidden while the hero CTA is still on screen - two competing
   register buttons at once is noise, not emphasis.
   ============================================================================ */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: none; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(4, 7, 6, .88);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border-top: 1px solid rgba(53,222,122,.18);
  transform: translateY(115%);
  transition: transform var(--dur-panel) var(--ease-out);
}
.mobile-cta.is-visible { transform: none; }
.mobile-cta .btn { padding: 12px 22px; font-size: .92rem; }
.mobile-cta__title {
  font-family: var(--font-display); font-size: .92rem; font-weight: 700;
  font-stretch: 104%; letter-spacing: -0.02em; line-height: 1.1;
}
.mobile-cta__date {
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--cn-green); margin-top: 3px;
}

@media (max-width: 760px) {
  .mobile-cta { display: flex; }
  .footer { padding-bottom: 86px; }
}
.nav__links.is-open ~ .mobile-cta,
body:has(.nav__links.is-open) .mobile-cta { transform: translateY(115%); }

/* ============================================================================
   29. PHONE PASS
   Mobile is the primary surface here, so these are deliberate layout
   decisions rather than a compressed desktop.
   ============================================================================ */
@media (max-width: 760px) {
  .section__head { margin-bottom: 30px; }

  /* headline sizes tuned for a 390px column rather than scaled down from wide */
  .h2 { font-size: clamp(1.85rem, 8.4vw, 2.5rem); letter-spacing: -0.03em; }
  .hero__tagline { font-size: clamp(1.15rem, 6vw, 1.7rem); }
  .hero__lead { font-size: 1.05rem; max-width: none; }
  .hero__sub { font-size: .93rem; }

  .statement { font-size: clamp(1.65rem, 8.6vw, 2.4rem); line-height: 1.08; }
  .statement__mark { font-size: 2.2em; }
  .sequence { gap: 6px 10px; margin-block: 40px; }
  .sequence__step { font-size: 1.05rem; }
  .tech__claim-big { font-size: clamp(1.5rem, 8vw, 2.2rem); }
  .who__statement { font-size: clamp(1.4rem, 7.6vw, 2rem); }
  .finale__kicker { font-size: clamp(1.8rem, 9.5vw, 2.6rem); }

  /* two up rather than a four-row stack of near-empty rows */
  .hero__meta { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px; }
  .hero__meta > div { min-width: 0; }

  .domain-card { min-height: 0; padding: 24px 20px 26px; }
  .domain-card__glyph { width: 56px; height: 56px; margin-bottom: 16px; }
  .domain-card__index { top: 20px; right: 20px; }

  .rule-card, .criterion, .reward-card { padding: 22px 20px 24px; }
  .criterion__ring { width: 72px; height: 72px; margin-bottom: 14px; }

  .pillar { padding: 18px 20px; }

  /* comfortable thumb targets */
  .who__chip { padding: 12px 18px; }
  .nav__links a { padding: 16px 4px; }
  .btn--lg, .btn--xl { padding: 16px 26px; font-size: 1rem; }

  .register-card { padding: 40px 20px 44px; }

  /* footer links were 23px tall - below a comfortable thumb target */
  .footer__links { gap: 0 22px; width: 100%; }
  .footer__links a { padding: 11px 0; font-size: .95rem; }
  .nav__brand { padding: 6px 0; }
  .nav .btn--sm { padding: 11px 18px; font-size: .86rem; }
  .register-card__fields { gap: 6px; }
  .marquee__item { font-size: 1.05rem; padding-inline: 9px; gap: 16px; }
  .fineprint { font-size: .78rem; }
  .footer__base { flex-direction: column; gap: 8px; }
}

@media (max-width: 380px) {
  .hero__meta { grid-template-columns: 1fr; gap: 16px; }
  .mobile-cta__title { font-size: .85rem; }
  .mobile-cta .btn { padding: 11px 18px; font-size: .86rem; }
}


/* ============================================================================
   30. VENUE & SUPPORT
   ============================================================================ */
.venue {
  display: grid; grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(16px, 2vw, 24px);
  align-items: stretch;
}

.venue__panel {
  display: flex; flex-direction: column;
  padding: clamp(26px, 3vw, 38px);
  border: 1px solid var(--cn-line);
  border-radius: var(--radius-lg);
  background: linear-gradient(170deg, rgba(255,255,255,.035), rgba(255,255,255,.006) 60%);
}

.venue__block { display: grid; grid-template-columns: auto 1fr; gap: 16px; }

.venue__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; flex: none;
  border-radius: 11px;
  border: 1px solid rgba(53,222,122,.18);
  background: var(--cn-softer);
  color: var(--cn-green);
}

.venue__label {
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--text-muted);
  margin-bottom: 12px; font-weight: 500;
}

.venue__address {
  font-style: normal; font-size: 1.02rem; line-height: 1.6;
  color: var(--text); letter-spacing: -0.012em;
}

.venue__link {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 16px; padding: 3px 0;
  font-size: .9rem; font-weight: 600; color: var(--cn-green);
  border-bottom: 1px solid rgba(53,222,122,.28);
  transition: border-color var(--dur-hover) var(--ease-out),
              gap var(--dur-hover) var(--ease-out);
}
.venue__link:hover { border-bottom-color: var(--cn-green); gap: 11px; }

.venue__rule {
  height: 1px; margin-block: clamp(24px, 3vw, 34px);
  background: linear-gradient(90deg, rgba(53,222,122,.22), transparent);
}

.venue__team { color: var(--text-muted); font-size: .9rem; margin-bottom: 2px; }

.venue__phone {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.7rem); font-weight: 700;
  font-stretch: 104%; letter-spacing: -0.02em;
  color: var(--text);
  transition: color var(--dur-hover) var(--ease-out);
}
.venue__phone:hover { color: var(--cn-green); }

.venue__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.venue__actions .btn { padding: 11px 20px; font-size: .88rem; }

/* the embed is a light surface in a dark page - damped so it sits in the
   composition, restored to full colour on interaction */
.venue__map {
  position: relative; overflow: hidden;
  min-height: 340px;
  border: 1px solid var(--cn-line);
  border-radius: var(--radius-lg);
  background: var(--ink-200);
}
.venue__map iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%; border: 0;
  filter: grayscale(.45) contrast(.92) brightness(.82) saturate(.85);
  transition: filter 300ms var(--ease-out);
}
.venue__map:hover iframe, .venue__map:focus-within iframe { filter: none; }

@media (max-width: 900px) {
  .venue { grid-template-columns: 1fr; }
  .venue__map { min-height: 300px; order: -1; }
}

@media (max-width: 760px) {
  .venue__panel { padding: 22px 20px 26px; }
  .venue__map { min-height: 260px; }
  .venue__actions .btn { flex: 1 1 auto; justify-content: center; padding: 13px 18px; }
  .venue__address { font-size: .98rem; }
}


/* ============================================================================
   31. GLYPH CANVASES
   Each 3D glyph is a canvas INSIDE its card, so the compositor moves it with
   the card. The previous fixed full-screen canvas painted glyphs a frame
   behind the scroll position, which read as them collapsing away from the card.
   ============================================================================ */
.glyph-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
  opacity: 0;
  transition: opacity 260ms var(--ease-out);
}
.glyphs-3d .glyph-canvas { opacity: 1; }

/* the Lucide icon is the resting state; the 3D canvas covers it when live */
.glyphs-3d .domain-card__glyph-fallback { opacity: 0; }
.glyphs-flat .domain-card__glyph-fallback,
.no-webgl .domain-card__glyph-fallback { opacity: 1; }

/* ============================================================================
   32. CSS ORBITAL - the phone stand-in for the hero assembly
   Three rings and a core, animated on transform only, so the whole thing lives
   on the compositor and costs no main-thread work. Hidden whenever the real
   WebGL assembly is running.
   ============================================================================ */
.hero-orbit { display: none; }

.hero-flat .hero-orbit {
  display: block;
  position: absolute;
  top: 26%; left: 50%;
  width: min(78vw, 420px); aspect-ratio: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: -1;
  opacity: .5;
}
.hero-orbit__ring {
  position: absolute; inset: 0;
  border: 1px solid rgba(53,222,122,.34);
  border-radius: 50%;
  rotate: 0deg;
  animation: orbitSpin 26s linear infinite;
}
.hero-orbit__ring:nth-child(1) { transform: rotate(18deg) scaleY(.34); }
.hero-orbit__ring:nth-child(2) {
  inset: 9%; border-color: rgba(33,197,140,.26);
  transform: rotate(-42deg) scaleY(.5);
  animation-duration: 38s; animation-direction: reverse;
}
.hero-orbit__ring:nth-child(3) {
  inset: 20%; border-color: rgba(92,248,74,.16);
  transform: rotate(72deg) scaleY(.28);
  animation-duration: 30s;
}
.hero-orbit__core {
  position: absolute; inset: 27%;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 34%,
    rgba(53,222,122,.20), rgba(33,197,140,.06) 52%, transparent 72%);
  border: 1px solid rgba(53,222,122,.14);
}

@keyframes orbitSpin { to { rotate: 360deg; } }

@media (prefers-reduced-motion: reduce) {
  .hero-orbit__ring { animation: none; }
}


/* ---------- free entry, kit, judging ---------- */
.hero__meta-free { color: var(--cn-green); }

.venue__bring { font-size: .95rem; line-height: 1.55; color: var(--text-dim); }
.venue__provided {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 12px;
  font-size: .88rem; color: var(--cn-green); font-weight: 600;
}
.section__head .section__note { margin-top: 16px; }
.section__head .section__note strong { color: var(--cn-green); font-weight: 600; }
