/* =====================================================================
   Eric Kofman — personal site
   Concept: a darkened stage. Each act is lit by its own spotlight as it
   scrolls into view. Fraunces (display) · Space Grotesk (body) · Space Mono (labels).
   ===================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* base — a warm, dark theater, not pure black */
  --ink:        #15110E;
  --ink-2:      #1D1712;
  --ink-3:      #271E17;
  --bone:       #ECE3D3;
  --bone-dim:   #B9AC97;
  --muted:      #8B7E6C;
  --line:       rgba(236, 227, 211, 0.14);
  --line-soft:  rgba(236, 227, 211, 0.08);

  /* per-act spotlights */
  --gold:  #E9B23A;   /* Act I  — footlights */
  --coral: #EC6A43;   /* Act II — cartoons   */
  --teal:  #46C6AF;   /* Act III— the lab    */

  /* work-specific pops */
  --lime:    #C6E23F; /* Snow White */
  --oxblood: #8A2027; /* Haber      */

  --accent: var(--gold); /* overridden per-section */

  --maxw: 1180px;
  --pad: clamp(1.25rem, 5vw, 4rem);

  /* Latin CT (playbill) — reserved for the hero name only. Falls back to Cinzel
     until the licensed font files are added to /fonts (see @font-face below). */
  --f-playbill: "Latin CT", "Cinzel", Georgia, serif;
  /* Section headers: bold condensed grotesque */
  --f-header: "Archivo Narrow", "Helvetica Neue Condensed", "Arial Narrow", sans-serif;
  /* Italic accents (tagline, quotes) keep a true italic */
  --f-italic: "Fraunces", Georgia, serif;
  --f-body: "Space Grotesk", system-ui, sans-serif;
  --f-mono: "Space Mono", ui-monospace, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Drop your licensed Latin CT webfont files into /fonts and this activates. */
@font-face {
  font-family: "Latin CT";
  src: url("../fonts/LatinCT.woff2") format("woff2"),
       url("../fonts/LatinCT.woff") format("woff");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--f-body);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: clip;
  /* faint film-grain of the darkened room */
  background-image:
    radial-gradient(ellipse 80% 55% at 50% -10%, rgba(233,178,58,0.05), transparent 60%);
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--accent); color: var(--ink); }

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

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  will-change: opacity, transform;
}
.reveal.in-view { opacity: 1; transform: none; }

/* =====================================================================
   MARQUEE (sticky nav / frozen TOC)
   ===================================================================== */
.marquee {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.85rem var(--pad);
  background: rgba(21, 17, 14, 0.72);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line-soft);
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.marquee.is-scrolled { border-bottom-color: var(--line); background: rgba(21,17,14,0.88); }

.marquee__brand { display: flex; flex-direction: column; line-height: 1; }
.marquee__mono {
  font-family: var(--f-mono);
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.28rem;
}
.marquee__name {
  font-family: var(--f-playbill);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}

.marquee__nav { display: flex; align-items: center; gap: 1.6rem; }
.marquee__nav a {
  position: relative;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bone-dim);
  padding: 0.35rem 0;
  transition: color 0.25s var(--ease);
}
.marquee__nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.marquee__nav a:hover { color: var(--bone); }
.marquee__nav a.is-active { color: var(--bone); }
.marquee__nav a.is-active::after { transform: scaleX(1); }

.marquee__contact {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.95rem !important;
}
.marquee__contact::after { display: none; }
.marquee__contact:hover { border-color: var(--accent); color: var(--ink) !important; background: var(--accent); }

/* hamburger — hidden on desktop */
.marquee__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 30px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 4px;
}
.marquee__toggle span {
  display: block; height: 1.5px; width: 100%;
  background: var(--bone);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 8rem var(--pad) 6rem;
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  top: 50%; left: 24%;
  width: min(620px, 70vw); aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(233,178,58,0.18), rgba(233,178,58,0.04) 45%, transparent 68%);
  pointer-events: none;
  animation: breathe 9s ease-in-out infinite;
}
@keyframes breathe { 50% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.06); } }

