:root {
  --bg: #0c0e11;
  --bg-elevated: #111419;
  --surface: #14181f;
  --surface-hover: #191e27;
  --surface-inset: #0f1217;
  --ink: #f3f5f8;
  --muted: #98a2b3;
  --muted-soft: #6b7688;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --accent: #60a5fa;
  --accent-hover: #93c5fd;
  --accent-ink: #08111f;
  --accent-soft: rgba(96, 165, 250, 0.12);
  --stage: #f59e0b;
  --stage-soft: rgba(245, 158, 11, 0.12);
  --shadow-card: 0 0 0 1px rgba(255, 255, 255, 0.07), 0 12px 32px rgba(0, 0, 0, 0.34);
  --shadow-card-hover: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 18px 42px rgba(0, 0, 0, 0.48);
  --font-display: 'Manrope', system-ui, -apple-system, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, monospace;
  --ease-ui: cubic-bezier(0.2, 0, 0, 1);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --max-w: 1120px;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.62;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

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

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Top Scroll Progress Hairline */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  background: var(--accent);
  transform-origin: left center;
  transform: scaleX(0);
  z-index: 60;
  pointer-events: none;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 45;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 70px;
}

.brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.025em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.brand-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.89rem;
  font-weight: 500;
  color: var(--muted);
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  transition-property: color, background-color;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}

.nav-links a.is-active {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
}

.nav-links .nav-cta {
  margin-left: 0.45rem;
  padding: 0.48rem 0.95rem;
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.8rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.86rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  position: relative;
  padding: 6.25rem 0 4.75rem;
  border-bottom: 1px solid var(--border);
  background-image: radial-gradient(760px 380px at 14% 0%, rgba(96, 165, 250, 0.09), transparent 72%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.38fr 0.92fr;
  gap: 3.5rem;
  align-items: end;
}

.hero-role {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1.15rem;
}

.status-pulse {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 4.9vw, 3.85rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin-bottom: 1.45rem;
}

.hero-lead {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 56ch;
  margin-bottom: 2.25rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}

/* Buttons with exact 0.96 press scale */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.78rem 1.3rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.93rem;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition-property: background-color, border-color, color, transform;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}

.btn:not(:disabled):active {
  transform: scale(0.96);
}

.btn-primary {
  background: var(--ink);
  color: var(--bg);
}

.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border-strong);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  padding-left: 0.55rem;
  padding-right: 0.55rem;
}

/* Metric Strip Panel */
.ledger-panel {
  background: var(--surface);
  border: 1px solid transparent;
  box-shadow: var(--shadow-card);
  border-radius: var(--radius-md);
  padding: 1.6rem;
}

.ledger-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.ledger-head strong {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
}

.ledger-head span {
  font-size: 0.8rem;
  color: var(--muted-soft);
}

.ledger-list {
  display: grid;
  gap: 1.05rem;
}

.ledger-item {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 0.85rem;
  align-items: baseline;
  padding-bottom: 0.95rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ledger-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.ledger-metric {
  font-family: var(--font-mono);
  font-size: 1.02rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.ledger-desc {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.48;
}

/* Section Rhythm */
.section {
  padding: 5.25rem 0;
  border-bottom: 1px solid var(--border);
}

.section-elevated {
  background: var(--bg-elevated);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  margin-bottom: 2.75rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.1vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.section-intro {
  color: var(--muted);
  max-width: 58ch;
  margin-top: 0.55rem;
  font-size: 0.98rem;
}

/* Sliding Pill Filter Bar */
.filter-bar {
  position: relative;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 4px;
  background: var(--surface-inset);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.filter-indicator {
  position: absolute;
  top: 4px;
  left: 0;
  height: calc(100% - 8px);
  border-radius: 8px;
  background: var(--surface-hover);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
  pointer-events: none;
  transition-property: transform, width, opacity;
  transition-duration: 240ms;
  transition-timing-function: var(--ease-ui);
}

.filter-btn {
  position: relative;
  z-index: 1;
  background: transparent;
  color: var(--muted);
  border: 0;
  border-radius: 8px;
  padding: 0.5rem 0.9rem;
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition-property: color, transform;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}

.filter-btn:not(:disabled):active {
  transform: scale(0.96);
}

.filter-btn[aria-pressed='true'] {
  color: var(--ink);
}

/* Interactive Spotlight Surface */
.spotlight-surface {
  position: relative;
  overflow: hidden;
  --mx: 50%;
  --my: 50%;
}

.spotlight-surface::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(96, 165, 250, 0.11), transparent 60%);
  opacity: 0;
  transition-property: opacity;
  transition-duration: 240ms;
  transition-timing-function: ease-out;
  pointer-events: none;
}

/* Flagship Case Studies */
.case-grid {
  display: grid;
  gap: 1.5rem;
}

.case-card {
  background: var(--surface);
  border: 1px solid transparent;
  box-shadow: var(--shadow-card);
  border-radius: var(--radius-lg);
  padding: 2.15rem;
  display: grid;
  grid-template-columns: 1.2fr 0.95fr;
  gap: 2.25rem;
  align-items: start;
  transition-property: box-shadow, background-color, opacity, transform;
  transition-duration: 240ms;
  transition-timing-function: var(--ease-ui);
}

.case-card.is-hidden {
  display: none;
}

.case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.9rem;
}

.badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.24rem 0.65rem;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
}

