/* AMIC Dialysis Centre
   Built on the Halcyon hero language (glass pills, hairlines, a slow "settle"
   entrance) and re-coloured from the AMIC logo: royal blue + leaf green. */
:root {
  --blue: #2448b6;
  --blue-600: #1d3a96;
  --blue-900: #0b1d4d;
  --blue-950: #06112e;
  --blue-50: #eef2fc;
  --blue-100: #dde5f8;
  --green: #66ba31;
  --green-600: #4f9a22;
  --green-50: #eef8e6;

  --ink: #0f1a33;
  --ink-2: #44506b;
  --ink-3: #6b7690;
  --line: #e2e7f1;
  --paper: #ffffff;
  --paper-2: #f6f8fc;

  --warn: #b4540a;
  --warn-50: #fff4e6;
  --danger: #c0392b;

  --glass: rgba(10, 26, 70, 0.34);
  --hair: rgba(255, 255, 255, 0.24);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: clamp(20px, 6vw, 96px);
  --radius: 22px;
  --shadow: 0 1px 2px rgba(15, 26, 51, .05), 0 12px 32px -12px rgba(15, 26, 51, .14);

  --font: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { border: 0; background: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

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

.skip-link {
  position: absolute; left: -9999px; top: 12px; z-index: 100;
  padding: 10px 18px; border-radius: 999px; background: #fff; color: var(--blue-900); font-size: 14px;
}
.skip-link:focus { left: 12px; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- pill (from Halcyon) ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 1px solid var(--hair); border-radius: 999px;
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2);
  color: #fff; white-space: nowrap; letter-spacing: -0.005em;
  transition: background-color .5s var(--ease), border-color .5s var(--ease), transform .5s var(--ease);
}
.pill:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .45); }
.pill--solid { background: var(--green); border-color: var(--green); color: #fff; font-weight: 500; }
.pill--solid:hover { background: var(--green-600); border-color: var(--green-600); }

/* ---------- buttons (light surfaces) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border-radius: 999px;
  font-weight: 500; font-size: 15px; white-space: nowrap;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-600); }
.btn--ghost { border: 1px solid var(--line); background: #fff; color: var(--ink); }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn--danger { border: 1px solid #f1cdc8; background: #fff; color: var(--danger); }
.btn--danger:hover { background: #fdf0ee; }
.btn--sm { min-height: 38px; padding: 0 16px; font-size: 14px; }

.chip {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 38px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; font-size: 14px; font-weight: 500;
  transition: all .25s var(--ease);
}
.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip.is-on { background: var(--blue); border-color: var(--blue); color: #fff; }
.chip--muted { color: var(--ink-3); }

/* ======================= NAV ======================= */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px var(--gutter);
  transition: background-color .4s var(--ease), padding .4s var(--ease), box-shadow .4s var(--ease);
}
.nav.is-scrolled {
  padding-top: 10px; padding-bottom: 10px;
  background: rgba(6, 17, 46, .78);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .08);
}
.nav__brand {
  display: inline-flex; align-items: center;
  padding: 4px 12px; border-radius: 16px; background: #fff;
  box-shadow: 0 8px 24px -10px rgba(0, 0, 0, .45);
}
.nav__brand img { transition: height .4s var(--ease); }
.nav__brand img { height: clamp(42px, 4vw, 54px); width: auto; }
.nav.is-scrolled .nav__brand img { height: clamp(38px, 3.4vw, 46px); }

