@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Inter:wght@300;400;600&display=swap');

:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-tertiary: #1a1a1a;
  --accent-burgundy: #800020;
  --accent-brass: #b5a642;
  --accent-brass-dim: rgba(181, 166, 66, 0.3);
  --text-ivory: #f5f5dc;
  --text-muted: #a09a8e;
  --text-dark: #0a0a0a;
  --transition-base: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --shadow-brass: 0 4px 24px rgba(181, 166, 66, 0.2);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-ivory);
  line-height: 1.6;
  overflow-x: hidden;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
  color: inherit;
}

a {
  color: var(--accent-brass);
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover {
  color: var(--text-ivory);
}

.container {
  width: min(92%, 1200px);
  margin-inline: auto;
}

.section {
  padding-block: clamp(4rem, 8vh, 7rem);
}

.will-animate {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.will-animate.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 2px solid currentColor;
  border-radius: 2px;
  cursor: pointer;
  transition: all var(--transition-base);
}

.btn-primary {
  border-color: var(--accent-brass);
  color: var(--accent-brass);
  background: transparent;
}

.btn-primary:hover {
  background: var(--accent-brass);
  color: var(--text-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-brass);
}

.btn-full {
  width: 100%;
}

h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  line-height: 1.15;
  color: var(--text-ivory);
}

h1 {
  font-size: clamp(2.5rem, 5vw + 1rem, 4.5rem);
}

h2 {
  font-size: clamp(1.8rem, 3vw + 0.5rem, 3rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: clamp(1.2rem, 1.5vw + 0.5rem, 1.5rem);
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 50ch;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding-block: 1.25rem;
  background: linear-gradient(to bottom, rgba(10,10,10,0.95) 0%, rgba(10,10,10,0.2) 80%, transparent 100%);
  transition: background 0.3s ease;
}

.site-header.scrolled {
  background: rgba(10,10,10,0.98);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--text-ivory);
  letter-spacing: -0.02em;
}

.logo span {
  color: var(--accent-brass);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-ivory);
  position: relative;
  transition: background 0.2s;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--text-ivory);
  transition: all 0.3s;
}

.hamburger::before {
  top: -7px;
}

.hamburger::after {
  top: 7px;
}

.nav-open .hamburger {
  background: transparent;
}

.nav-open .hamburger::before {
  transform: translateY(7px) rotate(45deg);
}

.nav-open .hamburger::after {
  transform: translateY(-7px) rotate(-45deg);
}

.primary-nav ul {
  display: flex;
  gap: clamp(1.5rem, 3vw, 3rem);
  list-style: none;
}

.primary-nav a {
  position: relative;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding-block: 0.25rem;
}

.primary-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent-brass);
  transition: all var(--transition-base);
  transform: translateX(-50%);
}

.primary-nav a:hover {
  color: var(--text-ivory);
}

.primary-nav a:hover::after {
  width: 100%;
}

@media (max-width: 767px) {
  .nav-toggle {
    display: block;
    z-index: 102;
  }

  .primary-nav {
    position: fixed;
    inset: 0 0 0 30%;
    background: var(--bg-secondary);
    padding: 6rem 2rem 2rem;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    z-index: 101;
    border-left: 1px solid #1f1f1f;
  }

  .nav-open .primary-nav {
    transform: translateX(0);
  }

  .primary-nav ul {
    flex-direction: column;
    gap: 1.5rem;
  }
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
}

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

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  animation: subtleZoom 20s ease-in-out infinite alternate;
}

@keyframes subtleZoom {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 35%, rgba(10,10,10,0.3) 0%, rgba(10,10,10,0.85) 60%, var(--bg-primary) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 2rem;
}

.hero-title {
  margin-bottom: 1.25rem;
  text-shadow: 0 4px 30px rgba(0,0,0,0.8);
  font-weight: 700;
}

.hero-lead {
  font-size: clamp(1rem, 1.2vw + 0.5rem, 1.25rem);
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 55ch;
  margin-inline: auto;
}

