/* ==========================================================================
   HavenDrax — site.css
   Brand: deep blue #0F4C81 · azure #1EA8E0 · charcoal #3A3D41 · slate #95A5A6
   Motif: the slanted parallelogram bars of the HavenDrax mark (skewY -30deg)
   ========================================================================== */

:root {
  --navy-950: #06131F;
  --navy-900: #0A1D30;
  --navy-800: #0E2A45;
  --navy-700: #13395D;
  --blue: #0F4C81;
  --blue-600: #1366A8;
  --wordmark-blue: #1679C0;
  --azure: #1EA8E0;
  --azure-300: #7CCFF0;
  --azure-50: #E8F6FC;
  --charcoal: #3A3D41;
  --slate: #95A5A6;

  --ink: #0E1620;
  --ink-2: #343F4B;
  --ink-3: #5B6774;
  --line: #E1E6EC;
  --line-strong: #C7D0DA;
  --line-dark: rgba(255, 255, 255, .12);
  --paper: #FFFFFF;
  --paper-2: #F4F6F9;

  --font-display: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-word: "Montserrat", "Inter Tight", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;

  --container: 1280px;
  --gutter: clamp(20px, 4vw, 48px);
  --header-h: 76px;
  --section-y: clamp(72px, 9vw, 136px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow-lg: 0 30px 60px -20px rgba(10, 29, 48, .25);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 72px);
  color-scheme: light;
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
html.menu-open { overflow: hidden; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.02em;
  color: var(--ink);
  text-wrap: balance;
}
main:focus { outline: none; }
:focus-visible { outline: 2px solid var(--azure); outline-offset: 3px; }

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

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--navy-900); color: #fff; padding: 12px 18px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Type ---------- */
.display { font-size: clamp(2.75rem, 6vw, 5.25rem); line-height: 1; letter-spacing: -.038em; }
.h1 { font-size: clamp(2.4rem, 4.8vw, 4.25rem); line-height: 1.03; letter-spacing: -.033em; }
.h2 { font-size: clamp(2rem, 3.4vw, 3.05rem); letter-spacing: -.028em; }
.h3 { font-size: clamp(1.35rem, 1.8vw, 1.65rem); letter-spacing: -.018em; }
.lede { font-size: clamp(1.125rem, 1.45vw, 1.3rem); line-height: 1.55; color: var(--ink-3); }
.serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .75em;
  margin: 0 0 1.4rem;
  font-family: var(--font-display); font-size: .78rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--blue);
}
.eyebrow::before {
  content: ""; flex: none; width: 7px; height: 15px;
  background: var(--azure); transform: skewY(-30deg);
}

