/* ============================================================
   Dhruv Deva — Portfolio Design System v2
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@500;600;700&family=Instrument+Serif:ital@0;1&family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@300;400;500&display=swap');

:root {
  --bg: #0c0b09;
  --bg-elev: #15130f;
  --bg-card: #1a1714;
  --line: rgba(255, 240, 220, 0.08);
  --line-strong: rgba(255, 240, 220, 0.18);
  --ink: #f4ebd9;
  --ink-dim: #a89e8b;
  --ink-mute: #6a6358;
  --accent: #ff8a5b;
  --accent-soft: #ffb89a;
  --accent-deep: #e56a3a;

  --font-display: 'Instrument Serif', 'Times New Roman', serif;
  --font-script: 'Caveat', 'Instrument Serif', cursive;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;
  --s-9: 96px; --s-10: 128px; --s-11: 160px; --s-12: 200px;

  --container: 1440px;
  --gutter: 32px;
  --radius-sm: 6px;
  --radius: 14px;
  --radius-lg: 24px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  cursor: none;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

body::after {
  content: '';
  position: fixed;
  top: -300px;
  right: -200px;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(255, 138, 91, 0.08), transparent 70%);
  pointer-events: none;
  z-index: 0;
  filter: blur(60px);
}

.cursor {
  position: fixed; top: 0; left: 0;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--ink);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  transition: width 0.35s var(--ease), height 0.35s var(--ease), background 0.35s var(--ease);
}
.cursor.hover { width: 64px; height: 64px; background: var(--accent); mix-blend-mode: normal; }
.cursor.hover.label::after {
  content: attr(data-label);
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--bg);
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-weight: 500;
}
@media (hover: none), (pointer: coarse) { body { cursor: auto; } .cursor { display: none; } }

::selection { background: var(--accent); color: var(--bg); }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--ink-mute); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); position: relative; z-index: 2; }

/* NAV */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px var(--gutter);
  display: flex; justify-content: space-between; align-items: center;
  mix-blend-mode: difference;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
/* Glow line — separate from nav (no mix-blend-mode interference) */
.nav-glow {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  height: 1px;
  z-index: 99;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 138, 91, 0.0) 15%,
    rgba(255, 138, 91, 0.5) 50%,
    rgba(255, 138, 91, 0.0) 85%,
    transparent 100%
  );
  pointer-events: none;
}
.nav-glow::after {
  content: '';
  position: absolute;
  inset: -3px 0;
  background: linear-gradient(
    90deg,
    transparent 20%,
    rgba(255, 138, 91, 0.18) 50%,
    transparent 80%
  );
  filter: blur(6px);
}
.nav__brand { color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 10px; }
.nav__brand-mark {
  display: inline-block; width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2.4s ease-in-out infinite;
  box-shadow: 0 0 12px var(--accent);
}
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.55; transform: scale(0.8); } }
.nav__links { display: flex; gap: 28px; }
.nav__links a { color: var(--ink); text-decoration: none; position: relative; transition: color 0.3s var(--ease); }
.nav__links a::after {
  content: ''; position: absolute; left: 0; bottom: -5px;
  height: 1px; width: 0; background: var(--accent);
  transition: width 0.4s var(--ease);
}
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { width: 100%; }
.nav__meta { display: flex; gap: 20px; align-items: center; color: var(--ink-dim); }
.nav__meta .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); display: inline-block; margin-right: 8px; box-shadow: 0 0 8px var(--accent); }
@media (max-width: 720px) { .nav__meta { display: none; } .nav__links { gap: 18px; } }

/* TYPE */
.display { font-family: var(--font-display); font-weight: 400; line-height: 0.92; letter-spacing: -0.02em; font-size: clamp(60px, 12vw, 200px); }
.display--md { font-family: var(--font-display); font-weight: 400; line-height: 0.98; letter-spacing: -0.018em; font-size: clamp(36px, 4.5vw, 64px); }
.display--sm { font-family: var(--font-display); font-weight: 400; line-height: 1; letter-spacing: -0.01em; font-size: clamp(28px, 4vw, 48px); }
.italic { font-family: var(--font-script); font-style: normal; font-weight: 600; letter-spacing: -0.01em; }
.accent { color: var(--accent); }

/* Script accent — for italicized words inside display headlines */
.script {
  font-family: var(--font-script);
  font-weight: 600;
  font-style: normal;
  letter-spacing: -0.005em;
  display: inline-block;
  line-height: 0.85;
  vertical-align: -0.02em;
}

