/* Rivoq Labs — "The Issue". Home page proposal.
   A magazine issue: a living cover, then inside pages that each do one job.
   Type: League Gothic (cover lines), Libre Franklin (captions, controls), Source Serif 4 (reading). */

:root {
  --night: #0e1726;      /* dusk navy: film pages, the bar, the back cover */
  --night-2: #18253b;
  --paper: #f3f2ee;      /* reading pages */
  --paper-2: #e4e2db;
  --ink: #111318;
  --ink-2: #3f434c;
  --ink-3: #5d626c;
  --amber: #f5b642;      /* display accent, one full colour page */
  --red: #b5121b;        /* the deal: price, rate card, primary action */
  --red-hover: #8f0d15;
  --mist: #c9d3e0;       /* secondary text on night */
  --mist-2: #93a1b5;     /* tertiary text on night */

  --gothic: 'League Gothic', 'Arial Narrow', Impact, sans-serif;
  --sans: 'Libre Franklin', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --serif: 'Source Serif 4', 'Iowan Old Style', Georgia, serif;

  --m: clamp(16px, 3.4vw, 56px);      /* page margin */
  --g: clamp(12px, 1.7vw, 24px);      /* column gutter */
  --space: clamp(72px, 9vw, 152px);   /* page padding, top and bottom */
  --bar: 60px;
  --r-frame: clamp(10px, 1.1vw, 16px);
  --r-box: 8px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar) + 16px); scrollbar-color: #5a6578 var(--night); }
body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--amber); color: var(--ink); }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1.5px; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
.page-amber :focus-visible, .card :focus-visible { outline-color: var(--ink); }

.skip { position: absolute; left: 12px; top: -80px; z-index: 100; padding: 12px 16px; background: var(--amber); color: var(--ink); font-weight: 600; border-radius: var(--r-box); }
.skip:focus { top: 12px; }

.wrap { max-width: 1760px; margin-inline: auto; padding-inline: var(--m); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); }

/* ── Type voices ───────────────────────────── */
.gothic { font-family: var(--gothic); font-weight: var(--display-weight); text-transform: uppercase; letter-spacing: var(--display-tracking); }
.title { font-family: var(--gothic); font-weight: var(--display-weight); text-transform: uppercase; font-size: calc((clamp(4.25rem, 11vw, 11.5rem)) * var(--display-scale)); line-height: max(.84, var(--display-lh)); letter-spacing: var(--display-tracking); }
.standfirst { font-family: var(--serif); font-size: clamp(1.1875rem, 1.7vw, 1.625rem); line-height: 1.4; text-wrap: pretty; }
.prose { font-family: var(--serif); font-size: clamp(1.0625rem, 1.25vw, 1.1875rem); line-height: 1.62; }
.prose p + p { margin-top: .9em; }
.note { font-size: 13px; line-height: 1.5; font-weight: 500; letter-spacing: .01em; }
.num { font-variant-numeric: tabular-nums; }

