/* ============================================================
   Cor42 — Design System
   Futuristic pathology IT consulting
   ============================================================ */

@font-face {
  font-family: 'Inter';
  src: url('../fonts/InterVariable.ttf') format('truetype-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/InterVariable-Italic.ttf') format('truetype-variations');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* -------- Tokens -------- */
:root {
  /* Brand emerald (from Cor42 logo) */
  --emerald-50:  #ECFDF5;
  --emerald-100: #D1FAE5;
  --emerald-200: #A7F3D0;
  --emerald-300: #6EE7B7;
  --emerald-400: #34D399;
  --emerald-500: #10B981;
  --emerald-600: #059669;
  --emerald-700: #047857;
  --emerald-800: #065F46;
  --emerald-900: #064E3B;

  --teal-glow:   #14F1B8;
  --cyan-glow:   #22D3EE;

  /* Ink scale (dark surfaces) — emerald-tinged warm dark */
  --ink-950: #04090A;
  --ink-900: #060D0E;
  --ink-850: #081214;
  --ink-800: #0B181A;
  --ink-700: #0F1F22;
  --ink-600: #16282B;
  --ink-500: #1F3438;

  /* Light surfaces */
  --paper:    #FFFFFF;
  --bone:     #F8FAF9;
  --mist:     #EEF2F0;
  --slate-50: #F8FAFC;
  --slate-100:#F1F5F9;
  --slate-200:#E2E8F0;
  --slate-300:#CBD5E1;
  --slate-400:#94A3B8;
  --slate-500:#64748B;
  --slate-600:#475569;
  --slate-700:#334155;
  --slate-800:#1E293B;
  --slate-900:#0F172A;

  /* Semantic */
  --bg:           var(--ink-950);
  --bg-elev:      var(--ink-850);
  --bg-card:      var(--ink-800);
  --bg-card-hover:var(--ink-700);
  --border:       rgba(167,243,208,0.10);
  --border-strong:rgba(167,243,208,0.18);
  --border-emerald:rgba(16,185,129,0.36);
  --text-hi:      #F4FBF8;
  --text:         #CDD8D2;
  --text-mid:     #9BAEA6;
  --text-low:     #708078;
  --accent:       var(--emerald-400);
  --accent-deep:  var(--emerald-600);

  /* Radii / shadows */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 24px;
  --r-2xl: 32px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.20);
  --shadow-md: 0 8px 32px -8px rgba(0,0,0,.45);
  --shadow-lg: 0 24px 64px -16px rgba(0,0,0,.55);
  --shadow-glow: 0 0 0 1px rgba(16,185,129,.20), 0 18px 60px -16px rgba(16,185,129,.35);

  /* Layout */
  --container: 1240px;
  --container-narrow: 920px;
  --header-h: 72px;

  /* Type */
  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, 'SF Mono', Consolas, 'Liberation Mono', Menlo, monospace;

  /* Transitions */
  --t-fast: 160ms cubic-bezier(.2,.7,.2,1);
  --t-med:  280ms cubic-bezier(.2,.7,.2,1);
  --t-slow: 520ms cubic-bezier(.2,.7,.2,1);
}

/* -------- Reset -------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust:100%; text-size-adjust:100%; scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  font-feature-settings: "ss01","cv11","liga","calt";
  font-variation-settings: "opsz" 14;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.55;
  font-size: 16px;
  letter-spacing: -0.005em;
  overflow-x: hidden;

  /* Continuous emerald-tinged canvas — gives the whole page one mood
     rather than stacking sections of different colours */
  background-color: var(--ink-950);
  background-image:
    radial-gradient(1100px 720px at 12% 6%,  rgba(16,185,129,0.08), transparent 65%),
    radial-gradient(1200px 900px at 88% 38%, rgba(34,211,238,0.05), transparent 60%),
    radial-gradient(1000px 800px at 30% 75%, rgba(16,185,129,0.05), transparent 60%),
    radial-gradient(1100px 800px at 80% 95%, rgba(20,241,184,0.04), transparent 60%);
  background-attachment: fixed;
  background-repeat: no-repeat;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
::selection { background: var(--emerald-500); color: #051912; }

/* -------- Typography -------- */
h1,h2,h3,h4,h5,h6 {
  margin: 0;
  color: var(--text-hi);
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.08;
  font-variation-settings: "opsz" 32;
}
h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); font-weight: 700; letter-spacing: -0.025em; }
h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); font-weight: 650; }
h4 { font-size: 1.125rem; font-weight: 600; }
p  { margin: 0; color: var(--text); }
small { color: var(--text-low); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  font-size: 12px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--emerald-300);
  background: rgba(16,185,129,.08);
  border: 1px solid var(--border-emerald);
  border-radius: 999px;
  font-variation-settings: "opsz" 14;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--emerald-400);
  box-shadow: 0 0 12px var(--emerald-400);
}

.kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-low);
}

.lede { font-size: clamp(1.05rem, 1.2vw, 1.2rem); color: var(--text); max-width: 60ch; line-height: 1.6; }

.gradient-text {
  background: linear-gradient(110deg, #FFFFFF 0%, #FFFFFF 32%, var(--emerald-300) 62%, var(--cyan-glow) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.emerald-text { color: var(--emerald-400); }

/* -------- Layout primitives -------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + 48px);
  margin: 0 auto;
  padding: 0 24px;
}
.container.narrow { max-width: calc(var(--container-narrow) + 48px); }

.section {
  position: relative;
  padding: clamp(72px, 9vw, 128px) 0;
}
.section-tight { padding: clamp(48px, 6vw, 80px) 0; }

.section-head {
  display: flex; flex-direction: column; gap: 16px;
  margin-bottom: clamp(40px, 5vw, 64px);
  max-width: 760px;
}
.section-head.center { margin-left: auto; margin-right: auto; align-items: center; text-align: center; }

/* -------- Buttons -------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: transform var(--t-fast), background var(--t-fast), box-shadow var(--t-fast), border-color var(--t-fast), color var(--t-fast);
  border: 1px solid transparent;
  position: relative;
  isolation: isolate;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  color: #03110B;
  background: linear-gradient(180deg, #34D399 0%, #10B981 100%);
  box-shadow: 0 8px 24px -10px rgba(16,185,129,.55), inset 0 -1px 0 rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.30);
}
.btn-primary:hover {
  box-shadow: 0 14px 36px -8px rgba(16,185,129,.55), inset 0 -1px 0 rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.36);
}
.btn-secondary {
  color: var(--text-hi);
  background: rgba(255,255,255,.04);
  border-color: var(--border-strong);
  backdrop-filter: blur(8px);
}
.btn-secondary:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.22);
}
.btn-ghost { color: var(--text-hi); }
.btn-ghost:hover { color: var(--emerald-300); }

.btn-lg { padding: 16px 26px; font-size: 1rem; }
.btn-sm { padding: 10px 16px; font-size: 0.875rem; }

.btn .icon { width: 18px; height: 18px; }

/* -------- Header -------- */
.site-header {
  position: fixed; inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background var(--t-med), border-color var(--t-med), backdrop-filter var(--t-med);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(6,13,14,0.72);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom-color: var(--border);
  box-shadow: 0 1px 0 rgba(167,243,208,.04);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  height: 40px;
}
.brand img { height: 32px; width: auto; }

.nav-links {
  display: flex; align-items: center; gap: 4px;
  list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  display: inline-flex; align-items: center;
  padding: 10px 14px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-mid);
  border-radius: 999px;
  transition: color var(--t-fast), background var(--t-fast);
}
.nav-links a:hover { color: var(--text-hi); background: rgba(255,255,255,.04); }
.nav-links a[aria-current="page"] {
  color: var(--text-hi);
  background: rgba(255,255,255,.06);
}
.nav-cta { display: flex; align-items: center; gap: 8px; }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-hi);
}
.nav-toggle:hover { background: rgba(255,255,255,.04); }
.nav-toggle .icon { width: 22px; height: 22px; }

@media (max-width: 880px) {
  .nav-links, .nav-cta .btn-secondary { display: none; }
  .nav-toggle { display: inline-flex; }
}

