/* BSides Dehradun 0x03 · redesign preview, v2
   Built on the site's own tokens (tokens.css, resolved to hex) so the web
   matches the announcement posts exactly. Survey-plate vocabulary: hairline
   rules, mono stamps, crop marks, a datum, hachured relief. */

@font-face {
  font-family: Geist;
  src: url("../font/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("../font/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

/* ---------- tokens: light (default) ---------- */
:root {
  color-scheme: light;
  --paper:        #FCFAF7;
  --paper-sunk:   #F6F3EF;
  --paper-raised: #FFFFFF;
  --ink:          #101216;
  --ink-2:        #4B4D52;
  --ink-3:        #6A6C70;
  --rule:         #D9DBDE;
  --rule-strong:  #AFB1B5;
  --accent:       #064ED4;
  --accent-hover: #0036BC;
  --accent-tint:  #E4F1FF;
  --accent-ink:   #FAFCFF;
  --brand:        #B71B14;
  --open:         #1F8A55;
  --warn:         #B7791F;

  --hero-bg:   #FFFFFF;           /* the orb's own scene colour in light */
  --hero-halo: rgb(255 255 255 / 0.85);

  --font: Geist, "Helvetica Neue", Inter, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --serif: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --fs-label: 0.6875rem;
  --fs-sm:    0.875rem;
  --fs-base:  clamp(1rem, 0.965rem + 0.18vw, 1.0625rem);
  --fs-lg:    clamp(1.125rem, 1.05rem + 0.36vw, 1.3125rem);
  --fs-xl:    clamp(1.25rem, 1.14rem + 0.5vw, 1.5rem);
  --fs-2xl:   clamp(1.75rem, 1.42rem + 1.55vw, 2.5rem);
  --fs-h2:    clamp(2.2rem, 1.3rem + 3.6vw, 4.25rem);
  --fs-hero:  clamp(3rem, 0.9rem + 8.6vw, 9rem);

  --track-display: -0.0384em;
  --track-label: 0.13em;
  --track-stamp: 0.105em;

  --wrap: 1360px;
  --gutter: clamp(1.25rem, 4.5vw, 3.5rem);
  --section: clamp(4rem, 8vw, 8rem);
  --r: 4px;

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 72px;
}

/* ---------- tokens: dark ---------- */
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper:        #0B0C10;
  --paper-sunk:   #050609;
  --paper-raised: #121418;
  --ink:          #F3F2EF;
  --ink-2:        #B5B7BB;
  --ink-3:        #87898D;
  --rule:         #27292D;
  --rule-strong:  #45484D;
  --accent:       #71A5FF;
  --accent-hover: #91C0FF;
  --accent-tint:  #101E39;
  --accent-ink:   #050911;
  --brand:        #E86152;
  --open:         #4FC98A;
  --warn:         #E5B45B;

  --hero-bg:   #070A14;           /* the orb's own scene colour in dark */
  --hero-halo: rgb(0 0 0 / 0.7);
}

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.62;
  letter-spacing: -0.004em;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p, h1, h2, h3, ul, ol, dl, dd, figure, table { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* The state scripts toggle [hidden]; no component display rule may override it. */
[hidden] { display: none !important; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sprite { position: absolute; width: 0; height: 0; }
.skip {
  position: fixed; left: 1rem; top: -4rem; z-index: 100;
  padding: 0.6rem 1rem; border-radius: 999px; background: var(--ink); color: var(--paper); text-decoration: none;
}
.skip:focus { top: 1rem; }
.ico { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

.logo--paper { display: none; }
:root[data-theme="dark"] .logo--ink { display: none; }
:root[data-theme="dark"] .logo--paper { display: block; }

/* One 12-column grid for every section, so all second columns share one line */
.grid12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }

/* ---------- type primitives ---------- */

.eyebrow {
  display: flex; align-items: baseline; gap: 0.75rem;
  font-family: var(--mono); font-size: var(--fs-label); font-weight: 500;
  text-transform: uppercase; letter-spacing: var(--track-label); color: var(--ink-3);
}
.eyebrow__num { color: var(--accent); }
.stamp {
  font-family: var(--mono); font-size: var(--fs-label); font-weight: 500;
  text-transform: uppercase; letter-spacing: var(--track-stamp); color: var(--ink-3);
}
.lead { font-family: var(--serif); font-size: var(--fs-lg); line-height: 1.5; color: var(--ink-2); }

/* ---------- buttons ---------- */

.btn {
  --mx: 0px; --my: 0px;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 46px; padding: 0 1.35rem;
  border: 1px solid transparent; border-radius: 999px;
  font-size: 0.95rem; font-weight: 500; letter-spacing: -0.005em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  translate: var(--mx) var(--my);
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), translate 0.25s var(--ease);
}
.btn--sm { min-height: 38px; padding: 0 1.05rem; font-size: 0.9rem; }
.btn--lg { min-height: 54px; padding: 0 1.75rem; font-size: 1rem; }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: var(--accent-hover); }
.btn--line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--line:hover { background: var(--ink); color: var(--paper); }
.btn--paper { background: var(--accent-ink); color: var(--accent); }
.btn--paper:hover { background: var(--paper); color: var(--ink); }
.btn--line-light { border-color: color-mix(in oklab, var(--accent-ink) 55%, transparent); color: var(--accent-ink); }
.btn--line-light:hover { border-color: var(--accent-ink); background: color-mix(in oklab, var(--accent-ink) 12%, transparent); }

.round {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--rule-strong); background: transparent; color: var(--ink); cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.round:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- crop marks (survey plate corners) ---------- */

.crop { position: absolute; width: 18px; height: 18px; pointer-events: none; color: var(--rule-strong); }
.crop::before, .crop::after { content: ""; position: absolute; background: currentColor; }
.crop::before { width: 100%; height: 1px; }
.crop::after { width: 1px; height: 100%; }
.crop--tl { top: -1px; left: -1px; }
.crop--tr { top: -1px; right: -1px; } .crop--tr::after { right: 0; }
.crop--bl { bottom: -1px; left: -1px; } .crop--bl::before { bottom: 0; }
.crop--br { bottom: -1px; right: -1px; } .crop--br::before { bottom: 0; } .crop--br::after { right: 0; }

/* ---------- header ---------- */

.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.nav.is-scrolled {
  background: color-mix(in oklab, var(--paper) 90%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--rule);
}
.nav__inner { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; height: 100%; display: flex; align-items: center; gap: 1rem; }
.nav__logo { flex: none; }
.nav__logo .logo { width: 112px; height: auto; }
.nav__menu { margin-inline-start: auto; display: flex; align-items: center; gap: 0.15rem; }
.nav__menu a:not(.btn) {
  position: relative; padding: 0.5rem 0.75rem; font-size: 0.92rem; font-weight: 500; color: var(--ink-2); text-decoration: none;
  transition: color 0.2s var(--ease);
}
.nav__menu a:not(.btn)::after {
  content: ""; position: absolute; left: 0.75rem; right: 0.75rem; bottom: 0.3rem; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease-out);
}
.nav__menu a:not(.btn):hover { color: var(--ink); }
.nav__menu a:not(.btn):hover::after { transform: scaleX(1); }
.nav__menu-cta { display: none; }

.theme {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--rule); background: transparent; color: var(--ink-2); cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.5s var(--ease-out);
}
.theme:hover { color: var(--ink); border-color: var(--rule-strong); transform: rotate(-20deg); }
.theme__moon { display: none; }
:root[data-theme="dark"] .theme__sun { display: none; }
:root[data-theme="dark"] .theme__moon { display: block; }
.nav__toggle { display: none; }

@media (max-width: 960px) {
  .nav__menu {
    position: fixed; inset: var(--nav-h) 0 auto; flex-direction: column; align-items: stretch; gap: 0;
    padding: 0.5rem var(--gutter) 1.25rem; background: var(--paper); border-bottom: 1px solid var(--rule);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 0.25s var(--ease), transform 0.3s var(--ease-out), visibility 0s 0.3s;
  }
  .nav.is-open { background: var(--paper); border-bottom-color: var(--rule); }
  .nav.is-open .nav__menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav__menu a:not(.btn) { padding: 0.95rem 0; font-size: 1.1rem; color: var(--ink); border-bottom: 1px solid var(--rule); }
  .nav__menu a:not(.btn)::after { display: none; }
  .nav__menu-cta { display: flex; margin-top: 1rem; min-height: 52px; }
  .theme { margin-inline-start: auto; }
  .nav__toggle {
    display: inline-flex; align-items: center; gap: 0.5rem; height: 38px; padding: 0 0.85rem;
    border: 1px solid var(--rule); border-radius: 999px; background: transparent; cursor: pointer;
    font-family: var(--mono); font-size: var(--fs-label); text-transform: uppercase; letter-spacing: var(--track-label);
  }
  .nav__toggle-bars, .nav__toggle-bars::before { display: block; width: 14px; height: 1.5px; background: currentColor; transition: transform 0.3s var(--ease), translate 0.3s var(--ease); }
  .nav__toggle-bars { translate: 0 -2.5px; }
  .nav__toggle-bars::before { content: ""; translate: 0 5px; }
  .nav.is-open .nav__toggle-bars { transform: rotate(45deg); translate: 0 0; }
  .nav.is-open .nav__toggle-bars::before { transform: rotate(-90deg); translate: 0 0; }
}
@media (max-width: 520px) { .nav__cta { display: none; } }

/* ---------- hero ---------- */

.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: max(100svh, 760px);
  padding-top: calc(var(--nav-h) + clamp(1.5rem, 4vh, 3rem));
  padding-bottom: clamp(4.5rem, 9vh, 6.5rem);
  background: var(--hero-bg);
  display: flex; flex-direction: column;
}
.hero__orb { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__orb-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero__orb-fade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 72%, var(--paper) 100%);
}
:root[data-theme="dark"] .hero__orb-fade {
  background:
    radial-gradient(circle at 50% 40%, transparent 30%, rgb(5 6 9 / 0.5) 75%, rgb(5 6 9 / 0.85) 100%),
    linear-gradient(180deg, transparent 72%, var(--paper) 100%);
}

.hero__plate {
  position: relative; flex: 1; display: grid; grid-template-rows: auto 1fr auto auto;
  padding-block: clamp(1.25rem, 2.5vw, 2rem);
}
.hero__plate > .crop { --o: clamp(-14px, -1.2vw, -8px); }
.hero__plate > .crop--tl, .hero__plate > .crop--bl { left: var(--o); }
.hero__plate > .crop--tr, .hero__plate > .crop--br { right: var(--o); }
.hero__top {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap;
  padding-bottom: 1rem; border-bottom: 1px solid color-mix(in oklab, var(--ink) 14%, transparent);
}
.hero__title {
  align-self: center; margin-block: clamp(2rem, 6vh, 4rem);
  font-size: var(--fs-hero); font-weight: 500; line-height: 0.9; letter-spacing: var(--track-display);
  color: var(--ink);
  text-shadow: 0 0 18px var(--hero-halo), 0 0 46px var(--hero-halo);
}
.hero__line { display: block; overflow: clip; padding-block: 0.06em; margin-block: -0.06em; }
.hero__line > span { display: inline-block; }

.hero__body { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 1.5rem 3rem; }
.hero__lead { max-width: 36ch; color: var(--ink); text-shadow: 0 0 14px var(--hero-halo); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }

.facts {
  display: grid; grid-template-columns: repeat(4, minmax(max-content, 1fr));
  margin-top: clamp(1.75rem, 4vh, 2.75rem);
  --facts-rule: color-mix(in oklab, var(--ink) 14%, transparent);
  --facts-pad: clamp(1rem, 0.6rem + 1.2vw, 1.5rem);
  border: 1px solid var(--facts-rule); border-radius: var(--r); overflow: hidden;
  background: color-mix(in oklab, var(--hero-bg) 70%, transparent);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.facts > div { min-width: 0; padding: calc(var(--facts-pad) * 0.8) var(--facts-pad) calc(var(--facts-pad) * 0.85); }
.facts > div + div { border-left: 1px solid var(--facts-rule); }
.facts dt { font-family: var(--mono); font-size: var(--fs-label); text-transform: uppercase; letter-spacing: var(--track-label); color: var(--ink-3); }
.facts dd { margin-top: 0.35rem; font-size: var(--fs-lg); font-weight: 500; letter-spacing: -0.015em; line-height: 1.3; }
/* the countdown is set smaller, so centre it in a line as tall as its neighbours' */
.facts__cd dd { line-height: calc(var(--fs-lg) * 1.3); }
.facts__cd dd { font-family: var(--mono); font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: 0; white-space: nowrap; font-size: clamp(0.95rem, 0.55rem + 0.75vw, 1.3rem); }
.facts__cd i { font-style: normal; margin-left: 1px; color: var(--ink-3); font-size: 0.8em; }

.cfp-chip {
  justify-self: start; display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.6rem; margin-top: 1rem;
  font-size: 0.9rem; text-decoration: none; color: var(--ink-2);
}
.cfp-chip strong { font-weight: 500; color: var(--ink); }
.cfp-chip span:last-child { font-family: var(--mono); font-size: var(--fs-label); text-transform: uppercase; letter-spacing: var(--track-stamp); color: var(--ink-3); }
.cfp-chip:hover strong { color: var(--accent); }
.cfp-chip__dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--warn); color: var(--warn); }
.cfp-chip__dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid currentColor; animation: ping 2s var(--ease-out) infinite; }
.cfp-chip[data-state="open"] .cfp-chip__dot { background: var(--open); color: var(--open); }
.cfp-chip[data-state="closed"] .cfp-chip__dot { background: var(--ink-3); }
.cfp-chip[data-state="closed"] .cfp-chip__dot::after { display: none; }
@keyframes ping { from { transform: scale(0.6); opacity: 0.8; } to { transform: scale(2); opacity: 0; } }

.datum {
  position: absolute; left: 0; right: 0; bottom: clamp(1.5rem, 3vh, 2.25rem);
  border-top: 1px dashed var(--rule-strong);
}
.datum span {
  position: absolute; right: var(--gutter); top: -0.6rem; padding-left: 0.6rem; background: var(--paper);
  font-family: var(--mono); font-size: var(--fs-label); text-transform: uppercase; letter-spacing: var(--track-stamp); color: var(--ink-3);
}

