/* One dark room: a fixed 3D stage with the story stepping over it. */
:root {
  --ink: #04070f;
  --navy: #081024;
  --blue: #2f7bff;
  --blue-hi: #5b98ff;
  --cyan: #7fe7ff;
  --white: #f4f7ff;
  --muted: #a3b3d1;
  --line: rgba(150, 190, 255, .16);
  --glass: rgba(16, 27, 54, .5);
  --glass-edge: rgba(190, 215, 255, .18);
  --font: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Noto Sans KR', system-ui, sans-serif;
  --gutter-l: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--ink); overscroll-behavior: none; }
body { margin: 0; background: var(--ink); color: var(--white); font: 400 17px/1.55 var(--font); letter-spacing: -.012em; word-break: keep-all; overflow-wrap: break-word; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--blue); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 600; z-index: 30; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

h1, h2, h3 { margin: 0; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(46px, 7.4vw, 112px); line-height: 1.04; letter-spacing: -.045em; }
h2 { font-size: clamp(30px, 3.7vw, 56px); line-height: 1.1; letter-spacing: -.04em; }
h3 { font-size: 21px; line-height: 1.3; letter-spacing: -.025em; }
.eyebrow { margin: 0; color: var(--cyan); font-size: 14px; font-weight: 600; letter-spacing: 0; }
.lede { margin: 0; font-size: clamp(19px, 1.9vw, 26px); line-height: 1.38; letter-spacing: -.022em; color: var(--white); text-wrap: balance; }
.body { margin: 0; color: var(--muted); font-size: clamp(16px, 1.25vw, 19px); line-height: 1.5; max-width: 34em; }
.note { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }

.btn { display: inline-block; padding: 14px 26px; border-radius: 980px; font-size: 17px; font-weight: 600; letter-spacing: -.015em; background: var(--blue); color: #fff; box-shadow: 0 0 32px rgba(47, 123, 255, .45); transition: transform .12s ease-out, background .2s; }
.btn:hover { background: var(--blue-hi); }
.btn:active { transform: scale(.97); }
.btn.ghost { background: var(--glass); box-shadow: inset 0 0 0 1px var(--glass-edge); -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%); }
.btn.ghost:hover { background: rgba(40, 60, 105, .6); }

