/* ============================================================
   ENCY — CAM that doesn't fight you.
   Visual refinement pass. Structure / copy / IA locked.
   Brand: ENCY (Green Ocean #00CB9A · Blue Sky #1269D9).
   Type:  Montserrat (display) · Hind Madurai (body) · JetBrains Mono (data).
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Hind+Madurai:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500;600&display=swap");

/* ============================================================
   TOKENS
   ============================================================ */
:root {
  /* ENCY brand */
  --ency-green:        #00cb9a;
  --ency-green-deep:   #00a37c;
  --ency-blue:         #1269d9;
  --ency-blue-deep:    #0f56b3;
  --ency-cobalt:       #6a12d9;
  --ency-orange:       #ffb640;

  /* Dark titanium surface scale (ENCY product) */
  --paper:    #0c0f13;   /* canvas */
  --app:      #11151b;   /* app surface */
  --surf-1:   #161b22;   /* card */
  --surf-2:   #1d2330;   /* raised card / chrome */
  --surf-3:   #232a39;   /* hover */
  --hairline: rgba(255,255,255,0.06);
  --hairline-strong: rgba(255,255,255,0.10);
  --hairline-accent: rgba(0,203,154,0.32);

  /* Foreground scale */
  --ink:      #eef0f4;   /* primary text */
  --ink-2:    #c2c8d2;   /* secondary text */
  --ink-3:    #8b929e;   /* tertiary / labels */
  --ink-4:    #5a626e;   /* faint */
  --muted:    #8b929e;   /* legacy alias */

  --line: var(--hairline-strong);
  --soft: var(--surf-1);
  --quote: var(--surf-1);
  --accent: var(--ency-green);
  --warn: #b06a26;
  --ok:   #2f9f6f;

  /* Type */
  --ff-display: "Montserrat", "Helvetica Neue", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
  --ff-body:    "Hind Madurai", "Helvetica Neue", -apple-system, "Segoe UI", Roboto, system-ui, sans-serif;
  --ff-mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Gradients — restrained, ENCY only */
  --grad-brand:    linear-gradient(90deg, var(--ency-green) 0%, var(--ency-blue) 100%);
  --grad-brand-45: linear-gradient(45deg, var(--ency-green) 0%, var(--ency-blue) 100%);

  /* Shadows */
  --shadow-1: 0 1px 0 rgba(255,255,255,0.03) inset, 0 1px 2px rgba(0,0,0,0.50);
  --shadow-2: 0 1px 0 rgba(255,255,255,0.04) inset, 0 6px 14px rgba(0,0,0,0.45), 0 18px 40px -22px rgba(0,0,0,0.65);
  --shadow-3: 0 1px 0 rgba(255,255,255,0.05) inset, 0 12px 28px rgba(0,0,0,0.55), 0 36px 80px -28px rgba(0,0,0,0.78);
  --glow-green: 0 0 0 1px rgba(0,203,154,0.35), 0 8px 22px -10px rgba(0,203,154,0.55);
}

/* Light theme override */
:root[data-theme="light"] {
  --paper: #f3f4f7;
  --app:   #ffffff;
  --surf-1: #ffffff;
  --surf-2: #f7f8fa;
  --surf-3: #eef0f4;
  --hairline: rgba(20,24,32,0.08);
  --hairline-strong: rgba(20,24,32,0.14);
  --ink:   #13151b;
  --ink-2: #3a414c;
  --ink-3: #6b727e;
  --ink-4: #a1a7b0;
  --muted: #6b727e;
  --line: var(--hairline-strong);
  --soft: var(--surf-2);
}
@media (prefers-color-scheme: light) {
  :root[data-theme="auto"] {
    --paper: #f3f4f7;
    --app:   #ffffff;
    --surf-1: #ffffff;
    --surf-2: #f7f8fa;
    --surf-3: #eef0f4;
    --hairline: rgba(20,24,32,0.08);
    --hairline-strong: rgba(20,24,32,0.14);
    --ink:   #13151b;
    --ink-2: #3a414c;
    --ink-3: #6b727e;
    --ink-4: #a1a7b0;
    --muted: #6b727e;
    --line: var(--hairline-strong);
    --soft: var(--surf-2);
  }
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--ff-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Page-wide subtle radial vignette — gives the dark titanium feel
   without ever reading as a decorative gradient wash. */
body.offer-2 {
  background:
    radial-gradient(120% 60% at 50% -10%, rgba(18,105,217,0.06) 0%, transparent 55%),
    radial-gradient(80% 60% at 50% 110%, rgba(0,203,154,0.04) 0%, transparent 55%),
    var(--paper);
}
:root[data-theme="light"] body.offer-2,
:root[data-theme="auto"] body.offer-2 {
  background: var(--paper);
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] body.offer-2 {
    background:
      radial-gradient(120% 60% at 50% -10%, rgba(18,105,217,0.06) 0%, transparent 55%),
      radial-gradient(80% 60% at 50% 110%, rgba(0,203,154,0.04) 0%, transparent 55%),
      var(--paper);
  }
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(24px, 3vw, 32px) clamp(24px, 4vw, 40px) clamp(72px, 10vh, 112px);
}

/* ============================================================
   NAV
   ============================================================ */
header.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0 18px;
  margin-bottom: clamp(24px, 4vh, 40px);
  border-bottom: 1px solid var(--hairline);
}
header.nav .logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-display);
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 14px;
  color: var(--ink);
}
header.nav .logo-mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
header.nav .logo-mark img {
  display: block;
  height: 28px;
  width: 28px;
  border-radius: 6px;
}
header.nav .logo .wordmark {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  margin-left: -2px;
}
header.nav .logo-mark svg {
  display: block;
  height: 22px;
  width: auto;
}
header.nav .logo .vs {
  color: var(--ink-3);
  font-weight: 400;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0;
  margin: 0 -2px;
  opacity: 0.85;
}
header.nav .logo .fusion {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
}
header.nav > div:last-child,
header.nav .nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* ============================================================
   ENCY BUTTON SYSTEM
   Industrial software-grade material:
     - ENCY green->blue gradient on a deep base
     - 6px corner radius (precise, not pill)
     - Inner top highlight + 1px green hairline frame
     - Soft outer drop + restrained green glow
     - Active press depresses by 1px
   Two scales: .btn (primary, 50px tall) and .cta-mini (compact, 36px).
   ============================================================ */
.cta-mini {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0) 45%, rgba(0,0,0,0.10) 100%),
    linear-gradient(96deg, var(--ency-green) 0%, var(--ency-blue) 100%);
  border: 1px solid rgba(0,203,154,0.60);
  color: #ffffff;
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-shadow: 0 1px 1px rgba(0,0,0,0.25);
  padding: 0 14px;
  min-height: 36px;
  border-radius: 6px;
  cursor: pointer;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.34) inset,
    0 -1px 0 rgba(0,0,0,0.20) inset,
    0 1px 1px rgba(0,0,0,0.30),
    0 4px 12px -6px rgba(0,203,154,0.55);
  transition:
    background-position 220ms ease,
    box-shadow 220ms ease,
    transform 120ms ease,
    border-color 180ms ease;
  background-size: 100% 100%, 220% 100%;
  background-position: 0 0, 0% 0;
}
.cta-mini:hover {
  background-position: 0 0, 35% 0;
  border-color: rgba(0,203,154,0.75);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.36) inset,
    0 -1px 0 rgba(0,0,0,0.20) inset,
    0 2px 2px rgba(0,0,0,0.30),
    0 8px 18px -6px rgba(0,203,154,0.65),
    0 0 0 1px rgba(0,203,154,0.18);
}
.cta-mini:active {
  transform: translateY(1px);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.22) inset,
    0 1px 0 rgba(0,0,0,0.24) inset,
    0 1px 1px rgba(0,0,0,0.30),
    0 3px 8px -6px rgba(0,203,154,0.5);
}
.cta-mini:focus-visible {
  outline: 2px solid var(--ency-green);
  outline-offset: 2px;
}

