/* ============================================================
   SIDD CHAUHAN PORTFOLIO V3.1 — style.css
   Dark cinematic. Electric lime. Particle hero. Slide-over panel.
   Light/dark mode. Visual depth. Cinematic animations.
   ============================================================ */

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:root {
  --bg:           #0a0a0a;
  --bg-surface:   #111111;
  --bg-card:      #0f0f0f;
  --border:       rgba(255,255,255,0.07);
  --border-hover: rgba(200,255,0,0.25);
  --text:         #e8e8e8;
  --text-muted:   #888888;
  --text-faint:   #444444;
  --accent:       #c8ff00;
  --accent-dim:   rgba(200,255,0,0.12);
  --accent-glow:  rgba(200,255,0,0.3);
  --accent-text:  #c8ff00;
  --nav-scrolled-bg: rgba(10, 10, 10, 0.85);
  --card-hover-border: rgba(200,255,0,0.25);
  --gradient-divider: rgba(200,255,0,0.12);
  --hero-glow-opacity: 0.06;
  --grain-opacity: 0.028;
  --panel-bg: rgba(0, 0, 0, 0.6);
  --panel-close-bg: rgba(15, 15, 15, 0.85);
  --img-brightness: 0.75;
  --img-brightness-hover: 0.92;
  --scanline-opacity: 0.018;

  --font-display: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body:    -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:    ui-monospace, 'SFMono-Regular', Consolas, monospace;

  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:  cubic-bezier(0.4, 0, 0.2, 1);
  --transition:   180ms cubic-bezier(0.16, 1, 0.3, 1);

  --max-w:        1280px;
  --nav-h:        72px;

  color-scheme: dark;
}

/* ── Light Mode Variables — warm with depth ─────────────── */
[data-theme="light"] {
  --bg:           #EEECEA;
  --bg-surface:   #F2F1EF;
  --bg-card:      #FAFAF8;
  --border:       rgba(0,0,0,0.07);
  --border-hover: rgba(100, 120, 20, 0.25);
  --text:         #1E1E1A;
  --text-muted:   #6E6E68;
  --text-faint:   #B0AFA9;
  --accent:       #5A7A08;
  --accent-dim:   rgba(90, 122, 8, 0.06);
  --accent-glow:  rgba(90, 122, 8, 0.18);
  --accent-text:  #5A7A08;
  --nav-scrolled-bg: rgba(238, 236, 234, 0.92);
  --card-hover-border: rgba(90, 122, 8, 0.28);
  --gradient-divider: rgba(90, 122, 8, 0.08);
  --hero-glow-opacity: 0.06;
  --grain-opacity: 0.012;
  --panel-bg: rgba(0, 0, 0, 0.25);
  --panel-close-bg: rgba(238, 236, 234, 0.9);
  --img-brightness: 0.93;
  --img-brightness-hover: 1.0;
  --scanline-opacity: 0.005;
  --card-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.06);
  --card-shadow-hover: 0 2px 8px rgba(0,0,0,0.06), 0 16px 40px rgba(0,0,0,0.1);

  color-scheme: light;
}

/* Light mode: subtle page gradient instead of flat color */
[data-theme="light"] body {
  background:
    linear-gradient(180deg,
      #EEECEA 0%,
      #E8E6E2 30%,
      #F0EEEC 50%,
      #E6E4E0 75%,
      #EEECEA 100%
    );
  background-attachment: fixed;
}

/* Light mode cards: white with soft shadow */
[data-theme="light"] .project-card {
  background: var(--bg-card);
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border);
}

[data-theme="light"] .project-card:hover {
  box-shadow: var(--card-shadow-hover);
  border-color: var(--card-hover-border);
}

/* Light mode sections: alternating subtle tints */
[data-theme="light"] section:nth-of-type(even) {
  background: rgba(0,0,0,0.015);
}

/* Light mode skill pills: slightly more contrast */
[data-theme="light"] .skill-pill {
  background: rgba(90, 122, 8, 0.06);
  border-color: rgba(90, 122, 8, 0.15);
}

[data-theme="light"] .skill-pill:hover {
  background: rgba(90, 122, 8, 0.12);
  border-color: rgba(90, 122, 8, 0.3);
}

/* Light mode archive cards */
[data-theme="light"] .archive-card {
  background: var(--bg-card);
  box-shadow: 0 1px 2px rgba(0,0,0,0.03), 0 4px 12px rgba(0,0,0,0.04);
  border: 1px solid var(--border);
}

[data-theme="light"] .archive-card:hover {
  box-shadow: 0 2px 6px rgba(0,0,0,0.06), 0 10px 28px rgba(0,0,0,0.08);
}

html {
  scroll-behavior: auto;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* ── Film Grain Overlay ───────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: -200%;
  width: 400%;
  height: 400%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  opacity: var(--grain-opacity);
  pointer-events: none;
  z-index: 9999;
  animation: grain 0.5s steps(2) infinite;
  transition: opacity 0.3s ease;
}

@keyframes grain {
  0%   { transform: translate(0, 0); }
  10%  { transform: translate(-3%, -3%); }
  20%  { transform: translate(3%, 3%); }
  30%  { transform: translate(-5%, 2%); }
  40%  { transform: translate(2%, -5%); }
  50%  { transform: translate(-2%, 4%); }
  60%  { transform: translate(4%, -1%); }
  70%  { transform: translate(-4%, 3%); }
  80%  { transform: translate(3%, -4%); }
  90%  { transform: translate(-1%, 5%); }
  100% { transform: translate(1%, -2%); }
}

/* ── Scanline Overlay ────────────────────────────────────── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 1px,
    rgba(0, 0, 0, var(--scanline-opacity)) 1px,
    rgba(0, 0, 0, var(--scanline-opacity)) 2px
  );
  pointer-events: none;
  z-index: 9998;
}

/* ── Custom Cursor ────────────────────────────────────────── */
.cursor {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: width 0.2s var(--ease-out), height 0.2s var(--ease-out), opacity 0.2s;
  mix-blend-mode: difference;
  opacity: 0;
}

[data-theme="light"] .cursor {
  mix-blend-mode: normal;
  background: #1A1A18;
}

.cursor-ring {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(200, 255, 0, 0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out),
              border-color 0.3s, opacity 0.3s;
  opacity: 0;
}

[data-theme="light"] .cursor-ring {
  border-color: rgba(26, 26, 24, 0.3);
}

.cursor--visible, .cursor-ring--visible {
  opacity: 1;
}