@media (max-width: 860px) {
  .hero__body { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts dd { overflow-wrap: anywhere; }
  .facts > div:nth-child(3) { border-left: 0; border-top: 1px solid var(--facts-rule); }
  .facts > div:nth-child(4) { border-top: 1px solid var(--facts-rule); }
}
@media (max-width: 520px) {
  .hero { min-height: auto; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__top .stamp { display: none; }
  .facts dd { font-size: 1rem; }
  .facts__cd dd { line-height: 1.3rem; font-size: 0.86rem; }
}

/* page-load sequence */
.js [data-load] { opacity: 0; translate: 0 14px; }
.js .is-loaded [data-load] { opacity: 1; translate: 0 0; transition: opacity 0.8s var(--ease-out), translate 0.9s var(--ease-out); transition-delay: calc(var(--n, 0) * 90ms + 120ms); }
.js .hero__title[data-load] { opacity: 1; translate: 0 0; }
.js .hero__line > span { translate: 0 105%; }
.js .is-loaded .hero__line > span { translate: 0 0; transition: translate 1.1s var(--ease-out); transition-delay: calc(var(--n, 0) * 110ms + 180ms); }

/* ---------- sections ---------- */

.section { padding-block: var(--section); border-top: 1px solid var(--rule); }
.section--sunk { background: var(--paper-sunk); }

.head {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0.9rem var(--gutter);
  margin-bottom: clamp(2.25rem, 4.5vw, 4rem);
}
.head .eyebrow { grid-column: 1 / span 3; padding-top: 0.9em; }
.head__title { grid-column: 4 / span 8; font-size: var(--fs-h2); font-weight: 500; line-height: 1; letter-spacing: var(--track-display); text-wrap: balance; }
.head__sub { grid-column: 4 / span 6; font-family: var(--serif); font-size: var(--fs-lg); line-height: 1.5; color: var(--ink-2); }
.head__sub a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.head--stack { display: block; }
.head--stack > * + * { margin-top: 1rem; }
@media (max-width: 860px) {
  .head { display: block; }
  .head > * + * { margin-top: 0.9rem; }
  .head .eyebrow { padding-top: 0; }
}

/* scroll reveal */
.js [data-reveal] { opacity: 0; translate: 0 18px; }
.js [data-reveal].is-in { opacity: 1; translate: 0 0; transition: opacity 0.8s var(--ease-out), translate 0.9s var(--ease-out); transition-delay: var(--d, 0ms); }

/* ---------- tilt (photos only) ---------- */

[data-tilt] {
  --rx: 0deg; --ry: 0deg;
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.7s var(--ease-out);
  will-change: transform;
}
[data-tilt].is-tilting { transition: transform 0.12s linear; }

/* ---------- programme ---------- */

.days { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); border-top: 1px solid var(--ink); }
.day { grid-column: span 6; padding-top: 1.5rem; }
.day + .day { margin-left: calc(var(--gutter) / -2); padding-left: calc(var(--gutter) / 2); border-left: 1px solid var(--rule); }
.day__head { display: grid; gap: 0.4rem; margin-bottom: 1.5rem; }
.day__head .stamp { color: var(--accent); }
.day__title { font-size: var(--fs-2xl); font-weight: 500; letter-spacing: -0.03em; }
.day__items { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(0.85rem, 1.6vw, 1.5rem); }

.item { display: grid; align-content: start; gap: 0.35rem; text-decoration: none; }
.item__img { display: block; overflow: hidden; border-radius: var(--r); aspect-ratio: 4 / 5; background: var(--paper-sunk); margin-bottom: 0.65rem; }
.item__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 1s var(--ease-out), filter 0.5s var(--ease); filter: saturate(0.85); }
.item:hover .item__img img { transform: scale(1.08); filter: saturate(1); }
.item__title { display: flex; align-items: center; justify-content: space-between; font-size: var(--fs-xl); font-weight: 500; letter-spacing: -0.02em; }
.item__title::after {
  content: ""; width: 18px; height: 18px; background: var(--ink); opacity: 0.35;
  mask: url("../img/ui/arrow-ne.svg") center / contain no-repeat;
  transition: transform 0.4s var(--ease-out), opacity 0.3s var(--ease), background-color 0.3s var(--ease);
}
.item:hover .item__title { color: var(--accent); }
.item:hover .item__title::after { opacity: 1; background: var(--accent); transform: translate(3px, -3px); }
.item__text { font-size: 0.93rem; line-height: 1.45; color: var(--ink-2); }
@media (max-width: 960px) {
  .days { grid-template-columns: 1fr; }
  .day { grid-column: auto; }
  .day, .day + .day { margin-left: 0; padding: 1.5rem 0 2rem; border-left: 0; }
  .day + .day { border-top: 1px solid var(--rule); }
}

/* ---------- growth profile ---------- */

.profile { position: relative; height: clamp(260px, 30vw, 380px); margin-top: 4rem; }
.profile__chart { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.profile__hatch { stroke: var(--accent); stroke-width: 1; opacity: 0.4; }
.profile__datum { stroke: var(--rule-strong); stroke-dasharray: 4 5; vector-effect: non-scaling-stroke; }
.profile__line { fill: none; stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; }
.profile__area { opacity: 0; transition: opacity 1.2s var(--ease) 0.9s; }
.profile.is-in .profile__line { stroke-dashoffset: 0; transition: stroke-dashoffset 2.2s var(--ease-out) 0.2s; }
.profile.is-in .profile__area { opacity: 1; }
.profile__peaks { position: absolute; inset: 0; }
.peak { position: absolute; display: grid; justify-items: center; gap: 0.25rem; translate: -50% calc(-100% - 18px); text-align: center; }
/* trig-point marker: a small triangle, the survey benchmark symbol */
.peak::after {
  content: ""; position: absolute; left: 50%; top: calc(100% + 6px); translate: -50% 0;
  width: 14px; height: 12px; background: var(--accent); clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.peak--1 { left: 16.7%; top: 69.3%; }
.peak--2 { left: 50%; top: 49.3%; }
.peak--3 { left: 83.3%; top: 13.3%; }
.peak__value { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.5rem); font-weight: 500; letter-spacing: var(--track-display); line-height: 1; font-variant-numeric: tabular-nums; }
.peak--3 .peak__value { color: var(--accent); }
.peak .stamp { white-space: nowrap; }
.js .peak { opacity: 0; transition: opacity 0.6s var(--ease); }
.js .profile.is-in .peak { opacity: 1; }
.profile.is-in .peak--1 { transition-delay: 0.5s; }
.profile.is-in .peak--2 { transition-delay: 1.1s; }
.profile.is-in .peak--3 { transition-delay: 1.7s; }

/* ---------- tickets ---------- */

.passes { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--rule); border-radius: var(--r); background: var(--paper-raised); }
.pass { position: relative; display: flex; flex-direction: column; padding: clamp(1.5rem, 2.5vw, 2.25rem); transition: background-color 0.3s var(--ease); }
.pass + .pass { border-left: 1px solid var(--rule); }
.pass:hover { background: color-mix(in oklab, var(--accent-tint) 55%, var(--paper-raised)); }
.pass--mark::before { content: ""; position: absolute; inset: -1px -1px auto; height: 3px; background: var(--accent); }
.pass--mark .pass__name { color: var(--accent); }
.pass__price { margin-top: 0.75rem; font-size: clamp(2.6rem, 1.9rem + 2.3vw, 3.75rem); font-weight: 500; line-height: 1; letter-spacing: var(--track-display); font-variant-numeric: tabular-nums; }
.pass__price span { font-size: 0.5em; vertical-align: 0.6em; margin-right: 0.08em; color: var(--ink-3); letter-spacing: 0; }
.pass__stages { margin-top: 1.5rem; border-top: 1px solid var(--rule); }
.pass__stages li {
  display: flex; justify-content: space-between; padding: 0.55rem 0; border-bottom: 1px solid var(--rule);
  font-family: var(--mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); font-variant-numeric: tabular-nums;
}
.pass__stages li:first-child { color: var(--ink); }
.pass__list { display: grid; gap: 0.55rem; margin-top: 1.5rem; margin-bottom: 2rem; }
.pass__list li { position: relative; padding-left: 1.25rem; font-size: 0.95rem; line-height: 1.4; color: var(--ink-2); }
.pass__list li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 0.6rem; height: 1px; background: var(--accent); }
.pass__cta {
  margin-top: auto; display: flex; align-items: center; justify-content: space-between;
  padding-top: 1rem; border-top: 1px solid var(--ink); font-weight: 500; text-decoration: none;
}
.pass__cta::after { content: ""; width: 20px; height: 20px; background: currentColor; mask: url("../img/ui/arrow-right.svg") center / contain no-repeat; transition: translate 0.35s var(--ease-out); }
.pass__cta:hover { color: var(--accent); }
.pass__cta:hover::after { translate: 5px 0; }
.note { margin-top: 1.5rem; font-size: 0.95rem; color: var(--ink-2); }
.note a:not(.btn) { color: var(--accent); text-underline-offset: 3px; }
@media (max-width: 900px) {
  .passes { grid-template-columns: 1fr; }
  .pass + .pass { border-left: 0; border-top: 1px solid var(--rule); }
}

/* ---------- CFP band ---------- */

.cfp { position: relative; isolation: isolate; overflow: hidden; padding-block: var(--section); background: var(--accent); color: var(--accent-ink); }
.cfp__contour {
  position: absolute; inset: auto 0 0; height: 70%; z-index: -1; opacity: 0.22;
  background: var(--accent-ink);
  -webkit-mask: url("../img/contour.svg") center bottom / 140% auto repeat-y; mask: url("../img/contour.svg") center bottom / 140% auto repeat-y;
  transition: transform 1.5s var(--ease-out);
}
.cfp__inner { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 3rem var(--gutter); align-items: start; }
.cfp__copy { grid-column: 1 / span 6; }
.cfp__side { grid-column: 7 / -1; padding-top: 2.6rem; }
.eyebrow--on-accent, .eyebrow--on-accent .eyebrow__num { color: var(--accent-ink); }
.eyebrow--on-accent { opacity: 0.85; }
.cfp__title { margin-top: 1.5rem; font-size: var(--fs-h2); font-weight: 500; line-height: 1; letter-spacing: var(--track-display); text-wrap: balance; }
.cfp__sub { margin-top: 1.25rem; max-width: 38ch; color: color-mix(in oklab, var(--accent-ink) 88%, transparent); }
.cfp__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 2rem; }

.timeline { border-top: 1px solid color-mix(in oklab, var(--accent-ink) 40%, transparent); }
.timeline__step {
  display: grid; grid-template-columns: 14px 10.5rem 1fr; align-items: center; gap: 1rem;
  padding: 0.9rem 0; border-bottom: 1px solid color-mix(in oklab, var(--accent-ink) 40%, transparent);
}
.timeline__step::before { content: ""; width: 10px; height: 10px; border: 1.5px solid var(--accent-ink); transform: rotate(45deg); }
.timeline__step time { font-family: var(--mono); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; }
.timeline__step.is-done::before, .timeline__step.is-next::before { background: var(--accent-ink); }
.timeline__step.is-next span { font-weight: 600; }
.timeline__step.is-next::before { box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent-ink) 25%, transparent); }
.formats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 2rem; }
.formats li { display: grid; gap: 0.15rem; padding-right: 1rem; }
.formats li + li { padding-left: 1rem; border-left: 1px solid color-mix(in oklab, var(--accent-ink) 40%, transparent); }
.formats b { font-size: var(--fs-2xl); font-weight: 500; letter-spacing: -0.03em; line-height: 1; }
.formats span { font-family: var(--mono); font-size: var(--fs-label); text-transform: uppercase; letter-spacing: var(--track-stamp); opacity: 0.85; }
@media (max-width: 900px) { .cfp__inner { grid-template-columns: 1fr; } .cfp__copy, .cfp__side { grid-column: auto; padding-top: 0; } }
@media (max-width: 480px) { .timeline__step { grid-template-columns: 14px 8.6rem 1fr; } .timeline__step time { font-size: 0.74rem; } }

/* ---------- gallery (3D coverflow) ---------- */

.gallery .head__title { grid-column: 4 / span 6; }
.gallery__controls { grid-column: 10 / -1; grid-row: 1; justify-self: end; align-self: end; display: flex; align-items: center; gap: 0.5rem; }
@media (max-width: 860px) { .gallery__controls { margin-top: 1.25rem; } }
.gallery__controls .stamp { margin-right: 0.75rem; font-variant-numeric: tabular-nums; }
.reel {
  --w: clamp(260px, 36vw, 520px);
  display: flex; gap: clamp(0.75rem, 2vw, 1.5rem);
  padding: 1.5rem calc(50vw - var(--w) / 2) 1rem;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  perspective: 1400px; cursor: grab;
}
.reel::-webkit-scrollbar { display: none; }
.reel.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.reel__item {
  --ry: 0deg; --tz: 0px; --o: 1;
  flex: none; width: var(--w); scroll-snap-align: center;
  transform: rotateY(var(--ry)) translateZ(var(--tz)); opacity: var(--o);
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.reel__item img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r); pointer-events: none; user-select: none; }
.reel__item figcaption { margin-top: 0.8rem; font-size: 0.92rem; color: var(--ink-2); }

/* ---------- partners ---------- */

.partners { padding-block: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--rule); }
.partners__community { display: flex; flex-wrap: wrap; align-items: center; gap: var(--gutter); margin-top: 1.75rem; }
/* Partner artwork is drawn for dark backgrounds (white type in the Indore mark),
   so every logo sits on the same dark plate the live site uses, in both themes. */
.partners__community li {
  display: grid; place-items: center; width: clamp(150px, 18vw, 220px); height: clamp(84px, 9vw, 112px);
  padding: 0.75rem 1.25rem; border-radius: var(--r); background: #11131B;
  transition: transform 0.5s var(--ease-out);
}
.partners__community li:hover { transform: translateY(-3px); }
.community-logo { width: auto; height: auto; max-width: 100%; max-height: clamp(48px, 5.5vw, 72px); object-fit: contain; }
.community-logo--square { max-height: clamp(60px, 7vw, 92px); }
.partners__sub { margin-top: 3rem; padding-top: 1rem; border-top: 1px solid var(--rule); }

.logo-mask {
  display: block; width: 140px; height: 50px; background-color: var(--ink-2);
  -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat;
  transition: background-color 0.3s var(--ease);
}
.logo-mask:hover { background-color: var(--accent); }
.logo-mask[data-logo="altered-security"] { --logo: url("../img/partners/altered-security.webp"); }
.logo-mask[data-logo="cloudsek"]         { --logo: url("../img/partners/cloudsek.webp"); }
.logo-mask[data-logo="hack-defender"]    { --logo: url("../img/partners/hack-defender.webp"); }
.logo-mask[data-logo="infosectrain"]     { --logo: url("../img/partners/infosectrain.webp"); }
.logo-mask[data-logo="iotsrg"]           { --logo: url("../img/partners/iotsrg.webp"); }
.logo-mask[data-logo="jsmon"]            { --logo: url("../img/partners/jsmon.webp"); }
.logo-mask[data-logo="leetsec"]          { --logo: url("../img/partners/leetsec.webp"); }
.logo-mask[data-logo="offsec"]           { --logo: url("../img/partners/offsec.webp"); }
.logo-mask[data-logo="upes-x-pivot"]     { --logo: url("../img/partners/upes-x-pivot.webp"); width: 180px; }

.marquee { margin-top: 1.25rem; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; align-items: center; gap: clamp(2.5rem, 5vw, 4.5rem); width: max-content; padding-block: 0.5rem; animation: marquee 45s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - clamp(2.5rem, 5vw, 4.5rem) / 2)); } }

/* ---------- get involved (ruled rows) ---------- */

.rows { border-top: 1px solid var(--ink); }
.rows li { position: relative; isolation: isolate; }
.row {
  position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: center; gap: 1rem var(--gutter);
  padding: 1.6rem 0; border-bottom: 1px solid var(--rule); text-decoration: none; overflow: hidden;
}
.row::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--accent-tint);
  transform: scaleY(0); transform-origin: bottom; transition: transform 0.45s var(--ease-out);
}
.row:hover::before { transform: scaleY(1); }
.row__title { grid-column: 1 / span 3; font-size: var(--fs-2xl); font-weight: 500; letter-spacing: -0.03em; transition: color 0.3s var(--ease), translate 0.45s var(--ease-out); }
.row__text { grid-column: 4 / span 7; color: var(--ink-2); max-width: 52ch; }
.row__go { grid-column: 12; justify-self: end; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--rule-strong); transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), translate 0.45s var(--ease-out); }
.row:hover .row__title { color: var(--accent); translate: 0.75rem 0; }
.row:hover .row__go { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); translate: -0.75rem 0; }
@media (max-width: 760px) {
  .row { grid-template-columns: 1fr auto; }
  .row__title { grid-column: 1; }
  .row__go { grid-column: 2; }
  .row__text { grid-column: 1 / -1; grid-row: 2; }
}

