/* Higher Ed Apply — site styles (adapted from the Global Test Prep Solutions site).
   Tokens are copied from the family design system (Claude Design Package/tokens.css v1.1)
   with the Higher Ed Apply brand roles applied (data-brand="hea"). */

@font-face {
  font-family: "Arapey";
  src: url("../fonts/Arapey-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Karla";
  src: url("../fonts/Karla-Variable.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --color-navy: #1C4B82;
  --color-teal: #0F6E6E;
  --color-teal-hover: #0D6161;
  --color-teal-active: #0B5454;
  --color-aqua: #BDE7E9;
  --color-midnight: #0F2A4A;
  --color-gold: #B8945F;
  --color-ivory: #F4EFE7;
  --color-white: #FFFFFF;
  --color-graphite: #5F5A63;
  --color-stone: #E6E1D8;
  --color-pebble: #857E89;
  --success: #2E7D5B;
  --error: #B3261E;

  --signature: var(--color-teal);
  --signature-hover: var(--color-teal-hover);
  --signature-active: var(--color-teal-active);
  --signature-tint: var(--color-aqua);
  --text-primary: var(--color-midnight);
  --text-secondary: var(--color-graphite);
  --text-heading: var(--color-midnight);
  --link: var(--color-teal);
  --line: var(--color-stone);

  --font-display: "Arapey", Georgia, "Times New Roman", serif;
  --font-body: "Karla", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --fs-display: clamp(2.5rem, 1.6rem + 3.2vw, 4rem);
  --fs-h2: clamp(1.75rem, 1.45rem + 1.1vw, 2.25rem);
  --fs-h3: clamp(1.25rem, 1.18rem + 0.3vw, 1.375rem);
  --fs-h4: clamp(1.0625rem, 1.03rem + 0.15vw, 1.125rem);
  --fs-lead: clamp(1.1875rem, 1.12rem + 0.3vw, 1.3125rem);
  --fs-body: clamp(1.0625rem, 1.03rem + 0.15vw, 1.125rem);
  --fs-small: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --fs-caption: 0.8125rem;
  --fs-eyebrow: 0.8125rem;
  --fs-button: 1rem;
  --lh-display: 1.08; --lh-h2: 1.18; --lh-h3: 1.3; --lh-body: 1.6; --lh-small: 1.5;
  --tracking-eyebrow: 0.12em;

  --space-1: 4px;  --space-2: 8px;  --space-3: 12px; --space-4: 16px; --space-5: 24px;
  --space-6: 32px; --space-7: 48px; --space-8: 64px; --space-9: 96px;
  --section-y: clamp(64px, 4rem + 4vw, 96px);

  --radius-sm: 4px; --radius-md: 8px; --radius-button: 6px;
  --rule-gold-w: 48px; --rule-gold-h: 3px;
  --focus-ring: 0 0 0 2px var(--color-white), 0 0 0 5px var(--signature);
  --focus-ring-inverse: 0 0 0 2px var(--color-midnight), 0 0 0 5px var(--color-white);

  --container: 1200px;
  --gutter: 16px;
  --header-h: 72px;
  --bar-h: 72px;
  --button-h: 48px;
  --input-h: 52px;

  --dur-fast: 150ms;
  --ease-hover: ease-out;
}
@media (min-width: 768px) { :root { --gutter: 32px; } }
@media (min-width: 1200px) { :root { --gutter: 48px; } }
@media (max-width: 1279px) { :root { --header-h: 64px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--color-white);
  color: var(--text-primary);
  font: 400 var(--fs-body)/var(--lh-body) var(--font-body);
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
h1, h2 { font-family: var(--font-display); font-weight: 400; color: var(--text-heading); margin: 0; }
h1, h2, h3, h4 { text-wrap: balance; }
h1 { font-size: var(--fs-display); line-height: var(--lh-display); letter-spacing: -0.01em; }
h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); }
h3 { font: 700 var(--fs-h3)/var(--lh-h3) var(--font-body); color: var(--text-heading); margin: 0; }
h4 { font: 700 var(--fs-h4)/var(--lh-h3) var(--font-body); color: var(--text-heading); margin: 0; }
p { margin: 0; }
p + p { margin-top: var(--space-4); }
/* Faster taps on phones (no double-tap zoom delay) and a brand-tinted tap flash. */
a, button, summary, label, input, select { touch-action: manipulation; -webkit-tap-highlight-color: rgba(122, 69, 166, .15); }
a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: 2px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: var(--space-4); top: -100px; z-index: 1000;
  background: var(--color-midnight); color: var(--color-white);
  padding: var(--space-3) var(--space-4); border-radius: var(--radius-button);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: var(--space-3); }

/* ---------- Layout ---------- */
.wrap { max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-y) 0; }
.section--tint { background: var(--color-aqua); }
.section--warm { background: var(--color-ivory); }
.section--dark { background: var(--color-midnight); color: var(--color-white); }
.section--dark h2, .section--dark h3 { color: var(--color-white); }
.section--dark :focus-visible { box-shadow: var(--focus-ring-inverse); }
.measure { max-width: 70ch; }
.lead { font-size: var(--fs-lead); line-height: 1.5; }
.section-head { margin-bottom: var(--space-7); }
.section-head h2 + p { margin-top: var(--space-4); }

.eyebrow {
  font: 600 var(--fs-eyebrow)/1.4 var(--font-body);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--text-secondary);
  margin: 0;
}
.eyebrow::after {
  content: ""; display: block;
  width: var(--rule-gold-w); height: var(--rule-gold-h);
  background: var(--color-gold);
  margin: var(--space-3) 0 var(--space-4);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: var(--button-h); padding: 0 var(--space-5);
  border-radius: var(--radius-button); border: 1.5px solid transparent;
  font: 600 var(--fs-button)/1.2 var(--font-body); letter-spacing: .01em;
  text-decoration: none; cursor: pointer; text-align: center;
  transition: background-color var(--dur-fast) var(--ease-hover), color var(--dur-fast) var(--ease-hover);
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--signature); color: var(--color-white); }
.btn--primary:hover { background: var(--signature-hover); }
.btn--primary:active { background: var(--signature-active); }
.btn--secondary { background: transparent; color: var(--signature); border-color: var(--signature); }
.btn--secondary:hover { background: var(--signature-tint); }
.btn--white { background: var(--color-white); color: var(--color-midnight); }
.btn--white:hover { background: var(--color-aqua); }
.btn[disabled] { opacity: .65; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--color-white);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; gap: var(--space-5);
  min-height: var(--header-h);
}
.site-header__logo { flex: none; display: block; }
.site-header__logo img { height: 44px; width: auto; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 20px; white-space: nowrap; }
.site-nav__links { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; }
.site-nav__links a {
  color: var(--text-primary); text-decoration: none; font-weight: 500; font-size: 0.9375rem;
  padding: var(--space-2) 0; border-bottom: 2px solid transparent;
}
.site-nav__links a:hover { color: var(--signature); }
.site-nav__links a[aria-current="true"] { color: var(--signature); border-bottom-color: var(--signature); }
.gsp-link { color: var(--color-navy); font-size: var(--fs-small); font-weight: 600; white-space: nowrap; }
.site-header .btn { min-height: 44px; padding: 0 var(--space-4); }
/* Sign in for families and the admin (founder, 9 Nov 2026, as on Global Test Prep Solutions): left of the main button on
   desktop; icon and the words Sign in beside Menu when the menu collapses. Opens the portal in a new tab. */
