/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Password Gate ── */
.site-gate {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(0,229,255,0.10), transparent 60%),
    #0c0c0c;
  transition: opacity 0.6s ease;
}
/* Dissolve the gate out while the site fades in beneath it. */
.site-gate.is-leaving { opacity: 0; pointer-events: none; }
html.site-unlocked .site-gate { display: none; }
html:not(.site-unlocked), html:not(.site-unlocked) body { overflow: hidden; height: 100%; }
@keyframes site-reveal { from { opacity: 0; } to { opacity: 1; } }
html.revealing body > *:not(.site-gate) { animation: site-reveal 0.7s ease both; }
@media (prefers-reduced-motion: reduce) {
  .site-gate { transition: none; }
  html.revealing body > *:not(.site-gate) { animation: none; }
}
.gate-card {
  width: 100%;
  max-width: 380px;
  text-align: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.gate-logo {
  font-family: 'Bricolage Grotesque', 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 2rem;
  letter-spacing: 0.5px;
  color: #00e5ff;
  margin-bottom: 14px;
}
.gate-sub {
  color: #b3b3b3;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 24px;
}
.gate-form { display: flex; gap: 10px; }
.gate-input {
  flex: 1;
  padding: 12px 14px;
  border-radius: 6px;
  border: 1px solid #3a3a3a;
  background: #1c1c1c;
  color: #fff;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.gate-input::placeholder { color: #6d6d6e; }
.gate-input:focus { border-color: #00e5ff; box-shadow: 0 0 0 3px rgba(0,229,255,0.18); }
.gate-btn {
  padding: 12px 22px;
  border: none;
  border-radius: 6px;
  background: #00e5ff;
  color: #06363d;
  font-weight: 800;
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
  transition: filter 0.15s, transform 0.05s;
}
.gate-btn:hover { filter: brightness(1.08); }
.gate-btn:active { transform: translateY(1px); }
.gate-error {
  margin-top: 14px;
  color: #ff5c7a;
  font-size: 0.88rem;
  opacity: 0;
  transition: opacity 0.2s;
}
.gate-error.show { opacity: 1; }
.site-gate.shake .gate-card { animation: gate-shake 0.4s; }
@keyframes gate-shake {
  10%, 90% { transform: translateX(-2px); }
  20%, 80% { transform: translateX(4px); }
  30%, 50%, 70% { transform: translateX(-8px); }
  40%, 60% { transform: translateX(8px); }
}

:root {
  --bg: #141414;
  --surface: #1f1f1f;
  --teal: #00c2d4;
  --teal-dark: #00a3b4;
  --pink: #e040fb;
  --cyan: #00e5ff;
  --magenta: #ff2bd1;
  --white: #ffffff;
  --gray: #b3b3b3;
  --gray-dark: #6d6d6e;
  --card-radius: 4px;
  --nav-height: 68px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: 'Plus Jakarta Sans', 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

/* ── Navbar ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  padding: 0 4%;
  gap: 32px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.85) 0%, transparent 100%);
  transition: background 0.3s;
}
.navbar.scrolled {
  background: rgba(20,20,20,0.97);
}

.nav-logo {
  font-family: 'Bricolage Grotesque', 'Plus Jakarta Sans', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 20px;
  flex: 1;
}
.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }

.nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

/* ── Cursor switcher ── */
.cursor-switcher { position: relative; }
.cursor-toggle {
  width: 36px; height: 36px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.06);
  color: var(--cyan);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.cursor-toggle:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.5);
}
.cursor-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 180px;
  background: #1f1f1f;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 120;
}
.cursor-menu.open { display: flex; }
.cursor-menu-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-dark);
  padding: 4px 10px 6px;
}
.cursor-opt {
  text-align: left;
  padding: 8px 10px;
  border: none;
  background: transparent;
  color: var(--white);
  font-size: 0.9rem;
  font-family: inherit;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.15s;
}
.cursor-opt:hover { background: rgba(255,255,255,0.1); }
.cursor-opt.active {
  background: rgba(0,229,255,0.15);
  color: var(--cyan);
}

