/* MSOFx base styles — "The Prepared Environment".
   Restyles the shared class vocabulary used across every content page.
   Tokens only (see tokens.css); signature: graduated step-tower + number-rods. */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.62;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
  overflow-x: hidden;
}
img, video, svg, picture { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-strong);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -0.01em; }
p { max-width: var(--measure); }

a { color: var(--accent-strong); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
::selection { background: var(--key-soft); color: var(--text-strong); }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: var(--container); margin-inline: auto; padding-inline: var(--space-5); }
.narrow { max-width: 900px; }

/* ---------- keyed eyebrow with a step-mark (the signature, miniaturized) ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-alt);
  font-size: var(--fs-label); font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--key); margin-bottom: var(--space-4);
}
.kicker::before {
  content: ""; width: 26px; height: 12px; flex: none;
  /* three graduated steps drawn with a conic-free gradient stack */
  background:
    linear-gradient(var(--key) 0 0) 0 0 / 8px 12px no-repeat,
    linear-gradient(var(--key) 0 0) 10px 3px / 7px 9px no-repeat,
    linear-gradient(var(--key) 0 0) 19px 6px / 6px 6px no-repeat;
  opacity: 0.9;
}
.lede { font-size: var(--fs-lede); color: var(--ink-soft); line-height: 1.5; max-width: 60ch; }
.lede-strong { color: var(--ink); }

/* ---------- section keying (color-coded shelves) ---------- */
.band { padding-block: var(--space-11); position: relative; }
.band-tight { padding-block: var(--space-9); }
.band-sand { background: var(--surface-2); }
.key-rose   { --key: var(--rose-inta); --key-bright: var(--rose); --key-soft: #F3E0E2; }
.key-gold   { --key: var(--gold);      --key-bright: var(--gold); --key-soft: #F0E4CC; }
.key-sky    { --key: var(--sky-ink);   --key-bright: var(--sky);  --key-soft: #DCE7EF; }
.key-cypress{ --key: var(--cypress);   --key-bright: var(--cypress); --key-soft: #E1EBE3; }
.section-head { max-width: 60ch; margin-bottom: var(--space-8); }

/* ---------- deep (dark) sections for light/dark rhythm ---------- */
.band-deep { background: var(--deep); color: var(--on-deep); padding-block: var(--space-11); position: relative; overflow: clip; }
.band-deep h1, .band-deep h2, .band-deep h3 { color: var(--white); }
.band-deep p { color: var(--on-deep-soft); }
.band-deep a { color: var(--white); }
.band-deep .lede { color: var(--on-deep-soft); }

/* ---------- buttons (Bricolage, pill) ---------- */
.btn, .btn-ghost, .btn-light {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 30px;
  border-radius: var(--radius-pill);
  font-family: var(--font-alt); font-size: 1rem; font-weight: 600; letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.btn { background: var(--accent); color: var(--white); box-shadow: var(--shadow-1); }
.btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); background: var(--accent-strong); }
.btn:active { transform: translateY(-1px); }
.btn-ghost { border-color: var(--line); color: var(--text-strong); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-3px); }
.btn-light { background: var(--white); color: var(--accent-strong); box-shadow: var(--shadow-1); }
.btn-light:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.band-deep .btn-ghost { border-color: color-mix(in srgb, var(--on-deep) 40%, transparent); color: var(--white); }
.band-deep .btn-ghost:hover { border-color: var(--white); background: color-mix(in srgb, var(--white) 12%, transparent); }

/* ---------- header ---------- */
.skip-link { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--accent); color: var(--white); padding: 10px 18px; border-radius: 0 0 var(--radius) 0; }
.skip-link:focus { left: 0; }
.site-head { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; gap: var(--space-5); min-height: 78px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand-mark { width: 38px; height: 38px; flex: 0 0 auto; }
.brand-name { font-family: var(--font-display); font-size: 1.14rem; font-weight: 700; letter-spacing: -0.02em; color: var(--text-strong); line-height: 1.02; display: flex; flex-direction: column; }
.brand-name em { font-style: normal; font-family: var(--font-alt); font-weight: 500; font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); margin-top: 3px; }
.nav { display: flex; gap: var(--space-4); }
.nav-item { position: relative; }
.nav-item > a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; color: var(--text-strong); text-decoration: none; font-family: var(--font-alt); font-weight: 500; font-size: 0.95rem; border-bottom: 2px solid transparent; }
.nav-item > a:hover { color: var(--accent); }
.menu { position: absolute; top: 100%; left: 50%; translate: -50% 0; min-width: 250px; padding: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-2); display: grid; gap: 2px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out), visibility var(--dur-fast); }
.has-menu:hover .menu, .has-menu:focus-within .menu { opacity: 1; visibility: visible; transform: translateY(0); }
.menu a { padding: 10px 12px; border-radius: 6px; text-decoration: none; color: var(--ink); font-family: var(--font-alt); font-size: 0.92rem; }
.menu a:hover { background: var(--key-soft); color: var(--text-strong); }
.head-cta { min-height: 46px; padding: 11px 22px; font-size: 0.95rem; }
.nav-toggle { display: none; width: 46px; height: 46px; align-items: center; justify-content: center; background: none; border: 1px solid var(--line); border-radius: var(--radius); color: var(--text-strong); cursor: pointer; }
.nav-toggle svg { width: 22px; height: 22px; }
.drawer { position: fixed; inset: 78px 0 0 0; z-index: 49; background: var(--bg); overflow-y: auto; padding: var(--space-5); }
.drawer nav { display: grid; gap: 2px; max-width: 480px; margin-inline: auto; }
.drawer a { padding: 13px var(--space-4); text-decoration: none; color: var(--text-strong); font-family: var(--font-alt); font-weight: 600; font-size: 1.05rem; border-radius: var(--radius); }
.drawer a.sub { font-weight: 400; font-family: var(--font-body); color: var(--ink); padding-left: var(--space-7); font-size: 1rem; }
.drawer a:hover { background: var(--key-soft); }
.drawer .drawer-cta { margin-top: var(--space-5); color: var(--white); text-align: center; justify-content: center; display: flex; }

