/* ============================================================
   INCEDE Institute® — master stylesheet
   Brand system: see BRAND.md (MANDATORY).
   Palette: deep navy #000d52 (primary) · amber #f49e0b (sole
   accent) · off-white #f9fafc · charcoal #202938 · grey #6b7380.
   Derived shades: #000838 (deeper bands) · #0a1a66 (cards on
   dark) · soft amber #f6b953 · amber-hover #d88a06.
   Contrast rule: text on amber backgrounds must be navy #000d52.
   ============================================================ */

:root {
  --ink: #000d52;            /* Deep Navy — primary brand color */
  --ink-deep: #000838;
  --ink-soft: #0a1a66;
  --white: #ffffff;
  --grey-dark: #5c6472;
  --grey-light: #c9d0e2;
  --paper: #f9fafc;
  --emerald: #f49e0b;
  --gold: #f6b953;
  --rule: rgba(255, 255, 255, 0.14);
  --rule-dark: rgba(32, 41, 56, 0.16);
  --font: "Futura", "Futura PT", "Jost", "Century Gothic", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 84px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); /* anchored sections clear the fixed header */ }
html.lenis { height: auto; scroll-behavior: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  font-family: var(--font);
  background: var(--ink);
  color: var(--white);
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--emerald); color: #000d52; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

.wrap { width: min(1200px, 90vw); margin-inline: auto; }

/* ---------- Typography ---------- */
h1, h2, h3, .display { font-weight: 600; line-height: 1.08; letter-spacing: -0.01em; }

.display { font-size: clamp(2.6rem, 6.5vw, 5.2rem); text-transform: uppercase; }
/* Small phones: keep the longest word (“ORGANIZATIONS”) inside the column —
   the .line-mask overflow clip would otherwise cut it off */
@media (max-width: 480px) { .display { font-size: clamp(1.85rem, 9vw, 2.3rem); } }
h2 { font-size: clamp(1.9rem, 4vw, 3.2rem); text-transform: uppercase; }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); font-weight: 500; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.9rem;
  font-size: 0.72rem; font-weight: 400; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--grey-light);
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--gold); }
.eyebrow.on-light { color: var(--grey-dark); }

.lede { font-size: clamp(1rem, 1.4vw, 1.2rem); color: rgba(255,255,255,0.72); max-width: 34em; }
.accent-em { color: var(--emerald); font-style: normal; }
/* Maldives flag colours (red · white · green) on the word "Maldivian" */
.flag-word {
  font-style: normal;
  background: linear-gradient(100deg, #d21034 0%, #e8465f 22%, #f9fafc 50%, #1fbf82 78%, #007e3a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.gold-em { color: var(--gold); font-style: normal; }

/* ---------- Scroll progress ---------- */
.progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--emerald), var(--gold));
  z-index: 1000;
}

/* ---------- Custom cursor ---------- */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: 999;
  border-radius: 50%; transform: translate(-50%, -50%);
}
.cursor-dot { width: 6px; height: 6px; background: var(--gold); }
.cursor-ring {
  width: 34px; height: 34px; border: 1px solid rgba(255,255,255,0.35);
  transition: width 0.25s var(--ease), height 0.25s var(--ease),
              border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.cursor-ring.is-active {
  width: 58px; height: 58px;
  border-color: var(--emerald); background: rgba(244,158,11,0.08);
}
@media (pointer: coarse) { .cursor-dot, .cursor-ring { display: none; } }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 900;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease),
              height 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
  height: var(--nav-h);
  display: flex; align-items: center;
}
.site-header.scrolled {
  height: 64px;
  background: rgba(0, 13, 82, 0.85);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--rule);
}
.nav { display: flex; align-items: center; justify-content: space-between; width: 100%; }
/* Nav spans full width with fixed comfortable gutters (Cornerstone: px-6 / md:px-[60px]),
   independent of the content column, so logo and CTA never crowd the viewport edge. */
.site-header .wrap {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding-inline: clamp(1.5rem, 4.5vw, 60px);
}

.brand { display: flex; flex-direction: column; line-height: 1.1; transition: transform 0.4s var(--ease); transform-origin: left center; }
.brand-name { font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; font-size: clamp(1.15rem, 1.6vw, 1.4rem); }
.brand-mark { display: block; height: clamp(1.1rem, 1.6vw, 1.35rem); width: auto; color: var(--white); }
.brand-name sup { font-size: 0.42em; }
.brand-sub { font-size: 0.7rem; letter-spacing: 0.48em; text-transform: uppercase; color: var(--grey-light); }
.brand-rule { width: 100%; height: 1px; background: var(--white); margin: 6px 0 5px; opacity: 0.8; }
.site-header.scrolled .brand { transform: scale(0.85); }

