/* =========================================================
   A2FF Digital — homepage redesign
   ========================================================= */

:root {
  --bg: #f6f5f0;
  --bg-1: #efede6;
  --bg-2: #e6e3d9;
  --line: #ddd9cb;
  --line-2: #c5c0b1;
  --text: #0d0d14;
  --text-mid: #5e5e6c;
  --text-dim: #8c8c98;

  --btn-bg: #0d0d14;
  --btn-fg: #f6f5f0;

  --panel-bg: #ffffff;
  --panel-bg-1: #f6f5f0;
  --panel-bg-2: #efede6;

  --nav-bg: rgba(246, 245, 240, 0.96);
  --submenu-bg: rgba(248, 247, 242, 0.98);
  --hero-glow-1: rgba(34,211,238,0.10);
  --hero-glow-2: rgba(225,29,116,0.08);

  --thumb-bg: #efede6;
  --grid-line: rgba(0,0,0,0.04);
  --thumb-grid: rgba(0,0,0,0.06);

  --cyan: #22D3EE;
  --violet: #6D28D9;
  --magenta: #E11D74;

  --grad: linear-gradient(90deg, var(--cyan) 0%, var(--violet) 52%, var(--magenta) 100%);

  --max: 1440px;
  --pad: 80px;
}

html[data-theme="dark"] {
  --bg: #08080e;
  --bg-1: #10101a;
  --bg-2: #18182a;
  --line: #24242f;
  --line-2: #34344a;
  --text: #f5f6fa;
  --text-mid: #c6cad6;
  --text-dim: #8b8fa0;

  --btn-bg: #f5f6fa;
  --btn-fg: #0a0a14;

  --panel-bg: #0c0c16;
  --panel-bg-1: #14141f;
  --panel-bg-2: #1c1c2c;

  --nav-bg: rgba(8, 8, 14, 0.96);
  --submenu-bg: rgba(10, 10, 18, 0.98);
  --hero-glow-1: rgba(34,211,238,0.10);
  --hero-glow-2: rgba(225,29,116,0.10);

  --thumb-bg: #14141f;
  --grid-line: rgba(255,255,255,0.04);
  --thumb-grid: rgba(255,255,255,0.08);

  --violet: #7C3AED;
}

/* Astra dark mode overrides — counter Astra's hardcoded heading/element colors */
html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4,
html[data-theme="dark"] h5,
html[data-theme="dark"] h6 { color: var(--text); }
html[data-theme="dark"] body,
html[data-theme="dark"] p,
html[data-theme="dark"] li,
html[data-theme="dark"] td,
html[data-theme="dark"] th { color: var(--text); }
html[data-theme="dark"] a:not(.nav-link):not(.nav-cta):not(.nav-sub-link):not(.nav-sub-head):not(.btn):not([class*="btn"]) { color: var(--cyan); }
html[data-theme="dark"] .section-blurb,
html[data-theme="dark"] .hero-sub,
html[data-theme="dark"] .sub-blurb { color: var(--text-mid); }

@media (max-width: 900px) {
  :root { --pad: 24px; }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Geist', system-ui, -apple-system, sans-serif;
  font-feature-settings: 'ss01' on, 'ss02' on, 'cv11' on;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

html {
  scroll-snap-type: y proximity;
  scroll-behavior: smooth;
  scroll-padding-top: 0;
}
section, footer.footer {
  scroll-snap-align: start;
  scroll-snap-stop: normal;
}
@media (max-width: 700px) {
  html { scroll-snap-type: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-snap-type: none; scroll-behavior: auto; }
  .marquee-track { animation-play-state: paused; }
  .scroll-dot { animation: none; opacity: 1; }
  .scroll-chev { animation: none; opacity: 0.5; }
}

a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: none; color: inherit; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.mono { font-family: 'Geist Mono', 'JetBrains Mono', ui-monospace, monospace; letter-spacing: 0.04em; text-transform: uppercase; font-size: 11px; }
.dim { color: var(--text-dim); }
.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-mid);
  letter-spacing: -0.005em;
  margin-bottom: 28px;
  white-space: nowrap;
}
.eyebrow-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--violet);
}

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

/* =========================================================
   Nav — transparent, sitting on top of the hero
   ========================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 32px var(--pad);
  pointer-events: none;
}
.nav > * { pointer-events: auto; }

.nav-left {
  display: inline-flex;
  align-items: center;
  color: var(--text);
  justify-self: start;
}
.nav-logo-img {
  height: 64px !important;
  width: auto !important;
  max-height: 64px !important;
  max-width: none !important;
  display: block;
}

.nav-center {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  background: var(--nav-bg);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 8px 32px -12px rgba(0,0,0,0.35);
  font-family: 'Geist', system-ui;
  font-size: 14px;
}
.nav-center a {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  border-radius: 999px;
  color: var(--text);
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: color 0.2s, background 0.2s;
}
.nav-center a:hover { background: var(--bg-2); }

.nav-item { position: relative; display: inline-flex; align-items: center; }
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 10px 20px;
  border-radius: 999px;
  color: var(--text);
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: color 0.2s, background 0.2s;
}
.nav-chev { width: 10px; height: 10px; opacity: 0.65; transition: transform 0.2s; }
.nav-item.has-children:hover .nav-chev { transform: rotate(180deg); }
.nav-item.active > .nav-link { color: var(--text); background: var(--bg-2); border-radius: 999px; }

.nav-submenu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translate(-50%, -6px);
  min-width: 360px;
  padding: 0;
  background: var(--submenu-bg, rgba(248, 247, 242, 0.98));
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid var(--line-2);
  border-radius: 18px;
  box-shadow: 0 24px 60px -12px rgba(0,0,0,0.18), 0 0 0 1px rgba(0,0,0,0.04);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 50;
}
.nav-item.has-children:hover .nav-submenu,
.nav-item.has-children:focus-within .nav-submenu {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}
.nav-item.has-children::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 14px;
}
.nav-submenu-inner {
  display: flex;
  flex-direction: column;
  padding: 10px;
  gap: 4px;
}
.nav-sub-head {
  display: grid !important;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px 16px;
  padding: 14px 16px !important;
  border-radius: 12px !important;
  background: var(--bg-2);
  border: 1px solid var(--line);
  margin-bottom: 6px;
}
.nav-sub-head:hover { background: var(--bg-2); }
.nav-sub-head-label {
  grid-column: 1;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.nav-sub-head-sub {
  grid-column: 1;
  font-size: 12px;
  color: var(--text-mid);
  font-family: 'Geist Mono', ui-monospace, monospace;
}
.nav-sub-arr {
  grid-column: 2;
  grid-row: 1 / span 2;
  font-size: 18px;
  color: var(--text-mid);
  transition: transform 0.2s;
}
.nav-sub-head:hover .nav-sub-arr { transform: translateX(3px); color: var(--text); }

.nav-sub-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav-sub-link {
  display: flex !important;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px !important;
  border-radius: 10px !important;
}
.nav-sub-link-dot {
  flex: 0 0 6px;
  width: 6px; height: 6px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--violet);
  opacity: 0.6;
}
.nav-sub-link-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.nav-sub-link-label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.005em;
}
.nav-sub-link-desc {
  font-size: 12px;
  color: var(--text-mid);
  line-height: 1.4;
}

/* =========================================================
   Sticky actions
   ========================================================= */
.sticky-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: end;
}

.lang-wrap {
  position: relative;
}
.lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 44px; height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-mid);
  background: transparent;
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.lang-toggle:hover,
.lang-toggle[aria-expanded="true"] { border-color: var(--line-2); color: var(--text); background: var(--bg-2); }
.lang-sep, .lang-alt { display: none; }
.lang-current { display: block; white-space: nowrap; }

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 210px;
  background: var(--submenu-bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 8px 32px -8px rgba(0,0,0,0.18);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  list-style: none;
  padding: 6px;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s 0.18s;
  z-index: 80;
}
.lang-dropdown[data-open],
.lang-wrap[data-open] .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.lang-toggle:focus,
.lang-toggle:focus-visible,
.lang-toggle:active {
  outline: none !important;
  box-shadow: none !important;
  background-color: transparent !important;
  border-color: var(--line) !important;
  color: var(--text-mid) !important;
}
.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  border: none;
  border-radius: 8px;
  background: transparent;
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-mid);
  letter-spacing: 0.03em;
  cursor: pointer;
  text-align: left;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.lang-option:hover { background: var(--bg-2); color: var(--text); }
