/* wwwphysio.com — light, airy clinic site (light only, by choice).
   A pale periwinkle mist opens every page and fades into white; light frosted-glass panels sit on it.
   Light, large type (Inter Tight for Latin and numbers, Chiron Hei HK for Chinese) in navy ink.
   The footer mirrors the top: white fading back into blue, ending with the name.
   Motion: page-to-page transitions, one entrance on load, gentle reveals on scroll, tap ripples. */

:root {
  /* mist (top band) */
  --mist-a: #93a8cd;
  --mist-b: #b2c2df;
  --mist-c: #d6dfef;
  --mist-d: #f0f4fa;
  --cloud: 0.55;
  --mist-ink: #18233a;
  --mist-muted: #3d4c66;
  /* page */
  --page: #ffffff;
  --soft: #f2f5fb;
  --ink: #18233a;
  --muted: #56647c;
  --line: #e1e7f1;
  --accent: #3a5899;
  --solid: #1b2740;        /* primary pill */
  --solid-ink: #ffffff;
  /* glass */
  --glass-bg: rgba(255, 255, 255, 0.42);
  --glass-line: rgba(255, 255, 255, 0.8);
  --glass-ink: #18233a;
  --glass-shadow: 0 10px 40px -18px rgba(40, 62, 110, 0.45);
  --chip-bg: rgba(20, 32, 58, 0.45);
  /* soft band and footer */
  --band-a: #f6f8fc;
  --band-b: #e6ecf7;
  --band-card: #ffffff;
  --foot-a: #ffffff;
  --foot-b: #dbe3f1;
  --foot-c: #9fb3d6;
  --plain-a: #c9d5ec;
  --plain-b: #98acd0;
  --plain-ink: #18233a;
  --font: "Inter Tight", "Chiron Hei HK", "Noto Sans HK", "Noto Sans CJK HK", "PingFang HK", "Microsoft JhengHei", sans-serif;
  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 12px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  interpolate-size: allow-keywords;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 112.5%; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--ink); font-family: var(--font); line-height: 1.85; line-break: strict; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; line-height: 1.25; text-wrap: balance; font-weight: 400; }
h2 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem); font-weight: 300; letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; font-weight: 500; }
p { margin: 0; text-wrap: pretty; }
.small { font-size: 0.88rem; color: var(--muted); }

