/* ==========================================================================
   Biostellaar Clinical Services LLP — Design System
   Single stylesheet, no build step.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Ink / neutrals */
  --ink-900: #060D1F;
  --ink-800: #0A1428;
  --ink-700: #0F1E3A;
  --ink-600: #16264A;
  --slate-700: #33465C;
  --slate-600: #475C75;
  --slate-500: #5E7391;
  --slate-400: #92A5BC;
  --slate-300: #A9BACE;
  --slate-200: #C6D3E2;
  --line: #E3E9F2;
  --line-strong: #CFD9E8;
  --surface: #F4F7FC;
  --surface-2: #E9F0F9;
  --white: #FFFFFF;

  /* Brand — Regulatory Blue */
  --brand-800: #1E3A8A;
  --brand-700: #1D4ED8;
  --brand-600: #2563EB;
  --brand-400: #38BDF8;
  --brand-200: #BAE6FD;
  --brand-100: #DBEAFE;
  --accent-500: #3B82F6;
  --accent-400: #93C5FD;
  --accent-100: #E0F2FE;

  --grad: linear-gradient(118deg, #1E40AF 0%, #2563EB 48%, #38BDF8 100%);
  --grad-soft: linear-gradient(118deg, #DBEAFE 0%, #E0F2FE 100%);

  /* Type */
  --font-display: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Space & shape */
  --container: 1200px;
  --gutter: clamp(20px, 5vw, 40px);
  --section-y: clamp(64px, 8.5vw, 120px);
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;

  --shadow-sm: 0 1px 2px rgba(6, 13, 31, .05), 0 2px 8px rgba(6, 13, 31, .04);
  --shadow-md: 0 2px 6px rgba(6, 13, 31, .06), 0 12px 32px rgba(6, 13, 31, .07);
  --shadow-lg: 0 4px 12px rgba(6, 13, 31, .07), 0 28px 60px rgba(6, 13, 31, .10);

  --header-h: 76px;
}

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--slate-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink-800);
  line-height: 1.16;
  letter-spacing: -0.021em;
  font-weight: 700;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 1.35rem + 3.15vw, 3.85rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 1.2rem + 2.1vw, 2.7rem); }
h3 { font-size: clamp(1.15rem, 1.02rem + 0.55vw, 1.4rem); line-height: 1.3; }
h4 { font-size: 1.02rem; line-height: 1.4; }
p  { text-wrap: pretty; }

::selection { background: var(--brand-200); color: var(--ink-900); }

:focus-visible {
  outline: 2px solid var(--brand-600);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: 12px; top: -80px; z-index: 200;
  background: var(--ink-800); color: #fff;
  padding: 12px 18px; border-radius: 0 0 var(--r-sm) var(--r-sm);
  font-size: .9rem; font-weight: 600; transition: top .2s;
}
.skip-link:focus { top: 0; }

/* ---------- 3. Layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 860px; }

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section--surface { background: var(--surface); }
.section--line { border-top: 1px solid var(--line); }

.section--dark {
  background: var(--ink-900);
  color: var(--slate-200);
}
.section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }

.stack > * + * { margin-top: 1.1rem; }
.center { text-align: center; }
.center .section-head { margin-inline: auto; }

/* ---------- 4. Typographic helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: flex-start; gap: 10px;
  font-family: var(--font-display);
  font-size: .765rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--brand-700);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: ""; flex: none; width: 26px; height: 2px; border-radius: 2px;
  margin-top: .62em; background: var(--grad);
}
.section--dark .eyebrow { color: var(--brand-400); }

.lead {
  font-size: clamp(1.05rem, 1rem + .35vw, 1.22rem);
  line-height: 1.66;
  color: var(--slate-600);
}
.section--dark .lead { color: var(--slate-200); }

.section-head { max-width: 720px; margin-bottom: clamp(36px, 4vw, 56px); }
.section-head p { margin-top: 18px; }
.section-head--wide { max-width: 820px; }

.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- 5. Buttons ---------- */
.btn {
  --btn-bg: var(--grad);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display);
  font-size: .95rem; font-weight: 700; letter-spacing: -0.005em;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--btn-bg);
  color: #fff;
  box-shadow: 0 1px 2px rgba(6, 13, 31,.12), 0 10px 22px -10px rgba(37, 99, 235,.65);
  transition: transform .18s cubic-bezier(.2,.7,.3,1), box-shadow .18s, background-color .18s, border-color .18s, color .18s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(6, 13, 31,.12), 0 16px 30px -12px rgba(37, 99, 235,.75); }