.curtain {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: linear-gradient(180deg, #3a0010 0%, #800020 40%, #61011c 60%, #3a0010 100%);
  transform: translateY(0);
  transition: transform 1.4s cubic-bezier(0.65, 0, 0.35, 1);
  pointer-events: none;
}

.curtain.risen {
  transform: translateY(-100%);
}

.curtain::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40px;
  background: repeating-linear-gradient(90deg, #b5a642 0px, #997f2e 10px, #b5a642 20px);
  opacity: 0.8;
}

.workshop {
  background: var(--bg-secondary);
  border-top: 1px solid #1a1a1a;
}

.grid-two-col {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.workshop-figure {
  margin: 0;
  position: relative;
}

.workshop-figure img {
  border-radius: 2px;
  filter: grayscale(30%) contrast(110%);
  transition: filter var(--transition-base);
}

.workshop-figure:hover img {
  filter: grayscale(0%) contrast(100%);
}

.workshop-figure figcaption {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
}

.classes {
  background: var(--bg-primary);
}

.grid-four {
  display: grid;
  gap: 1.5rem;
}

.class-card {
  background: var(--bg-secondary);
  border: 1px solid #1f1f1f;
  border-radius: 2px;
  overflow: hidden;
  transition: all var(--transition-base);
}

.class-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-brass);
  box-shadow: var(--shadow-brass);
}

.class-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  opacity: 0.85;
  transition: opacity var(--transition-base);
}

.class-card:hover img {
  opacity: 1;
}

.card-content {
  padding: 1.5rem;
}

.card-content h3 {
  color: var(--accent-brass);
  font-size: 1.15rem;
}

.card-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.stage-lab {
  background: var(--bg-secondary);
  border-top: 1px solid #1a1a1a;
}

.lab-interface {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.timeline-container {
  background: var(--bg-tertiary);
  border: 1px solid #222;
  border-radius: 2px;
  padding: 1.5rem;
}

.timeline-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-brass);
  margin-bottom: 1rem;
}

.timeline-track {
  position: relative;
  display: flex;
  align-items: center;
  height: 60px;
  background: #111;
  border: 1px solid #222;
  border-radius: 2px;
  padding-inline: 0;
}

.timeline-scene {
  flex: 1;
  text-align: center;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.5rem;
  transition: color 0.3s, background 0.3s;
  user-select: none;
  border-bottom: 2px solid transparent;
}

.timeline-scene:hover {
  color: var(--text-ivory);
  background: rgba(181,166,66,0.05);
}

.timeline-scene.active {
  color: var(--text-ivory);
  font-weight: 600;
  border-bottom-color: var(--accent-brass);
}