/* ── Buttons ───────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border: 0; border-radius: 999px;
  background: var(--red); color: #fff;
  font: var(--label-weight) 15px/1 var(--sans); letter-spacing: .005em; text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: background-color .2s, color .2s;
}
.btn:hover { background: var(--red-hover); }
.btn svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 1.8; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translate(2px, -2px); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--amber); color: var(--ink); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--night-2); }
.more { display: inline-flex; align-items: center; gap: 8px; font: var(--label-weight) 15px/1.2 var(--sans); text-decoration: underline; text-decoration-color: currentColor; }
.more:hover { text-decoration-color: var(--amber); }
.page-amber .more:hover, .page-paper .more:hover { text-decoration-color: var(--red); }

/* ── Top bar ───────────────────────────────── */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 60; height: var(--bar);
  display: flex; align-items: center; gap: 20px; padding-inline: var(--m);
  color: #fff; transition: background-color .3s;
}
.top.is-inside, .top.is-open { background: var(--night); }
.top-logo { display: flex; align-items: center; text-decoration: none; }
.top-logo img { height: 30px; width: auto; }
.top-date { font-size: 13px; font-weight: 500; color: #e9eef5; padding-left: 16px; border-left: 1px solid rgba(255, 255, 255, .4); white-space: nowrap; }
.top-date[hidden] { display: none; }
.top-nav { margin-left: auto; display: flex; gap: clamp(16px, 2.2vw, 34px); font-size: 15px; font-weight: 500; }
.top-nav a { text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; transition: border-color .2s; }
.top-nav a:hover, .top-nav a[aria-current="page"] { border-color: var(--amber); }
.top .btn { min-height: 38px; padding: 0 16px; font-size: 14px; background: transparent; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .8); transition: background-color .25s, box-shadow .25s, color .2s; }
.top .btn:hover { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px #fff; }
.top.is-inside .btn { background: var(--red); color: #fff; box-shadow: none; }
.top.is-inside .btn:hover { background: var(--red-hover); }
.menu-btn { display: none; margin-left: auto; min-height: 38px; padding: 0 16px; border: 1.5px solid rgba(255, 255, 255, .7); border-radius: 999px; background: none; color: #fff; font: var(--label-weight) 14px/1 var(--sans); cursor: pointer; }
.top.is-inside .menu-btn { margin-left: 0; }

/* ── The cover ─────────────────────────────── */
.cover {
  --u: min(1vw, 1.6vh);            /* the cover scales as one object */
  position: sticky; top: 0; z-index: 0;
  height: 100vh; height: 100svh; min-height: 600px;
  overflow: hidden; background: var(--night); color: #fff;
}
.cover-media, .cover-shade { position: absolute; inset: 0; }
.cover-media img, .cover-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.cover-media video { opacity: 0; transition: opacity 1.2s ease; }
.cover-media video.is-live { opacity: 1; }
.cover-shade {
  background:
    linear-gradient(270deg, rgba(9, 15, 26, .78) 0%, rgba(9, 15, 26, .64) 29%, rgba(9, 15, 26, 0) 44%),
    linear-gradient(180deg, rgba(9, 15, 26, .55) 0%, rgba(9, 15, 26, 0) 22%, rgba(9, 15, 26, 0) 68%, rgba(9, 15, 26, .84) 100%);
}
.cover h1 { font-family: var(--gothic); font-weight: var(--display-weight); font-size: calc((calc(var(--u) * 9.2)) * var(--display-scale)); line-height: max(.87, var(--display-lh)); text-transform: uppercase; letter-spacing: var(--display-tracking); }
.cover-line { position: absolute; top: calc(var(--u) * 7.4); }
.cover-line > span { display: block; overflow: hidden; }
.cover-line > span > span { display: block; }
.cover-line.a { left: var(--m); }
.cover-line.b { left: 70.6%; color: var(--amber); }
.cover-side { position: absolute; left: 70.6%; right: var(--m); top: calc(var(--u) * 25); bottom: calc(var(--u) * 3); display: flex; flex-direction: column; }
.cover-stand { font-family: var(--serif); font-size: max(15px, calc(var(--u) * 1.2)); line-height: 1.45; text-wrap: pretty; }
.cover-links { margin-top: calc(var(--u) * 1.8); display: grid; gap: calc(var(--u) * 1); }
.cover-links a { display: block; text-decoration: none; }
.cover-links strong { display: block; font-family: var(--gothic); font-weight: var(--display-weight); text-transform: uppercase; font-size: calc((max(24px, calc(var(--u) * 2.45))) * var(--display-scale)); line-height: max(1, var(--display-lh)); letter-spacing: var(--display-tracking); transition: color .2s; }
.cover-links span { display: block; margin-top: 2px; font-size: max(13px, calc(var(--u) * .98)); color: #e9eef5; }
.cover-links a:hover strong { color: var(--amber); }
.price {
  margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: calc(var(--u) * 1.1) calc(var(--u) * 1.4); background: var(--red); border-radius: var(--r-box);
}
.price small { display: block; font-size: max(12px, calc(var(--u) * .92)); font-weight: 500; white-space: nowrap; }
.price b { display: block; margin-top: calc(var(--u) * .3); font-family: var(--gothic); font-weight: var(--display-weight); font-size: calc((calc(var(--u) * 5.3)) * var(--display-scale)); line-height: max(.88, var(--display-lh)); white-space: nowrap; letter-spacing: var(--display-tracking);}
.cover-foot { position: absolute; left: var(--m); bottom: calc(var(--u) * 2.6); display: flex; align-items: center; gap: 14px; font-size: 13px; }
.round { display: grid; place-items: center; width: 40px; height: 40px; border: 1.5px solid rgba(255, 255, 255, .8); border-radius: 50%; background: rgba(9, 15, 26, .35); color: #fff; cursor: pointer; transition: background-color .2s, border-color .2s; }
.round:hover { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.round svg { width: 14px; height: 14px; fill: currentColor; }
.cover-credit { text-decoration: none; }
.cover-credit u { text-decoration-thickness: 1.5px; }
.cover-credit:hover u { text-decoration-color: var(--amber); }

/* The cover is set once, line by line, then stays still. */
@keyframes set-line { from { transform: translateY(104%); } to { transform: none; } }
@keyframes set-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.cover-line > span > span { animation: set-line .95s var(--ease) both; }
.cover-line.a > span:nth-child(2) > span { animation-delay: .07s; }
.cover-line.a > span:nth-child(3) > span { animation-delay: .14s; }
.cover-line.b > span:nth-child(1) > span { animation-delay: .26s; }
.cover-line.b > span:nth-child(2) > span { animation-delay: .33s; }
.cover-stand, .cover-links, .price, .cover-foot { animation: set-in .9s var(--ease) both; }
.cover-stand { animation-delay: .5s; }
.cover-links { animation-delay: .6s; }
.price { animation-delay: .72s; }
.cover-foot { animation-delay: .85s; }

/* ── Inside pages ──────────────────────────── */
.inside { position: relative; z-index: 2; box-shadow: 0 -28px 70px rgba(4, 8, 14, 0); transition: box-shadow .35s ease; }
.is-lifted .inside { box-shadow: 0 -28px 70px rgba(4, 8, 14, .5); }
.page { position: relative; padding-block: var(--space); }
.page-night { background: var(--night); color: #fff; }
.page-paper { background: var(--paper); color: var(--ink); }
.page-amber { background: var(--amber); color: var(--ink); }
.page-red { background: var(--red); color: #fff; }
.head { align-items: end; row-gap: 20px; margin-bottom: clamp(36px, 4.5vw, 72px); }
.head .title { grid-column: 1 / span 7; }
.head .standfirst { grid-column: 9 / -1; padding-bottom: .5em; }

/* Mobile-only contents strip (the cover lines move here on small screens) */
.contents { display: none; }

/* ── Films ─────────────────────────────────── */
.film {
  position: relative; display: block; width: 100%; padding: 0; border: 0;
  border-radius: var(--r-frame); overflow: hidden; isolation: isolate;
  background: var(--night-2); color: #fff; cursor: pointer; text-align: left;
}
.film img, .film video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film img { transition: transform 1.1s var(--ease); }
.film:hover img { transform: scale(1.03); }
.film video { opacity: 0; transition: opacity .45s ease; }
.film.is-playing video { opacity: 1; }
.film .chip {
  position: absolute; left: 14px; bottom: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px 8px 11px;
  border-radius: 999px; background: rgba(9, 15, 26, .82);
  font: var(--label-weight) 13px/1 var(--sans); font-variant-numeric: tabular-nums;
  transition: background-color .2s, color .2s;
}
.film .chip svg { width: 10px; height: 10px; fill: currentColor; }
.film:hover .chip { background: var(--amber); color: var(--ink); }

.feature { align-items: end; row-gap: 22px; }
.feature .film { aspect-ratio: 16 / 9; }
.feature h3 { font-family: var(--gothic); font-weight: var(--display-weight); text-transform: uppercase; font-size: calc((clamp(3rem, 5.4vw, 6rem)) * var(--display-scale)); line-height: max(.88, var(--display-lh)); letter-spacing: var(--display-tracking); }
.feature-copy { display: grid; gap: 14px; }
.feature-copy p { font-family: var(--serif); font-size: clamp(1.0625rem, 1.3vw, 1.25rem); line-height: 1.5; color: #fff; max-width: 34ch; text-wrap: pretty; }
.feature-copy .note { font-family: var(--sans); font-size: 13px; line-height: 1.5; color: var(--mist-2); }
.feature-lead .film { grid-column: 1 / span 9; }
.feature-lead .feature-copy { grid-column: 10 / -1; padding-bottom: 6px; }
.pair { margin-top: clamp(40px, 5vw, 80px); align-items: start; row-gap: 40px; }
.pair .feature { display: grid; gap: 20px; }
.pair .feature:nth-child(1) { grid-column: 1 / span 7; }
.pair .feature:nth-child(2) { grid-column: 8 / -1; margin-top: clamp(0px, 9vw, 150px); }
.pair h3 { font-size: clamp(2.5rem, 4.2vw, 4.5rem); }

.shorts { margin-top: clamp(56px, 7vw, 120px); }
.shorts-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: clamp(20px, 2.4vw, 36px); border-top: 4px solid #fff; padding-top: 18px; }
.shorts-head h3 { font-family: var(--gothic); font-weight: var(--display-weight); text-transform: uppercase; font-size: calc((clamp(2.5rem, 4.2vw, 4.5rem)) * var(--display-scale)); line-height: max(.9, var(--display-lh)); letter-spacing: var(--display-tracking);}
.shorts-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--g); }
.shorts-row .film { aspect-ratio: 9 / 16; }

/* ── The letter ────────────────────────────── */
.letter h2 { grid-column: 1 / span 9; font-family: var(--gothic); font-weight: var(--display-weight); text-transform: uppercase; font-size: calc((clamp(3rem, 6.6vw, 7rem)) * var(--display-scale)); line-height: max(.88, var(--display-lh)); letter-spacing: var(--display-tracking); text-wrap: balance; }
.letter h2 { grid-row: 1; }
.letter-body { grid-column: 1 / span 8; grid-row: 2; margin-top: clamp(28px, 3.4vw, 52px); columns: 2; column-gap: calc(var(--g) * 2); }
.letter-body p { break-inside: avoid; }
.letter-body p:first-child::first-letter { float: left; font-family: var(--gothic); font-size: calc((4.9em) * var(--dropcap-scale)); line-height: max(.78, var(--display-lh)); padding: .06em .1em 0 0; color: var(--red); font-weight: var(--display-weight); letter-spacing: var(--display-tracking);}
.letter-sign { margin-top: 1.4em; font-family: var(--sans); font-size: 14px; font-weight: var(--label-weight); color: var(--ink-2); }
.letter-fig { grid-column: 10 / -1; grid-row: 1 / span 2; align-self: start; }
.letter-fig img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-frame); background: var(--paper-2); }
.letter-fig figcaption { margin-top: 10px; color: var(--ink-3); }

.depts { margin-top: clamp(64px, 8vw, 128px); }
.depts-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; border-top: 4px solid var(--ink); padding-top: 18px; }
.depts-head h3 { font-family: var(--gothic); font-weight: var(--display-weight); text-transform: uppercase; font-size: calc((clamp(2.5rem, 4.2vw, 4.5rem)) * var(--display-scale)); line-height: max(.9, var(--display-lh)); letter-spacing: var(--display-tracking);}
.depts-head p { font-family: var(--serif); font-size: clamp(1.0625rem, 1.3vw, 1.25rem); color: var(--ink-2); max-width: 30ch; text-align: right; }
.dept { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); align-items: baseline; padding: clamp(18px, 2vw, 28px) 0; border-bottom: 1px solid rgba(17, 19, 24, .22); }
.depts-head + .dept { margin-top: clamp(20px, 2.4vw, 36px); border-top: 1px solid rgba(17, 19, 24, .22); }
.dept h4 { grid-column: 1 / span 5; margin: 0; font-family: var(--gothic); font-weight: var(--display-weight); text-transform: uppercase; font-size: calc((clamp(2rem, 3.2vw, 3.25rem)) * var(--display-scale)); line-height: max(.95, var(--display-lh)); letter-spacing: var(--display-tracking); }
.dept p { grid-column: 6 / span 3; font-family: var(--serif); font-size: clamp(1.0625rem, 1.25vw, 1.1875rem); line-height: 1.45; }
.dept ul { grid-column: 9 / -1; font-size: 14px; font-weight: 500; line-height: 1.6; color: var(--ink-2); }
.dept li { display: inline; }
.dept li + li::before { content: '  ·  '; white-space: pre; color: var(--ink-3); }
.dept.is-first h4 { color: var(--red); }

/* ── How it's made ─────────────────────────── */
.chart { border-top: 4px solid var(--ink); padding-top: 18px; }
.chart-title { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; font-weight: 600; }
.chart-title span { font-weight: 500; }
.chart-rows { margin-top: 18px; display: grid; gap: 14px; }
.chart-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 10fr); column-gap: var(--g); align-items: center; }
.chart-row > strong { font-weight: 600; line-height: 1.25; }
.track { position: relative; height: clamp(44px, 4.6vw, 64px); }
.bar, .bar-range { position: absolute; top: 0; bottom: 0; }
.bar { left: 0; width: var(--from); background: var(--ink); border-radius: 3px 0 0 3px; }
.bar-range { left: var(--from); width: calc(var(--to) - var(--from)); background: repeating-linear-gradient(135deg, var(--ink) 0 2.5px, transparent 2.5px 8px); border: 2.5px solid var(--ink); border-left: 0; border-radius: 0 3px 3px 0; }
.bar-label { position: absolute; top: 50%; left: calc(var(--to) + 14px); translate: 0 -50%; font-family: var(--gothic); text-transform: uppercase; font-size: calc((clamp(1.75rem, 2.6vw, 2.75rem)) * var(--display-scale)); line-height: max(1, var(--display-lh)); white-space: nowrap; font-weight: var(--display-weight); letter-spacing: var(--display-tracking);}
.bar-label.is-in { left: 16px; color: var(--amber); }
.axis { margin-left: calc((100% - var(--g)) * 2 / 12 + var(--g)); display: flex; justify-content: space-between; margin-top: 10px; padding-top: 8px; border-top: 1.5px solid var(--ink); font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; }

.steps { margin-top: clamp(56px, 7vw, 112px); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 32px var(--g); }
.steps li { border-top: 4px solid var(--ink); padding-top: 14px; display: grid; gap: 8px; align-content: start; }
.steps .n { font-family: var(--gothic); font-size: calc((clamp(3rem, 4.4vw, 4.75rem)) * var(--display-scale)); line-height: max(.85, var(--display-lh)); font-weight: var(--display-weight); letter-spacing: var(--display-tracking);}
.steps h3 { font-size: 18px; font-weight: 700; line-height: 1.25; }
.steps p { font-family: var(--serif); font-size: 16px; line-height: 1.5; }

.craft { margin-top: clamp(56px, 7vw, 112px); align-items: start; row-gap: 40px; }
.craft blockquote { grid-column: 1 / span 6; margin: 0; font-family: var(--gothic); text-transform: uppercase; font-size: calc((clamp(3rem, 6vw, 6.5rem)) * var(--display-scale)); line-height: max(.88, var(--display-lh)); letter-spacing: var(--display-tracking); text-wrap: balance; font-weight: var(--display-weight);}
.craft-notes { grid-column: 8 / -1; display: grid; gap: 28px; }
.craft-notes h3 { font-size: clamp(1.25rem, 1.6vw, 1.5rem); font-weight: 700; line-height: 1.2; margin-bottom: 8px; }

/* ── Letters (testimonials) ────────────────── */
.letters-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--g); }
.fpo { display: grid; align-content: space-between; gap: 32px; min-height: 250px; padding: clamp(20px, 2.2vw, 30px); border: 2px dashed rgba(17, 19, 24, .5); border-radius: var(--r-frame); }
.fpo-tag { justify-self: start; padding: 5px 10px; background: var(--ink); color: var(--paper); font-size: 12px; font-weight: 700; letter-spacing: .04em; border-radius: 4px; }
.fpo p { font-family: var(--serif); font-size: clamp(1.25rem, 1.9vw, 1.75rem); line-height: 1.3; color: var(--ink-2); }
.fpo footer { font-size: 14px; font-weight: 600; color: var(--ink-3); }

