/* Visual effects adapted from Magic UI (https://magicui.design), MIT License, Copyright (c) Magic UI. See /MAGICUI-LICENSE.txt. Icons from Lucide (ISC License), see /icons/LUCIDE-LICENSE.txt.

   hubducks.com: one stylesheet, no scripts, nothing from other sites (fonts are served from /fonts).
   Magic UI pieces used, rewritten as plain HTML, SVG and CSS:
     1. iPhone frame (registry/magicui/iphone.tsx): the SVG frame around the example ad (the "How it works" film draws
        the same frame).
     2. Blur fade (blur-fade.tsx): headings and text fade in as they scroll into view (scroll-driven, only where
        supported; never on the film, which already moves).
   Everything that moves stops for "Pause motion" on the home page and for devices set to reduce motion. */

/* ---------- Fonts (SIL Open Font License, see /fonts/OFL-*.txt) ---------- */
@font-face {
  font-family: "Inter Tight";
  src: url("/fonts/inter-tight-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: dark;

  --bg: #0a0b0d;
  --bg-raised: #111316;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f4f3ef;
  --text-prose: #d6d5d0;   /* 13.4:1 on --bg */
  --text-2: #a3a7ae;       /* 8.2:1 on --bg */
  --text-3: #868b93;       /* 5.8:1 on --bg */
  --accent: #ffc629;       /* the main call to action only */
  --accent-hover: #ffd459;
  --on-accent: #0a0b0d;

  --font-display: "Inter Tight", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-text: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* Type scale: every size on the site is one of these (the phone mock-up's own UI aside). */
  --fs-display: clamp(2.75rem, 1.2rem + 5.6vw, 5.5rem);     /* 44 to 88: the h1 and the closing question only */
  --fs-heading: clamp(2.25rem, 1.3rem + 3vw, 4rem);         /* 36 to 64: section headings */
  --fs-subhead: clamp(1.625rem, 0.95rem + 2.1vw, 2.5rem);   /* 26 to 40 (40 from 1260px wide) */
  --fs-title: clamp(1.25rem, 1.1rem + 0.45vw, 1.5rem);      /* 20 to 24 */
  --fs-lead: clamp(1.125rem, 1rem + 0.42vw, 1.3125rem);     /* 18 to 21 */
  --fs-body: 1.0625rem;                                     /* 17, 18 on wide screens */
  --fs-prose: 1.0625rem;                                    /* 17, long-form reading (privacy) */
  --fs-ui: 1rem;                                            /* 16: buttons, links, the wordmark, step numbers */
  --fs-caption: 0.875rem;                                   /* 14: every caption, label, spec row, the nav and the footer */

  --lh-display: 1;
  --lh-heading: 1.04;
  --lh-subhead: 1.1;
  --lh-title: 1.25;
  --lh-lead: 1.5;
  --lh-body: 1.6;
  --lh-prose: 1.7;

  /* Inter Tight is already tight; the display size gets a little more so its big words sit close. */
  --track-display: -0.03em;
  --track-heading: -0.02em;
  --track-subhead: -0.016em;
  --track-title: -0.012em;
  --track-ui: -0.01em;

  --w-display: 580;   /* the variable font's in-between weight keeps big type from feeling heavy */

  /* 8px spacing scale */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px;
  --s7: 40px; --s8: 48px; --s9: 64px; --s10: 80px; --s11: 96px; --s12: 128px;

  /* One radius system */
  --r-s: 8px;
  --r-m: 16px;
  --r-pill: 999px;

  --container: 1180px;
  --gutter: 16px;
  --gap: 16px;
  --section-pad: clamp(96px, 3.5rem + 6vw, 168px);   /* the one gap between sections */
  --head-gap: clamp(48px, 2rem + 2.2vw, 64px);       /* from a section heading to its content */
  --header-h: 64px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
@media (min-width: 640px) { :root { --gutter: 32px; --gap: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 40px; --fs-body: 1.125rem; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--bg);
  scroll-padding-top: calc(var(--header-h) + 24px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-text);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-feature-settings: "calt", "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; }
p, h1, h2, h3, dl, dd, figure { margin: 0; }
p, dd { text-wrap: pretty; }
h1, h2, h3, dt { text-wrap: balance; }

a { color: inherit; }
a:not([class]) {
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  text-decoration-color: rgba(244, 243, 239, 0.35);
  transition: text-decoration-color 0.2s, color 0.2s;
}
a:not([class]):hover { text-decoration-color: currentColor; }

::selection { background: rgba(255, 198, 41, 0.3); color: var(--text); }

:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
  border-radius: 4px;
}
main:focus { outline: none; }

.container {
  width: min(var(--container), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--r-pill);
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  font-size: var(--fs-caption);
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(10, 11, 13, 0.86);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  backdrop-filter: saturate(1.4) blur(16px);
}
.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-ui);
  letter-spacing: -0.015em;
  line-height: 1;
  text-decoration: none;
  color: var(--text);
  border-radius: var(--r-s);
}
.brand-mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--text);
}
.brand-mark img { width: 22px; height: 22px; }
.brand-mark-sm { width: 24px; height: 24px; }
.brand-mark-sm img { width: 18px; height: 18px; }

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a {
  display: block;
  padding: 10px 0;
  font-size: var(--fs-caption);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.005em;
  color: var(--text-2);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }

/* Small phones: everything stays on one line, with a clear break between the name and the links. */
@media (max-width: 420px) {
  .header-bar { gap: var(--s5); }
  .brand { gap: 8px; }
  .brand-mark { width: 26px; height: 26px; }
  .brand-mark img { width: 20px; height: 20px; }
  .site-nav ul { gap: var(--s4); }
}
/* Under 375px the links step down to 13px, the one size outside the scale, so the bar stays on one line. */
@media (max-width: 374px) {
  .site-nav ul { gap: var(--s3); }
  .site-nav a { font-size: 0.8125rem; letter-spacing: 0; }
}
/* Very narrow phones: the duck alone, the name stays for screen readers. */
@media (max-width: 359px) {
  .brand-name {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

/* ---------- Shared type ---------- */
.display {
  font-family: var(--font-display);
  font-weight: var(--w-display);
  font-size: var(--fs-display);
  line-height: var(--lh-display);
  letter-spacing: var(--track-display);
}
.heading {
  font-family: var(--font-display);
  font-weight: var(--w-display);
  font-size: var(--fs-heading);
  line-height: var(--lh-heading);
  letter-spacing: var(--track-heading);
}
.section-lead {
  max-width: 34em;
  font-size: var(--fs-lead);
  line-height: var(--lh-lead);
  letter-spacing: -0.008em;
  color: var(--text-2);
}

/* ---------- Buttons and links ---------- */
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s3) var(--s6);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  height: 48px;
  padding: 0 24px;
  border-radius: var(--r-pill);
  font-family: var(--font-text);
  font-size: var(--fs-ui);
  font-weight: 600;
  line-height: 1;
  letter-spacing: var(--track-ui);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s, transform 0.2s var(--ease);
}
.button:active { transform: translateY(1px); }
.button-primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 1px 2px rgba(0, 0, 0, 0.5);
}
.button-primary:hover { background: var(--accent-hover); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 0;
  font-size: var(--fs-ui);
  font-weight: 500;
  line-height: 1;
  letter-spacing: var(--track-ui);
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.2s;
}
.text-link:hover { color: var(--text); }
.text-link .icon { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.text-link:hover .icon { transform: translateY(2px); }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(24px, 0.5rem + 2vw, 48px); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: var(--s9);
}
/* The product's name and who makes it: a quiet label, so the h1 owns the hero. */
.product-name {
  margin-bottom: var(--s4);
  font-size: var(--fs-caption);
  font-weight: 500;
  line-height: 1.4;
  color: var(--text-2);
}
.hero h1 { max-width: 10.5em; }
.hero-lead {
  max-width: 31em;
  margin-top: var(--s5);
  font-size: var(--fs-lead);
  line-height: var(--lh-lead);
  letter-spacing: -0.008em;
  color: var(--text-2);
}
.hero .actions { margin-top: var(--s7); }
.hero-note {
  max-width: 34em;
  margin-top: var(--s4);
  font-size: var(--fs-caption);
  line-height: 1.5;
  color: var(--text-3);
}

