/* VCHAudio portfolio — warm dark minimal */
:root {
  --bg: #12100e;
  --bg-elevated: #1a1714;
  --surface: #232019;
  --surface-hover: #2d2820;
  --text: #f5efe8;
  --text-muted: #9c948a;
  --accent: #e4a04a;
  --accent-dim: #c98a3a;
  --glow: rgba(255, 210, 150, 0.12);
  --ring: rgba(255, 220, 190, 0.45);
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-full: 9999px;
  --shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
  --font: "Outfit", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 72px;
  /* Home: collapsed spoilers align with Explore nav tiles */
  --home-tile-max: 420px;
  /* Spoilers: roll only (tile width is instant with JS) */
  --spoiler-roll: 0.42s;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg);
}

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: transparent;
  isolation: isolate;
  -webkit-font-smoothing: antialiased;
}

/* Full-viewport gradient on a fixed layer: scrolls cheaply vs painting gradients on the scrolling body */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  contain: paint;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -20%, var(--glow), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(228, 160, 74, 0.04), transparent 50%);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s var(--ease-out), opacity 0.2s;
}

a:hover {
  color: #f0be6e;
}

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

/* ——— Layout ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  /* Opaque bar: backdrop-filter on sticky headers repaints/blurs every scroll frame (jank). */
  background: rgba(18, 16, 14, 0.97);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.brand {
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--text);
}

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

/* Header: VCHAudio left, logo center (subpages only) */
.site-header--with-logo {
  position: relative;
}

.site-header--with-logo .brand-logo-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  z-index: 1;
}

.site-header--with-logo > .brand {
  position: relative;
  z-index: 2;
}

.site-header--with-logo > .nav-back {
  position: relative;
  z-index: 2;
}

.brand-header-logo {
  display: block;
  height: clamp(24px, 4.2vw, 34px);
  width: auto;
  max-width: min(44vw, 210px);
  object-fit: contain;
}

.brand-logo-center:hover .brand-header-logo {
  opacity: 0.9;
}

.nav-back {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

.nav-back:hover {
  color: var(--text);
}

/* Back control: left column; title in true page center (1fr | auto | 1fr grid) */
.page-hero-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  column-gap: clamp(1rem, 4vw, 1.75rem);
  margin: 0 0 0.5rem;
  width: 100%;
}

.page-hero-title-row h1 {
  grid-column: 2;
  grid-row: 1;
  text-align: center;
}

.page-back-inline {
  grid-column: 1;
  grid-row: 1;
  justify-self: end;
  align-self: center;
  display: flex;
  flex-shrink: 0;
}

.page-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  border-radius: var(--radius-full);
  transition: transform 0.15s var(--ease-out);
}

.page-back:active {
  transform: scale(0.96);
}

.page-back-icon {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: var(--radius-full);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.4s var(--ease-out), background 0.25s var(--ease-out);
}

.page-back:hover .page-back-icon {
  background: var(--surface-hover);
}

.page-back-icon svg {
  width: 14px;
  height: 14px;
  color: var(--accent);
  stroke: var(--accent);
  stroke-width: 2.25;
}

.page-back-icon svg path {
  stroke: currentColor;
}

main {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1.25rem, 4vw, 2rem) 4rem;
}

.page-hero {
  text-align: center;
  padding: 2rem 0 1rem;
}

.page-hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 4.5vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.page-hero .page-hero-title-row h1 {
  margin: 0;
}

.page-hero p.lead {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ——— Home hero (logo, portrait, intro) ——— */
.home-hero {
  margin-bottom: 0.5rem;
}

.brand-logo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0.5rem 0 1.1rem;
  animation: fade-up 0.75s var(--ease-out) both;
}

.brand-logo {
  display: block;
  width: min(100%, 720px);
  height: auto;
  max-height: min(32vw, 200px);
  object-fit: contain;
}

@media (min-width: 480px) {
  .brand-logo {
    max-height: min(28vw, 240px);
  }
}

@media (min-width: 720px) {
  .brand-logo {
    max-height: min(24vw, 300px);
  }
}

.avatar-wrap {
  display: flex;
  justify-content: center;
  margin: 0 0 1.35rem;
  animation: hero-in 0.9s var(--ease-out) 0.08s both;
}

