/*
  VITAL CHECK — Stylesheet
  Design system: DESIGN-apple.md (Apple-design-analysis)
  Principles enforced here:
    · Exactly ONE shadow in the system — product render resting on a surface.
    · No designed hover states — Default + Active(pressed)/Focus only.
    · Single accent — Action Blue (#0066cc); Sky Link Blue on dark tiles.
    · Weight ladder 300 / 400 / 600 / 700 — weight 500 deliberately absent.
    · Full-bleed tiles alternate light/parchment ↔ near-black; color is the divider.
*/

/* ============================================================
   Design tokens
   ============================================================ */
:root {
  /* Brand & interactive — the single accent */
  --c-primary: #0066cc;
  --c-primary-focus: #0071e3;
  --c-primary-on-dark: #2997ff;
  --c-cta: #0066cc; /* primary button fill — kept deep enough for white-text AA */

  /* Ink & body */
  --c-ink: #1d1d1f;
  --c-on-dark: #ffffff;
  --c-body-muted: #cccccc;
  --c-ink-80: #333333;
  --c-ink-48: #6e6e6e; /* darkened from #7a7a7a → passes WCAG AA on parchment/white */

  /* Surfaces */
  --c-canvas: #ffffff;
  --c-parchment: #f5f5f7;
  --c-pearl: #fafafc;
  --c-surface-card: #ffffff;   /* elevated card / product render */
  --c-surface-inset: #f5f5f7;  /* inset wells: ecg, vitals, chips, shot bg */
  --c-glass-bg: rgba(245, 245, 247, 0.8); /* frosted nav & sticky bar */
  --c-tile-1: #272729;
  --c-tile-2: #2a2a2c;
  --c-tile-3: #252527;
  --c-black: #000000;

  /* Hairlines */
  --c-divider: rgba(0, 0, 0, 0.04);
  --c-hairline: #e0e0e0;
  --c-hairline-dark: rgba(255, 255, 255, 0.10);

  /* Brand navy — logo wordmark only, never an interactive color */
  --c-brand-navy: #0c2152;
  /* Type families — system-ui first → real SF Pro on Apple; Inter elsewhere */
  --font-display: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", sans-serif;
  --font-text: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", sans-serif;

  /* Radii */
  --r-xs: 5px;
  --r-sm: 8px;
  --r-md: 11px;
  --r-lg: 18px;
  --r-pill: 9999px;

  /* Spacing (8px base) */
  --s-xxs: 4px;
  --s-xs: 8px;
  --s-sm: 12px;
  --s-md: 17px;
  --s-lg: 24px;
  --s-xl: 32px;
  --s-xxl: 48px;
  --s-section: 80px;

  /* The ONLY shadow — product imagery resting on a surface */
  --shadow-product: 3px 5px 30px 0 rgba(0, 0, 0, 0.22);

  /* Frosted glass */
  --glass: saturate(180%) blur(20px);

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================================
   Dark theme — flips semantic tokens only. The token-driven
   components inherit it automatically. Apple dark: true-black
   canvas, off-black alternating tiles, elevated card surfaces,
   Sky-Blue (#2997ff) as the single interactive accent.
   ============================================================ */
:root[data-theme="dark"] {
  --c-primary: #2997ff;
  --c-primary-focus: #2997ff;
  --c-primary-on-dark: #2997ff;
  --c-on-primary: #ffffff;

  --c-ink: #f5f5f7;
  --c-on-dark: #f5f5f7;
  --c-body-muted: rgba(235, 235, 240, 0.62);
  --c-ink-80: #d2d2d7;
  --c-ink-48: #98989d; /* AA on inset wells (#2c2c2e) */
  --c-cta: #0071e3;    /* deeper than #2997ff so white pill text passes AA */

  --c-canvas: #000000;
  --c-parchment: #161617;
  --c-pearl: #1c1c1e;
  --c-surface-card: #1c1c1e;
  --c-surface-inset: #2c2c2e;
  --c-glass-bg: rgba(22, 22, 23, 0.72);
  --c-tile-1: #000000;
  --c-tile-2: #000000;
  --c-tile-3: #1c1c1e;

  --c-divider: rgba(255, 255, 255, 0.10);
  --c-hairline: rgba(255, 255, 255, 0.16);
  --c-hairline-dark: rgba(255, 255, 255, 0.12);

  --shadow-product: 0 14px 50px rgba(0, 0, 0, 0.6);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.374px;
  color: var(--c-ink);
  background: var(--c-canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  /* Korean: break at word boundaries, not mid-word */
  word-break: keep-all;
  overflow-wrap: break-word;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--c-primary); text-decoration: none; }

/* Focus is a documented state (a11y). Hover is not. */
:focus:not(:focus-visible) { outline: none; }
:focus-visible {
  outline: 2px solid var(--c-primary-focus);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

.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 becomes visible when focused (keyboard) */
.sr-only:focus {
  position: fixed; top: 8px; left: 8px;
  width: auto; height: auto;
  margin: 0; padding: 10px 18px; overflow: visible;
  clip: auto; white-space: normal; z-index: 1100;
  background: var(--c-primary); color: var(--c-on-dark);
  border-radius: var(--r-pill);
}

/* ============================================================
   Layout primitives
   ============================================================ */
.container {
  width: 100%;
  max-width: 1024px;
  margin-inline: auto;
  padding-inline: var(--s-lg);
}
.container--wide { max-width: 1100px; }

/* ============================================================
   Global navigation — ultra-thin true-black bar
   ============================================================ */
.global-nav {
  position: sticky; /* spec: global nav is "pinned to the top of every page" */
  top: 0;
  z-index: 1001;
  height: 76px;
  background: var(--c-black);
  display: flex;
  align-items: center;
}
.global-nav__inner {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: var(--s-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.global-nav__logo { display: inline-flex; align-items: center; }
.global-nav__logo img {
  height: 28px; width: auto;
  /* navy-on-transparent wordmark → pure white on the black bar */
  filter: brightness(0) invert(1);
}
.global-nav__links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.global-nav__links a {
  color: var(--c-on-dark);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1;
  letter-spacing: -0.16px;
  opacity: 0.86;
}

/* ============================================================
   Sub-nav — frosted glass, sticky
   ============================================================ */
.sub-nav {
  position: sticky;
  top: 76px; /* stacks below the pinned global nav */
  z-index: 999;
  height: 52px;
  background: var(--c-glass-bg);
  -webkit-backdrop-filter: var(--glass);
  backdrop-filter: var(--glass);
  border-bottom: 1px solid var(--c-hairline);
  display: flex;
  align-items: center;
}
.sub-nav__inner {
  width: 100%;
  max-width: 1024px;
  margin-inline: auto;
  padding-inline: var(--s-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sub-nav__title {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.231px;
  color: var(--c-ink);
}
.sub-nav__right { display: flex; align-items: center; gap: var(--s-lg); }
.sub-nav__right a:not(.btn) {
  font-family: var(--font-text);
  font-size: 14px;
  letter-spacing: -0.224px;
  color: var(--c-ink-80);
}

/* ============================================================
   Buttons & links — pill CTA + ghost pill + chevron text link
   Default + Active(pressed) + Focus only. No hover.
   ============================================================ */
.btn {
  --btn-bg: var(--c-cta);
  --btn-fg: #ffffff; /* white pill text in both themes */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-text);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -0.374px;
  line-height: 1;
  padding: 11px 22px;
  border: none;
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  cursor: pointer;
  transition: transform 0.1s var(--ease);
}
.btn:active { transform: scale(0.95); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--c-primary);
  border: 1px solid var(--c-primary);
}

.btn--small { font-size: 14px; padding: 7px 16px; letter-spacing: -0.224px; }

/* Chevron text link */
.link-cta {
  display: inline-flex;
  align-items: baseline;
  font-size: 17px;
  letter-spacing: -0.374px;
  color: var(--c-primary);
  cursor: pointer;
  transition: transform 0.1s var(--ease);
}
.link-cta::after { content: "\00A0›"; }
.link-cta:active { transform: scale(0.95); }
.tile--dark .link-cta,
.tile--dark .link-cta:link,
.tile--dark-2 .link-cta,
.tile--dark-2 .link-cta:link { color: var(--c-primary-on-dark); }

/* ============================================================
   Product tiles — full-bleed, edge-to-edge, color is the divider
   ============================================================ */
.tile {
  width: 100%;
  /* Uniform section size — every tile is at least this tall, with content
     vertically centered, so short and long sections share one rhythm.
     Content-heavier tiles grow past it; min-height keeps the floor equal. */
  min-height: 760px;
  padding-block: clamp(48px, 6vw, 80px);
  text-align: center;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  scroll-margin-top: 128px; /* clear the pinned global nav (76) + sub-nav (52) */
}
.tile--light { background: var(--c-canvas); color: var(--c-ink); }
.tile--parchment { background: var(--c-parchment); color: var(--c-ink); }
.tile--dark { background: var(--c-tile-1); color: var(--c-on-dark); }
.tile--dark-2 { background: var(--c-tile-2); color: var(--c-on-dark); }

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

/* Eyebrow — caption-strong in the accent, sentence case (no uppercase tracking) */
.eyebrow {
  font-family: var(--font-text);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.224px;
  color: var(--c-primary);
  margin-bottom: var(--s-sm);
}
.tile--dark .eyebrow,
.tile--dark-2 .eyebrow { color: var(--c-primary-on-dark); }

/* Headlines — Apple-tight tracking */
.headline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(30px, 4.4vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.012em;
  max-width: 16ch;
  font-feature-settings: "ss03";
  text-wrap: balance; /* even line lengths, no lone-word last line */
}
.headline--hero {
  font-size: clamp(34px, 6.2vw, 56px);
  line-height: 1.07;
  letter-spacing: -0.015em;
  max-width: 18ch;
}

/* Sub-copy — lead size, regular weight */
.subcopy {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.4vw, 24px);
  font-weight: 400;
  line-height: 1.34;
  letter-spacing: 0;
  color: var(--c-ink-80);
  max-width: 46ch;
  margin-top: var(--s-md);
  text-wrap: pretty; /* avoid orphan last-line word */
}
.tile--dark .subcopy,
.tile--dark-2 .subcopy { color: var(--c-body-muted); }

/* Korean body wrapping — prevent orphan last-line words */
.feature__desc,
.card__desc,
.footer__note,
.compliance__item { text-wrap: pretty; }

/* CTA cluster */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-lg);
  align-items: center;
  justify-content: center;
  margin-top: var(--s-xl);
}

/* ============================================================
   Product render — the ONE place a shadow is allowed
   ============================================================ */
.render {
  margin-top: var(--s-xxl);
  width: 100%;
  max-width: 860px;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-product);
}
.render--framed {
  overflow: hidden;
  background: var(--c-surface-card);
  border: 1px solid var(--c-divider);
}

/* Hero "Live Monitor" render lives in monitor.css */

/* ============================================================
   Feature grid — monoline SVG icons (no emoji)
   ============================================================ */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-xl);
  width: 100%;
  margin-top: var(--s-xxl);
  text-align: left;
}
.feature { display: flex; flex-direction: column; }
.feature__icon {
  width: 30px; height: 30px;
  color: var(--c-primary);
  margin-bottom: var(--s-md);
}
.tile--dark .feature__icon { color: var(--c-primary-on-dark); }
.feature__icon svg { width: 100%; height: 100%; display: block; }
.feature__title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.374px;
  color: var(--c-ink);
  margin-bottom: var(--s-xs);
}
.tile--dark .feature__title { color: var(--c-on-dark); }
.feature__desc {
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.374px;
  color: var(--c-ink-80);
}
.tile--dark .feature__desc { color: var(--c-body-muted); }

