/* ─────────────────────────────────────────
   THEME TOKENS  (dark = default)
───────────────────────────────────────── */
:root {
  --bg:        #0e0d0b;
  --surface:   #161512;
  --border:    #2a2720;
  --text:      #e8e2d9;
  --muted:     #7a746a;
  --accent:    #c9a96e;
  --accent-dim:#7a6340;

  --nav-bg:    rgba(14,13,11,.88);
  --toggle-bg: rgba(255,255,255,.08);

  --ff-serif: 'Cormorant Garamond', Georgia, serif;
  --ff-sans:  'Mada', sans-serif;
  --nav-h: 60px;
  --ease: cubic-bezier(.25,.46,.45,.94);
}

/* ── LIGHT MODE ─────────────────────────── */
[data-theme="light"] {
  --bg:        #f5f2ec;
  --surface:   #ede9e0;
  --border:    #d4cfc5;
  --text:      #1a1814;
  --muted:     #8a8278;
  --accent:    #9a6f35;
  --accent-dim:#c9a96e;

  --nav-bg:    rgba(245,242,236,.88);
  --toggle-bg: rgba(0,0,0,.07);
}

/* ─────────────────────────────────────────
   RESET & BASE
───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff-sans);
  font-weight: 300;
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.75;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  transition: background .35s var(--ease), color .35s var(--ease);
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }

/* ─────────────────────────────────────────
   THEME TOGGLE BUTTON
───────────────────────────────────────── */
.theme-toggle {
  position: fixed;
  bottom: 1.8rem;
  right: 1.8rem;
  z-index: 200;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--toggle-bg);
  backdrop-filter: blur(10px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--text);
  transition: background .25s, border-color .25s, transform .2s;
}
.theme-toggle:hover { transform: scale(1.1); }
.theme-toggle:active { transform: scale(.95); }

/* ─────────────────────────────────────────
   NAV
───────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
  background: var(--nav-bg);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background .35s var(--ease), border-color .35s var(--ease),
              transform .4s var(--ease);
}

/* Logo image — sized to nav height with some padding */
.nav-logo {
  display: flex;
  align-items: center;
  height: calc(var(--nav-h) - 40px);
}

.nav-logo-img {
  height: 100%;
  width: auto;
  object-fit: contain;
  display: block;
  /* Invert logo in light mode so a white/dark logo adapts */
}

[data-theme="light"] .nav-logo-img {
  filter: invert(0);   /* adjust to 'invert(1)' if your logo is white-on-transparent */
}

.nav-logo-text {
  font-family: var(--ff-serif);
  font-size: 1.4rem;
  letter-spacing: .12em;
  color: var(--accent);
  font-style: italic;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .25s var(--ease);
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); }

/* ─────────────────────────────────────────
   HERO — VIDEO BACKGROUND + MATTE OVERLAY
───────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: calc(var(--nav-h) + 4rem) clamp(1.5rem, 6vw, 6rem) 5rem;
  position: relative;
  overflow: hidden;
}

/* Video layer */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  /* Desaturate slightly for a matte film look */
  filter: saturate(.75) brightness(.6);
  transition: filter .35s;
}

[data-theme="light"] .hero-video {
  filter: saturate(.6) brightness(.72);
}

/* Multi-layer matte texture over the video */
.hero-matte {
  position: absolute;
  inset: 0;
  z-index: 1;
  /* Film-grain SVG data URI + gradient vignette */
  background:
    /* top vignette */
    linear-gradient(to bottom,
      rgba(0,0,0,.45) 0%,
      rgba(0,0,0,.0)  35%,
      rgba(0,0,0,.0)  55%,
      rgba(0,0,0,.65) 100%
    ),
    /* subtle warm tint */
    radial-gradient(ellipse 100% 80% at 50% 50%,
      rgba(201,169,110,.06) 0%, transparent 70%);
  /* CSS noise grain overlay */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E"),
    linear-gradient(to bottom,
      rgba(0,0,0,.45) 0%,
      rgba(0,0,0,.0)  35%,
      rgba(0,0,0,.0)  55%,
      rgba(0,0,0,.65) 100%
    );
  pointer-events: none;
  mix-blend-mode: normal;
}

/* Text sits above video + matte */
.hero-text,
.hero-scroll-hint {
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  display: block;
  font-size: .72rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
  animation: fadeUp .8s var(--ease) both;
}

.hero h1 {
  font-family: var(--ff-serif);
  font-weight: 300;
  font-size: clamp(2.4rem, 6vw, 5.2rem);
  line-height: 1.1;
  /* Always white over video regardless of theme */
  color: #f0ead8;
  text-shadow: 0 2px 32px rgba(0,0,0,.45);
  animation: fadeUp .9s .1s var(--ease) both;
}

