/* Spyglass, in the magicelklabs house style. The ground is the brand's own
   Quick Look glass: obsidian with a faint green cast, sampled from the app
   icon and the real Quick Look card. Brass is the one accent. The scroll
   engine owns every [data-sc-*] selector; everything here is page markup. */

:root {
  color-scheme: dark;
  --canvas: #0F1413;  --surface: #151B1A;  --elevated: #1B2221;  --card: #212827;
  --glass-top: #1B2422;
  --ink: #F2F2F0;     --body: #A6AFAC;     --mute: #87918E;
  --brass: #B8945F;   --brass-lit: #EDC371; --brass-pale: #FBDEA2; --on-brass: #17140F;
  --hair: rgba(255, 255, 255, .075); --hair-soft: rgba(255, 255, 255, .045); --hair-strong: rgba(255, 255, 255, .14);
  --lip: inset 0 1px 0 rgba(255, 255, 255, .055);
  --r-card: 12px; --r-inner: 8px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --sys: -apple-system, BlinkMacSystemFont, system-ui, "Helvetica Neue", Arial, sans-serif;
  --display: "Cabinet Grotesk", var(--sys);
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --accent: var(--brass);

  --sc-canvas: var(--canvas); --sc-surface: var(--surface);
  --sc-ink: var(--ink); --sc-ink-soft: var(--body);
  --sc-accent: var(--brass); --sc-accent-ink: var(--on-brass);
  --sc-hairline: var(--hair);
  --sc-font-display: var(--display);
  --sc-font-text: var(--sys);
  --sc-font-mono: var(--mono);
  --sc-track-tight: -0.025em;
  --sc-r-md: var(--r-card);
  --sc-z-chrome: 60;
}

html { scroll-padding-top: 86px; }
body { color: var(--body); background: var(--canvas); overflow-x: clip; }
h1, h2, h3 { color: var(--ink); margin: 0; }
h1, h2 { font-family: var(--display); font-weight: 800; letter-spacing: -0.025em; line-height: 1.06; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 4.5vw, 3rem); }
h3 { font-size: 17px; font-weight: 650; }
p { text-wrap: pretty; margin: 0; }
b { color: var(--ink); font-weight: 600; }
a { color: inherit; }
.ink { color: var(--ink); }
.mute { color: var(--mute); }
.body { color: var(--body); }
.sc-grain { opacity: .035; z-index: 70; }

/* Without the engine, everything it would reveal is simply there. */
.no-js [data-sc-cue], .no-js [data-sc-in], .no-js [data-sc-stagger] > * { opacity: 1; transform: none; }
.no-js [data-sc-reveal] { clip-path: none; }

.skip {
  position: fixed; top: 12px; left: 12px; z-index: 70;
  padding: 8px 16px; background: var(--ink); color: var(--canvas);
  border-radius: 999px; font-weight: 600; text-decoration: none;
  transform: translateY(-200%);
}
.skip:focus-visible { transform: none; }
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* ---------------------------------------------------------------- layout -- */
.wrap { max-width: 1152px; margin-inline: auto; padding-inline: 24px; }
.wrap--5 { max-width: 1024px; }
.wrap--3 { max-width: 768px; }
.wrap--2 { max-width: 672px; }
.section { padding-block: clamp(80px, 9vw, 112px); }
.section--surface { background: var(--surface); border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.intro { max-width: 42rem; margin-bottom: 40px; }
.intro p { margin: 16px 0 0; font-size: 17px; line-height: 1.6; }

/* ─────────────────────────── Buttons ───────────────────────────
   The house pills, same shape and sizes as the Viaduct and Lector pages:
   brass for buying, a lit ghost pane for Download. */
.btn-brass, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  font: 600 15px/1.2 var(--sys); text-decoration: none; white-space: nowrap;
  border: 0; cursor: pointer; border-radius: 999px;
  transition: transform .2s var(--ease), background-color .2s, border-color .2s;
}
.btn-sm { font-size: 13.5px; padding: 7px 14px; }
.btn-lg { font-size: 15px; padding: 13px 26px; }
.btn-block { width: 100%; font-size: 16px; padding: 14px; margin-top: auto; }
.btn-brass { background: var(--brass); color: var(--on-brass); box-shadow: inset 0 1px 0 rgba(255,255,255,.3); }
.btn-ghost { background: rgba(255,255,255,.05); color: var(--ink); border: 1px solid rgba(255,255,255,.12); box-shadow: var(--lip); }
/* Touch screens keep :hover after a tap, which would leave a button lifted. */
@media (hover: hover) {
  .btn-brass:hover { background: var(--brass-lit); transform: translateY(-1px); }
  .btn-ghost:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.2); transform: translateY(-1px); }
}
.btn-brass:active, .btn-ghost:active { transform: translateY(0) scale(.98); }
@media (prefers-reduced-motion: reduce) { .btn-brass, .btn-ghost { transition: none; } }
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--brass-lit); outline-offset: 3px; border-radius: 8px;
}