/* ============================================================
   Medical compliance card (code-rendered, on the dark tile)
   ============================================================ */
.compliance {
  margin-top: var(--s-xxl);
  width: 100%;
  max-width: 560px;
  text-align: left;
  background: var(--c-tile-3);
  border: 1px solid var(--c-hairline-dark);
  border-radius: var(--r-lg);
  padding: var(--s-lg);
}
.compliance__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: var(--s-sm);
  margin-bottom: var(--s-sm);
  border-bottom: 1px solid var(--c-hairline-dark);
}
.compliance__title {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.224px;
  color: var(--c-on-dark);
}
.compliance__badge {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.12px;
  color: var(--c-primary-on-dark);
  border: 1px solid rgba(41, 151, 255, 0.4);
  border-radius: var(--r-pill);
  padding: 3px 10px;
}
.compliance__list { list-style: none; display: flex; flex-direction: column; gap: var(--s-sm); }
.compliance__item {
  display: flex;
  align-items: center;
  gap: var(--s-sm);
  font-size: 15px;
  letter-spacing: -0.3px;
  color: var(--c-body-muted);
}
.compliance__check {
  flex: 0 0 auto;
  width: 18px; height: 18px;
  color: var(--c-primary-on-dark);
}
.compliance__note {
  margin-top: var(--s-md);
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: -0.1px;
  color: rgba(255, 255, 255, 0.45);
}

