/* ==========================================================================
   SynQ Medical — main stylesheet
   Built from the "SynQ we design prototype" Figma file (1440px desktop frame).
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --cyan: #06b6d4;
  --cyan-600: #0891b2;
  --cyan-50: #ecfeff;
  --cyan-100: #cffafe;
  --cyan-200: #a5f3fc;
  --sky-50: #f0f9ff;

  --ink: #111111;          /* headings */
  --ink-2: #0f172a;        /* card titles */
  --navy-text: #0f2742;    /* contact heading */
  --body: #475569;         /* body copy */
  --muted: #64748b;        /* secondary copy */
  --subtle: #94a3b8;       /* placeholders */
  --line: #e2e8f0;
  --line-soft: #eef2f6;
  --surface: #f8fafc;
  --surface-2: #f1f5f9;

  --dark: #111111;         /* header + footer */
  --dark-card: #1b1b1b;
  --dark-line: #2c2c2c;

  --navy-900: #020d1f;
  --navy-800: #03152b;
  --navy-700: #04254d;
  --navy-600: #07417c;
  --navy-500: #0b3a8a;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --container: 1296px;
  --gutter: 72px;
  --header-h: 112px;      /* current header height (shrinks on scroll) */
  --header-space: 112px;  /* space reserved at the top of the page */

  --font: "Jost", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-ui: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-alt: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --shadow-card: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .04);
  --glow: 0 0 0 3px var(--cyan), 0 0 28px rgba(6, 182, 212, .55);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Fonts (self-hosted variable fonts, latin) ---------- */
@font-face { font-family: "Jost"; src: url("../fonts/jost-latin.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("../fonts/plus-jakarta-sans-latin.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.text-cyan { color: var(--cyan); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--cyan); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm);
  font-weight: 600; transition: top .2s;
}
.skip-link:focus { top: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 58px; padding: 0 34px;
  border-radius: 6px; border: 2px solid transparent;
  font-family: var(--font); font-size: 18px; font-weight: 600; line-height: 1;
  cursor: pointer; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--cyan); color: #fff; }
.btn-primary:hover { background: var(--cyan-600); box-shadow: 0 10px 24px rgba(6, 182, 212, .28); }
.btn-outline { border-color: #fff; color: #fff; background: transparent; }
.btn-outline:hover { background: #fff; color: var(--navy-800); }
.btn-sm { min-height: 46px; padding: 0 26px; font-size: 16px; }
.btn-ui { font-family: var(--font-ui); }
.btn .arrow { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Header ---------- */
/* Fixed header that shrinks on scroll; body padding keeps the layout from jumping. */
body { padding-top: var(--header-space); }
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: var(--dark);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  transition: box-shadow .35s var(--ease), background-color .35s;
}
.site-header .container { transition: height .35s var(--ease); }
.site-header .logo img { transition: width .35s var(--ease); }
html.is-scrolled { --header-h: 80px; }
html.is-scrolled .site-header {
  background: rgba(17, 17, 17, .92);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .28);
}
html.is-scrolled .site-header .logo img { width: 106px; }
section[id], [id="contact-form"] { scroll-margin-top: 88px; }
.site-header .container {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.logo img { width: 126px; height: auto; }
.nav { display: flex; align-items: center; }
.nav-list { display: flex; align-items: center; gap: 36px; }
.nav-link {
  position: relative; display: inline-block; padding: 8px 0;
  color: #fff; font-size: 16px; font-weight: 400; letter-spacing: .01em;
  transition: color .2s;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--cyan); transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease);
}
.nav-link:hover { color: var(--cyan-200); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link[aria-current="page"] { font-weight: 500; }
.nav-link[aria-current="page"]::after { transform: scaleX(1); }
.nav-list li.nav-contact { margin-left: 30px; }
.nav-quick { display: none; } /* phone + email row, shown only in the mobile menu */

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; border-radius: var(--radius-sm);
  background: transparent; cursor: pointer; position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  position: absolute; left: 11px; width: 22px; height: 2px; background: #fff; border-radius: 2px;
  transition: transform .25s var(--ease), opacity .2s;
}
.nav-toggle span { top: 21px; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; left: 0; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Shared section heading ---------- */
.section { padding-block: 112px; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 64px; }
.section-title {
  font-size: 56px; line-height: 1.1; font-weight: 700; color: var(--ink); letter-spacing: -.01em;
}
.section-title.md { font-size: 48px; font-weight: 600; }
.section-lead {
  margin-top: 18px; font-size: 20px; line-height: 1.75; font-weight: 400; color: var(--muted);
}
.eyebrow {
  display: inline-block; color: var(--cyan); font-size: 14px; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(60% 80% at 85% 20%, rgba(11, 84, 160, .55), transparent 70%),
    radial-gradient(50% 60% at 60% 110%, rgba(7, 65, 124, .45), transparent 70%),
    linear-gradient(115deg, var(--navy-800) 0%, #04204a 45%, var(--navy-600) 100%);
}
.hero-waves { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .55; }
.hero .container {
  position: relative; min-height: 832px;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: 40px;
  padding-block: 80px;
}
.hero-tagline { color: var(--cyan); font-size: 18px; font-weight: 400; letter-spacing: .01em; }
.hero h1 {
  margin-top: 28px; max-width: 560px; font-size: 64px; line-height: 1.1; font-weight: 600; letter-spacing: -.005em;
}
.hero h1 .text-cyan { display: block; }
.hero p.hero-text {
  margin-top: 36px; max-width: 560px; font-size: 16px; line-height: 1.9; color: #e2e8f0;
}
.hero-actions { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 22px; }

/* Rounded diamond image tiles */
.diamond {
  --size: 300px;
  position: absolute; width: var(--size); height: var(--size);
  border-radius: 22%; transform: rotate(45deg);
  box-shadow: var(--glow);
  background: #0b1f3a;
}
/* The image is clipped by an inner layer so the glow (::after) can sit outside the tile. */
.diamond-clip { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; }
.diamond img {
  position: absolute; left: 50%; top: 50%; width: 142%; height: 142%; max-width: none;
  object-fit: cover; transform: translate(-50%, -50%) rotate(-45deg);
}
.diamond.outline { background: linear-gradient(135deg, #f0f9ff, #ecfeff); box-shadow: 0 0 0 3px var(--cyan), 0 0 26px rgba(6, 182, 212, .35); }

/* Diamond groups are sized with container-query units so they scale as one picture. */
.hero-visual { position: relative; width: 100%; max-width: 612px; margin-left: auto; aspect-ratio: 612 / 680; container-type: inline-size; }
.hero-visual .ring {
  position: absolute; width: 50cqw; height: 50cqw; left: 52cqw; top: -4cqw;
  border-radius: 22%; transform: rotate(45deg);
  border: 1px solid rgba(56, 189, 248, .16); background: rgba(14, 75, 150, .12);
}
.hero-visual .d-main   { --size: 73.9cqw; left: -1cqw;   top: 6.9cqw;  z-index: 2; }
.hero-visual .d-top    { --size: 39cqw;   left: 60.1cqw; top: 4.4cqw;  z-index: 1; }
.hero-visual .d-bottom { --size: 44.3cqw; left: 51.1cqw; top: 57.5cqw; z-index: 3; }
.hero-visual .d-main img { width: 150%; height: 150%; object-position: 50% 45%; }
.hero-visual .d-top img { object-position: 50% 30%; }

/* ---------- Who we support ---------- */
.support-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; max-width: 1080px; margin-inline: auto; }
.support-card {
  position: relative; padding: 44px 36px 48px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s;
}
.support-card::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 4px;
  background: linear-gradient(90deg, #020d1f, #0b3a8a);
}
.support-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(2, 13, 31, .08); }
.support-card-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 30px; }
.icon-tile {
  width: 62px; height: 62px; flex: none; display: grid; place-items: center;
  border-radius: var(--radius); background: var(--cyan-50); border: 1px solid var(--cyan-200);
  color: var(--cyan);
}
.icon-tile svg { width: 30px; height: 30px; }
.tag {
  display: inline-flex; align-items: center; padding: 6px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2);
  white-space: nowrap;
}
.support-card h3 { font-size: 28px; line-height: 1.3; font-weight: 600; color: var(--ink-2); letter-spacing: .01em; }
.support-card p { margin-top: 18px; font-size: 16px; line-height: 1.72; color: var(--body); }
.dot-list { margin-top: 30px; display: grid; gap: 10px; }
.dot-list li {
  position: relative; padding-left: 22px; font-size: 14.5px; font-weight: 500; color: #334155;
}
.dot-list li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 50%;
  background: var(--cyan);
}