.nav-links { display: flex; align-items: center; gap: 2.4rem; }
.nav-links a {
  position: relative; font-size: 0.78rem; font-weight: 400;
  letter-spacing: 0.22em; text-transform: uppercase; padding: 6px 0;
  color: rgba(255,255,255,0.8);
  transition: color 0.3s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--gold); transition: width 0.35s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-cta {
  border: 1px solid var(--emerald); color: var(--white) !important;
  padding: 0.65rem 1.5rem !important; transition: background 0.3s, color 0.3s;
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--emerald); color: #000d52 !important; }

.nav-toggle {
  display: none; background: none; border: 0; color: var(--white);
  font-size: 1.5rem; padding: 0.4rem 0.7rem; margin-right: -0.7rem;
  position: relative; z-index: 2; /* stays tappable above the open panel */
}

/* Menu open: lock the page behind the panel */
html.nav-open, html.nav-open body { overflow: hidden; }

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  /* The scrolled header's backdrop-filter makes it the containing block for
     this fixed panel, so inset:0 would collapse to the header box and spill
     links over the page. Anchor to the header's top-left (= viewport corner)
     with an explicit viewport height instead. */
  .nav-links {
    position: fixed; top: 0; left: 0; width: 100%;
    height: 100vh; height: 100dvh;
    background: var(--ink-deep);
    flex-direction: column; justify-content: center; gap: 2.2rem;
    transform: translateY(-100%); visibility: hidden;
    transition: transform 0.5s var(--ease), visibility 0s 0.5s;
  }
  .nav-links.open {
    transform: translateY(0); visibility: visible;
    transition: transform 0.5s var(--ease);
  }
  .nav-links a { font-size: 1rem; }
}

/* ---------- Hero ---------- */
.hero {
  min-height: 92vh; min-height: 92svh; display: flex; align-items: center;
  position: relative; padding-top: var(--nav-h);
  overflow: hidden; /* clips the drifting grid layer — without this it slides over the sections below while scrolling */
  background:
    radial-gradient(ellipse 70% 55% at 78% 30%, rgba(244,158,11,0.07), transparent 65%),
    radial-gradient(ellipse 50% 60% at 8% 85%, rgba(246,185,83,0.05), transparent 60%),
    var(--ink);
}
.hero::before {
  content: ""; position: absolute; inset: -60% 0 0 0; pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 88px 88px;
  transform: translateY(calc(var(--scroll-drift, 0) * 1px));
}
.hero-inner { position: relative; padding: 6rem 0 5rem; }
.hero .display { margin: 1.6rem 0 1.8rem; max-width: 12em; }

/* masked line reveal */
.line-mask { display: block; overflow: hidden; }
.line-mask > span {
  display: block; transform: translateY(110%);
  animation: line-up 0.9s var(--ease) forwards;
}
.line-mask:nth-child(2) > span { animation-delay: 0.12s; }
.line-mask:nth-child(3) > span { animation-delay: 0.24s; }
@keyframes line-up { to { transform: translateY(0); } }

.hero-ctas { display: flex; gap: 1.2rem; margin-top: 2.6rem; flex-wrap: wrap; }