.eyebrow { font-family: var(--font-mono); font-size: 11px; font-weight: 400; text-transform: uppercase; letter-spacing: 0.16em; color: var(--ink-dim); display: inline-flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ''; width: 24px; height: 1px; background: var(--accent); }
.lead { font-size: clamp(18px, 1.7vw, 22px); line-height: 1.5; color: var(--ink); max-width: 60ch; }
.body { font-size: 16px; line-height: 1.7; color: var(--ink-dim); max-width: 65ch; }

/* SHIMMER */
.shimmer {
  background: linear-gradient(90deg, var(--ink) 0%, var(--ink) 40%, var(--accent-soft) 50%, var(--ink) 60%, var(--ink) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 6s linear infinite;
}
@keyframes shimmer { to { background-position: 200% center; } }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: color 0.4s var(--ease), border-color 0.4s var(--ease);
  isolation: isolate;
}
.btn::before {
  content: ''; position: absolute; inset: 0;
  background: var(--accent);
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform 0.5s var(--ease);
  z-index: -1;
}
.btn:hover { color: var(--bg); border-color: var(--accent); }
.btn:hover::before { transform: translateY(0); }
.btn--solid { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.btn--solid::before { background: var(--ink); }
.btn--solid:hover { color: var(--bg); border-color: var(--ink); }
.btn .arrow { transition: transform 0.4s var(--ease); }
.btn:hover .arrow { transform: translate(4px, -4px); }

/* FOOTER */
.footer { border-top: 1px solid var(--line); padding: var(--s-9) 0 var(--s-5); margin-top: var(--s-11); position: relative; z-index: 2; }
.footer__big {
  font-family: var(--font-display);
  font-size: clamp(64px, 11vw, 168px);
  line-height: 0.92;
  letter-spacing: -0.03em;
  margin-bottom: var(--s-8);
  display: flex; justify-content: space-between; align-items: baseline;
  flex-wrap: wrap; gap: 20px;
}
.footer__big .accent {
  color: var(--accent);
  font-family: var(--font-script);
  font-style: normal;
  font-weight: 600;
  letter-spacing: -0.005em;
  display: inline-block;
  line-height: 0.85;
  vertical-align: -0.04em;
}
.footer__big .star { display: inline-block; animation: spin 18s linear infinite; color: var(--accent); }
@keyframes spin { to { transform: rotate(360deg); } }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--s-6); padding: var(--s-7) 0; border-top: 1px solid var(--line); }
.footer__col h4 { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--ink-mute); margin-bottom: var(--s-4); font-weight: 400; }
.footer__col a, .footer__col p { display: block; color: var(--ink); text-decoration: none; font-size: 15px; margin-bottom: 8px; transition: color 0.3s var(--ease), transform 0.3s var(--ease); }
.footer__col a:hover { color: var(--accent); transform: translateX(4px); }
.footer__bar { border-top: 1px solid var(--line); padding-top: var(--s-5); display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-mute); flex-wrap: wrap; gap: 12px; }
@media (max-width: 800px) { .footer__grid { grid-template-columns: 1fr 1fr; } }

/* REVEAL */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { opacity: 0; transform: translateY(30px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal-stagger.is-visible > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.24s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.32s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.40s; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > * { opacity: 1 !important; transform: none !important; transition: none !important; }
  .shimmer { animation: none !important; -webkit-text-fill-color: var(--ink); color: var(--ink); }
}

/* MARQUEE */
.marquee { overflow: hidden; white-space: nowrap; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 28px 0; margin: var(--s-9) 0; }
.marquee__track { display: inline-flex; gap: var(--s-7); align-items: center; animation: marquee 35s linear infinite; font-family: var(--font-display); font-size: clamp(40px, 6vw, 80px); line-height: 1; }
.marquee__track .star {
  color: var(--accent);
  font-family: var(--font-script);
  font-style: normal;
  font-size: 0.7em;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* CASE STUDY */
.case-hero { padding: 180px 0 60px; position: relative; z-index: 2; }
.case-hero__meta { display: flex; justify-content: space-between; margin-bottom: var(--s-7); font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-dim); flex-wrap: wrap; gap: 12px; }
.case-hero__title { font-family: var(--font-display); font-size: clamp(72px, 14vw, 200px); line-height: 0.88; letter-spacing: -0.03em; margin-bottom: var(--s-7); }
.case-hero__title .italic {
  color: var(--accent);
  font-family: var(--font-script);
  font-style: normal;
  font-weight: 600;
  letter-spacing: -0.005em;
  display: inline-block;
  line-height: 0.85;
  vertical-align: -0.04em;
}
.case-hero__sub { display: grid; grid-template-columns: 1fr auto; gap: var(--s-7); align-items: end; margin-bottom: var(--s-7); }
@media (max-width: 720px) { .case-hero__sub { grid-template-columns: 1fr; } }

.cover { width: 100%; border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-card); position: relative; }
.cover img { width: 100%; display: block; }

