/* ============ Tokens ============ */
:root {
  color-scheme: dark;
  --color-background: #0A0B0E;
  --color-background-secondary: #0D0F14;
  --color-surface: #10131A;
  --color-surface-elevated: #151924;
  --color-text-primary: #F2F4F8;
  --color-text-secondary: #9BA3B2;
  --color-text-muted: #7C8494;
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-strong: rgba(255, 255, 255, 0.14);
  --color-accent: #5273F8;
  --color-accent-hover: #6C88FA;
  --color-accent-muted: rgba(82, 115, 248, 0.12);
  --color-accent-line: rgba(82, 115, 248, 0.35);
  --color-accent-secondary: #8B7CF8;
  --color-success: #4ADE9B;

  --font-sans: "Geist", -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --text-display: clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
  --text-h2: clamp(1.85rem, 1.3rem + 2.2vw, 2.9rem);
  --text-h3: clamp(1.15rem, 1.05rem + 0.5vw, 1.45rem);
  --text-lead: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  --text-body: 1rem;
  --text-small: 0.875rem;
  --text-label: 0.75rem;

  --container-width: 1320px;
  --container-pad: clamp(20px, 4vw, 40px);
  --section-spacing: clamp(96px, 7vw + 48px, 160px);

  --radius-small: 8px;
  --radius-medium: 12px;
  --radius-large: 16px;

  --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.35);
  --shadow-accent: 0 0 0 1px rgba(82, 115, 248, 0.3), 0 8px 32px rgba(82, 115, 248, 0.18);

  --transition-fast: 160ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-standard: 280ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-reveal: 700ms cubic-bezier(0.22, 1, 0.36, 1);
  --ease-pill: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.32, 0.72, 0, 1);

  --header-height: 72px;
  --banner-height: 42px;
  --timeline-progress: 1;
}
html.banner-dismissed { --banner-height: 0px; }

/* ============ Fonts ============ */
@font-face { font-family: "Geist"; src: url("assets/fonts/geist-sans-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist"; src: url("assets/fonts/geist-sans-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist"; src: url("assets/fonts/geist-sans-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist"; src: url("assets/fonts/geist-sans-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("assets/fonts/geist-mono-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

/* ============ Reset & base ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: 1.65;
  color: var(--color-text-primary);
  background: var(--color-background);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
address { font-style: normal; }

h1, h2, h3 { font-weight: 600; line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: var(--text-display); line-height: 1.05; letter-spacing: -0.03em; }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); }

p { max-width: 65ch; }
.lead { font-size: var(--text-lead); line-height: 1.6; color: var(--color-text-secondary); }

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

::selection { background: var(--color-accent-muted); color: var(--color-text-primary); }

/* ============ Site loader ============ */
html.loading { overflow: hidden; }
.site-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: #0A0B0E;
  opacity: 1;
  transition: opacity 550ms ease;
}
.site-loader.is-done {
  opacity: 0;
  pointer-events: none;
}
html:not(.loading) .site-loader { display: none; }
.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}
.loader {
  --color-1: #fff;
  --color-2: #0003FF;
  --size: 1px;

  transform: rotateZ(45deg);
  perspective: calc(1000 * var(--size));
  border-radius: 50%;
  width: calc(48 * var(--size));
  height: calc(48 * var(--size));
  color: var(--color-1);
}
.loader:before,
.loader:after {
  content: '';
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: inherit;
  height: inherit;
  border-radius: 50%;
  transform: rotateX(70deg);
  animation: 1s spin linear infinite;
}
.loader:after {
  color: var(--color-2);
  transform: rotateY(70deg);
  animation-delay: 0.4s;
}

@keyframes rotate {
  0% {
    transform: translate(-50%, -50%) rotateZ(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotateZ(360deg);
  }
}

@keyframes rotateccw {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(-360deg);
  }
}

@keyframes spin {
  0%,
  100% {
    box-shadow: 0.2em 0 0 0 currentcolor;
  }
  12% {
    box-shadow: 0.2em 0.2em 0 0 currentcolor;
  }
  25% {
    box-shadow: 0 0.2em 0 0 currentcolor;
  }
  37% {
    box-shadow: -0.2em 0.2em 0 0 currentcolor;
  }
  50% {
    box-shadow: -0.2em 0 0 0 currentcolor;
  }
  62% {
    box-shadow: -0.2em -0.2em 0 0 currentcolor;
  }
  75% {
    box-shadow: 0 -0.2em 0 0 currentcolor;
  }
  87% {
    box-shadow: 0.2em -0.2em 0 0 currentcolor;
  }
}

.loader-mark {
  width: 104px;
  height: auto;
  opacity: 0.85;
  animation: loader-fade 1.6s ease-in-out infinite;
}
@keyframes loader-fade { 0%, 100% { opacity: 0.5; } 50% { opacity: 0.9; } }
@media (prefers-reduced-motion: reduce) {
  .loader:before, .loader:after { animation: none; }
  .loader-mark { animation: none; opacity: 0.85; }
}

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

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--color-accent);
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius-small);
  transform: translateY(-200%);
}
.skip-link:focus-visible { transform: none; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-label);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-accent);
  margin-bottom: 16px;
}

section { padding-block: var(--section-spacing); }

.section-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-sub { margin-top: 16px; color: var(--color-text-secondary); }

/* ============ Buttons & links ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-small);
  font-weight: 600;
  font-size: var(--text-small);
  line-height: 1.2;
  white-space: nowrap;
  transition: background var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-standard), transform var(--transition-fast);
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 15px 30px; font-size: var(--text-body); }

.btn-primary { background: #4262E8; color: #fff; }
.btn-primary:hover { background: var(--color-accent); box-shadow: var(--shadow-accent); }

.btn-ghost {
  border: 1px solid var(--color-border-strong);
  color: var(--color-text-primary);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--color-accent-line); background: var(--color-accent-muted); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-small);
  font-weight: 500;
  color: var(--color-accent-hover);
}
.text-link::after {
  content: "\2192";
  transition: transform var(--transition-fast);
}
a:hover .text-link::after, .text-link:hover::after { transform: translateX(3px); }

/* ============ Header / nav ============ */
/* ============ Announcement bar ============ */
.announce-bar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 55;
  height: var(--banner-height);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-inline: clamp(48px, 6vw, 68px);
  background: linear-gradient(90deg, #0C0E14 0%, #141A2B 50%, #0C0E14 100%);
  color: var(--color-text-primary);
  border-bottom: 1px solid var(--color-border-strong);
  overflow: hidden;
}
html.banner-dismissed .announce-bar { display: none; }

.announce-bar__link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  color: var(--color-text-secondary);
  font-size: var(--text-small);
  font-weight: 500;
  letter-spacing: 0.005em;
  min-width: 0;
}
.announce-bar__link strong { font-weight: 600; color: var(--color-text-primary); }
.announce-bar__link:hover .announce-bar__text { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

.announce-bar__tag {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--color-accent-muted);
  border: 1px solid var(--color-accent-line);
  color: var(--color-accent-hover);
}
.announce-bar__text { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.announce-bar__text--short { display: none; }
.announce-bar__arrow {
  flex-shrink: 0;
  font-size: 1.05em;
  color: var(--color-accent-hover);
  transition: transform var(--transition-fast);
}
.announce-bar__link:hover .announce-bar__arrow { transform: translateX(4px); }

.announce-bar__close {
  position: absolute;
  top: 50%;
  right: clamp(8px, 2vw, 16px);
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast);
}
.announce-bar__close:hover { background: rgba(255, 255, 255, 0.18); color: #fff; }

@media (max-width: 768px) {
  .announce-bar { padding-inline: clamp(14px, 4vw, 24px) 44px; }
  .announce-bar__text--full { display: none; }
  .announce-bar__text--short { display: inline; }
}
@media (max-width: 600px) {
  /* free up horizontal room on phones so the short text never clips */
  .announce-bar__tag { display: none; }
  .announce-bar__link { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .announce-bar__arrow { transition: none; }
}

/* Cookie consent banner (gates Google Analytics) */
.cookie-banner {
  position: fixed;
  z-index: 60;
  left: 50%;
  bottom: clamp(12px, 3vw, 24px);
  transform: translateX(-50%);
  width: min(680px, calc(100% - 32px));
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 20px;
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-medium);
  box-shadow: var(--shadow-soft);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner__text {
  margin: 0;
  flex: 1 1 auto;
  font-size: var(--text-small);
  color: var(--color-text-secondary);
  line-height: 1.5;
}
.cookie-banner__text a { color: var(--color-accent-hover); }
.cookie-banner__actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-banner__btn { padding: 8px 18px; font-size: var(--text-small); }
@media (max-width: 560px) {
  .cookie-banner { flex-direction: column; align-items: stretch; gap: 12px; text-align: left; }
  .cookie-banner__actions { justify-content: flex-end; }
}

.site-header {
  position: fixed;
  inset: var(--banner-height) 0 auto 0;
  z-index: 50;
  height: var(--header-height);
  transition: height var(--transition-standard), background var(--transition-standard), border-color var(--transition-standard);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  --header-height: 64px;
  background: rgba(10, 11, 14, 0.82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--color-border);
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  height: 100%;
}
.brand { display: inline-flex; flex-shrink: 0; }
.brand img { width: 102px; height: 26px; }

/* ---- Desktop center rail + sliding pill (variant 15) ---- */
.nav-rail {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.15rem;
  height: 100%;
}
.nav-pill {
  position: absolute;
  top: 50%;
  left: 0;
  height: 2.15rem;
  width: 100px;
  margin-top: -1.075rem;
  border-radius: 999px;
  background: rgba(82, 115, 248, 0.16);
  border: 1px solid var(--color-accent-line);
  transform-origin: left center;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.55s var(--ease-pill), opacity 0.35s var(--ease-soft);
}
.nav-pill.on { opacity: 1; }
.rail-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: inherit;
  font-size: var(--text-small);
  font-weight: 500;
  color: var(--color-text-secondary);
  padding: 0.5rem 1.05rem;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: color var(--transition-fast);
}
.rail-link:hover,
.rail-link[aria-current],
.rail-link[aria-expanded="true"] { color: var(--color-text-primary); }
.rail-caret {
  width: 11px;
  height: 11px;
  stroke: currentColor;
  stroke-width: 1.7;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform var(--transition-standard);
}
.rail-link[aria-expanded="true"] .rail-caret { transform: rotate(180deg); }

/* ---- Services mega panel + Products popover ---- */
.nav-mega,
.nav-pop {
  position: absolute;
  top: 100%;
  z-index: 40;
  background: rgba(13, 15, 20, 0.92);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-soft);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-soft), transform 0.4s var(--ease-soft), visibility 0s 0.4s;
}
.nav-mega {
  left: 50%;
  width: min(660px, calc(100vw - 2 * var(--container-pad)));
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.3rem;
  padding: 0.9rem;
  transform: translate(-50%, -8px);
}
.nav-pop {
  left: var(--pop-left, 50%);
  width: 300px;
  padding: 0.5rem;
  transform: translate(-50%, -8px);
}
.nav-mega.open,
.nav-pop.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
  transition: opacity 0.4s var(--ease-soft), transform 0.4s var(--ease-soft);
}
.nav-mega a,
.nav-pop a {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 0.85rem 0.9rem;
  border-radius: var(--radius-medium);
  transition: background var(--transition-fast), transform var(--transition-fast);
}
.nav-mega a { opacity: 0; transform: translateY(12px); transition: background var(--transition-fast), opacity 0.5s var(--ease-pill), transform 0.5s var(--ease-pill); }
.nav-mega.open a { opacity: 1; transform: none; }
.nav-mega.open a:nth-child(2) { transition-delay: 0.04s; }
.nav-mega.open a:nth-child(3) { transition-delay: 0.08s; }
.nav-mega.open a:nth-child(4) { transition-delay: 0.12s; }
.nav-mega.open a:nth-child(5) { transition-delay: 0.16s; }
.nav-mega a:hover,
.nav-pop a:hover { background: var(--color-accent-muted); }
.nav-mega-all { grid-column: 1 / -1; }
.nav-mega i,
.nav-pop i {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--color-accent-muted);
  border: 1px solid var(--color-accent-line);
}
.nav-mega i .service-icon,
.nav-pop i .service-icon { width: 20px; height: 20px; }
.nav-mega b,
.nav-pop b { display: block; font-size: 0.9rem; font-weight: 600; color: var(--color-text-primary); margin-bottom: 0.2rem; }
.nav-mega small,
.nav-pop small { display: block; font-size: 0.78rem; line-height: 1.45; color: var(--color-text-muted); }