.cursor.cursor--active {
  width: 16px;
  height: 16px;
  opacity: 0.7;
}

.cursor-ring.cursor-ring--active {
  width: 56px;
  height: 56px;
  border-color: var(--accent);
}

[data-theme="light"] .cursor-ring.cursor-ring--active {
  border-color: #1A1A18;
}

/* ── Nav ──────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding: 0 clamp(24px, 5vw, 80px);
  border-bottom: 1px solid transparent;
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
}

.nav--scrolled {
  background: var(--nav-scrolled-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
}

.nav__inner {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--text);
  text-decoration: none;
  text-transform: uppercase;
  transition: color var(--transition);
}

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

.nav__links {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
}

.nav__link {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
  cursor: pointer;
}

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

.nav__icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: var(--text-muted);
  transition: color var(--transition);
  border-radius: 50%;
}

.nav__icon-link svg { width: 16px; height: 16px; }
.nav__icon-link:hover { color: var(--accent); }

/* ── Theme Toggle ─────────────────────────────────────────── */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  color: var(--text-muted);
  transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease;
  flex-shrink: 0;
  padding: 0;
}

.theme-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-dim);
}

.theme-toggle svg {
  width: 16px;
  height: 16px;
}

.theme-toggle__sun,
.theme-toggle__moon {
  display: none;
}

/* Dark mode: show sun (click to go light) */
:root .theme-toggle__sun,
[data-theme="dark"] .theme-toggle__sun {
  display: block;
}
:root .theme-toggle__moon,
[data-theme="dark"] .theme-toggle__moon {
  display: none;
}

/* Light mode: show moon (click to go dark) */
[data-theme="light"] .theme-toggle__sun {
  display: none;
}
[data-theme="light"] .theme-toggle__moon {
  display: block;
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  min-height: 92svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: var(--nav-h) clamp(24px, 5vw, 80px) clamp(44px, 6vh, 72px);
  position: relative;
  text-align: center;
  overflow: hidden;
}

.hero-scroll-cue {
  position: absolute;
  left: 50%;
  top: 62%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  z-index: 2;
  pointer-events: none;
}

.hero-scroll-cue__arrow {
  width: 14px;
  height: 14px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  animation: heroScrollCueBounce 1.8s ease-in-out infinite;
}

@keyframes heroScrollCueBounce {
  0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: 0.45; }
  50% { transform: rotate(45deg) translate(4px, 4px); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-scroll-cue__arrow { animation: none; }
}

@media (max-width: 768px) {
  .hero-scroll-cue { display: none; }
}

/* Animated background — slow zoom-in nebula */
.hero__bg-anim {
  position: absolute;
  inset: -20%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 50% 40% at 25% 30%, rgba(200,255,0, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 45% 50% at 70% 60%, rgba(100,180,0, 0.04) 0%, transparent 55%),
    radial-gradient(ellipse 60% 35% at 50% 50%, rgba(255,255,255, 0.015) 0%, transparent 50%),
    radial-gradient(ellipse 30% 40% at 80% 20%, rgba(200,255,0, 0.035) 0%, transparent 50%);
  animation: heroZoomDrift 25s ease-in-out infinite;
  will-change: transform;
}

[data-theme="light"] .hero__bg-anim {
  background:
    radial-gradient(ellipse 55% 45% at 20% 25%, rgba(90,122,8, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse 50% 55% at 75% 55%, rgba(160,190,60, 0.10) 0%, transparent 50%),
    radial-gradient(ellipse 65% 40% at 50% 45%, rgba(200,195,170, 0.18) 0%, transparent 50%),
    radial-gradient(ellipse 40% 40% at 15% 70%, rgba(140,170,50, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 35% 35% at 85% 30%, rgba(180,175,130, 0.12) 0%, transparent 50%);
}

@keyframes heroZoomDrift {
  0% {
    transform: scale(1) translate(0, 0);
  }
  25% {
    transform: scale(1.08) translate(-1%, 1.5%);
  }
  50% {
    transform: scale(1.15) translate(0.5%, -0.5%);
  }
  75% {
    transform: scale(1.08) translate(1%, 1%);
  }
  100% {
    transform: scale(1) translate(0, 0);
  }
}

/* Gradient mesh behind hero */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 500px at 30% 40%, rgba(200,255,0, var(--hero-glow-opacity)) 0%, transparent 70%),
    radial-gradient(ellipse 400px 350px at 75% 25%, rgba(200,255,0, calc(var(--hero-glow-opacity) * 0.5)) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

[data-theme="light"] .hero::before {
  background:
    radial-gradient(ellipse 600px 500px at 30% 40%, rgba(92,122,0, 0.04) 0%, transparent 70%),
    radial-gradient(ellipse 400px 350px at 75% 25%, rgba(92,122,0, 0.025) 0%, transparent 70%);
}

.hero__canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

#particleCanvas {
  pointer-events: auto;
}

/* Radial glow behind hero */
.hero::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(ellipse at center, rgba(200,255,0, var(--hero-glow-opacity)) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

[data-theme="light"] .hero::after {
  background: radial-gradient(ellipse at center, rgba(92,122,0, 0.05) 0%, transparent 65%);
}

.hero__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 12px;
  opacity: 0;
  position: relative;
  z-index: 2;
}

/* Lightweight signature name for mobile and reduced motion */
.hero__name-fallback {
  display: none;
  position: absolute;
  top: clamp(88px, 12vh, 132px);
  left: 50%;
  width: min(92vw, 1120px);
  transform: translateX(-50%);
  z-index: 2;
}

.hero__name-static {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(58px, 10vw, 132px);
  line-height: 0.88;
  letter-spacing: -0.02em;
  color: transparent;
  background: linear-gradient(135deg, var(--text) 0%, var(--text-muted) 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  position: relative;
}

.hero__name-static span {
  display: block;
}

.hero__name-fallback--animated .hero__name-static {
  animation: signature-name-reveal 1.15s cubic-bezier(.2,.8,.2,1) both;
}

@keyframes signature-name-reveal {
  0% { opacity: 0.35; filter: blur(3px); transform: translateY(8px); }
  58% { opacity: 1; filter: blur(0); }
  100% { opacity: 1; filter: blur(0); transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__name-fallback--animated .hero__name-static { animation: none; }
}



.hero__position {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(30px, 3.2vw, 48px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--text);
  opacity: 0;
  transform: translateY(18px);
  position: relative;
  z-index: 2;
}

.hero__description {
  font-family: var(--font-body);
  font-size: clamp(15px, 1.4vw, 17px);
  color: color-mix(in srgb, var(--text) 78%, var(--bg));
  max-width: 720px;
  line-height: 1.55;
  margin-top: 16px;
  margin-bottom: 16px;
  opacity: 0;
  position: relative;
  z-index: 2;
}

.hero__role-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 900px;
  margin: 0 auto 18px;
  opacity: 0;
  position: relative;
  z-index: 2;
}

.hero__role-label,
.hero__role {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero__role-note {
  flex-basis: 100%;
  margin-top: 4px;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.4;
}

.hero__focus-line {
  gap: 10px;
}

.hero__focus,
.hero__focus-separator {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero__focus {
  color: var(--text-muted);
}

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

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  opacity: 0;
  position: relative;
  z-index: 3;
}

.hero__action {
  padding: 10px 15px;
  border: 1px solid var(--border-hover);
  border-radius: 3px;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.hero__action:hover,
.hero__action:focus-visible {
  border-color: var(--accent);
}

.hero__action--primary {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--bg);
}

.hero__role-label {
  color: var(--accent);
  margin-right: 4px;
}

.hero__role {
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 3px;
  background: rgba(255,255,255,0.02);
  padding: 7px 10px;
}

.hero__role.hero__role--primary {
  color: var(--text);
  border-color: var(--accent-glow);
  background: var(--accent-dim);
}

[data-theme="light"] .hero__role {
  background: rgba(255,255,255,0.42);
}

.hero__scroll {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  z-index: 2;
}

.hero__scroll-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--text-faint);
  text-transform: uppercase;
}

.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--text-faint), transparent);
  position: relative;
  overflow: hidden;
}

