/* S-4 IT Works — site styles.
   Built from the approved design "s4-homepage-brand-colours.html" (1440px canvas, 1320px container).
   Colours, type, radii and spacing come from the tokens below; components never hard-code new values. */

/* ---------- Fonts (self-hosted, latin subset, variable weight) ---------- */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/manrope-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-latin.woff2') format('woff2');
}

/* ---------- Design tokens ---------- */
:root {
  /* Brand */
  --c-ink: #0A0B0D;            /* Near Black: dark sections, primary text */
  --c-footer: #060708;
  --c-cyan: #04AED1;           /* S-4 Cyan: accent only, never text on light backgrounds */
  --c-deep: #00718A;           /* Deep Cyan: buttons and links */
  --c-deep-hover: #005A6E;
  --c-cyan-light: #3FCBE6;     /* accents on dark backgrounds */
  --c-cyan-pale: #8ADDF0;
  --c-stone: #6F6A66;          /* AI / Build / Govern colour coding */
  --c-graphite: #3E3A39;
  --c-white: #FFFFFF;

  /* Warm greys */
  --c-grey-700: #4A4643;
  --c-grey-600: #5E5A57;       /* body text on light */
  --c-grey-500: #8A857F;
  --c-grey-400: #A6A29D;
  --c-grey-350: #B5B0A9;
  --c-grey-300: #C9C5BF;
  --c-grey-200: #D9D6D0;
  --c-border: #E4E1DC;
  --c-rule: #EEECE8;

  /* Cyan tints used in illustrations and chips */
  --c-cyan-ink: #005A6E;
  --c-cyan-mid: #4FB8CC;
  --c-cyan-soft: #8CCFDC;
  --c-cyan-haze: #9FD3DF;
  --c-cyan-border: #D6E9EE;
  --c-cyan-wash: #E3F6FA;

  /* Dark UI surfaces */
  --c-dark-1: #17181B;
  --c-dark-2: #1F2023;
  --c-dark-3: #2A2B2E;

  /* Backgrounds */
  --bg-warm: #F7F6F3;
  --bg-mist: #F2F1EE;
  --bg-cyan: #E8F4F7;
  --bg-white: #FFFFFF;

  --grad-brand: linear-gradient(90deg, #00718A, #04AED1, #3FCBE6);
  --grad-headline: linear-gradient(90deg, #04AED1 0%, #3FCBE6 50%, #B5ECF7 100%);

  /* Type */
  --font-sans: 'Manrope', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --font-logo: 'Baskerville WGL', 'Baskerville', 'Libre Baskerville', Georgia, serif; /* wordmark only */
  --track-tight: -0.035em;
  --track-label: 0.12em;

  /* Radii */
  --r-chip: 8px;
  --r-btn: 12px;
  --r-btn-lg: 14px;
  --r-card-sm: 16px;
  --r-card: 18px;
  --r-card-lg: 24px;
  --r-panel: 28px;
  --r-panel-lg: 32px;
  --r-pill: 999px;

  /* Layout */
  --container: 1320px;
  --gutter: 40px;
  --section-y: 104px;
  --section-y-lg: 112px;
  --section-y-xl: 120px;
  --header-h: 84px;

  --shadow-lift: 0 18px 40px -18px rgba(10, 11, 13, 0.28);
  --focus: 2px solid var(--c-cyan);
}

@media (max-width: 767.98px) {
  :root {
    --gutter: 20px;
    --section-y: 64px;
    --section-y-lg: 64px;
    --section-y-xl: 64px;
    --header-h: 68px;
  }
}
@media (max-width: 399.98px) {
  :root { --gutter: 16px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--bg-warm);
  color: var(--c-ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
@supports (overflow-x: clip) {
  body { overflow-x: clip; }
}
img, svg { max-width: 100%; }
img { display: block; height: auto; }
a { color: var(--c-deep); }
a:hover { color: var(--c-ink); }
h1, h2, h3, h4, p, ol, ul, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
b, strong { font-weight: 700; }
address { font-style: normal; }
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }
:focus-visible { outline: var(--focus); outline-offset: 3px; }
.ic { width: 16px; height: 16px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: var(--r-btn);
  background: var(--c-white);
  color: var(--c-ink);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

/* --container is the content width; gutters sit outside it, as in the design export */
.wrap {
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.section { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.section--lg { padding-top: var(--section-y-lg); padding-bottom: var(--section-y-lg); }
.section--xl { padding-top: var(--section-y-xl); padding-bottom: var(--section-y-xl); }
.stack { display: flex; flex-direction: column; }
.gap-16 { gap: 16px; }
.rule-top { border-top: 1px solid var(--c-border); }

.bg-warm { background: var(--bg-warm); }
.bg-mist { background: var(--bg-mist); }
.bg-cyan { background: var(--bg-cyan); }
.bg-white { background: var(--bg-white); }
.bg-dark { background-color: var(--c-ink); color: var(--c-white); }

/* ---------- Typography ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--c-deep);
}
.eyebrow--cyan { color: var(--c-cyan); }
.eyebrow--light { color: var(--c-cyan-light); }
.eyebrow--graphite { color: var(--c-graphite); }
.eyebrow--ink { color: var(--c-cyan-ink); }

.h1, .h2, .h3 { font-weight: 800; letter-spacing: var(--track-tight); }
.h1 { font-size: clamp(42px, 5.3vw, 76px); line-height: 1; letter-spacing: -0.035em; }
.h2 { --fs: 48px; font-size: clamp(32px, 4.45vw, var(--fs)); line-height: 1.05; }
.h2--sm { --fs: 46px; line-height: 1.08; letter-spacing: -0.03em; }
.h2--lg { --fs: 52px; line-height: 1.04; }
.h2--xl { --fs: 64px; line-height: 1; letter-spacing: -0.04em; }
.h3 { font-size: clamp(28px, 3vw, 38px); line-height: 1.1; letter-spacing: -0.025em; }
.h4 { font-weight: 800; font-size: 24px; line-height: 1.15; letter-spacing: -0.02em; }
.text-deep { color: var(--c-deep); }
.text-grey { color: var(--c-grey-700); }
.lead { font-size: 18px; line-height: 1.65; color: var(--c-grey-600); }
.body-lg { font-size: 17px; line-height: 1.65; color: var(--c-grey-600); }
.on-dark .lead, .on-dark .body-lg { color: var(--c-grey-300); }
.grad-text {
  background: var(--grad-headline);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@media (max-width: 767.98px) {
  .h1 { line-height: 1.04; }
  .h2 { line-height: 1.1; }
  .lead { font-size: 17px; }
}

/* Section intro: label on its own row, then heading and supporting paragraph top-aligned side by side */
.intro {
  --aside-w: 460px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, var(--aside-w));
  column-gap: 80px;
  row-gap: 18px;
  align-items: start;
}
.intro__main { display: contents; }
.intro__main > .eyebrow, .intro__main > .secure__kicker { grid-column: 1 / -1; }
.intro__main > .h2, .intro__main > .h3 { grid-column: 1; }
.intro__aside { grid-column: 2; min-width: 0; }
@media (max-width: 1099.98px) {
  .intro { grid-template-columns: minmax(0, 1fr); }
  .intro__aside { grid-column: 1; max-width: 640px; }
}

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 26px;
  border-radius: var(--r-btn-lg);
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.btn .ic { width: 18px; height: 18px; }
.btn--primary {
  background: var(--c-deep);
  color: var(--c-white);
  box-shadow: 0 14px 40px -12px rgba(4, 174, 209, 0.9);
}
.btn--primary:hover { background: var(--c-deep-hover); color: var(--c-white); transform: translateY(-1px); }
.btn--ghost { border: 1.5px solid rgba(255, 255, 255, 0.4); color: var(--c-white); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: var(--c-white); color: var(--c-white); }
.btn--sm { min-height: 46px; padding: 0 22px; gap: 10px; font-size: 15px; border-radius: var(--r-btn); box-shadow: 0 10px 30px -10px rgba(4, 174, 209, 0.8); }
.btn--sm .ic { width: 16px; height: 16px; }
.btn--lg { min-height: 60px; padding: 0 28px; font-size: 18px; border-radius: 16px; }
.btn--lg.btn--primary { font-weight: 800; box-shadow: 0 18px 50px -14px rgba(4, 174, 209, 0.9); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.arrow-link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 700;
  font-size: 16px;
  color: var(--c-deep);
  text-decoration: none;
}
.arrow-link:hover { color: var(--c-deep-hover); text-decoration: underline; text-underline-offset: 4px; }
.arrow-link--graphite { color: var(--c-graphite); }
.arrow-link--graphite:hover { color: var(--c-ink); }

/* ---------- Chips and tags ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  padding: 6px 11px;
  border-radius: var(--r-pill);
  background: var(--bg-cyan);
  color: var(--c-cyan-ink);
}
.chip--stone { background: var(--bg-mist); color: var(--c-graphite); }
.chip--wash { background: var(--c-cyan-wash); }
.chip--box { border-radius: var(--r-chip); border: 1px solid var(--c-border); background: var(--c-white); color: var(--c-ink); }
.chip--glass { font-size: 12px; padding: 5px 10px; background: rgba(255, 255, 255, 0.1); color: var(--c-white); }
.chip--tag { font-size: 12px; padding: 4px 10px; background: var(--bg-mist); color: var(--c-graphite); }
.chip--code {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--c-ink);
  color: var(--c-cyan-soft);
}

.tagline { display: flex; align-items: center; gap: 10px; }
.tagline__label { font-size: 14px; font-weight: 700; letter-spacing: 0.04em; color: var(--c-deep); }
.tagline__label--graphite { color: var(--c-graphite); }
.tagline--sm .tagline__label { font-size: 13px; }

/* ---------- Card hover (design: lift 3px + shadow) ---------- */
.lift { transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.lift:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: var(--c-cyan-haze); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  color: var(--c-white);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(10, 11, 13, 0.92);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-header.is-scrolled, .site-header.is-open {
    background: rgba(10, 11, 13, 0.8);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }
}
.site-header__bar {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: var(--c-white);
  text-decoration: none;
}
.brand:hover { color: var(--c-white); }
.brand img { width: 32px; height: 38px; }
.brand__name { font-family: var(--font-logo); font-variant-numeric: lining-nums; font-weight: 700; font-size: 19px; line-height: 1; letter-spacing: 0.03em; text-transform: uppercase; white-space: nowrap; }

.site-menu { display: flex; align-items: center; gap: 32px; }
.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.04);
}
.nav a {
  display: flex;
  align-items: center;
  white-space: nowrap;
  min-height: 44px;
  padding: 0 16px;
  border-radius: var(--r-pill);
  color: var(--c-grey-200);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav a:hover { color: var(--c-white); background: rgba(255, 255, 255, 0.06); }
.nav a[aria-current] { color: var(--c-white); background: rgba(255, 255, 255, 0.1); }

/* "About Us" dropdown: a disclosure button that shows Why S-4 and Leadership */
.nav__group { position: relative; }
.nav__toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 14px 0 16px;
  border: 0;
  border-radius: var(--r-pill);
  background: none;
  color: var(--c-grey-200);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav__toggle:hover,
.nav__toggle[aria-expanded="true"] { color: var(--c-white); background: rgba(255, 255, 255, 0.06); }
.nav__group:has([aria-current]) .nav__toggle { color: var(--c-white); background: rgba(255, 255, 255, 0.1); }
.nav__chev { width: 14px; height: 14px; transition: transform 0.15s ease; }
.nav__toggle[aria-expanded="true"] .nav__chev { transform: rotate(180deg); }
.nav__sub {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 200px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-card-sm);
  background: rgba(10, 11, 13, 0.96);
  box-shadow: var(--shadow-lift);
}
/* Bridges the gap under the button so the pointer can reach the panel */
.nav__sub::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 12px; }
.nav__toggle[aria-expanded="true"] + .nav__sub,
html:not(.js) .nav__group:focus-within .nav__sub { display: block; }
@media (hover: hover) and (min-width: 1024px) {
  .nav__group:hover .nav__sub { display: block; }
  .nav__group:hover .nav__chev { transform: rotate(180deg); }
}
.nav__sub a { border-radius: var(--r-chip); }

.menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--r-btn);
  background: transparent;
  color: var(--c-white);
  cursor: pointer;
}
.menu-btn .ic { width: 22px; height: 22px; }
.menu-btn .ic-close { display: none; }
.menu-btn[aria-expanded="true"] .ic-open { display: none; }
.menu-btn[aria-expanded="true"] .ic-close { display: block; }