/* ── Rate card ─────────────────────────────── */
.rates { align-items: start; row-gap: 40px; }
.rates-left { grid-column: 1 / span 6; position: sticky; top: calc(var(--bar) + 28px); }
.rates-left h2 { font-family: var(--gothic); font-weight: var(--display-weight); text-transform: uppercase; font-size: calc((clamp(2.5rem, 4.2vw, 4.5rem)) * var(--display-scale)); line-height: max(.9, var(--display-lh)); letter-spacing: var(--display-tracking);}
.big-price { margin-top: clamp(8px, 1vw, 16px); font-family: var(--gothic); font-size: calc((clamp(11rem, 30vw, 30rem)) * var(--price-scale)); line-height: max(.78, var(--display-lh)); letter-spacing: var(--display-tracking); font-weight: var(--display-weight);}
.big-price + p { margin-top: clamp(12px, 1.4vw, 22px); font-family: var(--serif); font-size: clamp(1.25rem, 1.9vw, 1.75rem); line-height: 1.3; }
.rates-right { grid-column: 8 / -1; display: grid; gap: clamp(24px, 2.6vw, 40px); }
.rates-right .standfirst { max-width: 36ch; }
.terms { border-top: 4px solid #fff; }
.terms div { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: var(--g); padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .38); }
.terms dt { font-size: 14px; font-weight: 600; padding-top: 3px; }
.terms dd { font-family: var(--serif); font-size: clamp(1.0625rem, 1.25vw, 1.1875rem); line-height: 1.45; }

