/* ==========================================================================
   Legacy Tutoring — Design System & Styles
   Black & gold heritage, softened with warm ivory for approachability.
   ========================================================================== */

@view-transition { navigation: auto; }

:root {
  /* Colour — primitives */
  --ink: #0f0e0b;
  --ink-2: #17150f;
  --ink-3: #24211a;
  --ivory: #faf6ee;
  --paper: #f2ebdc;
  --sand: #e6dac2;
  --surface: #fffdf8;
  --gold: #d6b86e; /* matched to the logo gold */
  --gold-bright: #e9d198;
  --gold-deep: #7f5d14;

  /* Colour — semantic */
  --text: #1c1a16;
  --muted: #5a5345;
  --on-dark: #f5efe2;
  --on-dark-muted: #b8ae9c;
  --line: rgba(28, 26, 22, 0.1);
  --line-strong: rgba(28, 26, 22, 0.22);
  --line-dark: rgba(201, 162, 74, 0.18);
  --error: #b3261e;
  --success: #2e6b3a;
  --focus: var(--gold-deep);

  /* Type */
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Layout */
  --gutter: clamp(20px, 5vw, 48px);
  --maxw: 1200px;
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --header-h: 84px;

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(15, 14, 11, 0.06), 0 2px 8px rgba(15, 14, 11, 0.04);
  --shadow-md: 0 8px 24px -8px rgba(15, 14, 11, 0.16);
  --shadow-lg: 0 24px 60px -20px rgba(15, 14, 11, 0.28);
  --glow: 0 10px 40px -10px rgba(201, 162, 74, 0.55);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 180ms;
  --dur: 360ms;
  --dur-slow: 900ms;

  /* Z-index scale */
  --z-header: 50;
  --z-menu: 45;
  --z-progress: 60;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  /* Without this, body's overflow-x:hidden doesn't reliably propagate to the
     root scrolling element in some browsers' mobile-emulation modes, letting
     wide content (e.g. the Programs comparison table) stretch the whole
     page's scrollable width and push the fixed header's right-aligned
     items off-screen. */
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

[hidden] { display: none !important; }
img, svg { display: block; max-width: 100%; }
.nowrap { white-space: nowrap; }
a { color: inherit; }
button { font: inherit; color: inherit; }

h1, h2, h3, h4, .display, .h1, .h2, .h3, .h4 {
  font-family: var(--font-display);
  font-weight: 450;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
  font-optical-sizing: auto;
}
h1 em, h2 em, h3 em {
  font-style: italic;
  color: var(--gold-deep);
  font-weight: 400;
}
p { margin: 0; text-wrap: pretty; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  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: fixed;
  top: 12px; left: 12px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform var(--dur) var(--ease-out);
}
.skip-link:focus { transform: none; }

/* ---------- Layout ---------- */
.container {
  width: min(var(--maxw), 100% - 2 * var(--gutter));
  margin-inline: auto;
}
.container--narrow { width: min(820px, 100% - 2 * var(--gutter)); }

.section { padding-block: clamp(80px, 11vw, 150px); position: relative; }
.section--tight { padding-block: clamp(56px, 7vw, 96px); }
.section--paper { background: var(--paper); }
.section--dark {
  background: var(--ink);
  color: var(--on-dark);
  --focus: var(--gold);
}
.section--dark h1 em, .section--dark h2 em, .section--dark h3 em,
.page-hero h1 em, .hero h1 em, .cta h2 em, .card--dark h2 em, .card--dark h3 em { color: var(--gold); }

.grain::before {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--split {
  max-width: none;
  display: grid;
  gap: 24px;
  align-items: end;
}
@media (min-width: 900px) {
  .section-head--split { grid-template-columns: 1.1fr 0.9fr; gap: 64px; }
}

.stack > * + * { margin-top: var(--stack, 1.25rem); }

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font: 600 0.76rem/1 var(--font-sans);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 1.25rem;
}
.eyebrow::before {
  content: "";
  width: 32px; height: 1px;
  background: currentColor;
}
.section--dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow, .cta .eyebrow, .program--dark .eyebrow { color: var(--gold); }

.display { font-size: clamp(2.7rem, 6.6vw, 5.8rem); }
.h1 { font-size: clamp(2.5rem, 5.6vw, 4.6rem); }
.h2 { font-size: clamp(2.05rem, 4.2vw, 3.5rem); }
.h3 { font-size: clamp(1.35rem, 2vw, 1.65rem); line-height: 1.2; }
.h4 { font-size: 1.2rem; line-height: 1.25; }

.lead {
  font-size: clamp(1.075rem, 1.35vw, 1.22rem);
  line-height: 1.7;
  color: var(--muted);
  max-width: 62ch;
}
.section--dark .lead, .hero .lead, .page-hero .lead, .cta .lead, .card--dark .lead { color: var(--on-dark-muted); }
.muted { color: var(--muted); }
.section--dark .muted { color: var(--on-dark-muted); }
.small { font-size: 0.9rem; }

/* ---------- Icons ---------- */
.i {
  display: inline-block;
  width: 24px; height: 24px;
  flex-shrink: 0;
}
.i svg { width: 100%; height: 100%; }
.i--sm { width: 18px; height: 18px; }
.i--lg { width: 28px; height: 28px; }

.icon-badge {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: grid; place-items: center;
  background: var(--ink);
  color: var(--gold);
  flex-shrink: 0;
  transition: transform var(--dur) var(--ease-out), background var(--dur) var(--ease-out);
}
.section--dark .icon-badge, .card--dark .icon-badge {
  background: rgba(201, 162, 74, 0.1);
  border: 1px solid var(--line-dark);
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--ivory);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 52px;
  padding: 0.9rem 1.65rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: 600 0.975rem/1.1 var(--font-sans);
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform var(--dur-fast) var(--ease-out),
    background-color var(--dur) var(--ease-out),
    border-color var(--dur) var(--ease-out),
    color var(--dur) var(--ease-out),
    box-shadow var(--dur) var(--ease-out);
}
.btn::after {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 800ms var(--ease-out);
}
.btn .i { width: 18px; height: 18px; transition: transform var(--dur) var(--ease-out); }
.btn:active { transform: scale(0.97); }
@media (hover: hover) {
  .btn:hover::after { transform: translateX(120%); }
  .btn:hover .i--arrow { transform: translateX(4px); }
}

