/* ============================================================
   EI Productions — Shared Mockup Styles
   Design spec: docs/superpowers/specs/2026-04-14-ei-productions-homepage-mockups-design.md
   ============================================================ */

/* --- Custom Properties (Design Tokens) --- */
:root {
  /* Colours */
  --bg-primary: #141414;
  --bg-secondary: #1A1A1A;
  --bg-surface: #242424;
  --bg-footer: #0a0a0a;
  --bg-light: #F7F7F7;

  --text-primary: #FFFFFF;
  --text-body: rgba(255, 255, 255, 0.75);
  --text-secondary: rgba(255, 255, 255, 0.5);
  --text-tertiary: rgba(255, 255, 255, 0.35);

  --accent: #7C3AED;
  --accent-hover: #9333EA;
  --accent-light: #C084FC;
  --accent-subtle: rgba(124, 58, 237, 0.15);

  /* Typography */
  --font-heading: 'Inter Tight', 'Calibri', sans-serif;
  --font-body: 'Outfit', 'Calibri', sans-serif;

  /* Spacing */
  --section-gap: 100px;
  --content-max: 1200px;
  --content-narrow: 700px;

  /* Nav heights — used by page-content offset and mobile menu positioning.
     Nav padding 20px + ~40px logo = ~80px; scrolled state is ~70px. */
  --nav-height: 80px;
  --nav-height-mobile: 72px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  color: var(--text-body);
  background: var(--bg-primary);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent-light);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--text-primary); }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

h1 { font-size: clamp(36px, 5vw, 60px); }
h2 { font-size: clamp(28px, 3.5vw, 40px); }
h3 { font-size: clamp(20px, 2.5vw, 28px); }
h4 { font-size: 18px; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent);
  margin-bottom: 12px;
}

.body-text {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-body);
  max-width: 600px;
}

/* --- Layout Utilities --- */
.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 40px;
}

.container--narrow {
  max-width: var(--content-narrow);
  margin: 0 auto;
  padding: 0 40px;
}

.section {
  padding: var(--section-gap) 0;
}

.text-center { text-align: center; }

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.3s, padding 0.3s;
}

