/* ==========================================================================
   AIS Intelligence — design system
   Structure & components: editorial intelligence-platform patterns.
   Brand, copy and assets are AIS. Single accent (teal), cream/navy surfaces.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* surfaces */
  --bg: #f5f3ef;
  --bg-alt: #ffffff;
  --dark: #0a0a1a;
  --dark-2: #12122a;
  --dark-3: #1a1a2e;

  /* ink */
  --fg: #1a1a2e;
  --fg-ink: #0a0a1a;
  --muted: #565d6b;
  --muted-soft: #6b7280;
  --border: #e5e7eb;
  --border-strong: #d3d7de;

  /* on dark */
  --on-dark: #f5f3ef;
  --on-dark-muted: rgba(245, 243, 239, 0.72);
  --on-dark-faint: rgba(245, 243, 239, 0.14);
  --border-dark: rgba(245, 243, 239, 0.14);

  /* accent — single */
  --accent: #14b8a6;
  --accent-hover: #0d9488;
  --accent-ink: #0f766e;
  --accent-soft: rgba(20, 184, 166, 0.12);
  --on-accent: #0a0a1a;

  /* type */
  --font-display: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;

  /* geometry */
  --radius: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --container: 1400px;
  --gutter: 24px;
  --section-y: 160px;
  --nav-h: 72px;

  --shadow-sm: 0 1px 2px rgba(10, 10, 26, 0.05);
  --shadow-md: 0 12px 30px -12px rgba(10, 10, 26, 0.18);
  --shadow-lg: 0 28px 60px -24px rgba(10, 10, 26, 0.32);
}