/* The phone, its caption and the switch share one left edge. */
.hero-media {
  display: grid;
  justify-content: start;
}

/* Phones: the device sits centred and small enough that it and its caption share one screen. */
@media (max-width: 759px) {
  .hero-media { justify-content: stretch; justify-items: center; }
  .ad-figure figcaption { text-align: center; }
  .hero-media .motion-toggle { justify-self: center; }
}
@media (min-width: 760px) {
  .hero-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gap);
    align-items: center;
  }
  .hero-copy { grid-column: 1 / span 7; }
  .hero-media { grid-column: 8 / span 5; justify-content: end; }
}
@media (min-width: 900px) {
  /* Bottom padding the height of the caption and switch, so the copy centres on the phone itself. */
  .hero-copy { padding-bottom: 128px; }
}
@media (min-width: 1200px) {
  /* With the container at its full 1180px, the copy takes an eighth column so the 88px headline keeps three lines.
     The phone (at most 400px) sits at the right edge of the last five, so the two never meet. */
  .hero-copy { grid-column: 1 / span 8; grid-row: 1; }
  .hero-media { grid-row: 1; }
}

/* ---------- iPhone frame (adapted from Magic UI's iPhone component) ---------- */
.ad-figure { width: var(--phone-w); }
.hero-media { --phone-w: min(100%, 320px); }
@media (min-width: 760px) { .hero-media { --phone-w: min(100%, 300px); } }
@media (min-width: 900px) {
  /* As big as the first screen allows (324px on a 900px-tall window, 400px from 1055px tall), with the caption
     and the Pause motion switch about 24px clear of the fold. */
  .hero { padding-top: var(--s5); }
  .hero-media { --phone-w: clamp(300px, calc((100vh - 240px) * 0.491), 400px); }
  @supports (height: 100svh) {
    .hero-media { --phone-w: clamp(300px, calc((100svh - 240px) * 0.491), 400px); }
  }
}
.phone {
  position: relative;
  width: 100%;
  aspect-ratio: 433 / 882;
  /* A hairline rim light so the edge reads on the black page; the frame's own rim gradient does the rest. */
  filter: drop-shadow(0 0 0.5px rgba(255, 255, 255, 0.18));
}
/* The screen opening, in the frame's own proportions (433 x 882, screen at 21.25, 19.25, 389.5 x 843.5, radius 55.75). */
.phone-screen {
  position: absolute;
  left: 4.9076%;
  top: 2.1825%;
  width: 89.9538%;
  height: 95.6349%;
  border-radius: 14.3132% / 6.6094%;
  overflow: hidden;
  background: #000;
  container-type: inline-size;
}
.phone-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
/* Like Reels on a tall phone: the 9:16 ad fills the width from the top, and the account row and button sit
   over its foot. Nothing is cropped from the sides. */
.ad-video, .ad-still {
  position: absolute;
  inset: 0 0 auto 0;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}
.ad-still { display: none; }

