/**
 * Homepage styles — based on sanjal-enterprises-homepage-preview.html
 * with readability upgrades (stronger contrast, larger type, section bands).
 * Scoped under body.home / html.theme-* so nothing leaks to other pages.
 */

/* ============ THEME TOKENS ============ */
body.home {
  --bg: #F8F9FB; --bg-soft: #EEF1F6; --panel: #FFFFFF; --panel-alt: #E8ECF3;
  --text: #0A1428; --text-body: rgba(10,20,40,.90); --text-mute: rgba(10,20,40,.70);
  --accent: #0B948C; --accent-soft: rgba(11,148,140,.10); --accent-line: rgba(11,148,140,.28);
  --gold: #8A6818; --gold-soft: rgba(150,115,30,.12);
  --hair: rgba(10,20,40,.12); --hair-2: rgba(10,20,40,.18);
  --nav-bg: rgba(248,249,251,.92);
  --glow-btn: 0 6px 20px rgba(11,148,140,.22);
  --node-glow: drop-shadow(0 2px 3px rgba(10,20,40,.3));
  --node-glow-gold: drop-shadow(0 2px 3px rgba(10,20,40,.22));
  --vignette-1: rgba(248,249,251,.97); --vignette-2: rgba(248,249,251,.55);
  --card-shadow: 0 1px 2px rgba(10,20,40,.04), 0 12px 28px rgba(10,20,40,.055);
  --card-shadow-hover: 0 6px 14px rgba(10,20,40,.06), 0 22px 44px rgba(10,20,40,.09);
  --btn-primary-text: #FFFFFF;
  --scrollbar: rgba(10,20,40,.2);
  --maxw: 1280px; --radius: 18px; --radius-sm: 8px;
  --display: 'General Sans','IBM Plex Sans',system-ui,sans-serif;
  --body-font: 'IBM Plex Sans',system-ui,sans-serif;
  --mono: 'IBM Plex Mono',ui-monospace,monospace;
  --spot-bg: #080D1C; --spot-bg-2: #0D1730; --spot-text: #F7F8FA; --spot-mute: rgba(247,248,250,.78);
  --spot-hair: rgba(247,248,250,.14); --spot-accent: #14D9CE; --spot-gold: #D8B15E;
}

@media (prefers-color-scheme: dark) {
  html:not(.theme-light) body.home {
    --bg: #080D1C; --bg-soft: #0C1428; --panel: #0F1833; --panel-alt: #141E3F;
    --text: #F7F8FA; --text-body: rgba(247,248,250,.88); --text-mute: rgba(247,248,250,.72);
    --accent: #14D9CE; --accent-soft: rgba(20,217,206,.12); --accent-line: rgba(20,217,206,.28);
    --gold: #D8B15E; --gold-soft: rgba(216,177,94,.14);
    --hair: rgba(247,248,250,.12); --hair-2: rgba(247,248,250,.2);
    --nav-bg: rgba(8,13,28,.88);
    --glow-btn: 0 0 26px rgba(20,217,206,.4);
    --node-glow: drop-shadow(0 0 6px rgba(20,217,206,.75));
    --node-glow-gold: drop-shadow(0 0 6px rgba(216,177,94,.6));
    --vignette-1: rgba(8,13,28,.96); --vignette-2: rgba(8,13,28,.55);
    --card-shadow: none; --card-shadow-hover: 0 0 0 1px var(--accent-line), 0 20px 40px rgba(0,0,0,.35);
    --btn-primary-text: #061014;
    --scrollbar: rgba(247,248,250,.2);
  }
}
html.theme-dark body.home {
  --bg: #080D1C; --bg-soft: #0C1428; --panel: #0F1833; --panel-alt: #141E3F;
  --text: #F7F8FA; --text-body: rgba(247,248,250,.88); --text-mute: rgba(247,248,250,.72);
  --accent: #14D9CE; --accent-soft: rgba(20,217,206,.12); --accent-line: rgba(20,217,206,.28);
  --gold: #D8B15E; --gold-soft: rgba(216,177,94,.14);
  --hair: rgba(247,248,250,.12); --hair-2: rgba(247,248,250,.2);
  --nav-bg: rgba(8,13,28,.88);
  --glow-btn: 0 0 26px rgba(20,217,206,.4);
  --node-glow: drop-shadow(0 0 6px rgba(20,217,206,.75));
  --node-glow-gold: drop-shadow(0 0 6px rgba(216,177,94,.6));
  --vignette-1: rgba(8,13,28,.96); --vignette-2: rgba(8,13,28,.55);
  --card-shadow: none; --card-shadow-hover: 0 0 0 1px var(--accent-line), 0 20px 40px rgba(0,0,0,.35);
  --btn-primary-text: #061014;
  --scrollbar: rgba(247,248,250,.2);
}
html.theme-light body.home {
  --bg: #F8F9FB; --bg-soft: #EEF1F6; --panel: #FFFFFF; --panel-alt: #E8ECF3;
  --text: #0A1428; --text-body: rgba(10,20,40,.90); --text-mute: rgba(10,20,40,.70);
  --accent: #0B948C; --accent-soft: rgba(11,148,140,.10); --accent-line: rgba(11,148,140,.28);
  --gold: #8A6818; --gold-soft: rgba(150,115,30,.12);
  --hair: rgba(10,20,40,.12); --hair-2: rgba(10,20,40,.18);
  --nav-bg: rgba(248,249,251,.92);
  --glow-btn: 0 6px 20px rgba(11,148,140,.22);
  --node-glow: drop-shadow(0 2px 3px rgba(10,20,40,.3));
  --node-glow-gold: drop-shadow(0 2px 3px rgba(10,20,40,.22));
  --vignette-1: rgba(248,249,251,.97); --vignette-2: rgba(248,249,251,.55);
  --card-shadow: 0 1px 2px rgba(10,20,40,.04), 0 12px 28px rgba(10,20,40,.055);
  --card-shadow-hover: 0 6px 14px rgba(10,20,40,.06), 0 22px 44px rgba(10,20,40,.09);
  --btn-primary-text: #FFFFFF;
  --scrollbar: rgba(10,20,40,.2);
}