@media (max-width: 900px) {
  :root { --section-y: 96px; --gutter: 20px; }
}
@media (max-width: 560px) {
  :root { --section-y: 72px; --gutter: 18px; }
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4, h5 { margin: 0; font-family: var(--font-display); font-weight: 600; color: var(--fg); text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; border-radius: 3px; }
.site-header :focus-visible, .mega :focus-visible, .drawer :focus-visible,
.hero :focus-visible, .page-hero :focus-visible, .cta-band :focus-visible,
.site-footer :focus-visible, .panel :focus-visible, .on-dark :focus-visible { outline-color: var(--accent); }

::selection { background: var(--accent); color: var(--on-accent); }

/* ---------- 3. Typography ---------- */
.display, h1.display {
  font-family: var(--font-display);
  font-size: clamp(44px, 6.2vw, 80px);
  line-height: 1.04;
  letter-spacing: -1.6px;
  font-weight: 700;
  color: var(--fg-ink);
}
.h1 { font-size: clamp(38px, 5vw, 64px); line-height: 1.06; letter-spacing: -1.3px; font-weight: 700; }
.h2 { font-family: var(--font-display); font-size: clamp(30px, 3.4vw, 46px); line-height: 1.1; letter-spacing: -1px; font-weight: 600; }
.h3 { font-family: var(--font-display); font-size: 22px; line-height: 1.4; font-weight: 600; letter-spacing: -0.2px; }
.h4 { font-family: var(--font-display); font-size: 18px; line-height: 1.4; font-weight: 600; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.lead { font-size: clamp(18px, 1.5vw, 20px); line-height: 1.6; color: var(--muted); }
.mono { font-family: var(--font-mono); }
.small { font-size: 14px; line-height: 1.55; }
.tiny { font-size: 12.5px; line-height: 1.5; }
.text-accent { color: var(--accent-ink); }
.on-dark { color: var(--on-dark); }
.on-dark .h2, .on-dark h1, .on-dark h2, .on-dark h3, .on-dark .display { color: var(--on-dark); }
.on-dark p, .on-dark .lead { color: var(--on-dark-muted); }
.on-dark .eyebrow, .panel .eyebrow { color: var(--accent); }
.measure { max-width: 62ch; }
.measure-sm { max-width: 48ch; }

/* ---------- 4. Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); position: relative; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--dark); color: var(--on-dark); }
.section--tight { padding-block: calc(var(--section-y) * 0.66); }
.stack-lg > * + * { margin-top: 40px; }
.stack > * + * { margin-top: 20px; }
.stack-sm > * + * { margin-top: 12px; }
.section-head { display: flex; flex-direction: column; gap: 18px; max-width: 760px; }
.section-head--center { margin-inline: auto; text-align: center; align-items: center; }
.section-head p:not(.eyebrow) { color: var(--muted); font-size: 18px; max-width: 60ch; }
.section-head--center p:not(.eyebrow) { margin-inline: auto; }

.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; padding: 0 24px;
  font-family: var(--font-body); font-size: 15px; font-weight: 600; letter-spacing: 0.1px;
  border-radius: var(--radius); border: 1px solid transparent;
  transition: background-color .22s ease, color .22s ease, border-color .22s ease, transform .22s ease;
  white-space: nowrap;
}
.btn .arrow { transition: transform .25s ease; }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn-ghost { background: transparent; border-color: var(--border-strong); color: var(--fg-ink); }
.btn-ghost:hover { background: rgba(10, 10, 26, 0.05); border-color: var(--fg-ink); }
.btn-ghost-dark { background: transparent; border-color: var(--border-dark); color: var(--on-dark); }
.btn-ghost-dark:hover { background: rgba(245, 243, 239, 0.1); border-color: var(--on-dark); }
.btn-lg { min-height: 54px; padding: 0 30px; font-size: 16px; }
.btn-block { width: 100%; }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[disabled] { opacity: .6; cursor: not-allowed; pointer-events: none; }
.btn.is-loading { pointer-events: none; }
.btn.is-loading .arrow { display: none; }
.btn.is-loading::after {
  content: ""; width: 14px; height: 14px; flex: none;
  border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%;
  animation: btn-spin .65s linear infinite;
}
@keyframes btn-spin { to { transform: rotate(360deg); } }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-size: 14px; font-weight: 600; color: var(--fg-ink);
  border-bottom: 1px solid transparent; padding-bottom: 2px;
  transition: color .2s ease, border-color .2s ease;
}
.link-arrow svg { transition: transform .25s ease; }
.link-arrow:hover { color: var(--accent-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.link-arrow:hover svg { transform: translateX(4px); }
.on-dark .link-arrow { color: var(--on-dark); }
.on-dark .link-arrow:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- 6. Tags ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border: 1px solid var(--border-strong); border-radius: var(--radius-pill);
  font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted); background: var(--bg-alt);
}
.tag--accent { color: var(--accent-ink); border-color: var(--accent); background: var(--accent-soft); }
.on-dark .tag { color: var(--on-dark-muted); border-color: var(--border-dark); background: transparent; }

/* ---------- 7. Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  transition: background-color .35s ease, border-color .35s ease, backdrop-filter .35s ease;
  border-bottom: 1px solid transparent;
}
.site-header::before {
  content: ""; position: absolute; inset: 0 0 -32px 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 10, 26, 0.95) 0%, rgba(10, 10, 26, 0.92) 52%, rgba(10, 10, 26, 0.74) 76%, rgba(10, 10, 26, 0) 100%);
  transition: opacity .35s ease;
}
.site-header.is-solid::before { opacity: 0; }
.site-header__inner {
  height: var(--nav-h); display: flex; align-items: center; gap: 28px;
  max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter);
}
.site-header.is-solid {
  background: rgba(10, 10, 26, 0.92);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--border-dark);
}
.nojs-nav {
  position: relative; z-index: 90; margin-top: var(--nav-h);
  background: var(--dark-2); border-bottom: 1px solid var(--border-dark);
}
.nojs-nav__inner { display: flex; flex-wrap: wrap; gap: 2px 22px; padding-block: 12px; font-size: 13px; }
.nojs-nav a { display: inline-flex; align-items: center; min-height: 32px; color: rgba(245, 243, 239, 0.8); }
.nojs-nav a:hover { color: var(--accent); }
.brand { display: inline-flex; align-items: center; gap: 11px; min-height: 44px; color: var(--on-dark); }
.brand__mark { width: 30px; height: 30px; flex: none; color: var(--accent); }
.brand__text {
  font-family: var(--font-mono); font-size: 13.5px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; line-height: 1.1;
  display: flex; flex-direction: column;
}
.brand__text b { font-weight: 600; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav__link {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 10px 14px; border-radius: 8px;
  font-size: 14px; font-weight: 500; color: var(--on-dark-muted);
  background: transparent; border: 0;
  transition: color .2s ease, background-color .2s ease;
}
.nav__link:hover, .nav__link[aria-expanded="true"] { color: var(--on-dark); background: rgba(245, 243, 239, 0.08); }
.nav__link svg { transition: transform .25s ease; opacity: .8; }
.nav__link[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav__link.is-active { color: var(--on-dark); }
.site-header__actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.site-header__actions .btn { min-height: 44px; padding: 0 18px; font-size: 14px; }

/* mega dropdown */
.mega {
  position: fixed; left: 0; right: 0; top: var(--nav-h); z-index: 99;
  background: rgba(10, 10, 26, 0.98);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .24s ease, transform .24s ease, visibility 0s linear .24s;
  max-height: calc(100vh - var(--nav-h)); overflow-y: auto;
}
.mega.is-open {
  opacity: 1; visibility: visible; transform: translateY(0);
  transition: opacity .24s ease, transform .24s ease, visibility 0s;
}
.mega__inner {
  max-width: var(--container); margin: 0 auto; padding: 40px var(--gutter) 44px;
  display: grid; gap: 48px;
}
.mega__groups { display: grid; gap: 44px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.mega__label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
}
.mega__item { display: block; padding: 11px 12px; border-radius: 9px; transition: background-color .2s ease; }
.mega__item:hover { background: rgba(245, 243, 239, 0.07); }
.mega__item b { display: block; color: var(--on-dark); font-size: 15px; font-weight: 600; font-family: var(--font-display); }
.mega__item span { display: block; color: var(--on-dark-muted); font-size: 13px; line-height: 1.45; margin-top: 2px; }
.mega__item:hover b { color: var(--accent); }
.mega__viewall { margin-top: 14px; }
.mega__aside {
  border-left: 1px solid var(--border-dark); padding-left: 40px;
}
.mega__aside-title { color: var(--on-dark); font-family: var(--font-display); font-size: 18px; font-weight: 600; line-height: 1.4; margin: 0; }
.mega__aside p { color: var(--on-dark-muted); font-size: 14px; margin-top: 8px; }

/* mobile drawer */
.nav-toggle {
  display: none; margin-left: auto;
  width: 44px; height: 44px; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--border-dark); border-radius: 9px; color: var(--on-dark);
}
.drawer {
  position: fixed; inset: 0; z-index: 120; background: var(--dark);
  padding: 22px var(--gutter) 48px; overflow-y: auto;
  transform: translateX(100%); transition: transform .32s cubic-bezier(.4, 0, .2, 1);
  visibility: hidden;
}
.drawer.is-open { transform: translateX(0); visibility: visible; }
.drawer__top { display: flex; align-items: center; justify-content: space-between; height: 48px; }
.drawer__close { width: 44px; height: 44px; display: grid; place-items: center; background: transparent; border: 1px solid var(--border-dark); border-radius: 9px; color: var(--on-dark); }
.drawer__group { border-top: 1px solid var(--border-dark); padding: 20px 0; }
.drawer__group > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-display); font-size: 21px; font-weight: 600; color: var(--on-dark);
}
.drawer__group > summary::-webkit-details-marker { display: none; }
.drawer__group[open] > summary { color: var(--accent); }
.drawer__sub { margin-top: 14px; display: flex; flex-direction: column; gap: 2px; }
.drawer__sub a { display: flex; align-items: center; min-height: 44px; padding: 6px 0; color: var(--on-dark-muted); font-size: 15px; }
.drawer__sub a:hover { color: var(--on-dark); }
.drawer__direct { padding: 16px 0; }
.drawer__direct a { display: block; padding: 12px 0; font-family: var(--font-display); font-size: 21px; font-weight: 600; color: var(--on-dark); }
.drawer__cta { margin-top: 22px; display: grid; gap: 12px; }

