/* ---------- tokens ---------- */
:root {
  --paper: #EDE9E0;
  --paper-2: #E2DDD1;
  --ink: #121110;
  --night: #0F0F0E;
  --accent: #FF4A1C;

  --fg: var(--ink);
  --fg-2: #5B564D;
  --fg-3: #8A8478;
  --rule: rgba(18, 17, 16, .16);

  --gutter: clamp(16px, 2.4vw, 36px);
  --head-h: 56px;
  --sans: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--paper); color: var(--fg); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--head-h); }
body { font-family: var(--sans); font-size: 16px; line-height: 1.5; background: var(--paper); overflow-x: hidden; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
/* Stickers dragged off the edge shouldn't make the page scroll sideways. clip (unlike hidden) keeps sticky captions working. */
@supports (overflow-x: clip) { html, body { overflow-x: clip; } }
img { max-width: 100%; }
button { font: inherit; color: inherit; }
ul, ol { list-style: none; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 120; background: var(--ink); color: var(--paper); padding: 10px 14px; text-decoration: none; }
.skip:focus { top: 12px; }

/* Paper grain. Multiply keeps it invisible on dark sections. */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 40; pointer-events: none; opacity: .055; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- header ---------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--head-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: 0 var(--gutter); background: var(--paper); color: var(--ink);
  border-bottom: 1px solid transparent; transition: background-color .35s, color .35s, border-color .35s;
}
.top.scrolled { border-bottom-color: var(--rule); }
.top[data-theme="dark"] { background: var(--night); color: #EDE9E0; border-bottom-color: rgba(237, 233, 224, .14); }
.top[data-theme="accent"] { background: var(--accent); border-bottom-color: rgba(18, 17, 16, .2); }
.mark { justify-self: start; display: inline-flex; align-items: center; gap: 9px; font-weight: 750; font-stretch: 112%; font-size: 15px; letter-spacing: -.01em; text-decoration: none; white-space: nowrap; }
.mark-sq { width: 11px; height: 11px; background: var(--accent); transition: background-color .35s, transform .5s var(--ease); }
.mark:hover .mark-sq { transform: rotate(45deg); }
.top[data-theme="accent"] .mark-sq { background: var(--ink); }
.nav { display: flex; gap: clamp(14px, 2vw, 30px); font-size: 14px; font-weight: 500; }
.nav a { position: relative; padding: 4px 0; text-decoration: none; }
.nav sup { font: 500 9.5px/1 var(--mono); margin-left: 2px; opacity: .55; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.top[data-theme="accent"] .nav a::after { background: var(--ink); }
.nav { align-items: center; }
.nav .nav-cv { margin-left: clamp(2px, .6vw, 10px); padding: 6px 13px 6px 12px; border: 1.5px solid currentColor; border-radius: 99px; line-height: 1; font-weight: 600; transition: background-color .2s, color .2s, border-color .2s; }
.nav .nav-cv::after { display: none; }
.nav .nav-cv:hover, .nav .nav-cv[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.top[data-theme="accent"] .nav .nav-cv:hover, .top[data-theme="accent"] .nav .nav-cv[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--accent); }
.clock { justify-self: end; font: 500 11.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; }
.clock span { opacity: .55; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; padding: calc(var(--head-h) + 14px) var(--gutter) 22px; isolation: isolate; }
.hero-kicker {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gutter);
  border-top: 1.5px solid var(--ink); padding-top: 10px;
  font: 500 11.5px/1.35 var(--mono); text-transform: uppercase; letter-spacing: .02em; color: var(--fg-2);
}
.hero-name { margin-top: clamp(14px, 2.4vw, 34px); font-weight: 900; font-stretch: 125%; line-height: .79; letter-spacing: -.045em; text-transform: uppercase; color: var(--ink); }
.hero-name .line { display: block; width: max-content; white-space: nowrap; font-size: 15.6vw; }
.hero-name .line--2 { font-size: 21.5vw; margin-top: .015em; }
.hero-name .line--2::after { content: ""; display: inline-block; width: .15em; height: .15em; margin-left: .04em; background: var(--accent); }

/* The Breakfist Club marching across under the name. Two identical groups loop seamlessly. */
.parade {
  --ch: clamp(118px, 19vh, 200px);           /* character height */
  position: relative; z-index: 2; margin: calc(-1 * clamp(18px, 3.6vw, 64px)) calc(-1 * var(--gutter)) 0;
  overflow: hidden; padding-top: 14px;
}
.parade::after { content: ""; position: absolute; left: 0; right: 0; bottom: 9px; height: 1.5px; background: var(--ink); }
.parade-track { display: flex; width: max-content; animation: march var(--dur, 26s) linear infinite; will-change: transform; }
@keyframes march { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.parade-group { display: flex; align-items: flex-end; justify-content: space-around; width: max(100vw, calc(var(--ch) * 5.4)); }
.parade:hover .parade-track, .parade:focus-within .parade-track { animation-play-state: paused; }
.walker { position: relative; display: block; padding: 0 0 10px; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.walker-body {
  display: block; height: var(--ch); width: auto; transform-origin: 50% 100%; user-select: none; -webkit-user-drag: none;
  filter: drop-shadow(0 1px 1px rgba(40, 25, 10, .2));
  animation: waddle 1.04s ease-in-out infinite; animation-delay: calc(var(--i) * -.37s);
  transition: scale .35s cubic-bezier(.3, 1.5, .5, 1);
}
.walker-shadow {
  position: absolute; left: 18%; right: 18%; bottom: 6px; height: 9px; border-radius: 50%; background: rgba(40, 25, 10, .2);
  animation: shadow .52s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -.37s);
}
.walker:hover .walker-body, .walker:focus-visible .walker-body { scale: 1.08; }
/* one stride = two steps: rock left, bob up, rock right, bob up */
@keyframes waddle {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  25% { transform: translateY(-7%) rotate(0deg); }
  50% { transform: translateY(0) rotate(4deg); }
  75% { transform: translateY(-7%) rotate(0deg); }
}
@keyframes shadow { from { transform: scaleX(1); opacity: 1; } to { transform: scaleX(.78); opacity: .6; } }

.hero-foot { position: relative; z-index: 3; margin-top: auto; padding-top: 36px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); align-items: end; pointer-events: none; }
.hero-foot > * { pointer-events: auto; }
.hero-intro { grid-column: 1 / span 6; font-size: clamp(22px, 2.35vw, 36px); line-height: 1.1; font-weight: 500; letter-spacing: -.02em; max-width: 24ch; }
.hero-intro em, .about-lede em { font-family: var(--serif); font-style: italic; font-weight: 400; font-stretch: 100%; letter-spacing: -.005em; }
.hero-intro em { font-size: 1.13em; }
.hero-hint { grid-column: 8 / span 3; font-size: 13px; line-height: 1.4; color: var(--fg-2); max-width: 30ch; }
.hero-down { grid-column: 11 / span 2; justify-self: end; font: 500 12px/1 var(--mono); text-transform: uppercase; text-decoration: none; display: inline-flex; gap: 8px; padding: 10px 14px; border: 1.5px solid var(--ink); border-radius: 99px; transition: background-color .2s, color .2s; }
.hero-down:hover { background: var(--ink); color: var(--paper); }
.hero-down span { display: inline-block; animation: nudge 1.8s var(--ease) infinite; }
@keyframes nudge { 50% { transform: translateY(3px); } }

/* ---------- sections ---------- */
.sec { position: relative; padding: clamp(72px, 10vw, 150px) var(--gutter) clamp(56px, 7vw, 110px); }
.sec[data-theme="dark"] { --fg: #EDE9E0; --fg-2: #A9A397; --fg-3: #77736B; --rule: rgba(237, 233, 224, .15); background: var(--night); color: var(--fg); }
.sec-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px var(--gutter); border-top: 1.5px solid currentColor; padding-top: 12px; margin-bottom: clamp(32px, 4.5vw, 64px); }
.sec-no { grid-column: 1 / span 2; font: 500 12px/1.3 var(--mono); }
.sec-title { grid-column: 3 / -1; min-width: 0; white-space: nowrap; font-weight: 880; font-stretch: 125%; font-size: clamp(52px, 9.4vw, 156px); line-height: .84; letter-spacing: -.05em; text-transform: uppercase; }
.sec-title sup { font: 500 clamp(11px, 1vw, 14px)/1 var(--mono); letter-spacing: 0; vertical-align: top; margin-left: .5em; position: relative; top: .5em; }
.sec-blurb { grid-column: 3 / span 4; font-size: 15px; line-height: 1.45; color: var(--fg-2); max-width: 38ch; }

/* plates: one logo per colored card */
.plates { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(30px, 3.2vw, 48px) var(--gutter); }
.plate { grid-column: span var(--span); min-width: 0; }
.plate[data-row="tall"] { --ph: clamp(320px, 41vw, 660px); }
.plate[data-row="mid"] { --ph: clamp(280px, 33vw, 540px); }
.plate[data-row="short"] { --ph: clamp(230px, 26vw, 420px); }
.plate-hit { position: relative; display: block; width: 100%; height: var(--ph); padding: 0; border: 0; border-radius: 3px; overflow: hidden; cursor: pointer; background: var(--plate, var(--paper-2)); }
.plate-art { position: absolute; inset: 15% 13%; display: flex; align-items: center; justify-content: center; }
.plate-art img { display: block; width: auto; height: auto; max-height: 100%; max-width: min(100%, calc(var(--nw) * 1.5px)); object-fit: contain; transition: transform .9s var(--ease); }
.plate-hit:hover .plate-art img { transform: scale(1.05) rotate(-1deg); }
.plate-count { position: absolute; left: 12px; bottom: 12px; font: 500 10.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .03em; padding: 5px 8px; border: 1px solid currentColor; border-radius: 99px; color: rgba(18, 17, 16, .6); }
.plate--dark .plate-count { color: rgba(237, 233, 224, .7); }
.plate-cap { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: baseline; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--rule); }
.plate-cap .no { font: 500 11px/1 var(--mono); color: var(--fg-3); }
.plate-cap .t { font-weight: 650; font-size: 16px; letter-spacing: -.01em; text-decoration: underline 2px transparent; text-underline-offset: 4px; transition: text-decoration-color .25s; }
.plate-cap .k { font-size: 13px; color: var(--fg-2); text-align: right; }
.plate:hover .plate-cap .t { text-decoration-color: var(--accent); }

