/* ═══════════════════════════════════════════════════
   eCQV·GxP — Shared Design System  v2
   ═══════════════════════════════════════════════════ */

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

:root {
  --ink:          #080b0d;
  --ink-2:        #10151a;
  --ink-3:        #181e25;
  --ink-4:        #1f2731;
  --rule:         rgba(255,255,255,0.065);
  --rule-mid:     rgba(255,255,255,0.11);
  --rule-hi:      rgba(255,255,255,0.18);
  --teal:         #1D9E75;
  --teal-light:   #5DCAA5;
  --teal-dim:     rgba(29,158,117,0.10);
  --teal-glow:    rgba(29,158,117,0.05);
  --amber:        #EF9F27;
  --amber-light:  #FAC775;
  --amber-dim:    rgba(239,159,39,0.09);
  --blue:         #378ADD;
  --blue-light:   #85B7EB;
  --blue-dim:     rgba(55,138,221,0.09);
  --purple:       #A78BFA;
  --purple-dim:   rgba(167,139,250,0.09);
  --text-1:       #edeae4;
  --text-2:       #a8a49e;
  --text-3:       #8a8680;
  --on-teal:      #04342C;
  --on-amber:     #3d2000;
  --nav-bg:       rgba(8,11,13,0.93);
  --nav-bg-solid: rgba(8,11,13,0.98);
  --font-d:       'Darker Grotesque', sans-serif;
  --font-b:       'DM Sans', sans-serif;
  --font-m:       'DM Mono', monospace;
  --r:            4px;
  --r-lg:         8px;
  --r-xl:         12px;
  --max-w:        1280px;
  --pad-x:        3rem;
}

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  background: var(--ink);
  color: var(--text-1);
  font-family: var(--font-b);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ─── TYPOGRAPHY ─── */
h1 {
  font-family: var(--font-d);
  font-size: clamp(2.4rem, 4.2vw, 3.8rem);
  font-weight: 800; line-height: 1.06;
  letter-spacing: -0.035em;
}
h2 {
  font-family: var(--font-d);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700; letter-spacing: -0.025em; line-height: 1.1;
}
h3 {
  font-family: var(--font-d);
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  font-weight: 600; letter-spacing: -0.015em; line-height: 1.3;
}
h4 {
  font-family: var(--font-d);
  font-size: 1rem; font-weight: 600;
  letter-spacing: -0.01em;
}

.hl-teal   { color: var(--teal-light); }
.hl-amber  { color: var(--amber-light); }
.hl-blue   { color: var(--blue-light); }
.hl-purple { color: var(--purple); }

/* ─── NAV ─── */
nav {
  position: sticky; top: 0; z-index: 200;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  border-bottom: 0.5px solid var(--rule);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--pad-x); height: 64px;
}

.nav-wordmark {
  display: flex; align-items: baseline; gap: 0;
  font-family: var(--font-d); font-weight: 800;
  font-size: 17px; letter-spacing: -0.02em;
  text-decoration: none; color: var(--text-1);
  flex-shrink: 0;
}
.nav-wordmark .e1 { color: var(--teal-light); }
.nav-wordmark .sep { color: var(--text-3); margin: 0 2px; font-weight: 300; }
.nav-wordmark .e2 { color: var(--amber-light); }

.nav-links {
  display: flex; align-items: center; gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-size: 12.5px; font-weight: 400;
  color: var(--text-2); text-decoration: none;
  letter-spacing: 0.03em; transition: color 0.2s;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text-1); }

.nav-cta {
  font-family: var(--font-m); font-size: 12px;
  color: var(--teal-light) !important;
  border: 0.5px solid rgba(29,158,117,0.5);
  padding: 7px 18px; border-radius: var(--r);
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--teal-dim) !important; }

/* hamburger */
.nav-hamburger {
  display: none; background: none; border: none;
  cursor: pointer; flex-direction: column;
  gap: 5px; padding: 4px;
}
.nav-hamburger span {
  display: block; width: 22px; height: 1.5px;
  background: var(--text-2); border-radius: 2px;
  transition: all 0.3s;
}

.nav-mobile-menu {
  display: none; position: fixed; top: 64px; left: 0; right: 0;
  background: var(--nav-bg-solid); backdrop-filter: blur(20px);
  border-bottom: 0.5px solid var(--rule);
  padding: 1.5rem var(--pad-x);
  flex-direction: column; gap: 1rem; z-index: 199;
}
.nav-mobile-menu a {
  font-size: 14px; color: var(--text-2); text-decoration: none;
  padding: 0.5rem 0; border-bottom: 0.5px solid var(--rule);
  transition: color 0.2s;
}
.nav-mobile-menu a:hover { color: var(--text-1); }
.nav-mobile-menu.open { display: flex; }