/* ---------- 8. Hero ---------- */
.hero { position: relative; background: var(--dark); color: var(--on-dark); overflow: hidden; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero__scrim {
  position: absolute; inset: 0;
  background:
    radial-gradient(112% 86% at 8% 92%, rgba(10, 10, 26, 0.94) 0%, rgba(10, 10, 26, 0.5) 40%, transparent 70%),
    linear-gradient(180deg, rgba(10, 10, 26, 0.32) 0%, rgba(10, 10, 26, 0) 30%, rgba(10, 10, 26, 0.4) 100%);
}
.hero__grid {
  position: absolute; inset: 0; opacity: .5;
  background-image: radial-gradient(rgba(245, 243, 239, 0.16) 1px, transparent 1px);
  background-size: 34px 34px; mask-image: radial-gradient(120% 80% at 70% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(120% 80% at 70% 30%, #000 20%, transparent 75%);
}
.hero__inner {
  position: relative; z-index: 2; min-height: 100dvh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: calc(var(--nav-h) + 40px); padding-bottom: 110px;
}
.hero__content { max-width: 760px; }
.hero .eyebrow { color: var(--accent); margin-bottom: 22px; }
.hero h1 { color: var(--on-dark); margin-bottom: 24px; }
.hero h1 .line { display: block; }
.hero__sub { color: var(--on-dark-muted); font-size: clamp(18px, 1.5vw, 20px); max-width: 46ch; margin-bottom: 34px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__meta {
  position: absolute; right: var(--gutter); bottom: 110px; z-index: 2;
  display: flex; flex-direction: column; gap: 10px; align-items: flex-end;
  font-family: var(--font-mono); font-size: 12px; color: var(--on-dark-muted);
  text-align: right;
}
.hero__meta .dot { color: var(--accent); }

/* ---------- 9. Page hero (inner) ---------- */
.page-hero { position: relative; background: var(--dark); color: var(--on-dark); overflow: hidden; }
.page-hero__grid {
  position: absolute; inset: 0; opacity: .45;
  background-image: radial-gradient(rgba(245, 243, 239, 0.14) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(100% 100% at 80% 0%, #000 10%, transparent 80%);
  -webkit-mask-image: radial-gradient(100% 100% at 80% 0%, #000 10%, transparent 80%);
}
.page-hero__inner { position: relative; z-index: 2; padding-top: calc(var(--nav-h) + 76px); padding-bottom: 76px; }
.page-hero__content { max-width: 820px; }
.page-hero .eyebrow { color: var(--accent); }
.page-hero h1 { color: var(--on-dark); margin: 18px 0 20px; font-size: clamp(34px, 4.4vw, 58px); line-height: 1.07; letter-spacing: -1.2px; }
.page-hero p { color: var(--on-dark-muted); font-size: clamp(17px, 1.4vw, 19px); max-width: 60ch; }
.page-hero__cta { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 14px; }
.page-hero--split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: center; gap: 56px; }
.page-hero__viz { position: relative; z-index: 2; }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; color: var(--on-dark-muted); letter-spacing: 0.04em; }
.crumbs a { display: inline-flex; align-items: center; min-height: 24px; }
.crumbs a:hover { color: var(--accent); }
.crumbs .sep { opacity: .5; }
.crumbs [aria-current] { color: var(--accent); }

/* ---------- 10. Marquee ---------- */
.marquee { position: relative; overflow: hidden; padding-block: 34px; background: var(--bg-alt); border-block: 1px solid var(--border); }
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; }
.marquee__item {
  display: inline-flex; align-items: center; gap: 12px; padding-inline: 34px;
  font-family: var(--font-display); font-size: 19px; font-weight: 600; color: var(--muted);
  white-space: nowrap;
}
.marquee__badge {
  width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; flex: none;
  background: rgba(10, 10, 26, 0.05); color: var(--fg); font-family: var(--font-mono); font-size: 12px; font-weight: 600;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 11. Architecture table ---------- */
.arch {
  border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-alt);
}
.arch__head, .arch__row {
  display: grid; grid-template-columns: 210px minmax(0, 1fr) minmax(0, 1fr); gap: 32px;
  padding: 26px 32px; align-items: baseline;
}
.arch__head {
  background: var(--dark); color: var(--on-dark);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
}
.arch__head span:nth-child(2), .arch__head span:nth-child(3) { color: var(--on-dark-muted); }
.arch__row { border-top: 1px solid var(--border); transition: background-color .22s ease; }
.arch__row:hover { background: rgba(20, 184, 166, 0.06); }
.arch__layer { font-family: var(--font-display); font-size: 20px; font-weight: 600; color: var(--fg-ink); display: flex; align-items: baseline; gap: 12px; }
.arch__layer em { font-family: var(--font-mono); font-style: normal; font-size: 12px; color: var(--accent-ink); }
.arch__row p { color: var(--muted); font-size: 16px; }
.arch__outcome { color: var(--fg) !important; font-weight: 500; }

/* ---------- 12. Value cards ---------- */
.value-card { padding: 34px 30px 32px; background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.value-card__num { font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--accent-ink); letter-spacing: 0.12em; }
.value-card__icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); margin: 18px 0 20px; }
.value-card h3 { margin-bottom: 10px; }
.value-card p { color: var(--muted); font-size: 15.5px; }

/* ---------- 13. Service / solution cards ---------- */
.svc-card { display: flex; flex-direction: column; padding: 36px 32px; background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease, border-color .25s; min-height: 100%; }
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.svc-card__icon { width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center; background: var(--dark); color: var(--accent); margin-bottom: 22px; }
.svc-card h3 { margin-bottom: 12px; }
.svc-card p { color: var(--muted); font-size: 15.5px; margin-bottom: 22px; }
.svc-card .link-arrow { margin-top: auto; }

.sol-row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto; gap: 32px; align-items: center;
  padding: 30px 8px; border-top: 1px solid var(--border); transition: padding-left .25s ease, background-color .25s ease;
}
.sol-row:last-child { border-bottom: 1px solid var(--border); }
.sol-row:hover { background: rgba(20, 184, 166, 0.05); padding-left: 20px; }
.sol-row:hover .sol-row__num { color: var(--accent-ink); }
.sol-row__num { font-family: var(--font-mono); font-size: 12px; color: var(--muted-soft); transition: color .25s; }
.sol-row h3 { font-size: 21px; }
.sol-row p { color: var(--muted); font-size: 15.5px; }
.sol-row .link-arrow { white-space: nowrap; }

/* ---------- 14. Insight cards ---------- */
.insight-card { display: flex; flex-direction: column; background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; min-height: 100%; }
.insight-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.insight-card__media { aspect-ratio: 16 / 10; position: relative; background: var(--dark); overflow: hidden; }
.insight-card__media .viz { position: absolute; inset: 0; }
.insight-card__body { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 14px; }
.insight-card__meta { display: flex; align-items: center; gap: 12px; }
.insight-card__date { font-family: var(--font-mono); font-size: 12px; color: var(--muted-soft); }
.insight-card h3 { font-size: 20px; line-height: 1.35; }
.insight-card .link-arrow { margin-top: auto; }
.insight-card:hover h3 { color: var(--accent-ink); }

/* ---------- 15. Testimonials ---------- */
.quote { display: flex; flex-direction: column; gap: 22px; padding: 34px 32px; background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); min-height: 100%; }
.quote__mark { font-family: var(--font-display); font-size: 54px; line-height: 0.6; color: var(--accent); }
.quote blockquote { margin: 0; font-family: var(--font-display); font-size: 19px; line-height: 1.5; font-weight: 500; color: var(--fg-ink); }
.quote__who { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--border); }
.quote__who b { display: block; font-family: var(--font-display); font-size: 16px; color: var(--fg-ink); }
.quote__who span { font-size: 13.5px; color: var(--muted); }

