/* ==========================================================================
   twolfjaxx.com — The Den, after dusk
   --------------------------------------------------------------------------
   1. Fonts and registered properties
   2. Tokens: the three rooms (den, Jaxx, Knox)
   3. Base, type, and shared pieces
   4. Front door (age gate)
   5. Atmosphere: ambient glow, weather canvases, lantern, grain
   6. Masthead
   7. Timberline hero
   8. Rooms: picker, chapters, photo shelf, after-dark door
   9. Story dial
   10. Link doors
   11. Game nights
   12. Convention trail
   13. Artist circle, manifesto, footer
   14. Art viewer
   15. Motion preferences
   ========================================================================== */

/* 1. Fonts ---------------------------------------------------------------- */
@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-var-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/instrument-sans-var.woff2") format("woff2");
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
}

/* The lettering itself changes with the room, so its axes are animatable. */
@property --soft { syntax: "<number>"; inherits: true; initial-value: 50; }
@property --wonk { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --dw { syntax: "<number>"; inherits: true; initial-value: 620; }
@property --pos { syntax: "<number>"; inherits: true; initial-value: 0; }

/* 2. Tokens --------------------------------------------------------------- */
:root {
  /* constant across rooms: the two wolves and the paper-white of firelight */
  --jaxx: #ee3a5f;
  --jaxx-soft: #ff9db0;
  --jaxx-deep: #7c1230;
  --knox: #f27a2c;
  --knox-soft: #ffc27a;
  --knox-deep: #6e2b0c;
  --ink: #f4e7d7;
  --ink-2: #cdb6ab;
  --ink-3: #94798a;
  --wood: #2c1a22;
  --wood-2: #190e14;

  /* the shared den */
  --bg: #170c18;
  --bg-2: #211020;
  --surface: #2a1627;
  --line: rgb(244 231 215 / 0.14);
  --accent: #f6b566;
  --accent-ink: #1d0f12;
  --glow: 246 181 102;
  --shadow: rgb(5 2 6 / 0.6);
  --sky-top: #0d0919;
  --sky-mid: #2a1634;
  --sky-low: #7b3040;
  --sky-glow: #c6603f;
  --moon: #ffe2bd;
  --moon-rgb: 255 214 170;
  --fog: 214 150 150;
  --soft: 50;
  --wonk: 0;
  --dw: 620;
  --display-style: normal;
  --display-track: -0.022em;
  --display-word: 0em;
  --bar: linear-gradient(90deg, var(--jaxx), var(--accent) 60%, var(--knox));
  /* shape, case and tempo also belong to the room */
  --r-btn: 10px;
  --r-card: 18px;
  --r-frame: 5px;
  --r-door: 8px;
  --r-vault: 90px 90px 4px 4px;
  --btn-clip: none;
  --caps: none;
  --caps-track: 0.01em;
  --head-case: none;
  --head-scale: 1;
  --t: 1;
  --grain: 0.085;
  --body-width: 100%;

  --ridge-1: color-mix(in oklab, var(--sky-mid) 62%, var(--sky-low));
  --ridge-2: color-mix(in oklab, var(--bg) 42%, var(--sky-mid));
  --ridge-3: color-mix(in oklab, var(--bg) 74%, var(--sky-mid));
  --ridge-4: var(--bg);
  --ridge-5: color-mix(in oklab, var(--bg) 62%, #000);

  --display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --text: "Instrument Sans", "Segoe UI", system-ui, sans-serif;

  --step--1: clamp(0.82rem, 0.79rem + 0.15vw, 0.92rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-1: clamp(1.22rem, 1.12rem + 0.5vw, 1.6rem);
  --step-2: clamp(1.6rem, 1.3rem + 1.4vw, 2.6rem);
  --step-3: clamp(2.3rem, 1.6rem + 3.2vw, 4.6rem);
  --step-4: clamp(2.9rem, 1.5rem + 6.6vw, 7.8rem);

  --gutter: clamp(20px, 5vw, 76px);
  --max: 1360px;
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-swing: cubic-bezier(0.3, 1.35, 0.45, 1);
  color-scheme: dark;
}

:root[data-room="jaxx"] {
  --bg: #1e0812;
  --bg-2: #2c0d1b;
  --surface: #391224;
  --accent: #ff6f8c;
  --accent-ink: #26060f;
  --glow: 255 111 140;
  --sky-top: #170613;
  --sky-mid: #4b1132;
  --sky-low: #b63a5c;
  --sky-glow: #ff8d93;
  --moon: #ffd9dc;
  --moon-rgb: 255 170 185;
  --fog: 255 150 170;
  --soft: 100;
  --wonk: 1;
  --dw: 440;
  --display-style: italic;
  --display-track: -0.012em;
  --ink: #fff1ee;
  --ink-2: #e6c0c3;
  --ink-3: #ad7f90;
  --line: rgb(255 200 210 / 0.2);
  --shadow: rgb(44 4 22 / 0.6);
  --wood: #4a2034;
  --wood-2: #270d19;
  --bar: linear-gradient(90deg, #b3224a, var(--jaxx) 45%, var(--jaxx-soft));
  --r-btn: 999px;
  --r-card: 36px;
  --r-frame: 22px;
  --r-door: 999px 999px 14px 14px;
  --r-vault: 999px 999px 6px 6px;
  --t: 1.4;
  --grain: 0.05;
}

:root[data-room="knox"] {
  --bg: #120a07;
  --bg-2: #1e1109;
  --surface: #2b180d;
  --accent: #ff8a3a;
  --accent-ink: #1c0c03;
  --glow: 255 138 58;
  --sky-top: #080505;
  --sky-mid: #2c150a;
  --sky-low: #a4461a;
  --sky-glow: #ffab4a;
  --moon: #ffcf94;
  --moon-rgb: 255 160 80;
  --fog: 230 130 70;
  --soft: 0;
  --wonk: 0;
  --dw: 860;
  --display-style: normal;
  --display-track: -0.022em;
  --display-word: 0.14em;
  --ink: #f8e9d3;
  --ink-2: #cbb294;
  --ink-3: #8d7459;
  --line: rgb(255 170 100 / 0.2);
  --shadow: rgb(0 0 0 / 0.82);
  --wood: #2b1d15;
  --wood-2: #110a07;
  --bar: linear-gradient(90deg, #a8400f, var(--knox) 55%, var(--knox-soft));
  --r-btn: 0px;
  --r-card: 0px;
  --r-frame: 0px;
  --r-door: 0px;
  --r-vault: 0px;
  --btn-clip: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  --caps: uppercase;
  --caps-track: 0.09em;
  --head-case: uppercase;
  --head-scale: 0.8;
  --t: 0.68;
  --grain: 0.14;
  --body-width: 92%;
}

/* 3. Base ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--text);
  font-size: var(--step-0);
  line-height: 1.6;
  font-stretch: var(--body-width);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
body.is-locked { overflow: hidden; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: var(--dw); font-style: var(--display-style); letter-spacing: var(--display-track); word-spacing: var(--display-word); font-variation-settings: "SOFT" var(--soft), "WONK" var(--wonk); font-optical-sizing: auto; line-height: 0.98; text-wrap: balance; text-transform: var(--head-case); }
h2 { font-size: calc(var(--step-4) * var(--head-scale)); line-height: 0.94; }
h3 { font-size: calc(var(--step-3) * var(--head-scale)); }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.defs { position: absolute; }

.skip { position: fixed; left: 16px; top: -80px; z-index: 120; padding: 12px 18px; background: var(--accent); color: var(--accent-ink); border-radius: 8px; font-weight: 600; text-decoration: none; transition: top 0.2s; }
.skip:focus { top: 16px; }

.shell { position: relative; }
main, .foot { position: relative; z-index: 2; }
main > section { padding: clamp(96px, 13vw, 190px) var(--gutter); max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; position: relative; }

/* Headlines catch the lantern: their shadow falls away from the light. */
[data-cast] { text-shadow: var(--cast-x, 0px) var(--cast-y, 10px) var(--cast-b, 26px) var(--shadow); }

.kicker { margin: 0 0 1.1rem; font-size: var(--step--1); font-weight: 600; font-stretch: 84%; letter-spacing: 0.03em; color: var(--accent); display: flex; align-items: center; gap: 0.7em; }
.kicker::before { content: ""; width: 1.9em; height: 1px; background: currentColor; opacity: 0.7; }
.kicker--warn::before { width: 0.6em; height: 0.6em; border-radius: 50%; box-shadow: 0 0 0 4px rgb(var(--glow) / 0.2); }

.head { max-width: 62rem; margin-bottom: clamp(40px, 6vw, 84px); }
.head__lede { max-width: 34rem; margin-top: 1.6rem; color: var(--ink-2); font-size: var(--step-1); line-height: 1.45; }
.head--row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: end; max-width: none; }
.head--row .head__lede { margin-top: 0; font-size: var(--step-0); line-height: 1.6; }

.btn { --tx: 0px; --ty: 0px; display: inline-flex; align-items: center; justify-content: center; gap: 0.6em; min-height: 52px; padding: 0.85em 1.5em; border-radius: var(--r-btn); clip-path: var(--btn-clip); text-transform: var(--caps); font-weight: 600; font-stretch: 92%; letter-spacing: var(--caps-track); text-decoration: none; transform: translate3d(var(--tx), var(--ty), 0); transition: transform 0.35s var(--ease-out), background-color 0.25s, color 0.25s, box-shadow 0.25s, border-color 0.25s; }
.btn--solid { background: var(--accent); color: var(--accent-ink); box-shadow: 0 2px 0 rgb(0 0 0 / 0.35), 0 14px 40px -12px rgb(var(--glow) / 0.75), inset 0 1px 0 rgb(255 255 255 / 0.45); }
.btn--solid:hover { box-shadow: 0 2px 0 rgb(0 0 0 / 0.35), 0 18px 60px -8px rgb(var(--glow) / 0.95), inset 0 1px 0 rgb(255 255 255 / 0.6); }
.btn--line { border: 1px solid rgb(244 231 215 / 0.34); background: rgb(244 231 215 / 0.03); }
.btn--line:hover { border-color: var(--accent); color: var(--accent); background: rgb(var(--glow) / 0.08); }
.btn--bare { padding-inline: 0.4em; text-decoration: underline; text-decoration-color: rgb(244 231 215 / 0.35); text-underline-offset: 0.35em; }
.btn--bare:hover { color: var(--accent); text-decoration-color: currentColor; }
.btn:active { transform: translate3d(var(--tx), calc(var(--ty) + 2px), 0); }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

.link { display: inline-block; font-weight: 600; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 0.2em; color: var(--accent); transition: background-size 0.35s var(--ease-out), color 0.25s; }
.link:hover { background-size: 0% 1px; background-position: 100% 100%; color: var(--ink); }
.link[target="_blank"]::after { content: "\2197"; display: inline-block; margin-left: 0.35em; font-size: 0.9em; transition: transform 0.3s var(--ease-out); }
.link[target="_blank"]:hover::after { transform: translate(2px, -2px); }

.round { width: 48px; height: 48px; display: inline-grid; place-items: center; border-radius: 50%; border: 1px solid rgb(244 231 215 / 0.28); transition: border-color 0.2s, background-color 0.2s, transform 0.3s var(--ease-out), color 0.2s; }
.round svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.round:hover { border-color: var(--accent); color: var(--accent); background: rgb(var(--glow) / 0.1); transform: scale(1.06); }
.round[disabled] { opacity: 0.35; cursor: default; transform: none; }

/* Words drift in once, when their headline first arrives. */
.motion [data-split] .w { display: inline-block; opacity: 0; transform: translate3d(0, 0.38em, 0) rotate(2.5deg); filter: blur(10px); transition: opacity 0.9s var(--ease-out), transform 1.1s var(--ease-out), filter 0.9s var(--ease-out); transition-delay: calc(var(--i, 0) * 60ms); }
.motion [data-split].is-in .w { opacity: 1; transform: none; filter: none; }
.motion [data-reveal] { opacity: 0; transform: translate3d(0, 22px, 0); transition: opacity 0.9s var(--ease-out) 0.12s, transform 1.1s var(--ease-out) 0.12s; }
.motion [data-reveal].is-in { opacity: 1; transform: none; }

/* 4. Front door ----------------------------------------------------------- */
.gate { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: var(--gutter); text-align: center; overflow: hidden; }
.gate[hidden] { display: none; }
.gate__leaf { position: absolute; top: 0; bottom: 0; width: 50.5%; background: linear-gradient(180deg, #1f1019, #140a13 60%, #0e070d); transition: transform 1.25s cubic-bezier(0.7, 0, 0.2, 1); }
.gate__leaf--left { left: 0; box-shadow: inset -1px 0 0 rgb(244 231 215 / 0.07); }
.gate__leaf--right { right: 0; box-shadow: inset 1px 0 0 rgb(244 231 215 / 0.07); }
.gate__leaf::after { content: ""; position: absolute; inset: 8vh 4vw; border: 1px solid rgb(244 231 215 / 0.06); border-radius: 4px; }
.gate__seam { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: linear-gradient(180deg, transparent, rgb(var(--glow) / 0.9) 30%, #fff3dc 50%, rgb(var(--glow) / 0.9) 70%, transparent); box-shadow: 0 0 34px 8px rgb(var(--glow) / 0.42), 0 0 160px 60px rgb(var(--glow) / 0.16); animation: seam 4.5s ease-in-out infinite; transition: opacity 0.5s 0.5s, transform 1.1s cubic-bezier(0.7, 0, 0.2, 1); }
@keyframes seam { 50% { opacity: 0.62; } }
.gate__body { position: relative; max-width: 34rem; transition: opacity 0.45s, transform 0.6s var(--ease-out); }
.gate__plate { display: inline-block; margin: 0 0 2rem; padding: 0.45em 1.1em; border: 1px solid rgb(var(--glow) / 0.5); border-radius: 4px; color: var(--accent); font-size: var(--step--1); font-weight: 600; font-stretch: 84%; letter-spacing: 0.04em; background: rgb(23 12 24 / 0.7); }
.gate__title { font-size: clamp(3.4rem, 13vw, 9rem); line-height: 0.9; font-weight: 500; font-style: italic; font-variation-settings: "SOFT" 100, "WONK" 1; margin-bottom: 1.6rem; }
.gate__copy { color: var(--ink-2); font-size: var(--step-1); line-height: 1.45; text-shadow: 0 2px 18px #140a13, 0 0 4px #140a13; }
.gate__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin: 2.2rem 0 1.2rem; }
.gate__actions[hidden] { display: none; }
.gate__actions .btn--line { background: rgb(23 12 24 / 0.75); }
.gate__note { color: var(--ink-3); font-size: var(--step--1); margin: 0; text-shadow: 0 2px 12px #140a13; }
.gate.is-opening { pointer-events: none; }
.gate.is-opening .gate__leaf--left { transform: translate3d(-101%, 0, 0); }
.gate.is-opening .gate__leaf--right { transform: translate3d(101%, 0, 0); }
.gate.is-opening .gate__seam { transform: scaleX(900); opacity: 0; }
.gate.is-opening .gate__body { opacity: 0; transform: scale(1.08); }

/* 5. Atmosphere ----------------------------------------------------------- */
.ambient { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; opacity: var(--ambient, 1); }
.ambient__glow { position: absolute; width: 90vmax; height: 90vmax; border-radius: 50%; opacity: 0.5; transition: opacity 1.4s, transform 2.4s var(--ease-out); will-change: transform; }
.ambient__glow--a { left: -42vmax; top: -18vmax; background: radial-gradient(closest-side, rgb(238 58 95 / 0.34), transparent); }
.ambient__glow--b { right: -44vmax; bottom: -30vmax; background: radial-gradient(closest-side, rgb(242 122 44 / 0.32), transparent); }
:root[data-room="jaxx"] .ambient__glow--a { opacity: 0.85; transform: translate3d(12vmax, 6vmax, 0) scale(1.15); }
:root[data-room="jaxx"] .ambient__glow--b { opacity: 0.12; }
:root[data-room="knox"] .ambient__glow--a { opacity: 0.1; }
:root[data-room="knox"] .ambient__glow--b { opacity: 0.9; transform: translate3d(-14vmax, -10vmax, 0) scale(1.15); }
/* In the shared den, the light leans toward whichever wolf you are standing near. */
:root[data-room="den"] body[data-near="jaxx"] .ambient__glow--a { opacity: 0.9; transform: translate3d(14vmax, 10vmax, 0) scale(1.1); }
:root[data-room="den"] body[data-near="jaxx"] .ambient__glow--b { opacity: 0.18; }
:root[data-room="den"] body[data-near="knox"] .ambient__glow--b { opacity: 0.95; transform: translate3d(-14vmax, -12vmax, 0) scale(1.1); }
:root[data-room="den"] body[data-near="knox"] .ambient__glow--a { opacity: 0.16; }

.weather { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.weather--back { z-index: 1; }
.weather--front { z-index: 60; }
.lantern { position: fixed; left: 0; top: 0; z-index: 70; width: 820px; height: 820px; margin: -410px 0 0 -410px; border-radius: 50%; pointer-events: none; background: radial-gradient(closest-side, rgb(var(--glow) / 0.17), rgb(var(--glow) / 0.06) 42%, transparent 72%); opacity: 0; transition: opacity 0.8s; will-change: transform; }
.has-lantern .lantern { opacity: 1; }
.grain { position: fixed; inset: 0; z-index: 80; pointer-events: none; opacity: var(--grain); background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }

/* 6. Masthead ------------------------------------------------------------- */
.masthead { position: fixed; left: 0; right: 0; top: 0; z-index: 50; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; padding: 14px var(--gutter); transition: transform 0.5s var(--ease-out), background-color 0.4s, backdrop-filter 0.4s; }
.masthead::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, color-mix(in oklab, var(--bg) 94%, transparent), color-mix(in oklab, var(--bg) 78%, transparent)); border-bottom: 1px solid var(--line); opacity: 0; transition: opacity 0.4s; }
.masthead.is-scrolled::before { opacity: 1; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.masthead.is-tucked { transform: translate3d(0, -110%, 0); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__paw { width: 26px; height: 26px; fill: var(--accent); filter: drop-shadow(0 0 10px rgb(var(--glow) / 0.7)); transition: transform 0.5s var(--ease-swing); }
.brand:hover .brand__paw { transform: rotate(-14deg) scale(1.12); }
.brand__name { font-family: var(--display); font-size: 1.32rem; font-weight: 640; font-style: italic; font-variation-settings: "SOFT" 100, "WONK" 1; letter-spacing: -0.01em; }
.nav { display: flex; justify-content: center; gap: clamp(14px, 2.2vw, 34px); font-size: 0.95rem; font-weight: 500; }
.nav a { position: relative; padding: 8px 2px; text-decoration: none; color: var(--ink-2); transition: color 0.2s; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease-out); }
.nav a:hover, .nav a[aria-current] { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current]::after { transform: scaleX(1); }
.nav .nav__contact { color: var(--accent); }
.masthead__tools { display: flex; align-items: center; gap: 14px; }
.room-dial { display: flex; gap: 4px; padding: 5px; border-radius: 999px; border: 1px solid var(--line); background: rgb(0 0 0 / 0.22); }
.room-dial__key { width: 26px; height: 26px; border-radius: 50%; position: relative; transition: transform 0.35s var(--ease-swing); }
.room-dial__key::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; transition: inset 0.35s var(--ease-swing), box-shadow 0.35s; }
.room-dial__key--jaxx::before { background: var(--jaxx); }
.room-dial__key--den::before { background: linear-gradient(110deg, var(--jaxx) 50%, var(--knox) 50%); }
.room-dial__key--knox::before { background: var(--knox); }
.room-dial__key:hover::before { inset: 4px; }
.room-dial__key[aria-pressed="true"]::before { inset: 2px; box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px rgb(244 231 215 / 0.7), 0 0 18px 2px rgb(var(--glow) / 0.8); }
.quiet { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 0.82rem; font-weight: 500; font-stretch: 88%; color: var(--ink-2); transition: color 0.2s, border-color 0.2s; }
.quiet:hover { color: var(--ink); border-color: rgb(244 231 215 / 0.4); }
.quiet__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px rgb(var(--glow) / 0.9); animation: pulse 2.2s ease-in-out infinite; }
.quiet[aria-pressed="true"] .quiet__dot { animation: none; background: var(--ink-3); box-shadow: none; }
@keyframes pulse { 50% { transform: scale(0.55); opacity: 0.55; } }
.masthead__progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; overflow: hidden; }
.masthead__progress span { display: block; height: 100%; background: var(--bar); transform: scaleX(0); transform-origin: left; }
.masthead__menu { display: none; }

@media (max-width: 1020px) {
  .masthead { grid-template-columns: 1fr auto auto; }
  .masthead__menu { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); order: 3; }
  .masthead__menu-bars, .masthead__menu-bars::before { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: transform 0.35s var(--ease-out); }
  .masthead__menu-bars { position: relative; transform: translateY(-3px); }
  .masthead__menu-bars::before { content: ""; position: absolute; left: 0; top: 6px; }
  .masthead.is-open .masthead__menu-bars { transform: translateY(0) rotate(45deg); }
  .masthead.is-open .masthead__menu-bars::before { transform: translateY(-6px) rotate(-90deg); }
  .nav { position: fixed; inset: 0; z-index: -2; flex-direction: column; justify-content: center; align-items: flex-start; gap: 6px; padding: 96px var(--gutter) 48px; background: color-mix(in oklab, var(--bg) 96%, transparent); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); font-family: var(--display); font-size: clamp(2.1rem, 9vw, 3.6rem); font-weight: var(--dw); font-style: var(--display-style); font-variation-settings: "SOFT" var(--soft), "WONK" var(--wonk); line-height: 1.12; opacity: 0; visibility: hidden; height: 100dvh; transition: opacity 0.35s, visibility 0s 0.35s; }
  .nav a { color: var(--ink); transform: translate3d(0, 24px, 0); opacity: 0; transition: transform 0.6s var(--ease-out), opacity 0.4s, color 0.2s; }
  .masthead.is-open .nav { opacity: 1; visibility: visible; transition: opacity 0.35s; }
  .masthead.is-open .nav a { transform: none; opacity: 1; }
  .masthead.is-open .nav a:nth-child(2) { transition-delay: 0.05s; }
  .masthead.is-open .nav a:nth-child(3) { transition-delay: 0.1s; }
  .masthead.is-open .nav a:nth-child(4) { transition-delay: 0.15s; }
  .masthead.is-open .nav a:nth-child(5) { transition-delay: 0.2s; }
  .masthead.is-open .nav a:nth-child(6) { transition-delay: 0.25s; }
  .masthead__tools { order: 2; }
  .quiet__label { display: none; }
  .quiet { padding: 10px; }
}

@media (max-width: 560px) {
  .masthead { gap: 8px; padding-inline: 14px; }
  .brand { gap: 7px; min-width: 0; }
  .brand__paw { width: 22px; height: 22px; }
  .brand__name { font-size: 1.12rem; }
  .masthead__tools { gap: 6px; }
  .room-dial { padding: 4px; gap: 2px; }
  .room-dial__key { width: 24px; height: 24px; }
  .quiet { width: 36px; height: 36px; padding: 0; justify-content: center; }
  .masthead__menu { width: 40px; height: 40px; }
}

/* 7. Timberline hero ------------------------------------------------------ */
main > .hero { height: 165vh; padding: 0; max-width: none; }
.hero__pin { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 600px; overflow: hidden; isolation: isolate; }
.scene { position: absolute; inset: 0; pointer-events: none; }
.scene--front { z-index: 2; }
.scene__sky { position: absolute; inset: 0; background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 44%, var(--sky-low) 74%, var(--sky-glow) 100%); }
.scene__layer { position: absolute; left: -7%; width: 114%; will-change: transform; }
.scene__stars { top: 0; height: 64%; }
.stars { position: absolute; inset: 0; width: 100%; height: 100%; fill: #fff; opacity: 0.8; animation: twinkle 5s ease-in-out infinite; }
.stars--1 { animation-duration: 7s; animation-delay: -2s; }
.stars--2 { animation-duration: 9s; animation-delay: -5s; }
@keyframes twinkle { 50% { opacity: 0.22; } }
.scene__moon { position: absolute; right: 15%; top: 12%; width: clamp(84px, 10.5vw, 168px); aspect-ratio: 1; will-change: transform; }
.scene__moon span { display: block; width: 100%; height: 100%; border-radius: 50%; background: radial-gradient(circle at 36% 34%, #fff 0%, var(--moon) 46%, color-mix(in oklab, var(--moon) 76%, var(--sky-low)) 100%); box-shadow: 0 0 50px 8px rgb(var(--moon-rgb) / 0.42), 0 0 240px 110px rgb(var(--moon-rgb) / 0.17); }
.scene__peaks { bottom: 26%; height: 56%; fill: var(--ridge-1); opacity: 0.85; }
.scene__far { bottom: 21%; height: 44%; fill: var(--ridge-2); }
.scene__fog { position: absolute; left: -12%; right: -12%; will-change: transform; }
.scene__fog--far { bottom: 16%; height: 30%; background: linear-gradient(180deg, transparent, rgb(var(--fog) / 0.3) 55%, transparent); }
.scene__mid { bottom: -14%; height: 72%; fill: var(--ridge-3); }
.scene__fog--near { bottom: 0; height: 34%; background: linear-gradient(180deg, transparent, rgb(var(--fog) / 0.16) 50%, transparent); }
.scene__near { bottom: -34%; height: 80%; fill: var(--ridge-4); }
.scene__earth { position: absolute; left: 0; right: 0; top: 133%; height: 130%; background: var(--ridge-4); will-change: transform; }
.scene__fore { z-index: 2; bottom: -10%; height: 112%; fill: var(--ridge-5); pointer-events: none; transform-origin: 50% 100%; }
#ridge-near path { fill: inherit; }

.wordmark { position: absolute; z-index: 1; left: 0; right: 0; top: 20%; margin: 0; text-align: center; font-size: 14.1vw; line-height: 0.84; font-weight: 900; font-style: normal; letter-spacing: -0.04em; white-space: nowrap; color: var(--ink); font-variation-settings: "SOFT" var(--soft), "WONK" var(--wonk), "opsz" 144; text-shadow: var(--cast-x, 0px) var(--cast-y, 14px) var(--cast-b, 40px) rgb(8 3 10 / 0.55); will-change: transform, opacity; user-select: none; }
.wordmark__row { display: inline; }
.wordmark__l { display: inline-block; font-weight: var(--w, 900); transform-origin: 50% 100%; }
.wordmark__row--jaxx .wordmark__l { color: color-mix(in oklab, var(--ink) 55%, var(--accent)); }

.hero__content { position: absolute; z-index: 3; left: var(--gutter); bottom: clamp(44px, 9vh, 104px); max-width: 30rem; will-change: transform, opacity; }
.hero__sign { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.3em 0.9em; margin-bottom: 1rem; }
.hero__sign span:first-child { text-transform: var(--head-case); font-family: var(--display); font-size: var(--step-2); font-weight: var(--dw); font-style: var(--display-style); font-variation-settings: "SOFT" var(--soft), "WONK" var(--wonk); color: var(--accent); line-height: 1.05; }
.hero__sign span:last-child { font-size: var(--step--1); color: var(--ink-2); font-stretch: 86%; font-weight: 500; letter-spacing: 0.02em; }
.hero__lede { font-size: var(--step-1); line-height: 1.42; margin-bottom: 1.6rem; text-shadow: 0 2px 22px var(--bg); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; }
.hero__status { min-height: 1.5em; margin: 0.8rem 0 0; font-size: var(--step--1); color: var(--accent); }

.hero__frames { position: absolute; z-index: 3; right: calc(var(--gutter) + 1vw); bottom: clamp(40px, 7vh, 84px); width: min-content; will-change: transform, opacity; }
.hero__deck { display: flex; align-items: flex-end; }
.hero__note { margin: 18px 0 0; font-size: var(--step--1); line-height: 1.4; color: var(--ink-2); text-shadow: 0 2px 14px var(--bg); }
.hero__frames .frame { width: clamp(130px, 13.5vw, 214px); }
.hero__frames .frame:first-child { --rest: -7deg; margin-right: -22px; margin-bottom: 26px; z-index: 1; }
.hero__frames .frame:last-child { --rest: 5deg; }
.hero__frames .frame__window { aspect-ratio: 4 / 5; }
.hero__frames .frame__window img { position: static; width: 100%; height: 100%; object-fit: cover; }

.hero__cue { position: absolute; z-index: 5; left: 50%; bottom: 20px; transform: translateX(-50%); display: grid; justify-items: center; gap: 8px; font-size: var(--step--1); font-weight: 500; font-stretch: 86%; color: var(--ink-2); text-decoration: none; letter-spacing: 0.03em; }
.hero__cue-line { width: 1px; height: 38px; background: linear-gradient(180deg, transparent, var(--accent)); animation: cue 2.4s var(--ease-out) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 55% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* Arrival: one orchestrated moment after the door opens. */
body.is-arriving .wordmark__l { animation: letter-rise 1.5s var(--ease-out) backwards; }
body.is-arriving .wordmark__row .wordmark__l:nth-child(1) { animation-delay: 0.35s; }
body.is-arriving .wordmark__row .wordmark__l:nth-child(2) { animation-delay: 0.43s; }
body.is-arriving .wordmark__row .wordmark__l:nth-child(3) { animation-delay: 0.51s; }
body.is-arriving .wordmark__row .wordmark__l:nth-child(4) { animation-delay: 0.59s; }
body.is-arriving .wordmark__row .wordmark__l:nth-child(5) { animation-delay: 0.67s; }
body.is-arriving .wordmark__row--jaxx .wordmark__l:nth-child(1) { animation-delay: 0.75s; }
body.is-arriving .wordmark__row--jaxx .wordmark__l:nth-child(2) { animation-delay: 0.83s; }
body.is-arriving .wordmark__row--jaxx .wordmark__l:nth-child(3) { animation-delay: 0.91s; }
body.is-arriving .wordmark__row--jaxx .wordmark__l:nth-child(4) { animation-delay: 0.99s; }
@keyframes letter-rise { from { transform: translate3d(0, 62%, 0) scaleY(0.7); opacity: 0; filter: blur(14px); } }
body.is-arriving .scene__moon span { animation: moon-rise 2.6s var(--ease-out) backwards; }
@keyframes moon-rise { from { transform: translate3d(0, 34vh, 0) scale(0.8); opacity: 0; } }
body.is-arriving .hero__content > *, body.is-arriving .hero__frames, body.is-arriving .hero__cue { animation: settle 1.2s var(--ease-out) 1.35s backwards; }
body.is-arriving .hero__content > :nth-child(2) { animation-delay: 1.45s; }
body.is-arriving .hero__content > :nth-child(3) { animation-delay: 1.55s; }
body.is-arriving .hero__frames { animation-delay: 1.7s; }
body.is-arriving .hero__cue { animation-delay: 2.1s; }
@keyframes settle { from { opacity: 0; translate: 0 26px; } }
body.is-arriving .scene__fore { animation: fore-in 2.2s var(--ease-out) backwards; }
@keyframes fore-in { from { scale: 1.16; opacity: 0; } }

@media (max-width: 960px) {
  .hero__frames { display: none; }
  .stop { --off: 60px; }
}
@media (max-width: 760px) {
  .wordmark { font-size: 27vw; top: 13%; line-height: 0.82; }
  .wordmark__row { display: block; }
  .scene__moon { right: 10%; top: 9%; }
  .hero__content { right: var(--gutter); bottom: 64px; }
  .hero__lede { font-size: var(--step-0); }
  .hero__actions .btn { min-height: 48px; padding-inline: 1.15em; }
}
@media (max-height: 640px) and (min-width: 761px) {
  .hero__sign { display: none; }
}

/* 8. Rooms ---------------------------------------------------------------- */
.picker { display: grid; gap: clamp(18px, 2.4vw, 30px); }
.picker__top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 48px; }
.picker__now { margin: 0; display: grid; gap: 4px; }
.picker__label { font-size: var(--step--1); color: var(--ink-3); font-weight: 600; font-stretch: 84%; letter-spacing: 0.03em; }
.picker__now strong { font-family: var(--display); font-size: var(--step-3); font-weight: var(--dw); font-style: var(--display-style); font-variation-settings: "SOFT" var(--soft), "WONK" var(--wonk); letter-spacing: var(--display-track); text-transform: var(--head-case); line-height: 1; color: var(--accent); }
.picker__now span:last-child { color: var(--ink-2); }
.picker__how { margin: 0; max-width: 25rem; color: var(--ink-2); font-size: var(--step--1); }
.picker__keys { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.8vw, 26px); }

/* Each choice is a small poster of its own room: its sky, its set piece, its lettering, its shape. */
.key { --k: var(--accent); --floor: #170c18; position: relative; display: block; min-height: clamp(230px, 25vw, 350px); text-align: left; overflow: hidden; isolation: isolate; filter: saturate(0.7) brightness(0.8); transition: transform 0.7s var(--ease-out), filter 0.5s; }
.key:hover, .key:focus-visible, .key[aria-pressed="true"] { filter: none; }
.key:hover { transform: translate3d(0, -10px, 0); }
.key::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 1px rgb(244 231 215 / 0.18); transition: box-shadow 0.5s; }
.key[aria-pressed="true"]::after { box-shadow: inset 0 0 0 2px var(--k), inset 0 0 70px -14px var(--k); }
.key:focus-visible { outline: none; }
.key:focus-visible::after { box-shadow: inset 0 0 0 3px #fff; }
.key__sky { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.key__ridge { position: absolute; left: -12%; bottom: -1px; width: 124%; height: 60%; fill: var(--floor); transform-origin: 50% 100%; transition: transform 1.4s var(--ease-out); }
.key:hover .key__ridge { transform: scale(1.08); }
.key__orb { position: absolute; border-radius: 50%; aspect-ratio: 1; transition: transform 1.4s var(--ease-out); }
.key:hover .key__orb { transform: translate3d(0, -8%, 0) scale(1.05); }
.key__set { position: absolute; }
.key__copy { position: absolute; left: clamp(16px, 1.8vw, 28px); right: clamp(16px, 1.8vw, 28px); bottom: clamp(16px, 1.7vw, 26px); display: grid; gap: 4px; text-shadow: 0 2px 16px var(--floor); }
.key__copy strong { font-family: var(--display); font-size: clamp(1.55rem, 1rem + 1.7vw, 2.7rem); line-height: 1; }
.key__copy span { font-size: var(--step--1); color: #e6d2c6; line-height: 1.3; }
.key__here { position: absolute; top: 16px; left: 18px; padding: 0.3em 0.85em; border-radius: 999px; background: var(--k); color: #1c0a10; font-size: 0.76rem; font-weight: 700; font-stretch: 88%; opacity: 0; transform: translate3d(0, -8px, 0); transition: opacity 0.4s, transform 0.5s var(--ease-out); }
.key[aria-pressed="true"] .key__here { opacity: 1; transform: none; }

.key--jaxx { --k: var(--jaxx-soft); --floor: #1e0812; border-radius: 38px; }
.key--jaxx .key__sky { background: linear-gradient(180deg, #170613, #4b1132 44%, #b63a5c 78%, #ff8d93); }
.key--jaxx .key__orb { right: 9%; top: 9%; width: 36%; background: radial-gradient(circle at 36% 34%, #fff, #ffd9dc 48%, #ff9fb4); box-shadow: 0 0 40px 6px rgb(255 170 185 / 0.5), 0 0 0 14px rgb(255 190 200 / 0.07); }
.key--jaxx .key__set { left: -14%; top: -64%; width: 128%; height: 100%; border-radius: 50%; border-bottom: 6px dotted #ffe9cf; filter: drop-shadow(0 0 7px #ff8fa6); }
.key--jaxx .key__copy strong { font-style: italic; font-weight: 460; font-variation-settings: "SOFT" 100, "WONK" 1; }

.key--den { --floor: #170c18; border-radius: 14px; }
.key--den .key__sky { background: linear-gradient(180deg, #0d0919, #2a1634 44%, #7b3040 78%, #c6603f); }
.key--den .key__orb { right: 14%; top: 14%; width: 22%; background: linear-gradient(105deg, #ffb3c1 50%, #ffc27a 50%); box-shadow: 0 0 34px 6px rgb(255 214 170 / 0.4); }
.key--den .key__copy strong { font-weight: 620; font-variation-settings: "SOFT" 50, "WONK" 0; }

.key--knox { --k: var(--knox); --floor: #120a07; clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 30px, 100% 100%, 30px 100%, 0 calc(100% - 30px)); }
.key--knox .key__sky { background: linear-gradient(180deg, #080505, #2c150a 44%, #a4461a 78%, #ffab4a); }
.key--knox .key__orb { right: 11%; top: 11%; width: 12%; background: #ffcf94; -webkit-mask: radial-gradient(circle at 70% 36%, transparent 56%, #000 58%); mask: radial-gradient(circle at 70% 36%, transparent 56%, #000 58%); }
.key--knox .key__set { left: 4%; bottom: 22%; width: 62%; height: 54%; background: radial-gradient(closest-side, rgb(255 240 190 / 0.95), rgb(255 160 50 / 0.75) 20%, rgb(255 96 20 / 0.3) 52%, transparent 76%); transform-origin: 50% 70%; animation: fire 2.8s ease-in-out infinite; }
.key--knox .key__copy strong { font-weight: 880; letter-spacing: -0.02em; text-transform: uppercase; font-variation-settings: "SOFT" 0, "WONK" 0; }
.key--knox .key__copy { left: clamp(34px, 3vw, 44px); }
.key--knox .key__here { border-radius: 0; text-transform: uppercase; letter-spacing: 0.07em; }
.chapter { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); align-items: center; padding-block: clamp(70px, 11vw, 170px); }
.chapter--jaxx { --wolf: var(--jaxx); --wolf-soft: var(--jaxx-soft); }
.chapter--knox { --wolf: var(--knox); --wolf-soft: var(--knox-soft); }
.chapter__ghost { position: absolute; z-index: -1; top: clamp(10px, 3vw, 60px); font-family: var(--display); font-size: clamp(9rem, 31vw, 30rem); line-height: 0.8; font-weight: 900; color: color-mix(in oklab, var(--wolf) 13%, transparent); white-space: nowrap; pointer-events: none; will-change: transform; user-select: none; }
.chapter--jaxx .chapter__ghost { right: -6%; font-style: italic; font-weight: 500; font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144; }
.chapter--knox .chapter__ghost { left: -5%; letter-spacing: -0.05em; font-variation-settings: "SOFT" 0, "WONK" 0, "opsz" 144; }
.chapter--jaxx .chapter__art { grid-column: 1 / span 6; justify-self: center; width: min(100%, 520px); }
.chapter--jaxx .chapter__copy { grid-column: 8 / span 5; }
.chapter--knox .chapter__art { grid-column: 6 / span 7; grid-row: 1; }
.chapter--knox .chapter__copy { grid-column: 1 / span 4; grid-row: 1; }
.chapter__copy .kicker { color: var(--wolf-soft); }
.chapter__copy h3 { font-size: var(--step-4); margin-bottom: 1.6rem; }
.chapter--jaxx h3 { font-style: italic; font-weight: 460; letter-spacing: -0.012em; font-variation-settings: "SOFT" 100, "WONK" 1; }
.chapter--knox h3 { font-style: normal; font-weight: 880; letter-spacing: -0.042em; word-spacing: 0.09em; font-variation-settings: "SOFT" 0, "WONK" 0; }
.chapter__copy p { color: var(--ink-2); max-width: 30rem; }
.chapter__notes { font-family: var(--display); font-style: italic; font-size: var(--step-1); font-weight: 400; font-variation-settings: "SOFT" 100, "WONK" 1; color: var(--wolf-soft) !important; margin: 1.4rem 0 1.8rem; }
.chapter .link { color: var(--wolf-soft); }

.frame { --rx: 0deg; --ry: 0deg; --rest: 0deg; position: relative; display: block; width: 100%; padding: clamp(7px, 0.9vw, 13px); border-radius: var(--r-frame); background: linear-gradient(150deg, #3b2531, var(--wood) 40%, var(--wood-2)); box-shadow: inset 0 0 0 1px rgb(244 231 215 / 0.1), var(--cast-x, 0px) var(--cast-y, 26px) calc(var(--cast-b, 30px) * 2) -8px rgb(4 1 5 / 0.75), 0 0 90px -30px var(--wolf, rgb(var(--glow))); transform: perspective(1100px) rotate(var(--rest)) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform 0.5s var(--ease-out), box-shadow 0.4s; text-align: left; }
.frame__window { position: relative; display: block; overflow: hidden; border-radius: max(2px, calc(var(--r-frame) - 9px)); box-shadow: 0 0 0 1px rgb(0 0 0 / 0.6), inset 0 0 0 1px rgb(244 231 215 / 0.18); background: var(--wood-2); }
.frame--portrait .frame__window { aspect-ratio: 8 / 9; }
.frame--landscape .frame__window { aspect-ratio: 5 / 3; }
.chapter .frame__window img { position: absolute; left: 0; top: -6%; width: 100%; height: 112%; object-fit: cover; will-change: transform; }
.frame__glare { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgb(255 250 240 / 0.34), transparent 46%); mix-blend-mode: screen; opacity: 0; transition: opacity 0.35s; }
.frame:hover .frame__glare, .frame:focus-visible .frame__glare { opacity: 1; }
.frame__hint { position: absolute; right: clamp(16px, 1.8vw, 26px); bottom: clamp(16px, 1.8vw, 26px); padding: 0.5em 0.95em; border-radius: 6px; background: rgb(23 12 24 / 0.78); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: var(--step--1); font-weight: 600; font-stretch: 88%; opacity: 0; transform: translate3d(0, 8px, 0); transition: opacity 0.3s, transform 0.4s var(--ease-out); }
.frame:hover .frame__hint, .frame:focus-visible .frame__hint { opacity: 1; transform: none; }
.frame:hover { --rest: 0deg; }

.shelf { padding-top: clamp(40px, 7vw, 110px); }
.shelf .head { margin-bottom: clamp(26px, 4vw, 52px); }
.shelf__side p { margin: 0 0 0.4em; color: var(--ink-2); }
.shelf__how { font-size: var(--step--1); color: var(--ink-3) !important; }
.shelf__controls { display: flex; gap: 10px; margin-top: 1rem; }
.shelf__rail { height: 4px; margin-inline: calc(var(--gutter) * -1); border-radius: 2px; background: linear-gradient(90deg, transparent, #5b3d49 6%, #7d5a63 50%, #5b3d49 94%, transparent); box-shadow: 0 6px 18px rgb(0 0 0 / 0.55), inset 0 1px 0 rgb(255 255 255 / 0.22); }
.shelf__track { --h: clamp(250px, 46vh, 470px); display: flex; align-items: flex-start; gap: clamp(30px, 4.6vw, 76px); overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; margin-inline: calc(var(--gutter) * -1); padding: 54px var(--gutter) 46px; scrollbar-width: none; cursor: grab; touch-action: pan-x pan-y; }
.shelf__track::-webkit-scrollbar { display: none; }
.shelf__track.is-dragging { cursor: grabbing; scroll-behavior: auto; }
.shelf__track.is-dragging .frame { pointer-events: none; }
.hang { --ar: 1; --sway: 0deg; position: relative; flex: none; width: min(calc(var(--h) * var(--ar)), 82vw); transform: rotate(var(--sway)); transform-origin: 50% -54px; will-change: transform; }
.hang::before { content: ""; position: absolute; left: 50%; top: -54px; width: 1px; height: 54px; background: linear-gradient(180deg, rgb(244 231 215 / 0.55), rgb(244 231 215 / 0.2)); }
.hang::after { content: ""; position: absolute; left: 50%; top: -59px; width: 9px; height: 9px; margin-left: -4px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #b99a8a 60%, #4d3640); box-shadow: 0 2px 4px rgb(0 0 0 / 0.6); }
.hang .frame__window { aspect-ratio: var(--ar); }
.hang .frame__window img { width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; user-select: none; }
.hang--jaxx { --wolf: var(--jaxx); }
.hang--knox { --wolf: var(--knox); }
.hang__label { display: grid; gap: 4px; margin-top: 16px; padding-inline: 2px; }
.hang__label strong { text-transform: var(--head-case); font-family: var(--display); font-size: 1.22rem; font-weight: 560; line-height: 1.15; font-variation-settings: "SOFT" var(--soft), "WONK" var(--wonk); }
.hang__label span { font-size: var(--step--1); color: var(--ink-2); line-height: 1.45; }

.vault { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 96px); align-items: center; margin-top: clamp(70px, 11vw, 160px); padding: clamp(26px, 5vw, 72px); border-radius: var(--r-card); background: linear-gradient(160deg, color-mix(in oklab, var(--bg) 60%, #000), color-mix(in oklab, var(--bg) 88%, #000)); border: 1px solid var(--line); overflow: hidden; }
.vault__intro h3 { margin-bottom: 1.4rem; }
.vault__intro > p { color: var(--ink-2); max-width: 32rem; }
.vault__lock { margin: 1.6rem 0; padding-left: 16px; border-left: 2px solid var(--accent); }
.vault__lock[hidden] { display: none; }
.vault__lock strong { display: block; font-weight: 600; }
.vault__lock p { margin: 0.2em 0 0; color: var(--ink-2); font-size: var(--step--1); }
.vault__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.vault__note { margin: 0; font-size: var(--step--1); color: var(--ink-3); }
.vault__door { position: relative; justify-self: center; width: clamp(170px, 21vw, 290px); aspect-ratio: 3 / 5; perspective: 1000px; }
.vault__light { position: absolute; inset: 0; border-radius: var(--r-vault); background: radial-gradient(90% 60% at 50% 100%, #fff1d6, rgb(var(--glow)) 30%, color-mix(in oklab, rgb(var(--glow)) 40%, #000) 75%, #000); box-shadow: 0 0 0 10px var(--wood-2), 0 0 0 11px rgb(244 231 215 / 0.12); }
.vault__leaf { position: absolute; inset: 0; border-radius: var(--r-vault); background: linear-gradient(100deg, color-mix(in oklab, var(--wood), #fff 7%), var(--wood) 45%, var(--wood-2)); box-shadow: inset 0 0 0 1px rgb(244 231 215 / 0.12), inset -14px 0 30px rgb(0 0 0 / 0.35); transform-origin: 0 50%; transition: transform 1.3s cubic-bezier(0.5, 0, 0.15, 1); display: grid; align-content: center; gap: 8%; padding: 22% 14% 12%; }
.vault__panel { display: block; height: 100%; min-height: 60px; border-radius: 4px; box-shadow: inset 0 0 0 1px rgb(244 231 215 / 0.1), inset 0 2px 8px rgb(0 0 0 / 0.5); }
.vault__panel:first-child { border-radius: var(--r-vault); }
.vault__knob { position: absolute; right: 9%; top: 56%; width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, var(--accent) 55%, #5a3a1c); box-shadow: 0 0 14px rgb(var(--glow) / 0.8); }
.vault__plate { position: absolute; left: 50%; top: 13%; transform: translateX(-50%); padding: 3px 10px; border-radius: 3px; background: linear-gradient(#e0b46d, #a9772f); color: #2a1606; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; box-shadow: 0 1px 2px rgb(0 0 0 / 0.5); }
.vault__spill { position: absolute; left: -30%; right: -30%; bottom: -9%; height: 16%; background: radial-gradient(closest-side, rgb(var(--glow) / 0.75), transparent); filter: blur(10px); opacity: 0.18; transition: opacity 0.9s; }
.vault.has-art .vault__spill { opacity: 0.55; animation: spill 3.6s ease-in-out infinite; }
@keyframes spill { 50% { opacity: 0.3; } }
.vault.is-unlocked .vault__leaf { transform: rotateY(-74deg); }
.vault.is-unlocked .vault__spill { opacity: 1; animation: none; }
.vault__gallery { grid-column: 1 / -1; columns: 4 220px; column-gap: 16px; }
.vault__gallery[hidden] { display: none; }
.vault__gallery .tile { display: block; width: 100%; margin: 0 0 16px; break-inside: avoid; border-radius: 6px; overflow: hidden; position: relative; background: var(--wood-2); box-shadow: 0 0 0 1px rgb(244 231 215 / 0.1); animation: tile-in 0.8s var(--ease-out) backwards; animation-delay: calc(var(--i, 0) * 45ms); }
.vault__gallery .tile img { width: 100%; height: auto; aspect-ratio: var(--ar, 1); object-fit: cover; transition: transform 0.7s var(--ease-out), filter 0.4s; }
.vault__gallery .tile:hover img { transform: scale(1.04); filter: brightness(1.08); }
@keyframes tile-in { from { opacity: 0; transform: translate3d(0, 24px, 0) scale(0.97); } }
.rooms__footnote { max-width: 46rem; margin: clamp(48px, 7vw, 90px) 0 0; color: var(--ink-2); font-family: var(--display); font-size: var(--step-1); font-style: italic; font-weight: 380; font-variation-settings: "SOFT" 100, "WONK" 0; line-height: 1.4; }

/* 9. Story dial ----------------------------------------------------------- */
.story { --pos: 0; transition: --pos 0.8s var(--ease-swing); }
.story.is-dragging { transition: none; }
.story::before, .story::after { content: ""; position: absolute; z-index: -1; top: 10%; width: 60vw; height: 80%; pointer-events: none; }
.story::before { left: -20vw; background: radial-gradient(closest-side, rgb(238 58 95 / 0.3), transparent); opacity: calc(1 - var(--pos)); }
.story::after { right: -20vw; background: radial-gradient(closest-side, rgb(242 122 44 / 0.3), transparent); opacity: var(--pos); }
.dial { max-width: 64rem; }
.dial__track { position: relative; height: 112px; margin-inline: 34px; touch-action: pan-y; cursor: grab; }
.dial__track.is-dragging { cursor: grabbing; }
.dial__beam { position: absolute; left: 0; right: 0; top: 33px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--jaxx), var(--ink) 50%, var(--knox)); opacity: 0.75; }
.dial__beam::before, .dial__beam::after { content: ""; position: absolute; top: -5px; width: 12px; height: 12px; border-radius: 50%; }
.dial__beam::before { left: -6px; background: var(--jaxx); box-shadow: 0 0 22px 5px rgb(238 58 95 / 0.6); }
.dial__beam::after { right: -6px; background: var(--knox); box-shadow: 0 0 22px 5px rgb(242 122 44 / 0.6); }
.dial__handle { --mix: color-mix(in oklab, var(--jaxx), var(--knox) calc(var(--pos) * 100%)); position: absolute; top: 0; left: calc(var(--pos) * 100%); width: 68px; height: 68px; margin-left: -34px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 34% 28%, #fff6, transparent 50%), var(--mix); box-shadow: 0 0 0 6px color-mix(in oklab, var(--bg) 70%, transparent), 0 0 44px 4px var(--mix), 0 12px 30px rgb(0 0 0 / 0.5); transition: transform 0.3s var(--ease-out); pointer-events: none; }
.dial__handle svg { width: 30px; height: 30px; fill: #1c0a10; transform: rotate(calc((var(--pos) - 0.5) * 50deg)); }
.dial__track.is-dragging .dial__handle { transform: scale(1.12); }
.dial__stops { position: absolute; left: 0; right: 0; top: 0; height: 100%; }
.dial__stops button { position: absolute; top: 0; height: 100%; width: 150px; margin-left: -75px; padding-top: 78px; text-align: center; font-family: var(--display); font-size: var(--step-1); font-weight: 500; color: var(--ink-3); transition: color 0.3s; }
.dial__stops button:nth-child(1) { left: 0; }
.dial__stops button:nth-child(2) { left: 50%; }
.dial__stops button:nth-child(3) { left: 100%; }
.dial__stops button:hover { color: var(--ink); }
.dial__stops button[aria-selected="true"] { color: var(--ink); }
.dial__stops button[data-story="jaxx"] { font-style: italic; font-variation-settings: "SOFT" 100, "WONK" 1; }
.dial__stops button[data-story="knox"] { font-weight: 860; letter-spacing: -0.03em; font-variation-settings: "SOFT" 0, "WONK" 0; }
.dial__how { margin: 0.4rem 0 0; text-align: center; font-size: var(--step--1); color: var(--ink-3); }
.dial__panels { margin-top: clamp(34px, 5vw, 64px); min-height: 18rem; }
.dial__panel[hidden] { display: none; }
.dial__panel { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 0 clamp(24px, 5vw, 72px); align-items: start; }
.dial__panel h3 { grid-row: span 2; font-size: var(--step-4); line-height: 0.94; }
.dial__panel p { color: var(--ink-2); margin: 0.5rem 0 0; }
.dial__aside { font-family: var(--display); font-style: italic; font-size: var(--step-1); font-weight: 400; line-height: 1.35; font-variation-settings: "SOFT" 100, "WONK" 0; color: var(--ink) !important; margin-top: 1.4rem !important; padding-left: 1.1rem; border-left: 2px solid var(--panel-c, var(--accent)); }
#panel-jaxx { --panel-c: var(--jaxx); }
#panel-jaxx h3 { font-style: italic; font-weight: 460; letter-spacing: -0.012em; font-variation-settings: "SOFT" 100, "WONK" 1; }
#panel-knox { --panel-c: var(--knox); }
#panel-knox h3 { font-style: normal; font-weight: 880; letter-spacing: -0.042em; word-spacing: 0.09em; font-variation-settings: "SOFT" 0, "WONK" 0; }
#panel-together h3 { font-style: normal; font-weight: 620; font-variation-settings: "SOFT" 50, "WONK" 0; }
.motion .dial__panel.is-active > * { animation: panel-in 0.8s var(--ease-out) backwards; }
.motion .dial__panel.is-active > :nth-child(2) { animation-delay: 0.08s; }
.motion .dial__panel.is-active > :nth-child(3) { animation-delay: 0.16s; }
@keyframes panel-in { from { opacity: 0; transform: translate3d(0, 20px, 0); filter: blur(8px); } }

/* 10. Link doors ---------------------------------------------------------- */
.hall { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(196px, 44%), 1fr)); gap: clamp(14px, 2vw, 26px); }
.door { --c: var(--accent); position: relative; display: block; aspect-ratio: 3 / 4.5; perspective: 900px; text-decoration: none; border-radius: var(--r-door); }
.door::after { content: ""; position: absolute; left: 6%; right: 6%; bottom: -10px; height: 18px; background: radial-gradient(closest-side, var(--c), transparent); opacity: 0.4; filter: blur(8px); transition: opacity 0.4s; }
.door__room { position: absolute; inset: 0; border-radius: var(--r-door); overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 16px 16px 18px 30%; color: #1b0c12; background: radial-gradient(120% 80% at 60% 100%, #fff 0%, var(--c) 38%, color-mix(in oklab, var(--c) 42%, #000) 100%); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.2); }
.door__room strong { font-family: var(--display); font-size: 1.16rem; font-weight: 640; line-height: 1.08; }
.door__room span { font-size: 0.84rem; line-height: 1.38; font-weight: 500; }
.door__go { font-weight: 700 !important; font-stretch: 86%; }
.door__leaf { position: absolute; inset: 0; border-radius: var(--r-door); display: flex; flex-direction: column; padding: 16px; background: linear-gradient(105deg, color-mix(in oklab, var(--wood), #fff 7%), var(--wood) 42%, var(--wood-2)); box-shadow: inset 0 0 0 1px rgb(244 231 215 / 0.12), inset -10px 0 24px rgb(0 0 0 / 0.3); transform-origin: 0 50%; transform: rotateY(0deg); transition: transform calc(0.85s * var(--t)) var(--ease-swing), box-shadow 0.4s; backface-visibility: hidden; }
.door__leaf::before { content: ""; position: absolute; inset: 10px; border-radius: 4px; box-shadow: inset 0 0 0 1px rgb(244 231 215 / 0.07), inset 0 2px 10px rgb(0 0 0 / 0.4); pointer-events: none; }
.door__type { position: relative; font-size: 0.78rem; font-weight: 600; font-stretch: 84%; letter-spacing: 0.03em; color: var(--c); }
.door__plate { position: absolute; right: 16px; top: 14px; padding: 2px 8px; border-radius: 3px; background: linear-gradient(#e0b46d, #a9772f); color: #2a1606; font-size: 0.72rem; font-weight: 700; box-shadow: 0 1px 2px rgb(0 0 0 / 0.5); }
.door__icon { position: relative; margin-top: auto; width: 38px; height: 38px; color: var(--c); }
.door__icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.door__label { text-transform: var(--head-case); position: relative; margin-top: 12px; font-family: var(--display); font-size: clamp(1.25rem, 1.05rem + 0.7vw, 1.7rem); font-weight: var(--dw); font-style: var(--display-style); font-variation-settings: "SOFT" var(--soft), "WONK" var(--wonk); line-height: 1.04; letter-spacing: -0.015em; }
.door__desc { display: none; position: relative; margin-top: 8px; font-size: 0.82rem; line-height: 1.4; color: var(--ink-2); }
.door__knob { position: absolute; right: 14px; top: 52%; width: 11px; height: 11px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, var(--c) 60%, #000); box-shadow: 0 0 12px var(--c); }
@media (hover: hover) and (pointer: fine) {
  .door:hover .door__leaf, .door:focus-visible .door__leaf { transform: rotateY(-70deg); box-shadow: inset 0 0 0 1px rgb(244 231 215 / 0.12), inset -40px 0 60px rgb(0 0 0 / 0.55); }
  .door:hover::after, .door:focus-visible::after { opacity: 1; }
}
@media (hover: none), (pointer: coarse) {
  .door { aspect-ratio: auto; min-height: 232px; }
  .door__leaf { position: relative; min-height: 232px; transform: rotateY(-9deg); }
  .door__desc { display: block; }
  .door__room { padding-left: 16px; }
  .door__room > * { visibility: hidden; }
  .door__knob { top: 30px; right: 16px; }
  .door__plate + .door__icon ~ .door__knob { top: 52px; }
}

/* 11. Game nights --------------------------------------------------------- */
.board__top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 32px; margin-bottom: 1.4rem; }
.board__top h3 { font-size: var(--step-2); }
.board__top p { margin: 0; color: var(--ink-3); font-size: var(--step--1); }
.board__list { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.game { --p: 0; border-top: 1px solid var(--line); }
.game a { position: relative; display: grid; grid-template-columns: 3.4rem minmax(0, 1.7fr) minmax(90px, 1fr) 8.2rem; gap: 6px clamp(14px, 2.4vw, 36px); align-items: center; padding: clamp(14px, 1.7vw, 22px) 0; text-decoration: none; transition: padding 0.45s var(--ease-out); }
.game__rank { font-family: var(--display); font-size: var(--step-1); font-weight: 400; font-style: italic; color: var(--ink-3); font-variant-numeric: tabular-nums; transition: color 0.3s; }
.game__name { min-width: 0; display: grid; gap: 2px; }
.game__title { text-transform: var(--head-case); font-family: var(--display); font-size: var(--step-2); font-weight: var(--dw); font-style: var(--display-style); font-variation-settings: "SOFT" var(--soft), "WONK" var(--wonk); letter-spacing: var(--display-track); line-height: 1.05; transition: color 0.3s; }
.game__meta { display: flex; flex-wrap: wrap; gap: 2px 18px; font-size: var(--step--1); color: var(--ink-3); }
.game__bar { position: relative; height: 6px; border-radius: 3px; background: rgb(244 231 215 / 0.09); overflow: hidden; }
.game__bar span { position: absolute; inset: 0; border-radius: 3px; background: var(--bar); transform: scaleX(var(--p)); transform-origin: left; transition: transform 1.5s var(--ease-out) calc(var(--i, 0) * 70ms); }
.game__hours { text-align: right; font-family: var(--display); font-size: var(--step-1); font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.game__hours small { display: block; font-family: var(--text); font-size: 0.74rem; font-weight: 500; color: var(--ink-3); }
.game__thumb { display: none; }
.game a:hover, .game a:focus-visible { padding-left: 14px; }
.game a:hover .game__title, .game a:focus-visible .game__title { color: var(--accent); }
.game a:hover .game__rank { color: var(--ink); }
.board__foot { display: grid; gap: 12px; margin-top: 1.8rem; color: var(--ink-3); font-size: var(--step--1); }
.board__foot p { margin: 0; }
.handles { display: flex; flex-wrap: wrap; gap: 10px; }
.handle { display: inline-flex; align-items: baseline; gap: 0.6em; padding: 9px 14px; border-radius: 8px; border: 1px solid var(--line); color: var(--ink); font-size: 0.92rem; transition: border-color 0.2s, background-color 0.2s, transform 0.3s var(--ease-out); }
.handle b { font-weight: 600; font-stretch: 84%; color: var(--accent); font-size: 0.8rem; letter-spacing: 0.03em; }
.handle:hover { border-color: var(--accent); background: rgb(var(--glow) / 0.08); transform: translate3d(0, -2px, 0); }
.handles__status { min-height: 1.4em; color: var(--accent) !important; }
.cover { position: fixed; left: 0; top: 0; z-index: 65; width: clamp(240px, 24vw, 340px); aspect-ratio: 460 / 215; border-radius: 8px; overflow: hidden; pointer-events: none; opacity: 0; background: var(--surface); box-shadow: 0 30px 80px -10px rgb(0 0 0 / 0.8), 0 0 0 1px rgb(244 231 215 / 0.18), 0 0 80px -10px rgb(var(--glow) / 0.6); transition: opacity 0.3s; will-change: transform; }
.cover.is-on { opacity: 1; }
.cover img { width: 100%; height: 100%; object-fit: cover; }

/* 12. Convention trail ---------------------------------------------------- */
.trail__map { position: relative; max-width: 1120px; margin-inline: auto; padding-block: 30px 60px; }
.trail__svg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.trail__ghost { fill: none; stroke: rgb(244 231 215 / 0.14); stroke-width: 2; stroke-dasharray: 2 10; stroke-linecap: round; }
.trail__line { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; filter: drop-shadow(0 0 8px rgb(var(--glow) / 0.8)); }
.trail__prints { position: absolute; inset: 0; pointer-events: none; }
.print { position: absolute; left: 0; top: 0; width: 17px; height: 17px; margin: -8.5px 0 0 -8.5px; fill: var(--accent); opacity: 0; scale: 0.3; transition: opacity 0.5s, scale 0.6s var(--ease-swing); }
.print.is-on { opacity: 0.6; scale: 1; }
.trail__stops { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(30px, 5vw, 66px); position: relative; }
.stop { --c: var(--accent); --off: 96px; position: relative; width: calc(50% - var(--off)); }
.stop:nth-child(odd) { text-align: right; }
.stop:nth-child(even) { margin-left: calc(50% + var(--off)); }
.stop__dot { position: absolute; top: 20px; width: 22px; height: 22px; border-radius: 50%; background: var(--bg); border: 2px solid var(--c); box-shadow: 0 0 0 6px color-mix(in oklab, var(--bg) 80%, transparent); transition: background-color 0.4s, box-shadow 0.4s; }
.stop:nth-child(odd) .stop__dot { right: calc(var(--off) * -1 + 40px - 11px); }
.stop:nth-child(even) .stop__dot { left: calc(var(--off) * -1 + 40px - 11px); }
.stop.is-reached .stop__dot { background: var(--c); box-shadow: 0 0 0 6px color-mix(in oklab, var(--bg) 80%, transparent), 0 0 26px 4px var(--c); }
.stop.is-next .stop__dot::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 1px solid var(--c); animation: ping 2.2s var(--ease-out) infinite; }
@keyframes ping { from { transform: scale(0.6); opacity: 1; } to { transform: scale(1.9); opacity: 0; } }
.stop__head { display: block; width: 100%; text-align: inherit; }
.stop__when { display: block; font-size: var(--step--1); font-weight: 600; font-stretch: 86%; letter-spacing: 0.03em; color: var(--c); }
.stop__name { text-transform: var(--head-case); display: block; font-family: var(--display); font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.7rem); font-weight: var(--dw); font-style: var(--display-style); font-variation-settings: "SOFT" var(--soft), "WONK" var(--wonk); letter-spacing: var(--display-track); line-height: 1; margin: 0.12em 0 0.16em; transition: color 0.3s; }
.stop__place { display: block; color: var(--ink-2); }
.stop__status { display: inline-flex; align-items: center; gap: 0.5em; margin-top: 0.7em; padding: 0.3em 0.8em; border-radius: 6px; border: 1px solid var(--line); font-size: var(--step--1); font-weight: 500; color: var(--ink-2); }
.stop__status::after { content: "+"; font-weight: 400; font-size: 1.15em; line-height: 1; transition: transform 0.4s var(--ease-out); }
.stop__head[aria-expanded="true"] .stop__status::after { transform: rotate(45deg); }
.stop.is-next .stop__status { border-color: var(--c); color: var(--ink); background: color-mix(in oklab, var(--c) 16%, transparent); }
.stop.is-past .stop__name { color: var(--ink-3); }
.stop__head:hover .stop__name { color: var(--c); }
.stop__more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.6s var(--ease-out); }
.stop__more > div { overflow: hidden; }
.stop__head[aria-expanded="true"] + .stop__more { grid-template-rows: 1fr; }
.stop__note { margin: 1rem 0 0.8rem; color: var(--ink-2); }
.stop__links { display: flex; flex-wrap: wrap; gap: 6px 22px; padding-bottom: 4px; }
.stop:nth-child(odd) .stop__links { justify-content: flex-end; }
.stop .link { color: var(--c); }

/* 13. Artist circle, manifesto, footer ------------------------------------ */
.circle__names { list-style: none; margin: 0 0 clamp(44px, 7vw, 100px); padding: 0; display: flex; flex-wrap: wrap; gap: 0.12em 0.5em; font-family: var(--display); font-size: clamp(2.3rem, 7.4vw, 7.4rem); line-height: 1.02; letter-spacing: -0.02em; }
.circle__names a { --w: 300; position: relative; display: inline-block; text-decoration: none; color: var(--ink-2); font-variation-settings: "SOFT" var(--soft), "WONK" var(--wonk), "opsz" 144; transition: color 0.3s; }
.circle__names li:nth-child(even) a { font-style: italic; }
.circle__names .ch { display: inline-block; font-weight: var(--w, 300); white-space: pre; }
.circle__names a::after { content: "\2197"; position: absolute; left: 100%; top: 0.1em; margin-left: 0.12em; font-size: 0.3em; font-style: normal; color: var(--accent); opacity: 0; transform: translate3d(-6px, 6px, 0); transition: opacity 0.3s, transform 0.4s var(--ease-out); }
.circle__names a:hover, .circle__names a:focus-visible { color: var(--ink); }
.circle__names a:hover::after, .circle__names a:focus-visible::after { opacity: 1; transform: none; }
.circle__support { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem clamp(24px, 5vw, 72px); max-width: 68rem; color: var(--ink-2); }
.circle__support strong { color: var(--ink); }
.circle__quiet { grid-column: 1 / -1; font-family: var(--display); font-style: italic; font-size: var(--step-1); font-weight: 400; font-variation-settings: "SOFT" 100; line-height: 1.4; color: var(--ink); max-width: 44rem; }
.note { margin-top: clamp(30px, 4vw, 54px); max-width: 52rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.note summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 0; font-weight: 600; cursor: pointer; list-style: none; }
.note summary::-webkit-details-marker { display: none; }
.note summary::after { content: "+"; font-size: 1.5rem; font-weight: 400; line-height: 1; color: var(--accent); transition: transform 0.4s var(--ease-out); }
.note[open] summary::after { transform: rotate(45deg); }
.note p { color: var(--ink-2); padding-bottom: 18px; margin: 0; max-width: 46rem; }

main > .manifesto { padding-block: clamp(110px, 18vw, 280px); text-align: center; }
.manifesto p { text-transform: var(--head-case); margin: 0 auto; max-width: 14ch; font-family: var(--display); font-size: clamp(3rem, 11vw, 11rem); line-height: 0.92; font-weight: var(--dw); font-style: var(--display-style); letter-spacing: var(--display-track); font-variation-settings: "SOFT" var(--soft), "WONK" var(--wonk), "opsz" 144; }
.manifesto .mw { display: inline-block; opacity: var(--o, 1); color: color-mix(in oklab, var(--ink), var(--accent) calc((1 - var(--o, 1)) * 100%)); }

.foot { margin-top: clamp(40px, 8vw, 120px); background: color-mix(in oklab, var(--bg) 55%, #000); }
.foot__ridge { display: block; position: absolute; left: 0; bottom: 100%; width: 100%; height: auto; aspect-ratio: 2400 / 500; fill: color-mix(in oklab, var(--bg) 55%, #000); margin-bottom: -1px; pointer-events: none; }
.foot__inner { position: relative; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding: clamp(40px, 6vw, 80px) var(--gutter) clamp(34px, 4vw, 56px); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.7fr) minmax(0, 1.5fr); gap: clamp(28px, 5vw, 72px); }
.foot__brand p { margin: 1rem 0 0; color: var(--ink-2); max-width: 22rem; }
.foot__heading { margin: 0 0 0.9rem; font-size: var(--step--1); font-weight: 600; font-stretch: 84%; letter-spacing: 0.03em; color: var(--accent); }
.foot__map { display: grid; align-content: start; gap: 6px; }
.foot__map a { text-decoration: none; color: var(--ink-2); width: fit-content; transition: color 0.2s, transform 0.3s var(--ease-out); }
.foot__map a:hover { color: var(--ink); transform: translate3d(5px, 0, 0); }
.foot__note p:not(.foot__heading) { color: var(--ink-2); font-size: 0.94rem; }
.foot__top { grid-column: 1 / -1; justify-self: start; }

/* 14. Art viewer ---------------------------------------------------------- */
.viewer { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; color: var(--ink); background: color-mix(in oklab, var(--bg) 93%, transparent); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); }
.viewer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; animation: viewer-in 0.45s var(--ease-out); }
.viewer::backdrop { background: rgb(4 2 5 / 0.7); }
@keyframes viewer-in { from { opacity: 0; } }
.viewer__bar, .viewer__foot { position: relative; z-index: 1; }
.viewer__bar { display: flex; align-items: center; gap: 18px; padding: 14px var(--gutter); }
.viewer__collection { margin-right: auto; font-size: var(--step--1); font-weight: 600; font-stretch: 86%; letter-spacing: 0.03em; color: var(--accent); }
.viewer__original { font-size: var(--step--1); color: var(--ink-2); text-underline-offset: 0.3em; }
.viewer__original:hover { color: var(--ink); }
.viewer__stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 var(--gutter); touch-action: pan-y; }
.viewer__stage img { max-width: 100%; max-height: 100%; min-height: 0; object-fit: contain; border-radius: 3px; box-shadow: 0 40px 120px -20px #000, 0 0 140px -40px rgb(var(--glow) / 0.7); transition: opacity 0.35s, transform 0.6s var(--ease-out); }
.viewer.is-loading .viewer__stage img { opacity: 0; transform: scale(0.97); }
.viewer__stage img:not([src]) { visibility: hidden; }
.viewer__loading { position: absolute; margin: 0; color: var(--ink-2); max-width: 26rem; text-align: center; }
.viewer__loading[hidden] { display: none; }
.viewer__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 16px var(--gutter) 22px; }
.viewer__text h2 { font-size: var(--step-2); line-height: 1.05; }
.viewer__text p { margin: 0.4rem 0 0; color: var(--ink-2); max-width: 44rem; }
.viewer__text p[hidden] { display: none; }
.viewer__nav { display: flex; align-items: center; gap: 14px; flex: none; font-variant-numeric: tabular-nums; color: var(--ink-2); }

/* Responsive collapses ---------------------------------------------------- */
@media (max-width: 900px) {
  .head--row { grid-template-columns: 1fr; align-items: start; }
  .chapter { display: block; }
  .chapter__art { margin-bottom: 34px; }
  .chapter--jaxx .chapter__art { width: min(100%, 440px); }
  .vault { grid-template-columns: 1fr; }
  .vault__door { grid-row: 1; width: clamp(140px, 36vw, 200px); }
  .dial__panel { grid-template-columns: 1fr; }
  .dial__panel h3 { grid-row: auto; margin-bottom: 1rem; }
  .circle__support { grid-template-columns: 1fr; }
  .foot__inner { grid-template-columns: 1fr 1fr; }
  .foot__note { grid-column: 1 / -1; }
  .game a { grid-template-columns: 2.4rem minmax(0, 1fr) auto; }
  .game__bar { grid-column: 2 / -1; grid-row: 2; }
}
@media (max-width: 760px) {
  .picker__keys { grid-template-columns: 1fr; }
  .key { min-height: 168px; }
  .dial__track { margin-inline: 40px; }
  .dial__stops button { width: 96px; margin-left: -48px; font-size: 1.05rem; }
  .stop, .stop:nth-child(even) { width: auto; margin-left: 58px; text-align: left; }
  .stop:nth-child(odd) { text-align: left; }
  .stop:nth-child(odd) .stop__dot { right: auto; left: -52px; }
  .stop:nth-child(even) .stop__dot { left: -36px; }
  .stop:nth-child(odd) .stop__links { justify-content: flex-start; }
  .viewer__foot { flex-direction: column; align-items: stretch; gap: 12px; }
  .viewer__nav { justify-content: space-between; }
  .viewer__original { display: none; }
  .foot__inner { grid-template-columns: 1fr; }
  .cover { display: none; }
  .game__thumb { display: block; grid-column: 2 / -1; width: 100%; max-width: 280px; aspect-ratio: 460 / 215; object-fit: cover; border-radius: 6px; margin-top: 6px; }
  .lantern { width: 560px; height: 560px; margin: -280px 0 0 -280px; }
}

/* 404 */
.lost { min-height: 100vh; display: grid; place-content: center; justify-items: start; gap: 1.2rem; padding: var(--gutter); }
.lost h1 { font-size: var(--step-4); font-style: italic; font-weight: 460; font-variation-settings: "SOFT" 100, "WONK" 1; }
.lost p { color: var(--ink-2); max-width: 30rem; margin: 0; font-size: var(--step-1); }

/* 16. Room character ------------------------------------------------------
   Beyond colour: each room has its own shapes, lettering case, scenery,
   texture and tempo. Jaxx is round, soft and slow. Knox is cut, heavy and
   quick. The shared den sits between them. */

/* Wolf-specific lettering keeps its own case wherever it appears. */
.chapter--jaxx h3, #panel-jaxx h3, #panel-together h3, .gate__title, .lost h1 { text-transform: none; }
.chapter--knox h3, #panel-knox h3, .dial__stops button[data-story="knox"] { text-transform: uppercase; letter-spacing: -0.02em; word-spacing: 0.14em; }
.chapter--knox .chapter__copy h3 { font-size: calc(var(--step-4) * 0.8); }
.chapter--knox .chapter__ghost { text-transform: uppercase; }

/* Kicker marks: a line in the den, a petal for Jaxx, a chevron for Knox. */
:root[data-room="jaxx"] .kicker:not(.kicker--warn)::before { width: 0.8em; height: 0.8em; border-radius: 0 62% 62% 62%; transform: rotate(45deg); opacity: 1; }
:root[data-room="knox"] .kicker { text-transform: uppercase; letter-spacing: 0.12em; }
:root[data-room="knox"] .kicker:not(.kicker--warn)::before { width: 1.05em; height: 0.8em; opacity: 1; clip-path: polygon(0 0, 46% 0, 100% 50%, 46% 100%, 0 100%, 54% 50%); }

/* Buttons and small controls */
:root[data-room="jaxx"] .btn--solid { box-shadow: 0 12px 44px -8px rgb(var(--glow) / 0.95), inset 0 1px 0 rgb(255 255 255 / 0.55); }
:root[data-room="knox"] .btn--solid { box-shadow: none; }
:root[data-room="knox"] .btn--line { border: 0; border-left: 3px solid var(--accent); background: var(--surface); }
:root[data-room="knox"] .btn--line:hover { background: color-mix(in oklab, var(--surface), var(--accent) 22%); color: var(--ink); }
:root[data-room="knox"] .round { border: 0; border-radius: 0; background: var(--surface); clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px); }
:root[data-room="knox"] .handle, :root[data-room="knox"] .stop__status, :root[data-room="knox"] .gate__plate { border-radius: 0; }
:root[data-room="knox"] .handle, :root[data-room="knox"] .stop__status { text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.8rem; }
:root[data-room="jaxx"] .handle, :root[data-room="jaxx"] .stop__status { border-radius: 999px; }
:root[data-room="knox"] .game__bar, :root[data-room="knox"] .game__bar span { border-radius: 0; }
:root[data-room="knox"] .game__bar { height: 8px; }
:root[data-room="jaxx"] .game__bar { height: 8px; border-radius: 8px; }
:root[data-room="knox"] .stop__dot { border-radius: 0; transform: rotate(45deg); }
:root[data-room="knox"] .stop__name { font-size: clamp(1.5rem, 0.9rem + 2.1vw, 3rem); }
:root[data-room="knox"] .stop.is-next .stop__dot::after { border-radius: 0; }
:root[data-room="knox"] .masthead.is-scrolled::before { border-bottom-color: rgb(255 138 58 / 0.55); }
:root[data-room="knox"] .link { text-transform: uppercase; letter-spacing: 0.07em; font-size: 0.86em; }
:root[data-room="jaxx"] .link { font-family: var(--display); font-style: italic; font-weight: 500; font-size: 1.12em; font-variation-settings: "SOFT" 100, "WONK" 1; }

/* Frames: rose-gold and rounded for Jaxx, blackened steel with corner brackets for Knox. */
:root[data-room="jaxx"] .frame { background: linear-gradient(150deg, #f8d6cd, #d2949a 36%, #6f2c44); }
:root[data-room="jaxx"] .chapter .frame { --rest: -1.6deg; }
:root[data-room="knox"] .frame { background: linear-gradient(150deg, #2d2723, #181412 45%, #0a0807); }
:root[data-room="knox"] .frame::before, :root[data-room="knox"] .frame::after { content: ""; position: absolute; width: 30px; height: 30px; border: 2px solid var(--knox); pointer-events: none; }
:root[data-room="knox"] .frame::before { left: -8px; top: -8px; border-right: 0; border-bottom: 0; }
:root[data-room="knox"] .frame::after { right: -8px; bottom: -8px; border-left: 0; border-top: 0; }
:root[data-room="knox"] .hang::before { background: rgb(255 170 100 / 0.5); }
:root[data-room="knox"] .shelf__rail { border-radius: 0; background: linear-gradient(90deg, transparent, #4a3020 6%, #96633a 50%, #4a3020 94%, transparent); }
:root[data-room="jaxx"] .shelf__rail { background: linear-gradient(90deg, transparent, #8d4a5f 6%, #e2a5ad 50%, #8d4a5f 94%, transparent); }

/* Link doors: arched for Jaxx, cut-cornered with a hazard strip for Knox. */
:root[data-room="jaxx"] .door__leaf::before { border-radius: 999px 999px 6px 6px; inset: 12px; }
:root[data-room="jaxx"] .door__type { margin-top: 46px; text-align: center; }
:root[data-room="jaxx"] .door__plate { top: 22px; right: 50%; transform: translateX(50%); border-radius: 999px; }
:root[data-room="jaxx"] .door__room { padding-top: 40%; }
:root[data-room="knox"] .door__leaf, :root[data-room="knox"] .door__room { clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 0 100%); }
:root[data-room="knox"] .door__leaf::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: repeating-linear-gradient(-45deg, var(--c) 0 9px, transparent 9px 18px); opacity: 0.85; }
:root[data-room="knox"] .door__plate { right: 34px; border-radius: 0; }
:root[data-room="knox"] .door__type { text-transform: uppercase; letter-spacing: 0.1em; }
:root[data-room="knox"] .vault__panel { border-radius: 0; }
:root[data-room="knox"] .vault__plate, :root[data-room="knox"] .vault__lock { border-radius: 0; }

/* How headlines arrive: Jaxx drifts up out of a blur, Knox cuts in from the side. */
:root[data-room="jaxx"].motion [data-split] .w { transition: opacity 1.3s var(--ease-out), transform 1.6s var(--ease-out), filter 1.3s var(--ease-out); transition-delay: calc(var(--i, 0) * 95ms); }
:root[data-room="jaxx"].motion [data-split]:not(.is-in) .w { transform: translate3d(0, 0.6em, 0) rotate(5deg); filter: blur(16px); }
:root[data-room="knox"].motion [data-split] .w { transition: opacity 0.3s linear, transform 0.55s cubic-bezier(0.16, 1, 0.3, 1); transition-delay: calc(var(--i, 0) * 38ms); }
:root[data-room="knox"].motion [data-split]:not(.is-in) .w { transform: translate3d(-0.8em, 0, 0) skewX(-16deg); filter: none; }

/* Background skin behind every section */
.skin { position: absolute; inset: -6%; opacity: 0; transition: opacity 1.2s; }
:root[data-room="jaxx"] .skin--jaxx, :root[data-room="knox"] .skin--knox { opacity: 1; }
.skin--jaxx { background:
    radial-gradient(60vmax 34vmax at 50% -4%, rgb(255 170 190 / 0.24), transparent 72%),
    radial-gradient(16vmax 16vmax at 12% 22%, rgb(255 150 175 / 0.16), transparent 70%),
    radial-gradient(9vmax 9vmax at 27% 60%, rgb(255 205 190 / 0.12), transparent 70%),
    radial-gradient(22vmax 22vmax at 86% 68%, rgb(238 58 95 / 0.16), transparent 70%),
    radial-gradient(11vmax 11vmax at 72% 20%, rgb(255 190 200 / 0.13), transparent 70%),
    radial-gradient(7vmax 7vmax at 58% 86%, rgb(255 160 180 / 0.14), transparent 70%);
  animation: skin-drift 26s ease-in-out infinite alternate paused; }
@keyframes skin-drift { to { transform: translate3d(2.5%, -3%, 0) scale(1.07); } }
.skin--knox::before { content: ""; position: absolute; inset: -90px 0; background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='132' height='84'><path d='M-6 74 66 24l72 50' fill='none' stroke='%23ff8a3a' stroke-opacity='.055' stroke-width='10'/></svg>") 0 0 / 132px 84px; animation: chevrons 7s linear infinite paused; }
@keyframes chevrons { to { transform: translate3d(0, -84px, 0); } }
.skin--knox::after { content: ""; position: absolute; inset: 0; background: radial-gradient(74% 48% at 50% 106%, rgb(255 132 40 / 0.46), rgb(255 90 20 / 0.13) 56%, transparent 76%), linear-gradient(90deg, rgb(0 0 0 / 0.55), transparent 20%, transparent 80%, rgb(0 0 0 / 0.55)); transform-origin: 50% 100%; animation: fire 3.4s ease-in-out infinite paused; }
:root[data-room="jaxx"] .skin--jaxx, :root[data-room="knox"] .skin--knox::before, :root[data-room="knox"] .skin--knox::after { animation-play-state: running; }
@keyframes fire { 0%, 100% { opacity: 0.84; transform: scale(1); } 17% { opacity: 1; transform: scale(1.05, 1.09); } 33% { opacity: 0.76; transform: scale(0.97); } 52% { opacity: 0.96; transform: scale(1.03, 1.06); } 70% { opacity: 0.8; transform: scale(0.99); } 86% { opacity: 1; transform: scale(1.07, 1.11); } }

/* Hero scenery */
.scene__lights { top: 5%; height: 34%; opacity: 0; transition: opacity 1s; }
.lights { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.lights__wire, .lights__cord { fill: none; stroke: #14050e; stroke-width: 3; }
.lights__halo { fill: url(#bulb-glow); }
.lights__core { fill: #fff3df; }
.lights--b { animation: twinkle 3.4s ease-in-out infinite paused; }
.scene__fire { position: absolute; left: 34%; bottom: 22%; width: 46vmax; height: 27vmax; opacity: 0; transition: opacity 1s; will-change: transform; }
.scene__fire-glow { position: absolute; inset: 0; background: radial-gradient(closest-side, rgb(255 242 196 / 0.96), rgb(255 162 52 / 0.8) 17%, rgb(255 96 20 / 0.36) 47%, transparent 76%); transform-origin: 50% 70%; animation: fire 2.8s ease-in-out infinite paused; }
.scene__smoke { position: absolute; left: 30%; bottom: 44%; width: 40%; height: 200%; background: radial-gradient(50% 28% at 50% 80%, rgb(86 54 36 / 0.6), transparent), radial-gradient(62% 32% at 64% 48%, rgb(70 44 30 / 0.42), transparent), radial-gradient(72% 34% at 38% 18%, rgb(56 36 26 / 0.3), transparent); animation: smoke 12s ease-in-out infinite alternate paused; }
@keyframes smoke { from { transform: translate3d(-4%, 3%, 0) scale(0.95); } to { transform: translate3d(6%, -5%, 0) scale(1.09); } }

:root[data-room="jaxx"] .scene__lights { opacity: 1; }
:root[data-room="jaxx"] .lights--b { animation-play-state: running; }
:root[data-room="jaxx"] .scene__moon { width: clamp(150px, 19vw, 310px); right: 8%; top: 4%; }
:root[data-room="jaxx"] .scene__moon::after { content: ""; position: absolute; inset: -20%; border-radius: 50%; border: 1px solid rgb(255 222 228 / 0.38); box-shadow: 0 0 0 2.6vw rgb(255 180 195 / 0.05); }
:root[data-room="jaxx"] .scene__peaks { opacity: 0.36; }
:root[data-room="jaxx"] .scene__stars { opacity: 0.5; }
:root[data-room="jaxx"] .scene__fog--far { height: 42%; background: linear-gradient(180deg, transparent, rgb(var(--fog) / 0.5) 55%, transparent); }
:root[data-room="jaxx"] .wordmark__row--jaxx .wordmark__l { text-shadow: var(--cast-x, 0px) var(--cast-y, 14px) var(--cast-b, 40px) rgb(44 4 22 / 0.55), 0 0 64px rgb(255 111 140 / 0.6); }

:root[data-room="knox"] .scene__fire { opacity: 1; }
:root[data-room="knox"] .scene__fire-glow, :root[data-room="knox"] .scene__smoke { animation-play-state: running; }
:root[data-room="knox"] .scene__moon { width: clamp(52px, 5.6vw, 92px); right: 10%; top: 12%; }
:root[data-room="knox"] .scene__moon span { box-shadow: none; -webkit-mask: radial-gradient(circle at 70% 36%, transparent 56%, #000 58%); mask: radial-gradient(circle at 70% 36%, transparent 56%, #000 58%); }
:root[data-room="knox"] .scene__peaks { opacity: 1; stroke: rgb(255 150 70 / 0.5); stroke-width: 4; }
:root[data-room="knox"] .wordmark__row--jaxx .wordmark__l { color: #ff9a4d; text-shadow: var(--cast-x, 0px) var(--cast-y, 14px) var(--cast-b, 40px) rgb(0 0 0 / 0.7), 0 0 46px rgb(255 120 30 / 0.75); }

@media (max-width: 960px) {
  :root[data-room="knox"] .stop__name { font-size: clamp(1.45rem, 0.7rem + 1.7vw, 2rem); }
}
@media (max-width: 760px) {
  :root[data-room="jaxx"] .scene__moon { top: 9%; right: 6%; }
  :root[data-room="knox"] .scene__moon { top: 40%; right: 9%; }
  .scene__fire { left: 10%; width: 80vmax; height: 46vmax; bottom: 26%; }
}
@media (hover: none), (pointer: coarse) {
  :root[data-room="jaxx"] .door__knob { display: none; }
  :root[data-room="jaxx"] .door__leaf { padding-top: 26px; }
}

/* The lantern: wide and soft for Jaxx, tight and flickering for Knox. */
:root[data-room="jaxx"] .lantern { width: 1120px; height: 1120px; margin: -560px 0 0 -560px; }
:root[data-room="knox"] .lantern { width: 640px; height: 640px; margin: -320px 0 0 -320px; background: radial-gradient(closest-side, rgb(var(--glow) / 0.3), rgb(var(--glow) / 0.09) 44%, transparent 72%); }
:root[data-room="knox"] .has-lantern .lantern { animation: lantern-flicker 2.3s ease-in-out infinite; }
@keyframes lantern-flicker { 0%, 100% { opacity: 1; } 22% { opacity: 0.74; } 41% { opacity: 0.96; } 63% { opacity: 0.7; } 80% { opacity: 0.92; } }

/* 17. Changing rooms ------------------------------------------------------
   A staged scene change: the old room dims, letterbox bars close in, the new
   room's light crosses the page in that room's own shape, and its name is
   held on screen for a beat. app.js drives the timing. */
::view-transition { pointer-events: none; }
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-old(root) { z-index: 1; }
::view-transition-new(root) { z-index: 2; }
::view-transition-group(room-fx) { animation: none; }
::view-transition-old(room-fx) { display: none; }
::view-transition-new(room-fx) { animation: none; }

.room-fx { position: fixed; inset: 0; z-index: 95; pointer-events: none; overflow: hidden; visibility: hidden; }
.room-fx.is-on { visibility: visible; view-transition-name: room-fx; }
.fx-wash { position: absolute; inset: 0; opacity: 0; }
.fx-edge { position: absolute; opacity: 0; will-change: transform, opacity; }
.fx-edge--ring { left: calc(var(--fx-x, 50vw) - var(--fx-r, 100vmax)); top: calc(var(--fx-y, 50vh) - var(--fx-r, 100vmax)); width: calc(var(--fx-r, 100vmax) * 2); height: calc(var(--fx-r, 100vmax) * 2); border-radius: 50%; background: radial-gradient(closest-side, transparent 58%, rgb(255 120 160 / 0.14) 76%, rgb(255 150 180 / 0.4) 91%, rgb(255 232 235 / 0.95) 98%, transparent 100%); }
.fx-edge--slash { left: 0; top: 0; height: 100%; width: calc(30vw + 20px); }
.fx-edge--slash i { position: absolute; top: 0; bottom: 0; }
.fx-edge--slash i:first-child { left: -260px; right: 0; background: linear-gradient(90deg, transparent, rgb(255 120 30 / 0.55)); clip-path: polygon(0 0, 280px 0, 100% 50%, 280px 100%, 0 100%, calc(100% - 280px) 50%); }
.fx-edge--slash i:last-child { left: 0; right: 0; background: linear-gradient(90deg, #ff9a3c, #fff4d8); clip-path: polygon(0 0, 20px 0, 100% 50%, 20px 100%, 0 100%, calc(100% - 20px) 50%); }
.fx-edge--curtain { top: 0; bottom: 0; left: 50%; width: 10px; margin-left: -5px; }
.fx-edge--left { background: linear-gradient(90deg, #fff, #ff9db0); box-shadow: 0 0 140px 50px rgb(238 58 95 / 0.55); }
.fx-edge--right { background: linear-gradient(90deg, #ffc27a, #fff); box-shadow: 0 0 140px 50px rgb(242 122 44 / 0.55); }
.fx-bar { position: absolute; left: 0; right: 0; height: 9vh; background: #050205; }
.fx-bar--top { top: 0; transform: translate3d(0, -102%, 0); }
.fx-bar--bottom { bottom: 0; transform: translate3d(0, 102%, 0); }
.fx-card { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: clamp(10px, 1.6vw, 22px); padding: 12vh var(--gutter); text-align: center; opacity: 0; }
.fx-dim { position: absolute; inset: 0; opacity: 0; background: radial-gradient(ellipse 90% 80% at 50% 50%, rgb(5 2 6 / 0.6), rgb(5 2 6 / 0.86)); }
.room-fx.is-on .fx-dim { animation: fx-dim 2.6s cubic-bezier(0.4, 0, 0.3, 1) both; }
@keyframes fx-dim { 0% { opacity: 0; } 16%, 62% { opacity: 1; } 100% { opacity: 0; } }
.fx-card__mark { width: 3.4rem; height: 1px; background: var(--accent); }
:root[data-room="jaxx"] .fx-card__mark { width: 1rem; height: 1rem; border-radius: 0 62% 62% 62%; transform: rotate(45deg); }
:root[data-room="knox"] .fx-card__mark { width: 2rem; height: 1.3rem; clip-path: polygon(0 0, 46% 0, 100% 50%, 46% 100%, 0 100%, 54% 50%); }
.fx-card strong { font-family: var(--display); font-size: clamp(2.9rem, 11.5vw, 12.5rem); line-height: 0.9; font-weight: var(--dw); font-style: var(--display-style); font-variation-settings: "SOFT" var(--soft), "WONK" var(--wonk), "opsz" 144; letter-spacing: var(--display-track); word-spacing: var(--display-word); text-transform: var(--head-case); text-shadow: 0 0 90px rgb(var(--glow) / 0.65), 0 8px 40px #000; }
.room-fx[data-to="jaxx"] .fx-card strong { font-style: italic; font-weight: 440; font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144; text-transform: none; }
.room-fx[data-to="den"] .fx-card strong { font-style: normal; font-weight: 620; font-variation-settings: "SOFT" 50, "WONK" 0, "opsz" 144; text-transform: none; }
.room-fx[data-to="knox"] .fx-card strong { font-style: normal; font-weight: 860; font-variation-settings: "SOFT" 0, "WONK" 0, "opsz" 144; text-transform: uppercase; }
.fx-card span:last-child { max-width: 34rem; font-size: var(--step-1); line-height: 1.4; color: var(--ink-2); text-shadow: 0 2px 20px #000; }

.room-fx.is-on .fx-bar--top { animation: fx-bar-top 2.6s cubic-bezier(0.6, 0, 0.2, 1) both; }
.room-fx.is-on .fx-bar--bottom { animation: fx-bar-bottom 2.6s cubic-bezier(0.6, 0, 0.2, 1) both; }
@keyframes fx-bar-top { 0% { transform: translate3d(0, -102%, 0); } 15%, 76% { transform: none; } 100% { transform: translate3d(0, -102%, 0); } }
@keyframes fx-bar-bottom { 0% { transform: translate3d(0, 102%, 0); } 15%, 76% { transform: none; } 100% { transform: translate3d(0, 102%, 0); } }
.room-fx.is-on .fx-card { animation: fx-card 2.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes fx-card { 0%, 10% { opacity: 0; transform: scale(1.14); filter: blur(16px); } 34% { opacity: 1; transform: scale(1); filter: blur(0); } 72% { opacity: 1; transform: scale(0.985); filter: blur(0); } 100% { opacity: 0; transform: scale(0.965) translate3d(0, -2vh, 0); filter: blur(10px); } }
.room-fx.is-on .fx-card strong { animation: fx-track 2.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes fx-track { 0%, 10% { letter-spacing: 0.2em; } 40%, 100% { letter-spacing: var(--display-track); } }

/* Lite mode: app.js switches this on by itself if the device cannot keep up. */
.lite .weather--front, .lite .lantern, .lite .grain { display: none; }
.lite .stars { animation: none; }
.lite .masthead.is-scrolled::before { backdrop-filter: none; -webkit-backdrop-filter: none; background: color-mix(in oklab, var(--bg) 96%, transparent); }
.lite .trail__line { filter: none; }

/* 15. Motion preferences -------------------------------------------------- */
/* "Slow it down" and the system reduce-motion setting both land here. */
.quiet-mode *, .quiet-mode *::before, .quiet-mode *::after { animation: none !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
.quiet-mode .weather, .quiet-mode .lantern { display: none; }
.quiet-mode main > .hero { height: auto; }
.quiet-mode .hero__pin { position: relative; }
.quiet-mode .hang { transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .weather, .lantern { display: none; }
  main > .hero { height: auto; }
  .hero__pin { position: relative; }
}