.nav-account { position: relative; }
.nav-avatar {
  width: 36px; height: 36px;
  border-radius: 6px;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: filter 0.2s, box-shadow 0.2s;
}
.nav-avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.nav-avatar:hover { filter: brightness(1.08); box-shadow: 0 0 0 2px rgba(255,255,255,0.25); }
.account-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 320px;
  width: 420px;
  max-width: 92vw;
  background: #1f1f1f;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 120;
}
.account-menu.open { display: flex; }
.account-opt {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
  padding: 9px 10px;
  color: var(--white);
  font-size: 0.9rem;
  border-radius: 5px;
  transition: background 0.15s;
}
.account-opt:hover { background: rgba(255,255,255,0.08); }
.account-opt svg { flex-shrink: 0; opacity: 0.85; }
.account-bio {
  padding: 6px 10px 8px;
  margin-bottom: 4px;
  border-bottom: 1px solid #333;
}
.account-bio p {
  margin: 0 0 8px;
  color: #cfcfcf;
  font-size: 0.8rem;
  line-height: 1.45;
}
.account-bio p:last-child { margin-bottom: 0; }

/* ── Hero ── */
.hero {
  position: relative;
  height: 70vh;
  min-height: 520px;
  display: flex;
  align-items: flex-end;
  padding: 0 4% 5%;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #3d1a00 0%, #7a3800 40%, #c26a1a 70%, #e8a050 100%);
}
.hero-img, .hero-firstframe {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center bottom;
  /* richer, warmer grade: more saturation/vibrance + a golden tint */
  filter: saturate(1.32) contrast(1.06) brightness(1.03) sepia(0.12) hue-rotate(-8deg);
}
.hero-firstframe { z-index: 0; }          /* first frame, revealed during the crossfade */
.hero-img { z-index: 1; transition: opacity 0.6s ease; }
.hero-img.is-fading { opacity: 0; }       /* crossfade the video out to the first frame */
.hero-gradient {
  position: absolute;
  inset: 0;
  z-index: 2;               /* sits above the video so the fade is visible */
  /* Only darken at the very top (nav legibility) and bottom (fade the video
     out to the page background so the hero seamlessly meets the section below). */
  background:
    linear-gradient(to bottom, rgba(0,0,0,0.35) 0%, transparent 16%),
    linear-gradient(to top, var(--bg) 0%, var(--bg) 4%, rgba(20,20,20,0.6) 28%, transparent 60%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-title {
  font-family: 'Yeseva One', 'Playfair Display', Georgia, serif;
  font-size: clamp(2.6rem, 8vw, 80px);
  font-weight: 400;
  line-height: 1.08;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.25);
}
.hero-title-accent { color: var(--magenta); }

.hero-bio {
  max-width: 560px;
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  line-height: 1.6;
  color: rgba(255,255,255,0.9);
  margin-bottom: 1.5rem;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.3);
  font-weight: 400;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--white);
  color: #000;
}
.btn-primary:hover { background: rgba(255,255,255,0.8); }

.btn-secondary {
  background: rgba(109,109,110,0.7);
  color: var(--white);
}
.btn-secondary:hover { background: rgba(109,109,110,0.55); }

/* ── Rows ── */
.row-section {
  padding: 0 0 3rem;
  position: relative;
}

.row-label {
  font-family: 'Bricolage Grotesque', 'Plus Jakarta Sans', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #e5e5e5;
  padding: 0 4%;
  margin-bottom: 0.75rem;
}
.row-label-sub {
  font-family: 'Bricolage Grotesque', 'Plus Jakarta Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--teal);
}

.row-track-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.row-track {
  display: flex;
  gap: 8px;
  padding: 8px 4%;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  flex: 1;
}
.row-track::-webkit-scrollbar { display: none; }

/* ── Arrow buttons ── */
.row-arrow {
  position: absolute;
  top: 0; bottom: 0;
  z-index: 10;
  width: 4%;
  background: rgba(20,20,20,0.7);
  border: none;
  color: var(--white);
  font-size: 2.5rem;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.row-track-wrapper:hover .row-arrow { opacity: 1; }
.row-arrow:hover { background: rgba(20,20,20,0.9); }
.row-arrow-left { left: 0; border-radius: 0 4px 4px 0; }
.row-arrow-right { right: 0; border-radius: 4px 0 0 4px; }

/* ── Work Cards ── */
.card {
  flex-shrink: 0;
  width: 254px;
  border-radius: var(--card-radius);
  overflow: hidden;
  cursor: pointer;
  position: relative;
}
.card.is-previewing {
  opacity: 0;
}
/* Fallback hover for touch / no-JS */
.no-hover-preview .card {
  transition: transform 0.25s, box-shadow 0.25s;
}
.no-hover-preview .card:hover {
  transform: scale(1.07);
  z-index: 5;
  box-shadow: 0 8px 32px rgba(0,0,0,0.7);
}

.card-img-wrap {
  position: relative;
  width: 100%;
  height: 142px;
  background: var(--surface);
}
.card-img-wrap img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: var(--card-radius);
}
/* The baked hover PNGs are unused now — hover is a generated popover. */
.card-hover { display: none; }

