/* ============================================================
   ID.AURA — Volkswagen HMI Concept
   Design system: deep-space dark, signal cyan, glass surfaces,
   Manrope display + Sometype Mono data typography.
   ============================================================ */

:root {
  --bg: #010306;
  --bg-2: #050a0f;
  --ink: #edf4f4;
  --ink-dim: #91a8ad;
  --ink-faint: #536a71;
  --cyan: #62d8ee;
  --cyan-dim: rgba(98, 216, 238, 0.3);
  --amber: #f0a06d;
  --red: #e96d7b;
  --green: #75e2bd;
  --gold: #d8b06a;
  --glass: rgba(10, 18, 32, 0.55);
  --glass-brd: rgba(120, 190, 255, 0.14);
  --font-display: "Manrope", system-ui, sans-serif;
  --font-mono: "Sometype Mono", ui-monospace, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-display);
  -webkit-font-smoothing: antialiased;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

/* ---------- WebGL stage ---------- */
#stage, #stage canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* ============================================================
   LOADER
   ============================================================ */
#loader {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  background: var(--bg);
  transition: opacity 0.8s ease, visibility 0.8s;
}
#loader.done { opacity: 0; visibility: hidden; pointer-events: none; }

.loader-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(56, 240, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 240, 255, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 50%, #000 0%, transparent 70%);
}

.loader-core { position: relative; text-align: center; }

.loader-logo {
  font-size: clamp(48px, 8vw, 88px);
  font-weight: 300;
  letter-spacing: 0.08em;
}
.loader-logo .dot { color: var(--cyan); }

.loader-sub {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.42em;
  color: var(--ink-faint);
}

.loader-track {
  width: 240px;
  height: 2px;
  margin: 34px auto 14px;
  background: rgba(120, 190, 255, 0.12);
  border-radius: 2px;
  overflow: hidden;
}
.loader-track i {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, transparent, var(--cyan));
  box-shadow: 0 0 12px var(--cyan);
  transition: width 0.35s ease;
}

.loader-status {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--ink-faint);
  animation: blink 1.6s infinite;
}
@keyframes blink { 50% { opacity: 0.35; } }

/* ============================================================
   HUD SHELL
   ============================================================ */
#hud { position: fixed; inset: 0; z-index: 10; pointer-events: none; }
#hud button, #hud a { pointer-events: auto; }

.hud-top {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  background: linear-gradient(180deg, rgba(4, 6, 11, 0.85), transparent);
}

.hud-brand { display: flex; align-items: center; gap: 12px; }
.hud-mark { width: 26px; height: 26px; color: var(--cyan); opacity: 0.9; }
.hud-word { font-size: 17px; font-weight: 600; letter-spacing: 0.12em; }
.hud-word span { color: var(--cyan); }

.hud-nav {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--glass);
  border: 1px solid var(--glass-brd);
  border-radius: 999px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.nav-btn {
  padding: 8px 20px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
  transition: color 0.25s, background 0.25s, box-shadow 0.25s;
}
.nav-btn:hover { color: var(--ink); }
.nav-btn.active {
  color: #04222a;
  background: var(--cyan);
  box-shadow: 0 0 22px var(--cyan-dim);
}

.hud-right { display: flex; align-items: center; gap: 14px; }
.hud-clock {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--ink-dim);
}
.hud-icon {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--glass-brd);
  background: var(--glass);
  backdrop-filter: blur(14px);
  color: var(--ink-dim);
  transition: color 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.hud-icon svg { width: 17px; height: 17px; }
.hud-icon:hover { color: var(--ink); }
.hud-icon.on {
  color: var(--cyan);
  border-color: var(--cyan-dim);
  box-shadow: 0 0 16px rgba(56, 240, 255, 0.25);
}

/* Phosphor Icons — MIT-licensed, locally pinned SVG masks. */
.ph-icon {
  --icon: none;
  display: inline-block;
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
  background: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}
.ph-headlights { --icon: url("assets/icons/phosphor/headlights.svg"); }
.ph-speaker-high { --icon: url("assets/icons/phosphor/speaker-high.svg"); }
.ph-navigation-arrow { --icon: url("assets/icons/phosphor/navigation-arrow.svg"); }
.ph-music-notes { --icon: url("assets/icons/phosphor/music-notes.svg"); }
.ph-thermometer { --icon: url("assets/icons/phosphor/thermometer.svg"); }
.ph-car-profile { --icon: url("assets/icons/phosphor/car-profile.svg"); }
.ph-skip-back { --icon: url("assets/icons/phosphor/skip-back.svg"); }
.ph-play { --icon: url("assets/icons/phosphor/play.svg"); }
.ph-pause { --icon: url("assets/icons/phosphor/pause.svg"); }
.ph-skip-forward { --icon: url("assets/icons/phosphor/skip-forward.svg"); }
.ph-house-simple { --icon: url("assets/icons/phosphor/house-simple.svg"); }
.ph-sparkle { --icon: url("assets/icons/phosphor/sparkle.svg"); }
.ph-steering-wheel { --icon: url("assets/icons/phosphor/steering-wheel.svg"); }
.ph-gauge { --icon: url("assets/icons/phosphor/gauge.svg"); }
.ph-battery-high { --icon: url("assets/icons/phosphor/battery-high.svg"); }

.hud-icon .ph-icon {
  width: 18px;
  height: 18px;
}

body:not([data-view="showroom"]) #lights-btn {
  display: none;
}

#control-toast {
  position: absolute;
  top: 74px;
  right: 28px;
  z-index: 8;
  padding: 8px 11px;
  border: 1px solid rgba(98, 216, 238, 0.2);
  background: rgba(2, 7, 11, 0.82);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.16em;
  opacity: 0;
  transform: translateY(-5px);
  pointer-events: none;
  transition: opacity 0.2s, transform 0.25s;
}

#control-toast.show {
  opacity: 1;
  transform: none;
}

/* view name flash */
#view-name {
  position: absolute;
  top: 96px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.6em;
  text-indent: 0.6em;
  color: var(--ink-faint);
}
#view-name.flash { animation: nameFlash 1.2s ease; }
@keyframes nameFlash {
  0% { opacity: 0; letter-spacing: 1.1em; }
  30% { opacity: 1; color: var(--cyan); }
  100% { opacity: 1; }
}

.hud-bottom {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 20px 28px;
  background: linear-gradient(0deg, rgba(4, 6, 11, 0.8), transparent);
}
.hud-hint, .hud-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  color: var(--ink-faint);
}
body[data-view="showroom"] .hud-hint { color: var(--ink-dim); }

/* ============================================================
   SHOWROOM CONTROLS
   ============================================================ */
.showroom-ui {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}
body[data-view="showroom"] .showroom-ui { opacity: 1; }
body[data-view="showroom"] .showroom-ui button { pointer-events: auto; }

