/* ============================================================
   Saket Karve — Personal site
   Dark modern · interactive
   ============================================================ */

/* -------- Tokens -------- */
:root {
  --bg: #07090f;
  --bg-2: #0d111c;
  --surface: #131826;
  --surface-2: #1a2033;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text: #e9ecf5;
  --text-dim: #a5adbf;
  --text-mute: #6b7488;

  --accent: #f5a623;         /* warm amber */
  --accent-soft: #ffcf7a;
  --accent-2: #7aa2ff;       /* cool cyan-blue for contrast */
  --accent-3: #ff7a90;       /* rare highlight */

  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;

  --shadow-1: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
  --shadow-2: 0 2px 6px rgba(0,0,0,.5), 0 24px 60px rgba(0,0,0,.5);

  --container: 1180px;
  --gutter: clamp(20px, 5vw, 56px);

  --ease: cubic-bezier(.2,.7,.2,1);
  --ease-emphatic: cubic-bezier(.16,1,.3,1);
}

/* -------- Reset -------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}
p { margin: 0 0 0.85em; }
a { color: var(--accent-soft); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--accent); }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { padding: 0; margin: 0; list-style: none; }
::selection { background: var(--accent); color: #111; }

/* -------- Background layer -------- */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background: radial-gradient(1200px 800px at 10% -10%, rgba(122, 162, 255, 0.15), transparent 60%),
              radial-gradient(1000px 600px at 90% 10%, rgba(245, 166, 35, 0.10), transparent 60%),
              radial-gradient(1400px 900px at 50% 120%, rgba(122, 162, 255, 0.08), transparent 60%),
              var(--bg);
}
.bg-mesh {
  position: absolute; inset: -20% -20% -20% -20%;
  background:
    radial-gradient(600px 400px at 20% 20%, rgba(245, 166, 35, 0.10), transparent 60%),
    radial-gradient(500px 400px at 80% 60%, rgba(122, 162, 255, 0.12), transparent 60%),
    radial-gradient(700px 500px at 50% 90%, rgba(255, 122, 144, 0.06), transparent 60%);
  filter: blur(40px);
  animation: mesh-drift 30s ease-in-out infinite alternate;
}
@keyframes mesh-drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(-2%, 1.5%, 0) scale(1.05); }
  100% { transform: translate3d(2%, -1.5%, 0) scale(1); }
}
.bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}
#particles { position: absolute; inset: 0; }

/* -------- Nav -------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 14px var(--gutter);
  transition: padding .3s var(--ease), background .3s var(--ease), backdrop-filter .3s var(--ease);
}
.nav.scrolled {
  padding: 8px var(--gutter);
  background: rgba(7,9,15,.72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  color: var(--text); font-weight: 600; letter-spacing: -0.01em;
}
.nav-logo:hover { color: var(--text); }
.logo-mark {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-3) 100%);
  color: #17110a;
  border-radius: 9px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 14px;
}
.logo-text { font-family: 'Space Grotesk', sans-serif; font-size: 15px; }
.nav-links {
  display: flex; align-items: center; gap: 4px;
}
.nav-links a {
  color: var(--text-dim);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,.05); }
.nav-links a.active { color: var(--accent-soft); }
.nav-links a.nav-cta {
  color: #17110a;
  background: var(--accent);
  margin-left: 6px;
}
.nav-links a.nav-cta:hover { background: var(--accent-soft); color: #17110a; }
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  position: relative;
}
.nav-toggle span {
  display: block; position: absolute; left: 8px; right: 8px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s var(--ease), top .3s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 13px; }
.nav-toggle span:nth-child(2) { top: 19px; }
.nav-toggle span:nth-child(3) { top: 25px; }
.nav-toggle.open span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { top: 19px; transform: rotate(-45deg); }

/* -------- Layout -------- */
main { position: relative; z-index: 1; }
.section {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(60px, 10vw, 130px) var(--gutter) clamp(40px, 6vw, 80px);
}
.section-head { margin-bottom: 48px; }
.section-num {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.14em;
  margin-bottom: 12px;
}
.section-head h2 {
  font-size: clamp(30px, 4.5vw, 46px);
  margin-bottom: 8px;
}
.section-lede {
  color: var(--text-dim);
  font-size: clamp(15px, 1.6vw, 18px);
  max-width: 640px;
}

