/* ==========================================================================
   The Akoury Institute: "The Institute Prospectus"
   An academic-prospectus / medical-journal identity: chapters in Roman
   numerals, photographs as numbered plates, asymmetric editorial grids,
   hairline rules, a dictionary entry, a CV page and an enrollment slip.
   Palette (approved logo package): Midnight Navy #0B132B, Warm Gold #C5A059,
   warm ivory paper. Type: Instrument Serif (display), Newsreader (text),
   Hanken Grotesk (interface).
   ========================================================================== */

:root {
  --navy: #0b132b;
  --navy-deep: #070d1f;
  --navy-2: #121b38;
  --ivory: #f5f0e6;
  --paper: #fbf8f1;
  --paper-2: #eee7d8;
  --gold: #c5a059;
  --gold-light: #dcc28c;
  --gold-ink: #7a5a1c;          /* gold for text on light (AA) */
  --ink: #141a2b;
  --ink-2: #444a5c;
  --on-navy: #d9d4c8;
  --on-navy-2: #a9a499;
  --rule: #d8cdb6;
  --rule-navy: rgba(197, 160, 89, 0.28);
  --error: #9f2a1e;

  --display: "Playfair Display", Georgia, "Times New Roman", serif;
  --text: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ui: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1280px;
  --gutter: clamp(20px, 4.5vw, 64px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--ivory); color: var(--ink); font: 400 1.0625rem/1.65 var(--ui); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
main { flex: 1 0 auto; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
::selection { background: var(--gold); color: var(--navy); }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; line-height: 0.98; letter-spacing: -0.01em; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; }
em, .it { font-style: italic; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; position: relative; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -80px; z-index: 300; background: var(--gold); color: var(--navy); padding: 10px 16px; font-weight: 700; }
.skip-link:focus { top: 12px; }

.on-navy { background: var(--navy); color: var(--on-navy); }
.on-navy h1, .on-navy h2, .on-navy h3 { color: var(--ivory); }
.bg-deep { background: var(--navy-deep); }
.bg-paper { background: var(--paper); }
.bg-paper-2 { background: var(--paper-2); }

/* ---------- Editorial primitives ---------- */
/* Chapter label: "II: The flagship program" with a hairline running to the edge */
.chapter { display: flex; align-items: baseline; gap: 14px; margin: 0 0 clamp(28px, 4vw, 44px); font: 600 0.72rem/1 var(--ui); letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-ink); }
.chapter .rn { font: italic 400 1.5rem/1 var(--display); letter-spacing: 0; text-transform: none; color: var(--gold-ink); }
.chapter::after { content: ""; flex: 1; height: 1px; background: var(--rule); transform: translateY(-4px); }
.on-navy .chapter, .on-navy .chapter .rn { color: var(--gold); }
.on-navy .chapter::after { background: var(--rule-navy); }

.lede { font: 400 clamp(1.2rem, 1.7vw, 1.45rem)/1.55 var(--text); color: var(--ink-2); }
.on-navy .lede { color: var(--on-navy); }
.prose { font: 400 1.15rem/1.7 var(--text); color: var(--ink-2); }
.on-navy .prose { color: var(--on-navy); }
.dropcap::first-letter { float: left; font: 400 5.2em/0.8 var(--display); color: var(--gold-ink); padding: 0.06em 0.1em 0 0; }
.gold { color: var(--gold-ink); }
.on-navy .gold { color: var(--gold-light); }
.smallcaps { font: 600 0.7rem/1.4 var(--ui); letter-spacing: 0.2em; text-transform: uppercase; }

.section { padding-block: clamp(84px, 11vw, 150px); position: relative; }
.grid-12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2.4vw, 32px); }

/* ---------- Links & buttons ---------- */
.btn { --bg: var(--navy); --fg: var(--ivory); display: inline-flex; align-items: center; gap: 14px; min-height: 54px; padding: 0 28px; background: var(--bg); color: var(--fg); border: 1px solid var(--bg); border-radius: 0; font: 600 0.82rem/1 var(--ui); letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease); }
.btn .arrow { transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(5px); }
.btn:hover { --bg: var(--navy-2); }
.btn-gold { --bg: var(--gold); --fg: var(--navy); }
.btn-gold:hover { --bg: var(--gold-light); }
.btn-line { --bg: transparent; --fg: var(--ink); border-color: var(--ink); }
.btn-line:hover { --bg: var(--ink); --fg: var(--ivory); }
.on-navy .btn-line { --fg: var(--ivory); border-color: rgba(245, 240, 230, 0.5); }
.on-navy .btn-line:hover { --bg: var(--ivory); --fg: var(--navy); border-color: var(--ivory); }
.btn[disabled] { opacity: .6; cursor: progress; }
.tlink { font: 600 0.82rem/1 var(--ui); letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; padding-bottom: 6px; border-bottom: 1px solid currentColor; display: inline-flex; gap: 10px; }
.tlink:hover { color: var(--gold-ink); }
.on-navy .tlink:hover { color: var(--gold-light); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; }

/* ---------- Header ---------- */
.topbar { display: none; }
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(245, 240, 230, 0.95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 80px; }
.brand { display: block; flex: none; }
.brand img { height: 46px; width: auto; }
.site-nav { display: flex; align-items: center; gap: clamp(22px, 2.8vw, 44px); }
.nav-list { display: flex; gap: clamp(20px, 2.6vw, 38px); list-style: none; margin: 0; padding: 0; }
.nav-list a { font: 500 0.78rem/1 var(--ui); letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; color: var(--ink); padding: 8px 0; position: relative; white-space: nowrap; }
.nav-list a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--gold-ink); transition: right .45s var(--ease); }
.nav-list a:hover::after, .nav-list a[aria-current="page"]::after { right: 0; }
.site-nav .btn { min-height: 44px; padding: 0 20px; font-size: 0.74rem; }
.nav-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--rule); background: transparent; cursor: pointer; place-items: center; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 18px; height: 1.5px; background: var(--navy); position: relative; transition: transform .35s var(--ease), background-color .2s; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; } .nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 1020px) {
  .nav-toggle { display: grid; }
  .site-header .wrap { height: 70px; }
  .brand img { height: 36px; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--ivory); border-bottom: 1px solid var(--rule); padding: 8px var(--gutter) 28px; display: none; }
  .site-nav.is-open { display: flex; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list li { border-bottom: 1px solid var(--rule); }
  .nav-list a { display: block; padding: 18px 0; font: 400 1.6rem/1 var(--display); letter-spacing: 0; text-transform: none; }
  .nav-list a::after { display: none; }
  .site-nav .btn { margin-top: 22px; justify-content: center; }
}

/* ---------- Chapter index rail (desktop) ---------- */
.rail { position: fixed; left: 22px; top: 50%; transform: translateY(-50%); z-index: 50; list-style: none; margin: 0; padding: 0; display: none; }
.rail li { margin: 6px 0; }
.rail a { display: flex; align-items: center; gap: 10px; text-decoration: none; font: italic 400 1rem/1 var(--display); color: rgba(20, 26, 43, 0.35); transition: color .3s var(--ease); }
.rail a span { font: 600 0.6rem/1 var(--ui); letter-spacing: 0.16em; text-transform: uppercase; opacity: 0; transform: translateX(-4px); transition: opacity .3s var(--ease), transform .3s var(--ease); white-space: nowrap; }
.rail a:hover span, .rail a.is-active span { opacity: 1; transform: none; }
.rail a.is-active { color: var(--gold-ink); }
.rail.on-dark a { color: rgba(245, 240, 230, 0.35); }
.rail.on-dark a.is-active { color: var(--gold-light); }
@media (min-width: 1440px) { .rail { display: block; } }

/* ---------- Cover (home hero) ---------- */
.cover { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); min-height: calc(100vh - 80px); max-height: 980px; }
.cover-text { background: var(--navy); color: var(--on-navy); padding: clamp(40px, 6vw, 88px) clamp(24px, 5vw, 80px) clamp(36px, 4vw, 56px) max(var(--gutter), calc((100vw - var(--wrap)) / 2)); display: flex; flex-direction: column; justify-content: space-between; gap: 40px; position: relative; overflow: hidden; }
.cover-meta { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-bottom: 1px solid var(--rule-navy); padding-bottom: 16px; color: var(--gold); }
.cover-meta span:last-child { color: var(--on-navy-2); }
.cover h1 { font-size: clamp(3.2rem, 6.6vw, 6.6rem); line-height: 0.93; color: var(--ivory); }
.cover h1 .line { display: block; overflow: hidden; padding-bottom: 0.04em; }
.cover h1 .line > span { display: inline-block; }
.cover h1 em { color: var(--gold-light); }
.cover .lede { max-width: 32rem; margin: 30px 0 0; }
.cover .actions { margin-top: 34px; }
.cover-foot { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--rule-navy); padding-top: 16px; }
.cover-foot .pillars { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; margin: 0; padding: 0; color: var(--on-navy); }
.cover-foot .pillars li::before { content: attr(data-n) " "; font: italic 400 1rem/1 var(--display); color: var(--gold); margin-right: 4px; letter-spacing: 0; }
.cover-plate { position: relative; margin: 0; background: var(--navy-deep); overflow: hidden; }
.cover-plate .slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.6s var(--ease); }
.cover-plate .slide.is-active { opacity: 1; }
.cover-plate figcaption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; justify-content: space-between; align-items: end; gap: 12px; padding: 60px 28px 22px; background: linear-gradient(0deg, rgba(7, 13, 31, 0.85), rgba(7, 13, 31, 0)); color: var(--ivory); }
.cover-plate .plate-no { font: italic 400 1.1rem/1 var(--display); color: var(--gold-light); }
.cover-plate .plate-cap { font: 600 0.7rem/1.4 var(--ui); letter-spacing: 0.16em; text-transform: uppercase; text-align: right; }
.slide-dots { display: flex; gap: 6px; }
.slide-dots i { width: 18px; height: 2px; background: rgba(245, 240, 230, 0.35); transition: background-color .6s var(--ease); }
.slide-dots i.on { background: var(--gold); }
@media (max-width: 960px) {
  .cover { grid-template-columns: 1fr; min-height: 0; max-height: none; }
  .cover-text { padding-left: var(--gutter); padding-right: var(--gutter); }
  .cover-plate { aspect-ratio: 4 / 5; max-height: 72vh; }
}