.nav--scrolled {
  background: var(--bg-primary);
  padding: 14px 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav__logo img {
  height: 80px;
  width: auto;
  border-radius: 6px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav__links a {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  opacity: 0.85;
  transition: opacity 0.2s;
  text-decoration: none;
}
.nav__links a:hover { opacity: 1; }

.nav__cta {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--accent);
  padding: 10px 24px;
  border-radius: 100px;
  text-decoration: none;
  transition: background 0.2s;
}
.nav__cta:hover {
  background: var(--accent-hover);
  color: var(--text-primary);
}

/* --- Buttons --- */
.btn-primary {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--accent);
  padding: 14px 32px;
  border-radius: 100px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.btn-ghost {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 500;
  color: var(--text-primary);
  background: transparent;
  padding: 14px 32px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}
.btn-ghost:hover {
  border-color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.btn-outline {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--accent-light);
  background: transparent;
  padding: 12px 28px;
  border-radius: 4px;
  border: 1px solid rgba(168, 85, 247, 0.6);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: border-color 0.2s, background 0.2s;
}
.btn-outline:hover {
  border-color: var(--accent-light);
  background: rgba(124, 58, 237, 0.1);
  color: var(--accent-light);
}

.text-link {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  color: var(--accent-light);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}
.text-link:hover {
  gap: 10px;
  color: var(--text-primary);
}
.text-link::after { content: '\2192'; }

/* --- Hero (base) --- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0.15) 40%,
    rgba(0, 0, 0, 0.15) 60%,
    rgba(0, 0, 0, 0.7) 100%
  );
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 40px;
  width: 100%;
}

.hero__ctas {
  display: flex;
  gap: 16px;
  margin-top: 28px;
  flex-wrap: wrap;
}

/* --- Stats Counter --- */
.stats {
  display: grid;
  gap: 20px;
  text-align: center;
}

.stats__number {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.stats__label {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* --- Brand Partners --- */
.partners {
  padding: 60px 0;
}

.partners--light {
  background: var(--bg-light);
}

.partners--dark {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.partners__grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.partners__grid img {
  height: 40px;
  width: auto;
  object-fit: contain;
  transition: filter 0.3s, opacity 0.3s;
}

.partners--light .partners__grid img {
  filter: grayscale(100%);
  opacity: 0.85;
}
.partners--light .partners__grid img:hover {
  filter: none;
  opacity: 1;
}

.partners--dark .partners__grid img {
  filter: grayscale(100%) brightness(2);
  opacity: 0.5;
}
.partners--dark .partners__grid img:hover {
  filter: none;
  opacity: 1;
}

/* --- CTA Banner --- */
.cta-banner {
  position: relative;
  padding: 100px 0;
  text-align: center;
  overflow: hidden;
}

.cta-banner__bg {
  position: absolute;
  inset: 0;
}

.cta-banner__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-banner__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
}

.cta-banner__content {
  position: relative;
  z-index: 1;
}

.cta-banner h2 {
  margin-bottom: 28px;
}

/* --- Footer --- */
.footer {
  background: var(--bg-footer);
  padding: 60px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
}

.footer__logo img {
  height: 48px;
  margin-bottom: 16px;
  border-radius: 8px;
}

.footer__contact {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.footer__contact a {
  color: var(--text-body);
  text-decoration: none;
}
.footer__contact a:hover { color: var(--text-primary); }

.footer__social {
  display: flex;
  gap: 16px;
}

.footer__social a {
  color: var(--text-secondary);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s;
}
.footer__social a:hover { color: var(--text-primary); }

.footer__bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 13px;
  color: var(--text-tertiary);
  display: flex;
  justify-content: space-between;
}

/* --- Portfolio Cards (shared base) --- */
.portfolio-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
}

.portfolio-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.portfolio-card:hover img {
  transform: scale(1.03);
}

.portfolio-card__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

.portfolio-card__title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.portfolio-card__tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: var(--accent);
  color: var(--text-primary);
  padding: 3px 10px;
  border-radius: 4px;
  position: absolute;
  top: 12px;
  right: 12px;
}

.portfolio-card__credit {
  position: absolute;
  bottom: 8px;
  right: 12px;
  font-size: 11px;
  font-style: italic;
  color: rgba(255, 255, 255, 0.3);
}

/* --- Service Cards (Direction A) --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--bg-secondary);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.service-card__image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.service-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card__body {
  padding: 24px;
}

.service-card__title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.service-card__desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- Page content band ---
   Wrap H1+body in .page-content so the fixed nav header doesn't clip the
   page heading. The padding-top consumes the nav height plus a comfortable
   gutter so the heading has room to breathe. */
.page-content {
  padding-top: calc(var(--nav-height, 80px) + 48px);
  padding-bottom: 80px;
  min-height: 60vh;
}

@media (max-width: 768px) {
  .page-content {
    padding-top: calc(var(--nav-height-mobile, 72px) + 32px);
    padding-bottom: 64px;
  }
}

/* --- Nav: hamburger toggle (mobile-only) --- */
.nav__toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 8px;
  cursor: pointer;
  width: 44px;
  height: 44px;
  position: relative;
  z-index: 102;
}

.nav__toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  margin: 5px auto;
  transition: transform 0.25s, opacity 0.2s;
  border-radius: 2px;
}

body.nav-open .nav__toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
body.nav-open .nav__toggle-bar:nth-child(2) {
  opacity: 0;
}
body.nav-open .nav__toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* The .nav__menu wrapper is a no-op on desktop — it just contains the existing
   ul.nav__links — and becomes a slide-down panel below the breakpoint. */
.nav__backdrop {
  display: none;
}

