/* Desktop and tablet content-led sections. Phones retain their existing flow. */
.contact-intro { display: contents; }
html.phone-deck .contact-desktop-sentence { display: none; }
html:not(.phone-deck) body.section3-preview main#main-content {
  & :is(.about, .lessons) .section-stage {
    grid-template-rows: 118.8px minmax(0, 1fr) 59.4px;
  }
  & .contact .section-stage {
    grid-template-rows: 118.8px minmax(0, 1fr) 118.8px;
  }
  & :is(.about, .lessons, .contact) .section-body { grid-row: 2; }
  & .contact .section-heading { display: none; }
  & .contact-layout {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%; gap: 64px; align-items: center;
  }
  & .contact-intro { display: block; min-width: 0; }
  & .contact-intro h2 {
    font-size: 84px; line-height: 1.02; margin: 0 0 32px;
    letter-spacing: -.045em; transform: none;
  }
  & .contact-note { margin: 0; text-align: left; }
  & .contact-intro .email-note { margin: 28px 0 0; }
  & .contact-intro .email-prefix { display: none; }
  & .contact-form { min-width: 0; }
}
html:not(.phone-index) body.section3-preview main#main-content .about-heading #about-title {
  font-size: 36.8px; line-height: 1.05;
}
html.tablet-portrait.phone-index body.section3-preview main#main-content {
  & .contact .section-body { max-width: none; }
  & .contact-layout { gap: 32px; }
  & .contact-intro h2 { font-size: clamp(31.5px, 4.125vw, 43.5px); line-height: 1.08; margin-bottom: 24px; }
  & .contact-intro .email-note { margin-top: 24px; }
  & .contact-intro .email-note a { min-height: 44px; }
}

/* The introductory title and invitation share the same equal-column frame. */
html body.section3-preview main#main-content #intro {
  & .intro-message {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center; gap: 64px; width: 100%; max-width: none;
  }
  & .intro-heading { min-width: 0; container-type: inline-size; }
  & .intro-heading h1 { font-size: min(168px, 22.5cqw); line-height: .84; }
  & .intro-heading h1 em { white-space: nowrap; }
  & .intro-details { min-width: 0; }
  & .intro-copy { margin: 0; max-width: none; font-size: 24px; line-height: 1.5; color: var(--muted); }
  & .discovery-button {
    width: fit-content; max-width: 100%; margin-top: 32px; padding: 17px 26px;
    border: 1px solid #292929; border-radius: 100px; background: #292929; color: #fff;
  }
  & .discovery-button:hover { border-color: #3a3a3a; background: #3a3a3a; }
  & .discovery-button::before { content: none; }
  & .discovery-line { gap: 14px; justify-content: center; }
  & .discovery-line strong { font-size: 15px; line-height: 1.4; font-weight: 500; }
  & .arrow-circle { font-size: 18px; }
  & .intro-steps {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px;
    padding: 0; margin: 40px 0 0; list-style: none; font-family: var(--sans);
  }
  & .intro-steps li { min-width: 0; border-top: .5px solid rgba(41,41,41,.4); padding-top: 14px; }
  & .intro-step-number {
    display: flex; align-items: center; justify-content: center; width: 32px; height: 32px;
    border-radius: 50%; background: rgba(255,255,255,.65); color: var(--ink);
    font-size: 14px; font-weight: 400; line-height: 1;
  }
  & .intro-steps h2 {
    margin: 10px 0 4px; font-family: var(--sans); font-size: 18px;
    font-weight: 500; line-height: 1.4; letter-spacing: 0; color: var(--ink);
  }
  & .intro-steps p { margin: 0; font-size: 16px; font-weight: 300; line-height: 1.5; color: var(--muted); }
}
html.tablet-portrait.phone-index body.section3-preview main#main-content #intro {
  & .intro-message { gap: 32px; }
  & .intro-copy { font-size: 16px; }
  & .discovery-button { padding: 14px 18px; margin-top: 24px; }
  & .discovery-line strong { font-size: 13px; }
  & .intro-steps { gap: 14px; margin-top: 28px; }
  & .intro-step-number { width: 28px; height: 28px; font-size: 12px; }
  & .intro-steps h2 { font-size: 14px; }
  & .intro-steps p { font-size: 12px; }
}
html.phone-deck.phone-index body.section3-preview main#main-content #intro {
  & .intro-message { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 0; }
  & .intro-copy { font-size: 14px; }
  & .discovery-button { width: fit-content; min-height: 44px; padding: 12px 18px; margin-top: 18px; }
  & .discovery-line strong { font-size: 13px; }
  & .intro-steps { gap: 12px; margin-top: 24px; }
  & .intro-steps li { padding-top: 10px; }
  & .intro-step-number { width: 24px; height: 24px; font-size: 11px; }
  & .intro-steps h2 { margin-top: 8px; font-size: 13.5px; }
  & .intro-steps p { font-size: 11.5px; line-height: 1.45; }
}

/* Match the intro pill without changing its existing layout or colours. */
html body.section3-preview main#main-content { --index-primary-height: 57px; }
html.tablet-portrait.phone-index body.section3-preview main#main-content { --index-primary-height: 48.2px; }
html.phone-deck.phone-index body.section3-preview main#main-content { --index-primary-height: 44.2px; }
html body.section3-preview main#main-content #contact .send-button {
  height: var(--contact-primary-height,var(--index-primary-height));
  min-height: var(--contact-primary-height,var(--index-primary-height));
  padding-block: 0; border-radius: 100px;
}

/* A single, overlapping left-to-right reveal; no movement or layout changes. */
@media (prefers-reduced-motion: no-preference) {
  html body.section3-preview main#main-content #intro .intro-steps[data-intro-reveal] {
    & li { position: relative; border-top-color: transparent; --step-delay: 1000ms; }
    & li:nth-child(2) { --step-delay: 2000ms; }
    & li:nth-child(3) { --step-delay: 3000ms; }
    & li::before {
      content: ''; position: absolute; left: 0; right: 0; top: -.5px; height: .5px;
      background: rgba(41,41,41,.4); transform-origin: left center; transform: scaleX(0);
    }
    & li > * { opacity: 0; }
  }
  html body.section3-preview main#main-content #intro .intro-steps[data-intro-reveal="playing"] {
    & li::before { animation: intro-step-line 1s linear var(--step-delay) both; }
    & li > * { animation: intro-step-reveal 1s ease-in-out var(--step-delay) both; }
  }
}
@keyframes intro-step-reveal { from { opacity: 0; } to { opacity: 1; } }
@keyframes intro-step-line { from { transform: scaleX(0); } to { transform: scaleX(1); } }
