body.dark { background: #000; color: #f5f5f7; }
body.dark h1, body.dark h2, body.dark h3 { color: #f5f5f7; }
.nav-dark { background: rgba(0, 0, 0, 0.7); }
.nav-dark.scrolled { border-bottom-color: rgba(255, 255, 255, 0.1); }
.nav-dark .brand { color: #f5f5f7; }
.nav-dark .nav-links a { color: rgba(245, 245, 247, 0.7); }
.nav-dark .nav-links a:hover, .nav-dark .nav-links a[aria-current] { color: #fff; }
.btn-light { background: #f5f5f7; color: #000; }
.btn-light:hover { background: #fff; }
.btn-ghost-light { border: 1px solid rgba(255, 255, 255, 0.28); color: #f5f5f7; background: transparent; }
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.08); }
.dark .fine { color: rgba(245, 245, 247, 0.5); }

/* Opening */
.s-open { height: 220vh; padding: 0; position: relative; --p: 0; }
.open-sticky { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; overflow: hidden; padding: 80px 16px 40px; }
.open-title { font-size: clamp(44px, 8vw, 104px); line-height: 1; font-weight: 600; max-width: none; opacity: calc(1 - var(--p) * 1.6); transform: translateY(calc(var(--p) * -60px)) scale(calc(1 - var(--p) * 0.08)); }
.open-sub { margin-top: 28px; font-size: clamp(18px, 2vw, 24px); color: rgba(245, 245, 247, 0.7); max-width: 30ch; opacity: calc(var(--p) * 2.2 - 0.6); transform: translateY(calc((1 - var(--p)) * 30px)); }
.hub { margin-top: 48px; transform: translateY(calc((1 - var(--p)) * 80px)) scale(calc(0.7 + var(--p) * 0.45)); }
.hub-body { position: relative; width: min(66vw, 360px); aspect-ratio: 1.6; border-radius: 28px; background: linear-gradient(160deg, #2a2a2c, #0c0c0d 60%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 40px 80px -20px rgba(0, 0, 0, 0.8); }
.hub-face { position: absolute; inset: 14px; border-radius: 20px; background: linear-gradient(180deg, #161618, #0a0a0b); display: grid; place-items: center; }
.hub-mark { width: 26%; opacity: 0.92; border-radius: 12px; }
.hub-led { position: absolute; bottom: 18px; left: 50%; width: 46px; height: 4px; margin-left: -23px; border-radius: 4px; background: #3ddc97; box-shadow: 0 0 18px 2px rgba(61, 220, 151, 0.7); animation: breathe 3.2s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: 0.45; box-shadow: 0 0 8px 1px rgba(61, 220, 151, 0.4); } }
.hub-glow { position: absolute; inset: -40%; background: radial-gradient(closest-side, rgba(29, 158, 117, calc(0.12 + var(--p) * 0.22)), transparent); pointer-events: none; }
.hub-shadow { width: 70%; height: 22px; margin: 18px auto 0; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, 0.08), transparent); }

/* Story */
.story { height: 420vh; padding: 0; position: relative; }
.story-sticky { position: sticky; top: 0; height: 100vh; display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: clamp(24px, 5vw, 72px); width: min(100% - 32px, var(--wrap)); margin: 0 auto; }
@media (max-width: 860px) { .story-sticky { grid-template-columns: 1fr; grid-template-rows: 55vh auto; align-content: center; gap: 20px; } }
.stage { position: relative; height: min(60vh, 460px); }
.scene { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transform: scale(0.96); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); pointer-events: none; }
.scene.on { opacity: 1; transform: none; }
.steps { position: relative; height: 260px; }
.step { position: absolute; inset: 0; opacity: 0; transform: translateY(24px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.step.on { opacity: 1; transform: none; }
.step h2 { font-size: clamp(36px, 5vw, 60px); }
.step p:not(.kicker) { margin-top: 16px; font-size: 19px; color: rgba(245, 245, 247, 0.7); max-width: 34ch; }

.cam { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: #111; }
.cam img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); filter: saturate(0.9); }
.sbox { position: absolute; border: 2px solid #3ddc97; border-radius: 6px; opacity: 0; transform: scale(1.15); transition: opacity 0.6s var(--ease) 0.25s, transform 0.6s var(--ease) 0.25s; }
.sbox span { position: absolute; top: -24px; left: -2px; padding: 5px 8px; border-radius: 5px; background: #3ddc97; color: #04291c; font: 600 11px/1 "JetBrains Mono", monospace; }
.sb-person { left: 49%; top: 30%; width: 25%; height: 72%; }
.sb-car { left: 84%; top: 24%; width: 18%; height: 38%; border-color: #85b7eb; transition-delay: 0.55s; }
.sb-car span { background: #85b7eb; color: #042c53; }
.scene-see.on .sbox { opacity: 1; transform: none; }

.cards { display: grid; gap: 14px; width: min(100%, 420px); }
.who { padding: 18px 20px; border-radius: 16px; background: #121214; border: 1px solid rgba(255, 255, 255, 0.08); opacity: 0; transform: translateX(-24px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.who b { display: block; font: 600 17px/1.3 "Inter Tight", sans-serif; }
.who span { font-size: 14px; color: rgba(245, 245, 247, 0.6); }
.who-1 { border-left: 3px solid #3ddc97; }
.who-2 { border-left: 3px solid #85b7eb; transition-delay: 0.15s; }
.who-3 { border-left: 3px solid #f0997b; transition-delay: 0.3s; }
.scene-know.on .who { opacity: 1; transform: none; }

.tiles { position: relative; width: 100%; aspect-ratio: 600 / 340; }
.tile { position: absolute; width: 30%; aspect-ratio: 16 / 10; border-radius: 12px; background: linear-gradient(160deg, #1d1d20, #0d0d0f); border: 1px solid rgba(255, 255, 255, 0.1); display: flex; align-items: flex-end; padding: 10px; }
.tile span { font-size: 12px; color: rgba(245, 245, 247, 0.65); }
.t1 { left: 0; bottom: 6%; }
.t2 { left: 35%; top: 4%; }
.t3 { right: 0; bottom: 6%; }
.path { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.path path { fill: none; stroke: rgba(61, 220, 151, 0.55); stroke-width: 3; stroke-dasharray: 8 10; stroke-dashoffset: 400; transition: stroke-dashoffset 2.2s linear; }
.scene-follow.on .path path { stroke-dashoffset: 0; }
.runner-dot { fill: #3ddc97; }
.runner-halo { fill: rgba(61, 220, 151, 0.22); }

.journey { width: min(100%, 460px); padding: 24px; border-radius: 18px; background: #121214; border: 1px solid rgba(255, 255, 255, 0.08); }
.j-title { font-size: 14px; color: rgba(245, 245, 247, 0.6); }
.j-track { display: flex; gap: 4px; height: 12px; margin-top: 16px; }
.seg { display: block; height: 100%; border-radius: 4px; transform: scaleX(0); transform-origin: left; transition: transform 0.8s var(--ease); }
.sg1 { flex: 14; background: #3ddc97; }
.sg2 { flex: 9; background: #85b7eb; transition-delay: 0.5s; }
.sg3 { flex: 21; background: #afa9ec; transition-delay: 1s; }
.scene-remember.on .seg { transform: none; }
.j-labels { display: flex; justify-content: space-between; margin-top: 10px; font: 500 12px/1 "JetBrains Mono", monospace; color: rgba(245, 245, 247, 0.55); }
.j-play { margin-top: 20px; font-weight: 600; color: #3ddc97; }

/* Numbers */
.numbers { border-top: 1px solid rgba(255, 255, 255, 0.08); border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.num-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
@media (max-width: 760px) { .num-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 16px; } }
.num b { display: block; font: 600 clamp(48px, 7vw, 88px)/1 "Inter Tight", sans-serif; letter-spacing: -0.04em; background: linear-gradient(180deg, #fff, #8e8e93); -webkit-background-clip: text; background-clip: text; color: transparent; }
.num span { display: block; margin-top: 12px; color: rgba(245, 245, 247, 0.6); font-size: 15px; }

/* Deter */
.deter-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
@media (max-width: 860px) { .deter-grid { grid-template-columns: 1fr; } }
.deter-copy p:not(.kicker) { margin-top: 20px; color: rgba(245, 245, 247, 0.7); font-size: 18px; }
.deter-visual { position: relative; height: 360px; border-radius: 22px; background: #0b0b0d; border: 1px solid rgba(255, 255, 255, 0.08); overflow: hidden; }
.cam-dot { position: absolute; top: 34px; left: 50%; width: 46px; height: 22px; margin-left: -23px; border-radius: 8px; background: #2a2a2c; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15); }
.beam { position: absolute; top: 50px; left: 50%; width: 120%; height: 420px; margin-left: -60%; background: conic-gradient(from 160deg at 50% 0, transparent, rgba(255, 244, 214, 0.35) 20deg, transparent 40deg); opacity: 0; transition: opacity 1.2s var(--ease) 0.3s; }
.deter-visual.in .beam { opacity: 1; animation: flicker 6s ease-in-out infinite 1.5s; }
@keyframes flicker { 50% { opacity: 0.75; } }
.wave { position: absolute; top: 38px; left: 50%; width: 30px; height: 30px; margin-left: -15px; border-radius: 50%; border: 2px solid rgba(61, 220, 151, 0.6); opacity: 0; }
.deter-visual.in .wave { animation: ring 2.4s ease-out infinite; }
.deter-visual.in .w2 { animation-delay: 0.8s; }
.deter-visual.in .w3 { animation-delay: 1.6s; }
@keyframes ring { 0% { transform: scale(1); opacity: 0.8; } 100% { transform: scale(7); opacity: 0; } }
.say { position: absolute; left: 20px; right: 20px; bottom: 22px; text-align: center; font-size: 15px; color: rgba(245, 245, 247, 0.85); opacity: 0; transform: translateY(10px); transition: opacity 0.8s var(--ease) 1s, transform 0.8s var(--ease) 1s; }
.deter-visual.in .say { opacity: 1; transform: none; }

/* Specs */
.spec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 44px; }
@media (max-width: 960px) { .spec-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .spec-grid { grid-template-columns: 1fr; } }
.spec { padding: 26px; border-radius: 18px; background: #0d0d0f; border: 1px solid rgba(255, 255, 255, 0.08); }
.spec ul { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 12px; font-size: 15px; color: rgba(245, 245, 247, 0.72); line-height: 1.45; }
.spec li { padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.07); }

.s-cta { text-align: center; }
.s-cta h2 { margin: 0 auto; max-width: none; font-size: clamp(40px, 6vw, 72px); }
.s-cta p { margin-top: 16px; font-size: 19px; color: rgba(245, 245, 247, 0.7); }
.s-cta .cta-row { justify-content: center; }

.footer-dark { border-top-color: rgba(255, 255, 255, 0.08); }
.footer-dark .brand, .footer-dark nav a { color: rgba(245, 245, 247, 0.85); }
.footer-dark .foot-tag, .footer-dark .foot-meta { color: rgba(245, 245, 247, 0.5); }

@media (prefers-reduced-motion: reduce) {
  .s-open, .story { height: auto; }
  .open-sticky, .story-sticky { position: static; height: auto; padding: 96px 16px; }
  .open-title, .open-sub, .hub { opacity: 1 !important; transform: none !important; }
  .scene, .step { position: static; opacity: 1; transform: none; margin-bottom: 32px; }
  .stage, .steps { height: auto; }
  .sbox, .who, .seg { opacity: 1; transform: none; }
}

.who-face { display: flex; align-items: center; gap: 14px; }
.face { flex: none; width: 48px; height: 48px; border-radius: 50%; border: 2px solid #3ddc97; background: url(assets/driveway.jpg) no-repeat; background-size: 720px auto; background-position: -450px -166px; }
