/* Test-harness chrome + the ten Overheard treatments.
   Everything here is scaffolding — it does not ship with the live page. */

.testpage { padding-bottom: var(--s-27); }

.testbar {
  position: sticky; top: 0; z-index: 60;
  background: rgba(19, 15, 12, .94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.testbar__inner {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-6);
  font-size: var(--t-caption);
  line-height: 19.5px;
}
.testbar span { color: var(--fg-50); }

/* Section scaffolding */
.tsec { padding-block: var(--s-20); border-top: 1px solid var(--rule); }
.tsec:first-child { border-top: 0; }
.tsec__head {
  display: grid;
  gap: var(--s-1);
  margin-bottom: var(--s-12);
  padding-bottom: var(--s-6);
  border-bottom: 1px solid var(--rule);
}
.tsec__no {
  font-size: var(--t-caption);
  line-height: 19.5px;
  color: var(--fg-50);
  font-variant-numeric: tabular-nums;
}
.tsec__name {
  font-size: clamp(20px, 2.2vw, 24px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  font-weight: 400;
}
.tsec__note { font-size: var(--t-caption); line-height: 19.5px; color: var(--fg-50); max-width: 70ch; }
.tsec__title { margin-bottom: var(--s-12); }

/* ── 02 Editorial rows ──────────────────────────────────────────────────── */
.t02 { border-top: 1px solid var(--rule); }
.t02__row {
  display: grid;
  gap: var(--s-4) var(--s-12);
  padding-block: var(--s-8);
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
@media (min-width: 900px) { .t02__row { grid-template-columns: 1fr 200px; } }
.t02__row blockquote {
  font-size: clamp(19px, 2.2vw, 26px);
  line-height: 1.4;
  letter-spacing: -0.01em;
  max-width: 60ch;
}
.t02__row figcaption { font-size: var(--t-caption); line-height: 19.5px; color: var(--fg-60); }

/* ── 03 Masonry columns ─────────────────────────────────────────────────── */
.t03 { columns: 3 260px; column-gap: var(--s-12); }
.t03__item { break-inside: avoid; margin-bottom: var(--s-12); display: grid; gap: var(--s-4); }
.t03__item blockquote { font-size: 17px; line-height: 1.55; }
.t03__item figcaption { font-size: var(--t-caption); line-height: 19.5px; color: var(--fg-50); }

/* ── 04 Featured + selector ─────────────────────────────────────────────── */
.t04 { display: grid; gap: var(--s-12); }
.t04__quote {
  font-size: clamp(24px, 4vw, 44px);
  line-height: 1.24;
  letter-spacing: -0.02em;
  max-width: 22ch;
  min-height: 4.5em;
  transition: opacity .3s var(--ease);
}
.t04__quote.is-swapping { opacity: 0; }
.t04__tabs { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.t04__tab {
  background: rgba(0, 0, 0, 0);
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-pill);
  color: var(--fg-60);
  padding: var(--s-2) var(--s-5);
  min-height: 40px;
  cursor: pointer;
  font-size: var(--t-body);
  transition: color .2s var(--ease), border-color .2s var(--ease), background-color .2s var(--ease);
}
.t04__tab:hover { color: var(--fg); border-color: var(--fg); }
.t04__tab.is-on { background: var(--fg); border-color: var(--fg); color: var(--bg); }

/* ── 05 Drag rail ───────────────────────────────────────────────────────── */
.t05 {
  /* full-bleed rail: cards line up with the content edge but nothing gets
     clipped by the container padding on either side */
  --rail-gutter: max(var(--pad), calc((100vw - var(--wrap)) / 2 + var(--pad)));
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding-inline: var(--rail-gutter);
  scroll-padding-inline: var(--rail-gutter);
  display: flex;
  gap: var(--s-6);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding-bottom: var(--s-6);
  scrollbar-width: thin;
}
.t05__card {
  flex: 0 0 min(400px, 78vw);
  scroll-snap-align: start;
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  padding: var(--s-8);
  display: grid;
  grid-template-rows: 1fr auto;
  gap: var(--s-6);
  min-height: 300px;
}
.t05__card blockquote { font-size: 18px; line-height: 1.5; }
.t05__card figcaption { font-size: var(--t-caption); line-height: 19.5px; color: var(--fg-50); }

/* ── 06 Pull-quote wall ─────────────────────────────────────────────────── */
.t06 { display: grid; gap: var(--s-20); }
.t06__item { display: grid; gap: var(--s-4); }
.t06__item figcaption { font-size: var(--t-caption); line-height: 19.5px; color: var(--fg-50); }
.t06--xl blockquote { font-size: clamp(22px, 3vw, 34px); line-height: 1.3; letter-spacing: -0.015em; max-width: 30ch; }
.t06--l  blockquote { font-size: clamp(24px, 3.6vw, 42px); line-height: 1.24; letter-spacing: -0.02em; max-width: 22ch; }
.t06--m  blockquote { font-size: clamp(19px, 2.2vw, 26px); line-height: 1.4; max-width: 34ch; }
.t06--s  blockquote { font-size: 17px; line-height: 1.55; max-width: 40ch; color: var(--fg-60); }
@media (min-width: 900px) {
  .t06--in  { margin-left: 28%; }
  .t06--in2 { margin-left: 52%; }
}

/* ── 07 Slow ticker ─────────────────────────────────────────────────────── */
.t07 {
  height: 420px;
  overflow: hidden;
  mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent);
}
.t07__track { display: grid; }
.t07__set { display: grid; gap: var(--s-12); padding-bottom: var(--s-12); }
.t07__set figure { display: grid; gap: var(--s-3); max-width: 52ch; }
.t07__set blockquote { font-size: clamp(18px, 2vw, 22px); line-height: 1.45; }
.t07__set figcaption { font-size: var(--t-caption); line-height: 19.5px; color: var(--fg-50); }

/* ── 08 Numbered index ──────────────────────────────────────────────────── */
.t08 { border-top: 1px solid var(--rule); }
.t08__row {
  display: grid;
  gap: var(--s-4) var(--s-8);
  padding-block: var(--s-12);
  border-bottom: 1px solid var(--rule);
  align-items: start;
}
@media (min-width: 900px) { .t08__row { grid-template-columns: 160px 1fr 200px; } }
.t08__no {
  font-size: clamp(40px, 5vw, 64px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.t08__row blockquote { font-size: clamp(18px, 2vw, 24px); line-height: 1.42; max-width: 46ch; }
.t08__row figcaption { font-size: var(--t-caption); line-height: 19.5px; color: var(--fg-50); }

/* ── 09 Overlapping collage ─────────────────────────────────────────────── */
.t09 { position: relative; min-height: 620px; }
.t09__card {
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-md);
  background: #000;
  padding: var(--s-8);
  display: grid;
  grid-template-rows: 1fr auto;
  gap: var(--s-6);
  transform: rotate(var(--tilt));
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
  margin-bottom: var(--s-6);
}
.t09__card blockquote { font-size: 17px; line-height: 1.5; }
.t09__card figcaption { font-size: var(--t-caption); line-height: 19.5px; color: var(--fg-50); }
.t09__card:hover {
  transform: rotate(0deg) translateY(-8px);
  box-shadow: 0 16px 48px rgba(255, 255, 255, .12);
  z-index: 5;
}
@media (min-width: 900px) {
  .t09__card { position: absolute; width: 340px; min-height: 260px; margin: 0; }
  .t09__card:nth-child(1) { left: 0;   top: 0;   }
  .t09__card:nth-child(2) { left: 24%; top: 130px; }
  .t09__card:nth-child(3) { left: 50%; top: 20px;  }
  .t09__card:nth-child(4) { left: 30%; top: 320px; width: 420px; }
}

/* ── 10 Centered stack ──────────────────────────────────────────────────── */
.t10 { display: grid; gap: var(--s-20); max-width: 760px; margin-inline: auto; }
.t10__item { display: grid; gap: var(--s-4); }
.t10__item blockquote { font-size: clamp(20px, 2.6vw, 28px); line-height: 1.36; letter-spacing: -0.012em; }
.t10__item figcaption { font-size: var(--t-caption); line-height: 19.5px; color: var(--fg-50); }
.t10--l { text-align: left; }
.t10--r { text-align: right; }

/* ── Index page ─────────────────────────────────────────────────────────── */
.tindex { padding-block: var(--s-20); }
.tindex .h1 { margin-bottom: var(--s-14); }
.tindex__grouptitle {
  font-size: clamp(20px, 2.2vw, 24px);
  line-height: 1.25;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.tindex__groupnote { color: var(--fg-60); margin-top: var(--s-2); margin-bottom: var(--s-8); }
.tindex__groupnote a { border-bottom: 1px solid var(--rule-strong); }
.tindex__list { border-top: 1px solid var(--rule); }
.tindex__row { border-bottom: 1px solid var(--rule); }
.tindex__row a {
  display: grid;
  gap: var(--s-1) var(--s-8);
  padding-block: var(--s-5);
  align-items: baseline;
  transition: opacity .2s var(--ease);
}
@media (min-width: 768px) { .tindex__row a { grid-template-columns: 48px 260px 1fr; } }
.tindex__no { color: var(--fg-50); font-variant-numeric: tabular-nums; }
.tindex__name { font-size: var(--t-h2); line-height: 28px; }
.tindex__note { font-size: var(--t-caption); line-height: 19.5px; color: var(--fg-50); }

/* ── Archiving ──────────────────────────────────────────────────────────
   The list only grows and most of it is settled, so a row can be put away
   without the page being deleted. The button sits outside the row's link so it
   can never be a mis-click on the test itself, and it stays out of sight until
   the row is hovered or something in it is focused. */
.tindex__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-6); }
.tindex__head .h1 { margin-bottom: var(--s-14); }
.tindex__toggle {
  flex: none;
  font: inherit;
  font-size: var(--t-caption);
  line-height: 19.5px;
  color: var(--fg-50);
  background: none;
  border: 0;
  padding: var(--s-2) var(--s-4);
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.tindex__toggle:hover { color: var(--fg); background: color-mix(in srgb, var(--fg) 8%, transparent); }

.tindex__row { position: relative; }
.tindex__archive {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font: inherit;
  font-size: var(--t-micro);
  line-height: 1.4;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--fg-50);
  background: color-mix(in srgb, var(--fg) 8%, transparent);
  border: 0;
  padding: var(--s-2) var(--s-4);
  border-radius: var(--r-pill);
  cursor: pointer;
  opacity: 0;
  transition: opacity .2s var(--ease), color .2s var(--ease), background-color .2s var(--ease);
}
.tindex__row:hover .tindex__archive,
.tindex__row:focus-within .tindex__archive,
.tindex__archive:focus-visible { opacity: 1; }
.tindex__archive:hover { color: var(--fg); background: color-mix(in srgb, var(--fg) 14%, transparent); }

/* in the archive view the rows are dimmed, so it is obvious which list you are
   looking at without a second heading */
.is-archive-view .tindex__row a { opacity: .6; }
.is-archive-view .tindex__archive { opacity: 1; }
.tindex__empty { color: var(--fg-50); font-size: var(--t-caption); padding-block: var(--s-8); }

/* ── Sticky folder button ───────────────────────────────────────────────── */
/* Hidden until fff unlock adds .is-unlocked — same gate as the production site. */
.folder {
  position: fixed;
  right: var(--s-6);
  bottom: var(--s-6);
  z-index: 70;
  width: 52px;
  height: 52px;
  display: none;
  place-content: center;
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-pill);
  background: rgba(19, 15, 12, .9);
  backdrop-filter: blur(10px);
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.folder.is-unlocked { display: grid; }
.folder:hover { opacity: 1; border-color: #FFFFFF; transform: translateY(-2px); }
.folder:active { transform: translateY(0); }
.folder svg { width: 22px; height: 22px; fill: #FFFFFF; }
.folder[hidden] { display: none; }

/* ── What you can expect: image tile carousels ──────────────────────────── */

/* Every image slot on the page is a [data-photo] element that expect.js fills
   with a placeholder photograph. The photo fills its slot edge to edge in all
   eleven treatments — absolute inset beats width/height, which a grid or flex
   parent can otherwise shrink to the intrinsic size. */
[data-photo] {
  position: relative;
  overflow: hidden;
  background: #000;
}
[data-photo] > img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.erail .rail__track { align-items: stretch; }

/* 01 — photo tile, text over full bleed */
.etile {
  position: relative;
  flex: 0 0 min(440px, 82vw);
  scroll-snap-align: start;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--rule);
  isolation: isolate;
}
.etile__img {
  position: absolute;
  inset: 0;
  background: #000;
  display: grid;
  place-content: center;
  transition: transform .6s var(--ease);
}
.etile:hover .etile__img { transform: scale(1.04); }
.etile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.45) 45%, rgba(0,0,0,0) 100%);
}
.etile__body {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 1;
  padding: var(--s-8);
  display: grid;
  gap: var(--s-2);
}
.etile__no { font-size: var(--t-caption); line-height: 19.5px; color: var(--fg-50); font-variant-numeric: tabular-nums; }
.etile__body h4 { font-size: clamp(20px, 2.2vw, 26px); line-height: 1.2; font-weight: 400; letter-spacing: -0.01em; }
.etile__body p { font-size: var(--t-body); line-height: 1.5; color: var(--fg-60); }

