/* =========================================================
   Averra — shared styles
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;1,9..144,300;1,9..144,400&family=Space+Grotesk:wght@300;400;500&display=swap');

:root {
  /* day (default) */
  --paper: #FAFAF8;
  --paper-2: #F2F2EE;
  --ink: #0E1414;
  --ink-2: #1A2222;
  --muted: #5A6262;
  --muted-2: #8A8E8B;
  --line: rgba(14, 20, 20, 0.10);
  --line-2: rgba(14, 20, 20, 0.06);

  /* glass surface tokens — Liquid Glass */
  --glass-bg: rgba(255, 255, 255, 0.42);
  --glass-bg-strong: rgba(255, 255, 255, 0.62);
  --glass-border: rgba(255, 255, 255, 0.65);
  --glass-highlight: rgba(255, 255, 255, 0.85);
  --glass-shadow: 0 1px 0 rgba(255,255,255,0.9) inset, 0 -1px 0 rgba(255,255,255,0.35) inset, 0 24px 48px -22px rgba(14,20,20,0.22), 0 6px 14px -6px rgba(14,20,20,0.10);
  --orb-bg: radial-gradient(circle at 30% 25%, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.35) 22%, rgba(255,255,255,0.05) 60%, rgba(255,255,255,0) 100%);

  --teal: #00C9A2;
  --emerald: #00DF92;
  --cyan: #00B8FF;
  --grad: linear-gradient(135deg, #00C9A2 0%, #00DF92 50%, #00B8FF 100%);

  --serif: 'Fraunces', 'Times New Roman', serif;
  --sans: 'Space Grotesk', system-ui, -apple-system, sans-serif;

  --maxw: 1180px;
  --gutter: clamp(20px, 4vw, 48px);

  --bg-warm-1: rgba(0, 201, 162, 0.32);
  --bg-warm-2: rgba(0, 184, 255, 0.22);
}

/* night theme */
:root[data-theme="night"] {
  --paper: #050a0c;
  --paper-2: #0a1418;
  --ink: #F4F7F5;
  --ink-2: #DDE3DF;
  --muted: rgba(244, 247, 245, 0.62);
  --muted-2: rgba(244, 247, 245, 0.42);
  --line: rgba(255, 255, 255, 0.10);
  --line-2: rgba(255, 255, 255, 0.06);

  --glass-bg: rgba(255, 255, 255, 0.06);
  --glass-bg-strong: rgba(255, 255, 255, 0.10);
  --glass-border: rgba(255, 255, 255, 0.14);
  --glass-highlight: rgba(255, 255, 255, 0.22);
  --glass-shadow: 0 1px 0 rgba(255,255,255,0.18) inset, 0 -1px 0 rgba(255,255,255,0.04) inset, 0 24px 60px -22px rgba(0,0,0,0.7), 0 6px 14px -6px rgba(0,0,0,0.4);
  --orb-bg: radial-gradient(circle at 30% 25%, rgba(255,255,255,0.45) 0%, rgba(0, 223, 146, 0.18) 22%, rgba(0, 184, 255, 0.12) 55%, rgba(255,255,255,0) 100%);

  --bg-warm-1: rgba(0, 223, 146, 0.18);
  --bg-warm-2: rgba(0, 184, 255, 0.16);
}

/* smooth theme transition */
html, body, .nav-pill, .nav-pill a, .route, .feature-list li, .shift, .contact-form input,
.contact-form select, .contact-form textarea, .foot, .glass-card, .twin-stage,
.theme-toggle {
  transition: background-color 600ms ease, color 600ms ease, border-color 600ms ease;
}

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

html, body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ambient atmosphere ---------------------------------------- */
body::before,
body::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  animation: drift 24s ease-in-out infinite alternate;
}
body::before {
  width: 720px; height: 720px;
  top: -180px; right: -160px;
  background: radial-gradient(circle, var(--bg-warm-1), transparent 65%);
}
body::after {
  width: 640px; height: 640px;
  bottom: -200px; left: -140px;
  background: radial-gradient(circle, var(--bg-warm-2), transparent 65%);
  animation-delay: -12s;
  animation-duration: 30s;
}
@keyframes drift {
  0%   { transform: translate(0,0) scale(1); }
  50%  { transform: translate(30px, 20px) scale(1.05); }
  100% { transform: translate(-20px, -10px) scale(0.98); }
}

/* subtle grain ---------------------------------------------- */
body > .grain {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 1;
  opacity: 0.035; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.7'/></svg>");
}

/* layout container ----------------------------------------- */
.page {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter) 160px;
}

/* =========================================================
   Top nav — floating frosted pill
   ========================================================= */
.topbar {
  position: sticky;
  top: 18px;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding-top: 18px;
  pointer-events: none;
}

.nav-pill {
  pointer-events: auto;
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 7px 10px;
  background: var(--glass-bg);
  backdrop-filter: blur(36px) saturate(220%);
  -webkit-backdrop-filter: blur(36px) saturate(220%);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  box-shadow: var(--glass-shadow);
  overflow: hidden;
  isolation: isolate;
}
/* top inner highlight — Liquid Glass */
.nav-pill::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    180deg,
    var(--glass-highlight) 0%,
    rgba(255,255,255,0.10) 32%,
    rgba(255,255,255,0) 55%,
    rgba(255,255,255,0.18) 100%
  );
  opacity: 0.55;
  pointer-events: none;
  z-index: -1;
}
/* faint chromatic edge — Liquid Glass refraction */
.nav-pill::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(0,201,162,0.35), rgba(0,184,255,0.0) 35%, rgba(0,184,255,0.0) 65%, rgba(0,223,146,0.30));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  opacity: 0.55;
}

.nav-pill .nav-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  margin-right: 6px;
  margin-left: 4px;
}

.nav-pill a {
  color: var(--ink);
  text-decoration: none;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.01em;
  padding: 8px 14px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background 180ms ease, color 180ms ease;
}
.nav-pill a:hover {
  background: color-mix(in oklab, var(--ink) 8%, transparent);
}
.nav-pill a.active {
  background: var(--ink);
  color: var(--paper);
}

/* =========================================================
   Theme toggle (sun/moon) — sits next to the nav pill
   ========================================================= */
.topbar-row {
  position: sticky;
  top: 18px;
  z-index: 50;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding-top: 18px;
  pointer-events: none;
}
.topbar-row > * { pointer-events: auto; }

.theme-toggle {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: var(--glass-bg);
  backdrop-filter: blur(36px) saturate(220%);
  -webkit-backdrop-filter: blur(36px) saturate(220%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink);
  isolation: isolate;
  overflow: hidden;
}
.theme-toggle::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, var(--glass-highlight) 0%, rgba(255,255,255,0) 55%);
  opacity: 0.5;
  z-index: -1;
}
.theme-toggle .icon {
  position: absolute;
  width: 18px; height: 18px;
  transition: opacity 380ms ease, transform 520ms cubic-bezier(.4,.0,.2,1);
}
.theme-toggle .icon.sun { opacity: 1; transform: rotate(0) scale(1); }
.theme-toggle .icon.moon { opacity: 0; transform: rotate(-40deg) scale(0.8); }
:root[data-theme="night"] .theme-toggle .icon.sun  { opacity: 0; transform: rotate(40deg) scale(0.8); }
:root[data-theme="night"] .theme-toggle .icon.moon { opacity: 1; transform: rotate(0) scale(1); }
.theme-toggle:hover { transform: translateY(-1px); }
.theme-toggle:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

