/* ==========================================================================
   SilverNest - Elder Day Care & Senior Activity Center
   Main stylesheet: design tokens, reusable components and animations.
   Tailwind handles layout/spacing utilities; this file holds everything custom.
   Sections:
   01 Tokens            07 Sections & cards     13 Forms & auth
   02 Base              08 Timeline             14 Dashboard
   03 Buttons           09 Sliders & carousel   15 Charts
   04 Header            10 Accordion & tabs     16 Utility pages
   05 Hero (Home)       11 Modal, lightbox      17 Footer
   06 Hero slider       12 Toasts               18 Reveal & motion
   ========================================================================== */

/* ---------- 01 Tokens ---------- */
:root {
  --bg: #FBEFEF;
  --bg-alt: #FFE1E1;
  --surface: #FFFFFF;
  --ink: #2A2230;
  --muted: #5E5468;
  --line: #F5CACB;
  --brand: #5A4573;          /* deep plum, from the lavender swatch */
  --brand-2: #74598F;
  --brand-soft: #FFE1E1;
  --accent: #7A5A9C;         /* lavender-violet, AA on white and blush */
  --accent-hover: #634882;
  --accent-soft: #F5CACB;
  --gold: #C4B2D6;
  --gold-soft: #EBE2F3;
  --on-brand: #FFFFFF;
  --on-brand-soft: #EBE2F3;
  --chart-2: #8E6BB0;        /* second chart series */
  --on-accent: #FFFFFF;
  --brand-text: #5A4573;    /* brand colour when used for text or icons */
  --on-gold-soft: #3F2F55;
  --ok: #1E6B4A;
  --ok-soft: #DDF0E4;
  --warn: #8A5A00;
  --warn-soft: #FCEBC2;
  --bad: #A3301F;
  --bad-soft: #FADFD9;
  --info: #2C5873;
  --info-soft: #DCEAF2;
  --shadow-sm: 0 2px 8px rgba(42, 34, 48, .06);
  --shadow: 0 14px 40px -14px rgba(42, 34, 48, .22);
  --shadow-lg: 0 30px 70px -24px rgba(42, 34, 48, .32);
  --radius: 18px;
  --radius-lg: 28px;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
  --header-h: 84px;
  --ease: cubic-bezier(.22, .7, .2, 1);
  --dir: 1;                  /* flipped to -1 in rtl.css for direction-aware motion */
}

/* ---------- 02 Base ---------- */
*, *::before, *::after { box-sizing: border-box; border-width: 0; border-style: solid; border-color: var(--line); }
figure, blockquote, dl, dd, fieldset { margin: 0; }
fieldset { padding: 0; min-width: 0; }
input, select, textarea { font: inherit; margin: 0; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.125rem;       /* 18px base for comfortable reading */
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  overflow-x: clip;
  transition: background-color .4s ease, color .4s ease;
}
img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -.01em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--gold-soft); color: #2A2230; }

.skip-link { position: absolute; inset-inline-start: 12px; top: -80px; z-index: 300; background: var(--brand); color: #fff; padding: 12px 18px; border-radius: 10px; transition: top .2s; }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: 20px; }
@media (min-width: 768px) { .wrap { padding-inline: 32px; } }

.section { padding-block: clamp(64px, 9vw, 120px); position: relative; }
.section--alt { background: var(--bg-alt); }
.section--brand { background: var(--brand); color: #F4EEF6; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .9rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.section--brand .eyebrow { color: var(--gold); }
.title-xl { font-size: clamp(2.3rem, 5.2vw, 4.25rem); }
.title-lg { font-size: clamp(1.9rem, 3.6vw, 3rem); }
.title-md { font-size: clamp(1.35rem, 2vw, 1.6rem); }
.lead { font-size: clamp(1.1rem, 1.4vw, 1.25rem); color: var(--muted); }
.section--brand .lead { color: #EBE2F3; }
.muted { color: var(--muted); }
.section-head { max-width: 720px; display: grid; gap: 14px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }

.icon { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 18px; height: 18px; }
.icon-lg { width: 32px; height: 32px; }

/* ---------- 03 Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 12px 28px; border-radius: 999px;
  font-weight: 700; font-size: 1.05rem; line-height: 1.2; text-align: center;
  border: 2px solid transparent; position: relative; overflow: hidden; isolation: isolate;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .3s, color .3s, border-color .3s;
}
.btn .icon { transition: transform .35s var(--ease); }
.btn:hover .icon.arrow { transform: translateX(calc(5px * var(--dir))); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 12px 24px -12px var(--accent); }
.btn-primary::before { /* soft fill sweep on hover */
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--accent-hover);
  transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.btn-primary:hover::before { transform: scaleX(1); }
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { background: var(--brand-2); }
.btn-outline { border-color: var(--brand-text); color: var(--brand-text); background: transparent; }
.btn-outline:hover { background: var(--brand); color: #fff; }
.btn-light { background: #fff; color: #5A4573; }
.btn-light:hover { background: var(--gold-soft); }
.btn-ghost-light { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-ghost-light:hover { background: #fff; color: #5A4573; }
.btn-sm { min-height: 46px; padding: 8px 20px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn.is-loading { pointer-events: none; color: transparent !important; }
.btn.is-loading::after {
  content: ""; position: absolute; width: 22px; height: 22px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,.45); border-top-color: #fff; animation: spin .8s linear infinite;
}
.icon-btn {
  width: 46px; height: 46px; display: inline-grid; place-items: center; border-radius: 50%;
  border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); flex: none;
  transition: background-color .3s, color .3s, border-color .3s, transform .3s var(--ease);
}
.icon-btn:hover { background: var(--brand); color: #fff; border-color: var(--brand-text); transform: translateY(-2px); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--accent); min-height: 44px; }
.link-arrow .icon { transition: transform .35s var(--ease); }
.link-arrow:hover .icon { transform: translateX(calc(6px * var(--dir))); }

/* Theme toggle shows the icon for the mode you will switch to */
.theme-toggle .i-sun { display: none; }
.rtl-toggle { font-weight: 700; font-size: .85rem; letter-spacing: .04em; }
/* ---------- 04 Header ---------- */
.topbar { background: var(--brand); color: #F4EEF6; font-size: .95rem; }
.topbar a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; transition: color .25s; }
.topbar a:hover { color: var(--gold); }
.topbar .social a { width: 34px; justify-content: center; }
.site-header {
  position: sticky; top: 0; z-index: 100; background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: background-color .4s, box-shadow .4s, border-color .4s;
}
.site-header.is-scrolled { background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(10px); box-shadow: var(--shadow-sm); border-color: var(--line); }
.site-header .bar { min-height: var(--header-h); display: flex; align-items: center; gap: 12px; transition: min-height .4s var(--ease); }
.site-header.is-scrolled .bar { min-height: 70px; }

.logo { display: inline-flex; align-items: center; gap: 10px; flex: none; min-height: 44px; }
.logo-mark { width: 44px; height: 44px; flex: none; transition: transform .5s var(--ease); }
.logo:hover .logo-mark { transform: rotate(-6deg) scale(1.05); }
.logo-text { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; line-height: 1; color: var(--brand-text); letter-spacing: -.02em; }
.logo-text span { color: var(--accent); }
.logo-tag { display: block; font-family: var(--font-body); font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.logo--light .logo-text { color: #fff; }
.logo--light .logo-text span { color: var(--gold); }
.logo--light .logo-tag { color: #D8CAE6; }
.logo-mark .m-bg { fill: var(--brand); }
.logo--light .logo-mark .m-bg { fill: rgba(255,255,255,.14); }

.main-nav { display: none; align-items: center; gap: 4px; margin-inline: auto; }
.nav-link { position: relative; padding: 12px 12px; font-weight: 700; font-size: 1.02rem; color: var(--ink); min-height: 44px; display: inline-flex; align-items: center; transition: color .3s; white-space: nowrap; }
.nav-link::after {
  content: ""; position: absolute; inset-inline: 12px; bottom: 6px; height: 2.5px; border-radius: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--accent); }
.nav-link:hover::after, .nav-link[aria-current="page"]::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.header-cta { display: none; }

.hamburger { width: 46px; height: 46px; border-radius: 50%; background: var(--brand); display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; flex: none; }
.hamburger i { display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px; transition: transform .4s var(--ease), opacity .3s; }
.hamburger[aria-expanded="true"] i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: absolute; inset-inline: 0; top: 100%; background: var(--surface); border-top: 1px solid var(--line);
  box-shadow: var(--shadow); max-height: calc(100vh - 70px); overflow-y: auto;
  visibility: hidden; opacity: 0; transform: translateY(-12px);
  transition: opacity .35s var(--ease), transform .35s var(--ease), visibility 0s .35s;
}
html.menu-open { overflow: hidden; } /* html only: hiding body overflow too would break the sticky header */
.mobile-menu { overscroll-behavior: contain; }
/* Dim the page below the open mobile menu */
.menu-backdrop {
  position: fixed; inset: 0; z-index: 99; /* just under the sticky header (100) */
  background: rgba(30, 20, 36, .45); opacity: 0; visibility: hidden;
  transition: opacity .35s var(--ease), visibility 0s .35s;
}
html.menu-open .menu-backdrop { opacity: 1; visibility: visible; transition-delay: 0s; }
@media (min-width: 1100px) { .menu-backdrop { display: none; } }
.mobile-menu.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.mobile-menu .m-link {
  display: flex; align-items: center; justify-content: space-between; padding: 16px 4px; font-weight: 700; font-size: 1.15rem;
  border-bottom: 1px solid var(--line); opacity: 0; transform: translateX(calc(-16px * var(--dir)));
  transition: opacity .4s var(--ease), transform .4s var(--ease), color .3s;
}
.mobile-menu.is-open .m-link { opacity: 1; transform: none; transition-delay: calc(var(--i, 0) * 50ms + 80ms); }
.mobile-menu .m-link[aria-current="page"], .mobile-menu .m-link.is-active, .mobile-menu .m-link:hover { color: var(--accent); }
/* Home dropdown inside the mobile menu */
.mobile-menu button.m-link { width: 100%; background: none; border: 0; border-bottom: 1px solid var(--line); font-family: inherit; text-align: start; cursor: pointer; }
.m-drop .caret { transition: transform .35s var(--ease); }
.m-drop.is-open .caret { transform: rotate(180deg); }
.m-sub { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.m-drop.is-open .m-sub { grid-template-rows: 1fr; }
.m-sub > div { overflow: hidden; }
.m-sub a { display: flex; align-items: center; min-height: 50px; padding: 8px 18px; margin-top: 6px; border-radius: 12px; font-weight: 700; font-size: 1.05rem; transition: background-color .25s, color .25s; }
.m-sub a:last-child { margin-bottom: 8px; }
.m-sub a:hover, .m-sub a[aria-current="page"] { background: var(--brand-soft); color: var(--accent); }
.menu-tools { display: flex; gap: 10px; align-items: center; padding: 12px 4px; border-bottom: 1px solid var(--line); font-weight: 700; }
@media (max-width: 479px) {
  .site-header .logo-tag { display: none; }
  .site-header .logo-text { font-size: 1.35rem; }
  .site-header .logo-mark { width: 40px; height: 40px; }
  .header-actions > .rtl-toggle { display: none; } /* still available inside the mobile menu */
}
@media (min-width: 480px) { .menu-tools, .mobile-menu .m-login { display: none; } }
@media (max-width: 479px) { .header-actions > .login-btn { display: none; } } /* Family Login is in the mobile menu */
@media (max-width: 1023px) { .hero > .dots, .hero > .heart, .hero > .leaf { display: none; } }
@media (min-width: 1100px) {
  .main-nav { display: flex; }
  .header-cta { display: inline-flex; }
  .hamburger, .mobile-menu { display: none; }
  .header-actions { margin-inline-start: 0; }
}
.header-cta { white-space: nowrap; }
/* Small laptops: tighten the header so links, toggles and the CTA fit on one row */
@media (min-width: 1100px) and (max-width: 1279px) {
  .main-nav .nav-link { padding-inline: 8px; }
  .header-actions { gap: 6px; }
  .header-actions > .icon-btn { width: 42px; height: 42px; }
  .header-cta { padding-inline: 16px; }
}

/* ---------- 05 Hero (Home) ---------- */
.hero { position: relative; padding-block: clamp(32px, 5vw, 64px) clamp(120px, 14vw, 190px); overflow: hidden; background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%); }
.hero-grid { display: grid; gap: 48px; align-items: center; position: relative; z-index: 2; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1.02fr 1fr; gap: 40px; } }
.hero-label {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); font-weight: 700; font-size: .95rem; box-shadow: var(--shadow-sm);
}
.hero-label i { width: 30px; height: 30px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-text); display: grid; place-items: center; }
.hero h1 { margin-block: 22px 20px; }
.hl { position: relative; display: inline-block; color: var(--accent); white-space: nowrap; }
.hl svg { position: absolute; inset-inline: -2%; bottom: -.18em; width: 104%; height: .32em; overflow: visible; }
.hl path { fill: none; stroke: var(--gold); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 320; stroke-dashoffset: 320; animation: draw 1.4s var(--ease) 1.1s forwards; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 30px; }
.play-btn { display: inline-flex; align-items: center; gap: 14px; font-weight: 700; min-height: 60px; }
.play-btn .halo { position: relative; width: 60px; height: 60px; border-radius: 50%; background: var(--surface); color: var(--accent); display: grid; place-items: center; box-shadow: var(--shadow); flex: none; transition: transform .35s var(--ease), background-color .3s, color .3s; }
.play-btn .halo::before, .play-btn .halo::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--accent); opacity: 0; animation: pulse-ring 3s ease-out infinite; }
.play-btn .halo::after { animation-delay: 1.5s; }
.play-btn:hover .halo { transform: scale(1.08); background: var(--accent); color: var(--on-accent); }
.play-btn .icon { fill: currentColor; stroke: none; }
.trust-row { display: flex; align-items: center; gap: 16px; margin-top: 34px; flex-wrap: wrap; }
.avatar-stack { display: flex; }
.avatar-stack img { width: 48px; height: 48px; border-radius: 50%; border: 3px solid var(--bg); margin-inline-start: -12px; object-fit: cover; transition: transform .3s var(--ease); }
.avatar-stack img:first-child { margin-inline-start: 0; }
.avatar-stack img:hover { transform: translateY(-4px); }
.stars { display: inline-flex; gap: 2px; color: var(--gold); }
.stars .icon { width: 18px; height: 18px; fill: currentColor; stroke: none; }

/* Collage */
.collage { position: relative; aspect-ratio: 1 / 1.02; max-width: 580px; margin-inline: auto; width: 100%; }
.collage .img-main { position: absolute; inset: 0 14% 6% 10%; border-radius: 999px 999px 32px 32px; overflow: hidden; box-shadow: var(--shadow-lg); background: var(--accent-soft); }
.collage .img-a { position: absolute; width: 36%; aspect-ratio: 1; inset-inline-end: 0; top: 8%; border-radius: 50%; overflow: hidden; border: 8px solid var(--bg); box-shadow: var(--shadow); }
.collage .img-b { position: absolute; width: 40%; aspect-ratio: 4/3; inset-inline-start: 0; bottom: 0; border-radius: 24px; overflow: hidden; border: 8px solid var(--bg); box-shadow: var(--shadow); }
.collage img { width: 100%; height: 100%; object-fit: cover; }
.fc { position: absolute; z-index: 4; }
.float-card {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px;
  background: var(--surface); box-shadow: var(--shadow); font-size: .92rem; line-height: 1.3; max-width: 230px;
}
.float-card strong { display: block; font-size: 1rem; }
.float-card small { color: var(--muted); font-size: .82rem; }
.float-card .fc-ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--accent-soft); color: var(--accent); }
.float-card .fc-ico.g { background: var(--brand-soft); color: var(--brand-text); }
.float-card .fc-ico.y { background: var(--gold-soft); color: var(--on-gold-soft); }
.fc-1 { top: 25%; inset-inline-start: -6%; }
.fc-2 { bottom: 26%; inset-inline-end: -4%; }
.fc-3 { bottom: 2%; inset-inline-end: 12%; }
.beat path { stroke-dasharray: 40 40; animation: beat 2.6s linear infinite; }
.spin-badge { position: absolute; z-index: 5; width: 118px; height: 118px; top: -3%; inset-inline-start: 6%; display: grid; place-items: center; }
.spin-badge svg.txt { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 26s linear infinite; }
.spin-badge svg.txt text { font-family: var(--font-body); font-size: 12.5px; font-weight: 700; letter-spacing: .2em; fill: var(--brand); text-transform: uppercase; }
.spin-badge .core { width: 58px; height: 58px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; box-shadow: var(--shadow); }
.spin-badge::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--surface); box-shadow: var(--shadow-sm); }
.spin-badge > * { position: relative; }