.bar { position: fixed; top: 0; left: 0; right: 0; z-index: 20; padding-top: env(safe-area-inset-top, 0px); background: rgba(6, 11, 24, .55); -webkit-backdrop-filter: blur(22px) saturate(170%); backdrop-filter: blur(22px) saturate(170%); box-shadow: inset 0 -1px 0 var(--line); transition: opacity .35s, transform .35s; }
.has-3d .bar.tucked:not(:focus-within) { opacity: 0; transform: translateY(-100%); }
nav { display: flex; align-items: center; gap: 24px; height: 52px; max-width: 1280px; margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.brand { font-weight: 700; font-size: 19px; letter-spacing: -.03em; margin-right: auto; }
.bar-cta { padding: 6px 14px; border-radius: 980px; background: var(--blue); color: #fff; font-size: 14px; font-weight: 600; }

/* The film. Everything reads top to bottom on its own; .has-3d stretches it into scroll track. */
.film { position: relative; background: radial-gradient(ellipse at 50% 0, #0e1c3f, transparent 70%); }
.stage { display: none; }
.beat { position: relative; }
.pin { position: relative; display: flex; padding: 88px var(--gutter-r) 64px var(--gutter-l); }
.copy { display: flex; flex-direction: column; gap: 18px; min-width: 0; position: relative; }
.beat-hero .copy, .beat-final .copy { margin: 0 auto; align-items: center; text-align: center; max-width: 960px; }
.beat-hero .eyebrow { font-size: clamp(20px, 2vw, 28px); font-weight: 700; letter-spacing: -.03em; color: var(--white); }
.beat-hero h1, .beat-final h2 { text-shadow: 0 2px 40px rgba(2, 6, 18, .7); }
.beat-final h2 { font-size: clamp(32px, min(5.4vw, 9vh), 84px); }
.beat-final .lede { font-size: clamp(17px, min(1.9vw, 3.4vh), 26px); }
.beat-final .copy { gap: clamp(8px, 1.8vh, 18px); }
.hint { display: none; }

.has-3d .stage { display: block; position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--ink); }
/* The stage keeps its place in the flow and the story is pulled up over it, so it scrolls away with the last scene when the footer comes in. */
.has-3d .beat-hero { margin-top: -100vh; margin-top: -100svh; }
.has-3d #gl { display: block; width: 100%; height: 100%; opacity: 0; transition: opacity .6s; }
.has-3d #gl.ready { opacity: 1; }
.stage-shade { position: absolute; inset: 0; pointer-events: none; opacity: var(--shade, 1); background: radial-gradient(ellipse 82% 72% at 50% 50%, rgba(3, 7, 18, .9), rgba(3, 7, 18, .68) 72%, rgba(3, 7, 18, .42)); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.stage-shade[data-off] { display: none; }

.has-3d .film { background: none; }
.has-3d .film { overflow-x: clip; }
/* Each beat overlaps the last by one screen, so pins swap in place and never scroll away mid-scene. */
.has-3d .beat { height: calc(var(--len, 300vh) + 100vh); height: calc(var(--len, 300vh) + 100svh); pointer-events: none; }
.has-3d .beat + .beat { margin-top: -100vh; margin-top: -100svh; }
.has-3d .beat-hero { --len: 170vh; }
.has-3d .beat[data-beat="1"] { --len: 340vh; }
.has-3d .beat[data-beat="2"] { --len: 360vh; }
.has-3d .beat[data-beat="3"] { --len: 420vh; }
.has-3d .beat-final { --len: 240vh; }
.has-3d .pin { position: sticky; top: 0; height: 100vh; height: 100svh; padding: 76px var(--gutter-r) 40px var(--gutter-l); opacity: var(--show, 0); }
.has-3d .beat-hero .pin { --show: 1; }
.has-3d .pin a { pointer-events: auto; }
.has-3d .pin[data-off] a { pointer-events: none; }

.has-3d .beat-hero .pin { align-items: center; justify-content: center; }
.has-3d .beat-final .pin { align-items: flex-end; justify-content: center; padding-bottom: max(min(7vh, 56px), env(safe-area-inset-bottom, 0px)); }
.has-3d .beat-side .pin { align-items: center; }
.has-3d .beat-side .copy { width: min(35vw, 520px); margin-left: clamp(0px, 3.4vw, 72px); }
.has-3d .beat-side .copy::before { content: ""; position: absolute; inset: -30% -28% -30% -50vw; z-index: -1; background: radial-gradient(ellipse at 30% 50%, rgba(3, 7, 18, .78), transparent 68%); pointer-events: none; }

.hint { position: absolute; left: 50%; bottom: max(26px, env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); margin: 0; color: var(--muted); font-size: 13px; }
.has-3d .hint { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.hint span { display: block; width: 1px; height: 30px; order: 2; background: linear-gradient(var(--cyan), transparent); transform-origin: top; animation: drip 2.4s ease-in-out infinite; }
@keyframes drip { 0% { transform: scaleY(0); } 55% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

.trail { display: grid; gap: 2px; counter-reset: t; }
.trail li { position: relative; padding: 9px 0 9px 28px; color: var(--muted); font-size: 16px; line-height: 1.35; transition: color .25s; }
.trail li::before { content: ""; position: absolute; left: 4px; top: 15px; width: 9px; height: 9px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--muted); transition: background .25s, box-shadow .25s; }
.trail li.on { color: var(--white); }
.trail li.on::before { background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }

.said { display: flex; flex-wrap: wrap; gap: 8px; }
.said li { padding: 7px 13px; border-radius: 12px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--glass-edge); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); font-size: 15px; line-height: 1.35; color: var(--muted); transition: color .25s, box-shadow .25s; }
.said li.on { color: var(--white); box-shadow: inset 0 0 0 1px var(--blue-hi), 0 0 22px rgba(47, 123, 255, .4); }

.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }

/* The step in progress, attached to the part of the screen it's about. */
.callout { display: none; }
.has-3d .trail { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.has-3d .callout { position: absolute; left: 0; top: 0; z-index: 2; margin: 0; display: flex; align-items: center; gap: 10px; width: max-content; max-width: min(78vw, 380px); padding: 11px 17px 11px 12px; border-radius: 16px; background: rgba(10, 18, 40, .82); box-shadow: inset 0 0 0 1px var(--glass-edge), 0 0 30px rgba(47, 123, 255, .35), 0 14px 36px rgba(0, 0, 0, .45); -webkit-backdrop-filter: blur(18px) saturate(170%); backdrop-filter: blur(18px) saturate(170%); font-size: clamp(15px, 1.25vw, 20px); font-weight: 600; line-height: 1.3; letter-spacing: -.02em; opacity: var(--a, 0); pointer-events: none; will-change: transform; }
.has-3d .callout::after { content: ""; position: absolute; left: var(--tail, 50%); bottom: -7px; width: 15px; height: 15px; margin-left: -7px; background: rgba(10, 18, 40, .92); box-shadow: inset -1px -1px 0 var(--glass-edge); transform: rotate(45deg); border-bottom-right-radius: 4px; }
.callout b { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--cyan); color: #04121f; font-size: 13px; font-weight: 800; letter-spacing: 0; }
.has-3d .callout[data-below]::after { top: -7px; bottom: auto; box-shadow: inset 1px 1px 0 var(--glass-edge); border-radius: 4px 0 0; }
.callout b:empty { width: 10px; height: 10px; margin-inline: 4px 0; box-shadow: 0 0 12px var(--cyan); } /* Scene 3: live, not a numbered step. */
.callout span { display: block; }
.callout.swap span, .callout.swap b { animation: calloutIn .38s cubic-bezier(.2, .8, .2, 1); }
@keyframes calloutIn { from { opacity: 0; transform: translateY(5px); } }

/* Install walkthrough. The stage is a mock of Chrome's own dark extensions page, so it keeps Chrome's greys. */
html:has(.install[open]) { overflow: hidden; }
.install { width: min(1120px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 24px; background: rgba(10, 18, 40, .9); color: var(--white); box-shadow: inset 0 0 0 1px var(--glass-edge), 0 40px 120px rgba(0, 0, 0, .6), 0 0 80px rgba(47, 123, 255, .25); overflow: auto; overscroll-behavior: contain; }
.install::backdrop { background: rgba(2, 5, 14, .66); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.x-sheet { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 28px; padding: 28px; align-items: center; }
.x-side { display: grid; gap: 12px; min-width: 0; }
.x-side h2 { font-size: clamp(26px, 2.6vw, 36px); }
.x-side .body { font-size: 15px; }
.x-side .note a { color: var(--cyan); text-decoration: underline; }
.x-steps { display: grid; gap: 4px; counter-reset: x; margin-top: 4px; }
.x-steps li { counter-increment: x; }
.x-step { position: relative; display: grid; gap: 2px; width: 100%; padding: 10px 12px 10px 46px; border: 0; border-radius: 14px; background: none; color: var(--muted); font: inherit; font-size: 13px; line-height: 1.4; text-align: left; letter-spacing: -.012em; cursor: pointer; transition: background .25s, color .25s; }
.x-step:hover { background: rgba(150, 190, 255, .08); }
.x-step::before { content: counter(x); position: absolute; left: 12px; top: 11px; width: 24px; height: 24px; line-height: 24px; text-align: center; border-radius: 50%; background: rgba(150, 190, 255, .14); color: var(--muted); font-size: 13px; font-weight: 700; transition: background .25s, color .25s; }
.x-steps b { color: var(--white); font-size: 15px; font-weight: 600; }
.x-steps code { font: inherit; }
/* Pages can't link to chrome:// addresses, so the address copies instead. It lies over the step button, not inside it. */
.x-first { position: relative; }
.x-gap { visibility: hidden; }
.x-copy { position: absolute; left: 46px; top: 10px; padding: 0; border: 0; background: none; color: var(--cyan); font: inherit; font-size: 15px; font-weight: 600; line-height: 1.4; letter-spacing: -.012em; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.x-copy:hover { color: var(--white); }
.x-copied { position: absolute; left: 46px; top: 34px; z-index: 2; padding: 5px 10px; border-radius: 10px; background: var(--blue); color: #fff; font-size: 13px; font-weight: 600; line-height: 1.3; box-shadow: 0 8px 22px rgba(0, 0, 0, .4); opacity: 0; pointer-events: none; transition: opacity .2s; }
.x-copied.on { opacity: 1; }
.x-step[aria-current] { background: rgba(47, 123, 255, .2); color: var(--white); }
.x-step[aria-current]::before { background: var(--blue); color: #fff; }
.x-step.past::before { content: "✓"; background: var(--cyan); color: #06122a; }
.x-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.x-actions [hidden] { display: none; }
.x-actions .btn { padding: 10px 22px; font: inherit; font-size: 15px; font-weight: 600; border: 0; cursor: pointer; color: #fff; }

.x-frame { min-width: 0; container-type: inline-size; }
.x-stage { --c-bg: #202124; --c-line: #3c4043; --c-text: #e8eaed; --c-sub: #9aa0a6; --c-link: #8ab4f8; --c-edge: #2f6ea5; position: relative; aspect-ratio: 16 / 10.4; overflow: hidden; border-radius: 14px; background: var(--c-bg); color: var(--c-text); font-size: 1.95cqw; line-height: 1.3; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 20px 50px rgba(0, 0, 0, .4); }
.cx-tabs { display: flex; align-items: flex-end; gap: .45em; height: 2.9em; padding: 0 1em; background: #111214; }
.cx-tabs > i { width: .8em; height: .8em; margin-bottom: 1em; border-radius: 50%; background: #5f6368; }
.cx-tab { margin-left: 1em; padding: .55em 3.4em .55em 1em; border-radius: .7em .7em 0 0; background: #2d2f33; font-size: .92em; }
.cx-bar { display: flex; align-items: center; gap: .8em; height: 3.2em; padding: 0 1em; background: #2d2f33; box-shadow: inset 0 -1px 0 #000; }
.cx-nav { color: var(--c-sub); }
.cx-omni { flex: 1; height: 2.2em; line-height: 2.2em; padding: 0 1.2em; border-radius: 1.1em; background: #1b1c1f; transition: box-shadow .2s; }
.cx-puzzle { display: grid; place-items: center; width: 2.2em; height: 2.2em; padding: .4em; border-radius: 50%; color: var(--c-sub); transition: background .2s, color .2s; }
.cx-puzzle svg { width: 100%; height: 100%; }
.cx-puzzle.nudge { background: rgba(138, 180, 248, .24); color: var(--c-link); }

.cx-desk, .cx-ext { position: absolute; left: 0; right: 0; top: 6.1em; bottom: 0; transition: opacity .3s; }
[data-page=desk] .cx-ext, [data-page=extensions] .cx-desk { opacity: 0; pointer-events: none; }
.cx-desk { display: flex; align-items: center; justify-content: center; gap: 4em; }
.cx-file { display: grid; justify-items: center; gap: .7em; padding: 1em; border-radius: 1em; transition: transform .12s, opacity .4s; }
.cx-file.unzip { opacity: 0; transform: translateX(-3em) scale(.8); transition: transform .5s cubic-bezier(.2, .8, .2, 1), opacity .4s; }
.unzipped .cx-file.unzip { opacity: 1; transform: none; }
.zip, .folder { display: inline-block; flex: none; }
.cx-file .zip, .cx-file .folder { width: 5em; height: 5em; }
.zip { border-radius: .5em; background: repeating-linear-gradient(#5f6368 0 .36em, #aab0b8 .36em .72em) center / .5em 100% no-repeat, #d6dae0; }
.folder { position: relative; border-radius: .4em; background: var(--c-link); clip-path: polygon(0 12%, 38% 12%, 48% 26%, 100% 26%, 100% 92%, 0 92%); }

.cx-ext header { display: flex; align-items: center; gap: .8em; height: 3.8em; padding: 0 1.4em; }
.cx-logo { width: 1.7em; height: 1.7em; border-radius: 50%; background: radial-gradient(circle, #202124 28%, #e8eaed 30% 38%, transparent 40%), conic-gradient(#e8eaed 0 33%, #9aa0a6 0 66%, #bdc1c6 0); }
.cx-ext strong { font-size: 1.3em; font-weight: 500; }
.cx-search { flex: 1; max-width: 22em; margin-inline: auto; padding: .55em 1.2em; border-radius: 1.3em; background: #303134; color: var(--c-sub); font-size: .92em; }
.cx-dev { display: flex; align-items: center; gap: .7em; padding: .3em .4em; color: var(--c-sub); font-size: .92em; white-space: nowrap; transition: transform .12s; }
.cx-sw { position: relative; display: inline-block; flex: none; width: 2.3em; height: 1.2em; border-radius: .6em; background: #5f6368; transition: background .2s; }
.cx-sw::after { content: ""; position: absolute; left: .13em; top: .13em; width: .94em; height: .94em; border-radius: 50%; background: #dadce0; transition: transform .2s, background .2s; }
.cx-sw.on, .dev .cx-dev .cx-sw { background: #6f9cf0; }
.cx-sw.on::after, .dev .cx-dev .cx-sw::after { transform: translateX(1.1em); background: #1a3f8a; }
.cx-row { display: flex; gap: .9em; height: 0; padding-inline: 1.4em; overflow: hidden; opacity: 0; box-shadow: inset 0 -1px 0 var(--c-line); transition: height .32s cubic-bezier(.2, .8, .2, 1), opacity .25s; }
.dev .cx-row { height: 3.5em; opacity: 1; overflow: visible; }
.cx-btn { align-self: flex-start; padding: .5em 1em; border-radius: 1.3em; box-shadow: inset 0 0 0 1px var(--c-edge); color: var(--c-link); font-size: .92em; font-weight: 500; white-space: nowrap; transition: transform .12s, background .2s; }
.cx-body { display: grid; grid-template-columns: 13.5em 1fr; gap: 1em; padding: .8em 1.4em 0 0; box-shadow: 0 -1px 0 var(--c-line); }
.cx-body nav { display: grid; gap: .4em; align-content: start; height: auto; max-width: none; margin: 0; padding: 0; font-size: .92em; }
.cx-body nav span { padding: .55em 1.4em; border-radius: 0 1.4em 1.4em 0; }
.cx-body nav .on { background: #8ab4f8; color: #1a1c20; }
.cx-body h3 { margin: 0 0 .7em; font-size: 1.05em; font-weight: 500; letter-spacing: 0; }
.cx-card { display: flex; align-items: center; gap: .9em; max-width: 26em; padding: .9em 1em; border-radius: .7em; background: #292a2d; opacity: 0; transform: translateY(.6em) scale(.96); transition: opacity .3s, transform .4s cubic-bezier(.2, .8, .2, 1), box-shadow .3s; }
.installed .cx-card { opacity: 1; transform: none; box-shadow: 0 0 0 2px var(--blue), 0 0 24px rgba(47, 123, 255, .5); }
.cx-card div { flex: 1; display: grid; }
.cx-card b { font-weight: 600; }
.cx-card small { color: var(--c-sub); font-size: .86em; }
.cx-icon { width: 2.4em; height: 2.4em; border-radius: 50%; background: radial-gradient(circle, #fff 26%, var(--blue) 28%); }

.cx-picker { position: absolute; inset: 0; display: grid; place-items: center; padding-top: 3em; background: rgba(0, 0, 0, .4); opacity: 0; pointer-events: none; transition: opacity .2s; }
.picking .cx-picker { opacity: 1; }
.cx-sheet { display: grid; gap: .8em; width: 30em; padding: 1.1em 1.2em; border-radius: 1em; background: #2b2c30; box-shadow: 0 1.4em 4em rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .08); transform: translateY(.8em); transition: transform .28s cubic-bezier(.2, .8, .2, 1); }
.picking .cx-sheet { transform: none; }
.cx-sheet p { margin: 0; font-weight: 600; }
.cx-list { display: grid; gap: .15em; }
.cx-list span { display: flex; align-items: center; gap: .7em; padding: .5em .7em; border-radius: .5em; color: var(--c-sub); transition: background .15s, color .15s; }
.cx-list #xFolder { color: var(--c-text); }
.cx-list #xFolder.picked { background: var(--blue); color: #fff; }
.cx-list i { width: 1.2em; height: 1.2em; }
.cx-pick { display: flex; justify-content: flex-end; }
.cx-pick .cx-btn { background: #8ab4f8; color: #1a1c20; box-shadow: none; }
.pressed { transform: scale(.94); }

.x-bubble { position: absolute; left: 0; top: 0; z-index: 8; width: max-content; padding: .7em 1em; border-radius: 1.1em; background: var(--blue); color: #fff; font-size: max(12.5px, 2.15cqw); font-weight: 600; line-height: 1.35; letter-spacing: -.015em; box-shadow: 0 10px 28px rgba(0, 0, 0, .4); opacity: 0; transition: opacity .2s; pointer-events: none; }
.x-bubble.on { opacity: 1; }
.x-bubble::after { content: ""; position: absolute; width: 12px; height: 12px; background: inherit; border-radius: 2px; transform: rotate(45deg); }
.x-bubble[data-side=below]::after { top: -4px; left: var(--tail); margin-left: -6px; }
.x-bubble[data-side=above]::after { bottom: -4px; left: var(--tail); margin-left: -6px; }
.x-pointer { position: absolute; left: 0; top: 0; z-index: 9; width: 1.9em; height: 1.9em; margin: -.25em 0 0 -.3em; opacity: 0; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .5)); transition: transform .85s cubic-bezier(.3, .8, .25, 1), opacity .2s; }
.x-pointer svg { display: block; }
.x-ripple { position: absolute; z-index: 7; width: 3em; height: 3em; margin: -1.5em 0 0 -1.5em; border-radius: 50%; background: var(--cyan); opacity: .5; pointer-events: none; animation: xRipple .45s ease-out forwards; }
@keyframes xRipple { from { transform: scale(.2); } to { transform: scale(1.4); opacity: 0; } }

@media (max-width: 860px) {
  .x-sheet { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 18px; }
  .x-frame { order: -1; }
  .x-side h2 br { display: none; }
}

/* Tall and narrow: copy on top, the room framed below it. */
@media (max-aspect-ratio: 1/1) {
  .has-3d .beat-side .pin { align-items: flex-start; padding-top: 64px; }
  .has-3d .beat-side .copy { width: 100%; margin-left: 0; gap: 10px; }
  .has-3d .beat-side .copy::before { inset: -60px -40px -20px; background: linear-gradient(rgba(3, 7, 18, .88) 60%, transparent); }
  .has-3d .beat-side .body { font-size: 15px; }
  .has-3d .said li { padding: 5px 10px; font-size: 14px; }
  .has-3d .said-more, .has-3d .beat-side .note { display: none; }
  .has-3d .beat-final .pin { padding-bottom: max(5vh, env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 720px) {
  .cta .btn { width: 100%; text-align: center; }
  .cta { width: 100%; }
}
@media (max-height: 640px) and (min-aspect-ratio: 1/1) {
  .has-3d .said-more, .has-3d .beat-side .body { display: none; }
}

/* The opening notice: the whole screen, for a few seconds, before the page starts. */
.intro { display: none; }
.has-intro .intro { position: fixed; inset: 0; z-index: 40; display: grid; place-content: center; justify-items: center; gap: clamp(14px, 2.4vh, 24px); padding-left: var(--gutter-l); padding-right: var(--gutter-r); background: var(--ink); text-align: center; will-change: opacity; }
/* The words leave first, then the dark lifts off the page. */
.intro-out .intro { opacity: 0; pointer-events: none; transition: opacity 1.3s cubic-bezier(.4, 0, .2, 1) .2s; }
.intro p { margin: 0; will-change: opacity; animation: introIn .9s ease backwards; }
.intro-out .intro p { opacity: 0; transition: opacity .55s ease; }
.intro-title { font-size: clamp(44px, min(8vw, 17vh), 120px); font-weight: 700; line-height: 1.05; letter-spacing: -.045em; }
.intro-text { color: var(--muted); font-size: clamp(17px, min(2vw, 4.4vh), 28px); line-height: 1.4; letter-spacing: -.022em; }
@keyframes introIn { from { opacity: 0; } }

.site-foot { position: relative; z-index: 1; display: grid; gap: clamp(32px, 6vh, 64px); padding: clamp(36px, 6vh, 64px) var(--gutter-r) max(28px, env(safe-area-inset-bottom, 0px)) var(--gutter-l); background: #101218; color: var(--white); }
.foot-top { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(0, 3fr); gap: 32px clamp(32px, 6vw, 96px); width: 100%; max-width: 1280px; margin: 0 auto; }
.foot-logo { display: grid; align-content: start; justify-items: start; gap: 12px; }
.foot-logo svg { width: 110px; height: auto; }
.foot-logo span { font-size: 15px; font-weight: 600; letter-spacing: .32em; white-space: nowrap; }
.foot-info { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 4vh, 36px) clamp(16px, 2.4vw, 36px); margin: 0; }
.foot-wide { grid-column: span 2; }
.foot-info dt { color: var(--muted); font-size: 14px; line-height: 1.4; }
.foot-info dd { margin: 4px 0 0; font-size: 16px; line-height: 1.5; }
.foot-info a { text-decoration: underline; text-underline-offset: 3px; }
.foot-copy { width: 100%; max-width: 1280px; margin: 0 auto; color: var(--muted); font-size: 14px; letter-spacing: 0; }
@media (max-width: 860px) {
  .foot-top { grid-template-columns: minmax(0, 1fr); }
  .foot-info { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-info a { display: inline-block; padding-block: 6px; }
}
@media (max-height: 480px) and (min-aspect-ratio: 1/1) {
  .site-foot { gap: 12px; padding-top: 16px; padding-bottom: max(10px, env(safe-area-inset-bottom, 0px)); }
  .foot-top { grid-template-columns: 90px minmax(0, 1fr); gap: 16px; }
  .foot-logo svg { width: 64px; }
  .foot-logo span { font-size: 10px; letter-spacing: .2em; }
  .foot-info { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 12px; }
  .foot-info dt { font-size: 12px; }
  .foot-info dd { margin-top: 0; font-size: 13px; }
  .foot-info a { padding-block: 0; }
  .foot-copy { font-size: 12px; }
}

/* Words on the film itself, not a popup. The soft dark behind them only keeps them readable over a moving scene. */
.auto-notice { position: fixed; left: 50%; bottom: max(92px, env(safe-area-inset-bottom, 0px)); z-index: 25; display: grid; justify-items: center; gap: 6px; width: min(640px, calc(100vw - 40px)); margin: 0; color: var(--white); text-align: center; text-shadow: 0 1px 18px rgba(2, 6, 18, .9); opacity: 0; visibility: hidden; transform: translateX(-50%); transition: opacity .9s ease, visibility .9s; pointer-events: none; }
.auto-notice::before { content: ""; position: absolute; inset: -44px -60px; z-index: -1; background: radial-gradient(closest-side, rgba(3, 7, 18, .72), transparent); }
.auto-notice.on { opacity: 1; visibility: visible; }
.auto-notice b { font-size: clamp(22px, 2.2vw, 30px); font-weight: 700; line-height: 1.2; letter-spacing: -.03em; }
.auto-notice span { color: var(--muted); font-size: clamp(15px, 1.15vw, 17px); line-height: 1.4; text-wrap: balance; }
.has-3d:has(.auto-notice.on) .hint { opacity: 0; }
.hint { transition: opacity .5s; }
#shareNotice { width: max-content; max-width: calc(100vw - 32px); padding: 12px 22px; border-radius: 22px; background: rgba(12, 20, 44, .86); box-shadow: inset 0 0 0 1px var(--glass-edge); font-size: 15px; font-weight: 500; line-height: 1.4; text-shadow: none; transition-duration: .3s; }
#shareNotice::before { display: none; }

.auto-toggle { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px)); z-index: 25; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: rgba(12, 20, 44, .78); box-shadow: inset 0 0 0 1px var(--glass-edge); -webkit-backdrop-filter: blur(22px) saturate(170%); backdrop-filter: blur(22px) saturate(170%); color: var(--white); cursor: pointer; transition: background .2s, transform .12s ease-out; }
.auto-toggle[hidden] { display: none; }
.auto-toggle:hover { background: rgba(40, 60, 105, .85); }
.auto-toggle:active { transform: scale(.94); }
.auto-toggle svg { width: 20px; height: 20px; fill: currentColor; }
.auto-toggle .i-play, .auto-toggle[aria-pressed="true"] .i-pause { display: none; }
.auto-toggle[aria-pressed="true"] .i-play { display: block; }
#shareNotice { z-index: 26; overflow-wrap: anywhere; }

/* Fingers need bigger targets than a pointer, and a phone can spare the room. */
@media (pointer: coarse) {
  nav { height: 56px; }
  .brand { padding: 12px 12px 12px 0; }
  .bar-cta { padding: 12px 16px; }
  .btn { min-height: 48px; }
  .x-copy { padding-block: 4px; margin-top: -4px; }
  .stage-shade { -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
}
/* A phone on its side has very little height: keep only the headline and the action. */
@media (max-height: 480px) and (min-aspect-ratio: 1/1) {
  .has-3d .pin { padding-top: 60px; padding-bottom: 12px; }
  h1 { font-size: clamp(30px, 15vh, 64px); }
  .lede { font-size: 16px; }
  .copy { gap: 8px; }
  .has-3d .hint { display: none; }
  .auto-notice { bottom: max(10px, env(safe-area-inset-bottom, 0px)); width: calc(100vw - 150px); gap: 2px; }
  .auto-notice b { font-size: 16px; }
  .auto-notice span { font-size: 13px; }
  .beat-hero .lede { display: none; }
  .has-3d .said, .has-3d .beat-side .note, .beat-final .note { display: none; }
  .beat-final .lede { display: none; }
  .beat-final .cta { flex-wrap: nowrap; }
  .has-3d .beat-final .pin { padding-bottom: max(12px, env(safe-area-inset-bottom, 0px)); }
  .cta .btn { width: auto; padding-block: 11px; }
}
@media (prefers-contrast: more) {
  :root { --muted: #dfe7f7; --glass-edge: rgba(230, 240, 255, .6); }
  .stage-shade { background: rgba(3, 7, 18, .94); }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  .has-3d #gl { transition: opacity .2s !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .bar, .btn.ghost, .said li, .has-3d .callout, .install, .auto-toggle { background: var(--navy); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