/* -------- Buttons -------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
  cursor: pointer;
}
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary { background: var(--accent); color: #17110a; }
.btn-primary:hover { background: var(--accent-soft); color: #17110a; box-shadow: 0 8px 24px rgba(245,166,35,0.25); }
.btn-ghost {
  color: var(--text);
  border-color: var(--border-strong);
  background: rgba(255,255,255,.02);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-soft); }

/* -------- HERO -------- */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 120px 0 60px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Custom robotics scene (SVG) — spans full viewport, sits BEHIND content */
.hero-scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  width: 100%;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(30px, 6vw, 80px);
  align-items: center;
}

/* SVG-driven animations */
.circuit-flow {
  animation: circuit-flow 3s linear infinite;
}
@keyframes circuit-flow {
  from { stroke-dashoffset: 0; }
  to   { stroke-dashoffset: -60; }
}

.radar-ring {
  transform-origin: center;
  transform-box: fill-box;
  animation: radar 3.6s ease-out infinite;
  opacity: 0;
}
@keyframes radar {
  0%   { transform: scale(0.15); opacity: 0.8; }
  70%  { opacity: 0.4; }
  100% { transform: scale(3.2); opacity: 0; }
}

.nn-node { animation: nn-pulse 2.4s ease-in-out infinite; }
@keyframes nn-pulse {
  0%,100% { fill: #0d111c; }
  50%     { fill: #7aa2ff; }
}

.wf-cube {
  animation: cube-float 8s ease-in-out infinite alternate;
}
@keyframes cube-float {
  from { opacity: 0.28; }
  to   { opacity: 0.5; }
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-dim);
  font-size: 13px;
  background: rgba(255,255,255,.02);
  margin-bottom: 22px;
}
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #4ade80; box-shadow: 0 0 12px #4ade80;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }

.hero-title {
  font-size: clamp(38px, 6.2vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
}
.title-line { display: block; }
.accent {
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent-3) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  color: var(--text-dim);
  font-size: clamp(15px, 1.6vw, 18px);
  max-width: 560px;
  margin-bottom: 28px;
}
.pill {
  display: inline-block;
  padding: 2px 10px;
  margin: 0 2px;
  border-radius: 999px;
  background: rgba(245,166,35,0.08);
  border: 1px solid rgba(245,166,35,0.25);
  color: var(--accent-soft);
  font-size: 13px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: -0.01em;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }

.hero-links {
  display: flex;
  gap: 10px;
  margin-bottom: 32px;
  align-items: center;
}
.hero-links a {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  color: var(--text-dim);
  transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease), transform .2s var(--ease);
}
.hero-links a:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(245,166,35,0.08);
  transform: translateY(-2px);
}
.hero-links svg { width: 18px; height: 18px; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 3vw, 32px);
  max-width: 460px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.hero-stats > div { display: flex; flex-direction: column; }
.stat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}
.stat-label { font-size: 12px; color: var(--text-mute); text-transform: uppercase; letter-spacing: 0.06em; }

.hero-visual { position: relative; display: grid; place-items: center; }
.portrait {
  position: relative;
  width: min(420px, 100%);
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-2);
  isolation: isolate;
}
.portrait img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 8s ease-out;
}
.portrait:hover img { transform: scale(1.04); }
.portrait::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(7,9,15,0.6) 100%);
  z-index: 1;
}
.portrait-glow {
  position: absolute;
  inset: -30%;
  background: radial-gradient(circle at 30% 20%, rgba(245,166,35,0.35), transparent 55%);
  z-index: -1;
  filter: blur(30px);
  animation: glow-drift 10s ease-in-out infinite alternate;
}
@keyframes glow-drift {
  0%   { transform: translate(-4%, -4%); }
  100% { transform: translate(4%, 4%); }
}
.portrait-ring {
  position: absolute;
  inset: -14px;
  border-radius: calc(var(--radius-lg) + 14px);
  border: 1px solid var(--border-strong);
  pointer-events: none;
}

