/* ==========================================================================
   Al-Shefa Clinic & Nursing Home: one-page site
   Mobile-first. Breakpoints: 640 / 768 (tablet) / 1024 (desktop) / 1280
   Brand colours sampled from the clinic logo: crimson #b90f33, green #125a35
   ========================================================================== */

:root {
  --green-950: #05231a;
  --green-900: #0a3324;
  --green-800: #0d452d;
  --green-700: #125a35;
  --green-600: #16703f;
  --green-500: #1d8a4f;
  --green-400: #46ad72;
  --green-200: #bfe3cd;
  --green-100: #dcefe3;
  --green-50: #eef8f2;
  --crimson-700: #930c29;
  --crimson-600: #b90f33;
  --crimson-500: #d42a4c;
  --crimson-200: #f6c4cf;
  --crimson-100: #fbdee5;
  --crimson-50: #fdf1f4;

  --ink: #0e1f17;
  --text: #34483e;
  --muted: #5c6f65;
  --line: #e1ebe5;
  --bg: #f6faf7;
  --surface: #ffffff;

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgb(14 31 23 / .04), 0 4px 14px -6px rgb(14 31 23 / .1);
  --shadow: 0 2px 6px -2px rgb(14 31 23 / .06), 0 22px 44px -24px rgb(14 31 23 / .28);
  --shadow-lg: 0 4px 10px -4px rgb(14 31 23 / .08), 0 40px 80px -36px rgb(10 51 36 / .45);

  --font: "Plus Jakarta Sans", "Anek Bangla", "Noto Sans Bengali", "Nirmala UI", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 16px;
  --header-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (min-width: 768px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; --header-h: 78px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
}
html.no-scroll { overflow: hidden; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  transition: opacity .2s;
}
html[lang="bn"] body { font-size: 1.0625rem; line-height: 1.75; }

img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }

h1, h2, h3 {
  margin: 0 0 .5em;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -.02em;
  text-wrap: balance;
}
html[lang="bn"] :is(h1, h2, h3) { line-height: 1.32; letter-spacing: 0; font-weight: 700; }
h2 { font-size: clamp(1.75rem, 1.25rem + 2.1vw, 2.7rem); }
h3 { font-size: 1.15rem; }

:focus-visible { outline: 3px solid var(--green-400); outline-offset: 3px; border-radius: 6px; }

.icon { width: 20px; height: 20px; flex: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 16px; top: -80px; z-index: 100;
  padding: 10px 18px; border-radius: 12px;
  background: var(--ink); color: #fff; font-weight: 700;
  transition: top .2s;
}
.skip-link:focus { top: 16px; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .7em 1.35em;
  border: 1px solid transparent; border-radius: 999px;
  font-weight: 700; font-size: .97rem; line-height: 1.2; white-space: nowrap;
  cursor: pointer; user-select: none;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s, color .25s, border-color .25s;
}
.btn .icon { width: 1.15em; height: 1.15em; transition: transform .25s var(--ease); }
.btn-lg { min-height: 54px; padding: .8em 1.6em; font-size: 1.02rem; }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--green-600), var(--green-800));
  box-shadow: 0 12px 24px -12px rgb(18 90 53 / .75), inset 0 1px 0 rgb(255 255 255 / .16);
}
.btn-ghost { color: var(--green-800); background: var(--surface); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-soft { color: var(--green-800); background: var(--surface); border-color: var(--green-200); }
@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); }
  .btn:hover .icon-arrow { transform: translateX(3px); }
  .btn-primary:hover { box-shadow: 0 18px 32px -14px rgb(18 90 53 / .85), inset 0 1px 0 rgb(255 255 255 / .16); }
  .btn-ghost:hover, .btn-soft:hover { border-color: var(--green-400); color: var(--green-700); }
}
.btn:active { transform: translateY(0) scale(.98); }

