/* Progressive enhancement: natural document flow works cleanly without JS and on portrait phones. */
.story-guide { display: none; }
.mobile-chapter-bar { display: none; }

/* Hero overview */
.hero.product-hero.scroll-intro {
  display: block;
  text-align: center;
  min-height: 0;
  padding-block: 56px 44px;
}
.scroll-intro .hero-copy {
  max-width: 920px;
  margin-inline: auto;
}
.scroll-intro .eyebrow,
.scroll-intro .hero-actions {
  justify-content: center;
}
.scroll-intro h1 {
  font-size: clamp(38px, 5.4vw, 76px);
  line-height: 1.28;
  letter-spacing: -2.4px;
  margin-block: 20px;
}
.scroll-intro .hero-description {
  font-size: 16px;
  line-height: 1.9;
  color: #5c6656;
  max-width: 680px;
  margin-inline: auto;
}
.hero-focus-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}
.focus-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid #d9dfd0;
  background: #ffffffd9;
  color: #2f382b;
  font-size: 13px;
  font-weight: 600;
  transition: border-color .18s, background .18s, color .18s, transform .18s;
}
.focus-pill:hover {
  border-color: #ec712b;
  background: #fff5ed;
  color: #a84512;
  transform: translateY(-1px);
}
.focus-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ec712b;
  flex-shrink: 0;
}
.scroll-intro .hero-actions {
  gap: 18px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.scroll-intro .subtle {
  color: #6b7463;
  margin-top: 22px;
  font-size: 12px;
}

/* Showcase sections & headings */
.product-showcase { padding: 0; }
.showcase-section {
  padding-block: 64px;
  --image-ratio: 1.6;
}
.showcase-section.is-tinted { background: #efefe9; }
#fusion-instrument { --image-ratio: 2.666667; --compare-ratio: 2.666667; }
#hud-enhance { --image-ratio: 2.162162; --compare-ratio: 2.162162; }
#passenger-desktop { --image-ratio: 2.461538; --compare-ratio: 2.461538; }
#rear-lyrics { --image-ratio: 1.484919; }

.showcase-heading {
  max-width: 820px;
  margin: 0 auto 22px;
  text-align: center;
}
.showcase-kicker {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.8px;
  color: #b8531c;
}
.showcase-heading h2 {
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.2;
  letter-spacing: -1.4px;
  font-weight: 650;
  margin: 0 0 12px;
  color: #232b21;
}
.showcase-heading p:not(.showcase-kicker) {
  font-size: 15px;
  line-height: 1.8;
  color: #5e6758;
  margin: 0;
}

/* Stage switchers & controls */
.stage-switcher,
.stage-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 auto 18px;
}
.stage-switcher {
  width: fit-content;
  max-width: 100%;
  padding: 4px;
  border-radius: 999px;
  background: #e7eae0;
  border: 1px solid #d9dfd0;
}
.stage-tab {
  border: 0;
  background: transparent;
  color: #55604f;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  transition: background .18s, color .18s, box-shadow .18s;
  white-space: nowrap;
}
.stage-tab:hover { color: #242d22; }
.stage-tab.is-active {
  background: #252d23;
  color: #f8f7f3;
  box-shadow: 0 4px 12px rgba(32, 42, 30, .18);
}
.stage-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid #d1d9c6;
  background: #fff;
  color: #364133;
  font-size: 13px;
  font-weight: 600;
  transition: border-color .18s, background .18s, color .18s;
}
.stage-toggle-btn.is-on {
  border-color: #2b8a64;
  background: #ebf9f2;
  color: #166043;
}
.stage-toggle-btn .toggle-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9ca596;
}
.stage-toggle-btn.is-on .toggle-dot {
  background: #18a56e;
  box-shadow: 0 0 0 3px rgba(24, 165, 110, .2);
}
.stage-meta-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 13px;
  border-radius: 999px;
  background: #edf0e6;
  border: 1px solid #dce2d2;
  color: #5c6655;
  font-size: 12px;
  font-weight: 550;
}

.stage-panels {
  width: 100%;
  max-width: 1040px;
  margin-inline: auto;
}
.stage-panel[hidden] { display: none !important; }

/* Real screenshot frame */
.showcase-open {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  padding: 0;
  margin-inline: auto;
  border: 1px solid #202620;
  border-radius: 16px;
  background: #101414;
  cursor: zoom-in;
  overflow: hidden;
  box-shadow: 0 20px 56px rgba(24, 38, 22, .12);
}
.showcase-open img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}
.showcase-open:focus-visible { outline-offset: 5px; }
.zoom-hint {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(12, 17, 16, .76);
  border: 1px solid rgba(255, 255, 255, .18);
  color: #f3f5ef;
  font-size: 11px;
  font-weight: 550;
  letter-spacing: .2px;
  backdrop-filter: blur(8px);
  pointer-events: none;
}

