/* ==========================================================================
   Dr. Stefan Penthin — profile
   BearingPoint colourway: signal red, warm ink, warm paper, taupe.
   One type family (Albert Sans, a close free match for BearingPoint's FS Albert).
   ========================================================================== */

:root {
  --bp-red: #ff3d47;
  --bp-red-deep: #d52b1e;
  --bp-oxblood: #330000;
  --ink: #140a0a;
  --paper: #faf8f7;
  --sand: #e6deda;
  --stone: #ccc1bc;
  --taupe: #806659;

  --f: "Albert Sans", "FS Albert", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
  --gutter: clamp(20px, 3.6vw, 64px);
  --hud-h: 84px;

  /* theme: red (hero, contact) */
  --bg: var(--bp-red);
  --fg: var(--ink);
  --muted: rgba(20, 10, 10, .76);
  --faint: rgba(20, 10, 10, .28);
  --line: rgba(20, 10, 10, .22);
  --accent: var(--ink);
}
body[data-theme="ink"] {
  --bg: var(--ink);
  --fg: var(--paper);
  --muted: rgba(250, 248, 247, .7);
  --faint: rgba(250, 248, 247, .2);
  --line: rgba(250, 248, 247, .14);
  --accent: var(--bp-red);
}
body[data-theme="paper"] {
  --bg: var(--paper);
  --fg: var(--ink);
  --muted: var(--taupe);
  --faint: var(--stone);
  --line: var(--sand);
  --accent: var(--bp-red-deep);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 clamp(17px, 1.15vw, 20px)/1.55 var(--f);
  -webkit-font-smoothing: antialiased;
  transition: background-color 1s var(--ease), color 1s var(--ease);
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }

img, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
::selection { background: var(--bp-red); color: var(--ink); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
[tabindex="-1"]:focus { outline: none; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; top: 12px; left: 12px; z-index: 400; padding: 12px 18px; background: var(--ink); color: var(--paper); transform: translateY(-180%); transition: transform .3s var(--ease); }
.skip:focus { transform: none; }
.wrap { width: 100%; max-width: 1680px; margin: 0 auto; padding: 0 var(--gutter); }

.kicker { font-size: 15px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.sec-label { display: flex; gap: 14px; align-items: center; font-size: 16px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; margin-bottom: clamp(24px, 4vh, 44px); }
.sec-label span:first-child { color: var(--accent); display: inline-flex; align-items: center; gap: 14px; }
.sec-label span:first-child::after { content: ""; width: 40px; height: 1.5px; background: currentColor; }
.sec-head { margin-bottom: clamp(36px, 6vh, 72px); }
.h2 { font-size: clamp(46px, 6.6vw, 124px); font-weight: 600; line-height: .96; letter-spacing: -.045em; max-width: 14ch; }

.split-line { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }

/* roll hover: text slides up to reveal a copy */
[data-roll] > span { position: relative; display: inline-block; overflow: hidden; vertical-align: top; }
[data-roll] > span > b { display: inline-block; font-weight: inherit; transition: transform .6s var(--ease); }
[data-roll] > span > b::after { content: attr(data-text); position: absolute; left: 0; top: 100%; }
@media (hover: hover) { [data-roll]:hover > span > b { transform: translateY(-100%); } }

/* ---------------------------------------------------------------- Loader */
.loader { position: fixed; inset: 0; z-index: 300; background: var(--ink); color: var(--paper); display: grid; place-items: center; align-content: center; gap: 18px; }
html:not(.js) .loader { display: none; }
.loader-name { font-size: clamp(40px, 7vw, 120px); font-weight: 600; letter-spacing: -.045em; line-height: 1; overflow: hidden; padding-bottom: .08em; }
.loader-name span { display: inline-block; }
.loader-pct { font-size: 16px; font-weight: 500; font-variant-numeric: tabular-nums; color: rgba(250, 248, 247, .7); }
.loader-line { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 48px; height: 1.5px; background: rgba(250, 248, 247, .15); }
.loader-line i { display: block; height: 100%; background: var(--bp-red); transform: scaleX(0); transform-origin: left; }

/* ---------------------------------------------------------------- Curtain */
.curtain { position: fixed; inset: 0; z-index: 250; pointer-events: none; visibility: hidden; }
.curtain i { position: absolute; inset: 0; }
.curtain i:first-child { background: var(--bp-red); }
.curtain i:last-of-type { background: var(--ink); }
.curtain span { position: absolute; inset: 0; display: grid; place-items: center; color: var(--paper); font-size: clamp(44px, 7vw, 128px); font-weight: 600; letter-spacing: -.05em; opacity: 0; }

/* ---------------------------------------------------------------- Cursor */
.cursor { position: fixed; top: 0; left: 0; z-index: 260; pointer-events: none; display: none; mix-blend-mode: difference; }
@media (hover: hover) and (pointer: fine) { html.js .cursor { display: block; } }
.cursor-ring { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: #fff; display: grid; place-items: center; transition: width .5s var(--ease), height .5s var(--ease); }
.cursor-ring em { font-style: normal; font-size: 15px; font-weight: 600; color: #000; opacity: 0; transition: opacity .25s; white-space: nowrap; }
.cursor.is-hover .cursor-ring { width: 44px; height: 44px; }
.cursor.is-label .cursor-ring { width: 108px; height: 108px; }
.cursor.is-label .cursor-ring em { opacity: 1; }

/* ---------------------------------------------------------------- Follower */
.follower { position: fixed; top: 0; left: 0; z-index: 40; width: clamp(260px, 22vw, 380px); aspect-ratio: 4 / 5; pointer-events: none; opacity: 0; visibility: hidden; }
.follower canvas { width: 100%; height: 100%; }

/* ---------------------------------------------------------------- HUD */
.hud {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--hud-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--gutter); color: var(--fg);
  transition: color 1s var(--ease), transform .7s var(--ease);
}
.hud.is-hidden { transform: translateY(-110%); }
.hud-mark { font-size: 19px; font-weight: 700; letter-spacing: -.02em; }
.hud-nav { display: flex; gap: clamp(20px, 2.4vw, 44px); font-size: 17px; font-weight: 500; }
.hud-nav a { position: relative; padding: 10px 0; }
.hud-nav a::before { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease); }
.hud-nav a.is-active::before { transform: scaleX(1); transform-origin: left; }
.hud-right { display: flex; align-items: center; gap: 24px; }
.hud-clock { font-size: 16px; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--muted); }
.hud-clock span { color: var(--fg); }

.btn {
  position: relative; display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px;
  border: 1.5px solid currentColor; border-radius: 99px; overflow: hidden; background: none; cursor: pointer;
  font-size: 16px; font-weight: 600; transition: color .5s var(--ease);
}
.btn::before { content: ""; position: absolute; inset: -1px; background: var(--fg); transform: translateY(102%); border-radius: inherit; transition: transform .55s var(--ease); }
.btn span { position: relative; }
.btn:hover { color: var(--bg); }
.btn:hover::before { transform: none; }

.hud-menu { display: none; width: 48px; height: 48px; border: 1.5px solid currentColor; border-radius: 50%; background: none; position: relative; padding: 0; }
.hud-menu i { position: absolute; left: 14px; right: 14px; height: 1.5px; background: currentColor; transition: transform .5s var(--ease); }
.hud-menu i:first-of-type { top: 19px; } .hud-menu i:last-of-type { top: 26px; }
.hud-menu[aria-expanded="true"] i:first-of-type { transform: translateY(3.5px) rotate(45deg); }
.hud-menu[aria-expanded="true"] i:last-of-type { transform: translateY(-3.5px) rotate(-45deg); }

.menu { position: fixed; inset: 0; z-index: 95; background: var(--ink); color: var(--paper); padding: calc(var(--hud-h) + 24px) var(--gutter) 88px; display: flex; flex-direction: column; justify-content: space-between; }
.menu[hidden] { display: none; }
.menu nav a { display: flex; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(250, 248, 247, .14); font-size: clamp(36px, 10vw, 60px); font-weight: 600; letter-spacing: -.04em; line-height: 1.05; }
.menu nav small { font-size: 15px; font-weight: 600; color: var(--bp-red); letter-spacing: 0; }
.menu > p { font-size: 17px; color: rgba(250, 248, 247, .7); }
body.menu-open .hud { color: var(--paper); }

.foot-hud {
  position: fixed; inset: auto 0 0; z-index: 100; height: 60px;
  display: grid; grid-template-columns: 1fr minmax(120px, 320px) 1fr; align-items: center; gap: 24px;
  padding: 0 var(--gutter); font-size: 15px; font-weight: 600; color: var(--fg);
  pointer-events: none; font-variant-numeric: tabular-nums; transition: color 1s var(--ease);
}
.foot-hud > span:last-child { text-align: right; }
.foot-bar { height: 1.5px; background: var(--line); }
.foot-bar i { display: block; height: 100%; background: currentColor; transform: scaleX(0); transform-origin: left; }

/* ---------------------------------------------------------------- Hero */
.hero { position: relative; height: 100svh; min-height: 560px; overflow: hidden; }
.hero-name { position: absolute; left: 0; right: 0; padding: 0 var(--gutter); font-size: 20vw; line-height: .8; font-weight: 700; letter-spacing: -.055em; text-transform: uppercase; white-space: nowrap; pointer-events: none; }
.hero-row { display: block; overflow: hidden; padding: .05em 0 .03em; }
.hero-row > span { display: inline-block; }
.hero-back { top: calc(var(--hud-h) - 1vh); z-index: 1; color: var(--ink); }
.hero-front { bottom: 1.5vh; z-index: 3; color: var(--paper); text-align: right; }
.hero-portrait { position: absolute; z-index: 2; left: 50%; bottom: 0; height: 93svh; aspect-ratio: 1089 / 892; transform: translateX(-50%); }
.hero-portrait img, .hero-portrait canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: bottom; }
.hero-portrait.gl-on img { opacity: 0; }
.hero-meta { position: absolute; z-index: 4; top: 50%; max-width: 20ch; font-size: 18px; line-height: 1.4; font-weight: 500; }
.hero-meta .kicker { margin-bottom: 10px; opacity: .8; }
.hero-meta-l { left: var(--gutter); }
.hero-meta-r { right: var(--gutter); text-align: right; }
.hero-scroll { display: none; }

