/* Auralis — fictional spatial-audio concept by Launchlight Studio.
   Type: Archivo (display, condensed bold) + Manrope (text). Both SIL OFL via Google Fonts. */
:root {
  --obsidian: #05060A;
  --midnight: #0A1230;
  --silver: #D9DEE6;
  --white: #F2F4F7;
  --muted: #949DAE;          /* ≥ 6.8:1 on obsidian */
  --line: rgba(217, 222, 230, .14);
  --line-2: rgba(217, 222, 230, .26);
  --cyan: #2ED8FF;
  --violet: #8C5CFF;
  --warm: #FF9E57;
  --display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --text: "Manrope", "Segoe UI", system-ui, sans-serif;
  --gutter: clamp(18px, 4vw, 64px);
  --nav-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--nav-h); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--obsidian); color: var(--silver); font: 400 1.0625rem/1.65 var(--text); -webkit-font-smoothing: antialiased; overflow-x: clip; }
p { margin: 0; } ul, ol { list-style: none; margin: 0; padding: 0; } h1, h2, h3 { margin: 0; font-weight: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--cyan); color: var(--obsidian); }
.skip { position: fixed; top: -80px; left: 16px; z-index: 100; background: var(--white); color: var(--obsidian); padding: 10px 16px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.nowrap { white-space: nowrap; }

/* ---------- Stage ---------- */
.stage { position: fixed; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(120% 90% at 70% 45%, #0B1433 0%, var(--obsidian) 60%); }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .8s var(--ease); }
.scene-ready .stage canvas { opacity: 1; }
.poster { position: absolute; width: min(68vh, 62vw); aspect-ratio: 1; right: 2vw; top: 50%; transform: translateY(-50%); transition: opacity .8s var(--ease), transform 1s var(--ease), right 1s var(--ease), width 1s var(--ease); }
.poster-floor { opacity: 0; transition: opacity 1s; }
.scene-ready .poster { opacity: 0; }
/* Static compositions when WebGL is unavailable (or before it starts) */
body[data-chapter="1"] .poster { right: 14vw; transform: translateY(-50%) rotate(18deg) scale(1.05); }
body[data-chapter="2"] .poster { opacity: 0; transform: translateY(-80%) scale(.7); }
body[data-chapter="3"] .poster { right: 52vw; transform: translateY(-50%) scale(.82); }
body[data-chapter="4"] .poster, body[data-chapter="5"] .poster { right: calc(50% - min(34vh, 31vw)); transform: translateY(-58%) scale(.85); }
body[data-chapter="4"] .poster-floor, body[data-chapter="5"] .poster-floor { opacity: 1; }
.callout-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.callout-lines line { stroke: var(--silver); stroke-opacity: .5; stroke-width: 1; }
.callout-lines circle { fill: var(--obsidian); stroke: var(--cyan); stroke-width: 1.5; }
.callout-lines .on line { stroke: var(--cyan); stroke-opacity: .95; }
.callout-lines text { fill: var(--white); font: 600 11px var(--text); text-anchor: middle; dominant-baseline: central; }

/* ---------- Navigation ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 30; height: var(--nav-h); display: flex; align-items: center; gap: 24px; padding: 0 var(--gutter); background: linear-gradient(rgba(5,6,10,.85), rgba(5,6,10,0)); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--white); font: 700 1.15rem var(--display); font-stretch: 85%; letter-spacing: .16em; text-transform: uppercase; }
.nav-links { margin-left: auto; }
.nav-links ul { display: flex; gap: 2px; }
.nav-links a { display: block; padding: 10px 12px; text-decoration: none; font-size: .9rem; color: var(--silver); border-radius: 999px; transition: color .2s, background-color .2s; }
.nav-links a:hover { color: var(--white); background: rgba(217,222,230,.07); }
.nav-meta { display: flex; align-items: center; gap: 10px; }
.concept-pill { display: inline-flex; align-items: center; gap: 8px; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--silver); padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(5,6,10,.6); white-space: nowrap; }
.pill-dot { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--warm); }
.back-link { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); text-decoration: none; font-size: .88rem; color: var(--white); background: rgba(5,6,10,.6); white-space: nowrap; transition: border-color .2s, background-color .2s; }
.back-link:hover { border-color: var(--cyan); background: rgba(46,216,255,.08); }
.menu-btn { display: none; }

@media (max-width: 1080px) {
  .nav-links ul { display: none; }
  .js .menu-btn { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(5,6,10,.6); color: var(--white); font: 500 .88rem var(--text); cursor: pointer; }
  .nav.is-open .nav-links ul { display: flex; position: fixed; top: var(--nav-h); left: 0; right: 0; flex-direction: column; padding: 12px var(--gutter) 24px; background: rgba(5,6,10,.97); border-bottom: 1px solid var(--line); }
  .nav.is-open .nav-links a { font: 700 1.6rem var(--display); font-stretch: 85%; padding: 10px 0; border-bottom: 1px solid var(--line); border-radius: 0; }
  .no-js .nav-links ul { display: flex; flex-wrap: wrap; }
  .nav-links { margin-left: 0; order: 3; }
  .nav-meta { margin-left: auto; }
}
@media (max-width: 640px) {
  :root { --nav-h: 96px; }
  .nav { flex-wrap: wrap; align-content: center; row-gap: 6px; height: auto; min-height: var(--nav-h); padding-top: 8px; padding-bottom: 8px; }
  .nav-meta { order: 4; width: 100%; justify-content: space-between; margin: 0; }
  .menu-btn { margin-left: auto; }
  .pill-long, .bl-long { display: none; }
}

/* ---------- Chapter rail ---------- */
.rail { position: fixed; right: var(--gutter); top: 50%; transform: translateY(-50%); z-index: 20; display: flex; gap: 14px; align-items: stretch; }
.rail ol { display: grid; gap: 4px; }
.rail a { display: flex; align-items: center; justify-content: flex-end; gap: 10px; min-height: 32px; text-decoration: none; color: var(--muted); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; transition: color .25s; }
.rail-l { opacity: 0; transform: translateX(6px); transition: opacity .25s, transform .25s var(--ease); }
.rail a:hover .rail-l, .rail a:focus-visible .rail-l, .rail a[aria-current="true"] .rail-l { opacity: 1; transform: none; }
.rail a[aria-current="true"] { color: var(--white); }
.rail-n { font-variant-numeric: tabular-nums; }
.rail-track { width: 1px; background: var(--line-2); position: relative; }
.rail-fill { position: absolute; left: -1px; width: 3px; top: 0; height: 100%; background: var(--cyan); transform-origin: top; transform: scaleY(var(--progress, 0)); border-radius: 2px; }
@media (max-width: 1180px) {
  .rail { top: auto; bottom: 0; left: 0; right: 0; transform: none; height: 3px; }
  .rail ol { display: none; }
  .rail-track { width: 100%; height: 3px; background: rgba(217,222,230,.08); }
  .rail-fill { left: 0; top: 0; width: 100%; height: 3px; transform-origin: left; transform: scaleX(var(--progress, 0)); }
}

/* ---------- Type ---------- */
.display { font-family: var(--display); font-weight: 780; font-stretch: 78%; letter-spacing: -.02em; line-height: .9; color: var(--white); text-wrap: balance; }
.display > span { display: block; }
.arrival h1 { font-size: clamp(3.6rem, 1rem + 9.2vw, 11.5rem); }
.display-md { font-size: clamp(2.6rem, 1rem + 5vw, 6.4rem); }
.display-sm { font-size: clamp(2rem, 1rem + 2.6vw, 3.2rem); line-height: 1; }
.eyebrow, .label, .cap, .product-type, .c-spec, .footnote { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.label { display: flex; align-items: center; gap: 12px; color: var(--cyan); }
.label::after { content: ""; width: 40px; height: 1px; background: currentColor; opacity: .6; }
.eyebrow { color: var(--silver); margin-bottom: 26px; display: flex; gap: 10px; align-items: center; }
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--cyan); }
.lede { margin-top: 28px; max-width: 40ch; font-size: clamp(1.05rem, .95rem + .35vw, 1.22rem); color: var(--silver); }
.sub { color: var(--muted); max-width: 52ch; margin-top: 18px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 24px; border-radius: 999px; border: 1px solid var(--line-2); font: 600 .98rem var(--text); text-decoration: none; cursor: pointer; transition: background-color .25s, color .25s, border-color .25s, box-shadow .25s, transform .25s var(--ease); }
.btn-primary { background: var(--white); color: var(--obsidian); border-color: var(--white); }
.btn-primary:hover { background: #fff; box-shadow: 0 0 0 6px rgba(46,216,255,.14), 0 10px 40px -10px rgba(46,216,255,.6); transform: translateY(-1px); }
.btn-ghost { background: rgba(5,6,10,.5); color: var(--white); }
.btn-ghost:hover { border-color: var(--cyan); background: rgba(46,216,255,.08); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.actions-center { justify-content: center; }

/* ---------- Chapters ---------- */
main { position: relative; z-index: 1; }
.chapter { position: relative; padding: 0 var(--gutter); }
.copy { position: relative; max-width: 620px; }
.copy::before { content: ""; position: absolute; inset: -80px -120px -80px calc(-1 * var(--gutter)); z-index: -1; pointer-events: none; background: radial-gradient(closest-side, rgba(5,6,10,.72), rgba(5,6,10,0)); }
.arrival { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding-top: var(--nav-h); }
.arrival .copy { max-width: 760px; }
.scroll-cue { position: absolute; left: var(--gutter); bottom: 28px; display: inline-flex; align-items: center; gap: 12px; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); text-decoration: none; min-height: 40px; }
.cue-line { width: 1px; height: 36px; background: linear-gradient(var(--cyan), transparent); position: relative; overflow: hidden; }
@media (prefers-reduced-motion: no-preference) { .cue-line::after { content: ""; position: absolute; left: 0; top: -12px; width: 1px; height: 12px; background: var(--white); animation: cue 2.4s var(--ease) infinite; } }
@keyframes cue { to { transform: translateY(60px); } }

.form { min-height: 200vh; padding-top: 18vh; }
.groups { display: grid; gap: 22vh; margin-top: 16vh; padding-bottom: 20vh; max-width: 30rem; }
.group { border-left: 1px solid var(--line-2); padding-left: 20px; }
.group .cap { color: var(--cyan); margin-bottom: 8px; }
.group p:last-child { color: var(--silver); font-size: 1.1rem; }

.collection { padding-top: 16vh; padding-bottom: 16vh; }
.copy-center { margin: 0 auto; text-align: center; }
.copy-center .label { justify-content: center; }
.copy-center .sub { margin-left: auto; margin-right: auto; }
.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 36px); max-width: 1240px; margin: clamp(40px, 6vw, 72px) auto 0; }
.product-btn { all: unset; box-sizing: border-box; display: grid; width: 100%; cursor: pointer; border-radius: 22px; outline-offset: 6px; }
.product-btn:focus-visible { outline: 2px solid var(--cyan); }
.product-stage { position: relative; display: block; aspect-ratio: 4 / 4.6; border-radius: 22px; border: 1px solid transparent; transition: border-color .3s, transform .45s var(--ease); }
.product-fallback { display: none; position: absolute; inset: 12%; width: 76%; height: 76%; }
.product-meta { display: grid; gap: 6px; padding: 20px 6px 0; }
.product-name { font: 760 2.1rem/1 var(--display); font-stretch: 80%; color: var(--white); letter-spacing: -.01em; }
.product-line { color: var(--muted); font-size: .98rem; }
.product-more { margin-top: 8px; font-weight: 600; font-size: .92rem; color: var(--white); display: inline-flex; gap: 8px; }
.product-btn:hover .product-stage, .product-btn:focus-visible .product-stage { transform: translateY(-6px); }
.product-btn:hover .product-more span, .product-btn:focus-visible .product-more span { transform: translateX(4px); }
.product-more span { transition: transform .3s var(--ease); }

.engineering { height: 240vh; }
.pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; padding-top: var(--nav-h); }
.copy-right { margin-left: auto; max-width: 470px; margin-right: clamp(0px, 5vw, 96px); }
.copy-right::before { inset: -60px -60px -60px -140px; }
.callouts { display: grid; gap: 4px; margin-top: 26px; counter-reset: c; }
.callouts li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid transparent; transition: background-color .3s, border-color .3s; cursor: default; }
.callouts li.on { background: rgba(46,216,255,.06); border-color: rgba(46,216,255,.25); }
.c-n { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--cyan); font-size: .72rem; font-weight: 600; color: var(--white); margin-top: 2px; }
.c-name { font-weight: 600; color: var(--white); }
.c-text { color: var(--muted); font-size: .92rem; line-height: 1.5; }
.c-spec { margin-top: 4px; color: var(--silver); letter-spacing: .1em; font-size: .7rem; }
.footnote { margin-top: 18px; letter-spacing: .06em; text-transform: none; font-size: .78rem; }