/* ── Q&A ───────────────────────────────────── */
.qa-grid { align-items: start; row-gap: 32px; }
.qa-side { grid-column: 1 / span 4; position: sticky; top: calc(var(--bar) + 24px); display: grid; gap: clamp(14px, 1.6vw, 24px); }
.qa-side .standfirst { color: var(--mist); max-width: 22ch; }
.qa { grid-column: 6 / -1; border-top: 4px solid #fff; }
.qa details { border-bottom: 1px solid rgba(255, 255, 255, .26); }
.qa summary { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 20px 0; font-size: clamp(1.125rem, 1.5vw, 1.375rem); font-weight: 600; line-height: 1.3; cursor: pointer; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--amber); }
.qa summary::after { content: ''; flex: none; width: 11px; height: 11px; margin-right: 4px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); transition: transform .35s var(--ease); }
.qa details[open] summary::after { transform: translateY(3px) rotate(-135deg); }
.qa .answer { padding: 0 0 24px; max-width: 64ch; color: var(--mist); }
.qa-more { grid-column: 6 / -1; }

/* ── Insights ──────────────────────────────── */
.posts { row-gap: clamp(28px, 3vw, 44px); align-items: start; }
.post { text-decoration: none; }
.post img { width: 100%; object-fit: cover; border-radius: var(--r-frame); background: var(--paper-2); }
.post .note { font-family: var(--sans); font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.post h3 { margin-top: 8px; font-family: var(--serif); font-weight: 600; line-height: 1.16; text-wrap: balance; transition: color .2s; }
.post:hover h3 { color: var(--red); }
.post h3 + p { margin-top: 10px; font-family: var(--serif); line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.post-lead { grid-column: 1 / span 7; display: block; }
.post-lead img { aspect-ratio: 16 / 9; margin-bottom: 18px; }
.post-lead h3 { font-size: clamp(1.75rem, 2.9vw, 2.75rem); line-height: 1.08; }
.post-lead h3 + p { font-size: clamp(1.0625rem, 1.3vw, 1.25rem); max-width: 50ch; }
.posts-side { grid-column: 9 / -1; align-self: stretch; display: flex; flex-direction: column; border-top: 4px solid var(--ink); }
.posts-more { margin-top: auto; padding-top: 22px; align-self: flex-start; }
.post-side { display: grid; grid-template-columns: minmax(0, 1fr) clamp(120px, 12vw, 176px); column-gap: var(--g); align-items: start; padding-block: clamp(18px, 1.8vw, 26px); border-bottom: 1px solid rgba(17, 19, 24, .28); }
.post-side img { aspect-ratio: 16 / 9; border-radius: var(--r-box); }
.post-side h3 { font-size: clamp(1.25rem, 1.6vw, 1.5rem); }
.post-side h3 + p { font-size: 16px; }

/* ── Reply card ────────────────────────────── */
.reply { align-items: start; row-gap: 40px; }
.reply-copy { grid-column: 1 / span 6; display: grid; gap: clamp(20px, 2.4vw, 36px); }
.reply-copy .standfirst { max-width: 30ch; }
.facts { border-top: 4px solid var(--ink); max-width: 520px; }
.facts div { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid rgba(17, 19, 24, .4); }
.facts dt { font-size: 14px; font-weight: 600; }
.facts dd { text-align: right; }
.facts a { text-decoration: none; }
.facts a:hover { text-decoration: underline; }
.card { grid-column: 8 / -1; padding: clamp(20px, 2.6vw, 36px); background: var(--paper); color: var(--ink); border-radius: var(--r-frame); }
.card h3 { font-family: var(--gothic); font-weight: var(--display-weight); text-transform: uppercase; font-size: calc((clamp(2.25rem, 3.4vw, 3.5rem)) * var(--display-scale)); line-height: max(.9, var(--display-lh)); letter-spacing: var(--display-tracking);}
.form { margin-top: 20px; display: grid; gap: 18px; }
.form[hidden], .done[hidden], .form-error[hidden] { display: none; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 14px; font-weight: 600; }
.field .req { color: var(--red); }
.input { width: 100%; padding: 13px 14px; border: 1.5px solid rgba(17, 19, 24, .4); border-radius: var(--r-box); background: #fbfaf7; font-size: 16px; line-height: 1.4; transition: border-color .2s, box-shadow .2s; }
.input::placeholder { color: var(--ink-3); }
.input:hover { border-color: var(--ink); }
.input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(245, 182, 66, .75); }
.input[aria-invalid="true"] { border-color: var(--red); }
textarea.input { min-height: 132px; resize: vertical; }
select.input { appearance: none; padding-right: 42px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23111318' stroke-width='1.8'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; }
.form-error { color: var(--red); font-size: 14px; font-weight: 600; }
.form .btn { width: 100%; min-height: 54px; font-size: 16px; }
.form .note { color: var(--ink-3); }
.done { margin-top: 20px; display: grid; gap: 12px; }
.done:focus { outline: none; }
.done p { font-family: var(--serif); font-size: 1.25rem; line-height: 1.4; }
.done .note { font-family: var(--sans); font-size: 13px; color: var(--ink-3); }

/* ── Back cover (footer) ───────────────────── */
.back { background: #0a111d; color: #fff; padding-block: clamp(48px, 6vw, 88px) 28px; }
.back-grid { row-gap: 40px; }
.back-brand { grid-column: 1 / span 5; display: grid; gap: 16px; justify-items: start; align-content: start; }
.back-brand img { height: 32px; width: auto; }
.back-brand p { font-family: var(--serif); font-size: 1.125rem; line-height: 1.45; color: var(--mist); max-width: 30ch; }
.back nav { grid-column: span 2; }
.back nav:first-of-type { grid-column: 7 / span 2; }
.back-label { font-size: 13px; font-weight: 600; color: var(--mist-2); margin-bottom: 14px; }
.back li + li { margin-top: 10px; }
.back nav a { text-decoration: none; color: var(--mist); }
.back nav a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--amber); }
.small-print { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .2); font-size: 13px; color: var(--mist-2); }
.small-print p { max-width: 70ch; }

/* ── Film viewer ───────────────────────────── */
.room { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: #fff; overflow: hidden; }
.room::backdrop { background: transparent; }
.room-bg { position: absolute; inset: 0; background: #05080d; }
.room-stage { position: absolute; inset: 68px clamp(60px, 7vw, 120px) 56px; display: grid; place-items: center; }
.frame { position: relative; background: #000; border-radius: var(--r-frame); overflow: hidden; transform-origin: 0 0; will-change: transform; }
.frame img, .frame video { width: 100%; height: 100%; object-fit: cover; }
.frame img { position: absolute; inset: 0; }
.frame video { position: relative; }
.room-top { position: absolute; inset: 0 var(--m) auto var(--m); height: 68px; display: flex; align-items: center; justify-content: space-between; font-size: 14px; font-weight: 500; color: var(--mist); font-variant-numeric: tabular-nums; }
.room .round svg { fill: none; stroke: currentColor; stroke-width: 1.8; width: 16px; height: 16px; }
.room-prev, .room-next { position: absolute; top: 50%; translate: 0 -50%; }
.room-prev { left: clamp(10px, 2vw, 32px); }
.room-next { right: clamp(10px, 2vw, 32px); }
.room-ui { transition: opacity .3s ease; }
.room:not(.is-ready) .room-ui { opacity: 0; }

/* ── Responsive ────────────────────────────── */
@media (max-width: 1180px), (max-aspect-ratio: 29/20) {
  /* The cover restacks: one column of type over the lower half of the image. */
  .cover { --u: min(1.9vw, 1.35vh); }
  .cover-media { inset: 0 0 auto 0; height: 66%; }
  .cover-media img, .cover-media video { object-position: 50% 30%; }
  .cover-shade { background: linear-gradient(180deg, rgba(9, 15, 26, .5) 0%, rgba(9, 15, 26, 0) 14%, rgba(9, 15, 26, 0) 40%, var(--night) 66%); }
  .cover-copy { position: absolute; left: var(--m); right: var(--m); bottom: clamp(20px, 3.4vh, 40px); display: grid; gap: 0; }
  .cover h1 { font-size: calc((clamp(3.25rem, min(15vw, 9.5vh), 8.5rem)) * var(--display-scale)); }
  .cover-line, .cover-line.b { position: static; display: block; }
  .cover-line > span, .cover-line > span > span { display: inline; overflow: visible; animation: none; }
  .cover h1 { animation: set-in .9s var(--ease) both; }
  .cover-side { position: static; display: block; }
  .cover-stand { margin-top: 14px; font-size: clamp(1rem, 2.2vw, 1.25rem); max-width: 46ch; }
  .cover-links { display: none; }
  .price { margin-top: 18px; padding: 12px 14px 12px 16px; }
  .price small { font-size: 13px; }
  .price b { font-size: calc((clamp(2.5rem, 9vw, 3.5rem)) * var(--display-scale)); margin-top: 2px; }
  .cover-foot { left: auto; right: var(--m); bottom: auto; top: calc(var(--bar) + 10px); }
  .cover-credit { display: none; }

  .contents { display: block; background: var(--night); color: #fff; padding: 22px 0 6px; }
  .contents ul { display: grid; gap: 0; border-top: 4px solid #fff; }
  .contents a { display: block; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .25); text-decoration: none; }
  .contents strong { display: block; font-family: var(--gothic); font-weight: var(--display-weight); text-transform: uppercase; font-size: calc((32px) * var(--display-scale)); line-height: max(1, var(--display-lh)); letter-spacing: var(--display-tracking); }
  .contents span { display: block; margin-top: 4px; font-size: 14px; color: var(--mist); }
}
@media (max-width: 1000px) {
  .top-nav, .top-date { display: none; }
  .menu-btn { display: inline-block; }
  .top .btn { display: none; margin-left: auto; }
  .top.is-inside .btn { display: inline-flex; }
  .top.is-open .top-nav {
    display: grid; position: fixed; inset: var(--bar) 0 0; align-content: start; gap: 0;
    padding: 12px var(--m) 32px; background: var(--night); overflow-y: auto;
    font-family: var(--gothic); text-transform: uppercase; font-size: calc((clamp(2.75rem, 11vw, 4.5rem)) * var(--display-scale)); font-weight: var(--display-weight); line-height: max(1, var(--display-lh)); letter-spacing: var(--display-tracking);}
  .top.is-open .top-nav a { padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .22); }
  .top.is-open .top-nav a:hover { color: var(--amber); }

  .head .title, .head .standfirst { grid-column: 1 / -1; }
  .feature-lead .film, .feature-lead .feature-copy { grid-column: 1 / -1; }
  .pair .feature:nth-child(1), .pair .feature:nth-child(2) { grid-column: 1 / -1; margin-top: 0; }
  .feature-copy p { max-width: 46ch; }
  .shorts-row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--m); scrollbar-width: none; margin-inline: calc(var(--m) * -1); padding-inline: var(--m); }
  .shorts-row::-webkit-scrollbar { display: none; }
  .shorts-row .film { flex: 0 0 clamp(190px, 44vw, 280px); scroll-snap-align: start; }

  .letter h2, .letter-body, .letter-fig { grid-column: 1 / -1; grid-row: auto; }
  .letter-fig { max-width: 420px; margin-top: 28px; }
  .depts-head p { text-align: left; }
  .dept h4 { grid-column: 1 / -1; }
  .dept p { grid-column: 1 / -1; margin-top: 8px; }
  .dept ul { grid-column: 1 / -1; margin-top: 12px; }

  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .craft blockquote, .craft-notes { grid-column: 1 / -1; }
  .letters-row { grid-template-columns: 1fr; }
  .fpo { min-height: 0; }
  .rates-left, .rates-right { grid-column: 1 / -1; }
  .qa-side, .qa, .qa-more { grid-column: 1 / -1; }
  .qa-side, .rates-left { position: static; }
  .post-lead, .posts-side { grid-column: 1 / -1; }
  .reply-copy, .card { grid-column: 1 / -1; }
  .back-brand { grid-column: 1 / -1; }
  .back nav, .back nav:first-of-type { grid-column: span 4; }
}
@media (max-width: 640px) {
  .letter-body { columns: 1; }
  .chart-row { grid-template-columns: 1fr; row-gap: 6px; }
  .axis { margin-left: 0; }
  .bar-label { font-size: calc((1.625rem) * var(--display-scale)); }
  .steps { grid-template-columns: 1fr; }
  .post-side { grid-template-columns: minmax(0, 1fr) 112px; }
  .two { grid-template-columns: 1fr; }
  .terms div { grid-template-columns: 1fr; row-gap: 2px; }
  .depts-head { flex-direction: column; align-items: flex-start; }
  .back nav, .back nav:first-of-type { grid-column: span 6; }
  .room-stage { inset: 64px 10px 76px; }
  .room-prev, .room-next { top: auto; bottom: 16px; translate: none; }
  .room-prev { left: auto; right: 68px; }
  .room-next { right: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}

/* ════════════════════════════════════════════════════════════════════════
   Everything below was added for the WordPress theme. The rules above are
   the approved Home page and are not changed here.
   ════════════════════════════════════════════════════════════════════════ */

/* ── Working parts ─────────────────────────── */
/* WordPress puts the class "page" on <body> for every page; the page sections use the same word. */
body.page { position: static; padding-block: 0; }
.form-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.film video.is-still { opacity: 1; }
.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }

/* Signed-in editors see the WordPress toolbar above the site. */
.admin-bar .top { top: var(--wp-admin--admin-bar--height, 32px); }

/* Cookie notice */
.cookie {
  position: fixed; left: var(--m); bottom: 16px; z-index: 70; max-width: min(440px, calc(100vw - 2 * var(--m)));
  display: flex; align-items: center; gap: 16px; padding: 14px 14px 14px 18px;
  background: var(--night-2); color: var(--mist); border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--r-box);
  font-size: 13px; line-height: 1.45;
}
.cookie[hidden] { display: none; }
.cookie a { color: #fff; }
.cookie .btn { min-height: 38px; padding: 0 16px; font-size: 14px; flex: none; }

/* Client letters, once real quotes are in */
.quote { margin: 0; display: grid; align-content: space-between; gap: 28px; padding-top: 18px; border-top: 4px solid var(--ink); }
.quote blockquote { margin: 0; }
.quote blockquote p { font-family: var(--serif); font-size: clamp(1.1875rem, 1.6vw, 1.5rem); line-height: 1.4; text-wrap: pretty; }
.quote blockquote p { text-indent: -.44em; }
.quote figcaption { display: grid; gap: 2px; font-size: 14px; line-height: 1.4; }
.quote figcaption strong { font-weight: 700; color: var(--ink); }
.quote figcaption span { font-weight: 500; color: var(--ink-3); }
/* One or two letters are set larger and share the width; three sit in the three columns. */
@media (min-width: 1001px) {
  .letters-row.has-1 { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
  .letters-row.has-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: calc(var(--g) * 2.5); }
  .letters-row.has-1 .quote blockquote p, .letters-row.has-2 .quote blockquote p { font-size: clamp(1.375rem, 2.05vw, 1.9375rem); line-height: 1.34; }
}
@media (max-width: 1000px) {
  .letters-row { row-gap: clamp(28px, 6vw, 44px); }
  /* Tablets: one quote per row is a wide line, so the type steps up and the measure is capped. */
  .quote blockquote p { font-size: clamp(1.1875rem, 2.9vw, 1.5rem); max-width: 34em; }
}

/* ── Inner pages: shared ───────────────────── */
/* The first page of an inner template starts below the fixed bar. */
.issue-inner main > .page:first-child,
.issue-inner main > .read-progress + .page { padding-top: calc(var(--bar) + clamp(48px, 6vw, 96px)); }

.rule-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: clamp(20px, 2.4vw, 36px); border-top: 4px solid #fff; padding-top: 18px; }
.rule-head h2 { font-family: var(--gothic); font-weight: var(--display-weight); text-transform: uppercase; font-size: calc((clamp(2.5rem, 4.2vw, 4.5rem)) * var(--display-scale)); line-height: max(.9, var(--display-lh)); letter-spacing: var(--display-tracking);}
.rule-head p { font-family: var(--serif); font-size: clamp(1.0625rem, 1.3vw, 1.25rem); line-height: 1.4; color: var(--mist); max-width: 40ch; text-align: right; }
.rule-head.on-paper { border-top-color: var(--ink); }
.rule-head.on-paper p { color: var(--ink-2); }

/* The closing band of a page */
.closer { padding-block: clamp(64px, 8vw, 128px); }
.closer-grid { align-items: end; row-gap: 28px; }
.closer-title { grid-column: 1 / span 7; font-family: var(--gothic); font-weight: var(--display-weight); text-transform: uppercase; font-size: calc((clamp(3rem, 6.6vw, 7rem)) * var(--display-scale)); line-height: max(.88, var(--display-lh)); letter-spacing: var(--display-tracking); text-wrap: balance; }
.closer-copy { grid-column: 9 / -1; display: grid; gap: 22px; justify-items: start; padding-bottom: .5em; }

/* ── Work ──────────────────────────────────── */
.jump { margin-bottom: clamp(48px, 6vw, 96px); }
.jump ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 var(--g); border-top: 4px solid #fff; }
.jump a { display: block; padding: 16px 0 14px; border-bottom: 1px solid rgba(255, 255, 255, .25); text-decoration: none; }
.jump strong { display: block; font-family: var(--gothic); font-weight: var(--display-weight); text-transform: uppercase; font-size: calc((clamp(1.75rem, 2.5vw, 2.5rem)) * var(--display-scale)); line-height: max(1, var(--display-lh)); letter-spacing: var(--display-tracking); transition: color .2s; }
.jump span { display: block; margin-top: 4px; font-size: 14px; color: var(--mist); font-variant-numeric: tabular-nums; }
.jump a:hover strong { color: var(--amber); }
.reel + .reel { margin-top: clamp(56px, 7vw, 112px); }
/* One sheet per film type: a horizontal film is as wide as three vertical ones and the same height, so the two mix in a row. */
.sheet { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--g); grid-auto-flow: dense; }
.sheet .film[data-fmt="v"] { grid-column: span 2; aspect-ratio: 9 / 16; }
.sheet .film[data-fmt="h"] { grid-column: span 6; aspect-ratio: 1.82; align-self: stretch; }

/* ── About ─────────────────────────────────── */
.about-open .title { grid-column: 1 / span 9; grid-row: 1; }
.depts-head h2 { font-family: var(--gothic); font-weight: var(--display-weight); text-transform: uppercase; font-size: calc((clamp(2.5rem, 4.2vw, 4.5rem)) * var(--display-scale)); line-height: max(.9, var(--display-lh)); letter-spacing: var(--display-tracking);}
.dept h3 { grid-column: 1 / span 5; margin: 0; font-family: var(--gothic); font-weight: var(--display-weight); text-transform: uppercase; font-size: calc((clamp(2rem, 3.2vw, 3.25rem)) * var(--display-scale)); line-height: max(.95, var(--display-lh)); letter-spacing: var(--display-tracking); }
.dept.is-first h3 { color: var(--red); }
.depts-closer { margin-top: clamp(24px, 3vw, 44px); font-family: var(--serif); font-size: clamp(1.1875rem, 1.7vw, 1.625rem); line-height: 1.4; max-width: 44ch; text-wrap: pretty; }
.value { align-items: start; row-gap: clamp(28px, 3.4vw, 52px); }
.value-title { grid-column: 1 / span 8; font-family: var(--gothic); font-weight: var(--display-weight); text-transform: uppercase; font-size: calc((clamp(2.5rem, 5vw, 5.5rem)) * var(--display-scale)); line-height: max(.9, var(--display-lh)); letter-spacing: var(--display-tracking); text-wrap: balance; }
.value-body { grid-column: 1 / span 6; color: var(--mist); }
.value-body p:first-child { color: #fff; font-weight: 600; }
.value-fig { grid-column: 10 / -1; grid-row: 1 / span 2; }
.value-fig img, .make-fig img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-frame); background: var(--night-2); }
.value-fig figcaption { margin-top: 10px; color: var(--mist-2); }
.make { align-items: start; row-gap: 40px; }
.make-fig { grid-column: 1 / span 4; position: sticky; top: calc(var(--bar) + 24px); }
.make-fig figcaption { margin-top: 10px; color: var(--ink-3); }
.make-notes { grid-column: 6 / -1; display: grid; gap: 32px; }
.make-notes h3 { font-size: clamp(1.25rem, 1.6vw, 1.5rem); font-weight: 700; line-height: 1.2; margin-bottom: 8px; }
.humans { padding-top: 26px; border-top: 4px solid var(--ink); font-size: clamp(1.1875rem, 1.7vw, 1.625rem); line-height: 1.4; text-wrap: pretty; }