.hero__scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--accent);
  animation: scroll-line 2s var(--ease-in-out) infinite;
}

@keyframes scroll-line {
  0%   { top: -100%; opacity: 1; }
  100% { top: 100%;  opacity: 0; }
}

/* ── Section Base ─────────────────────────────────────────── */
.section {
  padding: clamp(80px, 10vw, 140px) clamp(24px, 5vw, 80px);
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
  content-visibility: auto;
  contain-intrinsic-size: auto 900px;
}

.section__header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: clamp(40px, 6vw, 72px);
}

.section__num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.1em;
  flex-shrink: 0;
}

.section__rule {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.section__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(32px, 5vw, 56px);
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1;
}

.section__intro {
  max-width: 680px;
  margin-top: 22px;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted);
}

/* ── Gradient Section Dividers ────────────────────────────── */
.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--gradient-divider) 20%,
    var(--accent) 50%,
    var(--gradient-divider) 80%,
    transparent 100%
  );
  opacity: 0.3;
}

/* Using border-top with gradient overlay for existing sections */
#about::before,
#skills::before,
#contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--gradient-divider) 15%,
    var(--accent) 50%,
    var(--gradient-divider) 85%,
    transparent 100%
  );
  opacity: 0.35;
}

/* ── Role Proof Hubs ─────────────────────────────────────── */
.role-hubs {
  padding: clamp(28px, 4vw, 48px) clamp(24px, 5vw, 80px) 0;
  position: relative;
  z-index: 3;
}

.role-hubs__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  border-top: 1px solid var(--border);
  padding-top: 22px;
}

.role-hubs__eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 8px;
}

.role-hubs__intro {
  max-width: 560px;
  margin: 0 0 22px;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
}

.role-hubs__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.role-hub {
  display: flex;
  flex-direction: column;
  min-height: 200px;
  padding: 22px;
  color: inherit;
  text-decoration: none;
  background: var(--bg-card);
  border: 1px solid var(--border);
  position: relative;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}

.role-hub:hover {
  border-color: var(--card-hover-border);
  background: var(--accent-dim);
}

.role-hub__index {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 28px;
}

.role-hub__title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 10px;
}

.role-hub__text {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
}

.role-hub__arrow {
  margin-top: auto;
  padding-top: 20px;
  align-self: flex-end;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 16px;
  transition: transform var(--transition);
}

.role-hub:hover .role-hub__arrow {
  transform: translate(3px, -3px);
}

/* ── Independent public proof ───────────────────────────── */
.external-proof {
  margin-top: clamp(64px, 8vw, 120px);
  padding: clamp(28px, 4vw, 56px);
  border: 1px solid var(--border);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 8%, transparent), transparent 44%),
    var(--bg-card);
}