.lang-option--active { color: var(--cyan); }
.lang-option--active::after {
  content: '';
  display: block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  margin-left: auto;
  flex-shrink: 0;
}
.lang-option-label {
  font-family: 'Geist', system-ui;
  font-size: 12px;
  font-weight: 400;
  color: var(--text-dim);
  letter-spacing: 0;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px 12px 18px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border-radius: 999px;
  font-family: 'Geist', system-ui;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  letter-spacing: -0.005em;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 6px 20px -8px rgba(0,0,0,0.3);
}
.nav-cta:hover { color: var(--btn-fg) !important; transform: translateY(-1px); box-shadow: 0 14px 32px -10px rgba(124,58,237,0.45); }
.nav-cta:focus, .nav-cta:focus-visible { outline: none; }
.nav-cta-plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px; height: 18px;
  font-weight: 400;
  font-size: 18px;
  line-height: 1;
  transition: transform 0.3s ease;
}
.nav-cta:hover .nav-cta-plus { transform: rotate(90deg); }

.theme-toggle {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-mid) !important;
  background: transparent;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  cursor: pointer;
}
.theme-toggle:hover { border-color: var(--line-2); color: var(--text) !important; background: var(--bg-2); }
.theme-toggle:focus,
.theme-toggle:focus-visible,
.theme-toggle:active {
  outline: none !important;
  box-shadow: none !important;
  background-color: transparent !important;
  border-color: var(--line) !important;
  color: var(--text-mid) !important;
}
.theme-toggle svg { display: block !important; width: 16px !important; height: 16px !important; min-width: 16px !important; stroke: currentColor !important; fill: none !important; overflow: visible !important; }
.theme-toggle svg path { stroke: currentColor !important; }

/* ── Hamburger button (hidden on desktop) ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: border-color 0.2s, background 0.2s;
}
.nav-hamburger:hover { border-color: var(--line-2); background: var(--bg-2); }
.nav-hamburger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: background 0.2s;
}

/* ── Full-height right drawer ── */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  /* Hidden by default — shown by JS adding [data-open] */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.nav-overlay[data-open] {
  opacity: 1;
  pointer-events: auto;
}

.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 100;
  width: min(380px, 90vw);
  height: 100dvh;
  background: var(--bg-1);
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.32, 0, 0.18, 1);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.nav-drawer--open,
.nav-drawer[data-open] { transform: translateX(0); }

.nav-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.nav-drawer-logo { display: flex; align-items: center; }
.nav-drawer-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--text-mid);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.nav-drawer-close:hover { border-color: var(--line-2); color: var(--text); background: var(--bg-2); }

.nav-drawer-nav {
  flex: 1;
  padding: 16px 0;
  display: flex;
  flex-direction: column;
}
.nav-drawer-item { border-bottom: 1px solid var(--line); }

.nav-drawer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px 28px;
  font-size: 17px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.01em;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.nav-drawer-link:hover { background: var(--bg-2); }
.nav-drawer-link--parent .nav-drawer-chev {
  width: 12px;
  height: 12px;
  opacity: 0.5;
  transition: transform 0.2s;
  flex-shrink: 0;
}
.nav-drawer-link--parent.expanded .nav-drawer-chev { transform: rotate(180deg); opacity: 1; }

.nav-drawer-children {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  display: none;
  flex-direction: column;
}
.nav-drawer-children[data-open="true"] {
  display: flex;
}
.nav-drawer-child {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px 28px 14px 36px;
  border-bottom: 1px solid var(--line);
  transition: background 0.15s;
}
.nav-drawer-child:last-child { border-bottom: none; }
.nav-drawer-child:hover { background: var(--bg); }
.nav-drawer-child-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}
.nav-drawer-child-desc {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.4;
}

.nav-drawer-footer {
  flex-shrink: 0;
  padding: 24px 28px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.nav-drawer-footer .theme-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-mid);
  justify-content: flex-start;
}
.nav-drawer-footer .theme-toggle svg { width: 16px; height: 16px; flex-shrink: 0; }
.nav-drawer-footer .theme-toggle:hover { color: var(--text); }
.nav-drawer-cta { width: 100%; justify-content: center; }

@media (max-width: 900px) {
  .nav { padding: 20px var(--pad); gap: 16px; }
  .nav-center { display: none; }

  .nav-logo-img { height: 52px !important; max-height: 52px !important; }
  .nav-hamburger { display: flex; }
}

/* =========================================================
   AI blob
   ========================================================= */
.hero-blob-wrap {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: 2%;
  transform: translateY(-50%);
  width: 48vw;
  max-width: 640px;
  aspect-ratio: 1 / 1;
  pointer-events: none;
  filter: drop-shadow(0 20px 60px rgba(124,58,237,0.20)) drop-shadow(0 8px 30px rgba(34,211,238,0.12));
}
.hero-blob-wrap .ai-blob {
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: auto;
}
@media (max-width: 900px) {
  .hero-blob-wrap {
    top: auto;
    bottom: -6%;
    right: -8%;
    transform: none;
    width: 70vw;
    opacity: 0.5;
  }
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  width: 100vw !important;
  max-width: none !important;
  margin-left: calc(-50vw + 50%) !important;
  min-height: max(720px, calc(100vh - 130px));
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 30%, var(--hero-glow-1) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, var(--hero-glow-2) 0%, transparent 50%),
    var(--bg);
}
.hero-canvas { position: absolute; inset: 0; }
#particle-canvas { display: block; width: 100%; height: 100%; }

.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

.hero-frame {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  padding: 200px var(--pad) 140px;
  min-height: max(720px, calc(100vh - 130px));
  display: flex;
  align-items: center;
  pointer-events: none;
}
@media (max-width: 700px) {
  .hero-frame { padding: 140px var(--pad) 100px; }
}
.hero-frame > * { pointer-events: auto; }

.hero-corner {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 10px;
}
.hero-corner.bl { bottom: 40px; left: var(--pad); }
.hero-corner.br { bottom: 40px; right: var(--pad); align-items: flex-end; }

.scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-mid);
  pointer-events: auto;
  z-index: 4;
  transition: color 0.2s, transform 0.3s ease;
}
.scroll-indicator:hover { color: var(--text); transform: translate(-50%, 4px); }
.scroll-mouse {
  width: 24px; height: 38px;
  border: 1.5px solid currentColor;
  border-radius: 14px;
  position: relative;
  opacity: 0.85;
}
.scroll-dot {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 3px; height: 7px;
  margin-left: -1.5px;
  background: currentColor;
  border-radius: 2px;
  animation: scroll-dot 1.8s ease-in-out infinite;
}
@keyframes scroll-dot {
  0%   { transform: translateY(0);    opacity: 1; }
  60%  { transform: translateY(12px); opacity: 0; }
  61%  { transform: translateY(0);    opacity: 0; }
  100% { transform: translateY(0);    opacity: 1; }
}
.scroll-label {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.scroll-chev {
  width: 14px; height: 14px;
  animation: scroll-chev 1.8s ease-in-out infinite;
}
@keyframes scroll-chev {
  0%, 100% { transform: translateY(0);   opacity: 0.5; }
  50%      { transform: translateY(4px); opacity: 1; }
}

.hero-content {
  max-width: 720px;
  position: relative;
  z-index: 3;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--text-mid);
  margin-bottom: 28px;
  background: var(--bg-1);
  font-family: 'Geist Mono', monospace;
  text-transform: none;
  letter-spacing: 0;
  font-size: 12px;
  white-space: nowrap;
}
.hero-eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--grad); /* sole surviving gradient — brand signature in hero */
}
.hero-title {
  font-family: 'Geist', system-ui;
  font-weight: 500;
  font-size: clamp(48px, 7.4vw, 116px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin-bottom: 28px;
}
.hero-sub {
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.55;
  color: var(--text-mid);
  max-width: 620px;
  margin-bottom: 36px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  background: var(--btn-bg);
  color: var(--btn-fg) !important;
  border: 1px solid var(--btn-bg);
  border-radius: 8px;
  font-weight: 500;
  font-size: 14px;
  white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
  text-decoration: none !important;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px -12px rgba(124,58,237,0.5); color: var(--btn-fg) !important; text-decoration: none !important; }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-primary .arr { transition: transform 0.2s; }
.btn-primary:hover:not(:disabled) .arr { transform: translateX(3px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border: 1px solid var(--line-2);
  color: var(--text) !important;
  border-radius: 8px;
  font-weight: 500;
  font-size: 14px;
  white-space: nowrap;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  text-decoration: none !important;
}
.btn-ghost:hover { border-color: var(--cyan); background: var(--bg-1); color: var(--text) !important; text-decoration: none !important; }

@media (max-width: 700px) {
  .hero-corner { font-size: 9px; }
  .hero-corner.bl, .hero-corner.br { bottom: 18px; }
}

/* =========================================================
   Marquee
   ========================================================= */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background: var(--bg-1);
  padding: 16px 0;
}
.marquee-track {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  animation: scroll 60s linear infinite;
  width: max-content;
}
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text-mid);
  font-size: 13px;
  font-family: 'Geist', system-ui;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
}
.m-glyph {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--text-dim);
}
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* =========================================================
   Section heads
   ========================================================= */
.section-head { padding: 96px 0 56px; }
.section-head.two-col {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: end;
}
.section-title {
  font-family: 'Geist', system-ui;
  font-weight: 500;
  font-size: clamp(36px, 4.6vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.section-title .dim { color: var(--text-dim); }
.section-blurb {
  color: var(--text-mid);
  font-size: 17px;
  line-height: 1.55;
  max-width: 460px;
}
.section-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-mid);
  align-self: end;
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 6px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
}
.section-cta:hover { color: var(--text); border-color: var(--cyan); }

@media (max-width: 900px) {
  .section-head.two-col { grid-template-columns: 1fr; gap: 32px; }
  .section-head { padding: 64px 0 40px; }
}

/* =========================================================
   Services grid
   ========================================================= */
.services { border-bottom: 1px solid var(--line); padding-bottom: 100px; }
.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.service-card {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 40px 36px 32px;
  position: relative;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  min-height: 380px;
  overflow: hidden;
}
.sc-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.service-card:hover {
  border-color: var(--line-2);
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -24px rgba(124,58,237,0.25);
}
.sc-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 32px;
  align-items: center;
}
.sc-top .mono { font-size: 11px; }
.sc-title {
  font-size: clamp(24px, 2.2vw, 30px);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  font-weight: 500;
}
.sc-copy {
  color: var(--text-mid);
  line-height: 1.55;
  margin-bottom: 24px;
  font-size: 15px;
}
.sc-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  color: var(--text-mid);
  font-family: 'Geist', system-ui;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.5;
}
.sc-bullets li { display: flex; gap: 10px; align-items: flex-start; }
.sc-bullets .bul {
  display: inline-block;
  flex-shrink: 0;
  width: 16px; height: 16px;
  margin-top: 2px;
  border-radius: 999px;
  background: var(--grad);
  position: relative;
}
.sc-bullets .bul::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 999px;
  background: var(--bg-1);
}
.sc-foot {
  margin-top: auto;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-mid);
  font-size: 13px;
  font-weight: 500;
  font-family: 'Geist', system-ui;
  text-transform: none;
  letter-spacing: 0;
}
.sc-foot .arr { transition: transform 0.2s; }
.service-card:hover .sc-foot .arr { transform: translateX(4px); color: var(--text); }
.sc-edge {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.service-card:hover .sc-edge { transform: scaleX(1); }

@media (max-width: 900px) {
  .service-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   Tandra
   ========================================================= */
.tandra { border-bottom: 1px solid var(--line); padding: 100px 0; background: var(--bg-1); position: relative; }
.tandra::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 80% 20%, rgba(34,211,238,0.07), transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(225,29,116,0.07), transparent 50%);
  pointer-events: none;
}
.tandra-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
  position: relative;
}
.tandra-left .section-title { margin: 24px 0 28px; }
.tandra-left .section-blurb { margin-bottom: 32px; }
.tandra-right { min-width: 0; position: relative; }
.tandra-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.tandra-wordmark { display: inline; font-weight: 500; }
.tandra-suffix {
  font-size: 0.55em;
  font-weight: 400;
  color: var(--text-dim);
  letter-spacing: 0;
  vertical-align: super;
  margin-left: 2px;
}

.panel {
  border: 1px solid var(--line-2);
  border-radius: 18px;
  background: var(--panel-bg);
  box-shadow:
    0 32px 80px -32px rgba(34,211,238,0.18),
    0 32px 80px -32px rgba(225,29,116,0.18);
  position: relative;
  overflow: hidden;
}
.panel::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--grad);
  opacity: 0.5;
}
.panel-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.panel-chrome-left { display: flex; align-items: center; gap: 12px; }
.panel-chrome-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.panel-chrome-title-suffix { font-weight: 400; opacity: 0.55; }
.panel-chrome-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.panel-mark {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.panel-mark .pm-spark { width: 100%; height: 100%; object-fit: contain; display: block; }
.panel-chrome-title { font-weight: 600; font-size: 14px; letter-spacing: -0.01em; }
.panel-chrome-sub { font-size: 11px; color: var(--text-dim); margin-top: 2px; }
.panel-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(34,211,238,0.10);
  color: var(--cyan);
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.panel-pill::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}
.panel-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
  padding: 8px;
  gap: 4px;
  background: var(--panel-bg-1);
}
.panel-tab {
  text-align: left;
  padding: 14px 16px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--text-mid);
  position: relative;
  transition: background 0.2s, color 0.2s;
  text-transform: none;
  letter-spacing: 0;
  font-family: 'Geist', system-ui;
}
.panel-tab.on { color: var(--text); background: var(--panel-bg-2); }
.panel-tab.soon { opacity: 0.55; cursor: not-allowed; }
.panel-tab.soon:hover { background: transparent; }
.pt-label { font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.pt-badge {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--bg-2);
  color: var(--text-mid);
  border: 1px solid var(--line);
}
.pt-sub { font-size: 11px; color: var(--text-dim); }
.panel-tab.on .pt-sub { color: var(--text-mid); }
.panel-body { padding: 24px; }
.panel-section-title {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 16px;
  font-weight: 500;
}
.panel-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}
.pcard {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  background: var(--panel-bg-1);
  border: 1px solid var(--line);
  border-radius: 12px;
  animation: po-in 0.4s ease both;
}
.pcard-left { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pcard-tag {
  display: inline-flex;
  align-self: flex-start;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-family: 'Geist Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--panel-bg-2);
  color: var(--text-mid);
  border: 1px solid var(--line);
}
.pcard-tag.tag-0 { color: var(--cyan); border-color: rgba(34,211,238,0.3); background: rgba(34,211,238,0.08); }
.pcard-tag.tag-1 { color: var(--violet); border-color: rgba(109,40,217,0.3); background: rgba(109,40,217,0.10); }
.pcard-tag.tag-2 { color: var(--magenta); border-color: rgba(225,29,116,0.3); background: rgba(225,29,116,0.10); }
.pcard-text { font-size: 14px; color: var(--text); line-height: 1.4; }
.pcard-right { text-align: right; display: flex; flex-direction: column; gap: 2px; }
.pcard-stat {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--violet);
  line-height: 1.1;
}
.pcard-sub { font-size: 11px; color: var(--text-dim); }
.panel-foot {
  display: flex;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}
