/* ============================================================================
   HexGn Corridor — Design System
   India ⇄ Gulf growth-corridor advisory. Navy + gold/sand, hex/corridor motif.
   One stylesheet, no build step. Loaded site-wide (marketing + blog).
   ========================================================================== */

/* ----------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand palette */
  --navy-900: #07151f;
  --navy-800: #0b1e2e;
  --navy-700: #102a40;
  --navy-600: #173754;
  --navy-500: #244a6c;

  --gold-700: #9a7220;
  --gold-600: #b6892f;
  --gold-500: #c8a04b;
  --gold-400: #d9bc76;
  --gold-200: #ecd9ae;
  --gold-50:  #f7eed8;

  --teal-600: #14756d;
  --teal-500: #1f8a82;
  --teal-200: #bfe0db;

  --sand-50:  #fbf8f2;
  --sand-100: #f5efe4;
  --sand-200: #ece3d2;
  --sand-300: #e0d4bd;

  --ink:        #0c1b2a;
  --ink-soft:   #2a3c4d;
  --slate-600:  #4a5b6e;
  --slate-500:  #64768a;
  --slate-400:  #8493a4;
  --line:       #e6ddcd;
  --line-strong:#d8cdb6;
  --paper:      #ffffff;

  /* Surfaces (semantic) */
  --bg:         var(--sand-50);
  --bg-alt:     var(--sand-100);
  --bg-card:    var(--paper);
  --bg-dark:    var(--navy-800);
  --text:       var(--ink);
  --text-muted: var(--slate-600);
  --accent:     var(--gold-600);
  --accent-ink: var(--gold-700);

  /* Type */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --step--1: clamp(0.82rem, 0.79rem + 0.13vw, 0.9rem);
  --step-0:  clamp(1rem, 0.96rem + 0.18vw, 1.12rem);
  --step-1:  clamp(1.18rem, 1.1rem + 0.36vw, 1.42rem);
  --step-2:  clamp(1.4rem, 1.26rem + 0.64vw, 1.85rem);
  --step-3:  clamp(1.7rem, 1.46rem + 1.06vw, 2.5rem);
  --step-4:  clamp(2.05rem, 1.66rem + 1.74vw, 3.4rem);
  --step-5:  clamp(2.5rem, 1.9rem + 2.7vw, 4.6rem);

  /* Spacing — 8pt grid */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;

  /* Radii / shadow / motion */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(12, 27, 42, 0.06), 0 2px 8px rgba(12, 27, 42, 0.05);
  --shadow-md: 0 8px 24px rgba(12, 27, 42, 0.09), 0 2px 6px rgba(12, 27, 42, 0.05);
  --shadow-lg: 0 30px 60px -22px rgba(7, 21, 31, 0.4);
  --shadow-gold: 0 16px 40px -16px rgba(154, 114, 32, 0.55);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.5s;
  --dur-fast: 0.25s;

  --container: 1180px;
  --container-narrow: 760px;
  --header-h: 76px;
}

/* ----------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
svg { fill: currentColor; }

a { color: inherit; text-decoration: none; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--gold-600);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.012em;
  color: var(--ink);
  font-optical-sizing: auto;
  text-wrap: balance;
}

strong { font-weight: 700; }

::selection { background: var(--gold-200); color: var(--navy-800); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy-800);
  color: #fff;
  padding: var(--space-3) var(--space-5);
  z-index: 999;
  border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; }

/* ----------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.hx-container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-5);
}
.hx-container--narrow { max-width: var(--container-narrow); }

.hx-section { padding-block: clamp(var(--space-8), 6vw, var(--space-10)); }
.hx-section--tight { padding-block: var(--space-8); }

.hx-section--alt { background: var(--bg-alt); }
.hx-section--paper { background: var(--paper); }
.hx-section--dark {
  background: var(--bg-dark);
  color: var(--sand-100);
  position: relative;
  overflow: hidden;
}
.hx-section--dark h1,
.hx-section--dark h2,
.hx-section--dark h3 { color: #fff; }

.hx-stack > * + * { margin-top: var(--space-5); }
.hx-center { text-align: center; }
.hx-measure { max-width: 64ch; }
.hx-center .hx-measure { margin-inline: auto; }

/* ----------------------------------------------------------------------------
   4. Typographic helpers
   -------------------------------------------------------------------------- */