/* 3-point feature strip beneath each showcase */
.stage-highlights {
  list-style: none;
  margin: 18px auto 0;
  padding: 0;
  width: 100%;
  max-width: 1040px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.stage-highlights li {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #dfe4d7;
  background: rgba(255, 255, 255, .74);
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.stage-highlights strong {
  font-size: 13.5px;
  font-weight: 650;
  color: #242d22;
}
.stage-highlights span {
  font-size: 12px;
  line-height: 1.65;
  color: #626b5c;
}

/* ==========================================================================
   Dark-Glass Automotive Cockpit Preview Stages (Strict CSP · Responsive)
   ========================================================================== */
.cockpit-stage {
  position: relative;
  width: 100%;
  max-width: 1040px;
  margin-inline: auto;
  padding: 20px 22px;
  border-radius: 18px;
  border: 1px solid #28332e;
  background: radial-gradient(ellipse at 50% 0%, #1d2825 0%, #101514 58%, #0a0e0e 100%);
  color: #eff4ee;
  overflow: hidden;
  box-shadow: 0 22px 58px rgba(16, 26, 20, .2), inset 0 1px 0 rgba(255, 255, 255, .09);
}
.stage-topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.stage-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
  color: #dbe3db;
}
.stage-chip.is-accent {
  background: rgba(56, 189, 248, .15);
  border-color: rgba(56, 189, 248, .35);
  color: #93e1ff;
}
.stage-chip.is-warm {
  background: rgba(236, 113, 43, .2);
  border-color: rgba(236, 113, 43, .42);
  color: #ffc299;
}
.mini-kicker {
  display: block;
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: .6px;
  color: #91a9a0;
  margin-bottom: 4px;
}

/* Stage 1: Fusion Navigation Instrument Cluster */
.stage-cluster {
  background: radial-gradient(ellipse at 50% 18%, #162a35 0%, #0d1417 55%, #070a0b 100%);
}
.cluster-telltales {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.telltale {
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 650;
}
.telltale.is-red {
  background: rgba(239, 68, 68, .18);
  border: 1px solid rgba(248, 113, 113, .38);
  color: #fca5a5;
}
.telltale.is-amber {
  background: rgba(245, 158, 11, .16);
  border: 1px solid rgba(251, 191, 36, .38);
  color: #fcd34d;
}
.cluster-time {
  font-size: 13px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  color: #e6eee8;
  margin-left: 4px;
}
.cluster-grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.35fr) minmax(0, .9fr);
  gap: 16px;
  align-items: stretch;
}
.cluster-col-oem,
.cluster-col-right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
}
.cluster-speed-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.cluster-speed {
  font-size: clamp(42px, 4.2vw, 58px);
  line-height: 1;
  font-weight: 650;
  letter-spacing: -2px;
  font-variant-numeric: tabular-nums;
  color: #ffffff;
}
.cluster-unit {
  font-size: 12px;
  color: #9bb0a7;
}
.cluster-gear {
  margin-left: auto;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(52, 211, 153, .16);
  border: 1px solid rgba(52, 211, 153, .4);
  color: #6ee7b7;
  font-size: 14px;
  font-weight: 700;
}
.cluster-energy {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.energy-bar {
  display: block;
  height: 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .1);
  overflow: hidden;
}
.energy-fill {
  display: block;
  width: 78%;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #10b981, #38bdf8);
}
.energy-text {
  font-size: 12px;
  font-weight: 600;
  color: #8ee6c6;
  font-variant-numeric: tabular-nums;
}
.cluster-avoid-note {
  padding: 8px 10px;
  border-radius: 9px;
  background: rgba(251, 191, 36, .1);
  border: 1px solid rgba(251, 191, 36, .24);
  color: #f6d58b;
  font-size: 11px;
  line-height: 1.5;
}
.cluster-col-map {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-radius: 14px;
  background: linear-gradient(180deg, #102533 0%, #0d1c27 60%, #09131c 100%);
  border: 1px solid rgba(56, 189, 248, .28);
  overflow: hidden;
}
.cluster-nav-head {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-turn-arrow {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(56, 189, 248, .2);
  border: 1px solid rgba(56, 189, 248, .45);
  color: #7dd3fc;
  font-size: 20px;
  font-weight: 700;
  flex-shrink: 0;
}
.nav-turn-copy {
  min-width: 0;
  flex: 1;
}
.nav-turn-copy strong {
  display: block;
  font-size: 15px;
  color: #fff;
}
.nav-turn-copy span {
  display: block;
  font-size: 12px;
  color: #9dc5dc;
  margin-top: 2px;
}
.nav-traffic-light {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 30, .86);
  border: 1px solid rgba(248, 113, 113, .55);
  color: #fecaca;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.tl-dot.is-red {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 10px #ef4444;
}
.cluster-road-canvas {
  position: relative;
  height: 96px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(16, 39, 54, .3) 0%, rgba(12, 31, 46, .9) 100%);
  overflow: hidden;
}
.road-lane {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, rgba(148, 197, 224, .05), rgba(148, 197, 224, .35));
}
.road-lane.lane-1 { left: 32%; transform: skewX(-18deg); }
.road-lane.lane-2 { right: 32%; transform: skewX(18deg); }
.road-route-glow {
  position: absolute;
  left: 50%;
  bottom: 6px;
  width: 58px;
  height: 82px;
  transform: translateX(-42%) perspective(160px) rotateX(48deg);
  background: linear-gradient(180deg, rgba(56, 189, 248, .25) 0%, rgba(16, 185, 129, .62) 100%);
  border-radius: 14px;
  box-shadow: 0 0 24px rgba(16, 185, 129, .45);
}
.road-ego-arrow {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  color: #ffffff;
  font-size: 18px;
  text-shadow: 0 0 14px rgba(56, 189, 248, .9);
}
.cluster-lane-bar {
  display: flex;
  justify-content: center;
  gap: 8px;
}
.lane-glyph {
  display: grid;
  place-items: center;
  width: 34px;
  height: 30px;
  border-radius: 7px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .12);
  color: #88a4b5;
  font-size: 14px;
  font-weight: 700;
}
.lane-glyph.is-recommended {
  background: rgba(16, 185, 129, .24);
  border-color: rgba(52, 211, 153, .72);
  color: #6ee7b7;
  box-shadow: 0 0 14px rgba(16, 185, 129, .3);
}
.cluster-weather strong {
  display: block;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.1;
  color: #fff;
}
.cluster-weather span {
  display: block;
  margin-top: 4px;
  font-size: 11.5px;
  color: #9cb2a9;
}
.cluster-card-mini {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(56, 189, 248, .09);
  border: 1px solid rgba(56, 189, 248, .22);
}
.cluster-card-mini strong {
  font-size: 12px;
  line-height: 1.5;
  color: #dcf2ff;
}
.cluster-mode-badge {
  font-size: 11px;
  color: #8ca098;
}

/* Stage 2: AR-HUD Windshield Projection */
.stage-hud {
  padding: 24px 24px 18px;
  background: linear-gradient(180deg, #0b1322 0%, #121e31 46%, #18232d 56%, #0c1116 100%);
  border-color: #2b3a4a;
}
.hud-sky-glow {
  position: absolute;
  inset: 0 0 46% 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(236, 113, 43, .22), rgba(56, 189, 248, .12) 45%, transparent 75%);
  pointer-events: none;
}
.hud-road-perspective {
  position: absolute;
  inset: 48% 0 0 0;
  background: linear-gradient(180deg, rgba(16, 26, 36, .75), rgba(8, 12, 16, .95));
  border-top: 1px solid rgba(148, 197, 224, .18);
  pointer-events: none;
}
.hud-road-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, rgba(186, 230, 253, .12), rgba(186, 230, 253, .36));
}
.hud-road-line.line-left { left: 26%; transform: skewX(-34deg); }
.hud-road-line.line-mid { left: 50%; border-left: 2px dashed rgba(186, 230, 253, .24); background: none; }
.hud-road-line.line-right { right: 26%; transform: skewX(34deg); }

