/* ==========================================================================
   PORTFOLIO WEBSITE — MAIN STYLESHEET
   A cinematic, editorial portfolio for a photographer, videographer,
   composer & backpacker.
   ========================================================================== */

/* ──────────────────────────────────────────
   1. DESIGN TOKENS
────────────────────────────────────────── */
:root {
  /* Background Layers */
  --ink:        #09090a;
  --ink-1:      #111110;
  --ink-2:      #181816;
  --ink-3:      #222220;
  --ink-4:      #2e2e2a;

  /* Accent: Warm Gold */
  --gold:       #c8a96e;
  --gold-hi:    #e8cc96;
  --gold-lo:    #8a7248;
  --gold-ghost: rgba(200, 169, 110, 0.08);
  --gold-glow:  0 0 80px rgba(200, 169, 110, 0.14);

  /* Accent: Muted Teal */
  --teal:       #4c91a6;
  --teal-lo:    #2e6878;

  /* Text */
  --t1:         #ede8dd;
  --t2:         #b0a899;
  --t3:         #7a7268;
  --t4:         #48443c;

  /* Borders */
  --line:       rgba(255, 255, 255, 0.07);
  --line-2:     rgba(255, 255, 255, 0.14);

  /* Typography */
  --serif:      'Cormorant Garamond', 'Palatino Linotype', Georgia, serif;
  --sans:       'Outfit', system-ui, sans-serif;

  /* Spacing Scale */
  --s1:  0.5rem;
  --s2:  1rem;
  --s3:  1.5rem;
  --s4:  2rem;
  --s5:  3rem;
  --s6:  4.5rem;
  --s7:  7rem;
  --s8:  10rem;

  /* Layout */
  --wrap:    1380px;
  --narrow:  820px;
  --nav-h:   78px;
  --gutter:  clamp(1.25rem, 4vw, 2.5rem);

  /* Easing */
  --ease:     cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --spring:   cubic-bezier(0.34, 1.56, 0.64, 1);
  --t-1: 150ms var(--ease);
  --t-2: 300ms var(--ease);
  --t-3: 500ms var(--ease-out);
  --t-4: 800ms var(--ease-out);
}

/* ──────────────────────────────────────────
   2. RESET & BASE
────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--ink);
  color: var(--t1);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; border: none; background: none; outline: none; cursor: pointer; }
ul, ol { list-style: none; }
input, textarea, select { color: var(--t1); }

/* ──────────────────────────────────────────
   3. TYPOGRAPHY
────────────────────────────────────────── */
.display {
  font-family: var(--serif);
  font-size: clamp(3.5rem, 8.5vw, 7.5rem);
  font-weight: 300;
  line-height: 1.0;
  letter-spacing: -0.02em;
}

.display-md {
  font-family: var(--serif);
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
}

h2 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.5vw, 2.4rem);
  font-weight: 400;
  line-height: 1.2;
}

h3 {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1.8vw, 1.7rem);
  font-weight: 400;
  line-height: 1.3;
}

h4 {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--t2);
}

p { max-width: 64ch; }

.lead {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  color: var(--t2);
  line-height: 1.85;
}

/* Eyebrow label with decorative line */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.875rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before {
  content: '';
  display: block;
  width: 2rem;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

/* ──────────────────────────────────────────
   4. LAYOUT UTILITIES
────────────────────────────────────────── */
.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap--narrow {
  max-width: var(--narrow);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--s7);
}

.section--sm {
  padding-block: var(--s6);
}

.section--lg {
  padding-block: var(--s8);
}

.section-header {
  margin-bottom: var(--s6);
}

.section-header--center {
  text-align: center;
  align-items: center;
  display: flex;
  flex-direction: column;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s4);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s4);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s3);
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
}

