/* ==========================================================================
   ACE VCE — site styles
   Palette: olive leaf (brand), black forest (ink), orange (accent),
   light caramel (accent on dark), cornsilk (paper)
   The token names are from the earlier blue palette: --sky is the brand colour,
   --navy-* is the dark ink, --glow is the light accent used on dark backgrounds.
   ========================================================================== */

:root {
  --sky: #606c38;
  --sky-deep: #4f5a2c;
  --sky-pale: #f4e9c6;
  --glow: #dda15e;
  --navy: #34431f;
  --navy-deep: #283618;
  --navy-soft: #606c38;
  --amber: #f59e0b;
  --amber-deep: #d97706;
  --amber-pale: #fde9b8;
  --cream: #fefae0;
  --cream-deep: #f4ecc6;
  --paper: #fffdf0;
  --ink-rgb: 40, 54, 24;
  --paper-rgb: 255, 253, 240;
  --cream-rgb: 254, 250, 224;

  --font-display: "Outfit", "Segoe UI", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --font-mark: "Josefin Sans", "Segoe UI", system-ui, sans-serif;

  --radius: 22px;
  --radius-lg: 32px;
  --shadow: 0 1px 0 rgba(var(--ink-rgb), 0.06), 0 18px 40px -22px rgba(var(--ink-rgb), 0.35);
  --shadow-lift: 0 1px 0 rgba(var(--ink-rgb), 0.06), 0 28px 50px -24px rgba(var(--ink-rgb), 0.45);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-wipe: cubic-bezier(0.76, 0, 0.24, 1);
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--navy-deep);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

::selection {
  background: var(--amber);
  color: var(--navy-deep);
}

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 6px;
}

[hidden] {
  display: none !important;
}

/* Olive brand sections use light text */
.hero,
.section--sky,
.page-hero--sky,
.way--sky,
.site-header--on-sky:not(.is-scrolled),
.site-header--on-sky:not(.is-scrolled) .brand {
  color: var(--cream);
}
/* Light surfaces always keep dark text, whatever section they sit in */
.card,
.subj,
.chip,
.float-card,
.paper__card,
.fact,
.price,
.scholar-card,
.countdown--light .countdown__unit,
.subject-card__icon,
.subj__icon,
.choice__icon {
  color: var(--navy-deep);
}
.hero .btn--ghost,
.section--sky .btn--ghost,
.page-hero--sky .btn--ghost {
  --btn-fg: var(--cream);
  --btn-hover: var(--cream);
  --btn-hover-fg: var(--navy-deep);
  box-shadow: inset 0 0 0 2px var(--cream);
}

[id] {
  scroll-margin-top: 110px;
}
/* Whole sections line up right under the sticky header */
section[id] {
  scroll-margin-top: 76px;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  background: var(--navy-deep);
  color: var(--paper);
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 12px;
}

/* ---------- Page wipe transition ---------- */

.wipe {
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
}
.wipe__panel {
  position: absolute;
  inset: 0;
  transform: translateX(-101%);
  will-change: transform;
}
.wipe__panel--a {
  background: var(--amber);
}
.wipe__panel--b {
  background: var(--navy-deep);
}

/* Covering: panel slides in from the left */
.wipe.is-covering .wipe__panel {
  transition: transform 0.55s var(--ease-wipe);
  transform: translateX(0);
}
.wipe.is-covering .wipe__panel--b {
  transition-delay: 0.08s;
}

/* Arrived on a new page: start covered, then sweep off to the right */
html.wipe-in .wipe__panel {
  transform: translateX(0);
}
.wipe.is-revealing .wipe__panel {
  transition: transform 0.7s var(--ease-wipe);
  transform: translateX(101%);
}
.wipe.is-revealing .wipe__panel--a {
  transition-delay: 0.1s;
}
/* Failsafe: never leave a page covered if the script doesn't run */
html.wipe-in .wipe {
  animation: wipe-failsafe 0.01s 2.5s forwards;
}
@keyframes wipe-failsafe {
  to {
    visibility: hidden;
  }
}

/* ---------- Announcement bar ---------- */

.announce {
  background: var(--amber);
  color: var(--navy-deep);
  font-size: 14px;
  font-weight: 600;
  position: relative;
  z-index: 60;
}
.announce a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 9px var(--gutter);
  text-decoration: none;
  text-align: center;
}
.announce__pill {
  background: var(--navy-deep);
  color: var(--amber);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  flex-shrink: 0;
}
.announce__arrow {
  transition: transform 0.3s var(--ease-out);
}
.announce a:hover .announce__arrow {
  transform: translateX(4px);
}

/* ---------- Header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background-color 0.3s, box-shadow 0.3s, backdrop-filter 0.3s;
}
.site-header.is-scrolled {
  background: rgba(var(--cream-rgb), 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(var(--ink-rgb), 0.08);
}
.site-header--on-sky:not(.is-scrolled) {
  background: var(--sky);
}
.site-header--on-cream:not(.is-scrolled) {
  background: var(--cream);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--navy-deep);
}
.brand__mark {
  width: 30px;
  height: 36px;
  transition: transform 0.5s var(--ease-out);
}
.brand:hover .brand__mark {
  transform: rotate(-8deg) scale(1.06);
}
.brand__word {
  font-family: var(--font-mark);
  font-weight: 300;
  font-size: 21px;
  letter-spacing: 0.32em;
  margin-right: -0.32em;
  padding-top: 4px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links a {
  position: relative;
  display: block;
  padding: 8px 14px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  transition: background-color 0.25s, color 0.25s;
}
.nav__links a:hover {
  background: var(--navy-deep);
  color: var(--paper);
}
.nav__links a:hover::after {
  opacity: 0;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease-out);
}
.nav__links a:hover::after,
.nav__links a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}
.nav__links .nav__tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--amber);
  color: var(--navy-deep);
  border-radius: 999px;
  vertical-align: 2px;
}

.nav__cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-btn {
  display: none;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: var(--navy-deep);
  color: var(--paper);
  cursor: pointer;
  position: relative;
  z-index: 70;
}
.menu-btn span {
  position: absolute;
  left: 14px;
  right: 14px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.4s var(--ease-out), opacity 0.2s;
}
.menu-btn span:nth-child(1) {
  top: 18px;
}
.menu-btn span:nth-child(2) {
  top: 26px;
}
.menu-btn[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}
.menu-btn[aria-expanded="true"] span:nth-child(2) {
  transform: translateY(-4px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 65;
  background: var(--navy-deep);
  color: var(--paper);
  padding: 110px var(--gutter) 40px;
  display: flex;
  flex-direction: column;
  clip-path: circle(0% at calc(100% - 40px) 40px);
  transition: clip-path 0.6s var(--ease-wipe);
  visibility: hidden;
}
.mobile-menu.is-open {
  clip-path: circle(150% at calc(100% - 40px) 40px);
  visibility: visible;
}
.mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mobile-menu li {
  overflow: hidden;
}
.mobile-menu a {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(34px, 9vw, 52px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.25;
  text-decoration: none;
  transform: translateY(110%);
  transition: transform 0.6s var(--ease-out), color 0.2s;
}
.mobile-menu a:hover,
.mobile-menu a[aria-current="page"] {
  color: var(--amber);
}
.mobile-menu.is-open a {
  transform: translateY(0);
  transition-delay: calc(0.15s + var(--i, 0) * 0.06s);
}
.mobile-menu__foot {
  margin-top: auto;
  color: var(--glow);
  font-size: 15px;
}
.mobile-menu__foot a {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  transform: none;
  color: var(--paper);
}

body.menu-open {
  overflow: hidden;
}
body.menu-open .site-header .brand {
  color: var(--paper);
  position: relative;
  z-index: 70;
}

/* ---------- Buttons ---------- */