/* ─── LAYOUT HELPERS ─── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

section { padding: 6rem var(--pad-x); border-bottom: 0.5px solid var(--rule); }

.sec-eyebrow {
  font-family: var(--font-m); font-size: 10px;
  letter-spacing: 0.16em; color: var(--teal);
  text-transform: uppercase; margin-bottom: 1rem;
  display: flex; align-items: center; gap: 10px;
}
.sec-eyebrow::before { content: ''; display: block; width: 20px; height: 0.5px; background: var(--teal); }
.sec-eyebrow.amber { color: var(--amber); }
.sec-eyebrow.amber::before { background: var(--amber); }
.sec-eyebrow.blue { color: var(--blue-light); }
.sec-eyebrow.blue::before { background: var(--blue-light); }

.sec-intro {
  font-size: 15.5px; color: var(--text-2);
  max-width: 560px; line-height: 1.75;
  margin-bottom: 3.5rem;
}
.sec-intro.wide { max-width: 760px; }

/* ─── GRID BG ─── */
.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--rule) 0.5px, transparent 0.5px),
    linear-gradient(90deg, var(--rule) 0.5px, transparent 0.5px);
  background-size: 64px 64px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

.z1 { position: relative; z-index: 1; }

/* ─── BUTTONS ─── */
.btn-p {
  font-family: var(--font-m); font-size: 12.5px; font-weight: 500;
  background: var(--teal); color: var(--on-teal);
  padding: 13px 28px; border-radius: var(--r);
  text-decoration: none; border: none; cursor: pointer;
  transition: background 0.2s; letter-spacing: 0.03em;
  display: inline-block;
}
.btn-p:hover { background: var(--teal-light); }

.btn-g {
  font-family: var(--font-m); font-size: 12.5px;
  color: var(--text-2);
  border: 0.5px solid var(--rule-mid);
  padding: 13px 28px; border-radius: var(--r);
  text-decoration: none; transition: color 0.2s, border-color 0.2s;
  display: inline-block;
}
.btn-g:hover { color: var(--text-1); border-color: var(--rule-hi); }

.btn-amber {
  font-family: var(--font-m); font-size: 12.5px; font-weight: 500;
  background: var(--amber); color: var(--on-amber);
  padding: 13px 28px; border-radius: var(--r);
  text-decoration: none; border: none; cursor: pointer;
  transition: background 0.2s; letter-spacing: 0.03em;
  display: inline-block;
}
.btn-amber:hover { background: var(--amber-light); }

/* ─── BADGES & TAGS ─── */
.badge {
  font-family: var(--font-m); font-size: 8.5px;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 2px; display: inline-block;
}
.badge-t { background: var(--teal-dim); color: var(--teal-light); border: 0.5px solid rgba(29,158,117,0.25); }
.badge-a { background: var(--amber-dim); color: var(--amber-light); border: 0.5px solid rgba(239,159,39,0.25); }
.badge-b { background: var(--blue-dim); color: var(--blue-light); border: 0.5px solid rgba(55,138,221,0.25); }
.badge-p { background: var(--purple-dim); color: var(--purple); border: 0.5px solid rgba(167,139,250,0.25); }

.tbadge {
  font-family: var(--font-m); font-size: 12.12px;
  letter-spacing: 0.07em; padding: 4px 10px;
  border-radius: 2px; border: 0.5px solid;
}
.tb-t { border-color: rgba(29,158,117,0.35); color: var(--teal-light); background: var(--teal-dim); }
.tb-a { border-color: rgba(239,159,39,0.35); color: var(--amber-light); background: var(--amber-dim); }
.tb-g { border-color: var(--rule-mid); color: var(--text-3); }

.chip {
  font-family: var(--font-m); font-size: 12.12px;
  letter-spacing: 0.06em; color: var(--text-3);
  border: 0.5px solid var(--rule-mid); padding: 4px 10px; border-radius: 2px;
}
.chips { display: flex; gap: 7px; flex-wrap: wrap; }

/* ─── CARDS ─── */
.card {
  background: var(--ink-2);
  border: 0.5px solid var(--rule-mid);
  border-radius: var(--r-lg);
  padding: 2rem;
  transition: border-color 0.2s, background 0.2s;
}
.card:hover { border-color: var(--rule-hi); background: var(--ink-3); }

.card-accent-t { border-left: 2px solid var(--teal); }
.card-accent-a { border-left: 2px solid var(--amber); }
.card-accent-b { border-left: 2px solid var(--blue); }

/* ─── GRID PANELS (flush joined) ─── */
.panel-grid {
  display: grid;
  gap: 1px; background: var(--rule);
  border: 0.5px solid var(--rule); border-radius: var(--r-lg);
  overflow: hidden;
}
.panel-grid-2 { grid-template-columns: 1fr 1fr; }
.panel-grid-3 { grid-template-columns: repeat(3, 1fr); }
.panel-grid-4 { grid-template-columns: repeat(4, 1fr); }

