/* ==========================================================================
   Solace De-Addiction & Rehabilitation Centre
   assets/css/style.css
   Design tokens -> layout -> components. Single-class selectors, no framework.
   ========================================================================== */

/* ---------- 1. Fonts (self-hosted, no external requests) ---------- */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-var.woff2") format("woff2-variations"),
       url("../fonts/bricolage-var.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans-var.woff2") format("woff2-variations"),
       url("../fonts/instrument-sans-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* ---------- 2. Tokens ---------- */
:root {
  /* Palette — sampled from the Solace mark */
  --ink: #14202b;
  --ink-2: #1e313f;
  --ink-3: #2b4150;
  --cyan: #00aeef;
  --tide: #0b6e9e;
  --mist: #e3ebf1;
  --mist-2: #f0f5f8;
  --paper: #f7fafc;
  --white: #ffffff;
  --dawn: #ffc98a;
  --muted: #5c6f7c;

  /* Type */
  --font-display: "Bricolage Grotesque", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body: "Instrument Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-accent: "Instrument Serif", Georgia, "Times New Roman", serif;

  --fs-eyebrow: 0.6875rem;
  --fs-body: 1.0625rem;
  --fs-lead: clamp(1.05rem, 0.98rem + 0.5vw, 1.28rem);
  --fs-h4: clamp(1.02rem, 0.98rem + 0.2vw, 1.12rem);
  --fs-h3: clamp(1.28rem, 1.16rem + 0.55vw, 1.6rem);
  --fs-h2: clamp(1.95rem, 1.45rem + 2.4vw, 3.35rem);
  --fs-h1: clamp(2.45rem, 1.35rem + 5.2vw, 5rem);

  /* Space & shape */
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --container: 1280px;
  --section-y: clamp(4.5rem, 8vw, 9.25rem);
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 30px;
  --pill: 999px;

  /* Elevation — cool-tinted, never grey/black */
  --sh-1: 0 1px 2px rgba(20, 32, 43, 0.05), 0 6px 18px -8px rgba(20, 32, 43, 0.12);
  --sh-2: 0 2px 4px rgba(20, 32, 43, 0.05), 0 18px 44px -18px rgba(20, 32, 43, 0.22);
  --sh-3: 0 30px 80px -30px rgba(11, 110, 158, 0.35);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 74px;
}

/* ---------- 3. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.72;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
section[id], main[id] { scroll-margin-top: calc(var(--header-h) + 14px); }
img, svg, picture, iframe { display: block; max-width: 100%; }
img { height: auto; border: 0; }
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.025em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); line-height: 0.98; letter-spacing: -0.035em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -0.02em; }
h4 { font-size: var(--fs-h4); letter-spacing: -0.01em; }
p { margin: 0 0 1.1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
a { color: var(--tide); text-decoration: none; }
a:hover { color: var(--ink); }
ul, ol { margin: 0 0 1.1em; padding-left: 1.15em; }
li { margin-bottom: 0.4em; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}
::selection { background: var(--dawn); color: var(--ink); }

/* ---------- 4. Layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--wide { max-width: 1360px; }
.container--narrow { max-width: 880px; }

.section {
  position: relative;
  padding-block: var(--section-y);
}
.section--flush-top { padding-top: 0; }
.section--tight { padding-block: clamp(3rem, 5vw, 5rem); }
.section--ink {
  background: var(--ink);
  color: #dceaf2;
}
.section--ink h2, .section--ink h3, .section--ink h4 { color: var(--white); }
.section--paper-deep { background: var(--mist-2); }

.grid { display: grid; gap: clamp(1.5rem, 3vw, 2.75rem); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--split { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: center; }
@media (max-width: 900px) {
  .grid--2, .grid--3, .grid--split { grid-template-columns: minmax(0, 1fr); }
}

.stack-sm > * + * { margin-top: 0.6rem; }
.center { text-align: center; }
.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;
}
.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 200;
  transform: translateY(-160%);
  background: var(--ink); color: var(--white);
  padding: 0.7rem 1.1rem; border-radius: var(--pill); font-weight: 600;
  transition: transform 0.25s var(--ease);
}
.skip-link:focus { transform: translateY(0); color: var(--white); }

/* Grain overlay — 4% film texture keeps flat colour from looking digital */
.grain {
  position: fixed; inset: 0; z-index: 90; pointer-events: none;
  background-image: url("../img/grain.png");
  background-size: 160px 160px;
  opacity: 0.32;
  mix-blend-mode: multiply;
}

/* ---------- 5. Eyebrow / section heads ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tide);
  margin: 0 0 1.1rem;
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px; background: currentColor; opacity: 0.55;
}
.section--ink .eyebrow { color: var(--dawn); }
.section-head { max-width: 760px; margin-bottom: clamp(2.25rem, 4vw, 3.75rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.lead { font-size: var(--fs-lead); color: var(--muted); line-height: 1.62; }
.section--ink .lead { color: #a9c3d2; }
.accent { font-family: var(--font-accent); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.u-cyan { color: var(--tide); }

/* ---------- 6. Buttons ---------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--white);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 0.95rem 1.6rem;
  border: 1px solid transparent;
  border-radius: var(--pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 600;
  font-size: 0.97rem;
  letter-spacing: -0.005em;
  line-height: 1;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(120% 160% at 15% 120%, rgba(255, 201, 138, 0.55), transparent 60%);
  opacity: 0; transition: opacity 0.4s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--sh-2); color: var(--btn-fg); }
.btn:hover::after { opacity: 1; }
.btn:active { transform: translateY(0); }
.btn svg { width: 1.05em; height: 1.05em; flex: none; }

/* Primary blue button: white text. The background uses the deeper brand blue rather than
   the bright cyan (#00AEEF) because white on bright cyan reads at only 2.5:1 — too faint to
   pass accessibility checks or to be legible on a phone outdoors. This is 4.7:1. */
.btn--cyan { --btn-bg: #0c7bad; --btn-fg: var(--white); }
.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--ink);
  border-color: rgba(20, 32, 43, 0.16);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover { background: var(--white); border-color: rgba(20, 32, 43, 0.28); }
.btn--on-ink { --btn-bg: transparent; --btn-fg: var(--white); border-color: rgba(255, 255, 255, 0.28); }
.btn--on-ink:hover { background: rgba(255, 255, 255, 0.08); }
.btn--lg { padding: 1.1rem 1.9rem; font-size: 1.02rem; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-weight: 600; color: var(--tide);
}
.link-arrow svg { width: 1.05em; height: 1.05em; transition: transform 0.35s var(--ease-out); }
.link-arrow:hover svg { transform: translate(4px, -4px); }
.section--ink .link-arrow { color: var(--dawn); }

/* ---------- 7. Header ---------- */
.progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 100%;
  z-index: 120; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--cyan), var(--dawn));
}
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background-color 0.4s var(--ease), box-shadow 0.4s var(--ease), transform 0.5s var(--ease);
}
.header::before {
  content: ""; position: absolute; inset: 0;
  background: rgba(247, 250, 252, 0.82);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  border-bottom: 1px solid transparent;
  opacity: 0; transition: opacity 0.4s var(--ease), border-color 0.4s var(--ease);
}
.header.is-stuck::before { opacity: 1; border-bottom-color: var(--mist); }
/* While the mobile menu is open the panel can scroll underneath the header.
   Give the header a solid background so links never bleed through behind the
   logo and close button. --paper matches the panel exactly. */