/* ---------- Top bar ---------- */
.topbar { display: none; background: var(--green-900); color: #cfe6d8; font-size: .86rem; }
.topbar-inner { display: flex; align-items: center; gap: 28px; min-height: 42px; }
.topbar-item { display: inline-flex; align-items: center; gap: 8px; margin: 0; white-space: nowrap; }
.topbar .icon { width: 16px; height: 16px; color: var(--green-400); }
.topbar-diag { display: none; }
.topbar-fb { margin-left: auto; font-weight: 600; color: #fff; }
.topbar .topbar-fb .icon { color: #fff; }
.topbar-phone { font-weight: 700; color: #fff; }
@media (hover: hover) { .topbar-phone:hover, .topbar-fb:hover { color: var(--green-200); } }
@media (min-width: 768px) { .topbar { display: block; } }
@media (min-width: 1024px) { .topbar-diag { display: inline-flex; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color .3s, box-shadow .3s, border-color .3s, backdrop-filter .3s;
}
.site-header.is-scrolled,
.site-header.nav-open {
  background: rgb(255 255 255 / .86);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  backdrop-filter: saturate(1.6) blur(16px);
  border-bottom-color: rgb(14 31 23 / .06);
  box-shadow: 0 12px 32px -22px rgb(14 31 23 / .35);
}
.header-inner { display: flex; align-items: center; gap: 12px; min-height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 10px; min-width: 0; margin-right: auto; }
.brand-mark { width: auto; height: 42px; }
.brand-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.brand-name { font-weight: 800; font-size: 1.12rem; color: var(--crimson-600); white-space: nowrap; }
.brand-sub { font-weight: 600; font-size: .74rem; color: var(--green-700); white-space: nowrap; }
@media (min-width: 1024px) {
  .brand-mark { height: 52px; }
  .brand-name { font-size: 1.28rem; }
  .brand-sub { font-size: .8rem; }
}

.header-actions { display: flex; align-items: center; gap: 8px; }
.lang-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 42px; padding: 0 13px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--green-800);
  font-weight: 700; font-size: .86rem; cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: border-color .2s, color .2s, transform .2s;
}
.lang-toggle .icon { width: 17px; height: 17px; color: var(--crimson-600); }
@media (hover: hover) { .lang-toggle:hover { border-color: var(--green-400); } }
.header-cta { display: none; }
@media (min-width: 768px) { .header-cta { display: inline-flex; } }

.nav-toggle {
  position: relative; display: grid; place-items: center;
  width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--line); border-radius: 14px;
  background: var(--surface); cursor: pointer; box-shadow: var(--shadow-sm);
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 18px; height: 2px; border-radius: 2px;
  background: var(--ink); transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

/* Mobile/tablet nav panel */
.site-nav {
  position: absolute; top: 100%; left: 0; right: 0;
  max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  padding: 10px var(--gutter) 22px;
  background: var(--surface);
  border-top: 1px solid var(--line);
  box-shadow: 0 30px 60px -30px rgb(14 31 23 / .4);
  opacity: 0; visibility: hidden; transform: translateY(-10px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s linear .25s;
}
.nav-open .site-nav { opacity: 1; visibility: visible; transform: none; transition: opacity .25s var(--ease), transform .25s var(--ease); }
.nav-list { list-style: none; display: grid; gap: 2px; }
.nav-link {
  display: flex; align-items: center; min-height: 50px; padding: 0 14px;
  border-radius: 14px; font-weight: 700; color: var(--ink);
  transition: background-color .2s, color .2s;
}
.nav-link.is-active { color: var(--green-700); background: var(--green-50); }
.nav-cta { width: 100%; margin-top: 14px; }

@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .site-nav {
    position: static; max-height: none; overflow: visible; padding: 0; margin-inline: auto;
    background: none; border: 0; box-shadow: none;
    opacity: 1; visibility: visible; transform: none; transition: none;
  }
  .brand { margin-right: 0; }
  .nav-list { display: flex; gap: 2px; }
  .nav-link { min-height: 40px; padding: 0 13px; border-radius: 999px; font-size: .94rem; font-weight: 600; white-space: nowrap; }
  html[lang="bn"] .nav-link { font-size: 1rem; }
  .nav-cta { display: none; }
}
@media (min-width: 1024px) and (hover: hover) { .nav-link:hover { color: var(--green-700); background: rgb(18 90 53 / .06); } }
@media (min-width: 1024px) and (max-width: 1199px) {
  .nav-link { padding: 0 10px; }
  .header-cta { padding-inline: 1.05em; }
  .header-cta .icon-arrow { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: clip;
  margin-top: calc(var(--header-h) * -1);
  padding: calc(var(--header-h) + 28px) 0 96px;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(55% 45% at 88% 12%, rgb(29 138 79 / .16), transparent 70%),
    radial-gradient(40% 40% at 6% 18%, rgb(185 15 51 / .07), transparent 70%),
    radial-gradient(60% 50% at 40% 100%, rgb(29 138 79 / .1), transparent 70%),
    linear-gradient(180deg, #eef7f1 0%, var(--bg) 100%);
}
.hero-bg::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgb(18 90 53 / .16) 1px, transparent 1.4px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(60% 55% at 72% 38%, #000 25%, transparent 75%);
  mask-image: radial-gradient(60% 55% at 72% 38%, #000 25%, transparent 75%);
}
.blob { position: absolute; border-radius: 50%; will-change: transform; animation: drift 16s ease-in-out infinite alternate; }
.blob-1 { width: 420px; height: 420px; top: -140px; right: -120px; background: radial-gradient(circle, rgb(70 173 114 / .28), transparent 65%); }
.blob-2 { width: 360px; height: 360px; top: 300px; left: -170px; background: radial-gradient(circle, rgb(212 42 76 / .12), transparent 65%); animation-delay: -6s; }
.hero-bg::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 180px;
  background: linear-gradient(180deg, rgb(246 250 247 / 0), var(--bg));
}
.ecg { position: absolute; left: 0; right: 0; bottom: 64px; width: 100%; height: 70px; opacity: .5; }
@media (min-width: 1024px) { .ecg { bottom: 78px; } }
@media (max-width: 767px) { .ecg-pulse { display: none; } } /* stroke animation repaints every frame; skip on phones */
.ecg path { fill: none; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.ecg-base { stroke: rgb(18 90 53 / .12); stroke-width: 1.5; }
.ecg-pulse { stroke: var(--crimson-500); stroke-width: 2; stroke-dasharray: 160 1240; stroke-dashoffset: 1400; animation: ecg 5.5s linear infinite; opacity: .6; }

.hero-grid { display: grid; gap: 44px; align-items: center; }
.hero-copy { animation: rise .8s var(--ease) both; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 18px; padding: 7px 16px 7px 12px;
  border: 1px solid rgb(255 255 255 / .9); border-radius: 999px;
  background: rgb(255 255 255 / .72);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm);
  font-size: .84rem; font-weight: 700; color: var(--green-800);
}
html[lang="bn"] .hero-eyebrow { font-size: .92rem; }
.pulse-dot { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--green-500); flex: none; }
.pulse-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: ping 1.8s var(--ease) infinite; }

.hero-title { font-size: clamp(2.15rem, 1.35rem + 3.6vw, 3.9rem); line-height: 1.08; letter-spacing: -.035em; margin-bottom: .3em; }
html[lang="bn"] .hero-title { line-height: 1.22; letter-spacing: 0; font-weight: 800; }
.h1-loc {
  display: block; margin-top: .25em;
  font-size: .42em; font-weight: 700; letter-spacing: .02em; line-height: 1.3;
  color: var(--green-700);
}
.hl {
  background: linear-gradient(110deg, var(--crimson-600) 10%, #e2405f 60%, var(--crimson-700) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-alt { margin-bottom: 1.1rem; font-weight: 700; font-size: 1.02rem; color: var(--green-700); letter-spacing: .01em; }
.hero-rotator {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px;
  margin-bottom: .85rem; font-size: clamp(1.15rem, 1rem + .7vw, 1.45rem); font-weight: 700; color: var(--ink);
}
.rotator { display: inline-block; min-height: 1.5em; color: var(--green-600); }
.rotator-word { display: inline-block; transition: transform .35s var(--ease), opacity .35s var(--ease); }
.rotator-word.is-out { transform: translateY(-60%); opacity: 0; }
.rotator-word.is-in { transform: translateY(60%); opacity: 0; transition: none; }
.hero-lead { max-width: 56ch; font-size: 1.05rem; color: var(--text); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-actions .btn { flex: 1 1 100%; }
@media (min-width: 480px) { .hero-actions .btn { flex: 0 0 auto; } }
.hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 24px; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .95rem; color: var(--ink); }
.hero-points .icon { color: var(--green-500); }

.hero-media { position: relative; width: 100%; max-width: 640px; margin-inline: auto; animation: rise .9s .12s var(--ease) both; }
.hero-media::before {
  content: ""; position: absolute; right: -12px; bottom: -12px; z-index: -1;
  width: 70%; height: 72%; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--green-500), var(--green-900));
}
.hero-crescent {
  position: absolute; left: -6px; top: -18px; z-index: -1;
  width: 120px; height: 120px; border-radius: 50%;
  box-shadow: -18px 10px 0 0 var(--crimson-600);
  opacity: .9; transform: rotate(-12deg);
}
.hero-photo {
  margin: 0; position: relative; overflow: hidden;
  aspect-ratio: 10 / 7; border-radius: var(--radius-lg);
  border: 6px solid #fff; background: var(--green-50);
  box-shadow: var(--shadow-lg);
  transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .5s var(--ease);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgb(5 35 26 / .28));
}
.float-card {
  position: absolute; z-index: 2;
  display: flex; align-items: center; gap: 10px;
  padding: 9px 14px 9px 9px; border-radius: 16px;
  background: rgb(255 255 255 / .9);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgb(255 255 255 / .8);
  box-shadow: var(--shadow);
  line-height: 1.25; animation: bob 6s ease-in-out infinite;
}
.fc-text { display: flex; flex-direction: column; }
.float-card strong { font-size: .86rem; color: var(--ink); white-space: nowrap; }
.float-card small { font-size: .74rem; color: var(--muted); white-space: nowrap; }
.fc-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--green-50); color: var(--green-700); flex: none; }
.fc-icon .icon { width: 19px; height: 19px; }
.fc-icon-red { background: var(--crimson-50); color: var(--crimson-600); }
.fc-1 { top: -16px; right: 8px; }
.fc-2 { left: 8px; bottom: 34px; animation-delay: -2s; }
.fc-3 { right: 14px; bottom: -20px; animation-delay: -4s; }
@media (max-width: 420px) { .fc-2 { display: none; } }