.case-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-6); padding: var(--s-8) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: var(--s-8) 0 var(--s-9); }
.case-meta__item h5 { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink-mute); font-weight: 400; margin-bottom: var(--s-4); }
.case-meta__item p { font-size: 15px; color: var(--ink); line-height: 1.55; }
@media (max-width: 800px) { .case-meta { grid-template-columns: 1fr 1fr; gap: var(--s-5); } }

.section { padding: var(--s-11) 0; position: relative; z-index: 2; }
.section--tight { padding: var(--s-9) 0; }
.section--mid { padding: var(--s-10) 0; }

.section__head { display: grid; grid-template-columns: 1fr 2fr; gap: var(--s-7); margin-bottom: var(--s-8); align-items: start; }
.section__head .eyebrow { margin-bottom: var(--s-4); }
.section__head h2, .section__head h3 { margin-bottom: var(--s-4); }
@media (max-width: 800px) { .section__head { grid-template-columns: 1fr; } }

.figure { border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-card); border: 1px solid var(--line); position: relative; transition: transform 0.6s var(--ease), border-color 0.4s var(--ease); }
.figure:hover { border-color: var(--line-strong); }
.figure__media { position: relative; overflow: hidden; }
.figure__media img, .figure__media video { width: 100%; display: block; transition: transform 1.2s var(--ease); }
.figure:hover .figure__media img, .figure:hover .figure__media video { transform: scale(1.03); }
.figure__media::before {
  content: ''; position: absolute; top: 0; bottom: 0; left: -100%; width: 60%;
  background: linear-gradient(100deg, transparent 0%, rgba(244, 235, 217, 0.08) 50%, transparent 100%);
  transition: left 0.9s var(--ease);
  pointer-events: none; z-index: 2;
}
.figure:hover .figure__media::before { left: 130%; }
.figure__caption { display: flex; justify-content: space-between; padding: var(--s-4) var(--s-5); font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-mute); border-top: 1px solid var(--line); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-6); }
.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6); }
@media (max-width: 900px) { .two-col, .three-col { grid-template-columns: 1fr; } }

.bullets { display: grid; gap: 0; list-style: none; margin-top: var(--s-5); }
.bullets li { padding: var(--s-5) 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 60px 1fr; gap: var(--s-4); font-size: 17px; color: var(--ink); line-height: 1.55; transition: padding-left 0.4s var(--ease); }
.bullets li:hover { padding-left: var(--s-3); }
.bullets li:last-child { border-bottom: 1px solid var(--line); }
.bullets li .num { font-family: var(--font-mono); font-size: 11px; color: var(--accent); letter-spacing: 0.08em; padding-top: 6px; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-5); padding: var(--s-7) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat__num { font-family: var(--font-display); font-size: clamp(48px, 5vw, 80px); line-height: 1; letter-spacing: -0.02em; margin-bottom: var(--s-3); }
.stat__num .accent {
  color: var(--accent);
  font-family: var(--font-script);
  font-style: normal;
  font-weight: 600;
}
.stat__label { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-dim); }
@media (max-width: 800px) { .stat-grid { grid-template-columns: 1fr 1fr; } }

.phase-tag { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent); padding: 7px 14px; border: 1px solid var(--accent); border-radius: 999px; margin-bottom: var(--s-5); background: rgba(255, 138, 91, 0.05); }

.next-up { padding: var(--s-10) 0; border-top: 1px solid var(--line); text-align: center; }
.next-up .eyebrow { margin-bottom: var(--s-4); justify-content: center; display: inline-flex; }
.next-up h2 { font-family: var(--font-display); font-size: clamp(60px, 10vw, 160px); line-height: 0.9; letter-spacing: -0.02em; margin-bottom: var(--s-6); }
.next-up a { color: var(--ink); text-decoration: none; display: inline-block; }
.next-up a:hover h2 .accent {
  font-family: var(--font-script);
  font-style: normal;
  font-weight: 600;
  color: var(--accent);
}
.next-up h2 .accent { transition: color 0.4s var(--ease), font-family 0.4s var(--ease); }

/* HOMEPAGE — tightened type scale (calmer scroll) */
.home-hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: var(--s-7);
  align-items: center;
  padding: 120px var(--gutter) 60px;
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
}
@media (max-width: 1000px) { .home-hero { grid-template-columns: 1fr; min-height: auto; padding: 140px var(--gutter) 40px; } }

.home-hero__content { display: flex; flex-direction: column; }
.home-hero__top { display: flex; justify-content: space-between; margin-bottom: var(--s-7); font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-dim); flex-wrap: wrap; gap: 12px; }
.home-hero__top .live { color: var(--accent); }

