/* Winch base: fonts, reset, type, layout, chrome and the shared components. Values come from tokens.css. */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo.woff2") format("woff2");
  font-weight: 560 620;
  font-stretch: 92% 100%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Winch Mono";
  src: url("/assets/fonts/winch-mono.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
/* Metric-matched fallbacks so a late font swap does not move the layout. */
@font-face {
  font-family: "Archivo fallback";
  src: local("Arial");
  size-adjust: 96.4%;
  ascent-override: 91.07%;
  descent-override: 21.78%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Instrument Sans fallback";
  src: local("Arial");
  size-adjust: 102.78%;
  ascent-override: 94.38%;
  descent-override: 24.32%;
  line-gap-override: 0%;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-padding-top: calc(var(--header-h) + var(--s-5));
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--chalk);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: var(--lh-body);
  font-weight: 400;
  font-kerning: normal;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, p, figure, blockquote, dl, dd, ol, ul { margin: 0; }
ol[role="list"], ul[role="list"], .list-reset { list-style: none; padding: 0; }
img, video, canvas { display: block; max-width: 100%; height: auto; }
svg { flex: none; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
::selection { background: color-mix(in oklab, var(--rust) 20%, transparent); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.on-ink :focus-visible, .close :focus-visible, .site-footer :focus-visible, .glance :focus-visible, .tcard--ink :focus-visible { outline-color: var(--focus-on-dark); }
main:focus { outline: none; }

/* ---------- Type roles ---------- */
h1, h2, h3, .display, .h1, .h2, .h3 {
  font-family: var(--font-display);
  color: inherit;
  text-wrap: balance;
  font-optical-sizing: auto;
}
.display {
  font-size: var(--t-display);
  line-height: var(--lh-display);
  letter-spacing: var(--tr-display);
  font-weight: var(--wght-display);
  font-stretch: var(--wdth-display);
}
h1, .h1 {
  font-size: var(--t-h1);
  line-height: var(--lh-h1);
  letter-spacing: var(--tr-h1);
  font-weight: var(--wght-heading);
  font-stretch: var(--wdth-heading);
}
h2, .h2 {
  font-size: var(--t-h2);
  line-height: var(--lh-h2);
  letter-spacing: var(--tr-h2);
  font-weight: var(--wght-heading);
  font-stretch: var(--wdth-heading);
}
h3, .h3 {
  font-size: var(--t-h3);
  line-height: var(--lh-h3);
  letter-spacing: var(--tr-h3);
  font-weight: var(--wght-h3);
  font-stretch: var(--wdth-h3);
}
.display.rise { text-wrap: wrap; }
p, li { text-wrap: pretty; }
.lead {
  font-size: var(--t-lead);
  line-height: var(--lh-lead);
  letter-spacing: var(--tr-lead);
  color: var(--ink-2);
  max-width: 56ch;
}
.body { font-size: var(--t-body); line-height: var(--lh-body); }
.small { font-size: var(--t-small); line-height: var(--lh-small); }
.meta { font-size: var(--t-meta); line-height: var(--lh-meta); letter-spacing: var(--tr-meta); font-weight: 500; }
.muted { color: var(--ink-2); }
.mono, .data {
  font-family: var(--font-mono);
  font-size: var(--t-mono);
  line-height: var(--lh-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}
.prose p + p { margin-top: 1em; }
/* links in running text: a quiet underline at about 3:1, full colour on hover */
.prose a, .text-link, p a:not([class]) {
  text-decoration-line: underline;
  text-decoration-thickness: 1.5px;
  text-decoration-color: var(--ink-4);
  text-underline-offset: .22em;
  transition: text-decoration-color var(--d-quick) var(--e-glide), color var(--d-quick) var(--e-glide);
}
.on-ink p a:not([class]), .site-footer p a:not([class]) { text-decoration-color: color-mix(in srgb, var(--chalk) 50%, transparent); }
@media (hover: hover) and (pointer: fine) {
  .prose a:hover, .text-link:hover, p a:not([class]):hover { text-decoration-color: currentColor; }
}

/* ---------- Layout: one frame line (--frame-gutter) for header, stages and footer. Text shares it until the
   1200 px container fits, and snaps to it within 8 px (1312 to 1328 px). ---------- */
.wrap {
  width: min(100% - 2 * var(--frame-gutter), var(--container));
  margin-inline: auto;
}
@media (min-width: 1312px) and (max-width: 1328px) {
  .wrap { width: calc(100% - 2 * var(--frame-gutter)); }
}
.wrap--stage { width: min(100% - 2 * var(--frame-gutter), var(--stage-max)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 2 * var(--frame-gutter), var(--measure-long)); margin-inline: auto; }
/* stage wrappers only: the shared 12 px phone inset */
@media (max-width: 767px) {
  .wrap--bleed { width: calc(100% - 2 * var(--stage-inset)); }
}
.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--grid-gap);
}
@media (min-width: 768px) { .grid { grid-template-columns: repeat(8, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(12, minmax(0, 1fr)); } }
/* Sections abut: each carries half the section rhythm, so neighbouring topics sit one --s-section apart. */
.section { padding-block: var(--s-section-half); }
.section--half { padding-block: calc(var(--s-section-half) / 2); }
.section--flush-top { padding-top: 0; }
.section-head { display: grid; gap: var(--s-4); margin-bottom: var(--s-head); }
.section-head > .chip { justify-self: start; }
.section-head h2 + .lead, .section-head h1 + .lead { margin-top: 4px; }
.section-head .actions { margin-top: var(--s-4); }
@media (min-width: 1024px) {
  .section-head--split {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--grid-gap);
    align-items: end;
  }
  .section-head--split > :first-child { grid-column: 1 / span 6; }
  .section-head--split > .lead { grid-column: 8 / span 5; margin: 0; }
}
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  background: var(--ink);
  color: var(--chalk);
  font-weight: 500;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform var(--d-quick) var(--e-settle);
}
.skip-link:focus-visible { transform: none; }

/* ---------- Glyphs (20 px grid, 1.5 px stroke) ---------- */
.glyph { width: 20px; height: 20px; display: inline-block; vertical-align: middle; color: inherit; }
.glyph--16 { width: 16px; height: 16px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- Buttons and links ---------- */
.btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 16px 0 18px;
  border: 1px solid transparent; /* drawn in forced colours */
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-size: var(--t-button);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
  transition: transform var(--d-quick) var(--e-glide), box-shadow var(--d-quick) var(--e-glide), background-color var(--d-quick) var(--e-glide);
}
.btn::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -1px;
  border-radius: inherit;
  background: var(--chalk);
  opacity: 0;
  transition: opacity 300ms var(--e-glide);
  pointer-events: none;
}
.btn__arrow { width: 16px; height: 16px; margin-right: -2px; transition: transform var(--d-move) var(--e-settle); }
.btn--primary { background: var(--rust); color: var(--chalk); }
.btn--secondary { background: var(--ink); color: var(--chalk); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn--ghost::before { background: var(--ink); }
.btn--on-ink { background: var(--chalk); color: var(--ink); }
.btn--on-ink::before { background: var(--ink); }
.btn--ghost-on-ink { background: transparent; color: var(--chalk); box-shadow: inset 0 0 0 1px var(--dark-line-hover); }
.btn--sm { min-height: 40px; padding-inline: 14px; font-size: var(--t-small); }
.btn--block { width: 100%; }
.btn:active { transform: scale(.97); transition-duration: var(--d-tap); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover::before { opacity: .08; }
  .btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--ink); }
  .btn--ghost:hover::before { opacity: .04; }
  .btn--ghost-on-ink:hover { box-shadow: inset 0 0 0 1px var(--dark-line-active); }
  .btn:hover .btn__arrow, .link-arrow:hover .btn__arrow { transform: translateX(3px); }
}
.link-arrow {
  display: inline-block;
  padding-block: 10px;
  line-height: 24px;
  color: var(--ink);
  font-weight: 500;
  font-size: var(--t-button);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--line-strong);
  text-underline-offset: .3em;
  transition: text-decoration-color var(--d-quick) var(--e-glide);
}
.link-arrow .btn__arrow { width: 16px; height: 16px; }
.link-arrow__end { white-space: nowrap; }
.link-arrow :is(.btn__arrow, .glyph) { display: inline-block; margin: 0 -2px 0 8px; vertical-align: -3px; }
@media (hover: hover) and (pointer: fine) {
  .link-arrow:hover { text-decoration-color: currentColor; }
}