.care-strip {
  margin-top: 56px; display: flex; align-items: center; justify-content: space-between; gap: 32px;
  padding: 38px 36px; border-radius: var(--radius-lg);
  background: linear-gradient(90deg, var(--sky-50), #f5fdff 55%, var(--cyan-50));
  border: 1px solid var(--cyan-200);
}
.care-strip-text { display: flex; align-items: center; gap: 18px; }
.care-strip-text .check {
  width: 54px; height: 54px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: var(--cyan-50); border: 1px solid var(--cyan-200); color: var(--cyan-600);
}
.care-strip-text .check svg { width: 26px; height: 26px; }
.care-strip-text p { max-width: 740px; font-size: 20px; line-height: 1.55; font-weight: 500; color: var(--ink); }
.care-strip .btn { font-family: var(--font-ui); min-height: 54px; padding: 0 32px; }

/* ---------- Product list (home) ---------- */
.filter-pills {
  display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 4px; padding: 4px;
  border-radius: 999px; background: var(--surface-2);
}
.filter-pill {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 0 20px; border: 0; border-radius: 999px; cursor: pointer;
  background: transparent; color: #1e293b; font-size: 14px; font-weight: 600;
  transition: background-color .2s, color .2s;
}
.filter-pill:hover { color: var(--cyan-600); }
.filter-pill[aria-selected="true"] { background: var(--cyan); color: #fff; }
.filter-pill[aria-selected="true"]::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor;
}
.filter-pills.caps .filter-pill[aria-selected="true"] { text-transform: uppercase; letter-spacing: .04em; }
.filter-wrap { margin-top: 32px; display: flex; justify-content: center; }

.therapy-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.therapy-card {
  display: flex; flex-direction: column;
  padding: 36px 36px 34px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff;
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.therapy-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); border-color: var(--cyan-200); }
.therapy-card[hidden] { display: none; }
.num-badge {
  align-self: flex-start; min-width: 54px; padding: 8px 14px; border-radius: var(--radius-sm);
  background: var(--surface-2); color: var(--ink-2); font-size: 20px; font-weight: 700; text-align: center;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .06);
}
.therapy-card hr { width: 100%; margin: 20px 0 26px; border: 0; border-top: 1px solid var(--line); }
.therapy-card h3 { font-size: 22px; line-height: 1.35; font-weight: 600; color: var(--ink); }
.therapy-card p { margin-top: 14px; font-size: 17px; line-height: 1.6; color: var(--muted); }
.link-arrow {
  margin-top: auto; padding-top: 26px; align-self: flex-start;
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 600; color: var(--ink);
}
.link-arrow svg { width: 13px; height: 13px; transition: transform .2s var(--ease); }
.link-arrow:hover { color: var(--cyan-600); }
.link-arrow:hover svg { transform: translate(2px, -2px); }

