/* symphonybots.com — single-page, cinematic.
   Light "studio" sections share the exact grey of the product photos (#e3e3e3),
   so the vehicles float on the page; dark sections carry the story.
   Motion is opacity/transform only — no blur, canvas or scroll-jacking — so it
   stays smooth on phones. */

:root {
  --ink: #050505;
  --char: #0a0a0a;
  --studio: #e3e3e3;
  --brand: #0ea5e9;
  --brand-hi: #38bdf8;
  --brand-soft: #7dd3fc;
  --fg: #f4f4f5;
  --mute: #8d929b;
  --ink-mute: #50555e;
  --line-d: rgba(255, 255, 255, .12);
  --line-l: rgba(0, 0, 0, .13);
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --logo: 'Michroma', var(--sans);
  --ease: cubic-bezier(.2, .7, .15, 1);
  --pad: clamp(1.25rem, 4vw, 3rem);
  --head-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ink); color: var(--fg);
  font: 400 1rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
::selection { background: var(--brand); color: #fff; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

.wrap { width: min(1280px, 100% - 2 * var(--pad)); margin-inline: auto; }
.mono { font-family: var(--mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; }
.accent { color: var(--brand); }
[data-theme="dark"] .accent { color: var(--brand-hi); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; left: 1rem; top: -4rem; z-index: 100; background: #fff; color: var(--ink); padding: .6rem 1rem; border-radius: 999px; }
.skip-link:focus { top: 1rem; }

/* ---------- logo / buttons ---------- */
.logo { font-family: var(--logo); font-size: 1.35rem; letter-spacing: -.02em; line-height: 1; white-space: nowrap; }
.logo .b { color: var(--brand); }

.btn {
  display: inline-flex; align-items: center; gap: .65rem;
  padding: 1rem 1.5rem; border-radius: 999px;
  font: 500 .92rem/1 var(--sans); letter-spacing: .01em; white-space: nowrap;
  transition: background-color .3s, color .3s, border-color .3s;
}
.btn .arr { transition: transform .35s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--brand); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--brand); color: #fff; }
.link { color: var(--brand-hi); font-weight: 500; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--head-h);
  display: flex; align-items: center; gap: 2.2rem; padding: 0 var(--pad);
  color: var(--ink); transition: background-color .35s, color .35s;
}
.site-header[data-on="dark"] { color: var(--fg); }
.site-header.is-scrolled { background: var(--studio); }
.site-header.is-scrolled[data-on="dark"] { background: var(--ink); }
.site-header .nav { margin-left: auto; display: flex; gap: 2rem; font-size: .92rem; }
.site-header .nav a { opacity: .75; transition: opacity .25s; }
.site-header .nav a:hover { opacity: 1; }
.btn-head { padding: .7rem 1.2rem; border: 1px solid currentColor; }
.btn-head:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.menu-btn { display: none; margin-left: auto; padding: .7rem 0 .7rem 1rem; }

.menu {
  position: fixed; inset: 0; z-index: 40; background: var(--ink); color: var(--fg);
  display: flex; flex-direction: column; justify-content: center; gap: .4rem;
  padding: var(--head-h) var(--pad) 3rem;
  visibility: hidden; opacity: 0; transition: opacity .35s, visibility 0s .35s;
}
.menu a { font-size: clamp(2.2rem, 9vw, 3.4rem); font-weight: 200; letter-spacing: -.03em; line-height: 1.25; }
.menu .menu-mate { font-size: .74rem; margin-top: 2rem; color: var(--mute); }
.menu-open .menu { visibility: visible; opacity: 1; transition: opacity .35s; }
.menu-open .site-header { color: var(--fg); background: transparent; }
.menu-open { overflow: hidden; }

@media (max-width: 760px) {
  .site-header .nav, .btn-head { display: none; }
  .menu-btn { display: block; }
  :root { --head-h: 64px; }
  .logo { font-size: 1.15rem; }
}

/* ---------- shared section bits ---------- */
[data-theme="light"] { background: var(--studio); color: var(--ink); }
[data-theme="dark"] { background: var(--ink); color: var(--fg); }
.label { display: block; margin-bottom: 1.4rem; color: var(--brand-hi); font-weight: 400; }
[data-theme="light"] .label { color: var(--ink-mute); }
.h2 { font-size: clamp(2.5rem, 6.4vw, 6rem); font-weight: 200; line-height: 1; letter-spacing: -.05em; padding-bottom: .06em; }
.lead { font-size: clamp(1.02rem, 1.3vw, 1.2rem); line-height: 1.65; color: var(--mute); max-width: 48ch; }
[data-theme="light"] .lead { color: var(--ink-mute); }
.sec-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.sec-head .lead { margin-top: 1.5rem; }

/* reveal on scroll */
.js .rv { opacity: 0; transform: translateY(28px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }

/* Product photos: soften the frame so no rectangle edge shows on the studio grey. */
.unit img, .platform-img {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent), linear-gradient(transparent, #000 4%, #000 95%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent), linear-gradient(transparent, #000 4%, #000 95%, transparent);
  mask-composite: intersect;
}

/* ---------- hero ---------- */
/* Hero photos are cropped tight to the vehicle (images/hero/), so the stage
   height is the vehicle height. The headline scales with viewport height too,
   leaving the rest of a laptop screen to the machine. */
.hero {
  position: relative; min-height: 100svh; overflow: hidden;
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto;
  padding: 0 var(--pad);
}
.hero-h {
  position: relative; z-index: 2; text-align: center;
  padding-top: calc(var(--head-h) + 4vh);
  font-size: clamp(3.1rem, min(7.2vw, 12vh), 9.5rem); font-weight: 200; line-height: .95; letter-spacing: -.055em;
}
.hero-h .ln { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.hero-h .ln > span { display: block; }
.js .hero-h .ln > span { transform: translateY(105%); animation: rise 1.2s var(--ease) .1s forwards; }
.js .hero-h .ln + .ln > span { animation-delay: .22s; }
@keyframes rise { to { transform: none; } }

.hero-stage { position: relative; z-index: 1; margin-top: 2.5vh; min-height: 0; }
.hero-stage img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; object-position: 50% 100%;
  opacity: 0; transform: scale(1.04); transform-origin: 50% 100%;
  transition: opacity 1.4s ease, transform 6.5s linear;
}
.hero-stage img.is-on { opacity: 1; transform: scale(1); }
.js .hero-stage { opacity: 0; animation: fade 1.6s ease .35s forwards; }
@keyframes fade { to { opacity: 1; } }

.hero-foot {
  position: relative; z-index: 2;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem;
  padding: 1.2rem 0 clamp(1.5rem, 4vh, 2.5rem);
}
.hero-pitch { display: grid; gap: 1.2rem; justify-items: start; }
.hero-pitch p { max-width: 30ch; font-size: .95rem; color: var(--ink-mute); }
.hero-now { color: var(--ink-mute); transition: opacity .5s; }
.hero-now.swap { opacity: 0; }

/* Wide screens: the pitch and vehicle name sit in the bottom corners, over the
   empty studio floor, so the vehicle gets the full height. */
@media (min-width: 1100px) {
  .hero-stage { padding-bottom: clamp(1.5rem, 4vh, 2.5rem); }
  .hero-stage img { height: calc(100% - clamp(1.5rem, 4vh, 2.5rem)); }
  .hero-foot { position: absolute; left: var(--pad); right: var(--pad); bottom: 0; pointer-events: none; }
  .hero-foot > * { pointer-events: auto; }
}

@media (max-width: 760px) {
  .hero-h { padding-top: calc(var(--head-h) + 6vh); font-size: 14vw; }
  .hero-stage { margin-top: 4vh; }
  .hero-foot { flex-direction: column; align-items: center; text-align: center; gap: 1.1rem; }
  .hero-pitch { justify-items: center; }
  .hero-now { order: -1; }
}

/* ---------- statement ---------- */
.statement {
  background: linear-gradient(180deg, var(--studio) 0, var(--ink) 34vh);
  padding: calc(34vh + clamp(2rem, 6vw, 5rem)) 0 clamp(5rem, 10vw, 9rem);
  text-align: center;
}
.statement .big {
  max-width: 19ch; margin: 0 auto;
  font-size: clamp(2.1rem, 5vw, 4.8rem); font-weight: 200; line-height: 1.08; letter-spacing: -.04em;
}
.statement .lead { margin: 2.2rem auto 0; }

/* ---------- why ---------- */
.beats { padding: 0 0 clamp(6rem, 12vw, 10rem); }
.beats .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 3rem); }
.beats .label { grid-column: 1 / -1; margin: 0; }
.beat { border-top: 1px solid var(--line-d); padding-top: 1.6rem; }
.beat .n { color: var(--mute); }
.beat h3 { margin: 2.5rem 0 1rem; font-size: clamp(1.7rem, 2.6vw, 2.4rem); font-weight: 300; letter-spacing: -.035em; line-height: 1.1; }
.beat p { color: var(--mute); max-width: 36ch; }
@media (max-width: 860px) {
  .beats .wrap { grid-template-columns: 1fr; }
  .beat h3 { margin-top: 1.4rem; }
}