/* =========================================================
   Logo mark — four hearts in cross + center square
   ========================================================= */
.brandmark {
  display: inline-block;
  vertical-align: middle;
}

.brandmark .pulse {
  transform-origin: center;
  animation: heartpulse 3.6s ease-in-out infinite;
}
@keyframes heartpulse {
  0%, 100% { transform: scale(1); }
  18%      { transform: scale(1.04); }
  32%      { transform: scale(0.99); }
  46%      { transform: scale(1.025); }
  60%      { transform: scale(1); }
}

/* =========================================================
   Typography utilities
   ========================================================= */
.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.display {
  font-family: var(--serif);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.02;
  color: var(--ink);
}

.display .accent {
  font-style: italic;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 300;
}

h2.section-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(38px, 5.4vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--ink);
}
h2.section-title .accent {
  font-style: italic;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(19px, 1.5vw, 22px);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 60ch;
  text-wrap: pretty;
}

.body-text {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 62ch;
  text-wrap: pretty;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.section-label::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--ink);
  opacity: 0.5;
}

hr.rule {
  border: 0;
  height: 1px;
  background: var(--line);
  margin: 96px 0;
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  padding: clamp(80px, 14vh, 160px) 0 clamp(80px, 12vh, 140px);
  text-align: center;
}

.hero .brandmark-lg {
  display: inline-block;
  margin-bottom: 36px;
}

.hero .display {
  font-size: clamp(56px, 9.5vw, 132px);
  margin: 22px auto 0;
  max-width: 14ch;
}

.hero .lede {
  margin: 36px auto 0;
  text-align: center;
}

/* =========================================================
   Hero — cinematic dark variant (home page)
   ========================================================= */
.hero-cinema {
  position: relative;
  margin: 0 calc(50% - 50vw); /* full-bleed inside .page */
  width: 100vw;
  min-height: clamp(640px, 92vh, 920px);
  background: radial-gradient(ellipse at 50% 40%, #0d2024 0%, #050a0c 70%);
  color: #F4F7F5;
  overflow: hidden;
  display: grid;
  place-items: center;
  isolation: isolate;
}
.hero-cinema::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(0, 223, 146, 0.18), transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(0, 184, 255, 0.16), transparent 50%);
  filter: blur(40px);
  z-index: 0;
  animation: cinema-glow 14s ease-in-out infinite alternate;
}
@keyframes cinema-glow {
  0%   { transform: translate(0,0) scale(1); opacity: 0.85; }
  100% { transform: translate(20px,-10px) scale(1.06); opacity: 1; }
}

/* horizontal scan lines — very subtle */
.hero-cinema::after {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.025) 0px,
    rgba(255,255,255,0.025) 1px,
    transparent 1px,
    transparent 4px
  );
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: overlay;
}