/* ---------- 16. Team ---------- */
.team-card { display: flex; flex-direction: column; }
.team-card__photo { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden; background: var(--dark-3); }
.team-card__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.team-card:hover .team-card__photo img { transform: scale(1.04); }
.team-card__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(10, 10, 26, 0.72)); }
.team-card__role { position: absolute; left: 16px; bottom: 14px; z-index: 2; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.team-card h3 { margin: 16px 0 6px; font-size: 19px; }
.team-card p { color: var(--muted); font-size: 14.5px; }

/* ---------- 17. Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.stat { padding: 30px 26px; border-left: 2px solid var(--accent); }
.stat__num { font-family: var(--font-display); font-size: clamp(40px, 4vw, 56px); font-weight: 700; letter-spacing: -1.5px; color: var(--fg-ink); line-height: 1; }
.stat__label { margin-top: 10px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.on-dark .stat { border-color: var(--accent); }
.on-dark .stat__num { color: var(--on-dark); }
.on-dark .stat__label { color: var(--on-dark-muted); }

/* ---------- 18. CTA band ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--dark); color: var(--on-dark); border-radius: 0; }
.cta-band__inner { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: 48px; align-items: center; }
.cta-band h2 { color: var(--on-dark); }
.cta-band p { color: var(--on-dark-muted); margin-top: 16px; max-width: 52ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: flex-end; }
.cta-band__glow { position: absolute; width: 620px; height: 620px; right: -140px; top: -220px; border-radius: 50%; background: radial-gradient(circle, rgba(20, 184, 166, 0.22), transparent 62%); filter: blur(10px); }

/* ---------- 19. Footer ---------- */
.site-footer { background: var(--dark); color: var(--on-dark-muted); border-top: 1px solid var(--border-dark); padding-block: 72px 34px; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 44px; }
.footer__brand p { margin-top: 18px; font-size: 14.5px; color: var(--on-dark-muted); max-width: 34ch; }
.footer__social { display: flex; gap: 10px; margin-top: 22px; }
.footer__social a { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--border-dark); border-radius: 10px; color: var(--on-dark-muted); transition: color .2s, border-color .2s, background-color .2s; }
.footer__social a:hover { color: var(--accent); border-color: var(--accent); background: rgba(20, 184, 166, 0.08); }
.footer__col-title { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; color: var(--on-dark); margin: 0 0 10px; }
.footer__col a { display: flex; align-items: center; min-height: 44px; padding: 2px 0; font-size: 14px; color: var(--on-dark-muted); transition: color .2s; }
.footer__col a:hover { color: var(--accent); }
.footer__legal { margin-top: 48px; padding-top: 26px; border-top: 1px solid var(--border-dark); }
.footer__legal p { font-size: 12.5px; line-height: 1.6; color: rgba(245, 243, 239, 0.7); max-width: 92ch; }
.footer__bottom { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; font-size: 13px; }
.footer__bottom a { display: inline-flex; align-items: center; min-height: 44px; }
.footer__bottom a:hover { color: var(--accent); }

/* ---------- 20. Forms ---------- */
.form { display: grid; gap: 20px; }
.form__row { display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--fg-ink); }
.field .req { color: var(--accent-ink); }
.on-dark .field .req { color: var(--accent); }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 15px; font-family: var(--font-body); font-size: 15px; color: var(--fg);
  background: var(--bg-alt); border: 1px solid var(--border-strong); border-radius: var(--radius);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 132px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #9aa1ac; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent-ink); box-shadow: 0 0 0 3px var(--accent-soft); }
.field__error { font-size: 12.5px; color: #c2410c; display: none; }
.field.is-invalid input, .field.is-invalid textarea, .field.is-invalid select { border-color: #c2410c; }
.field.is-invalid .field__error { display: block; }
.on-dark .field label { color: var(--on-dark); }
.on-dark .field input, .on-dark .field textarea, .on-dark .field select { background: rgba(245, 243, 239, 0.06); border-color: var(--border-dark); color: var(--on-dark); }
.form__note { font-size: 13px; color: var(--muted); }
.form__success {
  display: none; padding: 22px 24px; border: 1px solid var(--accent); background: var(--accent-soft);
  border-radius: var(--radius); color: var(--fg-ink); font-size: 15px;
}
.form.is-submitted .form__success { display: block; }
.form.is-submitted .form__body { display: none; }
.form__error {
  padding: 18px 20px; margin-bottom: 20px; border: 1px solid #e3a79f; border-radius: var(--radius);
  background: #fdf0ee; color: #7d1d10; font-size: 14.5px;
}
.form__error a { color: #7d1d10; text-decoration: underline; }
.form__error:focus-visible { outline: 2px solid #7d1d10; outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.contact-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 64px; align-items: start; }
.contact-item { padding: 20px 0; border-top: 1px solid var(--border); }
.contact-item:first-child { border-top: 0; }
.contact-item dt { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted-soft); }
.contact-item dd { margin: 6px 0 0; font-family: var(--font-display); font-size: 19px; font-weight: 500; color: var(--fg-ink); }
.contact-item dd a { display: inline-flex; align-items: center; min-height: 44px; }
.contact-item dd a:hover { color: var(--accent-ink); }

/* ---------- 21. Split feature ---------- */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media { position: relative; }
.panel {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--dark); color: var(--on-dark);
  border: 1px solid var(--border-dark); min-height: 360px;
}
.panel__inner { position: relative; z-index: 2; padding: 34px; }
.panel .viz { position: absolute; inset: 0; }
.bullet-list { display: grid; gap: 16px; }
.bullet { display: flex; gap: 14px; align-items: flex-start; }
.bullet__ic { width: 26px; height: 26px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); margin-top: 3px; }
.panel .bullet__ic, .page-hero .bullet__ic { color: var(--accent); }
.bullet b { color: var(--fg-ink); }
.bullet p { color: var(--muted); font-size: 15.5px; }

/* capability chips grid */
.cap-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-alt); }
.cap { padding: 30px 30px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.cap:nth-child(2n) { border-right: 0; }
.cap:nth-last-child(-n+2) { border-bottom: 0; }
.cap h3 { font-size: 18px; margin-bottom: 8px; }
.cap p { color: var(--muted); font-size: 15px; }
.cap__ic { color: var(--accent-ink); margin-bottom: 14px; }

/* ---------- 21b. Join Us — roles, process, photo strip ---------- */
.role-list { border-top: 1px solid var(--border); }
.role-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center;
  padding: 28px 8px; border-bottom: 1px solid var(--border);
  transition: padding-left .25s ease, background-color .25s ease;
}
.role-row:hover { background: rgba(20, 184, 166, 0.05); padding-left: 20px; }
.role-row__main { display: block; }
.role-row h3 { font-size: 21px; }
.role-row:hover h3 { color: var(--accent-ink); }
.role-row__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 12px; }
.role-row__meta > span { color: var(--muted); font-size: 14.5px; }
.role-row__meta > .role-row__tag {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent-ink); background: var(--accent-soft); padding: 4px 10px; border-radius: var(--radius-pill);
}
.role-row .link-arrow { white-space: nowrap; }

