/* ==========================================================================
   Singspiration! — "The Warm-Up" page-scoped composition
   Concept: the page is staged as one Singspiration session — a crescendo
   from quiet gathering (pp) to full voice (ff), resolving in the invitation.
   No raw hex: color comes from Tailwind token classes in the HTML;
   tints here read currentColor or use white/black keywords + color-mix().
   ========================================================================== */

:root {
  --sp-paper: #f4f3ee;
  --sp-teal: #00bfb2;
}

.sp-page {
  overflow: clip;
}

.sp-shell {
  width: min(82.5rem, calc(100% - 3rem));
  margin-inline: auto;
}
@media (min-width: 1024px) {
  .sp-shell {
    width: min(82.5rem, calc(100% - 4.5rem));
  }
}

/* Score annotation — the dynamics marker that carries the page concept.
   Typographic, subordinate: small italic Noto Sans with a hairline. */
.sp-dynamic {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-family: "Noto Sans", sans-serif;
  font-style: italic;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  line-height: 1;
}
.sp-dynamic::before {
  content: "";
  width: 2.75rem;
  height: 1px;
  background: currentColor;
  opacity: 0.45;
}

/* --------------------------------------------------------------------------
   Act 1 · Hero — pp "gather round"
   -------------------------------------------------------------------------- */
.sp-hero {
  position: relative;
  min-height: 94svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  color: white;
}

.sp-hero__media,
.sp-hero__media img,
.sp-hero__scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.sp-hero__media img {
  object-fit: cover;
  object-position: center 58%;
}

.sp-hero__scrim {
  background:
    linear-gradient(to bottom, color-mix(in srgb, black 58%, transparent), transparent 38%),
    linear-gradient(to top, color-mix(in srgb, black 84%, transparent) 4%, transparent 58%),
    linear-gradient(to right, color-mix(in srgb, black 46%, transparent), transparent 62%);
}

.sp-hero__content {
  position: relative;
  z-index: 2;
  padding-block-end: clamp(4.5rem, 11vh, 7.5rem);
}

.sp-hero__content .sp-dynamic {
  margin-bottom: 1.5rem;
  color: color-mix(in srgb, white 72%, transparent);
}

.sp-hero h1 {
  font-family: "Futura", "Jost", sans-serif;
  font-size: clamp(3rem, 9.2vw, 7.75rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.02em;
}

/* Hero curve — canonical HKVC programme-page transition into the next section */
.sp-hero__curve {
  position: absolute;
  z-index: 5;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 4rem;
  pointer-events: none;
}
@media (min-width: 768px) {
  .sp-hero__curve {
    height: 6rem;
  }
}

/* Masked line for the lights-up entrance (JS-owned; visible without JS).
   Bottom padding gives descenders (g, p) room so the mask doesn't clip them;
   the negative margin keeps the layout box unchanged. */
.sp-mask {
  display: block;
  overflow: hidden;
  padding-block-end: 0.2em;
  margin-block-end: -0.2em;
}
.sp-mask > span {
  display: block;
}

.sp-hero__sub {
  margin-top: 1.5rem;
  max-width: 33rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: color-mix(in srgb, white 85%, transparent);
}

.sp-hero__cta {
  margin-top: 2.25rem;
}

/* --------------------------------------------------------------------------
   Act 2 · Movement I — p "first sound" (What Singspiration! Is)
   -------------------------------------------------------------------------- */
.sp-intro {
  position: relative;
  padding-block: 6rem 7rem;
}
@media (min-width: 768px) {
  .sp-intro {
    padding-block: 8rem 9rem;
  }
}

.sp-intro__grid {
  display: grid;
  gap: 3.5rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .sp-intro__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(4rem, 7vw, 8rem);
  }
}