/* What Instagram draws over a Reels ad, kept minimal. */
.screen-ui {
  position: absolute;
  inset: 0;
  color: #fff;
  font-family: var(--font-text);
  font-size: 13px;
  font-size: 4cqi;
  line-height: 1;
  pointer-events: none;
}
/* The ad's foot fades into the black under it, where the account row and button sit. */
.screen-ui::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100cqi * 16 / 9 - 28cqi);
  height: 28.5cqi;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0), #000);
}
.status-bar {
  position: absolute;
  inset: 0 0 auto 0;
  height: 6.94%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0));
}
.status-time, .status-icons {
  position: absolute;
  top: 0;
  height: 100%;
  width: 34%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.status-time { left: 0; font-weight: 600; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.status-icons { right: 0; gap: 1.6cqi; }
.status-icons svg { width: auto; height: 3cqi; }
.reel-meta {
  position: absolute;
  inset: auto 0 0 0;
  display: grid;
  gap: 3.4cqi;
  padding: 18cqi 5cqi 9cqi;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.32) 55%, rgba(0, 0, 0, 0));
}
.reel-meta::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2.2cqi;
  width: 34%;
  height: 1.3cqi;
  border-radius: 1cqi;
  background: #fff;
  transform: translateX(-50%);
}
.reel-account { display: flex; align-items: center; gap: 2.4cqi; }
.reel-avatar {
  display: grid;
  place-items: center;
  width: 8cqi;
  height: 8cqi;
  border-radius: 50%;
  background: #f4f3ef;
}
.reel-avatar svg { width: 4.6cqi; height: 4.6cqi; }
.reel-name { display: grid; gap: 1.2cqi; font-size: 3.6cqi; font-weight: 600; letter-spacing: -0.01em; }
.reel-sponsored { font-size: 3cqi; font-weight: 400; opacity: 0.8; }
.reel-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 10cqi;
  padding: 0 3.2cqi 0 4cqi;
  border-radius: 2.4cqi;
  background: rgba(255, 255, 255, 0.18);
  font-size: 3.6cqi;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.reel-cta svg { width: 3.6cqi; height: 3.6cqi; }

.ad-figure figcaption {
  margin-top: var(--s5);
  font-size: var(--fs-caption);
  line-height: 1.45;
  color: var(--text-2);
  text-wrap: balance;
}

/* Pause motion: a checkbox inside its label, so the visible text is its name. No script needed. */
.motion-toggle {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 10px;
  margin-top: var(--s2);
  padding: 6px 0;
  font-size: var(--fs-caption);
  line-height: 1;
  color: var(--text-2);
  cursor: pointer;
  user-select: none;
}
.motion-toggle:hover { color: var(--text); }
.motion-toggle input {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  width: 32px;
  height: 20px;
  margin: 0;
  border-radius: var(--r-pill);
  background-color: rgba(255, 255, 255, 0.14);
  background-image: radial-gradient(circle, var(--text) 0 6px, transparent 6.5px);
  background-size: 20px 20px;
  background-repeat: no-repeat;
  background-position: 0 0;
  /* The off state's edge: 3.3:1 against the page, so the track reads without its knob. */
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.36);
  cursor: pointer;
  transition: background-position 0.25s var(--ease), background-color 0.2s;
}
.motion-toggle input:checked {
  background-color: var(--text);
  background-image: radial-gradient(circle, var(--bg) 0 6px, transparent 6.5px);
  background-position: 12px 0;
}
.motion-toggle input:focus-visible { outline-offset: 3px; border-radius: var(--r-pill); }

/* ---------- Sections: separated by whitespace, not rules ---------- */
.section { padding-top: var(--section-pad); }

/* ---------- How it works: the film first, then the three steps under it as its legend ---------- */
/* The film: the three steps in 14 seconds. Wide (16:9) from 768px, 4:5 on phones; the <source> media queries pick
   the file, these rules the frame. No outline: the film's ground is the page's own --bg, so it sits on the page
   like the other blocks, separated by whitespace. The still (a frame of step two, in the shape that fits the screen)
   is always drawn under the video and works as its poster: a video with no poster paints nothing until its first
   frame, so the still shows until then, and wherever the video cannot play. Pause motion and reduced motion only
   hide the video. "cover" keeps the frame filled if a window is resized across 768px after the file has loaded. */
.film { margin-top: var(--head-gap); }
.film-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
@media (min-width: 768px) { .film-media { aspect-ratio: 16 / 9; } }
.film-video, .film-still, .film-still img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.film-video, .film-still img { object-fit: cover; }
.film figcaption {
  margin-top: var(--s4);
  font-size: var(--fs-caption);
  line-height: 1.45;
  color: var(--text-2);
}

.steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: var(--s8);
  margin: var(--s9) 0 0;
  padding: 0;
  list-style: none;
}
.step {
  padding-top: var(--s5);
  border-top: 1px solid var(--line-strong);
}
.step-num {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-ui);
  font-weight: 500;
  line-height: 20px;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.step-title {
  max-width: 19em;
  margin-top: var(--s3);
  font-family: var(--font-display);
  font-size: var(--fs-title);
  font-weight: 600;
  line-height: var(--lh-title);
  letter-spacing: var(--track-title);
  color: var(--text);
}
.step-text {
  max-width: 30em;
  margin-top: var(--s3);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text-2);
}
@media (min-width: 900px) {
  .steps {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gap);
  }
  .step { grid-column: span 4; }
}

/* ---------- What stays yours: full-width rows, like a spec sheet ---------- */
.facts {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin-top: var(--head-gap);
}
.fact {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: var(--s3);
  padding-block: var(--s6);
  border-top: 1px solid var(--line);
}
.fact:last-child { border-bottom: 1px solid var(--line); }
.fact dt {
  font-family: var(--font-display);
  font-size: var(--fs-subhead);
  font-weight: var(--w-display);
  line-height: var(--lh-subhead);
  letter-spacing: var(--track-subhead);
  color: var(--text);
}
.fact dd {
  max-width: 30em;
  margin: 0;
  font-size: var(--fs-lead);
  line-height: var(--lh-lead);
  color: var(--text-2);
}
@media (min-width: 900px) {
  .fact {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gap);
    align-items: baseline;
    padding-block: var(--s7);
  }
  .fact dt { grid-column: 1 / span 5; }
  .fact dd { grid-column: 7 / span 6; }
}

/* ---------- Two-column sections ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: var(--head-gap);
}
.split-head .section-lead { margin-top: var(--s5); }
@media (min-width: 900px) {
  .split {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gap);
    align-items: start;
  }
  /* Headings on columns 1 to 5, answers on column 7: the same axis as "What stays yours". */
  .split-head { grid-column: 1 / span 5; }
  /* Formats: pictures on columns 1 to 6, words on 8 to 12, with the specs under the words. */
  .split-reverse { grid-template-rows: auto 1fr; }
  .split-reverse .split-head { grid-column: 8 / span 5; grid-row: 1; }
  /* Optical alignment: the heading's cap height lines up with the top of the pictures. */
  .split-reverse .split-head .heading { margin-top: -0.16em; }
  .split-reverse .format-figure { grid-column: 1 / span 6; grid-row: 1 / span 2; }
  .split-reverse .specs { grid-column: 8 / span 5; grid-row: 2; align-self: start; }
}

/* Formats: the same ad in both sizes, at the same width so the difference in height shows. */
.format-figure { width: 100%; }
.format-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  gap: var(--s5);
}
.format { min-width: 0; }
.format img {
  width: 100%;
  height: auto;
  border-radius: var(--r-m);
  background: var(--bg-raised);
  box-shadow: 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.format-vertical img { aspect-ratio: 9 / 16; }
.format-feed img { aspect-ratio: 4 / 5; }
.format-label {
  display: block;
  margin-top: var(--s4);
  font-size: var(--fs-caption);
  line-height: 1.4;
  color: var(--text);
}
.format-figure figcaption {
  margin-top: var(--s5);
  font-size: var(--fs-caption);
  line-height: 1.45;
  color: var(--text-2);
}

.specs > div {
  display: grid;
  grid-template-columns: 7.5em minmax(0, 1fr);
  gap: var(--s4);
  padding-block: var(--s3);
  border-top: 1px solid var(--line);
  font-size: var(--fs-caption);
  line-height: 1.45;
}
.specs > div:last-child { border-bottom: 1px solid var(--line); }
.specs dt { color: var(--text-2); }
.specs dd { margin: 0; color: var(--text); font-variant-numeric: tabular-nums; }
.spec-ratio { margin-left: 0.5em; color: var(--text-3); white-space: nowrap; }

/* Questions */
.qa-item {
  padding-block: var(--s5);
  border-top: 1px solid var(--line);
}
.qa-item:first-child { padding-top: 0; border-top: 0; }
.qa-item:last-child { padding-bottom: 0; }
.qa dt {
  font-family: var(--font-display);
  font-size: var(--fs-title);
  font-weight: 600;
  line-height: var(--lh-title);
  letter-spacing: var(--track-title);
  color: var(--text);
}
.qa dd {
  max-width: 34em;
  margin-top: var(--s2);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text-2);
}
@media (min-width: 900px) {
  /* The first question sits on the heading's baseline. */
  .questions .split { align-items: first baseline; }
  .qa { grid-column: 7 / span 6; }
}