body.home {
  margin: 0; background: var(--bg); color: var(--text-body);
  font-family: var(--body-font); font-size: 16.5px; line-height: 1.68; font-weight: 400;
  -webkit-font-smoothing: antialiased;
  transition: background-color .35s ease, color .35s ease;
}
body.home h1, body.home h2, body.home h3, body.home h4 {
  font-family: var(--display); color: var(--text); margin: 0; line-height: 1.12;
  letter-spacing: -0.022em; font-weight: 700;
}
body.home h3, body.home h4 { font-weight: 600; }
body.home p { margin: 0; }
body.home a { color: inherit; text-decoration: none; }
body.home a:hover { text-decoration: none; }
body.home ul { margin: 0; padding: 0; list-style: none; }
body.home section { padding: 110px 32px; position: relative; background: var(--bg); }
/* Alternating section bands for clearer visual rhythm */
body.home main > section:nth-of-type(even) { background: var(--bg-soft); }
body.home main > section.hero { background: var(--bg); }
body.home main > section.ai-spotlight {
  background-color: var(--spot-bg);
  background-image:
    linear-gradient(rgba(247,248,250,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247,248,250,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  /* Module 03 frame — teal/navy borders + depth so it reads apart from light bands */
  border-block: 1px solid rgba(20,217,206,.32);
  box-shadow:
    0 -28px 56px rgba(8,13,28,.22),
    0 28px 56px rgba(8,13,28,.22),
    inset 0 1px 0 rgba(20,217,206,.14),
    inset 0 -1px 0 rgba(216,177,94,.10);
  z-index: 1;
}
@media (max-width: 600px) {
  body.home main > section.ai-spotlight {
    box-shadow:
      0 -16px 32px rgba(8,13,28,.18),
      0 16px 32px rgba(8,13,28,.18),
      inset 0 1px 0 rgba(20,217,206,.12),
      inset 0 -1px 0 rgba(216,177,94,.08);
  }
}
body.home .wrap { max-width: var(--maxw); margin: 0 auto; position: relative; }
body.home .mono { font-family: var(--mono); }
body.home ::selection { background: var(--accent); color: var(--bg); }
body.home::-webkit-scrollbar { width: 9px; }
body.home::-webkit-scrollbar-thumb { background: var(--scrollbar); border-radius: 6px; }

/* Shared .site-header is used on home (same chrome as interior pages).
   Theme tokens color the sticky bar; do not collapse .topbar into a 3px strip. */
body.home .site-header {
  background: var(--nav-bg);
  border-bottom-color: var(--hair);
}
/* Scroll-progress accent along the header bottom edge (driven by home.js).
   Grows left→right on scroll down; shrinks right→left on scroll up. */
body.home .site-header::before {
  content: "";
  position: absolute;
  left: 0;
  right: auto;
  top: auto;
  bottom: 0;
  width: 100%;
  height: 3px;
  display: block;
  background: linear-gradient(90deg, var(--accent), var(--gold), var(--accent));
  background-size: 200% 100%;
  transform: scaleX(var(--home-scroll-progress, 0));
  transform-origin: left center;
  will-change: transform;
  pointer-events: none;
  z-index: 5;
  animation: home-shimmer 7s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  body.home .site-header::before { animation: none; }
}
body.home .site-header .topbar a,
body.home .site-header .topbar-search-toggle,
body.home .site-header .menu > li > a,
body.home .site-header .menu-trigger {
  color: var(--text-mute, var(--text-body));
}
body.home .site-header .menu > li > a:hover,
body.home .site-header .menu > li > a.active,
body.home .site-header .menu-trigger:hover,
body.home .site-header .menu-trigger[aria-expanded="true"],
body.home .site-header .topbar a:hover,
body.home .site-header .topbar-search-toggle:hover {
  color: var(--accent);
}
body.home .site-header .brand { color: var(--text); }
@keyframes home-shimmer { to { background-position: 200% 0; } }

body.home .eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-mute); margin-bottom: 16px; display: block; font-weight: 500; }
body.home .sys-label { font-family: var(--mono); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); display: flex; align-items: center; gap: 10px; margin-bottom: 22px; font-weight: 600; }
body.home .sys-label .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); flex-shrink: 0; }
body.home .sys-label .rule { flex: 0 0 40px; height: 1px; background: var(--accent-line); }
body.home .section-head { max-width: 640px; margin-bottom: 52px; }
body.home .section-head h2 { font-size: clamp(30px,3.8vw,46px); margin-bottom: 16px; font-weight: 700; }
body.home .section-head p { color: var(--text-body); font-size: 18px; font-weight: 500; line-height: 1.65; }

body.home .btn { display: inline-flex; align-items: center; gap: 9px; font-family: var(--body-font); font-weight: 600; font-size: 15.5px; padding: 15px 28px; border-radius: var(--radius-sm); border: 1px solid transparent; cursor: pointer; transition: all .18s ease; }
body.home .btn-primary { background: var(--accent); color: var(--btn-primary-text); font-weight: 700; box-shadow: var(--card-shadow); }
body.home .btn-primary:hover { box-shadow: var(--glow-btn); transform: translateY(-1px); }
body.home .btn-line { border-color: var(--hair-2); color: var(--text); font-weight: 600; }
body.home .btn-line:hover { border-color: var(--gold); color: var(--gold); }
body.home .btn-sm { padding: 11px 18px; font-size: 13.5px; }

