/* ============================================================
   Sincronia Master — site de recrutamento
   Navy + dourado, títulos em serifa editorial, cartões em moldura dupla.
   ============================================================ */

:root {
  --ground: #060d1a;
  --band: #081222;
  --core: #0c172b;
  --ivory: #f3eee4;
  --muted: #9daac0;
  --gold: #c9a24a;
  --gold-lt: #e2c479;

  --hair: rgba(243, 238, 228, 0.09);
  --hair-soft: rgba(243, 238, 228, 0.06);
  --veil: rgba(243, 238, 228, 0.035);

  --serif: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  --sans: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Consolas, monospace;

  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --wrap: 1200px;
  --gutter: 20px;
}

@media (min-width: 768px) {
  :root { --gutter: 40px; }
}

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

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

html.menu-open { overflow: hidden; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* film grain: fixed and inert, never on a scrolling layer */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 em, h2 em { font-style: italic; color: var(--gold-lt); }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

:focus-visible {
  outline: 2px solid var(--gold-lt);
  outline-offset: 3px;
  border-radius: 8px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 60;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ground);
  font-weight: 500;
}
.skip:focus { top: 16px; }

.only-narrow { display: none; }
@media (max-width: 520px) {
  .only-wide { display: none; }
  .only-narrow { display: inline; }
}

/* ---------- eyebrow ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  padding: 7px 14px 7px 12px;
  border-radius: 999px;
  background: var(--veil);
  border: 1px solid rgba(243, 238, 228, 0.1);
  color: var(--gold-lt);
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.eyebrow i {
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-lt);
  box-shadow: 0 0 10px rgba(226, 196, 121, 0.7);
}

/* ---------- buttons (button-in-button) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 6px 6px 6px 26px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  transition: transform 0.5s var(--ease), background-color 0.5s var(--ease),
    box-shadow 0.5s var(--ease), border-color 0.5s var(--ease);
}
.btn:active { transform: scale(0.98); }

.btn-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  transition: transform 0.5s var(--ease), background-color 0.5s var(--ease);
}
.btn-icon svg { width: 16px; height: 16px; }
.btn:hover .btn-icon { transform: translate(2px, -1px) scale(1.06); }
.btn:hover .btn-icon--down { transform: translateY(2px) scale(1.06); }

.btn-primary {
  background: var(--gold);
  color: var(--ground);
  box-shadow: inset 0 1px 0 rgba(255, 248, 224, 0.45), 0 12px 32px -10px rgba(201, 162, 74, 0.4);
}
.btn-primary:hover {
  background: #d3ad55;
  box-shadow: inset 0 1px 0 rgba(255, 248, 224, 0.5), 0 18px 40px -10px rgba(201, 162, 74, 0.5);
}
.btn-primary .btn-icon { background: rgba(6, 13, 26, 0.12); }

.btn-ghost {
  padding: 5px 5px 5px 25px;
  background: rgba(243, 238, 228, 0.04);
  border: 1px solid rgba(243, 238, 228, 0.16);
  color: var(--ivory);
}
.btn-ghost:hover { background: rgba(243, 238, 228, 0.08); border-color: rgba(243, 238, 228, 0.26); }
.btn-ghost .btn-icon { background: rgba(243, 238, 228, 0.08); }

.btn-sm { gap: 12px; padding: 5px 5px 5px 18px; font-size: 14px; }
.btn-sm .btn-icon { width: 30px; height: 30px; }
.btn-sm .btn-icon svg { width: 14px; height: 14px; }

/* ---------- floating island nav ---------- */
.nav-wrap {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  justify-content: center;
  padding-inline: 16px;
  pointer-events: none;
}

.nav {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 44px;
  padding: 8px 8px 8px 20px;
  border-radius: 999px;
  background: rgba(12, 23, 43, 0.5);
  border: 1px solid rgba(243, 238, 228, 0.1);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 24px 60px -28px rgba(0, 0, 0, 0.7);
  transition: background-color 0.6s var(--ease);
}
.nav.is-scrolled { background: rgba(10, 19, 36, 0.82); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}
.brand-mark { width: 32px; height: 32px; }
.brand-word em {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
  font-style: italic;
  color: var(--gold-lt);
}