.hx-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: var(--step--1);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.hx-section--dark .hx-eyebrow { color: var(--gold-400); }
.hx-eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.hx-eyebrow--plain::before { display: none; }

.hx-display { font-size: var(--step-5); }
.hx-h1 { font-size: var(--step-4); }
.hx-h2 { font-size: var(--step-3); }
.hx-h3 { font-size: var(--step-2); }
.hx-h4 { font-size: var(--step-1); }

.hx-lead {
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--text-muted);
  font-weight: 400;
}
.hx-section--dark .hx-lead { color: rgba(245, 239, 228, 0.82); }

.hx-italic { font-style: italic; }
.hx-gold { color: var(--accent-ink); }
.hx-section--dark .hx-gold { color: var(--gold-400); }

.hx-section__head { max-width: 720px; margin-bottom: var(--space-7); }
.hx-center.hx-section__head, .hx-section__head.hx-center { margin-inline: auto; }
.hx-section__head > * + * { margin-top: var(--space-4); }

/* ----------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.hx-btn {
  --btn-bg: var(--navy-800);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--step-0);
  line-height: 1;
  padding: 0.95em 1.5em;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  background: var(--btn-bg);
  color: var(--btn-fg);
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
  text-align: center;
}
.hx-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.hx-btn:active { transform: translateY(0); }

.hx-btn--gold { --btn-bg: var(--gold-500); --btn-fg: var(--navy-900); }
.hx-btn--gold:hover { box-shadow: var(--shadow-gold); background: var(--gold-400); }

.hx-btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--navy-800);
  border-color: var(--line-strong);
}
.hx-btn--ghost:hover { border-color: var(--navy-800); background: rgba(12, 27, 42, 0.03); box-shadow: none; }

.hx-btn--light { --btn-bg: #fff; --btn-fg: var(--navy-900); }
.hx-section--dark .hx-btn--ghost { --btn-fg: #fff; border-color: rgba(255,255,255,0.32); }
.hx-section--dark .hx-btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,0.06); }

.hx-btn--lg { font-size: var(--step-1); padding: 1.05em 1.8em; }
.hx-btn .hx-arrow { transition: transform var(--dur-fast) var(--ease); }
.hx-btn:hover .hx-arrow { transform: translateX(3px); }

.hx-btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.hx-center .hx-btn-row { justify-content: center; }

.hx-textlink {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 600;
  color: var(--accent-ink);
  border-bottom: 1px solid transparent;
  transition: gap var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.hx-textlink:hover { gap: var(--space-3); border-color: currentColor; }
.hx-section--dark .hx-textlink { color: var(--gold-400); }

/* ----------------------------------------------------------------------------
   6. Header / navigation
   -------------------------------------------------------------------------- */
.hx-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--sand-50) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.hx-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px -18px rgba(7, 21, 31, 0.5);
}
.hx-nav {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  height: var(--header-h);
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--space-5);
}
.hx-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  color: var(--navy-800);
}
.hx-brand__mark { width: 34px; height: 34px; flex: none; color: var(--gold-600); }
.hx-brand__mark--light { color: var(--gold-400); }
.hx-brand b { color: var(--gold-600); font-weight: 600; }
.hx-brand img,
.hx-brand .custom-logo {
  height: 40px;
  width: auto;
  max-height: calc(var(--header-h) - 32px);
  object-fit: contain;
}

.hx-menu {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-left: auto;
  list-style: none;
  padding: 0;
}
.hx-menu > li { position: relative; }
.hx-menu a.hx-menu__link,
.hx-menu > li > button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: inherit;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--ink-soft);
  background: none;
  border: 0;
  cursor: pointer;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--r-sm);
  transition: color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.hx-menu a.hx-menu__link:hover,
.hx-menu > li > button:hover,
.hx-menu > li.is-open > button { color: var(--navy-900); background: rgba(12, 27, 42, 0.04); }
.hx-menu__caret { width: 12px; height: 12px; transition: transform var(--dur-fast) var(--ease); }
.hx-menu > li.is-open .hx-menu__caret { transform: rotate(180deg); }

