/* ==========================================================================
   Ascent Academy — design system
   Navy #13294F · Gold #C5983C · Fraunces (display) + Inter (text)
   ========================================================================== */

/* --- 1. Tokens ----------------------------------------------------------- */
:root {
  --navy-900: #0b1730;
  --navy-800: #0f2040;
  --navy-700: #13294f;   /* brand navy */
  --navy-600: #1e3c6e;
  --navy-500: #2c4f86;

  --gold-700: #8f6a1f;
  --gold-600: #a87c28;
  --gold-text: #8F6B1B;  /* AA on paper/white for small text */
  --gold-500: #c5983c;   /* brand gold */
  --gold-400: #d9b45f;
  --gold-300: #e8ce93;
  --gold-100: #f5e9ce;

  --paper: #fbf9f5;
  --paper-2: #f4f0e8;
  --white: #fff;

  --ink: #16233d;
  --ink-soft: #55617a;
  --ink-faint: #7a849a;
  --line: rgba(19, 41, 79, 0.12);
  --line-strong: rgba(19, 41, 79, 0.2);

  --mark-gold: var(--gold-500);

  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino,
    Georgia, "Times New Roman", serif;
  --font-text: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;

  --fs-hero: clamp(2.7rem, 1.55rem + 4.6vw, 5.1rem);
  --fs-h1: clamp(2.2rem, 1.5rem + 3vw, 3.7rem);
  --fs-h2: clamp(1.85rem, 1.35rem + 2.2vw, 2.9rem);
  --fs-h3: clamp(1.2rem, 1.08rem + 0.65vw, 1.55rem);
  --fs-lead: clamp(1.05rem, 1rem + 0.35vw, 1.24rem);
  --fs-sm: 0.9rem;
  --fs-xs: 0.78rem;

  --container: 1200px;
  --gutter: clamp(1.15rem, 4vw, 2.5rem);
  --section-y: clamp(4rem, 3rem + 6vw, 7.5rem);

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(11, 23, 48, 0.06),
    0 4px 14px rgba(11, 23, 48, 0.05);
  --shadow-md: 0 2px 6px rgba(11, 23, 48, 0.07),
    0 14px 34px rgba(11, 23, 48, 0.09);
  --shadow-lg: 0 4px 12px rgba(11, 23, 48, 0.08),
    0 28px 64px rgba(11, 23, 48, 0.14);

  --ease: cubic-bezier(0.22, 0.68, 0.3, 1);
  --header-h: 76px;
}

/* --- 2. Reset ------------------------------------------------------------ */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Fraunces is a variable font with a "WONK" axis that swaps in
     decorative alternate letterforms (including a curled capital J).
     Default it off everywhere; the one deliberate exception (the
     hero's italic "summit") re-enables it locally via a higher-
     specificity selector below. */
  font-variation-settings: "SOFT" 0, "WONK" 0;
  font-optical-sizing: auto;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--navy-700);
  margin: 0 0 0.5em;
  font-variation-settings: "SOFT" 0, "WONK" 0;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -0.01em; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--navy-600); text-decoration-color: rgba(197, 152, 60, 0.5); text-underline-offset: 3px; }
a:hover { color: var(--gold-600); }

ul, ol { margin: 0 0 1.1em; padding-left: 1.25em; }
li { margin-bottom: 0.4em; }

button { font: inherit; color: inherit; }

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

::selection { background: var(--gold-300); color: var(--navy-800); }

.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -120%);
  z-index: 200;
  background: var(--navy-700);
  color: #fff;
  padding: 0.7rem 1.2rem;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); color: #fff; }

.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;
}

/* --- 3. Layout primitives ------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 820px; }

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(3rem, 2.2rem + 3.5vw, 5rem); }
.section--paper { background: var(--paper-2); }
.section--white { background: var(--white); }

.section--navy {
  background: var(--navy-700);
  color: rgba(255, 255, 255, 0.82);
}
.section--navy h2,
.section--navy h3 { color: #fff; }

/* Faint ruled-paper texture — the "studious" undertone */
.ruled::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 37px,
    rgba(19, 41, 79, 0.045) 37px,
    rgba(19, 41, 79, 0.045) 38px
  );
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent);
}