/* cases: info on the left, pictures on the right */
.case { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); padding: clamp(40px, 5.5vw, 88px) 0; border-top: 1px solid var(--rule); }
.case:first-child { border-top: 0; padding-top: 0; }
.case:last-child { padding-bottom: 0; }
.case-info { grid-column: 1 / span 4; position: sticky; top: calc(var(--head-h) + 28px); align-self: start; display: flex; flex-direction: column; gap: 18px; padding-right: 1.5vw; }
.case-no { font: 500 11px/1 var(--mono); color: var(--fg-3); }
.case-title { font-weight: 860; font-stretch: 118%; font-size: clamp(36px, 4.3vw, 70px); line-height: .9; letter-spacing: -.045em; }
.case-facts { border-top: 1px solid var(--rule); }
.case-facts div { display: grid; grid-template-columns: 64px 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--rule); font-size: 14px; }
.case-facts dt { font: 500 10.5px/1.9 var(--mono); text-transform: uppercase; letter-spacing: .03em; color: var(--fg-3); }
.case-facts a { text-decoration: underline 1.5px var(--accent); text-underline-offset: 3px; }
.case-facts a:hover { color: var(--accent); }
.case-text { font-size: 16px; line-height: 1.55; color: var(--fg-2); max-width: 44ch; }
.case-shots { grid-column: 5 / span 8; display: grid; gap: var(--gutter); align-content: start; }
.case-shots--multi { grid-template-columns: 1fr 1fr; }
.case-shots--multi .shot:first-child { grid-column: 1 / -1; }
.shot { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: zoom-in; transition: transform .6s var(--ease); }
.shot:hover { transform: translateY(-4px); }
.shot img { display: block; width: 100%; height: auto; border-radius: 4px; }
.sec:not([data-theme]) .shot img { box-shadow: 0 0 0 1px var(--rule); }
.shot--framed { border: 1px solid var(--rule); border-radius: 9px; overflow: hidden; background: #0A0A09; }
.shot--framed img { border-radius: 0; }
.shot-bar { display: flex; align-items: center; gap: 9px; height: 30px; padding: 0 12px; font: 500 11px/1 var(--mono); letter-spacing: .02em; color: var(--fg-3); border-bottom: 1px solid var(--rule); }
.shot-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* art on its own colored card (characters, cut-outs) */
.shot--plate { position: relative; display: flex; align-items: center; justify-content: center; padding: 6% 7%; border-radius: 4px; background: var(--shot); overflow: hidden; }
.sec:not([data-theme]) .shot--plate img { box-shadow: none; border-radius: 0; }
/* a row of equal cards under a wide cover */
.case-shots--grid { grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: clamp(8px, 1vw, 16px); }
.case-shots--grid .shot:first-child { grid-column: 1 / -1; margin-bottom: calc(var(--gutter) - clamp(8px, 1vw, 16px)); }
.case-shots--grid .shot:not(:first-child) { aspect-ratio: 3 / 4; padding: 14% 12% 24%; }
.case-shots--grid .shot:not(:first-child) img { width: 100%; height: 100%; object-fit: contain; transition: transform .6s cubic-bezier(.3, 1.5, .5, 1); }
.case-shots--grid .shot:not(:first-child):hover { transform: none; }
.case-shots--grid .shot:not(:first-child):hover img { transform: rotate(-5deg) translateY(-4px) scale(1.06); }
.shot-name { position: absolute; left: 0; right: 0; bottom: 9%; text-align: center; font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink); }
.shot--darkplate .shot-name { color: #fff; }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); margin-bottom: clamp(56px, 7vw, 110px); }
.about-lede { grid-column: 1 / span 7; font-weight: 820; font-stretch: 115%; font-size: clamp(42px, 6.2vw, 100px); line-height: .92; letter-spacing: -.045em; }
.about-lede em { color: var(--accent); letter-spacing: -.02em; }
.about-body { grid-column: 9 / span 4; align-self: end; display: flex; flex-direction: column; gap: 14px; font-size: 17px; line-height: 1.55; }
.pill { align-self: flex-start; display: inline-flex; gap: 6px; margin-top: 6px; padding: 10px 17px; border: 1.5px solid var(--ink); border-radius: 99px; font-weight: 600; font-size: 14px; text-decoration: none; transition: background-color .2s, color .2s; }
.pill:hover { background: var(--ink); color: var(--paper); }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1.5px solid var(--ink); border-bottom: 1px solid var(--rule); margin-bottom: clamp(56px, 7vw, 110px); }
.stat { display: grid; gap: 8px; align-content: start; padding: 20px var(--gutter) 26px; border-left: 1px solid var(--rule); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat-v { font-weight: 900; font-stretch: 125%; font-size: clamp(52px, 7.6vw, 124px); line-height: .88; letter-spacing: -.055em; }
.stat-l { font-size: 15px; font-weight: 600; letter-spacing: -.005em; }
.stat-s { font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .03em; color: var(--fg-3); }

.cv { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(28px, 3vw, 44px) var(--gutter); }
.cv-col { grid-column: span 3; }
.cv-col--wide { grid-column: 1 / span 6; }
.cv-h { font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .04em; color: var(--fg-2); padding-bottom: 10px; border-bottom: 1.5px solid var(--ink); }
.cv-h ~ .cv-h { margin-top: 32px; }
.cv-list li { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) 104px; gap: 14px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 15px; }
.cv-list .r { font-weight: 620; }
.cv-list .o { color: var(--fg-2); }
.cv-list .w { font: 500 11.5px/1 var(--mono); color: var(--fg-3); white-space: nowrap; text-align: right; }
.caps div { padding: 11px 0; border-bottom: 1px solid var(--rule); }
.caps dt { font-weight: 620; font-size: 15px; }
.caps dd { margin-top: 2px; font-size: 14px; line-height: 1.45; color: var(--fg-2); }
.edu { padding: 12px 0; font-size: 15px; line-height: 1.45; }
.edu span { color: var(--fg-2); font-size: 14px; }
.certs li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--rule); font-size: 14px; }
.certs li span:last-child { font: 500 11.5px/1.6 var(--mono); color: var(--fg-3); }
.tools { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 12px; }
.tools li { padding: 5px 10px; border: 1px solid var(--rule); border-radius: 99px; font-size: 13px; }

