/* Vayve Mobility — landing page
   Layout numbers for the carousel (frame size, spacing, floor line) are set
   from js/site.js as CSS variables on .stage. */

:root{
  --bar: 56px;
  --ink: #12161b;
  --ink-2: #47505b;
  --night: #0d1013;
  --night-2: #14181d;
  --line: rgba(255,255,255,.11);
  --text: #e8ecf0;
  --text-2: #9aa5b1;
  --blue: #1ea0e0;
  --blue-2: #5cc0f2;
  --display: "Outfit", "Century Gothic", "Avenir Next", "Segoe UI", sans-serif;
  --body: "DM Sans", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.22,.8,.2,1);
}
@media (max-height: 480px){ :root{ --bar: 44px; } }

*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body{
  margin: 0; background: var(--night); color: var(--text);
  font: 400 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
body.is-closed, body.menu-open{ overflow: hidden; }
img{ display: block; max-width: 100%; }
button{ font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a{ color: inherit; }
h1,h2,h3,p,ul,ol,dl,dd{ margin: 0; padding: 0; }
ul,ol{ list-style: none; }
:focus-visible{ outline: 2px solid var(--blue-2); outline-offset: 3px; border-radius: 4px; }

.skip-link{ position: fixed; left: 12px; top: -60px; z-index: 200; background: #fff; color: #000; padding: 10px 14px; border-radius: 6px; }
.skip-link:focus{ top: 8px; }

.eyebrow{
  font: 500 .72rem/1.2 var(--body); letter-spacing: .18em; text-transform: uppercase; color: var(--blue-2);
}

/* ---------- top bar / shutter housing ---------- */
.bar{
  position: fixed; inset: 0 0 auto 0; height: var(--bar); z-index: 100;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 max(14px, env(safe-area-inset-right)) 0 max(14px, env(safe-area-inset-left));
  background: linear-gradient(#2a2e33, #1a1d21 70%, #121417);
  box-shadow: inset 0 -1px 0 rgba(255,255,255,.07), 0 6px 18px rgba(0,0,0,.35);
}
.bar-logo{ display: block; }
.bar-logo img{ height: calc(var(--bar) * .44); width: auto; }
.bar-btn{ width: 44px; height: 44px; display: grid; place-content: center; gap: 5px; justify-self: start; border-radius: 8px; }
.menu-btn span{ display: block; width: 22px; height: 2px; background: #e6eaee; border-radius: 2px; transition: transform .35s var(--ease), opacity .2s; }
body.menu-open .menu-btn span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
body.menu-open .menu-btn span:nth-child(2){ opacity: 0; }
body.menu-open .menu-btn span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

.mode-toggle{
  justify-self: end; position: relative; width: 58px; height: 30px; border-radius: 30px;
  background: #0b0d10; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14);
  display: flex; align-items: center; justify-content: space-between; padding: 0 7px;
}
.mode-toggle::before{ content: ""; position: absolute; inset: -7px; } /* larger touch target */
.mode-toggle .ico{ width: 15px; height: 15px; fill: none; stroke: #7f8a96; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; position: relative; z-index: 1; transition: stroke .3s; }
.mode-toggle .knob{ position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #dfe6ee; transition: transform .45s var(--ease), background .45s; }
.mode-toggle .knob{ transform: translateX(28px); background: #ffd66b; }
.mode-toggle .sun{ stroke: #3b2c00; }
.lights-off .mode-toggle .knob{ transform: none; background: #dfe6ee; }
.lights-off .mode-toggle .sun{ stroke: #7f8a96; }
.lights-off .mode-toggle .moon{ stroke: #10151b; }

/* ---------- menu ---------- */
.menu{
  position: fixed; inset: var(--bar) 0 0 0; z-index: 90; overflow: auto;
  background:
    repeating-linear-gradient(180deg, rgba(255,255,255,.028) 0 1px, transparent 1px 34px),
    linear-gradient(#16191d, #0d1013);
  opacity: 0; transform: translateY(-12px); transition: opacity .35s, transform .45s var(--ease);
}
.menu[hidden]{ display: none; }
body.menu-open .menu{ opacity: 1; transform: none; }
.menu-inner{ min-height: 100%; display: grid; grid-template-columns: 1.4fr 1fr; gap: 6vw; align-items: center; padding: 6vh max(7vw, 24px); }
.menu-main a{ display: inline-block; font: 300 clamp(1.9rem, 5.2vw, 3.6rem)/1.25 var(--display); text-decoration: none; color: #f2f5f8; transition: color .2s, transform .35s var(--ease); }
.menu-main a:hover{ color: var(--blue-2); transform: translateX(10px); }
.menu-side ul{ margin-top: 16px; display: grid; gap: 12px; }
.menu-side a, .menu-side .soon{ font-size: 1.05rem; text-decoration: none; color: #cfd6dd; }
.menu-side a:hover{ color: #fff; }
.menu-side a span{ color: var(--blue-2); }
.menu-side .soon{ color: #7c8792; }
.menu-side em{ font-style: normal; font-size: .8rem; margin-left: 6px; }
@media (orientation: portrait), (max-width: 700px){
  .menu-inner{ grid-template-columns: 1fr; gap: 5vh; align-content: center; }
}
@media (max-height: 480px){
  .menu-inner{ padding-block: 16px; align-items: start; }
  .menu-main{ columns: 2; }
  .menu-main a{ font-size: 1.5rem; }
}

/* ---------- stage ---------- */
.stage{
  position: relative; margin-top: var(--bar);
  height: calc(100vh - var(--bar)); height: calc(100svh - var(--bar));
  min-height: 300px; overflow: hidden; overflow: clip; background: #cfd3d7; color: var(--ink);
  touch-action: pan-y; user-select: none; -webkit-user-select: none;
  --fw: 800px; --fh: 505px; --ground: 80%; --shift-x: 0px; --shift-y: 0px; --shift-s: 1;
}
.room, .room-img{ position: absolute; inset: 0; width: 100%; height: 100%; }
.room-img{ object-fit: cover; object-position: 50% 50%; }
.room-shade{
  position: absolute; inset: 0; opacity: 0; transition: opacity .14s linear;
  background: radial-gradient(70% 42% at 50% 88%, #121820, #05070a 75%);
}
.lights-off .room-shade{ opacity: .96; }

.scene{
  position: absolute; inset: 0; z-index: 10; transform-origin: 50% 0;
  transform: translate3d(var(--shift-x), var(--shift-y), 0) scale(var(--shift-s));
  transition: transform .9s var(--ease);
}
.track{ position: absolute; inset: 0; }

/* cars: one on stage at a time */
.car{
  position: absolute; left: 50%; top: var(--ground);
  width: var(--fw); height: var(--fh);
  margin-left: calc(var(--fw) / -2);
  margin-top: calc(var(--fh) * var(--g) * -1);
  transform-origin: 50% calc(var(--g) * 100%);
  will-change: transform; visibility: hidden;
}
.car.is-on{ visibility: visible; }
.car img{ position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; -webkit-user-drag: none; transition: opacity .14s linear; }
.car img.dark{ opacity: 0; }
.lights-off .car img.dark{ opacity: 1; }
.lights-off .car img.lit{ opacity: 0; }
.beam{ /* light the lamps throw on the floor */
  position: absolute; left: 0; top: calc(var(--g) * 100% - 14%); width: 64%; height: 36%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255,246,222,.2), rgba(255,246,222,0));
  opacity: 0; transition: opacity .14s linear;
}
.lights-off .beam{ opacity: 1; }
.car-hit{ position: absolute; left: 26%; right: 26%; top: 3%; height: calc(var(--g) * 100%); border-radius: 18px; cursor: pointer; }
.car-hit:focus-visible{ outline-offset: -6px; }

/* wall screens */
.tv{
  position: absolute; top: var(--tv-top, 16%); left: 50%;
  width: var(--tv-w, 200px); aspect-ratio: 16 / 9; margin-left: calc(var(--tv-w, 200px) / -2);
  transform: translateX(var(--tv-x, 0px));
  padding: 3px; border-radius: 5px; background: #08090b;
  box-shadow: 0 16px 28px rgba(0,0,0,.22), 0 2px 0 rgba(255,255,255,.35) inset;
}
.tv-screen{
  position: relative; width: 100%; height: 100%; border-radius: 2px; overflow: hidden;
  display: flex; align-items: center; justify-content: center; gap: .08em;
  background: radial-gradient(120% 120% at 50% 40%, #1f2a35, #0b0f13 70%);
  color: #fff; font: 600 calc(var(--tv-w, 200px) * .12)/1 var(--body);
  transition: opacity .3s ease;
}
.tv-screen::after{ content: ""; position: absolute; inset: 0; background: linear-gradient(118deg, rgba(255,255,255,.13), rgba(255,255,255,0) 38%); }
.tv-screen.swap{ opacity: 0; }
.tv-screen img{ max-width: 62%; max-height: 44%; width: auto; height: auto; object-fit: contain; }
.tv-screen img.tall{ max-height: 62%; }
.tv-screen img.with-suffix{ max-width: 46%; max-height: 26%; }
.tv-screen .suffix{ align-self: center; transform: translateY(8%); letter-spacing: -.01em; }
.tv{ transition: box-shadow .14s linear; }
.lights-off .tv{ box-shadow: 0 0 80px rgba(110,170,235,.3), 0 0 0 1px rgba(255,255,255,.07); }
.tv-b{ display: var(--tv-b-display, block); transition: opacity .4s ease, box-shadow .14s linear; }
.has-sel .tv-b{ opacity: 0; }

.veil{
  position: absolute; inset: 0; z-index: 12; pointer-events: none; opacity: 0; transition: opacity .7s ease;
  background: linear-gradient(90deg, rgba(240,243,246,0) 34%, rgba(240,243,246,.74) 60%, rgba(240,243,246,.9) 100%);
}

/* nameplate: also the button that opens the highlights */
.plate{
  position: absolute; z-index: 14; left: max(22px, env(safe-area-inset-left)); bottom: 18px;
  display: flex; align-items: center; gap: 18px; text-align: left; max-width: min(38vw, 430px);
  color: #fff; background: rgba(18,22,27,.84); border-radius: 18px; padding: 13px 14px 14px 22px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 12px 30px rgba(0,0,0,.18);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none; transition: opacity .35s ease, background .2s;
}
.is-live .plate{ opacity: 1; pointer-events: auto; }
.plate:hover{ background: #12161b; }
.plate.swap .plate-text{ opacity: 0; }
.plate-text{ display: block; transition: opacity .22s ease; min-width: 0; }
.plate-brand{ display: block; font: 500 .62rem/1.2 var(--body); letter-spacing: .2em; text-transform: uppercase; color: var(--blue-2); }
.plate-name{ display: block; font: 300 clamp(1.5rem, 2.8vw, 2.3rem)/1.1 var(--display); letter-spacing: .01em; margin-top: 5px; }
.plate-line{ display: block; font-size: clamp(.78rem, 1.05vw, .9rem); line-height: 1.35; color: #c3ccd5; margin-top: 3px; }
.plate-plus{ flex: none; width: 40px; height: 40px; border-radius: 50%; background: #fff; color: #12161b; display: grid; place-items: center; transition: transform .35s var(--ease); }
.plate:hover .plate-plus{ transform: rotate(90deg); }
.plate-plus svg{ width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.has-sel .plate{ opacity: 0; pointer-events: none; }

/* vehicle picker: the active bar fills, then the next vehicle drives in */
.picker{
  position: absolute; z-index: 14; left: 50%; bottom: 18px; transform: translateX(-50%);
  display: flex; gap: 4px; padding: 6px; border-radius: 16px;
  background: rgba(18,22,27,.84); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 12px 30px rgba(0,0,0,.18);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none; transition: opacity .35s ease;
}
.is-live .picker{ opacity: 1; pointer-events: auto; }
.has-sel .picker{ opacity: 0; pointer-events: none; }
.pick{
  position: relative; min-width: 88px; min-height: 44px; padding: 16px 14px 9px; border-radius: 11px;
  color: #98a3af; font: 500 .82rem/1 var(--body); letter-spacing: .03em; white-space: nowrap;
  transition: color .2s, background .2s;
}
.pick:hover{ color: #fff; }
.pick.is-active{ color: #fff; background: rgba(255,255,255,.09); }
.pick-bar{ position: absolute; left: 12px; right: 12px; top: 7px; height: 2px; border-radius: 2px; background: rgba(255,255,255,.16); overflow: hidden; }
.pick-bar i{ display: block; width: 100%; height: 100%; background: var(--blue-2); transform: scaleX(0); transform-origin: 0 50%; }
.pick.is-active .pick-bar i{ animation: pick-fill 3.25s linear forwards; }
@keyframes pick-fill{ to{ transform: scaleX(1); } }
body:not(.is-live) .pick.is-active .pick-bar i, .has-sel .pick.is-active .pick-bar i, .menu-open .pick.is-active .pick-bar i, .stage-away .pick.is-active .pick-bar i{ animation-play-state: paused; }

/* arrows */
.nav-arrow{
  position: absolute; top: calc(var(--ground) - 16%); z-index: 15; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(18,22,27,.78); color: #fff;
  opacity: 0; transition: opacity .4s, background .2s, transform .3s var(--ease);
}
.nav-arrow svg, .panel-ctrl svg, .scroll-cue svg{ width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav-arrow.prev{ left: max(14px, env(safe-area-inset-left)); }
.nav-arrow.next{ right: max(14px, env(safe-area-inset-right)); }
.is-live .nav-arrow{ opacity: 1; }
.nav-arrow:hover{ background: var(--ink); transform: scale(1.06); }
.has-sel .nav-arrow{ opacity: 0; pointer-events: none; }

.scroll-cue{
  position: absolute; right: max(18px, env(safe-area-inset-right)); bottom: 14px; z-index: 15;
  display: flex; align-items: center; gap: 4px; text-decoration: none;
  font: 500 .68rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: #39424c;
  opacity: 0; transition: opacity .5s;
}
.is-live .scroll-cue{ opacity: 1; }
.scroll-cue svg{ width: 16px; height: 16px; animation: nudge 2.4s ease-in-out infinite; }
@keyframes nudge{ 50%{ transform: translateY(4px); } }
.has-sel .scroll-cue{ opacity: 0; pointer-events: none; }
.lights-off .scroll-cue{ color: #aab4be; }

/* ---------- highlights panel (wide: wall signage) ---------- */
.panel{
  position: absolute; z-index: 20; right: max(clamp(20px, 5.5vw, 96px), env(safe-area-inset-right)); top: 50%;
  width: min(40vw, 440px);
  transform: translate(24px, -50%); opacity: 0; visibility: hidden;
  transition: opacity .5s ease, transform .7s var(--ease), visibility 0s .5s;
}
.has-sel .panel{ opacity: 1; visibility: visible; transform: translate(0, -50%); transition-delay: .15s, .15s, 0s; }
.has-sel .veil{ opacity: 1; }
.panel-grip{ display: none; }
.panel-body{ border-left: 2px solid var(--ink); padding-left: clamp(16px, 2vw, 28px); transition: opacity .25s ease; }
.panel-body.swap{ opacity: 0; }
.panel-top{ display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.panel .eyebrow{ color: #0f6fa3; }
.panel-ctrl{ display: flex; gap: 6px; }
.panel-ctrl button{ width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); box-shadow: inset 0 0 0 1px rgba(18,22,27,.28); transition: background .2s, color .2s; }
.panel-ctrl button:hover{ background: var(--ink); color: #fff; }
.panel-name{ font: 300 clamp(2.2rem, 5.2vw, 4.4rem)/1 var(--display); letter-spacing: -.01em; margin-top: clamp(4px, 1.4vh, 14px); }
.panel-line{ font-size: clamp(.92rem, 1.25vw, 1.08rem); color: #333c46; margin-top: clamp(4px, 1vh, 10px); max-width: 30ch; }
.stats{ display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(10px, 1.6vw, 22px); margin-top: clamp(12px, 3.4vh, 34px); padding-top: clamp(10px, 2.4vh, 22px); border-top: 1px solid rgba(18,22,27,.2); }
.stats dt{ font: 400 clamp(1.5rem, 3vw, 2.5rem)/1 var(--display); white-space: nowrap; }
.stats dt small{ font: 500 .42em/1 var(--body); margin-left: .25em; letter-spacing: .02em; }
.stats dd{ font-size: clamp(.7rem, .95vw, .82rem); line-height: 1.3; color: #47505b; margin-top: 6px; }
.tags{ display: flex; flex-wrap: wrap; gap: 6px; margin-top: clamp(10px, 2.6vh, 24px); }
.tags li{ font: 500 .7rem/1 var(--body); letter-spacing: .04em; padding: 7px 11px; border-radius: 30px; box-shadow: inset 0 0 0 1px rgba(18,22,27,.3); }
.panel-cta{ margin-top: clamp(12px, 3vh, 28px); }
.panel-note{ font-size: .7rem; color: #5b6570; margin-top: 12px; }

.btn{
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px;
  border-radius: 48px; font: 500 .92rem/1 var(--body); letter-spacing: .02em; text-decoration: none;
  transition: background .25s, color .25s, transform .3s var(--ease), box-shadow .25s;
}
.btn i{ font-style: normal; transition: transform .3s var(--ease); }
.btn:hover i{ transform: translateX(4px); }
.btn-dark{ background: var(--ink); color: #fff; }
.btn-dark:hover{ background: #000; }
.btn-soon{ box-shadow: inset 0 0 0 1px rgba(18,22,27,.3); color: #47505b; cursor: default; }
.btn-primary{ background: var(--blue); color: #04121b; }
.btn-primary:hover{ background: var(--blue-2); transform: translateY(-2px); }
.btn-ghost{ box-shadow: inset 0 0 0 1px rgba(255,255,255,.28); color: #fff; }
.btn-ghost:hover{ background: rgba(255,255,255,.08); }

/* tall landscape screens: nameplate centred under the vehicle, vehicle tabs at the top */
.plate-under .plate{ left: 50%; bottom: auto; top: calc(var(--ground) + var(--plate-gap, 10px)); transform: translateX(-50%); width: max-content; max-width: min(64vw, 600px); padding: 10px 12px 11px 22px; }
.plate-under .plate-name{ font-size: clamp(1.35rem, 2vw, 1.75rem); margin-top: 3px; }
.plate-under .picker{ top: 14px; bottom: auto; }

/* short landscape screens (phones on their side) */
@media (orientation: landscape) and (max-height: 480px){
  .panel{ width: min(44vw, 400px); }
  .panel-note, .tags{ display: none; }
  .panel-ctrl button{ width: 34px; height: 34px; }
  .btn{ min-height: 40px; }
  .nav-arrow{ width: 40px; height: 40px; }
  .plate{ padding: 6px 6px 6px 16px; border-radius: 30px; gap: 10px; bottom: 10px; }
  .plate-brand, .plate-line{ display: none; }
  .plate-name{ font-size: 1.05rem; margin: 0; }
  .plate-plus{ width: 30px; height: 30px; }
  .picker{ bottom: 10px; padding: 4px; }
  .pick{ min-width: 70px; min-height: 38px; padding: 13px 10px 7px; }
  .scroll-cue span{ display: none; }
}

/* ---------- portrait: bottom sheet ---------- */
@media (orientation: portrait){
  .panel{
    right: 0; left: 0; top: auto; bottom: 0; width: auto;
    background: #101317; color: #eef1f4; border-radius: 22px 22px 0 0;
    padding: 10px clamp(18px, 6vw, 44px) max(18px, env(safe-area-inset-bottom));
    box-shadow: 0 -18px 50px rgba(0,0,0,.35);
    transform: translateY(104%); opacity: 1; touch-action: none; visibility: hidden;
    transition: transform .7s var(--ease), visibility 0s .7s;
  }
  .has-sel .panel{ transform: translateY(var(--sheet-drag, 0px)); visibility: visible; transition-delay: 0s; }
  .panel.dragging{ transition: none; }
  .panel-grip{ display: block; width: 42px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.28); margin: 0 auto 12px; }
  .panel-body{ border: 0; padding: 0; }
  .panel .eyebrow{ color: var(--blue-2); }
  .panel-ctrl button{ color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.26); }
  .panel-ctrl button:hover{ background: #fff; color: #000; }
  .panel-name{ font-size: clamp(2rem, 9vw, 3.4rem); margin-top: 2px; }
  .panel-line{ color: #b7c0c9; max-width: none; margin-top: 4px; font-size: .95rem; }
  .stats{ border-color: rgba(255,255,255,.16); margin-top: 16px; padding-top: 16px; gap: 10px; }
  .stats dt{ font-size: clamp(1.35rem, 6.2vw, 2.2rem); }
  .stats dd{ color: #9aa5b1; font-size: .72rem; }
  .tags{ margin-top: 14px; }
  .tags li{ box-shadow: inset 0 0 0 1px rgba(255,255,255,.26); }
  .panel-cta{ margin-top: 16px; }
  .panel-cta .btn{ width: 100%; }
  .btn-dark{ background: #fff; color: #0b0e11; }
  .btn-dark:hover{ background: #dfe6ee; }
  .btn-soon{ box-shadow: inset 0 0 0 1px rgba(255,255,255,.26); color: #9aa5b1; }
  .panel-note{ color: #7c8792; margin-top: 10px; }
  .veil{ display: none; }
  .plate{ left: 16px; right: 16px; bottom: auto; top: calc(var(--ground) + var(--plate-gap, 24px)); max-width: none; justify-content: space-between; }
  .picker{ left: 16px; right: 16px; transform: none; bottom: max(40px, calc(env(safe-area-inset-bottom) + 34px)); }
  .pick{ flex: 1; min-width: 0; padding-inline: 4px; }
  .nav-arrow{ display: none; }
  .scroll-cue{ right: auto; left: 50%; transform: translateX(-50%); bottom: max(10px, env(safe-area-inset-bottom)); }
}

/* lights off: wall signage turns to light-on-dark */
@media (orientation: landscape){
  .lights-off .veil{ opacity: 0; }
  .lights-off .panel{ color: #eef1f4; }
  .lights-off .panel-body{ border-color: rgba(255,255,255,.8); }
  .lights-off .panel .eyebrow{ color: var(--blue-2); }
  .lights-off .panel-line{ color: #b7c0c9; }
  .lights-off .stats{ border-color: rgba(255,255,255,.18); }
  .lights-off .stats dd, .lights-off .panel-note{ color: #9aa5b1; }
  .lights-off .tags li, .lights-off .panel-ctrl button{ color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.28); }
  .lights-off .panel-ctrl button:hover{ background: #fff; color: #000; }
  .lights-off .btn-dark{ background: #fff; color: #0b0e11; }
  .lights-off .btn-soon{ box-shadow: inset 0 0 0 1px rgba(255,255,255,.26); color: #9aa5b1; }
}

/* ---------- shutter ---------- */
.shutter{ position: absolute; inset: 0; z-index: 40; overflow: hidden; pointer-events: none; }
.is-closed .shutter{ pointer-events: auto; }
.curtain{
  position: absolute; inset: 0 0 0 0; background: #1b1e22 center / cover no-repeat;
  background-image: url("../assets/env/shutter-landscape.webp");
  will-change: transform;
}
@media (orientation: portrait){ .curtain{ background-image: url("../assets/env/shutter-portrait.webp"); } }
.curtain::after{ /* shadow the curtain's edge throws into the room */
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 22vh;
  background: linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,0)); pointer-events: none;
}
.curtain-rail{
  position: absolute; left: 0; right: 0; bottom: 0; height: clamp(12px, 2.2vh, 22px);
  background: linear-gradient(#3a3f45, #1c1f23 45%, #0c0e10);
  box-shadow: 0 -1px 0 rgba(255,255,255,.12) inset, 0 6px 14px rgba(0,0,0,.5);
}
.shutter-skip{
  position: absolute; left: 50%; bottom: max(7%, 26px); transform: translateX(-50%);
  font: 500 .7rem/1 var(--body); letter-spacing: .22em; text-transform: uppercase; color: #c9d2db;
  padding: 14px 22px; border-radius: 40px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.22);
  opacity: 0; transition: opacity .5s, background .2s; pointer-events: none;
}
.shutter-skip.show{ opacity: 1; pointer-events: auto; }
.shutter-skip:hover{ background: rgba(255,255,255,.08); }
.is-live .shutter{ display: none; }

/* ---------- company sections ---------- */
.wrap{ width: min(1180px, 100% - 2 * clamp(20px, 6vw, 72px)); margin-inline: auto; }
.sec{ padding: clamp(72px, 13vh, 150px) 0; border-top: 1px solid var(--line); position: relative; }
.sec.thesis{ border-top: 0; background: radial-gradient(90% 60% at 80% 0%, rgba(30,160,224,.10), transparent 60%), var(--night); }
.sec.platform, .sec.milestones{ background: var(--night-2); }
.display{ font: 300 clamp(2rem, 5.4vw, 4.2rem)/1.08 var(--display); letter-spacing: -.015em; margin-top: 18px; text-wrap: balance; }
.sub{ max-width: 58ch; color: var(--text-2); font-size: clamp(1rem, 1.3vw, 1.15rem); margin-top: 22px; }
.fine{ color: #6f7a86; font-size: .78rem; margin-top: 28px; }

.thesis-grid{ display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 6vw, 90px); margin-top: clamp(36px, 6vh, 64px); align-items: start; }
.lede p{ font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.55; color: #cfd6dd; }
.lede p + p{ margin-top: 1em; }
.facts{ display: grid; gap: 0; }
.facts div{ display: grid; grid-template-columns: minmax(7.5ch, auto) 1fr; align-items: baseline; gap: 20px; padding: 18px 0; border-top: 1px solid var(--line); }
.facts div:last-child{ border-bottom: 1px solid var(--line); }
.facts dt{ font: 300 clamp(1.8rem, 3.4vw, 2.8rem)/1 var(--display); color: #fff; white-space: nowrap; }
.facts dd{ color: var(--text-2); }

.segments{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: clamp(40px, 7vh, 72px); background: var(--line); border: 1px solid var(--line); }
.segments li{ background: var(--night-2); padding: clamp(22px, 2.4vw, 34px); display: flex; flex-direction: column; gap: 10px; transition: background .3s; }
.segments li:hover{ background: #191e24; }
.seg-no{ font: 500 .72rem/1 var(--body); letter-spacing: .16em; color: #6f7a86; }
.segments h3{ font: 500 .78rem/1.2 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--blue-2); margin-top: 18px; }
.seg-car{ font: 300 clamp(1.6rem, 2.4vw, 2.1rem)/1.1 var(--display); color: #fff; }
.segments li > p:not(.seg-car):not(.seg-buyer){ color: var(--text-2); font-size: .95rem; }
.seg-buyer{ margin-top: auto; padding-top: 18px; font-size: .8rem; color: #cfd6dd; }
.seg-buyer::before{ content: "For  "; color: #6f7a86; }

.edge-grid{ display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(28px, 4vw, 56px) clamp(32px, 6vw, 90px); margin-top: clamp(40px, 7vh, 72px); }
.edge-grid article{ padding-top: 22px; border-top: 1px solid rgba(255,255,255,.3); }
.edge-grid h3{ font: 400 clamp(1.25rem, 1.9vw, 1.6rem)/1.2 var(--display); color: #fff; }
.edge-grid p{ color: var(--text-2); margin-top: 10px; max-width: 46ch; }

.timeline{ margin-top: clamp(40px, 7vh, 72px); display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(16px, 2.2vw, 32px); position: relative; }
.timeline::before{ content: ""; position: absolute; left: 0; right: 0; top: 5px; height: 1px; background: var(--line); }
.timeline li{ position: relative; padding-top: 30px; }
.timeline li::before{ content: ""; position: absolute; top: 0; left: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 5px rgba(30,160,224,.16); }
.timeline time{ font: 300 clamp(1.5rem, 2.4vw, 2.1rem)/1 var(--display); color: #fff; }
.timeline p{ color: var(--text-2); font-size: .93rem; margin-top: 10px; }

.people{ display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(28px, 4vw, 48px) clamp(16px, 2.4vw, 32px); margin-top: clamp(36px, 6vh, 64px); }
.people li{ display: grid; gap: 4px; align-content: start; }
.ph{ /* portrait slot: shows initials until assets/team/<first-last>.jpg exists */
  position: relative; display: block; aspect-ratio: 4 / 5; margin-bottom: 14px; border-radius: 14px; overflow: hidden;
  background: linear-gradient(160deg, #1d242c, #12161b); box-shadow: inset 0 0 0 1px var(--line);
}
.ph::before{ content: attr(data-initials); position: absolute; inset: 0; display: grid; place-items: center; font: 200 clamp(2rem, 4vw, 3.2rem)/1 var(--display); letter-spacing: .06em; color: #4d5864; }
.ph img{ position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; filter: grayscale(1) contrast(1.05); transition: filter .5s ease, transform .8s var(--ease); }
.people li:hover .ph img{ filter: none; transform: scale(1.03); }
.people strong{ font: 400 1.15rem/1.2 var(--display); color: #fff; }
.people span:not(.ph){ color: var(--text-2); font-size: .86rem; }

.contact{ text-align: center; background: radial-gradient(70% 90% at 50% 110%, rgba(30,160,224,.2), transparent 65%), var(--night); }
.contact .sub{ margin-inline: auto; }
.cta-row{ display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 34px; }

.foot{ border-top: 1px solid var(--line); padding: 48px 0 max(28px, env(safe-area-inset-bottom)); color: var(--text-2); font-size: .9rem; background: #0a0c0f; }
.foot-grid{ display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; }
.foot img{ height: 26px; width: auto; margin-bottom: 14px; }
.foot ul{ margin-top: 12px; display: grid; gap: 8px; }
.foot a{ text-decoration: none; }
.foot a:hover{ color: #fff; }
.legal{ margin-top: 40px; font-size: .76rem; color: #5f6974; }

@media (max-width: 980px){
  .segments{ grid-template-columns: repeat(2, 1fr); }
  .people{ grid-template-columns: repeat(2, 1fr); }
  .timeline{ grid-template-columns: 1fr; gap: 0; }
  .timeline::before{ left: 5px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .timeline li{ padding: 0 0 30px 34px; display: grid; grid-template-columns: 5.5ch 1fr; gap: 14px; align-items: baseline; }
  .timeline li::before{ top: .5em; }
  .timeline p{ margin-top: 0; }
}
@media (max-width: 720px){
  .thesis-grid, .edge-grid{ grid-template-columns: 1fr; }
  .foot-grid{ grid-template-columns: 1fr 1fr; }
  .foot-grid > div:first-child{ grid-column: 1 / -1; }
}
@media (max-width: 520px){
  .segments{ grid-template-columns: 1fr; }
  .display br{ display: none; }
}

/* scroll reveal */
.reveal{ opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .9s var(--ease); }
.reveal.in{ opacity: 1; transform: none; }
.no-js .reveal{ opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *,*::before,*::after{ animation: none !important; transition-duration: .01ms !important; }
  .reveal{ opacity: 1; transform: none; }
}
