@font-face {
  font-family: "Archivo";
  src: url(/assets/fonts/archivo.woff2) format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --ink: #1B1B1F;
  --orange: #F76707;
  --grey: #555555;
  --line: #E0E0E0;
  --paper: #EEF3F1;
  --rule: #C9D1CD;
  --check: #FFEFAD;
  --paper-text: #44494A;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --head: "Archivo", var(--sans);
  --gutter: clamp(16px, 3.4vw, 48px);
  --margin-col: clamp(240px, 22vw, 320px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --ease-exit: cubic-bezier(.3, 0, .8, .15);
  --dur-press: 80ms;
  --dur-hover: 160ms;
  --dur-ui: 240ms;
  --dur-mark: 450ms;
  --dur-story: 700ms;
  --stagger: 60ms;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-color: #9AA39F transparent; }
body { margin: 0; font: 17px/1.55 var(--sans); color: var(--ink); background: #fff; caret-color: var(--orange); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, figure, dl, dd, ul { margin: 0; }
ul { padding: 0; list-style: none; }
::selection { background: var(--ink); color: #fff; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header and footer */
.top { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px var(--gutter); }
.top .brand img { width: 176px; height: 28px; }
.top nav { display: flex; gap: clamp(16px, 2.4vw, 32px); font-size: 15px; }
.top nav a { position: relative; text-decoration: none; padding: 6px 0; }
.top nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform var(--dur-hover) var(--ease-exit); }
.top nav a[aria-current="page"]::after, .top nav a:focus-visible::after { transform: none; }
@media (hover: hover) and (pointer: fine) {
  .top nav a:hover::after { transform: none; transition-timing-function: var(--ease); }
}

.foot { margin: clamp(56px, 8vw, 112px) var(--gutter) 0; padding: 28px 0 40px; border-top: 1px solid var(--ink); display: flex; flex-wrap: wrap; gap: 12px 40px; align-items: baseline; font-size: 15px; color: var(--grey); }
.foot .who { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.foot .who img { width: 24px; height: 24px; }
.foot nav { display: flex; gap: 24px; margin-left: auto; }
.foot a { color: var(--ink); }

/* Type */
.display { font-family: var(--head); font-stretch: 80%; font-weight: 780; font-size: clamp(46px, 6.2vw, 88px); line-height: .94; letter-spacing: -.025em; text-wrap: balance; }
.h2 { font-family: var(--head); font-stretch: 84%; font-weight: 750; font-size: clamp(32px, 3.8vw, 54px); line-height: 1; letter-spacing: -.02em; text-wrap: balance; }
.h3 { font-family: var(--head); font-stretch: 90%; font-weight: 700; font-size: 21px; line-height: 1.2; }
.lede { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.45; color: var(--paper-text); max-width: 42ch; }
.stamp { display: inline-block; justify-self: start; align-self: start; width: fit-content; font-family: var(--head); font-stretch: 70%; font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; border: 2px solid var(--ink); padding: 4px 10px 3px; transform: rotate(-3deg); }
.figure-num { font-family: var(--head); font-variant-numeric: tabular-nums lining-nums; }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px 14px; align-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px; border-radius: 6px; font: 600 16px/1 var(--sans); text-decoration: none; cursor: pointer; transition: background-color var(--dur-hover) var(--ease), background-size var(--dur-ui) var(--ease), color var(--dur-hover) var(--ease), transform var(--dur-hover) var(--ease); }
.btn:active { transform: translateY(1px); transition-duration: var(--dur-press); }
.btn-ink { background: var(--ink); color: #fff; border: 1.5px solid var(--ink); }
.btn-ink:hover { background: #33333a; text-decoration: none; }
.btn-line { background: linear-gradient(var(--ink), var(--ink)) no-repeat 0 0 / 0 100%; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-line:hover { background-size: 100% 100%; color: #fff; text-decoration: none; }
.price-link { font-size: 15px; padding: 8px 2px; }

/* The sheet: a report page with a margin */
.sheet { margin: 0 var(--gutter); background: var(--paper); display: grid; grid-template-columns: minmax(0, 1fr) var(--margin-col); }
.sheet > .body { padding: 56px; min-width: 0; }
.sheet > .margin { border-left: 1px solid var(--rule); padding: 56px 28px; color: var(--paper-text); font-size: 15px; line-height: 1.5; }
.margin .note + .note { margin-top: 18px; }
.margin .stamp + .note { margin-top: 28px; }
.stack { display: flex; flex-direction: column; gap: 22px; }
.stack > .product-entry { margin-top: 18px; }
.margin .note b { color: var(--ink); font-weight: 650; }

/* Hero */
.hero .body { display: flex; flex-direction: column; gap: 22px; }
.hero .display { max-width: 13ch; }
.hero .body { padding-top: 44px; }
.hero .actions { margin-top: 4px; }
.hero .rounds { margin-top: 6px; max-width: 760px; }

/* The live chart: round 1 under, the round 2 bar rising in a window over Q4 online */
.rounds { position: relative; display: block; }
.revision + .swap { margin-top: 24px; }
.rounds .rise, .rounds .tags { position: absolute; inset: 0; pointer-events: none; }
.rounds .rise { clip-path: inset(23% 16% 18.54% 77.5%); }
.rounds .rise img, .rounds .tags { transform: translateY(7.615%); transition: transform var(--dur-story) var(--ease-in-out); }
[data-round="2"] .rounds .rise img, [data-round="2"] .rounds .tags { transform: none; transition-timing-function: var(--ease); transition-delay: 150ms; }
.bar-tag { position: absolute; left: 80.7%; top: 24.4%; transform: translate(-50%, calc(-100% - 2px)); font-family: var(--head); font-weight: 800; font-size: clamp(16px, 2vw, 26px); line-height: 1; font-variant-numeric: tabular-nums lining-nums; color: var(--ink); padding: 3px 6px 2px; border-radius: 2px; opacity: 0; transition: opacity var(--dur-hover) var(--ease), background-color var(--dur-hover) var(--ease); }
.played .bar-tag { opacity: 1; }
[data-round="2"] .bar-tag { background-color: var(--orange); transition-delay: 150ms; }
.bar-ring { position: absolute; left: 75.6%; top: 25.4%; width: 10.2%; height: 10.4%; overflow: visible; }
.bar-ring .mark { stroke-width: 3; transition: stroke-dashoffset var(--dur-story) var(--ease-in-out); }
[data-round="2"] .bar-ring .mark { transition-timing-function: var(--ease); transition-delay: 500ms; }

.revision { margin-top: 36px; }
.revision .label { font-size: 15px; color: var(--paper-text); }
.revision .figs { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 18px; margin-top: 6px; }
.old, .new { position: relative; display: inline-block; font-family: var(--head); font-variant-numeric: tabular-nums lining-nums; }
.old { font-size: 48px; font-weight: 600; transition: color var(--dur-mark) var(--ease-in-out); }
.new { font-size: 64px; font-weight: 800; color: var(--orange); opacity: 0; transition: opacity 300ms var(--ease-in-out); }
.old svg, .new svg { position: absolute; overflow: visible; pointer-events: none; }
.old svg { left: -6px; right: -6px; top: 50%; width: calc(100% + 12px); height: 16px; margin-top: -6px; }
.new svg { inset: -12px -16px; width: calc(100% + 32px); height: calc(100% + 24px); }
.mark { fill: none; stroke: var(--orange); stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; }
[data-round="2"] .mark { opacity: 1; stroke-dashoffset: 0; }
.strike { stroke-width: 4; transition: stroke-dashoffset var(--dur-mark) var(--ease-in-out); }
.circle { stroke-width: 2.5; transition: stroke-dashoffset var(--dur-story) var(--ease-in-out); }
[data-round="2"] .strike { transition-timing-function: var(--ease); }
[data-round="2"] .circle { transition-timing-function: var(--ease); transition-delay: 500ms; }
[data-round="2"] .old { color: #8A918E; transition-timing-function: var(--ease); }
[data-round="2"] .new { opacity: 1; transition-timing-function: var(--ease); transition-delay: 500ms; }
/* Two-state labels share one cell, so a round change never resizes the line they sit on */
[data-live] .stamp, .replay { display: inline-grid; justify-items: center; }
[data-live] .stamp > *, .replay > * { grid-area: 1 / 1; }
[data-round="1"] :is(.stamp, .replay) > .r2, [data-round="2"] :is(.stamp, .replay) > .r1 { visibility: hidden; }
.played[data-round] .stamp { animation: stamp var(--dur-hover) var(--ease); }
.played[data-round="1"] .stamp { animation-name: stamp-back; }
@keyframes stamp { from { transform: rotate(-3deg) scale(1.12); opacity: .4; } }
@keyframes stamp-back { from { transform: rotate(-3deg) scale(1.12); opacity: .4; } }

/* Two notes in one cell, crossfaded */
.swap { display: grid; }
.swap > * { grid-area: 1 / 1; transition: opacity var(--dur-ui) var(--ease), visibility 0s linear; }
.swap > .r2, [data-round="2"] .swap > .r1 { opacity: 0; visibility: hidden; }
[data-round="2"] .swap > .r1 { transition-delay: 850ms, 1090ms; }
[data-round="2"] .swap > .r2 { opacity: 1; visibility: visible; transition-delay: 850ms; }
.replay[hidden] { display: none; }
.margin .replay { margin-top: 26px; }

/* Sections */
.section { margin: clamp(64px, 9vw, 128px) var(--gutter) 0; }
.section-head { display: grid; gap: 14px; max-width: 760px; margin-bottom: clamp(24px, 3vw, 40px); }
/* Chartwork story: round 1, round 2, then the chart on its page. Static, it shows round 2 and the page. */
.cw-stage > .body { display: grid; gap: 28px; align-content: start; }
.cw-canvas { display: grid; gap: 40px; justify-items: center; }
.cw-chart { width: 100%; max-width: 820px; }
.cw-page { width: min(100%, 620px); box-shadow: 0 1px 2px rgba(27,27,31,.08), 0 10px 30px rgba(27,27,31,.12); }
.cw-stage > .margin { display: grid; gap: 48px; align-content: start; }
.cw-change, .cw-final { display: grid; gap: 22px; align-content: start; justify-items: start; }
.cw-final .h2 { color: var(--ink); }
.cw-final .demo { font-size: 13px; color: var(--grey); }
.cw-stage .bar-tag { opacity: 1; }
.cw-stage .rounds .rise img, .cw-stage .tags, .cw-stage .mark, .cw-stage .bar-tag { transition: none; }
.cw-data { border-collapse: collapse; width: 100%; font-size: 16px; font-variant-numeric: tabular-nums lining-nums; }
.cw-data caption { caption-side: top; text-align: left; font-size: 15px; color: var(--paper-text); padding-bottom: 8px; }
.cw-data th, .cw-data td { text-align: left; font-weight: 400; padding: 7px 10px 7px 0; border-top: 1px solid var(--rule); }
.cw-data thead th { border-top: 0; font-size: 13px; font-weight: 600; color: var(--grey); }
.cw-data tbody th { font-weight: 600; }
.cw-data .was { position: relative; display: inline-block; color: #8A918E; }
.cw-data .was svg { position: absolute; left: -3px; top: 50%; width: calc(100% + 6px); height: 10px; margin-top: -4px; overflow: visible; }
.cw-data .was path { fill: none; stroke: var(--orange); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; }
.cw-data .now { display: inline-block; margin-left: 6px; padding: 0 5px; border-radius: 2px; font: inherit; font-weight: 750; color: var(--ink); background: var(--orange); }
.cw-notes { display: grid; }
.cw-notes > * { grid-area: 1 / 1; transition: opacity var(--dur-ui) var(--ease), visibility 0s; }
.cw-stage:not([data-step="1"]) .n1, [data-step="1"] .n2, .cw-stage:not([data-step="1"]) .s1, [data-step="1"] .s2 { opacity: 0; visibility: hidden; }
.cw-stage .stamp { display: inline-grid; }
.cw-stage .stamp > * { grid-area: 1 / 1; }
.cw-stage[data-step] .cw-change .stamp { animation: stamp var(--dur-hover) var(--ease); }
.cw-stage[data-step="2"] .cw-change .stamp { animation-name: stamp-back; }

/* Wide screens: one pinned sheet, the chart and the page in one cell */
.cw-pin .cw-stage { height: calc(100svh - 48px); min-height: 560px; position: sticky; top: 24px; }
.cw-pin .cw-story::after { content: ""; display: block; height: 250svh; }
.cw-pin .cw-stage > .body { display: flex; flex-direction: column; gap: 24px; padding-top: 44px; padding-bottom: 44px; min-height: 0; }
.cw-pin .cw-canvas { flex: 1; min-height: 0; position: relative; place-items: center; container-type: size; }
.cw-pin .cw-chart, .cw-pin .cw-page { grid-area: 1 / 1; }
.cw-pin .cw-chart { z-index: 1; max-width: none; width: min(100cqw, 100cqh * 1060 / 650); }
.cw-pin .cw-page { max-width: none; width: auto; height: 100cqh; }
.cw-pin .cw-change, .cw-pin .cw-final { grid-area: 1 / 1; }

/* Quiet reveals, once, under motion only */
.rv { transition: opacity var(--dur-mark) var(--ease), transform var(--dur-mark) var(--ease); transition-delay: min(calc(var(--i, 0) * var(--stagger)), 400ms); }
.reveal .rv:not(.in) { opacity: 0; transform: translateY(12px); }
.ledger .row::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--rule); transform-origin: left; transition: transform var(--dur-mark) var(--ease); transition-delay: inherit; }
.reveal .ledger .row:not(.in)::after { transform: scaleX(0); }

.panels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 3vw, 40px); align-items: start; }
.panels figure { display: grid; gap: 14px; }
.panels img { width: 100%; max-width: 362px; border: 1px solid var(--line); }
.panels figcaption { font-size: 16px; }

.shapes figure { max-width: 1100px; }
.shapes img { border: 1px solid var(--line); }
.shapes figcaption { margin-top: 14px; font-size: 16px; display: grid; gap: 2px; }

/* Price ledger */
.ledger { border-top: 2px solid var(--ink); }
.ledger .row { display: grid; grid-template-columns: minmax(110px, 1fr) minmax(150px, 1.2fr) minmax(0, 2.6fr) 190px; gap: 16px 32px; align-items: baseline; padding: 26px 0; border-bottom: 1px solid transparent; position: relative; }
.ledger .name { font-family: var(--head); font-stretch: 85%; font-weight: 750; font-size: 26px; }
.ledger .amount { font-family: var(--head); font-variant-numeric: tabular-nums lining-nums; font-weight: 750; font-size: 40px; line-height: 1; }
.ledger .amount small { font-family: var(--sans); font-weight: 400; font-size: 15px; color: var(--grey); margin-left: 6px; }
.ledger ul { display: grid; gap: 2px; color: var(--paper-text); }
.ledger .row .btn { justify-self: end; }
.terms-lines { margin-top: 24px; display: grid; gap: 4px; font-size: 16px; color: var(--paper-text); }

/* Questions */
.qa { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); border-top: 2px solid var(--ink); }
.qa dt, .qa dd { padding: 22px 0; border-bottom: 1px solid var(--rule); }
.qa dt { font-weight: 650; padding-right: 32px; }
.qa dd { color: var(--paper-text); display: grid; gap: 6px; }
.qa dd img { width: min(100%, 420px); border: 1px solid var(--line); margin-top: 8px; }

/* Closing sheet */
.close { margin-top: clamp(64px, 9vw, 128px); }
.close .body { display: grid; gap: 22px; }
.close .meta { font-size: 15px; color: var(--paper-text); }

/* Home */
.product-entry { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 56px); align-items: center; border-top: 2px solid var(--ink); padding-top: 28px; margin-top: clamp(32px, 4vw, 48px); }
.product-entry .who { display: flex; align-items: center; gap: 14px; }
.product-entry .who img { width: 48px; height: 48px; }
.product-entry .text { display: grid; gap: 18px; }
.product-entry .sub { color: var(--paper-text); }

/* Reading pages */
.reading .body { max-width: 72ch; }
.reading h1 { margin-bottom: 8px; }
.reading h2 { font-family: var(--head); font-stretch: 90%; font-weight: 700; font-size: 21px; margin: 36px 0 10px; }
.reading p, .reading li { margin-bottom: 12px; color: #2f3234; }
.reading ul { list-style: disc; padding-left: 22px; }
.reading .date { color: var(--paper-text); font-size: 15px; margin-bottom: 8px; }

/* Work page */
.work-top .body { padding-top: 44px; }
.work-top .display { max-width: 12ch; }
.work-top .body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 48px; align-content: start; }
.work-top .body > :not(.top-proof) { grid-column: 1; }
.work-top .top-proof { grid-column: 2; grid-row: 1 / span 4; align-self: center; position: relative; padding: 0 0 48px 64px; }
.work-top .top-proof .proof { height: 460px; width: auto; margin-left: auto; }
.work-top .top-proof .file { position: absolute; left: 0; bottom: 0; width: 300px; padding: 14px 18px; box-shadow: 0 1px 2px rgba(27,27,31,.08), 0 10px 30px rgba(27,27,31,.12); }
.rate .rate-fig { font-size: 16px; color: var(--paper-text); }
.rate .amount { font-family: var(--head); font-variant-numeric: tabular-nums lining-nums; font-weight: 750; font-size: 40px; line-height: 1; color: var(--ink); margin-right: 4px; }
.rate .rate-fig + .note { margin-top: 12px; }

.top-proof .page { margin-left: auto; }
.top-proof .after, .top-proof .ring { opacity: 0; }
.top-proof .live td { transition: background-color .3s var(--ease); }

/* Work stories: a stage per story. Static, it shows the result; with motion on, it pins and the scroll plays the run. */
.story { margin: 112px var(--gutter) 0; }
.stage { background: var(--paper); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 32px; padding: 44px 48px 32px; position: relative; overflow: hidden; }
.stage-head { display: flex; justify-content: space-between; align-items: end; gap: 20px 48px; flex-wrap: wrap; }
.stage-title { display: grid; gap: 8px; max-width: 780px; }
.story-meta { font-size: 16px; color: var(--grey); }
.rail { display: flex; position: relative; list-style: none; padding: 0; margin: 0; font-size: 13px; font-weight: 600; }
.rail li { min-width: 9.5em; padding: 0 16px 10px 0; border-bottom: 2px solid var(--rule); }
.rail::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: var(--ink); transform-origin: left; transform: scaleX(var(--p, 1)); }
.stage-body { position: relative; display: grid; gap: 48px; align-items: center; min-height: 0; }
.stage-foot { display: flex; justify-content: space-between; align-items: end; gap: 12px 48px; flex-wrap: wrap; border-top: 1px solid var(--rule); padding-top: 18px; }
.captions { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; font-size: 17px; line-height: 1.4; }
.results { display: flex; flex-wrap: wrap; gap: 6px 32px; font-size: 16px; color: var(--paper-text); }
.results b { font-family: var(--head); font-variant-numeric: tabular-nums lining-nums; font-weight: 750; font-size: 26px; color: var(--ink); margin-right: 4px; }

.proof { box-shadow: 0 1px 2px rgba(27,27,31,.08), 0 10px 30px rgba(27,27,31,.12); background: #fff; }
.page { position: relative; width: fit-content; max-width: 100%; }
.win { position: absolute; left: calc(var(--l) * 1%); top: calc(var(--t) * 1%); width: calc(var(--w) * 1%); height: calc(var(--h) * 1%); overflow: hidden; }
.win img { position: absolute; max-width: none; width: calc(100% * 100 / var(--w)); height: auto; left: calc(-100% * var(--l) / var(--w)); top: calc(-100% * var(--t) / var(--h)); }
.ring { position: absolute; overflow: visible; pointer-events: none; }
.pencil { fill: none; stroke: var(--orange); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.chip { position: absolute; left: 0; top: 0; z-index: 5; background: #fff; border: 1px solid var(--ink); border-radius: 2px; padding: 5px 10px; font-size: 15px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums lining-nums; box-shadow: 0 2px 4px rgba(27,27,31,.1), 0 18px 36px rgba(27,27,31,.2); pointer-events: none; visibility: hidden; }
.slot { position: absolute; background: #fff; border: 1.5px dashed var(--rule); }

.file { background: #fff; border: 1px solid var(--rule); padding: 20px 24px; width: min(100%, 620px); position: relative; }
.file-name { font-family: var(--head); font-stretch: 90%; font-weight: 700; font-size: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.file-foot { font-size: 15px; color: var(--grey); margin-top: 12px; }
.data { border-collapse: collapse; width: 100%; font-size: 15px; font-variant-numeric: tabular-nums lining-nums; }
.data th { text-align: left; font-weight: 600; color: var(--grey); padding: 6px 12px 6px 0; }
.data td { padding: 6px 12px 6px 0; border-top: 1px solid var(--line); }
.data .num { text-align: right; padding-right: 0; }
.was { position: relative; display: inline-block; color: var(--grey); }
.was svg { position: absolute; left: -4px; top: 50%; width: calc(100% + 8px); height: 14px; margin-top: -6px; overflow: visible; }
.was .pencil { stroke-width: 3; }
.now { font-family: var(--head); font-weight: 750; font-size: 21px; color: var(--orange); margin-left: 6px; }

.cat-body { grid-template-columns: minmax(0, 1fr) auto; }
.cat-sheet { justify-self: end; max-width: 540px; }
.cat-page .proof { height: 600px; width: auto; }

.pdf-body { grid-template-columns: minmax(0, .85fr) minmax(0, 1.3fr); }
.docs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.doc { aspect-ratio: .77; background: #fff; border: 1px solid var(--rule); padding: 8px 7px; font-size: 13px; line-height: 1.2; position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 6px; box-shadow: 0 1px 2px rgba(27,27,31,.06); }
.doc span { font-weight: 600; overflow-wrap: anywhere; }
.doc::after { content: ""; flex: 1; --c: var(--line); background: linear-gradient(var(--c) 0 0) no-repeat 0 0px / 90% 2px, linear-gradient(var(--c) 0 0) no-repeat 0 9px / 100% 2px, linear-gradient(var(--c) 0 0) no-repeat 0 18px / 70% 2px, linear-gradient(var(--c) 0 0) no-repeat 0 27px / 95% 2px, linear-gradient(var(--c) 0 0) no-repeat 0 36px / 82% 2px, linear-gradient(var(--c) 0 0) no-repeat 0 45px / 60% 2px, linear-gradient(var(--c) 0 0) no-repeat 0 54px / 88% 2px, linear-gradient(var(--c) 0 0) no-repeat 0 63px / 40% 2px; }
.doc.scan { background: #F3F4F2; }
.doc.scan::after { --c: var(--rule); filter: blur(.5px); }
.doc i { position: absolute; right: 5px; bottom: 5px; font-style: normal; font-size: 13px; font-weight: 700; background: #fff; border: 1px solid var(--rule); padding: 0 4px; }
.xl-file { width: 100%; }
.xl-scroll { overflow-x: auto; }
.xl { font-size: 13px; margin-left: -8px; width: calc(100% + 8px); }
.xl th, .xl td { padding: 6px 8px; white-space: nowrap; }
.xl .num { padding-right: 8px; }
.xl .chk { background: var(--check); }
.xl td.ok { color: var(--paper-text); }

.leaf-body { grid-template-columns: minmax(0, 320px) minmax(0, 1fr); }
.mail p { font-size: 16px; margin-top: 10px; }
.mail .subject { font-weight: 650; margin-top: 4px; }
.say { margin-top: 4px; font-size: 16px; }
.say li { padding: 3px 0 3px 16px; position: relative; }
.say li::before { content: ""; position: absolute; left: 3px; top: .8em; width: 5px; height: 5px; border-radius: 50%; background: var(--ink); }
.spread { justify-self: center; width: min(100%, 1082px); }
.spread .proof { width: 100%; }
.fit-tag { position: absolute; left: calc(var(--l) * 1%); top: calc(var(--t) * 1%); translate: 4px -50%; z-index: 3; font-family: var(--head); font-weight: 700; font-size: 13px; font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; background: var(--ink); color: #fff; padding: 2px 7px; border-radius: 2px; }

/* Motion on: set by work.js when GSAP loads and the visitor has not asked for reduced motion */
.motion .stage { height: 100svh; min-height: 560px; padding: 28px 40px 22px; gap: 20px; position: sticky; top: 0; }
.motion .story::after { content: ""; display: block; height: 260svh; }
.motion .stage-body { height: 100%; }
.motion .rail li { color: var(--grey); transition: color var(--dur-hover) var(--ease); }
.motion .rail li.on { color: var(--ink); }
.motion .captions li { grid-area: 1 / 1; opacity: 0; translate: 0 8px; transition: opacity var(--dur-ui) var(--ease), translate var(--dur-ui) var(--ease); }
.motion .captions li.on { opacity: 1; translate: 0 0; }
.motion .cat-page .proof { height: max(360px, calc(100svh - 236px)); }
.motion .spread .proof { width: auto; max-width: 100%; max-height: calc(100svh - 236px); }
.motion .doc, .motion .chip, .motion .slot { will-change: transform; }

.services .row { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.services p { color: var(--paper-text); }
.steps-list { display: grid; border-top: 2px solid var(--ink); max-width: 760px; padding: 0; list-style: none; margin: 0; }
.steps-list li { display: grid; grid-template-columns: 48px 1fr; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--rule); color: var(--paper-text); }
.steps-list .n { font-family: var(--head); font-variant-numeric: tabular-nums lining-nums; font-weight: 750; font-size: 21px; color: var(--ink); }
.steps-list li b { color: var(--ink); font-weight: 650; }

.contact { display: grid; gap: 18px; max-width: 620px; }
.contact label { display: grid; gap: 6px; font-weight: 600; font-size: 16px; }
.contact input, .contact textarea { font: 17px/1.45 var(--sans); color: var(--ink); background: #fff; border: 1.5px solid var(--rule); border-radius: 6px; padding: 12px 14px; width: 100%; }
.contact textarea { resize: vertical; min-height: 140px; }
.contact input:hover, .contact textarea:hover { border-color: #9AA39F; }
.contact input:focus-visible, .contact textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; border-color: var(--ink); }
.contact ::placeholder { color: #6B716F; }
.contact .trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.mail-line a { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.sent + .not-sent + .mail-line, .mail-line { margin-top: 0; }
.sent:target ~ .mail-line, .not-sent:target ~ .mail-line { margin-top: 18px; }
.sent, .not-sent { display: none; }
.sent:target, .not-sent:target { display: block; }

/* Phones and tablets */
@media (max-width: 900px) {
  .story { margin-top: 80px; }
  .stage { padding: 28px 20px 24px; gap: 24px; }
  .stage-body { grid-template-columns: 1fr !important; gap: 24px; }
  .cat-sheet { justify-self: stretch; max-width: none; }
  .cat-page { justify-self: center; }
  .cat-page .proof { height: auto; width: 100%; }
  .rail li { min-width: 0; flex: 1; }
  .ledger.services .row { grid-template-columns: 1fr; gap: 6px; }
  .work-top .body { display: flex; }
  .work-top .top-proof { order: 9; padding: 0 0 40px 32px; }
  .work-top .top-proof .proof { height: auto; width: 100%; }
  .work-top .top-proof .file { width: 230px; }
  .sheet { grid-template-columns: 1fr; }
  .sheet > .body { padding: 32px 24px; }
  .sheet > .margin { padding: 28px 24px; }
  .sheet > .margin { border-left: 0; border-top: 1px solid var(--rule); }
  .sheet > .margin:empty { display: none; }
  .hero { display: flex; flex-direction: column; gap: 22px; padding: 32px 24px; }
  .hero > .body { display: contents; }
  .hero > .margin { order: 2; padding: 18px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: auto 1fr; gap: 8px 24px; align-items: start; }
  .hero .margin .revision { margin-top: 0; grid-row: span 2; }
  .hero .rounds { order: 3; }
  .live > .margin { display: grid; grid-template-columns: auto 1fr; gap: 8px 24px; align-items: start; }
  .live > .margin .revision { margin-top: 0; grid-row: span 3; }
  .live > .margin .replay { margin-top: 6px; }
  .cw-stage { display: flex; flex-direction: column; gap: 24px; padding: 32px 24px; }
  .cw-stage > .body, .cw-canvas, .cw-stage > .margin { display: contents; }
  .cw-stage .h2 { order: 0; }
  .cw-chart { order: 1; }
  .cw-change { order: 2; justify-items: stretch; }
  .cw-change .stamp { justify-self: start; }
  .cw-page { order: 3; justify-self: center; align-self: center; margin-top: 16px; }
  .cw-final { order: 4; }
  .panels { grid-template-columns: 1fr 1fr; }
  .panels figure:last-child { display: none; }
  .ledger .row { grid-template-columns: 1fr auto; }
  .ledger .row .amount { justify-self: end; }
  .ledger ul { grid-column: 1 / -1; }
  .ledger .row .btn { grid-column: 1 / -1; justify-self: start; }
  .qa { grid-template-columns: 1fr; }
  .qa dt { border-bottom: 0; padding-bottom: 4px; }
  .qa dd { padding-top: 0; }
  .product-entry { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .sheet > .body { padding: 28px 18px; }
  .sheet > .margin { padding: 24px 18px; }
  .hero { padding: 28px 18px; }
  .hero > .margin { padding: 18px 0; }
  .top { flex-wrap: wrap; gap: 10px 20px; }
  .top .brand img { width: 150px; height: auto; }
  .strip { grid-template-columns: 1fr; }
  .hero .margin { grid-template-columns: 1fr; }
  .foot nav { margin-left: 0; }
}

@media (max-width: 560px) {
  .opt { display: none; }
  .data td, .data th { white-space: nowrap; }
  .file { padding: 16px; }
  .docs { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .doc { padding: 5px; }
  .doc span { display: none; }
  .captions { font-size: 16px; }
  .results b { font-size: 21px; }
}
@media (max-width: 900px) {
  .motion .stage { padding: 16px 16px 14px; gap: 12px; min-height: 0; }
  .motion .story::after { height: 180svh; }
  .motion .stage-head { gap: 10px; }
  .motion .stage .h2 { font-size: 26px; }
  .motion .story-meta, .motion .stage .file-foot, .motion .cat-sheet tr:not([data-slot]) { display: none; }
  .motion .stage-body { display: flex; flex-direction: column; justify-content: center; align-items: stretch; gap: 14px; }
  .motion .cat-page, .motion .spread { align-self: center; }
  .motion .stage .file { padding: 10px 12px; }
  .motion .stage .file-name { font-size: 15px; padding-bottom: 6px; margin-bottom: 2px; }
  .motion .stage .data { font-size: 13px; }
  .motion .stage .data td, .motion .stage .data th { padding-top: 3px; padding-bottom: 3px; }
  .motion .cat-page .proof { height: max(260px, calc(100svh - 470px)); width: auto; }
  .motion .docs { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; }
  .motion .doc { aspect-ratio: 1.15; }
  .motion .doc span { display: none; }
  .motion .xl { font-size: 13px; }
  .motion .xl th, .motion .xl td { padding: 3px 6px; }
  .motion .doc i { display: none; }
  .motion .say, .motion .mail p:not(.opt) { font-size: 15px; }
  .motion .mail .say li { padding: 1px 0 1px 14px; }
  .motion .spread .proof { width: 100%; max-height: none; }
  .motion .fit-tag { padding: 0 4px; }
  .motion .stage-foot { padding-top: 10px; }
  .motion .results { gap: 2px 18px; font-size: 15px; }
  .motion .results b { font-size: 21px; }
  .motion .captions { font-size: 15px; }
  .rail { font-size: 13px; }
  .rail li { padding-right: 8px; }
}

/* Page changes: the header holds still, the page crossfades */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .top { view-transition-name: top; }
  ::view-transition-old(root) { animation: var(--dur-hover) var(--ease-exit) both vt-out; }
  ::view-transition-new(root) { animation: var(--dur-ui) var(--ease) both vt-in; }
}
@keyframes vt-out { to { opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; translate: 0 8px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; transition-delay: 0s !important; }
  .played[data-round] .stamp { animation: none; }
  [data-round="2"] .rounds .rise, [data-round="2"] .mark, [data-round="2"] .new, [data-round="2"] .swap > .r2, .played .bar-tag { animation: fade var(--dur-hover) var(--ease); }
  .rounds .rise img, .rounds .tags { transform: none; }
  [data-round="1"] .rounds .rise, [data-round="1"] .bar-tag { opacity: 0; }
  html { scroll-behavior: auto; }
}