/* .desk = desktop-only elements */
.desk { display: inline-flex; }
.nav-cta.desk { display: inline-flex; }

.nav-menu { display: none; align-items: center; gap: 32px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  font-size: var(--text-small);
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
  padding-block: 8px;
}
.nav-links a:hover { color: var(--color-text-primary); }
.nav-links a[aria-current] { color: var(--color-text-primary); }

/* Products dropdown */
.nav-dropdown-wrap { position: relative; }
.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-small);
  font-weight: 500;
  color: var(--color-text-secondary);
  padding-block: 8px;
  cursor: pointer;
  transition: color var(--transition-fast);
}
.nav-dropdown-toggle:hover,
.nav-dropdown-toggle[aria-expanded="true"] { color: var(--color-text-primary); }
.nav-caret {
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-1px) rotate(45deg);
  transition: transform var(--transition-fast);
}
.nav-dropdown-toggle[aria-expanded="true"] .nav-caret { transform: translateY(1px) rotate(-135deg); }
.nav-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: -12px;
  min-width: 190px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-medium);
  box-shadow: var(--shadow-soft);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity var(--transition-fast), transform var(--transition-fast), visibility 0s var(--transition-fast);
  z-index: 50;
}
/* invisible bridge so hover survives the gap between toggle and panel */
.nav-dropdown::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}
.nav-dropdown-wrap:hover .nav-dropdown,
.nav-dropdown-wrap:focus-within .nav-dropdown,
.nav-dropdown-toggle[aria-expanded="true"] + .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}
.nav-product-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 12px;
  border-radius: var(--radius-small);
  font-size: var(--text-small);
  font-weight: 600;
  color: var(--color-accent);
  transition: background var(--transition-fast), color var(--transition-fast);
}
.nav-product-link:hover { background: var(--color-accent-muted); color: var(--color-accent-hover); }
.nav-product-link::after { display: none; }
.nav-product-ext { font-size: 0.85em; opacity: 0.75; }
/* Plainer internal dropdown links (Services menu) */
.nav-dropdown--wide { min-width: 300px; }
.nav-dropdown-link {
  display: block;
  padding: 9px 12px;
  border-radius: var(--radius-small);
  font-size: var(--text-small);
  font-weight: 500;
  line-height: 1.35;
  color: var(--color-text-secondary);
  transition: background var(--transition-fast), color var(--transition-fast);
}
.nav-dropdown-link:hover { background: var(--color-accent-muted); color: var(--color-text-primary); }
.nav-dropdown-link::after { display: none; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 4px;
  font-family: var(--font-mono);
  font-size: var(--text-label);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-secondary);
}
.nav-toggle-bars { display: inline-flex; flex-direction: column; gap: 5px; width: 18px; }
.nav-toggle-bars span {
  height: 1.5px;
  background: var(--color-text-primary);
  transition: transform var(--transition-standard);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

/* ============ Hero ============ */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding-top: calc(var(--banner-height) + var(--header-height) + 24px);
  overflow: clip;
}
.hero-bg-fallback,
.hero-bg-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.5;
  pointer-events: none;
  /* Fade toward the left (bias to the right half) and top/bottom, so the
     grid never competes with the headline. Two masks intersected. */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 42%),
                      linear-gradient(to bottom, transparent, #000 12%, #000 80%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 42%),
              linear-gradient(to bottom, transparent, #000 12%, #000 80%, transparent);
  mask-composite: intersect;
}
/* Static SVG shown pre-load and on mobile; hidden by JS once the canvas animates. */
.hero-bg-fallback {
  background: no-repeat right center / auto 100% url(/assets/images/hero-mesh-static.svg);
  transition: opacity 400ms ease;
}
.hero-bg-canvas { opacity: 0.55; }
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: clamp(38px, 4.5vw, 76px);
  width: 100%;
}
.hero-copy { position: relative; max-width: 42rem; }
.hero h1 { max-width: none; font-size: clamp(2.4rem, 1.6rem + 3vw, 4rem); text-wrap: pretty; }
@media (max-width: 767px) { .hero-br { display: none; } }

/* Scroll-down cue, centered at the bottom of the hero */
.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: clamp(20px, 3.5vh, 40px);
  transform: translateX(-50%);
  z-index: 2;
  display: block;
  color: var(--color-text-muted);
  transition: color 200ms ease, opacity 200ms ease;
  animation: hero-scroll-float 2.4s ease-in-out infinite;
}
.hero-scroll:hover { color: var(--color-text-primary); }
.hero-scroll.is-hidden {
  opacity: 0;
  pointer-events: none;
  animation: none;
}
.hero-scroll-mouse {
  display: block;
  width: 26px;
  height: 42px;
  border: 2px solid currentColor;
  border-radius: 14px;
  opacity: 0.75;
}
.hero-scroll-wheel {
  display: block;
  width: 4px;
  height: 8px;
  margin: 7px auto 0;
  border-radius: 2px;
  background: currentColor;
  animation: hero-scroll-wheel 1.6s ease-in-out infinite;
}
@keyframes hero-scroll-wheel {
  0%   { transform: translateY(1px); }
  50%  { transform: translateY(10px); }
  100% { transform: translateY(1px); }
}
@keyframes hero-scroll-float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(6px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-scroll, .hero-scroll-wheel { animation: none; }
}
@media (max-width: 767px) { .hero-scroll { display: none; } }