.nav-links { display: flex; gap: 32px; }
.nav-links a {
  font-size: 14px;
  color: var(--muted);
  transition: color 0.4s var(--ease);
}
.nav-links a:hover,
.nav-links a[aria-current="true"] { color: var(--ivory); }

.menu-btn {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(243, 238, 228, 0.07);
  color: var(--ivory);
  cursor: pointer;
}
.menu-btn span {
  position: absolute;
  left: 11px;
  top: 19px;
  width: 18px;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.5s var(--ease);
}
.menu-btn span:nth-child(1) { transform: translateY(-3px); }
.menu-btn span:nth-child(2) { transform: translate(-3px, 3px) scaleX(0.667); }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { transform: rotate(-45deg); }

.menu {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: flex-end;
  padding: 120px 24px calc(48px + env(safe-area-inset-bottom, 0px));
  background: rgba(6, 13, 26, 0.86);
  -webkit-backdrop-filter: blur(28px);
  backdrop-filter: blur(28px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease), visibility 0s 0.5s;
}
.menu.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s var(--ease);
}
.menu-inner { width: 100%; }
.menu-links li { overflow: hidden; border-top: 1px solid var(--hair); }
.menu-links li:last-child { border-bottom: 1px solid var(--hair); }
.menu-links a {
  display: block;
  padding: 14px 0;
  font-family: var(--serif);
  font-size: 44px;
  line-height: 1.1;
  transform: translateY(110%);
  opacity: 0;
  transition: transform 0.8s var(--ease), opacity 0.8s var(--ease);
}
.menu.is-open .menu-links a { transform: none; opacity: 1; }
.menu.is-open .menu-links li:nth-child(1) a { transition-delay: 0.08s; }
.menu.is-open .menu-links li:nth-child(2) a { transition-delay: 0.14s; }
.menu.is-open .menu-links li:nth-child(3) a { transition-delay: 0.2s; }
.menu-cta {
  margin-top: 36px;
  opacity: 0;
  transform: translateY(16px);
  transition: transform 0.8s var(--ease), opacity 0.8s var(--ease), background-color 0.5s var(--ease);
}
.menu.is-open .menu-cta { opacity: 1; transform: none; transition-delay: 0.26s; }

@media (max-width: 860px) {
  .nav { width: 100%; justify-content: space-between; gap: 12px; padding: 6px 6px 6px 14px; }
  .nav-links, .nav-cta { display: none; }
  .menu-btn { display: block; }
}
@media (min-width: 861px) {
  .menu { display: none; }
}

/* ---------- double-bezel ---------- */
.bezel {
  padding: 6px;
  border-radius: 32px;
  background: rgba(243, 238, 228, 0.03);
  border: 1px solid var(--hair);
}
.bezel-core {
  height: 100%;
  border-radius: 25px;
  background: var(--core);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.icon-badge {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(243, 238, 228, 0.04);
  border: 1px solid rgba(243, 238, 228, 0.12);
  color: var(--gold-lt);
}
.icon-badge svg { width: 24px; height: 24px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 168px 0 136px;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero::before {
  width: 980px;
  height: 980px;
  left: calc(50% - 120px);
  top: -380px;
  background: radial-gradient(closest-side, rgba(201, 162, 74, 0.15), transparent);
}
.hero::after {
  width: 1100px;
  height: 1100px;
  left: calc(50% - 1280px);
  top: 120px;
  background: radial-gradient(closest-side, rgba(42, 79, 143, 0.32), transparent);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 620px) minmax(0, 500px);
  justify-content: space-between;
  align-items: center;
  gap: 64px;
}
.hero-copy { display: flex; flex-direction: column; gap: 32px; }

h1 {
  font-size: clamp(3.5rem, 1.6rem + 5vw, 5.75rem);
  line-height: 0.96;
  letter-spacing: -0.025em;
}
.lede {
  max-width: 520px;
  font-size: 19px;
  line-height: 1.6;
  color: var(--muted);
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.assurance {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
}
.assurance svg { width: 18px; height: 18px; color: var(--gold-lt); }

/* monitor card */
.monitor {
  border-radius: 34px;
  box-shadow: 0 40px 90px -30px rgba(1, 4, 12, 0.8);
}
.monitor .bezel-core {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 28px 32px 32px;
  border-radius: 27px;
}
.monitor-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.monitor-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-lt);
}
.monitor-label i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-lt);
  animation: beat 1.6s var(--ease) infinite;
}
.tag {
  padding: 5px 10px;
  border: 1px solid rgba(243, 238, 228, 0.14);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}