/* Services mega dropdown */
.hx-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: min(640px, 92vw);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-4);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-1);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), visibility var(--dur-fast);
  z-index: 50;
}
.hx-menu > li.is-open .hx-dropdown {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
@media (hover: hover) and (pointer: fine) {
  .hx-menu > li.has-dropdown:hover .hx-dropdown {
    opacity: 1; visibility: visible; pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }
  .hx-menu > li.has-dropdown:hover .hx-menu__caret { transform: rotate(180deg); }
}
.hx-dropdown__item {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-3);
  border-radius: var(--r-md);
  transition: background var(--dur-fast) var(--ease);
}
.hx-dropdown__item:hover { background: var(--sand-100); }
.hx-dropdown__ico {
  flex: none; width: 38px; height: 38px;
  display: grid; place-items: center;
  color: var(--gold-600);
  background: var(--gold-50);
  border-radius: 10px;
}
.hx-dropdown__t { font-weight: 700; color: var(--navy-800); font-size: 0.95rem; line-height: 1.2; }
.hx-dropdown__d { font-size: 0.82rem; color: var(--slate-500); margin-top: 2px; line-height: 1.35; }
.hx-dropdown__all {
  grid-column: 1 / -1;
  margin-top: var(--space-2);
  padding: var(--space-3);
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 700; color: var(--accent-ink); font-size: 0.9rem;
}

.hx-nav__cta { margin-left: var(--space-2); }

.hx-burger {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: transparent;
  cursor: pointer;
  position: relative;
}
.hx-burger span,
.hx-burger span::before,
.hx-burger span::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 18px; height: 2px;
  background: var(--navy-800);
  transform: translate(-50%, -50%);
  transition: transform var(--dur-fast) var(--ease), opacity var(--dur-fast);
}
.hx-burger span::before { transform: translate(-50%, -7px); }
.hx-burger span::after { transform: translate(-50%, 5px); }
body.hx-menu-open .hx-burger span { background: transparent; }
body.hx-menu-open .hx-burger span::before { transform: translate(-50%, -50%) rotate(45deg); top:0; }
body.hx-menu-open .hx-burger span::after { transform: translate(-50%, -50%) rotate(-45deg); top:0; }

/* Mobile drawer */
.hx-mobile {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--sand-50);
  z-index: 99;
  padding: var(--space-6) var(--space-5) var(--space-9);
  overflow-y: auto;
  transform: translateY(-12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), visibility var(--dur-fast);
}
body.hx-menu-open .hx-mobile { opacity: 1; visibility: visible; transform: translateY(0); }
.hx-mobile a {
  display: block;
  padding: var(--space-4) var(--space-2);
  font-weight: 600;
  font-size: 1.15rem;
  border-bottom: 1px solid var(--line);
  color: var(--navy-800);
}
.hx-mobile .hx-mobile__sub a { font-size: 1rem; font-weight: 500; color: var(--slate-600); padding-left: var(--space-5); }
.hx-mobile__label {
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--slate-400); font-weight: 700; margin-top: var(--space-5); padding-left: var(--space-2);
}
.hx-mobile .hx-btn { margin-top: var(--space-6); width: 100%; }

/* ----------------------------------------------------------------------------
   7. Hero + corridor motif
   -------------------------------------------------------------------------- */