/* 02 — text revealed on hover */
.rtile {
  position: relative;
  flex: 0 0 min(440px, 82vw);
  scroll-snap-align: start;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--rule);
}
.rtile__img { position: absolute; inset: 0; background: #000; }
.rtile::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.9), rgba(0,0,0,.1));
  opacity: .55;
  transition: opacity .45s var(--ease);
}
.rtile:hover::after { opacity: 1; }
.rtile__body {
  position: absolute; inset: auto 0 0 0; z-index: 1;
  padding: var(--s-8);
  display: grid; gap: var(--s-2);
}
.rtile__no { font-size: var(--t-caption); line-height: 19.5px; color: var(--fg-50); font-variant-numeric: tabular-nums; }
.rtile__body h4 { font-size: clamp(20px, 2.2vw, 26px); line-height: 1.2; font-weight: 400; letter-spacing: -0.01em; }
.rtile__body p {
  font-size: var(--t-body); line-height: 1.5; color: var(--fg-60);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.rtile:hover p, .rtile:focus-within p { opacity: 1; transform: none; }

/* 03 — tall portrait tiles */
.ptile {
  position: relative;
  flex: 0 0 min(320px, 74vw);
  scroll-snap-align: start;
  aspect-ratio: 3 / 4;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--rule);
}
.ptile__img { position: absolute; inset: 0; background: #000; }
.ptile::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.9) 0%, rgba(0,0,0,.35) 50%, rgba(0,0,0,.1) 100%);
}
.ptile__body {
  position: absolute; inset: 0; z-index: 1;
  padding: var(--s-8);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: var(--s-3);
}
.ptile__no {
  font-size: clamp(36px, 4vw, 52px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.ptile__body h4 {
  grid-row: 2;
  align-self: end;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.2; font-weight: 400; letter-spacing: -0.01em;
}
.ptile__body p { font-size: 15px; line-height: 1.5; color: var(--fg-60); }

/* ═══════════════════════════════════════════════════════════════════════════
   Conversation cards — 5 interaction concepts
   Cards are 2.5 × 3.5 playing-card proportion (5 / 7).
   ═══════════════════════════════════════════════════════════════════════════ */

.fan__img, .crail__img, .stack__img, .table__img, .flip__img {
  width: 100%;
  aspect-ratio: 5 / 7;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

/* ── 01 Fanned hand ─────────────────────────────────────────────────────── */
.fan {
  position: relative;
  height: 460px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  perspective: 1400px;
}
.fan__card {
  position: absolute;
  bottom: 0;
  width: 200px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  transform-origin: 50% 135%;
  /* spread evenly around centre: i - (n-1)/2 */
  --spread: calc(var(--i) - (var(--n) - 1) / 2);
  transform: rotate(calc(var(--spread) * 7deg)) translateY(0);
  transition: transform .45s var(--ease), filter .45s var(--ease);
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, .5));
}
.fan__card:hover { transform: rotate(calc(var(--spread) * 7deg)) translateY(-34px); z-index: 3; }
.fan__card.is-out {
  transform: rotate(0deg) translateY(-90px) scale(1.14);
  z-index: 10;
  filter: drop-shadow(0 28px 60px rgba(0, 0, 0, .6));
}

/* ── 02 Drag rail ───────────────────────────────────────────────────────── */
.crail__label { font-size: var(--t-caption); line-height: 19.5px; color: var(--fg-50); }
/* headroom so the tilt and its shadow aren't clipped by the scroll container */
.crail { padding-block: 80px; margin-block: -80px; }
.crail .rail__track {
  align-items: flex-start;
  perspective: 1200px;
  padding-block: 0;
}
.crail__card {
  flex: 0 0 240px;
  scroll-snap-align: start;
  margin: 0;
  transform-style: preserve-3d;
  /* --rx / --ry are written by cards.js from the pointer position */
  transform:
    perspective(900px)
    rotateX(var(--rx, 0deg))
    rotateY(var(--ry, 0deg))
    translateZ(var(--tz, 0px));
  transition: transform .5s var(--ease), filter .5s var(--ease);
  filter: drop-shadow(0 5px 12px rgba(0, 0, 0, .35));
  will-change: transform;
}
.crail__card.is-tilting { transition: transform .08s linear, filter .5s var(--ease); }
.crail__card:hover { filter: drop-shadow(0 12px 24px rgba(0, 0, 0, .45)); }
.crail__card .crail__img { transform: translateZ(30px); }

/* ── 03 Swipe stack ─────────────────────────────────────────────────────── */
.stack {
  position: relative;
  height: 460px;
  max-width: 300px;
  margin-inline: auto;
  touch-action: none;
}
.stack__card {
  position: absolute;
  inset: 0;
  cursor: grab;
  transform: translateY(calc(var(--i) * -6px)) scale(calc(1 - var(--i) * 0.03));
  transition: transform .45s var(--ease), opacity .35s var(--ease);
  filter: drop-shadow(0 14px 34px rgba(0, 0, 0, .5));
  will-change: transform;
}
.stack__card.is-dragging { transition: none; cursor: grabbing; }
.stack__card.is-gone { opacity: 0; pointer-events: none; }
.stack__hint {
  margin-top: var(--s-8);
  text-align: center;
  font-size: var(--t-caption);
  line-height: 19.5px;
  color: var(--fg-50);
}

/* ── 04 Loose on the table ──────────────────────────────────────────────── */
.table {
  position: relative;
  height: 640px;
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  overflow: hidden;
  touch-action: none;
}
.table__card {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 176px;
  cursor: grab;
  transform: rotate(var(--r));
  transition: filter .3s var(--ease), transform .3s var(--ease);
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .5));
  will-change: transform;
}
.table__card:hover { filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .6)); }
.table__card.is-dragging {
  cursor: grabbing;
  transition: none;
  transform: rotate(var(--r)) scale(1.05);
  filter: drop-shadow(0 26px 56px rgba(0, 0, 0, .65));
}

/* ── 05 Flip grid ───────────────────────────────────────────────────────── */
.flipgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--s-6);
}
.flip {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  perspective: 1200px;
  aspect-ratio: 5 / 7;
}
.flip__inner {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform .6s var(--ease);
}
.flip[aria-pressed="true"] .flip__inner { transform: rotateY(180deg); }
.flip__back, .flip__front {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 10px;
  overflow: hidden;
}
.flip__back {
  background: var(--deck);
  display: grid;
  place-content: center;
}
.flip__mark {
  font-size: 15px;
  color: rgba(255, 255, 255, .9);
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: var(--r-pill);
  padding: 6px 14px;
}
.flip__front { transform: rotateY(180deg); }
.flip__front img { height: 100%; }

