/* ==========================================================================
   NEW CHAPTER STUDIO — Front page
   Layout: PDF "NEW CHAPTER STUDIO — Showreel"  ·  Tema: gelap + aksen lime
   ========================================================================== */

:root {
  --bg: #0e0e0e;
  --surface: #161616;
  --surface-2: #1c1c1c;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #f3f3f1;
  --muted: #a6a6a6;
  --accent: #bbffa0;
  --accent-rgb: 187, 255, 160;
  --accent-ink: #0c1109;
  --radius: 22px;
  --container: 1160px;
  --nav-h: 90px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
html.is-locked { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
code { font-size: 0.9em; padding: 2px 6px; border-radius: 6px; background: var(--surface-2); }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
@media (min-width: 768px) { .container { width: min(100% - 64px, var(--container)); } }

/* Pixel grid (canvas latar yang bereaksi pada kursor) */
#pixel-grid {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
main, .footer { position: relative; z-index: 1; }

/* ---------------------------------------------------------------- Buttons */
.btn {
  --by: 0px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 54px;
  padding: 0 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transform: translateY(var(--by));
  transition: transform 0.35s var(--ease), background-color 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.35s var(--ease);
}
.btn:hover, .btn.is-hover { --by: -2px; }
.btn:active { --by: 0px; }
.btn-sm { height: 42px; padding: 0 20px; font-size: 0.94rem; }

.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { box-shadow: 0 10px 34px -8px rgba(var(--accent-rgb), 0.55); }

.btn-ghost { border-color: var(--line-2); background: rgba(255, 255, 255, 0.02); color: var(--text); }
.btn-ghost:hover { border-color: rgba(var(--accent-rgb), 0.6); background: rgba(var(--accent-rgb), 0.06); }

.btn-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* ---------------------------------------------------------------- Navbar */
.nav-wrap {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  padding-top: 14px;
  transition: padding 0.4s var(--ease);
}
.nav-wrap.is-scrolled { padding-top: 8px; }

.nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
  padding: 0 10px 0 24px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(18, 18, 18, 0.62);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  transition: background-color 0.3s, border-color 0.3s;
}
.nav-wrap.is-scrolled .nav { background: rgba(14, 14, 14, 0.82); border-color: var(--line-2); }

.brand { font-weight: 700; font-size: 1.04rem; letter-spacing: -0.01em; white-space: nowrap; }

.nav-links { display: flex; gap: 32px; margin: 0 auto; padding: 0; list-style: none; }
.nav-links a { color: var(--muted); font-size: 0.97rem; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }

.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav-links + .nav-actions { margin-left: 0; }

.sound-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(var(--accent-rgb), 0.5);
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 500;
  transition: background-color 0.25s, border-color 0.25s;
}
.sound-toggle:hover { background: rgba(var(--accent-rgb), 0.08); border-color: var(--accent); }
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 13px; }
.eq i { width: 2px; height: 3px; border-radius: 1px; background: currentColor; transition: height 0.3s; }
.eq i:nth-child(2) { height: 7px; }
.eq i:nth-child(3) { height: 5px; }
.sound-toggle[aria-pressed="true"] .eq i { animation: eq 0.9s ease-in-out infinite; }
.sound-toggle[aria-pressed="true"] .eq i:nth-child(2) { animation-delay: -0.25s; }
.sound-toggle[aria-pressed="true"] .eq i:nth-child(3) { animation-delay: -0.5s; }
.sound-toggle[aria-pressed="true"] .eq i:nth-child(4) { animation-delay: -0.7s; }
@keyframes eq { 0%, 100% { height: 3px; } 50% { height: 13px; } }