/* ---------- Chips ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: var(--r-xs);
  background: var(--sunken);
  color: var(--ink-2);
  font-size: var(--t-meta);
  line-height: var(--lh-meta);
  letter-spacing: var(--tr-meta);
  font-weight: 500;
  white-space: nowrap;
}
/* one mask, so every engine draws the same eight dashes */
.chip--fictional::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5.5 1.5h5a4 4 0 0 1 4 4v5a4 4 0 0 1-4 4h-5a4 4 0 0 1-4-4v-5a4 4 0 0 1 4-4z' fill='none' stroke='black' stroke-width='3' stroke-dasharray='3.4 2.2416' stroke-dashoffset='4.8416'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5.5 1.5h5a4 4 0 0 1 4 4v5a4 4 0 0 1-4 4h-5a4 4 0 0 1-4-4v-5a4 4 0 0 1 4-4z' fill='none' stroke='black' stroke-width='3' stroke-dasharray='3.4 2.2416' stroke-dashoffset='4.8416'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  opacity: .9;
}
@media (forced-colors: active) { .chip--fictional::before { forced-color-adjust: none; background: CanvasText; } }
.chip--on-dark { background: var(--instrument-raised); color: var(--on-dark-2); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--header-h);
  background: var(--chalk);
  view-transition-name: site-header;
}
.site-header::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: var(--line);
  opacity: 0;
  transition: opacity var(--d-roll) var(--e-glide);
}
.site-header.is-scrolled::after, html:not(.js) .site-header::after { opacity: 1; }
.site-header__inner {
  width: min(100% - 2 * var(--frame-gutter), var(--stage-max));
  height: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: var(--s-5);
}
.site-header__home {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-right: auto;
  border-radius: var(--r-xs);
}
.site-nav { display: flex; align-items: center; gap: var(--s-6); }
@media (min-width: 768px) and (max-width: 799.98px) { .site-nav { gap: var(--s-4); } }
.site-nav__list { display: flex; align-items: center; gap: var(--s-1); list-style: none; padding: 0; margin: 0; }
.nav-link {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: var(--r-sm);
  color: var(--ink-2);
  font-size: var(--t-small);
  font-weight: 500;
  text-decoration: none;
  transition: color var(--d-quick) var(--e-glide), transform var(--d-quick) var(--e-glide);
}
.nav-link:active, .site-footer__group a:active, .menu-toggle:active, .motion-toggle:active { transform: scale(.97); transition-duration: var(--d-tap); }
.nav-link[aria-current="page"] { color: var(--ink); }
.nav-link[aria-current="page"] .roll { box-shadow: 0 1px 0 0 currentColor; }
/* clip-path, not overflow, clips the hover copy, so text spacing and zoom can grow the label (the extra pixel
   keeps the current-page underline inside) */
