/* =========================================================
   SustainAxis Consult — Design System
   ========================================================= */

:root {
  /* Brand colors (from logo) */
  --green-500: #1A863A; /* was #1B8E3D (4.2:1 under white text); same hue, now 4.65:1 */
  --green-600: #14702F;
  --green-700: #0E5723;
  --green-50:  #ECFDF3;
  --green-100: #D1FADF;

  --blue-500:  #1E4FA8;
  --blue-600:  #133D80;
  --blue-700:  #0C2D60;
  --blue-50:   #EFF4FF;
  --blue-100:  #DBE6FF;

  --orange:    #F47C2C; /* decorative only: dots, borders, gradients */
  --orange-ink: #B84F0A; /* same hue, for orange text and behind white text: 5.05:1 on white, 4.56:1 on --orange-50 */
  --orange-50: #FFF1E5;

  /* Neutrals */
  --slate-900: #0F172A;
  --slate-800: #1E293B;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748B;
  --slate-400: #94A3B8;
  --slate-300: #CBD5E1;
  --slate-200: #E2E8F0;
  --slate-100: #F1F5F9;
  --slate-50:  #F8FAFC;
  --white:     #FFFFFF;

  /* Semantic */
  --text:      var(--slate-900);
  --text-muted: var(--slate-600);
  --bg:        var(--white);
  --bg-soft:   var(--slate-50);
  --border:    var(--slate-200);

  /* Typography */
  --font-display: 'Plus Jakarta Sans', 'Sora', 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-body:    'Outfit', 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-serif:   'Cormorant Garamond', Georgia, serif;
  --font-mono:    'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Radii & shadows */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-full: 9999px;

  --shadow-sm: 0 1px 2px rgba(15,23,42,.04), 0 1px 1px rgba(15,23,42,.04);
  --shadow-md: 0 4px 14px rgba(15,23,42,.06), 0 2px 4px rgba(15,23,42,.04);
  --shadow-lg: 0 20px 40px -10px rgba(15,23,42,.12), 0 8px 16px rgba(15,23,42,.06);
  --shadow-brand: 0 12px 30px -8px rgba(30,79,168,.25);

  /* Spacing scale (4px base) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px;
  --s-5: 20px; --s-6: 24px; --s-8: 32px; --s-10: 40px;
  --s-12: 48px; --s-16: 64px; --s-20: 80px; --s-24: 96px;

  --container: 1200px;
}

/* Skip link — keyboard a11y, hidden until focused */
.skip-link {
  position: absolute;
  top: -100px; left: 16px;
  background: var(--slate-900);
  color: var(--white);
  padding: 12px 20px;
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  z-index: 99999;
  transition: top .2s ease;
}
.skip-link:focus,
.skip-link:focus-visible {
  top: 16px;
  outline: 3px solid var(--orange);
  outline-offset: 2px;
  color: var(--white);
}

/* Universal visible focus ring — accessibility */
:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
  border-radius: 3px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--blue-500); text-decoration: none; transition: color .2s; }
a:hover { color: var(--blue-600); }
button { font-family: inherit; cursor: pointer; }
ul { padding-left: 0; list-style: none; margin: 0; }

/* Typography */
h1, h2, h3, h4,
h2:where(.hx-3),
:is(h2,h3):where(.hx-4) { font-family: var(--font-display); color: var(--slate-900); margin: 0 0 var(--s-4); line-height: 1.2; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.25rem, 4.5vw, 3.75rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 700; }
h3,
h2:where(.hx-3) { font-size: 1.25rem; font-weight: 600; }
h4,
:is(h2,h3):where(.hx-4) { font-size: 1.0625rem; font-weight: 600; }
p  { margin: 0 0 var(--s-4); color: var(--text-muted); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--green-600);
  background: var(--green-50);
  padding: 6px 14px; border-radius: var(--r-full);
  border: 1px solid var(--green-100);
}
.eyebrow.blue { color: var(--blue-600); background: var(--blue-50); border-color: var(--blue-100); }

/* Container */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--s-6); }
.section { padding: var(--s-24) 0; }
@media (max-width: 768px) { .section { padding: var(--s-16) 0; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--r-full);
  font-weight: 600; font-size: 0.9375rem;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
  min-height: 48px;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: linear-gradient(135deg, var(--green-500), var(--green-600));
  color: var(--white);
  box-shadow: 0 8px 20px -4px rgba(27,142,61,.35);
}
.btn-primary:hover { color: var(--white); box-shadow: 0 12px 28px -4px rgba(27,142,61,.45); }
.btn-secondary {
  background: var(--white); color: var(--blue-600);
  border-color: var(--blue-100);
}
.btn-secondary:hover { background: var(--blue-50); border-color: var(--blue-500); color: var(--blue-600); }
.btn-dark { background: var(--slate-900); color: var(--white); }
.btn-dark:hover { background: var(--slate-800); color: var(--white); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.3); }
.btn-ghost:hover { background: rgba(255,255,255,.1); color: var(--white); }

/* Navbar */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--s-4) var(--s-6);
  max-width: var(--container); margin: 0 auto;
}
.nav__logo { display: flex; align-items: center; gap: 10px; }
.nav__logo img { height: 44px; width: auto; }
.nav__links { display: flex; gap: var(--s-6); align-items: center; }
.nav__links a {
  color: var(--slate-700); font-weight: 500; font-size: 0.9375rem;
  padding: 8px 4px;
  position: relative;
}
.nav__links a:hover { color: var(--green-600); }
.nav__links a.active { color: var(--green-600); }
.nav__links a.active::after {
  content: ''; position: absolute; left: 4px; right: 4px; bottom: 2px;
  height: 2px; background: var(--green-500); border-radius: 2px;
}
.nav__cta { display: flex; align-items: center; gap: var(--s-3); }
.nav__toggle { display: none; background: transparent; border: 1px solid var(--border); padding: 10px; border-radius: var(--r-sm); }
.nav__toggle svg { width: 20px; height: 20px; }

@media (max-width: 980px) {
  .nav__links { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav__cta .btn { display: none; }
  .nav__links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); padding: var(--s-4) var(--s-6) var(--s-6);
    border-bottom: 1px solid var(--border);
    gap: var(--s-3); align-items: flex-start;
  }
}

/* Hero */
.hero {
  position: relative;
  padding: var(--s-24) 0 var(--s-20);
  overflow: hidden;
  background:
    radial-gradient(1100px 480px at 85% -10%, rgba(30,79,168,.10), transparent 60%),
    radial-gradient(900px 420px at -10% 110%, rgba(27,142,61,.10), transparent 60%),
    var(--white);
}
.hero__grid {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: var(--s-16); align-items: center;
}
.hero h1 {
  background: linear-gradient(135deg, var(--slate-900) 0%, var(--blue-600) 50%, var(--green-600) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero__tagline {
  font-family: var(--font-display);
  font-size: 1.125rem; font-weight: 600;
  color: var(--green-600);
  margin: var(--s-4) 0 var(--s-6);
}
.hero__lead { font-size: 1.0625rem; max-width: 56ch; color: var(--slate-600); }
.hero__cta { display: flex; gap: var(--s-3); flex-wrap: wrap; margin-top: var(--s-8); }

.hero__visual {
  position: relative; aspect-ratio: 1 / 1; max-width: 480px; justify-self: end;
  background:
    radial-gradient(circle at 30% 30%, rgba(30,79,168,.10), transparent 60%),
    linear-gradient(135deg, var(--green-50), var(--blue-50));
  border-radius: var(--r-xl);
  border: 1px solid var(--blue-100);
  display: grid; place-items: center;
  box-shadow: var(--shadow-brand);
}
.hero__visual::before {
  content: '';
  position: absolute; inset: -30px;
  background: conic-gradient(from 90deg, rgba(27,142,61,.12), rgba(30,79,168,.12), rgba(244,124,44,.12), rgba(27,142,61,.12));
  filter: blur(40px);
  z-index: -1; border-radius: var(--r-xl);
}
.hero__visual svg { width: 78%; }

.hero__chips {
  position: absolute;
  display: grid; gap: 10px;
}
.hero__chip {
  display: flex; align-items: center; gap: 10px;
  background: var(--white);
  padding: 10px 14px; border-radius: var(--r-full);
  font-weight: 600; font-size: 0.8125rem; color: var(--slate-800);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  white-space: nowrap;
}
.hero__chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-500); }
.hero__chip.blue .dot { background: var(--blue-500); }
.hero__chip.orange .dot { background: var(--orange); }
.hero__chip--tl { top: 8%; left: -5%; }
.hero__chip--br { bottom: 12%; right: -8%; }
.hero__chip--ml { left: -10%; top: 50%; }

@media (max-width: 980px) {
  .hero { padding: var(--s-16) 0 var(--s-12); }
  .hero__grid { grid-template-columns: 1fr; gap: var(--s-10); }
  .hero__visual { justify-self: center; max-width: 380px; }
  .hero__chip--tl { left: 0; }
  .hero__chip--br { right: 0; }
  .hero__chip--ml { display: none; }
}

/* Stats strip */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-6);
  padding: var(--s-10) var(--s-8);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-md);
  margin-top: var(--s-12);
}
.stat__num {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  background: linear-gradient(135deg, var(--green-600), var(--blue-600));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  line-height: 1;
}
.stat__label { color: var(--slate-600); font-size: 0.9375rem; margin-top: 6px; }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* Sections common */
.section-head { max-width: 720px; margin: 0 auto var(--s-12); text-align: center; }
.section-head p { font-size: 1.0625rem; }

/* Cards */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  transition: transform .2s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--green-100); }
.card__icon {
  width: 48px; height: 48px; border-radius: var(--r-md);
  display: grid; place-items: center; margin-bottom: var(--s-4);
  background: linear-gradient(135deg, var(--green-50), var(--blue-50));
  color: var(--green-600);
  border: 1px solid var(--green-100);
}
.card__icon svg { width: 24px; height: 24px; stroke-width: 2; }
.card.blue .card__icon { background: linear-gradient(135deg, var(--blue-50), var(--orange-50)); color: var(--blue-600); border-color: var(--blue-100); }
.card.orange .card__icon { background: linear-gradient(135deg, var(--orange-50), var(--green-50)); color: var(--orange-ink); border-color: #FBD8B8; }

/* Who We Are */
.who { background: var(--bg-soft); }
.who__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-12); align-items: center; }
.who__points { display: grid; gap: var(--s-3); margin-top: var(--s-6); }
.who__point { display: flex; gap: 12px; padding: 14px 16px; background: var(--white); border-radius: var(--r-md); border: 1px solid var(--border); }
.who__point svg { flex-shrink: 0; color: var(--green-500); width: 22px; height: 22px; }
.who__point span { font-size: 0.9375rem; color: var(--slate-700); }

.who__visual {
  background: var(--slate-900) url('assets/photos/data-tablet.jpg') center / cover no-repeat;
  border-radius: var(--r-xl);
  aspect-ratio: 4 / 5;
  position: relative; overflow: hidden;
  padding: var(--s-8);
  color: var(--white);
  display: flex; flex-direction: column; justify-content: flex-end;
  box-shadow: var(--shadow-brand);
}
.who__visual::before {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(15,23,42,0.20) 0%, rgba(15,23,42,0.55) 55%, rgba(15,23,42,0.92) 100%),
    linear-gradient(135deg, rgba(11,79,108,0.25), rgba(27,142,61,0.15));
  mix-blend-mode: normal;
}
.who__visual h3,
.who__visual h2:where(.hx-3) { color: var(--white); position: relative; font-size: 1.5rem; }
.who__visual p { color: rgba(255,255,255,.85); position: relative; margin: 0; }