body.home .hud { position: fixed; z-index: 40; font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; color: var(--text-mute); pointer-events: none; }
body.home .hud-tl { top: 20px; left: 18px; } body.home .hud-tr { top: 20px; right: 18px; text-align: right; }
body.home .hud-bl { bottom: 14px; left: 18px; } body.home .hud-br { bottom: 14px; right: 18px; text-align: right; }
@media (max-width: 760px) { body.home .hud { display: none; } }

body.home .site-header .brand .brand-logo { display: inline-flex; align-items: center; line-height: 0; }
body.home .site-header .brand .brand-logo img { height: 34px; width: auto; max-height: 34px; max-width: min(180px, 52vw); }
body.home .site-header .brand .brand-logo .brand-logo__light { display: none; }
body.home .theme-toggle { width: 36px; height: 36px; border-radius: var(--radius-sm); border: 1px solid var(--hair-2); background: none; color: var(--text); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: border-color .18s ease, color .18s ease; padding: 0; flex-shrink: 0; }
body.home .theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
body.home .theme-toggle svg { width: 16px; height: 16px; }
body.home .site-header .nav-ctas .btn-ghost { color: var(--text); border-color: var(--hair-2); }
body.home .site-header .nav-ctas .btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* Theme-aware chrome: keep menu structure identical; fix light-on-light / dark-on-dark. */
body.home .site-header .nav-toggle {
  color: var(--text);
  border-color: var(--hair-2);
}
body.home .site-header .nav-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
}
body.home .site-header .nav-search-toggle {
  color: var(--text);
  border-color: var(--hair-2);
}
body.home .site-header .nav-search-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
}
@media (max-width: 900px) {
  body.home .main-nav {
    background: var(--bg-soft, var(--bg));
    border-left-color: var(--hair);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.28);
  }
}
body.home .mega-panel,
body.home .dropdown-panel {
  background: var(--panel);
  border-color: var(--hair);
  box-shadow: var(--card-shadow-hover);
}
body.home .mega-panel__heading {
  color: var(--gold);
}
body.home .mega-panel__col a,
body.home .dropdown-panel a {
  color: var(--text-body);
}
body.home .mega-panel__col a:hover,
body.home .dropdown-panel a:hover {
  background: var(--accent-soft);
  color: var(--text);
  box-shadow: inset 3px 0 0 var(--accent);
}
body.home .mega-panel__link-desc {
  color: var(--text-mute);
}
body.home .search-panel {
  background: var(--panel);
  border-bottom-color: var(--hair);
}
body.home .search-panel__form input {
  background: var(--bg-soft);
  border-color: var(--hair);
  color: var(--text);
}
body.home .search-panel__form input::placeholder {
  color: var(--text-mute);
}
body.home .search-panel__form input:focus,
body.home .search-panel__form input:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
body.home .search-panel__form button {
  background: var(--accent);
  color: var(--btn-primary-text);
}
body.home .cookie-consent {
  background: var(--panel);
  border-color: var(--hair);
  color: var(--text-body);
  box-shadow: var(--card-shadow-hover);
}
body.home .cookie-consent a {
  color: var(--accent);
}
body.home .cookie-consent .btn-ghost {
  color: var(--text);
  border-color: var(--hair-2);
}
body.home .cookie-consent .btn-ghost:hover {
  color: var(--gold);
  border-color: var(--gold);
}
body.home .foot-newsletter input[type="email"] {
  background: var(--panel);
  border-color: var(--hair-2);
  color: var(--text);
}
body.home .foot-newsletter input[type="email"]::placeholder {
  color: var(--text-mute);
}
body.home .foot-newsletter input[type="email"]:focus,
body.home .foot-newsletter input[type="email"]:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
body.home .foot-newsletter .field-error {
  color: #f07178;
}
body.home .foot-newsletter .form-status.success {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent-line);
}
body.home .foot-newsletter .form-status.error {
  background: rgba(229, 72, 77, 0.12);
  color: #f07178;
  border-color: rgba(229, 72, 77, 0.35);
}
body.home .subscribe-panel__form input[type="email"]:focus,
body.home .subscribe-panel__form input[type="email"]:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
body.home .subscribe-panel__form button {
  background: var(--accent);
  color: var(--btn-primary-text);
}
body.home .subscribe-panel .field-error {
  color: #f07178;
}
body.home .subscribe-panel .form-status.success {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent-line);
}
body.home .subscribe-panel .form-status.error {
  background: rgba(229, 72, 77, 0.12);
  color: #f07178;
  border-color: rgba(229, 72, 77, 0.35);
}

/* ---------- HERO ---------- */
/* Tall first composition: ~115svh under the sticky nav (desktop).
   Short / mobile breakpoints ease back toward one viewport so empty scroll stays modest. */
