/* =========================================================
   Botsogo Pele EMS — design system
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;
  --teal: #00a19a;
  --teal-600: #008a84;
  --teal-800: #035c58;
  --teal-900: #023e3b;
  --teal-950: #01201f;
  --red: #e2000d;
  --red-600: #c0000b;
  --amber: #d97706;

  --bg: #ffffff;
  --bg-soft: #f3f8f8;
  --surface: #ffffff;
  --surface-2: #f6fafa;
  --ink: #0d2322;
  --body: #435c5a;
  --muted: #708583;
  --line: #dde9e8;
  --line-strong: #c9dddc;
  --tint: #e7f6f5;
  --tint-red: #fde9ea;
  --red-ink: #c0000b;
  --accent-ink: var(--teal-800);
  --link: var(--teal-600);
  --header-bg: rgba(255, 255, 255, .78);
  --field: #f3f8f8;

  --radius: 20px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(2, 62, 59, .06), 0 2px 8px -2px rgba(2, 62, 59, .08);
  --shadow: 0 2px 4px rgba(2, 62, 59, .04), 0 12px 32px -12px rgba(2, 62, 59, .22);
  --shadow-lg: 0 4px 8px rgba(2, 62, 59, .04), 0 32px 64px -24px rgba(2, 62, 59, .34);
  --font-head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --grain: 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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #061514;
    --bg-soft: #0a1f1e;
    --surface: #0d2523;
    --surface-2: #102c2a;
    --ink: #eaf6f5;
    --body: #a9c1bf;
    --muted: #7d9896;
    --line: #1a3936;
    --line-strong: #24504c;
    --tint: #0f3431;
    --tint-red: #3a1013;
  --red-ink: #ff7a82;
    --accent-ink: #5fd6cf;
    --link: #3fc9c1;
    --header-bg: rgba(6, 21, 20, .74);
    --field: #0a1f1e;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow: 0 12px 32px -12px rgba(0, 0, 0, .6);
    --shadow-lg: 0 32px 64px -24px rgba(0, 0, 0, .7);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #061514;
  --bg-soft: #0a1f1e;
  --surface: #0d2523;
  --surface-2: #102c2a;
  --ink: #eaf6f5;
  --body: #a9c1bf;
  --muted: #7d9896;
  --line: #1a3936;
  --line-strong: #24504c;
  --tint: #0f3431;
  --tint-red: #3a1013;
  --red-ink: #ff7a82;
  --accent-ink: #5fd6cf;
  --link: #3fc9c1;
  --header-bg: rgba(6, 21, 20, .74);
  --field: #0a1f1e;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow: 0 12px 32px -12px rgba(0, 0, 0, .6);
  --shadow-lg: 0 32px 64px -24px rgba(0, 0, 0, .7);
}

/* ---------- Page transitions ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .28s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .45s var(--ease-out) both; }
.header { view-transition-name: site-header; }
.topbar { view-transition-name: site-topbar; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; scrollbar-color: var(--line-strong) transparent; }
body {
  margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.68; color: var(--body); background: var(--bg);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
img { max-width: 100%; height: auto; display: block; }
main { overflow-x: clip; }
a { color: var(--link); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-ink); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.02; margin: 0 0 .5em; letter-spacing: -.005em; text-wrap: balance; }
h1 { font-size: clamp(2.9rem, 6.4vw, 5.4rem); font-weight: 700; }
h2 { font-size: clamp(2.3rem, 4.4vw, 3.6rem); font-weight: 700; }
h3 { font-size: 1.5rem; font-weight: 600; }
p { margin: 0 0 1em; text-wrap: pretty; }
::selection { background: var(--teal); color: #fff; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

.skip-link { position: fixed; left: 16px; top: -60px; z-index: 200; background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 10px; font-weight: 700; transition: top .2s; }
.skip-link:focus { top: 12px; color: var(--bg); }

.container { width: min(1240px, 100% - 48px); margin-inline: auto; }
.section { padding: clamp(80px, 11vw, 140px) 0; position: relative; }
.section__head { max-width: 680px; margin: 0 auto clamp(48px, 6vw, 72px); text-align: center; }
.section__head > p:last-child { color: var(--muted); font-size: 1.08rem; }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .76rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--red); margin-bottom: 16px; }
.eyebrow::before { content: ""; width: 24px; height: 2px; background: currentColor; border-radius: 2px; }
.section__head .eyebrow::after { content: ""; width: 24px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow--light { color: #fff; }
.eyebrow--light::before { background: var(--red); }

/* ---------- Buttons ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 24px; border-radius: 999px; border: 1.5px solid transparent;
  font-family: var(--font-body); font-weight: 700; font-size: .95rem; letter-spacing: .005em; cursor: pointer; white-space: nowrap;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background-color .25s, color .25s, border-color .25s;
}
.btn svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.btn svg.btn__stroke { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: radial-gradient(120px circle at var(--bx, 50%) var(--by, 50%), rgba(255, 255, 255, .35), transparent 60%); opacity: 0; transition: opacity .3s; }
.btn:hover::after { opacity: 1; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--lg { padding: 17px 30px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--red { background: var(--red); color: #fff; box-shadow: 0 10px 28px -10px rgba(226, 0, 13, .75), inset 0 1px 0 rgba(255, 255, 255, .2); }
.btn--red:hover { background: var(--red-600); color: #fff; box-shadow: 0 16px 36px -12px rgba(226, 0, 13, .85), inset 0 1px 0 rgba(255, 255, 255, .2); }
.btn--teal { background: var(--teal); color: #fff; box-shadow: 0 10px 28px -10px rgba(0, 161, 154, .75), inset 0 1px 0 rgba(255, 255, 255, .2); }
.btn--teal:hover { background: var(--teal-600); color: #fff; }
.btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .38); background: rgba(255, 255, 255, .06); backdrop-filter: blur(8px); }
.btn--ghost:hover { background: #fff; color: var(--teal-900); border-color: #fff; }
.btn--white { background: #fff; color: var(--teal-900); box-shadow: 0 10px 28px -12px rgba(0, 0, 0, .4); }
.btn--white:hover { color: var(--red); }
.btn--outline { color: var(--ink); border-color: var(--line-strong); background: var(--surface); }
.btn--outline:hover { border-color: var(--teal); color: var(--ink); }
.btn__meta { font-weight: 600; font-size: .78em; opacity: .65; }

.link-arrow { font-weight: 700; display: inline-flex; align-items: center; gap: 8px; color: var(--link); }
.link-arrow::after { content: "→"; transition: transform .35s var(--ease-out); }
.link-arrow:hover::after, a:hover > .link-arrow::after { transform: translateX(5px); }

/* ---------- Progress + topbar ---------- */
.progress { position: fixed; left: 0; top: 0; height: 3px; width: 100%; z-index: 120; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--teal), var(--red)); pointer-events: none; }
.topbar { background: var(--teal-950); color: rgba(255, 255, 255, .78); font-size: .84rem; position: relative; z-index: 51; }
.topbar__inner { display: flex; justify-content: center; align-items: center; gap: 16px; padding: 9px 0; }
.topbar__msg { margin: 0; display: flex; align-items: center; gap: 10px; }
.topbar a { color: #fff; }
.topbar a:hover { color: #9ff0ea; }
.topbar__msg strong { color: #fff; background: var(--red); padding: 2px 11px; border-radius: 999px; letter-spacing: .06em; }
.topbar__links { display: flex; gap: 24px; }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); position: relative; flex: none; }
.pulse-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--red); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(3.2); opacity: 0; } }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 50; background: var(--header-bg); backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px); border-bottom: 1px solid transparent; transition: box-shadow .4s, border-color .4s, background-color .4s; }
.header.is-scrolled { border-color: var(--line); box-shadow: 0 10px 30px -18px rgba(2, 62, 59, .35); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 84px; transition: height .4s var(--ease-out); }
.header.is-scrolled .header__inner { height: 70px; }
.brand { display: inline-flex; align-items: center; border-radius: 14px; padding: 4px 6px; transition: background-color .3s; position: relative; z-index: 70; }
.brand img { height: 62px; width: auto; transition: transform .4s var(--ease-out), height .4s var(--ease-out); }
.header.is-scrolled .brand img { height: 52px; }
.brand:hover img { transform: scale(1.05) rotate(-3deg); }
.nav { display: flex; align-items: center; gap: 6px; }
.nav__links { display: flex; align-items: center; gap: 2px; padding: 5px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); }
.nav__links a { color: var(--ink); font-weight: 600; font-size: .92rem; padding: 8px 16px; border-radius: 999px; transition: color .25s, background-color .25s; }
.nav__links a:hover { color: var(--ink); background: var(--surface); }
.nav__links a.is-active { color: #fff; background: var(--teal); box-shadow: 0 6px 16px -8px rgba(0, 161, 154, .9); }
.nav__tools { display: flex; align-items: center; gap: 10px; margin-left: 12px; }
.theme-toggle { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: transform .4s var(--ease-out), border-color .3s, background-color .3s; flex: none; }
.theme-toggle:hover { transform: rotate(20deg); border-color: var(--teal); }
.theme-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .i-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .i-moon { display: block; }
}
.nav__mobile-extra { display: none; }
.burger { display: none; width: 46px; height: 46px; border: 1px solid var(--line); background: var(--surface); border-radius: 14px; cursor: pointer; padding: 0 12px; flex-direction: column; justify-content: center; gap: 5px; position: relative; z-index: 70; }
.burger span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .4s var(--ease-out), opacity .3s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; padding: clamp(64px, 9vw, 120px) 0 clamp(150px, 16vw, 210px); overflow: hidden; isolation: isolate; background: var(--teal-950); }
.hero__bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero__bg::before { content: ""; position: absolute; inset: -20px; background: linear-gradient(105deg, rgba(1, 32, 31, .98) 0%, rgba(2, 62, 59, .9) 48%, rgba(0, 120, 115, .55) 100%), url("assets/img/ambulance-night.jpg") center / cover no-repeat; transform: translate3d(calc(var(--hx, 0) * -14px), calc(var(--hy, 0) * -14px), 0); transition: transform .9s var(--ease-out); }
.hero__bg::after { content: ""; position: absolute; inset: 0; background-image: var(--grain); opacity: .07; mix-blend-mode: overlay; }
.aurora { position: absolute; z-index: -1; border-radius: 50%; filter: blur(70px); opacity: .55; pointer-events: none; animation: drift 18s ease-in-out infinite alternate; }
.aurora--1 { width: 520px; height: 520px; background: #00a19a; right: -120px; top: -140px; }
.aurora--2 { width: 420px; height: 420px; background: #e2000d; left: 32%; bottom: -260px; opacity: .28; animation-duration: 22s; animation-delay: -6s; }
.aurora--3 { width: 360px; height: 360px; background: #2dd4bf; left: -140px; top: 30%; opacity: .25; animation-duration: 26s; }
@keyframes drift { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(40px, 30px) scale(1.1); } 100% { transform: translate(-30px, -20px) scale(.95); } }
.hero__ecg { position: absolute; left: 0; right: 0; bottom: 96px; width: 100%; height: 120px; z-index: -1; pointer-events: none; opacity: .55; }
.hero__ecg path { fill: none; stroke: url(#ecgGrad); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 2600; stroke-dashoffset: 2600; animation: ecg-draw 6s linear infinite; }
@keyframes ecg-draw { 0% { stroke-dashoffset: 2600; opacity: 1; } 75% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }

.hero__inner { display: grid; grid-template-columns: 1.12fr .88fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero h1 .hl { position: relative; white-space: nowrap; isolation: isolate; }
.hero h1 .hl::after { content: ""; position: absolute; left: -.04em; right: -.04em; bottom: .08em; height: .24em; background: var(--red); z-index: -1; border-radius: 3px; transform-origin: left; animation: hl-in 1.1s .9s var(--ease-out) both; }
@keyframes hl-in { from { transform: scaleX(0); } }
.hero__lead { font-size: clamp(1.05rem, 1.4vw, 1.18rem); max-width: 560px; color: rgba(255, 255, 255, .82); margin-bottom: 36px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 40px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .88rem; color: rgba(255, 255, 255, .75); }
.hero__trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero__trust svg { width: 18px; height: 18px; fill: none; stroke: #5eead4; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.hero__visual { position: relative; justify-self: end; width: min(420px, 100%); perspective: 1200px; }
.hero__frame { position: relative; border-radius: 32px; padding: 8px; background: linear-gradient(150deg, rgba(255, 255, 255, .3), rgba(255, 255, 255, .04)); box-shadow: 0 50px 100px -30px rgba(0, 0, 0, .6); transform: rotateY(calc(var(--hx, 0) * 7deg)) rotateX(calc(var(--hy, 0) * -7deg)); transition: transform .9s var(--ease-out); transform-style: preserve-3d; }
.hero__frame img { border-radius: 25px; aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.hero__frame::after { content: ""; position: absolute; inset: 8px; border-radius: 25px; background: linear-gradient(180deg, transparent 55%, rgba(1, 32, 31, .5)); pointer-events: none; }
.chip { position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; border-radius: 18px; background: rgba(255, 255, 255, .92); color: #01201f; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 24px 48px -16px rgba(0, 0, 0, .45); border: 1px solid rgba(255, 255, 255, .6); animation: float 6s ease-in-out infinite; transform: translateZ(50px); }
.chip strong { display: block; font-family: var(--font-head); font-size: 1.55rem; line-height: 1; color: #023e3b; }
.chip div > span { font-size: .78rem; color: #4b6563; line-height: 1.3; display: block; }
.chip__ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: #fde9ea; flex: none; }
.chip__ic svg { width: 22px; height: 22px; }
.chip--a { left: -54px; bottom: 56px; }
.chip--b { right: -34px; top: 46px; animation-delay: -3s; }
.chip--b .chip__ic { background: #e7f6f5; }
.chip--b .chip__ic svg { fill: none; stroke: var(--teal); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ecg { width: 30px; height: 22px; }
.ecg polyline { fill: none; stroke: var(--red); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 200; animation: ecg 2.4s linear infinite; }
@keyframes ecg { from { stroke-dashoffset: 200; } to { stroke-dashoffset: -200; } }
@keyframes float { 50% { translate: 0 -10px; } }
.hero__wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 90px; fill: var(--bg); transition: fill .4s; }

/* ---------- Marquee ---------- */
.marquee { position: relative; z-index: 3; background: var(--red); color: #fff; overflow: hidden; padding: 16px 0; transform: rotate(-1.2deg) scale(1.03); box-shadow: 0 20px 40px -20px rgba(226, 0, 13, .6); margin: 72px 0 0; }
.marquee__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; flex: none; }
.marquee__item { display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; font-family: var(--font-head); font-weight: 600; font-size: 1.45rem; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.marquee__item::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .55); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Facts ---------- */
.facts { position: relative; z-index: 4; margin-top: -120px; }
.facts__grid { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid var(--line); }
.fact { position: relative; padding: 34px 24px 30px; text-align: center; border-right: 1px solid var(--line); }
.fact:last-child { border-right: 0; }
.fact__num { display: block; font-family: var(--font-head); font-weight: 700; font-size: clamp(2rem, 3.4vw, 2.9rem); color: var(--teal); line-height: 1.05; font-variant-numeric: tabular-nums; }
.fact:first-child .fact__num { color: var(--red); }
.fact__label { font-size: .88rem; color: var(--muted); font-weight: 500; }

/* ---------- Spotlight cards ---------- */
.spot { position: relative; isolation: isolate; }
.spot::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--teal) 14%, transparent), transparent 55%); opacity: 0; transition: opacity .4s; }
.spot::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; pointer-events: none; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), var(--teal), transparent 60%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .4s; }
.spot:hover::before, .spot:hover::after { opacity: 1; }

/* ---------- Home ---------- */
.home-services { padding-top: clamp(96px, 11vw, 140px); }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tile { display: flex; flex-direction: column; padding: 30px 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--body); transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); }
.tile:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); color: var(--body); }
.tile h3 { font-size: 1.45rem; }
.tile p { font-size: .95rem; }
.tile .link-arrow { margin-top: auto; }
.tile__num { position: absolute; right: 24px; top: 22px; font-family: var(--font-head); font-weight: 700; font-size: 1rem; color: var(--muted); letter-spacing: .06em; opacity: .7; }

.service__icon { width: 58px; height: 58px; border-radius: 17px; display: grid; place-items: center; background: var(--tint); color: var(--teal); margin-bottom: 22px; transition: background-color .35s, color .35s, transform .5s var(--ease-out); }
.service__icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.service__icon svg path[d^="M21 16"] { fill: currentColor; stroke: none; }
.service__icon--red { background: var(--tint-red); color: var(--red); }
.tile:hover .service__icon, .service:hover .service__icon { background: var(--teal); color: #fff; transform: rotate(-6deg) scale(1.05); }
.tile:hover .service__icon--red, .service:hover .service__icon--red { background: var(--red); }

.dark-band { background: var(--teal-950); color: rgba(255, 255, 255, .8); overflow: hidden; isolation: isolate; }
.dark-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(800px circle at 10% 110%, rgba(0, 161, 154, .45), transparent 60%), radial-gradient(600px circle at 95% -10%, rgba(0, 161, 154, .25), transparent 60%); }
.dark-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--grain); opacity: .06; mix-blend-mode: overlay; }
.dark-band h2, .dark-band h3 { color: #fff; }
.home-training__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.home-training p { margin-bottom: 30px; font-size: 1.05rem; }
.home-training__books { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-bottom: 32px; perspective: 1400px; }
.home-training__books .book-link:nth-child(even) { transform: translateY(32px); }

.home-about__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.home-about__media { position: relative; isolation: isolate; }
.home-about__img { border-radius: var(--radius-lg); aspect-ratio: 1; object-fit: cover; width: 100%; box-shadow: var(--shadow-lg); }
.home-about__media::before { content: ""; position: absolute; inset: auto -22px -22px auto; width: 60%; height: 60%; border-radius: var(--radius-lg); background: radial-gradient(var(--teal) 2px, transparent 2px) 0 0 / 16px 16px; opacity: .3; z-index: -1; }
.home-about p { font-size: 1.06rem; }
.signature { display: flex; align-items: center; gap: 14px; margin: 26px 0 24px; padding: 16px 18px; border-radius: var(--radius); background: var(--bg-soft); border: 1px solid var(--line); }
.signature__avatar { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--teal), var(--teal-800)); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; flex: none; }
.signature strong { display: block; color: var(--ink); }
.signature span { font-size: .86rem; color: var(--muted); }

