.multimedia-page {
  /* Light-mode multimedia tokens (inherit from site tokens where possible) */
  --mm-bg-0: var(--site-bg-0);
  --mm-bg-1: var(--site-bg-1);
  --mm-bg-2: var(--site-bg-2);
  --mm-panel: var(--site-panel);
  --mm-panel-soft: var(--site-panel-soft);
  --mm-border: var(--site-card-border);
  --mm-text: var(--site-text);
  --mm-muted: var(--site-muted);
  --mm-accent: var(--site-accent);
  --mm-accent-strong: var(--site-accent-strong);
  --mm-shadow: var(--site-shadow);
  --mm-card-bg: var(--site-card-bg);
  --mm-card-border: var(--site-card-border);
  --mm-heading: var(--site-heading);
  --mm-heading-muted: var(--site-heading-muted);
  --mm-button-text: var(--site-heading);
  --mm-button-bg: linear-gradient(135deg, #b5eeff, #7ad4fd);

  color: var(--mm-text);
  background:
    radial-gradient(circle at 82% 16%, rgba(115, 170, 255, 0.06), transparent 34%),
    radial-gradient(circle at 14% 78%, rgba(100, 214, 255, 0.04), transparent 36%),
    linear-gradient(145deg, var(--mm-bg-0) 0%, var(--mm-bg-1) 56%, var(--mm-bg-2) 100%);
  background-attachment: fixed;
  font-family: "Barlow", sans-serif;
}

.multimedia-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  background-image: linear-gradient(0deg, transparent 23px, rgba(181, 210, 245, 0.28) 24px);
  background-size: 100% 24px;
  z-index: 0;
}

.multimedia-page .navbar {
  position: relative;
  z-index: 3;
}

.multimedia-page .multimedia-main {
  position: relative;
  z-index: 1;
  width: min(1160px, calc(100% - 2.4rem));
  max-width: none;
  margin: 2rem auto 1rem;
  padding: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  display: grid;
  gap: 1.5rem;
}

.mm-card {
  border: 1px solid var(--mm-card-border);
  background: var(--mm-card-bg);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(2, 6, 18, 0.12);
  display: flex;
  flex-direction: column;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}
.mm-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 28px rgba(0, 0, 0, 0.18);
  border-color: rgba(157, 214, 255, 0.35);
}
.mm-kicker {
  margin-bottom: 0.7rem;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--mm-accent);
  font-weight: 600;
}

.mm-hero h1 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.95rem, 4.1vw, 3.4rem);
  line-height: 1.07;
  margin-bottom: 0.9rem;
  max-width: 14ch;
}

.mm-subtitle {
  font-size: clamp(1.06rem, 1.8vw, 1.45rem);
  color: var(--mm-muted);
  max-width: 62ch;
  margin-bottom: 0.8rem;
}

.mm-context {
  color: var(--mm-muted);
  max-width: 67ch;
}

.mm-featured {
  padding: clamp(1.2rem, 2.2vw, 1.8rem);
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}

.mm-featured-media {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--mm-card-border);
  background: var(--mm-panel);
}

.mm-featured-media video {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  display: block;
}

.mm-featured-text {
  padding: 0.35rem;
  display: flex;
  flex-direction: column;
}

.mm-eyebrow {
  font-size: 0.84rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mm-accent);
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.mm-featured-text h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.25rem, 2.2vw, 2rem);
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.mm-featured-text p {
  color: var(--mm-muted);
  margin-bottom: 1.3rem;
}

.mm-sketchfab {
  padding: clamp(1.2rem, 2.2vw, 1.8rem);
  display: grid;
  gap: 1rem;
}

.mm-sketchfab-header {
  margin-bottom: 0;
}

.mm-sketchfab-header h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.25rem, 2.2vw, 2rem);
  line-height: 1.15;
}

.sketchfab-embed-wrapper {
  width: min(100%);
  margin-inline: auto;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--mm-card-border);
  background: var(--mm-panel);
}

.sketchfab-embed-wrapper iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-width: 100%;
  border: 0;
}

.mm-sketchfab-credit {
  margin: 0;
  padding: 0.75rem 0.9rem 0.95rem;
  font-size: 0.83rem;
  color: var(--mm-muted);
}

.mm-sketchfab-credit a {
  color: var(--mm-accent);
  font-weight: 700;
  text-decoration: none;
}

.mm-sketchfab-credit a:hover {
  text-decoration: underline;
}

.mm-gallery {
  padding: clamp(1.3rem, 2.4vw, 2rem);
}

.mm-gallery > h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.4rem, 2.7vw, 2.3rem);
  margin-bottom: 1.2rem;
}

.mm-posters {
  padding: clamp(1.3rem, 2.4vw, 2rem);
}

.mm-posters > h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.4rem, 2.7vw, 2.3rem);
  margin-bottom: 1.1rem;
}

.mm-poster-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.mm-poster-card {
  border: 1px solid var(--mm-card-border);
  background: var(--mm-card-bg);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(2, 6, 18, 0.12);
  display: flex;
  flex-direction: column;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.mm-poster-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 28px rgba(0, 0, 0, 0.18);
  border-color: rgba(157, 214, 255, 0.35);
}

.mm-poster-media {
  background: rgba(8, 18, 32, 0.04);
  border-bottom: 1px solid var(--mm-card-border);
  padding: 0.85rem;
}