.steps {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-alt);
}
.step { padding: 34px 30px; border-right: 1px solid var(--border); }
.step:last-child { border-right: 0; }
.step__num { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; color: var(--accent-ink); }
.step h3 { margin: 16px 0 8px; font-size: 18px; }
.step p { color: var(--muted); font-size: 15px; }

.photo-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.photo-strip img {
  width: 100%; height: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--dark-3);
}
.section[id] { scroll-margin-top: calc(var(--nav-h) + 24px); }

/* ---------- 22. Visual motifs ---------- */
.viz { pointer-events: none; }
.viz--grid {
  background-image: radial-gradient(rgba(245, 243, 239, 0.18) 1px, transparent 1px);
  background-size: 26px 26px;
}
.viz svg { width: 100%; height: 100%; }
.viz-stroke { fill: none; stroke: rgba(245, 243, 239, 0.22); stroke-width: 1; }
.viz-stroke--accent { stroke: var(--accent); }
.viz-node { fill: var(--accent); }
.viz-node--dim { fill: rgba(245, 243, 239, 0.5); }
.viz-text { font-family: var(--font-mono); font-size: 10px; fill: rgba(245, 243, 239, 0.7); letter-spacing: 0.08em; }

/* ---------- 23. Reveal ---------- */
[data-reveal] { transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
@media (scripting: enabled) {
  [data-reveal] { opacity: 0; transform: translateY(22px); }
}
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: .08s; }
[data-reveal][data-delay="2"] { transition-delay: .16s; }
[data-reveal][data-delay="3"] { transition-delay: .24s; }
[data-reveal][data-delay="4"] { transition-delay: .32s; }
[data-reveal][data-delay="5"] { transition-delay: .4s; }

.hero .reveal-line { transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
@media (scripting: enabled) {
  .hero .reveal-line { opacity: 0; transform: translateY(30px); }
}
.hero.is-ready .reveal-line { opacity: 1; transform: none; }
.hero.is-ready .reveal-line:nth-child(1) { transition-delay: .1s; }
.hero.is-ready .reveal-line:nth-child(2) { transition-delay: .24s; }
.hero.is-ready .reveal-line:nth-child(3) { transition-delay: .38s; }

/* ---------- 24. Breadcrumb bar / table of contents ---------- */
.toc { display: flex; flex-wrap: wrap; gap: 10px; }
.toc a {
  padding: 8px 14px; border: 1px solid var(--border); border-radius: var(--radius-pill);
  font-size: 13.5px; font-weight: 500; color: var(--muted); background: var(--bg-alt); transition: all .2s;
}
.toc a:hover { color: var(--fg-ink); border-color: var(--border-strong); }

/* ---------- 25. Utility ---------- */
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-14 { gap: 14px; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; } .mt-56 { margin-top: 56px; } .mt-72 { margin-top: 72px; }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }
.hide { display: none !important; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--accent); color: var(--on-accent); padding: 10px 16px; border-radius: 8px; font-weight: 600; transition: top .2s; }
.skip-link:focus { top: 12px; }

/* ---------- 25b. Sticky request-demo affordance ---------- */
.sticky-demo {
  position: fixed; right: 24px; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 90;
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s;
}
.sticky-demo.is-shown { opacity: 1; visibility: visible; transform: none; }
@media (max-width: 560px) {
  .sticky-demo { right: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- 27. Insights index + reader ---------- */
.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; }

.insight-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; justify-content: space-between; }
.insight-search { position: relative; flex: 1 1 320px; max-width: 440px; }
.insight-search input {
  width: 100%; height: 52px; padding: 0 18px 0 46px; border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong); background: var(--bg-alt); color: var(--fg);
  font-family: var(--font-body); font-size: 15px; transition: border-color .2s, box-shadow .2s;
}
.insight-search input::placeholder { color: var(--muted-soft); }
.insight-search input:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.insight-search__ic { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted-soft); pointer-events: none; }
.insight-search__ic svg { width: 100%; height: 100%; }

.insight-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; min-height: 44px;
  padding: 9px 16px; border-radius: var(--radius-pill); border: 1px solid var(--border-strong);
  background: var(--bg-alt); color: var(--muted); font-size: 13.5px; font-weight: 500;
  transition: color .2s, border-color .2s, background-color .2s;
}
.chip:hover { color: var(--fg-ink); border-color: var(--fg-ink); }
.chip.is-active { background: var(--dark); color: var(--on-dark); border-color: var(--dark); }
.chip.is-active:hover { color: var(--on-dark); }
.chip:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; }

.insight-count { margin: 22px 0 0; font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.06em; color: var(--muted); }

.insight-card { position: relative; }
.insight-card__cat {
  position: absolute; left: 16px; top: 16px; z-index: 2; max-width: calc(100% - 32px);
  padding: 5px 11px; border-radius: var(--radius-pill);
  background: rgba(10, 10, 26, 0.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  color: var(--on-dark); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em;
  text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.insight-card__title { font: inherit; font-weight: 600; color: inherit; text-align: left; background: none; border: 0; padding: 0; }
button.insight-card__title { cursor: pointer; }
.insight-card__title:hover { color: var(--accent-ink); }
.insight-card__title:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; border-radius: 4px; }
.insight-card__title[data-insight-open]::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.insight-card__dek { color: var(--muted); font-size: 15px; line-height: 1.55; }
.insight-card__foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.insight-card__by { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted-soft); letter-spacing: 0.04em; }

.empty-state { text-align: center; max-width: 520px; margin: 56px auto 0; display: flex; flex-direction: column; align-items: center; gap: 18px; }

.reader { border: 0; padding: 0; background: transparent; max-width: min(680px, 92vw); width: 100%; }
.reader::backdrop { background: rgba(10, 10, 26, 0.62); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.reader__card { position: relative; background: var(--bg-alt); border-radius: var(--radius-lg); padding: 48px 52px 40px; box-shadow: var(--shadow-lg); border: 1px solid var(--border); }
.reader__close { position: absolute; right: 18px; top: 18px; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid var(--border); background: var(--bg-alt); color: var(--muted); transition: color .2s, border-color .2s; }
.reader__close:hover { color: var(--fg-ink); border-color: var(--fg-ink); }
.reader__close:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.reader__kicker { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; }
.reader__cat { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-soft); }
.reader__title { margin: 0 0 14px; font-family: var(--font-display); font-size: clamp(24px, 3vw, 32px); line-height: 1.22; color: var(--fg-ink); }
.reader__meta { margin: 0 0 22px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; color: var(--muted-soft); }
.reader__dek { margin: 0 0 28px; font-size: 18px; line-height: 1.6; color: var(--fg); }
.reader__judgments { border-top: 1px solid var(--border); padding-top: 24px; }
.reader__points { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.reader__points li { position: relative; padding-left: 26px; color: var(--muted); font-size: 15.5px; line-height: 1.5; }
.reader__points li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); }
.reader__foot { margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.reader__source { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted-soft); }

