/* ==========================================================
   iPhone Duo — concept landing
   ========================================================== */
:root {
  --bg: #000;
  --bg-2: #0b0b0c;
  --ink: #f5f5f7;
  --ink-2: #a1a1a6;
  --ink-3: #6e6e73;
  --line: rgba(255,255,255,.12);
  --light-bg: #f3f1ed;
  --light-ink: #1d1d1f;
  --light-ink-2: #6e6e73;
  --blue: #0071e3;
  --blue-h: #0077ed;
  --sand: #ead7bd;
  --dusk: #a9bbd6;
  --grad: linear-gradient(100deg, #f4e2c8 0%, #d8c3a9 30%, #b6c3d9 70%, #8fa6c9 100%);
  --grad-dark: linear-gradient(100deg, #8a6a43 0%, #6f7f99 100%);
  --sans: "Geist", ui-sans-serif, -apple-system, "Helvetica Neue", sans-serif;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --pad: clamp(16px, 4vw, 64px);
  --maxw: 1240px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.47; letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
body.is-loading { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
em { font-style: normal; }
::selection { background: #b6c3d9; color: #000; }

.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 18px; }
.light .eyebrow { color: var(--light-ink-2); }
.display-h { font-size: clamp(44px, 7.2vw, 112px); line-height: .94; letter-spacing: -0.048em; font-weight: 600; margin: 0; }
.display-h .serif { font-size: 1.08em; letter-spacing: -0.02em; line-height: .9; }
.display-h.dark { color: var(--light-ink); }
.lead { font-size: clamp(17px, 1.45vw, 21px); line-height: 1.45; color: var(--ink-2); max-width: 30em; margin: 26px 0 0; letter-spacing: -0.014em; }
.lead strong { color: var(--ink); font-weight: 600; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 26px; border-radius: 999px; font-size: 17px; font-weight: 500; letter-spacing: -0.01em; transition: background .3s, color .3s, box-shadow .3s; will-change: transform; }
.btn-blue { background: var(--blue); color: #fff; box-shadow: 0 8px 30px -10px rgba(0,113,227,.8); }
.btn-blue:hover { background: var(--blue-h); box-shadow: 0 10px 40px -8px rgba(0,113,227,.95); }
.btn-sm { height: 30px; padding: 0 14px; font-size: 13px; box-shadow: none; }
.btn-lg { height: 56px; padding: 0 36px; font-size: 18px; }
.btn-ghost { border: 1px solid var(--line); background: rgba(255,255,255,.04); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.btn-ghost:hover { background: rgba(255,255,255,.1); }

/* ---------- loader ---------- */
#loader { position: fixed; inset: 0; z-index: 100; background: #000; display: grid; place-content: center; justify-items: center; gap: 22px; transition: opacity .9s var(--ease), visibility .9s; }
#loader.done { opacity: 0; visibility: hidden; }
.loader-book { position: relative; width: 56px; height: 76px; perspective: 300px; }
.loader-book .leaf { position: absolute; top: 0; width: 28px; height: 76px; border: 1.5px solid rgba(245,245,247,.85); border-radius: 7px; }
.loader-book .l { left: 0; border-right-width: .5px; border-radius: 9px 2px 2px 9px; transform-origin: right center; animation: leaf 1.8s var(--ease) infinite alternate; }
.loader-book .r { right: 0; border-left-width: .5px; border-radius: 2px 9px 9px 2px; }
@keyframes leaf { from { transform: rotateY(-178deg); } to { transform: rotateY(0deg); } }
.loader-name { font-size: 22px; font-weight: 600; letter-spacing: -0.03em; }
.loader-name em { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.15em; }
.loader-pct { font-family: var(--mono); font-size: 12px; color: var(--ink-3); letter-spacing: .1em; }

/* ---------- gl + grain ---------- */
#gl { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100lvh; z-index: 1; pointer-events: none; }
.grain { position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite; }
@keyframes grain { 0%{background-position:0 0} 20%{background-position:-37px 23px} 40%{background-position:29px -41px} 60%{background-position:-19px -11px} 80%{background-position:43px 37px} 100%{background-position:0 0} }

/* ---------- local nav ---------- */
.localnav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: 52px; display: flex; align-items: center; gap: 28px; padding: 0 var(--pad);
  background: rgba(0,0,0,.55); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255,255,255,.08); transform: translateY(-100%); transition: transform .8s var(--ease), background .5s, border-color .5s; }
.localnav.show { transform: none; }
.localnav.on-light { background: rgba(243,241,237,.72); border-color: rgba(0,0,0,.08); color: var(--light-ink); }
.ln-brand { font-size: 21px; font-weight: 600; letter-spacing: -0.03em; margin-right: auto; }
.ln-links { display: flex; gap: 26px; font-size: 12.5px; color: inherit; opacity: .78; }
.ln-links a { position: relative; transition: opacity .3s; }
.ln-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: currentColor; transform: scaleX(0); transition: transform .4s var(--ease); }
.ln-links a:hover::after, .ln-links a.is-active::after { transform: scaleX(1); }
@media (max-width: 760px) { .ln-links { display: none; } }

/* ==========================================================
   HERO
   ========================================================== */
.story { position: relative; z-index: 2; height: 100vh; height: 100svh; }
.story-stage { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.hero-wordmark { position: fixed; left: 50%; top: 46%; translate: -50% -50%; z-index: 0; display: flex; pointer-events: none;
  font-family: var(--serif); font-style: italic; font-size: clamp(260px, 44vw, 760px); line-height: .8; letter-spacing: -0.04em; white-space: nowrap; }
.wm-char { display: inline-block; will-change: transform, opacity; padding: 0 .06em .12em; margin: 0 -.04em;
  background: linear-gradient(180deg, rgba(234,215,189,.3) 0%, rgba(169,187,214,.12) 60%, rgba(169,187,214,0) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

.hero-intro { position: absolute; left: 0; right: 0; bottom: clamp(30px, 6vh, 70px); z-index: 2; padding: 0 var(--pad); display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.hero-title { font-size: clamp(44px, 5.4vw, 84px); font-weight: 600; letter-spacing: -0.05em; margin: 0; line-height: .95; overflow: hidden; padding-bottom: .04em; }
.hero-title span { display: inline-block; }
.hero-tag { font-size: clamp(20px, 2vw, 28px); letter-spacing: -0.03em; margin: 10px 0 0; font-weight: 500; color: var(--ink-2); }
.hero-tag em { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.14em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .05em; }
.hi-right { display: grid; justify-items: end; text-align: right; }
.hero-cta { display: flex; align-items: center; gap: 18px; }
.hero-price { color: var(--ink-2); font-size: 15px; }
.hero-meta { margin: 16px 0 0; font-size: 11px; line-height: 1.7; font-family: var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
@media (max-width: 760px) {
  .hero-intro { flex-direction: column; align-items: center; text-align: center; gap: 18px; }
  .hi-right { justify-items: center; text-align: center; }
  .hero-meta { display: none; }
}
.hero-intro .eyebrow { margin-bottom: 12px; }

.hero-phase { position: absolute; z-index: 2; opacity: 0; visibility: hidden; padding: 0 var(--pad); }
.phase-a { left: 0; top: 50%; transform: translateY(-50%); max-width: min(560px, 46vw); }
.phase-b { left: 0; right: 0; top: clamp(70px, 11vh, 120px); text-align: center; }
.phase-b .display-h { font-size: clamp(40px, 6vw, 96px); }
.phase-c { left: 0; right: 0; bottom: clamp(26px, 6vh, 64px); display: flex; align-items: flex-end; justify-content: center; gap: clamp(20px, 4vw, 56px); }
.phase-c .lead { margin: 0 0 14px; max-width: 26em; }
.big-stat { font-size: clamp(90px, 12vw, 190px); font-weight: 600; letter-spacing: -0.06em; line-height: .8; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; white-space: nowrap; }
.big-stat .unit { font-weight: 300; }

.scroll-cue { position: absolute; right: var(--pad); top: 50%; translate: 0 -50%; z-index: 2; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); display: flex; align-items: center; gap: 12px; writing-mode: vertical-rl; }
.scroll-cue span { width: 1px; height: 56px; background: linear-gradient(var(--ink-2), transparent); position: relative; overflow: hidden; }
.scroll-cue span::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: #fff; animation: cue 2s var(--ease) infinite; }
@keyframes cue { to { top: 110%; } }
@media (max-width: 760px) {
  .scroll-cue { display: none; }
  .phase-a { top: auto; bottom: 6vh; transform: none; max-width: none; }
  .phase-c { flex-direction: column; align-items: center; text-align: center; }
  .phase-c .lead { margin: 0; }
}

/* ==========================================================
   THIN
   ========================================================== */
.thin-copy { opacity: 0; visibility: hidden; position: absolute; left: var(--pad); top: 50%; transform: translateY(-50%); z-index: 2; max-width: min(520px, 42vw); }
.mega { margin: 0; font-size: clamp(110px, 16vw, 260px); font-weight: 600; letter-spacing: -0.065em; line-height: .82; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; white-space: nowrap; }
.mega small { font-size: .3em; font-weight: 400; letter-spacing: -0.02em; margin-left: .12em; }
.thin-gauge { position: absolute; left: 50%; top: 50%; z-index: 2; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 10px; height: 74vh; pointer-events: none; opacity: 0; }
.thin-gauge .g-line { flex: 1; width: 1px; background: linear-gradient(transparent, rgba(255,255,255,.35) 40%, rgba(255,255,255,.35) 60%, transparent); }
.thin-gauge .g-label { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--ink-2); writing-mode: vertical-rl; transform: rotate(180deg); }
.thin-specs { opacity: 0; visibility: hidden; position: absolute; right: var(--pad); top: 50%; transform: translateY(-50%); z-index: 2; list-style: none; margin: 0; padding: 0; display: grid; gap: 34px; text-align: right; }
.thin-specs li { font-size: 15px; color: var(--ink-2); }
.thin-specs b { display: inline; font-size: clamp(34px, 3.6vw, 52px); font-weight: 600; letter-spacing: -0.045em; color: var(--ink); margin-right: 4px; }
.thin-specs span { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-top: 4px; }
@media (max-width: 760px) {
  .thin-copy { top: 9vh; transform: none; max-width: none; right: var(--pad); }
  .thin-specs { top: auto; bottom: 6vh; transform: none; grid-auto-flow: column; gap: 18px; left: var(--pad); text-align: left; }
  .thin-specs b { font-size: 26px; }
}

/* ==========================================================
   DESIGN
   ========================================================== */
.design-copy { opacity: 0; visibility: hidden; position: absolute; left: var(--pad); top: 50%; transform: translateY(-50%); z-index: 2; max-width: min(540px, 40vw); }
.design-copy .display-h { font-size: clamp(42px, 6vw, 92px); }
.design-steps { opacity: 0; visibility: hidden; position: absolute; left: var(--pad); bottom: clamp(24px, 6vh, 60px); z-index: 2; list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.design-steps li { position: relative; padding-top: 14px; transition: color .4s; }
.design-steps li::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 1px; background: var(--line); }
.design-steps li::after { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.design-steps li.is-on { color: var(--ink); }
.design-steps li.is-on::after { transform: scaleX(1); }
@media (max-width: 760px) {
  .design-copy { top: 9vh; transform: none; max-width: none; right: var(--pad); }
  .design-copy .lead { display: none; }
  .design-steps { gap: 12px; font-size: 10px; }
}

/* hotspots */
.hotspots { position: fixed; inset: 0; z-index: 3; pointer-events: none; }
.hs { position: absolute; left: 0; top: 0; opacity: 0; will-change: transform, opacity; }
.hs .dot { position: absolute; left: -7px; top: -7px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 6px rgba(255,255,255,.18), 0 0 30px rgba(255,255,255,.6); }
.hs .dot::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid rgba(255,255,255,.6); animation: ping 2.2s var(--ease) infinite; }
@keyframes ping { from { transform: scale(.6); opacity: 1; } to { transform: scale(2.6); opacity: 0; } }
.hs-card { position: absolute; left: 26px; top: calc(-22px + var(--dy, 0px)); width: 250px; padding: 14px 16px 15px; border-radius: 16px; background: rgba(28,28,30,.62); backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%); border: 1px solid rgba(255,255,255,.12); transform: translateX(-8px); transition: transform .6s var(--ease); }
.hs.flip .hs-card { left: auto; right: 26px; }
.hs-card b { display: block; font-size: 15px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 4px; }
.hs-card span { display: block; font-size: 13px; line-height: 1.4; color: var(--ink-2); }
.hs-card { transition: transform .6s var(--ease), opacity .4s; }
.hs.mute .hs-card { opacity: 0; }
@media (max-width: 760px) { .hs-card { width: 190px; padding: 10px 12px; } .hs-card span { display: none; } .hs .dot { transform: scale(.8); } }

/* ==========================================================
   MARQUEE
   ========================================================== */
.marquee { position: relative; z-index: 2; background: #000; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; padding: 26px 0; }
.marquee-track { display: flex; align-items: center; gap: 34px; width: max-content; animation: marq 38s linear infinite; font-size: clamp(22px, 2.6vw, 38px); font-weight: 500; letter-spacing: -0.035em; white-space: nowrap; }
.marquee-track i { font-style: normal; font-size: .5em; color: var(--sand); }
.marquee-track span:nth-of-type(odd) { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.12em; color: var(--ink-2); }
@keyframes marq { to { transform: translateX(-50%); } }

/* ==========================================================
   LIGHT SECTIONS
   ========================================================== */
.light { position: relative; z-index: 2; background: var(--light-bg); color: var(--light-ink); }

/* postures */
.postures { height: 100vh; height: 100svh; overflow: hidden; }
.postures-pin { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: center; }
.postures-head { position: absolute; left: var(--pad); top: clamp(84px, 13vh, 140px); z-index: 2; }
.postures-head .display-h { font-size: clamp(40px, 5.6vw, 86px); }
.postures-track { display: flex; align-items: center; gap: clamp(20px, 3vw, 48px); padding-left: 42vw; padding-right: 10vw; margin-top: 8vh; will-change: transform; }
.posture { flex: 0 0 auto; width: clamp(300px, 46vw, 720px); }
.posture figure { margin: 0; aspect-ratio: 2880 / 1520; overflow: hidden; border-radius: 28px; background: #fff; position: relative; transform-style: preserve-3d; }
.posture img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.2s var(--ease); }
.posture:hover img { transform: scale(1.13); }
.p-meta { display: grid; grid-template-columns: auto 1fr; column-gap: 18px; align-items: baseline; padding: 22px 6px 0; }
.p-n { font-family: var(--mono); font-size: 12px; color: var(--light-ink-2); letter-spacing: .1em; grid-row: span 2; }
.p-meta h3 { margin: 0; font-size: clamp(24px, 2.2vw, 32px); letter-spacing: -0.035em; font-weight: 600; }
.p-meta p { margin: 6px 0 0; color: var(--light-ink-2); font-size: 16px; max-width: 30em; }
.postures-progress { position: absolute; left: var(--pad); right: var(--pad); bottom: clamp(20px, 5vh, 48px); display: flex; align-items: center; gap: 18px; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--light-ink-2); }
.postures-progress .bar { flex: 1; height: 1px; background: rgba(0,0,0,.12); position: relative; }
.postures-progress .bar i { position: absolute; inset: 0; background: var(--light-ink); transform: scaleX(0); transform-origin: left; }
.postures-progress .label { min-width: 110px; text-align: right; color: var(--light-ink); }
@media (max-width: 760px) {
  .postures-track { padding-left: var(--pad); margin-top: 18vh; }
  .posture { width: 82vw; }
}

/* display */
.display { padding: clamp(100px, 16vh, 180px) var(--pad) clamp(90px, 14vh, 160px); text-align: center; overflow: hidden; }
.display-head { max-width: var(--maxw); margin: 0 auto; }
.display-media { max-width: 1400px; margin: clamp(30px, 6vh, 70px) auto 0; will-change: transform; background: var(--light-bg); }
.display-media img { width: 100%; height: auto; mix-blend-mode: multiply; }
.stat-row { list-style: none; margin: clamp(10px, 3vh, 40px) auto 0; padding: 0; max-width: var(--maxw); display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat-row li { border-top: 1px solid rgba(0,0,0,.12); padding-top: 22px; text-align: left; }
.stat-row b { font-size: clamp(44px, 5vw, 76px); font-weight: 600; letter-spacing: -0.055em; line-height: 1; }
.stat-row sup { font-size: 18px; font-weight: 500; margin-left: 4px; vertical-align: top; position: relative; top: .4em; color: var(--light-ink-2); }
.stat-row span { display: block; margin-top: 10px; font-size: 14px; color: var(--light-ink-2); }
.display-foot { max-width: 34em; margin: clamp(50px, 8vh, 90px) auto 0; font-size: clamp(20px, 2vw, 28px); letter-spacing: -0.03em; line-height: 1.3; color: var(--light-ink); }
.display-foot em { font-size: 1.12em; }
@media (max-width: 760px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }

/* ==========================================================
   BENTO
   ========================================================== */
.bento-sec, .camera, .chip-sec { position: relative; z-index: 2; background: #000; padding: clamp(110px, 18vh, 200px) var(--pad); }
.sec-head { max-width: var(--maxw); margin: 0 auto clamp(44px, 8vh, 90px); }
.bento { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(180px, 19vw, 280px); gap: 16px; perspective: 1400px; }
.tile { position: relative; overflow: hidden; border-radius: 28px; background: #111; transform-style: preserve-3d; will-change: transform; isolation: isolate; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.4s var(--ease); }
.tile:hover img { transform: scale(1.12); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.72)); z-index: 1; }
.tile-copy { position: absolute; left: 26px; right: 26px; bottom: 22px; z-index: 2; transform: translateZ(40px); }
.tile-copy h3 { margin: 0; font-size: clamp(20px, 1.8vw, 26px); letter-spacing: -0.03em; font-weight: 600; }
.tile-copy p { margin: 4px 0 0; color: rgba(255,255,255,.75); font-size: 15px; }
.tile .glare { position: absolute; inset: 0; z-index: 3; pointer-events: none; background: radial-gradient(600px circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,.16), transparent 40%); opacity: 0; transition: opacity .4s; }
.tile:hover .glare { opacity: 1; }
.t-xl { grid-column: span 3; grid-row: span 2; }
.t-tall { grid-column: span 1; grid-row: span 2; }
.t-wide { grid-column: span 2; }
.t-sq { grid-column: span 1; }
@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 46vw; }
  .t-xl { grid-column: span 2; grid-row: span 1; }
  .t-tall { grid-row: span 2; grid-column: span 1; }
  .t-wide { grid-column: span 1; }
}

/* ==========================================================
   CAMERA
   ========================================================== */
.camera { padding-top: 40px; }
.cam-viewer { max-width: var(--maxw); margin: 0 auto; }
.cam-media { position: relative; aspect-ratio: 2520 / 1424; border-radius: 30px; overflow: hidden; background: #111; }
.cam-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 1s var(--ease), transform 6s linear; }
.cam-media img.is-active { opacity: 1; transform: scale(1); }
.cam-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 80px 32px 28px; background: linear-gradient(transparent, rgba(0,0,0,.7)); }
.cam-caption p { margin: 0; max-width: 34em; font-size: clamp(16px, 1.4vw, 20px); letter-spacing: -0.02em; }
.cam-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 16px; }
.cam-tabs button { position: relative; text-align: left; padding: 18px 18px 20px; border-radius: 18px; background: #111; color: var(--ink-3); font-size: 15px; font-weight: 500; letter-spacing: -0.02em; overflow: hidden; transition: color .3s, background .3s; }
.cam-tabs button:hover { color: var(--ink-2); }
.cam-tabs button.is-active { color: var(--ink); background: #1a1a1c; }
.cam-tabs button i { position: absolute; left: 18px; right: 18px; bottom: 10px; height: 2px; border-radius: 2px; background: rgba(255,255,255,.1); overflow: hidden; }
.cam-tabs button i::after { content: ""; position: absolute; inset: 0; background: var(--grad); transform: scaleX(var(--p, 0)); transform-origin: left; }
.cam-specs { list-style: none; max-width: var(--maxw); margin: clamp(50px, 9vh, 100px) auto 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.cam-specs li { border-top: 1px solid var(--line); padding-top: 22px; }
.cam-specs b { font-size: clamp(44px, 4.6vw, 70px); font-weight: 600; letter-spacing: -0.055em; line-height: 1; }
.cam-specs sup { font-size: 16px; color: var(--ink-2); margin-left: 4px; vertical-align: top; position: relative; top: .5em; }
.cam-specs span { display: block; margin-top: 12px; font-size: 14px; color: var(--ink-2); }
@media (max-width: 760px) {
  .cam-tabs { grid-template-columns: repeat(2, 1fr); }
  .cam-specs { grid-template-columns: repeat(2, 1fr); }
  .cam-caption { padding: 50px 18px 16px; }
}

/* ==========================================================
   CHIP
   ========================================================== */
.chip-sec { overflow: hidden; background: radial-gradient(1200px 600px at 25% 30%, #0f1420 0%, #000 60%); }
.chip-grid { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(30px, 6vw, 100px); }
.chip-visual { position: relative; aspect-ratio: 1; perspective: 1400px; display: grid; place-items: center; }
.chip3d { position: relative; width: 62%; aspect-ratio: 1; transform-style: preserve-3d; transform: rotateX(58deg) rotateZ(-38deg); }
.chip3d .layer { position: absolute; inset: 0; border-radius: 14%; transform-style: preserve-3d; }
.l-sub { background: linear-gradient(135deg, #1b2a1f, #0b130e); box-shadow: 0 0 0 1px rgba(160,200,170,.18) inset, 0 60px 80px -20px rgba(0,0,0,.9);
  background-image: repeating-linear-gradient(0deg, rgba(212,175,95,.35) 0 1px, transparent 1px 9px), repeating-linear-gradient(90deg, rgba(212,175,95,.35) 0 1px, transparent 1px 9px), linear-gradient(135deg, #1b2a1f, #0b130e); }
.l-die { inset: 16%; border-radius: 8%; background: linear-gradient(135deg, #2b2f3a, #121419); box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset; overflow: hidden; }
.die-grid { position: absolute; inset: 8%; border-radius: 4%; background:
  linear-gradient(90deg, rgba(120,170,255,.55) 0 30%, transparent 30% 34%, rgba(255,170,120,.5) 34% 62%, transparent 62% 66%, rgba(140,255,200,.45) 66% 100%) top / 100% 46% no-repeat,
  linear-gradient(90deg, rgba(200,140,255,.45) 0 48%, transparent 48% 52%, rgba(255,230,140,.45) 52% 100%) bottom / 100% 46% no-repeat;
  filter: saturate(1.2); mix-blend-mode: screen; opacity: .85; }
.l-vapor { inset: 6%; border-radius: 12%; background: radial-gradient(circle at 30% 30%, rgba(180,210,255,.35), rgba(120,150,200,.08) 60%); border: 1px solid rgba(200,220,255,.25); backdrop-filter: blur(2px); }
.l-lid { inset: 10%; border-radius: 10%; display: grid; place-content: center; text-align: center; background: linear-gradient(145deg, #3a3a3e, #121214 60%, #2a2a2e); box-shadow: 0 0 0 1px rgba(255,255,255,.14) inset, 0 1px 0 rgba(255,255,255,.25) inset; }
.l-lid b { font-size: clamp(40px, 6vw, 84px); font-weight: 700; letter-spacing: -0.05em; line-height: .9; background: linear-gradient(160deg, #fff, #a9a9ad 60%, #6b6b70); -webkit-background-clip: text; background-clip: text; color: transparent; }
.l-lid span { font-family: var(--mono); font-size: clamp(11px, 1.2vw, 16px); letter-spacing: .5em; color: #c8c8cc; margin-top: 6px; padding-left: .5em; }
.chip-glow { position: absolute; inset: 20%; border-radius: 50%; background: radial-gradient(circle, rgba(120,160,255,.35), transparent 70%); filter: blur(40px); z-index: -1; }
.chip-copy .display-h { font-size: clamp(42px, 5.2vw, 80px); }
.chip-stats { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 22px; }
.chip-stats li { display: grid; grid-template-columns: 150px 1fr; align-items: baseline; gap: 18px; border-top: 1px solid var(--line); padding-top: 18px; }
.chip-stats b { font-size: clamp(38px, 3.6vw, 54px); font-weight: 600; letter-spacing: -0.05em; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.chip-stats li > span { color: var(--ink-2); font-size: 15px; }
.battery { max-width: var(--maxw); margin: clamp(80px, 14vh, 160px) auto 0; display: flex; align-items: center; gap: clamp(30px, 6vw, 90px); padding: clamp(28px, 4vw, 56px); border-radius: 32px; background: linear-gradient(140deg, #101012, #0a0a0b); border: 1px solid rgba(255,255,255,.07); }
.bat-ring { position: relative; flex: 0 0 auto; width: clamp(160px, 18vw, 240px); aspect-ratio: 1; }
.bat-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.bat-ring circle { fill: none; stroke-width: 7; stroke-linecap: round; }
.bat-ring .track { stroke: rgba(255,255,255,.08); }
.bat-ring .fill { stroke: #30d158; stroke-dasharray: 326.7; stroke-dashoffset: 326.7; filter: drop-shadow(0 0 10px rgba(48,209,88,.6)); }
.bat-num { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.bat-num b { font-size: clamp(50px, 5.4vw, 78px); font-weight: 600; letter-spacing: -0.06em; line-height: .9; }
.bat-num span { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.bat-copy h3 { margin: 0; font-size: clamp(28px, 3vw, 44px); letter-spacing: -0.04em; line-height: 1.02; font-weight: 600; }
.bat-copy p { margin: 16px 0 0; color: var(--ink-2); max-width: 32em; }
.bat-copy b { color: var(--ink); font-weight: 600; }
@media (max-width: 900px) {
  .chip-grid { grid-template-columns: 1fr; }
  .chip-visual { max-width: 460px; width: 100%; margin: 0 auto; }
  .battery { flex-direction: column; text-align: center; }
  .chip-stats li { grid-template-columns: 110px 1fr; }
}

/* ==========================================================
   COLORS
   ========================================================== */
.colors { position: relative; height: 100vh; height: 100svh; }
.colors::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; transition: background 1.2s var(--ease);
  background: radial-gradient(60vw 60vh at 62% 52%, rgba(234,215,189,.13), transparent 70%); }
.colors.is-night::before { background: radial-gradient(60vw 60vh at 62% 52%, rgba(90,130,210,.22), transparent 70%); }
.colors-stage { position: relative; height: 100%; touch-action: pan-y; cursor: grab; }
.colors-stage:active { cursor: grabbing; }
.colors-copy { position: absolute; left: var(--pad); top: 50%; transform: translateY(-50%); z-index: 2; max-width: min(520px, 40vw); pointer-events: none; }
.colors-copy .display-h { font-size: clamp(40px, 5.4vw, 84px); }
.c-name, .c-alt { transition: opacity .6s var(--ease), filter .6s var(--ease); }
.colors.is-night .c-name { opacity: .28; filter: blur(1px); }
.colors:not(.is-night) .c-alt { opacity: .35; }
.colors-ui { position: absolute; left: 50%; bottom: clamp(26px, 6vh, 60px); transform: translateX(-50%); z-index: 4; display: flex; align-items: center; gap: 14px; padding: 8px; border-radius: 999px; background: rgba(28,28,30,.6); backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%); border: 1px solid rgba(255,255,255,.1); }
.swatches { display: flex; gap: 6px; }
.swatch { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px 0 8px; border-radius: 999px; font-size: 14px; color: var(--ink-2); transition: background .3s, color .3s; }
.swatch i { width: 28px; height: 28px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(255,255,255,.25), inset 0 -6px 10px rgba(0,0,0,.25); position: relative; }
.swatch.is-active { background: rgba(255,255,255,.1); color: var(--ink); }
.swatch.is-active i::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid #fff; }
.fold-toggle { height: 44px; padding: 0 18px; font-size: 14px; border-radius: 999px; }
.fold-toggle .ico { width: 16px; height: 12px; border: 1.5px solid currentColor; border-radius: 3px; position: relative; }
.fold-toggle .ico::after { content: ""; position: absolute; left: 50%; top: -1px; bottom: -1px; width: 1.5px; background: currentColor; transform: translateX(-50%); }
.drag-hint { position: absolute; right: var(--pad); top: 50%; z-index: 2; margin: 0; display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); pointer-events: none; }
.drag-hint span { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); position: relative; }
.drag-hint span::after { content: "↔"; position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--sans); color: var(--ink-2); letter-spacing: 0; animation: nudge 1.8s var(--ease) infinite; }
@keyframes nudge { 50% { transform: translateX(4px); } }
@media (max-width: 760px) {
  .colors-copy { top: 9vh; transform: none; max-width: none; right: var(--pad); }
  .colors-copy .lead { display: none; }
  .drag-hint { display: none; }
  .swatch span { display: none; }
  .swatch { padding: 0 8px; }
}

/* ==========================================================
   BUY
   ========================================================== */
.buy { padding: clamp(90px, 14vh, 160px) var(--pad); }
.buy-card { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(30px, 5vw, 80px); align-items: center; }
.buy-left .display-h { font-size: clamp(42px, 5.4vw, 84px); }
.countdown { display: flex; gap: 12px; margin-top: 44px; }
.countdown div { flex: 1; max-width: 120px; padding: 18px 0 16px; border-radius: 20px; background: #fff; text-align: center; box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 20px 40px -24px rgba(0,0,0,.25); }
.countdown b { display: block; font-size: clamp(34px, 3.4vw, 52px); font-weight: 600; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.countdown span { display: block; margin-top: 8px; font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--light-ink-2); }
.buy-note { margin: 22px 0 0; color: var(--light-ink-2); font-size: 15px; }
.buy-img { margin: 0 0 22px; border-radius: 28px; background: #fff; overflow: hidden; aspect-ratio: 16 / 10; display: grid; place-items: center; }
.buy-img img { height: 100%; width: 100%; object-fit: contain; padding: 4% 0; transition: opacity .5s var(--ease), transform .8s var(--ease); }
.cap { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.cap legend { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--light-ink-2); margin-bottom: 12px; padding: 0; }
.cap label { cursor: pointer; }
.cap input { position: absolute; opacity: 0; pointer-events: none; }
.cap span { display: grid; gap: 4px; padding: 14px 12px; border-radius: 16px; border: 1.5px solid rgba(0,0,0,.12); background: #fff; transition: border-color .3s, box-shadow .3s; }
.cap b { font-size: 16px; letter-spacing: -0.02em; }
.cap i { font-style: normal; font-size: 13px; color: var(--light-ink-2); }
.cap input:checked + span { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,113,227,.15); }
.cap input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.buy-total { margin-top: 22px; padding: 22px 22px 22px 26px; border-radius: 22px; background: #fff; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.buy-total > div { display: grid; gap: 2px; }
.bt-label { font-size: 13px; color: var(--light-ink-2); }
.buy-total b { font-size: clamp(28px, 2.6vw, 38px); letter-spacing: -0.045em; font-weight: 600; }
.perks { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 13px; color: var(--light-ink-2); }
.perks li::before { content: "✓"; margin-right: 6px; color: var(--light-ink); }
@media (max-width: 900px) {
  .buy-card { grid-template-columns: 1fr; }
  .cap { grid-template-columns: repeat(2, 1fr); }
  .buy-total { flex-direction: column; align-items: stretch; }
}

/* ---------- footer ---------- */
.foot { position: relative; z-index: 2; background: var(--light-bg); color: var(--light-ink-2); border-top: 1px solid rgba(0,0,0,.08); padding: 48px var(--pad) 60px; font-size: 12px; line-height: 1.6; }
.foot-inner { max-width: var(--maxw); margin: 0 auto; display: grid; gap: 10px; }
.foot p { margin: 0; max-width: 70em; }
.foot-brand { font-size: 20px; color: var(--light-ink); font-weight: 600; letter-spacing: -0.03em; margin-bottom: 6px !important; }
.foot-brand em { font-family: var(--serif); font-style: italic; font-weight: 400; }

/* ---------- reveal helpers ---------- */
.line-mask { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.line-mask > span { display: inline-block; will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  .grain, .marquee-track, .loader-book .l { animation: none; }
}

/* ============ CREDITS ============ */
.credits { position: relative; z-index: 2; background: var(--bg); color: var(--ink); padding: 34px var(--pad) 40px; }
.credits-inner { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px 40px; }
.credits-who { display: inline-flex; align-items: center; gap: 16px; color: inherit; text-decoration: none; }
.credits-logo {
  width: 32px; height: 35px; flex: 0 0 auto; background: var(--grad);
  -webkit-mask: url("https://www.denielpellegrino.it/branding/dplogo-mask.png") center / contain no-repeat; mask: url("https://www.denielpellegrino.it/branding/dplogo-mask.png") center / contain no-repeat;
  transition: transform .6s var(--ease);
}
.credits-who:hover .credits-logo { transform: rotate(-8deg) scale(1.08); }
.credits-name { display: grid; line-height: 1.15; }
.credits-name small { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.credits-name b { font-size: 21px; font-weight: 600; letter-spacing: -0.03em; }
.credits-name em { font-family: var(--serif); font-style: italic; font-weight: 400; }
.credits-roles { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.credits-roles li { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); }
.credits-links { display: flex; align-items: center; gap: 22px; }
.credits-more { font-size: 13px; color: var(--ink-2); text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 2px; transition: color .3s, border-color .3s; }
.credits-more:hover { color: var(--ink); border-color: var(--ink); }
.credits-home { height: 34px; padding: 0 16px; }
.credits-copy { grid-column: 1 / -1; margin: 0; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: var(--ink-3); }
@media (max-width: 860px) {
  .credits-inner { grid-template-columns: 1fr; }
  .credits-links { justify-content: space-between; }
}