@media (max-width: 880px) {
  .who__grid { grid-template-columns: 1fr; gap: var(--s-8); }
  .who__visual { aspect-ratio: 16 / 10; }
}

/* Vision & Mission */
.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-6); }
.vm-card {
  padding: var(--s-8);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--white);
  position: relative; overflow: hidden;
}
.vm-card.green {
  background: linear-gradient(180deg, var(--green-50) 0%, var(--white) 60%);
  border-color: var(--green-100);
}
.vm-card.blue {
  background: linear-gradient(180deg, var(--blue-50) 0%, var(--white) 60%);
  border-color: var(--blue-100);
}
.vm-card__icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--white); border: 1px solid var(--border);
  margin-bottom: var(--s-5);
}
.vm-card.green .vm-card__icon { color: var(--green-600); }
.vm-card.blue .vm-card__icon { color: var(--blue-600); }
@media (max-width: 720px) { .vm-grid { grid-template-columns: 1fr; } }

/* Values grid */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
@media (max-width: 880px) { .values-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .values-grid { grid-template-columns: 1fr; } }

/* Services */
.services { background: var(--bg-soft); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
.service-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: var(--s-6);
  display: flex; flex-direction: column; gap: var(--s-3);
  transition: transform .2s ease, box-shadow .25s ease, border-color .25s ease;
  position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(180deg, var(--green-500), var(--blue-500));
  transform: scaleY(0); transform-origin: top; transition: transform .3s ease;
}
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--green-100); }
.service-card:hover::before { transform: scaleY(1); }
.service-card__head { display: flex; gap: var(--s-3); align-items: flex-start; }
.service-card__icon {
  width: 44px; height: 44px; border-radius: var(--r-md);
  display: grid; place-items: center; flex-shrink: 0;
  background: linear-gradient(135deg, var(--green-50), var(--blue-50));
  color: var(--green-600); border: 1px solid var(--green-100);
}
.service-card h3,
.service-card h2:where(.hx-3) { margin: 0; font-size: 1.0625rem; }
.service-card p { font-size: 0.9375rem; margin: 0; }
.service-card ul.tags {
  display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: var(--s-3);
}
.service-card .tag {
  font-size: 0.75rem; color: var(--slate-600);
  background: var(--slate-50); border: 1px solid var(--border);
  padding: 4px 10px; border-radius: var(--r-full);
}
@media (max-width: 980px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .services-grid { grid-template-columns: 1fr; } }

/* Why Choose Us */
.why-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--s-5); }
.why-card {
  text-align: center;
  padding: var(--s-6) var(--s-4);
  border-radius: var(--r-lg);
  background: var(--white);
  border: 1px solid var(--border);
  transition: all .25s ease;
}
.why-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.why-card .icon-wrap {
  width: 64px; height: 64px;
  margin: 0 auto var(--s-4);
  border-radius: var(--r-full);
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--green-500), var(--blue-500));
  color: var(--white);
  box-shadow: 0 10px 22px -8px rgba(30,79,168,.45);
}
.why-card h4,
.why-card :is(h2,h3):where(.hx-4) { font-size: 1rem; margin-bottom: 6px; }
.why-card p { font-size: 0.875rem; margin: 0; }
@media (max-width: 980px) { .why-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }

/* Clients */
.clients { background: var(--bg-soft); }
.clients-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); }
.client-pill {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--s-5);
  display: flex; gap: var(--s-3); align-items: center;
  font-weight: 500;
  transition: all .25s ease;
}
.client-pill:hover { border-color: var(--green-500); box-shadow: var(--shadow-md); }
.client-pill .icon-wrap {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, var(--green-50), var(--blue-50));
  display: grid; place-items: center;
  color: var(--blue-600); border: 1px solid var(--blue-100); flex-shrink: 0;
}
@media (max-width: 880px) { .clients-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .clients-grid { grid-template-columns: 1fr; } }

/* CTA banner */
.cta-banner {
  background:
    radial-gradient(600px 200px at 90% 0%, rgba(244,124,44,.25), transparent 60%),
    radial-gradient(600px 200px at 0% 100%, rgba(27,142,61,.25), transparent 60%),
    linear-gradient(135deg, var(--blue-600), var(--blue-700));
  border-radius: var(--r-xl);
  padding: var(--s-16) var(--s-12);
  color: var(--white);
  text-align: center;
  position: relative; overflow: hidden;
}
.cta-banner h2 { color: var(--white); }
.cta-banner p { color: rgba(255,255,255,.85); font-size: 1.0625rem; max-width: 56ch; margin-left: auto; margin-right: auto; }
.cta-banner .actions { display: flex; gap: var(--s-3); justify-content: center; flex-wrap: wrap; margin-top: var(--s-6); }
@media (max-width: 720px) { .cta-banner { padding: var(--s-10) var(--s-6); } }

/* Footer */
.footer {
  background: var(--slate-900); color: var(--slate-300);
  padding: var(--s-16) 0 var(--s-8);
}
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: var(--s-10); }
.footer h4,
.footer :is(h2,h3):where(.hx-4) { color: var(--white); font-size: 0.9375rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: var(--s-4); }
.footer a { color: var(--slate-300); font-size: 0.9375rem; }
.footer a:hover { color: var(--white); }
.footer__links { display: grid; gap: 10px; }
.footer__brand img { background: var(--white); padding: 12px 16px; border-radius: var(--r-md); display: inline-block; margin-bottom: var(--s-4); }
.footer__brand p { color: var(--slate-400); font-size: 0.9375rem; max-width: 38ch; }
.footer__social {
  display: flex; gap: 10px; margin-top: var(--s-4);
}
.footer__social a {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  color: var(--slate-300);
  border: 1px solid rgba(255,255,255,0.08);
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.footer__social a:hover {
  background: var(--green-500);
  color: var(--white);
  border-color: var(--green-500);
  transform: translateY(-2px);
}
.footer__social a:focus-visible {
  outline: 2px solid var(--green-500);
  outline-offset: 2px;
}
.footer__social svg { display: block; }

/* Contact page — inline social row inside contact-info */
.contact-socials {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 4px;
}
.contact-socials a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--slate-700);
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.contact-socials a:hover {
  background: var(--green-500);
  color: var(--white);
  border-color: var(--green-500);
  transform: translateY(-1px);
}
.contact-socials a svg { flex-shrink: 0; }

/* Newsletter signup — inline result messages */
.newsletter-msg {
  margin: var(--s-4) auto 0;
  max-width: 52ch;
  padding: 12px 18px;
  border-radius: var(--r-md);
  font-size: 0.9375rem;
  line-height: 1.55;
}
.newsletter-msg.is-ok { background: var(--green-50); border: 1px solid #BBF7D0; color: var(--green-700); }
.newsletter-msg.is-err { background: #FEF2F2; border: 1px solid #FECACA; color: #991B1B; }

/* =========================================================
   Share bar — per-module course sharing
   ========================================================= */
.share-bar {
  margin-top: var(--s-8);
  padding: var(--s-5) var(--s-6);
  background: linear-gradient(135deg, var(--green-50), #ECF6FF);
  border: 1px solid var(--green-100);
  border-radius: var(--r-lg);
}
.share-bar__lead {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: var(--s-3);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--slate-800);
}
.share-bar__lead svg { color: var(--green-600); flex-shrink: 0; }
.share-bar__btns {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.share-bar__btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--slate-700);
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.share-bar__btn:hover { transform: translateY(-1px); color: var(--white); }
.share-bar__btn svg { flex-shrink: 0; }
.share-bar__btn:focus-visible {
  outline: 2px solid var(--green-500);
  outline-offset: 2px;
}
.share-bar__btn--whatsapp:hover { background: #25D366; border-color: #25D366; }
.share-bar__btn--linkedin:hover { background: #0A66C2; border-color: #0A66C2; }
.share-bar__btn--facebook:hover { background: #1877F2; border-color: #1877F2; }
.share-bar__btn--x:hover        { background: #0F172A; border-color: #0F172A; }
.share-bar__btn--email:hover    { background: var(--slate-700); border-color: var(--slate-700); }
.share-bar__btn--copy:hover     { background: var(--green-500); border-color: var(--green-500); }
.share-bar__btn--copy.is-copied {
  background: var(--green-500); border-color: var(--green-500); color: var(--white);
}
.share-bar__btn--copy.is-copied .js-share-copy-icon-default { display: none; }
.share-bar__btn--copy.is-copied .js-share-copy-icon-done    { display: inline-block; }

@media (max-width: 600px) {
  .share-bar { padding: var(--s-4); }
  .share-bar__btn { flex: 1; justify-content: center; min-width: 96px; }
}
.footer__contact-item { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; font-size: 0.9375rem; }
.footer__contact-item svg { color: var(--green-500); flex-shrink: 0; margin-top: 2px; }
.footer__bottom {
  border-top: 1px solid var(--slate-800);
  margin-top: var(--s-12);
  padding-top: var(--s-6);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--s-3);
  color: var(--slate-400); font-size: 0.875rem;
}
@media (max-width: 880px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

/* Reveal animation */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
  .reveal.in { opacity: 1; transform: none; }
}

/* Sub-page header */
.subhero {
  background:
    radial-gradient(900px 360px at 80% -10%, rgba(30,79,168,.10), transparent 60%),
    radial-gradient(700px 320px at -10% 100%, rgba(27,142,61,.10), transparent 60%),
    var(--white);
  padding: var(--s-20) 0 var(--s-12);
  text-align: center;
}
.subhero p { max-width: 56ch; margin: var(--s-4) auto 0; font-size: 1.0625rem; }
.breadcrumb {
  display: inline-flex; gap: 8px; font-size: 0.875rem; color: var(--slate-500);
  margin-bottom: var(--s-4);
}
.breadcrumb a { color: var(--slate-600); }
.breadcrumb span { color: var(--slate-400); }

/* ==== Sub-page hero with background image (used on About, Services, Projects, etc.) ==== */
.subhero--image {
  position: relative;
  background: var(--slate-900);
  color: white;
  /* Top padding has to clear the fixed navbar, which sits at top: 20px and is
     roughly 58px tall. Expressed in --s-* rather than the previous hardcoded
     200px/100px; 192/96 keeps the desktop presentation as it was. */
  padding: calc(var(--s-24) * 2) 0 var(--s-24);
  text-align: left;
  overflow: hidden;
  isolation: isolate;
}
.subhero--image .subhero__bg {
  position: absolute; inset: 0; z-index: -2;
}
.subhero--image .subhero__bg img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
}
.subhero--image .subhero__overlay {
  position: absolute; inset: 0; z-index: -1;
  /* The scrim has to guarantee legibility over an arbitrary photograph, because
     hero images get swapped without anyone re-checking contrast. Raised from
     0.45/0.55/0.85: at 0.45 a bright photo left the breadcrumb near-invisible.
     These stops keep every hero text element at or above WCAG AA on all ten
     pages currently in use, measured against the real composited pixels. */
  background:
    linear-gradient(180deg, rgba(15,23,42,0.70) 0%, rgba(15,23,42,0.74) 55%, rgba(15,23,42,0.90) 100%);
}
.subhero--image .subhero__overlay--brand {
  position: absolute; inset: 0; z-index: -1;
  background: #0B4F6C;
  mix-blend-mode: multiply;
  opacity: 0.25;
}
.subhero--image .container { max-width: 1200px; }
/* Solid colours rather than alpha: over a photograph, translucent text has no
   predictable contrast ratio. The separator stays visually quieter than the
   links by using a light slate token, not by thinning its alpha. */
.subhero--image .breadcrumb a { color: var(--white); }
.subhero--image .breadcrumb a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.subhero--image .breadcrumb span { color: var(--slate-300); }
.subhero--image .eyebrow {
  /* The chip's own fill is darkened rather than lightened so the 11px label
     keeps its contrast even where the photo behind it is bright. */
  background: rgba(15,23,42,0.42);
  border-color: rgba(255,255,255,0.28);
  color: var(--white);
  backdrop-filter: blur(8px);
}
.subhero--image h1 {
  font-family: var(--font-display);
  color: white;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
  max-width: 20ch;
  margin: 14px 0 0;
}
.subhero--image h1 .accent-italic {
  color: #F57C00;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
}
.subhero--image p {
  font-family: var(--font-body);
  /* Solid token, chosen to land close to how the old 0.85-alpha white read over
     a mid-tone photo, but with a contrast ratio that no image swap can change. */
  color: var(--slate-200);
  font-size: clamp(1.0625rem, 1.3vw, 1.1875rem);
  max-width: 58ch;
  margin: var(--s-5) 0 0;
  text-align: left;
}
@media (max-width: 720px) {
  /* 96px still clears the floating navbar (bottom edge ~78px) with room to
     breathe, while giving back 94px of the first screen so article text is
     visible above the fold instead of a full screen of hero. */
  .subhero--image { padding: var(--s-24) 0 var(--s-10); }
}

/* Services full list */
.service-block { display: grid; grid-template-columns: 1fr 1.4fr; gap: var(--s-10); padding: var(--s-12) 0; border-bottom: 1px solid var(--border); align-items: start; }
.service-block:last-child { border-bottom: 0; }
.service-block__num { font-family: var(--font-display); font-size: 0.875rem; color: var(--green-600); letter-spacing: .08em; font-weight: 600; }
.service-block h3,
.service-block h2:where(.hx-3) { font-size: 1.5rem; margin-top: 4px; }
.service-block__list { display: grid; gap: 10px; }
.service-block__list li { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--r-md); font-size: 0.9375rem; color: var(--slate-700); }
.service-block__list svg { color: var(--green-500); flex-shrink: 0; margin-top: 2px; width: 18px; height: 18px; }
@media (max-width: 800px) { .service-block { grid-template-columns: 1fr; gap: var(--s-6); padding: var(--s-8) 0; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-8); }
.contact-info { display: grid; gap: var(--s-4); }
.contact-item {
  display: flex; gap: var(--s-4); padding: var(--s-5); align-items: flex-start;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg);
}
.contact-item .icon-wrap {
  width: 48px; height: 48px; border-radius: var(--r-md);
  display: grid; place-items: center; flex-shrink: 0;
  background: linear-gradient(135deg, var(--green-50), var(--blue-50));
  color: var(--green-600); border: 1px solid var(--green-100);
}
.contact-item h4,
.contact-item :is(h2,h3):where(.hx-4) { margin: 0 0 4px; font-size: 0.875rem; color: var(--slate-500); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }
.contact-item p { margin: 0; color: var(--slate-900); font-weight: 500; }
.contact-form { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--s-8); }
.form-row { display: grid; gap: var(--s-4); margin-bottom: var(--s-4); }
.form-row.two { grid-template-columns: 1fr 1fr; }
@media (max-width: 600px) { .form-row.two { grid-template-columns: 1fr; } }
.field label { display: block; font-size: 0.875rem; font-weight: 600; color: var(--slate-700); margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border-radius: var(--r-md);
  border: 1px solid var(--border); background: var(--white);
  font-family: inherit; font-size: 0.9375rem; color: var(--slate-900);
  transition: border-color .2s ease, box-shadow .2s ease;
  min-height: 48px;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--green-500);
  box-shadow: 0 0 0 4px rgba(27,142,61,.12);
}
.field .helper { font-size: 0.8125rem; color: var(--slate-500); margin-top: 6px; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }

/* Form status messages */
.form-status {
  display: none;
  margin-top: var(--s-4);
  padding: 14px 16px;
  border-radius: var(--r-md);
  font-size: 0.9375rem;
  align-items: flex-start;
  gap: 10px;
}
.form-status.show { display: flex; }
.form-status svg { flex-shrink: 0; margin-top: 2px; }
.form-status.success {
  background: var(--green-50);
  color: var(--green-700);
  border: 1px solid var(--green-100);
}
.form-status.error {
  background: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FECACA;
}
.btn[disabled] { opacity: 0.65; cursor: not-allowed; pointer-events: none; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* =========================================================
   Cookie consent banner
   ========================================================= */
.cookie-banner {
  position: fixed;
  bottom: 16px; left: 16px; right: 16px;
  max-width: 760px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 18px 20px;
  z-index: 100;
  display: none;
  animation: cookieIn .4s cubic-bezier(.2,.7,.3,1);
}
.cookie-banner.show { display: block; }
.cookie-banner__content {
  display: flex; align-items: center; gap: var(--s-5); flex-wrap: wrap;
}
.cookie-banner__text { flex: 1; min-width: 260px; }
.cookie-banner__text strong {
  display: block; color: var(--slate-900);
  font-size: 0.9375rem; margin-bottom: 2px;
}
.cookie-banner__text p {
  margin: 0; font-size: 0.8125rem; color: var(--slate-600); line-height: 1.5;
}
.cookie-banner__actions {
  display: flex; gap: 10px; flex-shrink: 0;
}
.cookie-banner__actions .btn {
  padding: 10px 18px; min-height: 40px; font-size: 0.875rem;
}
@keyframes cookieIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .cookie-banner { animation: none; }
}
@media (max-width: 640px) {
  .cookie-banner { left: 8px; right: 8px; padding: 16px; }
  .cookie-banner__actions { width: 100%; }
  .cookie-banner__actions .btn { flex: 1; }
}
.footer__bottom a.js-cookie-prefs {
  color: var(--slate-400); text-decoration: underline; text-underline-offset: 3px;
}
.footer__bottom a.js-cookie-prefs:hover { color: var(--white); }

/* =========================================================
   Filter chips (Projects, Publications, Training)
   ========================================================= */
.filter-chips {
  display: flex; gap: 8px; flex-wrap: wrap;
  justify-content: center;
  margin: 0 0 var(--s-10);
}
.filter-chip {
  display: inline-flex; align-items: center;
  padding: 8px 18px; border-radius: var(--r-full);
  background: var(--white); border: 1px solid var(--border);
  color: var(--slate-700); font-size: 0.875rem; font-weight: 500;
  transition: all .2s ease; cursor: pointer; user-select: none;
}
.filter-chip:hover { border-color: var(--green-500); color: var(--green-600); }
.filter-chip.active { background: var(--green-500); border-color: var(--green-500); color: var(--white); }

/* =========================================================
   Project card (with metadata + outcomes)
   ========================================================= */
.project-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-6);
}
@media (max-width: 880px) { .project-grid { grid-template-columns: 1fr; } }
.project-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: var(--s-6); transition: transform .2s ease, box-shadow .25s ease, border-color .25s ease;
  display: flex; flex-direction: column; gap: var(--s-4);
}
.project-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--green-100); }
.project-card__tag {
  display: inline-block; font-size: 0.6875rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 10px; border-radius: var(--r-full);
  background: var(--green-50); color: var(--green-600); border: 1px solid var(--green-100);
  width: fit-content;
}
.project-card__tag.blue { background: var(--blue-50); color: var(--blue-600); border-color: var(--blue-100); }
.project-card__tag.orange { background: var(--orange-50); color: var(--orange-ink); border-color: #FBD8B8; }
.project-card h3,
.project-card h2:where(.hx-3) { margin: 0; font-size: 1.125rem; line-height: 1.35; }
.project-card__meta {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  font-size: 0.8125rem; color: var(--slate-600);
  padding: var(--s-4) 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.project-card__meta span { display: flex; gap: 6px; align-items: flex-start; }
.project-card__meta strong { display: block; color: var(--slate-900); font-weight: 600; font-size: 0.8125rem; }
.project-card__desc { font-size: 0.9375rem; color: var(--slate-700); margin: 0; }
.project-card__outcomes {
  display: flex; gap: 14px; flex-wrap: wrap; padding-top: var(--s-3);
  font-size: 0.8125rem; color: var(--slate-700);
}
.project-card__outcomes span {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--bg-soft); padding: 6px 12px; border-radius: var(--r-full);
}
.project-card__outcomes span::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--green-500);
}

/* =========================================================
   Publication list item
   ========================================================= */
.pub-list { display: grid; gap: var(--s-4); }
.pub-item {
  display: grid; grid-template-columns: 1fr auto; gap: var(--s-6);
  padding: var(--s-6); background: var(--white);
  border: 1px solid var(--border); border-radius: var(--r-lg);
  align-items: center;
  transition: transform .2s, box-shadow .25s, border-color .25s;
}
.pub-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--green-100); }
.pub-item__type {
  display: inline-block; font-size: 0.6875rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 10px; border-radius: var(--r-full);
  background: var(--blue-50); color: var(--blue-600); border: 1px solid var(--blue-100);
  margin-bottom: 8px;
}
.pub-item__type.green { background: var(--green-50); color: var(--green-600); border-color: var(--green-100); }
.pub-item__type.orange { background: var(--orange-50); color: var(--orange-ink); border-color: #FBD8B8; }
.pub-item h3,
.pub-item h2:where(.hx-3) { font-size: 1.0625rem; margin: 0 0 6px; line-height: 1.4; }
.pub-item__meta { font-size: 0.8125rem; color: var(--slate-500); margin-bottom: var(--s-2); }
.pub-item__abstract { font-size: 0.9375rem; color: var(--slate-600); margin: 0; }
.pub-item__download {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 18px; border-radius: var(--r-md);
  background: var(--bg-soft); border: 1px solid var(--border);
  color: var(--slate-900); font-size: 0.875rem; font-weight: 600;
  transition: all .2s; white-space: nowrap;
}
.pub-item__download:hover { background: var(--green-50); border-color: var(--green-500); color: var(--green-600); }
@media (max-width: 720px) {
  .pub-item { grid-template-columns: 1fr; }
  .pub-item__download { justify-self: flex-start; }
}

/* =========================================================
   Course card (Training Academy)
   ========================================================= */
.featured-course {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-8);
  padding: var(--s-10);
  background: linear-gradient(135deg, var(--blue-50), var(--green-50));
  border: 1px solid var(--green-100); border-radius: var(--r-xl);
  align-items: center; margin-bottom: var(--s-12);
}
.featured-course__label {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--orange-ink); margin-bottom: var(--s-3);
}
.featured-course h3,
.featured-course h2:where(.hx-3) { font-size: 1.75rem; margin: 0 0 var(--s-3); color: var(--slate-900); }
.featured-course__meta {
  display: flex; gap: 12px; flex-wrap: wrap; margin: var(--s-4) 0;
}
.course-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: var(--r-full);
  background: var(--white); border: 1px solid var(--border);
  font-size: 0.8125rem; font-weight: 500; color: var(--slate-700);
}
.featured-course p { font-size: 0.9375rem; }
.featured-course__visual {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: var(--s-8); display: flex; flex-direction: column; gap: var(--s-4);
}
.featured-course__stat {
  display: flex; align-items: baseline; gap: 12px;
  padding: var(--s-3) 0; border-bottom: 1px solid var(--border);
}
.featured-course__stat:last-child { border-bottom: 0; }
.featured-course__stat strong {
  font-family: var(--font-display); font-size: 1.5rem; color: var(--green-600); font-weight: 700; min-width: 50px;
}
.featured-course__stat span { color: var(--slate-700); font-size: 0.9375rem; }
@media (max-width: 880px) { .featured-course { grid-template-columns: 1fr; padding: var(--s-6); } }