/* ---------- venue ---------- */

.venue__inner { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2.5rem var(--gutter); align-items: center; }
.venue__photo { grid-column: 1 / span 6; position: relative; }
.venue__copy { grid-column: 7 / -1; }
.venue__frame { position: relative; display: block; }
.venue__frame > .crop { --o: -10px; }
.venue__frame > .crop--tl { top: var(--o); left: var(--o); }
.venue__frame > .crop--tr { top: var(--o); right: var(--o); }
.venue__frame > .crop--bl { bottom: var(--o); left: var(--o); }
.venue__frame > .crop--br { bottom: var(--o); right: var(--o); }
.venue__img { display: block; overflow: hidden; border-radius: var(--r); }
.venue__img img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.venue__photo:hover img { transform: scale(1.05); }
.venue__photo figcaption { margin-top: 0.85rem; }
.venue__copy .eyebrow { margin-bottom: 1.25rem; }
.venue__copy .head__sub { margin-top: 1rem; }
.routes { width: 100%; margin: 2rem 0 2.25rem; border-collapse: collapse; border-top: 1px solid var(--ink); font-size: 0.95rem; }
.routes th, .routes td { padding: 0.75rem 0.75rem 0.75rem 0; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: baseline; }
.routes th { width: 5rem; font-family: var(--mono); font-size: var(--fs-label); font-weight: 500; text-transform: uppercase; letter-spacing: var(--track-stamp); color: var(--accent); }
.routes td:last-child { color: var(--ink-2); }
@media (max-width: 860px) { .venue__inner { grid-template-columns: 1fr; } .venue__photo, .venue__copy { grid-column: auto; } }
@media (max-width: 560px) {
  .routes tr { display: grid; grid-template-columns: 4.5rem 1fr; border-bottom: 1px solid var(--rule); padding: 0.7rem 0; }
  .routes th, .routes td { border: 0; padding: 0; }
  .routes th { grid-row: span 2; width: auto; }
  .routes td:last-child { font-size: 0.9rem; }
}

/* ---------- FAQ ---------- */

.faq__inner { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2rem var(--gutter); }
.faq .head { grid-column: 1 / span 3; margin: 0; }
.faq__list { grid-column: 4 / -1; border-top: 1px solid var(--ink); }
.qa { border-bottom: 1px solid var(--rule); }
.qa summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.3rem 0; cursor: pointer; list-style: none;
  font-size: var(--fs-lg); font-weight: 500; letter-spacing: -0.015em; transition: color 0.2s var(--ease);
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: ""; flex: none; width: 16px; height: 16px; background: var(--ink-2);
  mask: url("../img/ui/plus.svg") center / contain no-repeat;
  transition: transform 0.4s var(--ease-out), background-color 0.2s var(--ease);
}
.qa summary:hover { color: var(--accent); }
.qa summary:hover::after { background: var(--accent); }
.qa[open] summary::after { transform: rotate(45deg); }
.qa p { padding: 0 3rem 1.4rem 0; max-width: 60ch; color: var(--ink-2); }
.qa[open] p { animation: drop 0.45s var(--ease-out); }
@keyframes drop { from { opacity: 0; translate: 0 -6px; } }
@media (max-width: 860px) {
  .faq__inner { display: block; }
  .faq__list { margin-top: 2rem; }
  .qa p { padding-right: 0; }
}

/* ---------- footer ---------- */

.foot { position: relative; padding-top: clamp(6rem, 10vw, 9rem); background: var(--paper-sunk); border-top: 1px solid var(--rule); }
.foot__ridge {
  position: absolute; inset: 0 0 auto; height: clamp(70px, 9vw, 140px); background: var(--rule-strong); opacity: 0.8;
  -webkit-mask: url("../img/ridge.svg") center top / 140% 100% no-repeat; mask: url("../img/ridge.svg") center top / 140% 100% no-repeat;
}
.foot__inner { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 3rem var(--gutter); padding-bottom: 3rem; }
.foot__brand { grid-column: 1 / span 5; }
.foot__cols { grid-column: 7 / -1; }
.foot__brand .logo { width: 140px; }
.foot__brand p { margin-top: 1.25rem; max-width: 36ch; color: var(--ink-2); font-family: var(--serif); }
.foot__mail { display: inline-block; margin-top: 1rem; font-weight: 500; color: var(--accent); text-underline-offset: 4px; }
.foot__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.foot__cols h3 { margin-bottom: 0.9rem; padding-bottom: 0.6rem; border-bottom: 1px solid var(--rule); }
.foot__cols a { display: block; padding-block: 0.3rem; color: var(--ink-2); text-decoration: none; transition: color 0.2s var(--ease); }
.foot__cols a:hover { color: var(--accent); }
.foot__base { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: 1.25rem 2rem; border-top: 1px solid var(--rule); }
.foot__social { display: flex; gap: 0.4rem; }
.foot__social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--rule); color: var(--ink-2); transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease); }
.foot__social a:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
@media (max-width: 860px) { .foot__inner { grid-template-columns: 1fr; } .foot__brand, .foot__cols { grid-column: auto; } }
@media (max-width: 520px) { .foot__cols { grid-template-columns: 1fr 1fr; } }

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js [data-reveal], .js [data-load], .js .hero__line > span { opacity: 1; translate: none; }
  .hero__orb-canvas { display: none; }
  .marquee__track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
  .profile__line { stroke-dashoffset: 0; }
  .profile__area, .js .peak { opacity: 1; }
}

/* =====================================================================
   Inner pages (dev): shared frame, page head, ruled specs, consent
   ===================================================================== */

/* ---------- header dropdown groups ---------- */
.nav__group { position: relative; }
.nav__group > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 0.35rem;
  padding: 0.5rem 0.75rem; font-size: 0.92rem; font-weight: 500; color: var(--ink-2);
  transition: color 0.2s var(--ease);
}
.nav__group > summary::-webkit-details-marker { display: none; }
.nav__group > summary::after {
  content: ""; width: 10px; height: 10px; background: currentColor;
  -webkit-mask: url("../img/ui/chevron-down.svg") center / contain no-repeat; mask: url("../img/ui/chevron-down.svg") center / contain no-repeat;
  transition: transform 0.3s var(--ease-out);
}
.nav__group[open] > summary, .nav__group > summary:hover { color: var(--ink); }
.nav__group[open] > summary::after { transform: rotate(180deg); }
.nav__panel {
  position: absolute; top: calc(100% + 0.5rem); left: 0; z-index: 60; min-width: 230px;
  display: grid; padding: 0.4rem; border: 1px solid var(--rule); border-radius: var(--r);
  background: var(--paper-raised); box-shadow: 0 18px 40px -22px rgb(16 18 22 / 0.35);
  animation: drop 0.3s var(--ease-out);
}
.nav__panel a {
  padding: 0.6rem 0.75rem; border-radius: 3px; font-size: 0.93rem; color: var(--ink-2); text-decoration: none;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.nav__panel a:hover { background: var(--accent-tint); color: var(--accent); }
.nav__panel a[aria-current="page"] { color: var(--accent); font-weight: 500; }
@media (max-width: 960px) {
  .nav__group > summary { padding: 0.95rem 0; font-size: 1.1rem; color: var(--ink); border-bottom: 1px solid var(--rule); justify-content: space-between; }
  .nav__panel { position: static; min-width: 0; padding: 0.25rem 0 0.75rem 0.75rem; border: 0; box-shadow: none; background: transparent; animation: none; }
  .nav__panel a { padding: 0.65rem 0; font-size: 1rem; }
  .nav__menu { max-height: calc(100svh - var(--nav-h)); overflow-y: auto; }
}

/* ---------- inner page head ---------- */
.phead {
  position: relative; isolation: isolate; overflow: hidden;
  padding-top: calc(var(--nav-h) + clamp(1.25rem, 3vh, 2.5rem));
  padding-bottom: clamp(4.5rem, 9vh, 6rem);
  background: var(--hero-bg); border-bottom: 1px solid var(--rule);
}
.phead::before {
  content: ""; position: absolute; inset: 0 0 0 40%; z-index: -1; opacity: 0.12; background: var(--accent);
  -webkit-mask: url("../img/contour.svg") right top / 160% auto repeat-y; mask: url("../img/contour.svg") right top / 160% auto repeat-y;
  -webkit-mask-composite: source-over;
}
.phead__plate { position: relative; padding-block: clamp(1.25rem, 2.5vw, 2rem); }
.phead__plate > .crop { --o: clamp(-14px, -1.2vw, -8px); }
.phead__plate > .crop--tl, .phead__plate > .crop--bl { left: var(--o); }
.phead__plate > .crop--tr, .phead__plate > .crop--br { right: var(--o); }
.phead__top {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap;
  padding-bottom: 1rem; border-bottom: 1px solid color-mix(in oklab, var(--ink) 14%, transparent);
}
.phead__title { margin-top: clamp(1.75rem, 5vh, 3rem); font-size: clamp(2.8rem, 1rem + 6.5vw, 6.5rem); font-weight: 500; line-height: 0.92; letter-spacing: var(--track-display); }
.phead__body { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1.5rem var(--gutter); align-items: end; margin-top: clamp(1.25rem, 3vh, 2rem); }
.phead__lead { grid-column: 1 / span 6; max-width: 40ch; color: var(--ink); }
.phead__aside { grid-column: 7 / -1; display: grid; justify-items: end; gap: 0.75rem; text-align: right; }
.phead__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: flex-end; }
.phead__note { font-size: 0.92rem; color: var(--ink-2); max-width: 38ch; }
.phead .facts { margin-top: clamp(1.75rem, 4vh, 2.5rem); }
.phead .facts dd { font-variant-numeric: tabular-nums; }
@media (max-width: 860px) {
  .phead__body { grid-template-columns: 1fr; }
  .phead__lead, .phead__aside { grid-column: auto; }
  .phead__aside { justify-items: start; text-align: left; }
  .phead__actions { justify-content: flex-start; }
}
@media (max-width: 520px) { .phead__actions { justify-self: stretch; } .phead__actions .btn { flex: 1 1 100%; } .phead__top .stamp:last-child { display: none; } }

/* status chip, used by the ticket and CFP state scripts */
.chip {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.3rem 0.7rem; border-radius: 999px;
  border: 1px solid var(--rule-strong); font-family: var(--mono); font-size: var(--fs-label); font-weight: 500;
  text-transform: uppercase; letter-spacing: var(--track-stamp); color: var(--ink-2); white-space: nowrap;
}
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip--warn { color: var(--warn); border-color: color-mix(in oklab, var(--warn) 45%, transparent); }
.chip--open { color: var(--open); border-color: color-mix(in oklab, var(--open) 45%, transparent); }
.chip--closed { color: var(--brand); border-color: color-mix(in oklab, var(--brand) 45%, transparent); }
.chip--neutral { color: var(--ink-3); }
.chip--flat::before { display: none; }