body.home {
  --home-nav-offset: 96px;
}
body.home .hero {
  position: relative;
  box-sizing: border-box;
  min-height: calc(115svh - var(--home-nav-offset));
  height: auto;
  max-height: none;
  display: flex;
  align-items: center;
  padding: clamp(16px, 3.2vh, 40px) clamp(20px, 3.5vw, 40px) clamp(44px, 6.5vh, 64px) !important;
  overflow: hidden;
  background: var(--bg) !important;
  background-image: none !important;
  color: var(--text-body) !important;
}
body.home .hero::after { display: none !important; content: none !important; }
body.home .hero h1 {
  max-width: none;
  color: var(--text) !important;
  font-size: clamp(2rem, 3.2vh + 2.2vw, 4.6rem) !important;
  line-height: 1.04 !important;
  margin-bottom: clamp(10px, 1.8vh, 20px);
  font-weight: 700;
}
body.home .hero h1 .accent { color: var(--accent); }
/* Graph plane — pulled left to tighten mid-gap; fluid insets for tall/short displays. */
body.home .hero .graph-bg {
  position: absolute;
  z-index: 0;
  top: clamp(5%, 1.2vh + 4%, 7%);
  right: clamp(12px, 1.8vw, 40px);
  bottom: clamp(6%, 1.5vh + 5%, 9%);
  left: clamp(26%, 22% + 3.5vw, 32%);
  opacity: .92;
  transition: transform .28s ease-out;
  pointer-events: none;
  overflow: hidden;
}
body.home .hero .graph-bg .capability-graph,
body.home .hero .graph-bg .capability-graph__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0; /* override capability-graph.css 320px floor */
}
body.home .hero .graph-bg .capability-graph__canvas svg {
  width: 100%;
  height: 100%;
  display: block;
}
/* Mid-gap ambient: soft orbits, faint links, teal/gold dots (fills void) */
body.home .hero-ambient {
  position: absolute;
  z-index: 0;
  top: 8%;
  bottom: 10%;
  left: clamp(28%, 26% + 2vw, 34%);
  width: min(26vw, 320px);
  pointer-events: none;
  overflow: visible;
  opacity: .55;
}
body.home .hero-ambient__svg {
  width: 100%;
  height: 100%;
  display: block;
}
body.home .hero-ambient__orbit {
  fill: none;
  stroke: var(--accent-line);
  stroke-width: 1;
  stroke-dasharray: 3 10;
  opacity: .45;
  transform-box: fill-box;
  transform-origin: center;
  animation: hero-ambient-spin 48s linear infinite;
}
body.home .hero-ambient__orbit--b {
  opacity: .32;
  stroke-dasharray: 2 14;
  animation-duration: 36s;
  animation-direction: reverse;
}
body.home .hero-ambient__arc,
body.home .hero-ambient__link {
  fill: none;
  stroke: var(--accent-line);
  stroke-width: 1;
  stroke-linecap: round;
  opacity: .4;
}
body.home .hero-ambient__arc--soft { opacity: .28; stroke-dasharray: 4 8; }
body.home .hero-ambient__link {
  stroke-dasharray: 2 6;
  opacity: .35;
  animation: hero-ambient-pulse 5.5s ease-in-out infinite;
}
body.home .hero-ambient__link--dim {
  opacity: .22;
  animation-delay: -2.2s;
  animation-duration: 7s;
}
body.home .hero-ambient__dot {
  fill: var(--accent);
  opacity: .55;
  animation: hero-ambient-drift 7s ease-in-out infinite;
}
body.home .hero-ambient__dot--gold { fill: var(--gold); opacity: .5; }
body.home .hero-ambient__dot--drift { animation-duration: 9.5s; }
body.home .hero-ambient__dot:nth-child(odd) { animation-delay: -1.4s; }
body.home .hero-ambient__dot:nth-child(3n) { animation-delay: -3.1s; }
@keyframes hero-ambient-spin {
  to { transform: rotate(360deg); }
}
@keyframes hero-ambient-pulse {
  0%, 100% { opacity: .18; }
  50% { opacity: .42; }
}
@keyframes hero-ambient-drift {
  0%, 100% { opacity: .25; transform: translate(0, 0); }
  40% { opacity: .7; transform: translate(4px, -10px); }
  70% { opacity: .45; transform: translate(-3px, -4px); }
}
@media (max-width: 900px) {
  /* Stacked copy + graph: one viewport, grow with content — avoid huge empty 115svh scroll */
  body.home .hero {
    min-height: calc(100svh - var(--home-nav-offset));
    height: auto;
    padding: clamp(20px, 3.5vh, 36px) clamp(18px, 4vw, 28px) clamp(40px, 5vh, 56px) !important;
  }
  body.home .hero .graph-bg {
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    opacity: .38;
  }
  body.home .hero-ambient { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  body.home .hero-ambient__orbit,
  body.home .hero-ambient__link,
  body.home .hero-ambient__dot {
    animation: none;
  }
  body.home .hero-ambient__dot { opacity: .4; }
}
/* Readable labels over the hero graph (stronger than mute, ≥12px) */
body.home .hero .cg-node-label {
  fill: var(--text-body);
  font-size: 12px;
  letter-spacing: 0.05em;
  opacity: 0.95;
}
body.home .cg-node--standard { fill: var(--panel); stroke: var(--accent); }
body.home .cg-node--intersection { fill: var(--gold); stroke: var(--panel); }
body.home .cg-node-halo { fill: var(--accent); }
body.home .cg-node-group--intersection .cg-node-halo { fill: var(--gold); }
body.home .cg-orbit { stroke: var(--accent-line); }
body.home .cg-particle { fill: var(--accent); }
body.home .cg-particle--gold { fill: var(--gold); }
body.home .hero-inner {
  position: relative;
  z-index: 2;
  max-width: min(840px, 56vw);
}
body.home .hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 48% 62% at 16% 42%, var(--vignette-1) 6%, var(--vignette-2) 46%, transparent 74%);
  z-index: 1;
  pointer-events: none;
}
body.home .hero p.lead {
  font-size: clamp(0.95rem, 1.1vh + 0.35vw, 1.15rem);
  color: var(--text-body) !important;
  max-width: 36rem;
  margin-bottom: clamp(14px, 2.4vh, 28px);
  font-weight: 500;
  line-height: 1.55;
}
body.home .hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: clamp(14px, 2.8vh, 32px);
}
body.home .status-strip {
  display: flex;
  gap: clamp(14px, 2vw, 28px);
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: clamp(11px, 1.2vh, 13px);
  color: var(--text-mute);
  font-weight: 500;
}
body.home .status-strip b { color: var(--accent); font-weight: 600; }
body.home .scroll-cue {
  position: absolute;
  bottom: clamp(16px, 3vh, 36px);
  left: clamp(16px, 2.5vw, 32px);
  z-index: 2;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-mute);
  display: flex;
  align-items: center;
  gap: 10px;
}
body.home .scroll-cue .ln {
  width: 1px;
  height: clamp(24px, 4vh, 40px);
  background: linear-gradient(var(--accent), transparent);
}
@media (max-width: 900px) {
  body.home .hero-inner { max-width: 100%; }
  body.home .scroll-cue { bottom: clamp(12px, 2.2vh, 24px); }
}
@media (max-height: 700px) {
  /* Ease off 115svh so short laptops aren’t forced into a tall empty band */
  body.home .hero {
    min-height: calc(105svh - var(--home-nav-offset));
    padding: clamp(10px, 2vh, 24px) clamp(18px, 3vw, 36px) clamp(28px, 4.5vh, 44px) !important;
  }
  body.home .hero .sys-label { margin-bottom: 10px; }
  body.home .hero-ctas { margin-bottom: clamp(10px, 2vh, 20px); }
  body.home .status-strip { gap: 12px 18px; }
  body.home .scroll-cue { display: none; }
}
/* Short laptop: preferred top/bottom + fluid right pull toward copy.
   Tighter left keeps mid-gap bridged; min-width preserves mobile full-bleed. */