.hero h1 em {
  font-style: italic;
  color: #c9a96e;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  right: clamp(1.5rem, 6vw, 6rem);
  font-size: .7rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: rgba(240,234,216,.6);
  animation: fadeUp 1s .4s var(--ease) both;
}

/* ─────────────────────────────────────────
   PAGE HEADER (non-home)
───────────────────────────────────────── */
.page-header {
  padding: calc(var(--nav-h) + 5rem) clamp(1.5rem, 6vw, 6rem) 3rem;
}

.page-header h1 {
  font-family: var(--ff-serif);
  font-weight: 300;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.08;
  margin-top: 1rem;
}

.page-header h1 em { font-style: italic; color: var(--accent); }

/* ─────────────────────────────────────────
   GALLERY
───────────────────────────────────────── */
.gallery-section {
  padding: 0 clamp(1rem, 4vw, 4rem) 6rem;
}

.gallery-label {
  font-size: .7rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--border);
  transition: color .35s, border-color .35s;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* Each row is a fixed height — all cells in that row share exactly this height */
  grid-auto-rows: 340px;
  gap: 1rem;
}

.grid-item {
  position: relative;
  /* Make the grid item fill its row height fully */
  min-height: 0;
}
.grid-item.span-2 { grid-column: span 2; }

.photo-wrap {
  position: relative;
  overflow: hidden;
  /* Fill the grid cell completely — no aspect-ratio so the row height governs */
  width: 100%;
  height: 100%;
  background: var(--surface);
  transition: background .35s;
}
/* Remove the old conflicting aspect-ratio overrides */
.grid-item.span-2 .photo-wrap { aspect-ratio: unset; }

.photo-wrap img {
  object-position: var(--ox, 50%) var(--oy, 50%);
  transition: transform .7s var(--ease);
}
.photo-wrap:hover img { transform: scale(1.03); }

.photo-wrap.placeholder {
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.photo-wrap.placeholder::after {
  content: '— no image —';
  font-family: var(--ff-serif);
  font-style: italic;
  color: var(--muted);
}

.photo-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: .5rem .75rem;
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #f0ead8;
  background: linear-gradient(transparent, rgba(0,0,0,.65));
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .3s, transform .3s;
}
.photo-wrap:hover .photo-caption { opacity: 1; transform: translateY(0); }

/* ─────────────────────────────────────────
   WORDS / POSTS LIST
───────────────────────────────────────── */
.words-section { padding: 0 clamp(1.5rem, 6vw, 6rem) 6rem; }

.posts-list { display: flex; flex-direction: column; }

.post-item { border-bottom: 1px solid var(--border); transition: border-color .35s; }

.post-link {
  display: block;
  padding: 2.5rem 0;
  transition: padding-left .3s var(--ease);
}
.post-link:hover { padding-left: 1rem; }

.post-meta {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: .75rem;
}

.post-date {
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}

.post-tag {
  font-size: .65rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  padding: .15rem .55rem;
  border: 1px solid var(--accent-dim);
  color: var(--accent);
  border-radius: 2px;
}

.post-title {
  font-family: var(--ff-serif);
  font-weight: 300;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.15;
  margin-bottom: .8rem;
  color: var(--text);
  transition: color .35s;
}

.post-excerpt {
  color: var(--muted);
  max-width: 60ch;
  margin-bottom: 1rem;
  font-size: .95rem;
  transition: color .35s;
}

.post-read {
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ─────────────────────────────────────────
   ABOUT
───────────────────────────────────────── */
.about-section {
  padding: calc(var(--nav-h) + 5rem) clamp(1.5rem, 6vw, 6rem) 6rem;
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 5rem;
  align-items: start;
}

.portrait-wrap {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
  transition: background .35s, border-color .35s;
}
.portrait-wrap.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-serif);
  font-style: italic;
  color: var(--muted);
}

.about-name {
  font-family: var(--ff-serif);
  font-weight: 300;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.05;
  margin-top: .75rem;
  margin-bottom: 2rem;
}

.about-text p {
  margin-bottom: 1.4rem;
  max-width: 58ch;
  transition: color .35s;
}
.about-text strong { font-weight: 400; }

.about-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  transition: border-color .35s;
}