.lens-rail {
  position: absolute;
  left: 28px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.lens-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.24em;
  color: var(--ink-dim);
  background: var(--glass);
  border-color: var(--glass-brd);
  backdrop-filter: blur(14px);
  transition: all 0.25s;
}
.lens-btn i { font-style: normal; color: var(--ink-faint); }
.lens-btn:hover { color: var(--ink); border-color: rgba(120, 190, 255, 0.3); }
.lens-btn.active {
  color: var(--cyan);
  border-color: var(--cyan-dim);
  box-shadow: 0 0 18px rgba(56, 240, 255, 0.15);
}
.lens-btn.active i { color: var(--cyan); }
.lens-btn .ph-icon {
  width: 14px;
  height: 14px;
  color: var(--ink-faint);
}
.lens-btn.active .ph-icon { color: var(--cyan); }

.interior-tour {
  position: absolute;
  left: 50%;
  bottom: 120px;
  width: min(610px, calc(100vw - 48px));
  transform: translate(-50%, 14px);
  display: grid;
  grid-template-columns: minmax(160px, 0.8fr) 1.6fr;
  align-items: center;
  gap: 18px;
  padding: 10px 12px 10px 18px;
  border: 1px solid rgba(98, 216, 238, 0.18);
  border-radius: 13px;
  background: linear-gradient(105deg, rgba(2, 8, 12, 0.94), rgba(7, 18, 23, 0.86));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42), inset 0 1px rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
body[data-view="showroom"].interior-view .interior-tour {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}
.interior-tour-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}
.interior-tour-copy span {
  font: 500 8px/1 var(--font-mono);
  letter-spacing: 0.3em;
  color: rgba(98, 216, 238, 0.62);
}
.interior-tour-copy strong {
  overflow: hidden;
  color: #d9edf0;
  font: 500 11px/1.2 var(--font-mono);
  letter-spacing: 0.13em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.interior-tour-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}
.interior-view-btn {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid rgba(134, 184, 192, 0.11);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.022);
  color: rgba(186, 211, 215, 0.52);
  font: 500 8px/1 var(--font-mono);
  letter-spacing: 0.13em;
  transition: 0.24s ease;
}
.interior-view-btn span {
  color: rgba(98, 216, 238, 0.42);
  font-size: 7px;
}
.interior-view-btn:hover {
  color: #e6f5f6;
  border-color: rgba(98, 216, 238, 0.3);
}
.interior-view-btn.active {
  color: #efffff;
  border-color: rgba(98, 216, 238, 0.4);
  background: rgba(98, 216, 238, 0.09);
  box-shadow: inset 0 0 18px rgba(98, 216, 238, 0.05);
}

.scene-rail {
  position: absolute;
  bottom: 72px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 7px 9px;
  background: var(--glass);
  border: 1px solid var(--glass-brd);
  border-radius: 14px;
  backdrop-filter: blur(14px);
}
.scene-rail .rail-label {
  writing-mode: horizontal-tb;
  margin-right: 4px;
}

@media (max-width: 760px) {
  .interior-tour {
    bottom: 130px;
    grid-template-columns: 1fr;
    gap: 9px;
  }
  .interior-tour-copy { display: none; }
  .interior-view-btn { padding: 0 7px; letter-spacing: 0.08em; }
}
.scene-btn {
  padding: 7px 11px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: none;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--ink-dim);
  cursor: pointer;
  transition: all 0.25s;
}
.scene-btn:hover { color: var(--ink); border-color: rgba(120, 190, 255, 0.3); }
.scene-btn.active {
  color: var(--cyan);
  border-color: var(--cyan-dim);
  background: rgba(56, 240, 255, 0.08);
  box-shadow: 0 0 14px rgba(56, 240, 255, 0.15);
}

.paint-rail {
  position: absolute;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 16px 12px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--glass-brd);
  backdrop-filter: blur(14px);
}
.rail-label {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.3em;
  color: var(--ink-faint);
  writing-mode: vertical-rl;
}
.paint-dot {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--c);
  border: 2px solid rgba(255, 255, 255, 0.18);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.paint-dot:hover { transform: scale(1.15); }
.paint-dot.active {
  border-color: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15), 0 0 14px var(--c);
}

/* ============================================================
   MODE LAYERS
   ============================================================ */
.layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.45s ease, visibility 0.45s;
}
.layer.on { opacity: 1; visibility: visible; pointer-events: auto; }
/* console gets its own opaque backdrop so the 3D showroom car never
   bleeds through between the glass infotainment cards */
#layer-console { background: radial-gradient(ellipse at 50% 30%, #0a1424 0%, #04070d 75%); }

/* ============================================================
   CLUSTER
   ============================================================ */
.cluster { position: absolute; inset: 0; }
.cluster-canvas { width: 100%; height: 100%; display: block; }

.cluster-modes {
  position: absolute;
  bottom: 76px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  padding: 5px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--glass-brd);
  backdrop-filter: blur(18px);
}
.cluster-modes button {
  padding: 9px 26px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.24em;
  color: var(--ink-dim);
  transition: all 0.25s;
}
.cluster-modes button:hover { color: var(--ink); }
.cluster-modes button.active {
  color: #081018;
  background: var(--c);
  box-shadow: 0 0 24px var(--c);
}

/* ============================================================
   CONSOLE
   ============================================================ */
.console {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 96px 48px 84px;
  max-width: 1180px;
  margin: 0 auto;
}

.console-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 18px;
  font-family: var(--font-mono);
}
.console-clock { font-size: 30px; font-weight: 300; letter-spacing: 0.06em; }
.console-date { margin-left: 14px; font-size: 11px; letter-spacing: 0.3em; color: var(--ink-faint); }
.console-status { display: flex; gap: 18px; font-size: 11px; letter-spacing: 0.12em; color: var(--ink-dim); }

.console-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  grid-template-rows: 1.25fr 1fr;
  gap: 14px;
  min-height: 0;
}

