/* ============================================================
   style.css - dark only, single-page creative portfolio
   ============================================================ */

/* === VARIABLES ============================================= */
:root {
  --bg:          #080808;
  --surface:     #101010;
  --elevated:    #181818;
  --border:      #1e1e1e;
  --border-mid:  #2c2c2c;
  --text:        #ededed;
  --text-sec:    #727272;
  --text-dim:    #3a3a3a;
  --gold:        #c9a04a;
  --gold-hover:  #dab85e;
  --gold-dim:    rgba(201, 160, 74, 0.10);
  --r:           10px;
  --r-sm:        6px;
  --r-pill:      100px;
  --ease:        0.22s cubic-bezier(0.4, 0, 0.2, 1);
  --font:        -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --mono:        'SF Mono', 'Fira Code', 'Cascadia Code', Consolas, monospace;
}

/* === RESET ================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

/* === SCROLL OFFSETS (clear 2-row glass bar + 8px breathing room) */
#home, #work, #cinematography, #animation, #thumbnails, #sound, #about, #contact {
  scroll-margin-top: 88px;
}
/* #vfx uses JS custom scroll - no scroll-margin-top needed */

/* Placeholder feature card (cinematography) */
.placeholder-card {
  width: 100%;
  aspect-ratio: 16 / 7;
  background: var(--elevated);
  border: 1px solid var(--border);
  border-radius: var(--r);
}

/* === CINEMATOGRAPHY PROJECT GRID ========================== */
.cine-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.cine-card {
  display: block;
  background: #141414;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color var(--ease), background var(--ease);
}
.cine-card--static { cursor: default; }
.cine-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}
.cine-card__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: filter var(--ease);
}
.cine-card__footer { padding: 0.9rem 1.15rem 1.05rem; }
.cine-card__title {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text);
}
.cine-card__sub {
  margin-top: 0.3rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-sec);
}
.cine-card:hover { border-color: var(--border-mid); background: #181818; }
.cine-card:hover .cine-card__media video { filter: brightness(1.12); }
@media (max-width: 700px) {
  .cine-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* === ANIMATION CAROUSEL ==================================== */
.anim-carousel {
  position: relative;
  width: 100%;
  perspective: 1100px;
  padding: 3rem 0 0;
}

.anim-track {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  /* extra vertical room so the larger back panel isn't clipped */
  height: clamp(270px, 40vw, 520px);
  overflow: hidden;
}

/* ── Individual panel ─────────────────────────────────────── */
.anim-panel {
  position: absolute;
  width: clamp(240px, 40vw, 580px);
  height: 88%;
  border-radius: var(--r);
  overflow: hidden;
  will-change: transform, opacity, filter;
  /* transition injected by JS: disabled on init, enabled per-slide */
}

/* ACTIVE: centered, sharp, on top */
.anim-panel.is-active {
  transform: translateX(0);
  filter: none;
  opacity: 1;
  z-index: 2;
  cursor: pointer;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.60);
}

/* OFFSCREEN LEFT: hidden left of track */
.anim-panel.off-left {
  transform: translateX(-120%);
  filter: blur(8px);
  opacity: 0;
  z-index: 1;
  cursor: default;
}

/* OFFSCREEN RIGHT: hidden right of track */
.anim-panel.off-right {
  transform: translateX(120%);
  filter: blur(8px);
  opacity: 0;
  z-index: 1;
  cursor: default;
}

.anim-panel__inner {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--elevated);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
}

/* Bottom gradient for title readability */
.anim-panel__inner::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 45%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.60) 0%, rgba(0, 0, 0, 0) 100%);
  border-radius: 0 0 var(--r) var(--r);
  pointer-events: none;
  z-index: 1;
}

.anim-panel__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--r);
  z-index: 0;
}
.anim-panel__title {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  white-space: nowrap;
  font-size: clamp(1rem, 2.2vw, 1.5rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

/* ── Arrow buttons row (below track) ─────────────────────── */
.anim-arrows {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  padding-bottom: 3rem;
}

.anim-arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--text);
  font-size: 1.7rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--ease), border-color var(--ease), transform var(--ease);
  user-select: none;
}
.anim-arrow:hover {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.30);
  transform: scale(1.1);
}