/* ---------- Dark surfaces ---------- */
.on-dark { color: rgba(255, 255, 255, .74); }
.on-dark :is(h1, h2, h3, h4) { color: #fff; }
.on-dark .eyebrow { color: var(--azure-300); }
.on-dark .lede { color: rgba(255, 255, 255, .72); }
.on-dark .link-arrow { color: #fff; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: 1.05em 1.6em;
  font-family: var(--font-display); font-size: 1rem; font-weight: 600; line-height: 1;
  border: 1.5px solid transparent; border-radius: 2px;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn::after { content: "→"; transition: transform .25s var(--ease); }
.btn:hover::after { transform: translateX(4px); }
.btn-plain::after { content: none; }
.btn-sm { padding: .85em 1.25em; font-size: .93rem; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--navy-800); }
.btn-azure { background: var(--azure); color: var(--navy-950); }
.btn-azure:hover { background: #4FC0EC; }
.btn-light { background: #fff; color: var(--navy-900); }
.btn-light:hover { background: var(--azure-50); }
.btn-outline-light { border-color: rgba(255, 255, 255, .38); color: #fff; }
.btn-outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, .06); }
.btn-outline { border-color: var(--line-strong); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  color: var(--blue); text-decoration: none;
}
.link-arrow::after { content: "→"; transition: transform .25s var(--ease); }
.link-arrow:hover::after { transform: translateX(5px); }

/* ---------- Brand motif ---------- */
.motif { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.motif span {
  position: absolute; left: var(--x); top: var(--y);
  width: var(--w, 110px); height: var(--h, 480px);
  background: var(--c, var(--azure)); opacity: var(--o, .1);
  transform: skewY(-30deg);
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 8px 30px -12px rgba(10, 29, 48, .12); }
.header-bar { display: flex; align-items: center; gap: 2rem; height: var(--header-h); }

/* Logo: the original mark file, displayed unaltered; the box simply hides its empty margin */
.logo { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; flex: none; }
.logo-mark {
  --mh: 46px;
  position: relative; flex: none; overflow: hidden;
  width: calc(var(--mh) * .78); height: var(--mh);
}
.logo-mark img {
  position: absolute; left: 50%; top: 50%;
  width: auto; max-width: none; height: calc(var(--mh) * 2.2);
  transform: translate(-50%, -50%);
  mix-blend-mode: multiply;
}
.logo-word {
  font-family: var(--font-word); font-weight: 700; font-size: 1.32rem;
  letter-spacing: .01em; line-height: 1; color: var(--charcoal);
}
.logo-word span { color: var(--wordmark-blue); }

.primary-nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; list-style: none; }
.nav-link {
  position: relative; display: inline-flex; align-items: center; gap: .4rem;
  height: var(--header-h); padding: 0 .95rem;
  font-family: var(--font-display); font-size: .98rem; font-weight: 500; color: var(--ink);
  text-decoration: none; background: none; border: 0; cursor: pointer;
}
.nav-link::after {
  content: ""; position: absolute; left: .95rem; right: .95rem; bottom: -1px; height: 3px;
  background: var(--azure); transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav-link:hover::after, .nav-link[aria-expanded="true"]::after, .nav-link[data-active]::after { transform: scaleX(1); }
.nav-link svg { width: 10px; height: 10px; transition: transform .25s var(--ease); }
.nav-link[aria-expanded="true"] svg { transform: rotate(180deg); }

.header-actions { display: flex; align-items: center; gap: .75rem; }
.menu-toggle {
  display: none; position: relative; width: 44px; height: 44px;
  background: none; border: 0; cursor: pointer; padding: 0;
}
.menu-toggle span {
  position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink);
  transition: transform .25s var(--ease), top .25s var(--ease);
}
.menu-toggle span:nth-child(1) { top: 17px; }
.menu-toggle span:nth-child(2) { top: 25px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

/* Mega menu */
.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; border-top: 1px solid var(--line);
  box-shadow: 0 40px 60px -30px rgba(10, 29, 48, .28);
}
.mega.is-open { animation: megaIn .28s var(--ease); }
@keyframes megaIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.mega-grid {
  display: grid; grid-template-columns: 1.25fr repeat(4, 1fr); gap: 2.5rem;
  padding-block: 2.75rem 3.25rem;
}
.mega-intro { padding-right: 2rem; border-right: 1px solid var(--line); }
.mega-lede {
  font-family: var(--font-display); font-size: 1.4rem; line-height: 1.3;
  letter-spacing: -.015em; color: var(--ink); margin-bottom: 1.5rem;
}
.mega-head {
  display: block; padding-bottom: .8rem; margin-bottom: 1rem; border-bottom: 2px solid var(--ink);
  font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; color: var(--ink); text-decoration: none;
}
.mega-head:hover { color: var(--blue); border-color: var(--blue); }
.mega-col ul { list-style: none; display: grid; gap: .6rem; }
.mega-col li a { font-size: .94rem; color: var(--ink-3); text-decoration: none; }
.mega-col li a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
  background: #fff; overflow-y: auto; border-top: 1px solid var(--line);
  padding: 1.5rem var(--gutter) 3rem;
}
.mobile-group {
  margin: 1.5rem 0 .5rem; font-family: var(--font-display); font-size: .75rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3);
}
.mobile-group:first-child { margin-top: 0; }
.mobile-primary { list-style: none; }
.mobile-primary a {
  display: block; padding: .8rem 0; border-bottom: 1px solid var(--line);
  font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; letter-spacing: -.02em;
  color: var(--ink); text-decoration: none;
}
.mobile-menu .btn { margin-top: 2rem; width: 100%; }