/* ---------- I. Statement ---------- */
.statement .grid-12 > .side { grid-column: 1 / span 3; }
.statement .grid-12 > .main { grid-column: 5 / span 8; }
.statement-big { font: 400 clamp(1.8rem, 3.4vw, 2.9rem)/1.2 var(--text); color: var(--ink); margin-bottom: 1.2em; letter-spacing: -0.01em; }
.statement-big em { color: var(--gold-ink); }
.marginal { border-top: 1px solid var(--rule); padding-top: 18px; margin-top: 8px; }
.marginal img { width: 96px; height: 120px; object-fit: cover; object-position: 50% 15%; margin-bottom: 14px; filter: grayscale(0.2); }
.marginal p { font: italic 400 1rem/1.5 var(--text); color: var(--ink-2); margin: 0; }
.marginal b { display: block; font: 600 0.68rem/1.4 var(--ui); font-style: normal; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink); margin-top: 6px; }
@media (max-width: 900px) { .statement .grid-12 > .side, .statement .grid-12 > .main { grid-column: 1 / -1; } .statement .side { order: 2; margin-top: 32px; } }

/* ---------- II. MMDP chapters ---------- */
.chapters-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px clamp(40px, 6vw, 96px); align-items: end; margin-bottom: clamp(48px, 6vw, 80px); }
.mmdp-mark { font: 400 clamp(6rem, 17vw, 15rem)/0.78 var(--display); color: var(--gold-light); letter-spacing: -0.02em; }
.mmdp-mark sup { font: 600 0.08em/1 var(--ui); letter-spacing: 0; vertical-align: top; position: relative; top: 0.9em; margin-left: 0.2em; color: var(--gold); }
.mmdp-expansion { margin-top: 18px; color: var(--on-navy-2); }
.tagline { font: italic 400 clamp(1.8rem, 3vw, 2.6rem)/1.15 var(--display); color: var(--ivory); margin-bottom: 18px; }
.tagline .gold { color: var(--gold-light); }
@media (max-width: 860px) { .chapters-head { grid-template-columns: 1fr; } }

.chaps { display: flex; gap: 0; border-top: 1px solid var(--rule-navy); border-bottom: 1px solid var(--rule-navy); min-height: 470px; }
.chap { flex: 1 1 0; min-width: 0; position: relative; display: flex; flex-direction: column; justify-content: space-between; text-align: left; padding: 30px clamp(18px, 2.2vw, 34px); background: transparent; border: 0; border-left: 1px solid var(--rule-navy); color: var(--on-navy); cursor: pointer; font: inherit; transition: flex-grow .7s var(--ease), background-color .5s var(--ease); overflow: hidden; }
.chap:first-child { border-left: 0; }
.chap:hover, .chap:focus-visible { background: rgba(197, 160, 89, 0.05); }
.chap.is-open { flex-grow: 3.2; background: rgba(197, 160, 89, 0.07); cursor: default; }
.chap-no { font: italic 400 1.3rem/1 var(--display); color: var(--gold); }
.chap-letter { font: 400 clamp(5rem, 9vw, 8.5rem)/0.8 var(--display); color: var(--gold-light); transition: color .5s var(--ease); }
.chap:not(.is-open) .chap-letter { color: rgba(220, 194, 140, 0.55); }
.chap-name { font: 400 clamp(2rem, 3vw, 2.8rem)/1 var(--display); color: var(--ivory); white-space: nowrap; }
.chap:not(.is-open) .chap-name { font-size: 1.35rem; writing-mode: vertical-rl; transform: rotate(180deg); position: absolute; right: 22px; bottom: 30px; color: var(--on-navy-2); }
.chap-body { max-width: 26rem; }
.chap-desc { font: 400 1.18rem/1.55 var(--text); color: var(--on-navy); margin: 16px 0 0; opacity: 1; transition: opacity .5s var(--ease) .25s; }
.chap:not(.is-open) .chap-desc { opacity: 0; position: absolute; pointer-events: none; transition: none; }
.chaps-hint { margin-top: 16px; color: var(--on-navy-2); }
@media (max-width: 860px) {
  .chaps { flex-direction: column; min-height: 0; }
  .chap, .chap.is-open { flex: none; border-left: 0; border-top: 1px solid var(--rule-navy); padding: 26px 0; cursor: default; background: transparent; }
  .chap:first-child { border-top: 0; }
  .chap:not(.is-open) .chap-name { writing-mode: horizontal-tb; transform: none; position: static; font-size: clamp(2rem, 7vw, 2.6rem); color: var(--ivory); }
  .chap:not(.is-open) .chap-desc { opacity: 1; position: static; }
  .chap:not(.is-open) .chap-letter { color: var(--gold-light); }
  .chap-letter { font-size: 4rem; margin: 10px 0; }
  .chaps-hint { display: none; }
}
/* Light variant (A4M) */
.light .chaps { border-color: var(--rule); }
.light .chap { border-left-color: var(--rule); color: var(--ink-2); }
.light .chap:hover { background: rgba(122, 90, 28, 0.04); }
.light .chap.is-open { background: rgba(122, 90, 28, 0.06); }
.light .chap-no { color: var(--gold-ink); }
.light .chap-letter { color: var(--gold-ink); }
.light .chap:not(.is-open) .chap-letter { color: rgba(122, 90, 28, 0.45); }
.light .chap-name, .light .chap:not(.is-open) .chap-name { color: var(--navy); }
.light .chap-desc { color: var(--ink-2); }
.light .chaps-hint { color: var(--ink-2); }
@media (max-width: 860px) { .light .chap, .light .chap.is-open { border-top-color: var(--rule); } }

/* ---------- III. Dictionary entry ---------- */
.define .grid-12 > .side { grid-column: 1 / span 4; }
.define .grid-12 > .main { grid-column: 6 / span 7; }
.entry-hw { font: 400 clamp(3.6rem, 8vw, 7rem)/0.95 var(--display); color: var(--navy); }
.entry-hw .dot { color: var(--gold); }
.entry-meta { display: flex; gap: 18px; align-items: baseline; margin: 14px 0 26px; font: italic 400 1.15rem/1 var(--text); color: var(--ink-2); }
.entry-meta .pos { font-style: italic; color: var(--gold-ink); }
.entry-def { font: 400 1.25rem/1.6 var(--text); color: var(--ink-2); margin-bottom: 18px; }
.senses { list-style: none; counter-reset: s; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.senses li { counter-increment: s; display: grid; grid-template-columns: 58px 1fr; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--rule); font: 400 clamp(1.7rem, 3vw, 2.4rem)/1.1 var(--display); color: var(--navy); }
.senses li::before { content: counter(s) "."; font: italic 400 1.3rem/1 var(--display); color: var(--gold-ink); }
.entry-note { margin-top: 20px; font: italic 400 1.05rem/1.5 var(--text); color: var(--ink-2); }
@media (max-width: 900px) { .define .grid-12 > .side, .define .grid-12 > .main { grid-column: 1 / -1; } .define .side { margin-bottom: 28px; } }

/* ---------- IV. Founder (CV page) ---------- */
.profile .grid-12 > .plate-col { grid-column: 1 / span 5; }
.profile .grid-12 > .main { grid-column: 7 / span 6; align-self: center; }
.plate { margin: 0; }
.plate .frame { position: relative; overflow: hidden; background: var(--paper-2); outline: 1px solid var(--rule); outline-offset: 10px; }
.plate img { width: 100%; height: 100%; object-fit: cover; }
.plate figcaption { display: flex; gap: 12px; align-items: baseline; margin-top: 22px; font: 400 0.95rem/1.4 var(--text); color: var(--ink-2); }
.plate figcaption .plate-no { font: italic 400 1.05rem/1 var(--display); color: var(--gold-ink); white-space: nowrap; }
.profile h2 { font-size: clamp(3.2rem, 6vw, 5.6rem); color: var(--navy); margin-bottom: 26px; }
.cv { list-style: none; margin: 36px 0 0; padding: 0; }
.cv li { display: flex; align-items: baseline; gap: 10px; padding: 10px 0; font-size: 0.98rem; }
.cv .k { font: 600 0.7rem/1.4 var(--ui); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink); white-space: nowrap; }
.cv .dots { flex: 1; border-bottom: 1px dotted #b9ab8c; transform: translateY(-4px); min-width: 24px; }
.cv .v { font: 400 1.05rem/1.4 var(--text); color: var(--ink-2); text-align: right; max-width: 60%; }
@media (max-width: 900px) {
  .profile .grid-12 > .plate-col, .profile .grid-12 > .main { grid-column: 1 / -1; }
  .profile .plate-col { max-width: 440px; margin-bottom: 44px; }
}
@media (max-width: 520px) { .cv li { flex-wrap: wrap; } .cv .dots { display: none; } .cv .v { text-align: left; max-width: none; flex-basis: 100%; } }

/* Plates strip */
.plates-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px clamp(40px, 6vw, 96px); align-items: end; margin-bottom: 40px; }
.plates-head h2 { font-size: clamp(2.6rem, 5vw, 4.4rem); color: var(--navy); }
@media (max-width: 860px) { .plates-head { grid-template-columns: 1fr; } }
.plates { display: flex; gap: clamp(16px, 2vw, 28px); overflow-x: auto; scroll-snap-type: x mandatory; padding: 12px max(var(--gutter), calc((100vw - var(--wrap)) / 2)) 26px; scrollbar-width: thin; scrollbar-color: var(--gold) transparent; cursor: grab; }
.plates:active { cursor: grabbing; }
.plates figure { flex: none; width: clamp(230px, 24vw, 330px); scroll-snap-align: start; margin: 0; }
.plates figure:nth-child(3n+2) { margin-top: 48px; }
.plates .frame { aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper-2); }
.plates img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.plates figure:hover img { transform: scale(1.04); }
.plates figcaption { display: flex; gap: 10px; align-items: baseline; margin-top: 14px; font: 400 0.95rem/1.35 var(--text); color: var(--ink-2); }
.plates figcaption .plate-no { font: italic 400 1rem/1 var(--display); color: var(--gold-ink); white-space: nowrap; }
.plates-hint { color: var(--ink-2); }