/* ──────────────────────────────────────────
   5. BUTTONS
────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.875rem 2rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: var(--t-2);
  white-space: nowrap;
  cursor: pointer;
}

.btn-primary {
  background: var(--gold);
  color: var(--ink);
}
.btn-primary:hover {
  background: var(--gold-hi);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200,169,110,0.3);
}

.btn-outline {
  border: 1px solid var(--gold);
  color: var(--gold);
}
.btn-outline:hover {
  background: var(--gold-ghost);
  transform: translateY(-2px);
}

.btn-ghost {
  color: var(--t2);
  border: 1px solid var(--line-2);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  margin-top: var(--s4);
}

/* ──────────────────────────────────────────
   6. NAVIGATION
────────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding-inline: var(--gutter);
  transition: background var(--t-3), backdrop-filter var(--t-3),
              border-color var(--t-3), box-shadow var(--t-3);
  border-bottom: 1px solid transparent;
}

.site-nav.scrolled {
  background: rgba(9, 9, 10, 0.88);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-color: var(--line);
  box-shadow: 0 1px 40px rgba(0,0,0,0.5);
}

.nav-inner {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  transition: opacity var(--t-2);
}
.nav-logo:hover { opacity: 0.8; }

.logo-name {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--t1);
  letter-spacing: 0.04em;
}

.logo-sub {
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 1px;
}

/* Desktop Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--s1);
}

.nav-links a {
  padding: 0.4rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--t2);
  transition: color var(--t-2);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0.75rem;
  right: 0.75rem;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-2);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--t1);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.nav-links .nav-cta {
  margin-left: var(--s1);
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--gold);
  color: var(--gold);
  border-radius: 2px;
  transition: all var(--t-2);
}
.nav-links .nav-cta:hover {
  background: var(--gold);
  color: var(--ink);
}
.nav-links .nav-cta::after { display: none; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  z-index: 1001;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--t1);
  transition: all var(--t-2);
  transform-origin: center;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ──────────────────────────────────────────
   7. PAGE TRANSITION OVERLAY
────────────────────────────────────────── */
#page-overlay {
  position: fixed;
  inset: 0;
  background: var(--ink);
  z-index: 2000;
  pointer-events: none;
  opacity: 0;
  transition: opacity 400ms var(--ease);
}
#page-overlay.active { opacity: 1; pointer-events: all; }

/* ──────────────────────────────────────────
   8. HERO SECTION (Home Page)
────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

/* Hero background: replace with actual image via inline style or bg-image */
.hero-bg {
  position: absolute;
  inset: 0;
  /* ═══ INSERT YOUR HERO IMAGE HERE ═══
     background-image: url(images/hero-bg.jpg);
     ══════════════════════════════════ */
  background: linear-gradient(135deg,
    #0a1520 0%,
    #0d1f2d 20%,
    #142030 45%,
    #1a1508 70%,
    #0a0a08 100%);
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  transition: transform 6s var(--ease-out);
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(9,9,10,0.25) 0%,
    rgba(9,9,10,0.35) 50%,
    rgba(9,9,10,0.85) 80%,
    rgba(9,9,10,1) 100%
  );
}

.hero.loaded .hero-bg { transform: scale(1); }

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
  padding-bottom: var(--s7);
}

.hero-eyebrow {
  margin-bottom: var(--s3);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s var(--ease-out) 0.3s forwards;
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(4rem, 10vw, 9.5rem);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.025em;
  color: var(--t1);
  margin-bottom: var(--s3);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s var(--ease-out) 0.5s forwards;
}

.hero-tagline {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 300;
  color: var(--t2);
  letter-spacing: 0.04em;
  margin-bottom: var(--s4);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s var(--ease-out) 0.8s forwards;
}

.hero-intro {
  font-size: 1rem;
  color: var(--t3);
  max-width: 480px;
  line-height: 1.9;
  margin-bottom: var(--s4);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s var(--ease-out) 1s forwards;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s var(--ease-out) 1.2s forwards;
}

/* Scroll Indicator */
.scroll-cue {
  position: absolute;
  bottom: var(--s4);
  right: var(--gutter);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s1);
  z-index: 2;
  opacity: 0;
  animation: fadeIn 1s var(--ease-out) 1.8s forwards;
}
.scroll-cue span {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--t4);
  writing-mode: vertical-lr;
}
.scroll-cue-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, transparent, var(--gold));
  animation: lineDown 2s var(--ease) 2s infinite;
}

/* ──────────────────────────────────────────
   9. PAGE HEADER (Inner Pages)
────────────────────────────────────────── */
.page-header {
  position: relative;
  height: 60vh;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.page-header-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  /* ═══ INSERT PAGE HEADER IMAGE INLINE via style="background-image:url(...)" ═══ */
  transform: scale(1.05);
  transition: transform 6s var(--ease-out);
}
.page-header-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(9,9,10,0.3) 0%,
    rgba(9,9,10,0.8) 70%,
    rgba(9,9,10,1) 100%
  );
}

