/* soundsbyzan — motion edition. Loads after site.css and turns the page dark and cinematic:
   one pinned hero where the platforms assemble into a portal, scrubbed reveals, devices that tilt
   up as they enter, and marquees that answer scroll speed. Same content and components as the
   classic site; with prefers-reduced-motion everything sits in its final state. */
:root {
  --bg: #060b16; --bg-2: #0b1426; --card: #0e1729; --line: rgba(255, 255, 255, .09); --line-strong: rgba(255, 255, 255, .18);
  --ink: #eef2f8; --ink-soft: rgba(238, 242, 248, .74); --muted: rgba(238, 242, 248, .6);
  --acc-950: #e6eeff; --acc-900: #2f6fd0; --acc-800: #8fb4ff; --acc-300: rgba(143, 180, 255, .45); --acc-100: rgba(143, 180, 255, .14);
  --glow: radial-gradient(60% 50% at 50% 40%, rgba(47, 111, 208, .35) 0%, rgba(47, 111, 208, 0) 70%);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-frame: 0 1px 2px rgba(0, 0, 0, .5), 0 40px 80px -30px rgba(0, 0, 0, .8);
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { background: var(--bg); color: var(--ink); }
::selection { background: rgba(143, 180, 255, .35); }
.top { background: rgba(6, 11, 22, .72); border-bottom-color: var(--line); }
.brand { color: var(--ink); }
.brand-word .by { color: var(--muted); }
.top nav a { color: var(--ink-soft); }
@media (hover: hover) and (pointer: fine) { .top nav a:hover { color: #fff; } }
.btn-dark { background: #fff; color: #08132a; }
@media (hover: hover) and (pointer: fine) { .btn-dark:hover { background: #dce6ff; } }
.btn-line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
@media (hover: hover) and (pointer: fine) { .btn-line:hover { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .45); } }
.menu-btn { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.menu { background: #0e1729; border-color: var(--line); }
.menu a { color: var(--ink); }
.menu a:focus-visible, .menu a:active { background: rgba(255, 255, 255, .06); }
.menu .menu-cta { background: #fff; color: #08132a; }
:focus-visible { outline-color: var(--acc-800); }

/* ---------- 1. hero: pinned; scroll assembles the platforms into one portal ---------- */
/* hero is a column: copy on top, the scene takes whatever height is left, so the buttons can never sit on the portal */
.mhero { position: relative; height: calc(100svh - 68px); min-height: 440px; overflow: hidden; display: flex; flex-direction: column; }
.mhero::before { content: ""; position: absolute; inset: -10% -10% 0; background: var(--glow); pointer-events: none; }
.mhero-copy { position: relative; z-index: 3; text-align: center; padding: max(28px, 5svh) 20px 0; flex: 0 0 auto; }
.mhero-copy .eyebrow { color: var(--acc-800); }
.mhero h1 { font-size: clamp(28px, min(4.2vw, 6.4svh), 64px); line-height: 1.06; margin: 12px auto 0; max-width: 32ch; letter-spacing: -0.01em; text-wrap: balance; }

.mhero h1 .l { display: inline; }
.mhero h1 .l2 { color: var(--acc-800); }
.mhero-cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: max(16px, 3svh); }
.scene { position: relative; flex: 1 1 0; min-height: 0; margin: max(18px, 3.5svh) 0 max(16px, 3svh); container-type: size; perspective: 1600px; perspective-origin: 50% 30%; z-index: 2; }
/* the portal fills the scene: as wide as it can be while its full height still fits */
.plane { --pw: min(82cqw, 160cqh, 1000px); position: absolute; left: 50%; top: calc((100cqh - var(--pw) * 0.625) / 2); width: var(--pw); aspect-ratio: 16 / 10; transform-style: preserve-3d; translate: -50% 0; }
.plane .screen { position: absolute; inset: 0; border-radius: 1.4vw; overflow: hidden; background: #fff; box-shadow: 0 60px 120px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .08); }
.plane .screen img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.plane .sheen { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(115deg, rgba(255, 255, 255, .18) 0%, rgba(255, 255, 255, 0) 40%); pointer-events: none; }
.tile { position: absolute; left: 50%; top: 50%; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px; background: rgba(14, 23, 41, .86); border: 1px solid var(--line-strong);
  color: var(--ink); font-weight: 700; font-size: clamp(12px, 1.1vw, 16px); white-space: nowrap; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .9); will-change: transform; }
.tile .mono { width: 28px; height: 28px; }

/* ---------- 2. statement: words light up as you read them ---------- */
.statement { padding: 22vh 0; }
.statement p { font: 500 clamp(30px, 4.6vw, 64px)/1.12 "Oswald", sans-serif; max-width: 22ch; letter-spacing: -0.005em; }
.statement .w { color: rgba(238, 242, 248, .16); transition: color 120ms linear; }
.statement .w.lit { color: var(--ink); }
.statement .w.hl.lit { color: var(--acc-800); }

/* ---------- 3. how: three numbered beats ---------- */
.beats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border-radius: 20px; overflow: hidden; border: 1px solid var(--line); }
.beats li { background: var(--bg); padding: 40px 32px 36px; }
.beats .n { font: 500 72px/1 "Oswald", sans-serif; color: transparent; -webkit-text-stroke: 1px rgba(143, 180, 255, .55); }
.beats h3 { font-size: 32px; margin: 18px 0 10px; }
.beats p { color: var(--ink-soft); }

/* ---------- 4. products: copy beside the preview, so title and full preview share one screen ---------- */
.chapter { position: relative; padding: 12vh 0; overflow: hidden; }
.chapter + .chapter { border-top: 1px solid var(--line); }
.chapter-bg { position: absolute; left: 50%; top: 4vh; translate: -50% 0; font: 500 clamp(80px, 15vw, 220px)/.9 "Oswald", sans-serif; white-space: nowrap; color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .07); pointer-events: none; z-index: 0; letter-spacing: -0.01em; }
.chapter-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 56px; align-items: center; }
.chapter-copy .num { display: block; font: 500 14px/1.4 "Sora", sans-serif; color: var(--muted); margin-bottom: 10px; }
@media (min-width: 1024px) {
  .chapter .links { flex-wrap: nowrap; }
  .chapter .links .btn { padding: 0 16px; }
}
.chapter-copy h2 { font-size: clamp(38px, 3.4vw, 48px); line-height: 1.04; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 10px; row-gap: 6px; }
.chapter-copy .status { background: rgba(143, 180, 255, .16); color: var(--acc-950); margin-left: 0; vertical-align: baseline; }
.chapter-copy .summary { color: var(--ink-soft); font-size: 16.5px; margin-top: 14px; }
.chapter .links { margin-top: 20px; }
.chapter .points { margin: 22px 0 0; gap: 8px; }
.chapter .points li { font-size: 15px; }
.chapter .points li::before { background: var(--acc-800); box-shadow: 0 0 0 4px rgba(143, 180, 255, .14); }
.chapter .connects-label { margin-top: 20px; }
.chapter .chips li { background: rgba(255, 255, 255, .04); border-color: var(--line); color: var(--ink-soft); font-size: 13px; padding: 5px 11px; }
.tilt { transform-origin: 50% 100%; will-change: transform; min-width: 0; }
.tabs { background: rgba(255, 255, 255, .06); }
.tabs button { color: var(--ink-soft); }
.tabs button[aria-pressed="true"] { background: #fff; color: #08132a; box-shadow: none; }
.caption { color: var(--muted); }
.frame { border-color: rgba(255, 255, 255, .1); }
.viewer:not(.viewer-device) { display: flex; flex-direction: column; align-items: center; }
.viewer:not(.viewer-device) .stage { width: 100%; }
.viewer .caption { text-align: center; }
.chapter .phone { right: -14px; bottom: -22px; }
.device-stage { background: radial-gradient(120% 90% at 85% 100%, rgba(47, 111, 208, .25) 0%, rgba(47, 111, 208, 0) 60%), #0b1426; border-color: var(--line); }
.site-label { color: var(--muted); }
/* Essential Reef beside its copy: smaller website, bigger phone so the app stays readable */
@container (min-width: 641px) {
  .chapter .site-frame { left: 3.6cqw; top: 4cqw; width: 64cqw; }
  .chapter .iphone { right: 4cqw; top: 9cqw; width: 34cqw; height: 70cqw; padding: 0.87cqw; border-radius: 5.35cqw; }
  .chapter .iphone-screen { border-radius: 4.55cqw 4.55cqw 0 0; }
  .chapter .iphone-status { height: 4.55cqw; padding: 0 3cqw 0 3.6cqw; font-size: 1.45cqw; }
  .chapter .iphone-status svg { width: 6.3cqw; }
  .chapter .iphone-island { top: 1cqw; width: 10cqw; height: 2.85cqw; margin-left: -5cqw; }
}

/* ---------- 5. platforms: two marquees that answer scroll speed ---------- */
.marquee { overflow: hidden; padding: 6px 0; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.mtrack { display: flex; gap: 14px; width: max-content; will-change: transform; }
.mtrack > span { display: inline-flex; align-items: center; gap: 12px; padding: 16px 26px; border-radius: 999px; border: 1px solid var(--line-strong); font: 500 clamp(22px, 2.6vw, 34px)/1 "Oswald", sans-serif; white-space: nowrap; }
.mtrack .mono { width: 34px; height: 34px; font-size: 13px; border-radius: 10px; }
.marquee + .marquee { margin-top: 14px; }

/* ---------- 6. contact on dark ---------- */
.form { background: var(--card); border-color: var(--line); }
.field input, .field textarea { background: rgba(255, 255, 255, .03); color: var(--ink); border-color: var(--line-strong); }
.field input::placeholder, .field textarea::placeholder { color: rgba(238, 242, 248, .45); }
.field input:focus, .field textarea:focus { border-color: var(--acc-800); box-shadow: 0 0 0 3px rgba(143, 180, 255, .2); }
.field .err, .form-status[data-kind="error"] { color: #ff9b8f; }
.field[data-invalid] input, .field[data-invalid] textarea, .field[data-invalid] select { border-color: #ff9b8f; }
.form-done { background: var(--card); border-color: var(--line); }
footer.foot { background: #03070f; border-top: 1px solid var(--line); }
.foot-nav a { color: rgba(238, 242, 248, .72); }
@media (hover: hover) and (pointer: fine) { .foot-nav a:hover { color: #fff; } }

/* ---------- new sections, dark palette overrides ---------- */
.mhero-sub { font: 600 clamp(16px, 1.8vw, 22px)/1.3 "Sora", sans-serif; color: var(--ink); max-width: 36ch; margin: max(10px, 1.6svh) auto 0; }
.mhero-lede { font: 400 clamp(14px, 1.4vw, 16px)/1.4 "Sora", sans-serif; color: var(--ink-soft); max-width: 46ch; margin: max(6px, 1svh) auto 0; }

.showline-offer { padding: 10vh 0; }
.showline-offer .pill-row li { background: rgba(255, 255, 255, .04); border-color: var(--line); color: var(--ink); }
.showline-offer .offer-for-label { color: var(--acc-800); }
.showline-offer .offer-check li { color: var(--ink); }
.showline-offer .offer-check li::before { background-color: rgba(143, 180, 255, .16);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%238fb4ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='3 6 5 8 9 4'/></svg>"); }
.showline-offer .offer-visual .frame { border-color: rgba(255, 255, 255, .1); }
.showline-offer .stat-pill b { color: #fff; }

/* contact What happens next on dark */
.whats-next { background: rgba(255, 255, 255, .03); border-color: var(--line); }
.whats-next li { color: var(--ink); }
.whats-next li::before { background: rgba(143, 180, 255, .18); color: var(--acc-950); }

/* step wizard: progress bar track on dark */
.form-progress-bar { background: rgba(255, 255, 255, .07); }
.form-steptitle { color: var(--ink); }

.process { padding: 10vh 0; }
.process-steps li { background: rgba(255, 255, 255, .03); border-color: var(--line); box-shadow: none; }
.process-steps h3 { color: var(--ink); }

.about { padding: 10vh 0; }
.about-copy .proof { background: rgba(143, 180, 255, .12); color: var(--acc-800); border-left-color: var(--acc-800); }

/* chip checkboxes on dark */
.chip { background: rgba(255, 255, 255, .04); border-color: var(--line-strong); color: var(--ink); }
.chip:has(input:checked) { background: rgba(143, 180, 255, .18); border-color: var(--acc-800); color: #fff; }
@media (hover: hover) and (pointer: fine) { .chip:hover { border-color: rgba(143, 180, 255, .55); } }
.other-input { background: rgba(255, 255, 255, .03); color: var(--ink); border-color: var(--line-strong); }
.other-input::placeholder { color: rgba(238, 242, 248, .45); }

/* selects on dark */
.field select { background-color: rgba(255, 255, 255, .03); color: var(--ink); border-color: var(--line-strong);
  background-image: linear-gradient(45deg, transparent 50%, rgba(238, 242, 248, .7) 50%), linear-gradient(135deg, rgba(238, 242, 248, .7) 50%, transparent 50%); }

/* form-step headings on dark */
.form-step-head { color: var(--ink); }
.form.form-wide .form-step + .form-step { border-top-color: var(--line); }
.form-step-n { background: rgba(143, 180, 255, .16); color: var(--acc-950); }

/* prose on dark */
.prose p { color: var(--ink-soft); }

@media (max-width: 1100px) {
  .chapter-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}
.beats.beats-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) {
  .beats.beats-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .beats { grid-template-columns: minmax(0, 1fr); }
  .beats.beats-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .beats.beats-4 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {

  .plane { --pw: min(94cqw, 160cqh); }
  .tile { padding: 8px 10px; gap: 8px; }
  .tile .mono { width: 22px; height: 22px; font-size: 10px; }
  .chapter { padding: 9vh 0; }
}
/* reduced motion: no pin, no scrub, nothing waits on scroll */
@media (prefers-reduced-motion: reduce) {
  .statement .w { color: var(--ink); }
}

/* static fallback (no JS, or reduced motion): the finished state, no tiles */
html:not(.motion-on) .tile { display: none; }
.tile .logo { width: 30px; height: 30px; }
.tile .logo img { width: 19px; height: 19px; }
.mtrack .logo { width: 40px; height: 40px; border-radius: 11px; }
.mtrack .logo img { width: 26px; height: 26px; }
@media (max-width: 720px) { .tile .logo { width: 22px; height: 22px; border-radius: 6px; } .tile .logo img { width: 14px; height: 14px; } }
