/* ==========================================================================
   Oneovate — Homepage design system
   Custom properties, layout primitives and components. No framework
   dependency (no Bootstrap/jQuery) — CSS Grid/Flexbox + a small utility set.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Brand — exact colors from the Oneovate logo (assets/img/logo/logo-brand.svg) */
  --brand-navy: #163B6D;    /* logo ring/mark */
  --brand-slate: #4F4C4C;   /* logo ring counter-tone */
  --blue-700: #163B6D;      /* = brand-navy, exact logo match */
  --blue-600: #013984;      /* exact logo match ("ONE"/"ATE") */
  --blue-500: #004AAD;      /* exact logo match ("V" mark letters) */
  --blue-400: #1478C7;      /* lighter tint, for accents on dark surfaces */
  --blue-300: #4FA8E0;
  --blue-250: #8FC4EA;
  --blue-200: #BBD4EF;
  --blue-100: #E7EEFA;

  /* Ink (dark surfaces) */
  --ink-950: #06070D;
  --ink-900: #0A0D18;
  --ink-850: #0D1120;
  --ink-800: #10142A;
  --ink-700: #161B36;
  --ink-600: #232A4C;
  --ink-500: #363F6B;
  --ink-border: #232A4C;

  /* Paper (light surfaces) */
  --paper-0: #FFFFFF;
  --paper-50: #F7F8FC;
  --paper-100: #EFF1F9;
  --paper-border: #E3E6F2;

  /* Text */
  --text-on-dark: #F3F4FA;
  --text-on-dark-muted: #A7ACC9;
  --text-on-dark-faint: #6E7395;
  --text-on-light: #10142A;
  --text-on-light-muted: #4B5175;
  --text-on-light-faint: #7A7FA0;

  /* Feedback */
  --ok-500: #2FD991;

  /* Type */
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Fluid type scale */
  --fs-xs: clamp(0.75rem, 0.72rem + 0.12vw, 0.8125rem);
  --fs-sm: clamp(0.875rem, 0.85rem + 0.12vw, 0.9375rem);
  --fs-base: clamp(1rem, 0.97rem + 0.14vw, 1.0625rem);
  --fs-md: clamp(1.125rem, 1.08rem + 0.22vw, 1.25rem);
  --fs-lg: clamp(1.375rem, 1.28rem + 0.45vw, 1.625rem);
  --fs-xl: clamp(1.75rem, 1.55rem + 0.9vw, 2.25rem);
  --fs-2xl: clamp(2.25rem, 1.9rem + 1.6vw, 3.25rem);
  --fs-3xl: clamp(2.75rem, 2.1rem + 2.9vw, 4.5rem);

  /* Spacing (8px baseline) */
  --sp-1: 0.5rem;
  --sp-2: 0.75rem;
  --sp-3: 1rem;
  --sp-4: 1.5rem;
  --sp-5: 2rem;
  --sp-6: 3rem;
  --sp-7: 4rem;
  --sp-8: 6rem;
  --sp-9: 8rem;

  --section-pad: clamp(3.5rem, 2.9rem + 2.8vw, 5.75rem);
  --container-w: 1440px;
  --container-pad: clamp(1.25rem, 0.6rem + 2.4vw, 4rem);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 0.18s;
  --dur-med: 0.4s;

  --shadow-soft: 0 1px 2px rgba(10, 13, 24, 0.06), 0 8px 24px -12px rgba(10, 13, 24, 0.12);
  --shadow-lifted: 0 20px 60px -20px rgba(10, 13, 24, 0.35);
  --shadow-glow: 0 0 0 1px rgba(11, 79, 174, 0.4), 0 12px 40px -12px rgba(11, 79, 174, 0.45);

  --header-h: 92px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { height: 100%; }
body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--text-on-light);
  background: var(--paper-0);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
ul, ol { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; letter-spacing: -0.02em; color: inherit; }

/* Note: we intentionally do NOT blanket-kill all animation/transition durations
   here. Only large, potentially disorienting motion (scroll-linked parallax,
   entrance slides) is gated — and that's handled in JS via a matchMedia check,
   not CSS. Small ambient/decorative motion (status dots, flow indicators,
   slow rotation) keeps running, consistent with WCAG's vestibular guidance
   which targets large-scale/parallax motion, not small local indicators. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---------- Focus & a11y ---------- */
:focus-visible {
  outline: 2px solid var(--blue-500);
  outline-offset: 3px;
  border-radius: 4px;
}
.skip-link {
  position: fixed;
  top: -100%;
  left: var(--sp-3);
  z-index: 1000;
  background: var(--ink-950);
  color: var(--text-on-dark);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: top var(--dur-fast) var(--ease-out);
}
.skip-link:focus { top: var(--sp-3); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- Layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}
.section { padding-block: var(--section-pad); position: relative; }
.section--dark { background: var(--ink-950); color: var(--text-on-dark); }
.section--paper { background: var(--paper-50); }

/* Nav-menu destinations fill the viewport so jumping to them from the header
   always lands on a section that reads as "complete", not a sliver. Content
   stays top-aligned — anchor-scroll lands on the section's top edge, so
   centering here would show a blank gap before the heading whenever a
   section's content is shorter than one screen. */
#about-sec, #service-sec, #onehub, #project-sec, #why-us-sec, #contact-sec {
  min-height: calc(100svh - var(--header-h));
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.section-head {
  max-width: 680px;
  margin-bottom: var(--sp-7);
}
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--blue-500);
  margin-bottom: var(--sp-3);
}
.eyebrow::before {
  content: "";
  width: 20px;
  height: 1.5px;
  background: currentColor;
  opacity: 0.6;
}
.section--dark .eyebrow { color: var(--blue-400); }
.sec-title { font-size: var(--fs-2xl); }
.sec-title .accent { color: var(--blue-600); }
.section--dark .sec-title .accent { color: var(--blue-400); }
.sec-lede {
  margin-top: var(--sp-4);
  font-size: var(--fs-md);
  color: var(--text-on-light-muted);
  max-width: 60ch;
}
.section--dark .sec-lede { color: var(--text-on-dark-muted); }
.section-head.center .sec-lede { margin-inline: auto; }

.grid { display: grid; gap: var(--sp-5); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.6rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: var(--fs-sm);
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; transition: transform var(--dur-fast) var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--blue-600);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,0.12) inset, 0 10px 30px -12px rgba(11, 79, 174,0.65);
}
.btn--primary:hover { background: var(--blue-500); box-shadow: 0 1px 0 rgba(255,255,255,0.12) inset, 0 14px 34px -10px rgba(11, 79, 174,0.75); }

.btn--ghost-dark {
  background: rgba(255,255,255,0.04);
  color: var(--text-on-dark);
  border: 1px solid rgba(255,255,255,0.16);
}
.btn--ghost-dark:hover { background: rgba(255,255,255,0.09); border-color: rgba(255,255,255,0.3); }

.btn--ghost-light {
  background: transparent;
  color: var(--text-on-light);
  border: 1px solid var(--paper-border);
}
.btn--ghost-light:hover { border-color: var(--blue-400); background: var(--blue-100); }

.btn--sm { padding: 0.7rem 1.2rem; font-size: var(--fs-xs); }
.btn--block { width: 100%; justify-content: center; }