/* Responsive: tighten on small screens */
@media (max-width: 600px) {
  .anim-panel { width: 78vw; }
  .anim-track { height: clamp(200px, 54vw, 320px); }
}
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; background: none; border: none; }

/* === LAYOUT ================================================ */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 2rem;
}
.section {
  padding: clamp(5rem, 11vw, 9rem) 0;
  border-top: 1px solid var(--border);
}
.section--flush { border-top: none; }

/* === TYPE ================================================== */
h1, h2, h3, h4 { line-height: 1.08; letter-spacing: -0.025em; }
.eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.section-header { margin-bottom: clamp(3rem, 6vw, 5rem); }
.section-header h2 {
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}
.section-header .sub {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--text-sec);
  margin-top: 0.75rem;
  max-width: 520px;
  line-height: 1.7;
}

/* === BUTTONS =============================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--r-pill);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1.5px solid transparent;
  transition: background var(--ease), border-color var(--ease), color var(--ease), transform var(--ease);
  white-space: nowrap;
}
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.btn--primary {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}
.btn--primary:hover { background: transparent; color: var(--text); transform: translateY(-1px); }
/* Hero-only button hover overrides - scoped so other sections are unaffected */
.hero .btn--primary:hover {
  background: #f5c842;
  border-color: #f5c842;
  color: #0d0d0d;
  transform: translateY(-1px);
}
.hero .btn--outline:hover {
  background: #2c6fdb;
  border-color: #2c6fdb;
  color: #ffffff;
  transform: translateY(-1px);
}
.btn--outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border-mid);
}
.btn--outline:hover { border-color: var(--text); transform: translateY(-1px); }
.btn--gold {
  background: var(--gold);
  color: #0d0d0d;
  border-color: var(--gold);
}
.btn--gold:hover { background: var(--gold-hover); border-color: var(--gold-hover); transform: translateY(-1px); }
.btn--sm { padding: 0.5rem 1rem; font-size: 0.8rem; }
.btn-group { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

/* === NAV - 2-row glass bar ================================= */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

.nav__bar {
  display: flex;
  flex-direction: column;
  padding: 0 1.75rem;
  background: rgba(8, 8, 8, 0.62);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 8px 32px rgba(0, 0, 0, 0.50);
  background-image: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.04) 0%,
    rgba(255, 255, 255, 0.00) 60%
  );
}

/* Slightly more opaque once scrolled */
.nav.scrolled .nav__bar {
  background: rgba(8, 8, 8, 0.82);
}

/* ── Row 1: brand (centered) + CTA (right) ── */
.nav__row1 {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0.7rem 0 0.45rem;
}

/* Empty left spacer keeps brand truly centered */
.nav__row1-spacer { display: block; }

.nav__brand {
  font-size: 0.90rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
  text-align: center;
  transition: opacity 0.18s ease;
}
.nav__brand:hover { opacity: 0.68; }

.nav__row1-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* REACH OUT pill */
.nav__cta {
  display: inline-flex;
  align-items: center;
  padding: 0.40rem 1.1rem;
  border-radius: var(--r-pill);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.85);
  background: transparent;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.20s ease, border-color 0.20s ease, color 0.20s ease;
}
.nav__cta:hover {
  background: #f5c842;
  border-color: #f5c842;
  color: #0d0d0d;
}

/* ── Row 2: all section links, centered with consistent gap ── */
.nav__row2 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0.3rem 0 0.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.nav__row2::-webkit-scrollbar { display: none; }

.nav__link {
  display: block;
  padding: 0.28rem 0.4rem;
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.46);
  border-radius: var(--r-sm);
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.18s ease, text-shadow 0.18s ease;
}
.nav__link:hover {
  color: rgba(255, 255, 255, 0.96);
  font-weight: 600;
  text-shadow:
    0 0 10px rgba(255, 255, 255, 0.26),
    0 0 24px rgba(255, 255, 255, 0.10);
}
.nav__link.active {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 500;
}

/* ── Hamburger - hidden on desktop ── */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 34px; height: 34px;
  align-items: center; justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--r-pill);
  transition: border-color var(--ease);
  flex-shrink: 0;
}
.nav__hamburger span {
  display: block;
  width: 15px; height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--ease), opacity var(--ease);
}
.nav__hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Narrow screens: hide link row, show hamburger */
@media (max-width: 520px) {
  .nav__row2      { display: none; }
  .nav__cta       { display: none; }
  .nav__hamburger { display: flex; }
}