.hx-hero {
  position: relative;
  background: radial-gradient(120% 120% at 80% -10%, var(--navy-700) 0%, var(--navy-800) 45%, var(--navy-900) 100%);
  color: var(--sand-100);
  overflow: hidden;
  isolation: isolate;
}
.hx-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='96' viewBox='0 0 56 96'%3E%3Cpath fill='none' stroke='%23ffffff' stroke-opacity='0.05' stroke-width='1.2' d='M28 1 L55 16 L55 48 L28 63 L1 48 L1 16 Z M28 33 L55 48 M28 33 L1 48 M28 33 L28 1'/%3E%3C/svg%3E");
  background-size: 56px 96px;
  opacity: 0.7;
  z-index: -1;
  mask-image: radial-gradient(120% 90% at 70% 0%, #000 30%, transparent 78%);
}
.hx-hero__glow {
  position: absolute;
  width: 60vw; height: 60vw; max-width: 760px; max-height: 760px;
  right: -10%; top: -25%;
  background: radial-gradient(circle, rgba(200, 160, 75, 0.22), transparent 62%);
  z-index: -1;
  pointer-events: none;
}
.hx-hero__inner {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: var(--space-8);
  align-items: center;
  padding-block: clamp(var(--space-8), 8vw, var(--space-10));
}
.hx-hero__inner > * { min-width: 0; }
.hx-hero .hx-eyebrow { color: var(--gold-400); }
.hx-hero h1 { color: #fff; margin-block: var(--space-4); }
.hx-hero p.hx-lead { color: rgba(245, 239, 228, 0.85); max-width: 38ch; }
.hx-hero .hx-btn-row { margin-top: var(--space-6); }
.hx-hero__note {
  margin-top: var(--space-5);
  font-size: var(--step--1);
  color: rgba(245, 239, 228, 0.6);
  letter-spacing: 0.01em;
}

/* Corridor diagram (India ⇄ Gulf) */
.hx-corridor {
  position: relative;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-xl);
  padding: var(--space-7) var(--space-6);
  backdrop-filter: blur(4px);
}
.hx-corridor__row {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-3);
}
.hx-node { text-align: center; flex: none; width: 38%; }
.hx-node__hex {
  width: 78px; height: 78px; margin: 0 auto var(--space-3);
  display: grid; place-items: center;
  background: linear-gradient(160deg, var(--gold-400), var(--gold-600));
  color: var(--navy-900);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  box-shadow: var(--shadow-gold);
}
.hx-node__hex--alt { background: linear-gradient(160deg, var(--teal-200), var(--teal-500)); color: #04211e; }
.hx-node__name { font-weight: 700; color: #fff; font-size: 1.02rem; }
.hx-node__sub { font-size: 0.8rem; color: rgba(245,239,228,0.6); margin-top: 2px; }
.hx-corridor__link {
  flex: 1;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--gold-400) 0 8px, transparent 8px 16px);
  position: relative;
  opacity: 0.8;
}
.hx-corridor__link::before,
.hx-corridor__link::after {
  content: "⇄";
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.1rem; color: var(--gold-400);
  background: var(--navy-800);
  padding: 0 6px;
}
.hx-corridor__caption {
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(255,255,255,0.1);
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4);
}
.hx-corridor__stat .n { font-family: var(--font-display); font-size: 1.6rem; color: var(--gold-400); }
.hx-corridor__stat .l { font-size: 0.78rem; color: rgba(245,239,228,0.65); line-height: 1.3; }

/* Live ticker strip under hero */
.hx-ticker {
  border-top: 1px solid rgba(255,255,255,0.08);
  background: var(--navy-900);
  color: rgba(245,239,228,0.72);
  font-size: var(--step--1);
  overflow: hidden;
}
.hx-ticker__track {
  display: flex; gap: var(--space-7);
  padding-block: var(--space-3);
  white-space: nowrap;
  width: max-content;
  animation: hx-marquee 38s linear infinite;
}
.hx-ticker__track span { display: inline-flex; align-items: center; gap: var(--space-3); }
.hx-ticker__track span::before { content: ""; width: 6px; height: 6px; background: var(--gold-500); border-radius: 50%; flex: none; }
@keyframes hx-marquee { to { transform: translateX(-50%); } }

/* ----------------------------------------------------------------------------
   8. Cards / grids
   -------------------------------------------------------------------------- */
.hx-grid { display: grid; gap: var(--space-5); }
.hx-grid--2 { grid-template-columns: repeat(2, 1fr); }
.hx-grid--3 { grid-template-columns: repeat(3, 1fr); }
.hx-grid--4 { grid-template-columns: repeat(4, 1fr); }

.hx-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--space-6);
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
  position: relative;
  overflow: hidden;
  height: 100%;
}
.hx-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
a.hx-card { display: block; color: inherit; }

.hx-card__num {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--gold-600);
  font-weight: 600;
}
.hx-card__ico {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  color: var(--navy-800);
  background: var(--gold-50);
  border: 1px solid var(--gold-200);
  margin-bottom: var(--space-4);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.hx-card__ico svg { width: 24px; height: 24px; }
.hx-card h3 { font-size: var(--step-1); margin-bottom: var(--space-3); }
.hx-card p { color: var(--text-muted); font-size: 0.98rem; }
.hx-card__link {
  margin-top: var(--space-4);
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-weight: 700; color: var(--accent-ink); font-size: 0.92rem;
}
.hx-card:hover .hx-card__link .hx-arrow { transform: translateX(3px); }
.hx-card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--space-4); }

.hx-pill {
  display: inline-block;
  font-size: 0.76rem; font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--sand-100);
  color: var(--slate-600);
  border: 1px solid var(--line);
}