.panel { background: var(--ink-2); padding: 2rem; }
.panel:hover { background: var(--ink-3); }

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 7rem var(--pad-x) 5rem;
  gap: 5rem;
  border-bottom: 0.5px solid var(--rule);
  position: relative; overflow: hidden;
}

.hero-glow {
  position: absolute; top: -100px; right: -60px;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(29,158,117,0.07) 0%, transparent 65%);
  pointer-events: none;
}
.hero-glow-amber {
  position: absolute; top: -100px; right: -60px;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(239,159,39,0.06) 0%, transparent 65%);
  pointer-events: none;
}
.hero-glow-blue {
  position: absolute; top: -100px; right: -60px;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(55,138,221,0.06) 0%, transparent 65%);
  pointer-events: none;
}

/* page hero variant (shorter) */
.page-hero {
  padding: 5rem var(--pad-x) 4rem;
  border-bottom: 0.5px solid var(--rule);
  position: relative; overflow: hidden;
}
.page-hero-inner {
  max-width: 800px; position: relative; z-index: 1;
}

/* ─── NICHE BLOCK ─── */
.niche-block {
  display: inline-flex; flex-direction: column;
  align-items: flex-start; gap: 2px;
  border-left: 2px solid var(--teal);
  padding-left: 14px; margin-bottom: 2rem;
}
.niche-line-top {
  font-family: var(--font-m); font-size: 12.625px;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--teal);
}
.niche-stack {
  font-family: var(--font-d); font-size: 16.16px;
  font-weight: 600; line-height: 1.45;
  color: var(--text-2); letter-spacing: 0.01em;
}
.niche-stack strong { color: var(--teal-light); font-weight: 700; }
.niche-stack em { color: var(--amber-light); font-style: normal; font-weight: 600; }

/* ─── TRUST STRIP ─── */
.trust-strip {
  display: flex; align-items: center; gap: 12px;
  margin-top: 2.5rem; flex-wrap: wrap;
}
.trust-label {
  font-family: var(--font-m); font-size: 11.363px;
  letter-spacing: 0.12em; color: var(--text-3); text-transform: uppercase;
}