.btn {
  --btn-bg: var(--navy-deep);
  --btn-fg: var(--paper);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border: 0;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), color 0.3s;
  -webkit-tap-highlight-color: transparent;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--btn-hover, var(--amber));
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform 0.45s var(--ease-out);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -14px rgba(var(--ink-rgb), 0.55);
  color: var(--btn-hover-fg, var(--navy-deep));
}
.btn:hover::before {
  transform: translateY(0);
}
.btn:active {
  transform: translateY(0) scale(0.98);
}
.btn .arrow {
  width: 18px;
  height: 18px;
  transition: transform 0.35s var(--ease-out);
}
.btn:hover .arrow {
  transform: translateX(4px);
}
.btn--amber {
  --btn-bg: var(--amber);
  --btn-fg: var(--navy-deep);
  --btn-hover: var(--navy-deep);
  --btn-hover-fg: var(--amber);
}
.btn--light {
  --btn-bg: var(--paper);
  --btn-fg: var(--navy-deep);
  --btn-hover: var(--amber);
}
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--navy-deep);
  --btn-hover: var(--navy-deep);
  --btn-hover-fg: var(--paper);
  box-shadow: inset 0 0 0 2px var(--navy-deep);
}
.btn--ghost:hover {
  box-shadow: inset 0 0 0 2px var(--navy-deep);
}
.btn--ghost-light {
  --btn-bg: transparent;
  --btn-fg: var(--paper);
  --btn-hover: var(--paper);
  --btn-hover-fg: var(--navy-deep);
  box-shadow: inset 0 0 0 2px rgba(var(--paper-rgb), 0.7);
}
/* On dark or amber backgrounds the default hover colour would disappear */
.section--navy .btn--amber,
.feature .btn--amber,
.price--navy .btn--amber,
.site-footer .btn--amber,
.apply__aside-card .btn--amber {
  --btn-hover: var(--glow);
  --btn-hover-fg: var(--navy-deep);
}
.cta-band .btn:not(.btn--ghost),
.price--amber .btn,
.scholar-card--amber .btn {
  --btn-hover: var(--paper);
  --btn-hover-fg: var(--navy-deep);
}
.btn--sm {
  padding: 11px 18px;
  font-size: 14px;
}
.btn--lg {
  padding: 18px 32px;
  font-size: 17px;
}

/* ---------- Shared type bits ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mark);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.display {
  font-size: clamp(48px, 8.6vw, 112px);
  letter-spacing: -0.045em;
  line-height: 0.95;
}
.h2 {
  font-size: clamp(36px, 5.4vw, 68px);
  letter-spacing: -0.035em;
}
.h3 {
  font-size: clamp(22px, 2.4vw, 28px);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.lead {
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.6;
  max-width: 38em;
}
.muted {
  color: rgba(var(--ink-rgb), 0.7);
}

.hl {
  position: relative;
  display: inline-block;
  z-index: 0;
  white-space: nowrap;
}
.hl::after {
  content: "";
  position: absolute;
  left: -0.08em;
  right: -0.08em;
  bottom: 0.06em;
  height: 0.36em;
  z-index: -1;
  background: var(--amber);
  border-radius: 0.12em;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.9s var(--ease-out) 0.5s;
}
.is-in .hl::after,
.hl.is-in::after {
  transform: scaleX(1);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--paper);
  font-size: 14px;
  font-weight: 600;
  box-shadow: inset 0 0 0 1.5px rgba(var(--ink-rgb), 0.12);
}
.chip svg {
  width: 16px;
  height: 16px;
  color: var(--amber-deep);
}
a.chip {
  text-decoration: none;
  transition: background-color 0.3s, color 0.3s, box-shadow 0.3s, transform 0.3s var(--ease-out);
}
a.chip svg:last-child {
  transition: transform 0.35s var(--ease-out);
}
a.chip:hover {
  background: var(--navy-deep);
  color: var(--paper);
  box-shadow: none;
  transform: translateY(-2px);
}
a.chip:hover svg {
  color: var(--amber);
}
a.chip:hover svg:last-child {
  transform: translateX(3px);
}

/* ---------- Sections ---------- */

.section {
  padding: clamp(80px, 11vw, 140px) 0;
  position: relative;
}
.section--sky {
  background: var(--sky);
}
.section--navy {
  background: var(--navy-deep);
  color: var(--paper);
}
.section--amber {
  background: var(--amber);
}
.section--cream {
  background: var(--cream);
}
.section--paper {
  background: var(--paper);
}
.section__head {
  display: grid;
  gap: 18px;
  margin-bottom: clamp(40px, 6vw, 72px);
  max-width: 760px;
}
.section__head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  justify-items: center;
}

/* Wavy divider between coloured sections */
.edge {
  display: block;
  width: 100%;
  height: 48px;
  margin-bottom: -1px;
}

/* ---------- Reveal on scroll ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 0.08s);
}
[data-reveal="left"] {
  transform: translateX(-36px);
}
[data-reveal="right"] {
  transform: translateX(36px);
}
[data-reveal="scale"] {
  transform: scale(0.94);
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* Headline word-by-word rise */
.rise {
  display: inline-block;
  vertical-align: bottom;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
  clip-path: inset(-0.6em -0.6em 0 -0.6em);
}
.rise > span {
  display: inline-block;
  transform: translateY(105%);
  transition: transform 0.95s var(--ease-out);
  transition-delay: calc(0.15s + var(--i, 0) * 0.07s);
}
.is-in .rise > span,
.rise.is-in > span {
  transform: translateY(0);
}

/* ---------- Spade line art ---------- */