/* ---------- Inner page hero ---------- */
.page-hero { position: relative; color: #fff; padding: clamp(64px, 9vw, 110px) 0 clamp(110px, 12vw, 150px); overflow: hidden; isolation: isolate; background: var(--teal-950); }
.page-hero__bg { position: absolute; inset: 0; z-index: -2; background: linear-gradient(105deg, rgba(1, 32, 31, .97) 0%, rgba(2, 62, 59, .9) 55%, rgba(0, 120, 115, .6) 100%), var(--hero-img, none) center / cover no-repeat; }
.page-hero__bg::after { content: ""; position: absolute; inset: 0; background-image: var(--grain); opacity: .07; mix-blend-mode: overlay; }
.page-hero .aurora--1 { width: 420px; height: 420px; top: -180px; right: -80px; }
.page-hero h1 { color: #fff; font-size: clamp(2.8rem, 6vw, 4.6rem); max-width: 860px; }
.page-hero__lead { font-size: 1.14rem; color: rgba(255, 255, 255, .82); max-width: 640px; margin: 0; }
.page-hero__lead a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .84rem; color: rgba(255, 255, 255, .65); margin-bottom: 26px; }
.crumbs a { color: rgba(255, 255, 255, .85); padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); }
.crumbs a:hover { color: #fff; background: rgba(255, 255, 255, .16); }
.crumbs span[aria-hidden] { opacity: .45; }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 7vw, 96px); align-items: center; }
.about__media { position: relative; padding: 0 64px 84px 0; isolation: isolate; }
.about__img { border-radius: var(--radius-lg); object-fit: cover; box-shadow: var(--shadow); }
.about__img--main { width: 100%; aspect-ratio: 1 / 1; }
.about__img--sub { position: absolute; right: 0; bottom: 0; width: 46%; aspect-ratio: 1; border: 8px solid var(--bg); box-shadow: var(--shadow-lg); }
.about__media::before { content: ""; position: absolute; left: -24px; top: -24px; width: 150px; height: 150px; border-radius: 24px; background: radial-gradient(var(--teal) 2px, transparent 2px) 0 0 / 16px 16px; opacity: .35; z-index: -1; }
.about__quote { margin: 28px 0; padding: 22px 26px; border-left: 4px solid var(--red); background: var(--bg-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--ink); font-size: 1.04rem; }
.about__quote strong { color: var(--accent-ink); }
.pmv { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.pmv__item { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); }
.pmv__item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pmv__item h3 { font-size: 1.35rem; color: var(--accent-ink); margin-bottom: .3em; }
.pmv__item p { margin: 0; font-size: .95rem; }

