/* ============================================================
   SPHEINX — Medical & Healthcare
   Better Care. Better Possibilities.
   ------------------------------------------------------------
   01  Tokens
   02  Reset & base
   03  Typography & layout primitives
   04  Buttons, links, icons
   05  Logo
   06  Header & navigation
   07  Hero + medical visual
   08  Approach / trust statement
   09  Solutions
   10  Why Spheinx
   11  Conceptual system interface
   12  Process
   13  Human-centered
   14  Research (dark)
   15  Insights
   16  Principles
   17  Contact & form
   18  Statement
   19  Footer
   20  Motion & reveal
   21  Responsive
   22  Accessibility & print
   ============================================================ */

/* ---------- 01 Tokens ---------- */
:root {
  --medical-navy: #123047;
  --deep-navy: #0B2435;
  --medical-blue: #1976A8;
  --soft-blue: #DCEFF6;
  --teal: #2D9C9C;
  --mint: #E5F4F0;
  --white: #FFFFFF;
  --off-white: #F7FAFB;
  --text: #20313C;
  --muted: #6B7C86;
  --line: #D9E5EA;
  --success: #3C9275;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          Helvetica, Arial, sans-serif;

  --container: 1220px;
  --gutter: clamp(20px, 4vw, 40px);
  --section-y: clamp(72px, 9vw, 132px);

  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --r-pill: 999px;

  --shadow-xs: 0 1px 2px rgba(18, 48, 71, .05);
  --shadow-sm: 0 2px 10px rgba(18, 48, 71, .05);
  --shadow-md: 0 10px 30px rgba(18, 48, 71, .07);
  --shadow-lg: 0 24px 60px rgba(18, 48, 71, .10);

  --ease: cubic-bezier(.22, .61, .36, 1);
  --dur: .32s;
}

/* ---------- 02 Reset & base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.68;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { max-width: 100%; }
svg { display: block; }

h1, h2, h3, h4 {
  margin: 0;
  color: var(--medical-navy);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.14;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: inherit; text-decoration: none; }

button, input, textarea { font: inherit; color: inherit; }

.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.anchor {
  display: block;
  position: relative;
  top: -104px;
  visibility: hidden;
}

.skip-link {
  position: absolute;
  left: 50%;
  top: 8px;
  transform: translate(-50%, -160%);
  z-index: 200;
  padding: 12px 20px;
  border-radius: var(--r-pill);
  background: var(--medical-navy);
  color: var(--white);
  font-weight: 600;
  font-size: 15px;
  transition: transform var(--dur) var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); }

/* ---------- 03 Typography & layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); position: relative; }

.section-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head.center { margin-inline: auto; text-align: center; }

.section-title {
  font-size: clamp(30px, 3.6vw, 48px);
  letter-spacing: -.028em;
}
.section-title.center { text-align: center; }
.section-title.light { color: var(--white); }

.section-lead {
  margin-top: 18px;
  font-size: clamp(16.5px, 1.35vw, 19px);
  color: var(--muted);
  max-width: 62ch;
}
.section-lead.center { margin-inline: auto; text-align: center; }
.section-lead.light { color: rgba(255, 255, 255, .72); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 20px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--medical-blue);
}
.eyebrow-center { justify-content: center; }
.eyebrow-light { color: #7FD3D3; }

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 5px rgba(45, 156, 156, .16);
}

.center-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.grid { display: grid; gap: clamp(18px, 2vw, 26px); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.disclaimer {
  margin-top: 22px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 70ch;
}
.disclaimer.center { margin-inline: auto; text-align: center; }

/* ---------- 04 Buttons, links, icons ---------- */
.ico {
  width: 22px;
  height: 22px;
  flex: none;
  fill: none;
}
.ico-arrow { width: 18px; height: 18px; }
.ico-check { width: 19px; height: 19px; }

.btn {
  --btn-y: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: var(--btn-y) 28px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              background-color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              color var(--dur) var(--ease);
}
.btn .ico-arrow { transition: transform var(--dur) var(--ease); }
.btn:hover .ico-arrow { transform: translateX(4px); }

