/* ==========================================================================
   Self-hosted brand fonts (Sora + Aleo) — works fully offline over file://
   ========================================================================== */
@font-face {
  font-family: 'Sora';
  src: url('../assets/fonts/Sora-Variable.ttf') format('truetype');
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Aleo';
  src: url('../assets/fonts/Aleo-Variable.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Aleo';
  src: url('../assets/fonts/Aleo-Italic-Variable.ttf') format('truetype');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* ==========================================================================
   Design tokens
   ========================================================================== */
:root {
  --navy-900: #0F1F30;
  --navy-800: #172D44;
  --navy-700: #1F3A57;
  --gold: #FFB300;
  --gold-dark: #D89600;
  --gold-border: rgba(255,179,0,.22);
  --cream: #F8EBDA;
  --cream-muted: rgba(248,235,218,.6);
  --light-bg: #F5F3EE;
  --white: #FFFFFF;
  --text-dark: #0F1E33;
  --text-muted: #47546A;
  /* Secondary palette */
  --green: #05964D;
  --red: #DB2323;
  --gray: #B8BDC1;
  --font-sans: 'Sora', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Aleo', Georgia, 'Times New Roman', serif;
  --radius-sm: 4px;
  --radius-md: 10px;
  --container: 1160px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section-y: clamp(3.5rem, 8vw, 6rem);
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ==========================================================================
   Base
   ========================================================================== */
body {
  font-family: var(--font-sans);
  background: var(--white);
  color: var(--text-dark);
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 700; color: inherit; }
h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); line-height: 1.1; letter-spacing: -.01em; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); line-height: 1.15; letter-spacing: -.01em; }
h3 { font-size: 1.25rem; line-height: 1.3; }
p { color: var(--text-muted); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

.section { padding: var(--section-y) 0; position: relative; }
.section-dark { background: var(--navy-900); color: var(--cream); }
.section-dark p { color: var(--cream-muted); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--cream); }
.section-light { background: var(--light-bg); }
.section-white { background: var(--white); }

.section-header { max-width: 680px; margin: 0 0 2.75rem; }
.section-header.centered { margin-inline: auto; text-align: center; }
.section-header p { margin-top: .9rem; font-size: 1.05rem; }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .9rem;
}
.section-light .eyebrow, .section-white .eyebrow { color: var(--gold-dark); }

a.link-gold { color: var(--gold); font-weight: 600; }
.section-light a.link-gold, .section-white a.link-gold { color: var(--gold-dark); }

/* Skip link / a11y focus */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 2000;
  background: var(--gold); color: var(--navy-900); padding: .6rem 1rem; font-weight: 600;
}
.skip-link:focus { left: .5rem; top: .5rem; }
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.6rem;
  font-size: .95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 14px; height: 14px; }
