/* Stoop & Cornice Builders (sample). Architectural monograph: Spectral + Chivo, paper, ink, one brownstone accent. */
@font-face { font-family: "Spectral"; font-style: normal; font-weight: 300; font-display: swap; src: url("fonts/spectral-300.woff2") format("woff2"); }
@font-face { font-family: "Spectral"; font-style: italic; font-weight: 300; font-display: swap; src: url("fonts/spectral-300i.woff2") format("woff2"); }
@font-face { font-family: "Spectral"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/spectral-400.woff2") format("woff2"); }
@font-face { font-family: "Chivo"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("fonts/chivo-vf.woff2") format("woff2"); }

:root {
  --paper: #F6F6F3;
  --ink: #1C1A17;
  --ink-2: #57554F;
  --rule: #D5D4CD;
  --brown: #6B3426;
  --veil: rgba(28, 26, 23, 0.74);
  --serif: "Spectral", "Iowan Old Style", Georgia, serif;
  --sans: "Chivo", "Helvetica Neue", Arial, sans-serif;
  --fs-xs: 12.5px;
  --fs-s: 14px;
  --fs-m: 17px;
  --fs-l: 24px;
  --fs-xl: clamp(34px, 3.2vw, 48px);
  --fs-q: clamp(36px, 4.2vw, 62px);
  --fs-xxl: clamp(60px, 6.6vw, 96px);
  --gut: 16px;
  --bar: 56px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
* { -webkit-tap-highlight-color: transparent; }
html { background: var(--paper); color: var(--ink); overscroll-behavior-y: none; -webkit-text-size-adjust: 100%; scrollbar-color: var(--rule) var(--paper); }
body { margin: 0; background: var(--paper); font-family: var(--serif); font-size: var(--fs-m); line-height: 1.55; overscroll-behavior-y: none; overflow-x: clip; caret-color: var(--brown); -webkit-font-smoothing: antialiased; padding-bottom: calc(var(--bar) + env(safe-area-inset-bottom)); }
::selection { background: transparent; color: var(--brown); }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; }
button, input, select, textarea { font: inherit; color: inherit; }
p, h1, h2, ul, ol, dl, dd, figure, blockquote { margin: 0; }
p, li, dd { text-wrap: pretty; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--brown); outline-offset: 3px; }
input:focus-visible, textarea:focus-visible { outline: none; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px; }
.i { width: 18px; height: 18px; flex: none; }
.skip { position: fixed; left: 16px; top: 12px; z-index: 50; background: var(--ink); color: var(--paper); padding: 12px 16px; font: 600 var(--fs-s)/1 var(--sans); text-decoration: none; transform: translateY(-160%); }
.skip:focus-visible { transform: none; }

/* type */
h1 span { display: block; color: var(--brown); }
h1 { font-family: var(--serif); font-weight: 300; font-size: var(--fs-xxl); line-height: 1; letter-spacing: -0.025em; text-wrap: balance; }
h2 { font-family: var(--serif); font-weight: 300; font-size: var(--fs-xl); line-height: 1.08; letter-spacing: -0.015em; margin-bottom: 0.45em; text-wrap: balance; }
.lede { font-size: var(--fs-l); font-weight: 300; line-height: 1.3; max-width: 26em; text-wrap: pretty; }
.deck { max-width: 31em; text-wrap: pretty; }
.rh { font-family: var(--sans); font-size: var(--fs-xs); font-weight: 500; line-height: 1.2; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }
.tag { display: inline-block; font-family: var(--sans); font-size: var(--fs-xs); font-weight: 600; line-height: 1.25; letter-spacing: 0.03em; color: var(--brown); border: 1px solid currentColor; padding: 2px 6px; white-space: nowrap; vertical-align: 1px; }
.rating { font-family: var(--sans); font-size: var(--fs-s); color: var(--ink-2); margin-top: 14px; }

/* controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; background: var(--brown); color: var(--paper); border: 0; border-radius: 0; font-family: var(--sans); font-size: var(--fs-s); font-weight: 600; letter-spacing: 0.02em; line-height: 1; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color 0.12s; }
.btn:hover { background: var(--ink); }
.call { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; font-family: var(--sans); font-size: var(--fs-s); font-weight: 500; white-space: nowrap; }
.call:hover, .more:hover, .c-links a:hover, .papers a:hover { color: var(--brown); }
.link-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0; background: none; border: 0; font-family: var(--sans); font-size: var(--fs-s); font-weight: 500; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; white-space: nowrap; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; background: none; border: 0; color: var(--paper); cursor: pointer; }
.more { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-family: var(--sans); font-size: var(--fs-s); font-weight: 600; color: var(--ink); text-decoration: none; white-space: nowrap; }

/* plates */
.plate { position: relative; }
.plate img { width: 100%; height: 100%; object-fit: cover; }
.plate figcaption { font-family: var(--sans); font-size: var(--fs-xs); color: var(--ink-2); margin-top: 10px; }

/* the page turn: plates open from the spine */
html.turn .reveal { clip-path: inset(0 50% 0 50%); }
html.turn .reveal[data-from="spine"], html.turn .reveal[data-from="left"] { clip-path: inset(0 100% 0 0); }
html.turn .reveal.on { clip-path: inset(0 0 0 0); transition: clip-path 0.28s var(--ease); }

/* before and after */
.cmp { position: relative; overflow: hidden; aspect-ratio: 4 / 3; touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: ew-resize; background: var(--ink); --pos: 50%; }
.cmp img, .cmp-after { position: absolute; inset: 0; width: 100%; height: 100%; }
.cmp img { object-fit: cover; pointer-events: none; }
.cmp-after { clip-path: inset(0 0 0 var(--pos)); }
.cmp-tag, .cmp-note, .tile-cap { position: absolute; font-family: var(--sans); font-size: var(--fs-xs); line-height: 1.2; color: var(--paper); background: var(--veil); padding: 6px 8px; }
.cmp-tag { top: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.cmp-tag--b { left: 12px; }
.cmp-tag--a { right: 12px; }
.cmp-note { left: 12px; bottom: 12px; }
.cmp-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 44px; margin-left: -22px; padding: 0; background: none; border: 0; color: var(--ink); cursor: ew-resize; touch-action: pan-y; }
.cmp-handle::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; margin-left: -0.5px; background: var(--paper); }
.cmp-handle:focus-visible { outline: none; }
.knob { position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; transform: translate(-50%, -50%); display: grid; place-items: center; background: var(--paper); }
.cmp-handle:focus-visible .knob { outline: 2px solid var(--brown); outline-offset: 3px; }

/* facts and quotes */
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; }
.facts > div:nth-child(n + 3) { grid-column: 1 / -1; }
.facts dt { font-family: var(--sans); font-size: var(--fs-xs); font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }
.facts dd { font-family: var(--sans); font-size: var(--fs-s); font-weight: 600; margin-top: 4px; font-variant-numeric: tabular-nums; }
.said { margin-top: 22px; }
.said p { font-style: italic; max-width: 32em; text-wrap: pretty; }
.said footer, .pull footer, .who { font-family: var(--sans); font-size: var(--fs-s); color: var(--ink-2); margin-top: 8px; }
.more { margin-top: 10px; }

/* page scaffolding, phone first */
.book { display: block; }
.spread { position: relative; padding: 44px var(--gut) 56px; border-top: 1px solid var(--rule); }
.spread:first-child { border-top: 0; padding-top: 18px; }
.page + .page { margin-top: 32px; }
.rh:not(header) { display: none; }

/* cover */
header.rh--v { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
header.rh--v > span:first-child { white-space: nowrap; }
.sp-cover .rh--v { margin-bottom: 36px; }
.sp-cover .rh--r { display: none; }
.cover-title h1 { margin-bottom: 18px; }
.acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin-top: 26px; }
.plate--cover img { aspect-ratio: 3 / 4; max-height: calc(var(--app-h, 800px) * 0.72); }

/* contents */
.toc li a { display: grid; grid-template-columns: 44px 1fr; align-items: baseline; padding: 12px 0; border-top: 1px solid var(--rule); text-decoration: none; min-height: 44px; }
.toc li:last-child a { border-bottom: 1px solid var(--rule); }
.toc-n { font-size: var(--fs-l); font-weight: 300; color: var(--brown); font-variant-numeric: lining-nums tabular-nums; line-height: 1; }
.toc-t { font-size: var(--fs-m); line-height: 1.3; }
.toc-m { grid-column: 2; font-family: var(--sans); font-size: var(--fs-s); color: var(--ink-2); }
.toc li a:hover .toc-t { color: var(--brown); }
.fore { display: grid; gap: 22px; }
.fore-text { display: grid; gap: 12px; max-width: 34em; }
.plate--fore img { aspect-ratio: 4 / 5; max-height: calc(var(--app-h, 800px) * 0.6); }