.section-head { max-width: 760px; margin-bottom: clamp(2.2rem, 1.6rem + 2vw, 3.6rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--ink-soft); font-size: var(--fs-lead); }
.section--navy .section-head p { color: rgba(255, 255, 255, 0.72); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--gold-500);
}
.section-head--center .eyebrow::after {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--gold-500);
}
.section--navy .eyebrow { color: var(--gold-400); }
.section--navy .eyebrow::before,
.section--navy .eyebrow::after { background: var(--gold-400); }

.grid { display: grid; gap: clamp(1.1rem, 0.8rem + 1.2vw, 1.8rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(285px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.lead { font-size: var(--fs-lead); color: var(--ink-soft); }
/* Story-style narrative blocks (headline + lead + body + a pull-quote) were
   stacking four near-but-not-quite text sizes in one view — lead, quote and
   body all sat within a couple of pixels of each other, which read as
   inconsistent rather than deliberate. Collapsed to a clean three-tier scale:
   the h2, one shared reading size for lead/body/quote, and the small cite
   label. Color still marks the lead line; size no longer has to. */
.story-copy .lead { font-size: 1rem; }
.story-copy .quote-block { font-size: 1rem; }
.text-center { text-align: center; }

/* --- 4. Buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.6rem;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background-color 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { flex: none; transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn--primary {
  background: var(--navy-700);
  color: #fff;
  box-shadow: 0 6px 18px rgba(19, 41, 79, 0.24);
}
.btn--primary:hover {
  background: var(--navy-600);
  color: #fff;
  box-shadow: 0 12px 26px rgba(19, 41, 79, 0.3);
}

.btn--gold {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  color: var(--navy-800);
  box-shadow: 0 6px 18px rgba(168, 124, 40, 0.32);
}
.btn--gold:hover {
  color: var(--navy-900);
  box-shadow: 0 12px 28px rgba(168, 124, 40, 0.4);
}

.btn--ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--navy-700);
}
.btn--ghost:hover {
  background: rgba(19, 41, 79, 0.05);
  border-color: var(--navy-700);
  color: var(--navy-700);
}

.btn--on-navy {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}
.btn--on-navy:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

.btn--lg { padding: 1.05rem 2rem; font-size: 1rem; }
.btn--block { width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}
.btn-row--center { justify-content: center; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  font-size: 0.93rem;
  color: var(--navy-600);
  text-decoration: none;
}
.link-arrow::after {
  content: "→";
  transition: transform 0.25s var(--ease);
}
.link-arrow:hover::after { transform: translateX(4px); }

/* --- 5. Header ----------------------------------------------------------- */
.announce {
  background: var(--navy-800);
  color: rgba(255, 255, 255, 0.88);
  font-size: var(--fs-xs);
  letter-spacing: 0.02em;
  text-align: center;
  padding: 0.55rem var(--gutter);
}
.announce strong { color: var(--gold-400); font-weight: 600; }
.announce a { color: #fff; text-decoration-color: rgba(255, 255, 255, 0.45); }
.announce a:hover { color: var(--gold-300); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

/* The blur lives on a pseudo-element, not on .site-header itself: an element
   with backdrop-filter becomes the containing block for its position:fixed
   descendants, which would trap the mobile nav drawer inside the header box. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(251, 249, 245, 0.72);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  transition: background-color 0.3s var(--ease);
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(11, 23, 48, 0.06);
}
.site-header.is-stuck::before { background: rgba(251, 249, 245, 0.9); }

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  flex: none;
}
.brand img { width: 46px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.24rem;
  letter-spacing: 0.11em;
  color: var(--navy-700);
  text-transform: uppercase;
}
.brand-sub {
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-top: 4px;
}
/* Header-only tagline under the wordmark. Not used on the footer's brand
   lockup, which already carries its own longer tagline sentence. */
.brand-tagline {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
  margin-top: 3px;
  white-space: nowrap;
}

.nav { display: flex; align-items: center; gap: 0.35rem; }
.nav a {
  position: relative;
  padding: 0.5rem 0.85rem;
  border-radius: var(--r-sm);
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.22rem;
  height: 2px;
  background: var(--gold-500);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s var(--ease);
}
.nav a:hover { color: var(--navy-700); }
.nav a:hover::after,
.nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--navy-700); font-weight: 600; }

/* The CTA and phone link inside the nav exist for the mobile drawer only */
.nav .btn { display: none; }
.nav-phone { display: none; }

.header-actions { display: flex; align-items: center; gap: 0.75rem; }
/* Compact trial-booking pill for the mobile sticky header only. Below the
   1000px drawer breakpoint there is no room for the full "Book a free trial
   class" button (and the drawer hides it), so the header would otherwise
   show nothing tappable toward booking except the hamburger. This keeps a
   one-tap path to the trial form visible at every scroll position. */
.header-cta-mobile {
  display: none;
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
  white-space: nowrap;
}
.header-phone {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy-700);
  text-decoration: none;
  white-space: nowrap;
}
.header-phone:hover { color: var(--gold-600); }

/* Compact click-to-call icon for the mobile header (≤1000px). The full
   .header-phone text link is dropped at 1080px to make room for the nav,
   which left mobile visitors with no visible way to call without opening
   the drawer menu. This restores a one-tap call path without the width
   cost of the full phone number. Hidden by default; shown in the ≤1000px
   media query below alongside .header-cta-mobile. */
.header-phone-icon {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  color: var(--navy-700);
  flex: none;
}
.header-phone-icon:hover { color: var(--gold-600); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  cursor: pointer;
  /* above the open drawer, so the close (X) affordance stays reachable */
  position: relative;
  z-index: 2;
}
.nav-toggle span {
  position: absolute;
  left: 50%; top: 50%;
  width: 19px; height: 2px;
  margin-left: -9.5px;
  background: var(--navy-700);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle span:nth-child(1) { transform: translateY(-6px); }
.nav-toggle span:nth-child(2) { transform: translateY(0); }
.nav-toggle span:nth-child(3) { transform: translateY(6px); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg); }

/* Once open, the toggle sits on the navy drawer — flip it to white so the
   close affordance is actually visible. */
.nav-toggle[aria-expanded="true"] {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
}
.nav-toggle[aria-expanded="true"] span { background: #fff; }

/* --- 6. Hero ------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.5rem, 2.5rem + 6vw, 7rem) clamp(4rem, 3rem + 5vw, 6.5rem);
}
.hero::before {
  /* sunburst glow echoing the mark */
  content: "";
  position: absolute;
  top: -38%;
  left: 50%;
  width: min(1150px, 130vw);
  aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(
    circle at 50% 50%,
    rgba(197, 152, 60, 0.2) 0%,
    rgba(197, 152, 60, 0.09) 32%,
    rgba(197, 152, 60, 0) 62%
  );
  pointer-events: none;
}
.hero > .container { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  align-items: center;
}

.hero h1 {
  font-size: var(--fs-hero);
  letter-spacing: -0.033em;
  margin-bottom: 0.55em;
}
.hero h1 em {
  font-style: italic;
  color: var(--gold-600);
  font-variation-settings: "SOFT" 40, "WONK" 1;
}
.hero-lead {
  font-size: var(--fs-lead);
  color: var(--ink-soft);
  max-width: 52ch;
  margin-bottom: 2rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.42rem 0.95rem 0.42rem 0.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--navy-700);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.6rem;
}
.pill b {
  background: var(--gold-100);
  color: var(--gold-700);
  padding: 0.2rem 0.6rem;
  border-radius: var(--r-pill);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.75rem;
  margin-top: 2.1rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  font-size: 0.87rem;
  color: var(--ink-soft);
}
.hero-proof span { display: inline-flex; align-items: center; gap: 0.45rem; }
.hero-proof svg { flex: none; color: var(--gold-600); }

/* Hero visual: a stack of "result" cards */
.hero-visual { position: relative; }

.hero-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.6rem;
  box-shadow: var(--shadow-lg);
}
.hero-card-top {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.1rem;
}
.hero-card-top img { width: 40px; }
.hero-card-top div { line-height: 1.3; }
.hero-card-top strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.02rem;
  color: var(--navy-700);
}
.hero-card-top small { color: var(--ink-faint); font-size: 0.8rem; }