.pf-key { color: var(--text-mid); }
.pf-val { color: var(--text-dim); }
@keyframes po-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .tandra-inner { grid-template-columns: 1fr; gap: 48px; }
}

/* =========================================================
   Process
   ========================================================= */
.process { border-bottom: 1px solid var(--line); padding-bottom: 72px; }
.process-list { border-top: 1px solid var(--line); }
.process-item {
  display: grid;
  grid-template-columns: 64px 1fr 1fr;
  gap: 40px;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.pi-n { padding-top: 3px; }
.pi-claim {
  font-size: clamp(17px, 1.5vw, 22px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--text);
}
.pi-evidence {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-mid);
}

@media (max-width: 900px) {
  .process-item {
    grid-template-columns: 40px 1fr;
    gap: 20px;
  }
  .pi-evidence { grid-column: 2; margin-top: 8px; }
}
@media (max-width: 600px) {
  .process-item { grid-template-columns: 1fr; gap: 12px; }
  .pi-evidence { margin-top: 0; }
}

/* =========================================================
   Work
   ========================================================= */
.work { border-bottom: 1px solid var(--line); padding-bottom: 80px; }
.work-list { border-top: 1px solid var(--line); }
.work-row {
  display: grid;
  grid-template-columns: 60px 1.4fr 0.8fr 200px 32px;
  gap: 32px;
  padding: 32px 0;
  align-items: center;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s;
  border-radius: 8px;
}
.wr-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.work-row:hover { transform: translateX(8px); background: var(--bg-1); }
.wr-n { align-self: start; padding-top: 4px; }
.wr-meta { display: flex; flex-direction: column; gap: 6px; }
.wr-title {
  font-size: clamp(22px, 2.1vw, 30px);
  letter-spacing: -0.02em;
  font-weight: 500;
  line-height: 1.15;
  overflow-wrap: break-word;
}
.wr-stat { display: flex; flex-direction: column; gap: 6px; }
.wr-stat-n {
  font-size: clamp(34px, 3.4vw, 52px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1;
}
.tone-a .wr-stat-n { color: var(--cyan); }
.tone-b .wr-stat-n { color: var(--violet); }
.tone-c .wr-stat-n { color: var(--magenta); }
.wr-thumb {
  position: relative;
  height: 96px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.wr-thumb-bg { position: absolute; inset: 0; opacity: 0.7; }
.tone-a .wr-thumb-bg {
  background:
    radial-gradient(circle at 30% 50%, rgba(34,211,238,0.6), transparent 60%),
    radial-gradient(circle at 80% 30%, rgba(225,29,116,0.5), transparent 60%),
    var(--thumb-bg);
}
.tone-b .wr-thumb-bg {
  background:
    radial-gradient(circle at 20% 70%, rgba(124,58,237,0.6), transparent 60%),
    radial-gradient(circle at 80% 20%, rgba(34,211,238,0.5), transparent 60%),
    var(--thumb-bg);
}
.tone-c .wr-thumb-bg {
  background:
    radial-gradient(circle at 50% 50%, rgba(225,29,116,0.55), transparent 60%),
    radial-gradient(circle at 90% 80%, rgba(124,58,237,0.5), transparent 60%),
    var(--thumb-bg);
}
.wr-thumb::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--thumb-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--thumb-grid) 1px, transparent 1px);
  background-size: 14px 14px;
}
.wr-thumb-label {
  position: absolute; bottom: 8px; right: 10px;
  z-index: 2;
  color: rgba(255,255,255,0.7);
  font-size: 9px;
}
.wr-arr {
  text-align: right;
  font-size: 20px;
  color: var(--text-dim);
  transition: transform 0.3s, color 0.3s;
}
.work-row:hover .wr-arr { color: var(--text); transform: translateX(6px); }

@media (max-width: 1100px) {
  .work-row { grid-template-columns: 40px 1fr 30px; }
  .wr-stat, .wr-thumb { display: none; }
}

/* =========================================================
   Stats — proof strip (no cards)
   ========================================================= */
.stats { border-bottom: 1px solid var(--line); padding: 52px 0; background: var(--bg-1); }
.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: 0 40px;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.stat:first-child { border-left: none; padding-left: 0; }
.stat-n {
  font-size: clamp(40px, 4.4vw, 64px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1;
}
.stat-l { font-size: 13px; line-height: 1.4; color: var(--text-mid); font-family: 'Geist', system-ui; text-transform: none; letter-spacing: 0; }

@media (max-width: 900px) {
  .stats-inner { grid-template-columns: 1fr 1fr; gap: 0; }
  .stat { padding: 24px 20px; border-left: 1px solid var(--line); }
  .stat:nth-child(3), .stat:nth-child(4) { border-top: 1px solid var(--line); }
  .stat:nth-child(1), .stat:nth-child(3) { border-left: none; }
}

/* =========================================================
   CTA
   ========================================================= */
.cta {
  border-bottom: 1px solid var(--line);
  padding: 140px 0;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(34,211,238,0.05), transparent 50%),
    radial-gradient(circle at 80% 30%, rgba(225,29,116,0.05), transparent 50%);
  pointer-events: none;
}
.cta-inner { position: relative; text-align: left; max-width: 920px; }
.cta-eyebrow { margin-bottom: 28px; }
.cta-title {
  font-size: clamp(48px, 6.4vw, 96px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.98;
  margin-bottom: 24px;
  overflow-wrap: break-word;
}
.cta-sub {
  color: var(--text-mid);
  font-size: 18px;
  line-height: 1.55;
  margin-bottom: 40px;
  max-width: 600px;
}
.cta-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  margin-bottom: 32px;
}
.cta-input {
  background: var(--bg-1);
  border: 1px solid var(--line);
  padding: 18px 22px;
  color: var(--text);
  font-size: 14px;
  outline: none;
  text-transform: none;
  letter-spacing: 0;
  font-family: 'Geist', system-ui;
  border-radius: 10px;
  transition: background 0.2s, border-color 0.2s;
}
.cta-input::placeholder { color: var(--text-dim); }
.cta-input:focus { background: var(--bg-2); border-color: var(--cyan); }
.cta-input-wide { grid-column: span 2; }
.cta-textarea { resize: vertical; min-height: 100px; }
.cta-submit { border: 0; }
.cta-foot {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.cta-confirm {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 640px;
}
.cta-confirm-mark {
  width: 52px; height: 52px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--cyan);
}

@media (max-width: 900px) {
  .cta-form { grid-template-columns: 1fr; }
  .cta-input-wide { grid-column: auto; }
}

/* Free-scan form (SEM landing page): honeypot field + email/send-code row.
   Single-column stack (not the base 3-col auto-track grid) — the otp-row's
   intrinsic content width would otherwise blow up the "auto" 3rd column. */
#freescan-form { grid-template-columns: 1fr; max-width: 480px; }
.hp-field { position: absolute; left: -9999px; }
.cta-otp-row { display: flex; gap: 8px; }
.cta-otp-row .cta-input { flex: 1; min-width: 0; }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  background: transparent;
  color: var(--text) !important;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  font-weight: 500;
  font-size: 13px;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.btn-secondary:hover:not(:disabled) { border-color: var(--cyan); background: var(--bg-1); }
.btn-secondary:disabled { opacity: 0.6; cursor: not-allowed; }
.cta-form-msg { margin-top: -12px; margin-bottom: 12px; min-height: 1em; grid-column: 1 / -1; }

@media (max-width: 900px) {
  .cta-otp-row { flex-direction: column; }
  .btn-secondary { padding: 12px 18px; }
}

/* =========================================================
   Footer
   ========================================================= */