.page-header.loaded .page-header-bg { transform: scale(1); }

.page-header-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
  padding-bottom: var(--s6);
}

.page-header-content .eyebrow { margin-bottom: var(--s2); }

.page-title {
  font-family: var(--serif);
  font-size: clamp(2.75rem, 6vw, 5.5rem);
  font-weight: 300;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--t1);
  margin-bottom: var(--s2);
}

.page-subtitle {
  color: var(--t3);
  font-size: 1rem;
  max-width: 500px;
}

/* ──────────────────────────────────────────
   10. FEATURE PREVIEW (Home Page Sections)
────────────────────────────────────────── */
.feature-section {
  padding-block: var(--s7);
  border-top: 1px solid var(--line);
}

.feature-section--dark {
  background: var(--ink-1);
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  margin-top: var(--s5);
  overflow: hidden;
  border-radius: 4px;
}

.feature-card {
  background: var(--ink-2);
  aspect-ratio: 4/3;
  position: relative;
  overflow: hidden;
  transition: background var(--t-2);
}
.feature-card:hover .feature-card-img { transform: scale(1.06); }
.feature-card:hover .feature-card-overlay { opacity: 1; }

.feature-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-4);
  /* Gradient fallback when no image loaded */
  background: linear-gradient(135deg, var(--ink-3), var(--ink-4));
}

.feature-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(9,9,10,0.9) 0%, transparent 50%);
  display: flex;
  align-items: flex-end;
  padding: var(--s3);
  opacity: 0.7;
  transition: opacity var(--t-3);
}

.feature-card-label {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--t1);
}

/* Three-column feature grid variant */
.feature-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s3);
  margin-top: var(--s5);
}

.feature-item {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  transition: border-color var(--t-2), transform var(--t-2);
}
.feature-item:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
}

.feature-item-media {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: linear-gradient(135deg, var(--ink-3), var(--ink-4));
}
.feature-item-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-3);
}
.feature-item:hover .feature-item-media img { transform: scale(1.06); }

.feature-item-body {
  padding: var(--s3);
}
.feature-item-body h3 {
  font-size: 1.1rem;
  margin-bottom: var(--s1);
}
.feature-item-body p {
  font-size: 0.88rem;
  color: var(--t3);
  line-height: 1.6;
}

/* ──────────────────────────────────────────
   11. STATS / INTRO BAR
────────────────────────────────────────── */
.stats-bar {
  background: var(--ink-1);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: var(--s5);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s4);
  text-align: center;
}

.stat-item { padding: var(--s2); }

.stat-number {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
  margin-bottom: var(--s1);
}

.stat-label {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--t3);
}

/* ──────────────────────────────────────────
   12. GALLERY (Photography Page)
────────────────────────────────────────── */
/* Filter Tabs */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s1);
  margin-bottom: var(--s5);
}

.filter-tab {
  padding: 0.5rem 1.1rem;
  font-size: 0.74rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--t3);
  border: 1px solid var(--line-2);
  border-radius: 2px;
  cursor: pointer;
  transition: all var(--t-2);
  background: transparent;
}
.filter-tab:hover { border-color: var(--gold); color: var(--gold); }
.filter-tab.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}

/* Gallery Grid */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}

.photo-grid--masonry {
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 280px;
}

/* Span variants for masonry feel */
.photo-item { position: relative; overflow: hidden; cursor: pointer; }
.photo-item.span-2h { grid-column: span 1; grid-row: span 2; }
.photo-item.span-2w { grid-column: span 2; }
.photo-item.tall   { aspect-ratio: 3/4; }
.photo-item.wide   { aspect-ratio: 16/9; }
.photo-item.square { aspect-ratio: 1/1; }

.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-4);
  /* Gradient fallback */
  background: linear-gradient(135deg, var(--ink-3), var(--ink-4));
}
.photo-item:hover img { transform: scale(1.06); }

.photo-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(9,9,10,0.92) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--t-2);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--s3);
}
.photo-item:hover .photo-item-overlay { opacity: 1; }

.photo-item-title {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--t1);
  margin-bottom: 0.25rem;
}

.photo-item-desc {
  font-size: 0.8rem;
  color: var(--t3);
}

