/* Overprint Index — layout & components
   Grid: 12 columns. Numbers in 1–2, one reading column 3–10, marginalia 11–12. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--paper); color: var(--blue);
  font: 400 var(--t-body)/1.6 var(--f-sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
/* paper tooth: a faint fibre noise so flat colour reads as stock, not screen */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 60; opacity: .5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .38 0 0 0 0 .45 0 0 0 0 .58 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: inherit; }
ol, ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--red-tint); color: var(--over); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 2px; }
main:focus { outline: none; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--blue); color: var(--paper); padding: 8px 12px; z-index: 99; }
.skip:focus { left: 8px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.lbl { font: 500 var(--t-label)/1.35 var(--f-sans); }
.margin { font: italic 400 16.5px/1.45 var(--f-serif); font-variation-settings: "opsz" 14; color: var(--muted); }

/* ---------- overprint: two impressions of the same words ---------- */
.ov { position: relative; display: inline-block; isolation: isolate; }
.ov > span { position: relative; z-index: 1; }  /* blue sits on top; with cherry red, a multiply overlap reads near-black */
.ov::before {
  content: attr(data-t); position: absolute; inset: 0; z-index: 0; color: var(--red);
  transform: translate(var(--mis-x), var(--mis-y)); pointer-events: none;
}
.enter .ov::before { animation: settle 1s var(--ease) both; animation-delay: .1s; }
@keyframes settle { from { transform: translate(calc(var(--mis-x) + 7px), calc(var(--mis-y) + 4px)); opacity: 0; } }

/* Headline registration: the two impressions arrive blurred from opposite sides and press into register. */
.enter .hero .ov > span, .enter .p-title .ov > span { animation: press-b 1.5s cubic-bezier(.16, .84, .24, 1) both; animation-delay: var(--d, .15s); }
.enter .hero .ov::before, .enter .p-title .ov::before { animation: press-p 1.5s cubic-bezier(.16, .84, .24, 1) both; animation-delay: var(--d, .15s); }
.hero .ov + .ov { --d: .32s; }
@keyframes press-b { from { opacity: 0; filter: blur(14px); transform: translate(-.22em, -.08em); } 60% { filter: blur(0); } }
@keyframes press-p { from { opacity: 0; filter: blur(14px); transform: translate(.26em, .12em); } 60% { filter: blur(0); } }

/* registration mark: blue + red rings a hair apart */
.regm { position: relative; display: block; width: 26px; height: 26px; }
.regm::before, .regm::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1.25px solid var(--blue);
  background: linear-gradient(var(--blue), var(--blue)) center/1.25px 140% no-repeat, linear-gradient(var(--blue), var(--blue)) center/140% 1.25px no-repeat;
}
.regm::after {
  border-color: var(--red); mix-blend-mode: multiply; transform: translate(2px, 1.5px);
  background: linear-gradient(var(--red), var(--red)) center/1.25px 140% no-repeat, linear-gradient(var(--red), var(--red)) center/140% 1.25px no-repeat;
}

/* ---------- masthead ---------- */
.mast { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--paper); transition: box-shadow .3s; }
.mast-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; border-bottom: 1.5px solid var(--blue); }
.mast.is-scrolled { box-shadow: 0 10px 20px -18px rgba(47, 79, 162, .5); }
.mast-name { font: 420 25px/1 var(--f-serif); font-variation-settings: "opsz" 72; letter-spacing: -.02em; text-decoration: none; }
.mast-issue { color: var(--muted); }
.mast-nav { display: flex; gap: 24px; }
.mast-nav a { font: 500 var(--t-label)/1 var(--f-sans); text-decoration: none; padding: 10px 0 8px; border-bottom: 2px solid transparent; }
.mast-nav a:hover { border-bottom-color: var(--blue-tint); }
.mast-nav a[aria-current] { border-bottom-color: var(--accent); }

