:root {
  --bg: #07060b;
  --bg2: #0e0c16;
  --text: #f5f5f7;
  --muted: #a1a1aa;
  --line: rgba(255, 255, 255, 0.09);
  --card: rgba(14, 13, 21, 0.86);
  --accent: #9fcbef;
  --accent-rgb: 120, 170, 215;
  --radius: 22px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(1200px 800px at 50% -10%, #131a27 0%, var(--bg) 60%) fixed, var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-content: center; justify-items: center; gap: 18px;
  background: var(--bg);
  transition: opacity .8s ease, visibility .8s;
}
.loader.done { opacity: 0; visibility: hidden; }
.loader-ring {
  width: 46px; height: 46px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,.1); border-top-color: var(--accent);
  animation: spin 1s linear infinite;
}
.loader-text { color: var(--muted); font-size: 14px; letter-spacing: .02em; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 3D stage ---------- */
.stage-wrap {
  position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
}
.stage {
  position: absolute; inset: 0; width: 100%; height: 100%;
  will-change: transform;
}
.stage canvas { width: 100% !important; height: 100% !important; display: block; outline: none; }
.tech-bg { position: absolute; inset: 0; display: block; }
.glow {
  position: absolute; left: 50%; top: 50%;
  width: 70vmin; height: 70vmin; border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), .38) 0%, rgba(var(--accent-rgb), .12) 35%, rgba(var(--accent-rgb), 0) 68%);
  transform: translate(-50%, -50%);
  transition: background .8s ease;
  will-change: transform;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(7, 6, 11, .88);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; }
.nav-links { display: flex; gap: 26px; font-size: 13px; color: var(--muted); }
.nav-links a { transition: color .2s; }
.nav-links a:hover, .nav-links a.on { color: var(--text); }
.progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0; z-index: 30;
  background: linear-gradient(90deg, var(--accent), #fff);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px; border-radius: 999px;
  background: var(--text); color: #0b0a10; font-weight: 600; font-size: 15px;
  transition: transform .2s ease, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid rgba(255,255,255,.25); }
.btn-sm { padding: 7px 14px; font-size: 13px; }

/* ---------- Panels ---------- */
main { position: relative; z-index: 2; }
.panel {
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: 110px clamp(16px, 6vw, 96px) 80px;
}
.panel.left { justify-content: flex-start; }
.panel.right { justify-content: flex-end; }
.panel.center { justify-content: center; align-items: flex-end; }

.hero { flex-direction: column; justify-content: center; align-items: flex-start; text-align: left; position: relative; }
.hero-copy { max-width: 560px; }
.hero .lead { margin-left: 0; }
.hero-cta { justify-content: flex-start; }
.hero .hint { position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%); }
.hero .hint.in { transform: translateX(-50%); }
.hero h1 {
  font-size: clamp(48px, 9vw, 112px); font-weight: 800; letter-spacing: -.045em; line-height: 1;
  background: linear-gradient(180deg, #fff 30%, #a9c8e6 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { color: var(--muted); font-size: clamp(16px, 1.6vw, 19px); max-width: 600px; margin: 18px auto 26px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hint { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
.mouse {
  width: 20px; height: 32px; border: 2px solid rgba(255,255,255,.35); border-radius: 12px; position: relative;
}
.mouse::after {
  content: ""; position: absolute; left: 50%; top: 6px; width: 3px; height: 6px; border-radius: 2px;
  background: #fff; transform: translateX(-50%); animation: wheel 1.6s ease infinite;
}
@keyframes wheel { 0% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, 10px); } }

.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 12px;
}
h2 { font-size: clamp(28px, 3.6vw, 48px); line-height: 1.08; letter-spacing: -.03em; font-weight: 700; margin-bottom: 16px; }