.avatar-ring {
  position: relative;
  width: min(200px, 52vw);
  height: min(200px, 52vw);
  border-radius: var(--radius-full);
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
  transition: transform 0.4s var(--ease-out);
  background: linear-gradient(145deg, var(--ring), rgba(80, 60, 40, 0.35) 40%, var(--accent-dim));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 20px 50px rgba(0, 0, 0, 0.5),
    0 0 80px rgba(228, 160, 74, 0.08);
}

.avatar-ring::after {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: inherit;
  background: radial-gradient(circle, rgba(255, 220, 180, 0.15), transparent 65%);
  z-index: -1;
  pointer-events: none;
}

.avatar-photo-crop {
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-height: 0;
  min-width: 0;
  border-radius: var(--radius-full);
  overflow: hidden;
}

.avatar-photo-crop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 24%;
  transform: scale(1.08);
  transform-origin: 50% 32%;
  display: block;
  border-radius: var(--radius-full);
  border: 3px solid var(--bg);
}

.intro-block {
  text-align: center;
  max-width: 26rem;
  margin: 0 auto 2rem;
  animation: fade-up 0.8s var(--ease-out) 0.16s both;
}

.intro-name {
  margin: 0 0 0.45rem;
  font-size: clamp(1.45rem, 4.2vw, 1.95rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text);
}

.intro-role {
  margin: 0 0 0.75rem;
  font-size: clamp(0.95rem, 2.8vw, 1.08rem);
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.45;
}

.intro-tagline-wrap {
  margin: 0;
  display: flex;
  justify-content: center;
}

.intro-tagline {
  display: inline-block;
  margin: 0;
  padding: 0.32rem 0.7rem;
  font-size: clamp(0.76rem, 2.05vw, 0.84rem);
  font-style: italic;
  font-weight: 300;
  font-synthesis: none;
  letter-spacing: 0.025em;
  line-height: 1.45;
  color: rgba(244, 238, 232, 0.62);
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}

/* ——— Spoiler / details ——— */
details.spoiler {
  width: 100%;
  max-width: min(var(--home-tile-max), 100%);
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0.75rem;
  background: var(--bg-elevated);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  animation: fade-up 0.8s var(--ease-out) 0s both;
  /* No max-width transition — JS resizes tile immediately */
  transition:
    border-color 0.24s var(--ease-out),
    transform 0.24s var(--ease-out),
    background 0.24s var(--ease-out),
    box-shadow 0.24s var(--ease-out);
}

details.spoiler[open] {
  max-width: 100%;
  transform: none;
  background: var(--bg-elevated);
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 28px 56px rgba(0, 0, 0, 0.38), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

details.spoiler:not([open]):hover,
details.spoiler:not([open]):focus-within {
  background: linear-gradient(165deg, var(--glow), var(--bg-elevated));
  border-color: rgba(228, 160, 74, 0.38);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(228, 160, 74, 0.1);
}

details.spoiler:not([open]):active {
  transform: translateY(0);
}

details.spoiler[open]:hover,
details.spoiler[open]:focus-within {
  background: var(--bg-elevated);
  transform: none;
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 28px 56px rgba(0, 0, 0, 0.38), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

details.spoiler:not([open]):hover summary,
details.spoiler:not([open]):focus-within summary {
  color: var(--accent);
}

/* After closing: reset tile + summary (pointer can still be over; summary keeps :focus) */
details.spoiler.spoiler--no-hover:not([open]):hover,
details.spoiler.spoiler--no-hover:not([open]):focus-within {
  background: var(--bg-elevated);
  border-color: rgba(255, 255, 255, 0.06);
  transform: none;
  box-shadow: var(--shadow);
}

details.spoiler.spoiler--no-hover:not([open]):hover summary,
details.spoiler.spoiler--no-hover:not([open]):focus-within summary {
  color: var(--text);
}

details.spoiler.spoiler--no-hover:not([open]) summary:hover,
details.spoiler.spoiler--no-hover:not([open]) summary:focus-visible {
  background: transparent;
}

details.spoiler.spoiler--no-hover:not([open]) .spoiler-chevron:hover {
  background: var(--surface);
}

details.spoiler[open] summary,
details.spoiler[open]:hover summary,
details.spoiler[open]:focus-within summary {
  color: var(--text);
}

details.spoiler summary:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
  border-radius: var(--radius-md);
}

details.spoiler:last-of-type {
  margin-bottom: 2rem;
}

details.spoiler summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.15rem 1.35rem;
  font-weight: 500;
  font-size: 1.05rem;
  line-height: 1.3;
  color: var(--text);
  user-select: none;
  transition:
    background 0.25s var(--ease-out),
    color 0.2s var(--ease-out);
}