/* ---------- intro ---------- */
.intro { position: relative; padding-top: clamp(56px, 9vw, 128px); padding-bottom: var(--sec); row-gap: 28px; }
.intro-l { grid-column: 1 / 3; padding-top: 1.1em; max-width: 16ch; }
.hero {
  grid-column: 3 / 12; font: 360 var(--t-hero)/.92 var(--f-serif);
  font-variation-settings: "opsz" 144, "SOFT" 30; letter-spacing: -.035em; color: var(--blue);
}
.hero .ov { display: block; width: fit-content; }
.hero .ov + .ov { font-style: italic; font-weight: 330; }
.inline { text-decoration: none; background: linear-gradient(var(--accent), var(--accent)) 0 100% / 100% 2px no-repeat; transition: background-size .3s var(--ease), color .2s; padding-bottom: 1px; }
.inline:hover { color: var(--over); background-size: 100% 40%; background-image: linear-gradient(var(--accent-tint), var(--accent-tint)); }
.lede { grid-column: 3 / 9; font-size: var(--t-lede); line-height: 1.5; color: var(--blue); max-width: 34ch; }
.intro-stamp { position: absolute; right: var(--gutter); top: clamp(40px, 6vw, 96px); width: clamp(104px, 11vw, 150px); }
.intro-reg { position: absolute; right: var(--gutter); bottom: calc(var(--sec) - 12px); }

/* stamp: red ring, blue words */
.stamp { display: block; width: 100%; height: auto; overflow: visible; transform: rotate(-10deg); transition: transform .2s linear; }
.st-ring { fill: none; stroke: var(--accent); stroke-width: 1.75; }
.st-photo { transform: rotate(10deg); transform-origin: 70px 70px; }
.st-ink { mix-blend-mode: multiply; }
.st-col { opacity: 0; transition: opacity .45s var(--ease); }
.stamp:hover .st-col { opacity: 1; }
.st-inner { fill: none; stroke: var(--accent); stroke-width: 1.25; }
.st-t { fill: var(--blue); font: 500 11.5px var(--f-sans); }
.enter .stamp { animation: thump .7s var(--ease) .35s both; }
@keyframes thump { from { opacity: 0; scale: 1.18; } }

/* ---------- section heads ---------- */
.sec-h { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 12px; border-bottom: 1.5px solid var(--blue); }
.sect { color: var(--accent); margin-right: 4px; }
.sec-meta { color: var(--muted); }

/* ---------- the index ---------- */
.index { padding-bottom: var(--sec); }
.row {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: center;
  padding: 18px 0; border-bottom: 1px solid var(--rule); text-decoration: none; position: relative;
}
.row-n { grid-column: 1 / 3; font: italic 330 var(--t-num)/1 var(--f-serif); font-variation-settings: "opsz" 144; color: var(--red); }
.row-t { grid-column: 3 / 8; justify-self: start; font: 370 var(--t-row)/1 var(--f-serif); font-variation-settings: "opsz" 144; letter-spacing: -.025em; padding-bottom: .08em; }
.row-t::before { opacity: 0; transform: translate(0, 0); transition: opacity .25s, transform .45s var(--ease); }
.row-m { grid-column: 8 / 11; display: grid; gap: 4px; }
.row-r { font-size: 16px; line-height: 1.35; }
.row-w { font: 400 13px/1.5 var(--f-sans); color: var(--muted); }
.row-w b { font-weight: 500; color: var(--blue); box-shadow: inset 0 -.5em 0 var(--red-tint); }

.proof { grid-column: 11 / 13; justify-self: end; position: relative; width: 100%; max-width: 128px; aspect-ratio: 4 / 5; isolation: isolate; }
.proof::before { content: ""; position: absolute; inset: 0; background: var(--red); mix-blend-mode: multiply; transform: translate(0, 0); opacity: 0; transition: transform .45s var(--ease), opacity .3s; }
.proof img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.proof-ht { mix-blend-mode: multiply; transition: opacity .45s var(--ease); }
.proof-c { opacity: 0; transition: opacity .45s var(--ease); outline: 1.5px solid var(--blue); outline-offset: -1.5px; }
.proof-soon { position: absolute; left: 50%; top: 50%; translate: -50% -50%; rotate: -6deg; font: 500 12.5px/1 var(--f-sans); padding: 6px 8px 5px; background: var(--paper); border: 1.5px solid var(--blue); }