.hero-checklist { margin-top: 0; font-size: 0.88rem; }
.hero-checklist li { margin-bottom: 0.75rem; padding-left: 1.9rem; }
.hero-checklist li:last-child { margin-bottom: 0; }
.hero-checklist li::before { width: 20px; height: 20px; }
.hero-checklist li::after { left: 7px; width: 4px; height: 8px; }
.hero-checklist li strong { font-size: 0.92rem; }

.hero-badge {
  position: absolute;
  right: -14px;
  bottom: -26px;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: var(--navy-700);
  color: #fff;
  padding: 0.85rem 1.15rem;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
}
.hero-badge b {
  font-family: var(--font-display);
  font-size: 1.65rem;
  line-height: 1;
  color: var(--gold-400);
}
.hero-badge span {
  font-size: 0.72rem;
  line-height: 1.3;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

/* --- 7. Logo / trust strip ---------------------------------------------- */
.trust {
  padding-block: clamp(1.8rem, 1.4rem + 1.5vw, 2.6rem);
  border-block: 1px solid var(--line);
  background: var(--white);
}
.trust-label {
  text-align: center;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 1.4rem;
}
.trust-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.7rem clamp(1.2rem, 3vw, 2.8rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.trust-list li {
  margin: 0;
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 0, "WONK" 0;
  font-size: clamp(0.95rem, 0.85rem + 0.4vw, 1.2rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--navy-700);
  opacity: 0.62;
  transition: opacity 0.25s var(--ease);
}
.trust-list li:hover { opacity: 1; }
.trust-note {
  text-align: center;
  max-width: 40rem;
  margin: 1.6rem auto 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(0.95rem, 0.88rem + 0.3vw, 1.05rem);
  color: var(--ink-soft);
}

/* --- 8. Cards ------------------------------------------------------------ */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 1.2rem + 0.8vw, 2rem);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-300));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(197, 152, 60, 0.4);
}
.card:hover::before { transform: scaleX(1); }
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--ink-soft); font-size: 0.95rem; }
/* The homepage program cards (Year 3/4/5) read too pale at --ink-soft
   against the white card background; give them the darker body ink. */