.scroll-cue {
  position: absolute;
  bottom: 30px; left: 50%;
  transform: translateX(-50%);
  width: 24px; height: 40px;
  border: 1.5px solid var(--border-strong);
  border-radius: 12px;
  opacity: 0.7;
  transition: opacity .3s var(--ease);
}
.scroll-cue:hover { opacity: 1; }
.scroll-cue span {
  display: block; width: 3px; height: 8px;
  background: var(--accent-soft);
  border-radius: 2px;
  margin: 8px auto;
  animation: scroll-dot 2s ease-in-out infinite;
}
@keyframes scroll-dot {
  0%   { transform: translateY(0); opacity: 1; }
  70%  { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* -------- ABOUT -------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(30px, 5vw, 60px);
}
.about-copy p { color: var(--text-dim); font-size: 16px; line-height: 1.75; }
.about-copy strong { color: var(--text); font-weight: 600; }
.about-side { display: grid; gap: 14px; align-content: start; }
.side-card {
  padding: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color .2s var(--ease), transform .3s var(--ease);
}
.side-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.side-card h4 {
  font-size: 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
}
.side-card p { margin: 0; color: var(--text); font-size: 15px; }
.side-card .muted { color: var(--text-mute); font-size: 13px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li {
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  color: var(--text-dim);
  background: rgba(255,255,255,.02);
}
.tags.mono li { font-family: 'JetBrains Mono', monospace; }

/* -------- TIMELINE -------- */
.timeline {
  position: relative;
  margin-left: 8px;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 12px; bottom: 12px; left: 15px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--border) 40%, var(--border) 100%);
  opacity: 0.35;
}
.timeline-item {
  position: relative;
  padding: 4px 0 24px 52px;
}
.tl-marker {
  position: absolute;
  left: 8px; top: 24px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 4px rgba(245,166,35,0.10);
  z-index: 1;
}
.timeline-item[data-open="true"] .tl-marker,
.timeline-item.open .tl-marker { background: var(--accent); }

.tl-head {
  width: 100%;
  text-align: left;
  padding: 20px 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color .2s var(--ease), transform .3s var(--ease);
  position: relative;
}
.tl-head:hover { border-color: var(--border-strong); }
.tl-when { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.tl-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.05em;
}
.tl-badge {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  color: var(--text-mute);
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
  font-family: 'JetBrains Mono', monospace;
}
.tl-badge.current {
  color: #4ade80;
  border-color: rgba(74,222,128,0.3);
  background: rgba(74,222,128,0.08);
}
.tl-head h3 { font-size: clamp(18px, 2vw, 22px); margin-bottom: 4px; }
.tl-org { color: var(--text-dim); font-size: 14px; margin: 0; }
.tl-caret {
  position: absolute;
  top: 20px; right: 20px;
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-dim);
  font-size: 16px;
  transition: transform .3s var(--ease), background .2s var(--ease), color .2s var(--ease);
}
.timeline-item[data-open="true"] .tl-caret,
.timeline-item.open .tl-caret {
  transform: rotate(45deg);
  background: var(--accent);
  color: #17110a;
  border-color: var(--accent);
}

.tl-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .5s var(--ease);
  padding: 0 24px;
}
.timeline-item[data-open="true"] .tl-body,
.timeline-item.open .tl-body {
  max-height: 1200px;
  padding: 4px 24px 20px;
}
.tl-body ul:not(.chip-row) {
  padding-left: 0;
  list-style: none;
}
.tl-body ul:not(.chip-row) li {
  position: relative;
  padding: 8px 0 8px 22px;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  line-height: 1.65;
}
.tl-body ul:not(.chip-row) li::before {
  content: '';
  position: absolute;
  left: 0; top: 16px;
  width: 10px; height: 2px;
  background: var(--accent);
}
.tl-body strong { color: var(--text); font-weight: 600; }

/* ---- Featured work callout (inside a timeline body) ---- */
.tl-featured {
  margin: 20px 0 16px;
  padding: 22px;
  border: 1px solid rgba(245,166,35,0.28);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(245,166,35,0.06), rgba(245,166,35,0.01));
}
.tl-featured-eyebrow {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.10em;
  margin-bottom: 8px;
}
.tl-featured-head h4 { font-size: 18px; margin-bottom: 8px; }
.tl-featured-head p { color: var(--text-dim); font-size: 14px; margin: 0 0 16px; }
.tl-featured-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 12px;
}
.fp-shot {
  display: block;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0d111c;
  color: var(--text);
  text-decoration: none;
  transition: transform .3s var(--ease), border-color .2s var(--ease), box-shadow .3s var(--ease);
}
.fp-shot:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(245,166,35,0.15);
  color: var(--text);
}
.fp-shot img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  display: block;
}
.fp-shot figcaption {
  padding: 10px 12px;
  font-size: 12px;
  color: var(--text-dim);
  border-top: 1px solid var(--border);
  line-height: 1.35;
}
.fp-shot figcaption strong { color: var(--text); font-weight: 600; }
.tl-featured-source {
  font-size: 12px;
  color: var(--text-mute);
  margin: 0;
  font-family: 'JetBrains Mono', monospace;
}

.chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.chip-row li {
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(122,162,255,0.08);
  border: 1px solid rgba(122,162,255,0.2);
  color: var(--accent-2);
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
}

/* -------- EDUCATION -------- */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}
.edu-card {
  padding: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform .3s var(--ease), border-color .2s var(--ease), box-shadow .3s var(--ease);
}
.edu-card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow-1); }
.edu-card header {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
  margin-bottom: 14px;
}
.edu-card h3 { font-size: 20px; }
.edu-badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--accent);
  border: 1px solid rgba(245,166,35,0.3);
  background: rgba(245,166,35,0.08);
  white-space: nowrap;
}
.edu-degree { color: var(--text); font-weight: 500; margin: 0; }
.edu-field { color: var(--text-dim); margin: 2px 0 4px; }
.edu-loc { color: var(--text-mute); font-size: 13px; margin: 0 0 14px; }

/* -------- PUBLICATIONS -------- */
.pub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.pub-card {
  padding: 26px;
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform .3s var(--ease), border-color .2s var(--ease), box-shadow .3s var(--ease);
  display: flex; flex-direction: column; gap: 14px;
}
.pub-card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow-1); }
.pub-venue { display: flex; align-items: center; gap: 8px; }
.venue-tag {
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(122,162,255,0.10);
  border: 1px solid rgba(122,162,255,0.25);
  color: var(--accent-2);
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: -0.01em;
}
.pub-card h3 { font-size: 18px; line-height: 1.3; }
.pub-card p { color: var(--text-dim); font-size: 14px; margin: 0; }
.pub-meta { margin-top: auto; }
.pub-link {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--accent-soft);
}

/* -------- PRESS -------- */
.press-filters {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 24px;
}
.press-filter {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,.02);
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 500;
  transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}
.press-filter:hover { color: var(--text); border-color: var(--border-strong); }
.press-filter.active {
  color: #17110a;
  background: var(--accent);
  border-color: var(--accent);
}

.press-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.press-card {
  padding: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform .3s var(--ease), border-color .2s var(--ease), box-shadow .3s var(--ease);
  display: flex; flex-direction: column; gap: 10px;
  color: var(--text);
  min-height: 210px;
}
.press-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(245,166,35,0.08);
  color: var(--text);
}
.press-card:hover .press-arrow { transform: translate(3px, -3px); color: var(--accent); }
.press-card.hidden { display: none; }

.press-outlet {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.10em;
}
.press-card h3 { font-size: 17px; line-height: 1.35; }
.press-card p { color: var(--text-dim); font-size: 14px; margin: 0; }
.press-foot {
  margin-top: auto;
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 6px;
}
.press-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-mute);
}
.press-arrow {
  font-size: 16px;
  color: var(--text-mute);
  transition: transform .25s var(--ease), color .2s var(--ease);
}

/* -------- THEATER -------- */
.theater-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.tab {
  padding: 14px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01));
  text-align: left;
  transition: border-color .2s var(--ease), transform .2s var(--ease), background .2s var(--ease);
  min-width: 200px;
  flex: 1 1 200px;
}
.tab:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.tab.active {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(245,166,35,.10), rgba(245,166,35,.02));
}
.tab-name {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
  margin-bottom: 2px;
}
.tab-sub {
  display: block;
  font-size: 12px;
  color: var(--text-mute);
}
.tab.active .tab-sub { color: var(--accent-soft); }

.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fade-in .5s var(--ease) both; }
@keyframes fade-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.theater-intro {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 30px;
  align-items: center;
  margin-bottom: 32px;
}
.theater-intro h3 { font-size: clamp(22px, 3vw, 30px); margin-bottom: 12px; }
.theater-intro p { color: var(--text-dim); }
.theater-hero {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  position: relative;
}
.theater-hero img {
  width: 100%; height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  transition: transform 6s ease-out;
}
.theater-hero:hover img { transform: scale(1.04); }
.theater-hero figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 16px;
  color: var(--text);
  font-size: 13px;
  background: linear-gradient(transparent, rgba(7,9,15,0.85));
}

.production-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 30px;
}
.prod-card {
  padding: 20px 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform .3s var(--ease), border-color .2s var(--ease), box-shadow .3s var(--ease);
  display: flex; flex-direction: column; gap: 8px;
  position: relative;
  color: var(--text);
  text-decoration: none;
}
.prod-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(245,166,35,0.10);
  color: var(--text);
}
.prod-card:hover .prod-arrow { transform: translate(2px, -2px); }
.prod-card:hover .prod-link-type { color: var(--accent); }