/* ---------- HERO (the thesis: a building tower) ---------- */
.hero { position: relative; padding-block: var(--space-10) var(--space-11); overflow: clip; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--space-8); align-items: center; }
.hero-copy h1 { font-size: var(--fs-display); font-weight: 800; margin-bottom: var(--space-5); }
.hero-copy .lede { font-size: var(--fs-lede); max-width: 42ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-7); }
.hero-media { position: relative; }
.hero-frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-2); aspect-ratio: 4 / 5; background: var(--surface-2); }
.hero-frame video, .hero-frame img.ambient-fallback, .hero-frame > img { width: 100%; height: 100%; object-fit: cover; }
/* the graduated tower that builds on load, offset over the hero frame */
.tower { position: absolute; left: -30px; bottom: -26px; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; filter: drop-shadow(0 10px 20px rgba(40,32,20,0.16)); }
.tower i { display: block; border-radius: 4px; height: 26px; }
.tower i:nth-child(1) { width: 108px; background: var(--brick); }
.tower i:nth-child(2) { width: 90px;  background: var(--gold); }
.tower i:nth-child(3) { width: 72px;  background: var(--cypress); }
.tower i:nth-child(4) { width: 54px;  background: var(--sky); }
.tower i:nth-child(5) { width: 36px;  background: var(--rose); }
.js .tower i { opacity: 0; transform: translateY(14px) scaleX(0.6); transform-origin: left; }
.js .tower.built i { animation: tower-place var(--dur-slow) var(--ease-out) forwards; }
.tower.built i:nth-child(1) { animation-delay: 0.15s; }
.tower.built i:nth-child(2) { animation-delay: 0.28s; }
.tower.built i:nth-child(3) { animation-delay: 0.41s; }
.tower.built i:nth-child(4) { animation-delay: 0.54s; }
.tower.built i:nth-child(5) { animation-delay: 0.67s; }
@keyframes tower-place { from { opacity: 0; transform: translateY(14px) scaleX(0.6); } to { opacity: 1; transform: none; } }