/* ---------------------------------------------------------------- Profile */
.profile { padding: clamp(96px, 14vh, 150px) 0 0; }
.statement { font-size: clamp(30px, 3.5vw, 64px); font-weight: 500; line-height: 1.06; letter-spacing: -.035em; max-width: 24ch; }
.profile-top { display: grid; grid-template-columns: minmax(0, 1fr) clamp(260px, 27vw, 460px); gap: clamp(32px, 5vw, 96px); align-items: end; }
.profile-card { position: relative; }
.profile-card-media { position: relative; display: block; aspect-ratio: 4 / 5; background: var(--bp-red); overflow: hidden; }
.profile-card-media img, .profile-card-media canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.profile-card-media.gl-on img { opacity: 0; }
.profile-card-tag { position: absolute; z-index: 2; left: 18px; top: 14px; font-size: 17px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.profile-card figcaption { display: flex; justify-content: space-between; gap: 16px; margin-top: 14px; font-size: 16px; font-weight: 600; }
.profile-card figcaption span:last-child { color: var(--muted); }
[data-line-fill] .split-line { overflow: visible; }
.fill-line {
  background-image: linear-gradient(90deg, var(--fg) 50%, var(--faint) 50%);
  background-size: 200% 100%; background-position: var(--fill, 0%) 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 8vw, 160px); margin-top: clamp(48px, 8vh, 88px); padding-top: 36px; border-top: 1px solid var(--line); }
.profile-copy { font-size: clamp(20px, 1.6vw, 26px); line-height: 1.45; color: var(--muted); max-width: 36ch; }
.profile-quote p { font-size: clamp(24px, 2.2vw, 36px); line-height: 1.25; font-weight: 500; letter-spacing: -.02em; }
.profile-quote cite { display: block; margin-top: 20px; font-style: normal; font-size: 16px; font-weight: 600; color: var(--accent); }

.figures { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(56px, 9vh, 96px); border-top: 1px solid var(--line); }
.figures li { padding: 36px 28px 0 0; display: flex; flex-direction: column; gap: 18px; }
.figures li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.figures b { font-size: clamp(64px, 7.4vw, 136px); font-weight: 300; line-height: .9; letter-spacing: -.05em; font-variant-numeric: tabular-nums lining-nums; }
.figures li > span { font-size: 18px; color: var(--muted); max-width: 24ch; }

.marquee { margin-top: clamp(64px, 10vh, 110px); padding: 28px 0; border-block: 1px solid var(--line); overflow: hidden; white-space: nowrap; }
.marquee-track { display: inline-flex; align-items: center; font-size: clamp(56px, 8.4vw, 150px); font-weight: 600; letter-spacing: -.05em; line-height: 1.05; will-change: transform; }
.marquee-track > * { margin-right: clamp(28px, 3vw, 56px); }
.marquee-track i { width: .2em; height: .2em; border-radius: 50%; background: var(--bp-red); flex: none; }

