/* ============================================================
   RAIDEN FERNANDES — PORTFOLIO STYLESHEET
   High-end theater aesthetic | Mobile-first responsive
   ============================================================ */

/* ---- CSS Custom Properties ---- */
:root {
  /* Color palette */
  --color-bg:          #0c0c10;
  --color-surface:     #13131a;
  --color-surface-2:   #1a1a24;
  --color-border:      #272733;
  --color-gold:        #c9a84c;
  --color-gold-light:  #e0c06a;
  --color-gold-dim:    rgba(201, 168, 76, 0.18);
  --color-gold-glow:   rgba(201, 168, 76, 0.08);
  --color-text:        #f0ebe0;
  --color-text-muted:  #949082;
  --color-text-faint:  #55544e;

  /* Typography */
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  2rem;
  --space-lg:  4rem;
  --space-xl:  7rem;

  /* Layout */
  --max-width: 1240px;
  --nav-h:     72px;

  /* Motion */
  --ease:      cubic-bezier(0.4, 0, 0.2, 1);
  --duration:  0.3s;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  line-height: 1.7;
  font-feature-settings: 'kern' 1, 'liga' 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* Premium selection accent */
::selection {
  background: var(--color-gold);
  color: #0c0c10;
}

/* Balance headline line breaks for elegant ragging */
h1, h2, h3 { text-wrap: balance; }

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

a {
  color: var(--color-gold);
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}

a:hover { color: var(--color-gold-light); }

a:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
  border-radius: 2px;
}

ul[role="list"] { list-style: none; }

/* ---- Layout Utilities ---- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* Offset anchor jumps so the fixed nav never covers a section heading */
#hero, #about, #credits, #media, #contact {
  scroll-margin-top: var(--nav-h);
}

/* ---- Scroll Reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Cascade stagger for grouped siblings */
.section-header.reveal             { transition-delay: 0s; }
.about-bio.reveal                  { transition-delay: 0.1s; }
.about-credentials.reveal          { transition-delay: 0.2s; }
.credits-grid .reveal:nth-child(3n+2) { transition-delay: 0.08s; }
.credits-grid .reveal:nth-child(3n+3) { transition-delay: 0.16s; }

/* Playbill tiles cascade left-to-right */
.playbills-grid .reveal:nth-child(2) { transition-delay: 0.05s; }
.playbills-grid .reveal:nth-child(3) { transition-delay: 0.10s; }
.playbills-grid .reveal:nth-child(4) { transition-delay: 0.15s; }
.playbills-grid .reveal:nth-child(5) { transition-delay: 0.20s; }
.playbills-grid .reveal:nth-child(6) { transition-delay: 0.25s; }
.playbills-grid .reveal:nth-child(7) { transition-delay: 0.30s; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  border-radius: 2px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--duration) var(--ease),
              color var(--duration) var(--ease),
              border-color var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease);
  white-space: nowrap;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--color-gold);
  color: #0c0c10;
  border-color: var(--color-gold);
}

.btn-primary:hover {
  background: var(--color-gold-light);
  border-color: var(--color-gold-light);
  color: #0c0c10;
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.3);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn-ghost:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
}

.btn-playbill {
  background: transparent;
  color: var(--color-gold);
  border-color: var(--color-gold-dim);
  font-size: 0.75rem;
  padding: 0.5rem 1.25rem;
}

.btn-playbill:hover {
  background: var(--color-gold-dim);
  color: var(--color-gold-light);
  border-color: var(--color-gold);
}

/* ---- Section Shared ---- */
.section-header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.section-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 0.75rem;
}

.section-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.15;
  letter-spacing: -0.015em;
}

/* ================================================================
   NAVIGATION
   ================================================================ */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease);
}

.site-nav.scrolled {
  background: rgba(12, 12, 16, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--color-border);
}

.nav-inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: 0.04em;
  transition: color var(--duration) var(--ease);
}

.nav-brand:hover { color: var(--color-gold); }

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

.nav-links a {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  transition: color var(--duration) var(--ease);
}

.nav-links a:hover { color: var(--color-gold); }