.external-proof__header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.external-proof__eyebrow,
.proof-receipt__source {
  margin: 0 0 12px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.external-proof__title {
  max-width: 760px;
  margin: 0;
  color: var(--text);
  font-size: clamp(2rem, 4vw, 4.25rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.external-proof__intro {
  max-width: 660px;
  margin: 18px 0 0;
  color: var(--text-muted);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.65;
}

.external-proof__quotes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.proof-quote {
  display: flex;
  min-width: 0;
  min-height: 330px;
  flex-direction: column;
  justify-content: space-between;
  margin: 0;
  padding: clamp(24px, 3vw, 42px);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
}

.proof-quote blockquote {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.35rem, 2.2vw, 2.25rem);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.028em;
}

.proof-quote figcaption {
  display: grid;
  gap: 5px;
  margin-top: 42px;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.proof-quote figcaption strong {
  color: var(--text);
  font-size: 0.95rem;
}

.proof-quote a,
.proof-receipt__link {
  width: fit-content;
  margin-top: 9px;
  color: var(--text);
  border-bottom: 1px solid var(--accent);
  text-decoration: none;
}

.external-proof__receipts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 18px;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.proof-receipt {
  display: flex;
  min-width: 0;
  min-height: 220px;
  flex-direction: column;
  padding: 24px;
  color: var(--text);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: background-color 180ms ease, transform 180ms ease;
}

.proof-receipt strong {
  font-size: 1.05rem;
  line-height: 1.45;
}

.proof-receipt__link {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.proof-receipt:hover,
.proof-receipt:focus-visible {
  background: color-mix(in srgb, var(--accent) 9%, transparent);
  transform: translateY(-2px);
}

.external-proof__boundary {
  margin: 18px 0 0;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  line-height: 1.55;
  letter-spacing: 0.06em;
}

@media (max-width: 980px) {
  .external-proof__receipts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .external-proof {
    padding: 20px;
  }

  .external-proof__quotes,
  .external-proof__receipts {
    grid-template-columns: 1fr;
  }

  .proof-quote {
    min-height: 280px;
  }

  .proof-receipt {
    min-height: 190px;
  }
}

/* ── Selected video proof ───────────────────────────────── */
.video-proof {
  margin-top: clamp(64px, 8vw, 104px);
  padding-top: 28px;
  border-top: 1px solid var(--border);
  scroll-margin-top: calc(var(--nav-h) + 24px);
}

.video-proof__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.video-proof__eyebrow,
.video-card__proof {
  margin: 0 0 10px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.video-proof__title {
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1;
}

.video-proof__intro {
  max-width: 620px;
  margin: 12px 0 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.55;
}

.video-proof__channel,
.video-card__body a {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-decoration-color: var(--accent);
  text-underline-offset: 5px;
}

.video-proof__channel {
  flex: 0 0 auto;
  padding-bottom: 4px;
}

.video-proof__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.video-card {
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.video-card__embed {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #090909;
}

.video-card__embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-card__body {
  display: flex;
  flex-direction: column;
  min-height: 250px;
  padding: 22px;
}

.video-card__title {
  margin: 0 0 10px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 1.18;
}

.video-card__text {
  margin: 0 0 24px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.55;
}

.video-card__body a {
  margin-top: auto;
  align-self: flex-start;
}

/* ── Work Section ─────────────────────────────────────────── */
#work {
  padding-top: clamp(80px, 10vw, 140px);
  padding-bottom: clamp(80px, 10vw, 140px);
}

/* Featured Project Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  margin-top: 40px;
}

.project-lenses {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.project-lens {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 10px 14px;
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}

.project-lens:hover,
.project-lens.is-active {
  color: var(--accent);
  border-color: var(--card-hover-border);
  background: var(--accent-dim);
}

.project-card {
  background: var(--bg-card);
  overflow: hidden;
  cursor: pointer;
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
  position: relative;
  will-change: transform, opacity;
}

.project-card[data-primary="false"] {
  display: none;
}

.project-card__image-wrap {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  position: relative;
  background: var(--bg-surface);
}

.project-card__image-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.5) 0%, transparent 40%);
  transition: opacity 0.35s, background 0.35s;
}

[data-theme="light"] .project-card__image-wrap::after {
  background: linear-gradient(to top, rgba(0,0,0,0.15) 0%, transparent 40%);
}

.project-card:hover .project-card__image-wrap::after {
  background: linear-gradient(to top, rgba(10,10,10,0.7) 0%, rgba(200,255,0,0.03) 60%, transparent 100%);
}

[data-theme="light"] .project-card:hover .project-card__image-wrap::after {
  background: linear-gradient(to top, rgba(0,0,0,0.25) 0%, rgba(92,122,0,0.02) 60%, transparent 100%);
}

.project-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s var(--ease-out), filter 0.55s var(--ease-out);
  filter: brightness(var(--img-brightness)) saturate(0.9);
}

.project-card:hover .project-card__image {
  transform: scale(1.04);
  filter: brightness(var(--img-brightness-hover)) saturate(1.05);
}

.project-card__body {
  padding: 28px 32px 32px;
  border-top: 1px solid var(--border);
  transition: border-color 0.25s;
}

.project-card:hover .project-card__body {
  border-top-color: var(--card-hover-border);
}

.project-card__rank {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.project-card__category {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.project-card__title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.project-card__desc {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
}

.project-card__signal {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text);
  line-height: 1.45;
  margin-bottom: 16px;
  opacity: 0.78;
}

.project-card.is-filtered-out {
  display: none;
}

.project-card__tools {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.project-card__tools::after {
  content: 'Open case study';
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--accent);
  text-transform: uppercase;
}

.tool-pill {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 3px 8px;
  transition: color var(--transition), border-color var(--transition);
}

.project-card:hover .tool-pill {
  color: var(--text-muted);
  border-color: var(--border);
}

/* Card hover border glow */
.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid transparent;
  pointer-events: none;
  z-index: 2;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.project-card:hover::before {
  border-color: var(--card-hover-border);
  box-shadow: inset 0 0 20px rgba(200,255,0,0.03);
}

[data-theme="light"] .project-card:hover::before {
  box-shadow: inset 0 0 20px rgba(92,122,0,0.03);
}

/* ── Archive Section ─────────────────────────────────────── */
.archive-section {
  margin-top: clamp(48px, 6vw, 80px);
  text-align: center;
}

.archive-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: none;
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 14px 28px;
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}

.archive-toggle:hover {
  color: var(--accent);
  border-color: var(--card-hover-border);
  background: var(--accent-dim);
}

.archive-toggle__icon {
  width: 14px;
  height: 14px;
  transition: transform 0.3s var(--ease-out);
}

.archive-toggle[aria-expanded="true"] .archive-toggle__icon {
  transform: rotate(180deg);
}

.archive-toggle[aria-expanded="true"] .archive-toggle__text::after {
  content: '';
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin-top: 32px;
  text-align: left;
}

.archive-grid[hidden] {
  display: none;
}

.archive-card {
  background: var(--bg-card);
  overflow: visible;
  cursor: pointer;
  transition: opacity 0.3s var(--ease-out);
  position: relative;
}

.archive-card__image-wrap {
  display: none;
}

.archive-card__image-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.6) 0%, transparent 50%);
}

[data-theme="light"] .archive-card__image-wrap::after {
  background: linear-gradient(to top, rgba(0,0,0,0.2) 0%, transparent 50%);
}

.archive-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease-out), filter 0.5s var(--ease-out);
  filter: brightness(0.65) saturate(0.85);
}

[data-theme="light"] .archive-card__image {
  filter: brightness(0.92) saturate(0.95);
}

.archive-card:hover .archive-card__image {
  transform: scale(1.04);
  filter: brightness(0.85) saturate(1);
}

[data-theme="light"] .archive-card:hover .archive-card__image {
  filter: brightness(1) saturate(1.02);
}

.archive-card__body {
  min-height: 86px;
  padding: 18px 20px;
  border-top: 1px solid transparent;
}

.archive-card__category {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

.archive-card__title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.archive-card__title::after {
  content: 'Open';
  float: right;
  margin-top: 2px;
  margin-left: 12px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  text-transform: uppercase;
}

.archive-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid transparent;
  pointer-events: none;
  z-index: 2;
  transition: border-color 0.3s;
}

.archive-card:hover::before {
  border-color: var(--card-hover-border);
}

