/* ==========================================================================
   OSI Hackathon @ NC State — styles
   Tokens → base → layout → components → sections
   ========================================================================== */

:root {
  --red: #CC0000;            /* Wolfpack Red */
  --red-deep: #990000;       /* Reynolds Red */
  --red-ink: #B30000;        /* red for text on light bg */
  --red-soft: #FBEAEA;
  --blue: #4156A1;           /* Bio-Indigo */
  --blue-ink: #3A4E96;
  --blue-soft: #ECEFF8;

  --bg: #FAFAF8;
  --bg-alt: #F3F2EE;
  --surface: #FFFFFF;
  --ink: #15171A;
  --ink-2: #474C54;
  --ink-3: #6E747D;
  --line: #E3E1DB;
  --line-strong: #CFCCC4;
  --shadow: 0 1px 2px rgba(20, 20, 20, .04), 0 8px 24px -12px rgba(20, 20, 20, .12);
  --shadow-lg: 0 2px 4px rgba(20, 20, 20, .04), 0 24px 48px -24px rgba(20, 20, 20, .25);
  --map-filter: none;

  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius: 14px;
  --radius-sm: 10px;
  --container: 1160px;
  --gutter: 24px;
  --header-h: 104px;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --red-ink: #FF6B6B;
    --red-soft: rgba(204, 0, 0, .16);
    --blue: #8DA0E6;
    --blue-ink: #A9B8F0;
    --blue-soft: rgba(65, 86, 161, .24);
    --bg: #0C0E11;
    --bg-alt: #111418;
    --surface: #171A1F;
    --ink: #ECEDEF;
    --ink-2: #B3B8C0;
    --ink-3: #8B919A;
    --line: #252930;
    --line-strong: #353A43;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -12px rgba(0, 0, 0, .6);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 24px 48px -24px rgba(0, 0, 0, .8);
    --map-filter: invert(.9) hue-rotate(180deg) saturate(.6) brightness(.9);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --red-ink: #FF6B6B;
  --red-soft: rgba(204, 0, 0, .16);
  --blue: #8DA0E6;
  --blue-ink: #A9B8F0;
  --blue-soft: rgba(65, 86, 161, .24);
  --bg: #0C0E11;
  --bg-alt: #111418;
  --surface: #171A1F;
  --ink: #ECEDEF;
  --ink-2: #B3B8C0;
  --ink-3: #8B919A;
  --line: #252930;
  --line-strong: #353A43;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -12px rgba(0, 0, 0, .6);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 24px 48px -24px rgba(0, 0, 0, .8);
  --map-filter: invert(.9) hue-rotate(180deg) saturate(.6) brightness(.9);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color .3s ease, color .3s ease;
}
img, svg, canvas, iframe { display: block; max-width: 100%; }
a { color: inherit; }
p a, dd a, .faq__list a { color: var(--red-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
p a:hover, dd a:hover, .faq__list a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; margin: 0; }
h2 { font-size: clamp(2rem, 4.2vw, 3rem); }
h3 { font-size: 1.125rem; letter-spacing: -0.01em; line-height: 1.3; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--red); color: #fff; }

.mono { font-family: var(--font-mono); }
.ico { width: 1.15em; height: 1.15em; flex: none; }
.u-red { color: var(--red-ink); }
.hide-sm { display: inline; }
.fine { font-size: .82rem; color: var(--ink-3); }

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; }

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