.footer { padding: 80px 0 32px; }
.footer-inner { display: flex; flex-direction: column; }
.footer-top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  padding-bottom: 80px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}
.footer-logo { height: 40px; margin-bottom: 24px; }
.footer-blurb { color: var(--text-mid); line-height: 1.5; font-size: 14px; max-width: 320px; }
.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.footer-cols > div { display: flex; flex-direction: column; gap: 10px; }
.footer-col-h { margin-bottom: 12px; }
.footer-cols a { color: var(--text-mid); font-size: 14px; transition: color 0.2s; }
.footer-cols a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 10px;
}

@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr; gap: 48px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}

/* =========================================================
   Selection + scrollbar
   ========================================================= */
::selection { background: rgba(34,211,238,0.35); color: var(--text); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line-2); }
::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }

/* =========================================================
   Sub-page — hero banner
   ========================================================= */
.sub-hero {
  position: relative;
  min-height: 320px;
  background:
    radial-gradient(circle at 20% 50%, var(--hero-glow-1) 0%, transparent 55%),
    radial-gradient(circle at 80% 50%, var(--hero-glow-2) 0%, transparent 55%),
    var(--bg);
  overflow: hidden;
  padding-top: 140px;
  padding-bottom: 72px;
  scroll-snap-align: start;
}
.sub-hero .grid-overlay { position: absolute; }
.sub-hero-inner { position: relative; z-index: 2; }

.bc {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.bc-link {
  font-size: 12px;
  font-family: 'Geist Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  transition: color 0.2s;
}
.bc-link:hover { color: var(--text-mid); }
.bc-link.on { color: var(--text-mid); }
.bc-sep { color: var(--line-2); font-size: 12px; }

.sub-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-family: 'Geist Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 20px;
}
.sub-eyebrow .eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--violet);
  flex-shrink: 0;
}

.sub-title {
  font-family: 'Geist', system-ui;
  font-weight: 500;
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.sub-blurb {
  color: var(--text-mid);
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.55;
  max-width: 580px;
}

/* =========================================================
   Sub-page — body
   ========================================================= */
.sub-body {
  padding: 80px 0 120px;
  scroll-snap-align: start;
}

.sub-body-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 64px;
  align-items: start;
}
.sub-aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 32px;
}
.sub-aside-card {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sub-aside-card .mono { font-size: 10px; }
.sub-aside-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sub-aside-list li {
  font-size: 13px;
  color: var(--text-mid);
  padding-left: 14px;
  position: relative;
  line-height: 1.4;
}
.sub-aside-list li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--cyan);
}
.sub-aside-stat {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1;
}
.sub-aside-sub { font-size: 12px; color: var(--text-dim); line-height: 1.4; }

.sub-main { min-width: 0; }
.sub-h2 {
  font-family: 'Geist', system-ui;
  font-weight: 500;
  font-size: clamp(28px, 3vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
}
.sub-lead {
  color: var(--text-mid);
  font-size: 17px;
  line-height: 1.6;
  margin-bottom: 48px;
  max-width: 640px;
}
.sub-lead + .sub-lead { margin-top: -32px; }

.sub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.sub-card {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.2s, transform 0.2s;
}
.sub-card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.sub-card-n { font-size: 10px; }
.sub-card-title { font-size: 18px; font-weight: 500; letter-spacing: -0.015em; overflow-wrap: break-word; }
.sub-card-copy { font-size: 14px; color: var(--text-mid); line-height: 1.55; }

.sub-hub-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  padding-top: 8px;
}
.sub-hub-card {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.sub-hub-card:hover {
  border-color: var(--line-2);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px -16px rgba(124,58,237,0.2);
}
.sub-hub-title { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; overflow-wrap: break-word; }
.sub-hub-desc { font-size: 14px; color: var(--text-mid); line-height: 1.5; }
.sub-hub-arr {
  font-size: 18px;
  color: var(--text-dim);
  margin-top: auto;
  transition: transform 0.2s, color 0.2s;
}
.sub-hub-card:hover .sub-hub-arr { transform: translateX(4px); color: var(--text); }

.sub-tandra-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.sub-tandra-side { position: sticky; top: 32px; }

.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.insight-card {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.insight-card:hover {
  border-color: var(--line-2);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px -12px rgba(124,58,237,0.18);
}
.insight-tag { font-size: 10px; color: var(--cyan); letter-spacing: 0.08em; }
.insight-title { font-size: 17px; font-weight: 500; letter-spacing: -0.015em; line-height: 1.3; }
.insight-meta { font-size: 11px; margin-top: auto; }

.sub-about-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 64px;
  align-items: start;
}
.sub-about-main { min-width: 0; }
.sub-about-aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 32px;
}

@media (max-width: 1100px) {
  .sub-tandra-grid { grid-template-columns: 1fr; }
  .sub-tandra-side { position: static; }
}
@media (max-width: 900px) {
  .sub-body-grid { grid-template-columns: 1fr; gap: 40px; }
  .sub-aside { position: static; }
  .sub-hub-grid { grid-template-columns: 1fr; }
  .sub-grid { grid-template-columns: 1fr; }
  .insights-grid { grid-template-columns: 1fr 1fr; }
  .sub-about-grid { grid-template-columns: 1fr; gap: 40px; }
  .sub-about-aside { position: static; }
}
@media (max-width: 600px) {
  .insights-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   WordPress / Astra resets
   ========================================================= */
body { background-color: var(--bg) !important; }
html { background-color: var(--bg); }
/* Astra sets article.hentry { background: #fff } — override it */
article.hentry,
article.type-post,
.hentry,
.ast-article-post { background-color: transparent !important; }
.ast-container { max-width: none !important; padding: 0 !important; }
#content, .site-content, #primary, .site-main, .entry-content {
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
  width: 100% !important;
}
/* Astra two-column sidebar layout: force #primary to fill full width, hide sidebar */
.elementor-page #primary,
.elementor-page.ast-two-container #primary {
  flex: 1 1 100% !important;
  max-width: 100% !important;
  width: 100% !important;
  float: none !important;
}
.elementor-page #secondary { display: none !important; }
.elementor-page .ast-separate-container,
.elementor-page .ast-two-container .site-content { flex-wrap: nowrap !important; }
/* Astra blocks-layout: applies max-width to direct children of .entry-content — break it for Elementor */
.entry-content[data-ast-blocks-layout] > .elementor,
.entry-content[data-ast-blocks-layout] > .elementor-section-wrap {
  max-width: 100% !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
/* Force top-level Elementor section containers full-width — content sections use
   .container internally for max-width. Scoped to .e-parent (top-level sections)
   so nested containers (.e-child) keep their own configured width/column settings —
   an unscoped .e-con rule here previously broke any nested multi-column layout. */
.elementor-page .e-con.e-parent,
.elementor-location-body .e-con.e-parent,
.elementor-location-header .e-con.e-parent,
.elementor-location-footer .e-con.e-parent {
  max-width: 100% !important;
  width: 100% !important;
}
/* Contact page two-column sample-text section: native Elementor container had
   zero configured padding, so its content sat flush at the edge instead of
   lining up with the site's standard .container inset (padding: 0 var(--pad)).
   Also needs the site's standard max-width cap + centering, same as .container
   — the .e-con.e-parent rule above forces width:100% with no max-width, so on
   viewports wider than --max this section stretched wider than every other
   section on the page. Selector specificity here matches .e-con.e-parent
   (4 classes vs 3) so this correctly wins for max-width/margin without
   fighting that rule's width:100%. */
.elementor-page .elementor-element-3csm6tqs.e-con.e-parent,
.elementor-location-body .elementor-element-3csm6tqs.e-con.e-parent {
  max-width: var(--max) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: var(--pad) !important;
  padding-right: var(--pad) !important;
}
.elementor-page .e-con-inner,
.elementor-location-body .e-con-inner,
.elementor-location-header .e-con-inner,
.elementor-location-footer .e-con-inner {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.ast-breadcrumbs-wrapper,
.ast-above-header-wrap,
.ast-below-header-wrap { display: none !important; }
.elementor-section.elementor-section-full_width { padding: 0; }
.ast-plain-container, .ast-container { padding-top: 0 !important; }

/* Hide Astra page title — page content handles its own headings */
.entry-title,
.ast-page-title-wrap,
.ast-page-title { display: none !important; }

/* Strip Elementor widget padding so our full-bleed sections work */
.elementor-widget-html .elementor-widget-container { padding: 0 !important; }
.elementor-location-header .elementor-element,
.elementor-location-footer .elementor-element { overflow: visible !important; }
.elementor-element.e-con { overflow: visible !important; }

/* =========================================================
   Nav dropdown — WP version uses .nav-dropdown + data-open
   CSS originally expected .nav-submenu with :hover on .has-children
   ========================================================= */

/* Hide dropdowns by default */
.nav-dropdown {
  display: block;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translate(-50%, -8px);
  min-width: 300px;
  padding: 0;
  background: var(--nav-bg, rgba(248, 248, 246, 0.92));
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 20px 48px -16px rgba(0,0,0,0.14);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 200;
}
[data-theme="dark"] .nav-dropdown {
  background: rgba(13, 15, 20, 0.92);
}

/* Show on hover or when JS sets data-open */
.nav-item--has-children:hover .nav-dropdown,
.nav-item--has-children .nav-dropdown[data-open] {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

/* Keep dropdown reachable when mouse moves from link to dropdown */
.nav-item--has-children::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 12px;
}

/* .nav-sub-group → same role as .nav-submenu-inner */
.nav-sub-group {
  display: flex;
  flex-direction: column;
  padding: 10px;
  gap: 4px;
}

/* .nav-sub-head → section label inside dropdown */
.nav-sub-head {
  padding: 8px 12px 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-family: 'Geist Mono', monospace;
}

/* .nav-sub-link → individual dropdown items */
.nav-sub-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  transition: background 0.15s;
}
.nav-sub-link:hover { background: var(--bg-2); }
.nav-sub-link-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--violet);
  opacity: 0.6;
  flex-shrink: 0;
}
.nav-sub-link-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav-sub-link-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}
.nav-sub-link-desc {
  font-size: 12px;
  color: var(--text-dim);
}