/* ---------- V. Implementation schematic ---------- */
.photo-bg { overflow: hidden; isolation: isolate; }
.photo-bg-img { position: absolute; inset: -30% 0; background-size: cover; background-position: center 40%; z-index: -2; will-change: transform; filter: grayscale(0.35); }
.photo-bg::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11, 19, 43, 0.97) 0%, rgba(11, 19, 43, 0.9) 50%, rgba(11, 19, 43, 0.82) 100%); }
.impl .grid-12 > .side { grid-column: 1 / span 5; }
.impl .grid-12 > .main { grid-column: 7 / span 6; }
.impl h2 { font-size: clamp(2.8rem, 5.4vw, 5rem); }
.impl h2 em { color: var(--gold-light); }
.schematic { list-style: none; margin: 0; padding: 0; position: relative; }
.schematic::before { content: ""; position: absolute; left: 21px; top: 10px; bottom: 10px; width: 1px; background: var(--rule-navy); }
.schematic li { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 22px; padding: 0 0 36px; }
.schematic li:last-child { padding-bottom: 0; }
.schematic .node { width: 43px; height: 43px; border: 1px solid var(--gold); background: var(--navy); display: grid; place-items: center; font: italic 400 1.2rem/1 var(--display); color: var(--gold-light); position: relative; z-index: 1; }
.schematic li:nth-child(2) .node { background: var(--gold); color: var(--navy); }
.schematic .smallcaps { color: var(--gold); display: block; margin: 4px 0 8px; }
.schematic h3 { font-size: clamp(1.8rem, 2.6vw, 2.3rem); color: var(--ivory); margin-bottom: 8px; }
.schematic p { font: 400 1.08rem/1.55 var(--text); color: var(--on-navy); margin: 0; max-width: 30rem; }
@media (max-width: 900px) { .impl .grid-12 > .side, .impl .grid-12 > .main { grid-column: 1 / -1; } .impl .main { margin-top: 44px; } }

/* ---------- VI. Request (enrollment slip) ---------- */
.request .grid-12 > .side { grid-column: 1 / span 5; }
.request .grid-12 > .main { grid-column: 7 / span 6; }
.request h2 { font-size: clamp(2.8rem, 5.4vw, 5rem); color: var(--navy); margin-bottom: 22px; }
.on-navy.request h2 { color: var(--ivory); }
.next { list-style: none; counter-reset: n; margin: 36px 0 0; padding: 0; border-top: 1px solid var(--rule); }
.next li { counter-increment: n; display: grid; grid-template-columns: 52px 1fr; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.next li::before { content: counter(n, upper-roman) "."; font: italic 400 1.25rem/1.2 var(--display); color: var(--gold-ink); }
.next strong { display: block; font: 600 1rem/1.4 var(--ui); color: var(--ink); }
.next span { font: 400 1.02rem/1.5 var(--text); color: var(--ink-2); }
.on-navy .next { border-top-color: var(--rule-navy); }
.on-navy .next li { border-bottom-color: var(--rule-navy); }
.on-navy .next li::before { color: var(--gold); }
.on-navy .next strong { color: var(--ivory); }
.on-navy .next span { color: var(--on-navy); }
@media (max-width: 960px) { .request .grid-12 > .side, .request .grid-12 > .main { grid-column: 1 / -1; } .request .main { margin-top: 44px; } }

/* The form, styled as a printed enrollment slip */
.form-card { background: var(--paper); color: var(--ink); padding: clamp(28px, 4vw, 48px); position: relative; border: 1px solid var(--rule); box-shadow: 0 1px 0 var(--rule), 0 30px 60px -40px rgba(11, 19, 43, 0.45); }
.form-card::before { content: "Enrollment inquiry · MMDP™"; display: block; font: 600 0.66rem/1 var(--ui); letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-ink); padding-bottom: 14px; margin-bottom: 22px; border-bottom: 1px solid var(--rule); }
.form-card::after { content: ""; position: absolute; inset: 7px; border: 1px solid rgba(197, 160, 89, 0.35); pointer-events: none; }
.form-card h2, .form-card h3 { font: 400 clamp(2rem, 3vw, 2.5rem)/1 var(--display); color: var(--navy); margin: 0 0 12px; }
.form-helper { font: 400 1.02rem/1.5 var(--text); color: var(--ink-2); margin-bottom: 6px; }
.form-card a { color: var(--navy); }
.on-navy .form-card p, .on-navy .form-card .form-helper, .on-navy .form-card .form-notice, .on-navy .form-card .check { color: var(--ink-2); }
.on-navy .form-card h2, .on-navy .form-card h3 { color: var(--navy); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 24px; margin-top: 24px; position: relative; z-index: 1; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 540px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font: 600 0.68rem/1.4 var(--ui); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink); margin-bottom: 4px; }
.field .opt { font-weight: 500; letter-spacing: 0.04em; text-transform: none; color: var(--ink-2); }
.field input, .field select { width: 100%; min-height: 46px; padding: 8px 2px; font: 400 1.1rem/1.4 var(--text); color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid #a99a7c; border-radius: 0; transition: border-color .2s; }
.field select { appearance: none; padding-right: 28px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230B132B' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 4px center; cursor: pointer; }
.field input:focus, .field select:focus { outline: none; border-bottom: 2px solid var(--navy); }
.field input:focus-visible, .field select:focus-visible { box-shadow: 0 6px 0 -4px rgba(197, 160, 89, 0.6); }
.field [aria-invalid="true"] { border-bottom-color: var(--error); }
.field-error { color: var(--error); font-size: 0.86rem; margin-top: 6px; }
.field-error:empty { display: none; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 14px; align-items: start; font: 400 1rem/1.5 var(--text); color: var(--ink-2); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--navy); }
.form-notice { font: 400 0.95rem/1.5 var(--text); color: var(--ink-2); margin: 0; }
.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.form-status { padding: 12px 14px; font-size: 0.94rem; }
.form-status:empty { display: none; }
.form-status.is-error { background: #fbeeec; border-left: 3px solid var(--error); color: var(--error); }
.form-status.is-pending { background: var(--paper-2); }
.form-card .btn { width: 100%; justify-content: center; min-height: 58px; }

/* ---------- Inner pages ---------- */
.page-cover { position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(72px, 9vw, 130px) clamp(64px, 8vw, 110px); }
.page-cover .grid-12 > .main { grid-column: 1 / span 8; }
.page-cover .grid-12 > .aside { grid-column: 9 / span 4; align-self: end; }
.page-cover h1 { font-size: clamp(3rem, 6.4vw, 6rem); line-height: 0.95; color: var(--ivory); }
.page-cover h1 em { color: var(--gold-light); }
.page-cover .lede { margin-top: 28px; max-width: 36rem; }
.page-photo { position: absolute; inset: 0; background-size: cover; background-position: center 40%; opacity: .12; z-index: -1; filter: grayscale(0.4); }
@media (max-width: 900px) { .page-cover .grid-12 > .main, .page-cover .grid-12 > .aside { grid-column: 1 / -1; } .page-cover .aside { margin-top: 36px; } }
.mmdp-inline { font: 400 clamp(4.4rem, 11vw, 9rem)/0.8 var(--display); color: var(--gold-light); margin-bottom: 30px; display: block; }
.expansion-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule-navy); }
.expansion-list li { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--rule-navy); font: 400 1.4rem/1 var(--display); color: var(--ivory); }
.expansion-list li span { font: italic 400 1.2rem/1 var(--display); color: var(--gold); }

.two-col .grid-12 > .side { grid-column: 1 / span 4; }
.two-col .grid-12 > .main { grid-column: 6 / span 7; }
.two-col h2 { font-size: clamp(2.6rem, 5vw, 4.4rem); color: var(--navy); }
@media (max-width: 900px) { .two-col .grid-12 > .side, .two-col .grid-12 > .main { grid-column: 1 / -1; } .two-col .main { margin-top: 28px; } }

.wide-plate .frame { aspect-ratio: 16 / 7; }
.wide-plate img { object-position: 50% 35%; }