.course-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-5); }
.course-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: var(--s-6); transition: transform .2s, box-shadow .25s, border-color .25s;
  display: flex; flex-direction: column; gap: var(--s-3);
}
.course-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--green-100); }
.course-card__icon {
  width: 44px; height: 44px; border-radius: var(--r-md);
  display: grid; place-items: center; flex-shrink: 0;
  background: linear-gradient(135deg, var(--green-50), var(--blue-50));
  color: var(--green-600); border: 1px solid var(--green-100);
  margin-bottom: var(--s-2);
}
.course-card h3,
.course-card h2:where(.hx-3) { margin: 0; font-size: 1rem; }
.course-card__meta { display: flex; gap: 8px; flex-wrap: wrap; }
.course-card__meta span {
  font-size: 0.75rem; padding: 3px 10px; border-radius: var(--r-full);
  background: var(--bg-soft); border: 1px solid var(--border); color: var(--slate-600);
}
.course-card p { font-size: 0.875rem; margin: 0; }
@media (max-width: 720px) { .course-grid { grid-template-columns: 1fr; } }

/* Calendar list (Upcoming sessions) */
.calendar-list { display: grid; gap: var(--s-3); }
.calendar-item {
  display: grid; grid-template-columns: auto 1fr auto; gap: var(--s-5);
  padding: var(--s-5); background: var(--white);
  border: 1px solid var(--border); border-radius: var(--r-lg);
  align-items: center;
}
.calendar-item__date {
  text-align: center; padding: var(--s-3) var(--s-4);
  background: linear-gradient(135deg, var(--green-500), var(--blue-500));
  color: var(--white); border-radius: var(--r-md); min-width: 80px;
}
.calendar-item__date .month {
  display: block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; opacity: .85;
}
.calendar-item__date .year { display: block; font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; line-height: 1; }
.calendar-item__info h4,
.calendar-item__info :is(h2,h3):where(.hx-4) { margin: 0 0 4px; font-size: 1rem; }
.calendar-item__info span { font-size: 0.8125rem; color: var(--slate-500); }
@media (max-width: 720px) {
  .calendar-item { grid-template-columns: auto 1fr; }
  .calendar-item .btn { grid-column: 1 / -1; justify-self: stretch; }
}

/* =========================================================
   Blog / Insights post card
   ========================================================= */
.featured-post {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--s-10);
  padding: var(--s-10); background: var(--white);
  border: 1px solid var(--border); border-radius: var(--r-xl);
  margin-bottom: var(--s-12);
  box-shadow: var(--shadow-md);
  align-items: center;
}
.featured-post__visual {
  aspect-ratio: 16 / 11;
  background:
    radial-gradient(400px 200px at 30% 30%, rgba(30,79,168,.20), transparent 60%),
    linear-gradient(135deg, var(--green-500), var(--blue-500));
  border-radius: var(--r-lg);
  position: relative; overflow: hidden;
  display: grid; place-items: center;
}
.featured-post__visual svg { width: 50%; opacity: .9; }
.featured-post .post-meta { margin-bottom: var(--s-3); }
.featured-post h3,
.featured-post h2:where(.hx-3) { font-size: 1.875rem; line-height: 1.25; margin: 0 0 var(--s-3); color: var(--slate-900); }
.featured-post p { font-size: 1rem; }
@media (max-width: 880px) { .featured-post { grid-template-columns: 1fr; padding: var(--s-6); gap: var(--s-6); } }

.insights-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6); }
.post-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .2s, box-shadow .25s, border-color .25s;
  display: flex; flex-direction: column;
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--green-100); }
.post-card__visual {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--green-500), var(--blue-500));
  position: relative; display: grid; place-items: center;
}
.post-card__visual.blue { background: linear-gradient(135deg, var(--blue-500), var(--blue-700)); }
.post-card__visual.orange { background: linear-gradient(135deg, var(--orange), var(--green-500)); }
.post-card__visual svg { width: 40%; opacity: .9; }
.post-card__body { padding: var(--s-5); flex: 1; display: flex; flex-direction: column; gap: 8px; }
.post-card h3,
.post-card h2:where(.hx-3) { font-size: 1.0625rem; margin: 0; line-height: 1.4; }
.post-card p { font-size: 0.875rem; margin: 0; }
.post-card__footer { margin-top: auto; padding-top: var(--s-3); border-top: 1px solid var(--border); font-size: 0.8125rem; color: var(--slate-500); }
@media (max-width: 980px) { .insights-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .insights-grid { grid-template-columns: 1fr; } }

.post-meta {
  display: flex; gap: 10px; align-items: center;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
}
.post-meta__tag { color: var(--orange-ink); }
.post-meta__divider { width: 4px; height: 4px; border-radius: 50%; background: var(--slate-300); }
.post-meta__time { color: var(--slate-500); font-weight: 500; }

/* Newsletter signup card */
.newsletter-cta {
  padding: var(--s-10);
  background: linear-gradient(135deg, var(--blue-600), var(--blue-700));
  border-radius: var(--r-xl);
  color: var(--white);
  text-align: center;
}
.newsletter-cta h3,
.newsletter-cta h2:where(.hx-3) { color: var(--white); font-size: 1.5rem; margin-bottom: var(--s-2); }
.newsletter-cta p { color: rgba(255,255,255,.85); margin-bottom: var(--s-5); }
.newsletter-cta__form {
  display: flex; gap: var(--s-2); max-width: 480px; margin: 0 auto;
}
.newsletter-cta__form input {
  flex: 1; padding: 12px 16px; border-radius: var(--r-md); border: 0;
  font-family: inherit; font-size: 0.9375rem;
}
.newsletter-cta__form input:focus { outline: none; box-shadow: 0 0 0 4px rgba(255,255,255,.25); }
@media (max-width: 600px) {
  .newsletter-cta__form { flex-direction: column; }
}

/* =========================================================
   Global noise overlay (5%) — adds premium clinical texture
   ========================================================= */
body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.045;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.85 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 220px 220px;
}
@media (prefers-reduced-motion: no-preference) {
  /* no-op — noise is static */
}

/* =========================================================
   Cormorant italic accent — for selective premium emphasis
   ========================================================= */
.accent-italic {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0;
}

/* =========================================================
   Magnetic button — subtle cursor attraction on primary CTAs
   ========================================================= */
.btn.magnetic {
  transition: transform .4s cubic-bezier(.2,.7,.3,1), box-shadow .25s, background .2s, color .2s;
  will-change: transform;
}

/* =========================================================
   Methodology — sticky stacking section
   ========================================================= */
.methodology { background: var(--bg-soft); padding: var(--s-24) 0; position: relative; }
.methodology .section-head { margin-bottom: var(--s-12); }
.methodology h2 .accent-italic { color: var(--green-600); }
.methodology-stack {
  position: relative;
  display: flex; flex-direction: column;
  gap: var(--s-5);
}
.method-panel {
  position: sticky;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--s-10) var(--s-12);
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--s-10);
  align-items: start;
  box-shadow: 0 14px 40px -18px rgba(15,23,42,.18);
  transition: transform .5s ease, opacity .5s ease, filter .5s ease;
  transform-origin: center top;
}
.method-panel[data-panel="1"] { top: 100px; z-index: 1; }
.method-panel[data-panel="2"] { top: 120px; z-index: 2; }
.method-panel[data-panel="3"] { top: 140px; z-index: 3; }
.method-panel[data-panel="4"] { top: 160px; z-index: 4; }
.method-panel.is-stacked {
  transform: scale(0.96);
  opacity: 0.4;
  filter: blur(2px);
}
.method-panel.is-stacked-deep {
  transform: scale(0.92);
  opacity: 0.22;
  filter: blur(5px);
}
.method-panel__number {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(135deg, var(--green-500), var(--blue-500));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  letter-spacing: -0.04em;
}
.method-panel__label {
  font-family: var(--font-body);
  font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--slate-500); font-weight: 600;
  margin-top: 12px;
}
.method-panel h3,
.method-panel h2:where(.hx-3) {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  margin: 0 0 var(--s-3);
  letter-spacing: -0.02em;
}
.method-panel h3 .accent-italic,
.method-panel h2:where(.hx-3) .accent-italic { color: var(--green-600); }
.method-panel__lead {
  font-size: 1.0625rem;
  color: var(--slate-700);
  margin: 0 0 var(--s-5);
  max-width: 64ch;
}
.method-panel__points {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.method-panel__points li {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 10px 14px; background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-size: 0.9375rem; color: var(--slate-700);
}
.method-panel__points svg { color: var(--green-500); flex-shrink: 0; margin-top: 2px; width: 18px; height: 18px; }
@media (max-width: 880px) {
  .method-panel { grid-template-columns: 1fr; gap: var(--s-5); padding: var(--s-6); }
  .method-panel__points { grid-template-columns: 1fr; }
}

/* Sentinel spacer so the last panel doesn't get stuck at top of viewport */
.methodology-spacer { height: 40vh; }

/* =========================================================
   Monospace data label utility (IBM Plex Mono)
   For version numbers, system indicators, technical labels
   ========================================================= */
.mono-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 500;
}

/* =========================================================
   Status pill — pulsing green dot + label
   ========================================================= */
.status-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--r-full);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  color: rgba(255,255,255,0.92);
  white-space: nowrap;
}
.status-pill--dark {
  background: rgba(15,23,42,0.06);
  border-color: rgba(15,23,42,0.1);
  color: var(--slate-700);
}
.pulse-dot {
  position: relative;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #22C55E;
  flex-shrink: 0;
}
.pulse-dot::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: 50%;
  background: #22C55E;
  animation: pulseRing 2s ease-out infinite;
}
@keyframes pulseRing {
  0%   { transform: scale(1);   opacity: 0.7; }
  100% { transform: scale(3.2); opacity: 0;   }
}
@media (prefers-reduced-motion: reduce) {
  .pulse-dot::before { animation: none; }
}

/* =========================================================
   Floating glassmorphism navbar (replaces .nav defaults)
   Transitions on scroll: transparent over dark hero → frosted on scroll
   ========================================================= */