@media (max-height: 700px) and (min-width: 901px) {
  body.home .hero .graph-bg {
    top: 5%;
    bottom: 6%;
    right: clamp(40px, 12vw, 200px);
    left: clamp(24%, 22% + 2vw, 30%);
  }
  body.home .hero-inner {
    max-width: min(780px, 54vw);
  }
  body.home .hero-ambient {
    opacity: .4;
    width: min(22vw, 260px);
  }
}
@media (max-height: 560px) {
  body.home .hero {
    min-height: calc(100svh - var(--home-nav-offset));
    padding: clamp(8px, 1.6vh, 16px) clamp(16px, 3vw, 28px) clamp(20px, 3.5vh, 32px) !important;
  }
  body.home .status-strip { display: none; }
  body.home .hero h1 { font-size: clamp(1.75rem, 4.5vh + 1.2vw, 2.8rem) !important; }
  body.home .hero p.lead { margin-bottom: 12px; }
}
@media (max-height: 560px) and (min-width: 901px) {
  body.home .hero .graph-bg {
    top: 3.5%;
    bottom: 4.5%;
    right: clamp(28px, 10vw, 160px);
    left: clamp(22%, 20% + 2vw, 28%);
    opacity: .42;
  }
  body.home .hero-ambient { opacity: .28; }
}
@media (max-height: 560px) and (max-width: 900px) {
  body.home .hero {
    min-height: auto;
    padding-block: clamp(16px, 3vh, 28px) !important;
  }
  body.home .hero .graph-bg { opacity: .28; }
}
/* Scroll-reveal (driven by home.js) */
html.home-reveal-on body.home .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s ease var(--reveal-d, 0ms), transform .55s ease var(--reveal-d, 0ms);
}
html.home-reveal-on body.home .reveal.reveal--soft { transform: translateY(10px); }
html.home-reveal-on body.home .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.home-reveal-on body.home .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- PLATFORM OVERVIEW ---------- */
body.home .split { display: grid; grid-template-columns: 1fr 1px 1fr; gap: 0; }
body.home .split-div { background: linear-gradient(var(--hair), var(--accent-line), var(--hair)); }
body.home .split-side { padding: 0 48px; }
body.home .split-side:first-child { padding-left: 0; }
body.home .split-side:last-child { padding-right: 0; }
body.home .split-idx { font-family: var(--mono); font-size: 13px; color: var(--gold); letter-spacing: .1em; margin-bottom: 16px; display: block; font-weight: 600; }
body.home .split-side h3 { font-size: 28px; margin-bottom: 14px; font-weight: 700; }
body.home .split-side p { color: var(--text-body); font-size: 17px; margin-bottom: 20px; font-weight: 500; line-height: 1.65; }
body.home .split-side a { color: var(--accent); font-weight: 600; font-size: 14.5px; font-family: var(--mono); }
@media (max-width: 900px) { body.home .split { grid-template-columns: 1fr; } body.home .split-div { display: none; } body.home .split-side { padding: 0 !important; margin-bottom: 36px; } }

/* ---------- PRODUCT UNIVERSE — spaced bento ---------- */
body.home .bento { display: grid; grid-template-columns: repeat(4,1fr); grid-auto-rows: minmax(160px, auto); gap: 20px; }
body.home .tile {
  background: var(--panel);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition:
    transform .28s cubic-bezier(.22, 1, .36, 1),
    box-shadow .28s ease,
    border-color .28s ease,
    background-color .28s ease;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: inherit;
}
/* Left accent bar — rises bottom→top on hover */
body.home a.tile::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: bottom center;
  transition: transform .4s cubic-bezier(.33, 1, .68, 1);
  z-index: 2;
  pointer-events: none;
}
body.home a.tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--accent-line);
  background: linear-gradient(180deg, var(--accent-soft) 0%, var(--panel) 42%);
}
body.home a.tile:hover::before { transform: scaleY(1); }
body.home .tile.big { grid-column: span 2; grid-row: span 2; justify-content: space-between; gap: 18px; min-height: 340px; }
body.home .tile.wide { grid-column: span 2; grid-row: span 1; }
@media (max-width: 900px) {
  body.home .bento { grid-template-columns: 1fr 1fr; }
  body.home .tile.big { grid-column: span 2; grid-row: span 1; min-height: 0; }
}
@media (max-width: 600px) {
  body.home .bento { grid-template-columns: 1fr; }
  body.home .tile.big, body.home .tile.wide { grid-column: span 1; }
}
body.home .tile .idx { font-family: var(--mono); font-size: 12px; color: var(--text-mute); position: absolute; top: 22px; right: 24px; font-weight: 500; z-index: 1; }
body.home .tile h4 { font-size: 19px; margin-bottom: 8px; font-weight: 700; }
body.home .tile.big h4 { font-size: 28px; }
body.home .tile p { font-size: 15px; color: var(--text-body); line-height: 1.55; font-weight: 500; }
body.home .tile-glyph { width: 32px; height: 32px; margin-bottom: 16px; }
body.home .tile-glyph svg { width: 100%; height: 100%; display: block; }
body.home .tile.big .tile-glyph { width: 38px; height: 38px; margin-bottom: 12px; }