.hud-ar-chevrons {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  margin: 4px auto 16px;
  transition: opacity .28s ease, transform .28s ease;
}
.stage-hud.is-ar-off .hud-ar-chevrons {
  opacity: .08;
  transform: scale(.92);
}
.ar-chevron {
  display: block;
  width: 68px;
  height: 16px;
  border-top: 4px solid #38bdf8;
  border-right: 4px solid #34d399;
  transform: rotate(-32deg) skewX(-28deg);
  filter: drop-shadow(0 0 10px rgba(56, 189, 248, .75));
}
.ar-chevron.c1 { width: 46px; opacity: .55; }
.ar-chevron.c2 { width: 62px; opacity: .8; }
.ar-chevron.c3 { width: 80px; opacity: 1; }
.ar-tag {
  margin-top: 6px;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(56, 189, 248, .18);
  border: 1px solid rgba(56, 189, 248, .45);
  color: #bae6fd;
  font-size: 10.5px;
  font-weight: 600;
}

.hud-optics-row {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .95fr);
  gap: 14px;
}
.hud-block {
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(8, 19, 28, .68);
  border: 1px solid rgba(125, 211, 252, .28);
  backdrop-filter: blur(10px);
}
.hud-speed-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
}
.hud-speed {
  font-size: clamp(34px, 3.6vw, 48px);
  line-height: 1;
  font-weight: 650;
  color: #e0f7ff;
  text-shadow: 0 0 18px rgba(56, 189, 248, .45);
  font-variant-numeric: tabular-nums;
}
.hud-speed-unit {
  font-size: 12px;
  color: #88bed6;
}
.hud-limit {
  margin-left: auto;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2.5px solid #f87171;
  background: rgba(255, 255, 255, .92);
  color: #1e2422;
  font-size: 12px;
  font-weight: 800;
}
.hud-turn-line {
  display: flex;
  align-items: center;
  gap: 12px;
}
.hud-turn-glyph {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: rgba(16, 185, 129, .22);
  border: 1px solid rgba(52, 211, 153, .55);
  color: #6ee7b7;
  font-size: 22px;
  font-weight: 700;
  flex-shrink: 0;
}
.hud-turn-line strong {
  display: block;
  font-size: 16px;
  color: #f0fdf9;
}
.hud-turn-line > div > span {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: #9ec7d8;
}
.hud-lane-block {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}
.hud-lane-title {
  font-size: 11.5px;
  font-weight: 600;
  color: #8ec9e3;
}
.hud-lanes {
  display: flex;
  gap: 8px;
}
.hud-lanes span {
  flex: 1;
  display: grid;
  place-items: center;
  height: 40px;
  border-radius: 9px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
  color: #91adbf;
  font-size: 16px;
  font-weight: 700;
}
.hud-lanes span.is-active {
  background: rgba(52, 211, 153, .28);
  border-color: rgba(110, 231, 183, .85);
  color: #ffffff;
  box-shadow: 0 0 18px rgba(52, 211, 153, .45);
}
.hud-lanes span.is-special {
  font-size: 13px;
  color: #fcd34d;
  border-color: rgba(251, 191, 36, .38);
  background: rgba(251, 191, 36, .12);
}
.hud-lane-sub {
  font-size: 11.5px;
  color: #96b4c4;
}
.stage-caption-foot {
  position: relative;
  z-index: 2;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 11.5px;
  color: #9eb7c7;
}