@media (prefers-reduced-motion: reduce) {
  .fan__card, .stack__card, .table__card, .flip__inner, .crail__card { transition: none; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Conversations box — CSS 3D
   Panel proportions come from the print files:
   lid 723×600, front/back 725×434, sides 594×428  →  W 724 · D 597 · H 431
   ═══════════════════════════════════════════════════════════════════════════ */

.boxstage {
  --box-w: 362px;                       /* half-scale of the print artwork */
  --box-d: 298px;
  --box-h: 216px;
  --hw: calc(var(--box-w) / 2);
  --hd: calc(var(--box-d) / 2);
  --hh: calc(var(--box-h) / 2);
  display: grid;
  gap: var(--s-12);
  justify-items: center;
}

.boxstage__scene {
  position: relative;
  width: 100%;
  height: 620px;
  display: grid;
  place-items: center;
  perspective: 1600px;
  perspective-origin: 50% 46%;
  touch-action: none;
  cursor: grab;
  user-select: none;
}
.boxstage__scene.is-dragging { cursor: grabbing; }

.box3d {
  position: relative;
  width: var(--box-w);
  height: var(--box-h);
  transform-style: preserve-3d;
  transform:
    scale(var(--zoom, 1))
    rotateX(var(--rx, -18deg))
    rotateY(var(--ry, -32deg));
  will-change: transform;
}

.face {
  position: absolute;
  margin: 0;
  overflow: hidden;
  background: #FDFDFC;
  backface-visibility: hidden;
  box-shadow: inset 0 0 0 1px rgba(21, 21, 21, .06);
}
.face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* board thickness reads through a slight edge darkening per face */
.face::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.face--top,
.face--bottom { width: var(--box-w); height: var(--box-d); left: 0; top: calc(var(--hh) - var(--hd)); }
.face--front,
.face--back   { width: var(--box-w); height: var(--box-h); left: 0; top: 0; }
.face--left,
.face--right  { width: var(--box-d); height: var(--box-h); left: calc(var(--hw) - var(--hd)); top: 0; }

.face--top    { transform: rotateX(90deg)  translateZ(var(--hh)); }
.face--bottom { transform: rotateX(-90deg) translateZ(var(--hh)); }
.face--front  { transform: translateZ(var(--hd)); }
.face--back   { transform: rotateY(180deg) translateZ(var(--hd)); }
.face--right  { transform: rotateY(90deg)  translateZ(var(--hw)); }
.face--left   { transform: rotateY(-90deg) translateZ(var(--hw)); }

/* directional light: top catches it, sides fall away, underside is darkest */
.face--top::after    { background: linear-gradient(160deg, rgba(255,255,255,.55), rgba(21,21,21,.04)); }
.face--front::after  { background: rgba(21, 21, 21, .07); }
.face--back::after   { background: rgba(21, 21, 21, .12); }
.face--right::after  { background: rgba(21, 21, 21, .12); }
.face--left::after   { background: rgba(21, 21, 21, .05); }
.face--bottom::after { background: rgba(21, 21, 21, .22); }

.boxstage__shadow {
  position: absolute;
  left: 50%;
  top: 76%;
  width: calc(var(--box-w) * 1.1);
  height: calc(var(--box-d) * .5);
  transform: translate(-50%, -50%) scale(var(--zoom, 1));
  background: radial-gradient(50% 50% at 50% 50%,
    color-mix(in srgb, var(--fg) 26%, transparent),
    transparent 72%);
  filter: blur(18px);
  pointer-events: none;
}

.boxctl { display: flex; flex-wrap: wrap; gap: var(--s-3); justify-content: center; }
.boxctl__btn {
  background: rgba(0, 0, 0, 0);
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-pill);
  color: var(--fg-60);
  padding: var(--s-2) var(--s-5);
  min-height: 40px;
  font-size: var(--t-body);
  cursor: pointer;
  transition: color .2s var(--ease), border-color .2s var(--ease), background-color .2s var(--ease);
}
.boxctl__btn:hover { color: var(--fg); border-color: var(--fg); }
.boxctl__btn--toggle[aria-pressed="true"] {
  background: var(--fg); border-color: var(--fg); color: var(--bg);
}

@media (max-width: 700px) {
  .boxstage { --box-w: 240px; --box-d: 198px; --box-h: 143px; }
  .boxstage__scene { height: 440px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Card finishes — ten surface treatments on the same four cards
   ═══════════════════════════════════════════════════════════════════════════ */

.frow { display: flex; flex-wrap: wrap; gap: var(--s-6); perspective: 1000px; }

.fcard {
  position: relative;
  margin: 0;
  width: 210px;
  border-radius: 10px;
  transform-style: preserve-3d;
  transform:
    perspective(900px)
    rotateX(var(--rx, 0deg))
    rotateY(var(--ry, 0deg))
    translateZ(var(--tz, 0px));
  transition: transform .5s var(--ease), filter .5s var(--ease);
  filter: drop-shadow(0 5px 12px rgba(0, 0, 0, .3));
}
.fcard.is-tilting { transition: transform .08s linear, filter .5s var(--ease); }
.fcard__img {
  width: 100%;
  aspect-ratio: 5 / 7;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}
.fcard::after,
.fcard::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 10px;
  pointer-events: none;
}

/* 01 — soft-light sheen (the current build) */
.f-sheen::after {
  background: linear-gradient(var(--sheen-angle, 115deg),
    rgba(255,255,255,0) 34%, rgba(255,255,255,.34) 48%,
    rgba(255,255,255,.10) 58%, rgba(255,255,255,0) 70%);
  opacity: .55;
  mix-blend-mode: soft-light;
  transition: opacity .5s var(--ease);
}
.f-sheen:hover::after { opacity: 1; }

/* 02 — matte */
.f-matte { filter: drop-shadow(0 7px 16px rgba(0, 0, 0, .34)); }
.f-matte::after { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); }

/* 03 — satin edge */
.f-satin::after {
  background: linear-gradient(150deg,
    rgba(255,255,255,.30) 0, rgba(255,255,255,0) 14%),
    linear-gradient(60deg,
    rgba(255,255,255,.16) 0, rgba(255,255,255,0) 10%);
  mix-blend-mode: screen;
}

/* 04 — spot gloss on the numeral */
.f-spot::after {
  background: radial-gradient(120% 90% at 22% 16%,
    rgba(255,255,255,.42) 0, rgba(255,255,255,.10) 32%, rgba(255,255,255,0) 52%);
  mix-blend-mode: soft-light;
  opacity: .8;
}

/* 05 — linen texture */
.f-linen::after {
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(0,0,0,.05) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
  opacity: .9;
}

/* 06 — warm ambient */
.f-ambient::after {
  background: linear-gradient(180deg,
    rgba(255, 244, 224, .22) 0, rgba(255,255,255,0) 45%,
    rgba(180, 205, 255, .16) 100%);
  mix-blend-mode: soft-light;
}

/* 07 — foil edge */
.f-foil::after {
  border-radius: 10px;
  padding: 1.5px;
  background: linear-gradient(130deg, #fff, #b9c6d8 22%, #fff 40%, #8fa3bb 62%, #fff 82%, #cdd8e6);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: .85;
}

/* 08 — emboss */
.f-emboss::after {
  box-shadow:
    inset 2px 2px 5px rgba(0, 0, 0, .28),
    inset -2px -2px 5px rgba(255, 255, 255, .28);
}

/* 09 — glare on hover only */
.f-glare::after {
  background: linear-gradient(112deg,
    rgba(255,255,255,0) 38%, rgba(255,255,255,.40) 50%, rgba(255,255,255,0) 62%);
  mix-blend-mode: screen;
  opacity: 0;
  transform: translateX(-60%);
}
.f-glare:hover::after {
  animation: glareSweep .85s var(--ease) forwards;
}
@keyframes glareSweep {
  0%   { opacity: 0;   transform: translateX(-60%); }
  35%  { opacity: 1; }
  100% { opacity: 0;   transform: translateX(60%); }
}

/* 10 — paper grain */
.f-grain::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  opacity: .3;
}
.f-grain::after {
  background: radial-gradient(120% 110% at 50% 40%,
    rgba(255,255,255,0) 55%, rgba(0,0,0,.16) 100%);
}

@media (prefers-reduced-motion: reduce) {
  .fcard { transition: none; }
  .f-glare:hover::after { animation: none; }
}

/* ── 11 Even card grid with attribution ─────────────────────────────────── */
.t11 {
  display: grid;
  gap: var(--s-6);
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.t11__card {
  margin: 0;
  border-radius: 14px;
  background: color-mix(in srgb, var(--fg) 6%, var(--bg));
  padding: var(--s-8);
  display: grid;
  grid-template-rows: 1fr auto;
  gap: var(--s-12);
  transition: background-color .3s var(--ease);
}
.t11__card:hover { background: color-mix(in srgb, var(--fg) 9%, var(--bg)); }
.t11__card blockquote {
  font-size: 17px;
  line-height: 1.55;
  align-self: start;
}
.t11__card figcaption {
  display: flex;
  align-items: center;
  gap: var(--s-3);
}
.t11__avatar {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: var(--r-pill);
  display: grid;
  place-content: center;
  background: color-mix(in srgb, var(--fg) 14%, var(--bg));
  font-size: var(--t-body);
  line-height: 1;
}
.t11__who { display: grid; gap: 1px; }
.t11__name { font-size: var(--t-body); line-height: 22px; }
.t11__role { font-size: var(--t-caption); line-height: 19.5px; color: var(--fg-50); }

/* 11 — brushed / anisotropic */
.f-brushed::after {
  background:
    repeating-linear-gradient(var(--sheen-angle, 115deg),
      rgba(255,255,255,.16) 0 1px, rgba(255,255,255,0) 1px 4px),
    linear-gradient(var(--sheen-angle, 115deg),
      rgba(255,255,255,0) 30%, rgba(255,255,255,.22) 50%, rgba(255,255,255,0) 72%);
  mix-blend-mode: soft-light;
  opacity: .85;
}

/* 12 — pearlescent */
.f-pearl::after {
  background: linear-gradient(var(--sheen-angle, 115deg),
    rgba(120, 190, 255, .30) 0%,
    rgba(255, 255, 255, .18) 32%,
    rgba(255, 190, 220, .26) 58%,
    rgba(190, 255, 220, .20) 82%,
    rgba(255, 255, 255, 0) 100%);
  mix-blend-mode: soft-light;
  opacity: .9;
}

/* 13 — soft-touch */
.f-soft { border-radius: 18px; }
.f-soft .fcard__img { border-radius: 18px; }
.f-soft::after {
  border-radius: 18px;
  box-shadow:
    inset 0 0 26px rgba(0, 0, 0, .22),
    inset 0 0 0 1px rgba(255, 255, 255, .05);
}

/* 14 — gloss confined to the question band */
.f-varnish::after {
  background: linear-gradient(var(--sheen-angle, 115deg),
    rgba(255,255,255,0) 30%, rgba(255,255,255,.40) 50%, rgba(255,255,255,0) 70%);
  mix-blend-mode: soft-light;
  -webkit-mask-image: linear-gradient(to bottom, transparent 58%, #000 68% 94%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 58%, #000 68% 94%, transparent 100%);
}

/* 15 — edge-lit */
.f-edgelit::after {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .55),
    inset 0 -1px 0 rgba(255, 255, 255, .38),
    inset 1px 0 0 rgba(255, 255, 255, .45),
    inset -1px 0 0 rgba(255, 255, 255, .45),
    inset 0 0 14px rgba(255, 255, 255, .10);
}

/* ═══════════════════════════════════════════════════════════════════════════
   "A gift for you" — ten treatments
   ═══════════════════════════════════════════════════════════════════════════ */

.g { display: block; }
.g a { color: inherit; }

/* 01 quiet link */
.g01__k { font-size: var(--t-caption); color: var(--fg-50); margin-bottom: var(--s-2); }
.g01__l { font-size: var(--t-body); color: var(--fg-60); max-width: 58ch; }
.g01__l a { border-bottom: 1px solid var(--rule-strong); }

/* 02 pill CTA */
.g02 { display: grid; gap: var(--s-3); justify-items: start; }
.g02__k { font-size: var(--t-caption); color: var(--fg-50); }
.g02__l { font-size: clamp(18px, 2vw, 22px); max-width: 40ch; }
.g02 .btn { margin-top: var(--s-2); }

/* 03 drawing underline */
.g03__k { font-size: var(--t-caption); color: var(--fg-50); margin-bottom: var(--s-2); }
.g03__l { font-size: clamp(18px, 2vw, 22px); max-width: 46ch; }
.g03__l a { position: relative; }
.g03__l a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease);
}
.g03__l a:hover::after { transform: scaleX(1); }