.hero__inner {
  position: relative;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.hero__eyebrow {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.hero__portrait { margin: 0; width: 100%; max-width: 300px; }
.hero__arch {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow:
    0 0 0 6px rgba(21,17,14,0.9),
    0 30px 80px -30px rgba(233,178,58,0.5);
}
.hero__arch img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 50% 22%;
  filter: grayscale(0.1) contrast(1.02);
}
/* subtle fade to seat the studio grey into the dark stage */
.hero__arch::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 68%, rgba(21,17,14,0.4));
  pointer-events: none;
}

.hero__name {
  font-family: var(--f-playbill);
  font-weight: 900;
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 0.94;
  letter-spacing: -0.02em;
  font-optical-sizing: auto;
}

.hero__roles {
  font-family: var(--f-italic);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.35rem, 4.5vw, 2.1rem);
  margin-top: 0.75rem;
  color: var(--bone-dim);
}
.hero__static { opacity: 0.8; }
.hero__rotator { color: var(--gold); position: relative; }
.hero__rotator .is-active { display: inline-block; }

.hero__bio {
  max-width: 52ch;
  margin-top: 1.6rem;
  color: var(--bone-dim);
  font-size: clamp(0.98rem, 1.6vw, 1.08rem);
}
.hero__bio p + p { margin-top: 0.95rem; }
.hero__bio em { font-style: italic; color: var(--bone); }

.hero__links { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

.hero__scroll {
  position: absolute;
  left: 50%; bottom: 1.75rem;
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--f-mono);
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero__scroll-line {
  width: 1px; height: 48px;
  background: linear-gradient(var(--gold), transparent);
  position: relative; overflow: hidden;
}
.hero__scroll-line::after {
  content: ""; position: absolute; inset: 0;
  background: var(--gold);
  animation: drip 2.4s var(--ease) infinite;
}
@keyframes drip {
  0% { transform: translateY(-100%); }
  60%,100% { transform: translateY(100%); }
}

/* =====================================================================
   ACTS (shared)
   ===================================================================== */
.act {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(5rem, 12vw, 9rem) var(--pad);
}
.act--stage   { --accent: var(--gold); }
.act--gallery { --accent: var(--coral); }
.act--lab     { --accent: var(--teal); }

/* the spotlight that fades up when the act enters view */
.act__spot {
  position: absolute;
  top: 0; left: 50%;
  width: min(1100px, 120%); height: 520px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at 50% 0%,
              color-mix(in srgb, var(--accent) 22%, transparent),
              transparent 60%);
  opacity: 0;
  transition: opacity 1.1s var(--ease);
  pointer-events: none;
}
.act.in-view .act__spot { opacity: 1; }

/* Two-column act: sticky heading parks in the left third,
   content scrolls past in the right two-thirds, then the next Act takes over. */
