/* ═══════════════════════════════════════════════════════════════════════
   SAVIOUR HENRY - SOTA Portfolio · "Editorial Noir"
   Design system: noir base · terracotta accent (used sparingly)
   Fonts: Syne (display) · Space Grotesk (body) · Space Mono (labels/mono)
   ═══════════════════════════════════════════════════════════════════════ */

/* ───────────────────────── Tokens ───────────────────────── */
:root {
  /* Surfaces */
  --bg:        #0a0a0a;
  --bg-soft:   #0f0f10;
  --surface:   #141416;
  --surface-2: #1a1a1d;
  --line:      rgba(255, 255, 255, 0.08);
  --line-2:    rgba(255, 255, 255, 0.14);

  /* Ink */
  --ink:       #f4f1ea;
  --ink-soft:  rgba(244, 241, 234, 0.72);
  --ink-mute:  rgba(244, 241, 234, 0.46);
  --ink-faint: rgba(244, 241, 234, 0.30);

  /* Accent - terracotta, used sparingly */
  --accent:      #d14832;
  --accent-soft: rgba(209, 72, 50, 0.16);
  --accent-line: rgba(209, 72, 50, 0.40);
  --accent-glow: rgba(209, 72, 50, 0.55);

  /* Type */
  --f-display: "Syne", "Space Grotesk", sans-serif;
  --f-body:    "Space Grotesk", system-ui, sans-serif;
  --f-mono:    "Space Mono", ui-monospace, monospace;

  /* Rhythm */
  --pad:     clamp(1.25rem, 5vw, 7rem);
  --section: clamp(5rem, 11vw, 10rem);
  --maxw:    1280px;

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur:  0.7s;
}

/* ───────────────────────── Reset ───────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-padding-top: 90px;
  background: var(--bg); /* true base - the aurora floats above this */
}
/* Lenis owns scroll when active */
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  font-family: var(--f-body);
  background: transparent; /* let the aurora show through */
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  font-weight: 400;
}

/* Content sits above the aurora/grain ambient layers */
.hero, .ticker, .section, .footer { position: relative; z-index: 1; }