/* 04 tinted card */
.g04 {
  display: grid; gap: var(--s-2);
  background: color-mix(in srgb, var(--fg) 7%, var(--bg));
  border-radius: var(--r-md);
  padding: var(--s-8);
  max-width: 620px;
  position: relative;
  transition: background-color .3s var(--ease);
}
.g04:hover { opacity: 1; background: color-mix(in srgb, var(--fg) 11%, var(--bg)); }
.g04__k { font-size: var(--t-caption); color: var(--fg-50); }
.g04__l { font-size: clamp(18px, 2vw, 22px); max-width: 40ch; }
.g04__arrow {
  position: absolute; right: var(--s-8); bottom: var(--s-8);
  font-size: 24px; transition: transform .35s var(--ease);
}
.g04:hover .g04__arrow { transform: translateX(6px); }

/* 05 full-bleed band */
.g05 {
  --gutter: max(var(--pad), calc((100vw - var(--wrap)) / 2 + var(--pad)));
  width: 100vw; margin-left: calc(50% - 50vw);
  padding: var(--s-12) var(--gutter);
  background: var(--fg); color: var(--bg);
  transition: opacity .25s var(--ease);
}
.g05:hover { opacity: .88; }
.g05__inner { display: grid; gap: var(--s-2); max-width: var(--wrap); margin-inline: auto; position: relative; }
.g05__k { font-size: var(--t-caption); opacity: .6; }
.g05__l { font-size: clamp(20px, 2.6vw, 30px); max-width: 34ch; letter-spacing: -0.01em; }
.g05__arrow { position: absolute; right: 0; bottom: 0; font-size: 30px; }

/* 06 oversized editorial */
.g06__k { font-size: var(--t-caption); color: var(--fg-50); margin-bottom: var(--s-4); }
.g06__l { font-size: clamp(26px, 4.4vw, 46px); line-height: 1.16; letter-spacing: -0.02em; max-width: 22ch; }
.g06__l a { border-bottom: 2px solid var(--rule-strong); transition: border-color .3s var(--ease); }
.g06__l a:hover { opacity: 1; border-color: currentColor; }

/* 07 ticker */
.g07 {
  --gutter: max(var(--pad), calc((100vw - var(--wrap)) / 2 + var(--pad)));
  display: block; width: 100vw; margin-left: calc(50% - 50vw);
  overflow: hidden; padding-block: var(--s-8);
  border-block: 1px solid var(--rule);
}
.g07__track { display: flex; width: max-content; will-change: transform; }
.g07__item {
  font-size: clamp(20px, 2.4vw, 28px);
  letter-spacing: -0.01em;
  padding-inline: var(--s-8);
  display: flex; align-items: center; gap: var(--s-6);
  white-space: nowrap;
}
.g07__item i { font-style: normal; opacity: .5; }

/* 08 card fan */
.g08 {
  display: flex; align-items: center; gap: var(--s-12);
  max-width: 700px;
}
.g08__fan { position: relative; width: 150px; height: 168px; flex: none; }
.g08__fan img {
  position: absolute; left: 0; top: 0; width: 110px; border-radius: 8px;
  transform: rotate(calc((var(--i) - 1) * 5deg)) translateX(calc(var(--i) * 12px));
  transition: transform .45s var(--ease);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .3);
}
.g08:hover .g08__fan img { transform: rotate(calc((var(--i) - 1) * 12deg)) translateX(calc(var(--i) * 26px)); }
.g08__copy { display: grid; gap: var(--s-2); }
.g08__k { font-size: var(--t-caption); color: var(--fg-50); }
.g08__l { font-size: clamp(18px, 2vw, 22px); max-width: 34ch; }

/* 09 pulsing marker */
.g09__k { font-size: var(--t-caption); color: var(--fg-50); margin-bottom: var(--s-2); display: flex; align-items: center; gap: var(--s-3); }
.g09__dot {
  width: 8px; height: 8px; border-radius: var(--r-pill);
  background: currentColor; flex: none;
  animation: giftPulse 2.4s ease-in-out infinite;
}
@keyframes giftPulse {
  0%, 100% { opacity: .25; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.5); }
}
.g09__l { font-size: clamp(18px, 2vw, 22px); max-width: 46ch; }
.g09__l a { border-bottom: 1px solid var(--rule-strong); }

/* 10 highlight sweep */
.g10__k { font-size: var(--t-caption); color: var(--fg-50); margin-bottom: var(--s-2); }
.g10__l { font-size: clamp(18px, 2vw, 22px); max-width: 46ch; }
.g10__mark {
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-size: 0% 100%;
  background-position: left center;
  transition: background-size .55s var(--ease), color .55s var(--ease);
  padding: 2px 4px;
  margin: -2px -4px;
}
.g10__l a:hover .g10__mark { background-size: 100% 100%; color: var(--bg); }