/* Laptop widths: tighten the pill menu so it stays on one row with the logo and button */
@media (max-width: 1199.98px) {
  .site-header__bar { gap: 12px 16px; }
  .site-menu { gap: 12px; }
  .nav { gap: 0; }
  .nav a { padding: 0 10px; font-size: 14px; }
  .nav__toggle { padding: 0 8px 0 10px; font-size: 14px; }
  .nav__sub a { padding: 0 12px; }
  .site-menu .btn--sm { padding: 0 16px; }
}

/* Below 1024px the six links no longer fit beside the logo: menu collapses behind the menu button */
@media (max-width: 1023.98px) {
  .menu-btn { display: inline-flex; }
  .site-header__bar { flex-wrap: wrap; }
  .js .site-menu { display: none; }
  .js .site-header.is-open .site-menu { display: flex; }
  .site-menu {
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 4px 0 24px;
    max-height: calc(100vh - var(--header-h));
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
  }
  .nav {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 0;
    border: 0;
    background: none;
  }
  .nav a {
    min-height: 52px;
    padding: 0 4px;
    border-radius: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 18px;
  }
  .nav a:hover, .nav a[aria-current] { background: none; }
  .nav a[aria-current] { color: var(--c-cyan-light); }
  /* The dropdown opens in place as an indented list */
  .nav__toggle {
    justify-content: space-between;
    width: 100%;
    min-height: 52px;
    padding: 0 4px;
    border-radius: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 18px;
  }
  .nav__toggle:hover, .nav__toggle[aria-expanded="true"],
  .nav__group:has([aria-current]) .nav__toggle { background: none; }
  .nav__chev { width: 18px; height: 18px; }
  .nav__sub {
    position: static;
    min-width: 0;
    padding: 0 0 0 16px;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
  }
  .nav__sub::before { content: none; }
  html:not(.js) .nav__sub { display: block; }
  .nav__sub a { border-radius: 0; font-size: 16px; }
  .site-menu .btn { width: 100%; min-height: 52px; }
  /* Opaque while open so hero content doesn't show through the menu */
  .site-header.is-open { background: var(--c-ink); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: var(--header-h);
  background-image:
    radial-gradient(760px 520px at 82% 18%, rgba(138, 133, 127, 0.38), transparent 62%),
    radial-gradient(620px 420px at 58% 96%, rgba(4, 174, 209, 0.2), transparent 64%),
    radial-gradient(520px 380px at 6% 10%, rgba(4, 174, 209, 0.22), transparent 60%),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: auto, auto, auto, 56px 56px, 56px 56px;
}
.hero__grid {
  padding-top: 56px;
  padding-bottom: 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}
.hero__copy { flex: 1 1 540px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.hero__copy .eyebrow { letter-spacing: 0.14em; }
.hero__copy .h1 { max-width: 660px; }
.hero__copy .lead { font-size: 20px; line-height: 1.55; color: var(--c-grey-300); max-width: 560px; }
.hero__art { flex: 1 1 520px; min-width: 0; position: relative; display: flex; justify-content: center; }
/* Two drawings of the same diagram: a labelled one, and a compact one with a legend for phones,
   where the labels would shrink below a readable size */
.hero__diagram { width: 100%; height: auto; display: block; }
.hero__diagram--full { max-width: 640px; }
.hero__diagram--compact { display: none; max-width: 400px; }
.hero__legend { display: none; }

/* Diagram labels: leader line from the layer edge to number / name / detail, as on the previous site */
.hl__lead { stroke: rgba(255, 255, 255, 0.3); stroke-width: 1; }
.hl__dot { fill: var(--c-white); }
.hl text { font-family: var(--font-mono); font-size: 14px; letter-spacing: 0.05em; }
.hl__num { font-weight: 500; fill: var(--c-cyan-light); }
.hl__name { font-weight: 500; fill: var(--c-white); }
.hl__sub { letter-spacing: 0.03em; fill: var(--c-grey-400); }
.hl--l1 .hl__num, .hero__legend .hl--l1 { fill: var(--c-cyan-soft); color: var(--c-cyan-soft); }
.hl--l2 .hl__num, .hero__legend .hl--l2 { fill: var(--c-cyan-pale); color: var(--c-cyan-pale); }
.hl--l3 .hl__num, .hero__legend .hl--l3 { fill: var(--c-grey-200); color: var(--c-grey-200); }
.hl--env .hl__num { fill: var(--c-grey-350); }
.hl__tag text { font-family: var(--font-mono); font-size: 20px; font-weight: 500; }

@media (max-width: 599.98px) {
  .hero__diagram--full { display: none; }
  .hero__diagram--compact { display: block; margin: 0 auto; }
  .hero__art { flex-direction: column; align-items: center; gap: 16px; }
  .hero__legend {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 16px;
    width: 100%;
    max-width: 400px;
    font-size: 13px;
    line-height: 1.4;
    color: var(--c-grey-300);
  }
  .hero__legend b { font-family: var(--font-mono); font-weight: 500; margin-right: 4px; color: var(--c-grey-350); }
  .hero__legend-wide { grid-column: 1 / -1; }
}

.disciplines {
  padding-top: 8px;
  padding-bottom: 56px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.discipline {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 22px;
  border-radius: var(--r-card-sm);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: var(--c-white);
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.discipline:hover { color: var(--c-white); border-color: rgba(255, 255, 255, 0.5); }
.discipline__name { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; line-height: 1.3; }
.discipline__desc { font-size: 14px; line-height: 1.45; color: var(--c-grey-300); }
/* Icon tiles, as in the hero status chips: a plain grey dot read as "disabled" for Build */
.swatch {
  width: 28px; height: 28px;
  border-radius: var(--r-chip);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--c-deep);
  color: var(--c-white);
}
.swatch .ic { width: 15px; height: 15px; stroke-width: 1.6; }
.swatch--stone { background: var(--c-stone); }
.swatch--mix { background: linear-gradient(135deg, var(--c-deep), var(--c-stone)); }
.swatch--cyan { background: var(--c-cyan); color: var(--c-ink); }
.swatch--cyan .ic { stroke-width: 1.8; }

@media (max-width: 1023.98px) {
  .disciplines { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767.98px) {
  .hero__grid { padding-top: 32px; gap: 32px; }
  .hero__copy { gap: 22px; }
  .hero__copy .lead { font-size: 18px; }
  .hero__copy .btn { flex: 1 1 auto; }
  .disciplines { gap: 10px; padding-bottom: 48px; }
  .discipline { padding: 16px; }
  .discipline__name { font-size: 18px; }
  .discipline__desc { font-size: 13px; }
}

/* Hero diagram animations */
.anim-dash { stroke-dasharray: 10 14; animation: dash 2.4s linear infinite; }
.anim-orbit { offset-path: path("M8,356 A228,132 0 1 0 464,356 A228,132 0 1 0 8,356"); animation: orbit 16s linear infinite; }
.anim-pulse { animation: pulse 2.6s ease-out infinite; transform-box: fill-box; transform-origin: center; }
.flow-v {
  display: block;
  width: 2px;
  background-image: repeating-linear-gradient(180deg, var(--c-cyan) 0 6px, transparent 6px 12px);
  background-size: 2px 24px;
  animation: flow-v 1.2s linear infinite;
}
.flow-h {
  display: block;
  width: 100%;
  height: 2px;
  background-image: repeating-linear-gradient(90deg, var(--c-deep) 0 8px, transparent 8px 16px);
  background-size: 32px 2px;
  animation: flow-h 1.4s linear infinite;
}
@keyframes flow-v { to { background-position: 0 24px; } }
@keyframes flow-h { to { background-position: 32px 0; } }
@keyframes dash { to { stroke-dashoffset: -48; } }
@keyframes orbit { from { offset-distance: 0%; } to { offset-distance: 100%; } }
@keyframes pulse { 0% { transform: scale(0.6); opacity: 0.9; } 100% { transform: scale(2.4); opacity: 0; } }

/* ---------- Challenge ---------- */
.challenge { display: flex; flex-direction: column; gap: 48px; }
.challenge .intro { --aside-w: 520px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1023.98px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 559.98px) { .grid-4 { grid-template-columns: minmax(0, 1fr); } }
.card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-card);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.card__title { font-size: 18px; font-weight: 700; line-height: 1.35; }
.card__text { font-size: 15px; line-height: 1.55; color: var(--c-grey-600); }
.icon-tile {
  width: 40px; height: 40px;
  border-radius: var(--r-btn);
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-cyan);
  color: var(--c-deep);
}
.icon-tile .ic { width: 18px; height: 18px; stroke-width: 1.6; }
.icon-tile--stone { background: var(--bg-mist); color: var(--c-grey-700); }
.icon-tile--wash { background: var(--c-cyan-wash); color: #037F99; }

/* ---------- Capabilities ---------- */
.caps-head { padding-top: var(--section-y); padding-bottom: 40px; }
.caps-head.intro { --aside-w: 480px; }
.cap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px 72px;
}
.cap--dc { padding-top: 48px; padding-bottom: 88px; }
.cap--apps { padding-top: 96px; padding-bottom: 96px; flex-wrap: wrap-reverse; }
.cap__copy { flex: 1 1 500px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.cap__art { flex: 1 1 500px; min-width: 0; }
.cap__summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.summary {
  border-radius: var(--r-btn-lg);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--c-white);
}
.summary--cyan { background: var(--bg-cyan); }
.summary--outline { background: var(--bg-warm); border: 1px solid var(--c-border); }
.summary--outline-mist { background: rgba(255, 255, 255, 0.5); border: 1px solid var(--c-border); }
.summary--outline-cyan { background: rgba(255, 255, 255, 0.55); border: 1px solid var(--c-cyan-border); }
.summary__label { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; color: var(--c-deep); }
.summary__label--grey { color: var(--c-grey-600); }
.summary__label--graphite { color: var(--c-graphite); }
.summary__text { font-size: 15px; line-height: 1.45; }

.ticks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
.ticks li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--c-rule);
  font-size: 15px;
  line-height: 1.4;
}
.ticks li::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 2px;
  flex-shrink: 0;
  background: var(--tick, var(--c-deep));
}
.ticks--stone { --tick: var(--c-stone); }
.ticks--stone li { border-color: var(--c-border); }
.ticks--cyan { --tick: var(--c-cyan); }
.ticks--cyan li { border-color: var(--c-cyan-border); }
@media (max-width: 479.98px) {
  .ticks { grid-template-columns: minmax(0, 1fr); }
  .cap__summary { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767.98px) {
  .cap--dc { padding-top: 32px; padding-bottom: 64px; }
  .cap--apps { padding-top: 64px; padding-bottom: 64px; }
  .cap { gap: 32px; }
}

/* 01 illustration: rack + cloud */
.ill-dc {
  background: linear-gradient(160deg, var(--bg-cyan), #F4F9FA);
  border: 1px solid var(--c-cyan-border);
  border-radius: var(--r-panel);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.ill-dc__row { display: flex; align-items: stretch; }
.ill-dc__box {
  flex: 1 1 0;
  min-width: 0;
  background: var(--c-white);
  border: 1px solid var(--c-cyan-border);
  border-radius: var(--r-card);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 14px 30px -20px rgba(4, 174, 209, 0.5);
}
.mono-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; color: var(--c-grey-600); }
.ill-caption { font-size: 13px; font-weight: 700; line-height: 1.35; }
.rack {
  height: 22px;
  border-radius: 6px;
  background: var(--c-ink);
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 8px;
}
.rack i { width: 5px; height: 5px; border-radius: 50%; background: var(--c-cyan); }
.rack i.d { background: var(--c-deep); }
.rack::after { content: ""; flex: 1; height: 2px; background: var(--c-dark-3); }
.cloud-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.cloud-grid i { height: 30px; border-radius: var(--r-chip); background: var(--c-deep); }
.cloud-grid i.m { background: var(--c-cyan-mid); }
.cloud-grid i.h { background: var(--c-cyan-haze); }
.cloud-grid i.w { background: #D2EEF4; }
.ill-dc__link {
  flex: 0 0 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.ill-dc__link .mono-label { color: var(--c-deep); letter-spacing: 0; }
.ill-dc__bar {
  background: var(--c-ink);
  color: var(--c-white);
  border-radius: var(--r-card-sm);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
}
.ill-dc__bar-title { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; }
.ill-dc__bar-title .ic { color: var(--c-cyan); }
.ill-dc__bar .mono-label { color: var(--c-cyan-pale); letter-spacing: 0; }
@media (max-width: 767.98px) {
  .ill-dc { padding: 20px; }
  .ill-dc__box { padding: 14px; }
  .ill-dc__link { flex-basis: 40px; }
  .ill-dc__link .mono-label { font-size: 9px; }
}

/* 02 illustration: agentic workflow */
.ill-flow {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-panel);
  padding: 32px;
  box-shadow: 0 30px 60px -40px rgba(138, 133, 127, 0.6);
}
.ill-flow__head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 20px; }
.ill-flow__head .mono-label { color: var(--c-grey-700); }
.steps { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 16px; }
.steps__rail { display: flex; flex-direction: column; align-items: center; }
.steps__rail .flow-v { flex: 1; min-height: 20px; }
.step-num {
  width: 32px; height: 32px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  background: var(--bg-cyan);
  color: var(--c-deep);
}
.step-num--stone { background: var(--c-stone); color: var(--c-white); }
.step-num--done { background: var(--c-cyan); color: var(--c-ink); }
.step-num--done .ic { width: 15px; height: 15px; stroke-width: 2.2; }
.steps__body { padding: 4px 0 18px; display: flex; flex-direction: column; gap: 8px; }
.steps__body--tight { gap: 2px; }
.steps__body--last { padding-bottom: 0; }
.steps__title { font-size: 16px; font-weight: 700; line-height: 1.4; }
.steps__note { font-size: 14px; color: var(--c-grey-600); line-height: 1.5; }
@media (max-width: 767.98px) {
  .ill-flow { padding: 22px; }
}

/* 03–05: the security envelope */
.secure { padding-top: 96px; padding-bottom: 88px; display: flex; flex-direction: column; gap: 36px; }
.secure__head { --aside-w: 400px; }
.secure__head .h3 { max-width: 720px; }
.secure__kicker {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: linear-gradient(90deg, var(--c-deep), var(--c-grey-700));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.secure__note { font-size: 15px; line-height: 1.55; color: var(--c-grey-600); }
.secure__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 20px; }
@media (max-width: 767.98px) {
  .secure { padding-top: 64px; padding-bottom: 64px; }
}

.sec-card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-card-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.sec-card__art { height: 220px; padding: 22px; }
.sec-card__body { padding: 26px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.sec-card__text { font-size: 15px; line-height: 1.6; color: var(--c-grey-600); }
.sec-card__system { font-size: 13px; line-height: 1.5; color: var(--c-grey-600); }
.sec-card__system b { color: var(--c-ink); }
.sec-card .chips { margin-top: 4px; }

/* 03 art: nested rings */
.sec-card__art--rings { background: var(--c-ink); }
.ring {
  position: relative;
  height: 100%;
  border-radius: var(--r-card-sm);
  border: 1.5px solid var(--c-deep);
  padding: 22px 10px 10px;
}
.ring__label { position: absolute; top: 5px; left: 12px; font-family: var(--font-mono); font-size: 10px; line-height: 1.3; color: var(--c-cyan-soft); }
.ring--2 { border-radius: var(--r-btn); border-color: var(--c-cyan-mid); background: rgba(4, 174, 209, 0.08); padding-top: 20px; }
.ring--2 > .ring__label { top: 4px; left: 10px; color: var(--c-cyan-haze); }
.ring--3 { border-radius: 10px; border-color: var(--c-grey-350); background: rgba(138, 133, 127, 0.12); padding-top: 18px; }
.ring--3 > .ring__label { top: 3px; left: 10px; color: var(--c-grey-200); }
.ring__core {
  height: 100%;
  border-radius: var(--r-chip);
  background: linear-gradient(135deg, var(--c-deep), var(--c-stone));
  display: flex; align-items: center; justify-content: center; gap: 8px;
  color: var(--c-white);
  font-size: 12px;
  font-weight: 700;
}
.ring__core .ic { width: 14px; height: 14px; }

/* 04 art: privacy programme */
.sec-card__art--privacy {
  background: var(--bg-mist);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
.stage-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.stage-tile {
  background: var(--c-white);
  border: 1px solid var(--c-grey-200);
  border-radius: 10px;
  padding: 10px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
}
.stage-tile .n { display: block; font-family: var(--font-mono); font-size: 10px; color: var(--c-grey-700); }
.stage-tile--stone { background: var(--c-stone); border-color: var(--c-stone); color: var(--c-white); }
.stage-tile--stone .n { color: inherit; } /* design used 80% opacity; full white keeps 10px text above 4.5:1 */
.stage-tile--dark { background: var(--c-ink); border-color: var(--c-ink); color: var(--c-white); }
.stage-tile--dark .n { color: var(--c-cyan-pale); }
.continuous { display: flex; align-items: center; gap: 8px; }
.continuous::before, .continuous::after { content: ""; flex: 1; height: 2px; background: linear-gradient(90deg, var(--c-stone), var(--c-cyan)); }
.continuous::after { background: linear-gradient(90deg, var(--c-cyan), var(--c-stone)); }
.continuous span { font-family: var(--font-mono); font-size: 10px; color: var(--c-graphite); }

/* 05 art: asset inventory */
.sec-card__art--assets { background: var(--bg-cyan); display: flex; flex-direction: column; gap: 10px; }
.inv-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.inv-head .mono-label { font-size: 10px; color: var(--c-cyan-ink); }
.legend { display: flex; gap: 10px; font-size: 10px; color: var(--c-grey-600); }
.legend span { display: flex; align-items: center; gap: 4px; }
.legend span::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--c-cyan); }
.legend .review::before { background: var(--c-stone); }
.legend .act::before { background: var(--c-ink); }
.inv-row { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 8px; align-items: center; }
.inv-row > span { font-family: var(--font-mono); font-size: 11px; font-weight: 500; }
.cells { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; }
.cells i { height: 18px; border-radius: 4px; background: var(--c-cyan); }
.cells i.r { background: var(--c-stone); }
.cells i.a { background: var(--c-ink); }
.cells i.e { background: var(--c-cyan-haze); }
.inv-foot {
  margin-top: auto;
  background: var(--c-ink);
  color: var(--c-white);
  border-radius: 10px;
  padding: 9px 12px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
}
.inv-foot .mono { font-family: var(--font-mono); font-weight: 400; color: var(--c-cyan-pale); }

/* 06 operate */
.ops-wrap { padding-bottom: 104px; }
.ops {
  background: var(--bg-cyan);
  border-radius: var(--r-panel-lg);
  padding: 56px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px 64px;
}
.ops .cap__copy { flex-basis: 440px; }
.ops-dash {
  flex: 1 1 520px;
  min-width: 0;
  background: var(--c-ink);
  color: var(--c-white);
  border-radius: var(--r-card-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: 0 40px 70px -40px rgba(10, 11, 13, 0.8);
}
.ops-dash__head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px 12px; }
.ops-dash__live { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; }
.ops-dash__live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c-cyan); box-shadow: 0 0 0 4px rgba(4, 174, 209, 0.2); }
.ops-dash__head .mono-label { color: var(--c-grey-500); letter-spacing: 0; }
.ops-dash > svg { width: 100%; height: auto; display: block; }
.ops-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.ops-step {
  border-radius: var(--r-btn);
  background: var(--c-dark-1);
  border: 1px solid var(--c-dark-3);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}
