/* ============================================================
   Xyberteq Innovations — Sovereign AI-Enabled Cyber Control
   Design system · v2026.2 "Control Layer"
   Institutional-premium. Dark ink base (#0b1220) carries the
   weight; #f7f9fc light canvas for reading sections; ONE accent
   (controlled electric blue) used as a scalpel — CTAs, active
   states, key signals only. Greys do the structural work.
   ============================================================ */

/* ---------- Fonts (self-hosted variable fonts) ---------- */
@font-face {
  font-family: "Manrope";
  src: url("../assets/fonts/Manrope.woff2?v=2") format("woff2-variations");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("../assets/fonts/SpaceGrotesk.woff2?v=2") format("woff2-variations");
  font-weight: 300 700;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* dark base — dominant */
  --ink-deep: #0b1220;
  --ink-deep-2: #0f1828;
  --on-dark: #c2cfe4;
  --on-dark-strong: #ffffff;
  --on-dark-muted: #7e90ad;
  /* light canvas */
  --bg: #f7f9fc;
  --surface: #ffffff;
  --surface-2: #eef2f8;
  --ink: #0f1b2d;
  --ink-2: #44546c;
  --ink-3: #69788f;
  /* the one accent */
  --accent: #0e5bc9;
  --accent-deep: #0a47a0;
  --accent-dark: #5b9bff; /* same accent, lifted for dark ground */
  --accent-tint: #e9f1ff;
  /* structure */
  --line: #e3e9f2;
  --line-strong: #cfd9e8;
  /* three lines of defence markers (small dots only) */
  --line1: #c0392f;
  --line2: #6242a8;
  --line3: #15829e;
  --line1-dark: #ef9a90;
  --line2-dark: #b9a3e8;
  --line3-dark: #7cc7dd;
  /* geometry */
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-1: 0 1px 2px rgba(11, 18, 32, 0.04), 0 12px 32px rgba(11, 18, 32, 0.07);
  --shadow-2: 0 2px 4px rgba(11, 18, 32, 0.05), 0 24px 64px rgba(11, 18, 32, 0.13);
  --max: 1200px;
  --header-h: 76px;
  --font-display: "Space Grotesk", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Manrope", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  /* grain texture for dark sections */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img,
svg {
  max-width: 100%;
  height: auto;
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}
::selection {
  background: var(--accent);
  color: #fff;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 200;
  padding: 0.7rem 1.2rem;
  background: var(--ink-deep);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 700;
}
.skip-link:focus {
  top: 0.75rem;
}

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.022em;
  color: var(--ink);
  margin: 0 0 0.55em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.6rem, 1.55rem + 3.3vw, 4.5rem);
}
h2 {
  font-size: clamp(1.85rem, 1.35rem + 1.6vw, 2.7rem);
}
h3 {
  font-size: 1.22rem;
  line-height: 1.3;
  letter-spacing: -0.012em;
}
h4 {
  font-size: 1.05rem;
  letter-spacing: -0.008em;
}
p {
  margin: 0 0 1em;
}
strong {
  font-weight: 700;
}
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 1.1rem;
}
.lede {
  font-size: clamp(1.12rem, 1rem + 0.45vw, 1.34rem);
  line-height: 1.62;
  color: var(--ink-2);
  max-width: 56ch;
  font-weight: 500;
}
.measure {
  max-width: 66ch;
}
.muted {
  color: var(--ink-2);
}
.small {
  font-size: 0.92rem;
}
.footnote {
  font-size: 0.85rem;
  color: var(--ink-3);
  line-height: 1.6;
}

/* ---------- Layout ---------- */
.wrap {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}
.section {
  padding-block: clamp(4.25rem, 8.5vw, 7rem);
}
.section--tight {
  padding-block: clamp(3rem, 6vw, 4.75rem);
}
.section--alt {
  background: var(--surface);
}
.section-head {
  max-width: 780px;
  margin-bottom: clamp(2.4rem, 5vw, 3.6rem);
}
.section-head--center {
  margin-inline: auto;
  text-align: center;
}
.section-head--center .lede {
  margin-inline: auto;
}

.grid {
  display: grid;
  gap: 1.5rem;
}
.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr));
}
.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 275px), 1fr));
}
.grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}
.split {
  display: grid;
  gap: clamp(2.2rem, 5.5vw, 4.5rem);
  align-items: center;
}
@media (min-width: 920px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }
  .split--wide-text {
    grid-template-columns: 7fr 5fr;
  }
}

/* ============================================================
   DARK GROUND — the dominant register.
   Applied to: .hero, .page-hero, .band, .site-footer
   Quiet depth: one barely-there accent glow + film grain.
   ============================================================ */
.hero,
.page-hero,
.band,
.site-footer {
  position: relative;
  isolation: isolate;
  background: var(--ink-deep);
  color: var(--on-dark);
}
.hero::before,
.page-hero::before,
.band::before,
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1100px 480px at 14% -12%, rgba(46, 99, 196, 0.16), transparent 62%),
    radial-gradient(900px 420px at 92% 112%, rgba(46, 99, 196, 0.07), transparent 60%);
}
.hero::after,
.page-hero::after,
.band::after,
.site-footer::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--grain);
  background-size: 180px 180px;
  opacity: 0.05;
  pointer-events: none;
}
.hero h1,
.hero h2,
.hero h3,
.page-hero h1,
.page-hero h2,
.band h1,
.band h2,
.band h3,
.site-footer h3,
.site-footer h4 {
  color: var(--on-dark-strong);
}
.hero .eyebrow,
.page-hero .eyebrow,
.band .eyebrow {
  color: var(--on-dark-muted);
}
.hero .lede,
.page-hero .lede,
.band .lede,
.band p {
  color: var(--on-dark);
}
.hero .muted,
.page-hero .muted,
.band .muted {
  color: var(--on-dark-muted);
}
.hero a:not(.btn),
.page-hero a:not(.btn),
.band a:not(.btn) {
  color: var(--accent-dark);
}
.page-hero .footnote,
.band .footnote {
  color: var(--on-dark-muted);
}