@media (prefers-reduced-motion: reduce) {
  .g09__dot { animation: none; opacity: 1; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   The problem stats — ten layouts
   ═══════════════════════════════════════════════════════════════════════════ */

.s { margin-top: var(--s-12); }
.s blockquote { text-wrap: pretty; }

/* shared cigarette bar */
.cigs { display: flex; gap: var(--s-2); align-items: flex-end; }
.cigs span {
  width: 6px; height: 40px;
  background: linear-gradient(180deg, var(--fg-35) 0 6px, var(--fg) 6px 100%);
}
.cigs--lg span { width: 14px; height: 110px; }
.cigs--lg { gap: var(--s-3); }

/* 01 current */
.s01__stats { display: grid; gap: var(--s-14); }
@media (min-width: 768px) { .s01__stats { grid-template-columns: 1fr 1fr; } }
.s01__n { font-size: clamp(56px, 11vw, 128px); line-height: .92; letter-spacing: -0.04em; }
.s01__l { margin-top: var(--s-4); font-size: var(--t-h2); line-height: 28px; color: var(--fg-60); max-width: 30ch; }
.s01__bar { margin-top: var(--s-6); height: 4px; background: color-mix(in srgb, var(--fg) 14%, transparent); border-radius: var(--r-pill); }
.s01__bar i { display: block; height: 100%; width: var(--p); background: var(--fg); border-radius: var(--r-pill); }
.s01__sg { margin-top: var(--s-20); border-radius: var(--r-md); background: color-mix(in srgb, var(--fg) 7%, var(--bg)); padding: var(--s-12); display: grid; gap: var(--s-8); justify-items: start; }
.s01__sg blockquote { font-size: clamp(20px, 3vw, 32px); line-height: 1.32; max-width: 32ch; }

/* 02 full-bleed numerals */
.s02__row { display: grid; gap: var(--s-2); padding-block: var(--s-8); border-top: 1px solid var(--rule); align-items: baseline; }
@media (min-width: 900px) { .s02__row { grid-template-columns: 1fr 1fr; } }
.s02__n { font-size: clamp(72px, 16vw, 210px); line-height: .84; letter-spacing: -0.05em; }
.s02__l { font-size: clamp(18px, 2.2vw, 26px); color: var(--fg-60); max-width: 26ch; }
.s02__sg { margin-top: var(--s-12); padding-top: var(--s-8); border-top: 1px solid var(--rule); font-size: var(--t-body); color: var(--fg-60); max-width: 62ch; }

/* 03 stacked panels */
.s03__grid { display: grid; gap: var(--s-4); }
@media (min-width: 768px) { .s03__grid { grid-template-columns: 1fr 1fr; } }
.s03__panel { border-radius: var(--r-md); padding: var(--s-12); background: color-mix(in srgb, var(--fg) 8%, var(--bg)); min-height: 300px; display: grid; align-content: space-between; }
.s03__panel--alt { background: color-mix(in srgb, var(--fg) 16%, var(--bg)); }
.s03__n { font-size: clamp(56px, 9vw, 110px); line-height: .9; letter-spacing: -0.04em; }
.s03__l { font-size: var(--t-h2); line-height: 28px; color: var(--fg-60); max-width: 26ch; }
.s03__sg { margin-top: var(--s-4); border-radius: var(--r-md); background: var(--fg); color: var(--bg); padding: var(--s-12); }
.s03__sg blockquote { font-size: clamp(19px, 2.4vw, 28px); line-height: 1.34; max-width: 44ch; }

/* 04 proportional bars */
.s04__row { display: grid; gap: var(--s-4); padding-block: var(--s-8); border-bottom: 1px solid var(--rule); align-items: center; }
@media (min-width: 900px) { .s04__row { grid-template-columns: 160px 1fr 260px; gap: var(--s-8); } }
.s04__n { font-size: clamp(40px, 5vw, 64px); line-height: .9; letter-spacing: -0.03em; }
.s04__track { display: block; height: 28px; background: color-mix(in srgb, var(--fg) 10%, transparent); border-radius: var(--r-pill); overflow: hidden; }
.s04__track i { display: block; height: 100%; width: var(--p); background: var(--fg); }
.s04__l { font-size: var(--t-body); color: var(--fg-60); }
.s04__sg { margin-top: var(--s-12); }
.s04__sg blockquote { font-size: clamp(18px, 2vw, 22px); line-height: 1.45; max-width: 56ch; color: var(--fg-60); }

/* 05 dot fields */
.s05__grid { display: grid; gap: var(--s-14); }
@media (min-width: 768px) { .s05__grid { grid-template-columns: 1fr 1fr; } }
.dots { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; max-width: 260px; margin-bottom: var(--s-8); }
.dots span { aspect-ratio: 1; border-radius: var(--r-pill); background: color-mix(in srgb, var(--fg) 14%, transparent); }
.dots span.is-on { background: var(--fg); }
.s05__n { font-size: clamp(40px, 6vw, 72px); line-height: .9; letter-spacing: -0.03em; }
.s05__l { margin-top: var(--s-3); font-size: var(--t-h2); line-height: 28px; color: var(--fg-60); max-width: 28ch; }
.s05__sg { margin-top: var(--s-20); }
.s05__sg blockquote { font-size: clamp(18px, 2vw, 22px); line-height: 1.45; max-width: 56ch; color: var(--fg-60); }

/* 06 quote first */
.s06__sg { font-size: clamp(24px, 4.4vw, 48px); line-height: 1.16; letter-spacing: -0.02em; max-width: 24ch; }
.s06__stats { margin-top: var(--s-20); display: grid; gap: var(--s-12); padding-top: var(--s-8); border-top: 1px solid var(--rule); }
@media (min-width: 768px) { .s06__stats { grid-template-columns: 1fr 1fr; } }
.s06__n { font-size: clamp(40px, 5vw, 64px); line-height: .9; letter-spacing: -0.03em; }
.s06__l { margin-top: var(--s-3); font-size: var(--t-body); color: var(--fg-60); max-width: 28ch; }

/* 07 cigarette hero */
.s07 { display: grid; gap: var(--s-12); justify-items: start; }
.s07__sg { font-size: clamp(20px, 3vw, 34px); line-height: 1.28; letter-spacing: -0.015em; max-width: 30ch; }
.s07__stats { display: grid; gap: var(--s-4); padding-top: var(--s-8); border-top: 1px solid var(--rule); width: 100%; }
@media (min-width: 768px) { .s07__stats { grid-template-columns: 1fr 1fr; } }
.s07__stats span { font-size: var(--t-body); color: var(--fg-60); }
.s07__stats b { font-weight: 400; font-size: clamp(28px, 3.4vw, 42px); color: var(--fg); margin-right: var(--s-3); letter-spacing: -0.02em; }

/* 08 split screen */
.s08 { display: grid; gap: var(--s-12); }
@media (min-width: 900px) { .s08 { grid-template-columns: 1fr 1fr; gap: var(--s-14); } }
.s08__left { display: grid; gap: var(--s-12); align-content: start; }
.s08__n { font-size: clamp(48px, 7vw, 96px); line-height: .9; letter-spacing: -0.04em; }
.s08__l { margin-top: var(--s-3); font-size: var(--t-h2); line-height: 28px; color: var(--fg-60); max-width: 26ch; }
.s08__right { padding-left: 0; }
@media (min-width: 900px) { .s08__right { border-left: 1px solid var(--rule); padding-left: var(--s-14); } }
.s08__right blockquote { font-size: clamp(20px, 2.6vw, 30px); line-height: 1.32; }

/* 09 ledger rows */
.s09 { border-top: 1px solid var(--rule); }
.s09__row { display: grid; gap: var(--s-3) var(--s-12); padding-block: var(--s-8); border-bottom: 1px solid var(--rule); align-items: baseline; }
@media (min-width: 768px) { .s09__row { grid-template-columns: 200px 1fr; } }
.s09__n { font-size: clamp(44px, 6vw, 76px); line-height: .9; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.s09__l { font-size: clamp(17px, 1.9vw, 21px); line-height: 1.5; color: var(--fg-60); max-width: 60ch; }
.s09__row--q .s09__l { color: var(--fg); }

/* 10 overlapped numerals */
.s10 { position: relative; min-height: 460px; }
.s10__a, .s10__b {
  font-size: clamp(120px, 26vw, 320px);
  line-height: .8; letter-spacing: -0.06em;
  position: absolute;
}
.s10__a { left: 0; top: 0; }
.s10__b { left: 34%; top: 26%; color: color-mix(in srgb, var(--fg) 22%, transparent); }
.s10__la, .s10__lb { position: absolute; font-size: var(--t-body); color: var(--fg-60); max-width: 22ch; }
.s10__la { left: 0; top: calc(clamp(120px, 26vw, 320px) * .82); }
.s10__lb { left: 34%; top: calc(26% + clamp(120px, 26vw, 320px) * .82); }
.s10__sg {
  position: absolute; right: 0; bottom: 0;
  font-size: clamp(17px, 1.9vw, 21px); line-height: 1.5;
  max-width: 34ch; text-align: right;
}
@media (max-width: 899px) {
  .s10 { min-height: 0; display: grid; gap: var(--s-6); }
  .s10__a, .s10__b, .s10__la, .s10__lb, .s10__sg { position: static; text-align: left; }
}

/* 11 — dot fields, inverted: the filled share recedes, the remainder is lit */
.s11 .dots span { background: var(--fg); }
.s11 .dots span.is-on { background: color-mix(in srgb, var(--fg) 14%, transparent); }

/* ── Dot field dissolve ──────────────────────────────────────────────────
   Ten treatments of one field: 73 filled dots of 100, coming apart under the
   pointer. Every mode animates transform (and in one case background-color)
   and nothing else — no blur, no filter, no shadow, nothing that would
   repaint 100 elements a frame.

   will-change is deliberately NOT on the base rule: ten fields on one page
   would hold a thousand promoted layers. dissolve.js adds .is-live to
   whichever field is actually in use and takes it off again after the settle. */
.dfield {
  position: relative;
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 6px;
  max-width: 320px;
  touch-action: pan-y;               /* drags reach the field, the page still scrolls */
}
.dfield span {
  aspect-ratio: 1;
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--fg) 14%, transparent);
}
.dfield span.is-on { background: var(--fg); }
.dfield.is-live span { will-change: transform; }

/* 01 proximity · 04 column sweep — CSS owns the easing, JS only sets --t */
.dfield--prox span.is-on,
.dfield--sweep span.is-on {
  transform: scale(calc(1 - var(--t, 0)));
  transition: transform .32s var(--ease);
}
.dfield--sweep span.is-on { transition-duration: .42s; }

/* the sweep's ten column values live on the container; each column of dots
   inherits its own, so a frame is ten style writes rather than seventy-three */
.dfield--sweep span:nth-child(10n+1)  { --t: var(--c0, 0); }
.dfield--sweep span:nth-child(10n+2)  { --t: var(--c1, 0); }
.dfield--sweep span:nth-child(10n+3)  { --t: var(--c2, 0); }
.dfield--sweep span:nth-child(10n+4)  { --t: var(--c3, 0); }
.dfield--sweep span:nth-child(10n+5)  { --t: var(--c4, 0); }
.dfield--sweep span:nth-child(10n+6)  { --t: var(--c5, 0); }
.dfield--sweep span:nth-child(10n+7)  { --t: var(--c6, 0); }
.dfield--sweep span:nth-child(10n+8)  { --t: var(--c7, 0); }
.dfield--sweep span:nth-child(10n+9)  { --t: var(--c8, 0); }
.dfield--sweep span:nth-child(10n+10) { --t: var(--c9, 0); }

/* 02 wake · 08 dwell · 09 tide — the frame loop does the easing, so no
   transition here: one would fight the value it is being handed */
.dfield--wake span.is-on,
.dfield--dwell span.is-on,
.dfield--tide span.is-on { transform: scale(calc(1 - var(--t, 0))); }

/* 05 magnet — the whole grid displaces, unfilled dots included */
.dfield--magnet span {
  transform: translate3d(var(--dx, 0px), var(--dy, 0px), 0) scale(calc(1 - var(--t, 0)));
}

/* 10 scatter — only the fill leaves its cell */
.dfield--scatter span.is-on {
  transform: translate3d(var(--dx, 0px), var(--dy, 0px), 0) scale(calc(1 - var(--t, 0)));
}

/* 03 wipe clear — one class, one transition, per dot, once */
.dfield--erase span.is-on {
  transform: scale(1);
  transition: transform .46s var(--ease) var(--d, 0ms);
}
.dfield--erase span.is-on.is-gone { transform: scale(0); }

.dfmeta {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  margin-top: var(--s-5);
  font-size: var(--t-caption);
  line-height: 19.5px;
  color: var(--fg-50);
}
.dfmeta__n { color: var(--fg); font-variant-numeric: tabular-nums; }
.dfbtn {
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-pill);
  background: none;
  color: var(--fg);
  font: inherit;
  padding: 5px 14px;
  cursor: pointer;
  transition: border-color .18s var(--ease), opacity .18s var(--ease);
}
.dfbtn:hover { border-color: var(--fg); }

