/* ==========================================================================
   Centre for Grand Strategy and Cultural Development — Ghana
   Shared design system. Palette is drawn from the Centre's emblem:
   midnight navy globe, burnished gold, ivory paper and the Ghana tricolour.
   ========================================================================== */

:root {
  --space: #03070F;
  --navy-950: #050B1A;
  --navy-900: #0A1530;
  --navy-800: #102148;
  --navy-700: #1A2F63;
  --navy-600: #284384;
  --gold: #D4A64A;
  --gold-bright: #F1CB72;
  --gold-deep: #9C7222;
  --ivory: #F4EEE1;
  --paper: #FAF7F0;
  --ink: #0B1428;
  --ink-soft: #3A4560;
  --mist: #A7B2CA;
  --mist-dim: #6F7B96;
  --gh-red: #CE1126;
  --gh-gold: #FCD116;
  --gh-green: #006B3F;
  --line-dark: rgba(241, 203, 114, .18);
  --line-dark-soft: rgba(244, 238, 225, .09);
  --line-light: rgba(11, 20, 40, .12);

  --f-display: "Cinzel", "Trajan Pro", Georgia, serif;
  --f-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --f-sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --gutter: clamp(20px, 4vw, 56px);
  --maxw: 1320px;
  --header-h: 84px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--navy-950);
  color: var(--ivory);
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, video, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 4px; }
::selection { background: var(--gold); color: var(--ink); }
[hidden] { display: none !important; }

.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: fixed; left: 16px; top: -60px; z-index: 300; background: var(--gold); color: var(--ink);
  padding: 10px 16px; font-weight: 600; transition: top .2s;
}
.skip-link:focus { top: 16px; }