/* ---------- 28. Imagery ---------- */
/* Licence-cleared photography (Wikimedia Commons), graded to the AIS palette
   with a navy scrim + teal wash so stock imagery reads as one system. */
.img-band {
  position: relative; overflow: hidden; background: var(--dark); color: var(--on-dark);
  border-top: 1px solid var(--border-dark); border-bottom: 1px solid var(--border-dark);
}
.img-band__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.img-band__scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(155deg, rgba(10, 10, 26, 0.9) 0%, rgba(10, 10, 26, 0.58) 52%, rgba(15, 118, 110, 0.42) 100%);
}
.img-band__inner { position: relative; z-index: 2; padding: 92px 0 88px; max-width: 780px; }
.img-band .eyebrow { color: var(--accent); }
.img-band__title { color: var(--on-dark); margin-top: 14px; max-width: 20ch; }
.img-band__lead { color: var(--on-dark-muted); font-size: 18px; line-height: 1.6; margin-top: 18px; max-width: 56ch; }
.img-band__cta { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }
.img-band--tall .img-band__inner { padding: 128px 0 116px; }
.img-band__credit { margin-top: 26px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; color: rgba(245, 243, 239, 0.72); }

/* photo variant of the dark split panel */
.panel--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.panel--photo::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(10, 10, 26, 0.32) 0%, rgba(10, 10, 26, 0.58) 55%, rgba(10, 10, 26, 0.9) 100%);
}
.panel--photo .panel__inner { position: relative; z-index: 2; }
.split__media .panel--photo { min-height: 420px; }

/* photo headers on insight cards (category-keyed) */
.insight-card__media--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.insight-card__media--photo::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(10, 10, 26, 0.1) 0%, rgba(10, 10, 26, 0.55) 100%);
}
.insight-card:hover .insight-card__media--photo img { transform: scale(1.06); }

/* responsive images: <picture> must not add a layout box of its own */
picture { display: contents; }

/* ---------- 29. Backdrop photography ---------- */
/* One grade for every photograph used behind dark chrome: desaturate, deepen
   toward navy, then fade the image away from the column that holds the copy.
   Purely decorative — always alt="" + aria-hidden. */
.hero__bg,
.page-hero__bg,
.cta-band__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero__bg img,
.page-hero__bg img,
.cta-band__bg img { width: 100%; height: 100%; object-fit: cover; }

/* home hero — Earth from space, held beneath the terrain grid */
.hero__bg { background: var(--dark); }
.hero__bg img { filter: grayscale(1) brightness(.72) contrast(1.08); transform: scale(1.03); }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(64% 54% at 74% 20%, rgba(20, 184, 166, 0.2), transparent 62%),
    linear-gradient(180deg, rgba(10, 10, 26, 0.54) 0%, rgba(10, 10, 26, 0.12) 40%, rgba(10, 10, 26, 0.34) 70%, rgba(10, 10, 26, 0.92) 100%);
}

/* inner page hero — the photograph opens up opposite the headline column */
.page-hero__bg img {
  filter: grayscale(1) brightness(.94) contrast(1.08);
  -webkit-mask-image: linear-gradient(100deg, transparent 16%, rgba(0, 0, 0, 0.32) 46%, #000 82%);
  mask-image: linear-gradient(100deg, transparent 16%, rgba(0, 0, 0, 0.32) 46%, #000 82%);
}
.page-hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 10, 26, 0.72) 0%, rgba(10, 10, 26, 0.34) 44%, rgba(10, 10, 26, 0.08) 66%, rgba(10, 10, 26, 0.38) 100%),
    linear-gradient(180deg, rgba(10, 10, 26, 0.3) 0%, transparent 26%, rgba(10, 10, 26, 0.34) 100%);
}

/* closing CTA band — a faint globe behind the actions */
.cta-band__bg img {
  object-position: 50% 100%;
  filter: grayscale(1) brightness(1.15) contrast(1.1);
  -webkit-mask-image: radial-gradient(74% 165% at 84% 108%, #000 0%, transparent 74%);
  mask-image: radial-gradient(74% 165% at 84% 108%, #000 0%, transparent 74%);
}
.cta-band__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(92deg, rgba(10, 10, 26, 0.93) 0%, rgba(10, 10, 26, 0.74) 42%, rgba(10, 10, 26, 0.22) 76%, rgba(10, 10, 26, 0.5) 100%);
}

/* keep the terrain drawing above the photograph */
.hero__canvas { z-index: 1; }
.hero__grid, .page-hero__grid { z-index: 1; }
.hero__scrim { z-index: 2; }
.hero__inner { z-index: 3; }

/* ---------- 30. Homepage editorial ---------- */
/* The home page carries less prose than the inner pages: three photographic
   doors, a compact six-step method strip, one number band, three briefs and a
   single pull quote. Rhythm alternates light / alt / dark / light / dark. */
.cap-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.cap-head__note { max-width: 40ch; margin: 0 0 8px; color: var(--muted); font-size: 16px; line-height: 1.55; }
.cap-head .h2 { max-width: 16ch; }

.cap-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 48px; }
.cap-tile {
  position: relative; display: flex; align-items: flex-end; min-height: 520px;
  padding: 32px; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--dark); color: var(--on-dark); border: 1px solid var(--border-dark);
  isolation: isolate;
}
.cap-tile__img {
  position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) brightness(.72) contrast(1.06); transform: scale(1.01);
  transition: transform .7s cubic-bezier(.2, .7, .2, 1), filter .4s ease;
}
.cap-tile__scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(10, 10, 26, 0.12) 0%, rgba(10, 10, 26, 0.5) 44%, rgba(10, 10, 26, 0.94) 100%);
}
.cap-tile__body { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 9px; }
.cap-tile__kicker { font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.cap-tile__title { font-family: var(--font-display); font-size: clamp(24px, 2.1vw, 29px); font-weight: 700; letter-spacing: -.5px; line-height: 1.15; color: var(--on-dark); }
.cap-tile__line { max-width: 32ch; color: var(--on-dark-muted); font-size: 15px; line-height: 1.5; }
.cap-tile__arrow {
  position: absolute; top: 24px; right: 24px; z-index: 2;
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid rgba(245, 243, 239, 0.34); color: var(--on-dark);
  transition: background-color .25s ease, border-color .25s ease, color .25s ease;
}
.cap-tile:hover .cap-tile__img { transform: scale(1.06); filter: grayscale(.45) brightness(.82) contrast(1.06); }
.cap-tile:hover .cap-tile__arrow { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.cap-tile:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }

.method { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin-top: 48px; border-top: 1px solid var(--border-strong); }
.method__step { display: flex; flex-direction: column; gap: 10px; padding: 26px 18px 0; border-left: 1px solid var(--border); }
.method__step:first-child { border-left: 0; padding-left: 0; }
.method__n { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; color: var(--accent-ink); }
.method__t { font-family: var(--font-display); font-size: 19px; font-weight: 700; letter-spacing: -.3px; color: var(--fg-ink); }
.method__d { font-size: 13.5px; line-height: 1.5; color: var(--muted); }

.stat-band { position: relative; overflow: hidden; background: var(--dark); color: var(--on-dark); border-top: 1px solid var(--border-dark); border-bottom: 1px solid var(--border-dark); isolation: isolate; }
.stat-band__bg { position: absolute; inset: 0; z-index: 0; }
.stat-band__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 32% 50%; filter: grayscale(1) brightness(.5) contrast(1.1); }
.stat-band__scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(94deg, rgba(10, 10, 26, 0.96) 0%, rgba(10, 10, 26, 0.86) 46%, rgba(10, 10, 26, 0.58) 100%);
}
.stat-band__inner { position: relative; z-index: 2; padding: 92px 0 86px; }
.stat-band .eyebrow { color: var(--accent); }
.stats--xl { margin-top: 40px; gap: 0; }
.stats--xl .stat { padding: 6px 34px; border-left: 1px solid rgba(245, 243, 239, 0.22); }
.stats--xl .stat:first-child { padding-left: 0; border-left: 0; }
.stats--xl .stat__num { font-size: clamp(52px, 6.4vw, 88px); letter-spacing: -3px; }
.stats--xl .stat__label { margin-top: 16px; max-width: 24ch; font-size: 11.5px; line-height: 1.55; letter-spacing: .13em; }

