:root {
  --navy: #0b1630;
  --navy-deep: #081022;
  --cream: #f6efdf;
  --cream-soft: rgba(246, 239, 223, 0.78);
  --red: #b3242a;
  --gold: #d9b45a;
  --gold-soft: rgba(217, 180, 90, 0.22);
  --ink: #151311;
  --line: rgba(246, 239, 223, 0.22);
  --rainbow-a: #ff4b59;
  --rainbow-b: #f4a43a;
  --rainbow-c: #f5e255;
  --rainbow-d: #45cd74;
  --rainbow-e: #3ea4ff;
  --rainbow-f: #c660ff;
  --shadow: 0 30px 70px rgba(1, 6, 18, 0.36);
  --header: "Oswald", "Arial Narrow", sans-serif;
  --body: "Cormorant Garamond", Georgia, serif;
  --ui: "Public Sans", Arial, sans-serif;
  --content: 1240px;
  --radius: 28px;
}

html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--cream);
  background:
    radial-gradient(circle at top, rgba(217, 180, 90, 0.18), transparent 26%),
    linear-gradient(180deg, #132149 0%, #0d1732 28%, #091022 62%, #07101d 100%);
  font-family: var(--body);
  overflow-x: hidden;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

::selection {
  background: var(--gold);
  color: var(--navy-deep);
}

.page-grain,
.page-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.page-grain {
  z-index: 1;
  opacity: 0.16;
  background-image:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.2) 0 1px, transparent 1px),
    radial-gradient(circle at 74% 36%, rgba(255, 255, 255, 0.15) 0 1px, transparent 1px),
    radial-gradient(circle at 45% 84%, rgba(255, 255, 255, 0.16) 0 1px, transparent 1px);
  background-size: 220px 220px, 280px 280px, 180px 180px;
  mix-blend-mode: screen;
}

.page-glow {
  z-index: 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 75, 89, 0.14), transparent 20%),
    radial-gradient(circle at 80% 16%, rgba(62, 164, 255, 0.14), transparent 20%),
    radial-gradient(circle at 50% 44%, rgba(217, 180, 90, 0.1), transparent 30%);
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 2;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(8, 16, 34, 0.72);
  border-bottom: 1px solid rgba(246, 239, 223, 0.12);
}

.site-header.is-scrolled {
  background: rgba(8, 16, 34, 0.9);
  border-bottom-color: rgba(246, 239, 223, 0.18);
}

.header-inner,
.hero-grid,
.story-shell,
.thesis-grid,
.finale-section,
.site-footer {
  width: min(calc(100% - 2rem), var(--content));
  margin: 0 auto;
}

.header-inner {
  min-height: 88px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.2rem;
}

.brand,
.site-nav a,
.ticket-button,
.section-index,
.section-label,
.card-kicker,
.menu-toggle,
.thesis-number {
  text-transform: uppercase;
}

.brand {
  font-family: var(--header);
  font-size: clamp(1.8rem, 2.6vw, 2.8rem);
  letter-spacing: 0.14em;
  color: var(--cream);
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.site-nav a,
.mobile-menu a {
  font-family: var(--ui);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--cream-soft);
  position: relative;
}

.site-nav a::after,
.mobile-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
  background: linear-gradient(90deg, var(--rainbow-a), var(--rainbow-c), var(--rainbow-e), var(--rainbow-f));
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.mobile-menu a:hover::after,
.mobile-menu a:focus-visible::after {
  transform: scaleX(1);
}

.header-actions,
.ticket-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.ticket-button,
.menu-toggle {
  min-height: 52px;
  padding: 0.92rem 1.35rem;
  border-radius: 999px;
  font-family: var(--ui);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  border: 1px solid rgba(246, 239, 223, 0.22);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.ticket-light {
  color: var(--cream);
  background:
    linear-gradient(180deg, rgba(246, 239, 223, 0.16), rgba(246, 239, 223, 0.05)),
    linear-gradient(135deg, rgba(217, 180, 90, 0.16), rgba(179, 36, 42, 0.18));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 12px 30px rgba(2, 8, 20, 0.3);
}

.ticket-bold {
  color: var(--navy-deep);
  background:
    linear-gradient(90deg, var(--rainbow-a), var(--rainbow-b), var(--rainbow-c), var(--rainbow-d), var(--rainbow-e), var(--rainbow-f));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 16px 34px rgba(0, 0, 0, 0.26);
}

.ticket-button:hover,
.ticket-button:focus-visible,
.menu-toggle:hover,
.menu-toggle:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(246, 239, 223, 0.52);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 18px 36px rgba(1, 6, 18, 0.36);
}

.menu-toggle {
  display: none;
  color: var(--cream);
  background: rgba(246, 239, 223, 0.08);
}