.btn-gold { background: var(--gold); color: var(--navy-900); }
.btn-gold:hover { box-shadow: 0 10px 24px -8px rgba(255,179,0,.55); background: var(--gold-dark); }
.btn-navy { background: var(--navy-900); color: var(--cream); }
.btn-navy:hover { box-shadow: 0 10px 24px -8px rgba(15,31,48,.45); background: var(--navy-800); }
.btn-outline { border-color: var(--gold-border); color: var(--gold); background: transparent; }
.btn-outline:hover { background: rgba(255,179,0,.08); box-shadow: 0 10px 24px -10px rgba(255,179,0,.3); }
.section-light .btn-outline, .section-white .btn-outline { border-color: rgba(15,30,51,.2); color: var(--text-dark); }
.section-light .btn-outline:hover, .section-white .btn-outline:hover { background: rgba(15,30,51,.05); }
.btn-ghost { background: transparent; color: inherit; padding: .6rem 0; }
.btn-ghost:hover { color: var(--gold); }
.btn-sm { padding: .55rem 1.1rem; font-size: .85rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* ==========================================================================
   Cards
   ========================================================================== */
.card {
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.card:hover { transform: translateY(-4px); }
.card-dark { background: var(--navy-800); border: 1px solid var(--gold-border); }
.card-dark:hover { box-shadow: 0 20px 40px -20px rgba(0,0,0,.5); border-color: rgba(255,179,0,.4); }
.card-light { background: var(--white); border: 1px solid rgba(15,30,51,.08); }
.card-light:hover { box-shadow: 0 20px 40px -20px rgba(15,30,51,.18); }

.icon-badge {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(255,179,0,.12);
  color: var(--gold);
  margin-bottom: 1.1rem;
}
.section-light .icon-badge, .section-white .icon-badge { background: rgba(15,30,51,.06); color: var(--navy-900); }
.icon-badge svg { width: 24px; height: 24px; }

/* ==========================================================================
   Grids
   ========================================================================== */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 860px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-6 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 500px) {
  .grid-6 { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   Header / Nav (injected by components.js)
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .35s var(--ease), border-color .35s var(--ease), backdrop-filter .35s var(--ease);
}
.site-header.scrolled {
  background: rgba(15,31,48,.92);
  border-bottom-color: rgba(255,179,0,.15);
  backdrop-filter: blur(10px);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  color: var(--gold);
}
.nav-logo svg {
  height: 30px;
  width: auto;
  display: block;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.1rem;
  list-style: none;
  flex: 1;
  justify-content: center;
}
.nav-link {
  font-size: .92rem;
  font-weight: 500;
  color: var(--cream-muted);
  padding: .4rem 0;
  position: relative;
  transition: color .2s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width .25s var(--ease);
}
.nav-link:hover, .nav-link.is-active { color: var(--cream); }
.nav-link:hover::after, .nav-link.is-active::after { width: 100%; }
.nav-dropdown { position: relative; }
.nav-dropdown-toggle { cursor: pointer; background: none; border: none; }
.nav-dropdown-toggle svg { width: 12px; height: 12px; transition: transform .25s var(--ease); }
.nav-dropdown.is-open .nav-dropdown-toggle svg { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translate(-50%, -8px);
  min-width: 220px;
  background: var(--navy-800);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-md);
  padding: .5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s var(--ease), transform .22s var(--ease);
  box-shadow: 0 24px 48px -20px rgba(0,0,0,.55);
}
.nav-dropdown.is-open .nav-dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}
.nav-dropdown-menu a {
  display: block;
  padding: .65rem .8rem;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  color: var(--cream-muted);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.nav-dropdown-menu a:hover { background: rgba(255,179,0,.1); color: var(--cream); }
.nav-actions { display: flex; align-items: center; gap: 1rem; }
.nav-cta { padding: .65rem 1.3rem; }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none; border: none;
  cursor: pointer;
  z-index: 1100;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  top: 78px;
  background: var(--navy-900);
  z-index: 999;
  padding: 1.5rem var(--gutter) 2.5rem;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.mobile-menu ul { display: flex; flex-direction: column; gap: .25rem; }
.mobile-menu a, .mobile-menu button.mobile-sub-toggle {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 0;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--cream);
  border-bottom: 1px solid rgba(248,235,218,.08);
  width: 100%; text-align: left; background: none; border-left: none; border-right: none; border-top: none;
}
.mobile-submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s var(--ease);
  padding-left: 1rem;
}
.mobile-submenu.is-open { max-height: 220px; }
.mobile-submenu a { font-size: .95rem; color: var(--cream-muted); padding: .75rem 0; border-bottom: none; }
.mobile-sub-toggle svg { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.mobile-sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.mobile-menu .btn { margin-top: 1.5rem; }
body.nav-locked { overflow: hidden; }

@media (max-width: 860px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  padding: calc(78px + clamp(3.5rem, 9vw, 7rem)) 0 clamp(3rem, 7vw, 5rem);
  background: radial-gradient(ellipse 80% 60% at 30% -10%, rgba(255,179,0,.14), transparent 60%), var(--navy-900);
  color: var(--cream);
  overflow: hidden;
}
.hero-bg-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .22;
  z-index: 0;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,179,0,.35) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: .12;
  pointer-events: none;
  z-index: 0;
}
.hero-inner { position: relative; z-index: 1; max-width: 760px; }
.hero h1 { margin-bottom: 1.3rem; }
.hero-sub { font-size: 1.15rem; color: var(--cream-muted); max-width: 620px; margin-bottom: 2.1rem; }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }
.hero-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  max-width: 900px;
}
@media (max-width: 700px) { .hero-stats { grid-template-columns: repeat(2, 1fr); } }