.signin {
  display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px;
  color: var(--color-midnight); font-weight: 600; font-size: var(--fs-small); text-decoration: none; white-space: nowrap;
}
.signin:hover { color: var(--signature); }
.signin__icon { width: 22px; height: 22px; flex: none; }
.signin--compact { display: none; }

.menu-button {
  display: none; margin-left: auto;
  align-items: center; gap: var(--space-2);
  min-height: 44px; padding: 0 var(--space-4);
  background: transparent; border: 1.5px solid var(--color-midnight); border-radius: var(--radius-button);
  color: var(--color-midnight); font: 600 var(--fs-button)/1 var(--font-body); cursor: pointer;
}
.menu-button svg { width: 20px; height: 20px; }

@media (max-width: 1279px) {
  .site-header__inner { gap: var(--space-3); }
  .site-header__logo img { height: 36px; }
  .menu-button { display: inline-flex; }
  .site-nav .signin { display: none; }
  /* Sign in says so in words, not only an icon. */
  .signin--compact {
    display: inline-flex; justify-content: center; margin-left: auto; padding: 0 var(--space-4);
    border: 1.5px solid var(--line); border-radius: var(--radius-button);
  }
  .signin--compact + .menu-button { margin-left: 0; }
  .site-nav {
    display: none; white-space: normal;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: var(--space-5);
    background: var(--color-white); border-bottom: 1px solid var(--line);
    padding: var(--space-5) var(--gutter) var(--space-6);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .site-nav.is-open { display: flex; }
  .site-nav__links { flex-direction: column; gap: 0; }
  .site-nav__links a { display: block; padding: var(--space-3) 0; border-bottom: 1px solid var(--line); font-size: 1.125rem; }
  .site-nav__links a[aria-current="true"] { border-bottom-color: var(--line); }
}

@media (max-width: 399px) {
  .site-header__logo img { height: 28px; }
  .menu-button { padding: 0 var(--space-3); }
  .menu-button__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* ---------- Sign in page ---------- */
/* Two panels: the brand on Powder Aqua and the form on white. */

/* ---------- Footer ---------- */
.site-footer { background: var(--color-midnight); color: var(--color-white); padding: var(--space-6) 0 var(--space-3); font-size: var(--fs-small); line-height: 1.4; }
.site-footer a { color: var(--color-white); }
.site-footer :focus-visible { box-shadow: var(--focus-ring-inverse); }
.site-footer__logo { height: 40px; width: auto; }
.foot { display: grid; gap: var(--space-5); }
.foot__tag { margin: var(--space-3) 0 0; color: var(--color-white); text-wrap: balance; }
.foot__parent { margin: var(--space-1) 0 0; color: var(--color-aqua); }
.site-footer .foot__parent a { color: var(--color-aqua); }
.foot__title { margin: 0 0 var(--space-2); font-weight: 700; color: var(--color-aqua); }
.foot__links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-1) var(--space-4); }
.site-footer .foot__links a { text-decoration: none; }
.site-footer .foot__links a:hover { text-decoration: underline; }
.foot__contact { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-1); }
.foot__contact li { display: flex; align-items: center; gap: var(--space-2); min-width: 0; }
.foot__contact .icon { flex: none; width: 18px; height: 18px; color: var(--color-aqua); }
.foot__contact a { overflow-wrap: anywhere; }
.foot__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-1) var(--space-5); margin-top: var(--space-4); padding-top: var(--space-2); border-top: 1px solid rgba(255, 255, 255, .18); font-size: var(--fs-caption); color: var(--color-aqua); }
.site-footer .foot__legal a { color: var(--color-aqua); }
@media (min-width: 768px) { .foot { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5) var(--space-6); } }
@media (min-width: 1200px) { .foot { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-6); align-items: start; } }

.mobile-bar { display: none; }
@media (max-width: 767px) {
  body { padding-bottom: var(--bar-h); }
  .mobile-bar {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    background: var(--color-white); border-top: 1px solid var(--line);
    padding: var(--space-3) var(--gutter) calc(var(--space-3) + env(safe-area-inset-bottom));
  }
  .mobile-bar[hidden] { display: none; }
  .mobile-bar .btn { width: 100%; }
}

/* ---------- Hero ---------- */
.hero { padding-top: clamp(29px, 1.8rem + 1.8vw, 58px); }
.hero__grid { display: grid; gap: var(--space-6); }
.hero__brand > img { width: min(72%, 300px); height: auto; }
.hero__lead { margin: var(--space-5) 0 var(--space-6); max-width: 34em; }
.hero__line { display: block; }
@media (min-width: 900px) {
  /* The stacked logo matches the height of the text beside it. */
  .hero__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--space-8); align-items: stretch; }
  .hero__brand { position: relative; min-height: 280px; }
  .hero__brand > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: left center; }
}

/* Universities strip: two copies of the list scroll left as one loop. It pauses while the
   pointer is over the logos and with the Pause button; with reduced motion it becomes a
   static, swipeable row. */
.admits { margin-top: var(--space-6); position: relative; }
/* Centred, with equal side margins so the Pause button on the right never overlaps it. */
.admits__title { font-size: var(--fs-small); font-weight: 700; color: var(--text-secondary); text-align: center; margin: 0 var(--space-9) var(--space-5); }
.admits__viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.admits__track { display: flex; width: max-content; animation: admits-scroll 260s linear infinite; }
.admits__list { display: flex; align-items: center; gap: var(--space-8); list-style: none; margin: 0; padding: 0 var(--space-8) 0 0; }
/* Each logo's --h is set from its proportions (wide ones shorter, compact ones taller) so they read at a similar size. */
.admits__list img { display: block; height: var(--h, 40px); width: auto; max-width: none; }
.admits__viewport:hover .admits__track, .admits.is-paused .admits__track { animation-play-state: paused; }
.admits__toggle {
  position: absolute; top: -6px; right: var(--gutter);
  font: 600 var(--fs-caption)/1 var(--font-body); color: var(--link);
  background: none; border: 1px solid var(--line); border-radius: var(--radius-button);
  padding: var(--space-2) var(--space-3); min-height: 32px; cursor: pointer;
}
.admits__toggle:hover { border-color: var(--color-teal); }
@keyframes admits-scroll { to { transform: translateX(-50%); } }
@media (max-width: 599px) {
  .admits__list { gap: var(--space-6); padding-right: var(--space-6); }
  .admits__list img { height: calc(var(--h, 40px) * 0.8); }
}
@media (prefers-reduced-motion: reduce) {
  .admits__viewport { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .admits__track { animation: none; }
  .admits__list[aria-hidden="true"], .admits__toggle { display: none; }
}

/* ---------- Progress chart (How it works) ---------- */

/* Desktop: heading, chart and the six-step timeline fit one screen together (designed on a
   1470 x 956 laptop, about 780px of browser window). The chart width follows the window height:
   407px = scroll offset 88 + top padding 24 + chart title and caption 66 + gap 32 + timeline 177 + 20 clear;
   1.4 = the chart's 560:400 shape. */
@media (min-width: 1024px) {
  #how-it-works { padding-top: var(--space-5); } /* keeps labels readable (about 11-13px) at the smaller chart sizes */
}
@media (max-width: 599px) {
  /* The chart scales down on phones; enlarge its labels so they stay readable (about 11px on screen). */
  
}

/* One orchestrated moment: the score line draws from left to right once on load. */

/* Hidden until it scrolls into view (only when the script runs). */

@keyframes chart-reveal { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes chart-fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Icons (shared sprite at the top of <body>) ---------- */
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 24px; height: 24px; flex: none; color: var(--color-teal);
  fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}
.icon--sm { width: 16px; height: 16px; }

/* ---------- Tests we prepare for ---------- */
.section--rule { border-top: 1px solid var(--line); }
/* Intro on white, then each group in its own full-width band, tests side by side. */
/* Half the usual space above the intro, so the hero above can be taller. */

/* The list of tests is the section's main content: one row per stage, test names large in the
   headline face. Plain text, not links. */

@media (min-width: 1200px) {
  /* The intro lines up with the tests column: 11rem + 22rem + two 32px gaps. */
  
  /* The button sits in the empty space under the heading, so it adds no height. */
  
}
/* Phones already have the sticky Book a free diagnostic bar. */

/* Tablets: the button shares the heading's line, so it adds no height. */

/* ---------- How it works: gold-diamond timeline ---------- */
.steps { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: var(--space-6); }
.steps::before {
  content: ""; position: absolute; background: var(--line);
  left: 16px; top: 16px; bottom: 16px; width: 1px;
}
.step { position: relative; padding-left: 56px; }
.step__marker {
  position: absolute; left: 0; top: 0; width: 32px; height: 32px;
  display: grid; place-items: center;
}
.step__marker::before {
  content: ""; position: absolute; width: 23px; height: 23px; border-radius: 3px;
  background: var(--color-gold); transform: rotate(45deg);
}
.step__marker span { position: relative; color: var(--color-midnight); font: 700 0.875rem/1 var(--font-body); }
.step h3 { font-size: var(--fs-h4); margin: 4px 0 var(--space-2); }
.step p { font-size: var(--fs-small); line-height: var(--lh-small); color: var(--text-primary); }
@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--space-5); }
  .steps::before { left: 16px; right: 16px; top: 16px; bottom: auto; width: auto; height: 1px; }
  .step { padding-left: 0; padding-top: 56px; }
  .step h3 { margin-top: 0; }
}