/* Stage 3: Passenger Desktop & Width Modes */
.stage-passenger {
  background: radial-gradient(ellipse at 18% 12%, #242b3c 0%, #141922 52%, #0c0f14 100%);
}
.passenger-clock {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.passenger-clock strong {
  font-size: 24px;
  font-weight: 650;
  letter-spacing: -.5px;
  font-variant-numeric: tabular-nums;
  color: #fff;
}
.passenger-clock span {
  font-size: 12px;
  color: #a6b2c7;
}
.width-mode-group {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.width-pill {
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .06);
  color: #c2cde0;
  font-size: 11.5px;
  font-weight: 600;
  transition: background .16s, border-color .16s, color .16s;
}
.width-pill.is-active {
  background: #ec712b;
  border-color: #f79256;
  color: #fff;
}
.passenger-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, .85fr);
  gap: 14px;
  align-items: stretch;
}
.passenger-app-frame {
  padding: 10px;
  border-radius: 14px;
  background: rgba(0, 0, 0, .42);
  border: 1px solid rgba(255, 255, 255, .1);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 148px;
}
.passenger-app-screen {
  width: 82%;
  padding: 16px 18px;
  border-radius: 11px;
  background: linear-gradient(135deg, #27324b 0%, #1d2538 100%);
  border: 1px solid rgba(147, 197, 253, .28);
  transition: width .28s cubic-bezier(.2, .7, .2, 1), border-color .2s;
}
.stage-passenger[data-width-stage="default"] .passenger-app-screen { width: 64%; }
.stage-passenger[data-width-stage="wide"] .passenger-app-screen { width: 84%; }
.stage-passenger[data-width-stage="ultrawide"] .passenger-app-screen {
  width: 100%;
  border-color: rgba(236, 113, 43, .55);
}
.app-screen-badge {
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(236, 113, 43, .22);
  color: #ffc59e;
  font-size: 11px;
  font-weight: 600;
}
.passenger-app-screen strong {
  display: block;
  font-size: 15px;
  color: #fff;
}
.passenger-app-screen p {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.65;
  color: #b7c3d9;
}
.passenger-side-widget {
  padding: 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}
.passenger-side-widget strong {
  font-size: 15px;
  color: #fff;
}
.widget-sub {
  font-size: 12px;
  line-height: 1.6;
  color: #a6b3c8;
}
.passenger-bottom-row {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.passenger-dock {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .09);
  border: 1px solid rgba(255, 255, 255, .15);
  backdrop-filter: blur(12px);
}
.dock-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 750;
  color: #fff;
}
.dock-icon.is-video { background: #1e242c; border: 1px solid rgba(255, 255, 255, .2); }
.dock-icon.is-tv { background: linear-gradient(135deg, #2563eb, #0ea5e9); }
.dock-icon.is-bili { background: linear-gradient(135deg, #ec4899, #f472b6); }
.dock-icon.is-music { background: linear-gradient(135deg, #10b981, #eab308); }
.dock-icon.is-proc { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.dock-icon.is-oem { background: rgba(255, 255, 255, .16); }
.passenger-return-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 15px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .13);
  border: 1px solid rgba(255, 255, 255, .24);
  color: #f4f7fb;
  font-size: 12px;
  font-weight: 600;
  backdrop-filter: blur(12px);
}
.passenger-return-pill i {
  width: 1px;
  height: 12px;
  background: rgba(255, 255, 255, .3);
}

/* Stage 4: Rear Cabin Ambient Lyrics */
.stage-rear {
  background: radial-gradient(ellipse at 20% 30%, #4b2d18 0%, #241710 48%, #100c0a 100%);
  border-color: #4a3222;
}
.rear-ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(42px);
  pointer-events: none;
}
.rear-ambient-orb.orb-a {
  width: 240px;
  height: 240px;
  left: -40px;
  top: -40px;
  background: rgba(236, 113, 43, .28);
}
.rear-ambient-orb.orb-b {
  width: 260px;
  height: 260px;
  right: -60px;
  bottom: -80px;
  background: rgba(245, 158, 11, .18);
}
.rear-lyrics-body {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.35fr);
  gap: 24px;
  align-items: center;
  padding-block: 8px 6px;
}
.rear-album-col {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(0, 0, 0, .28);
  border: 1px solid rgba(255, 224, 192, .14);
}
.rear-cover-art {
  position: relative;
  width: 78px;
  height: 78px;
  border-radius: 14px;
  background: linear-gradient(135deg, #d97736 0%, #7c3b17 55%, #2b180e 100%);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 12px 26px rgba(0, 0, 0, .4);
}
.rear-cover-ring {
  position: absolute;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 232, 204, .38);
}
.rear-cover-note {
  font-size: 26px;
  color: #fff3e4;
}
.rear-track-meta {
  min-width: 0;
  flex: 1;
}
.rear-track-meta strong {
  display: block;
  font-size: 18px;
  color: #fff7ee;
}
.rear-track-meta span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #d6bba4;
}
.rear-progress {
  margin-top: 12px;
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .18);
  overflow: hidden;
}
.rear-progress-fill {
  display: block;
  width: 48%;
  height: 100%;
  border-radius: 99px;
  background: #ffb27a;
}
.rear-lines-col {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding-inline: 8px;
}
.lyric-line {
  margin: 0;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 600;
  color: #f4e7da;
}
.lyric-line.is-far { opacity: .24; font-size: 14px; }
.lyric-line.is-near { opacity: .54; font-size: 16px; }
.lyric-line.is-current {
  opacity: 1;
  font-size: clamp(21px, 2.5vw, 28px);
  color: #ffffff;
  text-shadow: 0 2px 22px rgba(255, 178, 122, .36);
}

/* Stage 5: OEM Voice + LLM Enhancement */
.stage-voice {
  background: radial-gradient(ellipse at 50% 0%, #1c2c27 0%, #101716 56%, #0b1010 100%);
  border-color: #293c35;
}
.voice-caption-capsule {
  padding: 20px 22px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(167, 243, 208, .22);
  backdrop-filter: blur(14px);
}
.voice-capsule-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.voice-seat-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(16, 185, 129, .2);
  border: 1px solid rgba(52, 211, 153, .45);
  color: #86efac;
  font-size: 11.5px;
  font-weight: 650;
}
.voice-seat-badge.is-llm {
  background: rgba(236, 113, 43, .22);
  border-color: rgba(251, 146, 60, .48);
  color: #fdba74;
}
.voice-latency-badge {
  font-size: 11.5px;
  color: #a6bfb5;
  font-weight: 550;
}
.voice-user-say {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.65;
  font-weight: 600;
  color: #ffffff;
}
.voice-ai-reply {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 11px;
  background: rgba(16, 185, 129, .09);
  border-left: 3px solid #34d399;
  font-size: 13.5px;
  line-height: 1.75;
  color: #dbf4ea;
}
.voice-cmd-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.voice-cmd {
  display: inline-flex;
  align-items: center;
  padding: 6px 11px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 600;
}
.voice-cmd.is-ok {
  background: rgba(16, 185, 129, .18);
  border: 1px solid rgba(52, 211, 153, .38);
  color: #a7f3d0;
}
.voice-cmd.is-oem {
  background: rgba(56, 189, 248, .14);
  border: 1px solid rgba(56, 189, 248, .32);
  color: #bae6fd;
}
.voice-cmd.is-safe {
  background: rgba(251, 191, 36, .14);
  border: 1px solid rgba(251, 191, 36, .34);
  color: #fde68a;
}
.voice-metrics-bar {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 14px;
  font-size: 12px;
  color: #a7bdb4;
}
.voice-metrics-bar span::before {
  content: "✦ ";
  color: #ec712b;
}

.start-strip-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.story-signature {
  font-size: 12px;
  color: #66705f;
  text-align: center;
  margin: 28px 0 0;
}

/* ==========================================================================
   Desktop & Landscape Wide Story-Snap Mode (body.home-story)
   ========================================================================== */
html.story-scroll {
  scroll-snap-type: y mandatory;
  scroll-behavior: auto;
  scroll-padding: 0;
}
html.story-animating { scroll-snap-type: none !important; }
body.home-story { --story-header: 72px; }
body.home-story .site-header {
  position: fixed;
  inset: 0 0 auto;
  width: 100%;
  height: var(--story-header);
  padding-inline: clamp(22px, 4vw, 70px);
  z-index: 30;
  border-bottom: 1px solid #252d2310;
  background: #f8f7f3eb;
  backdrop-filter: blur(18px);
}
body.home-story .site-header .brand { font-size: 21px; }
body.home-story .site-header .brand img { width: 34px; height: 34px; }
body.home-story [data-story-panel] {
  width: 100%;
  min-height: 100svh;
  margin: 0;
  padding: calc(var(--story-header) + 22px) max(42px, calc((100vw - 1160px) / 2)) 32px max(150px, calc((100vw - 1160px) / 2));
  display: flex;
  flex-direction: column;
  justify-content: center;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  scroll-margin: 0;
  position: relative;
  box-sizing: border-box;
}
body.home-story #overview {
  display: flex;
  min-height: 100svh;
  background: radial-gradient(ellipse at 70% 35%, #edeee466, transparent 60%);
}
body.home-story .showcase-heading { width: 100%; margin-bottom: 16px; }
body.home-story .showcase-open {
  width: min(100%, 920px, calc((100svh - 385px) * var(--image-ratio)));
}
body.home-story .showcase-open.is-ultrawide {
  width: min(100%, 1040px, calc((100svh - 340px) * var(--image-ratio)));
}
body.home-story [data-story-panel] > .showcase-heading,
body.home-story [data-story-panel] > .stage-panels,
body.home-story [data-story-panel] > .cockpit-stage {
  transition: opacity .55s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
}
body.home-story [data-story-panel].is-active > .showcase-heading,
body.home-story [data-story-panel].is-active > .stage-panels,
body.home-story [data-story-panel].is-active > .cockpit-stage {
  transform: translateY(0);
}
body.home-story .story-guide {
  display: flex;
  position: fixed;
  left: clamp(16px, 2.4vw, 44px);
  top: 50%;
  transform: translateY(-44%);
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  z-index: 35;
  font-size: 12px;
  color: #70796b;
}
.story-guide-links {
  display: flex;
  flex-direction: column;
  position: relative;
}
.story-guide-links:before {
  content: '';
  position: absolute;
  width: 1px;
  top: 18px;
  bottom: 18px;
  left: 9px;
  background: #cdd2c5;
}
.story-guide a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  position: relative;
  padding-right: 8px;
  outline-offset: 2px;
}
.story-guide a:hover { color: #a34313; }
.rail-dot {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #bac2b1;
  margin: 0 6px;
  box-shadow: 0 0 0 5px #f8f7f3;
  transition: background .3s, box-shadow .3s, transform .3s;
}
.rail-label { transition: color .3s; white-space: nowrap; font-weight: 500; }
.story-guide a[aria-current='step'] { color: #a34313; }
.story-guide a[aria-current='step'] .rail-dot {
  background: #e87535;
  transform: scale(1.12);
  box-shadow: 0 0 0 4px #f8f7f3, 0 0 0 5px #e8753570;
}
.story-guide a[aria-current='step'] .rail-label { font-weight: 700; }
.story-count {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 0 4px;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 1px;
}
#story-position { color: #303b2a; font-weight: 650; }
.count-line { height: 1px; width: 20px; background: #c0c7b8; }

body.home-story #features .section-heading { width: 100%; max-width: 1040px; margin: 0 auto; }
body.home-story #features .section-heading h2 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.38; max-width: 850px; }
body.home-story #product-features {
  width: 100%;
  max-width: 1040px;
  margin: 24px auto 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
body.home-story #product-features article { padding: 24px 26px; background: #ffffff8c; }
body.home-story #product-features h3 { margin: 14px 0 8px; }
body.home-story #product-features p { min-height: 0; margin-bottom: 0; color: #5e6758; }
body.home-story .roadmap-teaser { width: 100%; max-width: 1040px; margin: 0 auto; padding: 44px; border-radius: 20px; }
body.home-story .roadmap-teaser h2 { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.38; }
body.home-story .start-strip { width: 100%; max-width: 1040px; margin: 30px auto 0; padding-block: 16px; }
body.home-story > .site-footer { display: none; }
body.home-story #home-content-message:empty { display: none; }
body.home-story #home-content-message:not(:empty) {
  position: fixed;
  bottom: 10px;
  left: 0;
  right: 0;
  z-index: 20;
  text-align: center;
  background: #f8f7f3;
}

/* ==========================================================================
   Mobile Portrait Natural-Flow Mode (body.home-flow)
   Zero forced 100svh voids, zero snap fights, symmetrical edge-to-edge cards
   ========================================================================== */
body.home-flow .story-guide { display: none !important; }
body.home-flow .site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100%;
  height: 58px;
  padding-inline: 14px;
  gap: 8px;
  background: rgba(248, 247, 243, .94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid #e3e5dc;
}
body.home-flow .mobile-chapter-bar {
  display: block;
  position: sticky;
  top: 58px;
  z-index: 34;
  width: 100%;
  background: rgba(248, 247, 243, .94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid #e3e5dc;
}
.mobile-chapter-track {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 9px 16px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.mobile-chapter-track::-webkit-scrollbar { display: none; }
.mobile-chapter-track a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 13px;
  border-radius: 999px;
  background: #eceee6;
  border: 1px solid transparent;
  color: #4f5949;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: background .18s, color .18s, border-color .18s;
}
.mobile-chapter-track a[aria-current='step'] {
  background: #252d23;
  color: #f8f7f3;
  border-color: #252d23;
}
.mobile-chapter-track a[aria-current='step']::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ec712b;
}

body.home-flow [data-story-panel] {
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 36px 16px;
  scroll-snap-align: none;
  scroll-snap-stop: normal;
  box-sizing: border-box;
}
body.home-flow #overview {
  padding-top: 28px;
  padding-bottom: 34px;
  text-align: left;
  background: radial-gradient(ellipse at 80% 10%, #eceee299, transparent 62%);
}
body.home-flow .scroll-intro .eyebrow { justify-content: flex-start; font-size: 10.5px; letter-spacing: 1.5px; }
body.home-flow .scroll-intro h1 {
  font-size: clamp(32px, 9.2vw, 44px);
  line-height: 1.24;
  letter-spacing: -1.3px;
  margin-block: 14px 12px;
}
body.home-flow .scroll-intro .hero-description {
  font-size: 14px;
  line-height: 1.8;
  margin-inline: 0;
}
body.home-flow .hero-focus-pills {
  justify-content: flex-start;
  gap: 8px;
  margin-top: 18px;
}
body.home-flow .focus-pill {
  padding: 7px 12px;
  font-size: 12.5px;
}
body.home-flow .scroll-intro .hero-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 22px;
  justify-content: stretch;
}
body.home-flow #hero-join {
  grid-column: 1 / -1;
  width: 100%;
  justify-content: space-between;
  min-height: 48px;
  padding: 12px 18px;
}
body.home-flow .hero-download-btn {
  width: 100%;
  justify-content: center;
  min-height: 44px;
  padding: 10px 12px;
  font-size: 13px;
  gap: 5px;
}
body.home-flow .hero-explore-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 9px;
  border: 1px solid #dcded5;
  background: #f2f3ec;
  font-size: 13px;
  gap: 6px;
}
body.home-flow .scroll-intro .subtle {
  margin-top: 16px;
  font-size: 11.5px;
  line-height: 1.7;
  max-width: none;
}

body.home-flow .showcase-heading {
  text-align: left;
  margin: 0 0 16px;
}
body.home-flow .showcase-kicker { font-size: 10.5px; margin-bottom: 6px; }
body.home-flow .showcase-heading h2 {
  font-size: 26px;
  letter-spacing: -.8px;
  margin-bottom: 8px;
}
body.home-flow .showcase-heading p:not(.showcase-kicker) {
  font-size: 13.5px;
  line-height: 1.75;
}
body.home-flow .stage-switcher {
  width: 100%;
  display: flex;
  flex-wrap: nowrap;
  justify-content: stretch;
  border-radius: 12px;
  margin-bottom: 14px;
}
body.home-flow .stage-switcher[data-compare-controls="cluster"] {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
}
body.home-flow .stage-tab {
  flex: 1 1 0;
  padding: 9px 6px;
  border-radius: 9px;
  font-size: 12px;
  text-align: center;
}
body.home-flow .stage-controls {
  justify-content: flex-start;
  margin-bottom: 14px;
}
body.home-flow .stage-toggle-btn { font-size: 12.5px; padding: 8px 13px; }
body.home-flow .stage-meta-pill { font-size: 11.5px; padding: 6px 11px; }
body.home-flow .showcase-open {
  width: 100%;
  border-radius: 13px;
  box-shadow: 0 12px 30px rgba(24, 38, 22, .12);
}
body.home-flow .zoom-hint {
  right: 8px;
  bottom: 8px;
  font-size: 10.5px;
  padding: 4px 9px;
}
body.home-flow .cockpit-stage {
  padding: 16px 14px;
  border-radius: 15px;
}
body.home-flow .cluster-grid,
body.home-flow .hud-optics-row,
body.home-flow .passenger-workspace,
body.home-flow .rear-lyrics-body {
  grid-template-columns: 1fr;
  gap: 12px;
}
body.home-flow .cluster-speed { font-size: 40px; }
body.home-flow .cluster-road-canvas { height: 78px; }
body.home-flow .hud-ar-chevrons { margin: 2px auto 12px; }
body.home-flow .passenger-app-frame { min-height: 124px; padding: 8px; }
body.home-flow .passenger-app-screen { padding: 13px 14px; }
body.home-flow .passenger-bottom-row { justify-content: space-between; gap: 10px; }
body.home-flow .passenger-dock { gap: 6px; padding: 6px 9px; }
body.home-flow .dock-icon { width: 30px; height: 30px; font-size: 12px; }
body.home-flow .rear-album-col { padding: 13px; gap: 12px; }
body.home-flow .rear-cover-art { width: 62px; height: 62px; }
body.home-flow .rear-lines-col { text-align: center; padding-block: 6px 2px; gap: 7px; }
body.home-flow .lyric-line.is-current { font-size: 21px; }
body.home-flow .voice-caption-capsule { padding: 15px 14px; }
body.home-flow .voice-user-say { font-size: 14.5px; }
body.home-flow .voice-ai-reply { font-size: 13px; }
body.home-flow .voice-metrics-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  font-size: 11.5px;
}
body.home-flow .stage-highlights {
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 14px;
}
body.home-flow .stage-highlights li {
  padding: 12px 14px;
  background: #ffffffd6;
}
body.home-flow #features .section-heading h2 { font-size: 25px; line-height: 1.35; }
body.home-flow #product-features {
  grid-template-columns: 1fr;
  gap: 11px;
  margin-top: 18px;
}
body.home-flow #product-features article { padding: 18px; }
body.home-flow #product-features h3 { margin: 10px 0 6px; font-size: 16px; }
body.home-flow #product-features p { min-height: 0; margin: 0; font-size: 13px; line-height: 1.75; }
body.home-flow .roadmap-teaser {
  margin-top: 0;
  padding: 24px 20px;
  border-radius: 16px;
}
body.home-flow .roadmap-teaser h2 { font-size: 24px; }
body.home-flow .start-strip {
  flex-direction: column;
  align-items: flex-start;
  padding-block: 26px 12px;
  gap: 16px;
}
body.home-flow .start-strip h2 { font-size: 20px; }
body.home-flow .story-signature { display: none; }