.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0 0;
  z-index: 99;
  background: rgba(4,9,10,0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: none;
  padding: 24px;
  flex-direction: column; gap: 8px;
  border-top: 1px solid var(--border);
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a {
  padding: 14px 18px;
  font-size: 1.05rem;
  border-radius: 12px;
  color: var(--text-hi);
  border: 1px solid transparent;
}
.mobile-nav a:hover, .mobile-nav a[aria-current="page"] {
  background: rgba(255,255,255,.04);
  border-color: var(--border);
}
.mobile-nav .btn { margin-top: 8px; align-self: flex-start; }

/* -------- Hero -------- */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + 80px);
  padding-bottom: 96px;
  overflow: hidden;
  isolation: isolate;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
}
.hero h1 { margin: 18px 0 22px; }
.hero .lede { margin-bottom: 32px; max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.hero-trust {
  display: flex; flex-wrap: wrap; gap: 18px 28px;
  padding-top: 24px;
  border-top: 1px dashed var(--border);
}
.hero-trust span {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.85rem; color: var(--text-mid);
  font-family: var(--font-mono); letter-spacing: .04em;
}
.hero-trust span svg { color: var(--emerald-400); width: 16px; height: 16px; }

/* Animated mesh background */
.hero-bg {
  position: absolute; inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.hero-bg::before, .hero-bg::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .55;
  will-change: transform;
}
.hero-bg::before {
  width: 720px; height: 720px;
  left: -180px; top: -240px;
  background: radial-gradient(circle at 30% 30%, rgba(16,185,129,.55), transparent 60%);
  animation: float-a 16s ease-in-out infinite;
}
.hero-bg::after {
  width: 640px; height: 640px;
  right: -160px; bottom: -200px;
  background: radial-gradient(circle at 70% 70%, rgba(34,211,238,.40), transparent 60%);
  animation: float-b 18s ease-in-out infinite;
}
@keyframes float-a {
  0%,100% { transform: translate3d(0,0,0) scale(1); }
  50% { transform: translate3d(60px,40px,0) scale(1.06); }
}
@keyframes float-b {
  0%,100% { transform: translate3d(0,0,0) scale(1); }
  50% { transform: translate3d(-50px,-30px,0) scale(1.08); }
}

.grid-overlay {
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 0%, #000 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 0%, #000 40%, transparent 80%);
  pointer-events: none;
}

/* Hero terminal / panel */
.hero-panel {
  position: relative;
  background: linear-gradient(180deg, rgba(15,22,29,.85) 0%, rgba(8,12,17,.85) 100%);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,.06);
  backdrop-filter: blur(12px);
  overflow: hidden;
}
.hero-panel::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(600px 200px at 80% -20%, rgba(16,185,129,.18), transparent 60%),
    radial-gradient(400px 240px at 0% 100%, rgba(34,211,238,.14), transparent 60%);
  pointer-events: none;
}
.hero-panel-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 12px;
  color: var(--text-low);
}
.hero-panel-bar .dot { width: 10px; height: 10px; border-radius: 999px; background: rgba(255,255,255,.14); }
.hero-panel-bar .dot.r { background: #FF5F57; }
.hero-panel-bar .dot.y { background: #FEBC2E; }
.hero-panel-bar .dot.g { background: var(--emerald-400); }
.hero-panel-bar .file { margin-left: 12px; }
.hero-panel-body { padding: 22px; font-family: var(--font-mono); font-size: 13px; line-height: 1.75; color: var(--text-mid); }
.hero-panel-body .ln { color: var(--text-low); margin-right: 14px; user-select: none; }
.hero-panel-body .kw { color: #C792EA; }
.hero-panel-body .fn { color: var(--emerald-300); }
.hero-panel-body .str { color: #FFD580; }
.hero-panel-body .nm { color: #82AAFF; }
.hero-panel-body .cm { color: var(--text-low); font-style: italic; }
.hero-panel-body .ok { color: var(--emerald-400); }
.hero-panel-body .arrow { color: var(--cyan-glow); }
.hero-panel-stack { display: grid; gap: 4px; }

/* -------- Trust strip -------- */
.trust-strip {
  padding: 28px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.015);
}
.trust-strip-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px 40px;
  align-items: center;
}
@media (max-width: 720px) { .trust-strip-grid { grid-template-columns: 1fr; } }
.trust-strip h6 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-low);
  margin: 0;
}
.trust-list {
  display: flex; flex-wrap: wrap;
  gap: 10px 14px;
  list-style: none; margin: 0; padding: 0;
}
.trust-list li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.025);
  font-size: 0.82rem;
  color: var(--text-mid);
  font-weight: 500;
}
.trust-list li svg { width: 14px; height: 14px; color: var(--emerald-400); }

/* -------- Sections (transparent layers over the page-wide canvas) -------- */
.section-dark, .section-elev {
  position: relative;
  background: transparent;
}
/* Soft horizontal accent — subtler than a solid block, blends section-to-section */
.section-elev::before {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(900px 380px at 50% 0%, rgba(16,185,129,.07), transparent 70%),
    radial-gradient(900px 380px at 50% 100%, rgba(34,211,238,.04), transparent 70%);
  z-index: -1;
}
.section-dark::before {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(900px 320px at 50% 50%, rgba(16,185,129,.04), transparent 70%);
  z-index: -1;
}
/* Gentle dividing line that fades at the edges instead of a hard slab edge */
.section-dark + .section-elev::after,
.section-elev + .section-dark::after {
  content: "";
  position: absolute;
  top: 0; left: 8%; right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.07), transparent);
  pointer-events: none;
}

/* -------- Service cards -------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
@media (max-width: 1024px) { .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px)  { .services-grid { grid-template-columns: 1fr; } }

/* Five-card layout: centre the orphan row of 2 cards on the second row */
@media (min-width: 1025px) {
  .services-five {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .services-five > .card {
    grid-column: span 2;
  }
  .services-five > .card:nth-child(4) { grid-column: 2 / span 2; }
  .services-five > .card:nth-child(5) { grid-column: 4 / span 2; }
}
@media (min-width: 641px) and (max-width: 1024px) {
  .services-five > .card:nth-child(5):last-child {
    grid-column: 1 / -1;
    max-width: 480px;
    justify-self: center;
  }
}

.card {
  position: relative;
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(16,185,129,.05) 0%, rgba(255,255,255,.012) 60%, rgba(34,211,238,.025) 100%),
    linear-gradient(180deg, rgba(11,24,26,.55), rgba(8,18,20,.55));
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  transition: transform var(--t-med), border-color var(--t-med), background var(--t-med), box-shadow var(--t-med);
  isolation: isolate;
  overflow: hidden;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.card::before {
  content: "";
  position: absolute; inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(280px 200px at var(--mx, 50%) var(--my, 0%),
      rgba(16,185,129,.18) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--t-med);
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--border-emerald);
  background:
    linear-gradient(180deg, rgba(16,185,129,.10) 0%, rgba(255,255,255,.02) 60%, rgba(34,211,238,.05) 100%),
    linear-gradient(180deg, rgba(15,31,34,.75), rgba(11,24,26,.75));
  box-shadow: 0 18px 48px -16px rgba(16,185,129,.30);
}
.card:hover::before { opacity: 1; }

.card-icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(16,185,129,.16) 0%, rgba(16,185,129,.04) 100%);
  border: 1px solid var(--border-emerald);
  color: var(--emerald-300);
  margin-bottom: 18px;
}
.card-icon svg { width: 22px; height: 22px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--text-mid); font-size: 0.95rem; line-height: 1.6; }
.card .card-tagline {
  display: block;
  margin: 0 0 12px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--emerald-200);
  letter-spacing: -0.005em;
  line-height: 1.45;
}

.card-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 16px;
  font-size: 0.88rem; font-weight: 600;
  color: var(--emerald-300);
}
.card-link svg { width: 14px; height: 14px; transition: transform var(--t-fast); }
.card:hover .card-link svg { transform: translate(2px, -2px); }

/* -------- Why pillars -------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 20px;
}
@media (max-width: 1024px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .pillars { grid-template-columns: 1fr; } }
.pillar {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background:
    linear-gradient(180deg, rgba(16,185,129,.04), rgba(255,255,255,.012)),
    linear-gradient(180deg, rgba(11,24,26,.55), rgba(8,18,20,.55));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.pillar .num {
  font-family: var(--font-mono);
  font-size: 12px; color: var(--emerald-400);
  letter-spacing: .14em;
  margin-bottom: 14px;
}
.pillar h4 { font-size: 1.1rem; margin-bottom: 8px; }
.pillar p { color: var(--text-mid); font-size: 0.92rem; }

/* -------- Approach timeline -------- */
.approach {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 24px;
}
@media (max-width: 1024px) { .approach { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .approach { grid-template-columns: 1fr; } }
.step {
  position: relative;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background:
    linear-gradient(180deg, rgba(16,185,129,.05), rgba(255,255,255,.012)),
    linear-gradient(180deg, rgba(11,24,26,.55), rgba(8,18,20,.55));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.step .step-no {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(16,185,129,.20), rgba(16,185,129,.04));
  border: 1px solid var(--border-emerald);
  color: var(--emerald-300);
  font-family: var(--font-mono); font-weight: 600; font-size: 13px;
  margin-bottom: 16px;
}
.step h4 { margin-bottom: 6px; }
.step p { color: var(--text-mid); font-size: 0.92rem; }

/* -------- Segments / Audiences -------- */
.segments {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 20px;
}
@media (max-width: 1024px) { .segments { grid-template-columns: 1fr; } }
.segment {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 32px;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(16,22,28,.55), rgba(8,12,17,.85)),
    radial-gradient(600px 240px at 100% 0%, rgba(16,185,129,.18), transparent 70%);
}
.segment .pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--emerald-300);
  background: rgba(16,185,129,.10);
  border: 1px solid var(--border-emerald);
  border-radius: 999px;
  margin-bottom: 18px;
}
.segment h3 { margin-bottom: 12px; }
.segment ul {
  list-style: none; padding: 0; margin: 16px 0 0 0;
  display: flex; flex-direction: column; gap: 8px;
}
.segment ul li {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 0.92rem; color: var(--text-mid);
}
.segment ul li svg { color: var(--emerald-400); width: 16px; height: 16px; flex-shrink: 0; margin-top: 4px; }