/* ---------- Services ---------- */
.services { background: var(--bg-soft); }
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service { background: var(--surface); border-radius: var(--radius); padding: 34px; border: 1px solid var(--line); transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); display: flex; flex-direction: column; scroll-margin-top: 110px; }
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service p { font-size: .97rem; }
.service .link-arrow { margin-top: auto; }
.service--feature { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1.1fr; padding: 0; overflow: hidden; }
.service__img { position: relative; overflow: hidden; background: #fff; }
.service__img img { width: 100%; height: 100%; object-fit: cover; min-height: 340px; transition: transform 1.2s var(--ease-out); }
.service--feature:hover .service__img img { transform: scale(1.06); }
.service__body { padding: clamp(32px, 5vw, 56px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.service__body h3 { font-size: clamp(1.9rem, 3vw, 2.4rem); }
.service__body .link-arrow { margin-top: 8px; color: var(--red); }
.checklist { list-style: none; padding: 0; margin: 0 0 4px; display: grid; gap: 9px; font-size: .95rem; }
.checklist li { position: relative; padding-left: 30px; color: var(--ink); }
.checklist li::before { content: ""; position: absolute; left: 0; top: .28em; width: 19px; height: 19px; border-radius: 50%; background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.checklist--cols { grid-template-columns: 1fr 1fr; column-gap: 24px; }

/* ---------- Events ---------- */
.events__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 7vw, 88px); align-items: center; }
.events__subhead { font-size: 1.4rem; margin-top: 30px; }
.tags { list-style: none; padding: 0; margin: 0 0 34px; display: flex; flex-wrap: wrap; gap: 10px; }
.tags li { padding: 8px 16px; border-radius: 999px; font-size: .88rem; font-weight: 500; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16); color: #fff; transition: background-color .3s, border-color .3s; }
.tags li:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .3); }
.events__media { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.events__media img { border-radius: var(--radius); object-fit: cover; width: 100%; aspect-ratio: 3 / 4; box-shadow: 0 40px 70px -24px rgba(0, 0, 0, .6); }
.events__media img:last-child { margin-top: 64px; }

/* ---------- Values ---------- */
.values__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.value { position: relative; padding: 32px 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); }
.value:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.value__letter { position: absolute; right: 16px; top: -8px; font-family: var(--font-head); font-weight: 700; font-size: 6.4rem; line-height: 1; color: var(--tint); z-index: -1; transition: color .4s, transform .6s var(--ease-out); }
.value:hover .value__letter { color: var(--tint-red); transform: translateY(6px) rotate(-4deg); }
.value h3 { color: var(--accent-ink); margin-top: 22px; }
.value p { margin: 0; font-size: .94rem; }
.value--cta { background: linear-gradient(140deg, var(--teal), var(--teal-800)); border-color: transparent; color: #fff; display: flex; flex-direction: column; }
.value--cta h3, .value--cta p { color: #fff; }
.value--cta p { opacity: .85; }
.value--cta .value__letter { color: rgba(255, 255, 255, .12); font-size: 4.8rem; top: 6px; z-index: 0; }
.value--cta:hover .value__letter { color: rgba(255, 255, 255, .22); }
.value__call { position: relative; margin-top: auto; padding-top: 18px; font-weight: 800; color: #fff; }

/* ---------- Vision ---------- */
.vision { background: var(--bg-soft); }
.vision__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(48px, 7vw, 88px); align-items: start; }
.vision__head { position: sticky; top: 120px; }
.vision__head img { margin-top: 26px; border-radius: var(--radius-lg); box-shadow: var(--shadow); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.vision__list { list-style: none; counter-reset: v; padding: 0; margin: 0; display: grid; gap: 18px; }
.vision__list li { counter-increment: v; position: relative; padding: 30px 30px 30px 100px; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); color: var(--ink); font-size: 1.05rem; transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); }
.vision__list li:hover { transform: translateX(6px); box-shadow: var(--shadow); }
.vision__list li::before { content: "0" counter(v); position: absolute; left: 28px; top: 24px; font-family: var(--font-head); font-weight: 700; font-size: 2.4rem; color: var(--red); line-height: 1; }

/* ---------- Gallery ---------- */
.gallery__grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 250px; gap: 16px; }
.gallery__item { padding: 0; border: 0; cursor: zoom-in; border-radius: var(--radius); overflow: hidden; position: relative; background: var(--bg-soft); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.gallery__item::after { content: attr(data-caption); position: absolute; inset: auto 0 0 0; padding: 48px 20px 16px; text-align: left; color: #fff; font-family: var(--font-body); font-weight: 600; font-size: .92rem; background: linear-gradient(transparent, rgba(1, 32, 31, .85)); opacity: 0; transform: translateY(10px); transition: opacity .4s, transform .5s var(--ease-out); }
.gallery__item:hover img { transform: scale(1.08); }
.gallery__item:hover::after, .gallery__item:focus-visible::after { opacity: 1; transform: none; }
.gallery__item--tall { grid-row: span 2; }
.gallery__item--wide { grid-column: span 2; }
.lightbox { position: fixed; inset: 0; z-index: 150; background: rgba(1, 20, 19, .92); backdrop-filter: blur(10px); display: grid; place-items: center; padding: 24px; animation: fade .3s; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; text-align: center; }
.lightbox img { max-height: 80vh; max-width: min(1100px, 100%); border-radius: 16px; box-shadow: 0 40px 100px rgba(0, 0, 0, .6); animation: zoom-in .45s var(--ease-out); }
.lightbox figcaption { color: rgba(255, 255, 255, .8); margin-top: 16px; font-size: .95rem; }
.lightbox__close { position: absolute; top: 18px; right: 22px; width: 50px; height: 50px; border-radius: 50%; border: 0; background: #fff; color: #0d2322; font-size: 1.8rem; line-height: 1; cursor: pointer; z-index: 2; }
.lightbox__nav { position: absolute; top: 50%; width: 54px; height: 54px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .1); color: #fff; font-size: 1.4rem; cursor: pointer; transform: translateY(-50%); transition: background-color .3s; z-index: 2; }
.lightbox__nav:hover { background: rgba(255, 255, 255, .22); }
.lightbox__nav--prev { left: 20px; }
.lightbox__nav--next { right: 20px; }
@keyframes fade { from { opacity: 0; } }
@keyframes zoom-in { from { opacity: 0; transform: scale(.94); } }

/* ---------- CTA ---------- */
.cta { padding: 0 0 clamp(80px, 11vw, 140px); }
.cta__inner { position: relative; overflow: hidden; isolation: isolate; text-align: center; color: #fff; background: linear-gradient(135deg, #ef1b26, #a3000a); border-radius: 32px; padding: clamp(56px, 8vw, 88px) 24px; box-shadow: 0 40px 80px -30px rgba(226, 0, 13, .65); }
.cta__inner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .24), transparent 60%); }
.cta__inner::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--grain); opacity: .1; mix-blend-mode: overlay; }
.cta__inner h2 { color: #fff; margin-bottom: .2em; }
.cta__inner p { color: rgba(255, 255, 255, .85); font-size: 1.12rem; }
.cta__number { display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: clamp(5.5rem, 16vw, 10rem); line-height: 1; color: #fff; letter-spacing: .04em; transition: transform .5s var(--ease-out); text-shadow: 0 12px 40px rgba(0, 0, 0, .25); }
.cta__number:hover { color: #fff; transform: scale(1.06); }
.cta__ecg { position: absolute; left: 0; top: 52%; width: 100%; height: 170px; transform: translateY(-50%); opacity: .2; z-index: -1; pointer-events: none; }
.cta__ecg polyline { fill: none; stroke: #fff; stroke-width: 3; stroke-dasharray: 1000; animation: ecg-long 3.5s linear infinite; }
@keyframes ecg-long { from { stroke-dashoffset: 1000; } to { stroke-dashoffset: -1000; } }

/* ---------- Book covers ---------- */
.book-link { display: block; perspective: 1000px; }
.book { --book: var(--teal); position: relative; aspect-ratio: 3 / 4.2; border-radius: 4px 14px 14px 4px; transform-style: preserve-3d; transform: rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg)); transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out); box-shadow: 14px 18px 34px -12px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(255, 255, 255, .08); }
.book-link:hover .book, .course__book:hover .book { box-shadow: 28px 26px 44px -14px rgba(0, 0, 0, .55); }
.book__spine { position: absolute; left: 0; top: 0; bottom: 0; width: 10%; border-radius: 4px 0 0 4px; background: linear-gradient(90deg, rgba(0, 0, 0, .38), rgba(255, 255, 255, .14) 60%, rgba(0, 0, 0, .15)); z-index: 2; }
.book__cover { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; padding: 14% 12% 12% 18%; display: flex; flex-direction: column; color: #fff; background: radial-gradient(circle at 85% 10%, rgba(255, 255, 255, .24), transparent 45%), linear-gradient(160deg, color-mix(in srgb, var(--book) 88%, #fff), var(--book) 45%, color-mix(in srgb, var(--book) 68%, #000)); }
.book__cover::before { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .28) 45%, transparent 60%); transform: translateX(-120%); transition: transform 1.1s var(--ease-out); }
.book-link:hover .book__cover::before, .course__book:hover .book__cover::before { transform: translateX(120%); }
.book__cover::after { content: ""; position: absolute; right: -30%; bottom: -18%; width: 90%; aspect-ratio: 1; border-radius: 50%; border: 14px solid rgba(255, 255, 255, .08); }
.book__logo { width: 46%; margin-bottom: auto; opacity: .95; }
.book__kicker { font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; opacity: .8; margin-bottom: 6px; }
.book__title { font-family: var(--font-head); font-size: clamp(1.2rem, 2.2vw, 1.9rem); line-height: 1; font-weight: 700; }
.book__sub { font-size: .72rem; opacity: .85; margin-top: 6px; }
.book__ecg { width: 60%; height: 18px; margin-top: 12px; }
.book__ecg polyline { fill: none; stroke: rgba(255, 255, 255, .7); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.book--sm .book__title { font-size: clamp(.95rem, 1.4vw, 1.25rem); }
.book--sm .book__kicker { font-size: .5rem; }
.book--sm .book__sub { display: none; }
.book--sm .book__cover { padding: 12% 10% 12% 18%; }
.book--lg .book__title { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.book--lg .book__sub { font-size: .9rem; }
.book--lg .book__kicker { font-size: .75rem; }

/* ---------- Training ---------- */
.courses__list { display: grid; gap: 40px; }
.course { display: grid; grid-template-columns: 270px 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; padding: clamp(28px, 4vw, 48px); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); scroll-margin-top: 110px; }
.course__book { display: block; position: sticky; top: 120px; perspective: 1200px; }
.course__num { font-family: var(--font-head); font-weight: 700; color: var(--red); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 6px; }
.course h2 { font-size: clamp(2rem, 3.4vw, 2.7rem); }
.course h3 { font-size: 1.3rem; margin-top: 8px; }
.course__summary { font-size: 1.08rem; color: var(--ink); }
.course__meta { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 26px 0; }
.course__meta div { padding: 16px 18px; border-radius: var(--radius-sm); background: var(--bg-soft); border: 1px solid var(--line); }
.course__meta dt { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--link); margin-bottom: 4px; }
.course__meta dd { margin: 0; font-size: .95rem; }
.course__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.downloads { padding-top: 0; }
.downloads__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.download { display: flex; align-items: center; gap: 18px; padding: 18px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--ink); transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); }
.download:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--ink); }
.download__icon { flex: none; width: 52px; height: 64px; border-radius: 6px; display: grid; place-items: end center; padding-bottom: 10px; background: var(--book); color: #fff; font-weight: 800; font-size: .76rem; letter-spacing: .08em; clip-path: polygon(0 0, 72% 0, 100% 22%, 100% 100%, 0 100%); }
.download__text { display: flex; flex-direction: column; min-width: 0; }
.download__text strong { font-family: var(--font-head); font-size: 1.35rem; line-height: 1.1; }
.download__text small { color: var(--muted); font-size: .85rem; }
.download__btn { margin-left: auto; flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--tint); color: var(--accent-ink); transition: background-color .3s, color .3s, transform .5s var(--ease-out); }
.download:hover .download__btn { background: var(--teal); color: #fff; transform: translateY(3px); }
.download__btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.how { background: var(--bg-soft); }
.how__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.how__step { position: relative; padding: 32px 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.how__step span { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--red); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.45rem; margin-bottom: 20px; box-shadow: 0 0 0 6px var(--tint-red); }
.how__step h3 { color: var(--accent-ink); }
.how__step p { margin: 0; font-size: .95rem; }

.training-band { padding: clamp(56px, 7vw, 88px) 0; }
.training-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding: clamp(30px, 4vw, 52px); border-radius: var(--radius-lg); background: var(--tint); border: 1px solid var(--line-strong); }
.training-band__inner h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); margin-bottom: .2em; }
.training-band__inner p:last-child { margin: 0; }

