/* ============================================================
   AURA One — Atelier
   Sculptural gallery: gradient fog, studio-rail camera moves,
   jewellery-grade material close-ups.
   ============================================================ */
:root {
  --bone: #ece8df;
  --ink: #1c1d20;
  --ink-soft: #4a4c50;
  --copper: #b06a3c;
  --serif: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --grot: 'Space Grotesk', 'Avenir Next', 'Segoe UI', sans-serif;
  --ease-out: cubic-bezier(.19, 1, .22, 1);
  --pad: clamp(1.25rem, 4vw, 4rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { height: auto; }
body {
  font-family: var(--grot);
  color: var(--ink);
  background: #cfccc4;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: rgba(176, 106, 60, .25); }
a { color: inherit; }
button { font: inherit; color: inherit; }

/* ============================================================
   LOADER
   ============================================================ */
#loader {
  position: fixed; inset: 0; z-index: 60;
  display: grid; place-items: center;
  background: linear-gradient(160deg, #f1ede4 0%, #dcd8cf 55%, #c2bfb8 100%);
  transition: opacity 1.1s var(--ease-out), visibility 0s 1.1s;
}
#loader.off { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-inner { display: grid; justify-items: center; gap: 1.1rem; }
.loader-mark { width: 64px; height: 64px; color: var(--ink); animation: markspin 2.6s linear infinite; }
@keyframes markspin { to { transform: rotate(360deg); } }
.loader-word { font-family: var(--serif); font-size: 1.6rem; letter-spacing: .32em; font-weight: 400; }
.loader-word span { font-style: italic; font-weight: 300; letter-spacing: .1em; }
.loader-track { width: 148px; height: 1px; background: rgba(28, 29, 32, .18); overflow: hidden; }
.loader-track i { display: block; height: 100%; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .45s ease; }
.loader-pct { font-size: .68rem; letter-spacing: .2em; color: var(--ink-soft); }
.loader-pct em { font-style: normal; opacity: .5; }

/* ============================================================
   BACKDROP — gradient fog + room + atmosphere
   ============================================================ */
#backdrop { position: fixed; inset: 0; z-index: 0; overflow: hidden; transition: background 1.4s ease; }
body[data-chapter="hero"]     #backdrop { background: radial-gradient(130% 100% at 50% 12%, #f6f2e9 0%, #e3dfd6 42%, #c6c6c2 78%, #aeafb0 100%); }
body[data-chapter="material"] #backdrop { background: radial-gradient(120% 100% at 62% 20%, #efeadf 0%, #dcd6c9 48%, #b3aea2 100%); }
body[data-chapter="explode"]  #backdrop { background: linear-gradient(175deg, #e6e6e4 0%, #cfcfc9 55%, #a9aaa6 100%); }
body[data-chapter="light"]    #backdrop { background: radial-gradient(120% 110% at 50% 30%, #b9b6ae 0%, #8f8d88 60%, #6f6e6b 100%); }
body[data-chapter="light"][data-light="dusk"]  #backdrop { background: radial-gradient(130% 110% at 45% 25%, #6b3448 0%, #3c2440 55%, #1d1526 100%); }
body[data-chapter="light"][data-light="neon"]  #backdrop { background: radial-gradient(130% 110% at 50% 30%, #1d2140 0%, #0d1024 60%, #05060e 100%); }
body[data-chapter="space"]    #backdrop { background: transparent; }
body[data-chapter="specs"]    #backdrop { background: linear-gradient(168deg, #232428 0%, #17181b 55%, #101114 100%); }
body[data-chapter="reserve"]  #backdrop { background: radial-gradient(130% 110% at 50% 18%, #574043 0%, #33222e 50%, #171219 100%); }

/* drifting fog blobs — living gradient mist */
.fog { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; mix-blend-mode: screen; transition: background 1.4s ease, opacity 1s ease; }
.fog-a { width: 62vmax; height: 62vmax; left: -18vmax; top: -22vmax; background: radial-gradient(circle, rgba(255,252,244,.9), transparent 62%); animation: drift-a 26s ease-in-out infinite alternate; }
.fog-b { width: 48vmax; height: 48vmax; right: -16vmax; top: 12vmax; background: radial-gradient(circle, rgba(216,222,236,.8), transparent 62%); animation: drift-b 32s ease-in-out infinite alternate; }
.fog-c { width: 40vmax; height: 40vmax; left: 18vmax; bottom: -20vmax; background: radial-gradient(circle, rgba(226,214,198,.75), transparent 60%); animation: drift-c 23s ease-in-out infinite alternate; }
@keyframes drift-a { to { transform: translate(9vmax, 6vmax) scale(1.12); } }
@keyframes drift-b { to { transform: translate(-8vmax, -5vmax) scale(.92); } }
@keyframes drift-c { to { transform: translate(-6vmax, -7vmax) scale(1.08); } }
body[data-chapter="light"][data-light="dusk"] .fog { opacity: .4; }
body[data-chapter="light"][data-light="neon"] .fog { opacity: .5; }
body[data-chapter="light"][data-light="dusk"] .fog-a { background: radial-gradient(circle, rgba(255,140,80,.5), transparent 62%); }
body[data-chapter="light"][data-light="dusk"] .fog-b { background: radial-gradient(circle, rgba(122,77,255,.4), transparent 62%); }
body[data-chapter="light"][data-light="neon"] .fog-a { background: radial-gradient(circle, rgba(34,230,255,.34), transparent 62%); }
body[data-chapter="light"][data-light="neon"] .fog-b { background: radial-gradient(circle, rgba(255,47,158,.32), transparent 62%); }
body[data-chapter="specs"] .fog { opacity: .12; }
body[data-chapter="space"] .fog { opacity: 0; }

/* explode chapter: faint technical grid */
body[data-chapter="explode"] #backdrop::after {
  content: ''; position: absolute; inset: 0; opacity: .5;
  background:
    repeating-linear-gradient(0deg, rgba(28,29,32,.05) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(90deg, rgba(28,29,32,.05) 0 1px, transparent 1px 72px);
  mask-image: radial-gradient(90% 80% at 50% 45%, #000 30%, transparent 100%);
}

/* vignette + grain */
.vignette { position: absolute; inset: 0; background: radial-gradient(115% 100% at 50% 42%, transparent 55%, rgba(15, 14, 13, .26) 100%); transition: opacity 1s ease; }
body[data-chapter="light"][data-light="neon"] .vignette, body[data-chapter="light"][data-light="dusk"] .vignette, body[data-chapter="specs"] .vignette { opacity: 1.6; }
.grain { position: absolute; inset: -40px; opacity: .05; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
}

/* ============================================================
   ROOM — "see it in your space" styled interior
   ============================================================ */
.room { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; pointer-events: none; }
body[data-chapter="space"] .room { opacity: 1; }
.room-wall { position: absolute; inset: 0 0 30% 0; background:
  radial-gradient(90% 120% at 18% 30%, rgba(255,241,214,.5), transparent 55%),
  linear-gradient(168deg, #e7dcc8 0%, #d9cbb2 60%, #cbbc9f 100%); }
.room-window { position: absolute; left: 7%; top: 9%; width: 21%; height: 46%;
  background: linear-gradient(200deg, #fffdf4 0%, #f6e8c8 100%);
  border-radius: 4px; filter: blur(2px);
  box-shadow: 0 0 90px 40px rgba(255, 238, 200, .55), inset 0 0 0 6px rgba(160, 138, 102, .35); }
.room-glow { position: absolute; left: 2%; top: 14%; width: 34%; height: 80%;
  background: radial-gradient(60% 60% at 40% 30%, rgba(255, 232, 185, .5), transparent 70%); filter: blur(18px); }
.room-floor { position: absolute; left: 0; right: 0; bottom: 0; height: 32%;
  background: linear-gradient(180deg, #8d7960 0%, #6e5c47 30%, #4f4132 100%); }
.room-base { position: absolute; left: 0; right: 0; bottom: 32%; height: 10px;
  background: linear-gradient(180deg, #f4ead6, #b8a586); box-shadow: 0 2px 12px rgba(0,0,0,.25); }
.room-console { position: absolute; left: 30%; bottom: 26%; width: 40%; height: 9%;
  background: linear-gradient(180deg, #a5855f 0%, #7d6448 100%);
  border-radius: 3px; box-shadow: 0 18px 30px rgba(30, 22, 12, .4); }
.room-plant { position: absolute; right: 6%; bottom: 26%; width: 14%; height: 42%; filter: blur(1.5px) brightness(.7) sepia(.3); }
.room-plant i { position: absolute; bottom: 0; left: 50%; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: #31402a; transform-origin: bottom center; }
.room-plant i:nth-child(1) { width: 34%; height: 88%; transform: translateX(-50%) rotate(-8deg); }
.room-plant i:nth-child(2) { width: 30%; height: 70%; transform: translateX(-95%) rotate(-22deg); }
.room-plant i:nth-child(3) { width: 30%; height: 76%; transform: translateX(-5%) rotate(16deg); }
.room-frame { position: absolute; right: 18%; top: 14%; width: 12%; height: 26%;
  border: 7px solid #5c4a36; background: linear-gradient(160deg, #cdbf9f, #8f7a5c); box-shadow: 0 10px 30px rgba(40,30,15,.3); }

/* ============================================================
   STAGE + SHADOW
   ============================================================ */
#stage { position: fixed; inset: 0; z-index: 2; touch-action: pan-y; cursor: grab; outline: none; }
#stage[data-mode="move"] { cursor: move; }
#stage:focus-visible { box-shadow: inset 0 0 0 2px rgba(176, 106, 60, .55); }
#stage.grabbing { cursor: grabbing; }
#gl { width: 100%; height: 100%; display: block; }

#blobshadow {
  position: fixed; left: 0; top: 0; z-index: 1;
  width: 340px; height: 88px; border-radius: 50%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(20, 16, 12, .55), rgba(20, 16, 12, .18) 55%, transparent 75%);
  filter: blur(14px);
  pointer-events: none; opacity: .5;
  transition: opacity .8s ease;
}

/* ============================================================
   ANNOTATIONS
   ============================================================ */
#annos { position: fixed; inset: 0; z-index: 3; pointer-events: none; }
#anno-lines { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .5s ease; }
#anno-lines path { fill: none; stroke: rgba(28, 29, 32, .65); stroke-width: 1; }
#anno-lines circle { fill: var(--copper); }
.anno { position: absolute; left: var(--ax); top: var(--ay); width: min(230px, 30vw); }
.anno-card {
  background: rgba(244, 241, 233, .82); backdrop-filter: blur(10px);
  border: 1px solid rgba(28, 29, 32, .14); border-left: 2px solid var(--copper);
  padding: .7rem .85rem; border-radius: 2px;
  opacity: 0; transform: translateY(10px);
  transition: opacity .5s ease, transform .6s var(--ease-out);
  box-shadow: 0 14px 34px rgba(20, 18, 14, .14);
}
.anno.on .anno-card { opacity: 1; transform: translateY(0); }
.anno-card b { display: block; font-family: var(--grot); font-weight: 500; font-size: .78rem; letter-spacing: .02em; }
.anno-card span { display: block; margin-top: .2rem; font-size: .66rem; line-height: 1.45; color: var(--ink-soft); }

/* ============================================================
   CHROME — header, rail, hint
   ============================================================ */
#hdr {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem var(--pad); pointer-events: none;
  transition: color 1s ease;
}
#hdr > * { pointer-events: auto; }
.wordmark { font-family: var(--serif); font-size: 1.15rem; letter-spacing: .3em; text-decoration: none; font-weight: 500; }
.wordmark i { font-style: italic; font-weight: 300; letter-spacing: .06em; margin-left: .15em; }
.hdr-mid { font-size: .68rem; letter-spacing: .28em; color: inherit; opacity: .7; font-variant-numeric: tabular-nums; }
.hdr-mid i { opacity: .4; margin: 0 .35em; font-style: normal; }
.pill {
  display: inline-flex; align-items: baseline; gap: .55em;
  border: 1px solid currentColor; border-radius: 999px;
  padding: .5em 1.15em; font-size: .72rem; letter-spacing: .12em; text-decoration: none;
  transition: transform .35s var(--ease-out), background .3s ease, color .3s ease;
  transform: translate(var(--mx, 0), var(--my, 0));
}
.pill b { font-weight: 500; opacity: .75; }
.pill:hover { background: var(--ink); color: var(--bone); border-color: var(--ink); }

#rail {
  position: fixed; right: clamp(.6rem, 2vw, 1.6rem); top: 50%; transform: translateY(-50%);
  z-index: 20; display: grid; gap: 1.05rem;
}
#rail a { display: flex; align-items: center; gap: .6em; flex-direction: row-reverse; text-decoration: none; }
#rail a i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .35; transition: all .4s ease; }
#rail a span { font-size: .6rem; letter-spacing: .22em; text-transform: uppercase; opacity: 0; transform: translateX(6px); transition: all .4s ease; }
#rail a:hover span, #rail a:focus-visible span { opacity: .85; transform: translateX(0); }
#rail a.on i { opacity: 1; transform: scale(1.7); box-shadow: 0 0 0 4px rgba(176, 106, 60, .25); background: var(--copper); }
body[data-chapter="specs"] #rail, body[data-chapter="specs"] #hdr,
body[data-chapter="light"][data-light="dusk"] #rail, body[data-chapter="light"][data-light="dusk"] #hdr,
body[data-chapter="light"][data-light="neon"] #rail, body[data-chapter="light"][data-light="neon"] #hdr,
body[data-chapter="reserve"] #rail, body[data-chapter="reserve"] #hdr { color: var(--bone); }
body[data-chapter="light"][data-light="dusk"] .pill:hover, body[data-chapter="light"][data-light="neon"] .pill:hover,
body[data-chapter="specs"] .pill:hover, body[data-chapter="reserve"] .pill:hover { background: var(--bone); color: var(--ink); border-color: var(--bone); }

#hint {
  position: fixed; left: 50%; bottom: 1.4rem; transform: translateX(-50%);
  z-index: 15; display: flex; align-items: center; gap: .55em;
  padding: .55em 1.05em; border-radius: 999px;
  background: rgba(28, 29, 32, .72); color: #f2eee4; backdrop-filter: blur(8px);
  font-size: .68rem; letter-spacing: .18em; text-transform: uppercase;
  opacity: 0; transition: opacity .8s ease, transform .8s var(--ease-out);
  pointer-events: none;
}
#hint svg { width: 15px; height: 15px; }
body.ready[data-chapter="hero"] #hint { opacity: 1; animation: hintbob 2.4s ease-in-out infinite; }
#hint.off { opacity: 0 !important; transform: translateX(-50%) translateY(10px); animation: none; }
@keyframes hintbob { 50% { transform: translateX(-50%) translateY(-6px); } }

/* ============================================================
   CHAPTERS / COPY
   ============================================================ */
main { position: relative; z-index: 4; pointer-events: none; }
.chapter { position: relative; min-height: 118vh; display: flex; align-items: center; padding: 12vh var(--pad); }
.chapter.tall { height: 330vh; padding: 0; align-items: stretch; }
.chapter.tall .sticky { position: sticky; top: 0; height: 100vh; width: 100%; display: flex; align-items: flex-start; justify-content: center; padding: 0 var(--pad); }
#s-hero { min-height: 135vh; }
#s-space { min-height: 150vh; }
#s-specs { min-height: 150vh; }
#s-reserve { min-height: 125vh; }

.copy { max-width: 34rem; }
.copy.side-l { margin-right: auto; }
.copy.side-r { margin-left: auto; text-align: left; }
.copy.top-c { margin: 0 auto; text-align: center; padding-top: 6.5vh; }
.copy.top-c .lede { margin-inline: auto; }
.copy.top { align-self: flex-start; margin-top: 7vh; }
.copy.wide { max-width: 44rem; margin: 0 auto; width: 100%; }
.copy.hero-copy { margin: 0 auto 0 0; text-align: left; max-width: 38rem; }
.hero-copy .cta-row { justify-content: flex-start; }
.hero-copy .lede { margin-inline: 0; }
.copy * { pointer-events: none; }
.copy a, .copy button, .copy input, .copy [data-nodrag] { pointer-events: auto; }

.eyebrow {
  font-size: .68rem; letter-spacing: .34em; text-transform: uppercase;
  color: var(--copper); margin-bottom: 1.6rem; font-weight: 500;
}
body[data-chapter="specs"] .eyebrow, body[data-chapter="reserve"] .eyebrow { color: #d99a68; }

h1, h2 { font-family: var(--serif); font-weight: 340; line-height: 1.02; letter-spacing: -.01em; }
h1 { font-size: clamp(3rem, 8.2vw, 6.4rem); }
h2 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); }
h1 em, h2 em { font-style: italic; font-weight: 300; }
body[data-chapter="specs"] h2, body[data-chapter="reserve"] h2 { color: var(--bone); }
body[data-chapter="light"][data-light="dusk"] h2, body[data-chapter="light"][data-light="neon"] h2 { color: var(--bone); }
body[data-chapter="light"][data-light="dusk"] .lede, body[data-chapter="light"][data-light="neon"] .lede { color: rgba(236, 232, 223, .78); }

.lede { margin-top: 1.7rem; font-size: clamp(.95rem, 1.4vw, 1.06rem); line-height: 1.75; color: var(--ink-soft); font-weight: 300; max-width: 30rem; }
.hero-copy .lede { margin-inline: auto; }
body[data-chapter="specs"] .lede, body[data-chapter="reserve"] .lede { color: rgba(236, 232, 223, .72); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: .95em 1.9em; border-radius: 999px; font-size: .76rem; letter-spacing: .14em;
  text-transform: uppercase; text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform .35s var(--ease-out), box-shadow .35s ease, background .3s ease, color .3s ease;
  transform: translate(var(--mx, 0), var(--my, 0));
}
.btn.solid { background: var(--ink); color: var(--bone); box-shadow: 0 14px 30px rgba(20, 18, 14, .22); }
.btn.solid:hover { box-shadow: 0 20px 44px rgba(20, 18, 14, .3); }
.btn.ghost { border-color: rgba(28, 29, 32, .4); color: var(--ink); }
.btn.ghost:hover { border-color: var(--ink); background: rgba(28, 29, 32, .06); }
.btn.wide { width: 100%; }
.cta-row { display: flex; gap: .9rem; margin-top: 2.4rem; flex-wrap: wrap; }
.hero-copy .cta-row { justify-content: center; }
body[data-chapter="reserve"] .btn.solid { background: var(--bone); color: var(--ink); }
#reserve-btn.done { background: #33503c; color: #eaf3e9; pointer-events: none; }
#reserve-btn .tick { margin-right: .2em; }

/* scroll cue */
.scroll-cue { position: absolute; left: 50%; bottom: 4vh; transform: translateX(-50%); display: grid; justify-items: center; gap: .5rem; }
.scroll-cue i { width: 1px; height: 52px; background: linear-gradient(180deg, var(--ink), transparent); animation: cue 2.2s ease-in-out infinite; }
@keyframes cue { 0% { transform: scaleY(0); transform-origin: top; } 45% { transform: scaleY(1); transform-origin: top; } 55% { transform: scaleY(1); transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
.scroll-cue span { font-size: .6rem; letter-spacing: .3em; text-transform: uppercase; opacity: .55; }

/* swatches */
.swatches { display: flex; gap: .8rem; margin-top: 2.2rem; flex-wrap: wrap; }
.swatch {
  display: flex; align-items: center; gap: .6em; cursor: pointer;
  padding: .62em 1.05em .62em .7em; border-radius: 999px;
  border: 1px solid rgba(28, 29, 32, .18); background: rgba(255, 255, 255, .28);
  backdrop-filter: blur(6px);
  font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  transition: all .35s ease;
}
.swatch i { width: 22px; height: 22px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 -3px 6px rgba(0,0,0,.25), inset 0 2px 4px rgba(255,255,255,.45), 0 2px 6px rgba(0,0,0,.2); transition: transform .3s var(--ease-out); }
.swatch:hover { border-color: rgba(28, 29, 32, .5); transform: translateY(-2px); }
.swatch[aria-pressed="true"] { border-color: var(--copper); background: rgba(255, 255, 255, .55); box-shadow: 0 8px 22px rgba(176, 106, 60, .22); }
.swatch[aria-pressed="true"] i { transform: scale(1.15); }
.finish-card { margin-top: 1.6rem; padding: 1rem 1.2rem; border-left: 2px solid var(--copper); background: rgba(255, 255, 255, .3); backdrop-filter: blur(8px); max-width: 26rem; }
.finish-card b { display: block; font-family: var(--serif); font-size: 1.05rem; font-weight: 500; }
.finish-card span { display: block; margin-top: .3rem; font-size: .78rem; line-height: 1.6; color: var(--ink-soft); }

/* explode meter */
.explode-meter { display: flex; gap: .45rem; margin-top: 2rem; }
.copy.top-c .explode-meter { justify-content: center; position: absolute; bottom: 5.5vh; left: 50%; transform: translateX(-50%); margin-top: 0; }
.explode-meter i { width: 34px; height: 2px; background: rgba(28,29,32,.2); position: relative; overflow: hidden; }
.explode-meter i::after { content: ''; position: absolute; inset: 0; background: var(--copper); transform: scaleX(var(--p, 0)); transform-origin: left; transition: transform .2s linear; }

/* env buttons */
.env-btns { display: flex; gap: .8rem; margin-top: 2.2rem; flex-wrap: wrap; }
.env-btn {
  display: flex; align-items: center; gap: .65em; cursor: pointer;
  padding: .62em 1.15em .62em .7em; border-radius: 999px;
  border: 1px solid rgba(236, 232, 223, .3); background: rgba(20, 20, 24, .25);
  color: var(--bone); backdrop-filter: blur(6px);
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  transition: all .35s ease;
}
.env-btn i { width: 22px; height: 22px; border-radius: 50%; transition: transform .3s var(--ease-out); box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.env-btn .e-studio { background: linear-gradient(160deg, #fdf8ec, #b9b4a8); }
.env-btn .e-dusk { background: linear-gradient(160deg, #ff9a4e, #4a2a5e); }
.env-btn .e-neon { background: linear-gradient(160deg, #22e6ff, #ff2f9e); }
.env-btn:hover { border-color: rgba(236, 232, 223, .7); transform: translateY(-2px); }
.env-btn[aria-pressed="true"] { border-color: var(--bone); background: rgba(236, 232, 223, .14); box-shadow: 0 8px 22px rgba(0, 0, 0, .3); }
.env-btn[aria-pressed="true"] i { transform: scale(1.15); }

/* room controls */
.room-ctl { margin-top: 2.2rem; padding: 1.1rem 1.3rem; border-radius: 4px; background: rgba(255, 251, 240, .55); backdrop-filter: blur(10px); border: 1px solid rgba(90, 74, 54, .2); max-width: 22rem; box-shadow: 0 16px 40px rgba(50, 38, 20, .15); }
.room-ctl label { display: flex; justify-content: space-between; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: #5c4a36; margin-bottom: .7rem; }
.room-ctl input[type="range"] { width: 100%; appearance: none; height: 2px; background: rgba(92, 74, 54, .35); border-radius: 2px; outline-offset: 4px; }
.room-ctl input[type="range"]::-webkit-slider-thumb { appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--copper); border: 3px solid #f4ead6; box-shadow: 0 3px 10px rgba(0,0,0,.3); cursor: grab; }
.room-ctl input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--copper); border: 3px solid #f4ead6; cursor: grab; }

/* spec list */
.spec-list { list-style: none; margin-top: 3rem; }
.spec-list li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 2rem;
  padding: 1.05rem .2rem; border-bottom: 1px solid rgba(236, 232, 223, .14);
  transition: background .3s ease, padding .3s ease;
}
.spec-list li:first-child { border-top: 1px solid rgba(236, 232, 223, .14); }
.spec-list li:hover { background: rgba(236, 232, 223, .05); padding-left: .8rem; padding-right: .8rem; }
.spec-list span { font-size: .66rem; letter-spacing: .24em; text-transform: uppercase; color: rgba(236, 232, 223, .5); }
.spec-list b { font-family: var(--serif); font-weight: 400; font-size: clamp(1rem, 1.8vw, 1.25rem); color: var(--bone); text-align: right; }

/* price card */
.price-card {
  margin-top: 2.4rem; max-width: 26rem;
  background: rgba(236, 232, 223, .06); border: 1px solid rgba(236, 232, 223, .2);
  border-radius: 6px; padding: 1.7rem; backdrop-filter: blur(14px);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .35);
}
.price-row { display: flex; justify-content: space-between; align-items: baseline; color: var(--bone); }
.price-row span { font-size: .72rem; letter-spacing: .26em; text-transform: uppercase; }
.price-row b { font-family: var(--serif); font-size: 2.6rem; font-weight: 340; }
.price-sub { margin-top: .4rem; font-size: .78rem; line-height: 1.6; color: rgba(236, 232, 223, .65); }
.price-card .btn { margin-top: 1.5rem; }
.price-note { margin-top: .9rem; font-size: .66rem; letter-spacing: .06em; color: rgba(236, 232, 223, .45); text-align: center; }
.marq { list-style: none; display: flex; gap: 1.4rem; margin-top: 2rem; flex-wrap: wrap; }
.marq li { font-size: .62rem; letter-spacing: .26em; text-transform: uppercase; color: rgba(236, 232, 223, .5); }
.marq li::before { content: '— '; color: #d99a68; }

/* footer */
footer {
  position: relative; z-index: 4;
  padding: 6rem var(--pad) 3rem; text-align: center;
  background: linear-gradient(180deg, transparent, rgba(10, 9, 11, .55) 40%), #171219;
  color: rgba(236, 232, 223, .6);
}
.foot-word { font-family: var(--serif); font-size: 1.3rem; letter-spacing: .3em; color: var(--bone); }
.foot-word i { font-style: italic; font-weight: 300; letter-spacing: .06em; }
footer p { max-width: 34rem; margin: 1.4rem auto 0; font-size: .78rem; line-height: 1.8; font-weight: 300; }
.foot-meta { display: flex; justify-content: center; gap: 2.4rem; margin-top: 2.6rem; font-size: .6rem; letter-spacing: .3em; text-transform: uppercase; opacity: .55; flex-wrap: wrap; }

/* reveal */
.rev { opacity: 0; transform: translateY(26px); transition: opacity 1s ease, transform 1.1s var(--ease-out); }
.rev.in { opacity: 1; transform: translateY(0); }
.copy .rev:nth-child(2) { transition-delay: .08s; }
.copy .rev:nth-child(3) { transition-delay: .16s; }
.copy .rev:nth-child(4) { transition-delay: .24s; }
.copy .rev:nth-child(5) { transition-delay: .32s; }
.copy .rev:nth-child(6) { transition-delay: .4s; }

/* fallback */
#fallback { display: none; }
body.no-webgl #fallback { display: grid; position: fixed; inset: 0; z-index: 8; place-items: center; justify-items: end; padding-right: 8vw; pointer-events: none; }
@media (max-width: 640px) { body.no-webgl #fallback { justify-items: center; align-items: start; padding: 16vh 6vw 0; } }
.fb-card { max-width: 24rem; margin: 0 var(--pad); padding: 2rem; text-align: center; background: rgba(244, 241, 233, .9); backdrop-filter: blur(12px); border: 1px solid rgba(28,29,32,.12); }
.fb-mark { width: 60px; height: 60px; margin: 0 auto 1rem; border-radius: 50%; border: 2px solid var(--copper); position: relative; }
.fb-mark::after { content: ''; position: absolute; inset: 22px; border-radius: 50%; background: var(--ink); }
.fb-card b { font-family: var(--serif); font-size: 1.3rem; letter-spacing: .2em; }
.fb-card p { margin-top: .8rem; font-size: .8rem; line-height: 1.7; color: var(--ink-soft); }
body.no-webgl #stage, body.no-webgl #blobshadow, body.no-webgl #hint, body.no-webgl #loader { display: none; }
body.no-webgl .rev { opacity: 1; transform: none; }
body.no-webgl .anno, body.no-webgl #annos { display: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .copy { max-width: 26rem; }
  h1 { font-size: clamp(2.6rem, 11vw, 4rem); }
  #rail a span { display: none; }
}
@media (max-width: 640px) {
  .chapter { min-height: 112vh; padding: 14vh 6vw; align-items: flex-end; }
  #s-hero { align-items: flex-end; }
  #s-explode .sticky { align-items: flex-start; }
  .copy.top-c { padding-top: 8vh; }
  .copy.hero-copy { text-align: left; margin: 0 auto; }
  .hero-copy .cta-row { justify-content: flex-start; }
  .copy.side-l, .copy.side-r { margin: 0 auto; }
  .copy { max-width: 100%; }
  .copy .lede { font-size: .9rem; }
  .cta-row { justify-content: center; }
  .hdr-mid { display: none; }
  #hdr { padding: .9rem 5vw; }
  #rail { right: .5rem; gap: .8rem; }
  .anno { width: 42vw; }
  .anno-card { padding: .5rem .6rem; }
  .anno-card span { display: none; }
  .anno-card b { font-size: .62rem; }
  .anno.a-left { --ax: 4% !important; }
  .anno.a-right { --ax: 54% !important; }
  .anno[data-anchor="headband"] { --ax: 56% !important; --ay: 34% !important; }
  .anno[data-anchor="shell"]    { --ax: 56% !important; --ay: 50% !important; }
  .anno[data-anchor="pcb"]      { --ax: 4%  !important; --ay: 46% !important; }
  .anno[data-anchor="driver"]   { --ax: 56% !important; --ay: 66% !important; }
  .anno[data-anchor="cushion"]  { --ax: 4%  !important; --ay: 89% !important; }
  .spec-list li { flex-direction: column; gap: .3rem; }
  .spec-list b { text-align: left; }
  .room-ctl { max-width: 100%; }
  .price-card { max-width: 100%; }
  #hint { left: auto; right: 1rem; bottom: 1rem; transform: none; animation: none !important; }
  #hint.off { transform: translateY(8px); }
  .marq { gap: .9rem; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fog, .scroll-cue i, .loader-mark, #hint { animation: none !important; }
  .rev { transition-duration: .3s; transform: none; }
}