@media (min-width: 1024px) {
  .hero { padding: calc(var(--header-h) + 48px) 0 140px; }
  .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 64px; }
  .hero-media { max-width: none; }
  .fc-1 { top: -22px; right: -18px; }
  .fc-2 { left: -34px; bottom: 64px; }
  .fc-3 { right: 34px; bottom: -26px; }
  .hero-crescent { left: -34px; top: -30px; width: 150px; height: 150px; box-shadow: -22px 12px 0 0 var(--crimson-600); }
}

/* ---------- Pillars (the signboard's three departments) ---------- */
.pillars { position: relative; z-index: 2; margin-top: -48px; }
.pillars-grid { display: grid; gap: 16px; }
.pillar {
  position: relative; overflow: hidden;
  padding: 26px 24px 24px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.pillar::after {
  content: ""; position: absolute; right: -50px; top: -50px;
  width: 150px; height: 150px; border-radius: 50%;
  background: radial-gradient(circle, var(--green-50), transparent 70%);
}
.pillar-icon {
  display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 16px;
  border-radius: 16px; color: #fff;
  background: linear-gradient(135deg, var(--green-500), var(--green-800));
  box-shadow: 0 12px 22px -12px rgb(18 90 53 / .9);
}
.pillar-icon .icon { width: 26px; height: 26px; }
.pillar-red .pillar-icon { background: linear-gradient(135deg, var(--crimson-500), var(--crimson-700)); box-shadow: 0 12px 22px -12px rgb(185 15 51 / .9); }
.pillar-red::after { background: radial-gradient(circle, var(--crimson-50), transparent 70%); }
.pillar-dark .pillar-icon { background: linear-gradient(135deg, var(--green-800), var(--green-950)); }
.pillar h3 { font-size: 1.3rem; margin-bottom: .35em; }
.pillar p { color: var(--muted); }
.pillar-link { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--green-700); }
.pillar-red .pillar-link { color: var(--crimson-600); }
.pillar-link .icon { width: 18px; height: 18px; transition: transform .25s var(--ease); }
@media (hover: hover) {
  .pillar:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
  .pillar:hover .pillar-link .icon { transform: translateX(4px); }
}
@media (min-width: 768px) {
  .pillars { margin-top: -64px; }
  .pillars-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .pillar { padding: 28px 24px 24px; }
}