.btn:active { transform: translateY(0); }
.btn svg { width: 17px; height: 17px; flex: none; transition: transform .18s; }
.btn:hover svg { transform: translateX(3px); }

.btn--ghost {
  background: transparent; color: var(--ink-800);
  border: 1.5px solid var(--line-strong);
  box-shadow: none;
}
.btn--ghost:hover { border-color: var(--brand-400); color: var(--brand-700); box-shadow: var(--shadow-sm); }

.btn--light {
  background: rgba(255,255,255,.08); color: #fff;
  border: 1.5px solid rgba(255,255,255,.26); box-shadow: none;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.btn--light:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.5); box-shadow: none; }

.btn--sm { padding: 10px 20px; font-size: .875rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.arrow-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: .93rem;
  color: var(--brand-700);
}
.arrow-link svg { width: 16px; height: 16px; transition: transform .18s; }
.arrow-link:hover svg { transform: translateX(4px); }
.section--dark .arrow-link { color: var(--brand-400); }

/* ---------- 6. Header / navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.82);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s, background-color .25s;
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 1px 24px rgba(6, 13, 31,.06);
}
.site-header .container {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.brand img { width: 38px; height: 38px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.08; }
.brand-name {
  font-family: var(--font-display); font-weight: 800;
  font-size: 1.14rem; color: var(--ink-800); letter-spacing: -.02em;
}
.brand-sub {
  font-size: .62rem; letter-spacing: .17em; text-transform: uppercase;
  color: var(--slate-500); font-weight: 600;
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav a, .nav .nav-trigger {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-display); font-size: .915rem; font-weight: 600;
  color: var(--slate-600);
  padding: 9px 13px; border-radius: 999px;
  transition: color .16s, background-color .16s;
}
.nav a:hover, .nav .nav-trigger:hover { color: var(--ink-800); background: var(--surface-2); }
.nav a.is-active { color: var(--brand-700); }

.has-menu { position: relative; }
.nav-trigger svg { width: 13px; height: 13px; transition: transform .2s; opacity: .7; }
.has-menu:hover .nav-trigger svg, .has-menu.is-open .nav-trigger svg { transform: rotate(180deg); }

.submenu {
  position: absolute; top: calc(100% + 10px); left: 50%;
  transform: translate(-50%, 8px);
  min-width: 268px; padding: 10px;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-md); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s, visibility .18s;
}
.has-menu:hover .submenu,
.has-menu:focus-within .submenu,
.has-menu.is-open .submenu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.submenu a {
  display: block; width: 100%; padding: 11px 14px; border-radius: var(--r-sm);
  font-size: .91rem; color: var(--ink-700);
}
.submenu a span {
  display: block; font-family: var(--font-body); font-weight: 400;
  font-size: .79rem; color: var(--slate-500); margin-top: 2px; line-height: 1.4;
}
.submenu a:hover { background: var(--surface); }

.header-cta { flex: none; }
.nav .mobile-cta { display: none; }

.nav-toggle {
  display: none; width: 44px; height: 44px; flex: none;
  align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 12px;
}
.nav-toggle span {
  display: block; width: 19px; height: 2px; border-radius: 2px;
  background: var(--ink-800); position: relative;
  transition: background-color .2s;
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 19px; height: 2px;
  border-radius: 2px; background: var(--ink-800);
  transition: transform .22s cubic-bezier(.2,.7,.3,1), top .22s;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
body.nav-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 1040px) {
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 16px var(--gutter) 28px;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  body.nav-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav a, .nav .nav-trigger {
    padding: 14px 12px; font-size: 1.02rem; border-radius: var(--r-sm);
    justify-content: space-between;
  }
  .nav > li { border-bottom: 1px solid var(--line); }
  .nav > li:last-child { border-bottom: 0; }
  .submenu {
    position: static; transform: none; opacity: 1; visibility: visible;
    box-shadow: none; border: 0; border-left: 2px solid var(--line);
    border-radius: 0; margin: 0 0 10px 14px; padding: 0 0 0 8px;
    min-width: 0; display: none;
  }
  .has-menu.is-open .submenu { display: block; }
  .nav .mobile-cta { display: block; margin-top: 18px; }
  .nav .mobile-cta .btn { width: 100%; }
}

/* ---------- 7. Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--ink-900);
  color: var(--slate-200);
  padding-block: clamp(72px, 10vw, 136px) clamp(80px, 10vw, 140px);
  isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(900px 520px at 78% 18%, rgba(56, 189, 248,.20), transparent 62%),
    radial-gradient(760px 500px at 12% 84%, rgba(59, 130, 246,.17), transparent 60%),
    linear-gradient(160deg, #060D1F 0%, #0A1428 52%, #0D2047 100%);
}
.hero-helix {
  position: absolute; z-index: -1; pointer-events: none;
  inset: auto -8% -20% -8%; width: 116%;
  opacity: .5;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 45%, #000 78%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 45%, #000 78%, transparent);
  animation: drift 48s linear infinite;
}
@keyframes drift {
  from { transform: translateX(0); }
  to   { transform: translateX(-380px); }
}
.hero-grid {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 68px 68px;
  -webkit-mask-image: radial-gradient(700px 420px at 50% 0%, #000, transparent 75%);
  mask-image: radial-gradient(700px 420px at 50% 0%, #000, transparent 75%);
}

.hero h1 { color: #fff; max-width: 15ch; }
.hero-inner { max-width: 800px; }
.hero-tagline {
  display: block;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.05rem, .95rem + .55vw, 1.35rem);
  margin-top: 22px; letter-spacing: -.01em;
}
.hero p.lead { margin-top: 20px; max-width: 62ch; color: #B4C6DE; }
.hero .btn-row { margin-top: 38px; }

.hero-badges {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 48px; padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .82rem; font-weight: 500; color: #A6BBD6;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  padding: 8px 15px; border-radius: 999px;
}
.hero-badge::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand-400); box-shadow: 0 0 0 3px rgba(56, 189, 248,.2);
}

/* Inner page hero */
.page-hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--ink-900); color: var(--slate-200);
  padding-block: clamp(56px, 7vw, 96px) clamp(60px, 7.5vw, 104px);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(760px 420px at 84% 12%, rgba(56, 189, 248,.19), transparent 62%),
    radial-gradient(620px 420px at 6% 96%, rgba(59, 130, 246,.15), transparent 60%),
    linear-gradient(150deg, #060D1F, #0C1C3A);
}
.page-hero .helix-side {
  position: absolute; z-index: -1; right: -60px; top: -120px;
  width: 380px; opacity: .32; pointer-events: none;
  -webkit-mask-image: radial-gradient(closest-side, #000, transparent);
  mask-image: radial-gradient(closest-side, #000, transparent);
}
.page-hero h1 { color: #fff; max-width: 18ch; }
.page-hero p { margin-top: 20px; max-width: 64ch; color: #B4C6DE; }

.crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: .8rem; color: var(--slate-400); margin-bottom: 20px;
}
.crumbs a { color: var(--slate-400); }
.crumbs a:hover { color: var(--brand-400); }
.crumbs span[aria-current] { color: #E4EDF7; }
.crumbs .sep { opacity: .5; }

/* ---------- 8. Cards & grids ---------- */
.grid { display: grid; gap: clamp(18px, 2vw, 26px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 960px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 620px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(24px, 2.6vw, 34px);
  transition: transform .22s cubic-bezier(.2,.7,.3,1), box-shadow .22s, border-color .22s;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.card::after {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: var(--grad); opacity: 0; transition: opacity .22s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.card:hover::after { opacity: 1; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: .95rem; }
.card > .arrow-link { margin-top: auto; padding-top: 22px; align-self: flex-start; }
.section--surface .card { background: #fff; }

.card--plain:hover { transform: none; box-shadow: none; }
.card--plain::after { display: none; }

.card--dark {
  background: rgba(255,255,255,.035);
  border-color: rgba(255,255,255,.1);
}
.card--dark:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.2); box-shadow: none; }
.card--dark p { color: var(--slate-300); }

.card-icon {
  width: 52px; height: 52px; border-radius: 15px;
  display: grid; place-items: center;
  background: var(--grad-soft);
  border: 1px solid var(--brand-100);
  margin-bottom: 20px;
}
.card-icon svg { width: 25px; height: 25px; stroke: var(--brand-700); }
.card--dark .card-icon { background: rgba(56, 189, 248,.12); border-color: rgba(56, 189, 248,.22); }
.card--dark .card-icon svg { stroke: var(--brand-400); }

.card-num {
  font-family: var(--font-display); font-weight: 800;
  font-size: .8rem; letter-spacing: .1em;
  color: var(--brand-600); margin-bottom: 14px; display: block;
}

/* Value / feature list items */
.feature-list { display: grid; gap: 4px; }
.feature-item {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
}
.feature-item:last-child { border-bottom: 0; }
.feature-item .dot {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; margin-top: 1px;
  background: var(--brand-100);
}
.feature-item .dot svg { width: 14px; height: 14px; stroke: var(--brand-700); }
.feature-item h4 { margin-bottom: 3px; }
.feature-item p { font-size: .93rem; }
.section--dark .feature-item { border-bottom-color: rgba(255,255,255,.09); }
.section--dark .feature-item .dot { background: rgba(56, 189, 248,.14); }
.section--dark .feature-item .dot svg { stroke: var(--brand-400); }

/* Checked bullet lists */
.list-check { display: grid; gap: 13px; }
.list-check li {
  position: relative; padding-left: 32px;
  font-size: .96rem; color: var(--slate-600);
}
.list-check li::before {
  content: ""; position: absolute; left: 0; top: .34em;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--brand-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231D4ED8' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/11px no-repeat;
}
.list-check--two { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 13px 28px; }
@media (max-width: 680px) { .list-check--two { grid-template-columns: 1fr; } }
.section--dark .list-check li { color: var(--slate-200); }
.section--dark .list-check li::before {
  background-color: rgba(56, 189, 248,.15);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2338BDF8' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

/* Pill tags */
.tags { display: flex; flex-wrap: wrap; gap: 9px; }
.tag {
  font-size: .82rem; font-weight: 600; font-family: var(--font-display);
  color: var(--brand-800); background: var(--brand-100);
  border: 1px solid var(--brand-200);
  padding: 6px 14px; border-radius: 999px;
}
.section--dark .tag {
  color: var(--brand-200); background: rgba(56, 189, 248,.1);
  border-color: rgba(56, 189, 248,.25);
}

/* ---------- 9. Split / media sections ---------- */
.split {
  display: grid; align-items: center;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(32px, 5vw, 76px);
}
.split--reverse .split-media { order: -1; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse .split-media { order: 0; }
}

.split-media {
  position: relative; border-radius: var(--r-xl); overflow: hidden;
  background: linear-gradient(160deg, #070F22, #102243);
  min-height: 380px;
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.07);
}
.split-media img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.split-media .lattice {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: .5;
}
.split-media .helix-fig { position: relative; width: 70%; opacity: .9; }

/* Stat strip */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1px; background: var(--line); border-radius: var(--r-lg); overflow: hidden; }
.stat { background: #fff; padding: clamp(22px, 2.4vw, 32px); }
.stat-value {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.5rem);
  line-height: 1; letter-spacing: -.03em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-label { margin-top: 10px; font-size: .88rem; color: var(--slate-500); font-weight: 500; }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 460px) { .stats { grid-template-columns: 1fr; } }

/* Process steps */
.steps { counter-reset: step; display: grid; gap: clamp(18px, 2vw, 24px); grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: 28px; border-top: 2px solid var(--line); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  position: absolute; top: -2px; left: 0;
  font-family: var(--font-display); font-weight: 800; font-size: .78rem;
  letter-spacing: .1em; color: var(--brand-700);
  background: var(--white); padding-right: 12px; transform: translateY(-50%);
}
.section--surface .step::before { background: var(--surface); }
.step h3 { font-size: 1.08rem; margin-bottom: 8px; }
.step p { font-size: .93rem; }

/* ---------- 10. CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--r-xl);
  background: linear-gradient(140deg, #0A1428, #132C55);
  color: var(--slate-200);
  padding: clamp(38px, 5.4vw, 72px);
  border: 1px solid rgba(255,255,255,.08);
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(520px 320px at 88% 10%, rgba(56, 189, 248,.26), transparent 62%),
    radial-gradient(440px 300px at 4% 96%, rgba(59, 130, 246,.2), transparent 60%);
}
.cta-band .lattice-bg {
  position: absolute; z-index: -1; right: -40px; top: -60px;
  width: 520px; opacity: .3; pointer-events: none;
}
.cta-band h2 { color: #fff; max-width: 20ch; }
.cta-band p { margin-top: 16px; max-width: 58ch; color: #B4C6DE; }
.cta-band .btn-row { margin-top: 32px; }

/* ---------- 11. Contact & forms ---------- */
.contact-layout {
  display: grid; grid-template-columns: 1.15fr .85fr;
  gap: clamp(32px, 4vw, 60px); align-items: start;
}
@media (max-width: 940px) { .contact-layout { grid-template-columns: 1fr; } }

.form-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: clamp(24px, 3vw, 40px);
  box-shadow: var(--shadow-sm);
}
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-family: var(--font-display); font-size: .85rem; font-weight: 600;
  color: var(--ink-700);
}
.field label .req { color: var(--brand-700); }
.field input, .field select, .field textarea {
  font: inherit; font-size: .95rem; color: var(--ink-800);
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  width: 100%;
  transition: border-color .16s, background-color .16s, box-shadow .16s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field select { appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235E7391' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center; background-size: 17px;
  padding-right: 42px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; background: #fff;
  border-color: var(--brand-400);
  box-shadow: 0 0 0 4px rgba(56, 189, 248,.14);
}
.field input::placeholder, .field textarea::placeholder { color: var(--slate-400); }
.field input[type="file"] { padding: 10px 12px; background: #fff; font-size: .88rem; }
.field input[type="file"]::file-selector-button {
  font: inherit; font-size: .85rem; font-weight: 600;
  margin-right: 12px; padding: 7px 14px; border: 0; border-radius: 999px;
  background: var(--brand-100); color: var(--brand-800); cursor: pointer;
}
.form-note { font-size: .82rem; color: var(--slate-500); margin-top: 16px; }
.form-actions { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }

.form-status {
  margin-top: 18px; padding: 14px 16px; border-radius: var(--r-sm);
  font-size: .9rem; display: none;
}
.form-status.is-visible { display: block; }
.form-status.is-success { background: var(--brand-100); color: var(--brand-800); border: 1px solid var(--brand-200); }
.form-status.is-error { background: #FEF0F0; color: #A02525; border: 1px solid #F6D2D2; }

.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.contact-aside { display: grid; gap: 18px; }
.contact-item {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px 22px; border: 1px solid var(--line);
  border-radius: var(--r-md); background: #fff;
  transition: border-color .18s, box-shadow .18s;
}
.contact-item:hover { border-color: var(--brand-200); box-shadow: var(--shadow-sm); }
.contact-item .dot {
  flex: none; width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center; background: var(--grad-soft);
  border: 1px solid var(--brand-100);
}
.contact-item .dot svg { width: 19px; height: 19px; stroke: var(--brand-700); }
.contact-item .k {
  display: block;
  font-family: var(--font-display); font-size: .74rem; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase; color: var(--slate-500);
  margin-bottom: 4px;
}
.contact-item .v {
  display: block;
  font-family: var(--font-display); font-weight: 700; color: var(--ink-800);
  font-size: 1rem; word-break: break-word;
}
.contact-item a.v:hover { color: var(--brand-700); }

/* ---------- 12. Footer ---------- */
.site-footer {
  background: var(--ink-900); color: var(--slate-400);
  padding-block: clamp(52px, 6vw, 80px) 32px;
  position: relative; overflow: hidden; isolation: isolate;
}
.site-footer::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(700px 360px at 92% 0%, rgba(56, 189, 248,.1), transparent 62%);
}
.footer-top {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.09);
}
@media (max-width: 940px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }

.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-sub { color: var(--brand-400); }
.footer-brand p { margin-top: 18px; font-size: .92rem; max-width: 34ch; color: var(--slate-400); }

.footer-col h4 {
  color: #fff; font-size: .78rem; letter-spacing: .14em;
  text-transform: uppercase; margin-bottom: 18px;
}
.footer-col ul { display: grid; gap: 11px; }
.footer-col a { font-size: .92rem; color: var(--slate-400); transition: color .16s; }
.footer-col a:hover { color: var(--brand-400); }

.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between;
  gap: 14px; padding-top: 26px; font-size: .84rem;
}
.footer-bottom p { color: var(--slate-500); }
.footer-legal { display: flex; gap: 20px; }

/* ---------- 13. Motion ---------- */
[data-reveal] {
  opacity: 0; transform: translateY(20px);
  transition: opacity .6s cubic-bezier(.2,.7,.3,1), transform .6s cubic-bezier(.2,.7,.3,1);
  transition-delay: var(--delay, 0ms);
  will-change: opacity, transform;
}
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .hero-helix { animation: none; }
}

/* ---------- 14. Utilities ---------- */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 12px; }
.mt-2 { margin-top: 24px; }
.mt-3 { margin-top: 36px; }
.mt-4 { margin-top: 48px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.divider { height: 1px; background: var(--line); border: 0; }

/* ---------- 15. Print ---------- */
@media print {
  .site-header, .site-footer, .cta-band, .nav-toggle, .hero-helix { display: none !important; }
  body { color: #000; }
  .hero, .page-hero { background: #fff !important; color: #000; padding-block: 24px; }
  .hero h1, .page-hero h1 { color: #000; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; }
}

/* Active state for the dropdown trigger */
.nav .nav-trigger.is-active { color: var(--brand-700); }