/* hero ECG — full bleed, massive */
.hero-cinema .ecg-stage {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.hero-cinema .ecg-stage svg {
  width: 100%; height: 100%;
  display: block;
  overflow: visible;
}
.hero-cinema .ecg-line {
  fill: none;
  stroke: url(#cine-grad);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 8px rgba(0, 223, 146, 0.7))
          drop-shadow(0 0 22px rgba(0, 184, 255, 0.35));
  stroke-dasharray: 4400;
  stroke-dashoffset: 4400;
  animation: cine-draw 7.5s cubic-bezier(.35,.05,.25,1) infinite;
}
.hero-cinema .ecg-ghost {
  fill: none;
  stroke: rgba(255,255,255,0.06);
  stroke-width: 1;
}
@keyframes cine-draw {
  0%   { stroke-dashoffset: 4400; }
  55%  { stroke-dashoffset: 0; }
  82%  { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}

/* the focal pulse — sits where the ECG spike lives */
.hero-cinema .focal {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, #00DF92 30%, transparent 70%);
  box-shadow:
    0 0 24px rgba(0, 223, 146, 0.9),
    0 0 60px rgba(0, 223, 146, 0.55),
    0 0 120px rgba(0, 184, 255, 0.4);
  animation: focal-beat 1.4s ease-in-out infinite;
}
@keyframes focal-beat {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  20%      { transform: translate(-50%, -50%) scale(1.4); }
  40%      { transform: translate(-50%, -50%) scale(1); }
  60%      { transform: translate(-50%, -50%) scale(1.15); }
}

/* expanding rings from focal */
.hero-cinema .focal-rings {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 240px; height: 240px;
  pointer-events: none;
}
.hero-cinema .focal-rings span {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(0, 223, 146, 0.55);
  opacity: 0;
  animation: focal-ring 3s ease-out infinite;
}
.hero-cinema .focal-rings span:nth-child(2) { animation-delay: 1s;   border-color: rgba(0, 184, 255, 0.5); }
.hero-cinema .focal-rings span:nth-child(3) { animation-delay: 2s;   border-color: rgba(0, 223, 146, 0.4); }
@keyframes focal-ring {
  0%   { transform: scale(0.2); opacity: 0; }
  20%  { opacity: 0.9; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* drifting particles */
.hero-cinema .particles {
  position: absolute; inset: 0;
  z-index: 2; pointer-events: none;
}
.hero-cinema .particles i {
  position: absolute;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: rgba(0, 223, 146, 0.7);
  box-shadow: 0 0 8px rgba(0, 223, 146, 0.7);
  animation: drift-up 14s linear infinite;
  opacity: 0;
}
.hero-cinema .particles i:nth-child(odd)  { background: rgba(0, 184, 255, 0.6); box-shadow: 0 0 8px rgba(0, 184, 255, 0.7); }
@keyframes drift-up {
  0%   { transform: translateY(20px) translateX(0); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(-120vh) translateX(30px); opacity: 0; }
}

/* hero stack on top of motion */
.hero-cinema .stack {
  position: relative;
  z-index: 5;
  display: grid;
  justify-items: center;
  text-align: center;
  padding: 0 clamp(20px, 4vw, 48px);
  max-width: 1080px;
}

.hero-cinema .logo-slot {
  width: 84px; height: 84px;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px dashed rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.45);
  font-size: 8.5px;
  letter-spacing: 0.24em;
  margin-bottom: 28px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.hero-cinema .logo-slot::before { display: none; }

.hero-cinema .eyebrow-row { color: rgba(255,255,255,0.55); margin-bottom: 28px; }
.hero-cinema .eyebrow-row .eyebrow { color: rgba(255,255,255,0.6); letter-spacing: 0.32em; font-size: 10.5px; }
.hero-cinema .eyebrow-row .dot { background: #00DF92; box-shadow: 0 0 0 0 rgba(0, 223, 146, 0.8); }

.hero-cinema .headline {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(64px, 11vw, 168px);
  line-height: 0.92;
  letter-spacing: -0.035em;
  color: #fff;
  text-wrap: balance;
}
.hero-cinema .headline .word {
  display: inline-block;
  margin-right: 0.25em;
  opacity: 0;
  transform: translateY(28px);
  filter: blur(10px);
  animation: cine-word-in 1300ms cubic-bezier(.22,.7,.18,1) forwards;
}
.hero-cinema .headline .word:last-child { margin-right: 0; }
.hero-cinema .headline .word.accent {
  font-style: italic;
  background: linear-gradient(135deg, #00DF92 0%, #00C9A2 40%, #00B8FF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 60px rgba(0, 223, 146, 0.4);
}
@keyframes cine-word-in {
  0%   { opacity: 0; transform: translateY(28px); filter: blur(10px); }
  60%  { filter: blur(0); }
  100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.hero-cinema .lede-row {
  margin-top: clamp(28px, 4vh, 44px);
  max-width: 56ch;
  opacity: 0;
  animation: cine-word-in 1300ms cubic-bezier(.22,.7,.18,1) forwards;
}
.hero-cinema .lede-row p {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(18px, 1.5vw, 24px);
  line-height: 1.5;
  color: rgba(255,255,255,0.78);
  text-wrap: pretty;
}

/* technology strip — subtle list of advanced tech under the lede */
.hero-cinema .tech-strip {
  list-style: none;
  margin: clamp(28px, 4vh, 40px) auto 0;
  padding: 12px 22px;
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  opacity: 0;
  animation: cine-word-in 1300ms cubic-bezier(.22,.7,.18,1) forwards;
}
.hero-cinema .tech-strip li { display: inline-flex; align-items: center; }
.hero-cinema .tech-strip .k { color: rgba(255,255,255,0.78); }
.hero-cinema .tech-strip .sep {
  width: 3px; height: 3px; border-radius: 50%;
  background: rgba(0, 223, 146, 0.55);
}
@media (max-width: 720px) {
  .hero-cinema .tech-strip { gap: 10px; padding: 10px 16px; font-size: 9.5px; letter-spacing: 0.18em; }
}

/* meta strip at bottom of cinema hero */
.hero-cinema .meta-strip {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px clamp(20px, 4vw, 48px);
  font-size: 10.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  border-top: 1px solid rgba(255,255,255,0.06);
}
.hero-cinema .meta-strip .ticker {
  display: inline-flex; align-items: center; gap: 10px;
}
.hero-cinema .meta-strip .ticker .live {
  width: 6px; height: 6px; border-radius: 50%;
  background: #00DF92; box-shadow: 0 0 10px #00DF92;
  animation: live-blink 1.4s ease-in-out infinite;
}
@keyframes live-blink { 50% { opacity: 0.3; } }

/* override grain for cinema hero (it's already textured) */
.hero-cinema ~ * { /* nothing */ }

/* route cards over dark — elevated treatment */
.routes.routes-dark {
  background: #050a0c;
  border: 0;
  margin: 0;
}
.routes.routes-dark .route {
  background: linear-gradient(180deg, #0a1518 0%, #050a0c 100%);
  color: #F4F7F5;
  border-right: 1px solid rgba(255,255,255,0.06);
  padding: 44px 30px 36px;
  min-height: 280px;
  position: relative;
  overflow: hidden;
}
.routes.routes-dark .route:last-child { border-right: 0; }
.routes.routes-dark .route::before {
  content: "";
  position: absolute;
  inset: auto auto 0 0;
  width: 100%; height: 1px;
  background: linear-gradient(to right, transparent, rgba(0, 223, 146, 0) 0%, transparent 100%);
  transition: background 380ms ease;
}
.routes.routes-dark .route:hover {
  background: linear-gradient(180deg, #0e1d22 0%, #060d10 100%);
}
.routes.routes-dark .route:hover::before {
  background: linear-gradient(to right, transparent, rgba(0, 223, 146, 0.7) 50%, transparent 100%);
}
.routes.routes-dark .route .num {
  font-family: var(--serif);
  font-style: italic;
  color: rgba(0, 223, 146, 0.85);
  font-size: 13px;
  letter-spacing: 0.06em;
}
.routes.routes-dark .route .title {
  color: #fff;
  font-size: 34px;
  font-weight: 300;
}
.routes.routes-dark .route .arrow {
  color: rgba(255,255,255,0.55);
}
@media (max-width: 880px) {
  .routes.routes-dark .route { border-right: 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
}

/* ECG / heartbeat trace running across the hero */
.hero-elegant .ecg {
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  height: clamp(180px, 30vh, 280px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.85;
}
.hero-elegant .ecg svg { width: 100%; height: 100%; overflow: visible; display: block; }
.hero-elegant .ecg .trace {
  fill: none;
  stroke: url(#ecg-grad);
  stroke-width: 1.6;
  stroke-linejoin: round;
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px rgba(0, 223, 146, 0.35));
  stroke-dasharray: 2400;
  stroke-dashoffset: 2400;
  animation: ecg-draw 6.5s cubic-bezier(.45,.05,.25,1) infinite;
}
.hero-elegant .ecg .trace.behind {
  stroke: rgba(14, 20, 20, 0.07);
  stroke-width: 1;
  filter: none;
  stroke-dasharray: none;
  stroke-dashoffset: 0;
  animation: none;
}
.hero-elegant .ecg .head {
  fill: #00DF92;
  filter: drop-shadow(0 0 8px rgba(0, 223, 146, 0.85));
  animation: ecg-head 6.5s cubic-bezier(.45,.05,.25,1) infinite;
  opacity: 0;
}
@keyframes ecg-draw {
  0%   { stroke-dashoffset: 2400; }
  60%  { stroke-dashoffset: 0; }
  85%  { stroke-dashoffset: 0; opacity: 0.85; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}
@keyframes ecg-head {
  0%   { offset-distance: 0%;   opacity: 0; }
  5%   { opacity: 1; }
  60%  { offset-distance: 100%; opacity: 1; }
  62%  { opacity: 0; }
  100% { opacity: 0; }
}

/* concentric pulse rings behind the logo */
.hero-elegant .pulse-rings {
  position: absolute;
  left: 50%; top: 50%;
  width: 460px; height: 460px;
  transform: translate(-50%, -58%);
  pointer-events: none;
  z-index: 0;
}
.hero-elegant .pulse-rings span {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(0, 201, 162, 0.35);
  opacity: 0;
  animation: ring-pulse 3.6s ease-out infinite;
}
.hero-elegant .pulse-rings span:nth-child(2) { animation-delay: 1.2s; border-color: rgba(0, 184, 255, 0.30); }
.hero-elegant .pulse-rings span:nth-child(3) { animation-delay: 2.4s; border-color: rgba(0, 223, 146, 0.30); }
@keyframes ring-pulse {
  0%   { transform: scale(0.55); opacity: 0; }
  20%  { opacity: 0.85; }
  100% { transform: scale(1.25); opacity: 0; }
}

/* slow halo behind the mark */
.hero-elegant .halo {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(620px, 70vw, 980px);
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -52%);
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(0, 223, 146, 0.10) 0%, rgba(0, 223, 146, 0) 38%),
    radial-gradient(circle at 50% 50%, rgba(0, 184, 255, 0.08) 0%, rgba(0, 184, 255, 0) 50%);
  filter: blur(20px);
  animation: halo-breathe 9s ease-in-out infinite;
}
@keyframes halo-breathe {
  0%, 100% { transform: translate(-50%, -52%) scale(1);   opacity: 0.95; }
  50%      { transform: translate(-50%, -52%) scale(1.06); opacity: 1; }
}

/* logo placeholder slot — awaiting upload */
.logo-slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 132px; height: 132px;
  border-radius: 22px;
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  border: 1px dashed rgba(14, 20, 20, 0.18);
  font-family: var(--sans);
  font-size: 9.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted-2);
  text-align: center;
  line-height: 1.5;
  position: relative;
  overflow: hidden;
}
.logo-slot::before {
  content: "";
  position: absolute; inset: -1px;
  border-radius: inherit;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(0,201,162,0.35) 60deg, transparent 120deg, transparent 360deg);
  animation: slot-sweep 8s linear infinite;
  z-index: -1;
  opacity: 0.6;
}
@keyframes slot-sweep { to { transform: rotate(360deg); } }
.logo-slot span { padding: 0 14px; }

/* hero stack */
.hero-elegant .stack {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 0;
}

.hero-elegant .brandmark-xl {
  display: inline-block;
  margin-bottom: clamp(28px, 5vh, 48px);
  filter: drop-shadow(0 8px 30px rgba(0, 201, 162, 0.18));
}

/* eyebrow with pulsing dot */
.hero-elegant .eyebrow-row {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: clamp(20px, 3vh, 32px);
}
.hero-elegant .eyebrow-row .dot {
  width: 7px; height: 7px;
  border-radius: 999px;
  background: var(--teal);
  box-shadow: 0 0 0 0 rgba(0, 201, 162, 0.55);
  animation: dot-pulse 2.4s ease-out infinite;
}
@keyframes dot-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(0, 201, 162, 0.55); }
  70%  { box-shadow: 0 0 0 12px rgba(0, 201, 162, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 201, 162, 0); }
}

/* big editorial headline — word-by-word reveal */
.hero-elegant .headline {
  font-family: var(--serif);
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 0.98;
  font-size: clamp(48px, 8.4vw, 116px);
  color: var(--ink);
  max-width: 16ch;
  text-wrap: balance;
}
.hero-elegant .headline .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(18px);
  filter: blur(6px);
  animation: word-in 1100ms cubic-bezier(.22,.7,.18,1) forwards;
}
.hero-elegant .headline .word.accent {
  font-style: italic;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
}
/* subtle drift on the accent word, only after it has settled */
.hero-elegant .headline .word.accent::after {
  content: "";
}
@keyframes word-in {
  0%   { opacity: 0; transform: translateY(18px); filter: blur(6px); }
  60%  { filter: blur(0); }
  100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.hero-elegant .lede-row {
  margin-top: clamp(28px, 4vh, 44px);
  max-width: 56ch;
  opacity: 0;
  transform: translateY(10px);
  animation: word-in 1100ms cubic-bezier(.22,.7,.18,1) forwards;
}
.hero-elegant .lede-row p {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(18px, 1.45vw, 22px);
  line-height: 1.5;
  color: var(--ink-2);
  text-wrap: pretty;
}

/* audience strip */
.hero-elegant .audience {
  margin-top: clamp(40px, 6vh, 64px);
  display: inline-flex;
  align-items: center;
  gap: 22px;
  padding: 14px 22px;
  border-radius: 999px;
  background: rgba(255,255,255,0.45);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.6);
  box-shadow: 0 1px 0 rgba(255,255,255,0.7) inset, 0 8px 22px -12px rgba(14,20,20,0.15);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0;
  animation: word-in 1200ms cubic-bezier(.22,.7,.18,1) forwards;
}
.hero-elegant .audience .sep {
  width: 4px; height: 4px; border-radius: 999px; background: var(--muted-2); opacity: 0.7;
}
.hero-elegant .audience .name { color: var(--ink); font-weight: 500; }

/* scroll cue */
.hero-elegant .cue {
  position: absolute;
  left: 50%;
  bottom: clamp(20px, 4vh, 40px);
  transform: translateX(-50%);
  z-index: 2;
  font-size: 10.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted-2);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  animation: word-in 1400ms cubic-bezier(.22,.7,.18,1) forwards;
  animation-delay: 1.6s;
}
.hero-elegant .cue .line {
  width: 1px; height: 36px;
  background: linear-gradient(to bottom, rgba(14,20,20,0) 0%, rgba(14,20,20,0.45) 100%);
  position: relative;
  overflow: hidden;
}
.hero-elegant .cue .line::before {
  content: "";
  position: absolute;
  top: -36px; left: 0;
  width: 100%; height: 36px;
  background: linear-gradient(to bottom, rgba(0,201,162,0) 0%, rgba(0,201,162,0.9) 100%);
  animation: cue-fall 2.4s ease-in-out infinite;
}
@keyframes cue-fall {
  0%   { transform: translateY(0); opacity: 0; }
  20%  { opacity: 1; }
  100% { transform: translateY(72px); opacity: 0; }
}



@media (prefers-reduced-motion: reduce) {
  .hero-elegant .headline .word,
  .hero-elegant .lede-row,
  .hero-elegant .audience,
  .hero-elegant .cue { opacity: 1 !important; transform: none !important; filter: none !important; }
}

/* =========================================================
   Route cards (home)
   ========================================================= */
.routes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: clamp(60px, 9vh, 120px);
}
@media (max-width: 880px) {
  .routes { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .routes { grid-template-columns: 1fr; }
}

.route {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--paper);
  padding: 36px 28px 30px;
  min-height: 260px;
  text-decoration: none;
  color: inherit;
  transition: background 280ms ease;
}
.route:hover {
  background: rgba(0, 201, 162, 0.04);
}
.route .num {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--muted-2);
}
.route .title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-top: auto;
}
.route .arrow {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.route .arrow svg {
  transition: transform 280ms ease;
}
.route:hover .arrow svg {
  transform: translateX(6px);
}

/* =========================================================
   Generic page header
   ========================================================= */
.page-head {
  padding: clamp(80px, 12vh, 140px) 0 clamp(40px, 6vh, 60px);
  max-width: 920px;
}
.page-head .eyebrow { margin-bottom: 28px; display: inline-block; }
.page-head .display {
  font-size: clamp(48px, 7.5vw, 104px);
  letter-spacing: -0.025em;
  margin-bottom: 36px;
}
.page-head .lede { font-size: clamp(20px, 1.6vw, 24px); }

/* two-col content blocks ----------------------------------- */
.cols {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(40px, 6vw, 96px);
  margin-top: clamp(60px, 9vh, 110px);
}
@media (max-width: 820px) {
  .cols { grid-template-columns: 1fr; }
}

.cols .col-l h3 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.018em;
  margin-bottom: 24px;
}
.cols .col-l h3 .accent {
  font-style: italic;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* feature list --------------------------------------------- */
.feature-list {
  list-style: none;
  display: grid;
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.feature-list li {
  background: var(--paper);
  padding: 28px 4px 24px;
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 24px;
  align-items: start;
}
.feature-list .num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--muted-2);
  padding-top: 4px;
}
.feature-list h4 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  color: var(--ink);
}
.feature-list p {
  font-size: 14.5px;
  color: var(--muted);
  max-width: 56ch;
  line-height: 1.6;
}