/* project */
.sp-project .cmp { margin: 0 calc(var(--gut) * -1) 24px; }
.sp-project .lede { font-size: var(--fs-m); }

/* pull quote */
.pull p { font-size: var(--fs-q); font-style: italic; font-weight: 300; line-height: 1.12; letter-spacing: -0.015em; max-width: 13em; text-wrap: balance; }
.pull footer { margin-top: 22px; }
.plate--quote img { aspect-ratio: 4 / 5; max-height: calc(var(--app-h, 800px) * 0.7); }

/* process */
.side { font-family: var(--sans); font-size: var(--fs-s); color: var(--ink-2); max-width: 34em; }
.sp-process .page + .page { margin-top: 14px; }
.gantt { margin-top: 26px; }
.g-ruler, .g-rows li { display: grid; grid-template-columns: 1fr; }
.g-ruler { font-family: var(--sans); font-size: var(--fs-xs); color: var(--ink-2); }
.g-ruler .g-lab { display: none; }
.g-track { position: relative; grid-column: 1 / -1; height: 14px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' preserveAspectRatio='none'%3E%3Crect width='0.5' height='10' fill='%23D5D4CD'/%3E%3C/svg%3E"); background-size: calc(100% / 13) 100%; background-repeat: repeat-x; }
.g-ruler .g-track { height: 18px; background: none; }
.g-ruler .g-track span { position: absolute; left: calc(var(--k) * 100% / 26); top: 0; font-variant-numeric: tabular-nums; }
.g-ruler .g-track span:last-child { transform: translateX(-100%); }
.g-rows li { padding: 10px 0 12px; border-top: 1px solid var(--rule); row-gap: 4px; }
.g-rows .g-track { margin-top: 4px; }
.g-name { font-size: var(--fs-m); line-height: 1.25; }
.g-when { font-family: var(--sans); font-size: var(--fs-s); color: var(--ink-2); white-space: nowrap; }
.g-bar { position: absolute; top: 0; bottom: 0; left: calc(var(--s) * 100% / 26); width: calc((var(--e) - var(--s)) * 100% / 26); background: var(--brown); }
.g-bar--paper { background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--ink); }
.g-key { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 14px; font-family: var(--sans); font-size: var(--fs-s); color: var(--ink-2); }
.g-sw { display: inline-block; width: 22px; height: 12px; background: var(--brown); vertical-align: -1px; margin-right: 6px; }
.g-sw--paper { background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--ink); }
.g-item { display: inline-flex; align-items: center; }
.g-one { flex-basis: 100%; color: var(--ink); }

/* costs */
.bands { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.bands caption { caption-side: bottom; text-align: left; font-family: var(--sans); font-size: var(--fs-s); color: var(--ink-2); padding-top: 14px; }
.bands th, .bands td { text-align: left; padding: 12px 10px 12px 0; border-top: 1px solid var(--rule); vertical-align: baseline; }
.bands thead th { font-family: var(--sans); font-size: var(--fs-xs); font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); padding-top: 0; border-top: 0; }
.bands tbody th { font-weight: 400; font-size: var(--fs-m); }
.bands td { font-family: var(--sans); font-size: var(--fs-s); white-space: nowrap; }
.bands td:last-child { padding-right: 0; text-align: right; }
.bands tbody th { white-space: nowrap; }
@media (max-width: 699.98px) {
  .bands thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .bands tbody tr { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; border-top: 1px solid var(--rule); padding: 10px 0; }
  .bands tbody th { grid-column: 1 / -1; border: 0; padding: 0 0 2px; }
  .bands tbody td { border: 0; padding: 0; }
  .bands tbody tr:last-child > * { border-bottom: 0; }
  .bands tbody tr:last-child { border-bottom: 1px solid var(--rule); }
}
.bands thead th:last-child { text-align: right; padding-right: 0; }
.bands tbody tr:last-child > * { border-bottom: 1px solid var(--rule); }
.every li { padding: 12px 0; border-top: 1px solid var(--rule); color: var(--ink-2); line-height: 1.45; }
.every strong { display: block; font-family: var(--sans); font-size: var(--fs-s); font-weight: 600; color: var(--ink); margin-bottom: 2px; }
.papers { font-family: var(--sans); font-size: var(--fs-s); color: var(--ink-2); margin-top: 18px; max-width: 40em; }
.papers a { color: var(--ink); }

