:root {
  --ink: #f7eee7;
  --muted: #d7beb0;
  --paper: #170c0c;
  --deep: #090607;
  --wine: #8c0f1f;
  --rose: #d63b4c;
  --gold: #caa36d;
  --blue: #102d3d;
  --line: rgba(255, 255, 255, 0.16);
  --shadow: 0 32px 80px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--deep);
  color: var(--ink);
  font-family: "Manrope", sans-serif;
}

button {
  font: inherit;
}

.site-shell {
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 10%, rgba(214, 59, 76, 0.26), transparent 34%),
    linear-gradient(135deg, #080506 0%, #16090b 42%, #0b1b26 100%);
}

.cue-burst {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.cue-burst span {
  display: block;
  max-width: min(880px, 100%);
  color: var(--ink);
  font-family: "Instrument Serif", serif;
  font-size: clamp(3.4rem, 12vw, 10rem);
  line-height: 0.9;
  text-align: center;
  text-shadow: 0 22px 70px rgba(0, 0, 0, 0.72);
  transform: translateY(18px) scale(0.96);
}

.cue-burst.is-showing {
  animation: cueFade 2600ms ease both;
  visibility: visible;
}

.cue-burst.is-showing span {
  animation: cueText 2600ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.cue-burst::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 45%, rgba(214, 59, 76, 0.32), transparent 34%),
    rgba(7, 5, 6, 0.58);
  backdrop-filter: blur(8px);
}

.cue-burst span {
  position: relative;
}

@keyframes cueFade {
  0%,
  100% {
    opacity: 0;
  }
  18%,
  78% {
    opacity: 1;
  }
}

@keyframes cueText {
  0% {
    transform: translateY(18px) scale(0.96);
  }
  24%,
  78% {
    transform: translateY(0) scale(1);
  }
  100% {
    transform: translateY(-12px) scale(1.02);
  }
}

.intro {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(rgba(5, 4, 5, 0.72), rgba(5, 4, 5, 0.84)),
    url("assets/homecoming-surprise-classy.png") center / cover;
  transition: opacity 650ms ease, visibility 650ms ease;
}

.intro.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro__content {
  width: min(860px, 100%);
  text-align: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(3.8rem, 10vw, 9.6rem);
  line-height: 0.86;
  letter-spacing: 0;
  text-transform: uppercase;
}

.intro__copy {
  width: min(680px, 100%);
  margin: 0 auto 34px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.28rem);
  line-height: 1.7;
}