.roll { position: relative; display: inline-block; vertical-align: top; line-height: 1.35; clip-path: inset(0 0 -1px 0); }
.roll > span { display: block; transition: transform var(--d-roll) var(--e-roll); }
.roll::after {
  content: attr(data-label) / "";
  position: absolute;
  left: 0;
  top: 100%;
  transition: transform var(--d-roll) var(--e-roll);
}
@media (hover: hover) and (pointer: fine) {
  .nav-link:hover { color: var(--ink); }
  .nav-link:hover .roll > span, .nav-link:hover .roll::after { transform: translateY(-100%); }
}
.menu-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  min-width: 44px;
  margin-right: -10px;
  padding: 0 10px;
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--ink);
  font-size: var(--t-small);
  font-weight: 500;
  transition: transform var(--d-quick) var(--e-glide);
}
.menu-toggle__icon { position: relative; width: 18px; height: 12px; }
.menu-toggle__icon i {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  border-radius: 1px;
  background: currentColor;
  transition: transform var(--d-roll) var(--e-settle), top var(--d-roll) var(--e-settle);
}
.menu-toggle__icon i:first-child { top: 2px; }
.menu-toggle__icon i:last-child { top: 8.5px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon i:first-child { top: 5.25px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon i:last-child { top: 5.25px; transform: rotate(-45deg); }
@media (forced-colors: active) { .menu-toggle__icon i { background: ButtonText; } }

@media (max-width: 767px) {
  .js .menu-toggle { display: inline-flex; }
  .js .site-nav {
    position: fixed;
    z-index: 59;
    inset: var(--header-h) 0 0 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: var(--s-6);
    padding: var(--s-5) var(--gutter) calc(var(--s-6) + env(safe-area-inset-bottom));
    background: var(--chalk);
    border-top: 1px solid var(--line);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .js.menu-open .site-nav { display: flex; }
  .js .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .js .site-nav__list li { border-bottom: 1px solid var(--line); }
  .js .nav-link {
    width: 100%;
    min-height: 64px;
    padding: 0;
    transform-origin: left center;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: var(--wght-heading);
    font-stretch: var(--wdth-heading);
    letter-spacing: var(--tr-h2);
  }
  .js .nav-link .roll::after { content: none; }
  .js .nav-link[aria-current="page"] .roll { box-shadow: none; }
  .js .site-nav.is-leaving .nav-link[aria-current="page"]:not(.is-going)::after { content: none; }
  .js .nav-link.is-going::after,
  .js .nav-link[aria-current="page"]::after {
    content: "";
    width: 8px;
    height: 8px;
    margin-left: auto;
    border-radius: var(--r-round);
    background: var(--slate);
  }
  .js .site-nav__cta { width: 100%; min-height: 52px; background: var(--rust); }
  .js .site-nav__cta.is-going { background: var(--rust-ink); }
  .js[data-motion="full"].menu-open .site-nav__list li,
  .js[data-motion="full"].menu-open .site-nav__cta {
    animation: winch-sheet-in var(--d-move) var(--e-settle) backwards;
    animation-delay: calc(var(--i, 0) * 40ms + 40ms);
  }
  html:not(.js) .site-header { height: auto; position: relative; }
  html:not(.js) .site-header__inner { flex-wrap: wrap; padding-block: 10px; gap: 4px var(--s-3); }
  html:not(.js) .site-nav { width: 100%; flex-wrap: wrap; gap: 4px 12px; }
  html:not(.js) .site-nav__list { flex-wrap: wrap; }
  html:not(.js) .nav-link { padding: 0 8px 0 0; }
}
@keyframes winch-sheet-in { from { opacity: 0; transform: translate3d(0, 12px, 0); } }
/* Phones: the one action stays in the header bar on every screen, beside Menu (the sheet keeps its own). */
.site-header__cta { display: none; }
@media (max-width: 767px) {
  .js .site-header__inner { gap: var(--s-3); }
  .js .site-header__cta { display: inline-flex; min-height: 36px; padding: 0 var(--s-3); font-size: var(--t-small); white-space: nowrap; }
  .js.menu-open .site-header__cta, .site-header__cta[aria-current="page"] { visibility: hidden; }
}
html.menu-open { overflow: hidden; }

/* ---------- Stage shell (scenes fill it in) ---------- */
.stage {
  position: relative;
  container: stage / inline-size;
  background: var(--card);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-2);
}
.stage::after {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px var(--line);
  pointer-events: none;
}
.stage__bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: var(--s-3);
  min-height: 48px;
  padding: 0 var(--s-2) 0 var(--s-4);
  border-bottom: 1px solid var(--line);
}
.stage__title {
  min-width: 0;
  overflow: hidden;
  color: var(--ink-2);
  font-size: var(--t-meta);
  font-weight: 500;
  line-height: var(--lh-meta);
  word-spacing: .1em;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.stage__bar-end { display: flex; align-items: center; gap: var(--s-3); margin-left: auto; min-width: 0; }
.stage__body { position: relative; padding: var(--s-4); }
@container stage (min-width: 720px) { .stage__body { padding: var(--s-5); } }
.stage__viewport {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-sm);
  background: var(--instrument);
  color: var(--chalk);
  isolation: isolate;
}
.stage__video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: var(--r-sm); background: var(--instrument); }
.real-work { margin-top: var(--s-6); }
.stage__caption { margin-top: var(--s-4); color: var(--ink-2); font-size: var(--t-small); line-height: var(--lh-small); max-width: 72ch; }
.page-note { color: var(--ink-2); font-size: var(--t-meta); line-height: var(--lh-meta); max-width: 72ch; }
.noscript-note { margin-top: var(--s-3); color: var(--ink-2); font-size: var(--t-small); }
@container stage (max-width: 560px) {
  .stage__bar { flex-wrap: wrap; row-gap: 2px; padding-block: 6px; }
  .stage__bar-end { margin-left: auto; }
  .stage__bar-end:has(.transport:not([hidden])) { width: 100%; margin-left: 0; justify-content: space-between; }
  /* The title stays the stage's accessible name; the chip and status carry the narrow bar. */
  .stage__title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

/* Status line: two stacked spans roll inside a one-line window. */
.status-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--ink);
  font-size: var(--t-meta);
  font-weight: 500;
  line-height: var(--lh-meta);
}
/* both spans share one cell, so a roll is as wide as the wider label (width never tweens) */
.status-line__window {
  position: relative;
  display: inline-grid;
  grid-template-columns: minmax(0, max-content);
  min-width: 0;
  height: calc(var(--lh-meta) * 1em);
  overflow: hidden;
}
.status-line__window > span {
  grid-area: 1 / 1;
  display: block;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.status-line__window > span + span { transform: translateY(100%); }

/* Transport: play/pause, chapter ticks, a native range scrubber and a Plex timecode. */
.transport { display: flex; align-items: center; gap: 2px; }
.transport__toggle {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--ink);
  transition: transform var(--d-quick) var(--e-glide), background-color var(--d-quick) var(--e-glide);
}
.transport__toggle:active { transform: scale(.97); background: var(--sunken); transition-duration: var(--d-tap); }
.transport__toggle .glyph { width: 18px; height: 18px; }
.transport__toggle [data-icon="pause"], [data-playing="true"] .transport__toggle [data-icon="play"] { display: none; }
[data-playing="true"] .transport__toggle [data-icon="pause"] { display: block; }
.transport__chapters { display: flex; align-items: center; }
.transport__tick {
  position: relative;
  width: 24px;
  height: 32px;
  border: 0;
  padding: 0;
  background: transparent;
}
.transport__tick::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2px;
  height: 12px;
  border-radius: 1px;
  background: var(--ink-3);
  transform: translate(-50%, -50%);
  transition: background-color var(--d-quick) var(--e-glide), height var(--d-quick) var(--e-glide);
}
.transport__tick[aria-current="step"]::before { background: var(--ink); height: 16px; }
.transport__tick:active::before { background: var(--ink); height: 9px; transition-duration: var(--d-tap); }
@media (hover: hover) and (pointer: fine) {
  .transport__toggle:hover { background: var(--sunken); }
  .transport__tick:hover::before { background: var(--ink-2); }
}
/* the scrubber in the palette in every engine (--p, the fill, comes from motion.js) */
.transport__scrub {
  --p: 100%;
  -webkit-appearance: none;
  appearance: none;
  width: clamp(64px, 12cqi, 140px);
  height: 24px;
  margin: 0 6px;
  padding: 0;
  background: transparent;
  cursor: pointer;
}
.transport__scrub::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(var(--ink), var(--ink)) 0 0 / var(--p) 100% no-repeat, var(--line-strong);
}
.transport__scrub::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  margin-top: -4px;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 2px var(--card);
}
.transport__scrub::-moz-range-track { height: 4px; border-radius: 2px; background: var(--line-strong); }
.transport__scrub::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--ink); }
.transport__scrub::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 2px var(--card); }
@media (forced-colors: active) {
  .transport__scrub { forced-color-adjust: none; }
  .transport__scrub::-webkit-slider-runnable-track { background: linear-gradient(Highlight, Highlight) 0 0 / var(--p) 100% no-repeat, GrayText; }
  .transport__scrub::-webkit-slider-thumb { background: ButtonText; box-shadow: 0 0 0 2px Canvas; }
  .transport__scrub::-moz-range-track { background: GrayText; }
  .transport__scrub::-moz-range-progress { background: Highlight; }
  .transport__scrub::-moz-range-thumb { background: ButtonText; box-shadow: 0 0 0 2px Canvas; }
  .transport__tick::before { forced-color-adjust: none; background: GrayText; }
  .transport__tick[aria-current="step"]::before { background: Highlight; }
}
.transport__time { min-width: 7ch; color: var(--ink-3); text-align: right; }
.transport__resume { margin-left: 4px; }
[data-mode="manual"] .transport__resume:not([hidden]) { display: inline-flex; }