/* Two-up split */
.hx-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-6), 5vw, var(--space-9));
  align-items: center;
}
.hx-split--media .hx-split__media {
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}
.hx-split__panel {
  background: var(--navy-800);
  color: var(--sand-100);
  border-radius: var(--r-xl);
  padding: var(--space-7);
}
.hx-split__panel h3 { color: #fff; }

/* Feature list with hex bullets */
.hx-list { list-style: none; padding: 0; display: grid; gap: var(--space-4); }
.hx-list li { position: relative; padding-left: var(--space-6); }
.hx-list li::before {
  content: "";
  position: absolute; left: 0; top: 0.42em;
  width: 12px; height: 13px;
  background: var(--gold-500);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.hx-list--check li::before { background: var(--teal-500); }
.hx-list b { display: block; color: var(--ink); font-weight: 700; }
.hx-section--dark .hx-list b { color: #fff; }
.hx-list span { color: var(--text-muted); }
.hx-section--dark .hx-list span { color: rgba(245,239,228,0.72); }

/* ----------------------------------------------------------------------------
   9. Steps / process
   -------------------------------------------------------------------------- */
.hx-steps { display: grid; gap: var(--space-5); counter-reset: step; }
.hx-steps--4 { grid-template-columns: repeat(4, 1fr); }
.hx-steps--3 { grid-template-columns: repeat(3, 1fr); }
.hx-step { position: relative; padding-top: var(--space-6); border-top: 2px solid var(--line-strong); }
.hx-step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--gold-600);
  font-weight: 600;
  position: absolute; top: var(--space-3); left: 0;
}
.hx-step h4 { font-size: var(--step-1); margin-bottom: var(--space-2); margin-top: var(--space-3); }
.hx-step p { color: var(--text-muted); font-size: 0.95rem; }

/* ----------------------------------------------------------------------------
   10. Stats band
   -------------------------------------------------------------------------- */
.hx-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }
.hx-stat { text-align: center; padding: var(--space-4); }
.hx-stat__n {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 1.8rem + 2.4vw, 3.6rem);
  font-weight: 500;
  line-height: 1;
  color: var(--gold-500);
  letter-spacing: -0.02em;
}
.hx-section--dark .hx-stat__n { color: var(--gold-400); }
.hx-stat__l { margin-top: var(--space-3); font-size: 0.95rem; color: var(--text-muted); }
.hx-section--dark .hx-stat__l { color: rgba(245,239,228,0.7); }

/* ----------------------------------------------------------------------------
   11. Logo / client roster wall
   -------------------------------------------------------------------------- */
.hx-logos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}
.hx-logo {
  display: grid; place-items: center;
  text-align: center;
  padding: var(--space-5) var(--space-4);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--navy-700);
  min-height: 84px;
  transition: border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.hx-logo:hover { border-color: var(--gold-400); color: var(--navy-900); }
.hx-logo small { display: block; font-weight: 500; font-size: 0.74rem; color: var(--slate-400); margin-top: 3px; }
.hx-section--dark .hx-logo { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.12); color: #fff; }

/* Real client / partner logo tiles — image variant of .hx-logo. */
.hx-logo--img { padding: var(--space-4) var(--space-5); }
.hx-logo__img {
  display: block;
  max-width: 100%;
  max-height: 46px;
  width: auto;
  height: auto;
  object-fit: contain;
}
/* On dark roster bands keep image logos on a clean white card, so multi-colour
   government / university marks stay legible instead of vanishing. */
.hx-section--dark .hx-logo--img { background: #fff; border-color: rgba(255,255,255,0.14); }
.hx-section--dark .hx-logo--img:hover { border-color: var(--gold-400); }

/* ----------------------------------------------------------------------------
   11b. Figure / cohort photo + people (facilitators)
   -------------------------------------------------------------------------- */
.hx-figure {
  margin: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);
}
.hx-figure img { display: block; width: 100%; height: auto; }
.hx-figure figcaption {
  padding: var(--space-3) var(--space-4);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hx-people {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}
.hx-person { text-align: center; }
.hx-person__img {
  display: block;
  width: 104px;
  height: 104px;
  margin: 0 auto var(--space-4);
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--paper);
}
.hx-person h3 { font-size: 1.02rem; margin: 0; }
.hx-person p { margin-top: 4px; font-size: 0.9rem; color: var(--text-muted); }
.hx-section--dark .hx-person__img { border-color: rgba(255,255,255,0.18); }

/* ----------------------------------------------------------------------------
   12. CTA band
   -------------------------------------------------------------------------- */