.btn--gold { --btn-bg: var(--gold); --btn-fg: var(--ink); }
@media (hover: hover) {
  .btn--gold:hover { --btn-bg: var(--gold-bright); box-shadow: var(--glow); }
  .btn--ink:hover { --btn-bg: var(--ink-3); box-shadow: var(--shadow-md); }
}
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--on-dark);
  border-color: rgba(245, 239, 226, 0.28);
}
.btn--outline {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--line-strong);
}
@media (hover: hover) {
  .btn--ghost:hover { border-color: var(--gold); --btn-fg: var(--gold-bright); }
  .btn--outline:hover { border-color: var(--ink); --btn-bg: var(--ink); --btn-fg: var(--ivory); }
}
.btn--sm { min-height: 44px; padding: 0.65rem 1.2rem; font-size: 0.9rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }
.btn.is-loading { pointer-events: none; }
.btn .spinner {
  width: 18px; height: 18px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--gold-deep);
  padding-block: 0.4rem;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0% 1px no-repeat;
  transition: background-size var(--dur) var(--ease-out);
}
.section--dark .text-link, .card--dark .text-link { color: var(--gold); }
.text-link .i { width: 18px; height: 18px; transition: transform var(--dur) var(--ease-out); }
@media (hover: hover) {
  .text-link:hover { background-size: 100% 1px; }
  .text-link:hover .i { transform: translateX(4px); }
}

/* ---------- Scroll progress ---------- */
.progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: var(--z-progress);
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright));
  transform-origin: 0 50%;
  transform: scaleX(0);
  pointer-events: none;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: var(--z-header);
  color: var(--on-dark);
  --focus: var(--gold);
  transition: background-color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), backdrop-filter var(--dur);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled, body.menu-open .site-header {
  background: rgba(15, 14, 11, 0.86);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line-dark);
}
.site-header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: height var(--dur) var(--ease-out);
}
.site-header.is-scrolled .site-header__inner { height: 70px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--on-dark);
  min-height: 44px;
}
.brand__mark, .brand__word {
  width: auto;
  transition: height var(--dur) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}
.brand__mark { height: 46px; }
.brand__word { height: 34px; }
@media (hover: hover) { .brand:hover .brand__mark { transform: scale(1.06); } }
.site-header.is-scrolled .brand__mark { height: 40px; }
.site-header.is-scrolled .brand__word { height: 30px; }
@media (max-width: 380px) {
  .brand { gap: 0.55rem; }
  .brand__mark { height: 40px; }
  .brand__word { height: 29px; }
}

.nav { display: none; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(1.1rem, 2.2vw, 2.2rem); }
.nav a {
  position: relative;
  display: inline-block;
  padding: 0.6rem 0;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--on-dark-muted);
  text-decoration: none;
  transition: color var(--dur) var(--ease-out);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.3rem;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--dur) var(--ease-out);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--on-dark); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }

.header-cta { display: none; }

.menu-toggle {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  background: transparent;
  border: 1px solid rgba(245, 239, 226, 0.22);
  border-radius: 999px;
  cursor: pointer;
  touch-action: manipulation;
}
.menu-toggle__lines { position: relative; width: 18px; height: 12px; }
.menu-toggle__lines span {
  position: absolute; left: 0;
  width: 100%; height: 1.5px;
  background: var(--on-dark);
  border-radius: 2px;
  transition: transform var(--dur) var(--ease-out), opacity var(--dur-fast), top var(--dur) var(--ease-out);
}
.menu-toggle__lines span:nth-child(1) { top: 0; }
.menu-toggle__lines span:nth-child(2) { top: 5.25px; }
.menu-toggle__lines span:nth-child(3) { top: 10.5px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { top: 5.25px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { top: 5.25px; transform: rotate(-45deg); }

@media (min-width: 1080px) {
  .nav { display: block; }
  .header-cta { display: inline-flex; }
  .menu-toggle { display: none; }
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: var(--z-menu);
  background: var(--ink);
  color: var(--on-dark);
  --focus: var(--gold);
  padding: calc(var(--header-h) + 24px) var(--gutter) 32px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  transition: opacity var(--dur) var(--ease-out), visibility 0s linear var(--dur);
}
.mobile-menu.is-open {
  visibility: visible;
  opacity: 1;
  transition: opacity var(--dur) var(--ease-out), visibility 0s;
}
.mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu li { border-bottom: 1px solid var(--line-dark); }
.mobile-menu li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 64px;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 7vw, 2.3rem);
  text-decoration: none;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out), color var(--dur);
  transition-delay: calc(var(--i, 0) * 50ms + 80ms);
}
.mobile-menu li a[aria-current="page"] { color: var(--gold); }
.mobile-menu li a .i { color: var(--gold); width: 20px; height: 20px; }
.mobile-menu.is-open li a { opacity: 1; transform: none; }
.mobile-menu__foot { margin-top: auto; padding-top: 32px; display: grid; gap: 16px; }
.mobile-menu__foot p { color: var(--on-dark-muted); font-size: 0.9rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--ink);
  color: var(--on-dark);
  --focus: var(--gold);
  min-height: min(100svh, 980px);
  display: flex;
  align-items: center;
  padding-block: calc(var(--header-h) + 48px) 96px;
}
.hero__bg, .page-hero__bg {
  position: absolute; inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(600px circle at var(--mx, 70%) var(--my, 40%), rgba(201, 162, 74, 0.13), transparent 60%),
    radial-gradient(900px 600px at 85% 10%, rgba(201, 162, 74, 0.1), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(201, 162, 74, 0.07), transparent 60%);
}
.hero__lines, .page-hero__lines {
  position: absolute; inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(201, 162, 74, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 162, 74, 0.07) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 20%, transparent 75%);
}

