/* ==========================================================================
   The 18 Academy
   Two typefaces only: Plus Jakarta Sans (display) and Inter (text).
   Six type sizes. Blue and white, with one warm accent used sparingly.
   ========================================================================== */

:root {
  /* ---- blue and white ---- */
  --navy:      #0A2A4E;
  --navy-2:    #0E3663;
  --navy-3:    #15497F;
  --blue:      #0B5CD5;
  --blue-dark: #0846A3;
  --blue-soft: #4D8BE8;
  --sky:       #E7F0FD;
  --sky-2:     #CFE1FA;
  --sky-3:     #AFCDF4;
  --white:     #FFFFFF;
  --paper:     #F7FAFE;

  /* ---- one warm accent, used sparingly ---- */
  --gold:      #E9A233;
  --gold-soft: #FBE6C2;

  /* ---- text ---- */
  --ink:       #11243C;
  --body:      #46586F;
  --body-soft: #5A6B81;
  --on-navy:       #EAF2FD;
  --on-navy-soft:  #A9C2E0;

  /* ---- lines ---- */
  --line:      #D8E4F3;
  --line-soft: #E9F0F9;
  --line-navy: rgba(234, 242, 253, 0.20);

  /* ---- type: two families ---- */
  --display: "Plus Jakarta Sans", "Helvetica Neue", Arial, sans-serif;
  --text: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, sans-serif;

  /* ---- six sizes, nothing else ---- */
  --t-xl:  clamp(2.1rem, 5.6vw, 4.25rem);  /* page hero only      */
  --t-lg:  clamp(1.95rem, 3.4vw, 2.75rem); /* section headings    */
  --t-md:  clamp(1.2rem, 1.7vw, 1.4rem);   /* subheads, card tops */
  --t-rd:  1.125rem;                        /* lede                */
  --t-bd:  1rem;                            /* body                */
  --t-sm:  0.8125rem;                       /* labels, captions    */

  /* ---- metrics ---- */
  --page: 1440px;
  --gut: clamp(1.25rem, 5vw, 3.25rem);
  --sect: clamp(4rem, 8vw, 7rem);
  --r: 10px;
  --r-sm: 6px;
  --shadow: 0 1px 2px rgba(10,42,78,.05), 0 8px 24px rgba(10,42,78,.06);
  --shadow-lift: 0 2px 4px rgba(10,42,78,.06), 0 18px 40px rgba(10,42,78,.12);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  background: var(--white);
  color: var(--body);
  font-family: var(--text);
  font-size: var(--t-bd);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; }
::selection { background: var(--sky-2); color: var(--navy); }

/* ---------- type ---------- */
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  font-optical-sizing: auto;
  color: var(--navy);
  letter-spacing: -0.015em;
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: var(--t-xl); line-height: 1.04; }
h2 { font-size: var(--t-lg); }
h3 { font-size: var(--t-md); line-height: 1.3; letter-spacing: -0.005em; }
h4 {
  font-family: var(--text); font-size: var(--t-bd); font-weight: 600;
  color: var(--navy); margin: 0; line-height: 1.45; letter-spacing: 0;
}
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
strong { color: var(--navy); font-weight: 600; }

.lede { font-size: var(--t-rd); line-height: 1.62; color: var(--body); }
.measure { max-width: 62ch; }
.small { font-size: var(--t-sm); line-height: 1.6; color: var(--body-soft); }

/* ---------- layout ---------- */
.wrap { max-width: var(--page); margin-inline: auto; padding-inline: var(--gut); }
section { padding-block: var(--sect); position: relative; }
.pad-sm { padding-block: clamp(2.75rem, 5vw, 4.25rem); }

.on-navy { background: var(--navy); color: var(--on-navy-soft); }
.on-navy h1, .on-navy h2, .on-navy h3, .on-navy h4 { color: var(--white); }
.on-navy strong { color: var(--white); }
.on-navy .lede { color: var(--on-navy-soft); }
.on-navy .small { color: var(--on-navy-soft); }
.on-sky { background: var(--sky); }
.on-paper { background: var(--paper); }

.split { display: grid; grid-template-columns: minmax(0,.92fr) minmax(0,1.08fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.split-even { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4.5vw, 4rem); align-items: start; }
.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 2.4vw, 1.9rem); }
.cols-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.25rem, 2.4vw, 1.9rem); }
.cols-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2vw, 1.6rem); }
@media (max-width: 940px) { .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .split, .split-even { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; } }