.icon-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--blue-600);
}
.icon-link svg { width: 14px; height: 14px; transition: transform var(--dur-fast) var(--ease-out); }
.icon-link:hover svg { transform: translateX(3px); }
.section--dark .icon-link { color: var(--blue-400); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  background: var(--paper-0);
  border-bottom: 1px solid var(--paper-border);
  transform: translateY(0);
  transition: box-shadow var(--dur-med) var(--ease-out), transform var(--dur-med) var(--ease-out), border-color var(--dur-med) var(--ease-out);
}
.site-header.is-scrolled { box-shadow: 0 12px 32px -22px rgba(16, 20, 42, 0.28); }
.site-header.is-hidden { transform: translateY(-100%); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  height: 92px;
  transition: height var(--dur-med) var(--ease-out);
}
.site-header.is-scrolled .header-inner { height: 72px; }

.brand { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 0.2rem; }
.brand img { height: 68px; width: auto; transition: height var(--dur-med) var(--ease-out); }
.site-header.is-scrolled .brand img { height: 53px; }
.brand-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.045em;
  color: var(--blue-700);
  padding-left: 0.15rem;
  white-space: nowrap;
  transition: font-size var(--dur-med) var(--ease-out);
}
.site-header.is-scrolled .brand-tag { font-size: 9px; }
@media (max-width: 480px) {
  .brand-tag { font-size: 8.5px; letter-spacing: 0.02em; }
}

.main-nav { display: none; }
@media (min-width: 992px) {
  .main-nav { display: flex; align-items: center; gap: var(--sp-6); }
  .main-nav ul { display: flex; align-items: center; gap: var(--sp-5); }
  .main-nav a {
    position: relative;
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--text-on-light-muted);
    padding-block: 0.4rem;
    transition: color var(--dur-fast) var(--ease-out);
  }
  .main-nav a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 1.5px;
    background: var(--blue-500);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.35s var(--ease-out);
  }
  .main-nav a:hover, .main-nav a.is-active { color: var(--blue-600); }
  .main-nav a:hover::after, .main-nav a.is-active::after { transform: scaleX(1); }
}

.header-actions { display: flex; align-items: center; gap: var(--sp-3); }
.header-actions .btn--primary { display: none; }
@media (min-width: 768px) { .header-actions .btn--primary { display: inline-flex; } }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  color: var(--text-on-light);
  border: 1px solid var(--paper-border);
}
@media (min-width: 992px) { .nav-toggle { display: none; } }
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.mobile-nav {
  position: fixed;
  inset: 0;
  top: 0;
  z-index: 99;
  background: var(--ink-950);
  padding: calc(var(--header-h) + var(--sp-5)) var(--container-pad) var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--dur-med) var(--ease-out), transform var(--dur-med) var(--ease-out), visibility var(--dur-med);
}
.mobile-nav.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
@media (min-width: 992px) { .mobile-nav { display: none; } }
.mobile-nav ul { display: flex; flex-direction: column; gap: var(--sp-1); }
.mobile-nav a { display: block; font-family: var(--font-display); font-size: var(--fs-xl); font-weight: 500; color: var(--text-on-dark); padding-block: var(--sp-2); border-bottom: 1px solid var(--ink-border); }
.mobile-nav .header-links { display: flex; flex-direction: column; gap: var(--sp-2); color: var(--text-on-dark-muted); font-size: var(--fs-sm); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: var(--ink-950);
  color: var(--text-on-dark);
  padding-top: calc(var(--header-h) + var(--sp-5));
  padding-bottom: var(--sp-6);
  overflow: hidden;
  isolation: isolate;
}
.hero > .container { width: 100%; }
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 120%;
  background:
    radial-gradient(60% 55% at 78% 12%, rgba(11, 79, 174,0.35), transparent 65%),
    radial-gradient(45% 40% at 8% 85%, rgba(20, 120, 199,0.14), transparent 70%),
    radial-gradient(35% 45% at 50% 55%, rgba(47, 217, 145,0.05), transparent 72%);
  z-index: -2;
}
.hero-grid-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(75% 60% at 60% 20%, black, transparent 80%);
  mask-image: radial-gradient(75% 60% at 60% 20%, black, transparent 80%);
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-8);
  align-items: center;
}
@media (min-width: 1100px) {
  .hero-layout { grid-template-columns: 1.05fr 0.95fr; gap: var(--sp-7); }
}

.hero-copy { max-width: 620px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.9rem 0.5rem 0.6rem;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.14);
  font-size: var(--fs-xs);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  color: var(--text-on-dark-muted);
  margin-bottom: var(--sp-5);
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue-400); box-shadow: 0 0 0 3px rgba(20, 120, 199,0.18); }

.hero-title {
  font-size: var(--fs-3xl);
  font-weight: 600;
}
.hero-title .accent {
  background: linear-gradient(96deg, var(--blue-250), var(--blue-500) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-text {
  margin-top: var(--sp-4);
  font-size: var(--fs-md);
  color: var(--text-on-dark-muted);
  max-width: 54ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-6); }

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-5);
  margin-top: var(--sp-6);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--ink-border);
  max-width: 620px;
}
.hero-meta-item strong { display: block; font-family: var(--font-display); font-size: var(--fs-sm); color: var(--text-on-dark); margin-bottom: 0.25rem; }
.hero-meta-item span { font-size: 0.75rem; line-height: 1.45; color: var(--text-on-dark-faint); }
@media (max-width: 560px) {
  .hero-meta { grid-template-columns: 1fr; gap: var(--sp-3); }
}

/* Hero visual: abstract system/network diagram, pure CSS+SVG */
.hero-visual-parallax { will-change: transform; }
.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 560px;
  margin-inline: auto;
}
.hero-visual svg { width: 100%; height: 100%; overflow: visible; }
.node { fill: var(--ink-800); stroke: rgba(255,255,255,0.14); stroke-width: 1; }
.node-core { fill: var(--blue-600); }
.hv-line { stroke: rgba(20, 120, 199, 0.35); stroke-width: 1; fill: none; }
.hv-pulse {
  stroke: var(--blue-400);
  stroke-width: 1.5;
  fill: none;
  stroke-dasharray: 6 14;
  animation: dash 3.6s linear infinite;
  opacity: 0.8;
}
.hv-pulse[data-speed="1"] { animation-delay: -0.1s; }
.hv-pulse[data-speed="2"] { animation-delay: -0.7s; stroke: var(--blue-300); }
.hv-pulse[data-speed="3"] { animation-delay: -1.3s; }
.hv-pulse[data-speed="4"] { animation-delay: -1.9s; stroke: var(--blue-300); }
.hv-pulse[data-speed="5"] { animation-delay: -2.5s; }
.hv-pulse[data-speed="6"] { animation-delay: -3.1s; stroke: var(--blue-300); }
.hv-label {
  font-family: var(--font-mono);
  font-size: 9px;
  fill: var(--text-on-dark-faint);
  letter-spacing: 0.04em;
}
@keyframes dash { to { stroke-dashoffset: -160; } }
.hero-visual .float { animation: float 7s ease-in-out infinite; }
.hero-visual .float-delay { animation-delay: -3.2s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

.hv-spin { transform-origin: 200px 200px; animation: hv-rotate 40s linear infinite; }
.hv-spin-reverse { transform-origin: 200px 200px; animation: hv-rotate-reverse 30s linear infinite; }
@keyframes hv-rotate { to { transform: rotate(360deg); } }
@keyframes hv-rotate-reverse { to { transform: rotate(-360deg); } }

/* Radar-style pulse rings expanding outward from the core, like a heartbeat */
.node-core-ring {
  fill: none;
  stroke: var(--blue-400);
  stroke-width: 1.5;
  opacity: 0;
  transform-origin: 200px 200px;
  animation: core-ping 3s cubic-bezier(0.2, 0.6, 0.4, 1) infinite;
}
.node-core-ring.ring-delay { animation-delay: -1.5s; }
@keyframes core-ping {
  0% { transform: scale(1); opacity: 0.55; }
  100% { transform: scale(1.9); opacity: 0; }
}

/* ==========================================================================
   About
   ========================================================================== */
.about-layout { display: grid; grid-template-columns: 1fr; gap: var(--sp-7); align-items: center; }
@media (min-width: 1000px) { .about-layout { grid-template-columns: 1.05fr 0.95fr; } }
.about-copy p { color: var(--text-on-light-muted); font-size: var(--fs-md); max-width: 56ch; }
.about-copy p + p { margin-top: var(--sp-3); }
.about-feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-5) var(--sp-4); margin-top: var(--sp-6); }
.about-feature { display: flex; gap: 0.75rem; align-items: flex-start; }
.about-feature svg { width: 20px; height: 20px; color: var(--blue-600); flex-shrink: 0; margin-top: 0.15rem; }
.about-feature h3 { font-size: var(--fs-sm); font-family: var(--font-body); font-weight: 600; margin-bottom: 0.25rem; }
.about-feature p { font-size: var(--fs-xs); color: var(--text-on-light-faint); max-width: none; }