.sp-intro__copy h2 {
  margin-block: 1rem 1.75rem;
  font-family: "Futura", "Jost", sans-serif;
  font-size: clamp(2.25rem, 4.5vw, 4.3rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.sp-intro__copy > p {
  max-width: 34rem;
  font-size: 1.05rem;
  line-height: 1.75;
  text-wrap: pretty;
}

.sp-intro__copy .sp-dynamic {
  margin-top: 2.75rem;
}

.sp-intro__media {
  position: relative;
  margin: 0;
}
@media (min-width: 1024px) {
  .sp-intro__media {
    /* editorial offset — the photo sits low, breaking the grid line */
    margin-top: 2.5rem;
  }
}

.sp-intro__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 40rem;
  object-fit: cover;
  object-position: center 30%;
  border-radius: 2rem;
}

.sp-intro__media figcaption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.9rem;
  font-size: 0.8rem;
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   Act 3 · Movement II — cresc. "voice by voice" (Programme Features)
   Full-bleed band of tall image strips. Not cards: one continuous stage.
   -------------------------------------------------------------------------- */
.sp-offer {
  position: relative;
  color: white;
  padding-top: 6rem;
}
@media (min-width: 768px) {
  .sp-offer {
    padding-top: 8rem;
  }
}

.sp-offer__intro {
  padding-bottom: 2.5rem;
}
@media (min-width: 768px) {
  .sp-offer__intro {
    padding-bottom: 3rem;
  }
}

.sp-offer__intro h2 {
  margin-block: 1rem 1.5rem;
  font-family: "Futura", "Jost", sans-serif;
  font-size: clamp(2.25rem, 4.5vw, 4.3rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.sp-offer__intro > p {
  max-width: 36rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: color-mix(in srgb, white 78%, transparent);
}

.sp-offer__intro .sp-dynamic {
  margin-top: 2.5rem;
  color: color-mix(in srgb, white 60%, transparent);
}

/* The voice ensemble */
.sp-voices {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
@media (min-width: 900px) {
  .sp-voices {
    flex-direction: row;
    height: min(82vh, 46rem);
    min-height: 34rem;
  }
}

.sp-voice {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 15rem;
  cursor: pointer;
  outline: none;
}
@media (min-width: 900px) {
  .sp-voice {
    flex: 1 1 0%;
    min-height: 0;
    transition: flex-grow 0.85s cubic-bezier(0.22, 0.61, 0.21, 1);
  }
  .sp-voice.is-open {
    flex-grow: 3.6;
  }
}

.sp-voice__hit {
  position: absolute;
  inset: 0;
  z-index: 3;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  border-radius: inherit;
}

.sp-voice img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s cubic-bezier(0.22, 0.61, 0.21, 1);
}
@media (min-width: 900px) {
  .sp-voice.is-open img {
    transform: scale(1.045);
  }
}

.sp-voice__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, color-mix(in srgb, black 78%, transparent) 8%, color-mix(in srgb, black 18%, transparent) 55%, color-mix(in srgb, black 30%, transparent));
  transition: opacity 0.6s ease;
}

.sp-voice__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.75rem;
}

.sp-voice__number {
  font-family: "Noto Sans", sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: color-mix(in srgb, white 62%, transparent);
}