.program-card .program-body p { color: var(--ink); }

.card-icon {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  margin-bottom: 1.15rem;
  border-radius: var(--r-md);
  background: linear-gradient(150deg, var(--gold-100), rgba(245, 233, 206, 0.35));
  color: var(--gold-700);
  border: 1px solid rgba(197, 152, 60, 0.28);
}

.card-tag {
  display: inline-block;
  align-self: flex-start;
  padding: 0.28rem 0.7rem;
  margin-bottom: 0.9rem;
  border-radius: var(--r-pill);
  background: var(--paper-2);
  color: var(--navy-600);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.card-list {
  list-style: none;
  padding: 0;
  margin: 1.1rem 0 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.card-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
}
.card-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold-500);
}

.card-foot {
  margin-top: auto;
  padding-top: 1.3rem;
}

/* Program card — with year-level rail */
.program-card { padding-left: 0; }
.program-card .program-body { padding-left: clamp(1.5rem, 1.2rem + 0.8vw, 2rem); }
.program-rail {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--navy-600), var(--gold-500));
}

/* --- 9. Stats ------------------------------------------------------------ */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  text-align: center;
}
.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 1.8rem + 2.6vw, 3.6rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--gold-400);
  margin-bottom: 0.45rem;
}
.stat span {
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.72);
}
.stats--light .stat b { color: var(--navy-700); }
.stats--light .stat span { color: var(--ink-soft); }
/* Short phrase tiles (e.g. "In-house", "Trial first") read oversized at the
   big numeric-stat size, so they get a smaller, still-bold treatment. */
.stat b.stat-label { font-size: clamp(1.3rem, 1.05rem + 0.9vw, 1.7rem); }

/* --- 10. Steps ----------------------------------------------------------- */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 2.6rem; }
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  top: 0; left: 0;
  font-family: var(--font-display);
  font-size: 2.3rem;
  font-weight: 600;
  line-height: 1;
  color: rgba(197, 152, 60, 0.42);
  letter-spacing: -0.03em;
}
.step::after {
  content: "";
  position: absolute;
  top: 1.15rem;
  left: 3.6rem;
  right: -1.4rem;
  height: 1px;
  background: linear-gradient(90deg, var(--line-strong), transparent);
}
.step:last-child::after { display: none; }
.step h3 { margin-bottom: 0.4rem; }
.step p { color: var(--ink-soft); font-size: 0.95rem; }