/* ==========================================================================
   Lightbox Image Viewer (with Portrait Rotate-to-Landscape Fullscreen)
   ========================================================================== */
.gallery-dialog {
  width: min(1480px, calc(100vw - 36px));
  max-width: none;
  max-height: calc(100dvh - 36px);
  padding: 0;
  border: 1px solid #364139;
  border-radius: 14px;
  background: #0d1212;
  color: #f4f6ed;
  overflow: hidden;
  box-shadow: 0 25px 100px #0008;
}
.gallery-dialog::backdrop {
  background: #080d0ae8;
  backdrop-filter: blur(6px);
}
.gallery-dialog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid #ffffff16;
  background: #121817;
}
.gallery-dialog-toolbar h2 {
  margin: 0;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gallery-dialog-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.gallery-rotate-btn {
  display: none;
  align-items: center;
  gap: 4px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(236, 113, 43, .55);
  border-radius: 8px;
  background: rgba(236, 113, 43, .18);
  color: #ffd0b0;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.gallery-rotate-btn[aria-pressed='true'] {
  background: #ec712b;
  border-color: #f79256;
  color: #fff;
}
.gallery-close-btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 34px;
  padding: 0;
  border: 1px solid #ffffff24;
  border-radius: 8px;
  background: #ffffff0c;
  color: #fff;
  font-size: 22px;
  line-height: 1;
}
.gallery-close-btn:hover { background: #ffffff1d; }
.gallery-dialog-image {
  display: grid;
  place-items: center;
  min-height: 180px;
  padding: 10px;
  overflow: auto;
}
.gallery-dialog-image img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100dvh - 110px);
  object-fit: contain;
  border-radius: 6px;
}