/* ==========================================================================
   Home hero
   ========================================================================== */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 520px at 78% 10%, rgba(30, 168, 224, .16), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(15, 76, 129, .35), transparent 60%),
    linear-gradient(180deg, var(--navy-950), var(--navy-900));
  padding-top: clamp(64px, 8vw, 112px);
}
.hero-grid {
  position: relative; display: grid; align-items: center;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(40px, 6vw, 96px);
}
.hero h1 { max-width: 12ch; }
.hero-lede {
  max-width: 38ch; margin: 1.75rem 0 2.5rem;
  font-size: clamp(1.1rem, 1.4vw, 1.3rem); line-height: 1.55; color: rgba(255, 255, 255, .74);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* Illustrative dashboard */
.dash {
  margin: 0; padding: 1.5rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .03));
  border: 1px solid rgba(255, 255, 255, .12); border-radius: 6px;
  box-shadow: 0 50px 90px -30px rgba(0, 0, 0, .6);
  font-family: var(--font-display); color: #fff;
}
.dash-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.dash-title { font-weight: 600; font-size: 1rem; }
.dash-live { display: inline-flex; align-items: center; gap: .5rem; font-size: .78rem; color: rgba(255, 255, 255, .65); }
.dash-live i { width: 8px; height: 8px; border-radius: 50%; background: #3DDC97; box-shadow: 0 0 0 0 rgba(61, 220, 151, .6); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(61, 220, 151, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 151, 0); } }
.dash-kpis {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 1.25rem 0;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .1);
}
.dash-kpis > div { background: var(--navy-900); padding: .95rem 1rem; }
.k-label { display: block; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.k-value { display: block; margin: .35rem 0 .2rem; font-size: clamp(1.4rem, 2vw, 1.85rem); font-weight: 600; letter-spacing: -.02em; }
.k-trend { font-size: .75rem; color: #3DDC97; }
.dash-chart { padding: .25rem 0 1rem; }
.bars { display: flex; align-items: flex-end; gap: 5px; height: 104px; margin-top: .75rem; }
.bars i {
  flex: 1; height: var(--h); border-radius: 1px 1px 0 0;
  background: linear-gradient(180deg, var(--azure), var(--blue));
  transform-origin: bottom; animation: grow 1.1s var(--ease) both; animation-delay: calc(var(--i) * 55ms + .3s);
}
@keyframes grow { from { transform: scaleY(0); } }
.dash-list { list-style: none; }
.dash-list li {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .8rem;
  padding: .7rem 0; border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: .86rem; color: rgba(255, 255, 255, .86);
}
.sev { font-size: .66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .32em .6em; border-radius: 2px; }
.sev-high { background: rgba(255, 107, 107, .16); color: #FF9494; }
.sev-med { background: rgba(255, 196, 87, .15); color: #FFCF70; }
.sys { font-size: .74rem; color: rgba(255, 255, 255, .5); }
.dash figcaption { margin-top: .9rem; font-size: .72rem; color: rgba(255, 255, 255, .42); }

/* Frameworks strip */
.frameworks { position: relative; margin-top: clamp(56px, 7vw, 96px); border-top: 1px solid var(--line-dark); }
.frameworks-inner { display: flex; align-items: center; gap: 2.5rem; padding-block: 1.75rem; }
.frameworks-label { flex: none; max-width: 230px; margin: 0; font-size: .8rem; line-height: 1.45; color: rgba(255, 255, 255, .55); }
.marquee {
  flex: 1; min-width: 0; display: flex; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee-track {
  flex: none; display: flex; gap: 3rem; padding-right: 3rem; list-style: none;
  animation: marquee 48s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track li {
  font-family: var(--font-display); font-weight: 600; font-size: 1rem; letter-spacing: -.01em;
  color: rgba(255, 255, 255, .8); white-space: nowrap;
}
@keyframes marquee { to { transform: translateX(-100%); } }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { position: relative; padding-block: var(--section-y); }
.section-tint { background: var(--paper-2); }
.section-dark { overflow: hidden; background: linear-gradient(180deg, var(--navy-900), var(--navy-950)); }
.section-head {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: end; gap: 1.5rem 5rem; margin-bottom: clamp(40px, 5vw, 72px);
}
.section-head .lede { margin: 0; }
.section-head.stack { display: block; max-width: 780px; }
.section-head.stack .lede { margin-top: 1.5rem; }

/* What we do — four pillars */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); }
.pillar {
  position: relative; display: flex; flex-direction: column;
  padding: 2.25rem 2rem 2.25rem 0;
}
.pillar + .pillar { padding-left: 2rem; border-left: 1px solid var(--line); }
.pillar::before {
  content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 3px;
  background: var(--azure); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.pillar:hover::before { transform: scaleX(1); }
.pillar-num { font-family: var(--font-display); font-weight: 600; font-size: .85rem; color: var(--azure); }
.pillar h3 { margin: 1.25rem 0 .9rem; font-size: 1.55rem; }
.pillar h3 a { text-decoration: none; }
.pillar h3 a:hover { color: var(--blue); }
.pillar > p { color: var(--ink-3); font-size: 1rem; }
.pillar-links { list-style: none; margin: .5rem 0 2rem; }
.pillar-links a {
  display: block; padding: .6rem 0; border-top: 1px solid var(--line);
  font-size: .93rem; color: var(--ink-2); text-decoration: none;
}
.pillar-links a:hover { color: var(--blue); }
.pillar .link-arrow { margin-top: auto; }

/* Editorial statement */
.statement { padding-block: clamp(84px, 11vw, 168px); background: var(--paper-2); }
.statement-text {
  max-width: 1080px; margin: 0;
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.85rem, 3.7vw, 3.45rem); line-height: 1.14; letter-spacing: -.03em; color: var(--ink);
}
.statement-text em { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -.015em; color: var(--blue); }

/* Tabs — spotlight */
.spotlight { display: grid; grid-template-columns: minmax(230px, .75fr) minmax(0, 2fr); gap: clamp(32px, 5vw, 80px); }
.tablist { display: flex; flex-direction: column; align-self: start; border-left: 1px solid var(--line-strong); }
.tab {
  margin-left: -1px; padding: 1.05rem 1.25rem; text-align: left;
  font-family: var(--font-display); font-size: 1.06rem; font-weight: 500; color: var(--ink-3);
  background: none; border: 0; border-left: 3px solid transparent; cursor: pointer;
  transition: color .2s, border-color .2s;
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); font-weight: 600; border-left-color: var(--azure); }
.tabpanel {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 4vw, 56px); align-items: start;
}
.tabpanel:focus-visible { outline-offset: 8px; }
.js .tabpanel { animation: fadeUp .45s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.tabpanel h3 { margin-bottom: 1rem; }
.tabpanel-copy > p { font-size: 1.08rem; }
.tabpanel .ticks { margin: 1.5rem 0 2rem; }

.spec {
  padding: 1.5rem 1.6rem; border-radius: 4px;
  background: var(--navy-900); color: #CFE3F1; font-family: var(--font-mono); font-size: .8rem;
  box-shadow: var(--shadow-lg);
}
.spec-head {
  display: flex; justify-content: space-between; margin-bottom: 1.1rem; padding-bottom: .8rem;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  font-family: var(--font-display); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .5);
}
.spec dl { margin: 0; }
.spec dt { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--azure); }
.spec dd { margin: .2rem 0 1rem; color: #fff; line-height: 1.5; }
.spec dd:last-child { margin-bottom: 0; }

/* Tick list with brand-slant bullets */
.ticks { list-style: none; display: grid; gap: .75rem; }
.ticks li { position: relative; padding-left: 1.6rem; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: .5em; width: 6px; height: 11px;
  background: var(--azure); transform: skewY(-30deg);
}

/* Trio */
.trio { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3.5vw, 56px); }
.trio-item { padding-top: 1.75rem; border-top: 2px solid var(--ink); }
.on-dark .trio-item { border-color: rgba(255, 255, 255, .85); }
.trio-num { display: block; margin-bottom: 1.5rem; font-family: var(--font-display); font-size: .85rem; font-weight: 600; color: var(--azure); }
.trio-item h3 { margin-bottom: .9rem; font-size: 1.5rem; }

/* Industry tiles */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.tile {
  position: relative; display: flex; flex-direction: column; min-height: 240px; overflow: hidden;
  padding: 2.25rem 2rem; background: #fff; text-decoration: none; transition: background-color .35s var(--ease);
}
.tile h3 { position: relative; margin-bottom: .7rem; font-size: 1.4rem; transition: color .35s; }
.tile p { position: relative; color: var(--ink-3); font-size: .98rem; transition: color .35s; }
.tile .link-arrow { position: relative; margin-top: auto; transition: color .35s; }
.tile::after {
  content: ""; position: absolute; right: 8%; bottom: -70px; width: 64px; height: 210px;
  background: var(--azure); opacity: 0; transform: translateY(30px) skewY(-30deg);
  transition: opacity .4s var(--ease), transform .5s var(--ease);
}
.tile:hover { background: var(--navy-900); }
.tile:hover h3 { color: #fff; }
.tile:hover p { color: rgba(255, 255, 255, .7); }
.tile:hover .link-arrow { color: var(--azure-300); }
.tile:hover::after { opacity: .9; transform: skewY(-30deg); }

/* Steps */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; counter-reset: step; }
.step { position: relative; padding-top: 2.75rem; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  position: absolute; top: 0; left: 0; padding-right: .9rem;
  font-family: var(--font-display); font-weight: 600; font-size: .9rem; line-height: 1; color: var(--blue);
  background: var(--step-bg, #fff);
}
.step::after { content: ""; position: absolute; top: .45rem; left: 0; right: -2rem; height: 1px; background: var(--line-strong); z-index: -1; }
.step:last-child::after { right: 0; }
.steps { position: relative; z-index: 0; }
.section-tint .steps { --step-bg: var(--paper-2); }
.step h3 { margin-bottom: .7rem; font-size: 1.3rem; }
.step p { margin: 0; font-size: 1rem; color: var(--ink-3); }

/* Academy band */
.academy-band {
  position: relative; overflow: hidden; padding-block: var(--section-y);
  background: linear-gradient(115deg, var(--blue) 0%, var(--navy-800) 55%, var(--navy-950) 100%);
}
.academy-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.academy-grid .lede { margin: 1.5rem 0 2.25rem; }
.programme-list { list-style: none; border-top: 1px solid rgba(255, 255, 255, .2); }
.programme-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.15rem 0; border-bottom: 1px solid rgba(255, 255, 255, .2);
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 500; color: #fff; text-decoration: none;
  transition: padding .3s var(--ease);
}
.programme-list a:hover { padding-left: .5rem; }

.tag {
  display: inline-block; flex: none; padding: .42em .7em; border-radius: 2px;
  font-family: var(--font-display); font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  background: var(--azure-50); color: var(--blue);
}
.tag-dark { background: rgba(255, 255, 255, .1); color: var(--azure-300); }

/* Insights */
.insights-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: clamp(20px, 2.5vw, 40px); }
.insight-card { display: flex; flex-direction: column; text-decoration: none; }
.insight-card h3 { margin: .7rem 0 .8rem; font-size: 1.35rem; line-height: 1.2; }
.insight-card:first-child h3 { font-size: clamp(1.5rem, 2.2vw, 2rem); }
.insight-card p { color: var(--ink-3); font-size: .98rem; }
.insight-card:hover h3 { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; }
.insight-meta { font-family: var(--font-display); font-size: .74rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.art {
  position: relative; overflow: hidden; aspect-ratio: 16 / 10; margin-bottom: 1.4rem;
  background: linear-gradient(140deg, var(--navy-800), var(--navy-950));
}
.art span {
  position: absolute; left: var(--l); bottom: var(--b); width: var(--wd, 13%); height: var(--hh);
  background: var(--c); opacity: var(--o, 1);
  transform: translateY(0) skewY(-30deg); transition: transform .7s var(--ease);
}
.insight-card:hover .art span:nth-child(odd) { transform: translateY(-8px) skewY(-30deg); }
.insight-card:hover .art span:nth-child(even) { transform: translateY(8px) skewY(-30deg); }

/* CTA band */
.cta-band { position: relative; overflow: hidden; padding-block: clamp(80px, 10vw, 136px); background: var(--navy-950); }
.cta-inner { position: relative; display: grid; grid-template-columns: 1.5fr 1fr; gap: 3rem; align-items: end; }
.cta-band h2 { max-width: 17ch; font-size: clamp(2.1rem, 4.2vw, 3.6rem); letter-spacing: -.032em; }
.cta-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem; justify-self: end; }