/* Hero terminal (dark-web intercept feed) */
.hero-visual { position: relative; }
.hero-visual::before {
  content: "";
  position: absolute;
  inset: -18% -12%;
  background: radial-gradient(ellipse 60% 55% at 60% 45%, rgba(82, 115, 248, 0.14), transparent 70%);
  pointer-events: none;
  z-index: -1;
}
.hero-term {
  position: static;
  box-shadow: var(--shadow-soft), var(--shadow-accent);
}
.hero-term .terminal-body {
  gap: 12px;
  min-height: 260px;
  align-content: start;
}
.t-crit { color: #F87171; }
.t-redact { color: var(--color-text-muted); letter-spacing: 1px; }
.hero-term .terminal-body p { animation: feed-in 340ms cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes feed-in { from { opacity: 0; transform: translateY(5px); } }
.hero-lead {
  margin-top: 24px;
  max-width: 52ch;
  font-size: var(--text-lead);
  line-height: 1.6;
  color: var(--color-text-secondary);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: clamp(48px, 6vw, 80px);
  border-top: 1px solid var(--color-border);
  padding-top: 24px;
  max-width: 680px;
}
.hero-stats > div {
  display: flex;
  flex-direction: column-reverse;
  padding-right: 32px;
  margin-right: 32px;
  border-right: 1px solid var(--color-border);
}
.hero-stats > div:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.hero-stats dd {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  color: var(--color-text-primary);
}
.hero-stats dt { font-size: var(--text-label); color: var(--color-text-muted); letter-spacing: 0.02em; }

/* ============ Recognition ============ */
.recognition { padding-block: clamp(80px, 6vw, 120px) clamp(48px, 4vw, 72px); }
.about { padding-top: clamp(56px, 5vw, 96px); }
.recognition-note {
  font-size: var(--text-small);
  color: var(--color-text-muted);
  max-width: none;
  margin-bottom: 36px;
  text-align: center;
}
/* Recognition — counter-flow pill belts: two rows drifting opposite ways.
   Each pill carries a brand logo + name; belts pause on hover. */
.cf-belts {
  --cf-accent: 82, 115, 248;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-block: 6px;
}
.cf-mq {
  display: flex;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.cf-track {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  will-change: transform;
}
.cf-belts.is-on .cf-track { animation: cf-drift 46s linear infinite; }
.cf-belts.is-on .cf-mq.cf-rev .cf-track {
  animation-direction: reverse;
  animation-duration: 58s;
}
.cf-belts.is-on .cf-mq:hover .cf-track { animation-play-state: paused; }
@keyframes cf-drift { to { transform: translateX(-50%); } }

.cf-pill {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-right: 14px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--color-border-strong);
  background: var(--color-surface-elevated);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: border-color var(--transition-standard), box-shadow var(--transition-standard);
}
.cf-pill:hover {
  border-color: rgba(var(--cf-accent), 0.55);
  box-shadow: 0 0 26px -8px rgba(var(--cf-accent), 0.5);
}
.cf-pill img {
  height: 22px;
  width: auto;
  opacity: 0.92;
  transition: opacity var(--transition-standard);
}
.cf-pill:hover img { opacity: 1; }
/* Seek's navy mark is near-invisible on the dark pill; lift it so it reads */
.cf-pill .cf-logo--seek { filter: brightness(1.9) saturate(1.2); }
.cf-pill span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  white-space: nowrap;
}

/* ============ About ============ */
.about-grid {
  display: grid;
  grid-template-columns: 5fr 1fr 6fr;
  align-items: start;
}
.about-head { grid-column: 1; position: sticky; top: 120px; }
.about-head .eyebrow { color: var(--color-text-muted); }
.about-body { grid-column: 3; display: grid; gap: 24px; }
.about-body p { color: var(--color-text-secondary); }
.about-body .lead { color: var(--color-text-primary); }
.about-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}
.about-facts li {
  font-family: var(--font-mono);
  font-size: var(--text-label);
  letter-spacing: 0.04em;
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 8px 16px;
}

/* ============ Services ============ */
.services { background: var(--color-background-secondary); }

.services-featured {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 260px;
  padding: 32px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-large);
  overflow: hidden;
  transition: border-color var(--transition-standard), transform var(--transition-standard), box-shadow var(--transition-standard);
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(82, 115, 248, 0.1), transparent 70%);
  opacity: 0;
  transition: opacity var(--transition-standard);
  pointer-events: none;
}
.service-card:hover { border-color: var(--color-border-strong); transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.service-card:hover::before { opacity: 1; }
.service-card.is-highlighted {
  border-color: var(--color-accent-line);
  background: linear-gradient(160deg, var(--color-accent-muted), var(--color-surface) 45%);
}
.service-card.is-highlighted:hover { box-shadow: var(--shadow-accent); }
.service-card p { color: var(--color-text-secondary); font-size: var(--text-small); flex-grow: 1; }
.service-card .text-link { position: relative; z-index: 1; align-self: flex-start; }

.service-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.service-num {
  font-family: var(--font-mono);
  font-size: var(--text-label);
  color: var(--color-text-muted);
  letter-spacing: 0.08em;
}
.service-tag {
  font-family: var(--font-mono);
  font-size: var(--text-label);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent-hover);
  background: var(--color-accent-muted);
  border: 1px solid var(--color-accent-line);
  border-radius: 999px;
  padding: 4px 12px;
}
.service-icon {
  width: 24px; height: 24px;
  stroke: var(--icon-color, var(--color-text-secondary));
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  transition: stroke var(--transition-standard), transform var(--transition-standard), filter var(--transition-standard);
}
.service-icon.ic-blue   { --icon-color: #5273F8; }
.service-icon.ic-purple { --icon-color: #8B7CF8; }
.service-icon.ic-cyan   { --icon-color: #38BDF8; }
.service-icon.ic-green  { --icon-color: #4ADE9B; }
.service-icon.ic-amber  { --icon-color: #F5B454; }
.service-icon.ic-rose   { --icon-color: #F472B6; }
.service-card:hover .service-icon {
  transform: translateY(-2px);
  filter: drop-shadow(0 2px 9px color-mix(in srgb, var(--icon-color, var(--color-accent-hover)) 55%, transparent));
}

.services-compact {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.services-compact li {
  position: relative;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 22px 24px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-medium);
  transition: border-color var(--transition-standard), background var(--transition-standard);
}
.services-compact li:hover { border-color: var(--color-border-strong); background: var(--color-surface-elevated); }
.services-compact li:hover .service-icon { filter: drop-shadow(0 2px 7px color-mix(in srgb, var(--icon-color, var(--color-accent-hover)) 55%, transparent)); }
.services-compact .service-icon { margin-top: 3px; width: 20px; height: 20px; }
.services-compact h3 { font-size: var(--text-body); font-weight: 600; letter-spacing: -0.01em; }
.services-compact p { font-size: var(--text-small); color: var(--color-text-muted); margin-top: 4px; }
.cover-link { position: absolute; inset: 0; border-radius: inherit; }

/* ============ Methodology ============ */
/* Desktop: pin the section in the viewport while the timeline fills, so each
   step can be read as it reveals instead of scrolling past. */
@media (min-width: 992px) and (prefers-reduced-motion: no-preference) {
  .methodology { min-height: 220vh; padding-block: 0; }
  .methodology-pin {
    position: sticky;
    top: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-block: var(--section-spacing);
  }
}
.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 24px;
  counter-reset: step;
  padding-top: 36px;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--color-border);
  border-radius: 1px;
}
.timeline::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--color-accent);
  border-radius: 1px;
  transform: scaleX(var(--timeline-progress));
  transform-origin: left;
}
/* Steps stay hidden until the progress bar fills to them, then slide in from
   the right (a horizontal stacking effect) in sync with the fill. */
.js .timeline-step {
  opacity: 0;
  transform: translateX(36px);
  transition: opacity var(--transition-standard), transform var(--transition-standard);
}
.js .timeline-step.is-active { opacity: 1; transform: none; }
.timeline-step .step-num {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--text-label);
  color: var(--color-text-muted);
  margin-bottom: 12px;
  transition: color var(--transition-standard);
}
.timeline-step.is-active .step-num,
html:not(.js) .timeline-step .step-num { color: var(--color-accent); }
.timeline-step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.timeline-step p { font-size: var(--text-small); color: var(--color-text-muted); }

/* ============ Expertise / certifications ============ */
.expertise { background: var(--color-background-secondary); }
.badge-grid {
  /* grid (not flex) so a short last row keeps its track width instead of
     stretching; wide chips give wordmark logos room to render full size */
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}
.badge-grid li {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  min-height: 76px;
  padding: 14px 16px;
  /* Pure white, not off-white: several badges (OWASP, ICSI, NSE, CVA) have a
     white background baked in, so any tint shows them as visible boxes. */
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-medium);
  transition: transform var(--transition-standard), box-shadow var(--transition-standard);
}
.badge-grid li:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.badge-grid img {
  /* scale down to fit the chip on BOTH axes so wide marks keep their
     aspect ratio instead of being squeezed horizontally by flex-shrink */
  max-height: 48px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: saturate(0.85);
  transition: filter var(--transition-standard);
}
.badge-grid li:hover img { filter: none; }
.badge-grid img[src*="cert-ceh"] { max-height: 44px; }

/* ============ Certifications marquee ============ */
.cert-marquee {
  overflow: hidden;
  /* vertical breathing room so a hover-scaled card isn't clipped top/bottom */
  padding-block: 16px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.cert-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  width: max-content;
  animation: cert-scroll 42s linear infinite;
}
@keyframes cert-scroll { to { transform: translateX(-50%); } }
.cert-marquee:hover .cert-track { animation-play-state: paused; }
.cert-card {
  flex: 0 0 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 92px;
  padding: 12px;
  background: linear-gradient(150deg, var(--color-surface-elevated), var(--color-surface));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-medium);
  transition: transform var(--transition-standard), border-color var(--transition-standard), box-shadow var(--transition-standard);
}
.cert-card:hover {
  transform: scale(1.06);
  border-color: var(--color-accent-line);
  box-shadow: var(--shadow-soft);
  z-index: 1;
}
.cert-card img {
  max-height: 52px;
  max-width: 78%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform var(--transition-standard);
}
.cert-card:hover img { transform: scale(1.1); }
/* Dark-on-transparent logos would vanish on the dark card — give only these a light chip */
.cert-card img[src*="cert-ceh"],
.cert-card img[src*="cert-cap"] {
  background: #fff;
  padding: 8px 13px;
  border-radius: 8px;
}
.cert-card img[src*="cert-ceh"] { max-height: 42px; }
.cert-card img[src*="cert-cap"] { max-height: 58px; }

.appearances-title {
  font-size: var(--text-body);
  color: var(--color-text-secondary);
  font-weight: 500;
  margin-top: clamp(48px, 5vw, 72px);
}
.appearances { margin-top: 20px; border-top: 1px solid var(--color-border); }
.appearances li {
  display: grid;
  grid-template-columns: minmax(220px, 2fr) 3fr;
  gap: 24px;
  padding-block: 22px;
  border-bottom: 1px solid var(--color-border);
}
.appearance-conf {
  font-family: var(--font-mono);
  font-size: var(--text-small);
  color: var(--color-text-muted);
}
.appearance-talk { font-weight: 500; }
.appearance-speaker {
  display: block;
  font-weight: 400;
  font-size: var(--text-small);
  color: var(--color-text-muted);
  margin-top: 4px;
}

