/* Manrope, hosted with the site (SIL Open Font License, see fonts/OFL.txt).
   One variable font file per character set covers every weight 400–800. */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/manrope-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ─── DESIGN TOKENS ──────────────────────────────────────── */
:root {
  --bg:      #0b0818;
  --bg-2:    #120b26;
  --text:    #f8f5ff;
  --muted:   #c5bad4;
  --purple:  #8c35ff;
  --purple-2:#a06dff;
  --pink:    #d52cff;
  --cyan:    #52d5ff;
  --ink:     #14102a;
  --ink-muted: #5c5470;
  /* Shared surface for every light card component across all pages. */
  --card-lavender: linear-gradient(180deg, #F3EAFF, #F5EEFF);
}

/* ─── RESET & BASE ───────────────────────────────────────── */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* Keeps anchor-link targets (Solutions, Services, Book a Demo, etc.)
     from landing underneath the sticky header. */
  scroll-padding-top: 140px;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 5%,  #341466 0%, transparent 32%),
    radial-gradient(circle at 88% 12%, #0d2c52 0%, transparent 34%),
    radial-gradient(circle at 50% 85%, #4a1580 0%, transparent 38%),
    var(--bg);
  color: var(--text);
  font-family: "Manrope", sans-serif;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input {
  font: inherit;
}

img { max-width: 100%; }

/* ─── SECTION WRAPPER ────────────────────────────────────── */
.section {
  width: min(1400px, calc(100% - 120px));
  margin: auto;
}

/* ─── SCROLL REVEAL ──────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ─── AMBIENT ORBS ───────────────────────────────────────── */
.ambient {
  position: fixed;
  pointer-events: none;
  z-index: -1;
  border-radius: 50%;
  border: 1px solid #8532ff55;
}

.a {
  width: 580px;
  height: 580px;
  left: -330px;
  top: -230px;
  box-shadow: 0 0 110px #7228ff55;
}

.b {
  width: 600px;
  height: 600px;
  right: -400px;
  top: 320px;
  border-color: #27baff55;
  box-shadow: 0 0 110px #27baff33;
}

.c {
  width: 450px;
  height: 450px;
  left: 45%;
  bottom: -370px;
  border-color: #ff24d655;
  box-shadow: 0 0 110px #ff24d633;
}

/* ════════════════════════════════════════════════════════════
   HEADER
════════════════════════════════════════════════════════════ */
.site-header {
  width: min(1400px, calc(100% - 96px));
  min-height: 122px;
  /* Explicit 0 (not "auto") top/bottom so margin-top/-bottom can actually
     transition into the .scrolled values below — auto isn't animatable. */
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 70;
  padding: 10px 28px;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  transition: background .25s ease, box-shadow .25s ease, width .25s ease, margin-top .25s ease, margin-bottom .25s ease, padding .25s ease, min-height .25s ease;
}

/* Compact pill state once the page has scrolled.
   min-height is kept tall enough to fully contain .header-center (which is
   absolutely positioned and so does NOT contribute to this box's own height) —
   using "auto" here let the pill collapse shorter than its centered content
   and clip the nav into the page below. The BRIGHTIX/IT SOLUTIONS wordmark is
   hidden here (see .header-center .brand) so only the nav row needs to fit,
   which is what lets this state be genuinely compact rather than a scaled
   copy of the full header.
   NOTE: deliberately no backdrop-filter here. A blurred, pinned
   position:sticky element forces the browser to recompute that blur against
   whatever is scrolling underneath it on every single scroll frame — that
   continuous repaint cost (not the one-off .25s transition) was the actual
   source of the multi-second scroll lag/glitch. The gradient below is already
   ~94% opaque, so dropping the blur costs almost nothing visually.
   margin-bottom makes up exactly what the pill loses in height + top margin
   (122 = 14 + 64 + 44), so the header's footprint in the page flow never
   changes. Without it, docking pulled the content up ~44px, the browser's
   scroll anchoring moved scrollY back under the 30px un-dock threshold,
   the header re-expanded, and it looped dock/undock while standing still. */
.site-header.scrolled {
  width: min(1240px, calc(100% - 160px));
  margin-top: 14px;
  margin-bottom: 44px;
  min-height: 64px;
  padding: 8px 30px;
  background: linear-gradient(165deg, #180c30fa, #221040fa);
  box-shadow: 0 20px 55px #0a0320a0, 0 0 0 1px #a442ff3d;
}

.site-header.scrolled .left-logo img {
  width: 38px;
  /* The image centres its whole outline, but the superscript X lifts that
     outline, leaving the white B (which the eye reads as the logo) ~16% of
     the image height below the middle. Raise it so the B sits on the bar's
     centre line, level with the nav text. */
  transform: translateY(-16%);
}

/* Collapses the brand wordmark smoothly; stays laid out (not display:none)
   so the nav row beneath it can re-center into the freed-up space. */
.header-center .brand {
  overflow: hidden;
  max-height: 60px;
  opacity: 1;
  transition: max-height .3s ease, opacity .25s ease, margin .3s ease;
}

.site-header.scrolled .header-center {
  gap: 0;
}

.site-header.scrolled .header-center .brand {
  max-height: 0;
  opacity: 0;
  pointer-events: none;
}

.left-logo {
  flex: 0 0 auto;
  z-index: 2;
}

.left-logo img {
  width: 72px;
  display: block;
}

/* Truly centered on the header regardless of side widths */
.header-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  z-index: 1;
  transition: gap .3s ease;
}

.brand {
  font: 700 24px/1 "Manrope";
  letter-spacing: .32em;
  text-align: center;
}

.brand span {
  display: block;
  margin-top: 8px;
  font: 500 12px "Manrope";
  letter-spacing: .42em;
  color: #bbb1c7;
}

/* ─── NAV ────────────────────────────────────────────────── */
.nav {
  display: flex;
  gap: 36px;
  align-items: center;
}

.nav > a,
.drop-btn {
  background: none;
  border: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #d8d0e4;
  font-size: 15px;
  cursor: pointer;
  padding: 4px 0;
  transition: color .2s;
}

.nav > a:hover,
.drop-btn:hover {
  color: #fff;
}

/* Active-page indicator. `.active` is set in each page's HTML (About Us on
   the About/Approach/Team pages, Home on index.html); on index.html
   script.js then moves it between Home / Solutions / Services as those
   sections scroll into view. Hover only brightens the text — it never
   draws this underline. */
.nav > .active,
.drop-btn.active {
  color: #fff;
  position: relative;
}

.nav > .active::after,
.drop-btn.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 2px;
  background: #d82cff;
  box-shadow: 0 0 12px #d82cff;
}

/* Underline the label only, not the chevron (10px icon + 6px gap). */
.drop-btn.active::after {
  right: 16px;
}

/* Chevron icon */
.chev {
  display: block;
  color: #9b8fb0;
  transition: transform .25s ease, color .2s;
}

.drop-btn:hover .chev {
  color: #d8b6ff;
}

/* Only .open (set by JS, exclusively) drives visibility — not :hover —
   so two mega-menus can never be visible at once. */
.nav-dropdown.open .chev {
  transform: rotate(180deg);
  color: #d82cff;
}

/* ─── MEGA MENUS ─────────────────────────────────────────── */
.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 38px;
  left: 50%;
  width: 300px;
  padding: 18px;
  background: #0d0719fa;
  border: 1px solid #a23cff55;
  border-radius: 14px;
  box-shadow: 0 30px 70px #0009;
  transform: translate(-50%, 10px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
}

.nav-dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.dropdown-menu a {
  display: block;
  padding: 9px;
  color: #d9d1e5;
  font-size: 13px;
  border-radius: 6px;
}

.dropdown-menu > a:hover {
  background: #8b35ff1f;
  color: #fff;
}

/* ─── MEGA MENU ─────────────────────────────────────────────
   Featured visual tile (left) + link columns (right).       ──── */
.dropdown-menu.mega-v2 {
  width: 620px;
  padding: 0;
  display: grid;
  grid-template-columns: 240px 1fr;
  grid-template-rows: auto auto;
  background: #fff;
  border: 1px solid #00000012;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 70px #0009;
}

.dropdown-menu.mega-v2.mega-v2-right {
  left: auto;
  right: -30px;
  transform: translateY(10px);
}

.nav-dropdown.open .dropdown-menu.mega-v2.mega-v2-right {
  transform: translateY(0);
}

.mega-v2-feature {
  grid-row: 1 / 3;
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 8px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(165deg, #2b1550, #4a1f80 55%, #190d30);
}

/* Soft glow low in the panel so the space under the copy isn't flat. */
.mega-v2-feature::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -70px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, #d52cff40, #8c35ff1a 45%, transparent 70%);
  pointer-events: none;
}

.mega-v2-feature > * {
  position: relative;
  z-index: 1;
}

.feature-glyph {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid #ffffff2e;
  background: #ffffff12;
  display: grid;
  place-items: center;
  font-size: 19px;
  color: #dcb8ff;
  margin-bottom: 8px;
  flex-shrink: 0;
}

.feature-glyph svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* One faint line drawing per menu, filling the empty lower part of the
   purple panel (shield, radar, learning path, buildings). Same colour and
   weight in all four; it sits behind the text and never takes clicks. */
.mega-v2-feature > .mega-art {
  position: absolute;
  z-index: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 70%;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

/* Small bright points used across all four drawings. */
.mega-art .ma-dot,
.mega-art .ma-dots {
  fill: #f5ecff;
  stroke: none;
}

.mega-v2-feature h5 {
  font: 600 20px "Manrope";
  margin: 0;
  color: #fff;
}

.mega-v2-feature p {
  font-size: 14px;
  line-height: 1.65;
  color: #cabbe0;
  margin: 0;
}

.mega-v2-feature > a {
  display: inline-block;
  align-self: flex-start;
  text-align: left;
  margin-top: auto;
  padding: 10px 0 0;
  font-size: 12.5px;
  font-weight: 600;
  color: #e9a6ff;
}

.mega-v2-links {
  grid-row: 1 / 3;
  align-items: center;
  padding: 18px 16px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.mega-v2-links .mega-v2-col {
  display: flex;
  flex-direction: column;
}

/* Category headings — brighter purple, larger and bolder than the links
   beneath them so each group reads clearly. */
.mega-v2-col h4 {
  font: 800 12px "Manrope";
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--purple);
  margin: 0 0 4px;
  padding: 0 10px;
}

/* Menu rows — one shared style for all four menus: line icon, title,
   short description, arrow. Shared values live on .mega-v2-links. */
.mega-v2-links {
  --mn-ico: 20px;
  --mn-ink: var(--ink);
  --mn-muted: #6b6480;
  --mn-icon-ink: #6b2fd0;
  --mn-hover: #f4eeff;
  --mn-line: #efe9f8;
  --mn-radius: 10px;
  --mn-speed: .22s;
}

.mega-v2-col a.mnav {
  position: relative;
  display: grid;
  grid-template-columns: var(--mn-ico) minmax(0, 1fr) 14px;
  align-items: center;
  gap: 12px;
  padding: 10px 10px;
  border-radius: var(--mn-radius);
  color: var(--mn-ink);
  transition: background var(--mn-speed) ease;
}

/* Divider between rows: a straight hairline inset from the row edges.
   Hidden next to a highlighted row so the lavender block stays clean. */
.mega-v2-col a.mnav + a.mnav::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10px;
  right: 10px;
  height: 1px;
  background: var(--mn-line);
}

.mega-v2-col a.mnav:hover,
.mega-v2-col a.mnav:focus-visible {
  background: var(--mn-hover);
}

.mega-v2-col a.mnav:hover::before,
.mega-v2-col a.mnav:focus-visible::before,
.mega-v2-col a.mnav:hover + a.mnav::before,
.mega-v2-col a.mnav:focus-visible + a.mnav::before {
  opacity: 0;
}

.mega-v2-col a.mnav:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: -2px;
}

.mnav-ico,
.mnav-arrow {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: color var(--mn-speed) ease, transform var(--mn-speed) ease;
}

.mnav-ico {
  width: var(--mn-ico);
  height: var(--mn-ico);
  stroke-width: 1.8;
  color: var(--mn-icon-ink);
}

.mnav-arrow {
  width: 14px;
  height: 14px;
  stroke-width: 2;
  color: #a79fba;
}

.mega-v2-col a.mnav:hover .mnav-ico,
.mega-v2-col a.mnav:focus-visible .mnav-ico {
  color: var(--purple);
}

.mega-v2-col a.mnav:hover .mnav-arrow,
.mega-v2-col a.mnav:focus-visible .mnav-arrow {
  color: var(--purple);
  transform: translateX(3px);
}

.mnav-text b {
  display: block;
  font: 700 14px/1.3 "Manrope";
}

.mnav-text small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.35;
  color: var(--mn-muted);
}