/* ==========================================================================
   Inner pages
   ========================================================================== */
.page-hero {
  position: relative; overflow: hidden;
  padding: clamp(48px, 6vw, 88px) 0 clamp(64px, 8vw, 112px);
  background:
    radial-gradient(800px 480px at 85% 0%, rgba(30, 168, 224, .14), transparent 60%),
    linear-gradient(180deg, var(--navy-950), var(--navy-900));
}
.breadcrumb { position: relative; display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin-bottom: clamp(40px, 5vw, 72px); font-size: .85rem; color: rgba(255, 255, 255, .5); }
.breadcrumb li + li::before { content: "/"; margin-right: .5rem; color: rgba(255, 255, 255, .3); }
.breadcrumb a { color: rgba(255, 255, 255, .7); text-decoration: none; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
.page-hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 1.5rem 5rem; align-items: end; }
.page-hero h1 { max-width: 17ch; }
.page-hero .lede { margin: 0; }

.subnav { position: sticky; top: var(--header-h); z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.subnav-inner { display: flex; align-items: center; gap: 2rem; }
.subnav-label { flex: none; font-family: var(--font-display); font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.subnav ul { display: flex; gap: 2rem; list-style: none; overflow-x: auto; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a {
  display: block; padding: 1.15rem 0 1.05rem; border-bottom: 2px solid transparent; white-space: nowrap;
  font-family: var(--font-display); font-size: .93rem; font-weight: 500; color: var(--ink-3); text-decoration: none;
  transition: color .2s, border-color .2s;
}
.subnav a:hover { color: var(--ink); }
.subnav a.is-active { color: var(--ink); border-color: var(--azure); }

/* Offering rows */
.offering { padding-block: clamp(64px, 8vw, 116px); border-top: 1px solid var(--line); }
.offering:first-of-type, .subnav + .offering { border-top: 0; }
.offering-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 112px); }
.offering-head { position: sticky; top: calc(var(--header-h) + 100px); align-self: start; }
.offering-num { display: block; margin-bottom: 1.1rem; font-family: var(--font-display); font-size: .9rem; font-weight: 600; color: var(--azure); }
.offering-head h2 { font-size: clamp(1.9rem, 3vw, 2.7rem); letter-spacing: -.028em; }
.offering-sum { margin: 1.25rem 0 0; font-size: 1.18rem; line-height: 1.5; color: var(--ink-3); }
.offering-body > p { font-size: 1.1rem; line-height: 1.7; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; margin-top: 2.25rem; padding-top: 2.25rem; border-top: 1px solid var(--line); }
.label {
  display: block; margin: 0 0 1.25rem;
  font-family: var(--font-display); font-size: .76rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink);
}
.on-dark .label { color: #fff; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }
.card {
  display: flex; flex-direction: column; padding: clamp(24px, 2.4vw, 36px);
  background: #fff; border: 1px solid var(--line);
  transition: border-color .25s, transform .35s var(--ease), box-shadow .35s var(--ease);
}
.card:hover { border-color: var(--ink); transform: translateY(-3px); box-shadow: 0 24px 40px -24px rgba(10, 29, 48, .3); }
.card h3 { margin: 1.1rem 0 .8rem; font-size: 1.4rem; }
.card > p { color: var(--ink-3); font-size: 1rem; }
.card .ticks { margin-top: auto; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: .95rem; }
.card-num { font-family: var(--font-display); font-weight: 600; font-size: .85rem; color: var(--azure); }

/* Split section */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 112px); align-items: start; }
.split .lede { margin-top: 1.5rem; }
.panel { padding: clamp(28px, 3vw, 44px); background: #fff; border: 1px solid var(--line); }
.section-tint .panel { border-color: transparent; }
.panel-dark { background: var(--navy-900); border-color: var(--navy-900); }

/* Pill list */
.pills { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; }
.pills li {
  padding: .55em 1em; border: 1px solid var(--line-strong); border-radius: 999px;
  font-family: var(--font-display); font-size: .92rem; font-weight: 500; color: var(--ink);
}
.on-dark .pills li { border-color: rgba(255, 255, 255, .25); color: #fff; }

/* Maturity model */
.maturity-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; align-items: end; margin-bottom: 2rem; }
.maturity-step {
  display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: .4rem;
  height: calc(84px + var(--lvl) * 26px); padding: 1rem 1.1rem; text-align: left; cursor: pointer;
  background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--slate);
  font: inherit; transition: background-color .25s, border-color .25s;
}
.maturity-step b { font-family: var(--font-display); font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.maturity-step span { font-family: var(--font-display); font-size: 1.08rem; font-weight: 600; line-height: 1.2; color: var(--ink); }
.maturity-step:hover { border-top-color: var(--azure); }
.maturity-step[aria-selected="true"] { background: var(--navy-900); border-color: var(--navy-900); border-top-color: var(--azure); }
.maturity-step[aria-selected="true"] b { color: var(--azure-300); }
.maturity-step[aria-selected="true"] span { color: #fff; }
.maturity-panel { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(24px, 4vw, 64px); padding: clamp(28px, 3vw, 44px); background: #fff; border: 1px solid var(--line); }
.maturity-panel h3 { margin-bottom: .9rem; }
.focus-box { padding-left: 1.5rem; border-left: 3px solid var(--azure); }
.focus-box p { margin: 0; color: var(--ink); font-size: 1.05rem; }

/* DRAX callout */
.drax { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); }
.drax div { padding: 1.75rem 1.5rem 0 0; }
.drax div + div { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.drax b { display: block; font-family: var(--font-word); font-weight: 700; font-size: clamp(3.5rem, 7vw, 6.25rem); line-height: 1; color: var(--wordmark-blue); }
.drax span { display: block; margin-top: .9rem; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; color: var(--ink); }

/* Articles */
.article { padding-block: clamp(64px, 8vw, 116px); border-top: 1px solid var(--line); }
.article-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 104px); }
.article-aside { position: sticky; top: calc(var(--header-h) + 40px); align-self: start; }
.article-aside h2 { margin: .9rem 0 1.5rem; font-size: clamp(1.8rem, 2.8vw, 2.5rem); letter-spacing: -.026em; }
.article-meta { font-size: .9rem; color: var(--ink-3); }
.article-related { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); display: grid; gap: .6rem; }
.prose { max-width: 68ch; }
.prose p { font-size: 1.125rem; line-height: 1.75; }
.prose h3 { margin: 2.25rem 0 .75rem; font-size: 1.3rem; }
.prose > p:first-child { font-size: 1.3rem; line-height: 1.6; color: var(--ink); }
.pullquote {
  margin: 2.25rem 0; padding-left: 1.5rem; border-left: 3px solid var(--azure);
  font-family: var(--font-serif); font-style: italic; font-size: clamp(1.45rem, 2.2vw, 1.85rem); line-height: 1.35; color: var(--ink);
}

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(40px, 6vw, 104px); align-items: start; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.field { display: flex; flex-direction: column; gap: .5rem; }
.field-full { grid-column: 1 / -1; }
.field label { font-family: var(--font-display); font-size: .92rem; font-weight: 600; color: var(--ink); }
.field label small { font-weight: 400; color: var(--ink-3); }
.field input, .field select, .field textarea {
  width: 100%; padding: .95rem 1rem;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1px solid var(--line-strong); border-radius: 2px;
  transition: border-color .2s, box-shadow .2s;
}
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 2.75rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%230E1620' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--azure); box-shadow: 0 0 0 3px rgba(30, 168, 224, .18); }
.consent { display: flex; gap: .75rem; align-items: flex-start; font-size: .93rem; color: var(--ink-3); }
.consent input { width: 18px; height: 18px; margin-top: .2rem; flex: none; accent-color: var(--blue); }
.consent a { color: var(--blue); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { grid-column: 1 / -1; min-height: 1.5em; margin: 0; font-size: .95rem; }
.form-status.ok { color: #137A4B; }
.form-status.err { color: #B3261E; }
.contact-aside { display: grid; gap: 2.5rem; }
.contact-aside .ticks, .contact-aside ol { font-size: 1rem; }
.next-steps { list-style: none; counter-reset: ns; display: grid; gap: 1rem; }
.next-steps li { position: relative; padding-left: 2.5rem; counter-increment: ns; }
.next-steps li::before {
  content: counter(ns); position: absolute; left: 0; top: -.05rem; width: 1.7rem; height: 1.7rem;
  display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%;
  font-family: var(--font-display); font-size: .8rem; font-weight: 600; color: var(--blue);
}
.big-link { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; letter-spacing: -.015em; color: var(--blue); text-decoration: none; }
.big-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Legal prose */
.legal { max-width: 760px; }
.legal h2 { margin: 2.75rem 0 1rem; font-size: 1.5rem; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { font-size: 1.05rem; line-height: 1.7; }
.legal ul { padding-left: 1.25rem; margin-bottom: 1em; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { padding: clamp(64px, 7vw, 96px) 0 2rem; background: var(--navy-900); font-size: .95rem; }
.footer-top { display: grid; grid-template-columns: 1.2fr 2fr; gap: clamp(40px, 6vw, 96px); padding-bottom: clamp(48px, 5vw, 72px); border-bottom: 1px solid var(--line-dark); }
.logo-chip { display: inline-flex; padding: 5px 7px; background: #fff; border-radius: 3px; }
.logo-chip .logo-mark { --mh: 40px; }
.logo-chip .logo-mark img { mix-blend-mode: normal; }
.site-footer .logo-word { color: #fff; }
.site-footer .logo-word span { color: var(--azure); }
.footer-tagline { margin: 1.5rem 0 .5rem; font-family: var(--font-display); font-weight: 600; color: #fff; }
.footer-blurb { max-width: 34ch; margin-bottom: 1.75rem; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.footer-h { margin-bottom: 1.25rem; font-size: .76rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.footer-cols ul { list-style: none; display: grid; gap: .75rem; }
.footer-cols a, .footer-bottom a { color: rgba(255, 255, 255, .72); text-decoration: none; }
.footer-cols a:hover, .footer-bottom a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; padding-top: 2rem; font-size: .85rem; color: rgba(255, 255, 255, .5); }
.footer-bottom p { margin: 0; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 1.5rem; list-style: none; }

/* ==========================================================================
   Motion
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
  .js [data-reveal="1"] { transition-delay: .08s; }
  .js [data-reveal="2"] { transition-delay: .16s; }
  .js [data-reveal="3"] { transition-delay: .24s; }
  .js [data-reveal].is-visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-track { flex: 1; flex-wrap: wrap; gap: .5rem 2rem; padding: 0; }
  .marquee-track[aria-hidden="true"] { display: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .mega-grid { grid-template-columns: repeat(4, 1fr); }
  .mega-intro { display: none; }
}

@media (max-width: 1080px) {
  .primary-nav, .mega { display: none !important; }
  .menu-toggle { display: inline-flex; }
  .header-actions { margin-left: auto; }

  .hero-grid, .academy-grid, .cta-inner, .page-hero-grid, .split, .contact-grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: 14ch; }
  .cta-actions { justify-self: start; }
  .section-head { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .pillar, .pillar + .pillar { padding: 2rem 1.5rem 2.25rem 0; border-left: 0; }
  .pillar:nth-child(even) { padding-left: 1.5rem; border-left: 1px solid var(--line); }
  .pillar:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .spotlight { grid-template-columns: 1fr; }
  .tablist { flex-direction: row; overflow-x: auto; border-left: 0; border-bottom: 1px solid var(--line-strong); scrollbar-width: none; }
  .tablist::-webkit-scrollbar { display: none; }
  .tab { flex: none; margin: 0 0 -1px; padding: .9rem 1.1rem; border-left: 0; border-bottom: 3px solid transparent; white-space: nowrap; }
  .tab[aria-selected="true"] { border-bottom-color: var(--azure); }
  .tabpanel, .maturity-panel { grid-template-columns: 1fr; }
  .trio { grid-template-columns: 1fr; }
  .tiles, .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 3rem; }
  .step:nth-child(2n)::after { right: 0; }
  .insights-grid { grid-template-columns: 1fr 1fr; }
  .insights-grid .insight-card:first-child { grid-column: 1 / -1; }
  .offering-grid, .article-grid { grid-template-columns: 1fr; }
  .offering-head, .article-aside { position: static; }
  .footer-top { grid-template-columns: 1fr; }
  .subnav-label { display: none; }
  .maturity-steps { grid-template-columns: repeat(5, minmax(132px, 1fr)); overflow-x: auto; padding-bottom: 4px; }
}

@media (max-width: 640px) {
  :root { --header-h: 68px; }
  body { font-size: 1rem; }
  .header-actions .btn { display: none; }
  .logo-mark { --mh: 40px; }
  .logo-word { font-size: 1.15rem; }
  .frameworks-inner { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .frameworks-label { max-width: none; }
  .marquee { width: 100%; }
  .pillars, .tiles, .cards, .steps, .insights-grid, .duo, .form, .footer-cols { grid-template-columns: 1fr; }
  .pillar, .pillar + .pillar, .pillar:nth-child(even) { padding: 2rem 0; border-left: 0; }
  .pillar + .pillar { border-top: 1px solid var(--line); }
  .step::after { display: none; }
  .tile { min-height: 0; }
  .dash { padding: 1.1rem; }
  .dash-kpis > div { padding: .75rem; }
  .dash-list li { grid-template-columns: auto 1fr; }
  .dash-list .sys { display: none; }
  .drax { grid-template-columns: repeat(2, 1fr); }
  .drax div:nth-child(3) { padding-left: 0; border-left: 0; }
  .drax div:nth-child(n + 3) { margin-top: 1.5rem; border-top: 1px solid var(--line); }
  .hero-actions .btn, .cta-actions .btn { width: 100%; }
}
