/* Tally Compare — site styles. No external resources; fonts are self-hosted (SIL OFL, see fonts/OFL.txt). */

@font-face {
  font-family: "Hanken Grotesk";
  src: url("/assets/fonts/hanken-grotesk-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Hanken Grotesk";
  src: url("/assets/fonts/hanken-grotesk-latin-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --white: #ffffff;
  --mist: #f5f5f7;
  --ink: #1d1d1f;
  --ink-2: #424245;
  --muted: #6e6e73;
  --hairline: #d2d2d7;
  --night: #111113;
  --night-2: #1f1f22;
  --night-muted: #a1a1a6;
  --marker: #c8f04a;
  --marker-soft: #e6f8a6;
  --marker-ink: #2f3b00;

  --font: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --radius: 18px;
  --wrap: 1080px;
  --measure: 68ch;
  --gutter: clamp(20px, 5vw, 40px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  letter-spacing: -0.01em;
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--marker);
  color: var(--ink);
}

img,
svg {
  display: block;
}

a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
  transition: text-decoration-color 160ms var(--ease-out), background-color 160ms var(--ease-out);
}

a:hover {
  text-decoration-color: currentColor;
}

:focus-visible {
  /* Ink ring for contrast (WCAG 2.2), lime fill in the offset gap as the pen mark. */
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 6px;
  box-shadow: 0 0 0 3px var(--marker);
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 20;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--white) 82%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid color-mix(in srgb, var(--hairline) 70%, transparent);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.logo {
  width: 30px;
  height: 26px;
  flex: none;
}

.logo path,
.logo line,
.logo circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

.logo .slat,
.logo .wheel {
  stroke-width: 2;
}

.logo .slash {
  stroke: var(--marker);
  stroke-width: 2.8;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 28px);
  font-size: 0.875rem;
}

.site-header nav a {
  color: var(--ink-2);
  text-decoration: none;
  padding-block: 6px;
}

.site-header nav a:hover {
  color: var(--ink);
}

.site-header nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
  text-decoration-line: underline;
  text-decoration-thickness: 3px;
  text-decoration-color: var(--marker);
  text-underline-offset: 0.5em;
}

/* ---------- Type ---------- */

h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  text-wrap: balance;
}

p {
  margin: 0 0 1em;
  text-wrap: pretty;
}

mark {
  background: linear-gradient(transparent 58%, var(--marker) 58%, var(--marker) 92%, transparent 92%);
  color: inherit;
  padding-inline: 0.06em;
}

.lede {
  font-size: clamp(1.1875rem, 1rem + 0.8vw, 1.5rem);
  line-height: 1.45;
  color: var(--ink-2);
  letter-spacing: -0.015em;
}

/* ---------- Buttons ---------- */

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

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: background-color 200ms var(--ease-out), color 200ms var(--ease-out), transform 200ms var(--ease-out);
}

.button:active {
  transform: scale(0.98);
}

.button-primary {
  background: var(--ink);
  color: var(--white);
}

.button-primary:hover {
  background: #000;
}

.button-secondary {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--ink);
}

.button-secondary:hover {
  background: var(--marker);
  box-shadow: inset 0 0 0 1.5px var(--ink);
}

.arrow {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 200ms var(--ease-out);
}

.button:hover .arrow,
.text-link:hover .arrow {
  transform: translateX(3px);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

/* ---------- Home: hero ---------- */

.hero {
  padding-block: clamp(40px, 6vw, 72px) clamp(48px, 7vw, 88px);
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.625rem, 1.4rem + 5vw, 5rem);
  letter-spacing: -0.04em;
  line-height: 1.02;
  max-width: 14ch;
  margin-inline: auto;
}

.hero .lede {
  max-width: 34ch;
  margin: 24px auto 0;
}

.notice {
  max-width: 60ch;
  margin: 28px auto 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--muted);
}

.notice p {
  margin: 0;
}

.notice strong {
  color: var(--ink-2);
}

/* Example comparison */

.example {
  margin: clamp(32px, 4vw, 48px) 0 0;
  text-align: left;
}

.example-frame {
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 24px 60px -24px rgb(0 0 0 / 0.18);
  overflow-x: auto;
  overflow-y: hidden;
}

.compare {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.compare caption {
  caption-side: top;
  padding: 16px 24px;
  text-align: left;
  font-size: 0.8125rem;
  color: var(--muted);
  border-bottom: 1px solid var(--hairline);
}

.compare th,
.compare td {
  padding: 18px 24px;
  vertical-align: top;
  border-bottom: 1px solid var(--hairline);
}

.compare tbody tr:last-child th,
.compare tbody tr:last-child td {
  border-bottom: 0;
}

.compare thead th {
  padding-block: 28px 20px;
  font-size: 1.375rem;
  letter-spacing: -0.025em;
  text-align: center;
}

.compare thead th:first-child {
  text-align: left;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--muted);
  vertical-align: bottom;
}

.compare tbody th {
  width: 28%;
  text-align: left;
  font-weight: 600;
}

.compare .source {
  display: block;
  margin-top: 4px;
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.4;
}

.compare td {
  text-align: center;
  color: var(--ink-2);
}

.compare .gap {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--marker-soft);
  color: var(--marker-ink);
  font-weight: 600;
  font-size: 0.8125rem;
  white-space: nowrap;
}

.model-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  vertical-align: 0.15em;
  border-radius: 50%;
  background: var(--ink);
}

/* ---------- Home: sections ---------- */

.band {
  padding-block: clamp(64px, 10vw, 120px);
}

.band-mist {
  background: var(--mist);
}

.band-night {
  background: var(--night);
  color: var(--white);
}

.section-head {
  max-width: 22ch;
  font-size: clamp(2rem, 1.2rem + 3vw, 3.5rem);
  letter-spacing: -0.035em;
}