/* ---------- number-rods (stats rendered as material rods) ---------- */
.stats { padding-block: var(--space-8); border-block: 1px solid var(--line); background: var(--surface); }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); }
.stat { display: flex; flex-direction: column; gap: 10px; }
.stat::before { content: ""; height: 10px; border-radius: 3px; width: var(--rod, 100%); background: var(--rod-color, var(--cypress)); }
.stat:nth-child(1) { --rod: 62%; --rod-color: var(--brick); }
.stat:nth-child(2) { --rod: 84%; --rod-color: var(--gold); }
.stat:nth-child(3) { --rod: 100%; --rod-color: var(--sky); }
.stat:nth-child(4) { --rod: 46%; --rod-color: var(--rose); }
.stat b { font-family: var(--font-display); font-size: clamp(2rem, 3.4vw, 2.9rem); font-weight: 800; color: var(--text-strong); letter-spacing: -0.03em; line-height: 1; }
.stat span { font-family: var(--font-alt); font-size: 0.82rem; color: var(--ink-soft); line-height: 1.4; }

/* ---------- material cards (programs) ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: var(--shadow-1); display: flex; flex-direction: column; transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); }
.card > img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.card-body { padding: var(--space-5) var(--space-5) var(--space-6); display: grid; gap: 10px; position: relative; }
.card-body h3 { font-size: 1.28rem; }
.card-meta { font-family: var(--font-alt); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--key); display: inline-flex; align-items: center; gap: 8px; }
.card-meta::before { content: ""; width: 22px; height: 8px; background: var(--key-bright, var(--key)); border-radius: 2px; }
.card-body p { font-size: 1rem; color: var(--ink-soft); line-height: 1.5; }
.card-cta { font-family: var(--font-alt); font-weight: 600; color: var(--accent-strong); font-size: 0.95rem; margin-top: 2px; }
.card:hover .card-cta { text-decoration: underline; text-underline-offset: 3px; }
/* keyed cards cycle the material palette when marked */
.card-grid.keyed > .card:nth-child(6n+1) { --key: var(--rose-inta); --key-bright: var(--rose); }
.card-grid.keyed > .card:nth-child(6n+2) { --key: var(--gold); --key-bright: var(--gold); }
.card-grid.keyed > .card:nth-child(6n+3) { --key: var(--sky-ink); --key-bright: var(--sky); }
.card-grid.keyed > .card:nth-child(6n+4) { --key: var(--cypress); --key-bright: var(--cypress); }
.card-grid.keyed > .card:nth-child(6n+5) { --key: var(--brick); --key-bright: var(--brick); }
.card-grid.keyed > .card:nth-child(6n+6) { --key: var(--sky-ink); --key-bright: var(--sky); }

/* ---------- split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); align-items: center; }
.split img { border-radius: var(--radius-lg); box-shadow: var(--shadow-2); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.split .checklist { list-style: none; padding: 0; display: grid; gap: 14px; margin-top: var(--space-5); }
.checklist li { padding-left: 34px; position: relative; font-size: 1.05rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 6px; width: 18px; height: 18px; border-radius: 4px; background: var(--key-bright, var(--key)); }
.checklist li::after { content: ""; position: absolute; left: 5px; top: 11px; width: 8px; height: 8px; border-radius: 2px; background: color-mix(in srgb, var(--key) 45%, white); }

/* ---------- materials shelf (horizontal scroller) ---------- */
.shelf { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: var(--space-5); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: var(--space-4); margin-inline: calc(-1 * var(--space-5)); padding-inline: var(--space-5); scrollbar-width: thin; }
.shelf-item { scroll-snap-align: start; }
.shelf-item figure { display: grid; gap: 12px; }
.shelf-item img { border-radius: var(--radius); aspect-ratio: 1 / 1; object-fit: cover; box-shadow: var(--shadow-1); }
.shelf-item figcaption { font-family: var(--font-alt); font-size: 0.9rem; color: var(--ink); }
.shelf-item figcaption b { display: block; color: var(--text-strong); font-weight: 600; }
.shelf-item figcaption span { color: var(--ink-soft); font-size: 0.82rem; }