@media (max-width: 640px) { /* keep the collage rich but tidy on phones */
  .fc-1 { inset-inline-start: 0; top: 20%; } .fc-2 { inset-inline-end: 0; } .fc-3 { inset-inline-end: 6%; }
  .float-card { padding: 8px 12px; gap: 8px; font-size: .8rem; max-width: 178px; border-radius: 14px; }
  .float-card strong { font-size: .88rem; } .float-card small { font-size: .74rem; }
  .float-card .fc-ico { width: 34px; height: 34px; border-radius: 10px; }
  .float-card .stars .icon { width: 13px; height: 13px; }
  .spin-badge { width: 92px; height: 92px; inset-inline-start: 2%; }
  .spin-badge .core { width: 44px; height: 44px; }
  .collage .img-a, .collage .img-b { border-width: 5px; }
}

/* Decorative shapes shared by hero, CTA, auth and utility pages */
.deco { position: absolute; pointer-events: none; z-index: 0; }
.blob { border-radius: 50%; filter: blur(2px); }
.blob-1 { width: 460px; height: 460px; background: var(--gold-soft); top: -160px; inset-inline-end: -120px; opacity: .8; }
.blob-2 { width: 300px; height: 300px; background: var(--brand-soft); bottom: 60px; inset-inline-start: -120px; opacity: .8; }
.dots { width: 120px; height: 120px; background-image: radial-gradient(var(--accent) 2.2px, transparent 2.6px); background-size: 20px 20px; opacity: .35; }
.curve { stroke: var(--gold); stroke-width: 3; fill: none; stroke-linecap: round; stroke-dasharray: 8 12; }
.leaf { color: var(--brand-2); }
.heart { color: var(--accent); }
.float-a { animation: float-a 9s ease-in-out infinite; }
.float-b { animation: float-b 12s ease-in-out infinite; }
.float-c { animation: float-a 15s ease-in-out infinite reverse; }
[data-depth] { translate: calc(var(--px, 0) * var(--depth, 10) * 1px) calc(var(--py, 0) * var(--depth, 10) * 1px); transition: translate .6s ease-out; }
.wave { position: absolute; inset-inline: 0; bottom: -1px; width: 100%; height: clamp(50px, 8vw, 110px); z-index: 1; color: var(--bg); }

/* Hero entrance sequence (runs once on load) */
.js .enter { opacity: 0; animation: fade-up .9s var(--ease) forwards; animation-delay: calc(var(--e, 0) * 130ms + 150ms); }
.js .enter-mask { clip-path: inset(100% 0 0 0); animation: mask-up 1.3s var(--ease) .35s forwards; }
.js .enter-right { opacity: 0; animation: slide-in-x .9s var(--ease) .9s forwards; --from: 60px; }
.js .enter-left { opacity: 0; animation: slide-in-x .9s var(--ease) 1.05s forwards; --from: -60px; }
.js .enter-pop { opacity: 0; animation: pop .7s var(--ease) forwards; animation-delay: calc(var(--e, 0) * 180ms + 1.3s); }