/* ---------- Built around your student ---------- */
/* Every plan is built for one student: what the plan is built around, then what the student gets. */

.plan__badge { display: grid; place-items: center; width: 44px; height: 44px; background: var(--color-teal); border-radius: var(--radius-md); color: var(--color-white); }
.plan__badge .icon { width: 24px; height: 24px; color: var(--color-white); }

/* ---------- Sample report ----------
   A wide document: each heading is one thing every report includes, so the sample does the explaining. */
.report {
  margin-top: var(--space-6); background: var(--color-white); border: 1px solid var(--line); border-radius: var(--radius-md);
  overflow: hidden; font-size: var(--fs-small); line-height: var(--lh-small);
}
.report__head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-1) var(--space-5);
  padding: var(--space-3) var(--space-5); background: var(--color-midnight); color: var(--color-white);
}
.report__brand { font-weight: 700; }
.report__student { margin-top: 0; color: var(--color-aqua); }
.report__body { display: grid; gap: var(--space-6); padding: var(--space-5); }
.report__title { font: 700 var(--fs-small)/1.4 var(--font-body); margin-bottom: var(--space-3); }
.report dl { margin: 0; display: grid; gap: var(--space-3); }
.report dd { margin: 0; display: flex; align-items: center; gap: var(--space-3); }
/* The plan: the same small gold diamonds as the How it works timeline. */
.report__plan { display: grid; gap: var(--space-1) var(--space-6); padding: var(--space-4) var(--space-5); background: var(--color-ivory); border-top: 1px solid var(--line); align-items: center; }
.report__plan .report__title { margin-bottom: 0; }
.report__timeline { list-style: none; margin: var(--space-2) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
.report__timeline li { position: relative; padding-left: 18px; }
.report__timeline li::before { content: ""; position: absolute; left: 1px; top: 0.5em; width: 8px; height: 8px; background: var(--color-gold); transform: rotate(45deg); }
.report__timeline strong { display: block; font-weight: 700; }
.report__foot { padding: var(--space-2) var(--space-5); border-top: 1px solid var(--line); font-size: var(--fs-caption); color: var(--text-secondary); }
@media (min-width: 900px) {
  .report__body { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-7); }
  /* Room for a two-line title, so the three columns' content starts level. */
  .report__block > .report__title:first-child { min-height: 2.8em; }
  .report__plan { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--space-7); }
  .report__timeline { grid-column: 2 / -1; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 0; }
}

/* ---------- Our method: an animated sample of the whole cycle, one idea per step ----------
   On tablet and desktop the stage is 16:9, ready for a narrated video on top: the clear corner under
   the question card is where the video sits. Without JavaScript all six panels show one after another. */

.method { margin: var(--space-6) 0 0; }
/* JavaScript takes over the video's controls; the edges are feathered so it melts into the Ivory stage. */

/* Captions: their own row below the explanations, so they can never overlap the animation. */

/* The cycle: a line through small gold diamonds, as in the How it works timeline. */

.method figcaption { margin-top: var(--space-2); font-size: var(--fs-caption); color: var(--text-secondary); }

/* Opening slides: the usual order flipped, then the platform built from the bottom up. */

@keyframes method-swap-a { from { transform: translateX(calc(100% + var(--space-2))); } to { transform: none; } }
@keyframes method-swap-b { from { transform: translateX(calc(-100% - var(--space-2))); } to { transform: none; } }

/* With JavaScript: one panel at a time, in one fixed-height cell so nothing jumps. */

@keyframes method-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes method-grow { from { transform: scaleX(0); } to { transform: none; } }

@media (min-width: 768px) {
  .method { max-width: 728px; }
  /* The video sits on the stage's bottom edge, as if the presenter were standing in the slide. */
  
  /* Nine steps: the number sits above its label so long words fit. */
  
}
@media (min-width: 1200px) {
  #method { padding-top: var(--space-5); }
  .method { margin-top: 0; }
}

/* ---------- Progress reports ---------- */

/* Same columns as Tests, so the intro text lines up down the page. On a 1470 x 956 laptop the section fits one screen. */

/* ---------- Led by ---------- */
/* Half the usual space above the founder section (founder, 7 Nov 2026). Phones keep their own rhythm. */
#founder { padding-top: calc(var(--section-y) / 2); }
.founder { display: grid; gap: var(--space-7); align-items: start; }
.founder__media { max-width: 420px; }
.founder__photo { background: var(--color-aqua); border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 4 / 5; max-width: 420px; }
.founder__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center bottom; transform: scale(1.22); transform-origin: 50% 100%; }
.founder__role { margin: var(--space-3) 0 var(--space-6); font-weight: 600; color: var(--text-secondary); font-size: var(--fs-small); }
/* Desktop: the title and award fit on one line (founder, 7 Nov 2026). */
@media (min-width: 1280px) { .founder__role { letter-spacing: -0.02em; } }
.highlights { list-style: none; margin: var(--space-6) 0; padding: 0; display: grid; gap: var(--space-3); }
.highlights li { position: relative; padding-left: var(--space-6); font-weight: 600; }
.highlights li::before {
  content: ""; position: absolute; left: 4px; top: .62em; width: 6px; height: 6px;
  background: var(--color-gold); transform: rotate(45deg); border-radius: 1px;
}
/* Awards with their posters sit under the bio; the other credentials are a full-width band under the photo and text. */
.founder__awards { margin-top: var(--space-6); max-width: 70ch; }
.founder__awards .highlights { margin: 0; row-gap: var(--space-5); }
.founder__awards .highlights li { font-weight: 400; display: flex; flex-direction: column; gap: var(--space-3); }
/* margin-top:auto keeps the two posters level when the award names wrap to different lengths. */
.award-poster { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; margin-top: auto; border-radius: var(--radius-md); background: var(--color-aqua); }
@media (min-width: 768px) { .founder__awards .highlights { grid-template-columns: 1fr 1fr; column-gap: var(--space-6); } }
.credentials { display: grid; gap: var(--space-6); }
.credentials__title { font-size: var(--fs-h4); margin-bottom: var(--space-3); }
.credentials .highlights { margin: 0; }
.credentials .highlights li { font-weight: 400; }
@media (min-width: 768px) { .credentials { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) {
  .founder { grid-template-columns: 4fr 8fr; gap: var(--space-8); }
  .credentials { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); }
}
/* The photo keeps its 4:5 frame at the top of a narrower column, so the text sets the
   section's height (founder, 8 Nov 2026: the stretched photo made the section too tall). */