.hx-cta {
  background: radial-gradient(120% 160% at 0% 0%, var(--navy-700), var(--navy-900));
  color: #fff;
  border-radius: var(--r-xl);
  padding: clamp(var(--space-7), 6vw, var(--space-9));
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hx-cta::after {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='96' viewBox='0 0 56 96'%3E%3Cpath fill='none' stroke='%23c8a04b' stroke-opacity='0.14' stroke-width='1.2' d='M28 1 L55 16 L55 48 L28 63 L1 48 L1 16 Z'/%3E%3C/svg%3E");
  background-size: 48px 82px;
  z-index: 0;
  mask-image: radial-gradient(80% 80% at 100% 0%, #000, transparent 70%);
}
.hx-cta > * { position: relative; z-index: 1; }
.hx-cta h2 { color: #fff; }
.hx-cta p { color: rgba(245,239,228,0.82); max-width: 52ch; margin-inline: auto; margin-top: var(--space-4); }
.hx-cta .hx-btn-row { margin-top: var(--space-6); justify-content: center; }

/* ----------------------------------------------------------------------------
   13. Quote / pull
   -------------------------------------------------------------------------- */
.hx-quote {
  font-family: var(--font-display);
  font-size: var(--step-3);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--navy-800);
  max-width: 22ch;
}
.hx-quote--lg { font-size: var(--step-4); }
.hx-quote .hx-gold { color: var(--gold-600); }
.hx-cite { margin-top: var(--space-5); font-family: var(--font-sans); font-size: 0.95rem; color: var(--slate-500); font-weight: 600; }

/* Definition rows (two-way journeys) */
.hx-journeys { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
.hx-journey {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--space-6);
  background: var(--paper);
}
.hx-journey__tag {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--teal-600);
  margin-bottom: var(--space-3);
}
.hx-journey:nth-child(2) .hx-journey__tag { color: var(--gold-700); }
.hx-journey h3 { font-size: var(--step-2); margin-bottom: var(--space-3); }
.hx-journey p { color: var(--text-muted); }
.hx-journey ul { list-style: none; padding: 0; margin-top: var(--space-4); display: grid; gap: var(--space-2); }
.hx-journey li { padding-left: var(--space-5); position: relative; font-size: 0.95rem; }
.hx-journey li::before { content: "→"; position: absolute; left: 0; color: var(--gold-600); font-weight: 700; }

/* ----------------------------------------------------------------------------
   14. Blog — index, cards, article
   -------------------------------------------------------------------------- */
.hx-pagehead {
  background: linear-gradient(180deg, var(--navy-800), var(--navy-900));
  color: var(--sand-100);
  padding-block: clamp(var(--space-8), 7vw, var(--space-9));
  position: relative;
  overflow: hidden;
}
.hx-pagehead .hx-eyebrow { color: var(--gold-400); }
.hx-pagehead h1 { color: #fff; margin-top: var(--space-3); }
.hx-pagehead p { color: rgba(245,239,228,0.8); margin-top: var(--space-4); max-width: 60ch; }

.hx-postgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }

.hx-postcard {
  display: flex; flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
  height: 100%;
}
.hx-postcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.hx-postcard__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--sand-200); }
.hx-postcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur) var(--ease); }
.hx-postcard:hover .hx-postcard__media img { transform: scale(1.04); }
.hx-postcard__media--ph {
  display: grid; place-items: center;
  background: linear-gradient(150deg, var(--navy-700), var(--navy-900));
  color: var(--gold-400);
}
.hx-postcard__body { padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); flex: 1; }
.hx-postcard__cat {
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gold-700);
}
.hx-postcard h3 { font-size: var(--step-1); line-height: 1.18; }
.hx-postcard h3 a:hover { color: var(--navy-600); }
.hx-postcard__excerpt { color: var(--text-muted); font-size: 0.92rem; flex: 1; }
.hx-postcard__meta { font-size: 0.8rem; color: var(--slate-400); display: flex; gap: var(--space-3); flex-wrap: wrap; align-items: center; margin-top: auto; }
.hx-postcard__meta span { display: inline-flex; align-items: center; gap: 5px; }

.hx-feature {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--space-6);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden;
}
.hx-feature__media { min-height: 320px; background: var(--sand-200); }
.hx-feature__media img { width: 100%; height: 100%; object-fit: cover; }
.hx-feature__body { padding: clamp(var(--space-6), 4vw, var(--space-8)); align-self: center; }
.hx-feature h2 { font-size: var(--step-3); margin-block: var(--space-3); }