/* ------------------------------------------------------------------- nav -- */
.nav { position: fixed; top: 12px; inset-inline: 0; z-index: var(--sc-z-chrome); padding-inline: 12px; }
.nav-pill {
  position: relative; max-width: 1024px; margin-inline: auto; height: 54px;
  padding: 0 10px 0 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: rgba(15, 20, 19, .55); border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 16px; box-shadow: var(--lip);
  -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%);
  transition: background-color .3s, border-color .3s;
}
.nav.scrolled .nav-pill { background: rgba(15, 20, 19, .82); border-color: rgba(255, 255, 255, .12); }
.glass-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
html.glassy .nav-pill {
  background: rgba(15, 20, 19, .30);
  backdrop-filter: url(#nav-glass) blur(9px) saturate(1.25);
  box-shadow: inset 0 0 1px 0 rgba(255, 255, 255, .20), inset 0 0 7px 2px rgba(255, 255, 255, .06), var(--lip);
}
html.glassy .nav.scrolled .nav-pill { background: rgba(15, 20, 19, .58); }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; flex: none; }
.brand img { width: 21px; height: 21px; display: block; }
.brand span { font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -0.02em; line-height: 1; color: var(--ink); }
.nav-links { position: absolute; left: 50%; translate: -50% 0; display: flex; gap: 28px; font-size: 14px; font-weight: 500; }
.nav-links a { color: var(--body); text-decoration: none; transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 6px; }

/* ─────────────────────────── The collection ───────────────────────────
   One DOM for both modes. Static: a title block, a lens showing the first
   preview, then a catalogue of objects. Lens mode (html.lens, set before the
   engine mounts on screens tall enough to pin, with motion allowed): the
   section pins, every object is laid over one stage, and spyglass.js moves
   the icons, the previews and the labels from scroll position. */

.gx { position: relative; }
.gx-stage { background: linear-gradient(180deg, var(--glass-top) 0%, var(--canvas) 78%); }
/* The engine sticks the stage in lens mode; only the static stage is relative. */
.gx-stage:not(.sc-stage) { position: relative; }
.gx-stage::after { /* settle the glass into the canvas below */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--canvas));
}

/* Depth planes. Static: hidden, the catalogue does the work. */
.gx-far, .gx-near { display: none; }

/* Title block */
.gx-intro { padding: 132px 24px 0; max-width: 1152px; margin: 0 auto; }
.gx-intro h1 { font-size: clamp(2.6rem, 7.4vw, 4.2rem); }
.gx-intro h1 em { font-style: normal; color: var(--brass-lit); }
.gx-intro .lede { font-size: clamp(1.05rem, 1.6vw, 1.2rem); line-height: 1.6; max-width: 34rem; margin-top: 20px; }
.gx-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; align-items: center; }
.gx-req { font-size: 14px; color: var(--mute); }

/* The lens: a brass-rimmed objective. The back disc sits under the previews,
   the rim and the glass highlight sit over them. */