.ops-step .n { font-family: var(--font-mono); font-size: 10px; font-weight: 400; color: var(--c-cyan-soft); }
.ops-step--predict { border-color: var(--c-grey-350); }
.ops-step--predict .n { color: var(--c-grey-200); }
.ops-step--heal { background: var(--c-cyan); border-color: var(--c-cyan); color: var(--c-ink); }
.ops-step--heal .n { color: inherit; }
@media (max-width: 767.98px) {
  .ops-wrap { padding-bottom: 64px; }
  .ops { padding: 24px; border-radius: var(--r-panel); gap: 32px; }
  .ops-dash { padding: 18px; }
}
@media (max-width: 479.98px) {
  .ops-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Architecture (#system) ---------- */
.system {
  position: relative;
  background-image:
    radial-gradient(700px 500px at 15% 30%, rgba(4, 174, 209, 0.22), transparent 60%),
    radial-gradient(700px 500px at 90% 80%, rgba(138, 133, 127, 0.22), transparent 60%);
}
.system__inner { display: flex; flex-direction: column; gap: 56px; }
.system .intro { --aside-w: 440px; }
/* Diagram and trace panel split 60 / 40; stacked below 1100px */
.system__body { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 40px; align-items: start; }
@media (max-width: 1099.98px) { .system__body { grid-template-columns: minmax(0, 1fr); } }

.orbit {
  min-width: 0;
  position: relative;
  border: 1.5px dashed rgba(4, 174, 209, 0.6);
  border-radius: 36px;
  padding: 48px 28px 24px;
  transition: border-color 0.3s;
}
.orbit__label {
  position: absolute;
  top: -15px; left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  background: var(--c-ink);
  padding: 5px 16px;
  border: 1px solid rgba(4, 174, 209, 0.6);
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--c-cyan-light);
}
.envelope {
  position: relative;
  border-radius: 26px;
  border: 1.5px solid rgba(181, 176, 169, 0.6);
  background: rgba(138, 133, 127, 0.07);
  padding: 44px 24px 24px;
  transition: border-color 0.3s;
}
.envelope__tags {
  position: absolute;
  top: -15px; left: 0; right: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}
.env-tag {
  background: var(--c-ink);
  border: 1px solid var(--c-cyan-mid);
  color: var(--c-cyan-haze);
  border-radius: var(--r-pill);
  padding: 5px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  line-height: 1.4;
}
.env-tag--govern { border-color: var(--c-grey-350); color: var(--c-grey-200); }
.env-tag--assure { border-color: var(--c-cyan-light); color: var(--c-cyan-pale); }
.layer {
  border-radius: var(--r-card);
  padding: 18px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  background: linear-gradient(90deg, rgba(4, 174, 209, 0.4), rgba(4, 174, 209, 0.1));
  border: 1px solid rgba(79, 184, 204, 0.8);
}
.layer--l3 { background: linear-gradient(90deg, rgba(138, 133, 127, 0.38), rgba(138, 133, 127, 0.1)); border-color: rgba(181, 176, 169, 0.7); }
.layer--l2 { background: linear-gradient(90deg, rgba(4, 174, 209, 0.32), rgba(4, 174, 209, 0.08)); border-color: rgba(63, 203, 230, 0.7); }
.layer__name { display: flex; flex-direction: column; gap: 2px; min-width: 180px; }
.layer__name .mono-label { letter-spacing: 0; color: var(--c-cyan-haze); }
.layer--l3 .layer__name .mono-label { color: var(--c-grey-200); }
.layer--l2 .layer__name .mono-label { color: var(--c-cyan-pale); }
.layer__title { font-size: 18px; font-weight: 700; line-height: 1.35; }
.layer-links { display: flex; justify-content: space-around; height: 26px; }
.layer-links .flow-v { height: 26px; }
.ops-loop { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; padding-top: 20px; }
.ops-loop span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--c-cyan-pale);
  padding: 5px 10px;
  border-radius: var(--r-chip);
  background: rgba(4, 174, 209, 0.12);
}
.ops-loop i { font-style: normal; color: var(--c-cyan-light); }

