/* Preserve-mode refinement layer. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/inter-latin.woff2") format("woff2");
}

:root {
  --accent: #c94f60;
  --accent-rgb: 201, 79, 96;
  --results-red: var(--accent);
  --results-red-rgb: var(--accent-rgb);
  --tutor-red: var(--accent);
  --grey-mid: #747474;
  --radius-card: 22px;
  --radius-input: 14px;
  --radius-pill: 999px;
}

html,
body {
  max-width: 100%;
  overflow-x: clip;
}

html.page-snapping {
  scroll-snap-type: none;
}

html {
  scroll-padding-top: 72px;
}

body {
  background-size: 72px 72px;
}

.site-nav {
  min-height: 72px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.nav-links {
  flex-wrap: nowrap;
}

.nav-links a,
.nav-wordmark,
.nav-cta {
  white-space: nowrap;
}

.nav-cta:active,
.enquiry-submit:active {
  transform: scale(0.98);
}

.logo-block {
  margin-bottom: 0;
  line-height: 1.3;
}

.scroll-cue {
  display: block;
}

.tutor-story__scroll-cue {
  display: none !important;
}

.section {
  position: relative;
  min-height: auto;
  padding-top: clamp(80px, 8vw, 112px);
  padding-bottom: clamp(118px, 11vw, 154px);
  scroll-snap-stop: normal;
}

.section-scroll-guide {
  position: absolute;
  left: 50%;
  bottom: clamp(22px, 3vw, 38px);
  z-index: 12;
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  column-gap: 12px;
  color: var(--ink);
  text-align: center;
  text-decoration: none;
  transform: translateX(-50%);
}

.section-scroll-guide span {
  grid-column: 1;
  color: #777;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.section-scroll-guide strong {
  grid-column: 1;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
}

.section-scroll-guide i {
  grid-column: 2;
  grid-row: 1 / 3;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(10, 10, 10, .18);
  border-radius: 50%;
  font-style: normal;
  animation: sectionGuideNudge 1.8s ease-in-out infinite;
}

.section-scroll-guide:hover i,
.section-scroll-guide:focus-visible i {
  border-color: var(--accent);
  color: var(--accent);
}

@keyframes sectionGuideNudge {
  50% { transform: translateY(5px); }
}

.section-head {
  max-width: 660px;
  margin-bottom: clamp(32px, 4vw, 52px);
}

.section-eyebrow {
  margin-bottom: 16px;
  color: #666666;
}

.section-title {
  max-width: 15ch;
  font-size: clamp(42px, 5.4vw, 72px);
  font-weight: 650;
  line-height: 0.98;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.section-sub {
  max-width: 60ch;
  margin-top: 18px;
  color: #5f5f5f;
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.65;
}

#results,
#tutors,
#reviews {
  min-height: 100svh;
}

#classes .class-section-overlay {
  display: none !important;
}

#classes .class-availability-shell {
  min-height: 0;
  overflow: visible;
  border-radius: var(--radius-card);
  opacity: 1;
  filter: none;
  pointer-events: auto;
  user-select: auto;
}

#classes .class-availability-shell::after {
  display: none;
  content: none;
}

#classes .class-grid,
#classes .class-grid * {
  opacity: 1;
  filter: none;
  text-shadow: none;
  transform: none;
}

.results-bento-card,
.result-panel,
.tutor-story__stage,
.tutor-story__page,
.tutor-story__portrait-clip,
.class-card,
.exam-prep-card,
.testimonial-card,
.testimonial-photo__frame,
.testimonial-mobile-gallery__frame {
  border-radius: var(--radius-card) !important;
}

.testimonial-card blockquote {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
  line-clamp: unset;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #707070;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.multi-select-trigger:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.16);
}

.required-mark,
.cohort-reframe__metric--red strong,
.premier-award-focal-kicker {
  color: var(--accent) !important;
}

#results .summary-reframe__line--2 {
  color: #fff !important;
}

.testimonial-arrow,
.enquiry-submit,
.nav-cta {
  border-radius: var(--radius-pill);
}

.field input,
.field select,
.field textarea,
.multi-select-trigger {
  border-radius: var(--radius-input);
}

.form-status {
  border-radius: var(--radius-input);
}

@media (max-width: 720px) {
  .site-nav {
    min-height: 72px;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .nav-wordmark {
    flex: 0 0 auto;
    max-width: none;
    overflow: visible;
    font-size: 10px;
    letter-spacing: 0.22em;
    text-overflow: clip;
  }

  .nav-links {
    flex: 0 0 auto;
    gap: 0;
  }

  .nav-cta {
    min-width: 153px;
    padding-right: 16px;
    padding-left: 16px;
    text-align: center;
  }

  .section {
    padding-top: 72px;
    padding-bottom: 112px;
  }

  .section-title {
    max-width: 16ch;
    font-size: clamp(38px, 11vw, 54px);
    line-height: 1;
  }

  .section-sub {
    margin-top: 16px;
  }

  #classes .class-availability-shell {
    min-height: 0;
  }

  #classes .section-head,
  #classes .class-availability-shell,
  #classes .class-grid {
    opacity: 1 !important;
    filter: none !important;
  }

  .section-scroll-guide {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .school-logo-track {
    animation: none !important;
    transform: none !important;
  }

  .section-scroll-guide i {
    animation: none;
  }
}
