/* ==========================================================================
   NIMO LIVE 26 — shared styles
   ========================================================================== */

@font-face {
  font-family: 'Bantley';
  src: url('../assets/fonts/gw-bantley.ttf') format('truetype');
  font-display: swap;
}
@font-face {
  font-family: 'Newsprint';
  src: url('../assets/fonts/OldNewspaperTypes.ttf') format('truetype');
  font-display: swap;
}

:root {
  --void: #07040a;
  --night: #120818;
  --plum: #2a0f3a;
  --violet: #6a2a96;
  --lilac: #b884d8;
  --crimson: #c8141e;
  --crimson-hi: #ff3b3b;
  --bone: #f2e9d6;
  --bone-dim: rgba(242, 233, 214, 0.62);
  --bone-faint: rgba(242, 233, 214, 0.18);
  --steel: #9fb2c6;
  --line: rgba(242, 233, 214, 0.14);

  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --serif: 'EB Garamond', Georgia, serif;
  --display: 'Bantley', 'EB Garamond', serif;
  --news: 'Newsprint', 'EB Garamond', serif;

  --gutter: clamp(16px, 3vw, 40px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--void);
  color: var(--bone);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--crimson); color: var(--bone); }

a { color: inherit; }
img { max-width: 100%; display: block; }

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

:focus-visible { outline: 1px dashed var(--crimson-hi); outline-offset: 4px; }

/* -------------------------------------------------------------------------
   Grain + vignette overlay (all pages)
   ------------------------------------------------------------------------- */
.grain {
  pointer-events: none;
  position: fixed; inset: -50%;
  z-index: 50;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.8s steps(4) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-3%, 2%); }
  50% { transform: translate(2%, -3%); }
  75% { transform: translate(-1%, -2%); }
  100% { transform: translate(3%, 1%); }
}

/* -------------------------------------------------------------------------
   HUD chrome (fixed corners, igloo-style)
   ------------------------------------------------------------------------- */
.hud {
  position: fixed; z-index: 40;
  font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--bone);
}
.hud--tl { top: var(--gutter); left: var(--gutter); }
.hud--tr { top: var(--gutter); right: var(--gutter); text-align: right; }
.hud--bl { bottom: var(--gutter); left: var(--gutter); }
.hud--br { bottom: var(--gutter); right: var(--gutter); text-align: right; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 38px; width: auto; filter: drop-shadow(0 0 18px rgba(200, 20, 30, 0.35)); }
.brand__meta { line-height: 1.35; color: var(--bone-dim); }
.brand__meta b { color: var(--bone); font-weight: 500; }

.slashes { color: var(--crimson-hi); letter-spacing: -0.08em; margin-right: 0.6em; }

.nav { display: flex; gap: 22px; align-items: center; }
/* Plain nav links only — the Tickets button keeps its own .btn styling */
.nav a:not(.btn) {
  text-decoration: none; color: var(--bone-dim);
  position: relative; padding: 4px 0; transition: color 0.3s;
}
.nav a:not(.btn):hover, .nav a[aria-current='page'] { color: var(--bone); }
.nav a[aria-current='page']::before {
  content: ''; position: absolute; left: -10px; top: 50%;
  width: 4px; height: 4px; background: var(--crimson-hi); transform: translateY(-50%);
}
.nav .btn { color: var(--bone); }

.nav-toggle { display: none; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  font: inherit; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--bone); background: transparent;
  border: 1px solid var(--bone-faint);
  text-decoration: none; cursor: pointer;
  position: relative; overflow: hidden;
  isolation: isolate; /* keeps the ::after hover fill inside the button */
  transition: border-color 0.3s, color 0.3s;
}
.btn::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--crimson);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.5s var(--ease);
}
.btn:hover { border-color: var(--crimson); }
.btn:hover::after { transform: scaleX(1); transform-origin: left; }
.btn--solid { background: var(--crimson); border-color: var(--crimson); }
.btn--solid::after { background: var(--bone); }
.btn--solid:hover { color: var(--void); }
.btn[disabled] { opacity: 0.45; pointer-events: none; }
/* "Tickets — Soon": a status badge, not a control */
.btn.is-soon { cursor: default; border-color: var(--bone-faint); background: transparent; color: var(--bone-dim); }
.btn.is-soon::after { display: none; }