/* ── Insights list ─────────────────────────── */
.post-lead h2 { margin-top: 8px; font-family: var(--serif); font-weight: 600; font-size: clamp(1.75rem, 2.9vw, 2.75rem); line-height: 1.08; text-wrap: balance; transition: color .2s; }
.post-lead:hover h2 { color: var(--red); }
.post-lead h2 + p { margin-top: 10px; font-family: var(--serif); font-size: clamp(1.0625rem, 1.3vw, 1.25rem); line-height: 1.5; color: var(--ink-2); max-width: 50ch; text-wrap: pretty; }
.post-list { border-top: 4px solid var(--ink); }
.post-list.follows-lead { margin-top: clamp(48px, 6vw, 88px); }
.post-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); align-items: start; padding-block: clamp(20px, 2.2vw, 30px); border-bottom: 1px solid rgba(17, 19, 24, .28); }
.post-row .note { grid-column: 1 / span 2; padding-top: 6px; }
.post-row-text { grid-column: 3 / span 6; }
.post-row h3 { margin-top: 0; font-size: clamp(1.375rem, 1.9vw, 1.75rem); }
.post-row h3 + p { font-size: 16px; max-width: 56ch; }
.post-row img { grid-column: 10 / -1; aspect-ratio: 16 / 9; border-radius: var(--r-box); }
.pager { display: flex; justify-content: space-between; gap: 24px; margin-top: 32px; font: var(--label-weight) 15px/1.2 var(--sans); }
.pager a:hover { text-decoration-color: var(--red); }