.gx-lens-back, .gx-lens-rim { border-radius: 50%; pointer-events: none; }
.gx-lens-back { background: #1E1E1E; box-shadow: 0 34px 80px -20px rgba(2, 6, 5, .8), 0 12px 30px -12px rgba(2, 6, 5, .7); }
.gx-lens-rim {
  box-shadow:
    inset 0 0 0 1px rgba(251, 222, 162, .55),
    inset 0 0 0 9px #1A1C1B,
    inset 0 0 0 10px rgba(184, 148, 95, .7),
    inset 0 0 24px 10px rgba(0, 0, 0, .45),
    0 0 0 1px rgba(184, 148, 95, .35);
  background: linear-gradient(155deg, rgba(255,255,255,.08) 0%, rgba(255,255,255,0) 34%);
}

/* Static lens: one disc after the title showing the Markdown preview. */
.gx-lens { position: relative; width: min(78vw, 420px); aspect-ratio: 1; margin: 48px auto 0; }
.gx-lens .gx-lens-back, .gx-lens .gx-lens-rim { position: absolute; inset: 0; }
.gx-lens .gx-lens-back { overflow: hidden; }
.gx-lens .gx-lens-back img { position: absolute; height: 100%; width: auto; max-width: none; left: 50%; top: 0; translate: -50% 0; }

/* Static catalogue */
.gx-index, .gx-pager { display: none; }
.gx-objs { list-style: none; margin: 0 auto; padding: 72px 24px 24px; max-width: 1152px; display: grid; gap: 56px 40px; }
@media (min-width: 900px) { .gx-objs { grid-template-columns: 1fr 1fr; } }
.gx-obj { display: grid; grid-template-columns: 56px 1fr; gap: 6px 16px; align-content: start; scroll-margin-top: 96px; }
.gx-icon { width: 56px; height: 56px; grid-row: 1; }
.gx-lbl { grid-column: 2; grid-row: 1; }
.gx-pv { grid-column: 1 / -1; margin: 14px 0 0; }
.gx-pv img { width: 100%; height: auto; border-radius: var(--r-card); border: 1px solid var(--hair); background: #1E1E1E; }
.gx-pv--fit img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; }

.gx-lbl h3 { font: 800 clamp(1.4rem, 2.4vw, 1.75rem)/1.08 var(--display); letter-spacing: -0.02em; }
.gx-lbl .ext { font: 500 12px/1.6 var(--mono); letter-spacing: .02em; color: var(--mute); margin-top: 6px; }
.gx-lbl .fact { font-size: 15.5px; line-height: 1.62; margin-top: 10px; max-width: 40ch; }
.gx-lbl .fact a { color: var(--brass-lit); text-underline-offset: 3px; text-decoration-color: rgba(237, 195, 113, .4); }

/* ── Lens mode ── */
html.lens .gx-stage { height: 100vh; height: 100svh; overflow: clip; }
html.lens .gx-intro {
  position: absolute; z-index: 5; left: var(--col); top: 50%; translate: 0 -46%;
  width: calc(var(--lx) - var(--r) - var(--col) - 56px); padding: 0; margin: 0; max-width: none;
}
html.lens .gx-intro h1 { font-size: clamp(2.6rem, 4.3vw, 4.1rem); }
html.lens .gx-lens { display: none; }

html.lens .gx-far, html.lens .gx-near { display: block; position: absolute; inset: 0; pointer-events: none; }
.gx-far { z-index: 1; }
.gx-near { z-index: 8; }
/* The blur is baked into these sprites (assets/files/soft/). A CSS filter on
   moving layers made Chrome re-filter all 28 every frame and drop ~40% of
   frames while scrolling. Keep these to transform and opacity only. */
.gx-far img, .gx-near img { position: absolute; left: 0; top: 0; will-change: transform; }
.gx-far img { opacity: .3; }
.gx-far img.deep { opacity: .18; }
.gx-near img { opacity: .55; }

html.lens .gx-index {
  display: flex; position: absolute; z-index: 9; left: 0; right: 0; bottom: 26px;
  justify-content: center; flex-wrap: wrap; gap: 4px 20px; padding: 0 32px;
}
.gx-index a {
  position: relative; padding: 9px 0; font: 500 13.5px/1 var(--sys); color: var(--mute); text-decoration: none; transition: color .2s;
}
.gx-index a:hover, .gx-index a[aria-current="true"] { color: var(--ink); }
.gx-index a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; border-radius: 2px;
  background: var(--brass); transform: scaleX(0); transition: transform .3s var(--ease);
}
.gx-index a[aria-current="true"]::after { transform: none; }