.badge-neutral {
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
}

.case-card h3 {
  font-family: var(--font-display);
  font-size: 1.48rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.case-summary {
  color: var(--muted);
  font-size: 0.96rem;
  margin-bottom: 1.4rem;
}

.case-pillars {
  display: grid;
  gap: 0.95rem;
  border-left: 1px solid var(--border-strong);
  padding-left: 1.2rem;
}

.case-pillars dt {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.18rem;
}

.case-pillars dd {
  font-size: 0.91rem;
  color: var(--muted);
}

.case-aside {
  background: var(--surface-inset);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.4rem;
  display: grid;
  gap: 1.2rem;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.stat-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 0.95rem;
}

.stat-box strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.04rem;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.stat-box span {
  font-size: 0.8rem;
  color: var(--muted);
}

.stack-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
  list-style: none;
}

.stack-list li {
  font-size: 0.79rem;
  font-weight: 500;
  padding: 0.28rem 0.62rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--ink);
}

.aside-note {
  font-size: 0.87rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Corporate & Artist Websites */
.web-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.web-card {
  background: var(--surface);
  border: 1px solid transparent;
  box-shadow: var(--shadow-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition-property: box-shadow, transform;
  transition-duration: 240ms;
  transition-timing-function: var(--ease-ui);
}

.web-thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-inset);
  position: relative;
}

.web-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  outline: 1px solid oklch(1 0 0 / 0.1);
  outline-offset: -1px;
  transition-property: transform;
  transition-duration: 380ms;
  transition-timing-function: var(--ease-ui);
}

.web-body {
  padding: 1.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
}

.web-domain {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--accent);
}