/* ---------------------------------------------------------------- Career (3D drum) */
.career-pin { height: 100svh; min-height: 680px; display: grid; grid-template-rows: auto 1fr auto; padding: calc(var(--hud-h) + 24px) 0 76px; overflow: hidden; }
.career-top { display: flex; justify-content: space-between; align-items: baseline; gap: 32px; }
.career-top .sec-label { margin: 0; }
.career-title { font-size: clamp(22px, 1.9vw, 32px); font-weight: 500; letter-spacing: -.02em; max-width: 24ch; text-align: right; }
.career-stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: clamp(32px, 5vw, 96px); align-items: stretch; min-height: 0; }
.drum { position: relative; min-height: 300px; perspective: 1400px; container-type: inline-size; -webkit-mask-image: linear-gradient(transparent, #000 26%, #000 74%, transparent); mask-image: linear-gradient(transparent, #000 26%, #000 74%, transparent); }
.drum-ring { position: absolute; inset: 0; transform-style: preserve-3d; }
.drum-ring span {
  position: absolute; left: 0; top: 50%; height: 1em; margin-top: -.5em;
  font-size: min(clamp(90px, 10.5vw, 210px), calc((100cqw - 76px) / 2.5)); font-weight: 700; line-height: 1; letter-spacing: -.06em;
  color: var(--faint); backface-visibility: hidden; transition: color .5s var(--ease);
}
.drum-ring span.is-on { color: var(--accent); }
.drum-mark { position: absolute; right: 0; top: 50%; width: 56px; height: 1.5px; background: var(--fg); }
.roles { position: relative; min-height: 300px; }
.role { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); visibility: hidden; }
.role.is-on { visibility: visible; }
.role-year { font-size: 16px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.role h3 { font-size: clamp(30px, 2.9vw, 54px); font-weight: 600; line-height: 1.02; letter-spacing: -.04em; margin-bottom: 18px; max-width: 16ch; }
.role-org { font-size: 18px; font-weight: 600; margin-bottom: 18px; }
.role-text { font-size: clamp(18px, 1.3vw, 22px); color: var(--muted); max-width: 40ch; }
.career-progress { display: flex; align-items: center; gap: 24px; font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.career-bar { flex: 1; height: 1.5px; background: var(--line); }
.career-bar i { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.career-photo { position: relative; align-self: center; width: min(25vw, calc((100svh - 320px) * .8)); aspect-ratio: 4 / 5; background: #1f1515; overflow: hidden; }
.career-photo img, .career-photo canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.career-photo img { filter: grayscale(1); }
.career-photo.gl-on img { opacity: 0; }
.career-photo-tag { position: absolute; z-index: 2; left: 16px; bottom: 14px; padding: 6px 10px; background: var(--bp-red); color: var(--ink); font-size: 15px; font-weight: 700; letter-spacing: .02em; }
/* no-JS / reduced motion: list layout */
html:not(.js) .roles .role, .career.is-static .role { position: static; transform: none; visibility: visible; margin-bottom: 48px; }
html:not(.js) .drum, .career.is-static .drum { display: none; }
html:not(.js) .career-pin, .career.is-static .career-pin { height: auto; }

/* ---------------------------------------------------------------- Expertise index */
.expertise { padding: clamp(88px, 13vh, 140px) 0 clamp(72px, 10vh, 110px); }
.index { border-top: 1px solid var(--line); }
.index-item { position: relative; border-bottom: 1px solid var(--line); }
.index-row {
  position: relative; width: 100%; display: grid; grid-template-columns: clamp(48px, 6vw, 120px) 1fr 48px; align-items: center;
  padding: clamp(18px, 2.4vh, 30px) 0; border: 0; background: none; text-align: left; cursor: pointer; overflow: hidden; isolation: isolate;
}
.index-row::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--bp-red); transform: scaleY(0); transform-origin: bottom; transition: transform .7s var(--ease); }
.index-num { font-size: 16px; font-weight: 600; color: var(--accent); padding-left: 4px; transition: color .4s; }
.index-title { font-size: clamp(34px, 5.6vw, 104px); font-weight: 600; letter-spacing: -.05em; line-height: 1.02; transition: transform .7s var(--ease), color .4s; }
.index-plus { position: relative; width: 28px; height: 28px; justify-self: end; margin-right: 8px; }
.index-plus::before, .index-plus::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: currentColor; transition: transform .5s var(--ease); }
.index-plus::after { transform: rotate(90deg); }
.index-row[aria-expanded="true"] .index-plus::after { transform: rotate(0); }
@media (hover: hover) and (pointer: fine) {
  .index-row:hover::before { transform: scaleY(1); }
  .index-row:hover, .index-row:hover .index-num { color: var(--ink); }
  .index-row:hover .index-title { transform: translateX(16px); }
}
.index-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .7s var(--ease); }
.index-item.is-open .index-body { grid-template-rows: 1fr; }
.index-body > p { overflow: hidden; padding-left: clamp(48px, 6vw, 120px); font-size: clamp(19px, 1.5vw, 24px); color: var(--muted); max-width: calc(52ch + 120px); }
.index-item.is-open .index-body > p { padding-bottom: 32px; padding-top: 4px; }

/* ---------------------------------------------------------------- Film reel (horizontal) */
.film-pin { height: 100svh; min-height: 640px; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto; padding: calc(var(--hud-h) + 24px) 0 76px; overflow: hidden; }
.film-top { display: flex; justify-content: space-between; align-items: baseline; gap: 32px; }
.film-top .sec-label { margin: 0; }
.film-meta { font-size: 17px; font-weight: 500; color: var(--muted); text-align: right; }
.film-track { display: flex; align-items: center; gap: clamp(40px, 5vw, 96px); width: max-content; min-height: 0; padding: 0 var(--gutter); will-change: transform; }
.film-panel { flex: none; margin: 0; }
.film-intro { width: clamp(340px, 34vw, 580px); }
.film-intro .kicker { color: var(--accent); }
.film-title { font-size: clamp(56px, 7.2vw, 136px); font-weight: 700; line-height: .9; letter-spacing: -.055em; margin: 14px 0 26px; }
.film-lede { font-size: clamp(19px, 1.4vw, 23px); line-height: 1.5; color: var(--muted); max-width: 40ch; }
.film-cta { display: inline-flex; align-items: center; gap: 16px; margin-top: 30px; padding: 0; border: 0; background: none; font-size: 18px; font-weight: 600; cursor: pointer; }
.film-cta-icon { position: relative; flex: none; width: 64px; height: 64px; border-radius: 50%; background: var(--bp-red); transition: transform .6s var(--ease); }
.film-cta-icon::after, .film-poster-play i::after { content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-35%, -50%); border-left: 14px solid var(--ink); border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.film-cta:hover .film-cta-icon { transform: scale(1.12); }
.still-media { position: relative; display: block; overflow: hidden; background: var(--ink); }
.still-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.2); }
.still-media::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 80px rgba(20, 10, 10, .35); pointer-events: none; }
.still figcaption { display: flex; gap: 12px; margin-top: 14px; font-size: 16px; font-weight: 600; }
.still figcaption span, .film-chapters li span { color: var(--accent); }
.still-wide .still-media { height: min(52vh, 500px); aspect-ratio: 640 / 330; }
.still-a { align-self: flex-start; margin-top: 6vh; }
.still-a .still-media { height: min(34vh, 320px); aspect-ratio: 16 / 9; }
.film-chapters { width: clamp(280px, 24vw, 400px); align-self: flex-end; margin-bottom: 2vh; }
.film-chapters .kicker { margin-bottom: 10px; color: var(--muted); }
.film-chapters li { display: flex; gap: 16px; align-items: baseline; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: clamp(19px, 1.4vw, 23px); font-weight: 500; line-height: 1.3; }
.film-chapters li span { flex: none; font-size: 15px; font-weight: 700; }
.film-poster { position: relative; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; text-align: left; margin-right: 4vw; }
.film-poster .still-media { height: min(56vh, 540px); aspect-ratio: 16 / 9; }
.film-poster .still-media::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(20, 10, 10, .1), rgba(20, 10, 10, .55)); }
.film-poster-play { position: absolute; z-index: 2; left: 50%; top: 50%; display: grid; place-items: center; align-content: center; gap: 10px; width: clamp(128px, 11vw, 180px); aspect-ratio: 1; border-radius: 50%; background: var(--bp-red); color: var(--ink); transform: translate(-50%, -50%); transition: transform .7s var(--ease); }
.film-poster-play i { position: relative; width: 24px; height: 24px; }
.film-poster-play em { font-style: normal; font-size: 16px; font-weight: 700; }
.film-poster:hover .film-poster-play { transform: translate(-50%, -50%) scale(1.1); }
.film-poster-cap { position: absolute; z-index: 2; left: 20px; right: 20px; bottom: 16px; color: var(--paper); font-size: 16px; font-weight: 600; }
.film-progress { display: flex; align-items: center; gap: 24px; font-size: 16px; font-weight: 600; }