/* Water-fill icons — outline jar + liquid clipped bottom→top */
body.home .icon-water {
  color: var(--accent);
  display: block;
  flex-shrink: 0;
  position: relative;
}
body.home .icon-water--gold { color: var(--gold); }
body.home .icon-water > svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}
body.home .icon-water__outline {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .42;
}
body.home .icon-water__liquid {
  position: absolute;
  left: 0;
  top: 0;
  fill: currentColor;
  fill-opacity: .55;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  clip-path: inset(100% 0 0 0);
  transition: clip-path .5s cubic-bezier(.33, 1, .68, 1);
}
body.home a.tile:hover .icon-water__liquid,
body.home .sec-card:hover .icon-water__liquid {
  clip-path: inset(0 0 0 0);
}

/* Soft floating orbs — fill empty field without competing with text */
body.home .tile-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(18px);
  opacity: .55;
  z-index: 0;
}
body.home .tile-orb--1 {
  width: 120px;
  height: 120px;
  top: -28px;
  left: -20px;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%);
  animation: tile-orb-drift 9s ease-in-out infinite alternate;
}
body.home .tile-orb--2 {
  width: 90px;
  height: 90px;
  top: 18%;
  right: 8%;
  background: radial-gradient(circle, var(--gold-soft) 0%, transparent 72%);
  animation: tile-orb-drift 11s ease-in-out infinite alternate-reverse;
}
@keyframes tile-orb-drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(10px, 14px) scale(1.08); }
}

body.home .tile-viz {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 110px;
  margin: -4px -8px 0;
  border-radius: calc(var(--radius-sm) + 2px);
  background:
    radial-gradient(ellipse 70% 80% at 50% 45%, var(--accent-soft), transparent 70%),
    linear-gradient(180deg, var(--panel-alt), transparent 85%);
  pointer-events: none;
  position: relative;
  z-index: 1;
}
body.home .tile-viz svg { width: 100%; max-width: 300px; height: auto; display: block; }
body.home .tile-viz .tv-edge { stroke: var(--accent-line); stroke-width: 1.2; fill: none; }
body.home .tile-viz .tv-edge.gold { stroke: var(--gold); stroke-opacity: .45; }
body.home .tile-viz .tv-node { fill: var(--accent); }
body.home .tile-viz .tv-node.gold { fill: var(--gold); }
body.home .tile-viz .tv-label {
  font-family: var(--mono);
  font-size: 9px;
  fill: var(--text-mute);
  letter-spacing: .06em;
  text-anchor: middle;
  font-weight: 600;
}
body.home .tile-body { flex: 0 0 auto; position: relative; z-index: 1; }
body.home .tile-outcomes {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
body.home .tile-outcomes li {
  font-size: 13.5px;
  color: var(--text-mute);
  font-weight: 500;
  line-height: 1.45;
  padding-left: 14px;
  position: relative;
}
body.home .tile-outcomes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: .7;
}
@media (max-width: 900px) {
  body.home .tile-viz { min-height: 96px; }
  body.home .tile.big h4 { font-size: 24px; }
}
@media (max-width: 600px) {
  body.home .tile-viz { min-height: 88px; margin-top: 4px; }
  body.home .tile-viz .tv-label { font-size: 8px; }
  body.home .tile-outcomes li { font-size: 13px; }
  body.home .tile-orb { opacity: .35; }
}
@media (prefers-reduced-motion: reduce) {
  body.home .tile-orb { animation: none; }
  body.home .tile,
  body.home .sol-card,
  body.home .blog-card,
  body.home .sec-card {
    transition: border-color .15s ease, box-shadow .15s ease;
  }
  body.home a.tile:hover,
  body.home a.sol-card:hover,
  body.home a.blog-card:hover,
  body.home .sec-card:hover {
    transform: none;
    background: var(--panel);
  }
  body.home a.tile::before,
  body.home a.sol-card::before,
  body.home a.blog-card::before,
  body.home .sec-card::before,
  body.home .icon-water__liquid {
    transition: none;
  }
  body.home a.tile:hover::before,
  body.home a.sol-card:hover::before,
  body.home a.blog-card:hover::before,
  body.home .sec-card:hover::before {
    transform: scaleY(1);
  }
  body.home a.tile:hover .icon-water__liquid,
  body.home .sec-card:hover .icon-water__liquid {
    clip-path: inset(0 0 0 0);
  }
}