/* ---------- quotes ---------- */
.quote-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.quote { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-6); box-shadow: var(--shadow-1); position: relative; }
.quote::before { content: "\201C"; font-family: var(--font-display); font-size: 3.2rem; line-height: 0.7; color: var(--key-bright, var(--key)); display: block; margin-bottom: 8px; }
.quote blockquote { font-size: 1.12rem; color: var(--text-strong); line-height: 1.5; }
.quote figcaption { margin-top: var(--space-4); font-family: var(--font-alt); font-size: 0.86rem; color: var(--ink-soft); }
.band-deep .quote { background: color-mix(in srgb, var(--white) 6%, transparent); border-color: color-mix(in srgb, var(--white) 14%, transparent); }
.band-deep .quote blockquote { color: var(--white); }
.band-deep .quote figcaption { color: var(--on-deep-soft); }

/* ---------- image strip ---------- */
.strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.strip img { border-radius: var(--radius); aspect-ratio: 3 / 2; object-fit: cover; width: 100%; box-shadow: var(--shadow-1); }

/* ---------- CTA band (deep, with tower motif) ---------- */
.cta-band { background: var(--deep-2); color: var(--on-deep); padding-block: var(--space-11); position: relative; overflow: clip; }
.cta-inner { display: grid; justify-items: center; text-align: center; gap: var(--space-4); position: relative; z-index: 1; }
.cta-band h2 { color: var(--white); font-size: var(--fs-h2); }
.cta-band p { color: var(--on-deep-soft); font-size: 1.15rem; max-width: 52ch; }
.cta-band .cta-alt { font-size: 0.98rem; margin-top: var(--space-2); }
.cta-band .cta-alt a { color: var(--white); }
.cta-band .btn { margin-top: var(--space-2); }
/* number-rod band as ambient motif */
.cta-band .motif-squares { display: flex; gap: 8px; margin-bottom: var(--space-3); }
.cta-band .motif-squares i { display: block; height: 16px; border-radius: 3px; }
.cta-band .motif-squares i:nth-child(1){ width: 54px; background: var(--rose); }
.cta-band .motif-squares i:nth-child(2){ width: 40px; background: var(--gold); }
.cta-band .motif-squares i:nth-child(3){ width: 26px; background: var(--sky); }

/* ---------- page head + hero (interior pages) ---------- */
.page-head { padding-block: var(--space-8) var(--space-5); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--font-alt); font-size: 0.85rem; margin-bottom: var(--space-5); color: var(--ink-soft); }
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs .sep { color: var(--line); }
.crumbs [aria-current] { color: var(--key); font-weight: 500; }
.page-head h1 { font-size: var(--fs-h1); }
.page-head .lede { margin-top: var(--space-4); }
.page-hero { padding-bottom: var(--space-6); }
.page-hero img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-1); }

/* ---------- prose (Newsreader reading) ---------- */
.prose { max-width: var(--measure); margin-inline: auto; padding-block: var(--space-6) var(--space-9); font-size: 1.16rem; }
.prose > * { max-width: 100%; }
.prose h2 { margin: var(--space-8) 0 var(--space-4); font-size: clamp(1.5rem, 2.4vw, 2rem); }
.prose h3 { margin: var(--space-6) 0 var(--space-3); }
.prose p { margin-bottom: var(--space-4); }
.prose ul, .prose ol { padding-left: 1.3em; margin-bottom: var(--space-4); display: grid; gap: 10px; }
.prose li::marker { color: var(--key-bright, var(--accent)); }
.prose img { border-radius: var(--radius); margin-block: var(--space-6); box-shadow: var(--shadow-1); }
.prose a { color: var(--accent-strong); }
.prose blockquote { position: relative; background: var(--surface-2); border-radius: var(--radius-lg); padding: var(--space-5) var(--space-6) var(--space-5) 58px; font-size: 1.2rem; color: var(--text-strong); margin-block: var(--space-6); font-style: italic; }
.prose blockquote::before { content: "\201C"; position: absolute; left: 18px; top: 6px; font-family: var(--font-display); font-size: 3rem; line-height: 1; color: var(--gold); font-style: normal; }
.prose table { border-collapse: collapse; width: 100%; margin-block: var(--space-6); font-size: 1rem; font-family: var(--font-alt); }
.prose th, .prose td { border: 1px solid var(--line); padding: 12px 16px; text-align: left; }
.prose th { background: var(--deep); color: var(--white); font-weight: 600; }
.prose tbody tr:nth-child(even), .prose tr:nth-child(even) { background: var(--surface); }
.prose details { border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 18px; margin-bottom: 12px; background: var(--surface); }
.prose summary { font-family: var(--font-alt); font-weight: 600; padding: 12px 0; cursor: pointer; color: var(--text-strong); }
.prose details[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 12px; }