.hero-motto {
  position: absolute; right: 0; bottom: 2.2rem;
  font-size: 0.72rem; letter-spacing: 0.34em; text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.7rem;
  padding: 1rem 2.1rem; font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  border: 1px solid transparent;
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.2s;
  will-change: transform;
}
.btn-solid { background: var(--emerald); color: #000d52; font-weight: 600; }
.btn-solid:hover { background: #d88a06; }
.btn-ghost { border-color: rgba(255,255,255,0.35); color: var(--white); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--ink-soft); }
.btn .arrow { transition: transform 0.3s var(--ease); }
.btn:hover .arrow { transform: translateX(5px); }

/* ---------- Marquee ---------- */
.marquee-band { border-block: 1px solid var(--rule); padding: 1.35rem 0; overflow: hidden; background: var(--ink-deep); }
.marquee { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee-band:hover .marquee { animation-play-state: paused; }
.marquee span {
  font-size: 0.74rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: rgba(255,255,255,0.5); padding: 0 2.6rem; white-space: nowrap;
}
.marquee span i { color: var(--gold); font-style: normal; padding-right: 2.6rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(5rem, 10vw, 8.5rem) 0; position: relative; }
.section-light { background: var(--paper); color: var(--ink); }
.section-light .lede { color: var(--grey-dark); }
.section-deep { background: var(--ink-deep); }
.section-head { max-width: 780px; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.section-head h2 { margin: 1.4rem 0 1.2rem; }

.rule-fade { height: 1px; background: linear-gradient(90deg, transparent, var(--rule), transparent); border: 0; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: 0.1s; }
.reveal[data-d="2"] { transition-delay: 0.2s; }
.reveal[data-d="3"] { transition-delay: 0.3s; }
.reveal[data-d="4"] { transition-delay: 0.4s; }

/* ---------- Card grids (spotlight + tilt) ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.2rem; }
@media (max-width: 980px) { .grid-3, .grid-4, .grid-5 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; } }

.card {
  position: relative; padding: 2.4rem 2rem 2.2rem;
  border: 1px solid var(--rule); background: rgba(255,255,255,0.015);
  overflow: hidden; transition: border-color 0.35s, transform 0.35s var(--ease), box-shadow 0.35s;
}
.card::before {  /* mouse-follow spotlight */
  content: ""; position: absolute; inset: 0; opacity: 0;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(244,158,11,0.12), transparent 65%);
  transition: opacity 0.4s; pointer-events: none;
}
.card:hover { border-color: rgba(244,158,11,0.45); transform: translateY(-3px); box-shadow: 0 14px 44px rgba(0,0,0,0.35); }
.card:hover::before { opacity: 1; }

.card .marker {
  font-size: 0.72rem; letter-spacing: 0.3em; color: var(--gold); display: block; margin-bottom: 1.4rem;
}
.card h3 { text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.9rem; }
.card p { font-size: 0.93rem; color: rgba(255,255,255,0.65); }

.section-light .card { border-color: var(--rule-dark); background: var(--white); }
.section-light .card p { color: var(--grey-dark); }
.section-light .card:hover { border-color: var(--emerald); box-shadow: 0 14px 44px rgba(32,41,56,0.12); }

.tilt { transform-style: preserve-3d; }

/* ---------- Split panel (Learn vs Consult) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; min-height: 62vh; }
@media (max-width: 880px) {
  /* stacked panes: don't inherit the desktop 62vh each — that reads as a blank screen */
  .split { grid-template-columns: 1fr; min-height: 0; }
  .split-pane { min-height: 300px; }
}
.split-pane {
  position: relative; padding: clamp(3rem, 6vw, 5.5rem);
  display: flex; flex-direction: column; justify-content: flex-end; gap: 1.1rem;
  border-top: 1px solid var(--rule); overflow: hidden;
  transition: background 0.5s var(--ease);
}
.split-pane + .split-pane { border-left: 1px solid var(--rule); }
.split-pane::after {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity 0.5s;
  background: radial-gradient(60% 70% at 50% 100%, var(--pane-glow, rgba(244,158,11,0.1)), transparent 70%);
  pointer-events: none;
}
.split-pane:hover::after { opacity: 1; }
.split-pane .big-index {
  position: absolute; top: 2rem; right: 2.2rem; font-size: 5.4rem; font-weight: 600;
  color: rgba(255,255,255,0.05); line-height: 1;
}
.split-pane h3 { font-size: clamp(1.6rem, 3vw, 2.4rem); text-transform: uppercase; }
.split-pane p { color: rgba(255,255,255,0.65); max-width: 30em; }
.split-link {
  margin-top: 0.8rem; font-size: 0.78rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--gold); display: inline-flex; gap: 0.6rem; align-items: center;
}

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; text-align: left; }
@media (max-width: 880px) { .stats { grid-template-columns: repeat(2, 1fr); row-gap: 3rem; } }
.stat { border-left: 1px solid var(--rule-dark); padding-left: 1.6rem; }
.stat .num { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 600; color: var(--ink); line-height: 1; }
.stat .num i { color: var(--emerald); font-style: normal; }
.stat .lbl { font-size: 0.72rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--grey-dark); margin-top: 0.7rem; }

/* ---------- Sticky scroll-telling (How We Work) ---------- */
.steps-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 6vw, 6rem); }
@media (max-width: 880px) { .steps-layout { grid-template-columns: 1fr; } }
.steps-sticky { position: sticky; top: 20vh; align-self: start; height: fit-content; }
@media (max-width: 880px) { .steps-sticky { position: static; } }
.step {
  padding: 2.6rem 0; border-top: 1px solid var(--rule);
  opacity: 0.28; transition: opacity 0.5s var(--ease);
}
.step.active { opacity: 1; }
.step .step-no { font-size: 0.78rem; letter-spacing: 0.3em; color: var(--emerald); }
.step h3 { text-transform: uppercase; margin: 0.8rem 0 0.7rem; }
.step p { color: rgba(255,255,255,0.6); max-width: 30em; }