@media (hover: hover) {
  .row:hover .row-t::before, .row:focus-visible .row-t::before { opacity: 1; transform: translate(var(--mis-x), var(--mis-y)); }
  .row:hover .proof::before, .row:focus-visible .proof::before { opacity: 1; transform: translate(8px, 8px); }
  .row:hover .proof-c, .row:focus-visible .proof-c { opacity: 1; }
  .row:hover .row-n { color: var(--over); }
}
.row.dev .proof::before { opacity: 1; transform: translate(6px, 6px); }
.row.dev .proof-c { opacity: 1; }

/* ---------- plates (media) ---------- */
.spreads { padding-bottom: var(--sec); }
.spread { padding-top: clamp(40px, 6vw, 72px); }
.spread-h { align-items: baseline; margin-bottom: 28px; row-gap: 6px; }
.spread-n { grid-column: 1 / 3; font: italic 330 var(--t-num)/1 var(--f-serif); color: var(--red); }
.spread-h h3 { grid-column: 3 / 7; font: 380 clamp(30px, 3.6vw, 48px)/1.05 var(--f-serif); font-variation-settings: "opsz" 144; letter-spacing: -.02em; }
.spread-h h3 a { text-decoration: none; background: linear-gradient(var(--accent), var(--accent)) 0 92%/0 2px no-repeat; transition: background-size .35s var(--ease); }
.spread-h h3 a:hover { background-size: 100% 2px; }
.spread-s { grid-column: 7 / 11; color: var(--blue); font-size: 16px; line-height: 1.5; }