html.lens .gx-lens-back.lone, html.lens .gx-lens-rim.lone {
  display: block; position: absolute; left: calc(var(--lx) - var(--r)); top: calc(var(--ly) - var(--r));
  width: calc(var(--r) * 2); height: calc(var(--r) * 2);
}
.gx-lens-back.lone, .gx-lens-rim.lone { display: none; }
html.lens .gx-lens-back.lone { z-index: 2; overflow: hidden; isolation: isolate; }
html.lens .gx-lens-rim.lone { z-index: 7; }

html.lens .gx-objs { position: absolute; inset: 0; padding: 0; margin: 0; max-width: none; display: block; z-index: 3; }
html.lens .gx-obj { position: static; display: block; }
html.lens .gx-icon { position: absolute; left: 0; top: 0; width: var(--ic, 120px); height: var(--ic, 120px); z-index: 4; will-change: transform, opacity; }
html.lens .gx-pv {
  position: absolute; left: 0; top: 0; margin: 0;
  visibility: hidden; will-change: transform, opacity;
}
html.lens .gx-pv img { width: 100%; height: 100%; object-fit: cover; object-position: top left; border: 0; border-radius: 0; }
html.lens .gx-pv--fit img { object-fit: cover; object-position: center 30%; aspect-ratio: auto; }
html.lens .gx-lbl {
  position: absolute; z-index: 6; left: var(--col); top: 50%; translate: 0 -50%;
  width: calc(var(--lx) - var(--r) - var(--col) - 56px); max-width: 30rem;
  opacity: 0; visibility: hidden;
}
html.lens .gx-lbl h3 { font-size: clamp(2rem, 3.4vw, 3.1rem); }
html.lens .gx-lbl .fact { font-size: 17px; margin-top: 14px; }
html.lens .gx-lbl .ext { font-size: 12.5px; margin-top: 10px; }

/* Upright lens (html.tall: phones and tablets held portrait). The headline,
   then each label, take a band under the nav; spyglass.js sizes the lens to
   the room left below it and sets --tt, the band's top. */
html.tall .gx-intro, html.tall .gx-lbl {
  left: var(--col); right: var(--col); top: var(--tt); translate: none;
  width: auto; max-width: 34rem;
}
html.tall .gx-intro h1 { font-size: clamp(2.2rem, 9.6vw, 3.6rem); }
html.tall .gx-intro .lede { font-size: 16px; margin-top: 14px; }
html.tall .gx-cta { margin-top: 22px; }
html.tall .gx-lbl h3 { font-size: clamp(1.75rem, 8vw, 2.6rem); }
html.tall .gx-lbl .ext { margin-top: 8px; }
html.tall .gx-lbl .fact { font-size: 15.5px; margin-top: 10px; }
html.tall .gx-index { display: none; }

/* ─────────────────────────── Google Drive ─────────────────────────── */
.dv-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 48px; }
.dv-steps li { display: grid; gap: 16px; }
.dv-steps img { width: 100%; height: auto; filter: drop-shadow(0 24px 40px rgba(2, 6, 5, .55)); }
.dv-cap b { display: block; font: 700 19px/1.2 var(--display); color: var(--ink); margin-bottom: 6px; }
.dv-cap p { font-size: 15.5px; line-height: 1.62; max-width: 46ch; }
@media (min-width: 900px) {
  .dv-steps li { grid-template-columns: 7fr 5fr; align-items: center; gap: 48px; }
}