.principles {
  display: grid;
  gap: 0;
  margin: clamp(40px, 6vw, 64px) 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--hairline);
}

.principles li {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 12px 48px;
  padding-block: clamp(24px, 4vw, 36px);
  border-bottom: 1px solid var(--hairline);
}

.principles h3 {
  font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem);
  letter-spacing: -0.025em;
}

.principles p {
  margin: 0;
  color: var(--ink-2);
  max-width: 52ch;
}

.paid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 32px 64px;
  align-items: start;
}

.paid .section-head {
  max-width: 16ch;
}

.paid p {
  color: var(--night-muted);
  font-size: 1.125rem;
  line-height: 1.55;
}

.paid p strong {
  color: var(--white);
  font-weight: 600;
}

.paid .text-link {
  color: var(--white);
}

.paid .text-link:focus-visible,
.band-night .button:focus-visible {
  outline-color: var(--marker);
}

.close {
  text-align: center;
}

.close .section-head {
  margin-inline: auto;
}

.close .lede {
  max-width: 40ch;
  margin: 20px auto 0;
}

/* ---------- Document pages ---------- */

.doc-head {
  background: var(--mist);
  padding-block: clamp(56px, 9vw, 104px) clamp(40px, 6vw, 64px);
}

.doc-head h1 {
  font-size: clamp(2.5rem, 1.5rem + 4vw, 4.25rem);
  letter-spacing: -0.04em;
  max-width: 16ch;
}

.doc-head .lede {
  max-width: 44ch;
  margin: 20px 0 0;
}

.doc-head .meta {
  margin: 16px 0 0;
  font-size: 0.9375rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.doc {
  padding-block: clamp(40px, 6vw, 72px) clamp(64px, 10vw, 112px);
}

.doc-body {
  max-width: var(--measure);
}

.doc-body h2 {
  font-size: clamp(1.5rem, 1.25rem + 0.9vw, 1.875rem);
  letter-spacing: -0.025em;
  margin: 2.4em 0 0.6em;
}

.doc-body > h2:first-child {
  margin-top: 0;
}

.doc-body p,
.doc-body li {
  color: var(--ink-2);
}

.doc-body ul {
  margin: 0 0 1em;
  padding-left: 1.2em;
}

.doc-body li {
  margin-bottom: 0.6em;
  padding-left: 0.3em;
}

.doc-body li::marker {
  color: var(--muted);
}

.callout {
  margin: 0 0 2.4em;
  padding: 24px 28px;
  border-radius: var(--radius);
  background: var(--marker-soft);
  color: var(--marker-ink);
}

.callout p {
  margin: 0;
  color: inherit;
  font-size: 1.125rem;
  line-height: 1.5;
  font-weight: 500;
}

.paid-link-label {
  display: inline-block;
  padding: 1px 9px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: var(--white);
  color: var(--ink-2);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  vertical-align: 0.12em;
}

.mail {
  display: inline-block;
  margin: 8px 0 24px;
  font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  text-decoration-thickness: 3px;
  text-decoration-color: var(--marker);
  text-underline-offset: 0.18em;
}

.mail:hover {
  background: var(--marker-soft);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--mist);
  border-top: 1px solid var(--hairline);
  padding-block: 32px 40px;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--muted);
}

.site-footer p {
  margin: 0 0 10px;
  max-width: 72ch;
}

.site-footer .footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
}

.site-footer .footer-row p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}

.site-footer a {
  color: var(--ink-2);
}

/* ---------- Home: story (photos, colour scenes, pinned table) ----------
   Static first: every block reads complete without scroll-driven animation.
   The scroll effects live in one @supports block below the motion section. */

:root {
  --coral: #ff8a5c;
  --coral-ink: #1d1d1f;
  --blue: #2350e6;
  --red: #c41d24;
}

.hero {
  padding-bottom: 0;
}

.hero-photo {
  margin: clamp(40px, 6vw, 64px) 0 0;
  clip-path: inset(0 max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter))) round var(--radius));
}

.hero-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  object-position: 40% 45%;
}

.statement {
  padding-block: clamp(96px, 14vw, 180px);
}

