/* ==========================================================================
   Lumiere — home page sections
   ========================================================================== */
.ic { width: 1em; height: 1em; flex: none; }

/* ---- Intro ---------------------------------------------------------------- */
.intro {
  position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; background: #000;
  transition: opacity .9s var(--ease) .1s, visibility 0s 1s;
}
.intro svg { width: min(46vmin, 300px); overflow: visible; }
.intro-ring { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-dasharray: 390; stroke-dashoffset: 390; transform-origin: center; transform: rotate(-60deg);
  filter: drop-shadow(0 0 6px var(--accent)) drop-shadow(0 0 18px var(--glow)); animation: ringDraw 1.25s var(--ease) forwards; }
.intro-diamond { fill: #fff; opacity: 0; filter: drop-shadow(0 0 4px #fff) drop-shadow(0 0 14px var(--accent)); animation: diamond .6s .95s var(--ease) forwards; transform-origin: 144px 56px; }
.intro b { position: absolute; bottom: 18vh; font: 700 12px/1 var(--font-mono); letter-spacing: .6em; color: var(--text-2); opacity: 0; animation: fadeIn .8s .4s forwards; }
.intro.done { opacity: 0; visibility: hidden; }
.intro.done svg { transform: scale(7); opacity: 0; transition: transform 1.1s var(--ease), opacity .8s; }
@keyframes ringDraw { to { stroke-dashoffset: 0; } }
@keyframes diamond { 0% { opacity: 0; transform: scale(.2); } 60% { opacity: 1; transform: scale(2.6); } 100% { opacity: 1; transform: scale(1.4); } }
@keyframes fadeIn { to { opacity: 1; } }

/* ---- Hero ----------------------------------------------------------------- */
.hero { min-height: 100svh; display: flex; align-items: center; padding: 110px 0 80px; overflow: hidden; }
.dust { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-spot { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(600px circle at var(--mx, 70%) var(--my, 40%), rgba(var(--accent-rgb), .09), transparent 60%); transition: background .2s; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero-copy .h-display { margin-top: 22px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; align-items: center; }
.hero-ctas .btn { height: 56px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: 34px 0 0; color: var(--text-3); font: 500 13px/1 var(--font-text); }
.hero-meta li { display: flex; align-items: center; gap: 8px; }
.hero-meta .ic { color: var(--accent); font-size: 15px; }
.hero-stage { position: relative; display: grid; place-items: center; min-height: 790px; perspective: 1400px; }
.tilt { transform-style: preserve-3d; transition: transform .6s var(--ease); will-change: transform; }
.try-hint { position: absolute; bottom: -6px; left: 0; right: 0; text-align: center; margin: 0; }
.scroll-cue { position: absolute; left: 50%; bottom: 24px; width: 26px; height: 42px; border-radius: 14px; border: 1.5px solid var(--line-2); transform: translateX(-50%); }
.scroll-cue i { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--accent); animation: cue 1.8s infinite var(--ease); }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* Eclipse (the app icon, alive) */
.eclipse { position: absolute; width: min(800px, 150vw); aspect-ratio: 1; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(var(--er, 0deg)) scale(var(--es, 1)); pointer-events: none; }
.eclipse .corona {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 8%, rgba(var(--accent-rgb), .85) 14%, transparent 26%, rgba(var(--accent-rgb), .35) 40%, transparent 52%, rgba(var(--accent-rgb), .7) 66%, transparent 80%, rgba(var(--accent-rgb), .5) 92%, transparent);
  -webkit-mask: radial-gradient(circle, transparent 42%, #000 44%, #000 46%, transparent 64%);
          mask: radial-gradient(circle, transparent 42%, #000 44%, #000 46%, transparent 64%);
  filter: blur(14px); opacity: .75; animation: spin 26s linear infinite;
}
.eclipse .disc {
  position: absolute; inset: 26%; border-radius: 50%; background: radial-gradient(circle at 50% 50%, #000 60%, #050403 100%);
  box-shadow: 0 0 0 1.5px rgba(var(--accent-rgb), .95), 0 0 18px 3px rgba(var(--accent-rgb), .75), 0 0 70px 18px var(--glow), 0 0 160px 60px rgba(var(--accent-rgb), .12), inset 0 0 30px rgba(var(--accent-rgb), .3);
  animation: breathe 6s ease-in-out infinite;
}
:root[data-theme="minimal"] .eclipse .disc { background: radial-gradient(circle, #1a1a1a 60%, #000); }
.eclipse .diamond { position: absolute; left: 66.3%; top: 29.4%; width: 10px; height: 10px; margin: -5px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px 3px #fff, 0 0 30px 10px var(--accent-hi), 0 0 80px 24px var(--glow); animation: twinkle 4s ease-in-out infinite; }
.eclipse .diamond::before, .eclipse .diamond::after { content: ""; position: absolute; left: 50%; top: 50%; width: 220px; height: 1.5px; margin: -.75px 0 0 -110px; background: linear-gradient(90deg, transparent, #fff 50%, transparent); }
.eclipse .diamond::after { transform: rotate(90deg); width: 120px; margin-left: -60px; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 50% { box-shadow: 0 0 0 1.5px rgba(var(--accent-rgb), 1), 0 0 22px 4px rgba(var(--accent-rgb), .85), 0 0 90px 24px var(--glow), 0 0 200px 70px rgba(var(--accent-rgb), .14), inset 0 0 36px rgba(var(--accent-rgb), .35); } }
@keyframes twinkle { 0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; } 50% { transform: scale(1.35) rotate(20deg); opacity: .85; } }

.orbit-chips { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.ochip {
  position: absolute; left: var(--l); top: var(--t); z-index: 2; transform: translate(-50%, -50%) translate(calc(var(--px, 0) * var(--z) / 40 * 1px), calc(var(--py, 0) * var(--z) / 40 * 1px));
  font: 600 11px/1 var(--font-mono); letter-spacing: .14em; color: var(--text); white-space: nowrap;
  padding: 10px 14px; border-radius: 999px; background: color-mix(in srgb, var(--bg-3) 70%, transparent); border: 1px solid var(--line-2); backdrop-filter: blur(10px);
  display: flex; gap: 8px; align-items: center; animation: float 7s ease-in-out infinite; animation-delay: calc(var(--z) / 20 * -1s);
}
.ochip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--live); box-shadow: 0 0 8px var(--live); }
@keyframes float { 50% { margin-top: -12px; } }

/* ---- Camera UI (rebuilt from the current CameraView layout) -------------- */
.cam { --gold: var(--accent); --plate: rgba(30,30,32,.94); user-select: none; -webkit-user-select: none; touch-action: pan-y; font-family: var(--font-text); color: #fff; }
:root[data-theme="deepspace"] .cam { --plate: rgba(16,27,47,.96); }
.cam .vf { position: absolute; left: 0; right: 0; top: 0; height: 72.6%; overflow: hidden; border-radius: 0 0 4cqw 4cqw; background: #111; cursor: grab; transition: height .45s var(--ease); }
.cam.pro .vf { height: 66.6%; }
.cam .vf.dragging { cursor: grabbing; }
.cam .vf-imgs { position: absolute; inset: 0; transition: transform .45s var(--ease), filter .2s; }
.cam .vf-imgs img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .45s var(--ease); }
.cam .vf-imgs img.b { opacity: 0; }
.cam.flipping .vf-imgs { animation: flipcam .6s var(--ease); }
@keyframes flipcam { 0% { transform: rotateY(0); filter: blur(0); } 50% { transform: rotateY(90deg) scale(.9); filter: blur(8px); } 100% { transform: rotateY(0); filter: blur(0); } }
.cam .vf-grid { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s; background:
  linear-gradient(90deg, transparent calc(33.33% - .5px), rgba(255,255,255,.35) 0 calc(33.33% + .5px), transparent 0 calc(66.66% - .5px), rgba(255,255,255,.35) 0 calc(66.66% + .5px), transparent 0),
  linear-gradient(180deg, transparent calc(33.33% - .5px), rgba(255,255,255,.35) 0 calc(33.33% + .5px), transparent 0 calc(66.66% - .5px), rgba(255,255,255,.35) 0 calc(66.66% + .5px), transparent 0); }
.cam.grid .vf-grid { opacity: .8; }
/* Floating top bar */
.cam .topbar { position: absolute; z-index: 4; left: 3%; right: 3%; top: 7.7%; height: 4.8%; border-radius: 999px; background: rgba(0,0,0,.5); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); display: flex; align-items: center; padding: 0 3cqw; gap: 2cqw; }
.cam .topbar button { color: rgba(255,255,255,.88); display: grid; place-items: center; height: 100%; min-width: 7cqw; }
.cam .topbar .ic { width: 5.4cqw; height: 5.4cqw; }
.cam .topbar .layout { font: 800 2.8cqw/1 var(--font-mono); letter-spacing: .04em; padding: 0 2.2cqw; height: 66%; border-radius: 99px; display: flex; gap: 1cqw; transition: background-color .3s, color .3s; }
.cam .topbar .layout::after { content: "⌃"; font-size: 2.2cqw; transform: translateY(-.3cqw); opacity: .8; }
.cam.pro .topbar .layout { background: var(--gold); color: var(--accent-ink); }
.cam .topbar .sp { flex: 1; display: flex; justify-content: center; }
.cam .topbar .sp i { width: 4.5cqw; height: .5cqw; border-radius: 1px; background: rgba(255,255,255,.35); }
.cam .topbar .res { display: none; flex-direction: column; align-items: flex-end; font: 700 2.5cqw/1.15 var(--font-mono); margin-right: 1cqw; }
.cam .topbar .res small { font-size: 2.1cqw; opacity: .7; }
.cam.pro .topbar .res { display: flex; }
.cam .topbar .tlabel { font: 700 2.4cqw/1 var(--font-mono); margin-left: -2.4cqw; color: var(--gold); }
.cam .vf-toast { position: absolute; left: 50%; top: 22%; transform: translate(-50%, -6px); z-index: 5; opacity: 0; transition: opacity .3s, transform .4s var(--ease); pointer-events: none; text-align: center;
  padding: 2.2cqw 4cqw; border-radius: 99px; background: rgba(0,0,0,.45); backdrop-filter: blur(10px); white-space: nowrap; }
.cam .vf-toast b { display: block; font: 700 3.6cqw/1.1 var(--font-display); letter-spacing: .02em; }
.cam .vf-toast span { display: block; font: 600 2.2cqw/1.2 var(--font-mono); letter-spacing: .16em; color: var(--gold); margin-top: .8cqw; text-transform: uppercase; }
.cam .vf-toast.show { opacity: 1; transform: translate(-50%, 0); }
.cam .vf-focus { position: absolute; width: 17cqw; height: 17cqw; margin: -8.5cqw; border: 1.5px solid var(--gold); opacity: 0; pointer-events: none; z-index: 3; }
.cam .vf-focus.go { animation: focus 1.1s var(--ease) forwards; }
.cam .vf-focus::after { content: ""; position: absolute; right: -6cqw; top: 15%; height: 70%; width: 1px; background: var(--gold); }
.cam .vf-focus::before { content: "☀"; position: absolute; right: -8.2cqw; top: calc(15% + 35% * (1 - var(--ev, 0))); font-size: 3.6cqw; color: var(--gold); line-height: 1; transform: translateY(-50%); }
@keyframes focus { 0% { opacity: 0; transform: scale(1.5); } 20% { opacity: 1; transform: scale(1); } 75% { opacity: 1; } 100% { opacity: .0; } }
.cam .vf-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; z-index: 6; }
.cam .vf-flash.go { animation: flash .5s ease-out; }
@keyframes flash { 0% { opacity: .95; } 100% { opacity: 0; } }
@property --ir { syntax: "<percentage>"; inherits: false; initial-value: 75%; }
.cam .vf-iris { position: absolute; inset: 0; z-index: 7; pointer-events: none; background: #000; opacity: 0;
  -webkit-mask: radial-gradient(circle at 50% 50%, transparent var(--ir), #000 calc(var(--ir) + .5%));
          mask: radial-gradient(circle at 50% 50%, transparent var(--ir), #000 calc(var(--ir) + .5%)); }
.cam .vf-iris.go { animation: iris .46s cubic-bezier(.6, 0, .3, 1); }
@keyframes iris { 0% { --ir: 75%; opacity: 1; } 48%, 52% { --ir: 0%; opacity: 1; } 100% { --ir: 75%; opacity: 1; } }
.cam .vf-rec { position: absolute; top: 16%; left: 50%; transform: translateX(-50%); z-index: 4; display: none; align-items: center; gap: 1.6cqw; padding: 1.6cqw 3.2cqw; border-radius: 99px; background: var(--rec); font: 700 3cqw/1 var(--font-mono); letter-spacing: .08em; white-space: nowrap; }
.cam .vf-rec::before { content: ""; width: 2cqw; height: 2cqw; border-radius: 50%; background: #fff; animation: blink 1s steps(1) infinite; }
.cam .vf-rec.on { display: flex; }
.cam .vf-rec.live { background: rgba(0,0,0,.55); backdrop-filter: blur(8px); color: var(--live); }
.cam .vf-rec.live::before { background: var(--live); }
@keyframes blink { 50% { opacity: .2; } }
.cam .vf-count { position: absolute; inset: 0; display: grid; place-items: center; font: 200 40cqw/1 var(--font-display); color: #fff; text-shadow: 0 4px 30px rgba(0,0,0,.5); z-index: 5; pointer-events: none; opacity: 0; }
.cam .vf-count.go { animation: count 1s var(--ease); }
@keyframes count { 0% { opacity: 0; transform: scale(1.4); } 25% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(.85); } }
.cam .vf-chip { position: absolute; bottom: 4cqw; left: 50%; transform: translateX(-50%); z-index: 4; display: none; gap: 1.6cqw; align-items: center; padding: 1.8cqw 3.4cqw; border-radius: 99px; background: rgba(0,0,0,.5); backdrop-filter: blur(8px); font: 700 2.6cqw/1 var(--font-mono); letter-spacing: .14em; white-space: nowrap; }
.cam .vf-chip b { width: 1.8cqw; height: 1.8cqw; border-radius: 50%; background: var(--gold); }
.cam .vf-chip em { font-style: normal; color: var(--gold); }
.cam .vf-chip.on { display: flex; }
.cam .vf-brackets { position: absolute; left: 22%; right: 22%; top: 20%; bottom: 8%; pointer-events: none; z-index: 2; opacity: 0; transition: opacity .4s; }
.cam .vf-brackets.on { opacity: 1; }
.cam .vf-brackets i { position: absolute; width: 7cqw; height: 7cqw; border: 1.5px solid var(--gold); }
.cam .vf-brackets i:nth-child(1) { left: 0; top: 0; border-width: 1.5px 0 0 1.5px; }
.cam .vf-brackets i:nth-child(2) { right: 0; top: 0; border-width: 1.5px 1.5px 0 0; }
.cam .vf-brackets i:nth-child(3) { left: 0; bottom: 0; border-width: 0 0 1.5px 1.5px; }
.cam .vf-brackets i:nth-child(4) { right: 0; bottom: 0; border-width: 0 1.5px 1.5px 0; }
.cam .vf-live { position: absolute; inset: 0; pointer-events: none; opacity: 0; z-index: 1; background: radial-gradient(ellipse 34% 26% at 50% 52%, transparent 60%, rgba(0,0,0,.45) 100%); transition: opacity .5s; }
.cam.mode-live .vf-live { opacity: 1; }
.cam.mode-live .vf-imgs { animation: breatheImg 3.2s ease-in-out infinite alternate; }
@keyframes breatheImg { to { transform: scale(1.035) translateY(-.6%); } }
.cam .vf-hist { position: absolute; left: 4cqw; top: 15%; width: 26cqw; height: 13cqw; border-radius: 1.6cqw; background: rgba(0,0,0,.4); backdrop-filter: blur(6px); z-index: 3; opacity: 0; transition: opacity .35s; }
.cam.hist .vf-hist { opacity: 1; }
/* Bottom plate */
.cam .plate { position: absolute; left: 2%; right: 2%; top: 73.8%; bottom: 4%; border-radius: 7cqw; background: var(--plate); box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); transition: top .45s var(--ease); }
.cam.pro .plate { top: 67.4%; }
.cam .readout { position: absolute; left: 4%; right: 4%; top: 68.2%; height: 4.4%; display: flex; justify-content: space-around; opacity: 0; pointer-events: none; transition: opacity .35s; }
.cam.pro .readout { opacity: 1; pointer-events: auto; }
.cam .readout button { display: flex; flex-direction: column; align-items: center; gap: .9cqw; padding: .8cqw 1.4cqw; border-radius: 2.4cqw; color: #fff; }
.cam .readout b { font: 500 3.6cqw/1 var(--font-mono); }
.cam .readout em { font: 600 1.9cqw/1 var(--font-mono); letter-spacing: .1em; color: rgba(255,255,255,.5); font-style: normal; }
.cam .actions { position: absolute; left: 5%; right: 5%; top: 74.6%; height: 4%; display: flex; gap: 1cqw; }
.cam .actions button { flex: 1; display: flex; align-items: center; justify-content: center; gap: 1.6cqw; border-radius: 3cqw; font: 600 3cqw/1 var(--font-text); color: rgba(255,255,255,.62); transition: color .25s, background-color .25s; }
.cam .actions .ic { width: 3.8cqw; height: 3.8cqw; }
.cam .actions button.on, .cam .actions button.applied { color: var(--gold); }
.cam .actions button.on { background: rgba(var(--accent-rgb), .1); }
.cam .actions .t-tools { display: none; }
.cam.pro .actions .t-tools { display: flex; }
.cam.pro .actions .t-light { display: none; }
.cam .modes { position: absolute; top: 79.4%; left: 4%; right: 4%; height: 4%; display: flex; justify-content: space-around; }
.cam .modes button { font: 700 2.8cqw/1 var(--font-mono); letter-spacing: .1em; color: rgba(255,255,255,.55); position: relative; padding: 1cqw 1cqw 2cqw; transition: color .3s; }
.cam .modes button.on { color: #fff; }
.cam .modes button.on::after { content: ""; position: absolute; left: 30%; right: 30%; bottom: 0; height: .5cqw; border-radius: 1px; background: var(--gold); }
.cam .bottom { position: absolute; top: 85%; left: 6%; right: 6%; height: 9.6%; display: flex; align-items: center; justify-content: space-around; }
.cam .thumb { width: 15.6cqw; height: 15.6cqw; border-radius: 3cqw; background: #1c1c1e; display: grid; place-items: center; color: rgba(255,255,255,.3); overflow: hidden; position: relative; }
.cam .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cam .thumb i { position: absolute; top: 1cqw; right: 1cqw; min-width: 4.2cqw; height: 4.2cqw; padding: 0 1cqw; border-radius: 99px; background: var(--gold); color: var(--accent-ink); font: 700 2.4cqw/4.2cqw var(--font-mono); font-style: normal; text-align: center; display: none; }
.cam .shutter { width: 20cqw; height: 20cqw; border-radius: 50%; border: .8cqw solid #3a3a3c; display: grid; place-items: center; transition: transform .15s, border-color .3s; }
.cam .shutter::before { content: ""; width: 16.4cqw; height: 16.4cqw; border-radius: 50%; background: radial-gradient(circle at 45% 35%, #fff 0%, #f2f2f2 55%, #d9d9db 100%); box-shadow: 0 1px 4px rgba(0,0,0,.4); transition: border-radius .3s var(--ease), width .3s var(--ease), height .3s var(--ease), background .3s; }
.cam .shutter:active { transform: scale(.92); }
.cam.mode-video .shutter { border-color: var(--rec); }
.cam.mode-video .shutter::before { background: var(--rec); width: 15cqw; height: 15cqw; }
.cam.mode-live .shutter { border-color: var(--live); }
.cam.mode-live .shutter::before { background: var(--live); width: 15cqw; height: 15cqw; }
.cam.recording .shutter::before { width: 7cqw; height: 7cqw; border-radius: 1.6cqw; }
.cam .zoom { width: 15.6cqw; height: 15.6cqw; border-radius: 50%; border: 1px solid rgba(255,255,255,.28); font: 600 4.4cqw/1 var(--font-display); letter-spacing: -.02em; color: #fff; }
.cam .zoom.pulse { animation: zpulse .35s var(--ease); }
@keyframes zpulse { 50% { transform: scale(1.12); border-color: var(--gold); color: var(--gold); } }
.cam .fly { position: absolute; z-index: 20; border-radius: 3cqw; overflow: hidden; pointer-events: none; box-shadow: 0 10px 30px rgba(0,0,0,.6); transition: all .7s var(--ease); }
.cam .fly img { width: 100%; height: 100%; object-fit: cover; }
/* Panels that rise above the plate (Filters & looks, Light, Tools) */
.cam .sheet { position: absolute; left: 2%; right: 2%; bottom: 27.4%; z-index: 8; padding: 3.6cqw 0 3.6cqw 3.6cqw; border-radius: 5cqw; background: rgba(20,20,22,.94); box-shadow: inset 0 0 0 1px rgba(255,255,255,.07); backdrop-filter: blur(16px); transform: translateY(12px); opacity: 0; pointer-events: none; transition: opacity .3s, transform .4s var(--ease); }
:root[data-theme="deepspace"] .cam .sheet { background: rgba(16,27,47,.96); }
.cam.pro .sheet { bottom: 33.8%; }
.cam .sheet.open { transform: none; opacity: 1; pointer-events: auto; }
.cam .sheet h5 { margin: 0 0 3cqw; font: 600 3.6cqw/1 var(--font-text); letter-spacing: 0; color: #fff; display: flex; align-items: center; gap: 2cqw; padding-right: 3.6cqw; }
.cam .sheet h5 .sp { flex: 1; }
.cam .sheet h5 .pill { font: 600 2.6cqw/1 var(--font-text); background: var(--gold); color: var(--accent-ink); padding: 1.4cqw 2.6cqw; border-radius: 99px; }
.cam .sheet h5 button:last-child { color: rgba(255,255,255,.6); }
.cam .sheet h5 .ic { width: 4cqw; height: 4cqw; }
.cam .looks-row { display: flex; gap: 1.6cqw; align-items: center; overflow-x: auto; scrollbar-width: none; margin-bottom: 3cqw; padding-right: 3.6cqw; }
.cam .looks-row::-webkit-scrollbar { display: none; }
.cam .looks-row > span { font: 600 2.2cqw/1 var(--font-mono); letter-spacing: .2em; color: rgba(255,255,255,.4); margin-right: 1cqw; }
.cam .looks-row button { flex: none; font: 600 2.4cqw/1 var(--font-mono); letter-spacing: .06em; color: rgba(255,255,255,.85); padding: 1.8cqw 2.6cqw; border-radius: 99px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); transition: all .2s; }
.cam .looks-row button.on { color: var(--accent-ink); background: var(--gold); box-shadow: none; }
.cam .looks-row button.reset { color: rgba(255,255,255,.4); }
.cam .sheet-rail { display: flex; gap: 2.4cqw; overflow-x: auto; scrollbar-width: none; padding-right: 3.6cqw; scroll-snap-type: x mandatory; }
.cam .sheet-rail::-webkit-scrollbar { display: none; }
.cam .sheet-rail button { flex: none; width: 19cqw; scroll-snap-align: start; text-align: center; font: 500 2.5cqw/1.2 var(--font-text); color: rgba(255,255,255,.7); }
.cam .sheet-rail img { width: 19cqw; height: 25cqw; object-fit: cover; border-radius: 2.4cqw; margin-bottom: 1.4cqw; border: 1.5px solid transparent; transition: border-color .2s; }
.cam .sheet-rail button.on { color: var(--gold); }
.cam .sheet-rail button.on img { border-color: var(--gold); }
.cam .light-panel .ev { display: flex; justify-content: space-between; align-items: center; padding-right: 3.6cqw; }
.cam .light-panel .ev b { font: 600 3.4cqw/1.2 var(--font-text); }
.cam .light-panel .ev small { display: block; font: 500 2.4cqw/1.3 var(--font-text); color: rgba(255,255,255,.5); }
.cam .light-panel .ev em { font: 500 5cqw/1 var(--font-mono); color: var(--gold); font-style: normal; }
.cam .light-panel input { width: calc(100% - 3.6cqw); margin-top: 2cqw; }
.cam .tools-row { display: flex; justify-content: space-around; padding-right: 3.6cqw; }
.cam .tools-row button { display: flex; flex-direction: column; align-items: center; gap: 1.4cqw; font: 600 2.2cqw/1 var(--font-mono); letter-spacing: .08em; color: rgba(255,255,255,.6); padding: 1.6cqw; border-radius: 2.4cqw; }
.cam .tools-row .ic { width: 6cqw; height: 6cqw; }
.cam .tools-row button.on { color: var(--gold); background: rgba(var(--accent-rgb), .1); }

/* ---- Marquee, stats -------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 100px; }
.stat { background: var(--bg); padding: 34px 28px; display: flex; flex-direction: column; gap: 12px; }
.stat b { font: 650 clamp(40px, 5vw, 64px)/1 var(--font-display); letter-spacing: -.04em; color: var(--text); }
.stat b small { font-size: .42em; letter-spacing: 0; color: var(--accent); margin-left: 4px; font-weight: 600; }
.stat > span { color: var(--text-2); font-size: 15px; }
@media (max-width: 800px) { .stats { grid-template-columns: 1fr 1fr; } }

.fineprint { font-size: 13px; color: var(--text-3); margin: 22px 0 0; }
.fineprint.center { text-align: center; }

/* ---- Explorer ------------------------------------------------------------- */
.explorer { margin-top: 56px; border: 1px solid var(--line); border-radius: 28px; padding: 14px; background: var(--bg-2); box-shadow: 0 40px 120px -40px rgba(0,0,0,.8); }
.ex-scenes { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 14px; }
.ex-scenes::-webkit-scrollbar { display: none; }
.ex-scene { flex: none; display: flex; align-items: center; gap: 10px; padding: 5px 16px 5px 5px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text-2); font: 500 14px/1 var(--font-text); background: var(--surface); transition: all .25s; }
.ex-scene img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.ex-scene:hover { color: var(--text); }
.ex-scene[aria-selected="true"] { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 60%, transparent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.ex-stage { position: relative; aspect-ratio: 3 / 2; border-radius: 18px; overflow: hidden; background: #000; cursor: ew-resize; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.ex-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ex-after { transition: opacity .35s; }
.ex-before-clip { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--split, 50%)) 0 0); }
.ex-handle { position: absolute; top: 0; bottom: 0; left: var(--split, 50%); width: 2px; margin-left: -1px; background: rgba(255,255,255,.9); box-shadow: 0 0 12px rgba(0,0,0,.5); }
.ex-handle i { position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; margin: -23px; border-radius: 50%; background: rgba(0,0,0,.35); backdrop-filter: blur(10px); border: 1.5px solid #fff; }
.ex-handle i::before, .ex-handle i::after { content: ""; position: absolute; top: 50%; width: 0; height: 0; border: 6px solid transparent; margin-top: -6px; }
.ex-handle i::before { left: 6px; border-right-color: #fff; }
.ex-handle i::after { right: 6px; border-left-color: #fff; }
.ex-tag { position: absolute; top: 16px; font: 700 11px/1 var(--font-mono); letter-spacing: .2em; padding: 8px 12px; border-radius: 99px; background: rgba(0,0,0,.45); backdrop-filter: blur(8px); color: #fff; pointer-events: none; }
.ex-tag-l { left: 16px; }
.ex-info { position: absolute; right: 16px; bottom: 16px; display: grid; justify-items: end; gap: 4px; padding: 14px 18px; border-radius: 16px; background: rgba(0,0,0,.5); backdrop-filter: blur(14px); color: #fff; text-align: right; pointer-events: none; max-width: 70%; }
.ex-info b { font: 650 24px/1.1 var(--font-display); letter-spacing: -.02em; }
.ex-info span { font-size: 14px; color: rgba(255,255,255,.75); }
.ex-info em { font: 700 10px/1 var(--font-mono); letter-spacing: .22em; color: var(--accent); font-style: normal; margin-top: 4px; }
:root[data-theme="minimal"] .ex-info em { color: #fff; }
.ex-info.pop { animation: pop .45s var(--ease); }
@keyframes pop { 0% { transform: translateY(8px); opacity: 0; } }
.ex-ai { position: absolute; top: 16px; right: 16px; display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 99px; background: rgba(0,0,0,.45); backdrop-filter: blur(10px); color: #fff; font: 700 11px/1 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; border: 1px solid rgba(255,255,255,.18); transition: all .25s; }
.ex-ai:hover, .ex-ai.on { border-color: var(--accent); color: var(--accent); }
.ex-ai .ic { font-size: 15px; }
.ex-loading { position: absolute; left: 0; top: 0; height: 2px; width: 0; background: var(--accent); box-shadow: 0 0 10px var(--accent); transition: width .3s, opacity .3s; opacity: 0; }
.ex-loading.on { width: 70%; opacity: 1; transition: width 2s var(--ease); }
.ex-bar { display: flex; align-items: center; gap: 12px; padding: 14px 2px 10px; }
.ex-cats { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; flex: 1; }
.ex-cats::-webkit-scrollbar { display: none; }
.ex-nav { display: flex; gap: 8px; }
.ex-arrow { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--text-2); transition: all .2s; }
.ex-arrow:hover { color: var(--accent); border-color: var(--accent); }
.ex-rail { position: relative; display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 6px; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.ex-card { flex: none; width: 112px; scroll-snap-align: start; text-align: left; transition: transform .25s var(--ease); }
.ex-card img { width: 112px; height: 75px; object-fit: cover; border-radius: 10px; border: 2px solid transparent; transition: border-color .2s, transform .3s var(--ease); background: var(--surface); }
.ex-card b { display: block; font: 600 13px/1.2 var(--font-text); margin-top: 7px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ex-card small { display: block; font: 600 10px/1 var(--font-mono); letter-spacing: .16em; color: var(--text-3); margin-top: 4px; text-transform: uppercase; }
.ex-card:hover img { transform: translateY(-3px); }
.ex-card[aria-pressed="true"] img { border-color: var(--accent); }
.ex-card[aria-pressed="true"] b { color: var(--accent); }

/* ---- Signature looks ------------------------------------------------------- */
.sig-scenes { display: flex; gap: 8px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.sig-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 30px; }
.sig-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg-2); transition: border-color .3s, transform .5s var(--ease); }
.sig-card:hover { border-color: color-mix(in srgb, var(--accent) 45%, transparent); transform: translateY(-6px); }
.sig-media { position: relative; aspect-ratio: 4 / 3.4; overflow: hidden; cursor: ew-resize; touch-action: pan-y; }
.sig-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sig-media .s-clip { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--s, 100%)) 0 0); }
.sig-media .s-line { position: absolute; top: 0; bottom: 0; left: var(--s, 100%); width: 1.5px; background: #fff; box-shadow: 0 0 14px rgba(255,255,255,.7); }
.sig-body { padding: 26px 26px 28px; }
.sig-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); font-size: 21px; }
.sig-body h3 { font: 650 26px/1.1 var(--font-display); letter-spacing: -.02em; margin: 18px 0 10px; }
.sig-body p { color: var(--text-2); margin: 0; font-size: 15.5px; }
.tags { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font: 600 10.5px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); padding: 7px 10px; border-radius: 99px; border: 1px solid var(--line-2); }
@media (max-width: 960px) { .sig-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; } }

/* ---- Two-column layout ----------------------------------------------------- */
.split-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.split-2.rev > :first-child { order: 0; }
@media (max-width: 900px) { .split-2 { grid-template-columns: 1fr; } }

/* ---- Portrait --------------------------------------------------------------- */
.pt-frame { position: relative; aspect-ratio: 3 / 2; border-radius: 24px; overflow: hidden; background: #000; box-shadow: 0 40px 100px -40px rgba(0,0,0,.8); }
.pt-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pt-blur { opacity: var(--blur, 1); transition: opacity .6s var(--ease); }
.pt-brackets { position: absolute; inset: var(--bt, 16%) var(--br, 34%) var(--bb, 4%) var(--bl, 34%); pointer-events: none; transition: inset .7s var(--ease), opacity .4s; }
.pt-brackets i { position: absolute; width: 22px; height: 22px; border: 2px solid var(--accent); animation: brk 2.4s ease-in-out infinite; }
.pt-brackets i:nth-child(1) { left: 0; top: 0; border-width: 2px 0 0 2px; }
.pt-brackets i:nth-child(2) { right: 0; top: 0; border-width: 2px 2px 0 0; }
.pt-brackets i:nth-child(3) { left: 0; bottom: 0; border-width: 0 0 2px 2px; }
.pt-brackets i:nth-child(4) { right: 0; bottom: 0; border-width: 0 2px 2px 0; }
@keyframes brk { 50% { opacity: .55; } }
.pt-chip { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; white-space: nowrap; padding: 9px 14px; border-radius: 99px; background: rgba(0,0,0,.5); backdrop-filter: blur(10px); color: #fff; font: 700 11px/1 var(--font-mono); letter-spacing: .18em; }
.pt-chip b { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.pt-dial { display: flex; justify-content: center; gap: 4px; margin: 20px auto 0; padding: 5px; border-radius: 999px; border: 1px solid var(--line-2); width: fit-content; max-width: 100%; overflow-x: auto; background: var(--surface); }
.pt-dial button { font: 700 11px/1 var(--font-mono); letter-spacing: .14em; color: var(--text-3); padding: 11px 14px; border-radius: 99px; transition: all .25s; white-space: nowrap; }
.pt-dial button.on { background: var(--accent); color: var(--accent-ink); }
@media (max-width: 520px) { .pt-dial { gap: 2px; padding: 4px; } .pt-dial button { font-size: 10px; letter-spacing: .06em; padding: 11px 9px; } .pt-chip { font-size: 10px; letter-spacing: .12em; bottom: 12px; padding: 8px 12px; } }
.pt-scenes { display: flex; gap: 8px; justify-content: center; margin-top: 14px; flex-wrap: wrap; }
.feat-list { display: grid; gap: 20px; margin-top: 36px; }
.feat { display: flex; gap: 16px; align-items: flex-start; }
.feat > .ic { font-size: 22px; color: var(--accent); margin-top: 3px; }
.feat b { font: 600 17px/1.3 var(--font-text); }
.feat p { margin: 4px 0 0; color: var(--text-2); font-size: 15.5px; }

/* ---- Modes (sticky story) --------------------------------------------------- */
.modes-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; margin-top: 30px; }
.modes-sticky { position: sticky; top: 12vh; height: 76vh; display: grid; place-items: center; }
.modes-steps { display: flex; flex-direction: column; }
.mstep { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; opacity: .25; transition: opacity .5s var(--ease); max-width: 520px; }
.mstep.on { opacity: 1; }
.mnum { font: 700 12px/1 var(--font-mono); letter-spacing: .24em; color: var(--accent); }
.mstep h3 { font: 650 clamp(30px, 3.6vw, 46px)/1.05 var(--font-display); letter-spacing: -.03em; margin: 18px 0 16px; }
.mstep p { color: var(--text-2); font-size: 18px; margin: 0; }
.mstep p b { color: var(--text); font-weight: 600; }
.modes-tabs { display: none; }
@media (max-width: 900px) {
  /* phones: the phone stays put and the four modes become a swipeable card rail */
  .modes-grid { grid-template-columns: 1fr; gap: 0; margin-top: 18px; }
  .modes-sticky { position: relative; top: 0; height: auto; padding: 0; }
  .modes-phone { --w: min(236px, 60vw) !important; }
  .modes-tabs { display: flex; justify-content: center; gap: 4px; margin: 22px auto 14px; padding: 4px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--surface); width: fit-content; max-width: 100%; }
  .modes-tabs button { font: 700 10.5px/1 var(--font-mono); letter-spacing: .12em; color: var(--text-3); padding: 11px 12px; border-radius: 99px; transition: color .25s, background-color .25s; }
  .modes-tabs button[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); }
  .modes-steps { flex-direction: row; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
    margin: 0 calc(var(--gutter) * -1); padding: 2px var(--gutter) 6px; scroll-padding: 0 var(--gutter); }
  .modes-steps::-webkit-scrollbar { display: none; }
  .mstep { flex: 0 0 min(86%, 420px); min-height: 0; justify-content: flex-start; scroll-snap-align: start; padding: 22px 20px; border-radius: 20px; border: 1px solid var(--line); background: var(--bg-2); opacity: .5; cursor: pointer; transition: opacity .4s var(--ease), border-color .4s; }
  .mstep.on { opacity: 1; border-color: color-mix(in srgb, var(--accent) 45%, transparent); cursor: default; }
  .mstep h3 { font-size: 25px; margin: 12px 0 10px; }
  .mstep p { font-size: 15.5px; }
  .mstep .tags { margin-top: 14px; }
}

/* ---- Pro lab ------------------------------------------------------------------ */
.lab { display: grid; grid-template-columns: 1.6fr 1fr; gap: 0; margin-top: 56px; border: 1px solid var(--line); border-radius: 28px; overflow: hidden; background: #000; box-shadow: 0 40px 120px -40px rgba(0,0,0,.8); }
.lab-view { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: #000; touch-action: pan-y; }
.lab-view canvas#labCanvas, .lab-view canvas#labPeak { position: absolute; inset: 0; width: 100%; height: 100%; }
#labCanvas { transition: filter .25s; }
#labPeak { mix-blend-mode: screen; transition: opacity .3s; pointer-events: none; }
.lab-grid { position: absolute; inset: 0; pointer-events: none; transition: opacity .3s; }
.lab-grid[data-grid="thirds"] { background:
  linear-gradient(90deg, transparent calc(33.33% - .5px), rgba(255,255,255,.4) 0 calc(33.33% + .5px), transparent 0 calc(66.66% - .5px), rgba(255,255,255,.4) 0 calc(66.66% + .5px), transparent 0),
  linear-gradient(180deg, transparent calc(33.33% - .5px), rgba(255,255,255,.4) 0 calc(33.33% + .5px), transparent 0 calc(66.66% - .5px), rgba(255,255,255,.4) 0 calc(66.66% + .5px), transparent 0); }
.lab-grid[data-grid="golden"] { background:
  linear-gradient(90deg, transparent calc(38.2% - .5px), rgba(255,255,255,.4) 0 calc(38.2% + .5px), transparent 0 calc(61.8% - .5px), rgba(255,255,255,.4) 0 calc(61.8% + .5px), transparent 0),
  linear-gradient(180deg, transparent calc(38.2% - .5px), rgba(255,255,255,.4) 0 calc(38.2% + .5px), transparent 0 calc(61.8% - .5px), rgba(255,255,255,.4) 0 calc(61.8% + .5px), transparent 0); }
.lab-grid[data-grid="cross"] { background:
  linear-gradient(90deg, transparent calc(50% - .5px), rgba(255,255,255,.45) 0 calc(50% + .5px), transparent 0) center / 100% 40px no-repeat,
  linear-gradient(180deg, transparent calc(50% - .5px), rgba(255,255,255,.45) 0 calc(50% + .5px), transparent 0) center / 40px 100% no-repeat; }
.lab-grid[data-grid="off"] { opacity: 0; }
.lab-level { position: absolute; left: 36%; right: 36%; top: 50%; display: flex; gap: 6%; align-items: center; transition: opacity .3s, transform .3s var(--ease); pointer-events: none; }
.lab-level i { flex: 0 0 10%; height: 2px; background: var(--accent); opacity: .6; }
.lab-level b { flex: 1; height: 3px; border-radius: 2px; background: var(--accent); transition: background-color .3s; }
.lab-level.level b { background: var(--live); }
.lab-hist { position: absolute; left: 16px; top: 16px; width: 200px; height: 92px; border-radius: 10px; background: rgba(0,0,0,.45); backdrop-filter: blur(8px); transition: opacity .3s; }
.lab-read { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-around; padding: 30px 10px 14px; background: linear-gradient(transparent, rgba(0,0,0,.7)); pointer-events: none; }
.lab-read span { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.lab-read em { font: 600 9.5px/1 var(--font-mono); letter-spacing: .16em; color: rgba(255,255,255,.55); font-style: normal; }
.lab-read b { font: 700 15px/1 var(--font-mono); color: #fff; }
.lab-read b.man { color: var(--accent); }
.lab-warn { position: absolute; right: 16px; top: 16px; font: 700 10px/1 var(--font-mono); letter-spacing: .16em; padding: 8px 10px; border-radius: 99px; background: rgba(242,102,77,.92); color: #000; opacity: 0; transition: opacity .3s; }
.lab-warn.on { opacity: 1; }
.lab-panel { padding: 22px; background: #050505; border-left: 1px solid rgba(255,255,255,.07); display: flex; flex-direction: column; color: rgba(255,255,255,.88); }
:root[data-theme="deepspace"] .lab-panel { background: #0b1324; }
.lab-head { display: flex; justify-content: space-between; align-items: center; }
.lab-head b { font: 600 19px/1 var(--font-text); }
.lab-auto { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 10px; border: 1px solid rgba(255,255,255,.12); font: 600 12px/1 var(--font-mono); letter-spacing: .1em; color: rgba(255,255,255,.6); transition: all .25s; }
.lab-auto i { width: 24px; height: 24px; border-radius: 6px; background: #1d1d1f; display: grid; place-items: center; font-style: normal; font-weight: 800; }
.lab-auto[aria-pressed="true"] { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.lab-auto[aria-pressed="true"] i { background: var(--accent); color: var(--accent-ink); }
.lab-tabs { display: grid; grid-template-columns: repeat(4, 1fr); margin: 20px -22px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.lab-tabs button { font: 600 12px/1 var(--font-mono); letter-spacing: .1em; padding: 14px 0 16px; color: rgba(255,255,255,.55); position: relative; }
.lab-tabs button.on { color: var(--accent); }
.lab-tabs button.on::after { content: ""; position: absolute; left: 30%; right: 30%; bottom: 8px; height: 2px; background: var(--accent); border-radius: 1px; }
.lab-pane { display: none; padding-top: 22px; animation: pop .35s var(--ease); }
.lab-pane.on { display: block; }
.dial { display: block; margin-bottom: 22px; }
.dial span { display: flex; justify-content: space-between; font: 600 11px/1 var(--font-mono); letter-spacing: .14em; color: rgba(255,255,255,.5); margin-bottom: 12px; }
.dial span b { color: #fff; font-size: 14px; letter-spacing: .02em; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--accent) var(--p, 50%), rgba(255,255,255,.14) var(--p, 50%)); }
input[type="range"]::-moz-range-track { height: 3px; border-radius: 2px; background: rgba(255,255,255,.14); }
input[type="range"]::-moz-range-progress { height: 3px; background: var(--accent); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -9.5px; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.5), 0 0 0 4px rgba(var(--accent-rgb), .0); transition: box-shadow .2s; }
input[type="range"]:active::-webkit-slider-thumb { box-shadow: 0 2px 8px rgba(0,0,0,.5), 0 0 0 6px rgba(var(--accent-rgb), .25); }
input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.5); }
.hint { font-size: 13.5px; color: rgba(255,255,255,.45); margin: 0; }
.hint b { color: rgba(255,255,255,.75); }
.tog { display: inline-flex; align-items: center; gap: 12px; font: 600 12px/1 var(--font-mono); letter-spacing: .14em; color: rgba(255,255,255,.7); margin-bottom: 18px; cursor: pointer; }
.tog input { display: none; }
.tog i { width: 44px; height: 26px; border-radius: 99px; background: rgba(255,255,255,.15); position: relative; transition: background-color .25s; }
.tog i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .3s var(--ease-spring); }
.tog input:checked + i { background: var(--accent); }
.tog input:checked + i::after { transform: translateX(18px); }
.wb-presets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 20px; }
.wb-presets button { font: 700 10.5px/1 var(--font-mono); letter-spacing: .08em; padding: 10px 0; border-radius: 8px; border: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.6); transition: all .2s; }
.wb-presets button.on { border-color: var(--accent); color: var(--accent); background: rgba(var(--accent-rgb), .1); }
.lab-aids { margin-top: auto; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.08); }
.lab-aids > div { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.lab-aids .chip { height: 32px; padding: 0 12px; font-size: 12.5px; border-color: rgba(255,255,255,.14); color: rgba(255,255,255,.6); background: transparent; }
.lab-aids .chip.on { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 55%, transparent); background: rgba(var(--accent-rgb), .1); }
@media (max-width: 960px) { .lab { grid-template-columns: 1fr; } .lab-panel { border-left: 0; border-top: 1px solid rgba(255,255,255,.07); } .lab-hist { width: 140px; height: 64px; } .lab-read b { font-size: 12px; } }
.tools-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 64px; }
.tool { background: var(--bg); padding: 30px 28px; transition: background-color .3s; }
.tool:hover { background: var(--bg-2); }
.tool .ic { font-size: 24px; color: var(--accent); }
.tool b { display: block; font: 600 18px/1.2 var(--font-text); margin: 16px 0 8px; }
.tool p { margin: 0; color: var(--text-2); font-size: 15px; }
@media (max-width: 860px) { .tools-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .tools-grid { grid-template-columns: 1fr; } }

/* ---- Processing ----------------------------------------------------------------- */
.proc-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 34px; }
.ptile { text-align: left; padding: 18px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--surface); transition: all .3s; }
.ptile b { display: block; font: 700 14px/1 var(--font-mono); letter-spacing: .16em; }
.ptile span { display: block; font: 600 10.5px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin-top: 10px; }
.ptile.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.ptile.on b { color: var(--accent); }
.fmt { margin-top: 30px; display: grid; grid-template-columns: auto 1fr; gap: 14px 18px; align-items: center; }
.fmt p { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.fmt i { font: 600 12px/1 var(--font-mono); font-style: normal; padding: 8px 11px; border-radius: 8px; background: var(--surface-2); color: var(--text-2); }
.aspect-demo { position: relative; aspect-ratio: 4 / 3; border-radius: 24px; overflow: hidden; background: #000; }
.aspect-demo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: var(--proc, none); transition: filter .6s var(--ease); }
.aspect-frame { position: absolute; left: 50%; top: 44%; transform: translate(-50%, -50%); width: var(--fw, 100%); height: var(--fh, 100%); box-shadow: 0 0 0 999px rgba(0,0,0,.62); outline: 1.5px solid var(--accent); transition: width .8s var(--ease), height .8s var(--ease); }
.aspect-frame span { position: absolute; left: 12px; top: 12px; font: 700 12px/1 var(--font-mono); letter-spacing: .14em; color: var(--accent); background: rgba(0,0,0,.5); padding: 7px 9px; border-radius: 6px; }
.aspect-btns { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 4px; flex-wrap: wrap; padding: 0 10px; }
.aspect-btns button { font: 700 11px/1 var(--font-mono); letter-spacing: .06em; padding: 9px 11px; border-radius: 99px; background: rgba(0,0,0,.55); backdrop-filter: blur(8px); color: rgba(255,255,255,.7); transition: all .2s; }
.aspect-btns button.on { background: var(--accent); color: var(--accent-ink); }

/* ---- AI ------------------------------------------------------------------------- */
.ai-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 56px; }
.ai-card { border: 1px solid var(--line); border-radius: 28px; padding: 28px; background: var(--bg-2); display: flex; flex-direction: column; gap: 22px; }
.ai-badge { display: inline-flex; align-items: center; gap: 8px; font: 700 11px/1 var(--font-mono); letter-spacing: .18em; color: var(--accent); padding: 8px 12px; border-radius: 99px; background: color-mix(in srgb, var(--accent) 12%, transparent); }
.ai-head h3 { font: 650 28px/1.1 var(--font-display); letter-spacing: -.02em; margin: 18px 0 10px; }
.ai-head p { margin: 0; color: var(--text-2); font-size: 15.5px; }
.ai-media { position: relative; aspect-ratio: 3 / 2; border-radius: 18px; overflow: hidden; background: #000; }
.ai-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ai-media .a-pick { opacity: 0; transition: opacity .9s var(--ease); }
.ai-media.done .a-pick { opacity: 1; }
.ai-scan { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 0, rgba(var(--accent-rgb), .0) 40%, rgba(var(--accent-rgb), .45) 50%, transparent 52%); background-size: 100% 220%; opacity: 0; }
.ai-media.scanning .ai-scan, .match-flow.scanning .match-ref::after { opacity: 1; animation: scan 1.1s var(--ease) forwards; }
@keyframes scan { from { background-position: 0 100%; } to { background-position: 0 -20%; } }
.ai-result { position: absolute; left: 14px; bottom: 14px; padding: 12px 16px; border-radius: 14px; background: rgba(0,0,0,.55); backdrop-filter: blur(12px); color: #fff; display: grid; gap: 4px; opacity: 0; transform: translateY(8px); transition: all .5s var(--ease) .2s; }
.ai-media.done .ai-result { opacity: 1; transform: none; }
.ai-result em { font: 700 10px/1 var(--font-mono); letter-spacing: .2em; color: var(--accent); font-style: normal; }
.ai-result b { font: 650 20px/1.1 var(--font-display); }
.ai-result span { font-size: 13px; color: rgba(255,255,255,.7); }
.ai-scenes { display: flex; flex-wrap: wrap; gap: 6px; }
.ai-scenes .chip { height: 32px; font-size: 13px; padding: 0 13px; }
.match-flow { display: grid; grid-template-columns: 1fr auto 1.4fr; gap: 14px; align-items: center; }
.match-ref { position: relative; aspect-ratio: 3 / 4; border-radius: 16px; overflow: hidden; background: #000; }
.match-ref img { width: 100%; height: 100%; object-fit: cover; }
.match-ref span { position: absolute; left: 8px; top: 8px; font: 700 9px/1 var(--font-mono); letter-spacing: .18em; color: #fff; padding: 6px 8px; border-radius: 99px; background: rgba(0,0,0,.5); }
.match-ref::after { content: ""; position: absolute; inset: 0; opacity: 0; background: linear-gradient(180deg, transparent 40%, rgba(var(--accent-rgb), .55) 50%, transparent 52%); background-size: 100% 220%; }
.match-arrow { color: var(--accent); display: grid; justify-items: center; gap: 6px; font-size: 22px; }
.match-arrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); animation: ping 1.6s infinite; }
.match-targets { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mt { position: relative; aspect-ratio: 3 / 2; border-radius: 12px; overflow: hidden; background: #000; }
.mt img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mt img.m { opacity: 0; transition: opacity .8s var(--ease); transition-delay: var(--d, 0ms); }
.match-flow.done .mt img.m { opacity: 1; }
.mt span { position: absolute; right: 6px; bottom: 6px; font: 700 8.5px/1 var(--font-mono); letter-spacing: .14em; padding: 5px 7px; border-radius: 99px; background: rgba(0,0,0,.55); color: var(--accent); opacity: 0; transition: opacity .4s; transition-delay: var(--d, 0ms); }
.match-flow.done .mt span { opacity: 1; }
@media (max-width: 960px) { .ai-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .match-flow { grid-template-columns: 1fr; } .match-ref { aspect-ratio: 3 / 2; } .match-arrow { transform: rotate(90deg); } }

/* ---- Editor -------------------------------------------------------------------------- */
.ed { display: grid; grid-template-columns: 1.55fr 1fr; margin-top: 56px; border: 1px solid var(--line); border-radius: 28px; overflow: hidden; background: #000; color: rgba(255,255,255,.88); box-shadow: 0 40px 120px -40px rgba(0,0,0,.8); }
.ed-view { position: relative; padding: 18px; display: flex; flex-direction: column; justify-content: center; background: #000; }
.ed-canvas-wrap { position: relative; aspect-ratio: 3 / 2; border-radius: 6px; overflow: hidden; user-select: none; -webkit-user-select: none; }
#edCanvas { width: 100%; height: 100%; display: block; transition: transform .5s var(--ease); }
.ed-crop { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: var(--cw, 100%); height: var(--ch, 100%); box-shadow: 0 0 0 999px rgba(0,0,0,.6); outline: 1px solid rgba(255,255,255,.9); opacity: 0; transition: opacity .3s, width .6s var(--ease), height .6s var(--ease); pointer-events: none;
  background: linear-gradient(90deg, transparent calc(33.3% - .5px), rgba(255,255,255,.35) 0 calc(33.3% + .5px), transparent 0 calc(66.6% - .5px), rgba(255,255,255,.35) 0 calc(66.6% + .5px), transparent 0), linear-gradient(180deg, transparent calc(33.3% - .5px), rgba(255,255,255,.35) 0 calc(33.3% + .5px), transparent 0 calc(66.6% - .5px), rgba(255,255,255,.35) 0 calc(66.6% + .5px), transparent 0); }
.ed-crop.on { opacity: 1; }
.ed-crop i { position: absolute; width: 18px; height: 18px; border: 3px solid #fff; }
.ed-crop i:nth-child(1) { left: -3px; top: -3px; border-width: 3px 0 0 3px; } .ed-crop i:nth-child(2) { right: -3px; top: -3px; border-width: 3px 3px 0 0; }
.ed-crop i:nth-child(3) { left: -3px; bottom: -3px; border-width: 0 0 3px 3px; } .ed-crop i:nth-child(4) { right: -3px; bottom: -3px; border-width: 0 3px 3px 0; }
.ed-scan { position: absolute; inset: 0; pointer-events: none; opacity: 0; background: linear-gradient(90deg, transparent 45%, rgba(var(--accent-rgb), .5) 50%, transparent 52%); background-size: 220% 100%; }
.ed-scan.go { opacity: 1; animation: scanx 1.3s var(--ease) forwards; }
@keyframes scanx { from { background-position: 100% 0; } to { background-position: -20% 0; } }
.ed-before { position: absolute; left: 12px; top: 12px; font: 700 10px/1 var(--font-mono); letter-spacing: .2em; padding: 7px 10px; border-radius: 99px; background: rgba(0,0,0,.6); opacity: 0; transition: opacity .2s; }
.ed-before.on { opacity: 1; }
.ed-top { display: flex; justify-content: space-between; margin-top: 14px; }
.ed-compare, .ed-reset { display: flex; align-items: center; gap: 8px; font: 700 11px/1 var(--font-mono); letter-spacing: .14em; color: rgba(255,255,255,.6); padding: 10px 14px; border-radius: 99px; background: rgba(255,255,255,.06); transition: color .2s; user-select: none; -webkit-user-select: none; touch-action: none; }
.ed-compare:hover, .ed-reset:hover { color: var(--accent); }
.ed-panel { background: #050505; border-left: 1px solid rgba(255,255,255,.07); display: flex; flex-direction: column; min-height: 520px; }
:root[data-theme="deepspace"] .ed-panel { background: #0b1324; }
.ed-tools { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; padding: 12px; border-bottom: 1px solid rgba(255,255,255,.07); }
.ed-tools button { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 10px 0 9px; border-radius: 12px; font: 500 12px/1 var(--font-text); color: rgba(255,255,255,.55); transition: all .2s; }
.ed-tools button .ic { font-size: 20px; }
.ed-tools button.on { color: var(--accent); background: rgba(var(--accent-rgb), .12); }
.ed-body { padding: 20px 22px; flex: 1; overflow-y: auto; max-height: 560px; }
.ed-sub { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin: -4px -22px 18px; padding: 0 22px; }
.ed-sub::-webkit-scrollbar { display: none; }
.ed-sub button { flex: none; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 9px 12px; border-radius: 10px; font: 600 10.5px/1 var(--font-mono); letter-spacing: .1em; color: rgba(255,255,255,.5); }
.ed-sub button .ic { font-size: 17px; }
.ed-sub button.on { color: var(--accent); background: rgba(var(--accent-rgb), .1); }
.ed-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.07); font: 700 12px/1 var(--font-mono); letter-spacing: .16em; color: var(--accent); }
.ed-row span { display: flex; align-items: center; gap: 10px; }
.ed-row .tog { margin: 0; }
.ed-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.ed-grid button { font: 600 12px/1 var(--font-mono); padding: 12px 0; border-radius: 10px; border: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.65); transition: all .2s; }
.ed-grid button.on { border-color: var(--accent); color: var(--accent); background: rgba(var(--accent-rgb), .1); }
.ed-filters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ed-filters button { text-align: center; font: 500 12px/1.2 var(--font-text); color: rgba(255,255,255,.6); }
.ed-filters img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 8px; border: 2px solid transparent; margin-bottom: 6px; }
.ed-filters button.on { color: var(--accent); }
.ed-filters button.on img { border-color: var(--accent); }
.ed-cta { width: 100%; height: 48px; border-radius: 14px; background: var(--accent); color: var(--accent-ink); font: 700 13px/1 var(--font-mono); letter-spacing: .14em; display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 18px; }
.ed-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ed-stats div { padding: 12px; border-radius: 12px; background: rgba(255,255,255,.04); animation: pop .4s var(--ease) both; animation-delay: var(--d, 0ms); }
.ed-stats em { display: block; font: 600 9.5px/1 var(--font-mono); letter-spacing: .16em; color: rgba(255,255,255,.45); font-style: normal; }
.ed-stats b { display: block; font: 600 15px/1.2 var(--font-text); margin-top: 6px; }
.ed-note { font-size: 12.5px; color: rgba(255,255,255,.4); margin: 14px 0 0; }
.ed-more { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 40px; }
.ed-more b { font: 600 16px/1.2 var(--font-text); }
.ed-more p { margin: 6px 0 0; color: var(--text-2); font-size: 14.5px; }
@media (max-width: 960px) { .ed { grid-template-columns: 1fr; } .ed-panel { border-left: 0; border-top: 1px solid rgba(255,255,255,.07); min-height: 0; } .ed-more { grid-template-columns: 1fr 1fr; } }

/* ---- Video ---------------------------------------------------------------------------- */
.vid-phone-wrap { display: grid; place-items: center; }
.vid { margin-top: 34px; padding: 16px; border-radius: 24px; background: #000; border: 1px solid var(--line); color: rgba(255,255,255,.88); }
.vid-player { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; }
.vid-frame { position: absolute; inset: 0; transform-origin: 50% 50%; }
.vid-frame img { position: absolute; inset: -6%; width: 112%; height: 112%; max-width: none; object-fit: cover; transition: opacity .5s; }
.vid-frame img#vidB { opacity: 0; }
.vid-play { position: absolute; left: 50%; top: 50%; width: 60px; height: 60px; margin: -30px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.18); backdrop-filter: blur(12px); color: #fff; font-size: 22px; transition: opacity .3s, transform .3s var(--ease); }
.vid-play:hover { transform: scale(1.08); }
.vid.playing .vid-play { opacity: 0; }
.vid.playing .vid-player:hover .vid-play { opacity: 1; }
.vid-grade { position: absolute; left: 12px; top: 12px; font: 700 10px/1 var(--font-mono); letter-spacing: .18em; padding: 7px 10px; border-radius: 99px; background: rgba(0,0,0,.5); color: var(--accent); }
.vid-times { display: flex; justify-content: space-between; padding: 14px 4px 10px; font: 700 13px/1 var(--font-mono); }
.vid-times b { color: var(--accent); }
.vid-times span { color: rgba(255,255,255,.5); }
.vid-track { position: relative; height: 56px; border-radius: 10px; overflow: visible; touch-action: none; }
.vid-track canvas { width: 100%; height: 100%; border-radius: 10px; display: block; opacity: .55; }
.vid-sel { position: absolute; top: -3px; bottom: -3px; left: var(--in, 0%); right: calc(100% - var(--out, 100%)); border: 3px solid var(--accent); border-left-width: 14px; border-right-width: 14px; border-radius: 10px; box-shadow: 0 0 0 999px rgba(0,0,0,0); overflow: hidden; }
.vid-sel::before { content: ""; position: absolute; inset: 0; background: transparent; }
.vid-sel .h { position: absolute; top: 0; bottom: 0; width: 22px; cursor: ew-resize; }
.vid-sel .h.l { left: -18px; } .vid-sel .h.r { right: -18px; }
.vid-sel .h::after { content: ""; position: absolute; top: 35%; bottom: 35%; left: 50%; width: 2px; margin-left: -1px; border-radius: 1px; background: rgba(0,0,0,.55); }
.vid-track .vid-strip-hi { position: absolute; inset: 0; }
.vid-head { position: absolute; top: -8px; bottom: -8px; left: var(--t, 0%); width: 2px; margin-left: -1px; background: #fff; border-radius: 1px; box-shadow: 0 0 6px rgba(0,0,0,.6); pointer-events: none; }
.vid-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 18px; }
.vid-tabs button { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 11px 0; border-radius: 12px; font: 500 12.5px/1 var(--font-text); color: rgba(255,255,255,.55); }
.vid-tabs .ic { font-size: 20px; }
.vid-tabs button.on { color: var(--accent); background: rgba(var(--accent-rgb), .12); }
.vid-opts { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 14px; min-height: 56px; align-items: flex-start; }
.vid-opts .chip { height: 32px; font-size: 13px; border-color: rgba(255,255,255,.14); color: rgba(255,255,255,.65); background: transparent; }
.vid-opts .chip.on { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 55%, transparent); background: rgba(var(--accent-rgb), .1); }
.vid-opts .dial { flex: 1 1 45%; margin: 0; }
.vid-opts p { margin: 4px 2px; font-size: 13.5px; color: rgba(255,255,255,.5); }

/* ---- Watch duo ------------------------------------------------------------------------- */
.duo { display: flex; align-items: center; justify-content: center; gap: clamp(20px, 5vw, 80px); margin-top: 60px; }
.duo-link { position: relative; width: clamp(40px, 10vw, 140px); height: 2px; background: repeating-linear-gradient(90deg, var(--line-2) 0 6px, transparent 6px 12px); }
.duo-link .pulse { position: absolute; top: 50%; left: 100%; width: 12px; height: 12px; margin: -6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 16px 4px var(--glow); opacity: 0; }
.duo-link .pulse.go { animation: travel .45s var(--ease) forwards; }
@keyframes travel { 0% { left: 100%; opacity: 1; } 100% { left: 0; opacity: 1; } }
.wscreen { color: #fff; font-family: var(--font-mono); }
.w-prev { position: absolute; left: 3%; right: 3%; top: 3%; height: 68%; border-radius: 10cqw; overflow: hidden; background: #111; cursor: grab; touch-action: pan-y; }
.w-prev img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s var(--ease), opacity .3s; }
.w-badge { position: absolute; left: 5cqw; top: 5cqw; padding: 2cqw 3cqw; border-radius: 3.2cqw; background: rgba(0,0,0,.55); backdrop-filter: blur(6px); display: grid; gap: 1cqw; }
.w-badge span { display: flex; align-items: center; gap: 2cqw; }
.w-badge .live { width: 3cqw; height: 3cqw; border-radius: 50%; background: var(--live); box-shadow: 0 0 6px var(--live); }
.w-badge em { font: 700 5.2cqw/1 var(--font-display); font-style: normal; letter-spacing: .02em; }
.w-badge small { font: 600 4.2cqw/1 var(--font-mono); opacity: .8; }
.w-zoom { position: absolute; left: 50%; bottom: 4cqw; transform: translateX(-50%); display: flex; align-items: center; gap: 2cqw; padding: 2cqw 4cqw; border-radius: 99px; background: rgba(0,0,0,.55); backdrop-filter: blur(6px); font: 700 6cqw/1 var(--font-display); transition: color .2s; }
.w-zoom .ic { width: 5.5cqw; height: 5.5cqw; }
.w-zoom.hot { color: var(--accent); }
.w-count { position: absolute; inset: 0; display: grid; place-items: center; font: 300 30cqw/1 var(--font-display); text-shadow: 0 2px 20px rgba(0,0,0,.6); opacity: 0; }
.w-count.go { animation: count 1s var(--ease); }
.w-plate { position: absolute; left: 3%; right: 3%; bottom: 3%; height: 24%; display: flex; align-items: center; justify-content: space-around; border-radius: 13cqw; background: #1f1f1f; border: .5px solid #3d3d3d; }
:root[data-theme="deepspace"] .w-plate { background: #101b2f; border-color: #243653; }
.w-plate > button:not(.w-shutter) { display: flex; flex-direction: column; align-items: center; gap: 1.5cqw; font: 500 5cqw/1 var(--font-text); color: #fff; width: 26cqw; }
.w-plate .ic { width: 8.5cqw; height: 8.5cqw; }
.w-shutter { width: 26cqw; height: 26cqw; border-radius: 50%; background: var(--accent); display: grid; place-items: center; box-shadow: 0 0 6px rgba(0,0,0,.4); transition: transform .12s, background-color .3s; }
.w-shutter i { width: 20cqw; height: 20cqw; border-radius: 50%; border: 1px solid #fff; transition: all .25s var(--ease); }
:root[data-theme="deepspace"] .w-shutter i { border-color: #080e1c; }
.w-shutter:active { transform: scale(.9); }
.wscreen.video .w-shutter { background: var(--rec); }
.wscreen.video.rec .w-shutter i { width: 8cqw; height: 8cqw; border-radius: 2cqw; background: #fff; border: 0; }
.w-sheet { position: absolute; inset: 0; background: rgba(0,0,0,.94); padding: 10cqw 7cqw; display: flex; flex-direction: column; gap: 3cqw; transform: translateY(100%); transition: transform .45s var(--ease); }
:root[data-theme="deepspace"] .w-sheet { background: rgba(8,14,28,.96); }
.w-sheet.open { transform: none; }
.w-sheet > b { font: 700 8cqw/1 var(--font-text); margin-bottom: 2cqw; }
.w-sheet .label { font-size: 4.2cqw; color: rgba(255,255,255,.55); letter-spacing: .1em; }
.w-seg { display: flex; gap: 2cqw; }
.w-seg button { flex: 1; padding: 3.4cqw 0; border-radius: 4cqw; background: #222; font: 600 5cqw/1 var(--font-text); color: #fff; }
.w-seg button.on { background: var(--accent); color: var(--accent-ink); }
.w-done { margin-top: auto; padding: 4cqw; border-radius: 99px; background: #2a2a2a; font: 600 5.4cqw/1 var(--font-text); color: var(--accent); }
.watch.buzz { animation: buzz .3s linear; }
@keyframes buzz { 20% { transform: translateX(-2px) rotate(-.6deg); } 40% { transform: translateX(2px) rotate(.6deg); } 60% { transform: translateX(-1.5px); } 80% { transform: translateX(1.5px); } }
.watch-feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 32px; margin: 70px 0 30px; }
.watch-feats .ic { font-size: 22px; color: var(--accent); }
.watch-feats b { display: block; font: 600 17px/1.2 var(--font-text); margin: 12px 0 6px; }
.watch-feats p { margin: 0; color: var(--text-2); font-size: 15px; }
@media (max-width: 760px) { .watch-feats { grid-template-columns: 1fr 1fr; } .duo { gap: 14px; } .duo-link { display: none; } }

/* ---- Everywhere --------------------------------------------------------------------------- */
.every-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 56px; grid-auto-flow: dense; }
.ecard { position: relative; padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-2); overflow: hidden; transition: border-color .3s, transform .5s var(--ease); }
.ecard::before { content: ""; position: absolute; inset: 0; background: radial-gradient(400px circle at var(--cx, 50%) var(--cy, 0%), rgba(var(--accent-rgb), .1), transparent 50%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.ecard:hover { border-color: color-mix(in srgb, var(--accent) 40%, transparent); transform: translateY(-4px); }
.ecard:hover::before { opacity: 1; }
.ecard > .ic { font-size: 26px; color: var(--accent); }
.ecard h3 { font: 600 19px/1.2 var(--font-text); margin: 18px 0 8px; }
.ecard p { margin: 0; color: var(--text-2); font-size: 15px; }
.ecard.wide { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; justify-content: flex-end; background: radial-gradient(600px circle at 0% 0%, rgba(var(--accent-rgb), .12), transparent 60%), var(--bg-2); }
.ecard.wide > .ic { font-size: 34px; margin-bottom: auto; }
.siri-line { font: 600 clamp(20px, 2.2vw, 26px)/1.25 var(--font-display) !important; color: var(--text) !important; margin-bottom: 12px !important; letter-spacing: -.01em; min-height: 2.6em; }
.caret { display: inline-block; width: 2px; height: 1em; background: var(--accent); vertical-align: -3px; margin-left: 3px; animation: blink 1s steps(1) infinite; }
@media (max-width: 1000px) { .every-grid { grid-template-columns: 1fr 1fr; } .ecard.wide { grid-row: auto; } }
@media (max-width: 560px) {
  .every-grid { gap: 10px; margin-top: 36px; }
  .ecard { padding: 18px 16px; border-radius: 18px; }
  .ecard > .ic { font-size: 22px; }
  .ecard h3 { font-size: 16px; margin: 12px 0 6px; }
  .ecard p { font-size: 13.5px; line-height: 1.45; }
  .ecard.wide { padding: 22px 20px; }
  .ecard.wide > .ic { font-size: 28px; margin-bottom: 14px; }
}

/* ---- Themes ------------------------------------------------------------------------------- */
.theme-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 34px; }
.tl { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); text-align: left; transition: all .25s; }
.tl img { width: 40px; height: 40px; border-radius: 10px; flex: none; }
.tl b { display: block; font: 600 14.5px/1.2 var(--font-text); }
.tl span { display: block; font-size: 12.5px; color: var(--text-3); margin-top: 2px; }
.tl:hover { border-color: var(--line-2); transform: translateX(3px); }
.tl[aria-pressed="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.theme-phones { position: relative; display: flex; justify-content: center; align-items: center; min-height: 560px; }
.theme-phones .tp-a { transform: rotate(-6deg) translateX(18%); z-index: 1; }
.theme-phones .tp-b { transform: rotate(6deg) translateX(-18%) translateY(30px); z-index: 2; }
@media (max-width: 520px) { .theme-list { gap: 6px; margin-top: 26px; } .tl { gap: 10px; padding: 8px; border-radius: 14px; } .tl img { width: 34px; height: 34px; border-radius: 9px; } .tl b { font-size: 13.5px; } .tl span span { display: none; } .theme-phones { min-height: 440px; } }

/* ---- Tour ----------------------------------------------------------------------------------- */
.tour-rail { display: flex; gap: 34px; overflow-x: auto; padding: 56px max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))) 30px; scroll-snap-type: x mandatory; scrollbar-width: none; cursor: grab; }
.tour-rail::-webkit-scrollbar { display: none; }
.tour-rail.drag { cursor: grabbing; scroll-snap-type: none; }
.tour-item { flex: none; scroll-snap-align: center; display: grid; justify-items: center; gap: 18px; transition: transform .5s var(--ease); }
.tour-item:hover { transform: translateY(-8px); }
.tour-item figcaption { text-align: center; max-width: 250px; }
.tour-item figcaption b { display: block; font: 600 16px/1.2 var(--font-text); }
.tour-item figcaption span { font-size: 14px; color: var(--text-2); }
.tour-item img { pointer-events: none; }

/* ---- Privacy --------------------------------------------------------------------------------- */
.priv { position: relative; text-align: center; padding: clamp(48px, 7vw, 90px) clamp(20px, 5vw, 70px); border-radius: 36px; border: 1px solid var(--line); background: radial-gradient(800px circle at 50% 0%, rgba(var(--accent-rgb), .1), transparent 60%), var(--bg-2); overflow: hidden; }
.priv-shield { width: 76px; height: 76px; margin: 0 auto 26px; border-radius: 24px; display: grid; place-items: center; font-size: 36px; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); box-shadow: 0 0 60px -10px var(--glow); }
.priv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin: 50px 0 44px; text-align: left; }
.priv-grid b { font: 600 17px/1.2 var(--font-text); }
.priv-grid p { margin: 8px 0 0; color: var(--text-2); font-size: 15px; }
@media (max-width: 900px) { .priv-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .priv-grid { grid-template-columns: 1fr; } }

/* ---- Download -------------------------------------------------------------------------------- */
.download { text-align: center; overflow: hidden; padding-block: clamp(140px, 18vw, 240px); }
.eclipse.big { width: min(900px, 160vw); opacity: .9; }
.dl-in { position: relative; display: grid; justify-items: center; }
.dl-icon { width: 112px; height: 112px; border-radius: 26px; box-shadow: 0 0 0 1px var(--line-2), 0 30px 80px -20px var(--glow); margin-bottom: 34px; }
.dl-cta { display: grid; justify-items: center; gap: 14px; margin-top: 36px; }
.appstore.big { height: 64px; padding: 0 28px 0 22px; border-radius: 16px; }
.appstore.big svg { width: 30px; height: 30px; }
.appstore.big b { font-size: 26px; }
.soon { font: 600 11px/1 var(--font-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--accent); display: none; }
.soon.on { display: block; }
.req { max-width: 640px; font-size: 13.5px; color: var(--text-3); margin-top: 34px; }

/* ---- Responsive hero ------------------------------------------------------------------------- */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .ochip:nth-child(odd) { --l: 8% !important; } .ochip:nth-child(even) { --l: 92% !important; }
  .hero-copy { display: grid; justify-items: center; }
  .hero-copy .lede { margin-inline: auto; }
  .hero-ctas, .hero-meta { justify-content: center; }
  .hero-stage { min-height: 760px; margin-top: 20px; }
  .ochip { font-size: 9.5px; padding: 8px 11px; }
}
@media (max-width: 700px) { .orbit-chips { display: none; } }
@media (max-width: 560px) {
  .hero-stage { min-height: calc(74vw * 2.25 + 60px); }
  .appstore { height: 52px; }
}

/* Grid children may shrink below their content's min width (prevents horizontal overflow on phones). */
.hero-grid > *, .split-2 > *, .modes-grid > *, .lab > *, .ed > *, .ai-grid > *, .sig-grid > *, .every-grid > *, .match-flow > * { min-width: 0; }

/* Minimal White: the theme accent is near-black, so dark device-like panels and
   photo overlays use a light accent instead (as the app does on its viewfinder). */
:root[data-theme="minimal"] :is(.cam, .ed, .lab, .vid, .wscreen, .watch, .ex-stage, .ai-media, .match-ref, .mt, .pt-frame, .aspect-demo, .sig-media, .duo-link) {
  --accent: #f4f4f4; --accent-hi: #ffffff; --accent-rgb: 244, 244, 244; --accent-ink: #111; --glow: rgba(255, 255, 255, .25);
}
:root[data-theme="minimal"] .pt-dial button.on { background: #111; color: #fff; }

/* ---- Reel ------------------------------------------------------------------ */
.reel-sec { margin-top: 90px; }
.reel { position: relative; aspect-ratio: 16 / 9; border-radius: 28px; overflow: hidden; background: #000; box-shadow: 0 50px 140px -50px rgba(0,0,0,.9), 0 0 0 1px var(--line); }
.reel video { width: 100%; height: 100%; object-fit: cover; display: block; }
.reel::after { content: ""; position: absolute; inset: 45% 0 0 0; z-index: 1; pointer-events: none; background: linear-gradient(transparent, rgba(0,0,0,.55)); }
.reel-cap { position: absolute; z-index: 2; left: clamp(16px, 4vw, 48px); bottom: clamp(20px, 4vw, 44px); color: #fff; display: grid; gap: 6px; text-shadow: 0 2px 24px rgba(0,0,0,.6); }
.reel-cap em { font: 700 11px/1 var(--font-mono); letter-spacing: .26em; color: var(--accent); font-style: normal; }
.reel-cap b { font: 650 clamp(30px, 5vw, 64px)/1 var(--font-display); letter-spacing: -.03em; }
.reel-cap span { font: 500 clamp(13px, 1.4vw, 16px)/1.3 var(--font-text); color: rgba(255,255,255,.75); }
.reel-cap.swap b, .reel-cap.swap span { animation: capIn .6s var(--ease); }
@keyframes capIn { from { opacity: 0; transform: translateY(10px); filter: blur(6px); } }
.reel-bar { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.12); }
.reel-bar i { display: block; height: 100%; width: 0; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.reel-btn { position: absolute; z-index: 2; right: clamp(14px, 3vw, 32px); bottom: clamp(20px, 4vw, 40px); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.4); backdrop-filter: blur(10px); color: #fff; border: 1px solid rgba(255,255,255,.2); }
.reel-tag { position: absolute; z-index: 2; right: clamp(14px, 3vw, 32px); top: clamp(14px, 2.4vw, 26px); text-shadow: 0 1px 8px rgba(0,0,0,.6); font: 700 10px/1 var(--font-mono); letter-spacing: .2em; color: rgba(255,255,255,.75); }
:root[data-theme="minimal"] .reel { --accent: #f4f4f4; }
@media (max-width: 600px) { .reel { aspect-ratio: 4 / 3; border-radius: 20px; } .reel-tag { display: none; } }
