:root {
  --navy: #071522;
  --navy-2: #0e2638;
  --blue: #1677a8;
  --cyan: #35b8d8;
  --green: #8ed6a3;
  --white: #f7fafc;
  --clinical: #eef3f5;
  --graphite: #18232c;
  --ink: #12202b;
  --muted: #5b6d7a;
  --line: rgba(14, 38, 56, 0.1);
  --danger: #b42318;
  --font-display: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  --font-body: Inter, "Segoe UI", sans-serif;
  --shadow-soft: 0 18px 40px rgba(7, 21, 34, 0.12), 0 4px 10px rgba(7, 21, 34, 0.06);
  --shadow-lift: 0 24px 48px rgba(7, 21, 34, 0.18), 0 8px 16px rgba(7, 21, 34, 0.08);
  --radius: 22px;
  --header-h: 92px;
  --dock-h: 0px;
}

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

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--navy);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; }
a { color: inherit; }

.sr-only, .skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.skip-link:focus {
  width: auto;
  height: auto;
  margin: 12px;
  padding: 10px 16px;
  clip: auto;
  z-index: 80;
  background: #fff;
  color: var(--navy);
  border-radius: 10px;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient__grid {
  position: absolute;
  inset: -20%;
  background-image:
    linear-gradient(rgba(53, 184, 216, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(53, 184, 216, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 20%, #000 20%, transparent 70%);
  transform: translate3d(0, 0, 0);
}

.ambient__particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

body:not(.page-home):not(.page-conditions):not(.page-procedures) .ambient__grid {
  opacity: 0.35;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 16px 16px 0;
}

.nav-shell { width: min(1240px, 100%); margin: 0 auto; }

.nav-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 12px 10px 14px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(36, 64, 86, 0.96) 0%, rgba(14, 38, 56, 0.96) 42%, rgba(7, 21, 34, 0.98) 100%);
  border: 1px solid rgba(53, 184, 216, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -2px 8px rgba(0, 0, 0, 0.35),
    0 18px 40px rgba(7, 21, 34, 0.45);
  backdrop-filter: blur(10px);
  transition: padding 0.35s ease, border-radius 0.35s ease, box-shadow 0.35s ease;
}

.site-header.is-compact .nav-bar {
  padding: 7px 10px 7px 12px;
  border-radius: 18px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 12px 28px rgba(7, 21, 34, 0.5);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-width: max-content;
}

.brand__mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  overflow: hidden;
  background: radial-gradient(circle at 30% 20%, #1c4a63, #071522);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 6px 14px rgba(0,0,0,0.35);
}

.brand__mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.35);
}

.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__clinic {
  color: #f4fbff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}
.brand__doctor { color: rgba(142, 214, 163, 0.9); font-size: 0.72rem; }

.nav-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex: 1;
}

.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  display: inline-flex;
  padding: 8px 11px;
  color: rgba(247, 250, 252, 0.78);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 500;
  border-radius: 12px;
  transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #fff;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12);
}

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

.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #d7eef6;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.86rem;
  white-space: nowrap;
}

.nav-phone svg { width: 16px; height: 16px; color: var(--cyan); }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(180deg, #1d3a4f, #0b1d2a);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.15), 0 6px 12px rgba(0,0,0,0.3);
}

.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* Buttons */
.btn {
  --btn-raise: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 14px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transform: translateY(0);
  transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.18s ease, filter 0.18s ease;
}

.btn:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}