@media (min-width: 1024px) {
  .founder__media { align-self: start; max-width: 360px; }
  .founder__photo { aspect-ratio: 6 / 5; max-width: 360px; }
}

/* ---------- FAQs ---------- */
.faq { display: grid; gap: var(--space-6); }
/* Questions grouped by topic: three columns on desktop, one list on phones. */
.faq__groups { display: grid; gap: var(--space-6); align-items: start; }
.faq__group-title { font-size: var(--fs-h4); margin-bottom: var(--space-3); }
@media (min-width: 1024px) { .faq__groups { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-7); } }
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: var(--space-5) var(--space-7) var(--space-5) 0;
  font-weight: 600; font-size: var(--fs-body);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after {
  content: ""; position: absolute; right: var(--space-2); top: 50%;
  width: 16px; height: 2px; background: var(--color-teal); border-radius: 1px;
}
.faq summary::after { transform: rotate(90deg); transition: transform var(--dur-fast) var(--ease-hover); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq summary:hover { color: var(--color-teal); }
.faq details p { padding: 0 var(--space-7) var(--space-5) 0; max-width: 70ch; }
/* FAQs: white tiles of equal height on Powder Aqua. */
#faq { background: var(--color-aqua); padding-top: 58px; padding-bottom: 58px; }
#faq .faq__group-title { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-4); }
#faq .faq__list { border: 0; display: grid; gap: var(--space-2); }
#faq details { background: var(--color-white); border: 0; border-radius: var(--radius-md); }
#faq summary { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-7) var(--space-3) var(--space-3); font-size: var(--fs-small); line-height: 1.35; }
#faq summary::before, #faq summary::after { right: var(--space-4); }
.faq__icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; background: var(--color-aqua); border-radius: var(--radius-sm); color: var(--color-teal); }
.faq__icon .icon { width: 22px; height: 22px; color: var(--color-teal); }
#faq details p { padding: 0 var(--space-4) var(--space-4) calc(40px + var(--space-3) * 2); font-size: var(--fs-small); line-height: var(--lh-small); }