/* ============================================================
   THEME SWITCH  —  minimal industrial dropdown
   Trigger pill + floating menu. Mono labels, hairline borders,
   compact spacing. No glossy SaaS effects. Reads like a CAM
   application menu, not a marketing site control.
   ============================================================ */
.theme-switch {
  position: relative;
  display: inline-flex;
}

/* Trigger */
.theme-switch-trigger {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surf-1);
  border: 1px solid var(--hairline-strong);
  color: var(--ink-2);
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  padding: 7px 9px 7px 10px;
  min-height: 34px;
  cursor: pointer;
  border-radius: 4px;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}
.theme-switch-trigger:hover {
  background: var(--surf-2);
  border-color: var(--hairline-strong);
  color: var(--ink);
}
.theme-switch-trigger:focus-visible {
  outline: 1px solid var(--ency-green);
  outline-offset: 1px;
}
.theme-switch[data-open="true"] .theme-switch-trigger {
  background: var(--surf-2);
  border-color: rgba(0,203,154,0.45);
  color: var(--ink);
}

/* Icon — only the one matching current state shows */
.theme-switch-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px; height: 14px;
  color: var(--ency-green);
}
.theme-switch-icon .ts-ico { display: none; width: 100%; height: 100%; }
.theme-switch[data-state="auto"]  .ts-ico-system,
.theme-switch[data-state="dark"]  .ts-ico-dark,
.theme-switch[data-state="light"] .ts-ico-light { display: block; }

.theme-switch-label {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink);
  min-width: 42px;
}

.theme-switch-caret {
  width: 10px; height: 10px;
  color: var(--ink-3);
  transition: transform 160ms ease, color 140ms ease;
}
.theme-switch[data-open="true"] .theme-switch-caret {
  transform: rotate(180deg);
  color: var(--ency-green);
}

/* Pulse the trigger briefly after selection */
.theme-switch[data-just-changed] .theme-switch-trigger {
  animation: theme-trigger-pulse 360ms cubic-bezier(.2,.7,.2,1);
}
@keyframes theme-trigger-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(0,203,154,0.0); }
  50%  { box-shadow: 0 0 0 4px rgba(0,203,154,0.18); }
  100% { box-shadow: 0 0 0 0 rgba(0,203,154,0.0); }
}
@media (prefers-reduced-motion: reduce) {
  .theme-switch[data-just-changed] .theme-switch-trigger,
  .theme-switch-caret { animation: none; transition: none; }
}

/* Floating menu */
.theme-switch-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 50;
  min-width: 168px;
  background: var(--surf-1);
  border: 1px solid var(--hairline-strong);
  border-radius: 4px;
  padding: 4px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.04) inset,
    0 8px 24px rgba(0,0,0,0.55),
    0 24px 56px -20px rgba(0,0,0,0.7);
  /* Subtle reveal */
  transform-origin: top right;
  animation: theme-menu-in 140ms cubic-bezier(.2,.7,.2,1);
}
@keyframes theme-menu-in {
  from { opacity: 0; transform: translateY(-4px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0)   scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .theme-switch-menu { animation: none; }
}

/* Menu options */
.theme-switch-option {
  appearance: none;
  -webkit-appearance: none;
  display: grid;
  grid-template-columns: 14px 1fr auto 14px;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: transparent;
  border: 0;
  padding: 8px 10px;
  color: var(--ink-2);
  font-family: var(--ff-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  text-align: left;
  cursor: pointer;
  border-radius: 3px;
  transition: background 120ms ease, color 120ms ease;
}
.theme-switch-option:hover,
.theme-switch-option:focus-visible {
  background: var(--surf-2);
  color: var(--ink);
  outline: none;
}
.theme-switch-option svg:first-of-type {
  width: 14px; height: 14px;
  color: var(--ink-3);
}
.theme-switch-option:hover svg:first-of-type,
.theme-switch-option:focus-visible svg:first-of-type {
  color: var(--ency-green);
}

.theme-switch-option-label {
  font-weight: 500;
  letter-spacing: 0.06em;
}

.theme-switch-option-meta {
  font-family: var(--ff-mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-4);
}

/* Tick — visible only on the active option */
.theme-switch-option-tick {
  width: 14px; height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ency-green);
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 140ms ease, transform 140ms ease;
}
.theme-switch-option-tick svg { width: 100%; height: 100%; }
.theme-switch-option[aria-checked="true"] {
  background: rgba(0,203,154,0.06);
  color: var(--ink);
}
.theme-switch-option[aria-checked="true"] svg:first-of-type {
  color: var(--ency-green);
}
.theme-switch-option[aria-checked="true"] .theme-switch-option-tick {
  opacity: 1;
  transform: scale(1);
}

/* Compact divider between primary modes and System default */
.theme-switch-divider {
  height: 1px;
  margin: 4px 4px;
  background: var(--hairline);
}

/* Mobile — keep dropdown anchored to trigger right edge */
@media (max-width: 480px) {
  .theme-switch-trigger { padding: 7px 8px; }
  .theme-switch-label { min-width: 36px; font-size: 10.5px; }
  .theme-switch-menu { min-width: 156px; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(36px, 6vw, 64px);
  padding: clamp(28px, 5vw, 56px) 0 clamp(24px, 4vw, 40px);
  align-items: center;
}
@media (min-width: 920px) {
  /* Copy column gets more share of the row — image scales down ~15-18%
     and stops competing with the headline. */
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); }
}

.hero-copy {
  max-width: 560px;
}
.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-display);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--ink-3);
  margin-bottom: 20px;
  padding: 6px 10px;
  border: 1px solid var(--hairline-strong);
  background: var(--surf-1);
  border-radius: 2px;
}
.hero .eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ency-green);
  box-shadow: 0 0 6px rgba(0,203,154,0.7);
}
.hero h1 {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: clamp(36px, 5.6vw, 64px);
  letter-spacing: -0.02em;
  line-height: 1.02;
  margin: 0 0 22px;
  color: var(--ink);
}
.hero h1 .accent {
  /* ENCY brand gradient — green → blue */
  background: linear-gradient(96deg, var(--ency-green) 0%, var(--ency-blue) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
}
.hero .sub {
  font-family: var(--ff-display);
  font-size: clamp(16px, 1.5vw, 18px);
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink-2);
  margin: 0 0 28px;
  letter-spacing: -0.005em;
}
.hero .sub strong {
  color: var(--ink);
  font-weight: 600;
}
.hero .ctarow {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
}
.hero .byline {
  font-family: var(--ff-display);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.hero .byline::before {
  content: "";
  display: inline-block;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--ency-green);
  box-shadow: 0 0 4px rgba(0,203,154,0.55);
  margin-right: 10px;
  vertical-align: 2px;
}
.hero .byline-sep {
  display: inline-block;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--ency-green);
  box-shadow: 0 0 4px rgba(0,203,154,0.55);
  margin: 0 10px;
  vertical-align: 2px;
}