.faq { border-top: 1px solid var(--rule); counter-reset: q; }
.faq details { border-bottom: 1px solid var(--rule); counter-increment: q; }
.faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 52px 1fr 28px; gap: 10px; align-items: baseline; padding: 24px 0; font: 400 clamp(1.5rem, 2.4vw, 2rem)/1.2 var(--display); color: var(--navy); }
.faq summary::before { content: counter(q, lower-roman) "."; font: italic 400 1.2rem/1 var(--display); color: var(--gold-ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 300 1.8rem/1 var(--ui); color: var(--gold-ink); transition: transform .4s var(--ease); justify-self: end; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 28px 26px 62px; font: 400 1.15rem/1.6 var(--text); color: var(--ink-2); }

.placeholder { border: 1px dashed var(--gold); background: rgba(197, 160, 89, 0.06); padding: 18px 22px; font: 400 1rem/1.5 var(--text); color: var(--ink-2); }
.placeholder strong { display: block; font: 600 0.66rem/1.4 var(--ui); letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 4px; }
.checks { list-style: none; counter-reset: c; margin: 32px 0 0; padding: 0; border-top: 1px solid var(--rule-navy); }
.checks li { counter-increment: c; display: grid; grid-template-columns: 48px 1fr; padding: 16px 0; border-bottom: 1px solid var(--rule-navy); font: 400 1.12rem/1.5 var(--text); color: var(--on-navy); }
.checks li::before { content: counter(c, upper-roman) "."; font: italic 400 1.2rem/1.3 var(--display); color: var(--gold); }
.promise { font: italic 400 clamp(1.4rem, 2vw, 1.7rem)/1.3 var(--display); color: var(--gold-light); margin-top: 30px; }
.booking-frame { width: 100%; min-height: 760px; border: 0; background: #fff; }
.notice { border-left: 2px solid var(--gold); background: var(--paper); padding: 16px 20px; font: 400 1.02rem/1.5 var(--text); color: var(--ink-2); }
.prose-page { max-width: 44rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: var(--on-navy-2); padding-block: clamp(72px, 9vw, 112px) 30px; font-size: 0.94rem; }
.footer-promise { font: 400 clamp(2.4rem, 5vw, 4.6rem)/1 var(--display); color: var(--ivory); max-width: 16ch; margin: 0 0 clamp(48px, 6vw, 72px); }
.footer-promise em { color: var(--gold-light); }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.8fr) minmax(0, 0.8fr) minmax(0, 1.1fr); gap: clamp(32px, 4vw, 64px); padding: clamp(36px, 4vw, 48px) 0; border-top: 1px solid var(--rule-navy); border-bottom: 1px solid var(--rule-navy); }
/* The approved primary logo on an ivory plate keeps its navy lettering legible (no recolouring). */
.footer-logo { display: grid; place-items: center; width: 190px; aspect-ratio: 5 / 6; padding: 22% 8% 10%; background: var(--ivory); position: relative; }
.footer-logo::after { content: ""; position: absolute; inset: 7px; border: 1px solid rgba(197, 160, 89, 0.55); pointer-events: none; }
.footer-logo img { width: 100%; }
.footer-tag { display: none; }
.footer-h { font: 600 0.68rem/1 var(--ui); letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin: 6px 0 20px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer-links a, .footer-legal a { text-decoration: none; color: var(--on-navy); transition: color .25s; }
.footer-links a:hover, .footer-legal a:hover { color: var(--gold-light); }
.footer-cta p:not(.footer-h) { font: 400 1.05rem/1.5 var(--text); color: var(--on-navy); max-width: 18rem; }
.footer-cta .btn { margin-top: 6px; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 24px; font-size: 0.82rem; }
@media (max-width: 960px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand, .footer-cta { grid-column: 1 / -1; } }

/* ---------- Motion (all off for prefers-reduced-motion) ---------- */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .cover h1 .line > span { transform: translateY(105%); animation: rise 1.1s var(--ease) forwards; }
  .cover h1 .line:nth-child(2) > span { animation-delay: .12s; }
  .cover h1 .line:nth-child(3) > span { animation-delay: .24s; }
  @keyframes rise { to { transform: none; } }
  .cover-plate { animation: plate-in 1.4s var(--ease) .15s backwards; }
  @keyframes plate-in { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0); } }
  .cover-plate .slide.is-active { animation: drift 7s ease-out forwards; }
  @keyframes drift { from { transform: scale(1.1); } to { transform: none; } }
  /* Plates unveil like a print being pulled */
  .js .plate.reveal .frame, .js .wide-plate.reveal .frame { clip-path: inset(0 0 100% 0); transition: clip-path 1.4s var(--ease) .1s; }
  .js .plate.reveal.is-in .frame, .js .wide-plate.reveal.is-in .frame { clip-path: inset(0); }
  /* Dictionary senses write in one by one */
  .js .senses.reveal li { opacity: 0; transform: translateX(-12px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .js .senses.reveal.is-in li { opacity: 1; transform: none; }
  .js .senses.reveal.is-in li:nth-child(2) { transition-delay: .1s; }
  .js .senses.reveal.is-in li:nth-child(3) { transition-delay: .2s; }
  .js .senses.reveal.is-in li:nth-child(4) { transition-delay: .3s; }
  .js .senses.reveal.is-in li:nth-child(5) { transition-delay: .4s; }
  /* CV leaders draw across */
  .js .cv.reveal .dots { transform: translateY(-4px) scaleX(0); transform-origin: left; transition: transform 1s var(--ease) .2s; }
  .js .cv.reveal.is-in .dots { transform: translateY(-4px) scaleX(1); }
  /* Schematic line draws down */
  .js .schematic.reveal::before { transform: scaleY(0); transform-origin: top; transition: transform 1.6s var(--ease) .2s; }
  .js .schematic.reveal.is-in::before { transform: none; }
  /* Chapter label rules draw across */
  .js .reveal .chapter::after, .js .chapter.reveal::after { transform: translateY(-4px) scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease) .15s; }
  .js .reveal.is-in .chapter::after, .js .chapter.reveal.is-in::after { transform: translateY(-4px) scaleX(1); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
/* Readable intro text on the navy cover (the .lede colour was being inherited too dark) */
.cover .lede { color: #cfc9bc; }
.cover-meta span:last-child { color: #bdb7aa; }
/* Chapter index: numerals only; the name appears on hover, and only where there is margin to spare */
.rail a.is-active span { opacity: 0; }
.rail a:hover span { opacity: 1; background: var(--ivory); padding: 3px 6px; }
.rail.on-dark a:hover span { background: var(--navy); }
@media (max-width: 1599px) { .rail { display: none; } }
@media (min-width: 1600px) { .rail { display: block; } }
/* Institute margin note sits at the top of its column */
.statement .grid-12 { align-items: start; }
.statement .side { grid-row: 1; }
/* Chapter panel: name and description on separate lines */
.chap-body { display: flex; flex-direction: column; }
.chap-name { display: block; }
.chap-desc { display: block; }
/* Implementation text a touch brighter over the photo */
.impl .lede, .schematic p { color: #d6d0c3; }
/* Footer logo plate aligned with the link columns */
.footer-top { align-items: start; }
.footer-logo { width: 150px; }
/* A4M cover: message and enrollment slip side by side */
.page-cover.request .grid-12 > .side { grid-column: 1 / span 5; }
.page-cover.request .grid-12 > .main { grid-column: 7 / span 6; align-self: start; }
@media (max-width: 960px) { .page-cover.request .grid-12 > .side, .page-cover.request .grid-12 > .main { grid-column: 1 / -1; } .page-cover.request .main { margin-top: 44px; } }

/* Phone: the Institute statement comes before its margin note */
@media (max-width: 900px) { .statement .side { grid-row: auto; order: 2; } .statement .main { order: 1; } .statement .grid-12 { display: flex; flex-direction: column; } }

/* ==========================================================================
   v2: structure & responsive pass
   ========================================================================== */

/* ---------- Hero (cover) ---------- */
.cover { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); min-height: min(calc(100svh - 80px), 900px); max-height: none; }
.cover-text { padding-top: clamp(32px, 4.5vw, 64px); padding-bottom: clamp(28px, 3vw, 44px); gap: 32px; }
/* One sentence per line on wide screens, sized to the column */
.cover h1 { font-size: clamp(2.7rem, 5.6vw, 6.4rem); line-height: 0.95; }
@media (min-width: 1100px) {
  .cover h1 .line { white-space: nowrap; }
  .cover h1 { font-size: min(6.4rem, calc((66.6vw - 180px) / 10.2)); }
}
.cover .lede { max-width: 34rem; font-size: clamp(1.12rem, 1.5vw, 1.35rem); }
.cover-foot { align-items: center; }
.cover-foot .pillars a { text-decoration: none; color: inherit; display: inline-block; padding: 8px 0; }
.cover-foot .pillars a:hover { color: var(--gold-light); }
.scroll-cue { font: 600 0.7rem/1 var(--ui); letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); text-decoration: none; display: inline-flex; gap: 10px; align-items: center; padding: 12px 0; }
.scroll-cue span { display: inline-block; }
@media (prefers-reduced-motion: no-preference) { .scroll-cue span { animation: cue 2.2s ease-in-out infinite; } @keyframes cue { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } } }
.cover-plate { min-height: 100%; }
.cover-plate::after { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(220, 194, 140, 0.45); pointer-events: none; z-index: 2; }

/* Tablet & phone hero: photo first as a banner, compact text block */
@media (max-width: 960px) {
  .cover { display: flex; flex-direction: column; min-height: 0; }
  .cover-plate { order: -1; aspect-ratio: 16 / 10; max-height: 52svh; min-height: 0; width: 100%; }
  .cover-plate .slide { object-position: 50% 22%; }
  .cover-plate figcaption { padding: 40px 18px 14px; }
  .cover-text { padding: 28px var(--gutter) 30px; gap: 26px; }
  .cover h1 { font-size: clamp(2.5rem, 9.6vw, 4.4rem); }
  .cover .lede { margin-top: 20px; }
  .cover .actions { margin-top: 26px; }
}
@media (max-width: 560px) {
  .cover-meta span:last-child { display: none; }
  .cover-plate { aspect-ratio: 4 / 3; }
  .cover .actions .btn { width: 100%; justify-content: center; }
  .cover-foot { flex-direction: column; align-items: flex-start; gap: 4px; }
}

/* ---------- Contents (chapter I) ---------- */
.contents { margin-top: 8px; }
.contents-h { color: var(--gold-ink); margin-bottom: 8px; }
.contents ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.contents a { display: flex; align-items: baseline; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--rule); text-decoration: none; color: var(--ink); transition: color .3s var(--ease), padding .4s var(--ease); }
.contents a:hover { color: var(--gold-ink); padding-left: 8px; }
.contents .rn { font: italic 400 1.2rem/1 var(--display); color: var(--gold-ink); min-width: 38px; }
.contents .t { font: 400 clamp(1.3rem, 2vw, 1.6rem)/1.15 var(--display); }
.contents .lead { flex: 1; border-bottom: 1px dotted #b9ab8c; transform: translateY(-5px); min-width: 20px; }
.contents .n { font: 400 0.98rem/1.3 var(--text); color: var(--ink-2); text-align: right; }
@media (max-width: 640px) {
  .contents a { flex-wrap: wrap; row-gap: 4px; }
  .contents .lead { display: none; }
  .contents .n { flex-basis: 100%; text-align: left; padding-left: 52px; }
}

/* ---------- Touch targets ---------- */
.tlink { min-height: 44px; align-items: center; padding: 12px 0 8px; border-bottom-width: 1px; }
.cv li { min-height: 44px; }
.chap { min-height: 44px; }
.jump-form { display: none; margin-top: 24px; }
@media (max-width: 960px) { .jump-form { display: inline-flex; } }
@media (max-width: 560px) { .jump-form { width: 100%; justify-content: center; } }

/* ---------- Responsive rhythm ---------- */
@media (max-width: 760px) {
  .section { padding-block: 64px; }
  .chapter { margin-bottom: 24px; flex-wrap: wrap; row-gap: 6px; }
  .chapter::after { flex-basis: 100%; transform: none; }
  .statement-big { font-size: clamp(1.55rem, 6.4vw, 2rem); }
  .entry-hw { font-size: clamp(3rem, 15vw, 4.6rem); }
  .profile h2, .request h2, .impl h2, .two-col h2, .plates-head h2 { font-size: clamp(2.4rem, 11vw, 3.4rem); }
  .page-cover { padding-block: 48px 56px; }
  .page-cover h1 { font-size: clamp(2.5rem, 10.5vw, 3.6rem) !important; }
  .mmdp-mark { font-size: clamp(5rem, 26vw, 8rem); }
  .footer-promise { font-size: clamp(2rem, 9vw, 2.8rem); }
  .form-card { padding: 24px 20px; }
  .faq summary { grid-template-columns: 36px 1fr 24px; font-size: 1.35rem; }
  .faq details p { padding-left: 46px; padding-right: 0; }
}
/* Tablets: two-column editorial grids collapse cleanly */
@media (min-width: 761px) and (max-width: 1100px) {
  .statement .grid-12 > .side { grid-column: 1 / span 4; }
  .statement .grid-12 > .main { grid-column: 5 / span 8; }
  .chaps { min-height: 420px; }
}
/* Large screens: keep line lengths readable */
@media (min-width: 1700px) { :root { --wrap: 1400px; } }
/* Plate caption stays on one line on phones */
.cover-plate .plate-no { white-space: nowrap; }
@media (max-width: 560px) {
  .cover-plate figcaption { gap: 10px; }
  .cover-plate .plate-cap { font-size: 0.6rem; letter-spacing: 0.12em; }
  .cover-plate::after { inset: 8px; }
}
/* Comfortable tap areas for the hero pillar links, scroll cue and logo */
.cover-foot .pillars a { padding: 12px 0; min-height: 44px; display: inline-flex; align-items: center; }
.scroll-cue { min-height: 44px; }
.brand { padding: 4px 0; min-height: 44px; display: flex; align-items: center; }

/* ==========================================================================
   v4: contained hero, centered section heads, professional widths
   ========================================================================== */
:root { --wrap: 1140px; }
@media (min-width: 1700px) { :root { --wrap: 1180px; } }
.narrow-col { max-width: 760px; margin-inline: auto; }

/* ---------- Hero: light, inside the page width ---------- */
.hero2 { background: linear-gradient(180deg, var(--ivory) 0%, var(--paper) 100%); padding-block: clamp(48px, 6vw, 96px) clamp(64px, 7vw, 112px); border-bottom: 1px solid var(--rule); overflow: hidden; }
.hero2-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.hero2-kicker { color: var(--gold-ink); margin: 0 0 22px; display: flex; align-items: center; gap: 14px; }
.hero2-kicker::before { content: ""; width: 36px; height: 1px; background: currentColor; flex: none; }
.hero2 h1 { font-size: clamp(2.6rem, 5vw, 4.6rem); line-height: 0.98; color: var(--navy); }
.hero2 h1 .line { display: block; overflow: hidden; padding-bottom: 0.04em; }
.hero2 h1 .line > span { display: inline-block; }
.hero2 h1 em { color: var(--gold-ink); }
@media (min-width: 1100px) { .hero2 h1 .line { white-space: nowrap; } }
.hero2 .lede { margin: 26px 0 0; max-width: 32rem; }
.hero2 .actions { margin-top: 32px; }
.hero2-pillars { list-style: none; margin: 40px 0 0; padding: 18px 0 0; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; gap: 4px 26px; }
.hero2-pillars li { display: flex; align-items: center; gap: 8px; }
.hero2-pillars span { font: italic 400 1.05rem/1 var(--display); color: var(--gold-ink); letter-spacing: 0; }
.hero2-pillars a { text-decoration: none; color: var(--ink); padding: 12px 0; display: inline-block; }
.hero2-pillars a:hover { color: var(--gold-ink); }

.hero2-figure { position: relative; margin: 0 0 0 auto; width: 100%; max-width: 440px; padding: 0 0 28px 28px; }
.hero2-figure::before { content: ""; position: absolute; left: 0; bottom: 0; width: 78%; height: 78%; background: var(--navy); }
.hero2-figure::after { content: ""; position: absolute; left: 12px; bottom: 12px; width: 78%; height: 78%; border: 1px solid rgba(197, 160, 89, 0.55); pointer-events: none; }
.hero2-plate { position: relative; z-index: 1; aspect-ratio: 4 / 5; overflow: hidden; background: var(--navy-deep); box-shadow: 0 30px 60px -30px rgba(11, 19, 43, 0.55); }
.hero2-plate::after { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(220, 194, 140, 0.55); pointer-events: none; z-index: 2; }
.hero2-plate .slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.6s var(--ease); }
.hero2-plate .slide.is-active { opacity: 1; }
.hero2-caption { position: absolute; z-index: 3; right: -18px; bottom: 44px; display: flex; align-items: center; gap: 12px; background: var(--paper); border: 1px solid var(--rule); padding: 12px 16px; box-shadow: 0 16px 30px -20px rgba(11, 19, 43, 0.5); max-width: 86%; }
.hero2-caption .plate-no { font: italic 400 1.05rem/1 var(--display); color: var(--gold-ink); white-space: nowrap; }
.hero2-caption .cap { font: 600 0.66rem/1.3 var(--ui); letter-spacing: 0.14em; text-transform: uppercase; color: var(--navy); }
.hero2-caption .slide-dots i { background: var(--rule); }
.hero2-caption .slide-dots i.on { background: var(--gold); }
@media (prefers-reduced-motion: no-preference) {
  .hero2 h1 .line > span { transform: translateY(105%); animation: rise 1.1s var(--ease) forwards; }
  .hero2 h1 .line:nth-child(2) > span { animation-delay: .12s; }
  .hero2 h1 .line:nth-child(3) > span { animation-delay: .24s; }
  .hero2-plate { animation: plate-rise 1.3s var(--ease) .2s backwards; }
  @keyframes plate-rise { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0); } }
  .hero2-figure::before { animation: block-in 1.2s var(--ease) .05s backwards; }
  @keyframes block-in { from { transform: translate(-20px, 20px); opacity: 0; } to { transform: none; opacity: 1; } }
  .hero2-caption { animation: cap-in .9s var(--ease) 1.1s backwards; }
  @keyframes cap-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
  .hero2-plate .slide.is-active { animation: drift 7s ease-out forwards; }
}
@media (max-width: 960px) {
  .hero2-grid { grid-template-columns: 1fr; }
  .hero2-figure { margin: 8px auto 0; max-width: 400px; }
  .hero2-caption { right: 0; }
}
@media (max-width: 560px) {
  .hero2 h1 { font-size: clamp(2.3rem, 10.4vw, 3rem); }
  .hero2-kicker { font-size: 0.62rem; }
  .hero2 .actions .btn { width: 100%; justify-content: center; }
  .hero2-figure { max-width: 320px; padding: 0 0 20px 20px; }
  .hero2-caption { bottom: 32px; padding: 10px 12px; }
}