/* ---------- Ticker ---------- */
.ticker {
  margin-top: 56px; padding: 16px 0; overflow: hidden;
  background: var(--green-800); color: #e7f5ec;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.ticker-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.ticker-list { display: flex; align-items: center; list-style: none; }
.ticker-list li {
  display: inline-flex; align-items: center; gap: 36px; padding-right: 36px;
  font-weight: 700; font-size: 1.05rem; white-space: nowrap;
}
.ticker-list li::after {
  content: ""; width: 14px; height: 14px; border-radius: 50%;
  box-shadow: -4px 2px 0 0 var(--crimson-500);
  transform: translateX(4px) rotate(-12deg);
}
@media (hover: hover) { .ticker:hover .ticker-track { animation-play-state: paused; } }

/* ---------- Sections ---------- */
.section { position: relative; padding-block: clamp(60px, 4vw + 36px, 96px); }
/* Off-screen sections are laid out lazily for a faster first paint on phones.
   main.js adds .cv-off before any in-page jump so anchor targets are measured exactly. */
.section, .site-footer { content-visibility: auto; contain-intrinsic-size: auto 900px; }
.cv-off :is(.section, .site-footer) { content-visibility: visible; }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 3vw + 16px, 52px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-lead { font-size: 1.06rem; color: var(--muted); margin-bottom: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 12px;
  font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--crimson-600);
}
html[lang="bn"] .eyebrow { font-size: .98rem; letter-spacing: 0; }
.eyebrow::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: currentColor; }
.section-head.center .eyebrow::after { content: ""; width: 26px; height: 2px; border-radius: 2px; background: currentColor; }