/* 06 handoff — the fill migrates, so background-color moves with the dot */
.dfield--handoff span {
  transition: background-color .34s var(--ease);
}
.dfield--handoff span.is-arriving { animation: dfPop .52s var(--ease); }
.dfield--handoff span.is-leaving  { animation: dfDip .42s var(--ease); }
@keyframes dfPop {
  0%   { transform: scale(.28); }
  62%  { transform: scale(1.14); }
  100% { transform: scale(1); }
}
@keyframes dfDip {
  0%   { transform: scale(1); }
  45%  { transform: scale(.42); }
  100% { transform: scale(1); }
}

/* 07 threshold — off in a snap, back on the house ease */
.dfield--threshold span.is-on {
  transform: scale(1);
  transition: transform .52s var(--ease);
}
.dfield--threshold span.is-on.is-off {
  transform: scale(0);
  transition-duration: .14s;
  transition-timing-function: cubic-bezier(.3, .7, .2, 1);
}
.dfield--threshold span.is-nudge { animation: dfNudge .34s var(--ease); }
@keyframes dfNudge {
  0%, 100% { transform: scale(1); }
  42%      { transform: scale(.84); }
}

@media (prefers-reduced-motion: reduce) {
  .dfield span, .dfield span.is-on { transform: none; transition: none; animation: none; }
}

/* 11 — the shipping .dots field at a third of its size. Gap scales with it,
   otherwise 6px of gutter on 6px dots reads as a grid of gaps. */
.dots--third { max-width: 87px; gap: 2px; }

/* ── What you can expect, 04–11 ───────────────────────────────────────────
   Eight treatments that don't hide anything off a right edge. Shared: photos
   are cover-fitted, frames crossfade with opacity + a small scale, and every
   control is a real button so the keyboard gets the same page. */

/* 04 index → stage */
.xstack { display: grid; gap: var(--s-12); }
@media (min-width: 900px) { .xstack { grid-template-columns: 1fr 460px; align-items: start; } }