.trace { position: relative; overflow: hidden; }
.trace-labels span {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 14px;
  white-space: nowrap;
  color: rgba(243, 238, 228, 0.75);
}
/* slow monitor sweep across the trace */
.trace::after {
  content: "";
  position: absolute;
  inset: 18% 0 0 0;
  background: linear-gradient(90deg, transparent 46%, rgba(226, 196, 121, 0.1) 50%, transparent 54%);
  transform: translateX(-50%);
  animation: sweep 5.5s cubic-bezier(0.45, 0, 0.55, 1) infinite;
  pointer-events: none;
}
.trace-svg { width: 100%; height: auto; }
.trace-svg .grid { stroke: rgba(243, 238, 228, 0.05); stroke-width: 1; }
.trace-svg .dims { stroke: rgba(243, 238, 228, 0.35); stroke-width: 1; }
.trace-svg .peak { fill: var(--gold-lt); }

.ecg-line,
.ecg-glow {
  fill: none;
  stroke: var(--gold-lt);
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ecg-line { stroke-width: 1.8; }
.ecg-glow { stroke-width: 7; stroke-opacity: 0.18; }

.monitor figcaption { font-size: 15px; line-height: 1.55; color: var(--muted); }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--hair);
}
.stats strong {
  display: block;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
}
.stats span {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
}

/* ---------- sections ---------- */
.section { padding: 136px 0; }
.section--band { background: var(--band); border-top: 1px solid var(--hair-soft); }

h2 {
  font-size: clamp(2.75rem, 1.5rem + 3.4vw, 4.5rem);
  line-height: 1;
}
.section-head { display: flex; flex-direction: column; gap: 24px; }
.split { flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 48px; }
.head-title { display: flex; flex-direction: column; gap: 24px; }
.split .intro { max-width: 460px; }
.intro { font-size: 18px; line-height: 1.6; color: var(--muted); }
.center { align-items: center; text-align: center; gap: 22px; }
.center .eyebrow { align-self: center; }
.center .intro { max-width: 560px; }

/* bento */
.bento {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 16px;
  margin-top: 64px;
}
.card--big { grid-row: span 2; }
.card .bezel-core {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  min-height: 260px;
  padding: 32px;
}
.card-top { display: flex; justify-content: space-between; align-items: center; }
.card-num { font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; color: var(--muted); }
.card h3 { font-size: 34px; line-height: 1.08; letter-spacing: -0.01em; }
.card--big h3 { font-size: clamp(2.5rem, 1.6rem + 2vw, 3.25rem); }
.card-body p { max-width: 46ch; margin-top: 12px; font-size: 16px; line-height: 1.55; color: var(--muted); }
.card-trace { width: 100%; height: auto; }
.card-trace .ecg-line { stroke-width: 1.6; stroke-opacity: 0.85; }
.card-trace .ecg-glow { stroke-width: 7; stroke-opacity: 0.16; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chips li {
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(243, 238, 228, 0.12);
  background: rgba(243, 238, 228, 0.03);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  color: rgba(243, 238, 228, 0.85);
}

/* criteria */
.criteria {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 56px;
}
.crit-core { padding: 36px 40px 20px; }
.crit-title {
  padding-bottom: 16px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.crit-title--in { color: var(--gold-lt); }
.crit-title--out { color: var(--muted); }
.crit {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid rgba(243, 238, 228, 0.08);
  font-size: 18px;
  line-height: 1.45;
}
.crit--out { color: rgba(243, 238, 228, 0.82); }
.crit-mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
}
.crit-mark svg { width: 16px; height: 16px; }
.crit--in .crit-mark { background: rgba(201, 162, 74, 0.14); color: var(--gold-lt); }
.crit--out .crit-mark { background: rgba(243, 238, 228, 0.05); color: var(--muted); }

.note {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 10px;
  max-width: 760px;
  margin: 56px auto 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
}
.note svg { flex: none; width: 18px; height: 18px; margin-top: 2px; }

/* how it works */
.how {
  display: grid;
  grid-template-columns: 440px 1fr;
  grid-template-areas: "head steps" "loc steps";
  grid-template-rows: auto 1fr;
  column-gap: 96px;
  row-gap: 40px;
  align-items: start;
}
.how-head { grid-area: head; display: flex; flex-direction: column; gap: 28px; }
.how-head h2 { font-size: clamp(2.75rem, 1.5rem + 2.8vw, 4rem); line-height: 1.02; }
.steps { grid-area: steps; border-bottom: 1px solid var(--hair); }
.step {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 32px;
  padding: 36px 0;
  border-top: 1px solid var(--hair);
}
.step-num {
  font-family: var(--serif);
  font-size: 56px;
  font-style: italic;
  line-height: 1;
  color: var(--gold-lt);
}
.step h3 { font-size: 34px; line-height: 1.1; letter-spacing: -0.01em; }
.step p { max-width: 56ch; margin-top: 10px; font-size: 17px; line-height: 1.6; color: var(--muted); }

.loc { grid-area: loc; border-radius: 26px; }
.loc .bezel-core { display: flex; flex-direction: column; gap: 20px; padding: 24px; border-radius: 19px; }
.loc-row { display: flex; align-items: flex-start; gap: 14px; }
.loc-row .icon-badge { width: 40px; height: 40px; }
.loc-row .icon-badge svg { width: 18px; height: 18px; }
.loc-k {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-lt);
}
.loc-v { margin-top: 4px; font-size: 16px; line-height: 1.45; }