/* Call to action: the one rule on the page sets the close apart. */
.cta { padding-bottom: var(--section-pad); }
.cta > .container {
  padding-top: var(--section-pad);
  border-top: 1px solid var(--line);
}
.cta-title { max-width: 13em; }
.cta-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: var(--s8);
  margin-top: var(--head-gap);
}
.cta-text {
  max-width: 30em;
  font-size: var(--fs-lead);
  line-height: var(--lh-lead);
  color: var(--text-2);
}
.cta-copy .button { margin-top: var(--s6); }
/* The address is the close's payoff: big, plain, and on the same column as the answers above. */
.cta-mail { display: grid; justify-items: start; row-gap: var(--s2); }
.cta-mail-label {
  font-size: var(--fs-caption);
  line-height: 1.4;
  color: var(--text-2);
}
.cta-email {
  font-family: var(--font-display);
  font-size: var(--fs-subhead);
  font-weight: 500;
  line-height: var(--lh-subhead);
  letter-spacing: var(--track-subhead);
  color: var(--text);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
  text-decoration-color: var(--line-strong);
  transition: text-decoration-color 0.2s;
}
.cta-email:hover { text-decoration-color: currentColor; }
@media (min-width: 900px) {
  .cta-row {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gap);
    align-items: end;
  }
  .cta-copy { grid-column: 1 / span 5; }
  .cta-mail { grid-column: 7 / span 6; }
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: var(--s7) var(--s8);
  font-size: var(--fs-caption);
  line-height: 1.5;
  color: var(--text-2);
}
.footer-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4) var(--s6);
}
.footer-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
/* The dots sit before an item, never at the end of a line. On phones the policy link takes its own line. */
.footer-legal { display: flex; flex-wrap: wrap; column-gap: 0.5em; }
.footer-legal > * + *::before {
  content: "\00B7";
  content: "\00B7" / "";
  display: inline-block;
  margin-right: 0.5em;
  color: var(--text-3);
}
@media (max-width: 639px) {
  .footer-legal > :last-child { flex-basis: 100%; }
  .footer-legal > :last-child::before { content: none; }
}
.footer-legal a { color: var(--text-2); }
.footer-legal a:hover { color: var(--text); }

/* ---------- Privacy policy ---------- */
.doc {
  padding-block: clamp(56px, 2rem + 4vw, 112px) var(--section-pad);
}
.doc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: var(--s8);
}
.doc-head h1 {
  font-family: var(--font-display);
  font-weight: var(--w-display);
  font-size: var(--fs-heading);
  line-height: var(--lh-heading);
  letter-spacing: var(--track-heading);
}
.updated {
  margin-top: var(--s4);
  font-size: var(--fs-caption);
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}
.prose {
  max-width: 68ch;
  font-size: var(--fs-prose);
  line-height: var(--lh-prose);
  color: var(--text-prose);
}
.prose > p:first-child {
  font-size: var(--fs-lead);
  line-height: var(--lh-lead);
  color: var(--text);
}
.prose p + p { margin-top: var(--s4); }
.prose h2 {
  margin-top: var(--s9);
  padding-top: var(--s7);
  border-top: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: var(--fs-title);
  font-weight: 600;
  line-height: var(--lh-title);
  letter-spacing: var(--track-title);
  color: var(--text);
}
.prose h3 {
  margin-top: var(--s6);
  font-family: var(--font-text);
  font-size: var(--fs-body);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--text);
}
.prose h2 + p, .prose h2 + h3, .prose h2 + ul { margin-top: var(--s4); }
.prose h3 + p { margin-top: var(--s2); }
.prose p + ul { margin-top: var(--s3); }
.prose ul { margin: 0; padding-left: 1.25em; }
.prose li { padding-left: 0.35em; }
.prose li + li { margin-top: var(--s2); }
.prose li::marker { color: var(--text-3); }
.prose a { color: var(--text); }