/* ---------- About ---------- */
.about-grid { display: grid; gap: 48px; align-items: center; }
.orbit { position: relative; width: min(100%, 460px); aspect-ratio: 1; margin-inline: auto; }
.orbit::before {
  content: ""; position: absolute; inset: 4%; border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, var(--green-50) 55%, transparent 72%);
}
.orbit-ring {
  position: absolute; inset: 12%; border-radius: 50%;
  border: 2px dashed rgb(18 90 53 / .28);
  animation: spin 50s linear infinite;
}
.orbit-ring::before, .orbit-ring::after {
  content: ""; position: absolute; width: 12px; height: 12px; border-radius: 50%;
  background: var(--crimson-600); box-shadow: 0 0 0 5px rgb(185 15 51 / .15);
}
.orbit-ring::before { top: 14%; left: 8%; }
.orbit-ring::after { bottom: 10%; right: 12%; background: var(--green-500); box-shadow: 0 0 0 5px rgb(29 138 79 / .15); }
.orbit-center {
  position: absolute; inset: 27%; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  background: #fff; box-shadow: var(--shadow-lg); text-align: center;
}
.orbit-center img { width: 52%; height: auto; }
.orbit-center span { font-weight: 800; font-size: clamp(.8rem, .6rem + .8vw, 1rem); color: var(--green-800); }
.orbit-node {
  position: absolute; width: 29%; aspect-ratio: 1; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  padding: 8px; text-align: center; line-height: 1.2;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
  font-weight: 700; font-size: clamp(.74rem, .55rem + .7vw, .95rem); color: var(--ink);
  animation: bob 7s ease-in-out infinite;
}
.orbit-node .icon { width: 30%; height: auto; aspect-ratio: 1; color: var(--green-600); }
.n1 { top: 0; left: 35.5%; }
.n2 { bottom: 5%; left: 1%; animation-delay: -2.3s; }
.n2 .icon { color: var(--crimson-600); }
.n3 { bottom: 5%; right: 1%; animation-delay: -4.6s; }

.motto {
  position: relative; margin: 26px 0;
  padding: 22px 22px 20px 66px; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--crimson-50), #fff 80%);
  border: 1px solid var(--crimson-100);
}
.motto .icon { position: absolute; left: 22px; top: 24px; width: 28px; height: 28px; color: var(--crimson-600); }
.motto p { margin: 0 0 4px; font-size: clamp(1.15rem, 1rem + .6vw, 1.4rem); font-weight: 700; line-height: 1.4; color: var(--crimson-700); }
.motto footer { font-size: .9rem; color: var(--muted); }
.checklist { list-style: none; display: grid; gap: 12px; }
.checklist li { display: flex; align-items: flex-start; gap: 10px; font-weight: 700; color: var(--ink); }
.checklist .icon { width: 22px; height: 22px; margin-top: 2px; color: var(--green-600); }
@media (min-width: 640px) { .checklist { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .about-grid { grid-template-columns: .92fr 1.08fr; gap: 72px; } }

/* ---------- Services (tabs) ---------- */
.services { background: linear-gradient(180deg, transparent, #edf6f0 30%, #edf6f0 70%, transparent); }
.tab-list {
  position: relative; display: flex; gap: 4px;
  width: max-content; max-width: 100%; margin: 0 auto 30px; padding: 6px;
  overflow-x: auto; scrollbar-width: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-sm);
}
.tab-list::-webkit-scrollbar { display: none; }
.tab {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  min-height: 48px; padding: 0 20px;
  border: 0; border-radius: 999px; background: none;
  font-weight: 700; color: var(--muted); white-space: nowrap; cursor: pointer;
  transition: color .3s;
}
.tab .icon { width: 19px; height: 19px; }
.tab[aria-selected="true"] { color: #fff; }
html:not(.js) .tab[aria-selected="true"] { background: var(--green-700); }
html:not(.js) .tab-panel[hidden] { display: block !important; margin-top: 24px; }
.tab-indicator {
  position: absolute; z-index: 0; top: 6px; bottom: 6px; left: 0; width: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--green-600), var(--green-800));
  box-shadow: 0 10px 20px -10px rgb(18 90 53 / .9);
  transition: transform .4s var(--ease), width .4s var(--ease);
}
@media (hover: hover) { .tab:not([aria-selected="true"]):hover { color: var(--green-700); } }
@media (max-width: 479px) {
  .tab-list { width: 100%; }
  .tab { flex: 1 1 auto; justify-content: center; padding: 0 10px; font-size: .95rem; }
  .tab .icon { display: none; }
}
.tab-panel { animation: fadeUp .5s var(--ease); }
.tab-panel:focus-visible { outline-offset: 8px; border-radius: var(--radius); }
.service-grid { display: grid; gap: 16px; }
.service-card {
  position: relative; overflow: hidden;
  padding: 26px 24px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.service-card::after {
  content: ""; position: absolute; right: -36px; bottom: -36px; width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle, var(--green-50), transparent 70%);
}
.service-icon {
  display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 16px;
  border-radius: 15px; background: var(--green-50); color: var(--green-700);
  transition: background-color .3s, color .3s;
}
.service-icon .icon { width: 24px; height: 24px; }
.service-card h3 { margin-bottom: .35em; }
.service-card p { margin: 0; color: var(--muted); }
@media (hover: hover) {
  .service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--green-200); }
  .service-card:hover .service-icon { background: var(--green-700); color: #fff; }
}
.panel-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px;
  margin-top: 18px; padding: 18px 20px; border-radius: var(--radius);
  background: var(--green-50); border: 1px dashed var(--green-200);
}
.panel-cta p { margin: 0; font-weight: 700; color: var(--green-800); }
@media (max-width: 479px) { .panel-cta .btn { width: 100%; white-space: normal; } }
@media (min-width: 768px) { .service-grid { grid-template-columns: repeat(3, 1fr); } .service-card { padding: 24px 20px; } }
@media (min-width: 1024px) { .service-card { padding: 30px 26px; } }