/* =========================================================
   Architecture orbital diagram
   ========================================================= */
.orbit-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  width: min(560px, 100%);
  margin: 40px auto 0;
}
.orbit-wrap svg { width: 100%; height: 100%; overflow: visible; }
.orbit-wrap .orb-ring {
  fill: none;
  stroke: var(--ink);
  stroke-opacity: 0.14;
  stroke-width: 1;
}
.orbit-wrap .orb-node {
  fill: var(--paper);
  stroke: var(--ink);
  stroke-opacity: 0.5;
  stroke-width: 1;
}
.orbit-wrap .orb-label {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  fill: var(--muted);
}
.orbit-wrap .orb-spin-1 {
  transform-origin: center;
  animation: spin 60s linear infinite;
}
.orbit-wrap .orb-spin-2 {
  transform-origin: center;
  animation: spin 90s linear infinite reverse;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* =========================================================
   Why-now shifts grid
   ========================================================= */
.shifts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: clamp(40px, 6vh, 80px);
}
@media (max-width: 720px) {
  .shifts { grid-template-columns: 1fr; }
}
.shift {
  background: var(--paper);
  padding: 44px 30px 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 320px;
}
.shift .shift-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--muted-2);
  letter-spacing: 0.05em;
}
.shift h4 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 32px;
  line-height: 1.08;
  letter-spacing: -0.018em;
  color: var(--ink);
  max-width: 14ch;
}
.shift h4 .accent {
  font-style: italic;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.shift p {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.6;
  margin-top: auto;
  max-width: 38ch;
}

/* =========================================================
   Contact
   ========================================================= */
.contact-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
  margin-top: clamp(60px, 9vh, 100px);
}
@media (max-width: 820px) {
  .contact-block { grid-template-columns: 1fr; }
}
.contact-block .meta {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--muted);
  display: grid;
  gap: 10px;
}
.contact-block .meta .k {
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.contact-block .meta .v {
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  color: var(--ink);
}
.contact-block .meta a { color: var(--ink); text-decoration: underline; text-decoration-color: rgba(14,20,20,0.2); text-underline-offset: 4px; }

.contact-form {
  display: grid;
  gap: 16px;
}
.contact-form label {
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted-2);
  display: grid;
  gap: 8px;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 15px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 10px 0 12px;
  outline: none;
  transition: border-color 180ms ease;
  letter-spacing: normal;
  text-transform: none;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-bottom-color: var(--teal);
}
.contact-form textarea { resize: vertical; min-height: 80px; }
.contact-form button {
  justify-self: start;
  margin-top: 12px;
  background: var(--ink);
  color: var(--paper);
  border: 0;
  border-radius: 999px;
  padding: 14px 28px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease;
}
.contact-form button:hover { background: var(--ink-2); transform: translateY(-1px); }