/* ---------- Hero (home) & page hero (interior) ---------- */
.hero {
  padding-block: clamp(4.5rem, 9vw, 8rem) clamp(4rem, 8vw, 7rem);
}
.page-hero {
  padding-block: clamp(3.6rem, 7vw, 5.8rem) clamp(3.2rem, 6vw, 5rem);
}
.page-hero h1 {
  font-size: clamp(2.3rem, 1.5rem + 2.5vw, 3.6rem);
  max-width: 21ch;
}
.page-hero .lede {
  margin-top: 0.5rem;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.42rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--on-dark);
  margin-bottom: 1.7rem;
}
.hero-kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  align-self: center;
  border-radius: 50%;
  background: var(--accent-dark);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(15, 27, 45, 0.07);
}
.header-inner {
  max-width: 1340px;
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 3vw, 1.6rem);
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-shrink: 0;
}
.brand:hover {
  text-decoration: none;
}
.brand img {
  width: 56px;
  height: 41px;
  object-fit: contain;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.brand-text strong {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.brand-text em {
  font-style: normal;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
}
/* In the inline-nav range the full menu + language toggle + CTA is wide;
   drop the brand sub-line here to keep everything on one row. */
@media (min-width: 1260px) and (max-width: 1480px) {
  .brand-text em {
    display: none;
  }
  /* Compact the desktop nav in the tight 1260–1480 band so the CTA never overflows.
     Uses a .primary-nav ancestor to out-specify the base .nav-menu rules below. */
  .primary-nav .nav-menu {
    gap: 0.05rem;
  }
  .primary-nav .nav-menu > li > a,
  .primary-nav .nav-menu > li > button.nav-top {
    padding: 0.5rem 0.38rem;
    font-size: 0.85rem;
  }
  .primary-nav .nav-cta {
    margin-left: 0.3rem;
    padding: 0.56rem 0.78rem;
    font-size: 0.84rem;
  }
  .primary-nav .lang-toggle {
    margin-left: 0.3rem;
  }
}
/* On phones, keep the sub-line (it's the core positioning) but compact the
   brand so logo + name + sub-line + toggle all fit without overflow. */
@media (max-width: 600px) {
  .header-inner {
    padding-inline: 0.95rem;
    gap: 0.5rem;
  }
  .brand {
    gap: 0.5rem;
  }
  .brand img {
    width: 44px;
  }
  .brand-text strong {
    font-size: 0.88rem;
  }
  .brand-text em {
    font-size: 0.5rem;
    letter-spacing: 0.035em;
  }
}
.primary-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-menu > li {
  position: relative;
}
.nav-menu > li > a,
.nav-menu > li > button.nav-top {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem 0.52rem;
  font-family: var(--font-body);
  font-size: 0.89rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--ink);
  background: none;
  border: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-menu > li > a:hover,
.nav-menu > li > button.nav-top:hover {
  background: var(--surface-2);
  text-decoration: none;
}
.nav-menu > li > a[aria-current="page"] {
  color: var(--accent);
}
.nav-top .caret {
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.15s ease;
}
.nav-top[aria-expanded="true"] .caret {
  transform: rotate(225deg) translateY(-1px);
}
.sub-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 260px;
  background: var(--surface);
  border-radius: 12px;
  box-shadow: var(--shadow-2);
  list-style: none;
  margin: 0;
  padding: 0.45rem;
  display: none;
}
/* Invisible bridge across the gap between the trigger and the menu, so moving
   the cursor down onto the submenu never crosses a "dead zone" that closes it. */
.sub-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 12px;
}
.nav-menu > li.open > .sub-menu {
  display: block;
}
.sub-menu a {
  display: block;
  padding: 0.55rem 0.8rem;
  border-radius: 8px;
  color: var(--ink);
  font-size: 0.93rem;
  font-weight: 600;
}
.sub-menu a small {
  display: block;
  font-weight: 500;
  font-size: 0.78rem;
  color: var(--ink-3);
}
.sub-menu a:hover {
  background: var(--surface-2);
  text-decoration: none;
}
.sub-menu a[aria-current="page"] {
  color: var(--accent);
}
.nav-cta {
  margin-left: 0.4rem;
  padding: 0.56rem 0.95rem;
  font-size: 0.87rem;
  white-space: nowrap;
}
/* Language toggle EN | BM */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  margin-left: 0.4rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  overflow: hidden;
  flex-shrink: 0;
}
.lang-toggle a,
.lang-toggle span {
  padding: 0.32rem 0.62rem;
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  line-height: 1;
}
.lang-toggle > * + * {
  border-left: 1px solid var(--line-strong);
}
.lang-toggle a:hover {
  background: var(--surface-2);
  color: var(--ink);
  text-decoration: none;
}
.lang-toggle .lang-active {
  background: var(--accent);
  color: #fff;
}
@media (max-width: 1259px) {
  .lang-toggle {
    margin: 0.9rem 0.6rem 0.2rem;
  }
}
.nav-toggle {
  display: none;
  margin-left: auto;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 10px;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 22px;
  margin-inline: auto;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 1259px) {
  .nav-toggle {
    display: flex;
  }
  .primary-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-2);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .primary-nav.open {
    display: block;
  }
  .nav-menu {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.8rem clamp(1.1rem, 4vw, 2rem) 1.4rem;
  }
  .nav-menu > li > a,
  .nav-menu > li > button.nav-top {
    width: 100%;
    justify-content: space-between;
    padding: 0.85rem 0.6rem;
    font-size: 1.02rem;
  }
  .sub-menu {
    position: static;
    box-shadow: none;
    border-left: 2px solid var(--line);
    border-radius: 0;
    margin: 0 0 0.4rem 0.9rem;
    min-width: 0;
  }
  .nav-cta {
    margin: 0.8rem 0.6rem 0;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.55rem;
  font-family: var(--font-body);
  font-size: 0.97rem;
  font-weight: 700;
  border-radius: 11px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s var(--ease);
}
.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}
.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 22px rgba(14, 91, 201, 0.28);
}
.btn--primary:hover {
  background: var(--accent-deep);
}
.btn--secondary {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-1);
}
.btn--secondary:hover {
  color: var(--accent);
}
.btn--on-navy {
  background: #fff;
  color: var(--ink-deep);
}
.btn--on-navy:hover {
  background: var(--surface-2);
}
.btn--ghost-navy {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.32);
}
.btn--ghost-navy:hover {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.06);
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