/* -------- Regions -------- */
.regions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 20px;
}
@media (max-width: 900px) { .regions { grid-template-columns: 1fr; } }
.region {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background:
    linear-gradient(180deg, rgba(16,185,129,.04), rgba(255,255,255,.012)),
    linear-gradient(180deg, rgba(11,24,26,.55), rgba(8,18,20,.55));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex; flex-direction: column; gap: 6px;
}
.region .code {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--text-low); letter-spacing: .14em; text-transform: uppercase;
}
.region h4 { font-size: 1.05rem; }
.region p { font-size: 0.9rem; color: var(--text-mid); }

/* -------- Big CTA -------- */
.cta-block {
  position: relative;
  padding: clamp(48px, 6vw, 80px);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(700px 400px at 50% 0%, rgba(16,185,129,.18), transparent 70%),
    radial-gradient(700px 400px at 50% 100%, rgba(34,211,238,.10), transparent 70%),
    linear-gradient(180deg, rgba(15,31,34,.85), rgba(8,18,20,.92));
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.6), inset 0 1px 0 rgba(167,243,208,.10);
}
.cta-block::before {
  content: "";
  position: absolute; inset: -2px;
  background: conic-gradient(from 180deg at 50% 50%, transparent 0%, rgba(16,185,129,.45) 22%, transparent 30%, transparent 70%, rgba(34,211,238,.45) 78%, transparent 90%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 1.5px;
  border-radius: var(--r-2xl);
  pointer-events: none;
  animation: spin 18s linear infinite;
  opacity: .65;
}
@keyframes spin { to { transform: rotate(360deg); } }
.cta-block h2 { margin-bottom: 14px; }
.cta-block p { color: var(--text-mid); margin: 0 auto 28px; max-width: 56ch; }
.cta-actions { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* -------- Footer -------- */
.site-footer {
  position: relative;
  padding: 80px 0 32px;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, var(--ink-900), var(--ink-950));
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--border);
}
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1/-1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand img { height: 36px; margin-bottom: 16px; }
.footer-brand p { color: var(--text-mid); font-size: 0.92rem; max-width: 38ch; }
.footer-col h6 {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--text-low);
  margin: 0 0 18px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--text-mid); font-size: 0.92rem; transition: color var(--t-fast); }
.footer-col a:hover { color: var(--emerald-300); }

.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 16px;
  justify-content: space-between; align-items: center;
  padding-top: 28px;
  font-size: 0.82rem; color: var(--text-low);
}
.socials { display: inline-flex; gap: 8px; }
.socials a {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-mid);
  transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast);
}
.socials a:hover { color: var(--emerald-300); border-color: var(--border-emerald); background: rgba(16,185,129,.06); }
.socials svg { width: 16px; height: 16px; }

/* -------- About page bits -------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}
@media (max-width: 1024px) { .split { grid-template-columns: 1fr; gap: 40px; } }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}
.stat {
  padding: 22px;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(16,185,129,.05), rgba(255,255,255,.012)),
    linear-gradient(180deg, rgba(11,24,26,.55), rgba(8,18,20,.55));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.stat .num {
  font-size: clamp(2rem, 3vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-hi);
  background: linear-gradient(180deg, #FFFFFF 0%, var(--emerald-300) 110%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 6px;
  font-variation-settings: "opsz" 32;
}
.stat .lbl { font-size: 0.82rem; color: var(--text-low); font-family: var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }

.principles {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
}
@media (max-width: 720px) { .principles { grid-template-columns: 1fr; } }
.principle {
  display: flex; gap: 16px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: rgba(255,255,255,.02);
}
.principle .ico {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(16,185,129,.10);
  border: 1px solid var(--border-emerald);
  color: var(--emerald-300);
}
.principle .ico svg { width: 20px; height: 20px; }
.principle h4 { margin-bottom: 4px; }
.principle p { color: var(--text-mid); font-size: 0.92rem; }

.meaning {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
}
@media (max-width: 720px) { .meaning { grid-template-columns: 1fr; } }
.meaning .item {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background:
    linear-gradient(180deg, rgba(16,185,129,.10) 0%, rgba(255,255,255,.012) 60%, rgba(34,211,238,.04) 100%),
    linear-gradient(180deg, rgba(11,24,26,.6), rgba(8,18,20,.6));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform var(--t-med), border-color var(--t-med), box-shadow var(--t-med), background var(--t-med);
}
.meaning .item:hover {
  border-color: var(--border-emerald);
  box-shadow: 0 18px 48px -16px rgba(16,185,129,.30);
}
.meaning .item .glyph {
  font-family: var(--font-mono);
  font-size: clamp(2.6rem, 4vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, var(--emerald-300), var(--cyan-glow));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 8px;
}

/* -------- Page hero (slim, for inner pages) -------- */
.page-hero {
  position: relative;
  padding-top: calc(var(--header-h) + 80px);
  padding-bottom: 56px;
  overflow: hidden;
  isolation: isolate;
}
.page-hero h1 { margin: 16px 0 14px; max-width: 22ch; }
.page-hero p.lede { max-width: 60ch; }
.page-hero .hero-bg { z-index: -1; }

/* -------- Contact -------- */
.contact-grid {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
@media (max-width: 1024px) { .contact-grid { grid-template-columns: 1fr; gap: 32px; } }

.form-card {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background:
    linear-gradient(180deg, rgba(16,185,129,.06) 0%, rgba(255,255,255,.012) 50%, rgba(34,211,238,.04) 100%),
    linear-gradient(180deg, rgba(11,24,26,.65), rgba(8,18,20,.65));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 24px 60px -28px rgba(0,0,0,.55), inset 0 1px 0 rgba(167,243,208,.08);
}
.form-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  margin-bottom: 16px;
}
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-field {
  display: flex; flex-direction: column; gap: 8px;
  margin-bottom: 16px;
}
.form-field label {
  font-size: 0.82rem;
  color: var(--text-mid);
  font-weight: 500;
  letter-spacing: -0.005em;
}
.form-field label .req { color: var(--emerald-400); }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255,255,255,.02);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  color: var(--text-hi);
  font-size: 0.95rem;
  transition: border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--text-low); }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 0;
  border-color: var(--emerald-500);
  background: rgba(16,185,129,.04);
  box-shadow: 0 0 0 4px rgba(16,185,129,.10);
}
.form-field textarea { min-height: 140px; resize: vertical; }
.form-field select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2397A3AE' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.form-meta {
  display: flex; gap: 16px; align-items: flex-start;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed var(--border);
  font-size: 0.82rem;
  color: var(--text-low);
}
.form-meta svg { width: 16px; height: 16px; color: var(--emerald-400); flex-shrink: 0; margin-top: 2px; }

.form-result {
  display: none;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(16,185,129,.08);
  border: 1px solid var(--border-emerald);
  color: var(--emerald-200);
  margin-bottom: 16px;
  font-size: 0.92rem;
}
.form-result.show { display: block; }

.contact-side {
  display: flex; flex-direction: column; gap: 16px;
}
.channel {
  display: flex; gap: 16px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background:
    linear-gradient(180deg, rgba(16,185,129,.04), rgba(255,255,255,.012)),
    linear-gradient(180deg, rgba(11,24,26,.55), rgba(8,18,20,.55));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
}
.channel:hover {
  border-color: var(--border-emerald);
  background:
    linear-gradient(180deg, rgba(16,185,129,.09), rgba(255,255,255,.02)),
    linear-gradient(180deg, rgba(15,31,34,.7), rgba(11,24,26,.7));
  box-shadow: 0 14px 40px -18px rgba(16,185,129,.25);
}
.channel .ico {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(16,185,129,.10);
  border: 1px solid var(--border-emerald);
  color: var(--emerald-300);
}
.channel .ico svg { width: 20px; height: 20px; }
.channel h4 { margin-bottom: 4px; font-size: 0.98rem; }
.channel p, .channel a { color: var(--text-mid); font-size: 0.9rem; }
.channel a { color: var(--emerald-300); }
.channel a:hover { text-decoration: underline; }