.playhead {
  position: absolute;
  top: -8px;
  bottom: -8px;
  left: 8.33%;
  width: 2px;
  background: var(--accent-brass);
  transform: translateX(-50%);
  pointer-events: none;
  transition: left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.playhead-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  background: var(--bg-primary);
  border: 2px solid var(--accent-brass);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  cursor: grab;
  box-shadow: 0 0 12px rgba(181,166,66,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}

.playhead-knob:hover {
  transform: translate(-50%, -50%) scale(1.15);
  box-shadow: 0 0 20px rgba(181,166,66,0.6);
}

.playhead-knob:active {
  cursor: grabbing;
}

.scene-status {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}

.lab-workspace {
  align-items: start;
}

.stage-plan h3,
.production-panel h3,
.projection-preview h3 {
  font-family: 'Playfair Display', serif;
  color: var(--text-ivory);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.stage-canvas-wrapper {
  background: var(--bg-primary);
  border: 1px solid #222;
  border-radius: 2px;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.stage-svg {
  width: 100%;
  height: auto;
  max-width: 640px;
  margin-inline: auto;
}

.stage-svg text {
  font-family: 'Inter', sans-serif;
  fill: var(--text-muted);
  font-size: 12px;
  pointer-events: none;
}

.light-fixture {
  fill: #222;
  stroke: var(--accent-brass);
  stroke-width: 1;
  cursor: pointer;
  transition: fill 0.5s ease, filter 0.5s ease, transform 0.3s ease;
}

.light-fixture:hover {
  fill: var(--accent-brass);
  transform: scale(1.3);
  transform-box: fill-box;
  transform-origin: center;
}

.actor-node,
.scenic-node {
  fill: #151515;
  stroke: var(--text-muted);
  stroke-width: 1;
  transition: all 0.5s ease;
}

.projection-surface {
  fill: #222;
  stroke: var(--accent-brass);
  stroke-width: 1;
  transition: fill 0.5s ease;
}

.stage-svg.state-warm-wash .light-fixture {
  fill: #ffaa44;
  filter: drop-shadow(0 0 8px #ffaa44);
}

.stage-svg.state-warm-wash .actor-node,
.stage-svg.state-warm-wash .scenic-node {
  fill: #3d2e1a;
  stroke: #ffddaa;
}

.stage-svg.state-warm-wash .projection-surface {
  fill: #4a3a2a;
}

.stage-svg.state-cold-spot .light-fixture {
  fill: #1a1a1a;
  filter: none;
}

.stage-svg.state-cold-spot .light-fixture[data-light="top"] {
  fill: #aaddff;
  filter: drop-shadow(0 0 12px #aaddff);
}

.stage-svg.state-cold-spot .light-fixture[data-light="side-l"],
.stage-svg.state-cold-spot .light-fixture[data-light="side-r"] {
  fill: #88bbee;
  filter: drop-shadow(0 0 6px #88bbee);
}

.stage-svg.state-cold-spot .actor-node {
  fill: #1e2e3e;
  stroke: #cceeff;
}

.stage-svg.state-cold-spot .scenic-node {
  fill: #16202a;
  stroke: #88bbee;
}

.stage-svg.state-gobo-breakup .light-fixture {
  fill: #5a8a5a;
  filter: drop-shadow(0 0 6px #5a8a5a);
}

.stage-svg.state-gobo-breakup .actor-node {
  stroke: #99cc99;
}

.stage-svg.state-gobo-breakup .projection-surface {
  fill: #2a3a2a;
}

.stage-svg.state-blackout .light-fixture {
  fill: #0e0e0e;
  filter: none;
}

.stage-svg.state-blackout .actor-node,
.stage-svg.state-blackout .scenic-node {
  fill: #0a0a0a;
  stroke: #333;
}

.stage-svg.state-blackout .projection-surface {
  fill: #111;
}

.lighting-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.control-btn {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--bg-tertiary);
  border: 1px solid #2a2a2a;
  color: var(--text-muted);
  border-radius: 2px;
  cursor: pointer;
  transition: all var(--transition-base);
}

.control-btn:hover {
  border-color: var(--accent-brass);
  color: var(--text-ivory);
}

.control-btn.active {
  background: var(--accent-brass);
  color: var(--text-dark);
  border-color: var(--accent-brass);
}

.stage-readout {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  min-height: 1.5rem;
  font-style: italic;
}

.production-panel {
  background: var(--bg-primary);
  border: 1px solid #222;
  border-radius: 2px;
  padding: 1.5rem;
  border-left: 3px solid var(--accent-brass);
}

.production-meta dt {
  color: var(--accent-brass);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 1.25rem;
}

.production-meta dt:first-child {
  margin-top: 0;
}

.production-meta dd {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-top: 0.35rem;
}

.projection-preview {
  margin-top: 1rem;
}

.projection-screen {
  background: #050505;
  border: 1px solid #222;
  border-radius: 2px;
  padding: 0.5rem;
  display: flex;
  justify-content: center;
}

.projection-screen canvas {
  width: 100%;
  max-width: 480px;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #000;
}

.auditions {
  background: var(--bg-primary);
  border-top: 1px solid #1a1a1a;
}

.contact-block h3 {
  font-size: 1.1rem;
  color: var(--accent-brass);
  margin-bottom: 0.75rem;
}

.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-list li {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.contact-list a {
  color: var(--text-ivory);
}

.contact-list a:hover {
  color: var(--accent-brass);
  text-decoration: underline;
}

.auditions-form fieldset {
  border: none;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-secondary);
  border: 1px solid #2a2a2a;
  border-radius: 2px;
  color: var(--text-ivory);
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent-brass);
  box-shadow: 0 0 0 3px rgba(181,166,66,0.15);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23b5a642' viewBox='0 0 16 16'%3E%3Cpath d='M1.5 5l7 7 7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-status {
  padding: 1rem;
  margin-top: 1rem;
  background: rgba(181,166,66,0.1);
  border: 1px solid var(--accent-brass);
  color: var(--text-ivory);
  border-radius: 2px;
  font-size: 0.9rem;
}

.site-footer {
  background: #050505;
  border-top: 1px solid #1a1a1a;
  padding-block: 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

@media (min-width: 768px) {
  .grid-two-col {
    grid-template-columns: 1fr 1fr;
  }

  .grid-four {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-four {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 767px) {
  .hero-title {
    font-size: 2.25rem;
  }

  .timeline-scene {
    font-size: 0.65rem;
    padding: 0.35rem;
  }

  .production-panel {
    margin-top: 1.5rem;
  }

  .lab-workspace {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .curtain {
    display: none;
  }

  .will-animate {
    opacity: 1;
    transform: none;
  }
}