/* Portrait phone lightbox enhancements */
@media (orientation: portrait) and (max-width: 819px) {
  .gallery-rotate-btn { display: inline-flex; }
  .gallery-dialog {
    width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
    border-radius: 12px;
  }
  .gallery-dialog-image {
    padding: 8px;
    min-height: 220px;
  }
  .gallery-dialog.is-rotated {
    width: 100vw;
    height: 100dvh;
    max-width: 100vw;
    max-height: 100dvh;
    margin: 0;
    border: 0;
    border-radius: 0;
  }
  .gallery-dialog.is-rotated .gallery-dialog-image {
    position: relative;
    display: block;
    width: 100%;
    height: calc(100dvh - 55px);
    min-height: 0;
    padding: 0;
    overflow: hidden;
  }
  .gallery-dialog.is-rotated .gallery-dialog-image img {
    position: absolute;
    top: 50%;
    left: 50%;
    max-width: calc(100dvh - 76px);
    max-height: calc(100vw - 20px);
    width: auto;
    height: auto;
    transform: translate(-50%, -50%) rotate(90deg);
    transform-origin: center center;
  }
}

/* ==========================================================================
   Tablet & Compact Phone-Landscape Tuning for Story Mode
   ========================================================================== */
@media (max-width: 1060px) and (min-width: 820px) {
  body.home-story [data-story-panel] {
    padding-left: 124px;
    padding-right: 28px;
  }
  .story-guide .rail-label { font-size: 11px; }
  .scroll-intro h1 { font-size: 52px; }
  body.home-story .showcase-heading h2 { font-size: 40px; }
  body.home-story .roadmap-teaser { padding: 32px; }
}