/* ─── TERMINAL ─── */
.terminal-wrap { position: relative; animation: fadeUp 0.7s 0.2s ease both; }
.term-label {
  font-family: var(--font-m); font-size: 9px;
  letter-spacing: 0.14em; color: var(--teal);
  text-transform: uppercase; margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px;
}
.term-label::before { content: ''; display: block; width: 16px; height: 0.5px; background: var(--teal); }
.terminal {
  background: var(--ink-2);
  border: 0.5px solid var(--rule-mid);
  border-radius: var(--r-lg); overflow: hidden;
  font-family: var(--font-m); font-size: 12px; line-height: 1.85;
}
.tbar {
  background: var(--ink-3);
  padding: 10px 14px;
  display: flex; align-items: center; gap: 6px;
  border-bottom: 0.5px solid var(--rule);
}
.td { width: 10px; height: 10px; border-radius: 50%; }
.tdr { background: #3d1f1f; }
.tdy { background: #3d3319; }
.tdg { background: #1a3324; }
.ttitle { font-size: 10px; color: var(--text-3); margin-left: 8px; letter-spacing: 0.05em; }
.tbody { padding: 20px 22px; }
.tc  { color: var(--text-3); }
.tk  { color: var(--teal-light); }
.tv  { color: var(--amber); }
.ts  { color: var(--blue-light); }
.tok { color: var(--teal); }
.td2 { color: var(--text-3); }
.tl  { display: block; }
.cursor {
  display: inline-block; width: 6px; height: 13px;
  background: var(--teal); vertical-align: middle;
  animation: blink 1.1s step-end infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* ─── KPI ROW ─── */
.kpi-row {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 1px; background: var(--rule);
  border: 0.5px solid var(--rule); border-radius: var(--r-lg);
  overflow: hidden; margin-top: 12px;
}
.kpi-cell { background: var(--ink-2); padding: 14px 16px; text-align: center; }
.kpi-n {
  font-family: var(--font-d); font-size: 20px; font-weight: 800;
  letter-spacing: -0.03em; color: var(--teal-light);
  display: block; line-height: 1;
}
.kpi-l { font-size: 12.625px; color: var(--text-3); margin-top: 3px; line-height: 1.3; }

/* ─── STATS ─── */
.stats-row {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 1px; background: var(--rule);
  border: 0.5px solid var(--rule); border-radius: var(--r-lg);
  overflow: hidden; margin-top: 2.5rem;
}
.stat-cell { background: var(--ink-2); padding: 2rem 1.5rem; text-align: center; }
.stat-n {
  font-family: var(--font-d); font-size: 2.2rem; font-weight: 800;
  letter-spacing: -0.04em; color: var(--text-1);
  display: block; line-height: 1; margin-bottom: 6px;
}
.stat-n .st { color: var(--teal-light); }
.stat-n .sa { color: var(--amber-light); }
.stat-n .sb { color: var(--blue-light); }
.stat-l { font-size: 14.645px; color: var(--text-3); line-height: 1.45; }

/* ─── DOMAINS / SERVICES ─── */
.dom-icon {
  width: 42px; height: 42px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0; margin-bottom: 1rem;
}
.di-t { background: var(--teal-dim); color: var(--teal-light); border: 0.5px solid rgba(29,158,117,0.2); }
.di-a { background: var(--amber-dim); color: var(--amber-light); border: 0.5px solid rgba(239,159,39,0.2); }
.di-b { background: var(--blue-dim); color: var(--blue-light); border: 0.5px solid rgba(55,138,221,0.2); }
.di-p { background: var(--purple-dim); color: var(--purple); border: 0.5px solid rgba(167,139,250,0.2); }

.dom-list { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.dom-list li {
  font-size: 13.5px; color: var(--text-2);
  display: flex; align-items: flex-start;
  gap: 10px; line-height: 1.5;
}
.arr-t::before { content: '→'; font-family: var(--font-m); font-size: 10px; color: var(--teal); margin-top: 3px; flex-shrink: 0; }
.arr-a::before { content: '→'; font-family: var(--font-m); font-size: 10px; color: var(--amber); margin-top: 3px; flex-shrink: 0; }
.arr-b::before { content: '→'; font-family: var(--font-m); font-size: 10px; color: var(--blue-light); margin-top: 3px; flex-shrink: 0; }

/* ─── PROCESS STEPS ─── */
.proc-num {
  font-family: var(--font-m); font-size: 32px; font-weight: 300;
  color: var(--text-3); letter-spacing: -0.04em;
  display: block; line-height: 1; margin-bottom: 1rem;
}
.proc-title {
  font-family: var(--font-d); font-size: 14px;
  font-weight: 600; letter-spacing: -0.01em; margin-bottom: 0.5rem;
}
.proc-desc { font-size: 12.5px; color: var(--text-2); line-height: 1.6; }

/* ─── AI BRIDGE ─── */
.ai-bridge {
  background: var(--ink-3);
  border: 0.5px solid rgba(239,159,39,0.2);
  border-radius: var(--r-lg); padding: 1.75rem 2.25rem;
  display: flex; align-items: center; gap: 2.5rem;
  margin-top: 2rem;
}
.aib-tag {
  font-family: var(--font-m); font-size: 9px;
  letter-spacing: 0.16em; color: var(--amber);
  text-transform: uppercase; margin-bottom: 5px;
}
.aib-title {
  font-family: var(--font-d); font-size: 17px;
  font-weight: 600; letter-spacing: -0.015em; margin-bottom: 12px;
}
.aib-infinity {
  font-family: var(--font-d); font-size: 40px;
  color: var(--amber); opacity: 0.35; flex-shrink: 0; line-height: 1;
}

/* ─── CONTACT FORM ─── */
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.fg { display: flex; flex-direction: column; gap: 5px; }
.fg label {
  font-family: var(--font-m); font-size: 9px;
  letter-spacing: 0.12em; color: var(--text-3); text-transform: uppercase;
}
.fg input, .fg select, .fg textarea {
  background: var(--ink-2); border: 0.5px solid var(--rule-mid);
  border-radius: var(--r); color: var(--text-1);
  font-family: var(--font-b); font-size: 14px;
  padding: 10px 14px; outline: none; width: 100%;
  transition: border-color 0.2s;
}
.fg input::placeholder, .fg textarea::placeholder { color: var(--text-3); }
.fg input:focus, .fg select:focus, .fg textarea:focus { border-color: var(--teal); }
.fg select { appearance: none; cursor: pointer; }
.fg textarea { resize: vertical; min-height: 100px; }
.form-submit {
  font-family: var(--font-m); font-size: 12.5px; font-weight: 500;
  background: var(--teal); color: var(--on-teal);
  padding: 13px 28px; border-radius: var(--r); border: none;
  cursor: pointer; transition: background 0.2s;
  letter-spacing: 0.04em; width: fit-content;
}
.form-submit:hover { background: var(--teal-light); }

/* ─── C-ROW ─── */
.c-detail { display: flex; flex-direction: column; gap: 1rem; }
.c-row { display: flex; align-items: center; gap: 12px; font-size: 13.5px; color: var(--text-2); }
.c-icon {
  width: 34px; height: 34px; border-radius: var(--r);
  background: var(--teal-dim); border: 0.5px solid rgba(29,158,117,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: var(--teal-light); flex-shrink: 0;
}

/* ─── FOOTER ─── */
footer {
  padding: 2rem var(--pad-x);
  display: flex; align-items: center; justify-content: space-between;
  border-top: 0.5px solid var(--rule);
}
.foot-left { display: flex; align-items: center; gap: 14px; }
.foot-wordmark {
  font-family: var(--font-d); font-weight: 800;
  font-size: 14px; letter-spacing: -0.02em; color: var(--text-1);
  text-decoration: none;
}
.foot-wordmark .e1 { color: var(--teal-light); }
.foot-wordmark .e2 { color: var(--amber-light); }
.foot-tagline {
  font-family: var(--font-m); font-size: 10px;
  letter-spacing: 0.07em; color: var(--text-3);
}
.foot-links { display: flex; gap: 2rem; align-items: center; }
.foot-nav {
  display: flex; gap: 1.5rem;
  font-family: var(--font-m); font-size: 10px;
  letter-spacing: 0.05em; color: var(--text-3);
}
.foot-nav a { color: var(--text-3); text-decoration: none; transition: color 0.2s; }
.foot-nav a:hover { color: var(--teal-light); }
.foot-copy {
  font-family: var(--font-m); font-size: 10px;
  letter-spacing: 0.05em; color: var(--text-3);
}

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideRight {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}

.anim-fade-up { animation: fadeUp 0.65s ease both; }
.hero-content > * { animation: fadeUp 0.65s ease both; }
.hero-content > *:nth-child(1) { animation-delay: 0.05s; }
.hero-content > *:nth-child(2) { animation-delay: 0.15s; }
.hero-content > *:nth-child(3) { animation-delay: 0.25s; }
.hero-content > *:nth-child(4) { animation-delay: 0.35s; }
.hero-content > *:nth-child(5) { animation-delay: 0.42s; }
.terminal-wrap { animation: fadeUp 0.7s 0.25s ease both; }

/* scroll reveal */
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── UTILITY ─── */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.flex-gap { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.text-muted { color: var(--text-2); }
.text-mono { font-family: var(--font-m); }

/* ─── NICHE BANNER ─── */
.niche-banner {
  background: var(--ink-2);
  border: 0.5px solid var(--rule-mid);
  border-radius: var(--r-lg);
  padding: 2.5rem 3rem;
  display: grid; grid-template-columns: auto 1fr auto;
  align-items: center; gap: 3rem;
  margin-bottom: 4rem;
  position: relative; overflow: hidden;
}
.niche-banner::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 3px; height: 100%;
  background: linear-gradient(to bottom, var(--teal), var(--amber));
}
.nb-left { padding-left: 1rem; }
.nb-tag {
  font-family: var(--font-m); font-size: 9px;
  letter-spacing: 0.18em; color: var(--teal);
  text-transform: uppercase; margin-bottom: 8px;
}
.nb-name {
  font-family: var(--font-d); font-size: 26px;
  font-weight: 800; letter-spacing: -0.03em; line-height: 1;
}
.nb-name .nt { color: var(--teal-light); }
.nb-name .na { color: var(--amber-light); }
.nb-center {
  border-left: 0.5px solid var(--rule-mid);
  border-right: 0.5px solid var(--rule-mid);
  padding: 0 3rem;
}
.nb-phrase {
  font-family: var(--font-d); font-size: 18px;
  font-weight: 600; letter-spacing: -0.015em;
  line-height: 1.4; color: var(--text-1);
}
.nb-phrase .ph-t { color: var(--teal-light); }
.nb-phrase .ph-a { color: var(--amber-light); }
.nb-right { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.industry-pill {
  font-family: var(--font-m); font-size: 10px;
  letter-spacing: 0.07em; padding: 5px 14px;
  border-radius: 20px; border: 0.5px solid var(--rule-mid); color: var(--text-2);
}
.industry-pill.active {
  border-color: rgba(29,158,117,0.4);
  color: var(--teal-light); background: var(--teal-dim);
}

/* ─── CAREERS ─── */
.job-card {
  background: var(--ink-2);
  border: 0.5px solid var(--rule-mid);
  border-radius: var(--r-lg);
  padding: 1.75rem 2rem;
  display: grid; grid-template-columns: 1fr auto;
  align-items: start; gap: 2rem;
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.job-card:hover { border-color: rgba(29,158,117,0.4); background: var(--ink-3); }
.job-dept {
  font-family: var(--font-m); font-size: 9px;
  letter-spacing: 0.14em; color: var(--teal);
  text-transform: uppercase; margin-bottom: 6px;
}
.job-title {
  font-family: var(--font-d); font-size: 16px;
  font-weight: 600; letter-spacing: -0.01em; margin-bottom: 8px;
}
.job-meta {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
  font-family: var(--font-m); font-size: 10px;
  color: var(--text-3); letter-spacing: 0.05em;
}
.job-meta span::before { content: '·'; margin-right: 10px; }
.job-meta span:first-child::before { content: none; }
.job-apply {
  font-family: var(--font-m); font-size: 11px;
  color: var(--teal-light);
  border: 0.5px solid rgba(29,158,117,0.4);
  padding: 8px 18px; border-radius: var(--r);
  white-space: nowrap;
  background: var(--teal-dim);
}

/* culture cards */
.culture-card {
  background: var(--ink-2);
  border: 0.5px solid var(--rule);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  transition: border-color 0.2s;
}
.culture-card:hover { border-color: var(--rule-mid); }
.cc-icon {
  font-size: 22px; margin-bottom: 1rem;
  width: 44px; height: 44px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}

/* ─── PAGE SPECIFIC: Agentic AI ─── */
.agent-flow {
  display: flex; flex-direction: column; gap: 1px;
  background: var(--rule);
  border: 0.5px solid var(--rule); border-radius: var(--r-lg);
  overflow: hidden;
}
.agent-step {
  background: var(--ink-2);
  display: grid; grid-template-columns: 60px 1fr auto;
  align-items: center; gap: 2rem;
  padding: 1.5rem 2rem;
  transition: background 0.2s;
}
.agent-step:hover { background: var(--ink-3); }
.agent-step-num {
  font-family: var(--font-m); font-size: 28px; font-weight: 300;
  color: var(--text-3); letter-spacing: -0.04em; line-height: 1;
}
.agent-step-title {
  font-family: var(--font-d); font-size: 14px;
  font-weight: 600; margin-bottom: 4px;
}
.agent-step-desc { font-size: 12.5px; color: var(--text-2); line-height: 1.55; }

/* use case cards */
.usecase-card {
  background: var(--ink-2);
  border: 0.5px solid var(--rule-mid);
  border-radius: var(--r-lg); padding: 2rem;
  transition: border-color 0.2s, background 0.2s;
  position: relative; overflow: hidden;
}
.usecase-card:hover { border-color: var(--rule-hi); background: var(--ink-3); }
.usecase-card::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px; background: linear-gradient(to right, var(--teal), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.usecase-card:hover::after { opacity: 1; }
.uc-num {
  font-family: var(--font-m); font-size: 9px;
  color: var(--text-3); letter-spacing: 0.1em; margin-bottom: 0.75rem;
}
.uc-title {
  font-family: var(--font-d); font-size: 15px;
  font-weight: 600; margin-bottom: 0.6rem;
}
.uc-desc { font-size: 13px; color: var(--text-2); line-height: 1.65; margin-bottom: 1rem; }
.uc-result {
  font-family: var(--font-m); font-size: 10px;
  color: var(--teal); border-top: 0.5px solid var(--rule);
  padding-top: 0.75rem; margin-top: 0.75rem;
  letter-spacing: 0.06em;
}

/* ─── PAGE SPECIFIC: Process Automation ─── */
.automation-diagram {
  background: var(--ink-2);
  border: 0.5px solid var(--rule-mid);
  border-radius: var(--r-lg);
  padding: 2.5rem; overflow: hidden;
}
.flow-row {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 1rem;
}
.flow-node {
  background: var(--ink-3);
  border: 0.5px solid var(--rule-mid);
  border-radius: var(--r);
  padding: 0.6rem 1rem;
  font-family: var(--font-m); font-size: 11px;
  color: var(--text-2); white-space: nowrap;
}
.flow-node.active {
  border-color: rgba(29,158,117,0.5);
  color: var(--teal-light); background: var(--teal-dim);
}
.flow-arrow {
  font-family: var(--font-m); font-size: 12px;
  color: var(--text-3); flex-shrink: 0;
}

/* ─── HERO HERO  ─── */
.hero-sub {
  font-size: 16.5px; font-weight: 300;
  color: var(--text-2); line-height: 1.8;
  max-width: 480px; margin-bottom: 2.5rem;
  margin-top: 1.5rem;
}
.hero-actions { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  :root { --pad-x: 2rem; }
  .panel-grid-4 { grid-template-columns: 1fr 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --pad-x: 1.25rem; }
  nav { padding: 0 var(--pad-x); }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .hero {
    grid-template-columns: 1fr;
    padding: 3.5rem var(--pad-x) 3rem;
    min-height: auto; gap: 3rem;
  }
  section { padding: 4rem var(--pad-x); }
  .page-hero { padding: 3.5rem var(--pad-x) 3rem; }
  .panel-grid-2,
  .panel-grid-3,
  .panel-grid-4 { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .form-row-2 { grid-template-columns: 1fr; }
  .niche-banner {
    grid-template-columns: 1fr; gap: 1.5rem;
  }
  .nb-center {
    border-left: none; border-right: none;
    border-top: 0.5px solid var(--rule);
    border-bottom: 0.5px solid var(--rule);
    padding: 1.5rem 0;
  }
  .nb-right { align-items: flex-start; }
  footer { flex-direction: column; gap: 14px; text-align: center; }
  .foot-left { flex-direction: column; align-items: center; gap: 8px; }
  .foot-links { flex-direction: column; gap: 10px; align-items: center; }
  .job-card { grid-template-columns: 1fr; }
  .agent-step { grid-template-columns: 50px 1fr; }
  .agent-step .badge { display: none; }
  .ai-bridge { flex-direction: column; gap: 1.5rem; }
  .kpi-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  .stats-row { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════
   THEME OVERRIDES
   All themes preserve teal/amber brand accents.
   Verified WCAG contrast ratios noted inline.
   ═══════════════════════════════════════════════════ */

/* ─── 1. Clinical Blue + Amber ─────────────────────
   Primary teal → clinical blue. Amber CTAs unchanged.
   Pfizer / Merck / Roche energy. Most FDA-authoritative.
─────────────────────────────────────────────────── */
[data-theme="clinical"] {
  --teal:       #1565C4;
  --teal-light: #4A9FF5;
  --teal-dim:   rgba(21,101,196,0.10);
  --teal-glow:  rgba(21,101,196,0.05);
  --on-teal:    #ffffff;
  --blue:       #0EA5E9;
  --blue-light: #7DD3FC;
  --blue-dim:   rgba(14,165,233,0.09);
}

/* ─── 2. Pharma Navy + Precision Cyan ──────────────
   Deep navy primary. Bright cyan replaces amber.
   Clinical research org / regulatory affairs feel.
─────────────────────────────────────────────────── */
[data-theme="navycyan"] {
  --teal:        #1A4FBB;
  --teal-light:  #5B9BF5;
  --teal-dim:    rgba(26,79,187,0.10);
  --teal-glow:   rgba(26,79,187,0.05);
  --on-teal:     #ffffff;
  --on-amber:    #05333b;
  --amber:       #0891B2;
  --amber-light: #22D3EE;
  --amber-dim:   rgba(8,145,178,0.09);
  --blue:        #7C3AED;
  --blue-light:  #A78BFA;
  --blue-dim:    rgba(124,58,237,0.09);
}

/* ─── 3. Biotech Violet + Arctic Blue ──────────────
   Violet primary. Arctic blue secondary.
   Moderna / Vertex / Recursion AI-biotech energy.
─────────────────────────────────────────────────── */
[data-theme="violet"] {
  --teal:        #6D28D9;
  --teal-light:  #8B5CF6;
  --teal-dim:    rgba(109,40,217,0.10);
  --teal-glow:   rgba(109,40,217,0.05);
  --on-teal:     #ffffff;
  --on-amber:    #ffffff;
  --amber:       #0284C7;
  --amber-light: #38BDF8;
  --amber-dim:   rgba(2,132,199,0.09);
  --blue:        #10B981;
  --blue-light:  #6EE7B7;
  --blue-dim:    rgba(16,185,129,0.09);
}

/* ─── 4. Deep Teal + Regulatory Blue ───────────────
   Deeper, more serious teal. Regulatory blue as CTA.
   Closest evolution of current palette. Most grounded.
─────────────────────────────────────────────────── */
[data-theme="deepteal"] {
  --teal:        #0F766E;
  --teal-light:  #2DD4BF;
  --teal-dim:    rgba(15,118,110,0.10);
  --teal-glow:   rgba(15,118,110,0.05);
  --on-teal:     #ffffff;
  --on-amber:    #ffffff;
  --amber:       #2563EB;
  --amber-light: #93C5FD;
  --amber-dim:   rgba(37,99,235,0.09);
  --blue:        #0891B2;
  --blue-light:  #7DD3FC;
  --blue-dim:    rgba(8,145,178,0.09);
}

/* ═══════════════════════════════════════════════════
   LIGHT / DAY THEMES
   Shared light ground + per-accent overrides.
   text-1 #0e1b2a on #ffffff → 17:1 AAA
   text-2 #45515f on #ffffff → 7.6:1 AAA
   text-3 #687585 on #ffffff → 4.8:1 AA
   ═══════════════════════════════════════════════════ */
[data-theme$="-light"] {
  --ink:          #ffffff;
  --ink-2:        #f5f7fa;
  --ink-3:        #eceff3;
  --ink-4:        #e1e7ee;
  --rule:         rgba(15,28,45,0.09);
  --rule-mid:     rgba(15,28,45,0.15);
  --rule-hi:      rgba(15,28,45,0.24);
  --text-1:       #0e1b2a;
  --text-2:       #45515f;
  --text-3:       #687585;
  --nav-bg:       rgba(255,255,255,0.88);
  --nav-bg-solid: rgba(255,255,255,0.97);
  --on-teal:      #ffffff;
  --on-amber:     #ffffff;
}

/* 5. Clinical Light */
[data-theme="clinical-light"] {
  --teal: #1565C4; --teal-light: #0D4FA3; --teal-dim: rgba(21,101,196,0.10); --teal-glow: rgba(21,101,196,0.05);
  --amber: #B45F00; --amber-light: #8F4D00; --amber-dim: rgba(180,95,0,0.10);
  --blue: #0369A1; --blue-light: #075985; --blue-dim: rgba(3,105,161,0.09);
  --purple: #6D28D9; --purple-dim: rgba(109,40,217,0.09);
}

/* 6. Navy + Cyan Light */
[data-theme="navycyan-light"] {
  --teal: #1A4FBB; --teal-light: #173FA0; --teal-dim: rgba(26,79,187,0.10); --teal-glow: rgba(26,79,187,0.05);
  --amber: #0E7490; --amber-light: #0C5E74; --amber-dim: rgba(14,116,144,0.10);
  --blue: #6D28D9; --blue-light: #5B21B6; --blue-dim: rgba(109,40,217,0.09);
  --purple: #6D28D9; --purple-dim: rgba(109,40,217,0.09);
}

/* 7. Biotech Violet Light */
[data-theme="violet-light"] {
  --teal: #6D28D9; --teal-light: #5B21B6; --teal-dim: rgba(109,40,217,0.10); --teal-glow: rgba(109,40,217,0.05);
  --amber: #0369A1; --amber-light: #075985; --amber-dim: rgba(3,105,161,0.10);
  --blue: #047857; --blue-light: #065F46; --blue-dim: rgba(4,120,87,0.09);
  --purple: #6D28D9; --purple-dim: rgba(109,40,217,0.09);
}

/* 8. Deep Teal Light */
[data-theme="deepteal-light"] {
  --teal: #0F766E; --teal-light: #0C5F58; --teal-dim: rgba(15,118,110,0.10); --teal-glow: rgba(15,118,110,0.05);
  --amber: #1D4ED8; --amber-light: #1E40AF; --amber-dim: rgba(29,78,216,0.10);
  --blue: #0E7490; --blue-light: #0C5E74; --blue-dim: rgba(14,116,144,0.09);
  --purple: #6D28D9; --purple-dim: rgba(109,40,217,0.09);
}

/* ═══════════════════════════════════════════════════
   THEME PICKER WIDGET
   ═══════════════════════════════════════════════════ */
.theme-picker {
  position: relative; display: flex; align-items: center;
}
.theme-picker-btn {
  background: none; border: none; box-shadow: none; padding: 0;
  font-size: 12.5px; font-weight: 400; font-family: var(--font-b);
  color: var(--text-2); cursor: pointer; letter-spacing: 0.03em;
  display: flex; align-items: center; gap: 5px;
  transition: color 0.2s;
}
.theme-picker-btn:hover { color: var(--text-1); }

.theme-picker-panel {
  position: fixed; top: 68px; left: 0; z-index: 9999;
  background: var(--ink-2); border: 0.5px solid var(--rule-hi);
  border-radius: var(--r-xl); padding: 1.1rem 1rem;
  width: 230px; box-shadow: 0 8px 40px rgba(0,0,0,0.65);
  opacity: 0; transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.theme-picker-panel.open {
  opacity: 1; transform: translateY(0); pointer-events: all;
}
.tp-heading {
  font-family: var(--font-m); font-size: 9px;
  letter-spacing: 0.16em; color: var(--text-3);
  text-transform: uppercase; margin-bottom: 10px;
  padding-bottom: 8px; border-bottom: 0.5px solid var(--rule);
}
.tp-options { display: flex; flex-direction: column; gap: 5px; max-height: 62vh; overflow-y: auto; }
.tp-group {
  font-family: var(--font-m); font-size: 8px;
  letter-spacing: 0.18em; color: var(--text-3);
  text-transform: uppercase; margin: 10px 0 2px; padding-left: 2px;
}
.tp-group:first-child { margin-top: 0; }
.tp-option {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: var(--r);
  border: 0.5px solid transparent; cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  background: none; width: 100%; text-align: left;
}
.tp-option:hover { border-color: var(--rule-mid); background: var(--ink-3); }
.tp-option.tp-active {
  border-color: rgba(29,158,117,0.5); background: var(--teal-dim);
}
.tp-swatches { display: flex; gap: 3px; flex-shrink: 0; }
.tp-dot { width: 10px; height: 10px; border-radius: 50%; border: 0.5px solid rgba(255,255,255,0.12); }
.tp-info { flex: 1; }
.tp-name {
  font-family: var(--font-m); font-size: 10px;
  color: var(--text-2); letter-spacing: 0.05em; display: block;
}
.tp-option.tp-active .tp-name { color: var(--teal-light); }
.tp-wcag {
  font-family: var(--font-m); font-size: 8px;
  color: var(--text-3); letter-spacing: 0.07em;
}
.tp-option.tp-active .tp-wcag { color: var(--teal); }

@media (max-width: 480px) {
  .theme-picker-panel { width: 210px; }
}