.stack-lg > * + * { margin-top: clamp(2rem, 4vw, 3.25rem); }
.head-block { max-width: 58ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.head-block .lede { margin-top: 1.1rem; }

/* ---------- eyebrow label ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: var(--t-sm); font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue); margin: 0 0 1rem;
}
.on-navy .eyebrow { color: var(--sky-3); }

/* ---------- TBD marker ---------- */
.tbd {
  display: inline-block; font-family: var(--text);
  font-size: .82em; font-weight: 600; letter-spacing: .02em;
  padding: .1em .45em .14em; border-radius: 4px;
  background: var(--gold-soft); color: #8A5B10;
  border: 1px dashed #D8A44E;
  white-space: normal;
  overflow-wrap: anywhere;
}
.on-navy .tbd { background: rgba(233,162,51,.18); color: #F3CE94; border-color: rgba(233,162,51,.5); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.5rem; border-radius: 999px;
  font-size: .9375rem; font-weight: 600; letter-spacing: .005em;
  text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
  transition: background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.btn-primary { background: var(--blue); color: var(--white); box-shadow: 0 6px 18px rgba(11,92,213,.26); }
.btn-primary:hover { background: var(--blue-dark); box-shadow: 0 10px 26px rgba(11,92,213,.34); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.on-navy .btn-ghost { color: var(--white); border-color: var(--line-navy); }
.on-navy .btn-ghost:hover { border-color: var(--white); color: var(--white); background: rgba(255,255,255,.08); }
.btn-white { background: var(--white); color: var(--navy); }
.btn-white:hover { background: var(--sky); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }

.text-link {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .9375rem; font-weight: 600; color: var(--blue);
  text-decoration: none; transition: gap .18s ease;
}
.text-link:hover { gap: .7rem; text-decoration: underline; text-underline-offset: 3px; }
.on-navy .text-link { color: var(--sky-3); }

/* ==========================================================================
   header
   ========================================================================== */
.site-head {
  position: sticky; top: 0; z-index: 70;
  background: rgba(255,255,255,.93);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.site-head.is-scrolled { box-shadow: 0 1px 16px rgba(10,42,78,.07); }
.head-in {
  max-width: var(--page); margin-inline: auto; padding-inline: var(--gut);
  height: 78px; display: flex; align-items: center; gap: 1.75rem;
  position: relative;
}
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; margin-right: auto; }
.brand-mark {
  height: 40px; width: auto; flex: 0 0 auto;
  color: var(--navy); display: grid; place-items: center;
}
.brand-mark svg { height: 100%; width: auto; display: block; }
.brand-name { font-family: var(--display); font-size: 1.22rem; color: var(--navy); line-height: 1.1; display: block; }
.brand-sub {
  display: block; font-size: .625rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--body-soft); margin-top: 3px;
}

.nav {
  display: flex; align-items: center; gap: 1.5rem;
  position: absolute; left: 50%; transform: translateX(-50%);
}
@media (max-width: 1150px) {
  .nav { position: static; transform: none; margin-left: auto; }
}
.nav a {
  font-size: .9375rem; font-weight: 500; text-decoration: none; color: var(--body);
  padding: .4rem 0; border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.nav a:hover { color: var(--blue); }
.nav a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--gold); }
.head-cta { padding: .62rem 1.15rem; font-size: .875rem; }

.burger {
  display: none; width: 44px; height: 44px; margin-left: auto;
  background: var(--white); border: 1px solid var(--line); border-radius: 9px;
  cursor: pointer; position: relative;
}
.burger span, .burger::before, .burger::after {
  content: ""; position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px;
  background: var(--navy); transition: transform .22s ease, opacity .18s ease;
}
.burger::before { top: 15px; }
.burger span { top: 21px; }
.burger::after { top: 27px; }
.burger[aria-expanded="true"]::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span { opacity: 0; }
.burger[aria-expanded="true"]::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav { display: none; border-top: 1px solid var(--line); background: var(--white); padding: .5rem var(--gut) 1.5rem; }
.mobile-nav.is-open { display: block; }
.mobile-nav a { display: block; padding: .9rem 0; text-decoration: none; color: var(--navy); font-size: 1.05rem; border-bottom: 1px solid var(--line-soft); }
.mobile-nav .btn { margin-top: 1.25rem; width: 100%; }
@media (max-width: 1040px) { .nav, .head-cta { display: none; } .burger { display: block; } }

/* ==========================================================================
   hero
   ========================================================================== */
.hero { background: var(--navy); color: var(--on-navy-soft); overflow: hidden; position: relative; padding-block: 0; }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(104deg, rgba(10,42,78,.95) 0%, rgba(10,42,78,.88) 42%, rgba(10,42,78,.58) 100%);
}
.hero-in {
  position: relative; z-index: 2;
  max-width: var(--page); margin-inline: auto; padding-inline: var(--gut);
  padding-top: clamp(1.5rem, 3vw, 3.25rem); padding-bottom: clamp(4rem, 9vw, 7.5rem);
}
.hero h1 { color: var(--white); max-width: 20ch; }
.hero .lede { margin-top: 1.5rem; max-width: 54ch; color: var(--on-navy); }
.hero .btn-row { margin-top: 2.25rem; }
.hero-small { padding-block: clamp(3rem, 6vw, 4.75rem); }
.hero-small h1 { font-size: var(--t-lg); max-width: 20ch; }