.about-quote {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-top: var(--sp-6);
  padding: var(--sp-4) var(--sp-5);
  border-left: 3px solid var(--blue-500);
  background: var(--paper-0);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  box-shadow: var(--shadow-soft);
}
.about-quote-mark {
  width: 8px; height: 8px;
  flex-shrink: 0;
  margin-top: 0.5rem;
  border-radius: 50%;
  background: var(--ok-500);
  box-shadow: 0 0 0 0 rgba(47, 217, 145, 0.6);
  animation: status-live 2.4s ease-out infinite;
}
.about-quote p {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--text-on-light);
  line-height: 1.4;
  max-width: 48ch;
}

.manifest-card {
  background: linear-gradient(180deg, var(--ink-900), var(--ink-950));
  border: 1px solid var(--ink-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  box-shadow: var(--shadow-lifted);
}
.manifest-card-head {
  display: flex; align-items: center; gap: 0.5rem;
  padding-bottom: var(--sp-4);
  margin-bottom: var(--sp-4);
  border-bottom: 1px solid var(--ink-border);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-on-dark-faint);
}
.manifest-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ink-600); }
.manifest-filename { margin-left: 0.25rem; white-space: nowrap; }
.manifest-status {
  margin-left: auto;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--ok-500);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 10px;
  white-space: nowrap;
}
.manifest-status .status-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ok-500) !important;
  box-shadow: 0 0 0 0 rgba(47, 217, 145, 0.6);
  animation: status-live 1.8s ease-out infinite;
}
@keyframes status-live {
  0% { box-shadow: 0 0 0 0 rgba(47, 217, 145, 0.55); }
  70% { box-shadow: 0 0 0 6px rgba(47, 217, 145, 0); }
  100% { box-shadow: 0 0 0 0 rgba(47, 217, 145, 0); }
}
.manifest-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding-block: 0.7rem;
  padding-inline: 0.5rem;
  margin-inline: -0.5rem;
  border-bottom: 1px solid var(--ink-border);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
}
.manifest-row::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(20, 120, 199, 0.1);
  border-radius: 4px;
  opacity: 0;
  animation: row-scan 6.6s ease-in-out infinite;
  animation-delay: calc(var(--reveal-delay, 0ms) * 2);
  pointer-events: none;
}
@keyframes row-scan {
  0%, 82%, 100% { opacity: 0; }
  89% { opacity: 1; }
}
.manifest-row .key { color: var(--text-on-dark-muted); }
.manifest-row .val { color: var(--blue-400); text-align: right; flex-shrink: 0; }
.manifest-row .key { flex-shrink: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.manifest-row .val-text { display: inline-block; clip-path: inset(0 100% 0 0); }
.manifest-row.is-typed .val-text { clip-path: inset(0 0 0 0); transition: clip-path 0.55s steps(12, end); }
.manifest-cursor {
  padding-top: 0.7rem;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--blue-400);
}
.cursor-blink { animation: cursor-blink 1s step-end infinite; }
@keyframes cursor-blink { 50% { opacity: 0; } }

/* Safety net: if JS never runs, the typing-reveal text must not stay invisible. */
.no-js .manifest-row .val-text { clip-path: inset(0 0 0 0) !important; }

/* ==========================================================================
   Capability / Feature cards
   ========================================================================== */
.cap-grid { grid-template-columns: repeat(4, 1fr); }
.cap-card {
  position: relative;
  overflow: hidden;
  background: var(--paper-0);
  border: 1px solid var(--paper-border);
  border-radius: var(--radius-md);
  padding: var(--sp-5);
  transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out), border-color var(--dur-med) var(--ease-out);
}
.cap-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  height: 2.5px;
  width: 100%;
  background: linear-gradient(90deg, var(--blue-600), var(--blue-300));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.6s var(--ease-out);
}
.cap-card.is-visible::before,
.no-js .cap-card::before { transform: scaleX(1); }
.cap-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lifted); border-color: var(--blue-200); }
.cap-card .cap-index {
  position: absolute;
  top: var(--sp-4);
  right: var(--sp-4);
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-on-light-faint);
  letter-spacing: 0.04em;
}
.cap-icon {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--blue-100);
  color: var(--blue-600);
  margin-bottom: var(--sp-4);
  transition: transform var(--dur-med) var(--ease-out), background var(--dur-med) var(--ease-out), color var(--dur-med) var(--ease-out);
}
.cap-card:hover .cap-icon { transform: translateZ(28px) rotate(-6deg) scale(1.08); background: var(--blue-600); color: #fff; }
.cap-icon--ai { animation: ai-pulse 3s ease-in-out infinite; }
@keyframes ai-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(20, 120, 199, 0.35); }
  50% { box-shadow: 0 0 0 6px rgba(20, 120, 199, 0); }
}
.cap-icon svg { width: 22px; height: 22px; }
.cap-card h3 { font-size: var(--fs-md); margin-bottom: 0.5rem; }
.cap-card p { color: var(--text-on-light-muted); font-size: var(--fs-sm); }

/* ==========================================================================
   Engineering approach / architecture
   ========================================================================== */
.arch-layout { display: grid; grid-template-columns: 1fr; gap: var(--sp-8); align-items: start; }
@media (min-width: 1100px) { .arch-layout { grid-template-columns: 0.85fr 1.15fr; } }

.principle-list { display: flex; flex-direction: column; gap: var(--sp-5); }
.principle {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-4);
}
.principle-index {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: var(--blue-400);
  padding-top: 0.15rem;
}
.principle h3 { font-size: var(--fs-md); margin-bottom: 0.35rem; }
.principle p { color: var(--text-on-dark-muted); font-size: var(--fs-sm); max-width: 46ch; }