.photo-item-zoom {
  position: absolute;
  top: var(--s2);
  right: var(--s2);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(9,9,10,0.6);
  border: 1px solid var(--line-2);
  border-radius: 50%;
  color: var(--t1);
  opacity: 0;
  transition: opacity var(--t-2);
  font-size: 1rem;
}
.photo-item:hover .photo-item-zoom { opacity: 1; }

/* Hidden gallery items (for filtering) */
.photo-item.hidden {
  display: none;
}

/* ──────────────────────────────────────────
   13. LIGHTBOX
────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(9, 9, 10, 0.96);
  backdrop-filter: blur(8px);
  padding: var(--s4);
}
.lightbox.open {
  display: flex;
  animation: fadeIn 0.3s var(--ease-out);
}

.lightbox-close {
  position: absolute;
  top: var(--s3);
  right: var(--s3);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  color: var(--t1);
  font-size: 1.2rem;
  transition: all var(--t-2);
  cursor: pointer;
  background: rgba(9,9,10,0.5);
  z-index: 10;
}
.lightbox-close:hover { border-color: var(--gold); color: var(--gold); }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-2);
  background: rgba(9,9,10,0.5);
  color: var(--t1);
  font-size: 1.2rem;
  cursor: pointer;
  transition: all var(--t-2);
  z-index: 10;
}
.lightbox-nav:hover { border-color: var(--gold); color: var(--gold); }
.lightbox-prev { left: var(--s3); border-radius: 2px; }
.lightbox-next { right: var(--s3); border-radius: 2px; }

.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s2);
}

.lightbox-img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  box-shadow: 0 24px 80px rgba(0,0,0,0.8);
  /* Gradient fallback placeholder */
  min-width: 300px;
  min-height: 200px;
  background: linear-gradient(135deg, var(--ink-2), var(--ink-4));
}

.lightbox-caption {
  text-align: center;
}
.lightbox-caption h4 {
  color: var(--t1);
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
  margin-bottom: 0.25rem;
}
.lightbox-caption p {
  font-size: 0.8rem;
  color: var(--t3);
}

/* ──────────────────────────────────────────
   14. VIDEO GRID
────────────────────────────────────────── */
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s4);
  margin-top: var(--s5);
}

.video-card {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  transition: border-color var(--t-2), transform var(--t-2);
}
.video-card:hover { border-color: var(--line-2); transform: translateY(-4px); }

/* 16:9 responsive embed */
.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: var(--ink-3);
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* YouTube placeholder (before iframe loads) */
.video-placeholder {
  position: relative;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--ink-3), var(--ink-4));
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
}
.video-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  transition: transform var(--t-3);
}
.video-placeholder:hover img { transform: scale(1.04); }

.video-play-btn {
  position: relative;
  z-index: 2;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(9,9,10,0.7);
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--t-2);
}
.video-play-btn::after {
  content: '';
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 12px 0 12px 22px;
  border-color: transparent transparent transparent var(--gold);
  margin-left: 4px;
}
.video-placeholder:hover .video-play-btn {
  background: var(--gold);
  transform: scale(1.1);
}
.video-placeholder:hover .video-play-btn::after {
  border-color: transparent transparent transparent var(--ink);
}

.video-card-body {
  padding: var(--s3) var(--s3) var(--s4);
}

.video-meta {
  display: flex;
  align-items: center;
  gap: var(--s2);
  margin-bottom: var(--s2);
}

.video-category {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-ghost);
  padding: 0.25rem 0.6rem;
  border-radius: 2px;
}

.video-duration {
  font-size: 0.78rem;
  color: var(--t3);
}

.video-card-title {
  font-family: var(--serif);
  font-size: 1.3rem;
  margin-bottom: var(--s1);
  color: var(--t1);
}

.video-card-desc {
  font-size: 0.88rem;
  color: var(--t3);
  line-height: 1.7;
}

/* Featured showreel */
.showreel {
  background: var(--ink-1);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: var(--s7);
}

.showreel .video-embed {
  padding-bottom: 42.86%; /* Wider aspect for showreel */
}

.showreel-label {
  padding: var(--s3) var(--s4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
}

/* ──────────────────────────────────────────
   15. AUDIO / MUSIC PLAYER
────────────────────────────────────────── */
.music-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s3);
  margin-top: var(--s5);
}

.track-card {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: var(--s3) var(--s4);
  transition: border-color var(--t-2);
}
.track-card:hover { border-color: var(--line-2); }