.hero__grid {
  display: grid;
  gap: clamp(48px, 7vw, 72px);
  align-items: center;
}
@media (min-width: 980px) {
  .hero__grid { grid-template-columns: 1.2fr 0.8fr; }
}

.hero__title { margin-bottom: 1.6rem; }
.hero__title em { color: var(--gold); }
.hero .lead { margin-bottom: 2.25rem; }

.hero__meta {
  margin-top: 2.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--line-dark);
  background: rgba(245, 239, 226, 0.03);
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--on-dark-muted);
}
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.pill--light { border-color: var(--line); background: var(--surface); color: var(--muted); }

/* Split-word heading reveal */
.js [data-split] .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
}
.js [data-split] .w > span {
  display: inline-block;
  transform: translate3d(0, 108%, 0);
  transition: transform 1100ms var(--ease-out);
  transition-delay: calc(var(--wi, 0) * 55ms + 120ms);
}
.js.is-loaded [data-split] .w > span { transform: none; }

.js .hero-fade {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition: opacity 1000ms var(--ease-out), transform 1000ms var(--ease-out);
  transition-delay: var(--d, 600ms);
}
.js.is-loaded .hero-fade { opacity: 1; transform: none; }

/* Hero crest visual */
.hero__visual {
  position: relative;
  justify-self: center;
  width: min(100%, 440px);
}
.arch {
  position: relative;
  aspect-ratio: 4 / 5;
  width: 100%;
  border-radius: 999px 999px 28px 28px;
  border: 1px solid rgba(201, 162, 74, 0.35);
  background:
    radial-gradient(circle at 50% 38%, rgba(201, 162, 74, 0.16), transparent 62%),
    linear-gradient(180deg, var(--ink-2), var(--ink));
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: 0 40px 120px -40px rgba(201, 162, 74, 0.35);
}
.arch::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: inherit;
  border: 1px solid rgba(201, 162, 74, 0.14);
}
.arch__stage {
  position: absolute;
  left: 5%; right: 5%; top: 6%;
  aspect-ratio: 1;
}
.arch__ring {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  color: rgba(201, 162, 74, 0.62);
  animation: rotate 70s linear infinite;
}
.arch__ring text { font: 600 13px/1 var(--font-sans); letter-spacing: 0.3em; fill: currentColor; }
@keyframes rotate { to { transform: rotate(360deg); } }

/* Brand crest (real logo) inside the ring */
.crest {
  position: absolute;
  width: 60%;
  left: 20%;
  top: 23.5%;
  aspect-ratio: 698 / 617;
}
.crest__img {
  width: 100%;
  height: auto;
}
/* Reveal: laurels grow up from the crossed stems, then shield, then cap */
.js .crest__img {
  clip-path: inset(100% 0 0 0);
  transform: scale(0.94);
  transition:
    clip-path 2000ms var(--ease-in-out) 350ms,
    transform 2400ms var(--ease-out) 350ms;
}
.js.is-loaded .crest__img { clip-path: inset(0 0 0 0); transform: none; }

/* A soft band of light that glides across the gold, masked to the logo shape */
.crest__shine {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask: url("../assets/logo-crest.svg") center / 100% 100% no-repeat;
  mask: url("../assets/logo-crest.svg") center / 100% 100% no-repeat;
}
.crest__shine span {
  position: absolute;
  top: -20%; bottom: -20%;
  left: -45%;
  width: 35%;
  background: linear-gradient(100deg, transparent 0%, rgba(255, 246, 220, 0.75) 50%, transparent 100%);
  transform: translate3d(0, 0, 0) skewX(-14deg);
  opacity: 0;
}
.js.is-loaded .crest__shine span { animation: shine 9s var(--ease-in-out) 2200ms infinite; }
@keyframes shine {
  0% { transform: translate3d(0, 0, 0) skewX(-14deg); opacity: 1; }
  20% { transform: translate3d(460%, 0, 0) skewX(-14deg); opacity: 1; }
  21%, 100% { transform: translate3d(460%, 0, 0) skewX(-14deg); opacity: 0; }
}

.arch__caption {
  position: absolute;
  bottom: 9%;
  left: 0; right: 0;
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--on-dark-muted);
  font-size: 1.05rem;
}

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px 12px 12px;
  border-radius: 16px;
  background: rgba(23, 21, 15, 0.82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line-dark);
  box-shadow: var(--shadow-lg);
  font-size: 0.86rem;
  line-height: 1.3;
  white-space: nowrap;
  animation: float 7s ease-in-out infinite;
}
.float-card strong { display: block; color: var(--on-dark); font-weight: 600; }
.float-card span.small { color: var(--on-dark-muted); font-size: 0.78rem; }
.float-card .icon-badge { width: 40px; height: 40px; border-radius: 12px; }
.float-card .icon-badge .i { width: 20px; height: 20px; }
.float-card--a { top: 16%; left: -8%; }
.float-card--b { bottom: 18%; right: -10%; animation-delay: -3.5s; }
@keyframes float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -10px, 0); }
}
@media (max-width: 560px) {
  .float-card--a { left: -2%; top: 8%; }
  .float-card--b { right: -2%; bottom: -7%; }
  .float-card { padding: 10px 12px 10px 10px; }
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}
.scroll-cue::after {
  content: "";
  width: 1px; height: 44px;
  background: linear-gradient(var(--gold), transparent);
  transform-origin: top;
  animation: cue 2.4s var(--ease-in-out) infinite;
}
@keyframes cue {
  0% { transform: scaleY(0); opacity: 1; }
  60% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}