.xind { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.xind__item button {
  display: flex; align-items: baseline; gap: var(--s-3);
  width: 100%;
  background: none; border: 0; padding: var(--s-2) 0;
  color: var(--fg-35);
  font: inherit;
  font-size: clamp(24px, 3.4vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-align: left;
  cursor: pointer;
  transition: color .3s var(--ease);
}
.xind__item button:hover { color: var(--fg-60); }
.xind__item.is-on button { color: var(--fg); }
.xind__no {
  font-size: var(--t-caption);
  color: var(--fg-50);
  font-variant-numeric: tabular-nums;
}

/* the treatment switch — scaffolding, not a pattern for the live page */
.xswitch { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-8); }
.xsw {
  background: none;
  border: 1px dashed var(--rule-strong);
  border-radius: var(--r-pill);
  color: var(--fg-50);
  font: inherit;
  font-size: var(--t-caption);
  padding: 6px var(--s-4);
  cursor: pointer;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.xsw:hover { color: var(--fg); }
.xsw.is-on { color: var(--bg); background: var(--fg); border-color: var(--fg); border-style: solid; }

.xstage { position: relative; min-height: 520px; }
.xcard {
  position: absolute; inset: 0;
  opacity: 0;
  transform: scale(.985);
  pointer-events: none;
  transition: opacity .4s var(--ease), transform .4s var(--ease);
  display: grid;
  gap: var(--s-4);
}
.xcard.is-on { opacity: 1; transform: none; pointer-events: auto; }
.xcard__head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-4); }
.xcard__no { font-size: var(--t-caption); color: var(--fg-50); font-variant-numeric: tabular-nums; }
.xcard__img { position: relative; overflow: hidden; background: #000; min-height: 0; }
.xcard__img > img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.xcard__note { font-size: var(--t-body); line-height: 1.5; color: var(--fg-60); }

/* A — Card. Panel first: head, photo, caption, all inside one bordered object.
   The photo is an ingredient of the card rather than the subject. */
.xstage--card .xcard {
  grid-template-rows: auto 1fr auto;
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  background: rgba(0, 0, 0, .34);
  padding: var(--s-5);
}
.xstage--card .xcard__name { border-bottom: 1px solid var(--rule-strong); }
.xstage--card .xcard__img { border-radius: var(--r-sm); }

/* B — Copy over photo. The photograph is the whole stage and the copy sits on it
   behind a black scrim. Most emotive, least readable at length. */
.xstage--bleed .xcard {
  grid-template-rows: 1fr;
  border-radius: var(--r-md);
  overflow: hidden;
  gap: 0;
}
.xstage--bleed .xcard__img { grid-area: 1 / 1; }
.xstage--bleed .xcard__head,
.xstage--bleed .xcard__note {
  grid-area: 1 / 1;
  align-self: end;
  z-index: 1;
  padding: 0 var(--s-8);
}
.xstage--bleed .xcard__head { align-self: end; margin-bottom: calc(var(--s-20) + var(--s-2)); }
.xstage--bleed .xcard__name { font-size: clamp(22px, 2.6vw, 32px); letter-spacing: -0.02em; }
.xstage--bleed .xcard__note { margin-bottom: var(--s-8); color: var(--fg); max-width: 44ch; }
.xstage--bleed .xcard::after {
  content: "";
  grid-area: 1 / 1;
  background: linear-gradient(to top, rgba(0,0,0,.92) 0%, rgba(0,0,0,.5) 46%, rgba(0,0,0,0) 100%);
}

/* C — Editorial column. Photo on top, a rule, then number and copy in a row
   below it. Nothing overlaps, so the copy keeps full contrast. */
.xstage--ed .xcard { grid-template-rows: 1fr auto auto; gap: var(--s-5); }
.xstage--ed .xcard__img { order: -1; border-radius: var(--r-sm); }
.xstage--ed .xcard__head { padding-top: var(--s-4); border-top: 1px solid var(--rule); }
.xstage--ed .xcard__name { font-size: clamp(20px, 2.2vw, 26px); letter-spacing: -0.015em; }

/* D — Copy-led. The sentence is the object and the photo is a small frame under
   it. No name and no numeral — the list has already said which step this is.
   Use if this section is doing explaining rather than atmosphere. */
.xstage--copy .xcard { grid-template-rows: auto 1fr; align-content: start; gap: var(--s-6); }
.xstage--copy .xcard__head { display: none; }
.xstage--copy .xcard__note {
  order: -1;
  font-size: clamp(19px, 2.1vw, 25px);
  line-height: 1.35;
  letter-spacing: -0.012em;
  color: var(--fg);
  max-width: 30ch;
}
.xstage--copy .xcard__img {
  border-radius: var(--r-sm);
  aspect-ratio: 4 / 3;
  width: min(300px, 100%);
  align-self: start;
}

/* G — Editorial, no head. C exactly, minus the rule, the name and the numeral,
   and the frame is landscape: the list carries the names, the stage carries a
   photograph shaped like a photograph. */
.xstage--bare { min-height: 400px; }
.xstage--bare .xcard { grid-template-rows: auto auto; align-content: start; gap: var(--s-5); }
.xstage--bare .xcard__head { display: none; }
.xstage--bare .xcard__img { border-radius: var(--r-sm); aspect-ratio: 16 / 9; }
.xstage--bare .xcard__note { color: var(--fg-60); max-width: 46ch; }

/* F — Photo + copy only. Editorial column with the head dropped: the list has
   already said which step this is, so the stage doesn't repeat the name or the
   number. Least redundant of the six, and the quietest. */
.xstage--plain .xcard { grid-template-rows: 1fr auto; gap: var(--s-5); }
.xstage--plain .xcard__head { display: none; }
.xstage--plain .xcard__img { border-radius: var(--r-sm); }
.xstage--plain .xcard__note {
  font-size: clamp(17px, 1.9vw, 21px);
  line-height: 1.5;
  color: var(--fg);
  max-width: 42ch;
}

/* E — Inset panel. Full-bleed photo with the copy in a black panel floating over
   its lower corner: the photo stays whole, the copy keeps a hard edge. */
.xstage--inset .xcard {
  grid-template-rows: 1fr;
  border-radius: var(--r-md);
  overflow: hidden;
  gap: 0;
  position: absolute;
}
.xstage--inset .xcard__img { grid-area: 1 / 1; }
.xstage--inset .xcard__head,
.xstage--inset .xcard__note { grid-area: 1 / 1; z-index: 1; }
.xstage--inset .xcard__head {
  align-self: end;
  justify-self: start;
  margin: 0 var(--s-6) calc(var(--s-6) + 96px);
  background: #000;
  padding: var(--s-2) var(--s-4);
  gap: var(--s-4);
}
.xstage--inset .xcard__note {
  align-self: end;
  justify-self: start;
  margin: 0 var(--s-6) var(--s-6);
  max-width: 40ch;
  background: #000;
  padding: var(--s-4);
  color: var(--fg);
}

/* 05 tab bar → one frame */
.xtabs { display: grid; gap: var(--s-6); }
.xtabs__bar { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.xtab {
  display: inline-flex; align-items: baseline; gap: var(--s-2);
  background: none;
  border: 1px solid var(--rule);
  border-radius: var(--r-pill);
  color: var(--fg-60);
  font: inherit;
  font-size: var(--t-body);
  padding: var(--s-2) var(--s-5);
  min-height: 40px;
  cursor: pointer;
  transition: color .2s var(--ease), border-color .2s var(--ease), background-color .2s var(--ease);
}
.xtab span { font-size: var(--t-caption); opacity: .6; font-variant-numeric: tabular-nums; }
.xtab:hover { color: var(--fg); border-color: var(--fg-50); }
.xtab.is-on { background: var(--fg); border-color: var(--fg); color: var(--bg); }

.xtabs__stage { position: relative; aspect-ratio: 16 / 9; }
.xframe {
  position: absolute; inset: 0;
  margin: 0;
  border-radius: var(--r-md);
  overflow: hidden;
  opacity: 0;
  transition: opacity .45s var(--ease);
}
.xframe.is-on { opacity: 1; }
.xframe__img { position: absolute; inset: 0; background: #000; }
.xframe figcaption {
  position: absolute; inset: auto 0 0 0;
  padding: var(--s-8);
  font-size: var(--t-body);
  background: linear-gradient(to top, rgba(0,0,0,.88), rgba(0,0,0,0));
}

/* 06 accordion */
.xacc { border-top: 1px solid var(--rule); }
.xacc__row { border-bottom: 1px solid var(--rule); }
.xacc__btn {
  display: flex; align-items: baseline; gap: var(--s-6);
  width: 100%;
  background: none; border: 0;
  padding: var(--s-6) 0;
  color: var(--fg-60);
  font: inherit;
  cursor: pointer;
  transition: color .2s var(--ease);
}
.xacc__row.is-on .xacc__btn, .xacc__btn:hover { color: var(--fg); }
.xacc__no { font-size: var(--t-caption); font-variant-numeric: tabular-nums; color: var(--fg-50); }
.xacc__name { font-size: clamp(20px, 2.4vw, 30px); line-height: 1.2; letter-spacing: -0.015em; }
.xacc__body { height: 0; overflow: hidden; transition: height .45s var(--ease); }
.xacc__inner { display: grid; gap: var(--s-6); padding-bottom: var(--s-8); }
@media (min-width: 768px) { .xacc__inner { grid-template-columns: 420px 1fr; align-items: start; } }
.xacc__img { aspect-ratio: 4 / 3; border-radius: var(--r-md); overflow: hidden; background: #000; }
.xacc__inner p { font-size: var(--t-body); line-height: 1.6; color: var(--fg-60); max-width: 46ch; }

/* 07 filmstrip */
.xstrip { display: grid; gap: var(--s-6); }
.xstrip__row { display: flex; gap: var(--s-2); height: min(58vh, 460px); }
.xstrip__cell {
  flex: 1 1 0;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: var(--r-md);
  overflow: hidden;
  background: #000;
  cursor: pointer;
  position: relative;
  transition: flex-grow .5s var(--ease);
}
.xstrip__cell::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, .55);
  transition: opacity .4s var(--ease);
}
.xstrip__cell.is-on { flex-grow: 3.4; }
.xstrip__cell.is-on::after { opacity: 0; }
.xstrip__img { display: block; width: 100%; height: 100%; }
.xstrip__cap { font-size: var(--t-body); line-height: 1.5; color: var(--fg-60); max-width: 64ch; }
.xstrip__cap strong { color: var(--fg); font-weight: 400; }
.xstrip__no { color: var(--fg-50); font-variant-numeric: tabular-nums; margin-right: var(--s-2); }

/* 08 sticky frame */
.xsticky { display: grid; gap: var(--s-12); }
@media (min-width: 900px) { .xsticky { grid-template-columns: 1fr 1fr; align-items: start; } }
.xsticky__pin { position: relative; aspect-ratio: 4 / 3; }
@media (min-width: 900px) { .xsticky__col { position: sticky; top: 140px; } }
.xsticky__frame {
  position: absolute; inset: 0;
  border-radius: var(--r-md);
  overflow: hidden;
  opacity: 0;
  transform: scale(.99);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.xsticky__frame.is-on { opacity: 1; transform: none; }
.xsticky__img { position: absolute; inset: 0; background: #000; }
.xsteps { display: grid; gap: var(--s-20); }
.xsteps__step {
  display: grid; gap: var(--s-2);
  opacity: .38;
  transition: opacity .4s var(--ease);
}
.xsteps__step.is-on { opacity: 1; }
.xsteps__no { font-size: var(--t-caption); color: var(--fg-50); font-variant-numeric: tabular-nums; }
.xsteps__step h4 { font-size: clamp(22px, 2.8vw, 34px); line-height: 1.2; font-weight: 400; letter-spacing: -0.02em; }
.xsteps__step p { font-size: var(--t-body); line-height: 1.6; color: var(--fg-60); max-width: 44ch; }

/* 09 numeral ladder */
.xlad { border-top: 1px solid var(--rule); }
.xlad__row {
  position: relative;
  display: grid;
  gap: var(--s-1) var(--s-8);
  padding-block: var(--s-8);
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
  overflow: hidden;
}
@media (min-width: 768px) { .xlad__row { grid-template-columns: 90px 260px 1fr; } }
.xlad__no { font-size: clamp(28px, 3.4vw, 44px); line-height: .9; letter-spacing: -0.04em; color: var(--fg-35); font-variant-numeric: tabular-nums; transition: color .3s var(--ease); }
.xlad__row h4 { font-size: clamp(20px, 2.4vw, 30px); line-height: 1.2; font-weight: 400; letter-spacing: -0.015em; }
.xlad__row p { font-size: var(--t-body); line-height: 1.5; color: var(--fg-50); }
.xlad__img {
  position: absolute;
  right: var(--s-6); top: 50%;
  width: 280px; height: 168px;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: #000;
  transform: translate(28px, -50%);
  opacity: 0;
  transition: transform .45s var(--ease), opacity .45s var(--ease);
  pointer-events: none;
}
.xlad__row:hover .xlad__no, .xlad__row:focus-visible .xlad__no { color: var(--fg); }
.xlad__row:hover .xlad__img, .xlad__row:focus-visible .xlad__img { opacity: 1; transform: translate(0, -50%); }
@media (max-width: 900px) { .xlad__img { display: none; } }

/* 10 overlapped collage */
.xcol {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding-block: var(--s-8);
}
.xcol__item {
  margin: 0 calc(var(--s-8) * -1);
  width: min(300px, 62vw);
  transform: rotate(var(--tilt));
  transition: transform .45s var(--ease), z-index 0s;
  position: relative;
  z-index: 1;
}
.xcol__item:hover { transform: rotate(0deg) translateY(-10px) scale(1.04); z-index: 5; }
.xcol__img {
  aspect-ratio: 4 / 5;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: #000;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .45);
}
.xcol__item figcaption { margin-top: var(--s-3); font-size: var(--t-caption); color: var(--fg-60); text-align: center; }
.xcol__item figcaption span { color: var(--fg-50); font-variant-numeric: tabular-nums; margin-right: var(--s-1); }

/* 11 timeline rail */
.xtl {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: var(--s-2);
  padding-top: 260px;
}
.xtl__line { position: absolute; left: 0; right: 0; top: 260px; height: 1px; background: var(--rule-strong); }
.xtl__node {
  position: relative;
  flex: 1 1 0;
  background: none; border: 0; padding: 0;
  color: var(--fg-50);
  font: inherit;
  cursor: pointer;
  display: grid;
  justify-items: center;
  gap: var(--s-3);
  transition: color .25s var(--ease);
}
.xtl__node.is-on { color: var(--fg); }
.xtl__pop {
  position: absolute;
  bottom: calc(100% - 4px);
  width: min(240px, 40vw);
  border-radius: var(--r-sm);
  overflow: hidden;
  background: #000;
  aspect-ratio: 4 / 3;
  opacity: 0;
  transform: translateY(10px) scale(.97);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
  pointer-events: none;
}
.xtl__node.is-on .xtl__pop { opacity: 1; transform: none; }
.xtl__img { display: block; width: 100%; height: 100%; }
.xtl__dot {
  width: 9px; height: 9px;
  border-radius: var(--r-pill);
  background: var(--rule-strong);
  transition: background-color .25s var(--ease), transform .25s var(--ease);
}
.xtl__node.is-on .xtl__dot { background: var(--fg); transform: scale(1.5); }
.xtl__label { font-size: var(--t-caption); line-height: 19.5px; text-align: center; }
.xtl__no { display: block; font-variant-numeric: tabular-nums; opacity: .6; }
@media (max-width: 700px) {
  .xtl { flex-wrap: wrap; padding-top: 0; gap: var(--s-6); }
  .xtl__line { display: none; }
  .xtl__pop { position: static; opacity: 1; transform: none; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .xcard, .xframe, .xsticky__frame, .xtl__pop, .xlad__img, .xstrip__cell { transition: none; }
}

/* ── In-page jump nav, injected by testnav.js ────────────────────────────── */
.testnav {
  position: sticky; top: 52px; z-index: 59;
  background: rgba(19, 15, 12, .94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.testnav__inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-1) var(--s-2);
  padding-block: var(--s-2);
}
.testnav__link {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 5px var(--s-3);
  border: 1px solid var(--rule);
  border-radius: var(--r-pill);
  font-size: var(--t-micro);
  line-height: 1.4;
  color: var(--fg-60);
  text-decoration: none;
  transition: color .2s var(--ease), border-color .2s var(--ease),
              background-color .2s var(--ease);
}
.testnav__link:hover { color: var(--fg); border-color: var(--fg); }
.testnav__link.is-here {
  color: var(--bg);
  background: var(--fg);
  border-color: var(--fg);
}
.testnav__no { font-variant-numeric: tabular-nums; opacity: .6; }

/* clear both sticky bars when jumping to an option */
.tsec[id] { scroll-margin-top: 112px; }

/* ── How we work, ten layouts ─────────────────────────────────────────────
   One content set — three steps, three numerals — laid out ten ways. Shared:
   the section heading and the step type scale, so the only thing changing
   between options is the arrangement. */
.hhead { margin-bottom: var(--s-14); max-width: 18ch; }
.hh4 { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.2; letter-spacing: -0.014em; font-weight: 400; }

/* 01 ruled ledger */
.hledger { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.hledger__row {
  display: grid;
  gap: var(--s-2) var(--s-8);
  padding-block: var(--s-8);
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
@media (min-width: 768px) { .hledger__row { grid-template-columns: 90px 300px 1fr; } }
.hledger__no { font-size: var(--t-caption); color: var(--fg-50); font-variant-numeric: tabular-nums; }
.hledger__row h4 { font-size: clamp(21px, 2.3vw, 27px); line-height: 1.2; letter-spacing: -0.014em; font-weight: 400; }
.hledger__row p { color: var(--fg-60); line-height: 1.6; max-width: 46ch; }

/* 02 oversized numerals */
.hbig { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-14); }
.hbig__row { display: grid; gap: var(--s-4) var(--s-8); align-items: start; }
@media (min-width: 768px) { .hbig__row { grid-template-columns: minmax(140px, 22%) 1fr; } }
.hbig__no {
  font-size: clamp(88px, 15vw, 200px);
  line-height: .78;
  letter-spacing: -0.06em;
  font-variant-numeric: lining-nums;
  color: var(--fg);
}
.hbig__copy { display: grid; gap: var(--s-3); padding-top: var(--s-2); }
.hbig__copy h4 { font-size: clamp(22px, 2.6vw, 32px); line-height: 1.18; letter-spacing: -0.018em; font-weight: 400; }
.hbig__copy p { color: var(--fg-60); line-height: 1.6; max-width: 46ch; }

/* 03 connected path */
.hpath {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  gap: var(--s-12);
  position: relative;
}
@media (min-width: 900px) {
  .hpath { grid-template-columns: repeat(3, 1fr); gap: var(--s-8); }
  /* the line runs behind the nodes, inset half a column at each end so it
     starts and stops on a dot rather than at the container edge */
  .hpath::before {
    content: "";
    position: absolute;
    top: 5px;
    left: calc(100% / 6);
    right: calc(100% / 6);
    height: 1px;
    background: var(--rule-strong);
  }
}
.hpath__node { display: grid; gap: var(--s-3); position: relative; }
.hpath__dot {
  width: 11px; height: 11px;
  border-radius: var(--r-pill);
  background: var(--fg);
  position: relative;
  z-index: 1;
}
.hpath__no { font-size: var(--t-caption); color: var(--fg-50); font-variant-numeric: tabular-nums; }
.hpath__node h4 { font-size: clamp(20px, 2.2vw, 25px); line-height: 1.2; letter-spacing: -0.014em; font-weight: 400; }
.hpath__node p { color: var(--fg-60); line-height: 1.6; max-width: 34ch; }

/* 04 stair step */
.hstair { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-8); }
.hstair__step {
  display: grid;
  gap: var(--s-2);
  padding: var(--s-8);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
}
@media (min-width: 900px) {
  .hstair__step { width: 58%; }
  .hstair__step:nth-child(2) { margin-left: 21%; }
  .hstair__step:nth-child(3) { margin-left: 42%; }
}
.hstair__no { font-size: var(--t-caption); color: var(--fg-50); font-variant-numeric: tabular-nums; }
.hstair__step h4 { font-size: clamp(21px, 2.3vw, 27px); line-height: 1.2; letter-spacing: -0.014em; font-weight: 400; }
.hstair__step p { color: var(--fg-60); line-height: 1.6; max-width: 44ch; }

/* 05 sticky heading */
.hside { display: grid; gap: var(--s-12); }
@media (min-width: 900px) { .hside { grid-template-columns: 1fr 1.2fr; align-items: start; } }
@media (min-width: 900px) { .hside__col { position: sticky; top: 140px; } }
.hside__pin { display: grid; gap: var(--s-4); }
.hside__sub { color: var(--fg-60); line-height: 1.6; max-width: 26ch; }
.hside__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-14); }
.hside__step { display: grid; gap: var(--s-3); }
.hside__no { font-size: var(--t-caption); color: var(--fg-50); font-variant-numeric: tabular-nums; }
.hside__step h4 { font-size: clamp(22px, 2.6vw, 32px); line-height: 1.18; letter-spacing: -0.018em; font-weight: 400; }
.hside__step p { color: var(--fg-60); line-height: 1.6; max-width: 44ch; }

/* 06 one sentence */
.hsent {
  font-size: clamp(24px, 3.4vw, 42px);
  line-height: 1.24;
  letter-spacing: -0.024em;
  max-width: 34ch;
  display: grid;
  gap: var(--s-5);
}
.hsent__part { display: block; position: relative; }
.hsent__no {
  display: block;
  font-size: var(--t-caption);
  line-height: 19.5px;
  letter-spacing: 0;
  color: var(--fg-50);
  font-variant-numeric: tabular-nums;
  margin-bottom: var(--s-1);
}
.hsent__foot { margin-top: var(--s-8); color: var(--fg-50); font-size: var(--t-caption); line-height: 19.5px; max-width: 52ch; }

/* 07 dial */
.hdial { display: grid; gap: var(--s-12); align-items: center; }
@media (min-width: 900px) { .hdial { grid-template-columns: 380px 1fr; } }
.hdial__wheel {
  position: relative;
  width: 100%;
  max-width: 340px;
  aspect-ratio: 1;
  transform: rotate(var(--turn, 0deg));
  transition: transform .7s var(--ease);
  margin-inline: auto;
}
.hdial__ring {
  position: absolute; inset: 0;
  border: 1px solid var(--rule);
  border-radius: var(--r-pill);
}
.hdial__spoke {
  position: absolute;
  left: 50%; top: 50%;
  width: 1px; height: 50%;
  transform-origin: 50% 100%;
  background: var(--rule);
  transform: translate(-50%, -100%) rotate(calc(var(--i, 0) * 120deg));
}
.hdial__spoke:nth-of-type(1) { --i: 0; }
.hdial__spoke:nth-of-type(2) { --i: 1; }
.hdial__spoke:nth-of-type(3) { --i: 2; }
.hdial__spoke span {
  position: absolute;
  top: -18px; left: 50%;
  transform: translateX(-50%) rotate(calc(var(--turn, 0deg) * -1));
  font-size: var(--t-caption);
  color: var(--fg-50);
  font-variant-numeric: tabular-nums;
  background: var(--bg);
  padding: 2px 6px;
  transition: color .3s var(--ease);
}
.hdial__spoke.is-on { background: var(--fg); }
.hdial__spoke.is-on span { color: var(--fg); }
.hdial__side { display: grid; gap: var(--s-2); }
.hdial__pip {
  display: grid;
  gap: var(--s-1);
  text-align: left;
  background: none;
  border: 0;
  border-top: 1px solid var(--rule);
  padding: var(--s-5) 0;
  color: var(--fg-35);
  font: inherit;
  cursor: pointer;
  transition: color .3s var(--ease);
}
.hdial__pip:hover { color: var(--fg-60); }
.hdial__pip.is-on { color: var(--fg); }
.hdial__pipno { font-size: var(--t-caption); color: var(--fg-50); font-variant-numeric: tabular-nums; }
.hdial__piptitle { font-size: clamp(20px, 2.2vw, 26px); line-height: 1.2; letter-spacing: -0.014em; }
.hdial__pipnote {
  color: var(--fg-60);
  line-height: 1.6;
  max-width: 44ch;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .45s var(--ease), opacity .3s var(--ease), margin-top .45s var(--ease);
}
.hdial__pip.is-on .hdial__pipnote { max-height: 8em; opacity: 1; margin-top: var(--s-2); }

/* 08 full-bleed bands */
.hband__group { display: grid; }
.hband { border-top: 1px solid var(--rule); }
.hband:last-child { border-bottom: 1px solid var(--rule); }
.hband__inner {
  display: grid;
  gap: var(--s-2) var(--s-8);
  padding-block: var(--s-14);
  align-items: start;
}
@media (min-width: 768px) { .hband__inner { grid-template-columns: 120px 1fr 1fr; } }
.hband__no {
  font-size: clamp(28px, 3vw, 40px);
  line-height: .9;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--fg-35);
}
.hband__inner h4 { font-size: clamp(22px, 2.8vw, 34px); line-height: 1.16; letter-spacing: -0.02em; font-weight: 400; }
.hband__inner p { color: var(--fg-60); line-height: 1.6; max-width: 46ch; }
.hband:hover .hband__no { color: var(--fg); transition: color .3s var(--ease); }

/* 09 count-in on scroll */
.hcount { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-20); }
.hcount__step {
  display: grid;
  gap: var(--s-3);
  padding-left: var(--s-8);
  border-left: 1px solid var(--rule);
  opacity: .34;
  transform: translateY(10px);
  transition: opacity .6s var(--ease), transform .6s var(--ease), border-color .6s var(--ease);
}
.hcount__step.is-on { opacity: 1; transform: none; border-left-color: var(--fg); }
.hcount__no { font-size: var(--t-caption); color: var(--fg-50); font-variant-numeric: tabular-nums; }
.hcount__step h4 { font-size: clamp(22px, 2.6vw, 32px); line-height: 1.18; letter-spacing: -0.018em; font-weight: 400; }
.hcount__step p { color: var(--fg-60); line-height: 1.6; max-width: 46ch; }

/* 10 one panel, three states */
.hswap { display: grid; gap: var(--s-8); }
@media (min-width: 768px) { .hswap { grid-template-columns: auto 1fr; align-items: start; gap: var(--s-14); } }
.hswap__rail { display: flex; gap: var(--s-4); }
@media (min-width: 768px) { .hswap__rail { flex-direction: column; } }
.hswap__no {
  background: none;
  border: 0;
  padding: 0;
  color: var(--fg-35);
  font: inherit;
  font-size: clamp(32px, 4vw, 52px);
  line-height: .9;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: color .3s var(--ease);
}
.hswap__no:hover { color: var(--fg-60); }
.hswap__no.is-on { color: var(--fg); }
.hswap__stage { position: relative; min-height: 190px; }
.hswap__pane {
  position: absolute; inset: 0;
  display: grid;
  gap: var(--s-3);
  align-content: start;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s var(--ease);
}
.hswap__pane.is-on { opacity: 1; pointer-events: auto; }
.hswap__pane h4 { font-size: clamp(24px, 3vw, 36px); line-height: 1.16; letter-spacing: -0.02em; font-weight: 400; }
.hswap__pane p { color: var(--fg-60); line-height: 1.6; max-width: 48ch; }

@media (prefers-reduced-motion: reduce) {
  .hdial__wheel, .hcount__step, .hswap__pane, .hdial__pipnote { transition: none; }
}