.card {
  max-width: 470px; padding: clamp(22px, 3vw, 36px);
  background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.6);
}
.card > p { color: var(--muted); }
.fine { font-size: 12.5px; color: #8b8b95 !important; margin-top: 16px; }

.stats { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 22px 0 6px; }
.stats li { padding: 14px 12px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.stats b { display: block; font-size: clamp(24px, 2.6vw, 34px); font-weight: 700; letter-spacing: -.03em; }
.stats span { font-size: 12px; color: var(--muted); }

.lens-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; }
.lens-grid div { padding: 14px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.lens-grid b { display: block; font-size: 26px; letter-spacing: -.03em; }
.lens-grid span { font-size: 12.5px; color: var(--muted); }

/* Dynamic Island feature list */
.di-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 22px; }
.di-item {
  position: relative; overflow: hidden; text-align: left;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 14px;
  background: rgba(255,255,255,.04); border: 1px solid var(--line);
  transition: background .25s, border-color .25s, transform .2s;
}
.di-item:hover { background: rgba(255,255,255,.08); }
.di-item.active { background: color-mix(in srgb, var(--c) 16%, transparent); border-color: color-mix(in srgb, var(--c) 55%, transparent); }
.di-ico {
  flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: #000; color: var(--c); font-size: 14px; letter-spacing: -2px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08);
}
.di-txt { display: flex; flex-direction: column; min-width: 0; }
.di-txt b { font-size: 13.5px; font-weight: 600; }
.di-txt em { font-style: normal; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.di-bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--c); }
.di-item.run .di-bar { animation: diBar var(--dur, 3.2s) linear forwards; }
@keyframes diBar { to { width: 100%; } }

/* Colours */
.colors { text-align: center; padding-bottom: 4vh; }
.swatches { display: flex; gap: 16px; justify-content: center; margin: 8px 0 4px; }
.sw {
  width: 38px; height: 38px; border-radius: 50%; background: var(--c);
  box-shadow: inset 0 -4px 8px rgba(0,0,0,.25), 0 0 0 2px var(--bg), 0 0 0 3px rgba(255,255,255,.18);
  transition: transform .2s, box-shadow .2s;
}
.sw:hover { transform: scale(1.1); }
.sw.active { box-shadow: inset 0 -4px 8px rgba(0,0,0,.25), 0 0 0 3px var(--bg), 0 0 0 5px var(--text); }