.menu-toggle {
  display: none;
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
}
.menu-toggle span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.35s var(--ease);
}
.menu-toggle span:first-child { top: 16px; }
.menu-toggle span:last-child { top: 24px; }
.nav.is-open .menu-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
.nav.is-open .menu-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 880px) {
  .nav { padding-left: 18px; }
  .nav-links + .nav-actions { margin-left: auto; }
  .menu-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 2px;
    margin: 0;
    padding: 10px;
    border-radius: 18px;
    border: 1px solid var(--line-2);
    background: rgba(16, 16, 16, 0.96);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
  }
  .nav.is-open .nav-links { display: flex; animation: drop 0.35s var(--ease); }
  .nav-links a { display: block; padding: 13px 14px; border-radius: 12px; font-size: 1.05rem; color: var(--text); }
  .nav-links a:hover { background: rgba(255, 255, 255, 0.04); }
}
@media (max-width: 600px) {
  .nav-cta { display: none; }
  .sound-toggle { width: 42px; padding: 0; justify-content: center; }
  .sound-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .brand { font-size: 0.95rem; }
}
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }

/* ---------------------------------------------------------------- Blob sections
   Lapisan: konten terang → lingkaran lime → salinan konten gelap ("ink").
   Lingkaran & ink memakai clip-path yang sama sehingga teks berganti warna
   tepat di tepi lingkaran (seperti PDF), tetap terbaca di kedua sisi. */
@property --grow { syntax: "<number>"; inherits: true; initial-value: 1; }

.blob-section {
  --px: 0px;
  --py: 0px;
  --grow: 1;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  overflow: hidden;
}
.blob-section > * { grid-area: 1 / 1; }
.blob-layer { position: relative; z-index: 1; display: flex; }
.blob,
.ink {
  clip-path: circle(calc(var(--r) * var(--grow)) at calc(var(--cx) + var(--px)) calc(var(--cy) + var(--py)));
  pointer-events: none;
}
.blob {
  z-index: 2;
  background:
    radial-gradient(circle at calc(var(--cx) - 6%) calc(var(--cy) - 8%), rgba(255, 255, 255, 0.35), transparent 42%),
    var(--accent);
}
.ink { z-index: 3; color: var(--accent-ink); }
.blob-inner { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }

/* Varian warna di dalam lingkaran */
.ink .badge { border-color: rgba(12, 17, 9, 0.35); background: rgba(12, 17, 9, 0.06); color: var(--accent-ink); }
.ink .hero-sub,
.ink .cta-sub { color: rgba(12, 17, 9, 0.72); }
.ink .btn-accent { background: var(--accent-ink); color: var(--accent); box-shadow: none; }
.ink .btn-ghost { border-color: rgba(12, 17, 9, 0.4); background: transparent; color: var(--accent-ink); }

/* ---------------------------------------------------------------- Hero */
.hero {
  --cx: 24%;
  --cy: 26%;
  --r: min(52vw, 74svh);
  min-height: 100svh;
  animation: grow 1.6s var(--ease) 0.1s both;
}
@keyframes grow { from { --grow: 0; } to { --grow: 1; } }

.hero-inner { padding: calc(var(--nav-h) + 48px) 0 88px; }

.badge {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid rgba(var(--accent-rgb), 0.4);
  background: rgba(var(--accent-rgb), 0.07);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero-title {
  max-width: 15.5ch;
  margin: 28px auto 24px;
  font-size: clamp(2.6rem, 7.4vw, 6.2rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.052em;
  text-wrap: balance;
}
.hero-sub {
  margin-bottom: 38px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.7vw, 1.32rem);
}

.rise { animation: rise 1s var(--ease) both; animation-delay: calc(0.35s + var(--i, 0) * 0.1s); }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }

@media (max-width: 700px) {
  .hero { --cx: 14%; --cy: 24%; --r: max(78vw, 290px); }
  .hero-title { max-width: none; }
}

/* ---------------------------------------------------------------- Sections */
.section { position: relative; padding: clamp(88px, 11vw, 150px) 0; }
.section--alt {
  border-block: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
}

.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head h2 {
  margin-bottom: 16px;
  font-size: clamp(2.3rem, 5.4vw, 4rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.048em;
}
.section-head h2 sup {
  top: -1.4em;
  margin-left: 4px;
  font-size: 0.32em;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--accent);
}
.section-head p { color: var(--muted); font-size: 1.1rem; }