/* ---------- Paper, ticket, stamp ---------- */
.paper {
  position: relative;
  background: var(--card);
  border-radius: var(--r-md);
  box-shadow: var(--sh-2);
  padding: var(--s-5);
}
.paper--flat { box-shadow: var(--sh-1), inset 0 0 0 1px var(--line); }
.paper__label { color: var(--ink-3); font-size: var(--t-meta); font-weight: 500; line-height: var(--lh-meta); }
.ticket {
  --notch: 9px;
  position: relative;
  background: var(--card);
  border-radius: var(--r-md);
  box-shadow: var(--sh-1);
  -webkit-mask: radial-gradient(var(--notch) at 0 50%, transparent 98%, black) left / 51% 100% no-repeat,
                radial-gradient(var(--notch) at 100% 50%, transparent 98%, black) right / 51% 100% no-repeat;
  mask: radial-gradient(var(--notch) at 0 50%, transparent 98%, black) left / 51% 100% no-repeat,
        radial-gradient(var(--notch) at 100% 50%, transparent 98%, black) right / 51% 100% no-repeat;
}
.stamp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px 6px 8px;
  border: 2px solid var(--rust);
  border-radius: var(--r-sm);
  color: var(--rust-ink);
  font-size: var(--t-meta);
  font-weight: 600;
  line-height: 1;
  background: var(--card);
}
.stamp .glyph { width: 16px; height: 16px; }