/* ---------- ruled specs: label on the left column, value on the title line ---------- */
.specs { border-top: 1px solid var(--ink); }
.specs > div {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0.35rem var(--gutter);
  padding: 1.15rem 0; border-bottom: 1px solid var(--rule);
}
.specs dt { grid-column: 1 / span 3; padding-top: 0.35em; font-family: var(--mono); font-size: var(--fs-label); font-weight: 500; text-transform: uppercase; letter-spacing: var(--track-stamp); color: var(--ink-3); }
.specs dd { grid-column: 4 / -1; margin: 0; font-size: var(--fs-lg); font-weight: 500; letter-spacing: -0.015em; line-height: 1.4; }
.specs dd small { display: block; margin-top: 0.2rem; font-size: 0.93rem; font-weight: 400; letter-spacing: 0; color: var(--ink-2); }
.specs a:not(.btn) { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
@media (max-width: 760px) {
  .specs > div { grid-template-columns: 1fr; }
  .specs dt, .specs dd { grid-column: auto; padding-top: 0; }
}

/* section head extras */
.head__aside { grid-column: 4 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; font-size: 0.93rem; }
.head__aside a:not(.btn) { color: var(--accent); text-underline-offset: 3px; }
.section > .wrap > .note { margin-top: 1.5rem; }

/* ---------- points: short titled items on a ruled grid ---------- */
.points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.points li { padding: 1.4rem 1.5rem 1.6rem 0; border-bottom: 1px solid var(--rule); }
.points li:not(:nth-child(3n+1)) { padding-left: 1.5rem; border-left: 1px solid var(--rule); }
.points h3 { font-size: var(--fs-xl); font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; }
.points p { margin-top: 0.45rem; color: var(--ink-2); font-size: 0.97rem; line-height: 1.5; }
@media (max-width: 900px) {
  .points { grid-template-columns: 1fr 1fr; }
  .points li:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
  .points li:nth-child(even) { padding-left: 1.25rem; border-left: 1px solid var(--rule); }
}
@media (max-width: 560px) {
  .points { grid-template-columns: 1fr; }
  .points li:nth-child(even) { padding-left: 0; border-left: 0; }
}

/* ---------- two ruled lists side by side ---------- */
.pair { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2rem var(--gutter); }
.pair > div { grid-column: span 6; }
.pair h3 { padding-bottom: 0.75rem; border-bottom: 1px solid var(--ink); font-size: var(--fs-xl); font-weight: 500; letter-spacing: -0.02em; }
.pair ul li { position: relative; padding: 0.8rem 0 0.8rem 1.4rem; border-bottom: 1px solid var(--rule); color: var(--ink-2); }
.pair ul li::before { content: ""; position: absolute; left: 0; top: 1.45em; width: 0.65rem; height: 1px; background: var(--accent); }
.pair ul li strong { color: var(--ink); font-weight: 500; }
.pair--out ul li::before { background: var(--ink-3); }
@media (max-width: 760px) { .pair > div { grid-column: 1 / -1; } }

/* topic tags behind a disclosure */
.tags { margin-top: 1.5rem; }
.tags > summary { display: inline-flex; align-items: center; gap: 0.5rem; cursor: pointer; list-style: none; font-weight: 500; color: var(--accent); }
.tags > summary::-webkit-details-marker { display: none; }
.tags > summary::after { content: ""; width: 12px; height: 12px; background: currentColor; -webkit-mask: url("../img/ui/plus.svg") center / contain no-repeat; mask: url("../img/ui/plus.svg") center / contain no-repeat; transition: transform 0.35s var(--ease-out); }
.tags[open] > summary::after { transform: rotate(45deg); }
.tags ul { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1rem; animation: drop 0.4s var(--ease-out); }
.tags li { padding: 0.3rem 0.7rem; border: 1px solid var(--rule); border-radius: 999px; font-size: 0.85rem; color: var(--ink-2); }

/* formats on paper */
.formats--paper { margin-top: 0; padding-top: 0; border-top: 1px solid var(--ink); }
.formats--paper li { padding-top: 1.25rem; color: var(--ink-2); }
.formats--paper li + li { border-left-color: var(--rule); }
.formats--paper b { color: var(--ink); font-size: clamp(2.4rem, 1.4rem + 3vw, 4rem); }
.formats--paper span { opacity: 1; color: var(--ink-3); }
.formats--paper p { margin-top: 0.6rem; font-size: 0.95rem; color: var(--ink-2); max-width: 30ch; }

/* plain prose block on the title line */
.prose { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.prose > * { grid-column: 4 / span 7; }
.prose p { color: var(--ink-2); font-size: var(--fs-lg); line-height: 1.55; }
.prose p + p { margin-top: 1rem; }
.prose a:not(.btn) { color: var(--accent); text-underline-offset: 3px; }
@media (max-width: 860px) { .prose > * { grid-column: 1 / -1; } }

/* closing band */
.band { padding-block: clamp(3.5rem, 7vw, 6rem); border-top: 1px solid var(--rule); background: var(--paper-sunk); }
.band__inner { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1.5rem var(--gutter); align-items: end; }
.band__title { grid-column: 1 / span 7; font-size: var(--fs-2xl); font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; }
.band__actions { grid-column: 8 / -1; display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: flex-end; }
@media (max-width: 860px) { .band__title, .band__actions { grid-column: 1 / -1; justify-content: flex-start; } }

/* footer cookie settings button */
.foot__cookie { padding: 0; border: 0; background: none; cursor: pointer; font-family: var(--mono); font-size: var(--fs-label); font-weight: 500; text-transform: uppercase; letter-spacing: var(--track-stamp); color: var(--ink-3); text-decoration: underline; text-underline-offset: 3px; }
.foot__cookie:hover { color: var(--accent); }
.foot__legal { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.25rem; }

/* ---------- button names the shared scripts use ---------- */
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: var(--accent-hover); }
.btn--secondary { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--secondary:hover { background: var(--ink); color: var(--paper); }
.btn--ghost { color: var(--ink-2); }
.btn--ghost:hover { color: var(--ink); }
.btn[aria-disabled="true"] { opacity: 0.55; pointer-events: none; }

/* ---------- consent panel (built by consent.js) ---------- */
.consent { position: fixed; inset: auto 0 0; z-index: 90; display: flex; justify-content: flex-end; padding: var(--gutter); pointer-events: none; }
.consent[hidden] { display: none; }
.consent__inner {
  pointer-events: auto; width: min(32rem, 100%); max-height: calc(100dvh - 2 * var(--gutter)); overflow-y: auto;
  display: flex; flex-direction: column; gap: 0.75rem; padding: clamp(1.25rem, 3vw, 1.75rem);
  border: 1px solid var(--rule-strong); border-radius: var(--r); background: var(--paper-raised);
  box-shadow: 0 24px 64px -24px rgb(16 18 22 / 0.35);
  opacity: 0; transform: translateY(16px); transition: opacity 0.3s var(--ease), transform 0.4s var(--ease-out);
}
.consent[data-open] .consent__inner { opacity: 1; transform: none; }
.consent:focus-visible { outline: none; }
.consent:focus-visible .consent__inner { outline: 2px solid var(--accent); outline-offset: 3px; }
.consent__eyebrow { font-family: var(--mono); font-size: var(--fs-label); text-transform: uppercase; letter-spacing: var(--track-label); color: var(--ink-3); }
.consent__title { font-size: var(--fs-lg); font-weight: 500; line-height: 1.3; }
.consent__body { font-size: 0.9rem; color: var(--ink-2); }
.consent__cats { display: grid; gap: 0.75rem; margin: 0; padding-block: 1rem; border-block: 1px solid var(--rule); }
.consent__cat dt { font-family: var(--mono); font-size: var(--fs-label); text-transform: uppercase; letter-spacing: var(--track-label); }
.consent__cat dd { margin: 0.25rem 0 0; font-size: 0.82rem; color: var(--ink-3); }
.consent__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.consent__meta { font-size: 0.82rem; color: var(--ink-3); }
.consent__meta a { color: var(--ink-2); }
.nav.is-open ~ .consent { display: none; }

/* ---------- KonfHub checkout dialog (built by main.js) ---------- */
.ticket-modal { margin: auto; padding: 0; border: 0; max-width: 100vw; max-height: 100dvh; background: transparent; overflow: visible; }
.ticket-modal::backdrop { background: rgb(0 0 0 / 0.6); }
.ticket-modal__frame { position: relative; width: min(30rem, 94vw); height: min(46rem, 90dvh); background: var(--paper-raised); border-radius: var(--r); overflow: hidden; }
.ticket-modal__iframe { display: block; width: 100%; height: 100%; border: 0; background: #fff; }
.ticket-modal__close { position: absolute; top: 0.5rem; right: 0.5rem; z-index: 1; display: grid; place-items: center; width: 2rem; height: 2rem; padding: 0; border: 1px solid var(--rule); border-radius: 999px; background: var(--paper-raised); color: var(--ink); font-size: 1.25rem; line-height: 1; cursor: pointer; }
.ticket-modal__close::before { content: "\00d7"; }

.u-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* =====================================================================
   Home page motion pieces (from the reference video study)
   ===================================================================== */

/* headings sharpen as they enter */
.js .head[data-reveal] { filter: blur(10px); }
.js .head[data-reveal].is-in.is-in {
  filter: blur(0);
  transition: opacity 0.8s var(--ease-out), translate 0.9s var(--ease-out), filter 1s var(--ease-out);
}

/* ---------- survey tapes: two crossing marquee bands ---------- */
.tapes { position: relative; height: clamp(150px, 16vw, 220px); overflow: hidden; }
.tape {
  position: absolute; left: -10vw; width: 120vw; padding-block: 0.85rem;
  display: flex; overflow: hidden; box-shadow: 0 10px 24px -16px rgb(16 18 22 / 0.5);
}
.tape--a { top: 22%; rotate: -3deg; background: var(--accent); color: var(--accent-ink); z-index: 2; }
.tape--b { top: 42%; rotate: 2.4deg; background: var(--ink); color: var(--paper); }
.tape__track { display: flex; align-items: center; gap: 1.5rem; width: max-content; animation: tape 60s linear infinite; }
.tape__track--rev { animation-direction: reverse; animation-duration: 70s; }
.tape__track span { font-size: clamp(1rem, 0.8rem + 0.8vw, 1.45rem); font-weight: 500; letter-spacing: -0.01em; white-space: nowrap; text-transform: uppercase; }
.tape__track i { font-style: normal; font-family: var(--mono); font-size: var(--fs-label); letter-spacing: var(--track-label); text-transform: uppercase; opacity: 0.75; white-space: nowrap; }
.tape__track i::before, .tape__track i::after { content: "◆"; margin-inline: 1.5rem; font-size: 0.6em; vertical-align: 0.2em; opacity: 0.6; }
@keyframes tape { to { transform: translateX(-50%); } }

/* ---------- pinned programme story ---------- */
.story { padding-bottom: 0; }
.story > .wrap > .head { margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.story__track { position: relative; height: 260svh; }
.story__sticky { position: sticky; top: var(--nav-h); height: calc(100svh - var(--nav-h)); display: flex; align-items: center; }
.story__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2rem var(--gutter); align-items: center; }
.story__steps { grid-column: 1 / span 5; border-top: 1px solid var(--ink); }
.story__step { position: relative; border-bottom: 1px solid var(--rule); }
.story__head {
  display: grid; gap: 0.3rem; width: 100%; padding: 1.1rem 0; border: 0; background: none; text-align: left; cursor: pointer;
}
.story__head .stamp { transition: color 0.3s var(--ease); }
.story__title { font-size: var(--fs-2xl); font-weight: 500; letter-spacing: -0.03em; line-height: 1.05; color: var(--ink-3); transition: color 0.4s var(--ease); }
.story__step.is-active .story__title { color: var(--ink); }
.story__step.is-active .stamp { color: var(--accent); }
.story__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.55s var(--ease-out); }
.story__body > div { overflow: hidden; display: grid; gap: 0.35rem; }
.story__body p { color: var(--ink-2); max-width: 40ch; }
.story__body a { justify-self: start; margin-bottom: 1.1rem; color: var(--accent); font-weight: 500; text-underline-offset: 3px; }
.story__step.is-active .story__body { grid-template-rows: 1fr; }
.story__bar { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; }
.story__bar span { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(var(--p, 0)); }
.story__step:not(.is-active) .story__bar span { transform: scaleX(0); }

.story__stage { grid-column: 7 / -1; position: relative; aspect-ratio: 4 / 3; }
.story__stage > .crop { --o: -10px; }
.story__stage > .crop--tl { top: var(--o); left: var(--o); }
.story__stage > .crop--tr { top: var(--o); right: var(--o); }
.story__stage > .crop--bl { bottom: var(--o); left: var(--o); }
.story__stage > .crop--br { bottom: var(--o); right: var(--o); }
.story__frame {
  position: absolute; inset: 0; overflow: hidden; border-radius: var(--r);
  clip-path: inset(100% 0 0 0); transition: clip-path 0.9s var(--ease-out);
}
.story__frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.4s var(--ease-out); }
.story__frame.is-active { clip-path: inset(0 0 0 0); z-index: 1; }
.story__frame.is-active img { transform: scale(1); }
.story__frame figcaption {
  position: absolute; left: 1rem; bottom: 1rem; padding: 0.35rem 0.7rem; border-radius: 999px;
  background: color-mix(in oklab, var(--paper) 88%, transparent); color: var(--ink);
}
.story__count { position: absolute; right: 0; bottom: -2rem; font-variant-numeric: tabular-nums; }
@media (max-width: 860px) {
  .story__track { height: 230svh; }
  .story__grid { grid-template-columns: 1fr; gap: 1.25rem; align-content: center; }
  .story__steps, .story__stage { grid-column: 1; }
  .story__stage { order: -1; aspect-ratio: 16 / 10; }
  .story__count { display: none; }
  .story__head { padding: 0.7rem 0; }
  .story__title { font-size: var(--fs-xl); }
}

/* ---------- ghost numerals drifting behind the chart ---------- */
.growth { position: relative; overflow: hidden; }
.growth > .wrap { position: relative; z-index: 1; }
.ghost {
  position: absolute; left: 0; top: 52%; translate: 0 -50%; margin: 0; z-index: 0; pointer-events: none;
  white-space: nowrap; font-size: clamp(7rem, 20vw, 20rem); font-weight: 600; letter-spacing: -0.05em; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px var(--rule-strong); opacity: 0.28;
}
.ghost span { display: inline-block; transform: translateX(var(--gx, 0px)); will-change: transform; }

/* ---------- CFP band opens from an inset card ---------- */
.cfp[data-morph] { --mi: 0px; --mr: 0px; clip-path: inset(0 var(--mi) round var(--mr)); }
.hl { color: inherit; background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0% 0.09em; padding-bottom: 0.06em; transition: background-size 0.9s var(--ease-out) 0.5s; }
.cfp__copy.is-in .hl { background-size: 100% 0.09em; }

/* ---------- photo strip: concave curve ---------- */
.reel { perspective: 1100px; }

/* ---------- reduced motion: plain, static versions ---------- */
@media (prefers-reduced-motion: reduce) {
  .tape__track { animation: none; }
  .story__track { height: auto; }
  .story__sticky { position: static; height: auto; padding-block: 1rem 0; }
  .story__body { grid-template-rows: 1fr; }
  .story__title { color: var(--ink); }
  .story__frame { clip-path: none; opacity: 0; }
  .story__frame.is-active { opacity: 1; }
  .cfp[data-morph] { clip-path: none; }
  .js .head[data-reveal] { filter: none; }
}

/* =====================================================================
   UX audit fixes
   ===================================================================== */

/* Light hero: tone mapping renders the orb's white scene as #E5E5E5, a grey
   slab against the warm paper. Lift it back to paper white. */
:root[data-theme="light"] .hero__orb-canvas { filter: brightness(1.1); }

/* Mobile menu fills the screen, so the page never shows through below it. */
@media (max-width: 960px) {
  .nav__menu { inset: var(--nav-h) 0 0; max-height: none; padding-bottom: 2rem; }
  .nav__group > summary::after { width: 12px; height: 12px; }
}
html.menu-open { overflow: hidden; }

/* Consent: short card, not a wall of text. The full breakdown lives on the
   privacy page ("What each tool collects"). */
.consent__inner { width: min(26rem, 100%); gap: 0.6rem; padding: 1.25rem 1.35rem; }
.consent__eyebrow, .consent__cats { display: none; }
.consent__title { font-size: 1.05rem; }
.consent__body { font-size: 0.86rem; line-height: 1.5; }
.consent__meta { font-size: 0.78rem; }
.consent:focus-visible .consent__inner { outline: none; }
@media (max-width: 560px) {
  .consent { padding: 0.75rem; }
  .consent__inner { width: 100%; padding: 1rem 1.1rem; }
  .consent__actions .btn { flex: 1 1 0; justify-content: center; }
}

/* Growth chart: the 0x03 label hugs the right edge on phones instead of
   running off it. */
@media (max-width: 600px) {
  .peak--3 { justify-items: end; translate: calc(-100% + 7px) calc(-100% - 18px); text-align: right; }
  .peak--3::after { left: auto; right: 0; translate: 0 0; }
  .ghost { opacity: 0.18; }
}

/* Photo strip: only the centred photo shows its caption, so side captions
   are never cut in half at the screen edge. */
.reel__item figcaption { opacity: var(--c, 1); transition: opacity 0.3s var(--ease); }

/* Community partners: an even row on phones, no lonely third tile. */
@media (max-width: 560px) {
  .partners__community { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; }
  .partners__community li { width: auto; height: 76px; padding: 0.5rem 0.6rem; }
  .community-logo { max-height: 40px; }
  .community-logo--square { max-height: 54px; }
}

/* Footer: quieter ridge, and legal links big enough to tap. */
.foot__ridge { opacity: 0.45; }
.foot__legal a, .foot__cookie { display: inline-block; padding-block: 0.7rem; }


@media (max-width: 560px) { .foot__coords { display: none; } }

/* Desktop consent: a slim bar along the bottom edge, so it never sits on
   top of the hero buttons. */
@media (min-width: 861px) {
  .consent { padding: 0; }
  .consent__inner {
    width: 100%; max-height: none; border-radius: 0; border-width: 1px 0 0;
    display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 3rem; row-gap: 0.2rem; align-items: center;
    padding: 1rem max(var(--gutter), calc((100% - var(--wrap)) / 2));
    box-shadow: 0 -16px 40px -24px rgb(16 18 22 / 0.3);
  }
  .consent__title, .consent__body, .consent__meta { grid-column: 1; }
  .consent__body { max-width: 110ch; }
  .consent__actions { grid-column: 2; grid-row: 1 / span 3; flex-wrap: nowrap; }
}

@media (max-width: 380px) { .facts__cd dd { font-size: 0.8rem; } }
@media (max-width: 340px) { .facts__cd dd { white-space: normal; } }

/* =====================================================================
   Home motion, round 2: scroll progress, section rail, depth, details
   ===================================================================== */

/* reading progress: a hairline along the bottom of the header */
.nav__progress {
  position: absolute; left: 0; bottom: -1px; width: 100%; height: 2px; pointer-events: none;
  background: var(--accent); transform-origin: 0 50%; transform: scaleX(var(--sp, 0));
}

/* section rail: ticks on the right edge, the current section named */
.rail {
  position: fixed; right: 16px; top: 50%; z-index: 40; translate: 0 -50%;
  opacity: 0; visibility: hidden; transition: opacity 0.4s var(--ease), visibility 0s linear 0.4s;
}
.rail.is-on { opacity: 1; visibility: visible; transition: opacity 0.4s var(--ease); }
.rail ol { display: grid; }
.rail a {
  display: flex; align-items: center; justify-content: flex-end; gap: 0.55rem; height: 24px;
  color: var(--ink-3); text-decoration: none; font-family: var(--mono); font-size: var(--fs-label);
  letter-spacing: var(--track-label); text-transform: uppercase;
}
.rail a::after { content: ""; flex: none; width: 10px; height: 1px; background: var(--rule-strong); transition: width 0.3s var(--ease-out), background-color 0.3s var(--ease); }
.rail__num, .rail__name { opacity: 0; translate: 6px 0; transition: opacity 0.25s var(--ease), translate 0.35s var(--ease-out); }
.rail__name { padding: 2px 6px; border-radius: 3px; white-space: nowrap; background: color-mix(in oklab, var(--paper) 92%, transparent); }
/* names only on hover or keyboard focus, so they never sit on top of the content */
.rail:hover .rail__num, .rail:hover .rail__name, .rail:focus-within .rail__num, .rail:focus-within .rail__name { opacity: 1; translate: 0 0; }
.rail__num { padding: 2px 0 2px 6px; border-radius: 3px 0 0 3px; background: color-mix(in oklab, var(--paper) 92%, transparent); }
.rail__name { margin-left: -0.55rem; border-radius: 0 3px 3px 0; }
.rail a[aria-current] { color: var(--ink); }
.rail a[aria-current]::after { width: 22px; background: var(--accent); }
.rail a:hover { color: var(--accent); }
.rail__mark {
  position: absolute; right: -11px; top: 0; width: 7px; height: 8px; background: var(--accent);
  clip-path: polygon(100% 0, 100% 100%, 0 50%);
  transform: translateY(calc(var(--my, 0px) - 4px)); transition: transform 0.2s var(--ease-out);
}
@media (max-width: 1279px) { .rail { display: none; } }

/* hero depth on the way out */
.hero__orb { transform: translate3d(0, calc(var(--hp, 0) * 22%), 0) scale(calc(1 + var(--hp, 0) * 0.12)); }
.hero__title .hero__line:nth-child(1) { transform: translate3d(0, calc(var(--hp, 0) * -90px), 0); }
.hero__title .hero__line:nth-child(2) { transform: translate3d(0, calc(var(--hp, 0) * -40px), 0); }
.hero__plate { opacity: calc(1 - max(0, var(--hp, 0) - 0.4) * 1.6); }

/* headings: each word rises out of its own line */
.w { display: inline-block; vertical-align: top; overflow: clip; padding-block: 0.04em 0.16em; margin-block: -0.04em -0.16em; }
.w > span { display: inline-block; translate: 0 112%; transition: translate 0.95s var(--ease-out); transition-delay: calc(var(--i, 0) * 60ms + 120ms); }
.is-in .w > span { translate: 0 0; }
.js .head.has-words[data-reveal] { filter: none; }

/* survey tapes: driven by script while on screen */
.tapes.is-driven .tape__track { animation: none; will-change: transform; }

/* ticket cards: light that follows the mouse across the row */
.pass { isolation: isolate; }
.pass::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(380px circle at var(--mx, -999px) var(--my, -999px), color-mix(in oklab, var(--accent) 11%, transparent), transparent 70%);
  opacity: 0; transition: opacity 0.45s var(--ease);
}
.passes:hover .pass::after { opacity: 1; }