/* film grain across the whole site */
body::after {
  content: ""; position: fixed; inset: -50%; z-index: 250; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -4%); }
  60% { transform: translate(-4%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* ---------- layout primitives ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 980px; }
.section { position: relative; padding-block: clamp(88px, 12vw, 168px); }
.section--tight { padding-block: clamp(64px, 8vw, 112px); }
.section--light { background: var(--paper); color: var(--ink); color-scheme: light; }
.section--ivory { background: var(--ivory); color: var(--ink); color-scheme: light; }
.section--navy { background: var(--navy-900); }
.section--space { background: var(--space); }

.grid { display: grid; gap: clamp(28px, 4vw, 64px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.span-4 { grid-column: span 4; } .span-5 { grid-column: span 5; } .span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; } .span-8 { grid-column: span 8; }
.start-7 { grid-column: 7 / -1; } .start-8 { grid-column: 8 / -1; }
.align-end { align-items: end; } .align-center { align-items: center; } .align-start { align-items: start; }
.stack > * + * { margin-top: 18px; }
.stack-lg > * + * { margin-top: clamp(22px, 2.6vw, 36px); }

/* ---------- typography ---------- */
.eyebrow {
  display: inline-flex; align-items: flex-start; gap: 14px; text-wrap: balance;
  font-family: var(--f-mono); font-size: 12px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before { content: ""; flex: none; width: 36px; height: 1px; margin-top: calc(.85em - .5px); background: currentColor; opacity: .7; }
.section--light .eyebrow, .section--ivory .eyebrow { color: var(--gold-deep); }
.eyebrow--plain::before { display: none; }

.display {
  font-family: var(--f-display); font-weight: 600; text-transform: uppercase;
  font-size: clamp(2.8rem, 9.4vw, 9.2rem); line-height: .94; letter-spacing: .05em;
}
.h1 {
  font-family: var(--f-serif); font-weight: 500;
  font-size: clamp(2.9rem, 6.6vw, 6.2rem); line-height: 1.0; letter-spacing: -.012em;
  text-wrap: balance;
}
.h2 {
  font-family: var(--f-serif); font-weight: 500;
  font-size: clamp(2.3rem, 4.6vw, 4.3rem); line-height: 1.04; letter-spacing: -.01em;
  text-wrap: balance;
}
.h3 {
  font-family: var(--f-serif); font-weight: 600;
  font-size: clamp(1.55rem, 2.3vw, 2.1rem); line-height: 1.15; text-wrap: balance;
}
.h4 { font-family: var(--f-sans); font-weight: 600; font-size: 1.05rem; line-height: 1.4; letter-spacing: .01em; }
.h1 em, .h2 em, .h3 em { font-style: italic; color: var(--gold-bright); }
.section--light .h1 em, .section--light .h2 em, .section--ivory .h2 em, .section--light .h3 em, .section--ivory .h3 em { color: var(--gold-deep); }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.32rem); line-height: 1.65; color: var(--mist); max-width: 60ch; }
.section--light .lead, .section--ivory .lead { color: var(--ink-soft); }
.body-copy { max-width: 64ch; color: var(--mist); }
.section--light .body-copy, .section--ivory .body-copy { color: var(--ink-soft); }
.body-copy p + p { margin-top: 1.1em; }
.mono { font-family: var(--f-mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
.gold { color: var(--gold); }
.tabular { font-variant-numeric: tabular-nums; }

.pullquote {
  font-family: var(--f-serif); font-style: italic; font-weight: 500;
  font-size: clamp(1.9rem, 3.8vw, 3.4rem); line-height: 1.15; text-wrap: balance;
}
.pullquote::before { content: "\201C"; color: var(--gold); margin-right: .05em; }
.pullquote::after { content: "\201D"; color: var(--gold); margin-left: .02em; }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--gold); --fg: var(--ink);
  position: relative; display: inline-flex; align-items: center; gap: 14px;
  padding: 16px 26px; border: 1px solid var(--bg); background: var(--bg); color: var(--fg);
  font-family: var(--f-sans); font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  cursor: pointer; overflow: hidden; isolation: isolate; line-height: 1;
  transition: color .5s var(--ease), border-color .5s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ivory);
  transform: translateY(101%); transition: transform .55s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { border-color: var(--ivory); }
.btn .arrow { width: 18px; height: 10px; flex: none; transition: transform .5s var(--ease); }
.btn:hover .arrow { transform: translateX(5px); }
.btn--ghost { --bg: transparent; --fg: var(--ivory); border-color: rgba(244, 238, 225, .38); }
.btn--ghost::before { background: var(--gold); }
.btn--ghost:hover { color: var(--ink); border-color: var(--gold); }
.section--light .btn--ghost, .section--ivory .btn--ghost { --fg: var(--ink); border-color: rgba(11, 20, 40, .3); }
.section--light .btn:not(.btn--ghost)::before, .section--ivory .btn:not(.btn--ghost)::before { background: var(--navy-900); }
.section--light .btn:not(.btn--ghost):hover, .section--ivory .btn:not(.btn--ghost):hover { color: var(--ivory); border-color: var(--navy-900); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 12px; text-wrap: balance; font-size: 13px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--gold); padding-bottom: 6px; border-bottom: 1px solid currentColor;
}
.section--light .link-arrow, .section--ivory .link-arrow { color: var(--gold-deep); }
.link-arrow .arrow { width: 18px; height: 10px; transition: transform .5s var(--ease); }
.link-arrow:hover .arrow { transform: translateX(5px); }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 120; height: var(--header-h);
  transition: background .5s var(--ease), border-color .5s var(--ease), transform .6s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(5, 11, 26, .78); border-bottom-color: var(--line-dark-soft);
  -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2);
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: none; }
.brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.brand img { width: 46px; height: auto; flex: none; filter: drop-shadow(0 4px 14px rgba(212, 166, 74, .25)); }
.brand-text { display: flex; flex-direction: column; gap: 5px; line-height: 1; }
.brand-text b { font-family: var(--f-display); font-weight: 700; font-size: 15px; letter-spacing: .14em; }
.brand-text span { font-family: var(--f-mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }

.nav { display: flex; align-items: center; gap: clamp(18px, 2vw, 34px); }
.nav a:not(.btn) {
  position: relative; font-size: 12.5px; font-weight: 600; letter-spacing: .15em; text-transform: uppercase;
  color: rgba(244, 238, 225, .82); padding-block: 8px; transition: color .3s;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.nav a:not(.btn):hover, .nav a[aria-current="page"]:not(.btn) { color: var(--ivory); }
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]:not(.btn)::after { transform: scaleX(1); transform-origin: left; }
.nav .btn { padding: 13px 20px; font-size: 11.5px; }

.menu-toggle {
  display: none; width: 48px; height: 48px; border: 1px solid var(--line-dark); background: transparent; cursor: pointer;
  position: relative; flex: none;
}
.menu-toggle span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--ivory); transition: transform .5s var(--ease), opacity .3s; }
.menu-toggle span:nth-child(1) { top: 18px; } .menu-toggle span:nth-child(2) { top: 23.5px; } .menu-toggle span:nth-child(3) { top: 29px; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 110; background: var(--navy-950);
  display: flex; flex-direction: column; justify-content: center; padding: calc(var(--header-h) + 20px) var(--gutter) 40px;
  clip-path: inset(0 0 100% 0); transition: clip-path .8s var(--ease-in-out); visibility: hidden;
}
.menu-open .mobile-menu { clip-path: inset(0 0 0 0); visibility: visible; }
.mobile-menu ol { counter-reset: m; display: grid; gap: 4px; }
.mobile-menu li { counter-increment: m; overflow: hidden; }
.mobile-menu a {
  display: flex; align-items: baseline; gap: 18px; font-family: var(--f-display); font-weight: 600;
  font-size: clamp(1.8rem, 7.5vw, 3rem); letter-spacing: .04em; padding-block: 4px;
  transform: translateY(110%); transition: transform .8s var(--ease);
}
.mobile-menu a::before { content: "0" counter(m); font-family: var(--f-mono); font-size: 12px; color: var(--gold); letter-spacing: .1em; }
.menu-open .mobile-menu a { transform: none; }
.menu-open .mobile-menu li:nth-child(2) a { transition-delay: .05s; } .menu-open .mobile-menu li:nth-child(3) a { transition-delay: .1s; }
.menu-open .mobile-menu li:nth-child(4) a { transition-delay: .15s; } .menu-open .mobile-menu li:nth-child(5) a { transition-delay: .2s; }
.menu-open .mobile-menu li:nth-child(6) a { transition-delay: .25s; } .menu-open .mobile-menu li:nth-child(7) a { transition-delay: .3s; }
.mobile-menu .mobile-meta { margin-top: 40px; color: var(--mist); font-size: 14px; display: grid; gap: 6px; }
.menu-open { overflow: hidden; }

