/* ===========================================================
   St. David's Academy — shared styles
   Sibling to the Zion site: same structural DNA (hero, section
   heads with ✠ ornament, colophon footer), Academy's navy/gold palette.
   EB Garamond display · Spectral body/labels.
   =========================================================== */
:root {
  --navy: #1b2a3d;
  --navy-deep: #0f1824;
  --gold: #fcaf17;
  --gold-soft: #e8d5a3;     /* Gold Pale: dividers + cream text on Ink */
  --gold-ink: #8a6d1e;      /* gold-brown text on light (AA) */
  --crimson: #b8283c;       /* Scarlet — interaction only */
  --crimson-deep: #8b1e2d;  /* Scarlet Deep — hover/press */
  --parchment: #ffffff;
  --parchment-soft: #f2ebdc;
  --cream: #f2ebdc;         /* brand Cream — page background */
  --ink: #1b2a3d;
  --ink-soft: rgba(27,42,61,0.78);  /* body text on light */
  --muted: #6b6453;
  --rule: #e8d5a3;          /* Gold Pale divider rules */
  --display: 'EB Garamond', Georgia, serif;
  --body: 'Spectral', Georgia, serif;
  --content: 1200px;
  --hero-wash: 0.62;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--body);
  background: var(--cream);
  color: var(--ink);
  font-size: 17px; line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--gold); color: var(--navy-deep); padding: 10px 16px; z-index: 2000; font-family: var(--body); font-weight: 600; }
.skip-link:focus { left: 8px; top: 8px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ===== EYEBROW + ORNAMENT ===== */
.eyebrow {
  font-family: var(--body);
  font-size: 0.95rem; font-weight: 600;
  letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--crimson);
}
.eyebrow.on-navy { color: var(--gold); }
.ornament {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  color: var(--gold); font-size: 0.95rem; letter-spacing: 0.5em;
}
.ornament::before, .ornament::after { content: ''; width: 54px; height: 1px; background: var(--gold); opacity: 0.6; }
.ornament.on-navy { color: var(--gold); }
.ornament.on-navy::before, .ornament.on-navy::after { background: var(--gold); opacity: 0.4; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 30px;
  font-family: var(--body); font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  border-radius: 3px; border: 1.5px solid transparent;
  cursor: pointer; transition: background .18s, color .18s, border-color .18s, box-shadow .18s;
}
.btn .arrow { transition: transform .18s; }
.btn:hover .arrow { transform: translateX(3px); }
.btn-ghost-gold { background: transparent; color: var(--gold); border-color: var(--gold); }
.btn-ghost-gold:hover { background: var(--gold); color: var(--navy-deep); }
.btn-crimson { background: var(--crimson); color: var(--cream); }
.btn-crimson:hover { background: var(--crimson-deep); }

/* ===== NAV ===== */
.nav-outer { position: sticky; top: 0; z-index: 100; background: var(--navy); border-bottom: 1px solid rgba(232,213,163,0.28); box-shadow: 0 6px 20px -8px rgba(15,24,36,0.5); }
.nav { max-width: var(--content); margin: 0 auto; padding: 12px 28px; display: flex; align-items: center; gap: 22px; }
.nav-brand { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.nav-crest-wrap { display: flex; }
.nav-crest { width: 94px; height: 94px; margin: -8px 0 -32px; filter: drop-shadow(0 4px 10px rgba(15,24,36,0.45)); }
.nav-word { display: flex; flex-direction: column; line-height: 1.08; }
.nav-word-full { font-family: var(--display); font-size: 1.3rem; font-weight: 600; letter-spacing: 0.015em; color: var(--cream); }
.nav-word-full em { font-style: italic; color: var(--gold); }
.nav-word-short { display: none; font-family: var(--display); font-size: 1.3rem; font-weight: 600; letter-spacing: 0.02em; color: var(--cream); }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-item { position: relative; }
.nav-link { display: inline-flex; align-items: center; gap: 5px; padding: 10px 14px; font-family: var(--body); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-soft); cursor: pointer; background: none; border: 0; white-space: nowrap; transition: color .15s; }
.nav-link:hover, .nav-item:hover .nav-link { color: var(--gold); }
.nav-caret { width: 0; height: 0; border-left: 3px solid transparent; border-right: 3px solid transparent; border-top: 4px solid currentColor; opacity: 0.7; }
.nav-panel { position: absolute; top: 100%; left: 0; margin-top: 6px; background: var(--navy-deep); border-top: 2px solid var(--gold); border-radius: 0 0 3px 3px; min-width: 248px; padding: 8px 0; box-shadow: 0 14px 30px rgba(15,24,36,0.4); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .16s, transform .16s, visibility .16s; z-index: 120; }
.nav-item:hover .nav-panel, .nav-item:focus-within .nav-panel { opacity: 1; visibility: visible; transform: none; }
/* Transparent hover bridge across the 6px gap between the nav link and the panel, so the
   cursor never leaves the :hover area on its way to the submenu (prevents the dropdown "hop"). */
.nav-panel::before { content: ""; position: absolute; top: -8px; left: 0; right: 0; height: 8px; z-index: 1; }
.nav-panel a { display: block; padding: 9px 22px; font-family: var(--body); font-size: 0.82rem; letter-spacing: 0.03em; color: var(--gold-soft); transition: background .12s, color .12s; }
.nav-panel a:hover { background: rgba(252,175,23,0.14); color: var(--cream); }
.nav-panel a[aria-current="page"] { color: var(--gold); }
.nav-item.is-current > .nav-link { color: var(--gold); }
.nav-links > .nav-link[aria-current="page"] { color: var(--gold); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; margin-left: auto; background: none; border: 0; cursor: pointer; padding: 9px 4px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--gold-soft); transition: .2s; }