/* Tightened: hero is the only XXL moment on this side of the page */
.home-hero__title { font-family: var(--font-display); font-size: clamp(64px, 9vw, 148px); line-height: 0.92; letter-spacing: -0.025em; margin-bottom: var(--s-6); }
.home-hero__title .italic-accent {
  color: var(--accent);
  font-family: var(--font-script);
  font-style: normal;
  font-weight: 600;
  letter-spacing: -0.005em;
  display: inline-block;
  line-height: 0.85;
  vertical-align: -0.04em;
}

.home-hero__sub { display: flex; flex-direction: column; gap: var(--s-5); margin-top: var(--s-5); }
.home-hero__sub p { font-size: clamp(16px, 1.2vw, 18px); line-height: 1.55; color: var(--ink); max-width: 46ch; }

.home-hero__previously { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 16px; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-dim); margin-top: var(--s-5); }
.home-hero__previously a {
  font-family: var(--font-script);
  font-weight: 600;
  font-size: clamp(20px, 1.8vw, 28px);
  text-transform: none;
  letter-spacing: -0.005em;
  color: var(--ink);
  text-decoration: none;
  position: relative;
  transition: color 0.3s var(--ease);
}
.home-hero__previously a:hover { color: var(--accent); }
.home-hero__previously a::after { content: '↗'; font-style: normal; margin-left: 4px; display: inline-block; transition: transform 0.3s var(--ease); }
.home-hero__previously a:hover::after { transform: translate(2px, -2px); }

/* Hero filmstrip — auto-scrolling vertical project preview */
.home-hero__visual {
  position: relative;
  height: clamp(420px, 70vh, 640px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--bg-elev);
  overflow: hidden;
  isolation: isolate;
}
.home-hero__visual::before,
.home-hero__visual::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 80px;
  z-index: 3;
  pointer-events: none;
}
.home-hero__visual::before {
  top: 0;
  background: linear-gradient(180deg, var(--bg-elev), transparent);
}
.home-hero__visual::after {
  bottom: 0;
  background: linear-gradient(0deg, var(--bg-elev), transparent);
}

.filmstrip {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  padding: var(--s-5);
  animation: filmstrip-scroll 32s linear infinite;
}
.home-hero__visual:hover .filmstrip { animation-play-state: paused; }
@keyframes filmstrip-scroll {
  to { transform: translateY(-50%); }
}

.filmstrip__item {
  flex: 0 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--line);
  background: var(--bg-card);
  text-decoration: none;
  color: var(--ink);
  display: block;
  transition: border-color 0.4s var(--ease);
}
.filmstrip__item:hover { border-color: var(--accent); }
.filmstrip__item img {
  width: 100%;
  display: block;
  aspect-ratio: 16/10;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.filmstrip__item:hover img { transform: scale(1.04); }
.filmstrip__item-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: var(--s-3) var(--s-4);
  background: linear-gradient(0deg, rgba(12, 11, 9, 0.92), transparent);
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.filmstrip__item-label .accent { color: var(--accent); }

.home-hero__visual-meta {
  position: absolute;
  top: var(--s-4); left: var(--s-4); right: var(--s-4);
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--ink-mute);
  z-index: 4;
  pointer-events: none;
}
.home-hero__visual-caption {
  position: absolute;
  bottom: var(--s-4); left: var(--s-4); right: var(--s-4);
  font-family: var(--font-mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--ink-mute);
  z-index: 4;
  display: flex; justify-content: space-between;
  pointer-events: none;
}
.home-hero__visual-caption .accent { color: var(--accent); }
.home-hero__visual-caption .live-dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  margin-right: 6px;
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 2.4s ease-in-out infinite;
}

/* Carousel head — bumped down to L tier so it sits in the same family as other section heads */
.carousel-wrap { position: relative; margin-top: var(--s-9); }
.carousel-head { display: flex; justify-content: space-between; align-items: end; margin-bottom: var(--s-6); padding: 0 var(--gutter); flex-wrap: wrap; gap: 16px; }
.carousel-head h2 { font-family: var(--font-display); font-size: clamp(36px, 4.5vw, 64px); line-height: 0.98; letter-spacing: -0.018em; }
.carousel-head h2 .accent {
  color: var(--accent);
  font-family: var(--font-script);
  font-style: normal;
  font-weight: 600;
  letter-spacing: -0.005em;
  display: inline-block;
  line-height: 0.85;
  vertical-align: -0.04em;
}
.carousel-head .hint { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink-mute); display: flex; align-items: center; gap: 10px; }
.carousel-head .hint::before { content: ''; display: inline-block; width: 30px; height: 1px; background: var(--accent); }