/* -------- Privacy / prose -------- */
.prose {
  max-width: 760px;
  margin: 0 auto;
}
.prose h2 {
  font-size: 1.5rem;
  margin: 48px 0 14px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.prose h3 { font-size: 1.05rem; margin: 24px 0 10px; color: var(--text-hi); }
.prose p, .prose li {
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.75;
}
.prose p { margin: 0 0 14px; }
.prose ul { margin: 0 0 18px; padding-left: 22px; }
.prose ul li { margin-bottom: 8px; }
.prose strong { color: var(--text-hi); font-weight: 600; }
.prose a { color: var(--emerald-300); border-bottom: 1px dashed rgba(110, 231, 183, .35); }
.prose a:hover { color: var(--emerald-200); }
.prose .effective {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(16,185,129,.08);
  border: 1px solid var(--border-emerald);
  color: var(--emerald-300);
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: .08em;
  margin-bottom: 24px;
}

.toc {
  position: sticky; top: calc(var(--header-h) + 24px);
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background:
    linear-gradient(180deg, rgba(16,185,129,.05), rgba(255,255,255,.012)),
    linear-gradient(180deg, rgba(11,24,26,.65), rgba(8,18,20,.65));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  max-height: calc(100vh - var(--header-h) - 48px);
  overflow: auto;
  box-shadow: 0 14px 40px -22px rgba(0,0,0,.45);
}
.toc h6 {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--text-low); margin: 0 0 12px;
}
.toc ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.toc a {
  display: block; padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.9rem; color: var(--text-mid);
  transition: color var(--t-fast), background var(--t-fast);
}
.toc a:hover { color: var(--text-hi); background: rgba(255,255,255,.04); }
.toc a.is-active { color: var(--emerald-300); background: rgba(16,185,129,.06); }

.privacy-grid {
  display: grid;
  grid-template-columns: 240px minmax(0,1fr);
  gap: 48px;
  align-items: start;
}
@media (max-width: 960px) {
  .privacy-grid { grid-template-columns: 1fr; }
  .toc { position: relative; top: 0; }
}

/* -------- Animations on scroll -------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--t-slow), transform var(--t-slow);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 60ms; }
.reveal-delay-2 { transition-delay: 120ms; }
.reveal-delay-3 { transition-delay: 180ms; }
.reveal-delay-4 { transition-delay: 240ms; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* -------- Inline icons size helper -------- */
.icon { width: 24px; height: 24px; }
.icon-sm { width: 16px; height: 16px; }
.icon-xs { width: 14px; height: 14px; }

/* -------- Skip-link & accessibility -------- */
.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--emerald-500); color: #03110B;
  padding: 12px 18px; border-radius: 8px; font-weight: 600;
  z-index: 999;
}
.skip:focus { left: 16px; top: 16px; }

:focus-visible { outline: 2px solid var(--emerald-400); outline-offset: 2px; border-radius: 6px; }

/* -------- Helpers -------- */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
  margin: 0;
  border: 0;
}

.code-mono { font-family: var(--font-mono); }

/* ============================================================
   About — Quote block
   ============================================================ */
.quote-block {
  position: relative;
  padding: clamp(40px, 5vw, 64px);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  background:
    linear-gradient(180deg, rgba(16,185,129,.08), rgba(16,185,129,0) 70%),
    linear-gradient(180deg, var(--ink-800), var(--ink-900));
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.quote-block::before {
  content: "";
  position: absolute; inset: -2px;
  background: conic-gradient(from 90deg at 50% 50%, transparent 0%, rgba(16,185,129,.40) 22%, transparent 32%, transparent 70%, rgba(34,211,238,.40) 80%, transparent 92%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 1.5px;
  border-radius: var(--r-2xl);
  pointer-events: none;
  animation: spin 24s linear infinite;
  opacity: .55;
}
.quote-block .quote-mark {
  width: 40px; height: 40px;
  color: var(--emerald-400);
  margin: 0 auto 18px;
  opacity: .85;
}
.quote-block h2 {
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.015em;
  max-width: 28ch;
  margin: 0 auto;
}

/* ============================================================
   3D Diagnostic Core (hero)
   ============================================================ */
.diagnostic-core {
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 4;
  min-height: 380px;
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  background:
    radial-gradient(600px 320px at 50% 20%, rgba(16,185,129,.08), transparent 70%),
    linear-gradient(180deg, rgba(15,22,29,.85) 0%, rgba(8,12,17,.92) 100%);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,.06);
  backdrop-filter: blur(12px);
  overflow: hidden;
  isolation: isolate;
}
.diagnostic-core::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(220px 160px at 80% 0%, rgba(16,185,129,.16), transparent 60%),
    radial-gradient(280px 200px at 0% 100%, rgba(34,211,238,.14), transparent 60%);
  pointer-events: none;
}
.dc-bar {
  position: relative; z-index: 3;
  display: flex; align-items: center; gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 12px;
  color: var(--text-low);
}
.dc-bar .dot { width: 10px; height: 10px; border-radius: 999px; background: rgba(255,255,255,.14); }
.dc-bar .dot.r { background: #FF5F57; }
.dc-bar .dot.y { background: #FEBC2E; }
.dc-bar .dot.g { background: var(--emerald-400); }
.dc-bar .file { margin-left: 12px; flex: 1; }
.dc-bar .live {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--emerald-300);
  font-size: 11px; letter-spacing: .14em;
}
.dc-bar .live::before {
  content: ""; width: 6px; height: 6px; border-radius: 999px;
  background: var(--emerald-400);
  box-shadow: 0 0 10px var(--emerald-400);
  animation: pulse-dot 1.6s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: .35; }
  50% { opacity: 1; }
}

/* The 3D stage */
.dc-stage {
  position: relative;
  width: 100%;
  height: calc(100% - 50px);
  display: grid;
  place-items: center;
  perspective: 1400px;
  perspective-origin: 50% 55%;
  overflow: hidden;
}
.dc-scene {
  position: relative;
  width: 360px;
  height: 360px;
  transform-style: preserve-3d;
  animation: dc-scene-tilt 18s ease-in-out infinite;
}
@keyframes dc-scene-tilt {
  0%, 100% { transform: rotateX(8deg) rotateY(-12deg); }
  50% { transform: rotateX(-4deg) rotateY(14deg); }
}

/* Rings */
.dc-ring {
  position: absolute;
  top: 50%; left: 50%;
  border: 1px solid rgba(110, 231, 183, .35);
  border-radius: 50%;
  transform-style: preserve-3d;
}
.dc-ring::after {
  content: "";
  position: absolute; inset: -1px;
  border-radius: 50%;
  border: 1px solid transparent;
  border-top-color: var(--emerald-400);
  border-right-color: rgba(34, 211, 238, .55);
  filter: blur(0.5px);
}
.dc-ring-1 {
  width: 200px; height: 200px;
  margin-left: -100px; margin-top: -100px;
  transform: rotateX(72deg) rotateZ(0deg);
  animation: dc-ring-spin-a 14s linear infinite;
}
.dc-ring-2 {
  width: 290px; height: 290px;
  margin-left: -145px; margin-top: -145px;
  transform: rotateX(64deg) rotateY(28deg);
  animation: dc-ring-spin-b 22s linear infinite reverse;
  border-color: rgba(94, 234, 212, .28);
}
.dc-ring-3 {
  width: 380px; height: 380px;
  margin-left: -190px; margin-top: -190px;
  transform: rotateX(78deg) rotateY(-22deg);
  animation: dc-ring-spin-c 30s linear infinite;
  border-color: rgba(34, 211, 238, .22);
}
@keyframes dc-ring-spin-a {
  from { transform: rotateX(72deg) rotateZ(0deg); }
  to   { transform: rotateX(72deg) rotateZ(360deg); }
}
@keyframes dc-ring-spin-b {
  from { transform: rotateX(64deg) rotateY(28deg) rotateZ(0deg); }
  to   { transform: rotateX(64deg) rotateY(28deg) rotateZ(360deg); }
}
@keyframes dc-ring-spin-c {
  from { transform: rotateX(78deg) rotateY(-22deg) rotateZ(0deg); }
  to   { transform: rotateX(78deg) rotateY(-22deg) rotateZ(360deg); }
}

/* Orbital nodes (icons rotating with each ring) */
.dc-node {
  position: absolute;
  top: 50%; left: 50%;
  transform-style: preserve-3d;
}
.dc-node .chip {
  position: absolute;
  width: 36px; height: 36px;
  margin-left: -18px; margin-top: -18px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: linear-gradient(180deg, rgba(16,185,129,.22), rgba(16,185,129,.04));
  border: 1px solid var(--border-emerald);
  color: var(--emerald-200);
  box-shadow: 0 0 24px rgba(16,185,129,.35);
  backdrop-filter: blur(6px);
}
.dc-node .chip svg { width: 18px; height: 18px; }
/* Counter-rotate the chip so icon stays upright */
.dc-node .chip { animation: chip-counter 14s linear infinite; }