/* Trace-a-capability state: dimmed parts and highlighted rings */
[data-part] { transition: opacity 0.3s; }
[data-part].is-dim { opacity: 0.25; }
.system.has-selection .orbit { border-color: rgba(4, 174, 209, 0.25); }
.system.has-selection .envelope { border-color: rgba(181, 176, 169, 0.25); }
.system.sel-ops .orbit { border-color: var(--c-cyan-light); }
.system.sel-env .envelope { border: 2px solid var(--c-grey-350); }

.trace { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.trace__label { font-size: 13px; font-weight: 700; color: var(--c-grey-500); letter-spacing: 0.06em; }
.trace__buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.trace-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  min-height: 64px;
  padding: 12px 14px;
  border-radius: var(--r-btn-lg);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: var(--c-white);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.trace-btn:hover { border-color: rgba(255, 255, 255, 0.5); }
.trace-btn .n { font-family: var(--font-mono); font-size: 11px; font-weight: 400; color: var(--accent, var(--c-cyan-soft)); }
.trace-btn[aria-pressed="true"] { background: var(--c-white); border-color: var(--c-white); color: var(--c-ink); }
.trace-btn[aria-pressed="true"] .n { color: var(--c-ink); }
.trace-btn--stone { --accent: var(--c-grey-200); }
.trace-btn--pale { --accent: var(--c-cyan-pale); }
.trace__panel {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 230px;
}
.trace__tag { font-family: var(--font-mono); font-size: 12px; color: var(--c-cyan-light); }
.trace__title { font-size: 22px; font-weight: 700; line-height: 1.2; }
.trace__desc { font-size: 15px; line-height: 1.6; color: var(--c-grey-300); }
.trace__works { font-size: 14px; line-height: 1.5; border-top: 1px solid rgba(255, 255, 255, 0.12); padding-top: 12px; }
.trace__reset {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: var(--r-btn);
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: var(--c-white);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.trace__reset:hover { background: rgba(255, 255, 255, 0.08); border-color: var(--c-white); }
.trace__reset[hidden] { display: none; }
.no-js .trace { display: none; }
@media (max-width: 767.98px) {
  .system__inner { gap: 40px; }
  .orbit { padding: 40px 12px 16px; border-radius: 24px; }
  .orbit__label { font-size: 10px; padding: 4px 10px; letter-spacing: 0.04em; }
  .envelope { padding: 52px 12px 14px; border-radius: 18px; }
  .envelope__tags { gap: 6px; }
  .env-tag { font-size: 10px; padding: 4px 8px; }
  .layer { padding: 14px; }
  .layer__name { min-width: 0; }
}

/* ---------- Security matrix ---------- */
.security { display: flex; flex-wrap: wrap; gap: 48px 72px; align-items: flex-start; }
.security__copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.roles { display: flex; flex-direction: column; gap: 10px; }
.role {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-card-sm);
  padding: 14px 16px;
  font-size: 15px;
}
.role__name {
  font-weight: 800;
  font-size: 14px;
  color: var(--c-white);
  background: var(--c-deep);
  border-radius: 10px;
  padding: 8px 0;
  text-align: center;
}
.role__name--govern { background: var(--c-grey-700); }
.role__name--assure { background: var(--c-cyan); color: var(--c-ink); }
.role .n { font-family: var(--font-mono); font-size: 12px; color: var(--c-grey-600); }
.matrix {
  flex: 1 1 560px;
  min-width: 0;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-panel);
  padding: 28px;
  box-shadow: 0 30px 60px -45px rgba(10, 11, 13, 0.4);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.matrix__head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.matrix__title { font-size: 17px; font-weight: 700; }
.matrix__legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--c-grey-600); }
.matrix__legend span { display: flex; align-items: center; gap: 6px; }
.matrix__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--r-chip); }
.matrix table { width: 100%; min-width: 460px; border-collapse: separate; border-spacing: 0; font-size: 15px; }
.matrix th, .matrix td { border-bottom: 1px solid var(--c-rule); }
.matrix tbody tr:last-child > * { border-bottom: 0; }
.matrix thead th { padding: 12px 14px; font-size: 13px; font-weight: 800; border-bottom: 3px solid var(--c-deep); color: var(--c-cyan-ink); }
.matrix thead th:first-child { text-align: left; font-weight: 700; color: var(--c-grey-600); border-bottom: 1px solid var(--c-border); }
.matrix thead th.col-govern { color: var(--c-graphite); border-bottom-color: var(--c-stone); }
.matrix thead th.col-assure { color: var(--c-deep); border-bottom-color: var(--c-cyan); }
.matrix tbody th { text-align: left; padding: 13px 14px; font-weight: 600; }
.matrix td { text-align: center; }
.dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; background: var(--c-deep); vertical-align: middle; }
.dot--govern { background: var(--c-stone); }
.dot--assure { background: var(--c-cyan); }
.dash { display: inline-block; width: 12px; height: 2px; background: var(--c-grey-350); vertical-align: middle; }
@media (max-width: 767.98px) {
  .matrix { padding: 18px; border-radius: var(--r-card-lg); }
}