/* ---------- kente band ---------- */
.kente {
  height: 14px; position: relative;
  background:
    repeating-linear-gradient(90deg,
      var(--gold) 0 26px, var(--navy-950) 26px 30px,
      var(--gh-green) 30px 46px, var(--navy-950) 46px 50px,
      var(--gh-red) 50px 60px, var(--navy-950) 60px 64px,
      var(--gh-gold) 64px 72px, var(--navy-950) 72px 76px,
      var(--navy-700) 76px 104px, var(--navy-950) 104px 108px);
}
.kente::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(5, 11, 26, .35) 3px 4px);
}
.kente--thin { height: 6px; }
.tricolour { display: flex; height: 3px; }
.tricolour i { flex: 1; } .tricolour i:nth-child(1) { background: var(--gh-red); } .tricolour i:nth-child(2) { background: var(--gh-gold); } .tricolour i:nth-child(3) { background: var(--gh-green); }

/* ---------- page hero (inner pages) ---------- */
.page-hero {
  position: relative; min-height: 92svh; display: flex; align-items: flex-end; overflow: hidden;
  padding: calc(var(--header-h) + 60px) 0 clamp(56px, 8vw, 104px); isolation: isolate;
}
.page-hero__media { position: absolute; inset: -8% 0 0; z-index: -2; }
.page-hero__media img, .page-hero__media video { width: 100%; height: 100%; object-fit: cover; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(5, 11, 26, .72) 0%, rgba(5, 11, 26, .18) 34%, rgba(5, 11, 26, .55) 66%, var(--navy-950) 100%),
    linear-gradient(90deg, rgba(5, 11, 26, .78) 0%, rgba(5, 11, 26, 0) 70%);
}
.page-hero .display { font-size: clamp(2.8rem, 7.6vw, 7.8rem); }
.page-hero .crumbs { display: flex; gap: 12px; align-items: center; margin-bottom: 28px; color: var(--mist); }
.page-hero .crumbs a:hover { color: var(--gold-bright); }
.page-hero .crumbs span[aria-hidden] { color: var(--gold); }
.page-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: 48px; align-items: end; }
.page-hero__aside { border-left: 1px solid var(--line-dark); padding-left: 28px; color: var(--mist); font-size: 15.5px; }
.page-hero__aside .mono { color: var(--gold); display: block; margin-bottom: 12px; }
.hero-coords {
  position: absolute; right: var(--gutter); top: calc(var(--header-h) + 28px); text-align: right; color: var(--ivory);
  padding: 10px 14px; background: rgba(5, 11, 26, .5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); text-shadow: 0 1px 8px rgba(5, 11, 26, .85);
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .18em; line-height: 1.9; text-transform: uppercase;
}
.hero-coords b { color: var(--gold-bright); font-weight: 500; }