@media (min-width: 980px) and (min-height: 760px) { .scroll-cue { display: flex; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--ink);
  color: var(--on-dark);
  --focus: var(--gold);
  padding-block: calc(var(--header-h) + clamp(64px, 10vw, 120px)) clamp(64px, 9vw, 112px);
}
.page-hero .lead { margin-top: 1.5rem; }
.page-hero__inner { max-width: 880px; }
.page-hero__crest {
  position: absolute;
  right: -40px; top: 50%;
  width: 480px;
  height: auto;
  transform: translateY(-42%);
  opacity: 0.07;
  z-index: -1;
  display: none;
  pointer-events: none;
}
@media (min-width: 900px) { .page-hero__crest { display: block; } }

/* ---------- Trust strip ---------- */
.trust {
  background: var(--ink-2);
  color: var(--on-dark-muted);
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}
.trust__list {
  list-style: none;
  margin: 0;
  padding: 22px 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 24px;
}
@media (min-width: 860px) { .trust__list { grid-template-columns: repeat(4, 1fr); } }
.trust__list li { display: flex; align-items: center; gap: 12px; font-size: 0.9rem; }
.trust__list .i { color: var(--gold); width: 22px; height: 22px; }

/* ---------- Pathway (signature timeline) ---------- */
.pathway {
  --cols: 6;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 48px);
  box-shadow: var(--shadow-sm);
}
.pathway__row {
  display: grid;
  gap: 10px;
  padding-block: 14px;
  align-items: center;
}
.pathway__row + .pathway__row { border-top: 1px dashed var(--line); }
@media (min-width: 760px) {
  .pathway__row { grid-template-columns: 190px 1fr; gap: 24px; }
}
.pathway__label { display: flex; flex-direction: column; }
.pathway__label strong { font-family: var(--font-display); font-weight: 500; font-size: 1.15rem; line-height: 1.2; }
.pathway__label span { font-size: 0.84rem; color: var(--muted); }
.pathway__track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--cols), 1fr);
  gap: 6px;
  min-height: 40px;
  align-items: center;
}
.pathway__years .pathway__track { min-height: 52px; }
.year {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
}
.year b {
  display: grid;
  place-items: center;
  width: clamp(38px, 7vw, 52px);
  height: clamp(38px, 7vw, 52px);
  border-radius: 50%;
  background: var(--ink);
  color: var(--gold);
  font: 500 clamp(0.95rem, 2vw, 1.15rem)/1 var(--font-display);
  border: 1px solid rgba(201, 162, 74, 0.45);
}
.pathway__line {
  position: absolute;
  left: calc(100% / var(--cols) / 2);
  right: calc(100% / var(--cols) / 2);
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold));
  transform-origin: left;
}
.bar {
  grid-column: var(--from) / calc(var(--to) + 1);
  height: 36px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  transform-origin: left;
}
.bar--ink { background: var(--ink); color: var(--gold-bright); }
.bar--gold { background: linear-gradient(90deg, var(--gold), var(--gold-bright)); color: var(--ink); }
.bar--sand { background: var(--sand); color: var(--text); }
.bar--dot {
  justify-self: center;
  width: clamp(38px, 7vw, 52px);
  padding: 0;
  border: 1.5px solid var(--gold-deep);
  background: rgba(201, 162, 74, 0.14);
  color: var(--gold-deep);
  transform-origin: center;
}

.js .pathway [data-anim] {
  transform: scaleX(0);
  transition: transform 1100ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 140ms + 200ms);
}
.js .pathway .year b {
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 600ms var(--ease-out), transform 700ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js .pathway.is-in [data-anim] { transform: none; }
.js .pathway.is-in .year b { opacity: 1; transform: none; }

/* ---------- Grids ---------- */
.grid { display: grid; gap: clamp(16px, 2.2vw, 24px); }
@media (min-width: 640px) { .grid--2, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1140px) { .grid--4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 640px) and (max-width: 899px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Cards ---------- */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 36px);
  transition: transform 500ms var(--ease-out), box-shadow 500ms var(--ease-out), border-color 500ms var(--ease-out);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.card p { color: var(--muted); }
.card .h3, .card .h4 { color: var(--text); }
.card--dark {
  background: linear-gradient(180deg, var(--ink-2), var(--ink));
  border-color: var(--line-dark);
  color: var(--on-dark);
  --focus: var(--gold);
}
.card--dark p { color: var(--on-dark-muted); }
.card--dark .h3, .card--dark .h4 { color: var(--on-dark); }
.card__foot { margin-top: auto; padding-top: 0.5rem; }

@media (hover: hover) {
  .card--hover:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(127, 93, 20, 0.35);
  }
  .card--dark.card--hover:hover { border-color: rgba(201, 162, 74, 0.45); box-shadow: 0 30px 70px -30px rgba(201, 162, 74, 0.3); }
  .card--hover:hover .icon-badge { transform: rotate(-6deg) scale(1.06); }
}

/* Stretched link for clickable cards */
.card__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }

.card__tag {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(201, 162, 74, 0.14);
}
.card--dark .card__tag { color: var(--gold-bright); background: rgba(201, 162, 74, 0.12); }