.track-header {
  display: flex;
  align-items: flex-start;
  gap: var(--s3);
  margin-bottom: var(--s3);
}

.track-artwork {
  width: 72px;
  height: 72px;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--ink-4), var(--teal-lo));
  flex-shrink: 0;
  overflow: hidden;
}
.track-artwork img { width: 100%; height: 100%; object-fit: cover; }

.track-info { flex: 1; min-width: 0; }

.track-title {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--t1);
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-album {
  font-size: 0.8rem;
  color: var(--t3);
  margin-bottom: 0.5rem;
}

.track-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tag {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  border: 1px solid rgba(76,145,166,0.3);
  padding: 0.15rem 0.5rem;
  border-radius: 2px;
}

/* Custom Audio Player */
.audio-player {
  display: flex;
  align-items: center;
  gap: var(--s2);
  margin-top: var(--s2);
}

.audio-play-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all var(--t-2);
  border: none;
  color: var(--ink);
}
.audio-play-btn:hover { background: var(--gold-hi); transform: scale(1.05); }

.audio-play-icon {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 7px 0 7px 13px;
  border-color: transparent transparent transparent var(--ink);
  margin-left: 3px;
  transition: all var(--t-1);
}

.audio-play-btn.playing .audio-play-icon {
  width: 12px;
  height: 12px;
  border: none;
  border-left: 3px solid var(--ink);
  border-right: 3px solid var(--ink);
  margin-left: 0;
}

.audio-controls {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.audio-progress-wrap {
  position: relative;
  height: 3px;
  background: var(--ink-4);
  border-radius: 2px;
  cursor: pointer;
  overflow: visible;
}

.audio-progress-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 2px;
  width: 0%;
  transition: width 0.1s linear;
  pointer-events: none;
}

.audio-progress-wrap:hover .audio-progress-fill {
  background: var(--gold-hi);
}

.audio-time {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--t3);
  font-feature-settings: 'tnum';
}

/* Native audio element - hide but keep functional */
.audio-native {
  display: none;
}

/* Album / Project Cards */
.album-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s4);
  margin-top: var(--s5);
}

.album-card {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  transition: border-color var(--t-2), transform var(--t-2);
}
.album-card:hover { border-color: var(--gold); transform: translateY(-4px); }

.album-cover {
  aspect-ratio: 1;
  background: linear-gradient(135deg, #1a2030, #0a1520);
  overflow: hidden;
  position: relative;
}
.album-cover img { width: 100%; height: 100%; object-fit: cover; }

.album-body {
  padding: var(--s3);
}

.album-title {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--t1);
  margin-bottom: 0.25rem;
}

.album-year {
  font-size: 0.78rem;
  color: var(--gold);
  margin-bottom: var(--s1);
}

.album-desc {
  font-size: 0.85rem;
  color: var(--t3);
  line-height: 1.65;
}

/* ──────────────────────────────────────────
   16. PROJECTS PAGE
────────────────────────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s4);
  margin-top: var(--s5);
}

.project-card {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  transition: border-color var(--t-2);
}
.project-card:hover { border-color: var(--line-2); }

.project-thumb {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: linear-gradient(135deg, var(--ink-3), var(--ink-4));
  position: relative;
}
.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-4);
}
.project-card:hover .project-thumb img { transform: scale(1.05); }

.project-badge {
  position: absolute;
  top: var(--s2);
  left: var(--s2);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 2px;
  font-weight: 500;
}
.badge-adventure  { background: rgba(74,143,163,0.85); color: var(--t1); }
.badge-film       { background: rgba(200,169,110,0.85); color: var(--ink); }
.badge-sound      { background: rgba(120,100,180,0.85); color: var(--t1); }
.badge-photo      { background: rgba(80,140,100,0.85); color: var(--t1); }
.badge-personal   { background: rgba(160,80,80,0.85); color: var(--t1); }

.project-body {
  padding: var(--s3) var(--s4);
}

.project-meta {
  display: flex;
  gap: var(--s2);
  margin-bottom: var(--s2);
  font-size: 0.75rem;
  color: var(--t3);
}

.project-title {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--t1);
  margin-bottom: var(--s1);
}

.project-excerpt {
  font-size: 0.88rem;
  color: var(--t3);
  line-height: 1.7;
  margin-bottom: var(--s3);
}

/* Accordion expand */
.project-toggle {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  cursor: pointer;
  transition: gap var(--t-2);
  background: none;
  border: none;
  padding: 0;
}
.project-toggle:hover { gap: 0.9rem; }