.btn-primary {
  background: var(--medical-navy);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: #16405E;
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(18, 48, 71, .18);
}

.btn-ghost {
  background: var(--white);
  color: var(--medical-navy);
  border-color: var(--line);
}
.btn-ghost:hover {
  transform: translateY(-2px);
  border-color: var(--medical-blue);
  color: var(--medical-blue);
  box-shadow: var(--shadow-sm);
}

.btn-sm { --btn-y: 11px; padding-inline: 20px; font-size: 14.5px; }
.btn-block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  padding-top: 20px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--medical-blue);
}
.link-arrow .ico-arrow { transition: transform var(--dur) var(--ease); }
.link-arrow:hover { color: var(--medical-navy); }
.link-arrow:hover .ico-arrow { transform: translateX(4px); }

/* ---------- 05 Logo ---------- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

/* The mark is themed with custom properties so it can be recolored
   across light and dark surfaces (they inherit into <use> content). */
.logo-mark {
  --mark-accent: #6FD0DC;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 13px;
  background: var(--medical-navy);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(18, 48, 71, .18);
  transition: transform var(--dur) var(--ease);
}
.logo-mark svg { width: 30px; height: 30px; }
.logo:hover .logo-mark { transform: translateY(-1px) rotate(-2deg); }

.logo-text { display: flex; flex-direction: column; line-height: 1; }

.logo-word {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: .16em;
  color: var(--medical-navy);
}
.logo-sub {
  margin-top: 5px;
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: .155em;
  white-space: nowrap;
  text-transform: uppercase;
  color: var(--muted);
}

.logo-light .logo-word { color: var(--white); }
.logo-light .logo-sub { color: rgba(255, 255, 255, .58); }
.logo-light .logo-mark {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: none;
}

/* ---------- 06 Header & navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              background-color var(--dur) var(--ease);
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(18, 48, 71, .06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 82px;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 44px);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 30px);
}
.nav-list a {
  position: relative;
  padding-block: 6px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  transition: color var(--dur) var(--ease);
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--medical-blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.nav-list a:hover { color: var(--medical-blue); }
.nav-list a:hover::after,
.nav-list a:focus-visible::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: 18px; }

/* Dashed outline signals that the portal destination is not wired up yet. */
.portal-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border: 1px dashed var(--line);
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  color: var(--muted);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.portal-link:hover {
  color: var(--medical-blue);
  border-color: rgba(25, 118, 168, .45);
}

.portal-tag {
  padding: 2px 8px;
  border-radius: var(--r-pill);
  background: var(--off-white);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (min-width: 941px) and (max-width: 1330px) {
  .portal-tag { display: none; }
}
@media (min-width: 941px) and (max-width: 1120px) {
  .portal-link { display: none; }
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--white);
  cursor: pointer;
  transition: border-color var(--dur) var(--ease);
}
.nav-toggle:hover { border-color: var(--medical-blue); }

.nav-toggle-bars {
  display: grid;
  gap: 5px;
  justify-items: center;
}
.nav-toggle-bars i {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--medical-navy);
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(11, 36, 53, .38);
  backdrop-filter: blur(2px);
}

/* ---------- 07 Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(56px, 7vw, 104px) clamp(64px, 8vw, 116px);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 520px at 82% 6%, var(--soft-blue) 0%, rgba(220, 239, 246, 0) 62%),
    radial-gradient(700px 460px at 4% 92%, var(--mint) 0%, rgba(229, 244, 240, 0) 60%),
    var(--white);
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(25, 118, 168, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(25, 118, 168, .045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(70% 60% at 50% 40%, #000 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, #000 0%, transparent 100%);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(32px, 4vw, 60px);
  align-items: center;
}

.hero-title {
  font-size: clamp(44px, 5.4vw, 74px);
  line-height: 1.05;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.hero-title em {
  position: relative;
  font-style: normal;
  color: var(--medical-blue);
}
.hero-title em::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: .06em;
  height: .1em;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(45, 156, 156, .38), rgba(25, 118, 168, .12));
}

.hero-lead {
  margin-top: 26px;
  max-width: 54ch;
  font-size: clamp(16.5px, 1.4vw, 19.5px);
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 38px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--medical-navy);
}
.hero-points .ico-check { color: var(--teal); }

/* Hero visual */
.hero-visual { position: relative; }