/* ---------- blog post header ---------- */
.post-head { max-width: var(--measure); margin-inline: auto; padding-block: var(--space-8) var(--space-2); }
.post-head h1 { font-size: var(--fs-h1); margin-top: var(--space-3); }
.post-meta { display: flex; gap: 14px; align-items: center; font-family: var(--font-alt); font-size: 0.86rem; color: var(--ink-soft); flex-wrap: wrap; }
.post-meta .chip { background: var(--key-soft, var(--accent-soft)); color: var(--accent-strong); font-weight: 600; padding: 4px 14px; border-radius: var(--radius-pill); font-size: 0.78rem; letter-spacing: 0.03em; }
.post-hero { max-width: 1000px; margin-inline: auto; padding-block: var(--space-5); }
.post-hero img { border-radius: var(--radius-lg); aspect-ratio: 16 / 9; object-fit: cover; width: 100%; box-shadow: var(--shadow-1); }
.mini-cta { background: var(--deep); color: var(--on-deep); border-radius: var(--radius-lg); padding: var(--space-6); margin-block: var(--space-7); display: grid; gap: var(--space-3); justify-items: start; }
.mini-cta p { color: var(--white); font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; max-width: 30ch; }

/* ---------- forms ---------- */
label { display: block; font-family: var(--font-alt); font-weight: 600; font-size: 0.92rem; color: var(--text-strong); margin-bottom: 6px; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; min-height: 52px; padding: 13px 16px;
  border: 1.5px solid var(--line); border-radius: var(--radius);
  background: var(--surface); color: var(--ink);
  font-family: var(--font-body); font-size: 1.05rem;
  transition: border-color var(--dur-fast) var(--ease-out);
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: none; }
.field { margin-bottom: var(--space-5); }
.field-error { color: var(--brick); font-size: 0.86rem; margin-top: 6px; display: none; font-family: var(--font-alt); }
.field.invalid input, .field.invalid select { border-color: var(--brick); }
.field.invalid .field-error { display: block; }

