/* ============================================================
   Design tokens
   ============================================================ */
:root {
  --bg: #08090b;
  --surface: #101114;
  --surface-2: #16171b;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text-primary: #f2f3f5;
  --text-secondary: #9a9ca5;
  --text-tertiary: #6b6d76;

  --accent-a: #6c5ce7;
  --accent-b: #4fd1e8;
  --accent-gradient: linear-gradient(120deg, var(--accent-a), var(--accent-b));

  /* per-project accents */
  --proj-pecto: #17b897;
  --proj-up: #6a8dff;
  --proj-manipal: #14b8a6;
  --proj-gsg: #ff6a3d;
  --proj-vision: #b48cff;

  /* theme-dependent surface treatments — overridden wholesale by
     html[data-theme="light"] below so every themed surface (nav, grid,
     ambient glow, contact card) flips together */
  --nav-bg: rgba(8, 9, 11, 0.72);
  --nav-bg-scrolled: rgba(8, 9, 11, 0.86);
  --nav-bg-mobile: rgba(8, 9, 11, 0.96);
  --grid-line: rgba(255, 255, 255, 0.035);
  --ambient-glow: rgba(108, 92, 231, 0.28);

  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 22px;

  --font-display: "Inter Tight", "Inter", -apple-system, sans-serif;
  --font-body: "Inter", -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

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

/* ============================================================
   Light theme
   Toggled via a `data-theme="light"` attribute on <html>, set by the
   theme-toggle button in the nav (see script.js). WCAG AA-checked:
   text-primary/secondary/tertiary and every accent-as-text pairing
   below clears 4.5:1 against both --bg and --surface.
   ============================================================ */
html[data-theme="light"] {
  --bg: #ffffff;
  --surface: #f5f6f8;
  --surface-2: #eceef2;
  --border: rgba(15, 17, 21, 0.10);
  --border-strong: rgba(15, 17, 21, 0.18);
  --text-primary: #14151a;
  --text-secondary: #52555f;
  --text-tertiary: #6b6e78;

  --accent-a: #3730a3;
  --accent-b: #0f766e;

  --proj-pecto: #0d7d6f;
  --proj-up: #3730a3;
  --proj-manipal: #0d7d6f;
  --proj-gsg: #9a4a12;
  --proj-vision: #6d3fc9;

  --nav-bg: rgba(255, 255, 255, 0.78);
  --nav-bg-scrolled: rgba(255, 255, 255, 0.92);
  --nav-bg-mobile: rgba(255, 255, 255, 0.97);
  --grid-line: rgba(15, 17, 21, 0.05);
  --ambient-glow: rgba(55, 48, 163, 0.09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 650;
  letter-spacing: -0.02em;
  margin: 0;
}

p { margin: 0; }

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

:focus-visible {
  outline: 2px solid var(--accent-b);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============================================================
   Layout helpers
   ============================================================ */
.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
}

section { position: relative; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before {
  content: "";
  width: 14px;
  height: 1px;
  background: var(--text-tertiary);
}

/* ============================================================
   Background grid + ambient glow (signature ambient layer)
   Both react to the active theme via CSS variables — no glow-blob or
   grid-line color is hardcoded here, so light/dark stay in sync
   automatically with everything else.
   ============================================================ */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 90%);
}

.bg-glow {
  position: fixed;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 700px;
  background: radial-gradient(closest-side, var(--ambient-glow), transparent 70%);
  filter: blur(10px);
  z-index: -1;
  pointer-events: none;
}

/* ============================================================
   Nav
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-mark {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent-gradient);
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid var(--border-strong);
}
.logo-mark img { width: 100%; height: 100%; object-fit: cover; display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  color: var(--text-secondary);
}

.nav-links a { transition: color 0.2s var(--ease); }
.nav-links a:hover { color: var(--text-primary); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 550;
  border: 1px solid var(--border-strong);
  transition: all 0.2s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--text-primary);
  color: var(--bg);
  border-color: transparent;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(255,255,255,0.12); }

.btn-ghost { color: var(--text-primary); }
.btn-ghost:hover { background: var(--surface); border-color: var(--border-strong); }

.menu-toggle {
  display: none;
  padding: 9px;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 100px;
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  background: transparent;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
  flex-shrink: 0;
}
.menu-toggle:hover { background: var(--surface); }
.menu-toggle svg { width: 18px; height: 18px; display: block; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-menu { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ============================================================
   Theme-switch ripple (View Transitions API)
   The default cross-fade is turned off so the only motion visible is
   the expanding circle clip-path driven from script.js, anchored at
   wherever the theme-toggle button was clicked.
   ============================================================ */
::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}
::view-transition-old(root) { z-index: 1; }
::view-transition-new(root) { z-index: 2; }