#faq summary { min-height: 84px; }
@media (max-width: 767px) { #faq summary { min-height: 64px; } }
/* Tablet: two columns, the third topic runs across both. */
@media (min-width: 768px) and (max-width: 1023px) {
  #faq .faq__groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #faq .faq__group:last-child { grid-column: 1 / -1; }
  #faq .faq__group:last-child .faq__list { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}

/* ---------- Book a free diagnostic (form) ---------- */
.booking { display: grid; gap: var(--space-7); align-items: start; }
.booking__contact { margin-top: var(--space-6); font-size: var(--fs-small); }
.booking__contact-title { font-weight: 600; margin-bottom: var(--space-2); }
.booking__contact ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.booking__contact li { display: flex; align-items: center; gap: var(--space-3); }
.booking__contact .icon { width: 20px; height: 20px; }
.booking__panel {
  background: var(--color-white); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: var(--space-5);
}
@media (min-width: 768px) { .booking__panel { padding: var(--space-7); } }
@media (min-width: 1024px) {
  .booking { grid-template-columns: 4fr 8fr; gap: var(--space-8); }
  .booking__intro { position: sticky; top: calc(var(--header-h) + var(--space-6)); }
}

.form__required-note { font-size: var(--fs-caption); color: var(--text-secondary); margin-bottom: var(--space-5); }
.form__grid { display: grid; gap: var(--space-5); margin-bottom: var(--space-5); }
@media (min-width: 640px) { .form__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.field { display: grid; gap: var(--space-2); align-content: start; }
.field label, .field legend { font-weight: 600; font-size: var(--fs-small); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"],
.field input[type="password"], .field input[type="number"], .field select {
  width: 100%; min-height: var(--input-h); padding: 0 var(--space-4);
  border: 1px solid var(--color-pebble); border-radius: var(--radius-button);
  background: var(--color-white); color: var(--text-primary);
  font: 400 1rem/1.4 var(--font-body);
}
.field select {
  appearance: none; padding-right: var(--space-7);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%230F6E6E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.field input:focus-visible, .field select:focus-visible { border-color: var(--signature); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--error); border-width: 2px; }
.field__hint { font-size: var(--fs-caption); color: var(--text-secondary); }
.field__error {
  display: flex; align-items: flex-start; gap: var(--space-2);
  font-size: var(--fs-small); font-weight: 600; color: var(--error);
}
.field__error::before {
  content: "!"; flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%;
  background: var(--error); color: var(--color-white);
  font: 700 12px/18px var(--font-body); text-align: center;
}
.field__error[hidden] { display: none; }

/* Mobile / WhatsApp: country code in front of the number (founder, 11 Nov 2026). Built by phone.js. */
.flag {
  flex: none; display: inline-block; width: 18px; height: 12px; border-radius: 2px;
  background: url("../img/flags.png?v=1") 0 0 / 288px 192px no-repeat var(--line);
  box-shadow: inset 0 0 0 1px rgb(15 42 74 / 12%);
}
.phone { position: relative; display: flex; }
.phone__country {
  flex: none; display: inline-flex; align-items: center; gap: var(--space-2); min-height: var(--input-h); padding: 0 var(--space-3);
  border: 1px solid var(--color-pebble); border-right: 0; border-radius: var(--radius-button) 0 0 var(--radius-button);
  background: var(--color-white); color: var(--text-primary); font: 600 1rem/1 var(--font-body); cursor: pointer;
}
.phone__country::after {
  content: ""; width: 7px; height: 7px; margin: -3px 0 0 2px;
  border-right: 2px solid var(--signature); border-bottom: 2px solid var(--signature); transform: rotate(45deg);
}
.phone__country[aria-expanded="true"]::after { margin-top: 3px; transform: rotate(-135deg); }
.phone__country:focus-visible { outline: 2px solid var(--signature); outline-offset: 2px; position: relative; z-index: 1; }
.field .phone input[type="tel"] { min-width: 0; border-radius: 0 var(--radius-button) var(--radius-button) 0; }
.phone__panel {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 20; min-width: 260px; border: 1px solid var(--color-pebble); border-radius: var(--radius-button);
  background: var(--color-white); box-shadow: 0 8px 24px rgb(15 42 74 / 12%); overflow: hidden;
}
.field .phone__panel input.phone__search {
  width: 100%; min-height: 44px; padding: 0 var(--space-4); border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  font: 400 1rem/1.4 var(--font-body); color: var(--text-primary); background: var(--color-white);
}
.phone__search:focus-visible { outline: 2px solid var(--signature); outline-offset: -2px; }
.phone__list { list-style: none; margin: 0; padding: var(--space-1) 0; max-height: 264px; overflow-y: auto; }
.phone__list li {
  display: flex; align-items: center; gap: var(--space-3); padding: 9px var(--space-4); cursor: pointer;
  font-size: var(--fs-small); color: var(--text-primary);
}
.phone__list li[hidden] { display: none; }
.phone__list li.is-active { background: var(--color-aqua); }
.phone__list li[aria-selected="true"] { font-weight: 700; }
.phone__name { flex: 1; min-width: 0; }
.phone__code { color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.phone__empty { margin: 0; padding: var(--space-3) var(--space-4); font-size: var(--fs-small); color: var(--text-secondary); }

.field--group { border: 0; margin: 0 0 var(--space-5); padding: 0; min-width: 0; }
.field--group legend { padding: 0; margin-bottom: var(--space-3); }
.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2) var(--space-4); }
@media (min-width: 640px) { .checks { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.checks--inline { display: flex; gap: var(--space-6); }
.check { display: flex; align-items: center; gap: var(--space-3); min-height: 44px; font-weight: 400; font-size: var(--fs-small); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--color-teal); }
/* Consent: the checkbox sits beside its text, the error under the text. */
.field--consent { grid-template-columns: 20px minmax(0, 1fr); column-gap: var(--space-3); align-items: start; margin: var(--space-2) 0 var(--space-6); }
.field--consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--color-teal); }
.field--consent label { font-weight: 400; }
.field--consent .field__error { grid-column: 2; }
.form__submit { width: 100%; }
@media (min-width: 640px) { .form__submit { width: auto; min-width: 240px; } }

/* ---------- Simple pages (thank you, 404, privacy) ---------- */
.simple-page h1 { font-size: var(--fs-h2); line-height: var(--lh-h2); margin-bottom: var(--space-5); }
.simple-page__links { margin-top: var(--space-6); display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-6); font-weight: 600; }
.privacy__updated { color: var(--text-secondary); font-size: var(--fs-small); margin-bottom: var(--space-6); }
.privacy h2 { font-size: var(--fs-h3); line-height: var(--lh-h3); margin: var(--space-7) 0 var(--space-3); }
.privacy h3 { font-size: var(--fs-body); margin: var(--space-5) 0 var(--space-2); }
.privacy ul { margin: var(--space-3) 0 var(--space-4); padding-left: 1.25em; display: grid; gap: var(--space-2); }

/* ---------- Higher Ed Apply additions ---------- */

/* Hero: the founder line under the buttons, a small round photo on Powder Aqua. */
.hero__founder {
  display: inline-flex; align-items: center; gap: var(--space-3);
  margin-top: var(--space-6); color: var(--text-primary); text-decoration: none;
  font-size: var(--fs-small); line-height: var(--lh-small); max-width: 46em;
}
.hero__founder img {
  width: 56px; height: 56px; flex: none; border-radius: 50%;
  background: var(--signature-tint); object-fit: cover;
}
.hero__founder strong { font-weight: 700; }
.hero__founder:hover span { text-decoration: underline; text-decoration-color: var(--signature); text-underline-offset: 3px; }

/* Where students go: the sister site's test list, with each destination's system under its name
   and the brand map (gold diamonds on the destinations) behind the rows. */

/* How we help: six icon-led tiles, flat, Stone borders. */
.service-grid {
  list-style: none; margin: var(--space-7) 0 0; padding: 0;
  display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}
.service-tile {
  border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--color-white);
  padding: var(--space-5); display: grid; gap: var(--space-2); align-content: start;
}
.service-tile .icon { width: 32px; height: 32px; color: var(--signature); }
.service-tile h3 { margin: var(--space-2) 0 0; }
.service-tile p { margin: 0; font-size: var(--fs-small); line-height: var(--lh-small); color: var(--text-primary); }
.service-tile__link { font-size: var(--fs-small); font-weight: 600; }
@media (min-width: 1200px) { .service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Gold-diamond lists (postgraduate help, concierge). Diamonds stay within the 8px gold limit. */
.diamond-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2) var(--space-6); }
.diamond-list li { position: relative; padding-left: 20px; font-size: var(--fs-small); line-height: var(--lh-small); }
.diamond-list li::before {
  content: ""; position: absolute; left: 2px; top: 0.55em; width: 7px; height: 7px;
  background: var(--color-gold); transform: rotate(45deg);
}
@media (min-width: 768px) { .diamond-list--cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Master's, MBAs and specializations: Powder Aqua band with white tiles. */
.postgrad__head { display: grid; gap: var(--space-3); max-width: 46rem; }
.postgrad__head .lead { margin: 0; }
.postgrad__tiles {
  list-style: none; margin: var(--space-6) 0 0; padding: 0; display: grid; gap: var(--space-4);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}
.postgrad__tiles li { background: var(--color-white); border-radius: var(--radius-md); padding: var(--space-5); }
.postgrad__tiles h3 { font-size: var(--fs-h4); margin: 0 0 var(--space-2); }
.postgrad__tiles p { margin: 0; font-size: var(--fs-small); line-height: var(--lh-small); }
.postgrad__help { margin-top: var(--space-6); }
.postgrad__help-title { font-weight: 700; margin: 0 0 var(--space-3); }
@media (min-width: 1024px) { .postgrad__help .diamond-list--cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.postgrad__foot { margin-top: var(--space-6); display: grid; gap: var(--space-4); justify-items: start; }
.postgrad__note { margin: 0; font-size: var(--fs-small); line-height: var(--lh-small); max-width: 52rem; }
@media (min-width: 1024px) {
  .postgrad__foot { grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: var(--space-7); }
}

/* the plan section: the plan year by year, then the steps. */
.journey__head { display: grid; gap: var(--space-3); max-width: 46rem; }
.journey__head .lead { margin: 0; }
.journey__line { display: block; }   /* heading on two set lines, paragraph on three (founder, 8 Nov 2026) */
@media (min-width: 900px) { .journey__line { white-space: nowrap; } }
.timeline { margin: var(--space-7) 0 42px; }   /* half the old gap to steps 1-5 (founder, 8 Nov 2026) */
.timeline__track { position: relative; }
.timeline__bar {
  position: absolute; left: calc(100% / 12); right: calc(100% / 12); top: 9px; height: 3px;
  background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px);
}
/* The line grows from Grade 9 to the first day on campus, stop by stop (assets/js/site.js sets --p, 0 to 1, and
   marks each stop .is-reached as the line gets there). Without JavaScript the whole plan shows, filled. */
.timeline__fill { position: absolute; inset: 0; background: var(--signature); transform-origin: left; }
.js .timeline__fill { transform: scaleX(var(--p, 0)); transition: transform 1200ms linear; }
.timeline__stops { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); column-gap: var(--space-3); }
.timeline__stops > li { position: relative; display: grid; justify-items: center; align-content: start; text-align: center; gap: 2px; }
.timeline__dot {
  width: 21px; height: 21px; border-radius: 50%; background: var(--color-white);
  border: 3px solid var(--line); margin-bottom: var(--space-3); position: relative; z-index: 1;
  transition: background-color 250ms, border-color 250ms;
}
.timeline__stops > li.is-reached .timeline__dot, html:not(.js) .timeline__dot { background: var(--signature); border-color: var(--signature); }
.timeline__stops .is-goal .timeline__dot::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 7px; height: 7px;
  background: var(--color-gold); transform: rotate(45deg);
}
.timeline__milestone { font: 400 var(--fs-h4)/1.25 var(--font-display); color: var(--text-heading); }
.timeline__details { list-style: none; margin: var(--space-2) 0 0; padding: 0; display: grid; gap: 4px; font-size: var(--fs-caption); line-height: 1.4; color: var(--text-secondary); }
.js .timeline__stops > li:not(.is-reached) .timeline__details { opacity: 0; transform: translateY(4px); }
.js .timeline__details { transition: opacity 600ms, transform 600ms; }
@media (min-width: 1024px) { .steps--five { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) {
  .js .timeline__fill, .js .timeline__details, .timeline__dot { transition: none; }
}

/* Concierge advising: the page's one dark band (founder, 9 Nov 2026). The text and the counselor on the left; on
   the right a chart of the eight services as lanes from Grade 6 to the first day on campus, each starting when that
   service begins. Fits one 13-15 inch laptop screen. */
#concierge.section { padding-block: var(--space-7); }
.concierge__grid { display: grid; gap: var(--space-7); }
.concierge__text { display: grid; gap: var(--space-4); justify-items: start; }
.concierge__text .lead { margin: 0; color: var(--color-white); }
.concierge__counselor { margin: 0; padding: var(--space-3) var(--space-4); border-left: 3px solid var(--color-gold); background: rgba(255, 255, 255, 0.06); border-radius: 0 var(--radius-md) var(--radius-md) 0; font-size: var(--fs-small); line-height: 1.5; color: var(--color-aqua); }
.concierge__counselor strong { color: var(--color-white); }
@media (min-width: 1024px) {
  .concierge__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); align-items: center; gap: var(--space-8); }
}