/* Coming Soon card — keeps its art + hover card, just isn't clickable.
   Small yellow pill tabbed onto the bottom edge (Figma 16:2808). */
.card-coming-soon { cursor: default; }
.coming-soon-badge {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  padding: 4px 8px;
  background: #ffea00;
  color: #000;
  border-radius: 3px 3px 0 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 12px;
  line-height: normal;
  white-space: nowrap;
}

/* ── Hover Preview Popover ── */
.hover-preview {
  position: fixed;
  z-index: 60;
  width: 364px;
  background: #1E1F21;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  opacity: 0;
  transform: scale(0.698);  /* 254 / 364 — starts at resting card size */
  transform-origin: center center;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  will-change: transform, opacity;
}
.hover-preview.open {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.hp-img-wrap {
  position: relative;
  width: 364px;
  height: 205px;
  background: var(--surface);
  cursor: pointer;
}
.hp-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
/* Coming Soon pill on the hover popover image */
.hp-coming-soon {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 10px;
  background: #ffea00;
  color: #000;
  border-radius: 3px 3px 0 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 13px;
  line-height: normal;
  white-space: nowrap;
  display: none;
}
.hover-preview.is-coming-soon .hp-img-wrap { cursor: default; }
.hover-preview.is-coming-soon .hp-coming-soon { display: block; }

.hp-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.hp-info-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.hp-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
}
.hp-expand {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid #fff;
  background: transparent;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}
.hp-expand:hover {
  background: rgba(255,255,255,0.15);
}
.hp-desc {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  color: #fff;
}

/* ── Top 10 ── */
/* Default: the original small ranked frames. On hover the card widens (pushing
   the row) while the detail card (Figma 142:6932) fades + gently scales in. */
.row-track-top10 {
  align-items: flex-start;
  min-height: 272px;
  gap: 6px;
}
/* Resting cell (Figma 20:2735): a roomy 215×154 card with the big outlined
   rank number on the left and the poster overlapping its right side. */
.top10-card {
  position: relative;
  flex-shrink: 0;
  width: 215px;
  height: 154px;
  overflow: visible;
  cursor: default;
  transition: width 0.45s cubic-bezier(.22, 1, .36, 1);
}
.top10-card:hover { width: 436px; }   /* pushes the rest of the row aside */

/* big outlined rank numeral, right-aligned in its own space on the left */
.top10-num {
  position: absolute;
  right: 70px;
  top: 8px;
  width: 127px;
  height: 143px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  font-family: 'Archivo Black', 'Plus Jakarta Sans', sans-serif;
  font-size: 190px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 3px #3a3a3a;
  white-space: nowrap;
  z-index: 1;
  user-select: none;
  transition: opacity 0.3s ease;
}
/* poster on the right edge, overlapping the number */
.top10-img {
  position: absolute;
  right: 0;
  top: 0;
  width: 109px;
  height: 154px;
  object-fit: cover;
  border-radius: 0 2px 2px 0;
  z-index: 2;
  transition: opacity 0.3s ease;
}
.top10-card:hover .top10-num,
.top10-card:hover .top10-img { opacity: 0; }