.web-card h3 {
  font-family: var(--font-display);
  font-size: 1.24rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.web-card p {
  font-size: 0.93rem;
  color: var(--muted);
  flex: 1;
}

.web-foot {
  margin-top: 0.65rem;
  padding-top: 0.95rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.84rem;
  color: var(--muted);
}

.lightbox-trigger {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.38rem 0.75rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  cursor: pointer;
  transition-property: background-color, border-color, transform;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}

.lightbox-trigger:not(:disabled):active {
  transform: scale(0.96);
}

/* Events, Milestones & Background */
.two-col-split {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 2.25rem;
  align-items: start;
}

.event-list {
  display: grid;
  gap: 0.85rem;
}

.event-row {
  background: var(--surface);
  border: 1px solid transparent;
  box-shadow: var(--shadow-card);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.35rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  transition-property: box-shadow, background-color;
  transition-duration: 180ms;
  transition-timing-function: ease-out;
}

.event-row h3 {
  font-family: var(--font-display);
  font-size: 1.04rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.event-row p {
  font-size: 0.89rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

.event-tag {
  font-size: 0.78rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--stage);
  background: var(--stage-soft);
  padding: 0.24rem 0.62rem;
  border-radius: 6px;
}

.press-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.press-shot {
  background: var(--surface);
  border: 1px solid transparent;
  box-shadow: var(--shadow-card);
  border-radius: 12px;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  text-align: left;
  transition-property: box-shadow, transform;
  transition-duration: 180ms;
  transition-timing-function: var(--ease-ui);
}

.press-shot:not(:disabled):active {
  transform: scale(0.96);
}

.press-shot img {
  width: 100%;
  height: 118px;
  object-fit: cover;
  outline: 1px solid oklch(1 0 0 / 0.1);
  outline-offset: -1px;
}

.press-shot span {
  display: block;
  padding: 0.55rem 0.75rem;
  font-size: 0.79rem;
  font-weight: 600;
  color: var(--ink);
  border-top: 1px solid var(--border);
}

.bio-card {
  background: var(--surface);
  border: 1px solid transparent;
  box-shadow: var(--shadow-card);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  display: grid;
  gap: 1.15rem;
}

.bio-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.bio-card p {
  font-size: 0.94rem;
  color: var(--muted);
}

.bio-card strong {
  color: var(--ink);
  font-weight: 600;
}

.skills-grid {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.skill-group {
  background: var(--surface);
  border: 1px solid transparent;
  box-shadow: var(--shadow-card);
  border-radius: var(--radius-md);
  padding: 1.3rem;
}

.skill-group h3 {
  font-family: var(--font-display);
  font-size: 0.96rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border);
}

.skill-group ul {
  list-style: none;
  display: grid;
  gap: 0.38rem;
  font-size: 0.87rem;
  color: var(--muted);
}

/* Separate Tools Section */
.tools-banner {
  background: var(--surface-inset);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.45rem;
  margin-bottom: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.tools-banner strong {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink);
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.tool-card {
  background: var(--surface);
  border: 1px solid transparent;
  box-shadow: var(--shadow-card);
  border-radius: var(--radius-lg);
  padding: 1.85rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.4rem;
  text-decoration: none;
  transition-property: box-shadow, transform, background-color;
  transition-duration: 220ms;
  transition-timing-function: var(--ease-ui);
}

.tool-card:active {
  transform: scale(0.985);
}

.tool-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.tool-tag {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.24rem 0.62rem;
  border-radius: 6px;
}

.tool-status {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted-soft);
}

.tool-card h3 {
  font-family: var(--font-display);
  font-size: 1.24rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.tool-card p {
  font-size: 0.93rem;
  color: var(--muted);
}

.tool-foot {
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}

.tool-path {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--muted);
}

/* Contact Section */
.contact-box {
  background: var(--surface);
  border: 1px solid transparent;
  box-shadow: var(--shadow-card);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.contact-box h2 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.9vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

.contact-box p {
  color: var(--muted);
  font-size: 0.96rem;
  margin-bottom: 1.4rem;
}

.topic-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.topic-pill {
  background: var(--surface-inset);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.85rem;
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition-property: background-color, border-color, color, transform;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}

.topic-pill:not(:disabled):active {
  transform: scale(0.96);
}

.topic-pill[aria-pressed='true'] {
  background: var(--accent-soft);
  border-color: rgba(96, 165, 250, 0.45);
  color: var(--accent);
}

.contact-actions {
  display: grid;
  gap: 0.75rem;
}

.contact-link-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  background: var(--surface-inset);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  width: 100%;
  text-align: left;
  transition-property: border-color, background-color, transform;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}

.contact-link-row:not(:disabled):active {
  transform: scale(0.985);
}

.contact-sub {
  font-size: 0.84rem;
  color: var(--muted);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

/* Contextual Copy Icon Cross-Fade (exact 300ms cubic-bezier(0.2, 0, 0, 1)) */
.icon-stack {
  position: relative;
  width: 16px;
  height: 16px;
  display: inline-block;
  flex-shrink: 0;
}

.icon-stack svg {
  position: absolute;
  inset: 0;
  width: 16px;
  height: 16px;
  transition-property: opacity, transform, filter;
  transition-duration: 300ms;
  transition-timing-function: var(--ease-ui);
}

.icon-copy {
  opacity: 1;
  transform: scale(1);
  filter: blur(0px);
}

.icon-check {
  opacity: 0;
  transform: scale(0.25);
  filter: blur(4px);
  color: var(--accent);
}

.is-copied .icon-copy {
  opacity: 0;
  transform: scale(0.25);
  filter: blur(4px);
}

.is-copied .icon-check {
  opacity: 1;
  transform: scale(1);
  filter: blur(0px);
}

/* Footer */
.site-footer {
  padding: 2.25rem 0;
  font-size: 0.85rem;
  color: var(--muted-soft);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

/* Lightbox Modal */
.lightbox {
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  max-width: 900px;
  width: calc(100% - 2rem);
  overscroll-behavior: contain;
}

.lightbox::backdrop {
  background: rgba(5, 7, 10, 0.86);
}

.lightbox-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.65);
}

.lightbox-card img {
  width: 100%;
  max-height: 74vh;
  object-fit: contain;
  background: #080a0d;
}

.lightbox-bar {
  padding: 0.95rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid var(--border);
}

.lightbox-bar p {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}

.lightbox-close {
  background: var(--ink);
  color: var(--bg);
  border: 0;
  border-radius: 6px;
  padding: 0.45rem 0.95rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition-property: opacity, transform;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}

.lightbox-close:not(:disabled):active {
  transform: scale(0.96);
}

/* Hover-Only Styles Behind @media (hover: hover) */
@media (hover: hover) {
  .nav-links a:hover {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.05);
  }
  .nav-links .nav-cta:hover {
    background: var(--accent);
    color: var(--accent-ink);
  }
  .btn-primary:hover {
    background: var(--accent);
    color: var(--accent-ink);
  }
  .btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.34);
    background: var(--surface-hover);
  }
  .btn-ghost:hover {
    color: var(--ink);
  }
  .filter-btn:hover {
    color: var(--ink);
  }
  .spotlight-surface:hover::before {
    opacity: 1;
  }
  .case-card:hover,
  .web-card:hover,
  .tool-card:hover,
  .press-shot:hover {
    box-shadow: var(--shadow-card-hover);
  }
  .tool-card:hover,
  .press-shot:hover {
    transform: translateY(-2px);
  }
  .web-card:hover .web-thumb img {
    transform: scale(1.03);
  }
  .lightbox-trigger:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--border-strong);
  }
  .topic-pill:hover {
    color: var(--ink);
    border-color: var(--border-strong);
  }
  .contact-link-row:hover {
    border-color: rgba(96, 165, 250, 0.45);
    background: var(--surface-hover);
  }
  .lightbox-close:hover {
    opacity: 0.88;
  }
}