body.is-locked .header::before { opacity: 1; background: var(--paper); border-bottom-color: transparent; }
.header.is-hidden { transform: translateY(-102%); }
@supports not ((backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px))) {
  .header.is-stuck::before { background: rgba(247, 250, 252, 0.98); }
}
.header__inner {
  position: relative;
  display: flex; align-items: center; gap: 1rem;
  min-height: var(--header-h);
  padding-block: 0.7rem;
  /* Clear the notch/rounded corners in landscape WITHOUT losing the container
     gutter — max() keeps whichever is larger. */
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}
/* The brand is allowed to shrink so the burger and phone button can never be
   pushed off the edge of a narrow screen. min-width:0 is required: flex items
   default to min-width:auto and would otherwise refuse to shrink. */
.brand { display: flex; align-items: center; gap: 0.7rem; flex: 0 1 auto; min-width: 0; }
.brand__mark {
  width: 46px; height: 46px; flex: none;
  transition: transform 0.6s var(--ease-out);
}
.brand:hover .brand__mark { transform: rotate(-8deg) scale(1.04); }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.brand__name {
  font-family: var(--font-display); font-weight: 700; font-size: 1.02rem;
  letter-spacing: -0.02em; color: var(--ink);
  margin-bottom: 4px;
}
.brand__sub {
  font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); font-weight: 500;
}
/* Belt and braces: if either line is ever lengthened, it truncates rather than
   breaking the header layout. */
.brand__name, .brand__sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* "DE-ADDICTION & REHABILITATION" needs roughly 270px. Below 480px there is not
   enough room for it alongside the menu and call buttons, so it is hidden —
   the full name is still in the footer, the page title and the mobile menu. */
@media (max-width: 479px) { .brand__sub { display: none; } }
@media (max-width: 420px) { .brand__mark { width: 40px; height: 40px; } }
@media (max-width: 360px) { .header__inner { gap: 0.6rem; } }

.nav { margin-left: auto; }
.nav__list {
  display: flex; align-items: center; gap: 0.15rem;
  list-style: none; margin: 0; padding: 0;
}
.nav__link {
  position: relative; display: block; white-space: nowrap;
  padding: 0.55rem 0.45rem;
  font-size: 0.8125rem; font-weight: 500; color: var(--ink-3);
  border-radius: var(--r-sm);
  transition: color 0.25s var(--ease);
}
.nav__link::after {
  content: ""; position: absolute; left: 0.45rem; right: 0.45rem; bottom: 0.28rem;
  height: 2px; border-radius: 2px; background: var(--cyan);
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform 0.4s var(--ease-out);
}
.nav__link:hover, .nav__link.is-active { color: var(--ink); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__link--ext { display: inline-flex; align-items: center; gap: 0.3rem; }
.nav__link--ext svg { width: 0.72em; height: 0.72em; opacity: 0.6; }

.header__cta { display: flex; align-items: center; gap: 0.6rem; flex: none; }
.header__cta .btn { padding: 0.78rem 1.25rem; font-size: 0.92rem; }

.burger {
  display: none; position: relative;
  width: 46px; height: 46px; flex: none;
  border: 1px solid rgba(20, 32, 43, 0.16); border-radius: var(--pill);
  background: rgba(255, 255, 255, 0.7);
}
.burger span {
  position: absolute; left: 13px; width: 20px; height: 1.8px; border-radius: 2px;
  background: var(--ink);
  transition: transform 0.4s var(--ease-out), opacity 0.25s var(--ease);
}
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 22.5px; }
.burger span:nth-child(3) { top: 28px; }
.burger.is-open span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0.4); }
.burger.is-open span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