.theme-toggle {
  padding: 9px;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 100px;
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  background: transparent;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
  flex-shrink: 0;
}
.theme-toggle:hover { background: var(--surface); }
.theme-toggle svg { width: 18px; height: 18px; display: block; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
html[data-theme="light"] .theme-toggle .icon-sun { display: block; }
html[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  padding: 96px 0 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 64px;
  align-items: center;
}

.avatar {
  width: 184px;
  height: 184px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 34px;
  color: white;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-strong);
}

.avatar img { width: 100%; height: 100%; object-fit: cover; }

/* A quiet "active" pulse — a nod to the AI-agent workflows in the copy,
   without tipping into circuit-board cliché. Respects reduced-motion via
   the global rule at the top of this file. */
.avatar::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1.5px solid var(--accent-b);
  opacity: 0;
  animation: avatar-pulse 3.2s ease-out infinite;
  pointer-events: none;
}
@keyframes avatar-pulse {
  0% { transform: scale(0.96); opacity: 0.55; }
  70% { transform: scale(1.16); opacity: 0; }
  100% { transform: scale(1.16); opacity: 0; }
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 100px;
  margin-bottom: 20px;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3ddc84;
  box-shadow: 0 0 0 3px rgba(61, 220, 132, 0.18);
}

.hero h1 {
  font-size: clamp(36px, 5.2vw, 58px);
  line-height: 1.06;
  margin-bottom: 18px;
}

.hero h1 .grad {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: 32px;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ============================================================
   Section heads
   ============================================================ */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
  gap: 24px;
}

.section-head h2 { font-size: clamp(26px, 3.4vw, 36px); }
.section-head .desc { color: var(--text-secondary); font-size: 15px; max-width: 380px; }

section.block { padding: 88px 0; border-top: 1px solid var(--border); }

/* ============================================================
   Work grid / project cards
   ============================================================ */
/* The Work section is structured in two parts:
   1. .work-head — a normal in-flow block that scrolls away first.
   2. .work-viewport — becomes a full-height panel that gets pinned by
      animations.js while its .work-track slides horizontally.
   Default / no-JS / mobile: everything is a plain responsive grid, so the
   section is fully usable even if GSAP never runs. */
.work-block { padding-bottom: 0; }
.work-head { margin-bottom: 48px; }
.work-head .eyebrow { justify-content: flex-start; }
.work-head h2 { font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 18px; }
.work-head-desc { color: var(--text-secondary); font-size: 16px; max-width: 520px; }

.work-viewport { padding-bottom: 88px; }

.work-track {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Horizontal mode (desktop, motion allowed): the viewport fills the whole
   screen height and vertically centers the card row, so every card sits
   fully inside the viewport with title + description readable. The header
   has already scrolled off the top before this panel pins. */
.work-viewport.is-horizontal {
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 96px;
  padding-bottom: 0;
  box-sizing: border-box;
}
.work-viewport.is-horizontal .work-track {
  display: flex;
  flex-wrap: nowrap;
  width: max-content;
  max-width: none;
  grid-template-columns: none;
  gap: 26px;
  padding: 0 max(32px, calc((100vw - 1120px) / 2));
  margin: 0;
  align-items: center;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: 28px;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), background 0.35s var(--ease);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--card-accent, var(--accent-a)), transparent 40%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
}