.btn-primary {
  color: #062033;
  background: linear-gradient(180deg, #b8efc8 0%, #8ed6a3 38%, #5bbf8a 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.7),
    inset 0 -3px 6px rgba(7, 21, 34, 0.18),
    0 var(--btn-raise) 0 #2f7a55,
    0 12px 22px rgba(46, 140, 96, 0.28);
}

.btn-cyan {
  color: #062033;
  background: linear-gradient(180deg, #8ee7f4 0%, #35b8d8 42%, #1677a8 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.55),
    inset 0 -3px 6px rgba(7, 21, 34, 0.2),
    0 var(--btn-raise) 0 #0d5f82,
    0 12px 22px rgba(22, 119, 168, 0.32);
}

.btn-ghost {
  color: #e8f7fb;
  background: linear-gradient(180deg, rgba(28, 58, 78, 0.9), rgba(10, 26, 38, 0.9));
  border: 1px solid rgba(53, 184, 216, 0.28);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 8px 18px rgba(0,0,0,0.25);
}

.btn:hover { transform: translateY(-2px); }
.btn:active,
.btn.is-pressed {
  transform: translateY(4px);
  box-shadow:
    inset 0 3px 8px rgba(7, 21, 34, 0.28),
    0 1px 0 rgba(255,255,255,0.2);
}

.btn-sm { min-height: 42px; padding: 0 16px; font-size: 0.88rem; }
.btn-nav { min-height: 42px; padding: 0 16px; font-size: 0.84rem; --btn-raise: 4px; }

/* Typography */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cyan);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.display {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.98;
  margin: 10px 0 16px;
}

.display-xl { font-size: clamp(2.6rem, 6vw, 5.4rem); color: #fff; }
.display-lg { font-size: clamp(2.1rem, 4vw, 3.4rem); }
.lede { font-size: 1.08rem; color: rgba(238, 243, 245, 0.78); max-width: 38ch; }

.section {
  position: relative;
  z-index: 1;
  padding: 84px 0;
}

.section-light {
  background:
    linear-gradient(180deg, #f7fafc 0%, #eef3f5 100%);
  color: var(--ink);
}

.section-navy {
  background: radial-gradient(1200px 500px at 80% 20%, rgba(22, 119, 168, 0.18), transparent 50%), var(--navy);
  color: #eef6fa;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: -0.03em;
  margin: 8px 0 12px;
}

.muted { color: var(--muted); }

/* Cards */
.card {
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff 0%, #eef3f5 100%);
  border: 1px solid rgba(255,255,255,0.8);
  box-shadow:
    inset 0 1px 0 #fff,
    inset 0 -3px 8px rgba(7, 21, 34, 0.05),
    var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  transform-style: preserve-3d;
}

.card:hover,
.card.is-hot {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lift);
}

.metal-card {
  background:
    linear-gradient(180deg, #2a455c 0%, #132433 55%, #0b1a26 100%);
  color: #eaf6fb;
  border: 1px solid rgba(53, 184, 216, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.16),
    inset 0 -8px 16px rgba(0,0,0,0.28),
    0 16px 32px rgba(7, 21, 34, 0.28);
}

.icon-well {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #f5fbff, #d7e7ef);
  box-shadow:
    inset 0 1px 0 #fff,
    inset 0 -4px 8px rgba(7,21,34,0.08),
    0 8px 16px rgba(7,21,34,0.1);
}

.icon-well svg { color: var(--blue); width: 26px; height: 26px; }

/* Hero */
.hero {
  position: relative;
  min-height: min(92vh, 920px);
  padding: 28px 0 80px;
  overflow: hidden;
  z-index: 1;
}

.hero__inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
  align-items: center;
}

.hero__copy { position: relative; z-index: 2; }
.hero__copy .lede { margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-stage {
  position: relative;
  min-height: 560px;
  display: grid;
  place-items: center;
}

.pedestal {
  position: absolute;
  bottom: 18px;
  width: min(420px, 90%);
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(53,184,216,0.45), rgba(7,21,34,0) 68%);
  box-shadow: 0 0 80px rgba(53,184,216,0.28);
}

.pedestal::before,
.pedestal::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  border: 1px solid rgba(53, 184, 216, 0.28);
}

.pedestal::before { width: 78%; height: 34px; top: 18px; }
.pedestal::after { width: 58%; height: 22px; top: 36px; border-color: rgba(142, 214, 163, 0.35); }

.lung-wrap {
  position: relative;
  width: min(560px, 100%);
  animation: breathe 4.6s ease-in-out infinite;
  filter: drop-shadow(0 30px 50px rgba(22, 119, 168, 0.35));
  z-index: 1;
}

.lung-wrap img {
  width: 100%;
  mix-blend-mode: screen;
}

.lung-glow {
  position: absolute;
  inset: 12% 18%;
  background: radial-gradient(circle, rgba(53,184,216,0.28), transparent 70%);
  filter: blur(18px);
  z-index: -1;
  animation: pulse-glow 4.6s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-10px) scale(1.045); }
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