/* ── Slide-Over Panel ────────────────────────────────────── */
.panel-backdrop {
  position: fixed;
  inset: 0;
  background: var(--panel-bg);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.panel-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 560px;
  max-width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: var(--bg-card);
  z-index: 201;
  transform: translateX(100%);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  border-left: 1px solid var(--border);
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.3), -2px 0 8px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .panel {
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.1), -2px 0 8px rgba(0, 0, 0, 0.05);
}

.panel.open {
  transform: translateX(0);
}

.panel__close {
  position: sticky;
  top: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-left: auto;
  margin-right: 20px;
  margin-top: 20px;
  background: var(--panel-close-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), transform 0.2s ease;
  color: var(--text-muted);
}

.panel__close:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
  transform: scale(1.08);
}

.panel__close svg {
  width: 22px;
  height: 22px;
}

.panel__content {
  padding: 0 0 48px;
}

.panel__image-wrap {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-surface);
}

.panel__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.panel__details {
  padding: 36px 40px 0;
}

.panel__category {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.panel__title {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.panel__date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 0.08em;
  margin-bottom: 24px;
}

.panel__date:empty {
  display: none;
}

.panel__description {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 32px;
}

.panel__summary-section {
  margin-bottom: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.panel__walkthrough {
  display: grid;
  gap: 22px;
  margin-bottom: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.panel__sub-heading {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 14px;
}

.panel__summary {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.75;
}

.panel__tools {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 32px;
}

.panel__tools .tool-pill {
  color: var(--text-muted);
  border-color: var(--border);
}

/* ── Panel multi-link layout ─────────────────────── */
.panel__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 28px;
  margin-bottom: 28px;
}

.panel__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--accent);
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 3px;
  transition: background var(--transition), gap var(--transition);
}

.panel__cta--secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.panel__cta--secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

[data-theme="light"] .panel__cta {
  color: #FFFFFF;
  background: #5C7A00;
}

[data-theme="light"] .panel__cta--secondary {
  background: transparent;
  color: var(--text);
}

.panel__cta:hover {
  background: #b8ee00;
  gap: 12px;
}

[data-theme="light"] .panel__cta:hover {
  background: #4A6300;
}

.panel__cta svg {
  width: 10px;
  height: 10px;
}

.panel__close-bottom {
  display: block;
  width: 100%;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  background: none;
  border: none;
  border-top: 1px solid var(--border);
  padding: 20px 0;
  cursor: pointer;
  transition: color var(--transition);
  margin-top: 16px;
}

.panel__close-bottom:hover {
  color: var(--text);
}

/* ── About Section ────────────────────────────────────────── */
#about {
  border-top: none;
}

.about-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(32px, 4vw, 64px);
  margin-top: 0;
}