html.pin .dv { padding: 0; }
html.pin .dv-stage {
  height: 100vh; height: 100svh; display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: center;
  padding-block: 96px 40px;
}
html.pin .dv .intro { margin-bottom: 0; }
html.pin .dv-steps { position: relative; margin: 0; display: block; aspect-ratio: 1200 / 953; max-height: calc(100svh - 160px); }
html.pin .dv-steps li { position: absolute; inset: 0; display: block; }
html.pin .dv-steps li img { position: absolute; inset: 0; height: 100%; width: 100%; object-fit: contain; }
html.pin .dv-steps .dv-cap { display: none; }
.dv-caps { display: none; }
html.pin .dv-caps { display: grid; margin-top: 36px; }
html.pin .dv-caps > div { grid-area: 1 / 1; }

/* Upright Drive act: the heading gives way to the captions in one band, and
   the windows stack under it, as large as the rest of the screen allows. */
html.tall.pin .dv-stage {
  grid-template-columns: none; grid-template-rows: auto minmax(0, 1fr); gap: 24px; align-items: stretch;
  padding-block: 82px 24px;
}
html.tall.pin .dv-stage > div:first-child { display: grid; }
html.tall.pin .dv .intro, html.tall.pin .dv-caps { grid-area: 1 / 1; margin: 0; }
html.tall.pin .dv .intro h2 { font-size: clamp(1.7rem, 7.4vw, 2.6rem); }
html.tall.pin .dv .intro p { font-size: 16px; margin-top: 12px; }
html.tall.pin .dv-steps { aspect-ratio: auto; max-height: none; height: 100%; container-type: size; }
html.tall.pin .dv-steps li {
  inset: auto; left: 0; top: calc((100cqh - min(100cqw / 1.259, 100cqh)) / 2);
  width: min(100cqw, 100cqh * 1.259); aspect-ratio: 1200 / 953;
}

/* -------------------------------------------------------------- settings --
   The real Settings window, Formats in front of Appearance, the way two
   panes would sit if you'd opened both. */
.tune { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; }
.tune__copy { margin-bottom: 0; }
.tune__copy p + p { margin-top: 12px; }
.tune__windows { position: relative; aspect-ratio: 999 / 896; margin-right: 6%; }
.tune__windows img { position: absolute; width: 84%; height: auto; filter: drop-shadow(0 24px 40px rgba(2, 6, 5, .55)); }
.tune__back { left: 16%; top: 0; opacity: .7; }
.tune__front { left: 0; top: 12%; }

/* --------------------------------------------------------------- privacy --
   One statement on the hero's glass. */
