/* ---------- scene (SVG) ---------- */
.scene { width: 100%; height: auto; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); }
.scene .sk1 { stop-color: oklch(0.93 0.03 230); } .scene .sk2 { stop-color: oklch(0.98 0.01 230); }
.scene .as1 { stop-color: oklch(0.46 0.008 250); } .scene .as2 { stop-color: oklch(0.36 0.008 250); }
.scene .roof { fill: oklch(0.42 0.04 40); }
.scene .wallr { fill: oklch(0.88 0.015 80); }
.scene .win { fill: oklch(0.62 0.04 230); }
.scene .door { fill: oklch(0.5 0.05 40); }
.scene .sign { font: 800 17px var(--f-ui); letter-spacing: 0.12em; fill: oklch(0.96 0.01 80); }
.scene .mframe { stroke: oklch(0.7 0.02 80); stroke-width: 1; }
.scene .curb { stroke: oklch(0.7 0.01 80); stroke-width: 3; }
.scene .plines path { stroke: oklch(0.97 0 0); stroke-width: 4; stroke-linecap: round; }
.scene .car-shadow { fill: oklch(0 0 0 / 0.35); }
.scene .car-body { fill: oklch(0.3 0.02 250); }
.scene .car-glass { fill: oklch(0.55 0.03 230); }
.scene .car-light { fill: oklch(0.6 0.2 27); }
.scene .car-plate { fill: oklch(0.96 0 0); }
.scene .car-plate-t { font: 700 9px var(--f-mono); fill: oklch(0.2 0 0); }
:root[data-theme="dark"] .scene .sk1 { stop-color: oklch(0.3 0.03 250); } :root[data-theme="dark"] .scene .sk2 { stop-color: oklch(0.24 0.02 250); }
:root[data-theme="dark"] .scene .wallr { fill: oklch(0.7 0.015 80); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .scene .sk1 { stop-color: oklch(0.3 0.03 250); }
  :root:not([data-theme="light"]) .scene .sk2 { stop-color: oklch(0.24 0.02 250); }
  :root:not([data-theme="light"]) .scene .wallr { fill: oklch(0.7 0.015 80); }
}
.scene .ov { opacity: 0; transition: opacity 360ms var(--ease); pointer-events: none; }
.scene[data-mode="reality"] .ov-reality, .scene[data-mode="camera"] .ov-camera, .scene[data-mode="map"] .ov-map,
.scene[data-mode="lidar"] .ov-lidar, .scene[data-mode="radar"] .ov-radar { opacity: 1; }
.scene .lbl rect { fill: oklch(0.18 0.02 110 / 0.88); }
.scene .lbl text { font: 700 13px var(--f-mono); fill: #fff; letter-spacing: 0.02em; }
.scene .hit { fill: none; stroke: oklch(0.92 0.17 103); stroke-width: 4; stroke-dasharray: 10 6; }
.scene .cam-path { fill: oklch(0.75 0.17 150 / 0.32); stroke: oklch(0.65 0.17 150); stroke-width: 2; }
.scene .cam-box { fill: none; stroke: oklch(0.7 0.17 150); stroke-width: 3; }
.scene .map-road { stroke: oklch(0.6 0.17 255); stroke-width: 6; stroke-dasharray: 18 10; }
.scene .map-edge { stroke: oklch(0.6 0.17 255 / 0.6); stroke-width: 2; }
.scene .lidar-pts circle { fill: oklch(0.72 0.19 27); }
.scene[data-mode="lidar"] .lidar-pts circle { animation: blink 1.6s steps(2) infinite; }
.scene[data-mode="lidar"] .lidar-pts circle:nth-child(3n) { animation-delay: 0.4s; }
.scene[data-mode="lidar"] .lidar-pts circle:nth-child(5n) { animation-delay: 0.9s; }
@keyframes blink { 50% { opacity: 0.25; } }
.scene .radar-arc { fill: none; stroke: oklch(0.7 0.15 70); stroke-width: 3; stroke-linecap: round; }
.scene .radar-blip { fill: oklch(0.78 0.16 70); }
.scene[data-mode="radar"] .radar-arc { animation: ping 1.8s var(--ease) infinite; }
.scene[data-mode="radar"] .radar-arc:nth-child(2) { animation-delay: 0.25s; } .scene[data-mode="radar"] .radar-arc:nth-child(3) { animation-delay: 0.5s; }
@keyframes ping { 0% { opacity: 0.15; } 40% { opacity: 1; } 100% { opacity: 0.15; } }
.scene-seg { margin-bottom: 12px; }
.scene-cap { margin-top: 12px; font-size: 0.97rem; color: var(--ink-2); min-height: 3.2em; line-height: 1.5; }
.scene-cap b { color: var(--ink); }

/* ---------- home ---------- */
.hero { max-width: var(--maxw); margin: 0 auto; padding: clamp(28px, 5vw, 64px) var(--gutter) 0; display: grid; gap: clamp(28px, 4vw, 56px); grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); align-items: center; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; } }
.case-cap { font-weight: 750; color: var(--olive); font-size: 0.92rem; margin-bottom: 14px; }
.hero h1 { font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.6rem); line-height: 0.98; letter-spacing: -0.035em; }
.hero h1 span { display: block; }
.hero h1 .h1v { font-family: var(--f-read); font-style: italic; font-weight: 400; font-size: 0.5em; color: var(--ink-3); letter-spacing: 0; margin: 0.12em 0 0.06em; }
.hero h1 .h1a { color: var(--pl); } .hero h1 .h1b { color: var(--df); }
.hero-lede { font-family: var(--f-read); font-size: var(--step-1); line-height: 1.5; color: var(--ink-2); margin: 22px 0 26px; max-width: 34ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-scene { margin: 0; }

.one-minute { margin-top: clamp(48px, 7vw, 96px); }
.om-head { max-width: 72ch; margin-bottom: 26px; }
.om-head h2 { margin-bottom: 12px; }
.versus { display: grid; grid-template-columns: 1fr auto 1fr; gap: 0; align-items: stretch; }
.vs-side { padding: clamp(18px, 2.6vw, 30px); border-radius: var(--r-lg); border: 1px solid; }
.vs-side h3 { font-size: var(--step-1); margin: 14px 0 10px; }
.vs-side .read { font-size: 1rem; margin: 0; }
.vs-pl { background: var(--pl-soft); border-color: var(--pl-line); }
.vs-df { background: var(--df-soft); border-color: var(--df-line); }
.vs-mid { align-self: center; font-family: var(--f-read); font-style: italic; font-size: 1.6rem; color: var(--ink-3); padding: 0 14px; }
@media (max-width: 760px) { .versus { grid-template-columns: 1fr; } .vs-mid { padding: 6px 0; text-align: center; } }

.chapter-rail { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); border-top: 1px solid var(--line); }
.chapter-rail li { border-bottom: 1px solid var(--line); }
.chapter-rail a { display: flex; gap: 14px; align-items: baseline; padding: 14px 6px; text-decoration: none; color: var(--ink); font-weight: 700; }
.chapter-rail a:hover { background: var(--hi-soft); }
.cr-n { font-family: var(--f-mono); font-size: 0.8rem; color: var(--ink-3); min-width: 1.6em; }

