/* Layout concept: the four rounded "pillar" tiles of the CEF mark become the site's
   image frames and section motifs; navy ground for statements, cool paper for reading. */
:root {
  --bg: #F6F8FB;
  --surface: #FFFFFF;
  --surface-2: #EBEFF6;
  --fg: #1A2440;
  --muted: #485473;
  --line: #D9DFEA;
  --ink: #1B2F5B;          /* headings, navy panels */
  --on-ink: #F3F6FB;
  --on-ink-muted: #C3CDE2;
  --blue: #2F6FB5;
  --green: #2E7D4F;
  --coral: #C94F43;
  --amber: #E09A2D;
  --amber-text: #8F5300;
  --teal: #1F7F86;
  --plum: #6B4FA0;
  --focus: #2F6FB5;
  --shadow: 0 1px 2px rgba(27, 47, 91, .06), 0 12px 32px -12px rgba(27, 47, 91, .18);

  --font-display: "Newsreader", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-body: "Sora", "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --r-lg: 28px;
  --r-sm: 6px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0D1630; --surface: #142041; --surface-2: #19284F; --fg: #E6EBF5; --muted: #AAB5CD;
    --line: #2A3A64; --ink: #F2F5FB; --on-ink: #F2F5FB; --on-ink-muted: #B9C4DC;
    --blue: #74A6E6; --green: #62BD8A; --coral: #EF8478; --amber: #F0B357; --amber-text: #F0B357;
    --teal: #5DBDC4; --plum: #B39BE0; --focus: #9CC2F2;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 16px 36px -16px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0D1630; --surface: #142041; --surface-2: #19284F; --fg: #E6EBF5; --muted: #AAB5CD;
  --line: #2A3A64; --ink: #F2F5FB; --on-ink: #F2F5FB; --on-ink-muted: #B9C4DC;
  --blue: #74A6E6; --green: #62BD8A; --coral: #EF8478; --amber: #F0B357; --amber-text: #F0B357;
  --teal: #5DBDC4; --plum: #B39BE0; --focus: #9CC2F2;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 16px 36px -16px rgba(0,0,0,.6);
  color-scheme: dark;
}