/* ── Article and plain pages ───────────────── */
.read-progress { position: fixed; left: 0; right: 0; top: var(--bar); height: 3px; z-index: 59; background: var(--amber); transform: scaleX(0); transform-origin: left; }
.admin-bar .read-progress { top: calc(var(--bar) + var(--wp-admin--admin-bar--height, 32px)); }
.article-head { row-gap: 18px; margin-bottom: clamp(28px, 3.4vw, 52px); }
.article-meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: baseline; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.article-meta .more { font-size: 13px; color: var(--ink); }
.article-title { grid-column: 1 / span 10; font-family: var(--serif); font-weight: 600; font-size: clamp(2.25rem, 5vw, 4.5rem); line-height: 1.04; letter-spacing: -.015em; text-wrap: balance; }
.article-figure { margin: 0 0 clamp(32px, 4vw, 64px); }
.article-figure img { width: 100%; max-height: 78vh; object-fit: cover; border-radius: var(--r-frame); background: var(--paper-2); }
.article-body .entry, .plain .entry { grid-column: 3 / span 6; }
.entry { font-size: clamp(1.125rem, 1.35vw, 1.3125rem); line-height: 1.65; overflow-wrap: break-word; }
.entry > * + * { margin-top: 1.1em; }
.entry h2 { margin-top: 1.8em; font-family: var(--serif); font-weight: 600; font-size: 1.6em; line-height: 1.15; letter-spacing: -.01em; text-wrap: balance; }
.entry h3 { margin-top: 1.6em; font-size: 1.25em; font-weight: 600; line-height: 1.2; }
.entry h4, .entry h5, .entry h6 { margin-top: 1.6em; font-family: var(--sans); font-size: .8em; font-weight: 700; }
.entry h2 + *, .entry h3 + *, .entry h4 + * { margin-top: .6em; }
.entry ul, .entry ol { padding-left: 1.3em; }
.entry ul { list-style: disc; }
.entry ol { list-style: decimal; }
.entry li + li { margin-top: .4em; }
.entry a { color: var(--red); }
.entry a:hover { color: var(--red-hover); }
.entry strong { font-weight: 700; }
.entry blockquote { margin: 1.6em 0; padding-top: 16px; border-top: 4px solid var(--ink); font-size: 1.25em; line-height: 1.35; }
.entry blockquote cite { display: block; margin-top: 10px; font-family: var(--sans); font-size: 13px; font-style: normal; font-weight: var(--label-weight); color: var(--ink-3); }
.entry img, .entry video, .entry iframe { max-width: 100%; height: auto; border-radius: var(--r-frame); }
.entry iframe { width: 100%; aspect-ratio: 16 / 9; }
.entry figure { margin: 1.8em 0; }
.entry figcaption { margin-top: 10px; font-family: var(--sans); font-size: 13px; line-height: 1.5; color: var(--ink-3); }
.entry hr { margin: 2em 0; border: 0; border-top: 1px solid rgba(17, 19, 24, .28); }
.entry table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: .82em; line-height: 1.45; }
.entry th, .entry td { padding: 10px 14px 10px 0; text-align: left; vertical-align: top; border-bottom: 1px solid rgba(17, 19, 24, .22); }
.entry th { font-weight: 700; border-bottom: 2px solid var(--ink); }
.entry pre { padding: 16px 18px; overflow-x: auto; background: var(--paper-2); border-radius: var(--r-box); font-size: .8em; line-height: 1.5; }
.more-posts { padding-top: 0; }
.plain { row-gap: clamp(28px, 3.4vw, 52px); }
.plain-title { grid-column: 1 / span 9; font-family: var(--gothic); font-weight: var(--display-weight); text-transform: uppercase; font-size: calc((clamp(3rem, 6.6vw, 7rem)) * var(--display-scale)); line-height: max(.88, var(--display-lh)); letter-spacing: var(--display-tracking); text-wrap: balance; }