.project-toggle-icon {
  font-size: 1.2rem;
  transition: transform var(--t-2);
  line-height: 1;
}
.project-toggle.open .project-toggle-icon { transform: rotate(45deg); }

.project-detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--t-3);
}
.project-detail.open { max-height: 600px; }

.project-detail-inner {
  padding-top: var(--s3);
  margin-top: var(--s3);
  border-top: 1px solid var(--line);
}

.project-links {
  display: flex;
  gap: var(--s2);
  margin-top: var(--s3);
  flex-wrap: wrap;
}

/* ──────────────────────────────────────────
   17. ABOUT PAGE
────────────────────────────────────────── */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: var(--s7);
  align-items: center;
  padding-block: var(--s7);
}

.portrait-wrap {
  position: relative;
}

.portrait {
  aspect-ratio: 3/4;
  background: linear-gradient(160deg, var(--ink-3) 0%, var(--ink-4) 100%);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }

/* Decorative border offset */
.portrait-wrap::before {
  content: '';
  position: absolute;
  inset: -12px -12px auto auto;
  width: 60%;
  height: 60%;
  border-top: 1px solid var(--gold);
  border-right: 1px solid var(--gold);
  pointer-events: none;
  opacity: 0.4;
}

.about-bio h2 {
  margin-bottom: var(--s3);
}

.about-bio p {
  color: var(--t2);
  margin-bottom: var(--s3);
  line-height: 1.85;
  font-size: 1.025rem;
}

/* Timeline */
.timeline {
  position: relative;
  margin-top: var(--s5);
  padding-left: var(--s4);
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(to bottom, var(--gold), transparent);
}

.timeline-item {
  position: relative;
  padding-bottom: var(--s5);
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--s4));
  top: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  transform: translateX(-3px);
}

.timeline-year {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.timeline-event {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--t1);
  margin-bottom: 0.35rem;
}

.timeline-desc {
  font-size: 0.9rem;
  color: var(--t3);
  line-height: 1.65;
}

/* Skills Grid */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s3);
  margin-top: var(--s4);
}

.skill-item {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: var(--s3);
  transition: border-color var(--t-2);
}
.skill-item:hover { border-color: var(--gold); }

.skill-icon {
  width: 40px;
  height: 40px;
  margin-bottom: var(--s2);
  color: var(--gold);
  font-size: 1.4rem;
}

.skill-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--t1);
  margin-bottom: 0.25rem;
}

.skill-level {
  font-size: 0.75rem;
  color: var(--t3);
}

.skill-bar {
  height: 2px;
  background: var(--line-2);
  border-radius: 2px;
  margin-top: var(--s2);
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  background: linear-gradient(to right, var(--gold-lo), var(--gold));
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1s var(--ease-out) 0.2s;
}
.skill-item.revealed .skill-bar-fill { transform: scaleX(1); }

/* Equipment */
.equipment-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s4);
  margin-top: var(--s4);
}

.equipment-group h4 {
  color: var(--gold);
  margin-bottom: var(--s2);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.equipment-list li {
  font-size: 0.88rem;
  color: var(--t2);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.equipment-list li::before {
  content: '·';
  color: var(--gold);
}

/* Philosophy Quote */
.philosophy-quote {
  background: var(--ink-2);
  border-left: 2px solid var(--gold);
  padding: var(--s4) var(--s5);
  margin-block: var(--s7);
  border-radius: 0 4px 4px 0;
}

.philosophy-quote blockquote {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 300;
  line-height: 1.5;
  color: var(--t1);
  font-style: italic;
  margin-bottom: var(--s2);
}

.philosophy-quote cite {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--t3);
}

/* ──────────────────────────────────────────
   18. CONTACT PAGE
────────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--s7);
  align-items: start;
  padding-block: var(--s7);
}

.contact-form-wrap h2 { margin-bottom: var(--s4); }

.form-group {
  margin-bottom: var(--s3);
}

.form-label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--t3);
  margin-bottom: 0.5rem;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.875rem var(--s2);
  background: var(--ink-2);
  border: 1px solid var(--line-2);
  border-radius: 2px;
  color: var(--t1);
  font-size: 0.95rem;
  font-family: var(--sans);
  font-weight: 300;
  transition: border-color var(--t-2), background var(--t-2);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--gold);
  background: var(--ink-3);
  outline: none;
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
}

.form-select option { background: var(--ink-2); }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s3);
}

.form-success {
  display: none;
  padding: var(--s3);
  border: 1px solid rgba(80,160,100,0.3);
  background: rgba(80,160,100,0.06);
  border-radius: 2px;
  color: #78c894;
  font-size: 0.9rem;
  margin-top: var(--s2);
}

/* Contact Info Side */
.contact-info { padding-top: var(--s2); }

.contact-info h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  margin-bottom: var(--s4);
  color: var(--t1);
}