.glow {
  max-width: 24ch;
  margin: 0;
  font-size: clamp(1.875rem, 1rem + 3.4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.035em;
  text-wrap: balance;
  color: var(--muted);
}

.glow .s {
  color: var(--ink);
}

.story {
  padding-block: clamp(64px, 10vw, 120px);
  background: var(--mist);
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 40px 56px;
  align-items: center;
}

.steps {
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.step + .step {
  margin-top: 24px;
}

.step h3 {
  margin: 0;
  font-size: 1.375rem;
  letter-spacing: -0.02em;
}

.step p {
  margin: 6px 0 0;
  max-width: 34ch;
  color: var(--ink-2);
}

.story .example {
  margin: 0;
}

.story .compare {
  min-width: 0;
}

.story .compare th,
.story .compare td {
  padding-inline: 16px;
}

.scene {
  padding-block: clamp(80px, 12vw, 160px);
}

.scene-coral {
  background: var(--coral);
  color: var(--coral-ink);
}

.scene-blue {
  background: var(--blue);
  color: var(--white);
}

.scene-red {
  background: var(--red);
  color: var(--white);
}

.scene-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 40px 72px;
  align-items: center;
}

.scene-copy h2 {
  margin: 0;
  font-size: clamp(2.5rem, 1.3rem + 4.4vw, 4.75rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.scene-copy p {
  max-width: 30ch;
  margin: 20px 0 0;
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  line-height: 1.45;
}

.scene-photo {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 5;
}

.scene-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scene-red .scene-photo {
  aspect-ratio: 4 / 3;
}

.scene-red .scene-photo img {
  object-position: 50% 35%;
}

/* Blue scene: the one full-bleed photo, type set over its blue-washed right side. */
.scene-blue {
  position: relative;
  overflow: hidden;
}

.scene-blue .scene-grid {
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  min-height: min(70vh, 640px);
}

.scene-blue .scene-copy {
  position: relative;
  z-index: 1;
  grid-column: 2;
}

.scene-blue .scene-photo {
  position: absolute;
  inset: 0;
  aspect-ratio: auto;
  border-radius: 0;
}

.scene-blue .scene-photo img {
  object-position: 28% 50%;
}

.scene-blue .scene-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgb(35 80 230 / 0) 28%, rgb(35 80 230 / 0.78) 50%, rgb(35 80 230 / 0.94) 64%);
}

/* ---------- Motion: the cart logo draws itself once ---------- */

@media (prefers-reduced-motion: no-preference) {
  .logo .frame {
    animation: logo-draw 620ms var(--ease-out) both;
  }

  .logo .slat {
    animation: logo-draw 360ms var(--ease-out) both;
  }

  .logo .slat:nth-of-type(1) { animation-delay: 260ms; }
  .logo .slat:nth-of-type(2) { animation-delay: 320ms; }
  .logo .slat:nth-of-type(3) { animation-delay: 380ms; }

  .logo .wheel {
    animation: logo-draw 420ms var(--ease-out) 300ms both;
  }

  .logo .slash {
    animation: logo-draw 520ms var(--ease-out) 520ms both;
  }

  .hero mark {
    background-size: 100% 100%;
    background-repeat: no-repeat;
    animation: marker-sweep 900ms var(--ease-out) 450ms both;
  }
}

@keyframes logo-draw {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}

@keyframes marker-sweep {
  from { background-size: 0% 100%; }
  to { background-size: 100% 100%; }
}

/* ---------- Motion: scroll-driven story (CSS only; Chrome, Edge, Safari 26+) ----------
   Without support or with reduced motion, the static layout above is the page. */

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    /* The hero photo opens from the content column to full bleed as you start scrolling. */
    .hero-photo {
      animation: hero-open linear both;
      animation-timeline: scroll(root);
      animation-range: 0 70vh;
    }

    /* Words light up as the line reaches the middle of the screen. */
    .glow .w {
      color: #8e8e93;
      animation: word-on linear both;
      animation-timeline: view();
      animation-range: cover 30% cover 48%;
    }

    .glow .s {
      animation-name: word-on-strong;
    }

    /* Colour scenes: one canvas whose colour changes as each scene takes the screen. */
    .scenes {
      view-timeline: --scenes block;
      animation: scenes-colour linear both;
      animation-timeline: --scenes;
      animation-range: contain 0% contain 100%;
    }

    .scene {
      display: grid;
      align-content: center;
      min-height: 100svh;
      background: transparent;
    }

    .scene-coral { color: var(--coral-ink); }
    .scene-blue,
    .scene-red { color: var(--white); }

    .scene-blue .scene-photo {
      animation-name: photo-in-bleed;
    }

    .scene-red .scene-photo {
      aspect-ratio: 4 / 3;
    }

    .scene-photo {
      animation: photo-in linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 45%;
    }

    .scene-photo img {
      height: 116%;
      animation: photo-drift linear both;
      animation-timeline: view();
      animation-range: cover;
    }
  }
}

/* The pinned table: three steps play out while the table stays on screen. Desktop only. */
@media (prefers-reduced-motion: no-preference) and (min-width: 761px) and (min-height: 620px) {
  @supports (animation-timeline: view()) {
    .story {
      height: 380vh;
      padding: 0;
      view-timeline: --story block;
    }

    .story-pin {
      position: sticky;
      top: 56px;
      display: grid;
      align-items: center;
      height: calc(100vh - 56px);
      height: calc(100svh - 56px);
    }

    .steps {
      display: grid;
    }

    .story .example-frame {
      overflow: clip;
    }

    .step,
    .step + .step {
      grid-area: 1 / 1;
      margin: 0;
      animation: step-mid linear both;
      animation-timeline: --story;
    }

    .steps .step-1 { animation-name: step-first; animation-range: contain 0% contain 36%; }
    .steps .step-2 { animation-range: contain 30% contain 68%; }
    .steps .step-3 { animation-name: step-last; animation-range: contain 62% contain 100%; }

    .compare .c1,
    .compare .c2,
    .compare .c3 {
      animation: col-in linear both;
      animation-timeline: --story;
    }

    .compare .c1 { animation-range: contain 3% contain 12%; }
    .compare .c2 { animation-range: contain 8% contain 17%; }
    .compare .c3 { animation-range: contain 13% contain 22%; }

    .compare td .source .mark {
      background: linear-gradient(transparent 55%, var(--marker-soft) 55%) no-repeat;
      background-size: 100% 100%;
      -webkit-box-decoration-break: clone;
      box-decoration-break: clone;
      animation: mark-sweep linear both;
      animation-timeline: --story;
      animation-range: contain 40% contain 52%;
    }

    .compare td .source {
      animation: source-on linear both;
      animation-timeline: --story;
      animation-range: contain 36% contain 50%;
    }

    .compare td .gap,
    .compare td .gap + .source {
      animation: gap-land linear both;
      animation-timeline: --story;
      animation-range: contain 68% contain 78%;
    }
  }
}

@keyframes hero-open {
  to { clip-path: inset(0 0 round 0); }
}

@keyframes word-on {
  to { color: var(--muted); }
}

@keyframes word-on-strong {
  to { color: var(--ink); }
}

@keyframes scenes-colour {
  0%, 20% { background-color: var(--coral); }
  29%, 71% { background-color: var(--blue); }
  80%, 100% { background-color: var(--red); }
}

@keyframes photo-in {
  from { clip-path: inset(12% 10% round var(--radius)); }
  to { clip-path: inset(0 round var(--radius)); }
}