.about-col__heading {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.about-col__text {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ── Skills Section ───────────────────────────────────────── */
#skills {
  border-top: none;
  background: linear-gradient(to bottom, var(--bg) 0%, var(--bg-surface) 100%);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(28px, 4vw, 56px);
}

.skills-group__heading {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}

.skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-pill {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 5px 10px;
  transition: color var(--transition), border-color var(--transition),
              box-shadow var(--transition), background var(--transition);
  cursor: default;
}

.skill-pill:hover {
  color: var(--accent);
  border-color: var(--accent-glow);
  background: var(--accent-dim);
  box-shadow: 0 0 16px rgba(200,255,0,0.12), 0 0 4px rgba(200,255,0,0.06);
}

[data-theme="light"] .skill-pill:hover {
  box-shadow: 0 0 16px rgba(92,122,0,0.1), 0 0 4px rgba(92,122,0,0.05);
}

/* ── Proof-led capability cards ──────────────────────────── */
.capability-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.capability-card {
  min-height: 250px;
  padding: clamp(24px, 3vw, 36px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
}

.capability-card__eyebrow,
.capability-card__proof {
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.55;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.capability-card__eyebrow {
  color: var(--accent);
  margin-bottom: 18px;
}

.capability-card__title {
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 14px;
}

.capability-card__text {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
  max-width: 55ch;
}

.capability-card__proof {
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  margin-top: auto;
  padding-top: 18px;
}

.applied-learning {
  margin-top: clamp(64px, 8vw, 104px);
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.applied-learning__header {
  max-width: 820px;
  margin-bottom: 28px;
}

.applied-learning__eyebrow,
.learning-card__index {
  margin: 0 0 12px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.applied-learning__title {
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.08;
}

.applied-learning__intro {
  max-width: 680px;
  margin: 14px 0 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}

.applied-learning__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.learning-card {
  min-height: 350px;
  padding: clamp(22px, 2.5vw, 30px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
}

.learning-card__title {
  margin: 0 0 16px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 25px);
  line-height: 1.18;
}

.learning-card__sources,
.learning-card__skills {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.65;
}

.learning-card__skills {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.learning-card a {
  align-self: flex-start;
  margin-top: auto;
  padding-top: 24px;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-decoration-color: var(--accent);
  text-underline-offset: 5px;
}

.capability-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.capability-details details {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0 20px;
}

.capability-details summary {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

.capability-details summary::after {
  content: '+';
  color: var(--accent);
  font-size: 18px;
}

.capability-details details[open] summary::after { content: '−'; }

.capability-details p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
  border-top: 1px solid var(--border);
  padding: 16px 0 20px;
}

/* ── Evidence-based character map ───────────────────────── */
.character-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.character-card {
  padding: clamp(22px, 3vw, 30px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
}

.character-card--edge { border-style: dashed; }

.character-card__head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.character-card__head h3 {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.25;
}

.character-card__head span,
.character-card__receipt,
.character-card a {
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 0.06em;
}

.character-card__head span {
  color: var(--accent);
  text-align: right;
  white-space: nowrap;
}

.level-meter {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
  margin: 18px 0;
}

.level-meter i {
  display: block;
  height: 4px;
  border-radius: 2px;
  background: var(--accent);
}

.level-meter i.is-empty { background: var(--border-hover); }

.character-card > p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.65;
  min-height: 46px;
  margin-bottom: 18px;
}

.character-card a,
.character-card__receipt {
  color: var(--text-muted);
  text-decoration: none;
}

.character-card a {
  border-bottom: 1px solid var(--border-hover);
  padding-bottom: 3px;
}

.character-card a:hover,
.character-card a:focus-visible { color: var(--accent); }

@media (max-width: 768px) {
  .capability-grid,
  .applied-learning__grid,
  .capability-details,
  .character-grid { grid-template-columns: 1fr; }

  .capability-card { min-height: 0; }

  .capability-card__proof { margin-top: 24px; }

  .learning-card { min-height: 0; }

  .learning-card a { margin-top: 24px; }

  .character-card__head { display: block; }

  .character-card__head span {
    display: block;
    text-align: left;
    margin-top: 7px;
  }

  .character-card > p { min-height: 0; }
}

/* ── Theme-switch transition guard ───────────────────────────
   Elements mid-transition don't re-resolve var()-derived colours when
   the theme tokens change, so they stay stuck on the old palette.
   Killing transitions for one frame around the swap forces a recompute. */
html.theme-switching,
html.theme-switching *,
html.theme-switching *::before,
html.theme-switching *::after {
  transition: none !important;
}

/* ── Skill Tree ──────────────────────────────────────────── */
.skill-tree__intro {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-faint);
  margin: -8px 0 40px;
  max-width: 62ch;
}

.skill-tree__scroller {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding-bottom: 8px;
}

.skill-tree__canvas {
  position: relative;
  /* exact px width/height are set by JS to the layout coordinate space,
     so node boxes and gaps stay 1:1. Narrower screens pan the scroller. */
  margin: 0 auto;
}

.skill-tree__edges {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.skill-edge {
  fill: none;
  stroke: var(--border);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
  transition: stroke 220ms var(--ease-out), opacity 220ms var(--ease-out);
}

.skill-edge--locked { stroke-dasharray: 3 5; opacity: 0.5; }

.is-focusing .skill-edge { opacity: 0.28; }

.skill-edge.edge--lit {
  stroke: var(--accent);
  opacity: 1;
  filter: drop-shadow(0 0 5px var(--accent-glow));
}

.skill-tree__nodes { position: absolute; inset: 0; }

.skill-node {
  position: absolute;
  /* standalone `translate` (not `transform`) so GSAP's scale animation
     can't clobber node positioning */
  translate: -50% -50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  width: 108px;
  padding: 9px 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 3px;
  cursor: pointer;
  font-family: var(--font-mono);
  transition: border-color var(--transition), box-shadow var(--transition),
              background var(--transition), opacity 220ms var(--ease-out);
}

.skill-node__name {
  font-size: 10px;
  line-height: 1.35;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  text-align: center;
  transition: color var(--transition);
}

.skill-node--root .skill-node__name {
  color: var(--text);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.skill-node--root { border-color: var(--border-hover); }

.skill-node__ticks { display: flex; gap: 2px; }

.skill-node__tick {
  width: 9px;
  height: 2px;
  background: var(--text-faint);
  transition: background var(--transition);
}

.skill-node__tick.is-on { background: var(--accent); }

.skill-node--in-progress { border-style: dashed; }
.skill-node--in-progress .skill-node__tick.is-on { background: var(--accent); opacity: 0.75; }

.skill-node--locked { opacity: 0.45; }
.skill-node--locked .skill-node__name { color: var(--text-faint); }

.is-focusing .skill-node { opacity: 0.32; }
.is-focusing .skill-node.is-lit { opacity: 1; }

.skill-node:hover,
.skill-node.is-lit,
.skill-node:focus-visible {
  border-color: var(--accent-glow);
  background: var(--accent-dim);
  box-shadow: 0 0 18px rgba(200,255,0,0.12);
}

.skill-node:hover .skill-node__name,
.skill-node.is-lit .skill-node__name { color: var(--accent); }

.skill-node:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

[data-theme="light"] .skill-node:hover,
[data-theme="light"] .skill-node.is-lit,
[data-theme="light"] .skill-node:focus-visible {
  box-shadow: 0 0 18px rgba(92,122,0,0.14);
}

[data-theme="light"] .skill-edge.edge--lit {
  filter: drop-shadow(0 0 4px rgba(92,122,0,0.4));
}

@keyframes skillPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(200,255,0,0.0); }
  50%      { box-shadow: 0 0 0 4px rgba(200,255,0,0.10); }
}

.skill-node--in-progress { animation: skillPulse 3s var(--ease-in-out) infinite; }

/* ── Tooltip ──────────────────────────────────────── */
.skill-tip {
  position: absolute;
  transform: translateX(-50%);
  width: 250px;
  padding: 13px 15px;
  background: var(--bg-surface);
  border: 1px solid var(--border-hover);
  border-radius: 3px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
  z-index: 5;
  pointer-events: auto;
}

.skill-tip__name {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--text);
  margin: 0 0 7px;
}

.skill-tip__meta { display: flex; align-items: center; gap: 10px; margin: 0 0 9px; }
.skill-tip__ticks { display: flex; gap: 2px; }

.skill-tip__status {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.skill-tip__status--unlocked    { color: var(--accent); }
.skill-tip__status--in-progress { color: var(--text-muted); }

.skill-tip__note {
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0 0 9px;
}

.skill-tip__label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 0 0 6px;
}

.skill-tip__evidence { display: flex; flex-direction: column; gap: 5px; }

.skill-tip__proof {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  text-align: left;
  background: none;
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 6px 8px;
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition);
}

.skill-tip__proof:hover,
.skill-tip__proof:focus-visible { color: var(--accent); border-color: var(--accent-glow); }

/* ── Legend ───────────────────────────────────────── */
.skill-tree__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 26px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.skill-legend__item { display: flex; align-items: center; gap: 7px; }

.skill-legend__dot {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  border: 1px solid var(--border);
}

.skill-legend__dot--unlocked    { background: var(--accent-dim); border-color: var(--accent-glow); }
.skill-legend__dot--in-progress { border-style: dashed; border-color: var(--accent-glow); }
.skill-legend__dot--locked      { opacity: 0.45; }

.skill-legend__item--hint { display: none; margin-left: auto; }

@media (max-width: 768px) {
  .skill-legend__item--hint { display: block; }
  .skill-tip { position: fixed; left: 16px !important; right: 16px; top: auto !important;
               bottom: 16px; width: auto; transform: none; }
}

/* ── Offer Section ───────────────────────────────────────── */
#offer {
  border-top: none;
}

#offer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--gradient-divider) 15%,
    var(--accent) 50%,
    var(--gradient-divider) 85%,
    transparent 100%
  );
  opacity: 0.35;
}

.offer-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: start;
}

.offer-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.offer-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 58px);
  font-weight: 650;
  line-height: 0.98;
  color: var(--text);
  max-width: 780px;
}

.offer-text {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 620px;
  margin-top: 28px;
}