/* Public appearances & talks — video cards */
.talks {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(20px, 2.5vw, 32px);
}
.talk-card { display: flex; flex-direction: column; gap: 14px; }
.talk-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: #101014;
}
.talk-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
  transition: transform var(--transition-standard), opacity var(--transition-standard);
}
.talk-thumb:hover img { transform: scale(1.05); opacity: 1; }
.talk-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(10, 10, 12, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: background var(--transition-standard), transform var(--transition-standard);
}
.talk-play::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent #fff;
}
.talk-thumb:hover .talk-play { background: var(--color-accent); transform: scale(1.08); }
.talk-duration {
  position: absolute;
  right: 10px;
  bottom: 10px;
  font-family: var(--font-mono);
  font-size: var(--text-label);
  color: #fff;
  background: rgba(10, 10, 12, 0.78);
  padding: 2px 7px;
  border-radius: 5px;
}
.talk-meta { display: flex; flex-direction: column; gap: 6px; }
.talk-conf {
  font-family: var(--font-mono);
  font-size: var(--text-small);
  color: var(--color-text-muted);
}
.talk-title { font-weight: 500; color: var(--color-text-primary); }
.talk-speaker {
  display: block;
  font-weight: 400;
  font-size: var(--text-small);
  color: var(--color-text-muted);
  margin-top: 4px;
}

/* Talks: main player + playlist (modern) */
.talk-player {
  margin-top: 44px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 372px;
  gap: 28px;
  align-items: start;
}
.talk-stage { display: flex; flex-direction: column; gap: 20px; }
.talk-stage-media {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-large);
  overflow: hidden;
  background: #0c0d12;
  box-shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.9),
              0 0 0 1px var(--color-border);
}
/* soft accent glow ring around the stage */
.talk-stage-media::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(150deg, var(--color-accent-line), transparent 45%, transparent 70%, rgba(139, 124, 248, 0.3));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
}
.talk-stage-media iframe.talk-embed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.talk-stage-play {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  position: relative;
}
.talk-stage-play img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}
/* darken toward the bottom so the play button and future titles read */
.talk-stage-play::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0,0,0,0.15), rgba(0,0,0,0.55));
  transition: background var(--transition-standard);
}
.talk-stage-play:hover img { transform: scale(1.04); }
.talk-stage-play:hover::after { background: radial-gradient(circle at center, rgba(0,0,0,0.05), rgba(0,0,0,0.4)); }
.talk-stage-play .talk-play {
  width: 84px;
  height: 84px;
  z-index: 1;
  background: rgba(15, 16, 22, 0.55);
  backdrop-filter: blur(6px);
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}
.talk-stage-play .talk-play::before { border-width: 13px 0 13px 21px; }
.talk-stage-play:hover .talk-play { background: var(--color-accent); border-color: var(--color-accent); transform: scale(1.08); }
.talk-stage-info { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.talk-stage-conf {
  font-family: var(--font-mono);
  font-size: var(--text-label);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-accent-hover);
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--color-accent-muted);
  border: 1px solid var(--color-accent-line);
}
.talk-stage-title { font-size: var(--text-h3); line-height: 1.2; }
.talk-stage-speaker { font-size: var(--text-small); color: var(--color-text-muted); }

.talk-playlist {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
/* small header above the list */
.talk-playlist::before {
  content: "Up next";
  font-family: var(--font-mono);
  font-size: var(--text-label);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  padding: 0 4px 6px;
}
.talk-playlist-item {
  position: relative;
  display: flex;
  gap: 14px;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-medium);
  background: var(--color-surface);
  cursor: pointer;
  overflow: hidden;
  transition: transform var(--transition-standard), background var(--transition-standard),
              border-color var(--transition-standard), box-shadow var(--transition-standard);
}
.talk-playlist-item:hover {
  transform: translateY(-2px);
  background: var(--color-surface-elevated);
  border-color: var(--color-border-strong);
  box-shadow: 0 12px 28px -18px rgba(0, 0, 0, 0.9);
}
.talk-playlist-item.is-active {
  background: linear-gradient(120deg, var(--color-accent-muted), var(--color-surface-elevated) 70%);
  border-color: var(--color-accent-line);
  box-shadow: 0 0 0 1px var(--color-accent-line), 0 16px 34px -20px rgba(82, 115, 248, 0.55);
}
/* accent bar on the active item */
.talk-playlist-item.is-active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(var(--color-accent), var(--color-accent-secondary));
}
.tp-thumb {
  position: relative;
  flex: 0 0 140px;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: #0c0d12;
}
.tp-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-standard);
}
.talk-playlist-item:hover .tp-thumb img { transform: scale(1.06); }
.tp-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(10, 10, 12, 0.55);
  backdrop-filter: blur(3px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  transition: background var(--transition-standard), opacity var(--transition-standard);
}
.tp-play::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent #fff;
}
.talk-playlist-item:hover .tp-play { background: var(--color-accent); border-color: var(--color-accent); }
.talk-playlist-item.is-active .tp-play { opacity: 0; }
.tp-duration {
  position: absolute;
  right: 5px;
  bottom: 5px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: #fff;
  background: rgba(10, 10, 12, 0.82);
  padding: 2px 6px;
  border-radius: 5px;
}
/* animated "now playing" equalizer on the active item (injected by JS) */
.tp-eq {
  position: absolute;
  left: 6px;
  bottom: 6px;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 15px;
  padding: 3px 4px;
  border-radius: 5px;
  background: rgba(10, 10, 12, 0.7);
  z-index: 1;
}
.tp-eq i {
  display: block;
  width: 3px;
  height: 100%;
  border-radius: 1px;
  transform-origin: bottom;
  background: var(--color-accent-hover);
  animation: tp-eq 900ms ease-in-out infinite;
}
.tp-eq i:nth-child(1) { animation-delay: 0ms; }
.tp-eq i:nth-child(2) { animation-delay: 180ms; }
.tp-eq i:nth-child(3) { animation-delay: 360ms; }
@keyframes tp-eq { 0%, 100% { transform: scaleY(0.35); } 50% { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .tp-eq i { animation: none; transform: scaleY(0.7); } }
.tp-meta { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.tp-conf {
  font-family: var(--font-mono);
  font-size: var(--text-label);
  letter-spacing: 0.02em;
  color: var(--color-text-muted);
  transition: color var(--transition-standard);
}
.talk-playlist-item.is-active .tp-conf { color: var(--color-accent-hover); }
.tp-title {
  font-size: var(--text-small);
  font-weight: 500;
  line-height: 1.35;
  color: var(--color-text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--transition-standard);
}
.talk-playlist-item:hover .tp-title,
.talk-playlist-item.is-active .tp-title { color: var(--color-text-primary); }
@media (max-width: 860px) {
  .talk-player { grid-template-columns: 1fr; }
}

/* Partner / affiliation logos on light chips */
.partner-logos {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
}
.partner-logos li {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px 20px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  transition: transform var(--transition-standard);
}
.partner-logos li:hover { transform: translateY(-3px); }
.partner-logos img {
  max-width: 100%;
  max-height: 38px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Conference / public-appearance logos — "expanding panels".
   Nine equal slats in a row; hovering one breathes it open while the rest
   compress. Each tile keeps its matched --tile-bg and object-fit:contain, so
   the logos are never cropped or distorted — only the slat's width animates.
   On phones the row becomes a horizontal snap-scroll strip. */
.appearance-logos {
  margin-top: 40px;
  display: flex;
  gap: 10px;
  height: clamp(95px, 10.5vw, 130px);
}
.appearance-logos li {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  background: var(--tile-bg, var(--color-surface));
  border-radius: 12px;
  border: 1px solid var(--color-border);
  filter: brightness(0.9);
  transition: flex 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              filter 0.45s ease;
}
/* The slat under the cursor expands; siblings share the remaining space. */
.appearance-logos li:hover {
  flex-grow: 3.4;
  filter: none;
}
.appearance-logos img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Phones: a snap-scroll strip instead of nine crushed slats. */
@media (max-width: 720px) {
  .appearance-logos {
    height: auto;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
  }
  .appearance-logos li {
    flex: 0 0 62vw;
    height: clamp(120px, 32vw, 170px);
    filter: none;
    scroll-snap-align: center;
  }
  .appearance-logos li:hover { flex: 0 0 62vw; }   /* no hover-expand on touch */
}

@media (prefers-reduced-motion: reduce) {
  .appearance-logos li { transition: none; filter: none; }
}

/* Public appearances — Split Index: an index of talks (left) drives a
   crossfading image viewer (right). Hover / tap / focus a row to show its photo. */
.sp {
  margin-top: 40px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: stretch;
}
.sp-list { display: flex; flex-direction: column; justify-content: center; }
.sp-row {
  width: 100%;
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: baseline;
  gap: 14px;
  text-align: left;
  padding: 15px 10px;
  border: 0;
  border-bottom: 1px solid var(--color-border);
  background: none;
  color: inherit;
  font-family: inherit;
  cursor: pointer;
  position: relative;
  transition: background 0.3s var(--sp-ease), padding 0.3s var(--sp-ease);
}
.sp { --sp-ease: cubic-bezier(0.22, 0.9, 0.24, 1); }
.sp-row::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: -1px; width: 2px;
  background: var(--color-accent);
  transform: scaleY(0);
  transition: transform 0.35s var(--sp-ease);
}
.sp-row .n { font-family: var(--font-mono); font-size: 0.72rem; color: var(--color-text-muted); transition: color 0.3s; }
.sp-row .tw { min-width: 0; }
.sp-row .t {
  display: block; font-weight: 600;
  font-size: clamp(0.95rem, 1.6vw, 1.12rem); letter-spacing: -0.01em;
  color: var(--color-text-secondary); transition: color 0.3s var(--sp-ease);
}
.sp-row .d {
  display: block; font-size: 0.82rem; color: var(--color-text-muted); margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color 0.3s var(--sp-ease);
}
.sp-row .s {
  font-family: var(--font-mono); font-size: 0.68rem; color: var(--color-text-muted);
  opacity: 0; transform: translateX(-6px); transition: opacity 0.3s var(--sp-ease), transform 0.3s var(--sp-ease);
}
.sp-row:hover, .sp-row.on { background: linear-gradient(90deg, var(--color-accent-muted), transparent 65%); padding-left: 18px; }
.sp-row:hover::before, .sp-row.on::before { transform: scaleY(1); }
.sp-row:hover .t, .sp-row.on .t { color: var(--color-text-primary); }
.sp-row:hover .n, .sp-row.on .n { color: var(--color-accent-hover); }
.sp-row:hover .d, .sp-row.on .d { color: var(--color-text-secondary); }
.sp-row:hover .s, .sp-row.on .s { opacity: 1; transform: none; }
.sp-view {
  position: relative;
  min-height: clamp(320px, 40vw, 540px);
  border-radius: var(--radius-large);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}
.sp-layer {
  position: absolute; inset: 0;
  opacity: 0; transform: scale(1.045);
  transition: opacity 0.6s var(--sp-ease), transform 0.8s var(--sp-ease);
}
.sp-layer.on { opacity: 1; transform: scale(1); }
.sp-layer img { width: 100%; height: 100%; object-fit: cover; }
/* Entrance: rows slide in from the left (staggered), viewer fades up */
.sp:not(.is-in) .sp-row { opacity: 0; transform: translateX(-22px); }
.sp.is-in .sp-row {
  opacity: 1; transform: none;
  transition: opacity 0.55s var(--sp-ease), transform 0.55s var(--sp-ease), background 0.3s, padding 0.3s;
  transition-delay: calc(var(--i) * 55ms), calc(var(--i) * 55ms), 0s, 0s;
}
.sp:not(.is-in) .sp-view { opacity: 0; transform: translateY(24px); }
.sp.is-in .sp-view { opacity: 1; transform: none; transition: opacity 0.7s var(--sp-ease) 0.2s, transform 0.7s var(--sp-ease) 0.2s; }
@media (max-width: 820px) {
  .sp { grid-template-columns: 1fr; }
  .sp-view { order: -1; min-height: 52vw; }
}
@media (prefers-reduced-motion: reduce) {
  .sp:not(.is-in) .sp-row, .sp:not(.is-in) .sp-view { opacity: 1; transform: none; }
  .sp-layer { transition: opacity 0.2s linear; }
}

/* Public-appearance photo gallery */
.gallery-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.gallery-item {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-medium);
  overflow: hidden;
  background: var(--color-surface);
  cursor: pointer;
  aspect-ratio: 4 / 3;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
  transition: transform var(--transition-standard), opacity var(--transition-standard);
}
.gallery-item:hover img,
.gallery-item:focus-visible img { transform: scale(1.05); opacity: 1; }
.gallery-item:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
/* Entrance animation when the gallery advances a page: slide in from the right */
.gallery-grid > li.gallery-enter {
  animation: gallery-enter 900ms cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--enter-delay, 0ms);
}
@keyframes gallery-enter {
  from { opacity: 0; transform: translateX(44px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-grid > li.gallery-enter { animation: none; }
}

/* Gallery pagination controls (built by JS) */
.gallery-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 28px;
}
.gallery-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--color-border-strong);
  background: var(--color-surface);
  color: var(--color-text-secondary);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background var(--transition-standard), color var(--transition-standard), border-color var(--transition-standard);
}
.gallery-page-btn:hover:not(:disabled) { background: var(--color-accent); color: #fff; border-color: var(--color-accent); }
.gallery-page-btn:disabled { opacity: 0.35; cursor: default; }
.gallery-page-status {
  font-family: var(--font-mono);
  font-size: var(--text-small);
  color: var(--color-text-muted);
  min-width: 56px;
  text-align: center;
}

/* 3D reflective photo ring (progressive enhancement over .gallery-grid) */
.mirror-gallery { position: relative; }
.mirror-gallery.is-active { margin-top: 24px; }
.mirror-gallery.is-active > .gallery-grid,
.mirror-gallery.is-active > .gallery-pagination { display: none !important; }
.mirror-gallery__stage {
  position: relative;
  width: 100%;
  height: clamp(300px, 32vw, 440px);
  cursor: grab;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
}
.mirror-gallery__stage.is-grabbing { cursor: grabbing; }
.mirror-gallery__stage canvas { display: block; width: 100%; height: 100%; outline: none; }
.mirror-gallery__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 8px;
}