/* ---------- Cards (soft depth, no hard borders) ---------- */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.85rem 1.75rem;
  box-shadow: var(--shadow-1);
}
.card h3 {
  margin-bottom: 0.45em;
}
.card > p:last-child {
  margin-bottom: 0;
}
.card--quiet {
  background: var(--surface-2);
  box-shadow: none;
}
.card--tinted {
  background: var(--accent-tint);
  box-shadow: none;
}
a.card {
  display: block;
  color: inherit;
  transition: box-shadow 0.22s var(--ease), transform 0.22s var(--ease);
}
a.card:hover {
  text-decoration: none;
  box-shadow: var(--shadow-2);
  transform: translateY(-3px);
}
a.card .card-link {
  color: var(--ink);
  font-weight: 700;
  font-size: 0.92rem;
}
a.card:hover .card-link {
  color: var(--accent);
}
.card .eyebrow {
  margin-bottom: 0.55rem;
}
/* cards on dark ground */
.band .card,
.page-hero .card,
.hero .card {
  background: rgba(255, 255, 255, 0.045);
  box-shadow: none;
}
.band .card h3,
.band .card h4 {
  color: var(--on-dark-strong);
}
.band .card p {
  color: var(--on-dark);
}

/* Numbered marker */
.num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--ink-2);
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  flex-shrink: 0;
}
.band .num,
.num--navy {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
}

/* ---------- Stat callouts — data as the centrepiece ---------- */
.stat-card {
  background: transparent;
  padding: 0.4rem 0 0.2rem;
}
.stat-card .stat-value {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 1.9rem + 2.2vw, 3.9rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.02;
  display: block;
  margin-bottom: 0.7rem;
  font-variant-numeric: tabular-nums;
  text-wrap: balance;
}
/* Stat layout: 1-up on mobile, 2-up on desktop — wide enough columns that
   the large values (e.g. "RM2.8 billion") stay on one line and never overlap. */
.stat-grid {
  display: grid;
  gap: 2rem 2.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.stat-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-3);
  line-height: 1.55;
  max-width: 30ch;
}
.band .stat-card .stat-value,
.page-hero .stat-card .stat-value {
  color: var(--on-dark-strong);
}
.band .stat-card p,
.page-hero .stat-card p {
  color: var(--on-dark-muted);
}
/* boxed variant for stat walls on white */
.section--alt .stat-card,
.stat-card--boxed {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.8rem 1.7rem 1.6rem;
  box-shadow: var(--shadow-1);
}

/* Definition / icon rows */
.def-row {
  display: flex;
  gap: 1.15rem;
  align-items: flex-start;
}
.def-row + .def-row {
  margin-top: 1.5rem;
}
.def-row h3,
.def-row h4 {
  margin-bottom: 0.25em;
}
.def-row p {
  margin-bottom: 0;
  color: var(--ink-2);
}
.band .def-row p {
  color: var(--on-dark);
}
.band .def-row h3,
.band .def-row h4 {
  color: var(--on-dark-strong);
}

/* Pills */
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.2rem;
}
.pill {
  padding: 0.36rem 0.95rem;
  background: var(--surface-2);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink-2);
  white-space: nowrap;
}
.pill--brand {
  background: var(--accent-tint);
  color: var(--accent-deep);
}
.band .pill,
.page-hero .pill {
  background: rgba(255, 255, 255, 0.07);
  color: var(--on-dark);
}

/* ---------- Navy band sections ---------- */
.band {
  padding-block: clamp(3.8rem, 7.5vw, 6rem);
}
.quote-band blockquote {
  margin: 0 auto;
  max-width: 900px;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 1.1rem + 1.25vw, 2.1rem);
  font-weight: 500;
  line-height: 1.42;
  color: #fff;
  letter-spacing: -0.014em;
}
.quote-band blockquote p {
  color: #fff;
}
.quote-band blockquote footer {
  margin-top: 1.3rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--on-dark-muted);
}

/* ---------- Tables ---------- */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-1);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
caption {
  text-align: left;
  padding: 1.2rem 1.4rem 0.2rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
}
th,
td {
  text-align: left;
  vertical-align: top;
  padding: 1rem 1.4rem;
  border-top: 1px solid var(--line);
  line-height: 1.55;
}
thead th {
  border-top: 0;
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  background: var(--surface-2);
}
tbody th {
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}
td {
  color: var(--ink-2);
}