/* ---------- fleet ---------- */
.fleet { padding: clamp(6rem, 11vw, 10rem) 0 clamp(5rem, 9vw, 8rem); overflow: hidden; }
.tabs {
  display: flex; gap: .45rem; overflow-x: auto; scrollbar-width: none;
  margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad) .25rem;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  flex: none; padding: .7rem 1.15rem; border-radius: 999px;
  border: 1px solid var(--line-l); font-size: .9rem; white-space: nowrap;
  transition: background-color .3s, color .3s, border-color .3s;
}
.tabs button:hover { border-color: var(--ink); }
.tabs button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

.units { position: relative; }
.unit { display: none; }
.unit.is-on { display: block; animation: unit-in .9s var(--ease); }
@keyframes unit-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.unit img { width: min(100%, 1100px); margin: clamp(.5rem, 2vw, 1.5rem) auto 0; max-height: 64vh; object-fit: contain; }
.unit-info {
  display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 2rem; align-items: start;
  border-top: 1px solid var(--line-l); padding-top: 1.6rem;
}
.unit .kind { color: var(--ink-mute); }
.unit h3 { margin-top: .6rem; font-size: clamp(1.9rem, 3vw, 2.8rem); font-weight: 300; letter-spacing: -.04em; line-height: 1.05; }
.unit p { color: var(--ink-mute); max-width: 44ch; }
.unit-buy { margin-top: 1.4rem; padding: .8rem 1.2rem; font-size: .85rem; }
.specs li { padding: .55rem 0; border-bottom: 1px solid var(--line-l); font-size: .7rem; }
.specs li:first-child { padding-top: 0; }
.specs a { color: var(--ink); }
@media (max-width: 860px) {
  .unit img { width: 150%; max-width: none; max-height: none; margin-left: -25%; }
  .unit-info { grid-template-columns: 1fr; gap: 1.2rem; }
}