.wrap {
  width: 100%; max-width: 1200px; margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* ---------- Mist: the light gradient that opens every page ---------- */
.mist {
  position: relative; isolation: isolate; color: var(--mist-ink);
  background: linear-gradient(180deg, var(--mist-a) 0%, var(--mist-b) 40%, var(--mist-c) 72%, var(--mist-d) 90%, var(--page) 100%);
}
.mist.sub { background: linear-gradient(180deg, var(--mist-a) 0%, var(--mist-b) 55%, var(--mist-c) 82%, var(--page) 100%); }
.mist::before { /* soft clouds */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(32% 26% at 90% 22%, rgba(255, 255, 255, calc(var(--cloud) * 0.7)), transparent 70%),
    radial-gradient(40% 24% at 8% 70%, rgba(255, 255, 255, calc(var(--cloud) * 0.6)), transparent 70%),
    radial-gradient(50% 24% at 55% 96%, rgba(255, 255, 255, var(--cloud)), transparent 70%);
  filter: blur(24px);
}
.mist::after { /* film grain */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.14; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.mist a { color: var(--mist-ink); }
.glass {
  background: var(--glass-bg); border: 1px solid var(--glass-line); color: var(--glass-ink);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%);
}
.chip-dark { background: var(--chip-bg); color: #ffffff; border: 1px solid rgba(255, 255, 255, 0.3);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }

/* Header: one floating glass bar */
.site-header { padding-top: 18px; position: relative; z-index: 5; }
.navbar {
  display: flex; align-items: center; gap: 1rem; border-radius: 999px;
  padding: 0.45rem 0.5rem 0.45rem 1.25rem; view-transition-name: navbar;
}
.brand { text-decoration: none; font-weight: 500; font-size: 1rem; white-space: nowrap; margin-right: auto; }
.nav { display: flex; gap: 0.25rem 1.4rem; }
.nav a { text-decoration: none; font-size: 0.92rem; opacity: 0.78; padding-block: 0.2rem; position: relative; transition: opacity 0.2s; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease); }
.nav a:hover { opacity: 1; }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { opacity: 1; }
.navbar .pill { margin-left: 0.5rem; }
.lang {
  text-decoration: none; font-size: 0.85rem; font-weight: 500; line-height: 1; white-space: nowrap;
  padding: 0.5rem 0.75rem; border-radius: 999px; border: 1px solid var(--glass-line); background: var(--glass-bg);
  transition: background-color 0.25s, transform 0.2s var(--ease);
}
.lang:hover { background: #ffffff; }
.lang:active { transform: scale(0.95); }
.navbar .lang + .pill { margin-left: 0; }
.menu .nav a[lang] { color: var(--accent); }
.menu { display: none; position: relative; }
.menu summary {
  list-style: none; cursor: pointer; font-size: 0.92rem; border-radius: 999px;
  padding: 0.35rem 1rem; border: 1px solid var(--glass-line); background: var(--glass-bg);
}
.menu summary::-webkit-details-marker { display: none; }
.menu .nav {
  position: absolute; right: 0; top: calc(100% + 10px); width: min(240px, 80vw); z-index: 10;
  flex-direction: column; gap: 0; padding: 0.5rem 1rem; border-radius: var(--r-md);
  background: var(--page); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--glass-shadow);
}
.menu .nav a { color: var(--ink); padding-block: 0.65rem; border-bottom: 1px solid var(--line); font-size: 1rem; opacity: 1; }
.menu .nav a::after { display: none; }
.menu .nav a:last-child { border-bottom: 0; }
.menu .nav a[aria-current="page"] { color: var(--accent); }
@media (max-width: 1120px) { .nav-wide { display: none; } .menu { display: block; } }
@media (max-width: 520px) { .navbar .pill { display: none; } .navbar { padding-left: 1rem; } }

/* Pills (buttons) */
.actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.pill {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; white-space: nowrap;
  min-height: 2.9rem; padding: 0.35rem 1.35rem; border-radius: 999px;
  font-size: 0.95rem; font-weight: 500; text-decoration: none; border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s;
}
.pill:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgba(30, 50, 95, 0.55); }
.pill:active { transform: translateY(0) scale(0.97); box-shadow: none; transition-duration: 0.08s; }
.navbar .pill { min-height: 2.4rem; padding-inline: 1.1rem; font-size: 0.88rem; }
.pill.solid, .mist .pill.solid { background: var(--solid); color: var(--solid-ink); }
.pill.white, .mist .pill.white { background: #ffffff; color: #18233a; }
.pill.clear, .mist .pill.clear { background: var(--glass-bg); border-color: var(--glass-line); color: var(--glass-ink);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.pill.line { border-color: var(--line); color: var(--ink); background: var(--page); }

/* Tap ripple (added by site.js) */
.ripple {
  position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; width: 12px; height: 12px;
  margin: -6px 0 0 -6px; background: currentColor; opacity: 0.22; transform: scale(0);
  animation: ripple 0.6s var(--ease) forwards;
}
@keyframes ripple { to { transform: scale(var(--rs, 30)); opacity: 0; } }

/* ---------- Home hero ---------- */
.hero {
  display: grid; align-items: end;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr) minmax(0, 0.72fr);
  grid-template-areas: "text photo card";
  gap: 1.75rem clamp(1.25rem, 3vw, 2.5rem);
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(2.5rem, 5vw, 4rem);
}
.hero-text { grid-area: text; display: grid; gap: 1.25rem; align-self: center; min-width: 0; }
.hero h1 { display: grid; font-weight: 300; line-height: 1.05; letter-spacing: -0.02em; }
.hero h1 .n1 { font-size: clamp(3rem, 1.6rem + 5.2vw, 5.6rem); font-weight: 300; letter-spacing: 0.02em; }
.hero h1 .n2 { font-size: clamp(2rem, 1.2rem + 3.2vw, 3.6rem); font-weight: 300; color: var(--mist-muted); }
.hero .role { font-size: 1.15rem; font-weight: 500; }
.hero .lead { color: var(--mist-muted); max-width: 24em; }
.hero-photo { grid-area: photo; margin: 0; position: relative; }
.hero-photo img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-lg);
  box-shadow: 0 34px 60px -30px rgba(30, 48, 90, 0.55);
}
.chip {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  white-space: nowrap; font-size: 0.8rem; padding: 0.35rem 0.9rem; border-radius: 999px;
}
.hours-card { grid-area: card; border-radius: var(--r-md); padding: 1.2rem 1.25rem; display: grid; gap: 1rem; align-self: center; }
.hours-card h2 { font-size: 0.95rem; font-weight: 500; letter-spacing: 0; }
.meter { display: grid; gap: 0.4rem; }
.meter-top { display: flex; justify-content: space-between; gap: 0.75rem; font-size: 0.86rem; }
.meter-top span:last-child { font-variant-numeric: tabular-nums; }
.segs { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.segs i { height: 12px; border-radius: 3px; border: 1px solid currentColor; opacity: 0.45; }
.segs i.on { background: currentColor; opacity: 1; }
.seg-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; font-size: 0.68rem; text-align: center; opacity: 0.75; line-height: 1; }
.hours-card .note { font-size: 0.82rem; opacity: 0.85; border-top: 1px solid var(--glass-line); padding-top: 0.75rem; }
@media (max-width: 1040px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "text text" "photo card"; }
}
@media (max-width: 620px) {
  .hero { grid-template-columns: 1fr; grid-template-areas: "text" "photo" "card"; }
  .hero-photo { max-width: 420px; }
}