.contact-detail {
  display: flex;
  gap: var(--s2);
  align-items: flex-start;
  margin-bottom: var(--s3);
  padding-bottom: var(--s3);
  border-bottom: 1px solid var(--line);
}

.contact-detail:last-of-type { border-bottom: none; }

.contact-icon {
  width: 40px;
  height: 40px;
  background: var(--gold-ghost);
  border: 1px solid rgba(200,169,110,0.2);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1rem;
  flex-shrink: 0;
}

.contact-detail-text h4 {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--t3);
  margin-bottom: 0.25rem;
  text-transform: uppercase;
}
.contact-detail-text p,
.contact-detail-text a {
  font-size: 0.92rem;
  color: var(--t1);
  transition: color var(--t-2);
}
.contact-detail-text a:hover { color: var(--gold); }

/* Social Links */
.social-links {
  display: flex;
  gap: var(--s2);
  margin-top: var(--s4);
}

.social-link {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-2);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--t3);
  font-size: 0.9rem;
  transition: all var(--t-2);
}
.social-link:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-ghost);
}

/* ──────────────────────────────────────────
   19. FOOTER
────────────────────────────────────────── */
.site-footer {
  background: var(--ink-1);
  border-top: 1px solid var(--line);
  padding-block: var(--s7) var(--s5);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--s6);
  margin-bottom: var(--s6);
}

.footer-brand .logo-name {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--t1);
  margin-bottom: var(--s1);
}
.footer-brand p {
  font-size: 0.88rem;
  color: var(--t3);
  line-height: 1.7;
  max-width: 280px;
  margin-bottom: var(--s3);
}

.footer-col h4 {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--t3);
  margin-bottom: var(--s2);
}

.footer-col ul li {
  margin-bottom: 0.6rem;
}

.footer-col ul li a {
  font-size: 0.88rem;
  color: var(--t3);
  transition: color var(--t-2);
}
.footer-col ul li a:hover { color: var(--gold); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--s4);
  border-top: 1px solid var(--line);
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--t4);
}

/* ──────────────────────────────────────────
   20. SCROLL REVEAL ANIMATIONS
────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity var(--t-4), transform var(--t-4);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity var(--t-4), transform var(--t-4);
}
.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity var(--t-4), transform var(--t-4);
}
.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

/* Staggered child reveals */
.stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.stagger.revealed > *:nth-child(1)  { opacity: 1; transform: none; transition-delay: 0ms; }
.stagger.revealed > *:nth-child(2)  { opacity: 1; transform: none; transition-delay: 80ms; }
.stagger.revealed > *:nth-child(3)  { opacity: 1; transform: none; transition-delay: 160ms; }
.stagger.revealed > *:nth-child(4)  { opacity: 1; transform: none; transition-delay: 240ms; }
.stagger.revealed > *:nth-child(5)  { opacity: 1; transform: none; transition-delay: 320ms; }
.stagger.revealed > *:nth-child(6)  { opacity: 1; transform: none; transition-delay: 400ms; }
.stagger.revealed > *:nth-child(n+7){ opacity: 1; transform: none; transition-delay: 480ms; }

/* Decorative separator */
.section-sep {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin-block: var(--s3);
}

/* Gradient separator between sections */
.gradient-sep {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-lo), transparent);
  margin-block: 0;
}

/* Pull quote / highlight box */
.highlight-box {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-left: 2px solid var(--gold);
  padding: var(--s3) var(--s4);
  border-radius: 0 4px 4px 0;
}

.highlight-box p {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--t1);
  font-style: italic;
  line-height: 1.6;
  margin: 0;
}

/* ──────────────────────────────────────────
   21. KEYFRAME ANIMATIONS
────────────────────────────────────────── */
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes lineDown {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 1; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

@keyframes pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%       { opacity: 1; transform: scale(1.05); }
}

