/* Delta A/B landing page. One dark instrument panel, all JetBrains Mono; the Δ glyph is the only math-flavoured mark.
   Scroll effects: scroll.js adds html.fx and writes --p (0 to 1) on every [data-fx] element as you scroll.
   Every effect below is scoped to html.fx, so with no JS, reduced motion or ?edit the page is a plain, static layout. */
:root {
  --faceplate: #161719;
  --raised: #1c1d20;
  --rule: #34363a;
  --ink: #eee7d8;
  --dim: #8c887e;
  --amber: #e2a85a;
  --blue: #73b2c6;   /* track A: the app's A colour (Planetarium theme) */
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--faceplate); scroll-padding-top: 64px; }
body { margin: 0; background: var(--faceplate); color: var(--ink); font-family: var(--mono); font-size: 16px; line-height: 1.6; overflow-x: clip; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(18px, env(safe-area-inset-left, 0px)); padding-right: max(18px, env(safe-area-inset-right, 0px)); }
a { color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
kbd { display: inline-block; min-width: 1.7em; padding: 0 .4em; border: 1px solid var(--dim); border-bottom-width: 3px; text-align: center; font: inherit; color: var(--ink); }
.placeholder { color: var(--amber); }
h2 { font-size: clamp(24px, 3.4vw, 38px); line-height: 1.15; margin: 0 0 20px; text-wrap: balance; font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 17px; margin: 0 0 4px; }
section { padding-block: clamp(64px, 9vw, 120px); }

/* top bar */
.bar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgba(22, 23, 25, 0.9); backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--faceplate); }
.bar .wrap { display: flex; align-items: center; gap: 18px; padding-block: 10px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: 0.14em; font-size: 13px; text-decoration: none; }
.brand img { width: 28px; height: 28px; }
.maker-top { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--dim); font-size: 11px; opacity: .85; }
.maker-top img { height: 20px; width: auto; }
.bar nav { margin-left: auto; display: flex; gap: 18px; font-size: 13px; }
.bar nav a { color: var(--dim); text-decoration: none; }
.bar nav a:hover { color: var(--ink); }
.bar nav a.on { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.bar nav a.buy { color: var(--amber); }
@media (max-width: 720px) { .bar nav a:not(.buy) { display: none; } }
@media (max-width: 400px) { .maker-top span { display: none; } }

/* buttons */
.ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 20px; border: 1px solid var(--rule); color: var(--ink); text-decoration: none; font-size: 14px; letter-spacing: 0.04em; background: var(--raised); }
.btn:hover { border-color: var(--dim); }
.btn.primary { border-color: var(--amber); color: var(--faceplate); background: var(--amber); font-weight: 700; }
.btn.primary:hover { background: #ebb76d; }

/* 1. hero */
.hero { padding: 0; position: relative; background: radial-gradient(ellipse 70% 50% at 50% 30%, rgba(244, 242, 236, 0.06), transparent 70%); }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0.14) 0 1px, transparent 1px 3px); }
.hero .stage { padding: clamp(56px, 10vh, 110px) 18px 64px; text-align: center; }
.lockup { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0 .45em; margin: 0; font-size: clamp(40px, 9vw, 104px); line-height: 1; font-weight: 700; letter-spacing: 0.06em; }
.lockup .glyph { height: 0.92em; width: auto; margin-right: -0.05em; }
.lockup .a { color: var(--blue); }
.lockup .b { color: var(--amber); }
.lockup .sl { color: var(--dim); font-weight: 400; margin: 0 -.12em; }
.by { margin: 22px 0 0; display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--dim); font-size: 14px; }
.by img { display: block; height: clamp(26px, 3.4vw, 35px); width: auto; }
.lede { margin: 40px 0 0; font-size: clamp(22px, 3vw, 30px); font-weight: 700; }
.sub { margin: 6px 0 0; color: var(--dim); }
.lockup + .sub { margin-top: 18px; font-size: clamp(14px, 1.4vw, 17px); }
.buy p.lr-beta { color: var(--blue); }
/* Listening Room, shown under the wordmark as its own product */
.lr { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 14px; margin: 26px auto 0; padding: 10px 18px;
  border: 1px solid color-mix(in srgb, var(--blue) 45%, transparent); background: color-mix(in srgb, var(--blue) 7%, transparent);
  color: var(--ink); text-decoration: none; max-width: 92vw; }