.spade path {
  fill: none;
  stroke: currentColor;
  stroke-width: var(--spade-w, 1.1);
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.spade--draw path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
/* Draws itself in, holds, sweeps away, and repeats for as long as the page is open */
.is-in .spade--draw path,
.spade--draw.is-in path {
  animation: spade-loop 9s var(--ease-wipe) infinite;
  animation-delay: calc(0.2s + var(--d, 0) * 0.14s);
}
@keyframes spade-loop {
  0% {
    stroke-dashoffset: 1;
  }
  32%,
  70% {
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dashoffset: -1;
  }
}
/* A faint copy underneath so the shape never fully disappears */
.spade--ghost {
  opacity: 0.35;
}
/* An amber spark that travels round the outline */
.spade__spark {
  fill: none;
  stroke: var(--amber);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-dasharray: 0.07 0.93;
  vector-effect: non-scaling-stroke;
  animation: spark 7s linear infinite;
}
@keyframes spark {
  to {
    stroke-dashoffset: -1;
  }
}

/* ---------- Hero (home) ---------- */

.hero {
  background: var(--sky);
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 6vw, 80px) 0 clamp(70px, 9vw, 120px);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero__copy {
  display: grid;
  gap: 26px;
  position: relative;
  z-index: 2;
}
.hero__title {
  font-size: clamp(50px, 7.8vw, 112px);
  letter-spacing: -0.045em;
  line-height: 0.92;
}
.hero__title .hl::after {
  height: 0.3em;
  bottom: 0.08em;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero__visual {
  position: relative;
  justify-self: center;
  width: min(100%, 440px);
}
.hero__spade {
  position: absolute;
  inset: -8% -14% -4% -14%;
  color: var(--navy-deep);
  opacity: 0.18;
  z-index: 0;
}
.portrait {
  position: relative;
  z-index: 1;
  border-radius: 999px 999px var(--radius-lg) var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--navy);
  box-shadow: 0 30px 60px -30px rgba(var(--ink-rgb), 0.6);
}
.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.08);
  transition: transform 1.6s var(--ease-out);
}
.is-in .portrait img,
.portrait.is-in img {
  transform: scale(1);
}

.float-card {
  text-decoration: none;
  color: var(--navy-deep);
  position: absolute;
  z-index: 3;
  background: var(--paper);
  border-radius: 18px;
  padding: 12px 16px;
  box-shadow: var(--shadow-lift);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: bob 6s ease-in-out infinite;
  animation-delay: var(--bob, 0s);
}
.float-card__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 30px;
  letter-spacing: -0.03em;
  line-height: 1;
}
.float-card__label {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  color: rgba(var(--ink-rgb), 0.7);
}
.float-card--atar {
  left: -12%;
  bottom: 14%;
  background: var(--navy-deep);
  color: var(--paper);
}
.float-card--atar .float-card__num {
  color: var(--amber);
  font-size: 40px;
}
.float-card--atar .float-card__label {
  color: var(--glow);
}
.float-card--scores {
  right: -8%;
  top: 12%;
  --bob: -2s;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  padding: 14px 16px;
}
.score-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  font-weight: 600;
}
.score-row b {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
}
.float-card--badge {
  right: 4%;
  bottom: -4%;
  --bob: -4s;
  background: var(--amber);
  font-weight: 700;
  font-size: 14px;
  padding: 10px 16px;
}
.float-card--badge svg {
  width: 20px;
  height: 20px;
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* ---------- Marquee ---------- */

.marquee {
  background: var(--navy-deep);
  color: var(--paper);
  overflow: hidden;
  padding: 20px 0;
  border-block: 1px solid rgba(var(--paper-rgb), 0.08);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 70s linear infinite;
}
.marquee__group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(22px, 2.6vw, 32px);
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.marquee__item svg {
  width: 22px;
  height: 26px;
  color: var(--amber);
  --spade-w: 1;
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Feature (summer course on home) ---------- */

.feature {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(28px, 4vw, 56px);
  background: var(--navy-deep);
  color: var(--paper);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 64px);
  position: relative;
  overflow: hidden;
}
.feature__spade {
  position: absolute;
  right: -60px;
  bottom: -90px;
  width: 340px;
  color: var(--glow);
  opacity: 0.12;
}
.feature__copy {
  display: grid;
  gap: 22px;
  align-content: start;
  position: relative;
}
.feature .eyebrow {
  color: var(--amber);
}
.feature__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.feature__facts .chip {
  background: rgba(var(--paper-rgb), 0.08);
  color: var(--paper);
  box-shadow: inset 0 0 0 1.5px rgba(var(--paper-rgb), 0.14);
}
.feature__facts .chip svg {
  color: var(--amber);
}
.feature__side {
  display: grid;
  gap: 14px;
  align-content: start;
  position: relative;
}
.scholar-card {
  background: var(--paper);
  color: var(--navy-deep);
  border-radius: var(--radius);
  padding: 22px 24px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 18px;
  align-items: center;
  transition: transform 0.4s var(--ease-out);
}
.scholar-card:hover {
  transform: translateX(-6px) rotate(-0.6deg);
}
.scholar-card__count {
  grid-row: span 2;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 54px;
  line-height: 1;
  letter-spacing: -0.04em;
  min-width: 1.1em;
  text-align: center;
}
.scholar-card__count svg {
  width: 34px;
  height: 34px;
  margin: 0 auto;
}
.scholar-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  line-height: 1.2;
}
.scholar-card__desc {
  font-size: 14.5px;
  color: rgba(var(--ink-rgb), 0.72);
  line-height: 1.45;
}
.scholar-card--amber {
  background: var(--amber);
}
.scholar-card--amber .scholar-card__desc {
  color: rgba(var(--ink-rgb), 0.8);
}

/* ---------- Countdown ---------- */

.countdown {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.countdown__unit {
  min-width: 64px;
  padding: 10px 8px 8px;
  border-radius: 14px;
  background: rgba(var(--paper-rgb), 0.08);
  text-align: center;
  box-shadow: inset 0 0 0 1.5px rgba(var(--paper-rgb), 0.12);
}
.countdown__num {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 30px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.countdown__lbl {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.7;
}
.countdown--light .countdown__unit {
  background: var(--paper);
  box-shadow: inset 0 0 0 1.5px rgba(var(--ink-rgb), 0.1);
}
.countdown__num.tick {
  animation: tick 0.4s var(--ease-out);
}
@keyframes tick {
  0% {
    transform: translateY(-30%);
    opacity: 0.2;
  }
  100% {
    transform: none;
    opacity: 1;
  }
}
.countdown-wrap {
  display: grid;
  gap: 10px;
}
.countdown-wrap__label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- Cards / grids ---------- */

.grid {
  display: grid;
  gap: 18px;
}
.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 34px);
  box-shadow: var(--shadow);
  position: relative;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}
.card--hover:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift), inset 0 0 0 2px var(--amber);
}

.subject-card {
  display: grid;
  gap: 14px;
  align-content: start;
  text-decoration: none;
  overflow: hidden;
  min-height: 280px;
}
.subject-card__icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: var(--glow);
  transition: transform 0.5s var(--ease-out), background-color 0.3s;
}
.subject-card__icon svg {
  width: 28px;
  height: 28px;
}
.subject-card:hover .subject-card__icon {
  transform: rotate(-10deg) scale(1.08);
  background: var(--amber);
}
.subject-card__level {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy-soft);
}
.subject-card__more {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
}
.subject-card__more svg {
  width: 18px;
  height: 18px;
  transition: transform 0.35s var(--ease-out);
}
.subject-card:hover .subject-card__more svg {
  transform: translateX(5px);
}
.subject-card__score {
  position: absolute;
  top: 22px;
  right: 22px;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--navy-deep);
  color: var(--amber);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 24px;
  line-height: 1;
  transition: transform 0.5s var(--ease-out);
}
.subject-card__score small {
  display: block;
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--glow);
  text-transform: uppercase;
  margin-top: 2px;
}
.subject-card:hover .subject-card__score {
  transform: rotate(12deg) scale(1.06);
}