/* Place 4 nodes around ring 1 */
.dc-node-1a { transform: rotateX(72deg) rotateZ(0deg)   translateX(100px); }
.dc-node-1b { transform: rotateX(72deg) rotateZ(90deg)  translateX(100px); }
.dc-node-1c { transform: rotateX(72deg) rotateZ(180deg) translateX(100px); }
.dc-node-1d { transform: rotateX(72deg) rotateZ(270deg) translateX(100px); }
.dc-node-1a .chip, .dc-node-1b .chip, .dc-node-1c .chip, .dc-node-1d .chip {
  animation: chip-counter-1 14s linear infinite;
}
/* Place 3 nodes on ring 2 */
.dc-node-2a { transform: rotateX(64deg) rotateY(28deg) rotateZ(40deg)   translateX(145px); }
.dc-node-2b { transform: rotateX(64deg) rotateY(28deg) rotateZ(160deg)  translateX(145px); }
.dc-node-2c { transform: rotateX(64deg) rotateY(28deg) rotateZ(280deg)  translateX(145px); }
.dc-node-2a .chip, .dc-node-2b .chip, .dc-node-2c .chip {
  animation: chip-counter-2 22s linear infinite reverse;
}

/* Counter-rotation keyframes — keep icons facing the camera */
@keyframes chip-counter-1 {
  from { transform: rotateZ(0deg)   rotateX(-72deg); }
  to   { transform: rotateZ(-360deg) rotateX(-72deg); }
}
@keyframes chip-counter-2 {
  from { transform: rotateZ(0deg)   rotateY(-28deg) rotateX(-64deg); }
  to   { transform: rotateZ(360deg) rotateY(-28deg) rotateX(-64deg); }
}

/* Central 3D DNA double helix (replaces the core orb) */
.dc-helix {
  position: absolute;
  top: 50%; left: 50%;
  width: 64px; height: 200px;
  margin-left: -32px; margin-top: -100px;
  transform-style: preserve-3d;
  perspective: 700px;
  animation: dc-helix-spin 10s linear infinite;
  z-index: 2;
  pointer-events: none;
}
.dc-helix .rung {
  position: absolute;
  top: calc(var(--i) * 13px + 8px);
  left: 50%;
  width: 58px; height: 2px;
  margin-left: -29px;
  background: linear-gradient(90deg, var(--emerald-300), var(--cyan-glow));
  border-radius: 2px;
  box-shadow: 0 0 6px rgba(16,185,129,.55);
  transform-origin: 50% 50%;
  transform-style: preserve-3d;
  transform: rotateY(calc(var(--i) * 30deg));
}
.dc-helix .rung::before, .dc-helix .rung::after {
  content: "";
  position: absolute; top: -2.5px;
  width: 7px; height: 7px;
  border-radius: 50%;
  box-shadow: 0 0 8px currentColor;
}
.dc-helix .rung::before { left: -3.5px;  background: var(--emerald-300); color: var(--emerald-300); }
.dc-helix .rung::after  { right: -3.5px; background: var(--cyan-glow);   color: var(--cyan-glow);  }
@keyframes dc-helix-spin {
  from { transform: rotateY(0deg)   rotateZ(-2deg); }
  to   { transform: rotateY(360deg) rotateZ(-2deg); }
}

/* Soft emerald aura behind the helix */
.dc-aura {
  position: absolute;
  top: 50%; left: 50%;
  width: 200px; height: 240px;
  margin-left: -100px; margin-top: -120px;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 50%, rgba(16,185,129,.40), rgba(34,211,238,.18) 50%, transparent 70%);
  filter: blur(22px);
  z-index: 1;
  pointer-events: none;
  animation: dc-aura-pulse 5s ease-in-out infinite;
}
@keyframes dc-aura-pulse {
  0%, 100% { opacity: .6;  transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.10); }
}

/* Floating tissue-slide thumbnails (digital pathology cards) */
.dc-slide-wrap {
  position: absolute;
  transform-style: preserve-3d;
  z-index: 3;
}
.dc-slide-l {
  top: 16%; left: 5%;
  transform: rotateY(22deg) rotateX(-6deg);
}
.dc-slide-r {
  bottom: 16%; right: 5%;
  transform: rotateY(-22deg) rotateX(6deg);
}
.dc-slide {
  position: relative;
  width: 96px; height: 68px;
  border-radius: 6px;
  border: 1px solid rgba(110,231,183,.50);
  overflow: hidden;
  background-color: #0E1A14;
  background-image:
    radial-gradient(circle at 25% 30%, rgba(244, 114, 182, .42) 0 22%, transparent 40%),
    radial-gradient(circle at 70% 55%, rgba(167, 139, 250, .38) 0 16%, transparent 34%),
    radial-gradient(circle at 50% 80%, rgba(244, 114, 182, .32) 0 12%, transparent 28%),
    radial-gradient(circle at 30% 70%, rgba(190, 24, 93, .55) 0 3%, transparent 7%),
    radial-gradient(circle at 65% 35%, rgba(190, 24, 93, .55) 0 2.4%, transparent 5%),
    radial-gradient(circle at 80% 70%, rgba(190, 24, 93, .50) 0 2%, transparent 4.5%);
  box-shadow:
    0 0 0 1px rgba(8,12,17,.6) inset,
    0 8px 22px rgba(0,0,0,.55),
    0 0 14px rgba(16,185,129,.22);
  animation: dc-slide-float 6.5s ease-in-out infinite;
}
.dc-slide-r .dc-slide { animation-delay: -2.2s; }
.dc-slide::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(110,231,183,.10) 1px, transparent 1px) 0 0 / 14px 14px,
    linear-gradient(to bottom, rgba(110,231,183,.10) 1px, transparent 1px) 0 0 / 14px 14px;
  mix-blend-mode: screen;
  pointer-events: none;
}
.dc-slide .dc-slide-strip {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 3px 6px;
  background: linear-gradient(180deg, transparent, rgba(4,9,10,.92));
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--emerald-300);
  z-index: 2;
}
.dc-slide .dc-slide-scan {
  position: absolute; top: 0; bottom: 0; left: -30%;
  width: 28%;
  background: linear-gradient(90deg, transparent, rgba(34,211,238,.55) 50%, transparent);
  filter: blur(0.4px);
  mix-blend-mode: screen;
  animation: dc-slide-scan 4s linear infinite;
  z-index: 1;
}
@keyframes dc-slide-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
@keyframes dc-slide-scan {
  0%   { left: -30%; }
  100% { left: 100%; }
}

/* ============================================================
   3D Dashboard HUD (replaces orbital scene inside .diagnostic-core)
   Implementation / lab-IT command-centre look
   ============================================================ */
.dc-dashboard {
  position: absolute; inset: 0;
  padding: 64px 22px 22px;       /* top padding clears the chrome bar */
  display: flex;
  flex-direction: column;
  gap: 10px;
  perspective: 1400px;
  perspective-origin: 50% 35%;
  z-index: 2;
}
.dc-dashboard-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transform-style: preserve-3d;
  transform: rotateX(8deg) rotateY(-3deg);
  animation: dash-float 18s ease-in-out infinite;
}
@keyframes dash-float {
  0%, 100% { transform: rotateX(8deg)  rotateY(-3deg); }
  50%      { transform: rotateX(4deg)  rotateY(3deg);  }
}

.dash-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  transform-style: preserve-3d;
}

/* --- Generic tile (KPI / status / progress) --- */
.tile {
  position: relative;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(16,185,129,.10) 0%, rgba(255,255,255,.012) 60%, rgba(34,211,238,.04) 100%),
    linear-gradient(180deg, rgba(11,24,26,.78), rgba(8,18,20,.78));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow:
    0 8px 24px -10px rgba(0,0,0,.55),
    inset 0 1px 0 rgba(167,243,208,.10);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform var(--t-med), border-color var(--t-med);
}
.tile.t-front { transform: translateZ(28px); border-color: var(--border-emerald); }
.tile.t-mid   { transform: translateZ(14px); }
.tile.t-back  { transform: translateZ(6px);  }

/* Inner pulse glow on tile */
.tile::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(140px 80px at 100% 0%, rgba(16,185,129,.18), transparent 60%);
  pointer-events: none;
}