/* Nav dropdowns — data-open state for JS */
.nav-submenu[data-open] {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

/* =========================================================
   FAQ
   ========================================================= */
.faq-section { padding: 80px 0; }
.faq-list {
  margin-top: 3rem;
  border-top: 1px solid var(--line);
}
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  text-align: left;
  padding: 1.5rem 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  line-height: 1.45;
  letter-spacing: -0.01em;
  transition: color 0.15s;
}
.faq-q:hover {
  color: var(--text) !important;
  background-color: transparent !important;
  border-color: transparent !important;
}
.faq-chev {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  color: var(--text-mid);
  transition: transform 0.25s ease;
}
.faq-q[aria-expanded="true"] .faq-chev { transform: rotate(180deg); }
.faq-a {
  padding: 0 2rem 1.5rem 0;
  max-width: 700px;
}
.faq-a p {
  color: var(--text-mid);
  line-height: 1.7;
  font-size: 15px;
}

/* =========================================================
   Two-col infographic sections
   ========================================================= */
.infographic-section {
  padding: 5rem 0;
  border-bottom: 1px solid var(--line);
}
.infographic-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.infographic-grid.reverse { direction: rtl; }
.infographic-grid.reverse > * { direction: ltr; }
.infographic-grid figure { margin: 0; line-height: 0; }
.infographic-grid figure img {
  width: 100%;
  border-radius: 16px;
  display: block;
  border: 1px solid var(--line);
}
.infographic-bullets {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  list-style: none;
  padding: 0;
}
.infographic-bullets li {
  display: flex;
  gap: 0.5rem;
  font-size: 13px;
  color: var(--text-mid);
  font-family: 'Geist Mono', monospace;
}
.infographic-bullets li span.plus { color: var(--cyan); }
@media (max-width: 860px) {
  .infographic-grid { grid-template-columns: 1fr; gap: 2rem; }
  .infographic-grid.reverse { direction: ltr; }
}

/* =========================================================
   Blob day/night image switching
   ========================================================= */
.blob-img-night { display: none; }
.blob-img-day   { display: block; }
[data-theme="dark"] .blob-img-day   { display: none; }
[data-theme="dark"] .blob-img-night { display: block; }

/* Scene containers — only active scene visible */
.blob-scene {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
}
.blob-scene.blob-scene--active { opacity: 1; }

/* Videos fill their scene */
.blob-scene .blob-video-day,
.blob-scene .blob-video-night {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Day/night switching within each scene */
.blob-scene .blob-video-night { opacity: 0; transition: opacity 0.6s ease; }
.blob-scene .blob-video-day   { opacity: 1; transition: opacity 0.6s ease; }
[data-theme="dark"] .blob-scene .blob-video-day   { opacity: 0; }
[data-theme="dark"] .blob-scene .blob-video-night { opacity: 1; }

/* Blob hover — charge-and-blast animation */
@keyframes blob-charge {
  /* Slow charge: faint glow that builds with micro flickers */
  0%   { opacity: 0;    }
  10%  { opacity: 0.03; }
  20%  { opacity: 0.01; }   /* flicker down */
  32%  { opacity: 0.06; }   /* charge rising */
  44%  { opacity: 0.03; }   /* flicker */
  54%  { opacity: 0.10; }   /* nearly charged */
  62%  { opacity: 0.06; }   /* last hesitation */
  /* Blast — instant jump to peak */
  65%  { opacity: 0.80; }
  /* Rapid afterglow */
  70%  { opacity: 0.42; }
  78%  { opacity: 0.14; }
  88%  { opacity: 0.03; }
  100% { opacity: 0;    }
}
/* White hot core — fires only at the blast moment */
@keyframes blob-blast-white {
  0%, 63% { opacity: 0;    }
  65%      { opacity: 0.38; }
  70%      { opacity: 0;    }
  100%     { opacity: 0;    }
}
.hero-blob-wrap.blob-flashing #blob-flash {
  animation: blob-charge 3.6s linear forwards;
}
.hero-blob-wrap.blob-flashing #blob-flash-w {
  animation: blob-blast-white 3.6s linear forwards;
}

/* Blob portal hover — slow scale-in + glow bloom + video zoom */
.hero-blob-wrap .ai-blob {
  transition: transform 7s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: center;
}
.hero-blob-wrap.blob-open .ai-blob {
  transform: scale(1.09);
}
.hero-blob-wrap {
  transition: filter 5s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-blob-wrap.blob-open {
  filter:
    drop-shadow(0 0 48px rgba(0,144,232,0.45))
    drop-shadow(0 0 96px rgba(124,58,237,0.28))
    drop-shadow(0 20px 60px rgba(124,58,237,0.20));
}
/* Video zooms deeper into the scene — the portal pulling you in */
.blob-scene .blob-video-day,
.blob-scene .blob-video-night {
  transition: transform 8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
}
.hero-blob-wrap.blob-open .blob-scene .blob-video-day,
.hero-blob-wrap.blob-open .blob-scene .blob-video-night {
  transform: scale(1.18);
}

/* =========================================================
   Hero tag marquee strip
   ========================================================= */
.hero-tag-strip {
  width: 100%;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  background: var(--bg-1);
}
.tag-track {
  display: flex;
  gap: 0;
  white-space: nowrap;
  animation: tag-scroll 32s linear infinite;
  width: max-content;
}
.tag-item {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-mid);
  padding: 0 18px;
  text-transform: uppercase;
}
.tag-sep {
  color: var(--cyan);
  font-size: 11px;
  opacity: 0.5;
  align-self: center;
}
@keyframes tag-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .tag-track { animation: none; }
}

/* =========================================================
   Gradient text utility
   ========================================================= */
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* =========================================================
   Critique fixes — appended 2026-05-16
   ========================================================= */