/* ---------- Practical AI ---------- */
.ai { display: flex; flex-direction: column; gap: 44px; }
.ai-card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: 22px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ai-card__icon {
  width: 48px; height: 48px;
  border-radius: var(--r-btn-lg);
  display: flex; align-items: center; justify-content: center;
  color: var(--c-white);
  background: linear-gradient(135deg, var(--g1), var(--g2));
}
.ai-card__icon .ic { width: 22px; height: 22px; stroke-width: 1.5; }
.ai-card:nth-child(1) .ai-card__icon { --g1: var(--c-stone); --g2: var(--c-deep); }
.ai-card:nth-child(2) .ai-card__icon { --g1: var(--c-deep); --g2: var(--c-cyan); }
.ai-card:nth-child(3) .ai-card__icon { --g1: var(--c-deep); --g2: var(--c-stone); }
.ai-card:nth-child(4) .ai-card__icon { --g1: var(--c-cyan); --g2: var(--c-stone); }
.ai-card .n { font-family: var(--font-mono); font-size: 12px; color: var(--c-grey-700); }
.ai-card__title { font-size: 19px; font-weight: 700; line-height: 1.25; }

/* ---------- Why S-4 (#about) ---------- */
.why { display: flex; flex-wrap: wrap; gap: 48px 80px; }
.why__intro { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 22px; align-self: flex-start; }
.why__list { flex: 1 1 560px; min-width: 0; display: flex; flex-direction: column; }
.why__item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 16px;
  padding: 24px 0;
  border-top: 1px solid var(--c-border);
}
.why__item:last-child { border-bottom: 1px solid var(--c-border); }
.why__num { font-weight: 800; font-size: 28px; line-height: 1.2; letter-spacing: -0.02em; color: var(--c-deep); }
/* Numerals step from Deep Cyan through Stone, as designed (all ≥ 3:1 at this large size) */
.why__item:nth-child(2) .why__num { color: #1F8FA8; }
.why__item:nth-child(3) .why__num { color: #3E7F8C; }
.why__item:nth-child(4) .why__num { color: var(--c-stone); }
.why__item:nth-child(5) .why__num { color: #0396B5; }
.why__body { display: flex; flex-direction: column; gap: 6px; }
.why__title { font-size: 21px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; }
.why__text { font-size: 16px; line-height: 1.6; color: var(--c-grey-600); }
@media (max-width: 479.98px) {
  .why__item { grid-template-columns: 48px minmax(0, 1fr); gap: 12px; }
}

/* ---------- Leadership ---------- */
.leaders { display: flex; flex-direction: column; gap: 48px; }
.leaders__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 899.98px) { .leaders__grid { grid-template-columns: minmax(0, 1fr); } }
.leader {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-card-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.leader__head { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-end; }
.leader__photo img {
  width: 120px;
  height: 140px;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--r-card);
  background: var(--bg-cyan);
}
.leader__id { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.leader__id .eyebrow { font-size: 12px; }
.leader__name { font-weight: 800; font-size: 30px; letter-spacing: -0.025em; line-height: 1.1; }
.leader__role { font-size: 14px; line-height: 1.5; color: var(--c-grey-600); }
.leader__years { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; }
.leader__years-num { font-weight: 800; font-size: 44px; line-height: 1; letter-spacing: -0.04em; }
.leader__years-label { font-size: 13px; line-height: 1.4; color: var(--c-grey-600); max-width: 150px; }
.rule { height: 3px; border-radius: 2px; background: var(--grad-brand); }
.leader__bio { font-size: 16px; line-height: 1.65; color: var(--c-grey-600); }
.leader__group { display: flex; flex-direction: column; gap: 10px; }
.leader__group .mono-label { font-weight: 400; color: var(--c-grey-600); letter-spacing: var(--track-label); }
@media (max-width: 767.98px) {
  .leader { padding: 24px; }
  .leader__head { gap: 16px 20px; }
  .leader__years { flex-basis: 100%; flex-direction: row; align-items: baseline; gap: 10px; text-align: left; }
  .leader__years-num { font-size: 36px; }
  .leader__years-label { max-width: none; }
}

/* ---------- How we work ---------- */
.process { display: flex; flex-direction: column; gap: 48px; }
.process__track { position: relative; }
.process__track::before {
  content: "";
  position: absolute;
  left: 4%; right: 4%;
  top: 31px;
  height: 3px;
  border-radius: 2px;
  background: var(--grad-brand);
}
.process__list { position: relative; gap: 20px; }
.stage { display: flex; flex-direction: column; gap: 16px; }
.stage__num {
  width: 64px; height: 64px;
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 22px;
  background: var(--c-ink);
  color: var(--c-white);
  box-shadow: 0 0 0 6px var(--bg-cyan);
}
.stage__num--deep { background: var(--c-deep); }
.stage__num--stone { background: var(--c-stone); }
.stage__num--cyan { background: var(--c-cyan); color: var(--c-ink); }
.stage__card {
  flex: 1;
  background: var(--c-white);
  border: 1px solid var(--c-cyan-border);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.stage__card--dark { background: var(--c-ink); border-color: var(--c-ink); color: var(--c-white); }
.stage__step { font-size: 13px; font-weight: 700; color: var(--c-cyan-ink); }
.stage__step--graphite { color: var(--c-graphite); }
.stage__card--dark .stage__step { color: var(--c-cyan-light); }
.stage__title { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; }
.stage__text { font-size: 15px; line-height: 1.55; color: var(--c-grey-600); }
.stage__card--dark .stage__text { color: var(--c-grey-300); }
.process__note {
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  line-height: 1.5;
  color: #3A3B3F;
  background: rgba(255, 255, 255, 0.6);
  border: 1px dashed var(--c-cyan-soft);
  border-radius: var(--r-btn-lg);
  padding: 14px 18px;
}
.process__note .ic { width: 18px; height: 18px; color: var(--c-deep); }
/* The connecting line only makes sense while all four stages sit on one row */
@media (max-width: 1023.98px) { .process__track::before { display: none; } }

/* ---------- Contact ---------- */
.contact {
  position: relative;
  overflow: hidden;
  background-image:
    radial-gradient(900px 520px at 85% 0%, rgba(4, 174, 209, 0.45), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(138, 133, 127, 0.35), transparent 60%),
    radial-gradient(500px 360px at 55% 110%, rgba(4, 174, 209, 0.25), transparent 60%);
}
.contact__inner { display: flex; flex-wrap: wrap; gap: 56px 80px; align-items: center; }
.contact__copy { flex: 1 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.contact__copy .lead { max-width: 600px; }
.contact__copy .btn-row { padding-top: 6px; }
.contact__cards { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.contact-card {
  color: var(--c-white);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
a.contact-card:hover { color: var(--c-white); border-color: rgba(255, 255, 255, 0.5); background: rgba(255, 255, 255, 0.1); }
.contact-card--top { align-items: flex-start; }
.contact-card__icon {
  width: 52px; height: 52px;
  flex-shrink: 0;
  border-radius: var(--r-card-sm);
  display: flex; align-items: center; justify-content: center;
  background: var(--c-deep);
}
.contact-card__icon .ic { width: 22px; height: 22px; stroke-width: 1.5; }
.contact-card__icon--stone { background: var(--c-stone); }
.contact-card__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.contact-card__label { font-size: 13px; font-weight: 700; color: var(--c-cyan-soft); }
.contact-card__label--stone { color: var(--c-grey-200); }
.contact-card__value { font-size: 18px; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
.contact-card address { font-size: 16px; line-height: 1.55; color: var(--c-grey-200); }
@media (max-width: 479.98px) {
  .contact-card { padding: 18px; gap: 14px; }
  .contact-card__icon { width: 44px; height: 44px; border-radius: var(--r-btn); }
  .contact-card__value { font-size: 16px; }
  .contact__copy .btn { flex: 1 1 auto; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--c-footer); color: var(--c-grey-400); }
.site-footer a { color: var(--c-grey-400); }
.site-footer a:hover { color: var(--c-white); }
.footer__top { padding-top: 72px; display: flex; flex-wrap: wrap; gap: 40px 64px; justify-content: space-between; }
.footer__brand { flex: 1 1 320px; display: flex; flex-direction: column; gap: 18px; }
.footer__id { display: flex; align-items: center; gap: 14px; }
.footer__id img { width: 40px; height: 48px; }
.footer__id-text { display: flex; flex-direction: column; gap: 4px; font-size: 14px; line-height: 1.4; }
.footer__name { font-family: var(--font-logo); font-variant-numeric: lining-nums; font-weight: 700; font-size: 19px; line-height: 1.1; letter-spacing: 0.03em; color: var(--c-white); text-transform: uppercase; }
.footer__rule { width: 120px; height: 3px; border-radius: 2px; background: var(--grad-brand); }
.footer__nav { flex: 1 1 320px; display: flex; flex-direction: column; gap: 2px; }
.footer__nav--company { flex: 0 1 200px; }
.footer__heading { margin: 0 0 8px; font-size: 14px; font-weight: 800; color: var(--c-white); }
.footer__nav a { font-size: 14px; min-height: 44px; display: flex; align-items: center; text-decoration: none; }
.footer__nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer__bottom {
  margin-top: 48px;
  padding-top: 22px;
  padding-bottom: 30px;
  border-top: 1px solid var(--c-dark-2);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 24px;
  font-size: 13px;
}
.footer__bottom a { color: var(--c-grey-200); display: inline-flex; align-items: center; min-height: 44px; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 0 24px; align-items: center; }
@media (max-width: 767.98px) {
  .footer__top { padding-top: 56px; gap: 32px; }
  .footer__bottom { margin-top: 32px; }
}

/* ---------- Back to top ----------
   Always reachable without JavaScript; with it, shown only once the visitor has scrolled a screen. */
.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-btn-lg);
  background: var(--c-deep);
  color: var(--c-white);
  box-shadow: 0 14px 34px -12px rgba(10, 11, 13, 0.55);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s, background 0.15s ease;
}
.to-top:hover { background: var(--c-deep-hover); color: var(--c-white); }
.to-top .ic { width: 20px; height: 20px; }
.js .to-top:not(.is-visible) { opacity: 0; visibility: hidden; transform: translateY(8px); }
@media (max-width: 767.98px) { .to-top { right: 16px; bottom: 16px; } }

/* ---------- Inner pages (privacy, 404) ---------- */
.page-hero { padding-top: calc(var(--header-h) + 64px); padding-bottom: 56px; }
.page-hero .h1 { font-size: clamp(40px, 5vw, 64px); margin-top: 18px; }
.page-hero .lead { color: var(--c-grey-300); margin-top: 18px; max-width: 600px; }
.page-hero .btn-row { margin-top: 32px; }
.legal { max-width: 760px; padding-top: 64px; padding-bottom: 96px; }
.legal h2 { margin: 40px 0 12px; font-size: 24px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.legal p, .legal li { font-size: 16px; line-height: 1.7; color: var(--c-graphite); margin: 0 0 12px; }
.legal ul { padding-left: 22px; margin: 0 0 12px; list-style: disc; }
.legal__updated { color: var(--c-grey-600); font-size: 14px; }
.not-found { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.not-found main { flex: 1; display: flex; align-items: center; }
.not-found main > .wrap { width: 100%; }

/* ---------- Site loader ----------
   "Assemble": the S halves slide together around the 4, the wordmark tracks in, then the panel
   lifts away to the hero. Shown once per browser session: html.ld-on is set by the inline script
   in <head>, and main.js removes it. Base styles are the end state, so reduced motion shows a still logo. */
.ldr { display: none; }
.ld-on { overflow: hidden; }
.ld-on .ldr { display: block; position: fixed; inset: 0; z-index: 1000; }
.ldr__panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 0 16px;
  background-color: var(--c-ink);
  background-image:
    radial-gradient(520px 380px at 50% 40%, rgba(4, 174, 209, 0.16), transparent 62%),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: auto, 56px 56px, 56px 56px;
  color: var(--c-white);
  clip-path: inset(0 0 0 0);
  transition: clip-path 0.65s cubic-bezier(0.76, 0, 0.24, 1);
}
.ldr__edge {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--grad-brand);
  opacity: 0;
  transition: transform 0.65s cubic-bezier(0.76, 0, 0.24, 1);
}
.ldr__mark { display: block; width: 112px; height: 134px; overflow: visible; }
.ldr__mark path { transform-box: fill-box; transform-origin: 50% 50%; }
.ldr__mark .top { animation: ldr-top 0.7s cubic-bezier(0.16, 1, 0.3, 1) both; }
.ldr__mark .bot { animation: ldr-bot 0.7s 0.12s cubic-bezier(0.16, 1, 0.3, 1) both; }
.ldr__mark .four { animation: ldr-fade 0.5s 0.45s ease-out both; }
.ldr__mark .tri { transform-origin: 100% 0; animation: ldr-tri 0.45s 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.ldr__words { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.ldr__name {
  font-family: var(--font-logo); font-variant-numeric: lining-nums;
  font-weight: 700;
  font-size: 26px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  animation: ldr-name 0.7s 1.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.ldr__tagline {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-cyan);
}
.ldr__tagline span { animation: ldr-word 0.5s 1.85s cubic-bezier(0.16, 1, 0.3, 1) both; }
.ldr__tagline span:nth-child(2) { animation-delay: 1.93s; }
.ldr__tagline span:nth-child(3) { animation-delay: 2.01s; }
.ldr__tagline span:nth-child(4) { animation-delay: 2.09s; }
.ldr__bar {
  position: absolute;
  left: 50%;
  bottom: 72px;
  width: 160px;
  margin-left: -80px;
  height: 2px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
.ldr__bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad-brand);
  transform-origin: 0 50%;
  animation: ldr-bar 2.6s cubic-bezier(0.3, 0, 0.2, 1) both;
  transition: transform 0.25s ease-out;
}
.ld-done .ldr__bar::after { animation: none; transform: none; }
.ld-out .ldr__panel { clip-path: inset(0 0 100% 0); }
.ld-out .ldr__edge { opacity: 1; transform: translateY(-100vh); transform: translateY(-100dvh); }
@keyframes ldr-top { from { transform: translate(-22%, -16%); opacity: 0; } }
@keyframes ldr-bot { from { transform: translate(22%, 16%); opacity: 0; } }
@keyframes ldr-fade { from { opacity: 0; } }
@keyframes ldr-tri { from { transform: scale(0); } }
@keyframes ldr-name { from { opacity: 0; letter-spacing: 0.32em; } }
@keyframes ldr-word { from { opacity: 0; transform: translateY(6px); } }
@keyframes ldr-bar { from { transform: scaleX(0); } to { transform: scaleX(0.82); } }
@media (max-width: 599.98px) {
  .ldr__mark { width: 88px; height: 105px; }
  .ldr__name { font-size: 22px; }
  .ldr__bar { bottom: 96px; }
}
@media (prefers-reduced-motion: reduce) {
  .ldr__edge { display: none; }
}

/* ---------- Reduced motion: every animation and transition stops ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .anim-orbit { offset-distance: 0%; }
}