/* Inner page heading on the mist */
.page-head { padding-block: clamp(2.5rem, 7vw, 5rem) clamp(4rem, 9vw, 7rem); display: grid; gap: 0.9rem; }
.page-head h1 { font-size: clamp(2.3rem, 1.5rem + 3.4vw, 4rem); font-weight: 300; letter-spacing: -0.01em; max-width: 18em; }
.page-head.article h1 { font-size: clamp(1.75rem, 1.25rem + 2.2vw, 2.9rem); line-height: 1.3; max-width: 22em; }
.page-head p { color: var(--mist-muted); font-size: 1.08rem; max-width: 34em; }
.page-head .meta { font-size: 0.88rem; display: flex; flex-wrap: wrap; gap: 0.2rem 1.25rem; }

/* ---------- Main ---------- */
main { display: grid; gap: clamp(4rem, 9vw, 7rem); padding-bottom: clamp(4rem, 9vw, 7rem); }
main > :first-child { margin-top: clamp(1rem, 3vw, 2rem); }
section { display: grid; gap: 1.75rem; }
.center { text-align: center; justify-items: center; }
.center p { color: var(--muted); max-width: 34em; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* Service cards */
.cards-scroll { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.cards-scroll::-webkit-scrollbar { display: none; }
.cards { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); gap: 16px; padding-block: 6px 14px; }
.card {
  position: relative; overflow: hidden; isolation: isolate; border-radius: var(--r-md); min-height: 440px; scroll-snap-align: center;
  color: #ffffff; display: grid; align-content: space-between; padding: 1.4rem;
  background: linear-gradient(165deg, var(--plain-a), var(--plain-b));
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 24px 40px -24px rgba(30, 48, 90, 0.6); }
.card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.1s var(--ease); }
.card:hover > img { transform: scale(1.05); }
.card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(14, 24, 46, 0.66) 0%, rgba(14, 24, 46, 0.08) 48%, rgba(14, 24, 46, 0.3) 100%); }
.card.plain { color: var(--plain-ink); }
.card.plain::after { display: none; }
.card h3 { font-size: 1.3rem; font-weight: 500; }
.card p { opacity: 0.88; font-size: 0.92rem; max-width: 22em; margin-top: 0.35rem; }
.card .tag { justify-self: start; font-size: 0.8rem; padding: 0.3rem 0.85rem; border-radius: 999px; }
.card .panel { justify-self: end; border-radius: var(--r-sm); padding: 0.8rem 1rem; display: grid; gap: 0.2rem; min-width: 11rem; }
.card .panel b { font-size: 1.9rem; font-weight: 300; line-height: 1.1; font-variant-numeric: tabular-nums; }
.card .panel span { font-size: 0.8rem; opacity: 0.8; }
@media (max-width: 860px) {
  .cards { grid-template-columns: repeat(3, 82%); }
  .card { min-height: 400px; }
}

/* Statement with inline photos, then plain numbers */
.statement { justify-items: center; text-align: center; gap: clamp(2.5rem, 6vw, 4rem); }
.statement .big { font-size: clamp(1.4rem, 1rem + 1.8vw, 2.3rem); font-weight: 300; line-height: 1.6; max-width: 26em; color: var(--ink); }
.statement .big .dim { color: var(--muted); }
@media (min-width: 760px) { .statement .big { word-break: keep-all; text-wrap: balance; } }
.stats { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem clamp(1.5rem, 4vw, 3rem); text-align: left; }
.stats > div { display: grid; gap: 0.5rem; align-content: start; }
.stats .fig { font-size: clamp(2.4rem, 1.6rem + 2.6vw, 3.6rem); font-weight: 300; line-height: 1.05; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stats .fig small { font-size: 0.4em; letter-spacing: 0; margin-left: 0.25em; }
.stats h3 { border-top: 1px solid var(--line); padding-top: 0.8rem; font-size: 1rem; }
.stats p { color: var(--muted); font-size: 0.9rem; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr; } }