/* In horizontal mode, give each card an identical fixed width AND height
   so every case-study card matches regardless of title/description length.
   The middle content region flexes to absorb differences, keeping the
   image and the meta row aligned across all cards. */
.work-viewport.is-horizontal .card {
  width: 400px;
  height: min(560px, 68vh);
  flex-shrink: 0;
}
.work-viewport.is-horizontal .card > div:not(.card-shot):not(.card-meta) {
  flex: 1 1 auto;
}

.card:hover {
  transform: translateY(-4px);
  border-color: transparent;
  background: var(--surface-2);
}
.card:hover::before { opacity: 1; }

.card-shot {
  border-radius: var(--radius-m);
  overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.card-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.5s var(--ease); }
.card:hover .card-shot img { transform: scale(1.04); }

.card-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--card-accent, var(--accent-b));
}

.card h3 { font-size: 21px; margin: 6px 0 8px; }
.card .card-desc { color: var(--text-secondary); font-size: 14.5px; line-height: 1.55; }

.card-meta {
  display: flex;
  gap: 16px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
}

.card.card-soon { opacity: 0.55; }
.card.card-soon:hover { transform: none; background: var(--surface); }
.card-soon-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 100px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  color: var(--text-secondary);
}

/* ============================================================
   Logofolio — continuous auto-scrolling loop (marquee)
   Cards (white background, like the original design) scroll left
   forever at a constant speed; the logo set is duplicated once in the
   markup so the loop seams invisibly. Exactly 4 cards are visible at
   the standard content width (1056px content / 264px per card = 4).
   No dots, no progress indicator, no click interaction — pure ambient
   motion, pausable on hover and disabled under reduced-motion.
   ============================================================ */
.logofolio-block { padding-bottom: 72px; }

.logofolio-viewport {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 40px, black calc(100% - 40px), transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 40px, black calc(100% - 40px), transparent);
}

.logofolio-track {
  display: flex;
  width: max-content;
  animation: logofolio-scroll 28s linear infinite;
}
.logofolio-viewport:hover .logofolio-track { animation-play-state: paused; }

@keyframes logofolio-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.logo-chip {
  flex: 0 0 264px;
  width: 264px;
  box-sizing: border-box;
  padding: 10px;
}