/* ---------- Centered section heads ---------- */
.sec-head { text-align: center; max-width: 760px; margin: 0 auto clamp(40px, 5vw, 64px); }
.sec-head .chapter { justify-content: center; margin-bottom: 22px; }
.sec-head .chapter::before { content: ""; width: 44px; height: 1px; background: var(--rule); transform: translateY(-4px); order: -1; }
.sec-head .chapter::after { flex: none; width: 44px; }
.on-navy .sec-head .chapter::before { background: var(--rule-navy); }
.sec-head h2 { font-size: clamp(2.6rem, 4.8vw, 4.2rem); color: var(--navy); }
.on-navy .sec-head h2 { color: var(--ivory); }
.sec-head .lede { margin: 20px auto 0; max-width: 40rem; }
.sec-head .mmdp-mark { font-size: clamp(5rem, 13vw, 10rem); color: var(--gold-light); }
.sec-head .mmdp-expansion { margin-top: 16px; }
.sec-head .tagline { margin: 22px 0 0; }
.sec-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: 22px; }
.sec-foot .chaps-hint { margin: 0; }
.center { text-align: center; }
@media (max-width: 760px) {
  .sec-head .chapter::before, .sec-head .chapter::after { width: 24px; flex-basis: auto; transform: translateY(-4px); }
  .sec-foot { justify-content: center; }
  .sec-foot .btn { width: 100%; justify-content: center; }
}