/* ---------- visit wizard ---------- */
.wiz-wrap { max-width: 720px; }
.wiz-head { margin-bottom: var(--space-6); }
.wiz-head h1 { font-size: var(--fs-h1); }
.wiz-dots { display: flex; gap: 8px; margin-bottom: var(--space-6); }
.wiz-dot { width: 40px; height: 8px; border-radius: var(--radius-pill); background: var(--line); transition: background-color var(--dur-fast) var(--ease-out); }
.wiz-dot.now { background: var(--gold); }
.wiz-dot.done { background: var(--cypress); }
.steps { display: grid; min-height: 560px; }
.steps .step { grid-area: 1 / 1; opacity: 0; pointer-events: none; visibility: hidden; transition: opacity var(--dur-fast) var(--ease-out); border: 0; padding: 0; margin: 0; }
.steps .step.active { opacity: 1; pointer-events: auto; visibility: visible; }
.steps .step.leaving { opacity: 0; }
.step legend { font-family: var(--font-display); font-size: 1.5rem; color: var(--text-strong); font-weight: 700; margin-bottom: var(--space-5); padding: 0; }
.wiz-q { margin-bottom: var(--space-6); }
.wiz-label { font-family: var(--font-alt); font-weight: 600; color: var(--text-strong); margin-bottom: var(--space-3); }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--space-3); }
.choice-grid.choice-col { grid-template-columns: 1fr; }
.choice { position: relative; }
.choice input { position: absolute; top: 16px; left: 16px; width: 18px; height: 18px; accent-color: var(--accent); }
.choice label { display: block; min-height: 52px; padding: 15px 16px 15px 46px; margin: 0; font-family: var(--font-alt); background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); font-weight: 500; cursor: pointer; transition: border-color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out); }
.choice label:hover { border-color: var(--accent); }
.choice input:checked + label { border-color: var(--accent); background: var(--accent-soft); color: var(--text-strong); }
.choice input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.choice-grid.invalid + .field-error { display: block; }
.wiz-nav { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); margin-top: var(--space-6); }
.wiz-status { min-height: 1.4em; color: var(--brick); font-family: var(--font-alt); font-weight: 500; margin-top: var(--space-4); }
.opt { font-weight: 400; color: var(--ink-soft); }
.review { display: grid; gap: var(--space-4); margin-bottom: var(--space-6); }
.review > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-4) var(--space-5); }
.review dt { font-family: var(--font-alt); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 4px; }
.review dd { margin: 0; color: var(--text-strong); }
.consent-row { display: grid; grid-template-columns: auto 1fr; gap: var(--space-3); align-items: start; }
.consent-row input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--accent); }
.consent-row label { font-weight: 400; font-family: var(--font-body); font-size: 0.98rem; color: var(--ink); margin: 0; }
.wiz-success { display: grid; gap: var(--space-4); justify-items: start; padding-top: var(--space-4); }
.wiz-success h2 { font-size: var(--fs-h2); }
.cal-placeholder { background: var(--surface-2); border: 1px dashed var(--line); border-radius: var(--radius-lg); padding: var(--space-5); }

/* ---------- footer ---------- */
.site-foot { position: relative; background: var(--deep); color: var(--on-deep); }
.site-foot::before { content: ""; display: block; height: 6px; background: linear-gradient(90deg, var(--brick) 0 20%, var(--gold) 20% 40%, var(--cypress) 40% 60%, var(--sky) 60% 80%, var(--rose) 80% 100%); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--space-7); padding-block: var(--space-9) var(--space-7); }
.foot-brand { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: var(--white); margin-bottom: var(--space-3); }
.foot-about p { font-size: 0.98rem; color: var(--on-deep-soft); margin-bottom: var(--space-4); }
.foot-about .foot-affil { font-family: var(--font-alt); font-size: 0.8rem; letter-spacing: 0.03em; color: var(--on-deep-soft); }
.foot-about address { font-style: normal; font-size: 0.98rem; line-height: 1.9; color: var(--on-deep-soft); }
.foot-about address a { color: var(--white); text-decoration: none; }
.foot-h { font-family: var(--font-alt); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--white); margin-bottom: var(--space-3); }
.foot-col { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.foot-col a { color: var(--on-deep-soft); text-decoration: none; font-family: var(--font-alt); font-size: 0.96rem; padding-block: 3px; }
.foot-col a:hover { color: var(--white); }
.foot-bar { display: flex; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; border-top: 1px solid color-mix(in srgb, var(--on-deep) 20%, transparent); padding-block: var(--space-5); font-family: var(--font-alt); font-size: 0.85rem; color: var(--on-deep-soft); }

/* generic graduated-step motif (wizard success, misc decorative flourishes) */
.motif-squares { display: flex; align-items: flex-end; gap: 6px; }
.motif-squares i { display: block; border-radius: 3px; }
.motif-squares i:nth-child(1) { width: 30px; height: 30px; background: var(--cypress); }
.motif-squares i:nth-child(2) { width: 22px; height: 22px; background: var(--gold); }
.motif-squares i:nth-child(3) { width: 14px; height: 14px; background: var(--rose); }

/* ---------- reveal (FAIL-SAFE: visible without JS; animation is enhancement) ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity var(--dur-med) var(--ease-out), transform var(--dur-med) var(--ease-out); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-delay: 0ms !important; transition-duration: 0.001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .tower i { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1040px) {
  .nav, .head-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 800px) {
  .hero-grid, .split { grid-template-columns: 1fr; gap: var(--space-6); }
  .hero-media { order: -1; }
  .card-grid, .quote-row, .strip { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; gap: var(--space-5); }
  .band { padding-block: var(--space-9); }
  .hero { padding-block: var(--space-7) var(--space-9); }
  .tower { left: -14px; bottom: -18px; }
  .tower i { height: 20px; }
  .tower i:nth-child(1){ width: 86px; } .tower i:nth-child(2){ width: 72px; }
  .tower i:nth-child(3){ width: 58px; } .tower i:nth-child(4){ width: 44px; } .tower i:nth-child(5){ width: 30px; }
  .page-hero img { aspect-ratio: 3 / 2; }
}
@media (min-width: 801px) and (max-width: 1040px) {
  .card-grid, .quote-row { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================================
   PATHWAY CARDS (programs) — image cards, no naked underlines
   ========================================================================== */
.pathway-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.pathway {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-1);
  text-decoration: none; color: var(--ink);
  transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out);
}
.pathway:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); }
.pathway > img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.pathway-body { padding: var(--space-5) var(--space-5) var(--space-6); display: grid; gap: 10px; }
.pathway-body h3 { font-size: 1.28rem; }
.pathway-body p { font-size: 1rem; color: var(--ink-soft); line-height: 1.5; }
.pathway .card-cta { font-family: var(--font-alt); font-weight: 600; color: var(--accent-strong); font-size: 0.95rem; margin-top: 2px; }
.pathway:hover .card-cta { text-decoration: underline; text-underline-offset: 3px; }
.pathway-grid.keyed > .pathway:nth-child(6n+1) { --key: var(--rose-inta); --key-bright: var(--rose); }
.pathway-grid.keyed > .pathway:nth-child(6n+2) { --key: var(--gold); --key-bright: var(--gold); }
.pathway-grid.keyed > .pathway:nth-child(6n+3) { --key: var(--sky-ink); --key-bright: var(--sky); }
.pathway-grid.keyed > .pathway:nth-child(6n+4) { --key: var(--cypress); --key-bright: var(--cypress); }
.pathway-grid.keyed > .pathway:nth-child(6n+5) { --key: var(--brick); --key-bright: var(--brick); }
.pathway-grid.keyed > .pathway:nth-child(6n+6) { --key: var(--sky-ink); --key-bright: var(--sky); }