/* gallery: "Drag" cursor */
.reel.has-cursor, .reel.has-cursor * { cursor: none; }
.drag-cursor {
  position: fixed; left: 0; top: 0; z-index: 60; width: 86px; height: 86px; margin: -43px 0 0 -43px;
  display: grid; place-items: center; border-radius: 50%; pointer-events: none;
  background: var(--ink); color: var(--paper);
  font-family: var(--mono); font-size: var(--fs-label); letter-spacing: var(--track-label); text-transform: uppercase;
  scale: 0; transition: scale 0.35s var(--ease-out);
}
.drag-cursor.is-on { scale: 1; }
.drag-cursor.is-down { scale: 0.8; }

/* venue photo drifts inside its frame */
.venue__img img { scale: 1.12; translate: 0 var(--vy, 0); }

/* CFP timeline steps in, one date at a time */
.js .cfp__side .timeline__step { opacity: 0; translate: -14px 0; transition: opacity 0.6s var(--ease-out), translate 0.7s var(--ease-out); }
.js .cfp__side.is-in .timeline__step { opacity: 1; translate: 0 0; }
.js .cfp__side.is-in .timeline__step:nth-child(1) { transition-delay: 0.25s; }
.js .cfp__side.is-in .timeline__step:nth-child(2) { transition-delay: 0.37s; }
.js .cfp__side.is-in .timeline__step:nth-child(3) { transition-delay: 0.49s; }
.js .cfp__side.is-in .timeline__step:nth-child(4) { transition-delay: 0.61s; }

/* FAQ answers open and close smoothly where the browser supports it */
@supports selector(::details-content) {
  .qa { interpolate-size: allow-keywords; }
  .qa::details-content { block-size: 0; overflow-y: clip; transition: block-size 0.45s var(--ease-out), content-visibility 0.45s allow-discrete; }
  .qa[open]::details-content { block-size: auto; }
}