/* =========================================================
   Footer
   ========================================================= */
.foot {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 60px var(--gutter) 60px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.05em;
}
.foot .foot-mark { display: inline-flex; align-items: center; gap: 12px; }
.foot .foot-mark span {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--ink);
  letter-spacing: -0.01em;
}

/* =========================================================
   Reveal on scroll
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 700ms ease, transform 700ms ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal.d1 { transition-delay: 80ms; }
.reveal.d2 { transition-delay: 160ms; }
.reveal.d3 { transition-delay: 240ms; }
.reveal.d4 { transition-delay: 320ms; }
.reveal.d5 { transition-delay: 400ms; }

/* =========================================================
   Hero — Digital Twin (light/glass)
   ========================================================= */
.hero-twin {
  position: relative;
  margin: 0 calc(50% - 50vw);
  width: 100vw;
  min-height: clamp(720px, 100vh, 1040px);
  overflow: hidden;
  isolation: isolate;
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: center;
  color: var(--ink);
  background: var(--paper);
}

/* atmosphere — soft chromatic mesh that tracks theme */
.hero-twin::before {
  content: "";
  position: absolute; inset: -10%;
  z-index: 0;
  background:
    radial-gradient(ellipse 60% 50% at 18% 28%, var(--bg-warm-1), transparent 60%),
    radial-gradient(ellipse 60% 50% at 82% 72%, var(--bg-warm-2), transparent 60%),
    radial-gradient(ellipse 40% 40% at 50% 50%, rgba(0,201,162,0.10), transparent 65%);
  filter: blur(40px);
  animation: twin-atmos 22s ease-in-out infinite alternate;
}
:root[data-theme="night"] .hero-twin::before {
  background:
    radial-gradient(ellipse 60% 50% at 18% 28%, rgba(0, 223, 146, 0.22), transparent 60%),
    radial-gradient(ellipse 60% 50% at 82% 72%, rgba(0, 184, 255, 0.18), transparent 60%),
    radial-gradient(ellipse 40% 40% at 50% 50%, rgba(0,201,162,0.10), transparent 65%);
}
@keyframes twin-atmos {
  0%   { transform: translate(0,0) scale(1); }
  50%  { transform: translate(2%,-1%) scale(1.04); }
  100% { transform: translate(-1%,1%) scale(0.98); }
}

/* horizon line — barely-there grid that anchors the orb */
.hero-twin .horizon {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(to right, transparent, var(--line) 50%, transparent) center / 100% 1px no-repeat,
    repeating-linear-gradient(to right, var(--line-2) 0, var(--line-2) 1px, transparent 1px, transparent 80px),
    repeating-linear-gradient(to bottom, var(--line-2) 0, var(--line-2) 1px, transparent 1px, transparent 80px);
  -webkit-mask: radial-gradient(ellipse 80% 70% at 50% 50%, #000 30%, transparent 75%);
          mask: radial-gradient(ellipse 80% 70% at 50% 50%, #000 30%, transparent 75%);
  opacity: 0.6;
}

/* orbit rings — slow, geometric */
.hero-twin .orbits {
  position: absolute;
  left: 50%; top: 48%;
  transform: translate(-50%, -50%);
  width: clamp(620px, 70vw, 980px);
  aspect-ratio: 1/1;
  z-index: 2;
  pointer-events: none;
}
.hero-twin .orbits svg { width: 100%; height: 100%; overflow: visible; }
.hero-twin .orbits .ring {
  fill: none;
  stroke: var(--ink);
  stroke-opacity: 0.10;
  stroke-width: 0.8;
}
:root[data-theme="night"] .hero-twin .orbits .ring { stroke: #fff; stroke-opacity: 0.10; }
.hero-twin .orbits .ring.dashed {
  stroke-dasharray: 3 6;
  stroke-opacity: 0.18;
}
.hero-twin .orbits .spin-a { transform-origin: 50% 50%; animation: orbit-a 90s linear infinite; }
.hero-twin .orbits .spin-b { transform-origin: 50% 50%; animation: orbit-a 140s linear infinite reverse; }
.hero-twin .orbits .satellite {
  fill: var(--emerald);
  filter: drop-shadow(0 0 6px rgba(0,223,146,0.7));
}
.hero-twin .orbits .satellite.cyan { fill: var(--cyan); filter: drop-shadow(0 0 6px rgba(0,184,255,0.7)); }
@keyframes orbit-a { to { transform: rotate(360deg); } }

/* the orb — frosted glass digital twin */
.hero-twin .twin-stage {
  position: relative;
  z-index: 5;
  display: grid;
  justify-items: center;
  text-align: center;
  padding: clamp(40px, 8vh, 80px) clamp(20px, 4vw, 48px) 0;
  max-width: 1080px;
  margin: 0 auto;
}

.hero-twin .orb {
  position: relative;
  width: clamp(220px, 28vw, 320px);
  aspect-ratio: 1/1;
  border-radius: 50%;
  margin: 0 auto clamp(36px, 5vh, 56px);
  background: var(--orb-bg), linear-gradient(135deg, rgba(0,201,162,0.10), rgba(0,184,255,0.10));
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow:
    0 1px 0 var(--glass-highlight) inset,
    0 -10px 30px rgba(0, 184, 255, 0.18) inset,
    0 0 0 1px var(--glass-border),
    0 30px 80px -20px rgba(0, 201, 162, 0.35),
    0 60px 140px -30px rgba(0, 184, 255, 0.30);
  isolation: isolate;
  animation: orb-float 9s ease-in-out infinite;
}
@keyframes orb-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-10px) rotate(-0.5deg); }
}