/* light editorial pull quote — oversized type, attribution in a side column */
.quote-feature { position: relative; overflow: hidden; background: var(--bg-alt); color: var(--fg); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.quote-feature::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(10, 10, 26, 0.12) 1px, transparent 1px);
  background-size: 32px 32px; opacity: .45;
  -webkit-mask-image: radial-gradient(72% 86% at 100% 0%, #000 0%, transparent 70%);
  mask-image: radial-gradient(72% 86% at 100% 0%, #000 0%, transparent 70%);
}
.quote-feature__inner {
  position: relative; z-index: 1; max-width: var(--container);
  display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px 56px; align-items: start;
}
.quote-feature .eyebrow { color: var(--accent-ink); }
.quote-feature__aside { display: flex; flex-direction: column; gap: 28px; }
.quote-feature blockquote {
  margin: 0; font-family: var(--font-display); font-weight: 600;
  font-size: clamp(27px, 3.6vw, 50px); line-height: 1.18; letter-spacing: -1.6px;
  color: var(--fg-ink); text-wrap: balance;
}
.quote-feature blockquote::before { content: "\201C"; color: var(--accent); margin-right: 2px; }
.quote-feature blockquote::after { content: "\201D"; color: var(--accent); }
.quote-feature__who { display: flex; flex-direction: column; gap: 4px; }
.quote-feature__who b { font-family: var(--font-display); font-size: 16px; color: var(--fg-ink); }
.quote-feature__who span { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

@media (max-width: 1080px) {
  .cap-head { gap: 20px; align-items: flex-start; }
  .cap-tiles { grid-template-columns: 1fr; gap: 14px; }
  .cap-tile { min-height: 380px; }
  .method { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .method__step:nth-child(4) { border-left: 0; padding-left: 0; }
  .method__step:nth-child(n+4) { margin-top: 26px; }
}
@media (max-width: 900px) {
  .stat-band__inner { padding: 64px 0; }
  .stats--xl { grid-template-columns: 1fr; }
  .stats--xl .stat { padding: 22px 0; border-left: 0; border-top: 1px solid rgba(245, 243, 239, 0.22); }
  .stats--xl .stat:first-child { border-top: 0; padding-top: 0; }
  .stats--xl .stat__num { letter-spacing: -2px; }
}
@media (max-width: 640px) {
  .cap-tile { min-height: 340px; padding: 24px; }
  .cap-tile__arrow { top: 18px; right: 18px; }
  .method { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .method__step:nth-child(3) { border-left: 0; padding-left: 0; }
  .method__step:nth-child(4) { border-left: 1px solid var(--border); padding-left: 18px; }
  .method__step:nth-child(n+3) { margin-top: 24px; }
}

/* ---------- 26. Responsive ---------- */
@media (max-width: 1080px) {
  .nav { display: none; }
  .site-header__actions { display: none; }
  .nav-toggle { display: inline-flex; }
  .page-hero--split { grid-template-columns: 1fr; gap: 40px; }
  .hero__meta { display: none; }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
  .cta-band__inner { grid-template-columns: 1fr; }
  .cta-band__actions { justify-content: flex-start; }
}
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split--reverse .split__media { order: 0; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step { border-bottom: 1px solid var(--border); }
  .step:nth-child(2n) { border-right: 0; }
  .step:nth-last-child(-n+2) { border-bottom: 0; }
  .photo-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .img-band__inner, .img-band--tall .img-band__inner { padding: 72px 0 68px; }
  .img-band__title { max-width: none; }
  .arch__head, .arch__row { grid-template-columns: 150px minmax(0, 1fr); gap: 18px 24px; padding-inline: 22px; }
  .arch__head span:nth-child(3), .arch__row > :nth-child(3) { display: none; }
  .hero__meta { display: none; }
  .insight-toolbar { flex-direction: column; align-items: stretch; }
  .insight-search { max-width: none; }
  .crumbs a { min-height: 44px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; gap: 4px; }
  .cap-grid { grid-template-columns: 1fr; }
  .cap { border-right: 0 !important; }
  .cap:nth-last-child(-n+2) { border-bottom: 1px solid var(--border); }
  .cap:last-child { border-bottom: 0; }
  .sol-row { grid-template-columns: 1fr; gap: 12px; }
  .role-row { grid-template-columns: 1fr; gap: 14px; padding: 24px 8px; }
  .steps { grid-template-columns: 1fr; }
  .step { border-right: 0; border-bottom: 1px solid var(--border); }
  .step:nth-last-child(-n+2) { border-bottom: 1px solid var(--border); }
  .step:last-child { border-bottom: 0; }
  .form__row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .arch__head { display: none; }
  .arch__row { grid-template-columns: 1fr; gap: 8px; padding: 22px; }
  .arch__row > :nth-child(3) { display: block; }
  .hero__inner { min-height: auto; padding-top: calc(var(--nav-h) + 96px); padding-bottom: 72px; }
  .cta-band__actions { flex-direction: column; align-items: stretch; }
  .cta-band__actions .btn { width: 100%; }
  .reader__card { padding: 40px 26px 32px; }
  .reader__title { font-size: 22px; }
  .reader__foot { flex-direction: column; align-items: flex-start; }
  .footer__col { margin-bottom: 8px; }
  .site-header__actions .btn { min-height: 44px; }
}
/* ---------- 30. Home — editorial rhythm ---------- */
/* A visual-first home: photographic doors with label-only captions, an oversized
   number strip, a method rail set into a full-bleed photograph, one lead brief
   with two compact companions, and a light oversized pull quote. */

/* numbers */
.stat-strip { padding-block: calc(var(--section-y) * 0.74); background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.stat-strip .eyebrow { color: var(--muted); }
.stat-strip__row {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 30px; border-top: 1px solid var(--border-strong);
}
.stat-strip__item { padding: 36px 36px 0 0; border-right: 1px solid var(--border); }
.stat-strip__item:last-child { border-right: 0; }
.stat-strip__item + .stat-strip__item { padding-left: 40px; }
.stat-strip__num {
  font-family: var(--font-display); font-size: clamp(58px, 7.4vw, 108px);
  line-height: .9; letter-spacing: -5px; font-weight: 600; color: var(--fg-ink);
  font-variant-numeric: tabular-nums;
}
.stat-strip__label {
  margin: 18px 0 0; max-width: 24ch;
  font-family: var(--font-mono); font-size: 11px; line-height: 1.7;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}

/* method rail over a photograph */
.method-band .img-band__inner { max-width: var(--container); padding: 108px 0 88px; }
/* the rail runs edge to edge, so the photograph needs a stronger grade to keep
   the 11px step numbers above 4.5:1 in the brighter corners */
.method-band .img-band__scrim {
  background: linear-gradient(180deg, rgba(10, 10, 26, 0.88) 0%, rgba(10, 10, 26, 0.6) 38%, rgba(10, 10, 26, 0.92) 100%);
}
.method-band .img-band__title { max-width: 20ch; color: var(--on-dark); }
.method-rail {
  list-style: none; margin: 60px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  border-top: 1px solid rgba(245, 243, 239, 0.3);
}
.method-rail__item { display: flex; flex-direction: column; gap: 9px; padding: 22px 18px 0 0; }
.method-rail__n { font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em; color: var(--accent); }
.method-rail__t { font-family: var(--font-display); font-size: clamp(17px, 1.7vw, 22px); font-weight: 700; letter-spacing: -.3px; color: var(--on-dark); }
.method-band .img-band__credit { margin-top: 34px; }

/* lead brief + two companions */
.insight-lead { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; }
.insight-lead__main {
  position: relative; display: block; min-height: 540px; overflow: hidden;
  border-radius: var(--radius-lg); background: var(--dark); isolation: isolate;
}
.insight-lead__main img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(.35) brightness(.86) contrast(1.05);
  transition: transform .7s cubic-bezier(.2, .7, .2, 1), filter .4s ease;
}
.insight-lead__main:hover img { transform: scale(1.04); filter: grayscale(.1) brightness(.92) contrast(1.05); }
.insight-lead__scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(10, 10, 26, 0.08) 0%, rgba(10, 10, 26, 0.42) 46%, rgba(10, 10, 26, 0.94) 100%);
}
.insight-lead__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; flex-direction: column; gap: 12px; padding: 38px 40px; }
.insight-lead__cat { font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.insight-lead__title {
  margin: 0; max-width: 22ch; font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 40px); line-height: 1.1; letter-spacing: -1.1px;
  font-weight: 700; color: var(--on-dark); text-wrap: balance;
}
.insight-lead__meta { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .06em; color: rgba(245, 243, 239, 0.8); }
.insight-lead__cta { align-self: flex-start; margin-top: 6px; color: var(--on-dark); }
.insight-lead__main:hover .insight-lead__cta { color: var(--accent); border-color: var(--accent); }
.insight-lead__main:hover .insight-lead__cta svg { transform: translateX(4px); }
.insight-lead__main:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }

.insight-lead__side { display: grid; grid-auto-rows: 1fr; gap: 20px; }
.insight-mini {
  display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 20px; align-items: center;
  padding: 20px; background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: var(--radius-lg); transition: border-color .22s ease, background-color .22s ease;
}
.insight-mini:hover { border-color: var(--border-strong); }
.insight-mini:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.insight-mini__thumb {
  position: relative; display: block; aspect-ratio: 1; overflow: hidden;
  border-radius: 8px; background: var(--dark);
}
.insight-mini__thumb img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.4) brightness(.9); transition: transform .5s ease; }
.insight-mini:hover .insight-mini__thumb img { transform: scale(1.06); }
.insight-mini__body { display: flex; flex-direction: column; gap: 8px; }
.insight-mini__cat { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-ink); }
.insight-mini__title {
  margin: 0; font-family: var(--font-display); font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.24; letter-spacing: -.3px; font-weight: 700; color: var(--fg-ink);
}
.insight-mini__meta { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .06em; color: var(--muted); }

@media (max-width: 1080px) {
  .insight-lead { grid-template-columns: 1fr; gap: 16px; }
  .insight-lead__main { min-height: 460px; }
  .insight-lead__side { grid-auto-rows: auto; gap: 14px; }
  .insight-mini { grid-template-columns: 88px minmax(0, 1fr); gap: 16px; padding: 16px; }
  .method-rail { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .method-rail__item:nth-child(n + 4) { margin-top: 28px; }
}
@media (max-width: 900px) {
  .stat-strip__row { grid-template-columns: 1fr; }
  .stat-strip__item { padding: 28px 0; border-right: 0; border-bottom: 1px solid var(--border); }
  .stat-strip__item:last-child { border-bottom: 0; padding-bottom: 0; }
  .stat-strip__item + .stat-strip__item { padding-left: 0; }
  .stat-strip__label { max-width: none; }
  .quote-feature__inner { grid-template-columns: 1fr; gap: 24px; }
  .quote-feature__aside { flex-direction: row; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
  .method-band .img-band__inner { padding: 72px 0 64px; }
  .method-rail { margin-top: 44px; }
}
@media (max-width: 640px) {
  .stat-strip__num { letter-spacing: -3px; }
  .insight-lead__main { min-height: 420px; }
  .insight-lead__body { padding: 26px 24px; }
  .method-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .method-rail__item:nth-child(3) { margin-top: 28px; }
  .quote-feature blockquote { letter-spacing: -1px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  [data-reveal], .hero .reveal-line { opacity: 1 !important; transform: none !important; }
  .marquee__track { animation: none; }
}