/* ── Page not found ────────────────────────── */
.lost { min-height: 72vh; }
.lost-links { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; }

/* ── Careers ───────────────────────────────── */
.jd-hero { padding-bottom: clamp(32px, 4vw, 56px); border-bottom: 4px solid var(--ink); }
.jd-hero-inner { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); row-gap: 14px; }
.jd-hero-inner > * { grid-column: 1 / span 8; }
.jd-hero-title { order: 1; grid-column: 1 / -1; font-family: var(--gothic); font-weight: var(--display-weight); text-transform: uppercase; font-size: calc((clamp(3.5rem, 9vw, 9.5rem)) * var(--display-scale)); line-height: max(.86, var(--display-lh)); letter-spacing: var(--display-tracking); }
.jd-hero-title br { display: none; }
.jd-hero-title span { display: block; margin-top: .14em; font-size: .46em; line-height: 1; color: var(--red); }
.jd-hero-label { order: 2; justify-self: start; margin-top: 6px; padding: 5px 10px; background: var(--ink); color: var(--paper); font-size: 12px; font-weight: 700; letter-spacing: .04em; border-radius: 4px; }
.jd-hero-meta { order: 3; display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 15px; font-weight: 600; }
.jd-dot { color: var(--ink-3); }
.jd-hero-submeta { order: 4; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.jd-hero-note { order: 5; font-family: var(--serif); font-size: clamp(1.0625rem, 1.25vw, 1.1875rem); line-height: 1.55; max-width: 62ch; }
.jd-hero-cta, .jd-apply-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px; font: var(--label-weight) 15px/1 var(--sans); text-decoration: none; transition: background-color .2s, color .2s; }
.jd-hero-cta svg, .jd-apply-btn svg { width: 13px; height: 13px; }
.jd-hero-cta { order: 6; justify-self: start; margin-top: 8px; background: var(--red); color: #fff; }
.jd-hero-cta:hover { background: var(--red-hover); }
.jd-body { margin-top: clamp(40px, 5vw, 72px); }
.jd-content { display: grid; gap: clamp(40px, 5vw, 72px); }
.jd-section { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); row-gap: 14px; align-items: start; padding-top: 22px; border-top: 1px solid rgba(17, 19, 24, .28); }
.jd-section:first-child { padding-top: 0; border-top: 0; }
.jd-section > h2 { grid-column: 1 / span 4; position: sticky; top: calc(var(--bar) + 24px); font-family: var(--gothic); font-weight: var(--display-weight); text-transform: uppercase; font-size: calc((clamp(2rem, 3.2vw, 3.25rem)) * var(--display-scale)); line-height: max(.95, var(--display-lh)); letter-spacing: var(--display-tracking); }
.jd-section > :not(h2) { grid-column: 6 / -1; }
.jd-section p { font-family: var(--serif); font-size: clamp(1.0625rem, 1.25vw, 1.1875rem); line-height: 1.6; }
.jd-callout { padding: 16px 18px; background: var(--paper-2); border-radius: var(--r-box); }
.jd-task-grid, .jd-terms-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--g); border-top: 4px solid var(--ink); }
.jd-task, .jd-term { padding: 16px 0; border-bottom: 1px solid rgba(17, 19, 24, .22); }
.jd-task-label, .jd-term-label { margin-bottom: 6px; font-family: var(--gothic); text-transform: uppercase; font-size: calc((1.75rem) * var(--display-scale)); line-height: max(1, var(--display-lh)); letter-spacing: var(--display-tracking); font-weight: var(--display-weight);}
.jd-section .jd-task p, .jd-section .jd-term p { font-size: 16px; line-height: 1.5; }
.jd-important-lead { font-weight: 600; }
.jd-dont { padding: 16px 18px; border: 2px solid var(--ink); border-radius: var(--r-box); }
.jd-process { border-top: 4px solid var(--ink); }
.jd-process-step { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 16px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid rgba(17, 19, 24, .22); font-family: var(--serif); font-size: clamp(1.0625rem, 1.25vw, 1.1875rem); line-height: 1.5; }
.jd-process-num { font-family: var(--gothic); font-size: calc((2.25rem) * var(--display-scale)); line-height: max(1, var(--display-lh)); font-weight: var(--display-weight); letter-spacing: var(--display-tracking);}
.jd-cta { padding-block: clamp(64px, 8vw, 128px); }
.jd-cta-inner { display: grid; gap: 20px; justify-items: start; }
.jd-cta-headline { font-family: var(--gothic); font-weight: var(--display-weight); text-transform: uppercase; font-size: calc((clamp(3rem, 6.6vw, 7rem)) * var(--display-scale)); line-height: max(.88, var(--display-lh)); letter-spacing: var(--display-tracking); }
.jd-cta-sub { font-family: var(--serif); font-size: clamp(1.1875rem, 1.7vw, 1.625rem); line-height: 1.4; }
.jd-apply-btn { background: #fff; color: var(--ink); }
.jd-apply-btn:hover { background: var(--amber); }

/* ── Inner pages on smaller screens ────────── */
@media (max-width: 1000px) {
  .rule-head { flex-direction: column; align-items: start; gap: 10px; }
  .rule-head p { text-align: left; }
  .closer-title, .closer-copy { grid-column: 1 / -1; }
  .sheet { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .sheet .film[data-fmt="h"] { aspect-ratio: 16 / 9; }
  .about-open .title, .value-title, .value-body, .value-fig, .make-fig, .make-notes { grid-column: 1 / -1; }
  .value-fig { grid-row: auto; max-width: 420px; }
  .make-fig { position: static; max-width: 420px; }
  .dept h3 { grid-column: 1 / -1; }
  .post-row .note { grid-column: 1 / -1; padding-top: 0; }
  .post-row-text { grid-column: 1 / span 8; margin-top: 8px; }
  .post-row img { grid-column: 9 / -1; margin-top: 8px; }
  .article-title, .plain-title, .article-body .entry, .plain .entry { grid-column: 1 / -1; }
  .jd-hero-inner > *, .jd-section > h2, .jd-section > :not(h2) { grid-column: 1 / -1; }
  .jd-section > h2 { position: static; }
}
@media (max-width: 640px) {
  .sheet { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sheet .film[data-fmt="h"] { grid-column: span 4; }
  .post-row-text, .post-row img { grid-column: 1 / -1; }
  .post-row img { order: -1; margin: 0 0 12px; }
  .jd-task-grid, .jd-terms-grid { grid-template-columns: 1fr; }
  .cookie { right: var(--m); max-width: none; }
}

/* ── Timing chart: the line under it ───────── */
.chart-note { margin-top: 14px; font-size: 14px; line-height: 1.45; color: var(--ink-2); }

/* ── Work page: still carousels ────────────── */
.still-set { position: relative; }
.still-set + .still-set { margin-top: clamp(28px, 3.4vw, 52px); }
.still-strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - var(--g) * 3) / 4); gap: var(--g);
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.still-strip::-webkit-scrollbar { display: none; }
.still-strip:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; }
.still-strip img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-frame); background: var(--night-2); scroll-snap-align: start; }
.still-nav { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.still-nav[hidden] { display: none; }
.still-nav .round svg { fill: none; stroke: currentColor; stroke-width: 1.6; }
.still-nav .round:disabled { opacity: .35; cursor: default; }
@media (max-width: 1000px) {
  .still-strip { grid-auto-columns: calc((100% - var(--g) * 2) / 2.4); }
  .still-nav { display: none; }
}
@media (max-width: 640px) {
  .still-strip { grid-auto-columns: 78%; margin-inline: calc(var(--m) * -1); padding-inline: var(--m); scroll-padding-inline: var(--m); }
}

/* ── Type: Plus Jakarta Sans for every voice (chosen 23 Nov 2026) ──────────
   build_home.py scales each headline rule by --display-scale (the big price by
   --price-scale) and gives it the weight, tracking and line height below. */
:root {
  --gothic: 'Plus Jakarta Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --serif: 'Plus Jakarta Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --sans: 'Plus Jakarta Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --display-scale: .56;
  --price-scale: .5;
  --dropcap-scale: .78;
  --cover-stack-scale: .8;
  --display-weight: 500;
  --display-tracking: -.03em;
  --display-lh: .98;
  --label-weight: 500;
}

/* When the cover stacks (tablets, phones), the headline has the full width to itself,
   so it can be set larger than the side-by-side desktop cover. */
@media (max-width: 1180px), (max-aspect-ratio: 29/20) {
  .cover h1 { font-size: calc(clamp(3.25rem, min(15vw, 9.5vh), 8.5rem) * var(--cover-stack-scale)); }
}