/* Lightbox overlay for the gallery */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 56px);
  background: rgba(0, 0, 0, 0.88);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-standard), visibility var(--transition-standard);
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: min(1100px, 92vw);
  max-height: 86vh;
  width: auto;
  height: auto;
  border-radius: var(--radius-medium);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}
.lightbox-btn {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(20, 20, 24, 0.6);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background var(--transition-standard);
}
.lightbox-btn:hover { background: var(--color-accent); }
.lightbox-close { top: clamp(14px, 3vw, 28px); right: clamp(14px, 3vw, 28px); }
.lightbox-prev { left: clamp(10px, 2vw, 24px); top: 50%; transform: translateY(-50%); }
.lightbox-next { right: clamp(10px, 2vw, 24px); top: 50%; transform: translateY(-50%); }
@media (prefers-reduced-motion: reduce) {
  .lightbox, .gallery-item img { transition: none; }
}

/* Inline YouTube embed that replaces a talk thumbnail on click */
.talk-thumb.is-playing { cursor: default; }
.talk-embed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ============ Metrics ============ */
.metrics { padding-block: clamp(84px, 6vw, 116px); }
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}
.metrics-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.metric {
  border-left: 1px solid var(--color-border);
  padding-left: 24px;
}
.metric-value {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(2.25rem, 1.5rem + 2.5vw, 3.5rem);
  line-height: 1.1;
  color: var(--color-text-primary);
}
.metric-label { font-size: var(--text-small); color: var(--color-text-muted); }

/* ============ Capability (dark web) ============ */
.capability { background: var(--color-background-secondary); }
.capability-grid {
  display: grid;
  grid-template-columns: 6fr 5fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: start;
}
.capability-copy { display: grid; gap: 20px; justify-items: start; }
.capability-copy h2 { max-width: 18ch; }
.capability-copy > p { color: var(--color-text-secondary); }
.capability-copy .lead { color: var(--color-text-primary); }
.capability-copy .btn { margin-top: 12px; }

/* ============ Products (DarkWiser) ============ */
.products { background: var(--color-background-secondary); }
.products-grid {
  display: grid;
  grid-template-columns: 6fr 5fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: start;
  margin-top: clamp(40px, 5vw, 64px);
}
.product-media { position: sticky; top: calc(var(--header-height) + 28px); }
.product-copy { display: grid; gap: 20px; justify-items: start; }
.product-copy h3 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); letter-spacing: -0.02em; }
.product-copy > p { color: var(--color-text-secondary); }
.product-copy .lead { color: var(--color-text-primary); }
.product-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 4px; }

.video-frame {
  width: 100%;
  margin: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-large);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.video-frame video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1130 / 720;
  background: #07090F;
}
.video-frame--model { margin-top: 8px; max-width: 560px; margin-inline: auto; }
.video-frame--model video { aspect-ratio: 16 / 9; }
.cycle-canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1.9 / 1;
  background: none;
}
.video-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 11px 16px;
  background: var(--color-surface-elevated);
  border-bottom: 1px solid var(--color-border);
}
.video-title {
  font-family: var(--font-mono);
  font-size: var(--text-label);
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
}
.live-chip {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--color-success);
}

.check-list { display: grid; gap: 10px; }
.check-list li {
  position: relative;
  padding-left: 30px;
  color: var(--color-text-secondary);
  font-size: var(--text-small);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 2px;
  width: 16px; height: 16px;
  border: 1px solid var(--color-accent-line);
  border-radius: 50%;
}
.check-list li::after {
  content: "";
  position: absolute;
  left: 4.5px; top: 6px;
  width: 7px; height: 4px;
  border-left: 1.5px solid var(--color-accent-hover);
  border-bottom: 1.5px solid var(--color-accent-hover);
  transform: rotate(-45deg);
}

.capability-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  counter-reset: cstep;
  margin-top: 4px;
}
.capability-steps li {
  counter-increment: cstep;
  font-family: var(--font-mono);
  font-size: var(--text-label);
  letter-spacing: 0.04em;
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 7px 14px;
}
.capability-steps li::before {
  content: counter(cstep, decimal-leading-zero) " ";
  color: var(--color-accent);
}

