/* ==========================================================================
   Oliver Schön — Towards Trustworthy Physical AI
   Editorial · cinematic · award-style · responsive
   ========================================================================== */

:root {
  --bg:        #08090d;
  --bg-2:      #0b0d13;
  --surface:   #101319;
  --surface-2: #151922;
  --line:      rgba(255,255,255,.09);
  --line-2:    rgba(255,255,255,.16);
  --text:      #f3f4f8;
  --text-dim:  #9aa1b2;
  --text-mute: #626a7e;
  --accent:    #4d7cff;      /* blue     */
  --accent-2:  #f81df8;      /* magenta  */
  --gold:      #d9b25e;
  --gold-soft: rgba(217,178,94,.13);
  --glow:      rgba(77,124,255,.30);
  --maxw:      1240px;
  --nav-h:     72px;
  --ease:      cubic-bezier(.22,.61,.36,1);
  --font:      "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display:   "Montserrat", "Open Sans", system-ui, sans-serif;
  --mono:      "Open Sans", ui-monospace, monospace;
  --nav-bg:    rgba(8,9,13,.78);
  --nav-solid: rgba(8,9,13,.97);
  --card-shadow: none;
}

/* ---- Light theme ---- */
[data-theme="light"] {
  --bg:        #f4f6f9;
  --bg-2:      #eaedf3;
  --surface:   #ffffff;
  --surface-2: #f3f5f9;
  --line:      rgba(20,24,40,.10);
  --line-2:    rgba(20,24,40,.18);
  --text:      #14161d;
  --text-dim:  #454b5c;
  --text-mute: #79808f;
  --glow:      rgba(77,124,255,.16);
  --nav-bg:    rgba(255,255,255,.82);
  --nav-solid: rgba(255,255,255,.97);
  --card-shadow: 0 1px 3px rgba(20,24,40,.06), 0 8px 24px rgba(20,24,40,.05);
}
[data-theme="light"] .card, [data-theme="light"] .award, [data-theme="light"] .role-box,
[data-theme="light"] .stat-band, [data-theme="light"] .table-wrap { box-shadow: var(--card-shadow); }
[data-theme="light"] .btn-light { color:#fff; background: var(--accent); }
[data-theme="light"] .btn-light:hover { background: var(--accent-2); }
/* Softer hero bottom fade in light mode (was fading strongly to white) */
[data-theme="light"] .hero-cine::after {
  background:
    linear-gradient(180deg, rgba(8,9,13,.55), rgba(8,9,13,.12) 34%, rgba(8,9,13,.42) 84%, rgba(244,246,249,.5) 100%),
    linear-gradient(90deg, rgba(8,9,13,.6), transparent 60%);
}

/* Self-hosted futuristic display fonts (files in assets/fonts/) */
@font-face { font-family:"Futuristic"; src:url("../assets/fonts/futuristic.otf") format("opentype"); font-display:swap; }
@font-face { font-family:"Anurati"; src:url("../assets/fonts/Anurati-Regular.otf") format("opentype"); font-display:swap; }
@font-face { font-family:"Blanka"; src:url("../assets/fonts/Blanka-Regular.otf") format("opentype"); font-display:swap; }
@font-face { font-family:"Corpta"; src:url("../assets/fonts/Corpta-DEMO.otf") format("opentype"); font-display:swap; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0; font-family: var(--font); color: var(--text); background: var(--bg);
  line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1,h2,h3,h4 { margin: 0; font-family: var(--display); font-weight: 700; line-height: 1.02; letter-spacing: -.02em; text-transform: capitalize; }
p { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
.wide { max-width: 1400px; }
.mono { font-family: var(--mono); }
.eyebrow {
  font-family: var(--mono); font-size: .74rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--text-mute); display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; opacity: .6; }
.accent { color: var(--accent); }
.accent-2 { color: var(--accent-2); }

/* selection */
::selection { background: var(--accent); color: #fff; }

/* --------------------------------------------------- CUSTOM CURSOR -------- */
.cursor-ring, .cursor-dot { position: fixed; top: 0; left: 0; border-radius: 50%; pointer-events: none; z-index: 9999; mix-blend-mode: difference; }
.cursor-ring { width: 34px; height: 34px; border: 1px solid #fff; transform: translate(-50%,-50%); transition: width .25s var(--ease), height .25s var(--ease), background .25s; }
.cursor-dot { width: 5px; height: 5px; background: #fff; transform: translate(-50%,-50%); }
.cursor-ring.hover { width: 58px; height: 58px; background: rgba(255,255,255,.12); }
@media (hover: none) { .cursor-ring, .cursor-dot { display: none; } }

/* --------------------------------------------------------------- NAV ------ */
.nav {
  position: fixed; inset: 0 0 auto 0; height: var(--nav-h); display: flex; align-items: center; z-index: 100;
  background: transparent; transition: background .4s, border-color .4s, height .4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: var(--nav-bg); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border-bottom-color: var(--line); height: 60px; }
/* theme toggle */
.nav-right { display: flex; align-items: center; gap: 8px; }
.theme-toggle { width: 42px; height: 42px; border: 1px solid var(--line-2); border-radius: 11px; background: transparent; color: var(--text-dim); display: grid; place-items: center; cursor: pointer; transition: color .2s, border-color .2s; }
.theme-toggle:hover { color: var(--text); border-color: var(--accent); }
.theme-toggle svg { width: 19px; height: 19px; }
.theme-toggle .ic-moon { display: none; }
[data-theme="light"] .theme-toggle .ic-sun { display: none; }
[data-theme="light"] .theme-toggle .ic-moon { display: block; }
/* nav sitting over the dark hero (home) must stay light until scrolled */
.has-hero .nav:not(.scrolled) .nav-links a,
.has-hero .nav:not(.scrolled) .brand .brand-name { color: rgba(255,255,255,.9); }
.has-hero .nav:not(.scrolled) .brand .brand-sub { color: rgba(255,255,255,.6); }
.has-hero .nav:not(.scrolled) .theme-toggle { color: rgba(255,255,255,.85); border-color: rgba(255,255,255,.28); }
.has-hero .nav:not(.scrolled) .nav-toggle { border-color: rgba(255,255,255,.28); }
.has-hero .nav:not(.scrolled) .nav-toggle span,
.has-hero .nav:not(.scrolled) .nav-toggle span::before,
.has-hero .nav:not(.scrolled) .nav-toggle span::after { background: #fff; }
.nav .container { display: flex; align-items: center; justify-content: flex-end; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand .mark {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  font-family: var(--display); font-size: 14px; font-weight: 800; letter-spacing: .02em; color: #fff;
  background: conic-gradient(from 140deg, var(--accent), var(--accent-2), var(--accent));
  box-shadow: 0 6px 22px var(--glow);
}
.brand .brand-name { font-family: var(--display); font-weight: 700; font-size: 1rem; letter-spacing: -.01em; }
.brand .brand-sub { display: block; margin-top: 1px; font-family: var(--mono); font-size: .64rem; letter-spacing: .18em; text-transform: uppercase; color: var(--text-mute); }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a { position: relative; padding: 9px 15px; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; color: var(--text-dim); border-radius: 9px; transition: color .2s; }
.nav-links a::before { content: ""; position: absolute; left: 15px; bottom: 5px; width: 0; height: 1.5px; background: var(--accent); transition: width .25s var(--ease); }
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::before { width: calc(100% - 30px); }
.nav-links a.active { color: var(--text); }
.nav-links a.active::before { width: calc(100% - 30px); background: linear-gradient(90deg,var(--accent),var(--accent-2)); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line-2); background: rgba(16,19,25,.6); border-radius: 11px; cursor: pointer; padding: 0; position: relative; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { content:""; position: absolute; left: 50%; top: 50%; width: 18px; height: 2px; background: var(--text); border-radius: 2px; transform: translate(-50%,-50%); transition: transform .3s var(--ease); }
.nav-toggle span::before { transform: translate(-50%,-6px); }
.nav-toggle span::after { transform: translate(-50%,6px); }
.nav-toggle.open span { background: transparent; }
.nav-toggle.open span::before { transform: translate(-50%,-50%) rotate(45deg); }
.nav-toggle.open span::after { transform: translate(-50%,-50%) rotate(-45deg); }

/* --------------------------------------------------------------- BTNS ----- */
.btn { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 600; font-size: .9rem; letter-spacing: .01em; padding: 14px 26px; border-radius: 100px; cursor: pointer; border: 1px solid transparent; transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: #fff; background: var(--accent); }
.btn-primary:hover { background: var(--accent-2); }
.btn-ghost { color: var(--text); border-color: var(--line-2); background: transparent; }
.btn-ghost:hover { border-color: #fff; }
.btn-light { color: #0a0a0a; background: #fff; }
.btn-light:hover { background: var(--text-dim); }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn:hover .arrow-down { transform: translateY(4px); }

/* --------------------------------------------------------------- SECTION -- */
section { position: relative; padding: 88px 0; }
.pad { padding: 108px 0; }
.section-head { margin-bottom: 56px; }
.section-num { display: block; font-family: var(--mono); font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 18px; }
.section-title { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 700; }
.section-lead { color: var(--text-dim); max-width: 60ch; font-size: 1.08rem; margin-top: 18px; }
.section-tag { font-family: var(--mono); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--accent-2); display: inline-flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.section-tag::before { content: ""; width: 24px; height: 1px; background: currentColor; }
.page-top { padding-top: calc(var(--nav-h) + 64px); }

/* --------------------------------------------------------- HERO (video) --- */
.hero-cine { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; padding: 0; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transform: scale(1.07); transition: opacity 1.1s var(--ease), transform 7s linear; }
.hero-slide.active { opacity: 1; transform: scale(1); }
.hero-slide.shaded { filter: brightness(.58); }
.hero-slide-vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; background: #000; }
.hero-swap { display: inline-block; white-space: nowrap; font-family: var(--display); font-weight: 800; letter-spacing: -.03em; font-size: 1em; line-height: 1.0; padding: .1em .2em; margin: -.1em -.2em; transform-origin: center; will-change: opacity, filter, transform; }
.hero-head .hero-swap.leaving { animation: swapOut .28s var(--ease) forwards; }
.hero-head .hero-swap.entering {
  /* soft-edged mask so the glow isn't clipped to a hard rectangle */
  -webkit-mask-image: linear-gradient(90deg, #000 35%, transparent 62%);
  mask-image: linear-gradient(90deg, #000 35%, transparent 62%);
  -webkit-mask-size: 300% 100%; mask-size: 300% 100%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  animation: swapIn .5s var(--ease);
}
/* quick "turn off" */
@keyframes swapOut { from { opacity: 1; filter: blur(0); } to { opacity: 0; filter: blur(11px); } }
/* neon "turn on": illuminates from the left and flows to the right, blurring into focus */
@keyframes swapIn {
  0%   { opacity: 0; filter: blur(8px) brightness(1.35); -webkit-mask-position: 100% 0; mask-position: 100% 0; }
  35%  { opacity: 1; }
  100% { opacity: 1; filter: blur(0) brightness(1.2); -webkit-mask-position: 0% 0; mask-position: 0% 0; }
}
.hero-cine::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(8,9,13,.62), rgba(8,9,13,.25) 34%, rgba(8,9,13,.72) 82%, var(--bg)),
    linear-gradient(90deg, rgba(8,9,13,.7), transparent 60%);
}
.hero-cine .container { position: relative; z-index: 3; width: 100%; padding-top: 96px; padding-bottom: 40px; }
.hero-meta { display: flex; justify-content: space-between; font-family: var(--mono); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--text-mute); margin-bottom: 8vh; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: 26px; }
.hero-eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--glow); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }
.hero-head {
  font-family: var(--display); font-weight: 800; letter-spacing: -.03em; line-height: 1.0;
  font-size: clamp(2.2rem, 5.9vw, 4.7rem); margin: 0 0 24px; color: #fff; max-width: 20ch;
}
@media (max-width: 560px) { .hero-head { font-size: 1.7rem; } }
@media (max-width: 380px) { .hero-head { font-size: 1.5rem; } }
.hero-head .grad {
  background: linear-gradient(100deg, #49c6ff 0%, #b34dff 34%, #ff3fdf 62%, #49c6ff 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: saturate(1.6) brightness(1.2);
  text-shadow: 0 1px 8px rgba(0,0,0,.45);
  animation: neonPulse 4s ease-in-out infinite;
}
/* the gradient colours themselves drift back and forth while the word rests
   (overridden by the swipe-in / vanish during a swap) */
@keyframes neonPulse {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
.arrow-down svg { display: block; }
@keyframes sheen { to { background-position: 220% center; } }
.hero-cine .sub { font-size: clamp(1.02rem, 1.5vw, 1.24rem); color: #dde0ea; max-width: 52ch; margin-bottom: 34px; }

/* scroll progress bar */
.scroll-prog { position: fixed; top: 0; left: 0; height: 3px; width: 100%; transform: scaleX(0); transform-origin: 0 50%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); z-index: 200; }

/* about photo (personal) */
.about-side { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; }
.about-photo { position: relative; width: 150px; height: 150px; margin-bottom: 14px; }
.about-photo img { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--line-2); position: relative; z-index: 1; }
.about-photo::before { content: ""; position: absolute; inset: -14px; border-radius: 50%; z-index: 0; background: radial-gradient(circle, rgba(77,124,255,.45), transparent 68%); filter: blur(10px); }
.about-name { font-family: var(--signature); font-size: 2.2rem; line-height: 1; color: var(--text); }
/* Handwritten signature image (black in light mode, inverted to white in dark) */
.signature { display: block; width: auto; height: 3rem; }
.about-name .signature { height: 3rem; }
.intro .name .signature { height: 3.7rem; }
[data-theme="dark"] .signature { filter: invert(1) brightness(1.8); }
.about-role { font-family: var(--mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-top: 12px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
/* Hero CTAs: soft, transparent glass — only over the dark video hero */
.hero-cine .hero-cta .btn-primary, .hero-cine .hero-cta .btn-light {
  background: rgba(255,255,255,.09); color: #fff; box-shadow: none;
  border-color: rgba(255,255,255,.38); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.hero-cine .hero-cta .btn-primary:hover, .hero-cine .hero-cta .btn-light:hover { background: rgba(255,255,255,.18); border-color: #fff; }
.scroll-hint { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 4; color: rgba(255,255,255,.5); animation: bob 2s infinite; }
@keyframes bob { 0%,100%{transform:translate(-50%,0)} 50%{transform:translate(-50%,8px)} }

/* --------------------------------------------------------- MARQUEE -------- */
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; padding: 26px 0; background: var(--bg-2); }
.marquee-track { display: inline-flex; align-items: center; white-space: nowrap; will-change: transform; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { font-family: var(--display); font-weight: 800; font-size: clamp(1.6rem, 4vw, 3rem); letter-spacing: -.01em; padding: 0 2.2rem; color: var(--text); }
.marquee-item.outline { color: transparent; -webkit-text-stroke: 1px var(--text-mute); }
.marquee-star { color: var(--accent-2); font-size: clamp(1.2rem,3vw,2rem); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* --------------------------------------------------------- STATEMENT ------ */
.statement { display: block; }
.statement .big.hang { text-indent: -0.78em; padding-left: 0.78em; }
.statement .label { font-family: var(--mono); font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--text-mute); padding-top: 14px; }
.statement .big { font-family: var(--display); font-weight: 500; font-size: clamp(1.5rem, 3.2vw, 2.5rem); line-height: 1.22; letter-spacing: -.02em; color: var(--text); }
.statement .big em { font-style: normal; color: var(--accent); }
.statement .big .hl {
  position: relative; isolation: isolate; white-space: nowrap; padding: 0 .14em; font-weight: 700;
  background: linear-gradient(100deg, #2f6bff 0%, #8a3ffb 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.statement .big .hl::before {
  content: ""; position: absolute; z-index: -1; inset: .04em -.04em .04em;
  background: rgba(77,140,255,.16); border-radius: 5px;
}

/* --------------------------------------------------- APPROACH (numbered) -- */
.approach { display: grid; gap: 0; }
.appr-row { display: grid; grid-template-columns: 90px 1fr auto; gap: 30px; align-items: start; padding: 34px 0; border-top: 1px solid var(--line); transition: padding-left .55s cubic-bezier(.33,.1,.25,1); }
.appr-row:last-child { border-bottom: 1px solid var(--line); }
.appr-row > .appr-num, .appr-row > div { transition: transform .4s cubic-bezier(.33,.1,.25,1); will-change: transform; }
.appr-row:hover > .appr-num, .appr-row:hover > div { transform: translateX(18px); }
.appr-num { font-family: var(--mono); font-size: .95rem; color: var(--accent-2); }
.appr-row h3 { font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 700; margin-bottom: 10px; transition: color .4s var(--ease); }
.appr-row:hover h3 { color: var(--accent); }
.appr-row p { color: var(--text-dim); max-width: 62ch; margin: 0; }
.appr-tag { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-mute); white-space: nowrap; padding-top: 6px; }
/* One row carries a dimmed sim-to-real image bleeding in from the right */
.appr-row--img { position: relative; isolation: isolate; overflow: hidden; }
.appr-row--img::before {
  content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 33%; z-index: -1;
  background-repeat: no-repeat; background-position: center; background-size: cover;
  opacity: .62; filter: saturate(.55); transition: opacity .4s var(--ease), filter .4s var(--ease);
  /* dissolve the image's real left edge into the page background */
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 34%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 34%);
}
.appr-row--img:hover::before { opacity: 1; filter: saturate(1); }
/* adaptive halo (in the page bg colour) keeps text legible over the image on hover;
   invisible on the plain background, so it only shows where it's needed */
.appr-row--img > div { text-shadow: 0 0 4px var(--bg), 0 0 8px var(--bg), 0 0 12px var(--bg); }
/* per-row images + their aspect ratio so the box hugs each image (edge = image edge) */
.appr-row--sim::before { background-image: url('../assets/img/sim-to-real.jpg'); }
.appr-row--formal::before { background-image: url('../assets/img/formal-verification.jpg'); }
.appr-row--dda::before { background-image: url('../assets/img/row-voxel.jpg'); }

/* ------------------------------------------------- SELECTED WORK (rows) --- */
.work-row { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; padding: 70px 0; border-top: 1px solid var(--line); }
.work-row:last-child { border-bottom: 1px solid var(--line); }
.work-row:nth-child(even) .work-media { order: 2; }
.work-media { position: relative; aspect-ratio: 4/3; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.work-media .bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.02); transition: transform .8s var(--ease); }
.work-row:hover .work-media .bg { transform: scale(1.08); }
.work-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(140deg, transparent 40%, rgba(8,9,13,.5)); }
.work-num { font-family: var(--mono); font-size: .82rem; letter-spacing: .18em; color: var(--accent-2); margin-bottom: 16px; display: block; }
.work-title { font-size: clamp(2rem, 4.4vw, 3.4rem); font-weight: 800; letter-spacing: -.03em; line-height: 1; margin-bottom: 8px; transition: color .3s; }
.work-row:hover .work-title { color: var(--accent); }
.work-kicker { font-family: var(--mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-mute); margin-bottom: 18px; }
.work-desc { color: var(--text-dim); font-size: 1.04rem; max-width: 46ch; margin-bottom: 20px; }
.work-meta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 22px; }
.work-meta .count { font-family: var(--mono); font-size: .8rem; color: var(--text); }
.work-meta .count b { color: var(--accent-2); }
.work-links { display: flex; gap: 22px; flex-wrap: wrap; }
.work-links a { font-family: var(--display); font-weight: 600; font-size: .92rem; display: inline-flex; align-items: center; gap: 7px; border-bottom: 1px solid var(--line-2); padding-bottom: 3px; transition: color .2s, border-color .2s; }
.work-links a:hover { color: var(--accent); border-color: var(--accent); }

/* ------------------------------------------------ APPLICATIONS slider ----- */
.apps-stage { position: relative; aspect-ratio: 21/9; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.app-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transform: scale(1.05); transition: opacity .7s var(--ease), transform 5.5s linear; }
.app-slide.active { opacity: 1; transform: scale(1); }
.apps-stage::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(120deg, rgba(6,7,11,.78), rgba(6,7,11,.15) 55%, rgba(6,7,11,.5)); }
.app-cap { position: absolute; left: 32px; bottom: 28px; right: 32px; z-index: 2; color: #fff; }
.app-cap .idx { font-family: var(--mono); font-size: .8rem; letter-spacing: .14em; color: var(--accent-2); }
.app-cap .app-title { font-family: var(--display); font-weight: 800; font-size: clamp(1.6rem, 3.6vw, 2.7rem); color: #fff; margin: 6px 0 4px; }
.app-cap .app-sub { color: rgba(255,255,255,.82); font-size: .96rem; margin: 0; }
.apps-tabs { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.apps-tabs button { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 100px; background: var(--surface); color: var(--text-dim); font-family: var(--display); font-weight: 600; font-size: .85rem; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.apps-tabs button span { font-family: var(--mono); font-size: .72rem; color: var(--accent-2); }
.apps-tabs button:hover { color: var(--text); border-color: var(--line-2); }
.apps-tabs button.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.apps-tabs button.active span { color: rgba(255,255,255,.85); }
@media (max-width: 640px) { .apps-stage { aspect-ratio: 4/3; } .app-cap { left: 20px; right: 20px; bottom: 20px; } }

/* ------------------------------------------------------ IMAGE GALLERY ------ */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.g-item { position: relative; aspect-ratio: 4/3; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.g-item:hover img { transform: scale(1.07); }
.g-item .g-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 16px; z-index: 2; background: linear-gradient(transparent, rgba(6,7,11,.9)); color: #fff; font-family: var(--mono); font-size: .76rem; letter-spacing: .02em; }
@media (max-width: 820px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr; } }

/* ------------------------------------------------------ CONFERENCE MAP ----- */
.map-wrap { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
#confmap { height: 460px; width: 100%; background: var(--surface); }
.leaflet-popup-content { font-family: var(--font); font-size: .86rem; }
.leaflet-popup-content b { font-family: var(--display); }
.map-legend { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 10px 20px; font-family: var(--mono); font-size: .8rem; color: var(--text-dim); }
.map-legend span { display: inline-flex; align-items: center; gap: 8px; }
.map-legend i { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--glow); }
@media (max-width: 640px) { #confmap { height: 360px; } }
.conf-layout { display: grid; grid-template-columns: 1.05fr 1fr; gap: 30px; align-items: start; }
.conf-list { display: flex; flex-direction: column; gap: 10px; max-height: 460px; overflow-y: auto; padding-right: 10px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.conf-list::-webkit-scrollbar { width: 8px; }
.conf-list::-webkit-scrollbar-track { background: transparent; }
.conf-list::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 8px; }
.conf-list::-webkit-scrollbar-thumb:hover { background: var(--accent); }
.conf-item { padding: 15px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); transition: border-color .2s, background .2s, transform .2s; }
.conf-item.hl { border-color: var(--accent); background: rgba(77,124,255,.07); transform: translateX(4px); }
.conf-item .ci-loc { font-family: var(--mono); font-size: .73rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 5px; }
.conf-item h4 { font-size: 1.02rem; margin-bottom: 3px; }
.conf-item .ci-sub { color: var(--text-dim); font-size: .88rem; }
.conf-map { position: sticky; top: 88px; }
@media (max-width: 820px) { .conf-layout { grid-template-columns: 1fr; } .conf-map { position: static; order: -1; margin-bottom: 8px; } }

/* ---------------------------------------------- CITATION HEAT (row tint) --- */
table.pubs tbody tr.cited td { background: rgba(248,29,248, var(--heat, 0)); transition: background .2s; }
table.pubs tbody tr.cited:hover td { background: rgba(77,124,255,.08); }

/* --------------------------------------------------------- STATS band ----- */
.stat-band { display: grid; grid-template-columns: repeat(4,1fr); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.stat-band .stat { padding: 40px 22px; border-right: 1px solid var(--line); }
.stat-band .stat:last-child { border-right: none; }
.stat .num { font-family: var(--display); font-weight: 800; font-size: clamp(2.2rem,4.5vw,3.2rem); letter-spacing: -.03em; line-height: 1; color: var(--text); }
.stat .num .u { color: var(--accent-2); }
.stat .label { color: var(--text-mute); font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; margin-top: 12px; }
/* portfolio stats block */
.stats { display: grid; grid-template-columns: repeat(3,1fr); }
.stats .stat { text-align: center; padding: 20px 12px; }
@media (max-width: 540px) { .stats { grid-template-columns: repeat(2,1fr); } }

/* --------------------------------------------------------- BIG CONTACT ---- */
.contact-big { border-top: 1px solid var(--line); padding: 110px 0; }
.contact-big .eyebrow { margin-bottom: 26px; }
.contact-big h2 { font-size: clamp(2.2rem, 6vw, 4.8rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.contact-big .mail { display: inline-block; margin-top: 26px; font-family: var(--display); font-weight: 700; font-size: clamp(1.4rem,4vw,2.6rem); letter-spacing: -.02em; background: linear-gradient(100deg,var(--accent),var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; border-bottom: 2px solid transparent; }
.contact-big .mail:hover { border-color: var(--accent-2); }
.contact-sub { color: var(--text-dim); max-width: 44ch; margin: 22px 0 0; }

/* --------------------------------------------------------------- CARDS ---- */
.card { background: linear-gradient(180deg, var(--surface), var(--surface-2)); border: 1px solid var(--line); border-radius: 16px; padding: 28px; transition: transform .25s var(--ease), border-color .25s; }
.card:hover { transform: translateY(-4px); border-color: var(--line-2); }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2,1fr); }
.grid-3 { grid-template-columns: repeat(3,1fr); }
.card h3 { font-size: 1.16rem; margin-bottom: 10px; }
.card p { color: var(--text-dim); font-size: .96rem; margin: 0; }
.feature-card { padding: 34px; }
.feature-card .kicker { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-2); }
.feature-card h3 { font-size: 1.5rem; margin: 12px 0 14px; }
.feature-card p { color: var(--text-dim); }
.pub-links { margin-top: 12px; display: flex; gap: 10px; flex-wrap: wrap; }
.pub-links a { font-family: var(--display); font-size: .82rem; font-weight: 600; color: var(--accent); padding: 7px 14px; border-radius: 100px; border: 1px solid var(--line-2); transition: background .2s, color .2s, border-color .2s; }
.pub-links a:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* series feature with paper carousel */
.series-block { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: center; padding: 40px 0; border-top: 1px solid var(--line); }
.series-block:last-of-type { border-bottom: 1px solid var(--line); }
.series-block .s-kicker { font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-2); }
.series-block h3 { font-size: clamp(1.6rem,3vw,2.3rem); font-weight: 800; letter-spacing: -.02em; margin: 10px 0 12px; }
.series-block .s-authors { color: var(--text-mute); font-size: .9rem; margin-bottom: 12px; }
.series-block .s-desc { color: var(--text-dim); }
.series-block .s-links { margin-top: 16px; display: flex; gap: 20px; flex-wrap: wrap; }
.series-block .s-links a { font-family: var(--display); font-weight: 600; font-size: .9rem; border-bottom: 1px solid var(--line-2); padding-bottom: 3px; }
.series-block .s-links a:hover { color: var(--accent); border-color: var(--accent); }

.s-proj { min-height: 340px; }
.carousel { position: relative; }
.carousel-viewport { overflow: hidden; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); transition: border-color .25s var(--ease), box-shadow .25s var(--ease); }
.carousel:hover .carousel-viewport { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.carousel-track { display: flex; transition: transform .55s var(--ease); }
.carousel-slide { min-width: 100%; padding: 30px 34px; }
.carousel-slide .cs-venue { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.carousel-slide h4 { font-size: 1.2rem; margin: 10px 0 10px; line-height: 1.25; }
.carousel-slide p { color: var(--text-dim); font-size: .95rem; margin: 0 0 14px; }
.carousel-slide a.cs-link { font-family: var(--display); font-weight: 600; font-size: .85rem; color: var(--accent); border-bottom: 1px solid var(--accent); padding-bottom: 2px; }
.carousel-slide a.cs-link + a.cs-link { margin-left: 22px; }
.carousel-nav { position: absolute; top: -54px; right: 0; display: flex; gap: 8px; }
.carousel-prev, .carousel-next { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font-size: 1.2rem; cursor: pointer; display: grid; place-items: center; transition: border-color .2s, color .2s; }
.carousel-prev:hover, .carousel-next:hover { border-color: var(--accent); color: var(--accent); }
.carousel-dots { display: flex; gap: 8px; justify-content: center; margin-top: 18px; }
.carousel-dots button { width: 8px; height: 8px; padding: 0; border: none; border-radius: 50%; background: var(--line-2); cursor: pointer; transition: width .2s, background .2s; }
.carousel-dots button.active { width: 22px; border-radius: 4px; background: var(--accent); }

/* project boxes (portfolio/pubs) */
.proj-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 22px; }
.proj { position: relative; border-radius: 16px; overflow: hidden; min-height: 320px; display: flex; flex-direction: column; justify-content: flex-end; border: 1px solid var(--line); isolation: isolate; transition: transform .3s var(--ease), border-color .3s; }
.proj:hover { transform: translateY(-5px); border-color: var(--accent); }
.proj .proj-img { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; transition: transform .7s var(--ease); }
.proj:hover .proj-img { transform: scale(1.07); }
.proj::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8,9,13,.22), rgba(8,9,13,.48) 55%, rgba(8,9,13,.86)); }
.proj-body { padding: 26px; text-shadow: 0 1px 16px rgba(0,0,0,.6); }
.proj .kicker { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: #ff8bff; }
.proj h3 { font-size: 1.4rem; margin: 8px 0 10px; color: #fff; }
.proj p { color: #e7ebf3; font-size: .95rem; margin: 0; }
.proj .paper-count { display: inline-flex; gap: 7px; margin-top: 14px; font-family: var(--mono); font-size: .82rem; color: rgba(255,255,255,.9); }
.proj .paper-count b { color: #ff8bff; }
.proj-links { margin-top: 14px; display: flex; gap: 10px; flex-wrap: wrap; }
.proj-links a { font-family: var(--display); font-size: .8rem; font-weight: 600; color: #fff; background: var(--accent); padding: 7px 14px; border-radius: 100px; transition: background .2s, transform .2s; }
.proj-links a.outline { background: transparent; color: #fff; border: 1px solid var(--line-2); }
.proj-links a:hover { transform: translateY(-2px); }

.research-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px; background: var(--glow); border: 1px solid rgba(77,124,255,.3); color: var(--accent); }
.research-icon svg { width: 24px; height: 24px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.tag { font-family: var(--mono); font-size: .72rem; padding: 4px 10px; border-radius: 6px; background: var(--glow); color: #b9c8ff; border: 1px solid rgba(77,124,255,.3); }

/* --------------------------------------------------- PORTRAIT INTRO ------- */
.intro { display: grid; grid-template-columns: 280px 1fr; gap: 56px; align-items: center; }
.portrait-col { display: flex; flex-direction: column; align-items: center; text-align: center; }
.portrait-col .name { margin-top: 18px; }
.portrait-col .socials { justify-content: center; margin-top: 16px; }
.about-block .bio { margin-top: 32px; }
.about-block .section-tag { margin-bottom: 12px; }
.portrait-wrap { justify-self: center; position: relative; }
.portrait-wrap img { width: 264px; height: 264px; border-radius: 50%; object-fit: cover; border: 4px solid var(--surface); box-shadow: 0 0 0 1px var(--line-2); position: relative; z-index: 1; }
.portrait-wrap::before { content: ""; position: absolute; inset: -18px; border-radius: 50%; z-index: 0; background: radial-gradient(circle, rgba(77,124,255,.4), transparent 68%); filter: blur(14px); }
@keyframes spin { to { transform: rotate(360deg); } }
.intro .name { font-family: var(--signature); font-size: clamp(2.1rem,3.6vw,2.9rem); font-weight: 700; line-height: .95; margin-bottom: 6px; background: linear-gradient(100deg, var(--text) 45%, var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.about-block .section-title { font-size: clamp(1.35rem, 2.3vw, 1.85rem); }
.intro .role { color: var(--text); font-family: var(--mono); font-weight: 700; font-size: .95rem; letter-spacing: .03em; margin-bottom: 3px; }
.intro .based { font-family: var(--mono); font-weight: 400; text-transform: uppercase; font-size: .72rem; letter-spacing: .14em; color: var(--text-mute); margin-bottom: 18px; }
.intro .bio { color: var(--text-dim); font-size: 1.08rem; max-width: 56ch; }
.socials { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.socials a { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--text-dim); transition: color .2s, border-color .2s, transform .2s; }
.socials a:hover { color: #fff; border-color: var(--accent); transform: translateY(-3px); }
.socials svg { width: 19px; height: 19px; }

/* --------------------------------------------------------- GOLD AWARDS ---- */
.awards { position: relative; display: flex; flex-direction: column; gap: 7px; }
.awards::before { content: ""; position: absolute; left: 39px; top: 14px; bottom: 14px; width: 2px; background: linear-gradient(180deg, var(--gold), transparent); z-index: 0; }
/* neutral, desaturated map tiles (no API key needed) */
#confmap .leaflet-tile { filter: grayscale(1) brightness(1.04) contrast(.92); }
.leaflet-tooltip.conf-tip { background: var(--surface); color: var(--text); border: 1px solid var(--accent); border-radius: 7px; font-family: var(--mono); font-size: .72rem; font-weight: 600; letter-spacing: .01em; padding: 3px 9px; box-shadow: 0 6px 18px rgba(0,0,0,.2); white-space: nowrap; }
.leaflet-tooltip.conf-tip.leaflet-tooltip-left::before { border-left-color: var(--surface); }
.leaflet-tooltip.conf-tip.leaflet-tooltip-right::before { border-right-color: var(--surface); }
.award { position: relative; z-index: 1; display: flex; align-items: center; gap: 14px; padding: 9px 18px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); transition: border-color .2s, transform .2s; }
.award:hover { border-color: var(--gold); transform: translateX(3px); }
.award .medal { flex: 0 0 auto; position: relative; width: 44px; height: 44px; display: grid; place-items: center; color: var(--gold); transition: transform .25s var(--ease); }
.award:hover .medal { transform: scale(1.15); }
/* cursor-following specular glint on the metal */
.award .medal::after { content: ""; position: absolute; inset: -3px; pointer-events: none; background: radial-gradient(circle 12px at var(--gx,50%) var(--gy,50%), rgba(255,255,255,.95), rgba(255,255,255,0) 62%); mix-blend-mode: screen; opacity: 0; transition: opacity .25s var(--ease); }
.award:hover .medal::after { opacity: 1; }
.award .medal svg { width: 33px; height: 33px; fill: url(#goldGrad); stroke: url(#goldEdge); stroke-width: 1; stroke-linejoin: round; paint-order: stroke fill; }
.awards .award { --d: 0s; }
.awards .award:nth-child(2){--d:.06s} .awards .award:nth-child(3){--d:.12s} .awards .award:nth-child(4){--d:.18s}
.awards .award:nth-child(5){--d:.24s} .awards .award:nth-child(6){--d:.3s}  .awards .award:nth-child(7){--d:.36s}
.awards .award:nth-child(8){--d:.42s} .awards .award:nth-child(9){--d:.48s} .awards .award:nth-child(10){--d:.54s}
.award.reveal { transition-delay: var(--d); }
.award.in .medal svg { animation: medalIn .7s var(--ease) var(--d) both; }
@keyframes medalIn {
  0%   { opacity: 0; transform: scale(.5) rotate(-12deg); }
  60%  { opacity: 1; transform: scale(1.12) rotate(3deg); }
  100% { opacity: 1; transform: none; }
}
.award h4 { font-size: .92rem; margin: 0; line-height: 1.15; }
.award .aw-org { color: var(--text-mute); font-size: .78rem; font-family: var(--mono); }
.award .aw-org .yr { color: var(--gold); }

/* --------------------------------------------------------------- TIMELINE - */
.timeline { position: relative; padding-left: 2px; }
.timeline::before { content: ""; position: absolute; left: 15px; top: 6px; bottom: 6px; width: 1px; background: linear-gradient(180deg, var(--accent), transparent); }
.tl-row { position: relative; padding: 0 0 22px 46px; }
.tl-row::before { content: ""; position: absolute; left: 7px; top: 6px; width: 13px; height: 13px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); box-shadow: 0 0 0 4px var(--glow); box-sizing: content-box; }
.tl-period { font-family: var(--mono); font-size: .76rem; letter-spacing: .06em; color: var(--accent-2); margin-bottom: 10px; }
.tl-boxes { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px,1fr)); gap: 10px; }
.role-box { position: relative; padding: 13px 46px 13px 15px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); transition: border-color .2s, transform .2s, box-shadow .2s; }
.role-box:hover { border-color: var(--line-2); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.14); }
.rb-logo { position: absolute; top: 11px; right: 11px; width: 28px; height: 28px; border-radius: 7px; background: #fff; padding: 3px; object-fit: contain; box-shadow: 0 2px 8px rgba(0,0,0,.35); }
/* Newcastle crest has wide internal whitespace — crop it so the mark reads larger */
.rb-logo[src*="unnamed"] { padding: 1px; object-fit: cover; }
.rb-date { font-family: var(--mono); font-size: .72rem; color: var(--text-mute); margin-bottom: 3px; }
.role-box h4 { font-size: .98rem; line-height: 1.2; margin-bottom: 2px; }
.rb-org { color: var(--text-dim); font-size: .84rem; font-weight: 600; }
.rb-desc { color: var(--text-mute); font-size: .83rem; line-height: 1.45; margin-top: 5px; }

/* --------------------------------------------------------------- CHIPS ---- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { padding: 9px 16px; border-radius: 100px; font-size: .88rem; font-weight: 500; background: var(--surface); border: 1px solid var(--line); color: var(--text-dim); transition: color .2s, border-color .2s; }
.chip:hover { color: var(--text); border-color: var(--accent); }

/* --------------------------------------------------------------- TABLE ----- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; }
table.pubs { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 640px; }
table.pubs th, table.pubs td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); }
table.pubs th { font-family: var(--mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-mute); background: var(--surface); }
table.pubs tr:last-child td { border-bottom: none; }
table.pubs tr:hover td { background: rgba(77,124,255,.06); }
table.pubs td a { color: var(--text); font-weight: 500; }
table.pubs td a:hover { color: var(--accent); }
table.pubs .c-cite, table.pubs .c-year { font-family: var(--mono); color: var(--accent-2); text-align: center; white-space: nowrap; }

/* --------------------------------------------------------- PEOPLE --------- */
.people { display: grid; grid-template-columns: repeat(auto-fit, 244px); justify-content: center; gap: 38px 24px; }
.person { display: flex; flex-direction: column; align-items: center; text-align: center; }
.person img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin: 0 0 14px; border: 2px solid var(--line-2); }
.person h4 { font-family: var(--display); font-weight: 700; font-size: 1.14rem; line-height: 1.15; letter-spacing: 0; white-space: nowrap; margin-bottom: 9px; text-transform: none; }
.person .p-rel { font-family: var(--mono); font-weight: 700; font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); background: var(--glow); border: 1px solid rgba(77,124,255,.3); padding: 4px 11px; border-radius: 100px; margin-bottom: 9px; }
.person .p-inst { color: var(--text-mute); font-size: .8rem; font-family: var(--mono); line-height: 1.4; }

/* --------------------------------------------------------------- FOOTER --- */
.footer { border-top: 1px solid var(--line); padding: 40px 0; }
.footer .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer .f-left { color: var(--text-mute); font-family: var(--mono); font-size: .8rem; letter-spacing: .04em; }
.footer .f-links { display: flex; gap: 20px; }
.footer .f-links a { color: var(--text-dim); font-size: .84rem; }
.footer .f-links a:hover { color: var(--accent); }

/* --------------------------------------------------------- REVEAL --------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.center { text-align: center; }
.mt-40 { margin-top: 44px; }
.divider-note { text-align: center; color: var(--text-mute); font-style: italic; font-size: .95rem; margin: 0 auto; max-width: 60ch; }

/* --------------------------------------------------------- RESPONSIVE ----- */
@media (max-width: 940px) {
  .intro { grid-template-columns: 1fr; text-align: center; gap: 30px; }
  .intro .bio { margin: 26px auto 0; } .socials { justify-content: center; }
  .grid-3 { grid-template-columns: repeat(2,1fr); }
  .proj-grid, .awards { grid-template-columns: 1fr; }
  .work-row { grid-template-columns: 1fr; gap: 26px; }
  .work-row:nth-child(even) .work-media { order: 0; }
  .statement { grid-template-columns: 1fr; gap: 16px; }
  .series-block { grid-template-columns: 1fr; gap: 24px; }
  .carousel-nav { position: static; justify-content: flex-end; margin-bottom: 12px; }
  .section-head { grid-template-columns: 1fr; gap: 10px; }
  .appr-row { grid-template-columns: 60px 1fr; }
  .appr-tag { display: none; }
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links { position: fixed; top: var(--nav-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 4px; padding: 16px 20px 24px; background: var(--nav-solid); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); transform: translateY(-130%); transition: transform .35s var(--ease); pointer-events: none; }
  .nav-links.open { transform: translateY(0); pointer-events: auto; }
  .nav-links a { padding: 14px 16px; font-size: .95rem; }
  .pad { padding: 72px 0; }
  .stat-band { grid-template-columns: repeat(2,1fr); }
  .stat-band .stat:nth-child(2) { border-right: none; }
  .stat-band .stat:nth-child(1), .stat-band .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
  .cursor-ring, .cursor-dot { display: none; }
}
@media (max-width: 540px) {
  .container { padding: 0 20px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .portrait-wrap img { width: 190px; height: 190px; }
  .brand .brand-sub { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
}