.stack-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: var(--sp-6); }
.stack-tag {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--ink-border);
  color: var(--text-on-dark-muted);
}

/* Diagram card */
.diagram-card {
  background: linear-gradient(180deg, var(--ink-850), var(--ink-900));
  border: 1px solid var(--ink-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-6) var(--sp-5);
  position: relative;
  overflow: hidden;
}
.diagram-card::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 85% 0%, rgba(11, 79, 174,0.22), transparent 70%),
    radial-gradient(40% 45% at 10% 100%, rgba(20, 120, 199,0.12), transparent 70%);
  pointer-events: none;
}
.diagram-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  justify-content: center;
  position: relative;
}
.diagram-row + .diagram-row { margin-top: var(--sp-5); }
.diagram-connector {
  display: flex;
  justify-content: center;
  padding-block: 0.35rem;
  color: var(--ink-500);
  position: relative;
}
.diagram-connector svg {
  width: 16px; height: 22px;
  position: relative;
  z-index: 1;
  color: var(--blue-300);
  animation: chevron-run 1.3s ease-in-out infinite;
}
@keyframes chevron-run {
  0%, 100% { transform: translateY(-2px); opacity: 0.45; }
  50% { transform: translateY(5px); opacity: 1; }
}
.flow-line {
  position: absolute;
  top: -6px; bottom: -6px;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  overflow: hidden;
  background: var(--ink-border);
  border-radius: 2px;
}
.flow-dot {
  position: absolute;
  left: 50%;
  top: -20%;
  width: 8px; height: 8px;
  margin-left: -4px;
  border-radius: 50%;
  background: var(--blue-300);
  box-shadow: 0 0 10px 3px rgba(20, 120, 199, 0.75);
  animation: flow-down 1.5s linear infinite;
}
@keyframes flow-down {
  0% { top: -20%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 110%; opacity: 0; }
}
.diagram-node {
  flex: 1 1 140px;
  max-width: 200px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--ink-border);
  border-radius: var(--radius-sm);
  padding: var(--sp-3) var(--sp-3);
  text-align: center;
}
.diagram-node--core { border-color: rgba(11, 79, 174,0.55); background: rgba(11, 79, 174,0.1); box-shadow: 0 0 0 1px rgba(11, 79, 174,0.25) inset; }
.diagram-node .node-label { display: block; font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--text-on-dark); font-weight: 500; }
.diagram-node .node-sub { display: block; font-size: 11px; color: var(--text-on-dark-faint); margin-top: 0.2rem; }

/* ==========================================================================
   OneHub
   ========================================================================== */
.onehub-section { background: var(--ink-900); }
.onehub-layout { display: grid; grid-template-columns: 1fr; gap: var(--sp-7); align-items: center; }
@media (min-width: 1100px) { .onehub-layout { grid-template-columns: 1fr 1fr; } }

.status-chip {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: 0.04em;
  padding: 0.4rem 0.8rem; border-radius: var(--radius-pill);
  background: rgba(20, 120, 199,0.1); border: 1px solid rgba(20, 120, 199,0.3); color: var(--blue-400);
  margin-bottom: var(--sp-4);
}
.status-chip .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.onehub-feature-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-3); margin-top: var(--sp-5); }
.onehub-feature { display: flex; gap: 0.6rem; align-items: flex-start; font-size: var(--fs-sm); color: var(--text-on-dark-muted); }
.onehub-feature svg { width: 16px; height: 16px; margin-top: 0.2rem; color: var(--blue-400); flex-shrink: 0; }

.onehub-panel {
  background: var(--ink-950);
  border: 1px solid var(--ink-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-2);
  box-shadow: var(--shadow-lifted);
}
.onehub-panel-chrome {
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.7rem 0.6rem;
}
.onehub-panel-chrome span { width: 9px; height: 9px; border-radius: 50%; background: var(--ink-600); }
.onehub-panel-body {
  padding: var(--sp-4) var(--sp-4) var(--sp-4) calc(var(--sp-4) + 14px);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  position: relative;
}
.onehub-spine {
  position: absolute;
  top: 22px;
  bottom: 22px;
  left: calc(var(--sp-4) + 4px);
  width: 2px;
  background: var(--ink-border);
  overflow: hidden;
  border-radius: 2px;
}
.onehub-spine .flow-dot {
  background: var(--blue-300);
  box-shadow: 0 0 8px 2px rgba(20, 120, 199, 0.65);
  animation-duration: 3.2s;
}
.onehub-module {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--ink-border);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-on-dark-muted);
  position: relative;
  transition: border-color var(--dur-med) var(--ease-out), background var(--dur-med) var(--ease-out);
}
.onehub-module::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--ink-700);
  border: 2px solid var(--ink-border);
}
.onehub-module--gateway {
  border-color: rgba(20, 120, 199, 0.5);
  background: rgba(11, 79, 174, 0.12);
}
.onehub-module--gateway::before {
  background: var(--blue-400);
  border-color: var(--blue-400);
  box-shadow: 0 0 0 0 rgba(20, 120, 199, 0.6);
  animation: status-live 1.8s ease-out infinite;
}
.onehub-module:hover { border-color: var(--blue-400); background: rgba(255,255,255,0.045); }
.onehub-module .tag {
  font-size: 10px;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-pill);
  background: rgba(11, 79, 174,0.15);
  color: var(--blue-400);
  border: 1px solid rgba(11, 79, 174,0.3);
}

/* ==========================================================================
   Solutions
   ========================================================================== */
.solutions-grid { grid-template-columns: repeat(4, 1fr); }

.solution-card {
  position: relative;
  overflow: hidden;
  background: var(--paper-0);
  border: 1px solid var(--paper-border);
  border-radius: var(--radius-md);
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  width: 100%;
  font: inherit;
  text-align: left;
  color: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out), transform var(--dur-med) var(--ease-out);
}
.solution-card:focus-visible { outline: 2px solid var(--blue-500); outline-offset: 3px; }
.solution-card-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: -0.3rem;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--blue-600);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity var(--dur-med) var(--ease-out), transform var(--dur-med) var(--ease-out);
}
.solution-card-hint svg { width: 13px; height: 13px; transition: transform var(--dur-med) var(--ease-out); }
.solution-card:hover .solution-card-hint,
.solution-card:focus-visible .solution-card-hint { opacity: 1; transform: translateX(0); }
.solution-card:hover .solution-card-hint svg { transform: translateX(3px); }
.solution-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  height: 2.5px;
  width: 100%;
  background: linear-gradient(90deg, var(--blue-600), var(--blue-300));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.6s var(--ease-out);
}
.solution-card.is-visible::before,
.no-js .solution-card::before { transform: scaleX(1); }
.solution-card:hover { border-color: var(--blue-200); box-shadow: var(--shadow-lifted); transform: translateY(-4px); }
.solution-card:hover .cap-icon { transform: translateZ(28px) rotate(-6deg) scale(1.08); background: var(--blue-600); color: #fff; }
.solution-card .cap-icon { margin-bottom: 0; }
.solution-card h3 { font-size: var(--fs-base); }
.solution-card p { font-size: var(--fs-sm); color: var(--text-on-light-muted); flex-grow: 1; }
.solution-tag {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-on-light-faint);
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--paper-border);
  border-radius: var(--radius-pill);
}
.solutions-note {
  margin-top: var(--sp-5);
  font-size: var(--fs-xs);
  color: var(--text-on-light-faint);
  max-width: 60ch;
}
@media (max-width: 1300px) { .solutions-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 1099px) { .solutions-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .solutions-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Why Us — engagement paths (horizontal process flows)
   ========================================================================== */
.engage-paths {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
  margin-top: var(--sp-6);
}
.engage-path {
  background: var(--paper-0);
  border: 1px solid var(--paper-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  box-shadow: var(--shadow-soft);
}
.engage-path-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-600);
  background: var(--blue-100);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  margin-bottom: var(--sp-3);
}
.engage-path-head h3 { font-size: var(--fs-xl); margin-bottom: 0.6rem; }
.engage-path-head p { color: var(--text-on-light-muted); font-size: var(--fs-md); max-width: 78ch; }

