/* Codi Switcher site · design system (approved comp design/site/site-v3c.png, learned from Apple's
   product pages): one short sentence per headline, one idea per viewport, dark sections where the LED
   wall glows and light sections for details, 28 px cards, pill buttons, one accent: a calm Codi blue (hue of brand arena-600, chroma lowered ~37%: #2B5FBF actions, white text 6.0:1; #6FA2EE accents on dark, 8:1). */
@font-face { font-family: "Google Sans Flex"; src: url("/fonts/google-sans-flex-latin.woff2") format("woff2"); font-weight: 400 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Google Sans Flex"; src: url("/fonts/google-sans-flex-latin-ext.woff2") format("woff2"); font-weight: 400 900; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  /* colour */
  --black: #000; --card-d: #141416; --card-d2: #1d1d1f; --ink-d: #f5f5f7; --ink-d2: #a1a1a6;
  --white: #fff; --card-l: #f5f5f7; --ink-l: #1d1d1f; --ink-l2: #6e6e73; --line-l: #d2d2d7;
  --accent: #2B5FBF; --accent-hover: #3569CA; --accent-bright: #6FA2EE; --accent-ink: #fff; --red: #ff3b30; --amber: #ffb020;
  /* type */
  --font: "Google Sans Flex", "Google Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --t-display: clamp(48px, 7.2vw, 104px); --t-h2: clamp(36px, 4.8vw, 68px); --t-sub: clamp(19px, 1.7vw, 24px); --t-body: 17px;
  /* shape, space, motion */
  --r-card: 28px; --r-tile: 22px; --r-pill: 980px;
  --w: min(1200px, calc(100vw - 48px)); --w-wide: min(1380px, calc(100vw - 32px));
  --sec: clamp(96px, 12vw, 168px);
  --ease: cubic-bezier(.25, .1, .25, 1); --ease-out: cubic-bezier(.16, 1, .3, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 52px; }
body { margin: 0; background: var(--black); color: var(--ink-d); font: 400 var(--t-body)/1.47 var(--font); -webkit-font-smoothing: antialiased; }
::selection { background: rgba(111, 162, 238, .35); }
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.022em; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 3px; border-radius: 8px; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.dark { background: var(--black); color: var(--ink-d); }
.light { background: var(--white); color: var(--ink-l); }

/* reveal: visible by default; with JS, items rise in once as they enter (staggered by --i) */
.js .hero .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms); }
.js .hero .reveal.in { opacity: 1; transform: none; }
/* everything else moves WITH the scroll (site.js sets --p 0→1 as the element rises into view), like Apple's pages:
   text fades from faint and rises a little; media rises further and settles from a slight zoom-out */