/* --- 11. Feature split --------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: clamp(2rem, 1.2rem + 4vw, 4.5rem);
  align-items: center;
}
.split--reverse > *:first-child { order: 2; }

.figure-frame {
  position: relative;
  border-radius: var(--r-xl);
  padding: clamp(1.6rem, 1.2rem + 2vw, 2.8rem);
  background: linear-gradient(155deg, var(--navy-700), var(--navy-900));
  color: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.figure-frame::before {
  content: "";
  position: absolute;
  top: -30%; right: -18%;
  width: 68%; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(197, 152, 60, 0.32), transparent 68%);
}
.figure-frame > * { position: relative; }
.figure-frame img { width: 84px; margin-bottom: 1.4rem; }
.figure-frame h3 { color: #fff; font-size: 1.45rem; }
.figure-frame p { color: rgba(255, 255, 255, 0.76); font-size: 0.96rem; }

.quote-block {
  border-left: 3px solid var(--gold-500);
  padding-left: 1.5rem;
  margin: 1.8rem 0 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--navy-700);
}
.quote-block cite {
  display: block;
  margin-top: 0.8rem;
  font-family: var(--font-text);
  font-style: normal;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.checklist { list-style: none; padding: 0; margin: 1.6rem 0 0; }
.checklist li {
  position: relative;
  padding-left: 2.1rem;
  margin-bottom: 0.95rem;
  color: var(--ink-soft);
}
.checklist li strong { color: var(--ink); display: block; font-weight: 600; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.16em;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--gold-100);
  border: 1px solid rgba(197, 152, 60, 0.4);
}
.checklist li::after {
  content: "";
  position: absolute;
  left: 8px; top: 0.52em;
  width: 5px; height: 9px;
  border: solid var(--gold-700);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* --- 12. Tutors ---------------------------------------------------------- */
/* Staff profile cards. First used 2026-09 for the founders' profiles on the
   About page (see the FOUNDERS section) — still ready to reuse for real tutor
   profiles later. The base .tutor-avatar was designed for text/initials; the
   img rule below lets the same circle hold a real photo instead. */
.tutor-card { text-align: center; align-items: center; }
.tutor-avatar {
  position: relative;
  width: 96px; height: 96px;
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
  border-radius: 50%;
  background: linear-gradient(150deg, var(--navy-700), var(--navy-500));
  color: var(--gold-300);
  font-family: var(--font-display);
  font-size: 1.9rem;
  letter-spacing: 0.02em;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 1px rgba(197, 152, 60, 0.45);
  overflow: hidden;
}
.tutor-avatar img {
  /* Absolutely positioned so a non-square source photo still fills the
     circle exactly — a plain width/height:100% on a grid child with
     place-items:center does NOT stretch to the cell, it falls back to
     the image's own intrinsic aspect ratio. inset:0 sidesteps that
     entirely. Source photos are now pre-cropped to a square (700x700,
     head-and-shoulders framing) so object-position can stay centered —
     object-fit:cover is just a safety net if a future photo isn't
     perfectly square. */
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
}
.tutor-avatar--lg { width: 140px; height: 140px; }
.tutor-card h3 { margin-bottom: 0.2rem; }
.tutor-role {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 0.9rem;
}

/* --- 14. Pricing --------------------------------------------------------- */
.price-card { position: relative; }
/* Pricing accents use blue instead of the site's default gold, per request. */
.price-card::before { background: linear-gradient(90deg, var(--navy-600), var(--navy-500)); }
.price-card:hover { border-color: rgba(30, 60, 110, 0.35); }
.price-card .card-list li::before { background: var(--navy-500); }
.price-card--featured {
  border-color: var(--navy-700);
  box-shadow: var(--shadow-md);
}
.price-card--featured::before { transform: scaleX(1); }
.price-flag {
  position: absolute;
  top: 1.15rem; right: 1.15rem;
  padding: 0.28rem 0.72rem;
  border-radius: var(--r-pill);
  background: var(--navy-700);
  color: #fff;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.price {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin: 0.4rem 0 0.3rem;
}
.price b {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--navy-700);
}
.price span { color: var(--ink-faint); font-size: 0.9rem; }
.price-note { font-size: 0.85rem; color: var(--ink-faint); }
.price-term { margin-top: 0.25rem; font-size: 0.78rem; color: var(--ink-faint); opacity: 0.8; }

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--white);
}
table { width: 100%; border-collapse: collapse; min-width: 560px; }
th, td {
  padding: 0.95rem 1.15rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 0.93rem;
}
thead th {
  background: var(--paper-2);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy-700);
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: rgba(197, 152, 60, 0.05); }
td strong { color: var(--navy-700); }

