:root {
  --ink: #05070d;
  --midnight: #091127;
  --blue: #123e73;
  --electric: #2380c8;
  --red: #b5233d;
  --rose: #d58aa0;
  --cream: #f2dfcf;
  --text: #eef5ff;
  --muted: #aebdd0;
  --line: rgba(238, 245, 255, 0.17);
  --glass: rgba(7, 12, 28, 0.7);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 6%, rgba(35, 128, 200, 0.32), transparent 28rem),
    radial-gradient(circle at 88% 16%, rgba(181, 35, 61, 0.32), transparent 30rem),
    linear-gradient(180deg, var(--ink), #08162c 45%, #05070d);
  font-family: Inter, Arial, sans-serif;
}

img, video { display: block; width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.hero {
  position: relative;
  min-height: 100vh;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: clamp(1rem, 4vw, 4rem);
}

.hero-art, .hero-shade { position: absolute; inset: 0; height: 100%; }
.hero-art { object-fit: cover; object-position: center; z-index: -3; }

.hero-shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(5, 7, 13, 0.9), rgba(5, 7, 13, 0.25) 48%, rgba(5, 7, 13, 0.68)),
    linear-gradient(0deg, #05070d 0, transparent 42%);
}

.topbar {
  position: absolute;
  top: 1rem;
  left: clamp(1rem, 4vw, 4rem);
  right: clamp(1rem, 4vw, 4rem);
  display: flex;
  justify-content: flex-end;
  gap: 0.45rem;
}

.topbar a, .button, .name-button {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(7, 12, 28, 0.58);
  backdrop-filter: blur(14px);
}

.topbar a { padding: 0.58rem 0.8rem; font-size: 0.86rem; }

.hero-copy {
  width: min(760px, 100%);
  margin-bottom: clamp(2rem, 7vh, 5rem);
  text-shadow: 0 18px 48px rgba(0, 0, 0, 0.72);
}

.kicker, .label {
  display: block;
  color: var(--rose);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1, h2, h3 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  line-height: 0.98;
  letter-spacing: 0;
}

h1 {
  margin-top: 0.6rem;
  max-width: 8.5ch;
  color: var(--cream);
  font-size: clamp(4rem, 11vw, 9.5rem);
}

.logline {
  max-width: 700px;
  margin: 1.2rem 0 0;
  color: rgba(238, 245, 255, 0.9);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.2rem, 2.2vw, 1.68rem);
  line-height: 1.45;
}

.hero-actions, .oracle-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.8rem;
}

.button, .name-button {
  min-height: 46px;
  padding: 0.78rem 1rem;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button.primary, .name-button.large {
  background: linear-gradient(135deg, rgba(18, 62, 115, 0.9), rgba(181, 35, 61, 0.72));
  border-color: rgba(242, 223, 207, 0.45);
}

.button:hover, .name-button:hover, .button[aria-pressed="true"] {
  transform: translateY(-1px);
  border-color: rgba(242, 223, 207, 0.78);
}

.characters, .realisation, .plot, .gallery-section, .quote-oracle, .closing {
  padding: clamp(3rem, 7vw, 6.5rem) clamp(1rem, 4vw, 4rem);
}

.characters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
}