@media (orientation: landscape) and (max-height: 560px) and (min-width: 640px) {
  body.home-story { --story-header: 54px; }
  body.home-story .site-header { padding-inline: 18px; }
  body.home-story .site-header .brand { font-size: 17px; gap: 6px; }
  body.home-story .site-header .brand img { width: 26px; height: 26px; }
  body.home-story .site-header nav { gap: 14px; font-size: 12px; }
  body.home-story .site-header .button-small { min-height: 34px; padding: 6px 12px; font-size: 11.5px; gap: 6px; }
  body.home-story [data-story-panel] {
    padding: calc(var(--story-header) + 10px) 22px 14px 108px;
  }
  body.home-story .story-guide { left: 12px; gap: 8px; font-size: 10.5px; }
  body.home-story .story-guide a { min-height: 24px; gap: 7px; }
  body.home-story .story-guide-links:before { top: 12px; bottom: 12px; }
  body.home-story .scroll-intro h1 { font-size: 34px; margin-block: 8px; letter-spacing: -1.2px; }
  body.home-story .scroll-intro .hero-description { font-size: 12.5px; line-height: 1.65; }
  body.home-story .hero-focus-pills { margin-top: 10px; gap: 6px; }
  body.home-story .focus-pill { padding: 4px 10px; font-size: 11px; }
  body.home-story .scroll-intro .hero-actions { margin-top: 12px; gap: 10px; }
  body.home-story .scroll-intro .hero-actions .button,
  body.home-story .scroll-intro .hero-download-btn { min-height: 38px; padding: 8px 14px; font-size: 12px; }
  body.home-story .scroll-intro .subtle { margin-top: 10px; font-size: 10.5px; }
  body.home-story .showcase-heading { margin-bottom: 8px; }
  body.home-story .showcase-kicker { font-size: 9.5px; margin-bottom: 4px; }
  body.home-story .showcase-heading h2 { font-size: 24px; margin-bottom: 4px; letter-spacing: -.8px; }
  body.home-story .showcase-heading p:not(.showcase-kicker) { font-size: 12px; line-height: 1.5; }
  body.home-story .stage-switcher,
  body.home-story .stage-controls { margin-bottom: 10px; }
  body.home-story .stage-tab { padding: 5px 12px; font-size: 11.5px; }
  body.home-story .showcase-open,
  body.home-story .showcase-open.is-ultrawide {
    width: min(100%, 720px, calc((100svh - 190px) * var(--image-ratio)));
  }
  body.home-story .cockpit-stage { padding: 10px 14px; border-radius: 13px; }
  body.home-story .stage-topbar { margin-bottom: 6px; }
  body.home-story .cluster-grid { gap: 10px; }
  body.home-story .cluster-col-oem,
  body.home-story .cluster-col-map,
  body.home-story .cluster-col-right { padding: 10px 12px; gap: 6px; }
  body.home-story .cluster-speed { font-size: 30px; }
  body.home-story .cluster-road-canvas { height: 42px; }
  body.home-story .cluster-avoid-note,
  body.home-story .cluster-mode-badge { display: none; }
  body.home-story .hud-ar-chevrons { margin: 0 auto 6px; gap: 3px; }
  body.home-story .ar-chevron { height: 10px; }
  body.home-story .hud-block { padding: 10px 14px; }
  body.home-story .passenger-app-frame { min-height: 76px; padding: 6px; }
  body.home-story .passenger-bottom-row { margin-top: 8px; }
  body.home-story .rear-cover-art { width: 52px; height: 52px; }
  body.home-story .lyric-line { font-size: 13px; }
  body.home-story .lyric-line.is-current { font-size: 18px; }
  body.home-story .voice-caption-capsule { padding: 10px 14px; }
  body.home-story .voice-user-say { font-size: 13px; margin-bottom: 8px; }
  body.home-story .voice-cmd { padding: 4px 9px; font-size: 11px; }
  body.home-story .voice-metrics-bar { margin-top: 8px; padding-top: 6px; font-size: 10.5px; }
  body.home-story .stage-highlights { display: none; }
  body.home-story #features .section-heading h2 { font-size: 24px; }
  body.home-story #product-features { margin-top: 12px; gap: 10px; }
  body.home-story #product-features article { padding: 12px 14px; }
  body.home-story #product-features h3 { margin: 6px 0 4px; font-size: 14px; }
  body.home-story #product-features p { font-size: 11.5px; line-height: 1.5; }
  body.home-story .roadmap-teaser { padding: 20px 24px; gap: 12px; }
  body.home-story .roadmap-teaser h2 { font-size: 22px; margin: 6px 0; }
  body.home-story .start-strip { margin-top: 14px; padding-block: 8px; }
  body.home-story .story-signature { margin-top: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html.story-scroll { scroll-behavior: auto; }
  .home-story *,
  .home-flow * { transition: none !important; animation: none !important; }
}

/* ==========================================================================
   Before / After Always-Live Photo Split-Curtain Stages (Cluster / HUD / Passenger)
   ========================================================================== */
.compare-stage-wrap {
  width: 100%;
  max-width: 1040px;
  margin-inline: auto;
}
.compare-viewport {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: var(--compare-ratio, 2.2);
  margin-inline: auto;
  border-radius: 18px;
  border: 1px solid #28332e;
  background: #080a0c;
  color: #eff4ee;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
  cursor: ew-resize;
  box-shadow: 0 22px 58px rgba(16, 26, 20, .2), inset 0 1px 0 rgba(255, 255, 255, .09);
  --split: 50%;
}
.compare-cluster { aspect-ratio: 1920 / 720; }
.compare-hud { aspect-ratio: 1280 / 592; }
.compare-passenger { aspect-ratio: 1600 / 650; background: #000000; border-color: #16181a; }

body.home-story .compare-viewport {
  width: min(100%, 1040px, calc((100svh - 345px) * var(--compare-ratio, 2.2)));
}
.compare-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.compare-layer-before {
  z-index: 2;
  clip-path: inset(0 calc(100% - var(--split, 50%)) 0 0);
}
.compare-layer-after {
  z-index: 1;
}
.compare-viewport.is-gliding .compare-layer-before {
  transition: clip-path .38s cubic-bezier(.22, 1, .36, 1);
}
.compare-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  -webkit-user-drag: none;
}
.compare-badge {
  position: absolute;
  top: 14px;
  z-index: 4;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .3px;
  pointer-events: none;
  backdrop-filter: blur(10px);
  transition: opacity .22s ease;
}
.compare-badge.is-left {
  left: 16px;
  background: rgba(14, 18, 22, .76);
  border: 1px solid rgba(255, 255, 255, .22);
  color: #edf2f7;
}
.compare-badge.is-right {
  right: 16px;
  background: rgba(236, 113, 43, .26);
  border: 1px solid rgba(251, 146, 60, .6);
  color: #ffe2cc;
}
.compare-viewport.is-hide-left-badge .compare-badge.is-left,
.compare-viewport.is-hide-right-badge .compare-badge.is-right {
  opacity: 0;
}

/* Exact vertical split line + always-grabbable circular handle */
.compare-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--split, 50%);
  width: 2px;
  z-index: 5;
  transform: translateX(-50%);
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .45), #ffffff 24%, #ec712b 50%, #ffffff 76%, rgba(255, 255, 255, .45));
  box-shadow: 0 0 14px rgba(236, 113, 43, .75);
}
.compare-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: clamp(22px, var(--split, 50%), calc(100% - 22px));
  transform: translateX(-50%);
  width: 44px;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: ew-resize;
  touch-action: none;
  outline: none;
}
.compare-viewport.is-gliding .compare-line,
.compare-viewport.is-gliding .compare-divider {
  transition: left .38s cubic-bezier(.22, 1, .36, 1);
}
.compare-knob {
  position: relative;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(14, 18, 20, .88);
  border: 2px solid #ffffff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .52), 0 0 0 4px rgba(236, 113, 43, .34);
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 2px;
  display: grid;
  place-items: center;
  padding-left: 2px;
  transition: transform .2s, border-color .2s, box-shadow .2s, opacity .2s;
}
.compare-viewport[data-edge="left"] .compare-knob,
.compare-viewport[data-edge="right"] .compare-knob {
  transform: scale(.82);
  opacity: .72;
}
.compare-divider:hover .compare-knob,
.compare-divider:focus-visible .compare-knob,
.compare-viewport.is-dragging .compare-knob {
  transform: scale(1.08);
  opacity: 1;
  border-color: #ec712b;
  box-shadow: 0 6px 22px rgba(0, 0, 0, .58), 0 0 0 5px rgba(236, 113, 43, .48);
}
.compare-drag-tip {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(12, 16, 15, .86);
  border: 1px solid rgba(255, 255, 255, .2);
  color: #f3f6f2;
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  transition: opacity .25s ease;
}
.compare-viewport.is-interacted .compare-drag-tip {
  opacity: 0;
}
.compare-zoom-btn {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 7;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(12, 17, 16, .74);
  color: #f3f5ef;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2px;
  backdrop-filter: blur(8px);
  cursor: zoom-in;
  transition: background .18s, border-color .18s;
}
.compare-zoom-btn:hover {
  background: rgba(236, 113, 43, .88);
  border-color: rgba(255, 210, 178, .75);
}