.detail-col h3 {
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
  transition: color .35s;
}
.detail-col ul { list-style: none; }
.detail-col li { margin-bottom: .5rem; font-size: .9rem; }
.detail-col a {
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.detail-col a:hover { border-color: var(--accent); }

.about-quote {
  margin-top: 3rem;
  padding: 2rem;
  border-left: 2px solid var(--accent);
  background: var(--surface);
  transition: background .35s;
}
.about-quote blockquote {
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  line-height: 1.5;
  color: var(--text);
  margin-bottom: .75rem;
  transition: color .35s;
}
.about-quote cite {
  font-size: .72rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted);
  font-style: normal;
  transition: color .35s;
}

/* ─────────────────────────────────────────
   POST (single) — wider body text
───────────────────────────────────────── */
.post-section {
  max-width: 80rem;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 4rem) clamp(1.5rem, 6vw, 6rem) 6rem;
}

.back-link {
  display: inline-block;
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2rem;
  transition: color .2s;
}
.back-link:hover { color: var(--accent); }

.post-heading {
  font-family: var(--ff-serif);
  font-weight: 300;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1.05;
  margin-top: 1rem;
  margin-bottom: 3rem;
}
.post-heading em { font-style: italic; color: var(--accent); }

/* ── Wider reading column: fluid from ~480px to 900px ── */
.post-body {
  width: 100%;
  max-width: min(900px, 100%);
  margin: 0 auto;
}

.post-body p {
  margin-bottom: 1.7rem;
  font-size: clamp(1rem, 1.8vw, 1.1rem);
  line-height: 1.85;
  transition: color .35s;
}

.post-lead {
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: clamp(1.2rem, 2.2vw, 1.5rem) !important;
  line-height: 1.6;
  margin-bottom: 2rem !important;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
  transition: border-color .35s;
}

.post-body em { color: var(--accent); font-style: italic; }

/* ─────────────────────────────────────────
   MARKDOWN BODY — rendered from .md files
───────────────────────────────────────── */
.md-loading {
  color: var(--muted);
  font-style: italic;
  font-size: .9rem;
}

/* Headings inside markdown */
.md-body h1, .md-body h2, .md-body h3, .md-body h4 {
  font-family: var(--ff-serif);
  font-weight: 300;
  color: var(--text);
  margin: 2.5rem 0 1rem;
  line-height: 1.15;
  transition: color .35s;
}
.md-body h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.md-body h2 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
.md-body h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); }

/* Paragraphs */
.md-body p {
  margin-bottom: 1.6rem;
  font-size: clamp(1rem, 1.8vw, 1.1rem);
  line-height: 1.85;
  color: var(--text);
  transition: color .35s;
}

/* Blockquotes */
.md-body blockquote {
  margin: 2rem 0;
  padding: 1.2rem 1.8rem;
  border-left: 2px solid var(--accent);
  background: var(--surface);
  border-radius: 0 3px 3px 0;
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: clamp(1.05rem, 1.9vw, 1.25rem);
  line-height: 1.65;
  color: var(--text);
  transition: background .35s, border-color .35s;
}
.md-body blockquote p { margin-bottom: .5rem; font-size: inherit; }
.md-body blockquote p:last-child { margin-bottom: 0; }

/* Links */
.md-body a {
  color: var(--accent);
  border-bottom: 1px solid var(--accent-dim);
  transition: border-color .2s, color .2s;
}
.md-body a:hover {
  color: var(--text);
  border-color: var(--text);
}

/* Bold & italic */
.md-body strong { font-weight: 400; color: var(--text); }
.md-body em { font-style: italic; color: var(--accent); }

/* Inline code */
.md-body code {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: .85em;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: .1em .42em;
  border-radius: 3px;
  color: var(--accent);
  transition: background .35s, border-color .35s;
}

/* Code blocks */
.md-body pre {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.4rem 1.6rem;
  overflow-x: auto;
  margin: 1.8rem 0;
  transition: background .35s, border-color .35s;
}
.md-body pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: .88rem;
  line-height: 1.65;
  color: var(--text);
}

/* Horizontal rule */
.md-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 3rem 0;
  transition: border-color .35s;
}

/* Images */
.md-body img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 2rem auto;
  border-radius: 2px;
}

/* Lists */
.md-body ul, .md-body ol {
  padding-left: 1.8rem;
  margin-bottom: 1.6rem;
}
.md-body li {
  margin-bottom: .5rem;
  font-size: clamp(1rem, 1.8vw, 1.1rem);
  line-height: 1.75;
  color: var(--text);
  transition: color .35s;
}

/* Tables */
.md-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: .95rem;
}
.md-body th {
  font-weight: 400;
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  padding: .6rem .8rem;
  text-align: left;
}
.md-body td {
  padding: .7rem .8rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  transition: color .35s, border-color .35s;
}