/* detail card — Figma 142:6932 (fades + scales in, no unfold) */
.t10-detail {
  position: absolute;
  left: 0;
  top: 0;
  width: 436px;
  height: 247px;
  display: flex;
  align-items: stretch;
  background: #1e1f21;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.55);
  opacity: 0;
  transform: scale(0.96);
  transform-origin: left top;
  pointer-events: none;
  z-index: 3;
  transition: opacity 0.28s ease, transform 0.36s cubic-bezier(.22, 1, .36, 1);
}
.top10-card:hover .t10-detail {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}
.t10-art { flex: 0 0 175px; align-self: stretch; }
.t10-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.t10-text {
  flex: 1 1 auto;
  min-width: 0;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: auto;
}
.t10-titlegroup {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.t10-badge {
  align-self: flex-start;
  border: 1px solid #787878;
  padding: 2px 4px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 14px;
  line-height: normal;
  color: #fff;
  white-space: nowrap;
}
.t10-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 16px;
  line-height: 1.2;
  color: #fff;
}
.t10-desc {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 18px;
  color: #fff;
}
.t10-desc p { margin: 0 0 8px; }
.t10-desc p:last-child { margin-bottom: 0; }
.t10-desc a { color: #fff; text-decoration: underline; }
.t10-desc a:hover { color: var(--cyan); }
.t10-desc .t10-pending { text-decoration: underline; }

/* ── Footer ── */
.site-footer {
  padding: 2rem 4%;
  color: var(--gray-dark);
  font-size: 0.8rem;
  border-top: 1px solid #222;
}
.site-footer a { color: var(--gray); }
.site-footer a:hover { color: var(--white); text-decoration: underline; }

/* ── Project Overlay ── */
.overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.8);
  overflow-y: auto;
  padding: 80px 20px 60px;
}
.overlay.open {
  display: block;
  animation: fadeIn 0.2s ease;
}

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