.stat { text-align: left; }
.stat-value {
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.stat-label { font-size: .85rem; color: var(--cream-muted); margin-top: .3rem; }
.section-light .stat-value, .section-white .stat-value { color: var(--navy-900); }
.section-light .stat-label, .section-white .stat-label { color: var(--text-muted); }

.stat-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 2rem;
  text-align: center;
}

/* ==========================================================================
   Methodology
   ========================================================================== */
.methodology-grid { grid-template-columns: repeat(3, 1fr); }
.method-card { position: relative; }
.method-n {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--gold);
  opacity: .35;
  margin-bottom: .5rem;
  line-height: 1;
}
.method-tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .5rem;
}
@media (max-width: 860px) { .methodology-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Two-column content (Who We Are / Founder etc.)
   ========================================================================== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: center;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.split-media img, .placeholder-media {
  width: 100%;
  border-radius: var(--radius-md);
  aspect-ratio: 4/3;
  object-fit: cover;
}
.placeholder-media {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-900));
  color: var(--gold);
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  border: 1px solid var(--gold-border);
}
.pull-quote {
  border-left: 3px solid var(--gold);
  padding-left: 1.2rem;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--text-dark);
  margin: 1.5rem 0;
}
.section-dark .pull-quote { color: var(--cream); }
.pull-quote cite { display: block; margin-top: .6rem; font-size: .85rem; font-style: normal; color: var(--gold); }

/* ==========================================================================
   Carousel
   ========================================================================== */
.carousel { position: relative; max-width: 780px; margin: 0 auto; }
.carousel-track { position: relative; min-height: 220px; overflow: hidden; }
.carousel-wide { max-width: 100%; }
.carousel-wide .carousel-track { min-height: 0; overflow: visible; }
.carousel-wide .carousel-item { padding: 4px; }
.carousel-item {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(24px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
  pointer-events: none;
}
.carousel-item.is-active { opacity: 1; transform: translateX(0); pointer-events: auto; position: relative; }
.carousel-quote { font-family: var(--font-serif); font-style: italic; font-size: 1.35rem; line-height: 1.5; margin-bottom: 1.5rem; }
.carousel-quote::before { content: '\201C'; }
.carousel-author { display: flex; align-items: center; gap: .9rem; }
.carousel-avatar {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--gold);
  color: var(--navy-900);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
  overflow: hidden;
}
.carousel-avatar img { width: 100%; height: 100%; object-fit: cover; }
.carousel-name { font-weight: 600; }
.carousel-role { font-size: .85rem; color: var(--cream-muted); }
.section-light .carousel-role, .section-white .carousel-role { color: var(--text-muted); }
.carousel-result {
  display: inline-block;
  margin-top: .5rem;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--gold);
}
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}
.carousel-arrow {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--gold-border);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s var(--ease), transform .2s var(--ease);
  color: inherit;
}
.carousel-arrow:hover { background: rgba(255,179,0,.12); transform: scale(1.06); }
.carousel-arrow svg { width: 16px; height: 16px; }
.carousel-dots { display: flex; gap: .5rem; }
.carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,179,0,.25);
  border: none;
  transition: transform .25s var(--ease), background .25s var(--ease);
  cursor: pointer;
}
.carousel-dot.is-active { background: var(--gold); transform: scale(1.35); }

/* ==========================================================================
   Board / Partners
   ========================================================================== */