/* ---------- Line-of-defence markers ---------- */
.lod {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.lod::before {
  content: "";
  width: 9px;
  height: 9px;
  flex-shrink: 0;
  border-radius: 50%;
  background: currentColor;
}
.lod--1 {
  color: var(--line1);
}
.lod--2 {
  color: var(--line2);
}
.lod--3 {
  color: var(--line3);
}
.lod--argus {
  color: var(--accent-deep);
}
/* on dark ground, lift the markers */
.page-hero .lod--1,
.band .lod--1 {
  color: var(--line1-dark);
}
.page-hero .lod--2,
.band .lod--2 {
  color: var(--line2-dark);
}
.page-hero .lod--3,
.band .lod--3 {
  color: var(--line3-dark);
}
.page-hero .lod--argus,
.band .lod--argus {
  color: var(--accent-dark);
}

/* ---------- Diagrams ---------- */
.diagram-frame {
  background: var(--surface);
  border-radius: var(--radius);
  padding: clamp(1.3rem, 3vw, 2.4rem);
  box-shadow: var(--shadow-1);
}
.diagram-frame figcaption {
  margin-top: 1rem;
  font-size: 0.88rem;
  color: var(--ink-3);
  text-align: center;
}
.hero .diagram-frame,
.page-hero .diagram-frame,
.band .diagram-frame,
.diagram-frame--navy {
  background: rgba(255, 255, 255, 0.035);
  box-shadow: none;
}
.hero .diagram-frame figcaption,
.band .diagram-frame figcaption {
  color: var(--on-dark-muted);
}

/* ---------- Lists ---------- */
.tick-list,
.dash-list {
  list-style: none;
  margin: 0 0 1em;
  padding: 0;
}
.tick-list li,
.dash-list li {
  position: relative;
  padding-left: 1.9rem;
  margin-bottom: 0.7rem;
  color: var(--ink-2);
}
.tick-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 0.95rem;
  height: 0.55rem;
  border-left: 2.5px solid var(--ink-3);
  border-bottom: 2.5px solid var(--ink-3);
  transform: rotate(-45deg);
}
.band .tick-list li,
.page-hero .tick-list li {
  color: var(--on-dark);
}
.band .tick-list li::before,
.page-hero .tick-list li::before {
  border-color: var(--on-dark-muted);
}
.dash-list li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.78em;
  width: 0.85rem;
  height: 2.5px;
  background: var(--line-strong);
  border-radius: 2px;
}
.band .dash-list li {
  color: var(--on-dark);
}
.band .dash-list li::before {
  background: var(--on-dark-muted);
}

/* Big numbered question list */
.q-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: q;
}
.q-list li {
  counter-increment: q;
  display: flex;
  gap: 1.3rem;
  align-items: flex-start;
  padding: 1.35rem 0;
  border-top: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: clamp(1.08rem, 0.95rem + 0.5vw, 1.42rem);
  font-weight: 500;
  line-height: 1.38;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.q-list li:first-child {
  border-top: 0;
}
.q-list li::before {
  content: counter(q, decimal-leading-zero);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink-3);
  padding-top: 0.42em;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.band .q-list li {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.12);
}
.band .q-list li::before {
  color: var(--on-dark-muted);
}

/* Question + answer — collapsible accordion (native details/summary) */
.qa-accordion {
  border-top: 1px solid var(--line);
  counter-reset: qa;
}
.qa {
  border-bottom: 1px solid var(--line);
  counter-increment: qa;
}
.qa-q {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.3rem 0;
  font-family: var(--font-display);
  font-size: clamp(1.02rem, 0.96rem + 0.32vw, 1.24rem);
  font-weight: 600;
  line-height: 1.32;
  letter-spacing: -0.012em;
  color: var(--ink);
  transition: color 0.15s ease;
}
.qa-q::-webkit-details-marker {
  display: none;
}
.qa-q::before {
  content: counter(qa, decimal-leading-zero);
  flex-shrink: 0;
  min-width: 1.6rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.qa-q::after {
  content: "";
  margin-left: auto;
  flex-shrink: 0;
  width: 0.62rem;
  height: 0.62rem;
  border-right: 2px solid var(--ink-3);
  border-bottom: 2px solid var(--ink-3);
  transform: rotate(45deg);
  transition: transform 0.2s var(--ease);
}
.qa[open] .qa-q::after {
  transform: rotate(225deg);
}
.qa-q:hover {
  color: var(--accent);
}
.qa-a {
  padding: 0 2.6rem 1.5rem 2.6rem;
  max-width: 70ch;
}
.qa-a p {
  margin: 0 0 0.7rem;
  color: var(--ink-2);
}
.qa-link {
  font-weight: 700;
  font-size: 0.9rem;
}

/* ---------- Timeline (before / during / after) ---------- */
.phase-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 820px) {
  .phase-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.phase {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.85rem 1.75rem;
  box-shadow: var(--shadow-1);
}
.phase .phase-label {
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: block;
  margin-bottom: 0.75rem;
}
.band .phase {
  background: rgba(255, 255, 255, 0.045);
  box-shadow: none;
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 0;
}
.footer-main {
  max-width: var(--max);
  margin-inline: auto;
  padding: clamp(3.2rem, 6.5vw, 5rem) clamp(1.25rem, 5vw, 2.5rem) 2rem;
  display: grid;
  gap: 2.6rem;
}
@media (min-width: 680px) {
  .footer-main {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 1020px) {
  .footer-main {
    grid-template-columns: 1.5fr 0.85fr 0.95fr 1.05fr;
  }
}
.footer-brand img {
  width: 64px;
  height: 47px;
  object-fit: contain;
  background: #fff;
  border-radius: 9px;
  padding: 5px 7px;
  margin-bottom: 1rem;
}
.footer-brand .footer-tagline {
  font-family: var(--font-display);
  font-size: 1.14rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.9rem;
  letter-spacing: -0.01em;
}
.footer-brand p {
  font-size: 0.92rem;
  color: var(--on-dark-muted);
  max-width: 46ch;
}
.site-footer h4 {
  color: var(--on-dark-strong);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-links li {
  margin-bottom: 0.55rem;
}
.footer-links a {
  color: var(--on-dark);
  font-size: 0.95rem;
}
.footer-links a:hover {
  color: #fff;
}
.footer-contact p {
  font-size: 0.95rem;
  margin-bottom: 0.55rem;
  color: var(--on-dark);
}
.footer-contact a {
  color: var(--on-dark);
}
.footer-contact a:hover {
  color: #fff;
}
.footer-certs {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}
.footer-certs-inner {
  max-width: var(--max);
  margin-inline: auto;
  padding: 1.8rem clamp(1.25rem, 5vw, 2.5rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.05rem;
}
.footer-certs figure {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.cert-chip {
  background: #fff;
  border-radius: 10px;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  flex-shrink: 0;
}
.cert-chip img {
  max-width: 46px;
  max-height: 46px;
  width: auto;
  height: auto;
  object-fit: contain;
}
/* Text-style cert chip (placeholder until an official logo is supplied) */
.cert-chip--text {
  flex-direction: column;
  gap: 1px;
  font-family: var(--font-display);
  color: var(--accent-deep);
  text-align: center;
  line-height: 1;
}
.cert-chip--text strong {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.cert-chip--text span {
  font-size: 0.48rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-3);
}
/* Larger text badge for the trust-page badge wall */
.cert-badge-text {
  width: 110px;
  height: 88px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  border: 1.5px solid var(--line-strong);
  border-radius: 12px;
  font-family: var(--font-display);
  color: var(--accent-deep);
  text-align: center;
}
.cert-badge-text strong {
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.05;
}
.cert-badge-text span {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.footer-certs figcaption {
  font-size: 0.73rem;
  line-height: 1.35;
  color: var(--on-dark-muted);
  max-width: 12ch;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}
.footer-bottom-inner {
  max-width: var(--max);
  margin-inline: auto;
  padding: 1.4rem clamp(1.25rem, 5vw, 2.5rem) 1.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2rem;
  justify-content: space-between;
  font-size: 0.83rem;
  color: var(--on-dark-muted);
}
.footer-bottom-inner p {
  margin: 0;
}
.footer-bottom-inner a {
  color: var(--on-dark-muted);
}
.footer-bottom-inner a:hover {
  color: #fff;
}

/* ---------- Forms ---------- */
.form-grid {
  display: grid;
  gap: 1.15rem;
}
@media (min-width: 680px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }
  .form-grid .form-field--full {
    grid-column: 1 / -1;
  }
}
.form-field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--ink);
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.78rem 0.98rem;
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(14, 91, 201, 0.14);
}
.form-status {
  padding: 0.85rem 1.1rem;
  margin-bottom: 1.1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent-deep);
  background: var(--accent-tint);
  border: 1.5px solid var(--line-strong);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
}
.form-status[hidden] {
  display: none;
}

/* ---------- Motion (slow, purposeful; off under reduced motion) ----------
   .reveal alone has NO effect (no-JS safe). JS adds .reveal-init
   to below-fold elements, then .in when they enter the viewport. */
.reveal-init {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}
.reveal-init.in {
  opacity: 1;
  transform: none;
}
/* Control-layer diagram assembly: JS adds .assemble at load (below-fold
   or first-view), then .in. Elements tagged data-anim stagger via --d. */
.assemble [data-anim] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0s);
}
.assemble [data-anim="link"] {
  transform: none;
}
.assemble.in [data-anim] {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal-init,
  .assemble [data-anim] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------- Utilities ---------- */
.center {
  text-align: center;
}
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; }
.flow > * + * {
  margin-top: 1rem;
}