/* ---------- Prosperity entry card ---------- */
.entry-card { background: var(--ivory); border: 1px solid var(--rule); padding: clamp(28px, 4vw, 48px); position: relative; }
.entry-card::before { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(197, 160, 89, 0.3); pointer-events: none; }
.entry-card .entry-hw { font-size: clamp(3rem, 7vw, 5.4rem); margin: 0; }
.entry-card .entry-meta { margin: 10px 0 22px; }

/* ---------- Founder ---------- */
.founder-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 5vw, 72px); align-items: start; }
.founder-grid .plate { max-width: 420px; }
.founder-text .cv { margin-top: 28px; }
@media (max-width: 900px) { .founder-grid { grid-template-columns: 1fr; } .founder-grid .plate { margin-inline: auto; } }

/* ---------- Implementation: three columns ---------- */
.flow3 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 44px); position: relative; }
.flow3::before { content: ""; position: absolute; left: 21px; right: 16%; top: 21px; height: 1px; background: var(--rule-navy); }
.flow3 li { position: relative; }
.flow3 .node { width: 43px; height: 43px; border: 1px solid var(--gold); background: var(--navy); display: grid; place-items: center; font: italic 400 1.2rem/1 var(--display); color: var(--gold-light); position: relative; z-index: 1; margin-bottom: 22px; }
.flow3 li:nth-child(2) .node { background: var(--gold); color: var(--navy); }
.flow3 .smallcaps { color: var(--gold); display: block; margin-bottom: 8px; }
.flow3 h3 { font-size: clamp(1.7rem, 2.4vw, 2.1rem); color: var(--ivory); margin-bottom: 10px; }
.flow3 p { font: 400 1.05rem/1.55 var(--text); color: #d6d0c3; margin: 0; }
@media (max-width: 860px) { .flow3 { grid-template-columns: 1fr; gap: 36px; } .flow3::before { left: 21px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; } .flow3 li { padding-left: 66px; } .flow3 .node { position: absolute; left: 0; top: 0; } }
@media (prefers-reduced-motion: no-preference) {
  .js .flow3.reveal::before { transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease) .2s; }
  .js .flow3.reveal.is-in::before { transform: none; }
}

/* ---------- Begin: steps row + centered form ---------- */
.steps3 { list-style: none; margin: 0 auto clamp(36px, 4vw, 52px); padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 960px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.steps3 li { padding: 22px clamp(14px, 2vw, 26px); border-left: 1px solid var(--rule); text-align: center; }
.steps3 li:first-child { border-left: 0; }
.steps3 .rn { display: block; font: italic 400 1.4rem/1 var(--display); color: var(--gold-ink); margin-bottom: 10px; }
.steps3 strong { display: block; font: 600 1rem/1.35 var(--ui); color: var(--ink); margin-bottom: 4px; }
.steps3 span:last-child { font: 400 1rem/1.45 var(--text); color: var(--ink-2); }
.form-col { max-width: 720px; margin-inline: auto; }
@media (max-width: 760px) { .steps3 { grid-template-columns: 1fr; } .steps3 li { border-left: 0; border-top: 1px solid var(--rule); } .steps3 li:first-child { border-top: 0; } }

/* Plates hint centered */
.plates-hint.center { text-align: center; margin-top: 14px; }
/* Contents centered block */
.contents.narrow-col { margin-top: 0; }
/* v4 fixes */
.sec-head h2.mmdp-mark, .on-navy .sec-head h2.mmdp-mark { color: var(--gold-light); }
/* Center section headings on the inner pages too */
.section .chapter { justify-content: center; }
.section .chapter::before { content: ""; width: 44px; height: 1px; background: var(--rule); transform: translateY(-4px); order: -1; }
.section .chapter::after { flex: none; width: 44px; }
.on-navy.section .chapter::before, .on-navy .section .chapter::before { background: var(--rule-navy); }
.two-col .grid-12 > .side, .two-col .grid-12 > .main { grid-column: 1 / -1; }
.two-col .grid-12 > .side { text-align: center; }
.two-col .grid-12 > .main { max-width: 760px; margin: 28px auto 0; width: 100%; }
.two-col .statement-big { text-align: center; }
.chapters-head { grid-template-columns: 1fr; text-align: center; justify-items: center; max-width: 760px; margin-inline: auto; }
.chapters-head .lede { margin: 0 auto; }
.define .grid-12 > .side, .define .grid-12 > .main { grid-column: 1 / -1; text-align: center; }
.define .grid-12 > .main { max-width: 760px; margin: 12px auto 0; width: 100%; text-align: left; }
.define .entry-meta { justify-content: center; }
.request .grid-12 > .side h2, .request .grid-12 > .side .lede { text-align: left; }
.plates-hint.center { text-align: center; }

/* A4M headline fits the narrower column */
@media (min-width: 961px) { .page-cover.request h1 { font-size: clamp(2.8rem, 4.4vw, 4.4rem) !important; } }

/* ---------- Google Translate language selector ---------- */
.lang { display: flex; align-items: center; gap: 8px; color: var(--ink); min-height: 44px; }
.lang-icon { flex: none; color: var(--gold-ink); }
#google_translate_element .goog-te-gadget-simple { background: transparent !important; border: 1px solid var(--rule) !important; padding: 7px 10px !important; border-radius: 0 !important; font: 500 0.74rem/1 var(--ui) !important; letter-spacing: 0.08em; cursor: pointer; display: inline-flex !important; align-items: center; white-space: nowrap; }
#google_translate_element .goog-te-gadget-simple:hover { border-color: var(--gold) !important; }
#google_translate_element .goog-te-gadget-icon { display: none !important; }
#google_translate_element .goog-te-gadget-simple .goog-te-menu-value { color: var(--ink) !important; margin: 0 !important; }
#google_translate_element .goog-te-gadget-simple .goog-te-menu-value span { color: var(--ink) !important; border: 0 !important; font: inherit !important; text-transform: uppercase; }
#google_translate_element .goog-te-gadget-simple .goog-te-menu-value span[aria-hidden="true"] { color: var(--gold-ink) !important; margin-left: 4px; }
#google_translate_element img { display: none !important; }
/* Stop Google's top banner from pushing the page down */
body { top: 0 !important; position: static !important; }
.skiptranslate > iframe.skiptranslate, iframe.goog-te-banner-frame, #goog-gt-tt, .goog-te-balloon-frame, .VIpgJd-ZVi9od-ORHb-OEVmcd { display: none !important; visibility: hidden !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }
font[style] { background: none !important; box-shadow: none !important; }
@media (max-width: 1020px) {
  .lang { padding: 16px 0; border-bottom: 1px solid var(--rule); }
}
@media (min-width: 1021px) and (max-width: 1180px) {
  .nav-list { gap: 16px; }
  .nav-list a { letter-spacing: 0.08em; }
}
/* Header fits logo + 4 links + language + button */
.site-nav .btn { white-space: nowrap; }
@media (min-width: 1021px) and (max-width: 1500px) {
  .site-nav { gap: 18px; }
  .nav-list { gap: 20px; }
  .nav-list a { font-size: 0.72rem; letter-spacing: 0.1em; }
  .brand img { height: 40px; }
  .site-nav .btn { padding: 0 16px; }
}

/* ---------- Searchable language picker ---------- */
.lang { position: relative; }
#google_translate_element { position: absolute !important; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.lang-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; background: transparent; border: 1px solid var(--rule); color: var(--ink); font: 500 0.74rem/1 var(--ui); letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; white-space: nowrap; transition: border-color .25s var(--ease); }
.lang-btn:hover, .lang-btn[aria-expanded="true"] { border-color: var(--gold); }
.lang-btn .lang-icon { color: var(--gold-ink); }
.lang-caret { color: var(--gold-ink); transition: transform .3s var(--ease); }
.lang-btn[aria-expanded="true"] .lang-caret { transform: rotate(180deg); }
.lang-panel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 120; width: 260px; background: var(--paper); border: 1px solid var(--rule); box-shadow: 0 24px 50px -24px rgba(11, 19, 43, 0.45); padding: 10px; }
.lang-panel[hidden] { display: none; }
.lang-search { width: 100%; min-height: 42px; padding: 8px 12px 8px 34px; border: 1px solid var(--rule); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24'%3E%3Ccircle cx='10' cy='10' r='7' fill='none' stroke='%237A5A1C' stroke-width='2'/%3E%3Cpath d='M15.5 15.5L21 21' stroke='%237A5A1C' stroke-width='2'/%3E%3C/svg%3E") no-repeat 11px center; font: 400 0.95rem/1.2 var(--ui); color: var(--ink); border-radius: 0; }
.lang-search:focus { outline: none; border-color: var(--navy); }
.lang-list { list-style: none; margin: 8px 0 0; padding: 0; max-height: 300px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--gold) transparent; }
.lang-list li { padding: 10px 12px; font: 400 0.95rem/1.2 var(--ui); color: var(--ink); cursor: pointer; display: flex; justify-content: space-between; }
.lang-list li.is-active, .lang-list li:hover { background: var(--ivory); color: var(--navy); }
.lang-list li[aria-selected="true"]::after { content: "✓"; color: var(--gold-ink); }
.lang-list .lang-empty { color: var(--ink-2); cursor: default; font-style: italic; }
.lang-note { margin: 8px 2px 2px; font: 400 0.72rem/1.3 var(--ui); color: var(--ink-2); }
@media (max-width: 1020px) {
  .lang { padding: 14px 0; border-bottom: 1px solid var(--rule); }
  .lang-btn { width: 100%; justify-content: flex-start; min-height: 46px; }
  .lang-caret { margin-left: auto; }
  .lang-panel { position: static; width: 100%; margin-top: 8px; box-shadow: none; }
}

