/* ============================================================
   Boilerhouse Theatre Company
   Industrial-gothic theming inspired by the company logo:
   near-black ground, ember-brick + candle-gold accents,
   the factory roofline reused as a structural motif.
   ============================================================ */

:root{
  --bg:        #0b0a0c;
  --bg-2:      #121013;
  --surface:   #18151a;
  --surface-2: #1f1b21;
  --line:      #2c2730;

  --ember:     #c5562f;   /* chimney brick / waistcoat orange */
  --ember-lt:  #e07a3e;
  --gold:      #e4b15a;   /* candlelight */
  --gold-soft: #f1d49a;

  --ink:       #f0ece4;
  --ink-soft:  #c5beb4;
  --ink-mute:  #8d867d;

  --maxw: 1200px;
  --r: 4px;

  --serif:   'EB Garamond', Georgia, serif;
  --display: 'Cinzel', Georgia, serif;
  --decor:   'Cinzel Decorative', 'Cinzel', serif;
}

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

html{ scroll-behavior:smooth; }

body{
  background:var(--bg);
  color:var(--ink);
  font-family:var(--serif);
  font-size:18px;
  line-height:1.7;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

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

a{ color:inherit; text-decoration:none; }

h1,h2,h3{ font-family:var(--display); font-weight:600; line-height:1.1; letter-spacing:.01em; }

/* ===== Ember canvas ===== */
#embers{
  position:fixed; inset:0;
  width:100%; height:100%;
  pointer-events:none;
  z-index:1;
  opacity:.8;
}

/* ===== Section scaffolding ===== */
section{ position:relative; z-index:2; padding:clamp(4.5rem,9vw,8rem) clamp(1.25rem,5vw,4rem); }

.kicker{
  font-family:var(--display);
  font-size:.78rem; font-weight:600;
  letter-spacing:.34em; text-transform:uppercase;
  color:var(--ember-lt);
  margin-bottom:1rem;
}

.section-head{ max-width:var(--maxw); margin:0 auto clamp(2.5rem,5vw,4rem); text-align:center; }
.section-head h2{ font-size:clamp(2.2rem,5vw,3.6rem); }
.section-head .kicker{ color:var(--gold); }
.section-intro{ color:var(--ink-soft); font-size:1.15rem; margin-top:.6rem; font-style:italic; }

.section-tag{
  max-width:var(--maxw); margin:0 auto 2rem;
  font-family:var(--display); font-size:.72rem; font-weight:600;
  letter-spacing:.34em; text-transform:uppercase; color:var(--gold);
  display:flex; align-items:center; gap:1rem;
}
.section-tag::after{ content:''; flex:1; height:1px; background:linear-gradient(90deg,var(--line),transparent); }

/* ===== Header ===== */
.site-header{
  position:fixed; top:0; left:0; right:0; z-index:50;
  display:flex; align-items:center; justify-content:space-between;
  padding:1.1rem clamp(1.25rem,5vw,4rem);
  transition:background .4s ease, padding .4s ease, box-shadow .4s ease, border-color .4s ease;
  border-bottom:1px solid transparent;
}
.site-header.scrolled{
  background:rgba(11,10,12,.86);
  backdrop-filter:blur(12px);
  padding:.6rem clamp(1.25rem,5vw,4rem);
  border-bottom-color:var(--line);
  box-shadow:0 10px 40px rgba(0,0,0,.4);
}

.brand{ display:flex; align-items:center; gap:.8rem; }
.brand-logo{ width:46px; height:46px; object-fit:contain; transition:transform .4s ease; filter:drop-shadow(0 0 10px rgba(228,177,90,.15)); }
.site-header.scrolled .brand-logo{ width:40px; height:40px; }
.brand:hover .brand-logo{ transform:rotate(-3deg) scale(1.05); }
.brand-text{ display:flex; flex-direction:column; line-height:1; }
.brand-name{ font-family:var(--display); font-weight:700; font-size:1.15rem; letter-spacing:.12em; text-transform:uppercase; }
.brand-sub{ font-family:var(--display); font-size:.6rem; letter-spacing:.42em; text-transform:uppercase; color:var(--ink-mute); margin-top:.25rem; }

