@font-face {
  font-family: Manrope;
  src: url('./fonts/manrope-latin-variable.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
}

:root {
  font-family: Manrope, system-ui, sans-serif;
  color-scheme: dark;
  --paper: #101214;
  --ink: #edf0f2;
  --muted: #b1b8c2;
  --line: #626c79;
  --blue: #86aafa;
  --world-ink: #a3abb7;
  --world-gold: #f1d292;
  --diagram-pale: #a9b5c9;
  --diagram-gold: #e3b56b;
  --diagram-dim: #536174;
  --view-height: 100vh;
  --live-height: 100vh;
  --scene-height: 100vh;
  --page-gutter: 4.2vw;
  --header-gutter: var(--page-gutter);
  --copy-gutter: var(--page-gutter);
  --nav-bottom: 1.875rem;
}
@supports (height: 100dvh) {
  :root { --view-height: 100svh; --live-height: 100dvh; --scene-height: 100lvh; }
}

* { box-sizing: border-box; }
html { background: var(--paper); scroll-behavior: auto; }
body { margin: 0; background: var(--paper); color: var(--ink); }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible { outline: 0.125rem solid var(--blue); outline-offset: 0.3125rem; }
::selection { background: var(--blue); color: var(--paper); }
[hidden] { display: none !important; }

/* The fixed GPU layer has stable dimensions while mobile browser chrome moves. */
.portfolio { position: relative; min-height: var(--view-height); overflow: clip; isolation: isolate; }
.scene {
  position: fixed; top: 0; left: 0; width: 100%; height: var(--scene-height);
  z-index: 0; pointer-events: none; background: var(--paper);
  contain: strict; transform: translateZ(0);
}
.scene canvas { width: 100%; height: 100%; display: block; }
.portfolio.is-artifact-hover { cursor: pointer; }
.scene-fallback {
  position: absolute; inset: 48% 0 0;
  background-image: radial-gradient(var(--muted) 0.05rem, transparent 0.0625rem);
  background-size: 0.375rem 0.375rem; opacity: 0; mask-image: linear-gradient(transparent, #000 30%);
}
:root.no-world .scene-fallback { opacity: .26; }
.scene.is-ready .scene-fallback { display: none; }

.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 1.75rem;
  margin: 0 4.2%; padding: 1.875rem 0 1.625rem;
}
.site-header::before {
  content: ''; position: absolute; inset: -1.25rem calc(-1 * var(--header-gutter) - 0.125rem) -1.5rem; z-index: -1;
  background: linear-gradient(var(--paper) calc(100% - 1.875rem), transparent); pointer-events: none;
}
.wordmark { display: inline-flex; flex-direction: column; gap: 0.1875rem; line-height: 1.2; font-size: 1.4375rem; font-weight: 650; letter-spacing: -0.0625rem; white-space: nowrap; }
.wordmark-role { font-size: 0.625rem; font-weight: 450; letter-spacing: 0.00625rem; line-height: 1.3; color: var(--muted); }
.wordmark-dot { color: var(--blue); }
.main-nav { display: flex; align-items: center; gap: 2rem; }
.nav-link { font-size: 0.75rem; font-weight: 550; background: none; padding: 0.625rem 0; position: relative; }
.nav-link.is-active::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0.125rem; height: 0.0625rem; background: var(--blue); }
.external-arrow { margin-left: 0.375rem; color: var(--muted); }
.mobile-resume { display: none; }
.desktop-resume:hover, .mobile-resume:hover, .about-links a:hover { text-decoration: underline; text-underline-offset: 0.25rem; }
/* Every story is ordinary document content followed by an open stretch of terrain. */
.journey-stop {
  position: relative; min-height: var(--view-height);
  padding-top: clamp(8.125rem, calc(var(--view-height) * .16), 12.5rem);
  padding-bottom: 9.5rem; overflow-anchor: none;
}
.journey-stop + .journey-stop { margin-top: calc((var(--view-height) + clamp(17.5rem, calc(var(--view-height) * .45), 33.75rem)) * var(--travel-scale, 1) - var(--view-height)); }
.project-overlay { position: relative; margin-left: 4.2%; width: min(25.625rem, 35%); z-index: 2; }
.project-overlay::before {
  content: ''; position: absolute; z-index: -1; inset: -3.75rem -7.8125rem -5.625rem calc(-1 * var(--copy-gutter) - 0.125rem);
  background: linear-gradient(90deg, var(--paper) calc(100% - 6.25rem), transparent);
  mask-image: linear-gradient(transparent, #000 3.75rem, #000 calc(100% - 6.25rem), transparent);
  pointer-events: none;
}
.project-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6875rem; color: var(--muted); font-size: 0.625rem; font-weight: 600; letter-spacing: 0.071875rem; text-transform: uppercase; }
.meta-separator { color: var(--line); }
h1, .project-title { margin: 1.375rem 0 1.0625rem; font-size: clamp(2.875rem, 5.5vw, 5rem); line-height: 1.03; letter-spacing: -.065em; font-weight: 700; text-wrap: balance; }
.project-summary { margin: 0; max-width: 21.25rem; font-size: 1.0625rem; line-height: 1.6; font-weight: 450; letter-spacing: -0.015625rem; color: var(--muted); }
.project-proof { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.625rem; align-items: center; font-size: 0.8125rem; font-weight: 650; letter-spacing: -0.00625rem; color: var(--blue); }
.proof-date { color: var(--muted); font-size: 0.625rem; font-weight: 450; letter-spacing: 0.015625rem; }
.proof-date::before { content: '·'; margin-right: 0.625rem; }
#stop-autoland .project-proof > span:first-child { font-size: clamp(1.375rem, 2vw, 1.875rem); letter-spacing: -0.05rem; line-height: 1.15; }
#stop-autoland .proof-date { flex-basis: 100%; }
#stop-autoland .proof-date::before { content: none; }
.project-notes { position: relative; margin-top: 1.9375rem; padding-top: 1.4375rem; border-top: 0.0625rem solid var(--line); max-width: 24.0625rem; }
.project-notes section + section { margin-top: 1.375rem; }
.project-notes h3 { font-size: 0.6875rem; font-weight: 650; letter-spacing: 0.003125rem; margin: 0 0 0.4375rem; color: var(--ink); }
.project-notes p { font-size: 0.8125rem; font-weight: 450; line-height: 1.8; margin: 0; color: var(--muted); }
.evidence-links { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-top: 1.5rem; font-size: 0.75rem; color: var(--blue); }
.evidence-links a { padding: 0.625rem 0; }
.world-connection { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; opacity: 0; transition: opacity .3s; }
.world-connection.is-visible { opacity: 1; }
.world-connection path { fill: none; stroke: var(--blue); stroke-width: .75; opacity: .34; }
.world-connection circle { fill: var(--paper); stroke: var(--blue); stroke-width: 1; opacity: .75; }