/* museum shelf variant + mosaic strip link + editorial quotes */
.shelf-museum { padding-top: var(--space-2); }
.strip-mosaic { text-decoration: none; }
.quote-editorial { border: 0; box-shadow: none; background: transparent; padding: var(--space-4) 0; }
.quote-editorial blockquote { font-size: 1.06rem; }

/* section CTA row + areas chips */
.section-cta { margin-top: var(--space-7); display: flex; gap: var(--space-4); flex-wrap: wrap; }
.areas-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.areas-chips a {
  font-family: var(--font-alt); font-size: 0.92rem; font-weight: 500;
  color: var(--text-strong); text-decoration: none;
  border: 1px solid var(--line); border-radius: var(--radius-pill);
  padding: 9px 18px; background: var(--surface);
  transition: border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.areas-chips a:hover { border-color: var(--accent); color: var(--accent-strong); transform: translateY(-2px); }
.areas-chips .areas-all { background: var(--accent); border-color: var(--accent); color: var(--white); }
.areas-chips .areas-all:hover { background: var(--accent-strong); color: var(--white); }
.split-method img { aspect-ratio: 1 / 1; }

@media (max-width: 800px) { .pathway-grid { grid-template-columns: 1fr; } }
@media (min-width: 801px) and (max-width: 1040px) { .pathway-grid { grid-template-columns: 1fr 1fr; } }

/* ==========================================================================
   CINEMATIC HOME HERO — full-bleed ambient video, header floats over it
   ========================================================================== */
.hero-cinematic { position: relative; display: grid; align-items: end; min-height: min(88dvh, 860px); padding-block: 0; overflow: clip; background: var(--deep-2); }
.hero-bg { position: absolute; inset: 0; }
.hero-bg video, .hero-bg img.ambient-fallback { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(16, 28, 22, 0.9) 0%, rgba(16, 28, 22, 0.48) 46%, rgba(16, 28, 22, 0.32) 100%); }
.hero-content { position: relative; z-index: 1; width: 100%; padding-block: calc(78px + var(--space-9)) var(--space-10); }
.hero-cinematic .hero-copy { max-width: 660px; }
.hero-cinematic .kicker { color: #E8C980; }
.hero-cinematic h1 { color: var(--white); font-size: var(--fs-display); font-weight: 800; margin-bottom: var(--space-5); }
.hero-cinematic .lede { color: rgba(241, 236, 225, 0.93); max-width: 46ch; }
.trust-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin-top: var(--space-6); }
.trust-chips li { font-family: var(--font-alt); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em; color: var(--white); border: 1px solid rgba(241, 236, 225, 0.38); border-radius: var(--radius-pill); padding: 7px 16px; background: rgba(23, 53, 42, 0.35); backdrop-filter: blur(4px); }
.tower-corner { left: auto; right: var(--space-7); bottom: var(--space-7); align-items: flex-end; }
.tower-corner i { transform-origin: right; }