/* highlight crescent on the orb */
.hero-twin .orb::before {
  content: "";
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 26%, rgba(255,255,255,0.85), rgba(255,255,255,0.0) 38%);
  pointer-events: none;
  mix-blend-mode: screen;
}
:root[data-theme="night"] .hero-twin .orb::before {
  background: radial-gradient(circle at 32% 26%, rgba(255,255,255,0.55), rgba(255,255,255,0.0) 40%);
}

/* inner refracted core — a softly rotating chromatic gradient */
.hero-twin .orb::after {
  content: "";
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  background: conic-gradient(from 0deg,
    rgba(0,201,162,0.5),
    rgba(0,223,146,0.4),
    rgba(0,184,255,0.5),
    rgba(0,201,162,0.5));
  filter: blur(18px);
  opacity: 0.65;
  animation: orb-spin 18s linear infinite;
}
@keyframes orb-spin { to { transform: rotate(360deg); } }

/* DNA / signal lines weaving through the orb */
.hero-twin .orb-strands {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.hero-twin .orb-strands svg { width: 100%; height: 100%; overflow: visible; }
.hero-twin .orb-strands path {
  fill: none;
  stroke: rgba(0, 223, 146, 0.55);
  stroke-width: 1;
  stroke-linecap: round;
  filter: drop-shadow(0 0 4px rgba(0,223,146,0.5));
}
.hero-twin .orb-strands path.b { stroke: rgba(0, 184, 255, 0.55); filter: drop-shadow(0 0 4px rgba(0,184,255,0.5)); }
:root[data-theme="night"] .hero-twin .orb-strands path { stroke: rgba(0, 223, 146, 0.75); }
:root[data-theme="night"] .hero-twin .orb-strands path.b { stroke: rgba(0, 184, 255, 0.75); }

/* tiny pulsating heart at orb center */
.hero-twin .orb-core {
  position: absolute;
  left: 50%; top: 50%;
  width: 12px; height: 12px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, #fff 0%, var(--emerald) 50%, transparent 75%);
  box-shadow: 0 0 18px rgba(0, 223, 146, 0.85), 0 0 40px rgba(0, 184, 255, 0.5);
  animation: core-beat 1.4s ease-in-out infinite;
  z-index: 3;
}
@keyframes core-beat {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  20%      { transform: translate(-50%, -50%) scale(1.35); }
  40%      { transform: translate(-50%, -50%) scale(1); }
  60%      { transform: translate(-50%, -50%) scale(1.18); }
}

/* eyebrow above headline */
.hero-twin .eyebrow-row {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: clamp(20px, 3vh, 28px);
  opacity: 0;
  animation: tw-in 1100ms cubic-bezier(.22,.7,.18,1) .15s forwards;
}
.hero-twin .eyebrow-row .dot {
  width: 7px; height: 7px;
  border-radius: 999px;
  background: var(--teal);
  box-shadow: 0 0 0 0 rgba(0, 201, 162, 0.55);
  animation: dot-pulse 2.4s ease-out infinite;
}
.hero-twin .eyebrow-row .eyebrow {
  font-size: 11px;
  letter-spacing: 0.32em;
  color: var(--muted);
}

/* headline */
.hero-twin .headline {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(52px, 8.4vw, 124px);
  line-height: 0.96;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-wrap: balance;
  max-width: 17ch;
  margin: 0 auto;
}
.hero-twin .headline .word {
  display: inline-block;
  margin-right: 0.22em;
  opacity: 0;
  transform: translateY(22px);
  filter: blur(8px);
  animation: tw-in 1200ms cubic-bezier(.22,.7,.18,1) forwards;
}
.hero-twin .headline .word:last-child { margin-right: 0; }
.hero-twin .headline .word.accent {
  font-style: italic;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@keyframes tw-in {
  0%   { opacity: 0; transform: translateY(22px); filter: blur(8px); }
  60%  { filter: blur(0); }
  100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.hero-twin .lede-row {
  margin-top: clamp(28px, 4vh, 40px);
  max-width: 56ch;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  animation: tw-in 1300ms cubic-bezier(.22,.7,.18,1) 1.4s forwards;
}
.hero-twin .lede-row p {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(18px, 1.5vw, 24px);
  line-height: 1.5;
  color: var(--ink-2);
  text-wrap: pretty;
}

/* tech strip — frosted glass capsule */
.hero-twin .tech-strip {
  list-style: none;
  margin: clamp(36px, 5vh, 52px) auto 0;
  padding: 12px 22px;
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px;
  border-radius: 999px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  box-shadow: var(--glass-shadow);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0;
  animation: tw-in 1300ms cubic-bezier(.22,.7,.18,1) 1.7s forwards;
}
.hero-twin .tech-strip li { display: inline-flex; align-items: center; }
.hero-twin .tech-strip .k { color: var(--ink-2); font-weight: 500; }
.hero-twin .tech-strip .sep {
  width: 3px; height: 3px; border-radius: 50%;
  background: rgba(0, 223, 146, 0.65);
}
@media (max-width: 720px) {
  .hero-twin .tech-strip { gap: 10px; padding: 10px 16px; font-size: 9.5px; letter-spacing: 0.18em; }
}

/* meta strip at bottom */
.hero-twin .meta-strip {
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px clamp(20px, 4vw, 48px);
  font-size: 10.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.hero-twin .meta-strip .ticker {
  display: inline-flex; align-items: center; gap: 10px;
}
.hero-twin .meta-strip .ticker .live {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--emerald); box-shadow: 0 0 10px var(--emerald);
  animation: live-blink 1.4s ease-in-out infinite;
}

/* routes on light palette — refined cards */
.routes.routes-light {
  background: transparent;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: 0;
  position: relative;
  z-index: 2;
}
.routes.routes-light .route {
  background: transparent;
  border-right: 1px solid var(--line);
  padding: 44px 30px 36px;
  min-height: 240px;
  position: relative;
  overflow: hidden;
}
.routes.routes-light .route:last-child { border-right: 0; }
.routes.routes-light .route::after {
  content: "";
  position: absolute;
  inset: auto auto 0 0;
  width: 100%; height: 1px;
  background: linear-gradient(to right, transparent, rgba(0, 223, 146, 0) 0%, transparent 100%);
  transition: background 380ms ease;
}
.routes.routes-light .route:hover { background: color-mix(in oklab, var(--teal) 5%, transparent); }
.routes.routes-light .route:hover::after {
  background: linear-gradient(to right, transparent, rgba(0, 223, 146, 0.7) 50%, transparent 100%);
}
.routes.routes-light .route .num {
  font-family: var(--serif);
  font-style: italic;
  color: var(--teal);
  font-size: 13px;
  letter-spacing: 0.06em;
}
.routes.routes-light .route .title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 32px;
  letter-spacing: -0.018em;
  color: var(--ink);
  margin-top: auto;
}
.routes.routes-light .route .arrow {
  color: var(--muted);
}
@media (max-width: 880px) {
  .routes.routes-light .route { border-right: 0; border-bottom: 1px solid var(--line); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-twin .headline .word,
  .hero-twin .lede-row,
  .hero-twin .tech-strip,
  .hero-twin .eyebrow-row { opacity: 1 !important; transform: none !important; filter: none !important; }
}

/* =========================================================
   Technology page — frontier showcase
   ========================================================= */
.tech-hero {
  position: relative;
  padding: clamp(120px, 18vh, 180px) 0 clamp(60px, 8vh, 80px);
  max-width: 980px;
}
.tech-hero .stamp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: var(--glass-shadow);
  font-size: 10.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 36px;
}
.tech-hero .stamp .live { width:7px; height:7px; border-radius:50%; background: var(--emerald); box-shadow: 0 0 10px var(--emerald); animation: live-blink 1.4s ease-in-out infinite; }

.tech-hero h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(48px, 7.5vw, 104px);
  letter-spacing: -0.028em;
  line-height: 1.0;
  color: var(--ink);
  margin-bottom: 28px;
  text-wrap: balance;
}
.tech-hero h1 .accent {
  font-style: italic;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.tech-hero .lede {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(20px, 1.6vw, 26px);
  line-height: 1.45;
  color: var(--ink-2);
  max-width: 38ch;
}

/* trend ticker — quotes from the frontier */
.trend-ticker {
  position: relative;
  margin: clamp(40px, 5vh, 60px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
}
.trend-ticker .track {
  display: flex;
  gap: 64px;
  padding: 18px 0;
  width: max-content;
  animation: ticker 60s linear infinite;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: var(--sans);
  font-weight: 400;
  white-space: nowrap;
}
.trend-ticker .track strong { color: var(--ink); font-weight: 500; letter-spacing: 0.18em; }
.trend-ticker .track em { color: var(--teal); font-style: normal; letter-spacing: 0.18em; padding: 0 2px; }
@keyframes ticker { to { transform: translateX(-50%); } }
.trend-ticker .track > span { display: inline-flex; align-items: center; gap: 14px; }
.trend-ticker .track .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--teal); }

/* stack section */
.stack-section { padding: clamp(80px, 12vh, 140px) 0 0; }
.stack-section .head { max-width: 820px; margin-bottom: clamp(40px, 6vh, 64px); }
.stack-section .head h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(36px, 5vw, 64px); line-height: 1.04; letter-spacing: -0.022em; color: var(--ink); margin-bottom: 22px; text-wrap: balance; }
.stack-section .head h2 .accent { font-style: italic; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stack-section .head p { font-size: 16px; color: var(--muted); max-width: 60ch; line-height: 1.7; }

/* glass cards grid */
.glass-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 22px;
}
.glass-card {
  position: relative;
  border-radius: 26px;
  padding: 32px 28px 28px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  box-shadow: var(--glass-shadow);
  isolation: isolate;
  overflow: hidden;
  min-height: 280px;
  display: flex;
  flex-direction: column;
}
.glass-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, var(--glass-highlight) 0%, rgba(255,255,255,0) 50%);
  opacity: 0.5;
  pointer-events: none;
  z-index: -1;
}
.glass-card .meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  font-size: 10.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.glass-card .meta .num { font-family: var(--serif); font-style: italic; color: var(--teal); font-size: 13px; letter-spacing: 0.06em; }
.glass-card h3 { font-family: var(--serif); font-weight: 300; font-size: 28px; line-height: 1.12; letter-spacing: -0.018em; color: var(--ink); margin-bottom: 14px; max-width: 18ch; }
.glass-card h3 .accent { font-style: italic; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.glass-card p { font-size: 14.5px; line-height: 1.6; color: var(--muted); max-width: 42ch; }
.glass-card .frontier {
  margin-top: auto;
  padding-top: 22px;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.glass-card .frontier .k { color: var(--ink-2); font-weight: 500; }

.glass-card.span-7 { grid-column: span 7; }
.glass-card.span-5 { grid-column: span 5; }
.glass-card.span-6 { grid-column: span 6; }
.glass-card.span-12 { grid-column: span 12; }
.glass-card.span-4 { grid-column: span 4; }
.glass-card.span-8 { grid-column: span 8; }
@media (max-width: 880px) {
  .glass-card.span-7, .glass-card.span-5, .glass-card.span-6,
  .glass-card.span-4, .glass-card.span-8 { grid-column: span 12; }
}

/* card visualizations */
.viz {
  position: relative;
  width: 100%;
  height: 180px;
  margin-bottom: 22px;
  border-radius: 16px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 60%, rgba(0,201,162,0.10), transparent 65%),
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  border: 1px solid var(--line);
}
:root[data-theme="night"] .viz { background: radial-gradient(ellipse at 50% 60%, rgba(0,201,162,0.18), transparent 65%), rgba(255,255,255,0.02); }
.viz svg { width: 100%; height: 100%; overflow: visible; display: block; }

/* viz: scrolling waveform */
.viz-wave .trace { fill: none; stroke: url(#wave-grad); stroke-width: 1.4; stroke-linecap: round; filter: drop-shadow(0 0 4px rgba(0,223,146,0.5)); }
.viz-wave .trace.b { stroke: url(#wave-grad-b); opacity: 0.45; }
.viz-wave .axis { stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 4; }
.viz-wave .scrubber { animation: scrub 8s linear infinite; }
@keyframes scrub { from { transform: translateX(0); } to { transform: translateX(-100px); } }

/* viz: omics layers */
.viz-omics .layer { fill: none; stroke-width: 1.2; opacity: 0.85; }
.viz-omics .l1 { stroke: var(--teal); animation: layer-shift 9s ease-in-out infinite; }
.viz-omics .l2 { stroke: var(--emerald); animation: layer-shift 9s ease-in-out -1.5s infinite; }
.viz-omics .l3 { stroke: var(--cyan); animation: layer-shift 9s ease-in-out -3s infinite; }
.viz-omics .l4 { stroke: rgba(0,201,162,0.55); animation: layer-shift 9s ease-in-out -4.5s infinite; }
.viz-omics .l5 { stroke: rgba(0,184,255,0.55); animation: layer-shift 9s ease-in-out -6s infinite; }
.viz-omics .node { fill: var(--emerald); filter: drop-shadow(0 0 4px rgba(0,223,146,0.7)); }
@keyframes layer-shift { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }

/* viz: trajectory cones */
.viz-traj .median { fill: none; stroke: var(--teal); stroke-width: 1.6; filter: drop-shadow(0 0 4px rgba(0,201,162,0.6)); stroke-dasharray: 700; stroke-dashoffset: 700; animation: traj-draw 6s ease-in-out infinite; }
.viz-traj .cone-fill { fill: url(#cone-grad); opacity: 0.35; }
.viz-traj .marker { fill: var(--cyan); filter: drop-shadow(0 0 4px rgba(0,184,255,0.7)); animation: marker-pulse 2s ease-in-out infinite; }
@keyframes traj-draw { 0% { stroke-dashoffset: 700; } 60% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; } }
@keyframes marker-pulse { 50% { transform: scale(1.5); } }

/* viz: federated nodes */
.viz-fed .ring { fill: none; stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 5; }
.viz-fed .hub { fill: var(--ink); }
:root[data-theme="night"] .viz-fed .hub { fill: var(--paper); }
.viz-fed .node { fill: var(--paper); stroke: var(--teal); stroke-width: 1.4; }
:root[data-theme="night"] .viz-fed .node { fill: var(--paper-2); stroke: var(--emerald); }
.viz-fed .link { stroke: var(--teal); stroke-width: 1; stroke-dasharray: 4 4; opacity: 0.5; animation: dash-flow 3s linear infinite; }
.viz-fed .pulse { fill: var(--emerald); filter: drop-shadow(0 0 6px rgba(0,223,146,0.8)); }
@keyframes dash-flow { to { stroke-dashoffset: -16; } }

/* viz: sequence */
.viz-seq .col { font-family: var(--sans); font-size: 10px; letter-spacing: 0.1em; fill: var(--muted); }
.viz-seq .bar { fill: var(--teal); opacity: 0.85; }
.viz-seq .bar.b { fill: var(--cyan); }
.viz-seq .bar.c { fill: var(--emerald); }
.viz-seq .scan { stroke: rgba(0,223,146,0.7); stroke-width: 2; filter: drop-shadow(0 0 6px rgba(0,223,146,0.7)); animation: scan-line 4s ease-in-out infinite; }
@keyframes scan-line { 0%,100% { transform: translateX(0); opacity: 0.8; } 50% { transform: translateX(280px); opacity: 1; } }

/* viz: privacy lock */
.viz-priv { display: grid; place-items: center; }
.viz-priv svg { max-width: 240px; }
.viz-priv .ring { fill: none; stroke: var(--line); stroke-width: 1; }
.viz-priv .ring.spin { stroke-dasharray: 4 6; animation: spin360 18s linear infinite; transform-origin: center; }
.viz-priv .core { fill: url(#priv-grad); }
.viz-priv .key { fill: none; stroke: var(--ink); stroke-width: 1.4; }
:root[data-theme="night"] .viz-priv .key { stroke: var(--paper); }
@keyframes spin360 { to { transform: rotate(360deg); } }

/* timeline rail */
.frontier-rail {
  margin: clamp(80px, 12vh, 120px) 0 0;
  padding: clamp(40px, 5vh, 56px);
  border-radius: 28px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  box-shadow: var(--glass-shadow);
  position: relative;
  isolation: isolate;
}
.frontier-rail::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, var(--glass-highlight) 0%, transparent 50%);
  opacity: 0.5;
  z-index: -1;
}
.frontier-rail h3 {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(28px, 3.6vw, 44px); letter-spacing: -0.018em; line-height: 1.1;
  margin-bottom: 36px; max-width: 22ch;
}
.frontier-rail h3 .accent { font-style: italic; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rail-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 880px) { .rail-grid { grid-template-columns: 1fr 1fr; } }
.rail-cell {
  background: transparent;
  padding: 26px 20px;
  position: relative;
}
.rail-cell .yr { font-family: var(--serif); font-style: italic; font-size: 13px; color: var(--teal); letter-spacing: 0.06em; margin-bottom: 10px; }
.rail-cell h4 { font-family: var(--serif); font-weight: 300; font-size: 19px; line-height: 1.18; letter-spacing: -0.012em; color: var(--ink); margin-bottom: 10px; max-width: 16ch; }
.rail-cell p { font-size: 13px; line-height: 1.55; color: var(--muted); }
.rail-cell .pulse-dot {
  position: absolute; top: 26px; right: 20px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--emerald);
  box-shadow: 0 0 0 0 rgba(0,223,146,0.55);
  animation: dot-pulse 2.4s ease-out infinite;
}
.rail-cell.future .pulse-dot { background: var(--cyan); box-shadow: 0 0 0 0 rgba(0,184,255,0.55); }

/* doctor panel — clinician's view */
.doctor-section { padding: clamp(80px, 12vh, 140px) 0 0; }
.doctor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 48px);
  align-items: stretch;
}
@media (max-width: 880px) { .doctor-grid { grid-template-columns: 1fr; } }
.doctor-grid .left h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(36px, 5vw, 64px); line-height: 1.05; letter-spacing: -0.022em; margin-bottom: 22px; text-wrap: balance; }
.doctor-grid .left h2 .accent { font-style: italic; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.doctor-grid .left p { font-size: 16px; line-height: 1.7; color: var(--muted); max-width: 50ch; margin-bottom: 20px; }
.doctor-grid .left blockquote {
  margin: 28px 0 0;
  padding: 22px 24px;
  border-left: 2px solid var(--teal);
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 0 14px 14px 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-2);
}
.doctor-grid .left blockquote cite {
  display: block;
  margin-top: 12px;
  font-family: var(--sans);
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

/* clinician console mockup */
.console {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  box-shadow: var(--glass-shadow);
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 480px;
  isolation: isolate;
}
.console::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, var(--glass-highlight) 0%, transparent 40%);
  opacity: 0.5; z-index: -1;
}
.console .bar {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted-2);
}
.console .bar .id { color: var(--ink); letter-spacing: 0.12em; font-family: var(--serif); font-style: italic; font-size: 14px; text-transform: none; }
.console .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.console .stat {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  background: rgba(255,255,255,0.04);
}
.console .stat .k { font-size: 9.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 6px; }
.console .stat .v { font-family: var(--serif); font-weight: 300; font-size: 26px; letter-spacing: -0.01em; color: var(--ink); display: flex; align-items: baseline; gap: 8px; }
.console .stat .v small { font-family: var(--sans); font-size: 11px; color: var(--muted); letter-spacing: 0.05em; }
.console .stat .delta { font-size: 11px; color: var(--teal); margin-top: 4px; letter-spacing: 0.04em; }
.console .stat .delta.dn { color: #d97706; }
.console .stat .spark { margin-top: 8px; height: 28px; }
.console .stat .spark path { fill: none; stroke: var(--teal); stroke-width: 1.4; }

.console .insight {
  padding: 14px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0,201,162,0.08), rgba(0,184,255,0.06));
  border: 1px solid rgba(0,201,162,0.25);
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-2);
  display: flex; gap: 12px; align-items: flex-start;
}
.console .insight .tag {
  font-family: var(--sans); font-size: 9.5px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--teal); white-space: nowrap; padding-top: 2px;
}
.console .insight strong { color: var(--ink); font-weight: 500; }
.console .insight em { font-style: italic; color: var(--teal); }

/* signal grid (inputs) */
.signals {
  margin-top: clamp(80px, 12vh, 120px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 880px) { .signals { grid-template-columns: 1fr 1fr; } }
.sig {
  background: transparent;
  padding: 28px 22px;
  display: flex; flex-direction: column; gap: 10px;
  position: relative;
}
.sig .greek { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--teal); }
.sig h5 { font-family: var(--serif); font-weight: 300; font-size: 22px; letter-spacing: -0.012em; color: var(--ink); }
.sig p { font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.sig ul { list-style: none; margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.sig ul li {
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 999px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--muted);
}

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