/* ---------- Spec sheet ---------- */
.specs { padding: 120px clamp(16px, 6vw, 96px) 60px; min-height: 100vh; }
.specs-inner { max-width: min(760px, 56vw); }   /* right side stays free for the phone */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 26px; }
.tab {
  padding: 8px 16px; border-radius: 999px; font-size: 13.5px; color: var(--muted);
  background: rgba(255,255,255,.05); border: 1px solid var(--line); transition: all .2s;
}
.tab:hover { color: var(--text); }
.tab.active { background: var(--text); color: #0b0a10; border-color: transparent; }
.spec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.spec {
  padding: 20px 22px; border-radius: 18px; background: var(--card);
  border: 1px solid var(--line);
  animation: fadeUp .45s ease both;
}
.spec h3 { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.spec .big { font-size: 20px; font-weight: 650; letter-spacing: -.02em; margin-bottom: 6px; }
.spec ul { list-style: none; font-size: 13.5px; color: var(--muted); }
.spec li { padding: 3px 0; }
.spec li + li { border-top: 1px dashed rgba(255,255,255,.06); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.foot { padding: 40px clamp(16px, 6vw, 96px) 60px; color: #6f6f78; font-size: 12.5px; border-top: 1px solid var(--line); background: rgba(7,6,11,.7); }
.mode { margin-top: 6px; }

/* ---------- Hero finish picker + interaction ---------- */
.hero-finish { display: flex; align-items: center; gap: 16px; margin-top: 30px; flex-wrap: wrap; }
.hero-finish .swatches { margin: 0; gap: 12px; }
.hero-finish .sw { width: 30px; height: 30px; }
.finish-label { display: flex; flex-direction: column; font-size: 13px; line-height: 1.35; color: var(--muted); }
.finish-label b { color: var(--text); font-weight: 600; font-size: 14px; }
.hero, #colors { cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.hero.dragging, #colors.dragging { cursor: grabbing; }
.glow.pulse { animation: pulse 1.1s ease-out; }
@keyframes pulse {
  0% { opacity: 1; }
  25% { opacity: 1; filter: brightness(2.2); }
  100% { opacity: 1; filter: none; }
}
/* hold hero copy back until the phones have merged */
body.intro .hero .reveal, body.intro .hero .reveal.in { opacity: 0; transform: translateY(30px); }
body.intro .nav { opacity: 0; }
.nav { transition: opacity .8s ease; }


/* ---------- A20 Pro chip visual ---------- */
#chip { position: relative; }
.chip-stage {
  position: absolute; top: 50%; left: 28vw; width: min(34vw, 360px); aspect-ratio: 1;
  transform: translate(-50%, -50%); pointer-events: none; z-index: 1;
  perspective: 1100px;
}
.chip-traces { position: absolute; inset: -28%; width: 156%; height: 156%; overflow: visible; }
.chip-traces .tr path { fill: none; stroke: rgba(var(--accent-rgb), .28); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 400; stroke-dashoffset: 400; transition: stroke-dashoffset 1.4s ease; }
.chip-traces .tr.pulse path { stroke: #fff; stroke-width: 2; stroke-dasharray: 14 400; stroke-dashoffset: 0; opacity: 0;
  transition: opacity .6s; }
#chip.chip-on .chip-traces .tr path { stroke-dashoffset: 0; }
#chip.chip-on .chip-traces .tr.pulse path { opacity: .9; animation: tracePulse 2.4s linear infinite; }
#chip.chip-on .chip-traces .tr.pulse path:nth-child(2n) { animation-delay: -.8s; animation-duration: 2s; }
#chip.chip-on .chip-traces .tr.pulse path:nth-child(3n) { animation-delay: -1.5s; animation-duration: 2.8s; }
@keyframes tracePulse { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -414; } }

.chip3d {
  position: absolute; inset: 16%; transform-style: preserve-3d;
  transform: rotateX(var(--rx, 52deg)) rotateZ(var(--rz, -32deg)) scale(.82);
  opacity: 0; transition: transform 1.2s cubic-bezier(.2,.8,.2,1), opacity .8s ease;
}
#chip.chip-on .chip3d { opacity: 1; transform: rotateX(calc(24deg + var(--ty, 0deg))) rotateZ(calc(-16deg + var(--tx, 0deg))) scale(1); }
.chip-pins {
  position: absolute; inset: -6%; border-radius: 10%;
  background:
    repeating-linear-gradient(90deg, rgba(210,200,170,.55) 0 3px, transparent 3px 9px) top / 100% 6% no-repeat,
    repeating-linear-gradient(90deg, rgba(210,200,170,.55) 0 3px, transparent 3px 9px) bottom / 100% 6% no-repeat,
    repeating-linear-gradient(0deg, rgba(210,200,170,.55) 0 3px, transparent 3px 9px) left / 6% 100% no-repeat,
    repeating-linear-gradient(0deg, rgba(210,200,170,.55) 0 3px, transparent 3px 9px) right / 6% 100% no-repeat,
    #1b1a22;
  transform: translateZ(-2px);
  box-shadow: 0 30px 60px -10px rgba(0,0,0,.8), 0 0 60px rgba(var(--accent-rgb), .25);
}
.chip-body {
  position: absolute; inset: 0; border-radius: 8%; transform-style: preserve-3d;
  background: linear-gradient(145deg, #2a2833, #121118);
  box-shadow: 0 1px 0 #34323d, 0 2px 0 #2b2934, 0 3px 0 #24222c, 0 4px 0 #1d1b24, 0 5px 0 #17161d, 0 6px 0 #111016;
  transform: translateZ(6px);
}
.chip-die {
  position: absolute; inset: 7%; border-radius: 5%; padding: 4%;
  display: grid; gap: 4%;
  grid-template-columns: repeat(6, 1fr); grid-template-rows: repeat(4, 1fr);
  grid-template-areas: "p p p g g g" "e e e g g g" "n n c c d s" "n n c c d s";
  background: #0b0a10;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 8px 8px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}
.blk {
  --c: #888; position: relative; border-radius: 6px; overflow: hidden;
  display: flex; flex-wrap: wrap; gap: 3px; padding: 4px; align-content: stretch;
  background: color-mix(in srgb, var(--c) 14%, #0e0d14);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 40%, transparent);
  opacity: 0; transform: translateZ(0) scale(.9);
  transition: opacity .5s ease, transform .5s ease, background .3s, box-shadow .3s, filter .3s;
}
.blk[data-part="cpu"] { --c: #b69cff; }
.blk[data-part="gpu"] { --c: #5ac8fa; }
.blk[data-part="npu"] { --c: #30d158; }
.blk[data-part="cache"] { --c: #ff9f0a; background-image: repeating-linear-gradient(90deg, rgba(255,159,10,.18) 0 2px, transparent 2px 6px); }
.blk[data-part="display"] { --c: #ff6b8b; }
.blk[data-part="isp"] { --c: #ffd60a; }
.blk i { flex: 1 1 40%; min-width: 30%; border-radius: 3px; background: color-mix(in srgb, var(--c) 35%, #14131b); }
.blk.npu i { flex-basis: 10%; min-width: 9%; border-radius: 50%; aspect-ratio: 1; flex-grow: 0; width: 10%; }
.blk.npu { gap: 2px; }
.blk span {
  position: absolute; left: 5px; bottom: 3px; font-size: clamp(7px, .75vw, 9.5px); font-weight: 600;
  letter-spacing: .02em; color: color-mix(in srgb, var(--c) 80%, #fff); text-shadow: 0 1px 2px #000; white-space: nowrap;
}
#chip.chip-on .blk { opacity: 1; transform: scale(1); }
#chip.chip-on .blk:nth-child(2) { transition-delay: .08s; } #chip.chip-on .blk:nth-child(3) { transition-delay: .16s; }
#chip.chip-on .blk:nth-child(4) { transition-delay: .24s; } #chip.chip-on .blk:nth-child(5) { transition-delay: .32s; }
#chip.chip-on .blk:nth-child(6) { transition-delay: .4s; } #chip.chip-on .blk:nth-child(7) { transition-delay: .48s; }
.chip-die.focus .blk { filter: saturate(.3) brightness(.55); }
.chip-die.focus .blk.hot {
  filter: none; transform: translateZ(10px) scale(1.04);
  background-color: color-mix(in srgb, var(--c) 30%, #0e0d14);
  box-shadow: inset 0 0 0 1px var(--c), 0 0 22px color-mix(in srgb, var(--c) 60%, transparent);
}
.chip-die.focus .blk.hot i { background: color-mix(in srgb, var(--c) 75%, #fff); animation: coreBlink 1.2s ease-in-out infinite; }
.chip-die.focus .blk.hot i:nth-child(odd) { animation-delay: -.6s; }
@keyframes coreBlink { 50% { opacity: .55; } }

.chip-lid {
  position: absolute; inset: 0; border-radius: 8%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: linear-gradient(145deg, #3a3844 0%, #1c1b22 45%, #2c2a34 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.15), inset 0 0 0 1px rgba(255,255,255,.05);
  transform: translateZ(2px); transition: transform 1.1s cubic-bezier(.6,0,.2,1) .35s, opacity .7s ease .45s;
}
.chip-lid b { font-size: clamp(34px, 5vw, 64px); font-weight: 800; letter-spacing: -.04em;
  background: linear-gradient(180deg, #fff, #9c96b0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.chip-lid em { font-style: normal; font-size: clamp(10px, 1.1vw, 14px); letter-spacing: .5em; color: #b8b3c8; margin-top: 2px; }
#chip.chip-on .chip-lid { transform: translateZ(90px) translateY(-18%); opacity: 0; }

/* card */
.chip-facts { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 6px 0 16px; }
.chip-facts li { padding: 10px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.chip-facts b { display: block; font-size: 20px; letter-spacing: -.02em; }
.chip-facts span { font-size: 11.5px; color: var(--muted); }
.chip-parts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cp {
  position: relative; overflow: hidden; text-align: left; padding: 10px 12px; border-radius: 12px;
  background: rgba(255,255,255,.04); border: 1px solid var(--line); transition: background .25s, border-color .25s;
}
.cp::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 2px; background: var(--c); margin-right: 7px; vertical-align: 1px; }
.cp b { font-size: 13px; font-weight: 600; }
.cp em { display: block; font-style: normal; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.cp:hover { background: rgba(255,255,255,.08); }
.cp.active { background: color-mix(in srgb, var(--c) 14%, transparent); border-color: color-mix(in srgb, var(--c) 55%, transparent); }
.cp-bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--c); }
.cp.run .cp-bar { animation: diBar 3.4s linear forwards; }
.chip-detail { margin-top: 14px; font-size: 13.5px; min-height: 3em; transition: opacity .25s; }

@media (max-width: 900px) and (orientation: portrait), (max-width: 600px) {
  .chip-stage { top: 30vh; top: 30svh; left: 50%; width: min(72vw, 320px); }
  .chip-parts { grid-template-columns: 1fr 1fr; }
  .cp em { display: none; }
}


/* ---------- Display video controls ---------- */
.video-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 18px; padding: 10px 12px; border-radius: 14px;
  background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.vid-btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--text); color: #0b0a10; font-size: 13px; font-weight: 600; }
.vid-btn i { width: 10px; height: 10px; background:
  linear-gradient(90deg, currentColor 0 35%, transparent 35% 65%, currentColor 65%); }
.vid-btn.paused i { background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.video-ctl p { display: flex; flex-direction: column; font-size: 13px; line-height: 1.35; }
.video-ctl p b { font-weight: 600; display: flex; align-items: center; gap: 7px; }
.video-ctl p em { font-style: normal; font-size: 12px; color: var(--muted); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #ff375f; box-shadow: 0 0 0 0 rgba(255,55,95,.6); }
#display.playing .live-dot { animation: live 1.6s ease-out infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(255,55,95,.6); } 100% { box-shadow: 0 0 0 8px rgba(255,55,95,0); } }


/* ---------- Camera: lens labels ---------- */
.lens-layer { position: fixed; inset: 0; z-index: 3; pointer-events: none; opacity: 0; transition: opacity .5s ease; }
.lens-layer.show { opacity: 1; }
.lens-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.lens-lines line { stroke: rgba(255,255,255,.35); stroke-width: 1.2; stroke-dasharray: 3 4; }
.lens-lines line.on { stroke: var(--c); stroke-dasharray: none; stroke-width: 1.6; filter: drop-shadow(0 0 4px var(--c)); }
.lens-lines circle { fill: var(--c); }
.lens-hot { position: absolute; left: 0; top: 0; width: 0; height: 0; pointer-events: none; }
.lens-layer.show .lens-hot { pointer-events: auto; }
.lens-hot .ring {
  position: absolute; left: 0; top: 0; width: var(--d, 40px); height: var(--d, 40px); border-radius: 50%;
  transform: translate(-50%, -50%); border: 1.5px solid rgba(255,255,255,.35); cursor: pointer;
  transition: border-color .3s, box-shadow .3s;
}
.lens-hot.active .ring { border-color: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 25%, transparent), 0 0 24px var(--c); animation: lensPulse 1.6s ease-in-out infinite; }
@keyframes lensPulse { 50% { box-shadow: 0 0 0 9px color-mix(in srgb, var(--c) 10%, transparent), 0 0 30px var(--c); } }
.lens-hot .tag {
  position: absolute; left: var(--tx, 0); top: var(--ty, 0); transform: translate(var(--ax, 0), -50%);
  display: flex; flex-direction: column; white-space: nowrap; padding: 6px 10px; border-radius: 10px;
  background: rgba(10, 9, 16, .72); border: 1px solid rgba(255,255,255,.12);
  font-size: 12px; line-height: 1.3; transition: border-color .3s, background .3s; cursor: pointer;
}
.lens-hot .tag b { font-weight: 600; }
.lens-hot .tag em { font-style: normal; color: var(--muted); font-size: 11px; }
.lens-hot.active .tag { border-color: var(--c); background: color-mix(in srgb, var(--c) 18%, rgba(10,9,16,.85)); }
.lens-parts { grid-template-columns: 1fr 1fr; }

/* ---------- Camera: viewfinder controls ---------- */
.zoom-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 18px; }
.zb { padding: 10px 6px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid var(--line); transition: all .25s; }
.zb b { display: block; font-size: 18px; letter-spacing: -.02em; }
.zb em { font-style: normal; font-size: 11px; color: var(--muted); }
.zb.active { border-color: #ffd60a; background: rgba(255,214,10,.1); }
.zb.active b { color: #ffd60a; }
.mode-row { display: flex; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.mb { padding: 7px 14px; border-radius: 999px; font-size: 13px; background: rgba(255,255,255,.05); border: 1px solid var(--line); transition: all .25s; }
.mb.active { background: #ffd60a; color: #111; border-color: transparent; font-weight: 600; }
.shutter-btn { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--text); color: #0b0a10; font-size: 13px; font-weight: 600; }
.shutter-btn i { width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2px #0b0a10, 0 0 0 2px #fff; transition: transform .15s; }
.shutter-btn:active i { transform: scale(.85); }

@media (max-width: 900px) and (orientation: portrait), (max-width: 600px) {
  .lens-hot .tag { display: none; }
  .lens-lines { display: none; }
  .zb em { display: none; }
  .shutter-btn { margin-left: 0; }
}


/* ---------- Battery: charger controls ---------- */
.charge-live { margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: rgba(48,209,88,.06); border: 1px solid rgba(48,209,88,.25); }
.cl-top { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.cl-top b { font-weight: 600; flex: 1; }
.cl-pct { font-variant-numeric: tabular-nums; font-weight: 700; color: #30d158; }
.cl-bar { margin-top: 8px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.08); overflow: hidden; }
.cl-bar i { display: block; height: 100%; width: 0; border-radius: 3px; background: linear-gradient(90deg, #30d158, #b4ff9a); box-shadow: 0 0 10px rgba(48,209,88,.7); }

/* ---------- YouTube video mapped onto the phone screen ---------- */
.yt-layer { position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .5s ease; overflow: hidden; }
.yt-layer.show { opacity: 1; }
.yt-screen { position: absolute; left: 0; top: 0; transform-origin: 0 0; overflow: hidden; background: #000; }
.yt-screen iframe { position: absolute; left: 0; border: 0; pointer-events: none; }
.vid-btn.ghost { background: transparent; color: var(--text); border: 1px solid rgba(255,255,255,.25); }
.vid-btn.ghost b { font-size: 14px; line-height: 1; }
.yt-modal { position: fixed; inset: 0; z-index: 300; background: rgba(0,0,0,.94); display: grid; place-items: center; animation: fadeUp .3s ease both; }
.yt-modal iframe { width: min(96vw, calc(92vh * 16 / 9)); aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 14px; background: #000; }
.yt-modal:fullscreen iframe { width: 100vw; height: 100vh; border-radius: 0; aspect-ratio: auto; }
.yt-close { position: absolute; top: 16px; right: 16px; z-index: 2; width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 18px; }
.yt-close:hover { background: rgba(255,255,255,.22); }

/* ---------- Mobile / tablet navigation ---------- */
.menu-btn { display: none; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.04);
  flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.menu-btn span { width: 18px; height: 2px; border-radius: 2px; background: var(--text); transition: transform .25s, opacity .25s; }
.nav.open .menu-btn span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav.open .menu-btn span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.nav-right { display: flex; align-items: center; gap: 10px; }
@media (max-width: 1000px) {
  .menu-btn { display: flex; }
  .nav-links {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; padding: 8px clamp(16px, 4vw, 48px) 16px;
    background: rgba(7, 6, 11, .97); border-bottom: 1px solid var(--line);
    font-size: 17px; color: var(--text);
    opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .25s, transform .25s;
  }
  .nav-links a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .nav-links a:last-child { border-bottom: 0; }
  .nav.open .nav-links { opacity: 1; transform: none; pointer-events: auto; }
}
@media (min-width: 1001px) and (max-width: 1200px) {
  .nav-links { gap: 18px; font-size: 12.5px; }
  .card { max-width: 420px; }
}

/* ---------- Small phones ---------- */
@media (max-width: 480px) {
  .card { padding: 20px 18px; border-radius: 18px; }
  .stats li { padding: 10px 8px; }
  .stats b { font-size: 22px; }
  .chip-facts b { font-size: 17px; }
  .hero-cta .btn { padding: 11px 18px; font-size: 14px; }
  .lead { font-size: 15px; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: -16px; margin-right: -16px; padding: 0 16px; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: none; }
  .spec { padding: 16px 18px; }
  .foot { font-size: 12px; }
}
@media (max-width: 360px) {
  .hero-cta { flex-direction: column; align-items: stretch; }
  .stats { gap: 6px; }
  .stats span { font-size: 11px; }
  .di-list, .chip-parts { grid-template-columns: 1fr; }
}

/* ---------- Phones held sideways (short landscape screens) ---------- */
@media (max-height: 560px) and (orientation: landscape) {
  .nav { padding-top: 8px; padding-bottom: 8px; }
  .panel { padding: 70px 4vw 28px; }
  .card { max-width: 46vw; padding: 18px 20px; }
  h2 { font-size: 22px; margin-bottom: 10px; }
  .card > p { font-size: 13px; }
  .hero h1 { font-size: 44px; }
  .hero .lead { font-size: 14px; margin: 10px 0 14px; }
  .hero-finish { margin-top: 14px; }
  .hint { display: none; }
  .stats { margin-top: 12px; }
  .stats b { font-size: 20px; }
  .di-txt em, .cp em, .zb em { display: none; }
  .di-list, .chip-parts { gap: 6px; }
  .lens-hot .tag { display: none; }
  .chip-stage { width: min(30vw, 260px); }
  .specs { padding-top: 70px; }
}

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) and (orientation: portrait), (max-width: 600px) {
  .panel, .panel.left, .panel.right, .panel.center {
    min-height: auto; justify-content: center; align-items: flex-end;
    padding-top: 58vh; padding-top: 58svh; padding-bottom: 12vh;
  }
  .hero { justify-content: flex-end; align-items: center; text-align: center; padding-bottom: 48px; }
  .hero .lead { margin-left: auto; }
  .hero-cta { justify-content: center; }
  .hero-finish { justify-content: center; margin-top: 22px; }
  .finish-label { align-items: flex-start; }
  .hero h1 { font-size: clamp(40px, 13vw, 56px); }
  .hint { display: none; }
  .card h2 { font-size: 26px; }
  .di-txt em { display: none; }
  .di-item { padding: 8px 10px; }
  .card { max-width: 560px; width: 100%; background: rgba(14, 12, 20, .78); }
  .spec-grid { grid-template-columns: 1fr; }
  .specs-inner { margin: 0 auto; max-width: 760px; }
  .specs { padding-top: 52vh; padding-top: 52svh; background: linear-gradient(180deg, transparent 0, transparent 46vh, rgba(7,6,11,.88) 60vh); }
}
@media (max-width: 480px) {
  .stats { gap: 8px; }
  .stats li { padding: 10px 8px; }
  .lens-grid b { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transition: none; opacity: 1; transform: none; }
  .pill, .mouse::after { animation: none; }
}