/* Motion System — Gated behind prefers-reduced-motion: no-preference */
@keyframes enter-staged {
  from {
    opacity: 0;
    transform: translateY(12px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0px);
  }
}

@keyframes modal-enter {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-stagger {
    animation: enter-staged 300ms ease-out both;
    animation-delay: calc(var(--stagger, 0) * 100ms);
  }

  .js-motion .reveal {
    opacity: 0;
    transform: translateY(12px);
    filter: blur(4px);
    transition-property: opacity, transform, filter;
    transition-duration: 360ms;
    transition-timing-function: ease-out;
  }

  .js-motion .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0px);
  }

  .lightbox[open] .lightbox-card {
    animation: modal-enter 220ms var(--ease-ui) both;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transition-property: opacity;
    transition-duration: 180ms;
  }
  .icon-stack svg {
    filter: none !important;
    transform: none !important;
  }
}

/* Responsive */
@media (max-width: 960px) {
  .hero {
    padding: 4.5rem 0 3.75rem;
  }
  .hero-grid,
  .case-card,
  .two-col-split,
  .contact-box {
    grid-template-columns: 1fr;
  }
  .skills-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-block;
  }
  .nav-links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 70px;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem 1.25rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    overscroll-behavior: contain;
  }
  .nav-links.is-open {
    display: flex;
  }
  .nav-links .nav-cta {
    margin-left: 0;
    margin-top: 0.35rem;
  }
  .web-grid,
  .tools-grid,
  .skills-grid,
  .press-strip {
    grid-template-columns: 1fr;
  }
  .ledger-item {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
  .contact-box {
    padding: 1.65rem;
  }
}