.visual-frame {
  margin: 0;
  padding: clamp(14px, 2vw, 22px);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: rgba(255, 255, 255, .74);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: var(--shadow-lg);
}

.med-visual { width: 100%; height: auto; }
.med-visual text { font-family: var(--font); }
.v-chip-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .14em;
  fill: var(--muted);
}
.v-chip-value { font-size: 11px; font-weight: 600; fill: var(--medical-navy); }

.visual-caption {
  margin-top: 12px;
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
}

/* Hero visual animation — origins declared in viewBox units */
.v-ring-outer,
.v-ring-mid,
.v-ring-inner,
.v-sweep {
  transform-box: view-box;
  transform-origin: 260px 252px;
}
.v-ring-outer { animation: spin 68s linear infinite; }
.v-ring-mid { animation: spin 44s linear infinite reverse; }
.v-ring-inner { animation: spin 92s linear infinite; }
.v-sweep { animation: spin 14s linear infinite; }

.v-heart, .v-heart-halo { transform-box: view-box; }

.v-pulse-base { opacity: .35; }
.v-pulse {
  stroke-dasharray: 130 900;
  animation: trace 6.5s linear infinite;
}
.v-heart { animation: beat 2.4s ease-in-out infinite; transform-origin: 232px 300px; }
.v-heart-halo { animation: halo 2.4s ease-out infinite; transform-origin: 232px 300px; }

.v-dots circle { animation: glow 5.5s ease-in-out infinite; }
.v-dots .d2 { animation-delay: .8s; }
.v-dots .d3 { animation-delay: 1.6s; }
.v-dots .d4 { animation-delay: 2.4s; }
.v-dots .d5 { animation-delay: 3.2s; }
.v-dots .d6 { animation-delay: 4s; }

.v-chip {
  transform-box: fill-box;
  animation: float 9s ease-in-out infinite;
}
.v-chip-delay { animation-delay: -4.5s; }
.v-chip-bar {
  transform-box: fill-box;
  transform-origin: left center;
  animation: bar 7s ease-in-out infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes trace { 0% { stroke-dashoffset: 900; } 100% { stroke-dashoffset: -130; } }
@keyframes beat {
  0%, 100% { transform: scale(1); }
  16% { transform: scale(1.16); }
  32% { transform: scale(1); }
}
@keyframes halo {
  0% { transform: scale(1); opacity: .55; }
  70%, 100% { transform: scale(2.5); opacity: 0; }
}
@keyframes glow {
  0%, 100% { opacity: .35; transform: translateY(0); }
  50% { opacity: .95; transform: translateY(-4px); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes bar {
  0%, 100% { transform: scaleX(.86); }
  50% { transform: scaleX(1); }
}

/* ---------- 08 Approach ---------- */
.approach { background: var(--white); }
.approach-inner { max-width: 780px; margin-inline: auto; text-align: center; }

.pulse-divider { margin-top: clamp(40px, 5vw, 64px); }
.pulse-divider svg { width: 100%; height: 60px; }

.divider-track {
  fill: none;
  stroke: var(--line);
  stroke-width: 1.5;
}
.divider-base,
.divider-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.divider-base {
  stroke: var(--medical-blue);
  stroke-width: 1.6;
  opacity: .3;
}
.divider-line {
  stroke: var(--teal);
  stroke-width: 2.4;
  stroke-dasharray: 300 2400;
  animation: trace-wide 9s linear infinite;
}
@keyframes trace-wide {
  0% { stroke-dashoffset: 2400; }
  100% { stroke-dashoffset: -300; }
}

/* ---------- Cards (shared) ---------- */
.card {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 2.4vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: var(--shadow-xs);
  transition: transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(45, 156, 156, .55);
  box-shadow: var(--shadow-md);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 22px;
  border-radius: 15px;
  background: var(--soft-blue);
  color: var(--medical-blue);
  transition: transform var(--dur) var(--ease),
              background-color var(--dur) var(--ease),
              color var(--dur) var(--ease);
}
.card-icon .ico { width: 26px; height: 26px; }
.card:hover .card-icon {
  transform: translateY(-2px);
  background: var(--mint);
  color: var(--teal);
}

.card-title {
  font-size: 19.5px;
  letter-spacing: -.015em;
}
.card-kicker {
  margin-top: 10px;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--medical-blue);
}
.card-text {
  margin-top: 12px;
  font-size: 15.5px;
  color: var(--muted);
}

/* ---------- 09 Solutions ---------- */
.solutions { background: var(--off-white); }

.scan-visual {
  margin-top: 18px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--white);
}
.scan-visual svg { width: 100%; max-width: 180px; height: auto; margin-inline: auto; }
.scan-ring {
  transform-box: view-box;
  transform-origin: 100px 60px;
  animation: spin 9s linear infinite;
}
.scan-core {
  transform-box: view-box;
  transform-origin: 100px 60px;
  animation: corepulse 3s ease-in-out infinite;
}
@keyframes corepulse {
  0%, 100% { opacity: .5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.4); }
}