@media (max-width: 1300px) {
  .nav { display: none; }
  .burger { display: block; margin-left: auto; }
  .header__cta { order: 3; }
  .header__cta .btn--ghost { display: none; }
}
@media (max-width: 600px) {
  .header__cta .btn span { display: none; }
  .header__cta .btn { width: 46px; height: 46px; padding: 0; }
}

/* Mobile panel */
.mobile-nav {
  position: fixed; inset: 0; z-index: 99;
  display: flex; flex-direction: column;
  padding: calc(var(--header-h) + 1.5rem) var(--gutter) 2rem;
  /* Respect notches and rounded corners, especially in landscape. */
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
  padding-bottom: calc(2rem + env(safe-area-inset-bottom));
  background: var(--paper);
  /* Body scrolling is locked while the menu is open, so the panel itself must
     scroll — otherwise the call button is unreachable on short screens
     (iPhone SE, and any phone held in landscape). */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  visibility: hidden; opacity: 0;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}
.mobile-nav::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(90% 60% at 100% 0%, rgba(0, 174, 239, 0.14), transparent 65%),
              radial-gradient(80% 55% at 0% 100%, rgba(255, 201, 138, 0.2), transparent 60%);
}
.mobile-nav.is-open { visibility: visible; opacity: 1; }
.mobile-nav__list { position: relative; list-style: none; margin: 0; padding: 0; }
.mobile-nav__list li {
  margin: 0; overflow: hidden;
  border-bottom: 1px solid var(--mist);
}
.mobile-nav__list a {
  display: flex; align-items: center;
  padding: 0.85rem 0;
  font-family: var(--font-display); font-size: clamp(1.45rem, 6vw, 2rem);
  font-weight: 600; letter-spacing: -0.03em; color: var(--ink);
  transform: translateY(110%);
  transition: transform 0.6s var(--ease-out), color 0.25s var(--ease);
}
.mobile-nav.is-open .mobile-nav__list a { transform: translateY(0); }
.mobile-nav__list a:hover { color: var(--tide); }
.mobile-nav__foot { position: relative; margin-top: auto; padding-top: 1.75rem; }
.mobile-nav__foot .btn { margin-bottom: 0.75rem; }
.mobile-nav__meta { font-size: 0.9rem; color: var(--muted); }

/* Short screens: compress the menu so the call button stays on screen without
   needing to scroll. Triggered by height, so it also covers landscape. */
@media (max-height: 700px) {
  .mobile-nav { padding-top: calc(var(--header-h) + 0.75rem); }
  .mobile-nav__list a { padding: 0.55rem 0; font-size: clamp(1.15rem, 4.5vw, 1.5rem); }
  .mobile-nav__foot { padding-top: 1.1rem; }
}
@media (max-height: 520px) {
  .mobile-nav__list a { padding: 0.38rem 0; font-size: 1.05rem; }
  .mobile-nav__foot { padding-top: 0.85rem; }
  .mobile-nav__meta { font-size: 0.8rem; }
}

/* ---------- 8. Hero ---------- */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(2.5rem, 6vw, 5rem));
  padding-bottom: clamp(3rem, 6vw, 6rem);
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: -10% -10% auto; height: 130%;
  pointer-events: none; z-index: 0;
  background:
    radial-gradient(48% 40% at 78% 14%, rgba(0, 174, 239, 0.2), transparent 62%),
    radial-gradient(42% 36% at 96% 52%, rgba(255, 201, 138, 0.3), transparent 60%),
    radial-gradient(60% 48% at 8% 4%, rgba(227, 235, 241, 0.9), transparent 60%);
  animation: drift 26s var(--ease) infinite alternate;
}
@keyframes drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-2.5%, 2%, 0) scale(1.06); }
}
.hero__inner {
  position: relative; z-index: 1;
  display: grid; gap: clamp(2rem, 4vw, 3.5rem);
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
}
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr); }
  .hero__art { max-width: 400px; margin: 0.5rem auto 0; }
  .hero__lead { max-width: none; }
}
@media (max-width: 620px) {
  .hero { padding-bottom: clamp(2rem, 5vw, 3rem); }
  .hero__art { max-width: 300px; }
  .hero__actions .btn { flex: 1 1 100%; }
}
.hero__tag {
  display: inline-flex; align-items: center; gap: 0.65rem;
  padding: 0.42rem 0.95rem 0.42rem 0.5rem;
  border: 1px solid var(--mist); border-radius: var(--pill);
  background: rgba(255, 255, 255, 0.7);
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.02em; color: var(--ink-3);
  margin-bottom: 1.4rem;
}
.hero__dot {
  position: relative; width: 8px; height: 8px; border-radius: 50%;
  background: #23c07a; flex: none; margin-left: 0.35rem;
}
.hero__dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 1px solid rgba(35, 192, 122, 0.5);
  animation: ping 2.6s var(--ease) infinite;
}
@keyframes ping {
  0% { transform: scale(0.6); opacity: 1; }
  70%, 100% { transform: scale(1.5); opacity: 0; }
}
.hero h1 { margin-bottom: 1.1rem; }
.hero h1 .word { display: inline-block; overflow: hidden; vertical-align: top; }
.hero h1 .word > span {
  display: inline-block;
  transform: translateY(105%);
  animation: rise 0.95s var(--ease-out) forwards;
  animation-delay: calc(var(--i, 0) * 60ms + 120ms);
}
@keyframes rise { to { transform: translateY(0); } }
.hero__lead { max-width: 40ch; margin-bottom: 1.9rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: clamp(2rem, 4vw, 2.75rem); }
.hero__facts {
  display: flex; flex-wrap: wrap; gap: 0 clamp(1.25rem, 3vw, 2.25rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--mist);
  list-style: none; margin: 0;
}
.hero__facts li {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.9rem; font-weight: 500; color: var(--ink-3); margin: 0.35rem 0;
}
.hero__facts svg { width: 1.05rem; height: 1.05rem; color: var(--cyan); flex: none; }