/* 3-column service grid — for pages with 3 system/service cards */
.service-grid--3col {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 1100px) {
  .service-grid--3col { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .service-grid--3col { grid-template-columns: 1fr; }
}

/* Nav active state — highlights the correct dropdown parent */
.nav-item.active > .nav-link {
  color: var(--text);
  background: var(--bg-2);
  border-radius: 999px;
}

/* SEO/GEO platform section — responsive two-column layout */
.geo-platform-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  margin-top: 3rem;
}
@media (max-width: 900px) {
  .geo-platform-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .geo-platform-grid figure { display: none; }
}

/* Infographic section h3 — ensure weight contrast */
.infographic-section h3 {
  font-weight: 600;
  color: var(--text);
}

/* sub-hero-body — ensure sub text doesn't run too wide */
.sub-hero-body .hero-sub {
  max-width: 640px;
}

/* .kicker — eyebrow variant for sub-hero pages */
.eyebrow.kicker {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 20px;
}

/* Tandra modular section — image border on light bg */
.tandra-modules-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
@media (max-width: 900px) {
  .tandra-modules-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* =========================================================
   Critique fixes — 2026-05-16
   ========================================================= */

/* 1. Breadcrumb active crumb: stronger presence — Ink Black, weight 600 */
.bc-link.on {
  color: var(--text);
  font-weight: 600;
}

/* 2. FAQ hover: no visible change — Astra button:hover injects blue bg; block all of it */
.faq-q:hover,
.faq-q:focus,
.faq-q:focus-visible {
  color: var(--text) !important;
  background-color: transparent !important;
  border-color: transparent !important;
  outline: none !important;
  box-shadow: none !important;
}

/* 3. Infographic bullets: body font, not monospace — prose should never be mono */
.infographic-bullets li {
  font-family: 'Geist', system-ui, sans-serif;
  font-size: 14px;
  color: var(--text-mid);
  font-family: 'Geist', system-ui;
  letter-spacing: 0;
  text-transform: none;
}

/* 4. Dark section — replace ad-hoc var(--dark)/var(--light) with proper token use */
.section-dark {
  background: var(--bg-1);
  border-top: 1px solid var(--line);
}
[data-theme="light"] .section-dark {
  background: #0d0f14;
  color: #f5f6fa;
  border-top-color: rgba(255,255,255,0.07);
}
[data-theme="light"] .section-dark .section-title { color: #f5f6fa; }
[data-theme="light"] .section-dark .section-blurb { color: rgba(255,255,255,0.62); }
[data-theme="light"] .section-dark .pi-claim { color: #f5f6fa; }
[data-theme="light"] .section-dark .pi-evidence { color: rgba(255,255,255,0.62); }
[data-theme="light"] .section-dark .process-list { border-top-color: rgba(255,255,255,0.1); }
[data-theme="light"] .section-dark .process-item { border-bottom-color: rgba(255,255,255,0.1); }
[data-theme="light"] .section-dark .eyebrow { color: rgba(255,255,255,0.55); }

/* Dark mode: section-dark collapses into normal surface (already dark) */
[data-theme="dark"] .section-dark {
  background: var(--bg-1);
  color: var(--text);
}
[data-theme="dark"] .section-dark .section-title,
[data-theme="dark"] .section-dark .pi-claim { color: var(--text); }
[data-theme="dark"] .section-dark .section-blurb,
[data-theme="dark"] .section-dark .pi-evidence { color: var(--text-mid); }

/* 5. Process section top-padding: sections need breathing room above section-head */
.process { padding-top: 0; }

/* 6. sub-hero-body: constrain max-width for readability */
.sub-hero-body { max-width: 780px; }
.sub-hero-body .hero-sub { max-width: 62ch; }

/* 7. sc-foot: de-mono — navigation affordances should use body font */
.sc-foot {
  font-family: 'Geist', system-ui, sans-serif;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-mid);
}

/* 8. Infographic heading: consistent scale using design system */
.infographic-heading {
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0.75rem 0 1rem;
  color: var(--text);
}

/* 9. Nav active state via data-page on body */
[data-page="about"]    .nav-link[href="about.html"],
[data-page="services"] .nav-item:has(.nav-link[href="services.html"]) > .nav-link,
[data-page="aigc"]     .nav-item:has(.nav-link[href="services.html"]) > .nav-link,
[data-page="spokesperson"] .nav-item:has(.nav-link[href="services.html"]) > .nav-link {
  color: var(--text);
  background: var(--bg-2);
}

/* =========================================================
   Contact page — form and info column components
   ========================================================= */

/* Stacked form layout — single column, full width inputs */
.contact-form-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Name + company side-by-side row */
.cform-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 600px) {
  .cform-row { grid-template-columns: 1fr; }
}

/* Contact detail list — clean, no icon dependency */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
}
.contact-detail-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}
.contact-detail-label {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 2px;
}
.contact-detail-value {
  font-size: 17px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

/* What happens next — numbered step list */
.contact-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
}
.contact-step {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.contact-step-n {
  font-size: 11px;
  color: var(--text-dim);
  padding-top: 2px;
  letter-spacing: 0.06em;
}
.contact-step-text {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.55;
}

/* =========================================================
   Insights page — featured article + 3-col grid
   ========================================================= */

/* Featured article — full-width card with larger title */
.insights-featured {
  position: relative;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 40px 44px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 220px;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.insights-featured:hover {
  border-color: var(--line-2);
  transform: translateY(-3px);
  box-shadow: 0 20px 48px -20px rgba(124,58,237,0.2);
}
.insights-featured-meta {
  display: flex;
  align-items: center;
  margin-bottom: 4px;
}
.insights-featured-title {
  font-size: clamp(24px, 2.8vw, 36px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--text);
}
.insights-featured-copy {
  color: var(--text-mid);
  font-size: 16px;
  line-height: 1.6;
  max-width: 72ch;
}
.insights-featured .sc-edge {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.insights-featured:hover .sc-edge { transform: scaleX(1); }

/* 3-column article grid */
.insights-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 1100px) {
  .insights-grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .insights-grid-3 { grid-template-columns: 1fr; }
  .insights-featured { padding: 28px 24px 24px; }
}

/* =========================================================
   Insight cards — image thumbnails
   ========================================================= */
.sc-thumb {
  width: calc(100% + 0px);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 10px 10px 0 0;
  margin: -1px -1px 20px -1px; /* bleed to card edge */
  background: var(--bg-2);
  flex-shrink: 0;
}
.sc-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.16,1,0.3,1);
}
.service-card:hover .sc-thumb img { transform: scale(1.04); }

/* Featured insight — image at top */
.insights-featured-img {
  width: calc(100% + 88px);
  margin: -40px -44px 24px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 15px 15px 0 0;
  background: var(--bg-2);
  flex-shrink: 0;
}
.insights-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16,1,0.3,1);
}
.insights-featured:hover .insights-featured-img img { transform: scale(1.03); }
@media (max-width: 700px) {
  .insights-featured-img { width: calc(100% + 48px); margin: -28px -24px 20px; }
}

/* =========================================================
   Blog post — full article layout
   ========================================================= */
.post-wrap { padding-top: 0; }

.post-back-row {
  padding: 20px 0 0;
  border-bottom: 1px solid var(--line);
}
.post-back-row .container { padding-bottom: 14px; }
.post-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-family: var(--mono, 'Geist Mono', monospace);
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}
.post-back:hover { color: var(--text); }
.post-back-arr { font-size: 14px; margin-right: 2px; }

.post-header {
  padding: 52px 0 40px;
  max-width: 820px;
}
.post-header .container { padding-bottom: 0; }
.post-kicker {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.post-tag {
  display: inline-block;
  font-size: 11px;
  font-family: var(--mono, 'Geist Mono', monospace);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--bg-2);
  color: var(--text-mid);
  border: 1px solid var(--line);
}
.post-meta-row {
  font-size: 12px;
  font-family: var(--mono, 'Geist Mono', monospace);
  color: var(--text-dim);
  display: flex;
  gap: 12px;
}
.post-title {
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 20px;
}
.post-intro {
  font-size: clamp(17px, 1.5vw, 20px);
  color: var(--text-mid);
  line-height: 1.65;
  max-width: 66ch;
  margin-bottom: 28px;
}
.post-byline {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--text-dim);
}
.post-byline-dot {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--grad);
  flex-shrink: 0;
  opacity: 0.7;
}
.post-byline strong { color: var(--text); font-weight: 500; }