/* ---------- 10 Why Spheinx ---------- */
.why { background: linear-gradient(180deg, var(--soft-blue) 0%, #EEF7FA 55%, var(--off-white) 100%); }

.feature {
  padding: clamp(28px, 3vw, 40px);
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, .72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              background-color var(--dur) var(--ease);
}
.feature:hover {
  transform: translateY(-4px);
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin-bottom: 24px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--medical-navy);
  transition: transform var(--dur) var(--ease), color var(--dur) var(--ease);
}
.feature-icon .ico { width: 30px; height: 30px; }
.feature:hover .feature-icon { transform: translateY(-2px); color: var(--teal); }

.feature-title {
  font-size: clamp(21px, 2vw, 25px);
  letter-spacing: .01em;
  text-transform: uppercase;
}
.feature-kicker {
  margin-top: 12px;
  font-size: 16.5px;
  font-weight: 600;
  color: var(--medical-blue);
}
.feature-text {
  margin-top: 12px;
  font-size: 15.5px;
  color: var(--muted);
}

/* ---------- 11 Conceptual system interface ---------- */
.system { background: var(--white); }

.dashboard {
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--white);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.dash-chrome {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px clamp(18px, 2.4vw, 28px);
  border-bottom: 1px solid var(--line);
  background: var(--off-white);
}
.dash-dots { display: inline-flex; gap: 6px; }
.dash-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line);
}
.dash-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: .03em;
  color: var(--medical-navy);
}
.dash-mark {
  --mark-accent: #6FD0DC;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--medical-navy);
  color: var(--white);
}
.dash-mark svg { width: 18px; height: 18px; }
.dash-badge {
  margin-left: auto;
  padding: 4px 12px;
  border: 1px dashed var(--line);
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

.dash-body {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
}
.dash-col {
  padding: clamp(22px, 2.4vw, 32px);
  background: var(--white);
}

.dash-label {
  margin-bottom: 18px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

.dash-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  font-weight: 500;
  color: var(--medical-navy);
}
.dash-list li:last-child { border-bottom: 0; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  font-size: 12.5px;
  font-weight: 600;
}
.status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.status-active { background: var(--mint); color: var(--success); }
.status-connected { background: var(--soft-blue); color: var(--medical-blue); }
.status-stable { background: #EFF4F6; color: var(--muted); }

.meter + .meter { margin-top: 22px; }
.meter-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--medical-navy);
}
.meter-val { color: var(--muted); font-weight: 500; }
.meter-track {
  height: 10px;
  border-radius: var(--r-pill);
  background: var(--off-white);
  border: 1px solid var(--line);
  overflow: hidden;
}
.meter-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--medical-blue), var(--teal));
  transition: width 1.5s var(--ease);
}
.is-visible .meter-fill { width: var(--to); }