.film-modal { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--ink); color: var(--paper); --fg: var(--paper); --bg: var(--ink); }
.film-modal::backdrop { background: rgba(20, 10, 10, .85); }
.film-modal-inner { height: 100%; display: grid; grid-template-rows: auto 1fr; gap: 20px; padding: 20px var(--gutter) 28px; }
.film-modal-bar { display: flex; justify-content: space-between; align-items: center; gap: 20px; font-size: 17px; font-weight: 500; }
.film-frame { min-height: 0; display: grid; place-items: center; }
.film-frame iframe { width: min(100%, calc((100vh - 140px) * 16 / 9)); aspect-ratio: 16 / 9; border: 0; background: #000; }

/* ---------------------------------------------------------------- Perspectives */
.perspectives { padding: clamp(56px, 8vh, 96px) 0; }
.persp-stage { position: relative; }
.persp-photo { position: relative; width: min(1320px, calc(100% - 2 * var(--gutter))); margin: 0 auto; aspect-ratio: 1706 / 930; overflow: hidden; background: #0b0b0d; }
.persp-photo img, .persp-photo canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.persp-photo.gl-on img { opacity: 0; }
.persp-quote { position: absolute; left: 0; right: 0; bottom: 8%; pointer-events: none; }
.persp-quote blockquote { width: 42%; margin-left: clamp(20px, 4vw, 72px); }
.persp-quote p { max-width: 13ch; font-size: clamp(28px, 3.3vw, 60px); font-weight: 500; line-height: 1.05; letter-spacing: -.035em; color: var(--paper); }
.persp-quote figcaption { margin: 22px 0 0 clamp(20px, 4vw, 72px); font-size: 16px; font-weight: 600; color: var(--bp-red); max-width: 30ch; }

.studies { padding: clamp(72px, 11vh, 120px) 0 clamp(56px, 8vh, 96px); }
.studies-head { margin-bottom: clamp(32px, 5vh, 56px); }
.study-stack { position: relative; }
.study { position: relative; }
.study + .study { margin-top: clamp(20px, 3vh, 32px); }
.study-card {
  --c-bg: var(--ink); --c-fg: var(--paper); --c-muted: rgba(250, 248, 247, .7); --c-line: rgba(250, 248, 247, .16); --c-accent: var(--bp-red);
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  height: clamp(540px, calc(100svh - var(--hud-h) - 48px), 780px);
  background: var(--c-bg); color: var(--c-fg); border-radius: 6px; overflow: hidden; transform-origin: 50% 0; will-change: transform;
}
.study--sand .study-card { --c-bg: var(--sand); --c-fg: var(--ink); --c-muted: var(--taupe); --c-line: rgba(20, 10, 10, .14); --c-accent: var(--bp-red-deep); }
.study-visual { position: relative; margin: 0; overflow: hidden; background: #ff4047; }
.study-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.study-visual--object { background: #d8ceca; perspective: 1200px; }
.study-visual--object img { inset: 10% 8%; width: 84%; height: 80%; filter: drop-shadow(0 30px 40px rgba(20, 10, 10, .25)); transform-style: preserve-3d; }
.study-index { position: absolute; z-index: 2; right: 24px; bottom: 20px; font-size: 15px; font-weight: 700; letter-spacing: .04em; color: var(--ink); }
.study-body { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; min-height: 0; padding: clamp(28px, 3.4vw, 60px); }
.study-head h3 { font-size: clamp(32px, 3vw, 54px); font-weight: 600; letter-spacing: -.04em; line-height: 1.02; margin: 14px 0 18px; max-width: 16ch; }
.study-head .kicker { color: var(--c-accent); }
.study-head > p:not(.kicker) { color: var(--c-muted); max-width: 40ch; }
.study .link:hover { color: var(--c-accent); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 40px); padding-top: 26px; border-top: 1px solid var(--c-line); }
.stats li { display: flex; flex-direction: column; gap: 14px; }
.stat-num { --lvl: 0%; position: relative; display: inline-block; align-self: flex-start; font-size: clamp(56px, 5.6vw, 108px); font-weight: 300; line-height: .9; letter-spacing: -.055em; font-variant-numeric: tabular-nums; }
.stat-o { color: transparent; -webkit-text-stroke: 1.5px var(--c-fg); }
.stat-f { position: absolute; left: 0; top: 0; white-space: nowrap; color: var(--c-accent); clip-path: inset(calc(100% - var(--lvl)) 0 0 0); }
html:not(.js) .stat-f { clip-path: none; }
.stats li > span:last-child { font-size: 17px; line-height: 1.45; color: var(--c-muted); }
.link { display: inline-flex; gap: 10px; margin-top: 24px; padding-bottom: 6px; border-bottom: 1.5px solid currentColor; font-size: 17px; font-weight: 600; transition: gap .5s var(--ease), color .3s; }
.link:hover { gap: 18px; color: var(--accent); }
.study-quote { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 40px; margin: clamp(56px, 9vh, 110px) 0 0; }
.study-quote p { font-size: clamp(36px, 5vw, 92px); font-weight: 500; line-height: 1.02; letter-spacing: -.045em; max-width: 18ch; }
.study-quote figcaption { display: flex; align-items: center; gap: 16px; max-width: 320px; font-size: 16px; line-height: 1.4; color: var(--muted); }
.study-quote figcaption img { flex: none; width: 76px; height: 76px; border-radius: 50%; background: var(--bp-red); object-fit: cover; object-position: 50% 15%; }
.study-quote figcaption b { display: block; font-size: 17px; color: var(--fg); }

/* ---------------------------------------------------------------- Education */
.education { padding: clamp(24px, 4vh, 48px) 0 clamp(88px, 13vh, 140px); }
.edu-layout { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 96px); align-items: start; }
.edu-media-col { position: sticky; top: calc(var(--hud-h) + 24px); z-index: 2; }
.edu-media { margin: 0; }
.edu-photo { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand); }
.edu-photo img, .edu-photo canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.edu-photo.gl-on img { opacity: 0; }
.edu-count { position: absolute; z-index: 2; right: 16px; top: 14px; padding: 6px 10px; background: var(--paper); color: var(--ink); font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.edu-count b { color: var(--bp-red-deep); }
.edu-caption { display: flex; justify-content: space-between; gap: 16px; margin-top: 16px; font-size: 17px; font-weight: 600; }
.edu-coords { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.edu-credit { margin-top: 6px; font-size: 15px; color: var(--muted); }
.edu-credit a:hover { text-decoration: underline; text-underline-offset: 3px; }
.edu { border-top: 1px solid var(--line); }
.edu-row { position: relative; padding: clamp(32px, 6vh, 64px) 0; border-bottom: 1px solid var(--line); opacity: .42; transition: opacity .7s var(--ease); }
.edu-row.is-active { opacity: 1; }
html:not(.js) .edu-row { opacity: 1; }
.edu-row::before { content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 1.1s var(--ease); }
.edu-row.is-active::before { transform: scaleX(1); }
.edu-year { position: relative; display: inline-block; margin-bottom: 18px; font-size: clamp(64px, 6.6vw, 124px); font-weight: 300; line-height: .85; letter-spacing: -.055em; color: transparent; -webkit-text-stroke: 1.5px var(--taupe); }
.edu-year::after { content: attr(data-year); position: absolute; left: 0; top: 0; color: var(--accent); -webkit-text-stroke: 0; clip-path: inset(0 100% 0 0); transition: clip-path 1.1s var(--ease); }
.edu-row.is-active .edu-year::after { clip-path: inset(0 0 0 0); }
html:not(.js) .edu-year { color: var(--accent); -webkit-text-stroke: 0; }
.edu-tag { margin-bottom: 10px; font-size: 15px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.edu-row h3 { font-size: clamp(28px, 2.6vw, 46px); font-weight: 600; letter-spacing: -.035em; line-height: 1.05; margin-bottom: 10px; }
.edu-text > p:not(.edu-tag) { color: var(--muted); font-size: 19px; }
.edu-text .edu-note { margin-top: 12px; max-width: 42ch; font-size: 17px; }

/* ---------------------------------------------------------------- Contact */
.contact { padding: clamp(96px, 14vh, 150px) 0 0; overflow: hidden; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) clamp(260px, 30vw, 540px); gap: clamp(24px, 4vw, 72px); align-items: end; }
.contact-portrait { position: relative; z-index: 2; aspect-ratio: 1; margin-bottom: calc(-1 * (clamp(40px, 6vh, 72px) + 11vw)); }
.contact-portrait img, .contact-portrait canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: bottom; }
.contact-portrait img { filter: grayscale(1); }
.contact-portrait.gl-on img { opacity: 0; }
.contact-title { font-size: clamp(60px, 10.6vw, 200px); font-weight: 700; line-height: .9; letter-spacing: -.06em; max-width: 10ch; }
.contact-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 48px; margin-top: clamp(40px, 6vh, 72px); }
.orb { position: relative; display: grid; place-items: center; width: clamp(170px, 15vw, 230px); aspect-ratio: 1; border-radius: 50%; background: var(--ink); color: var(--paper); text-align: center; font-size: 17px; font-weight: 600; line-height: 1.3; padding: 28px; overflow: hidden; }
.orb::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--paper); transform: scale(0); transition: transform .7s var(--ease); }
.orb span { position: relative; transition: color .4s; }
.orb:hover::before { transform: scale(1); }
.orb:hover span { color: var(--ink); }
.contact-links { flex: 1 1 460px; max-width: 720px; border-top: 1.5px solid var(--line); }
.contact-links a { display: flex; justify-content: space-between; align-items: center; padding: 22px 0; border-bottom: 1.5px solid var(--line); font-size: clamp(28px, 2.8vw, 48px); font-weight: 600; letter-spacing: -.035em; line-height: 1.15; }
.contact-links i { font-style: normal; transition: transform .5s var(--ease); }
.contact-links a:hover i { transform: translate(6px, -6px); }
.footer-name { position: relative; z-index: 3; margin-top: clamp(40px, 6vh, 72px); padding: 0 var(--gutter); font-size: 20vw; font-weight: 700; line-height: .78; letter-spacing: -.06em; text-transform: uppercase; white-space: nowrap; color: var(--paper); overflow: hidden; pointer-events: none; }
.footer-name > span { display: inline-block; padding-top: .04em; }
.footer { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 28px; padding-bottom: 84px; font-size: 15px; font-weight: 500; }
.footer a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------------------------------------------------------------- JS initial states */
html.js [data-reveal] { opacity: 0; transform: translateY(32px); }
html.js [data-hero-fade] { opacity: 0; }