/* --- 15. FAQ ------------------------------------------------------------- */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.4rem 0;
  background: none;
  border: 0;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--navy-700);
  cursor: pointer;
  transition: color 0.2s var(--ease);
}
.faq-q:hover { color: var(--gold-600); }
.faq-icon {
  flex: none;
  position: relative;
  width: 22px; height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease),
    transform 0.3s var(--ease);
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  background: var(--navy-700);
  transition: opacity 0.25s var(--ease), background-color 0.25s var(--ease);
}
.faq-icon::before { width: 9px; height: 1.5px; margin: -0.75px 0 0 -4.5px; }
.faq-icon::after { width: 1.5px; height: 9px; margin: -4.5px 0 0 -0.75px; }
.faq-q[aria-expanded="true"] .faq-icon {
  background: var(--gold-500);
  border-color: var(--gold-500);
  transform: rotate(180deg);
}
.faq-q[aria-expanded="true"] .faq-icon::after { opacity: 0; }
.faq-q[aria-expanded="true"] .faq-icon::before { background: #fff; }

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s var(--ease);
}
.faq-a > div { overflow: hidden; }
.faq-a[data-open="true"] { grid-template-rows: 1fr; }
.faq-a p {
  padding-bottom: 1.5rem;
  color: var(--ink-soft);
  font-size: 0.97rem;
  max-width: 68ch;
}

/* --- 16. CTA band -------------------------------------------------------- */
.cta {
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, var(--navy-700), var(--navy-900));
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
}
.cta::before,
.cta::after {
  content: "";
  position: absolute;
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
}
.cta::before {
  top: -46%; left: 50%;
  width: min(780px, 100vw);
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(197, 152, 60, 0.3), transparent 66%);
}
.cta::after {
  bottom: -55%; right: -12%;
  width: min(520px, 70vw);
  background: radial-gradient(circle, rgba(44, 79, 134, 0.5), transparent 68%);
}
.cta > .container { position: relative; z-index: 1; }
.cta h2 { color: #fff; max-width: 18ch; margin-inline: auto; }
.cta p {
  color: rgba(255, 255, 255, 0.75);
  font-size: var(--fs-lead);
  max-width: 56ch;
  margin-inline: auto;
  margin-bottom: 2rem;
}
.cta-note {
  margin-top: 1.4rem;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.55);
}

/* --- 17. Forms ----------------------------------------------------------- */
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(1.6rem, 1.2rem + 1.8vw, 2.8rem);
  box-shadow: var(--shadow-md);
}

.form-note {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--ink-faint);
  line-height: 1.5;
}

/* --- 18. Contact details ------------------------------------------------- */
.contact-item {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}
.contact-item:last-child { border-bottom: 0; }
.contact-item .card-icon { width: 44px; height: 44px; margin: 0; flex: none; }
.contact-item h3 { font-size: 1.02rem; margin-bottom: 0.2rem; }
.contact-item p, .contact-item a {
  font-size: 0.93rem;
  color: var(--ink-soft);
  margin: 0;
  text-decoration: none;
}
.contact-item a:hover { color: var(--gold-600); }

/* Baked-in map image, used where a third-party frame cannot load (the shared
   single-file preview, or a browser blocking Google). Clickable: opens Maps. */
.map-static {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  line-height: 0;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.map-static img { width: 100%; height: auto; display: block; }
.map-static:hover {
  border-color: rgba(197, 152, 60, 0.55);
  box-shadow: var(--shadow-sm);
}

/* Live Google Maps embed. Kept as its own class so the placeholder .map-frame
   styling below stays available for builds where an iframe cannot load. */
.map-embed {
  display: block;
  width: 100%;
  height: 320px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--paper-2);
}

.map-frame {
  height: 260px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background:
    linear-gradient(rgba(19, 41, 79, 0.06), rgba(19, 41, 79, 0.06)),
    repeating-linear-gradient(45deg, var(--paper-2) 0 14px, var(--paper) 14px 28px);
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--ink-faint);
  font-size: 0.86rem;
  padding: 1.5rem;
}

