:root {
  --ink: #f6f4ee;
  --ink-2: rgba(246, 244, 238, 0.72);
  --ink-3: rgba(246, 244, 238, 0.5);
  --line: rgba(255, 255, 255, 0.16);
  --glass: rgba(22, 26, 22, 0.34);
  --glass-strong: rgba(18, 21, 18, 0.52);
  --lichen: #dfe6b8;
  --sans: "Geist", -apple-system, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --gutter: clamp(20px, 5vw, 72px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: #0c0f0c;
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 1.5px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

/* ---------- Paintings ---------- */
.scenes { position: fixed; inset: 0; z-index: 0; background: #0c0f0c; }
.scenes img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transform: scale(1.06);
  transition: opacity 1.4s var(--ease), transform 7s var(--ease);
}
.scenes img.is-active { opacity: 1; transform: scale(1); }
.scenes img[data-scene="research"] { object-position: 50% 28%; }
.scenes img[data-scene="trailhead"] { object-position: 50% 60%; }
.scenes img[data-scene="education"] { object-position: 50% 72%; }
.scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 10, 8, 0.5) 0%, rgba(8, 10, 8, 0.12) 28%, rgba(8, 10, 8, 0.3) 62%, rgba(8, 10, 8, 0.72) 100%);
  transition: background-color 0.8s var(--ease);
}
.past-hero .scrim { background-color: rgba(8, 10, 8, 0.34); }

main { position: relative; z-index: 1; }
.wrap { width: min(1180px, 100%); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Glass ---------- */
.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(26px) saturate(150%);
  backdrop-filter: blur(26px) saturate(150%);
  border: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset, 0 24px 60px -24px rgba(0, 0, 0, 0.55);
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; z-index: 20; top: 18px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 6px;
  padding: 6px 6px 6px 20px; border-radius: 999px;
  font-size: 13px; white-space: nowrap;
}
.nav-name { font-weight: 500; letter-spacing: -0.01em; margin-right: 14px; }
.nav-links { display: flex; gap: 2px; }
.nav-links a { padding: 7px 11px; border-radius: 999px; color: var(--ink-2); transition: color 0.2s, background 0.2s; text-transform: lowercase; }
.nav-links a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.1); }
.nav-cta { margin-left: 8px; padding: 8px 16px; border-radius: 999px; background: var(--ink); color: #121512; font-weight: 500; text-transform: lowercase; }

/* ---------- Trail rail + elevation + plate ---------- */
.rail {
  position: fixed; z-index: 15; right: 26px; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 14px; align-items: flex-end;
}
.rail a { display: flex; align-items: center; gap: 10px; font: 500 10px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; }
.rail a::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--ink-3); transition: all 0.3s var(--ease); }
.rail a span { opacity: 0; transform: translateX(6px); transition: all 0.3s var(--ease); color: var(--ink-2); }
.rail a:hover span, .rail a.on span { opacity: 1; transform: none; }
.rail a.on::after { background: var(--ink); box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.18); }

.elev, .plate {
  position: fixed; z-index: 15; bottom: 22px;
  font: 400 10px/1.4 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3);
}
.elev { left: 26px; }
.elev b { font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.plate { right: 26px; max-width: 46vw; text-align: right; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; text-align: center; }
.wordmark {
  font-weight: 200; font-size: clamp(64px, 14.5vw, 216px); line-height: 0.9; letter-spacing: -0.055em;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.25);
}
.wordmark i { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.02em; padding-inline: 0.01em; }
.hero-sub { margin-top: 18px; font-size: clamp(14px, 1.5vw, 19px); font-weight: 300; color: var(--ink-2); letter-spacing: 0.01em; }
.corner { position: absolute; bottom: 64px; font-size: 12px; line-height: 1.5; color: var(--ink-2); text-align: left; }
.corner-l { left: var(--gutter); }
.corner-r { right: var(--gutter); max-width: 250px; }
.scroll {
  position: absolute; bottom: 56px; left: 50%; transform: translateX(-50%);
  padding: 9px 18px; border-radius: 999px;
  font: 500 10px/1 var(--mono); letter-spacing: 0.22em; text-transform: uppercase;
}
.scroll span { display: inline-block; margin-left: 6px; animation: nudge 2.2s var(--ease) infinite; }
@keyframes nudge { 50% { transform: translateY(3px); } }

/* ---------- Shared type ---------- */
.eyebrow { font: 500 11px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--lichen); margin-bottom: 22px; }
h2 { font-weight: 300; font-size: clamp(48px, 7.4vw, 104px); line-height: 0.96; letter-spacing: -0.045em; }
.lede { margin-top: 18px; max-width: 30ch; font-size: clamp(16px, 1.5vw, 19px); font-weight: 300; color: var(--ink-2); }