@keyframes photo-in-bleed {
  from { clip-path: inset(10% 8% round var(--radius)); }
  to { clip-path: inset(0 round 0); }
}

@keyframes photo-drift {
  from { transform: translateY(0); }
  to { transform: translateY(-13.8%); }
}

@keyframes step-first {
  0%, 82% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: translateY(-20px); }
}

@keyframes step-mid {
  0% { opacity: 0; transform: translateY(20px); }
  18%, 82% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: translateY(-20px); }
}

@keyframes step-last {
  0% { opacity: 0; transform: translateY(20px); }
  18%, 100% { opacity: 1; transform: none; }
}

@keyframes col-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@keyframes source-on {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes mark-sweep {
  from { background-size: 0% 100%; }
  to { background-size: 100% 100%; }
}

@keyframes gap-land {
  0% { opacity: 0; transform: scale(0.6); }
  70% { opacity: 1; transform: scale(1.08); }
  100% { opacity: 1; transform: scale(1); }
}

/* ---------- Responsive ---------- */

@media (max-width: 760px) {
  .site-header .wrap {
    flex-wrap: wrap;
    row-gap: 0;
    padding-block: 10px;
  }

  .site-header nav {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }

  .principles li,
  .paid,
  .story-grid,
  .scene-grid {
    grid-template-columns: 1fr;
  }

  .scene-blue .scene-grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .scene-blue .scene-copy {
    grid-column: auto;
  }

  .scene-blue .scene-photo {
    position: relative;
    inset: auto;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius);
  }

  .scene-blue .scene-photo::after {
    content: none;
  }

  .scene-photo {
    aspect-ratio: 4 / 3;
  }

  .hero-photo img {
    aspect-ratio: 4 / 5;
  }

  /* Stack the table: one block per row, the three models side by side under it. */
  .compare {
    min-width: 0;
  }

  .compare thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .compare tbody tr {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-bottom: 1px solid var(--hairline);
  }

  .compare tbody tr:last-child {
    border-bottom: 0;
  }

  .compare tbody th {
    grid-column: 1 / -1;
    width: auto;
    padding: 16px 16px 8px;
    border-bottom: 0;
  }

  .compare td {
    padding: 4px 16px 16px;
    border-bottom: 0;
    text-align: left;
    font-size: 0.875rem;
  }

  .compare td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--muted);
  }

  .compare caption {
    padding: 14px 16px 16px;
  }
}

@media (max-width: 420px) {
  .actions .button {
    width: 100%;
    justify-content: center;
  }
}

/* ---------- Articles and product pages ---------- */

.demo-bar {
  background: var(--night);
  color: var(--night-muted);
  font-size: 0.8125rem;
}

.demo-bar p {
  margin: 0;
  padding-block: 10px;
}

.demo-bar strong {
  color: var(--white);
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
  color: var(--muted);
}

.crumbs li + li::before {
  content: "/";
  padding-inline: 10px;
  color: var(--hairline);
}

.crumbs a {
  color: var(--ink-2);
}

.article-head h1 {
  max-width: 15ch;
}

.article-head .notice,
.price-box .notice {
  margin: 24px 0 0;
}

.article-h2 {
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem);
  letter-spacing: -0.035em;
  line-height: 1.08;
  max-width: 20ch;
}

.table-intro {
  margin: 12px 0 28px;
  color: var(--ink-2);
  font-size: 1.0625rem;
}

.article-picks .article-h2 {
  margin-bottom: 28px;
}

/* Need → model rows, a hairline list rather than cards. */
.picks {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--hairline);
}

.picks li {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 6fr);
  gap: 8px 32px;
  align-items: baseline;
  padding-block: 22px;
  border-bottom: 1px solid var(--hairline);
}

.picks p {
  margin: 0;
}

.pick-need {
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.pick-model {
  font-weight: 700;
  font-size: 1.0625rem;
}

.pick-model a {
  text-decoration-color: var(--marker);
  text-decoration-thickness: 3px;
  text-underline-offset: 0.3em;
}

.pick-why {
  color: var(--ink-2);
  font-size: 0.9375rem;
}

.compare thead th a {
  color: inherit;
  text-decoration: none;
}

.compare thead th a:hover {
  text-decoration: underline;
  text-decoration-color: var(--marker);
  text-decoration-thickness: 3px;
  text-underline-offset: 0.25em;
}

.compare .row-links td {
  font-size: 0.875rem;
}

.buy-line {
  display: block;
  margin-top: 6px;
  white-space: nowrap;
  color: var(--muted);
  font-size: 0.8125rem;
}

.buy-line a {
  color: var(--ink-2);
}

.article-h2 + .example-frame {
  margin-top: 28px;
}

.article-products {
  padding-bottom: clamp(16px, 3vw, 32px);
}

.table-more {
  margin: 24px 0 0;
}

/* Each model in the article */
.article-products .article-h2 {
  margin-bottom: clamp(24px, 4vw, 40px);
}

.product {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
  padding-block: clamp(32px, 5vw, 56px);
  border-top: 1px solid var(--hairline);
}

.product h3 {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  letter-spacing: -0.03em;
}

.product h4 {
  margin: 24px 0 8px;
  font-size: 0.9375rem;
}

.product-copy > p {
  max-width: var(--measure);
  color: var(--ink-2);
}

.product-copy > .product-price {
  margin: 6px 0 14px;
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.product-price span {
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--muted);
}

.product-figure {
  margin: 0;
  border-radius: var(--radius);
  background: var(--mist);
  padding: clamp(20px, 3vw, 32px) clamp(20px, 3vw, 32px) 14px;
  text-align: center;
}

.product-figure svg {
  width: min(100%, 220px);
  aspect-ratio: 1;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.product-figure figcaption {
  margin-top: 10px;
  font-size: 0.75rem;
  color: var(--muted);
}

.tradeoffs {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tradeoffs li {
  position: relative;
  padding: 10px 0 10px 22px;
  color: var(--ink-2);
  max-width: var(--measure);
  border-bottom: 1px solid var(--hairline);
}

.tradeoffs li:last-child {
  border-bottom: 0;
}

.tradeoffs li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 1.15em;
  width: 9px;
  height: 2px;
  border-radius: 1px;
  background: var(--ink);
}

.tradeoffs .source {
  display: block;
  margin-top: 2px;
  font-size: 0.8125rem;
  color: var(--muted);
}

.tradeoffs-large li {
  font-size: 1.0625rem;
  padding-block: 14px;
}

.actions-left {
  justify-content: flex-start;
  align-items: center;
  margin-top: 24px;
}

.source-list {
  font-size: 0.875rem;
}

.source-list a {
  overflow-wrap: anywhere;
}

.article-foot h3 {
  margin: 1.6em 0 0.4em;
  font-size: 1.0625rem;
}

.article-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--hairline);
  max-width: 760px;
}