/* ---------- Quote / editorial ---------- */
.quote-block { text-align: left; max-width: 900px; }
.quote-block blockquote {
  font-size: clamp(1.5rem, 3.2vw, 2.5rem); font-weight: 400; line-height: 1.35;
  text-transform: none;
}
.quote-block cite { display: block; margin-top: 1.8rem; font-style: normal; font-size: 0.76rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--grey-dark); }

/* ---------- Programme filters ---------- */
.filters { display: flex; gap: 0.7rem; flex-wrap: wrap; margin-bottom: 2.8rem; }
.filter-btn {
  background: none; border: 1px solid var(--rule); color: rgba(255,255,255,0.7);
  padding: 0.6rem 1.35rem; font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
  transition: all 0.3s;
}
.filter-btn:hover { border-color: var(--gold); color: var(--gold); }
.filter-btn.active { background: var(--white); color: var(--ink); border-color: var(--white); }

.prog-card { display: flex; flex-direction: column; gap: 0.6rem; }
.prog-card .meta { display: flex; justify-content: space-between; font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.45); margin-top: auto; padding-top: 1.4rem; }
.prog-card .tag { color: var(--emerald); }
.prog-card.hide { display: none; }

/* ---------- Upcoming timeline ---------- */
.timeline { border-top: 1px solid var(--rule); }
.tl-row {
  display: grid; grid-template-columns: 160px 1fr auto; gap: 2rem; align-items: center;
  padding: 2.2rem 0.6rem; border-bottom: 1px solid var(--rule);
  transition: background 0.35s, padding-left 0.35s var(--ease);
}
.tl-row:hover { background: rgba(255,255,255,0.025); padding-left: 1.4rem; }
@media (max-width: 760px) { .tl-row { grid-template-columns: 1fr; gap: 0.8rem; } }
.tl-date { font-size: 0.78rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); }
.tl-body h3 { text-transform: uppercase; }
.tl-body p { font-size: 0.9rem; color: rgba(255,255,255,0.6); max-width: 40em; }
.tl-mode { font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; border: 1px solid var(--rule); padding: 0.5rem 1.1rem; color: rgba(255,255,255,0.7); white-space: nowrap; }

/* Completed cohorts — rubber-stamp treatment */
.tl-status { display: flex; flex-direction: column; align-items: flex-end; gap: 0.85rem; }
@media (max-width: 760px) { .tl-status { align-items: flex-start; } }
.tl-stamp {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--emerald); white-space: nowrap;
  border: 2px solid var(--emerald); border-radius: 3px;
  padding: 0.5rem 1.05rem 0.45rem;
  background: rgba(244,158,11,0.07);
  box-shadow: inset 0 0 0 1px rgba(244,158,11,0.28);
  transform: rotate(-6deg);
}
.tl-row.is-done .tl-date, .tl-row.is-done .tl-body h3 { opacity: 0.6; }
.tl-row.is-done .tl-body p { opacity: 0.75; }
.tl-row.is-done .tl-mode { opacity: 0.5; }
.tl-row.is-done:hover .tl-date, .tl-row.is-done:hover .tl-body h3,
.tl-row.is-done:hover .tl-body p, .tl-row.is-done:hover .tl-mode { opacity: 0.9; }
@media (prefers-reduced-motion: reduce) { .tl-stamp { transform: none; } }

/* ---------- CTA band ---------- */
.cta-band {
  text-align: center; padding: clamp(6rem, 12vw, 9rem) 0;
  background:
    radial-gradient(50% 70% at 50% 100%, rgba(244,158,11,0.1), transparent 70%),
    var(--ink-deep);
}
.cta-band h2 { max-width: 16em; margin: 1.4rem auto 2.4rem; }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2.5rem, 6vw, 6rem); }
@media (max-width: 880px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-info-list { margin-top: 2.4rem; display: grid; gap: 1.8rem; }
.contact-info-list .lbl { font-size: 0.7rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--grey-dark); margin-bottom: 0.3rem; }
.contact-info-list a:hover { color: var(--emerald); }