.dash-note {
  margin-top: 18px;
  font-size: 12.5px;
  color: var(--muted);
}

.dash-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: var(--r-pill);
  background: var(--mint);
  color: var(--success);
  font-size: 15px;
  font-weight: 600;
}
.dash-spark { margin-top: 26px; }
.dash-spark svg { width: 100%; height: 70px; }

/* ---------- 12 Process ---------- */
.process { background: var(--off-white); }

.steps-wrap { position: relative; }

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(18px, 2vw, 26px);
}
.steps-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 34px;
  z-index: 0;
  pointer-events: none;
}
.steps-line svg { width: 100%; height: 40px; }

.step {
  position: relative;
  z-index: 1;
  padding: clamp(24px, 2.4vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--white);
  transition: transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.step:hover {
  transform: translateY(-4px);
  border-color: rgba(25, 118, 168, .5);
  box-shadow: var(--shadow-md);
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--medical-navy);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
}
.step:hover .step-num { background: var(--medical-blue); }

.step-title {
  font-size: 18.5px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.step-text {
  margin-top: 10px;
  font-size: 15.5px;
  color: var(--muted);
}

/* ---------- 13 Human-centered ---------- */
.human { background: var(--white); }
.human-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .86fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.human-copy .btn { margin-top: 32px; }
.human-visual svg { width: 100%; height: auto; }
.human-orbit {
  transform-box: view-box;
  transform-origin: 210px 210px;
  animation: spin 80s linear infinite;
}
.human-heart {
  transform-box: view-box;
  transform-origin: 186px 262px;
  animation: beat 2.8s ease-in-out infinite;
}

/* ---------- 14 Research (dark) ---------- */
.research {
  position: relative;
  background: var(--medical-navy);
  overflow: hidden;
}
.research-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px),
    radial-gradient(700px 420px at 88% 10%, rgba(45, 156, 156, .22), transparent 60%),
    radial-gradient(600px 380px at 6% 96%, rgba(25, 118, 168, .26), transparent 60%);
  background-size: 72px 72px, 72px 72px, 100% 100%, 100% 100%;
}
.research .container { position: relative; }

.card-dark {
  background: rgba(255, 255, 255, .045);
  border-color: rgba(255, 255, 255, .12);
  box-shadow: none;
}
.card-dark:hover {
  background: rgba(255, 255, 255, .07);
  border-color: rgba(111, 208, 220, .5);
  box-shadow: 0 20px 44px rgba(0, 0, 0, .22);
}
.card-dark .card-title { color: var(--white); }
.card-dark .card-kicker { color: #7FD3D3; }
.card-dark .card-text { color: rgba(255, 255, 255, .68); }

.card-icon-dark {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  color: #9BDDE6;
}
.card-dark:hover .card-icon-dark {
  background: rgba(45, 156, 156, .22);
  color: var(--white);
}

/* ---------- 15 Insights ---------- */
.insights { background: var(--white); }

.article-art {
  margin: -8px -8px 22px;
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
}
.article-art svg { width: 100%; height: 100%; }
.art-1 { background: linear-gradient(140deg, var(--soft-blue), var(--white)); }
.art-2 { background: linear-gradient(140deg, var(--mint), var(--white)); }
.art-3 { background: linear-gradient(140deg, #EAF3F7, var(--white)); }

.article-card .card-title { font-size: 20px; line-height: 1.28; }

/* ---------- 16 Principles ---------- */
.principles { background: var(--off-white); }

.principles-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 1.8vw, 22px);
  margin-top: clamp(34px, 4vw, 52px);
}
.principles-row li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 28px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--white);
  text-align: center;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--medical-navy);
  transition: transform var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.principles-row li:hover {
  transform: translateY(-3px);
  border-color: rgba(45, 156, 156, .55);
  box-shadow: var(--shadow-sm);
}