/* ============================================================
   v2 "World-Class" components (Framework v1.9 refresh)
   New shared blocks: outcome cards, compare table, use-case
   rows, sector cards, risk-shift, regulators-expect, mobile
   surfaces, value table, ctem loop, lift labels.
   ============================================================ */

/* Eyebrow with a leading accent tick (refined section label) */
.eyebrow--tick {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.eyebrow--tick::before {
  content: "";
  width: 1.4rem;
  height: 2px;
  background: var(--accent);
}
.band .eyebrow--tick::before,
.page-hero .eyebrow--tick::before {
  background: var(--accent-dark);
}

/* ---------- Four outcomes (Detection · Response · Evidence · Resilience) ---------- */
.outcome-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .outcome-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1080px) {
  .outcome-grid { grid-template-columns: repeat(4, 1fr); }
}
.outcome-card {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.7rem 1.55rem 1.6rem;
  box-shadow: var(--shadow-1);
  overflow: hidden;
}
.outcome-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--accent);
  opacity: 0.85;
}
.outcome-card .outcome-step {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.outcome-card h3 {
  margin: 0.5rem 0 0.5rem;
  font-size: 1.32rem;
}
.outcome-card p {
  margin: 0 0 0.9rem;
  color: var(--ink-2);
  font-size: 0.96rem;
}
.outcome-card .outcome-products {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-deep);
}
.band .outcome-card {
  background: rgba(255, 255, 255, 0.045);
  box-shadow: none;
}
.band .outcome-card h3 { color: #fff; }
.band .outcome-card p { color: var(--on-dark); }
.band .outcome-card .outcome-products { color: var(--accent-dark); }

/* ---------- Risk-shift cards (Threats faster · Impact wider · Accountability higher) ---------- */
.shift-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.8rem 1.7rem;
  box-shadow: var(--shadow-1);
}
.shift-card .shift-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--accent-tint);
  color: var(--accent-deep);
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 1rem;
}
.shift-card h3 { margin: 0 0 0.5rem; }
.shift-card p { margin: 0; color: var(--ink-2); font-size: 0.96rem; }
.band .shift-card { background: rgba(255,255,255,0.045); box-shadow: none; }
.band .shift-card h3 { color: #fff; }
.band .shift-card p { color: var(--on-dark); }
.band .shift-card .shift-index { background: rgba(91,155,255,0.15); color: var(--accent-dark); }

/* ---------- Comparison table (point-tool stack vs Sentient Spire) ---------- */
.compare {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-1);
  font-size: 0.95rem;
}
.compare th,
.compare td {
  padding: 1rem 1.3rem;
  text-align: left;
  vertical-align: top;
  border-top: 1px solid var(--line);
}
.compare thead th {
  border-top: 0;
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  background: var(--surface-2);
}
.compare thead th.compare-xi {
  color: #fff;
  background: var(--ink-deep);
}
.compare tbody th {
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  width: 1%;
}
.compare td.compare-old { color: var(--ink-3); }
.compare td.compare-xi {
  color: var(--ink);
  font-weight: 600;
  background: var(--accent-tint);
}
.compare td.compare-xi::before {
  content: "";
  display: inline-block;
  width: 0.85rem;
  height: 0.5rem;
  margin-right: 0.5rem;
  border-left: 2.5px solid var(--accent);
  border-bottom: 2.5px solid var(--accent);
  transform: rotate(-45deg) translateY(-1px);
}

