/* STELA concept site. Tokens: see README.md "Design tokens". */
@font-face { font-family: "Suisse"; src: url(../assets/fonts/SuisseIntl-Light.woff2) format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Suisse"; src: url(../assets/fonts/SuisseIntl-Book.woff2) format("woff2"); font-weight: 350; font-display: swap; }
@font-face { font-family: "Suisse"; src: url(../assets/fonts/SuisseIntl-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Suisse"; src: url(../assets/fonts/SuisseIntl-Medium.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Saans"; src: url(../assets/fonts/Saans-Light.woff2) format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Saans"; src: url(../assets/fonts/Saans-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Saans"; src: url(../assets/fonts/Saans-Medium.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Saans Mono"; src: url(../assets/fonts/SaansMono-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --ink: #0D0D0C; --ink-2: #161615; --line: #2A2A29; --graphite: #313132; --steel: #4D4E4F;
  --alloy: #A9AAAB; --bone: #EDEDEC; --lumen: #D7D6D5;
  --film: #0A0A0A;                                    /* page behind the film/3D = film corner black */
  --text: "Suisse", "Saans", system-ui, sans-serif;   /* Suisse has no 1-9 % + ! ? : ( ): Saans fills them */
  --num: "Saans", system-ui, sans-serif;
  --mono: "Saans Mono", ui-monospace, monospace;
  --gutter: 2.5vw; --col: calc((100vw - var(--gutter) * 2) / 12);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --nav-h: 64px;
}
@media (max-width: 833px) { :root { --gutter: 5.3vw; --nav-h: 56px; } }

*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { background: var(--ink); color: var(--bone); font-family: var(--text); font-weight: 350; font-size: 16px;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
html.lenis { height: auto; } .lenis.lenis-stopped { overflow: hidden; }
body { overflow-x: clip; }
img, svg, video, canvas { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 1px solid var(--lumen); outline-offset: 3px; }
.num { font-family: var(--num); font-feature-settings: "tnum" 1; }
.eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--alloy); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* lit surface + 3% noise (from the brand README) */
.lit { background:
  radial-gradient(90% 120% at 100% 100%, #131413 0%, transparent 55%),
  radial-gradient(110% 140% at 0% 0%, #222323 0%, transparent 60%),
  #0A0A0A; position: relative; }
.lit::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .03; mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 18px; border-radius: 2px;
  font-size: 14px; font-weight: 400; letter-spacing: -.005em; white-space: nowrap;
  transition: background-color .3s, color .3s, border-color .3s; }
.btn--solid { background: var(--bone); color: var(--ink); }
.btn--line { border: 1px solid var(--steel); color: var(--bone); }
.btn .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .55; transition: opacity .3s, box-shadow .3s; }
@media (hover: hover) and (pointer: fine) {
  .btn--solid:hover { background: var(--lumen); }
  .btn--solid:hover .dot { opacity: 1; box-shadow: 0 0 10px rgba(215, 214, 213, .9); }
  .btn--line:hover { border-color: var(--alloy); background: rgba(237, 237, 236, .04); }
}

/* ---------- nav: segmented bar with a light guide ---------- */
.nav { position: fixed; z-index: 20; top: 16px; left: var(--gutter); right: var(--gutter); height: 40px; display: flex; gap: 4px;
  transition: transform .5s var(--ease-out), opacity .5s; }
.nav.is-hidden { transform: translateY(-160%); opacity: 0; }
.nav__mark, .nav__seg, .nav__cta { border-radius: 3px; }
.nav__mark, .nav__seg { background: rgba(22, 22, 21, .6); border: 1px solid var(--line); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.nav__mark { flex: 0 0 52px; display: grid; place-items: center; }
.nav__mark img { height: 18px; width: auto; }
.nav__segs { position: relative; flex: 1; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.nav__seg { position: relative; isolation: isolate; display: flex; align-items: center; gap: 12px; padding: 0 14px; overflow: hidden;
  font-size: 13px; color: var(--bone); white-space: nowrap; transition: border-color .3s, color .45s; }
.nav__seg .i { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; color: var(--alloy); transition: color .45s; }
.nav__seg::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--lumen); transform: scaleY(0); transform-origin: bottom; transition: transform .55s var(--ease-out); }
.nav__seg.is-on { color: var(--ink); border-color: var(--lumen); }
.nav__seg.is-on .i { color: var(--steel); }
.nav__seg.is-on::before { transform: none; }
.nav__toggle { display: none; }
.nav__guide { --a: 0px; --b: 0px; --c: 0px; --h: 0; position: absolute; left: 0; right: 0; bottom: -10px; height: 2px; border-radius: 2px; background: rgba(215, 214, 213, .06); pointer-events: none; }
/* fill + halo: feathered at the tail, short soft edge at the tip; brightness ramps toward the tip */
.nav__guide i, .nav__guide b { position: absolute; left: 0; right: 0; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--a), #000 var(--b), transparent var(--c));
          mask-image: linear-gradient(90deg, transparent 0, #000 var(--a), #000 var(--b), transparent var(--c)); }
.nav__guide i { top: 0; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, rgba(215, 214, 213, .14), rgba(215, 214, 213, .5) 65%, var(--bone)) 0 0 / var(--c) 100% no-repeat; }
.nav__guide b { top: -11px; height: 24px; filter: blur(5px); opacity: .7;
  background: linear-gradient(90deg, transparent, rgba(215, 214, 213, .35) 60%, var(--lumen)) 0 50% / var(--c) 3px no-repeat; }
/* the head: a soft hotspot riding the tip */
.nav__guide u { position: absolute; top: -9px; left: var(--c); width: 56px; height: 20px; margin-left: -34px; pointer-events: none;
  opacity: var(--h); filter: blur(3px);
  background: radial-gradient(50% 50% at 60% 50%, rgba(237, 237, 236, .75), rgba(215, 214, 213, .22) 45%, transparent 72%); }
.nav__cta { display: flex; align-items: center; gap: 10px; padding: 0 18px; background: var(--bone); color: var(--ink); font-size: 13px; white-space: nowrap; transition: background .3s; }
.nav__cta i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink); opacity: .5; }
@media (hover: hover) and (pointer: fine) {
  .nav__seg:not(.is-on):hover { border-color: var(--steel); }
  .nav__cta:hover { background: var(--lumen); }
}
@media (max-width: 833px) {
  .nav { top: 12px; gap: 4px; }
  .nav__mark { flex-basis: 44px; }
  .nav__cta { display: none; }
  .nav__segs { grid-template-columns: 1fr; grid-auto-rows: 40px; align-content: start; }
  .nav__seg:not(.is-on) { display: none; }
  .nav.is-open .nav__seg { display: flex; }
  .nav__toggle { display: grid; place-items: center; position: absolute; right: 0; top: 0; width: 44px; height: 40px; z-index: 2; }
  .nav__toggle i { width: 7px; height: 7px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .4s var(--ease-out); }
  .nav__seg.is-on ~ .nav__toggle { color: var(--ink); }
  .nav.is-open .nav__toggle { color: var(--ink); }
  .nav.is-open .nav__toggle i { transform: translateY(2px) rotate(-135deg); }
  .nav__guide { top: 50px; bottom: auto; }
  .nav.is-open .nav__guide { opacity: 0; }
}

/* ---------- the stage (pinned: film -> live 3D -> every product beat) ---------- */
.stage { position: relative; height: 1000vh; }
.stage__frame { position: sticky; top: 0; height: 100vh; height: 100lvh; overflow: hidden; }
.stage__frame > * { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage__canvas { opacity: 0; }
.stage.is-live .stage__canvas { opacity: 1; }
.stage__film, .stage__plate, .stage__still { object-fit: cover; }
.stage__plate, .stage__still { opacity: 0; }
.stage__plate.is-on { opacity: 1; }
.stage__plate.fade { transition: opacity .45s; }
.stage.is-wait .stage__film, .stage.is-wait .stage__plate { opacity: 0; }
.stage__still { transition: opacity .6s; }
.stage__still.is-on { opacity: 1; }
.stage__shade { pointer-events: none; background: linear-gradient(180deg, rgba(10,10,10,.55) 0%, transparent 22%, transparent 70%, rgba(10,10,10,.6) 100%); opacity: 0; transition: opacity 1.2s; }
.stage.is-moving .stage__shade { opacity: 1; }

/* copy layers over the stage; each is shown for a range of scroll progress (js/main.js) */
.beat { pointer-events: none; opacity: 0; visibility: hidden; transition: opacity .7s var(--ease-out), visibility 0s .7s; }
.beat.is-on { opacity: 1; visibility: visible; transition: opacity .9s var(--ease-out), visibility 0s; }
.beat .lift { transform: translateY(14px); transition: transform 1.1s var(--ease-out); }
.beat.is-on .lift { transform: none; }
.beat a, .beat button { pointer-events: auto; }
.copy { position: absolute; max-width: 360px; }
.copy h2 { font-size: clamp(30px, 2.5vw, 44px); font-weight: 300; line-height: 1.08; letter-spacing: -.025em; }
.copy p { margin-top: 16px; font-size: 16px; line-height: 1.45; color: var(--alloy); }
.copy .eyebrow { display: block; margin-bottom: 18px; }
.copy--left { left: var(--gutter); top: 50%; transform: translateY(-50%); }
.copy--right { right: var(--gutter); top: 50%; transform: translateY(-50%); }
.copy--top { left: 0; right: 0; margin: 0 auto; top: calc(var(--nav-h) + 6vh); text-align: center; max-width: 620px; }

.hero__title { position: absolute; left: var(--gutter); bottom: 9vh; max-width: 760px; }
.hero__title h1 { font-size: clamp(40px, 5vw, 84px); font-weight: 300; line-height: 1; letter-spacing: -.035em; }
.hero__title p { margin-top: 22px; max-width: 420px; font-size: 17px; line-height: 1.45; color: var(--alloy); }
.hero__lockup { height: clamp(14px, 1.25vw, 20px); width: auto; margin-bottom: 28px; }
.hero__cue { position: absolute; right: var(--gutter); bottom: 9vh; display: flex; align-items: center; gap: 12px; }
.hero__cue i { display: block; width: 1px; height: 44px; background: linear-gradient(var(--bone), transparent); animation: cue 2.4s var(--ease-out) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 45% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* labels pinned to 3D points (positioned each frame by js/main.js) */
.tag { position: absolute; left: 0; top: 0; width: max-content; will-change: transform; }
.tag__rule { display: block; width: 1px; height: 36px; background: linear-gradient(var(--steel), transparent); margin: 12px auto 0; }
.tag__name { display: block; font-size: 15px; font-weight: 400; letter-spacing: -.01em; text-align: center; }
.tag__spec { display: block; margin-top: 6px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--alloy); text-align: center; text-transform: uppercase; }
.stat { position: absolute; }
.stat__value { font-family: var(--num); font-weight: 300; font-size: clamp(56px, 7vw, 120px); line-height: .9; letter-spacing: -.04em; }
.stat__value small { font-size: .32em; letter-spacing: -.01em; margin-left: .12em; color: var(--alloy); }
.stat__note { margin-top: 14px; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--alloy); }
/* odometer digits: each column is a 0-9 strip that rolls; values are a pure function of scroll */
.odo { display: inline-flex; align-items: flex-start; line-height: 1; height: 1em; }
.odo__col { display: block; height: 1em; overflow: hidden; position: relative; }
.odo__col > span { display: block; will-change: transform; }
.odo__col > span > span { display: block; height: 1em; line-height: 1; text-align: center; }
.odo__dot { display: block; }
.stat__value { display: flex; align-items: flex-start; }
.stat--cap { right: var(--gutter); top: 50%; transform: translateY(-50%); text-align: right; }
.stat--cap .stat__value { justify-content: flex-end; }
.mods { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; width: 100%; max-width: 300px; margin: 22px 0 0 auto; }
.mods i { position: relative; height: 3px; background: var(--line); border-radius: 2px; }
.mods b { position: absolute; inset: 0; border-radius: 2px; background: linear-gradient(90deg, rgba(215,214,213,.4), var(--bone));
  transform-origin: left; transform: scaleX(0); transition: box-shadow .4s; }
.mods b.full { box-shadow: 0 0 10px rgba(215,214,213,.45); }
.odo--sm { height: 1em; vertical-align: -.12em; }
.stat--chg { left: calc(var(--gutter) + clamp(120px, 10.5vw, 180px)); top: 66%; transform: translate(-50%, -50%); display: grid; justify-items: center; }
.copy--high { top: 30%; }
.stat--chg .stat__value, .stat--chg .stat__note { position: relative; z-index: 1; }
.ring { position: absolute; left: 50%; top: 50%; width: clamp(240px, 21vw, 360px); height: auto; transform: translate(-50%, -54%); overflow: visible; pointer-events: none; }
.ring line { stroke: var(--line); stroke-width: 2.2; stroke-linecap: round; transition: stroke .25s; }
.ring line.on { stroke: rgba(215, 214, 213, .75); }
.ring line.head { stroke: var(--bone); filter: drop-shadow(0 0 4px rgba(237, 237, 236, .95)); }
@media (max-width: 833px) {
  .stat--cap { text-align: left; } .stat--cap .stat__value { justify-content: flex-start; } .mods { margin-left: 0; }
  .ring { width: 190px; }
  .stat--chg { left: auto !important; right: var(--gutter) !important; top: 34% !important; bottom: auto; transform: none; }
  .copy--high { top: auto; }
}
.speclabel { position: absolute; left: var(--gutter); bottom: 9vh; display: flex; align-items: center; gap: 14px; }
.speclabel i { width: 28px; height: 1px; background: var(--lumen); }
/* finish beat: callouts pinned to points on the door (positioned each frame by js/main.js) */
.pin { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 12px; width: max-content; will-change: transform; }
.pin::before { content: ""; width: 7px; height: 7px; margin: -3.5px 0 -3.5px -3.5px; border: 1px solid var(--bone); border-radius: 50%; box-shadow: 0 0 8px rgba(237, 237, 236, .5); }
.pin i { width: 36px; height: 1px; background: linear-gradient(90deg, var(--lumen), rgba(215, 214, 213, .25)); }
.pin b { font-weight: 400; color: var(--alloy); margin-right: 10px; }
.pin .eyebrow { color: var(--bone); text-shadow: 0 0 12px rgba(10, 10, 10, .9); }
@media (min-width: 834px) { .speclabel { display: none; } }
@media (max-width: 833px) { .pin { display: none; } }
.progress { position: absolute; left: var(--gutter); right: var(--gutter); top: auto; bottom: 0; height: 1px; background: var(--line); }
.progress span { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(0); background: var(--lumen); }

/* ---------- specs + compare ---------- */
.specs { padding: 160px var(--gutter) 140px; background: var(--ink); }
.specs__head { display: flex; justify-content: space-between; align-items: end; gap: 40px; }
.specs__head h2 { font-size: clamp(34px, 3.3vw, 56px); font-weight: 300; letter-spacing: -.03em; line-height: 1.05; }
.toggle { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 2px; padding: 3px; }
.toggle button { position: relative; z-index: 1; height: 36px; padding: 0 22px; font-size: 14px; color: var(--alloy); transition: color .35s; }
.toggle button[aria-pressed="true"] { color: var(--ink); }
.toggle__pill { position: absolute; z-index: 0; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); background: var(--bone); border-radius: 1px; transition: transform .5s var(--ease-out); }
.toggle[data-v="15"] .toggle__pill { transform: translateX(100%); }
.specs__body { display: grid; grid-template-columns: 5fr 7fr; gap: var(--gutter); margin-top: 72px; align-items: start; }
.specs__media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--film); border-radius: 2px; }
.specs__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .6s; }
.specs__media img + img { opacity: 0; }
.specs[data-v="15"] .specs__media img + img { opacity: 1; }
.specs[data-v="15"] .specs__media img:first-child { opacity: 0; }
.spectable { border-top: 1px solid var(--line); }
.spectable div { display: grid; grid-template-columns: 1fr 1.4fr; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.spectable dt { color: var(--alloy); font-size: 14px; }
.spectable dd { margin: 0; font-size: 17px; }
.spectable dd [data-v] { display: inline-block; transition: opacity .35s, transform .5s var(--ease-out); }
.spectable dd .alt { color: var(--alloy); margin-left: 8px; }
.swap-out { opacity: 0; transform: translateY(6px); }

/* ---------- closing CTA ---------- */
.cta { position: relative; min-height: 100vh; display: grid; place-items: end start; padding: 0 var(--gutter) 12vh; overflow: hidden; }
.cta img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, var(--ink) 0%, rgba(13,13,12,.2) 35%, rgba(13,13,12,.25) 60%, rgba(13,13,12,.92) 100%); }
.cta__inner { position: relative; z-index: 2; max-width: 640px; }
.cta h2 { font-size: clamp(40px, 4.4vw, 76px); font-weight: 300; letter-spacing: -.035em; line-height: 1; }
.cta p { margin: 20px 0 32px; color: var(--alloy); font-size: 17px; line-height: 1.45; max-width: 440px; }
.cta__row { display: flex; gap: 12px; flex-wrap: wrap; }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 28px var(--gutter); border-top: 1px solid var(--line); color: var(--alloy); font-size: 13px; }
.foot img { height: 14px; width: auto; }