/* one year later */
.wall { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wall-head { grid-column: 1 / -1; margin-bottom: 8px; }
.wall-head p { color: var(--ink-2); max-width: 30em; }
.tile { position: relative; display: block; aspect-ratio: 1; padding: 0; border: 0; background: var(--ink); overflow: hidden; cursor: zoom-in; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease); }
.tile:hover img { transform: scale(1.03); }
.tile-cap { left: 8px; bottom: 8px; text-align: left; white-space: nowrap; max-width: calc(100% - 16px); overflow: hidden; text-overflow: ellipsis; }

/* back page */
.latest li { padding: 14px 0; border-top: 1px solid var(--rule); }
.latest li > p:first-child { font-style: italic; text-wrap: pretty; }
.latest-note { font-family: var(--sans); font-size: var(--fs-s); color: var(--ink-2); padding-top: 14px; border-top: 1px solid var(--rule); }
.colophon { margin-top: 30px; display: grid; gap: 10px; font-family: var(--sans); font-size: var(--fs-s); color: var(--ink-2); }
.c-name { font-family: var(--serif); font-size: var(--fs-l); font-weight: 300; color: var(--ink); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.open { color: var(--brown); font-weight: 600; white-space: nowrap; }
.c-links { display: flex; flex-direction: column; align-items: flex-start; color: var(--ink); }
@media (min-width: 360px) { .c-links { flex-direction: row; flex-wrap: wrap; gap: 0 20px; } }
.c-links a { display: inline-flex; align-items: center; min-height: 44px; }
.c-note { max-width: 40em; }

/* the form */
.est-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.est-step { font-family: var(--sans); font-size: var(--fs-xs); font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; }
.step { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 20px; }
.step[hidden], .done[hidden] { display: none; }
.f-lab { display: block; font-family: var(--sans); font-size: var(--fs-xs); font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 8px; }
.field { display: block; }
.field input { display: block; width: 100%; height: 46px; padding: 0; border: 0; border-bottom: 1px solid var(--ink-2); border-radius: 0; background: transparent; font-family: var(--sans); font-size: var(--fs-m); color: var(--ink); }
.field input::placeholder { color: var(--ink-2); opacity: 0.75; }
.field input:focus-visible { border-bottom-color: var(--brown); }
.chips { display: grid; grid-template-columns: 1fr; gap: 8px; }
.chip { position: relative; display: block; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.chip span { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 8px; border: 1px solid var(--rule); font-family: var(--sans); font-size: var(--fs-s); font-weight: 500; white-space: nowrap; transition: background-color 0.12s, color 0.12s, border-color 0.12s; }
.chip:hover span { border-color: var(--ink); }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip input:focus-visible + span { outline: 2px solid var(--brown); outline-offset: 2px; }
.err { display: block; font-family: var(--sans); font-size: var(--fs-s); color: var(--brown); font-weight: 600; margin-top: 8px; }
.err[hidden] { display: none; }
.prefilled { font-family: var(--sans); font-size: var(--fs-s); color: var(--brown); }
.prefilled[hidden] { display: none; }
.est-act { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; }
.photos { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.add-ph { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--ink); font-family: var(--sans); font-size: var(--fs-s); font-weight: 600; cursor: pointer; white-space: nowrap; }
.add-ph input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.add-ph:focus-within { outline: 2px solid var(--brown); outline-offset: 3px; }
.ph-note { font-family: var(--sans); font-size: var(--fs-s); color: var(--ink-2); }
.thumbs { display: flex; gap: 6px; flex-wrap: wrap; flex-basis: 100%; }
.thumbs:empty { display: none; }
.thumbs img { width: 44px; height: 44px; object-fit: cover; }
.pair { display: grid; gap: 20px; }
.done { display: grid; gap: 18px; }
.done:focus { outline: none; }
.done-h { font-size: var(--fs-l); font-weight: 300; line-height: 1.2; }
.done-sum { display: grid; gap: 0; }
.done-sum div { display: grid; grid-template-columns: 7.5em 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--rule); font-family: var(--sans); font-size: var(--fs-s); }
.done-sum dt { color: var(--ink-2); }
.done-sum dd { font-weight: 600; }
.done-line { max-width: 30em; }

/* foot bar: the folio line */
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; height: calc(var(--bar) + env(safe-area-inset-bottom)); padding: 0 var(--gut) env(safe-area-inset-bottom); display: flex; align-items: center; gap: 4px; background: var(--paper); font-family: var(--sans); font-size: var(--fs-s); }
.bar::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--rule); }
.bar-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; min-width: 44px; padding: 0 8px; text-decoration: none; font-weight: 500; white-space: nowrap; }
.bar-link:first-of-type { padding-left: 0; }
.bar-link:hover { color: var(--brown); }
.bar-at { display: none; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.bar-call { margin-left: auto; justify-content: center; }
.bar-num, .bar-callw { display: none; }
.btn--bar { min-height: 44px; padding: 0 14px; }
.fo { display: none; }
@media (min-width: 360px) { .bar-callw { display: inline; } .chips { grid-template-columns: 1fr 1fr; } }
@media (min-width: 400px) { .bar-at { display: block; flex: 1 1 auto; padding-left: 4px; } .bar-call { margin-left: 0; } }

/* viewer */
.viewer { border: 0; padding: 0; margin: auto; width: min(1100px, 100vw - 2 * var(--gut)); max-height: calc(var(--app-h, 100vh) - 32px); background: var(--ink); color: var(--paper); }
.viewer::backdrop { background: rgba(28, 26, 23, 0.88); }
.v-in { display: grid; }
.v-in img { width: 100%; aspect-ratio: 1; max-height: calc(var(--app-h, 800px) * 0.6); object-fit: cover; }
.v-side { padding: 18px 18px 10px; display: grid; gap: 10px; align-content: start; }
.v-cap { font-family: var(--sans); font-size: var(--fs-xs); letter-spacing: 0.06em; text-transform: uppercase; color: #CFC6B8; }
.v-q { font-size: var(--fs-l); font-style: italic; font-weight: 300; line-height: 1.3; }
.v-who { font-family: var(--sans); font-size: var(--fs-s); color: #CFC6B8; }
.v-who .tag { color: #E7C9B8; }
.v-nav { display: flex; gap: 4px; margin-left: -12px; }

/* landscape phones and short windows stay in the flowing layout */
@media (min-width: 700px) and (max-width: 1023.98px), (min-width: 1024px) and (max-height: 679.98px) {
  :root { --gut: 32px; }
  .facts { grid-template-columns: repeat(4, 1fr); }
  .facts > div:nth-child(n + 3) { grid-column: auto; }
  .chips { grid-template-columns: repeat(3, 1fr); }
  .chips--4 { grid-template-columns: repeat(4, 1fr); }
  .wall { grid-template-columns: repeat(3, 1fr); }
  .pair { grid-template-columns: 1fr 1fr; }
  .plate--cover img { aspect-ratio: 4 / 3; }
  .v-in { grid-template-columns: 1.3fr 1fr; }
  .v-in img { max-height: calc(var(--app-h, 800px) - 32px); }
}

/* ================= the open book (desktop) ================= */
@media (min-width: 1024px) and (min-height: 680px) {
  :root { --gut: 64px; --in: 48px; --top: 76px; --pb: 92px; }
  html { scroll-snap-type: y mandatory; }
  body { padding-bottom: 0; }
  .spread { height: var(--app-h, 100vh); display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: minmax(0, 1fr); padding: 0; border-top: 0; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; }
  .spread:first-child { padding-top: 0; }
  .spread::after { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 120px; margin-left: -60px; z-index: 3; pointer-events: none; background: linear-gradient(90deg, rgba(28, 26, 23, 0) 0%, rgba(28, 26, 23, 0.035) 38%, rgba(28, 26, 23, 0.11) 50%, rgba(28, 26, 23, 0.035) 62%, rgba(28, 26, 23, 0) 100%); }
  .page { position: relative; min-width: 0; min-height: 0; }
  .page + .page { margin-top: 0; }
  .page--v { padding: var(--top) var(--in) var(--pb) var(--gut); }
  .page--r { padding: var(--top) var(--gut) var(--pb) var(--in); }
  .rh { position: absolute; top: 30px; margin: 0; }
  .rh:not(header) { display: block; }
  .rh--v { left: var(--gut); }
  .rh--r { right: var(--gut); text-align: right; }
  .spread > .rh--r { right: var(--gut); }
  header.rh--v { display: flex; right: var(--in); justify-content: flex-start; gap: 14px; }
  .sp-cover .rh--r { display: block; }
  .sp-cover .rh--v { margin: 0; }

  /* cover */
  .sp-cover .page--v { display: flex; flex-direction: column; justify-content: flex-end; }
  .cover-title h1 { margin-bottom: 26px; }
  .cover-title .deck { max-width: 25em; }
  .cover-act { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--rule); }
  .acts { margin-top: 0; }
  .plate--cover { height: 100%; }
  .plate--cover img { aspect-ratio: auto; max-height: none; height: 100%; }
  .plate--cover figcaption { position: absolute; top: 100%; left: 0; }

  /* contents */
  .sp-contents .page--v { display: flex; flex-direction: column; }
  .toc li a { grid-template-columns: 56px 1fr auto; padding: 13px 0; }
  .toc-t { font-size: var(--fs-l); font-weight: 300; line-height: 1.15; }
  .toc-m { grid-column: 3; align-self: baseline; }
  .fore { height: 100%; grid-template-rows: auto minmax(0, 1fr); gap: 26px; }
  .fore-text { order: -1; }
  .plate--fore { min-height: 0; }
  .plate--fore img { aspect-ratio: auto; height: 100%; max-height: none; }

  /* project spreads: one plate across the gutter */
  .sp-project { grid-template-rows: minmax(0, 1fr) auto; }
  .sp-project .cmp { grid-column: 1 / -1; grid-row: 1; margin: var(--top) var(--gut) 0; aspect-ratio: auto; min-height: 0; }
  .sp-project .page { grid-row: 2; padding-top: 26px; }
  .sp-project .lede { font-size: var(--fs-l); }
  .sp-project h2 { margin-bottom: 0.3em; }
  .facts { grid-template-columns: 0.6fr 1fr 1fr 1.2fr; }
  .facts > div:nth-child(n + 3) { grid-column: auto; }
  .said { margin-top: 18px; }
  .more { margin-top: 4px; }

  /* pull quote */
  .sp-quote .page--v { display: flex; flex-direction: column; justify-content: center; }
  .plate--quote { height: 100%; }
  .plate--quote img { aspect-ratio: auto; height: 100%; max-height: none; }

  /* process */
  .sp-process { grid-template-rows: auto minmax(0, 1fr); }
  .sp-process .page { padding-bottom: 0; }
  .sp-process .page--r { display: flex; align-items: flex-end; justify-content: flex-end; }
  .sp-process .page + .page { margin-top: 0; }
  .gantt { grid-column: 1 / -1; grid-row: 2; align-self: center; margin: 0 var(--gut) calc(var(--pb) - 30px); }
  .g-ruler, .g-rows li { grid-template-columns: 250px 120px minmax(0, 1fr); column-gap: 0; align-items: center; }
  .g-ruler .g-lab { display: block; }
  .g-track { grid-column: 3; height: 18px; }
  .g-rows li { padding: 9px 0; row-gap: 0; }
  .g-name { font-size: var(--fs-m); }

  /* costs */
  .bands tbody th { font-size: var(--fs-l); font-weight: 300; }
  .h-r { margin-bottom: 0.45em; }

  /* one year later: one grid across the gutter */
  .sp-later { grid-template-rows: minmax(0, 1fr); }
  .wall { grid-column: 1 / -1; margin: var(--top) var(--gut) var(--pb); grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 22px; }
  .wall-head { grid-column: 1 / 3; margin: 0; align-self: end; padding-bottom: 6px; }
  .tile { aspect-ratio: auto; min-height: 0; height: 100%; }

  /* back page */
  .sp-back .page--v { display: flex; flex-direction: column; }
  .latest li { padding: 12px 0; }
  .colophon { margin-top: auto; padding-top: 24px; }
  .est { display: flex; flex-direction: column; height: 100%; }
  .est-head h2 { margin-bottom: 0.35em; }
  .step { gap: 18px; }
  .chips { grid-template-columns: repeat(3, 1fr); }
  .chips--4 { grid-template-columns: repeat(4, 1fr); }
  .pair { grid-template-columns: 1fr 1fr; }

  /* the folio line */
  .bar { padding: 0 var(--gut); gap: 0; height: var(--bar); }
  .bar::before { left: var(--gut); right: var(--gut); }
  .fo { display: inline-block; position: relative; overflow: hidden; height: 20px; min-width: 2.2em; font-family: var(--serif); font-size: var(--fs-m); line-height: 20px; color: var(--brown); font-variant-numeric: lining-nums tabular-nums; }
  .fo span { display: block; }
  .fo--r { text-align: right; }
  .bar-link:first-of-type { padding-left: 8px; }
  .bar-at { display: block; flex: 1 1 auto; padding-left: 14px; }
  .bar-call { margin-left: 0; }
  .bar-num { display: inline; }
  .bar-callw { display: none; }
  .btn--bar { margin: 0 18px 0 8px; }

  .viewer { width: min(1120px, 100vw - 128px); }
  .v-in { grid-template-columns: 1.4fr 1fr; }
  .v-in img { max-height: calc(var(--app-h, 900px) - 64px); }
  .v-side { padding: 28px 28px 18px; align-content: end; }
}

@media (min-width: 1600px) and (min-height: 680px) {
  :root { --gut: 88px; --in: 64px; --top: 84px; }
}

/* folio tick */
html.turn .fo span.tick { animation: tick 0.2s var(--ease); }
@keyframes tick { from { transform: translateY(70%); } to { transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html.turn .reveal { clip-path: none; }
  .tile img, .btn, .chip span { transition: none; }
  .fo span.tick { animation: none; }
}

/* short laptop screens: a little less top and bottom margin so the back page's last line is never cut off */
@media (min-width: 1024px) and (min-height: 680px) and (max-height: 820px) { :root { --top: 68px; --pb: 80px; } }

/* ================= FIRST SCREEN (2026-10-21) =================
   Cover photo runs across the gutter like a magazine opener: on desktop it fills the right page, bleeds top and bottom
   and crosses onto the left page; the title and the deck keep a narrow column. On phones the photo leads. */
@media (max-width: 1023px), (max-height: 679px) {
  .sp-cover { display: flex; flex-direction: column; padding-top: 14px; }
  .sp-cover .page--v { display: contents; }
  .sp-cover .rh--v { order: 0; margin-bottom: 14px; }
  .sp-cover .page--r { order: 1; margin: 0 calc(-1 * var(--gut)); }
  .sp-cover .cover-title { order: 2; margin-top: 18px; }
  .sp-cover .cover-act { order: 3; }
  .sp-cover .cover-title h1 { font-size: clamp(40px, 11vw, 56px); margin-bottom: 12px; }
  .sp-cover .acts { margin-top: 18px; }
  .plate--cover img { aspect-ratio: auto; height: max(300px, calc(var(--app-h, 800px) * 0.52)); max-height: none; object-position: 50% 40%; }
  .plate--cover figcaption { position: absolute; right: 10px; bottom: 10px; margin: 0; padding: 4px 8px; background: var(--paper); }
}
@media (min-width: 1024px) and (min-height: 680px) {
  .sp-cover { grid-template-columns: minmax(0, 36fr) minmax(0, 64fr); }
  .sp-cover .page--v { padding-right: 40px; }
  .sp-cover .cover-title h1 { font-size: clamp(56px, 5.4vw, 84px); }
  .sp-cover .page--r { padding: 0; }
  .sp-cover .rh--r { display: none; }
  .plate--cover figcaption { top: auto; left: auto; right: 16px; bottom: calc(var(--bar, 56px) + 14px); padding: 5px 10px; background: var(--paper); }
  .plate--cover img { object-position: 50% 42%; }
}