.principle-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--soft-blue);
  color: var(--medical-blue);
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.principle-mark .ico { width: 25px; height: 25px; }
.principles-row li:hover .principle-mark {
  background: var(--mint);
  color: var(--teal);
}

/* ---------- 17 Contact ---------- */
.contact { background: var(--white); }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1fr);
  gap: clamp(32px, 4.5vw, 64px);
  align-items: start;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.contact-meta {
  margin-top: 40px;
  border-top: 1px solid var(--line);
}
.contact-meta li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.meta-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--medical-navy);
}
.meta-value { font-size: 14.5px; color: var(--muted); }

.contact-form {
  padding: clamp(26px, 3vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--off-white);
  box-shadow: var(--shadow-sm);
}
.form-title {
  margin-bottom: 26px;
  font-size: 21px;
}

.field { margin-bottom: 20px; }
.field label {
  display: block;
  margin-bottom: 9px;
  font-size: 14px;
  font-weight: 600;
  color: var(--medical-navy);
}
.optional { font-weight: 400; color: var(--muted); }

.field input,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--white);
  font-size: 15.5px;
  color: var(--text);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder,
.field textarea::placeholder { color: #9AAAB3; }

.field input:hover,
.field textarea:hover { border-color: #BFD5DE; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--medical-blue);
  box-shadow: 0 0 0 4px rgba(25, 118, 168, .13);
}

.field-error {
  min-height: 0;
  margin-top: 7px;
  font-size: 13px;
  font-weight: 500;
  color: #B4453C;
}
.field.has-error input,
.field.has-error textarea { border-color: #C8564C; }
.field.has-error input:focus,
.field.has-error textarea:focus { box-shadow: 0 0 0 4px rgba(200, 86, 76, .14); }

.contact-form .btn { margin-top: 6px; }

.form-note {
  margin-top: 18px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  text-align: center;
}
.form-note.is-success {
  color: var(--success);
  font-weight: 600;
}

/* ---------- 18 Statement ---------- */
.statement {
  background: var(--white);
  border-top: 1px solid var(--line);
}
.statement-title {
  font-size: clamp(36px, 6.4vw, 88px);
  line-height: 1.05;
  letter-spacing: -.04em;
}
.statement-soft { color: var(--medical-blue); }

.statement-sub {
  margin-top: 26px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
}
.statement-mark {
  --mark-accent: #6FD0DC;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin-top: 30px;
  border-radius: 18px;
  background: var(--medical-navy);
  color: var(--white);
  box-shadow: var(--shadow-md);
}
.statement-mark svg { width: 40px; height: 40px; }

/* ---------- 19 Footer ---------- */
.site-footer {
  padding-top: clamp(56px, 7vw, 92px);
  background: var(--deep-navy);
  color: rgba(255, 255, 255, .72);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(36px, 5vw, 72px);
  padding-bottom: clamp(44px, 5vw, 64px);
}

.footer-statement {
  margin-top: 26px;
  max-width: 34ch;
  font-size: 16.5px;
  color: rgba(255, 255, 255, .8);
}
.footer-tagline {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .04em;
  color: #7FD3D3;
}

.social {
  display: flex;
  gap: 12px;
  margin-top: 30px;
}
.social a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 12px;
  color: rgba(255, 255, 255, .78);
  transition: transform var(--dur) var(--ease),
              background-color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              color var(--dur) var(--ease);
}
.social .ico { width: 20px; height: 20px; }
.social a:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, .08);
  border-color: rgba(127, 211, 211, .55);
  color: var(--white);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 40px);
}
.footer-heading {
  margin-bottom: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--white);
}
.footer-col li + li { margin-top: 12px; }
.footer-col a {
  position: relative;
  font-size: 15px;
  color: rgba(255, 255, 255, .68);
  transition: color var(--dur) var(--ease);
}
.footer-col a:hover { color: var(--white); }