/* ---------- technology ---------- */
.tech { padding: clamp(6rem, 11vw, 10rem) 0 0; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 3rem); }
.steps li { border-top: 1px solid var(--line-d); padding-top: 1.6rem; }
.steps .mono { color: var(--brand-hi); }
.steps h3 { margin: 1.4rem 0 .8rem; font-size: clamp(1.4rem, 2vw, 1.8rem); font-weight: 300; letter-spacing: -.03em; }
.steps p { color: var(--mute); max-width: 38ch; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

.film { position: relative; margin-top: clamp(4rem, 8vw, 7rem); padding-bottom: clamp(5rem, 9vw, 8rem); }
.film video { width: 100%; height: auto; aspect-ratio: 1920 / 918; object-fit: cover; background: var(--char); }
.film::before {
  content: ''; position: absolute; inset: 0 0 auto; height: 18%; z-index: 1; pointer-events: none;
  background: linear-gradient(var(--ink), transparent);
}
.film figcaption { display: grid; grid-template-columns: auto 1fr 1.2fr; gap: 2rem; align-items: baseline; margin-top: 2rem; }
.film figcaption .mono { color: var(--brand-hi); }
.film h3 { font-size: clamp(1.7rem, 3vw, 2.8rem); font-weight: 200; letter-spacing: -.04em; line-height: 1.05; }
.film p { color: var(--mute); max-width: 52ch; }
@media (max-width: 860px) {
  .film video { aspect-ratio: 4 / 3; }
  .film figcaption { grid-template-columns: 1fr; gap: .9rem; }
}

/* ---------- platform ---------- */
.platform { padding: clamp(6rem, 11vw, 10rem) 0 clamp(5rem, 9vw, 8rem); overflow: hidden; }
.platform-img { width: min(100%, 1100px); margin: 0 auto; aspect-ratio: 1500 / 760; object-fit: cover; }
.editions { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 4rem); margin-top: 1rem; }
.edition { border-top: 1px solid var(--line-l); padding-top: 1.6rem; display: flex; flex-direction: column; align-items: flex-start; }
.edition .mono { color: var(--ink-mute); }
.edition h3 { margin: 1rem 0 .7rem; font-size: clamp(1.6rem, 2.4vw, 2.2rem); font-weight: 300; letter-spacing: -.035em; }
.edition p { color: var(--ink-mute); max-width: 44ch; }
.edition ul { margin: 1.4rem 0 2rem; width: 100%; }
.edition li { padding: .6rem 0; border-bottom: 1px solid var(--line-l); font-size: .95rem; }
.edition .btn { margin-top: auto; }
.faq { margin-top: clamp(4rem, 8vw, 6rem); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line-l); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.3rem 2.5rem 1.3rem 0; position: relative;
  font-size: clamp(1.02rem, 1.4vw, 1.2rem);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: .2rem; top: 1.05rem; font-size: 1.5rem; font-weight: 200; transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 1.4rem; color: var(--ink-mute); max-width: 64ch; }