.ccard {
  position: relative;
  padding: 18px 20px;
  border-radius: 20px;
  background: var(--glass);
  border: 1px solid var(--glass-brd);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
}
.ccard h3 {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.34em;
  color: var(--ink-faint);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* media */
.cc-live {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ink-faint);
}
.cc-media.playing .cc-live {
  background: var(--red);
  box-shadow: 0 0 8px var(--red);
  animation: blink 1.4s infinite;
}
.cc-eq {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 64px;
  margin: 6px 0 14px;
}
.cc-eq span {
  flex: 1;
  height: 100%;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, var(--cyan), rgba(56, 240, 255, 0.15));
  transform-origin: bottom;
  transform: scaleY(0.1);
}
.cc-track {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.06em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cc-progress {
  height: 3px;
  margin: 10px 0 14px;
  border-radius: 3px;
  background: rgba(120, 190, 255, 0.12);
}
.cc-progress i {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan-dim);
}
/* media body: art + info side-by-side, times under the progress bar */
.cc-media-body { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.cc-art {
  width: 84px; height: 84px; border-radius: 14px; flex-shrink: 0;
  background-size: cover; background-position: center;
  background-color: #0c1422;
  box-shadow: 0 8px 22px rgba(0,0,0,0.45), inset 0 0 0 1px rgba(255,255,255,0.08);
}
.cc-media-info { flex: 1; min-width: 0; }
.cc-artist {
  font-size: 10.5px; letter-spacing: 0.18em; color: var(--ink-faint);
  margin: 4px 0 10px; font-family: var(--font-mono);
}
.cc-media .cc-eq { height: 30px; margin: 0; }
.cc-times {
  display: flex; justify-content: space-between;
  font-size: 10.5px; color: var(--ink-faint);
  font-family: var(--font-mono); margin: -6px 0 12px;
}
.cc-controls { display: flex; gap: 10px; }
.cc-controls button {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--glass-brd);
  color: var(--ink-dim);
  font-size: 15px;
  transition: all 0.2s;
}
.cc-controls button:hover { color: var(--ink); border-color: rgba(120, 190, 255, 0.35); }
.cc-controls [data-play] {
  width: 52px; height: 52px;
  color: #04222a;
  background: var(--cyan);
  border: none;
  box-shadow: 0 0 20px var(--cyan-dim);
}

/* nav */
.cc-nav svg { width: 100%; height: calc(100% - 56px); }
.cc-road {
  fill: none;
  stroke: rgba(120, 190, 255, 0.18);
  stroke-width: 7;
  stroke-linecap: round;
}
.cc-route {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 6 8;
  animation: routeFlow 1.6s linear infinite;
  filter: drop-shadow(0 0 4px var(--cyan));
}
@keyframes routeFlow { to { stroke-dashoffset: -14; } }
.cc-dest { fill: var(--red); }
.cc-dot {
  fill: #fff;
  stroke: var(--cyan);
  stroke-width: 3;
  filter: drop-shadow(0 0 6px var(--cyan));
}
.cc-eta { font-family: var(--font-mono); font-size: 12px; color: var(--ink-dim); }
.cc-eta b { color: var(--cyan); font-size: 15px; margin-right: 6px; }

/* climate */
.cc-temp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
}
.cc-temp b { font-size: 40px; font-weight: 300; font-variant-numeric: tabular-nums; }
.cc-temp button {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--glass-brd);
  color: var(--cyan);
  font-size: 20px;
  transition: all 0.2s;
}
.cc-temp button:hover { border-color: var(--cyan-dim); box-shadow: 0 0 12px rgba(56,240,255,0.2); }
.cc-fan { display: flex; gap: 6px; justify-content: center; margin: 14px 0 10px; }
.cc-fan span {
  width: 34px; height: 8px;
  border-radius: 4px;
  background: rgba(120, 190, 255, 0.14);
  cursor: pointer;
  transition: all 0.2s;
}
.cc-fan span.on { background: var(--cyan); box-shadow: 0 0 10px var(--cyan-dim); }
.cc-climate-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--ink-faint);
}

/* vehicle */
.cc-car ul { list-style: none; }
.cc-car li {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  font-size: 13px;
  border-bottom: 1px solid rgba(120, 190, 255, 0.08);
}
.cc-car li:last-child { border-bottom: none; }
.cc-car span { color: var(--ink-dim); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; }
.cc-car b { font-weight: 500; }
.cc-car .ok { color: var(--green); }

/* dock */
.console-dock {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}
.tg {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 22px;
  border-radius: 999px;
  border: 1px solid var(--glass-brd);
  background: var(--glass);
  backdrop-filter: blur(14px);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.24em;
  color: var(--ink-faint);
  transition: all 0.25s;
}
.tg i { font-style: normal; }
.tg.on {
  color: var(--cyan);
  border-color: var(--cyan-dim);
  box-shadow: 0 0 14px rgba(56, 240, 255, 0.12);
}

/* ============================================================
   AUTONOMOUS OVERLAYS
   ============================================================ */
#layer-autonomous { pointer-events: none; }

.scan-label {
  position: absolute;
  transform: translate(-50%, -130%);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  white-space: nowrap;
  color: var(--ink);
  padding: 5px 10px;
  border-radius: 6px;
  background: rgba(6, 12, 22, 0.72);
  border: 1px solid var(--glass-brd);
  backdrop-filter: blur(6px);
  transition: opacity 0.2s;
}
.scan-label::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 1px;
  height: 22px;
  background: linear-gradient(180deg, currentColor, transparent);
  opacity: 0.6;
}
.scan-label.veh { color: var(--amber); border-color: rgba(255, 190, 80, 0.4); }
.scan-label.ego { color: var(--cyan); border-color: var(--cyan-dim); }
.scan-label.ped { color: var(--green); border-color: rgba(77, 255, 158, 0.4); }

.adas-hud i {
  position: absolute;
  width: 34px; height: 34px;
  border: 1.5px solid var(--cyan-dim);
}
.adas-hud i:nth-child(1) { top: 84px; left: 24px; border-right: none; border-bottom: none; }
.adas-hud i:nth-child(2) { top: 84px; right: 24px; border-left: none; border-bottom: none; }
.adas-hud i:nth-child(3) { bottom: 64px; left: 24px; border-right: none; border-top: none; }
.adas-hud i:nth-child(4) { bottom: 64px; right: 24px; border-left: none; border-top: none; }

.adas-status {
  position: absolute;
  top: 96px;
  right: 40px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.adas-status .chip {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  color: var(--ink-dim);
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(6, 12, 22, 0.72);
  border: 1px solid var(--glass-brd);
}
.adas-status .chip b { color: var(--cyan); font-weight: 500; }
.adas-status .chip i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
  animation: blink 1.8s infinite;
}

.adas-log {
  position: absolute;
  left: 40px;
  bottom: 84px;
  width: 300px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(6, 12, 22, 0.72);
  border: 1px solid var(--glass-brd);
  backdrop-filter: blur(14px);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--ink-dim);
}
.adas-log .log-title {
  font-size: 9px;
  letter-spacing: 0.3em;
  color: var(--ink-faint);
  margin-bottom: 8px;
}
.adas-log div { padding: 3px 0; }
.adas-log .t { color: var(--ink-faint); margin-right: 8px; }
.adas-log .warn { color: var(--amber); }

/* ============================================================
   INTRO VEIL
   ============================================================ */
#intro {
  position: fixed;
  inset: 0;
  z-index: 70;
  overflow: hidden;
  isolation: isolate;
  background: #020608;
  transition:
    opacity 1.05s cubic-bezier(0.65, 0, 0.35, 1),
    visibility 1.05s;
}
#intro.gone { opacity: 0; visibility: hidden; pointer-events: none; }