.board-grid { grid-template-columns: repeat(4, 1fr); }
.board-card { text-align: center; }
.board-avatar {
  position: relative;
  width: 64px; height: 64px;
  border-radius: 50%;
  margin: 0 auto .9rem;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy-900);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
}
.board-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.board-flag {
  position: absolute;
  right: -2px; bottom: -2px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--white);
  box-shadow: 0 1px 3px rgba(15,30,51,.25);
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem;
  line-height: 1;
  overflow: hidden;
}
.board-flag img { width: 78%; height: 78%; object-fit: contain; }
.board-meta { display: flex; align-items: center; justify-content: center; gap: .5rem; margin: .25rem 0 .5rem; }
.board-role { font-size: .8rem; color: var(--gold); text-transform: uppercase; letter-spacing: .05em; }
.board-linkedin {
  width: 22px; height: 22px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(15,30,51,.06);
  color: var(--text-muted);
  flex-shrink: 0;
  transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.board-linkedin:hover { background: var(--navy-900); color: var(--cream); transform: translateY(-1px); }
.board-linkedin svg { width: 12px; height: 12px; }
.board-bio { font-size: .88rem; }

.founder-photo-wrap { position: relative; }
.founder-photo { width: 100%; border-radius: var(--radius-md); aspect-ratio: 4/3; object-fit: cover; }
.founder-flag { right: 14px; bottom: 14px; width: 36px; height: 36px; font-size: 1.4rem; }
.founder-meta { display: flex; align-items: center; gap: .75rem; margin-top: .4rem; }
@media (max-width: 860px) { .board-grid { grid-template-columns: repeat(2, 1fr); } }

.partners-grid { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 860px) { .partners-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 500px) { .partners-grid { grid-template-columns: repeat(2, 1fr); } }
.partner-logo {
  aspect-ratio: 3/2;
  border-radius: var(--radius-sm);
  background: rgba(15,30,51,.05);
  border: 1px solid rgba(15,30,51,.08);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .04em;
  filter: grayscale(1);
  opacity: .7;
  transition: opacity .25s var(--ease), filter .25s var(--ease);
}
.section-dark .partner-logo { background: rgba(248,235,218,.05); border-color: rgba(248,235,218,.1); color: var(--cream-muted); }
.partner-logo:hover { opacity: 1; filter: grayscale(0); }
.partner-logo img { max-width: 78%; max-height: 62%; object-fit: contain; }

/* ==========================================================================
   Tabs (Learn detail category switch)
   ========================================================================== */
.tabs {
  display: inline-flex;
  gap: .25rem;
  background: rgba(15,30,51,.05);
  border-radius: var(--radius-md);
  padding: .3rem;
  position: relative;
  margin-bottom: 2.25rem;
}
.section-dark .tabs { background: rgba(248,235,218,.06); }
.tab {
  position: relative;
  z-index: 1;
  padding: .65rem 1.4rem;
  font-size: .9rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  transition: color .25s var(--ease);
  background: none;
  border: none;
  cursor: pointer;
}
.section-dark .tab { color: var(--cream-muted); }
.tab.is-active { color: var(--navy-900); }
.section-dark .tab.is-active { color: var(--navy-900); }
.tab-bg {
  position: absolute;
  top: .3rem; bottom: .3rem;
  left: 0;
  width: 0;
  background: var(--gold);
  border-radius: var(--radius-sm);
  transition: transform .3s var(--ease), width .3s var(--ease);
  z-index: 0;
}
.tab-panel { display: none; }
.tab-panel.is-active { display: block; animation: fadeIn .25s var(--ease); }

/* Segmented audience/profile selector */
.segmented {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 2.5rem;
}
.segment {
  padding: .7rem 1.3rem;
  border-radius: 999px;
  font-size: .88rem;
  font-weight: 600;
  border: 1px solid rgba(15,30,51,.12);
  color: var(--text-muted);
  background: var(--white);
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .2s var(--ease);
  cursor: pointer;
}
.segment:hover { transform: translateY(-1px); }
.segment.is-active { background: var(--navy-900); color: var(--cream); border-color: var(--navy-900); }
.section-dark .segment { background: transparent; border-color: var(--gold-border); color: var(--cream-muted); }
.section-dark .segment.is-active { background: var(--gold); color: var(--navy-900); border-color: var(--gold); }

.profile-panel { display: none; animation: fadeIn .3s var(--ease); }
.profile-panel.is-active { display: block; }
.profile-tagline { font-size: 1.1rem; margin-bottom: 1.75rem; max-width: 680px; }
.profile-columns { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.5rem; }
@media (max-width: 860px) { .profile-columns { grid-template-columns: 1fr; } }
.profile-block h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gold-dark); margin-bottom: 1rem; }
.section-dark .profile-block h4 { color: var(--gold); }
.check-list { display: flex; flex-direction: column; gap: .6rem; }
.check-list li { display: flex; gap: .6rem; align-items: flex-start; font-size: .95rem; color: var(--text-dark); }
.section-dark .check-list li { color: var(--cream); }
.check-list li svg { flex-shrink: 0; width: 18px; height: 18px; margin-top: 2px; color: var(--gold-dark); }
.section-dark .check-list li svg { color: var(--gold); }