/* Hero art — the Rising Line, abstracted from the Solace mark */
.hero__art { position: relative; }
.hero__art-disc {
  position: absolute; inset: 8%;
  border-radius: 50%;
  background: conic-gradient(from 200deg, rgba(0, 174, 239, 0.22), rgba(255, 201, 138, 0.35), rgba(0, 174, 239, 0.14), rgba(255, 255, 255, 0.6), rgba(0, 174, 239, 0.22));
  filter: blur(26px);
  animation: spin 34s linear infinite, breathe 9s var(--ease) infinite alternate;
}
@keyframes spin { to { transform: rotate(1turn); } }
@keyframes breathe { to { transform: scale(1.05); } }
.hero__art svg { position: relative; width: 100%; height: auto; }
.rl-ring { fill: none; stroke: rgba(20, 32, 43, 0.14); stroke-width: 1.2; }
.rl-ring--dash {
  stroke: var(--cyan); stroke-width: 1.6; stroke-dasharray: 3 12; opacity: 0.75;
  transform-origin: 260px 260px;
  animation: spin 60s linear infinite;
}
.rl-path {
  fill: none; stroke: url(#rlGrad); stroke-width: 3.4; stroke-linecap: round;
  stroke-dasharray: var(--len, 700); stroke-dashoffset: var(--len, 700);
  animation: draw 2.1s var(--ease-out) 0.35s forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
.rl-node { opacity: 0; animation: pop 0.7s var(--ease-out) forwards; }
.rl-node--1 { animation-delay: 0.6s; }
.rl-node--2 { animation-delay: 1.35s; }
.rl-node--3 { animation-delay: 2.1s; }
@keyframes pop {
  0% { opacity: 0; transform: translateY(10px) scale(0.7); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.rl-halo { animation: haloPulse 3.6s var(--ease) 2.6s infinite; transform-origin: center; }
@keyframes haloPulse {
  0%, 100% { opacity: 0.35; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.12); }
}
.rl-label {
  font-family: var(--font-body); font-size: 13px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; fill: var(--muted);
}

/* ---------- 9. Marquee ---------- */
.marquee {
  position: relative;
  padding-block: 1.1rem;
  border-top: 1px solid var(--mist); border-bottom: 1px solid var(--mist);
  background: var(--white);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: slide 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.marquee__group { display: flex; align-items: center; }
.marquee__item {
  display: inline-flex; align-items: center; gap: 0.7rem;
  padding-inline: clamp(1.1rem, 2.4vw, 2rem);
  font-family: var(--font-display); font-size: 0.94rem; font-weight: 500;
  letter-spacing: -0.01em; color: var(--ink-3); white-space: nowrap;
}
.marquee__item::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; flex: none;
  background: var(--cyan);
}
.marquee__item:nth-child(even)::before { background: var(--dawn); }

/* ---------- 10. Cards & surfaces ---------- */
.card {
  position: relative;
  padding: clamp(1.5rem, 2.4vw, 2.1rem);
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-1);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out), border-color 0.4s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--sh-2); border-color: rgba(0, 174, 239, 0.4); }
.card__ico {
  display: grid; place-items: center;
  width: 52px; height: 52px; margin-bottom: 1.1rem;
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(0, 174, 239, 0.14), rgba(255, 201, 138, 0.22));
  color: var(--tide);
}
.card__ico svg { width: 26px; height: 26px; }
.card p { color: var(--muted); font-size: 0.98rem; margin-bottom: 0; }
.card h3, .card h4 { margin-bottom: 0.5rem; }

/* Spotlight follows the pointer on capable devices */
.spotlight::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 0%), rgba(0, 174, 239, 0.1), transparent 65%);
  opacity: 0; transition: opacity 0.4s var(--ease);
}
.spotlight:hover::before { opacity: 1; }