/* --- 19. Page hero (inner pages) ---------------------------------------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 2.4rem + 3.5vw, 5.5rem) clamp(2.5rem, 2rem + 3vw, 4.5rem);
  background: var(--white);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.page-hero::before {
  content: "";
  position: absolute;
  top: -60%; left: 50%;
  width: min(900px, 120vw);
  aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(197, 152, 60, 0.15), transparent 62%);
  pointer-events: none;
}
.page-hero > .container { position: relative; z-index: 1; }
.page-hero p {
  max-width: 62ch;
  margin-inline: auto;
  font-size: var(--fs-lead);
  color: var(--ink-soft);
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1.2rem;
  font-size: var(--fs-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.breadcrumb a { color: var(--ink-faint); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold-600); }
.breadcrumb li + li::before { content: "/"; margin-right: 0.5rem; opacity: 0.5; }

/* --- 20. Footer ---------------------------------------------------------- */
.site-footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.9rem;
  padding-block: clamp(3rem, 2.4rem + 3vw, 4.5rem) 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: clamp(2rem, 1.4rem + 2.5vw, 3.5rem);
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-sub { color: var(--gold-400); }
.footer-brand p {
  margin-top: 1.1rem;
  max-width: 34ch;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.88rem;
}

.footer-col h3 {
  color: #fff;
  font-family: var(--font-text);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a {
  color: rgba(255, 255, 255, 0.62);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.footer-col a:hover { color: var(--gold-300); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem 1.5rem;
  padding-top: 1.8rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.42);
}
.footer-bottom a { color: rgba(255, 255, 255, 0.55); text-decoration: none; }
.footer-bottom a:hover { color: var(--gold-300); }

/* --- 21. Reveal animation ------------------------------------------------ */

/* Above-the-fold content animates on load rather than on scroll, so it can
   never be left invisible waiting for an observer that already fired. */
@keyframes rise {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}
.hero-in { animation: rise 0.75s var(--ease) both; }
.hero-in--2 { animation-delay: 0.14s; }

/* Scoped to .js (set by an inline script in <head>) so that with JavaScript
   disabled or broken the content is simply visible instead of stuck at 0. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: 0.08s; }
[data-reveal-delay="2"] { transition-delay: 0.16s; }
[data-reveal-delay="3"] { transition-delay: 0.24s; }
[data-reveal-delay="4"] { transition-delay: 0.32s; }

/* --- 22. Responsive ------------------------------------------------------ */
@media (max-width: 1040px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 480px; margin-inline: auto; width: 100%; }
  .hero-badge { right: 0; }
  .split--reverse > *:first-child { order: 0; }
  .step::after { display: none; }
}

/* Between the drawer breakpoint and here there is room for the nav but not
   also the phone number — drop it first rather than letting the bar overflow. */
@media (max-width: 1080px) {
  .header-phone { display: none; }
}

@media (max-width: 1000px) {
  :root { --header-h: 66px; }

  .nav-toggle { display: block; }
  .header-actions .btn:not(.header-cta-mobile) { display: none; }
  .header-cta-mobile { display: inline-flex; }
  .header-phone-icon { display: inline-flex; }

  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(360px, 88vw);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: calc(var(--header-h) + 2rem) 1.6rem 2rem;
    background: var(--navy-700);
    box-shadow: -20px 0 60px rgba(11, 23, 48, 0.35);
    z-index: 1;
    transform: translateX(100%);
    /* visibility keeps the closed drawer out of the tab order and stops it
       extending the document's scroll width; delayed so the slide-out shows */
    visibility: hidden;
    transition: transform 0.4s var(--ease), visibility 0s linear 0.4s;
    overflow-y: auto;
  }
  .nav.is-open {
    transform: none;
    visibility: visible;
    transition: transform 0.4s var(--ease), visibility 0s;
  }
  .nav a {
    padding: 1rem 0.25rem;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
  }
  .nav a:hover,
  .nav a[aria-current="page"] { color: #fff; }
  .nav a::after { left: 0.25rem; right: auto; width: 22px; bottom: 0.65rem; }

  .nav .btn {
    display: inline-flex;
    margin-top: 1.6rem;
    border-bottom: 0;
    color: var(--navy-800);
  }
  .nav .btn::after { display: none; }

  .nav-phone {
    display: block;
    margin-top: 0.9rem;
    padding: 0.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
  }
  .nav-phone:hover { color: #fff; }

  .nav-scrim {
    position: fixed;
    inset: 0;
    background: rgba(11, 23, 48, 0.5);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s var(--ease), visibility 0.35s var(--ease);
    z-index: 99;
  }
  .nav-scrim.is-open { opacity: 1; visibility: visible; }
}

@media (max-width: 620px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-badge {
    position: static;
    margin-top: 1.2rem;
    justify-content: center;
  }
  .btn-row .btn { width: 100%; }
  .brand img { width: 40px; }
  .brand-name { font-size: 1.08rem; }
}

/* On the narrowest phones (roughly iPhone SE up to a small Android) there
   isn't room for the header tagline plus the call icon, the trial pill and
   the hamburger all at once — tested with Playwright at 320/360/375px,
   which overflowed horizontally before this rule. Drop the tagline first
   (it's the newest, least essential addition here) and tighten the
   remaining header-actions elements rather than letting the row wrap. */
@media (max-width: 400px) {
  .brand-tagline { display: none; }
  .header-actions { gap: 0.4rem; }
  .header-phone-icon { width: 34px; height: 34px; }
  .header-cta-mobile { padding: 0.4rem 0.6rem; font-size: 0.78rem; }
}

/* Below ~340px (older/small-screen phones) even the tightened row above
   doesn't fit — tested with Playwright. Drop the call icon here rather
   than let the row overflow; the drawer menu (opened via the hamburger)
   still has the full "Call 0420 140 002" link, so calling is one tap
   further away but never unreachable. */
@media (max-width: 340px) {
  .header-phone-icon { display: none; }
}

/* --- 23. Motion & print -------------------------------------------------- */
@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;
    scroll-behavior: auto !important;
  }
  /* must match the .js-scoped base rule's specificity to win */
  .js [data-reveal] { opacity: 1; transform: none; }
  .hero-in { animation: none; opacity: 1; transform: none; }
}