.enter-button,
.song-card__button,
.proposal__button,
.glossary__toggle {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: var(--ink);
  background: linear-gradient(135deg, var(--rose), #69101a);
  box-shadow: 0 18px 46px rgba(214, 59, 76, 0.3);
  cursor: pointer;
}

.enter-button {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 60px;
  padding: 0 26px 0 32px;
  font-weight: 800;
}

.enter-button svg {
  width: 22px;
  fill: currentColor;
}

.hero {
  position: relative;
  min-height: 96vh;
  display: grid;
  align-items: end;
  padding: clamp(28px, 6vw, 72px);
}

.hero__image,
.hero__shade {
  position: absolute;
  inset: 0;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__shade {
  background:
    linear-gradient(90deg, rgba(4, 4, 5, 0.86), rgba(4, 4, 5, 0.2) 58%),
    linear-gradient(0deg, rgba(4, 4, 5, 0.72), transparent 54%);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  padding-bottom: 18px;
}

.hero h2,
.section-heading h2,
.protocol h2,
.proposal h2,
.after-hours h2 {
  font-family: "Instrument Serif", serif;
  font-size: clamp(3rem, 7vw, 7rem);
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: 0;
}

.hero p,
.protocol p,
.proposal p,
.after-hours p {
  color: var(--muted);
  font-size: clamp(1.03rem, 2vw, 1.28rem);
  line-height: 1.75;
}

.hero__answer {
  margin-top: 20px;
  color: var(--ink) !important;
  font-weight: 800;
}

.song-card {
  width: min(520px, 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 34px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(11, 7, 8, 0.72);
  backdrop-filter: blur(18px);
}

.song-card__label {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.song-card__button,
.proposal__button,
.glossary__toggle,
.mood-button,
.detail-card {
  min-height: 44px;
  padding: 0 18px;
  font-weight: 800;
  white-space: nowrap;
}

.proposal__choices {
  position: relative;
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
}

.proposal__button--no {
  position: relative;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
  transition: transform 180ms ease;
}

.briefing,
.countdown-section,
.mood-section,
.protocol,
.details-section,
.sequence-section,
.missed-section,
.line-section,
.proposal,
.after-hours,
.glossary {
  padding: clamp(56px, 8vw, 108px) clamp(22px, 6vw, 72px);
}

.section-heading {
  width: min(980px, 100%);
  margin: 0 auto 34px;
}

.briefing-grid {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.briefing-grid article {
  min-height: 260px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.briefing-grid span {
  color: var(--rose);
  font-weight: 900;
}

.briefing-grid h3 {
  margin: 34px 0 14px;
  font-size: 1.35rem;
}

.briefing-grid p {
  color: var(--muted);
  line-height: 1.75;
}

.countdown-section {
  border-top: 1px solid var(--line);
}

.countdown {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.countdown div {
  padding: clamp(18px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.countdown strong {
  display: block;
  font-family: "Instrument Serif", serif;
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 400;
  line-height: 0.9;
}

.countdown span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mood-section {
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  align-items: center;
  border-top: 1px solid var(--line);
}

.mood-section h2,
.details-section h2,
.sequence-section h2,
.missed-section h2,
.line-section h2 {
  font-family: "Instrument Serif", serif;
  font-size: clamp(2.7rem, 6vw, 5.6rem);
  font-weight: 400;
  line-height: 0.96;
}

.mood-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.mood-button,
.detail-card,
.missed-button,
.line-button {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.mood-button.is-active,
.missed-button.is-active {
  background: linear-gradient(135deg, var(--rose), #69101a);
  box-shadow: 0 18px 46px rgba(214, 59, 76, 0.24);
}

.detail-card.is-active,
.line-button.is-active {
  border-color: rgba(202, 163, 109, 0.62);
  background: rgba(202, 163, 109, 0.08);
}

.mood-result,
.detail-result {
  grid-column: 2;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 2vw, 1.22rem);
  line-height: 1.7;
}

.protocol {
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 38px;
  align-items: center;
  border-top: 1px solid var(--line);
}

.protocol-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.protocol-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.protocol-list span {
  font-family: "Instrument Serif", serif;
  font-size: clamp(2.2rem, 5vw, 4rem);
}

.protocol-list small {
  color: var(--muted);
  text-align: right;
}

.details-section {
  width: min(1180px, 100%);
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.details-section .section-heading {
  width: min(680px, 100%);
  margin: 0 0 26px;
}

.details-section h2 {
  font-size: clamp(2.4rem, 5vw, 4.6rem);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.detail-card {
  min-height: 104px;
  display: grid;
  align-content: end;
  justify-items: start;
  padding: 16px;
  border-radius: 8px;
  text-align: left;
  background: rgba(255, 255, 255, 0.032);
}

.detail-card span {
  font-family: "Instrument Serif", serif;
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: 400;
  line-height: 0.95;
}

.detail-card small {
  margin-top: 10px;
  color: var(--muted);
}

.detail-result {
  width: min(620px, 100%);
  margin-top: 18px;
  font-size: clamp(0.98rem, 1.7vw, 1.1rem);
}

.sequence-section {
  width: min(1180px, 100%);
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.sequence-section .section-heading,
.line-section {
  text-align: center;
}

.sequence-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.sequence-list article {
  min-height: 220px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.038);
}

.sequence-list span {
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sequence-list h3 {
  margin: 42px 0 12px;
  font-size: 1.35rem;
}

.sequence-list p,
.missed-panel p,
.line-result {
  color: var(--muted);
  line-height: 1.75;
}

.missed-section {
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 28px;
  align-items: center;
  border-top: 1px solid var(--line);
}

.missed-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.missed-buttons,
.line-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.missed-button,
.line-button {
  min-height: 42px;
  padding: 0 16px;
  font-weight: 800;
  cursor: pointer;
}

.missed-panel p {
  margin: 24px 0 0;
  font-size: clamp(1.02rem, 2vw, 1.24rem);
}

.line-section {
  width: min(880px, 100%);
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.line-stack {
  justify-content: center;
  margin: 28px 0 22px;
}

.line-result {
  min-height: 34px;
  margin: 0 auto;
  font-size: clamp(1.04rem, 2vw, 1.24rem);
}

.proposal {
  display: grid;
  place-items: center;
  background:
    linear-gradient(rgba(7, 5, 6, 0.64), rgba(7, 5, 6, 0.88)),
    url("assets/homecoming-surprise-classy.png") center / cover fixed;
}

.proposal__card {
  width: min(780px, 100%);
  padding: clamp(26px, 5vw, 54px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(13, 8, 9, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.proposal__result {
  min-height: 34px;
  margin: 10px 0 0;
  color: var(--ink);
  font-weight: 800;
}

.after-hours {
  width: min(900px, calc(100% - 44px));
  margin: 0 auto;
  text-align: center;
}

.after-hours h2 {
  color: var(--rose);
}

.glossary {
  border-top: 1px solid var(--line);
  text-align: center;
}

.glossary__toggle {
  background: transparent;
  box-shadow: none;
}

.glossary__panel {
  width: min(720px, 100%);
  margin: 24px auto 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: left;
  background: rgba(255, 255, 255, 0.045);
}

.glossary__panel p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.6;
}

.glossary__panel p:last-child {
  margin-bottom: 0;
}

@media (max-width: 820px) {
  .hero {
    min-height: 92vh;
    padding: 26px;
  }

  .hero__shade {
    background:
      linear-gradient(0deg, rgba(4, 4, 5, 0.88), rgba(4, 4, 5, 0.2)),
      linear-gradient(90deg, rgba(4, 4, 5, 0.78), rgba(4, 4, 5, 0.18));
  }

  .song-card,
  .protocol,
  .mood-section,
  .missed-section {
    grid-template-columns: 1fr;
  }

  .song-card {
    display: grid;
  }

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

  .protocol {
    width: 100%;
  }

  .countdown,
  .detail-grid,
  .sequence-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .mood-result,
  .detail-result {
    grid-column: 1;
  }

  .protocol-list li {
    display: grid;
  }

  .protocol-list small {
    text-align: left;
  }
}

@media (max-width: 560px) {
  .countdown,
  .detail-grid,
  .sequence-list {
    grid-template-columns: 1fr;
  }
}