/* Hamburger toggle button — visible on mobile only */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 110;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--color-text);
  border-radius: 1px;
  transition: transform var(--duration) var(--ease),
              opacity var(--duration) var(--ease),
              background var(--duration) var(--ease);
}

/* Animate hamburger to ✕ when open */
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ================================================================
   HERO
   ================================================================ */
.section-hero {
  position: relative;
  min-height: 100svh;
  min-height: 100vh; /* fallback */
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--space-lg);
  padding: calc(var(--nav-h) + var(--space-lg)) var(--space-md) var(--space-lg);
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Full-bleed atmospheric backdrop */
.hero-backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 65% at 72% 48%, rgba(201, 168, 76, 0.07) 0%, transparent 65%),
    radial-gradient(ellipse 35% 45% at 25% 75%, rgba(90, 45, 130, 0.08) 0%, transparent 55%),
    var(--color-bg);
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-gold);
}

.hero-name {
  font-family: var(--font-serif);
  font-size: clamp(3.2rem, 2rem + 5.4vw, 5.5rem);
  font-weight: 700;
  line-height: 0.98;
  color: var(--color-text);
  letter-spacing: -0.025em;
}

.hero-name span {
  color: var(--color-gold);
  font-style: italic;
}

.hero-tagline {
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-top: 0.25rem;
}

.hero-cta {
  display: flex;
  gap: var(--space-sm);
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

/* Headshot column */
.hero-headshot {
  display: flex;
  justify-content: center;
}

.headshot-frame {
  width: min(320px, 100%);
  aspect-ratio: 3/4;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
}

/* Inner gold inset border — decorative */
.headshot-frame::before {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid var(--color-gold-dim);
  pointer-events: none;
  z-index: 2;
}

.headshot-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.headshot-placeholder {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem;
  color: var(--color-text-faint);
  background: var(--color-surface);
}

.headshot-placeholder svg {
  width: 64px;
  height: 64px;
  color: var(--color-border);
}

.headshot-placeholder span {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-style: italic;
  color: var(--color-text-muted);
}

.headshot-placeholder em {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-style: normal;
  color: var(--color-text-faint);
  font-family: var(--font-sans);
}

/* ================================================================
   ABOUT
   ================================================================ */
.section-about {
  padding: var(--space-xl) 0;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-lg);
  align-items: start;
}

.about-lead {
  font-size: 1.1rem;
  line-height: 1.82;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

.about-bio p {
  color: var(--color-text-muted);
  font-size: 0.97rem;
  margin-bottom: 0.75rem;
}

.about-bio p:last-child { margin-bottom: 0; }

.about-credentials {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.credential-card {
  padding: 1.1rem 1.4rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-gold);
  transition: border-left-color var(--duration) var(--ease);
}

.credential-card:hover { border-left-color: var(--color-gold-light); }

.credential-card h3 {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 0.45rem;
}

.credential-card p {
  font-size: 0.92rem;
  color: var(--color-text);
  font-weight: 500;
  line-height: 1.5;
}

/* Stat card variant */
.stat-card {
  text-align: center;
  padding: 1.4rem;
  border-left-width: 1px;
  border-top: 3px solid var(--color-gold);
  border-left-color: var(--color-border);
  background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-surface-2) 100%);
}

.stat-card h3 { text-align: left; }

.stat-number {
  font-family: var(--font-serif);
  font-size: 3.5rem !important;
  font-weight: 700;
  color: var(--color-gold) !important;
  line-height: 1;
  margin: 0.25rem 0 0.1rem;
}

.stat-label {
  font-size: 0.7rem !important;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted) !important;
  font-weight: 400;
}

/* ================================================================
   PERFORMANCE CREDITS
   ================================================================ */
.section-credits {
  padding: var(--space-xl) 0;
}

.credits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
}

.production-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform var(--duration) var(--ease),
              border-color var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease);
  position: relative;
}

.production-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-gold-dim);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.55), 0 0 0 1px var(--color-gold-dim);
  z-index: 2;
}

/* Production image area */
.production-image {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--color-surface-2);
}

.production-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0e0d18;
}