/* Prevent body scroll while mobile menu is open */
body.nav-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  .nav__toggle { display: block; }

  /* Hide the header CTA on mobile — the CTA is inside the slide-down menu */
  .nav__cta--header { display: none; }

  .nav__menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    padding: calc(var(--nav-height-mobile, 72px) + 16px) 32px 40px;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    z-index: 101;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
  }

  body.nav-open .nav__menu {
    transform: translateY(0);
  }

  .nav__menu .nav__links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .nav__menu .nav__links li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav__menu .nav__links li:last-child {
    border-bottom: 0;
  }

  .nav__menu .nav__links a {
    display: block;
    padding: 16px 4px;
    font-size: 18px;
    color: var(--text-primary);
    opacity: 0.9;
  }

  .nav__menu .nav__cta--menu {
    display: inline-block;
    margin-top: 16px;
    padding: 14px 32px;
    font-size: 16px;
  }

  .nav__menu-cta-item {
    border-bottom: 0 !important;
    text-align: center;
    padding-top: 8px;
  }

  /* Dark backdrop covering the rest of the viewport */
  .nav__backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }

  body.nav-open .nav__backdrop {
    opacity: 1;
    pointer-events: auto;
  }
}

/* Desktop: keep the menu wrapper inline so the ul renders normally */
@media (min-width: 769px) {
  .nav__menu .nav__menu-cta-item {
    display: none; /* CTA inside menu duplicated — only show on mobile */
  }
}

/* --- Contact banner: shown when ?production=<slug> deep-link --- */
.contact-banner {
  border-left: 3px solid var(--accent);
  background: var(--accent-subtle);
  padding: 14px 18px;
  border-radius: 0 8px 8px 0;
  margin: 0 0 28px;
}

.contact-banner p {
  margin: 0;
  font-size: 15px;
  color: var(--text-body);
}

.contact-banner strong {
  color: var(--text-primary);
}