/* ---- Polish 2026-09-30 ---------------------------------------------------- */
/* Footer: promise and next step side by side; three link columns below */
.footer-hero { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: end; margin-bottom: clamp(48px, 6vw, 72px); }
.footer-hero .footer-promise { margin: 0; }
.footer-hero .footer-cta { padding-left: clamp(24px, 3vw, 44px); border-left: 1px solid var(--rule-navy); }
.site-footer .footer-top { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 960px) {
  .footer-hero { grid-template-columns: 1fr; align-items: start; }
  .footer-hero .footer-cta { padding-left: 0; border-left: 0; }
  .site-footer .footer-top { grid-template-columns: 1fr 1fr; }
}
/* Hero pillar tags: tidy 2 x 2 grid on phones instead of a ragged wrap */
@media (max-width: 600px) { .hero2-pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; } }
/* MMDP "who it is for": statement at reading size, not display size */
.two-col .statement-big { font-size: clamp(1.45rem, 2.4vw, 2.05rem); line-height: 1.35; }
/* Sections whose body should sit centered under the centered heading */
.centered-main .grid-12 > .main { text-align: center; }
.centered-main .placeholder { text-align: left; }
/* Form: inputs line up even when one label wraps to two lines */
.field { display: flex; flex-direction: column; }
.field > label { margin-top: auto; }

/* ==========================================================================
   Languages (i18n.js): Arabic uses its own fonts, no letter-spacing (it breaks
   joined letters), no uppercase, roomier line height, and right-to-left layout.
   ========================================================================== */
html[lang="ar"] {
  --display: "Noto Naskh Arabic", "Instrument Serif", serif;
  --text: "Noto Naskh Arabic", "Newsreader", Georgia, serif;
  --ui: "IBM Plex Sans Arabic", "Hanken Grotesk", system-ui, sans-serif;
}
html[lang="ar"] body, html[lang="ar"] .aki-ghl { font-family: var(--ui); }
html[lang="ar"] *, html[lang="ar"] *::before, html[lang="ar"] *::after { letter-spacing: 0 !important; text-transform: none !important; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4 { line-height: 1.35; }
html[lang="ar"] em, html[lang="ar"] .it { font-style: normal; }
html[dir="rtl"] .lang-panel { right: auto; left: 0; }
html[dir="rtl"] .lang-list li { text-align: right; }
.lang-list li[lang="ar"] { font-family: "IBM Plex Sans Arabic", var(--ui); }
/* Arabic letters read smaller than Latin capitals at the same size: enlarge the small labels. */
html[lang="ar"] :is(.chapter, .smallcaps, .nav-list a, .rail a span, .cover-plate .plate-cap, .marginal b, .cv .k, .field label, .placeholder strong, .footer-h, .scroll-cue, .hero2-caption .cap, .lang-btn, .btn) { font-size: 0.9rem; }
/* French and Spanish headlines run longer than English: let hero lines wrap and size them down a little. */
html:is([lang="fr"], [lang="es"]) :is(.cover, .hero2) h1 .line { white-space: normal; }
html:is([lang="fr"], [lang="es"]) .hero2 h1 { font-size: clamp(2.3rem, 4.1vw, 3.9rem); }

/* Language bar (EN | AR | FR | ES), same idea as drdalalakoury's site */
.langbar { background: var(--navy); color: var(--on-navy-2); padding: 7px 0; font: 500 0.72rem/1.2 var(--ui); }
.langbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.langbar-tag { letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-light); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.langsw { display: flex; gap: 4px; flex: none; direction: ltr; }
@media (hover: hover) { .langsw a:hover, .langsw button:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); } }
.langsw a, .langsw button { display: inline-flex; align-items: center; text-decoration: none; font: 700 0.72rem/1 var(--ui); letter-spacing: 0.06em; padding: 6px 11px; min-height: 30px; border-radius: 2px; cursor: pointer; border: 1px solid rgba(255, 255, 255, 0.22); color: rgba(255, 255, 255, 0.75); background: transparent; transition: background .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease); }
.langsw a.on, .langsw button.on { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.langsw a:focus-visible, .langsw button:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 2px; }
@media (max-width: 520px) { .langbar-tag { display: none; } .langbar .wrap { justify-content: center; } .langsw a, .langsw button { padding: 6px 14px; } }
html[lang="ar"] .langsw a, html[lang="ar"] .langsw button { font-size: 0.72rem; }