.nav {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 1180px;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(15,23,42,0.06);
  border-radius: var(--r-full);
  box-shadow: 0 10px 30px -10px rgba(15,23,42,0.18);
  transition:
    background .4s ease,
    backdrop-filter .4s ease,
    border-color .4s ease,
    box-shadow .4s ease,
    top .4s ease,
    transform .4s ease;
}
.nav--over-dark {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-color: rgba(255,255,255,0.14);
  box-shadow: none;
}
.nav__inner {
  padding: 10px 10px 10px 24px;
}
.nav__logo img { height: 38px; transition: filter .35s ease; }
.nav--over-dark .nav__logo img {
  /* invert/brighten the logo over the dark hero */
  filter: brightness(0) invert(1);
}
.nav--over-dark .nav__links a { color: rgba(255,255,255,0.85); }
.nav--over-dark .nav__links a:hover { color: white; }
.nav--over-dark .nav__links a.active { color: white; }
.nav--over-dark .nav__links a.active::after { background: #F57C00; }
.nav--over-dark .nav__toggle {
  color: white;
  border-color: rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.05);
}

.nav__links a {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 8px 6px;
}

/* Nav primary CTA — text swap on hover (Nura quirk) */
.nav__cta .btn-primary {
  position: relative;
  overflow: hidden;
  padding: 12px 22px;
  min-height: 44px;
  background: var(--slate-900);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  box-shadow: none;
}
.nav__cta .btn-primary:hover {
  background: var(--orange-ink);
  box-shadow: 0 8px 24px -6px rgba(245,124,0,0.5);
}
.nav--over-dark .nav__cta .btn-primary {
  background: white;
  color: var(--slate-900);
}
.nav--over-dark .nav__cta .btn-primary:hover {
  background: var(--orange-ink);
  color: white;
}

/* =========================================================
   HERO v2 — Full-bleed image background, dark cinematic overlay
   ========================================================= */
.hero-v2 {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  color: white;
  overflow: hidden;
  isolation: isolate;
}
.hero-v2__bg {
  position: absolute; inset: 0; z-index: -2;
}
.hero-v2__bg img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
}
.hero-v2__overlay-grad {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(15,23,42,0.55) 0%, rgba(15,23,42,0.65) 55%, rgba(15,23,42,0.95) 100%);
}
.hero-v2__overlay-color {
  position: absolute; inset: 0; z-index: -1;
  background: #0B4F6C;
  mix-blend-mode: multiply;
  opacity: 0.3;
  pointer-events: none;
}
.hero-v2__content {
  position: relative;
  padding: 200px 0 140px;
  display: flex; flex-direction: column;
  flex: 1; justify-content: center;
}
.hero-v2 .container {
  max-width: 1200px;
}
.hero-v2__eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--r-full);
  color: rgba(255,255,255,0.88);
  margin-bottom: 36px;
  width: fit-content;
}
.hero-v2__eyebrow .static-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 12px var(--orange);
}
.hero-v2__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8.5vw, 6.75rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.045em;
  margin: 0 0 28px;
  color: white;
  max-width: 18ch;
}
.hero-v2__title .accent-italic {
  color: #F57C00;
  font-weight: 500;
  font-family: var(--font-serif);
  font-style: italic;
}
.hero-v2__lead {
  font-family: var(--font-body);
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  color: rgba(255,255,255,0.85);
  max-width: 58ch;
  margin: 0 0 44px;
  line-height: 1.6;
  font-weight: 400;
}
.hero-v2__actions {
  display: flex; gap: 14px; flex-wrap: wrap;
  align-items: center;
}
.btn-hero {
  padding: 16px 30px;
  min-height: 56px;
  font-size: 0.9375rem;
}
.btn-hero.btn-primary {
  background: var(--orange-ink);
  box-shadow: 0 12px 30px -8px rgba(245,124,0,0.5);
}
.btn-hero.btn-primary:hover {
  background: #9A4208; /* darker on hover, 6.65:1 under white */
  box-shadow: 0 16px 36px -8px rgba(245,124,0,0.6);
}
.btn-ghost-light {
  background: transparent;
  color: white;
  border: 1px solid rgba(255,255,255,0.3);
}
.btn-ghost-light:hover {
  background: rgba(255,255,255,0.1);
  color: white;
  border-color: rgba(255,255,255,0.5);
}

.hero-v2__system {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.hero-v2__scroll-cue {
  position: absolute;
  bottom: 50px;
  right: 40px;
  z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.65);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.hero-v2__scroll-cue svg {
  animation: scrollFloat 2s ease-in-out infinite;
}
@keyframes scrollFloat {
  0%, 100% { transform: translateY(0); opacity: .8; }
  50%      { transform: translateY(6px); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-v2__scroll-cue svg { animation: none; }
}
@media (max-width: 720px) {
  .hero-v2__content { padding: 180px 0 120px; }
  .hero-v2__scroll-cue { display: none; }
  .hero-v2__system { bottom: 32px; }
}

/* Stats strip overlapping the hero base (sits below dark hero) */
.hero-v2-stats-wrap {
  position: relative;
  margin-top: -64px;
  margin-bottom: var(--s-12);
  z-index: 5;
}
.hero-v2-stats-wrap .stats {
  margin-top: 0;
  background: var(--white);
  border-radius: var(--r-xl);
  box-shadow: 0 30px 60px -15px rgba(15,23,42,0.25);
}

/* =========================================================
   Footer system status row
   ========================================================= */
.footer__system {
  display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
  margin-bottom: var(--s-4);
}
.footer__system .mono-label { color: var(--slate-400); }

/* =========================================================
   Sectors We Serve — Bento grid with image cards
   ========================================================= */
.sectors { padding: var(--s-24) 0; }
.sectors-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: var(--s-4);
  min-height: 640px;
}
.sector-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  background: var(--slate-900);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--s-6);
  text-decoration: none;
  isolation: isolate;
  min-height: 260px;
  transition: transform .4s ease, box-shadow .4s ease;
  cursor: pointer;
}
.sector-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: white; }
.sector-card:hover .sector-card__img { transform: scale(1.08); }
.sector-card:hover .sector-card__arrow { transform: translate(4px, -4px); }
.sector-card--feature {
  grid-row: span 2;
  min-height: 540px;
}
.sector-card__img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  transition: transform .8s cubic-bezier(.2,.7,.3,1);
}
.sector-card__overlay {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(15,23,42,0.10) 0%, rgba(15,23,42,0.55) 55%, rgba(15,23,42,0.92) 100%);
}
.sector-card__topbar {
  position: absolute; top: var(--s-5); left: var(--s-5); right: var(--s-5);
  display: flex; justify-content: space-between; align-items: center;
  z-index: 1;
}
.sector-card__topbar .mono-label {
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 5px 10px;
  border-radius: var(--r-full);
}
.sector-card__arrow {
  display: grid; place-items: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(8px);
  color: white;
  transition: transform .4s cubic-bezier(.2,.7,.3,1), background .25s;
}
.sector-card:hover .sector-card__arrow { background: var(--orange-ink); border-color: var(--orange-ink); }
.sector-card__arrow svg { width: 16px; height: 16px; }
.sector-card h3,
.sector-card h2:where(.hx-3) {
  font-family: var(--font-display);
  color: white;
  font-size: 1.625rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.sector-card--feature h3,
.sector-card--feature h2:where(.hx-3) { font-size: 2.25rem; }
.sector-card p {
  font-family: var(--font-body);
  color: rgba(255,255,255,0.85);
  font-size: 0.9375rem;
  margin: 0;
  max-width: 42ch;
}
.sector-card--feature p { font-size: 1.0625rem; max-width: 52ch; }

@media (max-width: 980px) {
  .sectors-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    min-height: 0;
  }
  .sector-card--feature {
    grid-row: span 1;
    grid-column: span 2;
    min-height: 380px;
  }
}
@media (max-width: 600px) {
  .sectors-grid { grid-template-columns: 1fr; }
  .sector-card--feature, .sector-card { grid-column: span 1; min-height: 320px; }
  .sector-card__overlay {
    background: linear-gradient(180deg, rgba(15,23,42,0.20) 0%, rgba(15,23,42,0.65) 50%, rgba(15,23,42,0.95) 100%);
  }
}

/* =========================================================
   Academy / Courses — Course catalog cards (extends course-card)
   ========================================================= */
.course-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: var(--r-full);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  background: var(--green-50); color: var(--green-700);
  border: 1px solid var(--green-100);
}
.course-pill--free { background: var(--green-50); color: var(--green-700); border-color: var(--green-100); }
.course-pill--soon { background: var(--slate-100); color: var(--slate-600); border-color: var(--border); }
.course-pill--premium { background: var(--orange-50); color: var(--orange-ink); border-color: #FBD8B8; }

.course-card a.course-card__link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: var(--s-3);
  color: var(--green-600); font-size: 0.875rem; font-weight: 600;
}
.course-card a.course-card__link:hover { color: var(--green-700); }
.course-card.is-soon { opacity: 0.7; pointer-events: none; }

/* =========================================================
   Course detail page (e.g. /courses/meal-fundamentals.html)
   ========================================================= */
.course-detail-hero {
  position: relative;
  background: linear-gradient(135deg, var(--green-600), var(--blue-700));
  color: white;
  padding: 200px 0 80px;
  overflow: hidden;
}
.course-detail-hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(800px 300px at 80% 30%, rgba(245,124,0,0.18), transparent 60%),
    radial-gradient(600px 240px at 10% 110%, rgba(255,255,255,0.10), transparent 60%);
  pointer-events: none;
}
.course-detail-hero .container { position: relative; z-index: 1; }
.course-detail-hero .mono-label { color: rgba(255,255,255,0.85); }
.course-detail-hero h1 {
  font-family: var(--font-display);
  color: white;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  max-width: 22ch;
  margin: 14px 0 var(--s-4);
}
.course-detail-hero h1 .accent-italic {
  color: #F57C00;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
}
.course-detail-hero p {
  color: rgba(255,255,255,0.88);
  font-size: 1.0625rem;
  max-width: 60ch;
  margin: 0 0 var(--s-5);
}
.course-meta {
  display: flex; gap: var(--s-3); flex-wrap: wrap;
  margin-top: var(--s-4);
}
.course-meta__chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 6px 14px; border-radius: var(--r-full);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: white;
  font-weight: 500;
  backdrop-filter: blur(8px);
}

/* Two-column body */
.course-body {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--s-12);
  padding: var(--s-16) 0;
}
@media (max-width: 980px) {
  .course-body { grid-template-columns: 1fr; gap: var(--s-8); }
}

/* Objectives */
.course-objectives { display: grid; gap: 10px; margin-bottom: var(--s-10); }
.course-objectives li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 18px;
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-size: 0.9375rem; color: var(--slate-700);
}
.course-objectives svg {
  color: var(--green-500); flex-shrink: 0; margin-top: 2px;
  width: 18px; height: 18px;
}

/* Module list */
.module-list { display: grid; gap: var(--s-4); margin-top: var(--s-6); }
.module {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.module__head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--s-5);
  align-items: center;
  padding: var(--s-5) var(--s-6);
  cursor: pointer;
  transition: background .2s;
}
.module__head:hover { background: var(--bg-soft); }
.module__num {
  font-family: var(--font-display);
  font-size: 1.75rem; font-weight: 700;
  background: linear-gradient(135deg, var(--green-500), var(--blue-500));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  line-height: 1;
}
.module__title { font-family: var(--font-display); font-weight: 600; font-size: 1.0625rem; margin: 0 0 4px; color: var(--slate-900); }
.module__meta { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate-500); font-weight: 500; }
.module__toggle {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bg-soft); border: 1px solid var(--border);
  display: grid; place-items: center;
  transition: transform .3s ease, background .2s;
  color: var(--slate-600);
}
.module.is-open .module__toggle { transform: rotate(45deg); background: var(--orange-ink); border-color: var(--orange-ink); color: white; }