/* ───────────────────────── Aurora background (vivid colour) ───────────────────────── */
.aurora { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.aurora__blob {
  position: absolute; width: 78vw; height: 78vw; border-radius: 50%;
  filter: blur(80px); opacity: 0.55; mix-blend-mode: screen; will-change: transform;
}
.aurora__blob--1 { background: radial-gradient(circle, #ff5a3c 0%, rgba(255,90,60,0.32) 35%, transparent 62%); top: -20%; left: -14%;  animation: drift-a 24s ease-in-out infinite; }
.aurora__blob--2 { background: radial-gradient(circle, #8e44c9 0%, rgba(142,68,201,0.28) 35%, transparent 62%); top: 8%;  right: -18%; opacity: 0.48; animation: drift-b 30s ease-in-out infinite; }
.aurora__blob--3 { background: radial-gradient(circle, #3e74ff 0%, rgba(62,116,255,0.28) 35%, transparent 62%); bottom: -24%; left: 8%; animation: drift-c 28s ease-in-out infinite; }
.aurora__blob--4 { background: radial-gradient(circle, #ffc23d 0%, rgba(255,194,61,0.26) 35%, transparent 62%); bottom: 2%; right: 4%; opacity: 0.42; animation: drift-a 34s ease-in-out infinite reverse; }
.aurora__blob--5 { background: radial-gradient(circle, #1fb6a8 0%, rgba(31,182,168,0.22) 35%, transparent 62%); top: 36%; left: 34%; opacity: 0.4; animation: drift-b 38s ease-in-out infinite reverse; }
@keyframes drift-a { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(9vw, 7vh) scale(1.18); } }
@keyframes drift-b { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-11vw, 5vh) scale(1.14); } }
@keyframes drift-c { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(8vw, -9vh) scale(1.22); } }

/* ───────────────────────── Film grain (texture) ───────────────────────── */
.grain {
  position: fixed; inset: 0; z-index: 2; pointer-events: none;
  opacity: 0.05; mix-blend-mode: overlay;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="220" height="220"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.82" numOctaves="3" stitchTiles="stitch"/></filter><rect width="100%25" height="100%25" filter="url(%23n)"/></svg>');
  background-size: 220px 220px;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
::selection { background: var(--accent); color: #fff; }

/* ───────────────────────── Layout helpers ───────────────────────── */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: var(--section); position: relative; }

.eyebrow {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}
.eyebrow::before {
  content: "";
  width: 1.6rem; height: 1px;
  background: var(--accent-line);
}

.section-head { max-width: 60ch; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.section-head h2 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(2rem, 5.2vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-top: 1.2rem;
}
.section-head p { color: var(--ink-soft); margin-top: 1.2rem; font-size: 1.05rem; max-width: 52ch; }

.accent { color: var(--accent); }

/* ───────────────────────── Liquid glass (from motion refs) ───────────────────────── */
/* Frosted panel - translucent so the aurora glows through, with a lit top edge */
.glass {
  background: rgba(16, 16, 20, 0.46);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 24px 60px rgba(0, 0, 0, 0.30);
}
/* Authentic liquid-glass with gradient-lit border (Motion 14/15/16) */
.liquid-glass {
  position: relative; overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
  background-blend-mode: luminosity;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: none;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.10);
}
.liquid-glass::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.4px;
  background: linear-gradient(180deg,
    rgba(255,255,255,0.45) 0%, rgba(255,255,255,0.15) 20%,
    rgba(255,255,255,0) 40%, rgba(255,255,255,0) 60%,
    rgba(255,255,255,0.15) 80%, rgba(255,255,255,0.45) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}
/* Indigo → purple → amber gradient text (Motion 14) */
.text-grad {
  background: linear-gradient(105deg, #6366f1 0%, #a855f7 48%, #fcd34d 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
/* Readability: prose that sits directly on the aurora (not inside a glass card)
   gets a soft shadow so colour never washes out the text */
.section-head h2, .section-head p,
.about__body p, .about__values li,
.exp h3, .exp__bullets li,
.research__regions {
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.6);
}

/* ───────────────────────── Cursor glow ───────────────────────── */
.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 420px; height: 420px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 65%);
  opacity: 0;
  transition: opacity 0.5s ease;
  mix-blend-mode: screen;
}
@media (hover: hover) and (pointer: fine) { .cursor-glow { opacity: 0.7; } }

/* ───────────────────────── Preloader ───────────────────────── */
.preloader {
  position: fixed; inset: 0;
  z-index: 1000;
  display: grid; place-items: center;
  background: var(--bg);
}
.preloader__mark {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 9vw, 5rem);
  letter-spacing: -0.03em;
  position: relative;
  color: var(--ink);
}
.preloader__mark span { color: var(--accent); }
.preloader__bar {
  position: absolute; left: 0; bottom: -1.1rem;
  height: 2px; width: 0%;
  background: var(--accent);
}
.preloader__count {
  position: absolute;
  bottom: clamp(1.5rem, 4vw, 3rem);
  right: var(--pad);
  font-family: var(--f-mono);
  font-size: 0.8rem;
  color: var(--ink-mute);
}
body.loaded .preloader { display: none; }

/* ───────────────────────── Navigation ───────────────────────── */
.nav {
  position: fixed;
  top: clamp(0.8rem, 2vw, 1.4rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  width: calc(100% - 2 * var(--pad));
  max-width: var(--maxw);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.6rem 0.55rem 1.3rem;
  border-radius: 999px;
  background: rgba(15, 15, 16, 0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--line);
  transition: transform 0.5s var(--ease), background 0.4s ease, box-shadow 0.4s ease;
}
.nav.is-hidden { transform: translateX(-50%) translateY(-150%); }
.nav.is-scrolled { box-shadow: 0 10px 40px rgba(0,0,0,0.5); background: rgba(15,15,16,0.78); }

.nav__logo {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.nav__logo span { color: var(--accent); }

.nav__links { display: flex; gap: 0.2rem; }
.nav__link {
  font-size: 0.86rem;
  color: var(--ink-soft);
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  position: relative;
  transition: color 0.3s ease, background 0.3s ease;
}
.nav__link:hover { color: var(--ink); }
.nav__link.is-active { color: var(--ink); }
.nav__link.is-active::after {
  content: ""; position: absolute;
  bottom: 0.32rem; left: 50%; transform: translateX(-50%);
  width: 4px; height: 4px; border-radius: 50%; background: var(--accent);
}

.nav__cta {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.84rem; font-weight: 600;
  padding: 0.6rem 1.15rem;
  border-radius: 999px;
  background: var(--ink);
  color: #0a0a0a;
  transition: transform 0.3s var(--ease), background 0.3s ease, color 0.3s ease;
}
.nav__cta:hover { transform: translateY(-2px); background: var(--accent); color: #fff; }

.nav__burger { display: none; width: 2.4rem; height: 2.4rem; border-radius: 50%; position: relative; }
.nav__burger span {
  position: absolute; left: 50%; top: 50%; width: 18px; height: 1.6px;
  background: var(--ink); transform: translate(-50%, -50%);
  transition: transform 0.35s var(--ease), opacity 0.2s ease;
}
.nav__burger span:nth-child(1) { transform: translate(-50%, -6px); }
.nav__burger span:nth-child(3) { transform: translate(-50%, 6px); }
body.menu-open .nav__burger span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
body.menu-open .nav__burger span:nth-child(2) { opacity: 0; }
body.menu-open .nav__burger span:nth-child(3) { transform: translate(-50%, -50%) rotate(-45deg); }

/* Mobile menu overlay */
.mobile-menu {
  position: fixed; inset: 0; z-index: 150;
  background: rgba(10, 10, 10, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex; flex-direction: column;
  justify-content: center; gap: 0.4rem;
  padding: var(--pad);
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s ease;
}
body.menu-open .mobile-menu { opacity: 1; pointer-events: auto; }
.mobile-menu a {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(2rem, 9vw, 3rem);
  letter-spacing: -0.02em;
  color: var(--ink);
  padding-block: 0.4rem;
  display: flex; align-items: baseline; gap: 1rem;
  transform: translateY(20px); opacity: 0;
  transition: color 0.3s ease;
}
.mobile-menu a span { font-family: var(--f-mono); font-size: 0.8rem; color: var(--accent); }
body.menu-open .mobile-menu a { animation: menuItemIn 0.6s var(--ease) forwards; }
body.menu-open .mobile-menu a:nth-child(1) { animation-delay: 0.08s; }
body.menu-open .mobile-menu a:nth-child(2) { animation-delay: 0.14s; }
body.menu-open .mobile-menu a:nth-child(3) { animation-delay: 0.20s; }
body.menu-open .mobile-menu a:nth-child(4) { animation-delay: 0.26s; }
body.menu-open .mobile-menu a:nth-child(5) { animation-delay: 0.32s; }
body.menu-open .mobile-menu a:nth-child(6) { animation-delay: 0.38s; }
@keyframes menuItemIn { to { transform: translateY(0); opacity: 1; } }

/* ───────────────────────── Hero ───────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding-block: clamp(7rem, 12vh, 9rem) 3.5rem;
  overflow: hidden;
}
/* On short viewports, anchor to the top so the headline can never be
   clipped above the fold - the page simply scrolls instead. */
@media (max-height: 860px) {
  .hero { align-items: flex-start; }
}
/* Video background */
.hero__video {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  pointer-events: none;
}
.hero__video-overlay {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(10,10,10,0.94) 0%, rgba(10,10,10,0.66) 42%, rgba(10,10,10,0.30) 78%, rgba(10,10,10,0.50) 100%),
    linear-gradient(0deg, rgba(10,10,10,0.80) 0%, rgba(10,10,10,0.10) 55%),
    radial-gradient(120% 120% at 80% 30%, transparent 40%, rgba(209,72,50,0.18) 100%);
}
/* When a video is present, drop the grid/glow so it reads clean and cinematic */
.hero.has-video .hero__bg-grid,
.hero.has-video .hero__glow { display: none; }

/* Fallbacks: skip the heavy autoplay video on mobile + reduced-motion,
   fall back to the colourful aurora instead */
@media (max-width: 768px) {
  .hero__video, .hero__video-overlay { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__video, .hero__video-overlay { display: none; }
  .hero.has-video .hero__bg-grid { display: block; }
}

.hero__bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 30% 40%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 60% at 30% 40%, #000 0%, transparent 75%);
  opacity: 0.5;
  pointer-events: none;
}
.hero__glow {
  position: absolute; border-radius: 50%;
  filter: blur(90px); pointer-events: none; opacity: 0.5;
}
.hero__glow--1 { width: 40vw; height: 40vw; top: -10%; right: -5%; background: var(--accent-soft); }
.hero__glow--2 { width: 30vw; height: 30vw; bottom: -15%; left: -5%; background: rgba(60, 80, 120, 0.10); }

.hero__inner {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  width: 100%;
}

.hero__badge {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--f-mono); font-size: 0.74rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-soft);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.8rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.18), inset 0 0 0 1px rgba(255,255,255,0.08);
}
.hero__badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent-glow);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 var(--accent-glow); }
  70%  { box-shadow: 0 0 0 8px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.hero__title {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 7vw, 5rem);
  line-height: 1.0;
  letter-spacing: -0.035em;
  text-shadow: 0 2px 40px rgba(0,0,0,0.55);
}
.hero__sub, .hero__badge { text-shadow: 0 1px 16px rgba(0,0,0,0.6); }
/* padding+negative margin keeps descenders (y, g, p) from being clipped
   by the overflow:hidden used for the reveal wipe */
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.hero__title .line > span { display: inline-block; }
.hero__title .accent {
  background: linear-gradient(105deg, #e0a020 0%, var(--accent) 45%, #d14832 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.hero__sub {
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  max-width: 46ch;
  margin-top: 1.8rem;
}
.hero__manifesto {
  font-family: var(--f-mono);
  font-size: 0.82rem;
  color: var(--ink-mute);
  margin-top: 1.4rem;
  padding-left: 1rem;
  border-left: 2px solid var(--accent-line);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.4rem; }

.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.92rem; font-weight: 600;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  transition: transform 0.35s var(--ease), background 0.35s ease, color 0.35s ease, border-color 0.35s ease;
  will-change: transform;
}
.btn svg { width: 16px; height: 16px; transition: transform 0.35s var(--ease); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { transform: translateY(-3px); background: #e3553e; }
.btn--primary:hover svg { transform: translateX(4px); }
.btn--ghost {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.18), inset 0 0 0 1px rgba(255,255,255,0.10);
}
.btn--ghost:hover { transform: translateY(-3px); background: rgba(255,255,255,0.10); }

/* Hero counters */
.hero__stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1rem; margin-top: 3rem;
  border-top: 1px solid var(--line); padding-top: 1.8rem;
}
.stat__num {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(1.5rem, 3.4vw, 2.4rem);
  letter-spacing: -0.02em; line-height: 1;
}
.stat__num span { color: var(--accent); }
.stat__label {
  font-family: var(--f-mono); font-size: 0.68rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-mute); margin-top: 0.5rem;
}

/* Hero portrait with cursor-spotlight reveal */
.hero__portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  isolation: isolate;
}
.hero__portrait img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
}
.hero__portrait .portrait--base { filter: grayscale(1) contrast(1.05) brightness(0.85); }
.hero__portrait .portrait--reveal {
  filter: saturate(1.05);
  -webkit-mask-image: radial-gradient(circle var(--spot-r, 0px) at var(--spot-x, 50%) var(--spot-y, 50%), #000 0%, rgba(0,0,0,0.6) 55%, transparent 100%);
  mask-image: radial-gradient(circle var(--spot-r, 0px) at var(--spot-x, 50%) var(--spot-y, 50%), #000 0%, rgba(0,0,0,0.6) 55%, transparent 100%);
}
.hero__portrait::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.55), transparent 45%);
  pointer-events: none; z-index: 2;
}
.hero__portrait-tag {
  position: absolute; left: 1rem; bottom: 1rem; z-index: 3;
  font-family: var(--f-mono); font-size: 0.7rem;
  letter-spacing: 0.08em; color: var(--ink-soft);
  display: flex; align-items: center; gap: 0.5rem;
}
.hero__portrait-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* ───────────────────────── Ticker ───────────────────────── */
.ticker {
  border-block: 1px solid var(--line);
  background: rgba(10, 10, 14, 0.45);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  padding-block: 1.5rem;
  overflow: hidden;
  position: relative;
}
.ticker::before, .ticker::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 14vw; z-index: 2; pointer-events: none;
}
.ticker::before { left: 0; background: linear-gradient(90deg, rgba(10,10,14,0.85), transparent); }
.ticker::after { right: 0; background: linear-gradient(270deg, rgba(10,10,14,0.85), transparent); }
.ticker__track { display: flex; gap: 3.5rem; width: max-content; will-change: transform; }
.ticker__item {
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  color: var(--ink-mute);
  display: inline-flex; align-items: center; gap: 3.5rem;
  white-space: nowrap;
  transition: color 0.3s ease;
}
.ticker__item::after { content: "✦"; color: var(--accent); font-size: 0.7em; }
.ticker__item:hover { color: var(--ink); }