/* ---------- Why us (bento) ---------- */
.bento { display: grid; gap: 16px; }
.bento-card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  padding: 26px 24px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.bento-card h3 { margin: 6px 0 0; }
.bento-card p { margin: 0; color: var(--muted); }
@media (hover: hover) { .bento-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); } }
.b-icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 15px; background: var(--green-50); color: var(--green-700); flex: none; }
.b-icon .icon { width: 24px; height: 24px; }
.b-icon-red { background: var(--crimson-50); color: var(--crimson-600); }
.b-icon-glass { background: rgb(255 255 255 / .12); color: #fff; border: 1px solid rgb(255 255 255 / .2); }

.bento-feature {
  justify-content: flex-end; min-height: 340px; padding: 30px 28px;
  background:
    radial-gradient(80% 60% at 100% 0%, rgb(70 173 114 / .35), transparent 60%),
    linear-gradient(155deg, var(--green-700), var(--green-950));
  border-color: transparent; color: #cfe6d8;
}
.bento-feature h3 { color: #fff; font-size: clamp(1.5rem, 1.15rem + 1.4vw, 2.2rem); }
.bento-feature p { color: #cfe6d8; max-width: 44ch; }
.bento-moon {
  position: absolute; right: 26px; top: 26px; width: 120px; height: 120px; border-radius: 50%;
  box-shadow: -20px 12px 0 0 rgb(255 255 255 / .1);
  transform: rotate(-12deg);
}
.bento-moon::after {
  content: ""; position: absolute; inset: 34px; border-radius: 50%;
  box-shadow: -8px 5px 0 0 var(--crimson-500); opacity: .9;
}
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chips li {
  padding: 6px 14px; border-radius: 999px;
  background: rgb(255 255 255 / .1); border: 1px solid rgb(255 255 255 / .18);
  color: #fff; font-weight: 600; font-size: .9rem;
}
.bento-wide {
  flex-direction: column; gap: 14px;
  background: linear-gradient(110deg, var(--crimson-50), #fff 55%, var(--green-50));
  border-color: var(--crimson-100);
}
.bento-wide h3 { font-size: clamp(1.2rem, 1rem + .9vw, 1.6rem); color: var(--crimson-700); }

@media (min-width: 768px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-feature, .bento-wide { grid-column: 1 / -1; }
  .bento-wide { flex-direction: row; align-items: center; }
  .bento-wide > div { flex: 1; }
}
@media (min-width: 1024px) {
  .bento { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .bento-feature { grid-column: span 2; grid-row: span 2; min-height: 420px; padding: 36px 34px; }
  .bento-moon { width: 160px; height: 160px; right: 40px; top: 40px; }
  .bento-moon::after { inset: 46px; }
}

/* ---------- Journey ---------- */
.journey { padding-top: 0; }
.steps { position: relative; list-style: none; display: grid; gap: 16px; }
.steps::before {
  content: ""; position: absolute; z-index: -1; left: 46px; top: 30px; bottom: 30px; width: 2px;
  background: linear-gradient(180deg, var(--green-400), var(--crimson-500));
  transform-origin: top; transform: scaleY(0); transition: transform 1.4s var(--ease);
}
.steps.is-visible::before, html:not(.js) .steps::before { transform: none; }
.step {
  position: relative; padding: 22px 22px 22px 90px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.step h3 { margin-bottom: .25em; }
.step p { margin: 0; color: var(--muted); }
.step-num {
  position: absolute; left: 22px; top: 22px;
  display: grid; place-items: center; width: 50px; height: 50px; border-radius: 16px;
  font-weight: 800; font-size: 1.1rem; color: #fff;
  background: linear-gradient(135deg, var(--green-500), var(--green-800));
  box-shadow: 0 12px 20px -12px rgb(18 90 53 / .9);
}
.step:nth-child(even) .step-num { background: linear-gradient(135deg, var(--crimson-500), var(--crimson-700)); box-shadow: 0 12px 20px -12px rgb(185 15 51 / .9); }
@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 22px; }
  .steps::before { left: 48px; right: 48px; top: 46px; bottom: auto; width: auto; height: 2px; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--green-400), var(--crimson-500)); }
  .step { padding: 92px 24px 26px; }
  .step-num { top: 22px; left: 24px; }
}

/* ---------- Appointment ---------- */
.appointment { isolation: isolate; overflow: hidden; background: var(--green-900); color: #cfe6d8; }
.appointment::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(50% 60% at 0% 0%, rgb(70 173 114 / .28), transparent 70%),
    radial-gradient(40% 50% at 100% 100%, rgb(212 42 76 / .22), transparent 70%);
}
.appointment::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: radial-gradient(rgb(255 255 255 / .09) 1px, transparent 1.4px);
  background-size: 24px 24px;
}
.appt-grid { display: grid; gap: 40px; }
.appointment h2 { color: #fff; }
.eyebrow-light { color: #ff9eb2; }
.appt-lead { font-size: 1.06rem; color: #cfe6d8; }
.appt-lead { margin-bottom: 0; }
.appt-actions { display: grid; gap: 14px; }
.appt-card {
  display: flex; align-items: center; gap: 16px; min-height: 88px; padding: 18px 20px;
  border-radius: 22px; color: #fff;
  background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .12);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: background-color .25s, border-color .25s, transform .3s var(--ease);
}
.appt-card-icon {
  display: grid; place-items: center; width: 52px; height: 52px; flex: none; border-radius: 16px;
  color: #fff; background: linear-gradient(135deg, var(--green-500), var(--green-700));
  box-shadow: 0 12px 22px -12px rgb(0 0 0 / .6);
}
.appt-card-icon .icon { width: 24px; height: 24px; }
.appt-card-fb .appt-card-icon { background: linear-gradient(135deg, #3b82f6, #1877f2); }
.appt-card-static .appt-card-icon { background: linear-gradient(135deg, var(--crimson-500), var(--crimson-700)); }
.appt-card-text { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.35; }
.appt-card-text strong { font-size: 1.08rem; }
.appt-card-text small { font-size: .9rem; color: #a7c8b5; overflow-wrap: anywhere; }
.appt-card > .icon-arrow { width: 20px; height: 20px; color: #9be0b6; transition: transform .25s var(--ease); }
@media (hover: hover) {
  a.appt-card:hover { background: rgb(255 255 255 / .11); border-color: rgb(255 255 255 / .24); transform: translateY(-3px); }
  a.appt-card:hover > .icon-arrow { transform: translateX(4px); }
}
@media (min-width: 640px) { .appt-actions { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) {
  .appt-grid { grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
  .appt-card { min-height: 104px; }
}

/* ---------- FAQ ---------- */
.faq-grid { display: grid; gap: 28px; }
.faq .section-head { margin-bottom: 0; }
.faq .section-head .btn { margin-top: 22px; }
.faq-list { display: grid; gap: 12px; }
.faq-item {
  border-radius: 18px; background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: border-color .3s, box-shadow .3s;
}
.faq-item[open] { border-color: var(--green-200); box-shadow: var(--shadow); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px; cursor: pointer; list-style: none;
  font-weight: 700; color: var(--ink); border-radius: 18px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon { position: relative; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--green-50); transition: background-color .3s; }
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 13px; height: 2px; border-radius: 2px;
  background: var(--green-700); transform: translate(-50%, -50%); transition: transform .3s var(--ease), background-color .3s;
}
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-icon { background: var(--green-700); }
.faq-item[open] .faq-icon::before, .faq-item[open] .faq-icon::after { background: #fff; }
.faq-item[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-body { padding: 0 20px 20px; }
.faq-body p { margin: 0; }
.faq-item[open] .faq-body { animation: fadeUp .4s var(--ease); }
@media (min-width: 1024px) {
  .faq-grid { grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
  .faq .section-head { position: sticky; top: calc(var(--header-h) + 32px); }
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 22px; }
.contact-info { display: grid; gap: 14px; align-content: start; }
.info-card {
  display: flex; gap: 14px; padding: 18px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.info-icon { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 14px; background: var(--green-50); color: var(--green-700); }
.info-card h3 { margin: 0 0 2px; font-size: 1rem; }
.info-card address { font-style: normal; color: var(--text); }
.info-icon-fb { background: #e8f0fe; color: #1877f2; }
.addr-en { display: block; margin-top: 4px; font-size: .88rem; color: var(--muted); }
.info-link { font-weight: 700; color: var(--green-700); word-break: break-word; }
.info-text { margin: 0; }
.open-badge {
  display: inline-flex; align-items: center; gap: 6px; margin-left: 6px; padding: 2px 10px;
  border-radius: 999px; font-size: .8rem; font-weight: 700;
  background: var(--green-50); color: var(--green-700);
}
.open-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.open-badge.is-closed { background: var(--crimson-50); color: var(--crimson-600); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.contact-actions .btn { flex: 1 1 auto; }
.map-link { display: inline-flex; align-items: center; gap: 6px; flex-basis: 100%; justify-content: center; font-weight: 700; color: var(--green-700); text-decoration: underline; text-underline-offset: 4px; }
.map-link .icon { width: 18px; height: 18px; }
.contact-map {
  position: relative; min-height: 340px; overflow: hidden;
  border-radius: var(--radius-lg); border: 6px solid #fff;
  background: var(--green-50); box-shadow: var(--shadow);
}
.contact-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.sign-card {
  display: grid; gap: 16px; align-items: center;
  margin: 28px 0 0; padding: clamp(14px, 2vw, 22px);
  border-radius: var(--radius-lg); border: 1px solid var(--line);
  background: linear-gradient(135deg, #fff, var(--green-50));
  box-shadow: var(--shadow-sm);
}
.sign-card img { width: 100%; border-radius: 12px; box-shadow: var(--shadow); }
.sign-card figcaption strong { display: block; margin-bottom: 4px; font-size: 1.15rem; color: var(--ink); }
.sign-card figcaption span { color: var(--muted); }
@media (min-width: 640px) {
  .contact-info { grid-template-columns: 1fr 1fr; }
  .info-card-wide, .contact-actions { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: 1fr 1.1fr; gap: 28px; }
  .contact-map { min-height: 100%; }
  .sign-card { grid-template-columns: 1.7fr 1fr; gap: 28px; }
}

/* ---------- Footer ---------- */
.site-footer { position: relative; overflow: hidden; padding-top: 72px; background: var(--green-950); color: #a8c4b4; }
.site-footer::before {
  content: ""; position: absolute; right: -120px; top: -140px; width: 420px; height: 420px; border-radius: 50%;
  box-shadow: -60px 34px 0 0 rgb(255 255 255 / .035); transform: rotate(-12deg); pointer-events: none;
}
.footer-grid { position: relative; display: grid; gap: 36px; }
.footer-logo {
  display: inline-block; margin-bottom: 18px; padding: 14px 16px 12px;
  border-radius: 20px; background: #fff; box-shadow: 0 20px 40px -20px rgb(0 0 0 / .6);
}
.footer-logo img { width: 150px; }
.footer-motto { color: #fff; font-weight: 700; }
.footer-social {
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px 9px 10px; border-radius: 999px;
  background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .12); color: #fff; font-weight: 600;
  transition: background-color .2s;
}
.footer-social .icon { width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: #1877f2; color: #fff; }
@media (hover: hover) { .footer-social:hover { background: rgb(255 255 255 / .12); } }
.footer-title { margin-bottom: 16px; font-size: 1.02rem; color: #fff; }
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a { transition: color .2s; }
@media (hover: hover) { .footer-col a:hover { color: #fff; } }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .icon { width: 18px; height: 18px; margin-top: 4px; color: var(--green-400); }
.footer-bottom {
  position: relative;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px;
  margin-top: 56px; padding-block: 22px;
  font-size: .88rem;
}
.footer-bottom::before {
  content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter);
  height: 1px; background: rgb(255 255 255 / .1);
}
.footer-bottom p { margin: 0; }
.footer-copy { width: 100%; text-align: center; font-size: .8rem; }
.footer-credit { color: #fff; font-weight: 600; text-decoration: none; transition: color .2s; }
@media (hover: hover) { .footer-credit:hover { color: var(--green-200); } }
@media (max-width: 1023px) {
  /* smaller on phones/tablets; side padding keeps the centred line clear of the back-to-top button */
  .footer-bottom { padding-inline: 72px; }
  .footer-copy { font-size: .72rem; color: #86a492; }
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 48px; } }

/* ---------- Floating actions ---------- */
.fab-stack {
  position: fixed; z-index: 40;
  right: max(16px, env(safe-area-inset-right));
  bottom: calc(16px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column-reverse; align-items: center; gap: 12px;
}
.fab {
  position: relative; display: grid; place-items: center; width: 56px; height: 56px;
  border: 0; border-radius: 50%; cursor: pointer;
  box-shadow: 0 16px 30px -12px rgb(0 0 0 / .4);
  transition: transform .3s var(--ease), opacity .3s, visibility .3s;
}
.fab .icon { width: 26px; height: 26px; }
.fab-top { width: 48px; height: 48px; color: var(--green-800); background: #fff; opacity: 0; visibility: hidden; transform: translateY(14px); }
.fab-top .icon { width: 20px; height: 20px; }
.fab-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.progress-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.progress-ring circle { fill: none; stroke: var(--green-500); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 138.2; stroke-dashoffset: 138.2; }
@media (hover: hover) { .fab:hover { transform: translateY(-3px); } }

/* ---------- Reveal on scroll ---------- */
.js .reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Keyframes ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } }
@keyframes bob { 50% { transform: translateY(-8px); } }
@keyframes drift { to { transform: translate(-40px, 30px) scale(1.08); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes ping { 0% { transform: scale(1); opacity: .55; } 80%, 100% { transform: scale(2.3); opacity: 0; } }
@keyframes ecg { to { stroke-dashoffset: 0; } }
@keyframes marquee { to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .ecg-pulse { display: none; }
}