.js .scrub { opacity: calc(.08 + var(--p, 1) * .92); transform: translate3d(0, calc((1 - var(--p, 1)) * 32px), 0); will-change: opacity, transform; }
.js [data-s="media"].scrub { opacity: calc(.2 + var(--p, 1) * .8); transform: translate3d(0, calc((1 - var(--p, 1)) * 72px), 0) scale(calc(.94 + var(--p, 1) * .06)); transform-origin: 50% 0; }
/* statement: one paragraph, each word lights up in turn */
.statement { padding: var(--sec) 0; }
.words { width: min(980px, calc(100vw - 48px)); margin: 0 auto; font-size: clamp(30px, 4.2vw, 56px); font-weight: 600; line-height: 1.12; letter-spacing: -0.025em; text-wrap: pretty; }
.js .words .w { color: color-mix(in srgb, var(--ink-d) calc(var(--l, 1) * 100%), #2a2a2e); }

/* ---------- pills & links ---------- */
.pill { display: inline-flex; align-items: center; justify-content: center; min-height: 32px; padding: 0 16px; border: 0; border-radius: var(--r-pill); background: var(--accent); color: var(--accent-ink); font: 600 14px var(--font); text-decoration: none; cursor: pointer; transition: background .2s, transform .15s var(--ease-out); }
.pill:hover { background: var(--accent-hover); }
.pill:active { transform: scale(.97); }
.pill.big { min-height: 52px; padding: 0 30px; font-size: 18px; }
.pill.ghost { background: transparent; color: var(--ink-d); box-shadow: inset 0 0 0 1.5px rgba(245, 245, 247, .5); }
.pill.ghost:hover { background: rgba(255,255,255,.08); }
.link { color: var(--accent); font-size: 19px; font-weight: 500; text-decoration: none; }
.link:hover { text-decoration: underline; text-underline-offset: 4px; }
.fine { color: var(--ink-d2); font-size: 14px; }
.light .fine { color: var(--ink-l2); }

/* ---------- sticky product sub-nav ---------- */
.subnav { position: sticky; top: 0; z-index: 50; height: 52px; background: rgba(0, 0, 0, .72); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); box-shadow: 0 1px 0 rgba(255,255,255,.08); }
.subnav-in { width: var(--w); height: 100%; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.pname { font-size: 21px; font-weight: 600; letter-spacing: -0.01em; text-decoration: none; white-space: nowrap; }
.subnav nav { display: flex; align-items: center; gap: 24px; font-size: 13px; }
.subnav nav a:not(.pill) { color: var(--ink-d2); text-decoration: none; padding: 16px 0; }
.subnav nav a.here { color: var(--ink-d); box-shadow: inset 0 -1.5px 0 var(--ink-d); }
.subnav nav a:not(.pill):hover { color: var(--ink-d); }

/* ---------- hero: pinned venue ---------- */
.hero { height: 240vh; position: relative; }
.hero-pin { position: sticky; top: 52px; height: calc(100vh - 52px); min-height: 640px; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; overflow: hidden;
  background: linear-gradient(transparent 78%, #000), radial-gradient(ellipse 60% 50% at 38% 62%, rgba(43, 95, 191, .26), transparent 70%), radial-gradient(ellipse 80% 60% at 50% 110%, #0b1430, #000 70%); }
.hero-copy { text-align: center; padding: clamp(28px, 5vh, 64px) 24px 0; }
.lead, .sub, .fine { text-wrap: balance; }
.nw { white-space: nowrap; }
.product { font-size: clamp(20px, 2vw, 28px); font-weight: 600; }
.hero h1 { margin-top: 6px; font-size: var(--t-display); line-height: 1.02; letter-spacing: -0.03em; }
.lead { margin-top: 14px; font-size: var(--t-sub); color: var(--ink-d2); }
.hero-cta { margin-top: 24px; display: flex; flex-direction: column; align-items: center; gap: 10px; }

/* the venue: an LED wall at the back, a MacBook at the front, both showing the same show */
.venue { position: relative; width: var(--w-wide); margin: 22px auto 0; min-height: 0; transform-origin: 50% 100%; will-change: transform; }
.wall { position: absolute; left: 4%; top: 2%; width: 62%; aspect-ratio: 16 / 9; }
.wall-screen { position: absolute; inset: 0; border-radius: 6px; overflow: hidden; background: #0f1b3d; box-shadow: 0 0 0 6px #050608, 0 0 0 7px #1c1d22; }
.wall-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .7s var(--ease); }
.wall-screen img + img { opacity: 0; }
.wall-glow { position: absolute; inset: -18% -10% -30%; z-index: -1; background: radial-gradient(closest-side, rgba(43, 95, 191, .4), transparent); filter: blur(10px); }
.floor { position: absolute; left: -10%; right: -10%; bottom: -6%; height: 40%; pointer-events: none; background: radial-gradient(ellipse 45% 55% at 42% 35%, rgba(43, 95, 191, .2), transparent 70%);
  -webkit-mask: linear-gradient(transparent, #000 35%, #000 60%, transparent); mask: linear-gradient(transparent, #000 35%, #000 60%, transparent); }
.mac { position: absolute; right: 2%; bottom: 0; width: 46%; }
.mac-lid { padding: 1.4%; border-radius: 18px 18px 4px 4px; background: #0a0a0c; box-shadow: inset 0 0 0 1.5px #2c2c30, 0 30px 60px rgba(0,0,0,.6); }
.mac-screen { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 6px; background: #141518; }
.mac-screen > img { width: 100%; height: 100%; object-fit: cover; }
.mac-base { height: 0; padding-bottom: 3.2%; margin: 0 -6%; border-radius: 0 0 14px 14px; background: linear-gradient(#cfd0d4, #8d8f94 60%, #55575c); box-shadow: 0 18px 30px rgba(0,0,0,.6); }
/* the CONTROL screenshot's own PREVIEW / PROGRAM frames (measured from the app's DOM) */
.mon { position: absolute; top: 10.3%; height: 32.9%; width: 36.8%; overflow: hidden; background: #0f1b3d; border-radius: 2px; }
.mon.pvw { left: 1.6%; } .mon.pgm { left: 61.6%; }
.mon img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .7s var(--ease); }
.mon img:not([src]) { visibility: hidden; }
.mon img.next { opacity: 0; }
.hero-steps { width: max-content; margin: 0 auto 26px; z-index: 3; padding: 6px; display: flex; gap: 4px; border-radius: var(--r-pill); background: rgba(255,255,255,.08); backdrop-filter: blur(10px); font-size: 13px; }
.hero-steps button { padding: 7px 16px; border: 0; border-radius: var(--r-pill); background: none; color: var(--ink-d2); font: 500 14px var(--font); cursor: pointer; transition: background .4s, color .4s; }
.hero-steps button:hover { color: var(--ink-d); background: rgba(255,255,255,.08); }
.hero-steps button.on { background: var(--ink-d); color: #000; }

/* ---------- highlights: Apple's gallery. A light section, one big black card at a time with the caption inside at the top,
   the neighbours peeking at the edges; a pill of dots (the active one fills while its card plays) and a play/pause button. ---------- */
.highlights { padding: var(--sec) 0; background: var(--card-l); color: var(--ink-l); --gut: max(24px, calc((100vw - 1200px) / 2)); }
.highlights h2 { width: auto; margin: 0 var(--gut) 44px; font-size: var(--t-h2); }
.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: calc(100vw - 2 * var(--gut)); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 0 var(--gut); scroll-padding: 0 var(--gut); scrollbar-width: none; overscroll-behavior-x: contain; }
.gallery::-webkit-scrollbar { display: none; }
.tile { position: relative; scroll-snap-align: center; aspect-ratio: 2.06 / 1; border-radius: 28px; overflow: hidden; background: #000; color: var(--ink-d); display: grid; grid-template-rows: auto minmax(0, 1fr); }
.tile .cap { position: relative; z-index: 3; max-width: 34em; margin: 0 auto; padding: clamp(28px, 3.4vw, 48px) 28px 0; text-align: center; font-size: clamp(17px, 1.6vw, 24px); font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; color: var(--ink-d2); text-wrap: balance; }
.tile .cap b { color: var(--ink-d); font-weight: 600; }
.stage { position: relative; min-height: 0; display: grid; place-items: center; }
.pager { margin: 32px auto 0; display: flex; align-items: center; justify-content: center; gap: 16px; }
.dots { display: flex; align-items: center; gap: 14px; height: 56px; padding: 0 24px; border-radius: var(--r-pill); background: rgba(0, 0, 0, .06); backdrop-filter: blur(10px); }
.dots button { position: relative; width: 8px; height: 8px; padding: 0; border: 0; border-radius: 4px; background: rgba(0, 0, 0, .42); overflow: hidden; cursor: pointer; transition: width .45s var(--ease-out), background .3s; }
.dots button::before { content: ""; position: absolute; inset: -12px -6px; }
.dots button:hover { background: rgba(0, 0, 0, .6); }
.dots button.on { width: 48px; background: rgba(0, 0, 0, .2); }
.dots button.on::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: rgba(0, 0, 0, .6); transform-origin: left; transform: scaleX(0); animation: dotfill var(--dur, 6s) linear forwards; }
@keyframes dotfill { to { transform: none; } }
.pp { width: 56px; height: 56px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .06); display: grid; place-items: center; cursor: pointer; transition: background .2s; }
.pp:hover { background: rgba(0, 0, 0, .1); }
.pp svg { width: 22px; height: 22px; fill: none; stroke: var(--ink-l); stroke-width: 2.6; stroke-linecap: round; }
.pp .i-play { display: none; fill: var(--ink-l); stroke: none; } .highlights.held .pp .i-play { display: block; } .highlights.held .pp .i-pause { display: none; }
.highlights.paused .tile.play, .highlights.paused .tile.play *, .highlights.paused .tile.play *::before, .highlights.paused .dots button::after { animation-play-state: paused !important; }
@keyframes rise { from { opacity: 0; transform: translateY(18px) scale(.97); } }
/* the resting look of every card is its last frame (what the peeking neighbours show); .play replays it from the start */

/* AI: the request, big, over a soft spectrum glow; then the switcher's answer */
.ai-glow { position: absolute; left: 50%; top: 58%; width: min(70%, 760px); aspect-ratio: 3 / 1; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .16), transparent), conic-gradient(from 200deg, #6FA2EE, #2B5FBF, #9b7fe0, #e38a6d, #e9c27a, #6FA2EE); filter: blur(42px); opacity: .55; }
.ask-big { position: relative; margin: 0 24px; text-align: center; font-size: clamp(30px, 4.6vw, 68px); font-weight: 600; line-height: 1.04; letter-spacing: -0.03em; text-wrap: balance; }
.ask-big span { display: inline-block; }
.reply { position: absolute; left: 50%; bottom: clamp(22px, 3.2vw, 44px); transform: translateX(-50%); display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; padding: 8px 16px; border-radius: var(--r-pill); background: rgba(255,255,255,.08); font-size: clamp(13px, 1.1vw, 16px); font-weight: 600; color: var(--accent-bright); }
.reply i { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 10px var(--red); }
.t-ai.play .ai-glow { animation: glow 6s var(--ease-out) both; }
@keyframes glow { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.6); } 10% { opacity: .7; } 30% { transform: translate(-50%, -50%) scale(1.05); } 100% { opacity: .55; transform: translate(-50%, -50%) scale(1); } }
.t-ai.play .ask-big span:nth-child(1) { animation: rise .6s var(--ease-out) .05s both; }
.t-ai.play .ask-big span:nth-child(2) { animation: rise .6s var(--ease-out) .4s both; }
.t-ai.play .reply { animation: replyin .55s var(--ease-out) 1.2s both; }
@keyframes replyin { from { opacity: 0; transform: translate(-50%, 16px); } }
.t-ai.play .reply i { animation: pulse 1.2s ease-in-out 1.8s 3; }
@keyframes pulse { 50% { opacity: .35; } }

/* cameras: a 2×2 multiview, the red tally cuts between feeds */
.mv { height: 84%; aspect-ratio: 16 / 9; max-width: 92%; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; padding: 14px; position: relative; border-radius: 14px; background: #0a0a0c; box-shadow: inset 0 0 0 1px #1f1f23; }
.cam { position: relative; border-radius: 8px; overflow: hidden; display: grid; place-items: center; color: rgba(255,255,255,.55); background: #0c1430; isolation: isolate; }
.cam::before { content: ""; position: absolute; inset: -25%; z-index: -1; background: radial-gradient(circle at var(--x, 30%) var(--y, 40%), rgba(70, 110, 215, .5), transparent 45%); }
.cam:nth-child(2) { --x: 70%; --y: 60%; } .cam:nth-child(3) { --x: 40%; --y: 70%; } .cam:nth-child(4) { --x: 60%; --y: 30%; }
.cam svg { width: clamp(24px, 3vw, 40px); height: auto; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linejoin: round; }
.cam span { position: absolute; left: 10px; bottom: 8px; font-size: clamp(10px, .9vw, 13px); font-weight: 600; color: rgba(255,255,255,.75); }
.tally { position: absolute; left: 14px; top: 14px; width: calc(50% - 18px); height: calc(50% - 18px); border-radius: 9px; box-shadow: 0 0 0 3px var(--red), 0 0 22px rgba(255, 59, 48, .55); pointer-events: none; }
.tally::after { content: "LIVE"; position: absolute; right: 8px; top: 8px; padding: 1px 6px; border-radius: 4px; background: var(--red); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .08em; }
.t-cam.play .tally { animation: tally 6s var(--ease-out) both; }
@keyframes tally { 0%, 16% { left: 14px; top: 14px; } 22%, 50% { left: calc(50% + 4px); top: calc(50% + 4px); } 56%, 100% { left: calc(50% + 4px); top: 14px; } }
.t-cam.play .cam::before { animation: drift 6s ease-in-out both; }
@keyframes drift { 50% { transform: translate(8%, -6%); } }

/* WebGL: the card is the wall. Zoom through the name card; the title opens in a ring of light */
.t-gl .stage { position: absolute; inset: 0; }
.t-gl .cap { background: linear-gradient(rgba(0, 0, 0, .55), transparent); width: 100%; max-width: none; padding-bottom: 40px; }
.t-gl .cap { color: rgba(245, 245, 247, .8); }
.gl-mini { overflow: hidden; }
.gl-mini img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gl-mini .gb { clip-path: circle(80% at 50% 50%); }
.gl-mini .streaks, .gl-mini .ring { position: absolute; left: 50%; top: 50%; border-radius: 50%; pointer-events: none; opacity: 0; transform: translate(-50%, -50%); }
.gl-mini .streaks { width: 160%; aspect-ratio: 1; background: repeating-conic-gradient(from 3deg, transparent 0 9deg, rgba(160, 200, 255, .55) 9deg 9.6deg, transparent 9.6deg 17deg, rgba(255, 190, 120, .45) 17deg 17.5deg);
  -webkit-mask: radial-gradient(circle, transparent 12%, #000 40%, transparent 70%); mask: radial-gradient(circle, transparent 12%, #000 40%, transparent 70%); }
.gl-mini .ring { width: 0; aspect-ratio: 1; box-shadow: 0 0 0 3px rgba(190, 215, 255, .95), 0 0 26px 6px rgba(120, 160, 255, .7), inset 0 0 18px rgba(255, 200, 140, .6); }
.t-gl.play .ga { animation: zoomthru 1.4s cubic-bezier(.55, 0, .9, .4) .25s both; }
@keyframes zoomthru { to { transform: scale(1.6); filter: blur(5px) brightness(1.3); } }
.t-gl.play .gb { animation: iris 1.4s var(--ease-out) .95s both; }
@keyframes iris { from { clip-path: circle(0% at 50% 50%); transform: scale(1.18); } to { clip-path: circle(80% at 50% 50%); transform: none; } }
.t-gl.play .streaks { animation: streaks 1.8s cubic-bezier(.4, 0, .6, 1) .2s both; }
@keyframes streaks { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.35) rotate(0); } 35% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.5) rotate(12deg); } }
.t-gl.play .ring { animation: ring 1.4s var(--ease-out) .95s both; }
@keyframes ring { 0% { width: 0; opacity: 0; } 6% { opacity: 1; } 80% { opacity: 1; } 100% { width: 175%; opacity: 0; } }

/* slides: the clicker pressed twice, each page slides in */
.t-sl .stage { background: radial-gradient(ellipse at 50% 115%, rgba(43, 95, 191, .32), transparent 60%); }
.sl-screen { position: relative; height: 80%; aspect-ratio: 16 / 9; max-width: 86%; border-radius: 8px; overflow: hidden; box-shadow: 0 0 0 5px #050608, 0 0 0 6px #1c1d22, 0 20px 50px rgba(0,0,0,.6); background: #f4f2ee; }
.sl-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sl-screen img + img { transform: translateX(102%); }
/* the clicker: a transparent cut-out of the product shot (design/site/clicker-v1.png); its Next button lights on each press */
.remote { position: relative; display: block; isolation: auto; }
.remote img { display: block; width: 100%; filter: drop-shadow(0 18px 24px rgba(0,0,0,.55)); transition: transform .12s var(--ease-out); }
.led-next { position: absolute; left: 68.4%; top: 26.6%; width: 17%; aspect-ratio: 1.1; transform: translate(-50%, -50%) rotate(-38deg); border-radius: 30%; opacity: 0; pointer-events: none;
  background: radial-gradient(closest-side, rgba(111, 162, 238, .65), rgba(111, 162, 238, .18) 60%, transparent); box-shadow: 0 0 24px 6px rgba(111, 162, 238, .35); transition: opacity .12s; }
.remote.press img { transform: scale(.975); } .remote.press .led-next { opacity: 1; }
.t-sl .remote { position: absolute; right: 2%; bottom: -6%; width: clamp(140px, 21%, 270px); }
.t-sl.play .led-next { animation: ledpress 6s linear both; }
@keyframes ledpress { 0%, 8%, 17%, 42%, 51%, 100% { opacity: 0; } 10%, 13%, 44%, 47% { opacity: 1; } }
.t-sl.play .remote img { animation: remotepress 6s linear both; }
@keyframes remotepress { 0%, 8%, 14%, 42%, 48%, 100% { transform: none; } 10%, 44% { transform: scale(.975); } }
.t-sl.play .sl-screen img:nth-child(2) { animation: page2 6s var(--ease-out) both; }
.t-sl.play .sl-screen img:nth-child(3) { animation: page3 6s var(--ease-out) both; }
@keyframes page2 { 0%, 11% { transform: translateX(102%); } 20%, 100% { transform: none; } }
@keyframes page3 { 0%, 45% { transform: translateX(102%); } 54%, 100% { transform: none; } }

@keyframes keypress { 0%, 8%, 13%, 42%, 47%, 100% { transform: none; box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 4px 0 #0c0c0e, 0 10px 20px rgba(0,0,0,.5); }
  10%, 44% { transform: translateY(3px); box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 1px 0 #0c0c0e, 0 4px 10px rgba(0,0,0,.5); } }

/* phones: tall cards like Apple's, the neighbours peeking either side */
@media (max-width: 734px) {
  .highlights { --gut: 36px; }
  .highlights h2 { margin-left: 36px; width: auto; }
  .gallery { gap: 14px; }
  .tile { aspect-ratio: 5 / 6; border-radius: 24px; }
  .tile .cap { padding: 28px 22px 0; font-size: 17px; }
  .ask-big { font-size: 34px; }
  .ai-glow { width: 86%; aspect-ratio: 1; top: 52%; }
  .mv { height: 88%; width: auto; max-width: 86%; aspect-ratio: 3 / 4; grid-template-columns: 1fr; grid-template-rows: repeat(4, 1fr); }
  .t-gl .cap { background: none; }
  .tally { width: calc(100% - 28px); height: calc(25% - 13px); }
  .t-cam.play .tally { animation-name: tally-m; }
  @keyframes tally-m { 0%, 16% { top: 14px; } 22%, 50% { top: calc(75% - 1px); } 56%, 100% { top: calc(25% + 9px); } }
  .sl-screen { height: auto; width: 86%; transform: translateY(-8%); }
  .t-sl .remote { width: 40%; right: 0; bottom: -4%; }
}

.lamp-live { position: absolute; left: 16px; top: 16px; z-index: 2; padding: 4px 10px; border-radius: 6px; background: var(--red); color: #fff; font-weight: 700; font-size: 13px; letter-spacing: .08em; box-shadow: 0 0 18px rgba(255, 59, 48, .6); }

/* ---------- feature sections: a big rounded card each ---------- */
.feature { padding: 0 0 24px; }
/* the first card after the light gallery needs the same black margin the cards keep between and beside them */
.highlights + .feature { padding-top: 24px; }
.card { width: var(--w-wide); margin: 0 auto; padding: clamp(56px, 7vw, 96px) clamp(20px, 4vw, 64px); border-radius: var(--r-card); background: var(--card-d); text-align: center; overflow: hidden; }
.card h2 { font-size: var(--t-h2); }
.sub { margin: 14px auto 0; max-width: 34em; font-size: var(--t-sub); color: var(--ink-d2); }
.sub b { color: var(--ink-d); font-weight: 600; }
.b { margin: 0; padding: 12px 16px; border-radius: 18px; font-size: 16px; line-height: 1.35; text-align: left; max-width: 34ch; background: #2a2a2e; color: var(--ink-d); }
.b.me { justify-self: end; background: #3a3a40; }
.b.ai b { color: var(--accent-bright); }

/* AI */
.ai-stage { margin-top: 48px; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 40px; align-items: center; text-align: left; }
.mac.small { position: relative; right: auto; bottom: auto; width: 100%; }
.chat { display: grid; gap: 14px; padding: 22px; border-radius: 24px; background: #0b0b0d; box-shadow: inset 0 0 0 1px #2a2a2e; }
.chat .b { display: grid; grid-template-columns: 24px minmax(0, 1fr); column-gap: 12px; align-items: start; max-width: none; }
.chat .b.typing { display: flex; gap: 6px; align-items: center; }
.chat .b em { grid-column: 2; margin-top: 6px; font-style: normal; font: 600 13px var(--mono); color: var(--accent-bright); }
.av { flex: none; width: 24px; height: 24px; border-radius: 50%; background: #5d5d66; }
.av.ai { background: radial-gradient(circle at 35% 35%, #b5cff5, var(--accent)); }
.typing span { width: 7px; height: 7px; margin-top: 9px; border-radius: 50%; background: var(--ink-d2); animation: blink 1.2s infinite; }
.typing span:nth-of-type(2) { animation-delay: .2s; } .typing span:nth-of-type(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.js .chat .b { opacity: 0; transform: translateY(12px); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); }
.js .chat .b.show { opacity: 1; transform: none; }
.js .chat .typing.gone { display: none; }

/* walls in the feature cards */
.wall-wide { position: relative; margin: 48px auto 0; max-width: 960px; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #0f1b3d; box-shadow: 0 0 0 6px #050608, 0 0 0 7px #1c1d22, 0 0 80px rgba(43, 95, 191, .28); }
.cam-wall { display: grid; place-items: center; }
.cam-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.cam-idle { display: grid; justify-items: center; gap: 10px; color: rgba(255,255,255,.75); font-size: 18px; font-weight: 600; }
.cam-idle svg { width: 64px; height: 64px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linejoin: round; }
.lamp-live.big { left: 20px; top: 20px; font-size: 15px; padding: 6px 12px; }
.latency { position: absolute; right: 20px; top: 20px; padding: 5px 12px; border-radius: var(--r-pill); background: rgba(0,0,0,.55); font: 600 13px var(--mono); }
.cam-try { margin-top: 28px; min-height: 44px; padding: 0 22px; font-size: 16px; }
.cam-wall.on .cam-idle { display: none; }
.gl-wall img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gl-wall .gl-b { opacity: 0; }
.gl-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.gl-play { position: absolute; right: 18px; bottom: 18px; min-height: 40px; padding: 0 18px; font-size: 15px; }
.slide-stage { display: grid; justify-items: center; }
.slide-wall { aspect-ratio: 16 / 9; max-width: 900px; width: 100%; background: #f4f2ee; }
.slide-wall img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .45s var(--ease); }
.slide-wall img.on { opacity: 1; }
.clicker { margin-top: 8px; display: flex; align-items: center; gap: 4px; }
.remote.big { width: 200px; margin: -14px 0 -22px -18px; }
.key { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 14px; background: linear-gradient(#3a3a40, #26262b); box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 4px 0 #0c0c0e, 0 10px 20px rgba(0,0,0,.5); font-size: 28px; font-weight: 600; transition: transform .1s, box-shadow .1s; }
.key.press { transform: translateY(3px); box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 1px 0 #0c0c0e, 0 4px 10px rgba(0,0,0,.5); }
.count { color: var(--ink-d2); font-size: 15px; }

/* ---------- light: everything else, FAQ, final ---------- */
.grid-sec { padding: var(--sec) 0 0; }
.grid-sec h2, .faq h2, .final h2 { width: var(--w); margin: 0 auto; text-align: center; font-size: var(--t-h2); }
.features { list-style: none; width: var(--w); margin: 48px auto 0; padding: clamp(32px, 4vw, 56px); border-radius: var(--r-card); background: var(--card-l); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 48px; }
.features svg { width: 36px; height: 36px; fill: none; stroke: var(--ink-l); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 14px; }
.features p { font-size: 19px; line-height: 1.4; color: var(--ink-l2); }
.features b { color: var(--ink-l); font-weight: 600; }
.faq { padding: var(--sec) 0 0; }
.qa { width: min(820px, calc(100vw - 48px)); margin: 40px auto 0; border-top: 1px solid var(--line-l); }
.qa details { border-bottom: 1px solid var(--line-l); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-size: 21px; font-weight: 600; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; flex: none; width: 14px; height: 14px; background: linear-gradient(var(--ink-l), var(--ink-l)) center / 14px 2px no-repeat, linear-gradient(var(--ink-l), var(--ink-l)) center / 2px 14px no-repeat; transition: transform .35s var(--ease-out); }
.qa details[open] summary::after { transform: rotate(45deg); }
.qa p { padding: 0 0 22px; font-size: 18px; color: var(--ink-l2); max-width: 60ch; }
.final { padding: var(--sec) 0 calc(var(--sec) * .8); text-align: center; }
.final-cta { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 28px; justify-content: center; align-items: center; }
.final .fine { width: var(--w); margin: 22px auto 0; }
.final .fine a { color: var(--accent); }
.foot { width: 100%; padding: 22px max(24px, calc((100vw - 1200px) / 2)); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--ink-l2); box-shadow: inset 0 1px 0 var(--line-l); }
.foot .pname { font-size: 15px; color: var(--ink-l); }
.foot a { color: var(--accent); }

/* ---------- smaller screens ---------- */
@media (max-width: 900px) {
  .hero { height: auto; } .hero-pin { position: relative; top: 0; height: auto; min-height: 0; padding-bottom: 24px; }
  /* phones/tablets: no pin; the wall full width, the MacBook below it overlapping its corner a little */
  .venue { display: grid; width: min(720px, calc(100vw - 32px)); margin-top: 32px; }
  .wall { position: relative; left: auto; top: auto; width: 100%; }
  .floor { display: none; }
  .venue .mac { position: relative; right: auto; bottom: auto; width: 76%; justify-self: end; margin: -12% 4% 0 0; }
  .hero-steps { margin-top: 22px; }
  .ai-stage { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 901px) {
  .hero-pin { display: block; --vb: calc(84px + max(0px, (100vh - 52px - 84px - var(--venue-h) - 190px) / 2)); --venue-h: min(clamp(380px, calc(100vh - 52px - 84px - 168px), 760px), calc(min(1380px, 100vw - 32px) * 7.6 / 16)); }
  .hero-copy { position: relative; z-index: 2; transform: translateY(calc(var(--lift, 0) * -60px)); opacity: calc(1 - var(--lift, 0) * 1.4); }
  .venue { position: absolute; left: 50%; bottom: var(--vb); margin: 0; height: var(--venue-h); width: min(var(--w-wide), calc(var(--venue-h) * 16 / 7.6));
    transform: translate(-50%, calc((1 - var(--lift, 0)) * var(--drop, 0px))) scale(calc(.92 + var(--lift, 0) * .08)); }
  .hero-steps { position: absolute; left: 50%; bottom: calc(var(--vb) - 62px); transform: translateX(-50%); margin: 0; }
  /* the pinned frame's own headline: fills the band the hero copy leaves, one line per scene */
  .hero-caption { position: absolute; left: 0; right: 0; top: 0; height: calc(100% - var(--vb) - var(--venue-h)); display: grid; place-items: end center; padding-bottom: clamp(20px, 3vh, 44px); pointer-events: none;
    opacity: clamp(0, calc(var(--lift, 0) * 2 - 1), 1); transform: translateY(calc((1 - var(--lift, 0)) * 40px)); }
  /* the pinned frame's headline is a chat line: someone asks, the wall answers (AI over MCP) */
  .chatline { display: grid; justify-items: center; gap: 12px; }
  .ask { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 12px 26px 12px 14px; border-radius: var(--r-pill); background: var(--card-d2); box-shadow: inset 0 0 0 1px #2c2c30, 0 18px 40px rgba(0,0,0,.45);
    font-size: clamp(22px, 2.1vw, 30px); font-weight: 600; letter-spacing: -0.015em; white-space: nowrap; }
  .ask .av { width: 36px; height: 36px; }
  .caret { width: 2px; height: 1.1em; margin-left: -10px; background: var(--accent-bright); animation: caret 1s steps(1) infinite; }
  @keyframes caret { 50% { opacity: 0; } }
  .did { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; color: var(--accent-bright); opacity: 0; transform: translateY(8px); transition: opacity .45s var(--ease-out), transform .45s var(--ease-out); }
  .did .av { width: 18px; height: 18px; }
  .did.on { opacity: 1; transform: none; }
}
@media (max-width: 900px) { .hero-caption { display: none; } }
@media (max-width: 560px) {
  .subnav nav a:not(.pill):not(.here) { display: none; }
  .features { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 734px) {
  :root { --t-h2: 34px; --t-sub: 19px; --sec: 104px; }
  .grid-sec h2, .faq h2 { text-align: left; width: calc(100vw - 48px); }
  .feature { padding-bottom: 12px; }
  .highlights + .feature { padding-top: 12px; }
  .card { width: calc(100vw - 24px); padding: 64px 22px 40px; border-radius: 24px; text-align: left; }
  .card h2 { font-size: 34px; }
  .sub { margin-left: 0; }
  .wall-wide { margin-top: 36px; border-radius: 10px; }
  .ai-stage { margin-top: 44px; gap: 28px; }
  .ai-stage .mac.small { width: auto; margin: 0 7%; }
  .chat { padding: 16px; }
  .chat .b { font-size: 15px; }
  .slide-stage { justify-items: start; }
  .card .cam-try { display: inline-flex; }
  .features { width: calc(100vw - 48px); margin-top: 36px; padding: 0; background: none; border-radius: 0; gap: 36px; }
  .features svg { margin-bottom: 10px; }
  .qa summary { font-size: 19px; }
  .final h2 { width: calc(100vw - 48px); }
  .words { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) { .tile.play, .tile.play *, .tile.play *::before, .dots button::after { animation: none !important; } .pp { display: none; } html { scroll-behavior: auto; } .js .reveal, .js .scrub { opacity: 1; transform: none; transition: none; } .js .words .w { color: var(--ink-d); } .typing span { animation: none; } }

/* ---------- manual (reading page, light) ---------- */
body.doc { background: var(--white); color: var(--ink-l); }
.doc .subnav { background: rgba(255,255,255,.8); box-shadow: 0 1px 0 var(--line-l); }
.doc .subnav nav a:not(.pill) { color: var(--ink-l2); } .doc .subnav nav a.here { color: var(--ink-l); box-shadow: inset 0 -1.5px 0 var(--ink-l); }
.doc-wrap { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; max-width: 1180px; margin: 0 auto; padding: 48px 24px 96px; }
.toc { position: sticky; top: 76px; align-self: start; display: grid; gap: 2px; font-size: 15px; }
.toc a { padding: 7px 12px; border-radius: 8px; color: var(--ink-l2); text-decoration: none; }
.toc a:hover { background: var(--card-l); color: var(--ink-l); }
.toc a.on { background: rgba(43, 95, 191, .08); color: var(--accent); }
.doc-body { max-width: 72ch; }
.doc-body h1 { font-size: clamp(40px, 5vw, 64px); letter-spacing: -0.03em; }
.doc-body .lede { margin: 14px 0 0; font-size: 21px; color: var(--ink-l2); }
.doc-body section { padding-top: 56px; }
.doc-body h2 { font-size: 30px; margin-bottom: 14px; }
.doc-body p, .doc-body li { color: var(--ink-l2); }
.doc-body b { color: var(--ink-l); font-weight: 600; }
.doc-body ol, .doc-body ul { padding-left: 22px; display: grid; gap: 8px; margin: 0 0 12px; }
.doc-body code { padding: 2px 6px; border-radius: 6px; background: var(--card-l); font: 14px var(--mono); color: var(--ink-l); word-break: break-word; }
kbd { display: inline-block; min-width: 24px; padding: 1px 7px; border-radius: 6px; background: var(--card-l); box-shadow: inset 0 0 0 1px var(--line-l), 0 1px 0 var(--line-l); font: 600 13px var(--mono); color: var(--ink-l); text-align: center; }
.doc-body table { width: 100%; border-collapse: collapse; font-size: 15px; }
.doc-body td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line-l); color: var(--ink-l2); vertical-align: top; }
.doc-body td:nth-child(odd) { white-space: nowrap; }
@media (max-width: 860px) { .doc-wrap { grid-template-columns: 1fr; gap: 24px; } .toc { position: static; display: flex; flex-wrap: wrap; } .doc-body td:nth-child(odd) { white-space: normal; } }