/* Extra entries extend the rail horizontally instead of shrinking tap targets. */
.project-navigation { position: fixed; left: 4.2%; bottom: max(1.875rem, env(safe-area-inset-bottom)); z-index: 4; width: min(48.125rem, 86%); }
.project-navigation::before {
  content: ''; position: absolute; z-index: -1; pointer-events: none;
  inset: -4rem -6.875rem calc(-1 * max(var(--nav-bottom), env(safe-area-inset-bottom)) - 0.125rem) calc(-1 * var(--page-gutter) - 0.125rem);
  background: linear-gradient(transparent, var(--paper) 1.875rem);
  mask-image: linear-gradient(90deg, #000 calc(100% - 5.625rem), transparent);
}
.project-rail { display: grid; grid-auto-flow: column; grid-template-columns: repeat(var(--project-count, 5), minmax(6.5625rem, 1fr)); overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; padding: 0.375rem 0.0625rem; margin: -0.375rem -0.0625rem; }
.project-rail::-webkit-scrollbar { display: none; }
.project-picker { display: none; }
.project-button { position: relative; display: flex; align-items: center; gap: 0.75rem; min-height: 3rem; padding: 0.9375rem 1.125rem 0.75rem 0; text-align: left; background: none; font-size: 0.6875rem; font-weight: 550; border-top: 0.0625rem solid var(--line); transition: color .18s; }
.project-button::before { content: ''; position: absolute; left: 0; top: -0.1875rem; width: 0.3125rem; height: 0.3125rem; background: var(--paper); border: 0.0625rem solid var(--muted); border-radius: 50%; }
.project-button::after { content: ''; position: absolute; left: 0; top: -0.0625rem; width: calc(var(--route-fill, 0) * 100%); height: 0.0625rem; background: var(--blue); }
.project-button > span:last-child { min-width: 0; white-space: normal; overflow-wrap: anywhere; line-height: 1.35; }
.project-number { flex: none; }
.project-number { font-size: 0.625rem; color: var(--blue); font-weight: 450; letter-spacing: 0.025rem; }
/* Keep hover paint-only: touch Safari may consume a tap when hover changes layout. */
@media (hover: hover) and (pointer: fine) {
  .project-button:hover { color: var(--blue); }
}
.project-button.is-selected::before { background: var(--blue); border-color: var(--blue); box-shadow: 0 0 0 0.25rem color-mix(in srgb, var(--blue) 10%, transparent); }
.scroll-hint { position: absolute; right: 0; top: -1.75rem; color: var(--muted); font-size: 0.625rem; font-weight: 450; letter-spacing: 0.009375rem; transition: opacity .2s; pointer-events: none; }
.scroll-hint span { color: var(--blue); margin-left: 0.625rem; }

#about-overlay {
  margin-top: 0; padding-top: clamp(8.125rem, calc(var(--view-height) * .16), 12.5rem);
  padding-bottom: 9.5rem; min-height: var(--live-height);
}
/* One continuous reading surface runs from the header to the footer. */
#about-overlay::before {
  inset: 0 -7.5rem 0 calc(-1 * var(--copy-gutter) - .125rem);
  mask-image: none;
}
.about-content h1 { margin: 0 0 1rem; font-size: clamp(1.5rem, 2.5vw, 2rem); line-height: 1.2; letter-spacing: -.04em; }
.about-intro { font-size: 1.25rem; line-height: 1.5; letter-spacing: -0.03125rem; margin: 1.75rem 0; }
.about-copy p { font-size: 0.9375rem; line-height: 1.8; color: var(--muted); margin: 1.5rem 0; }
.about-links { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 2rem; font-size: 0.8125rem; color: var(--blue); }
.sr-only { position: absolute; width: 0.0625rem; height: 0.0625rem; padding: 0; margin: -0.0625rem; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -5rem; z-index: 10; padding: 0.75rem 1.125rem; background: var(--paper); border: 0.0625rem solid var(--blue); }
.skip-link:focus { top: 0.75rem; }
.noscript-work { padding: 1.875rem 5%; max-width: 43.75rem; }