/* ---------- Check rows: a glyph, a label and a state word. Colour never carries meaning alone. ---------- */
.checks { list-style: none; margin: 0; padding: 0; display: grid; }
.check {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
  padding: 10px 0;
  font-size: var(--t-small);
  line-height: var(--lh-small);
}
.check + .check { border-top: 1px solid var(--line); }
.check__glyph { width: 20px; height: 20px; color: var(--slate); margin-top: 1px; }
.check[data-state="noted"] .check__glyph { color: var(--ink-3); }
.check__state { color: var(--ink-3); font-size: var(--t-meta); font-weight: 500; line-height: 1.6; }

/* ---------- Cable: Winch's connector language ---------- */
.cable { overflow: visible; }
.cable path, .cable line {
  fill: none;
  stroke: var(--slate);
  stroke-width: 1.5;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.cable-port {
  width: 10px;
  height: 10px;
  border-radius: var(--r-round);
  background: var(--card);
  box-shadow: inset 0 0 0 1.5px var(--slate);
}

/* ---------- Segmented control (a real radio group) ---------- */
.segmented {
  display: inline-flex;
  gap: 2px;
  margin: 0;
  padding: 3px;
  border: 0;
  border-radius: var(--r-sm);
  background: var(--sunken);
}
.segmented legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.segmented label { position: relative; display: block; }
.segmented input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.segmented span {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 6px;
  color: var(--ink-2);
  font-size: var(--t-meta);
  font-weight: 500;
  white-space: nowrap;
  transition: background-color var(--d-roll) var(--e-roll), color var(--d-roll) var(--e-roll), box-shadow var(--d-roll) var(--e-roll), transform var(--d-quick) var(--e-glide);
}
/* the selected option's 2 px ink bar carries the state (never rust) */
.segmented input:checked + span { background: var(--card); color: var(--ink); box-shadow: var(--sh-1); }
.segmented input:checked + span::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 4px;
  height: 2px;
  border-radius: 1px;
  background: var(--ink);
}
.segmented input:active + span { transform: scale(.97); transition-duration: var(--d-tap); }
.segmented input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
@media (forced-colors: active) {
  .segmented input:checked + span { outline: 2px solid Highlight; outline-offset: -2px; }
}

/* ---------- Disclosure (FAQ): measured height through interpolate-size ---------- */
.disclosure { border-bottom: 1px solid var(--line); }
.disclosure:first-child { border-top: 1px solid var(--line); }
.disclosure summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  min-height: 64px;
  padding: var(--s-4) 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 1.08rem + .19vw, 1.25rem);
  font-weight: var(--wght-heading);
  font-stretch: var(--wdth-heading);
  letter-spacing: var(--tr-h3);
  line-height: 1.3;
  border-radius: var(--r-xs);
}
.disclosure summary::-webkit-details-marker { display: none; }
.disclosure summary:active { color: var(--ink-2); }
.disclosure summary:active .disclosure__icon { scale: .8; transition-duration: var(--d-roll), var(--d-tap); }
.disclosure__icon { position: relative; width: 16px; height: 16px; flex: none; color: var(--ink-2); transition: transform var(--d-roll) var(--e-settle), scale var(--d-quick) var(--e-glide); }
.disclosure__icon::before, .disclosure__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 1.5px;
  border-radius: 1px;
  background: currentColor;
  transform: translate(-50%, -50%);
}
.disclosure__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.disclosure[open] .disclosure__icon { transform: rotate(45deg); }
.disclosure__body { padding: 0 0 var(--s-5); color: var(--ink-2); max-width: 62ch; }
@supports (interpolate-size: allow-keywords) {
  html { interpolate-size: allow-keywords; }
  .disclosure::details-content {
    block-size: 0;
    overflow: clip;
    transition: block-size 280ms var(--e-settle), content-visibility 280ms allow-discrete;
  }
  .disclosure[open]::details-content { block-size: auto; }
  html[data-motion="reduced"] .disclosure::details-content { transition: none; }
}
@media (prefers-reduced-motion: reduce) { .disclosure::details-content { transition: none; } }
/* elsewhere site.js animates the height */
.disclosure.is-sizing { overflow: clip; }
.disclosure.is-closing .disclosure__icon { transform: none; }
@media (hover: hover) and (pointer: fine) {
  .disclosure summary:hover .disclosure__icon { color: var(--ink); }
}

/* ---------- Form fields ---------- */
.field { display: grid; gap: 8px; align-content: start; }
.field label, .field__label { color: var(--ink); font-size: var(--t-small); font-weight: 500; line-height: 1.4; }
.field__optional { color: var(--ink-3); font-weight: 400; }
.input, .select, .textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--ink-4);
  border-radius: var(--r-sm);
  background: var(--card);
  color: var(--ink);
  font-size: var(--t-body);
  line-height: 1.4;
  transition: border-color var(--d-quick) var(--e-glide), box-shadow var(--d-quick) var(--e-glide);
}
.textarea { min-height: 168px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--ink-3); opacity: 1; }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-color: var(--ink); }
.input:user-invalid, .textarea:user-invalid { border-color: var(--rust-ink); }
@media (hover: hover) and (pointer: fine) {
  .input:hover, .select:hover, .textarea:hover { border-color: var(--ink-2); }
}
.select-wrap { position: relative; }
.select { appearance: none; padding-right: 44px; cursor: pointer; }
.select-wrap::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 1.5px solid var(--ink-2);
  border-bottom: 1.5px solid var(--ink-2);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