/* ---------- Stats ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}
.stat {
  padding: 10px clamp(12px, 2.4vw, 32px);
  border-left: 1px solid rgba(var(--paper-rgb), 0.14);
  display: grid;
  gap: 8px;
}
.stat:first-child {
  border-left: 0;
  padding-left: 0;
}
.stat__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(48px, 6.5vw, 88px);
  letter-spacing: -0.05em;
  line-height: 0.9;
  color: var(--amber);
  font-variant-numeric: tabular-nums;
}
.stat__label {
  font-size: 15px;
  color: var(--glow);
  font-weight: 600;
}

/* ---------- Steps ---------- */

.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.step {
  display: grid;
  gap: 12px;
  align-content: start;
}
.step__num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--navy-deep);
  color: var(--amber);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  transition: transform 0.5s var(--ease-out);
}
.step:hover .step__num {
  transform: scale(1.1) rotate(-8deg);
}

/* ---------- Split (tutor teaser / about) ---------- */

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}
.split--rev {
  grid-template-columns: 1.1fr 0.9fr;
}
.split__media {
  position: relative;
}
.split__copy {
  display: grid;
  gap: 22px;
}
.photo-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: 0 30px 60px -30px rgba(var(--ink-rgb), 0.55);
}
.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.photo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--amber);
  transform-origin: right;
  transition: transform 1.1s var(--ease-wipe) 0.15s;
}
.is-in .photo-frame::after,
.photo-frame.is-in::after {
  transform: scaleX(0);
}
.sticker {
  position: absolute;
  z-index: 2;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--amber);
  display: grid;
  place-items: center;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1;
  box-shadow: var(--shadow-lift);
  right: -18px;
  bottom: -18px;
}
.sticker__ring {
  position: absolute;
  inset: 6px;
  animation: spin 18s linear infinite;
}
.sticker__ring text {
  font-family: var(--font-mark);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  fill: var(--navy-deep);
  text-transform: uppercase;
}
.sticker__mid {
  font-size: 28px;
  letter-spacing: -0.03em;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.tick-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.tick-list li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 12px;
  align-items: start;
}
.tick-list svg {
  width: 26px;
  height: 26px;
  padding: 5px;
  border-radius: 50%;
  background: var(--amber);
  color: var(--navy-deep);
  margin-top: 1px;
}
.section--navy .tick-list svg {
  background: var(--amber);
}

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--amber);
  position: relative;
  overflow: hidden;
  padding: clamp(80px, 10vw, 130px) 0;
  text-align: center;
}
.cta-band__inner {
  display: grid;
  gap: 24px;
  justify-items: center;
  position: relative;
  z-index: 1;
}
.cta-band__spade {
  position: absolute;
  width: 260px;
  color: var(--navy-deep);
  opacity: 0.12;
}
.cta-band__spade--l {
  left: -60px;
  top: -40px;
  transform: rotate(-18deg);
}
.cta-band__spade--r {
  right: -50px;
  bottom: -70px;
  transform: rotate(16deg);
}

/* ---------- Page hero (inner pages) ---------- */

.page-hero {
  padding: clamp(56px, 8vw, 110px) 0 clamp(64px, 8vw, 110px);
  position: relative;
  overflow: hidden;
}
.page-hero--sky {
  background: var(--sky);
}
.page-hero--cream {
  background: var(--cream);
}
.page-hero__inner {
  display: grid;
  gap: 24px;
  max-width: 900px;
  position: relative;
  z-index: 1;
}
.page-hero__spade {
  position: absolute;
  right: max(-80px, calc((100vw - var(--max)) / 2 - 120px));
  top: 50%;
  translate: 0 -50%;
  width: clamp(240px, 32vw, 440px);
  color: var(--navy-deep);
  opacity: 0.14;
}

/* ---------- Summer page ---------- */

.facts {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.fact {
  background: var(--paper);
  border-radius: 20px;
  padding: 20px;
  display: grid;
  gap: 4px;
  box-shadow: var(--shadow);
  transition: transform 0.4s var(--ease-out);
}
.fact:hover {
  transform: translateY(-4px) rotate(-1deg);
}
.fact__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 38px;
  letter-spacing: -0.04em;
  line-height: 1;
}
.fact__label {
  font-size: 14px;
  font-weight: 600;
  color: rgba(var(--ink-rgb), 0.7);
  line-height: 1.35;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 15px;
  height: 3px;
  background: rgba(var(--paper-rgb), 0.16);
  border-radius: 3px;
}
.timeline::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 15px;
  height: 3px;
  background: var(--amber);
  border-radius: 3px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.8s var(--ease-out) 0.3s;
}
.timeline.is-in::after {
  transform: scaleX(1);
}
.timeline li {
  position: relative;
  padding: 50px 18px 0 0;
  display: grid;
  gap: 6px;
  align-content: start;
}
.timeline li::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 0;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: var(--navy-deep);
  box-shadow: inset 0 0 0 4px var(--amber);
  z-index: 1;
  transform: scale(0);
  transition: transform 0.5s var(--ease-out);
  transition-delay: calc(0.4s + var(--i, 0) * 0.35s);
}
.timeline.is-in li::before {
  transform: scale(1);
}
.timeline__date {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.02em;
  color: var(--amber);
  line-height: 1.1;
}
.timeline__what {
  font-weight: 600;
}
.timeline__note {
  font-size: 14.5px;
  color: var(--glow);
}

.groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.group-card {
  display: grid;
  gap: 18px;
  align-content: start;
}
.group-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.group-card__tags .chip {
  background: var(--sky-pale);
  box-shadow: none;
}

.pricing {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}
.price {
  display: grid;
  gap: 16px;
  align-content: start;
  border-radius: var(--radius-lg);
  padding: clamp(26px, 3vw, 36px);
  background: var(--paper);
  box-shadow: var(--shadow);
  position: relative;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}
.price:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lift);
}
.price__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
}
.price__amount {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.price__amount b {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(56px, 6vw, 72px);
  letter-spacing: -0.05em;
  line-height: 0.9;
}
.price__amount s {
  font-size: 20px;
  font-weight: 600;
  opacity: 0.5;
}
.price__per {
  font-size: 14.5px;
  font-weight: 600;
  color: rgba(var(--ink-rgb), 0.65);
}
.price__ribbon {
  position: absolute;
  top: 22px;
  right: 22px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--navy-deep);
  color: var(--amber);
}
.price .tick-list {
  font-size: 15px;
  gap: 10px;
}
.price .tick-list li {
  grid-template-columns: 22px 1fr;
  gap: 10px;
}
.price .tick-list svg {
  width: 22px;
  height: 22px;
  padding: 4px;
}
.price--amber {
  background: var(--amber);
}
.price--amber .price__per {
  color: rgba(var(--ink-rgb), 0.75);
}
.price--amber .tick-list svg {
  background: var(--navy-deep);
  color: var(--amber);
}
.price--navy {
  background: var(--navy-deep);
  color: var(--paper);
}
.price--navy .price__per {
  color: var(--glow);
}
.price--navy .price__ribbon {
  background: var(--amber);
  color: var(--navy-deep);
}
.price .btn {
  margin-top: 6px;
}
.price__spacer {
  flex: 1;
}