.offer-proof {
  display: grid;
  gap: 1px;
  background: var(--border);
}

.offer-card {
  min-height: 176px;
  padding: 26px 28px;
  background: var(--bg-card);
}

.offer-card__num {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 20px;
}

.offer-card__title {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 12px;
}

.offer-card__text {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-muted);
}

/* ── Contact / Footer ─────────────────────────────────────── */
#contact {
  border-top: none;
  position: relative;
}

/* Subtle gradient background for contact section */
#contact::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: radial-gradient(ellipse at 50% 100%, rgba(200,255,0,0.03) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

[data-theme="light"] #contact::after {
  background: radial-gradient(ellipse at 50% 100%, rgba(92,122,0,0.03) 0%, transparent 70%);
}

.contact-headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(48px, 8vw, 96px);
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 0.9;
  margin-bottom: 56px;
  position: relative;
  z-index: 1;
}

.newsletter-signup {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  margin-bottom: 56px;
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid var(--border);
  background: var(--surface);
  position: relative;
  z-index: 1;
}

.newsletter-signup__eyebrow {
  display: block;
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.newsletter-signup__title {
  max-width: 520px;
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 52px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--text);
}

.newsletter-signup__text {
  max-width: 520px;
  margin: 0 0 26px;
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.65;
  color: var(--text-muted);
}

.newsletter-signup__fallback {
  display: inline-block;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text);
  text-decoration: none;
}

.newsletter-signup__form-shell {
  min-width: 0;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--border);
  background:
    linear-gradient(135deg, var(--accent-dim), transparent 54%),
    var(--bg-card);
}

.newsletter-signup__form-kicker {
  display: block;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.newsletter-signup__form-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 650;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--text);
}

.newsletter-signup__form-copy {
  max-width: 520px;
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
}

.newsletter-signup__fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  border: 1px solid var(--border-hover);
  background: var(--bg);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.newsletter-signup__fields:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.newsletter-signup__input {
  width: 100%;
  border: 0;
  outline: 0;
  padding: 16px 18px;
  background: transparent;
  font: inherit;
  font-size: 16px;
  color: var(--text);
}

.newsletter-signup__input::placeholder {
  color: var(--text-faint);
}

.newsletter-signup__button {
  min-height: 54px;
  padding: 0 22px;
  border: 0;
  border-left: 1px solid var(--border-hover);
  background: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #0a0a0a;
  cursor: pointer;
  transition: filter var(--transition), transform var(--transition);
}

.newsletter-signup__button:hover {
  filter: brightness(0.9);
}

.newsletter-signup__button:active {
  transform: translateY(1px);
}

.newsletter-signup__button:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: -4px;
}

.newsletter-signup__privacy {
  margin: 13px 0 0;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.5;
  color: var(--text-faint);
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

.contact-link-item {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: padding-left var(--transition);
}

.contact-link-item:hover {
  padding-left: 16px;
}

.contact-link-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-faint);
  transition: color var(--transition);
}

.contact-link-item:hover .contact-link-label {
  color: var(--accent);
}

.contact-link-value {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.5vw, 28px);
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.01em;
  transition: color var(--transition);
}

.contact-link-item:hover .contact-link-value {
  color: var(--accent);
}

.contact-link-arrow {
  width: 20px;
  height: 20px;
  color: var(--text-faint);
  transition: color var(--transition), transform var(--transition);
  flex-shrink: 0;
}

.contact-link-item:hover .contact-link-arrow {
  color: var(--accent);
  transform: translate(4px, -4px);
}