/* ---------- Why providers ---------- */
.why-grid {
  max-width: 1176px; margin-inline: auto;
  display: grid; grid-template-columns: 656fr 498fr; gap: 22px;
}
.why-feature {
  position: relative; overflow: hidden; border-radius: var(--radius-xl); color: #fff;
  padding: 44px 40px 0; min-height: 634px;
  background:
    radial-gradient(70% 60% at 50% 100%, rgba(30, 64, 175, .35), transparent 70%),
    linear-gradient(160deg, #0b2e74 0%, #08215a 45%, #061a49 100%);
  display: flex; flex-direction: column;
}
.why-feature .heart { width: 56px; height: 56px; color: var(--cyan); }
.why-feature h3 { margin-top: 30px; font-size: 36px; line-height: 1.2; font-weight: 500; }
.why-feature p { margin-top: 18px; max-width: 560px; font-size: 18px; line-height: 1.45; color: #e2e8f0; }
.why-orbit { position: relative; flex: 1; min-height: 320px; margin-inline: -40px; }
.why-orbit svg { position: absolute; inset: 0; width: 100%; height: 100%; }

.why-stack { display: grid; gap: 22px; }
.why-card {
  padding: 40px 40px 40px; border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--sky-50) 0%, #fff 45%, var(--cyan-50) 100%);
  border: 1px solid #e0f2fe;
  box-shadow: 0 2px 6px rgba(15, 23, 42, .03);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.why-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(6, 182, 212, .12); }
.why-card .ico { width: 46px; height: 46px; color: var(--cyan); }
.why-card h3 { margin-top: 26px; font-size: 28px; line-height: 1.25; font-weight: 500; color: var(--ink); }
.why-card p { margin-top: 14px; font-size: 17px; line-height: 1.45; color: #334155; }

/* ---------- Support beyond the clinic (split with diamonds) ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 56px; }
.diamond-pair { position: relative; width: 100%; aspect-ratio: 620 / 640; container-type: inline-size; }
.diamond-pair .back  { --size: 74.7cqw; left: -21.2cqw; top: 14.3cqw; }
.diamond-pair .front { --size: 74.7cqw; left: 13.9cqw;  top: 14.3cqw; z-index: 1; }
.diamond-pair.sm { max-width: 552px; aspect-ratio: 552 / 448; }
.diamond-pair.sm .back  { --size: 54.2cqw; left: 9cqw;    top: 13.5cqw; }
.diamond-pair.sm .front { --size: 54.2cqw; left: 33.2cqw; top: 13.5cqw; }
.diamond-pair.sm .front img { object-position: 50% 30%; }
.split-copy h2 { font-size: 56px; line-height: 1.15; font-weight: 600; color: var(--ink); }
.split-copy p { margin-top: 16px; font-size: 17px; line-height: 1.68; color: var(--muted); }
.split-copy h2 + p { margin-top: 22px; }

/* ---------- Contact section ---------- */
.contact-section { padding-block: 104px 120px; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 664px); gap: 80px; align-items: start; }
.contact-intro { padding-left: 10px; }
.contact-intro :is(h1, h2) { font-size: 50px; line-height: 1; font-weight: 600; color: var(--navy-text); letter-spacing: -.01em; }
.contact-intro p { margin-top: 18px; max-width: 440px; font-family: var(--font-ui); font-size: 18px; line-height: 1.6; color: var(--body); }
.contact-intro .diamond-pair { margin-top: 24px; }

/* Direct phone / email (Contact page) */
.contact-quick { margin-top: 28px; max-width: 540px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.contact-quick a {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  transition: border-color .2s, box-shadow .2s, transform .2s var(--ease);
}
.contact-quick a:hover { border-color: var(--cyan-200); box-shadow: 0 10px 24px rgba(6, 182, 212, .1); transform: translateY(-2px); }
.contact-quick .ico {
  width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: var(--cyan-50); color: var(--cyan-600);
}
.contact-quick small { display: block; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.contact-quick strong { display: block; font-size: 16px; font-weight: 600; color: var(--ink-2); }

.form-card {
  padding: 44px 44px 52px; border: 1px solid var(--line); border-radius: 20px; background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .03);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 20px; }
.field { display: grid; gap: 10px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 16px; font-weight: 600; color: var(--ink); }
.field label .req { color: #ef4444; margin-left: 4px; }
.field label .opt { color: var(--subtle); font-weight: 400; margin-left: 4px; }
.input {
  width: 100%; min-height: 48px; padding: 12px 17px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface);
  font-family: var(--font-ui); font-size: 16px; color: var(--ink-2);
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.input::placeholder { color: var(--subtle); }
.input:focus { outline: none; border-color: var(--cyan); background: #fff; box-shadow: 0 0 0 4px rgba(6, 182, 212, .14); }
textarea.input { min-height: 128px; resize: vertical; }
.field.invalid .input { border-color: #ef4444; }
.field-error { font-size: 13px; color: #dc2626; display: none; }
.field.invalid .field-error { display: block; }
.form-card .btn { width: 100%; margin-top: 34px; min-height: 56px; border-radius: 8px; font-size: 17px; }
.form-status { margin-top: 16px; font-size: 15px; text-align: center; min-height: 1.4em; }
.form-status.ok { color: #059669; }
.form-status.err { color: #dc2626; }
.hp-field { position: absolute; left: -9999px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: #fff; padding-block: 80px 96px; }
.footer-grid { display: grid; grid-template-columns: 1.05fr .8fr 1fr; gap: 48px; padding-inline: calc(var(--gutter) + 22px); }
.footer-brand .logo img { width: 126px; }
.footer-brand p { margin-top: 30px; max-width: 360px; font-size: 18px; line-height: 1.5; }
.footer-brand .btn { margin-top: 26px; font-family: var(--font-ui); font-size: 16px; min-height: 46px; padding: 0 26px; }
.footer-title { font-size: 14px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.footer-links { margin-top: 20px; display: grid; gap: 18px; }
.footer-links a { font-size: 16px; font-weight: 500; transition: color .2s; }
.footer-links a:hover { color: var(--cyan); }
.footer-contact .h3 { font-size: 18px; font-weight: 600; }
.footer-contact > p { margin-top: 18px; max-width: 340px; font-size: 13px; line-height: 1.55; color: #e5e7eb; }
.contact-tiles { margin-top: 24px; display: grid; gap: 14px; }
.contact-tile {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  border-radius: var(--radius-sm); background: var(--dark-card); border: 1px solid var(--dark-line);
  transition: border-color .2s, background-color .2s;
}
.contact-tile:hover { border-color: rgba(6, 182, 212, .5); background: #202020; }
.contact-tile .ico {
  width: 36px; height: 36px; flex: none; border-radius: 50%; background: #fff; color: var(--cyan);
  display: grid; place-items: center;
}
.contact-tile .ico svg { width: 16px; height: 16px; }
.contact-tile small { display: block; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #8b8f97; }
.contact-tile strong { display: block; font-size: 16px; font-weight: 600; color: #fff; }

/* ==========================================================================
   About page
   ========================================================================== */
.page-hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(50% 70% at 72% 45%, rgba(14, 116, 204, .45), transparent 70%),
    linear-gradient(120deg, #031a3c 0%, #04306a 55%, #063c80 100%);
}
.page-hero .container {
  min-height: 750px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 40px;
  padding-block: 80px;
}
.page-hero .kicker { color: var(--cyan); font-size: 20px; font-weight: 400; text-transform: uppercase; }
.page-hero h1 { margin-top: 26px; font-size: 68px; line-height: 1.08; font-weight: 600; }
.page-hero h1 .text-cyan { display: block; }
.page-hero p { margin-top: 36px; max-width: 600px; font-size: 18px; line-height: 1.78; color: #e2e8f0; }

.care-diagram { position: relative; width: 100%; max-width: 660px; aspect-ratio: 660 / 420; margin-left: auto; }
.care-diagram svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.care-diagram .chip {
  position: absolute; transform: translate(-50%, -50%);
  padding: 12px 20px; border-radius: 999px; border: 2px solid var(--cyan);
  background: rgba(3, 21, 43, .75); box-shadow: 0 0 18px rgba(6, 182, 212, .35);
  font-size: 18px; font-weight: 600; white-space: nowrap; color: #fff;
}
.care-diagram .pulse-dot { animation: pulse 2.4s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .55; transform: scale(.75); } }
.care-diagram .spin { animation: spin 40s linear infinite; transform-origin: 50% 50%; transform-box: view-box; }
@keyframes spin { to { transform: rotate(360deg); } }

.stats-wrap { margin-top: 20px; padding-inline: 32px; }
.stats {
  max-width: 1376px; margin-inline: auto; padding: 16px 24px;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px;
  border-radius: var(--radius-lg); background: #021a3d;
  box-shadow: 0 18px 40px rgba(2, 26, 61, .25);
}
.stat {
  padding: 26px 16px; border-radius: var(--radius); text-align: center;
  border: 1px solid rgba(148, 163, 184, .28);
}
.stat strong {
  display: block; font-size: 44px; line-height: 1.05; font-weight: 600;
  background: linear-gradient(180deg, #67e8f9, #38bdf8); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat span { display: block; margin-top: 4px; font-size: 15px; font-weight: 500; color: #fff; }

.about-block { padding-block: 72px 44px; }
.about-block + .about-block { border-top: 2px solid #1e4f7a; background: #f1f6f9; padding-block: 72px 96px; }
.about-block .container { display: grid; grid-template-columns: 440px minmax(0, 1fr); gap: 60px; align-items: center; }
.about-block h2 { padding-left: 38px; font-size: 64px; line-height: 1.08; font-weight: 600; color: var(--ink); }
.about-block h2 .text-cyan { display: block; }
.about-block .copy p { font-size: 18px; line-height: 1.62; color: var(--muted); letter-spacing: -.01em; }
.about-block .copy p + p { margin-top: 14px; }

/* ==========================================================================
   Products page
   ========================================================================== */
.page-intro { padding-block: 88px 64px; text-align: center; }
.page-intro h1 { font-size: 52px; line-height: 1.15; font-weight: 600; color: var(--ink); letter-spacing: -.01em; }
.page-intro p { max-width: 820px; margin: 22px auto 0; font-size: 18px; line-height: 1.78; color: var(--muted); }

.products-intro { padding-bottom: 36px; }
.page-intro .eyebrow { display: block; max-width: none; margin: 0 0 14px; font-size: 14px; line-height: 1.4; color: var(--cyan); }
.product-card.is-center { grid-column: 1 / -1; justify-self: center; width: calc(50% - 20px); }

/* Sticky program filter */
.filter-bar {
  position: sticky; top: var(--header-h); z-index: 20;
  padding-block: 14px; background: rgba(255, 255, 255, .96);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s, top .35s var(--ease);
}
.filter-bar.is-stuck { border-bottom-color: var(--line); box-shadow: 0 6px 20px rgba(15, 23, 42, .05); }
.filter-bar .container { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.filter-pill .count {
  display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; margin-left: 2px;
  border-radius: 999px; background: #fff; color: var(--muted); font-size: 12px; font-weight: 700;
  box-shadow: inset 0 0 0 1px var(--line); transition: background-color .2s, color .2s;
}
.filter-pill[aria-selected="true"] .count { background: rgba(255, 255, 255, .25); color: #fff; box-shadow: none; }
.filter-pill .lbl-short { display: none; }
.filter-status { font-size: 14px; color: var(--muted); }
.filter-status strong { color: var(--ink); font-weight: 600; }

.product-list { padding-top: 36px; }
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; padding-bottom: 24px; }
.product-card {
  position: relative; display: flex; flex-direction: column; padding: 14px;
  border-radius: 24px; border: 1px solid #d6edf3;
  background: linear-gradient(145deg, #f7fbfe 0%, #fff 42%, #effcfe 100%);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .03);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.product-card:hover { transform: translateY(-6px); border-color: var(--cyan-200); box-shadow: 0 24px 50px -12px rgba(6, 150, 180, .25); }
.product-card[hidden] { display: none; }
.product-card.is-entering { animation: cardIn .45s var(--ease) both; animation-delay: calc(var(--n, 0) * 60ms); }
@keyframes cardIn { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }

.product-media {
  position: relative; aspect-ratio: 5 / 4; border-radius: 16px; overflow: hidden;
  background:
    radial-gradient(70% 60% at 50% 55%, #fff 0%, rgba(255, 255, 255, 0) 70%),
    linear-gradient(180deg, #f3f8fb 0%, #e9f4f8 100%);
}
.product-media::after {
  content: ""; position: absolute; left: 22%; right: 22%; bottom: 9%; height: 6%;
  background: radial-gradient(closest-side, rgba(15, 23, 42, .12), transparent); filter: blur(4px);
  transition: transform .6s var(--ease), opacity .6s var(--ease);
}
/* Hover: the device lifts off the stage, its shadow spreads and softens */
.product-card:hover .product-media::after { transform: scale(1.2, 1.5); opacity: .6; }
.product-media img {
  position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain;
  mix-blend-mode: multiply; transition: transform .6s var(--ease);
}
.product-card:hover .product-media img {
  transform: translate(calc(var(--tx, 0) * 7px), calc(var(--ty, 0) * 7px - 10px)) scale(1.06);
}
.program-badges { position: absolute; top: 14px; left: 14px; z-index: 2; display: flex; gap: 6px; }
.program-badges li {
  padding: 5px 11px; border-radius: 999px; background: rgba(255, 255, 255, .92);
  border: 1px solid var(--line); color: var(--ink-2);
  font-size: 12px; font-weight: 700; letter-spacing: .08em;
}

.product-body { flex: 1; display: flex; flex-direction: column; padding: 24px 14px 10px; }
.product-cat { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan-600); }
.product-card h3 { margin-top: 8px; font-size: 30px; line-height: 1.2; font-weight: 600; color: var(--ink); letter-spacing: -.01em; }
.product-text { margin-top: 12px; font-size: 17px; line-height: 1.6; color: var(--muted); }
.product-actions {
  margin-top: auto; padding-top: 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.product-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 19px; font-weight: 600; color: var(--cyan);
}
.product-link .arrow { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.product-link:hover { color: var(--cyan-600); }
.product-link:hover .arrow { transform: translateX(4px); }
/* Stretch the details link over the whole card so the card is clickable */
.product-link::before { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 3; }
.btn-request {
  position: relative; z-index: 4;
  display: inline-flex; align-items: center; min-height: 42px; padding: 0 20px;
  border: 1.5px solid var(--cyan); border-radius: 8px; background: #fff; color: var(--cyan-600);
  font-family: var(--font-ui); font-size: 15px; font-weight: 600;
  transition: background-color .2s, color .2s;
}
.btn-request:hover { background: var(--cyan); color: #fff; }
.btn-request.solo { background: var(--cyan); color: #fff; }
.btn-request.solo:hover { background: var(--cyan-600); border-color: var(--cyan-600); }
.empty-note { grid-column: 1 / -1; text-align: center; padding: 40px; color: var(--muted); }

/* How it works */
.how-it-works { padding-block: 72px 24px; }
.how-it-works .container > * { max-width: 1296px; }
.how-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.how-head h2 { font-size: 44px; line-height: 1.15; font-weight: 600; color: var(--ink); letter-spacing: -.01em; }
.steps { margin: 36px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; counter-reset: none; }
.step {
  display: flex; gap: 18px; padding: 28px 26px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line-soft);
}
.step-num {
  flex: none; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px;
  background: linear-gradient(135deg, #04254d, #0b3a8a); color: #fff; font-weight: 700; font-size: 16px;
}
.step h3 { font-size: 20px; line-height: 1.3; font-weight: 600; color: var(--ink); }
.step p { margin-top: 6px; font-size: 15.5px; line-height: 1.6; color: var(--muted); }
.flash { animation: flash 1.4s var(--ease); }
@keyframes flash { 0%, 100% { box-shadow: 0 1px 3px rgba(15, 23, 42, .03); } 30% { box-shadow: 0 0 0 4px rgba(6, 182, 212, .35); } }

/* ==========================================================================
   Science page
   ========================================================================== */
.sci-hero {
  position: relative; overflow: hidden; color: #fff; background: #04224e;
}
.sci-hero::before {
  content: ""; position: absolute; inset: 0;
  background: url("../images/neurons-blue.webp") center / cover no-repeat;
  filter: blur(1.5px) saturate(1.1); transform: scale(1.03); opacity: .85;
}
.sci-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(4, 30, 70, .92) 0%, rgba(4, 40, 92, .7) 50%, rgba(5, 52, 110, .45) 100%);
}
.sci-hero .container { position: relative; z-index: 1; min-height: 548px; display: flex; flex-direction: column; justify-content: center; padding-block: 80px; }
.sci-hero h1 { margin-top: 18px; font-size: 64px; line-height: 1.04; font-weight: 600; letter-spacing: -.01em; }
.sci-hero h1 .text-cyan { display: block; }
.sci-hero p { margin-top: 26px; max-width: 540px; font-family: var(--font-alt); font-size: 18px; line-height: 1.55; color: #e2e8f0; }

.tech-row { --cols: 5; display: flex; flex-wrap: wrap; justify-content: center; gap: 32px; text-align: center; }
.tech-item { flex: 0 0 calc((100% - (var(--cols) - 1) * 32px) / var(--cols)); display: flex; flex-direction: column; align-items: center; }
/* Circle that flips in 3D on hover to show a one-line summary */
.tech-circle {
  display: block; width: 100%; max-width: 204px; aspect-ratio: 1; perspective: 900px;
  transition: transform .35s var(--ease);
}
.flip-inner {
  position: relative; display: block; width: 100%; height: 100%;
  transform-style: preserve-3d; transition: transform .8s var(--ease);
}
.face {
  position: absolute; inset: 0; border-radius: 50%; overflow: hidden;
  border: 3px solid var(--cyan); background: #031331;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
  transition: box-shadow .35s;
}
.face img { width: 100%; height: 100%; object-fit: cover; }
.face.back {
  transform: rotateY(180deg);
  display: flex; align-items: center; justify-content: center; padding: 14%;
  background: radial-gradient(circle at 30% 25%, #0b4a8f, #04254d 70%);
  color: #fff; font-size: 14.5px; line-height: 1.45; font-weight: 500; text-align: center;
}
.tech-item:hover .tech-circle { transform: translateY(-6px); }
.tech-item:hover .face { box-shadow: 0 16px 36px rgba(6, 182, 212, .3); }
@media (hover: hover) and (pointer: fine) {
  .tech-item:hover .flip-inner, .tech-item:focus-within .flip-inner { transform: rotateY(180deg); }
}
.tech-item h3 { margin-top: 40px; min-height: 52px; display: flex; align-items: center; justify-content: center; font-size: 19px; line-height: 1.32; font-weight: 500; color: var(--ink); }
.tech-item .explore { margin-top: 10px; display: inline-flex; align-items: center; gap: 4px; font-size: 19px; font-weight: 600; color: var(--cyan); }
.tech-item .explore svg { width: 11px; height: 11px; }
.tech-item .explore:hover { color: var(--cyan-600); }

.natural {
  padding-block: 80px; background: linear-gradient(120deg, #f8fbff 0%, #f3fbfd 50%, #ecfbfe 100%);
}
.natural .container { display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 1fr); gap: 64px; align-items: center; }
.natural .media { border-radius: 26px; overflow: hidden; background: #fff; box-shadow: 0 2px 8px rgba(15, 23, 42, .04); }
.natural .media img { width: 100%; height: auto; }
.natural h2 { margin-top: 14px; font-size: 46px; line-height: 1; font-weight: 600; color: var(--ink); letter-spacing: -.01em; }
.natural p { margin-top: 24px; font-size: 22px; line-height: 1.45; color: var(--muted); }

.banner {
  position: relative; overflow: hidden; color: #fff; background: #062a63;
}
.banner::before {
  content: ""; position: absolute; inset: 0;
  background: url("../images/neurons-dark.webp") center / cover no-repeat; opacity: .8;
}
.banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5, 42, 100, .92), rgba(6, 50, 120, .55)); }
.banner .container { position: relative; z-index: 1; padding-block: 56px 48px; }
.banner h2 { font-size: 40px; line-height: 1.3; font-weight: 600; max-width: 620px; }
.banner h2 .text-cyan { display: block; }
.banner .eyebrow { margin-top: 24px; font-size: 12px; letter-spacing: .26em; }
.banner .logo img { margin-top: 36px; width: 128px; }

/* ==========================================================================
   Science detail + research pages
   ========================================================================== */
.detail-hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(55% 90% at 75% 40%, rgba(11, 84, 160, .55), transparent 70%),
    linear-gradient(110deg, #031331 0%, #04285a 50%, #063a7a 100%);
}
.detail-hero .container { position: relative; min-height: 434px; display: flex; flex-direction: column; justify-content: center; padding-block: 72px; }
.detail-hero h1 { margin-top: 18px; max-width: 1100px; font-size: 64px; line-height: 1.04; font-weight: 600; letter-spacing: -.01em; }
.detail-hero h1 .text-cyan { display: block; }
.detail-hero p:not(.eyebrow) { margin-top: 26px; max-width: 500px; font-family: var(--font-alt); font-size: 18px; line-height: 1.55; color: #e2e8f0; }

.topic-head { padding-block: 100px 48px; text-align: center; }
.topic-intro { padding-block: 84px; background: linear-gradient(120deg, #f8fbff 0%, #f3fbfd 50%, #ecfbfe 100%); }
.topic-intro .container { display: grid; grid-template-columns: minmax(0, 546px) minmax(0, 1fr); gap: 64px; align-items: center; }
.topic-intro .media { aspect-ratio: 546 / 410; border-radius: 18px; overflow: hidden; background: #031331; box-shadow: 0 18px 40px rgba(3, 19, 49, .18); }
.topic-intro .media img { width: 100%; height: 100%; object-fit: cover; }
.topic-intro .lead { font-size: 34px; line-height: 1.13; font-weight: 600; color: var(--muted); letter-spacing: -.005em; }
.topic-body { padding-block: 36px 40px; }
.topic-body .container { max-width: calc(1220px + var(--gutter) * 2); }
.topic-body p { font-size: 30px; line-height: 1.28; font-weight: 400; color: #5b6472; letter-spacing: -.005em; }
.topic-body p + p { margin-top: 38px; }

.areas { padding-block: 72px 56px; text-align: center; }
.area-pills { margin-top: 48px; display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.area-pill {
  display: inline-flex; align-items: center; min-height: 64px; padding: 0 32px;
  border: 1px solid #cbd5e1; border-radius: 999px; background: #fff;
  font-size: 20px; font-weight: 500; color: var(--cyan);
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.area-pill:hover { background: var(--cyan); border-color: var(--cyan); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(6, 182, 212, .25); }
.more-areas { padding-block: 24px 72px; }
.more-areas .area-pills { margin-top: 24px; }
.more-areas .area-pill { min-height: 52px; font-size: 17px; padding: 0 26px; }
.h-sm { font-size: 24px; font-weight: 600; color: var(--ink); }

.suggest { padding-block: 72px 48px; text-align: center; }
.suggest p { max-width: 1140px; margin: 28px auto 0; text-align: left; font-size: 22px; line-height: 1.72; font-weight: 600; color: #6b7280; }

.evidence {
  color: #fff; padding-block: 72px 80px;
  background:
    radial-gradient(60% 120% at 85% 30%, rgba(11, 84, 160, .55), transparent 70%),
    linear-gradient(110deg, #031331 0%, #052b62 55%, #063f84 100%);
}
.evidence .container { max-width: calc(1180px + var(--gutter) * 2); }
.evidence h2 { font-family: var(--font-ui); font-size: 46px; line-height: 1.15; font-weight: 600; letter-spacing: -.01em; }
.table-wrap { margin-top: 26px; overflow-x: auto; }
.evidence table { width: 100%; border-collapse: collapse; font-family: var(--font-ui); }
.evidence thead th { padding: 12px 0 14px; text-align: left; font-size: 22px; font-weight: 600; border-bottom: 2px solid rgba(255, 255, 255, .85); }
.evidence tbody th, .evidence tbody td { padding: 24px 0; vertical-align: top; text-align: left; border-bottom: 2px solid rgba(255, 255, 255, .55); }
.evidence tbody tr:last-child th, .evidence tbody tr:last-child td { border-bottom: 0; }
.evidence th:first-child { width: 31%; padding-right: 32px; }
.evidence tbody th { font-size: 22px; font-weight: 600; line-height: 1.35; }
.evidence tbody td { font-size: 19px; line-height: 1.65; color: #e8eef7; }

.related { padding-block: 64px 24px; text-align: center; }
.study-grid { margin: 52px auto 0; max-width: 920px; display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.study-card {
  flex: 0 1 442px; min-height: 140px; padding: 18px 40px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid #cbd5e1; border-radius: 999px; background: #fff;
  transition: border-color .2s, box-shadow .2s, transform .2s var(--ease);
}
.study-card:hover { border-color: var(--cyan-200); box-shadow: 0 12px 30px rgba(6, 182, 212, .12); transform: translateY(-2px); }
.study-card h3 { font-size: 16.5px; line-height: 1.35; font-weight: 500; color: var(--ink); }
.study-card p { font-size: 13px; line-height: 1.55; color: var(--muted); }
.study-card a { margin-top: 4px; font-size: 16px; font-weight: 500; color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.study-card a:hover { color: var(--cyan-600); }

.findings { padding-block: 72px 80px; text-align: center; }
.findings h2 { font-size: 32px; font-weight: 500; color: var(--ink); }
.findings p { max-width: 1160px; margin: 26px auto 0; font-size: 18px; line-height: 1.7; font-weight: 500; color: var(--ink); }
.findings p + p { margin-top: 6px; }

.crumbs { padding-top: 28px; font-size: 14px; color: var(--muted); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--subtle); }
.crumbs a:hover { color: var(--cyan-600); }
.crumbs [aria-current] { color: var(--ink); font-weight: 500; }

/* ==========================================================================
   Motion
   Every animation below is switched off for visitors who ask for reduced motion.
   ========================================================================== */

/* ---------- Intro: the logo assembles once per visit ----------
   html.has-intro is set in <head> (first page of a session, motion allowed).
   Q pops in at the centre, then glides right while "Syn" slides out from
   behind it to the left; MEDICAL wipes in from S to Q; the overlay fades.
   It runs on CSS alone, so it always clears itself even if JS fails.
   All three layers are the same image, cropped with clip-path:
   Syn = x 0–272, Q = x 272–418, MEDICAL = rows below 131 (of 418 × 172). */
.intro { display: none; }
html.has-intro { --intro: 1.75s; } /* hero entrance waits for the intro */
html.has-intro .intro {
  display: grid; place-items: center;
  position: fixed; inset: 0; z-index: 100;
  background: var(--dark);
  animation: introOut .45s ease 1.75s forwards;
}
html.has-intro .intro.is-skipped { animation: introOut .2s ease forwards; }
.intro-logo { position: relative; width: clamp(200px, 24vw, 280px); aspect-ratio: 418 / 172; }
.intro-logo img { position: absolute; inset: 0; width: 100%; height: 100%; }
.intro-q {
  clip-path: inset(0 0 23.84% 65.07%);
  transform-origin: 82.3% 35%;
  animation: introQ .45s var(--ease) .1s both, introSlideQ .7s cubic-bezier(.65, 0, .25, 1) .5s both;
}
.intro-syn { animation: introSlideSyn .7s cubic-bezier(.65, 0, .25, 1) .5s both; }
.intro-medical { animation: introMedical .5s var(--ease) 1.05s both; }
/* Syn's right clip edge tracks Q's left edge for the whole slide (same timing). */
@keyframes introQ { from { opacity: 0; scale: .55; } to { opacity: 1; scale: 1; } }
@keyframes introSlideQ { from { translate: -32.54% 0; } to { translate: 0 0; } }
@keyframes introSlideSyn {
  from { translate: 32.54% 0; clip-path: inset(0 100% 23.84% 0); }
  to   { translate: 0 0;      clip-path: inset(0 34.93% 23.84% 0); }
}
@keyframes introMedical {
  from { opacity: 0; clip-path: inset(76.16% 100% 0 0); }
  to   { opacity: 1; clip-path: inset(76.16% 0 0 0); }
}
@keyframes introOut { to { opacity: 0; visibility: hidden; } }

/* ---------- Reveal on scroll (only when JS runs, so content never stays hidden) ---------- */
.js .reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--d, 0ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Hero entrance: text arrives line by line ---------- */
.hero-copy > *,
.page-hero .container > div:first-child > *,
.detail-hero .container > *,
.sci-hero .container > * { animation: heroUp .9s var(--ease) var(--intro, 0s) both; }
:is(.hero-copy, .page-hero .container > div:first-child, .detail-hero .container, .sci-hero .container) > :nth-child(1) { animation-delay: calc(var(--intro, 0s) + .08s); }
:is(.hero-copy, .page-hero .container > div:first-child, .detail-hero .container, .sci-hero .container) > :nth-child(2) { animation-delay: calc(var(--intro, 0s) + .2s); }
:is(.hero-copy, .page-hero .container > div:first-child, .detail-hero .container, .sci-hero .container) > :nth-child(3) { animation-delay: calc(var(--intro, 0s) + .38s); }
:is(.hero-copy, .page-hero .container > div:first-child, .detail-hero .container, .sci-hero .container) > :nth-child(4) { animation-delay: calc(var(--intro, 0s) + .52s); }
.care-diagram { animation: fadeIn 1.2s var(--ease) calc(var(--intro, 0s) + .45s) both; }
@keyframes heroUp { from { opacity: 0; translate: 0 28px; } to { opacity: 1; translate: 0 0; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Hero diamonds: pop in, then float and glow ---------- */
.hero-visual .diamond {
  box-shadow: 0 0 0 3px var(--cyan), 0 0 14px rgba(6, 182, 212, .35);
  will-change: translate;
  animation: diamondIn 1.1s var(--ease) both, floatY 7s ease-in-out infinite;
}
/* Glow lives on its own layer and only its opacity animates (cheap for the browser). */
.hero-visual .diamond::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  box-shadow: 0 0 44px 4px rgba(6, 182, 212, .85);
  opacity: .25; will-change: opacity;
  animation: glowPulse 4s ease-in-out infinite alternate;
}
.hero-visual .d-main   { animation-delay: calc(var(--intro, 0s) + .25s), calc(var(--intro, 0s) + 1.4s); }
.hero-visual .d-top    { animation-delay: calc(var(--intro, 0s) + .45s), calc(var(--intro, 0s) + 1.6s); animation-duration: 1.1s, 5.6s; }
.hero-visual .d-bottom { animation-delay: calc(var(--intro, 0s) + .6s), calc(var(--intro, 0s) + 1.9s); animation-duration: 1.1s, 6.4s; }
.hero-visual .d-top::after    { animation-delay: .9s; animation-duration: 4.6s; }
.hero-visual .d-bottom::after { animation-delay: .4s; animation-duration: 3.8s; }
.hero-visual .ring { animation: fadeIn 1.4s var(--ease) calc(var(--intro, 0s) + .8s) both, ringBreathe 6s ease-in-out calc(var(--intro, 0s) + 2s) infinite; }
@keyframes diamondIn { from { opacity: 0; scale: .7; rotate: -18deg; } to { opacity: 1; scale: 1; rotate: 0deg; } }
@keyframes floatY { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes glowPulse { from { opacity: .2; } to { opacity: 1; } }

/* ---------- 3D depth (mouse/trackpad only, set from JS) ---------- */
/* Hero: the diamond group tilts toward the pointer; each tile shifts by its own depth. */
.hero-visual {
  --mx: 0; --my: 0;
  transform: perspective(1200px) rotateY(calc(var(--mx) * 5deg)) rotateX(calc(var(--my) * -5deg));
}
.hero-visual .diamond, .hero-visual .ring {
  transform: translate(calc(var(--mx) * var(--depth, 10) * 1px), calc(var(--my) * var(--depth, 10) * 1px)) rotate(45deg);
}
.hero-visual .ring     { --depth: 5; }
.hero-visual .d-top    { --depth: 9; }
.hero-visual .d-main   { --depth: 15; }
.hero-visual .d-bottom { --depth: 24; }

/* Cards lean gently toward the pointer with a soft cyan sheen */
.why-card, .therapy-card { position: relative; }
:is(.product-card, .support-card, .why-card, .therapy-card).is-tilting {
  transform: perspective(1000px) rotateX(calc(var(--ty) * -3.5deg)) rotateY(calc(var(--tx) * 4.5deg)) translateY(-6px);
  transition: transform .15s ease-out, box-shadow .35s, border-color .35s;
}
.tilt-glare {
  position: absolute; inset: 0; z-index: 2; border-radius: inherit; pointer-events: none;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(103, 232, 249, .16), rgba(103, 232, 249, 0) 48%);
  opacity: 0; transition: opacity .35s;
}
.is-tilting .tilt-glare { opacity: 1; }

/* Pause looping animations while they are off-screen (saves battery/CPU). */
.anim-paused, .anim-paused *, .anim-paused *::after { animation-play-state: paused !important; }

/* ---------- 404 page ---------- */
.not-found {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(60% 80% at 80% 30%, rgba(11, 84, 160, .5), transparent 70%),
    linear-gradient(115deg, var(--navy-800) 0%, #04204a 50%, var(--navy-600) 100%);
}
.not-found .container { position: relative; min-height: 70vh; display: flex; flex-direction: column; justify-content: center; padding-block: 96px; }
.not-found h1 { margin-top: 16px; max-width: 760px; font-size: 56px; line-height: 1.1; font-weight: 600; }
.not-found h1 .text-cyan { display: block; }
.not-found p:not(.eyebrow) { margin-top: 22px; font-size: 18px; color: #e2e8f0; }
.not-found .hero-actions { margin-top: 32px; }
@media (max-width: 760px) { .not-found h1 { font-size: 36px; } }
@keyframes ringBreathe { 0%, 100% { opacity: 1; scale: 1; } 50% { opacity: .55; scale: 1.04; } }
.care-diagram .chip { animation: chipFloat 5s ease-in-out infinite; }
.care-diagram .chip:nth-of-type(2) { animation-delay: -1.7s; }
.care-diagram .chip:nth-of-type(3) { animation-delay: -3.4s; }
@keyframes chipFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }

/* ---------- Hero wave lines: dots drift, light streaks run along the curves ---------- */
.wave-dots { animation: dashFlow 2.4s linear infinite; }
@keyframes dashFlow { to { stroke-dashoffset: -40; } }
.wave-streak {
  fill: none; stroke: #67e8f9; stroke-width: 2; stroke-linecap: round;
  stroke-dasharray: 90 910; stroke-dashoffset: 1000; opacity: 0;
  animation: streak 7s linear infinite;
}
.wave-streak.s2 { animation-duration: 8.5s; animation-delay: 2.4s; }
.wave-streak.s3 { animation-duration: 6.5s; animation-delay: 4.6s; }
@keyframes streak {
  0% { stroke-dashoffset: 1000; opacity: 0; }
  10%, 85% { opacity: .85; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}

/* ---------- "Why Providers" orbit graphic ---------- */
.why-orbit svg * { transform-box: view-box; }
.orbit-spin { transform-origin: 328px 250px; animation: spin 60s linear infinite; }
.orbit-spin.rev { animation-duration: 90s; animation-direction: reverse; }
.orbit-dots { transform-origin: 328px 150px; animation: spin 14s linear infinite; }
.orbit-ripple { fill: none; stroke: #67e8f9; stroke-width: 2; transform-origin: 328px 150px; animation: ripple 3.2s ease-out infinite; }
.orbit-ripple.r2 { animation-delay: 1.6s; }
.orbit-core { transform-origin: 328px 150px; animation: beat 2.6s ease-in-out infinite; }
.orbit-flow { fill: none; stroke: #67e8f9; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 4 14; opacity: .75; animation: dashFlow2 1.4s linear infinite; }
.orbit-node { stroke: #cbd5e1; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; opacity: .5; animation: nodeOn 6s ease-in-out infinite; animation-delay: calc(var(--k) * 1.5s); }
.orbit-node path, .orbit-node .ic { stroke-width: 2; }
.orbit-node .bg { fill: #0b2a6b; fill-opacity: .35; animation: nodeFill 6s ease-in-out infinite; animation-delay: calc(var(--k) * 1.5s); }
@keyframes ripple { from { transform: scale(1); opacity: .7; } to { transform: scale(1.6); opacity: 0; } }
@keyframes beat { 0%, 48%, 100% { transform: scale(1); } 12% { transform: scale(1.08); } 24% { transform: scale(1); } 36% { transform: scale(1.05); } }
@keyframes dashFlow2 { to { stroke-dashoffset: -18; } }
@keyframes nodeOn { 0%, 35%, 100% { opacity: .5; } 12%, 22% { opacity: 1; } }
@keyframes nodeFill { 0%, 35%, 100% { fill: #0b2a6b; stroke: #cbd5e1; } 12%, 22% { fill: #0e7490; stroke: #67e8f9; } }

/* ---------- Diamond pairs: the two tiles slide together ---------- */
main { overflow-x: clip; } /* tiles start off to the side; never create sideways scrolling */
.diamond-pair .diamond { transition: translate 1.1s var(--ease), opacity 1.1s var(--ease); }
.diamond-pair .front { transition-delay: .15s; }
.js :is(.reveal .diamond-pair, .diamond-pair.reveal) .back  { translate: -70px 0; opacity: 0; }
.js :is(.reveal .diamond-pair, .diamond-pair.reveal) .front { translate: 70px 0; opacity: 0; }
.js :is(.is-visible .diamond-pair, .diamond-pair.is-visible) .diamond { translate: 0 0; opacity: 1; }

/* ---------- Page-to-page transition (browsers that support it) ---------- */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .site-header { view-transition-name: site-header; }
  ::view-transition-old(root) { animation: vtOut .22s ease both; }
  ::view-transition-new(root) { animation: vtIn .45s var(--ease) both; }
}
@keyframes vtOut { to { opacity: 0; } }
@keyframes vtIn { from { opacity: 0; translate: 0 14px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  /* keep the tiles' own rotate(45deg); only cancel the slide-in */
  .js .diamond-pair .diamond { opacity: 1; translate: none; transition: none; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .intro { display: none !important; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1280px) {
  :root { --gutter: 48px; }
  .nav-list { gap: 26px; }
  .nav-list li.nav-contact { margin-left: 8px; }
  .hero h1, .page-hero h1, .sci-hero h1 { font-size: 56px; }
  .section-title { font-size: 50px; }
  .split-copy h2, .about-block h2 { font-size: 52px; }
  .about-block .container { grid-template-columns: 380px minmax(0, 1fr); gap: 40px; }
  .about-block h2 { padding-left: 0; }
  .detail-hero h1 { font-size: 56px; }
  .topic-intro .lead { font-size: 28px; }
  .topic-body p { font-size: 26px; }
}

@media (max-width: 1080px) {
  :root { --header-h: 84px; --header-space: 84px; }
  html.is-scrolled { --header-h: 68px; }
  html.is-scrolled .site-header .logo img { width: 100px; }
  .nav-toggle { display: inline-block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; background: var(--dark);
    border-top: 1px solid rgba(255, 255, 255, .08);
    max-height: 0; overflow: hidden; visibility: hidden;
    transition: max-height .35s var(--ease), visibility 0s linear .35s;
  }
  .nav-open .nav {
    max-height: min(640px, calc(100vh - var(--header-h))); overflow-y: auto; visibility: visible;
    box-shadow: 0 20px 40px rgba(0, 0, 0, .35); transition: max-height .35s var(--ease), visibility 0s;
  }
  .nav { flex-direction: column; align-items: stretch; }
  .nav-quick { display: grid; gap: 10px; padding: 0 var(--gutter) 22px; }
  .nav-quick a {
    display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 14px;
    border-radius: var(--radius-sm); background: var(--dark-card); border: 1px solid var(--dark-line);
    color: #fff; font-size: 15px; font-weight: 500;
  }
  .nav-quick .ico { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--cyan); }
  .nav-quick .ico svg { width: 14px; height: 14px; }
  /* Dim the page behind the open menu; tapping it closes the menu */
  .nav-backdrop {
    position: fixed; inset: 0; z-index: 40; background: rgba(2, 13, 31, .45);
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s linear .3s;
  }
  .nav-open .nav-backdrop { opacity: 1; visibility: visible; transition: opacity .3s, visibility 0s; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; width: 100%; padding: 8px var(--gutter) 20px; }
  .care-strip { flex-direction: column; align-items: flex-start; gap: 22px; }
  .nav-list li.nav-contact { margin-left: 0; }
  .nav-link { display: block; padding: 14px 0; font-size: 18px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
  .nav-link::after { right: auto; width: 32px; bottom: 8px; }

  .hero .container, .page-hero .container { grid-template-columns: 1fr; min-height: 0; padding-block: 72px 48px; }
  .hero-visual { max-width: 520px; margin-inline: auto; }
  .care-diagram { margin-inline: auto; }
  .why-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 24px; }
  .beyond .diamond-pair { max-width: 520px; margin-inline: auto; }
  .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .contact-intro .diamond-pair { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; padding-inline: var(--gutter); }
  .footer-brand { grid-column: 1 / -1; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-block .container { grid-template-columns: 1fr; gap: 24px; }
  .tech-row { --cols: 3; row-gap: 56px; }
  .natural .container { grid-template-columns: 1fr; }
  .topic-intro .container { grid-template-columns: 1fr; gap: 36px; }
  .topic-intro .media { max-width: 620px; }
  .product-grid { gap: 28px; }
  .product-card.is-center { width: calc(50% - 14px); }
  .product-card h3 { font-size: 26px; }
  .steps { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  :root { --gutter: 20px; }
  .section { padding-block: 72px; }
  .section-head { margin-bottom: 40px; }
  .section-title, .section-title.md { font-size: 38px; }
  .section-lead { font-size: 17px; }
  .hero h1, .page-hero h1, .sci-hero h1 { font-size: 40px; }
  .hero p.hero-text, .page-hero p { font-size: 16px; margin-top: 24px; }
  .hero-actions .btn { flex: 1 1 200px; }
  .hero-visual { max-width: 400px; }
  .support-grid, .therapy-grid, .product-grid { grid-template-columns: 1fr; }
  .support-card { padding: 36px 24px; }
  .support-card-top { flex-wrap: wrap; }
  .care-strip { flex-direction: column; align-items: stretch; padding: 28px 22px; }
  .care-strip-text { align-items: flex-start; }
  .care-strip-text p { font-size: 17px; }
  .therapy-card { padding: 28px 24px; }
  .why-feature { padding: 36px 26px 0; min-height: 0; }
  .why-feature h3 { font-size: 28px; }
  .why-orbit { min-height: 220px; margin-inline: -26px; }
  .why-card { padding: 32px 26px; }
  .why-card h3 { font-size: 24px; }
  .beyond .diamond-pair { max-width: 360px; }
  .split-copy h2, .about-block h2 { font-size: 40px; }
  .contact-section { padding-block: 72px; }
  .contact-intro :is(h1, h2) { font-size: 38px; }
  .form-card { padding: 28px 20px 32px; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .site-footer { padding-block: 64px; }
  .stats-wrap { padding-inline: var(--gutter); }
  .stats { grid-template-columns: 1fr 1fr; padding: 12px; gap: 10px; }
  .stat { padding: 20px 8px; }
  .stat strong { font-size: 32px; }
  .stat span { font-size: 13px; }
  .page-hero .kicker { font-size: 16px; }
  .care-diagram { width: 74%; margin-block: 24px 8px; }
  .care-diagram .chip { font-size: 12px; padding: 7px 11px; border-width: 1.5px; }
  .page-intro { padding-block: 64px 44px; }
  .page-intro h1 { font-size: 36px; }
  .page-intro p { font-size: 16px; }
  .products-intro { padding-bottom: 20px; }
  .filter-bar { padding-block: 10px; }
  .filter-bar .filter-pills { flex-wrap: nowrap; }
  .filter-bar .filter-pill { flex: none; padding: 0 18px; font-size: 14px; }
  .filter-bar .lbl-long { display: none; }
  .filter-bar .lbl-short { display: inline; }
  .filter-status { font-size: 13px; }
  .product-list { padding-top: 20px; }
  .product-grid { gap: 24px; }
  .product-card.is-center { grid-column: auto; width: auto; }
  .product-card h3 { font-size: 25px; }
  .product-text { font-size: 16px; }
  .product-link { font-size: 17px; }
  .how-head h2 { font-size: 32px; }
  .steps { grid-template-columns: 1fr; gap: 14px; }
  .tech-row { --cols: 2; gap: 40px 20px; }
  .tech-item { flex-basis: calc((100% - 20px) / 2); }
  .tech-item h3 { margin-top: 22px; font-size: 16px; }
  .tech-item .explore { font-size: 16px; }
  .natural h2 { font-size: 34px; }
  .natural p { font-size: 18px; }
  .banner h2 { font-size: 28px; }
  .detail-hero .container { min-height: 0; padding-block: 64px; }
  .detail-hero h1 { font-size: 38px; }
  .detail-hero p:not(.eyebrow) { font-size: 16px; }
  .topic-head { padding-block: 64px 32px; }
  .topic-intro { padding-block: 56px; }
  .topic-intro .lead { font-size: 22px; line-height: 1.3; }
  .topic-body p { font-size: 19px; line-height: 1.55; }
  .topic-body p + p { margin-top: 22px; }
  .area-pills { gap: 12px; margin-top: 32px; }
  .area-pill { min-height: 52px; padding: 0 22px; font-size: 16px; }
  .suggest p { font-size: 17px; }
  .evidence { padding-block: 56px; }
  .evidence h2 { font-size: 32px; }
  .evidence thead { display: none; }
  .evidence tbody tr { display: block; padding: 18px 0; border-bottom: 1px solid rgba(255, 255, 255, .45); }
  .evidence tbody tr:last-child { border-bottom: 0; }
  .evidence tbody th, .evidence tbody td, .evidence th:first-child { display: block; width: auto; padding: 0; border: 0; }
  .evidence tbody th { font-size: 18px; margin-bottom: 6px; }
  .evidence tbody td { font-size: 16px; }
  .study-card { flex-basis: 100%; border-radius: 28px; padding: 22px 24px; }
  .findings h2 { font-size: 26px; }
  .findings p { font-size: 16px; }
}