/* Hero spec strip — light technical credibility line under CTA */
.hero-specs {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-top: 1px solid var(--hairline);
  padding-top: 14px;
}
.hero-specs > div {
  flex: 1 1 auto;
  min-width: 0;
  padding-right: 18px;
}
.hero-specs > div + div { padding-left: 18px; border-left: 1px solid var(--hairline); }
.hero-specs .k {
  display: block;
  font-family: var(--ff-mono);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 4px;
}
.hero-specs .v {
  display: block;
  font-family: var(--ff-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
}

/* Primary button — ENCY gradient, software-grade material.
   Readability: dark ink (#05130e) sits on the green end; on the blue
   end, a 1px top text-highlight pulls letterforms forward without
   reading as text-shadow decoration. */
.btn {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 26px;
  min-height: 50px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.14) 0%, rgba(255,255,255,0) 42%, rgba(0,0,0,0.12) 100%),
    linear-gradient(96deg, var(--ency-green) 0%, var(--ency-blue) 100%);
  background-size: 100% 100%, 220% 100%;
  background-position: 0 0, 0% 0;
  border: 1px solid rgba(0,203,154,0.70);
  color: #ffffff;
  text-decoration: none;
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.015em;
  text-shadow: 0 1px 1px rgba(0,0,0,0.28);
  cursor: pointer;
  text-align: center;
  border-radius: 7px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.38) inset,
    0 -1px 0 rgba(0,0,0,0.24) inset,
    0 1px 1px rgba(0,0,0,0.35),
    0 10px 24px -12px rgba(0,203,154,0.55),
    0 18px 40px -22px rgba(18,105,217,0.45);
  transition:
    background-position 260ms ease,
    box-shadow 220ms ease,
    transform 120ms ease,
    border-color 180ms ease;
}
.btn:hover {
  background-position: 0 0, 40% 0;
  border-color: rgba(0,203,154,0.85);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.42) inset,
    0 -1px 0 rgba(0,0,0,0.24) inset,
    0 2px 2px rgba(0,0,0,0.30),
    0 14px 28px -10px rgba(0,203,154,0.65),
    0 22px 48px -22px rgba(18,105,217,0.55),
    0 0 0 1px rgba(0,203,154,0.18);
}
.btn:active {
  transform: translateY(1px);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.22) inset,
    0 1px 0 rgba(0,0,0,0.30) inset,
    0 1px 1px rgba(0,0,0,0.35),
    0 6px 14px -10px rgba(0,203,154,0.5);
}
.btn:focus-visible { outline: 2px solid var(--ency-green); outline-offset: 3px; }

/* Compact secondary scale (40px). Same material as .btn, smaller stride.
   Use .btn.btn--sm where space is tighter (inline rows, FAQ-adjacent CTAs). */
.btn.btn--sm {
  min-height: 40px;
  padding: 0 18px;
  font-size: 13px;
  border-radius: 6px;
}

/* Ghost variant — same geometry, hairline frame on dark titanium.
   Use for tertiary actions. */
.btn.btn--ghost {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0) 60%),
    var(--surf-2);
  border: 1px solid var(--hairline-strong);
  color: var(--ink);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.04) inset,
    0 1px 1px rgba(0,0,0,0.30);
}
.btn.btn--ghost:hover {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0) 60%),
    var(--surf-3);
  border-color: rgba(0,203,154,0.45);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.06) inset,
    0 2px 2px rgba(0,0,0,0.30),
    0 0 0 1px rgba(0,203,154,0.12);
}

/* ============================================================
   HERO VERIFY PANEL — sole floating UI in the hero.
   Sits exactly over the Share/Collaborate modal in the source
   screenshot, covering it. Industrial-grade verification
   checklist, not SaaS.
   ============================================================ */
.hv-verify-panel {
  position: absolute;
  /* Anchored bottom-right, bleeding partially outside the viewport
     frame. Reduced ~14% from previous size; calmer backdrop so the
     simulation underneath remains the primary visual. */
  bottom: -8px;
  right: -22px;
  top: auto;
  left: auto;
  z-index: 4;
  width: min(282px, 36%);
  transform: none;
  padding: 11px 12px 10px;
  background:
    linear-gradient(180deg, rgba(10,14,20,0.72) 0%, rgba(8,12,18,0.72) 100%);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 8px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.06) inset,
    0 22px 56px -22px rgba(0,0,0,0.7),
    0 0 0 1px rgba(0,203,154,0.05);
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  font-family: var(--ff-mono);
  color: var(--ink);
}
/* Brand hairline on the leading edge — same signal as cmp-cell--ency */
.hv-verify-panel::before {
  content: "";
  position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 2px;
  background: var(--grad-brand);
  border-radius: 2px;
  opacity: 0.85;
}

.hv-verify-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.hv-verify-panel-tag {
  font-family: var(--ff-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.20em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.hv-verify-panel-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--ff-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.20em;
  color: var(--ency-green);
  text-transform: uppercase;
}
.hv-verify-panel-status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ency-green);
  box-shadow: 0 0 6px rgba(0,203,154,0.70);
  animation: hv-status-blink 3.2s ease-in-out infinite;
}
@keyframes hv-status-blink {
  0%, 70%, 100% { opacity: 1; }
  82%           { opacity: 0.35; }
}

.hv-verify-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.hv-verify-list li {
  display: grid;
  grid-template-columns: 15px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 2px 0;
  font-size: 11px;
  letter-spacing: 0.01em;
  color: var(--ink);
  line-height: 1.2;
  /* Staggered entry — items appear sequentially as if the
     verification pass is running. */
  opacity: 0;
  transform: translateY(2px);
  animation: hv-row-in 600ms cubic-bezier(.2,.7,.2,1) forwards;
}
.hv-verify-list li:nth-child(1) { animation-delay: 0.20s; }
.hv-verify-list li:nth-child(2) { animation-delay: 0.50s; }
.hv-verify-list li:nth-child(3) { animation-delay: 0.80s; }
.hv-verify-list li:nth-child(4) { animation-delay: 1.10s; }
.hv-verify-list li:nth-child(5) { animation-delay: 1.40s; }
@keyframes hv-row-in {
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hv-verify-list li {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

.hv-verify-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px; height: 15px;
  color: var(--ency-green);
}
.hv-verify-icon svg {
  width: 100%; height: 100%;
  display: block;
}
.hv-verify-list li[data-state="active"] .hv-verify-icon { color: var(--ency-blue); }
.hv-verify-icon--spin svg {
  animation: hv-spin 1.4s linear infinite;
  transform-origin: 50% 50%;
}
@keyframes hv-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .hv-verify-icon--spin svg { animation: none; }
}

