/* Acoustic Orbit — the story page. Quiet chrome; colour is earned once. */
:root {
  --bg: #000; --bg2: #1c1c1e; --bg3: #2c2c2e;
  --ink: #f5f5f7; --ink2: rgba(245,245,247,.66); --ink3: rgba(245,245,247,.52); --line: rgba(245,245,247,.12);
  --teal: #00c8d6; --amber: #ffb340;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", system-ui, sans-serif;
  --t-xl: clamp(2rem, 1.1rem + 3.9vw, 4.5rem);
  --t-l: clamp(1.45rem, 1rem + 1.7vw, 2.3rem);
  --t-m: clamp(1.05rem, 0.95rem + 0.5vw, 1.25rem);
  --gutter: clamp(16px, 4vw, 48px);
  --copy-top: clamp(84px, 14vh, 150px);
  --ease: cubic-bezier(.2,.7,.2,1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--bg); color: var(--ink); font-family: var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; scroll-behavior: smooth; }
body { margin: 0; line-height: 1.5; overflow-x: hidden; }
a { color: inherit; }
img { display: block; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 12px; }

/* top bar */
.top { position: fixed; inset: 0 0 auto 0; z-index: 20; display: flex; justify-content: space-between; align-items: center; padding: 14px var(--gutter); pointer-events: none; }
.top > * { pointer-events: auto; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 0.95rem; letter-spacing: 0.01em; color: var(--ink); opacity: .92; }
.brand img { filter: none; }
.top-cta { font-size: 0.86rem; color: var(--ink2); text-decoration: none; border: 1px solid var(--line); padding: 7px 12px; border-radius: 999px; background: rgba(11,12,14,.6); backdrop-filter: blur(10px); transition: color .25s var(--ease), border-color .25s var(--ease); }
.top-cta:hover { color: var(--ink); border-color: var(--ink3); }