/* Mobile drawer */
.nav__drawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--bg);
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
  padding: 2rem;
}
.nav__drawer.open { display: flex; }
.nav__drawer a {
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  font-weight: 700;
  color: var(--text-sec);
  padding: 0.5rem 0;
  transition: color var(--ease);
  letter-spacing: -0.02em;
}
.nav__drawer a:hover { color: var(--text); }

/* === HERO ================================================== */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: 5rem;
  padding-bottom: clamp(4rem, 9vw, 7rem);
  position: relative;   /* new: contains the absolutely-positioned video + overlay */
  overflow: hidden;     /* new: clips the video to the section boundary */
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  /* Slight desaturation keeps the dark aesthetic intact */
  filter: brightness(0.55) saturate(0.8);
}
.hero__overlay {
  position: absolute;
  inset: 0;
  /* Bottom-heavy gradient: darkest at the bottom where the text sits */
  background: linear-gradient(
    to bottom,
    rgba(8, 8, 8, 0.25) 0%,
    rgba(8, 8, 8, 0.55) 60%,
    rgba(8, 8, 8, 0.80) 100%
  );
  z-index: 0;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-sec);
  margin-bottom: 1.5rem;
  /* center the badge row within the text block */
  align-self: center;
}
.hero__badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #7ee8f8;
  animation: blink 2.2s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}
.hero__headline {
  font-size: clamp(2.4rem, 5.2vw, 5.25rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0.06em;
  margin-bottom: 1.4rem;
  white-space: nowrap; /* prevents mid-word wrapping on desktop */
}
.hero__headline .line2 {
  color: var(--text-sec);
  display: block;
}
/* Allow wrapping only when the viewport is too narrow to fit both lines */
@media (max-width: 600px) {
  .hero__headline {
    white-space: normal;
    font-size: clamp(1.75rem, 7.5vw, 2.4rem);
  }
}
/* Center the entire hero text block */
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
/* Center the button group inside the hero */
.hero .btn-group {
  justify-content: center;
}

.hero__sub {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--text-sec);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 1.75rem;
}
.hero__sub-glow {
  display: block;
  color: var(--text);
  text-shadow:
    0 0 18px rgba(255, 255, 255, 0.18),
    0 0 40px rgba(255, 255, 255, 0.08);
}
.hero__scroll {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 4rem;
}
.hero__scroll-line {
  width: 40px; height: 1px;
  background: var(--text-dim);
}


/* === WORK - PROJECT ROWS ================================== */
.projects-list { border-top: 1px solid var(--border); }
.project-row {
  display: grid;
  grid-template-columns: 3.5rem 1fr 160px;
  align-items: center;
  gap: 2rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--border);
  transition: background var(--ease);
  border-radius: var(--r-sm);
  margin: 0 -0.75rem;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}
.project-row:hover { background: var(--surface); }
.project-row__num {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  font-family: var(--mono);
}
.project-row__info { min-width: 0; }
.project-row__title {
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 0.3rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.project-row__views {
  font-size: 0.68rem;
  color: var(--text-dim);
  font-family: var(--mono);
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}
.project-row__desc { font-size: 0.85rem; color: var(--text-sec); margin-bottom: 0.65rem; }
.project-row__tags { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.tag {
  display: inline-block;
  padding: 0.18rem 0.6rem;
  border-radius: var(--r-pill);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  background: var(--elevated);
  border: 1px solid var(--border-mid);
  color: var(--text-sec);
}
.tag--gold { background: var(--gold-dim); border-color: var(--gold); color: var(--gold); }
.project-row__preview {
  width: 160px;
  aspect-ratio: 16/9;
  border-radius: var(--r-sm);
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  border: 1.5px solid transparent;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.project-row__preview:hover {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold), 0 0 18px 2px rgba(201, 160, 74, 0.35);
}
.project-row__preview video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.project-row__preview-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.58);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--ease);
  pointer-events: none; /* clicks pass through to the parent <a> */
}
.project-row__preview:hover .project-row__preview-overlay { opacity: 1; }
.project-row__preview-overlay span {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
}