.sound { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; padding: 0; display: inline-flex; gap: 8px; align-items: center; text-transform: uppercase; letter-spacing: 0.04em; }
.sound__bars { display: inline-flex; gap: 2px; align-items: flex-end; height: 10px; }
.sound__bars i { width: 2px; height: 3px; background: currentColor; }
.sound.is-on .sound__bars i { animation: bar 0.9s ease-in-out infinite alternate; }
.sound.is-on .sound__bars i:nth-child(2) { animation-delay: -0.3s; }
.sound.is-on .sound__bars i:nth-child(3) { animation-delay: -0.6s; }
@keyframes bar { from { height: 2px; } to { height: 10px; } }

/* -------------------------------------------------------------------------
   Loader
   ------------------------------------------------------------------------- */
.loader {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  background: var(--void);
  transition: opacity 1.2s var(--ease), visibility 1.2s;
}
.loader.is-done { opacity: 0; visibility: hidden; }
/* CSS-only backstop: even if no script ever runs to completion (e.g. proxy
   browsers that stop scripts after a few seconds), the loader leaves */
.loader { animation: loader-giveup 0.6s 9s forwards; }
@keyframes loader-giveup { to { opacity: 0; visibility: hidden; } }
.loader__inner { width: min(320px, 70vw); text-align: center; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--bone-dim); }
.loader__coin { width: 72px; margin: 0 auto 28px; animation: spin 3.2s linear infinite; opacity: 0.85; }
@keyframes spin { from { transform: rotateY(0); } to { transform: rotateY(360deg); } }
.loader__bar { height: 1px; background: var(--bone-faint); margin: 14px 0 10px; position: relative; overflow: hidden; }
.loader__bar span { position: absolute; inset: 0; background: var(--crimson-hi); transform-origin: left; transform: scaleX(0); transition: transform 0.4s var(--ease); }
.loader__row { display: flex; justify-content: space-between; }

/* -------------------------------------------------------------------------
   Home — immersive scroll
   ------------------------------------------------------------------------- */
.stage { position: fixed; inset: 0; z-index: 0; }
.stage canvas { display: block; width: 100%; height: 100%; }

.chapters { position: relative; z-index: 10; }
.chapter {
  min-height: 100vh; min-height: 100svh;
  padding: calc(var(--gutter) * 3) var(--gutter);
  display: flex; align-items: center;
  position: relative;
}
.chapter--tall { min-height: 160vh; }
.chapter--end { justify-content: flex-end; }
.chapter--center { justify-content: center; text-align: center; }
.chapter--bottom { align-items: flex-end; padding-bottom: calc(var(--gutter) * 4); }

.panel { max-width: 360px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.03em; text-shadow: 0 0 14px rgba(7, 4, 10, 0.95), 0 0 2px rgba(7, 4, 10, 0.9); }
.panel h2, .label {
  margin: 0 0 14px; font: inherit; font-size: 11px; color: var(--bone);
}
.panel p { margin: 0 0 12px; color: var(--bone-dim); }
.panel p strong { color: var(--bone); font-weight: 500; }

/* Only hidden once common.js has started (it adds .reveals), so content is
   never stuck invisible in browsers that can't run it */
.reveals .reveal { opacity: 0; transform: translateY(18px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); }
.reveals .reveal.is-in { opacity: 1; transform: none; }