.eyebrow {
  font: 500 .78rem/1.2 var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 14px;
}
.eyebrow--red { color: var(--red-ink); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: transparent; --btn-ink: var(--ink); --btn-line: var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .72em 1.15em;
  font: 600 .95rem/1 var(--font-body);
  text-decoration: none;
  color: var(--btn-ink);
  background: var(--btn-bg);
  border: 1px solid var(--btn-line);
  border-radius: 999px;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn .ico { transition: transform .2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:hover .ico:last-child:not(:first-child) { transform: translateX(3px); }
.btn--primary { --btn-bg: var(--red); --btn-ink: #fff; --btn-line: var(--red); box-shadow: 0 6px 20px -8px rgba(204, 0, 0, .55); }
.btn--primary:hover { --btn-bg: var(--red-deep); --btn-line: var(--red-deep); }
.btn--ghost { --btn-bg: var(--surface); }
.btn--ghost:hover { --btn-line: var(--ink); }
.btn--sm { font-size: .85rem; padding: .6em 1em; }
.btn--lg { font-size: 1rem; padding: .95em 1.4em; }
.btn.is-pending { opacity: .6; pointer-events: none; box-shadow: none; }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-2);
  transition: color .2s, border-color .2s;
}
.icon-btn:hover { color: var(--ink); border-color: var(--line-strong); }

.badge {
  display: inline-flex; align-items: center; gap: .45em;
  font: 500 .72rem/1 var(--font-mono);
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .45em .7em;
  border-radius: 999px;
  vertical-align: middle;
}
.badge--soft { background: var(--red-soft); color: var(--red-ink); }
.badge--live { background: var(--red-soft); color: var(--red-ink); }
.badge--live i { width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: pulse 1.8s ease-out infinite; }

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(204, 0, 0, .55); }
  70% { box-shadow: 0 0 0 8px rgba(204, 0, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(204, 0, 0, 0); }
}

.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; color: var(--red-ink); text-decoration: none; }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 3px; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.tags li { font: 500 .75rem/1 var(--font-mono); padding: .5em .7em; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); }

.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.dot--red { background: var(--red); }
.dot--blue { background: var(--blue); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; }

.announce {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 40px; padding: 8px var(--gutter);
  background: var(--red);
  color: #fff;
  font-size: .88rem;
  text-decoration: none;
}
.announce__pulse { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: pulse-white 1.8s ease-out infinite; flex: none; }
@keyframes pulse-white {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .7); }
  70% { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}
.announce__text strong { font-weight: 600; }
.announce__cta { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, .16); transition: background .2s; }
.announce:hover .announce__cta { background: rgba(255, 255, 255, .28); }
.announce:hover .announce__cta .ico { transform: translateX(2px); }
.announce__cta .ico { transition: transform .2s; }

.nav {
  position: relative;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background-color .3s;
}
.is-scrolled .nav { border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; gap: 24px; height: 64px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 600 1.05rem/1 var(--font-display); letter-spacing: -0.01em; white-space: nowrap; }
.brand__mark { width: 30px; height: 30px; color: var(--ink); }
.brand__at { color: var(--red-ink); }

.nav__links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav__links a {
  position: relative;
  padding: 8px 12px;
  font-size: .9rem; font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  border-radius: 8px;
  white-space: nowrap;
  transition: color .2s, background-color .2s;
}
.nav__links a:hover { color: var(--ink); background: var(--bg-alt); }
.nav__links a.is-active { color: var(--ink); }
.nav__links a.is-active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--red); }
.nav__slack { display: inline-flex; align-items: center; gap: 6px; }
.nav__actions { display: flex; align-items: center; gap: 8px; }
.nav__toggle { display: none; }

#theme-toggle .ico--moon { display: none; }
[data-theme-resolved="dark"] #theme-toggle .ico--sun { display: none; }
[data-theme-resolved="dark"] #theme-toggle .ico--moon { display: block; }
.nav__toggle .ico--close { display: none; }
.nav-open .nav__toggle .ico--close { display: block; }
.nav-open .nav__toggle .ico--menu { display: none; }

/* ---------- Sections ---------- */
.section { padding: 112px 0; }
.section--tight { padding: 72px 0; }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 720px; margin-bottom: 56px; }
.section__lede { margin-top: 18px; font-size: 1.125rem; color: var(--ink-2); }
.section__lede .badge { margin: 0 4px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px 0 40px; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 0%, transparent 75%);
  opacity: .55;
  pointer-events: none;
}
.hero__grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero__title { font-size: clamp(2.6rem, 5.4vw, 4.6rem); font-weight: 700; letter-spacing: -0.035em; line-height: .98; }
.hero__at { display: block; color: var(--red-ink); }
.hero__lede { margin-top: 24px; max-width: 34em; font-size: 1.15rem; color: var(--ink-2); }
.hero__lede strong { color: var(--ink); font-weight: 600; }

.hero__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.hero__meta li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  font-size: .9rem; font-weight: 500;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
}
.hero__meta .ico { color: var(--red-ink); }