.logo-card {
  /* Dimensions locked — height only, width comes from .logo-chip's fixed
     264px (200px on mobile). Neither changes here. */
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  box-sizing: border-box;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.logo-chip img {
  height: 80%;
  width: 80%;
  object-fit: contain;
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  .logofolio-track { animation: none; }
}

@media (max-width: 860px) {
  .logo-chip { flex: 0 0 200px; width: 200px; }
  .logo-card { height: 120px; }
}

/* ============================================================
   Personal note — gradient-highlighted line + line-art illustration
   ============================================================ */
.personal-note-block { padding: 8px 0 88px; border-top: none; }

.personal-note-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.personal-note-quote {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(24px, 3.2vw, 34px);
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}
.personal-note-quote .grad {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.personal-note-illustration {
  display: flex;
  justify-content: center;
}
.personal-note-illustration img {
  width: 100%;
  max-width: 440px;
  height: auto;
  display: block;
  /* Source art is black/gray line work on a transparent background,
     drawn for a light backdrop. Inverting in dark mode turns it into
     light lines on dark — the raster equivalent of the old currentColor
     SVG trick, since filters can't target an image's colors directly. */
  filter: invert(0.92) brightness(1.05) contrast(0.94);
  opacity: 0.92;
}
html[data-theme="light"] .personal-note-illustration img {
  filter: none;
  opacity: 1;
}

/* ============================================================
   About / skills
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
}

.about-body p { color: var(--text-secondary); font-size: 16px; margin-bottom: 18px; }
.about-body p:last-child { margin-bottom: 0; }

.skill-groups { display: flex; flex-direction: column; gap: 22px; }
.skill-group-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 10px;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: 13px;
  padding: 7px 13px;
  border-radius: 100px;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  background: var(--surface);
}

/* ============================================================
   Experience timeline
   ============================================================ */
.timeline { display: flex; flex-direction: column; }

.tl-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 32px;
  padding: 28px 0;
  border-top: 1px solid var(--border);
}
.tl-item:first-child { border-top: none; }

.tl-date { font-family: var(--font-mono); font-size: 13px; color: var(--text-tertiary); padding-top: 3px; }
.tl-role { font-size: 19px; margin-bottom: 4px; }
.tl-org { color: var(--text-secondary); font-size: 14.5px; margin-bottom: 12px; }
.tl-desc { color: var(--text-secondary); font-size: 14.5px; max-width: 620px; }

/* ============================================================
   Contact
   ============================================================ */
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: 64px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contact-card::after {
  content: "";
  position: absolute;
  width: 480px;
  height: 480px;
  background: radial-gradient(closest-side, var(--ambient-glow), transparent 70%);
  top: -220px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}
html[data-theme="light"] .contact-card::after { display: none; }

.contact-card h2 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 14px; position: relative; }
.contact-card p { color: var(--text-secondary); font-size: 16px; margin-bottom: 32px; position: relative; }
.contact-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; position: relative; }

.socials { display: flex; justify-content: center; gap: 22px; margin-top: 36px; font-size: 14px; color: var(--text-secondary); position: relative; }
.socials a:hover { color: var(--text-primary); }

/* ============================================================
   Footer
   ============================================================ */
.footer {
  padding: 32px 0 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  border-top: 1px solid var(--border);
}

/* ============================================================
   Case-study pages
   ============================================================ */
.cs-hero {
  padding: 64px 0 56px;
}

.cs-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 32px;
  transition: color 0.2s var(--ease), gap 0.2s var(--ease);
}
.cs-back:hover { color: var(--text-primary); gap: 11px; }

.cs-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cs-accent, var(--accent-b));
  margin-bottom: 18px;
  display: block;
}

.cs-hero h1 {
  font-size: clamp(32px, 5vw, 50px);
  max-width: 820px;
  margin-bottom: 20px;
}

.cs-summary { font-size: 18px; color: var(--text-secondary); max-width: 680px; margin-bottom: 40px; }

.cs-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cs-meta-item .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 8px;
  display: block;
}
.cs-meta-item .value { font-size: 15px; color: var(--text-primary); }

.cs-hero-shot {
  margin-top: 48px;
  border-radius: var(--radius-l);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}

.cs-section { padding: 64px 0; border-top: 1px solid var(--border); }
.cs-section h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 24px; }

.cs-two-col {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 56px;
}

.cs-body p { color: var(--text-secondary); font-size: 16px; margin-bottom: 18px; }
.cs-body p:last-child { margin-bottom: 0; }
.cs-body ul { color: var(--text-secondary); font-size: 16px; padding-left: 20px; margin: 0 0 18px; }
.cs-body li { margin-bottom: 8px; }
.cs-body strong { color: var(--text-primary); font-weight: 600; }

.disclosure-note {
  display: flex;
  gap: 12px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 24px;
}
.disclosure-note svg { flex-shrink: 0; margin-top: 2px; }

.pill-list { display: flex; flex-direction: column; gap: 10px; }
.pill-list-item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 15px;
  color: var(--text-secondary);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.pill-list-item:last-child { border-bottom: none; }
.pill-list-item .n { font-family: var(--font-mono); color: var(--cs-accent, var(--accent-b)); font-size: 13px; }