.engage-path-foot {
  margin-top: var(--sp-6);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--paper-border);
}
.engage-path-foot p { font-size: var(--fs-sm); color: var(--text-on-light-muted); margin-bottom: var(--sp-3); }
.engage-path-foot .stack-tags { margin-top: 0; }

.engage-closing {
  text-align: center;
  max-width: 68ch;
  margin: var(--sp-8) auto 0;
}
.engage-closing h3 { font-size: var(--fs-lg); margin-bottom: var(--sp-3); }
.engage-closing p { color: var(--text-on-light-muted); font-size: var(--fs-md); }

/* Horizontal step flow — sized to always fit its row; no scrollbar, no wrapping */
.hflow {
  margin-top: var(--sp-7);
}
.hflow-track {
  display: flex;
  align-items: flex-start;
}
.hflow-step {
  flex: 1 1 0;
  min-width: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-inline: var(--sp-2);
}
.hflow-track--7 .hflow-step { min-width: 110px; }
.hflow-track--7 .hflow-connector { flex-basis: 26px; }
.hflow-track--7 .hflow-node { width: 46px; height: 46px; }
.hflow-track--7 .hflow-node svg { width: 19px; height: 19px; }
.hflow-track--7 .hflow-step h4 { font-size: 12.5px; }
.hflow-track--7 .hflow-step p { font-size: 10.8px; }
.hflow-node {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--blue-100);
  color: var(--blue-600);
  border: 1px solid var(--blue-200);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: var(--sp-3);
  transition: transform var(--dur-med) var(--ease-out);
}
.hflow-node svg { width: 22px; height: 22px; }
.hflow-node--live {
  background: rgba(47, 217, 145, 0.14);
  color: var(--ok-500);
  border-color: rgba(47, 217, 145, 0.4);
  box-shadow: 0 0 0 0 rgba(47, 217, 145, 0.55);
  animation: status-live 2.2s ease-out infinite;
}
.hflow-step-num {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-on-light-faint);
  letter-spacing: 0.05em;
  margin-bottom: 0.3rem;
}
.hflow-step h4 { font-size: var(--fs-sm); margin-bottom: 0.35rem; line-height: 1.25; }
.hflow-step p { font-size: 11.5px; color: var(--text-on-light-muted); line-height: 1.4; }
.hflow-connector {
  flex: 0 0 42px;
  align-self: stretch;
  position: relative;
  display: flex;
  align-items: flex-start;
  padding-top: 26px;
}

/* Horizontal counterparts of .flow-line / .flow-dot (which are vertical) */
.flow-line-h {
  position: absolute;
  left: -6px; right: -6px;
  top: 50%;
  height: 2px;
  transform: translateY(-50%);
  overflow: hidden;
  background: var(--paper-border);
  border-radius: 2px;
}
.flow-dot-h {
  position: absolute;
  top: 50%;
  left: -20%;
  width: 8px; height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--blue-500);
  box-shadow: 0 0 10px 3px rgba(20, 120, 199, 0.55);
  animation: flow-right 1.8s linear infinite;
}
@keyframes flow-right {
  0% { left: -20%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { left: 110%; opacity: 0; }
}

/* Tablet — steps flex to share whatever width is available instead of a fixed
   basis, so the row always fits exactly (never overflows, never needs a
   scrollbar) all the way down to where it switches to a vertical list. */
@media (max-width: 1300px) {
  .hflow-step { flex: 1 1 0; min-width: 88px; }
  .hflow-connector { flex: 0 0 24px; }
  .hflow-node { width: 40px; height: 40px; }
  .hflow-node svg { width: 17px; height: 17px; }
  .hflow-step h4 { font-size: 11.5px; }
  .hflow-step p { font-size: 10px; }
  .hflow-track--7 .hflow-step { min-width: 64px; }
  .hflow-track--7 .hflow-connector { flex-basis: 14px; }
  .hflow-track--7 .hflow-node { width: 30px; height: 30px; }
  .hflow-track--7 .hflow-node svg { width: 13px; height: 13px; }
  .hflow-track--7 .hflow-step h4 { font-size: 10px; }
  .hflow-track--7 .hflow-step p { font-size: 8.5px; }
}

@media (max-width: 640px) {
  .engage-path { padding: var(--sp-5); }
}

/* Small / mobile — a single row can no longer stay legible, so the flow
   becomes a vertical list instead of shrinking further or scrolling. */
@media (max-width: 700px) {
  .hflow-track {
    flex-direction: column;
    align-items: stretch;
  }
  .hflow-step {
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: 52px 1fr;
    column-gap: 1rem;
    row-gap: 0.2rem;
    align-items: start;
    text-align: left;
    padding-inline: 0;
    width: 100%;
  }
  .hflow-node {
    grid-column: 1;
    grid-row: 1 / span 3;
    margin-bottom: 0;
    align-self: start;
  }
  .hflow-step-num,
  .hflow-step h4,
  .hflow-step p {
    grid-column: 2;
  }
  .hflow-connector {
    flex: 0 0 28px;
    align-self: stretch;
    width: 100%;
    padding-top: 0;
  }
  .flow-line-h {
    left: 25px; right: auto; top: -6px; bottom: -6px;
    width: 3px; height: auto;
    transform: none;
    background: var(--blue-100);
  }
  .flow-dot-h {
    left: 25px; top: -20%;
    width: 11px; height: 11px;
    margin-left: -5.5px; margin-top: 0;
    box-shadow: 0 0 14px 4px rgba(20, 120, 199, 0.7);
    animation-name: flow-down;
    animation-duration: 1.3s;
  }
  /* Full-size icons for both variants once stacked — width is no longer a constraint */
  .hflow-track--7 .hflow-step { flex-basis: auto; }
  .hflow-track--7 .hflow-connector { flex-basis: 28px; }
  .hflow-track--7 .hflow-node { width: 52px; height: 52px; }
  .hflow-track--7 .hflow-node svg { width: 22px; height: 22px; }
  .hflow-track--7 .hflow-step h4 { font-size: var(--fs-sm); }
  .hflow-track--7 .hflow-step p { font-size: 11.5px; }
}

/* ==========================================================================
   Why Oneovate — principles
   ========================================================================== */
.principle-grid { grid-template-columns: repeat(3, 1fr); }
.value-card {
  position: relative;
  padding: var(--sp-6) 0 0;
  border-top: 1px solid var(--paper-border);
}
.value-card::before {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, var(--blue-600), var(--blue-300));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.85s var(--ease-out);
}
.value-card.is-visible::before,
.no-js .value-card::before { transform: scaleX(1); }
.value-card::after {
  content: "";
  position: absolute;
  top: -6px; left: 0;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--paper-0);
  border: 2px solid var(--paper-border);
  transform: scale(0.75);
  transition: border-color 0.4s var(--ease-out) 0.3s, background 0.4s var(--ease-out) 0.3s, transform 0.4s var(--ease-out) 0.3s;
}
.value-card.is-visible::after,
.no-js .value-card::after {
  border-color: var(--blue-600);
  background: var(--blue-600);
  transform: scale(1);
}
.value-card .num { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--blue-600); display: block; margin-top: var(--sp-3); margin-bottom: var(--sp-3); }
.value-card h3 { font-size: var(--fs-md); margin-bottom: 0.6rem; }
.value-card p { color: var(--text-on-light-muted); font-size: var(--fs-sm); }
/* ==========================================================================
   Insights
   ========================================================================== */