.carousel { display: flex; gap: var(--s-5); overflow-x: auto; overflow-y: hidden; padding: 0 var(--gutter) var(--s-7); scroll-snap-type: x mandatory; scrollbar-width: none; }
.carousel::-webkit-scrollbar { display: none; }
.carousel.dragging { scroll-snap-type: none; cursor: grabbing; }

.project-card { flex: 0 0 min(680px, 80vw); scroll-snap-align: start; border-radius: var(--radius-lg); background: var(--bg-card); border: 1px solid var(--line); overflow: hidden; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; transition: transform 0.6s var(--ease), border-color 0.4s var(--ease); position: relative; }
.project-card:hover { border-color: var(--line-strong); }
.project-card__media { aspect-ratio: 4/3; overflow: hidden; position: relative; background: var(--bg-elev); }
.project-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.project-card:hover .project-card__media img { transform: scale(1.05); }
.project-card__media::after { content: ''; position: absolute; top: 0; bottom: 0; left: -100%; width: 60%; background: linear-gradient(100deg, transparent, rgba(244, 235, 217, 0.1), transparent); transition: left 0.9s var(--ease); pointer-events: none; }
.project-card:hover .project-card__media::after { left: 130%; }

.project-card__body { padding: var(--s-6); display: flex; flex-direction: column; gap: var(--s-4); flex: 1; }
.project-card__title { font-family: var(--font-display); font-size: clamp(32px, 3.4vw, 44px); line-height: 1; letter-spacing: -0.02em; margin-bottom: 8px; }
.project-card__meta { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3) var(--s-5); font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-dim); }
.project-card__meta strong { color: var(--ink); font-weight: 400; display: block; margin-top: 2px; font-family: var(--font-sans); text-transform: none; letter-spacing: 0; font-size: 13px; }
.project-card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--s-3); }
.project-card__tags span { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-dim); padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; }
.project-card__cta { margin-top: auto; padding-top: var(--s-5); display: flex; justify-content: space-between; align-items: center; font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); }
.project-card__cta .arrow { transition: transform 0.4s var(--ease); }
.project-card:hover .project-card__cta .arrow { transform: translate(6px, -6px); }

.about-snippet { padding: var(--s-11) 0; display: grid; grid-template-columns: 1fr 2fr; gap: var(--s-8); align-items: start; }
@media (max-width: 800px) { .about-snippet { grid-template-columns: 1fr; } }

/* PROJECTS */
.projects-grid { display: grid; grid-template-columns: 1fr; gap: var(--s-7); margin-top: var(--s-8); }
.project-row { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--s-7); border-top: 1px solid var(--line); padding-top: var(--s-7); text-decoration: none; color: var(--ink); transition: padding-left 0.5s var(--ease); align-items: start; }
.project-row:hover { padding-left: var(--s-4); }
.project-row:last-child { border-bottom: 1px solid var(--line); padding-bottom: var(--s-7); }
.project-row__media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16/10; background: var(--bg-card); position: relative; }
.project-row__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.project-row:hover .project-row__media img { transform: scale(1.04); }
.project-row__info { display: flex; flex-direction: column; gap: var(--s-4); padding-top: var(--s-3); }
.project-row__title { font-family: var(--font-display); font-size: clamp(48px, 6vw, 88px); line-height: 0.95; letter-spacing: -0.02em; }
.project-row__title .italic {
  color: var(--accent);
  font-family: var(--font-script);
  font-style: normal;
  font-weight: 600;
  letter-spacing: -0.005em;
  display: inline-block;
  line-height: 0.85;
  vertical-align: -0.04em;
}
.project-row__desc { font-size: 16px; color: var(--ink-dim); line-height: 1.6; max-width: 50ch; }
.project-row__meta { display: flex; gap: var(--s-5); font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-mute); margin-top: var(--s-3); flex-wrap: wrap; }
.project-row__cta { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); margin-top: var(--s-3); display: inline-flex; align-items: center; gap: 8px; }
.project-row__cta .arrow { transition: transform 0.4s var(--ease); }
.project-row:hover .project-row__cta .arrow { transform: translate(4px, -4px); }
@media (max-width: 800px) { .project-row { grid-template-columns: 1fr; } }