/* ===== SECTION SCAFFOLD ===== */
.sect { padding: 70px 32px; }
.shell { max-width: var(--content); margin: 0 auto; }
.g-cream { background: var(--cream); }
.g-parchment { background: var(--parchment); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.g-navy { background: var(--navy); color: var(--cream); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.section-head .ornament { margin-bottom: 16px; }
.section-head .eyebrow { display: block; margin-bottom: 18px; }
.section-title { font-family: var(--display); font-size: clamp(2.2rem, 3.4vw, 3rem); font-weight: 500; color: var(--navy); line-height: 1.1; margin: 0; text-wrap: balance; }
.section-title em { font-style: italic; color: var(--ink); }
.g-navy .section-title { color: var(--cream); }
.g-navy .section-title em { color: var(--gold); }
.section-lede { font-family: var(--display); font-size: 1.2rem; font-style: italic; line-height: 1.6; color: var(--ink-soft); margin: 18px auto 0; text-wrap: pretty; }
.g-navy .section-lede { color: var(--gold-soft); }

/* ===== HERO ===== */
.hero { position: relative; min-height: clamp(560px, 82vh, 760px); display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; background: var(--navy-deep); }
.hero-bg { position: absolute; inset: 0; background-image: url('assets/campus-aerial.webp'); background-size: cover; background-position: center 42%; }
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,24,36,0.74) 0%, rgba(15,24,36,0.42) 38%, rgba(15,24,36,0.55) 70%, rgba(15,24,36,0.86) 100%); z-index: 1; }
.hero-inner { position: relative; z-index: 2; max-width: 1160px; padding: 80px 32px; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 16px; font-family: var(--body); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.32em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 22px; padding: 9px 24px; background: rgba(15,24,36,0.42); border-radius: 100px; -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); text-shadow: 0 1px 3px rgba(0,0,0,.7); }
.hero-eyebrow::before, .hero-eyebrow::after { content: ''; width: 40px; height: 1px; background: var(--gold); opacity: .8; }
.hero-title { font-family: var(--display); font-size: clamp(2.8rem, 6vw, 5rem); font-weight: 500; color: var(--cream); line-height: 1.02; margin: 0 0 22px; letter-spacing: -0.01em; text-shadow: 0 2px 30px rgba(0,0,0,.7), 0 1px 4px rgba(0,0,0,.6); }
.hero-title em { font-style: italic; color: var(--gold); }
.hero-brk { display: none; }
@media (min-width: 1180px) { .hero-brk { display: inline; } }
noscript { display: none; }
.hero-motto { font-family: var(--display); font-size: clamp(1.3rem, 2vw, 1.7rem); font-style: italic; color: var(--gold-soft); margin: 0 0 8px; text-shadow: 0 1px 12px rgba(0,0,0,.7); }
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ===== MISSION STRIP ===== */
.mission { text-align: center; max-width: 800px; margin: 0 auto; }
.mission .ornament { margin-bottom: 24px; }
.mission p { font-family: var(--display); font-size: clamp(1.3rem, 2vw, 1.6rem); font-style: italic; line-height: 1.6; color: var(--navy); margin: 0; text-wrap: pretty; }
.mission .lead { color: var(--ink); font-style: normal; font-weight: 600; }

/* ===== EXPLORE — editorial rows (replaces card grid) ===== */
.explore { max-width: 1080px; margin: 0 auto; display: flex; flex-direction: column; gap: 28px; }
.xrow { display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: stretch; background: var(--cream); border: 1px solid var(--rule); border-radius: 4px; overflow: hidden; transition: transform .45s cubic-bezier(.2,.7,.2,1), box-shadow .45s cubic-bezier(.2,.7,.2,1), border-color .45s ease; }
.xrow:hover { transform: translateY(-4px); box-shadow: 0 22px 48px -28px rgba(15,24,36,.55); border-color: rgba(252,175,23,.45); }
.xrow:nth-child(even) { grid-template-columns: 0.95fr 1.05fr; }
.xrow:nth-child(even) .xrow-media { order: -1; }
.xrow-body { padding: 48px 52px; display: flex; flex-direction: column; align-items: flex-start; }
.xrow-title { font-family: var(--display); font-size: 1.9rem; font-weight: 500; color: var(--navy); line-height: 1.12; margin: 0 0 14px; }
.xrow-title em { font-style: italic; color: var(--ink); }
.xrow-text { font-size: 1.02rem; line-height: 1.7; color: var(--ink-soft); margin: 0 0 22px; }
.xrow-link { font-family: var(--body); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--crimson); border-bottom: 1.5px solid var(--gold); padding-bottom: 3px; margin-top: auto; transition: color .15s; }
.xrow-link:hover { color: var(--crimson-deep); }
.xrow-arrow { display: inline-block; margin-left: 4px; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.xrow:hover .xrow-arrow { transform: translateX(6px); }
.xrow-media { position: relative; min-height: 280px; background-size: cover; background-position: center; transform-origin: right center; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.xrow:nth-child(even) .xrow-media { transform-origin: left center; }
.xrow:hover .xrow-media { transform: scale(1.05); }
.xrow-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(27,42,61,0.32), rgba(27,42,61,0) 55%); }
.xrow:nth-child(even) .xrow-media::after { background: linear-gradient(270deg, rgba(27,42,61,0.32), rgba(27,42,61,0) 55%); }
@media (prefers-reduced-motion: reduce) { .xrow, .xrow-media, .xrow-arrow { transition: none; } .xrow:hover { transform: none; } .xrow:hover .xrow-media { transform: none; } }
/* Touch devices: no hover, so give rows a richer resting state + real tap feedback */
@media (hover: none) {
  .xrow { border-color: rgba(252,175,23,.5); box-shadow: 0 14px 34px -26px rgba(15,24,36,.5); }
  .xrow .xrow-arrow { transform: translateX(3px); }
  .xrow:active { transform: translateY(-2px); box-shadow: 0 20px 44px -26px rgba(15,24,36,.55); }
  .xrow:active .xrow-media { transform: scale(1.04); }
  .xrow:active .xrow-arrow { transform: translateX(6px); }
}