/* on-dark ghost button (hero, cta band) */
.btn-on-dark { border-color: rgba(241, 236, 225, 0.45); color: var(--white); }
.btn-on-dark:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.12); color: var(--white); }

/* header: fixed + transparent over the home hero, solid once scrolled */
.site-head { transition: background-color var(--dur-med) var(--ease-out), border-color var(--dur-med) var(--ease-out), backdrop-filter var(--dur-med) var(--ease-out); }
.tpl-home .site-head { position: fixed; left: 0; right: 0; }
.site-head.is-over-hero { background: transparent; border-bottom-color: transparent; backdrop-filter: none; }
.site-head.is-over-hero .brand-name, .site-head.is-over-hero .nav-item > a { color: var(--white); }
.site-head.is-over-hero .brand-name em { color: rgba(241, 236, 225, 0.75); }
.site-head.is-over-hero .nav-item > a:hover { color: #E8C980; }
.site-head.is-over-hero .nav-toggle { color: var(--white); border-color: rgba(241, 236, 225, 0.4); }
.site-head.is-over-hero .head-cta-ghost { border-color: rgba(241, 236, 225, 0.45); color: var(--white); }
.site-head.is-over-hero .btn.head-cta { background: var(--white); color: var(--accent-strong); }
.head-actions { display: flex; align-items: center; gap: var(--space-3); }
.head-cta-ghost { min-height: 46px; padding: 11px 20px; font-size: 0.95rem; }

/* stats as a raised card overlapping the hero seam */
.stats-impact { background: transparent; border: 0; padding-block: 0 var(--space-8); position: relative; z-index: 2; margin-top: -52px; }
.stats-impact .stats-row { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-2); padding: var(--space-6); }

/* affiliations strip (honest text badges, no fake logos) */
.affil { padding-block: var(--space-2) var(--space-6); }
.affil-row { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-7); align-items: center; justify-content: center; font-family: var(--font-alt); font-size: 0.88rem; color: var(--ink-soft); text-align: center; }
.affil-row b { color: var(--text-strong); font-weight: 600; }

/* dual CTA rows (cta band, mobile drawer) */
.cta-actions { display: flex; flex-wrap: wrap; gap: var(--space-4); justify-content: center; margin-top: var(--space-3); }
.drawer-actions { display: grid; gap: var(--space-3); margin-top: var(--space-5); }
.drawer-actions .drawer-cta { margin-top: 0; }
.drawer-cta-ghost { text-align: center; justify-content: center; display: flex; }

/* four-quote grid for the reviews page */
.quote-row.cols-2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 1040px) {
  .head-actions .head-cta-ghost { display: none; }
}
@media (max-width: 800px) {
  .hero-cinematic { min-height: min(92dvh, 720px); }
  .hero-content { padding-block: calc(78px + var(--space-7)) var(--space-8); }
  .tower-corner { display: none; }
  .stats-impact { margin-top: -32px; }
  .stats-impact .stats-row { padding: var(--space-5); }
  .quote-row.cols-2 { grid-template-columns: 1fr; }
}