/* Locked module state */
.module.is-locked .module__head { cursor: not-allowed; opacity: 0.62; }
.module.is-locked .module__head:hover { background: transparent; }
.module.is-locked .module__num {
  background: none;
  -webkit-text-fill-color: var(--slate-400);
  color: var(--slate-400);
}
.module.is-locked .module__toggle {
  background: var(--slate-100);
  border-color: var(--border);
  color: var(--slate-500);
}
.module.is-locked .module__toggle svg { transform: none; }
.module__lock-pill {
  display: none;
  align-items: center; gap: 6px;
  background: var(--slate-100);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: var(--r-full);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate-600);
  font-weight: 600;
  margin-top: 4px;
}
.module.is-locked .module__lock-pill { display: inline-flex; }
.module.is-complete .module__num {
  background: linear-gradient(135deg, var(--green-500), var(--green-600));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.module__complete-pill {
  display: none;
  align-items: center; gap: 6px;
  background: var(--green-50);
  border: 1px solid var(--green-100);
  padding: 4px 10px;
  border-radius: var(--r-full);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-700);
  font-weight: 600;
  margin-top: 4px;
}
.module.is-complete .module__complete-pill { display: inline-flex; }

/* Progress card inside module body */
.module-progress {
  background: linear-gradient(135deg, var(--blue-50), var(--green-50));
  border: 1px solid var(--blue-100);
  border-radius: var(--r-lg);
  padding: var(--s-5) var(--s-6);
  margin: var(--s-6) 0;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: var(--s-4);
  align-items: center;
}
.module-progress__item {
  display: flex; flex-direction: column; gap: 6px;
}
.module-progress__label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-600);
  font-weight: 600;
  display: flex; align-items: center; gap: 8px;
}
.module-progress__label svg { width: 14px; height: 14px; flex-shrink: 0; }
.module-progress__bar {
  height: 6px; background: rgba(255,255,255,0.6);
  border-radius: var(--r-full); overflow: hidden;
  border: 1px solid rgba(15,23,42,0.08);
}
.module-progress__bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green-500), var(--blue-500));
  width: 0%;
  transition: width .4s cubic-bezier(.2,.7,.3,1);
  border-radius: var(--r-full);
}
.module-progress__check {
  font-size: 0.875rem;
  color: var(--slate-700);
  font-weight: 600;
  display: flex; align-items: center; gap: 6px;
}
.module-progress__check.is-done { color: var(--green-700); }
.module-progress__check.is-done::before {
  content: '✓';
  display: inline-grid; place-items: center;
  width: 18px; height: 18px;
  background: var(--green-500);
  color: white;
  border-radius: 50%;
  font-size: 11px;
}
.module-progress__check.is-pending::before {
  content: '';
  display: inline-block;
  width: 14px; height: 14px;
  border: 2px solid var(--slate-300);
  border-radius: 50%;
}
.module-progress__cta {
  display: none;
}
.module-progress.is-met .module-progress__cta {
  display: inline-flex;
}
.module-progress.is-met {
  background: linear-gradient(135deg, var(--green-50), var(--blue-50));
  border-color: var(--green-300);
}

@media (max-width: 720px) {
  .module-progress { grid-template-columns: 1fr; }
}

.module__body {
  display: none;
  padding: 0 var(--s-6) var(--s-6);
  border-top: 1px solid var(--border);
}
.module.is-open .module__body { display: block; }
.module__body > p { font-size: 0.9375rem; color: var(--slate-700); margin: var(--s-4) 0 var(--s-3); }

/* Video frame */
.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--slate-900);
  border-radius: var(--r-md);
  overflow: hidden;
  margin: var(--s-4) 0;
}
.video-frame iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}
.video-frame__placeholder {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--slate-800), var(--slate-900));
  color: rgba(255,255,255,0.6);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Resources */
.resource-list { display: grid; gap: 8px; margin-top: var(--s-4); }
.resource-item {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-size: 0.875rem;
  color: var(--slate-700);
  text-decoration: none;
  transition: background .2s, border-color .2s;
}
.resource-item:hover { background: var(--green-50); border-color: var(--green-100); }
.resource-item svg { color: var(--green-600); flex-shrink: 0; width: 18px; height: 18px; }

/* Sticky sidebar — course info card */
.course-sidebar {
  position: sticky; top: 100px;
  align-self: start;
}
.course-side-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  box-shadow: var(--shadow-md);
}
.course-side-card h4,
.course-side-card :is(h2,h3):where(.hx-4) { font-family: var(--font-display); margin: 0 0 var(--s-3); font-size: 1rem; }
.course-side-card__stat {
  display: flex; justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}
.course-side-card__stat:last-of-type { border-bottom: 0; }
.course-side-card__stat span:first-child { color: var(--slate-500); font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; }
.course-side-card__stat span:last-child { font-weight: 600; color: var(--slate-900); }
.course-side-card .btn { width: 100%; margin-top: var(--s-4); }

/* Reading block — inline core terms */
.reading-block {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  margin: var(--s-5) 0;
}
.reading-block h4,
.reading-block :is(h2,h3):where(.hx-4) {
  font-family: var(--font-display);
  margin: 0 0 var(--s-4);
  font-size: 1rem;
  color: var(--slate-900);
  display: flex; align-items: center; gap: 8px;
}
.reading-block h4::before,
.reading-block :is(h2,h3):where(.hx-4)::before {
  content: '';
  width: 14px; height: 14px;
  background: linear-gradient(135deg, var(--green-500), var(--blue-500));
  border-radius: 3px;
}
.reading-block dl { margin: 0; }
.reading-block dt {
  font-weight: 700;
  color: var(--slate-900);
  margin-top: var(--s-3);
  font-size: 0.9375rem;
  font-family: var(--font-display);
}
.reading-block dt:first-of-type { margin-top: 0; }
.reading-block dd {
  margin: 4px 0 0;
  color: var(--slate-700);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* Comparison table */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--s-4) 0 var(--s-6);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  font-size: 0.875rem;
  background: var(--white);
}
.compare-table th,
.compare-table td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}
.compare-table th {
  background: var(--bg-soft);
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--slate-900);
  font-size: 0.8125rem;
}
.compare-table td:first-child {
  background: var(--bg-soft);
  font-weight: 600;
  color: var(--slate-900);
  width: 22%;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.compare-table tr:last-child th,
.compare-table tr:last-child td { border-bottom: 0; }

/* =========================================================
   Quiz engine — module assessments
   ========================================================= */
.quiz {
  background: linear-gradient(135deg, var(--green-50), var(--blue-50));
  border: 1px solid var(--green-100);
  border-radius: var(--r-xl);
  padding: var(--s-7) var(--s-6);
  margin-top: var(--s-6);
}
.quiz__header { text-align: center; margin-bottom: var(--s-6); }
.quiz__header h4,
.quiz__header :is(h2,h3):where(.hx-4) {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 6px;
  color: var(--slate-900);
}
.quiz__header p {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate-500);
  margin: 0;
}
.quiz-question {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--s-5) var(--s-6);
  margin-bottom: var(--s-3);
}
.quiz-question__head {
  display: flex; gap: 12px; align-items: flex-start;
  margin-bottom: var(--s-4);
}
.quiz-question__num {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  background: linear-gradient(135deg, var(--green-500), var(--blue-500));
  color: white;
  padding: 5px 10px;
  border-radius: var(--r-full);
  font-weight: 600;
  flex-shrink: 0;
}
.quiz-question__text {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--slate-900);
  line-height: 1.5;
  margin: 0;
}
.quiz-options { display: grid; gap: 8px; }
.quiz-option {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: all .2s;
  font-size: 0.9375rem;
  color: var(--slate-700);
  background: var(--white);
}
.quiz-option:hover { background: var(--bg-soft); border-color: var(--green-300); }
.quiz-option input {
  width: 18px; height: 18px;
  accent-color: var(--green-500);
  flex-shrink: 0;
  cursor: pointer;
  margin: 0;
}
.quiz-option.is-selected {
  background: var(--green-50);
  border-color: var(--green-500);
}
.quiz.is-submitted .quiz-option { cursor: default; pointer-events: none; }
.quiz.is-submitted .quiz-option.is-correct {
  background: var(--green-50);
  border-color: var(--green-500);
  color: var(--green-700);
  font-weight: 600;
}
.quiz.is-submitted .quiz-option.is-incorrect-selected {
  background: #FEF2F2;
  border-color: #FCA5A5;
  color: #991B1B;
}
.quiz-rationale {
  display: none;
  margin-top: var(--s-3);
  padding: 10px 14px;
  background: var(--bg-soft);
  border-left: 3px solid var(--green-500);
  border-radius: 6px;
  font-size: 0.8125rem;
  color: var(--slate-700);
  line-height: 1.5;
}
.quiz.is-submitted .quiz-rationale { display: block; }
.quiz-rationale.is-incorrect { border-left-color: #DC2626; }
.quiz-rationale strong { color: var(--slate-900); }
.quiz__actions { margin-top: var(--s-5); text-align: center; }
.quiz__actions .btn { min-width: 220px; }

.quiz-result {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  margin-bottom: var(--s-5);
  text-align: center;
}
.quiz-result.is-pass {
  border-color: var(--green-500);
  background: linear-gradient(135deg, var(--green-50), var(--white));
}
.quiz-result.is-fail {
  border-color: #FCA5A5;
  background: linear-gradient(135deg, #FEF2F2, var(--white));
}
.quiz-result__label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--slate-500);
}
.quiz-result__score {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  margin: 8px 0;
  letter-spacing: -0.02em;
}
.quiz-result.is-pass .quiz-result__score { color: var(--green-600); }
.quiz-result.is-fail .quiz-result__score { color: #DC2626; }
.quiz-result__msg { margin: 4px 0 0; color: var(--slate-700); font-size: 0.9375rem; }

/* =========================================================
   Drag-and-match quiz component
   ========================================================= */
.drag-match {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--s-5);
  margin-top: var(--s-2);
}
.dm__instructions {
  font-size: 0.8125rem;
  color: var(--slate-600);
  margin: 0 0 var(--s-4);
  font-style: italic;
  text-align: center;
}
.dm__pool-label {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate-500);
  font-weight: 600;
  width: 100%;
  margin: 0 0 6px;
}
.dm__pool {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-content: flex-start;
  padding: var(--s-3) var(--s-4);
  background: var(--bg-soft);
  border: 1px dashed var(--border);
  border-radius: var(--r-md);
  min-height: 70px;
  margin-bottom: var(--s-4);
  transition: background .2s, border-color .2s;
}
.dm__pool.is-drag-over {
  background: var(--green-50);
  border-color: var(--green-500);
  border-style: solid;
}
.dm__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--r-md);
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate-800);
  transition: all .2s;
  touch-action: manipulation;
}
.dm__item::before {
  content: '⋮⋮';
  color: var(--slate-400);
  font-size: 14px;
  letter-spacing: -2px;
  margin-right: 2px;
}
.dm__item:hover { border-color: var(--green-500); background: var(--green-50); }
.dm__item:active { cursor: grabbing; }
.dm__item.is-selected {
  border-color: var(--orange);
  background: var(--orange-50);
  box-shadow: 0 0 0 3px rgba(245,124,0,0.2);
}
.dm__item.is-dragging { opacity: 0.35; transform: scale(0.95); }