.terminal {
  position: sticky;
  top: 120px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface-elevated);
}
.terminal-dots { display: inline-flex; gap: 6px; }
.terminal-dots i {
  width: 8px; height: 8px;
  border-radius: 50%;
}
.terminal-dots i:nth-child(1) { background: #FF5F57; }
.terminal-dots i:nth-child(2) { background: #FEBC2E; }
.terminal-dots i:nth-child(3) { background: #28C840; }
.terminal-title {
  font-family: var(--font-mono);
  font-size: var(--text-label);
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
}
.terminal-body {
  padding: 22px;
  display: grid;
  gap: 13px;
  align-content: start;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
}
.terminal-body p { max-width: none; animation: feed-in 300ms cubic-bezier(0.22, 1, 0.36, 1); }
.terminal-body[data-monitor-feed] { min-height: 300px; }
.t-tag { color: var(--color-accent-hover); }
.t-ok { color: var(--color-success); }
.t-warn { color: var(--color-accent-secondary); }
.t-cursor { color: var(--color-text-muted); }
.cursor {
  display: inline-block;
  width: 8px; height: 15px;
  margin-left: 6px;
  vertical-align: text-bottom;
  background: var(--color-accent);
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ============ Testimonials ============ */
.testimonials-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 340px);
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
}
.testimonials-visual {
  display: flex;
  justify-content: center;
  position: relative;
}
.testimonials-visual::before {
  content: "";
  position: absolute;
  inset: -10% -20%;
  background: radial-gradient(ellipse 55% 50% at 50% 50%, rgba(82, 115, 248, 0.10), transparent 70%);
  pointer-events: none;
}
.padlock-canvas { position: relative; width: 100%; max-width: 300px; height: auto; }

.slider-viewport { overflow: hidden; }
.slider-track {
  display: grid;
  gap: 48px;
}
.js .slider-track {
  display: flex;
  gap: 0;
  transition: transform 480ms cubic-bezier(0.22, 1, 0.36, 1);
}
.js .slide { flex: 0 0 100%; }
.slide blockquote {
  position: relative;
  max-width: 820px;
  padding-top: 44px;
}
.slide blockquote::before {
  content: "\201C";
  position: absolute;
  top: -14px; left: 0;
  font-size: 5.5rem;
  line-height: 1;
  font-weight: 700;
  color: var(--color-accent);
  opacity: 0.28;
}
.slide blockquote p {
  font-size: clamp(1.2rem, 1rem + 1vw, 1.6rem);
  line-height: 1.5;
  letter-spacing: -0.01em;
  font-weight: 500;
  max-width: 40ch;
}
.slide footer {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}
.slide footer img {
  width: 28px; height: 28px;
  border-radius: 6px;
  object-fit: contain;
  background: #fff;
  padding: 2px;
}
.slide cite { display: block; font-style: normal; font-weight: 600; font-size: var(--text-small); }
.slide footer span { font-size: var(--text-small); color: var(--color-text-muted); }

.slider-controls {
  display: none;
  align-items: center;
  gap: 20px;
  margin-top: 40px;
}
.js .slider-controls { display: flex; }
.slider-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid var(--color-border-strong);
  border-radius: 50%;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}
.slider-btn:hover { border-color: var(--color-accent-line); background: var(--color-accent-muted); }
.slider-btn svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.slider-dots { display: flex; gap: 8px; }
.slider-dot {
  width: 24px; height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.slider-dot::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--color-border-strong);
  transition: background var(--transition-fast), transform var(--transition-fast);
}
.slider-dot[aria-current="true"]::before { background: var(--color-accent); transform: scale(1.25); }
.slider-counter {
  font-family: var(--font-mono);
  font-size: var(--text-label);
  color: var(--color-text-muted);
  letter-spacing: 0.08em;
  margin-left: auto;
}

/* ============ Research ============ */
.research { background: var(--color-background-secondary); }
.research-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  align-items: start;
}
.research-col-main, .research-col-side { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.post-card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-large);
  overflow: hidden;
  transition: border-color var(--transition-standard), transform var(--transition-standard), box-shadow var(--transition-standard);
}
.post-card:hover { border-color: var(--color-border-strong); transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.post-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-bottom: 1px solid var(--color-border);
}
.post-card-featured {
  grid-column: 1;
  grid-row: 1 / 3;
}
.post-card-featured img { aspect-ratio: 16 / 9; }
/* second article filling the left column's lower row */
.post-card--l2 { grid-column: 1; grid-row: 3 / 4; }
/* left (main) column images: short wide banners so the featured cards stay compact
   and the two columns balance (main ≈ side height with 2 cards each) */
.research-col-main .post-card img { aspect-ratio: 16 / 6; max-height: 210px; }
.post-body { display: flex; flex-direction: column; gap: 10px; padding: 24px; flex-grow: 1; }
.post-card-featured .post-body { padding: 32px; }
.post-card-featured h3 { font-size: var(--text-h3); }
.post-card h3 { font-size: 1.05rem; line-height: 1.35; }
.post-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: var(--text-label);
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
}
.post-cat { color: var(--color-accent-hover); text-transform: uppercase; letter-spacing: 0.1em; }
.post-excerpt { font-size: var(--text-small); color: var(--color-text-muted); }
.post-card .text-link { margin-top: auto; padding-top: 8px; }
.post-card-text { justify-content: flex-end; background: linear-gradient(160deg, var(--color-surface-elevated), var(--color-surface) 60%); }
.research-cta { margin-top: 40px; }

/* ============ Final CTA ============ */
.cta { position: relative; overflow: clip; }
.cta::before {
  content: "";
  position: absolute;
  inset: -20% -10%;
  background: radial-gradient(ellipse 60% 50% at 50% 55%, rgba(82, 115, 248, 0.09), transparent 70%);
  pointer-events: none;
}
.cta-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}
.cta h2 { max-width: 22ch; }
.cta .lead { max-width: 48ch; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 8px; }
.cta-contact {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: var(--text-small);
  color: var(--color-text-secondary);
}
.cta-contact a:hover { color: var(--color-text-primary); }
.cta-sep { width: 1px; height: 14px; background: var(--color-border-strong); }

/* ============ Footer ============ */
.site-footer { border-top: 1px solid var(--color-border); background: var(--color-background-secondary); }
.footer-grid {
  display: grid;
  grid-template-columns: 4fr 2.5fr 2fr 3.5fr;
  gap: clamp(32px, 4vw, 56px);
  padding-block: clamp(56px, 6vw, 80px);
}
.footer-brand img { width: 118px; height: 30px; }
.footer-brand p {
  margin-top: 20px;
  font-size: var(--text-small);
  color: var(--color-text-muted);
  max-width: 34ch;
}
.footer-social { display: flex; gap: 10px; margin-top: 24px; }
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-small);
  color: var(--color-text-secondary);
  transition: color var(--transition-fast), border-color var(--transition-fast);
}
.footer-social a:hover { color: var(--color-text-primary); border-color: var(--color-border-strong); }
.footer-social svg { width: 16px; height: 16px; }

.footer-col h3 {
  font-family: var(--font-mono);
  font-size: var(--text-label);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
  margin-bottom: 20px;
}
.footer-col ul { display: grid; gap: 12px; }
.footer-col a {
  font-size: var(--text-small);
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
}
.footer-col a:hover { color: var(--color-text-primary); }
.footer-offices address {
  font-size: var(--text-small);
  color: var(--color-text-muted);
  margin-bottom: 16px;
  max-width: 32ch;
}

.footer-awards { margin-top: 32px; }
.footer-awards-label {
  font-family: var(--font-mono);
  font-size: var(--text-label);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}
.footer-awards-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}
.footer-award { display: inline-flex; }
.footer-award img {
  height: 84px;
  width: auto;
  opacity: 0.92;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}
.footer-award:hover img { opacity: 1; transform: translateY(-2px); }

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 24px;
  border-top: 1px solid var(--color-border);
  font-size: var(--text-small);
  color: var(--color-text-muted);
}
.footer-legal p { display: flex; align-items: center; gap: 16px; }
.footer-legal a:hover { color: var(--color-text-primary); }

/* ============ Reveal animations ============ */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--transition-reveal), transform var(--transition-reveal);
  transition-delay: var(--reveal-delay, 0ms);
}
/* Directional variants — override the starting transform only */
.js [data-reveal="down"]  { transform: translateY(-24px); }   /* top-to-bottom */
.js [data-reveal="left"]  { transform: translateX(-32px); }   /* slides in from left */
.js [data-reveal="right"] { transform: translateX(32px); }    /* slides in from right */
.js [data-reveal="fade"]  { transform: none; }                /* pure fade */
.js [data-reveal="zoom"]  { transform: scale(0.94); }         /* zoom + fade */
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ============ Responsive ============ */
@media (max-width: 1199px) {
  .services-featured { gap: 16px; }
}

