:root {
  --cream: #F5EAD9;
  --red: #D62828;
  --green: #2E7D32;
  --olive: #4F5B3A;
  --navy: #24364B;
  --char: #1F1F1A;
  --f-sans: "Jost", "Futura", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--cream); color: var(--char); }
body { font-family: var(--f-sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.chrome {
  position: fixed; inset: 0 0 auto 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 28px;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .04em;
  pointer-events: none;
}
.chrome a { pointer-events: auto; border-bottom: 1px solid currentColor; }
.chrome__sec { opacity: 0; transition: opacity .4s; }
.chrome.show .chrome__sec { opacity: 1; }

.stage { position: relative; height: 100vh; overflow: hidden; }
.stage__gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.cue {
  position: absolute; left: 50%; bottom: 26px; translate: -50% 0;
  display: flex; align-items: center; gap: 14px;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .04em;
}
.cue i { width: 64px; height: 1px; background: var(--char); position: relative; overflow: hidden; }
.cue i::after { content: ""; position: absolute; inset: 0; background: var(--red); translate: -100% 0; animation: cue 2.2s cubic-bezier(.6,0,.2,1) infinite; }
@keyframes cue { 60%, 100% { translate: 100% 0; } }

/* Foreground type: sits in front of the sculpture */
.caption {
  position: absolute; left: 4vw; top: 10vh;
  pointer-events: none;
  opacity: 0; translate: 0 40px;
}
.caption__fig { font-family: var(--f-mono); font-size: 13px; margin-bottom: 14px; }
.caption__line {
  font-family: var(--f-sans); font-weight: 500;
  font-size: clamp(54px, 8.4vw, 150px); line-height: .9; letter-spacing: -.035em;
  color: var(--char);
}

/* Hover probe: a drafting readout, not a cursor toy */
.probe {
  position: fixed; z-index: 11; pointer-events: none;
  font-family: var(--f-mono); font-size: 11px; line-height: 1.35;
  background: var(--char); color: var(--cream);
  padding: 6px 9px; white-space: pre;
  opacity: 0; transition: opacity .15s;
}
.probe.on { opacity: 1; }

.next {
  min-height: 80vh; padding: 14vh 4vw;
  display: grid; grid-template-columns: 1fr 2fr; gap: 4vw; align-content: start;
  border-top: 1px solid var(--char);
}
.next__sec { font-family: var(--f-mono); font-size: 13px; }
.next__line { font-size: clamp(32px, 4.2vw, 64px); font-weight: 500; letter-spacing: -.03em; line-height: 1; max-width: 16ch; }
.next__link { grid-column: 2; font-family: var(--f-mono); font-size: 14px; border-bottom: 1px solid currentColor; justify-self: start; }

@media (max-width: 700px) {
  .next { grid-template-columns: 1fr; }
  .next__link { grid-column: 1; }
}

/* ═════════ §2.0 Projects ═════════ */
.sheet { position: relative; padding: 0 4.5vw 10vh; background: var(--cream); }
/* faint 12-column construction grid, same as the printed sheet above */
.sheet::before {
  content: ""; position: absolute; inset: 0 4.5vw; pointer-events: none;
  background: repeating-linear-gradient(90deg, rgba(31,31,26,.07) 0 1px, transparent 1px calc(100% / 12));
}
.sheet > * { position: relative; }

.runhead {
  display: flex; justify-content: space-between;
  padding: 72px 0 10px; border-bottom: 2px solid var(--char);
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
}

.sheet__intro {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 1.6vw;
  padding: 14vh 0 10vh;
}
.sheet__title {
  grid-column: 1 / span 8;
  font-weight: 500; letter-spacing: -.055em; line-height: .78;
  font-size: clamp(96px, 17vw, 300px);
  margin-left: -.04em;
}
.sheet__note {
  grid-column: 9 / span 4; align-self: end;
  font-size: clamp(17px, 1.35vw, 21px); line-height: 1.4; max-width: 30ch;
}

/* stage spectrum: one rule, four stops, complete → conceptual */
.spectrum {
  list-style: none;
  display: grid; grid-template-columns: repeat(5, 1fr);
  border-top: 2px solid var(--char);
  margin-bottom: 18vh;
}
.spectrum a { display: block; padding: 14px 0 0; position: relative; }
.spectrum a::before { /* the stop marker on the rule */
  content: ""; position: absolute; top: -8px; left: 0; width: 14px; height: 14px; border-radius: 50%;
  background: var(--cream); border: 2px solid var(--char);
}
.spectrum li:first-child a::before { background: var(--red); border-color: var(--red); }
.spectrum li:nth-child(2) a::before { background: linear-gradient(90deg, var(--red) 50%, var(--cream) 50%); border-color: var(--red); }
.spectrum li:nth-child(3) a::before { border-color: var(--red); }
.spectrum li:nth-child(4) a::before { border-style: dashed; }
.spectrum b { display: block; font-family: var(--f-mono); font-weight: 400; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; opacity: .6; }
.spectrum span { display: block; font-size: clamp(20px, 2vw, 30px); font-weight: 500; letter-spacing: -.03em; margin-top: 4px; transition: color .2s; }
.spectrum a:hover span { color: var(--red); }

/* plates */
.plate {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 1.6vw;
  align-items: end;
  padding: 0 0 22vh;
}
.plate__text { grid-column: 1 / span 5; grid-row: 1; }
.plate__fig  { grid-column: 6 / span 7; grid-row: 1; }
.plate--flip .plate__text { grid-column: 8 / span 5; }
.plate--flip .plate__fig  { grid-column: 1 / span 7; }

.plate__no {
  font-family: var(--f-mono); font-size: 13px; letter-spacing: .04em;
  border-top: 1px solid var(--char); padding-top: 8px; margin-bottom: 26px;
  display: flex; justify-content: space-between;
}
.plate__no span { text-transform: uppercase; opacity: .6; }
.plate__name {
  font-weight: 500; letter-spacing: -.05em; line-height: .82;
  font-size: clamp(64px, 8.6vw, 156px);
  margin: 0 0 28px -.04em;
}
.plate__lede { font-size: clamp(18px, 1.5vw, 23px); line-height: 1.35; max-width: 28ch; margin-bottom: 30px; }
.plate__spec { font-family: var(--f-mono); font-size: 13px; }
.plate__spec div { display: flex; justify-content: space-between; padding: 8px 0 6px; border-top: 1px solid rgba(31,31,26,.3); }
.plate__spec div:last-child { border-bottom: 1px solid rgba(31,31,26,.3); }
.plate__spec dt { text-transform: uppercase; letter-spacing: .06em; opacity: .6; }
.plate__spec dd { margin: 0; }

.plate__fig svg { width: 100%; height: auto; overflow: visible; display: block; }
.plate__fig figcaption { font-family: var(--f-mono); font-size: 12px; margin-top: 16px; padding-top: 8px; border-top: 1px solid rgba(31,31,26,.3); }

/* the mark's parts */
.part { fill: var(--red); stroke: var(--red); stroke-width: 0; transform-box: fill-box; transform-origin: 50% 50%; }
.guide { fill: none; stroke: var(--char); stroke-width: 1.5; stroke-dasharray: 6 6; opacity: .45; }
.dim { stroke: var(--char); stroke-width: 1.2; fill: none; }
.dimtxt { font-family: var(--f-mono); font-size: 18px; fill: var(--char); }

.plate--empty { display: block; padding-bottom: 14vh; max-width: 41%; }
.plate__tbd {
  border: 1.5px dashed rgba(31,31,26,.45);
  aspect-ratio: 595 / 285;
  display: grid; place-items: center;
  font-family: var(--f-mono); font-size: 13px; opacity: .7;
}

.sheet__foot {
  display: flex; justify-content: space-between; border-top: 2px solid var(--char); padding-top: 10px;
  font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em;
}
.sheet__foot a { border-bottom: 1px solid currentColor; }

@media (max-width: 800px) {
  .sheet__title, .sheet__note { grid-column: 1 / -1; }
  .sheet__note { margin-top: 28px; }
  .spectrum { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .plate__text, .plate__fig, .plate--flip .plate__text, .plate--flip .plate__fig { grid-column: 1 / -1; grid-row: auto; }
  .plate__fig { margin-top: 40px; }
  .plate--empty { max-width: none; }
  .runhead span:nth-child(2) { display: none; }
}

.chrome__nav { display: flex; gap: 22px; }
.sheet__foot .quiet { opacity: .45; border-bottom-color: transparent; }

/* Fig. 2.1: the Lancer gets a wider figure */
.plate--car .plate__text { grid-column: 1 / span 4; }
.plate--car .plate__fig { grid-column: 5 / span 8; }
.car { display: block; width: 100%; aspect-ratio: 2.1; }
@media (max-width: 800px) { .plate--car .plate__text, .plate--car .plate__fig { grid-column: 1 / -1; } }

/* Fig. 2.5: Chimborazo */
.mtn { width: 100%; height: auto; display: block; overflow: visible; }
.mtn text { font-family: var(--f-mono); font-size: 13px; fill: var(--char); }
.mtn .mtn__fine { font-size: 11.5px; opacity: .7; }
.mtn__axis line { stroke: var(--char); stroke-width: 1.2; }
.mtn__ticks text { text-anchor: end; font-size: 11px; opacity: .7; }
.mtn__ref { stroke-dasharray: 3 5; opacity: .45; }
.mtn__base { stroke-width: 2 !important; }
.mtn__rock { fill: var(--navy); }
.mtn__ice { fill: var(--cream); }
.mtn__hatch { fill: none; stroke: rgba(36,54,75,.25); stroke-width: 1; stroke-dasharray: 2 7; }
.mtn__edge { fill: none; stroke: var(--char); stroke-width: 1.6; }
.mtn__route { fill: none; stroke: var(--char); stroke-width: 2.2; stroke-dasharray: 1; stroke-dashoffset: 1; stroke-linejoin: round; }
.mtn__hut { fill: var(--char); }
.mtn__summit { fill: var(--red); }
.mtn__leader { stroke: var(--char); stroke-width: 1.2; stroke-dasharray: 3 4; }
.mtn__pin { stroke: var(--red); stroke-width: 2; }
.mtn__dot { fill: var(--red); }
.mtn__you text { fill: var(--red); }

/* Fig. 2.1: the real photos. The livery wipes over the car as it is. */
.lancer { position: relative; aspect-ratio: 946 / 322; --p: 0; }
.lancer__img { position: absolute; height: auto; max-width: none; display: block; }
.lancer__img--asis   { width: 105.71%; left: -3.07%; top: -31.99%; }
.lancer__img--livery { width: 108.46%; left: -4.45%; top: -3.24%; }
.lancer__paint {
  position: absolute; inset: 0;
  clip-path: polygon(0 0, max(0%, calc(var(--p) * 150% - 18%)) 0, max(0%, calc(var(--p) * 150% - 50%)) 100%, 0 100%);
}
.mtn-count { font-variant-numeric: tabular-nums; color: var(--red); }

/* Chimborazo: Church's painting, full bleed */
.bleed { margin: 0 -4.5vw 12vh; }
.bleed__frame { height: 82vh; overflow: hidden; }
.bleed__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; display: block; transform-origin: 50% 60%; }
.bleed figcaption { display: flex; justify-content: space-between; gap: 20px; padding: 10px 4.5vw 0; font-family: var(--f-mono); font-size: 12px; }

/* Fig. 2.5: Humboldt's plate with the route drawn on */
.humb { position: relative; }
.humb img { width: 100%; height: auto; display: block; }
.humb__over { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.humb__route { fill: none; stroke: var(--red); stroke-width: 3.5; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.humb__hut { fill: var(--char); stroke: var(--cream); stroke-width: 2; }
.humb__summit { fill: var(--red); stroke: var(--cream); stroke-width: 3; }
.humb__pin { stroke: var(--red); stroke-width: 3; }
.humb__dot { fill: var(--red); stroke: var(--cream); stroke-width: 3; }
.humb__chip rect { fill: var(--char); }
.humb__chip text { fill: var(--cream); font-family: var(--f-mono); font-size: 14px; }
.humb__chip--red rect { fill: var(--red); }


/* ═════ Negative space + bleed: recomposed plates (desktop) ═════ */
.sheet { overflow: hidden; }
.sheet::before { display: none; }                         /* no wireframe grid on the projects sheet */
.plate { padding-bottom: 34vh; column-gap: 1.6vw; }
.plate__name { will-change: transform; }
.plate__lede { font-size: clamp(16px, 1.15vw, 19px); max-width: 26ch; }

/* 2.1 Lancer: small text, the car enormous and running off the right edge */
#p-lancer .plate__text { grid-column: 1 / span 3; align-self: end; position: relative; z-index: 2; }
#p-lancer .plate__fig  { grid-column: 4 / -1; width: 128%; margin-right: -28%; }
#p-lancer figcaption   { max-width: 46%; }

/* 2.2 CL175: the parts scattered off the left edge, text far right */
#p-cl175 .plate__fig  { grid-column: 1 / span 8; width: 135%; margin-left: -38%; }
#p-cl175 .plate__text { grid-column: 10 / span 3; }
#p-cl175 figcaption   { margin-left: 30%; }

/* 2.3 RAMPART: large, pushed to the right edge, half off */
#p-rampart .plate__text { grid-column: 1 / span 3; }
#p-rampart .plate__fig  { grid-column: 6 / -1; width: 120%; margin-right: -20%; }
#p-rampart figcaption   { max-width: 60%; }

/* 2.4 Stander & Co.: only an idea, so small, alone in a big empty field */
#p-stander { min-height: 110vh; align-items: center; }
#p-stander .plate__fig  { grid-column: 5 / span 3; grid-row: 1; align-self: center; }
#p-stander .plate__text { grid-column: 10 / span 3; grid-row: 1; align-self: end; }

/* 2.5 Chimborazo: the print cropped by the left edge of the screen */
#p-chimborazo .plate__fig  { grid-column: 1 / span 8; grid-row: 1; width: 118%; margin-left: -18%; }
#p-chimborazo .plate__text { grid-column: 10 / span 3; grid-row: 1; align-self: end; }
#p-chimborazo figcaption   { margin-left: 18%; }
.humb { transform-style: preserve-3d; }
.humb__over { will-change: transform, filter; }

@media (max-width: 800px) {
  #p-lancer .plate__fig { width: 150%; margin-right: 0; }
  #p-cl175 .plate__fig, #p-chimborazo .plate__fig { width: 130%; margin-left: -30%; }
  #p-rampart .plate__fig { width: 130%; }
  #p-stander .plate__fig { width: 46%; margin: 16vh 0 10vh 30%; }
  #p-lancer figcaption, #p-cl175 figcaption, #p-chimborazo figcaption, #p-rampart figcaption { margin-left: 0; max-width: 90%; }
  .plate { padding-bottom: 22vh; }
}

/* hero: the corner nav waits until the page has started to stand up (keeps the printed sheet clean) */
.chrome__nav { transition: opacity .4s; }
.chrome:not(.show) .chrome__nav { opacity: 0; pointer-events: none; }
@media (max-aspect-ratio: 1/1) { .cue { display: none; } }
#p-chimborazo .plate__text { grid-column: 9 / span 4; }
@media (max-width: 800px) {
  #p-lancer .plate__text, #p-cl175 .plate__text, #p-rampart .plate__text, #p-stander .plate__text, #p-chimborazo .plate__text,
  #p-lancer .plate__fig, #p-cl175 .plate__fig, #p-rampart .plate__fig, #p-stander .plate__fig, #p-chimborazo .plate__fig { grid-column: 1 / -1; grid-row: auto; }
  #p-stander { min-height: 0; }
  #p-lancer .plate__fig { width: 165%; margin-left: 0; }
  #p-lancer figcaption { max-width: 60%; }
}

/* ═════ The menu is the mark ═════ */
.dock {
  position: fixed; top: 12px; right: 22px; z-index: 40;
  display: flex; align-items: center; gap: 10px; flex-direction: row-reverse;
  padding: 6px; cursor: pointer;
}
.dock svg { width: 54px; height: auto; overflow: visible; display: block; }
.dock__p { fill: var(--red); transition: transform .35s cubic-bezier(.2,.8,.1,1); transform-box: fill-box; }
.dock__label { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; opacity: 0; transform: translateX(6px); transition: opacity .25s, transform .25s; }
.dock.is-docked:hover .dock__label, .dock:focus-visible .dock__label { opacity: 1; transform: none; }
.dock.is-docked:hover .dock__p--0 { transform: translate(-6px, 3px); }
.dock.is-docked:hover .dock__p--1 { transform: translate(-2px, 6px); }
.dock.is-docked:hover .dock__p--2 { transform: translate(5px, -5px); }
.dock.is-docked:hover .dock__p--3 { transform: translate(7px, 4px); }
.dock:not(.is-docked) { pointer-events: none; }
.traveller { position: fixed; left: 0; top: 0; z-index: 41; fill: var(--red); pointer-events: none; opacity: 0; transform-origin: 50% 50%; overflow: visible; }
.chrome__nav { display: none; }

/* open: the one place the site floods green */
.index {
  position: fixed; inset: 0; z-index: 60;
  background: var(--green); color: var(--cream);
  display: grid; grid-template-columns: repeat(12, 1fr); grid-template-rows: auto 1fr auto; column-gap: 1.6vw;
  padding: 18px 4.5vw 22px;
}
.index[hidden] { display: none; }
.index__head { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: baseline; font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; border-bottom: 2px solid var(--cream); padding-bottom: 10px; }
.index__close { font: inherit; color: inherit; letter-spacing: inherit; text-transform: inherit; border: 0; border-bottom: 1px solid currentColor; padding: 0; cursor: pointer; background: none; }
.index__mark { grid-column: 1 / span 7; align-self: center; width: 100%; height: auto; overflow: visible; }
.index__p { fill: var(--cream); cursor: pointer; transition: fill .2s; transform-box: fill-box; }
.index__p.is-hot { fill: var(--red); }
.index__doors { list-style: none; grid-column: 9 / span 4; align-self: center; }
.index__door a { display: grid; grid-template-columns: 54px 1fr; column-gap: 12px; padding: 14px 0 16px; border-top: 1px solid rgba(245,234,217,.45); color: var(--cream); }
.index__door:last-child a { border-bottom: 1px solid rgba(245,234,217,.45); }
.index__sec { font-family: var(--f-mono); font-size: 12px; padding-top: 10px; }
.index__name { font-weight: 500; font-size: clamp(30px, 3.4vw, 58px); letter-spacing: -.04em; line-height: .95; transition: transform .3s cubic-bezier(.2,.8,.1,1), color .2s; }
.index__note { grid-column: 2; font-family: var(--f-mono); font-size: 12px; opacity: .75; margin-top: 6px; }
.index__door.is-hot .index__name { transform: translateX(12px); color: var(--red); }
.index__door.is-here .index__sec::after { content: " ●"; color: var(--red); }
.index__foot { grid-column: 1 / -1; font-family: var(--f-mono); font-size: 11px; opacity: .7; }
.index-open body { overflow: hidden; }
@media (max-width: 800px) {
  .index__mark { grid-column: 1 / -1; align-self: end; width: 86%; margin: 0 auto; }
  .index__doors { grid-column: 1 / -1; align-self: start; }
  .index { grid-template-rows: auto 1fr auto auto; }
  .index__head span:nth-child(2) { display: none; }
}

.dock, .index__close { background: none; border: 0; border-radius: 0; color: inherit; -webkit-appearance: none; appearance: none; }
.index__close { border-bottom: 1px solid currentColor; }

/* ═════ Fig. 2.5: Chimborazo as a pop-up book ═════ */
.humb { perspective: 1500px; perspective-origin: 50% 20%; transform-style: flat; }
.humb__page {
  position: relative; transform-style: preserve-3d;
  transform-origin: 50% 88.8%;              /* the fold line: where the ground meets the mountain */
  background: #EFE3CE;                      /* card stock shows through where the mountain was cut out */
  box-shadow: 0 30px 60px -30px rgba(59,40,23,.35);
  will-change: transform;
}
.humb__base { width: 100%; height: auto; display: block; }
.humb__pop { position: absolute; inset: 0; transform-origin: 50% 88.8%; transform-style: preserve-3d; will-change: transform; pointer-events: none; }
.humb__pop img {
  width: 100%; height: 100%; display: block;
  filter: drop-shadow(0 calc(var(--sh, 0) * 26px) calc(var(--sh, 0) * 18px + 1px) rgba(40,26,12,.38));
}
.humb__over--page { position: absolute; inset: 0; width: 100%; height: 100%; }
.humb__pop .humb__over { position: absolute; inset: 0; width: 100%; height: 100%; }

@media (max-width: 800px) { #p-chimborazo figcaption { padding-left: 24%; } }

/* ═════ Exhibits: one 3D model on the page, full bleed, lots of air ═════ */
.exhibit { position: relative; margin: 0 -4.5vw 24vh; height: 92vh; min-height: 520px; }
.exhibit__gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; }
.exhibit__gl.is-grabbing { cursor: grabbing; }
.exhibit__label { position: absolute; left: 4.5vw; bottom: 9vh; max-width: 30ch; pointer-events: none; }
.exhibit__no { font-family: var(--f-mono); font-size: 12px; letter-spacing: .04em; border-top: 1px solid var(--char); padding-top: 8px; margin-bottom: 14px; }
.exhibit__title { font-weight: 500; font-size: clamp(40px, 4.6vw, 80px); letter-spacing: -.045em; line-height: .9; margin-bottom: 14px; }
.exhibit__tag { font-family: var(--f-mono); font-size: 13px; color: var(--red); margin-bottom: 10px; }
.exhibit__note { font-size: 15px; line-height: 1.4; }
.exhibit__credit { position: absolute; right: 4.5vw; bottom: 9vh; font-family: var(--f-mono); font-size: 11px; opacity: .6; max-width: 34ch; text-align: right; }
.exhibit__status { position: absolute; left: 50%; top: 50%; translate: -50% -50%; font-family: var(--f-mono); font-size: 12px; opacity: .6; pointer-events: none; }
.exhibit--evo .exhibit__label { left: auto; right: 4.5vw; bottom: auto; top: 10vh; text-align: left; }
.exhibit--evo .exhibit__credit { right: auto; left: 4.5vw; text-align: left; }
.exhibit__pin {
  position: absolute; left: 0; top: 0; pointer-events: none; white-space: nowrap;
  font-family: var(--f-mono); font-size: 12px; background: var(--char); color: var(--cream);
  padding: 4px 8px; translate: 12px -50%; opacity: 0; transition: opacity .3s;
}
.exhibit__pin--red { background: var(--red); }
@media (max-width: 800px) {
  .exhibit { height: 78vh; margin-bottom: 14vh; }
  .exhibit--evo .exhibit__label, .exhibit__label { left: 4.5vw; right: 4.5vw; top: auto; bottom: 6vh; }
  .exhibit__credit, .exhibit--evo .exhibit__credit { top: 2vh; bottom: auto; left: 4.5vw; right: 4.5vw; text-align: left; }
}

/* ═════ One spot per project: the model fills the screen, the text sits in the empty corner ═════ */
.plate--exhibit { display: block; position: relative; padding: 0; margin-bottom: 26vh; }
.plate--exhibit .exhibit { margin: 0 -4.5vw; height: 100vh; min-height: 560px; }
.plate--exhibit .plate__text { position: absolute; z-index: 2; width: min(360px, 28vw); }
.plate--evo .plate__text { right: 0; top: 12vh; }
.plate--mtn .plate__text { left: 0; top: 10vh; }
.plate--exhibit .exhibit__credit { left: 4.5vw; right: auto; bottom: 7vh; text-align: left; max-width: 52ch; }
.plate--mtn .exhibit__credit { left: auto; right: 4.5vw; text-align: right; }
.plate--exhibit .exhibit__tag { color: var(--red); font-family: var(--f-mono); }

@media (max-width: 800px) {
  .plate--exhibit .plate__text { position: relative; width: auto; top: auto; left: auto; right: auto; margin-bottom: 2vh; }
  .plate--exhibit .exhibit { height: 72vh; min-height: 420px; }
  .plate--exhibit .exhibit__credit, .plate--mtn .exhibit__credit { left: 4.5vw; right: 4.5vw; top: auto; bottom: 2vh; text-align: left; }
}
#p-lancer.plate--exhibit .plate__text, #p-chimborazo.plate--exhibit .plate__text { position: absolute; grid-column: auto; align-self: auto; }
#p-lancer.plate--exhibit .plate__text { right: 0; left: auto; top: 12vh; }
#p-chimborazo.plate--exhibit .plate__text { left: 0; top: 10vh; }
@media (max-width: 800px) {
  #p-lancer.plate--exhibit .plate__text, #p-chimborazo.plate--exhibit .plate__text { position: relative; top: auto; left: auto; right: auto; }
}

.plate--mtn .exhibit__credit { left: 4.5vw; right: auto; text-align: left; max-width: 38ch; }
@media (max-width: 800px) {
  .plate--exhibit .exhibit__credit, .plate--mtn .exhibit__credit { top: 1vh; bottom: auto; left: 4.5vw; right: 4.5vw; text-align: left; max-width: none; }
}

/* the mark stays whole: parts change colour, never position */
.index__p { transition: fill .25s ease; }
.dock__p { transition: none; }
.dock.is-docked:hover .dock__p--0, .dock.is-docked:hover .dock__p--1, .dock.is-docked:hover .dock__p--2, .dock.is-docked:hover .dock__p--3 { transform: none; }
.dock svg { transition: transform .3s cubic-bezier(.2,.8,.1,1), filter .3s; }
.dock.is-docked:hover svg { transform: translateY(-3px); filter: drop-shadow(0 6px 6px rgba(59,40,23,.25)); }
.index__close:focus { outline: none; }
.index__close:focus-visible { outline: 1px solid var(--cream); outline-offset: 4px; }
.dock:focus { outline: none; }
.dock:focus-visible svg { outline: 1px solid var(--red); outline-offset: 4px; }

/* ═════ Contents: a real table of contents under the cover ═════ */
.contents { padding-bottom: 12vh; }
.contents__intro { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 1.6vw; padding: 16vh 0 9vh; }
.contents__title { grid-column: 1 / span 8; font-weight: 500; letter-spacing: -.055em; line-height: .78; font-size: clamp(90px, 15vw, 260px); margin-left: -.04em; }
.contents__note { grid-column: 9 / span 4; align-self: end; font-size: clamp(16px, 1.2vw, 19px); line-height: 1.4; max-width: 30ch; }
.toc { list-style: none; border-top: 2px solid var(--char); margin-bottom: 16vh; }
.toc__row > a, .toc__row.is-prep {
  display: grid; grid-template-columns: 70px minmax(0, 5fr) minmax(0, 4fr) 150px; align-items: baseline; gap: 2vw;
  padding: 18px 0 14px; border-bottom: 1px solid rgba(31,31,26,.35); position: relative;
}
.toc__no { font-family: var(--f-mono); font-size: 13px; }
.toc__name { font-weight: 500; letter-spacing: -.045em; line-height: .9; font-size: clamp(38px, 5vw, 86px); transition: transform .35s cubic-bezier(.2,.8,.1,1), color .2s; }
.toc__desc { font-size: 15px; line-height: 1.35; max-width: 40ch; }
.toc__state { font-family: var(--f-mono); font-size: 12px; text-align: right; text-transform: uppercase; letter-spacing: .06em; }
.toc__row > a .toc__state { color: var(--red); }
.toc__row > a:hover .toc__name, .toc__row > a:focus-visible .toc__name { transform: translateX(14px); color: var(--red); }
.toc__row > a:focus-visible { outline: none; }
.toc__row.is-prep { color: rgba(31,31,26,.38); }
.toc__row.is-prep .toc__name { font-weight: 400; }
@media (max-width: 800px) {
  .contents__title, .contents__note { grid-column: 1 / -1; }
  .contents__note { margin-top: 24px; }
  .toc__row > a, .toc__row.is-prep { grid-template-columns: 44px 1fr; row-gap: 6px; }
  .toc__desc { grid-column: 2; } .toc__state { grid-column: 2; text-align: left; }
}
.chapter .chrome__sec { opacity: 1; }

/* the menu button fades in rather than flying in */
.dock__p { transition: opacity .45s ease; }

/* ═════ Fig. 2.3: RAMPART character sheet — stamped in red ═════ */
.sheet-chars { position: relative; }
.chars { position: relative; display: flex; align-items: flex-end; gap: 4vw; height: min(68vh, 640px); padding: 0 2vw 34px; }
.chars__guide { position: absolute; left: 0; right: 0; top: var(--y); border-top: 1px dashed rgba(31,31,26,.18); }
.chars__base { position: absolute; left: 0; right: 0; bottom: 34px; border-top: 1.5px solid var(--char); }
.char { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; transform-origin: 50% 90%; }
.char img { display: block; height: 100%; width: auto; }
.char[data-turn] { aspect-ratio: 496 / 552; cursor: pointer; }
.char[data-turn] img { position: absolute; left: 0; bottom: 0; width: 100%; height: auto; opacity: 0; }
.char[data-turn] img.is-on { opacity: 1; }
.char__tag { position: absolute; left: 0; bottom: -30px; white-space: nowrap; font-family: var(--f-mono); font-size: 12px; }
.char__tag span { opacity: .55; margin-left: 8px; }
.js .char[data-stamp] { opacity: 0; }
@media (max-width: 800px) { .chars { height: 52vh; gap: 6vw; } }

#p-rampart .plate__fig.sheet-chars { grid-column: 5 / -1; width: auto; margin-right: 0; }
#p-rampart .plate__text { align-self: end; }


/* ═════ Fig. 2.2: the CL175, huge, the back half riding off the right edge ═════ */
#p-cl175 { padding-bottom: 30vh; }
#p-cl175.plate--bike .plate__text { grid-column: 1 / span 3; grid-row: 1; align-self: end; position: relative; z-index: 2; }
#p-cl175.plate--bike .plate__fig { grid-column: 4 / -1; grid-row: 1; width: 150%; margin: 0; }
.bike__frame img { display: block; width: 100%; height: auto; }
#p-cl175.plate--bike figcaption { margin-left: 0; max-width: 42%; }
@media (max-width: 800px) {
  #p-cl175.plate--bike .plate__fig { grid-column: 1 / -1; width: 190%; margin-top: 4vh; }
  #p-cl175.plate--bike figcaption { max-width: 48%; }
}
@media (max-width: 800px) {
  #p-cl175.plate--bike .plate__text { grid-column: 1 / -1; grid-row: auto; }
  #p-cl175.plate--bike .plate__fig { grid-row: auto; }
}

/* Fig. 2.3, phase-one sheet: the two of them share the width evenly, same height, same ink */
#p-rampart .chars { height: auto; gap: 3vw; padding-top: 2vw; }
#p-rampart .char[data-turn] { height: auto; flex: 1 1 0; max-width: 46%; }
#p-rampart .char[data-turn]::before { content: ""; display: block; padding-top: calc(552 / 496 * 100%); }
@media (max-width: 800px) {
  #p-rampart .plate__fig.sheet-chars { grid-column: 1 / -1; }
  #p-rampart .chars { gap: 6vw; padding-bottom: 46px; }
  #p-rampart .char[data-turn] { max-width: 47%; }
  #p-rampart .char__tag { bottom: -44px; font-size: 11px; }
  #p-rampart .char__tag span { display: block; margin: 2px 0 0; }
  #p-rampart figcaption { margin-top: 24px; }
}

/* ═════ Write-ups: each plate folds open to a few lines in his own voice ═════ */
.wu { grid-column: 1 / -1; grid-row: 2; margin-top: 7vh; border-top: 2px solid var(--char); border-bottom: 1px solid rgba(31,31,26,.3); }
.wu__btn {
  all: unset; box-sizing: border-box; cursor: pointer; width: 100%;
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 1.6vw; align-items: center;
  padding: 2vh 0 1.6vh;
}
.wu__no { grid-column: 1; font-family: var(--f-mono); font-size: 13px; letter-spacing: .04em; }
.wu__name {
  grid-column: 2 / span 9; font-weight: 500; letter-spacing: -.04em; line-height: .9;
  font-size: clamp(30px, 3.2vw, 56px);
  transition: color .2s, transform .35s cubic-bezier(.2,.8,.1,1);
}
.wu__sign { grid-column: 12; justify-self: end; position: relative; width: clamp(20px, 1.8vw, 30px); aspect-ratio: 1; }
.wu__sign::before, .wu__sign::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: currentColor;
  transition: rotate .45s cubic-bezier(.2,.8,.1,1);
}
.wu__sign::after { rotate: 90deg; }
.wu__btn[aria-expanded="true"] .wu__sign::after { rotate: 0deg; }
.wu__btn:hover .wu__name, .wu__btn:focus-visible .wu__name { color: var(--red); transform: translateX(12px); }
.wu__btn:hover .wu__sign, .wu__btn[aria-expanded="true"] .wu__sign { color: var(--red); }
.wu__btn:focus-visible { outline: 2px solid var(--red); outline-offset: 6px; }
.wu__body { overflow: hidden; }
.wu__inner {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 1.6vw; padding: 3vh 0 6vh;
  font-size: clamp(20px, 1.8vw, 30px); line-height: 1.34; letter-spacing: -.015em; text-wrap: pretty;
}
.wu__inner > p { grid-column: 2 / span 7; }
.plate--flip .wu__inner > p { grid-column: 6 / span 7; }
.wu__inner > p + p { margin-top: 1em; }
.wu__inner .wu__sig { margin-top: 2.4vh; font-family: var(--f-mono); font-size: 13px; letter-spacing: 0; color: var(--red); }
@media (max-width: 800px) {
  .wu { grid-row: auto; }
  .wu__no { grid-column: 1 / span 2; }
  .wu__name { grid-column: 3 / span 8; }
  .wu__inner > p, .plate--flip .wu__inner > p { grid-column: 1 / -1; }
}

/* 2.4 AO Paper: his mark, in his navy, rising like the sun it is */
#p-ao { min-height: 100vh; align-items: center; }
#p-ao .plate__fig  { grid-column: 1 / span 8; grid-row: 1; align-self: center; margin-left: -3vw; }
#p-ao .plate__text { grid-column: 10 / span 3; grid-row: 1; align-self: end; }
.ao { --navy: #142E49; }
.ao__mark { overflow: visible; }
.ao__guides { fill: none; stroke: var(--char); stroke-width: 1.5; stroke-dasharray: 6 6; opacity: .35; }
.ao__guides .ao__dim { stroke-dasharray: none; }
.ao__dimtxt { font-family: var(--f-mono); font-size: 22px; fill: var(--char); stroke: none; }
.ao__sun { fill: var(--navy); }
.ao__line { fill: none; stroke: var(--navy); stroke-width: 7; stroke-linecap: square; }
.ao__word { font-family: "Helvetica Neue", Arial, sans-serif; font-size: 66px; font-weight: 300; letter-spacing: 28px; fill: var(--navy); }
#p-ao figcaption { max-width: 60%; }
@media (max-width: 800px) {
  #p-ao { min-height: 0; }
  #p-ao .plate__fig, #p-ao .plate__text { grid-column: 1 / -1; grid-row: auto; margin-left: 0; }
}

/* 2.4 AO Paper: just the logo */
#p-ao { min-height: 0; align-items: center; }
#p-ao .plate__text { grid-column: 1 / span 4; grid-row: 1; align-self: end; }
#p-ao .plate__fig  { grid-column: 6 / -1; grid-row: 1; align-self: center; margin: 0; }
.ao__sun { filter: none; }
@media (max-width: 800px) { #p-ao .plate__text, #p-ao .plate__fig { grid-column: 1 / -1; grid-row: auto; } }

/* ═════ One weight for every project: same name size, same text column, same lede, spec and caption ═════ */
.plate { --name: clamp(44px, 4.5vw, 82px); --col: clamp(270px, 23vw, 380px); }
.plate .plate__name { font-size: var(--name); line-height: .86; margin: 0 0 24px -.04em; }
.plate .plate__text, .plate--exhibit .plate__text { width: var(--col); max-width: none; justify-self: start; }
.plate .plate__lede { font-size: clamp(16px, 1.15vw, 19px); max-width: none; margin-bottom: 26px; }
.plate .plate__fig figcaption, .plate .exhibit__credit { font-size: 12px; }
.plate--exhibit { margin-bottom: 22vh; }
@media (max-width: 800px) { .plate .plate__text, .plate--exhibit .plate__text { width: auto; } }

/* chapter pages: the running head sits on a strip of the page, so text scrolls under it, not through it */
.chapter .chrome { background: var(--cream); border-bottom: 1px solid rgba(31,31,26,.15); }