/* The distance chart. Lanes sit on a nine-stage track; --from and --to place each bar. */
.dist { margin: 0; --label: 220px; --stages: 9; }
.dist__caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dist__head { display: grid; grid-template-columns: var(--label) repeat(var(--stages), minmax(0, 1fr)); grid-template-rows: auto auto; row-gap: 6px; margin-bottom: var(--space-3); }
.dist__phase { grid-row: 1; grid-column: calc(var(--from) + 2) / calc(var(--to) + 2); font-size: 0.75rem; font-weight: 700; color: var(--color-aqua); padding: 0 6px 4px; border-bottom: 1px solid rgba(189, 231, 233, 0.35); margin: 0 3px; }
.dist__stage { grid-row: 2; grid-column: calc(var(--i) + 2); text-align: center; font-size: 0.75rem; font-weight: 600; color: rgba(255, 255, 255, 0.7); font-variant-numeric: tabular-nums; }
.dist__rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.dist__row { display: grid; grid-template-columns: var(--label) minmax(0, 1fr); align-items: center; min-height: 40px; border-radius: var(--radius-sm); }
.dist__name { display: flex; align-items: center; gap: var(--space-3); font-size: var(--fs-small); font-weight: 600; color: var(--color-white); }
.dist__name .icon { width: 22px; height: 22px; flex: none; color: var(--color-aqua); }
.dist__track { position: relative; height: 40px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px calc(100% / var(--stages))); border-radius: var(--radius-sm); }
.dist__bar { position: absolute; top: 12px; height: 16px; left: calc(100% * var(--from) / var(--stages)); width: calc(100% * (var(--to) - var(--from)) / var(--stages)); background: var(--color-aqua); border-radius: 999px; transform-origin: left center; }
.dist__bar::before { content: ""; position: absolute; left: -4px; top: 4px; width: 8px; height: 8px; background: var(--color-gold); transform: rotate(45deg); }
.dist__row--summers .dist__bar { --seg: calc(100% / (var(--to) - var(--from))); background: repeating-linear-gradient(90deg, transparent 0 calc(var(--seg) * 0.55), var(--color-aqua) calc(var(--seg) * 0.55) calc(var(--seg) * 0.97), transparent calc(var(--seg) * 0.97) var(--seg)); }
.dist__span { grid-column: 2; font-size: var(--fs-caption); color: rgba(255, 255, 255, 0.75); }
.dist__row:hover .dist__bar { background-color: var(--color-white); }
.dist__row--summers:hover .dist__bar { filter: brightness(1.15); }
@media (min-width: 768px) { .dist__span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }
@media (min-width: 1024px) and (max-width: 1279px) { .dist { --label: 190px; } }
/* One moment of motion: the lanes run out from where each service starts, once, when the chart comes into view. */
@media (prefers-reduced-motion: no-preference) {
  .js .dist:not(.is-in) .dist__bar { transform: scaleX(0); }
  .js .dist .dist__bar { transition: transform 0.9s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--from) * 110ms); }
}

/* The family report: the sister site's report card with five headings. */
.family-report__second { border-top: 1px solid var(--line); }
@media (min-width: 768px) { .family-report__second { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.family-report p { margin: 0; }
.family-report__stage { margin-bottom: var(--space-2) !important; }
.family-report__list { display: grid; gap: var(--space-2); }
.family-report__list div { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: var(--space-3); }
.family-report__list dt { font-weight: 700; color: var(--signature); }
.family-report__list dd { margin: 0; display: block; }
.family-report__dates { grid-template-columns: 1fr !important; }
.family-report__items { margin: 0; padding-left: 1.1em; display: grid; gap: var(--space-2); }
.family-report__items li::marker { color: var(--signature); }

/* Led by Augusto Neto: this site's photo is already cropped, so no zoom. */
.founder__photo img { transform: none; object-position: center center; }
.record { margin-top: var(--space-6); max-width: 70ch; }
.record__figures { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); }
.record__figure { margin: 0; font: 400 var(--fs-stat, clamp(2.75rem, 2.3rem + 1.6vw, 3.5rem))/1 var(--font-display); color: var(--signature); font-variant-numeric: tabular-nums; }
.record__label { margin: var(--space-2) 0 0; font-size: var(--fs-small); line-height: var(--lh-small); }
.record__line { margin: var(--space-5) 0 var(--space-1); font-weight: 600; }
.record__caption { margin: 0; font-size: var(--fs-caption); color: var(--text-secondary); font-style: italic; }

/* In the media: interview and quote side by side, then a row of short videos. */
.media__grid { display: grid; gap: var(--space-6); margin-top: var(--space-6); }
@media (min-width: 1024px) { .media__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: stretch; } }
.media__interview {
  display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: var(--space-5); align-items: center;
  text-decoration: none; color: var(--text-primary); border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-4);
}
.media__interview img { width: 150px; height: 220px; object-fit: cover; object-position: 50% 25%; border-radius: var(--radius-sm); }
.media__interview-text { display: grid; gap: var(--space-2); }
.media__kicker { font-size: var(--fs-caption); color: var(--text-secondary); letter-spacing: 0.02em; }
.media__title { font: 400 var(--fs-h3)/1.3 var(--font-display); color: var(--text-heading); }
.media__watch { font-weight: 700; color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.media__interview:hover { border-color: var(--signature); }
.media__quote {
  margin: 0; background: var(--color-ivory); border-top: 3px solid var(--color-gold); border-radius: var(--radius-md);
  padding: var(--space-5); display: grid; gap: var(--space-3); align-content: start;
}
.media__quote blockquote { margin: 0; }
.media__quote blockquote p:first-child { font: 400 var(--fs-h3)/1.35 var(--font-display); color: var(--text-heading); margin: 0; }
.media__quote figcaption { font-size: var(--fs-small); font-weight: 600; }
.media__quote a { font-size: var(--fs-small); font-weight: 700; }

/* Consultation form: the level groups, the error summary and the honeypot. */
.booking__lead { margin: var(--space-4) 0 0; max-width: 34em; }
.form__level { border: 0; margin: 0; padding: 0; min-width: 0; }
/* Compact form (founder, 8 Nov 2026): the level's details, email and WhatsApp read as one two-column table. */
.form__level .form__grid { margin-bottom: var(--space-5); }
.form__level[hidden] { display: none; }
@media (min-width: 640px) { .checks--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.form__level-title { font-weight: 700; padding: 0; margin-bottom: var(--space-3); }
.form__summary {
  margin-bottom: var(--space-4); padding: var(--space-3) var(--space-4); border-left: 3px solid var(--error);
  background: var(--color-white); color: var(--error); font-weight: 600;
}
.form__send-error { color: var(--error); font-weight: 600; }
.form__pot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Awards sit under the photo on desktop, beside the bio and record (founder, 8 Nov 2026). */
.founder__media .founder__awards { margin-top: var(--space-5); padding-top: 0; border-top: 0; }
@media (min-width: 1024px) {
  .founder__media .founder__awards .highlights { grid-template-columns: 1fr 1fr; gap: var(--space-4); margin: 0; }
  .founder__media .founder__awards .highlights li { padding-left: 0; font-size: var(--fs-caption); line-height: 1.35; }
  .founder__media .founder__awards .highlights li::before { display: none; }
}

/* Hero, desktop: the logo sits at the top of its column, the map's first row of diamonds level
   with the eyebrow, and the founder line is centered under it (founder, 8 Nov 2026).
   The map starts 3.3% of the logo's width below the top of the logo file. */
@media (min-width: 900px) {
  .hero__grid { align-items: start; }
  .hero__brand {
    position: static; min-height: 0; display: flex; flex-direction: column; align-items: center;
    --logo-w: min(100%, 340px);
  }
  .hero__brand > img {
    position: static; width: var(--logo-w); height: auto; object-fit: initial;
    margin-top: calc(var(--fs-eyebrow) * 0.3 - 340px * 0.033);
  }
  .hero__brand .hero__founder { margin-top: var(--space-6); justify-content: center; text-align: center; max-width: 340px; }
}
/* Phones and tablets: the founder line is centered under the logo too. */
.hero__brand { text-align: center; }
.hero__brand .hero__founder { justify-content: center; }

/* The founder line under the logo: two fixed lines (founder, 8 Nov 2026). */
.hero__founder-line { display: block; white-space: nowrap; }
@media (min-width: 900px) { .hero__brand .hero__founder { max-width: none; } }

/* Where students go: the animated universities map (founder, 8 Nov 2026). */
.dest-head { display: grid; gap: var(--space-3); }
.dest-head .lead { margin: 0; }
@media (min-width: 900px) { .dest-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; column-gap: var(--space-7); } }
.dest-map-figure { margin: var(--space-6) 0 0; }
.dest-map { max-width: 1040px; margin: 0 auto; }
.dest-map svg, .dest-map img { display: block; width: 100%; height: auto; }
.dest-map__caption {
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-4);
  max-width: 1040px; margin: var(--space-4) auto 0; font-size: var(--fs-small); color: var(--text-secondary);
}
.dest-map__toggle {
  flex: none; font: 600 var(--fs-caption)/1 var(--font-body); color: var(--link);
  background: none; border: 1px solid var(--line); border-radius: var(--radius-button);
  padding: var(--space-2) var(--space-3); min-height: 32px; cursor: pointer;
}
.dest-map__toggle:hover { border-color: var(--signature); }