.nav{ display:flex; align-items:center; gap:2rem; }
.nav a{
  font-family:var(--display); font-size:.78rem; font-weight:500;
  letter-spacing:.16em; text-transform:uppercase; color:var(--ink-soft);
  position:relative; padding:.3rem 0; transition:color .3s ease;
}
.nav a:not(.nav-cta)::after{
  content:''; position:absolute; left:0; bottom:-2px; width:0; height:1px;
  background:var(--ember-lt); transition:width .3s ease;
}
.nav a:hover{ color:var(--ink); }
.nav a:not(.nav-cta):hover::after{ width:100%; }
.nav-cta{
  border:1px solid var(--ember); color:var(--ember-lt) !important;
  padding:.5rem 1.1rem !important; border-radius:var(--r);
  transition:background .3s ease, color .3s ease;
}
.nav-cta:hover{ background:var(--ember); color:#fff !important; }

.nav-toggle{ display:none; flex-direction:column; gap:5px; background:none; border:0; cursor:pointer; padding:6px; z-index:60; }
.nav-toggle span{ width:26px; height:2px; background:var(--ink); transition:.3s ease; }

/* ===== Hero ===== */
.hero{ min-height:100vh; display:flex; flex-direction:column; justify-content:center; padding-top:7rem; overflow:hidden; }
.hero-bg{
  position:absolute; inset:-4% ; z-index:0;
  background-size:cover; background-position:center 35%;
  transform:scale(1.05);
  animation:slowZoom 24s ease-in-out infinite alternate;
}
@keyframes slowZoom{ to{ transform:scale(1.16); } }
.hero-veil{
  position:absolute; inset:0; z-index:1;
  background:
    radial-gradient(ellipse at 50% 20%, rgba(228,177,90,.10), transparent 55%),
    linear-gradient(180deg, rgba(11,10,12,.55) 0%, rgba(11,10,12,.35) 35%, rgba(11,10,12,.85) 80%, var(--bg) 100%);
}
.hero-inner{ position:relative; z-index:3; max-width:var(--maxw); width:100%; margin:0 auto; }
.hero-eyebrow{
  font-family:var(--display); font-size:.8rem; font-weight:500;
  letter-spacing:.3em; text-transform:uppercase; color:var(--gold);
  margin-bottom:1.5rem; opacity:0; animation:rise .9s .1s ease forwards;
}
.hero-title{ font-size:clamp(2.8rem,8.5vw,7rem); font-weight:700; }
.hero-title .line{ display:block; opacity:0; transform:translateY(24px); animation:rise 1s ease forwards; }
.hero-title .line:nth-child(1){ animation-delay:.25s; }
.hero-title .line.accent{
  font-family:var(--decor); font-weight:900;
  background:linear-gradient(100deg,var(--gold-soft),var(--ember-lt) 70%);
  -webkit-background-clip:text; background-clip:text; color:transparent;
  animation-delay:.45s;
}
.hero-lead{
  max-width:34rem; margin:1.8rem 0 2.4rem; font-size:clamp(1.05rem,2vw,1.35rem);
  color:var(--ink-soft); opacity:0; animation:rise 1s .65s ease forwards;
}
.hero-actions{ display:flex; gap:1rem; flex-wrap:wrap; opacity:0; animation:rise 1s .85s ease forwards; }

.hero-scroll{
  position:absolute; bottom:2rem; left:50%; transform:translateX(-50%); z-index:3;
  display:flex; flex-direction:column; align-items:center; gap:.6rem;
  font-family:var(--display); font-size:.62rem; letter-spacing:.34em; text-transform:uppercase; color:var(--ink-mute);
}
.scroll-line{ width:1px; height:46px; background:linear-gradient(180deg,var(--ink-mute),transparent); position:relative; overflow:hidden; }
.scroll-line::after{ content:''; position:absolute; top:-50%; left:0; width:100%; height:50%; background:var(--gold); animation:scrollDot 2s ease-in-out infinite; }
@keyframes scrollDot{ 0%{ top:-50%; } 100%{ top:120%; } }

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

/* ===== Buttons ===== */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:.5rem;
  font-family:var(--display); font-size:.82rem; font-weight:600;
  letter-spacing:.14em; text-transform:uppercase;
  padding:.95rem 1.9rem; border-radius:var(--r); cursor:pointer;
  border:1px solid transparent; transition:transform .25s ease, box-shadow .3s ease, background .3s ease, color .3s ease, border-color .3s ease;
}
.btn-primary{ background:linear-gradient(120deg,var(--ember),var(--ember-lt)); color:#fff; box-shadow:0 8px 30px rgba(197,86,47,.35); }
.btn-primary:hover{ transform:translateY(-2px); box-shadow:0 14px 44px rgba(197,86,47,.5); }
.btn-ghost{ border-color:var(--line); color:var(--ink); }
.btn-ghost:hover{ border-color:var(--gold); color:var(--gold); transform:translateY(-2px); }
.btn-block{ width:100%; margin-bottom:.8rem; }

/* ===== Roofline divider (logo motif) ===== */
.roofline{ position:relative; z-index:2; line-height:0; background:var(--bg); }
.roofline svg{ width:100%; height:clamp(36px,5vw,64px); display:block; }
.roofline path{ fill:var(--bg-2); }

/* ===== Featured Production ===== */
.show{ background:var(--bg-2); }
.show-grid{ max-width:var(--maxw); margin:0 auto; display:grid; grid-template-columns:0.95fr 1fr; gap:clamp(2rem,5vw,5rem); align-items:center; }
.show-media{ position:relative; }
.show-media img{ width:100%; aspect-ratio:3/4; object-fit:cover; border-radius:var(--r); filter:saturate(1.05) contrast(1.05); }
.show-media-frame{ position:absolute; inset:14px; border:1px solid rgba(228,177,90,.35); border-radius:var(--r); pointer-events:none; }
.show-copy .show-title{ font-size:clamp(2.2rem,5vw,3.7rem); margin:.4rem 0 .8rem; }
.show-copy .show-title em{ font-family:var(--decor); font-weight:700; font-style:normal; color:var(--gold); }
.show-tag{ font-style:italic; font-size:1.25rem; color:var(--ember-lt); margin-bottom:1.2rem; }
.show-copy p{ color:var(--ink-soft); }
.show-facts{ list-style:none; margin:1.8rem 0; border-top:1px solid var(--line); }
.show-facts li{ display:flex; justify-content:space-between; gap:1rem; padding:.85rem 0; border-bottom:1px solid var(--line); }
.show-facts .fk{ font-family:var(--display); font-size:.72rem; letter-spacing:.18em; text-transform:uppercase; color:var(--ink-mute); }
.show-facts .fv{ font-weight:500; text-align:right; }
.show-actions{ display:flex; gap:1rem; flex-wrap:wrap; margin-top:1.5rem; }

/* ===== About ===== */
.about-grid{ max-width:var(--maxw); margin:0 auto; display:grid; grid-template-columns:1fr 1fr; gap:clamp(2rem,5vw,5rem); align-items:center; }
.about-copy h2{ font-size:clamp(1.9rem,4vw,3rem); margin-bottom:1.3rem; }
.about-copy p{ color:var(--ink-soft); margin-bottom:1.1rem; }
.stats{ display:flex; gap:clamp(1.2rem,4vw,3rem); margin-top:2.2rem; flex-wrap:wrap; }
.stat{ display:flex; flex-direction:column; }
.stat .num{ font-family:var(--display); font-weight:700; font-size:clamp(2rem,4vw,2.8rem); color:var(--gold); line-height:1; }
.stat .lbl{ font-size:.82rem; letter-spacing:.08em; text-transform:uppercase; color:var(--ink-mute); margin-top:.5rem; }
.about-media{ position:relative; }
.about-media img{ width:100%; aspect-ratio:4/5; object-fit:cover; border-radius:var(--r); }
.about-caption{
  position:absolute; left:1rem; bottom:1rem; right:1rem;
  font-style:italic; color:var(--ink); font-size:.95rem;
  background:linear-gradient(0deg,rgba(11,10,12,.85),transparent);
  padding:2rem 1rem .8rem; border-radius:0 0 var(--r) var(--r);
}

/* ===== Company / Cast ===== */
.company{ background:var(--bg-2); }
.cast-grid{
  max-width:var(--maxw); margin:0 auto;
  display:grid; grid-template-columns:repeat(auto-fit,minmax(210px,1fr)); gap:1.4rem;
}
.cast-card{
  position:relative; cursor:pointer; border-radius:var(--r); overflow:hidden;
  background:var(--surface); border:1px solid var(--line); padding:0; text-align:left;
  color:var(--ink); font-family:var(--serif);
  display:flex; flex-direction:column; justify-content:flex-start;
  transition:transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.cast-card:hover{ transform:translateY(-6px); border-color:var(--ember); box-shadow:0 18px 44px rgba(0,0,0,.5); }
.cast-photo{ display:block; position:relative; overflow:hidden; }
.cast-photo img{
  width:100%; aspect-ratio:1/1; object-fit:cover; display:block;
  filter:grayscale(1) contrast(1.02) brightness(.96);
  transition:transform .5s ease, filter .5s ease;
}
.cast-card:hover .cast-photo img{ transform:scale(1.05); filter:grayscale(.15) contrast(1.05) brightness(1); }
.cast-photo::after{
  content:'Read bio'; position:absolute; inset:auto 0 0 0; padding:1.4rem .8rem .7rem;
  font-family:var(--display); font-size:.62rem; letter-spacing:.22em; text-transform:uppercase; color:var(--gold);
  background:linear-gradient(0deg,rgba(11,10,12,.85),transparent);
  opacity:0; transform:translateY(8px); transition:opacity .35s ease, transform .35s ease;
}
.cast-card:hover .cast-photo::after{ opacity:1; transform:translateY(0); }
.cast-meta{ display:block; padding:1rem 1.1rem 1.2rem; border-top:2px solid var(--ember); }
.cast-name{ display:block; font-family:var(--display); font-weight:600; font-size:1.08rem; line-height:1.2; color:var(--ink); }
.cast-role{ display:block; font-size:.72rem; letter-spacing:.16em; text-transform:uppercase; color:var(--gold); margin-top:.35rem; }

/* ===== Cast bio modal ===== */
.bio-modal{
  position:fixed; inset:0; z-index:100; display:none;
  align-items:center; justify-content:center;
  background:rgba(6,5,7,.9); backdrop-filter:blur(7px); padding:1.25rem;
}
.bio-modal.open{ display:flex; animation:fadeIn .3s ease; }
.bio-panel{
  position:relative; display:grid; grid-template-columns:minmax(180px,300px) 1fr;
  max-width:760px; width:100%; max-height:90vh; overflow:hidden;
  background:linear-gradient(160deg,var(--surface-2),var(--surface));
  border:1px solid var(--line); border-radius:var(--r);
  box-shadow:0 40px 100px rgba(0,0,0,.7);
  animation:rise .45s ease;
}
.bio-photo{ background:#000; }
.bio-photo img{ width:100%; height:100%; object-fit:cover; filter:grayscale(1) contrast(1.03); }
.bio-body{ padding:clamp(1.6rem,4vw,2.6rem); overflow-y:auto; }
.bio-kicker{ font-family:var(--display); font-size:.72rem; font-weight:600; letter-spacing:.24em; text-transform:uppercase; color:var(--ember-lt); }
.bio-body h3{ font-size:clamp(1.6rem,4vw,2.2rem); margin:.5rem 0 1rem; }
.bio-body p{ color:var(--ink-soft); font-size:1.05rem; }
.bio-close{
  position:absolute; top:.6rem; right:.8rem; z-index:2; background:none; border:0;
  color:var(--ink); font-size:2.2rem; line-height:1; cursor:pointer; transition:color .3s, transform .3s;
}
.bio-close:hover{ color:var(--ember-lt); transform:rotate(90deg); }

/* ===== Gallery ===== */
.masonry{ max-width:var(--maxw); margin:0 auto; columns:3; column-gap:1.1rem; }
.tile{
  display:block; width:100%; margin:0 0 1.1rem; padding:0; border:0; cursor:pointer;
  background:none; border-radius:var(--r); overflow:hidden; position:relative;
  break-inside:avoid;
}
.tile img{ width:100%; border-radius:var(--r); transition:transform .6s ease, filter .4s ease; filter:saturate(.92) brightness(.92); }
.tile::after{
  content:'View'; position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  font-family:var(--display); font-size:.72rem; letter-spacing:.3em; text-transform:uppercase; color:var(--gold);
  background:rgba(11,10,12,.45); opacity:0; transition:opacity .4s ease;
}
.tile:hover img{ transform:scale(1.06); filter:saturate(1.1) brightness(1); }
.tile:hover::after{ opacity:1; }

/* ===== Visit ===== */
.visit{ background:var(--bg-2); }
.visit-grid{ max-width:var(--maxw); margin:0 auto; display:grid; grid-template-columns:1.15fr .85fr; gap:clamp(2rem,5vw,4rem); align-items:start; }
.visit-copy h2{ font-size:clamp(1.9rem,4vw,3rem); margin-bottom:1.2rem; }
.visit-copy > p{ color:var(--ink-soft); margin-bottom:1.6rem; }
.visit-list{ list-style:none; }
.visit-list li{ display:flex; flex-direction:column; gap:.15rem; padding:1rem 0; border-bottom:1px solid var(--line); }
.visit-list strong{ font-family:var(--display); font-size:.72rem; font-weight:600; letter-spacing:.2em; text-transform:uppercase; color:var(--gold); }
.visit-link{ color:var(--ink); border-bottom:1px solid var(--line); transition:color .3s ease, border-color .3s ease; width:fit-content; }
.visit-link:hover{ color:var(--ember-lt); border-color:var(--ember); }
.muted{ color:var(--ink-mute); font-style:italic; }

.visit-card{
  background:var(--surface); border:1px solid var(--line); border-radius:var(--r);
  padding:clamp(1.6rem,4vw,2.6rem); position:sticky; top:100px;
  box-shadow:0 20px 60px rgba(0,0,0,.4);
}
.visit-card h3{ font-size:1.7rem; margin:.3rem 0 .7rem; }
.visit-card > p{ color:var(--ink-soft); margin-bottom:1.6rem; }
.visit-fineprint{ font-size:.9rem; color:var(--ink-mute); margin-top:1rem; text-align:center; }
.visit-fineprint a{ color:var(--ember-lt); }

/* ===== Footer ===== */
.site-footer{ position:relative; z-index:2; background:var(--bg); }
.footer-roofline{ line-height:0; }
.footer-roofline svg{ width:100%; height:clamp(34px,5vw,56px); transform:rotate(180deg); }
.footer-roofline path{ fill:var(--bg-2); }
.footer-inner{
  max-width:var(--maxw); margin:0 auto;
  display:flex; justify-content:space-between; gap:2rem; flex-wrap:wrap;
  padding:clamp(2.5rem,5vw,4rem) clamp(1.25rem,5vw,4rem) 2rem;
}
.footer-brand{ max-width:22rem; }
.footer-brand img{ width:64px; margin-bottom:1rem; }
.footer-brand p{ color:var(--ink-mute); font-style:italic; }
.footer-nav{ display:flex; flex-direction:column; gap:.7rem; }
.footer-nav a{ font-family:var(--display); font-size:.8rem; letter-spacing:.14em; text-transform:uppercase; color:var(--ink-soft); transition:color .3s ease; }
.footer-nav a:hover{ color:var(--gold); }
.footer-base{
  max-width:var(--maxw); margin:0 auto;
  display:flex; justify-content:space-between; gap:1rem; flex-wrap:wrap;
  padding:1.4rem clamp(1.25rem,5vw,4rem); border-top:1px solid var(--line);
  font-size:.82rem; color:var(--ink-mute);
}
.footer-quote{ font-style:italic; color:var(--ember-lt); }

/* ===== Lightbox ===== */
.lightbox{
  position:fixed; inset:0; z-index:100; display:none;
  align-items:center; justify-content:center;
  background:rgba(6,5,7,.94); backdrop-filter:blur(6px);
  padding:clamp(1rem,5vw,4rem);
}
.lightbox.open{ display:flex; animation:fadeIn .3s ease; }
@keyframes fadeIn{ from{ opacity:0; } to{ opacity:1; } }
.lightbox img{ max-width:92vw; max-height:88vh; border-radius:var(--r); box-shadow:0 30px 80px rgba(0,0,0,.7); }
.lightbox-close{ position:absolute; top:1.2rem; right:1.6rem; background:none; border:0; color:var(--ink); font-size:2.6rem; line-height:1; cursor:pointer; transition:color .3s ease, transform .3s ease; }
.lightbox-close:hover{ color:var(--ember-lt); transform:rotate(90deg); }
.lightbox-nav{
  position:absolute; top:50%; transform:translateY(-50%);
  background:rgba(24,21,26,.7); border:1px solid var(--line); color:var(--ink);
  width:54px; height:54px; border-radius:50%; font-size:2rem; line-height:1; cursor:pointer;
  display:flex; align-items:center; justify-content:center; transition:background .3s, border-color .3s;
}
.lightbox-nav:hover{ background:var(--ember); border-color:var(--ember); }
.lightbox-nav.prev{ left:1.5rem; }
.lightbox-nav.next{ right:1.5rem; }

/* ===== Reveal animation ===== */
.reveal{ opacity:0; transform:translateY(34px); transition:opacity .9s ease, transform .9s ease; }
.reveal.in{ opacity:1; transform:translateY(0); }

/* ===== Responsive ===== */
@media (max-width:900px){
  .nav{
    position:fixed; inset:0 0 0 auto; width:min(80vw,320px);
    flex-direction:column; align-items:flex-start; justify-content:center; gap:1.8rem;
    background:rgba(13,11,14,.98); backdrop-filter:blur(14px);
    padding:2rem 2.4rem; transform:translateX(100%); transition:transform .4s ease;
    border-left:1px solid var(--line);
  }
  .nav.open{ transform:translateX(0); }
  .nav a{ font-size:1rem; }
  .nav-toggle{ display:flex; }
  .nav-toggle.open span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2){ opacity:0; }
  .nav-toggle.open span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

  .bio-panel{ grid-template-columns:1fr; max-height:88vh; overflow-y:auto; }
  .bio-photo{ max-height:42vh; }
  .bio-photo img{ height:100%; max-height:42vh; }

  .show-grid{ grid-template-columns:1fr; }
  .show-media{ max-width:440px; margin:0 auto; }
  .about-grid{ grid-template-columns:1fr; }
  .about-media{ order:-1; }
  .visit-grid{ grid-template-columns:1fr; }
  .visit-card{ position:static; }
  .masonry{ columns:2; }
}

@media (max-width:560px){
  body{ font-size:17px; }
  .masonry{ columns:1; }
  .brand-sub{ display:none; }
  .footer-base{ flex-direction:column; }
  .stats{ gap:1.6rem; }
}

@media (prefers-reduced-motion:reduce){
  *{ animation-duration:.001ms !important; animation-iteration-count:1 !important; }
  .hero-bg{ animation:none; }
  .reveal{ opacity:1; transform:none; }
}