/* ---------- Close (static ink version; scenes/close.css may extend it) ---------- */
.close {
  position: relative;
  background: var(--ink);
  color: var(--chalk);
  padding-block: calc(var(--s-section) * .8);
}
.close__grid { display: grid; gap: var(--s-7); align-items: center; }
@media (min-width: 1024px) {
  .close__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--grid-gap); }
  .close__copy { grid-column: 1 / span 6; }
  .close__card { grid-column: 8 / span 5; }
}
.close__title { max-width: 16ch; }
.close__lead { margin-top: var(--s-5); color: var(--on-dark-2); font-size: var(--t-lead); line-height: var(--lh-lead); max-width: 46ch; }
.close__email { margin-top: var(--s-5); color: var(--on-dark-2); font-size: var(--t-small); }
.close__email a { color: var(--chalk); text-decoration-color: var(--dark-line-active); text-underline-offset: .22em; text-decoration-thickness: 1px; }
.close__card {
  position: relative;
  padding: var(--s-5) var(--s-5) var(--s-4);
  border-radius: var(--r-md);
  background: var(--card);
  color: var(--ink);
  box-shadow: var(--sh-dark);
}
.close__examples { list-style: none; margin: var(--s-4) 0 0; padding: 0; display: grid; }
.close__example {
  padding: var(--s-4) 0;
  border-top: 1px solid var(--line);
  font-size: var(--t-lead);
  line-height: 1.45;
  letter-spacing: var(--tr-lead);
  color: var(--ink);
}

/* ---------- Footer (ink) ---------- */
.site-footer {
  background: var(--ink);
  color: var(--chalk);
  border-top: 1px solid var(--dark-line);
}
.close + .site-footer, main:has(> .close:last-child) + .site-footer { border-top-color: var(--dark-line); }
.site-footer__top {
  display: grid;
  gap: var(--s-7);
  padding-block: var(--s-7) var(--s-6);
}
@media (min-width: 1024px) {
  .site-footer__top { align-items: start; }
}
.site-footer__home { display: inline-flex; border-radius: var(--r-xs); }
.site-footer__tagline {
  margin-top: var(--s-5);
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.33rem + .7vw, 2rem);
  line-height: 1.12;
  letter-spacing: var(--tr-h2);
  font-weight: var(--wght-heading);
  font-stretch: var(--wdth-heading);
  max-width: 18ch;
  text-wrap: balance;
}
.site-footer__links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6) var(--grid-gap); }
@media (max-width: 359.98px) { .site-footer__links { grid-template-columns: auto auto; justify-content: space-between; } }
.site-footer__group h2 { color: var(--on-dark-3); font-family: var(--font-body); font-size: var(--t-meta); font-weight: 500; letter-spacing: var(--tr-meta); line-height: var(--lh-meta); }
.site-footer__group ul { list-style: none; margin: var(--s-3) 0 0; padding: 0; display: grid; }
.site-footer__group a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--chalk);
  font-size: var(--t-small);
  text-decoration: none;
  border-radius: var(--r-xs);
}
@media (hover: hover) and (pointer: fine) {
  .site-footer__group a:hover .roll > span, .site-footer__group a:hover .roll::after { transform: translateY(-100%); }
}
.site-footer__base {
  display: grid;
  gap: var(--s-4);
  padding-block: var(--s-5) var(--s-7);
  border-top: 1px solid var(--dark-line);
  color: var(--on-dark-2);
  font-size: var(--t-meta);
  line-height: var(--lh-meta);
}
@media (min-width: 768px) {
  .site-footer__base { grid-template-columns: auto 1fr auto; align-items: center; column-gap: var(--s-6); }
}
.site-footer__legal { color: var(--on-dark-3); max-width: 70ch; }
.site-footer__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px var(--s-5); }
.site-footer__meta a { color: var(--on-dark-2); text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; border-radius: var(--r-xs); }
@media (hover: hover) and (pointer: fine) { .site-footer__meta a:hover { color: var(--chalk); } }
.motion-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 12px 0 10px;
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--chalk);
  font-size: var(--t-meta);
  font-weight: 500;
  box-shadow: inset 0 0 0 1px var(--dark-line-hover);
  transition: box-shadow var(--d-quick) var(--e-glide), transform var(--d-quick) var(--e-glide);
}
.motion-toggle__switch {
  position: relative;
  width: 26px;
  height: 16px;
  border-radius: var(--r-round);
  background: var(--instrument-raised);
  box-shadow: inset 0 0 0 1px var(--dark-line-active);
  transition: background-color var(--d-quick) var(--e-glide);
}
.motion-toggle__switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 10px;
  height: 10px;
  border-radius: var(--r-round);
  background: var(--on-dark-2);
  transition: transform var(--d-roll) var(--e-settle), background-color var(--d-quick) var(--e-glide);
}
.motion-toggle[aria-pressed="true"] .motion-toggle__switch { background: var(--chalk); }
.motion-toggle[aria-pressed="true"] .motion-toggle__switch::after { transform: translateX(10px); background: var(--ink); }
.motion-toggle[disabled] { opacity: .7; cursor: default; }
@media (forced-colors: active) {
  .motion-toggle { border: 1px solid ButtonText; }
  .motion-toggle__switch { forced-color-adjust: none; background: Canvas; border: 1px solid ButtonText; box-shadow: none; }
  .motion-toggle__switch::after { top: 2px; left: 2px; background: ButtonText; }
  .motion-toggle[aria-pressed="true"] .motion-toggle__switch { background: Canvas; border-color: Highlight; }
  .motion-toggle[aria-pressed="true"] .motion-toggle__switch::after { background: Highlight; }
  .motion-toggle[disabled] .motion-toggle__switch { border-color: GrayText; }
  .motion-toggle[disabled] .motion-toggle__switch::after { background: GrayText; }
}
@media (hover: hover) and (pointer: fine) { .motion-toggle:hover { box-shadow: inset 0 0 0 1px var(--dark-line-active); } }
/* Controls that need JS are not offered without it (the page says how to email instead). */
html:not(.js) .motion-toggle, html:not(.js) [data-brief-prepare], html:not(.js) .brief-form__help,
html:not(.js) [data-copy-email], html:not(.js) .swatch__action { display: none; }