/* Reveal saat discroll (hanya bila JS aktif) */
.js .reveal {
  opacity: 0;
  translate: 0 28px;
  transition: opacity 0.9s var(--ease), translate 0.9s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js .reveal.is-in { opacity: 1; translate: 0 0; }

/* ---------------------------------------------------------------- Portfolio cards */
.reel-grid { display: grid; gap: clamp(18px, 2.4vw, 30px); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 860px) {
  .reel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reel-grid > :first-child,
  .reel-grid > :last-child:nth-child(even) { grid-column: 1 / -1; }
}

.reel-card {
  --lift: 0;
  --rx: 0deg;
  --ry: 0deg;
  --mx: 50%;
  --my: 50%;
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  isolation: isolate;
  transform:
    perspective(1100px)
    translate3d(0, calc(var(--lift) * -12px), 0)
    rotateX(var(--rx))
    rotateY(var(--ry))
    scale(calc(1 + var(--lift) * 0.028));
  box-shadow:
    0 calc(10px + var(--lift) * 30px) calc(30px + var(--lift) * 60px) -14px rgba(0, 0, 0, calc(0.5 + var(--lift) * 0.3)),
    0 0 0 1px rgba(var(--accent-rgb), calc(var(--lift) * 0.5)),
    0 calc(var(--lift) * 20px) calc(var(--lift) * 70px) -18px rgba(var(--accent-rgb), calc(var(--lift) * 0.4));
  will-change: transform;
}

.reel-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  background: #0a0a0a;
  -webkit-mask-image: -webkit-radial-gradient(white, black); /* Safari: jaga sudut membulat */
}
.reel-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(calc(1.02 + var(--lift) * 0.04));
  transition: opacity 0.9s ease, transform 1.2s var(--ease);
}
.reel-player { position: absolute; inset: 0; opacity: 0; transition: opacity 0.9s ease; }
.reel-player iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  border: 0;
  transform: translate(-50%, -50%) scale(1.2); /* sembunyikan elemen UI YouTube di tepi */
  pointer-events: none;
}
.reel-card.has-played .reel-player { opacity: 1; }
.reel-card.has-played .reel-poster { opacity: 0; }

.reel-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, transparent 26%, transparent 52%, rgba(0, 0, 0, 0.78) 100%);
  pointer-events: none;
}
.reel-glare {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  background: radial-gradient(520px circle at var(--mx) var(--my), rgba(255, 255, 255, calc(var(--lift) * 0.16)), transparent 46%);
  pointer-events: none;
}

.reel-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  padding-left: 4px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 14px 44px -10px rgba(var(--accent-rgb), 0.7);
  transform: translate(-50%, -50%) scale(calc(0.86 + var(--lift) * 0.2));
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.reel-card.has-played .reel-play { opacity: calc(var(--lift) * 1.2); }
@media (hover: none) { .reel-card.has-played .reel-play { opacity: 0.85; transform: translate(-50%, -50%) scale(0.72); } }

.reel-status {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 13px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.reel-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: pulse 1.6s ease-in-out infinite;
}
.reel-card.is-live .reel-status { opacity: 1; }
.reel-card.is-audible .reel-status::after { content: "· sound"; color: var(--accent); }
@keyframes pulse { 50% { opacity: 0.35; } }

.reel-meta {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(18px, 2.6vw, 30px);
  pointer-events: none;
}
.reel-meta h3 {
  font-size: clamp(1.05rem, 1.9vw, 1.45rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.5);
}
.reel-index { flex: none; color: rgba(255, 255, 255, 0.7); font-size: 0.85rem; font-variant-numeric: tabular-nums; }

.reel-hit { position: absolute; inset: 0; z-index: 4; border-radius: inherit; cursor: pointer; }
.reel-hit:focus-visible { outline-offset: -3px; }

.reel-card--folder {
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(var(--accent-rgb), 0.3), transparent 55%),
    radial-gradient(90% 120% at 100% 100%, rgba(var(--accent-rgb), 0.12), transparent 60%),
    linear-gradient(135deg, #1a2215, #121212 70%);
}
.reel-card--folder .reel-play { padding-left: 0; }
.reel-card--folder .reel-index { color: var(--accent); font-size: 1.2rem; }
.reel-card--folder:focus-visible { outline-offset: 4px; }