/* ---------- mobile sticky bar ---------- */
.bar { display: none; }
@media (max-width: 833px) {
  .bar { display: flex; position: fixed; z-index: 21; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom));
    height: 56px; padding: 0 8px 0 16px; align-items: center; justify-content: space-between; gap: 12px;
    background: rgba(22, 22, 21, .78); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    border: 1px solid var(--line); border-radius: 3px; transform: translateY(140%); transition: transform .6s var(--ease-out); }
  .bar.is-on { transform: none; }
  .bar__name { font-size: 14px; } .bar__name span { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; color: var(--alloy); margin-top: 2px; }

  .copy, .copy--left, .copy--right { left: var(--gutter); right: var(--gutter); top: auto; bottom: 112px; transform: none; max-width: none; }
  .copy--top { top: calc(var(--nav-h) + 3vh); bottom: auto; left: var(--gutter); right: var(--gutter); transform: none; }
  .copy h2 { font-size: 30px; }
  .hero__title { bottom: 120px; right: var(--gutter); }
  .hero__title h1 { font-size: 44px; }
  .hero__cue { display: none; }
  .stat { left: var(--gutter) !important; top: auto !important; bottom: 112px; right: auto !important; }
  /* beats with a stat: headline only, with the stat stacked under it */
  [data-beat="capacity"] .copy p, [data-beat="charging"] .copy p { display: none; }
  [data-beat="capacity"] .copy { bottom: 240px; }
  [data-beat="charging"] .copy { bottom: 336px; }
  .stat--chg { bottom: 176px; margin-left: 30px; }
  .tag__spec { display: none; }
  .speclabel { top: calc(var(--nav-h) + 28px); bottom: auto; right: var(--gutter); }
  .specs { padding: 110px var(--gutter) 96px; }
  .specs__head { flex-direction: column; align-items: start; }
  .specs__body { grid-template-columns: 1fr; margin-top: 44px; }
  .spectable div { grid-template-columns: 1fr; gap: 6px; padding: 16px 0; }
  .cta { padding-bottom: 120px; }
  .foot { flex-direction: column; align-items: start; padding-bottom: 96px; }
}
@media (prefers-reduced-motion: reduce) { .hero__cue i { animation: none; } }