.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.check-list li { display: flex; gap: 0.7rem; align-items: flex-start; }
.check-list .i { width: 20px; height: 20px; color: var(--gold-deep); margin-top: 3px; }
.section--dark .check-list .i, .card--dark .check-list .i { color: var(--gold); }

/* ---------- Feature split ---------- */
.split { display: grid; gap: clamp(40px, 6vw, 88px); align-items: center; }
@media (min-width: 960px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--wide-left { grid-template-columns: 1.15fr 0.85fr; }
}

.feature-list { display: grid; gap: 8px; }
.feature {
  display: flex;
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.feature:last-child { border-bottom: 1px solid var(--line); }
.feature .h4 { margin-bottom: 0.35rem; }
.feature p { color: var(--muted); }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: clamp(16px, 2.5vw, 28px); }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  position: relative;
  padding: clamp(28px, 3vw, 40px);
  border-radius: var(--radius);
  border: 1px solid var(--line-dark);
  background: linear-gradient(180deg, rgba(245, 239, 226, 0.035), transparent);
}
.step__num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 3.4rem;
  line-height: 1;
  color: var(--gold);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 16px;
}
.step__num::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line-dark), transparent);
}
.step .h3 { margin-bottom: 0.75rem; }

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stats--3 { grid-template-columns: 1fr; }
@media (min-width: 720px) { .stats--3 { grid-template-columns: repeat(3, 1fr); } }
.stat {
  background: var(--ink);
  padding: clamp(24px, 3.5vw, 44px) clamp(18px, 2.5vw, 32px);
}
.stat .stat__num {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.6rem;
  font-weight: 400;
}
.stat p { color: var(--on-dark-muted); font-size: 0.92rem; }
.stats--light { background: var(--line); border-color: var(--line); }
.stats--light .stat { background: var(--surface); }
.stats--light .stat p { color: var(--muted); }
.stats--light .stat .stat__num { color: var(--ink); }

/* ---------- Testimonials ---------- */
.quote-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(28px, 3.2vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 0;
}
.quote-card blockquote { margin: 0; }
.quote-card blockquote p {
  font-family: var(--font-display);
  font-size: 1.18rem;
  line-height: 1.55;
  color: var(--text);
}
.quote-card__mark { width: 34px; height: 26px; color: var(--gold); }
.quote-card figcaption { margin-top: auto; display: flex; align-items: center; gap: 14px; }
.avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink);
  color: var(--gold);
  font: 500 1rem/1 var(--font-display);
  flex-shrink: 0;
}
.quote-card figcaption strong { display: block; font-weight: 600; font-size: 0.95rem; }
.quote-card figcaption span { color: var(--muted); font-size: 0.85rem; }

.quote-feature {
  text-align: center;
  max-width: 900px;
  margin-inline: auto;
}
.quote-feature p {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  line-height: 1.3;
  font-weight: 400;
}
.quote-feature .quote-card__mark { margin: 0 auto 1.75rem; width: 48px; height: 36px; }
.quote-feature footer { margin-top: 1.75rem; color: var(--on-dark-muted); font-size: 0.95rem; }

.stars { display: flex; gap: 3px; color: var(--gold); }
.stars .i { width: 16px; height: 16px; }

/* ---------- Location cards ---------- */
.location { overflow: hidden; }
.location--featured {
  background: var(--ink);
  color: var(--on-dark);
  border-color: var(--ink);
  --focus: var(--gold);
}
.location--featured p { color: var(--on-dark-muted); }
.location--featured .h3 { color: var(--on-dark); }
.location--featured .icon-badge { background: var(--gold); color: var(--ink); }
.location--featured .text-link { color: var(--gold); }
.location--featured .card__tag { color: var(--gold-bright); background: rgba(201, 162, 74, 0.12); }
.location__arch {
  position: absolute;
  right: -40px; bottom: -60px;
  width: 200px; height: 240px;
  border-radius: 999px 999px 0 0;
  border: 1px solid rgba(201, 162, 74, 0.2);
  pointer-events: none;
}
.location__arch::after {
  content: "";
  position: absolute; inset: 18px;
  border-radius: inherit;
  border: 1px solid rgba(201, 162, 74, 0.12);
}

/* ---------- CTA band ---------- */
.cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: var(--on-dark);
  --focus: var(--gold);
  padding: clamp(48px, 8vw, 104px) clamp(24px, 6vw, 80px);
  text-align: center;
}
.cta::before {
  content: "";
  position: absolute;
  left: 50%; top: 58%;
  width: min(900px, 160%);
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 162, 74, 0.22), transparent 60%);
  z-index: -1;
}
.cta__arches {
  position: absolute; inset: auto 0 -2px 0;
  height: 70%;
  z-index: -1;
  display: flex;
  justify-content: center;
  gap: 0;
  pointer-events: none;
}
.cta__arches span {
  position: absolute;
  bottom: 0;
  left: 50%;
  border: 1px solid rgba(201, 162, 74, 0.16);
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
  transform: translateX(-50%);
}
.cta__arches span:nth-child(1) { width: 260px; height: 100%; }
.cta__arches span:nth-child(2) { width: 480px; height: 130%; }
.cta__arches span:nth-child(3) { width: 720px; height: 160%; }
.cta__arches span:nth-child(4) { width: 980px; height: 190%; }
.cta .h2 { max-width: 16ch; margin-inline: auto; }
.cta .lead { margin: 1.5rem auto 2.5rem; }
.cta .btn-row { justify-content: center; }