/* --- Contact details block (above enquiry form on /contact/) --- */
.contact-details {
  margin: 0 0 36px;
  padding: 24px 28px;
  border: 1px solid var(--border-subtle, #e6e6e6);
  border-radius: 10px;
  background: var(--surface-subtle, #fafafa);
}

.contact-details__list {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px 28px;
}

.contact-details__row {
  margin: 0;
}

.contact-details__row dt {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted, #777);
  margin: 0 0 4px;
  font-weight: 600;
}

.contact-details__row dd {
  margin: 0;
  color: var(--text-primary);
  font-size: 15px;
  line-height: 1.45;
}

.contact-details__row a {
  color: var(--text-primary);
  text-decoration: none;
  border-bottom: 1px solid var(--accent, currentColor);
}

.contact-details__row a:hover {
  color: var(--accent, currentColor);
}

.contact-details__role {
  color: var(--text-muted, #777);
  font-weight: 400;
  font-size: 11px;
}

/* --- Enquiry form --- */
.enquiry-form .form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.enquiry-form label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.enquiry-form .form-field__hint {
  font-weight: 400;
  color: var(--text-tertiary);
  margin-left: 4px;
}

.enquiry-form input[type="text"],
.enquiry-form input[type="email"],
.enquiry-form input[type="tel"],
.enquiry-form input:not([type]),
.enquiry-form textarea,
.enquiry-form select {
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  padding: 12px 14px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  width: 100%;
  transition: border-color 0.2s, background 0.2s;
}

.enquiry-form input:focus,
.enquiry-form textarea:focus,
.enquiry-form select:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-surface);
}

.enquiry-form textarea {
  resize: vertical;
  min-height: 140px;
  font-family: var(--font-body);
}

.enquiry-form .form-errors {
  color: #f87171;
  font-size: 13px;
}

.enquiry-form ul.form-errors {
  list-style: none;
  padding: 12px 14px;
  background: rgba(239, 68, 68, 0.08);
  border-left: 3px solid #ef4444;
  border-radius: 0 6px 6px 0;
  margin-bottom: 20px;
}

.enquiry-form button[type="submit"] {
  margin-top: 12px;
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

/* --- Portfolio filter selects: same dark theme as enquiry inputs --- */
.portfolio-filters .form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 180px;
}

.portfolio-filters select {
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  padding: 10px 14px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  cursor: pointer;
}

.portfolio-filters label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.portfolio-filters__clear,
.portfolio-filters__clear-inline {
  color: var(--accent-light);
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.portfolio-filters__clear:hover,
.portfolio-filters__clear-inline:hover {
  color: var(--text-primary);
}

/* --- Partner logo rendering ---
   The source files have white/light backgrounds. On the light strip, multiply
   blends them into the page; on the dark strip, screen brightens them. Both
   states cap height + width so dramatically-different source aspect ratios
   don't break the grid. */
.partners__grid img {
  height: 32px;
  max-width: 140px;
  width: auto;
  object-fit: contain;
  transition: filter 0.3s, opacity 0.3s;
}

.partners--light .partners__grid img {
  filter: grayscale(100%);
  opacity: 0.75;
  mix-blend-mode: multiply;
}
.partners--light .partners__grid img:hover {
  filter: none;
  opacity: 1;
  mix-blend-mode: normal;
}

.partners--dark .partners__grid img {
  filter: grayscale(100%) brightness(1.6);
  opacity: 0.7;
  mix-blend-mode: screen;
}
.partners--dark .partners__grid img:hover {
  filter: none;
  opacity: 1;
  mix-blend-mode: normal;
}

/* --- Footer: kill default bullets --- */
.footer ul,
.footer__nav-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* --- Portfolio listing header --- */
.portfolio-page {
  padding-top: calc(var(--nav-height, 80px) + 48px);
  padding-bottom: 80px;
}

.portfolio-page__header {
  margin-bottom: 32px;
}

.portfolio-page__header h1 {
  margin-bottom: 8px;
}

.portfolio-page__header p {
  color: var(--text-secondary);
  font-size: 15px;
}

.portfolio-filters {
  margin-bottom: 32px;
}

.portfolio-filters__row {
  display: flex;
  align-items: end;
  gap: 20px;
  flex-wrap: wrap;
}

.portfolio-load-more {
  text-align: center;
  margin-top: 40px;
}

.portfolio-load-more .btn-secondary {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--accent-light);
  background: transparent;
  padding: 12px 28px;
  border-radius: 100px;
  border: 1px solid rgba(168, 85, 247, 0.5);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.portfolio-load-more .btn-secondary:hover {
  border-color: var(--accent-light);
  background: rgba(124, 58, 237, 0.1);
}

.portfolio-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .portfolio-page {
    padding-top: calc(var(--nav-height-mobile, 72px) + 32px);
  }

  .portfolio-filters__row {
    flex-direction: column;
    align-items: stretch;
  }

  .portfolio-filters .form-field {
    min-width: 0;
  }
}

/* --- Responsive (basic) --- */
@media (max-width: 768px) {
  :root {
    --section-gap: 60px;
  }

  /* The old rule simply hid .nav__links; now the hamburger handles the
     toggling and .nav__menu is the slide-down panel. */
  .nav > .nav__links { display: none; }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .hero__ctas {
    flex-direction: column;
  }

  .footer__inner {
    flex-direction: column;
  }

  .partners__grid {
    gap: 24px;
  }

  .partners__grid img {
    height: 28px;
    max-width: 120px;
  }
}

/* =========================================================================
   Production detail page (/work/<slug>/)
   ========================================================================= */

.production-detail__hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 60vh;
  max-height: 75vh;
  overflow: hidden;
  background: var(--bg-primary);
}

.production-detail__hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.production-detail__hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(0, 0, 0, 0.2) 35%,
    rgba(0, 0, 0, 0.4) 65%,
    rgba(0, 0, 0, 0.92) 100%
  );
}

.production-detail__hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 48px 40px 56px;
  color: var(--text-primary);
}

.production-detail__hero-content .portfolio-card__tag {
  position: static;
  display: inline-block;
  margin-bottom: 18px;
}

.production-detail__hero-content h1 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.05;
  letter-spacing: -1px;
  margin: 0 0 18px;
  max-width: 900px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
}

.production-detail__lede {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.5;
  color: var(--text-body);
  max-width: 760px;
  margin: 0 0 24px;
}

.production-detail__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin: 0;
  padding: 0;
}

.production-detail__meta > div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.production-detail__meta dt {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin: 0 0 4px;
}

.production-detail__meta dd {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  margin: 0;
}

/* --- Body band underneath the hero --- */
.production-detail__body {
  padding: 64px 0 32px;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-body);
}

.production-detail__body h2,
.production-detail__body h3 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  margin: 1.6em 0 0.5em;
}

.production-detail__body p {
  margin: 0 0 1.1em;
}