/* Single article */
.hx-article { padding-block: var(--space-8); }
.hx-article__head { max-width: var(--container-narrow); margin-inline: auto; text-align: center; margin-bottom: var(--space-6); }
.hx-article__cat { color: var(--gold-700); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.8rem; }
.hx-article__head h1 { font-size: var(--step-4); margin-block: var(--space-4); }
.hx-byline {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: var(--space-3); color: var(--slate-500); font-size: 0.92rem; font-weight: 500;
}
.hx-byline .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--line-strong); }
.hx-byline strong { color: var(--ink); font-weight: 700; }
.hx-article__hero { max-width: 1040px; margin: var(--space-7) auto; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-md); }

.hx-prose { max-width: var(--container-narrow); margin-inline: auto; font-size: 1.12rem; line-height: 1.78; color: var(--ink-soft); }
.hx-prose > * + * { margin-top: 1.5em; }
.hx-prose p { text-wrap: pretty; }
.hx-prose h2 { font-size: var(--step-2); margin-top: 2em; }
.hx-prose h3 { font-size: var(--step-1); margin-top: 1.6em; }
.hx-prose a { color: var(--accent-ink); border-bottom: 1px solid var(--gold-200); transition: border-color var(--dur-fast); }
.hx-prose a:hover { border-color: var(--gold-600); }
.hx-prose ul, .hx-prose ol { padding-left: 1.4em; }
.hx-prose li + li { margin-top: 0.5em; }
.hx-prose img { border-radius: var(--r-md); margin-inline: auto; }
.hx-prose blockquote {
  border-left: 3px solid var(--gold-500);
  padding: var(--space-2) 0 var(--space-2) var(--space-5);
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-style: italic;
  color: var(--navy-800);
}
.hx-prose table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.hx-prose th, .hx-prose td { border: 1px solid var(--line); padding: var(--space-3); text-align: left; }
.hx-prose th { background: var(--sand-100); font-weight: 700; }
.hx-prose figure { margin-inline: 0; }
.hx-prose figcaption { font-size: 0.85rem; color: var(--slate-400); text-align: center; margin-top: var(--space-2); }
.hx-prose code { background: var(--sand-100); padding: 2px 6px; border-radius: 5px; font-size: 0.9em; }