@media (max-width: 860px) {
  .platform-img { width: 150%; max-width: none; margin: 0 0 0 -25%; aspect-ratio: 1500 / 640; }
  .editions { grid-template-columns: 1fr; }
}

/* ---------- contact ---------- */
.contact { padding: clamp(6rem, 11vw, 10rem) 0; }
.contact .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem, 7vw, 7rem); }
.contact .lead { margin-top: 1.5rem; }
.contact dl { margin-top: 3rem; display: grid; gap: 1.1rem; }
.contact dt { color: var(--mute); font-size: .66rem; }
.contact dd { margin-top: .25rem; color: var(--fg); text-transform: none; letter-spacing: .02em; font-size: .85rem; }
.contact dd a:hover { color: var(--brand-hi); }
form { display: grid; gap: 1.6rem; }
.seg { border: 0; margin: 0; padding: 0; display: flex; gap: .45rem; flex-wrap: wrap; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; padding: .65rem 1.1rem; border-radius: 999px; border: 1px solid var(--line-d); font-size: .88rem; transition: background-color .3s, color .3s; }
.seg input:checked + span { background: var(--fg); color: var(--ink); border-color: var(--fg); }
.seg input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
.field { display: grid; gap: .3rem; }
.field > span { font-family: var(--mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.field input, .field textarea {
  width: 100%; background: transparent; color: var(--fg); border: 0; border-bottom: 1px solid rgba(255, 255, 255, .22);
  border-radius: 0; padding: .7rem 0; font: 300 1.08rem/1.5 var(--sans); resize: vertical; transition: border-color .3s;
}
.field input::placeholder, .field textarea::placeholder { color: #50555e; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand-hi); }
form .btn { justify-self: start; margin-top: .4rem; }
form .btn:disabled { opacity: .6; cursor: wait; }
.form-error { color: #f87171; font-size: .9rem; min-height: 1.4em; }
.form-done h3 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 200; letter-spacing: -.04em; }
.form-done p { color: var(--mute); margin: 1rem 0 2rem; }
@media (max-width: 860px) {
  .contact .wrap { grid-template-columns: 1fr; }
  .row2 { grid-template-columns: 1fr; }
}

/* ---------- footer / 404 ---------- */
.site-footer { border-top: 1px solid var(--line-d); padding: 2.5rem 0; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2.5rem; }
.site-footer p { color: var(--mute); font-size: .9rem; }
.site-footer ul { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; margin-left: auto; text-transform: none; letter-spacing: .02em; font-size: .8rem; }
.site-footer ul a { display: inline-flex; align-items: center; gap: .45rem; color: var(--mute); transition: color .25s; }
.site-footer ul a:hover { color: var(--fg); }
.site-footer ul img { border-radius: 50%; }
.site-footer .copy { color: #5d626b; width: 100%; font-size: .66rem; }

.lost { min-height: 88vh; display: flex; align-items: center; padding: calc(var(--head-h) + 3rem) 0 4rem; }
.lost .lead { margin: 1.5rem 0 2.5rem; }

/* ---------- cookie banner (tracking.js; only shown when IDs are set) ---------- */
#sb-consent {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 60; max-width: 760px; margin: 0 auto;
  display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; padding: 1.4rem 1.6rem;
  background: rgba(10, 10, 10, .97); color: var(--fg); border: 1px solid var(--line-d); border-radius: 14px;
}
#sb-consent .sb-c-copy { flex: 1 1 320px; }
#sb-consent .sb-c-label { display: block; color: var(--brand-hi); font: .66rem var(--mono); text-transform: uppercase; letter-spacing: .18em; margin-bottom: .5rem; }
#sb-consent p { color: var(--mute); font-size: .84rem; line-height: 1.6; }
#sb-consent .sb-c-actions { display: flex; gap: .6rem; }
#sb-consent button { padding: .8rem 1.3rem; border-radius: 999px; font-size: .85rem; border: 1px solid var(--line-d); }
#sb-consent .sb-accept { background: #fff; color: var(--ink); border-color: #fff; }
@media (max-width: 640px) { #sb-consent .sb-c-actions { width: 100%; } #sb-consent .sb-c-actions button { flex: 1; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .rv, .js .hero-stage { opacity: 1; transform: none; }
  .js .hero-h .ln > span { transform: none; }
}