/* ---------- contact ---------- */
.contact { background: var(--accent); color: var(--ink); padding: clamp(64px, 9vw, 130px) var(--gutter) 26px; }
.contact-top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); border-top: 1.5px solid var(--ink); padding-top: 12px; }
.contact-kicker { grid-column: 3 / span 8; font-size: clamp(24px, 2.8vw, 42px); line-height: 1.08; font-weight: 600; letter-spacing: -.025em; max-width: 26ch; }
.contact-mail { display: block; margin: clamp(36px, 6vw, 84px) 0 clamp(30px, 4vw, 52px); text-decoration: none; }
.contact-mail .line { display: block; width: max-content; white-space: nowrap; font-weight: 900; font-stretch: 125%; font-size: 9vw; line-height: .86; letter-spacing: -.05em; transition: color .3s, transform .6s var(--ease); }
.contact-mail .line--at { font-size: 13vw; }
.contact-mail:hover .line { color: var(--paper); }
.contact-mail:hover .line--at { transform: translateX(1.2vw); }
.contact-foot { display: flex; flex-wrap: wrap; gap: 10px 34px; padding-top: 14px; border-top: 1px solid rgba(18, 17, 16, .3); font: 500 12px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .02em; }
.contact-foot a { text-decoration: none; }
.contact-foot a:hover { text-decoration: underline 1.5px; text-underline-offset: 3px; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 14px var(--gutter) 18px; background: var(--accent); color: rgba(18, 17, 16, .62); font: 500 10.5px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .03em; }