/* ---------------------------------------------------------------- Responsive */
@media (max-width: 1180px) {
  .hud-nav, .hud-clock { display: none; }
  .hud-menu { display: inline-block; }
  .figures { grid-template-columns: repeat(2, 1fr); }
  .figures li:nth-child(3) { padding-left: 0; border-left: 0; }
  .figures li:nth-child(n+3) { margin-top: 40px; border-top: 1px solid var(--line); }
}
@media (max-width: 900px) {
  :root { --hud-h: 72px; }
  .hero-meta-r { display: none; }
  .hero-meta-l { top: calc(var(--hud-h) + 19vw); max-width: 15ch; font-size: 16px; }
  .hero-portrait { height: 66svh; left: 60%; }
  .hero-front { bottom: 66px; }
  .profile-grid { grid-template-columns: 1fr; }
  .study-card { height: auto; grid-template-columns: 1fr; }
  .study-visual { aspect-ratio: 16 / 10; }
  .study-visual--object { aspect-ratio: 4 / 3; }
  .study-quote { grid-template-columns: 1fr; gap: 24px; }
  .edu-layout { grid-template-columns: 1fr; gap: 0; }
  .edu-media-col { top: var(--hud-h); padding-bottom: 14px; background: var(--bg); transition: background-color 1s var(--ease); }
  .edu-photo { aspect-ratio: 16 / 9; }
  .edu-caption { margin-top: 10px; font-size: 16px; }
  .career-stage { grid-template-columns: 1fr; grid-template-rows: minmax(180px, 36%) 1fr; gap: 8px; }
  .drum-ring span { font-size: min(clamp(84px, 24vw, 160px), calc((100cqw - 76px) / 2.5)); }
  .career-title { display: none; }
  .persp-photo { aspect-ratio: 4 / 5; }
  .persp-quote { position: static; margin-top: 36px; }
  .persp-quote blockquote, .persp-quote figcaption { width: auto; max-width: none; margin-left: 0; }
  .persp-quote p { max-width: none; }
  .persp-quote p { color: var(--fg); font-size: clamp(30px, 7.6vw, 48px); }
  .edu-row { grid-template-columns: 1fr; gap: 14px; }
  .profile-top { grid-template-columns: 1fr; }
  .profile-card { width: min(100%, 420px); justify-self: end; }
  .career-stage { grid-template-columns: 1fr; }
  .career-photo { display: none; }
  .film-pin { height: auto; min-height: 0; display: block; padding: clamp(72px, 10vh, 110px) 0 48px; }
  .film-top { flex-direction: column; gap: 8px; }
  .film-meta { text-align: left; }
  .film-track { width: auto; flex-direction: column; align-items: stretch; gap: 36px; padding: 28px var(--gutter) 0; }
  .film-panel, .film-intro, .film-chapters { width: 100%; }
  .still-a, .film-chapters { align-self: auto; margin: 0; }
  .still-wide .still-media, .still-a .still-media, .film-poster .still-media { width: 100%; height: auto; }
  .film-poster { margin-right: 0; }
  .film-progress { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-portrait { width: min(78vw, 440px); justify-self: end; margin-bottom: calc(-1 * (clamp(40px, 6vh, 72px) + 12vw)); }
}
@media (max-width: 640px) {
  .hud-right .btn { display: none; }
  .figures { grid-template-columns: 1fr; }
  .figures li, .figures li + li { padding-left: 0; border-left: 0; }
  .figures li + li { margin-top: 36px; border-top: 1px solid var(--line); }
  .stats { grid-template-columns: 1fr; gap: 36px; }
  .foot-hud { grid-template-columns: 1fr auto; background: linear-gradient(transparent, var(--bg) 65%); }
  .foot-bar { display: none; }
  .index-row { grid-template-columns: 44px 1fr 36px; }
  .index-body > p { padding-left: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  html.js [data-reveal], html.js [data-hero-fade] { opacity: 1; transform: none; }
}