.nav__pill { display: none; padding: 5px; }
.nav__pill ul { display: flex; gap: 2px; padding: 0; list-style: none; }
.nav__pill a {
  display: block; padding: 9px 16px; border-radius: 999px; font-size: 14px;
  color: rgba(255, 255, 255, .76); transition: color .4s var(--ease), background-color .4s var(--ease);
}
.nav__pill a:hover { color: #fff; }
.nav__pill a.is-active { color: #fff; background: rgba(255, 255, 255, .15); }

.nav__end { display: flex; align-items: center; gap: 10px; }
.nav__cta { display: none; padding: 11px 20px; font-size: 14px; }
.nav__round { width: 44px; height: 44px; padding: 0; }
.nav__round svg { width: 46%; height: 46%; }
.nav__burger .i-close { display: none; }
.nav__burger[aria-expanded="true"] .i-close { display: block; }
.nav__burger[aria-expanded="true"] .i-menu { display: none; }

.nav__sheet {
  position: fixed; inset: 80px 14px auto; padding: 12px;
  border: 1px solid rgba(255, 255, 255, .12); border-radius: 26px;
  background: rgba(6, 17, 46, .96); backdrop-filter: blur(22px); color: #fff;
  animation: drop .45s var(--ease) both;
}
.nav__sheet ul { padding: 0; list-style: none; display: grid; gap: 2px; }
.nav__sheet ul a { display: block; padding: 14px 16px; border-radius: 999px; font-size: 18px; font-weight: 300; }
.nav__sheet ul a:hover { background: rgba(255, 255, 255, .08); }
.nav__sheet-cta { width: 100%; margin-top: 8px; padding: 14px; }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }

@media (min-width: 980px) {
  .nav__pill { display: block; }
  .nav__burger { display: none; }
  .nav__cta { display: inline-flex; }
}

/* ======================= HERO ======================= */
.hero {
  position: relative; isolation: isolate;
  display: flex; flex-direction: column;
  min-height: 100svh; overflow: hidden; color: #fff;
  padding: clamp(140px, 26vh, 240px) var(--gutter) clamp(36px, 7vh, 64px);
  background: linear-gradient(170deg, var(--blue-950) 0%, var(--blue-900) 45%, #102c7a 100%);
}
.hero__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero__video { width: 100%; height: 100%; object-fit: cover; opacity: 0; filter: blur(10px); transition: opacity 1.4s var(--ease), filter 1.6s var(--ease); }
.hero__video.is-ready { opacity: .55; filter: blur(0); }

.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .7; will-change: transform; }
.orb--a { width: 52vw; height: 52vw; right: -12vw; top: -14vw; background: radial-gradient(circle, #3460e0 0%, rgba(36, 72, 182, 0) 70%); animation: float 18s ease-in-out infinite; }
.orb--b { width: 38vw; height: 38vw; right: 8vw; bottom: -16vw; background: radial-gradient(circle, rgba(102, 186, 49, .75) 0%, rgba(102, 186, 49, 0) 70%); animation: float 22s ease-in-out infinite reverse; }
.orb--c { width: 30vw; height: 30vw; left: 30vw; top: 10vh; background: radial-gradient(circle, rgba(120, 160, 255, .35) 0%, rgba(120, 160, 255, 0) 70%); animation: float 26s ease-in-out infinite; }
@keyframes float {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-3vw, 2vw, 0) scale(1.08); }
}

.hero__arc { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; }
.hero__arc path { stroke: var(--green); stroke-width: 3; stroke-linecap: round; opacity: .55; stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: draw 3.2s .4s var(--ease) forwards; }
.hero__arc path + path { stroke: #4a72e8; stroke-width: 1.4; opacity: .5; animation-delay: .8s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.hero__pulse { position: absolute; left: 0; right: 0; bottom: 22%; width: 100%; height: 90px; fill: none; opacity: .28; }
.hero__pulse path { stroke: #9fc4ff; stroke-width: 1.5; stroke-dasharray: 260 1400; animation: beat 4.5s linear infinite; }
@keyframes beat { from { stroke-dashoffset: 1660; } to { stroke-dashoffset: 0; } }

.hero__scrim { position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(6, 17, 46, .7) 0%, rgba(6, 17, 46, .25) 45%, rgba(6, 17, 46, 0) 70%),
  linear-gradient(0deg, rgba(6, 17, 46, .7) 0%, rgba(6, 17, 46, 0) 35%); }

.hero__copy { max-width: 680px; }
.hero__badge { padding: 6px 16px 6px 8px; font-size: 13px; color: rgba(255, 255, 255, .86); }
.hero__dot { width: 22px; height: 22px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(102, 186, 49, .25); animation: pulse 2.6s var(--ease) infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(102, 186, 49, 0); } }

.hero__title {
  margin-top: 24px; font-size: clamp(2.5rem, 5.4vw, 4.6rem);
  font-weight: 300; line-height: 1.02; letter-spacing: -0.025em;
  text-shadow: 0 4px 34px rgba(0, 10, 24, .35);
}
.hero__sub { margin-top: 18px; max-width: 540px; font-size: clamp(15px, 1.25vw, 17.5px); color: rgba(255, 255, 255, .78); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero__cta { padding: 15px 26px; font-size: 15px; }
.hero__cta svg { width: 18px; height: 18px; transition: transform .4s var(--ease); }
.hero__cta:hover svg { transform: translateX(3px); }

.hero__figures {
  display: flex; flex-wrap: wrap; gap: clamp(28px, 5vw, 80px);
  margin: auto 0 0; padding-top: clamp(56px, 10vh, 110px);
}
.figure { display: grid; gap: 2px; padding-left: 16px; border-left: 2px solid var(--green); }
.figure__value { font-size: clamp(1.15rem, 1.7vw, 1.6rem); letter-spacing: -0.018em; }
.figure__label { margin: 0; font-size: 13px; color: rgba(255, 255, 255, .6); }

/* glance card — a live preview of the patient's own tracker */
.glance {
  display: none; position: absolute; right: var(--gutter); top: 50%; z-index: 1; width: 330px;
  padding: 22px; border-radius: 26px; border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .07); backdrop-filter: blur(22px) saturate(1.3); -webkit-backdrop-filter: blur(22px) saturate(1.3);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .6);
  transform: translateY(-46%); animation: settleCard 1.5s .55s var(--ease) both;
}
@keyframes settleCard { from { opacity: 0; transform: translateY(-40%); } to { opacity: 1; transform: translateY(-46%); } }
@media (min-width: 1180px) { .glance { display: block; } }
.glance__head { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: rgba(255, 255, 255, .7); }
.glance__live { display: inline-flex; align-items: center; gap: 6px; color: var(--green); font-weight: 500; }
.glance__live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 2s infinite; }
.glance__row { display: flex; align-items: center; gap: 16px; margin-top: 18px; }
.glance__ring { position: relative; width: 92px; height: 92px; flex: none; }
.glance__ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.glance__ring circle { fill: none; stroke-width: 9; stroke-linecap: round; }
.glance__ring .bg { stroke: rgba(255, 255, 255, .12); }
.glance__ring .fg { stroke: var(--green); stroke-dasharray: 238.8; stroke-dashoffset: 238.8; transition: stroke-dashoffset 1.4s var(--ease); }
.glance__ring b { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; font-size: 20px; font-weight: 400; line-height: 1.1; }
.glance__ring b small { display: block; font-size: 11px; color: rgba(255, 255, 255, .6); font-weight: 400; }
.glance__stats { display: grid; gap: 10px; font-size: 13px; color: rgba(255, 255, 255, .62); }
.glance__stats strong { display: block; color: #fff; font-size: 18px; font-weight: 400; }
.glance__spark { margin-top: 18px; height: 54px; }
.glance__spark svg { width: 100%; height: 100%; overflow: visible; }
.glance__foot { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13px; }
.glance__foot span { color: rgba(255, 255, 255, .6); }
.glance__foot a { color: #fff; font-weight: 500; }
.glance__foot a:hover { color: var(--green); }

/* entrance: Halcyon's settle */
.hero__copy > *, .hero__figures { animation: settle 1.35s var(--ease) both; }
.hero__title { animation-delay: .1s; }
.hero__sub { animation-delay: .2s; }
.hero__actions { animation-delay: .3s; }
.hero__figures { animation-delay: .45s; }
@keyframes settle {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

/* ======================= SECTIONS ======================= */
.section { padding: clamp(72px, 11vw, 140px) 0; }
.section--tint { background: linear-gradient(180deg, var(--paper-2), #fff); }
.section--deep { background: linear-gradient(160deg, var(--blue-950), var(--blue-900) 60%, #123383); color: #fff; }
.section__head { max-width: 640px; margin-bottom: clamp(36px, 5vw, 60px); }
.section__head--row { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; }
.section__head--row > div { max-width: 640px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--green-600);
}
.eyebrow::before { content: ''; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow--light { color: var(--green); }
h2 { margin-top: 14px; font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 400; line-height: 1.08; letter-spacing: -0.022em; }
h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.lede { margin-top: 14px; font-size: 17px; color: var(--ink-2); }
.section--deep .lede { color: rgba(255, 255, 255, .72); }
.muted { color: var(--ink-3); }
.note { font-size: 13px; color: var(--ink-3); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- care cards ---------- */
.cards { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.card {
  position: relative; padding: 30px 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--blue-100); }
.card__icon { display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 22px; border-radius: 15px; background: var(--blue-50); color: var(--blue); }
.card:nth-child(even) .card__icon { background: var(--green-50); color: var(--green-600); }
.card__icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.card p { margin-top: 8px; color: var(--ink-2); font-size: 15px; }

.steps { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); margin-top: 40px; padding: 0; list-style: none; }
.steps li { display: flex; gap: 16px; padding: 22px; border-radius: var(--radius); background: var(--paper-2); }
.steps span { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 600; }
.steps p { margin-top: 2px; font-size: 14.5px; color: var(--ink-2); }

/* ======================= BOOKING ======================= */
.book { display: grid; gap: 40px; }
@media (min-width: 1020px) { .book { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; } }
.book__aside { margin-top: 32px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.book__aside h3 { font-size: 16px; }
.mybookings { display: grid; gap: 8px; margin: 12px 0 10px; padding: 0; list-style: none; font-size: 14.5px; }
.mybookings li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--paper-2); }
.mybookings strong { display: block; font-weight: 600; }
.mybookings small { color: var(--ink-3); }
.mybookings button { font-size: 13px; color: var(--danger); padding: 4px 8px; border-radius: 8px; }
.mybookings button:hover { background: #fdf0ee; }

.booker { position: relative; padding: clamp(22px, 3vw, 36px); border-radius: 28px; background: #fff; box-shadow: var(--shadow); border: 1px solid var(--line); }
.booker__progress { display: flex; gap: 6px; padding: 0; margin-bottom: 26px; list-style: none; counter-reset: s; }
.booker__progress li {
  flex: 1; counter-increment: s; padding-top: 10px; font-size: 12.5px; font-weight: 500; color: var(--ink-3);
  border-top: 3px solid var(--line); transition: all .4s var(--ease);
}
.booker__progress li::before { content: counter(s) '. '; }
.booker__progress li.is-on { color: var(--blue); border-color: var(--blue); }
.booker__progress li.is-done { color: var(--green-600); border-color: var(--green); }

.booker__step { display: none; border: 0; padding: 0; min-width: 0; }
.booker__step.is-current { display: block; animation: settle .7s var(--ease) both; }
.booker__step legend { padding: 0; margin-bottom: 18px; font-size: 22px; font-weight: 500; letter-spacing: -0.015em; }
.booker__label { margin: 24px 0 12px; font-weight: 500; }
.booker__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; }

.choices { display: grid; gap: 10px; }
.choice { position: relative; display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border: 1.5px solid var(--line); border-radius: 16px; cursor: pointer; transition: all .3s var(--ease); }
.choice:hover { border-color: var(--blue-100); background: var(--paper-2); }
.choice input { position: absolute; opacity: 0; }
.choice__radio { flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; border: 2px solid #c3cbe0; transition: all .3s var(--ease); }
.choice strong { display: block; font-weight: 600; }
.choice small { color: var(--ink-3); font-size: 13.5px; }
.choice__time { margin-left: auto; font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }
.choice:has(input:checked) { border-color: var(--blue); background: var(--blue-50); }
.choice:has(input:checked) .choice__radio { border-color: var(--blue); border-width: 6px; }
.choice:has(input:focus-visible) { outline: 2px solid var(--green); outline-offset: 2px; }

.dates { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.date {
  flex: none; scroll-snap-align: start; display: grid; justify-items: center; gap: 2px;
  width: 68px; padding: 10px 0 12px; border: 1.5px solid var(--line); border-radius: 16px; background: #fff;
  transition: all .3s var(--ease);
}
.date small { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.date strong { font-size: 21px; font-weight: 500; line-height: 1.1; }
.date em { font-style: normal; font-size: 11.5px; color: var(--ink-3); }
.date:hover:not(:disabled) { border-color: var(--blue); }
.date[aria-checked="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.date[aria-checked="true"] small, .date[aria-checked="true"] em { color: rgba(255, 255, 255, .78); }
.date:disabled { opacity: .38; cursor: not-allowed; text-decoration: line-through; }

.slots { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.slot { padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; text-align: left; transition: all .3s var(--ease); }
.slot strong { display: block; font-weight: 600; }
.slot small { color: var(--ink-3); font-size: 13px; }
.slot:hover { border-color: var(--blue); }
.slot[aria-checked="true"] { border-color: var(--green); background: var(--green-50); }
.slot[aria-checked="true"] small { color: var(--green-600); }

.grid2, .grid3 { display: grid; gap: 14px; }
@media (min-width: 640px) { .grid2 { grid-template-columns: 1fr 1fr; } .grid3 { grid-template-columns: repeat(3, 1fr); } }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.grid2 .field, .grid3 .field { margin-bottom: 0; }
.grid2 + .field, .grid3 + .field, .grid3 + fieldset { margin-top: 14px; }
.field > span { font-size: 13.5px; font-weight: 500; color: var(--ink-2); }
.field em { font-style: normal; color: var(--ink-3); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(36, 72, 182, .12); }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--blue); }
.form-error { margin-top: 14px; padding: 10px 14px; border-radius: 12px; background: #fdf0ee; color: var(--danger); font-size: 14px; }

.booker__done { text-align: center; padding: 20px 0 6px; }
.booker__done.is-current { display: block; }
.done__tick { width: 72px; height: 72px; margin: 0 auto 18px; }
.done__tick svg { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.done__tick circle { stroke: var(--green); stroke-dasharray: 160; stroke-dashoffset: 160; animation: draw .9s var(--ease) forwards; }
.done__tick path { stroke: var(--green); stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .5s .6s var(--ease) forwards; }
.booker__done h3 { font-size: 26px; font-weight: 500; }
.booker__done p { margin-top: 8px; color: var(--ink-2); }
.ref strong { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--blue); letter-spacing: .04em; }
.done__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }

/* ======================= TRACKER ======================= */
.privacy { display: inline-flex; align-items: center; gap: 10px; max-width: 360px; padding: 12px 16px; border-radius: 14px; background: var(--green-50); color: #2f6413; font-size: 14px; }
.privacy svg { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; }

.tracker { display: grid; gap: 18px; }
@media (min-width: 1020px) { .tracker { grid-template-columns: 340px minmax(0, 1fr); align-items: start; } }
.panel { padding: clamp(20px, 2.6vw, 30px); border: 1px solid var(--line); border-radius: 26px; background: #fff; box-shadow: var(--shadow); min-width: 0; }
.today h3 { font-size: 16px; }

.ring { position: relative; width: 190px; height: 190px; margin: 14px auto 16px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 10; stroke-linecap: round; }
.ring__bg { stroke: var(--blue-50); }
.ring__fg { stroke: var(--blue); stroke-dasharray: 326.7; stroke-dashoffset: 326.7; transition: stroke-dashoffset .9s var(--ease), stroke .4s; }
.ring.is-near .ring__fg { stroke: #e0a100; }
.ring.is-over .ring__fg { stroke: var(--warn); }
.ring__txt { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring__txt strong { font-size: 40px; font-weight: 400; line-height: 1; letter-spacing: -0.03em; }
.ring__txt span { font-size: 13px; color: var(--ink-3); margin-top: 6px; }
.fluid-btns { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.fluid-btns .chip { padding: 0 6px; }

.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.kpis div { padding: 12px 14px; border-radius: 14px; background: var(--paper-2); }
.kpis span { display: block; font-size: 12px; color: var(--ink-3); }
.kpis strong { font-size: 18px; font-weight: 500; letter-spacing: -0.01em; }
.kpis .is-warn { color: var(--warn); }
.kpis small { display: block; font-size: 12px; font-weight: 400; color: var(--ink-3); }
.kpis .is-warn small { color: var(--warn); }

.targets { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.targets summary { cursor: pointer; font-weight: 500; color: var(--blue); list-style: none; }
.targets summary::-webkit-details-marker { display: none; }
.targets summary::after { content: ' +'; }
.targets[open] summary::after { content: ' −'; }
.targets__form { margin-top: 14px; }
.targets__form .note { margin-top: 10px; }

.tabs { display: flex; gap: 4px; padding: 4px; margin-bottom: 24px; border-radius: 999px; background: var(--paper-2); width: max-content; max-width: 100%; overflow-x: auto; }
.tabs button { padding: 9px 18px; border-radius: 999px; font-size: 14.5px; font-weight: 500; color: var(--ink-2); white-space: nowrap; transition: all .3s var(--ease); }
.tabs button[aria-selected="true"] { background: #fff; color: var(--blue); box-shadow: 0 1px 3px rgba(15, 26, 51, .12); }
.tabpanel { animation: settle .6s var(--ease) both; }

.symptoms { border: 0; padding: 0; margin-top: 18px; }
.symptoms legend { font-size: 13.5px; font-weight: 500; color: var(--ink-2); margin-bottom: 8px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; }
.chips span { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line); font-size: 14px; transition: all .25s var(--ease); }
.chips input:checked + span { border-color: var(--blue); background: var(--blue-50); color: var(--blue); }
.chips input:focus-visible + span { outline: 2px solid var(--green); outline-offset: 2px; }
.logform .field:last-of-type { margin-top: 16px; }
.logform__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 8px; }
.flag { flex: 1 1 260px; padding: 10px 14px; border-radius: 12px; background: var(--warn-50); color: var(--warn); font-size: 14px; }

.range { display: flex; gap: 8px; margin-bottom: 18px; }
.chart { margin-bottom: 22px; }
.chart figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 14px; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.legend { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-weight: 400; font-size: 12.5px; color: var(--ink-3); }
.lg { display: inline-block; width: 14px; height: 3px; border-radius: 3px; margin-right: -6px; vertical-align: middle; }
.lg--pre, .lg--sys { background: var(--blue); }
.lg--post, .lg--dia { background: var(--green); }
.lg--dry, .lg--lim { background: repeating-linear-gradient(90deg, #b4540a 0 4px, transparent 4px 7px); }
.chart__box { position: relative; height: 200px; border-radius: 16px; background: var(--paper-2); }
.chart__box svg { width: 100%; height: 100%; overflow: visible; }
.chart__box .grid line { stroke: #e3e8f2; }
.chart__box .ax { font-size: 11px; fill: var(--ink-3); }
.chart__empty { position: absolute; inset: 0; display: grid; place-items: center; font-size: 14px; color: var(--ink-3); text-align: center; padding: 20px; }
.chart__tip { position: absolute; pointer-events: none; padding: 6px 10px; border-radius: 10px; background: var(--blue-950); color: #fff; font-size: 12.5px; white-space: nowrap; transform: translate(-50%, -120%); opacity: 0; transition: opacity .2s; }

.history__tools { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.history__tools label { cursor: pointer; }
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; }
.history { width: 100%; border-collapse: collapse; font-size: 14px; }
.history th { text-align: left; font-weight: 600; font-size: 12.5px; color: var(--ink-3); background: var(--paper-2); padding: 10px 12px; white-space: nowrap; }
.history td { padding: 11px 12px; border-top: 1px solid var(--line); vertical-align: top; }
.history td:nth-child(-n+5) { white-space: nowrap; }
.history .tag { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 500; background: var(--blue-50); color: var(--blue); }
.history .tag--post { background: var(--green-50); color: var(--green-600); }
.history .tag--home { background: #f1f2f6; color: var(--ink-2); }
.history .del { color: var(--ink-3); padding: 2px 8px; border-radius: 8px; }
.history .del:hover { color: var(--danger); background: #fdf0ee; }
.history .warn { color: var(--warn); font-weight: 600; }

.disclaimer { margin-top: 22px; padding: 16px 20px; border-left: 3px solid var(--warn); border-radius: 0 14px 14px 0; background: var(--warn-50); font-size: 14px; color: #6b3a0f; }

/* ======================= CONTACT / FOOTER ======================= */
.contact { display: grid; gap: 40px; }
@media (min-width: 900px) { .contact { grid-template-columns: 1.1fr .9fr; align-items: center; } }
.contact__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.contact__actions .pill { padding: 13px 22px; }
.contact__list { display: grid; gap: 2px; padding: 8px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 24px; background: rgba(255, 255, 255, .04); }
.contact__list div { display: grid; grid-template-columns: 90px 1fr; gap: 16px; padding: 16px 18px; border-radius: 16px; }
.contact__list div + div { border-top: 1px solid rgba(255, 255, 255, .08); }
.contact__list dt { font-size: 13px; color: rgba(255, 255, 255, .55); }
.contact__list dd { margin: 0; }

.footer { padding: 30px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-3); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer img { height: 44px; width: auto; }
.footer a:hover { color: var(--blue); }

.toast {
  visibility: hidden;
  position: fixed; left: 50%; bottom: 24px; z-index: 50; transform: translate(-50%, 140%);
  padding: 13px 20px; border-radius: 999px; background: var(--blue-950); color: #fff; font-size: 14.5px;
  box-shadow: 0 14px 40px -12px rgba(0, 0, 0, .45); transition: transform .5s var(--ease); max-width: calc(100% - 32px);
}
.toast.is-on { visibility: visible; transform: translate(-50%, 0); }

/* ======================= RESPONSIVE ======================= */
@media (max-width: 640px) {
  .hero__actions .pill { flex: 1 1 100%; }
  .figure { flex: 1 1 140px; }
  .booker__nav .btn { flex: 1; }
  .choice__time { display: none; }
}

/* ======================= PRINT (report for doctor) ======================= */
@media print {
  body > *:not(main), main > section:not(#tracker), .tracker .today, .tabs, .history__tools, .privacy, .disclaimer, .range, #tab-log { display: none !important; }
  #tracker { padding: 0; }
  .reveal { opacity: 1; transform: none; }
  .panel { box-shadow: none; border: 0; padding: 0; }
  #tab-trends, #tab-history { display: block !important; }
  .history .del { display: none; }
  .section__head::after { content: 'Patient health log — printed from the AMIC Dialysis Centre tracker'; display: block; margin-top: 8px; font-size: 13px; color: #555; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
.btn--wa { background: #1fa855; }
.btn--wa:hover { background: #168a45; }
@media (max-width: 760px) {
  .hero { padding-top: clamp(120px, 17vh, 160px); }
  .hero__pulse { display: none; }
}

/* =====================================================================
   v2 — content from the AMIC reference site
   ===================================================================== */
:root { --serif: 'Instrument Serif', Georgia, serif; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; }
.hero__title em { color: #9be06b; }
h2 em { color: var(--green-600); }

/* language switch */
.lang { padding: 3px; gap: 2px; }
.lang button { min-width: 38px; padding: 7px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,.7); transition: all .3s var(--ease); }
.lang button[aria-pressed="true"] { background: #fff; color: var(--blue-900); }

/* hero faces (from Halcyon), tinted with brand colours */
.hero__faces { display: inline-flex; }
.hero__faces i { width: 20px; height: 20px; margin-left: -7px; border-radius: 50%; border: 1.5px solid rgba(6,17,46,.8); }
.hero__faces i:first-child { margin-left: 0; background: linear-gradient(150deg, #9be06b, #4f9a22); }
.hero__faces i:nth-child(2) { background: linear-gradient(150deg, #8fb0ff, #2448b6); }
.hero__faces i:nth-child(3) { background: linear-gradient(150deg, #e6c1a4, #b07d5c); }
.hero__faces i:nth-child(4) { background: linear-gradient(150deg, #c3b6e8, #7a63c0); }
.hero__badge { padding-left: 6px; }
.hero__photo { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.4s var(--ease); }
.hero__photo.has-photo { opacity: .38; }

/* marquee */
.marquee { overflow: hidden; background: var(--blue-950); color: rgba(255,255,255,.75); border-top: 1px solid rgba(255,255,255,.08); }
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee span { display: inline-flex; align-items: center; gap: 28px; padding: 16px 0 16px 28px; font-size: 15px; white-space: nowrap; }
.marquee span::after { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* photo slots (branded tile until a real photo is set in config) */
.ph {
  position: relative; overflow: hidden; margin: 0; border-radius: 24px; background-size: cover; background-position: center;
  background-color: var(--blue-900);
  background-image:
    radial-gradient(120% 80% at 100% 0%, rgba(52, 96, 224, .85), transparent 60%),
    radial-gradient(90% 70% at 0% 100%, rgba(102, 186, 49, .55), transparent 60%),
    linear-gradient(160deg, #0b1d4d, #06112e);
}
.ph::before { content: ''; position: absolute; right: -30px; bottom: -40px; width: 70%; aspect-ratio: 1; border-radius: 50%; border: 2px solid rgba(155, 224, 107, .35); }
.ph.has-photo::before { display: none; }
.ph::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(6, 17, 46, .75)); }
.ph figcaption, .ph__label { position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 1; color: #fff; font-size: 17px; }
.ph__n { position: absolute; top: 16px; left: 18px; z-index: 1; font-size: 12px; color: rgba(255,255,255,.7); letter-spacing: .1em; }

/* about */
.about { display: grid; gap: clamp(32px, 5vw, 72px); }
@media (min-width: 960px) { .about { grid-template-columns: .9fr 1.1fr; align-items: center; } }
.about__media { position: relative; }
.ph--tall { aspect-ratio: 4 / 5; }
.about__chip { position: absolute; right: -10px; bottom: 28px; display: grid; padding: 16px 20px; border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
.about__chip b { font-size: 28px; font-weight: 500; color: var(--blue); line-height: 1; }
.about__chip span { font-size: 13px; color: var(--ink-3); }
.about .lede + .lede { margin-top: 12px; }
.pillars { display: grid; gap: 10px; margin: 28px 0 0; padding: 0; list-style: none; }
.pillars li { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 16px; background: var(--paper-2); }
.pillars__icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #fff; color: var(--blue); }
.pillars__icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pillars strong { display: block; font-weight: 600; }
.pillars small { color: var(--ink-3); font-size: 14px; }
.about__family { margin-top: 18px; }

/* services */
.cards--4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.card { display: flex; flex-direction: column; }
.card p { flex: 1; }
.card__link { margin-top: 16px; font-size: 14px; font-weight: 600; color: var(--blue); }
.card__link:hover { color: var(--green-600); }
.card--alert .card__icon { background: #fdeceb; color: var(--danger); }
.card--alert .card__link { color: var(--danger); }
.promise { margin: clamp(48px, 7vw, 90px) auto 0; text-align: center; }
.promise blockquote { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 300; line-height: 1.05; letter-spacing: -0.02em; }
.promise em { color: var(--green-600); }
.promise figcaption { margin-top: 14px; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }

/* how it works */
.timeline { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); padding: 0; list-style: none; counter-reset: x; }
.timeline li { position: relative; padding: 26px 24px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.timeline span { display: block; font-family: var(--serif); font-size: 44px; line-height: 1; color: var(--green); }
.timeline strong { display: block; margin-top: 14px; font-size: 18px; font-weight: 600; }
.timeline p { margin-top: 6px; color: var(--ink-2); font-size: 15px; }

/* gallery */
.gallery { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--gutter) 8px; scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery .ph { flex: none; width: clamp(240px, 30vw, 380px); aspect-ratio: 4 / 5; scroll-snap-align: start; }
.gallery__nav { display: flex; gap: 8px; }
.gallery__nav .nav__round { display: inline-flex; }
@media (min-width: 1240px) { .gallery { padding-left: max(var(--gutter), calc((100vw - 1240px) / 2 + var(--gutter))); } }

/* stories */
.reviews { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.review { margin: 0; padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.review__stars { color: #f0a500; letter-spacing: 2px; }
.review blockquote { margin-top: 10px; font-size: 16px; color: var(--ink-2); }
.review figcaption { margin-top: 14px; font-size: 14px; color: var(--ink-3); }
.review figcaption b { color: var(--ink); }
.reviews__empty { grid-column: 1 / -1; display: grid; justify-items: center; gap: 10px; padding: 46px 20px; border: 1.5px dashed var(--line); border-radius: var(--radius); text-align: center; color: var(--ink-3); }
.reviews__empty svg { width: 34px; height: 34px; fill: none; stroke: var(--blue); stroke-width: 1.5; stroke-linejoin: round; }

.stars { display: flex; gap: 4px; margin: 6px 0 16px; }
.stars button { font-size: 30px; line-height: 1; color: #d6dbe6; transition: transform .2s, color .2s; }
.stars button.on { color: #f0a500; }
.stars button:hover { transform: scale(1.12); }

/* booking extras */
.contact-mini { display: grid; gap: 12px; margin: 26px 0 0; padding: 0; list-style: none; font-size: 15px; }
.contact-mini li { display: flex; gap: 12px; align-items: flex-start; }
.contact-mini svg { flex: none; width: 20px; height: 20px; margin-top: 2px; fill: none; stroke: var(--green-600); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.contact-mini small { display: block; color: var(--ink-3); font-size: 13px; }
.contact-mini a:hover { color: var(--blue); }
.booker .check + .check, .firstvisit + .check { margin-top: 12px; }
.firstvisit { margin-top: 10px; padding: 12px 14px; border-radius: 12px; background: var(--blue-50); color: var(--blue-600); font-size: 14px; }
.choices { max-height: 470px; overflow-y: auto; padding-right: 2px; }
.limit-hint { margin-top: 12px; font-size: 13px; color: var(--ink-3); text-align: center; }

/* tips */
.tipfilter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.tips { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.tip { display: flex; flex-direction: column; padding: 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--blue); transition: transform .4s var(--ease), box-shadow .4s var(--ease); animation: settle .6s var(--ease) both; }
.tip--diet { border-top-color: var(--green); }
.tip--session { border-top-color: #7a63c0; }
.tip:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.tip__cat { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.tip h3 { margin-top: 10px; }
.tip p:not(.tip__cat) { flex: 1; margin-top: 8px; color: var(--ink-2); font-size: 15px; }
.tip__btn { align-self: flex-start; margin-top: 16px; font-weight: 600; color: var(--blue); }
.tip__btn:hover { color: var(--green-600); }

/* modal */
.modal { width: min(620px, calc(100% - 28px)); max-height: calc(100svh - 40px); padding: clamp(24px, 4vw, 36px); border: 0; border-radius: 26px; color: var(--ink); box-shadow: 0 40px 100px -30px rgba(6,17,46,.6); }
.modal[open] { animation: settle .5s var(--ease) both; }
.modal::backdrop { background: rgba(6, 17, 46, .55); backdrop-filter: blur(4px); }
.modal h3 { font-size: 24px; font-weight: 500; margin: 6px 0 12px; }
.modal__close { position: absolute; top: 14px; right: 14px; }
.modal__close button { width: 38px; height: 38px; border-radius: 50%; background: var(--paper-2); color: var(--ink-2); }
.modal__body { color: var(--ink-2); }
.modal__body p + p, .modal__body p + ul, .modal__body ul + p { margin-top: 12px; }
.modal__body ul { padding-left: 20px; display: grid; gap: 8px; }
.modal .note { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }

/* find us */
.find { display: grid; gap: 40px; }
@media (min-width: 960px) { .find { grid-template-columns: 1fr 1fr; align-items: stretch; } }
.find__addr { margin-top: 18px; font-size: 17px; }
.find__from { margin-top: 28px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.from { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 14px; }
.from__chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); font-size: 14px; transition: all .3s var(--ease); }
.from__chip:hover { background: rgba(255,255,255,.1); border-color: var(--green); }
.from__chip svg { width: 16px; height: 16px; fill: none; stroke: var(--green); stroke-width: 1.8; }
.note--light { color: rgba(255,255,255,.55); }
.map { min-height: 380px; border-radius: 26px; overflow: hidden; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04); }
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }
.map__placeholder { height: 100%; min-height: 380px; display: grid; place-content: center; justify-items: center; gap: 12px; padding: 30px; text-align: center;
  background: radial-gradient(circle at 50% 40%, rgba(102,186,49,.18), transparent 55%), repeating-linear-gradient(0deg, rgba(255,255,255,.04) 0 1px, transparent 1px 40px), repeating-linear-gradient(90deg, rgba(255,255,255,.04) 0 1px, transparent 1px 40px); }
.map__placeholder svg { width: 46px; height: 46px; fill: none; stroke: var(--green); stroke-width: 1.5; }
.map__placeholder p { max-width: 280px; color: rgba(255,255,255,.8); }
.map__placeholder .pill { padding: 12px 22px; }
.map__placeholder small { color: rgba(255,255,255,.45); }

/* footer */
.footer { padding: 56px 0 0; }
.footer__grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.footer__brand p { margin-top: 12px; max-width: 280px; }
.footer h4 { margin-bottom: 10px; font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.footer__grid p + p { margin-top: 6px; }
.footer__links { display: grid; gap: 6px; padding: 0; list-style: none; }
.social { display: flex; gap: 8px; margin-top: 14px; }
.social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); }
.social svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.footer__bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 20px; padding-bottom: 26px; border-top: 1px solid var(--line); }

/* floating 24/7 call button */
.fab { position: fixed; right: 18px; bottom: 18px; z-index: 40; display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px 12px 14px; border-radius: 999px; background: var(--green); color: #fff; font-weight: 600; font-size: 14px; box-shadow: 0 14px 34px -10px rgba(79,154,34,.7); transform: translateY(140%); transition: transform .5s var(--ease), background .3s; }
.fab.is-on { transform: none; }
.fab:hover { background: var(--green-600); }
.fab svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.nav__sheet-call { display: block; margin-top: 10px; text-align: center; font-size: 14px; color: rgba(255,255,255,.7); }

@media (max-width: 979px) { .lang { display: inline-flex; } }
@media (max-width: 420px) { .nav__brand img { height: 38px; } .lang button { min-width: 32px; padding: 6px 8px; } }

@media print {
  .marquee, .fab, .modal { display: none !important; }
}
.cards--4 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .cards--4 { grid-template-columns: repeat(4, 1fr); } }
.gallery { --gp: var(--gutter); padding-left: var(--gp); padding-right: var(--gp); scroll-padding-inline: var(--gp); }
@media (min-width: 1240px) { .gallery { --gp: max(var(--gutter), calc((100vw - 1240px) / 2 + var(--gutter))); } }
.modal { margin: auto; }

/* =====================================================================
   v3 — motion layer
   ===================================================================== */
:root { --ease-io: cubic-bezier(.76, 0, .24, 1); }

/* intro curtain (once per session) */
.intro { position: fixed; inset: 0; z-index: 200; display: grid; place-content: center; justify-items: center; gap: 26px;
  background: radial-gradient(60% 60% at 50% 45%, #10307f, var(--blue-950)); pointer-events: none;
  animation: introOut .8s var(--ease-io) 1.05s forwards; }
.intro__card { padding: 14px 26px; border-radius: 22px; background: #fff; box-shadow: 0 30px 80px -20px rgba(0,0,0,.6); animation: introCard 1s var(--ease) both; }
.intro__card img { height: 74px; width: auto; }
.intro__bar { width: 160px; height: 2px; border-radius: 2px; background: rgba(255,255,255,.15); overflow: hidden; }
.intro__bar i { display: block; height: 100%; background: var(--green); transform-origin: left; animation: introBar .95s linear both; }
@keyframes introCard { from { opacity: 0; transform: translateY(14px) scale(.94); } }
@keyframes introBar { from { transform: scaleX(0); } }
@keyframes introOut { to { transform: translateY(-100%); border-radius: 0 0 50% 50% / 0 0 18% 18%; } }
.no-intro .intro { display: none; }
html:not(.no-intro) .hero__copy > *, html:not(.no-intro) .hero__figures { animation-delay: calc(var(--d, 0s) + 1.05s); }
html:not(.no-intro) .glance { animation-delay: 1.6s; }
.hero__title { --d: .1s; } .hero__sub { --d: .2s; } .hero__actions { --d: .3s; } .hero__figures { --d: .45s; }

/* top scroll progress — linear */
.progress { position: fixed; inset: 0 0 auto; z-index: 60; height: 3px; pointer-events: none; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--green), #9be06b 60%, #8fb0ff); transform: scaleX(0); transform-origin: left; }

/* split-word headings */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.w > i { display: inline-block; font-style: inherit; transform: translateY(108%); transition: transform 1s var(--ease) calc(var(--i, 0) * 45ms); will-change: transform; }
.is-in .w > i { transform: none; }
.hero__title .w > i { transition-delay: calc(var(--i, 0) * 70ms + 80ms); }
.hero__title { animation: none !important; opacity: 1; }

/* clip-path image reveal */
.reveal--clip { opacity: 1; transform: none; clip-path: inset(0 0 100% 0 round 24px); transition: clip-path 1.3s var(--ease-io); }
.reveal--clip.is-in { clip-path: inset(0 0 0 0 round 0); }
.reveal--clip .ph { transform: scale(1.15); transition: transform 1.6s var(--ease); }
.reveal--clip.is-in .ph { transform: none; }

/* richer reveal: blur + rise, staggered children */
.reveal { transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { filter: none; }
.cards .reveal:nth-child(4n+2), .timeline .reveal:nth-child(2) { transition-delay: 80ms !important; }
.cards .reveal:nth-child(4n+3), .timeline .reveal:nth-child(3) { transition-delay: 160ms !important; }
.cards .reveal:nth-child(4n+4), .timeline .reveal:nth-child(4) { transition-delay: 240ms !important; }

/* hero pointer glow */
.hero__glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(520px circle at var(--hx, 70%) var(--hy, 40%), rgba(102, 186, 49, .14), transparent 60%); transition: background .2s linear; }
.glance { transition: transform .5s var(--ease), box-shadow .5s var(--ease); will-change: transform; }
.glance:hover { box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .75), 0 0 0 1px rgba(155, 224, 107, .25); }

/* spotlight */
.spot { position: relative; isolation: isolate; }
.spot::after { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(36, 72, 182, .1), transparent 65%);
  opacity: 0; transition: opacity .35s var(--ease); }
.spot:hover::after { opacity: 1; }
.card:hover .card__icon { transform: translateY(-3px) rotate(-6deg) scale(1.06); }
.card__icon { transition: transform .5s var(--ease), background-color .4s; }

/* magnetic buttons */
.pill--solid, .btn--primary { transition: translate .35s var(--ease), background-color .3s var(--ease), border-color .3s var(--ease), transform .2s var(--ease); }

/* linear underline sweep */
.card__link, .tip__btn, .footer__links a, .contact-mini a, .footer__grid p a {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size .35s linear, color .3s; padding-bottom: 2px; }
.card__link:hover, .tip__btn:hover, .footer__links a:hover, .contact-mini a:hover, .footer__grid p a:hover { background-size: 100% 1.5px; }

/* sliding indicators */
.nav__pill ul { position: relative; isolation: isolate; }
.nav__ind, .tabs__ind { position: absolute; left: 0; z-index: -1; border-radius: 999px; pointer-events: none;
  transition: transform .5s var(--ease), width .5s var(--ease), opacity .3s; }
.nav__ind { background: rgba(255, 255, 255, .15); }
.nav__pill a.is-active { background: transparent; }
.tabs { position: relative; isolation: isolate; }
.tabs__ind { background: #fff; box-shadow: 0 1px 3px rgba(15, 26, 51, .14); }
.tabs button[aria-selected="true"] { background: transparent; box-shadow: none; }

/* timeline progress line */
.timeline { position: relative; padding-top: 30px; }
.timeline::before, .timeline::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px; border-radius: 2px; }
.timeline::before { background: var(--line); }
.timeline::after { background: linear-gradient(90deg, var(--green), var(--blue)); transform: scaleX(var(--p, 0)); transform-origin: left; }
.timeline li::before { content: ''; position: absolute; top: -36px; left: 24px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 2px solid var(--line); transition: all .4s var(--ease); }
.timeline li.is-lit::before { border-color: var(--green); background: var(--green); box-shadow: 0 0 0 6px rgba(102, 186, 49, .18); }
.timeline li span { transition: color .4s, transform .5s var(--ease); }
.timeline li:not(.is-lit) span { color: #c9d1e2; }
.timeline li.is-lit span { transform: translateX(4px); }
@media (max-width: 900px) { .timeline { padding-top: 0; } .timeline::before, .timeline::after, .timeline li::before { display: none; } }

/* booking steps slide */
.booker__step.is-current { animation: stepIn .55s var(--ease) both; }
.booker[data-dir="back"] .booker__step.is-current { animation-name: stepBack; }
@keyframes stepIn { from { opacity: 0; transform: translateX(36px); } }
@keyframes stepBack { from { opacity: 0; transform: translateX(-36px); } }
.booker__progress li { position: relative; border-top-color: var(--line); }
.booker__progress li::after { content: ''; position: absolute; left: 0; right: 0; top: -3px; height: 3px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .6s linear, background .3s; }
.booker__progress li.is-on::after { transform: scaleX(1); }
.booker__progress li.is-done::after { transform: scaleX(1); background: var(--green); }
.date, .slot, .choice { transition: all .3s var(--ease), transform .25s var(--ease); }
.date:hover:not(:disabled), .slot:hover { transform: translateY(-2px); }
.date[aria-checked="true"] { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(36, 72, 182, .6); }

/* charts draw in */
.chart__box path[pathLength] { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.4s var(--ease) forwards; }
.chart__box circle { opacity: 0; animation: pop .45s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 25ms + .5s); transform-box: fill-box; transform-origin: center; }
.chart__box rect { transform-box: fill-box; transform-origin: bottom; animation: grow .7s var(--ease) both; animation-delay: calc(var(--i, 0) * 30ms); }
.chart__box circle:hover { r: 6; }
@keyframes pop { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: none; } }
@keyframes grow { from { transform: scaleY(0); } }
.ring__fg { transition: stroke-dashoffset 1s var(--ease), stroke .4s; }
.fluid-btns .chip:active { transform: scale(.94); }

/* gallery */
.gallery { cursor: grab; }
.gallery.is-drag { cursor: grabbing; user-select: none; }
.gallery .ph { transition: transform .6s var(--ease); }
.gallery .ph:hover { transform: translateY(-6px); }
.gallery .ph figcaption { transition: transform .5s var(--ease); }
.gallery .ph:hover figcaption { transform: translateY(-4px); }

/* ribbon */
.ribbon { overflow: hidden; padding: clamp(28px, 4vw, 52px) 0; background: #fff; }
.ribbon__track { display: flex; width: max-content; will-change: transform; }
.ribbon__track > div { display: flex; flex: none; }
.ribbon span { padding-right: .6em; font-size: clamp(2.6rem, 7vw, 6.2rem); font-weight: 300; line-height: 1; letter-spacing: -0.03em; white-space: nowrap; color: var(--blue-900); }
.ribbon span::after { content: '✦'; display: inline-block; margin-left: .6em; font-size: .4em; vertical-align: middle; color: var(--green); }
.ribbon span.o { font-family: var(--serif); font-style: italic; color: transparent; -webkit-text-stroke: 1.2px var(--blue); }

/* marquee: fade edges, pause on hover */
.marquee { -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee:hover .marquee__track { animation-play-state: paused; }

/* tip cards & reviews lift */
.tip, .review, .timeline li, .pillars li { transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .4s; }
.timeline li:hover, .pillars li:hover, .review:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

/* language switch cross-fade */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .45s; animation-timing-function: var(--ease); }

/* FAB pulse */
.fab::before { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(102, 186, 49, .55); animation: ring 2.4s ease-out infinite; }
@keyframes ring { to { box-shadow: 0 0 0 16px rgba(102, 186, 49, 0); } }

@media (prefers-reduced-motion: reduce) {
  .w > i, .reveal--clip, .reveal--clip .ph { transform: none !important; clip-path: none !important; }
  .reveal { filter: none; }
  .chart__box path[pathLength] { stroke-dashoffset: 0; }
  .chart__box circle { opacity: 1; }
}
@media print { .intro, .progress, .ribbon { display: none !important; } }
.nav.is-scrolled { background: rgba(6, 17, 46, .9); box-shadow: 0 10px 30px -18px rgba(6, 17, 46, .6); }

/* =====================================================================
   v4 — the scroll scene (Vespine choreography, AMIC palette)
   ember #0f0501 → night #050d24 · flare #ff7a18 → AMIC green · bone → ice white
   ===================================================================== */
:root {
  --night: #050d24; --flare: #66ba31; --flare-hi: #8fdc55; --bone: #f2f6ff; --ash: #8b97b5;
  --display: 'Archivo', 'Figtree', system-ui, sans-serif;
  --text: 'Inter Tight', 'Figtree', system-ui, sans-serif;
}
.scene { position: relative; background: var(--night); }
.scene__pin { position: sticky; top: 0; overflow: hidden; min-height: 100svh; }

/* the ground: deep night plate, a dialysate glow across the lower third */
.scene__ground { position: absolute; inset: 0; background:
  radial-gradient(60% 55% at 72% 52%, rgba(52, 96, 224, .38), transparent 70%),
  radial-gradient(90% 40% at 60% 100%, rgba(102, 186, 49, .30), transparent 70%),
  radial-gradient(40% 30% at 85% 95%, rgba(143, 220, 85, .22), transparent 70%),
  linear-gradient(180deg, #030817 0%, var(--night) 55%, #071a2c 100%); }
.scene__ground::after { content: ''; position: absolute; inset: 0; opacity: .35; background-image: radial-gradient(rgba(255,255,255,.5) 1px, transparent 1.2px); background-size: 3px 3px; mix-blend-mode: overlay; -webkit-mask-image: linear-gradient(180deg, transparent, #000 40%, transparent); mask-image: linear-gradient(180deg, transparent, #000 40%, transparent); }

.kidney { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
/* type ground: the left of the frame stays clean plate for the display type */
.scene__shade { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(3, 8, 23, .88) 0%, rgba(4, 10, 28, .62) 32%, rgba(5, 13, 36, 0) 62%); }
.stage[data-board="phone"] ~ .scene__shade, .scene__pin:has(.stage[data-board="phone"]) .scene__shade { background: linear-gradient(180deg, rgba(3,8,23,0) 35%, rgba(3,8,23,.75) 58%, rgba(3,8,23,.92) 100%); }

/* kidney materials */
.k-body { transition: none; }
.k-rim { fill: none; stroke: url(#kRim); stroke-linejoin: round; }
.k-cortex { fill: none; stroke: rgba(143, 220, 85, .45); stroke-width: 1.6; stroke-dasharray: 1; }
.k-pyr { fill: rgba(102, 186, 49, .10); stroke: rgba(143, 220, 85, .55); stroke-width: 1.4; stroke-linejoin: round; }
.k-pelvis { fill: rgba(185, 205, 255, .14); stroke: rgba(185, 205, 255, .7); stroke-width: 1.6; }
.k-neph { fill: none; stroke: rgba(143, 220, 85, .8); stroke-width: 2; stroke-linecap: round; }
.k-glom { fill: rgba(143, 220, 85, .25); stroke: #8fdc55; stroke-width: 1.6; }
.k-art { fill: none; stroke: #ff7468; stroke-linecap: round; opacity: .85; }
.k-vein { fill: none; stroke: #6f93ff; stroke-linecap: round; opacity: .85; }
.k-ure { fill: none; stroke: rgba(242, 246, 255, .55); stroke-linecap: round; }
.k-spec { fill: none; stroke: rgba(255, 255, 255, .55); stroke-width: 5; stroke-linecap: round; }
.pt-a { fill: #ffd2cc; } .pt-v { fill: #d6e2ff; } .pt-n { fill: #c7f59e; } .pt-u { fill: #f2f6ff; }

/* the artboard: fixed design pixels, scaled to the window width */
.stage { position: absolute; left: 0; top: 0; z-index: 2; transform-origin: top left; font-family: var(--text); color: var(--bone); }
.stage__hero { position: absolute; inset: 0; will-change: opacity, transform, filter; }
.sc-h1 { display: contents; font: inherit; margin: 0; }
.m { position: absolute; overflow: hidden; display: block; }
.m__in { display: block; height: 100%; will-change: transform; transform: translateY(125%); }

.sc-display { font-family: var(--display); font-variation-settings: "wdth" 80, "wght" 760; text-transform: uppercase; letter-spacing: -0.022em; line-height: .9; color: var(--bone); }
[data-el="line1"] .sc-display, [data-el="line2"] .sc-display { font-size: 104px; display: block; }
.flare { color: var(--flare); }
.sc-label { margin: 0; font-family: var(--text); font-size: 11px; line-height: 1; letter-spacing: .2em; text-transform: uppercase; font-weight: 500; color: var(--flare); }
.sc-support { margin: 0; font-size: 15px; line-height: 24px; color: rgba(242, 246, 255, .74); }
.unit { text-transform: none; font-variation-settings: "wdth" 100, "wght" 600; letter-spacing: 0; color: var(--flare); font-size: .62em; margin-left: 2px; }

.sc-cta { position: absolute; display: flex; align-items: center; gap: 26px; transform-origin: left center; opacity: 0; }
.sc-pill { display: inline-flex; align-items: center; gap: 24px; height: 76px; padding: 0 8px 0 34px; border-radius: 999px; background: var(--bone); color: var(--night); font-size: 17px; font-weight: 600; white-space: nowrap; box-shadow: 0 22px 44px -22px rgba(0, 0, 0, .9); transition: transform .4s var(--ease), box-shadow .4s; }
.sc-pill:hover { transform: translateY(-2px); box-shadow: 0 28px 50px -22px rgba(102, 186, 49, .6); }
.sc-pill__go { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--flare); color: var(--night); transition: transform .5s var(--ease); }
.sc-pill:hover .sc-pill__go { transform: rotate(45deg); }
.sc-pill__go svg { width: 20px; height: 20px; }
.sc-link { color: var(--ash); white-space: nowrap; transition: color .3s; }
.sc-link:hover { color: var(--bone); }

.sc-stats { position: absolute; display: flex; margin: 0; opacity: 0; }
.sc-stats > div { flex: 1; }
.sc-stats > div + div { padding-left: 26px; border-left: 1px solid rgba(242, 246, 255, .18); }
.sc-stat { font-size: 30px; letter-spacing: -0.02em; }
.sc-stats dd { margin: 9px 0 0; color: var(--ash); white-space: nowrap; }

.sc-sec { margin: 0; font-size: 64px; }

/* cards: objects with material — lit top edge, translucent body, real shadow */
.sc-cards { position: absolute; }
.kcard { --s: .7; position: absolute; display: block; opacity: 0; transform-origin: 50% -30%; color: var(--bone); will-change: transform, opacity; }
.kcard__bg { position: absolute; inset: 0; border-radius: calc(26px * var(--s));
  background: linear-gradient(165deg, rgba(10, 26, 70, .58) 0%, rgba(6, 17, 46, .5) 44%, rgba(20, 60, 40, .46) 100%);
  border: 1px solid rgba(242, 246, 255, .18);
  box-shadow: inset 0 1px 0 rgba(242, 246, 255, .32), 0 34px 70px -34px rgba(0, 0, 0, .9);
  backdrop-filter: blur(34px) saturate(125%); -webkit-backdrop-filter: blur(34px) saturate(125%);
  transition: border-color .4s, box-shadow .4s; }
.kcard:hover .kcard__bg { border-color: rgba(143, 220, 85, .55); box-shadow: inset 0 1px 0 rgba(242, 246, 255, .4), 0 40px 80px -30px rgba(102, 186, 49, .45); }
/* the artwork breaks the card's top edge */
.kcard__art { position: absolute; top: calc(-42px * var(--s)); right: calc(16px * var(--s)); width: calc(126px * var(--s)); height: calc(126px * var(--s));
  display: grid; place-items: center; border-radius: calc(18px * var(--s));
  background: radial-gradient(circle at 35% 30%, #3460e0, #0b1d4d 75%); border: 1px solid rgba(143, 220, 85, .35);
  filter: drop-shadow(0 18px 26px rgba(0, 0, 0, .6)); transition: transform .5s var(--ease); }
.kcard:hover .kcard__art { transform: translateY(-6px) rotate(-4deg); }
.kcard__art svg { width: 70%; height: 70%; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.kcard__art .a1 { stroke: #b9cdff; stroke-width: 2.4; } .kcard__art .a2 { stroke: #8fdc55; stroke-width: 2.4; } .kcard__art .a3 { stroke: #ff7468; stroke-width: 2.4; fill: rgba(255, 116, 104, .2); }
.kcard__i { position: absolute; left: calc(26px * var(--s)); top: calc(26px * var(--s)); font-size: calc(10px * var(--s)); }
.kcard__t { position: absolute; left: calc(26px * var(--s)); top: calc(132px * var(--s)); font-size: calc(27px * var(--s)); line-height: calc(28px * var(--s)); }
.kcard__d { position: absolute; left: calc(26px * var(--s)); right: calc(84px * var(--s)); top: calc(232px * var(--s)); font-size: calc(13px * var(--s)); line-height: calc(19px * var(--s)); color: rgba(242, 246, 255, .66); }
.kcard__go { position: absolute; right: calc(24px * var(--s)); bottom: calc(24px * var(--s)); width: calc(48px * var(--s)); height: calc(48px * var(--s)); display: grid; place-items: center; border-radius: 50%; background: var(--flare); color: var(--night); transition: transform .5s var(--ease); }
.kcard__go svg { width: 45%; height: 45%; }
.kcard:hover .kcard__go { transform: rotate(45deg) scale(1.08); }
.kcard:focus-visible { outline: 2px solid var(--flare); outline-offset: 6px; border-radius: calc(26px * var(--s)); }

/* scroll cue */
.sc-cue { position: absolute; display: grid; justify-items: center; gap: 10px; }
.sc-cue .sc-label { color: var(--ash); font-size: 9px; }
.sc-cue i { width: 1px; height: 22px; background: linear-gradient(var(--flare), transparent); animation: cue 1.8s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* phone board: bigger type for the narrower artboard */
.stage[data-board="phone"] [data-el="line1"] .sc-display, .stage[data-board="phone"] [data-el="line2"] .sc-display { font-size: 56px; }
.stage[data-board="phone"] .sc-support { font-size: 15.5px; line-height: 23px; }
.stage[data-board="phone"] .sc-cta { gap: 16px; }
.stage[data-board="phone"] .sc-pill { height: 62px; font-size: 16px; padding-left: 24px; gap: 14px; }
.stage[data-board="phone"] .sc-pill__go { width: 48px; height: 48px; }
.stage[data-board="phone"] .sc-stat { font-size: 26px; }
.stage[data-board="phone"] .sc-stats > div + div { padding-left: 14px; }
.stage[data-board="phone"] .sc-stats dd { font-size: 9px; letter-spacing: .14em; }
.stage[data-board="phone"] .sc-sec { font-size: 40px; }

/* nav over the scene: a dark fade instead of the solid bar */
.nav.in-scene.is-scrolled { background: linear-gradient(180deg, rgba(3, 8, 23, .8), rgba(3, 8, 23, 0)); box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }

@media (prefers-reduced-motion: reduce) {
  .sc-cue i { animation: none; }
}
@media print { .scene { display: none; } }
[data-el="line1"] .sc-display, [data-el="line2"] .sc-display, .sc-sec { white-space: nowrap; width: max-content; }
.sc-sec { width: auto; }
.scene-on .fab { transform: translateY(160%); }

/* =====================================================================
   v5 — real photos + content from AMIC's leaflet & posters
   ===================================================================== */
/* photos: brand tile until loaded, then the photo */
.ph.has-photo, .card__photo.has-photo, .risk__img.has-photo, .act__img.has-photo, .tip__img.has-photo { background-size: cover; background-position: center; }
.ph.has-photo::after { background: linear-gradient(180deg, transparent 50%, rgba(6, 17, 46, .55)); }
/* white-on-blue captions, like the glass-door designs */
.cap { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 2; display: grid; gap: 2px; padding: 12px 16px; border-radius: 14px;
  background: linear-gradient(120deg, rgba(36, 72, 182, .92), rgba(29, 58, 150, .82)); color: #fff; backdrop-filter: blur(6px); box-shadow: 0 14px 30px -14px rgba(6,17,46,.7);
  border-left: 4px solid var(--green); }
.cap b { font-size: 16px; font-weight: 600; }
.cap span { font-size: 13px; opacity: .85; }
.gallery .ph figcaption { left: 14px; right: 14px; bottom: 14px; padding: 10px 14px; border-radius: 12px; font-size: 15px;
  background: linear-gradient(120deg, rgba(36, 72, 182, .92), rgba(29, 58, 150, .8)); border-left: 4px solid var(--green); }
.gallery .ph { cursor: zoom-in; }
.gallery .ph:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.gallery .ph .ph__n { background: rgba(6,17,46,.55); padding: 4px 8px; border-radius: 999px; }
.ph--sq { aspect-ratio: 1; background-color: #fff; }

/* service card photos */
.card__photo { display: block; margin: -30px -28px 18px; height: 150px; border-radius: var(--radius) var(--radius) 0 0; background: linear-gradient(135deg, var(--blue-50), var(--green-50)); position: relative; overflow: hidden; transition: transform .6s var(--ease); }
.card:hover .card__photo { transform: scale(1.03); }
.card__photo + .card__icon { margin-top: -44px; position: relative; z-index: 1; background: #fff !important; box-shadow: 0 8px 20px -8px rgba(15,26,51,.3); }
.card { overflow: hidden; }

/* about: what defines our care + vision band */
.defines { margin-top: 22px; padding: 18px 20px; border-radius: 18px; border: 1px solid var(--line); }
.defines__h { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.defines ul { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.defines li { position: relative; padding-left: 26px; color: var(--ink-2); }
.defines li::before { content: '✓'; position: absolute; left: 0; top: 0; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: #fff; font-size: 11px; font-weight: 700; }
.vision { display: grid; gap: 18px 28px; align-items: center; margin-top: clamp(40px, 6vw, 72px); padding: 26px 30px; border-radius: 26px; color: #fff;
  background: linear-gradient(120deg, var(--blue), var(--blue-600) 60%, #1a3487); box-shadow: var(--shadow); }
@media (min-width: 900px) { .vision { grid-template-columns: auto auto 1fr; } }
.vision .eyebrow { color: #9be06b; }
.vision__lead { font-size: 20px; margin-top: 4px; }
.vision__icon { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--green); }
.vision__icon svg { width: 30px; height: 30px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; }
.vision__list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.vision__list li { padding: 9px 16px; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); font-size: 14.5px; transition: background .3s, transform .3s var(--ease); }
.vision__list li:hover { background: var(--green); transform: translateY(-2px); }

/* two-column media layouts */
.kid, .causes, .water, .faqw, .cons, .askw { display: grid; gap: clamp(32px, 5vw, 72px); }
@media (min-width: 960px) {
  .kid, .water, .faqw { grid-template-columns: .85fr 1.15fr; align-items: center; }
  .causes { grid-template-columns: 1.15fr .85fr; align-items: center; }
  .cons { grid-template-columns: 1.3fr .7fr; align-items: center; }
  .askw { grid-template-columns: 1.2fr .8fr; align-items: center; }
}

/* kidney jobs */
.jobs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 24px; }
.job { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; text-align: left; color: rgba(255,255,255,.85); border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.04); transition: all .35s var(--ease); }
.job:hover { border-color: rgba(155, 224, 107, .6); }
.job.is-on { background: #fff; color: var(--blue-900); border-color: #fff; transform: translateY(-2px); box-shadow: 0 16px 30px -18px rgba(0,0,0,.7); }
.job__n { font-family: var(--serif); font-size: 26px; color: var(--green); line-height: 1; }
.jobpanel { display: grid; gap: 10px; margin-top: 14px; }
@media (min-width: 640px) { .jobpanel { grid-template-columns: 1fr 1fr; } }
.jp { padding: 18px 20px; border-radius: 18px; animation: settle .5s var(--ease) both; }
.jp--fail { background: rgba(255, 116, 104, .12); border: 1px solid rgba(255, 116, 104, .35); }
.jp--dial { background: rgba(102, 186, 49, .14); border: 1px solid rgba(155, 224, 107, .4); animation-delay: .08s; }
.jp__h { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 6px; color: #ffb3aa; }
.jp--dial .jp__h { color: #9be06b; }
.jp p:not(.jp__h) { color: rgba(255,255,255,.88); }
.jp__tag { display: inline-block; margin-top: 12px; padding: 5px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--green); color: #fff; }
.jp__tag--help { background: #2f8fd8; } .jp__tag--part { background: #d18b17; } .jp__tag--meds { background: #c0392b; }
.truth { display: grid; gap: 12px; margin-top: clamp(36px, 5vw, 60px); }
@media (min-width: 800px) { .truth { grid-template-columns: repeat(3, 1fr); } }
.truth__item { display: flex; gap: 14px; align-items: center; padding: 18px 20px; border-radius: 18px; background: #fff; color: var(--blue-900); font-size: 16px; }
.truth__item span { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 700; }
.truth__item--no span { background: var(--danger); }
.truth__item--no b { color: var(--danger); }

/* accordions (causes + faq) */
.acc { display: grid; gap: 8px; margin-top: 22px; }
.acc__item { border: 1px solid var(--line); border-radius: 16px; background: #fff; overflow: hidden; transition: border-color .3s, box-shadow .3s; }
.acc__item.is-open { border-color: var(--blue-100); box-shadow: var(--shadow); }
.acc__q { display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px 18px; text-align: left; font-weight: 600; font-size: 16px; }
.acc__q > span:not(.acc__icon) { flex: 1; }
.acc__icon { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 12px; background: var(--blue-50); color: var(--blue); }
.acc__icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.acc__q i { position: relative; width: 22px; height: 22px; flex: none; border-radius: 50%; background: var(--paper-2); }
.acc__q i::before, .acc__q i::after { content: ''; position: absolute; left: 6px; right: 6px; top: 10px; height: 2px; background: var(--blue); border-radius: 2px; transition: transform .35s var(--ease); }
.acc__q i::after { transform: rotate(90deg); }
.acc__item.is-open .acc__q i::after { transform: rotate(0); }
.acc__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.acc__item.is-open .acc__a { grid-template-rows: 1fr; }
.acc__a > div { overflow: hidden; }
.acc__a p { padding: 0 18px 18px 70px; color: var(--ink-2); }
.acc--faq .acc__a p { padding-left: 18px; }
.early { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 22px; padding: 18px 20px; border-radius: 18px; background: var(--blue); color: #fff; }
.early strong { font-size: 17px; }
.early span { opacity: .85; flex: 1 1 200px; }
.early .btn--primary { background: var(--green); }

/* consistency: slider, body, risks */
.gap { display: block; margin-top: 26px; }
.gap__label { display: block; margin-bottom: 10px; color: rgba(255,255,255,.8); }
.gap__label b { color: #9be06b; font-size: 18px; }
.gap input { --v: 0%; width: 100%; -webkit-appearance: none; appearance: none; height: 8px; border-radius: 8px; background: linear-gradient(90deg, var(--green), #e0a100 50%, var(--danger)) 0 0 / var(--v) 100% no-repeat, rgba(255,255,255,.15); outline: none; }
.gap input::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 4px solid var(--green); cursor: grab; box-shadow: 0 4px 12px rgba(0,0,0,.4); }
.gap input::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 4px solid var(--green); cursor: grab; }
.gap__ticks { display: flex; justify-content: space-between; margin-top: 6px; font-size: 12px; color: rgba(255,255,255,.5); font-style: normal; }
.gap__ticks i { font-style: normal; }
.risks { display: grid; gap: 10px; margin: 22px 0 14px; }
.risk { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: 18px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04); opacity: .45; filter: grayscale(.8); transition: all .5s var(--ease); }
.risk.is-on { opacity: 1; filter: none; background: rgba(255, 116, 104, .14); border-color: rgba(255, 116, 104, .5); transform: translateX(6px); }
.risk__img { flex: none; width: 78px; height: 78px; border-radius: 14px; background-color: #fff; }
.risk h3 { font-size: 17px; }
.risk p { font-size: 14px; color: rgba(255,255,255,.75); margin-top: 2px; }
.body { display: grid; justify-items: center; }
.body__svg { width: min(240px, 60vw); height: auto; overflow: visible; }
.body__svg #waterG { transition: transform 1s var(--ease); }
.body__svg .wave { animation: wave 3s linear infinite; }
@keyframes wave { to { transform: translateX(100px); } }
.body__svg .drops path { fill: rgba(255,255,255,.8); animation: drop 2.2s ease-in infinite; }
.body__svg .drops path:nth-child(2) { animation-delay: .7s; } .body__svg .drops path:nth-child(3) { animation-delay: 1.4s; }
@keyframes drop { 0% { transform: translateY(-20px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(40px); opacity: 0; } }
.body__cap { margin-top: 10px; padding: 6px 14px; border-radius: 999px; background: rgba(95, 208, 255, .18); color: #bfeaff; font-size: 14px; }

/* water pipeline */
.pipe { position: relative; display: grid; gap: 12px; margin: 24px 0; padding: 0; list-style: none; }
.pipe::before { content: ''; position: absolute; left: 25px; top: 20px; bottom: 20px; width: 3px; border-radius: 3px; background: repeating-linear-gradient(180deg, #5fd0ff 0 10px, transparent 10px 20px); background-size: 3px 20px; animation: flowdown 1s linear infinite; opacity: .7; }
@keyframes flowdown { to { background-position: 0 20px; } }
.pipe li { position: relative; display: flex; gap: 16px; align-items: flex-start; padding: 14px 16px 14px 0; }
.pipe__dot { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #fff; border: 2px solid #5fd0ff; color: #1f8fd6; z-index: 1; box-shadow: 0 0 0 6px rgba(95, 208, 255, .12); transition: transform .4s var(--ease), background .3s; }
.pipe li:hover .pipe__dot { transform: scale(1.08); background: #e8f8ff; }
.pipe__dot svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pipe strong { display: block; font-size: 18px; }
.pipe p { color: var(--ink-2); font-size: 15px; }
.pull { margin: 0; padding: 18px 22px; border-left: 4px solid var(--green); border-radius: 0 16px 16px 0; background: var(--blue-50); font-size: 22px; color: var(--blue-900); }
.pull em { color: var(--green-600); }

/* what you control */
.score { display: flex; align-items: center; gap: 14px; padding: 12px 18px 12px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.score svg { width: 64px; height: 64px; transform: rotate(-90deg); }
.score circle { fill: none; stroke-width: 7; stroke-linecap: round; }
.score__bg { stroke: var(--green-50); }
.score__fg { stroke: var(--green); stroke-dasharray: 213.6; stroke-dashoffset: 213.6; transition: stroke-dashoffset .8s var(--ease); }
.score strong { display: block; font-size: 22px; font-weight: 600; }
.score span { font-size: 13px; color: var(--ink-3); }
.score.is-full { border-color: var(--green); animation: pop .5s var(--ease); }
.acts { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.act { position: relative; display: flex; flex-direction: column; border-radius: 22px; background: #fff; border: 2px solid var(--line); overflow: hidden; cursor: pointer; transition: all .4s var(--ease); }
.act input { position: absolute; opacity: 0; }
.act__img { height: 160px; background-color: #fff; background-size: contain !important; background-repeat: no-repeat; background-position: center; border-bottom: 1px solid var(--line); }
.act__body { padding: 16px 18px 20px; display: grid; gap: 4px; }
.act__body strong { font-size: 17px; }
.act__body small { color: var(--ink-3); font-size: 14px; }
.act__body a { color: var(--blue); font-weight: 600; }
.act__tick { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--line); background: #fff; color: transparent; font-weight: 700; transition: all .35s var(--ease); }
.act:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.act:has(input:checked) { border-color: var(--green); background: var(--green-50); }
.act:has(input:checked) .act__tick { background: var(--green); border-color: var(--green); color: #fff; transform: scale(1.1); }
.act:has(input:focus-visible) { outline: 3px solid var(--green); outline-offset: 3px; }

/* ask before you panic */
.asks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.asks .chip { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.2); }
.asks .chip.is-on { background: #f47a2a; border-color: #f47a2a; }
.askpanel { margin-top: 16px; padding: 20px 22px; border-radius: 20px; background: #fff; color: var(--ink); animation: settle .5s var(--ease) both; }
.askpanel__t { font-size: 20px; font-weight: 600; color: var(--blue-900); margin-bottom: 6px; }
.askpanel p { color: var(--ink-2); }
.askpanel__btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.askpanel__btns .pill { padding: 12px 18px; }
.askpanel__btns .pill:not(.pill--solid) { background: var(--blue); color: #fff; border-color: var(--blue); }
.askpanel__note { margin-top: 12px; font-size: 13px; color: var(--danger) !important; }
.bubble-wrap { position: relative; display: grid; justify-items: center; }
.bubble { position: relative; z-index: 1; display: grid; justify-items: center; margin-bottom: -40px; padding: 26px 42px 30px; border-radius: 48% 52% 46% 54% / 55% 50% 50% 45%; background: #f47a2a; color: #fff; font-weight: 700; line-height: 1; text-align: center; box-shadow: 0 24px 50px -24px rgba(244,122,42,.9); animation: bob 4s ease-in-out infinite; }
.bubble::after { content: ''; position: absolute; left: 30%; bottom: -14px; border: 14px solid transparent; border-top-color: #f47a2a; border-bottom: 0; transform: skewX(-20deg); }
.bubble span { font-size: 24px; } .bubble b { font-size: 54px; margin: 4px 0; }
@keyframes bob { 50% { transform: translateY(-8px) rotate(-1.5deg); } }
.bubble-wrap .ph--sq { width: min(320px, 80%); border: 4px solid rgba(255,255,255,.15); }
.bubble-wrap .ph--sq::before, .bubble-wrap .ph--sq::after, .risk__img::before, .act__img::before { display: none; }

/* tips images */
.tip { padding-top: 0; overflow: hidden; }
.tip__img { display: block; height: 150px; margin: 0 -26px 18px; background-color: #fff; background-size: contain !important; background-repeat: no-repeat; background-position: center; border-bottom: 1px solid var(--line); }

/* lightbox */
.lightbox { width: min(1100px, calc(100% - 24px)); max-height: calc(100svh - 24px); margin: auto; padding: 0; border: 0; border-radius: 22px; background: var(--blue-950); color: #fff; overflow: hidden; }
.lightbox::backdrop { background: rgba(3, 8, 23, .85); backdrop-filter: blur(6px); }
.lightbox[open] { animation: settle .45s var(--ease) both; }
.lightbox img { display: block; width: 100%; max-height: calc(100svh - 110px); object-fit: contain; background: #000; }
.lb__cap { display: flex; justify-content: space-between; gap: 12px; padding: 14px 20px; background: linear-gradient(120deg, var(--blue), var(--blue-600)); border-top: 3px solid var(--green); }
.lb__cap span { opacity: .75; }
.lb__nav { position: absolute; top: 45%; width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.9); color: var(--blue-900); font-size: 30px; line-height: 1; display: grid; place-items: center; transition: transform .3s; }
.lb__nav:hover { transform: scale(1.08); }
.lb__prev { left: 12px; } .lb__next { right: 12px; }
.lightbox .modal__close { z-index: 2; }
.lightbox .modal__close button { background: rgba(255,255,255,.9); }

/* deep sections: headline em colour */
.section--deep h2 em { color: #9be06b; }
.section--deep .lede b, .section--deep p b { color: #fff; }
.section--deep .truth__item p b, .section--deep .truth__item--no b { color: var(--danger); }
.about__chip { top: 28px; bottom: auto; }
/* notice bar from the admin panel */
.notice { position: fixed; inset: 0 0 auto; z-index: 70; display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 40px; padding: 8px 48px 8px 16px; background: var(--green); color: #fff; font-size: 14.5px; font-weight: 500; text-align: center; animation: drop .5s var(--ease) both; }
.notice a { text-decoration: underline; white-space: nowrap; }
.notice button { position: absolute; right: 10px; width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.2); color: #fff; }
.has-notice .nav { top: 40px; }
.footer__hours { margin-top: 6px; }

/* =====================================================================
   v7 — real-time 3D kidney + 3D glass cards
   ===================================================================== */
.kidney3d { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; will-change: transform; }
/* soft green light pooling behind the kidney */
.scene__pin.has-3d .scene__ground::before { content: ''; position: absolute; right: 8%; top: 18%; width: 46vw; height: 46vw; max-width: 760px; max-height: 760px; border-radius: 50%;
  background: radial-gradient(circle, rgba(102, 186, 49, .22), rgba(52, 96, 224, .12) 45%, transparent 70%); filter: blur(10px); animation: breathe 7s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.08); opacity: .8; } }

/* cards: glass slabs with thickness, tilt and a light sheen */
.kcard { transform-origin: 50% -30%; }
.kcard__body { position: absolute; inset: 0; display: block; border-radius: calc(26px * var(--s));
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .6s var(--ease); }
.kcard.is-tilt .kcard__body { transition: transform .12s linear; }
.kcard__bg {
  background: linear-gradient(160deg, rgba(40, 70, 150, .55) 0%, rgba(10, 24, 62, .62) 42%, rgba(18, 58, 44, .55) 100%);
  border: 1px solid rgba(242, 246, 255, .22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -1px 0 rgba(0, 0, 0, .35), inset 1px 0 0 rgba(255, 255, 255, .08),
    0 2px 0 rgba(120, 160, 255, .25), 0 4px 0 rgba(60, 100, 200, .2), 0 6px 0 rgba(30, 60, 140, .2), 0 8px 0 rgba(10, 30, 90, .25),
    0 40px 70px -30px rgba(0, 0, 0, .95), 0 18px 30px -18px rgba(36, 72, 182, .55);
}
.kcard__sheen { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(260px circle at var(--mx, 30%) var(--my, 0%), rgba(255, 255, 255, .28), rgba(155, 224, 107, .08) 40%, transparent 65%);
  mix-blend-mode: screen; }
.kcard.is-tilt .kcard__sheen, .kcard:focus-visible .kcard__sheen { opacity: 1; }
.kcard__bg::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .10) 45%, transparent 60%); background-size: 250% 100%; background-position: 130% 0; transition: background-position 1.2s var(--ease); }
.kcard:hover .kcard__bg::after { background-position: -40% 0; }

/* the 3D object floats out above the card's top edge */
.kcard__art { top: calc(-88px * var(--s)); right: calc(0px * var(--s)); width: calc(172px * var(--s)); height: calc(172px * var(--s));
  background: none; border: 0; border-radius: 0; filter: none; overflow: visible;
  transform: translate(calc(var(--ry, 0deg) / 1deg * 0.7px), calc(var(--rx, 0deg) / 1deg * -0.7px)); }
.kcard__art img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 22px 22px rgba(0, 0, 0, .55)) drop-shadow(0 0 18px rgba(102, 186, 49, .18)); animation: float 5.5s ease-in-out infinite; }
.kcard:nth-child(2) .kcard__art img { animation-delay: -1.4s; } .kcard:nth-child(3) .kcard__art img { animation-delay: -2.8s; } .kcard:nth-child(4) .kcard__art img { animation-delay: -4.1s; }
.kcard:hover .kcard__art { transform: translate(calc(var(--ry, 0deg) / 1deg * 0.9px), calc(var(--rx, 0deg) / 1deg * -0.9px - 6px)) scale(1.06); }
.kcard__shadow { position: absolute; left: 22%; right: 22%; bottom: 4%; height: 12%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .55), transparent); animation: floatShadow 5.5s ease-in-out infinite; }
.kcard:nth-child(2) .kcard__shadow { animation-delay: -1.4s; } .kcard:nth-child(3) .kcard__shadow { animation-delay: -2.8s; } .kcard:nth-child(4) .kcard__shadow { animation-delay: -4.1s; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-9px) rotate(2deg); } }
@keyframes floatShadow { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(.82); opacity: .55; } }
/* text sits slightly "above" the glass: it moves a little with the tilt */
.kcard__t, .kcard__d, .kcard__i { transform: translate(calc(var(--ry, 0deg) / 1deg * 0.25px), calc(var(--rx, 0deg) / 1deg * -0.25px)); transition: transform .6s var(--ease); }
.kcard__t { text-shadow: 0 2px 12px rgba(0, 0, 0, .45); }
.kcard__go { box-shadow: 0 6px 16px -6px rgba(102, 186, 49, .9), inset 0 1px 0 rgba(255, 255, 255, .5); }
.kcard:hover .kcard__bg { border-color: rgba(155, 224, 107, .6); }

@media (prefers-reduced-motion: reduce) {
  .kcard__art img, .kcard__shadow, .scene__pin.has-3d .scene__ground::before { animation: none; }
}

/* =====================================================================
   v8 — live loading screen, arrival, orbit rings, particles, anatomy callouts
   ===================================================================== */
.is-loading, .is-loading body { overflow: hidden; }
.loader { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; overflow: hidden; color: #fff; cursor: default;
  background: radial-gradient(70% 70% at 50% 42%, #10307f 0%, #071640 45%, #030817 100%);
  clip-path: circle(150% at var(--kx, 50%) var(--ky, 50%));
  transition: clip-path 1.15s cubic-bezier(.76, 0, .24, 1), opacity .5s ease 1s; }
.loader.is-done { clip-path: circle(0% at var(--kx, 50%) var(--ky, 50%)); opacity: 0; pointer-events: none; }
.loader__glow { position: absolute; inset: -20%; background: radial-gradient(35% 35% at 50% 45%, rgba(102, 186, 49, .28), transparent 70%), radial-gradient(30% 30% at 30% 70%, rgba(52, 96, 224, .35), transparent 70%); animation: ldGlow 6s ease-in-out infinite alternate; }
@keyframes ldGlow { to { transform: translate3d(3%, -3%, 0) scale(1.08); } }
.loader__grid { position: absolute; inset: 0; opacity: .18; background-image: linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px); background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(circle at 50% 45%, #000, transparent 65%); mask-image: radial-gradient(circle at 50% 45%, #000, transparent 65%);
  transform: perspective(600px) rotateX(58deg) translateY(18%); transform-origin: 50% 100%; animation: ldGrid 8s linear infinite; }
@keyframes ldGrid { to { background-position: 0 46px; } }
.loader__center { position: relative; display: grid; justify-items: center; gap: 10px; padding: 20px; text-align: center; transition: opacity .4s ease, transform .9s var(--ease-io); }
.loader.is-done .loader__center > :not(.loader__stage) { opacity: 0; transform: translateY(16px); transition: opacity .3s, transform .5s; }
.loader__stage { position: relative; width: min(260px, 62vw); aspect-ratio: 1; transition: transform 1.1s cubic-bezier(.76, 0, .24, 1), opacity .9s ease .3s; }
.loader.is-done .loader__stage { transform: translate(var(--tx, 0), var(--ty, 0)) scale(1.6); opacity: 0; }
.loader__kidney { position: absolute; inset: 4%; width: 92%; height: 92%; }
.loader__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.loader__ring circle { fill: none; }
.r-track { stroke: rgba(255,255,255,.1); stroke-width: 3; }
.r-fg { stroke: url(#none); stroke: var(--green); stroke-width: 4; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(102,186,49,.8)); transition: stroke-dashoffset .2s linear; }
.r-spin { stroke: rgba(143, 176, 255, .55); stroke-width: 1.5; stroke-dasharray: 40 690; stroke-linecap: round; transform-origin: 120px 120px; animation: ldSpin 1.6s linear infinite; }
@keyframes ldSpin { to { transform: rotate(360deg); } }
.loader__orb { position: absolute; left: 50%; top: 50%; width: 46%; height: 46%; border-radius: 50%; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(102,186,49,.25), transparent 70%); animation: breathe 3s ease-in-out infinite; pointer-events: none; }
.loader.no-3d .loader__kidney { display: none; }
.loader.no-3d .loader__orb { width: 40%; height: 40%; background: radial-gradient(circle at 35% 35%, #ff8f7a, #a8322c 55%, #5a0f0f); border-radius: 48% 52% 50% 50% / 60% 58% 42% 40%; box-shadow: inset -10px -14px 24px rgba(0,0,0,.45); animation: ldBean 2.4s ease-in-out infinite; }
@keyframes ldBean { 50% { transform: translate(-50%, -54%) rotate(8deg); } 0%, 100% { transform: translate(-50%, -50%) rotate(-8deg); } }
.loader__logo { height: 54px; width: auto; padding: 8px 16px; border-radius: 16px; background: #fff; box-shadow: 0 16px 40px -14px rgba(0,0,0,.7); margin-top: 6px; }
.loader__pct { margin: 6px 0 0; font-family: var(--display, var(--font)); font-variation-settings: "wdth" 80, "wght" 300; font-size: 56px; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.loader__pct span { font-size: 22px; color: var(--green); margin-left: 2px; }
.loader__status { min-height: 20px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.65); }
.loader__bar { width: min(280px, 70vw); height: 2px; border-radius: 2px; background: rgba(255,255,255,.12); overflow: hidden; }
.loader__bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--green), #9be06b, #8fb0ff); transform: scaleX(0); transform-origin: left; }
.loader__fact { max-width: 420px; min-height: 44px; margin-top: 10px; font-size: 14.5px; color: rgba(255,255,255,.78); opacity: 0; transform: translateY(8px); }
.loader__fact.is-in { animation: factIn .6s var(--ease) forwards; }
@keyframes factIn { to { opacity: 1; transform: none; } }
.loader__skip { margin-top: 4px; padding: 9px 18px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); color: #fff; font-size: 13px; background: rgba(255,255,255,.06); transition: background .3s; }
.loader__skip:hover { background: rgba(255,255,255,.14); }
@media (max-height: 640px) { .loader__stage { width: 180px; } .loader__pct { font-size: 40px; } .loader__fact { display: none; } }

/* ---------- orbit rings around the kidney (3D, tilted) ---------- */
.orbits { position: absolute; left: 0; top: 0; z-index: 0; width: 0; height: 0; pointer-events: none; opacity: 0; transition: opacity .4s; }
.orbits i { position: absolute; left: -300px; top: -300px; width: 600px; height: 600px; border-radius: 50%; border: 1.5px solid rgba(143, 176, 255, .28);
  transform: rotateX(72deg) rotateZ(0deg); animation: orbit 14s linear infinite; }
.orbits i::after { content: ''; position: absolute; left: 50%; top: -5px; width: 9px; height: 9px; border-radius: 50%; background: #9be06b; box-shadow: 0 0 14px 4px rgba(155, 224, 107, .7); }
.orbits i:nth-child(2) { width: 760px; height: 760px; left: -380px; top: -380px; border-color: rgba(102, 186, 49, .22); transform: rotateX(66deg) rotateY(18deg); animation-duration: 22s; animation-direction: reverse; }
.orbits i:nth-child(2)::after { background: #ff7468; box-shadow: 0 0 14px 4px rgba(255, 116, 104, .6); }
.orbits i:nth-child(3) { width: 460px; height: 460px; left: -230px; top: -230px; border-style: dashed; border-color: rgba(255, 255, 255, .14); transform: rotateX(78deg) rotateY(-24deg); animation-duration: 30s; }
.orbits i:nth-child(3)::after { background: #6f93ff; box-shadow: 0 0 12px 3px rgba(111, 147, 255, .7); }
@keyframes orbit { to { transform: rotateX(72deg) rotateZ(360deg); } }
.orbits i:nth-child(2) { animation-name: orbit2; } @keyframes orbit2 { to { transform: rotateX(66deg) rotateY(18deg) rotateZ(-360deg); } }
.orbits i:nth-child(3) { animation-name: orbit3; } @keyframes orbit3 { to { transform: rotateX(78deg) rotateY(-24deg) rotateZ(360deg); } }
.scene__pin:not(.has-3d) .orbits { display: none; }
.kidney3d { z-index: 0; }

/* ---------- floating particles ---------- */
.motes { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.motes i { position: absolute; width: var(--sz); height: var(--sz); border-radius: 50%; opacity: var(--o);
  background: radial-gradient(circle at 35% 35%, rgba(200, 220, 255, .9), rgba(111, 147, 255, .25) 60%, transparent 70%);
  animation: mote var(--d) linear var(--dl) infinite; }
.motes i.r { background: radial-gradient(circle at 35% 35%, rgba(255, 190, 180, .95), rgba(220, 60, 50, .4) 55%, transparent 70%); border-radius: 50% 50% 46% 54%; }
@keyframes mote { 0% { transform: translate3d(0, 30vh, 0) rotate(0); opacity: 0; } 12% { opacity: var(--o); } 88% { opacity: var(--o); } 100% { transform: translate3d(var(--dx), -40vh, 0) rotate(260deg); opacity: 0; } }

/* ---------- anatomy callouts ---------- */
.callouts { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.callout { position: absolute; left: 0; top: 0; opacity: 0; transition: opacity .35s ease; will-change: transform, opacity; }
.callout__dot { position: absolute; left: -7px; top: -7px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(155, 224, 107, .45), 0 0 16px rgba(155, 224, 107, .8); }
.callout__dot::after { content: ''; position: absolute; inset: -8px; border-radius: 50%; border: 1.5px solid rgba(155, 224, 107, .7); animation: ping 1.8s ease-out infinite; }
@keyframes ping { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.callout__line { position: absolute; left: 0; top: -.5px; height: 1px; transform-origin: 0 50%; background: linear-gradient(90deg, rgba(255,255,255,.9), rgba(155, 224, 107, .7)); }
.callout__label { position: absolute; left: 0; top: 0; display: grid; gap: 1px; padding: 9px 14px; border-radius: 12px; white-space: nowrap;
  background: linear-gradient(120deg, rgba(36, 72, 182, .92), rgba(20, 46, 120, .85)); border-left: 3px solid var(--green);
  box-shadow: 0 14px 30px -14px rgba(0,0,0,.8); backdrop-filter: blur(6px); }
.callout.is-left .callout__label { border-left: 0; border-right: 3px solid var(--green); text-align: right; }
.callout__label b { font-size: 14px; font-weight: 600; color: #fff; }
.callout__label small { font-size: 12px; color: rgba(255,255,255,.78); }
.stage[data-board="phone"] ~ .callouts .callout__label, .scene__pin:has(.stage[data-board="phone"]) .callout__label { padding: 6px 10px; }
.scene__pin:has(.stage[data-board="phone"]) .callout__label b { font-size: 12px; }
.scene__pin:has(.stage[data-board="phone"]) .callout__label small { font-size: 10.5px; }

@media (prefers-reduced-motion: reduce) {
  .loader__glow, .loader__grid, .r-spin, .orbits i, .callout__dot::after { animation: none; }
  .loader { transition: opacity .4s; } .loader.is-done { clip-path: none; }
}

/* v8.1 crisp motion: GPU-composited layers, no sub-pixel shimmer */
.kidney3d, .kcard, .callout, .orbits, .loader__stage { will-change: transform, opacity; backface-visibility: hidden; }
.kcard__art img, .loader__logo, .nav__brand img { image-rendering: auto; transform: translateZ(0); }