/* Training: two course columns, Certification Prep across the bottom on a
   light lavender strip, its four tracks in two columns. */
.dropdown-menu.mega-v2.mega-v2-training {
  width: 680px;          /* 60px wider than the others for two course columns */
}

.mega-v2-training .mega-v2-links {
  grid-template-columns: 1fr 1fr;
  align-items: start;
  column-gap: 6px;
  padding-inline: 12px;
}

.mega-v2-training .mega-v2-col a.mnav {
  gap: 9px;
  padding: 8px 7px;
  grid-template-columns: 18px minmax(0, 1fr) 12px;
}

.mega-v2-training .mnav-ico { width: 18px; height: 18px; }
.mega-v2-training .mnav-arrow { width: 12px; height: 12px; }
.mega-v2-training .mnav-text b { font-size: 13.5px; }

.mega-v2-col.mega-v2-certs {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 8px;
  padding: 10px 6px 6px;
  border-radius: 12px;
  background: #f6f1ff;
}

.mega-v2-certs h4 {
  grid-column: 1 / -1;
}

/* In two columns the rows sit side by side: no separator across them. */
.mega-v2-certs a.mnav + a.mnav::before {
  display: none;
}

/* At 801-940px and 1101-1160px the Services menu, aligned to its button's
   right edge, ran off the left of the screen. There it is centred under
   its button instead. */
@media (800px < width <= 940px), (1100px < width <= 1160px) {
  .nav > .nav-dropdown:nth-of-type(2) .dropdown-menu.mega-v2.mega-v2-right {
    left: 50%;
    right: auto;
    transform: translate(-50%, 10px);
  }

  .nav > .nav-dropdown.open:nth-of-type(2) .dropdown-menu.mega-v2.mega-v2-right {
    transform: translate(-50%, 0);
  }
}

/* ─── HEADER RIGHT ACTIONS ───────────────────────────────── */
.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  flex: 0 0 auto;
  z-index: 2;
}

/* ─── BUTTONS ────────────────────────────────────────────── */
/* Phone-only Book a Demo buttons: one in the Home hero, and a floating pill
   that slides up once the visitor has scrolled (script.js decides when).
   On wider screens the header already shows "Book a Demo". */
.primary-btn.hero-mobile-cta,
.demo-fab { display: none; }