.hero-facts {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  background: var(--line-navy); border: 1px solid var(--line-navy); border-radius: var(--r); overflow: hidden;
}
.hero-facts div { background: var(--navy); padding: 1.15rem 1.25rem; }
.hero-facts dt { font-size: var(--t-sm); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--sky-3); margin-bottom: .4rem; }
.hero-facts dd { margin: 0; font-family: var(--display); font-size: var(--t-md); color: var(--white); line-height: 1.2; }
@media (max-width: 760px) { .hero-facts { grid-template-columns: 1fr 1fr; } }

/* ==========================================================================
   cards
   ========================================================================== */
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r);
  padding: clamp(1.4rem, 2.4vw, 1.9rem);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.card:hover { border-color: var(--sky-3); box-shadow: var(--shadow-lift); }
.card h3, .card h4 { margin-bottom: .55rem; }
.card p { font-size: var(--t-bd); }
.card .num {
  font-family: var(--display); font-size: var(--t-md); color: var(--blue);
  display: block; margin-bottom: .9rem;
}
.on-navy .card { background: var(--navy-2); border-color: var(--line-navy); }
.on-navy .card:hover { border-color: var(--sky-3); }
.on-navy .card p { color: var(--on-navy-soft); }
.card-flat { box-shadow: none; }
.card-flat:hover { transform: none; box-shadow: var(--shadow); }

.card-media { overflow: hidden; padding: 0; }
.card-media .shot { aspect-ratio: 16 / 10; background: var(--sky-2); overflow: hidden; }
.card-media .shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }

.card-media .body { padding: clamp(1.25rem, 2.2vw, 1.6rem); }
.card-media .meta {
  display: flex; flex-wrap: wrap; gap: .4rem .9rem;
  font-size: var(--t-sm); color: var(--body-soft); margin-top: .9rem;
  padding-top: .9rem; border-top: 1px solid var(--line-soft);
}

/* portraits */
.portrait { text-align: center; }
.portrait .pic {
  width: 104px; height: 104px; border-radius: 50%; margin: 0 auto .9rem;
  background: linear-gradient(145deg, var(--sky-2), var(--sky-3));
  display: grid; place-items: center; overflow: hidden;
  font-family: var(--display); font-size: var(--t-md); color: var(--navy);
}
.portrait .pic img { width: 100%; height: 100%; object-fit: cover; }
.portrait .role { font-size: var(--t-sm); color: var(--body-soft); margin-top: .25rem; }

/* ---------- stat strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2.5vw, 2rem); }
.stats .stat { text-align: center; padding: 0 .5rem; }
.stats .fig { font-family: var(--display); font-size: var(--t-lg); color: var(--blue); line-height: 1; display: block; }
.on-navy .stats .fig { color: var(--white); }
.stats .cap { font-size: var(--t-sm); color: var(--body-soft); margin-top: .6rem; display: block; }
.on-navy .stats .cap { color: var(--on-navy-soft); }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; gap: 1.75rem 1rem; } }

/* ---------- lists ---------- */
.ticks { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: .85rem; }
.ticks li { position: relative; padding-left: 1.85rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .45em;
  width: 11px; height: 6px; border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue);
  transform: rotate(-45deg);
}
.on-navy .ticks li::before { border-color: var(--sky-3); }
.ticks.plain li::before {
  width: 6px; height: 6px; border: 0; border-radius: 50%; background: var(--gold);
  transform: none; top: .62em;
}

/* ---------- numbered steps ---------- */
.steps { counter-reset: s; list-style: none; margin: 0; padding: 0; }
.steps li {
  counter-increment: s; display: grid; grid-template-columns: 2.9rem 1fr; gap: 1.35rem;
  padding: 1.5rem 0; border-top: 1px solid var(--line);
}
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before {
  content: counter(s, decimal-leading-zero);
  font-family: var(--display); font-size: var(--t-md); color: var(--blue); line-height: 1.3;
}
.on-navy .steps li { border-color: var(--line-navy); }
.on-navy .steps li::before { color: var(--sky-3); }
.steps h4 { margin-bottom: .3rem; }
.steps p { font-size: var(--t-bd); margin: 0; }
@media (max-width: 560px) { .steps li { grid-template-columns: 2.2rem 1fr; gap: .9rem; } }

/* ---------- schedule table ---------- */
.sched { border-top: 1px solid var(--line); }
.sched-row {
  display: grid; grid-template-columns: 7.5rem 1fr; gap: clamp(1rem, 3vw, 2rem);
  padding: 1.05rem 0; border-bottom: 1px solid var(--line); align-items: baseline;
}
.sched-row .time { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--blue); font-size: var(--t-bd); }
.sched-row .what h4 { margin-bottom: .2rem; }
.sched-row .what p { margin: 0; font-size: var(--t-sm); }
.on-navy .sched, .on-navy .sched-row { border-color: var(--line-navy); }
.on-navy .sched-row .time { color: var(--sky-3); }
@media (max-width: 560px) { .sched-row { grid-template-columns: 1fr; gap: .25rem; } }