@media (max-width: 68.75rem) and (min-width: 47.5625rem) {
  .project-overlay { width: 38%; }
  .project-summary { font-size: 0.9375rem; }
  .project-notes p { font-size: 0.71875rem; }
  .project-notes section + section { margin-top: 1.1875rem; }
}
@media (max-width: 47.5rem) {
  :root {
    --page-gutter: clamp(1.125rem, 5.5vw, 1.5rem);
    --header-gutter: var(--page-gutter);
    --nav-bottom: 1.125rem;
    --panel-top: calc(clamp(5.25rem, calc(var(--live-height) * .115), 6.25rem) + env(safe-area-inset-top));
    --panel-bottom: calc(4.75rem + max(0rem, env(safe-area-inset-bottom) - var(--nav-bottom)));
  }
  .site-header { margin: 0 var(--header-gutter); padding: calc(1.1875rem + env(safe-area-inset-top)) 0 1.0625rem; gap: .75rem; }
  .wordmark { font-size: 1.3125rem; letter-spacing: -0.05rem; }
  .wordmark-role { font-size: 0.5625rem; }
  .main-nav { gap: 1.0625rem; }
  .nav-link { font-size: 0.75rem; min-height: 2.75rem; display: flex; align-items: center; }
  .main-nav #work-link { display: none; }
  .main-nav .desktop-resume { display: none; }
  .mobile-resume { display: inline-flex; gap: 0.5rem; align-items: center; min-height: 2.75rem; margin-top: 0.375rem; color: var(--blue); font-size: 0.6875rem; }
  .journey-stop { padding-top: 7.4375rem; padding-bottom: 10.25rem; }
  .project-overlay { margin: 0 var(--page-gutter); width: auto; min-inline-size: 0; overflow-wrap: break-word; }
  .project-overlay::before { display: none; }
  .project-meta { font-size: 0.5625rem; gap: 0.5625rem; letter-spacing: 0.0625rem; }
  h1, .project-title { font-size: 3.375rem; max-width: 23.75rem; margin: 1.0625rem 0 0.8125rem; letter-spacing: -0.1875rem; }
  .project-summary { font-size: 0.875rem; line-height: 1.6; max-width: 19.375rem; }
  .project-proof { margin-top: 1rem; font-size: 0.6875rem; gap: 0.4375rem; }
  .proof-date { font-size: 0.5625rem; }
  .project-opening { min-height: calc(var(--view-height) - 7.5rem); }
  .project-notes { margin-top: 0; padding: 1.75rem 0 0; max-width: none; }
  .project-notes::before { content: ''; position: absolute; z-index: -1; inset: -5.625rem -2.5rem -10.625rem; background: linear-gradient(transparent, var(--paper) 6.25rem, var(--paper)); pointer-events: none; }
  .project-notes h3 { font-size: 0.75rem; }
  .project-notes p { font-size: 0.875rem; line-height: 1.85; }
  .project-notes section + section { margin-top: 1.75rem; }
  .is-brief .project-opening { min-height: calc(var(--view-height) - 17.6875rem); }
  .project-navigation { left: var(--page-gutter); bottom: max(var(--nav-bottom), env(safe-area-inset-bottom)); width: calc(100% - 2 * var(--page-gutter)); }
  .project-navigation::before {
    top: -0.875rem; right: calc(-1 * var(--page-gutter) - 0.125rem);
    background: linear-gradient(transparent, var(--paper) 1.125rem); mask-image: none;
  }
  .project-picker {
    display: inline-flex; align-items: center; gap: 0.8125rem; min-height: 2.75rem; max-width: 100%;
    padding: 0.625rem 0.875rem; border: 0.0625rem solid var(--line); border-radius: 0.4375rem;
    background: var(--paper); font-size: 0.6875rem; font-weight: 600;
  }
  #current-project { color: var(--blue); font-weight: 450; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .project-picker svg { flex: none; inline-size: .875rem; block-size: .875rem; color: var(--muted); }
  .project-picker[aria-expanded="true"] { border-color: var(--blue); }
  .project-rail {
    position: absolute; left: 0; right: 0; bottom: 3.375rem; display: none;
    grid-template-columns: none; grid-template-rows: repeat(2, minmax(3rem, auto)); grid-auto-flow: column;
    grid-auto-columns: calc((100% - (var(--mobile-columns, 2) - 1) * 0.625rem) / var(--mobile-columns, 2)); gap: 0 0.625rem;
    padding: 0.875rem 0.75rem 0.375rem; margin: 0; border: 0.0625rem solid var(--line); border-radius: 0.4375rem;
    background: var(--paper); box-shadow: 0 0.5rem 1.5rem #0005;
  }
  .project-navigation.is-open .project-rail { display: grid; }
  .project-button { grid-column: var(--mobile-column); grid-row: var(--mobile-row); min-height: 3rem; padding: 0.75rem 0 0.625rem; font-size: 0.6875rem; gap: 0.375rem; }
  .project-button::before { width: 0.25rem; height: 0.25rem; top: -0.15625rem; }
  .world-connection { display: none; }
  .scroll-hint { top: 1rem; font-size: 0.5625rem; }
  .project-navigation.is-open .scroll-hint { visibility: hidden; }
  .about-content { position: relative; }
}
@media (max-width: 25rem) {
  .wordmark { font-size: 1.1875rem; }
  .main-nav { gap: 0.75rem; }
  .main-nav a { font-size: 0.6875rem; }
  .external-arrow { display: none; }
  .journey-stop { padding-top: 6.75rem; }
  h1, .project-title { font-size: 3rem; }
  .project-summary { max-width: 17.5rem; }
  .project-button { font-size: 0.625rem; }
}
@media (max-height: 43.75rem) and (min-width: 47.5625rem) {
  :root { --nav-bottom: 1.125rem; }
  .site-header { padding: 1.125rem 0; }
  .journey-stop { padding-top: 6.875rem; }
  h1, .project-title { font-size: 3.25rem; margin-top: 1rem; }
  .project-summary { font-size: 0.875rem; }
  .project-proof { margin-top: 1.125rem; }
  .project-navigation { bottom: 1.125rem; }
  #about-overlay { margin-top: 6.875rem; }
}
:root[data-reduced-motion="true"] .journey-stop + .journey-stop,
:root.no-world .journey-stop + .journey-stop { margin-top: 2rem; }
:root.no-world .project-opening { min-height: 0; }
:root.no-world .project-notes { margin-top: 1.875rem; }
:root[data-reduced-motion="true"] * { transition: none !important; animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* The story is held in the landscape. Native scroll advances its evidence. */
.journey-stop.has-story {
  min-height: calc(var(--view-height) * (1 + var(--beats) * .85));
  padding: 0; overflow: visible;
}
.journey-stop.has-story.is-brief { min-height: var(--view-height); }
.has-story > .project-overlay {
  position: sticky; top: 0; height: var(--live-height); width: 100%; margin: 0;
}
.has-story > .project-overlay::before { display: none; }
.has-story .project-opening {
  position: absolute; left: 4.2%; top: clamp(7.1875rem, calc(var(--view-height) * .16), 10.3125rem);
  width: min(22.5rem, 33%); min-height: 0;
}
.has-story .project-title { font-size: clamp(2.5rem, 4.2vw, 3.875rem); margin: 1.1875rem 0 0.9375rem; }
.has-story .project-summary { font-size: 1rem; line-height: 1.6; max-width: 20.3125rem; }
.has-story .project-proof { margin-top: 1.1875rem; font-size: 0.6875rem; }
.has-story .project-notes {
  position: absolute; left: 4.2%; top: calc(var(--view-height) * .53);
  width: min(21.5625rem, 30%); margin: 0; padding: 0; border: 0; display: grid;
}
.has-story .project-notes::before {
  content: ''; position: absolute; inset: -2.1875rem -5.625rem -2.5rem -4.375rem; z-index: -1;
  background: radial-gradient(ellipse at 38% 45%, var(--paper) 30%, transparent 72%);
  pointer-events: none;
}
.story-beat { grid-area: 1 / 1; margin: 0 !important; opacity: 0; pointer-events: none; transform: translateY(0.5625rem); transition: opacity .25s, transform .35s; }
.story-beat.is-current { opacity: 1; transform: translateY(0); pointer-events: auto; }
.beat-index { display: flex; gap: 0.4375rem; margin-bottom: 1rem; }
.beat-index span { width: 1.0625rem; height: 0.125rem; background: var(--line); }
.beat-index span.is-current { background: var(--blue); }
.has-story .project-notes h3 { font-size: 0.6875rem; font-weight: 500; color: var(--muted); margin-bottom: 0.75rem; }
.beat-metric { color: var(--ink); font-size: clamp(1.5625rem, 2.6vw, 2.3125rem); font-weight: 650; letter-spacing: -.045em; line-height: 1.12; }
.beat-caption { color: var(--blue); margin: 0.5rem 0 0.9375rem; font-size: 0.6875rem; line-height: 1.5; }
.has-story .project-notes p { font-size: 0.8125rem; line-height: 1.75; max-width: 20.625rem; }
.has-story .evidence-links { grid-area: 2 / 1; }
.project-button.is-selected { color: var(--blue); }
.is-in-transit .world-connection { opacity: 0; }
@media (min-width: 47.5625rem) and (max-height: 45.625rem) {
  .has-story .project-opening { top: 6.5625rem; }
  .has-story .project-title { font-size: 2.375rem; margin: 0.75rem 0; }
  .has-story .project-summary { font-size: 0.875rem; }
  .has-story .project-proof { margin-top: 0.75rem; }
  .has-story .project-notes { top: 51%; }
  .beat-index { margin-bottom: 0.625rem; }
  .beat-metric { font-size: 1.6875rem; }
  .beat-caption { margin: 0.3125rem 0 0.625rem; }
  .has-story .project-notes p { font-size: 0.75rem; }
}
@media (max-width: 47.5rem) {
  /* The two text blocks frame a flexible window onto the world. Only this
     visible panel follows browser chrome; the story's scroll length stays svh. */
  .has-story > .project-overlay {
    display: grid; grid-template-rows: auto minmax(0, 1fr) auto;
    padding: var(--panel-top) var(--page-gutter) var(--panel-bottom);
  }
  .has-story .project-opening { position: relative; grid-row: 1; left: auto; top: auto; width: 100%; }
  .has-story .project-title { font-size: 2.375rem; max-width: 20.625rem; margin: 0.625rem 0; letter-spacing: -.05em; }
  .has-story .project-summary { font-size: 0.8125rem; line-height: 1.55; max-width: 18.75rem; }
  .has-story .project-proof { margin-top: 0.625rem; font-size: 0.625rem; gap: 0.375rem; }
  .has-story .project-meta { font-size: 0.5rem; }
  .mobile-resume { margin-top: 0; }
  .has-story .project-notes { position: relative; grid-row: 3; left: auto; top: auto; bottom: auto; width: 100%; max-width: 28.75rem; }
  .has-story .project-opening::before {
    content: ''; position: absolute; z-index: -1; pointer-events: none;
    inset: -1.25rem calc(-1 * var(--copy-gutter) - 0.125rem) -0.875rem;
    background: linear-gradient(var(--paper) calc(100% - 0.875rem), transparent);
  }
  .has-story .project-notes::before {
    inset: -1.25rem calc(-1 * var(--copy-gutter) - 0.125rem) -1.75rem;
    background: linear-gradient(transparent, var(--paper) 1rem); mask-image: none;
  }
  .beat-index { margin-bottom: 0.625rem; gap: 0.375rem; }
  .beat-index span { width: 0.75rem; }
  .has-story .project-notes h3 { font-size: 0.625rem; margin-bottom: 0.5rem; }
  .beat-metric { font-size: 1.5625rem; }
  .beat-caption { margin: 0.3125rem 0 0.5625rem; font-size: 0.625rem; }
  .has-story .project-notes p { font-size: 0.75rem; line-height: 1.65; max-width: 27.5rem; }
}
@media (max-width: 25rem) {
  .has-story .project-title { font-size: 2.125rem; }
}
/* Reading remains ordinary, complete content without graphics or motion. */
:root.no-world .journey-stop.has-story,
:root[data-reduced-motion="true"] .journey-stop.has-story { --copy-gutter: 4.2vw; min-height: var(--view-height); padding: 8.125rem 4.2% 10rem; }
:root.no-world .has-story > .project-overlay,
:root[data-reduced-motion="true"] .has-story > .project-overlay { position: relative; height: auto; display: block; padding: 0; }
:root.no-world .has-story .project-opening,
:root[data-reduced-motion="true"] .has-story .project-opening { position: relative; left: 0; top: 0; width: min(26.875rem, 100%); }
:root.no-world .has-story .project-notes,
:root[data-reduced-motion="true"] .has-story .project-notes { position: relative; left: 0; top: 0; bottom: auto; width: min(26.875rem, 100%); display: block; margin-top: 2.5rem; }
:root.no-world .story-beat,
:root[data-reduced-motion="true"] .story-beat { opacity: 1; transform: none; pointer-events: auto; margin-bottom: 2.1875rem !important; }
:root.no-world .beat-index,
:root[data-reduced-motion="true"] .beat-index { display: none; }
  :root[data-compact-viewport="true"] .journey-stop.has-story { --copy-gutter: 5vw; min-height: var(--view-height); padding: 6.5625rem 5% 9.375rem; }
  :root[data-compact-viewport="true"] .has-story > .project-overlay { position: relative; height: auto; display: block; padding: 0; }
  :root[data-compact-viewport="true"] .has-story .project-opening { position: relative; left: 0; top: 0; width: min(25rem, 100%); }
  :root[data-compact-viewport="true"] .has-story .project-notes { position: relative; left: 0; top: 0; bottom: auto; width: min(25rem, 100%); margin-top: 2.1875rem; display: block; }
  :root[data-compact-viewport="true"] .story-beat { opacity: 1; transform: none; pointer-events: auto; margin-bottom: 1.875rem !important; }
  :root[data-compact-viewport="true"] .beat-index { display: none; }
@media (min-width: 47.5625rem) {
  .has-story .project-opening::before,
  .has-story .project-notes::before {
    content: ''; position: absolute; inset: -2rem -7.5rem -2.25rem calc(-1 * var(--copy-gutter) - 0.125rem); z-index: -1;
    background: linear-gradient(90deg, var(--paper) calc(100% - 6.25rem), transparent);
    mask-image: linear-gradient(transparent, #000 1.875rem, #000 calc(100% - 2rem), transparent);
    pointer-events: none;
  }
}
@media (min-width: 21.9375rem) and (max-width: 47.5rem) {
  .has-story .project-notes p { font-size: 0.8125rem; line-height: 1.65; }
}
/* The mobile portrait fills the open area above one continuous bottom panel.
   Links share the footer row with the compact project picker. */
.about-portrait { display: none; }
@media (max-width: 47.5rem) {
  .portfolio #about-overlay {
    --about-bottom: max(var(--nav-bottom), env(safe-area-inset-bottom));
    margin-block: 0;
    padding-block: var(--panel-top) var(--about-bottom);
    min-block-size: var(--live-height);
  }
  #about-overlay::before { display: none; }
  .about-content {
    display: grid; grid-template-rows: minmax(clamp(6rem, 16svh, 10rem), 1fr) auto;
    min-block-size: calc(var(--live-height) - var(--panel-top) - var(--about-bottom));
    min-inline-size: 0;
  }
  .about-portrait { display: block; grid-row: 1; min-inline-size: 0; }
  .about-panel { grid-row: 2; position: relative; min-inline-size: 0; }
  .about-panel::before {
    content: ''; position: absolute; z-index: -1; pointer-events: none;
    inset: -1.5rem calc(-1 * var(--page-gutter) - .125rem) calc(-1 * var(--about-bottom) - .125rem);
    background: linear-gradient(transparent, var(--paper) 1.5rem);
  }
  .about-content h1 {
    margin: 0 0 .5rem; max-inline-size: 100%;
    font-size: 1.25rem; line-height: 1.2;
  }
  .about-intro {
    margin: 0 0 .75rem; max-inline-size: 100%;
    font-size: 1rem; line-height: 1.4;
  }
  .about-copy { display: grid; gap: .625rem; min-inline-size: 0; }
  .about-copy p { margin: 0; font-size: clamp(.8125rem, 3.4vw, .875rem); line-height: 1.5; }
  .about-links {
    min-block-size: 2.75rem; margin: .75rem 0 0; padding-inline-start: 6.25rem;
    justify-content: flex-end; align-items: center; gap: .25rem .75rem;
    font-size: .6875rem;
  }
  .about-links a { display: inline-flex; align-items: center; min-block-size: 2.75rem; white-space: nowrap; }
  .portfolio[data-view="about"] .project-navigation { inline-size: 6rem; }
  .portfolio[data-view="about"] #current-project { display: none; }
  .portfolio[data-view="about"] .project-picker { inline-size: 6rem; justify-content: space-between; gap: .5rem; }
  .portfolio[data-view="about"] .project-navigation::before { display: none; }
  .portfolio[data-view="about"] .project-rail { right: auto; inline-size: calc(100vw - 2 * var(--page-gutter)); }
  .portfolio[data-view="about"] .scroll-hint { display: none; }
  :root.no-world .about-content { display: block; min-block-size: 0; }
  :root.no-world .about-portrait { display: none; }
}