/* === MOTION / VFX ========================================= */
.motion-feature {
  margin-bottom: 1.5rem;
}


.video-wrap {
  width: 100%;
  border-radius: var(--r);
  overflow: hidden;
  background: #000;
  border: 1px solid var(--border);
  position: relative;
}
.video-wrap video { width: 100%; display: block; }
/* Placeholder shown until video is added */
.video-placeholder {
  aspect-ratio: 16/9;
  display: flex;
  flex-direction: column;
  align-items: center; justify-content: center;
  gap: 1rem;
  background: var(--elevated);
  color: var(--text-dim);
}
.video-placeholder svg { width: 36px; height: 36px; opacity: 0.3; }
.video-placeholder-text {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
}
.video-caption {
  font-size: 0.82rem;
  color: var(--text-sec);
  margin-top: 0.85rem;
  padding-left: 0.1rem;
}
.clips-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.clip .video-placeholder { border-radius: var(--r-sm); }

/* === THUMBNAILS =========================================== */
.thumb-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.thumb-item {
  aspect-ratio: 16/9;
  background: var(--elevated);
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.6rem; letter-spacing: 0.14em;
  color: var(--text-dim); text-transform: uppercase; font-weight: 600;
  transition: border-color var(--ease), transform var(--ease);
  cursor: default;
  position: relative;
}
.thumb-item:hover { border-color: var(--border-mid); transform: scale(1.015); }
.thumb-item img { width: 100%; height: 100%; object-fit: cover; }

/* Before/after slider (all 9 thumbnails) */
.thumb-slider {
  cursor: col-resize;
  user-select: none;
  -webkit-user-select: none;
}
/* After image (final) - always full-width underneath */
.thumb-slider__after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
/* Before image (rough) - clipped to the left of the handle */
.thumb-slider__before {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--pct, 50%)) 0 0);
  pointer-events: none;
}
.thumb-slider__before img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Vertical divider + grip */
.thumb-slider__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pct, 50%);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  z-index: 3;
}
.thumb-slider__line {
  width: 2px;
  flex: 1;
  background: #fff;
}
.thumb-slider__grip {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
}
/* Corner labels */
.thumb-slider__label {
  position: absolute;
  top: 0.5rem;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
  pointer-events: none;
  z-index: 2;
}
.thumb-slider__label--left  { left:  0.6rem; }
.thumb-slider__label--right { right: 0.6rem; }

/* === ABOUT ================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: clamp(3rem, 7vw, 7rem);
  align-items: start;
}
.about-photo {
  aspect-ratio: 4/5;
  background: var(--elevated);
  border-radius: var(--r);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim);
  font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600;
  position: sticky;
  top: 6rem;
}
/* REPLACE: Remove the pseudo-element approach and add an actual <img> tag inside .about-photo */
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-content { padding-top: 0.25rem; }
.about-bio {
  color: var(--text-sec);
  line-height: 1.8;
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
}
.about-bio p + p { margin-top: 1.1rem; }
.about-bio strong { color: var(--text); font-weight: 600; }
.tools-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tool-chip {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: var(--r-sm);
  background: var(--elevated);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-sec);
  letter-spacing: 0.02em;
}