.environment { min-height: 180vh; padding-top: 22vh; }
.spaces { margin: 40px 0 0; display: grid; gap: 0; max-width: 28rem; border-top: 1px solid var(--line); }
.spaces div { display: grid; grid-template-columns: 8rem 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.spaces dt { font: 700 1.05rem var(--display); font-stretch: 85%; letter-spacing: .08em; text-transform: uppercase; color: var(--warm); }
.spaces dd { margin: 0; color: var(--silver); }

.closing { min-height: 110vh; min-height: 110svh; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 12vh; }
.closing-copy::before { inset: -80px -160px -80px -160px; }

/* ---------- Reveal (added by JS only) ---------- */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .8s var(--ease); }
.rv.in { opacity: 1; transform: none; }

/* ---------- Footer ---------- */
.footer { position: relative; z-index: 1; background: linear-gradient(rgba(5,6,10,0), var(--obsidian) 30%); padding: 80px var(--gutter) 40px; border-top: 1px solid var(--line); }
.footer-inner { max-width: 1240px; margin: 0 auto; display: grid; gap: 20px; }
.footer-brand { font: 780 2.4rem/1 var(--display); font-stretch: 80%; letter-spacing: .1em; text-transform: uppercase; color: var(--white); display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.footer-brand span { font: 500 .74rem var(--text); letter-spacing: .16em; color: var(--warm); }
.footer-note { max-width: 70ch; color: var(--muted); }
.footer nav ul { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer nav a { display: inline-block; padding: 8px 0; color: var(--silver); text-decoration: none; }
.footer nav a:hover { color: var(--white); text-decoration: underline; text-decoration-color: var(--cyan); text-underline-offset: 4px; }
.footer-small { font-size: .82rem; color: var(--muted); }

/* ---------- Dialogs ---------- */
.dlg { border: 1px solid var(--line-2); border-radius: 22px; padding: 0; width: min(560px, calc(100% - 32px)); max-height: calc(100dvh - 48px); background: rgba(10,13,24,.96); color: var(--silver); box-shadow: 0 40px 120px -20px rgba(0,0,0,.8), 0 0 0 1px rgba(46,216,255,.06); }
.dlg::backdrop { background: rgba(3,4,8,.72); backdrop-filter: blur(6px); }
.dlg-inner { padding: clamp(24px, 4vw, 40px); display: grid; gap: 16px; }
.specs { margin: 6px 0 0; display: grid; border-top: 1px solid var(--line); }
.specs div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--muted); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; padding-top: 2px; }
.specs dd { margin: 0; }
.demo { border-left: 2px solid var(--warm); padding-left: 14px; color: var(--muted); }
.inquiry { display: grid; gap: 8px; }
.inquiry label { font-weight: 600; color: var(--white); margin-top: 8px; font-size: .92rem; }
.inquiry select, .inquiry textarea { font: inherit; color: var(--white); background: rgba(5,6,10,.8); border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 14px; min-height: 48px; }
.inquiry select:focus, .inquiry textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(46,216,255,.25); }
.inquiry textarea[aria-invalid="true"] { border-color: var(--warm); }
.status { min-height: 1.5em; font-size: .92rem; color: var(--silver); }
.status.is-error { color: var(--warm); }
.dlg-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .products { grid-template-columns: 1fr; max-width: 460px; }
  .product-stage { aspect-ratio: 4 / 3.4; }
}
/* Portrait phones & narrow tablets: text owns the lower half, sculpture the upper. */
@media (max-aspect-ratio: 4/5) {
  .arrival { align-items: flex-end; padding-bottom: 96px; }
  .copy::before { inset: -60px auto -60px calc(-1 * var(--gutter)); width: 100vw; background: linear-gradient(rgba(5,6,10,0), rgba(5,6,10,.78) 22%, rgba(5,6,10,.78) 82%, rgba(5,6,10,0)); }
  .form { padding-top: 56vh; }
  .groups { gap: 14vh; margin-top: 10vh; }
  .engineering { height: auto; }
  .pin { position: relative; height: auto; display: block; padding-top: 52vh; padding-bottom: 12vh; }
  .copy-right { margin: 0; max-width: none; }
  .environment { padding-top: 66vh; min-height: 0; padding-bottom: 20vh; }
  .closing { padding-bottom: 10vh; }
  .poster { width: 78vw; right: 11vw; top: 30%; }
  body[data-chapter] .poster { right: 11vw; transform: translateY(-50%) scale(.9); }
}
@media (max-width: 520px) {
  .actions .btn { flex: 1 1 100%; }
  .spaces div { grid-template-columns: 1fr; gap: 2px; }
  .specs div { grid-template-columns: 1fr; gap: 2px; }
  .scroll-cue { bottom: 18px; }
}