/* FAQ */
.faq {
  display: grid;
  gap: 12px;
  max-width: 860px;
  margin: 0 auto;
}
.faq details {
  background: var(--paper);
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 26px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq__icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--sky-pale);
  position: relative;
  transition: background-color 0.3s, transform 0.4s var(--ease-out);
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 2px;
  background: var(--navy-deep);
  border-radius: 2px;
  translate: -50% -50%;
  transition: transform 0.4s var(--ease-out);
}
.faq__icon::after {
  transform: rotate(90deg);
}
.faq details[open] .faq__icon {
  background: var(--amber);
  transform: rotate(180deg);
}
.faq details[open] .faq__icon::after {
  transform: rotate(0deg);
}
.faq__body {
  padding: 0 26px 24px;
  color: rgba(var(--ink-rgb), 0.78);
}
.faq__body p + p {
  margin-top: 10px;
}

/* ---------- Subjects page ---------- */

.subject-row {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(24px, 4vw, 56px);
  padding: clamp(32px, 4vw, 48px) 0;
  border-top: 2px solid rgba(var(--ink-rgb), 0.1);
  align-items: start;
}
.subject-row:last-child {
  border-bottom: 2px solid rgba(var(--ink-rgb), 0.1);
}
.subject-row__head {
  display: grid;
  gap: 12px;
  align-content: start;
}
.subject-row__big {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(34px, 4.4vw, 54px);
  letter-spacing: -0.04em;
  line-height: 1;
}
.subject-row__body {
  display: grid;
  gap: 18px;
}
.topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.topics .chip {
  transition: transform 0.3s var(--ease-out), background-color 0.3s;
}
.topics .chip:hover {
  transform: translateY(-3px);
  background: var(--amber-pale);
}
.score-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  background: var(--navy-deep);
  color: var(--paper);
  font-size: 14px;
  font-weight: 600;
  justify-self: start;
}
.score-badge b {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--amber);
  color: var(--navy-deep);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
}

.ways {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.way {
  display: grid;
  gap: 16px;
  align-content: start;
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 44px);
}
.way--sky {
  background: var(--sky);
}
.way--navy {
  background: var(--navy-deep);
  color: var(--paper);
}
.way .btn {
  justify-self: start;
  margin-top: 8px;
}

/* ---------- About page ---------- */

.score-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.score-tile {
  border-radius: var(--radius);
  padding: 22px;
  background: var(--paper);
  box-shadow: var(--shadow);
  display: grid;
  gap: 6px;
  transition: transform 0.4s var(--ease-out);
}
.score-tile:hover {
  transform: translateY(-5px) rotate(1deg);
}
.score-tile b {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 4.6vw, 56px);
  letter-spacing: -0.05em;
  line-height: 1;
}
.score-tile span {
  font-size: 14.5px;
  font-weight: 600;
  color: rgba(var(--ink-rgb), 0.7);
}
.score-tile--navy {
  background: var(--navy-deep);
  color: var(--paper);
}
.score-tile--navy b {
  color: var(--amber);
}
.score-tile--navy span {
  color: var(--glow);
}

.prose {
  display: grid;
  gap: 18px;
  font-size: 18px;
}
.prose strong {
  font-weight: 700;
  background: linear-gradient(transparent 62%, var(--amber-pale) 62%);
}

.quote {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 3.6vw, 46px);
  letter-spacing: -0.03em;
  line-height: 1.15;
  max-width: 22em;
}
.quote em {
  font-style: normal;
  color: var(--amber);
}

/* ---------- Resources page ---------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
}
.filter-btn {
  border: 0;
  cursor: pointer;
  padding: 11px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1.5px rgba(var(--ink-rgb), 0.14);
  transition: background-color 0.25s, color 0.25s, transform 0.3s var(--ease-out);
}
.filter-btn:hover {
  transform: translateY(-2px);
}
.filter-btn[aria-pressed="true"] {
  background: var(--navy-deep);
  color: var(--paper);
  box-shadow: none;
}
.filter-btn .count {
  display: inline-block;
  margin-left: 6px;
  min-width: 22px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(var(--ink-rgb), 0.08);
}
.filter-btn[aria-pressed="true"] .count {
  background: var(--amber);
  color: var(--navy-deep);
}

.res-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.res-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out), opacity 0.35s;
}
.res-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
}
.res-card.is-hidden {
  display: none;
}
.res-card__thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--sky-pale);
  overflow: hidden;
}
.res-card__thumb canvas {
  position: absolute;
  left: 50%;
  top: 18px;
  width: 78% !important;
  height: auto !important;
  translate: -50% 0;
  border-radius: 6px 6px 0 0;
  box-shadow: 0 10px 30px -10px rgba(var(--ink-rgb), 0.4);
  background: #fff;
  transition: transform 0.6s var(--ease-out);
}
.res-card:hover .res-card__thumb canvas {
  transform: translateY(-8px) rotate(-1.5deg);
}
.res-card__ph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--navy-soft);
  opacity: 0.4;
}
.res-card__ph svg {
  width: 60px;
}
.res-card__tag {
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 2;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: var(--navy-deep);
  color: var(--paper);
}
.res-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 22px 24px;
  flex: 1;
}
.res-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.res-card__desc {
  font-size: 14.5px;
  color: rgba(var(--ink-rgb), 0.72);
  line-height: 1.55;
  flex: 1;
}
.res-card__actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

/* ---------- Apply page / form ---------- */

.apply {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
.apply__aside {
  display: grid;
  gap: 22px;
  position: sticky;
  top: 100px;
}
.apply__aside-card {
  background: var(--navy-deep);
  color: var(--paper);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 34px);
  display: grid;
  gap: 18px;
}
.apply__aside-card .tick-list {
  font-size: 15.5px;
}

.form-card {
  background: var(--paper);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
  padding: clamp(24px, 4vw, 44px);
  position: relative;
  overflow: hidden;
}
.progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.progress__bar {
  flex: 1;
  height: 6px;
  border-radius: 6px;
  background: var(--sky-pale);
  overflow: hidden;
}
.progress__fill {
  height: 100%;
  width: 25%;
  border-radius: inherit;
  background: var(--amber);
  transition: width 0.6s var(--ease-out);
}
.progress__text {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(var(--ink-rgb), 0.6);
  white-space: nowrap;
}