/* enrol panel */
.cta-section { padding-top: 24px; }
.cta { padding: 8px; border-radius: 40px; }
.cta .bezel-core {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding: 112px 80px 144px;
  border-radius: 31px;
  text-align: center;
}
.cta .bezel-core::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: -400px;
  width: 1000px;
  height: 640px;
  border-radius: 50%;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(201, 162, 74, 0.2), transparent);
  pointer-events: none;
}
.cta .eyebrow { align-self: center; }
.cta h2 { font-size: clamp(3.25rem, 1.6rem + 4.2vw, 5.5rem); line-height: 0.98; letter-spacing: -0.025em; }
.cta p { max-width: 580px; font-size: 19px; line-height: 1.6; color: var(--muted); }
.cta .btn { margin-top: 12px; }
.cta .fine { font-size: 13px; color: rgba(157, 170, 192, 0.8); }
.cta-ecg {
  position: absolute;
  z-index: -1;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 160px;
}
.cta-ecg .ecg-line { stroke-width: 1.6; stroke-opacity: 0.32; }
.cta-ecg .ecg-glow { stroke-width: 7; stroke-opacity: 0.06; }

/* footer */
.footer { padding: 96px 0 48px; }
.footer-row {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-top: 36px;
}
/* hairline aligned to the content edge, not the gutter */
.footer-row::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  height: 1px;
  background: rgba(243, 238, 228, 0.08);
}
.footer-brand p { margin-top: 10px; font-size: 13px; color: var(--muted); }
.footer-contact { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.footer-contact a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.4s var(--ease);
}
.footer-contact a:hover { color: var(--gold-lt); }
.footer-contact svg { width: 16px; height: 16px; color: var(--gold-lt); }
.footer small { font-size: 13px; color: var(--muted); }

/* ---------- motion ---------- */
/* above-the-fold copy animates on load with CSS alone, so it never waits on JS */
.rise {
  animation: rise 1.1s var(--ease-out) both;
  animation-delay: var(--d, 0s);
}
@keyframes rise {
  from { opacity: 0; transform: translateY(28px); filter: blur(8px); }
  to { opacity: 1; transform: none; filter: none; }
}

/* below the fold: reveal on scroll + ECG draw (only when JS is on) */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(8px);
  transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out), filter 1s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: none; filter: none; }

.js .draw .ecg-line,
.js .draw .ecg-glow {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 2.6s var(--ease-out) 0.35s;
}
.js .draw.is-visible .ecg-line,
.js .draw.is-visible .ecg-glow { stroke-dashoffset: 0; }