/* ===== CCLE MEMBERSHIP ===== */
.proof-band { padding-top: 48px; padding-bottom: 48px; }
.ccle { max-width: 820px; margin: 0 auto; text-align: center; }
.ccle-card { display: flex; align-items: center; justify-content: center; gap: 38px; margin: 0; }
.ccle-seal { width: 132px; flex-shrink: 0; }
.ccle-divider { width: 1px; align-self: stretch; background: rgba(232,213,163,0.4); }
.ccle-text { text-align: left; }
.ccle-eyebrow { font-family: var(--body); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); margin: 0 0 8px; }
.ccle-headline { font-family: var(--display); font-size: clamp(1.5rem, 2.4vw, 2.1rem); font-weight: 500; color: var(--cream); line-height: 1.2; margin: 0; }
.ccle-headline em { font-style: italic; color: var(--gold-soft); }

/* ===== SCRIPTURE ===== */
.scripture { text-align: center; max-width: 760px; margin: 0 auto; }
.scripture .ornament { margin-bottom: 24px; }
.scripture-quote { font-family: var(--display); font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-style: italic; line-height: 1.5; color: var(--navy); margin: 0 0 14px; text-wrap: balance; }
.scripture-ref { font-family: var(--body); font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); margin: 0; }

/* ===== CTA BAND ===== */
.cta-band { position: relative; overflow: hidden; background: var(--navy-deep); }
.cta-band .hero-bg { background-image: url('assets/entrance-blossom.webp'); background-position: center 50%; opacity: 0.62; }
.cta-band::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,24,36,0.78), rgba(15,24,36,0.66) 50%, rgba(15,24,36,0.84)); z-index: 1; }
.cta-inner { position: relative; z-index: 2; text-align: center; max-width: 680px; margin: 0 auto; }
.cta-inner .ornament { margin-bottom: 20px; }
.cta-heading { font-family: var(--display); font-size: clamp(2rem, 3.2vw, 2.8rem); font-weight: 500; color: var(--cream); line-height: 1.12; margin: 0 0 16px; }
.cta-heading em { font-style: italic; color: var(--gold); }
.cta-body { font-family: var(--display); font-size: 1.16rem; font-style: italic; color: var(--gold-soft); line-height: 1.65; margin: 0 0 32px; }
.cta-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ===== FOOTER ===== */
.footer { position: relative; z-index: 2; background: #0a121b; color: var(--gold-soft); padding: 76px 32px 34px; text-align: center; border-top: 1px solid rgba(252,175,23,0.28); }
.footer-medallion { z-index: 3; }
/* engraved cross medallion straddling the CTA→footer seam */
.footer-medallion { position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%); width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: #0a121b; border: 1px solid rgba(252,175,23,0.4); border-radius: 50%; color: var(--gold); box-sizing: border-box; font-size: 18px; line-height: 1; }
.footer-center { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.footer-name { font-family: var(--display); font-size: 1.25rem; color: var(--cream); line-height: 1.3; margin: 0 0 4px; }
.footer-motto { font-family: var(--display); font-style: italic; font-size: 1rem; color: var(--gold-soft); margin: 0 0 20px; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 0; margin-bottom: 22px; }
.footer-nav a { font-family: var(--body); font-size: 0.76rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-soft); padding: 5px 16px; border-left: 1px solid rgba(232,213,163,0.28); transition: color .15s; }
.footer-nav a:first-child { border-left: 0; }
.footer-nav a:hover { color: var(--gold); }
.footer-rule { display: flex; align-items: center; justify-content: center; gap: 14px; width: 100%; color: var(--gold); opacity: 0.7; margin-bottom: 18px; }
.footer-rule::before, .footer-rule::after { content: ''; height: 1px; flex: 1; max-width: 120px; background: rgba(232,213,163,0.3); }
.footer-contact { font-family: var(--body); font-size: 0.82rem; line-height: 1.9; color: var(--gold-soft); margin: 0 0 14px; }
.footer-contact a { border-bottom: 1px solid rgba(232,213,163,0.4); }
.footer-legal { font-family: var(--body); font-size: 0.74rem; letter-spacing: 0.04em; color: #9a8c6e; margin: 0; }
.footer-legal a { color: #9a8c6e; }
.footer-legal a:hover { color: var(--gold-soft); }

/* ===== INTERIOR PAGE HERO ===== */
.page-hero { position: relative; min-height: clamp(300px, 40vh, 400px); display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; background: var(--navy-deep); }
.page-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center 32%; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,24,36,0.72) 0%, rgba(15,24,36,0.5) 45%, rgba(15,24,36,0.82) 100%); z-index: 1; }
.page-hero-inner { position: relative; z-index: 2; max-width: 800px; padding: 56px 32px; }
.page-hero-eyebrow { display: inline-flex; align-items: center; gap: 16px; font-family: var(--body); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.32em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 18px; padding: 10px 34px; background: radial-gradient(ellipse at center, rgba(15,24,36,0.52) 0%, rgba(15,24,36,0.30) 55%, rgba(15,24,36,0) 100%); text-shadow: 0 1px 8px rgba(0,0,0,.7); }
.page-hero-eyebrow::before, .page-hero-eyebrow::after { content: ''; width: 38px; height: 1px; background: var(--gold); opacity: 0.85; }
.page-hero-title { font-family: var(--display); font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 500; color: var(--cream); line-height: 1.04; margin: 0 0 16px; text-shadow: 0 2px 26px rgba(0,0,0,.7), 0 1px 4px rgba(0,0,0,.6); }
.page-hero-title em { font-style: italic; color: var(--gold); }
.page-hero-motto { font-family: var(--display); font-size: clamp(1.2rem, 2vw, 1.55rem); font-style: italic; color: var(--gold-soft); margin: 0 0 14px; text-shadow: 0 1px 12px rgba(0,0,0,.7); }