.mobile-menu {
  display: none;
  padding: 0 1rem 1rem;
  background: rgba(8, 16, 34, 0.96);
}

.mobile-menu.is-open {
  display: grid;
  gap: 1rem;
}

.hero-program {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: 5rem 0 4rem;
  overflow: clip;
}

.hero-image-wrap,
.hero-sheen {
  position: absolute;
  inset: 0;
}

.hero-image-wrap img,
.story-visual img,
.finale-media img {
  height: 100%;
  object-fit: cover;
}

.hero-sheen {
  background:
    linear-gradient(180deg, rgba(6, 10, 24, 0.18) 0%, rgba(6, 10, 24, 0.35) 30%, rgba(6, 10, 24, 0.82) 100%),
    linear-gradient(135deg, rgba(255, 75, 89, 0.08), transparent 30%, rgba(198, 96, 255, 0.12) 72%, transparent 100%);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 360px);
  align-items: end;
  gap: 2rem;
}

.hero-copy,
.story-body,
.finale-panel {
  max-width: 760px;
}

.section-index,
.section-label,
.card-kicker,
.thesis-number {
  font-family: var(--ui);
  font-weight: 800;
  letter-spacing: 0.22em;
}

.section-index {
  font-size: 0.8rem;
  color: rgba(246, 239, 223, 0.56);
  margin: 0 0 0.4rem;
}

.section-label {
  font-size: 0.78rem;
  color: var(--gold);
  margin: 0 0 1rem;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--header);
  line-height: 0.95;
  letter-spacing: 0.03em;
}

h1 {
  font-size: clamp(4.6rem, 12vw, 10rem);
}

.hero-copy h1 {
  max-width: 12ch;
  font-size: clamp(3.2rem, 7.8vw, 6.8rem);
  line-height: 0.96;
}

h2 {
  font-size: clamp(2.7rem, 6vw, 5.4rem);
  margin-bottom: 1.25rem;
}

h3 {
  font-size: 1.45rem;
  line-height: 1.06;
  margin-bottom: 0.8rem;
}

.hero-subhead,
.finale-subhead {
  font-family: var(--ui);
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  max-width: 42rem;
  margin: 1rem 0 1.35rem;
}

p,
li,
dd,
dt,
blockquote {
  font-size: clamp(1.28rem, 1.7vw, 1.65rem);
  line-height: 1.22;
}

.hero-story,
.story-body p,
.finale-panel p,
.thesis-card p {
  max-width: 39rem;
  margin: 0 0 1rem;
}

.hero-story.emphasis {
  font-size: clamp(1.55rem, 2.1vw, 2rem);
  color: var(--gold);
}

.program-card,
.notes-card,
.closing-box,
.thesis-card {
  border: 1px solid rgba(246, 239, 223, 0.16);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(246, 239, 223, 0.1), rgba(246, 239, 223, 0.04)),
    rgba(7, 14, 29, 0.68);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.program-card {
  padding: 1.6rem;
}

.event-details {
  margin: 0;
  display: grid;
  gap: 1rem;
}

.event-details div {
  padding-bottom: 0.95rem;
  border-bottom: 1px solid rgba(246, 239, 223, 0.12);
}

.event-details div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.event-details dt {
  margin-bottom: 0.25rem;
  font-family: var(--ui);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: rgba(246, 239, 223, 0.54);
  text-transform: uppercase;
}

.event-details dd {
  margin: 0;
  font-size: 1.4rem;
}

.card-kicker {
  margin: 0 0 1.1rem;
  color: var(--gold);
  font-size: 0.78rem;
}

.card-note,
.image-caption,
.footer-copy {
  font-family: var(--ui);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  line-height: 1.5;
  color: rgba(246, 239, 223, 0.68);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  font-family: var(--ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(246, 239, 223, 0.76);
}

.scroll-cue span::after {
  content: "";
  display: block;
  width: 1px;
  height: 44px;
  margin: 0.9rem auto 0;
  background: linear-gradient(180deg, rgba(246, 239, 223, 0.8), transparent);
}

.story-section,
.finale-section {
  padding: 6rem 0;
  overflow: clip;
}

.story-light {
  background:
    linear-gradient(180deg, rgba(246, 239, 223, 0.96), rgba(240, 228, 203, 0.96)),
    var(--cream);
  color: var(--ink);
}

.story-dark {
  background:
    linear-gradient(180deg, rgba(11, 22, 48, 0.96), rgba(8, 16, 34, 0.98)),
    var(--navy);
  color: var(--cream);
}

.story-light .section-label,
.story-light .card-kicker {
  color: var(--red);
}

.story-light .section-index {
  color: rgba(21, 19, 17, 0.5);
}

.story-light .program-card,
.story-light .notes-card,
.story-light .thesis-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.56), rgba(246, 239, 223, 0.78)),
    rgba(255, 255, 255, 0.4);
  border-color: rgba(21, 19, 17, 0.08);
}

