/* ==========================================================================
   Sidequest Technologies — cinematic monochrome
   Fog, black glass and thin type. Ice blue is reserved for AI.
   ========================================================================== */

:root {
  --void: #030304;
  --bg: #08090a;
  --bg-2: #0d0f11;
  --surface: #121417;
  --surface-2: #181b1f;
  --line: rgba(230, 236, 240, 0.09);
  --line-2: rgba(230, 236, 240, 0.16);
  --line-3: rgba(230, 236, 240, 0.3);
  --text: #e9ecef;
  --text-2: #b6bdc4;
  --muted: #858c93;
  --dim: #565c63;
  --light: #eef1f3;
  --on-light: #0a0b0c;
  --ice: #a9cfe0;
  --ice-line: rgba(169, 207, 224, 0.34);
  --ice-wash: rgba(169, 207, 224, 0.1);
  --danger: #e8998f;

  --font: 'Inter Tight', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --frame: clamp(10px, 1.6vw, 24px);
  --radius: 26px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --clouds: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1600' height='900'%3E%3Cfilter id='c' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.0021 .0052' numOctaves='5' seed='11'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 2.1 0 0 0 -.82'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23c)'/%3E%3C/svg%3E");
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 96px;
  interpolate-size: allow-keywords;
}
@media (prefers-reduced-motion: no-preference) {
  html:not(.lenis) { scroll-behavior: smooth; }
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
[hidden] { display: none !important; }
::selection { background: var(--light); color: var(--on-light); }

h1, h2, h3 {
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 1.02;
  text-wrap: balance;
}
h3 { font-weight: 400; letter-spacing: -0.02em; line-height: 1.15; }

:focus-visible { outline: 2px solid var(--light); outline-offset: 3px; border-radius: 6px; }

.defs { position: absolute; }
.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;
}
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 200;
  padding: 10px 16px; border-radius: 999px;
  background: var(--light); color: var(--on-light);
  transform: translateY(-160%); transition: transform 0.2s;
}
.skip-link:focus { transform: none; }

.container { width: min(1320px, 100% - 2 * var(--gutter)); margin-inline: auto; }

/* Hide motion targets until the motion layer has set their start state (removed by script, or after 3s) */
.mp [data-reveal], .mp [data-split], .mp [data-hero-in], .mp [data-reveal-stagger] > * { opacity: 0; }