.intro-film {
  position: absolute;
  inset: -3%;
  z-index: -4;
  width: 106%;
  height: 106%;
  object-fit: cover;
  object-position: 50% 58%;
  opacity: 0.52;
  filter: brightness(0.52) contrast(1.06) saturate(0.58) blur(1.2px);
  transform: scale(1.025);
  animation: introLensBreath 18s ease-in-out infinite alternate;
}

.intro-film-grade {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(0, 6, 10, 0.98) 0%, rgba(0, 8, 12, 0.82) 36%, rgba(1, 7, 10, 0.36) 64%, rgba(1, 5, 8, 0.76) 100%),
    linear-gradient(180deg, rgba(0, 4, 7, 0.84) 0%, rgba(0, 4, 7, 0.08) 35%, rgba(0, 4, 7, 0.16) 62%, rgba(0, 3, 5, 0.96) 100%),
    radial-gradient(ellipse at 58% 45%, transparent 0 18%, rgba(0, 0, 0, 0.5) 82%);
}

.intro-film-vignette {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.5;
  background:
    repeating-linear-gradient(90deg, transparent 0 19.95vw, rgba(148, 213, 223, 0.07) 20vw, transparent 20.05vw),
    linear-gradient(90deg, transparent 49.88%, rgba(154, 233, 243, 0.24) 50%, transparent 50.12%);
  mask-image: linear-gradient(180deg, transparent, #000 16%, #000 84%, transparent);
  pointer-events: none;
}

.intro-top {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px clamp(24px, 3vw, 52px);
}
.intro-back {
  display: flex;
  align-items: center;
  gap: 11px;
  color: rgba(201, 220, 223, 0.64);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  transition: color 0.25s, transform 0.25s;
}
.intro-back:hover { color: var(--ink); transform: translateX(-3px); }
.intro-back svg { width: 13px; height: 13px; }

.intro-transmission {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.24em;
  color: rgba(185, 210, 214, 0.48);
}
.intro-transmission i,
.intro-audio-state i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(98, 216, 238, 0.9);
  animation: signalPulse 2s ease-in-out infinite;
}
.intro-transmission b {
  color: rgba(222, 235, 236, 0.72);
  font-weight: 500;
}

.intro-core {
  position: relative;
  z-index: 1;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.34fr);
  align-items: end;
  gap: 6vw;
  padding:
    clamp(112px, 14vh, 154px)
    clamp(28px, 6vw, 112px)
    clamp(126px, 16vh, 172px);
}

.intro-copy {
  max-width: min(980px, 68vw);
}

.intro-eyebrow {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.42em;
  color: rgba(182, 206, 210, 0.52);
  margin: 0 0 clamp(15px, 2.2vh, 27px) 0.5vw;
}
.intro-eyebrow span {
  color: var(--gold);
}

.intro-title {
  display: flex;
  align-items: baseline;
  gap: 0.04em;
  font-size: clamp(92px, 13.7vw, 236px);
  font-weight: 300;
  letter-spacing: -0.075em;
  line-height: 0.74;
  white-space: nowrap;
  color: #ecf2f1;
  text-shadow: 0 10px 70px rgba(0, 0, 0, 0.68);
}
.intro-id {
  position: relative;
  font-size: 0.28em;
  letter-spacing: 0.03em;
  color: rgba(226, 238, 238, 0.68);
  transform: translateY(-0.32em);
}
.intro-id > span {
  color: var(--cyan);
  text-shadow: 0 0 22px rgba(98, 216, 238, 0.5);
}
.intro-aura {
  background: linear-gradient(105deg, #edf4f3 12%, #b8c8c8 52%, #d6aa69 105%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.intro-statement {
  margin: clamp(24px, 3.4vh, 44px) 0 0 0.5vw;
  font-family: "Michroma", var(--font-display);
  font-size: clamp(17px, 1.55vw, 26px);
  line-height: 1.42;
  letter-spacing: 0.14em;
  color: rgba(226, 236, 236, 0.86);
}
.intro-statement em {
  color: var(--cyan);
  font-style: normal;
  text-shadow: 0 0 28px rgba(98, 216, 238, 0.3);
}

.intro-sub {
  max-width: 520px;
  margin: 18px 0 0 0.5vw;
  font-size: clamp(12px, 0.95vw, 15px);
  font-weight: 300;
  line-height: 1.72;
  color: rgba(183, 203, 206, 0.62);
}

.intro-meta {
  display: flex;
  gap: clamp(24px, 3.2vw, 56px);
  margin: clamp(25px, 4vh, 48px) 0 0 0.5vw;
  flex-wrap: wrap;
}
.intro-meta i {
  display: block;
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 7px;
  letter-spacing: 0.3em;
  color: rgba(137, 172, 178, 0.5);
  margin-bottom: 7px;
}
.intro-meta b {
  display: block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: rgba(215, 229, 230, 0.7);
}

.intro-ignition {
  align-self: end;
  justify-self: end;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  padding-bottom: 1vh;
}

.launch-orbit {
  position: relative;
  width: clamp(210px, 18vw, 300px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.launch-orbit::before,
.launch-orbit::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
}
.launch-orbit::before {
  border: 1px solid rgba(151, 205, 215, 0.22);
  background:
    linear-gradient(var(--cyan), var(--cyan)) 50% 0 / 1px 14px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) 50% 100% / 1px 14px no-repeat,
    linear-gradient(90deg, var(--cyan), var(--cyan)) 0 50% / 14px 1px no-repeat,
    linear-gradient(90deg, var(--cyan), var(--cyan)) 100% 50% / 14px 1px no-repeat;
  box-shadow: inset 0 0 56px rgba(35, 121, 135, 0.06);
  animation: orbitTurn 20s linear infinite;
}
.launch-orbit::after {
  inset: 13%;
  border: 1px dashed rgba(216, 176, 106, 0.28);
  animation: orbitTurn 28s linear infinite reverse;
}
.orbit-index {
  position: absolute;
  top: -4px;
  left: 50%;
  z-index: 2;
  padding: 0 12px;
  transform: translateX(-50%);
  background: rgba(3, 8, 11, 0.88);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.32em;
  color: rgba(153, 192, 198, 0.68);
}

.launch-btn {
  position: relative;
  z-index: 1;
  width: 61%;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(152, 217, 227, 0.42);
  color: rgba(229, 240, 240, 0.92);
  background:
    radial-gradient(circle at 50% 100%, rgba(98, 216, 238, 0.11), transparent 46%),
    rgba(3, 10, 14, 0.68);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    inset 0 0 0 7px rgba(116, 188, 200, 0.035),
    0 0 45px rgba(0, 0, 0, 0.35);
  transition: border-color 0.35s, background 0.35s, box-shadow 0.35s, transform 0.35s;
}
.launch-btn .launch-kicker {
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.34em;
  color: var(--gold);
}
.launch-btn strong {
  font-family: "Michroma", var(--font-display);
  font-size: clamp(9px, 0.75vw, 12px);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0.12em;
}
.launch-btn svg {
  width: 17px;
  height: 17px;
  color: var(--cyan);
  transition: transform 0.35s;
}
.launch-btn:hover {
  transform: scale(1.045);
  border-color: rgba(126, 232, 245, 0.86);
  background:
    radial-gradient(circle at 50% 100%, rgba(98, 216, 238, 0.25), transparent 62%),
    rgba(3, 12, 16, 0.8);
  box-shadow:
    inset 0 0 0 7px rgba(116, 217, 230, 0.05),
    0 0 70px rgba(74, 196, 216, 0.2);
}
.launch-btn:hover svg { transform: translateX(5px); }
.launch-btn:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 7px;
}