.hv-verify-text {
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.005em;
  color: rgba(238,240,244,0.94);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.hv-verify-list li[data-state="active"] .hv-verify-text { color: #fff; }

.hv-verify-meta {
  font-family: var(--ff-mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  text-align: right;
}

.hv-verify-panel-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-family: var(--ff-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hv-verify-panel-foot-k { color: var(--ink-3); }
.hv-verify-panel-foot-v { color: var(--ink); letter-spacing: 0.06em; }
.hv-verify-panel-foot-sep {
  width: 1px; height: 9px;
  background: rgba(255,255,255,0.10);
  margin: 0 4px;
}

/* Tablet/mobile — panel becomes a slim strip pinned to the bottom-right */
@media (max-width: 720px) {
  .hv-verify-panel {
    /* Phone — sit safely inside the image, not bleeding past edges. */
    top: auto;
    left: auto;
    bottom: 14px;
    right: 14px;
    width: min(280px, 64%);
    transform: none;
    padding: 12px 13px;
  }
  .hv-verify-text { font-size: 12px; }
  .hv-verify-meta { display: none; }
  .hv-verify-list li { grid-template-columns: 16px 1fr; }
}
@media (min-width: 721px) and (max-width: 1080px) {
  .hv-verify-panel {
    bottom: 14px;
    right: -10px;
    width: min(320px, 50%);
  }
}

/* Highlighted numeric meta — used for the clearance reading
   so it can subtly pulse like a live coordinate readout. */
.hv-verify-meta-num {
  color: var(--ency-green);
  font-weight: 600;
  animation: hv-coord-pulse 4.2s ease-in-out infinite;
}
@keyframes hv-coord-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.55; }
}
@media (prefers-reduced-motion: reduce) {
  .hv-verify-meta-num { animation: none; }
}

/* Active toolpath shimmer — a hair-thin gleam crossing the
   spindle/tool tip region. Very faint, calm cadence. */
.hv-shimmer {
  position: absolute;
  top: 38%;
  left: 36%;
  width: 22%;
  height: 14%;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
  opacity: 0.55;
  mix-blend-mode: screen;
}
.hv-shimmer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 35%,
    rgba(0,203,154,0.22) 48%,
    rgba(255,255,255,0.35) 50%,
    rgba(0,203,154,0.22) 52%,
    transparent 65%
  );
  transform: translateX(-110%);
  animation: hv-shimmer-sweep 7.5s ease-in-out infinite;
}
@keyframes hv-shimmer-sweep {
  0%, 70% { transform: translateX(-110%); }
  85%     { transform: translateX(110%); }
  100%    { transform: translateX(110%); }
}
@media (prefers-reduced-motion: reduce) {
  .hv-shimmer::before { animation: none; transform: translateX(-110%); }
}

/* ============================================================
   HERO VISUAL — real ENCY screenshot inside a CAM-window bezel
   ============================================================ */
.hero-visual {
  position: relative;
  margin: 0;
  background: var(--app);
  border: 1px solid var(--hairline-strong);
  border-radius: 8px;
  /* Image clips inside .hv-canvas, but the figure itself allows
     the verify panel to bleed past the right/bottom edges. */
  overflow: visible;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04),
    0 1px 0 rgba(255,255,255,0.05) inset,
    0 0 0 1px rgba(0,203,154,0.05),
    0 18px 40px -28px rgba(8,12,18,0.55);
}
/* Brand hairline along the top edge */
.hero-visual::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--grad-brand);
  opacity: 0.55;
  z-index: 3;
}
/* Window chrome row */
.hv-chrome {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  background: var(--surf-2);
  border-bottom: 1px solid var(--hairline-strong);
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.hv-chrome .dots {
  display: inline-flex;
  gap: 6px;
}
.hv-chrome .dots span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--surf-3);
  border: 1px solid var(--hairline-strong);
}
.hv-chrome .path {
  color: var(--ink-2);
  letter-spacing: 0.08em;
  text-transform: none;
  font-size: 11px;
}
.hv-chrome .path .accent { color: var(--ency-green); }
.hv-chrome .live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ency-green);
}
.hv-chrome .live::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ency-green);
  box-shadow: 0 0 6px rgba(0,203,154,0.8);
  animation: blink 2.6s ease-in-out infinite;
}
@keyframes blink { 0%, 60%, 100% { opacity: 1; } 70% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { .hv-chrome .live::before { animation: none; } }

.hv-canvas {
  position: relative;
  background: #0e1626;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: inherit;
}
.hv-canvas img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
}
.hv-canvas::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0) 12%, rgba(0,0,0,0) 88%, rgba(0,0,0,0.45) 100%),
    radial-gradient(120% 80% at 50% 50%, transparent 55%, rgba(0,0,0,0.35) 100%);
}

/* ===== Cinematic hero variant =====
   Wider crop, deep-navy canvas, soft shell. Bleeds toward the
   right viewport edge on desktop so it reads as embedded into
   the page rather than a floating card. */
.hero-visual--cinematic {
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
}
@media (min-width: 920px) {
  .hero-visual--cinematic {
    /* No bleed — visual stays inside the 1200px content grid like
       every other section on the page. */
    margin-right: 0;
  }
}
.hero-visual--cinematic .hv-canvas {
  aspect-ratio: 16 / 10;
  /* Deep navy instead of pure black — reads as a real CAM viewport
     background, not a void. */
  background:
    radial-gradient(120% 90% at 50% 40%, #142036 0%, #0e1626 55%, #0a1120 100%);
}
.hero-visual--cinematic .hv-canvas img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Slightly relaxed crop — more machine context on the right/bottom
     edges (column, table, fixture, rotary base) while still keeping
     the left operations tree mostly out of frame. */
  object-position: 54% 46%;
  transform: scale(1.01);
  filter: contrast(1.05) saturate(1.06) brightness(1.02);
  transform-origin: 54% 46%;
  animation: hero-drift 38s ease-in-out infinite alternate;
  will-change: transform;
  mix-blend-mode: normal;
}
@keyframes hero-drift {
  from { transform: scale(1.010) translate(0, 0); }
  to   { transform: scale(1.028) translate(-0.40%, -0.20%); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-visual--cinematic .hv-canvas img { animation: none; transform: scale(1.01); }
}
/* Calm interior shading — no heavy vignette. Just a hint of
   floor weight + a touch at the very top to seat the image. */
.hero-visual--cinematic .hv-canvas::after {
  background:
    linear-gradient(180deg, rgba(10,15,26,0.18) 0%, rgba(0,0,0,0) 16%, rgba(0,0,0,0) 78%, rgba(10,15,26,0.40) 100%),
    radial-gradient(110% 90% at 50% 50%, transparent 60%, rgba(8,12,20,0.30) 100%);
}
/* Faint brand hairline at the bottom edge — quiet ENCY signature
   in lieu of a status bar. */
.hero-visual--cinematic::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--grad-brand);
  opacity: 0.40;
  z-index: 3;
}

/* Slim verification pill, bottom-left */
.hv-verify {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 13px;
  background: rgba(8,11,15,0.78);
  border: 1px solid var(--hairline-strong);
  border-left: 2px solid var(--ency-green);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: var(--ff-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  box-shadow: var(--shadow-2);
}
.hv-verify-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ency-green);
  box-shadow: 0 0 8px rgba(0,203,154,0.7);
  animation: blink 2.6s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) { .hv-verify-dot { animation: none; } }
.hv-verify-sep {
  width: 1px; height: 10px;
  background: var(--hairline-strong);
}
/* Slow simulation-progress hairline along the bottom edge.
   Reads as a sim playback indicator — not a loading bar.
   Tracks the same ~32s cadence as the image drift. */