/* ==========================================================================
   Chips
   ========================================================================== */
.chip-list { display: flex; flex-wrap: wrap; gap: .6rem; }
.chip {
  padding: .5rem 1rem;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 500;
  background: rgba(15,30,51,.05);
  border: 1px solid rgba(15,30,51,.08);
  color: var(--text-dark);
}
.section-dark .chip { background: rgba(248,235,218,.06); border-color: var(--gold-border); color: var(--cream); }

/* ==========================================================================
   Framework / expandable cards (Learn detail)
   ========================================================================== */
.framework-grid { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .framework-grid { grid-template-columns: 1fr; } }
.framework-card { cursor: pointer; opacity: 1; transition: opacity .2s ease, transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease); }
.framework-card.is-soon { cursor: default; opacity: .75; }
.framework-badge {
  display: inline-block;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gold-dark);
  background: rgba(255,179,0,.12);
  padding: .3rem .7rem;
  border-radius: 999px;
  margin-bottom: .9rem;
}
.framework-card.is-soon .framework-badge { color: var(--text-muted); background: rgba(184,189,193,.3); }
.framework-expand-hint { margin-top: 1rem; font-size: .85rem; font-weight: 600; color: var(--gold-dark); display: inline-flex; align-items: center; gap: .4rem; }
.framework-expand-hint svg { width: 14px; height: 14px; transition: transform .25s var(--ease); }

.framework-detail {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .45s var(--ease), opacity .35s var(--ease), margin .45s var(--ease);
  margin-top: 0;
}
.framework-card.is-expanded .framework-detail { opacity: 1; margin-top: 1.5rem; max-height: 3000px; }
.framework-card.is-expanded .framework-expand-hint svg { transform: rotate(180deg); }
.framework-detail-inner { border-top: 1px solid rgba(15,30,51,.08); padding-top: 1.5rem; }
.module-list { display: flex; flex-direction: column; gap: 1rem; margin: 1rem 0 1.5rem; }
.module-item { display: flex; gap: 1rem; }
.module-num {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem;
  font-weight: 700;
}
.module-item h5 { font-size: .98rem; margin-bottom: .2rem; }
.module-item p { font-size: .88rem; }
.detail-meta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 1.5rem; }
@media (max-width: 600px) { .detail-meta-grid { grid-template-columns: 1fr; } }
.detail-meta-grid h5 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--gold-dark); margin-bottom: .7rem; }
.framework-close {
  margin-top: 1rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.framework-close:hover { color: var(--text-dark); }
.framework-close svg { width: 14px; height: 14px; }

/* ==========================================================================
   Timeline (consulting process / journey)
   ========================================================================== */
.timeline { position: relative; display: flex; flex-direction: column; gap: 0; }
.timeline-step {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 1.5rem;
  padding-bottom: 2.5rem;
  position: relative;
}
.timeline-step:last-child { padding-bottom: 0; }
.timeline-step::before {
  content: '';
  position: absolute;
  left: 29px; top: 44px; bottom: -4px;
  width: 2px;
  background: var(--gold-border);
}
.timeline-step:last-child::before { display: none; }
.timeline-num {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
  z-index: 1;
}
.section-dark .timeline-num { background: var(--gold); color: var(--navy-900); }

.timeline-h { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 1rem; }
.timeline-h-step { flex: 1; min-width: 150px; text-align: center; position: relative; padding-top: 2rem; }
.timeline-h-step::before {
  content: '';
  position: absolute;
  top: 8px; left: -50%; width: 100%; height: 2px;
  background: var(--gold-border);
}
.timeline-h-step:first-child::before { left: 50%; width: 50%; }
.timeline-h-step:last-child::before { width: 50%; }
.timeline-h-dot {
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--gold);
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
}
@media (max-width: 700px) {
  .timeline-h { flex-direction: column; }
  .timeline-h-step::before, .timeline-h-step:first-child::before, .timeline-h-step:last-child::before { display: none; }
  .timeline-h-dot { position: static; transform: none; margin: 0 auto .5rem; }
}