/* === CONTACT ============================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: clamp(3rem, 7vw, 7rem);
  align-items: start;
}
.contact-info { position: sticky; top: 6rem; }
.contact-email {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 1.75rem;
}
.contact-email a { color: var(--gold); transition: color var(--ease); }
.contact-email a:hover { color: var(--gold-hover); }
.contact-links { display: flex; flex-direction: column; gap: 0.65rem; }

/* Form */
.form { display: flex; flex-direction: column; gap: 1.1rem; }
.form-field { display: flex; flex-direction: column; gap: 0.4rem; }
.form-field label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-sec);
}
.form-field input,
.form-field textarea,
.form-field select {
  padding: 0.85rem 1.1rem;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  color: var(--text);
  font-size: 0.95rem;
  font-family: var(--font);
  width: 100%;
  transition: border-color var(--ease), box-shadow var(--ease);
  appearance: none;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--text-dim); }
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-dim);
}
.form-field input.error,
.form-field textarea.error { border-color: #c05050; }
.form-field textarea { resize: vertical; min-height: 130px; }
.field-error { font-size: 0.78rem; color: #c05050; display: none; }
.form-field.has-error .field-error { display: block; }
.form-success {
  display: none;
  padding: 1.25rem;
  border-radius: var(--r);
  background: var(--gold-dim);
  border: 1px solid var(--gold);
  color: var(--gold);
  font-weight: 600;
  font-size: 0.92rem;
  margin-top: 0.5rem;
}

/* === FOOTER =============================================== */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer__logo { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.02em; }
.footer__logo .dot { color: var(--gold); }
.footer__copy { font-size: 0.8rem; color: var(--text-dim); }
.footer__social { display: flex; gap: 0.65rem; }
.social-link {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-sec);
  display: flex; align-items: center; justify-content: center;
  transition: color var(--ease), border-color var(--ease), transform var(--ease);
}
.social-link:hover { color: var(--text); border-color: var(--border-mid); transform: translateY(-2px); }
.social-link svg { width: 15px; height: 15px; }

/* === TAG PULSE ANIMATION =================================== */
@keyframes tag-pulse-kf {
  0%   { box-shadow: 0 0 0 2px rgba(201,160,74,0.7), 0 0 10px 3px rgba(201,160,74,0.35); }
  60%  { box-shadow: 0 0 0 2px rgba(201,160,74,0.7), 0 0 10px 3px rgba(201,160,74,0.35); }
  100% { box-shadow: none; }
}
.tag.tag-pulse { animation: tag-pulse-kf 200ms ease-out; }

/* === REVEAL ANIMATIONS ===================================== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }

/* === RESPONSIVE =========================================== */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { position: static; max-width: 340px; aspect-ratio: 1/1; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-info { position: static; }
  .clips-grid { grid-template-columns: 1fr 1fr; }
  .thumb-grid { grid-template-columns: 1fr 1fr; }
  .project-row { grid-template-columns: 2.5rem 1fr; gap: 1.25rem; }
  .project-row__preview { display: none; }
}
@media (max-width: 640px) {

  .clips-grid { grid-template-columns: 1fr; }
  .thumb-grid { grid-template-columns: 1fr; }
  .ab-tracks { grid-template-columns: 1fr 1fr; }
  .project-row { grid-template-columns: 2rem 1fr; gap: 1rem; }
  .project-row__title { white-space: normal; }
}

/* === ANIMATION PANEL MODALS ================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.modal-card {
  background: var(--surface);
  border: 1px solid var(--border-mid);
  border-radius: var(--r);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.75);
  max-width: 780px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 3rem;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.modal-overlay.open .modal-card {
  transform: translateY(0);
}
/* Scrollbar styling inside modal */
.modal-card::-webkit-scrollbar { width: 4px; }
.modal-card::-webkit-scrollbar-track { background: transparent; }
.modal-card::-webkit-scrollbar-thumb { background: var(--border-mid); border-radius: 4px; }

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--elevated);
  border: 1px solid var(--border-mid);
  color: var(--text-sec);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
  flex-shrink: 0;
}
.modal-close:hover {
  background: var(--border-mid);
  color: var(--text);
  border-color: var(--border-mid);
}
.modal-close:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.modal-eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.modal-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 1.75rem;
}
.modal-body {
  color: var(--text-sec);
  font-size: 0.95rem;
  line-height: 1.85;
  margin-bottom: 2.5rem;
}
.modal-body p + p { margin-top: 1.1rem; }

.modal-section-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.85rem;
}
.modal-featured {
  width: 100%;
  aspect-ratio: 16 / 7;
  background: var(--elevated);
  border: 1px solid var(--border);
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
}
.modal-featured span {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 600;
}
.modal-progression {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}
.modal-progression__tile {
  aspect-ratio: 16 / 9;
  background: var(--elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 600;
}
.modal-meta {
  font-size: 0.78rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
}

/* Featured video player inside modal */
.modal-video-player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
  cursor: pointer;
  margin-bottom: 1rem;
}
.modal-video-player--silent { cursor: default; }   /* 3D featured clips are silent - no click behaviour */