/* ---------- résumé page ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border: 1.5px solid var(--ink); border-radius: 99px; font-weight: 600; font-size: 14.5px; line-height: 1; text-decoration: none; white-space: nowrap; transition: background-color .2s, color .2s, border-color .2s, transform .3s var(--ease); }
.btn:hover { background: var(--ink); color: var(--paper); }
.btn--accent { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.btn--accent:hover { background: var(--ink); border-color: var(--ink); color: var(--accent); }
.btn--ghost { border-color: transparent; padding-left: 6px; padding-right: 6px; }
.btn--ghost:hover { background: none; color: var(--accent); }
.btn--big { padding: 18px 26px; font-size: 17px; }

.cvp-hero { padding: calc(var(--head-h) + 14px) var(--gutter) 0; }
.cvp-name { margin-top: clamp(18px, 3vw, 44px); font-weight: 900; font-stretch: 125%; line-height: .8; letter-spacing: -.045em; text-transform: uppercase; }
.cvp-name .line { display: block; width: max-content; white-space: nowrap; font-size: 9vw; }
.cvp-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; margin-top: clamp(22px, 3vw, 40px); padding: 18px 0; border-top: 1.5px solid var(--ink); border-bottom: 1px solid var(--rule); }
.cvp-role { font-size: clamp(20px, 2.1vw, 30px); font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
.cvp-role span { color: var(--accent); margin: 0 .15em; }
.cvp-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.cvp-sheet { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); padding: clamp(36px, 5vw, 72px) var(--gutter) clamp(72px, 9vw, 130px); }
.cvp-side { grid-column: 1 / span 3; position: sticky; top: calc(var(--head-h) + 28px); align-self: start; display: flex; flex-direction: column; gap: 22px; }
.cvp-contact div { padding: 10px 0; border-bottom: 1px solid var(--rule); }
.cvp-contact div:first-child { border-top: 1.5px solid var(--ink); }
.cvp-contact dt { font: 500 10.5px/1.6 var(--mono); text-transform: uppercase; letter-spacing: .04em; color: var(--fg-3); }
.cvp-contact dd { font-size: 15px; font-weight: 500; }
.cvp-contact a { text-decoration: underline 1.5px var(--accent); text-underline-offset: 3px; }
.pdf-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 14px; border: 1.5px solid var(--ink); border-radius: 6px; text-decoration: none; background: #F6F3EC; transition: background-color .2s, transform .4s var(--ease); }
.pdf-card:hover { background: var(--accent); transform: translateY(-3px) rotate(-.6deg); }
.pdf-ico { display: grid; place-items: center; width: 44px; height: 54px; background: var(--ink); color: var(--paper); font: 500 11px/1 var(--mono); letter-spacing: .04em; clip-path: polygon(0 0, 72% 0, 100% 22%, 100% 100%, 0 100%); }
.pdf-meta { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pdf-meta strong { font-size: 13.5px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pdf-meta span { font: 500 11px/1 var(--mono); color: var(--fg-2); text-transform: uppercase; }
.pdf-go { font-size: 20px; font-weight: 700; }

.cvp-main { grid-column: 5 / span 8; display: flex; flex-direction: column; gap: clamp(44px, 5vw, 72px); }
.cvp-block .cv-h { margin-bottom: 6px; }
.cvp-summary { margin-top: 18px; font-size: clamp(19px, 1.7vw, 24px); line-height: 1.42; letter-spacing: -.012em; max-width: 46ch; }
.cvp-summary strong, .job-list strong { font-weight: 700; background: linear-gradient(transparent 62%, rgba(255, 74, 28, .32) 62%); }
.job { display: grid; gap: 6px; padding: 22px 0 24px; border-bottom: 1px solid var(--rule); }
.job-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; }
.job-head h3 { font-size: clamp(21px, 1.9vw, 28px); font-weight: 800; font-stretch: 112%; letter-spacing: -.03em; line-height: 1.1; }
.job-when { font: 500 12px/1 var(--mono); color: var(--fg-3); white-space: nowrap; }
.job-org { font-size: 15px; }
.job-org strong { font-weight: 650; color: var(--accent); filter: brightness(.82); }
.job-org span { color: var(--fg-2); }
.job-list { display: grid; gap: 8px; margin-top: 8px; }
.job-list li { position: relative; padding-left: 26px; font-size: 16px; line-height: 1.5; max-width: 64ch; }
.job-list li::before { content: ""; position: absolute; left: 0; top: .72em; width: 13px; height: 2px; background: var(--accent); }
.cvp-earlier li { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 150px; gap: 14px; align-items: baseline; padding: 13px 0; border-bottom: 1px solid var(--rule); font-size: 15px; }
.cvp-earlier .r { font-weight: 620; }
.cvp-earlier .o { color: var(--fg-2); }
.cvp-earlier .w { font: 500 11.5px/1.4 var(--mono); color: var(--fg-3); text-align: right; }
.cvp-caps { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--gutter); }
.cvp-caps div { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.cvp-caps dt { font-weight: 700; font-size: 16px; letter-spacing: -.01em; }
.cvp-caps dd { margin-top: 3px; font-size: 14.5px; line-height: 1.45; color: var(--fg-2); }
.cvp-split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); }
.cvp-split .cv-h ~ .cv-h { margin-top: 32px; }
.cvp-edu { display: flex; flex-direction: column; gap: 3px; padding: 14px 0 0; font-size: 15px; }
.cvp-edu strong { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.cvp-edu .deg { color: var(--accent); filter: brightness(.82); font-weight: 600; }
.cvp-edu span:last-child { color: var(--fg-2); font-size: 14px; }
.cvp-end { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 26px 28px; border-radius: 6px; background: var(--ink); color: var(--paper); }
.cvp-end p { font-size: clamp(22px, 2.2vw, 32px); font-weight: 700; font-stretch: 112%; letter-spacing: -.03em; }
.page-cv .foot { background: var(--ink); color: rgba(237, 233, 224, .55); }

/* ---------- viewer ---------- */
.lb { position: fixed; inset: 0; z-index: 100; display: grid; grid-template-rows: minmax(0, 1fr) auto; background: var(--lb-bg, var(--night)); color: var(--lb-fg, #EDE9E0); transition: background-color .45s, color .45s; }
.lb[hidden] { display: none; }
.lb-stage { position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; padding: clamp(18px, 4vw, 60px); }
.lb-stage img { display: block; width: min(calc(var(--iw) * 1px), 100%); height: min(calc(var(--ih) * 1px), 100%); object-fit: contain; animation: lbin .5s var(--ease); }
.lb-stage img.wide { border-radius: 6px; }
@keyframes lbin { from { opacity: 0; transform: scale(.975); } }
.lb-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: end; padding: 14px var(--gutter) 18px; border-top: 1px solid color-mix(in srgb, currentColor 18%, transparent); }
.lb-title { font-size: 15px; line-height: 1.35; }
.lb-title [data-lb-no] { font: 500 11px/1 var(--mono); opacity: .55; margin-right: 6px; }
.lb-title [data-lb-kind] { opacity: .65; margin-left: 4px; }
.lb-text { margin-top: 5px; font-size: 14px; line-height: 1.45; opacity: .72; max-width: 72ch; }
.lb-ctrl { display: flex; align-items: center; gap: 8px; font: 500 12px/1 var(--mono); white-space: nowrap; }
.lb-ctrl button { height: 38px; min-width: 38px; padding: 0 13px; border: 1px solid color-mix(in srgb, currentColor 35%, transparent); border-radius: 99px; background: none; cursor: pointer; font: 500 13px/1 var(--mono); transition: background-color .2s, color .2s; }
.lb-ctrl button:hover { background: var(--lb-fg, #EDE9E0); color: var(--lb-bg, var(--night)); }
.lb-ctrl [data-lb-count] { min-width: 54px; text-align: center; opacity: .75; }
body.lb-open { overflow: hidden; }

/* label that follows the mouse over work */
.cursor { position: fixed; left: 0; top: 0; z-index: 110; pointer-events: none; margin: 16px 0 0 14px; padding: 6px 9px; border-radius: 99px; background: var(--accent); color: var(--ink); font: 500 10.5px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; opacity: 0; transform: translate(-200px, -200px); transition: opacity .15s; }
.cursor.on { opacity: 1; }

/* reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- smaller screens ---------- */
@media (max-width: 1100px) {
  .cv-col { grid-column: span 6; }
  .cv-col--wide { grid-column: 1 / -1; }
}

@media (max-width: 1280px) {
  .cvp-side { grid-column: 1 / span 4; }
}

@media (max-width: 900px) {
  :root { --head-h: 52px; }
  .top { grid-template-columns: 1fr auto; }
  .nav a { display: none; }
  .nav a.nav-contact, .nav a.nav-cv { display: inline-block; }
  .nav .nav-cv { padding: 5px 11px; }
  .clock { display: none; }

  .hero { min-height: 0; }
  .hero-kicker { grid-template-columns: 1fr 1fr; row-gap: 6px; }
  .parade { --ch: 142px; margin-top: 22px; }
  .hero-foot { grid-template-columns: 1fr; gap: 14px; }
  .hero-intro, .hero-hint { grid-column: 1; }
  .hero-down { display: none; }

  .sec-head { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .sec-no, .sec-title, .sec-blurb { grid-column: 1; }

  .plates { grid-template-columns: 1fr 1fr; }
  .plate { grid-column: span 1; --ph: 46vw !important; }
  .plate[data-row="tall"] { grid-column: 1 / -1; --ph: 80vw !important; }
  .plate-cap { grid-template-columns: auto 1fr; }
  .plate-cap .k { grid-column: 2; text-align: left; margin-top: -8px; }

  .case { grid-template-columns: 1fr; gap: 26px; }
  .case-info { grid-column: 1; position: static; padding-right: 0; }
  .case-shots { grid-column: 1; }

  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .about-lede, .about-body { grid-column: 1; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); }
  .stat:first-child { border-top: 0; }
  .cv-col, .cv-col--wide { grid-column: 1 / -1; }
  .cv-list li { grid-template-columns: minmax(0, 1fr) auto; row-gap: 2px; }
  .cv-list .o { grid-column: 1; grid-row: 2; }
  .cv-list .w { grid-row: 1 / span 2; align-self: center; }

  .contact-top { grid-template-columns: 1fr; gap: 14px; }
  .contact-kicker { grid-column: 1; }

  .case-shots--grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cvp-sheet { grid-template-columns: minmax(0, 1fr); }
  .cvp-side { grid-column: 1; position: static; }
  .cvp-main { grid-column: 1; }
  .cvp-actions { width: 100%; }
  .cvp-caps, .cvp-split { grid-template-columns: 1fr; }
  .cvp-earlier li { grid-template-columns: minmax(0, 1fr) auto; row-gap: 2px; }
  .cvp-earlier .o { grid-column: 1; grid-row: 2; }
  .cvp-earlier .w { grid-row: 1 / span 2; align-self: center; }
  .lb-bar { grid-template-columns: 1fr; gap: 12px; }
  .lb-text { display: none; }
}

@media (max-width: 560px) {
  .plate { --ph: 52vw !important; }
  .plate[data-row="tall"] { --ph: 88vw !important; }
  .plate-cap { gap: 8px; }
  .plate-cap .no { display: none; }
  .plate-cap .t { font-size: 14px; }
  .plate-cap .k { grid-column: 1 / -1; margin-top: -6px; font-size: 12px; }
  .case-shots--multi { grid-template-columns: 1fr; }
}

/* Printing the résumé page gives a clean sheet. */
@media print {
  body::after, .top, .skip, .cvp-actions, .pdf-card, .cvp-end, .foot, .cursor { display: none !important; }
  html, body { background: #fff; }
  .js .reveal { opacity: 1; transform: none; }
  .cvp-hero { padding-top: 0; }
  .cvp-side { position: static; }
  .job { break-inside: avoid; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero-down span, .lb-stage img, .walker-body, .walker-shadow { animation: none; }
  .plate-art img, .shot { transition: none; }
  /* the crew stands still in a line instead of marching */
  .parade-track { animation: none; width: 100%; }
  .parade-group { width: 100%; }
  .walker-body { height: min(var(--ch), 21vw); }
  .parade-group + .parade-group { display: none; }
}