/* ---------- Type helpers ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 11px; font-weight: 400;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--text-2);
}
.kicker::before { content: ''; width: 22px; height: 1px; background: currentColor; opacity: 0.55; }
.kicker-ai { color: var(--ice); }
.mono-label {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
}
.tag {
  display: inline-flex; align-items: center;
  padding: 3px 9px; border-radius: 999px;
  border: 1px solid var(--line-2);
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-2); white-space: nowrap; line-height: 1.5;
}
.tag-ai { color: var(--ice); border-color: var(--ice-line); background: var(--ice-wash); }
.text-link {
  color: var(--text);
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size 0.5s var(--ease);
  padding-bottom: 2px;
}
.text-link:hover { background-size: 0 1px; background-position: 100% 100%; }

/* Split headings: each word rises out of its own mask */
.w { display: inline-block; overflow: clip; vertical-align: top; padding: 0 0.06em 0.1em 0; margin: 0 -0.06em -0.1em 0; }
.w > span { display: inline-block; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 50px; padding: 0 24px; border-radius: 999px;
  font-size: 14.5px; font-weight: 500; letter-spacing: -0.005em; white-space: nowrap;
  border: 1px solid transparent;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.45s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-light { background: var(--light); color: var(--on-light); }
.btn-light:hover { background: #fff; }
.btn-ghost { border-color: var(--line-2); color: var(--text); background: rgba(255, 255, 255, 0.02); }
.btn-ghost:hover { border-color: var(--line-3); background: rgba(255, 255, 255, 0.07); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 13.5px; }
.btn-block { width: 100%; }

.glass {
  background: rgba(16, 18, 21, 0.46);
  -webkit-backdrop-filter: blur(22px) saturate(120%);
  backdrop-filter: blur(22px) saturate(120%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 24px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 40px 90px -40px rgba(0, 0, 0, 0.85);
}

.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 60;
  padding: calc(var(--frame) + 14px) calc(var(--frame) + clamp(14px, 2vw, 24px)) 0;
  pointer-events: none;
}
.site-header::before {
  content: ''; position: absolute; inset: 0 0 -40px;
  background: linear-gradient(180deg, rgba(8, 9, 10, 0.92), rgba(8, 9, 10, 0));
  opacity: 0; transition: opacity 0.5s;
}
.site-header.is-scrolled::before { opacity: 1; }
.nav { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.nav > * { pointer-events: auto; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.brand-logo { display: block; height: 22px; width: auto; }

.nav-menu { display: flex; align-items: center; gap: 10px; }
.nav-pills {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: flex; padding: 4px; border-radius: 999px;
  background: rgba(12, 14, 16, 0.55);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--line);
}
.nav-pills a {
  position: relative; z-index: 1;
  padding: 8px 16px; border-radius: 999px;
  font-size: 13px; color: var(--text-2); white-space: nowrap;
  transition: color 0.3s;
}
.nav-pills a:hover, .nav-pills a.is-current { color: var(--text); }
.nav-indicator {
  position: absolute; top: 4px; bottom: 4px; left: 0;
  width: var(--w, 0px); transform: translateX(var(--x, 0px));
  border-radius: 999px; background: rgba(255, 255, 255, 0.1); border: 1px solid var(--line-2);
  opacity: 0; transition: transform 0.6s var(--ease), width 0.6s var(--ease), opacity 0.4s;
}
.nav-pills.has-current .nav-indicator { opacity: 1; }

.nav-toggle {
  display: none; width: 46px; height: 46px; border-radius: 50%;
  background: rgba(12, 14, 16, 0.6); border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  position: relative; z-index: 2;
}
.nav-toggle-bars, .nav-toggle-bars::before {
  position: absolute; left: 50%; top: 50%; width: 18px; height: 1.5px; background: var(--text);
  transform: translate(-50%, -4px); transition: transform 0.4s var(--ease);
}
.nav-toggle-bars::before { content: ''; transform: translate(-50%, 6px); }
.nav-toggle[aria-expanded='true'] .nav-toggle-bars { transform: translate(-50%, 0) rotate(45deg); }
.nav-toggle[aria-expanded='true'] .nav-toggle-bars::before { transform: translate(-50%, 0) rotate(-90deg); }

/* ---------- Hero ---------- */
.hero { position: relative; height: 100svh; min-height: 680px; background: var(--bg); }
.hero-sky {
  position: absolute; inset: 0; overflow: hidden;
  background: linear-gradient(180deg, #d4d9dd 0%, #aab2b8 34%, #6d767e 64%, #2b3035 100%);
}
.sky-clouds {
  position: absolute; inset: -10% -60% -10% -10%;
  background: var(--clouds) center / cover;
  opacity: 0.6; mix-blend-mode: screen;
  animation: drift 120s linear infinite alternate;
}
@keyframes drift { to { transform: translate3d(-30%, 0, 0); } }

.hero-frame {
  --open: 0;
  position: absolute; inset: 0;
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--void);
  clip-path: inset(calc(var(--frame) * (1 - var(--open))) round calc(20px * (1 - var(--open))));
}
.pane { position: relative; overflow: hidden; min-width: 0; }

.pane-left {
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  padding: calc(var(--frame) + 120px) clamp(24px, 3.4vw, 56px) calc(var(--frame) + 44px) calc(var(--frame) + clamp(24px, 3.4vw, 56px));
  background: radial-gradient(120% 85% at 15% 0%, #525b63 0%, #2a3035 36%, #121416 72%, #0b0c0d 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}
.pane-fog { position: absolute; inset: 0; opacity: 0.4; pointer-events: none; }
.pane-fog .sky-clouds { opacity: 0.55; animation-duration: 90s; }
.pane-rings {
  position: absolute; left: 50%; bottom: -34%; width: 150%;
  translate: -50% 0; perspective: 900px; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 30%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 30%);
}
.pane-rings svg, .contact-platform svg { width: 100%; height: auto; transform: rotateX(75deg); overflow: visible; }
.ring-spin { transform-box: view-box; transform-origin: 400px 400px; animation: spin 140s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero-copy { position: relative; z-index: 1; max-width: 36rem; }
.hero-copy .kicker { margin-bottom: 26px; color: #d3d9de; }
.hero h1 { font-size: clamp(2.6rem, 4.6vw, 5rem); font-weight: 300; line-height: 1; letter-spacing: -0.045em; }
.nowrap { white-space: nowrap; }
.hero h1 em { font-style: italic; font-weight: 200; color: #fff; }

.hero-foot { position: relative; z-index: 1; display: flex; align-items: center; flex-wrap: wrap; gap: 18px 32px; }
.explore { display: inline-flex; align-items: center; gap: 16px; font-size: 15px; font-weight: 500; }
.pill-arrow {
  display: grid; place-items: center; width: 62px; height: 34px; border-radius: 999px;
  background: var(--light); color: var(--on-light);
  transition: width 0.5s var(--ease), background-color 0.3s;
}
.pill-arrow svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.explore:hover .pill-arrow { width: 78px; background: #fff; }
.hero-foot .text-link { font-size: 14.5px; color: var(--text-2); }

.pane-right {
  display: grid; place-items: center;
  padding: calc(var(--frame) + 104px) calc(var(--frame) + clamp(20px, 3vw, 48px)) calc(var(--frame) + 48px) clamp(20px, 3vw, 48px);
  background: radial-gradient(90% 70% at 70% 30%, #111316 0%, #040405 70%);
}
.pane-right::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(70% 60% at 50% 50%, transparent 30%, rgba(3, 3, 4, 0.75) 100%);
}
.strands { position: absolute; inset: 0; width: 100%; height: 100%; }

.scroll-cue {
  position: absolute; left: 50%; bottom: calc(var(--frame) + 20px); z-index: 3; translate: -50% 0;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.32em; text-transform: uppercase; color: rgba(233, 236, 239, 0.6);
  pointer-events: none;
}
.scroll-cue span { width: 1px; height: 34px; background: linear-gradient(currentColor, transparent); animation: cue 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* Hero quest log */
.hero-quest { position: relative; z-index: 2; width: min(440px, 100%); padding: 20px 22px 18px; font-size: 14px; }
.qc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.qc-head .kicker { font-size: 10px; letter-spacing: 0.3em; }
.quest-map { width: 100%; height: auto; margin: 12px 0 6px; overflow: visible; }
.trail-base { fill: none; stroke: rgba(255, 255, 255, 0.16); stroke-width: 1.5; stroke-dasharray: 2 7; stroke-linecap: round; }
.trail-done { fill: none; stroke: var(--light); stroke-width: 1.8; stroke-linecap: round; }
.waypoint circle { fill: #0b0c0e; stroke: rgba(255, 255, 255, 0.32); stroke-width: 1.5; transition: fill 0.5s, stroke 0.5s; }
.waypoint.is-reached circle { fill: var(--light); stroke: var(--light); }
.waypoint.is-ai.is-reached circle { fill: var(--ice); stroke: var(--ice); }
.waypoint text { fill: var(--muted); font-family: var(--mono); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; text-anchor: middle; transition: fill 0.5s; }
.waypoint.is-reached text { fill: var(--text-2); }
.marker-halo { fill: rgba(255, 255, 255, 0.14); animation: halo 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.marker-dot { fill: #fff; }
@keyframes halo { 50% { transform: scale(1.5); opacity: 0.4; } }

.qc-title { font-size: 21px; font-weight: 400; letter-spacing: -0.025em; line-height: 1.2; }
.qc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 4px; color: var(--muted); font-size: 13px; }
.qc-objectives { margin: 14px 0 8px; }
.qc-objectives li {
  position: relative; padding: 4px 0 4px 24px; font-size: 13.5px; color: var(--dim);
  transition: color 0.5s;
}
.qc-objectives li::before {
  content: ''; position: absolute; left: 3px; top: 11px; width: 8px; height: 8px;
  border: 1px solid currentColor; transform: rotate(45deg); transition: background-color 0.5s, border-color 0.5s;
}
.qc-objectives li .tag { margin-left: 6px; vertical-align: 1px; }
.qc-objectives li.is-done { color: var(--text-2); }
.qc-objectives li.is-done::before { background: var(--light); border-color: var(--light); }
.qc-objectives li.is-ai.is-done::before { background: var(--ice); border-color: var(--ice); }
.qc-objectives li.is-active { color: var(--text); }
.qc-objectives li.is-active::before { border-color: var(--light); animation: blink 1.2s steps(2) infinite; }
.qc-log { min-height: 1.7em; font-family: var(--mono); font-size: 11.5px; color: var(--ice); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.caret { display: inline-block; width: 6px; height: 12px; margin-left: 2px; background: currentColor; vertical-align: -2px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.qc-progress { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.qc-bar { flex: 1; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.qc-bar span { display: block; height: 100%; width: calc(var(--xp, 1) * 100%); background: var(--light); transition: width 1s var(--ease); }
.qc-reward { margin-top: 12px; font-size: 13.5px; color: var(--text-2); opacity: 0.4; transition: opacity 0.6s; }
.qc-reward .mono-label { margin-right: 8px; }
.unlock-chip {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 10px;
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--ice-line); background: var(--ice-wash);
  font-size: 12.5px; color: var(--text-2);
  opacity: 0; transform: translateY(6px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.unlock-chip b { color: var(--ice); font-weight: 500; }
.chip-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ice); box-shadow: 0 0 10px var(--ice); }
.is-complete .qc-reward { opacity: 1; }
.is-complete .unlock-chip { opacity: 1; transform: none; }
.is-resetting, .is-resetting * { transition: none !important; }

/* ---------- Statement ---------- */
.statement {
  position: relative;
  padding: clamp(120px, 20vh, 240px) 0 clamp(80px, 12vh, 150px);
  background: radial-gradient(60% 50% at 50% 0%, rgba(150, 162, 172, 0.1), transparent 70%), var(--bg);
}
.statement-text {
  font-size: clamp(2.1rem, 5.4vw, 5.6rem); font-weight: 300; line-height: 1.04; letter-spacing: -0.045em;
  max-width: 17ch; text-wrap: balance;
}
.statement-text .sw { transition: none; }
.statement-foot {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px 64px; align-items: end;
  margin-top: clamp(56px, 9vh, 110px); padding-top: 28px; border-top: 1px solid var(--line);
}
.lede { max-width: 36rem; font-size: 18px; line-height: 1.6; color: var(--text-2); }
.proof { display: flex; gap: clamp(24px, 4vw, 56px); }
.proof li { font-size: 13.5px; color: var(--muted); }
.proof strong { display: block; font-size: 24px; font-weight: 300; letter-spacing: -0.03em; color: var(--text); line-height: 1.2; }

/* ---------- Ticker ---------- */
.ticker { overflow: hidden; border-block: 1px solid var(--line); padding: clamp(18px, 3vh, 30px) 0; background: var(--bg); }
.ticker-track { display: flex; width: max-content; animation: marquee 50s linear infinite; will-change: transform; }
.ticker.is-driven .ticker-track { animation: none; }
.ticker span {
  display: inline-flex; align-items: center; gap: 0.6em; padding-right: 0.6em;
  font-size: clamp(2rem, 5vw, 4.4rem); font-weight: 200; letter-spacing: -0.04em; line-height: 1.1; white-space: nowrap;
  color: var(--text-2);
}
.ticker span::after { content: ''; width: 0.14em; height: 0.14em; border: 1px solid currentColor; transform: rotate(45deg); opacity: 0.5; }
.ticker span.is-ai { color: var(--ice); font-style: italic; }
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(100px, 15vh, 190px) 0; }
.section-head { max-width: 48rem; margin-bottom: clamp(44px, 7vh, 80px); }
.section-head h2 { margin: 22px 0 22px; font-size: clamp(2.4rem, 5.2vw, 4.8rem); }
.section-head p { max-width: 36rem; font-size: 17.5px; color: var(--text-2); }
.section-head-split { max-width: none; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 32px 64px; align-items: end; }
.section-head-split h2 { margin-bottom: 0; }
.section-head-split > p { padding-bottom: 0.4em; }

/* ---------- Who we help ---------- */
.party-tabs {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px;
  padding: 5px; border: 1px solid var(--line); border-radius: 22px; background: rgba(255, 255, 255, 0.015);
}
.party-tab {
  display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 17px;
  text-align: left; color: var(--muted); transition: background-color 0.4s, color 0.4s, box-shadow 0.4s;
}
.party-tab:hover { color: var(--text-2); }
.party-tab[aria-selected='true'] { background: rgba(255, 255, 255, 0.07); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.party-name { display: block; font-size: 15.5px; font-weight: 500; letter-spacing: -0.01em; }
.party-sub { display: block; margin-top: 2px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

.party-panel {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px 64px;
  margin-top: 14px; padding: clamp(26px, 4vw, 52px);
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008));
  animation: panelIn 0.7s var(--ease);
}
@keyframes panelIn { from { opacity: 0; transform: translateY(12px); } }
.panel-main h3 { font-size: clamp(1.5rem, 2.5vw, 2.2rem); font-weight: 300; letter-spacing: -0.03em; }
.panel-main p { margin-top: 18px; color: var(--text-2); max-width: 34rem; }
.panel-main .btn { margin-top: 28px; }
.party-panel .mono-label { margin-bottom: 8px; }
.panel-meta { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding-top: 24px; border-top: 1px solid var(--line); }
.panel-meta dt { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.panel-meta dd { margin-top: 6px; font-size: 17px; font-weight: 400; letter-spacing: -0.015em; }

.check-list li { position: relative; padding: 11px 0 11px 26px; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--text-2); }
.check-list li:last-child { border-bottom: 0; }
.check-list li::before { content: ''; position: absolute; left: 3px; top: 19px; width: 7px; height: 7px; border: 1px solid var(--text-2); transform: rotate(45deg); }
.check-list .tag { margin-left: 6px; vertical-align: 1px; }

/* ---------- AI companions ---------- */
.section-ai { background: #040506; border-block: 1px solid var(--line); overflow: hidden; }
.strands-dim {
  opacity: 0.55; pointer-events: none;
  -webkit-mask-image: radial-gradient(70% 70% at 80% 40%, #000 20%, transparent 80%);
  mask-image: radial-gradient(70% 70% at 80% 40%, #000 20%, transparent 80%);
}
.ai-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.ai-copy { position: sticky; top: 120px; }
.ai-copy h2 { margin: 22px 0 22px; font-size: clamp(2.4rem, 4.6vw, 4.4rem); }
.ai-lede { font-size: 18px; color: var(--text-2); max-width: 34rem; }
.ai-traits { margin-top: 40px; }
.ai-traits li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 18px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 14.5px; }
.ai-traits .icon { color: var(--ice); width: 22px; height: 22px; margin-top: 2px; }
.ai-traits strong { display: block; margin-bottom: 2px; color: var(--text); font-weight: 500; font-size: 15.5px; }

.console { overflow: hidden; }
.console-bar { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.console-dots { display: flex; gap: 6px; }
.console-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); }
.console-title { font-family: var(--mono); font-size: 12px; color: var(--text-2); }
.console-status { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--dim); }
[data-state='running'] .live-dot { background: var(--ice); box-shadow: 0 0 10px var(--ice); animation: blink 1s steps(2) infinite; }
[data-state='waiting'] .live-dot { background: #fff; box-shadow: 0 0 10px #fff; animation: blink 1.4s steps(2) infinite; }
[data-state='done'] .live-dot { background: var(--ice); }
[data-state='waiting'] .console-status { color: var(--text); }

.scenario-tabs { display: flex; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.scenario-tabs button { flex: none; padding: 8px 14px; border-radius: 999px; font-size: 13px; color: var(--muted); border: 1px solid transparent; transition: color 0.3s, background-color 0.3s, border-color 0.3s; }
.scenario-tabs button:hover { color: var(--text-2); }
.scenario-tabs button[aria-selected='true'] { color: var(--text); background: rgba(255, 255, 255, 0.07); border-color: var(--line-2); }

.console-body { padding: 22px 20px 6px; min-height: 480px; }
.console-fallback { color: var(--text-2); font-size: 15px; }
.trace { position: relative; --trace-progress: 0; }
.trace::before, .trace::after { content: ''; position: absolute; left: 15.5px; top: 16px; bottom: 24px; width: 1px; background: var(--line-2); }
.trace::after { background: var(--ice); transform-origin: top; transform: scaleY(var(--trace-progress)); transition: transform 0.6s var(--ease); opacity: 0.7; }
.trace-step { position: relative; z-index: 1; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 14px; padding-bottom: 18px; animation: stepIn 0.55s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateY(8px); } }
.trace-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #0b0d0f; border: 1px solid var(--line-2); transition: border-color 0.4s, box-shadow 0.4s; }
.trace-icon svg { width: 15px; height: 15px; fill: none; stroke: var(--text-2); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.trace-step.is-working .trace-icon { border-color: var(--ice); box-shadow: 0 0 0 4px var(--ice-wash); }
.trace-step.is-working .trace-icon svg, .trace-step[data-kind='reason'] .trace-icon svg { stroke: var(--ice); }
.trace-head { display: flex; justify-content: space-between; gap: 12px; padding-top: 6px; }
.trace-label { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-2); }
.trace-time { font-family: var(--mono); font-size: 11px; color: var(--dim); }
.trace-text { margin-top: 6px; font-size: 14.5px; color: var(--text-2); }
.trace-text.is-quote { color: var(--text); font-style: italic; font-weight: 300; font-size: 16px; }
.trace-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.trace-chip { padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.03); font-family: var(--mono); font-size: 11.5px; color: var(--text-2); animation: stepIn 0.4s var(--ease); }
.trace-chip.is-check { color: var(--ice); border-color: var(--ice-line); background: var(--ice-wash); }
.trace-chip.is-check::before { content: '✓ '; }
.trace-code { display: block; margin-top: 8px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.4); font-family: var(--mono); font-size: 12px; color: var(--ice); white-space: pre-wrap; word-break: break-word; }
.trace-result { margin-top: 8px; font-size: 14px; color: var(--text-2); }
.trace-result b { color: var(--text); font-weight: 500; }
.trace-approve { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 8px; }
.approve-hint { font-size: 13px; color: var(--muted); }
.trace-done { color: var(--text); }
.trace-done::before { content: '✓ '; color: var(--ice); }
.caret-inline { display: inline-block; width: 6px; height: 1em; margin-left: 3px; background: var(--ice); vertical-align: -2px; animation: blink 0.9s steps(2) infinite; }
.console-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--line); }
.console-replay { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13px; color: var(--text-2); transition: color 0.3s, border-color 0.3s; }
.console-replay:hover { color: var(--text); border-color: var(--line-3); }
.console-replay svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Services / skill tree ---------- */
.hint-touch { display: none; }
@media (hover: none) { .hint-desktop { display: none; } .hint-touch { display: inline; } }

.service-grid {
  counter-reset: skill;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.service {
  counter-increment: skill;
  position: relative; display: flex; flex-direction: column;
  min-height: 280px; padding: 28px 26px 30px;
  background: var(--bg); cursor: default;
  transition: background-color 0.5s var(--ease), opacity 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.service::before {
  content: counter(skill, decimal-leading-zero); position: absolute; top: 26px; right: 26px;
  font-family: var(--mono); font-size: 11px; color: var(--dim); transition: opacity 0.3s;
}
.service .icon { width: 30px; height: 30px; color: var(--text-2); stroke-width: 1.2; }
.service-ai .icon { color: var(--ice); }
.service h3 { margin: auto 0 8px; padding-top: 48px; font-size: 21px; font-weight: 400; }
.service p { font-size: 14.5px; color: var(--muted); }
.service:hover, .service:focus-visible { background: #0f1113; }
.service:focus-visible { outline-offset: -3px; border-radius: 0; }
.skill-flag {
  position: absolute; top: 24px; right: 26px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  opacity: 0; transform: translateY(-4px); transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
  transition-delay: calc(var(--order, 0) * 70ms);
}
.skill-flag:not(:empty) { opacity: 1; transform: none; }
.is-tracing .service { opacity: 0.32; }
.is-tracing .service.is-source, .is-tracing .service.is-need, .is-tracing .service.is-unlock { opacity: 1; }
.service.is-source { background: #14171a; box-shadow: inset 0 0 0 1px var(--line-3); }
.service.is-need { background: rgba(255, 255, 255, 0.03); }
.service.is-need .skill-flag { color: var(--text-2); }
.service.is-unlock { box-shadow: inset 0 0 0 1px var(--ice-line); background: rgba(169, 207, 224, 0.035); }
.service.is-unlock .skill-flag { color: var(--ice); }
.service.is-need::before, .service.is-unlock::before { opacity: 0; }

/* ---------- Process ---------- */
.section-process { padding-bottom: clamp(80px, 12vh, 150px); }
.questline-viewport { overflow: hidden; }
.questline {
  --num-size: clamp(4.5rem, 7.5vw, 7.5rem);
  display: grid; grid-template-columns: repeat(4, 1fr);
  width: min(1320px, 100% - 2 * var(--gutter)); margin-inline: auto;
}
.step { position: relative; padding-right: 36px; --fill: 0; }
.step::before, .step::after {
  content: ''; position: absolute; left: 0; right: 0; height: 1px;
  top: calc(var(--num-size) * 0.9 + 34px);
  background: var(--line-2);
}
.step::after { background: var(--light); transform-origin: left; transform: scaleX(var(--fill)); }
.step:last-child::before, .step:last-child::after { right: auto; width: 14px; }
.step-num {
  display: block; height: calc(var(--num-size) * 0.9);
  font-size: var(--num-size); font-weight: 200; line-height: 0.9; letter-spacing: -0.05em;
  color: transparent; -webkit-text-stroke: 1px var(--line-3);
  transition: -webkit-text-stroke-color 0.6s, color 0.6s;
}
.step-marker {
  position: relative; z-index: 1; display: block; width: 14px; height: 14px; margin: 28px 0 34px;
  border: 1px solid var(--line-3); background: var(--bg); transform: rotate(45deg);
  transition: background-color 0.5s, border-color 0.5s, box-shadow 0.5s;
}
.step .mono-label { margin-bottom: 10px; }
.step h3 { font-size: clamp(1.6rem, 2.2vw, 2rem); font-weight: 300; letter-spacing: -0.03em; }
.step p:last-child { margin-top: 12px; max-width: 30ch; font-size: 15px; color: var(--muted); }
.step.is-lit .step-num { -webkit-text-stroke-color: rgba(233, 236, 239, 0.85); }
.step.is-lit .step-marker { background: var(--light); border-color: var(--light); box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.07); }
.step.is-lit .step-marker-goal { background: var(--ice); border-color: var(--ice); box-shadow: 0 0 18px rgba(169, 207, 224, 0.5); }

/* Pinned horizontal travel (desktop, motion allowed) */
.is-horizontal .questline-viewport { padding-top: clamp(24px, 4vh, 48px); }
.is-horizontal .questline {
  display: flex; width: max-content; margin: 0;
  padding: 0 var(--gutter) 0 max(var(--gutter), (100vw - 1320px) / 2);
}
.is-horizontal .step { width: clamp(360px, 34vw, 540px); flex: none; padding-right: 64px; }
.is-horizontal .step p:last-child { font-size: 16px; }
.is-horizontal .process-pin { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 100px 0 40px; }
.is-horizontal { padding-top: 0; }

.house-rules {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 28px 48px;
  margin-top: clamp(64px, 10vh, 120px); padding-top: 34px; border-top: 1px solid var(--line);
}
.house-rules ul { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 56px; }
.house-rules li { font-size: 15.5px; color: var(--muted); }
.house-rules strong { display: block; margin-bottom: 4px; font-size: 18px; font-weight: 400; letter-spacing: -0.015em; color: var(--text); }

/* ---------- Quest board (stacking cards) ---------- */
.quest-board { display: flex; flex-direction: column; gap: 28px; }
.board-card {
  position: sticky; top: 110px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 32px 56px;
  min-height: min(64vh, 560px); padding: clamp(28px, 4vw, 60px);
  border: 1px solid var(--line-2); border-radius: 30px; overflow: hidden;
  background: radial-gradient(120% 120% at 0% 0%, #2c3237 0%, #16191c 45%, #0c0d0f 100%);
  box-shadow: 0 -30px 70px -30px rgba(0, 0, 0, 0.9);
  transform-origin: 50% 0;
  --dim: 0;
}
.board-card:nth-child(2) { top: 130px; background: radial-gradient(120% 120% at 100% 0%, #353c42 0%, #181b1e 48%, #0c0d0f 100%); }
.board-card:nth-child(3) { top: 150px; background: radial-gradient(130% 110% at 50% 0%, #3b434a 0%, #1a1d21 50%, #0b0c0d 100%); }
.board-card:nth-child(4) { top: 170px; background: radial-gradient(120% 120% at 0% 100%, #333a40 0%, #171a1d 46%, #0c0d0f 100%); }
.board-card:nth-child(5) { top: 190px; background: radial-gradient(120% 120% at 100% 100%, #3a4248 0%, #191c20 50%, #0b0c0d 100%); }
.board-card::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: #000; opacity: var(--dim, 0); pointer-events: none; }
.board-side { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.board-num { font-size: clamp(5rem, 11vw, 10rem); font-weight: 200; line-height: 0.82; letter-spacing: -0.06em; color: transparent; -webkit-text-stroke: 1px rgba(233, 236, 239, 0.4); }
.board-top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.board-body { align-self: end; }
.board-body h3 { font-size: clamp(2rem, 4vw, 3.6rem); font-weight: 300; letter-spacing: -0.04em; line-height: 1.02; }
.board-body > p:not(.loot) { margin-top: 20px; max-width: 36rem; font-size: 17px; color: var(--text-2); }
.loot { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line-2); color: var(--text); }
.loot .mono-label { display: block; margin-bottom: 6px; }

/* ---------- Paths ---------- */
.path-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.path {
  position: relative; display: flex; flex-direction: column;
  padding: clamp(26px, 3vw, 38px); border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.015);
  transition: border-color 0.5s, transform 0.6s var(--ease);
}
.path:hover { border-color: var(--line-2); transform: translateY(-4px); }
.path h3 { margin: 16px 0 10px; font-size: clamp(1.8rem, 2.6vw, 2.3rem); font-weight: 300; letter-spacing: -0.035em; }
.path > p:not(.mono-label) { color: var(--text-2); }
.path .check-list { margin: 24px 0 32px; }
.path .btn { margin-top: auto; align-self: flex-start; }
.path-featured { background: linear-gradient(180deg, #1c2024, #0f1113); border-color: var(--line-3); }
.path-featured::before {
  content: ''; position: absolute; inset: -1px -1px auto; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
}

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr); gap: 40px 80px; align-items: start; }
.faq-grid .section-head { position: sticky; top: 120px; margin-bottom: 0; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary {
  position: relative; padding: 26px 56px 26px 0; cursor: pointer; list-style: none;
  font-size: clamp(17px, 1.6vw, 20px); font-weight: 400; letter-spacing: -0.015em;
  transition: color 0.3s;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::before, .faq-list summary::after {
  content: ''; position: absolute; right: 8px; top: 50%; width: 16px; height: 1px; background: var(--text-2);
  transition: transform 0.5s var(--ease);
}
.faq-list summary::after { transform: rotate(90deg); }
.faq-list details[open] summary::after { transform: rotate(0deg); }
.faq-list summary:hover { color: #fff; }
.faq-list details p { padding: 0 56px 28px 0; color: var(--muted); font-size: 16px; }
.faq-list details::details-content {
  block-size: 0; overflow: hidden;
  transition: block-size 0.55s var(--ease), content-visibility 0.55s allow-discrete;
}
.faq-list details[open]::details-content { block-size: auto; }

/* ---------- Contact: back out into the fog ---------- */
.contact { overflow: hidden; padding-bottom: 0; isolation: isolate; }
.contact-sky {
  position: absolute; inset: auto 0 0; height: min(1000px, 100%); z-index: -2; overflow: hidden;
  background: linear-gradient(180deg, rgba(8, 9, 10, 0) 0%, #1d2125 34%, #626b73 58%, #b7bec3 67%, #7a838a 68.2%, #262a2e 78%, #0b0c0d 100%);
}
.contact-sky .sky-clouds {
  opacity: 0.35;
  -webkit-mask-image: linear-gradient(180deg, transparent 20%, #000 50%, #000 64%, transparent 70%);
  mask-image: linear-gradient(180deg, transparent 20%, #000 50%, #000 64%, transparent 70%);
}
.contact-platform {
  position: absolute; left: 50%; bottom: -330px; z-index: -1; width: min(1500px, 150vw);
  translate: -50% 0; perspective: 1100px; pointer-events: none;
}
.contact-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px clamp(40px, 6vw, 96px); align-items: start;
  padding-bottom: clamp(240px, 36vh, 380px);
}
.contact-copy h2 { margin: 22px 0 22px; font-size: clamp(2.4rem, 5vw, 4.6rem); }
.contact-copy > p:not(.kicker) { color: var(--text-2); font-size: 17.5px; max-width: 32rem; }
.next-steps { margin-top: 36px; }
.next-steps li { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 15.5px; color: var(--text-2); }
.next-steps span { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%; border: 1px solid var(--line-2); font-family: var(--mono); font-size: 12px; color: var(--text); }
.contact-copy .contact-alt { margin-top: 28px; font-size: 15px; color: var(--muted); }
.contact-alt a { color: var(--text); border-bottom: 1px solid var(--line-3); }
.contact-alt a:hover { border-color: var(--text); }

.form-card { padding: clamp(24px, 3vw, 38px); border-radius: var(--radius); background: rgba(10, 12, 14, 0.62); }
.field { margin: 0 0 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label, .field legend { display: block; margin-bottom: 8px; font-size: 13px; color: var(--text-2); }
.optional { color: var(--dim); }
fieldset.field { border: 0; padding: 0; min-width: 0; }
.field input, .field textarea {
  width: 100%; padding: 13px 16px; border-radius: 14px;
  background: rgba(0, 0, 0, 0.32); border: 1px solid var(--line-2); font-size: 15.5px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.field textarea { resize: vertical; min-height: 118px; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: var(--dim); }
.field input:focus, .field textarea:focus { outline: none; border-color: rgba(255, 255, 255, 0.55); box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.06); }
.field-error { display: none; margin-top: 6px; font-size: 13px; color: var(--danger); }
.is-invalid .field-error { display: block; }
.is-invalid input, .is-invalid textarea { border-color: var(--danger); }
.segmented { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(0, 0, 0, 0.3); }
.segmented label { position: relative; margin: 0; }
.segmented input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.segmented span { display: block; padding: 9px 6px; border-radius: 999px; text-align: center; font-size: 14px; color: var(--muted); transition: background-color 0.35s, color 0.35s; }
.segmented input:checked + span { background: var(--light); color: var(--on-light); }
.segmented input:focus-visible + span { outline: 2px solid var(--light); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0 0 14px; font-size: 14px; color: var(--danger); }
.form-status a { color: inherit; text-decoration: underline; }
.quest-form [type="submit"][disabled] { opacity: .6; cursor: progress; }
.form-success { padding: 28px 8px; text-align: center; }
.form-success:focus { outline: none; }
.success-mark { width: 56px; height: 56px; margin: 0 auto 18px; fill: none; stroke: var(--light); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.form-success h3 { font-size: 28px; font-weight: 300; }
.form-success p { margin: 12px auto 24px; max-width: 26rem; color: var(--text-2); }

/* ---------- Footer ---------- */
.site-footer { position: relative; padding: 80px 0 28px; background: #0b0c0d; border-top: 1px solid var(--line); overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer-brand p { margin-top: 16px; max-width: 26rem; color: var(--muted); font-size: 15px; }
.footer-col .mono-label { margin-bottom: 14px; }
.footer-col a { display: block; width: fit-content; padding: 5px 0; color: var(--text-2); font-size: 15px; transition: color 0.3s; }
.footer-col a:hover { color: var(--text); }
.wordmark {
  margin: clamp(40px, 8vh, 90px) 0 -0.12em; text-align: center; white-space: nowrap;
  font-size: 23.5vw; font-weight: 200; letter-spacing: -0.07em; line-height: 0.9;
  background: linear-gradient(180deg, rgba(233, 236, 239, 0.26), rgba(233, 236, 239, 0) 82%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  user-select: none;
}
.footer-bottom { position: relative; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

/* ---------- Atmosphere ---------- */
.grain {
  position: fixed; inset: -120px; z-index: 90; pointer-events: none;
  background: var(--noise); opacity: 0.075;
  animation: grain 1s steps(4) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 25% { transform: translate(-40px, 30px); }
  50% { transform: translate(30px, -50px); } 75% { transform: translate(-20px, -20px); }
}
.cursor {
  position: fixed; top: 0; left: 0; z-index: 100; width: 38px; height: 38px; margin: -19px 0 0 -19px;
  border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.55); pointer-events: none;
  mix-blend-mode: difference; opacity: 0;
  transition: width 0.4s var(--ease), height 0.4s var(--ease), margin 0.4s var(--ease), background-color 0.4s, opacity 0.3s;
}
.cursor-on .cursor { opacity: 1; }
.cursor.is-hover { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: #fff; border-color: #fff; }
.cursor.is-down { width: 30px; height: 30px; margin: -15px 0 0 -15px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .service { min-height: 230px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav-menu {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 36px;
    padding: 100px var(--gutter) 48px;
    background: rgba(6, 7, 8, 0.94);
    -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    opacity: 0; visibility: hidden; transition: opacity 0.45s var(--ease), visibility 0s 0.45s;
  }
  .nav-menu.is-open { opacity: 1; visibility: visible; transition: opacity 0.45s var(--ease); }
  .nav-pills { position: static; transform: none; flex-direction: column; padding: 0; background: none; border: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav-pills a { padding: 6px 0; font-size: clamp(2rem, 8vw, 2.8rem); font-weight: 300; letter-spacing: -0.035em; color: var(--text); }
  .nav-indicator { display: none; }
  .nav-cta { height: 50px; padding: 0 26px; font-size: 15px; }

  .hero { height: auto; min-height: 0; padding: var(--frame); background: none; }
  .hero-frame { position: relative; grid-template-columns: 1fr; clip-path: none; border-radius: 20px; overflow: hidden; }
  .pane-left { min-height: min(86svh, 760px); padding: 120px 24px 36px; border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
  .pane-rings { width: 220%; bottom: -30%; }
  .pane-right { padding: 48px 16px; }
  .scroll-cue { display: none; }

  .statement-foot { grid-template-columns: 1fr; }
  .section-head-split { grid-template-columns: 1fr; gap: 0; }
  .section-head-split > p { margin-top: 22px; }

  .party-panel { grid-template-columns: 1fr; }
  .ai-grid { grid-template-columns: 1fr; }
  .ai-copy { position: static; }
  .faq-grid { grid-template-columns: 1fr; }
  .faq-grid .section-head { position: static; }
  .contact-grid { grid-template-columns: 1fr; }

  .questline { grid-template-columns: 1fr; --num-size: 3.4rem; }
  .step { padding: 0 0 44px 44px; }
  .step::before, .step::after { top: 6px; bottom: -6px; left: 6.5px; right: auto; width: 1px; height: auto; }
  .step::after { transform-origin: top; transform: scaleY(var(--fill)); }
  .step:last-child { padding-bottom: 0; }
  .step:last-child::before, .step:last-child::after { display: none; }
  .step-num { position: absolute; right: 0; top: -6px; height: auto; }
  .step-marker { position: absolute; left: 0; top: 0; margin: 0; }
  .step p:last-child { max-width: 34rem; }

  .house-rules { grid-template-columns: 1fr; }
  .path-grid { grid-template-columns: 1fr; }
  .board-card { grid-template-columns: 1fr; min-height: 0; top: 84px; }
  .board-card:nth-child(2) { top: 96px; }
  .board-card:nth-child(3) { top: 108px; }
  .board-card:nth-child(4) { top: 120px; }
  .board-card:nth-child(5) { top: 132px; }
  .board-num { font-size: 4.5rem; }
}

@media (max-width: 720px) {
  .party-tabs { grid-template-columns: 1fr; border-radius: 20px; }
  .party-tab { padding: 12px 14px; }
  .panel-meta { grid-template-columns: 1fr; gap: 14px; }
  .service-grid { grid-template-columns: 1fr; }
  .service { min-height: 0; }
  .service h3 { padding-top: 28px; }
  .house-rules ul { grid-template-columns: 1fr; }
  .proof { flex-wrap: wrap; gap: 20px 32px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .console-body { min-height: 540px; padding-inline: 14px; }
  .contact-platform { width: 240vw; bottom: -30vw; }
}

@media (hover: none), (pointer: coarse) {
  .cursor { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .sky-clouds, .ring-spin, .grain, .ticker-track { animation: none !important; }
  .cursor { display: none; }
}