.scroll-cue {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 40px; color: var(--mist);
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
}
.scroll-cue i { width: 1px; height: 44px; background: linear-gradient(var(--gold), transparent); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--ivory); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { to { top: 110%; } }

/* ---------- reveal / split ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal="scale"] { transform: scale(.94); }
.js [data-reveal="scale"].is-in { transform: none; }
.js [data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.js [data-split] .w > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); }
.js [data-split].is-in .w > span { transform: none; }
.js [data-stagger] > * { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js [data-stagger].is-in > * { opacity: 1; transform: none; }

.img-mask { position: relative; overflow: hidden; }
.img-mask img, .img-mask video { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 1.8s var(--ease); }
.js .img-mask::after {
  content: ""; position: absolute; inset: 0; background: var(--navy-950); transform-origin: top;
  transition: transform 1.3s var(--ease-in-out);
}
.section--light .img-mask::after, .section--ivory .img-mask::after { background: var(--paper); }
.js .img-mask.is-in::after { transform: scaleY(0); }
.img-mask.is-in img, .img-mask.is-in video { transform: scale(1.0); }
.no-js .img-mask img { transform: none; }

/* ---------- tiles, lists, stats ---------- */
.rule-list { border-top: 1px solid var(--line-dark); }
.section--light .rule-list, .section--ivory .rule-list { border-color: var(--line-light); }
.rule-list li {
  display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 18px; align-items: baseline;
  padding: 20px 0; border-bottom: 1px solid var(--line-dark-soft);
}
.section--light .rule-list li, .section--ivory .rule-list li { border-color: var(--line-light); }
.rule-list .n { font-family: var(--f-mono); font-size: 12px; color: var(--gold); letter-spacing: .1em; }
.section--light .rule-list .n, .section--ivory .rule-list .n { color: var(--gold-deep); }

.stat { display: flex; flex-direction: column; gap: 10px; padding-top: 22px; border-top: 1px solid var(--line-dark); }
.section--light .stat, .section--ivory .stat { border-color: var(--line-light); }
.stat b { font-family: var(--f-display); font-weight: 600; font-size: clamp(2.6rem, 4.6vw, 4rem); line-height: 1; color: var(--gold-bright); }
.section--light .stat b, .section--ivory .stat b { color: var(--gold-deep); }
.stat > span { color: var(--mist); font-size: 15px; }
.section--light .stat > span, .section--ivory .stat > span { color: var(--ink-soft); }
.stat b span { font: inherit; color: inherit; }

.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; padding: 9px 16px; border: 1px solid var(--line-dark);
  font-size: 13px; letter-spacing: .04em; border-radius: 999px; color: var(--ivory); background: rgba(244, 238, 225, .02);
}
.section--light .chip, .section--ivory .chip { border-color: var(--line-light); color: var(--ink); background: rgba(255, 255, 255, .5); }

/* pillar icon tiles (from the brand board) */
.pillars { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--line-light); }
.pillar { padding: 34px 26px 38px 0; border-right: 1px solid var(--line-light); display: flex; flex-direction: column; gap: 14px; }
.pillar + .pillar { padding-left: 26px; }
.pillar:last-child { border-right: 0; padding-right: 0; }
.pillar .ico {
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid currentColor;
}
.pillar .ico svg { width: 28px; height: 28px; }
.pillar h3 { font-family: var(--f-sans); font-weight: 700; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; line-height: 1.35; }
.pillar p { color: var(--ink-soft); font-size: 15px; line-height: 1.6; }
.pillar:nth-child(1) .ico { color: var(--gh-green); } .pillar:nth-child(2) .ico { color: var(--gh-red); }
.pillar:nth-child(3) .ico { color: var(--gold-deep); } .pillar:nth-child(4) .ico { color: var(--gh-green); }
.pillar:nth-child(5) .ico { color: var(--navy-700); }

/* media band with video */
.media-band { position: relative; height: 100svh; min-height: 560px; overflow: hidden; display: flex; align-items: flex-end; isolation: isolate; }
.media-band video, .media-band > img { position: absolute; inset: -10% 0; width: 100%; height: 120%; object-fit: cover; z-index: -2; }
.media-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(5, 11, 26, .7) 0%, rgba(5, 11, 26, .15) 70%),
    linear-gradient(180deg, var(--navy-950) 0%, rgba(5, 11, 26, .35) 22%, rgba(5, 11, 26, .5) 55%, rgba(5, 11, 26, .94) 100%);
}
.media-band .container { padding-bottom: clamp(56px, 8vw, 110px); }
.media-band .eyebrow { color: var(--gold-bright); text-shadow: 0 1px 14px rgba(5, 11, 26, .9); }
.media-band .display, .media-band .h1 { text-shadow: 0 2px 30px rgba(5, 11, 26, .55); }
.media-band .hud-line { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 48px; padding-top: 18px; border-top: 1px solid var(--line-dark); color: var(--mist); }