body.home .tile-more { background: var(--panel); border: 1px dashed var(--hair-2); border-radius: var(--radius); padding: 30px; grid-column: span 4; }
@media (max-width: 900px) { body.home .tile-more { grid-column: span 2; } }
@media (max-width: 600px) { body.home .tile-more { grid-column: span 1; } }
body.home .tile-more h4 { font-size: 14px; margin-bottom: 14px; color: var(--text-mute); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-family: var(--mono); }
body.home .chip-row { display: flex; flex-wrap: wrap; gap: 9px; }
body.home .chip { font-size: 14px; border: 1px solid var(--hair-2); border-radius: 100px; padding: 8px 16px; color: var(--text); transition: border-color .15s, color .15s; background: var(--panel); display: inline-block; font-weight: 500; }
body.home .chip:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- AI SUITE — permanent dark spotlight (Module 03) ---------- */
body.home .ai-spotlight {
  color: var(--spot-text);
  overflow: hidden;
}
body.home .ai-spotlight .section-head h2 { color: var(--spot-text); }
body.home .ai-spotlight .section-head p { color: var(--spot-mute); font-size: 18px; }
body.home .ai-spotlight .sys-label { color: var(--spot-accent); }
body.home .ai-spotlight .sys-label .dot { background: var(--spot-accent); box-shadow: 0 0 8px var(--spot-accent); }
body.home .ai-spotlight .sys-label .rule { background: rgba(20,217,206,.3); }
body.home .flow-viz {
  margin: 56px 0 60px; padding: 44px 20px 30px;
  border: 1px solid rgba(20,217,206,.22);
  border-radius: var(--radius);
  background: rgba(255,255,255,.03);
  box-shadow:
    0 12px 36px rgba(0,0,0,.35),
    inset 0 1px 0 rgba(20,217,206,.10);
}
body.home .ai-layers > div {
  border: 1px solid var(--spot-hair);
  border-radius: var(--radius);
  padding: 28px 26px;
  background: rgba(13,23,48,.55);
  box-shadow: 0 10px 28px rgba(0,0,0,.28), inset 0 1px 0 rgba(247,248,250,.06);
}
@media (max-width: 600px) {
  body.home .ai-layers > div { padding: 22px 18px; }
}
body.home .flow-svg { width: 100%; height: auto; display: block; }
body.home .flow-line { stroke: var(--spot-hair); stroke-width: 1.5; fill: none; }
body.home .flow-node circle { fill: var(--spot-bg-2); stroke: var(--spot-accent); stroke-width: 1.6; }
body.home .flow-node.major circle { stroke: var(--spot-gold); fill: var(--spot-bg-2); }
body.home .flow-node text { font-family: var(--mono); font-size: 12px; fill: var(--spot-mute); text-anchor: middle; letter-spacing: .04em; font-weight: 500; }
body.home .flow-dot { fill: var(--spot-accent); filter: drop-shadow(0 0 6px var(--spot-accent)); }
body.home .ai-layers { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 900px) { body.home .ai-layers { grid-template-columns: 1fr; gap: 20px; } }
body.home .tagrow { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
body.home .tag { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; padding: 6px 12px; border-radius: 100px; font-weight: 600; }
body.home .tag-foundation { background: rgba(216,177,94,.14); color: var(--spot-gold); border: 1px solid rgba(216,177,94,.28); }
body.home .tag-app { background: rgba(20,217,206,.12); color: var(--spot-accent); border: 1px solid rgba(20,217,206,.28); }
body.home .ai-layers h3 { font-size: 24px; margin-bottom: 16px; color: var(--spot-text); font-weight: 700; }
body.home .ai-list li { font-size: 16px; color: var(--spot-mute); padding: 14px 0; border-top: 1px solid var(--spot-hair); display: flex; justify-content: space-between; gap: 12px; font-weight: 500; }
body.home .ai-list li:first-child { border-top: none; }
body.home .ai-list b { color: var(--spot-text); font-weight: 700; }
body.home .ai-list span { font-family: var(--mono); font-size: 12px; color: rgba(247,248,250,.72); flex-shrink: 0; font-weight: 500; }
body.home .terminal { background: #050810; border: 1px solid var(--spot-hair); margin-top: 22px; padding: 16px 18px; font-family: var(--mono); font-size: 13px; color: var(--spot-accent); line-height: 1.8; border-radius: var(--radius-sm); }
body.home .terminal .comment { color: rgba(247,248,250,.68); }
body.home .ai-more { font-family: var(--mono); font-size: 13px; color: var(--spot-accent); margin-top: 18px; display: inline-block; font-weight: 600; }

/* ---------- SOLUTIONS / SECURITY / BLOG — spaced cards ---------- */
body.home .card-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); gap: 20px; }
body.home .sol-card,
body.home .blog-card,
body.home .sec-card {
  background: var(--panel);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
  transition:
    transform .28s cubic-bezier(.22, 1, .36, 1),
    box-shadow .28s ease,
    border-color .28s ease,
    background-color .28s ease;
}
body.home a.sol-card::before,
body.home a.blog-card::before,
body.home .sec-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: bottom center;
  transition: transform .4s cubic-bezier(.33, 1, .68, 1);
  pointer-events: none;
}
body.home .sec-card::before { background: var(--gold); }
body.home a.sol-card:hover,
body.home a.blog-card:hover,
body.home .sec-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--accent-line);
  background: linear-gradient(180deg, var(--accent-soft) 0%, var(--panel) 48%);
}
body.home .sec-card:hover { border-color: rgba(138, 104, 24, .35); }
body.home a.sol-card:hover::before,
body.home a.blog-card:hover::before,
body.home .sec-card:hover::before { transform: scaleY(1); }
body.home a.blog-card:hover .readmore { color: var(--accent); }
body.home .sol-card .tag-mini { font-family: var(--mono); font-size: 12px; color: var(--gold); letter-spacing: .08em; font-weight: 600; }
body.home .sol-card h4 { font-size: 20px; margin: 14px 0 10px; font-weight: 700; }
body.home .sol-card p { font-size: 15.5px; color: var(--text-body); font-weight: 500; line-height: 1.6; }
body.home .sec-card { display: flex; gap: 16px; align-items: flex-start; }
body.home .sec-card .icon-water { width: 22px; height: 22px; margin-top: 2px; }
body.home .sec-card h4 { font-size: 16.5px; margin-bottom: 6px; font-weight: 700; }
body.home .sec-card p { font-size: 14.5px; color: var(--text-body); font-weight: 500; line-height: 1.55; }
body.home .blog-card .pill { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); margin-bottom: 14px; display: block; font-weight: 600; }
body.home .blog-card h4 { font-size: 18px; line-height: 1.35; margin-bottom: 12px; font-weight: 700; }
body.home .blog-card span.readmore, body.home .blog-card a { font-size: 13px; color: var(--text-mute); font-family: var(--mono); font-weight: 600; transition: color .25s ease; }