/* Mini scan line per tile */
.tile::before {
  content: "";
  position: absolute; left: -20%; top: 0; bottom: 0;
  width: 16%;
  background: linear-gradient(90deg, transparent, rgba(34,211,238,.18), transparent);
  filter: blur(0.6px);
  mix-blend-mode: screen;
  animation: tile-sweep 7s linear infinite;
  pointer-events: none;
}
@keyframes tile-sweep {
  0%   { left: -20%; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

/* Common label / tile heading */
.tile-lbl {
  display: block;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .16em;
  color: var(--text-low);
  text-transform: uppercase;
}

/* --- KPI big number --- */
.kpi-val {
  display: flex; align-items: baseline; gap: 4px;
  margin-top: 4px;
  font-family: var(--font-mono);
}
.kpi-val b {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  color: var(--emerald-300);
  letter-spacing: -0.02em;
  text-shadow: 0 0 14px rgba(16,185,129,.55);
  line-height: 1;
}
.kpi-val i {
  font-size: 12px;
  color: var(--text-mid);
  font-style: normal;
  letter-spacing: .04em;
}
.kpi-trend {
  font-size: 10px;
  color: var(--emerald-300);
  margin-left: auto;
  font-family: var(--font-mono);
  letter-spacing: .04em;
}

/* --- Sparkline (mini bar chart) --- */
.spark {
  display: flex; align-items: flex-end; gap: 2px;
  height: 18px;
  margin-top: 6px;
}
.spark span {
  flex: 1;
  border-radius: 1.5px;
  background: linear-gradient(180deg, var(--cyan-glow), var(--emerald-500));
  box-shadow: 0 0 4px rgba(34,211,238,.35);
  animation: spark-grow .8s cubic-bezier(.2,.7,.2,1) backwards;
}
@keyframes spark-grow { from { height: 0%; opacity: 0; } }
/* Sparkline pattern A: ascending */
.spark.up span:nth-child(1) { height: 30%; animation-delay: 0s; }
.spark.up span:nth-child(2) { height: 42%; animation-delay: .08s; }
.spark.up span:nth-child(3) { height: 55%; animation-delay: .16s; }
.spark.up span:nth-child(4) { height: 70%; animation-delay: .24s; }
.spark.up span:nth-child(5) { height: 80%; animation-delay: .32s; }
.spark.up span:nth-child(6) { height: 92%; animation-delay: .40s; }
.spark.up span:nth-child(7) { height: 100%;animation-delay: .48s; }
/* Sparkline pattern B: descending burndown */
.spark.down span:nth-child(1) { height: 95%; animation-delay: 0s; }
.spark.down span:nth-child(2) { height: 80%; animation-delay: .08s; }
.spark.down span:nth-child(3) { height: 65%; animation-delay: .16s; }
.spark.down span:nth-child(4) { height: 50%; animation-delay: .24s; }
.spark.down span:nth-child(5) { height: 38%; animation-delay: .32s; }
.spark.down span:nth-child(6) { height: 28%; animation-delay: .40s; }
.spark.down span:nth-child(7) { height: 18%; animation-delay: .48s; }

/* --- Progress bar tile --- */
.tile-progress-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
}
.tile-progress-head b {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--emerald-300);
  letter-spacing: -0.01em;
  text-shadow: 0 0 10px rgba(16,185,129,.55);
}
.bar {
  position: relative;
  height: 6px;
  margin-top: 8px;
  border-radius: 3px;
  background: rgba(167,243,208,.08);
  overflow: hidden;
}
.bar > i {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 0;
  background: linear-gradient(90deg, var(--emerald-500), var(--cyan-glow));
  border-radius: 3px;
  box-shadow: 0 0 12px rgba(16,185,129,.65);
  animation: bar-fill 2.2s cubic-bezier(.2,.7,.2,1) forwards;
}
@keyframes bar-fill { to { width: var(--w, 85%); } }
.bar::after {
  content: "";
  position: absolute; top: 0; bottom: 0;
  width: 28px; left: -28px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
  filter: blur(0.5px);
  animation: bar-sweep 3.2s linear infinite 1.6s;
}
@keyframes bar-sweep { from { left: -28px; } to { left: 100%; } }

/* Tick markers under bar */
.bar-ticks {
  display: flex; justify-content: space-between;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-low);
  letter-spacing: .08em;
}

/* --- Status pills (interfaces / validation) --- */
.pills {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 6px;
}
.pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 9px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .10em;
  border-radius: 999px;
  background: rgba(16,185,129,.12);
  border: 1px solid var(--border-emerald);
  color: var(--emerald-200);
  white-space: nowrap;
}
.pill::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--emerald-400);
  box-shadow: 0 0 8px var(--emerald-400);
  animation: pulse-soft 1.6s ease-in-out infinite;
}
.pill.warn { background: rgba(254,188,46,.10); border-color: rgba(254,188,46,.45); color: #FFD580; }
.pill.warn::before { background: #FEBC2E; box-shadow: 0 0 8px #FEBC2E; }

/* Static check pill (no pulse dot) */
.check {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--emerald-300);
  letter-spacing: .04em;
  text-shadow: 0 0 8px rgba(16,185,129,.45);
}
.check svg { width: 14px; height: 14px; }

/* Reduced motion: kill new dashboard animations */
@media (prefers-reduced-motion: reduce) {
  .dc-dashboard-inner,
  .tile::before,
  .spark span,
  .bar > i,
  .bar::after,
  .pill::before {
    animation: none !important;
  }
  .bar > i { width: var(--w, 85%); }
}

/* HUD overlay (status lines) */
.dc-hud {
  position: absolute; left: 18px; right: 18px; bottom: 14px;
  z-index: 2;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--text-mid);
}
.dc-hud .stat {
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(8,12,17,.55);
  backdrop-filter: blur(8px);
  display: flex; flex-direction: column; gap: 2px;
}
.dc-hud .lbl {
  font-size: 9px; letter-spacing: .14em;
  color: var(--text-low); text-transform: uppercase;
}
.dc-hud .val { color: var(--emerald-300); font-weight: 600; }
@media (max-width: 540px) {
  .dc-hud { grid-template-columns: repeat(2, 1fr); }
  .dc-hud .stat:nth-child(3) { display: none; }
}

/* Scanline / sweep effect across the stage */
.dc-stage::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(16,185,129,.10) 50%, transparent 70%);
  mix-blend-mode: screen;
  pointer-events: none;
  animation: dc-scan 6s linear infinite;
}
@keyframes dc-scan {
  0%   { transform: translateY(-60%); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(120%); opacity: 0; }
}

/* Subtle grid floor under the scene */
.dc-stage::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 14%;
  width: 460px; height: 200px;
  margin-left: -230px;
  background:
    linear-gradient(to right, rgba(110,231,183,.18) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(110,231,183,.18) 1px, transparent 1px);
  background-size: 22px 22px;
  transform: perspective(700px) rotateX(74deg);
  transform-origin: 50% 100%;
  mask-image: radial-gradient(ellipse at 50% 50%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000 0%, transparent 70%);
  opacity: .35;
  pointer-events: none;
}

/* ============================================================
   Floating particles in hero
   ============================================================ */
.particles {
  position: absolute; inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.particle {
  position: absolute;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--emerald-300);
  box-shadow: 0 0 12px var(--emerald-400);
  opacity: 0;
  animation: particle-rise linear infinite;
}
@keyframes particle-rise {
  0%   { transform: translate3d(0, 100vh, 0) scale(.6); opacity: 0; }
  10%  { opacity: .85; }
  90%  { opacity: .55; }
  100% { transform: translate3d(0, -10vh, 0) scale(1); opacity: 0; }
}

/* ============================================================
   3D Card Tilt (services)
   ============================================================ */
.services-grid { perspective: 1200px; }
.card {
  transform-style: preserve-3d;
  will-change: transform;
}
.card .card-icon,
.card h3,
.card p,
.card .card-link {
  transform: translateZ(20px);
}
.card .card-icon { transform: translateZ(34px); }

/* ============================================================
   Pathology IT Stack (3D pipeline)
   ============================================================ */
.pipeline-wrap {
  position: relative;
  margin-top: clamp(24px, 3vw, 40px);
  perspective: 1600px;
  perspective-origin: 50% 50%;
  overflow: visible;
}
.pipeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 14px;
  transform: rotateX(8deg);
  transform-style: preserve-3d;
  padding: 24px 8px 56px;
}
@media (max-width: 1100px) {
  .pipeline { grid-template-columns: repeat(4, 1fr); transform: none; }
}
@media (max-width: 600px)  {
  .pipeline { grid-template-columns: repeat(2, 1fr); }
}
.stage {
  position: relative;
  padding: 18px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: linear-gradient(180deg, rgba(16,185,129,.06) 0%, rgba(255,255,255,.02) 100%);
  display: flex; flex-direction: column; gap: 10px;
  text-align: left;
  transform-style: preserve-3d;
  transition: transform var(--t-med), border-color var(--t-med), background var(--t-med);
}
.stage:nth-child(odd)  { transform: translateZ(30px); }
.stage:nth-child(even) { transform: translateZ(8px); }
.stage:hover {
  transform: translateZ(50px);
  border-color: var(--border-emerald);
  background: linear-gradient(180deg, rgba(16,185,129,.12) 0%, rgba(255,255,255,.03) 100%);
}
.stage .ico {
  width: 36px; height: 36px;
  border-radius: 9px;
  display: grid; place-items: center;
  background: rgba(16,185,129,.10);
  border: 1px solid var(--border-emerald);
  color: var(--emerald-300);
}
.stage .ico svg { width: 18px; height: 18px; }
.stage .step {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .14em;
  color: var(--text-low);
  text-transform: uppercase;
}
.stage h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-hi);
  letter-spacing: -0.01em;
}
.stage p {
  font-size: 0.78rem;
  color: var(--text-mid);
  line-height: 1.5;
}