.scroll-cue { display: inline-flex; gap: 10px; align-items: center; }
.scroll-cue i { width: 1px; height: 28px; background: linear-gradient(var(--bone), transparent); animation: cue 1.8s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

.headline {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(44px, 9vw, 150px);
  line-height: 0.92;
  margin: 0;
  color: var(--bone);
  text-transform: none;
  letter-spacing: -0.01em;
}
.headline em { font-style: normal; color: var(--crimson-hi); }

.callouts { position: fixed; inset: 0; z-index: 20; pointer-events: none; overflow: hidden; }
.callout {
  position: absolute; top: 0; left: 0; font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--bone); white-space: nowrap; pointer-events: none;
  opacity: 0; transition: opacity 0.6s;
}
.callout.is-in { opacity: 1; }
.callout__line { display: block; height: 1px; background: var(--bone); margin: 4px 0; transform-origin: left; }
.callout small { color: var(--bone-dim); display: block; }

.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); width: 100%; max-width: 1100px; margin: 0 auto; }
.fact { background: rgba(7, 4, 10, 0.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); padding: 22px 20px; text-align: left; }
.fact .label { color: var(--bone-dim); font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 18px; }
.fact__value { font-family: var(--news); font-size: clamp(22px, 2.6vw, 34px); line-height: 1.05; }

.roles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); width: 100%; max-width: 1200px; margin: 0 auto; }
.role {
  background: rgba(7, 4, 10, 0.78); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  padding: 22px 20px 26px; text-decoration: none; text-align: left;
  display: flex; flex-direction: column; gap: 40px; min-height: 230px;
  transition: background 0.5s var(--ease);
  position: relative; overflow: hidden;
}
.role:hover { background: rgba(200, 20, 30, 0.22); }
.role__idx { font-size: 10px; color: var(--bone-dim); display: flex; justify-content: space-between; }
.role__name { font-family: var(--display); font-size: clamp(28px, 3vw, 42px); line-height: 1; margin-top: auto; }
.role__desc { font-size: 11px; color: var(--bone-dim); text-transform: uppercase; letter-spacing: 0.03em; }
.role__arrow { transition: transform 0.5s var(--ease); }
.role:hover .role__arrow { transform: translateX(6px); color: var(--crimson-hi); }

.section-head { width: 100%; max-width: 1200px; margin: 0 auto 28px; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.section-head .headline { font-size: clamp(40px, 6vw, 96px); }

.footer {
  position: relative; z-index: 10;
  padding: var(--gutter);
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: 1fr auto auto auto; gap: 24px 40px; align-items: end;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--bone-dim);
  background: rgba(7, 4, 10, 0.85);
}
.footer a { text-decoration: none; }
.footer a:hover { color: var(--bone); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.footer__mark { font-family: var(--display); font-size: clamp(56px, 12vw, 180px); line-height: 0.8; color: var(--bone); text-transform: none; letter-spacing: -0.02em; }
.footer__mark em { font-style: normal; color: var(--crimson-hi); }

/* WebGL fallback: static art when there is no GPU */
.fallback-art { display: none; }
.no-webgl .fallback-art { display: block; position: fixed; inset: 0; z-index: 0; background: url('../assets/img/background.webp') center / cover; }
/* Scene-driven readouts mean nothing without the scene */
.no-webgl .callouts, .no-webgl .hud--br, .no-webgl .hud__chapter { display: none; }
.no-webgl .fallback-art img { position: absolute; left: 50%; top: 50%; width: min(80vw, 760px); transform: translate(-50%, -50%); opacity: 0.9; }

/* -------------------------------------------------------------------------
   Inner pages (policies / get involved)
   ------------------------------------------------------------------------- */
.page {
  position: relative; z-index: 1;
  min-height: 100vh;
  background:
    radial-gradient(120% 70% at 50% 120%, rgba(106, 42, 150, 0.55), transparent 60%),
    linear-gradient(180deg, var(--void) 0%, var(--night) 55%, var(--plum) 100%);
}
.page::before, .page::after {
  content: ''; position: fixed; z-index: -1; width: min(28vw, 340px); aspect-ratio: 1339 / 1741;
  background-size: contain; background-repeat: no-repeat; opacity: 0.12; pointer-events: none;
}
.page::before { left: 0; bottom: 0; background-image: url('../assets/img/floral-left.webp'); }
.page::after { right: 0; bottom: 0; background-image: url('../assets/img/floral-right.webp'); }

.page-header {
  position: sticky; top: 0; z-index: 30;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 14px var(--gutter);
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em;
  background: linear-gradient(180deg, rgba(7, 4, 10, 0.92), rgba(7, 4, 10, 0.6));
  border-bottom: 1px solid var(--line);
}
/* The blur lives on a pseudo-element: backdrop-filter on the header itself
   would trap the fixed mobile nav overlay inside the header's box */
.page-header::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.page-header .brand img { height: 30px; }

.hero {
  padding: clamp(60px, 12vh, 140px) var(--gutter) clamp(40px, 8vh, 80px);
  max-width: 1300px; margin: 0 auto;
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: end;
  position: relative;
}
.hero .headline { font-size: clamp(56px, 10vw, 168px); }
.hero__art { justify-self: end; width: min(100%, 380px); filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.6)); animation: float 9s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-14px) rotate(1deg); } }
.hero__intro { max-width: 520px; color: var(--bone-dim); font-size: 12px; text-transform: uppercase; letter-spacing: 0.03em; margin-top: 28px; }