/* ---------- Programs ---------- */
.filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: clamp(32px, 5vw, 48px);
}
.chip-btn {
  min-height: 44px;
  padding: 0 1.15rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  font-weight: 500;
  font-size: 0.92rem;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
@media (hover: hover) { .chip-btn:hover { border-color: var(--ink); } }
.chip-btn[aria-pressed="true"] { background: var(--ink); color: var(--ivory); border-color: var(--ink); }

.program {
  display: grid;
  gap: clamp(24px, 4vw, 56px);
  padding: clamp(28px, 4.5vw, 56px);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.programs { display: grid; gap: clamp(16px, 2.5vw, 24px); }
@media (min-width: 960px) { .program { grid-template-columns: 1fr 1fr; } }
.program__head { display: flex; flex-direction: column; gap: 1rem; }
.program__meta { display: flex; flex-wrap: wrap; gap: 8px; }
.program__body { display: flex; flex-direction: column; gap: 1.5rem; }
.program__body h3 { font-family: var(--font-sans); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-deep); }
.program.is-filtering { animation: fadeUp 600ms var(--ease-out) both; }
.program--dark {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--on-dark);
  --focus: var(--gold);
}
.program--dark p, .program--dark .lead { color: var(--on-dark-muted); }
.program--dark .program__body h3 { color: var(--gold); }
.program--dark .pill--light { background: rgba(245, 239, 226, 0.04); border-color: var(--line-dark); color: var(--on-dark-muted); }
.program--dark h2 em { color: var(--gold); }

.subject-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.subject {
  padding: 0.5rem 0.9rem;
  border-radius: 10px;
  background: var(--paper);
  font-size: 0.9rem;
  font-weight: 500;
}
.program--dark .subject { background: rgba(245, 239, 226, 0.06); color: var(--on-dark); }

@keyframes fadeUp {
  from { opacity: 0; transform: translate3d(0, 16px, 0); }
  to { opacity: 1; transform: none; }
}

/* ---------- Table (format comparison) ---------- */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  -webkit-overflow-scrolling: touch;
}
.compare { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 0.95rem; }
.compare th, .compare td { padding: 18px 22px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font-family: var(--font-display); font-weight: 500; font-size: 1.15rem; background: var(--paper); }
.compare tbody th { font-weight: 600; width: 26%; }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare td .i { color: var(--gold-deep); width: 20px; height: 20px; }

/* ---------- Pricing ---------- */
.pricing { display: grid; gap: clamp(16px, 2.2vw, 24px); align-items: stretch; }
@media (min-width: 960px) { .pricing { grid-template-columns: repeat(3, 1fr); } }
.price-card { padding: clamp(28px, 3.4vw, 44px); gap: 1.4rem; }
.price-card .h3 { font-size: 1.5rem; }
.price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding-block: 0.5rem 1.25rem;
  border-bottom: 1px solid var(--line);
}
.card--dark .price { border-color: var(--line-dark); }
.price__amount {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5vw, 3.8rem);
  line-height: 1;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}
.card--dark .price__amount { color: var(--gold); }
.price__unit { color: var(--muted); font-size: 0.95rem; }
.card--dark .price__unit { color: var(--on-dark-muted); }
.price-card--featured {
  border: 1px solid rgba(201, 162, 74, 0.55);
  box-shadow: 0 40px 90px -40px rgba(201, 162, 74, 0.45);
}
@media (min-width: 960px) { .price-card--featured { transform: translateY(-14px); } }
@media (min-width: 960px) and (hover: hover) { .price-card--featured.card--hover:hover { transform: translateY(-20px); } }
.badge {
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.package-band {
  display: grid;
  gap: 24px;
  align-items: center;
  padding: clamp(28px, 4vw, 48px);
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, var(--gold) 0%, var(--gold-bright) 100%);
  color: var(--ink);
  --focus: var(--ink);
}
.package-band h2 em { color: var(--ink); }
.package-band .lead { color: rgba(15, 14, 11, 0.78); }
@media (min-width: 900px) { .package-band { grid-template-columns: 1.4fr auto; gap: 48px; } }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 18px 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  line-height: 1.3;
  touch-action: manipulation;
}
.faq summary::-webkit-details-marker { display: none; }
.faq__icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid; place-items: center;
  flex-shrink: 0;
  transition: transform var(--dur) var(--ease-out), background-color var(--dur), color var(--dur), border-color var(--dur);
}
.faq__icon .i { width: 16px; height: 16px; }
.faq details[open] .faq__icon { transform: rotate(45deg); background: var(--ink); color: var(--gold); border-color: var(--ink); }
.faq__body { padding: 0 56px 28px 0; color: var(--muted); max-width: 70ch; }
.faq details[open] .faq__body { animation: fadeUp 500ms var(--ease-out); }

/* ---------- Team ---------- */
.tutor {
  text-align: left;
  gap: 0.75rem;
}
.tutor__portrait {
  position: relative;
  aspect-ratio: 4 / 4.4;
  border-radius: 999px 999px var(--radius-sm) var(--radius-sm);
  background:
    radial-gradient(circle at 50% 35%, rgba(201, 162, 74, 0.22), transparent 60%),
    linear-gradient(180deg, var(--ink-3), var(--ink));
  display: grid;
  place-items: center;
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.tutor__initial {
  font-family: var(--font-display);
  font-size: 3.2rem;
  color: var(--gold);
  font-style: italic;
}
.tutor__atar {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font: 600 0.7rem/1 var(--font-sans);
  letter-spacing: 0.16em;
  white-space: nowrap;
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.5);
}
.tutor__atar b { font-size: 1rem; letter-spacing: 0; font-weight: 700; }
.tutor__facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.tutor__facts li { display: flex; gap: 0.65rem; }
.tutor__facts li::before {
  content: "";
  flex-shrink: 0;
  width: 6px; height: 6px;
  margin-top: 0.6em;
  border-radius: 50%;
  background: var(--gold);
}