/* ============================================================
   Portfolio — store-utility cards with live screenshots
   ============================================================ */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-lg);
  width: 100%;
  margin-top: var(--s-xxl);
}
.card {
  background: var(--c-surface-card);
  border: 1px solid var(--c-hairline);
  border-radius: var(--r-lg);
  padding: var(--s-lg);
  text-align: left;
  display: flex;
  flex-direction: column;
}
.tile--dark-2 .card,
.tile--dark .card {
  background: var(--c-tile-3);
  border-color: var(--c-hairline-dark);
}
.card__shot {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--c-surface-inset);
  margin-bottom: var(--s-md);
  border: 1px solid var(--c-divider);
}
.card__shot img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
}
.card__title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.374px;
  color: var(--c-ink);
}
.tile--dark-2 .card__title { color: var(--c-on-dark); }
.card__desc {
  font-size: 14px;
  line-height: 1.43;
  letter-spacing: -0.224px;
  color: var(--c-ink-80);
  margin-top: var(--s-xxs);
}
.tile--dark-2 .card__desc { color: var(--c-body-muted); }
.card__stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: var(--s-sm);
  margin-bottom: var(--s-md);
}
.chip {
  font-size: 12px;
  letter-spacing: -0.12px;
  color: var(--c-ink-80);
  background: var(--c-surface-inset);
  border-radius: var(--r-pill);
  padding: 4px 11px;
}
.tile--dark-2 .chip {
  color: var(--c-body-muted);
  background: rgba(255, 255, 255, 0.06);
}
.card__link { margin-top: auto; }
@media (max-width: 980px) { .cards { grid-template-columns: repeat(2, 1fr); } }

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--c-parchment);
  color: var(--c-ink-80);
  padding-block: 56px 28px;
}
.footer__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-xl);
  flex-wrap: wrap;
  padding-bottom: var(--s-lg);
  border-bottom: 1px solid var(--c-hairline);
}
.footer__brand img {
  height: 26px; width: auto;
  /* navy-on-transparent wordmark → white, legible on the dark footer (matches header) */
  filter: brightness(0) invert(1);
}
.footer__note {
  max-width: 52ch;
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: -0.12px;
  color: var(--c-ink-48);
}
.footer__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-lg);
  padding-block: var(--s-xl);
}
.footer__col h3 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.12px;
  color: var(--c-ink);
  margin-bottom: var(--s-sm);
}
.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: var(--s-xs); }
.footer__col a { font-size: 12px; letter-spacing: -0.12px; color: var(--c-ink-80); }
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-sm);
  flex-wrap: wrap;
  padding-top: var(--s-lg);
  border-top: 1px solid var(--c-hairline);
  font-size: 12px;
  color: var(--c-ink-48);
}
.footer__legal { display: flex; gap: var(--s-md); }
.footer__legal a { color: var(--c-ink-48); }