/* Mobile Portrait alignment for photo split-curtain sliders */
body.home-flow .compare-viewport {
  width: 100%;
  border-radius: 14px;
}
body.home-flow .compare-badge {
  top: 8px;
  padding: 3px 8px;
  font-size: 10px;
}
body.home-flow .compare-badge.is-left { left: 8px; }
body.home-flow .compare-badge.is-right { right: 8px; }
body.home-flow .compare-knob {
  width: 34px;
  height: 34px;
  font-size: 13px;
}
body.home-flow .compare-divider {
  left: clamp(19px, var(--split, 50%), calc(100% - 19px));
}
body.home-flow .compare-drag-tip {
  bottom: 8px;
  font-size: 9.5px;
  padding: 2px 7px;
}
body.home-flow .compare-zoom-btn {
  right: 8px;
  bottom: 8px;
  padding: 4px 8px;
  font-size: 10px;
}

/* Compact Phone Landscape (844x390) fit for split-curtain stages */
@media (orientation: landscape) and (max-height: 560px) and (min-width: 640px) {
  body.home-story .compare-viewport {
    width: min(100%, 720px, calc((100svh - 195px) * var(--compare-ratio, 2.2)));
    border-radius: 13px;
  }
  body.home-story .compare-badge { top: 8px; padding: 3px 9px; font-size: 10px; }
  body.home-story .compare-knob { width: 32px; height: 32px; font-size: 13px; }
  body.home-story .compare-zoom-btn { right: 8px; bottom: 8px; padding: 3px 8px; font-size: 10px; }
}
