/* C0deEX — Education for Excellence
   Colors are the existing C0deEX palette (style.css: #333333, #f73f3f, #ee7b00,
   #00cbc9, #9bba1f, plus the logo blue). Where a brand color is used for text or
   button labels it is a slightly deeper shade of the same hue so it meets WCAG AA. */

:root {
  --ink: #2b2b2b;          /* headings */
  --text: #3d3d3d;         /* body */
  --muted: #666666;        /* existing #666 */
  --line: #e4e4e4;
  --soft: #f8f8f8;         /* existing #f8f8f8 */
  --paper: #ffffff;
  --bar: #333333;          /* existing header-top */

  --red: #f73f3f;          /* brand red (accents, rules) */
  --red-ink: #d42a2a;      /* button fill: same hue, AA with white text */
  --red-deep: #b51f1f;     /* hover */
  --orange: #ee7b00;
  --orange-ink: #a85600;
  --teal: #00cbc9;
  --teal-ink: #00706e;
  --green: #9bba1f;
  --green-ink: #5a6f0d;
  --blue: #0577fb;         /* logo tagline blue */
  --blue-ink: #0560cc;

  --brand: #f07020;          /* C0deEX orange, from the logo's "EX" */
  --brand-btn: #e8661a;      /* button fill: logo orange, a touch deeper so white text stays readable */
  --brand-deep: #c4520c;     /* hover */
  --brand-ink: #b34a08;      /* orange text on white */
  --brand-tint: #fff4ec;
  --logo-green: #3fbf3f; --logo-green-ink: #1f7a1f;
  --science: var(--logo-green); --science-ink: var(--logo-green-ink);
  --english: var(--blue);    --english-ink: var(--blue-ink);
  --testprep: var(--red);    --testprep-ink: var(--red-ink);
  --cs: var(--teal);         --cs-ink: var(--teal-ink);

  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Lato", "Helvetica Neue", Arial, sans-serif;
  --radius: 8px;
  --max: 1180px;
  --shadow: 0 1px 2px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.06);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--text); font: 17px/1.65 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-ink); text-underline-offset: 2px; }