/* ---------- Use-case rows ---------- */
.use-case {
  display: grid;
  gap: 0.4rem 2rem;
  padding: 1.6rem 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.use-case:first-child { border-top: 0; }
@media (min-width: 880px) {
  .use-case { grid-template-columns: 1.1fr 1.4fr 1.4fr; }
}
.use-case h3 {
  margin: 0;
  font-size: 1.12rem;
}
.use-case .uc-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 0.3rem;
}
.use-case p { margin: 0; color: var(--ink-2); font-size: 0.95rem; }
.use-case .uc-value { color: var(--ink); }
.use-case .uc-enabled {
  margin-top: 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-deep);
}

/* ---------- Sector cards (pressure / gap / role / outcome / entry points) ---------- */
.sector-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.9rem 1.8rem;
  box-shadow: var(--shadow-1);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.sector-card > h3 {
  margin: 0;
  font-size: 1.28rem;
}
.sector-card .sector-tag {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-deep);
}
.sector-card .sector-line {
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}
.sector-block .sb-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 0.45rem;
}
.sector-block ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.sector-block li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: 0.35rem;
  font-size: 0.92rem;
  color: var(--ink-2);
}
.sector-block li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--line-strong);
}
.sector-outcome {
  font-size: 0.95rem;
  color: var(--ink);
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}
.sector-outcome strong { color: var(--accent-deep); }
.entry-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.entry-chips .chip {
  padding: 0.28rem 0.7rem;
  background: var(--surface-2);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-2);
}

/* ---------- CTEM loop (compact horizontal numbered step row) ---------- */
.ctem-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  counter-reset: ctem;
}
@media (min-width: 760px) {
  .ctem-steps { grid-template-columns: repeat(5, 1fr); gap: 0; }
}
.ctem-steps li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0 1.3rem 0 0;
}
.ctem-steps li .num { margin-bottom: 0.15rem; }
/* connector line between steps on wide screens */
@media (min-width: 760px) {
  .ctem-steps li { padding: 0 1.1rem; align-items: center; text-align: center; }
  .ctem-steps li::before {
    content: "";
    position: absolute;
    top: 20px;
    left: calc(-50% + 20px);
    width: calc(100% - 40px);
    height: 2px;
    background: var(--line-strong);
    z-index: 0;
  }
  .ctem-steps li:first-child::before { display: none; }
  .ctem-steps li .num { position: relative; z-index: 1; }
}
.ctem-steps .ctem-name {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--ink);
}
.ctem-steps .ctem-note {
  font-size: 0.9rem;
  color: var(--ink-2);
  line-height: 1.5;
}

/* ---------- Mobile surfaces (Consumer App / SDK / Console) ---------- */
.surface-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.8rem 1.7rem;
  box-shadow: var(--shadow-1);
}
.surface-card .surface-k {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-deep);
  display: block;
  margin-bottom: 0.5rem;
}
.surface-card h3 { margin: 0 0 0.5rem; }
.surface-card p { margin: 0; color: var(--ink-2); font-size: 0.95rem; }

/* ---------- "Regulators now expect" / value table ---------- */
.expect-table th[scope="row"] { white-space: normal; }

/* ---------- CTEM loop (Orion) ---------- */
.ctem-step {
  fill: var(--surface);
  stroke: var(--line-strong);
  stroke-width: 1.5;
}

/* ============================================================
   v2.1 "Signature" — animated control-layer, hero hook,
   cursor-reactive glow, statement moments. All motion is
   disabled under prefers-reduced-motion by the global rule.
   ============================================================ */

/* Hero hook — the memorable line under the lede */
.hero-hook {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  margin: 1.6rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.5rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--on-dark-strong);
  max-width: 30ch;
}
.hero-hook::before {
  content: "";
  flex: 0 0 auto;
  width: 1.6rem;
  height: 3px;
  margin-top: 0.7em;
  background: var(--accent-dark);
}

/* Signals streaming up into the control layer (the signature motif) */
.hero-signal {
  fill: #7fb0ff;
  animation: signal-up 2.8s var(--ease) infinite;
}
@keyframes signal-up {
  0% { transform: translateY(0); opacity: 0; }
  14% { opacity: 1; }
  86% { opacity: 0.9; }
  100% { transform: translateY(-122px); opacity: 0; }
}
/* the control layer "breathes" as it reasons */
.hero-layer-glow {
  animation: layer-pulse 2.8s ease-in-out infinite;
  transform-origin: center;
}
@keyframes layer-pulse {
  0%, 100% { opacity: 0.16; }
  50% { opacity: 0.42; }
}

/* Cursor-reactive glow on dark heroes (desktop pointers only; JS sets --mx/--my) */
@media (hover: hover) and (pointer: fine) {
  .hero.cursor-glow::before {
    background:
      radial-gradient(420px 320px at var(--mx, 20%) var(--my, 15%), rgba(91, 155, 255, 0.22), transparent 60%),
      radial-gradient(1100px 480px at 14% -12%, rgba(46, 99, 196, 0.16), transparent 62%),
      radial-gradient(900px 420px at 92% 112%, rgba(46, 99, 196, 0.07), transparent 60%);
    transition: background 0.2s ease;
  }
}

/* Statement moments — full-bleed framework pull-quotes between sections */
.statement {
  padding-block: clamp(4rem, 8vw, 7rem);
}
.statement .wrap {
  max-width: 1000px;
  text-align: center;
}
.statement p {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 1.2rem + 2vw, 3rem);
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0;
  text-wrap: balance;
}
.statement p .accent {
  color: var(--accent-dark);
}
.statement cite {
  display: block;
  margin-top: 1.4rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  font-style: normal;
  letter-spacing: 0.02em;
  color: var(--on-dark-muted);
}