/* Soft band: first visit + questions */
.deep { background: linear-gradient(180deg, var(--band-a), var(--band-b)); padding-block: clamp(4rem, 9vw, 6.5rem); }
.deep .wrap { display: grid; gap: clamp(3rem, 7vw, 5rem); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; counter-reset: s; }
.steps li {
  border-radius: var(--r-md); padding: 1.3rem 1.2rem 1.4rem; display: grid; gap: 2.2rem; align-content: space-between; min-height: 190px;
  background: var(--band-card); border: 1px solid var(--line); position: relative; overflow: hidden; isolation: isolate;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.steps li:hover { transform: translateY(-4px); box-shadow: 0 18px 34px -24px rgba(30, 48, 90, 0.55); }
.steps li::before { counter-increment: s; content: "0" counter(s); font-size: 0.85rem; color: var(--accent); font-variant-numeric: tabular-nums; }
.steps li span { font-size: 1.12rem; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } .steps li { min-height: 0; gap: 1rem; } }
.faq { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); gap: 1.5rem clamp(2rem, 6vw, 5rem); align-items: start; }
.faq-list { display: grid; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding-block: 1.05rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; width: 1.9rem; height: 1.9rem; border-radius: 50%; display: grid; place-items: center;
  font-size: 1.2rem; font-weight: 300; line-height: 1; background: var(--band-card); border: 1px solid var(--line);
  transition: transform 0.35s var(--ease), background-color 0.35s, color 0.35s;
}
.faq details[open] summary::after { transform: rotate(45deg); background: var(--solid); color: var(--solid-ink); border-color: var(--solid); }
.faq details::details-content { block-size: 0; overflow: clip; transition: block-size 0.4s var(--ease), content-visibility 0.4s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }
.faq .answer-text { padding-bottom: 1.2rem; color: var(--muted); display: grid; gap: 0.6rem; }
.faq ul { margin: 0; padding-left: 1.2em; }
@media (max-width: 760px) { .faq { grid-template-columns: 1fr; } }

/* Visit block */
.visit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.75rem, 5vw, 4rem); align-items: center; }
.visit figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--r-lg); }
.visit figure img { aspect-ratio: 4 / 3.4; object-fit: cover; width: 100%; transition: transform 1.1s var(--ease); }
.visit figure:hover img { transform: scale(1.04); }
.visit figure .chip { left: 16px; transform: none; bottom: 16px; }
.visit .info { display: grid; gap: 1.5rem; }
.visit dl { margin: 0; display: grid; }
.visit dl > div { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 1rem; padding-block: 0.9rem; border-top: 1px solid var(--line); }
.visit dl > div:last-child { border-bottom: 1px solid var(--line); }
.visit dt { color: var(--muted); font-size: 0.92rem; }
.visit dd { margin: 0; }
.hours { display: grid; grid-template-columns: auto 1fr; gap: 0.1rem 1rem; margin: 0; font-variant-numeric: tabular-nums; }
.hours dt { color: inherit; opacity: 0.72; font-size: inherit; }
.hours dd { margin: 0; }
@media (max-width: 820px) { .visit { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .visit dl > div { grid-template-columns: 1fr; gap: 0.2rem; } }

/* Reading column */
.prose { max-width: 40em; display: grid; gap: 1.1rem; min-width: 0; }
.prose h2 { font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.75rem); font-weight: 400; margin-top: 1.5rem; }
.prose h3 { margin-top: 0.5rem; }
.prose ul, .prose ol { margin: 0; padding-left: 1.4em; display: grid; gap: 0.5rem; }
.prose li::marker { color: var(--accent); }
.prose > .actions { margin-top: 0.5rem; }
.rows { display: grid; }
.rows > div { border-top: 1px solid var(--line); padding-block: 1.3rem; display: grid; gap: 0.35rem; }
.rows > div:last-child { border-bottom: 1px solid var(--line); }
.rows h2 { margin-top: 0; font-size: 1.35rem; }
.rows p { color: var(--muted); }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.about figure { margin: 0; }
.about img { border-radius: var(--r-lg); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
@media (max-width: 720px) { .about { grid-template-columns: 1fr; } .about figure { max-width: 300px; } }
.about figure { position: sticky; top: 24px; }
@media (max-width: 720px) { .about figure { position: static; } }
.bio { font-size: 1.04rem; line-height: 1.95; }
.bio .lead { font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.35rem); font-weight: 300; }
.facts-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-block: 0.75rem; }
.facts-row > div { background: var(--soft); border-radius: var(--r-md); padding: 1rem 1.1rem; display: grid; gap: 0.2rem; }
.facts-row b { font-size: 1.3rem; font-weight: 300; line-height: 1.3; }
.facts-row span { font-size: 0.85rem; color: var(--muted); }
@media (max-width: 560px) { .facts-row { grid-template-columns: 1fr; } }
.how { list-style: none; padding: 0 !important; counter-reset: h; gap: 0 !important; }
.how li { counter-increment: h; display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); gap: 0.15rem 0.9rem; padding-block: 1rem; border-top: 1px solid var(--line); }
.how li:last-child { border-bottom: 1px solid var(--line); }
.how li::before { content: counter(h); grid-row: span 2; width: 2.2rem; height: 2.2rem; border-radius: 50%; display: grid; place-items: center; background: #e6ecf8; color: var(--accent); font-size: 0.95rem; }
.how b { font-weight: 500; }
.how span { color: var(--muted); }
.quals { gap: 0.4rem; }

/* ---------- Footer: white fading back into blue, ending with the name ---------- */
.site-footer { background: linear-gradient(180deg, var(--foot-a) 0%, var(--foot-b) 45%, var(--foot-c) 100%); color: var(--ink); overflow: hidden; }
.site-footer a { color: var(--ink); }
.site-footer .wrap { padding-top: clamp(3rem, 7vw, 4.5rem); display: grid; gap: 2.25rem; }
.site-footer .cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 1.75rem 2rem; font-size: 0.92rem; }
.site-footer h2 { font-size: 0.95rem; font-weight: 500; margin-bottom: 0.6rem; letter-spacing: 0; }
.site-footer .cols p { color: var(--muted); }
.site-footer .cols > div { min-width: 0; }
.site-footer .lead-col p { color: var(--ink); font-size: 1.05rem; font-weight: 300; max-width: 16em; }
.site-footer .fine { font-size: 0.8rem; color: var(--muted); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.4rem 1.5rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.wordmark {
  font-size: clamp(4.5rem, 19vw, 17rem); font-weight: 300; line-height: 0.8; letter-spacing: -0.04em;
  text-align: center; white-space: nowrap; margin-bottom: -0.12em;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.15), #ffffff 30%, #ffffff 70%, rgba(255, 255, 255, 0.15));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
@media (max-width: 860px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .site-footer .cols { grid-template-columns: 1fr; } }

/* ---------- Motion ---------- */
/* Page-to-page: the glass bar stays put, the page eases in */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out 0.22s ease both; }
::view-transition-new(root) { animation: vt-in 0.45s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }

@media (prefers-reduced-motion: no-preference) {
  /* One entrance on load */
  .hero-text > *, .page-head > * { animation: rise 0.9s var(--ease) both; }
  .hero-text > :nth-child(2), .page-head > :nth-child(2) { animation-delay: 0.08s; }
  .hero-text > :nth-child(3) { animation-delay: 0.16s; }
  .hero-text > :nth-child(4) { animation-delay: 0.24s; }
  .hero-photo { animation: rise-photo 1.1s var(--ease) 0.1s both; }
  .hours-card { animation: rise 1s var(--ease) 0.3s both; }
  .segs i.on { animation: fill 0.45s var(--ease) both; animation-delay: calc(0.7s + var(--i, 0) * 0.07s); }
  @keyframes rise { from { opacity: 0; transform: translateY(22px); } }
  @keyframes rise-photo { from { opacity: 0; transform: translateY(30px) scale(0.97); } }
  @keyframes fill { from { opacity: 0.45; background-color: transparent; } }

  /* Gentle reveals on scroll (site.js adds .in) */
  .js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
  .js .reveal.in { opacity: 1; transform: none; }
  .js .reveal .stagger > * { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
  .js .reveal.in .stagger > * { opacity: 1; transform: none; }
  .js .reveal.in .stagger > :nth-child(2) { transition-delay: 0.08s; }
  .js .reveal.in .stagger > :nth-child(3) { transition-delay: 0.16s; }
  .js .reveal.in .stagger > :nth-child(4) { transition-delay: 0.24s; }

  /* Mobile menu drops in */
  .menu[open] .nav { animation: drop 0.28s var(--ease) both; }
  @keyframes drop { from { opacity: 0; transform: translateY(-8px) scale(0.98); } }
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
  .ripple { display: none; }
}

/* ---------- Blog ---------- */
.chip-topic {
  display: inline-flex; align-items: center; font-size: 0.78rem; font-weight: 500; line-height: 1;
  padding: 0.42rem 0.75rem; border-radius: 999px; background: #e6ecf8; color: var(--accent); white-space: nowrap;
}
.mist .chip-topic { background: rgba(255, 255, 255, 0.6); color: var(--ink); }
.meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.9rem; font-size: 0.84rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.meta-row .sep { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: 0.5; }

/* Article cards */
.post-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 22px; }
.post-card {
  position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r-md); background: var(--page);
  border: 1px solid var(--line); display: grid; grid-template-rows: auto 1fr;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.post-card:hover { transform: translateY(-5px); box-shadow: 0 22px 40px -26px rgba(30, 48, 90, 0.55); }