.article-list a {
  display: block;
  padding-block: 24px;
  border-bottom: 1px solid var(--hairline);
  text-decoration: none;
  color: inherit;
}

.article-list-title {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.article-list a:hover .article-list-title {
  text-decoration: underline;
  text-decoration-color: var(--marker);
  text-decoration-thickness: 3px;
  text-underline-offset: 0.2em;
}

.article-list-meta {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.9375rem;
}

/* Product detail */
.pdp-head {
  padding-block: clamp(28px, 5vw, 56px) clamp(48px, 7vw, 88px);
}

.pdp-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.product-figure-large {
  position: sticky;
  top: 88px;
  padding: clamp(32px, 6vw, 72px) clamp(24px, 4vw, 48px) 18px;
}

.product-figure-large svg {
  width: min(100%, 360px);
  stroke-width: 1.2;
}

.pdp-brand {
  margin: 0 0 6px;
  font-weight: 600;
  color: var(--muted);
}

.pdp-info h1 {
  font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4rem);
  letter-spacing: -0.04em;
  line-height: 1.02;
}

.pdp-info .lede {
  margin: 16px 0 0;
  font-size: clamp(1.0625rem, 0.95rem + 0.5vw, 1.25rem);
}

.price-box {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
}

.price {
  margin: 0;
  font-size: clamp(2rem, 1.6rem + 1.6vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}

.price-note {
  margin: 4px 0 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.glance {
  margin: 28px 0 0;
  border-top: 1px solid var(--hairline);
}

.glance div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 16px;
  padding-block: 12px;
  border-bottom: 1px solid var(--hairline);
}

.glance dt {
  font-weight: 600;
  font-size: 0.9375rem;
}

.glance dd {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.9375rem;
}

.glance .source,
.specs .source {
  display: block;
  margin-top: 2px;
  font-size: 0.8125rem;
  color: var(--muted);
}

.glance .gap,
.specs .gap {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--marker-soft);
  color: var(--marker-ink);
  font-weight: 600;
  font-size: 0.8125rem;
  white-space: nowrap;
}

.band-tight {
  padding-block: clamp(48px, 7vw, 88px);
}

/* Spec sheet rows: the group name on the left, its facts on the right, hairlines between groups. */
.spec-groups {
  margin-top: 8px;
  border-top: 1px solid var(--hairline);
}

.spec-row {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 8px clamp(24px, 4vw, 56px);
  padding-block: 20px 8px;
  border-bottom: 1px solid var(--hairline);
}

.spec-row h3 {
  margin: 12px 0 0;
  font-size: 1.1875rem;
  letter-spacing: -0.015em;
}

.spec-row-lead {
  padding: 0;
  border: 0;
}

.spec-row-lead .article-h2 {
  margin: 0;
}

.spec-row-lead .tradeoffs li:first-child {
  padding-top: 4px;
}