/* editorial card */
.card {
  position: relative; display: flex; flex-direction: column; background: rgba(244, 238, 225, .025);
  border: 1px solid var(--line-dark-soft); transition: border-color .5s var(--ease), transform .7s var(--ease);
}
.card:hover { border-color: var(--line-dark); transform: translateY(-4px); }
.section--light .card, .section--ivory .card { background: #fff; border-color: var(--line-light); }
.card__media { aspect-ratio: 4 / 3; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.card:hover .card__media img { transform: scale(1.05); }
.card__body { padding: 28px 28px 32px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card__body .mono { color: var(--gold); }
.section--light .card__body .mono, .section--ivory .card__body .mono { color: var(--gold-deep); }
.card__body p { color: var(--mist); font-size: 15.5px; }
.section--light .card__body p, .section--ivory .card__body p { color: var(--ink-soft); }

/* ---------- portrait frame (leadership photos) ---------- */
.portrait-frame {
  position: relative; margin: 0; aspect-ratio: 4 / 5; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 85% at 50% 16%, #2d5099 0%, #15295b 36%, #091535 70%, #050b1a 100%);
}
.portrait-frame::before { content: ""; position: absolute; inset: 16px; border: 1px solid rgba(241, 203, 114, .42); z-index: 3; pointer-events: none; }
.portrait-frame__aura { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.portrait-frame__aura::before { content: ""; position: absolute; inset: 0; background: url("../img/emblem.png") center 10% / 74% no-repeat; opacity: .07; }
.portrait-frame__aura::after {
  content: ""; position: absolute; left: 50%; top: 33%; width: 78%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%;
  border: 1px solid rgba(241, 203, 114, .3); box-shadow: inset 0 0 90px rgba(241, 203, 114, .14), 0 0 100px rgba(241, 203, 114, .1);
}
.portrait-frame .portrait-frame__photo {
  position: absolute; left: 0; right: 0; bottom: 0; top: 7%; width: 100%; height: 93%; z-index: 1;
  object-fit: cover; object-position: 50% 0; transform-origin: 50% 100%;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .45));
  -webkit-mask-image: linear-gradient(180deg, #000 74%, transparent 100%); mask-image: linear-gradient(180deg, #000 74%, transparent 100%);
}
.js .portrait-frame.img-mask::after { z-index: 4; }
.nowrap { white-space: nowrap; }
.portrait-frame__caption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; margin: 0; padding: 80px 36px 34px;
  display: flex; flex-direction: column; gap: 8px; background: linear-gradient(180deg, transparent, rgba(5, 11, 26, .9) 62%);
}
.portrait-frame__caption b { font-family: var(--f-serif); font-weight: 600; font-size: clamp(1.45rem, 2.2vw, 1.95rem); line-height: 1.1; color: var(--ivory); }
.portrait-frame__caption span { font-family: var(--f-mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-bright); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; isolation: isolate; text-align: center; }
.cta-band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .55; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at center, rgba(5, 11, 26, .35), var(--navy-950) 78%); }
.cta-band .h1 { max-width: 16ch; margin-inline: auto; }
.cta-band .btn-row { justify-content: center; margin-top: 44px; }

/* ---------- footer ---------- */
.site-footer { background: var(--space); position: relative; overflow: hidden; }
.marquee { overflow: hidden; border-block: 1px solid var(--line-dark-soft); padding-block: 26px; white-space: nowrap; }
.marquee__track { display: inline-flex; gap: 48px; animation: marquee 38s linear infinite; padding-left: 48px; }
.marquee__track span { font-family: var(--f-display); font-weight: 600; font-size: clamp(2.2rem, 5.5vw, 4.8rem); letter-spacing: .06em; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(241, 203, 114, .55); }
.marquee__track span:nth-child(odd) { color: var(--ivory); -webkit-text-stroke: 0; }
.marquee__track i { font-style: normal; color: var(--gold); font-size: clamp(1.4rem, 3vw, 2.4rem); align-self: center; }
@keyframes marquee { to { transform: translateX(-50%); } }