/* ---------- No WebGL: deliberate static presentation ---------- */
.no-webgl .stage canvas, .no-webgl .callout-lines { display: none; }
.no-webgl .product-stage, .no-js .product-stage { border-color: var(--line); background: radial-gradient(circle at 50% 45%, rgba(46,216,255,.08), rgba(5,6,10,.4) 70%); }
.no-webgl .product-fallback, .no-js .product-fallback { display: block; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
  .rv { opacity: 1; transform: none; }
}

/* ---------- Engineering fit + rail clearance ---------- */
.engineering .display-md { font-size: clamp(2.4rem, 1rem + 3.2vw, 4.4rem); }
.engineering .callouts { margin-top: 18px; gap: 2px; }
.engineering .callouts li { padding: 7px 12px; }
@media (min-width: 1181px) { .copy-right { margin-right: 150px; } }
@media (max-height: 820px) and (min-aspect-ratio: 4/5) {
  .engineering .c-text { display: none; }
  .engineering .callouts li.on .c-text { display: block; }
}

/* ---------- Compact nav for mid widths, short landscape screens ---------- */
@media (max-width: 900px) {
  .pill-long, .bl-long { display: none; }
  .nav { gap: 12px; }
}
@media (max-height: 520px) and (min-aspect-ratio: 4/5) {
  :root { --nav-h: 56px; }
  .nav { height: var(--nav-h); }
  .concept-pill { padding: 4px 10px; }
  .arrival { align-items: flex-end; padding-bottom: 20px; }
  .arrival h1 { font-size: clamp(2rem, 13vh, 4.6rem); }
  .arrival h1 > span { display: inline; }
  .arrival .copy { max-width: 62%; }
  .lede { max-width: 52ch; }
  .eyebrow { margin-bottom: 10px; }
  .lede { margin-top: 12px; max-width: 46ch; font-size: .98rem; }
  .actions { margin-top: 16px; }
  .btn { min-height: 44px; }
  .scroll-cue { display: none; }
}

/* Decorative scrims and the callout overlay must never widen the page. */
.chapter, .footer { overflow-x: clip; }
.stage, .callout-lines { overflow: hidden; }