.spoiler-summary-label {
  text-align: center;
}

details.spoiler summary::-webkit-details-marker {
  display: none;
}

details.spoiler summary:hover {
  background: rgba(255, 255, 255, 0.04);
}

details.spoiler summary:active {
  transform: scale(0.995);
}

.spoiler-chevron {
  position: absolute;
  right: 1rem;
  top: 50%;
  width: 1.5rem;
  height: 1.5rem;
  margin-top: -0.75rem;
  border-radius: var(--radius-full);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.4s var(--ease-out), background 0.25s;
}

details.spoiler summary:hover .spoiler-chevron {
  background: var(--surface-hover);
}

details.spoiler[open] .spoiler-chevron {
  transform: rotate(180deg);
}

.spoiler-chevron svg {
  width: 14px;
  height: 14px;
  stroke: var(--accent);
  stroke-width: 2.25;
}

.spoiler-chevron svg path {
  stroke: inherit;
}

.spoiler-body {
  max-height: 0;
  overflow: hidden;
  perspective: 1000px;
  transition: max-height var(--spoiler-roll) var(--ease-out);
}

/* Fallback when JavaScript is disabled */
details.spoiler[open] .spoiler-body {
  max-height: 3200px;
}

@keyframes spoiler-roll-open {
  from {
    transform: rotateX(-88deg);
  }
  to {
    transform: rotateX(0deg);
  }
}

.spoiler-inner {
  padding: 0 1.25rem 1.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  transform-origin: top center;
  backface-visibility: hidden;
  /* Open: keyframed roll only; close snaps (no transition) */
}

details.spoiler:not([open]) .spoiler-inner {
  transform: rotateX(-88deg);
  animation: none;
  pointer-events: none;
}

details.spoiler[open] .spoiler-inner {
  pointer-events: auto;
  animation: spoiler-roll-open var(--spoiler-roll) var(--ease-out) both;
}

@media (prefers-reduced-motion: reduce) {
  .spoiler-body {
    perspective: none;
  }

  .spoiler-inner {
    transition: none;
    animation: none !important;
  }

  details.spoiler:not([open]) .spoiler-inner {
    transform: none;
  }

  details.spoiler[open] .spoiler-inner {
    transform: none;
  }
}

/* ——— Content blocks inside spoiler ——— */
.info-grid {
  display: grid;
  gap: 0.65rem 1.25rem;
  margin: 1rem 0 1.5rem;
}

@media (min-width: 480px) {
  .info-grid {
    grid-template-columns: auto 1fr;
  }
}

.info-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 500;
}

.info-value {
  font-size: 0.95rem;
}

.divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: 1.25rem 0;
}

