:root {
  --portrait-bg: #0a0907;
  --portrait-bg-soft: #12100d;
  --portrait-paper: #eee9df;
  --portrait-muted: #a49d90;
  --portrait-line: rgba(238, 233, 223, 0.2);
  --portrait-orange: #ff572e;
  --portrait-green: #183e35;
  --portrait-acid: #d7ff43;
  --portrait-display: "Noto Serif SC", "Songti SC", serif;
  --portrait-latin: "Archivo Black", "Noto Sans SC", sans-serif;
  --portrait-mono: "IBM Plex Mono", "JetBrains Mono", monospace;
  --portrait-pad: clamp(1.25rem, 4vw, 4.5rem);
  --portrait-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

[data-experience-root][hidden] { display: none !important; }
html[data-experience="portrait"] [data-experience-root]:not([data-experience-root="portrait"]),
html[data-experience="quantum"] [data-experience-root]:not([data-experience-root="quantum"]),
html[data-experience="terrain"] [data-experience-root]:not([data-experience-root="terrain"]) { display: none; }

.style-switcher {
  position: fixed;
  z-index: 900;
  top: max(0.9rem, env(safe-area-inset-top));
  left: max(0.9rem, env(safe-area-inset-left));
  display: flex;
  align-items: stretch;
  min-height: 46px;
  padding: 3px;
  border: 1px solid rgba(238, 233, 223, 0.25);
  background: rgba(10, 9, 7, 0.9);
  box-shadow: 0 16px 46px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(16px);
}

.style-switcher__signal {
  width: 4px;
  margin: 7px 3px 7px 5px;
  background: var(--portrait-orange);
}

.style-switcher button {
  min-height: 44px;
  padding: 0.55rem 0.8rem;
  border: 0;
  background: transparent;
  color: #928c80;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  font-family: var(--portrait-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  white-space: nowrap;
  transition: color 180ms ease, background-color 180ms ease;
}

.style-switcher button span { margin-right: 0.3rem; font-size: 0.5rem; opacity: 0.7; }
.style-switcher button:hover { color: var(--portrait-paper); }
.style-switcher button[aria-pressed="true"] { background: var(--portrait-paper); color: var(--portrait-bg); }
html[data-experience="quantum"] .style-switcher { border-color: rgba(77, 235, 255, 0.28); background: rgba(3, 8, 15, 0.88); }
html[data-experience="quantum"] .style-switcher__signal { background: #4debff; box-shadow: 0 0 14px rgba(77, 235, 255, 0.72); }
html[data-experience="quantum"] .style-switcher button[aria-pressed="true"] { background: #4debff; color: #03060c; }
html[data-experience="quantum"] .command-bar { padding-left: clamp(18rem, 26vw, 23rem); }

html[data-experience="portrait"] { background: var(--portrait-bg); scroll-behavior: smooth; }
html[data-experience="portrait"] body {
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--portrait-bg);
  color: var(--portrait-paper);
  font-family: "Noto Sans SC", sans-serif;
}
html[data-experience="portrait"] body::before {
  content: "";
  position: fixed;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  border: 1px solid rgba(238, 233, 223, 0.04);
  box-shadow: inset 0 0 150px rgba(0, 0, 0, 0.72);
}
html[data-experience="portrait"] ::selection { background: var(--portrait-orange); color: var(--portrait-paper); }
html[data-experience="portrait"] button:focus-visible,
html[data-experience="portrait"] a:focus-visible { outline-color: var(--portrait-orange); }

.portrait-experience { position: relative; z-index: 1; min-height: 100vh; background: var(--portrait-bg); }
.portrait-grain {
  position: fixed;
  z-index: 80;
  inset: 0;
  pointer-events: none;
  opacity: 0.13;
  background-size: 5px 5px;
  box-shadow: inset 0 0 100px rgba(255, 255, 255, 0.025);
  mix-blend-mode: soft-light;
}
.portrait-grain::before,
.portrait-grain::after {
  content: "";
  position: absolute;
  inset: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.025);
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}
.portrait-grain::after { inset: 50% 0 auto; }
.portrait-cursor-glow {
  position: fixed;
  z-index: 2;
  width: 300px;
  height: 300px;
  left: -400px;
  top: -400px;
  border: 1px solid rgba(255, 87, 46, 0.13);
  border-radius: 50%;
  box-shadow: 0 0 120px rgba(255, 87, 46, 0.08);
  pointer-events: none;
  transform: translate3d(-50%, -50%, 0);
  transition: opacity 300ms ease;
}

.portrait-header {
  position: fixed;
  z-index: 120;
  left: var(--portrait-pad);
  right: var(--portrait-pad);
  top: 5.3rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  pointer-events: none;
  color: rgba(238, 233, 223, 0.72);
  font-family: var(--portrait-mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
}
.portrait-header a { pointer-events: auto; }
.portrait-monogram { display: flex; width: max-content; align-items: center; gap: 0.65rem; color: inherit; text-decoration: none; }
.portrait-monogram span { color: var(--portrait-orange); font-family: var(--portrait-latin); font-size: 0.9rem; }
.portrait-monogram small { font: inherit; }
.portrait-header__status { display: flex; gap: 0.8rem; align-items: center; }
.portrait-header__status span:first-child { color: var(--portrait-orange); }
.portrait-header > p { margin: 0; text-align: right; }

.portrait-main { position: relative; z-index: 5; }
.portrait-chapter {
  position: relative;
  width: 100%;
  min-height: 100svh;
  overflow: clip;
  border-bottom: 1px solid var(--portrait-line);
  isolation: isolate;
}
.portrait-chapter-no,
.portrait-kicker {
  margin: 0;
  color: var(--portrait-orange);
  font-family: var(--portrait-mono);
  font-size: clamp(0.58rem, 0.75vw, 0.72rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.portrait-section-heading h2,
.portrait-profile__content h2,
.portrait-finale__copy h2 {
  margin: 0;
  font-family: var(--portrait-display);
  font-size: clamp(3.8rem, 8.2vw, 9rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.075em;
}
.portrait-section-heading h2 em,
.portrait-profile__content h2 em,
.portrait-finale__copy h2 em { color: var(--portrait-orange); font-style: italic; font-weight: 400; }

.portrait-hero { min-height: 100svh; background: #090806; }
.portrait-hero__media { position: absolute; z-index: -2; inset: 0 0 0 37%; overflow: hidden; }
.portrait-hero__media img { width: 100%; height: 116%; object-fit: cover; object-position: 54% 34%; filter: saturate(0.72) contrast(1.08) brightness(0.84); transform: translate3d(0, var(--portrait-parallax-y, 0), 0) scale(1.015); }
.portrait-hero__wash { position: absolute; z-index: -1; inset: 0; background: rgba(10, 9, 7, 0.3); pointer-events: none; }
.portrait-hero__wash::before { content: ""; position: absolute; inset: 0 56% 0 0; background: rgba(10, 9, 7, 0.94); }
.portrait-hero__wash::after { content: ""; position: absolute; inset: 0 0 0 72%; background: rgba(10, 9, 7, 0.22); }
.portrait-hero__frame { position: absolute; inset: 6.6rem var(--portrait-pad) 2.2rem 14%; border: 1px solid rgba(238, 233, 223, 0.18); pointer-events: none; }
.portrait-hero__copy { position: absolute; z-index: 3; left: var(--portrait-pad); top: 19vh; width: min(72vw, 1100px); transform: translate3d(0, var(--portrait-copy-y, 0), 0); }
.portrait-kicker { display: flex; gap: clamp(1.5rem, 6vw, 6rem); margin-bottom: clamp(1.6rem, 4vh, 3rem); }
.portrait-hero h1 { display: grid; margin: 0; width: max-content; color: var(--portrait-paper); font-family: var(--portrait-latin); font-size: clamp(7rem, 19vw, 20rem); line-height: 0.68; letter-spacing: -0.095em; text-transform: uppercase; }
.portrait-hero h1 span:last-child { margin-left: clamp(4rem, 13vw, 15rem); color: transparent; -webkit-text-stroke: 1.5px var(--portrait-paper); }
.portrait-alias { margin: clamp(1.2rem, 3vh, 2rem) 0 0 45%; color: var(--portrait-orange); font-family: var(--portrait-mono); font-size: clamp(0.8rem, 1.5vw, 1.2rem); letter-spacing: 0.2em; }
.portrait-hero__statement { position: absolute; left: 0; top: calc(100% + 2.4rem); margin: 0; font-family: var(--portrait-display); font-size: clamp(1.35rem, 2.5vw, 2.7rem); font-weight: 400; line-height: 1.3; }
.portrait-hero__facts { position: absolute; z-index: 4; right: var(--portrait-pad); bottom: 2.2rem; display: flex; margin: 0; border-top: 1px solid rgba(238, 233, 223, 0.35); }
.portrait-hero__facts div { min-width: 12rem; padding: 0.8rem 1rem 0 0; }
.portrait-hero__facts dt { color: var(--portrait-orange); font-family: var(--portrait-mono); font-size: 0.52rem; letter-spacing: 0.12em; }
.portrait-hero__facts dd { margin: 0.25rem 0 0; font-size: 0.78rem; }
.portrait-scroll-cue { position: absolute; z-index: 5; left: var(--portrait-pad); bottom: 2.2rem; display: flex; align-items: center; gap: 0.8rem; color: var(--portrait-paper); font-family: var(--portrait-mono); font-size: 0.55rem; letter-spacing: 0.12em; text-decoration: none; }
.portrait-scroll-cue i { display: block; width: 72px; height: 1px; background: var(--portrait-orange); transform-origin: left; animation: portrait-line 1.8s ease-in-out infinite; }

.portrait-profile { display: grid; grid-template-columns: minmax(320px, 42vw) 1fr; min-height: 180svh; padding: 0 var(--portrait-pad); background: var(--portrait-paper); color: var(--portrait-bg); }
.portrait-sticky-media { position: sticky; top: 0; align-self: start; height: 100svh; margin-left: calc(var(--portrait-pad) * -1); padding: 7.8rem clamp(1.5rem, 3vw, 3rem) 2rem var(--portrait-pad); background: var(--portrait-green); color: var(--portrait-paper); }
.portrait-sticky-media__crop { height: calc(100% - 3rem); overflow: hidden; border: 1px solid rgba(238, 233, 223, 0.25); }
.portrait-sticky-media img { width: 100%; height: 120%; object-fit: cover; object-position: center 28%; filter: saturate(0.66) contrast(1.1); transform: translateY(-3%); }
.portrait-sticky-media > p { display: flex; justify-content: space-between; margin: 0.85rem 0 0; font-family: var(--portrait-mono); font-size: 0.55rem; letter-spacing: 0.12em; }
.portrait-profile__content { align-self: center; max-width: 850px; padding: 18vh clamp(1.5rem, 6vw, 8rem) 18vh; }
.portrait-profile__content .portrait-chapter-no { margin-bottom: 2.4rem; color: #a12d14; }
.portrait-profile__content h2 { font-size: clamp(4.2rem, 8vw, 9rem); }
.portrait-lead { margin: clamp(3rem, 7vh, 6rem) 0 0 auto; max-width: 610px; font-family: var(--portrait-display); font-size: clamp(1.45rem, 2.2vw, 2.35rem); line-height: 1.55; }
.portrait-manifesto { margin: 22vh 0 18vh 14%; padding: 0 0 0 2rem; border-left: 7px solid var(--portrait-orange); }
.portrait-manifesto p { margin: 0; font-size: clamp(1.8rem, 3.7vw, 4.3rem); font-weight: 700; line-height: 1.22; letter-spacing: -0.045em; }
.portrait-ledger { margin: 0; border-top: 1px solid rgba(10, 9, 7, 0.25); }
.portrait-ledger div { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid rgba(10, 9, 7, 0.18); }
.portrait-ledger dt { font-family: var(--portrait-mono); font-size: 0.6rem; letter-spacing: 0.12em; }
.portrait-ledger dd { margin: 0; font-weight: 600; }

.portrait-career { padding: clamp(9rem, 16vh, 14rem) var(--portrait-pad); background: #11100d; }
.portrait-section-heading { max-width: 1120px; }
.portrait-section-heading .portrait-chapter-no { margin-bottom: 2rem; }
.portrait-timeline { max-width: 1420px; margin: clamp(5rem, 11vh, 9rem) 0 0 auto; padding: 0; list-style: none; border-top: 1px solid var(--portrait-line); }
.portrait-timeline li { display: grid; grid-template-columns: minmax(10rem, 0.65fr) 2fr; min-height: 190px; border-bottom: 1px solid var(--portrait-line); transition: background-color 260ms ease, color 260ms ease; }
.portrait-timeline li:hover { background: var(--portrait-orange); color: #100b08; }
.portrait-timeline time { align-self: start; padding: 1.7rem 1rem 1.7rem 0; font-family: var(--portrait-mono); font-size: 0.75rem; }
.portrait-timeline div { position: relative; padding: 1.5rem 4rem 1.7rem; border-left: 1px solid var(--portrait-line); }
.portrait-timeline div > span { position: absolute; top: 1.7rem; right: 0; color: var(--portrait-orange); font-family: var(--portrait-mono); font-size: 0.68rem; }
.portrait-timeline li:hover div > span { color: #100b08; }
.portrait-timeline h3 { margin: 0; font-family: var(--portrait-display); font-size: clamp(2rem, 3.4vw, 4rem); line-height: 1; }
.portrait-timeline p { margin: 0.7rem 0 0; font-weight: 700; }
.portrait-timeline small { color: var(--portrait-muted); }
.portrait-timeline li:hover small { color: rgba(16, 11, 8, 0.68); }
.portrait-timeline .is-current h3::after { content: "NOW"; display: inline-block; margin-left: 0.8rem; padding: 0.25rem 0.42rem; background: var(--portrait-acid); color: #0a0907; font-family: var(--portrait-mono); font-size: 0.5rem; vertical-align: top; }
.portrait-career__summary { margin: 7rem 0 0; font-family: var(--portrait-latin); font-size: clamp(1.3rem, 3vw, 3.2rem); letter-spacing: -0.03em; }
.portrait-career__summary i { margin: 0 0.7rem; color: var(--portrait-orange); font-style: normal; }

.portrait-methods { padding: clamp(9rem, 15vh, 13rem) var(--portrait-pad); background: var(--portrait-orange); color: #100b08; }
.portrait-methods .portrait-chapter-no { color: #100b08; }
.portrait-section-heading--split { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(250px, 0.6fr); gap: 2rem 6rem; max-width: none; }
.portrait-section-heading--split .portrait-chapter-no { grid-column: 1 / -1; }
.portrait-section-heading--split > p:last-child { align-self: end; margin: 0; max-width: 380px; font-size: 1rem; line-height: 1.7; }
.portrait-method-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(5rem, 10vh, 8rem); border-top: 1px solid rgba(16, 11, 8, 0.4); border-left: 1px solid rgba(16, 11, 8, 0.4); }
.portrait-method-grid article { min-height: 430px; padding: 1.6rem; border-right: 1px solid rgba(16, 11, 8, 0.4); border-bottom: 1px solid rgba(16, 11, 8, 0.4); transition: background-color 260ms ease, color 260ms ease, transform 260ms var(--portrait-ease); }
.portrait-method-grid article:hover { z-index: 2; background: var(--portrait-bg); color: var(--portrait-paper); transform: translateY(-10px); }
.portrait-method-grid article > span { font-family: var(--portrait-mono); font-size: 0.62rem; }
.portrait-method-grid h3 { margin: 10rem 0 1rem; font-family: var(--portrait-display); font-size: clamp(2rem, 3vw, 3.5rem); line-height: 1; }
.portrait-method-grid p { min-height: 6em; line-height: 1.7; }
.portrait-method-grid code { display: block; margin-top: 2rem; padding-top: 1rem; border-top: 1px solid currentColor; font-family: var(--portrait-mono); font-size: 0.62rem; }

.portrait-projects { min-height: auto; padding: clamp(9rem, 15vh, 13rem) 0 clamp(5rem, 9vh, 8rem); background: #0a0907; }
.portrait-projects__heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 1.5rem; margin: 0 var(--portrait-pad) 4rem; max-width: none; }
.portrait-projects__heading .portrait-chapter-no,
.portrait-projects__heading h2 { grid-column: 1; }
.portrait-projects__heading > p:last-of-type { grid-column: 2; grid-row: 2; margin: 0; color: var(--portrait-muted); font-family: var(--portrait-mono); font-size: 0.6rem; letter-spacing: 0.08em; }
.portrait-film-controls { grid-column: 2; grid-row: 1; display: flex; gap: 0.5rem; justify-content: flex-end; }
.portrait-film-controls button { min-width: 76px; min-height: 44px; border: 1px solid var(--portrait-line); background: transparent; color: var(--portrait-paper); cursor: pointer; font-family: var(--portrait-mono); font-size: 0.58rem; letter-spacing: 0.1em; }
.portrait-film-controls button:hover { border-color: var(--portrait-orange); color: var(--portrait-orange); }
.portrait-film { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(360px, 38vw); gap: 1px; overflow-x: auto; padding: 0 var(--portrait-pad) 2rem; scroll-padding-inline: var(--portrait-pad); scroll-snap-type: x mandatory; scrollbar-color: var(--portrait-orange) rgba(238, 233, 223, 0.12); cursor: grab; }
.portrait-film.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.portrait-file { position: relative; display: flex; flex-direction: column; min-height: min(72vh, 760px); padding: clamp(1.5rem, 3vw, 3rem); overflow: hidden; border: 1px solid var(--portrait-line); background: #12100d; scroll-snap-align: start; }
.portrait-file::before { content: attr(data-file-watermark); position: absolute; right: -0.04em; bottom: -0.18em; color: rgba(238, 233, 223, 0.035); font-family: var(--portrait-latin); font-size: 16rem; line-height: 1; pointer-events: none; }
.portrait-file header { display: flex; justify-content: space-between; padding-bottom: 1rem; border-bottom: 1px solid var(--portrait-line); font-family: var(--portrait-mono); font-size: 0.58rem; letter-spacing: 0.08em; }
.portrait-file header span { color: var(--portrait-orange); }
.portrait-file h3 { margin: clamp(4rem, 9vh, 8rem) 0 0; font-family: var(--portrait-display); font-size: clamp(3rem, 5vw, 5.8rem); line-height: 0.98; letter-spacing: -0.06em; }
.portrait-file__type { margin: 0.7rem 0 2.6rem; color: var(--portrait-orange); font-family: var(--portrait-mono); font-size: 0.66rem; letter-spacing: 0.09em; }
.portrait-file > p:not(.portrait-file__type) { max-width: 500px; color: #c5beb1; font-size: 1.05rem; line-height: 1.75; }
.portrait-file ul { margin: auto 0 0; padding: 0; list-style: none; border-top: 1px solid var(--portrait-line); }
.portrait-file li { padding: 0.8rem 0; border-bottom: 1px solid var(--portrait-line); color: #c5beb1; font-size: 0.82rem; }
.portrait-file footer { margin-top: auto; padding-top: 1.2rem; color: var(--portrait-muted); font-family: var(--portrait-mono); font-size: 0.58rem; letter-spacing: 0.08em; }
.portrait-file--intro { background: var(--portrait-paper); color: var(--portrait-bg); }
.portrait-file--intro .portrait-file__index { color: #8a3520; font-family: var(--portrait-mono); font-size: 0.65rem; }
.portrait-file--intro p { margin: 5rem 0 0; max-width: 440px; font-family: var(--portrait-display); font-size: clamp(1.7rem, 2.5vw, 3rem); line-height: 1.3; }
.portrait-file--intro strong { margin-top: auto; font-family: var(--portrait-latin); font-size: clamp(9rem, 18vw, 18rem); line-height: 0.7; letter-spacing: -0.08em; }
.portrait-file--intro small { margin-top: 2rem; font-family: var(--portrait-mono); }
.portrait-file--metric { background: var(--portrait-green); }
.portrait-file--acid { background: #2d3518; }
.portrait-file--warm { background: #5d291c; }
.portrait-metric { display: block; margin-top: auto; font-family: var(--portrait-latin); font-size: clamp(6rem, 11vw, 12rem); line-height: 0.74; letter-spacing: -0.09em; transform-origin: left bottom; transition: transform 900ms var(--portrait-ease); }
.portrait-file:not(.is-metric-visible) .portrait-metric { transform: scale(0.78); }
.portrait-file--metric > small { margin: 1.2rem 0 2.5rem; color: var(--portrait-acid); font-family: var(--portrait-mono); }

.portrait-value { padding: clamp(9rem, 16vh, 14rem) var(--portrait-pad); background: var(--portrait-paper); color: var(--portrait-bg); }
.portrait-value .portrait-chapter-no { color: #a12d14; }
.portrait-statements { margin-top: clamp(6rem, 12vh, 10rem); border-top: 1px solid rgba(10, 9, 7, 0.25); }
.portrait-statements article { display: grid; grid-template-columns: 5rem minmax(280px, 1fr) minmax(280px, 0.65fr); gap: 2rem; align-items: center; min-height: 210px; border-bottom: 1px solid rgba(10, 9, 7, 0.25); }
.portrait-statements span { font-family: var(--portrait-mono); font-size: 0.65rem; }
.portrait-statements h3 { margin: 0; font-family: var(--portrait-display); font-size: clamp(2.5rem, 4.5vw, 5.2rem); line-height: 1; letter-spacing: -0.05em; }
.portrait-statements p { margin: 0; line-height: 1.8; }

.portrait-finale { min-height: 100svh; background: #090806; }
.portrait-finale__media { position: absolute; z-index: -2; inset: 0; }
.portrait-finale__media img { width: 100%; height: 115%; object-fit: cover; object-position: center 28%; filter: saturate(0.55) contrast(1.08) brightness(0.62); }
.portrait-finale__shade { position: absolute; z-index: -1; inset: 0; background: rgba(8, 7, 5, 0.42); }
.portrait-finale__shade::after { content: ""; position: absolute; inset: 0 42% 0 0; background: rgba(8, 7, 5, 0.74); }
.portrait-finale__copy { position: absolute; left: var(--portrait-pad); top: 24vh; max-width: 1100px; }
.portrait-finale__copy .portrait-chapter-no { margin-bottom: 2rem; }
.portrait-finale__copy h2 { font-size: clamp(4rem, 9vw, 10rem); }
.portrait-finale__copy > p:not(.portrait-chapter-no) { margin: 2rem 0 0; font-size: 1rem; letter-spacing: 0.08em; }
.portrait-finale__actions { display: flex; gap: 0.8rem; margin-top: 3rem; }
.portrait-finale__actions button { min-height: 48px; padding: 0.75rem 1.2rem; border: 1px solid rgba(238, 233, 223, 0.55); background: rgba(10, 9, 7, 0.5); color: var(--portrait-paper); cursor: pointer; font-family: var(--portrait-mono); font-size: 0.64rem; letter-spacing: 0.08em; }
.portrait-finale__actions button:first-child { border-color: var(--portrait-orange); background: var(--portrait-orange); }
.portrait-finale__actions button:hover { color: var(--portrait-bg); background: var(--portrait-paper); }
.portrait-finale__signature { position: absolute; right: var(--portrait-pad); bottom: 2rem; margin: 0; font-family: var(--portrait-latin); font-size: clamp(1.5rem, 3vw, 3.5rem); letter-spacing: -0.04em; }
.portrait-finale__signature span { color: var(--portrait-orange); font-family: var(--portrait-display); font-weight: 600; }

.portrait-rail { position: fixed; z-index: 110; right: max(1rem, env(safe-area-inset-right)); top: 50%; display: grid; gap: 0.25rem; width: 38px; padding: 0.4rem; transform: translateY(-50%); border: 1px solid rgba(238, 233, 223, 0.2); background: rgba(10, 9, 7, 0.72); backdrop-filter: blur(12px); }
.portrait-rail a { display: grid; min-height: 30px; place-items: center; color: #736d63; font-family: var(--portrait-mono); font-size: 0.52rem; text-decoration: none; }
.portrait-rail a:hover,
.portrait-rail a[aria-current="page"] { color: var(--portrait-paper); background: var(--portrait-orange); }
.portrait-rail > i { position: absolute; top: 0; right: -4px; width: 1px; height: 100%; background: rgba(238, 233, 223, 0.18); }
.portrait-rail > i b { display: block; width: 100%; height: 0; background: var(--portrait-orange); transition: height 200ms ease; }

.portrait-ready .portrait-chapter > * { transition: opacity 900ms var(--portrait-ease), transform 1000ms var(--portrait-ease); }
.portrait-ready .portrait-chapter:not(.is-visible) > *:not(.portrait-hero__media):not(.portrait-hero__wash):not(.portrait-finale__media):not(.portrait-finale__shade) { opacity: 0; transform: translateY(45px); }

@keyframes portrait-line { 0%, 100% { transform: scaleX(0.25); opacity: 0.35; } 50% { transform: scaleX(1); opacity: 1; } }

@media (max-width: 1100px) {
  html[data-experience="quantum"] .command-bar { padding-left: var(--scene-pad-x); padding-top: 4rem; min-height: 112px; }
  .portrait-header { grid-template-columns: 1fr auto; }
  .portrait-header__status { display: none; }
  .portrait-hero__media { left: 29%; }
  .portrait-hero h1 { font-size: clamp(6.3rem, 20vw, 13rem); }
  .portrait-profile { grid-template-columns: 45% 55%; }
  .portrait-profile__content { padding-inline: clamp(1.5rem, 4vw, 4rem); }
  .portrait-method-grid { grid-template-columns: repeat(2, 1fr); }
  .portrait-method-grid article { min-height: 360px; }
  .portrait-method-grid h3 { margin-top: 7rem; }
  .portrait-film { grid-auto-columns: minmax(390px, 62vw); }
  .portrait-statements article { grid-template-columns: 4rem 1fr; padding: 2rem 0; }
  .portrait-statements p { grid-column: 2; max-width: 620px; }
}

@media (max-width: 767px) {
  :root { --portrait-pad: 1.15rem; }
  .style-switcher { top: max(0.6rem, env(safe-area-inset-top)); left: max(0.6rem, env(safe-area-inset-left)); min-height: 44px; }
  .style-switcher button { min-height: 44px; padding-inline: 0.58rem; font-size: 0.56rem; }
  .style-switcher button span { display: none; }
  html[data-experience="quantum"] .command-bar { min-height: 120px; padding-top: 3.8rem; }
  .portrait-header { top: 4.8rem; left: var(--portrait-pad); right: var(--portrait-pad); }
  .portrait-header > p { font-size: 0.5rem; }
  .portrait-monogram small { display: none; }
  .portrait-rail { top: auto; left: 50%; right: auto; bottom: max(0.6rem, env(safe-area-inset-bottom)); grid-template-columns: repeat(7, 1fr); width: min(calc(100vw - 1.2rem), 360px); transform: translateX(-50%); }
  .portrait-rail a { min-height: 44px; }
  .portrait-rail > i { top: auto; right: 0; bottom: -4px; width: 100%; height: 1px; }
  .portrait-rail > i b { width: 0; height: 100%; transition: width 200ms ease; }
  .portrait-hero { min-height: 110svh; }
  .portrait-hero__media { inset: 0; height: 58svh; }
  .portrait-hero__media img { width: 100%; height: 110%; object-position: center 20%; }
  .portrait-hero__wash { inset: 0; background: rgba(10, 9, 7, 0.12); }
  .portrait-hero__wash::before { inset: 48svh 0 0; background: rgba(10, 9, 7, 0.96); }
  .portrait-hero__wash::after { display: none; }
  .portrait-hero__frame { inset: 6.8rem 1.15rem auto; height: 46svh; }
  .portrait-hero__copy { top: 61svh; width: calc(100% - 2.3rem); }
  .portrait-kicker { margin-bottom: 1rem; justify-content: space-between; gap: 0.5rem; font-size: 0.5rem; }
  .portrait-hero h1 { font-size: clamp(5.4rem, 30vw, 8rem); line-height: 0.78; }
  .portrait-hero h1 span:last-child { margin-left: 1.7rem; -webkit-text-stroke-width: 1px; }
  .portrait-alias { margin: 0.9rem 0 0 0; font-size: 0.68rem; }
  .portrait-hero__statement { top: calc(100% + 1.1rem); font-size: 1.2rem; }
  .portrait-hero__facts { left: var(--portrait-pad); right: var(--portrait-pad); bottom: 4.8rem; display: grid; grid-template-columns: repeat(3, 1fr); }
  .portrait-hero__facts div { min-width: 0; padding-right: 0.45rem; }
  .portrait-hero__facts dt { font-size: 0.42rem; }
  .portrait-hero__facts dd { font-size: 0.58rem; }
  .portrait-scroll-cue { display: none; }
  .portrait-profile { display: block; min-height: auto; padding: 0; }
  .portrait-sticky-media { position: relative; height: 72svh; margin: 0; padding: 7rem var(--portrait-pad) 1.4rem; }
  .portrait-profile__content { padding: 6rem var(--portrait-pad) 8rem; }
  .portrait-profile__content h2,
  .portrait-section-heading h2,
  .portrait-finale__copy h2 { font-size: clamp(3.2rem, 15vw, 5.6rem); }
  .portrait-lead { margin-top: 2.5rem; font-size: 1.25rem; }
  .portrait-manifesto { margin: 7rem 0; padding-left: 1rem; border-left-width: 4px; }
  .portrait-manifesto p { font-size: 1.75rem; }
  .portrait-ledger div { grid-template-columns: 6.5rem 1fr; }
  .portrait-career,
  .portrait-methods,
  .portrait-value { padding-block: 7rem 8rem; }
  .portrait-timeline { margin-top: 4rem; }
  .portrait-timeline li { grid-template-columns: 1fr; padding: 1.4rem 0; }
  .portrait-timeline time { padding: 0 0 0.6rem; }
  .portrait-timeline div { padding: 0; border-left: 0; }
  .portrait-timeline div > span { top: 0.25rem; }
  .portrait-career__summary { margin-top: 4rem; line-height: 1.6; }
  .portrait-section-heading--split { display: block; }
  .portrait-section-heading--split > p:last-child { margin-top: 2rem; }
  .portrait-method-grid { grid-template-columns: 1fr; margin-top: 4rem; }
  .portrait-method-grid article { min-height: 310px; }
  .portrait-method-grid h3 { margin-top: 4.5rem; }
  .portrait-projects { padding-block: 7rem 5.5rem; }
  .portrait-projects__heading { display: block; margin-bottom: 2.5rem; }
  .portrait-projects__heading > p:last-of-type { margin-top: 1.3rem; }
  .portrait-film-controls { display: flex; margin-top: 1.5rem; justify-content: flex-start; }
  .portrait-film { grid-auto-columns: calc(100vw - 2.3rem); }
  .portrait-file { min-height: 74svh; }
  .portrait-file h3 { margin-top: 3.5rem; }
  .portrait-metric { font-size: clamp(5.3rem, 24vw, 8rem); }
  .portrait-statements { margin-top: 4rem; }
  .portrait-statements article { grid-template-columns: 2.5rem 1fr; gap: 1rem; }
  .portrait-statements h3 { font-size: 2.45rem; }
  .portrait-finale { min-height: 105svh; }
  .portrait-finale__media img { object-position: 54% 20%; }
  .portrait-finale__shade { background: rgba(8, 7, 5, 0.46); }
  .portrait-finale__shade::after { inset: 45% 0 0; background: rgba(8, 7, 5, 0.76); }
  .portrait-finale__copy { top: auto; bottom: 9rem; right: var(--portrait-pad); }
  .portrait-finale__copy > p:not(.portrait-chapter-no) { font-size: 0.75rem; }
  .portrait-finale__actions { flex-wrap: wrap; }
  .portrait-finale__actions button { flex: 1 1 140px; }
  .portrait-finale__signature { bottom: 5rem; left: var(--portrait-pad); right: auto; font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .portrait-cursor-glow { display: none; }
  .portrait-scroll-cue i { animation: none; }
  .portrait-ready .portrait-chapter > *,
  .portrait-metric { opacity: 1 !important; transform: none !important; transition: none !important; }
}

body[data-motion="reduced"] .portrait-cursor-glow { display: none; }
body[data-motion="reduced"] .portrait-scroll-cue i { animation: none; }
body[data-motion="reduced"] .portrait-ready .portrait-chapter > *,
body[data-motion="reduced"] .portrait-metric { opacity: 1 !important; transform: none !important; transition: none !important; }

@media (max-height: 780px) and (min-width: 768px) {
  .portrait-scroll-cue { display: none; }
}