.footer {
  width: min(calc(100% - clamp(48px, 10vw, 160px)), var(--max-w));
  margin: 0 auto;
  padding: 32px 0 40px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.footer__copy {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.footer__mark {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

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

/* ── Magnetic Button ──────────────────────────────────────── */
.magnetic {
  position: relative;
  display: inline-block;
  transition: transform 0.3s var(--ease-out);
  will-change: transform;
}

/* ── Scroll reveal ───────────────────────────────────────── */
.reveal {
  will-change: transform, opacity, clip-path;
}

/* ── Text Scramble cursor blink ───────────────────────────── */
.scramble-cursor {
  display: inline-block;
  width: 2px;
  height: 0.85em;
  background: var(--accent);
  margin-left: 2px;
  vertical-align: middle;
  animation: blink 0.8s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .role-hubs__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1px;
  }

  .video-proof__grid {
    grid-template-columns: 1fr;
  }

  .archive-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
  }

  .about-cols {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .panel {
    width: 100vw;
  }
}

@media (max-width: 600px) {
  .nav {
    height: auto;
    padding: 16px clamp(16px, 4vw, 24px);
  }

  .nav__inner {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 12px;
  }

  .nav__logo {
    font-size: 11px;
    letter-spacing: 0.12em;
    flex-shrink: 0;
  }

  .nav__links {
    gap: 12px;
  }

  .nav__icon-link {
    display: none;
  }

  .nav__link {
    font-size: 9px;
    letter-spacing: 0.08em;
  }

  .theme-toggle {
    width: 32px;
    height: 32px;
  }

  .theme-toggle svg {
    width: 14px;
    height: 14px;
  }

  .archive-grid {
    grid-template-columns: 1fr;
    gap: 1px;
  }

  .video-proof {
    margin-top: 64px;
  }

  .video-proof__header {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .video-card__body {
    min-height: 0;
  }

  .role-hubs {
    padding-top: 28px;
  }

  .role-hubs__grid {
    grid-template-columns: 1fr;
  }

  .role-hub {
    min-height: auto;
    padding: 16px;
  }

  .section,
  #work {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .projects-grid {
    margin-top: 28px;
  }

  .project-card__body {
    padding: 22px 20px 24px;
  }

  .hero__description {
    margin-top: 14px;
    max-width: 340px;
  }

  .hero {
    justify-content: flex-start;
    /* Reserve a stage for the signature particle name above the portfolio copy. */
    padding-top: calc(var(--nav-h) + 170px);
    padding-bottom: 40px;
  }

  .hero__label,
  .hero__position,
  .hero__description,
  .hero__role-strip,
  .hero__actions {
    opacity: 1;
    transform: none;
  }

  .hero__name-fallback {
    display: block;
    position: relative;
    inset: auto;
    width: 100%;
    transform: none;
    margin: 18px 0 24px;
  }

  .hero__name-static {
    font-size: clamp(48px, 15vw, 58px);
    line-height: 0.84;
  }

  .hero__role-strip {
    gap: 6px;
    margin-bottom: 16px;
    padding: 0 18px;
  }

  .hero__role-label {
    flex-basis: 100%;
    margin-right: 0;
  }

  .hero__role {
    font-size: 9px;
    padding: 6px 8px;
  }

  .hero__position {
    font-size: clamp(28px, 9vw, 38px);
  }

  .hero__actions {
    width: min(100%, 340px);
    flex-direction: column;
  }

  .hero__action {
    width: 100%;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .offer-layout {
    grid-template-columns: 1fr;
  }

  .offer-card {
    min-height: auto;
    padding: 22px 20px;
  }

  .contact-headline {
    margin-bottom: 40px;
  }

  .newsletter-signup {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 40px;
    padding: 22px 18px;
  }

  .newsletter-signup__form-shell {
    padding: 22px 18px;
  }

  .newsletter-signup__fields {
    grid-template-columns: 1fr;
  }

  .newsletter-signup__button {
    min-height: 52px;
    border-top: 1px solid var(--border-hover);
    border-left: 0;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .contact-link-item {
    grid-template-columns: 80px 1fr auto;
    gap: 12px;
    padding: 20px 0;
  }

  .contact-link-value {
    font-size: 14px;
  }

  .panel__details {
    padding: 24px 20px 0;
  }

  .panel__title {
    font-size: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__label,
  .hero__position,
  .hero__description,
  .hero__role-strip,
  .hero__actions,
  .reveal,
  .project-card {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    animation: none !important;
  }

  .skill-node {
    opacity: 1 !important;
    animation: none !important;
  }

  .skill-node--locked { opacity: 0.45 !important; }

  /* motion removed — keep "leveling" state legible via a static ring */
  .skill-node--in-progress {
    box-shadow: 0 0 0 2px var(--accent-dim);
  }

  .skill-edge { stroke-dasharray: none !important; stroke-dashoffset: 0 !important; }
  .skill-edge--locked { stroke-dasharray: 3 5 !important; }
}

/* ── Lenis (smooth scroll) body class ────────────────────── */
html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

/* ── Body scroll lock ────────────────────────────────────── */
body.panel-open {
  overflow: hidden;
}

/* ── Sidebar Scroll Indicator ──────────────────────── */
.scroll-nav {
  position: fixed;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 14px;
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
}

.scroll-nav.visible {
  opacity: 1;
}

/* The thin vertical track line */
.scroll-nav__track {
  width: 2px;
  height: 140px;
  background: var(--border);
  border-radius: 1px;
  position: relative;
  overflow: hidden;
}

/* Animated progress fill */
.scroll-nav__progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: var(--accent);
  border-radius: 1px;
  transition: height 0.3s var(--ease-out);
  box-shadow: 0 0 8px var(--accent-glow);
}

/* Dot container */
.scroll-nav__dots {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 20px;
}

/* Individual dot */
.scroll-nav__dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-faint);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.3s var(--ease-out),
              transform 0.3s var(--ease-out),
              box-shadow 0.3s var(--ease-out);
}

.scroll-nav__dot:hover {
  background: var(--text-muted);
  transform: scale(1.4);
}

.scroll-nav__dot.active {
  background: var(--accent);
  transform: scale(1.5);
  box-shadow: 0 0 12px var(--accent-glow), 0 0 4px var(--accent-glow);
}

/* Label that appears on hover */
.scroll-nav__label {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}

.scroll-nav__dot:hover .scroll-nav__label,
.scroll-nav__dot.active .scroll-nav__label {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.scroll-nav__dot.active .scroll-nav__label {
  color: var(--accent);
}

/* Hide on mobile — not enough room */
@media (max-width: 900px) {
  .scroll-nav { display: none; }
}

/* ── Theme transition smoothing ──────────────────────────── */
body,
.nav,
.project-card,
.project-card__body,
.project-card__image,
.archive-card,
.archive-card__body,
.archive-card__image,
.panel,
.panel__close,
.skill-pill,
.tool-pill,
.archive-toggle,
.contact-link-item,
.contact-link-label,
.contact-link-value,
.contact-link-arrow,
.footer,
.footer__copy,
.footer__mark,
.section__num,
.section__rule,
.section__title,
.about-col__heading,
.about-col__text,
.skills-group__heading,
.contact-headline,
.hero__label,
.hero__position,
.hero__description,
.hero__role-note {
  transition-property: background-color, color, border-color, box-shadow;
  transition-duration: 0.3s;
  transition-timing-function: ease;
}

/* ── Approved hero and travel-film refinement ───────────── */
@media (min-width: 901px) {
  .hero {
    padding-bottom: clamp(44px, 5vh, 64px);
  }

  .hero__position {
    font-size: clamp(48px, 4.6vw, 70px);
    line-height: 0.94;
  }

  .hero__description {
    max-width: 640px;
    font-size: clamp(17px, 1.35vw, 20px);
    line-height: 1.48;
  }

  .hero__action {
    min-width: 170px;
    padding: 13px 20px;
    font-size: 11px;
  }
}

@media (max-width: 900px) {
  .hero {
    min-height: 100svh;
    padding-top: calc(var(--nav-h) + 210px);
  }

  .hero__position {
    font-size: clamp(34px, 10vw, 44px);
    line-height: 0.95;
  }

  .hero__description {
    font-size: 16px;
    line-height: 1.48;
  }

  .hero__action {
    min-height: 48px;
    display: grid;
    place-items: center;
  }
}

.video-proof__grid {
  max-width: 720px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.video-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #090909;
}

.video-card__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 360ms var(--ease-out), filter 360ms var(--ease-out);
}

.video-card__media:hover img,
.video-card__media:focus-visible img {
  transform: scale(1.025);
  filter: brightness(0.78);
}

.video-card__play {
  position: absolute;
  left: 18px;
  bottom: 18px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  font-size: 14px;
  padding-left: 2px;
}

.video-card__body {
  min-height: 158px;
  padding: 16px;
}

.video-card__title {
  font-size: 18px;
}

.video-card__text {
  font-size: 12px;
  margin-bottom: 14px;
}

.video-proof__header {
  max-width: 820px;
  margin-bottom: 22px;
}

.video-proof__title {
  font-size: clamp(30px, 3vw, 42px);
}

.video-proof__intro {
  max-width: 600px;
  font-size: 14px;
}

@media (max-width: 700px) {
  .video-proof__grid {
    grid-template-columns: 1fr;
  }

  .video-card__body {
    min-height: 0;
    padding: 16px;
  }
}