.summary-text {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

.experience-intro {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-top: 1rem;
}

.experience-studio {
  text-align: center;
  padding: 0 0.5rem 1.35rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.experience-studio-eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.experience-studio-title {
  margin: 0 0 0.45rem;
  font-size: clamp(1.35rem, 4vw, 1.65rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.experience-studio-meta {
  margin: 0 0 0.65rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--accent-dim);
}

.experience-studio-lead {
  margin: 0 auto;
  max-width: 28rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.experience-list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.job-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 1rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: border-color 0.25s, transform 0.25s var(--ease-out);
}

/* Clickable tiles → project overview: plain until hover; palette accent (distinct from always-on studio card) */
a.job-card.job-card--to-project {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition:
    border-color 0.25s var(--ease-out),
    transform 0.25s var(--ease-out),
    background 0.25s var(--ease-out),
    box-shadow 0.25s var(--ease-out);
}

a.job-card.job-card--to-project h3,
a.job-card.job-card--to-project .job-meta,
a.job-card.job-card--to-project p {
  transition: color 0.2s var(--ease-out);
}

a.job-card.job-card--to-project:hover,
a.job-card.job-card--to-project:focus-visible {
  background: linear-gradient(165deg, var(--glow), var(--bg-elevated));
  border-color: rgba(228, 160, 74, 0.38);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(228, 160, 74, 0.1);
}

a.job-card.job-card--to-project:hover h3,
a.job-card.job-card--to-project:focus-visible h3 {
  color: var(--accent);
}

a.job-card.job-card--to-project:hover .job-meta,
a.job-card.job-card--to-project:focus-visible .job-meta {
  color: var(--accent-dim);
}

a.job-card.job-card--to-project:hover p,
a.job-card.job-card--to-project:focus-visible p {
  color: var(--text);
}

a.job-card.job-card--to-project:active {
  transform: translateY(0);
}

a.job-card.job-card--to-project:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 3px;
}

.job-card:hover {
  border-color: rgba(228, 160, 74, 0.2);
}

.job-card h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.job-meta {
  font-size: 0.82rem;
  color: var(--accent);
  font-family: var(--mono);
  margin-bottom: 0.5rem;
}

.job-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ——— Skills spoiler (home) ——— */
.spoiler-inner--skills {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-top: 1rem;
  padding-bottom: 1.5rem;
}

.spoiler-inner--skills .divider {
  margin: 0.25rem 0;
}

.skills-group {
  margin: 0;
}

.skills-heading {
  margin: 0 0 0.85rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
}

.skills-heading--featured {
  font-size: clamp(0.95rem, 2.8vw, 1.08rem);
  letter-spacing: 0.04em;
  color: var(--text);
  font-weight: 600;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(228, 160, 74, 0.35);
  max-width: 18rem;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0.95rem;
}

.skills-heading--notes {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 0.45rem;
}

.skills-group--notes .course-line {
  margin-top: 0;
  text-align: center;
  max-width: 26rem;
  margin-left: auto;
  margin-right: auto;
}

.skill-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem 0.45rem;
  grid-template-columns: 1fr;
}

@media (min-width: 400px) {
  .skill-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 640px) {
  .skill-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.skill-list li {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-wrap: balance;
  min-height: 2.5rem;
  padding: 0.4rem 0.55rem;
  line-height: 1.25;
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: rgba(232, 245, 246, 0.92);
  border-radius: var(--radius-md);
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.06) 0%,
    rgba(255, 255, 255, 0.02) 40%,
    rgba(95, 165, 178, 0.1) 100%
  );
  border: 1px solid rgba(120, 195, 205, 0.32);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 4px 14px rgba(0, 0, 0, 0.22);
  transition:
    border-color 0.22s var(--ease-out),
    box-shadow 0.22s var(--ease-out),
    transform 0.22s var(--ease-out),
    color 0.22s var(--ease-out),
    background 0.22s var(--ease-out);
}

.skill-list li:hover {
  color: var(--text);
  border-color: rgba(140, 215, 225, 0.55);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 6px 20px rgba(0, 0, 0, 0.3),
    0 0 22px rgba(100, 190, 205, 0.18);
  transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
  .skill-list li {
    transition: border-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
  }

  .skill-list li:hover {
    transform: none;
  }
}

.course-line {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 0.35rem 0 0;
}

.course-line strong {
  color: var(--text);
  font-weight: 500;
}

/* ——— Nav cards ——— */
.section-label {
  text-align: center;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  margin: 2.5rem 0 1rem;
  animation: fade-up 0.8s var(--ease-out) 0.28s both;
}

.nav-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: var(--home-tile-max);
  margin: 0 auto;
}

.nav-card {
  display: block;
  position: relative;
  padding: 1.15rem 1.35rem;
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-weight: 500;
  font-size: 1.05rem;
  text-align: center;
  overflow: hidden;
  transition:
    transform 0.35s var(--ease-out),
    border-color 0.25s,
    box-shadow 0.35s var(--ease-out),
    background 0.25s;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.nav-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 40%, rgba(228, 160, 74, 0.06) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 0.6s var(--ease-out);
}

.nav-card:hover {
  border-color: rgba(228, 160, 74, 0.35);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(228, 160, 74, 0.12);
  background: var(--surface);
}

.nav-card:hover::before {
  transform: translateX(100%);
}

.nav-card:active {
  transform: translateY(0) scale(0.98);
  transition-duration: 0.1s;
}

.nav-card span.sub {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-muted);
}

/* Stagger nav cards */
.nav-card[data-i="0"] { animation: fade-up 0.65s var(--ease-out) 0.32s both; }
.nav-card[data-i="1"] { animation: fade-up 0.65s var(--ease-out) 0.4s both; }
.nav-card[data-i="2"] { animation: fade-up 0.65s var(--ease-out) 0.48s both; }
.nav-card[data-i="3"] { animation: fade-up 0.65s var(--ease-out) 0.56s both; }

/* ——— Scroll reveal ——— */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.65s var(--ease-out),
    transform 0.65s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ——— Subpages ——— */