.footer-contact li {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 15px;
}
.footer-contact span {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .45);
}
.footer-contact em {
  font-style: normal;
  color: rgba(255, 255, 255, .7);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-block: 26px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: 14px;
  color: rgba(255, 255, 255, .55);
}
.legal { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.legal a { transition: color var(--dur) var(--ease); }
.legal a:hover { color: var(--white); }

/* ---------- 20 Motion & reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* stagger inside grids */
.grid > .reveal:nth-child(2) { transition-delay: .08s; }
.grid > .reveal:nth-child(3) { transition-delay: .16s; }
.grid > .reveal:nth-child(4) { transition-delay: .24s; }
.steps > .reveal:nth-child(2) { transition-delay: .08s; }
.steps > .reveal:nth-child(3) { transition-delay: .16s; }
.steps > .reveal:nth-child(4) { transition-delay: .24s; }

/* ---------- 21 Responsive ---------- */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: clamp(36px, 6vw, 56px); }
  .hero-copy { max-width: 720px; }
  .hero-visual { max-width: 620px; margin-inline: auto; }

  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps-line { display: none; }
  .dash-body { grid-template-columns: 1fr 1fr; }
  .dash-col:last-child { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 940px) {
  .nav-toggle { display: grid; place-items: center; }

  .primary-nav {
    position: fixed;
    inset: 82px 0 auto;
    z-index: 95;
    display: block;
    max-height: calc(100dvh - 82px);
    overflow-y: auto;
    padding: 22px var(--gutter) 34px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    transform: translateY(-14px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--dur) var(--ease),
                transform var(--dur) var(--ease),
                visibility var(--dur) var(--ease);
  }
  .primary-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list li + li { border-top: 1px solid var(--line); }
  .nav-list a {
    display: block;
    padding: 15px 4px;
    font-size: 17px;
    font-weight: 600;
  }
  .nav-list a::after { display: none; }

  .nav-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    margin-top: 24px;
  }
  .nav-actions .btn { width: 100%; --btn-y: 15px; font-size: 16px; }
  .portal-link { justify-content: space-between; font-size: 15px; }

  .grid-3 { grid-template-columns: 1fr; }
  .human-grid { grid-template-columns: 1fr; }
  .human-visual { max-width: 420px; margin-inline: auto; order: -1; }
  .contact-grid { grid-template-columns: 1fr; }
  .principles-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  html { scroll-padding-top: 88px; }
  .anchor { top: -88px; }
  body { font-size: 16.5px; }

  .header-inner { min-height: 72px; }
  .primary-nav { inset: 72px 0 auto; max-height: calc(100dvh - 72px); }
  .logo-mark { width: 40px; height: 40px; border-radius: 12px; }
  .logo-mark svg { width: 27px; height: 27px; }
  .logo-word { font-size: 18px; }

  .grid-4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .dash-body { grid-template-columns: 1fr; }
  .dash-col:last-child { grid-column: auto; }
  .dash-chrome { flex-wrap: wrap; }
  .dash-badge { margin-left: 0; }

  .hero-actions .btn,
  .contact-actions .btn,
  .human-copy .btn { width: 100%; }

  .hero-points { gap: 12px; flex-direction: column; align-items: flex-start; }

  .visual-frame { padding: 12px; border-radius: var(--r-lg); }
  .v-grid, .v-ring-outer, .v-chip { display: none; }

  .contact-meta li { flex-direction: column; gap: 4px; }
  .footer-nav { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 460px) {
  .principles-row { grid-template-columns: 1fr; }
  .logo-sub { font-size: 8.5px; letter-spacing: .16em; }
}

/* ---------- 22 Accessibility & print ---------- */
:where(a, button, input, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--medical-blue);
  outline-offset: 3px;
  border-radius: 6px;
}
.research :where(a, button):focus-visible,
.site-footer :where(a, button):focus-visible {
  outline-color: #7FD3D3;
}

body.nav-open { overflow: hidden; }

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

@media print {
  .site-header, .nav-scrim, .hero-bg, .research-grid-bg { display: none !important; }
  body { color: #000; background: #fff; }
  .card, .feature, .step, .dashboard { break-inside: avoid; box-shadow: none; }
}