/* ──────────────────────────────────────────
   22. RESPONSIVE DESIGN
────────────────────────────────────────── */

/* ── Tablet: 1024px ── */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--s4);
  }

  .about-intro {
    grid-template-columns: 1fr 1.4fr;
    gap: var(--s5);
  }

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

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

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

  .contact-layout {
    grid-template-columns: 1fr;
    gap: var(--s5);
  }
}

/* ── Small Tablet / Large Mobile: 768px ── */
@media (max-width: 768px) {
  :root {
    --nav-h: 64px;
  }

  /* Mobile Navigation */
  .nav-links {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(320px, 100vw);
    background: rgba(9,9,10,0.97);
    backdrop-filter: blur(24px);
    border-left: 1px solid var(--line);
    flex-direction: column;
    justify-content: center;
    gap: var(--s2);
    padding: var(--s7) var(--s5);
    transform: translateX(100%);
    transition: transform var(--t-3);
    z-index: 999;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a {
    font-size: 1.1rem;
    padding: 0.6rem 0;
    letter-spacing: 0.08em;
  }
  .nav-links .nav-cta { margin-left: 0; margin-top: var(--s2); display: block; text-align: center; }
  .nav-toggle { display: flex; }

  .hero-title {
    font-size: clamp(3rem, 12vw, 5rem);
  }

  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }

  .photo-grid { grid-template-columns: 1fr 1fr; }
  .photo-grid--masonry { grid-auto-rows: auto; }
  .photo-item.span-2h { grid-row: span 1; }

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

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

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

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

  .about-intro {
    grid-template-columns: 1fr;
    gap: var(--s4);
  }
  .portrait { aspect-ratio: 4/3; }

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

  .footer-grid { grid-template-columns: 1fr; gap: var(--s4); }

  .feature-grid { grid-template-columns: 1fr; }
  .feature-row { grid-template-columns: 1fr; }

  .form-row { grid-template-columns: 1fr; }

  .footer-bottom { flex-direction: column; gap: var(--s2); text-align: center; }

  .philosophy-quote { padding: var(--s3) var(--s4); }
}

/* ── Mobile: 480px ── */
@media (max-width: 480px) {
  .hero-title { font-size: clamp(2.5rem, 14vw, 3.5rem); }
  .page-title { font-size: clamp(2rem, 10vw, 3rem); }
  .photo-grid { grid-template-columns: 1fr; }
  .album-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .lightbox-nav { display: none; }
}

/* ──────────────────────────────────────────
   23. UTILITY / MISC
────────────────────────────────────────── */
.text-gold   { color: var(--gold); }
.text-muted  { color: var(--t3); }
.text-center { text-align: center; }
.mt-1 { margin-top: var(--s1); }
.mt-2 { margin-top: var(--s2); }
.mt-3 { margin-top: var(--s3); }
.mt-4 { margin-top: var(--s4); }
.mt-6 { margin-top: var(--s6); }
.mb-2 { margin-bottom: var(--s2); }
.mb-4 { margin-bottom: var(--s4); }

/* Placeholder gradient helpers — visible when images aren't loaded */
.ph-mountain  { background: linear-gradient(135deg, #0d1f30, #1a3040, #0a1520); }
.ph-forest    { background: linear-gradient(135deg, #0a1a10, #142a18, #0a1208); }
.ph-sunset    { background: linear-gradient(135deg, #2a1008, #3a200a, #1a0c04); }
.ph-desert    { background: linear-gradient(135deg, #2a1e0a, #3a2e14, #1a1206); }
.ph-ocean     { background: linear-gradient(135deg, #041820, #082840, #021020); }
.ph-night     { background: linear-gradient(135deg, #080814, #10101e, #060610); }
.ph-abstract  { background: linear-gradient(135deg, #1a0a20, #20102a, #0a0610); }
.ph-audio     { background: linear-gradient(135deg, #080820, #141432, #040412); }

/* Aspect ratio boxes */
.ar-16-9  { aspect-ratio: 16/9; }
.ar-4-3   { aspect-ratio: 4/3; }
.ar-3-4   { aspect-ratio: 3/4; }
.ar-1-1   { aspect-ratio: 1; }

/* Object-fit image */
.img-cover { width:100%; height:100%; object-fit:cover; }

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