/* Vertical journey timeline (About) */
.journey-list { display: flex; flex-direction: column; }
.journey-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1.5rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid rgba(248,235,218,.1);
}
.section-light .journey-item, .section-white .journey-item { border-bottom-color: rgba(15,30,51,.08); }
.journey-item:last-child { border-bottom: none; }
.journey-year { font-size: 1.5rem; font-weight: 700; color: var(--gold); }

/* ==========================================================================
   World map (Grow page)
   ========================================================================== */
.worldmap-wrap { position: relative; width: 100%; aspect-ratio: 16/8.4; margin: 2rem 0; }
.map-dot {
  position: absolute;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: rgba(248,235,218,.22);
  transform: translate(-50%, -50%);
}
.map-country {
  position: absolute;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--gold);
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
  box-shadow: 0 0 0 0 rgba(255,179,0,.5);
}
.map-country::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: rgba(255,179,0,.25);
  opacity: 0;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
  transform: scale(.6);
}
.map-country:hover, .map-country:focus-visible {
  transform: translate(-50%, -50%) scale(1.7);
  background: #FFD166;
}
.map-country:hover::after, .map-country:focus-visible::after { opacity: 1; transform: scale(1); }
.map-tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--navy-900);
  color: var(--cream);
  border: 1px solid var(--gold-border);
  padding: .45rem .75rem;
  border-radius: var(--radius-sm);
  font-size: .78rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s var(--ease), transform .2s var(--ease);
  z-index: 5;
}
.map-country:hover .map-tooltip, .map-country:focus-visible .map-tooltip { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ==========================================================================
   Forms
   ========================================================================== */
.form-group { margin-bottom: 1.35rem; }
.form-label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  margin-bottom: .5rem;
  color: var(--text-dark);
}
.section-dark .form-label { color: var(--cream); }
.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: .8rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(15,30,51,.15);
  background: var(--white);
  color: var(--text-dark);
  font-size: .95rem;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.section-dark .form-input, .section-dark .form-textarea, .section-dark .form-select {
  background: rgba(248,235,218,.06);
  border-color: var(--gold-border);
  color: var(--cream);
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(255,179,0,.15);
}
.form-textarea { resize: vertical; min-height: 130px; }
.form-error-msg { display: none; color: var(--red); font-size: .78rem; margin-top: .4rem; }
.form-group.has-error .form-input,
.form-group.has-error .form-textarea,
.form-group.has-error .form-select { border-color: var(--red); }
.form-group.has-error .form-error-msg { display: block; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.form-success {
  display: none;
  text-align: center;
  padding: 3rem 1.5rem;
  animation: fadeIn .4s var(--ease);
}
.form-success.is-visible { display: block; }
.form-success-icon {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: rgba(5,150,77,.14);
  color: var(--green);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.2rem;
}
.form-success-icon svg { width: 28px; height: 28px; }
form.is-submitted { display: none; }
.newsletter-inline { display: flex; gap: .6rem; max-width: 420px; }
@media (max-width: 500px) { .newsletter-inline { flex-direction: column; } }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--navy-900); color: var(--cream); padding: clamp(3rem, 6vw, 4.5rem) 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(248,235,218,.1);
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand-text { color: var(--cream-muted); font-size: .95rem; max-width: 320px; margin: 1rem 0 1.5rem; }
.footer-logo { display: flex; align-items: center; color: var(--gold); margin-bottom: .25rem; }
.footer-logo svg { height: 32px; width: auto; display: block; }
.footer-social { display: flex; gap: .75rem; }
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--gold-border);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.footer-social a:hover { background: rgba(255,179,0,.12); transform: translateY(-2px); }
.footer-social svg { width: 16px; height: 16px; color: var(--cream); }
.footer-col h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gold); margin-bottom: 1.1rem; }
.footer-col ul { display: flex; flex-direction: column; gap: .65rem; }
.footer-col a { color: var(--cream-muted); font-size: .92rem; transition: color .2s var(--ease); }
.footer-col a:hover { color: var(--cream); }
.footer-newsletter p { font-size: .9rem; margin-bottom: 1rem; }
.footer-newsletter-form { display: flex; gap: .5rem; }
.footer-newsletter-form input {
  flex: 1;
  padding: .7rem .9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gold-border);
  background: rgba(248,235,218,.06);
  color: var(--cream);
  font-size: .88rem;
}
.footer-newsletter-msg { font-size: .82rem; color: var(--gold); margin-top: .6rem; display: none; }
.footer-newsletter-msg.is-visible { display: block; }
.legal-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.5rem var(--gutter);
  max-width: var(--container);
  margin: 0 auto;
  font-size: .82rem;
  color: var(--cream-muted);
}
.legal-links { display: flex; gap: 1.5rem; }
.legal-links a:hover { color: var(--cream); }