.waveform {
  margin-top: 28px;
  height: 42px;
  width: min(320px, 100%);
  color: var(--cyan);
}

.waveform path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 280;
  animation: wave 4s linear infinite;
}

@keyframes wave {
  to { stroke-dashoffset: -560; }
}

/* Trust */
.trust {
  margin-top: -48px;
  position: relative;
  z-index: 3;
  padding-bottom: 40px;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.trust-card {
  padding: 22px;
}

.trust-card h3 {
  font-family: var(--font-display);
  margin: 14px 0 6px;
  font-size: 1.05rem;
}

.trust-card p { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* About preview / desk */
.desk-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
}

.desk-scene {
  position: relative;
  min-height: 460px;
  border-radius: 32px;
  background:
    linear-gradient(180deg, #1a3348 0%, #0e2638 40%, #6b4a36 40.2%, #8a6246 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), var(--shadow-lift);
  overflow: hidden;
}

.desk-scene::after {
  content: "";
  position: absolute;
  inset: 40% 0 0;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.04) 0 2px, transparent 2px 18px),
    linear-gradient(180deg, rgba(0,0,0,0.18), transparent 30%);
  pointer-events: none;
}

.portrait-plate {
  position: absolute;
  top: 28px;
  left: 28px;
  width: 46%;
  aspect-ratio: 4/5;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(180deg, #2c5168, #102433);
  box-shadow: 0 18px 32px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.2);
  border: 6px solid #d9e4ea;
}

.portrait-plate img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.portrait-fallback {
  height: 100%;
  display: grid;
  place-items: center;
  color: #d5eaf2;
  text-align: center;
  padding: 16px;
  font-size: 0.85rem;
}

.id-badge {
  position: absolute;
  top: 46px;
  right: 24px;
  width: 180px;
  padding: 14px;
  border-radius: 16px;
  z-index: 2;
}

.id-badge strong { display: block; font-size: 0.92rem; }
.id-badge span { color: var(--muted); font-size: 0.75rem; }

.nameplate {
  position: absolute;
  left: 28px;
  bottom: 92px;
  padding: 10px 18px;
  border-radius: 8px;
  background: linear-gradient(180deg, #c5d0d6, #8d9aa3);
  color: #1b242b;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 8px 16px rgba(0,0,0,0.25);
}

.desk-props {
  position: absolute;
  right: 18px;
  bottom: 28px;
  display: flex;
  gap: 10px;
  align-items: end;
}

.prop {
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.25);
}

.prop-folder {
  width: 92px;
  height: 70px;
  background: linear-gradient(180deg, #5c3b2a, #3a2419);
}

.prop-lung {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  background: #071522;
}

.prop-lung img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: screen; }

.stetho {
  position: absolute;
  left: 38%;
  bottom: 18px;
  width: 160px;
  height: 90px;
  color: #1a1f24;
}

/* Conditions row */
.condition-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.condition-card {
  padding: 22px 18px 18px;
  text-decoration: none;
  color: inherit;
  display: block;
}

.orb {
  width: 72px;
  height: 72px;
  margin-bottom: 14px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 25%, #ffffff, #d5e7f0 42%, #9ec3d4 100%);
  box-shadow:
    inset 0 2px 0 #fff,
    inset 0 -8px 12px rgba(22, 119, 168, 0.2),
    0 10px 18px rgba(7, 21, 34, 0.12);
  color: var(--blue);
}

.condition-card h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.condition-card p { margin: 0; color: var(--muted); font-size: 0.9rem; }

/* Instrument scroller */
.instrument-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 1fr);
  gap: 16px;
  overflow-x: auto;
  padding: 8px 4px 20px;
  scroll-snap-type: x mandatory;
}

.instrument-card {
  scroll-snap-align: start;
  padding: 18px;
  text-decoration: none;
  color: inherit;
  min-height: 220px;
}