.layout {
  max-width: 1300px; margin: 0 auto;
  padding: 0 var(--gutter) 120px;
  display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 60px;
}
.toc { position: sticky; top: 90px; align-self: start; font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a { display: block; padding: 6px 0 6px 16px; color: var(--bone-dim); text-decoration: none; position: relative; transition: color 0.3s; }
.toc a::before { content: counter(toc, decimal-leading-zero); content: counter(toc, decimal-leading-zero) / ''; margin-right: 10px; color: rgba(242, 233, 214, 0.45); }
.toc a:hover, .toc a.is-active { color: var(--bone); }
.toc a.is-active::after { content: ''; position: absolute; left: -1px; top: 6px; bottom: 6px; width: 1px; background: var(--crimson-hi); }

.prose { font-family: var(--serif); font-size: 19px; line-height: 1.6; color: rgba(242, 233, 214, 0.86); max-width: 760px; }
.prose section { padding: 36px 0 28px; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.prose section:first-child { border-top: 0; padding-top: 0; }
.prose h2 {
  font-family: var(--display); font-weight: 400; font-size: clamp(32px, 3.6vw, 48px); line-height: 1;
  margin: 0 0 18px; color: var(--bone); display: flex; gap: 18px; align-items: baseline;
}
.prose h2 .idx { font-family: var(--mono); font-size: 11px; color: var(--crimson-hi); letter-spacing: 0.06em; }
.prose h3 { font-family: var(--mono); font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; color: var(--bone); margin: 24px 0 8px; }
.prose p { margin: 0 0 14px; }
.prose ul { margin: 0 0 14px; padding-left: 0; list-style: none; }
.prose li { padding-left: 26px; position: relative; margin-bottom: 6px; }
.prose li::before { content: '✕'; content: '✕' / ''; position: absolute; left: 0; top: 0.15em; font-size: 0.6em; color: var(--crimson-hi); font-family: var(--mono); }
.prose ul.ok li::before { content: '◆'; content: '◆' / ''; color: var(--lilac); }
.prose a { color: var(--bone); text-decoration-color: var(--crimson-hi); text-underline-offset: 3px; }
.prose .note {
  font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em;
  padding: 14px 16px; border: 1px solid var(--line); border-left: 2px solid var(--crimson-hi);
  color: var(--bone-dim); margin: 18px 0;
}
.meta-row { display: flex; gap: 24px; flex-wrap: wrap; font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--bone-dim); margin-top: 22px; }

/* -------------------------------------------------------------------------
   Forms
   ------------------------------------------------------------------------- */
.tabs { display: flex; flex-wrap: wrap; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: 40px; }
.tab {
  flex: 1 1 0; min-width: 140px;
  background: rgba(7, 4, 10, 0.85); color: var(--bone-dim);
  border: 0; font: inherit; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 16px 18px; text-align: left; cursor: pointer;
  display: flex; justify-content: space-between; gap: 10px;
  transition: background 0.4s var(--ease), color 0.3s;
}
.tab:hover { color: var(--bone); }
.tab[aria-selected='true'] { background: var(--crimson); color: var(--bone); }
.tab span:last-child { opacity: 0.75; }
.tab[aria-selected='true'] span:last-child { opacity: 1; }

.form-intro { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 40px; margin-bottom: 36px; align-items: start; }
.form-intro h2 { font-family: var(--display); font-weight: 400; font-size: clamp(42px, 5vw, 76px); line-height: 0.95; margin: 0 0 14px; }
.form-intro p { color: var(--bone-dim); font-size: 12px; text-transform: uppercase; letter-spacing: 0.03em; margin: 0; max-width: 560px; }
.form-intro ul { list-style: none; margin: 0; padding: 16px; border: 1px solid var(--line); font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--bone-dim); display: grid; gap: 6px; }
.form-intro ul b { color: var(--bone); font-weight: 500; display: block; margin-bottom: 4px; }