.act__grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  min-height: 86vh;
  /* default align-items: stretch — the aside fills the row so the
     sticky heading has room to travel through the whole section */
}
.act__aside { min-width: 0; }
.act__heading {
  position: sticky;
  top: 50vh;
  transform: translateY(-50%);
}
.act__content { min-width: 0; }
.act__eyebrow {
  display: flex; align-items: center; gap: 0.9rem;
  font-family: var(--f-mono);
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.act__num {
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  font-size: 0.66rem;
}
.act__title {
  font-family: var(--f-header);
  font-weight: 600;
  font-size: clamp(1.9rem, 5.5vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
}
.act__intro {
  margin-top: 1.25rem;
  max-width: 54ch;
  color: var(--bone-dim);
  font-size: clamp(1rem, 2vw, 1.12rem);
}

/* ---------- Show cards ---------- */
.show {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: linear-gradient(180deg, var(--ink-2), var(--ink));
  overflow: hidden;
  margin-bottom: 2rem;
}
.show__body { padding: clamp(1.5rem, 4vw, 2.75rem); }
.show__kicker {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}
.show__title {
  font-family: var(--f-header);
  font-weight: 600;
  font-size: clamp(1.4rem, 3.5vw, 2.15rem);
  line-height: 1.05;
  margin-bottom: 0.75rem;
}
.show__tag { color: var(--bone-dim); max-width: 60ch; }

/* Snow White feature */
.show__banner { display: block; border-bottom: 1px solid var(--line); overflow: hidden; }
.show__banner img {
  width: 100%;
  transition: transform 0.7s var(--ease);
}
a.show__banner:hover img { transform: scale(1.03); }

/* Haber */
.show--haber { --accent: var(--oxblood); }
.show--haber .show__logo { display: block; max-width: 420px; margin: 0.5rem 0 1.25rem; overflow: hidden; border-radius: 3px; }
.show--haber .show__logo img { border-radius: 3px; transition: transform 0.7s var(--ease); }
.show--haber .show__logo:hover img { transform: scale(1.04); }
.show__gallery figure { overflow: hidden; }
.show__gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.show__gallery figure:hover img { transform: scale(1.05); }
.show__gallery {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2px;
  background: var(--line);
}

.quote {
  border-left: 2px solid var(--oxblood);
  padding: 0.35rem 0 0.35rem 1.1rem;
  margin: 1.1rem 0;
  font-family: var(--f-italic);
  font-style: italic;
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  color: var(--bone);
}

/* ---------- Buttons ---------- */
.show__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.btn {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  border: 1px solid var(--accent);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}
.btn--solid { background: var(--accent); color: var(--ink); }
.btn--ghost { color: var(--accent); }
.btn:hover { transform: translateY(-2px); }
.btn--ghost:hover { background: var(--accent); color: var(--ink); }
.btn--haber { --accent: var(--oxblood); color: var(--bone); }
.btn--haber.btn--solid { color: var(--bone); }
.btn--haber.btn--ghost { color: #E48A8F; border-color: #E48A8F; }
.btn--haber.btn--ghost:hover { background: var(--oxblood); color: var(--bone); }
.btn--teal { --accent: var(--teal); }

/* Instagram icon + handle links */
.ig-icon {
  width: 1em; height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  vertical-align: -0.12em;
}
.btn--ig { display: inline-flex; align-items: center; gap: 0.5em; }
.gallery__cta-handle { display: inline-flex; align-items: center; gap: 0.5rem; }
.ig-icon--lg { width: 0.9em; height: 0.9em; stroke-width: 1.6; }

/* =====================================================================
   ACT II — Gallery
   ===================================================================== */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}
.frame {
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  border-radius: 3px;
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(45deg, transparent, transparent 11px, var(--line-soft) 11px, var(--line-soft) 12px),
    var(--ink-2);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.frame:hover { border-color: var(--coral); transform: translateY(-3px); }
.frame figcaption {
  font-family: var(--f-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
/* When a cartoon image is dropped in, it fills the frame and the hatch drops away */
.frame { overflow: hidden; }
.frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: inherit;
  transition: transform 0.5s var(--ease);
}
.frame:has(img) { background: var(--ink-2); cursor: zoom-in; }
.frame:hover img { transform: scale(1.04); }

/* Lightbox overlay */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  background: rgba(8, 6, 4, 0.94);
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__img {
  max-width: 90vw; max-height: 86vh;
  object-fit: contain;
  border-radius: 3px;
  box-shadow: 0 30px 90px -20px rgba(0,0,0,0.8);
}
.lightbox__caption {
  position: absolute; bottom: 1.4rem; left: 50%; transform: translateX(-50%);
  font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.08em;
  color: var(--bone-dim); text-align: center; max-width: 80vw;
}
.lightbox__close, .lightbox__nav {
  position: absolute; z-index: 1;
  background: rgba(236,227,211,0.08);
  border: 1px solid var(--line);
  color: var(--bone);
  width: 46px; height: 46px; border-radius: 50%;
  font-size: 1.5rem; line-height: 1; cursor: pointer;
  display: grid; place-items: center;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.lightbox__close:hover, .lightbox__nav:hover { background: var(--coral); border-color: var(--coral); color: var(--ink); }
.lightbox__close { top: 1.25rem; right: 1.25rem; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__prev { left: 1.25rem; }
.lightbox__next { right: 1.25rem; }
@media (max-width: 640px) {
  .lightbox__nav { width: 40px; height: 40px; }
  .lightbox__prev { left: 0.5rem; } .lightbox__next { right: 0.5rem; }
}

/* PDF download tile — for a multi-page comic kept as a PDF */
.frame--pdf {
  text-decoration: none;
  color: var(--bone-dim);
  gap: 0.6rem;
  text-align: center;
  padding: 1rem;
}
.frame--pdf svg { width: 30px; height: 30px; stroke: var(--coral); fill: none; stroke-width: 1.6; }
.frame--pdf b { font-family: var(--f-header); font-weight: 700; font-size: 1.05rem; color: var(--bone); }
.frame--pdf span { font-family: var(--f-mono); font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--coral); }
.frame--pdf:hover { color: var(--bone); }

.gallery__cta {
  display: inline-flex;
  flex-direction: column;
  gap: 0.3rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1.4rem 2rem;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.gallery__cta:hover { border-color: var(--coral); background: var(--ink-2); }
.gallery__cta-mono {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--coral);
}
.gallery__cta-handle {
  font-family: var(--f-header);
  font-weight: 600;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
}

/* =====================================================================
   ACT III — Lab
   ===================================================================== */
.lab__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}
.paper {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--ink-2);
  position: relative;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.paper::before {
  content: "";
  position: absolute; inset: 0 auto 0 0;
  width: 2px; background: var(--teal);
  opacity: 0.5;
  border-radius: 4px 0 0 4px;
}
.paper:hover { border-color: var(--teal); transform: translateY(-3px); }
.paper__label {
  font-family: var(--f-mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
}
.paper__title {
  font-family: var(--f-header);
  font-weight: 600;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  line-height: 1.1;
  margin-bottom: 0.8rem;
}
.paper__title em { font-style: italic; }
.paper__text { color: var(--bone-dim); margin-bottom: 1.5rem; }

/* =====================================================================
   CURTAIN (contact / footer)
   ===================================================================== */
.curtain {
  --accent: var(--gold);
  position: relative;
  padding: clamp(5rem, 12vw, 8rem) var(--pad);
  text-align: center;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(ellipse 70% 100% at 50% 100%, rgba(233,178,58,0.08), transparent 65%),
    var(--ink);
}
.curtain__inner { max-width: 620px; margin: 0 auto; }
.curtain__eyebrow {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.25rem;
}
.curtain__title {
  font-family: var(--f-header);
  font-weight: 900;
  font-size: clamp(2.4rem, 8vw, 4.5rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
}
.curtain__text { color: var(--bone-dim); margin: 1.25rem auto 2rem; max-width: 48ch; }
.curtain__links {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem 1.5rem;
  font-family: var(--f-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.curtain__links a { position: relative; display: inline-flex; align-items: center; gap: 0.45em; color: var(--bone-dim); transition: color 0.25s var(--ease); }
.curtain__links a:hover { color: var(--gold); }
.ft-icon {
  width: 1.05em; height: 1.05em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linejoin: round;
  vertical-align: -0.14em;
}
.curtain__credit {
  margin-top: 3rem;
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--muted);
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 860px) {
  .act__grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .act__heading { position: static; transform: none; }

  .hero { padding: 7rem var(--pad) 5.5rem; }
  .hero__inner { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 2.25rem; }
  .hero__portrait { max-width: 200px; }
  .hero__eyebrow { text-align: center; }
  .hero__bio { margin-left: auto; margin-right: auto; }
  .hero__links { justify-content: center; }
  .hero__glow { top: 30%; left: 50%; }

  .marquee__nav {
    position: fixed;
    inset: 0 0 auto 0;
    top: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    padding: 1.5rem var(--pad) 2rem;
    background: rgba(21,17,14,0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0; visibility: hidden;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
  }
  .marquee.is-open .marquee__nav { opacity: 1; visibility: visible; transform: none; }
  .marquee__nav a { font-size: 0.85rem; padding: 0.5rem 0; }
  .marquee__contact { padding: 0.5rem 1rem !important; }
  .marquee__toggle { display: flex; }
  .marquee.is-open .marquee__toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .marquee.is-open .marquee__toggle span:nth-child(2) { opacity: 0; }
  .marquee.is-open .marquee__toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  .show--haber { display: block; }
  .show__gallery { grid-template-columns: 1fr 1fr; }
  .lab__grid { grid-template-columns: 1fr; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .gallery__grid { grid-template-columns: 1fr 1fr; }
  .show__gallery { grid-template-columns: 1fr; }
}

/* =====================================================================
   REDUCED MOTION
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* =====================================================================
   Font-role refinements (playbill name + condensed sans headers)
   ===================================================================== */
.act__title, .show__title, .paper__title,
.curtain__title, .gallery__cta-handle {
  font-weight: 700;
  letter-spacing: -0.005em;
}
/* keep a true italic for emphasised words inside sans headers */
.paper__title em, .act__title em { font-family: var(--f-italic); font-style: italic; font-weight: 600; }

/* synopsis paragraphs + producer callout in show cards */
.show__text {
  color: var(--bone-dim);
  max-width: 64ch;
  margin-top: 1rem;
  font-size: clamp(0.98rem, 1.9vw, 1.06rem);
}
.show__note {
  margin-top: 1.4rem;
  padding-left: 1rem;
  border-left: 2px solid var(--accent);
  color: var(--bone);
  font-size: 0.98rem;
}
.show__note a {
  color: var(--bone);
  border-bottom: 1.5px solid var(--accent);
  padding-bottom: 1px;
  white-space: nowrap;
  transition: color 0.25s var(--ease);
}
.show__note a:hover { color: var(--accent); }
.show__meta {
  display: inline-block;
  margin-top: 1rem;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

/* =====================================================================
   Subsections (science + art), illustration cards, external link rows
   ===================================================================== */
.subhead {
  font-family: var(--f-header);
  font-weight: 700;
  font-size: clamp(1.15rem, 2.5vw, 1.55rem);
  letter-spacing: -0.005em;
  color: var(--bone);
  margin: 0 0 1.4rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--line);
}
.act__content .subhead:not(:first-child) { margin-top: 3.25rem; }
.subhead__note { color: var(--bone-dim); margin: -0.6rem 0 1.4rem; font-size: 0.98rem; max-width: 60ch; }

/* illustration cards (Epigenie writing) */
.paper--illus .paper__icon {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: contain;
  object-position: center;
  background: var(--ink-3);
  padding: 0.5rem;
  margin-bottom: 1.1rem;
  border-radius: 3px;
}

/* external link rows (New Yorker) */
.linklist { display: grid; gap: 0.7rem; margin-bottom: 0.5rem; }
.linkrow {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1.25rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--ink-2);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), background 0.25s var(--ease);
}
.linkrow:hover { border-color: var(--coral); background: var(--ink-3); transform: translateY(-2px); }
.linkrow__title { font-family: var(--f-body); color: var(--bone); font-size: 1.02rem; }
.linkrow__meta {
  font-family: var(--f-mono); font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--coral); white-space: nowrap;
}