.overlay-box {
  background: #181818;
  border-radius: 8px;
  width: 100%;
  max-width: 850px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.overlay-close {
  position: absolute;
  top: 16px; right: 16px;
  z-index: 10;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #000;
  border: none;
  color: var(--white);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, opacity 0.45s ease;
}
.overlay-close:hover { background: #1a1a1a; }
/* While playing, the close button stays present but quietly dims when
   the cursor is off the video, returning to full on hover */
.overlay-box:has(.overlay-hero.is-playing) .overlay-close { opacity: 0.7; }
.overlay-box:has(.overlay-hero.is-playing:hover) .overlay-close,
.overlay-close:hover { opacity: 1; }

.overlay-hero {
  position: relative;
  width: 100%;
  height: 480px;
  overflow: hidden;
  background: #000;
  container-type: inline-size;
}
.ov-poster {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.overlay-hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(24,24,24,0) 48.5%, #181818 100%);
}

/* Layered hero artwork (Figma 43:3452) */
.ov-corner {
  position: absolute;
  top: 0;
  left: 0;
  width: 13.65%;   /* 116/850 */
  max-width: 116px;
  z-index: 2;
  display: block;
}
.ov-lockup {
  position: absolute;
  z-index: 2;
  display: block;
  object-fit: contain;
  /* left / top / width / height set per-project in JS (Figma TitleLockup box) */
}
.ov-lockup-text {
  position: absolute;
  z-index: 2;
  display: none;
  transform: translateX(-50%);
  font-family: 'The Nautigal', cursive;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  text-shadow: 0 0 1cqw rgba(0,0,0,0.25);
  pointer-events: none;
  /* left / top / font-size set per-project in JS (Figma TitleLockup box) */
}
/* Hero artwork fades out while the video plays */
.ov-corner, .ov-lockup, .ov-lockup-text {
  transition: opacity 1.4s cubic-bezier(.4,0,.2,1);
}
.overlay-hero.is-playing .ov-corner,
.overlay-hero.is-playing .ov-lockup,
.overlay-hero.is-playing .ov-lockup-text { opacity: 0; }

/* Bottom-left Play + Like controls (Figma 43:3459) */
.ov-hero-controls {
  position: absolute;
  left: 48px;
  bottom: 64px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ov-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 119px;
  height: 43px;
  padding: 8px;
  border: 2px solid rgba(0,0,0,0.4);
  border-radius: 4px;
  background: #fff;
  color: #000;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.5px;
  line-height: 24px;
  cursor: pointer;
  transition: background 0.2s;
}
.ov-play:hover { background: rgba(255,255,255,0.82); }
.ov-play svg { width: 16px; height: 18px; }

/* Circular hero buttons (like / mute) */
.ov-circle-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(42,42,42,0.45);
  border: 2px solid rgba(255,255,255,0.5);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.ov-circle-btn:hover { background: rgba(42,42,42,0.75); border-color: #fff; }
.ov-mute {
  position: absolute;
  right: 48px;
  bottom: 64px;
  z-index: 2;
  opacity: 0;            /* only appears while a video is playing */
  pointer-events: none;
}
.ov-fs {
  position: absolute;
  right: 96px;
  bottom: 64px;
  z-index: 2;
  opacity: 0;            /* only appears while a video is playing */
  pointer-events: none;
}
.ov-fs svg { width: 18px; height: 18px; }
.overlay-hero:fullscreen { width: 100vw; height: 100vh; }
.overlay-hero:-webkit-full-screen { width: 100vw; height: 100vh; }
/* keep the video filling the screen in full screen */
.overlay-hero:fullscreen .ov-video { width: 100%; height: 100%; }
.overlay-hero:-webkit-full-screen .ov-video { width: 100%; height: 100%; }

/* Exaggerated thumbs-up pop on click */
@keyframes likePop {
  0%   { transform: scale(1) rotate(0); }
  25%  { transform: scale(1.6) rotate(-14deg); }
  45%  { transform: scale(0.8) rotate(10deg); }
  65%  { transform: scale(1.3) rotate(-6deg); }
  82%  { transform: scale(0.95) rotate(3deg); }
  100% { transform: scale(1) rotate(0); }
}
.ov-like.pop { animation: likePop 0.6s cubic-bezier(.34,1.56,.64,1); }
.ov-like.pop svg { color: #46d369; }

/* Handwritten "thank you!" note */
.ov-thanks {
  position: absolute;
  left: 200px;
  bottom: 40px;
  z-index: 4;
  transform: rotate(-8deg);
  opacity: 0;
  pointer-events: none;
}
.ov-thanks-ink {
  display: inline-block;
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: 52px;
  line-height: 1;
  color: #fff;
  white-space: nowrap;
  text-shadow: 0 2px 10px rgba(0,0,0,0.45);
  /* start fully clipped from the left so it "writes on" */
  clip-path: inset(-30% 100% -30% -5%);
}
.ov-thanks.show {
  animation: thanksFade 3s ease forwards;
}
.ov-thanks.show .ov-thanks-ink {
  animation: thanksWrite 3s cubic-bezier(.7,0,.3,1) forwards;
}
@keyframes thanksWrite {
  0%   { clip-path: inset(-30% 100% -30% -5%); }
  40%  { clip-path: inset(-30% -8% -30% -5%); }
  100% { clip-path: inset(-30% -8% -30% -5%); }
}
@keyframes thanksFade {
  0%   { opacity: 0; transform: rotate(-8deg) translateY(6px); }
  12%  { opacity: 1; transform: rotate(-8deg) translateY(0); }
  78%  { opacity: 1; }
  100% { opacity: 0; transform: rotate(-8deg) translateY(-4px); }
}

/* ── While the video is playing ── */
/* hide the like button entirely */
.overlay-hero.is-playing .ov-like { display: none; }
/* turn Stop into a subtle icon-only button, faint until the video is hovered */
.ov-play.is-stop {
  min-width: 0;
  width: 40px;
  height: 40px;
  gap: 0;
  padding: 0;
  border-radius: 50%;
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.4);
  color: #fff;
  font-size: 0;
  letter-spacing: 0;
  transition: background 0.2s ease;
}
.ov-play.is-stop svg { width: 14px; height: 14px; }
.ov-play.is-stop:hover { background: rgba(0,0,0,0.7); }

/* While playing, the controls fade out when the cursor leaves the video
   for an unobstructed view, and fade back in on hover over any part of it */
.overlay-hero.is-playing .ov-hero-controls,
.overlay-hero.is-playing .ov-mute,
.overlay-hero.is-playing .ov-fs {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
}
.overlay-hero.is-playing:hover .ov-hero-controls,
.overlay-hero.is-playing:hover .ov-mute,
.overlay-hero.is-playing:hover .ov-fs {
  opacity: 1;
  pointer-events: auto;
}

/* Video layer fades in over the poster, never cropped. The letterbox is
   filled so the frame looks seamless and the image underneath is hidden:
   black for cinematic mp4s, the gif's edge color (#f6f6f6) for the gif. */
.ov-video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  background-color: #000;
  display: block;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.4s cubic-bezier(.4,0,.2,1);
  z-index: 1;
}
.ov-video-gif { background-color: #f6f6f6; }
/* Only the element actually playing fades in */
.overlay-hero.is-playing .ov-video.is-active { opacity: 1; }
/* Dim the poster behind the playing video */
.ov-poster { transition: filter 1.4s cubic-bezier(.4,0,.2,1); }
.overlay-hero.is-playing .ov-poster { filter: brightness(0.3); }

/* Title, play button and gradient fade out while playing */
.overlay-hero-gradient { z-index: 1; }
.overlay-hero .overlay-hero-gradient { transition: opacity 1.4s cubic-bezier(.4,0,.2,1); }
.overlay-hero.is-playing .overlay-hero-gradient { opacity: 0; }
/* keep controls above the dimmed poster + video while playing */
.ov-hero-controls, .ov-mute, .ov-fs { z-index: 3; }

.overlay-body {
  padding: 28px 48px 40px;
}
.ov-top {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 32px;
  align-items: start;
}
.ov-main { min-width: 0; }

.ov-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.ov-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ov-meta-year-row { height: 28px; }
.ov-year {
  color: #bcbcbc;
  font-size: 16px;
  font-weight: 400;
}
.ov-stage {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  height: 20px;
  padding: 0 6px;
  border: 1px solid #bcbcbc;
  color: #bcbcbc;
  font-size: 14.5px;
  line-height: 18px;
  font-weight: 400;
  white-space: nowrap;
}
.ov-disciplines {
  color: #fff;
  font-size: 14px;
  line-height: 18px;
  font-weight: 400;
}

/* Body headline (matches Figma 43:3535) */
.ov-headline {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 24px;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 24px;
}
/* lead and main sit on their own lines (Figma headline is two-line) */
.ov-headline-lead { display: block; font-weight: 400; }
.ov-headline-main { display: block; font-weight: 800; }

/* Right sidebar (43:3510) — brand logo + "Label: value" rows, 240px wide */
.ov-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 240px;
}
.ov-brand { display: block; width: auto; align-self: flex-start; }
.ov-side-row {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  line-height: 20px;
  color: #fff;
  font-weight: 400;
}
.ov-side-label {
  color: #777;
}
.ov-side-label::after { content: ':'; }

/* Body sections (43:3514) — 24px vertical rhythm */
.ov-section { margin-bottom: 24px; max-width: 481px; }
.ov-section:last-child { margin-bottom: 24px; }
.ov-section h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 8px;
  color: #fff;
}
.ov-section p,
.ov-section ul {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  line-height: 24px;
  color: #fff;
}
/* 8px between stacked paragraphs / blocks within a section */
.ov-section p { margin: 0 0 8px; }
.ov-section p:last-child { margin-bottom: 0; }
.ov-section ul {
  margin: 0;
  padding-left: 24px;
  list-style: disc;
}
.ov-section li { margin-bottom: 0; }
.ov-section ul ul { padding-left: 24px; margin: 0; } /* nested bullets */
.ov-section strong { font-weight: 700; }
.ov-section a { color: #fff; text-decoration: underline; word-break: break-word; }
.ov-section a:hover { color: var(--cyan); }

/* CTA box (65:6909) */
.ov-cta {
  margin: 0 0 24px;
  max-width: 481px;
  padding: 16px;
  background: #1e1f21;
  border-radius: 8px;
  border-left: 4px solid #0ff;
}
.ov-cta p {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: normal;
  color: #fff;
  margin: 0;
}
.ov-email {
  color: #0ff;
  font-weight: 700;
}
.ov-email:hover { text-decoration: underline; }

.ov-more h3 {
  font-family: 'Bricolage Grotesque', 'Plus Jakarta Sans', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin: 8px 0 18px;
}
.ov-more-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
/* Each card is a mini hero banner: art + Netflix title lockup, like
   Netflix's "More Like This" row of related titles. */
.ov-more-card {
  position: relative;
  aspect-ratio: 850 / 481;   /* same frame as the overlay hero */
  background: #000;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ov-more-card:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}
.ov-more-poster {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.ov-more-lockup {
  position: absolute;
  object-fit: contain;
  pointer-events: none;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero { height: 70vh; }
  .card { width: 200px; }
  .card-img-wrap { height: auto; aspect-ratio: 16/9; }
  .top10-num { font-size: 5rem; }
  .top10-img { width: 90px; height: 126px; }
  .overlay { padding: 60px 12px 40px; }
  .overlay-hero { height: 300px; }
  .ov-hero-controls { left: 20px; bottom: 24px; }
  .ov-mute { right: 20px; bottom: 24px; }
  .overlay-body { padding: 24px 20px 32px; }
  .ov-top { grid-template-columns: 1fr; gap: 28px; }
  .ov-side {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px 32px;
    order: -1;
    padding-bottom: 4px;
    border-bottom: 1px solid #2a2a2a;
    margin-bottom: 4px;
  }
  .ov-more-grid { grid-template-columns: repeat(2, 1fr); }
}