/* Placeholder overlays the image until it loads; hidden on successful onload */
.image-placeholder {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: linear-gradient(145deg, #131320 0%, #1c1830 50%, #131320 100%);
  text-align: center;
  padding: 1rem;
}

.placeholder-icon {
  font-size: 1.8rem;
  color: var(--color-border);
  display: block;
  margin-bottom: 0.25rem;
}

.image-placeholder span {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-style: italic;
  color: var(--color-text-muted);
  line-height: 1.4;
}

.image-placeholder em {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-style: normal;
  color: var(--color-text-faint);
  font-family: var(--font-sans);
}

/* Production info panel */
.production-info {
  padding: 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}

.production-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.3;
}

.production-role {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-gold);
}

.production-studio {
  font-size: 0.75rem;
  color: var(--color-text-faint);
  letter-spacing: 0.04em;
  margin-top: 0.1rem;
}

.production-desc {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.68;
  margin-top: 0.5rem;
  flex: 1;
}

.production-actions {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

/* ================================================================
   MEDIA & PLAYBILLS
   ================================================================ */
.section-media {
  padding: var(--space-xl) 0;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

/* Info notice banner */
.media-notice {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.4rem 1.6rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-gold);
  margin-bottom: var(--space-lg);
}

.notice-icon {
  font-size: 1.2rem;
  color: var(--color-gold);
  line-height: 1.6;
  flex-shrink: 0;
}

.notice-body strong {
  display: block;
  font-size: 0.9rem;
  color: var(--color-text);
  margin-bottom: 0.4rem;
}

.notice-body p {
  font-size: 0.86rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

.notice-body code {
  background: var(--color-surface-2);
  padding: 0.1em 0.4em;
  border-radius: 3px;
  font-size: 0.82em;
  color: var(--color-gold);
  font-family: 'Courier New', Courier, monospace;
}

/* Playbills grid */
.playbills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
  gap: 1.25rem;
}

.playbill-tile {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  align-items: center;
  text-align: center;
}

/* Playbill cover — styled like a playbill booklet spine */
.playbill-cover {
  width: 100%;
  aspect-ratio: 2/3;
  background: linear-gradient(160deg, #1e1a2e 0%, #120f1c 100%);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  position: relative;
  overflow: hidden;
  transition: border-color var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease);
}

/* Gold inset border */
.playbill-cover::before {
  content: '';
  position: absolute;
  inset: 7px;
  border: 1px solid var(--color-gold-dim);
  pointer-events: none;
  transition: border-color var(--duration) var(--ease);
}

/* Subtle gold corner accents */
.playbill-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, var(--color-gold-glow) 0%, transparent 70%);
  pointer-events: none;
}

.playbill-tile:hover .playbill-cover {
  border-color: var(--color-gold);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4), 0 0 0 1px var(--color-gold-dim);
}

.playbill-tile:hover .playbill-cover::before {
  border-color: var(--color-gold);
}

.playbill-cover span {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.35;
  position: relative;
  z-index: 1;
}

.playbill-link {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-gold);
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--color-gold-dim);
  border-radius: 2px;
  transition: background var(--duration) var(--ease),
              color var(--duration) var(--ease),
              border-color var(--duration) var(--ease);
}

.playbill-link:hover {
  background: var(--color-gold-dim);
  color: var(--color-gold-light);
  border-color: var(--color-gold);
}

/* ================================================================
   CONTACT
   ================================================================ */
.section-contact {
  padding: var(--space-xl) 0;
  text-align: center;
}