.specs {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.specs th,
.specs td {
  padding: 12px 0;
  border-top: 1px solid var(--hairline);
  text-align: left;
  vertical-align: top;
}

.specs th {
  width: 42%;
  padding-right: 16px;
  font-weight: 600;
}

.specs td {
  color: var(--ink-2);
}

@media (max-width: 760px) {
  .picks li {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .product,
  .pdp-grid,
  .spec-row {
    grid-template-columns: 1fr;
  }

  /* The drawing adds nothing on a phone next to the model name; the detail page keeps a small one. */
  .product .product-figure {
    display: none;
  }

  .product-figure-large {
    position: static;
    order: 2;
    padding: 20px 20px 12px;
  }

  .product-figure-large svg {
    width: 140px;
  }

  .crumbs [aria-current="page"] {
    display: none;
  }

  .crumbs li:nth-last-child(2)::after {
    content: none;
  }

  .spec-row h3 {
    margin-top: 4px;
  }

  .spec-row-lead .article-h2 {
    margin-bottom: 8px;
  }

  .buy-line {
    white-space: normal;
  }

  .actions-left .button {
    width: auto;
  }
}

/* ---------- Comparison and product pages, launch-page style ---------- */

.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.button-sm {
  min-height: 36px;
  padding: 7px 16px;
  font-size: 0.875rem;
}

.icon {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-sm {
  width: 22px;
  height: 22px;
}

.center-h2 {
  margin: 0 auto;
  max-width: 18ch;
  text-align: center;
  font-size: clamp(2.25rem, 1.4rem + 3.6vw, 4rem);
  letter-spacing: -0.04em;
  line-height: 1.04;
}

.center-sub {
  margin: 14px auto 0;
  text-align: center;
  color: var(--ink-2);
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
}

.center {
  text-align: center;
}

.finish-note {
  margin: 8px 0 0;
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
}

/* Article hero: Newsroom-like, a narrow head over a wide photo. */
.article-hero {
  padding-block: clamp(28px, 5vw, 56px) 0;
}

.article-hero h1 {
  font-size: clamp(2.625rem, 1.4rem + 5vw, 5rem);
  letter-spacing: -0.045em;
  line-height: 1.02;
  max-width: 14ch;
}

.article-hero .lede {
  max-width: 40ch;
  margin: 22px 0 0;
}

.article-hero .meta {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

.article-hero .notice {
  margin: 20px 0 0;
}

.hero-wide {
  margin: clamp(32px, 5vw, 56px) auto 0;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  padding-inline: var(--gutter);
}

.hero-wide-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
}

.hero-wide figcaption,
.interlude figcaption span,
.tile-copy span {
  font-size: 0.75rem;
  color: var(--muted);
}

.hero-wide figcaption {
  margin-top: 10px;
}

/* Line-up: the three products large, Apple compare style. */
.lineup {
  display: grid;
  gap: clamp(12px, 3vw, 40px);
  margin-top: clamp(28px, 5vw, 56px);
  text-align: center;
}

.lineup-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lineup-col h3 {
  margin: 18px 0 0;
  font-size: clamp(1.125rem, 0.9rem + 1vw, 1.625rem);
  letter-spacing: -0.025em;
}

.lineup-col h3 a {
  color: inherit;
  text-decoration: none;
}

.lineup-tag {
  margin: 6px auto 0;
  max-width: 22ch;
  color: var(--ink-2);
  font-size: 0.9375rem;
}

.lineup-price {
  margin: 14px 0 0;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.lineup-price span {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--muted);
}

.lineup-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin: 14px 0 6px;
}

.lineup-col .text-link {
  font-size: 0.9375rem;
}

/* Finish switch: radio buttons and the sibling selector, no script. */
.finish {
  position: relative;
}

.finish input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.finish-renders {
  display: grid;
}

.finish-renders img {
  grid-area: 1 / 1;
  transition: opacity 260ms var(--ease-out);
}

.render {
  display: block;
  width: 100%;
  height: auto;
}

.r-black,
.finish-black:checked ~ .finish-renders .r-white {
  opacity: 0;
}

.finish-black:checked ~ .finish-renders .r-black {
  opacity: 1;
}

.finish-pick {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 6px;
}

.finish-pick label {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
}

.swatch {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.18);
}

.swatch-white {
  background: linear-gradient(145deg, #ffffff, #dcdce0);
}

.swatch-black {
  background: linear-gradient(145deg, #4a4a50, #111113);
}

.finish-white:checked ~ .finish-pick label[for$="-white"],
.finish-black:checked ~ .finish-pick label[for$="-black"] {
  box-shadow: inset 0 0 0 1.5px var(--ink);
}

.finish-white:focus-visible ~ .finish-pick label[for$="-white"],
.finish-black:focus-visible ~ .finish-pick label[for$="-black"] {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}

/* Sticky model bar inside a comparison section. */
.compare-section {
  padding-block: 0 clamp(48px, 7vw, 88px);
}

.compare-section > .wrap {
  padding-top: clamp(40px, 6vw, 72px);
}

.compare-bar {
  position: sticky;
  top: 57px;
  z-index: 5;
  background: color-mix(in srgb, var(--white) 96%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--hairline);
}

.compare-bar-grid {
  display: grid;
  gap: clamp(12px, 3vw, 40px);
  padding-block: 10px;
  text-align: center;
}

.compare-bar-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.compare-bar p {
  margin: 0;
}

.sb-name {
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: -0.015em;
}

.sb-name a {
  color: inherit;
  text-decoration: none;
}

.sb-price {
  font-size: 0.8125rem;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

.sb-price .paid-link-label {
  font-size: 0.6875rem;
  padding: 0 7px;
}

/* Feature rows: an icon and a big value per model, centred columns, no grid lines. */
.feat {
  padding-block: clamp(28px, 4vw, 44px);
  border-bottom: 1px solid var(--hairline);
}

.feat-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  margin-bottom: clamp(18px, 3vw, 28px);
}

.feat-head h3 {
  margin: 0;
  font-size: clamp(1.25rem, 1rem + 0.8vw, 1.625rem);
  letter-spacing: -0.025em;
}

.feat-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
}

.feat-head .icon {
  align-self: center;
}

.feat-grid {
  display: grid;
  gap: clamp(12px, 3vw, 40px);
}

.feat-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feat-cell {
  text-align: center;
}

.feat-cell > .icon {
  display: block;
  margin: 0 auto 10px;
  color: var(--ink);
}

.feat-cell p {
  margin: 0;
}

.feat-big {
  font-size: clamp(1.75rem, 1.1rem + 2.6vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}

.feat-big .unit {
  margin-left: 0.14em;
  font-size: 0.45em;
  letter-spacing: -0.01em;
  color: var(--ink-2);
}

.feat-gap {
  font-size: 1rem;
  padding-block: 0.5em;
}

.feat-cell .feat-text {
  margin-top: 6px;
  color: var(--ink-2);
  font-size: 0.9375rem;
  line-height: 1.4;
}

.feat-text-lead {
  color: var(--ink);
  font-size: 1rem;
}

.feat-cell .feat-source,
.stat .feat-source {
  margin-top: 6px;
  font-size: 0.75rem;
  color: var(--muted);
}

.duties {
  display: inline-grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.duties li {
  display: grid;
  grid-template-columns: 22px auto auto;
  align-items: center;
  gap: 10px;
  font-size: 0.9375rem;
}

.duties .not {
  color: var(--muted);
}

.duties .not span:not(.no):not(.vh) {
  text-decoration: line-through;
  text-decoration-color: var(--hairline);
}

.no {
  color: var(--muted);
}

/* Full-bleed photo interlude with one sentence. */
.interlude {
  position: relative;
  margin: 0;
}

.interlude-img {
  display: block;
  width: 100%;
  height: min(78vh, 760px);
  object-fit: cover;
}

.interlude figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: clamp(80px, 12vw, 160px) var(--gutter) clamp(24px, 4vw, 48px);
  background: linear-gradient(to top, rgb(0 0 0 / 0.62), rgb(0 0 0 / 0));
  color: var(--white);
}

.interlude figcaption p {
  max-width: var(--wrap);
  margin: 0 auto;
  font-size: clamp(1.5rem, 1rem + 2.2vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.interlude figcaption span {
  display: block;
  max-width: var(--wrap);
  margin: 12px auto 0;
  color: rgb(255 255 255 / 0.78);
}

/* Each model up close: large render beside the copy, alternating. */
.models-band .center-h2 {
  margin-bottom: clamp(16px, 3vw, 32px);
}

.model {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  padding-block: clamp(32px, 5vw, 64px);
  border-bottom: 1px solid var(--hairline);
}

.model:last-child {
  border-bottom: 0;
}

.model-flip .model-art {
  order: 2;
}

.model-art {
  border-radius: var(--radius);
  background: var(--mist);
  padding: clamp(16px, 3vw, 32px) clamp(16px, 3vw, 32px) 14px;
}

.model-copy h3 {
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem);
  letter-spacing: -0.035em;
}

.model-tag {
  margin: 6px 0 0;
  font-size: 1.1875rem;
  color: var(--ink-2);
}

.model-price {
  margin: 14px 0 12px;
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.model-price span {
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--muted);
}

.model-copy > p:not([class]) {
  color: var(--ink-2);
}

.model-copy h4 {
  margin: 22px 0 6px;
  font-size: 0.9375rem;
}

/* Product page */
.subnav {
  position: sticky;
  top: 57px;
  z-index: 6;
  background: color-mix(in srgb, var(--white) 88%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--hairline);
}

.subnav-row {
  display: flex;
  align-items: center;
  gap: 8px 24px;
  min-height: 52px;
}

.subnav p {
  margin: 0;
}

.subnav .subnav-name {
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
  margin-right: auto;
}

.subnav-links {
  display: flex;
  gap: 20px;
  font-size: 0.8125rem;
}

.subnav-links a {
  color: var(--ink-2);
  text-decoration: none;
}

.subnav-links a:hover {
  color: var(--ink);
}

.subnav-buy {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
}

.pdp-hero {
  background: var(--mist);
  padding-block: clamp(24px, 4vw, 40px) clamp(40px, 6vw, 72px);
  text-align: center;
  overflow: hidden;
}

.pdp-hero .crumbs ol {
  justify-content: center;
}

.pdp-hero .pdp-brand {
  margin: 0;
  font-size: clamp(1.125rem, 1rem + 0.6vw, 1.5rem);
  font-weight: 600;
  color: var(--ink);
}

.pdp-hero h1 {
  margin: 8px auto 0;
  max-width: 16ch;
  font-size: clamp(2.75rem, 1.4rem + 5.6vw, 5.5rem);
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.pdp-hero-art {
  max-width: 760px;
  margin: clamp(8px, 2vw, 24px) auto 0;
}

.pdp-hero-buy .price {
  margin-top: 12px;
}

.pdp-hero-buy .notice {
  margin: 14px auto 0;
}

.pdp-hero-buy .actions {
  margin-top: 20px;
  align-items: center;
}

.pdp-summary {
  max-width: 30ch;
  margin: 0 auto;
  text-align: center;
  font-size: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 4vw, 56px);
  margin-top: clamp(36px, 6vw, 72px);
}

.stat {
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
}

.stat p {
  margin: 0;
}

.stat-lead {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-2);
}

.stat .stat-big {
  margin-top: 4px;
  font-size: clamp(2.5rem, 1.4rem + 4vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.stat-big .unit {
  margin-left: 0.1em;
  font-size: 0.42em;
  letter-spacing: -0.01em;
}

.stat .stat-cap {
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 0.9375rem;
}

/* Highlights: large rounded tiles in a sideways scroll-snap row. */
.highlights .article-h2 {
  margin-bottom: clamp(20px, 3vw, 32px);
}

.tiles {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(85vw, 640px);
  gap: 20px;
  margin: 0;
  padding: 4px max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))) 20px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  scrollbar-width: thin;
}

.tiles:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: -3px;
}

.tile {
  position: relative;
  scroll-snap-align: start;
  aspect-ratio: 4 / 5;
  border-radius: 24px;
  overflow: hidden;
  background: var(--night);
}

.tile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tile-render {
  display: grid;
  place-items: center;
}

.tile-render-img {
  width: 86%;
  height: auto;
  margin-top: -18%;
}

.tile-copy {
  position: absolute;
  inset: auto 0 0;
  padding: 96px 28px 26px;
  background: linear-gradient(to top, rgb(0 0 0 / 0.66), rgb(0 0 0 / 0));
  color: var(--white);
}

.tile-copy p {
  margin: 0;
  font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.tile-copy span {
  display: block;
  margin-top: 8px;
  color: rgb(255 255 255 / 0.75);
}

/* Closer look: numbered markers on the drawing, the list beside it. */
.closer {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  margin-top: clamp(24px, 4vw, 40px);
}

.closer-art {
  margin: 0;
  border-radius: var(--radius);
  background: var(--mist);
  padding: clamp(12px, 2vw, 24px) clamp(12px, 2vw, 24px) 14px;
}

.closer-svg {
  display: block;
  width: 100%;
  height: auto;
}

.spot circle {
  fill: var(--marker);
  stroke: var(--ink);
  stroke-width: 1.5;
}

.spot text {
  font: 700 15px "Hanken Grotesk", sans-serif;
  fill: var(--ink);
}

.closer-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.closer-list li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 14px;
  padding-block: 14px;
  border-bottom: 1px solid var(--hairline);
}

.closer-list li:last-child {
  border-bottom: 0;
}

.spot-n {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--marker);
  box-shadow: inset 0 0 0 1.5px var(--ink);
  font-weight: 700;
  font-size: 0.875rem;
}