/* ==========================================================================
   Modal
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8,15,24,.72);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease);
}
.modal-overlay.is-open { opacity: 1; pointer-events: auto; }
.modal {
  background: var(--navy-800);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-md);
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.25rem;
  position: relative;
  transform: translateY(16px) scale(.98);
  transition: transform .3s var(--ease);
  color: var(--cream);
}
.modal-overlay.is-open .modal { transform: translateY(0) scale(1); }
.modal-close {
  position: absolute;
  top: 1.25rem; right: 1.25rem;
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(248,235,218,.08);
  transition: background .2s var(--ease);
}
.modal-close:hover { background: rgba(248,235,218,.16); }
.modal-close svg { width: 16px; height: 16px; }
.modal h2 { font-size: 1.5rem; margin-bottom: .5rem; }
.modal-sub { color: var(--cream-muted); font-size: .92rem; margin-bottom: 1.75rem; }

/* ==========================================================================
   Page-load fade
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .hero-inner { opacity: 0; transform: translateY(16px); animation: heroIn .8s var(--ease) forwards; }
  .hero-stats { opacity: 0; animation: heroIn .8s var(--ease) .15s forwards; }
}

/* ==========================================================================
   Misc page bits
   ========================================================================== */
.cta-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  background: linear-gradient(120deg, var(--navy-900), var(--navy-800));
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-md);
  padding: 2.25rem 2.5rem;
  color: var(--cream);
}
.cta-banner h3 { font-size: 1.4rem; margin: 0; }

.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-side-card { margin-bottom: 1.5rem; }
.contact-side-card h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--gold-dark); margin-bottom: .6rem; }
.contact-side-card p { margin-bottom: .2rem; }

.gallery-grid { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
.gallery-item {
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--navy-800), var(--navy-900));
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  font-size: .75rem;
  border: 1px solid var(--gold-border);
  overflow: hidden;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }

.story-block { padding: var(--section-y) 0; }
.story-tag {
  display: inline-block;
  padding: .35rem .9rem;
  border-radius: 999px;
  background: rgba(255,179,0,.14);
  color: var(--gold-dark);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.section-dark .story-tag { color: var(--gold); background: rgba(255,179,0,.16); }
.story-meta { font-size: .88rem; color: var(--gold-dark); margin: .5rem 0 1.5rem; font-weight: 500; }
.section-dark .story-meta { color: var(--gold); }
.story-lead { font-size: 1.1rem; max-width: 780px; margin-bottom: 2rem; }
.story-stats { grid-template-columns: repeat(4, 1fr); margin-bottom: 2.25rem; }
@media (max-width: 700px) { .story-stats { grid-template-columns: repeat(2, 1fr); } }
.story-stat-n { font-size: 1.6rem; font-weight: 700; color: var(--gold-dark); }
.section-dark .story-stat-n { color: var(--gold); }
.story-modules { margin-bottom: 2.25rem; }
.story-modules h5 { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--gold-dark); margin-bottom: .8rem; }
.section-dark .story-modules h5 { color: var(--gold); }
.story-modules ol { display: flex; flex-direction: column; gap: .5rem; counter-reset: mod; }
.story-modules li { display: flex; gap: .6rem; font-size: .95rem; }
.section-dark .story-modules li { color: var(--cream); }

.map-placeholder {
  aspect-ratio: 10/4.4;
  border-radius: var(--radius-md);
  background: var(--light-bg);
  border: 1px solid rgba(15,30,51,.08);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  font-size: .85rem;
  overflow: hidden;
}
.map-placeholder img { width: 100%; height: 100%; object-fit: cover; }
.section-dark .map-placeholder { background: rgba(248,235,218,.05); border-color: var(--gold-border); color: var(--cream-muted); }