/* ---------- Contact ---------- */
.contact { padding-top: clamp(80px, 9vw, 120px); }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 72px); align-items: start; }
.contact__info h2 { font-size: clamp(2rem, 3.4vw, 2.7rem); }
.contact__list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 14px; }
.contact__list li { display: flex; gap: 16px; align-items: flex-start; color: var(--ink); padding: 16px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); transition: border-color .3s, transform .5s var(--ease-out); }
.contact__list li:hover { border-color: var(--teal); transform: translateX(4px); }
.contact__list small { display: block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.contact__ic { flex: none; width: 48px; height: 48px; border-radius: 14px; background: var(--tint); color: var(--teal); display: grid; place-items: center; }
.contact__ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.contact__ic svg.fill { fill: currentColor; stroke: none; }
.contact__form { background: var(--surface); border-radius: var(--radius-lg); padding: clamp(26px, 4vw, 44px); box-shadow: var(--shadow-lg); border: 1px solid var(--line); position: sticky; top: 110px; }
.contact__form h3 { font-size: 1.9rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: block; margin-bottom: 16px; }
.field span { display: block; font-size: .84rem; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.field input, .field select, .field textarea { width: 100%; font: inherit; color: var(--ink); padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--field); transition: border-color .2s, box-shadow .2s, background-color .2s; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); background: var(--surface); box-shadow: 0 0 0 4px color-mix(in srgb, var(--teal) 18%, transparent); }
.field.is-invalid input { border-color: var(--red); }
.form__note { font-size: .82rem; color: var(--muted); margin: 14px 0 0; text-align: center; }
.form__error { color: var(--red); font-size: .88rem; font-weight: 600; margin: 10px 0 0; text-align: center; }