/* Booking: tutor picker */
.tutor-picker { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
.tutor-picker__legend { padding: 0; margin-bottom: 10px; font-weight: 600; font-size: 0.92rem; color: var(--text); }
.tutor-picker__grid { display: grid; gap: 10px; }
@media (min-width: 720px) { .tutor-picker__grid { grid-template-columns: repeat(3, 1fr); } }
.tutor-pick { position: relative; display: block; cursor: pointer; }
.tutor-pick input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.tutor-pick__card {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
  min-height: 68px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: #fff;
  transition: background-color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.tutor-pick__card .avatar { width: 42px; height: 42px; transition: background-color var(--dur), color var(--dur); }
.tutor-pick__text { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.tutor-pick__text strong { font-weight: 600; font-size: 0.97rem; }
.tutor-pick__text small { font-size: 0.8rem; color: var(--muted); transition: color var(--dur); }
@media (hover: hover) { .tutor-pick:hover .tutor-pick__card { border-color: var(--ink); } }
.tutor-pick input:checked + .tutor-pick__card { background: var(--ink); border-color: var(--ink); color: var(--ivory); box-shadow: var(--shadow-md); }
.tutor-pick input:checked + .tutor-pick__card small { color: var(--on-dark-muted); }
.tutor-pick input:checked + .tutor-pick__card .avatar { background: var(--gold); color: var(--ink); }
.tutor-pick input:focus-visible + .tutor-pick__card { outline: 2px solid var(--focus); outline-offset: 3px; }
.calendar-embed:has(.calendar-setup) { min-height: 380px; }
.tutor__portrait::after {
  content: "";
  position: absolute; inset: 10px;
  border-radius: inherit;
  border: 1px solid rgba(201, 162, 74, 0.2);
}
.tutor__role { color: var(--gold-deep) !important; font-size: 0.86rem; font-weight: 600; }

/* ---------- Values ---------- */
.value {
  padding-top: 28px;
  border-top: 1px solid var(--line-dark);
}
.value__num { font-family: var(--font-display); font-style: italic; color: var(--gold); font-size: 1.1rem; margin-bottom: 1rem; display: block; }
.value .h3 { margin-bottom: 0.75rem; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 22px; }
.form__row { display: grid; gap: 22px; }
@media (min-width: 640px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }

.field { display: grid; gap: 8px; align-content: start; }
.field > label, .fieldset legend {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text);
}
.req { color: var(--error); margin-left: 2px; }
.hint { font-size: 0.84rem; color: var(--muted); }

.input, .select, .textarea {
  width: 100%;
  min-height: 52px;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text);
  font: 400 1rem/1.4 var(--font-sans);
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
  -webkit-appearance: none;
  appearance: none;
}
.textarea { min-height: 132px; resize: vertical; }
.select {
  padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%237f5d14' stroke-width='2' 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 1rem center;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--gold-deep);
  box-shadow: 0 0 0 4px rgba(201, 162, 74, 0.28);
}
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--error); }
.field-error {
  display: none;
  align-items: center;
  gap: 6px;
  color: var(--error);
  font-size: 0.86rem;
  font-weight: 500;
}
.field-error .i { width: 16px; height: 16px; }
.field.has-error .field-error { display: flex; }

.fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.fieldset legend { padding: 0; margin-bottom: 10px; }
.choice-group { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 1rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: #fff;
  font-size: 0.92rem;
  font-weight: 500;
  transition: background-color var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast);
}
.choice span::before {
  content: "";
  width: 16px; height: 16px;
  border-radius: 5px;
  border: 1.5px solid var(--line-strong);
  transition: background-color var(--dur-fast), border-color var(--dur-fast);
}
.choice input[type="radio"] + span::before { border-radius: 50%; }
.choice input:checked + span { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.choice input:checked + span::before {
  border-color: var(--gold);
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f0e0b' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.choice input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 3px; }

.error-summary {
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--error);
  background: #fdf1f0;
  color: var(--error);
}
.error-summary h3 { font-family: var(--font-sans); font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; }
.error-summary ul { margin: 0; padding-left: 1.2rem; }
.error-summary a { color: var(--error); font-weight: 500; }

.form-status {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
}
.form-status--error { background: #fdf1f0; color: var(--error); border: 1px solid rgba(179, 38, 30, 0.35); }
.form-status--info { background: var(--paper); color: var(--text); border: 1px solid var(--line-strong); }

.form-success {
  text-align: center;
  padding: clamp(32px, 6vw, 64px) 16px;
  animation: fadeUp 700ms var(--ease-out) both;
}
.form-success__icon {
  width: 72px; height: 72px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: var(--ink);
  color: var(--gold);
  display: grid; place-items: center;
}
.form-success__icon svg { width: 34px; height: 34px; }
.form-success__icon path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: tick 700ms var(--ease-out) 250ms forwards; }
@keyframes tick { to { stroke-dashoffset: 0; } }

/* ---------- Contact / booking ---------- */
.contact-layout { display: grid; gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (min-width: 1040px) { .contact-layout { grid-template-columns: 1fr 360px; } }

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 4vw, 44px);
  box-shadow: var(--shadow-sm);
}