.form { display: grid; gap: 1.6rem; }
.field { position: relative; }
.field label {
  display: block; font-size: 0.7rem; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--grey-dark); margin-bottom: 0.6rem;
}
.field input, .field textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--rule-dark);
  padding: 0.8rem 0; font: inherit; font-size: 1.05rem; color: var(--ink);
  outline: none; transition: border-color 0.3s;
}
.field input:focus, .field textarea:focus { border-color: var(--emerald); }
.field textarea { resize: vertical; min-height: 130px; }
.form-status { font-size: 0.85rem; letter-spacing: 0.06em; min-height: 1.4em; }
.form-status.ok { color: var(--emerald); }
.form-status.err { color: #c0392b; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-deep); border-top: 1px solid var(--rule); padding: 4.5rem 0 2.5rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 3.5rem; }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h4 { font-size: 0.72rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--grey-dark); margin-bottom: 1.2rem; font-weight: 400; }
.footer-grid li { margin-bottom: 0.65rem; }
.footer-grid a { font-size: 0.9rem; color: rgba(255,255,255,0.65); transition: color 0.3s; }
.footer-grid a:hover { color: var(--gold); }
.footer-tagline { font-size: 1.05rem; color: rgba(255,255,255,0.8); max-width: 20em; margin-top: 1rem; }
.footer-base {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  border-top: 1px solid var(--rule); padding-top: 2rem;
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.4);
}
.footer-motto { color: var(--gold); letter-spacing: 0.34em; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: calc(var(--nav-h) + clamp(4rem, 9vw, 7rem)) 0 clamp(3rem, 6vw, 5rem); }
.page-hero h1 { font-size: clamp(2.4rem, 5.5vw, 4.4rem); text-transform: uppercase; margin: 1.4rem 0 1.2rem; }

/* ---------- Insights / Articles ---------- */
.article-list { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.article-row {
  display: grid; grid-template-columns: 150px 1fr auto; gap: 2rem; align-items: baseline;
  padding: 2rem 0.6rem; border-bottom: 1px solid var(--rule);
  transition: background 0.35s, padding-left 0.35s var(--ease);
}
.article-row:hover { background: rgba(255,255,255,0.025); padding-left: 1.4rem; }
@media (max-width: 760px) { .article-row { grid-template-columns: 1fr; gap: 0.5rem; } }
.article-row .a-date { font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); }
.article-row h3 { text-transform: none; letter-spacing: 0; }
.article-row .a-sum { font-size: 0.9rem; color: rgba(255,255,255,0.6); max-width: 46em; margin-top: 0.4rem; }
.article-row .a-tag { font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--emerald); white-space: nowrap; }

.article-page { max-width: 760px; margin-inline: auto; }
.article-page .a-meta { display: flex; gap: 1.6rem; font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--grey-dark); margin: 1.2rem 0 0; flex-wrap: wrap; }
.article-body { margin-top: 3rem; color: rgba(32,41,56,0.88); }
.article-body h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.8rem); text-transform: none; letter-spacing: 0;
  color: var(--ink); margin: 3rem 0 1.1rem; line-height: 1.25;
}
.article-body h3 { color: var(--ink); margin: 2rem 0 0.8rem; font-weight: 500; }
.article-body p { margin-bottom: 1.3rem; font-size: 1.02rem; line-height: 1.75; }
.article-body ul, .article-body ol { margin: 0 0 1.3rem 1.3rem; }
.article-body li { margin-bottom: 0.5rem; }
.article-body strong { font-weight: 500; color: var(--ink); }
.article-body a { color: var(--emerald); border-bottom: 1px solid rgba(244,158,11,0.35); }

.compare-wrap { overflow-x: auto; margin: 1.8rem 0 2.2rem; }
.compare { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.compare th {
  text-align: left; font-weight: 500; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--grey-dark); border-bottom: 2px solid var(--ink); padding: 0.8rem 1rem;
}
.compare td { padding: 0.9rem 1rem; border-bottom: 1px solid var(--rule-dark); vertical-align: top; }
.compare td:first-child { font-weight: 500; color: var(--ink); }

.key-answer {
  border-left: 3px solid var(--emerald); background: rgba(244,158,11,0.05);
  padding: 1.4rem 1.6rem; margin: 1.8rem 0 2.2rem; font-size: 1.02rem;
}

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--rule-dark); }
.faq details { border-bottom: 1px solid var(--rule-dark); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center;
  padding: 1.5rem 0.4rem; font-size: 1.05rem; font-weight: 500; color: var(--ink);
  transition: color 0.3s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; font-weight: 300; color: var(--emerald); transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--emerald); }
.faq .faq-a { padding: 0 0.4rem 1.7rem; color: var(--grey-dark); max-width: 60em; line-height: 1.75; }