.intro-audio-state {
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.2em;
  color: rgba(151, 181, 185, 0.46);
}
.intro-audio-state span {
  color: rgba(200, 218, 220, 0.68);
}

.intro-footer {
  position: absolute;
  z-index: 2;
  left: clamp(28px, 3vw, 52px);
  right: clamp(28px, 3vw, 52px);
  bottom: 25px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-top: 17px;
  border-top: 1px solid rgba(137, 180, 187, 0.16);
}
.intro-modes {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.22em;
  color: rgba(143, 173, 178, 0.44);
}
.intro-modes span.active { color: var(--cyan); }
.intro-modes i {
  width: 26px;
  height: 1px;
  background: rgba(143, 173, 178, 0.2);
}

.intro-foot {
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.22em;
  color: rgba(143, 173, 178, 0.38);
}

@keyframes introLensBreath {
  to { transform: scale(1.04); }
}
@keyframes orbitTurn {
  to { transform: rotate(360deg); }
}
@keyframes signalPulse {
  50% { opacity: 0.28; box-shadow: 0 0 4px rgba(98, 216, 238, 0.5); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hud-top { padding: 14px 16px; }
  .hud-nav { order: 3; }
  .nav-btn { padding: 7px 12px; font-size: 10px; }
  .hud-word { display: none; }
  .lens-rail { left: 14px; }
  .paint-rail { right: 14px; }
  .console { padding: 84px 16px 76px; }
  .console-grid { grid-template-columns: 1fr; grid-template-rows: repeat(4, minmax(150px, 1fr)); overflow-y: auto; }
  .adas-log { left: 16px; bottom: 72px; width: 240px; }
  .adas-status { right: 16px; }
  #view-name { display: none; }

  .intro-core {
    grid-template-columns: minmax(0, 1fr) 210px;
    gap: 20px;
    padding-inline: 30px;
  }
  .intro-copy { max-width: none; }
  .intro-title { font-size: clamp(78px, 15.5vw, 128px); }
  .intro-meta div:nth-child(2) { display: none; }
  .launch-orbit { width: 200px; }
  .intro-foot { display: none; }
}

@media (max-width: 680px) {
  .intro-transmission span,
  .intro-transmission i,
  .intro-footer {
    display: none;
  }
  .intro-top { padding: 20px; }
  .intro-core {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-end;
    gap: 28px;
    padding: 88px 20px 28px;
  }
  .intro-copy { max-width: 100%; }
  .intro-title {
    font-size: clamp(70px, 25vw, 126px);
    line-height: 0.8;
  }
  .intro-statement {
    margin-top: 22px;
    font-size: 14px;
  }
  .intro-sub {
    max-width: 90%;
    font-size: 11px;
    line-height: 1.6;
  }
  .intro-meta { display: none; }
  .intro-ignition {
    align-self: flex-end;
    flex-direction: row;
    gap: 0;
  }
  .launch-orbit { width: 164px; }
  .launch-btn strong { font-size: 8px; }
  .intro-audio-state { display: none; }
  .intro-film {
    object-position: 59% 50%;
    opacity: 0.46;
    filter: brightness(0.46) contrast(1.08) saturate(0.54) blur(1.2px);
  }
  .intro-film-grade {
    background:
      linear-gradient(180deg, rgba(0, 5, 8, 0.46), rgba(0, 5, 8, 0.12) 30%, rgba(0, 4, 7, 0.82) 80%),
      linear-gradient(90deg, rgba(0, 5, 8, 0.8), transparent);
  }
}

@media (prefers-reduced-motion: reduce) {
  .intro-film { animation: none; }
  .launch-orbit::before,
  .launch-orbit::after,
  .intro-transmission i,
  .intro-audio-state i { animation: none; }
}

/* ============================================================
   AUTONOMOUS — perception HUD chips (layer-autonomous)
   ============================================================ */
.autonomous {
  position: absolute;
  inset: 0;
  pointer-events: none;
  font-family: var(--font-mono);
}

.auto-top {
  position: absolute;
  top: 84px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.auto-level {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 18px;
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--cyan);
  background: var(--glass);
  border: 1px solid var(--glass-brd);
  border-radius: 99px;
  backdrop-filter: blur(14px);
}

.auto-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  animation: autoPulse 1.6s ease-in-out infinite;
}
@keyframes autoPulse { 50% { opacity: 0.35; } }

.auto-percept {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--ink-faint);
}
.auto-percept b { color: var(--ink-dim); font-weight: 500; }

.auto-side {
  position: absolute;
  left: 34px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auto-tag {
  position: relative;
  padding: 8px 14px 8px 20px;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink-dim);
  background: var(--glass);
  border: 1px solid var(--glass-brd);
  border-radius: 8px;
  backdrop-filter: blur(12px);
  white-space: nowrap;
}
.auto-tag::before {
  content: "";
  position: absolute;
  left: 8px; top: 50%;
  width: 6px; height: 6px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: var(--c, var(--cyan));
  box-shadow: 0 0 8px var(--c, var(--cyan));
}