/* ---------- Bio ---------- */
.bio { min-height: 120svh; display: grid; align-items: center; padding-block: 18vh; }
.bio-lead {
  max-width: 21em; font-weight: 300; font-size: clamp(26px, 3.5vw, 46px); line-height: 1.16; letter-spacing: -0.028em;
}
.bio-lead + .bio-lead { margin-top: 0.7em; }
.cycle { font-family: var(--mono); font-size: 0.66em; letter-spacing: -0.02em; color: var(--ink-3); white-space: nowrap; }
.cycle b { font-weight: 400; transition: color 0.5s var(--ease); }
.cycle b.on { color: var(--lichen); }
.bio-foot { margin-top: 56px; display: grid; grid-template-columns: repeat(2, minmax(0, 34ch)); gap: 20px 56px; font-size: 15px; color: var(--ink-2); }
.bio-foot a { color: var(--ink); border-bottom: 1px solid var(--ink-3); }
.bio-foot a:hover { border-color: var(--ink); }

/* ---------- Levels ---------- */
.level { min-height: 135svh; display: grid; align-items: end; padding-block: 30vh 16vh; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: end; }
.split.flip > header { order: 2; }
.panel { border-radius: 26px; padding: 6px 28px; }
.row { display: grid; grid-template-columns: 116px 1fr; gap: 20px; padding: 22px 0; }
.row + .row { border-top: 1px solid var(--line); }
.row time { font: 400 11px/1.7 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.row h3 { font-size: 18px; font-weight: 500; letter-spacing: -0.015em; }
.row .org { font-size: 14px; color: var(--ink-2); }
.row .note { margin-top: 8px; font-size: 14px; color: var(--ink-2); max-width: 52ch; }
.draft { opacity: 0.55; }

/* ---------- Projects: 3D terrain ---------- */
#projects { align-items: center; padding-block: 16vh; }
#projects h2 { font-size: clamp(44px, 5.6vw, 76px); }
#projects header { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 40px; margin-bottom: 24px; }
#projects header .eyebrow { flex-basis: 100%; margin-bottom: 0; }
#projects .lede { margin: 0 0 10px; }
.map-board {
  position: relative; height: min(66svh, 660px); min-height: 460px;
  border-radius: 32px; padding: 8px;
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(30px) saturate(160%); backdrop-filter: blur(30px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.3) inset, 0 50px 100px -40px rgba(0, 0, 0, 0.75);
}
.terrain { width: 100%; height: 100%; border-radius: 25px; overflow: hidden; background: #1a211b; }
.terrain canvas { outline: none; }
.map-bar {
  position: absolute; top: 24px; left: 50%; transform: translateX(-50%); z-index: 3;
  display: flex; gap: 2px; padding: 4px; border-radius: 999px; font-size: 13px; white-space: nowrap; background: var(--glass-strong);
}
.map-bar button { padding: 8px 18px; border-radius: 999px; color: var(--ink-2); transition: background 0.25s, color 0.25s; }
.map-bar button[aria-pressed="true"] { background: var(--ink); color: #121512; font-weight: 500; }
.map-card {
  position: absolute; z-index: 3; left: 24px; top: 24px; bottom: 24px; width: min(390px, calc(100% - 48px));
  border-radius: 22px; padding: 22px 24px; background: var(--glass-strong);
  overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.25) transparent;
}
.map-card .idx { display: flex; justify-content: space-between; gap: 12px; font: 400 10px/1.3 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--lichen); }
.map-card .idx span { color: var(--ink-3); white-space: nowrap; }
.map-card h3 { margin-top: 16px; font-size: 30px; font-weight: 300; line-height: 1; letter-spacing: -0.04em; }
.map-card .tagline { margin: 6px 0 4px; font-size: 15px; color: var(--ink-2); }
.map-card .stack { margin-top: 18px; font: 400 11px/1.5 var(--mono); color: var(--ink-3); }
.map-card .out { display: inline-block; margin-top: 14px; font-size: 13px; font-weight: 500; border-bottom: 1px solid var(--ink-3); }

/* ---------- The story blocks: problem / built / for / impact ---------- */
.blk { margin-top: 16px; }
.blk .k { display: block; margin-bottom: 5px; font: 500 10px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.blk p { font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.blk p.impact { color: var(--ink); font-weight: 500; }
.stat { margin-top: 10px; padding-left: 12px; border-left: 1.5px solid var(--lichen); font-size: 13px !important; line-height: 1.45; color: var(--ink) !important; }
.stat a { display: block; margin-top: 3px; font: 400 10px/1.4 var(--mono); letter-spacing: 0.04em; color: var(--ink-3); }
.stat a:hover { color: var(--ink); }

.case + .case { border-top: 1px solid var(--line); }
.case summary { display: grid; grid-template-columns: 116px 1fr auto; gap: 20px; align-items: start; padding: 22px 0; cursor: pointer; list-style: none; }
.case summary::-webkit-details-marker { display: none; }
.case summary time { font: 400 11px/1.7 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.case summary h3 { font-size: 18px; font-weight: 500; letter-spacing: -0.015em; }
.case summary .org { font-size: 14px; color: var(--ink-2); }
.case .big { text-align: right; font-size: 30px; font-weight: 300; line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.case .big small { display: block; margin-top: 6px; max-width: 13ch; margin-left: auto; font: 400 10px/1.3 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.case summary h3::after { content: "+"; display: inline-block; margin-left: 10px; font-weight: 300; color: var(--ink-3); transition: transform 0.3s var(--ease); }
.case[open] summary h3::after { transform: rotate(45deg); }
.case-body { padding: 0 0 26px 136px; max-width: 640px; }
.case-body .blk:first-child { margin-top: 0; }
.map-step {
  position: absolute; right: 24px; bottom: 24px; display: flex; align-items: center; gap: 4px;
  padding: 5px; border-radius: 999px; background: var(--glass-strong);
  font: 400 11px/1 var(--mono); letter-spacing: 0.08em;
}
.map-step button { width: 36px; height: 36px; border-radius: 50%; font-size: 15px; transition: background 0.2s; }
.map-step button:hover { background: rgba(255, 255, 255, 0.16); }
.map-step span { padding-inline: 8px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.map-hint { position: absolute; right: 30px; top: 36px; font: 400 10px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.75); text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6); }
.no-map .terrain, .no-map .map-hint { display: none; }
.no-map .map-board { height: auto; min-height: 0; padding: 24px; display: flex; justify-content: space-between; align-items: end; gap: 16px; }
.no-map .map-card, .no-map .map-step, .no-map .map-bar { position: static; transform: none; }

.pin {
  display: flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border-radius: 999px;
  background: rgba(24, 28, 24, 0.5); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.3); color: var(--ink);
  font: 500 12px/1 var(--sans); white-space: nowrap;
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.6);
  transition: background 0.25s, color 0.25s;
}
.pin i { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); font: 500 10px/1 var(--mono); font-style: normal; }
.pin.on { background: var(--ink); color: #121512; border-color: transparent; }
.pin.on i { background: #121512; color: var(--ink); }
.maplibregl-cooperative-gesture-screen { font-family: var(--sans); font-size: 14px; border-radius: 25px; }

/* ---------- Rest stop ---------- */
.rest { min-height: 120svh; display: grid; align-items: center; padding-block: 16vh; }
.h-soft { font-size: clamp(34px, 4.6vw, 62px); line-height: 1.04; letter-spacing: -0.035em; }
.photos { margin-top: 48px; display: grid; grid-template-columns: 1fr 1fr 0.9fr; gap: 20px; align-items: end; }
.photos figure img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 18px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7); }
.photos figure:nth-child(2) { transform: translateY(36px); }
.photos figcaption { margin-top: 12px; font-size: 13px; color: var(--ink-2); }
.photos figcaption span, .off-list span { font: 400 10px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin-right: 10px; }
.off-list { list-style: none; padding: 0 0 0 20px; align-self: center; }
.off-list li { padding: 13px 0; font-size: 17px; font-weight: 300; letter-spacing: -0.01em; }
.off-list li + li { border-top: 1px solid var(--line); }

/* ---------- Summit ---------- */
.summit { position: relative; min-height: 130svh; display: grid; align-items: end; padding-block: 30vh 14vh; }
.summit-text { margin-top: 32px; max-width: 30em; }
.summit-text p { font-size: clamp(20px, 2.3vw, 30px); font-weight: 300; line-height: 1.28; letter-spacing: -0.02em; }
.summit-text p + p { margin-top: 0.8em; }
.summit-foot { margin-top: 56px; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 28px; }
.btn { padding: 15px 26px; border-radius: 999px; background: var(--ink); color: #121512; font-size: 15px; font-weight: 500; transition: transform 0.25s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.sign { font-size: 15px; color: var(--ink-2); text-align: right; }
.sign i { font-family: var(--serif); font-size: 34px; line-height: 1.1; color: var(--ink); }
.credit { position: absolute; bottom: 52px; left: var(--gutter); right: var(--gutter); font-size: 11px; color: var(--ink-3); }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scenes img { transition: opacity 0.3s; transform: none; }
  .scroll span { animation: none; }
}

/* ---------- Small screens ---------- */
@media (max-width: 920px) {
  .nav-links, .rail { display: none; }
  .nav { padding-left: 18px; }
  .nav-name { margin-right: 4px; }
  .plate { display: none; }
  .elev { left: 16px; bottom: 14px; }
  .corner-r { display: none; }
  .corner { bottom: 110px; left: 0; right: 0; text-align: center; }
  .split { grid-template-columns: 1fr; }
  .split.flip > header { order: 0; }
  .level { min-height: 115svh; padding-block: 34vh 12vh; }
  .panel { padding: 2px 20px; border-radius: 22px; }
  .row { grid-template-columns: 1fr; gap: 4px; padding: 18px 0; }
  .bio-foot { grid-template-columns: 1fr; }
  .photos { grid-template-columns: 1fr 1fr; gap: 12px; }
  .photos figure:nth-child(2) { transform: translateY(20px); }
  .off-list { grid-column: 1 / -1; padding: 28px 0 0; }
  .map-board { border-radius: 26px; padding: 6px; }
  #terrain { border-radius: 20px; }
  .map-hint { display: none; }
  .map-step { right: 14px; bottom: 14px; }
  .pin span { display: none; }
  .pin { padding: 4px; }
  .summit-foot { align-items: start; flex-direction: column; }
  .sign { text-align: left; }
}

/* ---------- Links in rows + summit ---------- */
.row h3 a { border-bottom: 1px solid var(--ink-3); }
.row h3 a:hover { border-color: var(--ink); }
.row h3 { text-wrap: balance; }
.reach { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; }
.reach a:not(.btn) { font-size: 15px; color: var(--ink-2); border-bottom: 1px solid var(--ink-3); }
.reach a:not(.btn):hover { color: var(--ink); border-color: var(--ink); }

#experience .split { grid-template-columns: 1fr; }
#experience .split.flip > header { order: 0; }
#experience .panel { max-width: 860px; }
#experience { padding-top: 46vh; }
.map-board { height: min(74svh, 720px) !important; }
.row .stat { margin-top: 12px; max-width: 52ch; }
@media (max-width: 920px) {
  .case summary { grid-template-columns: 1fr auto; gap: 6px 14px; }
  .case summary time { grid-column: 1 / -1; }
  .case .big { font-size: 24px; }
  .case-body { padding-left: 0; }
  .map-board { height: 86svh !important; }
  .map-card { top: auto; left: 12px; right: 12px; bottom: 66px; width: auto; max-height: 52%; padding: 16px 18px; }
  .map-card h3 { font-size: 24px; }
  .map-bar { top: 14px; }
}

@media (min-width: 921px) { .map-bar { left: 438px; transform: none; } }

/* ---------- Photo strips: scroll sideways through real photos ---------- */
.strip {
  margin-top: 40px; display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x proximity;
  margin-right: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 6px 0; scrollbar-width: none;
}
.strip::-webkit-scrollbar { display: none; }
.strip figure { flex: none; scroll-snap-align: start; }
.strip img { display: block; height: clamp(240px, 42svh, 400px); width: auto; border-radius: 18px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7); }
.strip figcaption { margin-top: 12px; font-size: 13px; color: var(--ink-2); }
.strip figcaption span { font: 400 10px/1 var(--mono); letter-spacing: 0.1em; color: var(--ink-3); margin-right: 10px; }
.rest .off-list { margin-top: 36px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; }
.rest .off-list li { padding: 0; border: 0 !important; font-size: 15px; color: var(--ink-2); }
.crew { margin-top: 64px; }
.crew .eyebrow { margin-bottom: 0; }
.crew .strip { margin-top: 20px; }
#leadership { display: block; padding-top: 52vh; }
.rest { display: block; padding-block: 24vh; }
.wrap { min-width: 0; }

.case-body.has-photo { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 28px; align-items: start; }
.case-body.has-photo > div { order: -1; }
.case-body > div > .blk:first-child { margin-top: 0; }
.case-photo { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 30% 60%; border-radius: 14px; }
@media (max-width: 920px) { .case-body.has-photo { grid-template-columns: 1fr; } .case-photo { aspect-ratio: 4 / 3; order: -2; } }

.strip-label { margin: 56px 0 0; }
.strip-label + .strip { margin-top: 18px; }
.strip img { height: clamp(220px, 36svh, 340px); }
.case-body.has-photo { grid-template-columns: minmax(0, 1fr) 260px; }
.case-photo { aspect-ratio: 4 / 3; object-position: 50% 50%; }

#awards { display: block; padding-top: 52vh; }

/* ---------- Intro: big type on a real photograph, a film strip along the bottom ---------- */
.hero { display: block; text-align: left; }
.hero-text { position: absolute; left: var(--gutter); right: var(--gutter); top: 44%; transform: translateY(-50%); }
.intro { font-weight: 500; font-size: clamp(52px, 9vw, 148px); line-height: 0.92; letter-spacing: -0.055em; text-shadow: 0 2px 30px rgba(0, 0, 0, 0.25); }
.intro em { font-style: normal; color: #bdb8ff; }
.hero-sub { margin-top: 22px; }
.film { position: absolute; left: 0; right: 0; bottom: 0; background: #0c0c0b; padding: 0 0 12px; }
.film::before, .film::after { content: ""; display: block; height: 12px; margin: 7px 0;
  background: repeating-linear-gradient(90deg, transparent 0 9px, rgba(246, 244, 238, 0.82) 9px 23px, transparent 23px 32px); }
.film::after { margin-bottom: 0; }
.film-edge { display: flex; gap: 28px; padding: 0 var(--gutter) 7px; font: 500 9px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: #e9a13b; }
.film-edge a { margin-left: auto; color: var(--ink-2); }
.film-frames { display: flex; gap: 5px; overflow-x: auto; padding: 0 var(--gutter); scrollbar-width: none; }
.film-frames::-webkit-scrollbar { display: none; }
.film-frames figure { position: relative; flex: none; }
.film-frames img { display: block; height: clamp(110px, 19svh, 170px); width: auto; border-radius: 2px;
  filter: grayscale(1) contrast(1.08) brightness(0.86); transition: filter 0.5s var(--ease); }
.film-frames figure:hover img { filter: none; }
.film-frames figcaption { position: absolute; left: 6px; bottom: 5px; font: 500 9px/1 var(--mono); letter-spacing: 0.1em; color: #e9a13b; }
@media (hover: none) { .film-frames img { filter: none; } }
body:not(.past-hero) .elev, body:not(.past-hero) .plate { opacity: 0; }
.elev, .plate { transition: opacity 0.4s; }

/* ---------- The route map ---------- */
#route { align-items: center; padding-block: 16vh; }
#route h2 { font-size: clamp(44px, 5.6vw, 76px); }
#route header { margin-bottom: 24px; }
.route-list { position: absolute; z-index: 3; left: 24px; top: 24px; width: 264px; margin: 0; padding: 8px; list-style: none; border-radius: 22px; background: var(--glass-strong); }
.route-list button { display: grid; grid-template-columns: 26px 1fr; gap: 0 10px; width: 100%; padding: 10px 12px; border-radius: 14px; text-align: left; transition: background 0.2s; }
.route-list button:hover { background: rgba(255, 255, 255, 0.12); }
.route-list i { grid-row: span 2; align-self: center; font: 500 10px/1 var(--mono); font-style: normal; color: var(--lichen); }
.route-list b { font-size: 15px; font-weight: 500; letter-spacing: -0.01em; }
.route-list span { font: 400 10px/1.5 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
#route.no-map .route-list { position: static; width: auto; }

/* ---------- Side text: small uppercase mono ---------- */
.hero-sub, .strip figcaption, .lede, .rest .off-list li, .row .org, .case summary .org, .map-card .tagline, .bio-foot, .credit {
  font-family: var(--mono); font-size: 11px; line-height: 1.6; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 400; }
.lede { max-width: 44ch; }
.strip figcaption { max-width: 46ch; }
.strip figcaption span, .off-list span { letter-spacing: 0.08em; }
@media (max-width: 920px) {
  .hero-text { top: 40%; }
  #route .map-board { height: auto !important; min-height: 0; }
  #route .terrain { height: 56svh; }
  .route-list { position: static; width: auto; margin-top: 6px; background: transparent; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ---------- Home: the name, centred, over the photograph; a drawn film roll below ---------- */
.hero { display: grid; place-items: center; text-align: center; }
.hero-center { padding-bottom: 22svh; }
.film { background: #fff; padding: 10px var(--gutter); }
.film::before, .film::after { content: none; }
.film-art { position: relative; width: min(980px, 100%); margin-inline: auto; }
.film-art > img { display: block; width: 100%; height: auto; }
.film-art::after { content: ""; position: absolute; left: 26%; top: 0; width: 17%; height: 11%; background: #fff; }
.film-frames { position: absolute; inset: 0; display: block; padding: 0; overflow: visible; }
.film-frames img { position: absolute; top: 27%; height: 51%; width: auto; object-fit: cover; border-radius: 0;
  filter: grayscale(1) contrast(1.05); transition: filter 0.5s var(--ease); }
.film-frames img:hover { filter: none; }
.film-frames img:nth-child(1) { left: 10.9%; width: 15.3%; }
.film-frames img:nth-child(2) { left: 27.1%; width: 12.7%; }
.film-frames img:nth-child(3) { left: 40.4%; width: 15%; }
.film-frames img:nth-child(4) { left: 55.7%; width: 12.7%; }
.film-frames img:nth-child(5) { left: 68.8%; width: 13.5%; }
@media (hover: none) { .film-frames img { filter: none; } }

/* ---------- Experience: photo pins along a coast ---------- */
.pin.photo { padding: 3px; border-radius: 14px; background: #fff; border: 0; color: #121512; transition: transform 0.25s var(--ease); }
.pin.photo img, .pin.photo b { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 11px; object-fit: cover; }
.pin.photo b { background: #1b1f1b; color: var(--ink); font: 400 15px/1 var(--sans); letter-spacing: -0.03em; }
.pin.photo.on { background: var(--lichen); transform: scale(1.18); }
.xp-big { margin-top: 16px; font-size: 54px; font-weight: 300; line-height: 1; letter-spacing: -0.05em; }
.xp-big small { display: block; margin-top: 6px; font: 400 10px/1.3 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.map-card h3.xp-title { font-size: 20px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; }
.xp-photo { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px; margin-top: 14px; }
#experience { padding-top: 16vh; align-items: center; }
#experience header { margin-bottom: 24px; }
#experience h2 { font-size: clamp(44px, 5.6vw, 76px); }
@media (max-width: 920px) { .pin.photo img, .pin.photo b { width: 42px; height: 42px; } }

/* ---------- Film roll sits straight on the photograph: white drops out, film stays dark ---------- */
main { z-index: auto; }
.film { background: transparent; padding: 0 12px 14px; }
.film-art { width: min(1500px, 100%); }
.film-art > img { mix-blend-mode: multiply; }
.film-art::after { content: none; }
.hero-center { padding-bottom: 30svh; }

/* ---------- Trailhead: what i've worked on ---------- */
.worked { margin-top: 40px; font-size: clamp(17px, 1.5vw, 21px); font-weight: 300; letter-spacing: -0.01em; }
.worked ul { list-style: none; margin: 12px 0 0; padding: 0; }
.worked li { padding: 5px 0 5px 22px; position: relative; }
.worked li::before { content: "•"; position: absolute; left: 4px; color: var(--ink-3); }
.worked a { border-bottom: 1px solid var(--ink-3); }
.worked a:hover { border-color: var(--ink); }
.worked span { margin-left: 10px; font: 400 11px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.bio { padding-block: 14vh; }

/* ---------- Link pills + skill tags ---------- */
.links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.pill { padding: 10px 18px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.55); font-size: 14px; font-weight: 400; letter-spacing: 0; transition: background 0.2s, color 0.2s; }
.pill:hover { background: rgba(255, 255, 255, 0.14); }
.pill.solid { background: var(--ink); color: #121512; border-color: transparent; font-weight: 500; }
.pill.mono { font: 400 12px/1.5 var(--mono); }
.worked .pill { border-bottom: 1px solid rgba(255, 255, 255, 0.55); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.tags span { padding: 5px 9px; border-radius: 7px; background: rgba(255, 255, 255, 0.1); font: 400 11px/1 var(--mono); color: var(--ink-2); }

/* ---------- Home: a real X100 on a black bar, prints sliding past ---------- */
.reel { position: absolute; left: 0; right: 0; bottom: 0; height: 30svh; min-height: 200px; background: #000; display: flex; align-items: center; }
.cam { flex: none; height: 100%; padding: 10px 6px 10px var(--gutter); position: relative; z-index: 2; background: #000; }
.cam img { display: block; height: calc(100% - 16px); width: auto; }
.cam figcaption { font: 500 9px/1 var(--mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); text-align: center; margin-top: 4px; }
.reel-track { flex: 1; height: 100%; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%); mask-image: linear-gradient(90deg, transparent, #000 8%); }
.reel-run { display: flex; gap: 14px; height: 100%; width: max-content; padding-block: 22px; animation: reel 60s linear infinite; }
.reel-track:hover .reel-run { animation-play-state: paused; }
.reel-run img { height: 100%; width: auto; padding: 5px 5px 16px; background: #f4f1ea; filter: grayscale(1); transition: filter 0.4s var(--ease), transform 0.4s var(--ease); }
.reel-run img:hover { filter: none; transform: scale(1.04) rotate(-1deg); }
@keyframes reel { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 7px)); } }
@media (hover: none) { .reel-run img { filter: none; } }
@media (prefers-reduced-motion: reduce) { .reel-run { animation: none; } .reel-track { overflow-x: auto; } }
.hero-center { padding-bottom: 28svh; }
@media (max-width: 920px) { .reel { height: 24svh; } .cam { padding-left: 12px; } }

/* ---------- Fridge ---------- */
.fridge { position: relative; margin-top: 18px; padding: 44px 44px 52px 76px; border-radius: 28px;
  background: linear-gradient(100deg, #d9dcdc 0%, #f1f2f1 18%, #e4e6e5 55%, #cfd3d2 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.6), inset -18px 0 30px -18px rgba(0,0,0,.25), 0 40px 80px -40px rgba(0,0,0,.7);
  display: flex; flex-wrap: wrap; gap: 34px 30px; align-items: center; justify-content: center; }
.fridge::before { content: ""; position: absolute; left: 28px; top: 14%; bottom: 14%; width: 14px; border-radius: 8px;
  background: linear-gradient(90deg, #9fa5a4, #eef0ef 45%, #8f9594); box-shadow: 3px 0 6px rgba(0,0,0,.25); }
.fridge figure { position: relative; flex: none; transition: transform 0.3s var(--ease); }
.fridge img { display: block; height: clamp(120px, 20svh, 190px); width: auto; box-shadow: 0 8px 16px -6px rgba(0,0,0,.45); }
.fridge figure::before { content: ""; position: absolute; z-index: 1; left: 50%; top: -9px; width: 20px; height: 20px; margin-left: -10px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ff8a7a, #c8261a 70%); box-shadow: 0 3px 5px rgba(0,0,0,.45); }
.fridge figure:nth-child(3n)::before { background: radial-gradient(circle at 35% 30%, #8fb4ff, #1f4fc0 70%); }
.fridge figure:nth-child(3n+2)::before { background: radial-gradient(circle at 35% 30%, #ffe08a, #d39a10 70%); }
.fridge figure:nth-child(odd) { transform: rotate(-2.5deg); }
.fridge figure:nth-child(even) { transform: rotate(2deg); }
.fridge figure:nth-child(4n) { transform: rotate(-4deg) translateY(8px); }
.fridge figure:hover { transform: rotate(0) scale(1.06); z-index: 2; }
@media (max-width: 920px) { .fridge { padding: 34px 18px 38px 46px; gap: 26px 16px; } .fridge::before { left: 16px; width: 10px; } .fridge img { height: 110px; } }

/* ---------- Fridge, take two: dark brushed steel, overlapping clippings, silver magnets ---------- */
.fridge { padding: 56px 40px 64px; gap: 0; max-width: 980px;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 3px),
    linear-gradient(100deg, #2f3132 0%, #55585a 30%, #8a8d8f 52%, #5b5e60 68%, #333536 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 40px 80px -40px rgba(0,0,0,.8); }
.fridge::before { content: none; }
.fridge figure { margin: -10px -12px; }
.fridge img { height: clamp(130px, 22svh, 210px); box-shadow: 0 10px 18px -6px rgba(0,0,0,.6); }
.fridge .polaroid { background: #f6f4ee; padding: 9px 9px 0; box-shadow: 0 10px 18px -6px rgba(0,0,0,.6); }
.fridge .polaroid img { box-shadow: none; aspect-ratio: 1; object-fit: cover; width: auto; }
.fridge .polaroid figcaption { padding: 7px 2px 10px; max-width: 0; min-width: 100%; font: italic 400 17px/1.1 var(--serif); color: #1b1f1b; text-align: center; }
.fridge figure::before, .fridge figure:nth-child(3n)::before, .fridge figure:nth-child(3n+2)::before {
  top: -8px; width: 18px; height: 18px; margin-left: -9px;
  background: radial-gradient(circle at 35% 30%, #ffffff, #b9bdbf 45%, #6f7375 100%); box-shadow: 0 3px 5px rgba(0,0,0,.55); }
.fridge figure:nth-child(5n+1) { transform: rotate(-5deg); }
.fridge figure:nth-child(5n+2) { transform: rotate(3deg) translateY(14px); }
.fridge figure:nth-child(5n+3) { transform: rotate(-1.5deg) translateY(-8px); z-index: 1; }
.fridge figure:nth-child(5n+4) { transform: rotate(6deg) translateY(10px); }
.fridge figure:nth-child(5n) { transform: rotate(-3deg) translateY(-4px); z-index: 1; }
.fridge figure:hover { transform: rotate(0) scale(1.08); z-index: 3; }
@media (max-width: 920px) { .fridge { padding: 34px 14px 40px; } .fridge img { height: 104px; } .fridge figure { margin: -6px -6px; } .fridge .polaroid figcaption { font-size: 13px; } }

/* ---------- Picnic blanket: the food, laid out ---------- */
.picnic { margin-top: 18px; padding: 40px 28px 52px; border-radius: 28px; background-color: #f7f4ee;
  background-image:
    linear-gradient(90deg, rgba(196, 30, 42, .55) 50%, transparent 50%),
    linear-gradient(rgba(196, 30, 42, .55) 50%, transparent 50%);
  background-size: 72px 72px;
  box-shadow: inset 0 0 60px rgba(90, 20, 20, .25), 0 40px 80px -40px rgba(0,0,0,.8); }
.picnic-note { width: fit-content; margin: 0 auto 30px; padding: 12px 22px; background: #fffdf7; color: #1b1f1b; transform: rotate(-1.5deg);
  font: italic 400 26px/1.15 var(--serif); box-shadow: 0 8px 16px -6px rgba(0,0,0,.45); }
.spread { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 14px; }
.spread figure { flex: none; padding: 7px 7px 0; background: #fffdf7; box-shadow: 0 8px 16px -6px rgba(0,0,0,.5); transition: transform .3s var(--ease); }
.spread img { display: block; height: clamp(120px, 19svh, 180px); width: auto; }
.spread figcaption { max-width: 0; min-width: 100%; padding: 6px 2px 8px; color: #1b1f1b; font: 400 9px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; text-align: center; }
.spread figcaption span { display: none; }
.spread figure:nth-child(4n+1) { transform: rotate(-3deg); }
.spread figure:nth-child(4n+2) { transform: rotate(2deg) translateY(6px); }
.spread figure:nth-child(4n+3) { transform: rotate(-1deg); }
.spread figure:nth-child(4n) { transform: rotate(4deg) translateY(-4px); }
.spread figure:hover { transform: scale(1.1); z-index: 2; position: relative; }
@media (max-width: 920px) { .picnic { padding: 26px 12px 34px; background-size: 48px 48px; } .spread img { height: 104px; } .picnic-note { font-size: 20px; } }

/* ---------- Social links, top left ---------- */
.socials { position: fixed; z-index: 20; top: 18px; left: 18px; display: flex; gap: 2px; padding: 6px; border-radius: 999px; font-size: 13px; }
.socials a { padding: 7px 12px; border-radius: 999px; color: var(--ink-2); transition: color .2s, background .2s; }
.socials a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.1); }
@media (max-width: 1180px) { .socials { top: auto; bottom: 14px; left: auto; right: 14px; } }

/* ---------- Film roll, cut out of its page ---------- */
.film { position: absolute; left: 0; right: 0; bottom: 0; background: transparent; padding: 0 12px 18px; }
.film-art { position: relative; width: min(1500px, 100%); margin-inline: auto; filter: drop-shadow(0 14px 22px rgba(0,0,0,.45)); }
.film-art > canvas { display: block; width: 100%; height: auto; }
.film-frames { position: absolute; inset: 0; }
.hero-center { padding-bottom: 30svh; }
/* Food: no drawn pattern. Plain panel until there is a real picnic photograph to sit on. */
.picnic { background: var(--glass); background-image: none; -webkit-backdrop-filter: blur(26px); backdrop-filter: blur(26px); border: 1px solid var(--line); box-shadow: 0 24px 60px -24px rgba(0,0,0,.55); }

/* Summit now holds only the why; the photos, fridge and sign-off close the page. */
.summit { min-height: 100svh; padding-block: 34vh 12vh; }
.rest { position: relative; padding-bottom: 20vh; }
.rest .summit-foot { margin-top: 72px; }

.film-art { width: min(1150px, 100%); }
.hero-center { padding-bottom: 24svh; }

/* ---------- Picnic: a real picnic photograph, food prints laid across it ---------- */
.picnic { padding: 26px 0 30px; overflow: hidden; border: 0; -webkit-backdrop-filter: none; backdrop-filter: none;
  background: url(assets/img/picnic.jpg) center / cover no-repeat; box-shadow: 0 40px 80px -40px rgba(0,0,0,.8); }
.picnic-note { margin: 0 0 22px 28px; }
.spread { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; padding: 14px 28px 20px; gap: 22px; scrollbar-width: none; }
.spread::-webkit-scrollbar { display: none; }
.spread img { height: clamp(220px, 38svh, 340px); }
.spread figcaption { font-size: 10px; padding: 8px 2px 10px; }

/* ---------- Film roll: larger, whole photo visible in each frame, pops out on hover ---------- */
.film-art { width: min(1400px, 100%); }
.film-frames img { object-fit: contain; background: #0b0b0b; transition: filter .4s var(--ease), transform .35s var(--ease); transform-origin: 50% 90%; }
.film-frames img:hover { transform: scale(2.1); z-index: 5; box-shadow: 0 20px 40px -10px rgba(0,0,0,.7); }
.hero-center { padding-bottom: 28svh; }

/* Film frames: fill the frame, no pop-out. Colour on hover only. */
.film-frames img { object-fit: cover; object-position: 50% 35%; transform: none; transition: filter .4s var(--ease); }
.film-frames img:hover { transform: none; box-shadow: none; filter: none; }