.closer-list h3 {
  margin: 2px 0 4px;
  font-size: 1.0625rem;
}

.closer-list p {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.9375rem;
}

.closer-list .source {
  display: block;
  margin-top: 2px;
  font-size: 0.75rem;
  color: var(--muted);
}

/* Dock duties on night */
.dock-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: 32px clamp(24px, 5vw, 72px);
  align-items: center;
}

.dock-sub {
  margin: 14px 0 0;
  color: var(--night-muted);
}

.duties-large {
  gap: 16px;
}

.duties-large li {
  grid-template-columns: 30px auto auto;
  font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.duties-large .icon-sm {
  width: 30px;
  height: 30px;
}

.band-night .duties .not,
.band-night .no {
  color: #6e6e73;
}

.band-night .duties .not span:not(.no):not(.vh) {
  text-decoration-color: #424245;
}

.spec-row h3:has(.icon) {
  display: flex;
  align-items: center;
  gap: 10px;
}

.spec-row h3 .icon {
  width: 26px;
  height: 26px;
  flex: none;
}

.feat .gap,
.closer-list .gap {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--marker-soft);
  color: var(--marker-ink);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0;
  white-space: nowrap;
}

/* Articles index card */
.article-card {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(20px, 4vw, 48px);
  align-items: center;
  max-width: 880px;
  padding: clamp(16px, 3vw, 28px);
  border-radius: var(--radius);
  background: var(--mist);
  color: inherit;
  text-decoration: none;
}