@media print {
  .site-header, .announce, .nav-scrim, .cta, .site-footer { display: none; }
  body { background: #fff; }
  .card, .form-card { box-shadow: none; border-color: #ccc; }
}

/* ── Form tabs (contact page) ─────────────────────────────────────────── */
.form-tabs{
  display:flex; flex-wrap:wrap; gap:.5rem; margin-bottom:1.5rem;
}
.form-tab{
  font:inherit; font-weight:700; font-size:.95rem; cursor:pointer;
  padding:.75rem 1.25rem; border-radius:999px;
  border:1.5px solid var(--line-strong, #d8cdb6);
  background:var(--paper-2, #f4efe6); color:var(--ink-soft, #5a6883);
  transition:background .15s, color .15s, border-color .15s;
}
.form-tab:hover{ border-color:var(--gold-500, #c5983c); color:var(--ink, #16233d); }
.form-tab.is-active{
  background:var(--navy-700, #13294f); border-color:var(--navy-700, #13294f); color:#fff;
}
.form-tab:focus-visible{ outline:3px solid var(--gold-500, #c5983c); outline-offset:2px; }
@media (max-width:520px){ .form-tab{ flex:1 1 100%; text-align:center; } }

/* ══════════ Contact page: compact detail strip + full-width form ══════════ */
.section--tight { padding-block: clamp(2.2rem, 1.6rem + 2.5vw, 3.4rem); }

.container--form { max-width: 62rem; }

/* Details as a 4-across strip instead of a sidebar */
.contact-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: clamp(1.2rem, .8rem + 1.5vw, 2rem);
  align-items: start;
}
.contact-strip .contact-item { margin: 0; }
.contact-strip .map-embed { grid-column: 1 / -1; margin-top: .4rem; height: 16rem; }

/* Form shell — lets the Google Form breathe, no nested scrollbar */
.form-shell {
  background: #fff;
  border: 1px solid var(--line, #e8e0d0);
  border-radius: var(--r-lg, 14px);
  box-shadow: 0 10px 30px rgba(19, 41, 79, .06);
  padding: clamp(.5rem, .3rem + 1vw, 1.2rem);
  overflow: hidden;
}
.form-shell iframe {
  display: block;
  width: 100%;
  border: 0;
  /* tall enough that the FORM never scrolls inside itself — the page scrolls */
  min-height: 165vh;
}
@media (max-width: 640px) {
  .form-shell { padding: 0; border: 0; box-shadow: none; background: transparent; }
  .form-shell iframe { min-height: 200vh; }
}

.form-tabs { justify-content: center; margin-bottom: 1.6rem; }
.form-note { text-align: center; margin-top: 1.4rem; }