.privacy { background: linear-gradient(180deg, var(--canvas) 0%, var(--glass-top) 50%, var(--canvas) 100%); }
.privacy__lead { max-width: 44rem; margin: 0 auto; text-align: center; }
.privacy__lead h2 { font-size: clamp(2.2rem, 5.4vw, 3.8rem); }
.privacy__lead p { margin-top: 20px; font-size: 17px; line-height: 1.6; }
.faq details p a { color: var(--brass-lit); font-weight: 500; text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* --------------------------------------------------------------- pricing -- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: 28px; border-radius: var(--r-card); background: var(--canvas); border: 1px solid var(--hair); box-shadow: var(--lip); }
.plan h3 { font-size: 19px; font-weight: 700; margin-bottom: 20px; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.price .mute { font-size: 14px; }
.price-num { font-family: var(--display); font-weight: 800; font-size: 48px; letter-spacing: -.035em; line-height: 1; color: var(--ink); }
/* The plan most people should buy: the one card lit from inside by brass. */
.price-lit {
  background: linear-gradient(168deg, color-mix(in srgb, var(--brass) 14%, var(--surface)), var(--surface) 60%);
  border-color: color-mix(in srgb, var(--brass) 34%, transparent);
}
.plan__rows { margin-bottom: 28px; flex: 1; }
.p-row { display: flex; gap: 11px; align-items: baseline; padding: 11px 0; border-top: 1px solid var(--hair-soft); font-size: 15px; line-height: 1.55; }
.p-row:first-child { border-top: none; }
.p-row::before { content: "✓"; flex: none; font-size: 13px; color: var(--brass-lit); }
.p-row b { color: var(--ink); font-weight: 600; }

/* The current version, under the cards. */
.release { margin: 28px 0 0; font-size: 14px; line-height: 1.6; color: var(--mute); }
.release a { padding-block: 6px; color: var(--body); font-weight: 500; text-underline-offset: 4px; text-decoration-thickness: 1px; text-decoration-color: rgba(237, 195, 113, .45); }
@media (hover: hover) { .release a:hover { color: var(--ink); text-decoration-color: var(--brass-lit); } }

/* ------------------------------------------------------------------- faq -- */
.section--faq { padding-block: 80px; }
.faq__title { font-size: clamp(1.7rem, 4vw, 2.4rem); padding-top: 40px; margin-bottom: 48px; border-top: 1px solid var(--hair); }
.faq details { padding: 0; }
.faq details + details { border-top: 1px solid var(--hair); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; list-style: none; cursor: pointer; font-weight: 600; font-size: 16px; color: var(--ink); }
.faq details[open] summary { padding-bottom: 0; }
.faq summary::-webkit-details-marker { display: none; }
.chev { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--mute); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.faq details[open] .chev { transform: rotate(180deg); }
.faq details p { margin: 12px 0 0; font-size: 15px; line-height: 1.65; }
.faq details p:last-child { margin-bottom: 20px; }

/* ---------------------------------------------------------------- footer -- */
.foot { border-top: 1px solid var(--hair); padding: 40px 24px 56px; font-size: 14px; color: var(--mute); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; max-width: 1080px; margin-inline: auto; }
.foot nav { display: flex; flex-wrap: wrap; gap: 20px; }
.foot a { color: var(--mute); text-decoration: none; font-weight: 500; }
.foot p { margin: 0; }

/* ------------------------------------------------------------ responsive -- */
@media (max-width: 1023px) {
  .nav-links { display: none; }
}
@media (max-width: 860px) {
  .plans { grid-template-columns: 1fr; }
  .tune { grid-template-columns: 1fr; gap: 36px; }
  .tune__windows { margin-right: 0; }
}
@media (max-width: 720px) {
  .nav { top: 10px; }
  .nav-pill { height: 50px; }
  .nav-download { display: none; }
  .foot { justify-content: center; text-align: center; }
}
/* Phones held upright. Every screenshot here sits in a crop frame cut to the
   part that matters: the Drive windows and the Settings window are cut to
   their content, and without the lens (reduced motion) the formats become a
   swipeable row of window cards.
   A crop frame takes --fa (its own width over height), --ar (the image's
   width over height), --z (image height over frame height) and --fx/--fy (the
   point to centre, as fractions of the image, kept inside so the frame is
   always full). The format cards get theirs from data-focus and data-zoom via
   spyglass.js, scaled a further --zm, and always start at the top. */
@media (max-width: 640px) {
  html:not(.lens) .gx-pv, .dv-shot, .tune__windows {
    container-type: inline-size; position: relative; overflow: hidden; isolation: isolate;
    aspect-ratio: var(--fa, 1); background: #1E1E1E;
  }
  html:not(.lens) .gx-pv > img, .dv-shot > img, .tune__windows > .tune__front {
    --fh: calc(100cqw / var(--fa, 1));
    --ih: calc(var(--fh) * var(--z, 1.3) * var(--zm, 1));
    --iw: calc(var(--ih) * var(--ar, 1.6));
    position: absolute; max-width: none; margin: 0; border: 0; border-radius: 0; filter: none;
    width: var(--iw); height: var(--ih); aspect-ratio: auto; object-fit: fill;
    left: clamp(calc(100cqw - var(--iw)), calc(50cqw - var(--fx, .5) * var(--iw)), 0px);
    top: clamp(calc(var(--fh) - var(--ih)), calc(var(--fh) / 2 - var(--fy, .5) * var(--ih)), 0px);
  }

  /* The formats: one card per format, swiped sideways, the next one peeking
     in. The first card is Markdown, so the hero's lens would only repeat it. */
  .gx-lens { display: none; }
  /* The hero's settle gradient sits behind the rail, not over its cards. */
  html:not(.lens) .gx-stage { isolation: isolate; }
  html:not(.lens) .gx-stage::after { z-index: -1; }
  html:not(.lens) .gx-objs {
    display: flex; align-items: stretch; gap: 12px; padding: 40px 24px 0; margin: 0;
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
    scroll-padding-inline: 24px; scrollbar-width: none;
  }
  html:not(.lens) .gx-objs::-webkit-scrollbar { display: none; }
  html:not(.lens) .gx-obj {
    flex: 0 0 calc(100% - 20px); scroll-snap-align: start;
    grid-template-columns: 40px 1fr; grid-template-rows: auto 1fr; gap: 0 12px;
    padding: 6px 18px 22px; border-radius: 18px;
    background: var(--surface); border: 1px solid var(--hair); box-shadow: var(--lip);
  }
  html:not(.lens) .gx-pv { --fa: 1.3333; --zm: 1.03; grid-row: 1; grid-column: 1 / -1; margin: 0 -12px 18px; border-radius: 12px; }
  html:not(.lens) .gx-pv > img { --fy: 0; }
  html:not(.lens) .gx-icon { grid-row: 2; width: 40px; height: 40px; }
  html:not(.lens) .gx-lbl { grid-row: 2; }
  html:not(.lens) .gx-lbl h3 { font-size: 1.3rem; }
  html:not(.lens) .gx-lbl .fact { font-size: 15px; margin-left: -52px; }
  .gx-pager:not([hidden]) { display: flex; align-items: center; gap: 10px; padding: 18px 24px 0; }
  .gx-count { margin-right: auto; font: 500 13px/1 var(--mono); letter-spacing: .06em; color: var(--mute); font-variant-numeric: tabular-nums; }
  .gx-count b { color: var(--ink); font-weight: 500; }
  .gx-step {
    display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 50%;
    color: var(--ink); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); box-shadow: var(--lip);
    transition: opacity .2s var(--ease);
  }
  .gx-step:disabled { opacity: .35; }
  .gx-step svg { width: 18px; height: 18px; }

  /* Google Drive: each window cut to its point. */
  .dv-steps { gap: 36px; }
  .dv-shot { --ar: 1.2592; border-radius: var(--r-card); border: 1px solid var(--hair); }
  /* Pinned, the windows share one frame and wipe over each other. The stub
     keeps its strip, cut to the JSON line, at the top of that frame. */
  html.tall.pin .dv-steps li { width: min(100cqw, 100cqh * 1.25); aspect-ratio: 1.25; top: calc((100cqh - min(100cqw / 1.25, 100cqh)) / 2); }
  html.tall.pin .dv-steps li:first-child { aspect-ratio: 2.6; }
  html.tall.pin .dv-steps .dv-shot { position: absolute; inset: 0; aspect-ratio: auto; }
  html.tall.pin .dv-steps .dv-shot > img {
    inset: auto; width: var(--iw); height: var(--ih); object-fit: fill;
    left: clamp(calc(100cqw - var(--iw)), calc(50cqw - var(--fx, .5) * var(--iw)), 0px);
    top: clamp(calc(var(--fh) - var(--ih)), calc(var(--fh) / 2 - var(--fy, .5) * var(--ih)), 0px);
  }

  /* Settings: the Formats pane alone, cut to its switches. */
  .tune__back { display: none; }
  .tune__windows { border-radius: var(--r-card); border: 1px solid var(--hair); }
}
/* The nav's logo and buttons are smaller than a fingertip; widen what
   catches the tap without changing how they look. */
@media (pointer: coarse) {
  .brand, .nav-actions a { position: relative; }
  .brand::after, .nav-actions a::after { content: ""; position: absolute; inset: -8px; }
}
@media (prefers-reduced-motion: reduce) {
  .chev { transition: none; }
}