.hv-progress {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  z-index: 2;
  background: rgba(255,255,255,0.04);
  overflow: hidden;
  pointer-events: none;
}
.hv-progress::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 100%;
  background: linear-gradient(90deg, var(--ency-green) 0%, var(--ency-blue) 100%);
  transform-origin: left center;
  transform: scaleX(0);
  animation: hv-progress-fill 32s linear infinite;
  box-shadow: 0 0 8px -1px rgba(0,203,154,0.55);
}
.hv-progress::after {
  content: "";
  position: absolute;
  top: -2px; bottom: -2px;
  width: 14px;
  left: 0;
  background: radial-gradient(circle at 50% 50%, rgba(0,203,154,0.85) 0%, rgba(0,203,154,0) 70%);
  animation: hv-progress-head 32s linear infinite;
  pointer-events: none;
}
@keyframes hv-progress-fill {
  0%   { transform: scaleX(0); }
  92%  { transform: scaleX(1); }
  100% { transform: scaleX(1); }
}
@keyframes hv-progress-head {
  0%   { left: 0%; opacity: 0; }
  4%   { opacity: 1; }
  88%  { left: calc(100% - 14px); opacity: 1; }
  92%  { left: calc(100% - 14px); opacity: 0; }
  100% { left: 0%; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hv-progress::before { animation: none; transform: scaleX(0.42); }
  .hv-progress::after { animation: none; left: 42%; opacity: 0.6; }
}

.hv-verify-time {
  display: inline-block;
  min-width: 38px;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  margin-left: 2px;
}

/* Reposition the existing callout for the cinematic crop */
.hero-visual--cinematic .hv-callout {
  top: auto;
  bottom: 24px;
  right: 18px;
  background: rgba(8,11,15,0.78);
}
/* Slim verify pill sits just above the bottom progress hairline */
.hero-visual--cinematic .hv-verify {
  bottom: 24px;
}

/* Floating mini-callout — clean, restrained, ENCY-style */
.hv-callout {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  padding: 10px 12px;
  background: rgba(13,17,22,0.88);
  border: 1px solid var(--hairline-strong);
  border-left: 2px solid var(--ency-green);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-family: var(--ff-mono);
  font-size: 10.5px;
  line-height: 1.45;
  color: var(--ink-2);
  letter-spacing: 0.04em;
  min-width: 168px;
  box-shadow: var(--shadow-2);
}
.hv-callout .k {
  display: block;
  color: var(--ency-green);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.hv-callout .v {
  color: var(--ink);
  font-size: 11.5px;
}

/* Status footer */
.hv-status {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  background: var(--surf-2);
  border-top: 1px solid var(--hairline-strong);
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.hv-status .ok { color: var(--ency-green); }
.hv-status .sep {
  display: inline-block;
  width: 1px;
  height: 12px;
  background: var(--hairline-strong);
}
.hv-status .right {
  margin-left: auto;
  color: var(--ink-3);
  letter-spacing: 0.08em;
  text-transform: none;
  font-size: 10.5px;
}

/* ============================================================
   ASSET FRAME (used everywhere a real screenshot drops in)
   ============================================================ */
.asset {
  position: relative;
  display: block;
  width: 100%;
  background: #0a0d11;
  border: 1px solid var(--hairline-strong);
  overflow: hidden;
}
.asset--16x9 { aspect-ratio: 16 / 9; }
.asset img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
.asset::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    /* Faint horizontal scanlines — CAM viewport ambient, ~2.5% α */
    repeating-linear-gradient(0deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(8,11,15,0.55) 100%),
    linear-gradient(0deg, rgba(0,0,0,0) 88%, rgba(0,0,0,0.20) 100%);
  z-index: 1;
}
/* Corner crop marks — hairline L-brackets at each corner.
   Reads as a sim-viewport marker; ties cards back to the hero. */
.asset::after {
  content: "";
  position: absolute;
  inset: 8px;
  pointer-events: none;
  z-index: 2;
  background:
    linear-gradient(90deg,  rgba(255,255,255,0.22) 0 9px, transparent 9px 100%) top left   / 9px 1px no-repeat,
    linear-gradient(180deg, rgba(255,255,255,0.22) 0 9px, transparent 9px 100%) top left   / 1px 9px no-repeat,
    linear-gradient(270deg, rgba(255,255,255,0.22) 0 9px, transparent 9px 100%) top right  / 9px 1px no-repeat,
    linear-gradient(180deg, rgba(255,255,255,0.22) 0 9px, transparent 9px 100%) top right  / 1px 9px no-repeat,
    linear-gradient(90deg,  rgba(255,255,255,0.22) 0 9px, transparent 9px 100%) bottom left  / 9px 1px no-repeat,
    linear-gradient(0deg,   rgba(255,255,255,0.22) 0 9px, transparent 9px 100%) bottom left  / 1px 9px no-repeat,
    linear-gradient(270deg, rgba(255,255,255,0.22) 0 9px, transparent 9px 100%) bottom right / 9px 1px no-repeat,
    linear-gradient(0deg,   rgba(255,255,255,0.22) 0 9px, transparent 9px 100%) bottom right / 1px 9px no-repeat;
}
/* Card states color-shift the brackets to match the chip palette */
.asset[data-tone="warn"]::after  { filter: hue-rotate(0); }

/* Single mono datum — ultra restrained telemetry token.
   Top-right of an .asset frame. No chip, no border, no dot — just
   a faint mono string that reads as a real coordinate / handle. */
.asset-tick {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 3;
  font-family: var(--ff-mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.58);
  text-shadow: 0 1px 1px rgba(0,0,0,0.55);
  white-space: nowrap;
  pointer-events: none;
}
.asset-label {
  position: absolute;
  inset: auto 0 0 0;
  padding: 10px 14px 11px;
  color: var(--ink-2);
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 2;
}
.asset-label-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ency-green);
  box-shadow: 0 0 4px rgba(0,203,154,0.7);
}
.asset[data-tone="warn"] .asset-label-dot { background: var(--ency-orange); box-shadow: 0 0 4px rgba(255,182,64,0.7); }
.asset[data-tone="fault"] .asset-label-dot { background: #ff6a3a; box-shadow: 0 0 4px rgba(255,106,58,0.7); }
.asset[data-tone="info"] .asset-label-dot { background: var(--ency-blue); box-shadow: 0 0 4px rgba(18,105,217,0.7); }
/* Top-corner spec line for risk/cap visuals — adds depth */
.asset-spec {
  position: absolute;
  top: 10px; right: 12px;
  z-index: 2;
  font-family: var(--ff-mono);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  padding: 3px 7px;
  background: rgba(13,17,22,0.55);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* ============================================================
   SECTIONS — shared chrome
   ============================================================ */
section {
  padding: clamp(40px, 6vh, 72px) 0;
  border-bottom: 1px solid var(--hairline);
}
section h2 {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  color: var(--ink);
}
section h2 .accent { color: var(--ency-green); }

/* Section eyebrow (small uppercase tag above h2) */
.s-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 14px;
}
.s-eyebrow::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 1px;
  background: var(--ency-green);
  box-shadow: 0 0 6px rgba(0,203,154,0.6);
}
.s-eyebrow::after {
  content: "";
  display: inline-block;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--ency-green);
  margin-left: -2px;
}

/* ============================================================
   RISK / CAPABILITY CARDS
   ============================================================ */
.risk-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(16px, 2vw, 22px);
}
@media (min-width: 720px) {
  .risk-cards { grid-template-columns: repeat(3, 1fr); }
}

.risk-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surf-1);
  border: 1px solid var(--hairline-strong);
  overflow: hidden;
  box-shadow: var(--shadow-2);
  transition:
    transform 280ms cubic-bezier(.2,.7,.2,1),
    box-shadow 280ms cubic-bezier(.2,.7,.2,1),
    border-color 200ms ease;
}
.risk-card::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(0,203,154,0.45) 50%, transparent 100%);
  opacity: 0;
  transition: opacity 240ms ease;
  z-index: 3;
  pointer-events: none;
}
.risk-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-3);
  border-color: var(--hairline-strong);
}
.risk-card:hover::after { opacity: 1; }
.risk-card:hover .risk-vis img { transform: scale(1.03); }
.risk-card .risk-vis img {
  transition: transform 600ms cubic-bezier(.2,.7,.2,1);
}
@media (prefers-reduced-motion: reduce) {
  .risk-card, .risk-card:hover { transition: none; transform: none; }
}

.risk-card .risk-vis {
  order: 0;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0a0d11;
  border-bottom: 1px solid var(--hairline-strong);
  overflow: hidden;
}
.risk-card .risk-vis img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.risk-card .risk-vis::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(13,17,22,0.7) 100%);
}

/* ============================================================
   RISK-VIS OVERLAYS (rvo)
   Tiny embedded indicators only — no panels, no HUD.
   ============================================================ */