.form-step {
  display: none;
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.form-step.is-active {
  display: grid;
  gap: 22px;
  animation: stepIn 0.55s var(--ease-out);
}
.form-step.is-back {
  animation-name: stepBack;
}
@keyframes stepIn {
  from {
    opacity: 0;
    transform: translateX(28px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes stepBack {
  from {
    opacity: 0;
    transform: translateX(-28px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.form-step legend {
  padding: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 3vw, 34px);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 20px;
}
.form-step__hint {
  margin-top: -14px;
  color: rgba(var(--ink-rgb), 0.65);
  font-size: 15.5px;
}

.choice-grid {
  display: grid;
  gap: 12px;
}
.choice {
  position: relative;
  display: block;
  cursor: pointer;
}
.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.choice__box {
  display: grid;
  grid-template-columns: 48px 1fr 24px;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  border-radius: 18px;
  background: var(--cream);
  box-shadow: inset 0 0 0 2px transparent;
  transition: box-shadow 0.25s, background-color 0.25s, transform 0.3s var(--ease-out);
}
.choice:hover .choice__box {
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 2px rgba(var(--ink-rgb), 0.18);
}
.choice input:checked + .choice__box {
  background: var(--amber-pale);
  box-shadow: inset 0 0 0 2px var(--navy-deep);
}
.choice input:focus-visible + .choice__box {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}
.choice__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--glow);
}
.choice__icon svg {
  width: 24px;
  height: 24px;
}
.choice__title {
  font-weight: 700;
  font-size: 17px;
  line-height: 1.3;
}
.choice__desc {
  font-size: 14px;
  color: rgba(var(--ink-rgb), 0.68);
  line-height: 1.4;
}
.choice__radio {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px rgba(var(--ink-rgb), 0.3);
  display: grid;
  place-items: center;
  transition: box-shadow 0.25s, background-color 0.25s;
}
.choice__radio::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--amber);
  transform: scale(0);
  transition: transform 0.35s var(--ease-out);
}
.choice input:checked + .choice__box .choice__radio {
  background: var(--navy-deep);
  box-shadow: none;
}
.choice input:checked + .choice__box .choice__radio::after {
  transform: scale(1);
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pill {
  position: relative;
  cursor: pointer;
}
.pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.pill span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--cream);
  font-weight: 600;
  font-size: 15px;
  box-shadow: inset 0 0 0 2px transparent;
  transition: background-color 0.25s, box-shadow 0.25s, transform 0.3s var(--ease-out), color 0.25s;
}
.pill span::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 5px;
  box-shadow: inset 0 0 0 2px rgba(var(--ink-rgb), 0.3);
  transition: background-color 0.25s, box-shadow 0.25s;
}
.pill input[type="radio"] + span::before {
  border-radius: 50%;
}
.pill:hover span {
  transform: translateY(-2px);
}
.pill input:checked + span {
  background: var(--navy-deep);
  color: var(--paper);
  animation: pop 0.35s var(--ease-out);
}
.pill input:checked + span::before {
  background: var(--amber);
  box-shadow: none;
}
.pill input:focus-visible + span {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}
@keyframes pop {
  50% {
    transform: scale(1.06);
  }
}

.field {
  display: grid;
  gap: 8px;
}
.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.label {
  font-weight: 700;
  font-size: 15px;
}
.label .opt {
  font-weight: 500;
  color: rgba(var(--ink-rgb), 0.55);
}
.input,
.select,
.textarea {
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 15px 16px;
  background: var(--cream);
  box-shadow: inset 0 0 0 2px transparent;
  font-size: 16px;
  transition: box-shadow 0.25s, background-color 0.25s;
}
.input:hover,
.select:hover,
.textarea:hover {
  box-shadow: inset 0 0 0 2px rgba(var(--ink-rgb), 0.14);
}
.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  background: var(--paper);
  box-shadow: inset 0 0 0 2px var(--navy-deep), 0 0 0 5px rgba(245, 158, 11, 0.35);
}
.textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.55;
}
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23111d35' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
  cursor: pointer;
}
.field.has-error .input,
.field.has-error .select,
.field.has-error .textarea {
  box-shadow: inset 0 0 0 2px #d9480f;
}
.field-error {
  display: none;
  font-size: 14px;
  font-weight: 600;
  color: #c2410c;
}
.has-error > .field-error {
  display: block;
  animation: shake 0.4s;
}
@keyframes shake {
  25% {
    transform: translateX(-4px);
  }
  75% {
    transform: translateX(4px);
  }
}

.check {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  align-items: start;
  cursor: pointer;
  font-size: 15px;
  line-height: 1.5;
}
.check input {
  appearance: none;
  width: 24px;
  height: 24px;
  margin: 0;
  border-radius: 7px;
  box-shadow: inset 0 0 0 2px rgba(var(--ink-rgb), 0.3);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background-color 0.25s, box-shadow 0.25s;
}
.check input::after {
  content: "";
  width: 12px;
  height: 7px;
  border: 2.5px solid var(--navy-deep);
  border-top: 0;
  border-right: 0;
  transform: rotate(-45deg) scale(0);
  margin-top: -3px;
  transition: transform 0.3s var(--ease-out);
}
.check input:checked {
  background: var(--amber);
  box-shadow: none;
}
.check input:checked::after {
  transform: rotate(-45deg) scale(1);
}

.scholar-box {
  border-radius: 20px;
  padding: 20px;
  background: var(--sky-pale);
  display: grid;
  gap: 16px;
}
.scholar-box__note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
  line-height: 1.5;
}
.scholar-box__note svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  color: var(--amber-deep);
}
.reveal-box {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s var(--ease-out);
}
.reveal-box > div {
  overflow: hidden;
}
.reveal-box.is-open {
  grid-template-rows: 1fr;
}
.reveal-box__inner {
  display: grid;
  gap: 18px;
  padding-top: 4px;
}

.char-count {
  justify-self: end;
  font-size: 13px;
  font-weight: 600;
  color: rgba(var(--ink-rgb), 0.5);
}

.form-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}
.form-nav .btn[hidden] {
  display: none;
}
.form-nav__spacer {
  flex: 1;
}

.form-msg {
  display: none;
  padding: 14px 16px;
  border-radius: 14px;
  background: #fff1e6;
  color: #9a3412;
  font-weight: 600;
  font-size: 15px;
}
.form-msg.is-shown {
  display: block;
}

.form-success {
  display: none;
  text-align: center;
  padding: 20px 0;
  gap: 18px;
  justify-items: center;
}
.form-success.is-shown {
  display: grid;
  animation: stepIn 0.6s var(--ease-out);
}
.success-mark {
  width: 96px;
  height: 96px;
}
.success-mark circle {
  fill: var(--amber);
  transform-origin: center;
  animation: popIn 0.6s var(--ease-out) both;
}
.success-mark path {
  fill: none;
  stroke: var(--navy-deep);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: draw 0.6s var(--ease-out) 0.35s forwards;
}
@keyframes popIn {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}
@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