.tabs {
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 4px;
  padding: 5px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  margin-bottom: clamp(24px, 4vw, 36px);
  position: relative;
  width: 100%;
  max-width: 520px;
}
.tab {
  position: relative;
  z-index: 1;
  min-height: 48px;
  padding: 0 1rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-weight: 600;
  font-size: 0.93rem;
  white-space: nowrap;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
  touch-action: manipulation;
  transition: color var(--dur) var(--ease-out);
}
.tab .i { width: 18px; height: 18px; }
.tab[aria-selected="true"] { color: var(--ivory); }
.tabs__indicator {
  position: absolute;
  top: 5px; bottom: 5px; left: 5px;
  width: calc((100% - 10px - 4px) / 2);
  border-radius: 999px;
  background: var(--ink);
  transition: transform 500ms var(--ease-out);
  box-shadow: var(--shadow-md);
}
.tabs[data-active="1"] .tabs__indicator { transform: translateX(calc(100% + 4px)); }
@media (max-width: 400px) {
  .tab { padding: 0 0.6rem; gap: 6px; font-size: 0.82rem; }
}
.tabpanel:focus-visible { outline: none; }
.tabpanel.is-entering { animation: fadeUp 500ms var(--ease-out) both; }

.calendar-embed {
  position: relative;
  min-height: 720px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ivory);
}
@media (max-width: 760px) { .calendar-embed { min-height: 980px; } }
.calendar-embed .calendly-inline-widget, .calendar-embed iframe { width: 100%; height: 100%; min-height: inherit; border: 0; }

.skeleton {
  position: absolute; inset: 0;
  padding: clamp(20px, 3vw, 32px);
  display: grid;
  gap: 16px;
  align-content: start;
}
.skeleton div {
  border-radius: 12px;
  background: linear-gradient(90deg, var(--paper) 0%, #fbf7ef 40%, var(--paper) 80%) 0 0 / 300% 100%;
  animation: shimmer 1.6s linear infinite;
}
@keyframes shimmer { to { background-position: -300% 0; } }

.calendar-setup {
  display: grid;
  place-items: center;
  text-align: center;
  min-height: inherit;
  padding: 32px 20px;
}
.calendar-setup__inner { max-width: 460px; display: grid; gap: 16px; justify-items: center; }
.mini-cal {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  width: min(100%, 320px);
  margin-bottom: 8px;
}
.mini-cal span {
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 0.8rem;
  color: var(--muted);
}
.mini-cal span.is-avail { background: rgba(201, 162, 74, 0.18); color: var(--gold-deep); font-weight: 600; }
.mini-cal span.is-head { font-weight: 600; font-size: 0.7rem; letter-spacing: 0.06em; color: var(--text); aspect-ratio: auto; padding-block: 4px; }

.info-card { display: grid; gap: 22px; }
.info-item { display: flex; gap: 14px; align-items: flex-start; }
.info-item .icon-badge { width: 44px; height: 44px; border-radius: 12px; }
.info-item .icon-badge .i { width: 20px; height: 20px; }
.info-item strong { display: block; font-weight: 600; margin-bottom: 2px; }
.info-item p, .info-item a { color: var(--muted); font-size: 0.95rem; }
.info-item a { text-decoration: none; }
.info-item a:hover { color: var(--gold-deep); text-decoration: underline; }
.card--dark .info-item p, .card--dark .info-item a { color: var(--on-dark-muted); }
.card--dark .info-item a:hover { color: var(--gold); }

/* ---------- Footer ---------- */
.site-footer {
  background: #0a0907;
  color: var(--on-dark-muted);
  --focus: var(--gold);
  padding-block: clamp(64px, 9vw, 104px) 32px;
  position: relative;
  overflow: hidden;
}
.footer-grid { display: grid; gap: 40px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 56px; } }
.site-footer h2 {
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.25rem; }
.site-footer a { text-decoration: none; transition: color var(--dur-fast); }
.site-footer li a { display: inline-block; padding-block: 0.3rem; }
.site-footer a:hover { color: var(--on-dark); }
.footer-blurb { margin-top: 1.25rem; max-width: 36ch; font-size: 0.95rem; }
.site-footer .brand__mark { height: 60px; }
.site-footer .brand__word { height: 42px; }
.footer-wordmark {
  width: min(860px, 100%);
  margin: clamp(56px, 8vw, 104px) auto 0;
  opacity: 0.1;
  user-select: none;
  pointer-events: none;
}
.footer-wordmark img { width: 100%; height: auto; }
.footer-bottom {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  justify-content: space-between;
  font-size: 0.85rem;
}
.acknowledgement { font-size: 0.88rem; max-width: 70ch; font-style: italic; }

/* ---------- Scroll reveal ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 32px, 0);
  transition: opacity 1000ms var(--ease-out), transform 1000ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal="scale"] { transform: scale(0.96); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
/* Featured pricing card keeps its lift once revealed */
@media (min-width: 960px) { .js .price-card--featured[data-reveal].is-in { transform: translateY(-14px); } }

.gold-rule {
  display: block;
  width: 64px; height: 1px;
  background: var(--gold);
  margin-block: 1.75rem;
}
.js .gold-rule[data-reveal] { transform: scaleX(0); transform-origin: left; opacity: 1; }
.js .gold-rule[data-reveal].is-in { transform: scaleX(1); }

/* ---------- Placeholder highlighting (?placeholders) ---------- */
.show-ph [data-ph] {
  outline: 2px dashed #e0218a !important;
  outline-offset: 2px;
  background-color: rgba(224, 33, 138, 0.1) !important;
  border-radius: 4px;
}
.ph-banner {
  position: fixed;
  bottom: 16px; left: 16px; right: 16px;
  z-index: 200;
  padding: 12px 16px;
  border-radius: 12px;
  background: #e0218a;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

/* ---------- 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: 0ms !important;
  }
  .js [data-reveal], .js .hero-fade, .js [data-split] .w > span,
  .js .pathway [data-anim], .js .pathway .year b { opacity: 1; transform: none; }
  .js .crest__img { clip-path: none; transform: none; }
  .arch__ring, .float-card, .skeleton div, .js.is-loaded .crest__shine span { animation: none; }
  @view-transition { navigation: none; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .mobile-menu, .progress, .scroll-cue, .footer-wordmark { display: none !important; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
}