/* ---------- day cards ---------- */
.days { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.day {
  background: var(--white); padding: 1.3rem clamp(1.1rem, 2.2vw, 1.75rem);
  display: grid; grid-template-columns: 4.5rem 1fr minmax(0, 1.4fr); gap: clamp(.75rem, 2.5vw, 2rem); align-items: start;
}
.day .d { font-family: var(--display); font-size: var(--t-bd); color: var(--blue); letter-spacing: .02em; }
.day h4 { margin: 0; }
.day p { margin: 0; font-size: var(--t-sm); }
@media (max-width: 800px) {
  .day { grid-template-columns: 3.4rem 1fr; gap: .3rem .9rem; }
  .day p { grid-column: 2; margin-top: .35rem; }
}

/* ---------- week banner ---------- */
.week-head {
  display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap;
  padding-bottom: .9rem; margin-bottom: 1.5rem; border-bottom: 2px solid var(--gold);
}
.week-head h3 { margin: 0; }
.week-head .tag { font-size: var(--t-sm); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--body-soft); }

/* ---------- pull quote ---------- */
.pull {
  font-family: var(--display); font-size: var(--t-lg); line-height: 1.26;
  color: var(--navy); letter-spacing: -.012em; margin: 0; max-width: 24ch;
  font-optical-sizing: auto;
}
.on-navy .pull { color: var(--white); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.35rem 3rem 1.35rem 0; position: relative;
  font-weight: 600; color: var(--navy); font-size: var(--t-bd);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: .75rem; top: 1.75rem;
  width: 10px; height: 10px; border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue);
  transform: rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); top: 1.95rem; }