.rvo {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

/* Tiny mono tag — a single status string, optional pulsing dot. */
.rvo-tag {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 7px;
  background: rgba(10,13,17,0.62);
  border: 1px solid rgba(255,255,255,0.08);
  font-family: var(--ff-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.78);
  white-space: nowrap;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.rvo-tag-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--ency-orange);
  box-shadow: 0 0 4px rgba(255,182,64,0.5);
  animation: rvo-pulse 2.6s ease-in-out infinite;
}
@keyframes rvo-pulse {
  0%, 65%, 100% { opacity: 1; }
  78%           { opacity: 0.25; }
}
@media (prefers-reduced-motion: reduce) {
  .rvo-tag-dot { animation: none; }
}

/* Card 1 (stall) — frozen progress hairline along the bottom edge
   + tiny status tag above it. */
.rvo--stall .rvo-tag {
  left: 10px;
  bottom: 16px;
}
.rvo-bar {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: rgba(0,0,0,0.35);
  overflow: hidden;
}
.rvo-bar-fill {
  display: block;
  width: 64%;
  height: 100%;
  background: var(--ency-orange);
  opacity: 0.75;
  box-shadow: 1px 0 0 rgba(255,182,64,0.9);
}

/* Card 3 (drift) — single mismatch token, top-right. */
.rvo--drift .rvo-tag {
  top: 10px;
  right: 10px;
}

.risk-card-body-wrap {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.risk-card-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}
.risk-card-num {
  font-family: var(--ff-mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.risk-card-chip {
  font-family: var(--ff-mono);
  font-weight: 500;
  font-size: 9.5px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  padding: 4px 9px 3px;
  border: 1px solid currentColor;
  border-radius: 2px;
  white-space: nowrap;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1;
}
.risk-card-chip::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 4px currentColor;
  opacity: 0.85;
}
.cmp-cell .risk-card-chip { align-self: flex-start; }
.risk-card-chip--warn  { color: var(--ency-orange); }
.risk-card-chip--fault { color: #ff6a3a; }
.risk-card-chip--cyan  { color: var(--ency-blue); border-color: rgba(18,105,217,0.55); background: rgba(18,105,217,0.06); }
.risk-card-chip--ok    { color: var(--ency-green); border-color: rgba(0,203,154,0.50); background: rgba(0,203,154,0.06); }

/* ============================================================
   Incident sequence — unified ENCY chip system.
   Scoped to the timeline so risk-cards / comparison cells keep
   their existing variants. All four chips share identical
   sizing, padding, border, radius, and type — they vary only
   by tone within the ENCY cyan → blue palette.
   ============================================================ */
.timeline .risk-card-chip {
  font-size: 9.5px;
  padding: 4px 9px 3px;
  border-width: 1px;
  border-style: solid;
  border-radius: 2px;
  letter-spacing: 0.20em;
}
.timeline .risk-card-chip::before {
  width: 5px;
  height: 5px;
  opacity: 0.85;
}
/* warning — lightest, pale teal */
.timeline .risk-card-chip--warn {
  color: #9ec7d2;
  border-color: rgba(158,199,210,0.34);
  background: rgba(158,199,210,0.05);
}
/* negative/problem — pale cyan-blue */
.timeline .risk-card-chip--fault {
  color: #6aa6c4;
  border-color: rgba(106,166,196,0.40);
  background: rgba(106,166,196,0.06);
}
/* active/caught — mid ENCY blue */
.timeline .risk-card-chip--cyan {
  color: #2f7ec5;
  border-color: rgba(47,126,197,0.50);
  background: rgba(47,126,197,0.07);
}
/* verified/success — deepest ENCY blue */
.timeline .risk-card-chip--ok {
  color: var(--ency-blue-deep);
  border-color: rgba(15,86,179,0.62);
  background: rgba(15,86,179,0.09);
}

.risk-card-h {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.28;
  letter-spacing: -0.012em;
  color: var(--ink);
  margin: 0;
}
.risk-card-body {
  font-family: var(--ff-body);
  font-size: 14.5px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0;
}

/* ============================================================
   COMPARISON PANEL
   ============================================================ */
.cmp-panel {
  background: var(--surf-1);
  border: 1px solid var(--hairline-strong);
  box-shadow: var(--shadow-2);
  overflow: hidden;
}
.cmp-head, .cmp-row {
  display: grid;
  grid-template-columns: 200px 1fr 1fr;
}
.cmp-head {
  background: var(--surf-2);
  border-bottom: 1px solid var(--hairline-strong);
}
.cmp-row + .cmp-row { border-top: 1px solid var(--hairline); }
.cmp-row { transition: background 180ms ease; }
.cmp-row:hover { background: rgba(255,255,255,0.012); }
:root[data-theme="light"] .cmp-row:hover { background: rgba(20,24,32,0.02); }
@media (prefers-color-scheme: light) {
  :root[data-theme="auto"] .cmp-row:hover { background: rgba(20,24,32,0.02); }
}
.cmp-dim {
  padding: 16px 18px;
  font-family: var(--ff-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
  border-right: 1px solid var(--hairline);
  align-self: center;
}
.cmp-head-dim { color: var(--ink-4); }
.cmp-cell {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-right: 1px solid var(--hairline);
  position: relative;
}
.cmp-cell:last-child { border-right: 0; }
.cmp-cell--fusion {
  background: linear-gradient(90deg, rgba(120,110,100,0.025) 0%, rgba(120,110,100,0.045) 100%);
}
.cmp-cell--ency   {
  background:
    linear-gradient(90deg, rgba(0,203,154,0.055) 0%, rgba(18,105,217,0.045) 100%);
  position: relative;
}
.cmp-row:hover .cmp-cell--ency {
  background:
    linear-gradient(90deg, rgba(0,203,154,0.08) 0%, rgba(18,105,217,0.065) 100%);
}
.cmp-cell--ency::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--grad-brand);
  box-shadow: 0 0 12px -2px rgba(0,203,154,0.35);
}
.cmp-cell p {
  font-family: var(--ff-body);
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
}
.cmp-cell--ency p { color: var(--ink); }
.cmp-head-vendor {
  padding: 14px 18px;
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.cmp-head-vendor--fusion { color: var(--ink-3); }
.cmp-head-vendor--ency {
  color: var(--ency-green);
  position: relative;
  background: linear-gradient(90deg, rgba(0,203,154,0.06) 0%, rgba(18,105,217,0.04) 100%);
}
.cmp-head-vendor--ency::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--grad-brand);
}

@media (max-width: 640px) {
  .cmp-head { display: none; }
  .cmp-row { grid-template-columns: 1fr; }
  .cmp-dim { border-right: 0; border-bottom: 1px solid var(--hairline); background: var(--surf-2); }
  .cmp-cell { border-right: 0; border-bottom: 1px solid var(--hairline); }
  .cmp-cell--fusion::before { content: "FUSION 360 ·"; color: var(--ink-3); font-family: var(--ff-mono); font-size: 9.5px; letter-spacing: 0.22em; }
  .cmp-cell--ency { padding-left: 18px; }
  .cmp-cell--ency::before { content: "ENCY ·"; position: static; width: auto; background: none; color: var(--ency-green); font-family: var(--ff-mono); font-size: 9.5px; letter-spacing: 0.22em; }
}

/* ============================================================
   TIMELINE
   ============================================================ */