/* ABOUT */
.about-hero { padding: 180px 0 var(--s-9); }
.about-hero__title { font-family: var(--font-display); font-size: clamp(72px, 12vw, 180px); line-height: 0.88; letter-spacing: -0.03em; margin-bottom: var(--s-6); }
.about-hero__title .italic {
  color: var(--accent);
  font-family: var(--font-script);
  font-style: normal;
  font-weight: 600;
  letter-spacing: -0.005em;
  display: inline-block;
  line-height: 0.85;
  vertical-align: -0.04em;
}
.about-block { display: grid; grid-template-columns: 1fr 2fr; gap: var(--s-7); padding: var(--s-9) 0; border-top: 1px solid var(--line); align-items: start; }
.about-block h3 { font-family: var(--font-display); font-size: clamp(28px, 3.5vw, 44px); line-height: 1; letter-spacing: -0.01em; }
.about-block .body { font-size: 17px; line-height: 1.65; color: var(--ink); max-width: 60ch; }
.about-block .body + .body { margin-top: var(--s-4); }
@media (max-width: 800px) { .about-block { grid-template-columns: 1fr; } }
.about-images { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); padding: var(--s-7) 0; }
.about-images .figure { aspect-ratio: 4/5; }
.about-images .figure img { width: 100%; height: 100%; object-fit: cover; }
.about-images .figure:nth-child(1) { transform: translateY(40px); }
@media (max-width: 700px) { .about-images { grid-template-columns: 1fr; } .about-images .figure:nth-child(1) { transform: none; } }

.experience-block { padding: var(--s-9) 0; border-top: 1px solid var(--line); }
.experience-block .eyebrow { margin-bottom: var(--s-7); }
.experience-item { display: grid; grid-template-columns: 200px 1fr 200px; gap: var(--s-6); padding: var(--s-6) 0; border-top: 1px solid var(--line); align-items: start; transition: padding-left 0.4s var(--ease); }
.experience-item:hover { padding-left: var(--s-3); }
.experience-item:last-child { border-bottom: 1px solid var(--line); }
.experience-item h4 { font-family: var(--font-display); font-size: clamp(24px, 2.5vw, 32px); line-height: 1.1; letter-spacing: -0.01em; }
.experience-item .role { font-size: 14px; color: var(--ink-dim); margin-top: 4px; }
.experience-item .desc { font-size: 15px; color: var(--ink-dim); line-height: 1.6; max-width: 55ch; }
.experience-item .date { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-mute); text-align: right; }
@media (max-width: 800px) { .experience-item { grid-template-columns: 1fr; gap: var(--s-3); } .experience-item .date { text-align: left; } }

/* HIGHLIGHTS */
.highlights { display: grid; grid-template-columns: 1.2fr 0.8fr 1fr; gap: var(--s-5); margin-top: var(--s-7); grid-auto-rows: minmax(280px, auto); }
.highlights .figure { height: 100%; }
.highlights .figure__media { height: 100%; }
.highlights .figure__media img, .highlights .figure__media video { height: 100%; object-fit: cover; }
.highlights .h-tall { grid-row: span 2; }
@media (max-width: 900px) { .highlights { grid-template-columns: 1fr; } .highlights .h-tall { grid-row: auto; } }

/* BEFORE / AFTER SLIDER */
.compare {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--line);
  user-select: none;
  cursor: ew-resize;
  aspect-ratio: 16/10;
}
.compare__layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.compare__layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  -webkit-user-drag: none;
}
.compare__layer--after {
  width: 50%;
  border-right: 1px solid var(--accent);
}
.compare__layer--after img {
  width: calc(100% / 0.5);
  max-width: none;
}
.compare__handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--accent);
  transform: translateX(-50%);
  pointer-events: none;
  box-shadow: 0 0 12px rgba(255, 138, 91, 0.4);
}
.compare__handle::before {
  content: '⇆';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  box-shadow: 0 0 0 4px rgba(255, 138, 91, 0.25), 0 4px 14px rgba(0,0,0,0.3);
}
.compare__label {
  position: absolute;
  top: var(--s-4);
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink);
  padding: 6px 12px;
  background: rgba(12, 11, 9, 0.7);
  backdrop-filter: blur(6px);
  border-radius: 999px;
  z-index: 4;
}
.compare__label--before { left: var(--s-4); }
.compare__label--after { right: var(--s-4); color: var(--accent); }

/* FIGMA EMBED CARD */
.figma-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: var(--s-6);
  padding: var(--s-6);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(255, 138, 91, 0.04), rgba(21, 19, 15, 0.4));
  margin-top: var(--s-7);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.4s var(--ease), transform 0.5s var(--ease);
}
.figma-card:hover { border-color: var(--accent); }
.figma-card::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: -100%;
  width: 60%;
  background: linear-gradient(100deg, transparent, rgba(255, 138, 91, 0.12), transparent);
  transition: left 0.9s var(--ease);
  pointer-events: none;
}
.figma-card:hover::after { left: 130%; }
.figma-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--accent);
  flex-shrink: 0;
  border: 1px solid var(--line);
}
.figma-card__body { flex: 1; }
.figma-card__top { display: flex; align-items: center; gap: var(--s-4); margin-bottom: 4px; }
.figma-card__eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
}
.figma-card__title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.5vw, 30px);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.figma-card__desc {
  font-size: 14px;
  color: var(--ink-dim);
  margin-top: 4px;
}
.figma-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  white-space: nowrap;
}
.figma-card__cta .arrow { transition: transform 0.4s var(--ease); }
.figma-card:hover .figma-card__cta .arrow { transform: translate(4px, -4px); }
@media (max-width: 700px) {
  .figma-card { grid-template-columns: 1fr; }
}