.dm__buckets {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
@media (max-width: 880px) { .dm__buckets { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 540px) { .dm__buckets { grid-template-columns: repeat(2, 1fr); } }

.dm__bucket {
  background: var(--bg-soft);
  border: 2px dashed var(--border);
  border-radius: var(--r-md);
  padding: var(--s-3) 10px 10px;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all .25s;
}
.dm__bucket.is-drag-over {
  background: var(--green-50);
  border-color: var(--green-500);
  border-style: solid;
  transform: scale(1.02);
}
.dm__bucket-label {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate-600);
  font-weight: 700;
  text-align: center;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.dm__bucket-drop {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 60px;
}
.dm__bucket .dm__item {
  width: 100%;
  font-size: 0.75rem;
  padding: 6px 10px;
  justify-content: center;
  text-align: center;
}

/* Submitted state */
.drag-match.is-submitted .dm__item {
  cursor: default;
  pointer-events: none;
}
.drag-match.is-submitted .dm__item::before { display: none; }
.drag-match.is-submitted .dm__item.is-correct {
  border-color: var(--green-500);
  background: var(--green-50);
  color: var(--green-700);
  font-weight: 600;
}
.drag-match.is-submitted .dm__item.is-correct::after {
  content: '✓';
  margin-left: 4px;
  color: var(--green-600);
  font-weight: bold;
}
.drag-match.is-submitted .dm__item.is-incorrect {
  border-color: #FCA5A5;
  background: #FEF2F2;
  color: #991B1B;
}
.drag-match.is-submitted .dm__item.is-incorrect::after {
  content: '✗';
  margin-left: 4px;
  color: #DC2626;
  font-weight: bold;
}

/* Certificate request banner */
.cert-banner {
  background: linear-gradient(135deg, var(--orange-50), var(--green-50));
  border: 1px solid var(--green-100);
  border-radius: var(--r-xl);
  padding: var(--s-10);
  text-align: center;
  margin-top: var(--s-12);
}
.cert-banner__icon {
  width: 64px; height: 64px;
  margin: 0 auto var(--s-4);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-500), var(--blue-500));
  display: grid; place-items: center;
  color: white;
  box-shadow: 0 10px 22px -8px rgba(30,79,168,.45);
}
.cert-banner h3,
.cert-banner h2:where(.hx-3) { font-size: 1.5rem; margin: 0 0 var(--s-3); }
.cert-banner p { max-width: 52ch; margin: 0 auto var(--s-5); }

/* =========================================================
   Gallery page — Filter chips, grid, lightbox
   ========================================================= */
.gallery-section { padding: var(--s-12) 0 var(--s-20); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
  margin-top: var(--s-10);
}
.gallery-item {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--slate-200);
  cursor: zoom-in;
  isolation: isolate;
  border: 0;
  padding: 0;
  width: 100%;
  display: block;
}
.gallery-item img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  transition: transform .7s cubic-bezier(.2,.7,.3,1), filter .35s;
  display: block;
}
.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.08);
}
.gallery-item__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(15,23,42,0.85) 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s ease;
}
.gallery-item:hover .gallery-item__overlay,
.gallery-item:focus-visible .gallery-item__overlay {
  opacity: 1;
}
.gallery-item__label {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: var(--s-4) var(--s-5);
  color: white;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  z-index: 1;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .3s ease, transform .3s ease;
}
.gallery-item:hover .gallery-item__label,
.gallery-item:focus-visible .gallery-item__label {
  opacity: 1;
  transform: translateY(0);
}
.gallery-item.is-hidden { display: none; }

@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .gallery-grid { grid-template-columns: 1fr; } }

/* Lightbox overlay */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(15, 23, 42, 0.96);
  z-index: 10000;
  display: none;
  align-items: center; justify-content: center;
  padding: var(--s-8);
  cursor: zoom-out;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.lightbox.is-open { display: flex; }
.lightbox__img {
  max-width: 100%; max-height: 85vh;
  object-fit: contain;
  border-radius: var(--r-md);
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
  cursor: default;
}
.lightbox__caption {
  position: absolute;
  bottom: var(--s-6); left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.85);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.lightbox__btn {
  position: absolute;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  width: 48px; height: 48px;
  border-radius: 50%;
  display: grid; place-items: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background .2s, border-color .2s;
}
.lightbox__btn:hover { background: var(--orange-ink); border-color: var(--orange-ink); }
.lightbox__btn svg { width: 22px; height: 22px; }
.lightbox__btn--close { top: var(--s-6); right: var(--s-6); }
.lightbox__btn--prev { left: var(--s-6); top: 50%; transform: translateY(-50%); }
.lightbox__btn--next { right: var(--s-6); top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) {
  .lightbox__btn--prev { left: var(--s-3); }
  .lightbox__btn--next { right: var(--s-3); }
}

/* =========================================================
   From the Field — Photo gallery (2x2 mosaic)
   ========================================================= */
.field-gallery { padding: var(--s-24) 0; background: var(--white); }
.field-gallery .section-head { margin-bottom: var(--s-12); }
.field-gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4);
}
.field-tile {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--r-lg);
  isolation: isolate;
  background: var(--slate-900);
  cursor: pointer;
}
.field-tile img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  transition: transform .8s cubic-bezier(.2,.7,.3,1);
}
.field-tile:hover img { transform: scale(1.06); }
.field-tile__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(15,23,42,0.55) 75%, rgba(15,23,42,0.9) 100%);
  pointer-events: none;
}
.field-tile__caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: var(--s-5) var(--s-6);
  z-index: 1;
  color: white;
}
.field-tile__caption .mono-label {
  color: rgba(255,255,255,0.8);
  display: block;
  margin-bottom: 4px;
}
.field-tile__caption h4,
.field-tile__caption :is(h2,h3):where(.hx-4) {
  color: white;
  font-family: var(--font-display);
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
}
@media (max-width: 720px) {
  .field-gallery-grid { grid-template-columns: 1fr; }
  .field-tile { aspect-ratio: 16 / 11; }
}

/* Module 0 — welcome / orientation card */
.module--welcome .module__num {
  background: linear-gradient(135deg, var(--green-500), var(--blue-500));
  color: white;
  border-color: transparent;
}
.module--welcome .module__title::after {
  content: 'Start here';
  display: inline-block;
  margin-left: var(--s-3);
  padding: 2px 8px;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--green-50);
  color: var(--green-700);
  border-radius: 999px;
  vertical-align: middle;
}

/* =========================================================
   Final exam — comprehensive course assessment
   ========================================================= */
.final-exam {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--s-10);
  box-shadow: var(--shadow-md);
}
.final-exam__head { text-align: center; max-width: 620px; margin: 0 auto var(--s-8); }
.final-exam__head .eyebrow {
  display: inline-block; padding: 6px 14px;
  background: linear-gradient(135deg, var(--orange-50), var(--green-50));
  border-radius: 999px; color: var(--slate-700);
  font-family: var(--font-mono); font-size: 0.6875rem;
  text-transform: uppercase; letter-spacing: 0.12em;
  margin-bottom: var(--s-4);
}
.final-exam__head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.625rem, 3vw, 2rem);
  margin: 0 0 var(--s-3);
  color: var(--slate-900);
}
.final-exam__sub {
  font-size: 1rem; color: var(--slate-600); margin: 0;
  line-height: 1.6;
}
.final-exam__meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-3);
  max-width: 560px;
  margin: 0 auto var(--s-8);
}
.final-exam__stat {
  text-align: center;
  padding: var(--s-3) var(--s-2);
  background: var(--bg-soft);
  border-radius: var(--r-md);
  border: 1px solid var(--border);
}
.final-exam__stat .num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--green-600);
  line-height: 1.1;
}
.final-exam__stat .lbl {
  display: block;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate-500);
}

/* Locked panel */
.final-exam__locked {
  background: linear-gradient(135deg, var(--bg-soft), #fff);
  border: 1px dashed var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-8);
  text-align: center;
}
.final-exam__lock-icon {
  width: 64px; height: 64px;
  margin: 0 auto var(--s-4);
  display: grid; place-items: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--slate-500);
}
.final-exam__locked h4,
.final-exam__locked :is(h2,h3):where(.hx-4) {
  font-family: var(--font-display);
  font-size: 1.125rem;
  margin: 0 0 var(--s-2);
  color: var(--slate-900);
}
.final-exam__locked p {
  color: var(--slate-600);
  font-size: 0.9375rem;
  margin: 0 0 var(--s-5);
  max-width: 44ch; margin-left: auto; margin-right: auto;
}
.final-exam__checklist {
  list-style: none;
  padding: 0;
  margin: var(--s-5) auto 0;
  max-width: 420px;
  text-align: left;
  display: flex; flex-direction: column;
  gap: 6px;
}
.final-exam__check-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-size: 0.9375rem;
}
.final-exam__check-item.is-done {
  background: var(--green-50);
  border-color: #BBF7D0;
  color: var(--slate-800);
}
.final-exam__check-item.is-done .final-exam__check-mark {
  background: var(--green-500); color: white; border-color: var(--green-500);
}
.final-exam__check-item.is-pending { color: var(--slate-500); }
.final-exam__check-mark {
  width: 24px; height: 24px;
  flex-shrink: 0;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--white);
  color: var(--slate-400);
  border: 1px solid var(--border);
}

/* Quiz state — reuse .quiz styles, just lift the container chrome */
.final-exam__quiz {
  background: transparent;
  border: 0;
  padding: 0;
  box-shadow: none;
}

/* Pass state */
.final-exam__passed {
  background: linear-gradient(135deg, #ECFDF3, #E0F2FE);
  border: 1px solid #BBF7D0;
  border-radius: var(--r-lg);
  padding: var(--s-8);
  text-align: center;
}
.final-exam__passed-icon {
  width: 72px; height: 72px;
  margin: 0 auto var(--s-4);
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--green-500), #16A34A);
  border-radius: 50%;
  color: white;
  box-shadow: 0 10px 22px -8px rgba(22,163,74,.45);
}
.final-exam__passed h4,
.final-exam__passed :is(h2,h3):where(.hx-4) {
  font-family: var(--font-display);
  font-size: 1.375rem;
  margin: 0 0 var(--s-3);
  color: var(--slate-900);
}
.final-exam__passed p {
  color: var(--slate-700);
  font-size: 1rem;
  max-width: 44ch;
  margin: 0 auto var(--s-5);
  line-height: 1.6;
}

@media (max-width: 720px) {
  .final-exam { padding: var(--s-6); }
  .final-exam__meta { grid-template-columns: repeat(2, 1fr); }
  .final-exam__locked, .final-exam__passed { padding: var(--s-6); }
}