.production-detail__body a {
  color: var(--accent-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.production-detail__body a:hover {
  color: var(--text-primary);
}

.production-detail__body img,
.production-detail__body figure {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1.5em 0;
}

.production-detail__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
}

.portfolio-tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-subtle);
  color: var(--accent-light);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.portfolio-tag:hover {
  background: var(--accent);
  color: var(--text-primary);
}

/* --- Gallery --- */
.production-detail__gallery {
  padding: 32px 0 48px;
}

.production-detail__gallery h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 28px;
  color: var(--text-primary);
  margin: 0 0 24px;
}

.production-detail__gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.production-detail__gallery-item {
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--bg-secondary);
}

.production-detail__gallery-item img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.production-detail__gallery-item:hover img {
  transform: scale(1.04);
}

.production-detail__gallery-item figcaption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-secondary);
}

/* --- Enquire CTA --- */
.production-detail__enquire {
  text-align: center;
  padding: 32px 0 64px;
}

/* --- Related strip --- */
.related-productions {
  padding: 48px 0 80px;
  background: var(--bg-secondary);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.related-productions h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 24px;
  color: var(--text-primary);
  margin: 0 0 24px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .production-detail__hero {
    min-height: 55vh;
    max-height: 70vh;
  }

  .production-detail__hero-content {
    padding: 32px 24px 40px;
  }

  .production-detail__hero-content h1 {
    font-size: clamp(28px, 7vw, 40px);
  }

  .production-detail__lede {
    font-size: 16px;
  }

  .production-detail__meta {
    gap: 20px;
  }

  .production-detail__body {
    padding: 40px 0 24px;
    font-size: 16px;
  }

  .production-detail__gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .production-detail__gallery-item img {
    height: 160px;
  }
}

/* Gallery tile is now a <button> — strip the user-agent button styling. */
.production-detail__gallery-item {
  border: 0;
  padding: 0;
  background: var(--bg-secondary);
  cursor: pointer;
  display: block;
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
}

.production-detail__gallery-item:hover,
.production-detail__gallery-item:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* =========================================================================
   Lightbox (production detail gallery)
   ========================================================================= */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.94);
  padding: 24px 64px;
  cursor: zoom-out;
}

.lightbox[hidden] {
  display: none;
}

.lightbox__figure {
  position: relative;
  margin: 0;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  cursor: default;
}

.lightbox__image {
  display: block;
  max-width: 90vw;
  max-height: 82vh;
  object-fit: contain;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.6);
  border-radius: 4px;
}

.lightbox__caption {
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: 14px;
  text-align: center;
  max-width: 800px;
  margin: 0;
}

.lightbox__caption[hidden] {
  display: none;
}

.lightbox__count {
  position: absolute;
  top: 24px;
  left: 24px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1.2px;
  color: var(--text-secondary);
  pointer-events: none;
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  background: rgba(0, 0, 0, 0.4);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.15);
  width: 48px;
  height: 48px;
  border-radius: 999px;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}

.lightbox__close:hover,
.lightbox__nav:hover,
.lightbox__close:focus-visible,
.lightbox__nav:focus-visible {
  background: var(--accent);
  border-color: var(--accent);
  outline: none;
  transform: scale(1.05);
}

.lightbox__close {
  top: 20px;
  right: 24px;
  font-size: 24px;
}

.lightbox__nav--prev {
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__nav--prev:hover,
.lightbox__nav--prev:focus-visible {
  transform: translateY(-50%) scale(1.05);
}

.lightbox__nav--next {
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__nav--next:hover,
.lightbox__nav--next:focus-visible {
  transform: translateY(-50%) scale(1.05);
}

@media (max-width: 600px) {
  .lightbox {
    padding: 16px;
  }

  .lightbox__image {
    max-width: 100%;
    max-height: 75vh;
  }

  .lightbox__nav {
    width: 40px;
    height: 40px;
    font-size: 22px;
  }

  .lightbox__nav--prev { left: 8px; }
  .lightbox__nav--next { right: 8px; }
  .lightbox__close { top: 12px; right: 12px; }
  .lightbox__count { top: 12px; left: 12px; }
}