a:hover { color: var(--brand-deep); }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(2rem, 4.2vw, 3rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.55rem, 2.8vw, 2.1rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; font-family: var(--sans); font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; margin: 0 0 1em; }
li { margin: .25em 0; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section.tight { padding: 48px 0; }
.section.soft { background: var(--soft); }
.section.dark { background: var(--bar); color: #e9e9e9; }
.section.dark h2, .section.dark h3 { color: #fff; }
.eyebrow { font: 700 .78rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--brand-ink); margin: 0 0 14px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 46em; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Placeholder content the team must supply before launch */
.tbd { background: #fff3b0; color: #5a4a00; padding: 0 .3em; border-radius: 3px; font-style: normal; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 11px 22px;
  border-radius: 6px; font: 700 1rem/1.2 var(--sans); text-decoration: none; border: 2px solid transparent; cursor: pointer; }
.btn-primary { background: var(--brand-btn); color: #fff; }
.btn-primary:hover { background: var(--brand-deep); color: #fff; }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #f1f1f1; color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.textlink { font-weight: 700; text-decoration: none; }
.textlink::after { content: " \2192"; }

/* Utility bar (existing dark top bar) */
.utility { background: var(--bar); color: #ddd; font-size: .86rem; }
.utility .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; flex-wrap: wrap; }
.utility a { color: #fff; text-decoration: none; }
.utility a:hover { color: var(--orange); }
.utility ul { list-style: none; display: flex; gap: 18px; margin: 0; padding: 0; flex-wrap: wrap; }
.utility .portals a { font-weight: 700; }

/* Header + menu */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 84px; }
.brand img { height: 58px; width: auto; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav > ul { list-style: none; display: flex; margin: 0; padding: 0; align-items: center; }
.nav > ul > li { position: static; margin: 0; }
.nav-link { display: inline-flex; align-items: center; gap: 4px; padding: 10px 9px; font: 700 .93rem/1 var(--sans); white-space: nowrap; color: var(--ink);
  text-decoration: none; background: none; border: 0; cursor: pointer; border-radius: 6px; }
.nav-link:hover, .nav-link[aria-expanded="true"], .nav-link.current { color: var(--brand-ink); }
.nav-link .chev { width: 10px; height: 10px; transition: transform .15s; }
.nav-link[aria-expanded="true"] .chev { transform: rotate(180deg); }
.nav .btn { margin-left: 8px; min-height: 42px; padding: 9px 14px; font-size: .93rem; white-space: nowrap; }
.has-drop { position: relative; }
.drop { position: absolute; top: 100%; left: 0; min-width: 250px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 10px; display: none; }
.drop a { display: block; padding: 9px 12px; border-radius: 6px; color: var(--ink); text-decoration: none; font-size: .95rem; }
.drop a:hover { background: var(--soft); color: var(--brand-ink); }
.has-drop.open > .drop { display: block; }
.mega { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 1px solid var(--line); border-bottom: 3px solid var(--brand);
  box-shadow: 0 18px 30px rgba(0,0,0,.08); display: none; }
.has-mega.open > .mega { display: block; }
.mega-inner { max-width: var(--max); margin: 0 auto; padding: 28px 20px 22px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.mega-col h3 { font: 700 .8rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; margin: 0 0 12px; padding-bottom: 10px; border-bottom: 3px solid; }
.mega-col.science h3 { border-color: var(--science); color: var(--science-ink); }
.mega-col.english h3 { border-color: var(--english); color: var(--english-ink); }
.mega-col.testprep h3 { border-color: var(--testprep); color: var(--testprep-ink); }
.mega-col.cs h3 { border-color: var(--cs); color: var(--cs-ink); }
.mega-col ul { list-style: none; margin: 0; padding: 0; }
.mega-col li { margin: 0; }
.mega-col a { display: block; padding: 6px 0; color: var(--ink); text-decoration: none; font-size: .95rem; }
.mega-col a:hover { color: var(--brand-ink); }
.mega-col .sub { font: 700 .82rem/1.2 var(--sans); color: var(--muted); margin: 12px 0 2px; }
.mega-col .sub:first-of-type { margin-top: 0; }
.mega-col .all { font-weight: 700; margin-top: 6px; }
.mega-foot { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 14px; font-size: .92rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 22px; }
.mega-foot a { color: var(--ink); font-weight: 700; text-decoration: none; }
.mega-foot a:hover { color: var(--brand-ink); }
.menu-toggle { display: none; }

@media (max-width: 1240px) {
  .nav { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; gap: 8px; background: none; border: 2px solid var(--ink); border-radius: 6px;
    padding: 8px 12px; font: 700 .95rem var(--sans); color: var(--ink); cursor: pointer; }
  .brand img { height: 50px; }
  .site-header .wrap { min-height: 70px; }
}

/* Mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 80; display: none; }
.drawer.open { display: block; }
.drawer-scrim { position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.drawer-panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(420px, 92vw); background: #fff; overflow-y: auto; padding: 18px 20px 110px; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.drawer-close { background: none; border: 0; font-size: 2rem; line-height: 1; cursor: pointer; color: var(--ink); padding: 4px 10px; }
.drawer details { border-bottom: 1px solid var(--line); }
.drawer summary { list-style: none; cursor: pointer; padding: 14px 2px; font: 700 1.05rem var(--sans); color: var(--ink); display: flex; justify-content: space-between; }
.drawer summary::-webkit-details-marker { display: none; }
.drawer summary::after { content: "+"; font-size: 1.3rem; line-height: 1; }
.drawer details[open] summary::after { content: "\2212"; }
.drawer .dgroup { padding: 0 0 12px 8px; }
.drawer .dgroup p { margin: 10px 0 2px; font: 700 .78rem var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.drawer .dgroup a, .drawer .dlink { display: block; padding: 8px 0; color: var(--ink); text-decoration: none; }
.drawer .dlink { font: 700 1.05rem var(--sans); padding: 14px 2px; border-bottom: 1px solid var(--line); }
.drawer .portals { margin-top: 18px; display: grid; gap: 6px; font-size: .95rem; }
.sticky-cta { display: none; }
@media (max-width: 1240px) {
  .sticky-cta { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: #fff; border-top: 1px solid var(--line);
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 18px rgba(0,0,0,.06); }
  .sticky-cta .btn { width: 100%; }
  body { padding-bottom: 72px; }
}

/* Hero */
.hero { position: relative; background: #1f1f1f; color: #fff; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.hero h1 { color: #fff; }
.hero .tag { font: italic 600 1.15rem var(--serif); color: #8fc0ff; margin: 0 0 14px; }
.hero p.lead { color: #d8d8d8; }
.hero-photo { border-radius: var(--radius); overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,.35); }
.hero-photo figcaption { background: #2a2a2a; color: #cfcfcf; font-size: .85rem; padding: 10px 14px; }
.hero .btn-outline { border-color: #fff; color: #fff; }
.hero .btn-outline:hover { background: #fff; color: var(--ink); }
.hero-rule { height: 5px; background: linear-gradient(90deg, var(--green) 0 25%, var(--blue) 25% 50%, var(--orange) 50% 75%, var(--teal) 75% 100%); }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 48px; gap: 32px; } }

/* Page title band */
.page-head { background: var(--soft); border-bottom: 1px solid var(--line); padding: 44px 0 40px; }
.page-head.science { border-top: 5px solid var(--science); }
.page-head.english { border-top: 5px solid var(--english); }
.page-head.testprep { border-top: 5px solid var(--testprep); }
.page-head.cs { border-top: 5px solid var(--cs); }
.page-head.neutral { border-top: 5px solid var(--brand); }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.crumbs span[aria-hidden] { margin: 0 6px; }
.page-head .lead { margin-bottom: 0; }
.page-head.has-photo .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 44px; align-items: center; }
.head-photo { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: 0 14px 30px rgba(0,0,0,.12); }
.head-photo img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
@media (max-width: 860px) { .page-head.has-photo .wrap { grid-template-columns: 1fr; gap: 24px; } }
.course-photo.contain img { object-fit: contain; background: #fff; aspect-ratio: 2 / 1; padding: 28px; box-sizing: border-box; }
.course-photo.contain { border: 1px solid var(--line); }

/* Proof strip */
.proof { border-bottom: 1px solid var(--line); }
.proof ul { list-style: none; margin: 0; padding: 26px 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.proof li { margin: 0; border-left: 3px solid var(--brand); padding-left: 14px; }
.proof strong { display: block; font: 600 1.35rem/1.15 var(--serif); color: var(--ink); }
.proof span { font-size: .9rem; color: var(--muted); }
@media (max-width: 960px) { .proof ul { grid-template-columns: repeat(2, 1fr); } }

/* Grids and cards */
.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1000px) { .g4, .g5 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .g2, .g3, .g4, .g5 { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; }
.card h3 { margin-bottom: .35em; }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover { color: var(--brand-ink); }
.card p { color: var(--muted); }
.card .meta { font-size: .9rem; color: var(--muted); margin: 0 0 12px; }
.card .push { margin-top: auto; }
.card.pillar { border-top: 5px solid var(--brand); }
.card.science { border-top: 5px solid var(--science); }
.card.english { border-top: 5px solid var(--english); }
.card.testprep { border-top: 5px solid var(--testprep); }
.card.cs { border-top: 5px solid var(--cs); }
.card.tutoring { border-top: 5px solid var(--brand); }
.tag-pill { display: inline-block; font: 700 .75rem/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; padding: 6px 9px; border-radius: 999px;
  background: var(--soft); color: var(--muted); margin: 0 6px 8px 0; }
.tag-pill.science { background: #f1f6e1; color: var(--science-ink); }
.tag-pill.english { background: #e7f0ff; color: var(--english-ink); }
.tag-pill.testprep { background: #fff0df; color: var(--testprep-ink); }
.tag-pill.cs { background: #dcf7f6; color: var(--cs-ink); }
.facts { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .92rem; color: var(--muted); margin: 0 0 14px; padding: 0; list-style: none; }
.facts li { margin: 0; }
.facts b { color: var(--ink); }

/* Two-column feature */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split.wide-left { grid-template-columns: 1.2fr .8fr; }
@media (max-width: 860px) { .split, .split.wide-left { grid-template-columns: 1fr; gap: 28px; } }
.photo { border-radius: var(--radius); overflow: hidden; }
.photo figcaption { font-size: .85rem; color: var(--muted); padding-top: 8px; }

/* Steps */
.steps { counter-reset: s; list-style: none; padding: 0; display: grid; gap: 16px; }
.steps li { counter-increment: s; position: relative; padding: 16px 18px 16px 64px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin: 0; }
.steps li::before { content: counter(s); position: absolute; left: 16px; top: 14px; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff;
  font: 700 1rem/34px var(--sans); text-align: center; }
.steps li b { display: block; color: var(--ink); }
.steps.row { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .steps.row { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps.row { grid-template-columns: 1fr; } }

/* Pathway */
.pathway { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.pathway > div { padding: 20px 22px; border-right: 1px solid var(--line); background: #fff; }
.pathway > div:last-child { border-right: 0; }
.pathway h4 { margin: 0 0 6px; }
.pathway p { margin: 0; font-size: .95rem; color: var(--muted); }
.pathway .stage { font: 700 .75rem var(--sans); text-transform: uppercase; letter-spacing: .1em; color: var(--brand-ink); }
@media (max-width: 760px) { .pathway { grid-template-columns: 1fr; } .pathway > div { border-right: 0; border-bottom: 1px solid var(--line); } }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--soft); font-weight: 700; color: var(--ink); }
tr:last-child td { border-bottom: 0; }

/* Course detail */
.course-layout { display: grid; grid-template-columns: 1fr 340px; gap: 48px; align-items: start; }
@media (max-width: 960px) { .course-layout { grid-template-columns: 1fr; } }
.side { position: sticky; top: 110px; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: #fff; }
.side dl { margin: 0 0 16px; display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; font-size: .95rem; }
.side dt { color: var(--muted); }
.side dd { margin: 0; font-weight: 700; color: var(--ink); }
.slots { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; }
.slots li { margin: 0; display: flex; justify-content: space-between; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; }
.slots .when { font-size: .92rem; }
.slots .when b { display: block; color: var(--ink); }
.slots .btn { min-height: 38px; padding: 7px 14px; font-size: .9rem; }
.checks { list-style: none; padding: 0; }
.checks li { position: relative; padding-left: 28px; }
.checks li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 14px; height: 8px; border-left: 3px solid var(--green-ink); border-bottom: 3px solid var(--green-ink); transform: rotate(-45deg); }
.announce { background: var(--soft); border: 2px solid var(--orange); border-radius: 8px; padding: 16px 18px; font-size: 1.05rem; }
.announce b { font-size: 1.15rem; margin-right: 6px; }
.note { background: var(--soft); border-left: 4px solid var(--orange); padding: 14px 16px; border-radius: 0 6px 6px 0; font-size: .95rem; }
.next-step { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 16px 0; font: 700 1.02rem var(--sans); color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--brand-ink); }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 0 16px; color: var(--muted); }

/* Faculty */
.person { display: grid; grid-template-columns: 120px 1fr; gap: 20px; align-items: start; border-top: 1px solid var(--line); padding: 24px 0; }
.person img { width: 120px; height: 120px; object-fit: cover; border-radius: 50%; background: var(--soft); }
.person h3 { margin-bottom: 2px; }
.person .role { font-size: .92rem; color: var(--muted); margin-bottom: 8px; }
.person .cred { font-weight: 700; color: var(--ink); font-size: .95rem; margin-bottom: 6px; }
@media (max-width: 560px) { .person { grid-template-columns: 1fr; } }
.mini-faculty { text-align: center; }
.mini-faculty img { width: 104px; height: 104px; border-radius: 50%; object-fit: cover; margin: 0 auto 12px; }
.mini-faculty b { display: block; color: var(--ink); }
.mini-faculty span { font-size: .9rem; color: var(--muted); }

/* Quotes */
.quote { border-left: 4px solid var(--brand); padding: 4px 0 4px 20px; }
.quote p { font: italic 1.1rem/1.6 var(--serif); color: var(--ink); }
.quote cite { font-style: normal; font-size: .9rem; color: var(--muted); }

/* Schools */
.schools { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; list-style: none; padding: 0; }
.schools li { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; text-align: center; background: #fff; font-size: .88rem; }
.schools img { height: 64px; width: auto; margin: 0 auto 8px; object-fit: contain; }
.schools b { display: block; color: var(--ink); }

/* Booking */
.booking { display: grid; grid-template-columns: 1.15fr .85fr; gap: 36px; align-items: start; }
@media (max-width: 900px) { .booking { grid-template-columns: 1fr; } }
.cal-embed { min-height: 640px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; position: relative; }
.cal-fallback { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 30px; color: var(--muted); }
.cal-fallback b { color: var(--ink); font-size: 1.1rem; }
.cal-embed.loaded .cal-fallback { display: none; }
form.inquiry { display: grid; gap: 14px; }
form.inquiry label { font-weight: 700; font-size: .92rem; color: var(--ink); display: grid; gap: 6px; }
form.inquiry input, form.inquiry select, form.inquiry textarea { font: inherit; font-weight: 400; padding: 11px 12px; border: 1px solid #c9c9c9; border-radius: 6px; background: #fff; color: var(--text); width: 100%; }
form.inquiry textarea { min-height: 110px; resize: vertical; }
form.inquiry .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { form.inquiry .row2 { grid-template-columns: 1fr; } }
form.inquiry .consent { font-weight: 400; font-size: .8rem; color: var(--muted); display: flex; gap: 10px; align-items: flex-start; }
form.inquiry .consent input { width: auto; margin-top: 4px; }
.form-status { font-size: .95rem; }

/* Filters (Programs hub) */
.filters { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: flex-end; margin-bottom: 26px; padding: 18px 20px; background: var(--soft); border-radius: var(--radius); }
.filters fieldset { border: 0; padding: 0; margin: 0; }
.filters legend { font: 700 .8rem var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { font: 700 .9rem var(--sans); padding: 8px 14px; border-radius: 999px; border: 1px solid #c9c9c9; background: #fff; color: var(--ink); cursor: pointer; }
.chips button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.count { font-size: .92rem; color: var(--muted); margin: 0 0 14px; }
.empty { display: none; padding: 30px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }

/* CTA band */
.cta-band { background: var(--bar); color: #eee; }
.cta-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-top: 44px; padding-bottom: 44px; }
.cta-band h2 { color: #fff; margin: 0 0 6px; }
.cta-band p { margin: 0; color: #cfcfcf; }

/* Footer */
.site-footer { background: #fff; border-top: 1px solid var(--line); font-size: .95rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr; gap: 32px; padding: 52px 0 36px; }
@media (max-width: 1000px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }
.site-footer h2 { font: 700 .8rem var(--sans); text-transform: uppercase; letter-spacing: .1em; color: var(--ink); margin: 0 0 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 7px; }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: var(--brand-ink); text-decoration: underline; }
.foot-brand img { height: 64px; width: auto; margin-bottom: 12px; }
.foot-brand p { color: var(--muted); font-size: .92rem; }
.badge { display: inline-block; border: 2px solid var(--orange); color: var(--orange-ink); font: 700 .8rem var(--sans); padding: 6px 10px; border-radius: 6px; }
.newsletter { display: grid !important; gap: 8px; margin-top: 8px; }
.newsletter input { flex: 1; min-width: 0; font: inherit; padding: 9px 10px; border: 1px solid #c9c9c9; border-radius: 6px; }
.newsletter button { min-height: 42px; padding: 8px 14px; }
.foot-bottom { border-top: 1px solid var(--line); padding: 18px 0 22px; font-size: .86rem; color: var(--muted); }
.foot-bottom .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.foot-bottom ul { display: flex; gap: 16px; flex-wrap: wrap; }
.social { display: flex; gap: 10px; margin-top: 12px; }
.social a { display: inline-flex; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; align-items: center; justify-content: center; }
.social svg { width: 16px; height: 16px; fill: var(--ink); }

/* Prose pages */
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.3em; }

/* Print */
@media print { .utility, .site-header, .sticky-cta, .site-footer, .cta-band { display: none; } }

@media (max-width: 700px) {
  .utility .hide-sm { display: none; }
  .utility .wrap { flex-wrap: nowrap; }
}

/* dropdowns sit under their own menu item */
.nav > ul > li.has-drop { position: relative; }
figure { margin: 0; }

/* Mission statement */
.mission { border-bottom: 1px solid var(--line); }
.mission-text { font: italic 600 clamp(1.4rem, 3vw, 2.1rem)/1.35 var(--serif); color: var(--ink); max-width: 34em; margin: 0 0 14px; padding-left: 22px; border-left: 5px solid var(--brand); text-wrap: balance; }
.mission-sign { font: 700 .82rem var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--blue-ink); padding-left: 27px; margin: 0; }

/* spam trap: hidden from people, visible to bots */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile:empty { display: none; }

/* Google reviews */
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 24px; }
@media (max-width: 1000px) { .review-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .review-grid { grid-template-columns: 1fr; } }
.review { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.review .stars { color: #e6a100; letter-spacing: 2px; font-size: 1.05rem; }
.review .stars .off { color: #d4d4d4; }
.review blockquote { margin: 0; font: italic 1.02rem/1.6 var(--serif); color: var(--ink); }
.review .who { display: flex; align-items: center; gap: 10px; font-size: .92rem; margin-top: auto; }
.review .who img { width: 36px; height: 36px; border-radius: 50%; }
.review .who b { display: block; color: var(--ink); }
.review .who span { color: var(--muted); font-size: .85rem; }
.review .verify { font-size: .85rem; font-weight: 700; }
.reviews-note { font-size: .85rem; color: var(--muted); margin: 18px 0 0; }
.review-summary b { color: var(--ink); }


/* ---------- Motion (only when site.js adds .anim; never with reduced motion) ---------- */
.card, .mini-faculty, .person, .gallery figure { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
a.card:hover, .grid > .card:hover, .mini-faculty:hover, .person:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0,0,0,.10); }
.imgclip { display: block; overflow: hidden; }
.anim .photo img, .anim .course-photo img, .anim .gallery figure img { transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.anim .photo:hover img, .anim .gallery figure:hover img { transform: scale(1.04); }
.course-photo { margin: 0 0 28px; }
.course-photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }

.anim .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.anim .reveal.reveal-img { transform: translateY(26px) scale(.97); }
.anim .reveal.in { opacity: 1; transform: none; }
.anim .reveal.in.card:hover, .anim .reveal.in.mini-faculty:hover, .anim .reveal.in.person:hover { transform: translateY(-4px); transition-delay: 0s; }

.anim .page-head h1, .anim .page-head .lead, .anim .page-head .crumbs, .anim .page-head .btn-row { opacity: 0; transform: translateY(18px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.anim .page-head .crumbs { transition-delay: 0s; }
.anim .page-head h1 { transition-delay: .08s; }
.anim .page-head .lead { transition-delay: .22s; }
.anim .page-head .btn-row { transition-delay: .34s; }
.anim.ready .page-head h1, .anim.ready .page-head .lead, .anim.ready .page-head .crumbs, .anim.ready .page-head .btn-row { opacity: 1; transform: none; }

.anim .hero h1 .w { display: inline-block; opacity: 0; transform: translateY(.45em); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.anim.ready .hero h1 .w { opacity: 1; transform: none; }
.anim .hero .tag, .anim .hero .lead, .anim .hero .btn-row { opacity: 0; transform: translateY(16px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.anim .hero .tag { transition-delay: 0s; }
.anim .hero .lead { transition-delay: .7s; }
.anim .hero .btn-row { transition-delay: .9s; }
.anim.ready .hero .tag, .anim.ready .hero .lead, .anim.ready .hero .btn-row { opacity: 1; transform: none; }
.anim .hero-photo { opacity: 0; transform: translateX(30px) scale(.97); transition: opacity 1s ease .3s, transform 1.1s cubic-bezier(.2,.7,.2,1) .3s; }
.anim.ready .hero-photo { opacity: 1; transform: none; }
.anim .head-photo { opacity: 0; transform: translateX(24px) scale(.98); transition: opacity .9s ease .25s, transform 1s cubic-bezier(.2,.7,.2,1) .25s; }
.anim.ready .head-photo { opacity: 1; transform: none; }
.anim .hero-photo img { animation: kenburns 18s ease-in-out infinite alternate; transform-origin: 60% 40%; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.07); } }
.anim .hero-rule { transform: scaleX(0); transform-origin: left; transition: transform 1.4s cubic-bezier(.2,.7,.2,1) .4s; }
.anim.ready .hero-rule { transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  a.card:hover, .grid > .card:hover, .photo:hover img, .gallery figure:hover img { transform: none; }
}


/* ---------- Program finder ---------- */
.finder { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: 0 10px 28px rgba(0,0,0,.06); }
.section.soft .finder { border-color: #e2e2e2; }
.finder h2 { margin-top: 0; }
.finder-q { margin: 18px 0; }
.finder-q label, .finder-label { display: block; font-size: 1.05rem; margin: 0 0 10px; }
.finder-label span { color: var(--muted); font-size: .9rem; }
.finder select { font: inherit; font-size: 1rem; padding: 10px 12px; border: 1px solid #b9b9b9; border-radius: 8px; min-width: 220px; background: #fff; }
.finder-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.finder-opts button { font: 700 .95rem var(--sans); padding: 10px 16px; border-radius: 999px; border: 1px solid #c9c9c9; background: #fff; color: var(--ink); cursor: pointer; min-height: 44px; transition: background .15s, border-color .15s, color .15s; }
.finder-opts button:hover { border-color: var(--ink); }
.finder-opts button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.finder-out { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 20px; }
.finder-hint { color: var(--muted); margin: 0; }
.finder-count { font-weight: 700; margin: 0 0 14px; }
.finder-card .btn-row { gap: 8px; flex-wrap: wrap; }
.finder-card .btn { padding: 9px 14px; font-size: .9rem; }
.finder-why { font-size: .9rem; }
@media (max-width: 600px) { .finder { padding: 20px 16px; } .finder select { width: 100%; } }


/* ---------- Brighter brand colour (Nov 2026) ---------- */
.btn { font-size: 1rem; }
.page-head { border-top-width: 6px !important; }
.page-head.neutral { background: var(--brand-tint); }
.page-head.science { background: #eefaea; }
.page-head.english { background: #eaf3ff; }
.page-head.testprep { background: #fff0ef; }
.page-head.cs { background: #e8fbfb; }
.section.soft { background: #fff7f1; }
.proof strong { color: var(--brand-ink); }
.hero .tag { color: #ff9a4d; }
.hero-rule { height: 6px; background: linear-gradient(90deg, var(--brand) 0 25%, var(--logo-green) 25% 50%, var(--blue) 50% 75%, var(--teal) 75% 100%); }
.cta-band { background: linear-gradient(120deg, #d9590b, #c24e0a); color: #fff; }
.cta-band p { color: #fff; }
.cta-band .btn-light { color: var(--brand-ink); font-weight: 800; }
.cta-band .btn-light:hover { background: #fff4ec; }
.site-footer { border-top: 0; position: relative; }
.site-footer::before { content: ""; display: block; height: 6px; background: linear-gradient(90deg, var(--brand) 0 25%, var(--logo-green) 25% 50%, var(--blue) 50% 75%, var(--teal) 75% 100%); }
.card { border-top-width: 6px; }
.card.science, .card.english, .card.testprep, .card.cs, .card.pillar, .card.tutoring { border-top-width: 6px; }
.grid > .card.science:hover { background: #f7fdf5; } .grid > .card.english:hover { background: #f5f9ff; }
.grid > .card.testprep:hover { background: #fff7f7; } .grid > .card.cs:hover { background: #f4fdfd; }
.finder { border-top: 6px solid var(--brand); }
.finder-opts button[aria-pressed="true"] { background: var(--brand-btn); border-color: var(--brand-btn); }
.finder-opts button:hover { border-color: var(--brand); }
.announce { background: var(--brand-tint); }
.stage, .pathway h4 { }

/* booking box: compact card until the live Calendly calendar actually loads */
.cal-embed { min-height: 0; border: 1px solid var(--line); border-top: 6px solid var(--brand); background: var(--brand-tint); }
.cal-embed.loaded { min-height: 660px; background: #fff; }
.cal-embed .cal-fallback { position: static; display: flex; gap: 18px; align-items: flex-start; text-align: left; padding: 22px; inset: auto; }
.cal-embed .cal-fallback p { margin: 4px 0 14px; color: var(--muted); }
.cal-icon { width: 44px; height: 44px; flex: none; fill: var(--brand); }
@media (max-width: 600px) { .cal-embed .cal-fallback { padding: 18px 16px; gap: 14px; } .cal-icon { width: 36px; height: 36px; } }

/* ---------- Homepage announcements & recent wins & downloads ---------- */
.announcements { background: var(--brand-tint); border-bottom: 1px solid #f5dcc8; }
.ann-grid { display: grid; gap: 22px; grid-template-columns: repeat(3, 1fr); }
.ann-grid.n1 { grid-template-columns: minmax(0, 520px); }
.ann-grid.n2 { grid-template-columns: repeat(2, minmax(0, 480px)); }
.ann { margin: 0; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.ann img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: 0 10px 26px rgba(0,0,0,.12); display: block; }
@media (max-width: 760px) { .ann-grid, .ann-grid.n2, .ann-grid.n1 { grid-template-columns: 1fr; } }
.card.win { padding: 0; overflow: hidden; }
.card.win img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.card.win > :not(img) { margin-left: 22px; margin-right: 22px; }
.card.win .meta { margin-top: 18px; }
.card.win .push { margin-bottom: 22px; }
.downloads { display: grid; gap: 12px; margin-top: 14px; }
.dl { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-left: 5px solid var(--brand); border-radius: 8px; background: #fff; color: var(--ink); text-decoration: none; }
.dl:hover { background: var(--brand-tint); color: var(--ink); }
.dl span { color: var(--muted); font-size: .88rem; white-space: nowrap; }
.dl b::before { content: "\2193  "; color: var(--brand-ink); }
.anim .hero-photo img { animation: none; }

/* ---------- Warm cream header and hero (replaces the black, Nov 2026) ---------- */
.utility { background: #fff4ec; color: #7a3a10; border-bottom: 1px solid #f3d9c4; }
.utility a { color: #7a3a10; }
.utility a:hover { color: var(--brand-deep); }
.hero { background: linear-gradient(135deg, #fff7f0 0%, #ffe9d8 100%); color: var(--ink); }
.hero h1 { color: #2b2b2b; }
.hero p.lead { color: #4a4a4a; }
.hero .tag { color: #c4520c; }
.hero .btn-outline { border-color: #2b2b2b; color: #2b2b2b; }
.hero .btn-outline:hover { background: #2b2b2b; color: #fff; }
.hero-photo { box-shadow: 0 18px 40px rgba(196, 82, 12, .18); }
.hero-photo figcaption { background: #fff; color: #555; }
.hero-photo figcaption a { color: var(--brand-ink) !important; }

/* ---------- Class days: clear choice between options ---------- */
.slots-intro { font-size: .92rem; margin: 0 0 10px; color: var(--text); }
.slots.choose li { flex-direction: column; align-items: stretch; gap: 8px; padding: 12px 14px; border-left: 5px solid var(--brand); background: #fff; }
.slots.choose .btn { align-self: flex-start; }
.slots .opt { font: 700 .72rem var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--brand-ink); }
.slots .when b { font-size: 1rem; }
.slots-help { font-size: .88rem; margin: -4px 0 14px; color: var(--muted); }

/* ---------- Reviews carousel ---------- */
.rev-carousel { position: relative; margin-top: 22px; }
.rev-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 40px) / 3); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 4px 2px 14px; scrollbar-width: thin; }
.rev-track .review { scroll-snap-align: start; margin: 0; }
.rev-arrow { position: absolute; top: 42%; z-index: 2; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--brand-ink); font: 700 1.6rem/1 var(--sans); cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.12); }
.rev-arrow:hover { background: var(--brand-tint); }
.rev-arrow.prev { left: -18px; } .rev-arrow.next { right: -18px; }
@media (max-width: 900px) { .rev-track { grid-auto-columns: calc((100% - 20px) / 2); } }
@media (max-width: 600px) { .rev-track { grid-auto-columns: 86%; } .rev-arrow { display: none; } }
.review .who br { display: none; }
.review .who span { display: block; margin-top: 2px; font-size: .88rem; color: var(--muted); }

.rev-more { align-self: flex-start; background: none; border: 0; padding: 0; margin: -6px 0 10px; font: 700 .9rem var(--sans); color: var(--brand-ink); cursor: pointer; text-decoration: underline; }
.rev-track { align-items: stretch; }