/* Hero image */
.post-hero {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 520px;
  overflow: hidden;
  background: var(--bg-2);
}
.post-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Article body */
.post-body-wrap {
  padding: 60px 0 40px;
}
.post-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}
.post-body p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-mid);
  margin-bottom: 1.5em;
}
.post-body p:first-child { color: var(--text); font-size: 18px; }
.post-body h2 {
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 2.5em 0 0.75em;
  padding-top: 2em;
  border-top: 1px solid var(--line);
}
.post-body h3 {
  font-size: 18px;
  font-weight: 500;
  color: var(--text);
  margin: 2em 0 0.5em;
}
.post-body ul, .post-body ol {
  padding-left: 1.5em;
  margin-bottom: 1.5em;
}
.post-body li {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-mid);
  margin-bottom: 0.5em;
}
.post-pullquote {
  border-left: 2px solid var(--cyan);
  padding: 4px 0 4px 28px;
  margin: 2.5em 0;
}
.post-pullquote p {
  font-size: clamp(19px, 2vw, 24px) !important;
  font-style: italic;
  color: var(--text) !important;
  line-height: 1.5;
  margin: 0 !important;
}
.post-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  margin: 2.5em 0;
}
.post-stat {
  background: var(--bg-1);
  padding: 24px 20px;
  text-align: center;
}
.post-stat-num {
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text);
  display: block;
}
.post-stat-label {
  font-size: 12px;
  font-family: var(--mono, 'Geist Mono', monospace);
  color: var(--text-dim);
  margin-top: 4px;
  display: block;
}
@media (max-width: 600px) {
  .post-stat-row { grid-template-columns: 1fr; }
}

/* Author bio */
.post-author {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 32px 24px;
  max-width: 720px;
  margin: 0 auto 60px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.post-author-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--grad);
  flex-shrink: 0;
  opacity: 0.7;
}
.post-author-name { font-weight: 500; font-size: 15px; color: var(--text); }
.post-author-role { font-size: 13px; color: var(--text-dim); margin-top: 2px; font-family: var(--mono, 'Geist Mono', monospace); }
.post-author-bio { font-size: 14px; color: var(--text-mid); line-height: 1.6; margin-top: 8px; }

/* Related articles */
.post-related { padding: 0 0 60px; }
.post-related-head {
  max-width: 720px;
  margin: 0 auto 24px;
  padding: 0 24px;
  font-size: 12px;
  font-family: var(--mono, 'Geist Mono', monospace);
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.post-related-grid {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.post-related-card {
  position: relative;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}
.post-related-card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.post-related-card a.sc-link { border-radius: 10px; }
.post-related-img {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-2);
}
.post-related-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.post-related-card:hover .post-related-img img { transform: scale(1.04); }
.post-related-body { padding: 14px 16px 16px; }
.post-related-tag { font-size: 10px; font-family: var(--mono, 'Geist Mono', monospace); color: var(--text-dim); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.05em; }
.post-related-title { font-size: 14px; font-weight: 500; color: var(--text); line-height: 1.35; }
@media (max-width: 700px) {
  .post-related-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   Case Studies — second process section tint
   ========================================================= */
/* The second process section (Enterprise AI) uses bg-1 for visual separation.
   Ensure the border-bottom still appears correctly. */
.process[style*="background:var(--bg-1)"] {
  border-bottom: 1px solid var(--line);
}

/* 10. Spokesperson 3-card grid: when service-grid has exactly 3 cards, use 3 cols */
.service-grid--three {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 900px) {
  .service-grid--three { grid-template-columns: 1fr; }
}

/* 11. Section rhythm: ensure light/dark alternation has clear boundary */
section.process + section.services,
section.services + section.process {
  border-top: 1px solid var(--line);
}

/* 12. FAQ list top margin tightening — section-head already has bottom padding */
.faq-list { margin-top: 2rem; }

/* =========================================================
   Contact page — two-column layout
   (was inline CSS in mockup wrapper; moved here for WP)
   ========================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  padding: 80px 0;
}
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; padding: 60px 0; }
}

/* =========================================================
   WordPress / Elementor — transparent container overrides
   Prevents Astra/Elementor #fff background bleeding through in dark mode
   ========================================================= */
html[data-theme="dark"] body,
html[data-theme="dark"] #page,
html[data-theme="dark"] .site,
html[data-theme="dark"] .site-content,
html[data-theme="dark"] #content,
html[data-theme="dark"] .ast-container,
html[data-theme="dark"] .elementor,
html[data-theme="dark"] .elementor-section,
html[data-theme="dark"] .e-con,
html[data-theme="dark"] .e-con-inner,
html[data-theme="dark"] .elementor-container,
html[data-theme="dark"] .elementor-widget,
html[data-theme="dark"] .elementor-widget-container,
html[data-theme="dark"] .elementor-widget-html {
  background-color: transparent;
}
html[data-theme="dark"] .elementor-section.section-dark,
html[data-theme="dark"] .e-con.section-dark,
html[data-theme="dark"] section.section-dark,
html[data-theme="dark"] .process.section-dark {
  background-color: var(--bg-2);
}


/* =========================================================
   ZH pages — dark mode overrides for --c-* variables
   The ZH mockup uses --c-* tokens; map them to the dark theme
   ========================================================= */
html[data-theme="dark"] {
  --c-bg:           var(--bg);
  --c-surface:      var(--bg-2);
  --c-dark:         #06060b;
  --c-text:         var(--text);
  --c-muted:        var(--text-mid);
  --c-border:       var(--line);
  --c-accent-light: rgba(34, 211, 238, 0.08);
}
/* ZH .card and .section--surface use --c-surface; force them dark */
html[data-theme="dark"] .card {
  background: var(--bg-2);
  border-color: var(--line);
  color: var(--text);
}
html[data-theme="dark"] .section--surface {
  background: var(--bg);
}
html[data-theme="dark"] .text-muted {
  color: var(--text-mid);
}
html[data-theme="dark"] .faq-item {
  border-color: var(--line);
}

/* =========================================================
   Form inputs — dark mode (Contact page + any HTML forms)
   ========================================================= */
html[data-theme="dark"] input,
html[data-theme="dark"] input[type="text"],
html[data-theme="dark"] input[type="email"],
html[data-theme="dark"] input[type="tel"],
html[data-theme="dark"] input[type="number"],
html[data-theme="dark"] textarea,
html[data-theme="dark"] select {
  background-color: var(--bg-2) !important;
  color: var(--text) !important;
  border-color: var(--line-2) !important;
}
html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder {
  color: var(--text-dim) !important;
}
html[data-theme="dark"] label,
html[data-theme="dark"] .elementor-field-label {
  color: var(--text) !important;
}

/* =========================================================
   Astra/Elementor container transparency
   Let body --bg (#f6f5f0 warm cream) show through
   ========================================================= */
#page, .site, .site-content, #content,
.entry-content, .ast-container,
.elementor, .e-con, .e-con-inner,
.elementor-container, .elementor-widget,
.elementor-widget-container, .elementor-widget-html {
  background-color: transparent;
}

/* =========================================================
   Elementor boxed inner — remove max-width constraint
   Makes hero sections on SEO/GEO, Tandra, Case Studies full-width
   ========================================================= */
.elementor-page .e-con-boxed > .e-con-inner {
  max-width: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* =========================================================
   Nav — force sticky-actions visible (Astra may hide via pointer-events/display)
   ========================================================= */
.sticky-actions {
  display: inline-flex !important;
  align-items: center !important;
  visibility: visible !important;
  gap: 8px !important;
}
.lang-toggle {
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}
.lang-toggle svg,
.lang-chev {
  display: block !important;
  visibility: visible !important;
  stroke: currentColor !important;
}