.article-card-art {
  display: block;
}

.article-card:hover .article-list-title {
  text-decoration: underline;
  text-decoration-color: var(--marker);
  text-decoration-thickness: 3px;
  text-underline-offset: 0.2em;
}

/* Motion: renders settle into place as they scroll in; static without support. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .lineup-col .finish-renders,
    .model-art .render,
    .closer-svg {
      animation: render-rise linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 35%;
    }

    .pdp-hero-art .finish-renders {
      animation: render-zoom linear both;
      animation-timeline: scroll(root);
      animation-range: 0 60vh;
    }

    .interlude-img {
      animation: interlude-drift linear both;
      animation-timeline: view();
    }
  }
}

@keyframes render-rise {
  from { opacity: 0.2; transform: translateY(48px) scale(0.94); }
  to { opacity: 1; transform: none; }
}

@keyframes render-zoom {
  from { transform: scale(1); }
  to { transform: scale(1.12); }
}

@keyframes interlude-drift {
  from { object-position: 50% 30%; }
  to { object-position: 50% 70%; }
}

@media (max-width: 760px) {
  /* On a phone the page's own sticky bar replaces the sticky site header. */
  .page-article .site-header,
  .page-product .site-header {
    position: relative;
  }

  .page-article .compare-bar,
  .page-product .compare-bar,
  .page-product .subnav {
    top: 0;
  }

  .lineup-3,
  .feat-grid-3,
  .compare-bar-3 {
    gap: 10px;
  }

  .lineup-tag,
  .lineup-col .text-link,
  .feat-cell > .icon {
    display: none;
  }

  .lineup-price span {
    display: none;
  }

  .lineup-actions .button {
    min-height: 32px;
    padding: 5px 10px;
    font-size: 0.75rem;
  }

  .finish-pick label {
    width: 26px;
    height: 26px;
  }

  .swatch {
    width: 14px;
    height: 14px;
  }

  .finish-note {
    font-size: 0.6875rem;
  }

  .sb-name {
    font-size: 0.8125rem;
  }

  .sb-price {
    font-size: 0.75rem;
  }

  .sb-price a {
    display: block;
  }

  .feat-big {
    font-size: 1.625rem;
  }

  .feat-text,
  .feat-text-lead {
    font-size: 0.8125rem;
  }

  .duties {
    gap: 8px;
  }

  .feat-dock .duties li {
    grid-template-columns: 18px auto;
    gap: 4px;
    font-size: 0.75rem;
  }

  .feat-dock .duties .no {
    display: none;
  }

  .feat-dock .icon-sm {
    width: 18px;
    height: 18px;
  }

  .interlude-img {
    height: 70vh;
  }

  .model,
  .closer,
  .dock-grid,
  .article-card {
    grid-template-columns: 1fr;
  }

  .model-flip .model-art {
    order: 0;
  }

  .stats {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .stat {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: baseline;
    padding-block: 16px;
  }

  .stat-big {
    grid-row: 1 / 4;
    grid-column: 2;
    font-size: 2.75rem;
  }

  .subnav-links {
    display: none;
  }

  .subnav-row {
    min-height: 48px;
  }

  .subnav-name {
    font-size: 0.9375rem;
  }

  .subnav-buy {
    gap: 6px;
    font-size: 0.8125rem;
  }

  .tiles {
    gap: 12px;
  }
}

/* Article comparison tables: equal product columns however long a cell is. Below 761px the rows
   become stacked cards (see the compare block above), so the fixed layout stays desktop-only. */
@media (min-width: 761px) {
  .article-products .compare {
    table-layout: fixed;
    min-width: 720px;
  }

  .article-products .compare tbody th {
    width: 20%;
  }
}

/* Four products: two by two on phones instead of three plus one. */
@media (max-width: 760px) {
  .article-products .compare tbody tr:has(td:nth-of-type(4)) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