.insight-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-5);
  border-radius: var(--radius-md);
  border: 1px solid var(--paper-border);
  height: 100%;
  transition: border-color var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out), transform var(--dur-med) var(--ease-out);
}
.insight-card:hover { border-color: var(--blue-200); box-shadow: var(--shadow-lifted); transform: translateY(-4px); }
.insight-topic {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--blue-600);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-pill);
  background: var(--blue-100);
}
.insight-card h3 { font-size: var(--fs-md); line-height: 1.3; }
.insight-card p { color: var(--text-on-light-muted); font-size: var(--fs-sm); flex-grow: 1; }

.section--tight { padding-block: calc(var(--section-pad) * 0.62); }

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band {
  background: linear-gradient(120deg, var(--blue-700), var(--blue-600) 55%, #041B3D);
  border-radius: var(--radius-lg);
  padding: var(--sp-7) var(--sp-6);
  color: #fff;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(60% 90% at 100% 0%, black, transparent 75%);
  mask-image: radial-gradient(60% 90% at 100% 0%, black, transparent 75%);
}
.cta-band h2 { font-size: var(--fs-xl); max-width: 20ch; position: relative; }
.cta-band p { color: rgba(255,255,255,0.85); margin-top: var(--sp-2); max-width: 46ch; position: relative; }
.cta-band-actions { display: flex; gap: var(--sp-3); flex-wrap: wrap; position: relative; }
.cta-band .btn--ghost-dark { background: rgba(255,255,255,0.12); }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-layout { display: grid; grid-template-columns: 1fr; gap: var(--sp-7); }
@media (min-width: 1000px) { .contact-layout { grid-template-columns: 0.85fr 1.15fr; } }

.contact-feature-list { display: flex; flex-direction: column; gap: var(--sp-4); margin-top: var(--sp-6); }
.contact-feature {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-3);
  border-radius: var(--radius-md);
  border: 1px solid var(--ink-border);
  background: rgba(255,255,255,0.02);
}
.contact-feature .cap-icon { background: rgba(11, 79, 174,0.14); color: var(--blue-400); }
.contact-feature .label { display: block; font-size: var(--fs-xs); color: var(--text-on-dark-faint); }
.contact-feature .value { display: block; font-weight: 600; color: var(--text-on-dark); }

.service-areas { margin-top: var(--sp-6); }
.service-areas-label {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-on-dark-faint);
  margin-bottom: var(--sp-3);
}
.service-areas .stack-tags { margin-top: 0; }

.form-card {
  background: var(--ink-900);
  border: 1px solid var(--ink-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
}
.form-card h3 { font-size: var(--fs-lg); margin-bottom: 0.4rem; }
.form-card .form-intro { color: var(--text-on-dark-muted); font-size: var(--fs-sm); margin-bottom: var(--sp-5); }

.field-row { display: grid; gap: var(--sp-3); grid-template-columns: 1fr; margin-bottom: var(--sp-3); }
@media (min-width: 560px) { .field-row.two { grid-template-columns: 1fr 1fr; } }

.field label {
  display: block;
  font-size: var(--fs-xs);
  color: var(--text-on-dark-faint);
  margin-bottom: 0.4rem;
  font-weight: 500;
}
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--ink-950);
  border: 1px solid var(--ink-border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  color: var(--text-on-dark);
  font-size: var(--fs-sm);
  transition: border-color var(--dur-fast) var(--ease-out);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-on-dark-faint); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue-500); }
.field textarea { resize: vertical; min-height: 110px; }
.field select { appearance: none; background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='%23A7ACC9' d='M5.5 7.5l4.5 4.5 4.5-4.5'/%3e%3c/svg%3e"); background-repeat: no-repeat; background-position: right 0.9rem center; background-size: 16px; padding-right: 2.4rem; }

.honeypot-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: var(--fs-xs); color: var(--text-on-dark-faint); margin-top: var(--sp-3); text-align: center; }
.form-status { font-size: var(--fs-sm); margin-top: var(--sp-3); text-align: center; display: none; }
.form-status.is-visible { display: block; }
.form-status.success { color: var(--ok-500); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--paper-0); color: var(--text-on-light-muted); border-top: 1px solid var(--paper-border); }
.footer-top { padding-block: var(--sp-8) var(--sp-7); border-bottom: 1px solid var(--paper-border); }
.footer-grid { display: grid; gap: var(--sp-6); grid-template-columns: 1.3fr repeat(3, 1fr); }
.footer-brand-mark { margin-bottom: var(--sp-4); }
.footer-brand p { font-size: var(--fs-sm); max-width: 34ch; color: var(--text-on-light-faint); }
.footer-social { display: flex; gap: 0.6rem; margin-top: var(--sp-5); }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--paper-border);
  color: var(--text-on-light-muted);
  background: var(--paper-0);
  display: inline-flex; align-items: center; justify-content: center;
  transition: border-color var(--dur-fast), color var(--dur-fast), background var(--dur-fast);
}
.footer-social svg { width: 16px; height: 16px; }
.footer-social a:hover { border-color: var(--blue-500); color: var(--blue-600); background: var(--blue-100); }
.footer-col h4 { font-family: var(--font-body); font-size: var(--fs-sm); font-weight: 600; color: var(--text-on-light); margin-bottom: var(--sp-4); }
.footer-col ul { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col a, .footer-col address { font-size: var(--fs-sm); font-style: normal; color: var(--text-on-light-muted); }
.footer-col a:hover { color: var(--blue-600); }
.footer-bottom { padding-block: var(--sp-4); display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; justify-content: space-between; font-size: var(--fs-xs); color: var(--text-on-light-faint); }
.footer-bottom ul { display: flex; gap: var(--sp-4); }
.footer-bottom a:hover { color: var(--blue-600); }

/* ==========================================================================
   Back to top
   ========================================================================== */
.back-to-top {
  position: fixed;
  right: var(--sp-4);
  bottom: var(--sp-4);
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--ink-950);
  border: 1px solid var(--ink-border);
  color: var(--text-on-dark);
  display: inline-flex; align-items: center; justify-content: center;
  z-index: 60;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity var(--dur-med) var(--ease-out), transform var(--dur-med) var(--ease-out), visibility var(--dur-med);
  box-shadow: var(--shadow-soft);
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top svg { width: 18px; height: 18px; }

/* ==========================================================================
   Reveal-on-scroll
   ========================================================================== */
/* GSAP (assets/js/home.js) owns the actual opacity/transform tweening at runtime via
   inline styles — this rule only prevents a flash-of-visible-content before that JS
   sets its own initial state. No-JS / reduced-motion always wins via the query below. */
[data-reveal], [data-reveal-scale] { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal], [data-reveal-scale] { opacity: 1 !important; transform: none !important; }
}
.no-js [data-reveal], .no-js [data-reveal-scale] { opacity: 1; }