.auto-foot {
  position: absolute;
  left: 50%;
  bottom: 92px;
  transform: translateX(-50%);
  display: flex;
  gap: 34px;
  padding: 12px 26px;
  background: var(--glass);
  border: 1px solid var(--glass-brd);
  border-radius: 14px;
  backdrop-filter: blur(14px);
}
.auto-foot span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.auto-foot i {
  font-style: normal;
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--ink-faint);
}
.auto-foot b {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.auto-foot b.ok { color: var(--green); }
.auto-foot b u {
  text-decoration: none;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
  margin-left: 3px;
  vertical-align: 3px;
}
.auto-tag u {
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #ffb44d;
  margin-left: 6px;
}

@media (max-width: 720px) {
  .auto-side { display: none; }
  .auto-foot { gap: 18px; padding: 10px 16px; bottom: 110px; }
}

/* stacking fix: HUD chrome must stay above mode layers */
.hud-top, .hud-bottom, #view-name { z-index: 5; }
.layer { z-index: 1; }

/* ============================================================
   2026 HMI DIRECTION — quiet luxury, situational light
   ============================================================ */

.hud-top {
  padding: 17px 30px;
  background: linear-gradient(180deg, rgba(1, 3, 6, 0.9), rgba(1, 3, 6, 0.22) 72%, transparent);
}

.hud-word {
  font-family: "Michroma", sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.14em;
}

.hud-mark {
  width: 24px;
  height: 24px;
  opacity: 0.72;
}

.hud-nav {
  gap: 0;
  padding: 3px;
  border-color: rgba(131, 183, 193, 0.13);
  background: rgba(2, 7, 11, 0.68);
  box-shadow: 0 14px 60px rgba(0, 0, 0, 0.26);
}

.nav-btn {
  position: relative;
  padding: 8px 21px;
  border-radius: 999px;
  font-size: 10.5px;
  color: rgba(158, 183, 188, 0.67);
}

.nav-btn.active {
  color: #eafafb;
  background: rgba(98, 216, 238, 0.1);
  box-shadow: inset 0 0 0 1px rgba(98, 216, 238, 0.22), 0 8px 22px rgba(24, 120, 135, 0.12);
}

.hud-icon {
  background: rgba(2, 7, 11, 0.64);
  border-color: rgba(131, 183, 193, 0.13);
}

.lens-btn,
.paint-rail,
.scene-rail {
  background: rgba(3, 8, 12, 0.72);
  border-color: rgba(139, 191, 200, 0.13);
  box-shadow: 0 18px 58px rgba(0, 0, 0, 0.2);
}

.lens-btn {
  border-radius: 9px;
}

.scene-btn.active {
  background: rgba(98, 216, 238, 0.07);
}

/* ---------- Horizon Cluster ---------- */

#layer-cluster {
  background: #010306;
}

.horizon-cluster {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #010306;
}

.horizon-cluster::before,
.horizon-cluster::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 2;
}

.horizon-cluster::before {
  inset: 0;
  background:
    linear-gradient(90deg, rgba(1, 3, 6, 0.92), transparent 28%, transparent 72%, rgba(1, 3, 6, 0.92)),
    linear-gradient(180deg, rgba(1, 3, 6, 0.68), transparent 26%, transparent 72%, rgba(1, 3, 6, 0.86));
}

.horizon-cluster::after {
  left: 50%;
  top: 40%;
  width: min(48vw, 720px);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(98, 216, 238, 0.18), transparent);
  box-shadow: 0 0 38px rgba(98, 216, 238, 0.13);
}

.cluster-canvas {
  position: relative;
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(1, 3, 6, 0.82), rgba(1, 3, 6, 0.16) 35%, rgba(1, 3, 6, 0.16) 65%, rgba(1, 3, 6, 0.82)),
    linear-gradient(180deg, rgba(1, 3, 6, 0.46), rgba(1, 3, 6, 0.08) 38%, rgba(1, 3, 6, 0.56)),
    url("assets/art/cluster-night-tunnel.jpg") center 58% / cover no-repeat;
}

.cluster-heading {
  position: absolute;
  top: 91px;
  left: 50px;
  right: 50px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 13px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: rgba(132, 161, 168, 0.52);
}

.cluster-heading-rule {
  width: 36px;
  height: 1px;
  background: rgba(117, 226, 189, 0.26);
}

.cluster-pilot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
}

.cluster-pilot-status {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px rgba(117, 226, 189, 0.7);
}

.cluster-pilot .ph-icon {
  width: 13px;
  height: 13px;
}

.cluster-assistance {
  position: absolute;
  top: 94px;
  left: 50%;
  z-index: 4;
  display: flex;
  gap: 58px;
  transform: translateX(-50%);
  color: rgba(174, 200, 206, 0.58);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
}

.cluster-assistance span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.cluster-assistance span:last-child {
  color: var(--cyan);
}

.cluster-assistance .ph-icon {
  width: 14px;
  height: 14px;
}

.horizon-cluster .cluster-modes {
  bottom: 46px;
  z-index: 4;
  gap: 0;
  padding: 0;
  border-radius: 0;
  border: 0;
  background: transparent;
  backdrop-filter: none;
}

.horizon-cluster .cluster-modes::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -16px;
  width: 250px;
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(132, 180, 188, 0.16), transparent);
}

.horizon-cluster .cluster-modes button {
  min-width: 104px;
  padding: 8px 18px;
  border-radius: 0;
  font-size: 9.5px;
  color: rgba(130, 157, 163, 0.48);
  background: transparent;
  box-shadow: none;
}

.horizon-cluster .cluster-modes button.active {
  color: var(--c);
  background: transparent;
  box-shadow: none;
  text-shadow: 0 0 16px color-mix(in srgb, var(--c) 60%, transparent);
}

.horizon-cluster .cluster-modes button.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 26px;
  height: 1px;
  transform: translateX(-50%);
  background: var(--c);
  box-shadow: 0 0 9px var(--c);
}

/* ---------- Spatial Console ---------- */

#layer-console {
  background:
    radial-gradient(ellipse at 30% 42%, rgba(27, 76, 84, 0.16), transparent 46%),
    linear-gradient(145deg, #03070a 0%, #010306 62%);
}

#layer-console::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.24;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(124, 178, 188, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 178, 188, 0.035) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(circle at 42% 48%, #000, transparent 74%);
}

.aura-console {
  position: absolute;
  inset: 0;
  display: flex;
  z-index: 4;
  flex-direction: column;
  width: min(1420px, 100%);
  margin: 0 auto;
  padding: 91px 40px 74px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.aura-console.is-live {
  opacity: 1;
  transform: none;
}

.aura-console .console-top {
  min-height: 46px;
  margin-bottom: 13px;
  padding: 0 5px;
  align-items: center;
}

.console-time {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.aura-console .console-clock {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 300;
  letter-spacing: -0.035em;
}

.aura-console .console-date {
  margin: 0;
  font-size: 9px;
  color: rgba(132, 160, 166, 0.5);
}

.console-journey {
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: rgba(150, 177, 182, 0.54);
}

.journey-battery {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.journey-battery .ph-icon {
  width: 15px;
  height: 15px;
  color: var(--green);
}

.journey-state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
}

.journey-state i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

.aura-console-grid {
  min-height: 0;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(310px, 0.72fr);
  gap: 14px;
}

.aura-map,
.aura-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(9, 19, 24, 0.78), rgba(2, 6, 9, 0.84));
  border: 1px solid rgba(133, 186, 195, 0.13);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.018), 0 30px 90px rgba(0, 0, 0, 0.18);
}

.aura-map {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  padding: 25px 28px 20px;
  clip-path: polygon(0 15px, 15px 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%);
}

.aura-map::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 55%, rgba(98, 216, 238, 0.07), transparent 34%),
    linear-gradient(105deg, transparent 65%, rgba(117, 226, 189, 0.025));
  pointer-events: none;
}

.map-heading {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.aura-kicker,
.card-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.26em;
  color: rgba(124, 158, 165, 0.52);
}