/* Connecting flow line under the pipeline (only visible on wide layout) */
.pipeline-flow {
  position: absolute;
  left: 16px; right: 16px; bottom: 22px;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(16,185,129,.35) 12%,
    rgba(34,211,238,.45) 50%,
    rgba(16,185,129,.35) 88%,
    transparent 100%);
  border-radius: 2px;
  filter: blur(0.4px);
  transform: translateZ(-8px);
  pointer-events: none;
}
.pipeline-flow::before {
  content: "";
  position: absolute; top: -3px; left: 0;
  width: 8px; height: 8px;
  border-radius: 999px;
  background: var(--emerald-300);
  box-shadow: 0 0 14px var(--emerald-300);
  animation: flow-pulse 4s linear infinite;
}
@keyframes flow-pulse {
  0%   { left: 0%;   opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}
@media (max-width: 1100px) { .pipeline-flow { display: none; } }

/* Pipeline ambient grid floor */
.pipeline-wrap::after {
  content: "";
  position: absolute;
  left: 50%; bottom: -20px;
  width: 90%; height: 60px;
  transform: translateX(-50%) perspective(700px) rotateX(72deg);
  transform-origin: 50% 100%;
  background:
    linear-gradient(to right, rgba(110,231,183,.16) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(110,231,183,.16) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at 50% 50%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000 0%, transparent 70%);
  opacity: .35;
  pointer-events: none;
}

/* Hero adjustments when 3D core is present */
.hero-grid > .diagnostic-core { min-width: 0; }

/* ============================================================
   Healthcare AI feel: hex grid, EKG pulse, neural dots, AI band
   ============================================================ */

/* --- Hexagonal grid (medical/AI tech texture) --- */
.hex-grid {
  position: absolute; inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .35;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='56' height='98' viewBox='0 0 56 98'><g fill='none' stroke='rgb(110,231,183)' stroke-opacity='0.20' stroke-width='1'><polygon points='28,1 53,15.5 53,34.5 28,49 3,34.5 3,15.5'/><polygon points='28,49.5 53,64 53,83 28,97.5 3,83 3,64'/></g></svg>");
  background-size: 56px 98px;
  mask-image: radial-gradient(ellipse at 50% 35%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 35%, #000 0%, transparent 78%);
}
.hex-grid.dim { opacity: .18; }

/* --- Neural dots (subtle AI brain field) --- */
.neural-dots {
  position: absolute; inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .55;
  background-image: radial-gradient(circle at 50% 50%, rgba(110,231,183,.85) 0.8px, transparent 1.2px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 0%, transparent 75%);
}

/* --- EKG / heartbeat pulse line --- */
.ekg {
  position: absolute;
  left: 0; right: 0;
  height: 26px;
  pointer-events: none;
  overflow: hidden;
}
.ekg svg {
  width: 100%; height: 100%;
  stroke: var(--emerald-300);
  stroke-width: 1.4;
  fill: none;
  filter: drop-shadow(0 0 6px rgba(16,185,129,.55));
}
.ekg path {
  stroke-dasharray: 220 1300;
  animation: ekg-sweep 5.5s linear infinite;
}
@keyframes ekg-sweep {
  from { stroke-dashoffset: 1500; }
  to   { stroke-dashoffset: 0; }
}

/* --- AI insight band: slim band between hero and services --- */
.ai-band {
  position: relative;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 32px 0;
  background:
    linear-gradient(180deg, rgba(16,185,129,.07), rgba(34,211,238,.04));
  overflow: hidden;
  isolation: isolate;
}
.ai-band::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(800px 200px at 50% 50%, rgba(16,185,129,.10), transparent 70%);
  z-index: -1;
  pointer-events: none;
}
.ai-band-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: center;
}
@media (max-width: 800px) { .ai-band-grid { grid-template-columns: 1fr; gap: 18px; } }

.ai-cell {
  display: flex; align-items: center; gap: 14px;
}
.ai-cell .ai-ico {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(16,185,129,.18), rgba(34,211,238,.06));
  border: 1px solid var(--border-emerald);
  color: var(--emerald-200);
  display: grid; place-items: center;
  flex-shrink: 0;
  position: relative;
}
.ai-cell .ai-ico::after {
  content: "";
  position: absolute; inset: -6px;
  border-radius: inherit;
  background: radial-gradient(circle, rgba(16,185,129,.45), transparent 70%);
  z-index: -1;
  filter: blur(8px);
  opacity: .75;
  animation: pulse-soft 3.5s ease-in-out infinite;
}
@keyframes pulse-soft {
  0%, 100% { opacity: .5; transform: scale(1); }
  50%      { opacity: .9; transform: scale(1.08); }
}
.ai-cell .ai-ico svg { width: 22px; height: 22px; }
.ai-cell h5 {
  margin: 0 0 2px;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-hi);
  letter-spacing: -0.005em;
}
.ai-cell p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-mid);
  line-height: 1.45;
}

/* ============================================================
   Pathology imagery: WSI slide showcase, DNA helix,
   histology pattern, microscope lens, cell particles
   ============================================================ */

/* --- WSI / digital pathology slide showcase --- */
.slide-showcase {
  position: relative;
  margin: 0 auto;
  max-width: 980px;
  perspective: 1600px;
  perspective-origin: 50% 40%;
}
.slide-showcase .slide-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 7;
  transform-style: preserve-3d;
  transform: rotateX(18deg) rotateZ(-2deg);
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, rgba(15,22,29,.85), rgba(8,12,17,.92));
  border: 1px solid var(--border-strong);
  overflow: hidden;
  box-shadow:
    0 40px 80px -30px rgba(0,0,0,.65),
    0 0 0 1px rgba(16,185,129,.15) inset,
    0 0 60px -10px rgba(16,185,129,.18);
}
.slide-frame .slide-label {
  position: absolute; top: 14px; left: 18px;
  z-index: 4;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  background: rgba(8,12,17,.65);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--emerald-300);
  backdrop-filter: blur(8px);
}
.slide-frame .slide-label .pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--emerald-400);
  box-shadow: 0 0 10px var(--emerald-400);
  animation: pulse-soft 1.6s ease-in-out infinite;
}
.slide-frame .slide-meta {
  position: absolute; top: 14px; right: 18px;
  z-index: 4;
  display: flex; gap: 10px;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--text-mid);
}
.slide-frame .slide-meta span {
  padding: 5px 10px;
  background: rgba(8,12,17,.55);
  border: 1px solid var(--border);
  border-radius: 8px;
  backdrop-filter: blur(8px);
}
.slide-frame .slide-meta b { color: var(--emerald-300); font-weight: 600; }

/* Histology / stained-tissue background pattern (H&E-inspired) */
.tissue {
  position: absolute; inset: 0;
  z-index: 1;
  background-color: #0E1A14;
  background-image:
    radial-gradient(circle at 12% 28%, rgba(244, 114, 182, .26) 0 9%, transparent 22%),
    radial-gradient(circle at 22% 62%, rgba(167, 139, 250, .22) 0 7%, transparent 18%),
    radial-gradient(circle at 35% 38%, rgba(244, 114, 182, .20) 0 6%, transparent 16%),
    radial-gradient(circle at 48% 70%, rgba(192, 132, 252, .22) 0 8%, transparent 20%),
    radial-gradient(circle at 60% 30%, rgba(244, 114, 182, .24) 0 7%, transparent 18%),
    radial-gradient(circle at 73% 60%, rgba(167, 139, 250, .26) 0 9%, transparent 22%),
    radial-gradient(circle at 86% 38%, rgba(244, 114, 182, .20) 0 6%, transparent 16%),
    radial-gradient(circle at 92% 72%, rgba(192, 132, 252, .22) 0 8%, transparent 20%),
    radial-gradient(circle at 18% 88%, rgba(167, 139, 250, .18) 0 5%, transparent 14%),
    radial-gradient(circle at 56% 14%, rgba(244, 114, 182, .18) 0 5%, transparent 14%),
    /* tiny "nuclei" dots */
    radial-gradient(circle at 30% 50%, rgba(190, 24, 93, .55) 0 1.4%, transparent 2.2%),
    radial-gradient(circle at 65% 45%, rgba(190, 24, 93, .50) 0 1.2%, transparent 2.0%),
    radial-gradient(circle at 80% 25%, rgba(190, 24, 93, .50) 0 1.3%, transparent 2.0%),
    radial-gradient(circle at 45% 80%, rgba(190, 24, 93, .55) 0 1.4%, transparent 2.2%),
    radial-gradient(circle at 15% 65%, rgba(190, 24, 93, .50) 0 1.2%, transparent 2.0%);
  filter: saturate(1.05) brightness(.95);
  animation: tissue-drift 30s ease-in-out infinite alternate;
}
@keyframes tissue-drift {
  from { transform: scale(1) translate(0, 0); }
  to   { transform: scale(1.04) translate(-1%, 0.5%); }
}

/* Emerald grid overlay on the slide (digital scan grid) */
.slide-grid {
  position: absolute; inset: 0;
  z-index: 2;
  background-image:
    linear-gradient(to right, rgba(110,231,183,.10) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(110,231,183,.10) 1px, transparent 1px);
  background-size: 36px 36px;
  mix-blend-mode: screen;
  pointer-events: none;
}