/* ---------- 11. About ---------- */
.about__visual { position: relative; }
.about__frame {
  position: relative; border-radius: var(--r-xl); overflow: hidden;
  box-shadow: var(--sh-3);
  aspect-ratio: 4 / 3.4;
  background: var(--ink);
}
.about__frame img { width: 100%; height: 100%; object-fit: cover; }
.about__frame-mark {
  position: absolute; inset: auto 0 0 0; padding: 1.6rem 1.5rem 1.4rem;
  display: flex; align-items: flex-end; gap: 1rem;
  background: linear-gradient(0deg,
    rgba(11, 20, 28, 0.94) 0%,
    rgba(11, 20, 28, 0.86) 42%,
    rgba(11, 20, 28, 0.55) 72%,
    rgba(11, 20, 28, 0) 100%);
  color: var(--white);
}
.about__frame-mark p {
  font-size: 0.94rem; line-height: 1.55; margin: 0;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}
.about__frame-mark strong { color: #fff; }
.about__badge {
  position: absolute; top: -18px; right: -14px;
  display: grid; place-items: center;
  width: clamp(88px, 12vw, 118px); aspect-ratio: 1;
  border-radius: 50%; background: var(--white);
  box-shadow: var(--sh-2); padding: 12px;
  animation: float 7s var(--ease) infinite alternate;
}
@keyframes float { to { transform: translateY(-10px); } }
.about__badge img { width: 100%; }

.moments { counter-reset: m; margin-top: clamp(2.5rem, 5vw, 4rem); }
.moment {
  position: relative;
  padding: 1.6rem 1.5rem 1.6rem 5.1rem;
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: var(--r-lg);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.moment:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.moment__glyph {
  position: absolute; top: 1.5rem; left: 1.35rem;
  width: 44px; height: 44px;
}
.moment h3 { margin-bottom: 0.4rem; font-size: 1.18rem; }
.moment p { color: var(--muted); font-size: 0.97rem; margin: 0; }
.mg-arc { fill: none; stroke: var(--cyan); stroke-width: 2.7; stroke-linecap: round; }
.mg-dot { fill: var(--ink); }
.moment--2 .mg-dot { fill: var(--ink-3); }
.moment--3 .mg-dot { fill: var(--tide); }
.moment--3 .mg-arc { stroke: var(--dawn); }

/* ---------- 12. Doctor band ---------- */
.doctor {
  position: relative; overflow: hidden;
  background: linear-gradient(120deg, var(--ink) 0%, #10303f 55%, #0b4a63 100%);
  color: #d9eaf3;
}
.doctor::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(38% 60% at 88% 20%, rgba(0, 174, 239, 0.35), transparent 62%),
              radial-gradient(30% 50% at 12% 100%, rgba(255, 201, 138, 0.24), transparent 60%);
}
.doctor__inner {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) clamp(240px, 32vw, 410px);
  gap: clamp(1.75rem, 4vw, 3.5rem); align-items: center;
}
@media (max-width: 860px) {
  .doctor__inner { grid-template-columns: minmax(0, 1fr); }
  .doctor__portrait { max-width: 300px; }
}
.doctor h2 { margin-bottom: 0.7rem; }
.doctor p { color: #a9c6d6; max-width: 58ch; }
.doctor__creds { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.4rem; list-style: none; padding: 0; }
.doctor__creds li {
  margin: 0; padding: 0.42rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.2); border-radius: var(--pill);
  font-size: 0.82rem; color: #cfe4ee;
}

/* Portrait */
.doctor__portrait { margin: 0; display: grid; gap: 0.9rem; }
.doctor__portrait-frame {
  position: relative; overflow: hidden;
  border-radius: var(--r-lg);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: var(--sh-3);
}
.doctor__portrait-frame img { width: 100%; }
.doctor__portrait-frame::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 34%;
  background: linear-gradient(to top, rgba(11, 24, 33, 0.5), transparent);
  pointer-events: none;
}
/* Name, degrees and designation beneath the portrait */
.doctor__id { margin: 0; }
.doctor__id p { margin: 0; max-width: none; }
.doctor__id .doctor__name {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.6vw, 1.24rem);
  font-weight: 700; line-height: 1.25; letter-spacing: -0.01em;
  color: #fff;
}
.doctor__id .doctor__degrees {
  margin-top: 0.24rem;
  font-size: 0.84rem; line-height: 1.45; color: #b7d2e0;
}
.doctor__id .doctor__role {
  margin-top: 0.3rem;
  font-size: 0.84rem; font-weight: 600; line-height: 1.45;
  letter-spacing: 0.015em; color: var(--cyan);
}
.doctor__id .doctor__caption {
  display: flex; align-items: flex-start; gap: 0.55rem;
  margin-top: 0.85rem; padding-top: 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.79rem; line-height: 1.5; color: #9dbccd;
}
.doctor__caption-dot {
  flex: none; width: 7px; height: 7px; margin-top: 0.4rem;
  border-radius: 50%; background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(0, 174, 239, 0.18);
}