/* featured-reel header: slide title left, YouTube link right */
.modal-feat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.9rem;
}
.modal-feat-head .modal-section-label { margin-bottom: 0; }
.yt-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 100px;
  border: 1px solid rgba(217, 176, 108, 0.45);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--gold, #d9b06c);
  transition: all 0.3s ease;
  white-space: nowrap;
}
.yt-btn svg { width: 13px; height: 13px; }
.yt-btn:hover {
  border-color: rgba(217, 176, 108, 0.9);
  color: #fff;
  box-shadow: 0 0 22px rgba(217, 176, 108, 0.25);
  transform: translateY(-1px);
}

/* featured-reel arrows: big clean chevrons over the player edges */
.feat-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  background: none;
  border: none;
  cursor: pointer;
  padding: 16px 10px;
  color: rgba(255, 255, 255, 0.85);
  opacity: 0.75;
  transition: opacity 0.3s, transform 0.3s;
}
.feat-arrow svg { width: 34px; height: 34px; filter: drop-shadow(0 1px 8px rgba(0,0,0,.7)); }
.feat-arrow:hover { opacity: 1; }
.feat-arrow--prev { left: 6px; }
.feat-arrow--next { right: 6px; }
.feat-arrow--prev:hover { transform: translateY(-50%) translateX(-3px); }
.feat-arrow--next:hover { transform: translateY(-50%) translateX(3px); }
.modal-video-player video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.modal-video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.32);
  transition: opacity 0.22s ease;
}
.modal-video-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}
.modal-video-play-btn {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.10);
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: background var(--ease), border-color var(--ease), transform var(--ease);
}
.modal-video-play-btn svg { width: 22px; height: 22px; margin-left: 3px; }
.modal-video-player:hover .modal-video-play-btn {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.65);
  transform: scale(1.08);
}

/* Views counter */
.modal-views {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  margin-bottom: 2rem;
}
.modal-views__label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.modal-views__count {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--text);
  text-shadow: 0 0 14px rgba(201, 160, 74, 0.22);
}

/* === 3D MODAL — BEHIND-THE-SCENES AREA (per-slide layouts) ===== */
.bts-label { margin-top: 2.25rem; }
.bts-area { margin-top: 1rem; }
.bts-area video, .bts-area img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--r);
  border: 1px solid var(--border);
  background: #000;
}
.bts-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.bts-wide { width: 100%; }
.bts-split { display: grid; grid-template-columns: 40% 1fr; gap: 1.5rem; align-items: start; }
.bts-split--vertical { grid-template-columns: 38% 1fr; }
.bts-text { color: var(--text-sec); font-size: 0.95rem; line-height: 1.85; }
.bts-text p { margin: 0; }

@media (max-width: 600px) {
  .modal-card { padding: 2rem 1.25rem; }
  .modal-progression { grid-template-columns: repeat(2, 1fr); }
  .bts-duo, .bts-split, .bts-split--vertical { grid-template-columns: 1fr; }
}

/* === STANDALONE, LOCKED-OFF PAGES (split from index.html) ================ */
/* Current-page marker in the shared nav. Separate class from .active so the
   scroll-spy in main.js (which toggles .active on #anchor matches) can't clear it. */
.nav__link--current {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.24), 0 0 24px rgba(255, 255, 255, 0.10);
}
/* First (and only) section on a standalone page: clear the fixed 2-row nav bar */
.section--page-first {
  padding-top: clamp(7rem, 12vw, 10rem);
  border-top: none;
}
/* Back affordance in the standalone footer */
.footer__inner .btn { flex-shrink: 0; }

/* Animation page - 3D panel placeholder (no fake footage) */
.anim-panel__inner--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--elevated);
}
.anim-panel__soon {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 600;
  padding: 0 1rem;
  z-index: 2;
}

/* ============================================================
   FINALIZATION PASS (2026-07-06) - shared page components
   "The approach" write-up · labelled asset placeholders ·
   results strip · sound waveform
   ============================================================ */