/* ---------- Footer ---------- */
.footer { position: relative; isolation: isolate; background: var(--teal-950); color: rgba(255, 255, 255, .68); padding: 88px 0 0; font-size: .95rem; overflow: hidden; }
.footer::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(700px circle at 100% 0%, rgba(0, 161, 154, .22), transparent 60%); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer__brand img { width: 128px; height: auto; margin-bottom: 18px; }
.footer h4 { color: #fff; font-size: 1.15rem; letter-spacing: .06em; text-transform: uppercase; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a { color: rgba(255, 255, 255, .72); }
.footer a:hover { color: #fff; }
.footer__926 { font-family: var(--font-head); font-weight: 700; font-size: 3.4rem; line-height: 1; color: #fff !important; display: inline-block; background: var(--red); padding: 4px 18px; border-radius: 14px; margin-bottom: 14px; box-shadow: 0 16px 30px -12px rgba(226, 0, 13, .7); }
.footer__small { font-size: .9rem; }
.footer__big { font-family: var(--font-head); font-weight: 700; font-size: clamp(3.4rem, 13.5vw, 12.5rem); line-height: .82; letter-spacing: -.01em; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .14); text-align: center; white-space: nowrap; margin: 0; user-select: none; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; padding: 22px 0; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; }
.footer__bottom p { margin: 0; }

/* ---------- Floating buttons ---------- */
.fab { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: none; align-items: center; gap: 8px; background: var(--red); color: #fff; padding: 15px 22px; border-radius: 999px; font-weight: 800; letter-spacing: .05em; box-shadow: 0 16px 34px -8px rgba(226, 0, 13, .7); }
.fab:hover { color: #fff; }
.fab svg { width: 20px; height: 20px; fill: #fff; }
.fab::before { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid var(--red); animation: ring 2s infinite; }
@keyframes ring { from { transform: scale(1); opacity: .8; } to { transform: scale(1.35); opacity: 0; } }
.to-top { position: fixed; right: 24px; bottom: 24px; z-index: 60; width: 54px; height: 54px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; background: var(--surface); color: var(--ink); box-shadow: var(--shadow); display: grid; place-items: center; opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none; transition: opacity .4s, transform .5s var(--ease-out); }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.to-top circle { fill: none; stroke-width: 3; }
.to-top .ring-bg { stroke: var(--line); }
.to-top .ring { stroke: var(--teal); stroke-linecap: round; stroke-dasharray: 151; stroke-dashoffset: calc(151 - 151 * var(--p, 0)); }
.to-top span { font-size: 1.2rem; font-weight: 700; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(32px); filter: blur(6px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out), filter 1s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; filter: none; }
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.split .w > span { display: inline-block; transform: translateY(110%); transition: transform 1s var(--ease-out); transition-delay: calc(var(--i) * 55ms + 120ms); }
.split.is-in .w > span { transform: none; }

/* ---------- Dark mode specifics ---------- */
:root[data-theme="dark"] .brand { background: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand { background: #fff; } }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1180px) {
  .nav__links a { padding: 8px 12px; }
  .values__grid { grid-template-columns: repeat(3, 1fr); }
  .tiles, .how__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1024px) {
  .burger { display: flex; }
  .nav { position: fixed; inset: 0; z-index: 65; flex-direction: column; align-items: stretch; justify-content: center; gap: 28px; padding: 110px 28px 40px; background: var(--bg); overflow-y: auto; clip-path: circle(0 at calc(100% - 52px) 52px); visibility: hidden; transition: clip-path .7s var(--ease-out), visibility 0s .7s; }
  .nav.is-open { clip-path: circle(150% at calc(100% - 52px) 52px); visibility: visible; transition: clip-path .7s var(--ease-out), visibility 0s; }
  .nav__links { flex-direction: column; align-items: stretch; gap: 0; padding: 0; background: none; border: 0; }
  .nav__links a { font-family: var(--font-head); font-size: clamp(2.2rem, 9vw, 3.2rem); font-weight: 700; line-height: 1.15; padding: 6px 0; border-radius: 0; background: none !important; box-shadow: none !important; color: var(--ink); opacity: 0; transform: translateY(24px); transition: opacity .5s, transform .6s var(--ease-out), color .2s; }
  .nav__links a.is-active { color: var(--teal); }
  .nav.is-open .nav__links a { opacity: 1; transform: none; }
  .nav.is-open .nav__links a:nth-child(1) { transition-delay: .12s; }
  .nav.is-open .nav__links a:nth-child(2) { transition-delay: .17s; }
  .nav.is-open .nav__links a:nth-child(3) { transition-delay: .22s; }
  .nav.is-open .nav__links a:nth-child(4) { transition-delay: .27s; }
  .nav.is-open .nav__links a:nth-child(5) { transition-delay: .32s; }
  .nav.is-open .nav__links a:nth-child(6) { transition-delay: .37s; }
  .nav__tools { margin: 0; }
  .nav__tools .nav__cta { flex: 1; padding: 17px; font-size: 1.05rem; }
  .nav__mobile-extra { display: block; font-size: .92rem; color: var(--muted); }
  .nav__mobile-extra a { color: var(--ink); font-weight: 600; }
  body.menu-open { overflow: hidden; }
  body.menu-open .fab { display: none; }
  body.menu-open .header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); view-transition-name: none; }
  .header__inner { position: relative; z-index: 70; }

  .hero__inner, .about__grid, .events__grid, .contact__grid, .vision__grid, .home-training__grid, .home-about__grid { grid-template-columns: 1fr; }
  .hero__visual { justify-self: center; width: min(380px, 100%); }
  .chip--a { left: -20px; }
  .chip--b { right: -12px; }
  .facts__grid { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(2) { border-right: 0; }
  .fact:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .services__grid { grid-template-columns: 1fr 1fr; }
  .service--feature { grid-template-columns: 1fr; }
  .service__img img { min-height: 240px; max-height: 340px; }
  .vision__head, .contact__form { position: static; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 210px; }
  .course { grid-template-columns: 1fr; }
  .course__book { position: static; max-width: 220px; }
  .home-training__books { max-width: 560px; }
  .fab { display: inline-flex; }
  .to-top { display: none; }
}

@media (max-width: 640px) {
  .container { width: calc(100% - 32px); }
  body { font-size: 15.5px; }
  .hide-sm, .topbar__links { display: none; }
  .topbar__inner { justify-content: center; }
  .header__inner, .header.is-scrolled .header__inner { height: 68px; }
  .brand img, .header.is-scrolled .brand img { height: 46px; }
  .hero { padding-bottom: 160px; }
  .hero__actions .btn { width: 100%; }
  .hero__trust { gap: 10px 16px; font-size: .82rem; }
  .chip { padding: 10px 14px 10px 10px; }
  .chip strong { font-size: 1.3rem; }
  .chip--a { left: -6px; bottom: -22px; }
  .chip--b { right: -6px; top: 18px; }
  .chip__ic { width: 36px; height: 36px; }
  .hero__ecg { bottom: 70px; height: 80px; }
  .marquee { margin-top: 48px; }
  .marquee__item { font-size: 1.15rem; gap: 20px; padding-right: 20px; }
  .facts { margin-top: -96px; }
  .fact { padding: 24px 12px; }
  .about__media { padding: 0 30px 50px 0; }
  .pmv, .services__grid, .field-row, .tiles, .how__grid, .course__meta, .checklist--cols, .values__grid, .downloads__grid { grid-template-columns: 1fr; }
  .service, .service__body { padding: 28px; }
  .vision__list li { padding: 24px 22px 24px 78px; font-size: .98rem; }
  .vision__list li::before { left: 20px; font-size: 1.9rem; }
  .gallery__grid { grid-auto-rows: 150px; gap: 10px; }
  .events__media img:last-child { margin-top: 36px; }
  .home-training__books { gap: 10px; }
  .home-training__books .book-link:nth-child(even) { transform: translateY(16px); }
  .course__book { max-width: 180px; }
  .course__actions .btn, .training-band__inner .btn, .home-training .hero__actions .btn { width: 100%; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; align-items: center; text-align: center; padding-bottom: 96px; }
  .cta__inner { border-radius: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; filter: none; }
  .split .w > span { transform: none; }
}

/* Static capture mode (?capture) for screenshots and previews */
.is-capture *, .is-capture *::before, .is-capture *::after { transition: none !important; animation-delay: -30s !important; animation-play-state: paused !important; }
.is-capture .reveal { opacity: 1; transform: none; filter: none; }

/* ---------- WhatsApp ---------- */
:root { --wa: #25d366; --wa-dark: #128c7e; --wa-ink: #075e54; }
.wa-ic { width: 18px; height: 18px; fill: currentColor; flex: none; }
.btn--wa { background: var(--wa); color: #fff; box-shadow: 0 10px 28px -10px rgba(37, 211, 102, .75), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn--wa:hover { background: #1ebe5b; color: #fff; }
.btn--wa-soft { background: color-mix(in srgb, var(--wa) 12%, var(--surface)); color: var(--wa-ink); border-color: color-mix(in srgb, var(--wa) 35%, transparent); }
.btn--wa-soft:hover { background: var(--wa); color: #fff; border-color: var(--wa); }
:root[data-theme="dark"] .btn--wa-soft { color: #6ee7a5; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn--wa-soft { color: #6ee7a5; } }
.btn--wa-soft:hover { color: #fff !important; }
.topbar__wa { display: inline-flex; align-items: center; gap: 6px; }
.topbar__wa .wa-ic { width: 15px; height: 15px; color: var(--wa); }
.nav__wa { display: none; }
.footer__wa { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; padding: 8px 14px; border-radius: 999px; background: rgba(37, 211, 102, .14); border: 1px solid rgba(37, 211, 102, .35); color: #b9f5cf !important; font-weight: 600; font-size: .9rem; }
.footer__wa:hover { background: var(--wa); color: #fff !important; }
.contact__ic--wa { background: color-mix(in srgb, var(--wa) 15%, transparent); color: var(--wa-dark); }
.contact__ic--wa .wa-ic { width: 24px; height: 24px; }
.contact__wa:hover { border-color: var(--wa) !important; }
.contact__hint { display: block; font-size: .84rem; color: var(--muted); }
.form__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.wa-fab {
  position: fixed; right: 24px; bottom: 92px; z-index: 61; display: flex; align-items: center; gap: 0; height: 56px; padding: 0 16px;
  border-radius: 999px; background: var(--wa); color: #fff; box-shadow: 0 16px 34px -10px rgba(37, 211, 102, .7);
  transition: transform .5s var(--ease-out), gap .4s var(--ease-out), box-shadow .3s;
}
.wa-fab .wa-ic { width: 26px; height: 26px; }
.wa-fab__label { max-width: 0; overflow: hidden; white-space: nowrap; font-weight: 700; font-size: .95rem; transition: max-width .5s var(--ease-out); }
.wa-fab:hover { color: #fff; gap: 10px; transform: translateY(-3px); box-shadow: 0 22px 40px -12px rgba(37, 211, 102, .8); }
.wa-fab:hover .wa-fab__label { max-width: 140px; }
.wa-fab::before { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid var(--wa); animation: ring 2.6s infinite; animation-delay: 1.3s; }

@media (max-width: 1024px) {
  .nav__wa { display: inline-flex; }
  .wa-fab { right: auto; left: 18px; bottom: 18px; height: 54px; width: 54px; padding: 0; justify-content: center; }
  .wa-fab__label { display: none; }
  body.menu-open .wa-fab { display: none; }
}
@media (max-width: 640px) { .form__actions { grid-template-columns: 1fr; } }
@media print { .wa-fab, .fab { display: none !important; } }

/* Floating buttons step aside when a page button scrolls underneath them */
.fab, .wa-fab { transition: opacity .3s, transform .4s var(--ease-out), translate .4s var(--ease-out); }
body.fab-hide .fab, body.fab-hide .wa-fab { opacity: 0; translate: 0 24px; pointer-events: none; }