/* text links: the underline retracts and redraws on hover */
.story__body a, .head__sub a {
  text-decoration: none; padding-bottom: 1px;
  background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 100% 1px;
}
.story__body a:hover, .head__sub a:hover { animation: redraw 0.65s var(--ease-out); }
@keyframes redraw {
  0% { background-position: 100% 100%; background-size: 100% 1px; }
  45% { background-position: 100% 100%; background-size: 0% 1px; }
  46% { background-position: 0 100%; background-size: 0% 1px; }
  100% { background-position: 0 100%; background-size: 100% 1px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__orb, .hero__title .hero__line { transform: none; }
  .hero__plate { opacity: 1; }
  .js .cfp__side .timeline__step { opacity: 1; translate: none; }
  .venue__img img { translate: none; }
  .rail__mark { transition: none; }
}

/* =====================================================================
   Inner pages, round 2: shared parts for the page-by-page rebuild
   ===================================================================== */

/* ---------- empty state: "not announced yet" plate ---------- */
.empty {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; place-items: center; min-height: clamp(320px, 38vw, 460px); padding: clamp(2rem, 5vw, 4rem) var(--gutter);
  border: 1px dashed var(--rule-strong); border-radius: var(--r);
  background: repeating-linear-gradient(135deg, transparent 0 14px, color-mix(in oklab, var(--rule) 45%, transparent) 14px 15px);
}
.empty > .crop { --o: -10px; }
.empty > .crop--tl { top: var(--o); left: var(--o); }
.empty > .crop--tr { top: var(--o); right: var(--o); }
.empty > .crop--bl { bottom: var(--o); left: var(--o); }
.empty > .crop--br { bottom: var(--o); right: var(--o); }
.empty__ghost {
  position: absolute; inset: 50% 0 auto; translate: 0 -50%; z-index: -1; margin: 0; pointer-events: none; white-space: nowrap;
  font-size: clamp(6rem, 18vw, 16rem); font-weight: 600; letter-spacing: -0.05em; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px var(--rule-strong); opacity: 0.5;
}
.empty__ghost span { display: inline-block; animation: ghost-drift 60s linear infinite; }
@keyframes ghost-drift { to { transform: translateX(-50%); } }
.empty__body {
  display: grid; justify-items: center; gap: 0.75rem; max-width: 34rem; text-align: center;
  padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: var(--r);
  background: color-mix(in oklab, var(--paper) 88%, transparent); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.empty__body .stamp { color: var(--warn); }
.empty__title { font-size: var(--fs-2xl); font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; }
.empty__body p:not(.stamp) { color: var(--ink-2); }
.empty__body .btn { margin-top: 0.5rem; }

/* ---------- milestone track: dates in a row, the line fills up to today ---------- */
.miles {
  --fill: 0; position: relative; display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr));
  padding-top: 2.25rem;
}
.miles::before, .miles::after { content: ""; position: absolute; left: 0; top: 0.55rem; height: 2px; }
.miles::before { right: 0; background: var(--rule); }
.miles::after { width: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); transition: transform 1.6s var(--ease-out) 0.3s; }
.miles.is-in::after { transform: scaleX(var(--fill)); }
.miles li { position: relative; display: grid; align-content: start; gap: 0.35rem; padding-right: 1.5rem; }
.miles li::before {
  content: ""; position: absolute; left: 0; top: calc(-2.25rem + 0.55rem - 6px); width: 12px; height: 12px;
  border: 2px solid var(--rule-strong); background: var(--paper); rotate: 45deg; transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.section--sunk .miles li::before { background: var(--paper-sunk); }
.miles li.is-done::before { background: var(--accent); border-color: var(--accent); }
.miles li.is-next::before { border-color: var(--accent); animation: mile-pulse 2.2s var(--ease) infinite; }
@keyframes mile-pulse { 50% { box-shadow: 0 0 0 6px color-mix(in oklab, var(--accent) 18%, transparent); } }
.miles time { font-family: var(--mono); font-size: var(--fs-label); text-transform: uppercase; letter-spacing: var(--track-stamp); color: var(--ink-3); }
.miles li.is-next time { color: var(--accent); }
.miles strong { font-size: var(--fs-xl); font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; }
.miles span { color: var(--ink-2); font-size: 0.95rem; }
.miles span span { font-size: inherit; }
.js .miles li { opacity: 0; translate: 0 12px; transition: opacity 0.6s var(--ease-out), translate 0.7s var(--ease-out); }
.js .miles.is-in li { opacity: 1; translate: 0 0; }
.js .miles.is-in li:nth-child(2) { transition-delay: 0.12s; }
.js .miles.is-in li:nth-child(3) { transition-delay: 0.24s; }
.js .miles.is-in li:nth-child(4) { transition-delay: 0.36s; }
.js .miles.is-in li:nth-child(5) { transition-delay: 0.48s; }
.js .miles.is-in li:nth-child(n+6) { transition-delay: 0.6s; }
@media (max-width: 760px) {
  .miles { grid-template-columns: 1fr; padding-top: 0; padding-left: 2rem; }
  .miles::before, .miles::after { top: 0; bottom: 0; left: 5px; width: 2px; height: auto; }
  .miles::after { transform-origin: top; transform: scaleY(0); }
  .miles.is-in::after { transform: scaleY(var(--fill)); }
  .miles li { padding: 0 0 1.75rem; }
  .miles li::before { left: calc(-2rem); top: 0.2rem; }
}

/* ---------- portrait photo row ---------- */
.photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 2rem); }
.photos figure { display: grid; gap: 0.75rem; }
.photos__img { display: block; overflow: hidden; border-radius: var(--r); aspect-ratio: 4 / 5; background: var(--paper-sunk); }
.photos__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; filter: saturate(0.85); transition: filter 0.5s var(--ease), scale 1s var(--ease-out); }
.photos figure:hover .photos__img img { filter: saturate(1); scale: 1.04; }
.photos figcaption { color: var(--ink-3); }
.js .photos figure { opacity: 0; translate: 0 24px; transition: opacity 0.7s var(--ease-out), translate 0.9s var(--ease-out); }
.js .photos.is-in figure { opacity: 1; translate: 0 0; }
.js .photos.is-in figure:nth-child(2) { transition-delay: 0.12s; }
.js .photos.is-in figure:nth-child(3) { transition-delay: 0.24s; }
@media (max-width: 760px) {
  .photos { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 72%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .photos figure { scroll-snap-align: start; }
}

@media (prefers-reduced-motion: reduce) {
  .empty__ghost span { animation: none; }
  .js .miles li, .js .photos figure { opacity: 1; translate: none; }
  .miles li.is-next::before { animation: none; }
}
.photos--wide .photos__img { aspect-ratio: 16 / 10; }
.photos--wide .photos__img img { object-position: 50% 50%; }
@media (max-width: 760px) { .photos--wide { grid-auto-columns: 82%; } }

/* ---------- numbered steps, each with a line drawing that draws itself ---------- */
.steps { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 2rem var(--gutter); counter-reset: none; }
.steps li { position: relative; display: grid; align-content: start; gap: 0.5rem; padding-top: 1.25rem; border-top: 1px solid var(--ink); }
.steps__ico {
  width: 52px; height: 52px; padding: 12px; margin-bottom: 0.5rem; border: 1px solid var(--rule-strong); border-radius: 50%;
  fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; background: var(--paper);
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.section--sunk .steps__ico { background: var(--paper-sunk); }
.steps li:hover .steps__ico { border-color: var(--accent); background: var(--accent-tint); }
.steps .stamp { color: var(--accent); }
.steps strong { font-size: var(--fs-xl); font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; }
.steps p { color: var(--ink-2); font-size: 0.97rem; }
.steps p a { color: var(--accent); text-underline-offset: 3px; }
.js .steps__ico * { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .steps.is-in .steps__ico * { stroke-dashoffset: 0; transition: stroke-dashoffset 1.1s var(--ease-out); }
.js .steps li { opacity: 0; translate: 0 14px; transition: opacity 0.6s var(--ease-out), translate 0.7s var(--ease-out); }
.js .steps.is-in li { opacity: 1; translate: 0 0; }
.js .steps.is-in li:nth-child(2), .js .steps.is-in li:nth-child(2) .steps__ico * { transition-delay: 0.15s; }
.js .steps.is-in li:nth-child(3), .js .steps.is-in li:nth-child(3) .steps__ico * { transition-delay: 0.3s; }
.js .steps.is-in li:nth-child(4), .js .steps.is-in li:nth-child(4) .steps__ico * { transition-delay: 0.45s; }
.js .steps.is-in li:nth-child(5), .js .steps.is-in li:nth-child(5) .steps__ico * { transition-delay: 0.6s; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; gap: 1.5rem; } }

/* ---------- wide photo with parallax ---------- */
.wide { display: grid; gap: 0.75rem; margin-top: clamp(2.5rem, 5vw, 4rem); }
.wide__img { display: block; overflow: hidden; border-radius: var(--r); aspect-ratio: 21 / 9; background: var(--paper-sunk); }
.wide__img img { width: 100%; height: 100%; object-fit: cover; scale: 1.15; translate: 0 var(--vy, 0); }
.wide figcaption { color: var(--ink-3); }
@media (max-width: 760px) { .wide__img { aspect-ratio: 4 / 3; } }

@media (prefers-reduced-motion: reduce) {
  .js .steps li { opacity: 1; translate: none; }
  .js .steps__ico * { stroke-dashoffset: 0; }
  .wide__img img { translate: none; }
}

/* ---------- hub: one centre, spokes out to each item (villages) ---------- */
.hubwrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2.5rem var(--gutter); align-items: center; }
.hub { grid-column: 1 / span 5; margin: 0; }
.hub svg { display: block; width: 100%; height: auto; overflow: visible; }
.hub__ring { fill: none; stroke: var(--rule-strong); stroke-dasharray: 2 6; }
.hub__ring--in { stroke: var(--rule); stroke-dasharray: none; }
.hub__spoke { stroke: var(--rule-strong); stroke-width: 1; transition: stroke 0.4s var(--ease); }
.hub__pulse { stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 3 97; stroke-dashoffset: 100; animation: hub-pulse 3.2s linear infinite; opacity: 0.85; }
.hub__v[data-v="1"] .hub__pulse { animation-delay: -0.53s; }
.hub__v[data-v="2"] .hub__pulse { animation-delay: -1.07s; }
.hub__v[data-v="3"] .hub__pulse { animation-delay: -1.6s; }
.hub__v[data-v="4"] .hub__pulse { animation-delay: -2.13s; }
.hub__v[data-v="5"] .hub__pulse { animation-delay: -2.67s; }
@keyframes hub-pulse { to { stroke-dashoffset: 0; } }
.hub__node { fill: var(--paper); stroke: var(--ink); stroke-width: 1; transition: fill 0.35s var(--ease), stroke 0.35s var(--ease), r 0.35s var(--ease-out); }
.hub text { font-family: var(--mono); font-size: 13px; letter-spacing: 0.06em; text-anchor: middle; dominant-baseline: central; fill: var(--ink); transition: fill 0.35s var(--ease); }
.hub__core { fill: var(--accent); }
.hub text.hub__core-t { fill: var(--accent-ink); font-family: var(--font); font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.hub text.hub__core-s { fill: var(--accent-ink); font-size: 8px; letter-spacing: 0.2em; opacity: 0.85; }
.hub__v.is-on .hub__spoke { stroke: var(--accent); stroke-width: 2; }
.hub__v.is-on .hub__node { fill: var(--accent); stroke: var(--accent); r: 28; }
.hub__v.is-on text { fill: var(--accent-ink); }
.js .hub svg > * { opacity: 0; transition: opacity 0.6s var(--ease-out); }
.js .hub.is-in svg > * { opacity: 1; }
.js .hub.is-in .hub__v[data-v="1"] { transition-delay: 0.1s; }
.js .hub.is-in .hub__v[data-v="2"] { transition-delay: 0.2s; }
.js .hub.is-in .hub__v[data-v="3"] { transition-delay: 0.3s; }
.js .hub.is-in .hub__v[data-v="4"] { transition-delay: 0.4s; }
.js .hub.is-in .hub__v[data-v="5"] { transition-delay: 0.5s; }

.vgrid { grid-column: 7 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
.vcard {
  display: grid; align-content: start; gap: 0.3rem; padding: 1.1rem 1.25rem 1.25rem;
  border: 1px solid var(--rule); border-radius: var(--r); background: var(--paper-raised);
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease), translate 0.4s var(--ease-out);
}
.vcard .stamp { color: var(--ink-3); transition: color 0.3s var(--ease); }
.vcard h3 { font-size: var(--fs-xl); font-weight: 500; letter-spacing: -0.02em; }
.vcard p { color: var(--ink-2); font-size: 0.95rem; line-height: 1.45; }
.vcard.is-on { border-color: var(--accent); background: color-mix(in oklab, var(--accent-tint) 60%, var(--paper-raised)); translate: 0 -2px; }
.vcard.is-on .stamp { color: var(--accent); }
@media (max-width: 900px) {
  .hub, .vgrid { grid-column: 1 / -1; }
  .hub { max-width: 380px; justify-self: center; width: 100%; }
}
@media (max-width: 520px) { .vgrid { gap: 0.5rem; } .vcard { padding: 0.9rem 0.9rem 1rem; } .vcard h3 { font-size: 1.05rem; } .vcard p { font-size: 0.86rem; } }
@media (max-width: 340px) { .vgrid { grid-template-columns: 1fr; } }

.rows--slim { margin-top: clamp(2.5rem, 5vw, 4rem); }

@media (prefers-reduced-motion: reduce) {
  .hub__pulse { animation: none; opacity: 0; }
  .js .hub svg > * { opacity: 1; }
}
.miles .miles__when { font-family: var(--mono); font-size: var(--fs-label); text-transform: uppercase; letter-spacing: var(--track-stamp); color: var(--ink-3); }
.miles li.is-done .miles__when { color: var(--open); }

/* ---------- two columns: text left, a visual right ---------- */
.split2 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2.5rem var(--gutter); align-items: center; }
.split2 > :first-child { grid-column: 1 / span 5; }
.split2 > :last-child { grid-column: 7 / -1; }
@media (max-width: 900px) { .split2 > :first-child, .split2 > :last-child { grid-column: 1 / -1; } }
.points--stack { grid-template-columns: 1fr; }
.points--stack li, .points--stack li:not(:nth-child(3n+1)) { padding: 1.2rem 0 1.3rem; border-left: 0; }

/* ---------- terminal card: real facts, typed out when it scrolls in ---------- */
.term { margin: 0; border-radius: 10px; overflow: hidden; background: #0B0D12; color: #D8DEE9; box-shadow: 0 30px 60px -30px rgb(16 18 22 / 0.55); border: 1px solid #1d2230; }
.term__bar { display: flex; align-items: center; gap: 6px; padding: 0.7rem 0.9rem; background: #151923; border-bottom: 1px solid #1d2230; }
.term__bar i { width: 10px; height: 10px; border-radius: 50%; background: #2a3040; }
.term__bar i:first-child { background: #E86152; }
.term__bar span { margin-left: 0.6rem; font-family: var(--mono); font-size: 0.75rem; color: #7d879c; }
.term__body { display: grid; gap: 0.35rem; padding: 1.2rem 1.25rem 1.4rem; font-family: var(--mono); font-size: clamp(0.78rem, 0.7rem + 0.3vw, 0.92rem); line-height: 1.5; }
.term__body li { white-space: pre-wrap; overflow-wrap: anywhere; }
.term__p { color: #71A5FF; }
.term__out { color: #9aa4b8; padding-left: 1.1em; }
.term__ok { color: #7EE2A8; padding-left: 1.1em; }
.term__ok::before { content: "✓ "; }
.term__cursor { display: inline-block; width: 0.6em; height: 1.1em; vertical-align: -0.2em; background: #71A5FF; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.js .term[data-term] .term__body li { visibility: hidden; }
.js .term[data-term] .term__body li.is-typed { visibility: visible; }

/* ---------- glitch title: a brief RGB split once the page loads ---------- */
.phead__title--glitch { position: relative; }
.is-loaded .phead__title--glitch { animation: glitch 0.9s steps(2) 1.1s 1; }
@keyframes glitch {
  0% { text-shadow: 3px 0 var(--accent), -3px 0 var(--brand); translate: 0 0; }
  20% { text-shadow: -4px 0 var(--accent), 4px 0 var(--brand); translate: 2px 0; }
  40% { text-shadow: 2px 1px var(--accent), -2px -1px var(--brand); translate: -2px 0; }
  60% { text-shadow: -1px 0 var(--accent), 1px 0 var(--brand); translate: 1px 0; }
  100% { text-shadow: none; translate: 0 0; }
}

/* ---------- specs variants ---------- */
.specs--top { margin-top: clamp(2.5rem, 5vw, 4rem); }
.specs--side { border-top-color: var(--rule-strong); }
.specs--side > div { grid-template-columns: 1fr; gap: 0.2rem; padding-block: 0.9rem; }
.specs--side dt, .specs--side dd { grid-column: 1 / -1; }
.specs--side dd { font-size: 1rem; }
.tags--open { margin-top: 2rem; display: grid; gap: 0.75rem; }
.tags--open ul { margin-top: 0; animation: none; }

/* ---------- forms ---------- */
.formwrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2.5rem var(--gutter); align-items: start; }
.formwrap > .form { grid-column: 1 / span 8; }
.formwrap > .formside { grid-column: 10 / -1; position: sticky; top: calc(var(--nav-h) + 1.5rem); }
@media (max-width: 960px) { .formwrap > .form, .formwrap > .formside { grid-column: 1 / -1; position: static; } }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem 1.25rem; padding: clamp(1.25rem, 3vw, 2.25rem); border: 1px solid var(--rule); border-radius: var(--r); background: var(--paper-raised); }
.field { display: grid; align-content: start; gap: 0.4rem; min-width: 0; margin: 0; padding: 0; border: 0; }
.field--full { grid-column: 1 / -1; }
.field[hidden] { display: none; }
.field__label { font-size: 0.92rem; font-weight: 500; color: var(--ink); padding: 0; }
.field__req { font-weight: 400; color: var(--ink-3); }
.field__hint { font-size: 0.84rem; color: var(--ink-3); line-height: 1.4; }
.field__hint a { color: var(--accent); text-underline-offset: 3px; }
.field__input {
  width: 100%; min-height: 48px; padding: 0.7rem 0.85rem; border: 1px solid var(--rule-strong); border-radius: var(--r);
  background: var(--paper); color: var(--ink); font: inherit; font-size: 1rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
textarea.field__input { min-height: 0; resize: vertical; }
.field__input:hover { border-color: var(--ink-3); }
.field__input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 22%, transparent); }
.field__input:user-invalid { border-color: var(--brand); }
.field__input[data-shake] { animation: shake 0.4s var(--ease); }
@keyframes shake { 25% { translate: -4px 0; } 50% { translate: 4px 0; } 75% { translate: -2px 0; } }
.field__select { position: relative; }
.field__select select { appearance: none; padding-right: 2.5rem; }
.field__select::after {
  content: ""; position: absolute; right: 0.9rem; top: 50%; translate: 0 -50%; width: 12px; height: 12px; pointer-events: none; background: var(--ink-2);
  -webkit-mask: url("../img/ui/chevron-down.svg") center / contain no-repeat; mask: url("../img/ui/chevron-down.svg") center / contain no-repeat;
}
.field__choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; margin-top: 0.3rem; }
@media (max-width: 640px) { .field__choices { grid-template-columns: 1fr; } .form { grid-template-columns: 1fr; } }
.field__choice { position: relative; }
.field__radio { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.field__choice-label {
  display: grid; gap: 0.2rem; height: 100%; padding: 0.9rem 1rem 0.95rem 2.6rem; border: 1px solid var(--rule-strong); border-radius: var(--r);
  font-weight: 500; cursor: pointer; position: relative; transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.field__choice-label::before {
  content: ""; position: absolute; left: 1rem; top: 1.05rem; width: 16px; height: 16px; border-radius: 50%;
  border: 1.5px solid var(--ink-3); background: var(--paper); transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field__choice-label .field__hint { font-weight: 400; }
.field__choice-label:hover { border-color: var(--ink-3); }
.field__radio:checked + .field__choice-label { border-color: var(--accent); background: color-mix(in oklab, var(--accent-tint) 55%, transparent); }
.field__radio:checked + .field__choice-label::before { border-color: var(--accent); box-shadow: inset 0 0 0 4px var(--paper), inset 0 0 0 10px var(--accent); }
.field__radio:focus-visible + .field__choice-label { outline: 2px solid var(--accent); outline-offset: 2px; }
.field--check { display: flex; align-items: flex-start; gap: 0.7rem; }
.field__check { flex: none; width: 20px; height: 20px; margin: 0.1rem 0 0; accent-color: var(--accent); cursor: pointer; }
.field__check-label { font-size: 0.95rem; cursor: pointer; }
.field__check-label a { color: var(--accent); text-underline-offset: 3px; }
/* the team code box only matters when joining */
@supports selector(:has(*)) {
  .form:not(:has(#mode-join:checked)) .field--code { display: none; }
}
.more { border-top: 1px solid var(--rule); padding-top: 1rem; }
.more > summary { display: inline-flex; align-items: center; gap: 0.5rem; cursor: pointer; list-style: none; font-weight: 500; color: var(--accent); }
.more > summary::-webkit-details-marker { display: none; }
.more > summary::after { content: ""; width: 12px; height: 12px; background: currentColor; -webkit-mask: url("../img/ui/plus.svg") center / contain no-repeat; mask: url("../img/ui/plus.svg") center / contain no-repeat; transition: transform 0.3s var(--ease-out); }
.more[open] > summary::after { transform: rotate(45deg); }
.more__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; margin-top: 1.25rem; animation: drop 0.4s var(--ease-out); }
@media (max-width: 640px) { .more__grid { grid-template-columns: 1fr; } }
.form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; padding-top: 0.5rem; }
.form__foot .btn[data-pending] { opacity: 0.7; pointer-events: none; }
.ctf-feedback, .form-feedback {
  grid-column: 1 / -1; padding: 0.9rem 1rem; border: 1px solid color-mix(in oklab, var(--brand) 50%, transparent); border-radius: var(--r);
  background: color-mix(in oklab, var(--brand) 8%, var(--paper)); color: var(--ink); font-size: 0.93rem;
}
.ctf-feedback a, .form-feedback a { color: var(--brand); }

@media (prefers-reduced-motion: reduce) {
  .js .term[data-term] .term__body li { visibility: visible; }
  .term__cursor { animation: none; }
  .is-loaded .phead__title--glitch { animation: none; }
}

/* ---------- sticky "in this guide" jump bar ---------- */
.jumps {
  position: sticky; top: var(--nav-h); z-index: 30;
  background: color-mix(in oklab, var(--paper) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-block: 1px solid var(--rule);
}
.jumps__inner { display: flex; align-items: center; gap: 1.25rem; min-height: 52px; }
.jumps__inner > .stamp { flex: none; color: var(--ink-3); }
.jumps ul { display: flex; gap: 0.25rem; overflow-x: auto; scrollbar-width: none; padding-block: 0.5rem; }
.jumps ul::-webkit-scrollbar { display: none; }
.jumps a {
  display: inline-flex; align-items: center; min-height: 34px; padding: 0 0.85rem; border-radius: 999px; white-space: nowrap;
  font-size: 0.9rem; color: var(--ink-2); text-decoration: none; transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}
.jumps a:hover { color: var(--ink); background: var(--paper-sunk); }
.jumps a[aria-current] { background: var(--ink); color: var(--paper); }
@media (max-width: 640px) { .jumps__inner > .stamp { display: none; } }
/* the pinned story and anchored sections must clear both bars */
.page-doon { --jump-h: 54px; }
.page-doon .story__sticky { top: calc(var(--nav-h) + var(--jump-h)); height: calc(100svh - var(--nav-h) - var(--jump-h)); }
[data-jumps] ~ section[id], [data-jumps] ~ section [id] { scroll-margin-top: calc(var(--nav-h) + 60px); }

/* ---------- story frames that hold a line drawing instead of a photo ---------- */
.story__frame--art { display: grid; place-items: center; background: var(--accent-tint); }
.story__frame--art::before {
  content: ""; position: absolute; inset: 0; opacity: 0.5;
  background: repeating-radial-gradient(circle at 70% 120%, transparent 0 22px, color-mix(in oklab, var(--accent) 16%, transparent) 22px 23px);
}
.story__frame--art svg { position: relative; width: 46%; height: auto; fill: none; stroke: var(--accent); stroke-width: 0.9; stroke-linecap: round; stroke-linejoin: round; }
.story__frame--art svg * { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s var(--ease-out) 0.25s; }
.story__frame--art.is-active svg * { stroke-dashoffset: 0; }
.story__frame--art figcaption { color: var(--accent); background: color-mix(in oklab, var(--paper) 90%, transparent); }

/* ---------- small sub-heading inside a section ---------- */
.subhead { margin-top: clamp(3rem, 6vw, 5rem); margin-bottom: 1.5rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--ink); font-size: var(--fs-xl); font-weight: 500; letter-spacing: -0.02em; }

/* ---------- photo cards with a title and a line ---------- */
.photos--cards figcaption { display: grid; gap: 0.25rem; }
.photos--cards figcaption .stamp { color: var(--accent); }
.photos--cards figcaption strong { font-size: var(--fs-xl); font-weight: 500; letter-spacing: -0.02em; color: var(--ink); }
.photos--cards figcaption span:last-child { color: var(--ink-2); font-size: 0.95rem; }
.reel__item figcaption strong { color: var(--ink); font-weight: 500; }

/* ---------- dishes: square photo, name, one line ---------- */
.dishes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2.5rem) var(--gutter); }
.dishes li { display: grid; align-content: start; gap: 0.35rem; }
.dishes__img { display: block; overflow: hidden; border-radius: var(--r); aspect-ratio: 4 / 3; margin-bottom: 0.6rem; background: var(--paper-sunk); }
.dishes__img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.9); transition: scale 1s var(--ease-out), filter 0.5s var(--ease); }
.dishes li:hover .dishes__img img { scale: 1.06; filter: saturate(1.05); }
.dishes h3 { font-size: var(--fs-xl); font-weight: 500; letter-spacing: -0.02em; }
.dishes p { color: var(--ink-2); font-size: 0.95rem; }
.js .dishes li { opacity: 0; translate: 0 18px; transition: opacity 0.6s var(--ease-out), translate 0.7s var(--ease-out); }
.js .dishes.is-in li { opacity: 1; translate: 0 0; }
.js .dishes.is-in li:nth-child(2) { transition-delay: 0.08s; }
.js .dishes.is-in li:nth-child(3) { transition-delay: 0.16s; }
.js .dishes.is-in li:nth-child(4) { transition-delay: 0.24s; }
.js .dishes.is-in li:nth-child(5) { transition-delay: 0.32s; }
.js .dishes.is-in li:nth-child(6) { transition-delay: 0.4s; }
@media (max-width: 860px) { .dishes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

@media (prefers-reduced-motion: reduce) {
  .story__frame--art svg * { stroke-dashoffset: 0; transition: none; }
  .js .dishes li { opacity: 1; translate: none; }
}

/* =====================================================================
   Long documents (code of conduct, privacy, terms): summary, contents,
   collapsible sections, a report button that stays in reach
   ===================================================================== */
.summary {
  position: relative; display: grid; gap: 1.25rem; padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: var(--r); background: var(--accent); color: var(--accent-ink); overflow: hidden; isolation: isolate;
}
.summary::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.35;
  background: repeating-radial-gradient(circle at 90% 110%, transparent 0 26px, color-mix(in oklab, var(--accent-ink) 22%, transparent) 26px 27px);
}
.summary .stamp { color: var(--accent-ink); opacity: 0.85; }
.summary__title { max-width: 40ch; font-size: var(--fs-2xl); font-weight: 500; letter-spacing: -0.03em; line-height: 1.15; text-wrap: balance; }
.summary__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 0; border-top: 1px solid color-mix(in oklab, var(--accent-ink) 35%, transparent); }
.summary__list li { display: block; padding: 1rem 1.25rem 0.5rem 0; font-size: 0.98rem; line-height: 1.45; }
.summary__list b { display: block; margin-bottom: 0.4rem; font-family: var(--mono); font-size: var(--fs-label); font-weight: 500; letter-spacing: var(--track-stamp); opacity: 0.8; }
.summary a { color: inherit; text-underline-offset: 3px; }

.doc { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2.5rem var(--gutter); align-items: start; }
.doc__aside { grid-column: 1 / span 3; position: sticky; top: calc(var(--nav-h) + 1.5rem); display: grid; gap: 1.5rem; }
.doc__main { grid-column: 4 / span 8; border-top: 1px solid var(--ink); }
.doc__toc ol { display: grid; margin-top: 0.75rem; border-left: 1px solid var(--rule); }
.doc__toc a {
  display: block; padding: 0.35rem 0 0.35rem 0.9rem; margin-left: -1px; border-left: 2px solid transparent;
  font-size: 0.9rem; color: var(--ink-2); text-decoration: none; transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.doc__toc a:hover { color: var(--ink); }
.doc__toc a[aria-current] { color: var(--accent); border-left-color: var(--accent); font-weight: 500; }
.doc__report { display: grid; gap: 0.75rem; justify-items: start; padding: 1.25rem; border: 1px solid var(--rule); border-radius: var(--r); background: var(--paper-raised); }
.doc__report p:not(.stamp) { font-size: 0.88rem; color: var(--ink-2); }
.doc__sec { border-bottom: 1px solid var(--rule); scroll-margin-top: calc(var(--nav-h) + 1rem); }
.doc__sec summary, .doc__head { display: flex; align-items: baseline; gap: 1rem; padding: 1.4rem 0; cursor: pointer; list-style: none; }
.doc__head { cursor: default; margin: 0; }
.doc__sec summary::-webkit-details-marker { display: none; }
.doc__sec summary::after {
  content: ""; flex: none; align-self: center; margin-left: auto; width: 14px; height: 14px; background: var(--ink-2);
  -webkit-mask: url("../img/ui/plus.svg") center / contain no-repeat; mask: url("../img/ui/plus.svg") center / contain no-repeat; transition: transform 0.35s var(--ease-out);
}
.doc__sec details[open] > summary::after { transform: rotate(45deg); }
.doc__sec summary .stamp, .doc__head .stamp { color: var(--accent); flex: none; }
.doc__sec h2, .doc__h { font-size: var(--fs-xl); font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; }
.doc__sec summary:hover h2 { color: var(--accent); }
.doc__body { display: grid; gap: 1rem; padding: 0 0 2rem 2.6rem; max-width: 68ch; color: var(--ink-2); line-height: 1.6; }
.doc__body strong { color: var(--ink); font-weight: 500; }
.doc__body a:not(.btn) { color: var(--accent); text-underline-offset: 3px; }
.doc__num { display: grid; gap: 0.9rem; counter-reset: doc; }
.doc__num li { position: relative; padding-left: 2.2rem; counter-increment: doc; }
.doc__num li::before { content: counter(doc, decimal-leading-zero); position: absolute; left: 0; top: 0.2em; font-family: var(--mono); font-size: var(--fs-label); color: var(--accent); }
.doc__list { display: grid; gap: 0.6rem; }
.doc__list li { position: relative; padding-left: 1.3rem; }
.doc__list li::before { content: ""; position: absolute; left: 0; top: 0.8em; width: 0.6rem; height: 1px; background: var(--accent); }
.doc__note { padding: 1rem 1.1rem; border-left: 2px solid var(--accent); background: var(--paper-raised); border-radius: 0 var(--r) var(--r) 0; }
.doc__alert { padding: 1rem 1.1rem; border-left: 2px solid var(--brand); background: color-mix(in oklab, var(--brand) 7%, var(--paper-raised)); border-radius: 0 var(--r) var(--r) 0; }
.doc__scope { border-top: 1px solid var(--rule); }
.doc__scope > div { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding: 0.9rem 0; border-bottom: 1px solid var(--rule); }
.doc__scope dt { font-family: var(--mono); font-size: var(--fs-label); text-transform: uppercase; letter-spacing: var(--track-stamp); color: var(--ink-3); padding-top: 0.3em; }
.doc__scope dd { margin: 0; }
.doc__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.doc__meta { font-size: 0.88rem; color: var(--ink-3); }
.doc__sec--key { background: var(--paper-raised); margin-inline: -1.25rem; padding-inline: 1.25rem; border-radius: var(--r); border: 1px solid var(--accent); margin-block: 1rem; }
.doc__sec details[open] .doc__body { animation: drop 0.45s var(--ease-out); }
@media (max-width: 960px) {
  .doc__aside { grid-column: 1 / -1; position: static; }
  .doc__toc { display: none; }
  .doc__main { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .doc__body { padding-left: 0; }
  .doc__scope > div { grid-template-columns: 1fr; gap: 0.3rem; }
  .doc__sec--key { margin-inline: 0; }
}

/* floating "report" button: in reach on phones once you scroll past the head */
.fab {
  position: fixed; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom)); z-index: 45;
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 48px; padding: 0 1.2rem; border-radius: 999px;
  background: var(--ink); color: var(--paper); font-weight: 500; font-size: 0.95rem; text-decoration: none;
  box-shadow: 0 16px 32px -14px rgb(16 18 22 / 0.5);
  opacity: 0; translate: 0 16px; pointer-events: none; transition: opacity 0.3s var(--ease), translate 0.4s var(--ease-out);
}
.fab::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.fab.is-on { opacity: 1; translate: 0 0; pointer-events: auto; }
@media (min-width: 961px) { .fab { display: none; } }
html:has(.consent:not([hidden])) .fab { display: none; }

/* ---------- stats with meters: real numbers count up, bars fill ---------- */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem var(--gutter); border-top: 1px solid var(--ink); }
.stats li { display: grid; gap: 0.75rem; padding-top: 1.5rem; }
.stats__n { font-size: clamp(3rem, 2rem + 4vw, 6rem); font-weight: 500; letter-spacing: -0.05em; line-height: 0.95; font-variant-numeric: tabular-nums; }
.stats--goal .stats__n { color: var(--accent); }
.stats__meter { position: relative; display: block; height: 6px; border-radius: 3px; background: var(--rule); overflow: hidden; }
.stats__meter i { position: absolute; inset: 0; transform-origin: left; transform: scaleX(0); background: var(--ink); border-radius: inherit; transition: transform 1.6s var(--ease-out) 0.4s; }
.stats--goal .stats__meter i { background: repeating-linear-gradient(135deg, var(--accent) 0 6px, color-mix(in oklab, var(--accent) 55%, transparent) 6px 12px); }
.stats.is-in .stats__meter i { transform: scaleX(var(--v, 0)); }
.stats li:nth-child(2) .stats__meter i { transition-delay: 0.6s; }
.stats li:nth-child(3) .stats__meter i { transition-delay: 0.8s; }
.stats .stamp { color: var(--ink-3); }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr; gap: 0.5rem; } }
.photos--two { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: clamp(2.5rem, 5vw, 4rem); }
@media (max-width: 760px) { .photos--two { grid-template-columns: none; } }

/* ---------- tier cards: pricing-style, passes shown as dots ---------- */
.tiers { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--rule); border-radius: var(--r); background: var(--paper-raised); }
.tier { position: relative; display: flex; flex-direction: column; gap: 0.6rem; padding: clamp(1.25rem, 2vw, 1.75rem); isolation: isolate; transition: background-color 0.3s var(--ease); }
.tier + .tier { border-left: 1px solid var(--rule); }
.tier:hover { background: color-mix(in oklab, var(--accent-tint) 50%, var(--paper-raised)); }
.tier--top::before { content: ""; position: absolute; inset: -1px -1px auto; height: 3px; background: var(--accent); }
.tier .stamp { color: var(--ink-3); }
.tier--top .stamp { color: var(--accent); }
.tier h3 { font-size: var(--fs-xl); font-weight: 500; letter-spacing: -0.02em; }
.tier__line { flex: 1; color: var(--ink-2); font-size: 0.93rem; line-height: 1.45; }
.tier__passes { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem 0.15rem; padding-top: 0.9rem; border-top: 1px solid var(--rule); color: var(--ink-2); font-size: 0.9rem; }
.tier__passes b { font-size: 2rem; font-weight: 500; letter-spacing: -0.03em; color: var(--ink); line-height: 1; margin-right: 0.3rem; }
.tier__dots { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 4px; }
.tier__dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); transform: scale(0); transition: transform 0.4s var(--ease-out); }
.tiers.is-in .tier__dots i { transform: scale(1); }
.tiers.is-in .tier__dots i:nth-child(2) { transition-delay: 0.05s; } .tiers.is-in .tier__dots i:nth-child(3) { transition-delay: 0.1s; }
.tiers.is-in .tier__dots i:nth-child(4) { transition-delay: 0.15s; } .tiers.is-in .tier__dots i:nth-child(5) { transition-delay: 0.2s; }
.tiers.is-in .tier__dots i:nth-child(6) { transition-delay: 0.25s; } .tiers.is-in .tier__dots i:nth-child(7) { transition-delay: 0.3s; }
.tiers.is-in .tier__dots i:nth-child(8) { transition-delay: 0.35s; }
.tier__cta { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-top: 0.5rem; padding-top: 0.9rem; border-top: 1px solid var(--ink); color: var(--ink); font-weight: 500; font-size: 0.93rem; text-decoration: none; }
.tier__cta::after { content: ""; flex: none; width: 14px; height: 14px; background: currentColor; -webkit-mask: url("../img/ui/arrow-right.svg") center / contain no-repeat; mask: url("../img/ui/arrow-right.svg") center / contain no-repeat; transition: translate 0.3s var(--ease-out); }
.tier__cta:hover { color: var(--accent); }
.tier__cta:hover::after { translate: 4px 0; }
@media (max-width: 1100px) { .tiers { grid-template-columns: repeat(3, minmax(0, 1fr)); } .tier + .tier { border-left: 0; } .tier { border-bottom: 1px solid var(--rule); } .tier:not(:nth-child(3n+1)) { border-left: 1px solid var(--rule); } }
@media (max-width: 640px) {
  .tiers { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); border-radius: 0; border-inline: 0; }
  .tier { scroll-snap-align: start; border-bottom: 0; }
  .tier + .tier, .tier:not(:nth-child(3n+1)) { border-left: 1px solid var(--rule); }
}