/* === "THE APPROACH" WRITE-UP BLOCK ========================= */
.approach {
  max-width: 640px;
  margin: 0 auto clamp(3.5rem, 7vw, 5.5rem);
  text-align: center;
}
.approach__rule {
  width: 46px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  margin: 0 auto 1.9rem;
  box-shadow: 0 0 14px rgba(201, 160, 74, 0.45);
}
.approach__body {
  color: var(--text-sec);
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 1.85;
}
.approach__body p + p { margin-top: 1.1rem; }
.approach__body strong,
.approach__body b { color: var(--text); font-weight: 600; }
.approach__body em { color: var(--text); font-style: italic; }
.approach__clients {
  margin-top: 2rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.approach__clients span { color: var(--gold); }

/* === LABELLED ASSET PLACEHOLDER (shared "shopping list" tile) === */
.asset-slot {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  text-align: center;
  padding: 1.5rem 1.15rem;
  min-height: 148px;
  background:
    linear-gradient(180deg, rgba(201, 160, 74, 0.05), rgba(201, 160, 74, 0.012)),
    var(--elevated);
  border: 1.5px dashed rgba(201, 160, 74, 0.38);
  border-radius: var(--r);
  color: var(--text-sec);
  transition: border-color var(--ease), background var(--ease), transform var(--ease);
}
.asset-slot__icon { width: 32px; height: 32px; color: var(--gold); opacity: 0.72; }
.asset-slot__icon svg { width: 100%; height: 100%; display: block; }
.asset-slot__label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text);
  line-height: 1.35;
}
.asset-slot__spec {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  color: var(--gold);
  line-height: 1.5;
}
.asset-slot__hint {
  font-size: 0.72rem;
  color: var(--text-dim);
  max-width: 40ch;
  line-height: 1.6;
}
/* Aspect variants so a slot echoes the media it waits for */
.asset-slot--video { aspect-ratio: 16 / 9; }
.asset-slot--image { aspect-ratio: 4 / 5; }
.asset-slot--audio { min-height: 116px; }
/* Full-width note slot (e.g. "more pairs can drop in") */
.asset-slot--note {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.5rem 0.9rem;
  min-height: 0;
  padding: 1rem 1.4rem;
  text-align: left;
  justify-content: flex-start;
  margin-top: 1rem;
}
.asset-slot--note .asset-slot__icon { width: 22px; height: 22px; }
.asset-slot img { width: 100%; height: 100%; object-fit: cover; border-radius: calc(var(--r) - 2px); }


/* === CINEMATOGRAPHY SHOWREEL SLOT ========================== */
.reel-slot { margin-bottom: clamp(2.5rem, 5vw, 4rem); }


/* === ANIMATION - 3D panel slot + compact progression slots = */
.anim-panel__inner > .asset-slot {
  position: absolute;
  inset: 0;
  aspect-ratio: auto;
  min-height: 0;
  border-radius: var(--r);
  z-index: 0;
}
/* Progression grid: slots shrink to the 4-up modal tiles */
.modal-progression .asset-slot {
  min-height: 0;
  aspect-ratio: 16 / 9;
  padding: 0.6rem 0.4rem;
  gap: 0.3rem;
}
.modal-progression .asset-slot__icon { width: 20px; height: 20px; }
.modal-progression .asset-slot__label { font-size: 0.62rem; letter-spacing: 0.02em; }
.modal-progression .asset-slot__spec { font-size: 0.54rem; }


/* === VFX AUTO-SCROLL PANEL CAROUSEL ======================== */
.vfx-marquee {
  overflow: hidden;
  width: 100%;
  padding: 0.5rem 0 1.5rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.vfx-track { display: flex; width: max-content; animation: vfxScroll 45s linear infinite; will-change: transform; }
.vfx-set { display: flex; }
@keyframes vfxScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.vfx-card {
  flex: 0 0 auto;
  width: clamp(260px, 30vw, 380px);
  margin-right: 24px;            /* uniform unit so the -50% loop is seamless */
  background: #141414;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color var(--ease), background var(--ease);
}
.vfx-card__label {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6em;
  padding: 0.85rem 1rem;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-sec);
}
.vfx-dot { color: var(--gold); }
.vfx-card__media { aspect-ratio: 1; background: #000; overflow: hidden; }
.vfx-card__media video { width: 100%; height: 100%; object-fit: cover; display: block; transition: filter var(--ease); }
.vfx-card:hover { border-color: var(--border-mid); background: #181818; }
.vfx-card:hover .vfx-card__media video { filter: brightness(1.12); }
@media (prefers-reduced-motion: reduce) { .vfx-track { animation: none; } }