.mm-poster-media img {
  width: 100%;
  display: block;
  object-fit: contain;
  max-height: 520px;
}

.mm-poster-content {
  padding: 0.95rem 1rem 1rem;
}

.mm-poster-content h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.06rem;
  margin-bottom: 0.35rem;
}

.mm-poster-content p {
  color: var(--mm-muted);
  margin-bottom: 0;
  font-size: 0.95rem;
}

.mm-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
  background: rgba(5, 11, 20, 0.86);
  backdrop-filter: blur(14px);
}

.mm-lightbox.is-open {
  display: flex;
}

.mm-lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(12, 24, 42, 0.72);
  color: #f7fbff;
  padding: 0.65rem 1rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.mm-lightbox-frame {
  width: min(96vw, 1400px);
  height: min(90vh, 900px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mm-lightbox-media {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.48);
  border-radius: 14px;
  background: rgba(4, 10, 18, 0.85);
}

body.mm-lightbox-open {
  overflow: hidden;
}

.mm-category-block + .mm-category-block {
  margin-top: 1.6rem;
}

.mm-category-block h3 {
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  margin-bottom: 0.85rem;
  color: var(--mm-heading);
}

.mm-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.mm-card {
  border: 1px solid var(--mm-card-border);
  background: var(--mm-card-bg);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(2, 6, 18, 0.12);
  display: flex;
  flex-direction: column;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.mm-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 28px rgba(0, 0, 0, 0.18);
  border-color: rgba(157, 214, 255, 0.35);
}

.mm-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.mm-card img[src$=".gif"] {
  object-fit: cover;
}

.mm-card,
.mm-poster-card,
.mm-featured-media,
.mm-card img,
.mm-card iframe,
.mm-poster-media img,
.mm-featured-media video {
  cursor: zoom-in;
}

.mm-remote-embed {
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 0;
  display: block;
  background: rgba(5, 11, 20, 0.08);
}

.mm-card-content {
  padding: 0.95rem 1rem 1rem;
}

.mm-card h4 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.06rem;
  margin-bottom: 0.35rem;
}

.mm-card p {
  color: var(--mm-muted);
  margin-bottom: 0.7rem;
  font-size: 0.95rem;
}

.mm-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.mm-meta span,
.mm-meta strong {
  font-size: 0.73rem;
  line-height: 1.3;
  border-radius: 999px;
  padding: 0.2rem 0.58rem;
}

.mm-meta span {
  border: 1px solid rgba(171, 209, 246, 0.18);
  color: var(--mm-muted);
  background: rgba(103, 141, 184, 0.08);
}

.mm-meta strong {
  color: var(--mm-heading);
  background: var(--mm-accent-strong);
  font-weight: 700;
}

.mm-behind,
.mm-cta {
  padding: clamp(1.4rem, 2.4vw, 2rem);
}

.mm-behind h2,
.mm-cta h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  margin-bottom: 0.7rem;
}

.mm-behind p,
.mm-cta p {
  color: var(--mm-muted);
  max-width: 72ch;
}

.mm-cta {
  background: linear-gradient(155deg, var(--mm-panel), var(--mm-panel-soft));
}

.mm-cta-actions {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.mm-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(163, 213, 255, 0.18);
  padding: 0.6rem 1.05rem;
  text-decoration: none;
  color: var(--mm-button-text);
  background: var(--mm-button-bg);
  font-weight: 700;
  box-shadow: 0 7px 17px rgba(19, 94, 149, 0.12);
  transition: transform 220ms ease, box-shadow 220ms ease, background-color 220ms ease;
}

.mm-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 11px 24px rgba(18, 96, 152, 0.18);
}

.mm-button-secondary {
  color: var(--mm-text);
  background: rgba(49, 83, 121, 0.12);
  border-color: rgba(174, 211, 247, 0.12);
  box-shadow: none;
}

.mm-button-secondary:hover {
  background: rgba(66, 104, 146, 0.18);
}

.mm-button:focus-visible,
.mm-card:focus-within,
.multimedia-page a:focus-visible {
  outline: 3px solid var(--mm-accent);
  outline-offset: 3px;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: mmReveal 620ms ease forwards;
}

.mm-featured.reveal {
  animation-delay: 140ms;
}

.mm-gallery.reveal {
  animation-delay: 220ms;
}

.mm-behind.reveal {
  animation-delay: 300ms;
}

.mm-cta.reveal {
  animation-delay: 360ms;
}

@keyframes mmReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .multimedia-page .multimedia-main {
    width: min(980px, calc(100% - 1.6rem));
  }

  .sketchfab-embed-wrapper {
    width: 100%;
  }

  .sketchfab-embed-wrapper iframe {
    aspect-ratio: 16 / 10;
  }

  .mm-featured {
    grid-template-columns: 1fr;
  }

  .mm-featured-media video {
    min-height: 250px;
  }
}

@media (max-width: 760px) {
  .mm-grid {
    grid-template-columns: 1fr;
  }

  .mm-poster-grid {
    grid-template-columns: 1fr;
  }

  .mm-hero h1 {
    max-width: 17ch;
  }

  .mm-featured-media video {
    min-height: 210px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .mm-card,
  .mm-button {
    animation: none;
    transition: none;
    transform: none;
    opacity: 1;
  }
}