form.apply { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 24px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--bone-dim);
}
.field label .req, .field legend .req { color: var(--crimson-hi); }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit; font-size: 14px; color: var(--bone);
  background: rgba(7, 4, 10, 0.55);
  border: 0; border-bottom: 1px solid var(--bone-faint);
  padding: 12px 2px;
  border-radius: 0;
  transition: border-color 0.3s, background 0.3s;
  -webkit-appearance: none; appearance: none;
}
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--bone-dim) 50%), linear-gradient(135deg, var(--bone-dim) 50%, transparent 50%);
  background-position: calc(100% - 14px) 52%, calc(100% - 9px) 52%;
  background-size: 5px 5px; background-repeat: no-repeat;
  padding-right: 28px;
}
.field select option { background: var(--night); }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid transparent; outline-offset: 2px; border-bottom-color: var(--crimson-hi); background: rgba(200, 20, 30, 0.06); }
.field input::placeholder, .field textarea::placeholder { color: rgba(242, 233, 214, 0.5); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-bottom-color: var(--crimson-hi); }
.field__error { font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--crimson-hi); min-height: 0; }

fieldset.field { border: 0; padding: 0; margin: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: inline-block; padding: 8px 12px; border: 1px solid var(--bone-faint);
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--bone-dim);
  cursor: pointer; transition: all 0.3s var(--ease); user-select: none;
}
.choice input:checked + span { background: var(--bone); color: var(--void); border-color: var(--bone); }
.choice input:focus-visible + span { outline: 1px dashed var(--crimson-hi); outline-offset: 3px; }

.check { display: flex; gap: 12px; align-items: flex-start; font-size: 11px; text-transform: uppercase; letter-spacing: 0.03em; color: var(--bone-dim); cursor: pointer; }
.check input { -webkit-appearance: none; appearance: none; flex: none; width: 16px; height: 16px; border: 1px solid var(--bone-dim); margin: 1px 0 0; display: grid; place-items: center; cursor: pointer; }
.check input:checked { background: var(--crimson); border-color: var(--crimson); }
.check input:focus-visible { outline: 1px dashed var(--crimson-hi); outline-offset: 3px; }
.check input:checked::after { content: ''; width: 8px; height: 4px; border-left: 1.5px solid var(--bone); border-bottom: 1.5px solid var(--bone); transform: rotate(-45deg) translate(1px, -1px); }
.check a { color: var(--bone); }

.form-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding-top: 10px; border-top: 1px solid var(--line); margin-top: 6px; }
.form-status { font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--bone-dim); }
.form-status.is-error { color: var(--crimson-hi); }

.success {
  border: 1px solid var(--line); padding: 48px 32px; text-align: center;
  display: grid; justify-items: center; gap: 16px;
}
.success img { width: 120px; animation: spin 6s linear infinite; }
.success h3 { font-family: var(--display); font-weight: 400; font-size: clamp(36px, 4vw, 60px); margin: 0; line-height: 1; }
.success p { max-width: 440px; color: var(--bone-dim); text-transform: uppercase; font-size: 11px; letter-spacing: 0.04em; margin: 0; }