.timeline-lede {
  font-family: var(--ff-body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 540px;
  margin: -12px 0 28px;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(14px, 1.8vw, 18px);
  position: relative;
}
@media (min-width: 780px) {
  .timeline { grid-template-columns: repeat(4, 1fr); }
}

.timeline-frame {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surf-1);
  border: 1px solid var(--hairline-strong);
  overflow: hidden;
  box-shadow: var(--shadow-2);
  counter-increment: timeline;
  transition:
    transform 280ms cubic-bezier(.2,.7,.2,1),
    box-shadow 280ms cubic-bezier(.2,.7,.2,1);
}
.timeline { counter-reset: timeline; }
.timeline-frame:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-3);
}
.timeline-frame:hover .timeline-vis img { transform: scale(1.03); }
.timeline-vis img { transition: transform 600ms cubic-bezier(.2,.7,.2,1); }
.timeline-vis {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0a0d11;
  overflow: hidden;
  border-bottom: 1px solid var(--hairline);
}
.timeline-vis img {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
}
.timeline-vis::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(13,17,22,0.7) 100%);
}
.timeline-frame-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.timeline-frame-meta {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--hairline);
}
.timeline-frame-label {
  font-family: var(--ff-mono);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  color: var(--ency-green);
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.timeline-frame-meta { min-width: 0; }
.timeline-frame-cap {
  font-family: var(--ff-body);
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-2);
  margin: 0;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq details {
  border-bottom: 1px solid var(--hairline);
  padding: 18px 0;
}
.faq details:first-of-type { border-top: 1px solid var(--hairline); }
.faq summary {
  cursor: pointer;
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 16.5px;
  letter-spacing: -0.005em;
  color: var(--ink);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 4px 0;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--ff-mono);
  font-size: 18px;
  color: var(--ink-3);
  transition: transform 200ms ease;
  line-height: 1;
}
.faq details[open] summary::after { content: "−"; color: var(--ency-green); }
.faq details p {
  margin: 12px 0 0;
  font-family: var(--ff-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 640px;
}

/* ============================================================
   FINAL CTA — production validation panel
   Two-column structured panel (left = info + command,
   right = workflow verification checklist). Echoes the
   pre-post verification UI used in the hero, the comparison
   cells, and the incident-sequence chip system.
   ============================================================ */
.cta-panel {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(60% 70% at 0% 0%, rgba(15,184,224,0.04) 0%, transparent 65%),
    radial-gradient(70% 80% at 100% 100%, rgba(18,105,217,0.05) 0%, transparent 70%),
    linear-gradient(180deg, var(--surf-1) 0%, var(--surf-2) 100%);
  border: 1px solid var(--hairline-strong);
  border-radius: 4px;
  margin-top: clamp(20px, 3vh, 32px);
  box-shadow: var(--shadow-2);
}

/* Top engineering datum rule — same signal as .hv-verify-panel::before */
.cta-panel::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    color-mix(in srgb, var(--ency-blue) 65%, transparent) 30%,
    color-mix(in srgb, var(--ency-green) 65%, transparent) 70%,
    transparent 100%);
  opacity: 0.55;
  z-index: 2;
}

/* ---- Top bar: tag + status, mono uppercase ---- */
.cta-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px clamp(20px, 3vw, 32px);
  border-bottom: 1px solid var(--hairline);
  background: color-mix(in srgb, var(--surf-2) 50%, transparent);
}
.cta-panel-tag {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.cta-panel-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--ency-green);
  text-transform: uppercase;
}
.cta-panel-status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ency-green);
  box-shadow: 0 0 6px rgba(0,203,154,0.65);
  animation: cta-status-blink 3.2s ease-in-out infinite;
}
@keyframes cta-status-blink {
  0%, 70%, 100% { opacity: 1; }
  82%           { opacity: 0.35; }
}

/* ---- Two-column body ---- */
.cta-panel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(24px, 3.5vw, 48px);
  padding: clamp(20px, 3vw, 32px) clamp(20px, 3vw, 32px);
  align-items: center;
}
@media (max-width: 820px) {
  .cta-panel-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ---- LEFT column: info + command ---- */
.cta-panel-left {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.cta-panel-left h2 {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: clamp(22px, 2.6vw, 28px) !important;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0 0 8px;
  color: var(--ink);
  text-wrap: balance;
}
.cta-panel-left p {
  font-size: 14px !important;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0 0 18px;
  max-width: 44ch;
}
/* Keep .btn from stretching to column width inside the flex column. */
.cta-panel-left > .btn {
  align-self: flex-start;
}

/* Command button — bracketed-mark structure, ENCY cyan-blue accent */
.cta-panel-btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px 10px 14px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--ink) 4%, transparent) 0%, transparent 60%),
    var(--surf-2);
  border: 1px solid color-mix(in srgb, var(--ency-blue) 55%, var(--hairline-strong));
  border-radius: 2px;
  color: var(--ink);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--ink) 4%, transparent),
    inset 0 -2px 0 color-mix(in srgb, var(--ency-blue) 28%, transparent),
    0 1px 0 color-mix(in srgb, var(--ency-blue) 18%, transparent);
  transition:
    border-color 160ms ease,
    background 180ms ease,
    box-shadow 180ms ease,
    transform 120ms ease;
}
.cta-panel-btn:hover {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--ink) 6%, transparent) 0%, transparent 60%),
    var(--surf-3);
  border-color: var(--ency-blue);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--ink) 6%, transparent),
    inset 0 -2px 0 color-mix(in srgb, var(--ency-blue) 48%, transparent),
    0 1px 0 color-mix(in srgb, var(--ency-blue) 34%, transparent);
}
.cta-panel-btn:active { transform: translateY(1px); }
.cta-panel-btn:focus-visible {
  outline: 1px solid var(--ency-blue);
  outline-offset: 3px;
}
.cta-panel-btn-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px; height: 16px;
  color: var(--ency-blue);
  font-size: 12px;
  line-height: 1;
}
.cta-panel-btn-label {
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Meta specs row — 3 fields, monospace, hairline dividers */
.cta-panel-meta {
  margin: 22px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--hairline);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.cta-panel-meta > div { min-width: 0; }
.cta-panel-meta dt {
  font-family: var(--ff-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin: 0 0 4px;
}
.cta-panel-meta dd {
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink-2);
  margin: 0;
}

/* ---- RIGHT column: workflow verification ---- */
.cta-panel-right {
  position: relative;
  padding: 14px 16px 16px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surf-2) 60%, transparent) 0%, transparent 100%),
    color-mix(in srgb, var(--surf-2) 80%, transparent);
  border: 1px solid var(--hairline);
  border-radius: 3px;
  min-width: 0;
}
/* Subtle ENCY rail on the leading edge */
.cta-panel-right::before {
  content: "";
  position: absolute;
  left: 0; top: 10px; bottom: 10px;
  width: 2px;
  background: linear-gradient(180deg, var(--ency-blue) 0%, var(--ency-green) 100%);
  border-radius: 2px;
  opacity: 0.70;
}
.cta-panel-right-tag {
  display: block;
  font-family: var(--ff-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-left: 10px;
  margin-bottom: 10px;
}

.cta-panel-checks {
  list-style: none;
  margin: 0;
  padding: 0 0 0 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cta-panel-checks li {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 22px;
}
.cta-panel-check-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px; height: 16px;
  color: var(--ency-green);
}
.cta-panel-check-icon svg { width: 100%; height: 100%; display: block; }
.cta-panel-checks li[data-state="active"] .cta-panel-check-icon { color: var(--ency-blue); }
.cta-panel-check-icon--spin svg {
  animation: cta-spin 1.4s linear infinite;
  transform-origin: 50% 50%;
}
@keyframes cta-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .cta-panel-check-icon--spin svg { animation: none; }
  .cta-panel-status-dot { animation: none; }
}

.cta-panel-check-text {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.35;
  min-width: 0;
}
.cta-panel-checks li[data-state="active"] .cta-panel-check-text { color: var(--ink); }