.js .draw .peak,
.js .draw .dims,
.js .draw .trace-labels { opacity: 0; transition: opacity 0.8s var(--ease); }
.js .draw.is-visible .peak,
.js .draw.is-visible .dims,
.js .draw.is-visible .trace-labels { opacity: 1; }
.js .draw.is-visible .peak:nth-of-type(1) { transition-delay: 0.7s; }
.js .draw.is-visible .peak:nth-of-type(2) { transition-delay: 1.1s; }
.js .draw.is-visible .peak:nth-of-type(3) { transition-delay: 1.5s; }
.js .draw.is-visible .peak:nth-of-type(4) { transition-delay: 1.9s; }
.js .draw.is-visible .dims,
.js .draw.is-visible .trace-labels { transition-delay: 1.4s; }

@keyframes sweep {
  from { transform: translateX(-50%); }
  to { transform: translateX(50%); }
}
@keyframes beat {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.6); opacity: 0.5; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal,
  .js .draw .ecg-line,
  .js .draw .ecg-glow,
  .js .draw .peak,
  .js .draw .dims,
  .js .draw .trace-labels {
    opacity: 1;
    transform: none;
    filter: none;
    stroke-dashoffset: 0;
    transition: none;
  }
  .rise, .trace::after, .monitor-label i { animation: none; }
  .trace::after { display: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .monitor { max-width: 520px; }
  .how {
    grid-template-columns: 1fr;
    grid-template-areas: "head" "steps" "loc";
    grid-template-rows: auto;
    row-gap: 40px;
  }
  .how-head { max-width: 600px; }
  .loc { max-width: 520px; }
}

@media (max-width: 900px) {
  .split { flex-direction: column; align-items: flex-start; gap: 24px; }
  .bento, .criteria { grid-template-columns: 1fr; }
  .card--big { grid-row: auto; }
}

@media (max-width: 767px) {
  .hero { padding: 104px 0 80px; }
  .hero-copy { gap: 24px; }
  h1 { font-size: 3.5rem; line-height: 0.96; letter-spacing: -0.02em; }
  .lede { font-size: 17px; }
  .actions { flex-direction: column; align-items: flex-start; }

  .monitor { border-radius: 30px; }
  .monitor .bezel-core { gap: 20px; padding: 22px 20px 24px; border-radius: 23px; }
  .monitor-label { font-size: 11px; }
  .trace-labels span { font-size: 10px; }
  .monitor figcaption { font-size: 14px; }
  .stats { gap: 12px; padding-top: 20px; }
  .stats strong { font-size: 24px; }

  .section { padding: 72px 0; }
  .section-head, .head-title, .how-head { gap: 18px; }
  .intro { font-size: 16px; }
  .center { align-items: flex-start; text-align: left; }
  .center .eyebrow { align-self: flex-start; }

  .bento { margin-top: 36px; gap: 12px; }
  .card .bezel-core { padding: 28px 24px; min-height: 0; }
  .card h3 { font-size: 30px; }

  .criteria { margin-top: 32px; }
  .crit-core { padding: 26px 22px 8px; }
  .crit { font-size: 17px; }
  .note { justify-content: flex-start; margin-top: 32px; font-size: 14px; }

  .how { row-gap: 32px; }
  .step { grid-template-columns: auto 1fr; gap: 18px; padding: 28px 0; }
  .step-num { font-size: 40px; min-width: 40px; }
  .step h3 { font-size: 28px; }
  .step p { font-size: 15px; }
  .loc .bezel-core { padding: 22px 20px; }

  .cta-section { padding-top: 8px; }
  .cta { border-radius: 32px; padding: 6px; }
  .cta .bezel-core { gap: 22px; padding: 64px 24px 84px; border-radius: 25px; }
  .cta .bezel-core::before { width: 600px; height: 420px; top: -250px; }
  .cta h2 { font-size: 3.25rem; }
  .cta p { font-size: 16px; }
  .cta .fine { font-size: 12.5px; max-width: 280px; }
  .cta-ecg { height: 110px; }

  .footer { padding: 56px 0 40px; }
  .footer-row { flex-direction: column; align-items: flex-start; }
  .footer-contact { align-items: flex-start; }
}