/* ---------- Control-gap selector (interactive, dark band) ---------- */
.gap-finder {
  display: grid;
  gap: 1.4rem;
}
@media (min-width: 920px) {
  .gap-finder {
    grid-template-columns: 320px 1fr;
    align-items: start;
  }
}
.gap-tablist {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
@media (max-width: 919px) {
  .gap-tablist {
    flex-direction: row;
    flex-wrap: wrap;
  }
}
.gap-tab {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-align: left;
  padding: 0.9rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--on-dark);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
@media (min-width: 920px) {
  .gap-tab { width: 100%; }
}
.gap-tab:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.gap-tab[aria-selected="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.gap-tab .gap-num {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  opacity: 0.7;
  font-variant-numeric: tabular-nums;
}
.gap-panel {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 3vw, 2.5rem);
}
.gap-panel[hidden] { display: none; }
.gap-panel .gap-issue {
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
  margin: 0 0 0.5rem;
}
.gap-panel h3 {
  color: #fff;
  font-size: clamp(1.3rem, 1.1rem + 0.7vw, 1.7rem);
  margin: 0 0 0.9rem;
}
.gap-panel .gap-how {
  color: var(--on-dark);
  margin: 0 0 1.2rem;
  max-width: 60ch;
}
.gap-enabled {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 1.4rem;
}
.gap-enabled .gap-enabled-label {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
  margin-right: 0.2rem;
}
.gap-enabled .chip {
  padding: 0.3rem 0.75rem;
  background: rgba(91, 155, 255, 0.15);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-dark);
}

/* ---------- Trademark superscript on the XI logo (mark filed → ™) ---------- */
.brand-mark {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
}
.brand-tm {
  position: absolute;
  top: -0.15em;
  right: -0.62em;
  font-family: var(--font-body);
  font-size: 0.58rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  color: var(--ink-3);
  pointer-events: none;
}
.site-footer .brand-tm {
  color: var(--on-dark-muted);
  font-size: 0.62rem;
  right: -0.7em;
}
.footer-brand .brand-mark {
  display: block;
  width: max-content;
  margin-bottom: 1rem;
}
.footer-brand .brand-mark img {
  margin-bottom: 0;
}

/* ---------- Product-in-action shot (framed illustrative UI) ---------- */
.product-shot {
  background: #0d1626;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: var(--shadow-2);
  overflow: hidden;
}
.product-shot .ps-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.95rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.025);
}
.product-shot .ps-dots {
  display: flex;
  gap: 0.35rem;
}
.product-shot .ps-dots span {
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}
.product-shot .ps-title {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--on-dark);
  letter-spacing: 0.01em;
}
.product-shot .ps-tag {
  margin-left: auto;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 0.16rem 0.55rem;
}
.product-shot svg {
  display: block;
  width: 100%;
  height: auto;
}
.product-shot figcaption {
  padding: 0;
}
/* subtle animated "live" dot for shots */
.ps-live {
  animation: ps-blink 2.4s ease-in-out infinite;
}
@keyframes ps-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

/* ============================================================
   Pinned product showcase — "the suite in action"
   Default (mobile / no-JS / reduced-motion): clean stacked rows.
   Enhanced (desktop + JS + motion): sticky pinned stage, the
   product mockups cross-fade as you scroll. JS adds .is-enhanced.
   ============================================================ */
.showcase .section-head { max-width: 760px; }
.showcase-track { position: relative; }
.showcase-viewport { }
.showcase-stage { }
.showcase-slides {
  display: grid;
  gap: clamp(3rem, 7vw, 5.5rem);
}
.showcase-slide {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  align-items: center;
}
@media (min-width: 940px) {
  .showcase-slide {
    grid-template-columns: 4.6fr 7fr;
  }
}
.showcase-copy .eyebrow { color: var(--on-dark-muted); margin-bottom: 0.7rem; }
.showcase-copy h3 {
  font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.6rem);
  color: var(--on-dark-strong);
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
}
.showcase-copy p { color: var(--on-dark); max-width: 42ch; margin-bottom: 1.2rem; }
.showcase-copy .arrow-link { color: var(--accent-dark); }
.showcase-shot { margin: 0; }
/* progress rail — hidden until enhanced */
.showcase-rail { display: none; }

/* ---------- Enhanced: pinned stage ---------- */
.showcase.is-enhanced .showcase-track {
  height: calc(var(--sc-n, 5) * 78vh);
}
.showcase.is-enhanced .showcase-viewport {
  position: sticky;
  top: var(--header-h);
  height: calc(100vh - var(--header-h));
  height: calc(100dvh - var(--header-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.showcase.is-enhanced .showcase-viewport > .wrap { width: 100%; }
.showcase.is-enhanced .showcase-slides {
  position: relative;
  display: block;
  width: 100%;
  min-height: 58vh;
}
.showcase.is-enhanced .showcase-slide {
  position: absolute;
  inset: 0;
  margin: auto;
  height: max-content;
  align-content: center;
  opacity: 0;
  transform: translateY(18px) scale(0.988);
  transition: opacity 0.55s var(--ease), transform 0.7s var(--ease);
  pointer-events: none;
  will-change: opacity, transform;
}
.showcase.is-enhanced .showcase-slide.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
/* progress rail (top of pinned stage) */
.showcase.is-enhanced .showcase-rail {
  display: flex;
  gap: 0.4rem 1.4rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: clamp(1.6rem, 3vw, 2.6rem);
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.showcase-rail button {
  appearance: none;
  background: none;
  border: 0;
  padding: 0.2rem 0;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--on-dark-muted);
  position: relative;
  transition: color 0.3s var(--ease);
}
.showcase-rail button::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -1rem;
  height: 2px;
  background: var(--accent-dark);
  transition: right 0.4s var(--ease);
}
.showcase-rail button[aria-current="true"] { color: var(--on-dark-strong); }
.showcase-rail button[aria-current="true"]::after { right: 0; }
.showcase-rail .sc-count {
  margin-left: auto;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--on-dark-muted);
  letter-spacing: 0.06em;
}
.showcase-rail .sc-count b { color: var(--accent-dark); }
@media (max-width: 620px) { .showcase-rail .sc-count { display: none; } }

/* ============================================================
   Motion polish v3 — cross-page View Transitions + hero entrance
   ============================================================ */

/* Cross-document (MPA) view transitions — native, progressive.
   Browsers without support simply navigate normally. */
@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.42s;
  animation-timing-function: var(--ease);
}
/* The header stays put across navigations instead of cross-fading */
.site-header { view-transition-name: xi-header; }