/* scenes: tall section, sticky stage */
.scene { position: relative; height: calc(var(--len, 2) * 100vh); }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; grid-template-rows: auto 1fr auto; padding-block: 0; padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
.copy { max-width: 1100px; margin: 0 auto; width: 100%; }
.copy-top { padding-top: var(--copy-top); }
.copy-bottom { padding-bottom: clamp(28px, 6vh, 64px); }
.line { margin: 0; font-weight: 600; letter-spacing: -0.022em; line-height: 1.06; text-wrap: balance; max-width: 16ch; }
.line-xl { font-size: var(--t-xl); }
.line-l { font-size: var(--t-l); max-width: 22ch; }
.line .w { display: inline-block; }
.sub { margin: 18px 0 0; font-size: var(--t-m); color: var(--ink2); max-width: 46ch; }
.headlines { position: relative; }
.headlines .alt { position: absolute; left: 0; top: var(--copy-top); visibility: hidden; }
/* the number takes the headline's place: the chip's final value, enlarged */
.headlines .number { position: absolute; left: 0; top: var(--copy-top); transform: none; text-align: left; width: min(100%, 820px); }
.headlines .number .big { font-size: clamp(3.4rem, 1.6rem + 8vw, 8.5rem); }
.headlines .number .cap { margin-top: 8px; }
.headlines .number .scope { margin: 12px 0 0; }
.headlines .alt .w { opacity: 0; }
.shelf g.dev { transform-box: view-box; }
.shelf .screen { transition: none; }
/* readable without JS; the reveal only applies once the engine runs */
.js [data-reveal] { opacity: 0; transform: translateY(10px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js [data-reveal].in { opacity: 1; transform: none; }
.hint { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink3); display: flex; flex-direction: column; align-items: center; gap: 10px; transition: opacity .5s var(--ease); }
.hint span { width: 1px; height: 34px; background: linear-gradient(var(--ink3), transparent); animation: hint 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes hint { 0% { transform: scaleY(0); opacity: 0 } 30% { opacity: 1 } 100% { transform: scaleY(1); opacity: 0 } }
.hint.off { opacity: 0; }

/* the shelf: the same place in every scene that shows it, so nothing jumps between them */
.shelf { position: absolute; left: 50%; top: 54%; transform: translate(-50%, -50%); width: min(960px, 94vw); }
@media (max-height: 700px) { .shelf { width: min(680px, 70vw); top: 52%; } .lines { height: 90px; } }
.shelf svg { width: 100%; height: auto; display: block; overflow: visible; }
.shelf .body { fill: none; stroke: var(--ink3); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.shelf .fillq { fill: var(--bg2); }
.shelf .body { stroke: var(--ink3); }
.shelf .meter { fill: var(--ink3); transform-box: fill-box; transform-origin: bottom; }
.shelf .shadow { fill: #000; opacity: .35; filter: blur(14px); }
.lines { grid-row: 2; align-self: end; justify-self: center; width: min(960px, 94vw); height: clamp(110px, 20vh, 180px); display: block; }

/* the hero */
.mac { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(420px, 60vw); opacity: 0; }
.mac svg { width: 100%; height: auto; overflow: visible; }
.mac .body { fill: var(--bg2); stroke: var(--ink3); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.mac .mic { fill: var(--ink2); }
.mac .ring { fill: none; stroke: var(--ink3); stroke-width: 1; vector-effect: non-scaling-stroke; opacity: 0; }
.number { position: absolute; left: 50%; top: 44%; transform: translate(-50%, -50%); text-align: center; opacity: 0; width: min(92vw, 820px); }
.number .big { font-size: clamp(3rem, 2rem + 7vw, 8rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; color: var(--ink); }
/* the live readout: the spread of the drawn lines, every frame */
.chip { position: absolute; right: var(--gutter); top: clamp(84px, 14vh, 150px); font-variant-numeric: tabular-nums; font-size: .92rem; letter-spacing: .02em; color: var(--ink2); display: flex; gap: 10px; align-items: baseline; opacity: 0; }
.chip b { font-weight: 600; color: var(--ink); font-size: 1.15rem; }
.chip .u { color: var(--ink3); }
.scale { position: absolute; left: var(--gutter); bottom: clamp(96px, 16vh, 170px); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink3); font-variant-numeric: tabular-nums; opacity: 0; }
.ghosts { position: relative; display: inline-block; }
.ghosts i { position: absolute; left: 0; top: 0; font-style: normal; color: var(--ink); pointer-events: none; }
.number .cap { margin-top: 10px; font-size: var(--t-m); color: var(--ink2); letter-spacing: .02em; }
.number .big em { font-style: normal; color: var(--teal); }
.number .scope { margin: 14px auto 0; max-width: 52ch; font-size: .86rem; line-height: 1.45; color: var(--ink3); font-variant-numeric: tabular-nums; }
.number .scope a { color: var(--ink2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--ink3); }
.shelf g.dev { transition: none; }
.promise { margin: 0 auto; max-width: 62ch; font-size: var(--t-m); color: var(--ink2); opacity: 0; transform: translateY(12px); }

/* cards */
.scene-cards .stage { grid-template-rows: 1fr; align-items: center; }
.cards { list-style: none; margin: 0 auto; padding: 0; max-width: 1100px; width: 100%; position: relative; height: min(70vh, 640px); }
.card { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr; gap: 22px; align-content: center; opacity: 0; transform: translateY(40px); will-change: transform, opacity; }
.card-text { display: grid; gap: 14px; align-content: center; }
.card p { margin: 0; color: var(--ink2); font-size: var(--t-m); max-width: 56ch; }
.card-art { height: clamp(120px, 22vh, 200px); position: relative; }
@media (min-width: 820px) { .card { grid-template-columns: 1.05fr 1fr; align-items: center; } .card-art { height: clamp(180px, 36vh, 320px); } }
/* the one card with no picture: the words are the picture — centred, the
   scene size, the three sentences landing one after another */
.card-quiet { grid-template-columns: 1fr !important; text-align: center; align-content: center; }
.card-quiet .line { margin: 0 auto; max-width: 13ch; font-size: clamp(2.4rem, 1.4rem + 4.6vw, 5.2rem); line-height: 1.04; }
.card-quiet .line .w { display: block; opacity: 0; transform: translateY(14px); }
.art-dot { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: var(--ink3); transform: translate(-50%, -50%) scale(.6); transition: background .4s var(--ease), transform .5s var(--ease), box-shadow .5s var(--ease); }
.art-dot.on { background: var(--teal); transform: translate(-50%, -50%) scale(1); box-shadow: 0 0 0 6px rgba(0,200,214,.12); }
.art-bar { position: absolute; left: 50%; bottom: 0; width: 46%; height: 10px; border-radius: 6px; border: 1px solid var(--ink3); transform: translateX(-50%); }
.art-lanes { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.art-lanes .lane { fill: none; stroke: var(--ink2); stroke-width: 1.5; }
.art-wave { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.art-wave .w { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.art-wave .base { stroke: var(--line); stroke-width: 1; }
.art-lanes .end { fill: var(--bg2); stroke: var(--ink3); stroke-width: 1; transition: fill .4s var(--ease), stroke .4s var(--ease); }
.art-lanes .end.on { fill: var(--teal); stroke: var(--teal); }
.art-lanes .end.two { fill: var(--bg3); stroke: var(--ink3); }
.art-lanes .lane.bt { stroke: var(--ink3); }
.art-lanes .end.hollow { fill: none; stroke: var(--ink3); stroke-dasharray: 3 4; }
.art-ticks { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: clamp(18px, 4vw, 40px); }
.art-tick { display: flex; align-items: center; gap: 10px; color: var(--ink3); font-size: .95rem; letter-spacing: .02em; opacity: .5; transition: opacity .5s var(--ease), color .5s var(--ease); }
.art-tick i { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid currentColor; display: grid; place-items: center; font-style: normal; font-size: 12px; }
.art-tick.on { opacity: 1; color: var(--ink); }
.art-tick.on i { border-color: var(--teal); color: var(--teal); }

/* the room */
.room { align-self: center; justify-self: center; width: min(560px, 88vw, 72vh); }
.room svg { width: 100%; height: auto; overflow: visible; }
.room .floor { fill: var(--bg2); stroke: var(--line); }
.room .seat { fill: none; stroke: var(--line); stroke-dasharray: 4 6; }
.room .dev { fill: var(--bg); stroke: var(--ink2); stroke-width: 1.5; }
.room .pos { fill: none; stroke: var(--amber); stroke-width: 1.5; opacity: 0; }
.room .lbl { fill: var(--ink3); font: 500 12px var(--font); letter-spacing: .06em; text-transform: uppercase; }
.room .me { fill: var(--ink3); }
.room .lbl { font-size: 13px; }
.room .chipbg { fill: var(--bg3); stroke: var(--ink3); }
.room .chiptxt { fill: var(--ink); font: 600 12px var(--font); letter-spacing: .04em; text-transform: uppercase; }
.art-wave .face { fill: url(#rib); }

/* static price */
.static { position: relative; padding-block: clamp(80px, 14vh, 160px); padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); background: linear-gradient(var(--bg), var(--bg2) 40%, var(--bg)); }
.wrap { max-width: 760px; margin: 0 auto; }
.price { margin: 28px 0 10px; }
.price-main { display: flex; align-items: baseline; gap: 14px; }
.amount { font-size: clamp(3rem, 2rem + 5vw, 5.5rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.tag { color: var(--teal); font-weight: 600; letter-spacing: .02em; }
.price-then { color: var(--ink2); font-size: var(--t-m); }
.price-once { margin-top: 10px; font-weight: 600; color: var(--ink); font-size: var(--t-m); }
.fine { color: var(--ink3); font-size: .95rem; max-width: 60ch; }
.notify { display: flex; gap: 10px; margin-top: 28px; flex-wrap: wrap; }
.notify input { flex: 1 1 260px; font: inherit; font-size: 1rem; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); }
.notify input:focus { outline: 2px solid var(--teal); outline-offset: 1px; border-color: transparent; }
.notify button { font: inherit; font-weight: 600; font-size: 1rem; padding: 14px 20px; border-radius: 12px; border: 0; background: var(--ink); color: var(--bg); cursor: pointer; transition: transform .2s var(--ease); }
.notify button:hover { transform: translateY(-1px); }

/* the end */
.scene-end .stage { grid-template-rows: 1fr auto; }
.end-mark { display: flex; align-items: center; justify-content: center; gap: 14px; padding-bottom: clamp(40px, 10vh, 100px); color: var(--ink2); font-size: 1rem; }
.end-mark a { color: var(--ink3); text-decoration: none; }
.end-mark a:hover { color: var(--ink); }

@media (max-width: 640px) {
  :root { --copy-top: 84px; }
  .copy-top { padding-top: 84px; }
  .line { max-width: 12ch; }
  .lines { height: 110px; }
  /* the readout sits above the band, never on the headline */
  .chip { top: auto; bottom: 128px; right: var(--gutter); }
  .scale { bottom: 118px; }
  .headlines .number { top: var(--copy-top); }
  .number .scope { font-size: .8rem; max-width: 40ch; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal], .promise, .card, .mac, .number, .art-dot, .art-cell, .art-tick { transition: none !important; }
  .hint span { animation: none; }
}