.lr:hover { border-color: var(--blue); }
.lr .plus { color: var(--blue); font-weight: 700; font-size: clamp(16px, 2.2vw, 24px); line-height: 1; }
.lr .lr-name { color: var(--blue); font-weight: 700; letter-spacing: .28em; font-size: clamp(16px, 2.2vw, 24px); }
.lr .lr-what { color: var(--dim); font-size: 13px; }
.shot { margin: 56px auto 0; max-width: 1080px; }
.shot img { display: block; width: 100%; height: auto; border: 1px solid var(--rule); box-shadow: 0 30px 80px rgba(0, 0, 0, .55); }

/* sticky "stage" tracks: tall section, inner panel pinned for the length of it */
html.fx .track { height: 240vh; }
html.fx .hero.track { height: 150vh; }
@media (max-width: 720px) { html.fx .track { height: 190vh; } html.fx .hero.track { height: 130vh; } }
html.fx .track > .stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }

html.fx .hero .stage { padding: 0; }
html.fx .hero .intro { position: absolute; inset: 0 0 auto; padding: clamp(80px, 14vh, 150px) 18px 0;
  transform: translateY(calc(var(--p, 0) * -22vh)) scale(calc(1 - var(--p, 0) * .2));
  opacity: clamp(0, calc(1 - var(--p, 0) * 2.2), 1); }
html.fx .hero .shot { --sw: min(1080px, 92vw, 128vh); position: absolute; left: 50%; top: max(9vh, calc(50% - var(--sw) * .33)); margin: 0; width: var(--sw); max-width: none;
  transform: translate(-50%, calc((1 - min(1, var(--p, 0) * 1.4)) * var(--drop, 62vh))) scale(calc(.6 + min(1, var(--p, 0) * 1.4) * .4));
  transform-origin: 50% 0; }

/* 3. What it is */
section.ab { padding-block: clamp(64px, 12vh, 140px) 24px; }
section.ab .copy { text-align: center; max-width: 760px; }
section.ab .copy p { color: var(--dim); margin: 0 auto; max-width: 56ch; }

