/* ========================================
   PORTFOLIO — BLACK / WHITE / NEON GREEN
   Edit colors and fonts here once, applies everywhere
   ======================================== */

:root {
  --bg: #0a0a0a;
  --text: #f5f5f0;
  --muted: #999;
  --dim: #666;
  --faint: #444;
  --line: #1a1a1a;
  --raised: #0d0d0d;
  --acid: #05FF00;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  cursor: none; /* custom cursor below */
  overflow-x: hidden;
}

/* Hide native cursor on every interactive element too — JS adds the green dot */
@media (hover: hover) and (pointer: fine) {
  a, button, .chip, .card, input, textarea, video, label {
    cursor: none;
  }
}

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

/* CUSTOM CURSOR — visible against any background */
.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 8px; height: 8px;
  background: var(--acid);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  will-change: transform;
  box-shadow: 0 0 0 1px rgba(10,10,10,0.5);
}
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 32px; height: 32px;
  border: 1px solid var(--acid);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  will-change: transform, width, height;
  transition: width 0.25s ease, height 0.25s ease, border-color 0.25s ease, opacity 0.25s ease;
  opacity: 0.6;
}
.cursor-ring.grow {
  width: 64px;
  height: 64px;
  opacity: 1;
}
.cursor-ring.hide { opacity: 0; }
@media (max-width: 768px),
       (hover: none) {
  .cursor-dot, .cursor-ring { display: none; }
  body { cursor: auto; }
}

/* LOADER */
.loader {
  position: fixed; inset: 0;
  background: var(--bg); z-index: 1000;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 32px;
}
.loader.done { animation: fadeOut 0.8s ease 0.4s forwards; }
@keyframes fadeOut { to { opacity: 0; visibility: hidden; } }
.ld-top { display: flex; justify-content: space-between; font-size: 10px; letter-spacing: 2px; }
.ld-mid { display: flex; align-items: baseline; gap: 16px; }
.ld-count { font-size: 96px; font-weight: 500; letter-spacing: -3px; color: var(--acid); line-height: 1; font-variant-numeric: tabular-nums; }
.ld-label { font-size: 11px; letter-spacing: 3px; color: var(--dim); }
.ld-bar { height: 1px; background: var(--line); margin-top: 16px; position: relative; overflow: hidden; }
.ld-fill { position: absolute; inset: 0; background: var(--acid); transform: scaleX(0); transform-origin: left; animation: fillBar 3s ease-out forwards; }
@keyframes fillBar { to { transform: scaleX(1); } }

/* NAV */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 24px 32px;
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(10,10,10,0.6); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.logo {
  display: flex;
  align-items: center;
  height: 36px;
}
.logo img, .logo svg { display: block; height: 100%; width: auto; }
.logo-text { font-size: 13px; letter-spacing: 3px; font-weight: 500; }
.nav-links { display: flex; gap: 28px; font-size: 11px; letter-spacing: 2.5px; color: var(--muted); }
.nav-links a { transition: color 0.2s ease; }
.nav-links a:hover, .nav-links a.active { color: var(--acid); }
.nav-cta {
  font-size: 11px; letter-spacing: 2px;
  padding: 8px 16px;
  border: 1px solid var(--text);
  border-radius: 999px;
  transition: all 0.2s ease;
}
.nav-cta:hover { background: var(--acid); color: var(--bg); border-color: var(--acid); }

@media (max-width: 768px) {
  .nav { padding: 16px 20px; }
  .nav-links { gap: 16px; font-size: 10px; }
  .nav-cta { display: none; }
}

/* MOBILE BOTTOM CTA */
.mobile-cta {
  display: none;
}
@media (max-width: 768px) {
  .mobile-cta {
    display: block;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 900;
    padding: 12px 20px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
    background: var(--bg);
    border-top: 1px solid var(--line);
  }
  .mobile-cta a {
    display: block;
    width: 100%;
    text-align: center;
    padding: 14px;
    font-size: 11px; letter-spacing: 2px;
    border: 1px solid var(--text);
    border-radius: 999px;
    transition: all 0.2s ease;
  }
  .mobile-cta a:hover,
  .mobile-cta a:active { background: var(--acid); color: var(--bg); border-color: var(--acid); }
  /* Push page content above the fixed bar */
  body { padding-bottom: 80px; }
}