.device {
  height: 92px;
  margin-bottom: 12px;
  display: grid;
  place-items: center;
}

/* Final CTA */
.final-cta {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 100px 0;
}

.final-cta .lung-bg {
  position: absolute;
  inset: auto 50% -40px auto;
  transform: translateX(20%);
  width: min(620px, 80vw);
  opacity: 0.35;
  mix-blend-mode: screen;
  pointer-events: none;
}

.final-cta .display { color: #fff; }
.phone-xl {
  display: inline-block;
  margin-top: 18px;
  color: var(--green);
  font-size: 1.4rem;
  font-weight: 800;
  text-decoration: none;
  font-family: var(--font-display);
}

/* Inner heroes */
.page-hero {
  padding: 56px 0 36px;
  position: relative;
  z-index: 1;
}

.page-hero .display { color: #fff; }
.page-hero .lede { color: rgba(238,243,245,0.76); }

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 32px;
  align-items: start;
}

.portrait-plate img,
.profile-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.profile-frame {
  border-radius: 28px;
  overflow: hidden;
  min-height: 420px;
  padding: 0;
  background: linear-gradient(180deg, #dce7ee, #b9c9d4);
  box-shadow: var(--shadow-lift), inset 0 1px 0 #fff;
  border: 10px solid #eef3f5;
}

.value-list { display: grid; gap: 12px; }
.value-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px;
}

.timeline {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.plaque {
  padding: 18px 20px;
  background: linear-gradient(180deg, #d7dee3, #b7c2ca);
  color: #1c2a33;
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 10px 20px rgba(7,21,34,0.12);
}

.plaque strong { font-family: var(--font-display); display: block; }

/* Conditions page */
.condition-detail {
  display: grid;
  gap: 18px;
}

.condition-block {
  padding: 28px;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 24px;
}

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(180deg, #fff, #e6eef2);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.84rem;
  box-shadow: inset 0 1px 0 #fff, 0 4px 8px rgba(7,21,34,0.06);
}

.chip svg { width: 16px; height: 16px; color: var(--blue); }

.disclaimer {
  margin-top: 28px;
  padding: 16px 18px;
  border-radius: 16px;
  background: #fff;
  color: var(--muted);
  font-size: 0.9rem;
  box-shadow: var(--shadow-soft);
}

/* Procedures */
.procedure-list { display: grid; gap: 18px; }
.procedure-card { padding: 26px; }
.procedure-card h2 {
  font-family: var(--font-display);
  margin-top: 0;
}

.faq-mini { margin: 0; padding-left: 18px; color: var(--muted); }

.lab-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
}

.spirometer-3d {
  height: 280px;
  border-radius: 28px;
  position: relative;
  overflow: hidden;
}

.spirometer-body {
  position: absolute;
  inset: 40px 50px auto;
  height: 120px;
  border-radius: 28px;
  background: linear-gradient(180deg, #eef6f8, #c5d5de);
  box-shadow: inset 0 1px 0 #fff, 0 20px 30px rgba(0,0,0,0.25);
}

.spirometer-screen {
  position: absolute;
  left: 24px;
  top: 18px;
  width: 46%;
  height: 64px;
  border-radius: 12px;
  background: #071522;
  box-shadow: inset 0 0 20px rgba(53,184,216,0.35);
}

.spirometer-tube {
  position: absolute;
  right: 36px;
  top: 28px;
  width: 90px;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, #9aa7b0, #4d5b64);
}

.oximeter {
  width: 88px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(180deg, #2a2f36, #111418);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 8px 16px rgba(0,0,0,0.3);
  display: grid;
  place-items: center;
  color: #8ed6a3;
  font-family: var(--font-display);
  font-weight: 800;
}

/* Journey */
.o2-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.o2-bubble {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.68rem;
  font-weight: 800;
  color: #e7fbff;
  background: radial-gradient(circle at 30% 28%, rgba(255,255,255,0.4), rgba(53,184,216,0.12) 70%);
  border: 1px solid rgba(142, 214, 163, 0.35);
  box-shadow: 0 8px 18px rgba(7, 21, 34, 0.25), inset 0 1px 0 rgba(255,255,255,0.4);
  animation: float-o2 6.5s ease-in-out infinite;
  animation-delay: var(--d);
}

@keyframes float-o2 {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-16px) scale(1.05); }
}

.lung-guide {
  position: sticky;
  top: 110px;
  display: grid;
  place-items: center;
}

.lung-guide img {
  width: min(420px, 100%);
  mix-blend-mode: screen;
  transition: filter 0.6s ease, transform 0.6s ease;
}

.lung-guide[data-mode="upper-airway"] img { filter: drop-shadow(0 -24px 28px rgba(53,184,216,0.65)); transform: translateY(-8px); }
.lung-guide[data-mode="airway"] img { filter: drop-shadow(0 0 24px rgba(53,184,216,0.7)); }
.lung-guide[data-mode="lower-lobes"] img { filter: drop-shadow(0 28px 28px rgba(142,214,163,0.45)); transform: translateY(8px); }
.lung-guide[data-mode="foci"] img { filter: drop-shadow(12px 18px 22px rgba(216,120,80,0.45)); }
.lung-guide[data-mode="whole-lung"] img { filter: drop-shadow(0 0 26px rgba(53,184,216,0.5)); }

.featured-journal {
  margin-bottom: 22px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
}

.icon-well svg,
.orb svg,
.nav-phone svg,
.mobile-dock svg,
.btn svg,
.acc svg,
.brand svg {
  width: 22px;
  height: 22px;
}

.orb svg { width: 28px; height: 28px; }

.journey-board {
  display: grid;
  grid-template-columns: repeat(6, minmax(180px, 1fr));
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
  transform: translateX(var(--journey-shift, 0));
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.journey-step {
  min-width: 180px;
  padding: 18px 16px 20px;
  scroll-snap-align: start;
}

.step-index {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 800;
}

.object-slot {
  height: 86px;
  margin: 12px 0;
  display: grid;
  place-items: center;
}

.obj-card, .obj-folder, .obj-calendar, .obj-plan {
  width: 78px;
  height: 54px;
  border-radius: 8px;
}

.obj-card { background: linear-gradient(180deg, #fff, #d5e4ec); box-shadow: var(--shadow-soft); }
.obj-folder { background: linear-gradient(180deg, #c9854a, #8a4e24); }
.obj-calendar { background: linear-gradient(180deg, #fff, #e7eef2); border-top: 8px solid #1677a8; }
.obj-plan { background: linear-gradient(180deg, #eaf8ef, #b7e0c5); }

/* Forms */
.appoint-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
}

.form-card { padding: 28px; }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field-hint {
  color: var(--muted);
  font-size: 0.8rem;
}
.field-full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 0.88rem; }

.field input,
.field select,
.field textarea {
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(14, 38, 56, 0.12);
  background: linear-gradient(180deg, #ffffff, #f2f6f8);
  box-shadow: inset 0 2px 5px rgba(7,21,34,0.06), 0 1px 0 #fff;
}

.field textarea { min-height: 120px; resize: vertical; }

.form-alert {
  padding: 12px 14px;
  border-radius: 12px;
  margin-bottom: 14px;
}

.form-alert.ok { background: #e8f7ee; color: #14532d; }
.form-alert.err { background: #fdecea; color: #7a1c14; }

.contact-side { padding: 24px; }
.hours-list { list-style: none; padding: 0; color: var(--muted); }

.map-panel {
  padding: 22px;
}

.map-embed {
  margin-top: 12px;
  overflow: hidden;
  border-radius: 18px;
  background: #dfe8dc;
  box-shadow: inset 0 1px 0 #fff, 0 10px 24px rgba(7, 21, 34, 0.12);
  border: 1px solid rgba(255,255,255,0.7);
}

.map-embed iframe {
  display: block;
  width: 100%;
  height: 320px;
  border: 0;
}

.map-embed--compact iframe { height: 240px; }

.map-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 0;
}

.contact-note { margin-top: 18px; display: grid; gap: 10px; }

.inbox-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.inbox-list { display: grid; gap: 14px; }
.inbox-item { padding: 20px; }
.inbox-item header {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}
.inbox-status {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
}
.inbox-status select {
  min-height: 42px;
  border-radius: 12px;
  padding: 0 10px;
  border: 1px solid rgba(14, 38, 56, 0.12);
}

.map-card {
  margin-top: 18px;
  padding: 22px;
  min-height: 180px;
  background:
    repeating-linear-gradient(0deg, #d7e1d4 0 12px, #e7eee4 12px 24px),
    #dfe8dc;
  position: relative;
}

.map-pin {
  width: 28px;
  height: 28px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: #c2410c;
  position: absolute;
  left: 46%;
  top: 38%;
  box-shadow: 0 8px 16px rgba(0,0,0,0.25);
}

/* Blog */
.journal-hero {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  align-items: center;
}

.book {
  height: 280px;
  border-radius: 18px;
  background: linear-gradient(90deg, #d7c4a8 0 18px, #f6f1e6 18px);
  box-shadow: var(--shadow-lift);
  position: relative;
  overflow: hidden;
}

.book img {
  position: absolute;
  right: -10%;
  top: 8%;
  width: 70%;
  mix-blend-mode: multiply;
  opacity: 0.9;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.journal-card {
  padding: 0;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.journal-card header,
.journal-card .body {
  padding: 18px;
}

.journal-card header {
  background: linear-gradient(180deg, #123044, #0b1d2a);
  color: #eef7fb;
}

.article-body {
  max-width: 72ch;
}

.article-body p { font-size: 1.05rem; }

/* FAQ */
.faq-layout { display: grid; gap: 22px; }
.faq-group h2 { font-family: var(--font-display); font-size: 1.2rem; }

.acc {
  width: 100%;
  text-align: left;
  padding: 16px 18px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff, #eef3f5);
  box-shadow: inset 0 1px 0 #fff, var(--shadow-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
}

.acc[aria-expanded="true"] {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.acc-panel {
  display: none;
  padding: 4px 8px 16px 8px;
  color: var(--muted);
}

.acc-panel.is-open { display: block; }

/* Contact */
.contact-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.reception {
  min-height: 320px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, #9bb7c7 0 46%, #c5b09a 46%);
  box-shadow: var(--shadow-lift);
  position: relative;
  overflow: hidden;
}

.reception::before {
  content: "";
  position: absolute;
  left: 12%;
  top: 18%;
  width: 36%;
  height: 28%;
  background: linear-gradient(180deg, #eef6fa, #9db4c2);
  border-radius: 8px;
  box-shadow: 0 12px 24px rgba(0,0,0,0.2);
}

.reception::after {
  content: "";
  position: absolute;
  right: 14%;
  bottom: 18%;
  width: 48%;
  height: 22%;
  background: linear-gradient(180deg, #5a4638, #3a2c24);
  border-radius: 8px 8px 0 0;
}

/* Footer */
.site-footer { position: relative; z-index: 1; padding-bottom: calc(18px + var(--dock-h)); }
.footer-metal {
  background:
    linear-gradient(180deg, #102433 0%, #071522 100%);
  color: #d5e6ee;
  padding: 48px 0 24px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.8fr 1fr;
  gap: 24px;
}

.footer-heading {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
}

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links a { color: #d5e6ee; text-decoration: none; display: inline-block; padding: 4px 0; }
.footer-links a:hover { color: #fff; }
.footer-phone { color: var(--green); font-size: 1.2rem; font-weight: 800; text-decoration: none; }
.footer-legal { margin-top: 28px; font-size: 0.82rem; color: #8aa0ad; border-top: 1px solid rgba(255,255,255,0.08); padding-top: 16px; text-align: center; }
.footer-copy { margin-bottom: 0; }
.footer-credit {
  width: min(1180px, calc(100% - 40px));
  margin: 18px auto 0;
  padding: 18px 20px 20px;
  text-align: center;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(28, 58, 78, 0.55), rgba(7, 21, 34, 0.7));
  border: 1px solid rgba(53, 184, 216, 0.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}
.footer-credit__label {
  margin: 0 0 6px;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
}
.footer-credit__brand {
  display: inline-block;
  color: #f4fbff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  text-decoration: none;
  letter-spacing: -0.02em;
}
.footer-credit__brand:hover { color: #fff; }
.footer-credit__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
}
.footer-credit__links a {
  color: #d7eef6;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  border: 1px solid rgba(53, 184, 216, 0.22);
}
.footer-credit__links a:hover {
  color: #071522;
  background: linear-gradient(180deg, #8ee7f4, #35b8d8);
  border-color: transparent;
}
.brand--footer .brand__clinic { font-size: 1rem; }

/* Mobile dock */
.mobile-dock {
  display: none;
}

.cursor-glow {
  position: fixed;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 50;
  background: radial-gradient(circle, rgba(53,184,216,0.16), transparent 70%);
  transform: translate(-50%, -50%);
  mix-blend-mode: screen;
}

/* Reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  animation: none;
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lung-wrap, .lung-glow, .waveform path, .o2-bubble { animation: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .btn, .card, .journey-board { transition: none; }
}

/* Responsive */
@media (max-width: 1080px) {
  .hero__inner,
  .desk-layout,
  .split,
  .lab-hero,
  .appoint-layout,
  .journal-hero,
  .contact-hero-grid,
  .condition-block { grid-template-columns: 1fr; }
  .trust-grid, .condition-row { grid-template-columns: repeat(2, 1fr); }
  .blog-grid, .featured-journal { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .lung-guide { position: relative; top: 0; margin-bottom: 18px; }
  .nav-links { display: none; }
}

@media (max-width: 860px) {
  :root { --dock-h: 84px; }
  .site-header { padding: 10px 10px 0; }
  .nav-toggle { display: grid; place-items: center; }
  .nav-panel {
    display: none;
    position: absolute;
    left: 10px;
    right: 10px;
    top: 74px;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border-radius: 18px;
    background: linear-gradient(180deg, #163044, #071522);
    box-shadow: var(--shadow-lift);
  }
  .nav-panel.is-open { display: flex; }
  .nav-links { display: grid; gap: 4px; }
  .nav-actions { flex-direction: column; align-items: stretch; }
  .hero { min-height: auto; padding-bottom: 40px; }
  .hero-stage { min-height: 360px; }
  .form-grid { grid-template-columns: 1fr; }
  .blog-grid, .featured-journal, .trust-grid, .condition-row { grid-template-columns: 1fr; }
  .mobile-dock {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 45;
    padding: 8px;
    border-radius: 22px;
    background: linear-gradient(180deg, #1b364a, #071522);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 12px 30px rgba(0,0,0,0.4);
  }
  .mobile-dock a {
    color: #cfe3ec;
    text-decoration: none;
    display: grid;
    justify-items: center;
    gap: 2px;
    font-size: 0.68rem;
    padding: 6px 0;
    border-radius: 14px;
  }
  .mobile-dock a.is-active,
  .dock-cta {
    color: #071522;
    background: linear-gradient(180deg, #b8efc8, #8ed6a3);
  }
  .mobile-dock svg { width: 18px; height: 18px; }
  body { padding-bottom: var(--dock-h); }
  .o2-field, .cursor-glow { display: none !important; }
}

@media (max-width: 640px) {
  .display-xl { font-size: 2.4rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .portrait-plate { width: 58%; }
  .id-badge { width: 140px; right: 12px; }
}

.page-home .section-light,
.page-about main,
.page-conditions .section-light,
.page-procedures .section-light,
.page-patient-journey .section-light,
.page-appointment .section-light,
.page-blog .section-light,
.page-faq .section-light,
.page-contact .section-light {
  color: var(--ink);
}

.page-about .page-hero,
.page-conditions .page-hero,
.page-procedures .page-hero,
.page-patient-journey .page-hero,
.page-appointment .page-hero,
.page-blog .page-hero,
.page-faq .page-hero,
.page-contact .page-hero,
.page-404 .page-hero {
  background: radial-gradient(900px 400px at 80% 0%, rgba(53,184,216,0.16), transparent 50%), var(--navy);
}