.sub-content {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.sub-content p {
  margin: 0;
  color: var(--text-muted);
}

.contact-cards {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.contact-card {
  padding: 1rem 1.15rem;
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-card strong {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.contact-card a {
  font-size: 1rem;
  word-break: break-all;
}

.contact-plain {
  font-size: 1rem;
  color: var(--text);
}

/* ——— Game audio projects ——— */
.game-projects {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 0.5rem;
}

.project-card {
  position: relative;
  padding: 0;
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  transition:
    transform 0.35s var(--ease-out),
    border-color 0.25s,
    box-shadow 0.35s var(--ease-out);
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(155deg, rgba(228, 160, 74, 0.04), transparent 42%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s var(--ease-out);
}

.project-card:hover {
  border-color: rgba(228, 160, 74, 0.28);
  transform: translateY(-2px);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.38), 0 0 0 1px rgba(228, 160, 74, 0.1);
}

.project-card:hover::before {
  opacity: 1;
}

.project-card:active {
  transform: translateY(0) scale(0.99);
  transition-duration: 0.12s;
}

.page-overview-banner {
  position: relative;
  width: 100%;
  margin: 0;
  height: clamp(168px, 38vw, 320px);
  overflow: hidden;
  background: var(--bg);
}

.page-overview-banner__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.page-overview-banner::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: min(52%, 220px);
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(18, 16, 14, 0) 0%,
    rgba(18, 16, 14, 0.35) 38%,
    var(--bg) 88%,
    var(--bg) 100%
  );
}

.project-banner {
  position: relative;
  width: 100%;
  height: clamp(148px, 32vw, 248px);
  background: var(--surface);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.project-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.project-body {
  padding: 1.35rem 1.35rem 1.45rem;
}

.project-name {
  margin: 0 0 0.5rem;
  font-size: clamp(1.55rem, 5.5vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  text-align: center;
}

.project-position {
  margin: 0 auto 0.9rem;
  font-size: 0.95rem;
  line-height: 1.55;
  font-weight: 500;
  color: var(--text);
  text-align: center;
  max-width: 36rem;
}

.project-dates {
  margin: 0 0 0.5rem;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 500;
}

.project-platforms {
  margin: 0 0 1rem;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.project-blurb {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-muted);
  text-align: center;
}

.project-link {
  display: block;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.5rem;
  border-radius: var(--radius-md);
  background: rgba(228, 160, 74, 0.08);
  border: 1px solid rgba(228, 160, 74, 0.2);
  color: var(--accent);
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}

.project-link:hover {
  background: rgba(228, 160, 74, 0.14);
  border-color: rgba(228, 160, 74, 0.35);
  color: #f0be6e;
}

.project-link:active {
  transform: scale(0.98);
}

.project-actions {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 0.15rem;
}

.project-link--secondary {
  background: transparent;
  border: 1px solid rgba(228, 160, 74, 0.38);
  color: var(--text);
}

.project-link--secondary:hover {
  background: rgba(228, 160, 74, 0.1);
  border-color: rgba(228, 160, 74, 0.52);
  color: var(--text);
}

.detail-section {
  margin-top: 2rem;
}

.detail-section:first-of-type {
  margin-top: 0.35rem;
}

.detail-heading {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  font-weight: 600;
}

.detail-list {
  margin: 0;
  padding: 0 0 0 1.15rem;
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.65;
}

.detail-list li {
  margin-bottom: 0.45rem;
}

.detail-list li:last-child {
  margin-bottom: 0;
}

.detail-list strong {
  color: var(--text);
  font-weight: 600;
}

.detail-note {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.detail-links {
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
}

.detail-links a {
  font-size: 0.9rem;
  font-weight: 500;
}

.detail-links--tight {
  margin-top: 1.25rem;
}

.video-stack {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.video-item {
  margin: 0;
}

.video-item figcaption {
  margin-top: 0.55rem;
  font-size: 0.86rem;
  color: var(--text-muted);
  text-align: center;
}

.ratio-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0a0a0a;
}

.ratio-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.project-card[data-i="0"] {
  animation: fade-up 0.65s var(--ease-out) 0.15s both;
}

.project-card[data-i="1"] {
  animation: fade-up 0.65s var(--ease-out) 0.26s both;
}

.site-footer {
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  opacity: 0.85;
}

/* ——— Keyframes ——— */
@keyframes hero-in {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