/* ---- Hero, layout A (founder, 8 Nov 2026): "Where our students go" sits inside the hero. ----
   The main button and a See how it works link under the founder line; the lead on three set lines; the map under
   the lead; the logo strip and its title under the brand column. assets/js/hero.js places the map, the strip and
   its title by measuring the map (desktop only); these rules are its starting point and the fallback without it. */
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 24px; margin-top: var(--space-5); }
.hero__how { font-weight: 600; color: var(--link); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; padding: 12px 0; }
.hero__how:hover { text-decoration-thickness: 2px; }
.hero-dest { margin-top: 12px; --map-right: 0px; }
.hero-dest__figure { margin: 0; }
.hero-dest .dest-map { width: 499px; max-width: 100%; margin: 0; }
.hero-dest .dest-map:focus-visible, .admits__viewport:focus-visible { outline: 2px solid var(--signature); outline-offset: 4px; }
.hero-dest [data-dest-map-toggle] { display: none !important; }   /* hover, focus or tap pauses the map (hero.js) */
/* The logo strip pauses on hover (above), on keyboard focus and after a tap on touch screens. */
.admits__viewport:focus-within .admits__track, .admits__viewport.is-held .admits__track { animation-play-state: paused; }
@media (min-width: 1280px) { .hero__lead-line { display: block; white-space: nowrap; } }   /* three set lines where they fit */
@media (min-width: 900px) {
  #top.hero { padding-top: 36px; padding-bottom: 32px; }   /* hero, map and strip on one 13–15 inch laptop screen */
  .hero-dest { display: flex; align-items: flex-start; justify-content: flex-end; }
  .hero-dest__figure { flex: none; margin-right: var(--map-right, 0px); }
  .hero .admits { margin-top: 12px; }
  .hero .admits__title { margin: var(--space-3) 0 0; }
  /* Five equal slots across the strip: five logos in view at a time. */
  .hero .admits__list { gap: 0; padding-right: 0; }
  .hero .admits__list li { flex: none; width: var(--slot, 166px); display: flex; justify-content: center; }
  .hero .admits__list img { height: calc(var(--h, 40px) * 0.8); max-width: calc(var(--slot, 166px) - 28px); object-fit: contain; }
}

/* Guidance for the whole journey: half the usual space above its heading and below its cards (founder, 8 Nov 2026). */
#services { padding-top: calc(var(--section-y) / 2); padding-bottom: calc(var(--section-y) / 2); }
/* …and half the space between the dividing line and Postgraduate studies. */
/* …and half the space between that band and the plan section. */
#plan { padding-top: calc(var(--section-y) / 2); }

/* Steps 1-5: no lone word on the last line where the browser can help (founder, 8 Nov 2026). */
.step p { text-wrap: pretty; }

/* Any curriculum, either school calendar (founder, 8 Nov 2026): beside the plan's heading on laptops, under it on
   smaller screens. Tile color says the kind: Ivory national and local, Powder Aqua international programs. */
.journey__head { display: grid; gap: var(--space-6); }
.journey__text { display: grid; gap: var(--space-3); }
.curricula { display: grid; gap: var(--space-3); align-content: start; padding: var(--space-5); background: var(--color-white);
  border: 1px solid var(--line); border-top: 3px solid var(--color-gold); border-radius: 8px; }
.curricula h3 { margin: 0; font: 700 1.0625rem/1.3 var(--font-body); color: var(--text-heading); }
.curricula__key { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: var(--fs-caption); color: var(--text-secondary); }
.curricula__keyitem { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.curricula__swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; border: 1px solid var(--line); }
.curricula__swatch--national, .curricula__item--national { background: var(--color-ivory); }
.curricula__swatch--international, .curricula__item--international { background: var(--color-aqua); }
.curricula__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.curricula__item { padding: 5px 10px; border-radius: 6px; font-size: var(--fs-small); font-weight: 600; color: var(--text-heading); line-height: 1.3; }
.curricula__item--other { background: none; border: 1px dashed var(--line); font-weight: 500; color: var(--text-secondary); }
@media (min-width: 1100px) {
  .journey__head { max-width: none; grid-template-columns: auto minmax(0, 1fr); column-gap: var(--space-8); align-items: start; }
}


/* FAQ questions set on two lines where the founder asked (8 Nov 2026). */
.faq__line { display: block; }

/* ---- Led by Augusto Neto as one file (founder, 8 Nov 2026) ----
   Photo and awards in the left column, which stays in view on laptops; bio, record, credentials and the media
   run down the right column. Space and subheadings separate the groups; no dividing lines. */