/* ---------- Scroll entrances, once only: motion.js sets .reveal-pending only after the first scroll and only
   off screen, then .is-in at 85% of the viewport. Travel: text .45em, row 12 px, card 24 px, stage 48 px. ---------- */
@keyframes winch-reveal { from { opacity: 0; transform: translate3d(0, var(--reveal-y, 24px), 0); } }
.js[data-motion="full"] .reveal-pending[data-reveal]:not(.is-in) { opacity: 0; }
.js[data-motion="full"] .reveal-pending[data-reveal].is-in {
  animation: winch-reveal var(--reveal-d, var(--d-enter)) var(--e-settle) var(--reveal-delay, 0ms) backwards;
}
/* focus inside a pending block shows it at once (.reveal-now), with a :focus-within backstop */
.js[data-motion="full"] .reveal-pending[data-reveal].is-in.reveal-now { animation: none; }
.js[data-motion="full"] .reveal-pending[data-reveal]:not(.is-in):focus-within { opacity: 1; }
[data-reveal="text"] { --reveal-y: .45em; --reveal-d: 560ms; }
[data-reveal="row"] { --reveal-y: 12px; --reveal-d: var(--d-move); }
[data-reveal="card"] { --reveal-y: 24px; }
[data-reveal="stage"] { --reveal-y: 48px; --reveal-d: var(--d-scene); }
[data-reveal="fade"] { --reveal-y: 0px; --reveal-d: var(--d-move); }
.motion-failsafe .reveal-pending { opacity: 1 !important; animation: none !important; }

/* ---------- Load entrances (CSS only): [data-enter] fades and rises chips and actions, [data-rise] is transform
   only, so headings and leads paint on the first frame. ---------- */