/* ─────────────────────────────────────────
   VIEWABLE PHOTO (lightbox trigger)
───────────────────────────────────────── */
.photo-wrap.viewable {
  cursor: zoom-in;
}

/* ─────────────────────────────────────────
   LIGHTBOX
───────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease);
}

.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lb-img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 4rem 5rem;
}

.lb-img {
  max-width: 100%;
  max-height: calc(100vh - 10rem);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 8px 60px rgba(0,0,0,.8);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}

.lb-img.switching {
  opacity: 0;
  transform: scale(.97);
}

.lb-caption {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(240,234,216,.7);
  white-space: nowrap;
  pointer-events: none;
}

.lb-counter {
  position: absolute;
  top: 1.4rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: .68rem;
  letter-spacing: .2em;
  color: rgba(240,234,216,.4);
}

/* Close button */
.lb-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: rgba(240,234,216,.6);
  font-size: 1.4rem;
  cursor: pointer;
  padding: .4rem .6rem;
  line-height: 1;
  transition: color .2s;
  z-index: 10;
}
.lb-close:hover { color: #fff; }

/* Prev / Next arrows */
.lb-prev,
.lb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(240,234,216,.8);
  font-size: 2rem;
  line-height: 1;
  padding: .6rem .85rem;
  cursor: pointer;
  border-radius: 2px;
  transition: background .2s, color .2s;
  z-index: 10;
  backdrop-filter: blur(6px);
}
.lb-prev { left: 1.2rem; }
.lb-next { right: 1.2rem; }
.lb-prev:hover,
.lb-next:hover { background: rgba(255,255,255,.15); color: #fff; }

/* Hide arrows when only one image */
.lightbox[data-single="true"] .lb-prev,
.lightbox[data-single="true"] .lb-next { display: none; }

@media (max-width: 600px) {
  .lb-img-wrap { padding: 4rem 1rem; }
  .lb-prev { left: .4rem; }
  .lb-next { right: .4rem; }
  .lb-caption { font-size: .62rem; bottom: 2rem; }
}

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
.footer {
  padding: 2rem clamp(1.5rem, 6vw, 6rem);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .72rem;
  letter-spacing: .12em;
  color: var(--muted);
  transition: border-color .35s, color .35s;
}
.footer a { transition: color .2s; }
.footer a:hover { color: var(--accent); }

/* ─────────────────────────────────────────
   ANIMATIONS
───────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--delay, 0s);
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 260px;
  }
  .grid-item.span-2 { grid-column: span 2; }

  .about-section { grid-template-columns: 1fr; gap: 2rem; }
  .portrait-wrap { aspect-ratio: 4/3; position: static; max-width: 400px; }

  .post-body { max-width: 100%; }
}

@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
  }
  .grid-item.span-2 { grid-column: span 1; }

  .about-details { grid-template-columns: 1fr; }
  .footer { flex-direction: column; gap: .5rem; text-align: center; }

  .theme-toggle { bottom: 1.2rem; right: 1.2rem; }

  /* Post body: fill screen on mobile with comfortable margins */
  .post-section { padding-left: 1.25rem; padding-right: 1.25rem; }
  .post-body { max-width: 100%; }
  .post-body p { font-size: 1rem; line-height: 1.8; }
}

/* ═══════════════════════════════════════════
   VIDEO CARDS IN GALLERY
═══════════════════════════════════════════ */
.photo-wrap.video-card {
  cursor: pointer;
}

/* Play button circle */
.video-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  opacity: 0;
  transition: opacity .3s var(--ease);
}

.video-play-btn svg {
  width: clamp(44px, 6vw, 72px);
  height: clamp(44px, 6vw, 72px);
  filter: drop-shadow(0 2px 12px rgba(0,0,0,.5));
  transition: transform .25s var(--ease);
}

.video-card:hover .video-play-btn {
  opacity: 1;
}
.video-card:hover .video-play-btn svg {
  transform: scale(1.08);
}

/* Dark overlay on hover to make play button pop */
.video-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.35);
  opacity: 0;
  transition: opacity .3s var(--ease);
  z-index: 2;
}
.video-card:hover::after { opacity: 1; }

/* "▶ Video" badge top-right */
.video-badge {
  position: absolute;
  top: .65rem;
  right: .65rem;
  z-index: 4;
  font-size: .62rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: .2rem .55rem;
  background: rgba(0,0,0,.55);
  color: #fff;
  backdrop-filter: blur(6px);
  border-radius: 2px;
  border: 1px solid rgba(255,255,255,.15);
}