[hidden] { display: none !important; }

/* -------------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------------- */
@media (max-width: 1000px) {
  .roles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .roles .role:last-child { grid-column: 1 / -1; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .toc { position: static; }
  .toc ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-intro { grid-template-columns: minmax(0, 1fr); }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero__art { justify-self: start; width: min(60%, 260px); grid-row: 1; }
}

@media (max-width: 720px) {
  /* 16px stops iOS Safari zooming the page when a field is focused */
  .field input, .field select, .field textarea { font-size: 16px; }
  /* Blur over a canvas that repaints every frame is costly on phones */
  .role, .fact { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(7, 4, 10, 0.9); }
  body { font-size: 12px; }
  .nav { display: none; position: fixed; inset: 0; z-index: 60; background: rgba(7, 4, 10, 0.97); flex-direction: column; justify-content: center; gap: 28px; font-size: 16px; }
  .nav.is-open { display: flex; }
  .nav-toggle { display: inline-flex; position: relative; z-index: 70; background: none; border: 1px solid var(--bone-faint); color: var(--bone); font: inherit; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; padding: 8px 12px; cursor: pointer; }
  .hud--tr .nav-toggle { margin-left: auto; }
  .page-header .brand__meta { display: none; }
  .hud--br { display: none; }
  /* Artifacts sit in the upper half on phones; copy sits below them */
  .chapter:not(.chapter--tall) { align-items: flex-end; padding-bottom: 88px; }
  .brand img { height: 30px; }
  .roles, .facts { grid-template-columns: minmax(0, 1fr); }
  .role { min-height: 0; gap: 24px; }
  .chapter--end { justify-content: flex-start; }
  .callout { display: none; }
  form.apply { grid-template-columns: minmax(0, 1fr); }
  .tab { min-width: calc(50% - 1px); }
  .footer { grid-template-columns: minmax(0, 1fr); }
  .prose { font-size: 17px; }
  .toc ol { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }
  .grain { display: none; }
}

/* Corner HUD steps aside once the footer is on screen */
.hud--bl, .hud--br { transition: opacity 0.5s var(--ease), visibility 0.5s; }
.at-end .hud--bl, .at-end .hud--br { opacity: 0; visibility: hidden; }

/* Open mobile menu sits above every other HUD corner and freezes the page */
body.nav-open { overflow: hidden; }
body.nav-open .hud--tr, body.nav-open .page-header { z-index: 90; }

/* Layout helpers (kept out of inline styles) */
.chapter__wide { width: 100%; }
.facts__cta { margin-top: 28px; }
.callout__line--s { width: 110px; }
.callout__line--m { width: 120px; }
.callout__line--l { width: 145px; }
.accent { font-style: normal; color: var(--crimson-hi); margin-left: 0.2em; }
.apply-wrap { max-width: 1300px; margin: 0 auto; padding: 0 var(--gutter) 120px; }
.success__actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.success h3:focus { outline: none; }
/* Honeypot: off-screen for people, still present for naive bots */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Windows High Contrast / forced colours: backgrounds are overridden there,
   so mark selected chips and the active tab with system colours instead */
@media (forced-colors: active) {
  .choice input:checked + span { forced-color-adjust: none; background: Highlight; color: HighlightText; border-color: Highlight; }
  .tab[aria-selected='true'] { forced-color-adjust: none; background: Highlight; color: HighlightText; }
  .check input:checked { forced-color-adjust: none; background: Highlight; border-color: Highlight; }
}

/* Notches and rounded corners (viewport-fit=cover): never closer to the
   edge than the device's safe area */
.hud--tl, .hud--bl { left: max(var(--gutter), env(safe-area-inset-left, 0px)); }
.hud--tr, .hud--br { right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
.hud--bl, .hud--br { bottom: max(var(--gutter), env(safe-area-inset-bottom, 0px)); }
.chapter, .page-header, .footer, .hero, .layout, .apply-wrap {
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

/* Lift the focused role card above its neighbours so its focus ring isn't
   painted over (each card is its own stacking context) */
.role:focus-visible { z-index: 1; }

/* Short screens (landscape phones): no room for callouts beside the copy */
@media (max-height: 500px) {
  .callout { display: none; }
}

/* -------------------------------------------------------------------------
   Waitlist (waitlist.html) — one screen, just the form
   ------------------------------------------------------------------------- */
.wl {
  min-height: 100vh; min-height: 100svh;
  background:
    radial-gradient(90% 60% at 50% 110%, rgba(106, 42, 150, 0.5), transparent 65%),
    linear-gradient(180deg, rgba(7, 4, 10, 0.55), rgba(7, 4, 10, 0.92)),
    url('../assets/img/background.webp') center / cover,
    var(--void);
}
.wl__main {
  min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center;
  padding: calc(var(--gutter) * 2) max(var(--gutter), env(safe-area-inset-right, 0px)) max(calc(var(--gutter) * 2), env(safe-area-inset-bottom, 0px)) max(var(--gutter), env(safe-area-inset-left, 0px));
}
.wl__card { width: 100%; max-width: 620px; text-align: center; display: grid; justify-items: center; gap: 18px; }
.wl__logo { width: min(240px, 60vw); height: auto; filter: drop-shadow(0 0 28px rgba(200, 20, 30, 0.4)); }
.wl .label { margin: 8px 0 0; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; }
.wl .headline { font-size: clamp(48px, 10vw, 104px); }
.wl__intro { margin: 0; max-width: 460px; color: var(--bone-dim); font-size: 12px; text-transform: uppercase; letter-spacing: 0.03em; }
.wl__form { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; margin-top: 10px; text-align: left; }
.wl__form .btn { grid-column: 1 / -1; justify-content: center; padding-top: 16px; padding-bottom: 16px; }
.wl__form .form-status { grid-column: 1 / -1; margin: 0; text-align: center; min-height: 1.6em; }
.wl__note { margin: 0; max-width: 460px; font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--bone-dim); }
.wl__note a { color: var(--bone); }
.wl__done { display: grid; justify-items: center; gap: 14px; padding: 28px 0 8px; }
.wl__done img { width: 96px; animation: spin 6s linear infinite; }
.wl__done h2 { font-family: var(--display); font-weight: 400; font-size: clamp(36px, 6vw, 60px); line-height: 1; margin: 0; }
.wl__done h2:focus { outline: none; }
.wl__done p { margin: 0; max-width: 420px; color: var(--bone-dim); font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; }
@media (max-width: 560px) {
  .wl__form { grid-template-columns: minmax(0, 1fr); }
  .wl__form .field input { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .wl__done img { animation: none; }
}
.wl__art { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.wl__art img { position: absolute; bottom: 0; height: auto; filter: drop-shadow(0 0 40px rgba(7, 4, 10, 0.9)); }
.wl__angel { left: -2vw; width: min(34vw, 520px, calc(50vw - 330px)); opacity: 0.9; }
/* Never wider than the space beside the 620px form, so neither figure covers it */
.wl__knight { right: -4vw; width: min(36vw, 600px, calc(50vw - 330px)); opacity: 0.75; }
.wl__main { position: relative; z-index: 1; }
.wl__powered { margin: 6px 0 0; font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--bone-dim); }
.wl__powered b { color: var(--bone); font-weight: 500; }
/* Narrower screens: one figure, faded behind the top of the page */
@media (max-width: 1099px) {
  .wl__knight { display: none; }
  .wl__angel { left: auto; right: -14vw; bottom: auto; top: 0; width: min(70vw, 420px); opacity: 0.22; }
}
.footer__powered { margin-top: -8px; }
.footer__powered b { color: var(--bone); font-weight: 500; }