.post-card .thumb { aspect-ratio: 16 / 9; overflow: hidden; background: var(--soft); }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.post-card:hover .thumb img { transform: scale(1.05); }
.post-card .body { padding: 1.2rem 1.25rem 1.35rem; display: grid; gap: 0.7rem; align-content: start; }
.post-card .chip-topic { justify-self: start; }
.post-card h3 { font-size: 1.15rem; font-weight: 500; line-height: 1.5; }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.post-card p.ex { color: var(--muted); font-size: 0.92rem; line-height: 1.75; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Featured (latest) article */
.featured {
  position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(1.25rem, 4vw, 3rem); align-items: center; padding: clamp(0.75rem, 2vw, 1rem); border-radius: var(--r-lg);
  background: var(--soft); overflow: hidden; transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.featured:hover { transform: translateY(-4px); box-shadow: 0 26px 46px -30px rgba(30, 48, 90, 0.55); }
.featured .thumb { border-radius: var(--r-md); overflow: hidden; aspect-ratio: 16 / 10; }
.featured .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.featured:hover .thumb img { transform: scale(1.04); }
.featured .body { display: grid; gap: 1rem; padding: 0.5rem clamp(0rem, 2vw, 1.5rem) 0.5rem 0; align-content: center; }
.featured .label { font-size: 0.85rem; color: var(--muted); }
.featured h2 { font-size: clamp(1.45rem, 1.1rem + 1.4vw, 2.1rem); font-weight: 400; line-height: 1.4; }
.featured h2 a { color: var(--ink); text-decoration: none; }
.featured h2 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.featured p.ex { color: var(--muted); }
.featured .read { justify-self: start; position: relative; z-index: 2; }
@media (max-width: 820px) { .featured { grid-template-columns: 1fr; } .featured .body { padding: 0.25rem 0.5rem 0.75rem; } }

.byline { display: flex; align-items: center; gap: 0.7rem; font-size: 0.86rem; }
.byline img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; }
.byline b { font-weight: 500; display: block; line-height: 1.35; }
.byline span { color: var(--muted); line-height: 1.35; }
.mist .byline span { color: var(--mist-muted); }

/* Topic filter */
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.filters button {
  font: inherit; font-size: 0.88rem; cursor: pointer; border-radius: 999px; padding: 0.45rem 1rem;
  border: 1px solid var(--line); background: var(--page); color: var(--ink); position: relative; overflow: hidden; isolation: isolate;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s, transform 0.2s var(--ease);
}
.filters button:hover { border-color: var(--accent); }
.filters button:active { transform: scale(0.96); }
.filters button[aria-pressed="true"] { background: var(--solid); color: var(--solid-ink); border-color: var(--solid); }
.post-grid li[hidden] { display: none; }

/* Article page: top band, cover, contents + body */
.article-head { padding-block: clamp(2rem, 6vw, 4rem) clamp(5rem, 12vw, 8.5rem); display: grid; gap: 1.1rem; justify-items: start; }
.article-head h1 { max-width: 24em; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; font-size: 0.86rem; }
.crumbs a { color: var(--mist-muted); }
.article-head h1 { font-size: clamp(1.8rem, 1.2rem + 2.6vw, 3.1rem); font-weight: 300; line-height: 1.32; letter-spacing: -0.01em; }
.article-head .meta-row { color: var(--mist-muted); }
.cover-wrap { margin-top: calc(-1 * clamp(4rem, 10vw, 7rem)); position: relative; z-index: 1; }
.cover-wrap img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; border-radius: var(--r-lg); box-shadow: 0 30px 60px -36px rgba(30, 48, 90, 0.6); background: var(--soft); }
main > .cover-wrap:first-child { margin-top: calc(-1 * clamp(4rem, 10vw, 7rem)); }
.article-grid { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.toc { position: sticky; top: 24px; display: grid; gap: 0.6rem; font-size: 0.9rem; }
.toc > p { font-weight: 500; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; border-left: 2px solid var(--line); }
.toc a { display: block; color: var(--muted); text-decoration: none; padding: 0.35rem 0 0.35rem 0.9rem; margin-left: -2px; border-left: 2px solid transparent; line-height: 1.5; transition: color 0.25s, border-color 0.25s; }
.toc a:hover { color: var(--ink); }
.toc a.active { color: var(--accent); border-left-color: var(--accent); }
.toc-mobile { display: none; }
@media (max-width: 960px) {
  .article-grid { grid-template-columns: 1fr; }
  .toc { display: none; }
  .toc-mobile { display: block; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--soft); }
  .toc-mobile summary { list-style: none; cursor: pointer; padding: 0.9rem 1.1rem; font-weight: 500; display: flex; justify-content: space-between; }
  .toc-mobile summary::-webkit-details-marker { display: none; }
  .toc-mobile summary::after { content: "+"; font-weight: 300; font-size: 1.2rem; line-height: 1; transition: transform 0.3s var(--ease); }
  .toc-mobile[open] summary::after { transform: rotate(45deg); }
  .toc-mobile ol { margin: 0; padding: 0 1.1rem 1rem 2.4rem; display: grid; gap: 0.4rem; }
  .toc-mobile a { color: var(--ink); text-decoration: none; }
}