/* Share + related */
.hx-share {
  max-width: var(--container-narrow); margin: var(--space-8) auto 0;
  padding-top: var(--space-6); border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap;
}
.hx-share__label { font-weight: 700; color: var(--ink); }
.hx-share__links { display: flex; gap: var(--space-2); }
.hx-share__links a {
  width: 42px; height: 42px; display: grid; place-items: center;
  border: 1px solid var(--line-strong); border-radius: var(--r-pill);
  color: var(--navy-700);
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.hx-share__links a:hover { background: var(--navy-800); color: #fff; border-color: var(--navy-800); transform: translateY(-2px); }
.hx-share__links svg { width: 18px; height: 18px; }

.hx-related { background: var(--bg-alt); }
.hx-related h2 { font-size: var(--step-2); margin-bottom: var(--space-6); }

.hx-authorbox {
  max-width: var(--container-narrow); margin: var(--space-7) auto 0;
  display: flex; gap: var(--space-4); align-items: flex-start;
  padding: var(--space-5); background: var(--sand-100); border-radius: var(--r-lg);
}
.hx-authorbox img, .hx-authorbox .hx-avatar {
  width: 56px; height: 56px; border-radius: 50%; flex: none;
  background: var(--navy-700); color: var(--gold-400);
  display: grid; place-items: center; font-family: var(--font-display); font-size: 1.3rem;
}
.hx-authorbox h4 { font-size: 1.05rem; }
.hx-authorbox p { color: var(--text-muted); font-size: 0.92rem; margin-top: 2px; }

/* Pagination */
.hx-pagination { display: flex; justify-content: center; gap: var(--space-2); margin-top: var(--space-8); flex-wrap: wrap; }
.hx-pagination a, .hx-pagination span {
  min-width: 44px; height: 44px; padding: 0 var(--space-3);
  display: inline-grid; place-items: center;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  font-weight: 600; color: var(--navy-700); background: var(--paper);
  transition: border-color var(--dur-fast), background var(--dur-fast);
}
.hx-pagination a:hover { border-color: var(--navy-700); }
.hx-pagination .current { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }
.hx-pagination .dots { border-color: transparent; background: transparent; }

/* Empty / 404 */
.hx-empty { text-align: center; max-width: 620px; margin-inline: auto; padding-block: var(--space-9); }
.hx-empty__big {
  font-family: var(--font-display); font-size: clamp(5rem, 16vw, 11rem);
  line-height: 0.9; color: var(--gold-500); letter-spacing: -0.03em;
}

.hx-searchform { display: flex; gap: var(--space-2); max-width: 460px; margin-top: var(--space-5); }
.hx-center .hx-searchform { margin-inline: auto; }
.hx-searchform input[type="search"] {
  flex: 1; font: inherit; padding: 0.8em 1.1em;
  border: 1px solid var(--line-strong); border-radius: var(--r-pill);
  background: var(--paper); color: var(--ink);
}

/* ----------------------------------------------------------------------------
   15. Page (generic / legacy) prose
   -------------------------------------------------------------------------- */
.hx-page { padding-block: var(--space-8); }
.hx-page__head { max-width: var(--container-narrow); margin: 0 auto var(--space-6); text-align: center; }
.hx-page__head h1 { font-size: var(--step-4); }

/* ----------------------------------------------------------------------------
   16. Footer
   -------------------------------------------------------------------------- */
.hx-footer {
  background: var(--navy-900);
  color: rgba(245,239,228,0.72);
  padding-block: var(--space-9) var(--space-6);
}
.hx-footer__top {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: var(--space-7);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.hx-footer__brand .hx-brand { color: #fff; }
.hx-footer__brand p { margin-top: var(--space-4); max-width: 34ch; font-size: 0.95rem; }
.hx-footer__brand .hx-brand b { color: var(--gold-400); }
.hx-footer h4 {
  font-family: var(--font-sans); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-400);
  margin-bottom: var(--space-4);
}
.hx-footer ul { list-style: none; padding: 0; display: grid; gap: var(--space-3); }
.hx-footer a { color: rgba(245,239,228,0.72); font-size: 0.95rem; transition: color var(--dur-fast); }
.hx-footer a:hover { color: #fff; }
.hx-footer__bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;
  gap: var(--space-4); padding-top: var(--space-6); font-size: 0.85rem;
  color: rgba(245,239,228,0.5);
}
.hx-footer__bottom a:hover { color: #fff; }
.hx-footer__corridor {
  display: inline-flex; align-items: center; gap: var(--space-3);
  font-weight: 600; color: rgba(245,239,228,0.6);
}
.hx-footer__corridor .dot { width: 7px; height: 7px; background: var(--gold-500); border-radius: 50%; }

/* ----------------------------------------------------------------------------
   17. Reveal animation
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* ----------------------------------------------------------------------------
   18. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hx-hero__inner { grid-template-columns: 1fr; }
  .hx-corridor { max-width: 520px; }
  .hx-footer__top { grid-template-columns: 1fr 1fr; }
  .hx-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 880px) {
  :root { --header-h: 66px; }
  .hx-menu, .hx-nav__cta.hx-btn { display: none; }
  .hx-burger { display: block; }
  .hx-grid--3, .hx-grid--4, .hx-postgrid, .hx-steps--4, .hx-steps--3 { grid-template-columns: 1fr 1fr; }
  .hx-stats { grid-template-columns: 1fr 1fr; }
  .hx-logos { grid-template-columns: 1fr 1fr; }
  .hx-people { grid-template-columns: 1fr 1fr; }
  .hx-split, .hx-journeys, .hx-feature { grid-template-columns: 1fr; }
  .hx-feature__media { min-height: 220px; }
}

@media (max-width: 560px) {
  .hx-grid--2, .hx-grid--3, .hx-grid--4, .hx-postgrid,
  .hx-steps--4, .hx-steps--3, .hx-stats, .hx-logos,
  .hx-corridor__caption { grid-template-columns: 1fr; }
  .hx-btn-row { width: 100%; }
  .hx-btn-row .hx-btn { width: 100%; }
  .hx-center .hx-btn-row .hx-btn { width: auto; }
  .hx-node { width: 42%; }
  .hx-share { flex-direction: column; align-items: flex-start; }
}

/* ----------------------------------------------------------------------------
   19. Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .hx-ticker__track { animation: none; }
}

/* Admin bar offset for sticky header */
body.admin-bar .hx-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .hx-header { top: 46px; } }