.character-card {
  display: grid;
  grid-template-columns: minmax(210px, 0.75fr) minmax(240px, 1fr);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: end;
  min-height: 520px;
  padding: clamp(1rem, 3vw, 2rem);
  background:
    radial-gradient(circle at 80% 20%, rgba(181, 35, 61, 0.2), transparent 18rem),
    linear-gradient(145deg, #091127, #05070d);
}

.character-card img {
  height: min(62vh, 560px);
  object-fit: cover;
  border: 1px solid var(--line);
}

.character-card p {
  margin: 1rem 0 0;
  color: var(--muted);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  line-height: 1.45;
}

.name-button {
  color: var(--cream);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
}

.realisation {
  background: radial-gradient(circle at 15% 30%, rgba(35, 128, 200, 0.24), transparent 24rem), #05070d;
}

.section-title {
  width: min(1120px, 100%);
  margin: 0 auto 2rem;
}

.section-title h2, .quote-oracle h2 {
  margin-top: 0.55rem;
  color: var(--cream);
  font-size: clamp(2rem, 5.6vw, 5rem);
}

.quote-strip, .plot-grid {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.quote-strip { grid-template-columns: repeat(3, 1fr); }
.plot-grid { grid-template-columns: repeat(4, 1fr); }

blockquote {
  margin: 0;
  color: var(--cream);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: clamp(1.45rem, 3vw, 2.4rem);
  line-height: 1.13;
}

.quote-strip blockquote, .plot-grid article {
  min-height: 270px;
  padding: clamp(1.2rem, 3vw, 2rem);
  background: linear-gradient(145deg, rgba(35, 128, 200, 0.18), rgba(181, 35, 61, 0.13)), #091127;
}

.plot { background: linear-gradient(180deg, #05070d, #071225); }
.plot-grid strong { color: var(--cream); font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.55rem; }
.plot-grid p { color: var(--muted); line-height: 1.6; }

.gallery-section {
  background:
    linear-gradient(180deg, #071225, #05070d),
    repeating-linear-gradient(90deg, rgba(238, 245, 255, 0.04) 0 1px, transparent 1px 7rem);
}

.gallery {
  width: min(1320px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.65rem;
}

figure {
  position: relative;
  margin: 0;
  min-height: 260px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--glass);
}

figure:nth-child(1), figure:nth-child(4), figure:nth-child(9) { grid-column: span 2; }

figure img {
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  filter: saturate(0.95) contrast(1.05);
  transition: transform 400ms ease, filter 400ms ease;
}

figure:hover img { transform: scale(1.04); filter: saturate(1.18) contrast(1.08); }

figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(5, 7, 13, 0.82), transparent 58%);
}

figcaption {
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.8rem;
  z-index: 1;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.quote-oracle {
  min-height: 68vh;
  background: linear-gradient(0deg, rgba(5, 7, 13, 0.92), rgba(5, 7, 13, 0.35)), url("assets/matt-jo-rehearsal.png") center / cover;
}

.quote-oracle > * {
  width: min(980px, 100%);
  margin-left: auto;
  margin-right: auto;
}

#randomQuote {
  margin-top: 2rem;
  padding: clamp(1.2rem, 3vw, 2rem);
  border-left: 3px solid var(--red);
  background: rgba(7, 12, 28, 0.62);
  backdrop-filter: blur(12px);
}

.closing {
  min-height: 48vh;
  display: grid;
  place-items: center;
  background: linear-gradient(0deg, rgba(5, 7, 13, 0.96), rgba(5, 7, 13, 0.42)), url("assets/gallery/04-rehearsal-floor.jpg") center / cover fixed;
}

.closing p {
  width: min(860px, 100%);
  margin: 0;
  color: var(--cream);
  text-align: center;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.2rem, 6vw, 5.2rem);
  line-height: 1.02;
}

footer {
  padding: 1rem clamp(1rem, 4vw, 4rem);
  color: rgba(238, 245, 255, 0.58);
  background: #05070d;
  font-size: 0.82rem;
}

footer p { margin: 0 auto; width: min(1120px, 100%); }

@media (max-width: 1100px) {
  .characters, .quote-strip, .plot-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 720px) {
  .hero { min-height: 92vh; padding-top: 5rem; }
  .topbar { justify-content: flex-start; overflow-x: auto; }
  h1 { font-size: clamp(3.3rem, 16vw, 5.4rem); }
  .button, .name-button.large { width: 100%; text-align: center; }
  .character-card { grid-template-columns: 1fr; min-height: auto; }
  .character-card img { height: 420px; }
  .gallery { grid-template-columns: 1fr 1fr; }
  figure:nth-child(1), figure:nth-child(4), figure:nth-child(9) { grid-column: auto; }
}

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