/* CASE STUDY VARIED LAYOUTS */
.layout-asym {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--s-5);
  align-items: start;
}
.layout-asym--reverse { grid-template-columns: 1.4fr 1fr; }
@media (max-width: 800px) { .layout-asym, .layout-asym--reverse { grid-template-columns: 1fr; } }

.layout-mosaic {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--s-4);
  margin-top: var(--s-6);
}
.layout-mosaic > .figure:nth-child(1) { grid-column: span 4; grid-row: span 2; }
.layout-mosaic > .figure:nth-child(2) { grid-column: span 2; }
.layout-mosaic > .figure:nth-child(3) { grid-column: span 2; }
.layout-mosaic > .figure:nth-child(4) { grid-column: span 3; }
.layout-mosaic > .figure:nth-child(5) { grid-column: span 3; }
@media (max-width: 800px) {
  .layout-mosaic { grid-template-columns: 1fr; }
  .layout-mosaic > .figure { grid-column: 1 / -1 !important; grid-row: auto !important; }
}

.layout-pull {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--s-7);
  align-items: start;
  padding: var(--s-7) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.layout-pull h4 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1;
  letter-spacing: -0.01em;
  position: sticky;
  top: 100px;
}
.layout-pull h4 .accent {
  font-family: var(--font-script);
  font-weight: 600;
  color: var(--accent);
}
@media (max-width: 800px) {
  .layout-pull { grid-template-columns: 1fr; }
  .layout-pull h4 { position: static; }
}

/* Section number marker — replaces "Phase 01 / Research" repetition */
.section-marker {
  display: flex;
  align-items: baseline;
  gap: var(--s-4);
  margin-bottom: var(--s-5);
}
.section-marker__num {
  font-family: var(--font-display);
  font-size: clamp(48px, 5vw, 72px);
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--accent);
  font-weight: 400;
}
.section-marker__num .script {
  font-family: var(--font-script);
  font-weight: 600;
}
.section-marker__label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-dim);
  padding-bottom: 8px;
}

/* ============================================================
   v2.1 ADDITIONS — theme toggle, figma embed, sticky figma, nav externals
   ============================================================ */

/* THEME TRANSITION */
html { transition: background-color 0.5s var(--ease), color 0.5s var(--ease); }
body { transition: background-color 0.5s var(--ease), color 0.5s var(--ease); }

/* LIGHT THEME OVERRIDES */
[data-theme="light"] {
  --bg: #f5efe4;
  --bg-elev: #ede5d4;
  --bg-card: #faf5e9;
  --line: rgba(28, 24, 18, 0.1);
  --line-strong: rgba(28, 24, 18, 0.22);
  --ink: #1c1812;
  --ink-dim: #5a5347;
  --ink-mute: #8c8676;
  --accent: #d65a2b;
  --accent-soft: #e88660;
  --accent-deep: #b3471f;
}
[data-theme="light"] body::before { opacity: 0.03; }
[data-theme="light"] body::after { background: radial-gradient(circle, rgba(214, 90, 43, 0.08), transparent 70%); }
[data-theme="light"] .nav { mix-blend-mode: normal; background: rgba(245, 239, 228, 0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
[data-theme="dark"] .nav, .nav { /* keep difference blend on dark */ }

/* NAV — external links (LinkedIn / Résumé) on the right */
.nav__external {
  display: flex; align-items: center; gap: 18px;
  color: var(--ink-dim);
}
.nav__external a {
  color: var(--ink-dim); text-decoration: none;
  display: inline-flex; align-items: center; gap: 4px;
  transition: color 0.3s var(--ease);
}
.nav__external a:hover { color: var(--accent); }
.nav__external .arrow { font-size: 10px; }
.nav__external .divider {
  width: 1px; height: 14px; background: var(--line-strong); display: inline-block;
}

/* THEME TOGGLE BUTTON */
.theme-toggle {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: none; padding: 0;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.4s var(--ease);
  margin-left: 8px;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); transform: rotate(20deg); }
.theme-toggle svg { width: 14px; height: 14px; }
.theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }

@media (max-width: 900px) {
  .nav__external .nav__external-resume { display: none; }
}
@media (max-width: 720px) {
  .nav__external { gap: 12px; }
  .nav__external .divider { display: none; }
}
@media (max-width: 560px) {
  .nav__external { display: none; }
}