/* ───────────────────────── Capabilities ───────────────────────── */
.cap__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 4vw, 4rem); }

.stack__group { padding-block: 1.4rem; border-top: 1px solid var(--line); }
.stack__group:first-child { border-top: none; padding-top: 0; }
.stack__group h4 {
  font-family: var(--f-mono); font-size: 0.72rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-mute); margin-bottom: 0.9rem;
}
.stack__tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag {
  font-family: var(--f-mono); font-size: 0.78rem;
  color: var(--ink-soft);
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--line); border-radius: 7px;
  transition: border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.tag:hover { border-color: var(--accent-line); color: var(--ink); transform: translateY(-2px); }

.services { display: flex; flex-direction: column; }
.service {
  display: grid; grid-template-columns: auto 1fr; gap: 1.4rem;
  padding-block: 1.6rem;
  border-top: 1px solid var(--line);
  transition: padding-left 0.4s var(--ease);
}
.service:first-child { border-top: none; padding-top: 0; }
.service:hover { padding-left: 0.6rem; }
.service__num {
  font-family: var(--f-mono); font-size: 0.8rem;
  color: var(--accent); padding-top: 0.35rem;
}
.service h3 {
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(1.15rem, 2vw, 1.5rem); letter-spacing: -0.01em;
}
.service p { color: var(--ink-soft); margin-top: 0.5rem; font-size: 0.96rem; max-width: 48ch; }