@media (max-width: 560px) {
  .primary-btn.hero-mobile-cta {
    display: inline-flex;
    align-self: flex-start;
    margin: 26px 0 4px;
  }

  .demo-fab {
    position: fixed;
    left: 50%;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    z-index: 150;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px 11px 20px;
    border-radius: 999px;
    background: linear-gradient(105deg, #6d2cff, #d62bff);
    box-shadow: 0 12px 30px #0009, 0 0 24px #922aff66;
    color: #fff;
    font: 700 14.5px "Manrope";
    white-space: nowrap;
    opacity: 0;
    transform: translate(-50%, 150%);
    pointer-events: none;
    transition: transform .35s cubic-bezier(.22, .61, .36, 1), opacity .25s ease;
  }

  .demo-fab.is-shown {
    opacity: 1;
    transform: translate(-50%, 0);
    pointer-events: auto;
  }

  .demo-fab .arrow-circle {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #ffffff2e;
  }

  .demo-fab:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

  /* never on top of an open menu or pop-up */
  body:has(.mobile-panel.open) .demo-fab,
  html.lead-modal-open .demo-fab,
  html.tr-modal-open .demo-fab { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .demo-fab { transition: none; }
}

.primary-btn {
  display: inline-flex;
  font-size: 15px;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border-radius: 999px;
  background: linear-gradient(105deg, #6d2cff, #d62bff);
  box-shadow: 0 0 26px #922aff55;
  font-weight: 600;
  color: #fff;
  border: 0;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px #922affaa;
}

/* Split "pill + circular arrow" demo button */
.demo-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 5px 5px 5px 20px;
  border-radius: 999px;
  background: linear-gradient(105deg, #6d2cff, #d62bff);
  box-shadow: 0 0 26px #922aff55;
  font-weight: 600;
  color: #fff;
  font-size: 13px;
  border: 0;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}

.demo-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px #922affaa;
}

.demo-btn .arrow-circle {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #150c2a;
  color: #fff;
  display: grid;
  place-items: center;
  transition: transform .25s ease, background .2s ease;
}

.demo-btn:hover .arrow-circle {
  transform: rotate(45deg);
  background: #0a0616;
}

/* ─── MOBILE ─────────────────────────────────────────────── */
.mobile-menu-btn,
.mobile-panel {
  display: none;
}

/* ════════════════════════════════════════════════════════════
   HERO — FULL-BLEED SCENE
════════════════════════════════════════════════════════════ */
.hero-bleed {
  position: relative;
  /* Clip sideways only (the 3D stage sits partly off the right edge), but
     let the 3D canvas spill above and below so its floating cubes can
     drift past the hero's edges instead of being cut off. */
  overflow-x: clip;
  overflow-y: visible;
  z-index: 1;
  /* Slide up underneath the (transparent, sticky) header so the hero's
     gradient starts at the very top of the page — no separate colour band
     behind the navbar. The header's in-flow height is 122px (90px at
     <=800px, set below), so the hero's content position doesn't change. */
  margin-top: -122px;
  padding-top: 122px;
  background:
    radial-gradient(1100px 650px at 80% -15%, #7a2fd6a0, transparent 55%),
    radial-gradient(850px 550px at 8% 0%, #22c0ff55, transparent 45%),
    /* Ends transparent so the hero dissolves into the page background
       below instead of stopping at a hard edge. */
    linear-gradient(180deg, #170b30 0%, #2a1050 30%, #3d1470 55%, #2a0e52 78%, #2a0e5200 100%);
}

.hero-scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-ground {
  -webkit-mask-image: linear-gradient(180deg, #000 35%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 35%, transparent 100%);
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  width: 100%;
  height: 260px;
  display: block;
}

.hero-node {
  position: absolute;
  left: 78%;
  bottom: 78px;
  width: 22px;
  height: 22px;
  transform: translateX(-50%) rotate(45deg);
  background: linear-gradient(145deg, var(--cyan), var(--purple));
  border-radius: 6px;
  animation: nodeGlow 3s ease-in-out infinite;
}

@keyframes nodeGlow {
  0%, 100% { box-shadow: 0 0 25px 6px #52d5ff77, 0 0 55px 14px #8c35ff55; }
  50%       { box-shadow: 0 0 34px 10px #52d5ffaa, 0 0 72px 20px #8c35ff77; }
}

.hero {
  min-height: 690px;
  position: relative;
  z-index: 2;
  padding: 60px 0 70px;
  display: flex;
  align-items: center;
}

/* The 3D stage (z-index 15) overlaps the right edge of this column, so
   the column itself lets clicks through and only its real content takes
   them — otherwise the stage's navigation nodes couldn't be clicked. */
.hero-copy {
  position: relative;
  z-index: 5;
  width: 100%;
  pointer-events: none;
  /* The hero centres this column vertically. When the two hero action
     links were removed the column got shorter and the pill + heading slid
     down; this keeps them at their original height. */
  margin-bottom: 94px;
}

.hero-copy > * {
  pointer-events: auto;
}

/* Section label pill — the small uppercase label above each section
   heading. Outline, tint and glow all come from the existing --pink token;
   the right padding is trimmed by one letter-space so the text's trailing
   .3em tracking doesn't make the pill look lopsided. */
/* Section-label pill: dark translucent purple fill, thin cyan → violet →
   magenta gradient border (two background layers: the fill clipped to the
   padding box, the gradient showing through the transparent border), and
   a soft glow that follows the gradient. */
.eyebrow {
  display: inline-flex;
  align-items: center;
  color: #f3eefb;
  font-size: 13.5px;
  letter-spacing: .26em;
  font-weight: 700;
  line-height: 1.4;
  text-transform: uppercase;
  margin: 0 0 20px;
  padding: 9px calc(20px - .26em) 9px 20px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  background:
    linear-gradient(#1c0f38e6, #1c0f38e6) padding-box,
    linear-gradient(90deg, #52d5ff, #a06dff 55%, #d52cff) border-box;
  box-shadow: -6px 0 18px -4px #52d5ff59, 6px 0 18px -4px #d52cff59, 0 0 14px #8c35ff26;
}

/* Glowing separator dots for multi-phrase pills (hero). */
.eyebrow-dot {
  display: inline-block;
  flex: none;
  width: 6px;
  height: 6px;
  margin: 0 .85em 0 calc(.85em - .26em);
  border-radius: 50%;
  background: #52d5ff;
  box-shadow: 0 0 8px #52d5ff;
}

.eyebrow-dot.is-violet {
  background: #c070ff;
  box-shadow: 0 0 8px #a06dff;
}

.hero h1 {
  font: 700 clamp(52px, 5.8vw, 88px)/1.02 "Manrope";
  letter-spacing: -.045em;
  margin: 0;
  max-width: 1100px;
}

.hero h1 span {
  background: linear-gradient(90deg, #c796ff, #a8b5ff, #51d8ff);
  -webkit-background-clip: text;
  color: transparent;
}

.hero-text {
  width: 58%;
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: .015em;
  color: #f3eefb;
  margin: 26px 0;
}

.benefits {
  display: flex;
  gap: 20px;
  align-items: center;
  margin: 28px 0 34px;
}

.benefits > div {
  display: grid;
  grid-template-columns: auto;
}

.benefits b {
  grid-row: 1 / 3;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #812dff25;
  color: #db3aff;
}

.benefits strong {
  font-size: 17px;
  font-weight: 700;
}

.benefits small {
  font-size: 14px;
  color: #c9bedb;
}

.benefits > i {
  height: 38px;
  width: 1px;
  background: #ffffff30;
}

.hero-actions {
  display: flex;
  gap: 34px;
  align-items: center;
}

.text-btn {
  padding-bottom: 7px;
  border-bottom: 2px solid #d22cff;
}

.scroll-note {
  margin-top: 30px;
  font-size: 12px;
  letter-spacing: .27em;
  color: #b6abba;
}

/* ─── HERO 3D VISUAL ─────────────────────────────────────── */
.hero-visual {
  position: absolute;
  width: 690px;
  height: 690px;
  right: -60px;
  top: 70px;
  z-index: 15;
}

/* Soft ambient glow seated behind the sculpture. */
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, #8c35ff22, transparent 70%);
  filter: blur(6px);
  pointer-events: none;
}

/* Three.js stage — see hero-core.js, which mounts the WebGL canvas and the
   clickable navigation-node overlay inside it. */
.hero-3d-stage {
  position: relative;
  width: 100%;
  height: 100%;
}

/* The canvas is larger than its stage on every side (see BLEED in
   hero-core.js) so the floating cubes have room; the camera's field of view
   is widened to match, so the core itself stays the same size and place. */
#bx3d-core-canvas {
  position: absolute;
  inset: -30%;
  width: 160%;
  height: 160%;
  pointer-events: none;
  z-index: 5;
}

.bx3d-nodes-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 25;
}

/* One clickable node per ring (see hero-core.js). The button is a 32px
   circle whose centre JS places on the 3D jewel every frame; the label
   pill inside it is placed separately, on the side facing away from the
   core. The button is zero-margin-centred so its translate() is the
   jewel's exact screen point. */
.bx3d-node-anchor {
  position: absolute;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  margin: -16px 0 0 -16px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  opacity: 0;
  transition: opacity .3s ease;
  -webkit-tap-highlight-color: transparent;
  will-change: transform;
}

.bx3d-node-anchor.is-placed {
  opacity: 1;
}

/* Dimmed while the node is on the far side of its ring, and more so when
   it is directly behind the core. */
.bx3d-node-anchor.is-behind {
  opacity: .72;
}

.bx3d-node-anchor.is-occluded {
  opacity: .3;
}

.bx3d-node-anchor:hover,
.bx3d-node-anchor:focus-visible,
.bx3d-node-anchor.active {
  z-index: 2;
  opacity: 1;
}

.bx3d-node-anchor:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

.bx3d-node-target {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.bx3d-node-pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px solid var(--node-color, var(--cyan));
  opacity: .7;
  animation: bx3d-pulse-wave 2.8s cubic-bezier(.2, .8, .4, 1) infinite;
  pointer-events: none;
}

.bx3d-node-core-pip {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 20%, var(--node-color, var(--cyan)) 75%);
  box-shadow: 0 0 14px var(--node-color, var(--cyan)), 0 0 24px #8c35ff99;
  transition: transform .25s cubic-bezier(.2, .7, .2, 1), box-shadow .25s ease;
}

/* Label pill — always visible, anchored at the button's centre and moved
   into place by JS (translate). */
.bx3d-node-pill {
  position: absolute;
  top: 16px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid #ffffff2e;
  border: 1px solid color-mix(in srgb, var(--node-color, var(--cyan)) 55%, transparent);
  background: #0e0820eb;
  box-shadow: 0 4px 16px #0009;
  white-space: nowrap;
  transition: border-color .2s ease, box-shadow .2s ease;
  will-change: transform;
}

.bx3d-node-pill-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.2;
  color: #fff;
}

.bx3d-node-anchor:hover .bx3d-node-pill,
.bx3d-node-anchor:focus-visible .bx3d-node-pill,
.bx3d-node-anchor.active .bx3d-node-pill {
  border-color: var(--node-color, var(--cyan));
  box-shadow: 0 4px 22px #000c, 0 0 16px var(--node-color, var(--cyan));
}

.bx3d-node-anchor:hover .bx3d-node-core-pip,
.bx3d-node-anchor:focus-visible .bx3d-node-core-pip,
.bx3d-node-anchor.active .bx3d-node-core-pip {
  transform: scale(1.35);
  box-shadow: 0 0 16px #fff, 0 0 24px var(--node-color, var(--cyan));
}

/* Below desktop the 3D sits faded, partly behind the hero copy — as pure
   decoration there, so its labels and click targets are switched off
   rather than covering the text and buttons. */
@media (max-width: 1100px) {
  .bx3d-nodes-overlay { display: none; }
  .hero-visual        { pointer-events: none; }
}

@keyframes bx3d-pulse-wave {
  0%   { transform: scale(.75); opacity: .9; }
  60%  { transform: scale(1.65); opacity: 0; }
  100% { transform: scale(1.65); opacity: 0; }
}

/* Destination card flash after clicking a node. */
.bx3d-card-highlight {
  animation: bx3d-pulse-target 2.4s cubic-bezier(.2, .7, .2, 1) forwards !important;
}

@keyframes bx3d-pulse-target {
  0%   { box-shadow: 0 0 0 0 #52d5ffcc, 0 0 35px #8c35ffb3; }
  30%  { box-shadow: 0 0 0 4px #52d5ff66, 0 14px 45px #8c35ff99; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.pagination {
  position: absolute;
  right: 5px;
  top: 50%;
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
}

.pagination b { font-size: 10px; }

.pagination i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #81778e;
}

.pagination i:first-of-type {
  width: 10px;
  height: 2px;
  border-radius: 0;
  background: #d82cff;
}

/* ════════════════════════════════════════════════════════════
   WHAT / WHY
════════════════════════════════════════════════════════════ */
.what {
  padding: 76px 0 100px;
}

.what-heading {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 45px;
}

.what-heading h2,
.content-section h1,
.content-section h2 {
  font: 700 clamp(38px, 3.8vw, 54px)/1.06 "Manrope";
  letter-spacing: -.04em;
  margin: 0;
}

/* Gradient text on em tags */
.what h2 em,
.content-section h1 em,
.content-section h2 em,
.impact h2 em,
.next-phase h2 em,
.about-hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, #a06dff, #56d7ff);
  -webkit-background-clip: text;
  color: transparent;
}

/* On the purple CTA banner the violet end of the gradient above blends in,
   so the banner's highlighted words use the palette's bright cyan. */
.next-phase h2 em {
  background: linear-gradient(90deg, #a8f0ff, #52d5ff);
  -webkit-background-clip: text;
}

.what-heading > p {
  margin: 0;
  color: #d3c9df;
  line-height: 1.65;
}

.question-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

/* White cards — only here */
.question-card {
  min-height: 275px;
  padding: 30px 36px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  background: var(--card-lavender);
  color: var(--ink);
  border: 1px solid #9a41ff33;
  border-radius: 22px;
  box-shadow: 0 0 25px #7929ff3b, 0 15px 35px #0002;
  transition: transform .25s ease, box-shadow .25s ease;
}

.question-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 34px #7929ff55, 0 22px 45px #0003;
}

.question-card h3 {
  font: 700 26px "Manrope";
  margin: 0 0 12px;
}

.question-card p {
  margin: 0 0 16px;
  color: #2a2540;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.62;
}

.question-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

/* Pills alternate deep purple / deep navy (themes below); colours apply
   to the pills only, never the light card behind them. */
/* The three pills share the row equally (basis 0, equal grow); the
   max-content floor makes the row wrap instead of overflowing whenever
   the card is too narrow for all three on one line. */
.question-card ul li {
  flex: 1 1 0;
  min-width: max-content;
  text-align: center;
  white-space: nowrap;
  font-size: 13.5px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
}

@media (max-width: 700px) {
  .question-card ul li { flex: 1 1 auto; }
}

.question-card ul li:nth-child(odd) {
  background: linear-gradient(180deg, #1B1038, #291052);
  border: 1px solid #A82BFF59;
  color: #D8D0EA;
  box-shadow: 0 0 14px #A82BFF2E;
}

.question-card ul li:nth-child(even) {
  background: linear-gradient(180deg, #0C1D3D, #102C59);
  border: 1px solid #16C4F459;
  color: #D4E8F5;
  box-shadow: 0 0 14px #16C4F42E;
}

.question-card ul li::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  vertical-align: middle;
  background: #A82BFF;
}

.question-card ul li:nth-child(even)::before {
  background: #16C4F4;
}

/* ════════════════════════════════════════════════════════════
   STATEMENT BANNER
════════════════════════════════════════════════════════════ */
.statement-banner {
  margin: 30px 0 0;
  padding: 80px 40px;
  border-radius: 26px;
  position: relative;
  overflow: hidden;
  text-align: center;
  border: 1px solid #ffffff14;
  background: radial-gradient(circle at 50% 130%, #5a1fb0, #1a0e38 68%), #180c30;
}

.statement-banner .decor {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .5;
}

.statement-banner h2 {
  position: relative;
  font: 700 clamp(28px, 3.6vw, 46px)/1.35 "Manrope";
  max-width: 820px;
  margin: 0 auto;
  letter-spacing: -.01em;
}

.statement-banner .soft {
  color: #c9bce2;
  font-weight: 600;
}

.statement-banner .accent {
  background: linear-gradient(90deg, #c796ff, #56d7ff);
  -webkit-background-clip: text;
  color: transparent;
}

/* ════════════════════════════════════════════════════════════
   HIGHLIGHTED QUOTE PHRASE
════════════════════════════════════════════════════════════ */
mark.hl {
  background: linear-gradient(120deg, #e786ff44, #8c35ff33);
  color: inherit;
  padding: 0 4px;
  border-radius: 4px;
}

/* ════════════════════════════════════════════════════════════
   IMPACT / STATS
════════════════════════════════════════════════════════════ */
.impact {
  padding: 70px 0 30px;
  display: grid;
  grid-template-columns: 1.05fr 1.95fr;
  gap: 55px;
  align-items: center;
}

.impact h2 {
  font: 700 clamp(38px, 3.8vw, 53px)/.98 "Manrope";
  letter-spacing: -.045em;
  margin: 0;
}

.impact > div > p:last-child {
  color: #c3b8cf;
  line-height: 1.65;
  max-width: 480px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
}

.stats article {
  min-height: 175px;
  padding: 20px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px solid #a442ff45;
  border-radius: 14px;
  background: linear-gradient(150deg, #251442, #12092a);
  transition: transform .25s ease, border-color .25s ease;
}

.stats article:hover {
  transform: translateY(-4px);
  border-color: #c261ff88;
}

.stats article > b {
  font-size: 30px;
  color: #d13aff;
  text-shadow: 0 0 15px #d13aff66;
}

.stats strong {
  font: 700 27px "Manrope";
  margin: 8px 0;
}

.stats span {
  font-size: 11px;
  line-height: 1.5;
  color: #c6bcd0;
}

/* ════════════════════════════════════════════════════════════
   SOLUTIONS / SERVICES
════════════════════════════════════════════════════════════ */
.content-section {
  padding: 90px 0 40px;
}

/* Solutions — bright card grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 42px;
}

.feature-grid article {
  /* Size container for the capability tiles below (their text scales with
     the card's width). */
  container-type: inline-size;
  padding: 26px;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  background: var(--card-lavender);
  color: var(--ink);
  border: 1px solid #9a41ff2b;
  box-shadow: 0 0 22px #7929ff26, 0 14px 30px #0002;
  transition: transform .25s ease, box-shadow .25s ease;
}

/* Desktop: 4 across, then the last 3 centred under them (each card spans
   2 of 8 tracks; cards 5-7 start half a card in). Seven Solutions cards. */
@media (min-width: 1101px) {
  .feature-grid                          { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .feature-grid article                  { grid-column: span 2; }
  .feature-grid article:nth-child(5)     { grid-column: 2 / span 2; }
  .feature-grid article:nth-child(6)     { grid-column: 4 / span 2; }
  .feature-grid article:nth-child(7)     { grid-column: 6 / span 2; }
}

.feature-grid article:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 30px #7929ff45, 0 20px 40px #0003;
}

.feature-grid article > b {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #f1eaff;
  color: #8c21ff;
  font-style: normal;
  font-weight: 700;
  font-size: 12px;
  margin-bottom: 10px;
}

.feature-grid h3 {
  font: 700 21px "Manrope";
  margin: 0 0 10px;
  color: var(--ink);
  text-align: center;
}

.feature-grid p {
  color: #3d3652;
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.58;
  letter-spacing: .012em;
  margin: 0 0 14px;
  text-align: center;
}

/* Capability tiles — the three points of every Solutions card, as three
   equal tiles (icon on top, label below) pinned to the bottom of the card.
   One set of rules and tokens styles all 21.
   The row reaches 14px into the card's side padding, so the tiles get as
   much width as possible. The label size follows the card width (cqw) so
   the longest word ("Configuration", ~6.6 em) always fits on one line;
   below 11px that would be too small, so narrow cards stack the tiles as
   rows instead (icon left, label right). script.js gives every tile in a
   row of cards the same height, so tile tops line up across the row even
   when one label needs a third line. */
.feature-grid ul {
  --tile-bg: #faf7ff;
  --tile-border: #e2d6fa;
  --tile-border-hover: #b88cff;
  --tile-radius: 14px;
  --tile-gap: 6px;
  --tile-pad: 12px 3px 11px;
  --tile-icon: 24px;
  --tile-ink: #2b2245;
  --tile-glow: 0 6px 18px #8c35ff24, 0 0 0 1px #b88cff33;
  --tile-speed: .25s;
  margin: auto -14px 0;
  padding: 6px 0 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--tile-gap);
}

.feature-grid li {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  padding: var(--tile-pad);
  border: 1px solid var(--tile-border);
  border-radius: var(--tile-radius);
  background: var(--tile-bg);
  color: var(--tile-ink);
  font-size: clamp(10.75px, 5.05cqw - .1px, 12.5px);
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  text-wrap: balance;
  transition: border-color var(--tile-speed) ease, box-shadow var(--tile-speed) ease, background var(--tile-speed) ease;
}

/* Each label has the reference image's two-line split (first word, then
   the rest); a long second half can still wrap onto a third line. */
.tile-label > span {
  display: block;
}

/* Hover: the card keeps its lift; the tile only glows. */
.feature-grid li:hover {
  border-color: var(--tile-border-hover);
  background: #fff;
  box-shadow: var(--tile-glow);
}

/* One shared rule, so all 21 icons have the same size, stroke and colour. */
.sol-ico {
  flex: none;
  width: var(--tile-icon);
  height: var(--tile-icon);
  fill: none;
  stroke: #4a1d9c;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Card too narrow for three readable tiles side by side. */
@container (width < 215px) {
  .feature-grid ul {
    grid-template-columns: 1fr;
  }

  .feature-grid li {
    flex-direction: row;
    gap: 10px;
    padding: 6px 12px;
    font-size: 13px;
    text-align: left;
  }

  .sol-ico {
    width: 20px;
    height: 20px;
  }

  .tile-label > span {
    display: inline;
  }
}

/* Holds the <symbol> definitions only; never drawn. */
.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* Intro paragraph under a section heading (Home Solutions / What We Do). */
.section-intro {
  max-width: 680px;
  margin: 20px 0 0;
  color: #ddd5e8;
  font-size: 17px;
  line-height: 1.65;
}

/* ── What We Do: "Our Capabilities" map ────────────────────────
   Six services around one hub, 30 / 40 / 30 across the content width.
   Each service's icon node is joined to its own point on the globe by a
   thin circuit line (drawn by script.js into .cap-links). Background: a
   very faint grid and circuit traces that fade out towards the middle.
   Below 1180px the hub moves above the services (two columns, then one)
   and the services hang off a thin rail instead of connector lines. */
.cap-map {
  --cap-node: 60px;
  --cap-ink: #f4f0fb;
  --cap-hook: #d7b9ff;
  --cap-text: #f1ecf8;
  --cap-line: #9a41ff40;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 30% 40% 30%;
  grid-template-areas: "left hub right";
  align-items: center;
  margin-top: 56px;
  padding: 36px 0;
}

/* faint technical grid, kept off the centre and the text */
.cap-map::before {
  content: "";
  position: absolute;
  inset: -24px -40px;
  z-index: -2;
  background-image:
    linear-gradient(#ffffff08 1px, transparent 1px),
    linear-gradient(90deg, #ffffff08 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 70% 75% at 50% 50%, transparent 30%, #000 85%);
  mask-image: radial-gradient(ellipse 70% 75% at 50% 50%, transparent 30%, #000 85%);
  pointer-events: none;
}

.cap-trace {
  position: absolute;
  z-index: -1;
  width: 240px;
  height: 130px;
  opacity: .22;
  pointer-events: none;
}

.cap-trace-tl { top: -8px; left: -30px; }
.cap-trace-br { right: -30px; bottom: -8px; }

.cap-links {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.cap-col {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 52px;
}

.cap-left  { grid-area: left; }
.cap-right { grid-area: right; }

.cap-item {
  display: grid;
  grid-template-columns: var(--cap-node) minmax(0, 1fr);
  align-items: center;
  column-gap: 22px;
  scroll-margin-top: 140px;
}

/* Left column: text first, node on the inside (towards the hub). */
.cap-left .cap-item { grid-template-columns: minmax(0, 1fr) var(--cap-node); }
.cap-left .cap-node { order: 2; }

.cap-node {
  width: var(--cap-node);
  height: var(--cap-node);
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid #9a41ff59;
  background: radial-gradient(circle at 35% 30%, #241a52, #0f0a26 70%);
  box-shadow: 0 0 0 6px #8c35ff0d;
  color: #d9c8ff;
  transition: border-color .25s ease, box-shadow .25s ease, color .25s ease;
}

.cap-node svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cap-item:hover .cap-node {
  border-color: #b98cff;
  box-shadow: 0 0 0 6px #8c35ff1f;
  color: #fff;
}

.cap-num {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 700 14px "Manrope";
  letter-spacing: .08em;
  color: #c896ff;
}

.cap-num::after {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: .7;
}

.cap-text h3 {
  margin: 8px 0 8px;
  font: 700 20px/1.3 "Manrope";
  letter-spacing: -.01em;
  color: var(--cap-ink);
}

.cap-text p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--cap-text);
}

.cap-text .cap-hook {
  margin-bottom: 6px;
  font-style: italic;
  font-weight: 600;
  color: var(--cap-hook);
}

/* Hub: holographic Earth (canvas, drawn by script.js) inside thin HUD
   rings (SVG), with the label laid over it. The Earth fills 76% of the
   hub — 340px on a 448px desktop hub. */
.cap-hub {
  --earth: 76%;
  grid-area: hub;
  position: relative;
  z-index: 1;
  justify-self: center;
  width: min(100%, 448px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.cap-hud {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.cap-hud-spin {
  transform-origin: 0 0;
  animation: cap-hud-turn 240s linear infinite reverse;
}

.cap-hud-glow { filter: drop-shadow(0 0 3px #a678ff); }

@keyframes cap-hud-turn { to { transform: rotate(360deg); } }

.cap-earth {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--earth);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.cap-hub-label {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 26px 34px 30px;
  display: grid;
  justify-items: center;
  text-align: center;
  /* faint dark wash so the label stays legible over the turning globe */
  background: radial-gradient(ellipse 50% 50% at 50% 50%, #0b062199 0%, #0b062166 55%, transparent 100%);
}

/* What We Do intro: brighter than the site's usual intro grey. */
#services .section-intro {
  color: #f1ecf8;
}

.cap-hub-our {
  font: 700 38px/1 "Manrope";
  letter-spacing: .06em;
  color: #fff;
}

.cap-hub-cap {
  margin-top: 10px;
  padding-left: .36em;                 /* balances the trailing letter-spacing */
  font: 600 13px "Manrope";
  letter-spacing: .36em;
  color: #fff;
}

.cap-hub-cap::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  margin: 14px auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, #a06dff, #56d7ff);
}

/* Connectors (created by script.js): thin pale-lavender curves, one per
   service, with small glowing end nodes. Hovering or focusing a service
   brightens only its own line and nodes. */
.cap-links path {
  fill: none;
  stroke: #d9c8ff;
  stroke-opacity: .5;
  stroke-width: 1.2;
  stroke-linecap: round;
  transition: stroke-opacity .3s ease, stroke-width .3s ease;
}

.cap-links .cap-node-core { fill: #f1e9ff; opacity: .85; transition: opacity .3s ease; }
.cap-links .cap-node-glow {
  fill: #b48cff;
  opacity: .32;
  transform-box: fill-box;
  transform-origin: center;
  animation: cap-node-pulse 3.2s ease-in-out infinite;
}

.cap-links .is-on path { stroke-opacity: 1; stroke-width: 1.5; filter: drop-shadow(0 0 3px #b48cff); }
.cap-links .is-on .cap-node-core { opacity: 1; }
.cap-links .is-on .cap-node-glow { opacity: .6; }

@keyframes cap-node-pulse {
  0%, 100% { transform: scale(1); opacity: .32; }
  50%      { transform: scale(1.45); opacity: .14; }
}

@media (prefers-reduced-motion: reduce) {
  .cap-hud-spin, .cap-links .cap-node-glow { animation: none; }
}

/* ── narrower screens: hub on top, services below on a rail ── */
@media (max-width: 1180px) {
  .cap-map {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas: "hub hub" "left right";
    column-gap: 48px;
    row-gap: 40px;
    padding: 12px 0;
  }
  .cap-links, .cap-trace { display: none; }
  .cap-map::before { inset: -24px 0; }
  .cap-hub { width: min(100%, 320px); }
  .cap-col { gap: 34px; }
  /* every service: node first, then text; a thin rail joins the nodes */
  .cap-left .cap-item { grid-template-columns: var(--cap-node) minmax(0, 1fr); }
  .cap-left .cap-node { order: 0; }
  .cap-item { align-items: start; }
  .cap-col::before {
    content: "";
    position: absolute;
    top: calc(var(--cap-node) / 2);
    bottom: calc(var(--cap-node) / 2);
    left: calc(var(--cap-node) / 2);
    width: 1px;
    z-index: -1;
    background: linear-gradient(#9a41ff66, #56d7ff4d);
  }
}

@media (max-width: 760px) {
  .cap-map {
    --cap-node: 50px;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "hub" "left" "right";
    row-gap: 34px;
    margin-top: 36px;
  }
  .cap-map::before { display: none; }
  .cap-hub { width: min(100%, 280px); }
  .cap-hub-our { font-size: 32px; }
  .cap-item { column-gap: 16px; }
  .cap-node svg { width: 21px; height: 21px; }
  .cap-text h3 { font-size: 18px; }
}

/* About — Threat Landscape statistics (reuses the .stats card). */
.threat-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 40px;
}

.threat-stats article {
  min-height: 190px;
  padding: 26px 20px;
}

.threat-stats strong {
  margin: 0 0 10px;
  background: linear-gradient(90deg, #c796ff, #56d7ff);
  -webkit-background-clip: text;
  color: transparent;
  font-size: 34px;
}

.threat-stats span {
  color: #e2dbee;
  font-size: 14.5px;
  line-height: 1.55;
}

.threat-closing {
  max-width: 760px;
  margin: 34px 0 0;
  color: #f3eefb;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.55;
}

.threat-closing em {
  font-style: normal;
  background: linear-gradient(90deg, #a06dff, #56d7ff);
  -webkit-background-clip: text;
  color: transparent;
}

/* ════════════════════════════════════════════════════════════
   DEMO PAGE
════════════════════════════════════════════════════════════ */
/* The demo page has no big intro hero — this section is the first thing
   under the header, so it gets a tighter top padding than the standard
   content-section (which assumes it follows another section). */
#demo-top {
  padding-top: 54px;
}

.demo-grid {
  display: grid;
  grid-template-columns: 1fr 460px;
  gap: 60px;
  align-items: start;
  padding: 10px 0 90px;
}

.demo-points {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 540px;
}

/* Label column has a fixed width so every description starts at the same
   x-position, however the labels wrap. */
.demo-points > div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  column-gap: 20px;
  align-items: start;
}

.demo-points b {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #8c35ff25;
  color: #d29bff;
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 18px;
}

.demo-points strong {
  display: block;
  font-size: 14.5px;
  line-height: 1.45;
}

.demo-points span {
  font-size: 15.5px;
  color: #ece6f5;
  line-height: 1.58;
}

.demo-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid #ffffff1c;
}

.demo-logos span {
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .03em;
}

.demo-logos span:nth-child(odd) {
  background: linear-gradient(180deg, #1B1038, #291052);
  border: 1px solid #A82BFF59;
  color: #D8D0EA;
  box-shadow: 0 0 14px #A82BFF2E;
}

.demo-logos span:nth-child(even) {
  background: linear-gradient(180deg, #0C1D3D, #102C59);
  border: 1px solid #16C4F459;
  color: #D4E8F5;
  box-shadow: 0 0 14px #16C4F42E;
}

.demo-logos span::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  vertical-align: middle;
  background: #A82BFF;
}

.demo-logos span:nth-child(even)::before {
  background: #16C4F4;
}

/* "What to expect" rows + the "What happens next" panel.
   On wide desktops the panel is taken out of flow so it never changes the
   row's height (the pills below keep their original position): it is
   centred in the gap between the text column (540px) and the form (60px
   grid gap to the right of this column), i.e. left = 540 + (W + 60 - 540
   - 264) / 2 = 50% + 168px, and its bottom sits on the baseline of the
   last line of text, about 5px above the row's bottom. From 1500px that
   gap is about 340px+, so the 264px panel keeps ~36px clear each side;
   narrower, it stacks under the rows. */
.demo-points-row {
  position: relative;
  margin-top: 36px;
}

.demo-next {
  width: 264px;
}

@media (min-width: 1500px) {
  .demo-next {
    position: absolute;
    left: calc(50% + 168px);
    bottom: 5px;
  }
}

@media (max-width: 1499px) {
  .demo-next {
    margin-top: 30px;
    width: auto;
    max-width: 420px;
  }
}

.demo-next {
  padding: 20px 20px 22px;
  border-radius: 18px;
  border: 1px solid #a06dff59;
  background: linear-gradient(180deg, #1c0f38d9, #150b2bd9);
  box-shadow: 0 0 30px #8c35ff26, inset 0 0 24px #8c35ff12;
}

.demo-next-label {
  margin: 0 0 16px;
  color: #d8ccef;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .22em;
}

.demo-next-steps {
  list-style: none;
  margin: 0;
  padding: 0;
}

.demo-next-steps li {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.demo-next-steps li + li {
  margin-top: 22px;
}

/* Vertical connector from each icon down to the next, with a node dot. */
.demo-next-steps li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 46px;
  bottom: -20px;
  width: 2px;
  background: linear-gradient(180deg, #52d5ff, #a06dff);
  opacity: .8;
}

.demo-next-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 18px;
  bottom: -9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c070ff;
  box-shadow: 0 0 8px #a06dff;
}

.demo-next-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1.5px solid transparent;
  background:
    linear-gradient(#1a0e34, #1a0e34) padding-box,
    linear-gradient(135deg, #52d5ff, #a06dff) border-box;
  color: #9fe6ff;
  box-shadow: 0 0 14px #52d5ff33;
}

.demo-next-steps strong {
  display: block;
  margin-top: 2px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.demo-next-steps span:not(.demo-next-icon) {
  display: block;
  margin-top: 4px;
  color: #d4cce6;
  font-size: 13.5px;
  line-height: 1.5;
}

/* Left column nudged in from the page edge (desktop only). */
.demo-info {
  padding-left: 28px;
}

.demo-card {
  background: var(--card-lavender);
  color: var(--ink);
  border-radius: 22px;
  padding: 32px 30px;
  border: 1px solid #9a41ff2b;
  box-shadow: 0 0 30px #7929ff30, 0 20px 45px #0003;
}

.demo-card h3 {
  font: 700 20px "Manrope";
  margin: 0 0 6px;
  color: var(--ink);
}

.demo-card h3 .demo-accent {
  color: var(--purple);
}

.demo-card > p {
  color: var(--ink-muted);
  font-size: 14px;
  margin: 0 0 22px;
}

.demo-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.demo-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.demo-field label {
  font-size: 13px;
  font-weight: 600;
  color: #4a4360;
}

.demo-field input,
.demo-field select,
.demo-field textarea {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #e4dcf5;
  background: #faf8ff;
  color: var(--ink);
  font: inherit;
  font-size: 14.5px;
  outline: 0;
  transition: border-color .2s, box-shadow .2s;
}

.demo-field input:focus,
.demo-field select:focus,
.demo-field textarea:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px #8c35ff22;
}

.demo-field textarea {
  resize: vertical;
  min-height: 84px;
}

.demo-submit {
  width: 100%;
  justify-content: center;
  margin-top: 4px;
}

.demo-note {
  margin-top: 14px;
  font-size: 12px;
  color: #8b7f9d;
  text-align: center;
  line-height: 1.5;
}

/* Email card: optional topic chips (pre-mark topics in the email and name
   them in the subject), the email button, and the address with a Copy
   button for visitors whose email app doesn't open. */
.demo-topics { margin: 0 0 20px; }

.demo-topics-label {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  color: #4a4360;
}

.demo-topics-label span {
  margin-left: 6px;
  font-weight: 500;
  color: #8b7f9d;
}

.demo-topic-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.demo-topic {
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid #e4dcf5;
  background: #faf8ff;
  color: #3b3352;
  font: 600 13px "Manrope";
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}

.demo-topic:hover { border-color: #c9b3f5; }

.demo-topic[aria-pressed="true"] {
  background: var(--purple);
  border-color: var(--purple);
  color: #fff;
}

.demo-topic[aria-pressed="true"]::before { content: "\2713  "; }

.demo-topic:focus-visible,
.demo-copy:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 2px;
}

.demo-email-btn { text-decoration: none; }

.demo-address {
  display: grid;
  justify-items: center;
  gap: 6px;
  margin-top: 18px;
  text-align: center;
}

.demo-address-label {
  font-size: 12.5px;
  color: #8b7f9d;
}

.demo-address-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  padding: 6px 6px 6px 14px;
  border-radius: 10px;
  border: 1px solid #e4dcf5;
  background: #faf8ff;
}

.demo-address-text {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  user-select: all;
}

.demo-copy {
  flex: none;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid #d9ccf5;
  background: #fff;
  color: var(--purple);
  font: 700 12.5px "Manrope";
  cursor: pointer;
  transition: background .2s, color .2s;
}

.demo-copy:hover { background: var(--purple); color: #fff; }

.demo-copy-status {
  min-height: 1em;
  font-size: 12px;
  font-weight: 600;
  color: #1f7a4d;
}

/* ════════════════════════════════════════════════════════════
   ABOUT — HERO
════════════════════════════════════════════════════════════ */
.about-hero {
  position: relative;
  padding: 86px 0 56px;
}

.about-hero h1 {
  font: 700 clamp(40px, 4.6vw, 62px)/1.08 "Manrope";
  letter-spacing: -.04em;
  margin: 0;
  max-width: 1000px;
}

.about-hero h1 em {
  font-style: normal;
}

.about-hero-text {
  margin: 24px 0 0;
  font-size: 17px;
  line-height: 1.65;
  color: #ddd5e8;
  max-width: 720px;
}

#approach .about-hero-text {
  max-width: 500px;
}

/* About / Training hero — copy on the left, a neon "ABOUT US" or
   "TRAINING" illustration on the right (inline SVG in each page). */
.about-hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: center;
  gap: 56px;
}

/* Kept deliberately modest so it accents the copy rather than competing
   with the headline. */
.about-hero-art {
  display: block;
  width: 100%;
  max-width: 520px;
  height: auto;
  justify-self: end;
  overflow: visible;
}

@media (max-width: 1100px) {
  .about-hero-split       { grid-template-columns: 1fr; gap: 36px; }
  .about-hero-art         { justify-self: start; max-width: 460px; }
  /* Training: stacked, the art would sit between the Courses /
     Certifications switch and the panel it controls, so it is hidden. */
  .training-page .about-hero-art { display: none; }
}

/* Training hero — the learning-pathway artwork replaces the neon
   "TRAINING" graphic. It sits a little lower than the copy's centre (level
   with the paragraph, CTA and tabs), and its edges fade into the page so
   no rectangle shows. The dotted waves sit behind it, reaching the right
   edge of the window. */
.training-page #training-top > * {
  position: relative;
  z-index: 1;
}

/* In front of the artwork (it is opaque), but faint and click-through. */
.training-page #training-top > .tr-hero-waves {
  position: absolute;
  z-index: 2;
  top: 20%;
  bottom: -60px;
  left: 48%;
  right: calc(50% - 50vw);
  width: auto;
  height: auto;
  pointer-events: none;
}

.training-page .tr-hero-art {
  /* Wider than its column: it grows into the empty page margin on the
     right (never past the window), so the text column keeps its width. */
  --bleed: clamp(20px, (100vw - 1240px) / 2, 190px);
  --pull: clamp(30px, (100vw - 1200px) / 3, 120px);   /* into the gap on its left */
  width: calc(100% + var(--bleed) + var(--pull));
  max-width: none;
  aspect-ratio: 1600 / 876;
  object-fit: contain;
  object-position: center;
  align-self: end;
  margin: 0 calc(-1 * var(--bleed)) -24px calc(-1 * var(--pull));
  --fade-x: linear-gradient(to right, transparent, #0008 7%, #000 15%, #000 88%, #0008 94%, transparent);
  --fade-y: linear-gradient(transparent, #0008 9%, #000 19%, #000 80%, #0008 90%, transparent);
  --fade-r: radial-gradient(ellipse 75% 85% at 58% 55%, #000 60%, transparent 100%);
  -webkit-mask-image: var(--fade-x), var(--fade-y), var(--fade-r);
  -webkit-mask-composite: source-in;
  mask-image: var(--fade-x), var(--fade-y), var(--fade-r);
  mask-composite: intersect;
}

/* Stacked (tablet / phone): the artwork goes under the text and button,
   above the Courses / Certifications switch. The copy wrapper is flattened
   (display: contents) so the image can sit between its children; the
   section becomes a plain column so the text keeps its usual spacing. */
@media (max-width: 1100px) {
  .training-page #training-top > .tr-hero-waves { display: none; }
  .training-page #training-top { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .training-page #training-top .about-hero-copy { display: contents; }
  .training-page #training-top .tr-tabs { order: 2; }
  .training-page #training-top .eyebrow { align-self: flex-start; }
  .training-page #training-top > .tr-hero-art {
    display: block;
    order: 1;
    align-self: center;
    width: 100%;
    max-width: 620px;
    margin: 18px 0 -6px;
  }
}

/* Belief cards */
.belief-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 42px;
}

.belief-grid article {
  padding: 24px 22px;
  border-radius: 18px;
  border: 1px solid #a442ff35;
  background: var(--card-lavender);
  color: var(--ink);
}

.belief-grid h3 {
  font: 700 20px "Manrope";
  margin: 0 0 10px;
}

.belief-grid p {
  margin: 0;
  color: #3d3652;
  font-size: 16.5px;
  font-weight: 500;
  line-height: 1.6;
}

/* Founder / leadership panel */
.founder-panel {
  margin-top: 42px;
  padding: 40px;
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 34px;
  align-items: center;
  border-radius: 20px;
  border: 1px solid #a442ff3d;
  background: var(--card-lavender);
  color: var(--ink);
}

.founder-avatar {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 700 34px "Manrope";
  background: linear-gradient(145deg, #6d2cff, #d62bff);
  box-shadow: 0 0 40px #922aff66;
}

img.founder-avatar {
  object-fit: cover;
  object-position: center 12%;
}

.founder-panel h3 {
  font: 700 24px "Manrope";
  margin: 0 0 4px;
}

.founder-role {
  display: block;
  color: #8c21ff;
  font-size: 14.5px;
  letter-spacing: .06em;
  margin-bottom: 14px;
}

.founder-panel p {
  margin: 0;
  color: #353148;
  font-size: 16.5px;
  line-height: 1.65;
  max-width: 640px;
}

/* ════════════════════════════════════════════════════════════
   TEAM — LEADERSHIP CARDS
════════════════════════════════════════════════════════════ */
.leadership-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 42px;
}

/* Leadership cards — tall dark navy-to-purple cards with a
   large photo area. Hover / keyboard focus lifts and enlarges the card,
   zooms the photo and reveals the short description; clicking anywhere on
   the front flips it to the full profile on the back.
   Structure: the outer card owns perspective and the hover lift; the inner
   element flips (rotateY); both faces sit in one grid cell so the card is
   always as tall as its taller face, and each face hides its own back side
   so neither shows through mirrored. */
.leadership-card {
  --lead-h: 512px;
  position: relative;
  z-index: 1;
  min-width: 0;
  perspective: 1200px;
  transition: transform .3s ease;
}

.leadership-card:hover,
.leadership-card:has(:focus-visible) {
  z-index: 5;
  /* Lift only: scaling a card that holds a 3D (flip) layer makes Chrome
     stretch the already-rendered bitmap, so photos and text go soft. */
  transform: translateY(-8px);
}

.leadership-card-inner {
  position: relative;
  display: grid;
  height: 100%;
  transform-style: preserve-3d;
  transform: rotateY(0deg);
  transition: transform .65s ease;
}

.leadership-face {
  grid-area: 1 / 1;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: var(--lead-h);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid #9a41ff2b;
  background: var(--card-lavender);
  box-shadow: 0 0 22px #7929ff26, 0 14px 30px #0002;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transition: border-color .3s ease, box-shadow .3s ease;
}

.leadership-card:hover .leadership-face,
.leadership-card:has(:focus-visible) .leadership-face {
  border-color: #9a41ff66;
  box-shadow: 0 30px 60px #7929ff40, 0 25px 45px #0004;
}

.leadership-photo {
  position: relative;
  height: 390px;
  flex: none;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(155deg, #efe6ff, #f8f3ff);
}

.leadership-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.leadership-photo img,
.leadership-photo svg {
  transition: transform .35s ease;
}

.leadership-card:hover .leadership-photo img,
.leadership-card:hover .leadership-photo svg,
.leadership-card:has(:focus-visible) .leadership-photo img,
.leadership-card:has(:focus-visible) .leadership-photo svg {
  transform: scale(1.08);
}

.leadership-body {
  /* Dark navy panel under the photo, always running to the card's bottom
     edge (no light strip). At rest it is just tall enough for the name and
     role; on hover/focus it rises as the description opens. */
  flex: 1 0 auto;
  padding: 24px 20px;
  background: linear-gradient(180deg, #08071a 0%, #100b2b 100%);
  color: #fff;
}

.leadership-body h3 {
  font: 700 21px "Manrope";
  margin: 0 0 4px;
  color: #fff;
  transition: transform .3s ease;
}

.leadership-card:hover .leadership-body h3,
.leadership-card:has(:focus-visible) .leadership-body h3 {
  transform: translateY(-2px);
}

.leadership-role {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #8c21ff;
}

.leadership-body .leadership-role {
  color: #c9c5d8;
}

/* Short description — hidden until hover/focus on devices that can hover;
   always shown on touch devices (below). */
.leadership-body p {
  margin: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  visibility: hidden;
  color: #e0dced;
  font-size: 14px;
  line-height: 1.6;
  transition: max-height .35s ease, opacity .25s ease, margin-top .25s ease, visibility .25s ease;
}

.leadership-card:hover .leadership-body p,
.leadership-card:has(:focus-visible) .leadership-body p {
  max-height: 300px;
  margin-top: 10px;
  opacity: 1;
  visibility: visible;
}

/* The dark panel always reaches the bottom edge, so paint the front face
   dark too: no light hairline along its rounded bottom corners. */
.leadership-front {
  background: #100b2b;
}

@media (hover: hover) {
  /* Fixed-height front: the dark panel is only as tall as its own name and
     role and sits at the bottom; the photo fills everything above it. On
     hover the panel rises as the description opens and the photo gives up
     that room, so the card never changes size. */
  .leadership-front {
    height: var(--lead-h);
  }

  .leadership-front .leadership-photo {
    flex: 1 1 0;
    height: auto;
    min-height: 0;
  }

  .leadership-front .leadership-body {
    flex: 0 0 auto;
  }
}

@media (hover: none) {
  .leadership-card:hover,
  .leadership-card:has(:focus-visible) {
    transform: none;
  }

  .leadership-body {
    flex-grow: 1;
  }

  .leadership-body p {
    max-height: none;
    margin-top: 10px;
    opacity: 1;
    visibility: visible;
  }
}

/* Card opener: a button whose ::after stretches over the whole card, so
   clicking anywhere on it opens the profile pop-up; it is also the card's
   one keyboard target. */
.leadership-flip {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid #9a41ff40;
  background: #ffffffc8;
  color: #8c21ff;
  font: 400 23px/1 "Manrope";
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}

.leadership-flip::after {
  content: "";
  position: absolute;
  inset: -12px -14px auto auto;
  width: 9999px;
  height: 9999px;
}

.leadership-flip:hover {
  background: var(--purple);
  color: #fff;
}

/* No visible "+" — the button stays (stretched over the whole front, so
   any click flips the card, and it is the keyboard target), but it draws
   nothing; keyboard focus outlines the card face instead. */
.leadership-flip,
.leadership-flip:hover {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.leadership-flip > span {
  display: none;
}

.leadership-flip:focus-visible {
  outline: none;
}

.leadership-card:has(.leadership-flip:focus-visible) .leadership-front {
  outline: 2px solid var(--purple);
  outline-offset: -3px;
}

.leadership-flip:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 3px;
}

/* ── Leader profile pop-up (Team page) ─────────────────────────
   Grows out of the clicked card (script.js) over a dimmed, blurred
   backdrop. Photo, name and role on the left; profile text on the right,
   scrolling on its own. Clicking the panel swaps the text between the
   current "About" and the refined profile. */
html.lead-modal-open {
  overflow: hidden;
  scrollbar-gutter: stable;
}

.lead-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
}

.lead-modal[hidden] { display: none; }
.lead-modal.lead-closing { pointer-events: none; }

.lead-modal-backdrop {
  position: absolute;
  inset: 0;
  background: #06041299;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.lead-preview {
  position: relative;
  width: min(980px, 100%);
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  align-items: start;
  gap: 36px;
  padding: 34px 36px;
  border-radius: 24px;
  border: 1px solid #9a41ff59;
  background: linear-gradient(180deg, #100b2b, #160d3a);
  box-shadow: 0 40px 90px #0009, 0 0 40px #7929ff2e;
  color: #fff;
  cursor: pointer;
  outline: none;
}

.lead-preview:focus-visible {
  outline: 2px solid #c9a8ff;
  outline-offset: -2px;
}

.lead-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid #9a41ff59;
  background: #ffffff0d;
  color: #e9defc;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.lead-close:hover { background: var(--purple); border-color: var(--purple); color: #fff; }

.lead-pv-side {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.lead-pv-photo {
  aspect-ratio: 4 / 4.4;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(155deg, #efe6ff, #f8f3ff);
}

.lead-pv-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.lead-pv-side h3 {
  margin: 22px 0 6px;
  font: 700 24px/1.25 "Manrope";
  color: #fff;
}

.lead-pv-role {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.5;
  color: #c9a8ff;
}

.lead-pv-main {
  display: flex;
  flex-direction: column;
  min-height: 0;
  /* Never taller than the panel's own limit (screen height minus the
     modal and panel padding): longer profiles scroll inside the text. */
  max-height: calc(100vh - 48px - 68px);
  max-height: calc(100dvh - 48px - 68px);
  padding-top: 8px;
}

.lead-pv-text {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 14px;
  scrollbar-width: thin;
  scrollbar-color: #7a4bd0 transparent;
}

.lead-pv-text h4 {
  margin: 22px 0 8px;
  font: 800 12px "Manrope";
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #c9a8ff;
}

.lead-pv-text h4:first-child { margin-top: 0; }

/* View tabs — same look as the Training page's Courses / Certifications. */
.lead-pv-tabs {
  display: flex;
  gap: 30px;
  margin: 0 40px 24px 0;
  border-bottom: 1px solid #ffffff1a;
}

.lead-pv-tabs [role=tab] {
  margin-bottom: -1px;
  padding: 0 0 12px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  font: 600 15px "Manrope";
  color: #bfb4d8;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease;
}

.lead-pv-tabs [role=tab]:hover { color: #fff; }

.lead-pv-tabs [role=tab][aria-selected="true"] {
  color: #fff;
  border-bottom-color: #b14dff;
}

.lead-pv-tabs [role=tab]:focus-visible {
  outline: 2px solid #c9a8ff;
  outline-offset: 4px;
  border-radius: 2px;
}

/* "In their own words": the person's statement as a large quote, centred
   in the space beside the photo. */
.lead-preview.is-words .lead-pv-main { align-self: stretch; }
.lead-preview.is-words .lead-pv-text { display: flex; flex-direction: column; justify-content: center; }

.lead-quote {
  position: relative;
  margin: 0;
  padding-top: 38px;
}

.lead-quote::before {
  content: "\201C";
  position: absolute;
  top: -26px;
  left: -6px;
  font: 700 120px/1 Georgia, "Times New Roman", serif;
  color: #9a6dff;
  opacity: .3;
}

.lead-pv-text .lead-quote p {
  font-size: 19px;
  line-height: 1.75;
  color: #f3eefb;
}

.lead-quote footer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  font: 600 14px "Manrope";
  color: #c9a8ff;
}

.lead-quote footer::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

.lead-pv-text p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.75;
  color: #e6e0f3;
}

.lead-pv-text ul {
  margin: 0;
  padding-left: 20px;
  color: #e6e0f3;
  font-size: 15px;
  line-height: 1.7;
}

.lead-pv-text li::marker { color: #a06dff; }

.lead-pv-text ul.leader-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  list-style: none;
}

.lead-pv-text .leader-chips li {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid #9a41ff59;
  background: #8c35ff1a;
  font-size: 13px;
  line-height: 1.4;
  color: #eadfff;
}

.lead-close:focus-visible {
  outline: 2px solid #c9a8ff;
  outline-offset: 2px;
}

/* Laptop / desktop: a wider, tighter panel so every profile fits on
   screen without scrolling (the text only scrolls on very short windows). */
@media (min-width: 761px) {
  .lead-preview {
    width: min(1120px, 100%);
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 32px;
    padding: 26px 32px;
  }
  .lead-pv-main { max-height: calc(100vh - 48px - 52px); max-height: calc(100dvh - 48px - 52px); padding-top: 2px; }
  .lead-pv-photo { aspect-ratio: 1 / 1.05; }
  .lead-pv-side h3 { margin-top: 18px; font-size: 22px; }
  .lead-pv-tabs { margin-bottom: 16px; }
  .lead-pv-tabs [role=tab] { padding-bottom: 9px; font-size: 14.5px; }
  .lead-pv-text h4 { margin: 15px 0 6px; font-size: 11.5px; }
  .lead-pv-text p { font-size: 14.5px; line-height: 1.6; }
  .lead-pv-text ul { font-size: 14.5px; line-height: 1.55; }
  .lead-pv-text ul.leader-chips { gap: 6px; }
  .lead-pv-text .leader-chips li { padding: 3px 10px; font-size: 12.5px; }
  .lead-quote { padding-top: 30px; }
  .lead-quote::before { font-size: 104px; top: -22px; }
  .lead-pv-text .lead-quote p { font-size: 17.5px; line-height: 1.7; }
  .lead-quote footer { margin-top: 16px; }
}

/* Tablet / phone: one column; the whole panel scrolls. */
@media (max-width: 760px) {
  .lead-modal { padding: 12px; }
  .lead-preview {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 22px 20px;
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
  }
  .lead-pv-side { display: grid; grid-template-columns: 112px minmax(0, 1fr); column-gap: 16px; align-items: center; padding-right: 40px; }
  .lead-pv-photo { grid-row: 1 / 3; aspect-ratio: 1; border-radius: 14px; }
  .lead-pv-side h3 { margin: 0 0 4px; font-size: 20px; align-self: end; }
  .lead-pv-role { align-self: start; font-size: 12.5px; }
  .lead-pv-main { max-height: none; }
  .lead-pv-text { overflow: visible; padding-right: 0; }
  .lead-pv-tabs { gap: 22px; margin-right: 0; }
  .lead-pv-tabs [role=tab] { font-size: 14px; }
  .lead-pv-text .lead-quote p { font-size: 17px; }
  .lead-quote::before { font-size: 96px; top: -20px; }
}

/* Intro paragraph of the About page's approach section. */
.approach-intro {
  max-width: 640px;
  margin: 20px 0 0;
  color: #f3eefb;
  font-size: 17.5px;
  font-weight: 500;
  line-height: 1.65;
}

/* ════════════════════════════════════════════════════════════
   TRAINING — COURSE CATALOGUE
   A two-column grid of course cards (an odd last card spans the full
   width); "Explore Course" opens that course in a pop-up that grows out
   of its card. Cards alternate deep-purple / deep-navy themes.
════════════════════════════════════════════════════════════ */
/* 1200px design width for the Training content (this page only;
   the shared 1400px container elsewhere is untouched). */
.training-page main .section {
  width: min(1200px, calc(100% - clamp(40px, 8vw, 96px)));
}

/* The hero's 56px bottom padding already separates it from the tab panels
   below, so their own top padding is trimmed to keep the gap under the
   Courses / Certifications switch about 48px. */
.training-page #programmes,
.training-page #certifications {
  padding-top: 18px;
}

.tr-cat-intro {
  max-width: 640px;
  margin: 20px 0 0;
  color: #ddd5e8;
  font-size: 16px;
  line-height: 1.65;
}

/* Theme variables. training.js sets data-theme on each card (purple,
   navy, navy, purple, purple …) and gives the preview the same theme via a
   class. --tr-label is the small uppercase heading colour: brighter than
   the accent on purple, where #A82BFF is too dim to read. */
.tr-course-card[data-theme="purple"],
.tr-preview.tr-theme-purple {
  --tr-bg: linear-gradient(180deg, #1B1038, #291052);
  --tr-bg-top: #1B1038;
  --tr-accent: #A82BFF;
  --tr-label: #DDA0FF;
  --tr-text: #D8D0EA;
  --tr-border: #A82BFF59;
  --tr-glow: #A82BFF2E;
}

.tr-course-card[data-theme="navy"],
.tr-preview.tr-theme-navy {
  --tr-bg: linear-gradient(180deg, #0C1D3D, #102C59);
  --tr-bg-top: #0C1D3D;
  --tr-accent: #16C4F4;
  --tr-label: #16C4F4;
  --tr-text: #D4E8F5;
  --tr-border: #16C4F459;
  --tr-glow: #16C4F42E;
}

.tr-course-list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 42px;
  align-items: start;
}

.tr-card-wide {
  grid-column: 1 / -1;
}

.tr-course-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--tr-border);
  border-radius: 22px;
  background: var(--tr-bg);
  color: var(--tr-text);
  box-shadow: 0 0 28px var(--tr-glow), 0 15px 35px #0004;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease, opacity .3s ease;
}

.tr-course-card:hover {
  transform: translateY(-3px);
  border-color: var(--tr-accent);
  box-shadow: 0 0 36px var(--tr-glow), 0 22px 45px #0005;
}

.tr-card-inner {
  display: flex;
  flex-direction: column;
}

/* Course artwork — a slim 16:7 band across the top of each card. */
.tr-card-media {
  aspect-ratio: 16 / 7;
  overflow: hidden;
  border-bottom: 1px solid var(--tr-border);
  background: #0a0718;
}

.tr-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tr-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px;
}

.tr-tag {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--tr-border);
  color: var(--tr-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.tr-card-title {
  margin: 12px 0 0;
  min-height: 2.2em;
  color: #fff;
  font: 700 clamp(20px, 1rem + .5vw, 23px)/1.25 "Manrope";
}

.tr-card-desc {
  margin: 8px 0 0;
  max-width: 56ch;
  color: var(--tr-text);
  font-size: 15px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tr-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.tr-pill {
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--tr-border);
  color: var(--tr-text);
  font-size: 12px;
  font-weight: 600;
}

.tr-explore {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 0;
  background: linear-gradient(105deg, #6d2cff, #d62bff);
  box-shadow: 0 0 20px #922aff40;
  color: #fff;
  font: 600 14px "Manrope";
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}

.tr-explore:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 28px #922aff70;
}

.tr-explore:focus-visible {
  outline: 2px solid var(--tr-accent);
  outline-offset: 3px;
}

.tr-arrow {
  transition: transform .2s ease;
}

.tr-explore:hover .tr-arrow {
  transform: translateX(3px);
}

.tr-explore[aria-expanded="true"] .tr-arrow {
  transform: rotate(90deg);
}

/* Fifth card — full-width feature: artwork beside the text. */
.tr-card-wide .tr-card-inner {
  flex-direction: row;
  align-items: stretch;
}

.tr-card-wide .tr-card-media {
  aspect-ratio: auto;
  width: 42%;
  max-width: 440px;
  border-bottom: 0;
  border-right: 1px solid var(--tr-border);
  /* This box is taller than the 16:7 illustrations, so the image is shown
     whole (not cropped at the sides) and its top and bottom edges fade into
     a band matching the artwork's own dark purple. */
  display: flex;
  align-items: center;
  background: linear-gradient(#160b31, #1b0e3c);
}

.tr-card-wide .tr-card-media img {
  height: auto;
  aspect-ratio: 16 / 7;
  object-fit: contain;
  -webkit-mask-image: linear-gradient(transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(transparent, #000 10%, #000 90%, transparent);
}

.tr-card-wide .tr-card-body {
  padding: clamp(20px, 2.4vw, 32px);
  justify-content: center;
}

.tr-card-wide .tr-card-title {
  min-height: 0;
  font-size: clamp(22px, 1rem + .8vw, 26px);
}

.tr-card-wide .tr-card-desc {
  -webkit-line-clamp: 3;
}

/* ── Course overview pop-up ────────────────────────────────
   training.js moves it in front of the page, centred, over a dimmed
   backdrop. The page behind stops scrolling while it is open
   (scrollbar-gutter keeps the layout from shifting sideways). */
html.tr-modal-open {
  overflow: hidden;
  scrollbar-gutter: stable;
}

.tr-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
}

.tr-modal[hidden] {
  display: none;
}

.tr-modal.tr-closing {
  pointer-events: none;
}

.tr-modal-backdrop {
  position: absolute;
  inset: 0;
  /* Avoid a full-screen blur pass while dragging the syllabus scrollbar. */
  background: #060412cc;
}

.tr-preview {
  position: relative;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  min-height: 0;
  width: min(1180px, 100%);
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  padding: 0;
  border-radius: 22px;
  border: 1px solid var(--tr-border, #a06dff59);
  border-top: 3px solid var(--tr-accent, #A82BFF);
  background: var(--tr-bg, #1B1038);
  color: var(--tr-text, #D8D0EA);
  box-shadow: 0 0 60px var(--tr-glow, #A82BFF2E), 0 30px 80px #000a;
  overflow: hidden;
}

.tr-pv-content {
  min-height: 0;
  padding: 0 30px 28px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  contain: layout paint;
}

.tr-preview:focus {
  outline: none;
}

/* Keep Close outside the scroll layer so dragging only repaints the content. */
.tr-pv-head {
  position: relative;
  flex-shrink: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  padding: 24px 30px 12px;
  background: var(--tr-bg-top, #1B1038);
}

.tr-pv-eyebrow,
.tr-sec-label,
.tr-prac-card h5 {
  margin: 0;
  color: var(--tr-label, var(--tr-accent));
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.tr-sec-label {
  margin: 0 0 14px;
}

.tr-pv-close,
.tr-expand-all,
.tr-syl-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--tr-border);
  background: transparent;
  color: var(--tr-text);
  font: 600 13px "Manrope";
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.tr-pv-close:hover,
.tr-expand-all:hover,
.tr-syl-toggle:hover {
  background: var(--tr-accent);
  border-color: var(--tr-accent);
  color: #0b0818;
}

.tr-pv-close:focus-visible,
.tr-expand-all:focus-visible,
.tr-syl-toggle:focus-visible,
.tr-mod > summary:focus-visible {
  outline: 2px solid var(--tr-accent);
  outline-offset: 2px;
}

.tr-pv-overview {
  margin: 4px 0 0;
  max-width: 72ch;
  color: #fff;
  font-size: 15px;
  line-height: 1.65;
}

.tr-pv-sec {
  margin-top: 26px;
}

.tr-outcomes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px 22px;
}

.tr-outcomes li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #fff;
  font-size: 14.5px;
  line-height: 1.5;
}

.tr-check {
  flex: none;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  border: 1.5px solid var(--tr-accent);
  color: var(--tr-accent);
}

.tr-syl-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.tr-syl-head .tr-sec-label {
  margin: 0;
}

.tr-syl-total {
  color: var(--tr-text);
  font-size: 13px;
}

.tr-syl-summary {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.tr-toc-item,
.tr-mod,
.tr-prac-card {
  border-radius: 12px;
  border: 1px solid var(--tr-border);
  background: #ffffff08;
}

.tr-toc-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
}

.tr-toc-num,
.tr-mod-num {
  flex: none;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  border: 1.5px solid var(--tr-accent);
  color: var(--tr-accent);
  font: 700 12px "Manrope";
}

.tr-toc-name,
.tr-mod-name {
  flex: 1;
  min-width: 0;
  color: #fff;
  font: 600 14.5px/1.35 "Manrope";
}

.tr-toc-count,
.tr-mod-count {
  flex: none;
  white-space: nowrap;
  color: var(--tr-text);
  font-size: 12.5px;
}

.tr-syl-toggle {
  margin-top: 16px;
}

.tr-syl-toggle-chev {
  transition: transform .22s ease;
}

.tr-syl-toggle[aria-expanded="true"] .tr-syl-toggle-chev {
  transform: rotate(180deg);
}

.tr-syl-full {
  margin-top: 20px;
}

.tr-expand-bar {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 12px;
}

.tr-modules {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tr-mod {
  overflow: hidden;
  scroll-margin-top: 112px;
}

.tr-mod[open] {
  border-color: var(--tr-accent);
}

.tr-mod > summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  list-style: none;
  cursor: pointer;
  user-select: none;
}

.tr-mod > summary::-webkit-details-marker {
  display: none;
}

.tr-mod-chev {
  flex: none;
  color: var(--tr-accent);
  transition: transform .2s ease;
}

.tr-mod[open] .tr-mod-chev {
  transform: rotate(180deg);
}

.tr-mod-body {
  padding: 0 16px 14px 52px;
}

.tr-topics {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 72ch;
}

.tr-topics > li {
  position: relative;
  padding: 7px 0 7px 18px;
  border-top: 1px solid #ffffff12;
  color: var(--tr-text);
  font-size: 14px;
  line-height: 1.55;
}

.tr-topics > li:first-child {
  border-top: 0;
}

.tr-topics > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--tr-accent);
}

.tr-topics .tr-lead {
  color: #fff;
  font-weight: 600;
}

.tr-sub {
  list-style: none;
  margin: 6px 0 2px;
  padding-left: 4px;
}

.tr-sub li {
  position: relative;
  padding: 3px 0 3px 16px;
  color: var(--tr-text);
  font-size: 13.5px;
  line-height: 1.5;
}

.tr-sub li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 11px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--tr-accent);
  opacity: .7;
}

.tr-practical {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--tr-border);
}

/* Fixed column count so centred / wide cards land predictably: two
   columns once the practical area itself is 480px+ wide, one below. Sized
   on the panel, not the viewport, because a preview in the opposite card
   column is only ~300-440px wide on tablets. */
.tr-practical {
  container-type: inline-size;
}

.tr-prac-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@container (min-width: 480px) {
  .tr-prac-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.tr-prac-card {
  padding: 14px 16px;
  background: #00000026;
}

.tr-prac-card h5 {
  margin: 0 0 8px;
  letter-spacing: .08em;
}

.tr-prac-card p {
  margin: 0;
  color: var(--tr-text);
  font-size: 14px;
  line-height: 1.6;
}

.tr-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tr-tools span {
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--tr-border);
  color: var(--tr-text);
  font-size: 12px;
  font-weight: 600;
}

.tr-prac-wide {
  grid-column: 1 / -1;
}

.tr-prac-center {
  grid-column: 1 / -1;
}

@container (min-width: 480px) {
  .tr-prac-center { justify-self: center; width: calc(50% - 6px); }
}

.tr-prac-sec {
  margin-top: 14px;
}

.tr-prac-sec h6 {
  margin: 0 0 6px;
  color: var(--tr-label, var(--tr-accent));
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.tr-prac-sec p {
  margin: 0;
  color: var(--tr-text);
  font-size: 14px;
  line-height: 1.6;
}

.tr-prac-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tr-prac-list li {
  position: relative;
  padding: 3px 0 3px 16px;
  color: var(--tr-text);
  font-size: 14px;
  line-height: 1.5;
}

.tr-prac-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--tr-accent);
}

.tr-prac-card p + .tr-prac-list {
  margin-top: 8px;
}

.tr-mod-desc {
  margin: 0 0 10px;
  max-width: 72ch;
  color: var(--tr-text);
  font-size: 14px;
  line-height: 1.6;
}

.tr-mod-desc b {
  color: #fff;
  font-weight: 600;
}

.tr-mod-tag {
  flex: none;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid var(--tr-border);
  color: var(--tr-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* Courses / Certifications switch under the Training hero CTA — styled
   like the header nav items, with the same active underline. */
.tr-tabs {
  display: flex;
  gap: 36px;
  margin-top: 30px;
}

.tr-tab {
  position: relative;
  padding: 4px 0;
  border: 0;
  background: none;
  color: #d8d0e4;
  font: 400 15px "Manrope";
  cursor: pointer;
  transition: color .2s;
}

.tr-tab:hover {
  color: #fff;
}

.tr-tab[aria-selected="true"] {
  color: #fff;
}

.tr-tab[aria-selected="true"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 2px;
  background: #d82cff;
  box-shadow: 0 0 12px #d82cff;
}

.tr-tab:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Certification comparison table. */
.tr-compare {
  margin-top: 48px;
}

.tr-compare h3 {
  margin: 0 0 16px;
  font: 700 24px "Manrope";
}

/* "SCROLL RIGHT" hint, same look as the hero's "SCROLL TO EXPLORE". Only
   shown while the table is wider than the screen (script.js adds
   .can-scroll), and fades once the last column is in view. */
.tr-scroll-hint {
  display: none;
  margin: -4px 0 12px;
  font-size: 12px;
  letter-spacing: .27em;
  color: #b6abba;
  transition: opacity .3s ease;
}

.tr-compare.can-scroll .tr-scroll-hint { display: block; }
.tr-compare.at-end .tr-scroll-hint { opacity: .35; }

.tr-compare-scroll {
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid #16c4f459;
  background: linear-gradient(180deg, #0C1D3D, #102C59);
}

.tr-compare-scroll:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.tr-compare table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.5;
}

.tr-compare th,
.tr-compare td {
  padding: 13px 16px;
  text-align: left;
  vertical-align: top;
  border-top: 1px solid #ffffff14;
}

.tr-compare thead th {
  border-top: 0;
  color: #fff;
  font-size: 15px;
  background: #ffffff0a;
}

.tr-compare tbody th {
  width: 150px;
  color: #7FDCFF;
  font-weight: 700;
}

.tr-compare td {
  color: #d8d0ea;
}

.tr-compare-path {
  margin: 18px 0 0;
  color: #d8d0ea;
  font-size: 15px;
  line-height: 1.6;
}

.tr-compare-path strong {
  color: #fff;
}

.tr-compare-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.tr-note {
  margin: 14px 0 0;
  color: var(--tr-text);
  font-size: 13px;
  font-style: italic;
  line-height: 1.6;
}

.tr-pv-cta {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--tr-border);
}

@media (min-width: 700px) {
  .tr-outcomes,
  .tr-syl-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .tr-course-list   { grid-template-columns: 1fr; gap: 16px; }
  .tr-card-wide .tr-card-inner { flex-direction: column; }
  .tr-card-wide .tr-card-media { width: 100%; max-width: none; aspect-ratio: 16 / 7; border-right: 0; border-bottom: 1px solid var(--tr-border); }
  .tr-card-wide .tr-card-media img { height: 100%; -webkit-mask-image: none; mask-image: none; }
  .tr-modal         { padding: 12px; }
  .tr-preview       { max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); }
  .tr-pv-content    { padding: 0 20px 20px; }
  .tr-pv-head       { padding: 18px 20px 10px; }
  .tr-mod-body      { padding: 0 14px 14px 16px; }
}

@media (max-width: 420px) {
  .tr-mod-count,
  .tr-toc-count     { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .tr-course-card, .tr-preview, .tr-explore, .tr-arrow, .tr-mod-chev,
  .tr-syl-toggle-chev, .tr-pv-close { transition: none !important; }
}

/* ════════════════════════════════════════════════════════════
   CTA BANNER
════════════════════════════════════════════════════════════ */
.next-phase {
  min-height: 96px;
  margin-top: 22px;
  margin-bottom: 26px;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  overflow: hidden;
  border: 1px solid #c076ff55;
  border-radius: 20px;
  background: radial-gradient(circle at 12% -10%, #ffffff20, transparent 45%), radial-gradient(circle at 78% 120%, #ff5ce455, transparent 40%), linear-gradient(120deg, #4c1ba8, #7a1fb8 55%, #2a0e6e);
}

/* Decorative circle on the right */
.next-phase::after {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  right: -180px;
  bottom: -360px;
  border: 1px solid #ffffff44;
  border-radius: 50%;
  box-shadow: 0 0 60px #ffffff22;
  pointer-events: none;
}

.next-phase::before {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  left: -140px;
  top: -180px;
  border: 1px solid #ffffff2c;
  border-radius: 50%;
  pointer-events: none;
}

.next-phase h2 {
  font: 700 32px "Manrope";
  margin: 0 0 8px;
  position: relative;
}

.next-phase p:not(.eyebrow) {
  color: #ecdfff;
  font-size: 13.5px;
  margin: 0;
  max-width: 460px;
  position: relative;
}

.next-phase .primary-btn {
  position: relative;
  background: #fff;
  color: #5915b8;
  box-shadow: 0 0 30px #ffffff55;
}

.next-phase .primary-btn:hover {
  box-shadow: 0 10px 34px #ffffffaa;
}

/* Reuses the hero's ridge + glowing node motif, scaled down, to tie the page together */
.cta-scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.cta-ridge {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  width: 100%;
  height: 100px;
  opacity: .8;
}

.cta-node {
  position: absolute;
  right: 130px;
  bottom: 38px;
  width: 16px;
  height: 16px;
  transform: rotate(45deg);
  background: linear-gradient(145deg, #fff, var(--cyan));
  border-radius: 4px;
  animation: nodeGlow 3s ease-in-out infinite;
}

/* ════════════════════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════════════════════ */
.footer {
  min-height: 125px;
  padding: 25px max(48px, calc((100vw - 1400px) / 2));
  display: grid;
  grid-template-columns: 310px 1fr auto auto;
  gap: 30px;
  align-items: center;
  border-top: 1px solid #ffffff16;
  background: #07040fe8;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 22px;
}

.footer-brand img {
  width: 47px;
}

.footer .brand {
  font-size: 17px;
}

.footer .brand span {
  font-size: 12px;
}

.footer nav {
  display: flex;
  justify-content: center;
  gap: 34px;
}

.footer nav a,
.footer small {
  color: #bcb1c8;
  font-size: 13px;
}

.socials a {
  color: #bcb1c8;
  font-size: 11px;
}

.footer nav a:hover {
  color: #fff;
}

.footer small a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer small a:hover { color: #fff; }

.socials a:hover,
.socials a:focus-visible { color: #fff; border-color: #ffffff80; }

/* Privacy policy and 404 pages: one comfortable reading column. */
.legal-page { padding-top: 54px; max-width: 760px; }
.legal-page h1 { margin-bottom: 10px; }
.legal-page h2 { margin: 36px 0 10px; font: 700 22px/1.3 "Manrope"; letter-spacing: -.01em; }
.legal-page p { margin: 0 0 14px; color: #e6e0f3; font-size: 16px; line-height: 1.75; }
.legal-page a:not(.primary-btn) { color: #d4b6ff; text-decoration: underline; text-underline-offset: 3px; }
.legal-updated { color: #b9aed0 !important; font-size: 14px !important; }
.notfound { min-height: calc(100vh - 330px); min-height: calc(100dvh - 330px); padding-bottom: 80px; }
.notfound-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 26px; }
.legal-page .notfound-link { font-weight: 600; }

/* Training: trademark line above the exam-source note. */
.tr-tm-note { margin-top: 14px; }

.socials {
  display: flex;
  gap: 12px;
}

.socials a {
  width: 22px;
  height: 22px;
  border: 1px solid #fff3;
  border-radius: 5px;
  display: grid;
  place-items: center;
  transition: border-color .2s, color .2s;
}

.socials a:hover {
  border-color: #d82cff;
  color: #d82cff;
}

/* ════════════════════════════════════════════════════════════
   REDUCED MOTION
════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .bx3d-node-pulse, .bx3d-card-highlight { animation: none !important; }
  .hero-visual, .hero-node, .cta-node, .demo-btn, .primary-btn, .question-card, .feature-grid article, .leadership-card, .leadership-card-inner, .leadership-face, .leadership-body h3, .leadership-body p, .leadership-photo svg, .leadership-photo img, .stats article, .tr-course-card, .tr-preview, .tr-mod-chev, .tr-explore {
    animation: none !important;
    transition: none !important;
  }
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE — 1100px
════════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  /* Below this width the logo + right-side cluster leave too little room
     for the absolutely-centered nav (which centers on the whole header,
     ignoring how wide its siblings are) — it was overlapping the language
     trigger, worse once .scrolled narrows the pill further. Switching it
     back into normal flex flow here lets it share the actual remaining
     space instead of overflowing into it. */
  .header-center         { position: static; left: auto; top: auto; transform: none; flex: 1; min-width: 0; }
  .nav                   { gap: 20px; }
  .hero-visual           { right: -230px; opacity: .5; }
  .feature-grid           { grid-template-columns: 1fr 1fr; }
  .leadership-grid        { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .belief-grid           { grid-template-columns: 1fr; }
  
  .footer                { grid-template-columns: 1fr 1fr; }
  .footer small          { grid-column: 1 / -1; text-align: center; }
  /* Links may wrap: unwrapped they pushed the page sideways at ~560-620px. */
  .footer nav            { flex-wrap: wrap; min-width: 0; row-gap: 10px; }
  
  .dropdown-menu.mega-v2,
  .dropdown-menu.mega-v2.mega-v2-training { width: 460px; grid-template-columns: 1fr; }
  .mega-v2-feature       { grid-row: 1; min-height: 140px; }
  .mega-v2-feature > .mega-art { display: none; }
  .mega-v2-feature       { min-height: 0; padding: 18px 20px; }
  .dropdown-menu.mega-v2 { max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #c9b3f5 transparent; }
  .mega-v2-links         { grid-row: 2; }
  .founder-panel         { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .demo-grid              { grid-template-columns: 1fr; }
  .demo-info              { padding-left: 0; }
  .demo-card               { max-width: 520px; }
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE — 800px
════════════════════════════════════════════════════════════ */
@media (max-width: 800px) {
  .section               { width: calc(100% - 40px); }
  .site-header           { width: calc(100% - 30px); min-height: 90px; padding: 0; }
  .hero-bleed            { margin-top: -90px; padding-top: 90px; }
  .site-header.scrolled  { width: calc(100% - 24px); margin-top: 10px; margin-bottom: 16px; padding: 6px 16px; } /* 90 = 10 + 64 + 16, see .site-header.scrolled */
  .header-center         { gap: 0; }
  .header-center .brand  { font-size: 17px; }
  .header-center .brand span { font-size: 12px; }

  .nav { display: none; }

  .header-actions        { margin-left: auto; }

  .mobile-menu-btn {
    display: grid;
    place-items: center;
    flex: none;
    padding: 0;
    -webkit-appearance: none;
    appearance: none;
    border: 1px solid #fff2;
    background: #140b24;
    color: #fff;
    border-radius: 8px;
    margin-left: 12px;
    width: 38px;
    height: 38px;
    cursor: pointer;
  }

  .mobile-menu-btn svg { display: block; }

  .mobile-panel {
    position: fixed;
    top: 78px;
    left: 16px;
    right: 16px;
    z-index: 60;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: #0c0619fa;
    border: 1px solid #9e39ff55;
    border-radius: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: .2s;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
  }

  .mobile-panel.open     { opacity: 1; visibility: visible; transform: none; }
  .mobile-panel hr       { width: 100%; border: 0; border-top: 1px solid #fff1; margin: 8px 0; }
  .mobile-panel > a      { padding: 10px 4px; }
  .mobile-panel .primary-btn,
  .mobile-panel .demo-btn { margin-top: 6px; }

  .mobile-group summary {
    padding: 10px 4px;
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .mobile-group summary::-webkit-details-marker { display: none; }
  .mobile-group[open] summary .chev { transform: rotate(180deg); }
  .mobile-group .sub-links {
    display: flex;
    flex-direction: column;
    padding: 4px 4px 10px 14px;
    gap: 4px;
  }
  .mobile-group .sub-links a { color: #bfb4cc; font-size: 13px; padding: 6px 0; }

  .hero                  { padding-top: 55px; }
  .hero h1               { font-size: 48px; }
  .hero-text             { width: 100%; }
  .hero-copy             { margin-bottom: 64px; }
  .hero-visual           { right: -330px; top: 260px; opacity: .2; }
  .benefits              { flex-wrap: wrap; }
  .what-heading,
  .impact                { grid-template-columns: 1fr; }
  .question-grid,
  .belief-grid            { grid-template-columns: 1fr; }
  .stats                 { grid-template-columns: repeat(3, 1fr); }
  
  .demo-row-2             { grid-template-columns: 1fr; }
  .threat-stats           { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .demo-points > div     { grid-template-columns: 128px minmax(0, 1fr); column-gap: 14px; }

  /* Narrow phones: the label column left the description ~5 words wide. */
  @media (max-width: 480px) {
    .demo-points > div   { grid-template-columns: 1fr; row-gap: 6px; }
  }
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE — 560px
════════════════════════════════════════════════════════════ */
@media (max-width: 560px) {
  .section               { width: calc(100% - 28px); }
  .left-logo img         { width: 58px; }
  .header-center .brand  { font-size: 14px; }
  .header-actions .demo-btn { display: none; }

  .hero h1               { font-size: 40px; }
  .benefits              { display: grid; grid-template-columns: 1fr 1fr; }
  .benefits > i          { display: none; }
  .hero-actions          { flex-wrap: wrap; }
  .hero-visual           { display: none; }
  .hero-copy             { margin-bottom: 56px; }
  /* The three-phrase hero pill: tighter type so it stays on one line on
     phones (it can still wrap on the very narrowest screens). */
  .hero .eyebrow         { display: inline-block; border-radius: 18px; font-size: 11px; letter-spacing: .12em; line-height: 1.9; padding: 6px 13px; }
  .hero .eyebrow-dot     { vertical-align: middle; margin: 0 .5em 0 .4em; }

  .what-heading h2,
  .content-section h1,
  .content-section h2,
  .impact h2 { font-size: 36px; }

  /* Single column: the old icon/number column these rules made room for
     was removed from the markup, so content was landing in that narrow
     leftover column and getting crushed. */
  .question-card         { grid-template-columns: 1fr; padding: 25px 20px; }
  
  .feature-grid           { grid-template-columns: 1fr; }
  .leadership-grid        { grid-template-columns: 1fr; gap: 20px; }
  .leadership-card        { --lead-h: 476px; }
  .leadership-photo       { height: 330px; }
  .threat-stats           { grid-template-columns: 1fr; }
  .next-phase            { padding: 30px 24px; flex-direction: column; align-items: flex-start; }
  .statement-banner      { padding: 50px 24px; }
  .footer                { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .footer-brand          { flex-direction: column; gap: 10px; }
  .footer nav            { flex-wrap: wrap; }
  .founder-panel         { padding: 28px 22px; }
}

/* ════════════════════════════════════════════════════════════
   TABLET / PHONE HERO — the 3D works as on desktop
   Below 1100px there is no room beside the copy, so the sculpture moves
   under it, at full strength, with its Solutions nodes live and clickable
   (these override the earlier faded / hidden rules at 1100, 800 and 560).
════════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .hero                  { flex-direction: column; align-items: stretch; }
  .hero-copy             { margin-bottom: 0; }
  .hero-visual           { display: block; position: relative; right: auto; top: auto;
                           width: min(100%, 620px); height: auto; aspect-ratio: 1;
                           margin: 12px auto 0; opacity: 1; pointer-events: auto; }
  .bx3d-nodes-overlay    { display: block; }
}

@media (max-width: 560px) {
  /* room between "Scroll to explore" and the top node labels of the 3D scene */
  .hero-visual           { width: 100%; margin-top: 36px; }
}