.btn.is-loading {
  pointer-events: none;
  opacity: 0.85;
}
.btn.is-loading .arrow {
  animation: spin 0.8s linear infinite;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-deep);
  color: var(--paper);
  padding: clamp(64px, 8vw, 100px) 0 0;
  position: relative;
  overflow: hidden;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  position: relative;
  z-index: 1;
}
.footer__brand {
  display: grid;
  gap: 18px;
  align-content: start;
}
.footer__brand .brand {
  color: var(--paper);
}
.footer__tag {
  color: var(--glow);
  max-width: 24em;
}
.footer__title {
  font-family: var(--font-mark);
  font-size: 13px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 16px;
}
.footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.footer__links a {
  text-decoration: none;
  font-weight: 500;
  background: linear-gradient(currentColor, currentColor) left bottom / 0 1.5px no-repeat;
  transition: background-size 0.35s var(--ease-out), color 0.2s;
  padding-bottom: 2px;
}
.footer__links a:hover {
  background-size: 100% 1.5px;
  color: var(--amber);
}
.footer__big {
  margin-top: clamp(36px, 5vw, 64px);
  padding: 0 clamp(8px, 1.5vw, 20px);
  user-select: none;
  pointer-events: none;
  /* crop the bottom of the letters at the edge of the page */
  margin-bottom: -2.2vw;
}
.footer__big svg {
  width: 100%;
  height: auto;
  overflow: visible;
}
.footer__big text {
  font-family: var(--font-mark);
  font-weight: 300;
  fill: url(#footer-fade);
}
.footer__base {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(var(--paper-rgb), 0.12);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 14px;
  color: rgba(var(--paper-rgb), 0.6);
}

/* ---------- Home hero art (animated logo) ---------- */

.hero-art {
  position: relative;
  aspect-ratio: 104 / 120;
  width: 100%;
  color: var(--cream);
  --spade-w: 1.3;
}
.hero-art::before {
  content: "";
  position: absolute;
  inset: 10% -2% 4%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--paper-rgb), 0.12), rgba(var(--paper-rgb), 0.04) 45%, rgba(var(--paper-rgb), 0) 70%);
  animation: glow 7s ease-in-out infinite;
}
.hero-art__spade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.hero-art .spade--ghost {
  opacity: 0.16;
}
@keyframes glow {
  0%,
  100% {
    transform: scale(0.94);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.04);
    opacity: 1;
  }
}

/* Founder tag on the About photo */
.float-card--founder {
  left: -6%;
  top: 7%;
  --bob: -3s;
  background: var(--amber);
  font-weight: 700;
  font-size: 14px;
  padding: 10px 16px 10px 12px;
  gap: 10px;
}
.float-card--founder svg {
  width: 20px;
  height: 24px;
  --spade-w: 1.2;
}

/* ---------- Home: what I teach ---------- */

.section__head--split {
  max-width: none;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: end;
  gap: 18px clamp(24px, 5vw, 64px);
}
.section__head--split > div {
  display: grid;
  gap: 18px;
  justify-items: start;
}
.subj-group + .subj-group {
  margin-top: clamp(36px, 5vw, 56px);
}
.subj-group__label {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  font-family: var(--font-mark);
  font-size: 13px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.subj-group__label::after {
  content: "";
  flex: 1;
  height: 1.5px;
  background: rgba(var(--ink-rgb), 0.22);
}
.subj-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.subj {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 310px;
  padding: clamp(24px, 2.6vw, 30px);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out), color 0.35s;
}
/* Navy fill grows out of the arrow on hover */
.subj::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--navy-deep);
  clip-path: circle(0% at calc(100% - 52px) 52px);
  transition: clip-path 0.7s var(--ease-wipe);
}
.subj:hover {
  color: var(--paper);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
}
.subj:hover::before {
  clip-path: circle(150% at calc(100% - 52px) 52px);
}
.subj__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.subj__icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: var(--glow);
  color: var(--navy-deep);
  transition: transform 0.5s var(--ease-out), background-color 0.3s;
}
.subj__icon svg {
  width: 27px;
  height: 27px;
}
.subj:hover .subj__icon {
  background: var(--amber);
  transform: rotate(-8deg);
}
.subj__arrow {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1.5px rgba(var(--ink-rgb), 0.2);
  transition: transform 0.5s var(--ease-out), background-color 0.3s, box-shadow 0.3s, color 0.3s;
}
.subj__arrow svg {
  width: 19px;
  height: 19px;
}
.subj:hover .subj__arrow {
  background: var(--amber);
  color: var(--navy-deep);
  box-shadow: none;
  transform: rotate(-45deg);
}
.subj__level {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy-soft);
  transition: color 0.3s;
}
.subj__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 2.5vw, 32px);
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.subj__desc {
  flex: 1;
  font-size: 15.5px;
  line-height: 1.55;
  color: rgba(var(--ink-rgb), 0.72);
  transition: color 0.3s;
}
.subj__foot {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding-top: 16px;
  border-top: 1.5px solid rgba(var(--ink-rgb), 0.1);
  font-size: 14px;
  font-weight: 600;
  transition: border-color 0.3s;
}
.subj__foot b {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  transition: color 0.3s;
}
.subj:hover .subj__level {
  color: var(--glow);
}
.subj:hover .subj__desc {
  color: var(--sky-pale);
}
.subj:hover .subj__foot {
  border-color: rgba(var(--paper-rgb), 0.16);
}
.subj:hover .subj__foot b {
  color: var(--amber);
}
.subj--dark {
  background: var(--navy-deep);
  color: var(--paper);
}
.subj--dark::before {
  background: var(--amber);
}
.subj--dark .subj__icon {
  background: var(--amber);
}
.subj--dark .subj__arrow {
  box-shadow: inset 0 0 0 1.5px rgba(var(--paper-rgb), 0.3);
}
.subj--dark .subj__level {
  color: var(--glow);
}
.subj--dark .subj__desc {
  color: var(--sky-pale);
}
.subj--dark .subj__foot {
  border-color: rgba(var(--paper-rgb), 0.16);
  color: var(--amber);
}
.subj--dark:hover {
  color: var(--navy-deep);
}
.subj--dark:hover .subj__icon,
.subj--dark:hover .subj__arrow {
  background: var(--navy-deep);
  color: var(--amber);
}
.subj--dark:hover .subj__level,
.subj--dark:hover .subj__foot {
  color: var(--navy-deep);
}
.subj--dark:hover .subj__desc {
  color: rgba(var(--ink-rgb), 0.8);
}
.subj--dark:hover .subj__foot {
  border-color: rgba(var(--ink-rgb), 0.2);
}

/* ---------- Home: free notes teaser ---------- */