.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.countdown { margin-top: 36px; }
.countdown__label { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
.countdown__grid { display: flex; gap: 10px; }
.countdown__grid div {
  min-width: 72px;
  padding: 12px 10px 10px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.countdown__grid span { display: block; font: 500 1.65rem/1 var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.countdown__grid small { display: block; margin-top: 6px; font: 500 .68rem/1 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.countdown.is-live .countdown__label { color: var(--red-ink); }

.hero__figure { margin: 0; }
.hero__canvas-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 24px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--red) 7%, transparent), transparent 60%),
    radial-gradient(circle at 75% 70%, color-mix(in srgb, var(--blue) 9%, transparent), transparent 60%),
    var(--surface);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
#lattice { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; }
.hero__fig-hud { position: absolute; left: 16px; bottom: 14px; display: flex; gap: 14px; font-size: .72rem; color: var(--ink-3); pointer-events: none; }
.hero__figure figcaption { margin-top: 14px; font-size: .78rem; color: var(--ink-3); text-align: center; }
.hero__figure figcaption span { transition: color .4s; }
#fig-state { color: var(--ink); }
.fig-arrow { margin: 0 6px; }

.hero__formerly { position: relative; margin-top: 48px; font-size: .78rem; color: var(--ink-3); }
.hero__formerly a { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-2); text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.hero__formerly a:hover { color: var(--ink); border-color: var(--ink); }

/* ---------- Facts ---------- */
.facts { padding: 8px 0 24px; }
.facts__grid {
  display: grid; grid-template-columns: repeat(6, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.facts__grid li { display: flex; align-items: center; gap: 12px; padding: 20px 18px; border-left: 1px solid var(--line); }
.facts__grid li:first-child { border-left: 0; }
.facts__grid .ico { width: 24px; height: 24px; color: var(--red-ink); }
.facts__grid strong { display: block; font: 600 1rem/1.2 var(--font-display); }
.facts__grid span { display: block; font-size: .8rem; color: var(--ink-3); line-height: 1.35; }

/* ---------- About: halves ---------- */
.halves { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 0; }
.half {
  position: relative;
  padding: 36px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  min-height: 100%;
}
.half::after { content: ""; position: absolute; inset: auto -40px -40px auto; width: 180px; height: 180px; border-radius: 50%; opacity: .5; filter: blur(30px); }
.half--science::after { background: var(--red-soft); }
.half--code::after { background: var(--blue-soft); }
.half h3 { font-size: 1.6rem; margin: 20px 0 10px; }
.half p { color: var(--ink-2); position: relative; z-index: 1; }
.half .tags { position: relative; z-index: 1; }
.half__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; }
.half__icon .ico { width: 26px; height: 26px; }
.half--science .half__icon { background: var(--red-soft); color: var(--red-ink); }
.half--code .half__icon { background: var(--blue-soft); color: var(--blue-ink); }
.halves__join { width: 80px; margin: 0 -16px; position: relative; z-index: 2; color: var(--ink-3); }
.halves__join svg { width: 80px; height: 80px; background: var(--bg); border-radius: 50%; }
.halves__join svg circle { animation: spin 24s linear infinite; transform-origin: 40px 40px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- About: growth ---------- */
.growth {
  display: grid; grid-template-columns: 1fr 2fr; gap: 48px; align-items: center;
  margin-top: 72px; padding-top: 48px;
  border-top: 1px solid var(--line);
}
.growth__intro p:not(.eyebrow) { color: var(--ink-2); margin-bottom: 16px; }
.growth__timeline { display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.growth__timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 30px; height: 1px; background: var(--line-strong); }
.growth__timeline li { position: relative; padding-right: 12px; }
.growth__timeline li::before { content: ""; position: absolute; left: 0; top: 25px; width: 11px; height: 11px; border-radius: 50%; background: var(--surface); border: 2px solid var(--ink-3); }
.growth__timeline li.is-now::before { background: var(--red); border-color: var(--red); box-shadow: 0 0 0 5px var(--red-soft); }
.growth__timeline span { display: block; font-size: .78rem; color: var(--ink-3); margin-bottom: 26px; }
.growth__timeline strong { display: block; font: 600 2.4rem/1 var(--font-display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.growth__timeline .is-now strong { color: var(--red-ink); }
.growth__timeline small { display: block; margin-top: 6px; font-size: .85rem; color: var(--ink-2); line-height: 1.4; }

/* ---------- Cards ---------- */
.cards { display: grid; gap: 16px; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.card {
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.card__ico { width: 28px; height: 28px; color: var(--red-ink); margin-bottom: 18px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink-2); font-size: .95rem; }

/* ---------- Perks ---------- */
.perks { display: grid; grid-template-columns: 1fr 1.3fr; gap: 64px; align-items: center; }
.perks__art {
  display: grid; place-items: center;
  aspect-ratio: 5 / 4;
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 55%, color-mix(in srgb, var(--red) 10%, transparent), transparent 62%),
    var(--bg-alt);
  border: 1px solid var(--line);
}
.shirt { width: 72%; height: auto; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .18)); animation: float 6s ease-in-out infinite; }
.shirt__body { fill: #1A1C20; }
.shirt__collar { stroke: #2C2F35; }
.shirt__logo { stroke: #fff; fill: #fff; }
.shirt__core { fill: var(--red); stroke: none; }
.shirt__text { font: 700 13px var(--font-display); letter-spacing: .12em; fill: #fff; }
.shirt__sub { font: 500 8px var(--font-mono); letter-spacing: .2em; fill: #9BA0A8; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-8px) rotate(1deg); } }
.perks__copy h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: 28px; }
.perks__list { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 28px; }
.perks__list li { display: flex; gap: 14px; }
.perks__list .ico { width: 22px; height: 22px; margin-top: 2px; color: var(--red-ink); }
.perks__list strong { display: block; font-weight: 600; }
.perks__list span { display: block; font-size: .92rem; color: var(--ink-2); }

/* ---------- Build ---------- */
.build { display: grid; grid-template-columns: 1.7fr 1fr; gap: 24px; align-items: start; }
.ideas { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.idea { padding: 26px; background: var(--surface); transition: background-color .25s; }
.idea:hover { background: color-mix(in srgb, var(--surface) 92%, var(--red)); }
.idea__n { display: block; font-size: .75rem; color: var(--red-ink); margin-bottom: 14px; }
.idea h3 { margin-bottom: 6px; }
.idea p { font-size: .93rem; color: var(--ink-2); }

.build__side { display: grid; gap: 16px; }
.tba {
  position: relative;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px dashed var(--line-strong);
  overflow: hidden;
}
.tba::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, color-mix(in srgb, var(--red) 8%, transparent) 50%, transparent 70%);
  background-size: 250% 100%;
  animation: shimmer 4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes shimmer { 0% { background-position: 120% 0; } 100% { background-position: -120% 0; } }
.tba h3 { font-size: 1.5rem; margin: 16px 0 8px; }
.tba p { color: var(--ink-2); margin-bottom: 20px; font-size: .95rem; }

.judging { padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.judging ol { counter-reset: j; display: grid; gap: 14px; margin-bottom: 16px; }
.judging li { counter-increment: j; display: grid; grid-template-columns: 28px 1fr; column-gap: 8px; }
.judging li::before { content: counter(j, decimal-leading-zero); grid-row: span 2; font: 500 .75rem/1.9 var(--font-mono); color: var(--ink-3); }
.judging strong { font-weight: 600; }
.judging span { font-size: .88rem; color: var(--ink-2); }

/* ---------- Schedule ---------- */
.schedule { display: grid; grid-template-columns: 260px 1fr; gap: 40px; }
.tabs { display: flex; flex-direction: column; gap: 8px; }
.tab {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  padding: 16px 20px;
  text-align: left;
  font-weight: 600; font-size: 1.05rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink-2);
  transition: border-color .2s, color .2s, box-shadow .2s;
}
.tab span { font-size: .72rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.tab:hover { color: var(--ink); border-color: var(--line-strong); }
.tab[aria-selected="true"] { color: var(--ink); border-color: var(--red); box-shadow: inset 3px 0 0 var(--red); }
.tab[aria-selected="true"] span { color: var(--red-ink); }
.tab.has-now span::after { content: " · live"; color: var(--red-ink); }

.tabpanel { animation: fade-in .35s ease; }
@keyframes fade-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.timeline { position: relative; }
.timeline::before { content: ""; position: absolute; left: 131px; top: 8px; bottom: 8px; width: 1px; background: var(--line-strong); }
.timeline li { position: relative; display: grid; grid-template-columns: 112px 1fr; gap: 40px; padding: 18px 0; }
.timeline li::before { content: ""; position: absolute; left: 126px; top: 26px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 2px solid var(--ink-3); }
.timeline li.is-key::before { border-color: var(--red); background: var(--red); }
.timeline li.is-now::before { border-color: var(--red); background: var(--red); box-shadow: 0 0 0 0 rgba(204, 0, 0, .55); animation: pulse 1.8s ease-out infinite; }
.timeline li.is-past { opacity: .5; }
.timeline time { font-size: .85rem; color: var(--ink-2); padding-top: 3px; text-align: right; }
.timeline h3 { font-size: 1.15rem; margin-bottom: 4px; }
.timeline p { color: var(--ink-2); font-size: .95rem; }
.timeline li.is-now h3::after { content: "Happening now"; margin-left: 10px; font: 500 .68rem/1 var(--font-mono); text-transform: uppercase; letter-spacing: .06em; padding: .4em .6em; border-radius: 999px; background: var(--red); color: #fff; vertical-align: middle; }

/* ---------- Register steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.step {
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 32px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.step--primary { border-color: var(--red); box-shadow: 0 0 0 4px var(--red-soft); }
.step__n { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; font: 600 .95rem/1 var(--font-mono); background: var(--bg-alt); color: var(--ink-2); margin-bottom: 22px; }
.step--primary .step__n { background: var(--red); color: #fff; }
.step h3 { font-size: 1.25rem; margin-bottom: 8px; }
.step h3 .badge { margin-left: 4px; font-size: .62rem; }
.step p { color: var(--ink-2); margin-bottom: 24px; flex: 1; }

/* ---------- Venue ---------- */
.venue { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.venue h2 { margin-bottom: 32px; font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
.venue__facts { margin: 0 0 20px; display: grid; gap: 20px; }
.venue__facts div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.venue__facts dt { display: flex; align-items: center; gap: 8px; height: fit-content; font: 500 .8rem/1.6 var(--font-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.venue__facts dt .ico { color: var(--red-ink); }
.venue__facts dd { margin: 0; }
.venue__facts .badge { margin-top: 8px; }
.venue__map { position: relative; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); aspect-ratio: 4 / 3.4; background: var(--bg-alt); }
.venue__map iframe { width: 100%; height: 100%; border: 0; filter: var(--map-filter); }
.venue__open { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .82rem; font-weight: 600; text-decoration: none; box-shadow: var(--shadow); }

/* ---------- Resources ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip {
  padding: 8px 14px;
  font-size: .87rem; font-weight: 500;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-2);
  transition: all .2s;
}
.chip:hover { color: var(--ink); border-color: var(--line-strong); }
.chip.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.resources { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.resources li { animation: fade-in .35s ease both; }
.resources li[hidden] { display: none; }
.resources a {
  position: relative;
  display: flex; flex-direction: column; gap: 4px;
  height: 100%;
  padding: 18px 44px 18px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  text-decoration: none;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.resources a:hover { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: var(--shadow); }
.resources a > .ico { position: absolute; top: 18px; right: 16px; color: var(--ink-3); transition: color .2s, transform .2s; }
.resources a:hover > .ico { color: var(--red-ink); transform: translate(2px, -2px); }
.res__tag { font: 500 .68rem/1 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--red-ink); margin-bottom: 6px; }
.resources strong { font-weight: 600; line-height: 1.35; }
.resources small { font-size: .84rem; color: var(--ink-3); }
.resources__more { margin-top: 28px; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 1fr 1.6fr; gap: 64px; align-items: start; }
.faq__head { position: sticky; top: calc(var(--header-h) + 32px); margin-bottom: 0; }
.faq__list { border-top: 1px solid var(--line); }
.faq__list details { border-bottom: 1px solid var(--line); }
.faq__list summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 0;
  font: 600 1.08rem/1.35 var(--font-display);
  cursor: pointer;
  list-style: none;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after {
  content: ""; flex: none;
  width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--line);
  background:
    linear-gradient(var(--ink-2), var(--ink-2)) center / 11px 1.6px no-repeat,
    linear-gradient(var(--ink-2), var(--ink-2)) center / 1.6px 11px no-repeat;
  transition: transform .3s ease, background-color .2s;
}
.faq__list details[open] summary::after { transform: rotate(45deg); }
.faq__list summary:hover::after { border-color: var(--line-strong); }
.faq__list details p { padding: 0 48px 24px 0; color: var(--ink-2); }
.faq__list details[open] p { animation: fade-in .3s ease; }

/* ---------- Last year ---------- */
.lastyear { display: grid; grid-template-columns: 1fr 1.25fr; gap: 64px; align-items: center; }
.lastyear .section__head { margin-bottom: 0; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.photo { position: relative; margin: 0; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 3 / 4; background: var(--surface); box-shadow: var(--shadow); }
.photo:nth-child(2) { margin-top: 56px; }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.photo:hover img { transform: scale(1.03); }
.photo__placeholder {
  position: absolute; inset: 0;
  display: grid; place-content: center; justify-items: center; gap: 10px;
  color: var(--ink-3);
  background-image: radial-gradient(var(--line-strong) 1.2px, transparent 1.2px);
  background-size: 18px 18px;
}
.photo__placeholder .ico { width: 40px; height: 40px; opacity: .6; }
.photo__placeholder span { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
.photo figcaption { position: absolute; left: 14px; bottom: 14px; padding: 6px 10px; border-radius: 999px; font-size: .72rem; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }

/* ---------- Closing ---------- */
.closing { padding-top: 96px; }
.closing__panel {
  position: relative;
  padding: 80px 56px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 85% 20%, color-mix(in srgb, var(--red) 12%, transparent), transparent 55%),
    radial-gradient(circle at 10% 90%, color-mix(in srgb, var(--blue) 12%, transparent), transparent 55%),
    var(--surface);
}
#closing-lattice { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; }
.closing__content { position: relative; max-width: 620px; }
.closing__content h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.closing__content p:not(.eyebrow) { margin-top: 18px; font-size: 1.15rem; color: var(--ink-2); }

/* ---------- Footer ---------- */
.footer { padding: 72px 0 32px; border-top: 1px solid var(--line); }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; }
.footer__brand p { margin-top: 16px; max-width: 30em; color: var(--ink-2); font-size: .93rem; }
.footer__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.footer h3 { font-size: .75rem; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin-bottom: 14px; }
.footer ul { display: grid; gap: 10px; }
.footer ul a { color: var(--ink-2); text-decoration: none; font-size: .93rem; }
.footer ul a:hover { color: var(--ink); }
.footer__base { display: flex; justify-content: space-between; gap: 16px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-size: .78rem; color: var(--ink-3); }
.footer__base a { color: var(--ink-3); text-decoration: none; }
.footer__base a:hover { color: var(--ink); }

/* ---------- Reveal on scroll (only when JS is on) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .nav__links a { padding: 8px 9px; }
  .facts__grid { grid-template-columns: repeat(3, 1fr); }
  .facts__grid li:nth-child(4) { border-left: 0; }
  .facts__grid li:nth-child(n+4) { border-top: 1px solid var(--line); }
}

@media (max-width: 1120px) {
  .nav__links {
    position: absolute; left: 0; right: 0; top: 100%;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    flex-direction: column; align-items: stretch; gap: 2px;
    margin: 0; padding: 12px var(--gutter) 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav-open .nav__links { transform: none; opacity: 1; visibility: visible; }
  .nav__links a { padding: 14px 12px; font-size: 1rem; }
  .nav__links a.is-active::after { display: none; }
  .nav__actions { margin-left: auto; }
  .nav__toggle { display: inline-grid; }
}

@media (max-width: 960px) {

  .section { padding: 80px 0; }
  .hero { padding-top: 40px; }
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__figure { max-width: 520px; width: 100%; margin: 0 auto; }
  .halves { grid-template-columns: 1fr; }
  .halves__join { margin: -16px auto; }
  .growth { grid-template-columns: 1fr; gap: 32px; }
  .cards--3 { grid-template-columns: repeat(2, 1fr); }
  .perks { grid-template-columns: 1fr; gap: 40px; }
  .perks__art { max-width: 460px; width: 100%; }
  .build { grid-template-columns: 1fr; }
  .schedule { grid-template-columns: 1fr; gap: 24px; }
  .tabs { flex-direction: row; overflow-x: auto; }
  .tab { flex: 1; min-width: 140px; }
  .tab[aria-selected="true"] { box-shadow: inset 0 -3px 0 var(--red); }
  .steps { grid-template-columns: 1fr; }
  .venue { grid-template-columns: 1fr; gap: 40px; }
  .resources { grid-template-columns: repeat(2, 1fr); }
  .faq { grid-template-columns: 1fr; gap: 32px; }
  .faq__head { position: static; }
  .lastyear { grid-template-columns: 1fr; gap: 40px; }
  .footer__inner { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .hide-sm { display: none; }
  .announce { font-size: .82rem; gap: 10px; }
  .brand__text { font-size: .95rem; }
  .nav__actions .btn--sm { display: none; }
  .section { padding: 64px 0; }
  .section__head { margin-bottom: 36px; }
  .section__lede { font-size: 1.02rem; }
  .hero__lede { font-size: 1.04rem; }
  .hero__ctas .btn { flex: 1 1 100%; }
  .countdown__grid { gap: 8px; }
  .countdown__grid div { flex: 1; min-width: 0; }
  .countdown__grid span { font-size: 1.4rem; }
  .facts__grid { grid-template-columns: repeat(2, 1fr); }
  .facts__grid li { border-left: 0; border-top: 1px solid var(--line); padding: 16px 14px; }
  .facts__grid li:nth-child(-n+2) { border-top: 0; }
  .facts__grid li:nth-child(even) { border-left: 1px solid var(--line); }
  .half { padding: 28px 24px; }
  .growth__timeline { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .growth__timeline::before { display: none; }
  .growth__timeline li::before { top: 4px; }
  .growth__timeline span { margin: 0 0 10px 20px; }
  .growth__timeline strong { font-size: 2rem; }
  .cards--3 { grid-template-columns: 1fr; }
  .perks__list { grid-template-columns: 1fr; }
  .ideas { grid-template-columns: 1fr; }
  .tab { padding: 12px; font-size: .9rem; min-width: 0; }
  .timeline::before { left: 5px; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; padding: 14px 0 14px 28px; }
  .timeline li::before { left: 0; top: 19px; }
  .timeline time { text-align: left; }
  .step { padding: 26px 22px; }
  .venue__facts div { grid-template-columns: 1fr; gap: 6px; }
  .resources { grid-template-columns: 1fr; }
  .faq__list details p { padding-right: 0; }
  .gallery { gap: 10px; }
  .photo { border-radius: 14px; }
  .photo:nth-child(2) { margin-top: 32px; }
  .photo figcaption { left: 8px; bottom: 8px; font-size: .64rem; }
  .closing__panel { padding: 48px 22px; border-radius: 22px; }
  #closing-lattice { opacity: .3; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .footer__base { flex-direction: column; }
}

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

/* ---------- During the event (Miro) ---------- */
.during {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px;
  margin-top: 16px; padding: 22px 28px;
  border-radius: 20px;
  border: 1px dashed var(--line-strong);
  background: color-mix(in srgb, var(--surface) 60%, transparent);
}
.during__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--blue-soft); color: var(--blue-ink); }
.during__icon .ico { width: 24px; height: 24px; }
.during .eyebrow { margin-bottom: 6px; }
.during .eyebrow .badge { margin-left: 6px; font-size: .62rem; }
.during h3 { margin-bottom: 4px; }
.during__copy p:not(.eyebrow) { color: var(--ink-2); font-size: .95rem; }
@media (max-width: 760px) {
  .during { grid-template-columns: auto 1fr; padding: 22px; align-items: start; }
  .during .btn { grid-column: 1 / -1; justify-self: start; }
}