/* ============================================================
   Our Profile page (our-profile.html) — namespaced .prof-*
   Sticky left index rail + section-per-person dossiers. Portraits
   are duotoned into the navy (grayscale + luminosity blend + mask)
   so no photograph introduces an off-brand colour. Nothing here is
   used by any other page.
   ============================================================ */

.prof-shell { width: min(1340px, 92vw); margin-inline: auto; }
.prof-stream { min-width: 0; }

/* ---- line rail: the page's navigation, and the only navigation ----
   Tick marks fixed in the left gutter. Each is a hairline that extends and
   turns amber when active; its label fades in on hover, and hovering the
   rail anywhere reveals the whole menu at once. Site tabs live here too —
   this page carries no links in the top bar. */
.prof-rail {
  position: fixed; top: 50%; left: clamp(20px, 2.4vw, 44px);
  transform: translateY(-50%); z-index: 600;
  display: flex; flex-direction: column; gap: 15px;
}
@media (max-width: 1180px) { .prof-rail { display: none; } }

.prof-rail .rail-label {
  font-size: 0.56rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: rgba(255,255,255,0.30); margin-bottom: 3px; white-space: nowrap;
}
.prof-rail .rail-gap { height: 14px; }

.prof-rail a {
  display: block; width: 26px; height: 1px; position: relative;
  background: rgba(255,255,255,0.26);
  transition: width 0.32s var(--ease), background 0.32s var(--ease);
}
.prof-rail a::after {                 /* generous hit area around the hairline */
  content: ""; position: absolute; inset: -7px -10px;
}
.prof-rail a span {
  position: absolute; left: 56px; top: 50%; transform: translateY(-50%);
  white-space: nowrap; font-size: 0.62rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: rgba(255,255,255,0.55);
  opacity: 0; transition: opacity 0.28s var(--ease), color 0.28s;
  pointer-events: none;
}
.prof-rail:hover a span { opacity: 0.6; }
.prof-rail a:hover, .prof-rail a.active { width: 46px; background: var(--emerald); }
.prof-rail a:hover span, .prof-rail a.active span { opacity: 1; color: var(--white); }

/* Content clears the rail on wide screens — the asymmetric column is
   deliberate, and it keeps the expanded labels off the text. */
@media (min-width: 1181px) {
  .prof-col, .prof-shell {
    --col: min(1100px, calc(100vw - 420px));
    width: var(--col);
    /* offset past the rail band; once the viewport is wide enough that
       centring already clears it, the column simply centres */
    margin-left: max(290px, calc((100vw - var(--col)) / 2));
    margin-right: auto;
  }
  .prof-page .nav-links { display: none; }   /* tabs live in the rail */
}
/* Below the rail breakpoint the full nav returns to the hamburger panel */
@media (max-width: 1180px) {
  .prof-page .nav-toggle { display: block; }
}
@media (min-width: 881px) and (max-width: 1180px) {
  .prof-page .nav-links {
    position: fixed; top: 0; left: 0; width: 100%;
    height: 100vh; height: 100dvh; background: var(--ink-deep);
    flex-direction: column; justify-content: center; gap: 2.2rem;
    transform: translateY(-100%); visibility: hidden;
    transition: transform 0.5s var(--ease), visibility 0s 0.5s;
  }
  .prof-page .nav-links.open {
    transform: translateY(0); visibility: visible;
    transition: transform 0.5s var(--ease);
  }
  .prof-page .nav-links a { font-size: 1rem; }
}

/* ---- mobile chip nav (sticky under the header) ---- */
/* top: 64px = the scrolled header height, so the chips park directly
   beneath the fixed header instead of hiding behind it */