/* Quick info strip overlapping the hero edge */
.info-strip { position: relative; z-index: 5; margin-top: clamp(-110px, -9vw, -70px); }
.info-strip .inner { background: var(--brand); color: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); display: grid; overflow: hidden; }
.info-item { display: flex; gap: 16px; align-items: center; padding: 26px 28px; position: relative; transition: background-color .35s; }
.info-item:hover { background: rgba(255,255,255,.07); }
.info-item + .info-item { border-top: 1px solid rgba(255,255,255,.16); }
.info-item .ico { width: 58px; height: 58px; border-radius: 50%; background: rgba(255,255,255,.12); color: var(--gold); display: grid; place-items: center; flex: none; transition: transform .4s var(--ease); }
.info-item:hover .ico { transform: rotate(-8deg) scale(1.06); }
.info-item small { display: block; color: #D8CAE6; font-size: .9rem; }
.info-item strong { font-size: 1.12rem; }
.info-item.hot { background: var(--accent); }
@media (min-width: 900px) {
  .info-strip .inner { grid-template-columns: repeat(3, 1fr); }
  .info-item + .info-item { border-top: 0; border-inline-start: 1px solid rgba(255,255,255,.16); }
}

/* ---------- 06 Hero slider (Home 2) ---------- */
.hslider { position: relative; min-height: min(820px, 92vh); display: grid; color: #fff; background: #5A4573; isolation: isolate; padding-bottom: 150px; }
.hslide { grid-area: 1 / 1; position: relative; display: grid; align-items: center; opacity: 0; visibility: hidden; transition: opacity 1.2s ease, visibility 0s 1.2s; }
.hslide.is-active { opacity: 1; visibility: visible; transition-delay: 0s; z-index: 1; }
.hslide .bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hslide .bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 8s ease-out; }
.hslide.is-active .bg img { transform: scale(1); }
.hslide::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at center, rgba(30,22,40,.84) 0%, rgba(30,22,40,.7) 55%, rgba(30,22,40,.5) 100%); }
.hslide .content { text-align: center; max-width: 880px; margin-inline: auto; padding-block: 70px 40px; }
.hslide .content > * { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.hslide.is-active .content > * { opacity: 1; transform: none; }
.hslide.is-active .content > :nth-child(1) { transition-delay: .3s; }
.hslide.is-active .content > :nth-child(2) { transition-delay: .45s; }
.hslide.is-active .content > :nth-child(3) { transition-delay: .6s; }
.hslide.is-active .content > :nth-child(4) { transition-delay: .75s; }
.hslide .eyebrow { color: var(--gold); }
.hslide .lead { color: #EBE2F3; }
.hs-arrow { position: absolute; top: 42%; z-index: 5; width: 56px; height: 56px; border-radius: 50%; border: 2px solid rgba(255,255,255,.6); color: #fff; display: none; place-items: center; transition: background-color .3s, color .3s, transform .3s var(--ease); }
.hs-arrow:hover { background: #fff; color: #5A4573; transform: scale(1.06); }
.hs-prev { inset-inline-start: 24px; } .hs-next { inset-inline-end: 24px; }
@media (min-width: 1024px) { .hs-arrow { display: grid; } }
.hs-dots { position: absolute; z-index: 5; inset-inline: 0; bottom: 176px; display: flex; justify-content: center; gap: 10px; }
.hs-dot { width: 54px; height: 24px; display: grid; align-items: center; }
.hs-dot span { display: block; height: 4px; border-radius: 4px; background: rgba(255,255,255,.35); overflow: hidden; position: relative; }
.hs-dot span::after { content: ""; position: absolute; inset: 0; background: var(--gold); transform: scaleX(0); transform-origin: left; }
.hs-dot.is-active span::after { animation: fill-x var(--slide-time, 6s) linear forwards; }
.hslider.is-paused .hs-dot.is-active span::after { animation-play-state: paused; }
.hs-count { position: absolute; z-index: 5; inset-inline-end: 32px; bottom: 170px; font-family: var(--font-display); font-size: 1.1rem; display: none; }
.hs-count b { font-size: 2rem; color: var(--gold); }
@media (min-width: 1024px) { .hs-count { display: block; } }
.hs-deco-ring { width: 220px; height: 220px; border: 2px dashed rgba(255,255,255,.3); border-radius: 50%; top: 8%; inset-inline-start: 5%; z-index: 2; animation: spin 60s linear infinite; }
.enquiry-card { position: relative; z-index: 6; margin-top: -120px; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 26px; border-top: 5px solid var(--accent); }
.enquiry-card form { display: grid; gap: 14px; align-items: end; }
@media (min-width: 768px) { .enquiry-card form { grid-template-columns: 1fr 1fr; } .enquiry-card { padding: 32px; } }
@media (min-width: 1100px) { .enquiry-card form { grid-template-columns: repeat(4, 1fr) auto; } }

/* ---------- 07 Sections & cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s, background-color .4s; }
.card-hover:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }

/* About */
.about-media { position: relative; padding-inline-end: 12%; padding-bottom: 10%; }
.about-media .ph-main { border-radius: 200px 200px 28px 28px; overflow: hidden; aspect-ratio: 8/9; box-shadow: var(--shadow); }
.about-media .ph-sub { position: absolute; width: 46%; inset-inline-end: 0; bottom: 0; border-radius: 22px; overflow: hidden; border: 8px solid var(--bg); aspect-ratio: 4/3; box-shadow: var(--shadow); }
.section--alt .about-media .ph-sub { border-color: var(--bg-alt); }
.about-media img { width: 100%; height: 100%; object-fit: cover; }
.exp-badge { position: absolute; top: 9%; inset-inline-end: 0; background: var(--accent); color: var(--on-accent); border-radius: 22px; padding: 16px 20px; text-align: center; box-shadow: var(--shadow); line-height: 1.2; }
.exp-badge b { font-family: var(--font-display); font-size: 2.4rem; display: block; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; padding-block: 7px; }
.check-list .tick { width: 28px; height: 28px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-text); display: grid; place-items: center; flex: none; margin-top: 2px; }
.signature { font-family: var(--font-display); font-style: italic; font-size: 1.3rem; color: var(--brand-text); }

/* Safety feature cards: no boxes-in-boxes, just a tinted icon and a hover bar */
.feature { padding: 28px 26px; position: relative; overflow: hidden; height: 100%; }
.feature::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 4px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.feature:hover::after { transform: scaleX(1); }
.feature .f-ico { width: 62px; height: 62px; border-radius: 18px 18px 18px 4px; background: var(--brand-soft); color: var(--brand-text); display: grid; place-items: center; margin-bottom: 18px; transition: background-color .4s, color .4s, transform .5s var(--ease), border-radius .5s; }
.feature:hover .f-ico { background: var(--brand); color: #fff; transform: translateY(-4px) rotate(-6deg); border-radius: 50%; }
.feature h3 { font-size: 1.3rem; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 1.02rem; }
.feature .num { position: absolute; top: 18px; inset-inline-end: 22px; font-family: var(--font-display); font-size: 2.6rem; line-height: 1; color: var(--line); transition: color .4s; }
.feature:hover .num { color: var(--gold); }
.feature--wide { background: var(--brand); color: #fff; border-color: transparent; display: grid; align-content: center; }
.feature--wide p { color: #EBE2F3; }

/* Icon list (Home 2 safety layout) */
.icon-list li { display: flex; gap: 18px; padding-block: 18px; border-bottom: 1px solid var(--line); transition: padding .4s var(--ease); }
.icon-list li:hover { padding-inline-start: 10px; }
.icon-list .il-ico { width: 54px; height: 54px; border-radius: 50%; border: 2px solid var(--accent); color: var(--accent); display: grid; place-items: center; flex: none; transition: background-color .3s, color .3s; }
.icon-list li:hover .il-ico { background: var(--accent); color: var(--on-accent); }

/* Program cards */
.program { overflow: hidden; display: flex; flex-direction: column; height: 100%; }
.program .thumb { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.program .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.program .thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(58,42,78,.75)); opacity: 0; transition: opacity .45s; }
.program:hover .thumb img { transform: scale(1.07); }
.program:hover .thumb::after { opacity: 1; }
.program .thumb .peek { position: absolute; inset-inline: 16px; bottom: 14px; z-index: 2; color: #fff; font-weight: 700; display: flex; align-items: center; gap: 8px; opacity: 0; transform: translateY(12px); transition: opacity .45s, transform .45s var(--ease); }
.program:hover .thumb .peek { opacity: 1; transform: none; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: .82rem; font-weight: 700; letter-spacing: .04em; background: var(--surface); color: var(--brand-text); }
.program .thumb .tag { position: absolute; top: 14px; inset-inline-start: 14px; z-index: 2; box-shadow: var(--shadow-sm); }
.program .body { padding: 22px 22px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.program h3 { font-size: 1.32rem; transition: color .3s; }
.program:hover h3 { color: var(--accent); }
.program .meta { display: flex; align-items: center; gap: 8px; font-size: .95rem; color: var(--muted); }
.program .body p { color: var(--muted); font-size: 1.02rem; }
.program .more { margin-top: auto; padding-top: 6px; display: flex; align-items: center; justify-content: space-between; font-weight: 700; color: var(--brand-text); width: 100%; min-height: 48px; border-top: 1px dashed var(--line); text-align: start; }
.program .more .arr { width: 40px; height: 40px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-text); display: grid; place-items: center; transition: background-color .35s, color .35s, transform .35s var(--ease); }
.program:hover .more .arr { background: var(--accent); color: var(--on-accent); transform: translateX(calc(4px * var(--dir))); }
.program .more::before { content: ""; position: absolute; inset: 0; z-index: 3; } /* whole card is the click target */
.program { position: relative; }

/* Filter chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { min-height: 48px; padding: 8px 22px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 700; transition: background-color .3s, color .3s, border-color .3s, transform .3s var(--ease); }
.chip:hover { border-color: var(--brand-text); transform: translateY(-2px); }
.chip[aria-pressed="true"], .chip[aria-selected="true"] { background: var(--brand); color: #fff; border-color: var(--brand-text); }
.filter-item { transition: opacity .35s ease, transform .35s var(--ease); }
.filter-item.is-leaving { opacity: 0; transform: scale(.94); }
.filter-item.is-entering { opacity: 0; transform: scale(.94) translateY(14px); }
.filter-item[hidden] { display: none; }

/* Stats */
.stat { text-align: center; padding: 10px; position: relative; }
.stat b { font-family: var(--font-display); font-size: clamp(2.6rem, 5vw, 4rem); line-height: 1; display: block; color: var(--gold); font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 8px; font-weight: 700; }
.stat .s-ico { margin-inline: auto; margin-bottom: 12px; opacity: .85; }
.stats-band { background: var(--brand); color: #F4EEF6; position: relative; overflow: hidden; }
.stats-band::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.09) 2px, transparent 2.4px); background-size: 26px 26px; }

/* Progress bars */
.pbar { margin-top: 20px; }
.pbar .top { display: flex; justify-content: space-between; font-weight: 700; margin-bottom: 8px; }
.pbar .track { height: 10px; border-radius: 10px; background: var(--line); overflow: hidden; }
.pbar .fill { height: 100%; border-radius: 10px; background: linear-gradient(90deg, var(--accent), var(--gold)); transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease) .2s; }
.pbar.is-visible .fill { transform: scaleX(var(--v, 1)); }

/* Team */
.member { text-align: center; }
.member .ph { position: relative; border-radius: 160px 160px 22px 22px; overflow: hidden; aspect-ratio: 5/6; }
.member .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.member:hover .ph img { transform: scale(1.06); }
.member .ph .bio { position: absolute; inset-inline: 12px; bottom: 12px; background: var(--surface); border-radius: 14px; padding: 12px 14px; font-size: .92rem; line-height: 1.45; transform: translateY(120%); transition: transform .5s var(--ease); text-align: start; }
.member:hover .ph .bio, .member:focus-within .ph .bio { transform: none; }
.member h3 { font-size: 1.3rem; margin-top: 16px; }
.member .role { color: var(--accent); font-weight: 700; font-size: .95rem; }

/* Family portal preview */
.portal-mock { position: relative; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 22px; border: 1px solid var(--line); }
.portal-mock .pm-head { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.portal-mock .pm-head img { width: 54px; height: 54px; border-radius: 50%; }
.pm-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.pm-tile { border-radius: 14px; padding: 14px; background: var(--bg); }
.pm-tile small { display: block; color: var(--muted); font-size: .8rem; }
.pm-tile b { font-family: var(--font-display); font-size: 1.35rem; }
.pm-week { display: flex; gap: 6px; margin-top: 14px; }
.pm-week span { flex: 1; height: 34px; border-radius: 8px; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; font-size: .75rem; font-weight: 700; }
.pm-week span.h { background: var(--warn-soft); color: var(--warn); }
.pm-week span.o { background: var(--line); color: var(--muted); }
.pm-float { position: absolute; inset-inline-end: -14px; top: -22px; }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: .85rem; font-weight: 700; white-space: nowrap; }
.status .icon { width: 16px; height: 16px; stroke-width: 2.4; }
.status.ok { background: var(--ok-soft); color: var(--ok); }
.status.warn { background: var(--warn-soft); color: var(--warn); }
.status.bad { background: var(--bad-soft); color: var(--bad); }
.status.info { background: var(--info-soft); color: var(--info); }
.status.mute { background: var(--line); color: var(--muted); }
.status.pulse { animation: badge-pulse 2.4s ease-in-out infinite; }

/* Pricing-style care plans */
.plan { padding: 34px 30px; position: relative; display: flex; flex-direction: column; height: 100%; }
.plan .price { font-family: var(--font-display); font-size: 2.8rem; line-height: 1; margin-block: 14px 4px; color: var(--brand-text); }
.plan .price small { font-family: var(--font-body); font-size: 1rem; color: var(--muted); font-weight: 400; }
.plan ul { margin-block: 20px 26px; display: grid; gap: 10px; }
.plan li { display: flex; gap: 10px; }
.plan li .icon { color: var(--ok); margin-top: 4px; }
.plan .btn { margin-top: auto; }
.plan--featured { background: var(--brand); color: #fff; border-color: transparent; }
.plan--featured .price { color: var(--gold); }
.plan--featured .price small, .plan--featured .muted { color: #D8CAE6; }
.plan--featured li .icon { color: var(--gold); }
.plan .ribbon { position: absolute; top: 20px; inset-inline-end: 20px; background: var(--gold); color: #2A2230; font-size: .8rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; letter-spacing: .05em; text-transform: uppercase; }
@media (min-width: 1024px) { .plan--featured { transform: translateY(-16px); } .plan--featured.card-hover:hover { transform: translateY(-24px); } }

/* Masonry gallery */
.masonry { columns: 2; column-gap: 14px; }
@media (min-width: 768px) { .masonry { columns: 3; column-gap: 20px; } }
@media (min-width: 1100px) { .masonry { columns: 4; } }
.masonry > * { break-inside: avoid; margin-bottom: 14px; display: block; width: 100%; }
@media (min-width: 768px) { .masonry > * { margin-bottom: 20px; } }
.g-item { position: relative; border-radius: 18px; overflow: hidden; display: block; width: 100%; }
.g-item img { width: 100%; transition: transform .6s var(--ease); }
.g-item::after { content: ""; position: absolute; inset: 0; background: rgba(58,42,78,.6); opacity: 0; transition: opacity .4s; }
.g-item .zoom { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; color: #fff; opacity: 0; transform: scale(.7); transition: opacity .4s, transform .4s var(--ease); }
.g-item .cap { position: absolute; inset-inline: 14px; bottom: 12px; z-index: 2; color: #fff; font-weight: 700; font-size: .95rem; text-align: start; opacity: 0; transform: translateY(10px); transition: opacity .4s, transform .4s var(--ease); }
.g-item:hover img, .g-item:focus-visible img { transform: scale(1.07); }
.g-item:hover::after, .g-item:focus-visible::after, .g-item:hover .zoom, .g-item:focus-visible .zoom, .g-item:hover .cap, .g-item:focus-visible .cap { opacity: 1; transform: none; }
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.gallery-grid .g-item { aspect-ratio: 1; }
.gallery-grid .g-item img { height: 100%; object-fit: cover; }
@media (min-width: 900px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; } .gallery-grid .g-item.wide { grid-column: span 2; aspect-ratio: 2/1; } }

/* Video band */
.video-band { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: clamp(340px, 46vw, 560px); display: grid; place-items: center; color: #fff; text-align: center; isolation: isolate; }
.video-band img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.video-band:hover img.bg { transform: scale(1.04); }
.video-band::before { content: ""; position: absolute; inset: 0; background: rgba(30,22,40,.5); z-index: -1; }
.play-xl { width: 104px; height: 104px; border-radius: 50%; background: #fff; color: var(--accent); display: grid; place-items: center; margin-inline: auto; position: relative; transition: transform .4s var(--ease); }
.play-xl:hover { transform: scale(1.08); }
.play-xl::before, .play-xl::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #fff; opacity: 0; animation: pulse-ring 3s ease-out infinite; }
.play-xl::after { animation-delay: 1.5s; }
.play-xl .icon { width: 38px; height: 38px; fill: currentColor; stroke: none; }

/* News cards */
.news { overflow: hidden; height: 100%; display: flex; flex-direction: column; }
.news .thumb { aspect-ratio: 16/10; overflow: hidden; position: relative; }
.news .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.news:hover .thumb img { transform: scale(1.06); }
.news .date { position: absolute; bottom: 0; inset-inline-start: 20px; background: var(--accent); color: var(--on-accent); padding: 8px 14px; border-radius: 12px 12px 0 0; font-weight: 700; font-size: .9rem; }
.news .body { padding: 22px; display: grid; gap: 10px; flex: 1; align-content: start; }
.news h3 { font-size: 1.28rem; transition: color .3s; }
.news:hover h3 { color: var(--accent); }

/* CTA sections */
.cta { position: relative; border-radius: var(--radius-lg); overflow: hidden; isolation: isolate; color: #fff; background: var(--brand); }
.cta .cta-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; object-position: right center; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(58,42,78,.97) 0%, rgba(58,42,78,.9) 45%, rgba(58,42,78,.25) 100%); }
.cta .deco-ring { width: 280px; height: 280px; border-radius: 50%; border: 2px dashed rgba(255,255,255,.25); top: -90px; inset-inline-start: -70px; animation: spin 80s linear infinite; }
.cta .leaf { color: var(--gold); opacity: .8; }
.cta-form { background: var(--surface); color: var(--ink); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-lg); position: relative; }
.cta-photo { position: absolute; width: 128px; height: 128px; border-radius: 50%; overflow: hidden; border: 6px solid var(--gold); top: -70px; inset-inline-end: -34px; box-shadow: var(--shadow); display: none; }
.cta-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 1024px) { .cta-photo { display: block; } }
.newsletter { position: relative; background: var(--accent); color: var(--on-accent); border-radius: var(--radius-lg); padding: clamp(32px, 5vw, 60px); overflow: hidden; isolation: isolate; }
.newsletter .blob { background: rgba(255,255,255,.12); filter: none; }
.nl-form { display: flex; gap: 10px; flex-wrap: wrap; }
.nl-form .field { flex: 1 1 230px; margin: 0; }

/* Page banner */
.page-banner { position: relative; background: var(--brand); color: #fff; padding-block: clamp(56px, 8vw, 104px); overflow: hidden; isolation: isolate; }
.page-banner .blob { background: rgba(255,255,255,.08); filter: none; }
.breadcrumb { display: flex; align-items: center; gap: 10px; font-weight: 700; margin-top: 16px; flex-wrap: wrap; }
.breadcrumb a { color: var(--gold); display: inline-flex; min-height: 44px; align-items: center; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { opacity: .6; display: inline-flex; }

/* ---------- 08 Timeline ---------- */
.timeline { position: relative; display: grid; gap: 18px; --progress: 0; }
.timeline .rail { position: absolute; inset-inline-start: 31px; top: 30px; bottom: 30px; width: 3px; background: var(--line); border-radius: 3px; overflow: hidden; }
.timeline .rail i { position: absolute; inset: 0; background: linear-gradient(180deg, var(--accent), var(--gold)); transform-origin: top; transform: scaleY(var(--progress)); transition: transform .5s ease-out; }
.tl-step { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 18px; align-items: start; }
.tl-step .dot { width: 64px; height: 64px; border-radius: 50%; background: var(--surface); border: 3px solid var(--line); color: var(--muted); display: grid; place-items: center; position: relative; z-index: 1; transition: background-color .5s, border-color .5s, color .5s, transform .5s var(--ease); }
.tl-step .tl-body { padding: 16px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: border-color .5s, box-shadow .5s, transform .5s var(--ease); }
.tl-step time { font-weight: 700; color: var(--accent); font-size: .95rem; letter-spacing: .04em; }
.tl-step h3 { font-size: 1.25rem; margin-block: 2px 4px; }
.tl-step p { color: var(--muted); font-size: 1rem; }
.tl-step.is-done .dot { border-color: var(--accent); color: var(--accent); }
.tl-step.is-active .dot { background: var(--accent); border-color: var(--accent); color: var(--on-accent); transform: scale(1.08); }
.tl-step.is-active .dot .icon { animation: wiggle 1.2s var(--ease); }
.tl-step.is-active .tl-body { border-color: var(--accent); box-shadow: var(--shadow); }
@media (min-width: 1100px) { /* horizontal timeline on wide screens */
  .timeline { grid-template-columns: repeat(7, 1fr); gap: 14px; }
  .timeline .rail { inset-inline: 32px; top: 31px; bottom: auto; height: 3px; width: auto; }
  .timeline .rail i { transform-origin: left; transform: scaleX(var(--progress)); background: linear-gradient(90deg, var(--accent), var(--gold)); }
  .tl-step { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .tl-step .tl-body { padding: 16px 12px; width: 100%; height: 100%; }
  .tl-step.is-active .tl-body { transform: translateY(-6px); }
}

/* ---------- 09 Sliders & carousel ---------- */
.tslider { position: relative; }
.ts-stage { display: grid; }
.ts-slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateX(calc(30px * var(--dir))); transition: opacity .7s var(--ease), transform .7s var(--ease), visibility 0s .7s; }
.ts-slide.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.quote-card { padding: clamp(26px, 4vw, 44px); position: relative; }
.quote-card .q-mark { color: var(--gold); width: 54px; height: 54px; }
.quote-card blockquote { margin: 16px 0 24px; font-family: var(--font-display); font-size: clamp(1.25rem, 2.2vw, 1.7rem); line-height: 1.45; }
.ts-slide blockquote { clip-path: inset(0 0 100% 0); transition: clip-path 1s var(--ease) .2s; }
.ts-slide.is-active blockquote { clip-path: inset(0 0 -10% 0); }
.q-author { display: flex; align-items: center; gap: 14px; }
.q-author img { width: 60px; height: 60px; border-radius: 50%; }
.q-author small { color: var(--muted); display: block; }
.ts-nav { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.ts-dots { display: flex; gap: 4px; align-items: center; }
.ts-dot { width: 28px; height: 44px; display: grid; place-items: center; }
.ts-dot::before { content: ""; width: 10px; height: 10px; border-radius: 10px; background: var(--line); transition: width .4s var(--ease), background-color .3s; }
.ts-dot.is-active::before { width: 26px; background: var(--accent); }
.ts-thumbs { display: flex; justify-content: center; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.ts-thumb { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; border: 3px solid transparent; opacity: .55; transform: scale(.88); transition: opacity .4s, transform .4s var(--ease), border-color .4s; }
.ts-thumb.is-active { opacity: 1; transform: scale(1.08); border-color: var(--accent); }
.ts-thumb img { width: 100%; height: 100%; }
.big-quote { text-align: center; max-width: 900px; margin-inline: auto; }
.big-quote blockquote { font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2.3rem); line-height: 1.4; margin: 0 0 22px; }
.rating-box { background: var(--brand); color: #fff; border-radius: var(--radius-lg); padding: 30px; text-align: center; position: relative; overflow: hidden; }
.rating-box b { font-family: var(--font-display); font-size: 4.4rem; line-height: 1; color: var(--gold); display: block; }

.carousel { position: relative; }
.car-track { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-block: 10px 26px; scroll-behavior: smooth; overscroll-behavior-x: contain; }
.car-track::-webkit-scrollbar { display: none; }
.car-track > * { flex: 0 0 min(84%, 340px); scroll-snap-align: start; }
@media (min-width: 768px) { .car-track > * { flex-basis: 360px; } }
.car-track { align-items: stretch; }
.car-track > .program { height: auto; }
.car-bar + .link-arrow { flex: none; white-space: nowrap; }
.car-bar { height: 4px; background: var(--line); border-radius: 4px; overflow: hidden; flex: 1; }
.car-bar i { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: left; transform: scaleX(.2); transition: transform .3s ease-out; }

/* ---------- 10 Accordion & tabs ---------- */
.acc-item { border-bottom: 1px solid var(--line); }
.acc-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 4px; text-align: start; font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; transition: color .3s; min-height: 64px; }
.acc-btn:hover, .acc-btn[aria-expanded="true"] { color: var(--accent); }
.acc-btn .pm { width: 40px; height: 40px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-text); display: grid; place-items: center; flex: none; position: relative; transition: background-color .35s, color .35s, transform .45s var(--ease); }
.acc-btn .pm::before, .acc-btn .pm::after { content: ""; position: absolute; width: 14px; height: 2.4px; background: currentColor; border-radius: 2px; transition: transform .45s var(--ease); }
.acc-btn .pm::after { transform: rotate(90deg); }
.acc-btn[aria-expanded="true"] .pm { background: var(--accent); color: var(--on-accent); transform: rotate(180deg); }
.acc-btn[aria-expanded="true"] .pm::after { transform: rotate(0); }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.acc-panel > div { overflow: hidden; }
.acc-panel p { padding: 0 4px 24px; color: var(--muted); max-width: 64ch; }
.acc-item.is-open .acc-panel { grid-template-rows: 1fr; }

.tabs [role="tablist"] { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding-bottom: 6px; }
.tabs [role="tablist"]::-webkit-scrollbar { display: none; }
.tabs [role="tab"] { flex: none; }
.tab-panel { animation: fade-up .5s var(--ease); }
.tab-panel[hidden] { display: none; }
.sched-row { display: grid; grid-template-columns: 1fr; gap: 6px 20px; padding: 18px 20px; border-bottom: 1px solid var(--line); align-items: center; transition: background-color .3s, padding .35s var(--ease); }
.sched-row:last-child { border-bottom: 0; }
.sched-row:hover { background: var(--bg); padding-inline-start: 28px; }
.sched-row time { font-weight: 700; color: var(--accent); }
@media (min-width: 768px) { .sched-row { grid-template-columns: 170px 1fr auto; } }

/* ---------- 11 Modal, lightbox ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; visibility: hidden; opacity: 0; transition: opacity .35s ease, visibility 0s .35s; }
.modal.is-open { visibility: visible; opacity: 1; transition-delay: 0s; }
.modal .backdrop { position: absolute; inset: 0; background: rgba(23,19,28,.66); backdrop-filter: blur(3px); }
.modal .dialog { position: relative; width: min(100%, 820px); max-height: calc(100dvh - 32px); overflow-y: auto; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); transform: translateY(26px) scale(.96); transition: transform .45s var(--ease); }
.modal.is-open .dialog { transform: none; }
.modal .close { position: absolute; top: 14px; inset-inline-end: 14px; z-index: 3; }
.modal .dialog.sm { width: min(100%, 520px); }
.pm-grid { display: grid; }
@media (min-width: 768px) { .pm-grid { grid-template-columns: 5fr 6fr; } }
.pm-grid .pic { min-height: 220px; }
.pm-grid .pic img { width: 100%; height: 100%; object-fit: cover; }
.dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 1rem; }
.dl dt { font-weight: 700; display: flex; gap: 8px; align-items: center; color: var(--brand-text); }
.dl dd { margin: 0; color: var(--muted); }
.lightbox .dialog { background: transparent; box-shadow: none; width: min(100%, 1000px); overflow: visible; }
.lightbox figure { margin: 0; }
.lightbox img { width: 100%; max-height: 74dvh; object-fit: contain; border-radius: 18px; background: #1b1b1b; }
.lightbox figcaption { color: #fff; text-align: center; margin-top: 14px; font-weight: 700; }
.lightbox .lb-nav { position: absolute; top: 40%; z-index: 3; }
.lightbox .lb-prev { inset-inline-start: 8px; } .lightbox .lb-next { inset-inline-end: 8px; }
.lightbox .close { top: -4px; inset-inline-end: 0; }
.lightbox img.swap { animation: lb-in .45s var(--ease); }
.video-frame { aspect-ratio: 16/9; position: relative; background: #111; overflow: hidden; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.video-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
.video-frame img.is-active { opacity: 1; }
.video-frame .v-cap { position: absolute; inset-inline: 0; bottom: 0; padding: 40px 22px 18px; color: #fff; font-weight: 700; background: linear-gradient(transparent, rgba(0,0,0,.7)); }

/* ---------- 12 Toasts ---------- */
.toasts { position: fixed; z-index: 400; bottom: 84px; inset-inline-end: 20px; display: grid; gap: 10px; width: min(380px, calc(100vw - 40px)); }
.toast { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); color: var(--ink); border-radius: 16px; padding: 14px 16px; box-shadow: var(--shadow-lg); border-inline-start: 5px solid var(--ok); animation: toast-in .5s var(--ease); font-size: 1rem; line-height: 1.45; }
.toast.error { border-color: var(--bad); } .toast.info { border-color: var(--info); }
.toast .t-ico { color: var(--ok); margin-top: 2px; } .toast.error .t-ico { color: var(--bad); } .toast.info .t-ico { color: var(--info); }
.toast.is-leaving { animation: toast-out .4s var(--ease) forwards; }
.toast button { margin-inline-start: auto; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; flex: none; }
.toast button:hover { background: var(--line); }

.to-top { position: fixed; z-index: 90; bottom: 20px; inset-inline-end: 20px; width: 52px; height: 52px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(16px); transition: opacity .4s, transform .4s var(--ease), visibility 0s .4s, background-color .3s; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.to-top:hover { background: var(--accent); }

/* ---------- 13 Forms & auth ---------- */
.field { display: grid; gap: 6px; margin-bottom: 16px; position: relative; }
.field label, .label { font-weight: 700; font-size: 1rem; }
.input, .select, .textarea {
  width: 100%; min-height: 54px; padding: 12px 16px; border-radius: 14px; border: 1.5px solid var(--line);
  background: var(--surface); color: var(--ink); font: inherit; font-size: 1.05rem;
  transition: border-color .3s, box-shadow .3s, background-color .4s;
}
.textarea { min-height: 110px; resize: vertical; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237a7268' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 20px; padding-inline-end: 44px; }
.input::placeholder, .textarea::placeholder { color: #8A7F94; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--brand-2); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand-text); box-shadow: 0 0 0 4px var(--brand-soft); }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--bad); box-shadow: 0 0 0 4px var(--bad-soft); animation: shake .4s; }
.field-error { color: var(--bad); font-size: .95rem; font-weight: 700; display: flex; gap: 6px; align-items: center; animation: err-in .35s var(--ease); }
.field-error .icon { width: 16px; height: 16px; stroke-width: 2.4; }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-inline-end: 56px; }
.pw-toggle { position: absolute; inset-inline-end: 5px; top: 5px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; color: var(--muted); }
.pw-toggle:hover { background: var(--bg); color: var(--ink); }
.pw-toggle .i-off, .pw-toggle[aria-pressed="true"] .i-on { display: none; }
.pw-toggle[aria-pressed="true"] .i-off { display: block; }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; min-height: 44px; }
.check input { appearance: none; width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--muted); flex: none; margin: 2px 0 0; display: grid; place-items: center; transition: background-color .25s, border-color .25s; cursor: pointer; background: var(--surface); }
.check input::after { content: ""; width: 12px; height: 7px; border: 3px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) scale(0); margin-top: -3px; transition: transform .3s var(--ease); }
.check input:checked { background: var(--brand); border-color: var(--brand-text); }
.check input:checked::after { transform: rotate(-45deg) scale(1); }
.strength { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 4px; }
.strength i { height: 6px; border-radius: 6px; background: var(--line); transition: background-color .4s; }
.strength[data-level="1"] i:nth-child(-n+1) { background: var(--bad); }
.strength[data-level="2"] i:nth-child(-n+2) { background: var(--gold); }
.strength[data-level="3"] i:nth-child(-n+3) { background: #7FA650; }
.strength[data-level="4"] i { background: var(--ok); }
.strength-text { font-size: .92rem; color: var(--muted); font-weight: 700; }

.auth { display: grid; min-height: calc(100vh - var(--header-h)); }
@media (min-width: 1024px) { .auth { grid-template-columns: 1fr 1.05fr; } }
.auth-side { position: relative; overflow: hidden; color: #fff; background: #5A4573; display: flex; flex-direction: column; justify-content: flex-end; isolation: isolate; }
/* Mobile and tablet: image panel sits below the form */
@media (max-width: 1023px) { .auth-side { order: 2; min-height: 460px; padding: 24px 20px; } }
@media (min-width: 640px) and (max-width: 1023px) { .auth-side { min-height: 560px; padding: 40px 36px; } }
@media (min-width: 1024px) { .auth-side { padding: 48px; } }
.auth-side > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.auth-side::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(58,42,78,.1) 30%, rgba(31,25,36,.94) 78%); }
.auth-side .panel { background: rgba(255,255,255,.1); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.22); border-radius: var(--radius); padding: 24px; }
.auth-side .tick { background: rgba(255,255,255,.16); color: var(--gold); }
.auth-main { position: relative; display: grid; place-items: center; padding: clamp(32px, 6vw, 72px) 20px; overflow: hidden; }
.auth-box { width: min(100%, 520px); position: relative; z-index: 2; }
.js .auth-box > *, .js .auth-box form > * { opacity: 0; animation: fade-up .7s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 70ms + 100ms); }
.auth-note { display: flex; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--brand-soft); color: var(--brand-text); font-size: .98rem; line-height: 1.5; }
.demo-box { border: 1.5px dashed var(--gold); background: var(--gold-soft); color: var(--on-gold-soft); border-radius: 14px; padding: 12px 16px; font-size: .96rem; }
.divider { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: .92rem; font-weight: 700; margin-block: 18px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- 14 Dashboard ---------- */
.dash { min-height: 100vh; background: var(--bg); }
.sidebar { position: fixed; inset-block: 0; inset-inline-start: 0; width: 272px; z-index: 120; background: var(--brand); color: #F4EEF6; display: flex; flex-direction: column; padding: 22px 16px; transform: translateX(calc(-100% * var(--dir))); transition: transform .45s var(--ease); overflow-y: auto; }
.sidebar.is-open { transform: none; box-shadow: var(--shadow-lg); }
.side-scrim { position: fixed; inset: 0; z-index: 110; background: rgba(23,19,28,.55); opacity: 0; visibility: hidden; transition: opacity .4s, visibility 0s .4s; }
.side-scrim.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
.side-nav { display: grid; gap: 4px; margin-top: 26px; }
.side-link { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 14px; border-radius: 14px; font-weight: 700; min-height: 52px; position: relative; text-align: start; transition: background-color .3s, color .3s, padding .35s var(--ease); }
.side-link:hover { background: rgba(255,255,255,.1); padding-inline-start: 18px; }
.side-link[aria-current="page"] { background: #FBEFEF; color: #5A4573; }
.side-link[aria-current="page"]::before { content: ""; position: absolute; inset-inline-start: -16px; top: 10px; bottom: 10px; width: 5px; border-radius: 0 5px 5px 0; background: var(--gold); }
.side-link .count { margin-inline-start: auto; background: var(--accent); color: var(--on-accent); font-size: .78rem; min-width: 24px; height: 24px; border-radius: 12px; display: grid; place-items: center; padding-inline: 6px; }
.side-card { margin-top: auto; background: rgba(255,255,255,.1); border-radius: 16px; padding: 16px; font-size: .95rem; line-height: 1.5; }
.side-card a { color: var(--gold); font-weight: 700; display: inline-flex; min-height: 40px; align-items: center; }
.dash-main { min-width: 0; }
@media (min-width: 1100px) {
  .sidebar { transform: none; }
  .dash-main { margin-inline-start: 272px; }
  .side-scrim, .dash-burger { display: none !important; }
}
.dash-top { position: sticky; top: 0; z-index: 80; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.dash-top .bar { display: flex; align-items: center; gap: 10px; min-height: 76px; padding-inline: 16px; }
@media (min-width: 768px) { .dash-top .bar { padding-inline: 28px; } }
.elder-chip { display: flex; align-items: center; gap: 12px; min-width: 0; }
.elder-chip img { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--gold); flex: none; }
.elder-chip b { display: block; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.elder-chip small { color: var(--muted); font-size: .85rem; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-content { padding: 22px 16px 60px; max-width: 1280px; animation: page-in .6s var(--ease); }
@media (min-width: 768px) { .dash-content { padding: 30px 28px 70px; } }
.bell { position: relative; }
.bell .badge { position: absolute; top: -3px; inset-inline-end: -3px; min-width: 20px; height: 20px; border-radius: 10px; background: var(--accent); color: var(--on-accent); font-size: .72rem; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--bg); }
.dropdown { position: absolute; top: calc(100% + 8px); inset-inline-end: 16px; width: min(400px, calc(100vw - 32px)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(-10px) scale(.98); transform-origin: top right; transition: opacity .3s, transform .35s var(--ease), visibility 0s .35s; z-index: 90; }
.dropdown.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.notif { display: flex; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: .98rem; line-height: 1.45; transition: background-color .3s; }
.notif:last-child { border-bottom: 0; }
.notif:hover { background: var(--bg); }
.notif .n-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--brand-soft); color: var(--brand-text); }
.notif.warn .n-ico { background: var(--warn-soft); color: var(--warn); }
.notif.info .n-ico { background: var(--info-soft); color: var(--info); }
.notif small { color: var(--muted); display: block; font-size: .85rem; }
.notif.unread b::after { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-inline-start: 8px; vertical-align: middle; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; transition: box-shadow .4s, transform .4s var(--ease), background-color .4s, border-color .4s; }
.panel:hover { box-shadow: var(--shadow-sm); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.panel-head h2, .panel-head h3 { font-size: 1.25rem; display: flex; align-items: center; gap: 10px; }
.panel-head h2 .icon, .panel-head h3 .icon { color: var(--accent); }
.welcome { background: var(--brand); color: #fff; border-color: transparent; position: relative; overflow: hidden; isolation: isolate; }
.welcome .blob { background: rgba(255,255,255,.08); filter: none; z-index: -1; }
.welcome .who { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.welcome .who img { width: 92px; height: 92px; border-radius: 28px; border: 3px solid var(--gold); }
.welcome dl { display: flex; flex-wrap: wrap; gap: 8px 26px; margin: 14px 0 0; font-size: .96rem; }
.welcome dt { color: #D8CAE6; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; }
.welcome dd { margin: 0; font-weight: 700; }
.kpi { display: flex; gap: 16px; align-items: flex-start; }
.kpi .k-ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; flex: none; background: var(--brand-soft); color: var(--brand-text); }
.kpi .k-ico.a { background: var(--accent-soft); color: var(--accent); }
.kpi .k-ico.y { background: var(--gold-soft); color: var(--on-gold-soft); }
.kpi .k-ico.b { background: var(--info-soft); color: var(--info); }
.kpi small { color: var(--muted); font-size: .9rem; display: block; }
.kpi b { font-family: var(--font-display); font-size: 1.9rem; line-height: 1.15; display: block; font-variant-numeric: tabular-nums; }
.kpi .sub { font-size: .92rem; color: var(--muted); }
.pring { --p: 0; width: 92px; height: 92px; flex: none; position: relative; display: grid; place-items: center; font-weight: 700; font-family: var(--font-display); font-size: 1.25rem; }
.pring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.pring circle { fill: none; stroke-width: 9; }
.pring .bg { stroke: var(--line); }
.pring .fg { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 251.3; stroke-dashoffset: calc(251.3 - 251.3 * var(--p)); transition: stroke-dashoffset 1.6s var(--ease) .3s; }
.vital-mini { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 520px) { .vital-mini { grid-template-columns: repeat(5, 1fr); } }
.vital-mini div { background: var(--bg); border-radius: 14px; padding: 12px; text-align: center; }
.vital-mini small { display: block; color: var(--muted); font-size: .8rem; }
.vital-mini b { font-family: var(--font-display); font-size: 1.3rem; }
.vital-mini span { font-size: .78rem; color: var(--muted); display: block; }
.act-list li { display: flex; align-items: center; gap: 12px; padding-block: 10px; border-bottom: 1px dashed var(--line); }
.act-list li:last-child { border-bottom: 0; }
.act-list time { font-weight: 700; color: var(--accent); font-size: .92rem; min-width: 78px; }
.note { background: var(--gold-soft); color: var(--on-gold-soft); border-radius: 16px; padding: 18px 20px; position: relative; font-size: 1.02rem; }
.note footer { margin-top: 10px; font-weight: 700; font-size: .92rem; display: flex; align-items: center; gap: 10px; }
.note footer img { width: 36px; height: 36px; border-radius: 50%; }
.meal { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-block: 8px; border-bottom: 1px dashed var(--line); }
.meal:last-child { border: 0; }
.mood { display: flex; align-items: center; gap: 14px; }
.mood .face { width: 60px; height: 60px; border-radius: 50%; background: var(--gold-soft); color: var(--on-gold-soft); display: grid; place-items: center; flex: none; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--bg-alt); border: 1px solid var(--line); }
.seg button { min-height: 42px; padding: 6px 18px; border-radius: 999px; font-weight: 700; font-size: .95rem; transition: background-color .3s, color .3s; }
.seg button[aria-pressed="true"] { background: var(--brand); color: #fff; }

.k-ico-sm { display: inline-grid; }
@media (max-width: 480px) {
  .dash-top .bar { gap: 6px; padding-inline: 12px; }
  .dash-top .icon-btn { width: 44px; height: 44px; }
  .elder-chip img { width: 42px; height: 42px; }
  .panel { padding: 18px 16px; }
}

/* Calendar */
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-dow { text-align: center; font-size: .82rem; font-weight: 700; color: var(--muted); padding-block: 6px; text-transform: uppercase; letter-spacing: .06em; }
.cal-cell { aspect-ratio: 1; min-height: 44px; border-radius: 12px; display: grid; place-items: center; align-content: center; gap: 1px; font-weight: 700; font-size: .98rem; background: var(--bg); position: relative; opacity: 0; animation: cell-in .45s var(--ease) forwards; animation-delay: calc(var(--i) * 14ms); transition: transform .3s var(--ease), box-shadow .3s; }
.cal-cell.empty { background: transparent; }
.cal-cell[data-s]:hover { transform: scale(1.07); box-shadow: var(--shadow-sm); z-index: 2; }
.cal-cell .icon { width: 14px; height: 14px; stroke-width: 2.6; }
.cal-cell[data-s="present"] { background: var(--ok-soft); color: var(--ok); }
.cal-cell[data-s="absent"] { background: var(--bad-soft); color: var(--bad); }
.cal-cell[data-s="half"] { background: var(--warn-soft); color: var(--warn); }
.cal-cell[data-s="holiday"] { background: var(--info-soft); color: var(--info); }
.cal-cell[data-s="future"] { color: var(--muted); opacity: .55; }
.cal-cell.today { outline: 3px solid var(--accent); outline-offset: 2px; }
.cal-cell.dim { filter: grayscale(1); opacity: .35 !important; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 12px; }

/* Tables scroll inside their own container */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 1rem; }
.table th { text-align: start; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 14px 16px; background: var(--bg-alt); white-space: nowrap; }
.table td { padding: 14px 16px; border-top: 1px solid var(--line); white-space: nowrap; font-variant-numeric: tabular-nums; }
.table td.wrap-ok { white-space: normal; min-width: 200px; }
.table tbody tr { transition: background-color .25s; opacity: 0; animation: row-in .45s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 35ms); }
.table tbody tr:hover { background: var(--bg); }

/* Vitals */
.vital { position: relative; overflow: hidden; }
.vital .v-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.vital .v-val { font-family: var(--font-display); font-size: 2.3rem; line-height: 1.1; margin-top: 12px; font-variant-numeric: tabular-nums; }
.vital .v-val small { font-family: var(--font-body); font-size: 1rem; color: var(--muted); font-weight: 400; }
.vital .v-chg { display: inline-flex; align-items: center; gap: 6px; font-size: .92rem; color: var(--muted); margin-top: 6px; }
.vital .spark { margin-top: 12px; height: 44px; }
.med { display: flex; align-items: center; gap: 14px; padding-block: 12px; border-bottom: 1px dashed var(--line); }
.med:last-child { border: 0; }
.med .m-ico { width: 44px; height: 44px; border-radius: 12px; background: var(--info-soft); color: var(--info); display: grid; place-items: center; flex: none; }
.disclaimer { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 16px; border: 1.5px solid var(--info); background: var(--info-soft); color: var(--info); font-weight: 700; }

/* Activity report */
.rep-tl { position: relative; padding-inline-start: 30px; }
.rep-tl::before { content: ""; position: absolute; inset-inline-start: 9px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.rep-item { position: relative; padding-block: 12px; opacity: 0; animation: row-in .5s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 70ms); }
.rep-item::before { content: ""; position: absolute; inset-inline-start: -27px; top: 20px; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 3px solid var(--accent); }
.rep-item .r-top { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.rep-item time { font-weight: 700; color: var(--accent); font-size: .92rem; }
.level { display: inline-flex; gap: 3px; align-items: flex-end; height: 16px; }
.level i { width: 5px; border-radius: 2px; background: var(--line); }
.level i:nth-child(1) { height: 6px; } .level i:nth-child(2) { height: 11px; } .level i:nth-child(3) { height: 16px; }
.level[data-l="1"] i:nth-child(-n+1), .level[data-l="2"] i:nth-child(-n+2), .level[data-l="3"] i { background: var(--ok); }
.photo-day { border-radius: 16px; overflow: hidden; aspect-ratio: 4/3; }
.photo-day img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.photo-day:hover img { transform: scale(1.05); }

/* ---------- 15 Charts (hand-built SVG) ---------- */
.chart { width: 100%; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart .gl { stroke: var(--line); stroke-width: 1; }
.chart .axis { fill: var(--muted); font-size: 12px; font-family: var(--font-body); }
.chart .line { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: var(--len, 1000); stroke-dashoffset: var(--len, 1000); animation: draw 1.6s var(--ease) .2s forwards; }
.chart .area { opacity: 0; animation: fade .8s ease 1s forwards; }
.chart .pt { opacity: 0; animation: fade .4s ease forwards; animation-delay: calc(var(--i) * 40ms + .9s); stroke: var(--surface); stroke-width: 2; }
.chart .bar { transform-box: fill-box; transform-origin: bottom; transform: scaleY(0); animation: grow-y .9s var(--ease) forwards; animation-delay: calc(var(--i) * 80ms + .1s); }
.chart .hit { fill: transparent; cursor: pointer; }
.chart .val { fill: var(--ink); font-size: 12px; font-weight: 700; font-family: var(--font-body); }
.chart-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .9rem; font-weight: 700; margin-top: 8px; }
.chart-legend i { display: inline-block; width: 14px; height: 4px; border-radius: 4px; margin-inline-end: 6px; vertical-align: middle; }
.chart-tip { position: absolute; pointer-events: none; background: var(--ink); color: var(--bg); padding: 6px 10px; border-radius: 10px; font-size: .85rem; font-weight: 700; white-space: nowrap; transform: translate(-50%, -120%); opacity: 0; transition: opacity .2s; z-index: 5; }
.chart-box { position: relative; }
.hbar { display: grid; grid-template-columns: 90px 1fr 44px; align-items: center; gap: 12px; padding-block: 8px; font-weight: 700; font-size: .98rem; }
.hbar .track { height: 14px; border-radius: 14px; background: var(--line); overflow: hidden; }
.hbar .fill { height: 100%; border-radius: 14px; background: var(--brand-2); transform: scaleX(0); transform-origin: left; animation: grow-x 1.2s var(--ease) forwards; animation-delay: calc(var(--i) * 110ms); }
.hbar:nth-child(2n) .fill { background: var(--accent); } .hbar:nth-child(3n) .fill { background: var(--gold); }
.hbar span:last-child { text-align: end; font-variant-numeric: tabular-nums; }

/* ---------- 16 Utility pages (404, Coming Soon) ---------- */
.util { min-height: 100vh; display: grid; grid-template-rows: auto 1fr; position: relative; overflow: hidden; }
.util-main { display: grid; place-items: center; text-align: center; padding: 40px 20px 80px; position: relative; z-index: 2; }
.big-404 { font-family: var(--font-display); font-size: clamp(7rem, 26vw, 16rem); line-height: .9; color: var(--brand-text); display: flex; justify-content: center; align-items: center; gap: .04em; font-weight: 700; }
.big-404 .zero { width: .78em; height: .78em; border-radius: 50%; overflow: hidden; border: .06em solid var(--accent); display: inline-block; animation: float-a 7s ease-in-out infinite; }
.big-404 .zero img { width: 100%; height: 100%; object-fit: cover; }
.countdown { display: flex; justify-content: center; gap: clamp(8px, 2vw, 18px); flex-wrap: wrap; }
.cd-box { width: clamp(68px, 20vw, 120px); padding: 16px 6px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.cd-box b { font-family: var(--font-display); font-size: clamp(1.9rem, 6vw, 3.2rem); line-height: 1; display: block; color: var(--accent); font-variant-numeric: tabular-nums; }
.cd-box b.tick { animation: tick .5s var(--ease); }
.cd-box span { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* ---------- 17 Footer ---------- */
.site-footer { background: #2A2035; color: #EBE2F3; position: relative; overflow: hidden; margin-top: 0; }
.site-footer h2 { color: #fff; font-size: 1.2rem; margin-bottom: 16px; }
.site-footer .f-link { display: inline-flex; align-items: center; min-height: 40px; transition: color .3s, transform .35s var(--ease); }
.site-footer .f-link:hover { color: var(--gold); transform: translateX(calc(6px * var(--dir))); }
.site-footer .contact li { display: flex; gap: 12px; padding-block: 7px; }
.site-footer .contact .icon { color: var(--gold); margin-top: 4px; }
.site-footer .social a { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.3); display: grid; place-items: center; transition: background-color .3s, color .3s, transform .35s var(--ease), border-color .3s; }
.site-footer .social a:hover { background: var(--gold); color: #2A2035; border-color: var(--gold); transform: translateY(-4px); }
.site-footer .input { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.25); color: #fff; }
.site-footer .input::placeholder { color: #BEB4C6; }
.site-footer .field-error { color: #FFC2B5; }
.site-footer .bottom { border-top: 1px solid rgba(255,255,255,.14); font-size: .95rem; }
.site-footer .hours li { display: flex; justify-content: space-between; gap: 12px; padding-block: 6px; border-bottom: 1px dashed rgba(255,255,255,.16); }

/* ---------- 18 Reveal & motion ---------- */
.js [data-reveal] { opacity: 0; transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); will-change: opacity, transform; }
.js [data-reveal="up"] { transform: translateY(36px); }
.js [data-reveal="left"] { transform: translateX(calc(-48px * var(--dir))); }
.js [data-reveal="right"] { transform: translateX(calc(48px * var(--dir))); }
.js [data-reveal="scale"] { transform: scale(.9); }
/* Image reveal: the frame stays put and the picture wipes in (the clip is on the <img>,
   so the frame itself can still be observed by IntersectionObserver) */
.js [data-reveal="image"] { opacity: 1; background: var(--accent-soft); }
.js [data-reveal="image"] img { clip-path: inset(0 100% 0 0); transform: scale(1.18); transition: clip-path 1.2s var(--ease), transform 1.6s var(--ease); transition-delay: var(--d, 0ms); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.js [data-reveal="image"].is-visible img { clip-path: inset(0 0 0 0); transform: none; }

@keyframes fade-up { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes fade { to { opacity: 1; } }
@keyframes slide-in-x { from { opacity: 0; transform: translateX(calc(var(--from) * var(--dir))); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.8) translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes mask-up { to { clip-path: inset(0 0 0 0); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float-a { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-14px) rotate(3deg); } }
@keyframes float-b { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(10px, 12px); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes pulse-ring { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes beat { from { stroke-dashoffset: 80; } to { stroke-dashoffset: 0; } }
@keyframes fill-x { to { transform: scaleX(1); } }
@keyframes grow-x { to { transform: scaleX(var(--v, 1)); } }
@keyframes grow-y { to { transform: scaleY(1); } }
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-12deg); } 60% { transform: rotate(10deg); } }
@keyframes badge-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(196,178,214,.55); } 60% { box-shadow: 0 0 0 9px rgba(196,178,214,0); } }
@keyframes toast-in { from { opacity: 0; transform: translateX(calc(40px * var(--dir))); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateX(calc(40px * var(--dir))); } }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
@keyframes err-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes cell-in { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: none; } }
@keyframes row-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes page-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes lb-in { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
@keyframes tick { 0% { transform: translateY(-8px); opacity: .3; } 100% { transform: none; opacity: 1; } }

/* Floating cards bob after their entrance has finished */
.bob-1 { animation: bob 6s ease-in-out 2.4s infinite; }
.bob-2 { animation: bob 7.5s ease-in-out 2.8s infinite; }
.bob-3 { animation: bob 9s ease-in-out 3.2s infinite; }

/* Respect reduced-motion: keep content visible, drop movement */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0ms !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
  .js [data-reveal], .js [data-reveal] img, .js .enter, .js .enter-pop, .js .enter-left, .js .enter-right { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .js .enter-mask { clip-path: none !important; }
  [data-depth] { translate: none !important; }
}

/* ---------- Late refinements ---------- */
.sidebar .logo-tag { display: none; }
#todayStatus { justify-items: start; }
#todayStatus b { font-family: var(--font-display); font-size: 1.6rem; line-height: 1.2; }
.chart .axis, .chart .val { font-size: 14px; }
.med { flex-wrap: wrap; }
.med .status { margin-inline-start: 58px; }
/* Grid children may shrink below their content width (keeps tables and sliders inside the page) */
.grid { grid-template-columns: minmax(0, 1fr); }
.ts-stage, .hslider { grid-template-columns: minmax(0, 1fr); }
.section, .stats-band { overflow-x: clip; }
@media (max-width: 640px) { .pm-float { inset-inline-end: 0; } }
.cal-cell { min-width: 0; }
.kpi > div { min-width: 0; }
@media (max-width: 420px) {
  .cal-grid { gap: 3px; } .cal-cell { min-height: 38px; font-size: .88rem; border-radius: 9px; }
  .kpi { gap: 10px; } .kpi .k-ico { width: 40px; height: 40px; border-radius: 12px; } .kpi b { font-size: 1.5rem; }
}
[hidden] { display: none !important; }
.auth-main > .dots { opacity: .18; }

/* ==========================================================================
   Revision 2: warm cocoa brand colour, tighter spacing, new pages
   ========================================================================== */

/* Tighter vertical rhythm */
.section { padding-block: clamp(44px, 6vw, 84px); }
.section-head { margin-bottom: clamp(24px, 3.5vw, 40px); }
.hero { padding-block: clamp(24px, 4vw, 48px) clamp(96px, 11vw, 150px); }
.page-banner { padding-block: clamp(40px, 6vw, 76px); }
.hl { color: var(--accent); }

/* Header: Home dropdown and login icon */
.nav-link { gap: 4px; }
.nav-link.is-active { color: var(--accent); }
.nav-link.is-active::after { transform: scaleX(1); }
.nav-link .caret { transition: transform .35s var(--ease); }
.nav-drop { position: relative; }
.nav-drop:hover .caret, .nav-drop.is-open .caret { transform: rotate(180deg); }
.nav-menu {
  position: absolute; top: 100%; inset-inline-start: 0; min-width: 190px; padding: 8px; z-index: 20;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s .3s;
}
.nav-drop:hover .nav-menu, .nav-drop:focus-within .nav-menu, .nav-drop.is-open .nav-menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.nav-menu a { display: flex; align-items: center; min-height: 46px; padding: 8px 14px; border-radius: 10px; font-weight: 700; transition: background-color .25s, color .25s, padding .3s var(--ease); }
.nav-menu a:hover, .nav-menu a[aria-current="page"] { background: var(--brand-soft); color: var(--accent); padding-inline-start: 18px; }

/* Home 2: quick facts card under the hero slider */
.hslider { padding-bottom: 110px; min-height: min(760px, 88vh); }
.hs-dots { bottom: 132px; } .hs-count { bottom: 126px; }
.enquiry-card { margin-top: -84px; }
.facts { display: grid; gap: 18px; align-items: center; }
.facts .kpi { align-items: center; gap: 14px; }
.facts .kpi small { font-size: .85rem; margin-bottom: 2px; }
.facts .kpi b { font-size: 1.05rem; line-height: 1.35; }
@media (min-width: 640px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) {
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 0; }
  .facts > li { padding-inline: 24px; }
  .facts > li:first-child { padding-inline-start: 0; }
  .facts > li:last-child { padding-inline-end: 0; }
  .facts > .kpi + .kpi { border-inline-start: 1px solid var(--line); }
}

/* Family portal preview card stays inside small screens */
.pm-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pm-head { flex-wrap: wrap; }
.pm-head > div { min-width: 0; flex: 1; }
@media (max-width: 420px) {
  .portal-mock { padding: 16px; }
  .pm-row { gap: 8px; } .pm-tile { padding: 10px 8px; } .pm-tile b { font-size: 1.05rem; } .pm-tile small { font-size: .72rem; }
  .pm-week { gap: 4px; }
}

/* Program details and Book a Visit pages */
.pd-photo { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 10; box-shadow: var(--shadow); }
.pd-photo img { width: 100%; height: 100%; object-fit: cover; }
.pd-facts > div { padding-block: 12px; border-bottom: 1px dashed var(--line); }
.pd-facts > div:last-child { border-bottom: 0; }
.pd-facts dt { display: flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pd-facts dt .icon { width: 18px; height: 18px; color: var(--accent); }
.pd-facts dd { font-weight: 700; margin-top: 2px; }
@media (min-width: 1024px) { .pd-side { position: sticky; top: 100px; } }
.program a.more { position: static; }

/* Login and register: no site header or footer, only logo and toggles */
.auth { min-height: 100vh; }
.auth-bar { position: absolute; top: 0; inset-inline: 0; z-index: 4; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; }
@media (min-width: 768px) { .auth-bar { padding: 22px 36px; } }
.auth-main { padding-top: 110px; }
@media (max-width: 479px) { .auth-bar .logo-tag { display: none; } }
/* Mobile: image as a banner on top, logo bar laid over it */
@media (max-width: 639px) {
  .auth { position: relative; grid-template-rows: auto 1fr; }
  .auth-side { order: 0; min-height: 0; height: 300px; padding: 0; }
  .auth-side::before, html.dark .auth .auth-side::before { background: linear-gradient(180deg, rgba(31,25,36,.7) 0%, rgba(31,25,36,0) 45%); }
  .auth-side .panel, .auth-side .deco { display: none; }
  .auth-main { position: static; padding-top: 40px; place-items: start center; }
  .auth-main > .deco { display: none; }
  .auth-bar .logo-text { color: #fff; }
  .auth-bar .logo-text span { color: var(--gold); }
  .auth-bar .logo-tag { color: #D8CAE6; }
}

/* Contact page */
.ct-hero { display: grid; align-items: center; gap: 28px; }
@media (min-width: 768px) { .ct-hero { grid-template-columns: minmax(0, 1fr) auto; } }
.ct-live { display: inline-flex; align-items: center; gap: 10px; margin: 14px 0 6px; padding: 8px 16px; border-radius: 20px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); font-weight: 700; font-size: .95rem; }
.ct-live .dot { width: 10px; height: 10px; border-radius: 50%; background: #9BE7BC; flex: none; animation: ab-live 1.8s ease-out infinite; }

.ct-visual { position: relative; width: 300px; height: 260px; margin-inline: auto; }
.ct-orbit { position: absolute; inset: 20px 40px; border: 1.5px dashed rgba(255,255,255,.28); border-radius: 50%; animation: spin 40s linear infinite; }
.ct-phone, .ct-ring { position: absolute; top: 50%; left: 50%; width: 96px; height: 96px; margin: -48px 0 0 -48px; border-radius: 50%; }
.ct-phone { display: grid; place-items: center; background: var(--gold); color: #2A2035; box-shadow: 0 16px 40px rgba(0,0,0,.25); z-index: 2; }
.ct-phone .icon { width: 42px; height: 42px; animation: ct-ring-phone 2.4s ease-in-out infinite; transform-origin: 50% 60%; }
.ct-ring { border: 2px solid var(--gold); animation: pulse-ring 2.4s ease-out infinite; }
.ct-ring.r2 { animation-delay: .8s; }
.ct-ring.r3 { animation-delay: 1.6s; }
.ct-chip { position: absolute; width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; background: #fff; color: var(--brand); box-shadow: 0 12px 28px rgba(0,0,0,.2); z-index: 3; }
.ct-chip .icon { width: 26px; height: 26px; }
.ct-chip.c1 { top: 14px; inset-inline-start: 30px; animation: bob 5s ease-in-out infinite; }
.ct-chip.c2 { top: 14px; inset-inline-end: 30px; animation: bob 6s ease-in-out .8s infinite; }
.ct-chip.c3 { bottom: 14px; inset-inline-start: 30px; animation: bob 7s ease-in-out 1.6s infinite; }
.ct-bubble { position: absolute; bottom: 26px; inset-inline-end: 26px; display: flex; gap: 5px; padding: 12px 14px; background: #fff; border-radius: 18px 18px 4px 18px; box-shadow: 0 12px 28px rgba(0,0,0,.2); z-index: 3; }
.ct-bubble i { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); animation: ct-typing 1.2s ease-in-out infinite; }
.ct-bubble i:nth-child(2) { animation-delay: .15s; }
.ct-bubble i:nth-child(3) { animation-delay: .3s; }
/* Mobile: smaller visual that fits the screen, centred under the title */
@media (max-width: 767px) {
  .ct-visual { width: 250px; height: 220px; }
  .ct-orbit { inset: 15px 30px; }
  .ct-phone, .ct-ring { width: 80px; height: 80px; margin: -40px 0 0 -40px; }
  .ct-phone .icon { width: 34px; height: 34px; }
  .ct-chip { width: 48px; height: 48px; border-radius: 15px; }
  .ct-chip .icon { width: 22px; height: 22px; }
  .ct-chip.c1, .ct-chip.c2 { top: 8px; }
  .ct-chip.c1, .ct-chip.c3 { inset-inline-start: 16px; }
  .ct-chip.c2 { inset-inline-end: 16px; }
  .ct-chip.c3 { bottom: 8px; }
  .ct-bubble { bottom: 20px; inset-inline-end: 12px; padding: 10px 12px; }
}
@keyframes ct-ring-phone { 0%, 50%, 100% { transform: rotate(0); } 5%, 15%, 25%, 35% { transform: rotate(-14deg); } 10%, 20%, 30%, 40% { transform: rotate(14deg); } }
@keyframes ct-typing { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-5px); opacity: 1; } }
html.dark .ct-chip, html.dark .ct-bubble { background: var(--surface); color: var(--ink); }

/* Quick actions under the pill */
.ct-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0 8px; }
.ct-actions .btn { gap: 8px; }
.ct-shake { animation: ct-ring-phone 2.4s ease-in-out infinite; transform-origin: 50% 60%; }

/* Small floating decorations: paper plane, mini icons, twinkling stars, rising bubbles */
.ct-decor { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.ct-decor svg { position: absolute; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ct-plane { width: 34px; height: 34px; color: rgba(255,255,255,.55); top: 62%; left: -40px; animation: ct-fly 16s linear infinite; }
.ct-mini { width: 22px; height: 22px; color: rgba(255,255,255,.3); }
.ct-mini.m1 { top: 14%; left: 38%; animation: float-a 7s ease-in-out infinite; }
.ct-mini.m2 { top: 72%; left: 48%; width: 26px; height: 26px; animation: float-b 9s ease-in-out infinite; }
.ct-mini.m3 { top: 22%; left: 56%; width: 26px; height: 26px; animation: bob 6s ease-in-out 1s infinite; }
.ct-mini.m4 { top: 84%; left: 30%; width: 18px; height: 18px; animation: float-a 8s ease-in-out 2s infinite; }
.ct-mini.m5 { top: 10%; left: 70%; width: 20px; height: 20px; animation: float-b 10s ease-in-out 1.5s infinite; }
.ct-star { color: var(--gold); fill: currentColor !important; stroke: none !important; animation: ab-twinkle 3.2s ease-in-out infinite; }
.ct-star.s1 { width: 14px; height: 14px; top: 18%; left: 28%; }
.ct-star.s2 { width: 10px; height: 10px; top: 58%; left: 40%; animation-delay: 1s; }
.ct-star.s3 { width: 16px; height: 16px; top: 80%; left: 62%; animation-delay: 2s; }
.ct-star.s4 { width: 12px; height: 12px; top: 34%; left: 47%; animation-delay: .5s; }
.ct-bub { position: absolute; bottom: -20px; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.35); animation: ct-rise 9s ease-in infinite; }
.ct-bub.b1 { left: 22%; }
.ct-bub.b2 { left: 44%; width: 14px; height: 14px; animation-delay: 2.5s; animation-duration: 11s; }
.ct-bub.b3 { left: 58%; width: 8px; height: 8px; animation-delay: 5s; }
.ct-bub.b4 { left: 34%; width: 12px; height: 12px; animation-delay: 7s; animation-duration: 10s; }
@keyframes ct-fly {
  0% { transform: translate(0, 0) rotate(8deg); opacity: 0; }
  5% { opacity: 1; }
  30% { transform: translate(30vw, -60px) rotate(-4deg); }
  60% { transform: translate(60vw, 10px) rotate(10deg); }
  90% { opacity: 1; }
  100% { transform: translate(105vw, -90px) rotate(-6deg); opacity: 0; }
}
@keyframes ct-rise { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(-420px) translateX(20px); opacity: 0; } }
@media (max-width: 767px) { .ct-mini.m1, .ct-mini.m3, .ct-mini.m5, .ct-star.s4 { display: none; } }

/* Laptop and desktop: bigger contact visual */
@media (min-width: 1024px) {
  .ct-visual { width: 440px; height: 400px; }
  .ct-orbit { inset: 30px 50px; }
  .ct-phone, .ct-ring { width: 130px; height: 130px; margin: -65px 0 0 -65px; }
  .ct-phone .icon { width: 56px; height: 56px; }
  .ct-chip { width: 74px; height: 74px; border-radius: 22px; }
  .ct-chip .icon { width: 32px; height: 32px; }
  .ct-chip.c1, .ct-chip.c2 { top: 22px; }
  .ct-chip.c1, .ct-chip.c3 { inset-inline-start: 40px; }
  .ct-chip.c2 { inset-inline-end: 40px; }
  .ct-chip.c3 { bottom: 22px; }
  .ct-bubble { bottom: 40px; inset-inline-end: 34px; padding: 15px 18px; gap: 7px; }
  .ct-bubble i { width: 10px; height: 10px; }
}

/* Full-screen page banner (Programs, Contact): fills the screen below the top bar and header
   so the next section does not peek in at the bottom. Laptop and up only. */
@media (min-width: 1024px) {
  .page-banner--full { display: grid; align-content: center; min-height: calc(100vh - var(--header-h) - 40px); min-height: calc(100svh - var(--header-h) - 40px); }
}
/* Programs page hero */
.pg-hero { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; gap: 28px; }
@media (min-width: 900px) { .pg-hero { grid-template-columns: minmax(0, 1fr) auto; } }
.pg-today { display: inline-flex; align-items: center; gap: 12px; max-width: 100%; margin: 20px 0 4px; padding: 6px 16px 6px 6px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); font-weight: 700; font-size: .95rem; }
.pg-today-label { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--gold); color: #2A2035; flex: none; }
.pg-today-label .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: ab-live 1.8s ease-out infinite; }
/* All items share one grid cell (box fits the longest); each fades in, holds, then fades out in turn */
.pg-tick { min-width: 0; }
.pg-tick-track { display: grid; }
.pg-tick-track > span { grid-area: 1 / 1; line-height: 1.6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; animation: pg-swap 12s ease-in-out infinite; }
.pg-tick-track > span:nth-child(2) { animation-delay: 3s; }
.pg-tick-track > span:nth-child(3) { animation-delay: 6s; }
.pg-tick-track > span:nth-child(4) { animation-delay: 9s; }
@keyframes pg-swap { 0% { opacity: 0; transform: translateY(8px); } 4%, 21% { opacity: 1; transform: none; } 25%, 100% { opacity: 0; transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .pg-tick-track > span:first-child { opacity: 1 !important; } }

.pg-visual { --r: 115px; position: relative; width: 310px; height: 310px; margin-inline: auto; }
.pg-track { position: absolute; inset: calc(50% - var(--r)); border: 1.5px dashed rgba(255,255,255,.28); border-radius: 50%; }
.pg-core { position: absolute; top: 50%; left: 50%; width: 92px; height: 92px; margin: -46px 0 0 -46px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: #2A2035; box-shadow: 0 0 0 14px rgba(255,255,255,.08), 0 16px 40px rgba(0,0,0,.25); }
.pg-core .icon { width: 40px; height: 40px; fill: currentColor; animation: pg-beat 1.6s ease-in-out infinite; }
.pg-wheel { position: absolute; inset: 0; animation: spin 36s linear infinite; }
.pg-item { position: absolute; top: 50%; left: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; transform: rotate(var(--a)) translateY(calc(-1 * var(--r))) rotate(calc(-1 * var(--a))); }
.pg-ic { width: 100%; height: 100%; display: grid; place-items: center; border-radius: 18px; background: #fff; color: var(--brand); box-shadow: 0 12px 28px rgba(0,0,0,.2); animation: spin 36s linear infinite reverse; }
.pg-ic .icon { width: 26px; height: 26px; }
.pg-note { position: absolute; top: 50%; left: 50%; color: rgba(255,255,255,.75); font-size: 1.3rem; opacity: 0; animation: pg-float-note 4.5s ease-out infinite; }
.pg-note.n2 { animation-delay: 1.5s; --x: -26px; }
.pg-note.n3 { animation-delay: 3s; --x: 18px; }
@keyframes pg-beat { 0%, 40%, 100% { transform: scale(1); } 15% { transform: scale(1.18); } 28% { transform: scale(1.06); } }
@keyframes pg-float-note { 0% { opacity: 0; transform: translate(0, -30px); } 20% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--x, 10px), -90px) rotate(15deg); } }
html.dark .pg-ic { background: var(--surface); color: var(--ink); }
@media (max-width: 899px) {
  .page-banner > .dots:has(+ .pg-hero), .page-banner:has(.pg-hero) > .dots { display: none; }
  .pg-visual { --r: 92px; width: 260px; height: 260px; }
  .pg-core { width: 76px; height: 76px; margin: -38px 0 0 -38px; }
  .pg-core .icon { width: 32px; height: 32px; }
  .pg-item { width: 48px; height: 48px; margin: -24px 0 0 -24px; }
  .pg-ic { border-radius: 15px; }
  .pg-ic .icon { width: 22px; height: 22px; }
}

.contact-map { display: block; width: 100%; height: 320px; border: 0; }
.hours-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.hours-list li:last-child { border-bottom: 0; }
.contact-urgent { background: var(--gold-soft); color: var(--on-gold-soft); border-color: transparent; }

/* Privacy policy */
.legal-toc ol { list-style: decimal; padding-inline-start: 22px; display: grid; gap: 6px; }
.legal-toc a { font-weight: 700; color: var(--brand-text); }
.legal-toc a:hover { color: var(--accent); }
@media (min-width: 1024px) { .legal-toc { position: sticky; top: calc(var(--header-h) + 24px); } }
.legal { max-width: 760px; }
.legal h2 { font-family: var(--font-display); font-size: clamp(1.35rem, 2vw, 1.6rem); margin: 36px 0 12px; }
.legal p, .legal li { line-height: 1.7; }
.legal p + p { margin-top: 12px; }
.legal ul { list-style: disc; padding-inline-start: 22px; display: grid; gap: 8px; }
.legal ul + p { margin-top: 14px; }
.legal-note { margin-top: 20px; padding: 14px 16px; border-radius: 14px; background: var(--brand-soft); color: var(--brand-text); font-size: .98rem; }

/* Dashboard refinements */
a.elder-chip { color: inherit; }
.med-list { display: grid; gap: 4px 24px; }
@media (min-width: 640px) { .med-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .med-list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.med { flex-wrap: nowrap; align-items: flex-start; border-bottom: 0; }
.med .status { margin-inline-start: 0; }
.pf-photo { width: 120px; height: 120px; border-radius: 36px; border: 4px solid var(--gold); }
.pref { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; border-bottom: 1px dashed var(--line); }
.pref:last-child { border-bottom: 0; }
.switch { width: 58px; height: 32px; border-radius: 32px; background: var(--line); position: relative; flex: none; transition: background-color .3s; }
.switch i { position: absolute; top: 4px; inset-inline-start: 4px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform .35s var(--ease); }
.switch[aria-checked="true"] { background: var(--ok); }
.switch[aria-checked="true"] i { transform: translateX(calc(26px * var(--dir))); }
.notif.unread { background: color-mix(in srgb, var(--accent-soft) 45%, transparent); }
#notifList .notif { padding: 16px 20px; }
.btn:disabled { opacity: .5; pointer-events: none; }

/* Small-screen dashboard cards: icon above the text so nothing is cut off */
@media (max-width: 520px) {
  .grid-cols-2 > .kpi { flex-direction: column; gap: 8px; }
  .cal-dow { font-size: .68rem; letter-spacing: 0; }
  .dash-content .panel-head h2 { font-size: 1.12rem; }
}
@media (max-width: 420px) { .pm-head > div { flex-basis: calc(100% - 70px); } .pm-head .status { margin-inline-start: 0 !important; } }

/* ---------- 19 About page ---------- */
/* Hero: plum backdrop, drifting glows, morphing photo with orbiting thumbnails */
.ab-hero {
  position: relative; overflow: hidden; isolation: isolate; color: #fff;
  background: radial-gradient(110% 90% at 88% 8%, #7A5A9C 0%, transparent 55%), radial-gradient(90% 80% at 0% 100%, #74598F 0%, transparent 60%), var(--brand);
  padding-block: clamp(28px, 4vw, 56px) clamp(64px, 8vw, 110px);
}
.ab-hero .glow { position: absolute; border-radius: 50%; filter: blur(70px); z-index: -1; animation: ab-drift 16s ease-in-out infinite alternate; pointer-events: none; }
.ab-hero .glow-1 { width: 440px; height: 440px; background: #C4B2D6; opacity: .35; top: -180px; inset-inline-start: -140px; }
.ab-hero .glow-2 { width: 380px; height: 380px; background: #F5CACB; opacity: .22; bottom: -180px; inset-inline-end: 8%; animation-duration: 21s; animation-direction: alternate-reverse; }
.ab-hero .grid-dots { position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: radial-gradient(rgba(255,255,255,.1) 1.6px, transparent 2px); background-size: 28px 28px; -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); mask-image: linear-gradient(180deg, #000, transparent 85%); }
.ab-year { position: absolute; z-index: -1; bottom: -.2em; inset-inline-end: -.02em; font-family: var(--font-display); font-weight: 700; font-size: clamp(7rem, 19vw, 16rem); line-height: 1; color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.09); pointer-events: none; user-select: none; }
.ab-spark { position: absolute; color: var(--gold); pointer-events: none; animation: ab-twinkle 3.2s ease-in-out infinite; }
.ab-hero-grid { display: grid; gap: 64px; align-items: center; position: relative; }
@media (min-width: 1024px) { .ab-hero-grid { grid-template-columns: 1fr 1fr; gap: 40px; } }
.ab-hero .breadcrumb { margin: 0 0 14px; font-size: .95rem; }
.ab-hero .breadcrumb li[aria-current] { color: #fff; }
.ab-pill { display: inline-flex; align-items: center; gap: 10px; padding: 6px 18px 6px 6px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); font-weight: 700; font-size: .95rem; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.ab-pill i { width: 30px; height: 30px; border-radius: 50%; background: var(--gold); color: #3F2F55; display: grid; place-items: center; }
.ab-pill .live { width: 8px; height: 8px; border-radius: 50%; background: #9BE7BC; animation: ab-live 2.2s ease-out infinite; }
.ab-title { font-size: clamp(2.4rem, min(5.6vw, 8.5vh), 4.6rem); line-height: 1.06; margin-block: 22px 22px; }
.ab-title .ln { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.04em; }
.ab-title .ln > span { display: inline-block; }
.js .ab-title .ln > span { transform: translateY(115%); animation: ab-rise 1s var(--ease) forwards; animation-delay: calc(var(--l, 0) * 140ms + 200ms); }
.ab-title .hl { color: var(--gold); }
.ab-hero .lead { color: var(--on-brand-soft); max-width: 560px; }
.ab-mini { display: flex; flex-wrap: wrap; gap: 18px 32px; margin-top: 38px; }
.ab-mini > div { padding-inline-start: 16px; border-inline-start: 2px solid rgba(255,255,255,.22); }
.ab-mini b { display: block; font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.3rem); line-height: 1; color: var(--gold); font-variant-numeric: tabular-nums; }
.ab-mini span { font-size: .95rem; color: var(--on-brand-soft); }

.ab-visual { position: relative; width: 100%; max-width: 600px; aspect-ratio: 1; margin-inline: auto; }
.ab-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px dashed rgba(255,255,255,.3); animation: spin 70s linear infinite; }
.ab-ring--in { inset: 7%; border: 1px solid rgba(255,255,255,.14); animation: none; }
.ab-blob {
  position: absolute; inset: 13%; overflow: hidden; border: 6px solid rgba(255,255,255,.92);
  border-radius: 58% 42% 46% 54% / 52% 44% 56% 48%; box-shadow: 0 40px 80px -30px rgba(20,10,30,.6);
  animation: ab-morph 14s ease-in-out infinite; background: var(--brand-2);
}
.ab-blob img { width: 100%; height: 100%; object-fit: cover; object-position: 45% center; transform: scale(1.06); }
.ab-orbit { position: absolute; inset: 0; animation: spin 40s linear infinite; pointer-events: none; }
.ab-orbit .dot { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 6px rgba(196,178,214,.25); }
.ab-orbit .dot-1 { top: calc(50% - 7px); left: -7px; }
.ab-orbit .dot-2 { top: calc(50% - 7px); right: -7px; background: #F5CACB; }
/* Small photos sit in the empty corners (away from the floating cards) and bob gently */
.ab-visual .sat { position: absolute; z-index: 2; width: 22%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 5px solid #fff; box-shadow: var(--shadow); background: var(--gold-soft); }
.ab-visual .sat > span { display: block; width: 100%; height: 100%; }
.ab-visual .sat img { width: 100%; height: 100%; object-fit: cover; }
.ab-visual .sat-1 { top: 3%; inset-inline-start: 3%; }
.ab-visual .sat-2 { bottom: 3%; inset-inline-end: 3%; }
.ab-fc { position: absolute; z-index: 3; }
.ab-fc .float-card { color: var(--ink); }
.ab-fc-1 { bottom: 7%; inset-inline-start: -4%; }
.ab-fc-2 { top: 7%; inset-inline-end: -4%; }
@media (max-width: 640px) {
  .ab-visual { max-width: 340px; width: 82%; }
  .ab-fc-1 { inset-inline-start: -2%; bottom: 4%; } .ab-fc-2 { inset-inline-end: -2%; top: 10%; }
  .ab-visual .sat { border-width: 3px; }
  .ab-mini { gap: 16px 22px; }
}

/* Values marquee under the hero */
.ab-marquee { background: var(--gold-soft); color: var(--on-gold-soft); overflow: hidden; border-bottom: 1px solid var(--line); }
.ab-track { display: flex; width: max-content; animation: ab-marquee 38s linear infinite; }
.ab-marquee:hover .ab-track { animation-play-state: paused; }
.ab-track span { display: inline-flex; align-items: center; gap: 22px; padding: 18px 11px; font-family: var(--font-display); font-size: clamp(1.15rem, 2vw, 1.5rem); font-weight: 600; white-space: nowrap; }
.ab-track .icon { color: var(--accent); fill: currentColor; stroke: none; }

/* Founder letter */
.ab-letter { position: relative; padding: clamp(28px, 4vw, 48px); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.ab-letter::before { content: "\201C"; position: absolute; top: -.32em; inset-inline-end: 24px; font-family: var(--font-display); font-size: 9rem; line-height: 1; color: var(--gold); opacity: .55; }
.ab-letter p + p { margin-top: 14px; }
.ab-letter .sign { display: flex; align-items: center; gap: 14px; margin-top: 26px; padding-top: 22px; border-top: 1px dashed var(--line); }
.ab-letter .sign i { width: 52px; height: 52px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-style: normal; font-family: var(--font-display); font-size: 1.3rem; flex: none; }
.ab-photo-stack { position: relative; isolation: isolate; padding-bottom: 36px; }
.ab-photo-stack .main { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3.4; box-shadow: var(--shadow-lg); }
.ab-photo-stack .main img { width: 100%; height: 100%; object-fit: cover; }
.ab-photo-stack .frame { position: absolute; inset: 24px -14px 14px 24px; border: 2px solid var(--gold); border-radius: var(--radius-lg); z-index: -1; }
.ab-photo-stack .tag { position: absolute; bottom: 0; inset-inline-start: 24px; }
/* Caption card on the photo: wider than the default floating card so the text stays on two lines */
.ab-photo-stack .float-card.tag { max-width: calc(100% - 48px); padding: 14px 20px 14px 14px; gap: 14px; border-radius: 18px; border: 1px solid var(--line); line-height: 1.35; }
.ab-photo-stack .float-card.tag strong { font-size: 1.02rem; }
.ab-photo-stack .float-card.tag small { font-size: .86rem; }
.ab-photo-stack .float-card.tag .fc-ico { width: 46px; height: 46px; border-radius: 14px; background: var(--brand); color: #fff; }
@media (max-width: 640px) {
  .ab-photo-stack .float-card.tag { inset-inline-start: 12px; max-width: calc(100% - 24px); padding: 10px 14px 10px 10px; gap: 10px; }
  .ab-photo-stack .float-card.tag strong { font-size: .94rem; }
  .ab-photo-stack .float-card.tag small { font-size: .8rem; }
  .ab-photo-stack .float-card.tag .fc-ico { width: 38px; height: 38px; border-radius: 12px; }
  .ab-photo-stack .frame { inset: 18px -8px 12px 18px; }
}

/* Comparison table */
.ab-compare { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-sm); }
.ab-compare table { width: 100%; min-width: 620px; border-collapse: collapse; }
.ab-compare th, .ab-compare td { padding: 18px 20px; text-align: center; border-bottom: 1px solid var(--line); vertical-align: middle; }
.ab-compare tbody tr:last-child > * { border-bottom: 0; }
.ab-compare th[scope="row"] { text-align: start; font-weight: 700; }
.ab-compare thead th { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; }
.ab-compare .us { background: color-mix(in srgb, var(--gold-soft) 70%, transparent); }
.ab-compare thead .us { background: var(--brand); color: #fff; }
.ab-compare thead .us small { display: block; font-family: var(--font-body); font-size: .8rem; font-weight: 700; color: var(--gold); letter-spacing: .06em; text-transform: uppercase; }
.ab-compare tbody tr { transition: background-color .3s; }
.ab-compare tbody tr:hover { background: color-mix(in srgb, var(--bg-alt) 60%, transparent); }
.ab-mark { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; }
.ab-mark.yes { background: var(--ok-soft); color: var(--ok); }
.ab-mark.no { background: var(--bad-soft); color: var(--bad); }
.ab-mark.part { background: var(--warn-soft); color: var(--warn); }
.ab-swipe { display: none; font-size: .95rem; color: var(--muted); margin-top: 10px; }
@media (max-width: 640px) { .ab-swipe { display: block; } .ab-compare th, .ab-compare td { padding: 14px 12px; } }

/* Journey: the line draws itself when the list scrolls into view */
.ab-journey { position: relative; display: grid; gap: 26px; padding-inline-start: 40px; }
.ab-journey::before, .ab-journey::after { content: ""; position: absolute; inset-inline-start: 13px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--line); }
.ab-journey::after { background: linear-gradient(180deg, var(--accent), var(--gold)); transform: scaleY(0); transform-origin: top; transition: transform 1.8s var(--ease) .2s; }
.ab-journey.is-visible::after { transform: scaleY(1); }
.ab-step { position: relative; opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--s, 0) * 260ms + 350ms); }
.ab-journey.is-visible .ab-step { opacity: 1; transform: none; }
.ab-step::before { content: ""; position: absolute; top: 6px; inset-inline-start: -35px; width: 19px; height: 19px; border-radius: 50%; background: var(--surface); border: 4px solid var(--accent); z-index: 1; }
.ab-step .yr { font-family: var(--font-display); font-size: 1.9rem; line-height: 1; color: var(--accent); }
.ab-step h3 { font-size: 1.25rem; margin-block: 8px 6px; }
.ab-step p { color: var(--muted); font-size: 1.02rem; }
@media (min-width: 1024px) {
  .ab-journey { grid-template-columns: repeat(5, 1fr); gap: 28px; padding-inline-start: 0; padding-top: 42px; }
  .ab-journey::before, .ab-journey::after { inset-inline: 0; top: 9px; bottom: auto; width: auto; height: 3px; }
  .ab-journey::after { transform: scaleX(0); transform-origin: left; background: linear-gradient(90deg, var(--accent), var(--gold)); }
  html[dir="rtl"] .ab-journey::after { transform-origin: right; }
  .ab-journey.is-visible::after { transform: scaleX(1); }
  .ab-step::before { top: -42px; inset-inline-start: 0; }
}

/* Settling-in steps */
.ab-settle { display: grid; gap: 20px; }
@media (min-width: 640px) { .ab-settle { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .ab-settle { grid-template-columns: repeat(4, 1fr); } }
.ab-settle-card { position: relative; isolation: isolate; padding: 30px 26px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.ab-settle-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.ab-settle-card::after { content: ""; position: absolute; width: 140px; height: 140px; border-radius: 50%; background: var(--brand-soft); top: -70px; inset-inline-end: -70px; z-index: -1; transition: transform .6s var(--ease); }
.ab-settle-card:hover::after { transform: scale(1.6); }
.ab-settle-card .n { font-family: var(--font-display); font-size: 3.6rem; font-weight: 700; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--accent); transition: color .4s; }
.ab-settle-card:hover .n { color: var(--accent); }
.ab-settle-card .when { display: inline-block; margin-top: 14px; padding: 4px 12px; border-radius: 999px; background: var(--gold-soft); color: var(--on-gold-soft); font-size: .82rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.ab-settle-card h3 { font-size: 1.3rem; margin-block: 12px 8px; }
.ab-settle-card p { color: var(--muted); font-size: 1.02rem; }

/* Member voice */
.ab-voice { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1024px) { .ab-voice { grid-template-columns: .85fr 1.15fr; gap: 72px; } }
.ab-voice .ph { position: relative; isolation: isolate; max-width: 400px; margin-inline: auto; width: 100%; }
.ab-voice .ph .img { border-radius: 200px 200px 28px 28px; overflow: hidden; aspect-ratio: 5 / 6; box-shadow: var(--shadow-lg); }
.ab-voice .ph .img img { width: 100%; height: 100%; object-fit: cover; }
.ab-voice .ph::before { content: ""; position: absolute; inset: -14px -14px 14px 14px; border-radius: 200px 200px 28px 28px; background: var(--gold-soft); z-index: -1; }
.ab-voice blockquote { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.3; font-weight: 500; }
.ab-voice blockquote em { color: var(--accent); }
.ab-voice .who { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 26px; }
.ab-voice .who b { font-size: 1.2rem; }
.ab-voice .tags { display: flex; flex-wrap: wrap; gap: 8px; }
.ab-voice .tags span { padding: 4px 12px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-text); font-size: .88rem; font-weight: 700; }

/* Get involved */
.ab-join { display: grid; gap: 20px; }
@media (min-width: 900px) { .ab-join { grid-template-columns: repeat(3, 1fr); } }
.ab-join-card { display: flex; flex-direction: column; gap: 10px; padding: 30px 28px; border-radius: var(--radius-lg); background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); transition: background-color .35s, transform .45s var(--ease); }
.ab-join-card:hover { background: rgba(255,255,255,.12); transform: translateY(-6px); }
.ab-join-card .ico { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--gold); color: #3F2F55; margin-bottom: 8px; transition: transform .5s var(--ease); }
.ab-join-card:hover .ico { transform: rotate(-8deg) scale(1.06); }
.ab-join-card h3 { font-size: 1.4rem; }
.ab-join-card p { color: #EBE2F3; flex: 1; }
.ab-join-card .link-more { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--gold); min-height: 44px; }
.ab-join-card .link-more .icon { transition: transform .35s var(--ease); }
.ab-join-card:hover .link-more .icon { transform: translateX(calc(5px * var(--dir))); }

@keyframes ab-rise { to { transform: none; } }
@keyframes ab-drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(60px, 40px) scale(1.15); } }
@keyframes ab-morph {
  0%, 100% { border-radius: 58% 42% 46% 54% / 52% 44% 56% 48%; }
  33% { border-radius: 44% 56% 60% 40% / 42% 58% 42% 58%; }
  66% { border-radius: 52% 48% 38% 62% / 60% 40% 60% 40%; }
}
@keyframes ab-twinkle { 0%, 100% { opacity: .25; transform: scale(.7) rotate(0); } 50% { opacity: 1; transform: scale(1.1) rotate(45deg); } }
@keyframes ab-live { 0% { box-shadow: 0 0 0 0 rgba(155,231,188,.7); } 100% { box-shadow: 0 0 0 10px rgba(155,231,188,0); } }
@keyframes ab-marquee { to { transform: translateX(calc(-50% * var(--dir))); } }

html.dark .ab-hero { background: radial-gradient(110% 90% at 88% 8%, #4A3862 0%, transparent 55%), radial-gradient(90% 80% at 0% 100%, #3A2C4C 0%, transparent 60%), #1F1924; }
html.dark .ab-blob { border-color: rgba(255,255,255,.7); }

@media (prefers-reduced-motion: reduce) {
  .js .ab-title .ln > span, .ab-step { transform: none !important; opacity: 1 !important; }
  .ab-journey::after { transform: none !important; }
}
.ab-top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.ab-hero .ab-top .breadcrumb { margin: 0; }
/* Short laptop screens: keep the headline, text and both buttons above the fold */
@media (min-width: 1024px) and (max-height: 820px) {
  .ab-hero { padding-top: 22px; }
  .ab-title { font-size: clamp(2.4rem, min(5vw, 7.6vh), 4rem); margin-block: 16px 14px; }
  .ab-hero .lead { font-size: 1.08rem; max-width: 600px; }
  .ab-hero .hero-actions { margin-top: 22px; }
  .ab-mini { margin-top: 26px; }
  .ab-visual { max-width: min(600px, calc(100vh - 130px)); }
}