.prod-card.featured {
  border-color: rgba(245,166,35,0.3);
  background: linear-gradient(180deg, rgba(245,166,35,0.06), rgba(245,166,35,0.01));
}
.prod-card.featured::before {
  content: '★';
  position: absolute;
  top: 16px; right: 16px;
  color: var(--accent);
}
.prod-role {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.prod-card h4 { font-size: 18px; line-height: 1.25; }
.prod-card p { color: var(--text-dim); font-size: 14px; margin: 0; }

.prod-foot {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.prod-year {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-mute);
}
.prod-link-type {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 0.04em;
  display: inline-flex; align-items: center; gap: 4px;
  transition: color .2s var(--ease);
}
.prod-arrow {
  transition: transform .25s var(--ease);
  display: inline-block;
}

.subhead {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 24px 0 16px;
}
.concert-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  margin-bottom: 30px;
}
.concert {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.02);
  display: flex; align-items: center; justify-content: space-between;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.concert:hover { border-color: var(--accent); background: rgba(245,166,35,0.03); }
.concert .artist { color: var(--text); font-weight: 500; }
.concert .year { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--text-mute); }

/* -------- INTERESTS -------- */
.interests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.interest-card {
  margin: 0;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 4 / 5;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.interest-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-1); }
.interest-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 8s ease-out, filter .4s var(--ease);
  filter: brightness(0.85);
}
.interest-card:hover img { transform: scale(1.08); filter: brightness(1); }
.interest-card figcaption {
  position: absolute; inset: 0;
  padding: 24px;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(180deg, transparent 50%, rgba(7,9,15,0.85) 100%);
  color: var(--text);
}
.interest-card h4 { font-size: 20px; margin-bottom: 4px; }
.interest-card p { color: var(--text-dim); font-size: 13px; margin: 0; }

/* -------- CONTACT -------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.contact-card {
  display: flex; align-items: center; gap: 16px;
  padding: 22px 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  transition: transform .3s var(--ease), border-color .2s var(--ease), box-shadow .3s var(--ease);
}
.contact-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(245,166,35,0.10);
  color: var(--text);
}
.contact-icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(245,166,35,0.08);
  border: 1px solid rgba(245,166,35,0.25);
  color: var(--accent);
  flex-shrink: 0;
}
.contact-icon svg { width: 22px; height: 22px; }
.contact-card h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); margin-bottom: 4px; font-family: 'JetBrains Mono', monospace; font-weight: 500; }
.contact-card p { margin: 0; font-size: 15px; }
.email-display .ea {
  color: var(--text-mute);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  margin: 0 3px;
  vertical-align: 1px;
}

/* -------- FOOTER -------- */
.footer {
  padding: 40px var(--gutter);
  border-top: 1px solid var(--border);
  margin-top: 60px;
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  color: var(--text-mute);
  font-size: 13px;
}
.footer p { margin: 0; }
.muted { color: var(--text-mute); }

/* -------- Reveal animation -------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease-emphatic), transform .8s var(--ease-emphatic); }
.reveal.in { opacity: 1; transform: none; }

/* -------- Responsive -------- */
@media (max-width: 900px) {
  /* Hide the crisp SVG scene on mobile — the mesh + particles are enough backdrop */
  .hero-scene { opacity: 0.5; }

  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    top: 0; right: 0;
    bottom: 0;
    width: min(320px, 85vw);
    background: rgba(13,17,28,0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid var(--border);
    padding: 90px 24px 24px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    transform: translateX(100%);
    transition: transform .35s var(--ease-emphatic);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { padding: 14px 16px; font-size: 16px; }
  .nav-links a.nav-cta { margin: 8px 0 0; text-align: center; }

  .hero { min-height: auto; padding-top: 130px; padding-bottom: 40px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; }
  .portrait { max-width: 320px; }
  .scroll-cue { display: none; }

  .about-grid { grid-template-columns: 1fr; }
  .theater-intro { grid-template-columns: 1fr; }
  .theater-hero { max-height: 300px; }

  .hero-stats { max-width: 100%; }
  .hero-title { font-size: clamp(34px, 8vw, 52px); }
}

@media (max-width: 520px) {
  .hero-scene { display: none; }
  .nav-inner .logo-text { display: none; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
  .tab { min-width: 100%; }
  .section-head { margin-bottom: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  html { scroll-behavior: auto; }
}