/* SHARED HEADERS */
.page-header {
  padding: 160px 32px 48px;
  display: flex; justify-content: space-between; align-items: baseline;
  border-bottom: 1px solid var(--line);
}
.page-header h1 { font-size: 56px; font-weight: 500; letter-spacing: -2px; line-height: 1; }
.page-header .sub { font-size: 11px; letter-spacing: 2.5px; color: var(--dim); }
@media (max-width: 768px) {
  .page-header { padding: 120px 20px 32px; flex-direction: column; gap: 16px; }
  .page-header h1 { font-size: 40px; }
}

/* HERO (HOME) */
.hero { position: relative; height: 100vh; min-height: 600px; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media video, .hero-media img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero-media.placeholder {
  background: linear-gradient(140deg, #1a2026 0%, #2a3540 30%, #1a2530 60%, #0f1518 100%);
  animation: heroShift 12s ease-in-out infinite alternate;
  display: flex; align-items: center; justify-content: center;
}
@keyframes heroShift { to { background: linear-gradient(140deg, #2a2520 0%, #3a3025 30%, #2a2018 60%, #181410 100%); transform: scale(1.05); } }
.hero-media.placeholder::after {
  content: "[ HERO VIDEO PLACEHOLDER ]";
  font-size: 11px; letter-spacing: 3px; color: rgba(245,245,240,0.4);
}

/* YouTube iframe hero: oversize the iframe so YouTube's UI bars get cropped off */
.hero-media.yt-hero { overflow: hidden; }
.hero-media.yt-hero iframe {
  position: absolute;
  top: 50%; left: 50%;
  width: 177.78vh;          /* 16/9 of viewport height to ensure full coverage */
  min-width: 100%;
  height: 56.25vw;          /* 9/16 of viewport width */
  min-height: 100%;
  transform: translate(-50%, -50%);
  border: 0;
  pointer-events: none;     /* prevents clicks on YouTube logo */
}
/* Click-blocking overlay so YouTube's controls/branding can't be interacted with */
.hero-media.yt-hero::after {
  content: "";
  position: absolute; inset: 0;
  z-index: 2;
}
.hero-grain {
  position: absolute; inset: 0; opacity: 0.06;
  background-image: radial-gradient(#fff 1px, transparent 1px);
  background-size: 3px 3px;
}
.hero-tr { position: absolute; top: 100px; right: 32px; font-size: 10px; letter-spacing: 2px; color: var(--acid); }
.hero-content {
  position: absolute; bottom: 48px; left: 32px; right: 32px;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 32px;
}
.hero-title { font-size: 80px; font-weight: 500; letter-spacing: -3px; line-height: 0.9; text-shadow: 0 2px 24px rgba(0,0,0,0.6); }
.hero-meta { font-size: 10px; letter-spacing: 2.5px; text-shadow: 0 1px 10px rgba(0,0,0,0.7); }
.hero-meta div { margin-bottom: 6px; }
.hero-meta .label { color: rgba(245,245,240,0.55); margin-right: 4px; }
.scroll-hint { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); font-size: 9px; letter-spacing: 3px; color: var(--dim); text-align: center; }
.scroll-hint::before { content: ""; display: block; width: 1px; height: 24px; background: var(--acid); margin: 0 auto 8px; animation: scrollPulse 2s ease-in-out infinite; }
@keyframes scrollPulse { 0%, 100% { transform: scaleY(1); transform-origin: top; } 50% { transform: scaleY(0.3); transform-origin: top; } }
@media (max-width: 768px) {
  .hero-title { font-size: 44px; letter-spacing: -1.5px; }
  .hero-content { flex-direction: column; align-items: flex-start; bottom: 60px; left: 20px; right: 20px; gap: 16px; }
  .hero-tr { top: 80px; right: 20px; }
}
/* Mobile: tap-to-play overlay for self-hosted video */
.hero-tap-play {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: rgba(245,245,240,0.8);
  background: rgba(0,0,0,0.3);
  z-index: 5;
  cursor: pointer;
}
.hero-tap-play.visible { display: flex; }
/* Mobile: WATCH button for YouTube slides */
.hero-watch-btn {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  padding: 12px 28px;
  border: 1px solid rgba(245,245,240,0.6);
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 2.5px;
  color: var(--text);
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  white-space: nowrap;
}

/* COUNTER STRIP */
.strip { padding: 32px; background: var(--raised); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.strip-label { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 24px; font-size: 10px; letter-spacing: 2.5px; color: var(--dim); }
.strip-label .live { color: var(--acid); display: flex; align-items: center; gap: 6px; }
.strip-label .live::before { content: ""; width: 6px; height: 6px; background: var(--acid); border-radius: 50%; animation: pulse 1.5s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.stat { border-left: 1px solid var(--line); padding-left: 20px; }
.stat:first-child { border-left: none; padding-left: 0; }
.stat-num { font-size: 36px; font-weight: 500; letter-spacing: -1px; line-height: 1; font-variant-numeric: tabular-nums; }
.stat-label { font-size: 10px; letter-spacing: 2.5px; color: var(--dim); margin-top: 12px; }
.stat-sub { font-size: 9px; letter-spacing: 1.5px; color: var(--faint); margin-top: 4px; }
@media (max-width: 768px) {
  .stats { grid-template-columns: 1fr; gap: 0; }
  .stat { border-left: none; padding-left: 0; border-top: 1px solid var(--line); padding-top: 24px; margin-top: 24px; }
  .stat:first-child { border-top: none; padding-top: 0; margin-top: 0; }
  .stat-num { font-size: 28px; }
}

/* FILTERS + GRID */
.filters-row {
  padding: 24px 32px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  font-size: 10px; letter-spacing: 2px;
  padding: 8px 16px;
  border: 1px solid #2a2a2a; border-radius: 999px;
  color: var(--muted);
  background: transparent;
  cursor: pointer; transition: all 0.2s ease;
  font-family: inherit;
}
.chip:hover { border-color: var(--text); color: var(--text); }
.chip.active { background: var(--acid); color: var(--bg); border-color: var(--acid); }
.count-display { font-size: 10px; letter-spacing: 2.5px; color: var(--dim); }
.count-display .acid { color: var(--acid); }

.grid { padding: 32px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.card { position: relative; transition: opacity 0.3s ease; }
.card.fade { opacity: 0.15; }
.card a { display: block; }
.thumb { aspect-ratio: 4/5; position: relative; overflow: hidden; background: #1a1a1a; }
.thumb-media { position: absolute; inset: 0; transition: transform 0.6s ease; }
.thumb-media img, .thumb-media video { width: 100%; height: 100%; object-fit: cover; }
.thumb-placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: rgba(245,245,240,0.3); font-size: 10px; letter-spacing: 2px; text-align: center; padding: 16px; }
.card:hover .thumb-media { transform: scale(1.04); }
.badge {
  position: absolute; top: 12px; left: 12px;
  font-size: 9px; letter-spacing: 2px;
  padding: 4px 8px;
  background: rgba(10,10,10,0.7); backdrop-filter: blur(4px);
  color: var(--text);
  opacity: 0; transition: opacity 0.25s ease;
}
.badge.video { color: var(--acid); }
.card:hover .badge { opacity: 1; }
.video-icon {
  position: absolute; top: 12px; right: 12px;
  width: 22px; height: 22px;
  border: 1px solid var(--acid); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.video-icon::after {
  content: "";
  border-left: 6px solid var(--acid);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  margin-left: 2px;
}
.info { padding: 12px 0 0; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.info-left { display: flex; gap: 10px; align-items: baseline; min-width: 0; }
.info-num { font-size: 9px; letter-spacing: 2px; color: var(--acid); }
.info-title { font-size: 13px; font-weight: 500; }
.info-year { font-size: 10px; letter-spacing: 2px; color: var(--dim); }
@media (max-width: 768px) {
  .grid { grid-template-columns: repeat(2, 1fr); padding: 20px; }
  .filters-row { flex-direction: column; align-items: stretch; }
  .filters { width: 100%; justify-content: flex-start; }
  .count-display { width: 100%; text-align: left; }
}
@media (max-width: 480px) {
  .grid { grid-template-columns: 1fr; }
}

/* PROJECT PAGE */
.project-hero { position: relative; height: 90vh; min-height: 500px; overflow: hidden; }
.project-hero .placeholder-media,
.project-hero img, .project-hero video {
  width: 100%; height: 100%; object-fit: cover;
}
.project-hero .placeholder-media {
  background: linear-gradient(135deg, #2c3e50, #1a2530);
  display: flex; align-items: center; justify-content: center;
  color: rgba(245,245,240,0.4); font-size: 11px; letter-spacing: 3px;
}
.project-meta-bar {
  padding: 32px;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}
.project-meta-bar h1 { font-size: 48px; font-weight: 500; letter-spacing: -1.5px; line-height: 1; }
.meta-block .meta-label { font-size: 9px; letter-spacing: 2.5px; color: var(--dim); margin-bottom: 6px; }
.meta-block .meta-value { font-size: 13px; font-weight: 500; }
@media (max-width: 768px) {
  .project-meta-bar { grid-template-columns: 1fr; padding: 24px 20px; gap: 16px; }
  .project-meta-bar h1 { font-size: 32px; }
}

.project-description {
  max-width: 680px;
  padding: 64px 32px;
  font-size: 17px; line-height: 1.7; color: var(--text);
}


.project-gallery {
  padding: 32px; display: flex; flex-direction: column; gap: 16px;
  max-width: 1200px; margin: 0 auto;
}
.gallery-item { width: 100%; }
.gallery-item img, .gallery-item video { width: 100%; height: auto; display: block; }
.gallery-item video { background: #080808; min-height: 200px; }
/* REEL CARDS — small play-to-open containers */
.reel-grid {
  display: grid;
  grid-template-columns: calc(33.333% - 8px) calc(33.333% - 8px) calc(33.333% - 8px);
  gap: 12px;
  padding: 32px;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}
.reel-card {
  position: relative;
  height: 360px;
  background: #0c0c0c;
  border: 1px solid var(--line);
  cursor: pointer;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.reel-card:hover { border-color: rgba(245,245,240,0.3); }
.reel-card-bg {
  position: absolute;
  inset: -20px;
  width: calc(100% + 40px);
  height: calc(100% + 40px);
  object-fit: cover;
  filter: blur(12px) brightness(0.28);
  pointer-events: none;
  transition: filter 0.3s;
}
.reel-card:hover .reel-card-bg { filter: blur(10px) brightness(0.4); }
.reel-card-label,
.reel-card-play,
.reel-card-title { position: relative; z-index: 2; }
.reel-card-label {
  font-size: 9px;
  letter-spacing: 3px;
  color: rgba(245,245,240,0.45);
  position: absolute;
  top: 20px;
  left: 20px;
}
.reel-card-play {
  width: 56px;
  height: 56px;
  border: 1.5px solid rgba(245,245,240,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}
.reel-card-play::after {
  content: '';
  display: block;
  width: 0; height: 0;
  border-style: solid;
  border-width: 8px 0 8px 14px;
  border-color: transparent transparent transparent rgba(245,245,240,0.95);
  margin-left: 4px;
}
.reel-card:hover .reel-card-play {
  background: var(--text);
  border-color: var(--text);
}
.reel-card:hover .reel-card-play::after {
  border-color: transparent transparent transparent var(--bg);
}
.reel-card-title {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(245,245,240,0.8);
}
@media (max-width: 768px) {
  .reel-grid { grid-template-columns: 1fr; padding: 20px; gap: 10px; }
  .reel-card { height: 240px; }
}
.gallery-item .placeholder-media {
  width: 100%; aspect-ratio: 3/2;
  background: linear-gradient(160deg, #1a1a1a, #0a0a0a);
  border: 1px dashed #2a2a2a;
  display: flex; align-items: center; justify-content: center;
  color: var(--dim); font-size: 11px; letter-spacing: 2px;
}
.gallery-caption { font-size: 11px; letter-spacing: 2px; color: var(--dim); margin-top: 8px; }

.project-nav {
  padding: 48px 32px;
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--line);
}
.project-nav a {
  display: flex; flex-direction: column; gap: 4px;
  transition: color 0.2s ease;
}
.project-nav a:hover { color: var(--acid); }
.project-nav .nav-direction { font-size: 9px; letter-spacing: 2.5px; color: var(--dim); }
.project-nav .nav-title { font-size: 18px; font-weight: 500; }
.project-nav .next { text-align: right; }

/* STUDIO PAGE */
.studio-grid {
  padding: 160px 32px 64px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
  max-width: 1200px; margin: 0 auto;
}
.studio-photo { aspect-ratio: 4/5; background: #1a1a1a; position: relative; overflow: hidden; }
.studio-photo img { width: 100%; height: 100%; object-fit: cover; }
.studio-photo .placeholder-media {
  width: 100%; height: 100%;
  background: linear-gradient(160deg, #2a2530, #1a1520);
  display: flex; align-items: center; justify-content: center;
  color: var(--dim); font-size: 11px; letter-spacing: 2px;
}
.studio-text h2 { font-size: 40px; font-weight: 500; letter-spacing: -1.5px; line-height: 1.1; margin-bottom: 32px; }
.studio-text .lead { font-size: 17px; line-height: 1.7; margin-bottom: 24px; }
.studio-text .body { font-size: 15px; line-height: 1.7; color: var(--muted); margin-bottom: 32px; }
.studio-contact { padding-top: 32px; border-top: 1px solid var(--line); }
.studio-contact-row { display: flex; justify-content: space-between; padding: 12px 0; font-size: 13px; border-bottom: 1px solid var(--line); }
.studio-contact-row .label { color: var(--dim); letter-spacing: 1.5px; font-size: 10px; text-transform: uppercase; }
.studio-contact-row a:hover { color: var(--acid); }
@media (max-width: 768px) {
  .studio-grid { grid-template-columns: 1fr; padding: 120px 20px 40px; gap: 32px; }
  .studio-text h2 { font-size: 32px; }
}

/* FEATURED WORK STRIP (HOME) */
.featured {
  padding: 64px 32px;
  border-top: 1px solid var(--line);
}
.featured-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 32px; }
.featured-header h2 { font-size: 32px; font-weight: 500; letter-spacing: -1px; }
.featured-header a { font-size: 11px; letter-spacing: 2.5px; color: var(--dim); }
.featured-header a:hover { color: var(--acid); }

/* FOOTER */
.footer {
  padding: 32px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  font-size: 10px; letter-spacing: 2px; color: var(--faint);
}

/* YOUTUBE / VIMEO EMBEDS — Always 16:9, fully responsive */
.embed-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}
.embed-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
/* Full-viewport embed hero — video fills screen, sections revealed on scroll */
.project-hero.hero-fullscreen {
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  padding-top: 0;
  overflow: hidden;
}
.project-hero.hero-fullscreen .embed-wrap {
  position: absolute;
  inset: -60px;
  aspect-ratio: unset;
  width: calc(100% + 120px);
  height: calc(100% + 120px);
}
.project-hero.hero-fullscreen video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.project-hero.hero-fullscreen .embed-wrap iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 177.78vh;
  height: 100vh;
  min-width: 100%;
  min-height: 56.25vw;
  pointer-events: none;
  border: 0;
}
.project-hero.hero-fullscreen .scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  letter-spacing: 3px;
  color: rgba(245,245,240,0.5);
}

/* Vertical video hero — centres 9:16 embed on dark background */
.project-hero.hero-vertical {
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  padding-top: 0;
  overflow: hidden;
  background: #080808;
  display: flex;
  align-items: center;
  justify-content: center;
}
.project-hero.hero-vertical .embed-wrap {
  position: relative;
  aspect-ratio: 9 / 16;
  height: 88vh;
  height: 88dvh;
  width: auto;
  max-width: 90vw;
  flex-shrink: 0;
}
.project-hero.hero-vertical .embed-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
}
.project-hero.hero-vertical .scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  letter-spacing: 3px;
  color: rgba(245,245,240,0.5);
}
.project-hero.hero-vertical .hero-play-btn {
  bottom: 72px;
  right: calc(50% - min(49.5vh, 45vw) - 12px);
}
@media (max-width: 768px) {
  .project-hero.hero-vertical .embed-wrap {
    height: 78vh;
    height: 78dvh;
    max-width: 96vw;
  }
  .project-hero.hero-vertical .hero-play-btn {
    right: 20px;
    bottom: 56px;
  }
}

/* Vertical modal — 9:16 aspect ratio */
.video-modal.modal-vertical .video-modal-inner {
  aspect-ratio: 9 / 16;
  width: auto;
  height: 88vh;
  max-width: 92vw;
}

/* HERO PLAY BUTTON */
.hero-play-btn {
  position: absolute;
  bottom: 72px;
  right: 32px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  border: 1px solid rgba(245,245,240,0.35);
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 2px;
  color: rgba(245,245,240,0.85);
  cursor: pointer;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  user-select: none;
}
.hero-play-btn::before {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 5px 0 5px 9px;
  border-color: transparent transparent transparent currentColor;
}
.hero-play-btn:hover {
  background: var(--acid);
  border-color: var(--acid);
  color: var(--bg);
}
@media (max-width: 768px) {
  .hero-play-btn { bottom: 56px; right: 20px; }
}

/* VIDEO MODAL */
.video-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.96);
  align-items: center;
  justify-content: center;
}
.video-modal.open { display: flex; }
.video-modal-inner {
  position: relative;
  width: 92vw;
  max-width: 1280px;
  aspect-ratio: 16 / 9;
}
.video-modal-inner iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-modal-close {
  position: absolute;
  top: -44px;
  right: 0;
  font-size: 11px;
  letter-spacing: 2.5px;
  color: rgba(245,245,240,0.5);
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px 0;
  transition: color 0.2s;
}
.video-modal-close:hover { color: var(--acid); }

/* ============================================
   START A PROJECT — SIDE PANEL FORM (light background)
   ============================================ */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(10,10,10,0.6);
  backdrop-filter: blur(4px);
  z-index: 200;
  opacity: 0; visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.modal-backdrop.open { opacity: 1; visibility: visible; }

.modal {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 100%; max-width: 520px;
  background: #f5f5f0;        /* light, readable */
  color: #0a0a0a;             /* dark text for accessibility */
  padding: 64px 48px 48px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.6, 0.0, 0.2, 1);
  box-shadow: -20px 0 60px rgba(0,0,0,0.3);
}
.modal-backdrop.open .modal { transform: translateX(0); }

.modal-close {
  position: absolute;
  top: 20px; right: 20px;
  width: 36px; height: 36px;
  background: transparent;
  border: 1px solid rgba(10,10,10,0.2);
  color: #0a0a0a;
  font-size: 18px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
  font-family: inherit;
}
.modal-close:hover { border-color: #0a0a0a; background: #0a0a0a; color: var(--acid); }

.modal-header { margin-bottom: 36px; }
.modal-eyebrow {
  font-size: 10px; letter-spacing: 2.5px;
  color: #0a0a0a;
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 8px;
}
.modal-eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--acid);
  border-radius: 50%;
}
.modal-title { font-size: 36px; font-weight: 500; letter-spacing: -1.2px; line-height: 1.05; }
.modal-sub { font-size: 14px; color: #555; margin-top: 12px; line-height: 1.6; }

.form-group { margin-bottom: 28px; }
.form-label {
  display: block;
  font-size: 10px; letter-spacing: 2.5px;
  color: #555;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.form-label .required { color: #0a0a0a; }

.form-input,
.form-textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(10,10,10,0.2);
  padding: 10px 0;
  color: #0a0a0a;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s ease;
  outline: none;
}
.form-input:focus,
.form-textarea:focus { border-bottom-color: #0a0a0a; }
.form-input::placeholder,
.form-textarea::placeholder { color: #999; }
.form-textarea { resize: vertical; min-height: 90px; }

.form-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.form-option {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px;
  border: 1px solid rgba(10,10,10,0.15);
  cursor: pointer;
  font-size: 11px; letter-spacing: 1.5px;
  color: #555;
  transition: all 0.2s ease;
  user-select: none;
  background: transparent;
}
.form-option:hover { border-color: #0a0a0a; color: #0a0a0a; }
.form-option input { display: none; }
.form-option.selected {
  border-color: #0a0a0a;
  color: #0a0a0a;
  background: #fff;
}
.form-option .dot {
  width: 8px; height: 8px;
  border: 1px solid currentColor;
  border-radius: 50%;
  flex-shrink: 0;
}
.form-option.selected .dot { background: var(--acid); border-color: var(--acid); }

.form-submit {
  width: 100%;
  background: #0a0a0a;
  color: #f5f5f0;
  border: none;
  padding: 18px;
  font-size: 11px; letter-spacing: 3px; font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
  margin-top: 8px;
  display: flex; align-items: center; justify-content: center; gap: 12px;
}
.form-submit:hover { background: var(--acid); color: #0a0a0a; }
.form-submit:active { transform: scale(0.99); }
.form-submit:disabled { opacity: 0.5; cursor: not-allowed; }
.form-submit::after {
  content: "→";
  font-size: 14px;
  transition: transform 0.2s ease;
}
.form-submit:hover::after { transform: translateX(4px); }

.form-error {
  font-size: 12px; color: #c00;
  margin-top: 8px;
  letter-spacing: 0.5px;
  display: none;
}
.form-error.show { display: block; }

/* THANK YOU STATE */
.modal-thanks {
  text-align: center;
  padding: 64px 0 32px;
  display: none;
}
.modal.show-thanks .modal-form { display: none; }
.modal.show-thanks .modal-thanks { display: block; }
.modal.show-thanks .modal-header { display: none; }

.thanks-mark {
  width: 64px; height: 64px;
  border: 1.5px solid #0a0a0a;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 28px;
  color: var(--acid);
  background: #0a0a0a;
  font-size: 24px;
}
.thanks-title { font-size: 32px; font-weight: 500; letter-spacing: -0.8px; margin-bottom: 16px; color: #0a0a0a; }
.thanks-msg { font-size: 15px; color: #555; line-height: 1.7; max-width: 380px; margin: 0 auto; }
.thanks-msg strong { color: #0a0a0a; font-weight: 500; }

@media (max-width: 600px) {
  .modal { padding: 56px 24px 32px; max-width: 100%; }
  .modal-title { font-size: 28px; }
  .form-options { grid-template-columns: 1fr; }
}

/* ============================================
   HERO CAROUSEL — featured projects rotation
   ============================================ */
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
  overflow: hidden;
}
.hero-slide.active { opacity: 1; }
.hero-slide video,
.hero-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-slide iframe {
  position: absolute;
  top: 50%; left: 50%;
  width: 177.78vh;
  min-width: 100%;
  height: 56.25vw;
  min-height: 100%;
  transform: translate(-50%, -50%);
  border: 0;
  pointer-events: none;
}

/* Progress bar at top of hero */
.hero-progress {
  position: absolute;
  top: 84px; left: 32px; right: 32px;
  display: flex; gap: 8px;
  z-index: 20;
}
.hero-progress-bar {
  flex: 1;
  height: 3px;
  background: rgba(255,255,255,0.12);
  border-radius: 999px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.hero-progress-bar .fill {
  position: absolute; inset: 0;
  background: var(--acid);
  transform: scaleX(0); transform-origin: left;
}
.hero-progress-bar.active .fill {
  animation: progressFill var(--slide-duration, 8s) linear forwards;
}
.hero-progress-bar.complete .fill { transform: scaleX(1); }
@keyframes progressFill { to { transform: scaleX(1); } }

@media (max-width: 768px) {
  .hero-progress { top: 70px; left: 20px; right: 20px; }
}

/* PLACEHOLDER STYLING */
.placeholder-text {
  color: var(--dim);
  font-style: italic;
  border-left: 2px solid var(--acid);
  padding-left: 12px;
  font-size: 13px;
  letter-spacing: 0;
}

/* SECTION FADE-IN */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.8s ease, transform 0.8s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