.sp-voice h3 {
  font-family: "Futura", "Jost", sans-serif;
  font-size: clamp(1.4rem, 1.8vw, 1.8rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.sp-voice__desc {
  max-width: 26rem;
  margin-top: 0.85rem;
  font-size: 0.95rem;
  line-height: 1.65;
  color: color-mix(in srgb, white 84%, transparent);
}

/* Desktop rest state: rotated title rail; open state: horizontal title + desc */
@media (min-width: 900px) {
  .sp-voice__content {
    padding: 2rem;
  }
  .sp-voice__desc {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.45s ease 0.12s, transform 0.45s ease 0.12s;
  }
  .sp-voice.is-open .sp-voice__desc {
    opacity: 1;
    transform: translateY(0);
  }

  .sp-voice__rail {
    position: absolute;
    left: 1.6rem;
    bottom: 2rem;
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    transition: opacity 0.3s ease;
  }
  .sp-voice__rail h3 {
    white-space: nowrap;
  }
  .sp-voice.is-open .sp-voice__rail {
    opacity: 0;
  }

  .sp-voice__open-copy {
    transition: opacity 0.3s ease 0.1s;
  }
  .sp-voice:not(.is-open) .sp-voice__open-copy {
    opacity: 0;
  }
}
@media (max-width: 899px) {
  .sp-voice__rail {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Act 4 · Movement III — ff "the whole school" (School Roll Call)
   Bright editorial split: headline + five-level index on the left,
   cinematic photography with ghost WELCOME type on the right.
   -------------------------------------------------------------------------- */
.sp-ff {
  padding-block: 0;
  background: var(--sp-paper, #f4f3ee);
  overflow: clip;
}

.sp-ff__inner {
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .sp-ff__inner {
    grid-template-columns: 44% 56%;
    min-height: 85vh;
  }
}

/* ── Left column: copy + roll call ── */
.sp-ff__copy {
  display: flex;
  flex-direction: column;
  padding: 5.5rem 2.5rem 4rem;
}
@media (min-width: 768px) {
  .sp-ff__copy {
    padding: 7rem 4.5rem 5rem 7rem;
  }
}
@media (min-width: 1280px) {
  .sp-ff__copy {
    padding-left: 10rem;
  }
}

.sp-ff__statement {
  margin: 0;
  font-family: "Futura", "Jost", sans-serif;
  font-size: clamp(3.2rem, 6.5vw, 6.8rem);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.055em;
}
.sp-ff__line {
  display: block;
  overflow: hidden;
}
.sp-ff__line-inner {
  display: block;
}

.sp-ff__support {
  margin: 1.75rem 0 0;
  max-width: 28rem;
  font-size: 1.05rem;
  line-height: 1.72;
  text-wrap: pretty;
}

.sp-ff__levels-label {
  margin: 2.75rem 0 0;
  font-size: 0.85rem;
}

.sp-ff__levels {
  margin: 2.75rem 0 0;
  padding: 0;
  list-style: none;
}

.sp-ff__level {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  min-height: 4.75rem;
  padding: 0 0.5rem;
  border-bottom: 1px solid color-mix(in srgb, currentColor 14%, transparent);
  font-family: "Jost", sans-serif;
  overflow: hidden;
}
.sp-ff__level:first-child {
  border-top: 1px solid color-mix(in srgb, currentColor 14%, transparent);
}
.sp-ff__level::before {
  content: "";
  position: absolute;
  inset: 0;
  background: currentColor;
  transform: translateX(-102%);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.sp-ff__level > * {
  position: relative;
  z-index: 2;
}
.sp-ff__num {
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--sp-teal, #00bfb2);
}
.sp-ff__level strong {
  font-size: clamp(1.5rem, 2vw, 1.9rem);
  font-weight: 500;
}
.sp-ff__voice {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 0.7rem;
  color: color-mix(in srgb, currentColor 55%, transparent);
}
.sp-ff__level.is-active {
  color: white;
  padding-inline: 1rem;
}
.sp-ff__level.is-active::before {
  transform: translateX(0);
}
.sp-ff__level.is-active .sp-ff__num {
  color: var(--sp-teal, #00bfb2);
}
.sp-ff__level.is-active .sp-ff__voice {
  color: color-mix(in srgb, white 70%, transparent);
}

/* ── Right column: cinematic photography ── */
.sp-ff__media {
  position: relative;
  margin: 0;
  overflow: hidden;
  min-height: 50vh;
}
@media (min-width: 768px) {
  .sp-ff__media {
    min-height: unset;
  }
}
.sp-ff__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.sp-ff__media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, color-mix(in srgb, black 30%, transparent), transparent 42%),
    linear-gradient(0deg, color-mix(in srgb, black 34%, transparent), transparent 34%);
  pointer-events: none;
}

.sp-ff__ghost {
  position: absolute;
  z-index: 3;
  left: -1.5rem;
  bottom: 3rem;
  font-family: "Futura", "Jost", sans-serif;
  font-size: clamp(4.5rem, 8vw, 9rem);
  font-weight: 600;
  letter-spacing: -0.07em;
  line-height: 0.75;
  color: white;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  text-shadow: 0 0.5rem 2.2rem color-mix(in srgb, black 24%, transparent);
  pointer-events: none;
}

.sp-ff__caption {
  position: absolute;
  z-index: 3;
  right: 1.75rem;
  bottom: 1.75rem;
  text-align: right;
  color: white;
}
.sp-ff__caption span {
  display: block;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-shadow: 0 2px 12px color-mix(in srgb, black 40%, transparent);
}
.sp-ff__caption strong {
  display: block;
  margin-top: 0.4rem;
  font-family: "Jost", sans-serif;
  font-size: 1.25rem;
  font-weight: 500;
  text-shadow: 0 2px 12px color-mix(in srgb, black 40%, transparent);
}

/* Mobile: levels become a horizontal scroll strip */
@media (max-width: 767px) {
  .sp-ff__levels {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 0;
    margin-inline: -1rem;
    padding-inline: 1rem;
    -webkit-overflow-scrolling: touch;
  }
  .sp-ff__level {
    min-width: 72%;
    scroll-snap-align: start;
    border-bottom: none;
    border-right: 1px solid color-mix(in srgb, currentColor 14%, transparent);
    padding: 1.25rem 1.25rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .sp-ff__level:first-child {
    border-top: none;
  }
  .sp-ff__level:last-child {
    border-right: none;
  }
  .sp-ff__level::before {
    display: none;
  }
  .sp-ff__level.is-active {
    padding-inline: 1.25rem;
    background: transparent;
  }
}

/* --------------------------------------------------------------------------
   Act 5 · Coda — the invitation (enquiry)
   -------------------------------------------------------------------------- */
.sp-enquiry {
  padding-block: 6rem 8rem;
}
@media (min-width: 768px) {
  .sp-enquiry {
    padding-block: 8rem 10rem;
  }
}

.sp-enquiry__grid {
  display: grid;
  gap: 3.5rem;
}
@media (min-width: 1024px) {
  .sp-enquiry__grid {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.35fr);
    gap: clamp(3.5rem, 5.5vw, 6rem);
    align-items: start;
  }
}

@media (min-width: 1024px) {
  .sp-enquiry__aside {
    position: sticky;
    top: 7rem;
  }
}

.sp-enquiry__aside h2 {
  margin-block: 1rem 1.5rem;
  font-family: "Futura", "Jost", sans-serif;
  font-size: clamp(2.25rem, 4vw, 3.9rem);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.sp-enquiry__aside > p {
  max-width: 30rem;
  font-size: 1.02rem;
  line-height: 1.7;
  text-wrap: pretty;
}

.sp-enquiry__aside .sp-dynamic {
  margin-top: 2.5rem;
}

.sp-enquiry__status {
  margin-top: 2.5rem;
  padding: 1.35rem 1.5rem;
  border-radius: 1.25rem;
  font-size: 0.9rem;
  line-height: 1.6;
}

.sp-enquiry__status strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Disabled consent + submit states */
.sp-consent input:disabled + span,
.sp-consent input:disabled ~ label {
  cursor: not-allowed;
}

.sp-submit-note {
  font-size: 0.85rem;
  line-height: 1.55;
}