.cta-panel-check-meta {
  font-family: var(--ff-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
}
.cta-panel-checks li[data-state="ok"] .cta-panel-check-meta { color: var(--ency-green); }
.cta-panel-checks li[data-state="active"] .cta-panel-check-meta { color: var(--ency-blue); }
/* Default (no data-state) — list items with PASS / VERIFIED tone */
.cta-panel-checks li:not([data-state]) .cta-panel-check-meta { color: var(--ency-green); }

/* ============================================================
   FOOTER
   ============================================================ */
footer.foot {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.10em;
  color: var(--ink-3);
  padding-top: 36px;
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  border-top: 1px solid var(--hairline);
}
footer.foot a { color: var(--ink-3); text-decoration: none; }
footer.foot a:hover { color: var(--ency-green); }

/* ============================================================
   REVEAL
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 420ms cubic-bezier(.2,.7,.2,1), transform 420ms cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
[data-reveal="in"] { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  [data-reveal], [data-reveal="in"] { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   LEAD-FORM MODAL  (unchanged behaviour, ENCY-tinted surface)
   ============================================================ */
.lf-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  background: rgba(6, 9, 12, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 200ms ease;
}
.lf-overlay[data-open="true"] {
  display: flex;
  opacity: 1;
  align-items: center;
  justify-content: center;
}
.lf-modal {
  position: relative;
  width: min(520px, calc(100vw - 32px));
  height: min(720px, calc(100vh - 48px));
  display: flex;
  flex-direction: column;
  background: var(--app);
  border: 1px solid var(--hairline-strong);
  box-shadow: var(--shadow-3);
  transform: translateY(8px) scale(0.98);
  opacity: 0;
  transition: transform 240ms cubic-bezier(.2,.7,.2,1), opacity 200ms ease;
}
.lf-overlay[data-open="true"] .lf-modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}
@media (max-width: 640px) {
  .lf-overlay { align-items: stretch; }
  .lf-modal {
    width: 100vw; height: 100vh; height: 100dvh;
    border: 0;
    border-top: 1px solid var(--hairline-strong);
    transform: translateY(100%);
  }
  .lf-overlay[data-open="true"] .lf-modal { transform: translateY(0); }
}
.lf-head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: var(--surf-2);
  border-bottom: 1px solid var(--hairline-strong);
}
.lf-head-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.lf-head-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ency-green);
  box-shadow: 0 0 6px rgba(0,203,154,0.7);
}
.lf-modal[data-state="error"] .lf-head-dot { background: #ff6a3a; box-shadow: 0 0 6px rgba(255,106,58,0.7); }
.lf-close {
  appearance: none;
  background: transparent;
  border: 1px solid var(--hairline-strong);
  color: var(--ink);
  font-family: var(--ff-mono);
  font-size: 15px;
  line-height: 1;
  width: 32px; height: 32px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.lf-close:hover { background: var(--surf-3); }
.lf-close:focus-visible { outline: 1px solid var(--ency-green); outline-offset: 2px; }
.lf-body {
  flex: 1 1 auto;
  position: relative;
  background: var(--app);
  overflow: hidden;
}
.lf-iframe {
  display: block;
  width: 100%; height: 100%;
  border: 0;
  background: var(--app);
  opacity: 0;
  transition: opacity 200ms ease;
}
.lf-modal[data-state="ready"] .lf-iframe { opacity: 1; }
.lf-state {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
  text-align: center;
  background: var(--app);
  color: var(--ink);
  font-family: var(--ff-mono);
  opacity: 1;
}
.lf-modal[data-state="ready"] .lf-state { opacity: 0; pointer-events: none; }
.lf-modal[data-state="loading"] .lf-state--error,
.lf-modal[data-state="ready"] .lf-state--error,
.lf-modal[data-state="error"] .lf-state--loading { display: none; }
.lf-spinner {
  width: 42px; height: 6px;
  background: var(--surf-2);
  border: 1px solid var(--hairline-strong);
  position: relative;
  overflow: hidden;
}
.lf-spinner::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 40%;
  background: var(--ency-green);
  animation: lf-strip 1.2s linear infinite;
}
@keyframes lf-strip { 0% { transform: translateX(-100%);} 100% { transform: translateX(260%);} }
@media (prefers-reduced-motion: reduce) {
  .lf-spinner::after { animation: none; width: 100%; opacity: 0.6; }
}
.lf-state-label {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.lf-state--error .lf-state-label { color: #ff6a3a; }
.lf-state-msg {
  font-family: var(--ff-body);
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 320px;
}
.lf-state-link {
  display: inline-block;
  margin-top: 4px;
  padding: 10px 14px;
  border: 1px solid var(--ency-green);
  color: var(--ency-green);
  text-decoration: none;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.lf-state-link:hover { background: rgba(0,203,154,0.08); }
body.lf-scroll-locked { overflow: hidden; }

/* ============================================================
   LIGHT-THEME refinements
   ============================================================ */
:root[data-theme="light"] .hv-callout,
:root[data-theme="light"] .asset-spec {
  background: rgba(255,255,255,0.9);
  color: var(--ink-2);
}
:root[data-theme="light"] .hv-callout .v { color: var(--ink); }
:root[data-theme="light"] .hv-canvas { background: #e8eaef; }
:root[data-theme="light"] .asset { background: #e8eaef; }
:root[data-theme="light"] .timeline-vis { background: #e8eaef; }
:root[data-theme="light"] .hv-chrome,
:root[data-theme="light"] .hv-status,
:root[data-theme="light"] .lf-head {
  background: var(--surf-2);
}


/* ============================================================
   POLISH PASS — appended
   ============================================================ */

/* Hero — subtle machine-envelope highlight, soft & contained. */
.hv-envelope {
  position: absolute;
  inset: 18% 18% 18% 22%;
  z-index: 2;
  pointer-events: none;
  border-radius: 50%;
  background:
    radial-gradient(closest-side,
      rgba(0,203,154,0.10) 0%,
      rgba(0,203,154,0.05) 40%,
      rgba(0,203,154,0) 72%);
  mix-blend-mode: screen;
  filter: blur(2px);
  opacity: 0.85;
  animation: hv-env-breathe 6.5s ease-in-out infinite;
}
@keyframes hv-env-breathe {
  0%, 100% { opacity: 0.65; transform: scale(1); }
  50%      { opacity: 0.95; transform: scale(1.025); }
}
@media (prefers-reduced-motion: reduce) {
  .hv-envelope { animation: none; opacity: 0.75; }
}

/* Card 3 — calm the dense red geometry under the indicator.
   Subtle desaturation; preserve realism. */
.risk-card--drift .risk-vis img {
  filter: saturate(0.7) brightness(0.94);
}
:root[data-theme="light"] .risk-card--drift .risk-vis img,
:root[data-theme="auto"] .risk-card--drift .risk-vis img {
  filter: saturate(0.72) brightness(0.96);
}

/* Caps section — middle card waterline. Bump contrast + saturation
   so the toolpath reads cleanly without changing the image. */
.caps .risk-card:nth-child(2) .risk-vis img {
  filter: contrast(1.10) saturate(1.08) brightness(1.02);
}

/* ============================================================
   FAQ — two-column grid with subtle axis aside
   ============================================================ */
.faq { padding: clamp(40px, 6vh, 72px) 0; }
.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}
.faq-col { min-width: 0; }


/* Remove the divider line between FAQ and the final CTA */
.faq { border-bottom: 0; }


/* ENCY brand gradient applied to the whole hero h1 */
.hero h1.h1-grad {
  background: linear-gradient(96deg, var(--ency-green) 0%, var(--ency-blue) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
}