.contact-body {
  max-width: 580px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.contact-lead {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  line-height: 1.78;
}

.contact-details {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.contact-item {
  padding: 1rem 1.25rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  text-align: left;
}

.contact-item strong {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 0.4rem;
}

.contact-item span {
  font-size: 0.9rem;
  color: var(--color-text);
  font-weight: 500;
}

.contact-btn {
  font-size: 0.82rem;
  padding: 0.9rem 2.5rem;
}

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer {
  padding: var(--space-lg) 0 var(--space-md);
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.footer-name {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.4rem;
}

.footer-tagline {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin-bottom: 1.5rem;
}

.footer-nav {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.footer-nav a {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  transition: color var(--duration) var(--ease);
}

.footer-nav a:hover { color: var(--color-gold); }

.footer-copy {
  font-size: 0.72rem;
  color: var(--color-text-faint);
}

/* ================================================================
   RESPONSIVE — TABLET (≤ 960px)
   ================================================================ */
@media (max-width: 960px) {

  .section-hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: calc(var(--nav-h) + var(--space-md));
    gap: var(--space-md);
  }

  .hero-content { align-items: center; }

  .hero-headshot {
    order: -1;
    margin-bottom: var(--space-xs);
  }

  .headshot-frame { width: 200px; }

  .hero-cta { justify-content: center; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .credits-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }

  .contact-details { grid-template-columns: 1fr; }
}

/* ================================================================
   RESPONSIVE — MOBILE (≤ 600px)
   ================================================================ */
@media (max-width: 600px) {

  :root {
    --space-lg: 3rem;
    --space-xl: 4.5rem;
  }

  /* Tighter gutters reclaim width on narrow phones */
  .container,
  .nav-inner { padding-left: 1.25rem; padding-right: 1.25rem; }

  .section-hero {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  /* Full-screen mobile nav overlay */
  .nav-links {
    display: none;
    position: fixed;
    inset: var(--nav-h) 0 0 0;
    background: rgba(12, 12, 16, 0.98);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    list-style: none;
  }

  .nav-links.open { display: flex; }

  .nav-links a {
    font-size: 1.1rem;
    letter-spacing: 0.14em;
    color: var(--color-text);
  }

  .nav-toggle { display: flex; }

  .hero-name { font-size: clamp(2.8rem, 11vw, 3.5rem); }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 280px;
  }

  .hero-cta .btn { justify-content: center; }

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

  .playbills-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }

  .media-notice {
    flex-direction: column;
    gap: 0.75rem;
  }

  .footer-nav {
    gap: 1.25rem;
    flex-wrap: wrap;
  }
}

/* ================================================================
   RESPONSIVE — LARGE (≥ 1400px)
   ================================================================ */
@media (min-width: 1400px) {
  .credits-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .playbills-grid {
    grid-template-columns: repeat(7, 1fr);
  }
}

/* ================================================================
   ACCESSIBILITY — Reduced motion
   ================================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  html { scroll-behavior: auto; }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ================================================================
   ACCESSIBILITY — High contrast mode adjustments
   ================================================================ */
@media (forced-colors: active) {
  .btn, .playbill-link, .credential-card, .contact-item {
    border: 1px solid ButtonText;
  }

  .headshot-frame, .playbill-cover {
    border: 1px solid ButtonText;
  }
}

/* ================================================================
   PLAYBILL TOASTER MODAL
   ================================================================ */
body.modal-open { overflow: hidden; }

.pb-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-end;
}

.pb-modal[hidden] { display: none; }

/* Dark blurred backdrop */
.pb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 6, 9, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

.pb-modal.open .pb-backdrop { opacity: 1; }

/* Slide-up sheet */
.pb-sheet {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 92svh;
  height: 92vh; /* fallback */
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.32, 0, 0.15, 1);
  overflow: hidden;
}

.pb-modal.open .pb-sheet { transform: translateY(0); }

/* Drag handle visual cue */
.pb-sheet::before {
  content: '';
  display: block;
  width: 40px;
  height: 4px;
  background: var(--color-border);
  border-radius: 2px;
  margin: 12px auto 0;
  flex-shrink: 0;
}

/* Header bar */
.pb-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem 1rem;
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
}

.pb-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

.pb-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  color: var(--color-text-muted);
  font-size: 0.8rem;
  cursor: pointer;
  transition: background var(--duration) var(--ease),
              color var(--duration) var(--ease);
  flex-shrink: 0;
}

.pb-close:hover {
  background: var(--color-border);
  color: var(--color-text);
}

.pb-close:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

/* iframe fills remaining height */
.pb-body {
  flex: 1;
  overflow: hidden;
  background: var(--color-bg);
}

.pb-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Respect reduced motion — instant open, no slide */
@media (prefers-reduced-motion: reduce) {
  .pb-sheet   { transition: none; }
  .pb-backdrop { transition: none; }
}