.aura-kicker .ph-icon,
.card-label .ph-icon {
  width: 14px;
  height: 14px;
  color: var(--cyan);
}

.map-heading h2 {
  margin-top: 8px;
  font-size: clamp(26px, 2.5vw, 42px);
  font-weight: 300;
  letter-spacing: -0.035em;
}

.map-heading p {
  margin-top: 4px;
  font-size: 11px;
  color: rgba(146, 173, 179, 0.48);
}

.map-turn {
  display: flex;
  align-items: center;
  gap: 13px;
}

.map-turn svg {
  width: 42px;
  height: 42px;
  fill: none;
  stroke: var(--cyan);
  stroke-width: 2;
  filter: drop-shadow(0 0 8px rgba(98, 216, 238, 0.35));
}

.map-turn span {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(140, 170, 176, 0.52);
}

.map-turn b {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 300;
  color: var(--ink);
}

.map-field {
  position: relative;
  min-height: 0;
}

.map-field > svg {
  width: 100%;
  height: 100%;
  min-height: 270px;
  overflow: visible;
}

.map-contours {
  fill: none;
  stroke: rgba(112, 165, 174, 0.09);
  stroke-width: 1;
}

.map-roads {
  fill: none;
  stroke: rgba(133, 176, 184, 0.08);
  stroke-width: 10;
}

.map-buildings {
  fill: rgba(125, 172, 180, 0.055);
  stroke: rgba(125, 172, 180, 0.08);
}

.aura-map .cc-road {
  stroke: rgba(154, 198, 205, 0.16);
  stroke-width: 10;
}

.aura-map .cc-route {
  stroke: url(#routeGlow);
  stroke-width: 4;
  stroke-dasharray: 9 12;
  filter: drop-shadow(0 0 7px rgba(98, 216, 238, 0.58));
}

.route-destination {
  fill: rgba(233, 109, 123, 0.08);
  stroke: rgba(233, 109, 123, 0.3);
  animation: destinationPulse 2.5s ease-in-out infinite;
}

.route-destination-core {
  fill: var(--red);
  filter: drop-shadow(0 0 6px var(--red));
}

@keyframes destinationPulse {
  50% { transform: scale(1.25); transform-origin: 616px 66px; opacity: 0.35; }
}

.aura-map .cc-dot {
  fill: #eefdfd;
  stroke-width: 5;
}

.map-compass,
.map-scale {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.2em;
  color: rgba(127, 160, 166, 0.42);
}

.map-compass {
  right: 8px;
  top: 20px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(126, 173, 181, 0.1);
  border-radius: 50%;
}

.map-scale {
  right: 8px;
  bottom: 8px;
}

.map-footer {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  padding-top: 15px;
  border-top: 1px solid rgba(127, 174, 182, 0.1);
}

.map-footer > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-left: 16px;
  border-left: 1px solid rgba(127, 174, 182, 0.08);
}

.map-footer > div:first-child {
  padding-left: 0;
  border-left: 0;
}

.map-footer span {
  font-size: 20px;
  font-weight: 300;
}

.map-footer small {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.18em;
  color: rgba(124, 157, 164, 0.47);
}

.aura-rail {
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(260px, 1.4fr) minmax(140px, 0.72fr) minmax(105px, 0.55fr);
  gap: 12px;
}

.aura-card {
  padding: 17px 18px;
  clip-path: polygon(0 10px, 10px 0, 100% 0, 100% 100%, 0 100%);
}

.aura-media {
  display: grid;
  grid-template-columns: 112px 1fr;
  grid-template-rows: auto auto auto 1fr auto auto auto;
  column-gap: 16px;
}

.aura-media .card-label {
  grid-column: 1 / -1;
}

.aura-media .cc-live {
  display: inline-block;
  margin-left: 5px;
  width: 4px;
  height: 4px;
  vertical-align: 2px;
}

.aura-media.playing .cc-live {
  background: var(--green);
  box-shadow: 0 0 7px var(--green);
}

.media-art-wrap {
  position: relative;
  grid-row: 2 / span 5;
  width: 112px;
  height: 112px;
  margin-top: 14px;
}

.aura-media .cc-art {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  border-radius: 2px;
  filter: saturate(0.68) contrast(1.08);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.42);
}

.media-vinyl {
  position: absolute;
  top: 9px;
  right: -34px;
  z-index: 1;
  width: 94px;
  height: 94px;
  border-radius: 50%;
  border: 1px solid rgba(149, 188, 194, 0.11);
  background:
    radial-gradient(circle, #273136 0 5%, #050708 6% 17%, #171d20 18% 19%, #040506 20% 100%);
}

.aura-media .cc-track {
  margin-top: 17px;
  font-size: 17px;
  font-weight: 500;
}

.aura-media .cc-artist {
  margin: 3px 0 0;
  font-size: 8.5px;
}

.aura-media .cc-track,
.aura-media .cc-artist,
.aura-media .cc-eq {
  position: relative;
  z-index: 3;
}

.aura-media .cc-eq {
  align-self: end;
  height: 31px;
  margin: 10px 0 0;
  gap: 3px;
}

.aura-media .cc-eq span {
  border-radius: 0;
  background: linear-gradient(180deg, var(--cyan), rgba(98, 216, 238, 0.1));
}

.aura-media .cc-progress,
.aura-media .cc-times,
.aura-media .cc-controls {
  grid-column: 1 / -1;
}

.aura-media .cc-progress {
  height: 2px;
  margin: 13px 0 9px;
}

.aura-media .cc-times {
  margin: 0 0 10px;
  font-size: 8.5px;
}

.aura-media .cc-controls {
  justify-content: flex-end;
  align-items: center;
}

.aura-media .cc-controls button {
  width: 34px;
  height: 34px;
  border-color: rgba(130, 180, 189, 0.13);
  font-size: 12px;
}

.aura-media .cc-controls button svg {
  width: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.aura-media .cc-controls button .ph-icon {
  width: 15px;
  height: 15px;
}

.aura-media .cc-controls [data-play] {
  width: 42px;
  height: 42px;
  color: #041012;
  background: rgba(98, 216, 238, 0.92);
  box-shadow: 0 0 24px rgba(98, 216, 238, 0.2);
}

.aura-comfort {
  display: flex;
  flex-direction: column;
}

.comfort-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 6px 8px 0;
}

.comfort-main > div {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.comfort-main b {
  font-size: 32px;
  font-weight: 300;
}

.comfort-main > div span {
  margin-top: 1px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.14em;
  color: rgba(126, 159, 166, 0.48);
}

.comfort-main button {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(126, 177, 186, 0.13);
  border-radius: 50%;
  color: var(--cyan);
}

.aura-comfort .cc-fan {
  margin: 5px 0 7px;
}

.aura-comfort .cc-fan span {
  height: 3px;
  border-radius: 0;
}

.comfort-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  color: rgba(129, 161, 168, 0.48);
}

.aura-vehicle {
  display: grid;
  grid-template-columns: 1fr;
}

.vehicle-range {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.vehicle-range > div {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.vehicle-range b {
  font-size: 26px;
  font-weight: 300;
}

.vehicle-range span,
.vehicle-health {
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.15em;
  color: rgba(127, 160, 166, 0.48);
}

.vehicle-range svg {
  width: 82px;
  fill: none;
  stroke: var(--green);
  stroke-width: 1.2;
  filter: drop-shadow(0 0 6px rgba(117, 226, 189, 0.25));
}

.vehicle-health {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.vehicle-health span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--green);
}

.vehicle-health i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 7px currentColor;
}

.vehicle-health b {
  font-weight: 500;
  color: var(--ink-dim);
}

.aura-console .console-dock {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  margin: 0;
  padding: 4px;
  border: 1px solid rgba(130, 180, 189, 0.11);
  border-radius: 999px;
  background: rgba(2, 7, 10, 0.72);
  backdrop-filter: blur(20px);
}

.aura-console .tg {
  padding: 8px 17px;
  border: 0;
  background: transparent;
  box-shadow: none;
  font-size: 8.5px;
}

.aura-console .tg .ph-icon {
  width: 14px;
  height: 14px;
}

.aura-console .tg.on {
  color: var(--cyan);
  border: 0;
  background: rgba(98, 216, 238, 0.06);
  box-shadow: none;
}

/* ---------- Autonomous Light Corridor ---------- */

body[data-view="autonomous"] #view-name {
  display: none;
}