/* ---------- 13. Specialties ---------- */
.spec-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}
.spec {
  position: relative; overflow: hidden;
  background: var(--white); border: 1px solid var(--mist);
  border-radius: var(--r-lg);
  transition: border-color 0.4s var(--ease), box-shadow 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.spec:hover { border-color: rgba(0, 174, 239, 0.45); box-shadow: var(--sh-2); transform: translateY(-3px); }
.spec[open] { border-color: rgba(0, 174, 239, 0.5); box-shadow: var(--sh-2); }
.spec__sum {
  display: flex; align-items: center; gap: 0.95rem;
  padding: 1.25rem 1.3rem;
  cursor: pointer; list-style: none;
}
.spec__sum::-webkit-details-marker { display: none; }
.spec__ico {
  display: grid; place-items: center;
  width: 44px; height: 44px; flex: none;
  border-radius: 13px;
  background: linear-gradient(160deg, rgba(0, 174, 239, 0.13), rgba(255, 201, 138, 0.2));
  color: var(--tide);
}
.spec__ico svg { width: 23px; height: 23px; }
.spec__name {
  font-family: var(--font-display); font-weight: 600; font-size: 1.06rem;
  letter-spacing: -0.02em; line-height: 1.25;
}
.spec__plus {
  margin-left: auto; flex: none; position: relative;
  width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid var(--mist);
  transition: transform 0.45s var(--ease-out), background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.spec__plus::before, .spec__plus::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 11px; height: 1.6px; border-radius: 2px; background: var(--ink-3);
  transform: translate(-50%, -50%);
  transition: opacity 0.3s var(--ease), background-color 0.3s var(--ease);
}
.spec__plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.spec[open] .spec__plus { transform: rotate(135deg); background: var(--cyan); border-color: var(--cyan); }
.spec[open] .spec__plus::before, .spec[open] .spec__plus::after { background: var(--ink); }
.spec__body { padding: 0 1.3rem 1.35rem 4.55rem; }
.spec__body p { font-size: 0.96rem; color: var(--muted); margin: 0; }
.spec[open] .spec__body { animation: fadeUp 0.45s var(--ease-out); }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.spec-note {
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
  padding: 1.15rem 1.35rem;
  border-radius: var(--r-md);
  background: var(--white);
  border: 1px dashed rgba(11, 110, 158, 0.35);
  font-size: 0.95rem; color: var(--muted);
}

/* ---------- 14. General Psychiatry ---------- */
.psy__figure {
  position: relative; margin: 0;
  padding: clamp(1rem, 2.2vw, 1.75rem);
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-2);
}
.psy__figure img { border-radius: var(--r-md); width: 100%; }
.psy__figure figcaption {
  margin-top: 0.9rem; font-size: 0.84rem; color: var(--muted);
  display: flex; align-items: center; gap: 0.5rem; justify-content: center;
  text-align: center;
}
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin: 1.6rem 0 0; padding: 0; }
.chips li {
  margin: 0; padding: 0.48rem 0.95rem;
  border-radius: var(--pill);
  background: var(--white); border: 1px solid var(--mist);
  font-size: 0.86rem; font-weight: 500; color: var(--ink-3);
  transition: transform 0.35s var(--ease-out), border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.chips li:hover { transform: translateY(-2px); border-color: var(--cyan); color: var(--tide); }
.psy__points { list-style: none; padding: 0; margin: 1.75rem 0 0; }
.psy__points li {
  display: flex; gap: 0.85rem; align-items: flex-start;
  padding: 0.85rem 0; border-bottom: 1px solid var(--mist);
  font-size: 0.99rem;
}
.psy__points li:last-child { border-bottom: 0; }
.psy__points strong { display: block; font-weight: 600; }
.psy__points span { color: var(--muted); font-size: 0.94rem; }
.tick {
  display: grid; place-items: center; flex: none;
  width: 24px; height: 24px; margin-top: 2px;
  border-radius: 50%; background: rgba(0, 174, 239, 0.14); color: var(--tide);
}
.tick svg { width: 13px; height: 13px; }

/* ---------- 15. Programme — the Rising Line spine ---------- */
.prog__grid {
  display: grid; grid-template-columns: 78px minmax(0, 1fr);
  gap: clamp(1rem, 2.5vw, 2.25rem);
}
@media (max-width: 700px) { .prog__grid { grid-template-columns: 44px minmax(0, 1fr); } }
.prog__rail { position: relative; }
.prog__rail-line {
  position: sticky; top: 22vh;
  width: 100%; height: 56vh;
}
.prog__rail-line svg { width: 100%; height: 100%; overflow: visible; }
.pr-track { fill: none; stroke: rgba(255, 255, 255, 0.17); stroke-width: 2; }
.pr-fill {
  fill: none; stroke: url(#prGrad); stroke-width: 3; stroke-linecap: round;
  stroke-dasharray: 1000; stroke-dashoffset: calc(1000 - (1000 * var(--p, 0)));
  transition: stroke-dashoffset 0.25s linear;
}
#prHead { opacity: 0; transition: opacity 0.4s var(--ease); filter: drop-shadow(0 0 6px rgba(255, 201, 138, 0.9)); }

.stages { list-style: none; margin: 0; padding: 0; }
.stage {
  position: relative;
  display: grid; grid-template-columns: auto minmax(0, 1fr);
  gap: 0 1.15rem;
  padding: clamp(1.4rem, 2.4vw, 2rem) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0.46;
  transition: opacity 0.6s var(--ease);
}
.stage.is-on { opacity: 1; }
.stage:last-child { border-bottom: 0; }
.stage__num {
  font-family: var(--font-body); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.16em; color: var(--cyan);
  padding-top: 0.45rem;
}
.stage.is-on .stage__num { color: var(--dawn); }
.stage h3 { margin-bottom: 0.45rem; }
.stage p { color: #a3bdcc; margin: 0; font-size: 0.99rem; max-width: 62ch; }
.stage__tag {
  grid-column: 2; margin-top: 0.85rem;
  display: inline-flex; flex-wrap: wrap; gap: 0.4rem;
}
.stage__tag span {
  padding: 0.3rem 0.75rem; border-radius: var(--pill);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.76rem; color: #bcd6e3;
}

.why {
  margin-top: clamp(2.75rem, 5vw, 4.5rem);
  padding: clamp(1.6rem, 3vw, 2.75rem);
  border-radius: var(--r-xl);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.why__list {
  display: grid; gap: 0.85rem 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  list-style: none; padding: 0; margin: 1.5rem 0 0;
}
.why__list li {
  display: flex; gap: 0.7rem; align-items: flex-start;
  font-size: 0.98rem; color: #cfe2ec; margin: 0;
}
.why__list svg { width: 20px; height: 20px; flex: none; margin-top: 3px; color: var(--cyan); }

/* ---------- 16. Testimonials ---------- */
.tst { position: relative; }
.tst__viewport { position: relative; overflow: hidden; border-radius: var(--r-xl); }
.tst__track { display: flex; transition: transform 0.75s var(--ease-out); }
.tst__slide { flex: 0 0 100%; padding: 0.25rem; }
.tst__card {
  height: 100%;
  padding: clamp(1.75rem, 3.4vw, 3.25rem);
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-1);
}
.tst__quote {
  font-family: var(--font-accent); font-style: italic;
  font-size: clamp(1.28rem, 0.95rem + 1.5vw, 2.1rem);
  line-height: 1.34; letter-spacing: -0.015em;
  color: var(--ink); margin: 0 0 1.5rem;
}
.tst__mark { display: block; font-family: var(--font-accent); font-size: 3rem; line-height: 0.6; color: var(--dawn); margin-bottom: 0.5rem; }
.tst__who { display: flex; align-items: center; gap: 0.9rem; }
.tst__av {
  display: grid; place-items: center; flex: none;
  width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(150deg, var(--cyan), var(--tide));
  color: var(--white); font-weight: 600; font-size: 0.95rem;
  font-family: var(--font-display); letter-spacing: 0.02em;
}
.tst__meta { font-size: 0.9rem; color: var(--muted); line-height: 1.45; }
.tst__meta strong { display: block; color: var(--ink); font-weight: 600; }
.tst__nav { display: flex; align-items: center; gap: 0.8rem; margin-top: 1.75rem; }
.tst__btn {
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--mist); background: var(--white);
  transition: transform 0.35s var(--ease-out), border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.tst__btn svg { width: 18px; height: 18px; }
.tst__btn:hover { border-color: var(--cyan); transform: translateY(-2px); }
.tst__dots { display: flex; gap: 0.4rem; margin-left: auto; }
.tst__dot {
  position: relative;
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(20, 32, 43, 0.2);
  transition: width 0.4s var(--ease-out), background-color 0.3s var(--ease);
}
.tst__dot::after { content: ""; position: absolute; inset: -16px -6px; }
.tst__dot.is-on { width: 26px; border-radius: var(--pill); background: var(--cyan); }
.tst__disc {
  margin-top: 1.5rem; font-size: 0.83rem; color: var(--muted);
  display: flex; gap: 0.5rem; align-items: flex-start;
}
.tst__disc svg { width: 15px; height: 15px; flex: none; margin-top: 4px; color: var(--tide); }

/* ---------- 17. Contact ---------- */
.contact__grid {
  display: grid; gap: clamp(1.75rem, 3.5vw, 3rem);
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: start;
}
@media (max-width: 940px) { .contact__grid { grid-template-columns: minmax(0, 1fr); } }
.info { list-style: none; margin: 0 0 1.75rem; padding: 0; }
.info li {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.1rem 0; border-bottom: 1px solid var(--mist); margin: 0;
}
.info li:first-child { padding-top: 0; }
.info__ico {
  display: grid; place-items: center; flex: none;
  width: 42px; height: 42px; border-radius: 13px;
  background: var(--white); border: 1px solid var(--mist); color: var(--tide);
}
.info__ico svg { width: 20px; height: 20px; }
.info__k {
  display: block; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 0.2rem;
}
.info__v { font-size: 1.02rem; font-weight: 500; color: var(--ink); line-height: 1.5; }
.info__v a { color: var(--ink); }
.info__v a:hover { color: var(--tide); }
.info__v--num { font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }

.helpline {
  padding: 1.15rem 1.3rem; border-radius: var(--r-md);
  background: rgba(0, 174, 239, 0.07);
  border: 1px solid rgba(0, 174, 239, 0.28);
  font-size: 0.93rem; color: var(--ink-3);
}
.helpline strong { color: var(--ink); }

.map {
  margin-top: 1.75rem; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--mist); box-shadow: var(--sh-1);
  aspect-ratio: 16 / 10; background: var(--mist-2);
}
.map iframe { width: 100%; height: 100%; border: 0; }

.form {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--white); border: 1px solid var(--mist);
  border-radius: var(--r-xl); box-shadow: var(--sh-2);
}
.form__row { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 560px) { .form__row { grid-template-columns: minmax(0, 1fr); } }
.field { display: block; margin-bottom: 1rem; }
.field > span {
  display: block; font-size: 0.8rem; font-weight: 600; color: var(--ink-3);
  margin-bottom: 0.4rem; letter-spacing: 0.01em;
}
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 0.98rem; color: var(--ink);
  padding: 0.85rem 1rem;
  background: var(--paper);
  border: 1px solid var(--mist); border-radius: var(--r-md);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s var(--ease);
  -webkit-appearance: none; appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235c6f7c' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.9rem center; background-size: 17px;
  padding-right: 2.4rem;
}
.field textarea { min-height: 128px; resize: vertical; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 0; background: var(--white);
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(0, 174, 239, 0.16);
}
.field input:user-invalid, .field textarea:user-invalid { border-color: #d4553f; }
.field--hp { position: absolute; left: -9999px; opacity: 0; }
.form__consent {
  display: flex; gap: 0.7rem; align-items: flex-start;
  font-size: 0.86rem; color: var(--muted); margin: 0.35rem 0 1.25rem;
}
.form__consent input { width: 18px; height: 18px; flex: none; margin-top: 2px; accent-color: var(--tide); }
.form__status {
  margin-top: 1rem; padding: 0.85rem 1.05rem; border-radius: var(--r-md);
  font-size: 0.92rem; display: none;
}
.form__status.is-ok { display: block; background: rgba(35, 192, 122, 0.12); color: #14603c; border: 1px solid rgba(35, 192, 122, 0.35); }
.form__status.is-err { display: block; background: rgba(212, 85, 63, 0.1); color: #8a2f1c; border: 1px solid rgba(212, 85, 63, 0.32); }
.btn.is-busy { pointer-events: none; opacity: 0.72; }

/* ---------- 18. Footer & floating actions ---------- */
.footer { background: var(--ink); color: #9fbccb; padding-block: clamp(3rem, 6vw, 5rem) 1.75rem; }
.footer__grid {
  display: grid; gap: clamp(1.75rem, 4vw, 3rem);
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
}
@media (max-width: 860px) { .footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: minmax(0, 1fr); } }
.footer .brand__name { color: var(--white); }
.footer .brand__sub { color: #7fa1b3; }
.footer__mark { width: 54px; height: 54px; background: var(--white); border-radius: 50%; padding: 5px; }
.footer p { font-size: 0.95rem; color: #9fbccb; }
.footer h4 {
  font-family: var(--font-body); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--dawn); margin-bottom: 1.1rem;
}
.footer__links { list-style: none; margin: 0; padding: 0; }
.footer__links li { margin-bottom: 0.55rem; }
.footer__links a { color: #b7d1de; font-size: 0.95rem; }
.footer__links a:hover { color: var(--white); }
.footer__mail { color: #b7d1de; }
.footer__mail:hover, .footer__mail:focus { color: #b7d1de; }
.footer__note {
  margin-top: 1.25rem; font-size: 0.82rem; line-height: 1.6;
  color: #7fa1b3; max-width: 42ch;
}
.footer__bar {
  margin-top: clamp(2.25rem, 4vw, 3.25rem); padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  font-size: 0.85rem; color: #7fa1b3;
}
.footer__bar p { margin: 0; font-size: 0.85rem; color: #7fa1b3; }

.fab {
  position: fixed; right: clamp(1rem, 3vw, 1.75rem); bottom: clamp(1rem, 3vw, 1.75rem);
  z-index: 95; display: flex; flex-direction: column; gap: 0.6rem;
}
.fab__btn {
  display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 50%;
  border: 0; color: var(--white);
  box-shadow: var(--sh-2);
  transition: transform 0.4s var(--ease-out), opacity 0.4s var(--ease), visibility 0.4s;
}
.fab__btn svg { width: 23px; height: 23px; }
@media (max-width: 620px) {
  .fab__btn { width: 48px; height: 48px; }
  .fab__btn svg { width: 21px; height: 21px; }
}
.fab__btn:hover { transform: translateY(-3px) scale(1.05); }
.fab__btn--wa { background: #1faa54; }
.fab__btn--top { background: var(--ink); opacity: 0; visibility: hidden; }
.fab__btn--top.is-on { opacity: 1; visibility: visible; }

/* ---------- 19. Reveal on scroll ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 85ms);
  will-change: opacity, transform;
}
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal="fade"] { transform: none; }
[data-reveal="right"] { transform: translateX(-28px); }
[data-reveal="scale"] { transform: scale(0.96); }

/* ---------- 20. Motion & print ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .hero h1 .word > span { transform: none; }
  .rl-path { stroke-dashoffset: 0; }
  .rl-node { opacity: 1; }
  .marquee__track { animation: none; }
}
@media print {
  .header, .fab, .mobile-nav, .grain, .progress, .marquee, .map, .form { display: none !important; }
  body { background: #fff; color: #000; }
  .section--ink, .doctor { background: #fff !important; color: #000 !important; }
  .section--ink h2, .section--ink h3, .stage p, .doctor p { color: #000 !important; }
  .stage { opacity: 1 !important; }
  a { color: #000; text-decoration: underline; }
}