/* ───────────────────────── Selected Work ───────────────────────── */
.work__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
}
.card {
  position: relative;
  display: flex; flex-direction: column;
  padding: clamp(1.5rem, 2.6vw, 2.2rem);
  border-radius: 16px;
  background: rgba(16, 16, 20, 0.46);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 24px 60px rgba(0, 0, 0, 0.30);
  overflow: hidden;
  min-height: 280px;
  transition: transform 0.5s var(--ease), border-color 0.4s ease, background 0.4s ease;
  will-change: transform;
}
.card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 0%), var(--accent-soft), transparent 40%);
  opacity: 0; transition: opacity 0.4s ease; pointer-events: none;
}
.card:hover { transform: translateY(-6px); border-color: rgba(255,255,255,0.18); background: rgba(26, 26, 32, 0.56); }
.card:hover::before { opacity: 1; }
.card.card--wide { grid-column: span 2; }

.card__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; }
.card__cat {
  font-family: var(--f-mono); font-size: 0.66rem;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.card__metric {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(1.4rem, 3vw, 2rem); letter-spacing: -0.02em;
  color: var(--accent); line-height: 1;
}
.card h3 {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  letter-spacing: -0.015em; margin-bottom: 0.6rem;
}
.card__desc { color: var(--ink-soft); font-size: 0.96rem; margin-bottom: 1.4rem; }
.card__tags { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: auto; }
.card__tag {
  font-family: var(--f-mono); font-size: 0.7rem;
  color: var(--ink-mute);
  padding: 0.28rem 0.6rem;
  border: 1px solid var(--line); border-radius: 6px;
}

/* Status badges */
.badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--f-mono); font-size: 0.64rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.3rem 0.65rem; border-radius: 999px;
  border: 1px solid currentColor;
}
.badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge--published   { color: #4ade80; }
.badge--production  { color: var(--accent); }
.badge--research    { color: #60a5fa; }
.badge--confidential{ color: #fbbf24; }
.badge--stealth     { color: var(--ink-mute); }
.badge--review      { color: #a78bfa; }

/* ───────────────────────── About ───────────────────────── */
.about__grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.about__portrait {
  position: sticky; top: 7rem;
  border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 4 / 5;
}
.about__portrait img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.3) contrast(1.05); }
.about__body p { color: var(--ink-soft); font-size: 1.06rem; margin-bottom: 1.3rem; max-width: 60ch; }
.about__body p strong { color: var(--ink); font-weight: 600; }
.about__values { list-style: none; margin-top: 2.2rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem 1.6rem; }
.about__values li {
  position: relative; padding-left: 1.5rem;
  color: var(--ink-soft); font-size: 0.96rem;
}
.about__values li::before { content: "→"; position: absolute; left: 0; color: var(--accent); }

/* ───────────────────────── Experience ───────────────────────── */
.timeline { border-top: 1px solid var(--line); }
.exp {
  display: grid; grid-template-columns: 0.5fr 1.5fr; gap: clamp(1rem, 3vw, 3rem);
  padding-block: clamp(2rem, 3.5vw, 3rem);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.exp__meta { display: flex; flex-direction: column; gap: 0.4rem; }
.exp__role { font-family: var(--f-mono); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.exp__years { font-family: var(--f-mono); font-size: 0.78rem; color: var(--ink-mute); }
.exp h3 { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.4rem, 2.6vw, 2rem); letter-spacing: -0.02em; margin-bottom: 1rem; }
.exp__bullets { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.exp__bullets li { position: relative; padding-left: 1.4rem; color: var(--ink-soft); font-size: 0.98rem; }
.exp__bullets li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 6px; height: 1px; background: var(--accent); }

/* ───────────────────────── Research ───────────────────────── */
.research__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.paper {
  display: flex; flex-direction: column; gap: 0.9rem;
  padding: clamp(1.4rem, 2.4vw, 2rem);
  border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(16, 16, 20, 0.46);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 20px 50px rgba(0, 0, 0, 0.28);
  transition: border-color 0.4s ease, transform 0.5s var(--ease);
}
.paper:hover { border-color: var(--line-2); transform: translateY(-4px); }
.paper--feature { grid-column: span 2; background: linear-gradient(135deg, var(--surface-2), var(--surface)); border-color: var(--accent-line); }
.paper__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.paper__venue { font-family: var(--f-mono); font-size: 0.72rem; color: var(--ink-mute); }
.paper h3 { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.05rem, 1.8vw, 1.3rem); line-height: 1.25; letter-spacing: -0.01em; }
.paper p { color: var(--ink-soft); font-size: 0.92rem; }
.paper__doi {
  font-family: var(--f-mono); font-size: 0.76rem; color: var(--accent);
  display: inline-flex; align-items: center; gap: 0.4rem; margin-top: auto;
  width: fit-content;
}
.paper__doi:hover { text-decoration: underline; }
.research__regions { margin-top: 2.4rem; font-family: var(--f-mono); font-size: 0.8rem; color: var(--ink-mute); }
.research__regions span { color: var(--ink); }

/* ───────────────────────── Recognition + Testimonials ───────────────────────── */
.awards__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: clamp(3rem, 6vw, 5rem); }
.award {
  padding: 1.4rem; border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(16, 16, 20, 0.46);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 16px 40px rgba(0, 0, 0, 0.26);
  transition: border-color 0.3s ease, transform 0.4s var(--ease);
}
.award:hover { border-color: var(--accent-line); transform: translateY(-3px); }
.award__org { font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.award h4 { font-family: var(--f-display); font-weight: 600; font-size: 1.05rem; margin-top: 0.5rem; letter-spacing: -0.01em; }
.award p { color: var(--ink-mute); font-size: 0.85rem; margin-top: 0.4rem; }

.quotes__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.quote {
  padding: clamp(1.5rem, 2.6vw, 2rem); border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(16, 16, 20, 0.46);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 16px 40px rgba(0, 0, 0, 0.26);
  display: flex; flex-direction: column; gap: 1.2rem;
}
.quote__mark { font-family: var(--f-display); font-size: 2.6rem; line-height: 0.5; color: var(--accent); height: 1rem; }
.quote p { color: var(--ink-soft); font-size: 0.98rem; font-style: italic; }
.quote__by { font-family: var(--f-mono); font-size: 0.74rem; color: var(--ink-mute); margin-top: auto; }
.quote__by strong { color: var(--ink); font-weight: 400; display: block; font-style: normal; }

/* ───────────────────────── Contact ───────────────────────── */
.contact { background: rgba(10, 10, 14, 0.38); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
.contact__grid { display: grid; grid-template-columns: 1fr 0.9fr; gap: clamp(2.5rem, 5vw, 5rem); align-items: start; }
.contact h2 {
  font-family: var(--f-display); font-weight: 800;
  font-size: clamp(2.2rem, 6vw, 4.2rem); line-height: 0.98; letter-spacing: -0.03em;
}
.contact__sub { color: var(--ink-soft); font-size: 1.08rem; margin-top: 1.6rem; max-width: 44ch; }
.contact__links { margin-top: 2.4rem; display: flex; flex-direction: column; gap: 0.2rem; }
.contact__link {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 1rem; border-top: 1px solid var(--line);
  font-size: 1rem; transition: padding-left 0.4s var(--ease), color 0.3s ease;
}
.contact__link:hover { padding-left: 0.6rem; color: var(--accent); }
.contact__link span { font-family: var(--f-mono); font-size: 0.8rem; color: var(--ink-mute); }
.contact__link:hover span { color: var(--accent); }

.form { display: flex; flex-direction: column; gap: 1.1rem; }
.field label {
  display: block; font-family: var(--f-mono); font-size: 0.7rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 0.5rem;
}
.field input, .field textarea {
  width: 100%; font-family: var(--f-body); font-size: 0.98rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.10); border-radius: 10px;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.10);
  padding: 0.9rem 1rem; transition: border-color 0.3s ease, background 0.3s ease;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent-line); background: rgba(255,255,255,0.07); }