.cast { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 10px; }
.cast-item { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 14px; border-radius: var(--r); text-decoration: none; color: var(--ink); border: 1px solid var(--line); background: var(--bg); transition: transform 200ms var(--ease), border-color 200ms; }
.cast-item:hover { transform: translateY(-2px); color: var(--ink); }
.cast-item.pl:hover { border-color: var(--pl-line); } .cast-item.df:hover { border-color: var(--df-line); }
.cast-initials { grid-row: span 2; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 850; font-size: 0.95rem; }
.cast-item.pl .cast-initials { background: var(--pl-soft); color: var(--pl); box-shadow: inset 0 0 0 1.5px var(--pl-line); }
.cast-item.df .cast-initials { background: var(--df-soft); color: var(--df); box-shadow: inset 0 0 0 1.5px var(--df-line); }
.cast-name { font-weight: 800; line-height: 1.2; }
.cast-role { font-size: 0.84rem; color: var(--ink-2); line-height: 1.3; }

.toolbox { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); border-top: 2px solid var(--ink); }
.tool { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; padding: 18px 4px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.tool b { font-size: 1.08rem; } .tool span { color: var(--ink-2); font-size: 0.93rem; grid-column: 1; }
.tool i { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-style: normal; font-size: 1.3rem; color: var(--ink-3); transition: transform 200ms var(--ease); }
.tool:hover { color: var(--ink); } .tool:hover i { transform: translateX(4px); color: var(--olive); }
@media (min-width: 700px) { .tool { padding-right: 24px; } .toolbox .tool:nth-child(odd) { border-right: 1px solid var(--line); } .toolbox .tool:nth-child(even) { padding-left: 24px; } }

.flash { animation: flash 1.6s var(--ease); }
@keyframes flash { 0%, 40% { background: var(--hi-soft); box-shadow: 0 0 0 6px var(--hi-soft); } }