@media (max-width: 991px) {
  .nav-toggle { display: inline-flex; }
  .desk, .nav-rail, .nav-cta.desk, .nav-mega, .nav-pop { display: none !important; }
  .nav-menu {
    display: flex;
    position: fixed;
    inset: 0;
    top: calc(var(--banner-height) + var(--header-height));
    z-index: 40;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 40px;
    padding: 40px var(--container-pad);
    background: rgba(10, 11, 14, 0.97);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform var(--transition-standard), visibility 0s var(--transition-standard);
    height: calc(100vh - var(--banner-height) - var(--header-height));
    height: calc(100dvh - var(--banner-height) - var(--header-height));
    overflow-y: auto;
  }
  .nav-menu.is-open {
    transform: none;
    visibility: visible;
    transition: transform var(--transition-standard);
  }
  html:not(.js) .nav-menu {
    position: static;
    transform: none;
    visibility: visible;
    height: auto;
    flex-direction: row;
    gap: 20px;
    padding: 0;
    background: none;
  }
  html:not(.js) .nav-links { gap: 16px; }
  html:not(.js) .nav-cta { display: none; }
  .nav-links { flex-direction: column; align-items: flex-start; gap: 8px; }
  .nav-menu.is-open .nav-links { width: 100%; }
  .nav-links a { font-size: 1.5rem; font-weight: 600; color: var(--color-text-primary); padding-block: 10px; }

  /* Products dropdown collapses inline on mobile */
  .nav-dropdown-wrap { width: 100%; }
  .nav-dropdown-toggle {
    width: 100%;
    justify-content: flex-start;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text-primary);
    padding-block: 10px;
  }
  .nav-caret { width: 8px; height: 8px; margin-left: 4px; }
  .nav-dropdown {
    position: static;
    min-width: 0;
    padding: 0 0 0 18px;
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-standard);
  }
  .nav-dropdown::before { display: none; }
  .nav-dropdown-toggle[aria-expanded="true"] + .nav-dropdown { max-height: 240px; }
  .nav-product-link, .nav-dropdown-link { font-size: 1.25rem; padding: 8px 0; }
  .nav-dropdown--wide { min-width: 0; }
  /* No-JS fallback: reveal the product list since the toggle can't open it */
  html:not(.js) .nav-dropdown { max-height: 240px; }

  .hero-grid { grid-template-columns: 1fr; gap: clamp(40px, 8vw, 56px); }
  .hero h1 { max-width: 18ch; }
  .hero-visual { max-width: 528px; }

  .testimonials-grid { grid-template-columns: 1fr; }
  .testimonials-visual { display: none; }

  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-head { position: static; }
  .about-head, .about-body { grid-column: auto; }

  .timeline { grid-template-columns: 1fr; gap: 0; padding-top: 0; padding-left: 36px; }
  .timeline::before, .timeline::after { top: 4px; bottom: 4px; left: 0; right: auto; width: 2px; height: auto; }
  .timeline::after { transform: scaleY(var(--timeline-progress)); transform-origin: top; }
  .timeline-step { padding-block: 20px; }
  .timeline-step .step-num { margin-bottom: 6px; }
  .timeline-step p { max-width: 52ch; }

  .capability-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .product-media { position: static; }
  .terminal { position: static; max-width: 640px; }

  .metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }

  .research-grid { grid-template-columns: 1fr 1fr; }
  .post-card-featured { grid-column: 1 / 3; grid-row: auto; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
  .hero { padding-top: calc(var(--banner-height) + var(--header-height) + 40px); padding-bottom: 64px; min-height: 0; }
  .hero-stats { max-width: none; }
  .hero-term .terminal-body { min-height: 0; font-size: 0.75rem; }

  .services-featured { grid-template-columns: 1fr; }
  .service-card { min-height: 0; }
  .services-compact { grid-template-columns: 1fr; }

  .research-grid { grid-template-columns: 1fr; }
  .post-card-featured { grid-column: auto; }

  .appearances li { grid-template-columns: 1fr; gap: 6px; }
}

@media (max-width: 479px) {
  .hero-actions .btn { flex: 1 1 100%; }
  .cta-actions { width: 100%; }
  .cta-actions .btn { flex: 1 1 100%; }
  .hero-stats > div { padding-right: 20px; margin-right: 20px; }
  .hero-stats dd { font-size: 1.25rem; }
  .metrics-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-legal { flex-direction: column; align-items: flex-start; }
  .slider-counter { display: none; }
}

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .timeline-step { opacity: 1; transform: none; }
  .cf-belts.is-on .cf-track { animation: none; }
  .cf-mq { overflow-x: auto; }
  .cert-track { animation: none; }
  .cert-marquee { overflow-x: auto; }
  .cert-track > [aria-hidden="true"] { display: none; }
  .cursor { animation: none; }
  .hero-canvas { display: none; }
}

/* ============ Inner pages: page hero ============ */
.page-hero {
  position: relative;
  overflow: clip;
  padding-top: calc(var(--banner-height) + var(--header-height) + clamp(56px, 8vw, 96px));
  padding-bottom: clamp(40px, 5vw, 64px);
  background: var(--color-background-secondary);
  border-bottom: 1px solid var(--color-border);
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto;
  height: 130%;
  background: radial-gradient(ellipse 55% 60% at 30% 0%, rgba(82, 115, 248, 0.08), transparent 70%);
  pointer-events: none;
}
.page-hero .container { position: relative; }
.page-hero h1 {
  font-size: var(--text-h2);
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 26ch;
}
.page-hero .eyebrow { margin-bottom: 16px; }
.page-hero-lead {
  margin-top: 20px;
  font-size: var(--text-lead);
  line-height: 1.6;
  color: var(--color-text-secondary);
  max-width: 58ch;
}
.page-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.page-hero--center { text-align: center; }
.page-hero--center h1, .page-hero--center .page-hero-lead { margin-inline: auto; }
.page-hero--center .breadcrumb ol { justify-content: center; }
.page-hero--center .page-hero-actions { justify-content: center; }

/* ============ Inner pages: breadcrumb ============ */
.breadcrumb { margin-bottom: 28px; }
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  font-family: var(--font-mono);
  font-size: var(--text-label);
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
}
.breadcrumb li { display: flex; align-items: center; gap: 8px; min-width: 0; }
.breadcrumb li + li::before { content: "/"; color: var(--color-text-muted); opacity: 0.6; }
.breadcrumb a:hover { color: var(--color-text-primary); }
.breadcrumb [aria-current="page"] {
  color: var(--color-text-secondary);
  max-width: 40ch;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============ Inner pages: article meta & layout ============ */
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: var(--text-small);
  color: var(--color-text-muted);
}
.article-meta .post-cat { color: var(--color-accent-hover); text-transform: uppercase; letter-spacing: 0.1em; font-size: var(--text-label); }
.article-section { padding-block: clamp(48px, 6vw, 80px) var(--section-spacing); }
.article-layout { display: grid; grid-template-columns: minmax(0, 72ch); justify-content: center; }

/* ============ Inner pages: prose ============ */
.prose { max-width: 72ch; }
.prose > * + * { margin-top: 1em; }
.prose p { color: var(--color-text-secondary); }
.prose > p:first-child { font-size: var(--text-lead); line-height: 1.6; color: var(--color-text-primary); }
.prose h2, .prose h3, .prose h4 { margin-top: 2.2em; margin-bottom: 0.6em; color: var(--color-text-primary); }
.prose h2 { font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.85rem); }
.prose h3 { font-size: var(--text-h3); }
.prose h4 { font-size: 1.05rem; }
.prose a { color: var(--color-accent-hover); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--color-accent-line); }
.prose a:hover { text-decoration-color: currentColor; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose ul, .prose ol { padding-left: 1.5em; }
.prose li { margin-block: 0.4em; color: var(--color-text-secondary); }
.prose li::marker { color: var(--color-text-muted); }
.prose strong { color: var(--color-text-primary); }
.prose mark { background: var(--color-accent-muted); color: var(--color-accent-hover); padding: 1px 4px; border-radius: 3px; }
.prose blockquote {
  border-left: 2px solid var(--color-accent-line);
  padding-left: 20px;
  color: var(--color-text-secondary);
  font-style: italic;
}
.prose img {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-medium);
  margin-block: 1.5em;
}
.prose figure { margin-block: 1.5em; }
.prose figure img { margin-block: 0; }
.prose figcaption { margin-top: 10px; font-size: var(--text-small); color: var(--color-text-muted); }
.prose hr { border: 0; border-top: 1px solid var(--color-border); margin-block: 2.5em; }
.prose .table-scroll { overflow-x: auto; margin-block: 1.5em; }
.prose table { border-collapse: collapse; font-size: var(--text-small); min-width: 480px; }
.prose th, .prose td { border: 1px solid var(--color-border); padding: 10px 14px; text-align: left; color: var(--color-text-secondary); }
.prose th { color: var(--color-text-primary); background: var(--color-surface); font-weight: 600; }

/* ============ Inner pages: code ============ */
.prose code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 2px 6px;
  overflow-wrap: break-word;
}
.prose .codeblock, .codeblock {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-medium);
  padding: 18px 20px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.6;
  overflow-x: auto;
  margin-block: 1.5em;
  color: var(--color-text-secondary);
  -webkit-overflow-scrolling: touch;
}
.prose .codeblock code { background: none; border: 0; padding: 0; font-size: inherit; overflow-wrap: normal; }

/* ============ Inner pages: share & related ============ */
.share-links {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: clamp(40px, 5vw, 56px);
  padding-top: 28px;
  border-top: 1px solid var(--color-border);
}
.share-label {
  font-family: var(--font-mono);
  font-size: var(--text-label);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-right: 4px;
}
.share-links a, .share-links button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-small);
  color: var(--color-text-secondary);
  transition: color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}
.share-links a:hover, .share-links button:hover { color: var(--color-text-primary); border-color: var(--color-border-strong); transform: translateY(-2px); }
.share-links svg { width: 16px; height: 16px; }
.share-copied {
  font-family: var(--font-mono);
  font-size: var(--text-label);
  color: var(--color-success);
}
html:not(.js) .share-copy { display: none; }
.related { background: var(--color-background-secondary); }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }

/* ============ Inner pages: forms ============ */
.form { display: flex; flex-direction: column; gap: 20px; max-width: 560px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field label {
  font-family: var(--font-mono);
  font-size: var(--text-label);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-secondary);
}
.form-field .optional { text-transform: none; letter-spacing: 0; color: var(--color-text-muted); }
.form-input {
  width: 100%;
  font: inherit;
  font-size: var(--text-body);
  color: var(--color-text-primary);
  background: var(--color-surface);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-small);
  padding: 12px 14px;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}
.form-input::placeholder { color: var(--color-text-muted); }
.form-input:hover { border-color: rgba(255, 255, 255, 0.22); }
.form-input:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 0; border-color: transparent; }
.form-input[aria-invalid="true"] { border-color: #F87171; }
textarea.form-input { min-height: 140px; resize: vertical; }
select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239BA3B2' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 42px;
}
.form-error { font-size: var(--text-small); color: #F87171; max-width: none; }
.form-status { font-size: var(--text-small); color: var(--color-text-secondary); max-width: none; }
.form-status.is-success { color: var(--color-success); }
.form-status.is-error { color: #F87171; }
.form-consent { display: flex; align-items: flex-start; gap: 10px; }
.form-consent input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--color-accent);
  flex-shrink: 0;
}
.form-consent label {
  font-family: var(--font-sans);
  font-size: var(--text-small);
  text-transform: none;
  letter-spacing: 0;
  color: var(--color-text-secondary);
}