.footer-main { display: grid; grid-template-columns: minmax(0, 1.25fr) repeat(3, minmax(0, 1fr)); gap: 48px; padding-block: 80px 64px; }
.footer-brand img { width: 150px; background: var(--paper); border-radius: 4px; padding: 10px 12px; }
.footer-brand p { margin-top: 24px; color: var(--mist); font-size: 15px; max-width: 34ch; }
.footer-brand .motto { font-family: var(--f-serif); font-style: italic; font-size: 1.6rem; color: var(--gold-bright); margin-top: 20px; }
.footer-col h4 { font-family: var(--f-mono); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); font-weight: 500; margin-bottom: 20px; }
.footer-col li + li { margin-top: 10px; }
.footer-col a, .footer-col li { color: rgba(244, 238, 225, .78); font-size: 15px; }
.footer-col a:hover { color: var(--gold-bright); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 14px 32px; flex-wrap: wrap; padding-block: 26px 36px; border-top: 1px solid var(--line-dark-soft); color: var(--mist-dim); font-size: 13px; }
.footer-bottom p { max-width: 70ch; }
.footer-bottom .credit { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--mist); }
.footer-bottom .credit::before { content: ""; width: 22px; height: 1px; background: var(--gold); }
.footer-bottom .credit a, .footer-bottom .credit span { color: var(--gold-bright); font-weight: 500; }
.footer-bottom .credit a:hover { color: var(--ivory); }

/* ---------- page curtain transition ---------- */
.curtain {
  position: fixed; inset: 0; z-index: 400; pointer-events: none; background: var(--navy-950);
  display: grid; place-items: center; transform-origin: top; transform: scaleY(0);
}
.curtain img { width: 76px; opacity: 0; transition: opacity .3s; }
.curtain::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, var(--gh-red), var(--gh-gold), var(--gh-green)); }
.is-loading .curtain { transform: scaleY(1); }
.is-loading .curtain img { opacity: 1; }
.is-entering .curtain { transform: scaleY(0); transform-origin: top; transition: transform 1s var(--ease-in-out) .1s; }
.is-leaving .curtain { transform: scaleY(1); transform-origin: bottom; transition: transform .7s var(--ease-in-out); pointer-events: all; }
.is-leaving .curtain img { opacity: 1; transition-delay: .4s; }

/* ---------- responsive ---------- */
@media (min-width: 1181px) {
  .pillar h3 { min-height: calc(2 * 1.35em); }
}
@media (max-width: 1180px) {
  .nav a:not(.btn) { display: none; }
  .pillar:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .page-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: 32px; }
  .page-hero .display { font-size: clamp(2.8rem, 6.8vw, 7.8rem); }
  .menu-toggle { display: block; }
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pillar, .pillar + .pillar { padding: 30px 24px 32px 0; border-right: 0; border-bottom: 1px solid var(--line-light); }
  .pillar:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line-light); }
  .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  :root { --header-h: 72px; }
  body { font-size: 16px; }
  .grid-2, .grid-3, .grid-12 { grid-template-columns: minmax(0, 1fr); }
  .span-4, .span-5, .span-6, .span-7, .span-8 { grid-column: auto; }
  .start-7, .start-8 { grid-column: auto; }
  .page-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .hero-coords { display: none; }
  .brand-text span { display: none; }
  .brand img { width: 40px; }
  .nav .btn { display: none; }
}
@media (max-width: 900px) {
  /* comfortable tap targets on touch screens */
  .footer-col a { display: inline-block; padding-block: 6px; }
  .footer-col li + li { margin-top: 2px; }
  .page-hero .crumbs a { display: inline-block; padding-block: 8px; }
}
@media (max-width: 600px) {
  .cta-band .btn-row { flex-direction: column; align-items: stretch; width: min(100%, 320px); margin-inline: auto; }
  .cta-band .btn-row .btn { justify-content: center; }
  .pillars { grid-template-columns: minmax(0, 1fr); }
  .pillar:nth-child(even) { padding-left: 0; border-left: 0; }
  .footer-main { grid-template-columns: minmax(0, 1fr); gap: 36px; padding-block: 56px 40px; }
  .rule-list li { grid-template-columns: 40px minmax(0, 1fr); }
  .btn { padding: 15px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  body::after { animation: none; }
}

@media (max-width: 420px) {
  .eyebrow { letter-spacing: .16em; }
  .link-arrow { letter-spacing: .1em; }
}