/* FIGMA EMBED — inline iframe */
.figma-embed {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--bg-card);
  margin-top: var(--s-7);
  position: relative;
}
.figma-embed iframe {
  width: 100%; height: 100%;
  border: none; display: block;
}
.figma-embed__caption {
  display: flex; justify-content: space-between; align-items: center;
  padding: var(--s-3) var(--s-5);
  font-family: var(--font-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--ink-mute); border-top: 1px solid var(--line);
  background: var(--bg-card);
}
.figma-embed__caption a {
  color: var(--accent); text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
}
.figma-embed__caption a:hover { text-decoration: underline; }

/* STICKY FIGMA BUTTON */
.figma-sticky {
  position: fixed;
  bottom: var(--s-5); right: var(--s-5);
  z-index: 90;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  background: var(--accent); color: var(--bg);
  border-radius: 999px;
  font-family: var(--font-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.1em;
  text-decoration: none; font-weight: 500;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25), 0 0 0 4px var(--bg);
  cursor: none;
  transition: transform 0.4s var(--ease), background 0.3s var(--ease);
  opacity: 0; transform: translateY(20px); pointer-events: none;
}
.figma-sticky.is-visible {
  opacity: 1; transform: translateY(0); pointer-events: auto;
}
.figma-sticky:hover { transform: translateY(-3px); background: var(--accent-soft); }
.figma-sticky svg { width: 13px; height: 13px; }

@media (max-width: 720px) {
  .figma-sticky {
    bottom: var(--s-4); right: var(--s-4);
    padding: 12px 18px; font-size: 10px;
  }
}

/* v2.2 — homepage about-snippet with photo */
.about-snippet--photo {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: var(--s-8);
  align-items: center;
  padding: var(--s-11) 0;
}
.about-snippet--photo .about-snippet__photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3/4;
  border: 1px solid var(--line);
  background: var(--bg-card);
}
.about-snippet--photo .about-snippet__photo img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 1.2s var(--ease);
}
.about-snippet--photo .about-snippet__photo:hover img { transform: scale(1.04); }
.about-snippet--photo .about-snippet__content {
  display: flex; flex-direction: column; gap: var(--s-4);
}
.about-snippet--photo .about-snippet__content .body {
  font-size: 18px; max-width: 60ch;
}
@media (max-width: 800px) {
  .about-snippet--photo { grid-template-columns: 1fr; gap: var(--s-6); }
}

/* v2.2 — 3-state selector for Muse biofeedback */
.tri-selector {
  display: inline-flex; padding: 4px;
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: 999px; position: relative;
  font-family: var(--font-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-top: var(--s-5);
}
.tri-selector__pill {
  position: absolute; top: 4px; left: 4px;
  height: calc(100% - 8px); background: var(--accent);
  border-radius: 999px;
  transition: transform 0.5s var(--ease), width 0.5s var(--ease);
  z-index: 0;
}
.tri-selector button {
  position: relative; z-index: 1; border: none;
  background: transparent; color: var(--ink-dim);
  padding: 12px 22px; font-family: inherit; font-size: inherit;
  text-transform: inherit; letter-spacing: inherit;
  cursor: none; transition: color 0.4s var(--ease);
  font-weight: 400; white-space: nowrap;
}
.tri-selector button.is-active { color: var(--bg); font-weight: 500; }
.tri-selector button:not(.is-active):hover { color: var(--ink); }
@media (max-width: 560px) {
  .tri-selector button { padding: 10px 14px; font-size: 10px; }
}

.bio-stack {
  position: relative; border-radius: var(--radius-lg);
  overflow: hidden; background: var(--bg-card);
  border: 1px solid var(--line);
  aspect-ratio: 16/10;
}
.bio-stack__layer {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; transition: opacity 0.5s var(--ease);
  display: flex; align-items: center; justify-content: center;
}
.bio-stack__layer img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.bio-stack__layer.is-active { opacity: 1; }
.bio-stack__caption {
  position: absolute; bottom: var(--s-3); left: var(--s-4); right: var(--s-4);
  font-family: var(--font-mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--ink-mute); pointer-events: none;
  display: flex; justify-content: space-between;
  z-index: 5;
}
.bio-stack__caption .accent { color: var(--accent); }

/* v2.2 — fix about-images figure rendering */
.about-images .figure { display: flex; flex-direction: column; }
.about-images .figure__media {
  flex: 1; width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
}
.about-images .figure__media img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}

/* v2.2 — fix oversized gap between case-meta and stat-grid on case study pages */
.case-meta { margin: var(--s-7) 0 0; }
.case-hero { padding-bottom: var(--s-7); }
.case-hero + .section--tight,
.case-hero + .section { padding-top: var(--s-7); }