@keyframes winch-enter { from { opacity: 0; transform: translate3d(0, var(--enter-y, 8px), 0); } }
@keyframes winch-rise { from { transform: translate3d(0, .5em, 0); } }
@keyframes winch-rise-soft { from { transform: translate3d(0, .4em, 0); } }
.js[data-motion="full"] [data-enter] { animation: winch-enter var(--d-move) var(--e-settle) var(--enter-delay, 0ms) backwards; }
.js[data-motion="full"] [data-rise] { animation: winch-rise-soft 560ms var(--e-glide) var(--rise-delay, 0ms) backwards; }
.rise-line { display: block; }
.rise-w { display: inline-block; overflow: clip; padding-block: .14em; margin-block: -.14em; vertical-align: top; }
.rise-w > span { display: inline-block; }
.js[data-motion="full"] .rise-w > span {
  animation: winch-rise 900ms var(--e-rise) backwards;
  animation-delay: calc(80ms + var(--i, 0) * 30ms + var(--l, 0) * 80ms);
}
/* The home promise travels as two complete lines. Its glyphs never enter a clip mask. */
.hero__title .rise-w { overflow: visible; padding-block: .3em; margin-block: -.3em; }
.js[data-motion="full"] .hero__title .rise-w > span { animation: none; }
.js[data-motion="full"] .hero__title .rise-line {
  animation: winch-rise-soft var(--d-enter) var(--e-rise) backwards;
  animation-delay: calc(var(--l, 0) * var(--d-tap));
}
.js[data-motion="full"] .hero--home [data-enter] {
  animation-name: winch-rise-soft;
  animation-delay: 0ms !important;
}
.js[data-motion="full"] .hero__lead { animation-delay: var(--d-tap) !important; }
@media print {
  .hero__title .rise-line { animation: none !important; transform: none !important; }
  .reveal-pending, [data-enter], [data-rise], .rise-w > span { opacity: 1 !important; animation: none !important; transform: none !important; }
  .site-header { position: static; }
  .site-footer__mechanism, .menu-toggle, .motion-toggle, [data-transport], .tline__rail, .pcmp__handle, .pcmp__range, .pfilm__toggle { display: none !important; }
  .on-ink, .whynow, .close, .site-footer, .glance, .tcard--ink, .tline__tag, .pcmp__tag, .btn, .chip { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .glance, .tline, .pcmp, .founder, .wnum { break-inside: avoid; }
  h2, h3 { break-after: avoid; }
}

/* A deferred picture: gone with no JS, where its noscript copy stands in, and never a broken-image icon while it waits for its src. */
html:not(.js) img[data-deferred-src] { display: none; }
img[data-deferred-src]:not([src]) { visibility: hidden; }

/* ---------- Reduced motion (OS setting or the session toggle) ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
}
html[data-motion="reduced"] *, html[data-motion="reduced"] *::before, html[data-motion="reduced"] *::after {
  animation-duration: 1ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 1ms !important;
  scroll-behavior: auto !important;
}

/* ---------- Cross-document view transitions: a fade through the paper, skipped when motion is reduced ----------
   The old page clears in 140 ms and the new one comes up from 100 ms over 220 ms, so two pages are never on screen at
   strength together (a crossfade showed both headlines at once), and a change ends at 320 ms, when v24's did (clicks
   are ignored until it does). The header holds still. Home's first arrival in a session
   is its own entrance: entry.js marks it .entry-vt, the old page dissolves into Home's empty paper, and the haul
   starts once the dissolve is over. */
@view-transition { navigation: auto; }
html { background: var(--chalk); }
::view-transition-old(root) { animation: winch-vt-out 140ms var(--e-glide) both; }
::view-transition-new(root) { animation: winch-vt-in 220ms var(--e-glide) 100ms both; }
html.entry-vt::view-transition-old(root) { animation: winch-vt-out 160ms linear both; }
html.entry-vt::view-transition-new(root) { animation: winch-vt-in 160ms linear both; }
/* The page fills the window before and after, so its box has nothing to animate; left at the browser's default
   250 ms it outlasted Home's 160 ms dissolve and kept Home's paper empty after it. */
::view-transition-group(root) { animation: none; }
::view-transition-group(site-header) { animation: none; }
/* A Writing cover or title with no partner on the other page goes and comes with its own page (writing.css times
   the morph when both pages have it). */
::view-transition-old(*.post-cover):only-child, ::view-transition-old(*.post-title):only-child { animation: winch-vt-out 140ms var(--e-glide) both; }
::view-transition-new(*.post-cover):only-child, ::view-transition-new(*.post-title):only-child { animation: winch-vt-in 220ms var(--e-glide) 100ms both; }
html.entry-vt::view-transition-old(*.post-cover):only-child, html.entry-vt::view-transition-old(*.post-title):only-child { animation: winch-vt-out 160ms linear both; }
/* Back to a page left with the menu open: it closes at once, without the icon turning from X to ≡ (site.js). */
html.menu-snap .menu-toggle, html.menu-snap .menu-toggle__icon i { transition: none !important; }
@keyframes winch-vt-out { to { opacity: 0; } }
@keyframes winch-vt-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}
html[data-motion="reduced"]::view-transition-group(*),
html[data-motion="reduced"]::view-transition-old(*),
html[data-motion="reduced"]::view-transition-new(*) { animation: none !important; }

.nb { white-space: nowrap; }
.glance__label, .tcard__cite, .tcard__quote, .deal__point > span, .page-note, .pull__cite { text-wrap: pretty; }
.pstat__label { text-wrap: balance; }

/* One paper material and one acceptance mark, shared with the later Writing section. */
.slip { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); }
.accepted-mark { position: relative; display: inline-grid; place-items: center; color: var(--pass); padding: 8px 18px; }
.accepted-mark__circle { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: var(--accepted-stroke); overflow: visible; pointer-events: none; }

/* ---------- Dev-build marker for unfinished copy ---------- */
.dev-missing {
  padding: 0 .2em;
  border-radius: 3px;
  outline: 1px dashed var(--rust-ink);
  background: color-mix(in oklab, var(--rust) 8%, transparent);
  color: var(--rust-ink);
  font-family: var(--font-mono);
  font-size: .7em;
  letter-spacing: 0;
  font-weight: 400;
  vertical-align: middle;
}

/* A complete hero enters together; partial streamed markup never waits at an offset. */
html.entry-wait .hero--home { visibility: hidden; }
html.entry-wait .hero--home * { visibility: hidden !important; }
html.js[data-motion="full"] .hero--home .hero__title .rise-line,
html.js[data-motion="full"] .hero--home [data-enter],
html.js[data-motion="full"] .hero--home [data-rise] { animation: none; }
html:is(.entry-wait,.entry-play) .hero--home :is(.rise-line,[data-enter],[data-rise]) { will-change: transform; }
html.js[data-motion="full"].entry-play.entry-text .hero--home .hero__title .rise-line { animation: winch-rise-home 560ms var(--e-rise) calc(var(--l,0) * 70ms) backwards; }
html.js[data-motion="full"].entry-play.entry-text .hero--home :is([data-enter],[data-rise]) { animation: winch-rise-soft-home 560ms var(--e-glide) 140ms both; animation-delay: 140ms !important; }
@keyframes winch-rise-soft-home { from { transform: translate3d(0,8px,0); } to { transform: translate3d(0,0,0); } }
@keyframes winch-rise-home { from { transform: translate3d(0,24px,0); } to { transform: translate3d(0,0,0); } }
@media (max-width: 767.98px) { @keyframes winch-rise-home { from { transform: translate3d(0,16px,0); } } }
html:is(.entry-skipped,[data-motion="reduced"]) .hero--home :is(.rise-line,[data-enter],[data-rise]) { animation: none !important; transform: none !important; }

/* Narrow phones (320 to 359 px): the toggle keeps its size and the word Menu stays its accessible name only. */
.menu-toggle { flex: none; }
@media (max-width: 359.98px) {
  .js .site-header__inner { gap: var(--s-2); }
  .js .menu-toggle { gap: 0; }
  .js .menu-toggle [data-menu-label] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