/* ===== QUESTIONS & ANSWERS ===== */
.qa-list { max-width: 800px; margin: 0 auto; }
.qa-item { padding: 32px 0; border-bottom: 1px solid var(--rule); }
.qa-item:first-child { padding-top: 0; }
.qa-item:last-child { padding-bottom: 0; border-bottom: 0; }
.qa-q { font-family: var(--display); font-size: clamp(1.34rem, 2.1vw, 1.62rem); font-weight: 500; color: var(--navy); line-height: 1.22; margin: 0 0 16px; text-wrap: pretty; }
.qa-q em { font-style: italic; }
.qa-lead { font-family: var(--display); font-size: 1.2rem; font-style: italic; line-height: 1.55; color: var(--crimson); margin: 0 0 16px; text-wrap: pretty; }
.qa-a { font-size: 1.04rem; line-height: 1.8; color: var(--ink-soft); margin: 0 0 16px; text-wrap: pretty; }
.qa-a:last-child { margin-bottom: 0; }
.qa-more { display: inline-flex; align-items: center; gap: 8px; font-family: var(--body); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-ink); border-bottom: 1px solid rgba(252,175,23,0.5); padding-bottom: 2px; }
.qa-more:hover { color: var(--crimson); border-bottom-color: var(--crimson); }

/* ===== EDITORIAL PROSE (interior body) ===== */
.lede-strip { text-align: center; max-width: 820px; margin: 0 auto; }
.lede-strip .ornament { margin-bottom: 26px; }
.lede-strip p { font-family: var(--display); font-size: clamp(1.35rem, 2.1vw, 1.75rem); font-style: italic; line-height: 1.55; color: var(--navy); margin: 0; text-wrap: pretty; }
.prose { max-width: 720px; margin: 0 auto; }
.prose + .prose { margin-top: 44px; }
.prose-head { font-family: var(--display); font-size: clamp(1.7rem, 2.6vw, 2.2rem); font-weight: 500; color: var(--navy); line-height: 1.15; margin: 0 0 22px; text-align: center; text-wrap: balance; }
.prose-head em { font-style: italic; color: var(--ink); }
.prose p { font-size: 1.06rem; line-height: 1.8; color: var(--ink-soft); margin: 0 0 20px; }
.prose p:last-child { margin-bottom: 0; }
.prose em { font-style: italic; color: var(--navy); }
.section-divider { display: flex; align-items: center; justify-content: center; gap: 16px; color: var(--gold); font-size: 0.9rem; letter-spacing: 0.5em; margin: 64px auto; max-width: 720px; }
.section-divider::before, .section-divider::after { content: ''; height: 1px; flex: 1; background: var(--rule); }

/* ===== CREST FEATURE + EMBLEM GRID ===== */
.crest-feature { display: grid; grid-template-columns: 220px 1fr; gap: 52px; align-items: center; max-width: 920px; margin: 0 auto 56px; }
.crest-feature-img { width: 100%; filter: drop-shadow(0 10px 26px rgba(15,24,36,0.18)); }
.crest-feature p { font-size: 1.06rem; line-height: 1.8; color: var(--ink-soft); margin: 0; }
.crest-feature p em { font-style: italic; color: var(--navy); }
.emblem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; max-width: 940px; margin: 0 auto; }
.emblem-card { text-align: center; padding: 40px 30px; background: var(--cream); border: 1px solid var(--rule); border-radius: 4px; display: flex; flex-direction: column; align-items: center; }
.g-parchment .emblem-card { background: #fff; }
.emblem-icon { width: 58px; height: 86px; margin: 0 0 18px; }
.emblem-title { font-family: var(--display); font-size: 1.55rem; font-weight: 500; color: var(--navy); margin: 0 0 14px; }
.emblem-text { font-size: 0.98rem; line-height: 1.65; color: var(--ink-soft); margin: 0; }

/* ===== CONTINUE LINK ===== */
.continue-wrap { text-align: center; margin-top: 56px; }
.continue-link { display: inline-flex; align-items: center; gap: 10px; font-family: var(--body); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--crimson); border-bottom: 1.5px solid var(--gold); padding-bottom: 5px; transition: color .18s, border-color .18s; }
.continue-link .arrow { transition: transform .18s; }
.continue-link:hover { color: var(--crimson-deep); border-bottom-color: var(--crimson-deep); }
.continue-link:hover .arrow { transform: translateX(4px); }
/* page-end: CTA above, continuation link below, one consistent rhythm */
.page-end { display: flex; flex-direction: column; align-items: center; gap: 30px; margin-top: 60px; }
.page-end .continue-wrap { margin-top: 0; }

@media (max-width: 760px) {
  .crest-feature { grid-template-columns: 1fr; gap: 32px; text-align: center; max-width: 480px; }
  .crest-feature-img { max-width: 200px; margin: 0 auto; }
  .crest-feature p { text-align: left; }
  .emblem-grid { grid-template-columns: 1fr; max-width: 420px; }
}