/* 3. marquee */
.marquee { overflow: hidden; padding-block: 36px; border-block: 1px solid var(--rule); }
.marquee .row { margin: 0; white-space: nowrap; font-size: clamp(28px, 6vw, 72px); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
.marquee .r1 { color: var(--ink); }
.marquee .r2 { color: transparent; -webkit-text-stroke: 1px var(--dim); }
html.fx .marquee .r1 { transform: translateX(calc(var(--p, 0) * -45%)); }
html.fx .marquee .r2 { transform: translateX(calc(-45% + var(--p, 0) * 45%)); }

/* 4. learn */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.learn .copy p { color: var(--dim); margin: 0 0 14px; max-width: 46ch; }
.learn .copy p:first-of-type { color: var(--ink); }
.learn .aside { border-left: 2px solid var(--blue); padding-left: 14px; }
.stacked { display: grid; gap: 36px; }
.stacked .copy { max-width: 72ch; }
.stacked .copy p { max-width: none; }
.learn .kicker { color: var(--ink); font-size: clamp(18px, 2vw, 22px); font-weight: 700; }
/* 5b. diff tour (tour.js moves .cam; without scroll effects it is a still with captions under it) */
.tour { padding-top: 0; --ar: var(--tw) / var(--th); }
.tview { position: relative; margin: 0 auto; width: min(1200px, 94vw); aspect-ratio: var(--ar); overflow: hidden;
  border: 1px solid var(--rule); box-shadow: 0 24px 60px rgba(0, 0, 0, .5); background: #0b0d0f; }
.cam { position: absolute; inset: 0; transform-origin: 0 0; will-change: transform; }
.cam img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.cam .shade { position: absolute; inset: 0; background: #050607; opacity: 0; }
.cam .lit { opacity: 0; clip-path: inset(var(--clip, 0)); }
.tcaps { width: min(1200px, 94vw); margin: 20px auto 0; color: var(--dim); }
.tcaps p { margin: 0 0 10px; max-width: 70ch; }
html.fx .tour.track { height: 900vh; }
html.fx .tour .stage { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 64px 0 24px; }
html.fx .tour .tview { width: min(1200px, 94vw, calc((100svh - 230px) * var(--tw) / var(--th))); }
html.fx .tour.on .tfoot { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: start; margin: 20px auto 0; width: min(1200px, 94vw, calc((100svh - 230px) * var(--tw) / var(--th))); }
html.fx .tour.on .tfoot .tcaps { margin: 0; width: auto; }
html.fx .tour.on .tcaps { display: grid; width: min(1200px, 94vw, calc((100svh - 230px) * var(--tw) / var(--th))); min-height: 5.6em; }
html.fx .tour.on .tcaps > p { grid-area: 1 / 1; margin: 0; color: var(--ink); font-size: clamp(15px, 1.5vw, 18px); line-height: 1.5; }
html.fx .tour.on [data-c] { opacity: 0; transition: none; }
html.fx .tour.on .tcaps > p:has(> [data-c]) { opacity: 1; }
.tour .hint { display: none; }
html.fx .tour.on .tcaps > p.hint { display: block; color: var(--dim); font-size: 13px; letter-spacing: .04em; }
.tour .hint .bob { display: inline-block; margin-left: 6px; color: var(--amber); animation: bob 1.6s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(3px); } }
.tnav { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--dim); white-space: nowrap; }
.tnav[hidden] { display: none; }
.tnav button { font: inherit; width: 32px; height: 28px; border: 1px solid var(--rule); background: transparent; color: var(--ink); cursor: pointer; }
.tnav button:hover { border-color: var(--dim); }
.tnav button:disabled { opacity: .3; cursor: default; }
.tnav .count b { color: var(--ink); font-weight: 700; }
@media (max-width: 720px) { html.fx .tour.on .tfoot { grid-template-columns: minmax(0, 1fr); gap: 12px; } .tnav { justify-content: flex-end; } }
@media (prefers-reduced-motion: reduce) { .tour .hint .bob { animation: none; } }
@media (max-width: 820px) { .split { grid-template-columns: minmax(0, 1fr); } }

/* 5. engineers */
.pros { border-top: 1px solid var(--rule); }
.cases { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 0; }
.cases li { padding: 22px 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4px 32px; align-items: baseline; }
.cases li:first-child { border-top: 1px solid var(--rule); }
.cases h3 { font-size: clamp(17px, 2vw, 22px); margin: 0; }
.cases p { margin: 0; color: var(--dim); }
@media (max-width: 720px) { .cases li { grid-template-columns: minmax(0, 1fr); } }
html.fx .cases li { --k: clamp(0, calc(var(--p, 0) * 5 - .3 - var(--i) * .3), 1);
  transform: translateX(calc((1 - var(--k)) * 10vw)); opacity: var(--k); }
html.fx .cases li:nth-child(2) { transform: translateX(calc((1 - var(--k)) * -10vw)); }

/* 6. share */
.share { border-top: 1px solid var(--rule); background: linear-gradient(180deg, var(--faceplate), #121315); }
.share h2 { max-width: 34ch; }
.share h2 .fname { color: var(--blue); }
.steps { list-style: none; counter-reset: s; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.steps li { counter-increment: s; border-top: 1px solid var(--rule); padding-top: 16px; }
.steps li::before { content: counter(s); display: block; color: var(--amber); font-weight: 700; margin-bottom: 8px; }
.steps p { margin: 0; color: var(--dim); font-size: 15px; }
@media (max-width: 820px) { .steps { grid-template-columns: minmax(0, 1fr); gap: 20px; } }

.shots { margin-top: 56px; display: grid; justify-items: center; }
.shots figure { margin: 0; }
.shots .player { max-width: 460px; }
.shots img { display: block; width: 100%; height: auto; border: 1px solid var(--rule); box-shadow: 0 24px 60px rgba(0, 0, 0, .5); }
.shots figcaption { margin-top: 10px; font-size: 13px; color: var(--dim); }
html.fx .shots figure { --k: clamp(0, calc(var(--p, 0) * 4 - .4), 1); opacity: var(--k); transform: translateY(calc((1 - var(--k)) * 40px)); }

/* specs */
.specs-sec { border-top: 1px solid var(--rule); }
.specs { width: 100%; border-collapse: collapse; font-size: 15px; }
.specs th, .specs td { text-align: left; vertical-align: top; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--rule); }
.specs th.sym { width: 3.2em; color: var(--amber); font-weight: 400; font-size: 16px; }
.specs th.name { width: 9em; color: var(--ink); font-weight: 700; }
.specs td { color: var(--dim); }
.specs td em { color: var(--ink); font-style: normal; }
@media (max-width: 640px) {
  .specs tr { display: grid; grid-template-columns: 2.6em minmax(0, 1fr); border-bottom: 1px solid var(--rule); padding-block: 6px; }
  .specs th.name { width: auto; }
  .specs td { grid-column: 2; padding-top: 0; }
  .specs th, .specs td { border-bottom: 0; }
}

/* buy */
#buy { border-top: 1px solid var(--rule); }
.buy { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 32px; align-items: center; }
.buy img { width: 152px; height: 152px; }
.buy h2 { margin: 0; }
.buy .price { font-size: 28px; font-weight: 700; margin: 4px 0 6px; }
.buy .price small { display: inline-block; font-size: 13px; color: var(--dim); font-weight: 400; margin-left: 10px; white-space: nowrap; }
.buy p { margin: 0 0 18px; color: var(--dim); }
.buy p.note { margin: 12px 0 0; font-size: 13px; }
@media (max-width: 640px) { .buy { grid-template-columns: minmax(0, 1fr); justify-items: start; } }

/* beta signup */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.beta { display: flex; flex-wrap: wrap; gap: 10px; max-width: 560px; }
.beta input[type=email] { flex: 1 1 240px; min-height: 44px; padding: 10px 14px; border: 1px solid var(--rule); background: var(--faceplate); color: var(--ink); font: inherit; font-size: 16px; }
.beta input[type=email]:focus { border-color: var(--amber); outline: none; }
.beta .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.beta button { cursor: pointer; font: inherit; font-size: 14px; }
.beta button:disabled { opacity: .6; cursor: default; }
.beta.done input, .beta.done button { display: none; }
.buy p.note.ok { color: var(--blue); font-size: 15px; }
.buy p.note.err { color: var(--amber); }

/* demo room link under the Listening Room mock-up */
.share .try { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--rule); }
.share .try p { margin: 0; flex: 1 1 320px; color: var(--dim); }

/* footer */
footer { border-top: 1px solid var(--rule); padding-block: 36px 28px; font-size: 12px; color: var(--dim); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 20px 24px; justify-content: space-between; align-items: flex-end; }
footer .maker { display: grid; gap: 10px; }
footer .by { letter-spacing: 0.14em; text-transform: uppercase; font-size: 11px; }
/* The company wordmark is one swappable file: brand/operator-dsp-wordmark.svg. Height sets its size. */
footer .co { display: inline-block; opacity: 0.8; }
footer .co:hover { opacity: 1; }
footer .co img { display: block; height: 29px; width: auto; }
footer .fine { display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* 404 page */
.missing { min-height: 62vh; display: grid; align-items: center; padding-block: 72px; text-align: center; }
.missing h1 { font-size: clamp(22px, 3vw, 30px); margin: 0 0 12px; }
.missing p { color: var(--dim); margin: 0 auto; max-width: 52ch; }
.missing .label { margin-bottom: 18px; font-size: 12px; letter-spacing: 0.16em; }
.missing .eq404 { font-weight: 700; font-size: clamp(40px, 8vw, 72px); color: var(--ink); margin-bottom: 18px; line-height: 1.1; }
.missing .eq404 .a { color: var(--blue); }
.missing .eq404 .b { color: var(--amber); }
.missing .ctas { margin-top: 30px; }

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