/* ============ Inner pages: contact layout ============ */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.contact-rail { display: flex; flex-direction: column; gap: 28px; }
.contact-rail-block h3 { font-size: 1rem; margin-bottom: 8px; }
.contact-rail-block p, .contact-rail-block address { font-size: var(--text-small); color: var(--color-text-secondary); }
.contact-rail-block a:hover { color: var(--color-text-primary); }
.contact-channel {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 20px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-medium);
  transition: border-color var(--transition-standard), transform var(--transition-standard);
}
a.contact-channel:hover { border-color: var(--color-border-strong); transform: translateY(-2px); }
.contact-channel .channel-label {
  font-family: var(--font-mono);
  font-size: var(--text-label);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
}
.contact-channel .channel-value { color: var(--color-text-primary); font-weight: 500; overflow-wrap: anywhere; }

/* ============ Inner pages: blog index ============ */
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: clamp(28px, 4vw, 44px);
}
.chip {
  font-family: var(--font-mono);
  font-size: var(--text-label);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-secondary);
  padding: 8px 16px;
  border: 1px solid var(--color-border-strong);
  border-radius: 999px;
  transition: color var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
}
.chip:hover { color: var(--color-text-primary); border-color: var(--color-border-strong); }
.chip[aria-pressed="true"] {
  color: #fff;
  background: var(--color-accent-muted);
  border-color: var(--color-accent-line);
}
.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: dense; gap: 20px; }
.blog-grid .post-card-featured { grid-column: 1 / 3; grid-row: auto; }
.blog-grid .post-card-featured img { aspect-ratio: auto; max-height: 420px; }

/* ============ Inner pages: service pages ============ */
.service-detail { padding-block: 0; }
.service-detail + .service-detail { margin-top: var(--section-spacing); }
.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.split-grid .sticky-col { position: sticky; top: calc(var(--banner-height) + var(--header-height) + 32px); }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.feature-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-medium);
  overflow: hidden;
}
/* Cursor-tracking glow (falls back to a centred glow without JS) */
.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), var(--color-accent-muted), transparent 70%);
  opacity: 0;
  transition: opacity var(--transition-standard);
  pointer-events: none;
}
.feature-card:hover::before { opacity: 1; }
.feature-card > * { position: relative; z-index: 1; }
.feature-card h3 { font-size: 1.05rem; }

/* Icon + function-tag row */
.feature-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}
.feature-tag {
  font-family: var(--font-mono);
  font-size: var(--text-label);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fn-color, var(--color-text-muted));
  background: color-mix(in srgb, var(--fn-color, var(--color-accent)) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--fn-color, var(--color-accent)) 35%, transparent);
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
}
/* SOC/service function colours — mirror the ic-* icon palette */
.fn-monitor  { --fn-color: #38BDF8; }
.fn-detect   { --fn-color: #5273F8; }
.fn-protect  { --fn-color: #4ADE9B; }
.fn-identity { --fn-color: #8B7CF8; }
.fn-respond  { --fn-color: #F5B454; }
.fn-validate { --fn-color: #F472B6; }
.fn-intel    { --fn-color: #8B7CF8; }
/* Palette-named tags for non-SOC grids */
.fn-blue   { --fn-color: #5273F8; }
.fn-cyan   { --fn-color: #38BDF8; }
.fn-green  { --fn-color: #4ADE9B; }
.fn-purple { --fn-color: #8B7CF8; }
.fn-amber  { --fn-color: #F5B454; }
.fn-rose   { --fn-color: #F472B6; }
.feature-card:hover .service-icon {
  transform: translateY(-2px);
  filter: drop-shadow(0 2px 9px color-mix(in srgb, var(--icon-color, var(--color-accent-hover)) 55%, transparent));
}
.feature-card .step-num {
  font-family: var(--font-mono);
  font-size: var(--text-label);
  letter-spacing: 0.1em;
  color: var(--color-accent);
}
.feature-card p { font-size: var(--text-small); color: var(--color-text-muted); }
.faq { max-width: 760px; }
.faq details {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-medium);
  background: var(--color-surface);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  cursor: pointer;
  font-weight: 500;
  list-style: none;
  transition: background var(--transition-fast);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--color-text-muted);
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { background: var(--color-surface-elevated); }
.faq .faq-body { padding: 0 22px 20px; }
.faq .faq-body p { color: var(--color-text-secondary); font-size: var(--text-small); line-height: 1.7; }
/* lists inside a disclosure body: the global `ul, ol { list-style: none }` reset
   strips markers, so restore them and match the body copy's size/colour */
.faq .faq-body ul { list-style: disc; padding-left: 20px; margin-top: 10px; display: grid; gap: 6px; }
.faq .faq-body li { color: var(--color-text-secondary); font-size: var(--text-small); line-height: 1.7; }
.faq .faq-body li strong { color: var(--color-text-primary); font-weight: 600; }
.faq .faq-body p + p { margin-top: 12px; }

/* ============ Inner pages: 404 ============ */
.error-page { min-height: calc(100vh - var(--banner-height) - var(--header-height)); display: flex; flex-direction: column; justify-content: center; }
.error-page .terminal { max-width: 560px; margin: 40px auto 0; position: static; }

/* ============ Inner pages: responsive ============ */
@media (max-width: 991px) {
  .contact-layout { grid-template-columns: 1fr; gap: 48px; }
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .related-grid .post-card:nth-child(3) { display: none; }
  .split-grid { grid-template-columns: 1fr; }
  .split-grid .sticky-col { position: static; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-grid .post-card-featured { grid-column: auto; }
  .related-grid { grid-template-columns: 1fr; }
  .related-grid .post-card:nth-child(3) { display: flex; }
  .form-row { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .prose .codeblock, .codeblock { padding: 14px 16px; font-size: 0.78rem; }
}

@media (max-width: 479px) {
  .filter-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    margin-inline: calc(-1 * var(--container-pad));
    padding-inline: var(--container-pad);
    padding-bottom: 4px;
  }
  .filter-chips::-webkit-scrollbar { display: none; }
  .chip { flex-shrink: 0; }
  .page-hero-actions .btn { flex: 1 1 100%; }
}

/* ============ Micro-interaction polish ============ */
/* Nav links: accent underline grows from left; persistent on current page */
.nav-links a {
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 1.5px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-links a:hover::after,
.nav-links a[aria-current]::after { transform: scaleX(1); }
.nav-menu.is-open .nav-links a::after { bottom: 6px; }

/* Buttons: gentle lift on hover, settle on press */
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }

/* Post cards: subtle image zoom on card hover */
.post-card img {
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1), opacity var(--transition-standard);
}
.post-card:hover img { transform: scale(1.03); }

/* Feature cards: lift + accent step number */
.feature-card {
  transition: transform var(--transition-standard), border-color var(--transition-standard), box-shadow var(--transition-standard);
}
.feature-card:hover {
  transform: translateY(-3px);
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-soft);
}

/* Compact service rows: slide the row content slightly right */
.services-compact li > div { transition: transform var(--transition-standard); }
.services-compact li:hover > div { transform: translateX(3px); }

/* Contact channels & chips: consistent micro-lift */
.chip:hover { transform: translateY(-1px); }
.chip { transition: color var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast); }

/* FAQ accordion: content fades in as it opens */
@keyframes faq-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}
.faq details[open] .faq-body { animation: faq-in 240ms cubic-bezier(0.22, 1, 0.36, 1); }
.faq summary::after { transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1), color var(--transition-fast); }
.faq details[open] summary::after { color: var(--color-accent); }

/* Reading progress bar (article pages, injected by JS) */
.reading-progress {
  position: fixed;
  top: var(--banner-height);
  left: 0;
  z-index: 60;
  width: 100%;
  height: 2px;
  background: transparent;
  pointer-events: none;
}
.reading-progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-secondary));
  transform: scaleX(var(--reading-progress, 0));
  transform-origin: left;
}

/* Back-to-top: hidden until scrolled, floats above the footer */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 70;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  color: var(--color-text-primary);
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border-strong);
  border-radius: 50%;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--transition-fast), transform var(--transition-fast),
    visibility var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--color-accent-muted);
  border-color: var(--color-accent-line);
  transform: translateY(-2px);
}
.back-to-top svg { width: 20px; height: 20px; }

@media (max-width: 600px) {
  .back-to-top { right: 16px; bottom: 16px; width: 42px; height: 42px; }
}
@media (prefers-reduced-motion: reduce) {
  .back-to-top { transition: opacity var(--transition-fast), visibility var(--transition-fast); }
  .back-to-top:hover { transform: none; }
}

/* Breadcrumb links: brighten smoothly */
.breadcrumb a { transition: color var(--transition-fast); }

/* Footer links: slide right slightly */
.footer-col ul a { display: inline-block; transition: color var(--transition-fast), transform var(--transition-fast); }
.footer-col ul a:hover { transform: translateX(2px); color: var(--color-text-primary); }

/* ============ Scroll effects ============ */
/* Inner-page hero glow drifts up gently as you scroll */
.page-hero::before {
  transform: translate3d(0, calc(var(--parallax, 0) * -1.4px), 0);
  transition: none;
}

/* Clientele logos */
.logo-marquee {
  overflow: hidden;
  padding-block: 8px;
}

.logo-track {
  list-style: none;
  margin: 0 auto;
  padding: 0 24px;
  max-width: 1040px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 30px 48px;
}

.logo-track li {
  display: flex;
  align-items: center;
}

.logo-track img {
  height: 28px;
  width: auto;
  opacity: 0.9;
  transition: opacity var(--transition-fast);
}

.logo-track li:hover img {
  opacity: 1;
}