/* ---------- opportunity cards: the whole card is the email link ---------- */
.opps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; }
.opp {
  display: grid; align-content: start; justify-items: start; gap: 0.45rem; height: 100%; padding: 1.15rem 1.2rem 1.3rem;
  border: 1px solid var(--rule); border-radius: var(--r); background: var(--paper-raised); color: var(--ink); text-decoration: none;
  transition: border-color 0.3s var(--ease), translate 0.4s var(--ease-out), box-shadow 0.4s var(--ease);
}
.opp strong { font-size: 1.1rem; font-weight: 500; letter-spacing: -0.015em; }
.opp > span:last-child { color: var(--ink-2); font-size: 0.9rem; line-height: 1.45; }
.opp:hover { border-color: var(--accent); translate: 0 -3px; box-shadow: 0 18px 30px -22px rgb(16 18 22 / 0.4); }
.opp:hover strong { color: var(--accent); }
@media (max-width: 1000px) { .opps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .opps { gap: 0.5rem; } .opp { padding: 0.9rem 0.9rem 1rem; } .opp strong { font-size: 1rem; } .opp > span:last-child { font-size: 0.84rem; } }
@media (max-width: 340px) { .opps { grid-template-columns: 1fr; } }

/* ---------- pull quote ---------- */
.pull { margin: clamp(2.5rem, 5vw, 4rem) 0 0; padding-left: clamp(1rem, 3vw, 2rem); border-left: 3px solid var(--accent); }
.pull p { max-width: 34ch; font-family: var(--serif); font-size: var(--fs-2xl); line-height: 1.25; color: var(--ink); text-wrap: balance; }
.pull cite { display: block; margin-top: 1rem; font-style: normal; color: var(--ink-3); }