.founder .credentials { margin-top: var(--space-7); }
.founder__press { margin-top: var(--space-7); }
.founder__subhead { font-size: var(--fs-h4); margin: 0; }
.founder__press .media__grid { margin-top: var(--space-4); }
@media (min-width: 1024px) {
  .founder__media { position: sticky; top: calc(var(--header-h) + var(--space-5)); }
}

/* ---- Families always know where things stand (founder, 8 Nov 2026) ----
   What the student portfolio holds, in six icon tiles, beside a miniature of the sample portfolio that opens it.
   The whole section fits one screen on a 13-15 inch laptop. */
#reports.section { padding-block: var(--space-7); }
.pf { display: grid; gap: var(--space-6); align-items: center; }
@media (min-width: 1024px) { .pf { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-7); } }
.pf__lead { margin-top: var(--space-3); max-width: 40em; }
.pf-tiles { list-style: none; margin: var(--space-5) 0 0; padding: 0; display: grid; gap: var(--space-3); }
@media (min-width: 640px) { .pf-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pf-tile { display: flex; gap: var(--space-3); align-items: flex-start; background: var(--color-white); border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-3) var(--space-4); }
.pf-tile .plan__badge { width: 36px; height: 36px; flex: none; }
.pf-tile .plan__badge .icon { width: 20px; height: 20px; }
.pf-tile h3 { font-size: var(--fs-small); line-height: 1.3; margin: 0; }
.pf-tile p { font-size: var(--fs-caption); line-height: 1.45; color: var(--text-secondary); margin: 2px 0 0; }
.pf__cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-5); margin-top: var(--space-5); }
.pf__note { font-size: var(--fs-caption); color: var(--text-secondary); margin: 0; }

/* The miniature: a real glimpse of the sample portfolio, and a link to it. */
.pf-window { display: grid; gap: 0; background: var(--color-white); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; color: var(--text-primary); text-decoration: none; box-shadow: 0 18px 40px -24px rgba(15, 42, 74, 0.35); transition: transform .2s, box-shadow .2s; }
.pf-window:hover { transform: translateY(-2px); box-shadow: 0 22px 44px -22px rgba(15, 42, 74, 0.4); }
@media (prefers-reduced-motion: reduce) { .pf-window, .pf-window:hover { transition: none; transform: none; } }
.pf-window > span { display: block; padding: var(--space-3) var(--space-4); }
.pf-window > .pf-window__bar { display: flex; align-items: center; gap: var(--space-3); border-bottom: 1px solid var(--line); }
.pf-window__bar img { height: 20px; width: auto; }
.pf-window__bar span { font-size: var(--fs-caption); font-weight: 600; color: var(--text-secondary); padding-left: var(--space-3); border-left: 1px solid var(--line); }
.pf-window > .pf-window__profile { display: flex; align-items: center; gap: var(--space-3); background: var(--color-aqua); }
.pf-window__avatar { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--color-teal); color: var(--color-white); font: 400 1.125rem/1 var(--font-display); border: 2px solid var(--color-gold); }
.pf-window__name { display: block; font: 400 1.375rem/1.1 var(--font-display); color: var(--text-heading); }
.pf-window__school { display: block; font-size: var(--fs-caption); color: var(--text-secondary); }
.pf-window__label { display: block; font-size: 0.75rem; font-weight: 700; color: var(--color-teal); }
.pf-window__milestone { display: block; font: 400 1.0625rem/1.3 var(--font-display); color: var(--text-heading); margin-top: 2px; }
.pf-journey { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin-top: var(--space-3); position: relative; }
.pf-journey::before { content: ""; position: absolute; left: 8%; right: 8%; top: 5px; height: 2px; background: var(--line); }
.pf-journey span { position: relative; display: grid; justify-items: center; gap: 6px; font-size: 0.6875rem; line-height: 1.2; color: var(--text-secondary); text-align: center; }
.pf-journey span::before { content: ""; width: 10px; height: 10px; transform: rotate(45deg); background: var(--color-white); border: 2px solid var(--color-pebble); }
.pf-journey .is-done::before { background: var(--success); border-color: var(--success); }
.pf-journey .is-now { color: var(--text-heading); font-weight: 700; }
.pf-journey .is-now::before { background: var(--color-gold); border-color: var(--color-gold); }
.pf-window > .pf-window__cards { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); padding-top: 0; }
.pf-mini { display: block; background: var(--color-ivory); border-radius: var(--radius-sm); padding: var(--space-3); }
.pf-mini__big { display: block; font: 400 1.375rem/1.2 var(--font-display); color: var(--text-heading); margin-top: 2px; font-variant-numeric: tabular-nums; }
.pf-mini__sub { display: block; font-size: 0.75rem; color: var(--text-secondary); }
.pf-window__report { border-top: 3px solid var(--color-gold); }
.pf-window__title { display: block; font-weight: 700; font-size: var(--fs-small); line-height: 1.35; margin-top: 2px; }
.pf-window__next { display: block; font-size: var(--fs-caption); color: var(--text-secondary); margin-top: 2px; }

/* Sample portfolio after the form (founder, 9 Nov 2026): a note above the form, and the move on from the thank-you page. */
.form__sample-note { margin: 0 0 var(--space-4); padding: var(--space-3) var(--space-4); border-left: 3px solid var(--color-gold); background: var(--color-aqua); border-radius: 0 var(--radius-md) var(--radius-md) 0; font-weight: 600; font-size: var(--fs-small); color: var(--text-heading); }
/* Anything marked hidden stays hidden, even when its class sets display (founder, 10 Nov 2026). */
[hidden] { display: none !important; }
.to-sample { margin-top: var(--space-6); display: grid; gap: var(--space-3); justify-items: start; }
.to-sample__line { margin: 0; font-weight: 700; color: var(--signature); }

/* Postgraduate studies (founder, 9 Nov 2026): two columns that fit one 13-15 inch screen. The heading, intro, test
   note and button on the left; the four program types as icon tiles and what we help with on the right. */
#postgraduate.section { padding-block: var(--space-7); }
.postgrad__grid { display: grid; gap: var(--space-6); }
.postgrad__grid .postgrad__head { max-width: none; justify-items: start; gap: var(--space-4); }
.postgrad__grid .postgrad__head .eyebrow { margin: 0; }
.postgrad__grid .postgrad__note { max-width: 40rem; }
.postgrad__grid .postgrad__tiles { margin: 0; display: grid; gap: var(--space-3); list-style: none; padding: 0; }
@media (min-width: 640px) { .postgrad__grid .postgrad__tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.postgrad__grid .postgrad__tiles .pg-tile { display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-4); }
.pg-tile__icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius-md); background: var(--color-teal); }
.pg-tile__icon .icon { width: 22px; height: 22px; color: var(--color-white); }
.postgrad__grid .postgrad__tiles h3 { margin: 0 0 4px; }
.postgrad__grid .postgrad__help { margin-top: var(--space-5); }
.postgrad__grid .postgrad__help .diamond-list { gap: var(--space-2) var(--space-5); }
.postgrad__grid .postgrad__help li { font-size: var(--fs-small); }
@media (min-width: 1024px) {
  .postgrad__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--space-8); align-items: center; }
}
/* Postgraduate tiles on natural set lines (founder, 9 Nov 2026). The script sets them only while every line fits
   on one row; on narrower tiles, larger text or zoom, the text wraps on its own, without a lone last word. */
.pg-tile p { text-wrap: pretty; }
.pg-tile p.is-set .pg-line { display: block; }