.plates { display: grid; gap: clamp(32px, 5vw, 64px); }
.plate { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: end; }
.plate--pair .pair { grid-column: 3 / 10; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.plate--wide .fig { grid-column: 3 / 11; }
.plate--solo .fig { grid-column: 3 / 6; }
.plate .note { grid-column: 10 / 13; padding-left: 12px; align-self: start; padding-top: 12px; }
.plate--solo .note { grid-column: 6 / 9; align-self: center; padding: 0 0 0 12px; }

.fig { margin: 0; position: relative; }
.mat { position: relative; isolation: isolate; }
.mat::before { content: ""; position: absolute; inset: 0; background: var(--red); transform: translate(10px, 10px); z-index: -1; }
.mat video, .mat img { width: 100%; height: auto; background: var(--paper-2); outline: 1.5px solid var(--blue); outline-offset: -1.5px; }
.fig--portrait .mat video, .fig--portrait .mat img { aspect-ratio: 444 / 960; object-fit: cover; }
.fig--landscape .mat video, .fig--landscape .mat img { aspect-ratio: 16 / 10.5; object-fit: cover; }
.fig-link { position: absolute; inset: 0; z-index: 2; }
.fig figcaption { font: 400 14px/1.5 var(--f-sans); margin-top: 18px; max-width: 46ch; }
.fig-n { font-weight: 500; color: var(--blue); margin-right: 6px; box-shadow: inset 0 -.45em 0 var(--red-tint); }
.play { position: absolute; right: 12px; bottom: 12px; z-index: 3; font: 500 13px/1 var(--f-sans); background: var(--paper); color: var(--blue); border: 1.5px solid var(--blue); padding: 8px 10px 7px; cursor: pointer; }
.ph { position: relative; aspect-ratio: 16 / 10; display: grid; place-items: center; overflow: hidden; outline: 1.5px solid var(--blue); outline-offset: -1.5px; background: #fff; }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; outline: 0; opacity: .5; }
.ph { background: var(--paper); }
.ph .chip { position: relative; background: var(--paper); }

/* reveal: plates lift a touch, then the red plate slides into register */
.reveal.pre { opacity: 0; transform: translateY(18px); }
.reveal.pre .mat::before { transform: translate(0, 0); }
.reveal.in { opacity: 1; transform: none; transition: opacity .7s var(--ease) var(--delay, 0s), transform .8s var(--ease) var(--delay, 0s); }
.reveal.in .mat::before { transition: transform .9s var(--ease) calc(var(--delay, 0s) + .15s); }

/* ---------- about ---------- */
.about { padding-bottom: calc(var(--sec) + 330px); position: relative; }
.about > .sec-h, .about-in { position: relative; z-index: 1; }

/* snapshots scattered behind the section like loose prints */
.album { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.snap {
  position: absolute; margin: 0; padding: 8px 8px 24px; background: #fff; pointer-events: auto;
  box-shadow: 0 1px 1px rgba(20, 30, 60, .08), 0 14px 30px -16px rgba(20, 30, 60, .35);
  transform: rotate(var(--r)); transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.snap img { width: 100%; height: auto; display: block; }
.snap.reveal.in, .snap.reveal { transform: rotate(var(--r)); }
.snap.reveal:hover { transform: rotate(0deg) translateY(-6px) scale(1.03); z-index: 2; box-shadow: 0 1px 1px rgba(20, 30, 60, .03), 0 36px 64px -22px rgba(20, 30, 60, .22); }
.snap.reveal.pre { opacity: 0; transform: rotate(var(--r)) translateY(24px); }
.snap.reveal.in { transition: opacity .8s var(--ease) var(--delay, 0s), transform .9s var(--ease) var(--delay, 0s), box-shadow .6s var(--ease); }
.snap.reveal.in.done { transition: transform .5s var(--ease), box-shadow .6s var(--ease); }
.snap--forest { --r: 4deg; width: 196px; right: calc(var(--gutter) + 2%); bottom: calc(var(--sec) - 12px); }
.snap--overlook { --r: -5deg; width: 300px; left: calc(var(--gutter) + 1%); bottom: calc(var(--sec) - 6px); }
.snap--bench { --r: 2.5deg; width: 360px; left: calc(50% - 130px); bottom: calc(var(--sec) + 40px); }
.snap--overlook { --delay: 0ms; } .snap--bench { --delay: 120ms; } .snap--forest { --delay: 60ms; }
.about-in { padding-top: 40px; row-gap: 28px; align-items: start; }
.portrait { grid-column: 1 / 3; margin: 0; position: relative; isolation: isolate; }
.portrait { width: 100%; max-width: 193px; aspect-ratio: 1; }
.portrait img { width: 100%; height: auto; mix-blend-mode: multiply; border-radius: 50%; outline: 1.25px solid var(--accent); outline-offset: -1px; }
.portrait .portrait-c { position: absolute; inset: 0; mix-blend-mode: normal; opacity: 0; transition: opacity .45s var(--ease); }
.portrait:hover .portrait-c { opacity: 1; }
.about-copy { grid-column: 3 / 10; display: grid; gap: 18px; max-width: 62ch; }
.about-lede { font: 360 clamp(24px, 2.6vw, 34px)/1.25 var(--f-serif); font-variation-settings: "opsz" 72; letter-spacing: -.01em; }
.about-aside { grid-column: 11 / 13; padding-top: 8px; }
.contact { grid-column: 3 / 13; display: flex; flex-wrap: wrap; gap: 12px 28px; padding-top: 24px; border-top: 1px solid var(--rule); }
.contact a, .contact .todo { font: 500 15px/1 var(--f-sans); text-decoration: none; padding: 8px 0; display: inline-block; border-bottom: 2px solid var(--accent); }
.contact a:hover { color: var(--over); background: var(--accent-tint); }
.contact .todo { border-bottom: 1.5px dashed var(--muted); color: var(--muted); }

/* ---------- chips (fact stamps) ---------- */
.chip {
  display: inline-flex; align-items: center; padding: 7px 10px 6px; color: var(--blue);
  border: 1.5px solid var(--accent); background: color-mix(in srgb, var(--accent) 7%, transparent);
  font: 500 13px/1 var(--f-sans); white-space: nowrap;
}

/* ---------- project ---------- */
.p-head { position: relative; padding-top: 40px; row-gap: 26px; padding-bottom: clamp(48px, 7vw, 88px); }
.back { grid-column: 1 / 13; text-decoration: none; justify-self: start; padding: 8px 0; }
.back:hover { color: var(--over); }
.p-num { grid-column: 1 / 3; justify-self: end; align-self: start; margin: .5em -8px 0 0; font: italic 300 clamp(34px, 3.8vw, 56px)/.9 var(--f-serif); font-variation-settings: "opsz" 144; color: var(--red); }
.p-title { grid-column: 3 / 12; font: 360 clamp(64px, 20vw, 184px)/.86 var(--f-serif); font-variation-settings: "opsz" 144, "SOFT" 30; letter-spacing: -.04em; padding-bottom: .16em; }
.p-title--long { font-size: clamp(44px, 17vw, 148px); }
.p-stamp { position: absolute; right: var(--gutter); top: 56px; width: clamp(96px, 10vw, 136px); }
.meta { grid-column: 3 / 11; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 0; padding-top: 14px; border-top: 1.5px solid var(--blue); }
.meta dt { font: 500 var(--t-label)/1.3 var(--f-sans); color: var(--muted); }
.meta dd { margin: 4px 0 0; font-size: 17px; text-wrap: balance; }
.facts { grid-column: 3 / 11; display: flex; flex-wrap: wrap; gap: 10px; }
.p-body { grid-column: 3 / 10; display: grid; gap: 20px; max-width: 64ch; }
.p-lede { font: 360 clamp(22px, 2.3vw, 30px)/1.35 var(--f-serif); font-variation-settings: "opsz" 48; }
.p-margin { grid-column: 11 / 13; align-self: start; grid-row: span 1; }
.p-plates { padding-bottom: var(--sec); }

.next { border-top: 1.5px solid var(--blue); padding-top: 28px; padding-bottom: var(--sec); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 32px; }
.next-a { grid-column: 3 / 10; text-decoration: none; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 20px; row-gap: 8px; }
.next-a .lbl { flex-basis: 100%; color: var(--muted); }
.next-t { font: 370 clamp(44px, 7vw, 96px)/1 var(--f-serif); font-variation-settings: "opsz" 144; letter-spacing: -.03em; }
.next-t::before { opacity: 0; transform: none; transition: opacity .25s, transform .45s var(--ease); }
.next-a:hover .next-t::before { opacity: 1; transform: translate(var(--mis-x), var(--mis-y)); }
.next-arr { font: 300 clamp(32px, 4vw, 56px)/1 var(--f-serif); color: var(--red); transition: translate .3s var(--ease); }
.next-a:hover .next-arr { translate: 8px 0; }
.mini { grid-column: 10 / 13; display: grid; gap: 4px; align-self: end; }
.mini a { display: flex; gap: 12px; text-decoration: none; font-size: 15px; padding: 4px 0; }
.mini a span { font: italic 400 15px/1.5 var(--f-serif); color: var(--red-ink); min-width: 1.6em; }
.mini a[aria-current] { box-shadow: inset 0 -.45em 0 var(--red-tint); width: fit-content; }

/* ---------- colophon ---------- */
.colophon-in { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding-block: 20px 28px; border-top: 1.5px solid var(--blue); font: 500 var(--t-label)/1.4 var(--f-sans); color: var(--muted); }
.colo-inks { display: inline-flex; align-items: center; gap: 8px; }
.ink { width: 10px; height: 10px; border-radius: 50%; display: inline-block; mix-blend-mode: multiply; }
.ink--b { background: var(--blue); }
.ink--r { background: var(--red); margin-left: 8px; }

/* page enter: sections rise, then index rows print in sequence */
.enter > * { animation: rise .6s var(--ease) both; }
.enter .rows li { animation: rise .6s var(--ease) both; animation-delay: calc(.25s + var(--i, 0) * 70ms); }
.enter .rows li .row-n { animation: ink .9s var(--ease) both; animation-delay: calc(.35s + var(--i, 0) * 70ms); }
@keyframes ink { from { opacity: 0; transform: translate(6px, 3px); } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

/* ---------- tablet ---------- */
/* ---------- resume ---------- */
.r-head { padding-bottom: clamp(40px, 5vw, 64px); }
.r-title { grid-column: 3 / 12; }
.r-contact { grid-column: 3 / 13; display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 16px; margin: 0; padding-top: 14px; border-top: 1.5px solid var(--blue); }
.r-contact a { text-decoration: none; border-bottom: 2px solid var(--accent); padding-bottom: 2px; }
.r-sec { padding-bottom: clamp(48px, 6vw, 80px); }
.r-profile { margin: 28px 0 0; margin-left: calc(2 * (100% + 24px) / 12); max-width: 34ch; font: 360 clamp(24px, 2.6vw, 34px)/1.25 var(--f-serif); font-variation-settings: "opsz" 72; }
.r-skills { list-style: none; margin: 18px 0 0 calc(2 * (100% + 24px) / 12); padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
.r-skills li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--blue-tint); font-size: 17px; }
.r-yrs { font: italic 400 16px/1 var(--f-serif); color: var(--red-ink); white-space: nowrap; }
.r-jobs { list-style: none; margin: 0; padding: 0; }
.r-job { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--blue-tint); }
.r-jobs .r-job:last-child, .r-sec > .r-job { border-bottom: 0; }
.r-when { grid-column: 1 / 3; margin: 0; padding-top: .45em; font: italic 400 16px/1.35 var(--f-serif); color: var(--red-ink); }
.r-main { grid-column: 3 / 10; }
.r-role { margin: 0; font: 380 clamp(26px, 2.6vw, 36px)/1.1 var(--f-serif); font-variation-settings: "opsz" 96; letter-spacing: -.015em; }
.r-co { margin: 6px 0 0; font-size: 17px; font-weight: 500; }
.r-co a { text-decoration: none; border-bottom: 2px solid var(--accent); }
.r-co a:hover { color: var(--over); }
.r-place { font-weight: 400; color: var(--muted); }
.r-text { margin: 12px 0 0; max-width: 64ch; line-height: 1.6; }
@media (max-width: 1023px) {
  .r-title, .r-contact { grid-column: 1 / 13; }
  .r-profile, .r-skills { margin-left: 0; }
  .r-when { grid-column: 1 / 4; }
  .r-main { grid-column: 4 / 13; }
}
@media (max-width: 640px) {
  .r-skills { grid-template-columns: 1fr; }
  .r-skills li { font-size: 15.5px; }
  .r-job { padding: 22px 0; }
  .r-when, .r-main { grid-column: 1 / 13; }
  .r-when { padding: 0 0 6px; font-size: 15px; }
  .r-role { font-size: 24px; }
  .r-contact { font-size: 15px; gap: 8px 20px; }
}
@media print {
  .mast, .colophon, .skip, .back, .about { display: none !important; }
  .r-job { break-inside: avoid; }
}

@media (max-width: 1023px) {
  .intro-l { grid-column: 1 / 13; padding: 0; }
  .hero { grid-column: 1 / 12; }
  .lede { grid-column: 1 / 11; }
  .intro-stamp { top: 40px; }
  .row-n { grid-column: 1 / 2; }
  .row-t { grid-column: 2 / 8; }
  .row-m { grid-column: 8 / 11; }
  .spread-n { grid-column: 1 / 2; }
  .spread-h h3 { grid-column: 2 / 7; }
  .spread-s { grid-column: 7 / 13; }
  .plate--pair .pair, .plate--wide .fig { grid-column: 1 / 13; }
  .plate .note { grid-column: 1 / 13; }
  .plate--solo .fig { grid-column: 1 / 6; }
  .plate.plate--solo .note { grid-column: 6 / 12; padding-left: 20px; }
  .plate--pair .pair { grid-column: 1 / 11; }
  .plate--pair .note, .plate--wide .note { padding-top: 16px; max-width: 40ch; }
  .portrait { grid-column: 1 / 3; }
  .about-copy { grid-column: 3 / 13; }
  .about { padding-bottom: calc(var(--sec) + 340px); }
  .snap--forest { width: 22%; top: auto; right: var(--gutter); bottom: calc(var(--sec) + 4px); }
  .snap--overlook { width: 30%; bottom: calc(var(--sec) - 4px); }
  .snap--bench { width: 34%; left: 37%; bottom: calc(var(--sec) + 50px); }
  .about-aside, .contact { grid-column: 3 / 13; }
  .p-num { grid-column: 1 / 13; justify-self: start; margin: 0 0 -20px; font-size: 40px; }
  .p-title, .meta, .facts, .p-body { grid-column: 1 / 13; }
  .p-margin { grid-column: 1 / 13; }
  .next-a { grid-column: 1 / 13; }
  .mini { grid-column: 1 / 13; }
}

/* ---------- phone ---------- */
@media (max-width: 640px) {
  .mast-in { height: 58px; }
  .mast-issue { display: none; }
  .mast-name { font-size: 22px; }
  .intro { padding-top: 20px; row-gap: 20px; }
  .intro-l { max-width: 20ch; }
  .hero { grid-column: 1 / 13; font-size: clamp(46px, 13.2vw, 64px); line-height: .95; }
  .lede { grid-column: 1 / 13; font-size: 19px; }
  .intro-stamp { position: static; order: -1; grid-column: 1 / 13; justify-self: end; width: 108px; margin-bottom: -28px; }
  .intro-reg { display: none; }
  .row { grid-template-columns: 34px minmax(0, 1fr) 76px; column-gap: 14px; row-gap: 6px; padding: 16px 0; align-items: start; }
  .row-n { grid-column: 1; grid-row: 1 / 3; font-size: 22px; padding-top: 6px; }
  .row-t { grid-column: 2; font-size: 38px; }
  .row-m { grid-column: 2; }
  .row-r { font-size: 15px; }
  .proof { grid-column: 3; grid-row: 1 / 3; max-width: 76px; }
  .spread-h { row-gap: 8px; }
  .spread-n { grid-column: 1 / 3; font-size: 28px; }
  .spread-h h3 { grid-column: 3 / 13; font-size: 32px; }
  .spread-s { grid-column: 1 / 13; font-size: 15.5px; }
  .plate--pair .pair { grid-column: 1 / 13; }
  .plate--solo .fig { grid-column: 1 / 9; }
  .plate.plate--solo .note { grid-column: 1 / 13; padding: 16px 0 0; }
  .plate--pair .pair { gap: 14px; }
  .mat::before { transform: translate(6px, 6px); }
  .fig figcaption { font-size: 11.5px; margin-top: 14px; }
  .portrait { grid-column: 1 / 5; }
  /* phone: the prints sit in flow below the links, so they can never cover text */
  .about { padding-bottom: var(--sec); display: flex; flex-direction: column; }
  .album { position: relative; inset: auto; order: 9; margin: 48px calc(-1 * var(--gutter)) 0; aspect-ratio: 1 / 1.04; }
  .snap { padding: 5px 5px 16px; }
  .snap--overlook { width: 60%; left: calc(var(--gutter) - 4px); top: 0; bottom: auto; }
  .snap--forest { width: 38%; right: calc(var(--gutter) - 6px); left: auto; top: 9%; bottom: auto; }
  .snap--bench { width: 66%; left: calc(var(--gutter) + 6%); top: auto; bottom: 0; }
  .about-copy, .about-aside, .contact { grid-column: 1 / 13; }
  .p-head { padding-top: 24px; row-gap: 20px; }
  .p-num { font-size: 32px; margin-bottom: -14px; }
  .p-stamp { width: 86px; top: 34px; }
  .meta { gap: 14px; }
  .meta dd { font-size: 15px; line-height: 1.35; }
  .next-t { font-size: 48px; }
  .colophon-in { flex-direction: column; }
}

/* ---------- reduced motion: ink sits in register-offset, nothing moves ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal.pre { opacity: 1; transform: none; }
}