/* ===== REVEAL ===== */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
  .reveal.is-in { opacity: 1; transform: none; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
  .nav-links { position: absolute; z-index: 1; top: calc(100% + 8px); right: 20px; left: auto; width: min(340px, calc(100vw - 32px)); flex-direction: column; align-items: stretch; gap: 0; background: var(--navy-deep); border: 1px solid rgba(232,213,163,0.26); border-radius: 6px; box-shadow: 0 26px 50px -18px rgba(15,24,36,0.75); padding: 6px 0; margin: 0; max-height: 0; overflow: hidden; opacity: 0; visibility: hidden; transition: max-height .3s ease, opacity .22s ease, visibility 0s linear .3s; }
  .nav-outer.open .nav-links { max-height: calc(100vh - 96px); overflow-y: auto; opacity: 1; visibility: visible; transition: max-height .32s ease, opacity .24s ease; }
  .nav-toggle { display: flex; }
  .nav-brand { position: relative; z-index: 2; }
  .nav-crest { width: 80px; height: 80px; margin: -6px 0 -26px; }
  .nav-item + .nav-item, .nav-links > .nav-link + .nav-link, .nav-item + .nav-link, .nav-link + .nav-item { border-top: 1px solid rgba(232,213,163,0.12); }
  .nav-link { width: 100%; padding: 13px 28px; justify-content: flex-start; font-size: 0.78rem; }
  .nav-caret { margin-left: auto; opacity: 0.85; border-left-width: 4px; border-right-width: 4px; border-top-width: 5px; transition: transform .22s ease; }
  .nav-item.open .nav-caret { transform: rotate(180deg); }
  /* active-section highlight — reinforces single-open accordion */
  .nav-item.open > .nav-link { color: var(--gold); background: rgba(252,175,23,0.07); box-shadow: inset 3px 0 0 var(--gold); }
  .nav-item.is-current > .nav-link, .nav-links > .nav-link[aria-current="page"] { box-shadow: inset 3px 0 0 var(--gold); }
  /* smooth accordion expand/collapse */
  .nav-panel { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border-top: 0; border-radius: 0; min-width: 0; padding: 0; margin: 0; background: rgba(0,0,0,0.22); display: block; max-height: 0; overflow: hidden; transition: max-height .28s ease, padding .28s ease; }
  .nav-item.open .nav-panel { max-height: 480px; padding: 2px 0 8px; }
  .nav-panel a { padding: 13px 28px 13px 46px; }
  .nav-panel a[aria-current="page"] { color: var(--gold); background: rgba(252,175,23,0.10); box-shadow: inset 3px 0 0 rgba(252,175,23,0.55); }
}
/* Phone: full-width dropdown instead of the tablet's right-anchored panel */
@media (max-width: 600px) {
  .nav-links { top: 100%; right: 0; left: 0; width: 100%; border-left: 0; border-right: 0; border-radius: 0; box-shadow: 0 18px 36px -16px rgba(15,24,36,0.7); }
}
/* Nav brand: scale full name down so it fits beside the crest + toggle on phones */
@media (max-width: 640px) {
  .nav-word-full { font-size: 1.08rem; }
  .nav-crest { width: 70px; height: 70px; margin: -5px 0 -23px; }
}
@media (max-width: 420px) {
  .nav-word-full { font-size: 0.92rem; letter-spacing: 0.01em; }
  .nav-crest { width: 62px; height: 62px; margin: -4px 0 -20px; }
}
@media (max-width: 350px) {
  .nav-word-full { font-size: 0.82rem; }
  .nav-crest { width: 55px; height: 55px; margin: -4px 0 -18px; }
}
/* ===== UTILITY ===== */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ===== EMBLEM TRIPTYCH ===== */
.emblem-rail {
  position: relative; display: grid; grid-template-columns: repeat(3, 1fr);
  max-width: 940px; margin: 0 auto 0; height: 30px; align-items: center;
}
.emblem-rail::before {
  content: ''; position: absolute; left: 16.66%; right: 16.66%; top: 50%;
  height: 1px; background: var(--gold); opacity: 0.5;
}
.emblem-node {
  justify-self: center; position: relative; z-index: 1;
  font-family: var(--display); font-weight: 600; font-size: 1rem;
  letter-spacing: 0.18em; color: var(--gold-ink);
  background: var(--cream); padding: 0 16px;
}
.emblem-node.is-center { color: var(--crimson); font-size: 1.12rem; }
.g-parchment .emblem-node { background: var(--parchment); }
.emblem-triptych { gap: 0; margin-top: 0; }
.emblem-triptych .emblem-card { border-radius: 0; border-right: 0; position: relative; background: #f7f0e2; }
.emblem-triptych .emblem-card:first-child { border-radius: 4px 0 0 4px; }
.emblem-triptych .emblem-card:last-child { border-right: 1px solid var(--rule); border-radius: 0 4px 4px 0; }
.emblem-triptych .emblem-card.is-center { background: #fbf6ea; box-shadow: 0 10px 30px -24px rgba(15,24,36,0.35); }
.g-parchment .emblem-triptych .emblem-card.is-center { background: #f3ead6; }
@media (max-width: 760px) {
  .emblem-rail { display: none; }
  .emblem-triptych { gap: 18px; }
  .emblem-triptych .emblem-card,
  .emblem-triptych .emblem-card:first-child,
  .emblem-triptych .emblem-card:last-child { border: 1px solid var(--rule); border-radius: 4px; }
}

/* ===========================================================
   INTERIOR PAGE COMPONENTS
   =========================================================== */

/* ---- Tile (shared card: title + italic subtitle + body) ---- */
.tile { background: var(--cream); border: 1px solid var(--rule); border-radius: 4px; padding: 38px 36px; display: flex; flex-direction: column; }
.g-parchment .tile { background: var(--cream); }
.g-cream .tile { background: #fff; }
.tile-title { font-family: var(--display); font-size: 1.62rem; font-weight: 500; color: var(--navy); line-height: 1.14; margin: 0 0 10px; }
.tile-sub { font-family: var(--display); font-style: italic; font-size: 1.05rem; color: var(--crimson); line-height: 1.4; margin: 0 0 18px; }
.tile-text { font-size: 1rem; line-height: 1.72; color: var(--ink-soft); margin: 0; }

/* ---- Duo grid (2 columns) ---- */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; max-width: 940px; margin: 0 auto; }

/* ---- Pillar grid (3 columns, paired with emblem rail) ---- */
.pillar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; max-width: 940px; margin: 0 auto; }
.pillar-grid .tile { border-radius: 0; border-right: 0; text-align: center; align-items: center; background: #fbf6ea; }
.pillar-grid .tile:first-child { border-radius: 4px 0 0 4px; }
.pillar-grid .tile:last-child { border-right: 1px solid var(--rule); border-radius: 0 4px 4px 0; }
.pillar-grid .tile-sub { text-align: center; }
.pillar-grid .tile-sub::after { margin-left: auto; margin-right: auto; }

/* ---- Lamp grid (2x2) ---- */
.lamp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 940px; margin: 0 auto; }

/* ---- Subject grid (curriculum, responsive auto-fit) ---- */
.subject-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; max-width: 980px; margin: 0 auto; }
.subject-grid .tile { padding: 32px 32px; }
.subject-grid .tile-title { font-size: 1.45rem; margin-bottom: 12px; display: flex; align-items: baseline; gap: 12px; }
.subject-grid .tile-title .cross { color: var(--gold); font-size: 0.7em; }

/* ---- Curriculum map (scope & sequence table) ---- */
.cmap-wrap { max-width: 1040px; margin: 0 auto; }
.cmap-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--rule); border-radius: 6px; background: #fff; box-shadow: 0 18px 44px -34px rgba(15,24,36,0.4); }
.cmap { width: 100%; min-width: 720px; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.cmap-caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cmap thead th { background: var(--navy); color: var(--gold-soft); font-family: var(--body); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; padding: 14px 8px; text-align: center; }
.cmap thead th.cmap-corner { text-align: left; padding-left: 22px; color: var(--gold); width: 22%; }
.cmap thead th:not(.cmap-corner) { font-family: var(--display); font-size: 1.15rem; letter-spacing: 0.04em; text-transform: none; color: var(--cream); border-left: 1px solid rgba(232,213,163,0.18); width: 13%; }
.cmap tbody th[scope="row"] { position: sticky; left: 0; z-index: 2; background: #fff; text-align: left; font-family: var(--display); font-weight: 500; font-size: 1.08rem; color: var(--navy); padding: 9px 18px 9px 22px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); white-space: normal; hyphens: auto; }
.cmap tbody tr:last-child th[scope="row"], .cmap tbody tr:last-child td { border-bottom: 0; }
.cmap tbody td { padding: 6px 7px; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.cmap tbody tr:nth-child(even) th[scope="row"] { background: #faf4e6; }
.cmap tbody tr:nth-child(even) td { background: #faf4e6; }
.cbar { display: flex; flex-direction: column; justify-content: center; min-height: 66px; padding: 12px 16px; background: #fbf6ea; border: 1px solid var(--rule); border-left: 3px solid var(--gold); border-radius: 3px; font-family: var(--display); font-size: 1.02rem; font-weight: 500; color: var(--navy); line-height: 1.25; text-align: center; }
.cbar small { display: block; margin-top: 3px; font-family: var(--body); font-size: 0.78rem; font-weight: 400; font-style: italic; letter-spacing: 0.01em; color: var(--muted); }
.cmap-spine th[scope="row"] { color: var(--crimson); }
.cbar-spine { background: var(--navy); border-color: var(--navy); border-left-color: var(--gold); color: var(--gold-soft); font-style: italic; font-size: 1.05rem; }
/* ---- Statement blocks (mission & vision) ---- */
.statement { max-width: 760px; margin: 0 auto; text-align: center; }
.statement-label { display: block; font-family: var(--body); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--crimson); margin-bottom: 20px; }
.statement-text { font-family: var(--display); font-size: clamp(1.3rem, 2.1vw, 1.62rem); font-style: italic; line-height: 1.55; color: var(--navy); margin: 0; text-wrap: pretty; }


/* ---- Families hub cards ---- */
.fam-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; max-width: 1000px; margin: 0 auto; }
.fam-card { background: #fff; border: 1px solid var(--rule); border-top: 3px solid var(--gold); border-radius: 4px; padding: 34px 30px; display: flex; flex-direction: column; }
.fam-kicker { font-family: var(--body); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--crimson); margin-bottom: 12px; }
.fam-title { font-family: var(--display); font-size: 1.55rem; font-weight: 500; color: var(--navy); margin: 0 0 14px; line-height: 1.12; }
.fam-text { font-size: 1rem; line-height: 1.7; color: var(--ink-soft); margin: 0 0 auto; }
.fam-status { margin: 20px 0 0; padding-top: 16px; border-top: 1px dotted var(--rule); font-family: var(--display); font-size: 0.98rem; font-style: italic; color: var(--muted); }

/* ---- Slide-in inquiry invitation ---- */
.invite { position: fixed; right: 22px; bottom: 22px; z-index: 200; width: min(340px, calc(100vw - 32px)); background: var(--navy); border: 1px solid rgba(252,175,23,0.42); border-radius: 5px; padding: 24px 26px 22px; box-shadow: 0 26px 60px -22px rgba(15,24,36,0.7); transform: translateY(140%); opacity: 0; visibility: hidden; transition: transform .6s cubic-bezier(.22,.75,.3,1), opacity .45s ease, visibility .6s; }
.invite.is-in { transform: translateY(0); opacity: 1; visibility: visible; }
.invite-orn { display: none; }
.invite-title { font-family: var(--display); font-size: 1.42rem; font-weight: 500; color: var(--cream); margin: 0 0 8px; line-height: 1.15; }
.invite-title em { font-style: italic; color: var(--gold); }
.invite-text { font-family: var(--display); font-size: 1rem; font-style: italic; line-height: 1.6; color: var(--gold-soft); margin: 0 0 18px; text-wrap: pretty; }
.invite-link { display: inline-flex; align-items: center; gap: 8px; font-family: var(--body); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); border-bottom: 1px solid var(--gold); padding-bottom: 3px; }
.invite-link .arrow { transition: transform .25s ease; }
.invite-link:hover .arrow { transform: translateX(4px); }
.invite-close { position: absolute; top: 4px; right: 4px; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: none; border: 0; border-radius: 50%; color: var(--gold-soft); font-size: 22px; line-height: 1; cursor: pointer; transition: background .2s ease, color .2s ease; }
.invite-close:hover { background: rgba(252,175,23,0.14); color: var(--gold); }
@media (prefers-reduced-motion: reduce) { .invite { transition: opacity .3s ease, visibility .3s; transform: none; } }
@media (max-width: 700px) { .invite { right: 12px; left: 12px; bottom: 12px; width: auto; padding: 18px 52px 18px 20px; } .invite-title { font-size: 1.22rem; margin-bottom: 6px; } .invite-text { font-size: 0.94rem; line-height: 1.5; margin-bottom: 14px; } }

.cbar-tight { font-size: 0.88rem; padding: 12px 8px; letter-spacing: -0.005em; }
/* Stacked curriculum map (phones): built by academy.js from the table, so the table
   remains the fallback when JS is unavailable. */
.cmap-stack { display: none; }
.cst-lead { margin: 0 0 18px; text-align: center; font-family: var(--body); font-size: 0.95rem; font-style: italic; line-height: 1.55; color: var(--ink-soft); }
.cst-row { background: #fff; border: 1px solid var(--rule); border-left: 3px solid var(--gold); border-radius: 4px; padding: 14px 16px; }
.cst-row + .cst-row { margin-top: 10px; }
.cst-subject { font-family: var(--display); font-size: 1.14rem; font-weight: 500; letter-spacing: 0.01em; color: var(--navy); margin: 0 0 9px; }
.cst-item { display: flex; gap: 11px; align-items: baseline; }
.cst-item + .cst-item { margin-top: 9px; padding-top: 9px; border-top: 1px solid var(--rule); }
.cst-grades { flex: 0 0 auto; font-family: var(--body); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.1em; color: var(--gold-ink); background: #fbf6ea; border: 1px solid var(--rule); border-radius: 3px; padding: 3px 7px; white-space: nowrap; }
.cst-prog { font-family: var(--display); font-size: 1.04rem; line-height: 1.3; color: var(--navy); }
.cst-prog small { display: block; margin-top: 4px; font-family: var(--body); font-size: 0.78rem; font-style: italic; letter-spacing: 0.01em; color: var(--muted); }
.cst-spine { background: var(--navy); border-color: var(--navy); border-left-color: var(--gold); }
.cst-spine .cst-subject { color: var(--gold); }
.cst-spine .cst-prog { color: var(--gold-soft); font-style: italic; }
.cst-spine .cst-prog small { color: rgba(232,213,163,0.72); font-style: italic; }
.cmap-note { max-width: 760px; margin: 22px auto 0; text-align: center; font-size: 0.95rem; line-height: 1.65; color: var(--muted); font-style: italic; }

/* ---- Stages timeline (journey of formation) ---- */
.timeline { max-width: 760px; margin: 0 auto; position: relative; padding-left: 52px; }
.timeline::before { content: ''; position: absolute; left: 17px; top: 8px; bottom: 8px; width: 1px; background: var(--rule); }
.stage { position: relative; padding: 0 0 44px; }
.stage:last-child { padding-bottom: 0; }
.stage-marker { position: absolute; left: -52px; top: -2px; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: var(--cream); border: 1px solid var(--gold); border-radius: 50%; color: var(--gold-ink); font-size: 16px; line-height: 1; }
.g-parchment .stage-marker { background: var(--parchment); }
.stage-title { font-family: var(--display); font-size: 1.5rem; font-weight: 500; color: var(--navy); margin: 0 0 8px; line-height: 1.15; }
.stage-text { font-size: 1rem; line-height: 1.72; color: var(--ink-soft); margin: 0; }

/* ---- Steps (admissions process) ---- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; max-width: 980px; margin: 0 auto; }
.step { position: relative; text-align: center; padding: 0 24px; }
.step:not(:last-child)::after { content: ''; position: absolute; top: 26px; right: -1px; width: 100%; height: 1px; background: var(--rule); transform: translateX(50%); z-index: 0; }
.step-num { position: relative; z-index: 1; width: 52px; height: 52px; margin: 0 auto 20px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--navy); color: var(--gold); font-family: var(--display); font-size: 1.4rem; font-weight: 600; box-shadow: 0 0 0 6px var(--cream); }
.g-parchment .step-num { box-shadow: 0 0 0 6px var(--parchment); }
.step-title { font-family: var(--display); font-size: 1.32rem; font-weight: 500; color: var(--navy); margin: 0 0 8px; }
.step-text { font-size: 0.96rem; line-height: 1.65; color: var(--ink-soft); margin: 0; }

/* ---- Portrait feature (headmaster) ---- */
.portrait-feature { display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: center; max-width: 920px; margin: 0 auto; }
.portrait-feature .portrait { width: 100%; border-radius: 4px; box-shadow: 0 18px 44px -22px rgba(15,24,36,0.5); }
.portrait-frame { position: relative; }
.portrait-frame::after { content: ''; position: absolute; inset: 12px -12px -12px 12px; border: 1px solid var(--gold); border-radius: 4px; z-index: -1; }
.portrait-name { font-family: var(--display); font-size: 1.75rem; font-weight: 500; color: var(--navy); margin: 0 0 6px; line-height: 1.12; }
.portrait-role { font-family: var(--body); font-size: 0.84rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--crimson); margin: 0 0 20px; }
.portrait-feature p:not([class]) { font-size: 1.04rem; line-height: 1.78; color: var(--ink-soft); margin: 0; }

/* ---- Rhythm strip (a day) ---- */
.rhythm { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; max-width: 880px; margin: 0 auto; }
.rhythm-item { display: inline-flex; align-items: center; gap: 12px; font-family: var(--display); font-size: 1.15rem; color: var(--navy); }
.rhythm-item .cross { color: var(--gold); font-size: 0.8rem; }

/* ---- Tuition pricing cards ---- */
.tuition-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 1020px; margin: 0 auto; }
.price-card { background: #fff; border: 1px solid var(--rule); border-radius: 4px; padding: 32px 26px; text-align: center; display: flex; flex-direction: column; }
.price-tag { font-family: var(--body); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--crimson); margin: 0 0 6px; line-height: 1.5; min-height: 3em; display: flex; align-items: flex-end; justify-content: center; }
.price-cat { font-family: var(--display); font-size: 1.4rem; font-weight: 500; color: var(--navy); margin: 0 0 18px; line-height: 1.1; }
.price-total { font-family: var(--display); font-size: 2.6rem; font-weight: 600; color: var(--navy); line-height: 1; margin: 0 0 4px; }
.price-total span { font-size: 0.9rem; font-weight: 400; color: var(--muted); }
.price-rule { width: 40px; height: 1px; background: var(--gold); margin: 18px auto; }
.price-lines { list-style: none; padding: 0; margin: 0 0 auto; text-align: left; }
.price-lines li { display: flex; justify-content: space-between; gap: 12px; font-size: 0.9rem; line-height: 1.5; color: var(--ink-soft); padding: 5px 0; border-bottom: 1px dotted var(--rule); }
.price-lines li:last-child { border-bottom: 0; }
.price-lines li .amt { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---- Discounts list ---- */
.discounts { max-width: 760px; margin: 0 auto; list-style: none; padding: 0; }
.discounts li { display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; padding: 18px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.discounts li:last-child { border-bottom: 0; }
.discount-name { font-family: var(--display); font-size: 1.18rem; color: var(--navy); }
.discount-amt { font-family: var(--display); font-size: 1.18rem; font-weight: 600; color: var(--crimson); text-align: right; white-space: nowrap; }
.discount-desc { grid-column: 1 / -1; font-size: 0.95rem; color: var(--ink-soft); line-height: 1.6; margin: 0; }

/* ---- Form (request information) ---- */
.form-wrap { max-width: 720px; margin: 0 auto; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { display: flex; flex-direction: column; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--body); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-ink); margin: 0 0 8px; }
.field input, .field select, .field textarea { font-family: var(--body); font-size: 1rem; color: var(--ink); background: #fff; border: 1px solid var(--rule); border-radius: 3px; padding: 13px 15px; transition: border-color .15s, box-shadow .15s; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(252,175,23,0.18); }
.form-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 4px; }
.form-note { font-size: 0.9rem; color: var(--muted); margin: 0; }
/* Honeypot — hidden from humans */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* Validation states */
.field-error { font-family: var(--body); font-size: 0.82rem; color: var(--crimson); margin-top: 6px; min-height: 0; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--crimson); }
.field.has-error input:focus, .field.has-error select:focus, .field.has-error textarea:focus { box-shadow: 0 0 0 3px rgba(140,21,21,0.16); }
.form-error-summary { grid-column: 1 / -1; font-family: var(--body); font-size: 0.95rem; color: var(--crimson); background: rgba(140,21,21,0.06); border: 1px solid rgba(140,21,21,0.25); border-radius: 3px; padding: 12px 16px; margin: 0; }
.form-thanks { display: none; text-align: center; background: #fff; border: 1px solid var(--gold); border-radius: 4px; padding: 48px 40px; }
.form-thanks.show { display: block; }
.form-thanks .ornament { margin-bottom: 18px; }
.form-thanks h2 { font-family: var(--display); font-size: 1.8rem; font-weight: 500; color: var(--navy); margin: 0 0 14px; }
.form-thanks p { font-size: 1.02rem; line-height: 1.7; color: var(--ink-soft); margin: 0; }
.contact-rail { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 40px; max-width: 720px; margin: 0 auto 48px; text-align: center; }
.contact-item { font-family: var(--body); }
.contact-item .label { display: block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 5px; }
.contact-item a, .contact-item span:not([class]) { font-family: var(--display); font-size: 1.2rem; color: var(--navy); }
.contact-item a { border-bottom: 1px solid var(--gold); }

@media (max-width: 860px) {
  .portrait-feature { grid-template-columns: 1fr; gap: 36px; max-width: 460px; text-align: center; }
  .portrait-feature p:not([class]) { text-align: left; }
  .portrait-frame::after { inset: 10px -10px -10px 10px; }
  .tuition-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; gap: 36px 0; }
  .step:not(:last-child)::after { display: none; }
}

@media (max-width: 760px) {
  .sect { padding: 52px 22px; }
  .xrow, .xrow:nth-child(even) { grid-template-columns: 1fr; }
  .xrow:nth-child(even) .xrow-media { order: 0; }
  .xrow-media { min-height: 200px; }
  .xrow-body { padding: 34px 28px; }
  .ccle-card { flex-direction: column; gap: 20px; }
  .ccle-divider { display: none; }
  .ccle-text { text-align: center; }
  .footer-nav { gap: 4px 22px; }
  .footer-nav a { border-left: 0; padding: 5px 0; }
  .hero-inner { padding: 60px 24px; }
  .duo, .lamp-grid, .subject-grid { grid-template-columns: 1fr; max-width: 460px; }
  .fam-grid { grid-template-columns: 1fr; max-width: 460px; }
  .invite { right: 12px; left: 12px; bottom: 12px; width: auto; padding: 22px 22px 20px; }
  .cmap-has-stack .cmap-scroll { display: none; }
  .cmap-has-stack .cmap-stack { display: block; }
  .cmap { min-width: 640px; }
  .cmap tbody th[scope="row"] { position: static; white-space: normal; font-size: 0.98rem; line-height: 1.2; padding: 9px 12px 9px 14px; width: 118px; }
  .cmap thead th.cmap-corner { padding-left: 14px; }
  .cbar { font-size: 0.94rem; padding: 11px 10px; min-height: 58px; }
  .cbar small { font-size: 0.72rem; }
  .cbar-tight { font-size: 0.8rem; padding: 11px 5px; }
  .pillar-grid { grid-template-columns: 1fr; max-width: 460px; }
  .pillar-grid .tile, .pillar-grid .tile:first-child, .pillar-grid .tile:last-child { border: 1px solid var(--rule); border-radius: 4px; margin-bottom: 18px; }
  .form-grid { grid-template-columns: 1fr; }
  .tuition-grid { grid-template-columns: 1fr; max-width: 420px; }
  .steps { grid-template-columns: 1fr; gap: 32px; max-width: 360px; }
}