@media (min-width: 900px) {
  .doc-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gap);
    align-items: start;
  }
  .doc-head {
    grid-column: 1 / span 4;
    position: sticky;
    top: calc(var(--header-h) + var(--s8));
  }
  /* In the sidebar the title steps down a size, and a full column keeps it clear of the text. */
  .doc-head h1 {
    font-size: var(--fs-subhead);
    line-height: var(--lh-subhead);
    letter-spacing: var(--track-subhead);
  }
  .prose { grid-column: 6 / span 7; }
}

/* ---------- 404 ---------- */
.lost {
  display: grid;
  align-content: center;
  min-height: calc(100vh - var(--header-h) - 120px);
  padding-block: var(--s12);
}
.lost-code {
  margin-bottom: var(--s5);
  font-size: var(--fs-caption);
  font-weight: 500;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.lost h1 { max-width: 10em; }
.lost-text {
  margin-top: var(--s5);
  font-size: var(--fs-lead);
  line-height: var(--lh-lead);
  color: var(--text-2);
}
.lost .actions { margin-top: var(--s7); }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* Header: clear over the hero, then a frosted bar once the page scrolls. */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .site-header {
      animation: header-solid linear both;
      animation-timeline: scroll(root);
      animation-range: 0px 48px;
    }
  }
}
@keyframes header-solid {
  from { background-color: rgba(10, 11, 13, 0); border-bottom-color: rgba(255, 255, 255, 0); }
  to { background-color: rgba(10, 11, 13, 0.86); border-bottom-color: rgba(255, 255, 255, 0.08); }
}

/* Blur fade (adapted from Magic UI): only where scroll-driven animations exist, so nothing is ever left hidden. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: blur-fade linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 80%;
    }
    .step.reveal:nth-child(2), .fact.reveal:nth-child(2) { animation-range: entry 8% entry 88%; }
    .step.reveal:nth-child(3), .fact.reveal:nth-child(3) { animation-range: entry 16% entry 96%; }
  }
}
@keyframes blur-fade {
  from { opacity: 0; transform: translateY(14px); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: none; }
}

/* Pause motion switch: still images instead of the two videos (the ad and the film; the film's still is always under
   it), and every animation stops. */
html:has(#pause-motion:checked) { scroll-behavior: auto; }
html:has(#pause-motion:checked) .ad-video,
html:has(#pause-motion:checked) .film-video { display: none; }
html:has(#pause-motion:checked) .ad-still { display: block; }
html:has(#pause-motion:checked) *,
html:has(#pause-motion:checked) *::before,
html:has(#pause-motion:checked) *::after { animation-play-state: paused !important; }
html:has(#pause-motion:checked) .reveal { animation: none; }
/* The header's scroll-linked background is not motion; pausing it would make the bar jump to solid over the hero. */
html:has(#pause-motion:checked) .site-header { animation-play-state: running !important; }

/* Devices set to reduce motion: the still images only (no video file is even downloaded), nothing animates. */
@media (prefers-reduced-motion: reduce) {
  .ad-video, .film-video { display: none; }
  .ad-still { display: block; }
  /* The switch, and the film caption's pointer to it, are not needed: nothing moves. */
  .motion-toggle, .film-pause { display: none; }
  *, *::before, *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