/* Navy panels stay navy in both themes */
:root { --panel: #1B2F5B; --panel-2: #24407A; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --panel: #16264D; --panel-2: #20356A; } }
:root[data-theme="dark"] { --panel: #16264D; --panel-2: #20356A; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.7;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 8px; z-index: 100; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; color: var(--bg); }

/* ---------- Type ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); margin: 0; text-wrap: balance; font-optical-sizing: auto; }
h1 { font-size: clamp(2.6rem, 6.2vw, 4.75rem); font-weight: 650; line-height: 1.02; letter-spacing: -0.022em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 600; line-height: 1.08; letter-spacing: -0.018em; }
h3 { font-size: clamp(1.35rem, 2vw, 1.6rem); font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }
h4 { font-family: var(--font-body); font-size: 1rem; font-weight: 600; letter-spacing: 0; }
h1 em, h2 em { font-style: italic; font-weight: 500; color: var(--amber-text); }
.on-ink h1 em, .on-ink h2 em { color: var(--amber); }
p { margin: 0; max-width: 66ch; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.28rem); line-height: 1.6; color: var(--muted); max-width: 60ch; }
.eyebrow { font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--amber-text); display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 26px; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--blue) 0 25%, var(--green) 25% 50%, var(--coral) 50% 75%, var(--amber) 75%); }
.on-ink .eyebrow { color: var(--amber); }
.stack { display: flex; flex-direction: column; gap: 18px; }
.stack-lg { display: flex; flex-direction: column; gap: 28px; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 120px); }
.section-tight { padding-block: clamp(48px, 6vw, 80px); }
.alt { background: var(--surface-2); }
.on-ink { background: var(--panel); color: var(--on-ink-muted); }
.on-ink h1, .on-ink h2, .on-ink h3 { color: var(--on-ink); }
.on-ink .lede { color: var(--on-ink-muted); }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 6vw, 80px); align-items: center; }
.split > * { min-width: 0; }
.split-6040 { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.section-head { display: flex; flex-direction: column; gap: 16px; margin-bottom: clamp(36px, 5vw, 56px); max-width: 760px; }
.section-head.center { margin-inline: auto; text-align: center; align-items: center; }
.section-head.center p { margin-inline: auto; }
@media (max-width: 900px) {
  .split, .split-6040 { grid-template-columns: minmax(0, 1fr); }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) { .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Pillar frames (from the logo tiles) ---------- */
.pillar { border-radius: var(--r-lg); overflow: hidden; background: var(--surface-2); }
.pillar.tl { border-radius: var(--r-lg) var(--r-lg) var(--r-sm) var(--r-lg); }
.pillar.tr { border-radius: var(--r-lg) var(--r-lg) var(--r-lg) var(--r-sm); }
.pillar.bl { border-radius: var(--r-lg) var(--r-sm) var(--r-lg) var(--r-lg); }
.pillar.br { border-radius: var(--r-sm) var(--r-lg) var(--r-lg) var(--r-lg); }
.pillar img { width: 100%; height: 100%; object-fit: cover; }
.frame-wide { aspect-ratio: 3 / 2; max-width: 100%; }
.frame-tall { aspect-ratio: 4 / 5; max-width: 100%; }

/* ---------- Header / nav ---------- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand svg { width: 42px; height: 42px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-family: var(--font-body); font-size: 1rem; font-weight: 700; letter-spacing: -0.01em; }
.brand-text span { font-size: .62rem; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; list-style: none; padding: 0; margin-block: 0; }
.nav-links > li { position: relative; }
.nav-links a, .nav-drop-btn { font: inherit; font-size: .92rem; font-weight: 500; color: var(--fg); text-decoration: none; padding: 10px 12px; border-radius: 10px; display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; cursor: pointer; line-height: 1.2; }
.nav-links a:hover, .nav-drop-btn:hover { background: var(--surface-2); color: var(--ink); }
.nav-links a[aria-current="page"], .nav-drop-btn.is-current { color: var(--ink); font-weight: 600; box-shadow: inset 0 -2px 0 var(--amber); border-radius: 10px 10px 0 0; }
.nav-drop-btn svg { width: 14px; height: 14px; transition: transform .2s ease; }
.nav-drop-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.dropdown { position: absolute; top: calc(100% + 8px); left: -8px; min-width: 260px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 8px; list-style: none; margin: 0; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s ease, transform .18s ease, visibility .18s; }
.dropdown.open { opacity: 1; visibility: visible; transform: none; }
.dropdown a { display: flex; justify-content: space-between; width: 100%; padding: 11px 14px; border-radius: 12px; }
.dropdown a[aria-current="page"] { box-shadow: none; background: var(--surface-2); }
.soon { font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--amber-text); background: color-mix(in srgb, var(--amber) 18%, transparent); padding: 3px 8px; border-radius: 999px; align-self: center; }
.nav-cta { margin-left: 8px; }
.nav-toggle { display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav-menu { position: fixed; inset: calc(76px + env(safe-area-inset-top, 0px)) 0 0 0; background: var(--bg); padding: 16px var(--gutter) calc(32px + env(safe-area-inset-bottom, 0px)); overflow-y: auto; display: none; }
  .nav-menu.open { display: block; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 2px; margin: 0; }
  .nav-links a, .nav-drop-btn { font-size: 1.08rem; padding: 14px 12px; width: 100%; justify-content: space-between; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: var(--surface-2); padding: 6px; margin: 4px 0 8px; display: none; min-width: 0; }
  .dropdown.open { display: block; }
  .nav-cta { margin: 16px 0 0; width: 100%; justify-content: center; }
  .nav-links a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--amber); border-radius: 10px; }
}
@media (min-width: 901px) { .nav-menu { display: flex; align-items: center; margin-left: auto; order: 2; } .lang-switch { order: 3; } .nav { gap: 16px; } .nav-links a, .nav-drop-btn { padding-inline: 9px; font-size: .88rem; white-space: nowrap; } .nav-links a.nav-cta { padding: 11px 18px; min-height: 0; } }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--font-body); font-weight: 600; font-size: .98rem; line-height: 1.2; padding: 15px 24px; border-radius: 999px; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease, color .2s ease; min-height: 48px; }
.btn svg { width: 18px; height: 18px; transition: transform .2s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--amber); color: #1B2F5B; }
.btn-primary:hover { background: #F2B04A; color: #1B2F5B; transform: translateY(-1px); box-shadow: 0 10px 24px -10px rgba(224, 154, 45, .7); }
.btn-ink { background: var(--panel); color: #F3F6FB; }
.btn-ink:hover { background: var(--panel-2); color: #F3F6FB; transform: translateY(-1px); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.on-ink .btn-ghost, .cta-band .btn-ghost { border-color: rgba(255,255,255,.35); color: var(--on-ink); }
.on-ink .btn-ghost:hover, .cta-band .btn-ghost:hover { border-color: var(--on-ink); color: var(--on-ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.text-link { font-weight: 600; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; border-bottom: 2px solid var(--amber); padding-bottom: 2px; }
.text-link svg { width: 16px; height: 16px; transition: transform .2s; }
.text-link:hover svg { transform: translateX(3px); }

/* ---------- Home hero ---------- */
.hero { padding-block: clamp(40px, 6vw, 88px) clamp(56px, 8vw, 104px); position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-grid > * { min-width: 0; }
.hero-copy { display: flex; flex-direction: column; gap: 26px; }
.hero-mosaic { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; max-width: 560px; justify-self: end; width: 100%; }
.hero-mosaic .pillar { aspect-ratio: 1 / 1; }
.hero-mosaic .pillar:nth-child(1) { box-shadow: inset 0 0 0 0 var(--blue); }
.hero-dot { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--panel); border: 7px solid var(--bg); z-index: 2; }
.hero-chips { position: absolute; inset: 0; pointer-events: none; }
.chip { position: absolute; display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 600; color: #fff; padding: 8px 13px; border-radius: 999px; box-shadow: var(--shadow); }
.chip svg { width: 16px; height: 16px; }
.chip.c1 { left: -8px; top: 8%; background: #2F6FB5; }
.chip.c2 { right: -8px; top: 30%; background: #2E7D4F; }
.chip.c3 { left: 4%; bottom: 30%; background: #C94F43; }
.chip.c4 { right: 6%; bottom: 4%; background: #9A5B00; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 28px; padding-top: 8px; border-top: 1px solid var(--line); margin-top: 6px; }
.hero-meta div { display: flex; flex-direction: column; }
.hero-meta strong { font-family: var(--font-display); font-size: 2rem; font-weight: 600; color: var(--ink); line-height: 1.1; font-variant-numeric: tabular-nums; }
.hero-meta span { font-size: .84rem; color: var(--muted); }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-mosaic { justify-self: center; max-width: 520px; }
  .chip.c1 { left: 4px; } .chip.c2 { right: 4px; }
}

/* page-load sequence: tiles assemble like the logo */
@media (prefers-reduced-motion: no-preference) {
  .hero-mosaic .pillar { animation: tile-in .9s cubic-bezier(.2, .8, .2, 1) both; }
  .hero-mosaic .pillar:nth-child(1) { --dx: -18px; --dy: -18px; animation-delay: .05s; }
  .hero-mosaic .pillar:nth-child(2) { --dx: 18px; --dy: -18px; animation-delay: .15s; }
  .hero-mosaic .pillar:nth-child(3) { --dx: -18px; --dy: 18px; animation-delay: .25s; }
  .hero-mosaic .pillar:nth-child(4) { --dx: 18px; --dy: 18px; animation-delay: .35s; }
  .hero-dot { animation: dot-in .6s cubic-bezier(.2, .8, .2, 1) .6s both; }
  .chip { animation: chip-in .6s ease both; }
  .chip.c1 { animation-delay: .8s; } .chip.c2 { animation-delay: .95s; } .chip.c3 { animation-delay: 1.1s; } .chip.c4 { animation-delay: 1.25s; }
  .hero-copy > * { animation: rise .8s cubic-bezier(.2, .8, .2, 1) both; }
  .hero-copy > *:nth-child(2) { animation-delay: .08s; } .hero-copy > *:nth-child(3) { animation-delay: .16s; } .hero-copy > *:nth-child(4) { animation-delay: .24s; } .hero-copy > *:nth-child(5) { animation-delay: .32s; }
  .page-hero .stack > * { animation: rise .7s cubic-bezier(.2, .8, .2, 1) both; }
  .page-hero .stack > *:nth-child(2) { animation-delay: .07s; } .page-hero .stack > *:nth-child(3) { animation-delay: .14s; }
}
@keyframes tile-in { from { transform: translate(var(--dx), var(--dy)) scale(.94); opacity: .4; } to { transform: none; opacity: 1; } }
@keyframes dot-in { from { transform: translate(-50%, -50%) scale(.3); } to { transform: translate(-50%, -50%) scale(1); } }
@keyframes chip-in { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes rise { from { transform: translateY(14px); opacity: .01; } to { transform: none; opacity: 1; } }

/* scroll reveal: applied by JS only to elements below the fold at load */
.reveal-armed { opacity: 0; transform: translateY(22px); }
.reveal-armed.revealed { opacity: 1; transform: none; transition: opacity .8s cubic-bezier(.2, .8, .2, 1), transform .8s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--d, 0s); }

/* ---------- Inner page hero ---------- */
.page-hero { padding-block: clamp(48px, 7vw, 96px) clamp(48px, 6vw, 80px); background: var(--surface-2); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.page-hero .wrap { position: relative; }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.page-hero-grid > * { min-width: 0; }
.crumbs { font-size: .84rem; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); }
.page-hero .pillar { aspect-ratio: 5 / 4; box-shadow: var(--shadow); }
.hero-tiles { position: absolute; right: -40px; top: -40px; width: 240px; height: 240px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; opacity: .14; pointer-events: none; }
.hero-tiles span:nth-child(1) { background: var(--blue); border-radius: 40px 40px 8px 40px; }
.hero-tiles span:nth-child(2) { background: var(--green); border-radius: 40px 40px 40px 8px; }
.hero-tiles span:nth-child(3) { background: var(--coral); border-radius: 40px 8px 40px 40px; }
.hero-tiles span:nth-child(4) { background: var(--amber); border-radius: 8px 40px 40px 40px; }
@media (max-width: 900px) { .page-hero-grid { grid-template-columns: minmax(0, 1fr); } .hero-tiles { display: none; } }

/* ---------- Cards & components ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 28px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.card p { color: var(--muted); font-size: .98rem; }
.card-link { text-decoration: none; color: inherit; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.card-link:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; color: inherit; }
.card-link .text-link { margin-top: auto; }
.icon-tile { width: 56px; height: 56px; border-radius: 16px 16px 4px 16px; display: grid; place-items: center; color: #fff; flex: none; }
.icon-tile svg { width: 28px; height: 28px; }
.c-blue { background: #2F6FB5; } .c-green { background: #2E7D4F; } .c-coral { background: #C94F43; } .c-amber { background: #B9781A; } .c-teal { background: #1F7F86; } .c-plum { background: #6B4FA0; } .c-navy { background: #1B2F5B; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .c-navy { background: #3A5596; } }
:root[data-theme="dark"] .c-navy { background: #3A5596; }

.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stat { background: var(--panel-2); border-radius: 22px; padding: 26px 24px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.stat strong { font-family: var(--font-display); font-size: clamp(2.6rem, 5vw, 3.8rem); font-weight: 600; line-height: 1; color: var(--amber); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.stat span { color: var(--on-ink-muted); font-size: .95rem; }
.stat.wide { grid-column: span 2; }
.stat-note { font-size: .84rem; color: var(--on-ink-muted); margin-top: 18px; }
@media (max-width: 900px) { .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .stat.wide { grid-column: span 2; } }

.quote { font-family: var(--font-display); font-size: clamp(1.7rem, 3.6vw, 2.7rem); font-weight: 500; font-style: italic; line-height: 1.22; color: var(--ink); letter-spacing: -0.01em; max-width: 30ch; text-wrap: balance; }
.on-ink .quote { color: var(--on-ink); }
.quote-by { font-size: .9rem; color: var(--muted); font-weight: 500; }
.on-ink .quote-by { color: var(--on-ink-muted); }
.quote-mark { width: 48px; height: 48px; color: var(--amber); }

.check-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.check-list li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; align-items: start; }
.check-list svg { width: 22px; height: 22px; color: var(--green); margin-top: 3px; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; counter-reset: step; position: relative; }
.steps li { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 26px 22px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.steps .num { font-family: var(--font-display); font-size: 2.6rem; line-height: 1; font-weight: 600; color: var(--line); }
.steps h3 { font-size: 1.3rem; }
.steps p { font-size: .94rem; color: var(--muted); }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: minmax(0, 1fr); } }

.principles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.principle { border-top: 6px solid var(--c); background: var(--surface); border-radius: 6px 6px 22px 22px; padding: 26px 22px; display: flex; flex-direction: column; gap: 10px; border-inline: 1px solid var(--line); border-bottom: 1px solid var(--line); min-width: 0; }
.principle h3 { font-size: 1.25rem; }
.principle p { font-size: .94rem; color: var(--muted); }
@media (max-width: 1000px) { .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .principles { grid-template-columns: minmax(0, 1fr); } }

.band { border-radius: var(--r-lg); padding: clamp(32px, 5vw, 64px); }
.cta-band { background: var(--panel); color: var(--on-ink-muted); display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px; align-items: center; position: relative; overflow: hidden; }
.cta-band h2 { color: var(--on-ink); }
.cta-band .btn-row { justify-content: flex-end; }
@media (max-width: 900px) { .cta-band { grid-template-columns: minmax(0, 1fr); } .cta-band .btn-row { justify-content: flex-start; } }

.ways { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.way { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform .25s ease, box-shadow .25s ease; }
.way:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: inherit; }
.way-top { height: 120px; display: grid; place-items: center; color: #fff; }
.way-top svg { width: 52px; height: 52px; }
.way-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.way-body p { color: var(--muted); font-size: .96rem; }
.way-body .text-link { margin-top: auto; align-self: flex-start; }
@media (max-width: 1100px) { .ways { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .ways { grid-template-columns: minmax(0, 1fr); } }

/* programs */
.prog-nav { display: flex; flex-wrap: wrap; gap: 10px; }
.prog-nav a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line); padding: 9px 14px; border-radius: 999px; font-size: .88rem; font-weight: 500; }
.prog-nav a:hover { border-color: var(--ink); }
.prog-nav i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.program { scroll-margin-top: 100px; padding-block: clamp(56px, 7vw, 96px); border-top: 1px solid var(--line); }
.program:first-of-type { border-top: 0; }
.program .split { align-items: center; }
.program.flip .split > :first-child { order: 2; }
@media (max-width: 900px) { .program.flip .split > :first-child { order: 0; } }
.prog-label { display: inline-flex; align-items: center; gap: 12px; }
.prog-label .icon-tile { width: 48px; height: 48px; }
.prog-label .icon-tile svg { width: 24px; height: 24px; }
.prog-num { font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

/* model hub */
.hub { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; position: relative; }
.hub-node { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px; display: flex; align-items: center; gap: 14px; min-width: 0; }
.hub-node h3 { font-size: 1.12rem; font-family: var(--font-body); font-weight: 600; }
.hub-centre { grid-column: 1 / -1; background: var(--panel); color: var(--on-ink); border-radius: 26px; padding: 28px; display: flex; align-items: center; justify-content: center; gap: 18px; text-align: center; flex-wrap: wrap; }
.hub-centre h3 { color: var(--on-ink); font-size: clamp(1.5rem, 3vw, 2rem); }
.hub-centre svg { width: 44px; height: 44px; color: var(--amber); }
@media (max-width: 760px) { .hub { grid-template-columns: minmax(0, 1fr); } }

.phases { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: end; }
.phase { border-radius: 22px 22px 6px 6px; padding: 24px; color: #fff; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.phase small { font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.phase h3 { color: #fff; font-size: 1.3rem; }
.phase p { color: rgba(255,255,255,.92); font-size: .92rem; }
.phase:nth-child(1) { min-height: 230px; } .phase:nth-child(2) { min-height: 270px; } .phase:nth-child(3) { min-height: 310px; } .phase:nth-child(4) { min-height: 350px; }
@media (max-width: 900px) { .phases { grid-template-columns: repeat(2, minmax(0, 1fr)); } .phase { min-height: 0 !important; } }
@media (max-width: 520px) { .phases { grid-template-columns: minmax(0, 1fr); } }
.phase-rule { height: 4px; border-radius: 2px; background: var(--ink); margin-top: 12px; }
.phase-caption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: .86rem; color: var(--muted); margin-top: 10px; }

.pathways { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 24px; align-items: center; }
.path-start { background: var(--panel); color: var(--on-ink-muted); border-radius: 26px; padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.path-start h3 { color: var(--on-ink); }
.path-list { display: grid; gap: 12px; }
.path-item { display: flex; gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; }
.path-item strong { display: block; color: var(--ink); }
.path-item span { color: var(--muted); font-size: .92rem; }
@media (max-width: 900px) { .pathways { grid-template-columns: minmax(0, 1fr); } }

/* gallery */
.mosaic { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 200px; gap: 14px; }
.mosaic .pillar:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.mosaic .pillar:nth-child(4) { grid-column: span 2; }
@media (max-width: 760px) { .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 160px; } .mosaic .pillar:nth-child(4) { grid-column: span 2; } }

/* forms */
.form { display: grid; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 600px) { .field-row { grid-template-columns: minmax(0, 1fr); } }
label { font-size: .9rem; font-weight: 600; color: var(--ink); }
.req { color: var(--coral); }
input, select, textarea { font: inherit; font-size: 1rem; color: var(--fg); background: var(--surface); border: 1.5px solid var(--line); border-radius: 14px; padding: 13px 15px; width: 100%; min-height: 50px; transition: border-color .2s, box-shadow .2s; }
textarea { min-height: 150px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 20%, transparent); }
[aria-invalid="true"] { border-color: var(--coral); }
.field-error { font-size: .84rem; color: var(--coral); min-height: 1em; }
.form-status { border-radius: 16px; padding: 16px 18px; font-size: .95rem; display: flex; flex-direction: column; gap: 10px; }
.form-status.info { background: color-mix(in srgb, var(--blue) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--blue) 35%, transparent); color: var(--fg); }
.form-status.ok { background: color-mix(in srgb, var(--green) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--green) 35%, transparent); color: var(--fg); }
.form-status.err { background: color-mix(in srgb, var(--coral) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--coral) 35%, transparent); color: var(--fg); }
.form-status pre { white-space: pre-wrap; font-family: inherit; font-size: .9rem; background: var(--surface); border-radius: 10px; padding: 12px; margin: 0; max-height: 220px; overflow: auto; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 14px; align-items: center; }
.contact-list strong { display: block; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.contact-list span, .contact-list a { color: var(--ink); font-weight: 500; overflow-wrap: anywhere; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }
.contact-list li > div { min-width: 0; }
.badge { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; background: color-mix(in srgb, var(--amber) 20%, transparent); color: var(--amber-text); align-self: flex-start; }
.portal-card { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 20px; }
.portal-card .lock { width: 56px; height: 56px; border-radius: 16px 16px 4px 16px; background: var(--panel); color: var(--amber); display: grid; place-items: center; }
.portal-card .lock svg { width: 28px; height: 28px; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.placeholder { background: color-mix(in srgb, var(--amber) 16%, transparent); border-radius: 6px; padding: 0 6px; font-weight: 500; }

table.options { width: 100%; border-collapse: collapse; font-size: .96rem; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
table.options th, table.options td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.options th { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); }
table.options tr:last-child td { border-bottom: 0; }
table.options td:first-child { font-weight: 600; color: var(--ink); }

/* footer */
.site-footer { background: var(--panel); color: var(--on-ink-muted); padding-block: 72px calc(32px + env(safe-area-inset-bottom, 0px)); font-size: .95rem; }
.site-footer a { color: var(--on-ink-muted); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer-grid h4 { color: #fff; margin-bottom: 14px; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-grid li { overflow-wrap: anywhere; }
.footer-brand { display: flex; flex-direction: column; gap: 16px; }
.footer-brand .brand { color: #fff; }
.footer-brand .brand-text span { color: var(--on-ink-muted); }
.footer-tag { font-family: var(--font-display); font-style: italic; font-size: 1.25rem; color: #fff; line-height: 1.35; max-width: 28ch; }
.footer-base { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.14); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .84rem; }
.seg { display: flex; gap: 6px; }
.seg i { width: 22px; height: 5px; border-radius: 3px; display: block; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }

.coming { min-height: 0; display: grid; place-items: center; text-align: center; }
.coming-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 120px; margin-inline: auto; }
.coming-tiles span { aspect-ratio: 1; }
@media (prefers-reduced-motion: no-preference) {
  .coming-tiles span { animation: breathe 2.8s ease-in-out infinite; }
  .coming-tiles span:nth-child(2) { animation-delay: .35s; } .coming-tiles span:nth-child(4) { animation-delay: .7s; } .coming-tiles span:nth-child(3) { animation-delay: 1.05s; }
}
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(.88); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal-armed { opacity: 1; transform: none; }
}

/* ---------- Language switch ---------- */
.lang-switch { display: inline-flex; align-items: center; gap: 2px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); flex: none; }
.lang-switch svg { width: 18px; height: 18px; color: var(--muted); margin: 0 4px 0 6px; }
.lang-switch a, .lang-switch .lang-cur { font-size: .8rem; font-weight: 700; letter-spacing: .06em; padding: 7px 11px; border-radius: 999px; line-height: 1; text-decoration: none; min-width: 40px; text-align: center; }
.lang-switch .lang-cur { background: var(--ink); color: var(--bg); }
.lang-switch a { color: var(--fg); }
.lang-switch a:hover { background: var(--surface-2); color: var(--ink); }
@media (max-width: 900px) { .lang-switch { margin-left: auto; } .nav-toggle { margin-left: 8px; } }
@media (max-width: 420px) { .lang-switch svg { display: none; } .lang-switch a, .lang-switch .lang-cur { min-width: 36px; padding: 8px 9px; } .brand-text strong { font-size: .92rem; } .brand svg { width: 38px; height: 38px; } .nav { gap: 10px; } }

/* ---------- Founder page ---------- */
.founder-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.founder-grid > * { min-width: 0; }
.founder-role { font-size: clamp(1.02rem, 1.6vw, 1.2rem); font-weight: 600; color: var(--ink); line-height: 1.5; }
.founder-role span { color: var(--amber); margin-inline: 6px; }
.portrait { border-radius: var(--r-lg) var(--r-lg) var(--r-lg) var(--r-sm); overflow: hidden; aspect-ratio: 4 / 5; background: var(--surface-2); box-shadow: var(--shadow); position: relative; }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.founder-photo { position: relative; max-width: 420px; justify-self: end; width: 100%; }
.founder-photo::before { content: ""; position: absolute; inset: auto -14px -14px auto; width: 46%; height: 46%; background: var(--amber); border-radius: var(--r-lg) var(--r-sm) var(--r-lg) var(--r-lg); z-index: -1; }
.founder-hero { isolation: isolate; }
.founder-body { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.founder-aside { position: sticky; top: 104px; }
.prose { display: flex; flex-direction: column; gap: 20px; max-width: 70ch; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.25; }
.prose .muted-h { color: var(--muted); font-weight: 500; }
.prose p { font-size: 1.06rem; line-height: 1.75; }
.prose p:first-of-type::first-letter { font-family: var(--font-display); font-size: 3.4em; float: left; line-height: .9; margin: 6px 10px 0 0; color: var(--blue); font-weight: 600; }
@media (max-width: 900px) {
  .founder-grid { grid-template-columns: minmax(0, 1fr); }
  .founder-photo { justify-self: start; max-width: 360px; }
  .founder-body { grid-template-columns: minmax(0, 1fr); }
  .founder-aside { position: static; order: 2; }
}
@media (max-width: 560px) { .founder-photo { max-width: 100%; } .founder-photo::before { inset: auto -8px -8px auto; } .prose p { font-size: 1rem; } }

/* ---------- Visit page ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 760px) { .grid-2 { grid-template-columns: minmax(0, 1fr); } }
.visit-type h3 { font-size: 1.5rem; }
.steps-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .steps-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps-4 { grid-template-columns: minmax(0, 1fr); } }
fieldset.field { border: 0; padding: 0; margin: 0; }
legend { font-size: .9rem; font-weight: 600; color: var(--ink); margin-bottom: 8px; padding: 0; }
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 600px) { .choices { grid-template-columns: minmax(0, 1fr); } }
.choice { display: flex; gap: 12px; align-items: flex-start; border: 1.5px solid var(--line); border-radius: 16px; padding: 14px 16px; cursor: pointer; background: var(--surface); font-weight: 400; transition: border-color .2s, background .2s; }
.choice:has(input:checked) { border-color: var(--blue); background: color-mix(in srgb, var(--blue) 8%, var(--surface)); }
.choice input, .check input { width: 20px; height: 20px; min-height: 0; padding: 0; margin: 2px 0 0; flex: none; accent-color: var(--blue); }
.choice span { display: flex; flex-direction: column; gap: 3px; }
.choice strong { color: var(--ink); font-size: .98rem; }
.choice small { color: var(--muted); font-size: .86rem; }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; font-size: .94rem; cursor: pointer; }
.choice-group[aria-invalid="true"] .choice { border-color: var(--coral); }
input[type="date"] { min-height: 50px; }
a[href^="mailto:"] { overflow-wrap: anywhere; word-break: break-word; }
.nav-links a.btn-primary { background: var(--amber); color: #1B2F5B; }
.nav-links a.btn-primary:hover { background: #F2B04A; color: #1B2F5B; }
.nav-links a.btn-primary[aria-current="page"] { box-shadow: 0 0 0 3px color-mix(in srgb, var(--amber) 35%, transparent); border-radius: 999px; }

/* ---------- Buttons stay on one line and sit side by side on computers ---------- */
@media (min-width: 561px) { .btn { white-space: nowrap; } }
.cta-band { grid-template-columns: minmax(0, 1fr) auto; }
.cta-band .btn-row { flex-wrap: nowrap; }
@media (max-width: 1100px) {
  .cta-band { grid-template-columns: minmax(0, 1fr); }
  .cta-band .btn-row { justify-content: flex-start; flex-wrap: wrap; }
}
@media (min-width: 901px) and (max-width: 1280px) {
  .btn { padding: 13px 20px; font-size: .94rem; }
}
@media (min-width: 1060px) and (max-width: 1280px) { .hero .btn-row, .page-hero .btn-row { flex-wrap: nowrap; } }

/* ---------- Full menu lined up on laptops and smaller computer screens ---------- */
@media (min-width: 901px) and (max-width: 1280px) {
  .nav { gap: 10px; }
  .nav-links { gap: 0; }
  .nav-links a, .nav-drop-btn { font-size: .8rem; padding-inline: 7px; }
  .nav-drop-btn svg { width: 12px; height: 12px; }
  .nav-links a.nav-cta { padding: 9px 14px; margin-left: 4px; }
  .lang-switch svg { display: none; }
  .lang-switch a, .lang-switch .lang-cur { min-width: 34px; padding: 7px 8px; }
  .brand svg { width: 38px; height: 38px; }
  .brand-text strong { font-size: .9rem; }
}
@media (min-width: 901px) and (max-width: 1140px) { .brand-text { display: none; } }