/* Reading body: larger type, short measure, generous spacing */
.article-body { max-width: 37em; display: grid; gap: 1.25rem; font-size: 1.06rem; line-height: 1.95; min-width: 0; }
.article-body > h2 { font-size: clamp(1.4rem, 1.2rem + 0.9vw, 1.85rem); font-weight: 400; margin-top: 2.2rem; scroll-margin-top: 24px; }
.article-body h3 { font-size: 1.15rem; font-weight: 500; }
.article-body ul, .article-body ol { margin: 0; padding-left: 1.3em; display: grid; gap: 0.55rem; }
.article-body li::marker { color: var(--accent); }
.article-body .lead { font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.35rem); line-height: 1.85; color: var(--ink); font-weight: 300; }
.article-body .pull {
  font-size: clamp(1.35rem, 1.15rem + 1vw, 1.8rem); font-weight: 300; line-height: 1.5; color: var(--accent);
  border-left: 3px solid var(--accent); padding: 0.2rem 0 0.2rem 1.1rem; margin-block: 0.6rem;
}
.answer { background: linear-gradient(135deg, #eef2fb, #e3eaf7); border-radius: var(--r-md); padding: clamp(1.2rem, 3vw, 1.7rem); font-size: 1.04rem; line-height: 1.9; }
.answer b { display: flex; align-items: center; gap: 0.5rem; font-weight: 500; color: var(--accent); margin-bottom: 0.45rem; }
.answer b::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* Exercise cards */
.moves { display: grid; gap: 14px; margin-block: 0.5rem; }
.move { margin: 0; display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); gap: 1.25rem; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--page); transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.move:hover { transform: translateY(-3px); box-shadow: 0 18px 30px -24px rgba(30, 48, 90, 0.55); }
.move img { width: 100%; border-radius: 14px; }
.move figcaption { display: grid; gap: 0.35rem; padding-right: 0.5rem; }
.move .move-no { font-size: 0.8rem; color: var(--accent); font-weight: 500; }
.move h3 { font-size: 1.2rem; }
.move p { font-size: 0.98rem; line-height: 1.8; color: var(--muted); }
.move .dose { justify-self: start; font-size: 0.82rem; color: var(--ink); background: var(--soft); border-radius: 999px; padding: 0.2rem 0.8rem; margin-top: 0.2rem; }
@media (max-width: 560px) { .move { grid-template-columns: 1fr; } .move figcaption { padding: 0 0.4rem 0.4rem; } }

/* Callouts */
.callout { border-radius: var(--r-md); padding: clamp(1.1rem, 3vw, 1.5rem) clamp(1.1rem, 3vw, 1.6rem); display: grid; gap: 0.7rem; margin-block: 0.6rem; }
.callout h2 { font-size: 1.15rem; font-weight: 500; margin: 0; display: flex; align-items: center; gap: 0.6rem; }
.callout h2::before { content: ""; width: 1.4rem; height: 1.4rem; flex: none; border-radius: 50%; background-repeat: no-repeat; background-position: center; background-size: 70%; }
.callout.tip { background: #eef6f1; }
.callout.tip h2 { color: #22613f; }
.callout.tip h2::before { background-color: #2f7a52; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E"); }
.callout.care { background: #fdf3ea; }
.callout.care h2 { color: #8a4b14; }
.callout.care h2::before { background-color: #b5651d; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 6v8M12 18h.01'/%3E%3C/svg%3E"); }
.callout ul { gap: 0.4rem; }

/* Questions inside articles */
.qa { display: grid; border-top: 1px solid var(--line); }
.qa details { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; padding-block: 1rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-weight: 500; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; flex: none; width: 1.8rem; height: 1.8rem; border-radius: 50%; display: grid; place-items: center; font-weight: 300; font-size: 1.15rem; border: 1px solid var(--line); transition: transform 0.35s var(--ease), background-color 0.35s, color 0.35s; }
.qa details[open] summary::after { transform: rotate(45deg); background: var(--solid); color: var(--solid-ink); border-color: var(--solid); }
.qa details::details-content { block-size: 0; overflow: clip; transition: block-size 0.4s var(--ease), content-visibility 0.4s allow-discrete; }
.qa details[open]::details-content { block-size: auto; }
.qa details p { padding-bottom: 1.1rem; color: var(--muted); }
.refs { font-size: 0.86rem; color: var(--muted); line-height: 1.7; }
.refs li { overflow-wrap: anywhere; }

/* After the article */
.author-box { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.1rem; align-items: center; background: var(--soft); border-radius: var(--r-md); padding: 1.25rem 1.4rem; margin-top: 1.5rem; }
.author-box img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.author-box p { font-size: 0.92rem; color: var(--muted); line-height: 1.7; }
.author-box p b { color: var(--ink); font-weight: 500; font-size: 1rem; }
.note { font-size: 0.84rem; color: var(--muted); }

/* Reading progress */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 50; background: var(--accent); transform-origin: left; transform: scaleX(0); pointer-events: none; }

/* ---------- Clinic gallery ---------- */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(2, clamp(170px, 18vw, 250px)); gap: 12px; }
.bento figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--r-md); background: var(--soft); }
.bento img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.bento figure:hover img { transform: scale(1.05); }
.bento .chip { left: 12px; bottom: 12px; transform: none; }
.bento .b1 { grid-column: 1 / span 2; grid-row: 1 / span 2; }
.bento .b2 { grid-column: 3; grid-row: 1 / span 2; }
.bento .b3 { grid-column: 4; grid-row: 1; }
.bento .b4 { grid-column: 4; grid-row: 2; }
@media (max-width: 760px) {
  .bento { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: 180px; }
  .bento .b1 { grid-column: 1 / span 2; grid-row: auto; height: 240px; }
  .bento .b2, .bento .b3, .bento .b4 { grid-column: auto; grid-row: auto; }
  .bento .b2 { grid-row: span 2; }
}

/* ---------- Talks and on-field ---------- */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.75rem, 5vw, 4rem); align-items: start; scroll-margin-top: 24px; }
.feature figure { margin: 0; position: sticky; top: 24px; }
.feature figure img { width: 100%; border-radius: var(--r-lg); aspect-ratio: 16 / 10; object-fit: cover; box-shadow: 0 30px 60px -40px rgba(30, 48, 90, 0.6); }
.feature.reverse figure { order: 2; }
.feature-text { display: grid; gap: 1rem; align-content: start; min-width: 0; }
.feature-text > p { color: var(--muted); font-size: 1.04rem; line-height: 1.9; }
.feature-text h3 { margin-top: 0.8rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; }
.ticks li { padding: 0.7rem 0 0.7rem 2rem; border-top: 1px solid var(--line); position: relative; line-height: 1.7; }
.ticks li:last-child { border-bottom: 1px solid var(--line); }
.ticks li::before { content: ""; position: absolute; left: 0.2rem; top: 1.05rem; width: 1rem; height: 0.55rem; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.dated { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.dated li { display: grid; grid-template-columns: minmax(0, 8.5em) minmax(0, 1fr); gap: 1rem; background: var(--soft); border-radius: var(--r-sm); padding: 0.8rem 1rem; }
.dated time { color: var(--accent); font-size: 0.9rem; font-variant-numeric: tabular-nums; }
@media (max-width: 820px) {
  .feature { grid-template-columns: 1fr; }
  .feature figure { position: static; }
  .feature.reverse figure { order: 0; }
}
@media (max-width: 480px) { .dated li { grid-template-columns: 1fr; gap: 0.2rem; } }
.ask { background: var(--soft); border-radius: var(--r-lg); padding: clamp(2rem, 5vw, 3rem) 1.5rem; max-width: calc(1200px - 40px); }

/* Home teaser cards */
.teaser-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.tcard {
  position: relative; overflow: hidden; isolation: isolate; display: grid; grid-template-rows: auto 1fr; border-radius: var(--r-md);
  border: 1px solid var(--line); background: var(--page); color: var(--ink); text-decoration: none;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.tcard:hover { transform: translateY(-5px); box-shadow: 0 22px 40px -26px rgba(30, 48, 90, 0.55); }
.tcard img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; transition: transform 1s var(--ease); }
.tcard:hover img { transform: scale(1.04); }
.tcard div { padding: 1.1rem 1.25rem 1.3rem; display: grid; gap: 0.35rem; }
.tcard h3 { font-size: 1.2rem; }
.tcard p { color: var(--muted); font-size: 0.94rem; }
@media (max-width: 680px) { .teaser-grid { grid-template-columns: 1fr; } }