.prof-chips {
  display: none; position: sticky; top: 64px; z-index: 500;
  background: rgba(0,8,56,0.94); backdrop-filter: blur(12px);
  border-block: 1px solid var(--rule);
  padding: 0.85rem clamp(1.2rem, 4vw, 2rem);
  overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.prof-chips::-webkit-scrollbar { display: none; }
@media (max-width: 1180px) { .prof-chips { display: flex; gap: 0.6rem; } }
.prof-chips a {
  flex: 0 0 auto; font-size: 0.64rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.6); border: 1px solid var(--rule);
  padding: 0.55rem 1.05rem; white-space: nowrap; transition: all 0.3s;
}
.prof-chips a.active { color: #000d52; background: var(--emerald); border-color: var(--emerald); }

/* ---- hero index (the three names, listed) ---- */
.prof-index { border-top: 1px solid var(--rule); margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.prof-index a {
  display: grid; grid-template-columns: 62px minmax(0, 1fr) auto; gap: 1.6rem; align-items: baseline;
  padding: 1.6rem 0.4rem; border-bottom: 1px solid var(--rule);
  transition: background 0.35s, padding-left 0.35s var(--ease);
}
.prof-index a:hover { background: rgba(255,255,255,0.025); padding-left: 1.2rem; }
.prof-index .i-no { font-size: 0.72rem; letter-spacing: 0.26em; color: var(--gold); }
.prof-index .i-name { font-size: clamp(1.1rem, 2.2vw, 1.5rem); font-weight: 500; letter-spacing: 0.01em; }
.prof-index .i-disc { font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255,255,255,0.45); text-align: right; }
@media (max-width: 640px) {
  .prof-index a { grid-template-columns: 46px minmax(0, 1fr); gap: 1rem; }
  .prof-index .i-disc { grid-column: 2; text-align: left; margin-top: 0.35rem; }
}

/* ---- one person = one dossier ---- */
/* No overflow clipping here on desktop — it would turn this block into a
   scroll container and kill the sticky portrait. Mobile re-adds it because
   the portrait becomes an absolutely-positioned backdrop there. */
.prof-person {
  position: relative;
  padding: clamp(3.5rem, 8vw, 7rem) 0;
  border-top: 1px solid var(--rule);
  scroll-margin-top: calc(var(--nav-h) + 20px);
}
.prof-person:first-of-type { border-top: 0; }

.prof-person .ghost-no {           /* oversized index, sits behind everything */
  position: absolute; top: clamp(1rem, 4vw, 3rem); right: 0;
  font-size: clamp(9rem, 22vw, 20rem); font-weight: 600; line-height: 0.78;
  color: rgba(255,255,255,0.035); letter-spacing: -0.04em;
  pointer-events: none; user-select: none; z-index: 0;
}
.prof-person.flip .ghost-no { right: auto; left: 0; }

.prof-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4.5rem); align-items: start;
}
.prof-person.flip .prof-body { order: 2; }
.prof-person.flip .prof-figure { order: 1; }
@media (max-width: 900px) {
  .prof-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .prof-person.flip .prof-body, .prof-person.flip .prof-figure { order: initial; }
}

/* ---- portrait: duotoned into the navy ---- */
/* The portrait tracks the reader down the dossier, then releases at the
   section end — the "premium flow" moment on this page. */