/* Scanning beam moving across the slide */
.slide-scan {
  position: absolute;
  top: 0; bottom: 0; left: -10%;
  width: 22%;
  z-index: 3;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(110,231,183,.10) 30%,
    rgba(34,211,238,.55) 50%,
    rgba(110,231,183,.10) 70%,
    transparent 100%);
  filter: blur(0.4px);
  animation: slide-sweep 5.5s ease-in-out infinite;
  pointer-events: none;
  mix-blend-mode: screen;
}
.slide-scan::before {
  content: "";
  position: absolute; top: 0; bottom: 0;
  left: 50%; width: 2px;
  background: linear-gradient(180deg, transparent, var(--cyan-glow) 50%, transparent);
  box-shadow: 0 0 16px var(--cyan-glow);
  transform: translateX(-50%);
}
@keyframes slide-sweep {
  0%   { left: -22%; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

/* Magnifier lens hovering over a portion of the slide */
.slide-lens {
  position: absolute;
  top: 56%; left: 70%;
  z-index: 3;
  width: 130px; height: 130px;
  border-radius: 50%;
  border: 2px solid rgba(110,231,183,.85);
  box-shadow:
    0 0 0 1px rgba(8,12,17,.4) inset,
    0 0 28px 4px rgba(16,185,129,.45),
    0 0 0 8px rgba(8,12,17,.45);
  background:
    radial-gradient(circle at 35% 35%, rgba(255,255,255,.10), transparent 60%),
    radial-gradient(circle at 50% 50%, rgba(244, 114, 182, .35) 0 22%, rgba(167, 139, 250, .25) 30% 50%, rgba(190, 24, 93, .55) 6% 8%, transparent 70%);
  background-color: #0E1A14;
  transform: translate(-50%, -50%);
  animation: lens-float 8s ease-in-out infinite;
}
.slide-lens::before {
  content: "";
  position: absolute; top: -10px; right: -10px;
  width: 30px; height: 4px;
  background: rgba(110,231,183,.85);
  border-radius: 2px;
  transform: rotate(45deg);
  transform-origin: 0 50%;
  box-shadow: 0 0 10px rgba(16,185,129,.6);
}
@keyframes lens-float {
  0%, 100% { transform: translate(-50%, -50%) translateY(0); }
  50%      { transform: translate(-50%, -50%) translateY(-8px); }
}

/* Bottom plinth / glow under the slide */
.slide-showcase::after {
  content: "";
  position: absolute;
  left: 10%; right: 10%;
  bottom: -28px;
  height: 60px;
  background: radial-gradient(ellipse at 50% 50%, rgba(16,185,129,.30), transparent 70%);
  filter: blur(20px);
  z-index: -1;
  pointer-events: none;
}

/* --- 3D rotating DNA double helix --- */
.dna {
  position: relative;
  width: 120px;
  height: 360px;
  margin: 0 auto;
  transform-style: preserve-3d;
  perspective: 900px;
  animation: dna-rotate 14s linear infinite;
}
.dna .rung {
  position: absolute;
  top: calc(var(--i) * 16px + 10px);
  left: 50%;
  width: 110px;
  height: 3px;
  margin-left: -55px;
  background: linear-gradient(90deg, var(--emerald-400), var(--cyan-glow));
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(16,185,129,.55);
  transform-origin: 50% 50%;
  transform-style: preserve-3d;
  transform: rotateY(calc(var(--i) * 24deg));
}
.dna .rung::before,
.dna .rung::after {
  content: "";
  position: absolute; top: -4px;
  width: 11px; height: 11px;
  border-radius: 50%;
  box-shadow: 0 0 10px currentColor;
}
.dna .rung::before { left: -6px;  background: var(--emerald-300); color: var(--emerald-300); }
.dna .rung::after  { right: -6px; background: var(--cyan-glow);   color: var(--cyan-glow);  }
@keyframes dna-rotate {
  from { transform: rotateY(0deg)   rotateZ(-4deg); }
  to   { transform: rotateY(360deg) rotateZ(-4deg); }
}

/* --- Microscope eyepiece / lens decoration (small inline) --- */
.eyepiece {
  position: relative;
  width: 92px; height: 92px;
  border-radius: 50%;
  border: 2px solid rgba(110,231,183,.55);
  box-shadow:
    0 0 0 6px rgba(16,185,129,.08),
    0 0 26px 4px rgba(16,185,129,.35),
    inset 0 0 24px rgba(0,0,0,.55);
  background:
    radial-gradient(circle at 38% 38%, rgba(255,255,255,.10), transparent 50%),
    radial-gradient(circle at 30% 60%, rgba(244, 114, 182, .35) 0 10%, transparent 22%),
    radial-gradient(circle at 70% 40%, rgba(167, 139, 250, .35) 0 8%, transparent 18%),
    radial-gradient(circle at 50% 70%, rgba(244, 114, 182, .25) 0 6%, transparent 16%),
    radial-gradient(circle at 50% 50%, #0E1A14, #050807);
  animation: lens-float 6s ease-in-out infinite;
}
.eyepiece::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,255,255,.18), transparent 40%);
  mix-blend-mode: screen;
  pointer-events: none;
}

/* --- Histology cell-blob background overlay (subtle) --- */
.histology-bg {
  position: absolute; inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .35;
  background-image:
    radial-gradient(circle at 12% 22%, rgba(244, 114, 182, .14) 0 7%, transparent 18%),
    radial-gradient(circle at 28% 70%, rgba(167, 139, 250, .12) 0 6%, transparent 16%),
    radial-gradient(circle at 50% 38%, rgba(110, 231, 183, .14) 0 5%, transparent 14%),
    radial-gradient(circle at 78% 64%, rgba(244, 114, 182, .14) 0 7%, transparent 18%),
    radial-gradient(circle at 92% 28%, rgba(167, 139, 250, .12) 0 5%, transparent 14%);
  mask-image: radial-gradient(ellipse at 50% 50%, #000 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000 0%, transparent 80%);
  animation: tissue-drift 26s ease-in-out infinite alternate;
}

/* --- Cell particles (replaces simple dot particles) --- */
.particle.cell {
  width: 14px; height: 14px;
  background:
    radial-gradient(circle at 35% 35%, rgba(255,255,255,.30), transparent 50%),
    radial-gradient(circle at 50% 50%, var(--emerald-400) 0%, var(--emerald-700) 70%, transparent 100%);
  box-shadow:
    0 0 12px rgba(16,185,129,.45),
    inset 0 0 6px rgba(0,0,0,.35);
}
.particle.cell.small { width: 8px; height: 8px; }
.particle.cell.large { width: 20px; height: 20px; }
.particle.cell.cyan {
  background:
    radial-gradient(circle at 35% 35%, rgba(255,255,255,.30), transparent 50%),
    radial-gradient(circle at 50% 50%, var(--cyan-glow) 0%, #0e7490 70%, transparent 100%);
  box-shadow: 0 0 12px rgba(34,211,238,.45), inset 0 0 6px rgba(0,0,0,.35);
}

/* --- Pulse halo behind a key word/headline --- */
.halo {
  position: relative;
}
.halo::before {
  content: "";
  position: absolute;
  inset: -8% -6%;
  background: radial-gradient(ellipse at 50% 50%, rgba(16,185,129,.22), transparent 65%);
  filter: blur(22px);
  z-index: -1;
  animation: pulse-soft 4s ease-in-out infinite;
}

/* --- Broaden 3D tilt to more page elements --- */
.pillar, .step, .segment, .region, .channel, .stat, .meaning .item {
  transform-style: preserve-3d;
  transition: transform var(--t-med), border-color var(--t-med), background var(--t-med);
  will-change: transform;
}
.pillar:hover, .step:hover, .segment:hover, .region:hover,
.channel:hover, .stat:hover, .meaning .item:hover {
  border-color: var(--border-strong);
}

/* --- Inner-page hero accents --- */
.page-hero .hex-grid { opacity: .22; }
.page-hero .neural-dots { opacity: .35; }

/* --- Privacy TOC: gentle 3D depth --- */
.toc {
  transform-style: preserve-3d;
  transition: transform var(--t-med), border-color var(--t-med);
}

/* Reduced motion: kill heavy 3D animations */
@media (prefers-reduced-motion: reduce) {
  .dc-scene,
  .dc-ring,
  .dc-ring-1, .dc-ring-2, .dc-ring-3,
  .dc-core,
  .dc-stage::before,
  .particle,
  .pipeline-flow::before,
  .quote-block::before,
  .dc-bar .live::before,
  .dc-node .chip,
  .ekg path,
  .ai-cell .ai-ico::after,
  .halo::before,
  .tissue,
  .slide-scan,
  .slide-lens,
  .eyepiece,
  .dna,
  .histology-bg,
  .dc-helix,
  .dc-aura,
  .dc-slide,
  .dc-slide-scan {
    animation: none !important;
  }
}
.text-hi { color: var(--text-hi); }
.text-mid { color: var(--text-mid); }
.text-low { color: var(--text-low); }
.text-emerald { color: var(--emerald-300); }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }
.mb-2 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 32px; }
.center { text-align: center; }