.faq .answer { padding: 0 clamp(0px, 4vw, 3.5rem) 1.5rem 0; }
.faq summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* ---------- callout ---------- */
.callout {
  border-left: 3px solid var(--gold); background: var(--paper);
  padding: 1.25rem 1.4rem; border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.on-navy .callout { background: var(--navy-2); }

/* ---------- band with image ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 0; align-items: stretch; }
.feature .pic { min-height: 340px; background: var(--sky-2); overflow: hidden; }
.feature .pic img { width: 100%; height: 100%; object-fit: cover; }
.feature .txt { padding: clamp(2rem, 5vw, 4.5rem); display: flex; flex-direction: column; justify-content: center; }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } .feature .pic { min-height: 240px; } }

/* ==========================================================================
   forms
   ========================================================================== */
.form-shell { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(1.5rem, 3vw, 2.4rem); box-shadow: var(--shadow); }
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-size: var(--t-sm); font-weight: 600; color: var(--navy); margin-bottom: .45rem; }
.field .hint { display: block; font-weight: 400; color: var(--body-soft); margin-top: .22rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: .75rem .85rem; font-family: var(--text); font-size: var(--t-bd);
  color: var(--ink); background: var(--white); border: 1.5px solid var(--line); border-radius: var(--r-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(11,92,213,.14);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.req { color: var(--blue); }
.consent { display: flex; gap: .75rem; align-items: flex-start; margin: 1.5rem 0; }
.consent input { width: 18px; height: 18px; flex: 0 0 18px; margin-top: .25rem; accent-color: var(--blue); }
.consent label { font-size: var(--t-sm); font-weight: 400; color: var(--body); margin: 0; }
.form-note { font-size: var(--t-sm); color: var(--body-soft); margin-top: 1rem; }
.form-msg { display: none; margin-top: 1.1rem; padding: .9rem 1rem; border-radius: var(--r-sm); font-size: var(--t-sm); border: 1.5px solid; }
.form-msg.is-shown { display: block; }
.form-msg.ok { background: var(--sky); border-color: var(--sky-3); color: var(--navy); }
.form-msg.bad { background: #FDF1EE; border-color: #F0C4B8; color: #8C3A22; }

.inline-form { display: flex; gap: .65rem; flex-wrap: wrap; margin-top: 1.75rem; max-width: 520px; }
.inline-form input {
  flex: 1 1 210px; padding: .82rem 1rem; font-family: var(--text); font-size: var(--t-bd);
  background: rgba(255,255,255,.08); color: var(--white);
  border: 1.5px solid var(--line-navy); border-radius: 999px;
}
.inline-form input::placeholder { color: var(--on-navy-soft); }
.inline-form input:focus { outline: none; border-color: var(--sky-3); background: rgba(255,255,255,.14); }

/* ==========================================================================
   footer
   ========================================================================== */
.site-foot { background: var(--navy); color: var(--on-navy-soft); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.foot-grid { display: grid; grid-template-columns: minmax(0,1.6fr) repeat(3, minmax(0,1fr)); gap: clamp(2rem,4vw,3rem); }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }
.site-foot .brand-name { color: var(--white); }
.site-foot .brand-sub { color: var(--on-navy-soft); }
.site-foot .brand-mark { color: var(--white); }
.foot-blurb { font-size: var(--t-sm); margin-top: 1.1rem; max-width: 34ch; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.foot-col a { font-size: var(--t-sm); text-decoration: none; color: var(--on-navy-soft); transition: color .15s; }
.foot-col a:hover { color: var(--white); }
.foot-base {
  margin-top: clamp(2.5rem, 5vw, 3.5rem); padding-top: 1.6rem; border-top: 1px solid var(--line-navy);
  display: flex; flex-wrap: wrap; gap: .75rem 2rem; justify-content: space-between; font-size: var(--t-sm);
}

/* ==========================================================================
   motion and a11y
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 3px;
}
.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--navy); color: var(--white); padding: .8rem 1.2rem; text-decoration: none; border-radius: 0 0 var(--r-sm) 0; }
.skip:focus { left: 0; top: 0; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---------- fixes ---------- */
.on-navy .card .num { color: var(--sky-3); }
.portrait .pic-blank { color: var(--blue-soft); background: var(--sky); border: 1.5px dashed var(--sky-3); }
.img-ph {
  width: 100%; height: 100%; min-height: 160px;
  background: linear-gradient(140deg, var(--sky), var(--sky-2));
  display: grid; place-items: center; text-align: center; padding: 1rem;
  color: var(--blue); font-size: var(--t-sm); font-weight: 600;
}

/* ---------- grid children must be allowed to shrink ---------- */
.cols-2 > *, .cols-3 > *, .cols-4 > *,
.split > *, .split-even > *, .steps li > *, .sched-row > *, .day > * { min-width: 0; }
.steps li, .sched-row, .day { min-width: 0; }

/* ---------- section sub navigation ---------- */
.subnav {
  position: sticky; top: 78px; z-index: 60;
  background: var(--paper); border-bottom: 1px solid var(--line);
}
.subnav .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 52px; flex-wrap: wrap; }
.subnav-label {
  font-size: var(--t-sm); font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--body-soft); white-space: nowrap; padding-right: 1.25rem;
  border-right: 1px solid var(--line);
}
.subnav-links { display: flex; gap: 1.35rem; flex-wrap: wrap; align-items: center; min-width: 0; }
.subnav-links a {
  font-size: .9rem; font-weight: 500; color: var(--body); text-decoration: none;
  padding: .85rem 0; border-bottom: 2px solid transparent; white-space: nowrap;
  transition: color .15s, border-color .15s;
}
.subnav-links a:hover { color: var(--blue); }
.subnav-links a.is-here { color: var(--navy); border-bottom-color: var(--gold); font-weight: 600; }
@media (max-width: 900px) {
  .subnav { position: static; }
  .subnav .wrap { gap: .5rem; padding-block: .5rem; }
  .subnav-label { border-right: 0; padding-right: 0; width: 100%; }
  .subnav-links { gap: 1rem; overflow-x: auto; }
  .subnav-links a { padding: .5rem 0; }
}

/* ---------- head give link ---------- */
.btn-give {
  background: var(--gold); color: var(--navy); border: 1px solid var(--gold);
}
.btn-give:hover { background: #f0b14a; border-color: #f0b14a; color: var(--navy); }
.head-give { white-space: nowrap; }
@media (max-width: 1040px) { .head-give { display: none; } }

/* ---------- footer top ---------- */
.foot-top { margin-bottom: clamp(2rem, 4vw, 3rem); max-width: 46ch; }
.site-foot .foot-grid { grid-template-columns: repeat(6, minmax(0,1fr)); }
@media (max-width: 1040px) { .site-foot .foot-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .site-foot .foot-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .site-foot .foot-grid { grid-template-columns: 1fr; } }

/* ---------- misc ---------- */
.card .role { font-size: var(--t-sm); color: var(--body-soft); margin-top: .25rem; }
.tier { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.tier-row { background: var(--white); padding: 1.25rem 1.4rem; display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: baseline; }
.tier-row .amt { font-family: var(--display); font-size: var(--t-md); color: var(--blue); white-space: nowrap; }
.table-wrap { overflow-x: auto; }
table.plain { width: 100%; border-collapse: collapse; }
table.plain th, table.plain td { text-align: left; padding: .8rem 1rem; border-bottom: 1px solid var(--line); font-size: .95rem; }
table.plain th { font-size: var(--t-sm); letter-spacing: .08em; text-transform: uppercase; color: var(--body-soft); }
.foot-head { margin: 0 0 .9rem; font-family: var(--text); font-size: var(--t-sm); font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--white); }

/* ==========================================================================
   navy header, Hebrew letterform mark
   ========================================================================== */
.site-head {
  background: var(--navy);
  border-bottom: 0;
  box-shadow: inset 0 -2px 0 rgba(233,162,51,.5);
}
.site-head.is-scrolled { box-shadow: inset 0 -2px 0 var(--gold), 0 2px 20px rgba(10,42,78,.22); }
.site-head .brand-name { color: var(--white); }
.site-head .brand-sub { color: var(--sky-3); }
.site-head .brand-mark {
  background: transparent; border-radius: 0; height: 40px; width: auto; flex: 0 0 auto;
  color: var(--white); display: grid; place-items: center;
}
.site-head .brand-mark svg { height: 100%; width: auto; display: block; }
.site-head .brand:hover .brand-mark { color: var(--gold); transition: color .2s ease; }
.site-head .nav a { color: var(--sky-2); }
.site-head .nav a:hover { color: var(--white); }
.site-head .nav a[aria-current="page"] { color: var(--white); border-bottom-color: var(--gold); }
.site-head .burger { background: transparent; border-color: rgba(255,255,255,.26); }
.site-head .burger span, .site-head .burger::before, .site-head .burger::after { background: var(--white); }
.mobile-nav { background: var(--navy-2); border-top-color: rgba(255,255,255,.14); }
.mobile-nav a { color: var(--sky-2); border-bottom-color: rgba(255,255,255,.1); }

/* the hero sits directly under a navy bar, so lift its scrim to keep them distinct */
.hero-media::after {
  background: linear-gradient(104deg, rgba(10,42,78,.90) 0%, rgba(10,42,78,.78) 44%, rgba(10,42,78,.40) 100%);
}
.hero { background: var(--navy-3); }

/* sub navigation now sits against a navy bar */
.subnav { top: 78px; background: var(--paper); border-bottom: 1px solid var(--line); }

.site-foot .brand-mark { background: transparent; color: var(--white); height: 40px; width: auto;
  flex: 0 0 auto; border-radius: 0; }
.site-foot .brand-mark svg { height: 100%; width: auto; display: block; }

/* ---------- sample mentor cards ---------- */
.mentor .mentor-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.1rem; }
.mentor .mono {
  width: 56px; height: 56px; flex: 0 0 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(145deg, var(--sky-2), var(--sky-3));
  color: var(--navy); font-family: var(--display); font-size: 1.15rem; letter-spacing: .02em;
}
.on-navy .mentor .mono { background: linear-gradient(145deg, var(--navy-3), var(--blue-dark)); color: var(--white); }
.mentor .sample {
  font-size: .65rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: #8A5B10; background: var(--gold-soft); border: 1px dashed #D8A44E;
  padding: .22em .55em; border-radius: 3px;
}
.on-navy .mentor .sample { color: #F3CE94; background: rgba(233,162,51,.16); border-color: rgba(233,162,51,.5); }
.mentor h3 { margin-bottom: .2rem; }
.mentor .role { font-size: var(--t-sm); color: var(--blue); font-weight: 600; margin-bottom: .8rem; }
.on-navy .mentor .role { color: var(--sky-3); }

/* ---------- The 18 Institute: quieter, more institutional ---------- */
body.inst .hero { background: var(--navy); }
body.inst .hero h1 { max-width: 20ch; }
body.inst .hero-small h1 { font-size: clamp(2.2rem, 4vw, 3.1rem); }
body.inst .card:hover { transform: none; box-shadow: var(--shadow); }
body.inst .site-head { box-shadow: inset 0 -2px 0 rgba(175,205,244,.45); }
body.inst .site-head.is-scrolled { box-shadow: inset 0 -2px 0 var(--sky-3), 0 2px 20px rgba(10,42,78,.22); }
body.inst .brand-sub { text-transform: none; letter-spacing: .02em; font-size: .68rem; font-style: italic; }

/* ---------- fixes: hero-small never actually reduced padding ---------- */
.hero-small .hero-in { padding-block: clamp(2.75rem, 5.5vw, 4.25rem); }
.site-head .brand-mark { height: 46px; width: auto; flex: 0 0 auto; }
.site-foot .brand-mark { height: 46px; width: auto; flex: 0 0 auto; }
.head-in { gap: 1.5rem; }

/* ==========================================================================
   M0-01  mobile overflow. The header must never be able to leave the viewport.
   ========================================================================== */
@media (max-width: 480px) {
  .hero h1 { max-width: none; }
}
.head-in { max-width: min(var(--page), 100vw); overflow: hidden; }
.subnav .wrap { max-width: min(var(--page), 100vw); }
.subnav-links { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.subnav-links::-webkit-scrollbar { display: none; }
.hero-in, .wrap { max-width: min(var(--page), 100vw); }
img, svg, video, table, pre { max-width: 100%; }
.sched-row .time, .day .d { overflow-wrap: anywhere; }

/* M0-08  no scroll-reveal and no hover lift. The page must render without JS,
   and a kit signature is the one inference this organization cannot afford. */
.reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
.card:hover { transform: none; }
.btn:hover { transform: none; }
.card-media:hover .shot img { transform: none; }

/* M0-07  every form states where the data goes, directly above the submit button */
.form-notice {
  font-size: var(--t-sm); line-height: 1.55; color: var(--body);
  background: var(--sky); border-left: 3px solid var(--blue);
  padding: .8rem 1rem; border-radius: 0 var(--r-sm) var(--r-sm) 0;
  margin: 0 0 1.1rem;
}
.inline-form .form-notice { background: rgba(255,255,255,.1); color: var(--on-navy); border-left-color: var(--sky-3); flex: 1 1 100%; }


/* ---------- hero video ---------- */
.hero-film video { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (prefers-reduced-motion: reduce) { .hero-film video { display: none; } }

/* ---------- floating hero facts ---------- */
.hero-has-float .hero-in { display: flex; gap: clamp(2rem, 4vw, 4rem); align-items: flex-start; }
.hero-has-float .hero-main { flex: 1 1 auto; min-width: 0; }
.hero-facts-float {
  display: grid; grid-template-columns: 1fr; gap: .9rem; margin-top: 0;
  flex: 0 0 240px; background: none; border: 0; border-radius: 0; overflow: visible;
}
.hero-facts-float div {
  background: rgba(10, 42, 78, .78); border: 1px solid var(--line-navy);
  border-radius: var(--r); padding: 1rem 1.15rem;
  box-shadow: 0 10px 30px rgba(4, 16, 31, .35); backdrop-filter: blur(4px);
}
@media (max-width: 900px) {
  .hero-has-float .hero-in { flex-direction: column; }
  .hero-facts-float { grid-template-columns: 1fr 1fr; flex: none; width: 100%;
    margin-top: 2rem; }
}

/* ---------- program buttons ---------- */
.prog-btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
  margin-top: clamp(1.5rem, 3vw, 2.5rem); }
.prog-btn {
  display: flex; align-items: center; gap: 1rem; text-decoration: none;
  background: var(--sky); color: var(--navy); border-radius: var(--r);
  padding: 1.4rem 1.5rem; font-family: var(--display); font-size: var(--t-md);
  line-height: 1.25; border: 2px solid var(--navy); cursor: pointer;
  box-shadow: 0 2px 0 var(--navy);
}
.prog-btn:hover { background: var(--white); transform: translateY(-1px); }
.prog-btn.is-open { background: var(--white); box-shadow: inset 0 -4px 0 var(--gold); }
.prog-btn .num { font-size: var(--t-sm); font-family: var(--text); font-weight: 600;
  letter-spacing: .08em; color: var(--blue); }
.prog-btn .chev { margin-left: auto; transition: transform .25s ease; color: var(--blue); }
.prog-btn.is-open .chev { transform: rotate(180deg); }
.prog-btns-dark .prog-btn { background: var(--navy-2); border: 1px solid var(--line-navy);
  color: var(--white); box-shadow: none; }
.prog-btns-dark .prog-btn:hover { background: var(--navy-3); transform: none; }
.prog-btns-dark .prog-btn .num { color: var(--gold); }

/* track detail panel */
.prog-detail { display: none; margin-top: 1.25rem; background: var(--white);
  border: 2px solid var(--navy); border-radius: var(--r);
  padding: clamp(1.5rem, 3vw, 2.25rem); }
.prog-detail.is-open { display: block; }
.prog-detail h3 { margin-bottom: .6rem; }
.prog-detail .cols { display: grid; grid-template-columns: 1.1fr .9fr;
  gap: clamp(1.5rem, 3vw, 2.5rem); }
@media (max-width: 760px) { .prog-detail .cols { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .prog-btns { grid-template-columns: 1fr; } }

/* ---------- 10-day experience block ---------- */
.exp-split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.exp-media img { width: 100%; height: 100%; max-height: 430px; object-fit: cover;
  border-radius: var(--r); display: block; }
.exp-body h2 { margin-bottom: .6rem; }
.exp-meta { display: flex; align-items: center; gap: .55rem; font-weight: 600;
  color: var(--blue); margin-bottom: 1rem; }
@media (max-width: 860px) { .exp-split { grid-template-columns: 1fr; } }

/* ---------- centered note ---------- */
.center-note { max-width: 62ch; margin: clamp(2.5rem, 5vw, 4rem) auto 0; text-align: center; }
.center-note p { font-size: 1.15rem; line-height: 1.75; }

/* ---------- scroll fade panels ---------- */
.scrollfade { padding: 0; }
.sf-panel { position: relative; height: 100vh; height: 100svh; clip-path: inset(0);
  background: var(--navy); }
.sf-media { position: fixed; inset: 0; }
.sf-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sf-media::after { content: ""; position: absolute; inset: 0;
  background: rgba(7, 26, 48, .5); }
.sf-text { position: fixed; inset: 0; z-index: 2; display: flex; align-items: center;
  justify-content: center; padding-inline: 1.25rem; text-align: center; color: var(--white); }
.sf-kicker { font-size: var(--t-sm); font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--sky-2); margin-bottom: .6rem; }
.sf-text h2 { color: var(--white); font-size: clamp(2.6rem, 6vw, 4.6rem); }

/* ---------- agenda mini ---------- */
.agenda-mini { margin-top: 1.4rem; border-top: 1px solid var(--line); }
.agenda-mini > div { display: grid; grid-template-columns: 8.5rem 1fr; gap: 1rem;
  padding: .95rem 0; border-bottom: 1px solid var(--line); }
.agenda-mini .d { font-weight: 600; color: var(--navy); }
.agenda-mini p { margin: 0; }
@media (max-width: 640px) { .agenda-mini > div { grid-template-columns: 1fr; gap: .25rem; } }

/* ---------- application steps ---------- */
.app-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
  margin-top: clamp(1.5rem, 3vw, 2.5rem); }
.app-step { background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r); padding: 1.5rem 1.4rem; }
.app-step .num { display: inline-flex; width: 2.2rem; height: 2.2rem; align-items: center;
  justify-content: center; border-radius: 50%; background: var(--navy); color: var(--white);
  font-weight: 600; margin-bottom: .9rem; }
.app-step h3 { margin-bottom: .5rem; }
@media (max-width: 1000px) { .app-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .app-steps { grid-template-columns: 1fr; } }

/* deck logo (PNG) in the brand slot */
.brand-mark img, .site-head .brand-mark img { height: 40px; width: auto; max-width: none; display: block; }

/* 6 Nov notes: rounded display face, larger name, facts at the foot of the hero */
h1, h2, h3 { font-weight: 700; letter-spacing: -0.01em; }
.brand-name { font-weight: 800; font-size: 1.6rem; letter-spacing: -0.005em; }
.hero-facts dd { font-weight: 700; }
.hero-facts-float { align-self: flex-end; }
.hero-facts-float div:first-child dd { font-size: var(--t-bd); line-height: 1.45; }
.hero .lede-strong { margin-top: 1rem; color: var(--white); font-family: var(--display); font-weight: 800; font-size: var(--t-md); }
.hero-has-float .hero-in { align-items: flex-end; }
.hero-has-float .hero-main { align-self: center; }
.hero-facts-float { gap: .55rem; }
.hero-facts-float div { padding: .75rem 1.1rem; }
.hero-facts-float dt { margin-bottom: .2rem; }
.hero-facts-float dd { font-size: var(--t-bd); }
/* 8 Nov: the name beside the logo in a plain, light sans rather than the rounded display face */
.brand-name { font-family: var(--text); font-weight: 500; font-size: 1.35rem; letter-spacing: .02em; }
/* 8 Nov: Give in a warm brushed gold that matches the header's gold line */
.btn-give {
  background: linear-gradient(180deg, #F2C66D 0%, #D9A441 100%);
  color: var(--navy); border: 1px solid #E9BC62;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 4px 14px rgba(217,164,65,.28);
  letter-spacing: .01em;
}
.btn-give:hover { background: linear-gradient(180deg, #F6D083 0%, #E0AE50 100%); border-color: #F2C66D; color: var(--navy); }

/* 9 Nov: Plus Jakarta Sans for headings and the name; panel text rises with the scroll */
h1, h2, h3 { font-weight: 600; letter-spacing: -0.02em; }
.brand-name { font-family: var(--display); font-weight: 600; font-size: 1.4rem; letter-spacing: -0.01em; }
.hero-facts dd { font-weight: 600; }
.hero .lede-strong { font-weight: 700; }

/* 11 Nov: request information and enroll */
[hidden] { display: none !important; }
.btn-outline-white { background: transparent; color: var(--white); border: 1.5px solid rgba(255, 255, 255, .7); }
.btn-outline-white:hover { background: rgba(255, 255, 255, .1); border-color: var(--white); color: var(--white); }
.head-info { margin-left: .5rem; }
.form-done { padding: clamp(1.5rem, 4vw, 2.5rem); border: 1px solid var(--line, #dfe6ee); border-radius: var(--r); background: var(--white); }
.form-done h2 { margin-bottom: .6rem; }
.nav { position: static; transform: none; margin-left: auto; }

/* 12 Nov: wider header, nav centred, actions at the far right */
.head-in, .subnav .wrap { max-width: min(var(--page), 100vw); }
.head-in .brand { margin-right: 0; }
.head-in .nav { margin-left: auto; margin-right: auto; }
.head-info { margin-left: 0; background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .35); }
.head-info:hover { background: rgba(255, 255, 255, .22); }

#lovable-badge, aside#lovable-badge, #lovable-badge-cta { display: none !important; }
