/* Axella Research — site styles */
:root {
  --ink: #0b1030;
  --ink-2: #3a4063;
  --muted: #6b7191;
  --line: #e3e6f0;
  --paper: #ffffff;
  --mist: #f5f6fb;
  --logo-navy: #010066;  /* original logo, dark version */
  --logo-blue: #005da4;  /* original logo, light version */
  --indigo: #13188a;      /* brand dots, modernized from #010066 */
  --indigo-deep: #080c3f;
  --azure: #2f6fe0;
  --teal: #16b3a3;
  --teal-soft: #d8f4f0;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(11,16,48,.06), 0 8px 24px rgba(11,16,48,.06);
  --max: 1180px;
  --header-h: 92px;
  --font-head: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--azure); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 500; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 .78rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.lede { font-size: 1.15rem; color: var(--ink-2); max-width: 640px; }
.section { padding: 104px 0; }
.section.tight { padding: 72px 0; }
.section.mist { background: var(--mist); }
.section-head { max-width: 720px; margin-bottom: 56px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; border: 1.5px solid transparent;
  font: 600 .95rem/1 var(--font-body); cursor: pointer; transition: transform .15s, background .15s, color .15s, border-color .15s;
  text-decoration: none !important;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--teal); color: #04241f; }
.btn-primary:hover { background: #1cc7b5; }
.btn-dark { background: var(--indigo); color: #fff; }
.btn-dark:hover { background: #1b22a8; }
.btn-ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-ghost:hover { border-color: #fff; }
.btn-line { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-line:hover { border-color: var(--ink); }
.btn .arrow { transition: transform .15s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.88); backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s, background .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header.on-dark:not(.scrolled) { background: transparent; backdrop-filter: none; }
.site-header.on-dark:not(.scrolled) .brand-word,
.site-header.on-dark:not(.scrolled) .nav a { color: #fff; }
.site-header.on-dark:not(.scrolled) .nav-toggle span { background: #fff; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); transition: height .2s; }
.site-header.scrolled .header-inner { height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none !important; }
.brand-mark { width: 56px; height: auto; color: var(--logo-navy); transition: width .2s; }
.site-header.scrolled .brand-mark { width: 46px; }   /* original logo: navy dots on light */
.site-header.on-dark:not(.scrolled) .brand-mark { color: var(--logo-blue); } /* original logo: blue dots on dark */
.nav-open .site-header .brand-mark { color: var(--logo-navy) !important; }
.brand-word { display: flex; flex-direction: column; line-height: 1; color: var(--ink); }
.brand-word b { font: 500 1.9rem/1 var(--font-head); letter-spacing: .07em; }
.site-header.scrolled .brand-word b { font-size: 1.6rem; }
.brand-word small { font: 400 .72rem/1 var(--font-head); letter-spacing: .5em; margin-top: 6px; opacity: .85; }

.nav { display: flex; align-items: center; gap: 34px; }
.nav a { color: var(--ink); font-weight: 500; font-size: .95rem; text-decoration: none; position: relative; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--teal); transform: scaleX(0); transition: transform .2s; }
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav .btn { padding: 11px 20px; color: #04241f !important; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .2s, opacity .2s; }

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 24px 24px;
    transform: translateY(-120%); transition: transform .25s; box-shadow: var(--shadow);
  }
  .nav a { color: var(--ink) !important; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 16px; justify-content: center; border-bottom: 0; }
  .nav-open .nav { transform: none; }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-open .site-header { background: #fff; }
  .nav-open .brand-word, .nav-open .nav-toggle span { color: var(--ink) !important; }
  .nav-open .nav-toggle span { background: var(--ink) !important; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff; margin-top: calc(-1 * var(--header-h)); padding: 190px 0 170px; min-height: 92vh; display: flex; align-items: center;
  background:
    radial-gradient(900px 520px at 85% 20%, rgba(47,111,224,.35), transparent 60%),
    radial-gradient(700px 480px at 10% 90%, rgba(22,179,163,.18), transparent 60%),
    linear-gradient(160deg, #0a0f4a 0%, var(--indigo-deep) 55%, #050826 100%);
}
.hero::after { /* fine dot grid texture */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1.2px);
  background-size: 26px 26px;
  mask-image: linear-gradient(to bottom, #000 30%, transparent 95%);
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: #7fe3d8; }
.hero .lede { color: rgba(255,255,255,.78); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-visual { position: relative; aspect-ratio: 570 / 290; }
.hero-visual svg { width: 100%; height: 100%; overflow: visible; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 56px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.14); }
.hero-tags span { font-size: .88rem; color: rgba(255,255,255,.7); display: inline-flex; align-items: center; gap: 8px; }
.hero-tags span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }

@media (max-width: 960px) {
  .hero { padding: 140px 0 80px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 520px; margin: 0 auto; width: 100%; }
}

/* Page hero (inner pages) */
.page-hero { position: relative; overflow: hidden; color: #fff; margin-top: calc(-1 * var(--header-h)); padding: 190px 0 96px;
  background: radial-gradient(800px 400px at 90% 0%, rgba(47,111,224,.35), transparent 60%), linear-gradient(160deg, #0a0f4a, var(--indigo-deep)); }
.page-hero::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1.2px); background-size: 26px 26px; mask-image: linear-gradient(to bottom, #000, transparent); pointer-events: none; }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); max-width: 820px; }
.page-hero .lede { color: rgba(255,255,255,.78); }
.page-hero .dots-deco { position: absolute; right: -40px; bottom: -60px; width: 340px; opacity: .5; }

/* ---------- Value strip ---------- */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.value { background: #fff; padding: 36px 32px; }
.value .num { font: 500 .8rem/1 var(--font-head); color: var(--teal); letter-spacing: .12em; margin-bottom: 18px; display: block; }
.value h3 { margin-bottom: .4em; }
.value p { color: var(--ink-2); margin: 0; font-size: .98rem; }
@media (max-width: 860px) { .values { grid-template-columns: 1fr; } }

/* ---------- Service cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px 30px 30px; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d3d7ea; }
.card .icon { width: 52px; height: 52px; border-radius: 14px; background: var(--teal-soft); display: grid; place-items: center; margin-bottom: 22px; }
.card .icon svg { width: 28px; height: 28px; stroke: #0b7d72; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { margin-bottom: .45em; }
.card p { color: var(--ink-2); font-size: .97rem; margin: 0; }
.card ul { margin: 14px 0 0; padding: 0; list-style: none; }
.card li { position: relative; padding-left: 18px; font-size: .92rem; color: var(--ink-2); margin: 6px 0; }
.card li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--indigo); opacity: .6; }
@media (max-width: 980px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; } }

/* ---------- Therapeutic focus ---------- */
.focus { display: grid; grid-template-columns: 1.2fr 1.2fr 1fr; gap: 22px; }
.focus-card { border-radius: var(--radius-lg); padding: 36px 32px; position: relative; overflow: hidden; min-height: 280px; display: flex; flex-direction: column; justify-content: flex-end; }
.focus-card.primary { background: linear-gradient(155deg, #151b95, #0a0f4a); color: #fff; }
.focus-card.primary p { color: rgba(255,255,255,.78); }
.focus-card.alt { background: linear-gradient(155deg, #0e8f84, #0a5a64); color: #fff; }
.focus-card.alt p { color: rgba(255,255,255,.82); }
.focus-card.plain { background: #fff; border: 1px solid var(--line); }
.focus-card.plain p { color: var(--ink-2); }
.focus-card.plain { justify-content: flex-start; }
.focus-card.plain .tag { position: static; display: block; margin-bottom: 18px; }
.chips { list-style: none; margin: 4px 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: .82rem; font-weight: 500; color: var(--indigo); background: var(--mist); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; }
.focus-card .tag { position: absolute; top: 28px; left: 32px; font: 600 .72rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; opacity: .8; }
.focus-card .deco { position: absolute; top: 18px; right: 18px; width: 150px; opacity: .9; }
.focus-card h3 { font-size: 1.6rem; }
.focus-card p { margin: 0; font-size: .97rem; }
@media (max-width: 960px) { .focus { grid-template-columns: 1fr; } .focus-card { min-height: 230px; } .focus-card .deco { width: 96px; opacity: .6; } }

/* ---------- Pathway ---------- */
.pathway { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; counter-reset: step; }
.pathway::before { content: ""; position: absolute; top: 23px; left: 4%; right: 4%; height: 2px; background: linear-gradient(90deg, var(--indigo), var(--teal)); opacity: .35; }
.step { position: relative; padding-top: 66px; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; top: 0; left: 0; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; background: #fff; border: 2px solid var(--indigo);
  font: 500 .9rem/1 var(--font-head); color: var(--indigo);
}
.step:nth-child(n+4)::before { border-color: var(--teal); color: #0b7d72; }
.step h4 { font-size: 1.08rem; margin-bottom: .35em; }
.step p { font-size: .9rem; color: var(--ink-2); margin: 0; }
@media (max-width: 980px) {
  .pathway { grid-template-columns: 1fr; gap: 0; }
  .pathway::before { top: 0; bottom: 0; left: 23px; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--indigo), var(--teal)); }
  .step { padding: 0 0 30px 72px; min-height: 60px; }
}

/* ---------- Split / technology ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; gap: 40px; } }
.checks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 16px; }
.checks li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; color: var(--ink-2); }
.checks li b { color: var(--ink); font-weight: 600; }
.checks svg { width: 22px; height: 22px; margin-top: 2px; stroke: var(--teal); fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.fine { font-size: .85rem; color: var(--muted); margin-top: 22px; }

.ops-panel { position: relative; background: linear-gradient(160deg, #0a0f4a, #050826); border-radius: var(--radius-lg); padding: 28px; color: #fff; box-shadow: 0 30px 60px -20px rgba(8,12,63,.45); }
.ops-panel .bar { display: flex; gap: 6px; margin-bottom: 20px; }
.ops-panel .bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.2); }
.ops-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.07); margin-bottom: 10px; font-size: .92rem; }
.ops-row small { display: block; color: rgba(255,255,255,.55); font-size: .78rem; margin-top: 2px; }
.pill { font: 600 .72rem/1 var(--font-body); padding: 7px 10px; border-radius: 999px; letter-spacing: .03em; white-space: nowrap; }
.pill.ok { background: rgba(22,179,163,.18); color: #7fe3d8; }
.pill.run { background: rgba(47,111,224,.22); color: #a9c6ff; }
.pill.due { background: rgba(255,196,87,.16); color: #ffd58a; }
.meter { height: 6px; border-radius: 6px; background: rgba(255,255,255,.1); overflow: hidden; margin-top: 8px; }
.meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--azure), var(--teal)); border-radius: 6px; }

/* ---------- Engagement models ---------- */
.models { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.model { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px 30px; background: #fff; display: flex; flex-direction: column; }
.model.featured { border-color: var(--indigo); box-shadow: 0 0 0 1px var(--indigo) inset; }
.model .label { font: 600 .72rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.model.featured .label { color: var(--indigo); }
.model p { color: var(--ink-2); font-size: .97rem; }
.model p:last-child { margin-bottom: 0; }
@media (max-width: 960px) { .models { grid-template-columns: 1fr; } }

/* ---------- Case list ---------- */
.cases { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.case { background: #fff; border-radius: var(--radius-lg); padding: 30px; border-top: 3px solid var(--teal); box-shadow: var(--shadow); }
.case .area { font: 600 .72rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--indigo); margin-bottom: 14px; display: block; }
.case h3 { font-size: 1.15rem; }
.case p { color: var(--ink-2); font-size: .95rem; margin: 0; }
@media (max-width: 960px) { .cases { grid-template-columns: 1fr; } }

/* ---------- Leadership ---------- */
.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.person { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; display: flex; flex-direction: column; }
.avatar { width: 84px; height: 84px; border-radius: 50%; position: relative; margin-bottom: 20px; overflow: hidden; background: linear-gradient(150deg, #151b95, #0a0f4a); display: grid; place-items: center; }
.avatar::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.18) 1px, transparent 1.3px); background-size: 8px 8px; }
.avatar span { position: relative; font: 500 1.5rem/1 var(--font-head); color: #fff; letter-spacing: .04em; }
.avatar.icon::before { display: none; }
.avatar svg { position: relative; width: 40px; height: 40px; stroke: #fff; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.avatar.teal { background: linear-gradient(150deg, #13a597, #0a5a64); }
.avatar.azure { background: linear-gradient(150deg, #2f6fe0, #13188a); }
.person h3 { margin-bottom: .15em; }
.person .role { color: var(--teal); font-weight: 600; font-size: .9rem; margin-bottom: 16px; }
.person p { color: var(--ink-2); font-size: .95rem; }
.person ul.brings { list-style: none; margin: 0 0 22px; padding: 16px 0 0; border-top: 1px solid var(--line); display: grid; gap: 9px; }
.person ul.brings li { position: relative; padding-left: 22px; font-size: .9rem; color: var(--ink); line-height: 1.45; }
.person ul.brings li::before { content: ""; position: absolute; left: 0; top: .42em; width: 10px; height: 10px; border-radius: 50%; background: var(--teal); box-shadow: 5px 0 0 -2px var(--indigo); }
.person details { margin-top: auto; }
.person summary { cursor: pointer; font-weight: 600; font-size: .9rem; color: var(--indigo); list-style: none; display: inline-flex; gap: 8px; align-items: center; }
.person summary::-webkit-details-marker { display: none; }
.person summary::after { content: "+"; font-size: 1.1rem; }
.person details[open] summary::after { content: "–"; }
.person details p { margin-top: 12px; }
@media (max-width: 980px) { .people { grid-template-columns: 1fr; } }

/* ---------- Stats row (qualitative) ---------- */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 56px; }
.fact { border-left: 2px solid var(--teal); padding-left: 18px; }
.fact b { display: block; font: 500 2rem/1.1 var(--font-head); color: var(--indigo); }
.fact span { font-size: .9rem; color: var(--ink-2); }
@media (max-width: 860px) { .facts { grid-template-columns: repeat(2, 1fr); } }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: 28px; padding: 64px 56px; color: #fff;
  background: radial-gradient(600px 300px at 90% 10%, rgba(22,179,163,.35), transparent 60%), linear-gradient(150deg, #151b95, #080c3f); }
.cta-band h2 { color: #fff; max-width: 620px; }
.cta-band p { color: rgba(255,255,255,.78); max-width: 560px; }
.cta-band .deco { position: absolute; right: 40px; top: 50%; transform: translateY(-50%); width: 260px; opacity: .85; }
.cta-band .hero-actions { margin-top: 26px; }
@media (max-width: 860px) { .cta-band { padding: 48px 28px; } .cta-band .deco { display: none; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: start; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info { display: grid; gap: 22px; }
.contact-info .item { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.contact-info .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--teal-soft); display: grid; place-items: center; }
.contact-info .ic svg { width: 22px; height: 22px; stroke: #0b7d72; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact-info b { display: block; font-weight: 600; }
.contact-info span, .contact-info a { color: var(--ink-2); }

form.inquiry { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow); display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .85rem; font-weight: 600; color: var(--ink); }
.field label .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; font-size: .97rem; color: var(--ink); background: var(--mist);
  border: 1.5px solid transparent; border-radius: 10px; padding: 12px 14px; transition: border-color .15s, background .15s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); background: #fff; }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.form-foot small { color: var(--muted); max-width: 360px; }
.form-status { grid-column: 1 / -1; padding: 14px 16px; border-radius: 10px; font-size: .93rem; display: none; }
.form-status.ok { display: block; background: var(--teal-soft); color: #06574f; }
.form-status.err { display: block; background: #fdecec; color: #8a1c1c; }
.hp { position: absolute; left: -5000px; }
@media (max-width: 640px) { form.inquiry { grid-template-columns: 1fr; padding: 26px 20px; } }

/* ---------- Footer ---------- */
.site-footer { background: #050826; color: rgba(255,255,255,.7); padding: 72px 0 36px; margin-top: 104px; font-size: .93rem; }
.site-footer .brand-word, .site-footer .brand { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.site-footer h4 { font: 600 .75rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: rgba(255,255,255,.7); }
.site-footer a:hover { color: #fff; }
.foot-about p { margin-top: 18px; max-width: 320px; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid rgba(255,255,255,.1); margin-top: 56px; padding-top: 24px; font-size: .82rem; color: rgba(255,255,255,.5); }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-about { grid-column: 1 / -1; } }
.cta-band + .site-footer, main > .section:last-child { }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-visual .pulse { display: none; }
  .hero-visual .breathe { animation: none !important; }
}
.no-js .reveal { opacity: 1; transform: none; }

/* hero svg animation */
.breathe { animation: breathe 6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes breathe { 0%,100% { opacity: .55; } 50% { opacity: 1; } }


/* ================= Landing enhancements ================= */
.hero > .wrap { position: relative; z-index: 1; width: 100%; }
.hero h1 { font-size: clamp(2.6rem, 5.8vw, 4.7rem); letter-spacing: -.02em; }
.hero .orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; pointer-events: none; animation: drift 18s ease-in-out infinite alternate; }
.hero .orb.o1 { width: 520px; height: 520px; background: #2f6fe0; top: -160px; right: -120px; }
.hero .orb.o2 { width: 420px; height: 420px; background: #16b3a3; bottom: -180px; left: -120px; opacity: .35; animation-duration: 22s; }
.hero .orb.o3 { width: 300px; height: 300px; background: #005da4; top: 30%; left: 40%; opacity: .25; animation-duration: 26s; }
@keyframes drift { from { transform: translate(0,0) scale(1); } to { transform: translate(40px,30px) scale(1.08); } }
.hero-watermark { position: absolute; right: -80px; bottom: -120px; width: 620px; opacity: .06; pointer-events: none; z-index: 0; }
.hero-model { margin-top: 26px; font-size: .95rem; color: rgba(255,255,255,.72); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hero-model a { color: #7fe3d8; font-weight: 600; }
.hero-model .dot { width: 8px; height: 8px; border-radius: 50%; background: #7fe3d8; box-shadow: 0 0 0 4px rgba(127,227,216,.18); }

/* floating glass cards on the hero visual */
.glass { position: absolute; z-index: 2; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-radius: 14px; padding: 12px 14px; color: #fff; font-size: .8rem; line-height: 1.3; box-shadow: 0 18px 40px -18px rgba(0,0,0,.5); animation: float 7s ease-in-out infinite; }
.glass b { display: block; font-weight: 600; font-size: .86rem; }
.glass small { color: rgba(255,255,255,.65); }
.glass .row { display: flex; align-items: center; gap: 10px; }
.glass .ic { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: rgba(127,227,216,.18); flex: none; }
.glass .ic svg { width: 16px; height: 16px; stroke: #7fe3d8; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.glass .meter { width: 120px; }
.glass.g1 { top: -6%; left: 2%; }
.glass.g2 { bottom: -10%; right: 4%; animation-delay: -2.5s; }
.glass.g3 { top: 8%; right: -2%; animation-delay: -4.5s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (max-width: 960px) { .glass.g3 { display: none; } .glass.g1 { top: -14%; } }
@media (max-width: 520px) { .glass { font-size: .72rem; padding: 9px 11px; } .glass .meter { width: 90px; } }

/* stats band overlapping the hero */
.stats-wrap { position: relative; z-index: 3; margin-top: -84px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: 22px; box-shadow: 0 30px 60px -24px rgba(8,12,63,.28), 0 2px 6px rgba(8,12,63,.06); overflow: hidden; }
.stat { padding: 30px 28px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font: 500 2.3rem/1 var(--font-head); letter-spacing: -.02em;
  background: linear-gradient(120deg, var(--indigo), var(--azure) 55%, var(--teal)); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 10px; }
.stat span { font-size: .9rem; color: var(--ink-2); line-height: 1.45; display: block; }
@media (max-width: 860px) { .stats { grid-template-columns: 1fr 1fr; } .stat:nth-child(2) { border-right: 0; } .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }
@media (max-width: 960px) { .hero { min-height: 0; padding-bottom: 150px; } }

/* richer service cards */
.card { overflow: hidden; }
.card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--indigo), var(--azure), var(--teal)); transform: scaleX(0); transform-origin: left; transition: transform .35s; }
.card:hover::before { transform: scaleX(1); }
.card .icon { background: linear-gradient(145deg, #e3f7f4, #e6ecff); }

/* partnership feature band */
.partner-band { position: relative; overflow: hidden; color: #fff; padding: 110px 0;
  background: radial-gradient(700px 380px at 85% 20%, rgba(22,179,163,.28), transparent 60%), radial-gradient(600px 400px at 0% 100%, rgba(47,111,224,.3), transparent 60%), linear-gradient(160deg, #0a0f4a, #050826); }
.partner-band::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1.2px); background-size: 26px 26px; pointer-events: none; }
.partner-band .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.partner-band h2 { color: #fff; font-size: clamp(2rem, 3.8vw, 3rem); }
.partner-band h2 em { font-style: normal; color: #7fe3d8; }
.partner-band .lede { color: rgba(255,255,255,.78); }
.psteps { display: grid; gap: 14px; }
.pstep { display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: start; padding: 20px 22px; border-radius: 16px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }
.pstep .n { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font: 500 1.05rem/1 var(--font-head);
  background: linear-gradient(145deg, var(--teal), #0a5a64); color: #fff; }
.pstep b { display: block; font-weight: 600; margin-bottom: 3px; }
.pstep span { color: rgba(255,255,255,.72); font-size: .93rem; }
@media (max-width: 960px) { .partner-band .wrap { grid-template-columns: 1fr; gap: 40px; } }

/* partnership page */
.pmodels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pmodel { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 34px 30px; position: relative; overflow: hidden; }
.pmodel .big { font: 500 2.6rem/1 var(--font-head); background: linear-gradient(120deg, var(--indigo), var(--teal)); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 16px; display: block; }
.pmodel p { color: var(--ink-2); font-size: .97rem; margin: 0; }
.pmodel.feature { background: linear-gradient(160deg, #151b95, #080c3f); color: #fff; border: 0; }
.pmodel.feature p { color: rgba(255,255,255,.8); }
.pmodel.feature .big { background: linear-gradient(120deg, #9fb6ff, #7fe3d8); -webkit-background-clip: text; background-clip: text; }
.pmodel .tag { font: 600 .7rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--teal); display: block; margin-bottom: 12px; }
@media (max-width: 960px) { .pmodels { grid-template-columns: 1fr; } }
.criteria { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.criterion { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.criterion b { display: block; margin-bottom: 6px; font-weight: 600; }
.criterion span { color: var(--ink-2); font-size: .92rem; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--teal); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-2); margin: 12px 0 0; }
.disclaimer { font-size: .8rem; color: var(--muted); margin-top: 28px; max-width: 820px; }
@media (prefers-reduced-motion: reduce) { .hero .orb, .glass { animation: none; } }
/* review fixes: keep the sites card clear of the PATIENTS label; watermark as fine rings, not solid blobs */
.glass.g2 { right: auto; left: 30%; bottom: -16%; }
.hero-watermark { opacity: .09; }
.hero-watermark g { fill: none; stroke: #ffffff; stroke-width: 1.5; }
/* mobile: fully hide the closed menu (it peeked over the logo) and size the header for phones */
@media (max-width: 880px) {
  :root { --header-h: 78px; }
  .nav { transform: translateY(calc(-100% - var(--header-h) - 20px)); visibility: hidden; transition: transform .25s, visibility 0s .25s; }
  .nav-open .nav { transform: none; visibility: visible; transition: transform .25s, visibility 0s; }
  .brand-mark, .site-header.scrolled .brand-mark { width: 44px; }
  .brand-word b, .site-header.scrolled .brand-word b { font-size: 1.5rem; }
  .brand-word small { font-size: .6rem; letter-spacing: .45em; }
  .site-header.scrolled .header-inner { height: 66px; }
}

/* Legal pages (privacy, text message terms): reading width, quiet headings */
.legal { max-width: 760px; }
.legal h2 { font-size: 1.3rem; margin: 2.2rem 0 .6rem; }
.legal p { color: var(--ink-2); line-height: 1.7; margin: 0 0 1rem; }
.legal a { text-decoration: underline; }