.story-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr) minmax(260px, 320px);
  gap: 2rem;
  align-items: start;
}

.reverse-shell {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  margin-bottom: 2rem;
}

.framed-image {
  min-height: 460px;
  border-radius: 28px;
  border: 1px solid rgba(246, 239, 223, 0.2);
  box-shadow: var(--shadow);
}

.story-light .framed-image {
  border-color: rgba(21, 19, 17, 0.12);
}

blockquote {
  margin: 0 0 1.3rem;
  padding-left: 1rem;
  border-left: 3px solid currentColor;
  font-size: clamp(1.8rem, 2.8vw, 2.6rem);
  font-style: italic;
}

.notes-card {
  padding: 1.5rem;
}

.notes-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.notes-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid rgba(21, 19, 17, 0.12);
  font-size: 1.15rem;
}

.story-dark .notes-list li {
  border-bottom-color: rgba(246, 239, 223, 0.12);
}

.notes-list span,
.notes-list strong {
  font-family: var(--ui);
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.notes-list strong {
  text-align: right;
}

.thesis-lines {
  font-size: clamp(1.55rem, 2.2vw, 2rem);
}

.thesis-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.thesis-card {
  padding: 1.6rem;
}

.thesis-number {
  margin: 0 0 0.7rem;
  font-size: 0.8rem;
  color: var(--gold);
}

.banner-line {
  width: min(calc(100% - 2rem), var(--content));
  margin: 3rem auto 0;
  padding: 1.3rem 1.6rem;
  border-top: 1px solid rgba(246, 239, 223, 0.16);
  border-bottom: 1px solid rgba(246, 239, 223, 0.16);
  font-family: var(--header);
  font-size: clamp(1.9rem, 4.2vw, 4rem);
  letter-spacing: 0.08em;
  text-align: center;
}

.finale-section {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 2rem;
  align-items: stretch;
}

.finale-media,
.finale-panel {
  min-height: 720px;
}

.finale-image {
  height: 100%;
  border-radius: 34px;
  border: 1px solid rgba(246, 239, 223, 0.14);
  box-shadow: var(--shadow);
}

.finale-panel {
  padding: 2rem;
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(246, 239, 223, 0.1), rgba(246, 239, 223, 0.04)),
    linear-gradient(180deg, rgba(255, 75, 89, 0.08), transparent 24%, rgba(62, 164, 255, 0.08) 100%),
    rgba(7, 14, 29, 0.82);
  border: 1px solid rgba(246, 239, 223, 0.16);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.closing-box {
  margin-top: 1.4rem;
  padding: 1.4rem;
}

.site-footer {
  padding: 1.8rem 0 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-brand {
  margin: 0;
  font-family: var(--header);
  font-size: 1.8rem;
  letter-spacing: 0.16em;
}

.footer-copy {
  margin: 0;
  text-align: right;
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

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

@media (max-width: 1120px) {
  .story-shell,
  .reverse-shell,
  .finale-section,
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .notes-card {
    max-width: 32rem;
  }

  .finale-media,
  .finale-panel {
    min-height: auto;
  }
}

@media (max-width: 920px) {
  .site-nav,
  .header-actions {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    justify-self: end;
    align-items: center;
  }

  .header-inner {
    grid-template-columns: auto auto;
  }

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

@media (max-width: 720px) {
  .hero-program,
  .story-section,
  .finale-section {
    padding-top: 4.75rem;
    padding-bottom: 4.5rem;
  }

  .header-inner,
  .hero-grid,
  .story-shell,
  .thesis-grid,
  .finale-section,
  .site-footer {
    width: min(calc(100% - 1.2rem), var(--content));
  }

  .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.65rem;
  }

  .mobile-menu {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem 1rem;
    padding: 0 0.6rem 0.9rem;
  }

  h1 {
    font-size: clamp(3.4rem, 18vw, 6rem);
  }

  .hero-copy h1 {
    max-width: none;
    font-size: clamp(2.6rem, 12.5vw, 4.3rem);
  }

  h2 {
    font-size: clamp(2.25rem, 10vw, 3.4rem);
  }

  p,
  li,
  dd,
  dt,
  blockquote {
    font-size: 1.18rem;
  }

  .program-card,
  .notes-card,
  .thesis-card,
  .finale-panel,
  .closing-box {
    padding: 1.2rem;
  }

  .brand {
    min-width: 0;
    font-size: 1.7rem;
    letter-spacing: 0.08em;
  }

  .menu-toggle {
    display: none;
  }

  .ticket-row {
    flex-direction: column;
    align-items: stretch;
  }

  .ticket-button {
    width: 100%;
    text-align: center;
  }

  .framed-image {
    min-height: 320px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-copy {
    text-align: left;
  }
}