.prof-figure { position: sticky; top: calc(var(--nav-h) + 3rem); }
.prof-frame {                       /* offset amber hairline — architectural framing */
  position: absolute; inset: 26px -26px -26px 26px;
  border: 1px solid rgba(244,158,11,0.30); pointer-events: none;
}
.prof-person.flip .prof-frame { inset: 26px 26px -26px -26px; }
.prof-photo {
  position: relative; aspect-ratio: 4 / 5;
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(10,26,102,0.9), transparent 70%),
    linear-gradient(170deg, var(--ink-soft) 0%, var(--ink) 58%, var(--ink-deep) 100%);
  border: 1px solid var(--rule); overflow: hidden;
}
.prof-photo::before {               /* faint grid motif, matches the hero */
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%);
  mask-image: linear-gradient(180deg, #000, transparent 70%);
}
.prof-photo::after {                /* navy scrim — dissolves the photo toward the text */
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0,13,82,0.85) 0%, rgba(0,13,82,0.12) 42%, transparent 70%),
    linear-gradient(0deg, rgba(0,8,56,0.75) 0%, transparent 45%);
}
.prof-person.flip .prof-photo::after {
  background:
    linear-gradient(270deg, rgba(0,13,82,0.85) 0%, rgba(0,13,82,0.12) 42%, transparent 70%),
    linear-gradient(0deg, rgba(0,8,56,0.75) 0%, transparent 45%);
}
.prof-photo img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: var(--pos, 50% 20%);
  filter: grayscale(1) contrast(1.06) brightness(0.95);
  mix-blend-mode: luminosity; opacity: 0.62;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 46%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 46%, #000 100%);
}
.prof-person.flip .prof-photo img {
  -webkit-mask-image: linear-gradient(270deg, transparent 0%, #000 46%, #000 100%);
  mask-image: linear-gradient(270deg, transparent 0%, #000 46%, #000 100%);
}
.prof-photo .p-caption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 4;
  padding: 1.4rem 1.5rem;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem;
  font-size: 0.64rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.prof-photo .p-caption b { color: var(--gold); font-weight: 400; }

/* On phones the portrait becomes a soft backdrop behind the text */
@media (max-width: 900px) {
  .prof-person { overflow: hidden; }
  .prof-figure {
    position: absolute; inset: 0; z-index: 0;
    pointer-events: none;
  }
  .prof-frame, .prof-photo .p-caption { display: none; }
  .prof-photo {
    position: absolute; inset: 0; aspect-ratio: auto; border: 0; background: none;
  }
  .prof-photo::before { display: none; }
  .prof-photo::after,
  .prof-person.flip .prof-photo::after {
    background:
      linear-gradient(90deg, rgba(0,13,82,0.94) 0%, rgba(0,13,82,0.82) 55%, rgba(0,13,82,0.72) 100%),
      linear-gradient(0deg, var(--ink) 0%, transparent 55%);
  }
  .prof-photo img,
  .prof-person.flip .prof-photo img {
    opacity: 0.30; object-position: 70% 12%;
    -webkit-mask-image: linear-gradient(200deg, #000 0%, transparent 72%);
    mask-image: linear-gradient(200deg, #000 0%, transparent 72%);
  }
  .prof-body { position: relative; z-index: 1; }
}

/* ---- the written part ---- */
.prof-body .p-disc {
  font-size: 0.66rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold); display: flex; align-items: center; gap: 0.9rem;
  flex-wrap: wrap;
}
.prof-body .p-disc::before { content: ""; width: 34px; height: 1px; background: var(--emerald); }
.prof-body h2 {
  font-size: clamp(2rem, 4.6vw, 3.4rem); text-transform: uppercase;
  margin: 1.2rem 0 0.9rem; letter-spacing: -0.015em;
}
.prof-body .p-role {
  font-size: clamp(0.95rem, 1.5vw, 1.12rem); color: var(--emerald);
  letter-spacing: 0.02em; margin-bottom: 1.4rem;
}
.prof-body .p-lines {
  font-size: clamp(0.98rem, 1.3vw, 1.08rem); color: rgba(255,255,255,0.72);
  max-width: 30em; line-height: 1.7;
}
.prof-body .p-lines + .p-lines { margin-top: 0.7rem; }

.p-strengths { margin-top: clamp(1.8rem, 3vw, 2.6rem); border-top: 1px solid var(--rule); }
.p-strengths .s-label {
  font-size: 0.62rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: rgba(255,255,255,0.38); padding: 1.2rem 0 0.4rem;
}
.p-strengths ul { display: grid; gap: 0; }
.p-strengths li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.2rem; align-items: baseline;
  padding: 0.85rem 0.2rem; border-bottom: 1px solid var(--rule);
  transition: padding-left 0.35s var(--ease), background 0.35s;
}
.p-strengths li:hover { padding-left: 0.9rem; background: rgba(255,255,255,0.022); }
.p-strengths .s-topic { font-size: 0.95rem; color: rgba(255,255,255,0.86); }
.p-strengths .s-topic span { display: block; font-size: 0.82rem; color: rgba(255,255,255,0.5); margin-top: 0.2rem; }
.p-strengths .s-meta {
  font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); white-space: nowrap;
}
@media (max-width: 560px) {
  .p-strengths li { grid-template-columns: minmax(0, 1fr); gap: 0.35rem; }
  .p-strengths .s-meta { white-space: normal; }
}

.p-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.6rem; }
.p-chips span {
  font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.6); border: 1px solid var(--rule);
  padding: 0.45rem 0.85rem; transition: border-color 0.3s, color 0.3s;
}
.p-chips span:hover { border-color: rgba(244,158,11,0.5); color: var(--gold); }

/* ---- collective capability matrix ---- */
.prof-matrix { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.prof-matrix th {
  text-align: left; font-weight: 500; font-size: 0.66rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--grey-dark);
  border-bottom: 2px solid var(--ink); padding: 0.9rem 1rem;
}
.prof-matrix td { padding: 0.95rem 1rem; border-bottom: 1px solid var(--rule-dark); vertical-align: top; }
.prof-matrix td:first-child { font-weight: 500; color: var(--ink); }
.prof-matrix td:last-child { color: var(--grey-dark); white-space: nowrap; }
@media (max-width: 700px) { .prof-matrix td:last-child { white-space: normal; } }

.prof-note {
  border-left: 3px solid var(--emerald); background: rgba(244,158,11,0.05);
  padding: 1.3rem 1.5rem; margin-top: 2.4rem; font-size: 0.95rem;
  color: var(--grey-dark); max-width: 60em;
}
.prof-note b { color: var(--ink); font-weight: 500; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .line-mask > span { transform: none; animation: none; }
  .cursor-dot, .cursor-ring { display: none; }
}