/* Scoring band + per-section diagnostic — appears inside the result banner */
.exam-diag {
  margin-top: var(--s-5);
  padding-top: var(--s-5);
  border-top: 1px solid rgba(15,23,42,0.10);
  text-align: left;
}
.exam-diag__band {
  display: flex; align-items: baseline; flex-wrap: wrap;
  gap: var(--s-2) var(--s-3);
  padding: 12px 16px;
  border-radius: var(--r-md);
  margin-bottom: var(--s-5);
  border: 1px solid var(--border);
  background: var(--white);
}
.exam-diag__band-label {
  font-family: var(--font-display);
  font-size: 1rem; font-weight: 700;
  color: var(--slate-900);
}
.exam-diag__band-note {
  font-size: 0.875rem; color: var(--slate-600);
}
.exam-diag__band.is-distinction {
  background: linear-gradient(135deg, #FEF3C7, #ECFDF3);
  border-color: #FBBF24;
}
.exam-diag__band.is-distinction .exam-diag__band-label { color: #92400E; }
.exam-diag__band.is-strong {
  background: var(--green-50); border-color: #BBF7D0;
}
.exam-diag__band.is-strong .exam-diag__band-label { color: var(--green-700); }
.exam-diag__band.is-pass {
  background: var(--bg-soft); border-color: var(--border);
}
.exam-diag__band.is-notyet {
  background: #FEF2F2; border-color: #FECACA;
}
.exam-diag__band.is-notyet .exam-diag__band-label { color: #991B1B; }

.exam-diag__h {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--slate-700);
  margin: 0 0 var(--s-3);
}
.exam-diag__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
}
.exam-diag__table th {
  background: var(--bg-soft);
  text-align: left;
  padding: 9px 12px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--slate-600);
  border-bottom: 1px solid var(--border);
}
.exam-diag__table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.exam-diag__table tr:last-child td { border-bottom: 0; }
.exam-diag__table td.sec {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--slate-500);
  width: 84px;
}
.exam-diag__table td.topic { color: var(--slate-800); }
.exam-diag__table td.score { font-weight: 600; color: var(--slate-800); width: 110px; }
.exam-diag__table tr.is-weak { background: #FEF2F2; }
.exam-diag__table tr.is-weak td.score { color: #991B1B; }
.exam-diag__table td.rev a {
  display: inline-block;
  color: var(--green-600);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.8125rem;
}
.exam-diag__table td.rev a:hover { color: var(--green-700); text-decoration: underline; }
.exam-diag__table td.rev .ok {
  color: var(--green-600);
  font-size: 0.8125rem;
  font-weight: 600;
}

@media (max-width: 600px) {
  .exam-diag__table td.sec { display: none; }
  .exam-diag__table th:first-child { display: none; }
}

/* Integrative scenarios — self-check below the exam */
.exam-scenarios {
  margin-top: var(--s-6);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--white);
  overflow: hidden;
}
.exam-scenarios > summary {
  list-style: none;
  cursor: pointer;
  padding: var(--s-5) var(--s-6);
  display: flex; align-items: center; gap: var(--s-3);
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--slate-900);
  font-weight: 600;
  user-select: none;
}
.exam-scenarios > summary::-webkit-details-marker { display: none; }
.exam-scenarios__chip {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  background: var(--bg-soft);
  color: var(--slate-600);
  border-radius: 999px;
  border: 1px solid var(--border);
}
.exam-scenarios__chev {
  margin-left: auto;
  color: var(--slate-500);
  transition: transform .2s ease;
}
.exam-scenarios[open] > summary .exam-scenarios__chev { transform: rotate(180deg); }
.exam-scenarios[open] > summary { border-bottom: 1px solid var(--border); }
.exam-scenarios__body {
  padding: var(--s-6);
  background: var(--bg-soft);
}
.exam-scenarios__intro {
  font-size: 0.9375rem;
  color: var(--slate-600);
  margin: 0 0 var(--s-5);
  line-height: 1.6;
}

.scenario {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--s-5) var(--s-6);
  margin-bottom: var(--s-5);
}
.scenario:last-child { margin-bottom: 0; }
.scenario__head {
  display: flex; align-items: baseline; gap: var(--s-3);
  margin-bottom: var(--s-3);
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--border);
}
.scenario__num {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 3px 8px;
  background: var(--green-50);
  color: var(--green-700);
  border-radius: 999px;
}
.scenario__head h4,
.scenario__head :is(h2,h3):where(.hx-4) {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  margin: 0;
  color: var(--slate-900);
}
.scenario__brief {
  font-size: 0.9375rem;
  color: var(--slate-700);
  background: var(--bg-soft);
  border-left: 3px solid var(--green-500);
  padding: 10px 14px;
  border-radius: 4px;
  margin: 0 0 var(--s-4);
  line-height: 1.6;
}
.scenario__q {
  padding: var(--s-4) 0;
  border-top: 1px solid var(--border);
}
.scenario__q:first-of-type { border-top: 0; padding-top: 0; }
.scenario__q > p { margin: 0 0 var(--s-3); font-size: 0.9375rem; color: var(--slate-800); }
.scenario__q textarea {
  width: 100%; min-height: 70px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-family: inherit;
  font-size: 0.9375rem;
  resize: vertical;
}
.scenario__q textarea:focus {
  outline: 0;
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(27,142,61,.12);
}
.scenario__q details { margin-top: var(--s-3); }
.scenario__q details > summary {
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-600);
  font-weight: 600;
  user-select: none;
}
.scenario__q details > summary::-webkit-details-marker { display: none; }
.scenario__q details > summary::before {
  content: '▸ ';
  display: inline-block;
  transition: transform .2s ease;
}
.scenario__q details[open] > summary::before { content: '▾ '; }
.scenario__q details > p {
  margin: var(--s-3) 0 0;
  padding: 12px 16px;
  background: var(--green-50);
  border-left: 3px solid var(--green-500);
  border-radius: 4px;
  font-size: 0.9375rem;
  color: var(--slate-800);
  line-height: 1.6;
}

@media (max-width: 600px) {
  .exam-scenarios > summary { padding: var(--s-4) var(--s-5); font-size: 0.9375rem; }
  .exam-scenarios__body { padding: var(--s-4); }
  .scenario { padding: var(--s-4); }
}

/* Certificate request — success panel */
.cert-success {
  background: linear-gradient(135deg, #ECFDF3, #E0F2FE);
  border: 1px solid #BBF7D0;
  border-radius: var(--r-lg);
  padding: var(--s-8);
  text-align: center;
}
.cert-success__icon {
  width: 72px; height: 72px;
  margin: 0 auto var(--s-4);
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--green-500), #16A34A);
  border-radius: 50%;
  color: white;
  box-shadow: 0 10px 22px -8px rgba(22,163,74,.45);
}
.cert-success h3,
.cert-success h2:where(.hx-3) {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0 0 var(--s-3);
  color: var(--slate-900);
}
.cert-success__sub {
  font-size: 1rem;
  color: var(--slate-700);
  max-width: 52ch;
  margin: 0 auto var(--s-5);
  line-height: 1.6;
}
.cert-success__sub .js-success-name { font-weight: 600; color: var(--slate-900); }
.cert-success__meta {
  display: grid;
  grid-template-columns: max-content 1fr;
  column-gap: var(--s-5);
  row-gap: var(--s-2);
  max-width: 440px;
  margin: 0 auto var(--s-6);
  text-align: left;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--s-4) var(--s-5);
}
.cert-success__meta dt {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate-500);
  font-weight: 600;
  align-self: center;
}
.cert-success__meta dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--slate-900);
  font-weight: 600;
  align-self: center;
  word-break: break-word;
}
.cert-success__actions {
  display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-3);
  margin-bottom: var(--s-4);
}
.cert-success__actions .btn { min-width: 200px; }
.cert-success__hint {
  font-size: 0.875rem;
  color: var(--slate-600);
  max-width: 48ch;
  margin: var(--s-4) auto 0;
  font-style: italic;
}

@media (max-width: 600px) {
  .cert-success { padding: var(--s-5); }
  .cert-success h3,
.cert-success h2:where(.hx-3) { font-size: 1.25rem; }
  .cert-success__meta { padding: var(--s-3) var(--s-4); column-gap: var(--s-3); }
  .cert-success__actions .btn { width: 100%; min-width: 0; }
}

/* =========================================================
   Generated course pages — self-check blocks and wide tables
   ========================================================= */
.self-check {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  margin: var(--s-6) 0;
}
.self-check > h4,
.self-check > :is(h2,h3):where(.hx-4) {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  margin: 0 0 var(--s-2);
  color: var(--slate-900);
}
.self-check__intro {
  font-size: 0.875rem;
  color: var(--slate-600);
  margin: 0 0 var(--s-5);
  line-height: 1.6;
}
.self-check-item {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--s-5);
  margin-bottom: var(--s-3);
}
.self-check-item:last-child { margin-bottom: 0; }
.self-check-item > p { margin: 0 0 var(--s-3); font-size: 0.9375rem; }
.self-check-item textarea {
  width: 100%;
  min-height: 80px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-family: inherit;
  font-size: 0.9375rem;
  resize: vertical;
}
.self-check-item textarea:focus {
  outline: 0;
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(27,142,61,.12);
}
.self-check-item details { margin-top: var(--s-3); }
.self-check-item summary {
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-600);
  font-weight: 600;
}
.self-check-item details > p {
  margin: var(--s-3) 0 0;
  padding: 12px 16px;
  background: var(--green-50);
  border-left: 3px solid var(--green-500);
  border-radius: 4px;
  font-size: 0.9375rem;
  color: var(--slate-800);
  line-height: 1.6;
}

/* Wide tables inside readings scroll rather than break the layout */
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  margin: var(--s-4) 0;
}
.table-scroll .compare-table { margin: 0; border: 0; border-radius: 0; }

/* Monospaced blocks inside readings — ASCII diagrams, logframe skeletons.
   Same bargain as .table-scroll: the box scrolls on its own rather than
   widening the page, because a diagram is almost always wider than the
   reading column on a phone. */
.reading-block pre.code-block {
  margin: var(--s-4) 0;
  padding: var(--s-4);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.reading-block pre.code-block code {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--slate-800);
  white-space: pre;
}

/* =========================================================
   Mobile fixes (Nov 2026)
   ========================================================= */

/* Homepage hero: the padding shorthand on .hero-v2__content zeroed the
   container's side gutter, so text and buttons touched the screen edge on
   phones and small laptops. Wide screens are unchanged. */
@media (max-width: 1248px) {
  .hero-v2__content { padding-left: var(--s-6); padding-right: var(--s-6); }
}
@media (max-width: 480px) {
  .hero-v2__content { padding-left: var(--s-4); padding-right: var(--s-4); }
}

/* Academy "How it works": three columns squeezed onto a phone pushed the page
   sideways and hid the menu button off-screen. Stack them on small screens. */
.how-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 720px) {
  .how-grid { grid-template-columns: 1fr; }
}

/* iPhone Safari zooms the whole page when a form field under 16px is tapped.
   Keep fields at 16px on phones so the page stays put while people type. */
@media (max-width: 720px) {
  input:not([type="radio"]):not([type="checkbox"]):not([type="range"]),
  select,
  textarea,
  .field select,
  .field textarea,
  .self-check-item textarea,
  .scenario__q textarea,
  .cred-share .cred-share__draft { font-size: 16px; }
}