.field textarea { resize: vertical; min-height: 120px; }
.form .btn--primary { justify-content: center; margin-top: 0.4rem; }

/* ───────────────────────── Footer ───────────────────────── */
.footer { border-top: 1px solid var(--line); padding-block: 3rem; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem; }
.footer__copy { font-family: var(--f-mono); font-size: 0.78rem; color: var(--ink-mute); }
.footer__social { display: flex; gap: 1.5rem; font-family: var(--f-mono); font-size: 0.8rem; }
.footer__social a { color: var(--ink-soft); transition: color 0.3s ease; }
.footer__social a:hover { color: var(--accent); }

/* ───────────────────────── Reveal system ───────────────────────── */
[data-rv] { opacity: 0; will-change: transform, opacity, filter; }
[data-rv="up"]    { transform: translateY(48px); }
[data-rv="blur"]  { transform: translateY(40px); filter: blur(14px); }
[data-rv="left"]  { transform: translateX(-52px); }
[data-rv="right"] { transform: translateX(52px); }
[data-rv="scale"] { transform: scale(0.92); }
.rv-in { opacity: 1 !important; transform: none !important; filter: none !important; transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), filter 0.9s var(--ease); }

/* ───────────────────────── Responsive ───────────────────────── */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__portrait { max-width: 360px; order: -1; }
  .cap__grid, .about__grid, .contact__grid { grid-template-columns: 1fr; }
  .about__portrait { position: relative; top: 0; max-width: 360px; }
  .awards__grid, .quotes__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__burger { display: block; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
  .work__grid, .research__grid { grid-template-columns: 1fr; }
  .card--wide, .paper--feature { grid-column: span 1; }
  .exp { grid-template-columns: 1fr; gap: 0.8rem; }
  .about__values { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .awards__grid, .quotes__grid { grid-template-columns: 1fr; }
  .hero__stats { gap: 1rem; }
  .ticker::before, .ticker::after { width: 20vw; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  [data-rv] { opacity: 1 !important; transform: none !important; filter: none !important; }
  .hero__portrait .portrait--reveal { -webkit-mask-image: none; mask-image: none; opacity: 0; }
}