.paper-stack {
  position: relative;
  height: clamp(340px, 38vw, 440px);
  max-width: 520px;
  width: 100%;
  justify-self: center;
}
/* The link is the hit area and never lifts on hover, so the card can't slide out from under the cursor */
.paper {
  position: absolute;
  top: 6%;
  width: 52%;
  aspect-ratio: 0.74;
  text-decoration: none;
  transition: transform 0.7s var(--ease-out), z-index 0s 0.35s;
}
.paper:nth-child(1) {
  left: 0;
  z-index: 1;
  transform: rotate(-9deg);
}
.paper:nth-child(2) {
  left: 24%;
  top: 0;
  z-index: 2;
  transform: rotate(1deg);
}
.paper:nth-child(3) {
  left: 48%;
  top: 8%;
  z-index: 3;
  transform: rotate(9deg);
}
.paper-stack:hover .paper:nth-child(1) {
  transform: rotate(-12deg) translateX(-14px);
}
.paper-stack:hover .paper:nth-child(3) {
  transform: rotate(12deg) translateX(14px);
}
.paper:hover {
  z-index: 5;
  transition: transform 0.7s var(--ease-out), z-index 0s;
}
.paper__card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  padding: clamp(16px, 2vw, 22px);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: var(--shadow-lift);
  transition: transform 0.5s var(--ease-out), box-shadow 0.4s;
}
.paper:hover .paper__card {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 0 34px 60px -26px rgba(var(--ink-rgb), 0.5), inset 0 0 0 2px var(--amber);
}
.paper__tag {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--glow);
}
.paper__tag--amber {
  background: var(--amber);
}
.paper__tag--navy {
  background: var(--navy-deep);
  color: var(--paper);
}
.paper__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(16px, 1.6vw, 19px);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.paper__lines {
  flex: 1;
  background: repeating-linear-gradient(to bottom, rgba(var(--ink-rgb), 0.11) 0 2px, transparent 2px 13px);
  -webkit-mask-image: linear-gradient(#000 55%, transparent);
  mask-image: linear-gradient(#000 55%, transparent);
}
.paper__foot {
  font-size: 12px;
  font-weight: 700;
  color: var(--amber-deep);
}

/* ---------- Scholarships: one-time, $200 off, and the special full one ---------- */

.oneoff {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 700px;
  margin-top: 6px;
  padding: 12px 24px 12px 12px;
  border-radius: 999px;
  background: var(--paper);
  box-shadow: var(--shadow);
  text-align: left;
}
.oneoff p {
  font-size: 15px;
  line-height: 1.5;
  color: rgba(var(--ink-rgb), 0.78);
}
.oneoff p strong {
  color: var(--navy-deep);
}
.oneoff__mark {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--navy-deep);
  color: var(--amber);
}
.oneoff__mark svg {
  width: 20px;
  height: 24px;
  --spade-w: 1.1;
}
.oneoff__badge {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 11px;
  border-radius: 999px;
  background: var(--amber);
  color: var(--navy-deep);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
}
.oneoff__badge svg {
  width: 13px;
  height: 16px;
  --spade-w: 1.1;
}

/* Partial: a "Save $200" stamp */
.price__save {
  position: absolute;
  top: -22px;
  right: -14px;
  z-index: 2;
  width: 94px;
  height: 94px;
  border-radius: 50%;
  display: grid;
  place-content: center;
  text-align: center;
  background: var(--navy-deep);
  color: var(--amber);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 30px;
  letter-spacing: -0.03em;
  line-height: 1;
  box-shadow: var(--shadow-lift);
  transform: rotate(12deg);
}
.price__save small {
  display: block;
  margin-bottom: 3px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper);
}
.price__per strong {
  color: var(--navy-deep);
}

/* Full scholarship: the rare one */
@property --ang {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
.price--special {
  background: radial-gradient(120% 70% at 50% 0%, #3d4a22 0%, var(--navy-deep) 62%);
  color: var(--paper);
  isolation: isolate;
  scale: 1.04;
  box-shadow: 0 34px 70px -30px rgba(245, 158, 11, 0.65);
}
.price--special:hover {
  box-shadow: 0 40px 80px -28px rgba(245, 158, 11, 0.8);
}
/* animated amber border */
.price--special::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  padding: 2.5px;
  background: conic-gradient(from var(--ang), var(--amber), rgba(245, 158, 11, 0.08) 25%, #ffd27a 50%, rgba(245, 158, 11, 0.08) 75%, var(--amber));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: border-spin 5s linear infinite;
}
@keyframes border-spin {
  to {
    --ang: 360deg;
  }
}
.price__shine {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
}
.price__shine::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(var(--paper-rgb), 0.12), transparent);
  animation: shine 5s ease-in-out infinite;
}
@keyframes shine {
  0% {
    left: -60%;
  }
  55%,
  100% {
    left: 130%;
  }
}
.price__star {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--amber);
  color: var(--navy-deep);
  box-shadow: 0 0 0 8px rgba(245, 158, 11, 0.16);
}
.price__star svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}
.price--special .price__amount b {
  color: var(--amber);
}
.price--special .price__per {
  color: var(--sky-pale);
}
.price--special .price__ribbon {
  background: var(--amber);
  color: var(--navy-deep);
}

/* Home feature: the full scholarship card glows */
.scholar-card--special {
  animation: card-glow 2.8s ease-in-out infinite;
}
@keyframes card-glow {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.45);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(245, 158, 11, 0);
  }
}

/* ---------- Highlight notes ---------- */

.flag {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 18px;
  border-radius: 16px;
  background: var(--amber-pale);
  font-size: 15.5px;
  line-height: 1.5;
}
.flag svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  color: var(--amber-deep);
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .res-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid--4,
  .subj-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  [data-reveal="left"],
  [data-reveal="right"] {
    transform: translateY(28px);
  }
  .nav__links,
  .nav__cta .btn {
    display: none;
  }
  .menu-btn {
    display: block;
  }
  .hero__grid,
  .split,
  .split--rev,
  .feature,
  .apply,
  .subject-row,
  .section__head--split {
    grid-template-columns: 1fr;
  }
  .hero__visual {
    width: min(82%, 380px);
    margin-top: 20px;
  }
  .split__media {
    max-width: 420px;
  }
  .split--rev .split__media {
    order: -1;
  }
  .grid--3,
  .steps,
  .pricing {
    grid-template-columns: 1fr;
  }
  .pricing {
    max-width: 520px;
    gap: 34px;
  }
  .price--special {
    scale: 1;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 0;
  }
  .stat:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }
  .timeline {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .timeline::before,
  .timeline::after {
    left: 11px;
    right: auto;
    top: 6px;
    bottom: 6px;
    width: 3px;
    height: auto;
  }
  .timeline::after {
    transform: scaleY(0);
    transform-origin: top;
  }
  .timeline.is-in::after {
    transform: scaleY(1);
  }
  .timeline li {
    padding: 0 0 0 48px;
  }
  .timeline li::before {
    top: 2px;
  }
  .apply__aside {
    position: static;
  }
  .score-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 16px;
  }
  .announce a {
    font-size: 13px;
    gap: 8px;
  }
  .announce__pill {
    display: none;
  }
  .nav {
    height: 66px;
  }
  section[id] {
    scroll-margin-top: 66px;
  }
  .brand__word {
    font-size: 18px;
  }
  .grid--2,
  .grid--4,
  .subj-grid,
  .groups,
  .ways,
  .res-grid,
  .field-row {
    grid-template-columns: 1fr;
  }
  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .fact:last-child {
    grid-column: 1 / -1;
  }
  .float-card--atar {
    left: -6%;
  }
  .float-card--scores {
    right: -6%;
  }
  .float-card--atar .float-card__num {
    font-size: 32px;
  }
  .hero__actions .btn {
    flex: 1 1 auto;
  }
  .countdown__unit {
    min-width: 0;
    flex: 1;
  }
  .choice__box {
    grid-template-columns: 40px 1fr 22px;
    gap: 12px;
    padding: 16px;
  }
  .choice__icon {
    width: 40px;
    height: 40px;
  }
  .form-nav .btn {
    flex: 1;
  }
  .sticker {
    width: 100px;
    height: 100px;
    right: -8px;
    bottom: -12px;
  }
  .sticker__mid {
    font-size: 24px;
  }
  .footer__grid {
    grid-template-columns: 1fr;
  }
  .subj {
    min-height: 0;
  }
  .float-card--founder {
    left: -4%;
  }
  .oneoff {
    border-radius: 20px;
    align-items: flex-start;
  }
  .price__save {
    right: -6px;
    width: 84px;
    height: 84px;
    font-size: 26px;
  }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  [data-reveal],
  .rise > span {
    opacity: 1;
    transform: none;
  }
  .marquee__track {
    animation: none;
  }
  .wipe {
    display: none;
  }
}