/* ============================================================
   Floating sticky bar — frosted, slides up on scroll (no shadow)
   ============================================================ */
.sticky-bar {
  position: fixed;
  left: 0;
  bottom: 0;
  z-index: 990;
  width: 100%;
  height: 64px;
  background: var(--c-glass-bg);
  -webkit-backdrop-filter: var(--glass);
  backdrop-filter: var(--glass);
  border-top: 1px solid var(--c-hairline);
  transform: translateY(100%);
  transition: transform 0.45s var(--ease);
}
.sticky-bar.is-visible { transform: translateY(0); }
.sticky-bar__inner {
  height: 100%;
  width: 100%;
  max-width: 1024px;
  margin-inline: auto;
  padding-inline: var(--s-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-md);
}
.sticky-bar__copy { display: flex; align-items: baseline; gap: var(--s-md); min-width: 0; }
.sticky-bar__brand {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.3px;
  color: var(--c-ink);
}
.sticky-bar__text {
  font-size: 14px;
  letter-spacing: -0.224px;
  color: var(--c-ink-80);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============================================================
   Nav actions: theme toggle + mobile menu toggle
   ============================================================ */
.global-nav__actions { display: flex; align-items: center; gap: 2px; }
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 44px;
  background: none; border: none; cursor: pointer;
  color: var(--c-on-dark); /* nav is always black → white icon both themes */
  transition: transform 0.1s var(--ease);
}
.theme-toggle:active { transform: scale(0.9); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  background: none; border: none; cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.menu-toggle span {
  width: 18px; height: 2px;
  background: var(--c-on-dark);
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}

/* ============================================================
   Responsive
   ============================================================ */
/* Shorter uniform section floor on small screens (content reflows taller anyway) */
@media (max-width: 833px) {
  .tile, .hero-photo { min-height: 560px; }
}
@media (max-width: 833px) {
  .global-nav__links { display: none; }
  .menu-toggle { display: flex; }
  .sub-nav__right a:not(.btn) { display: none; }
  .vitals { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: 1fr; gap: var(--s-lg); }
  .cards { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
  .sticky-bar__text { display: none; }

  /* Mobile overlay menu — full-bleed black, frosted, staggered links */
  .global-nav__links {
    position: fixed;
    inset: 76px 0 0 0;
    display: flex;
    flex-direction: column;
    gap: var(--s-lg);
    padding: 40px var(--s-lg);
    background: rgba(0, 0, 0, 0.92);
    -webkit-backdrop-filter: var(--glass);
    backdrop-filter: var(--glass);
    z-index: 1000; /* above the pinned sub-nav (999) when open */
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s 0.3s;
    overflow-y: auto;
  }
  .global-nav.is-open .global-nav__links {
    display: flex;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s 0s;
  }
  .global-nav__links a {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.28px;
    opacity: 0;
    transform: translateY(-10px);
  }
  .global-nav.is-open .global-nav__links a {
    animation: menuItem 0.4s var(--ease) forwards;
  }
  .global-nav.is-open .global-nav__links li:nth-child(1) a { animation-delay: 0.06s; }
  .global-nav.is-open .global-nav__links li:nth-child(2) a { animation-delay: 0.11s; }
  .global-nav.is-open .global-nav__links li:nth-child(3) a { animation-delay: 0.16s; }
  .global-nav.is-open .global-nav__links li:nth-child(4) a { animation-delay: 0.21s; }
  .global-nav.is-open .global-nav__links li:nth-child(5) a { animation-delay: 0.26s; }
  .global-nav__links li { list-style: none; }

  .global-nav.is-open .menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .global-nav.is-open .menu-toggle span:nth-child(2) { opacity: 0; }
  .global-nav.is-open .menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  body.no-scroll { overflow: hidden; }
}

@media (max-width: 480px) {
  .vitals { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

@keyframes menuItem { to { opacity: 0.85; transform: translateY(0); } }

/* ===== Reduced motion — honor the user preference ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .ecg__track { animation: none; transform: none; }
  .monitor__dot::after { animation: none; opacity: 0.45; }
  .sticky-bar { transition: none; }
}