body[data-view="cluster"] #view-name,
body[data-view="console"] #view-name {
  display: none;
}

.autonomous {
  color: var(--ink);
}

.auto-frame {
  position: absolute;
  inset: 82px 24px 58px;
  opacity: 0.48;
}

.auto-frame i {
  position: absolute;
  width: 44px;
  height: 44px;
  border-color: rgba(98, 216, 238, 0.24);
  border-style: solid;
}

.auto-frame i:nth-child(1) { left: 0; top: 0; border-width: 1px 0 0 1px; }
.auto-frame i:nth-child(2) { right: 0; top: 0; border-width: 1px 1px 0 0; }
.auto-frame i:nth-child(3) { left: 0; bottom: 0; border-width: 0 0 1px 1px; }
.auto-frame i:nth-child(4) { right: 0; bottom: 0; border-width: 0 1px 1px 0; }

.autonomous .auto-top {
  top: 92px;
  left: 48px;
  transform: none;
  align-items: flex-start;
  gap: 7px;
  text-align: left;
}

.autonomous .auto-level {
  gap: 8px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  font-size: 11px;
  color: #dff9fa;
}

.autonomous .auto-percept {
  font-size: 8.5px;
  color: rgba(133, 165, 172, 0.48);
}

.autonomous .auto-percept b {
  color: var(--green);
}

.auto-intent {
  position: absolute;
  top: 99px;
  left: 50%;
  display: flex;
  align-items: baseline;
  gap: 13px;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.18em;
  color: rgba(129, 162, 168, 0.48);
}

.auto-intent b {
  font-size: 13px;
  font-weight: 500;
  color: var(--cyan);
  text-shadow: 0 0 16px rgba(98, 216, 238, 0.36);
}

.auto-intent small {
  font-size: 8px;
  color: var(--green);
}

.autonomous .auto-side {
  left: 47px;
  top: 52%;
  gap: 6px;
}

.auto-side-label {
  margin-bottom: 6px;
  font-size: 8px;
  letter-spacing: 0.24em;
  color: rgba(129, 162, 168, 0.4);
}

.autonomous .auto-tag {
  min-width: 210px;
  padding: 7px 12px 7px 19px;
  border: 0;
  border-left: 1px solid color-mix(in srgb, var(--c) 42%, transparent);
  border-radius: 0;
  background: linear-gradient(90deg, rgba(3, 9, 13, 0.78), transparent);
  backdrop-filter: none;
  font-size: 9px;
  color: rgba(193, 214, 218, 0.64);
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 50%, calc(100% - 9px) 100%, 0 100%);
}

.autonomous .auto-tag::before {
  left: 8px;
  width: 4px;
  height: 4px;
}

.auto-sensors {
  position: absolute;
  top: 50%;
  right: 47px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 22px;
  transform: translateY(-50%);
}

.auto-sensors span {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.auto-sensors i {
  font-style: normal;
  font-size: 7px;
  letter-spacing: 0.2em;
  color: rgba(124, 156, 163, 0.4);
}

.auto-sensors b {
  font-size: 18px;
  font-weight: 400;
  color: rgba(215, 234, 237, 0.72);
}

.autonomous .auto-foot {
  bottom: 73px;
  gap: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: rgba(2, 7, 10, 0.58);
  backdrop-filter: blur(18px);
  clip-path: polygon(18px 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 18px 100%, 0 50%);
}

.autonomous .auto-foot span {
  min-width: 138px;
  padding: 11px 21px;
  border-left: 1px solid rgba(132, 180, 188, 0.1);
}

.autonomous .auto-foot span:first-child {
  border-left: 0;
}

.autonomous .auto-foot i {
  font-size: 7px;
}

.autonomous .auto-foot b {
  font-size: 15px;
  font-weight: 400;
}

.autonomous .auto-foot .auto-speed b {
  color: var(--cyan);
}

.autonomous .auto-foot .auto-world-flow b {
  color: var(--cyan);
  text-shadow: 0 0 18px rgba(98, 216, 238, 0.24);
}

.autonomous .auto-foot .auto-world-flow b::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 1px;
  margin: 0 8px 4px 0;
  background: linear-gradient(90deg, transparent, var(--cyan));
  box-shadow: 7px 0 8px rgba(98, 216, 238, 0.45);
}

@media (max-width: 1100px) {
  .aura-console {
    padding-inline: 22px;
  }

  .aura-console-grid {
    grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.72fr);
  }

  .aura-media {
    grid-template-columns: 88px 1fr;
  }

  .media-art-wrap {
    width: 88px;
    height: 88px;
  }

  .auto-sensors {
    display: none;
  }
}

@media (max-width: 780px) {
  .nav-btn {
    padding-inline: 10px;
  }

  .cluster-heading {
    left: 18px;
    right: 18px;
  }

  .aura-console {
    overflow-y: auto;
    padding: 82px 14px 118px;
  }

  .aura-console-grid {
    display: block;
  }

  .aura-map {
    min-height: 620px;
  }

  .aura-rail {
    margin-top: 12px;
    grid-template-rows: auto;
  }

  .aura-console .console-dock {
    position: fixed;
    bottom: 60px;
  }

  .auto-intent,
  .autonomous .auto-side {
    display: none;
  }

  .autonomous .auto-foot span {
    min-width: 92px;
    padding-inline: 10px;
  }
}