.empty-state {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 56px 32px;
  border: 1px dashed var(--line-2);
  border-radius: var(--radius);
  background: rgba(22, 22, 22, 0.6);
  text-align: center;
}
.empty-state strong { font-size: 1.2rem; }
.empty-state span { color: var(--muted); }

/* ---------------------------------------------------------------- Kategori */
.cat-grid { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.cat-card {
  --mx: 50%;
  --my: 0%;
  position: relative;
  overflow: hidden;
  padding: 32px 30px 36px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(18, 18, 18, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: border-color 0.35s, transform 0.5s var(--ease), translate 0.9s var(--ease), opacity 0.9s var(--ease);
}
.cat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(360px circle at var(--mx) var(--my), rgba(var(--accent-rgb), 0.13), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.js .cat-card.reveal {
  transition: opacity 0.9s var(--ease), translate 0.9s var(--ease), border-color 0.35s, transform 0.5s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms), calc(var(--d, 0) * 90ms), 0s, 0s;
}
.cat-card:hover { border-color: rgba(var(--accent-rgb), 0.35); transform: translateY(-4px); }
.cat-card:hover::before { opacity: 1; }
.cat-num { color: var(--accent); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.12em; }
.cat-card h3 { margin: 22px 0 10px; font-size: 1.38rem; font-weight: 600; letter-spacing: -0.025em; }
.cat-card p { color: var(--muted); }

/* ---------------------------------------------------------------- FAQ */
@media (min-width: 960px) {
  .faq-wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; }
}
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item h3 { font-size: inherit; }
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 28px 0;
  text-align: left;
  font-size: clamp(1.06rem, 1.6vw, 1.24rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  transition: color 0.2s;
}
.faq-q:hover { color: var(--accent); }
.faq-icon { position: relative; flex: none; width: 18px; height: 18px; color: var(--accent); }
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  margin-top: -1px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.45s var(--ease);
}
.faq-icon::after { transform: rotate(90deg); }
.faq-item.is-open .faq-icon::after { transform: rotate(0deg); }
.faq-item.is-open .faq-icon::before { transform: rotate(180deg); }

.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.5s var(--ease); }
.faq-a > div { overflow: hidden; visibility: hidden; transition: visibility 0s 0.5s; }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-item.is-open .faq-a > div { visibility: visible; transition-delay: 0s; }
.faq-a p { max-width: 62ch; padding-bottom: 28px; color: var(--muted); }

/* ---------------------------------------------------------------- CTA */
.cta {
  --cx: 50%;
  --cy: 0%;
  --r: min(50vw, 600px);
  min-height: clamp(540px, 58vw, 680px);
  border-top: 1px solid var(--line);
}
.cta-inner { padding: 110px 0 120px; }
.cta-title {
  max-width: 18ch;
  font-size: clamp(2.1rem, 5vw, 3.8rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.048em;
  text-wrap: balance;
}
.cta-sub { margin: 18px 0 40px; color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.25rem); }
@media (max-width: 700px) { .cta { --r: max(86vw, 320px); } }

/* ---------------------------------------------------------------- Footer */
.footer { padding: 30px 0; border-top: 1px solid var(--line); background: rgba(10, 10, 10, 0.85); color: var(--muted); font-size: 0.95rem; }
.footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; }

/* ---------------------------------------------------------------- Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.lightbox[hidden] { display: none; }
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 6, 6, 0.86);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  animation: fade 0.35s ease both;
}
.lightbox-dialog { position: relative; width: min(1120px, 100%); animation: pop 0.55s var(--ease) both; }
.lightbox-frame {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--line-2);
  background: #000;
  box-shadow: 0 40px 120px -30px rgba(var(--accent-rgb), 0.25);
}
.lightbox-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.lightbox-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-top: 16px; }
.lightbox-title { font-size: 1.1rem; font-weight: 600; letter-spacing: -0.015em; }
.lightbox-actions { display: flex; gap: 10px; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(18px) scale(0.97); } }

/* ---------------------------------------------------------------- Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; translate: none; }
}