/* Nov 2026: Institute family + MMDP flagship benefits */
.family { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 32px); }
.family li { background: var(--paper); border: 1px solid var(--rule); border-top: 3px solid var(--gold); padding: 28px 24px 26px; display: flex; flex-direction: column; gap: 10px; }
.family .smallcaps { color: var(--gold-ink); }
.family h3 { margin: 0; font: 400 1.9rem/1.1 var(--display); color: var(--navy); }
.family p { margin: 0; flex: 1; color: var(--ink); }
.family .tlink { align-self: flex-start; }
.family-soon { color: var(--gold-ink); border: 1px solid var(--rule); padding: 4px 10px; align-self: flex-start; }
@media (max-width: 1000px) { .family { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .family { grid-template-columns: 1fr; } }
.benefits { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.benefits li { padding: 18px 0; border-bottom: 1px solid var(--rule); }
.benefits h3 { margin: 0 0 6px; font: 400 1.35rem/1.2 var(--display); color: var(--navy); }
.benefits p { margin: 0; }
@media (max-width: 640px) { .benefits { grid-template-columns: 1fr; } }
.tagline-light { color: var(--navy) !important; }
.tagline-light .gold { color: var(--gold-ink) !important; }
html[dir="rtl"], html[dir="rtl"] body { overflow-x: clip; }

/* Privacy notice */
.privacy-text h2 { font: 400 clamp(1.6rem, 2.6vw, 2.1rem)/1.15 var(--display); color: var(--navy); margin: 36px 0 12px; }
.privacy-text p, .privacy-text li { color: var(--ink); line-height: 1.65; }
.privacy-text .privacy-updated { color: var(--gold-ink); margin-bottom: 18px; }
.privacy-list { padding-inline-start: 1.2em; margin: 0; }
.privacy-list li { margin: 6px 0; }

/* Credentials band + founder quote (Nov 2026) */
.credband { background: var(--navy); color: var(--on-navy); padding: clamp(34px, 4.5vw, 54px) 0; border-top: 1px solid rgba(197,160,89,.35); }
.credband-label { text-align: center; color: var(--gold); margin: 0 0 16px; }
.credband-list { list-style: none; margin: 0 auto; padding: 0; display: flex; flex-wrap: nowrap; justify-content: center; gap: 0; }
.credband-list li { white-space: nowrap; font: 400 clamp(1rem, 1.55vw, 1.4rem)/1.2 var(--display); color: #f5f0e6; padding: 0 clamp(14px, 2vw, 26px); border-inline-start: 1px solid rgba(197,160,89,.45); }
.credband-list li:first-child { border-inline-start: 0; }
.stats { list-style: none; margin: clamp(26px, 3.5vw, 40px) auto 0; padding: clamp(22px, 3vw, 32px) 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; max-width: 980px; border-top: 1px solid rgba(197,160,89,.25); text-align: center; }
.stat-n { display: block; direction: ltr; unicode-bidi: isolate; font: 400 clamp(2.4rem, 4.4vw, 3.6rem)/1 var(--display); color: var(--gold-light); }
.stat-l { display: block; margin-top: 8px; font: 600 .72rem/1.3 var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--on-navy); }
@media (max-width: 1000px) { .credband-list { flex-wrap: wrap; } .credband-list li { flex: 0 0 50%; border-inline-start: 0; padding: 6px 8px; text-align: center; white-space: normal; } }
@media (max-width: 700px) { .stats { grid-template-columns: 1fr 1fr; gap: 26px 12px; } .credband-list li { flex-basis: 100%; padding: 4px 0; } }
.quote-band { background: var(--paper); padding: clamp(70px, 9vw, 120px) 0; text-align: center; }
.pullquote { margin: 0 auto; max-width: 900px; }
.pullquote blockquote { margin: 0; }
.pullquote blockquote p { font: 400 clamp(2rem, 4.2vw, 3.4rem)/1.15 var(--display); color: var(--navy); margin: 0; }
.pullquote blockquote p::before { content: "“"; display: block; font-size: 1.6em; line-height: .6; color: var(--gold); margin-bottom: 14px; }
.pullquote figcaption { margin-top: 22px; color: var(--gold-ink); }
html[lang="ar"] .stat-l { letter-spacing: 0; }

/* Home clarity pass (Nov 2026) */
.hero2-gets { list-style: none; margin: 34px 0 0; padding: 20px 0 0; border-top: 1px solid var(--rule); display: grid; gap: 10px; }
.hero2-gets li { position: relative; padding-inline-start: 30px; font: 500 1rem/1.4 var(--ui); color: var(--ink); }
.hero2-gets li::before { content: ""; position: absolute; inset-inline-start: 0; top: .15em; width: 18px; height: 18px; border-radius: 50%; background: var(--gold); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12'/%3E%3C/svg%3E"); }
.hero2-gets li::after { content: ""; position: absolute; inset-inline-start: 5px; top: calc(.15em + 4px); width: 5px; height: 9px; border: solid var(--navy); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.offers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 32px); }
.offers li { background: var(--paper); border: 1px solid var(--rule); padding: 34px 30px 30px; display: flex; flex-direction: column; gap: 12px; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.offers li:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -24px rgba(11,19,43,.35); }
.offer-icon { width: 52px; height: 52px; display: grid; place-items: center; background: var(--navy); border-radius: 2px; margin-bottom: 6px; }
.offer-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--gold-light); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.offers .smallcaps { color: var(--gold-ink); }
.offers h3 { margin: 0; font: 400 clamp(1.6rem, 2.2vw, 2rem)/1.12 var(--display); color: var(--navy); }
.offers p { margin: 0; flex: 1; color: var(--ink-2); line-height: 1.6; }
.offers .tlink { align-self: flex-start; margin-top: 6px; }
@media (max-width: 900px) { .offers { grid-template-columns: 1fr; } }
.fit { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px, 2.4vw, 32px); max-width: 1040px; margin: 0 auto; }
.fit-col { padding: 34px 32px; border: 1px solid var(--rule); background: var(--paper); }
.fit-after { background: var(--navy); border-color: var(--navy); }
.fit-col h3 { margin: 0 0 18px; font: 400 clamp(1.5rem, 2.2vw, 1.9rem)/1.15 var(--display); color: var(--navy); }
.fit-after h3 { color: var(--gold-light); }
.fit-col ul { list-style: none; margin: 0; padding: 0; }
.fit-col li { position: relative; padding: 12px 0 12px 32px; border-top: 1px solid var(--rule); color: var(--ink); line-height: 1.5; }
.fit-after li { color: #f1ece1; border-top-color: rgba(197,160,89,.28); }
.fit-col li::before { position: absolute; left: 0; top: 11px; font: 600 1.05rem/1.4 var(--ui); }
.fit-before li::before { content: "–"; color: var(--gold-ink); }
.fit-after li::before { content: "✓"; color: var(--gold); }
html[dir="rtl"] .fit-col li { padding: 12px 32px 12px 0; }
html[dir="rtl"] .fit-col li::before { left: auto; right: 0; }
.fit-cta { text-align: center; margin: clamp(32px, 4vw, 48px) 0 0; }
@media (max-width: 760px) { .fit { grid-template-columns: 1fr; } }
/* Playfair Display is wider than the old display face */
.mmdp-inline { font-size: clamp(4rem, 8vw, 7.2rem) !important; }
body { font-variant-numeric: lining-nums; }
.footer-promise { font-size: clamp(2rem, 3.8vw, 3.4rem) !important; line-height: 1.1 !important; }

/* v5: professional header + footer (all pages) */
.langbar { padding: 0; }
.langbar .wrap { min-height: 38px; }
.langbar-tag { font: 500 .74rem/1 var(--ui) !important; letter-spacing: .12em !important; }
.langsw a, .langsw button { border-radius: 4px !important; min-height: 26px !important; padding: 4px 10px !important; font-size: .7rem !important; }
.site-header { background: #fff !important; box-shadow: 0 1px 0 rgba(11,19,43,.08), 0 8px 24px -18px rgba(11,19,43,.35); border-bottom: 0 !important; }
.site-header .wrap { min-height: 76px; }
.site-header .brand img { height: 46px; width: auto; }
.nav-list a { font: 500 .95rem/1 var(--ui) !important; letter-spacing: 0 !important; text-transform: none !important; color: var(--navy) !important; padding: 8px 2px !important; }
.nav-list a:hover { color: var(--gold-ink) !important; }
.nav-list a[aria-current="page"] { color: var(--gold-ink) !important; }
.site-nav .btn { border-radius: 6px !important; background: var(--gold) !important; border-color: var(--gold) !important; color: var(--navy) !important; font: 600 .9rem/1 var(--ui) !important; letter-spacing: 0 !important; text-transform: none !important; padding: 13px 20px !important; }
.site-nav .btn:hover { filter: brightness(1.05); }

.v5-footer { background: #070d1f; color: #c9c3b5; padding: 0 0 26px; }
.v5f-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; padding: clamp(32px, 4vw, 44px) clamp(24px, 3vw, 40px); margin: 0 0 clamp(44px, 5vw, 64px); transform: translateY(-1px); background: linear-gradient(120deg, #0b132b, #15203f); border: 1px solid rgba(197,160,89,.35); border-top: 0; border-radius: 0 0 14px 14px; }
.v5f-h { margin: 0; font: 500 clamp(1.5rem, 2.6vw, 2.1rem)/1.2 var(--display); color: #fbf8f1; }
.v5f-p { margin: 8px 0 0; font: 400 1rem/1.5 var(--text); color: #c9c3b5; }
.v5-btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 24px; border-radius: 6px; background: var(--gold); color: var(--navy); font: 600 .95rem/1 var(--ui); text-decoration: none; white-space: nowrap; }
.v5-btn:hover { filter: brightness(1.06); }
.v5f-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: clamp(26px, 4vw, 56px); padding-bottom: clamp(36px, 4vw, 48px); border-bottom: 1px solid rgba(197,160,89,.18); }
.v5f-logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: #fbf8f1; font: 500 1.25rem/1 var(--display); letter-spacing: .04em; text-transform: uppercase; }
.v5f-logo small { font: 500 .62rem/1 var(--ui); letter-spacing: .38em; color: var(--gold); }
.v5f-logo img { width: 44px; height: 44px; border-radius: 8px; }
.v5f-brand p { margin: 14px 0 0; font: 400 .92rem/1.5 var(--text); }
.v5f-place { color: #8e8a80; }
.v5f-title { margin: 0 0 14px; font: 600 .74rem/1.2 var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.v5-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.v5-footer li a, .v5-footer li span { font: 400 .95rem/1.4 var(--text); color: #e7e2d6; text-decoration: none; }
.v5-footer li a:hover { color: var(--gold-light); }
.v5-footer li em { font-style: normal; color: #8e8a80; font-size: .85em; }
.v5f-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 22px; border: 0 !important; font: 400 .85rem/1.4 var(--ui); color: #8e8a80; }
.v5f-legal a { color: #c9c3b5; }
@media (max-width: 900px) { .v5f-grid { grid-template-columns: 1fr 1fr; } .v5f-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .v5f-grid { grid-template-columns: 1fr; } .v5f-cta { border-radius: 0 0 10px 10px; } .v5-btn { width: 100%; justify-content: center; } }
html[lang="ar"] .v5f-title, html[lang="ar"] .v5f-logo small { letter-spacing: 0; }

/* v5: modern form (all pages) */
.form-card { border-radius: 14px !important; border: 1px solid #e3dccb !important; box-shadow: 0 30px 60px -36px rgba(11,19,43,.5) !important; background: #fff !important; }
.form-card::after { display: none !important; }
.form-card::before { border-bottom-color: #ece6d8 !important; letter-spacing: .14em !important; }
.form-card h2, .form-card h3 { font-weight: 500 !important; font-size: clamp(1.6rem, 2.4vw, 2rem) !important; line-height: 1.2 !important; }
.form-grid { gap: 16px 18px !important; }
.field label { font: 600 .82rem/1.4 var(--ui) !important; letter-spacing: 0 !important; text-transform: none !important; color: var(--navy) !important; margin-bottom: 6px !important; }
.field input, .field select { min-height: 48px !important; padding: 10px 14px !important; font: 400 1rem/1.4 var(--ui) !important; border: 1px solid #d9d1bf !important; border-radius: 8px !important; background-color: #fbf9f4 !important; }
.field select { padding-right: 36px !important; background-position: right 14px center !important; }
.field input:focus, .field select:focus { border-color: var(--navy) !important; box-shadow: 0 0 0 3px rgba(197,160,89,.25) !important; background-color: #fff !important; }
.field [aria-invalid="true"] { border-color: var(--error) !important; }
.form-card .btn { border-radius: 8px !important; min-height: 54px !important; font: 600 1rem/1 var(--ui) !important; letter-spacing: 0 !important; text-transform: none !important; }
.check { font-size: .92rem !important; }
/* Home already ends with the form: no second call-to-action box in the footer */
main.v3 ~ .site-footer .v5f-cta { display: none; }
main.v3 ~ .site-footer { padding-top: clamp(44px, 5vw, 64px); }

/* Header: one clean light bar (language switch no longer a dark strip) */
.langbar { background: #f6f1e6 !important; border-bottom: 1px solid #ece4d3; }
.langbar-tag { color: var(--gold-ink) !important; }
.langsw a, .langsw button { color: var(--navy) !important; border-color: rgba(11,19,43,.18) !important; background: transparent !important; }
.langsw a.on, .langsw button.on, .langsw a:hover { background: var(--navy) !important; border-color: var(--navy) !important; color: #fff !important; }
.site-header { z-index: 100; }
/* Footer call-to-action: full rounded card with space above */
.v5f-cta { border-top: 1px solid rgba(197,160,89,.35) !important; border-radius: 14px !important; margin-top: clamp(44px, 5vw, 64px) !important; transform: none !important; }

/* Divisions dropdown in the main menu */
.nav-list .has-drop { position: relative; }
.nav-drop { display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); z-index: 60; width: min(760px, 92vw); background: #fff; border: 1px solid #e6dfcf; border-top: 3px solid var(--gold); border-radius: 12px; box-shadow: 0 24px 48px -24px rgba(11,19,43,.35); padding: 18px 20px; grid-template-columns: repeat(4, 1fr); gap: 14px 18px; }
.nav-list .has-drop:hover .nav-drop, .nav-list .has-drop:focus-within .nav-drop { display: grid; }
.nav-drop p { margin: 0 0 6px; font: 600 .7rem/1.3 var(--ui); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink, #8a6a2c); }
.nav-drop ul { list-style: none; margin: 0; padding: 0; }
.nav-drop li a { display: block; padding: 5px 0 !important; font-size: .9rem !important; white-space: normal; }
.nav-drop li a::after { display: none !important; }
@media (max-width: 1020px) { .nav-drop { position: static; transform: none; width: auto; display: grid; grid-template-columns: 1fr 1fr; box-shadow: none; border: 0; padding: 4px 0 8px 12px; } }