.shot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 8px; }
.shot-grid.two { grid-template-columns: repeat(2, 1fr); }
.shot-grid figure { margin: 0; }
.shot-grid img {
  border-radius: var(--radius-m);
  border: 1px solid var(--border);
  background: var(--surface);
  width: 100%;
}
.shot-grid figcaption {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 10px;
}

.persona-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.persona-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 24px;
}
.persona-card .p-name { font-size: 17px; font-weight: 600; margin-bottom: 2px; }
.persona-card .p-role { font-size: 13px; color: var(--cs-accent, var(--accent-b)); font-family: var(--font-mono); margin-bottom: 14px; }
.persona-card .p-quote { font-size: 14.5px; color: var(--text-secondary); font-style: italic; margin-bottom: 14px; line-height: 1.55; }
.persona-card ul { margin: 0; padding-left: 18px; font-size: 13.5px; color: var(--text-tertiary); }
.persona-card li { margin-bottom: 6px; }

.metric-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.metric-table th, .metric-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14.5px;
}
.metric-table th {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  font-weight: 500;
}
.metric-table td.before { color: var(--text-tertiary); }
.metric-table td.after { color: var(--cs-accent, var(--accent-b)); font-weight: 600; }

.cs-nav {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 56px 0 88px;
}
.cs-nav-link {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 24px 26px;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.cs-nav-link:hover { border-color: var(--border-strong); background: var(--surface); }
.cs-nav-link .dir { font-family: var(--font-mono); font-size: 11px; color: var(--text-tertiary); margin-bottom: 8px; display: block; }
.cs-nav-link.next { text-align: right; }
.cs-nav-link .title { font-size: 17px; }

/* ============================================================
   Scroll reveal
   Initial + animated states for [data-reveal] elements are now set
   entirely by animations.js (GSAP). No CSS opacity:0 default here on
   purpose — if the animation script fails to load for any reason,
   content stays fully visible instead of stuck hidden.
   ============================================================ */

/* ============================================================
   GSAP-driven scroll UI (progress bar, scrolled nav, horizontal work)
   ============================================================ */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent-gradient);
  transform: scaleX(0);
  transform-origin: 0 50%;
  z-index: 200;
  pointer-events: none;
}

.nav.is-scrolled {
  background: var(--nav-bg-scrolled);
  border-bottom-color: var(--border-strong);
  box-shadow: 0 12px 30px -20px rgba(0, 0, 0, 0.6);
}

@media (prefers-reduced-motion: reduce) {
  #scroll-progress { display: none; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 860px) {
  .wrap { padding: 0 20px; }
  .nav-cta { display: none; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 20px 16px;
    background: var(--nav-bg-mobile);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-strong);
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    width: 100%;
    padding: 14px 0;
    font-size: 15px;
    border-bottom: 1px solid var(--border);
  }
  .nav-links a:last-child { border-bottom: none; }
  .menu-toggle { display: inline-flex; }
  .hero-grid { grid-template-columns: 1fr; text-align: left; gap: 28px; }
  .avatar { width: 120px; height: 120px; font-size: 26px; }
  .work-track { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .personal-note-grid { grid-template-columns: 1fr; gap: 32px; text-align: left; }
  .personal-note-illustration { order: -1; }
  .personal-note-illustration img { max-width: 280px; }
  .cs-meta { grid-template-columns: repeat(2, 1fr); }
  .cs-two-col { grid-template-columns: 1fr; gap: 28px; }
  .persona-grid { grid-template-columns: 1fr; }
  .shot-grid { grid-template-columns: 1fr 1fr; }
  .shot-grid.three-mobile-one { grid-template-columns: 1fr; }
  .tl-item { grid-template-columns: 1fr; gap: 8px; }
  .cs-nav { flex-direction: column; }
  .cs-nav-link.next { text-align: left; }
  .contact-card { padding: 48px 24px; }
}