/* ---------- split call-to-action card ---------- */
.splitcta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
.splitcta > div { display: grid; align-content: space-between; gap: 1.25rem; min-height: clamp(260px, 28vw, 360px); padding: clamp(1.75rem, 4vw, 3rem); border-radius: var(--r); }
.splitcta__a { background: var(--ink); color: var(--paper); }
.splitcta__a .stamp { color: color-mix(in oklab, var(--paper) 70%, transparent); }
.splitcta__a h2 { font-size: var(--fs-h2); font-weight: 500; letter-spacing: var(--track-display); line-height: 1; }
.splitcta__a p:last-child { color: color-mix(in oklab, var(--paper) 78%, transparent); }
.splitcta__b { position: relative; overflow: hidden; isolation: isolate; background: var(--accent); color: var(--accent-ink); justify-items: start; }
.splitcta__b::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.35; background: repeating-radial-gradient(circle at 100% 0%, transparent 0 24px, color-mix(in oklab, var(--accent-ink) 22%, transparent) 24px 25px); }
.splitcta__b p { max-width: 36ch; font-size: 1.05rem; }
.splitcta__mail { color: inherit; font-family: var(--mono); font-size: 0.9rem; text-underline-offset: 4px; }
@media (max-width: 760px) { .splitcta { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  .stats__meter i, .tier__dots i { transition: none; }
}

/* ---------- two commitment tracks ---------- */
.tracks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
.track { display: flex; flex-direction: column; gap: 1rem; padding: clamp(1.5rem, 3vw, 2.5rem); border: 1px solid var(--rule); border-radius: var(--r); background: var(--paper-raised); transition: border-color 0.3s var(--ease); }
.track:hover { border-color: var(--accent); }
.track--core { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.track .stamp { color: var(--accent); }
.track--core .stamp { color: #71A5FF; }
.track h3 { font-size: var(--fs-2xl); font-weight: 500; letter-spacing: -0.03em; line-height: 1.05; }
.track__facts { flex: 1; border-top: 1px solid currentColor; border-color: color-mix(in oklab, currentColor 25%, transparent); }
.track__facts > div { display: grid; grid-template-columns: 6rem 1fr; gap: 1rem; padding: 0.75rem 0; border-bottom: 1px solid color-mix(in oklab, currentColor 14%, transparent); }
.track__facts dt { font-family: var(--mono); font-size: var(--fs-label); text-transform: uppercase; letter-spacing: var(--track-stamp); opacity: 0.65; padding-top: 0.25em; }
.track__facts dd { margin: 0; }
.track__cta { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.9rem 1.1rem; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 500; text-decoration: none; transition: background-color 0.25s var(--ease); }
.track--core .track__cta { background: var(--paper); color: var(--ink); }
.track__cta::after { content: ""; width: 14px; height: 14px; background: currentColor; -webkit-mask: url("../img/ui/arrow-right.svg") center / contain no-repeat; mask: url("../img/ui/arrow-right.svg") center / contain no-repeat; transition: translate 0.3s var(--ease-out); }
.track__cta:hover::after { translate: 4px 0; }
@media (max-width: 760px) { .tracks { grid-template-columns: 1fr; } }

/* ---------- filter chips ---------- */
.filter { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.5rem; }
.filter button { min-height: 38px; padding: 0 1rem; border: 1px solid var(--rule-strong); border-radius: 999px; background: transparent; color: var(--ink-2); font: inherit; font-size: 0.9rem; cursor: pointer; transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease); }
.filter button:hover { border-color: var(--ink); color: var(--ink); }
.filter button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* ---------- area cards ---------- */
.areas { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; }
.area { display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem; padding: 1.2rem; border: 1px solid var(--rule); border-radius: var(--r); background: var(--paper-raised); transition: opacity 0.35s var(--ease), filter 0.35s var(--ease), border-color 0.3s var(--ease), translate 0.4s var(--ease-out); }
.area:hover { border-color: var(--accent); translate: 0 -2px; }
.area h3 { font-size: 1.15rem; font-weight: 500; letter-spacing: -0.015em; }
.area > p { flex: 1; color: var(--ink-2); font-size: 0.92rem; line-height: 1.45; }
.area dl { width: 100%; border-top: 1px solid var(--rule); }
.area dl > div { display: grid; grid-template-columns: 3.4rem 1fr; gap: 0.5rem; padding-top: 0.5rem; font-size: 0.85rem; }
.area dt { font-family: var(--mono); font-size: var(--fs-label); text-transform: uppercase; letter-spacing: var(--track-stamp); color: var(--ink-3); padding-top: 0.15em; }
.area dd { margin: 0; color: var(--ink-2); }
.area.is-dim { opacity: 0.28; filter: grayscale(1); }
@media (max-width: 1000px) { .areas { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .areas { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); } .area { scroll-snap-align: start; } }

/* ---------- application panel ---------- */
.apply { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1.5rem var(--gutter); padding: clamp(1.25rem, 3vw, 2.25rem); border: 1px solid var(--rule); border-radius: var(--r); background: var(--paper-raised); }
.apply__switch { grid-column: 1 / span 5; display: grid; gap: 0.5rem; align-content: start; }
.apply__switch button { display: grid; gap: 0.2rem; padding: 1rem 1.1rem; border: 1px solid var(--rule-strong); border-radius: var(--r); background: var(--paper); color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease); }
.apply__switch button span { font-size: 0.88rem; color: var(--ink-3); }
.apply__switch button[aria-pressed="true"] { border-color: var(--accent); background: color-mix(in oklab, var(--accent-tint) 55%, var(--paper)); }
.apply__switch button[aria-pressed="true"] strong { color: var(--accent); }
.apply__panel { grid-column: 7 / -1; display: grid; align-content: center; justify-items: start; gap: 0.6rem; }
.apply__panel[hidden] { display: none; }
.apply__panel h3 { font-size: var(--fs-xl); font-weight: 500; letter-spacing: -0.02em; }
.apply__close { color: var(--ink-3); font-size: 0.92rem; }
.apply__status { padding: 0.7rem 0.9rem; border-left: 2px solid var(--warn); background: color-mix(in oklab, var(--warn) 8%, var(--paper)); border-radius: 0 var(--r) var(--r) 0; font-size: 0.95rem; }
@media (max-width: 760px) { .apply__switch, .apply__panel { grid-column: 1 / -1; } }
.more--notice { margin-top: 1.5rem; border-top: 0; padding-top: 0; }
.more__body { display: grid; gap: 0.9rem; max-width: 72ch; margin-top: 1rem; color: var(--ink-2); font-size: 0.95rem; line-height: 1.6; animation: drop 0.4s var(--ease-out); }
.more__body a { color: var(--accent); text-underline-offset: 3px; }

/* ---------- people cards (boards) ---------- */
.people { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); }
.person { display: flex; flex-direction: column; gap: 0.4rem; }
.person__img { display: block; overflow: hidden; aspect-ratio: 4 / 5; margin-bottom: 0.6rem; border-radius: var(--r); background: var(--paper-sunk); }
.person__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; filter: grayscale(1) contrast(1.05); transition: filter 0.6s var(--ease), scale 1s var(--ease-out); }
.person:hover .person__img img { filter: none; scale: 1.04; }
.person h3 { font-size: 1.15rem; font-weight: 500; letter-spacing: -0.015em; line-height: 1.2; }
.person__role { font-family: var(--mono); font-size: var(--fs-label); text-transform: uppercase; letter-spacing: var(--track-stamp); color: var(--accent); line-height: 1.5; }
.person > p:not(.person__role) { flex: 1; color: var(--ink-2); font-size: 0.9rem; line-height: 1.45; }
.person__link { align-self: flex-start; margin-top: 0.3rem; font-size: 0.88rem; font-weight: 500; color: var(--ink); text-underline-offset: 3px; }
.person__link:hover { color: var(--accent); }
.js .people .person { opacity: 0; translate: 0 22px; transition: opacity 0.7s var(--ease-out), translate 0.8s var(--ease-out); }
.js .people.is-in .person { opacity: 1; translate: 0 0; }
.js .people.is-in .person:nth-child(2) { transition-delay: 0.08s; }
.js .people.is-in .person:nth-child(3) { transition-delay: 0.16s; }
.js .people.is-in .person:nth-child(4) { transition-delay: 0.24s; }
.js .people.is-in .person:nth-child(5) { transition-delay: 0.32s; }
@media (max-width: 1100px) { .people { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .people { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 70%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .person { scroll-snap-align: start; }
  .person__img img { filter: none; }
}
.points--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.points--four li:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
.points--four li:not(:nth-child(4n+1)) { padding-left: 1.5rem; border-left: 1px solid var(--rule); }
@media (max-width: 900px) { .points--four { grid-template-columns: repeat(2, minmax(0, 1fr)); } .points--four li:nth-child(3) { padding-left: 0; border-left: 0; } }

/* ---------- scoring criteria as filled meters ---------- */
.criteria { border-top: 1px solid var(--ink); }
.criteria li { display: grid; grid-template-columns: 9rem 3rem minmax(0, 14rem) 1fr; align-items: center; gap: 1rem 1.5rem; padding: 1.1rem 0; border-bottom: 1px solid var(--rule); }
.criteria__w { display: flex; gap: 4px; }
.criteria__w i { flex: 1; height: 10px; border-radius: 2px; background: var(--accent); transform: scaleY(0.2); opacity: 0.25; transition: transform 0.5s var(--ease-out), opacity 0.5s var(--ease); }
.criteria__w i.off { background: var(--rule); }
.criteria.is-in .criteria__w i { transform: none; opacity: 1; }
.criteria.is-in li:nth-child(2) .criteria__w i { transition-delay: 0.1s; }
.criteria.is-in li:nth-child(3) .criteria__w i { transition-delay: 0.2s; }
.criteria.is-in li:nth-child(4) .criteria__w i { transition-delay: 0.3s; }
.criteria.is-in li:nth-child(5) .criteria__w i { transition-delay: 0.4s; }
.criteria b { font-size: 2rem; font-weight: 500; letter-spacing: -0.03em; line-height: 1; }
.criteria strong { font-size: var(--fs-lg); font-weight: 500; }
.criteria li > span:last-child { color: var(--ink-2); font-size: 0.95rem; }
@media (max-width: 860px) {
  .criteria li { grid-template-columns: 6.5rem 2.2rem 1fr; }
  .criteria li > span:last-child { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  .js .people .person { opacity: 1; translate: none; }
  .criteria__w i { transform: none; opacity: 1; transition: none; }
}

/* ---------- form messages (contact.js) ---------- */
.field__error { font-size: 0.85rem; color: var(--brand); }
.field--invalid .field__input { border-color: var(--brand); }
.field__count { justify-self: end; font-variant-numeric: tabular-nums; }
.form__status { flex-basis: 100%; }
.form[aria-busy="true"] { opacity: 0.85; }

/* ---------- email directory: topic, what it is for, the address ---------- */
.mails { border-top: 1px solid var(--ink); }
.mails li { display: grid; grid-template-columns: 9rem 1fr auto; align-items: center; gap: 0.75rem 1.5rem; padding: 1.1rem 0.75rem; margin-inline: -0.75rem; border-bottom: 1px solid var(--rule); border-radius: var(--r); transition: background-color 0.25s var(--ease); }
.mails li:hover { background: var(--paper-raised); }
.mails .stamp { color: var(--ink-3); }
.mails__what { color: var(--ink-2); font-size: 0.95rem; }
.mails__what a { color: var(--accent); text-underline-offset: 3px; }
.mails li > a { justify-self: end; font-family: var(--mono); font-size: 0.92rem; color: var(--ink); text-underline-offset: 4px; overflow-wrap: anywhere; }
.mails li > a:hover { color: var(--accent); }
.mails li > a[data-copied] { color: var(--open); }
.mails li > button { grid-column: 3; justify-self: end; }
.mails li:has(> button) { grid-template-columns: 9rem 1fr auto auto; }
.mails li:has(> button) > button { grid-column: auto; }
.mails--key { background: color-mix(in oklab, var(--brand) 6%, transparent); }
.mails--key .stamp { color: var(--brand); }
@media (max-width: 760px) {
  .mails li, .mails li:has(> button) { grid-template-columns: 1fr auto; }
  .mails .stamp { grid-column: 1 / -1; }
  .mails__what { grid-column: 1 / -1; }
  .mails li > a { justify-self: start; }
}

/* ---------- legal text inside the document layout ---------- */
.doc__body h3 { margin-top: 0.75rem; font-size: var(--fs-lg); font-weight: 500; color: var(--ink); scroll-margin-top: calc(var(--nav-h) + 1rem); }
.doc__body ul { display: grid; gap: 0.6rem; }
.doc__body ul > li { position: relative; padding-left: 1.3rem; }
.doc__body ul > li::before { content: ""; position: absolute; left: 0; top: 0.8em; width: 0.6rem; height: 1px; background: var(--accent); }
.doc__body code { font-family: var(--mono); font-size: 0.86em; padding: 0.1em 0.35em; border-radius: 3px; background: var(--paper-raised); border: 1px solid var(--rule); color: var(--ink); }
.doc__body .link-mono { font-family: var(--mono); font-size: 0.92em; }
.doc__body .chip { margin-bottom: 0.25rem; }
.doc__body > div > p:first-child .chip, .doc__body > .chip:first-child { justify-self: start; }
.doc--legal .doc__aside { top: calc(var(--nav-h) + 1.5rem); }

/* =====================================================================
   Confirmation and error pages
   ===================================================================== */
.done { position: relative; overflow: hidden; isolation: isolate; padding: calc(var(--nav-h) + clamp(3rem, 10vh, 6rem)) 0 clamp(3rem, 8vh, 5rem); border-bottom: 1px solid var(--rule); }
.done__inner { display: grid; justify-items: start; gap: 1.25rem; }
.done__mark { width: clamp(64px, 8vw, 88px); height: auto; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.done__mark * { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1s var(--ease-out) 0.3s forwards; }
.done__mark path { animation-delay: 0.9s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.done__title { max-width: 18ch; font-size: clamp(2.6rem, 1.2rem + 5vw, 5.5rem); font-weight: 500; line-height: 0.95; letter-spacing: var(--track-display); text-wrap: balance; }
.done__lead { max-width: 46ch; }
.done__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.5rem; }
.done + .section .subhead { margin-top: clamp(2.5rem, 5vw, 4rem); }
.done__ghost {
  position: absolute; right: -2vw; top: 50%; translate: 0 -50%; z-index: -1; margin: 0; pointer-events: none;
  font-size: clamp(10rem, 34vw, 30rem); font-weight: 600; letter-spacing: -0.06em; line-height: 0.8;
  color: transparent; -webkit-text-stroke: 1px var(--rule-strong); opacity: 0.6;
}
.sitemap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem var(--gutter); border-top: 1px solid var(--ink); padding-top: 1.5rem; }
.sitemap li { display: grid; align-content: start; gap: 0.5rem; }
.sitemap .stamp { color: var(--accent); margin-bottom: 0.3rem; }
.sitemap a { color: var(--ink); text-decoration: none; font-size: 1.05rem; transition: color 0.2s var(--ease), translate 0.3s var(--ease-out); }
.sitemap a:hover { color: var(--accent); translate: 4px 0; }
@media (max-width: 760px) { .sitemap { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .done__mark * { animation: none; stroke-dashoffset: 0; } }