/* ==========================================================================
   Scroll progress
   ========================================================================== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 200;
  background: transparent;
  pointer-events: none;
}
.scroll-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--blue-700), var(--blue-500) 55%, var(--blue-300));
  transform-origin: left center;
  transition: width 0.12s linear;
}
/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1099px) {
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .principle-grid { grid-template-columns: repeat(2, 1fr); }
  .onehub-feature-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .cap-grid { grid-template-columns: 1fr; }
  .principle-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-meta { gap: var(--sp-4); }
  .cta-band { padding: var(--sp-6) var(--sp-4); }
  .diagram-node { flex-basis: 100%; max-width: none; }
  .about-feature-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Solution detail modal
   ========================================================================== */
body.modal-open { overflow: hidden; }

.solution-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-4);
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0s linear var(--dur-med);
}
.solution-modal.is-open { visibility: visible; pointer-events: auto; transition-delay: 0s; }

.solution-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 7, 13, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity var(--dur-med) var(--ease-out);
}
.solution-modal.is-open .solution-modal-backdrop { opacity: 1; }

.solution-modal-panel {
  position: relative;
  width: 100%;
  max-width: 960px;
  max-height: 96vh;
  overflow-y: auto;
  background: var(--paper-0);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lifted);
  padding: var(--sp-5) var(--sp-6) var(--sp-4);
  scrollbar-width: thin;
  scrollbar-color: var(--paper-border) transparent;
}
.solution-modal-panel::-webkit-scrollbar { width: 6px; }
.solution-modal-panel::-webkit-scrollbar-track { background: transparent; }
.solution-modal-panel::-webkit-scrollbar-thumb { background: var(--paper-border); border-radius: 999px; }
.solution-modal-panel::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--blue-600), var(--blue-300));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  transform-origin: left center;
  transform: scaleX(0);
}
.solution-modal.is-open .solution-modal-panel::before {
  transform: scaleX(1);
  transition: transform 0.7s var(--ease-out) 0.15s;
}

.solution-modal-close {
  position: absolute;
  top: var(--sp-4); right: var(--sp-4);
  width: 38px; height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--paper-50);
  border: 1px solid var(--paper-border);
  color: var(--text-on-light-muted);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.solution-modal-close:hover { background: var(--blue-600); color: #fff; transform: rotate(90deg); }
.solution-modal-close svg { width: 16px; height: 16px; }

.solution-modal-head { padding-right: 3rem; margin-bottom: var(--sp-3); }
.solution-modal-head-top { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-2); }
.solution-modal-icon {
  width: 38px; height: 38px;
  flex-shrink: 0;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-100);
  color: var(--blue-600);
}
.solution-modal-icon svg { width: 18px; height: 18px; }
.solution-modal-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-600);
  background: var(--blue-100);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.3rem;
}
.solution-modal-head h3 { font-size: var(--fs-md); }
.solution-modal-summary { color: var(--text-on-light-muted); font-size: 13px; max-width: 68ch; margin-bottom: 0.5rem; line-height: 1.4; }
.solution-modal-meta { display: flex; flex-wrap: wrap; gap: var(--sp-4); }
.solution-modal-meta-chip { font-size: 12px; color: var(--text-on-light-muted); }
.solution-modal-meta-chip strong { color: var(--text-on-light); font-weight: 600; }

.solution-modal-top-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--sp-4);
  margin-top: var(--sp-3);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--paper-border);
  align-items: stretch;
}
.solution-modal-modules h4 {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-on-light-faint);
  margin-bottom: 0.6rem;
}
.modules-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.45rem 1rem;
}
.modules-grid li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 12.5px;
  color: var(--text-on-light-muted);
}
.modules-grid li svg { width: 13px; height: 13px; color: var(--blue-500); flex-shrink: 0; }

.solution-modal-ai {
  display: flex;
  gap: var(--sp-3);
  background: linear-gradient(135deg, rgba(11, 79, 174, 0.08), rgba(20, 120, 199, 0.02));
  border: 1px solid var(--blue-200);
  border-radius: var(--radius-md);
  padding: var(--sp-3);
}
.solution-modal-ai-icon {
  width: 28px; height: 28px;
  flex-shrink: 0;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-600);
  color: #fff;
  animation: ai-pulse 3s ease-in-out infinite;
}
.solution-modal-ai-icon svg { width: 14px; height: 14px; }
.solution-modal-ai-body h4 {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 0.25rem;
}
.solution-modal-ai-body p { font-size: 12px; color: var(--text-on-light-muted); margin-bottom: 0.4rem; line-height: 1.35; }
.solution-modal-ai-body ul { display: flex; flex-direction: column; gap: 0.25rem; }
.solution-modal-ai-body li {
  position: relative;
  padding-left: 1.05rem;
  font-size: 11.5px;
  color: var(--text-on-light-muted);
  line-height: 1.3;
}
.solution-modal-ai-body li::before { content: "→"; position: absolute; left: 0; color: var(--blue-500); }

.solution-modal-body {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
  padding-top: var(--sp-3);
  margin-top: var(--sp-3);
  border-top: 1px solid var(--paper-border);
}
.solution-modal-col h4 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  color: var(--text-on-light-faint);
}
.solution-modal-col h4 svg { width: 14px; height: 14px; }
.solution-modal-col--pros h4,
.solution-modal-col--pros h4 svg { color: var(--ok-500); }
.solution-modal-col--benefits h4,
.solution-modal-col--benefits h4 svg { color: var(--blue-600); }
.solution-modal-col--cons h4,
.solution-modal-col--cons h4 svg { color: #B45309; }
.solution-modal-col ul { display: flex; flex-direction: column; gap: 0.4rem; }
.solution-modal-col li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 12.5px;
  color: var(--text-on-light-muted);
  line-height: 1.35;
}
.solution-modal-col li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.5em;
  width: 6px; height: 6px;
  border-radius: 50%;
}
.solution-modal-col--pros li::before { background: var(--ok-500); }
.solution-modal-col--benefits li::before { background: var(--blue-500); }
.solution-modal-col--cons li::before { background: #B45309; }

.solution-modal-foot {
  margin-top: var(--sp-3);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--paper-border);
  display: flex;
  justify-content: flex-end;
}
.solution-modal-foot .btn { padding: 0.7rem 1.4rem; }

@media (max-width: 900px) {
  .solution-modal-top-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .solution-modal-body { grid-template-columns: 1fr; }
  .solution-modal-panel { padding: var(--sp-5) var(--sp-4) var(--sp-4); max-height: 94vh; }
  .solution-modal-foot { justify-content: stretch; }
  .solution-modal-foot .btn { width: 100%; justify-content: center; }
  .modules-grid { grid-template-columns: 1fr; }
  .solution-modal-ai { flex-direction: column; }
}