/* First-paint hero entrance — pure CSS (no JS, no flash), staggered.
   Runs only when the visitor hasn't asked to reduce motion. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes intro-up {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: none; }
  }
  @keyframes intro-h1 {
    from { opacity: 0; transform: translateY(10px); clip-path: inset(-0.12em -0.2em 108% -0.2em); }
    to { opacity: 1; transform: none; clip-path: inset(-0.12em -0.2em -0.25em -0.2em); }
  }
  .hero .hero-kicker { animation: intro-up 0.7s var(--ease) both; animation-delay: 0.08s; }
  .hero h1 { animation: intro-h1 0.9s var(--ease) both; animation-delay: 0.2s; }
  .hero .lede { animation: intro-up 0.75s var(--ease) both; animation-delay: 0.44s; }
  .hero .hero-hook { animation: intro-up 0.7s var(--ease) both; animation-delay: 0.58s; }
  .hero .btn-row { animation: intro-up 0.7s var(--ease) both; animation-delay: 0.7s; }
  /* Interior page heroes get a gentler two-beat entrance */
  .page-hero .eyebrow { animation: intro-up 0.6s var(--ease) both; animation-delay: 0.05s; }
  .page-hero h1 { animation: intro-h1 0.85s var(--ease) both; animation-delay: 0.16s; }
  .page-hero .lede { animation: intro-up 0.7s var(--ease) both; animation-delay: 0.38s; }
}

/* Reduced motion: disable view-transition animations entirely */
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) { animation: none !important; }
}

/* ============================================================
   Living hero — the control layer feels alive
   Data flows UP the connectors into the control layer, which
   periodically resolves a signal into a "contained" pulse; the
   estate below breathes quietly. Auto-stilled under reduced-motion.
   ============================================================ */
.hero-flow line {
  animation: flow-up 1.9s linear infinite;
}
@keyframes flow-up { to { stroke-dashoffset: -14; } }

.hero-pulse {
  transform-box: fill-box;
  transform-origin: center;
  animation: contained-pulse 3.8s ease-out infinite;
}
.hero-pulse--2 { animation-delay: 1.9s; }
@keyframes contained-pulse {
  0% { transform: scale(0.45); opacity: 0; }
  10% { opacity: 0.6; }
  70% { transform: scale(2.6); opacity: 0; }
  100% { opacity: 0; }
}

.hero-estate rect {
  animation: estate-breathe 6.5s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}
.hero-estate rect:nth-child(2) { animation-delay: 0.5s; }
.hero-estate rect:nth-child(3) { animation-delay: 1s; }
.hero-estate rect:nth-child(4) { animation-delay: 1.5s; }
.hero-estate rect:nth-child(5) { animation-delay: 2s; }
.hero-estate rect:nth-child(6) { animation-delay: 2.5s; }
.hero-estate rect:nth-child(7) { animation-delay: 3s; }
@keyframes estate-breathe { 0%, 100% { opacity: 1; } 50% { opacity: 0.93; } }

/* ============================================================
   Scrollytelling — convergence paths draw ON toward the centre
   as the reframe diagram assembles. .assemble is only added when
   motion is allowed, so no-JS / reduced-motion see fully-drawn paths.
   ============================================================ */
.converge-path { stroke-dasharray: 1; }
.assemble .converge-path { stroke-dashoffset: 1; }
.assemble.in .converge-path {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.85s var(--ease);
  transition-delay: calc(var(--d, 0s) + 0.18s);
}

/* Wide chip variant — for landscape wordmark logos (CyberSecurity Malaysia,
   GDPR) that would be a thin strip in the square chip. Lets them render at a
   legible size while keeping the row height consistent. */
.cert-chip--wide {
  width: auto;
  min-width: 104px;
  max-width: 132px;
  padding: 6px 12px;
}
.cert-chip--wide img {
  max-width: 108px;
  max-height: 42px;
}

/* Pinned product showcase — mobile (the scroll-through now runs on phones too) */
@media (max-width: 720px) {
  .showcase.is-enhanced .showcase-track {
    height: calc(var(--sc-n, 5) * 88vh);
  }
  .showcase.is-enhanced .showcase-slides {
    min-height: calc(100dvh - var(--header-h) - 56px);
  }
  .showcase.is-enhanced .showcase-slide {
    gap: 1.1rem;
    transform: translateY(14px) scale(0.99);
  }
  .showcase.is-enhanced .showcase-copy h3 {
    font-size: 1.5rem;
    margin-bottom: 0.4rem;
  }
  .showcase.is-enhanced .showcase-copy p {
    font-size: 0.96rem;
    line-height: 1.5;
    margin-bottom: 0.85rem;
    max-width: none;
  }
  .showcase.is-enhanced .showcase-copy .eyebrow {
    margin-bottom: 0.5rem;
  }
  .showcase.is-enhanced .showcase-shot {
    max-width: 460px;
    margin-inline: auto;
  }
  /* compact the progress rail on small screens */
  .showcase.is-enhanced .showcase-rail {
    gap: 0.3rem 0.85rem;
    margin-bottom: 1.1rem;
    padding-bottom: 0.7rem;
  }
  .showcase.is-enhanced .showcase-rail button {
    font-size: 0.72rem;
    letter-spacing: 0.02em;
  }
  .showcase.is-enhanced .showcase-rail button::after {
    bottom: -0.7rem;
  }
}

/* SUCGV — five capability cards in one row on desktop */
@media (min-width: 1024px) {
  .outcome-grid--5 { grid-template-columns: repeat(5, 1fr); }
}
@media (min-width: 620px) and (max-width: 1023px) {
  .outcome-grid--5 { grid-template-columns: repeat(3, 1fr); }
}

/* Footer positive brand line */
.footer-line { font-size: 0.92rem; font-weight: 600; color: var(--accent-dark); margin: -0.4rem 0 0.9rem; }