body.home .placeholder-band { border: 1px dashed var(--hair-2); border-radius: var(--radius); padding: 52px; text-align: center; background: var(--panel); }
body.home .placeholder-band h3 { font-size: 24px; margin-bottom: 12px; font-weight: 700; }
body.home .placeholder-band p { color: var(--text-body); font-size: 16.5px; max-width: 520px; margin: 0 auto 24px; font-weight: 500; line-height: 1.65; }

/* ---------- NUMBERS — single panel, no boxed cells ---------- */
body.home .num-panel { border: 1px solid var(--hair); border-radius: var(--radius); background: var(--panel); box-shadow: var(--card-shadow); display: flex; flex-wrap: wrap; }
body.home .num-cell { flex: 1 1 200px; padding: 44px 32px; text-align: center; border-left: 1px solid var(--hair); }
body.home .num-cell:first-child { border-left: none; }
body.home .num-cell .val { font-family: var(--mono); font-size: 48px; font-weight: 600; color: var(--accent); display: block; margin-bottom: 10px; }
body.home .num-cell .lbl { font-size: 13.5px; color: var(--text-mute); font-family: var(--mono); letter-spacing: .04em; font-weight: 500; }
@media (max-width: 700px) { body.home .num-cell { border-left: none; border-top: 1px solid var(--hair); } body.home .num-cell:first-child { border-top: none; } }

body.home .consult { border: 1px solid var(--hair); border-radius: var(--radius); padding: 60px; display: grid; grid-template-columns: 1.3fr .7fr; gap: 36px; align-items: center; background: linear-gradient(135deg, var(--accent-soft), var(--panel)); }
body.home .consult h2 { font-size: 34px; margin-bottom: 16px; font-weight: 700; }
body.home .consult p { color: var(--text-body); font-size: 17px; font-weight: 500; line-height: 1.65; }
body.home .consult ul { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
body.home .consult ul li { font-size: 12.5px; font-family: var(--mono); border: 1px solid var(--hair-2); border-radius: 100px; padding: 7px 15px; color: var(--text); font-weight: 500; background: var(--panel); }
@media (max-width: 900px) { body.home .consult { grid-template-columns: 1fr; } }

body.home .final-cta { text-align: center; border: 1px solid var(--hair); border-radius: var(--radius); padding: 80px 24px; background: radial-gradient(ellipse at 50% 0%, var(--accent-soft), var(--panel) 60%); }
body.home .final-cta h2 { font-size: clamp(32px,4.2vw,50px); margin-bottom: 18px; font-weight: 700; }
body.home .final-cta p { color: var(--text-body); margin-bottom: 34px; font-size: 18px; font-weight: 500; }
body.home .final-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

body.home footer { padding: 70px 32px 30px; border-top: 1px solid var(--hair); background: var(--bg-soft); }
body.home .foot-grid { display: grid; grid-template-columns: 1.4fr repeat(4,1fr); gap: 32px; margin-bottom: 54px; }
body.home .foot-grid h5 { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--gold); margin-bottom: 18px; font-weight: 600; }
body.home .foot-grid li { margin-bottom: 10px; font-size: 14.5px; color: var(--text-body); font-weight: 500; }
body.home .foot-grid li a:hover { color: var(--accent); }
body.home .foot-brand { max-width: 300px; }
body.home .foot-brand .logo { margin-bottom: 14px; line-height: 0; }
body.home .foot-brand .foot-tagline {
  font-size: 13px;
  color: var(--text-body);
  margin: 0 0 10px;
  line-height: 1.5;
  font-weight: 600;
}
body.home .foot-brand .foot-lede {
  font-size: 13px;
  color: var(--text-mute);
  margin: 0;
  line-height: 1.55;
  font-weight: 500;
}
body.home .foot-nap { display: flex; flex-direction: column; gap: 8px; list-style: none; margin: 0; padding: 0; }
body.home .foot-nap li { margin-bottom: 0; font-size: 13px; color: var(--text-mute); }
body.home .foot-nap a { color: var(--text-mute); font-family: var(--mono); font-size: 12px; letter-spacing: .02em; font-weight: 500; }
body.home .foot-nap a:hover { color: var(--accent); }
body.home .foot-newsletter h3 { color: var(--text); }
body.home .foot-newsletter .card-muted { color: var(--text-mute); }
body.home .foot-bottom { border-top: 1px solid var(--hair); padding-top: 26px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 12.5px; font-family: var(--mono); color: var(--text-mute); font-weight: 500; }
@media (max-width: 900px) {
  body.home .foot-grid { grid-template-columns: repeat(2,1fr); }
  body.home .foot-brand { grid-column: 1 / -1; max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  body.home .flow-dot { display: none; }
}