/* ==========================================================================
   Section-progress dot nav — fixed, frosted pill so it stays legible
   over both light and dark sections without per-section color-swapping.
   ========================================================================== */
.section-dots {
  position: fixed;
  right: var(--sp-4);
  top: 50%;
  transform: translateY(-50%);
  z-index: 500;
  display: none;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  padding: 0.9rem 0.55rem;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--paper-border);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-soft);
}
@media (min-width: 1240px) { .section-dots { display: flex; } }
.section-dot { position: relative; display: flex; align-items: center; }
.section-dot-mark {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--paper-border-strong, #C7CCE0);
  display: block;
  transition: background var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.section-dot:hover .section-dot-mark { background: var(--blue-300); transform: scale(1.25); }
.section-dot.is-active .section-dot-mark {
  background: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(11, 79, 174, 0.18);
  transform: scale(1.35);
}
.section-dot-label {
  position: absolute;
  right: 100%;
  margin-right: 0.7rem;
  top: 50%;
  transform: translate(6px, -50%);
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.03em;
  color: var(--text-on-light-muted);
  background: var(--paper-0);
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--paper-border);
  box-shadow: var(--shadow-soft);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.section-dot:hover .section-dot-label { opacity: 1; transform: translate(0, -50%); }

/* ==========================================================================
   Trust strip — reuses .cap-card (same hover/accent-bar/3D-tilt treatment)
   ========================================================================== */
.trust-grid { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1099px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .trust-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   FAQ accordion — height animates via CSS grid-template-rows (0fr → 1fr),
   no JS height measurement needed.
   ========================================================================== */
.faq-list { max-width: 820px; margin-inline: auto; display: flex; flex-direction: column; gap: var(--sp-3); }
.faq-item {
  border: 1px solid var(--paper-border);
  border-radius: var(--radius-md);
  background: var(--paper-0);
  transition: border-color var(--dur-fast) var(--ease-out);
}
.faq-item.is-open { border-color: var(--blue-200); }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  background: none;
  border: none;
  text-align: left;
  font: inherit;
  color: var(--text-on-light);
  font-weight: 600;
  font-size: var(--fs-base);
  cursor: pointer;
}
.faq-question svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--blue-500); transition: transform var(--dur-med) var(--ease-out); }
.faq-item.is-open .faq-question svg { transform: rotate(180deg); }
.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur-med) var(--ease-out);
}
.faq-answer > div { overflow: hidden; }
.faq-answer p { padding: 0 var(--sp-5) var(--sp-4); color: var(--text-on-light-muted); font-size: var(--fs-sm); line-height: 1.6; }
.faq-item.is-open .faq-answer { grid-template-rows: 1fr; }

/* ==========================================================================
   Legal pages (Privacy Policy / Terms of Service)
   ========================================================================== */
.legal-hero {
  padding-top: calc(var(--header-h) + var(--sp-6));
  padding-bottom: var(--sp-5);
  border-bottom: 1px solid var(--paper-border);
}
.legal-updated {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-on-light-faint);
  margin-top: var(--sp-3);
}
.legal-body { max-width: 760px; padding-block: var(--sp-7); }
.legal-body h2 { font-size: var(--fs-lg); margin-top: var(--sp-7); margin-bottom: var(--sp-3); }
.legal-body h2:first-of-type { margin-top: 0; }
.legal-body h3 { font-size: var(--fs-base); margin-top: var(--sp-5); margin-bottom: var(--sp-2); }
.legal-body p { color: var(--text-on-light-muted); font-size: var(--fs-sm); line-height: 1.7; margin-bottom: var(--sp-3); }
.legal-body ul { margin: var(--sp-3) 0 var(--sp-4); padding-left: 1.3rem; }
.legal-body li { color: var(--text-on-light-muted); font-size: var(--fs-sm); line-height: 1.7; margin-bottom: 0.5rem; }
.legal-body a { color: var(--blue-600); text-decoration: underline; text-underline-offset: 2px; }

/* ==========================================================================
   3D tilt — final polish: specular glare + depth separation + dynamic shadow
   (rotation/lift itself is driven by GSAP in home.js; this is the CSS half)
   ========================================================================== */
.cap-card, .solution-card, .insight-card {
  --glare-x: 50%;
  --glare-y: 50%;
  transform-style: preserve-3d;
}
.cap-card::after, .solution-card::after, .insight-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at var(--glare-x) var(--glare-y), rgba(255, 255, 255, 0.4), transparent 55%);
  opacity: 0;
  transition: opacity var(--dur-fast) var(--ease-out);
  pointer-events: none;
}
.cap-card:hover::after, .solution-card:hover::after, .insight-card:hover::after { opacity: 0.7; }
.manifest-card, .onehub-panel { transform-style: preserve-3d; }

/* ==========================================================================
   Section seams — the previous/next section's actual background color is
   read once at load (home.js) and used here, so the blend is always correct
   regardless of which light tone precedes a dark section.
   ========================================================================== */
.section--dark { position: relative; }
.section--dark > .container { position: relative; z-index: 1; }
.section--dark::before,
.section--dark::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 70px;
  pointer-events: none;
  z-index: 0;
}
.section--dark::before { top: 0; background: linear-gradient(to bottom, var(--seam-from, transparent), transparent); }
.section--dark::after { bottom: 0; background: linear-gradient(to top, var(--seam-to, transparent), transparent); }

/* Subtle grain on dark sections — the difference between a flat color fill
   and a surface that feels like a considered material. */
.section--dark {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  background-blend-mode: overlay;
}

/* ==========================================================================
   Atom background — an ambient orbital motif for a section's empty space.
   Three tilted orbit rings, each spinning at its own speed, a soft nucleus
   glow at center. Decorative only: aria-hidden, z-index 0, never competes
   with foreground content.
   ========================================================================== */
.atom-bg {
  position: absolute;
  bottom: -6%;
  left: 50%;
  transform: translateX(-50%);
  width: min(54vw, 760px);
  height: min(54vw, 760px);
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}
.atom-orbit ellipse {
  fill: none;
  stroke: var(--blue-400);
  stroke-width: 1;
  opacity: 0.28;
}
.atom-orbit-1 { transform-origin: 300px 300px; animation: hv-rotate 26s linear infinite; }
.atom-orbit-2 { transform-origin: 300px 300px; animation: hv-rotate-reverse 34s linear infinite; }
.atom-orbit-3 { transform-origin: 300px 300px; animation: hv-rotate 42s linear infinite; }
.atom-electron {
  fill: var(--blue-300);
  filter: drop-shadow(0 0 6px rgba(20, 120, 199, 0.85));
}
.atom-nucleus {
  fill: var(--blue-400);
  filter: drop-shadow(0 0 10px rgba(20, 120, 199, 0.7));
}
.atom-nucleus-glow {
  fill: rgba(20, 120, 199, 0.22);
  animation: atom-pulse 3.2s ease-in-out infinite;
}
@keyframes atom-pulse {
  0%, 100% { r: 30px; opacity: 0.6; }
  50% { r: 42px; opacity: 0.2; }
}
@media (max-width: 900px) {
  .atom-bg { opacity: 0.35; width: 90vw; height: 90vw; bottom: -4%; }
}
