/* ============================================================
   Evan Schuman Physiotherapy — Design System
   Tokens: black / gold / blue. Font: Inter.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

:root {
  /* Core palette */
  --black: #060606;
  --black-soft: #0c0c0c;
  --surface-1: #121212;
  --surface-2: #191919;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);

  --white: #f7f6f2;
  --ink-muted: #a8a7a2;
  --ink-faint: #6f6e6a;

  --gold: #f7c825;
  --gold-soft: #f7c82533;
  --gold-dim: #a8871c;
  --gold-ink: #171204;

  --blue: #3a5cff;
  --blue-deep: #10184a;
  --blue-soft: #3a5cff26;

  /* Semantic */
  --bg: var(--black);
  --bg-alt: var(--black-soft);
  --fg: var(--white);
  --fg-muted: var(--ink-muted);
  --fg-faint: var(--ink-faint);
  --accent: var(--gold);
  --accent-ink: var(--gold-ink);
  --accent-secondary: var(--blue);
  --border: var(--line);

  /* Type */
  --font: 'Inter', system-ui, -apple-system, sans-serif;

  /* Spacing rhythm (8px base) */
  --sp-1: 0.5rem;
  --sp-2: 1rem;
  --sp-3: 1.5rem;
  --sp-4: 2rem;
  --sp-5: 3rem;
  --sp-6: 4rem;
  --sp-7: 6rem;
  --sp-8: 8rem;

  --container: 1320px;
  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 20px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
body, h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--sp-3);
}
@media (min-width: 768px) { .container { padding-inline: var(--sp-5); } }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; overflow-wrap: break-word; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--accent);
}
.h-display {
  font-size: clamp(2.75rem, 6vw + 1rem, 6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.95;
  text-transform: uppercase;
}
.h-xl { font-size: clamp(2.25rem, 4vw + 1rem, 3.75rem); text-transform: uppercase; }
.h-lg { font-size: clamp(1.75rem, 2.5vw + 1rem, 2.5rem); }
.h-md { font-size: clamp(1.25rem, 1.5vw + 1rem, 1.5rem); }
.lede { font-size: clamp(1.05rem, 1vw + 0.9rem, 1.25rem); color: var(--fg-muted); line-height: 1.65; }
.text-muted { color: var(--fg-muted); }
.text-accent { color: var(--accent); }
.num-mono { font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 1.05rem 2.1rem;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
  white-space: nowrap;
  min-height: 44px;
}
.btn-primary {
  background: var(--gold);
  color: var(--gold-ink);
  box-shadow: 0 8px 30px -8px var(--gold-soft);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -8px rgba(247, 200, 37, 0.45); }
.btn-primary:active { transform: translateY(0); }
.btn-outline {
  border: 1px solid var(--line-strong);
  color: var(--fg);
  background: transparent;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-soft); }
.btn-icon { width: 1em; height: 1em; transition: transform 0.3s var(--ease); }
.btn:hover .btn-icon { transform: translateX(3px); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.link-arrow svg { width: 14px; height: 14px; transition: transform 0.3s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(6, 6, 6, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s var(--ease);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 168px;
}
.brand { display: flex; align-items: center; gap: 0.75rem; min-width: 0; }
.brand img { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.brand-word { font-weight: 800; font-size: 0.92rem; letter-spacing: 0.02em; line-height: 1.15; white-space: nowrap; }
.brand-word small { display: block; font-weight: 500; font-size: 0.62rem; letter-spacing: 0.2em; color: var(--fg-muted); text-transform: uppercase; margin-top: 2px; }

.nav-links { display: none; align-items: center; gap: var(--sp-4); }
@media (min-width: 1024px) { .nav-links { display: flex; } }
.nav-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--fg-muted);
  padding: 0.5rem 0;
  transition: color 0.25s var(--ease);
  position: relative;
}
.nav-link:hover, .nav-link.is-active { color: var(--fg); }
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav-link:hover::after { transform: scaleX(1); }

.has-dropdown { position: relative; }
.dropdown-trigger { display: inline-flex; align-items: center; gap: 0.35em; }
.dropdown-trigger svg, .nav-link svg { width: 12px; height: 12px; transition: transform 0.25s var(--ease); }
.has-dropdown:hover .dropdown-trigger svg { transform: rotate(180deg); }
.nav-link { display: inline-flex; align-items: center; gap: 0.35em; }
.dropdown-panel {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, 8px);
  min-width: 240px;
  padding: 0.5rem;
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 40px -12px rgba(0,0,0,0.6);
  opacity: 0;
  visibility: hidden;
  /* Wait before closing so the pointer can cross the gap to the panel. */
  transition: opacity 0.25s var(--ease) 0.4s, transform 0.25s var(--ease) 0.4s, visibility 0s linear 0.65s;
}
.has-dropdown:hover .dropdown-panel,
.has-dropdown:focus-within .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
  transform: translate(-50%, 4px);
}
.dropdown-panel a {
  display: block;
  padding: 0.7rem 1rem;
  font-size: 0.85rem;
  color: var(--fg-muted);
  border-radius: var(--radius-sm);
  transition: background 0.2s, color 0.2s;
}
.dropdown-panel a:hover { background: var(--surface-2); color: var(--gold); }

/* ---------- Mega menu (Conditions) ---------- */
.megamenu-panel {
  position: fixed;
  top: 150px;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: min(1220px, 94vw);
  max-height: calc(100vh - 170px);
  overflow-y: auto;
  overflow-x: hidden;
  padding: var(--sp-5) var(--sp-5) var(--sp-4);
  background: linear-gradient(165deg, var(--surface-1) 0%, var(--black-soft) 120%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 28px 60px -16px rgba(0,0,0,0.7);
  opacity: 0;
  visibility: hidden;
  /* Wait before closing so the pointer can cross the gap to the panel. */
  transition: opacity 0.25s var(--ease) 0.4s, transform 0.25s var(--ease) 0.4s, visibility 0s linear 0.65s;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0;
  z-index: 200;
}
.megamenu-panel::before {
  content: '';
  position: absolute;
  top: 0; left: var(--sp-3); right: var(--sp-3);
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), var(--blue));
  opacity: 0.85;
}
.megamenu-panel::-webkit-scrollbar { width: 6px; }
.megamenu-panel::-webkit-scrollbar-track { background: transparent; }
.megamenu-panel::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 999px; }
.has-dropdown:hover .megamenu-panel,
.has-dropdown:focus-within .megamenu-panel {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
  transform: translateX(-50%) translateY(0);
}
.megamenu-col {
  padding-inline: var(--sp-3);
  border-left: 1px solid var(--line);
}
.megamenu-col:first-child { border-left: none; padding-left: 0; }
.megamenu-col:last-child { padding-right: 0; }
.megamenu-col h4 {
  padding-bottom: 0.7rem;
  margin-bottom: 0.6rem;
  border-bottom: 1px solid var(--line);
}
.megamenu-col h4 a {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  transition: color 0.2s;
}
.megamenu-col h4 a::after {
  content: '';
  width: 12px; height: 1px;
  background: var(--gold-dim);
  transition: width 0.25s var(--ease), background 0.25s var(--ease);
}
.megamenu-col h4 a:hover { color: var(--fg); }
.megamenu-col h4 a:hover::after { width: 20px; background: var(--gold); }
.megamenu-col .mm-link {
  display: block;
  margin-inline: -0.6rem;
  padding: 0.42rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  color: var(--fg-muted);
  transition: color 0.2s, background 0.2s, transform 0.2s var(--ease);
}
.megamenu-col .mm-link:hover {
  color: var(--gold);
  background: rgba(247, 200, 37, 0.06);
  transform: translateX(3px);
}
.megamenu-subgroup + .megamenu-subgroup { margin-top: var(--sp-3); }
.megamenu-subgroup h5 {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-bottom: 0.4rem;
}
.megamenu-subgroup h5::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent-secondary);
  flex-shrink: 0;
}

.nav-cta { display: none; }
@media (min-width: 1024px) { .nav-cta { display: inline-flex; } }
.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
}
@media (min-width: 1024px) { .nav-toggle { display: none; } }
.nav-toggle svg { width: 18px; height: 18px; }

.mobile-menu {
  position: fixed;
  inset: 168px 0 0 0;
  z-index: 90;
  background: var(--black);
  border-top: 1px solid var(--line);
  padding: var(--sp-4) var(--sp-3) var(--sp-6);
  overflow-y: auto;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.mobile-menu a { display: block; padding: 0.9rem 0; font-size: 1.1rem; font-weight: 600; border-bottom: 1px solid var(--line); }
.mobile-menu .mm-sub { padding-left: var(--sp-2); display: none; overflow: hidden; }
.mobile-menu .mm-sub.is-open { display: block; }
.mobile-menu .mm-sub a { font-size: 0.95rem; font-weight: 400; color: var(--fg-muted); border-bottom: none; padding: 0.6rem 0; }
.mobile-menu .mm-label {
  padding: 0.9rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--fg);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}
.mobile-menu .mm-label::after {
  content: '';
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--fg);
  border-bottom: 1.5px solid var(--fg);
  transform: rotate(-45deg);
  transition: transform 0.2s var(--ease);
  flex-shrink: 0;
}
.mobile-menu .mm-label.is-open::after { transform: rotate(45deg); }
.mobile-menu .btn { display: flex; align-items: center; justify-content: center; margin-top: var(--sp-3); width: 100%; border-bottom: none; text-align: center; }
body.menu-open { overflow: hidden; }

/* ---------- Section rhythm ---------- */
section { position: relative; }
.section-pad { padding-block: var(--sp-7); }
@media (min-width: 1024px) { .section-pad { padding-block: var(--sp-8); } }
.section-border-t { border-top: 1px solid var(--line); }

/* ---------- Reveal-on-scroll ---------- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
[data-reveal-delay="1"] { transition-delay: 0.08s; }
[data-reveal-delay="2"] { transition-delay: 0.16s; }
[data-reveal-delay="3"] { transition-delay: 0.24s; }
[data-reveal-delay="4"] { transition-delay: 0.32s; }
[data-reveal-delay="5"] { transition-delay: 0.4s; }

/* ---------- Decorative rings / lines ---------- */
.deco-rings {
  position: absolute;
  pointer-events: none;
  opacity: 0.05;
  z-index: 0;
}
.deco-line {
  position: absolute;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
  height: 1px;
}

/* ---------- Placeholder imagery block (signature treatment) ---------- */
.img-placeholder {
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background:
    radial-gradient(120% 100% at 15% 0%, rgba(58, 92, 255, 0.16), transparent 55%),
    radial-gradient(90% 90% at 90% 100%, rgba(247, 200, 37, 0.12), transparent 55%),
    linear-gradient(160deg, #141414 0%, #0a0a0a 70%);
}
.img-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.35;
  mask-image: radial-gradient(120% 100% at 50% 100%, black, transparent 75%);
}
.img-placeholder .ph-mark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.img-placeholder .ph-mark svg { width: 42%; height: 42%; opacity: 0.14; color: var(--fg); }
.img-placeholder .ph-corner {
  position: absolute;
  width: 26px; height: 26px;
  border-top: 1.5px solid var(--gold-dim);
  border-left: 1.5px solid var(--gold-dim);
  top: var(--sp-2); left: var(--sp-2);
  opacity: 0.7;
}
.img-placeholder .ph-tag {
  position: relative;
  z-index: 1;
  margin: var(--sp-2);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-faint);
  background: rgba(6,6,6,0.6);
  border: 1px solid var(--line);
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding-top: calc(168px + var(--sp-6));
  padding-bottom: var(--sp-6);
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-grid {
  display: grid;
  gap: var(--sp-6);
  align-items: center;
}
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1fr 0.92fr; gap: var(--sp-7); } }
.hero-copy { position: relative; z-index: 2; }
.hero-copy p.lede { max-width: 32rem; margin-block: var(--sp-3) var(--sp-4); }
.hero-title { font-size: clamp(2.1rem, 4vw + 0.8rem, 4.2rem); }
.hero-title span { display: block; }
.hero-title .is-accent { color: var(--accent); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); }

.hero-stats-row { display: flex; flex-wrap: wrap; justify-content: space-between; text-align: center; gap: var(--sp-5) var(--sp-6); }
.hero-stat { position: relative; padding-left: var(--sp-5); }
.hero-stat:first-child { padding-left: 0; }
.hero-stat:not(:first-child)::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--sp-3)); top: 0.1em; bottom: 0.1em;
  width: 1px;
  background: var(--line-strong);
}
@media (max-width: 767px) {
  .hero-stats-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5) var(--sp-3); }
  .hero-stat { padding-left: 0; }
  .hero-stat:not(:first-child)::before { display: none; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .hero-stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-3); }
  .hero-stat { padding-left: 0; }
  .hero-stat:not(:first-child)::before { left: calc(-0.5 * var(--sp-3)); }
}
.hero-stat-num { font-size: clamp(2rem, 1.6vw + 1.6rem, 2.6rem); font-weight: 800; color: var(--accent); line-height: 1.1; }
.hero-stat-label { margin-top: 0.4rem; font-size: 0.92rem; color: var(--fg-muted); line-height: 1.3; }

.hero-visual { position: relative; }
.hero-visual .frame {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transform: translateY(-8px);
}
@media (min-width: 1024px) { .hero-visual .frame { transform: translateY(-24px) translateX(16px); } }
.hero-visual .frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual .frame::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(6,6,6,0.75) 100%);
}
.hero-stat-card {
  position: absolute;
  left: -1.25rem;
  bottom: 1.75rem;
  z-index: 3;
  background: var(--surface-1);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  padding: var(--sp-3);
  box-shadow: 0 24px 48px -16px rgba(0,0,0,0.65);
  max-width: 230px;
}
@media (max-width: 480px) { .hero-stat-card { left: 0.5rem; } }
.hero-stat-card .stat-num { font-size: 2rem; font-weight: 800; color: var(--accent); line-height: 1; }
.hero-stat-card p { margin-top: 0.4rem; font-size: 0.78rem; color: var(--fg-muted); line-height: 1.4; }

/* ============================================================
   TRUST STRIP
   ============================================================ */
.trust {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: var(--sp-4);
}
.trust-row {
  display: grid;
  gap: var(--sp-4) var(--sp-3);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 640px) { .trust-row { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .trust-row { grid-template-columns: repeat(5, 1fr); } }
.trust-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding-inline: var(--sp-2);
  border-left: 1px solid var(--line);
}
.trust-item:first-child { border-left: none; padding-left: 0; }
@media (max-width: 639px) { .trust-item:nth-child(odd) { border-left: none; padding-left: 0; } }
.trust-item .t-label { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-faint); }
.trust-item .t-value { font-size: 0.98rem; font-weight: 700; line-height: 1.3; }

/* ============================================================
   AFFILIATIONS
   ============================================================ */
.affiliations-bg {
  position: absolute;
  inset: -30px;
  background-size: cover;
  background-repeat: no-repeat;
  filter: blur(2px) brightness(0.4);
  transform: scale(1.08);
}
.affiliations-label {
  display: block;
  margin-top: var(--sp-2);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.affiliations-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--sp-6);
}
.affiliation-logo {
  height: 100px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
  border-radius: var(--radius-lg);
}
@media (max-width: 767px) {
  .affiliations-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-items: center;
    gap: var(--sp-5) var(--sp-3);
  }
  .affiliations-row > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .affiliations-row picture { display: flex; justify-content: center; }
  .affiliation-logo { height: 90px; max-width: 100%; }
}
.affiliation-logo--on-white {
  box-sizing: border-box;
  background: #fff;
  padding: var(--sp-2);
}
.affiliation-badge {
  box-sizing: border-box;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-2) var(--sp-4);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
  color: var(--fg-muted);
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
  display: grid;
  gap: var(--sp-5);
}
@media (min-width: 1024px) { .about-grid { grid-template-columns: 0.85fr 1.15fr; gap: var(--sp-7); align-items: start; } }
.about-visual { position: relative; }
.about-visual .frame {
  aspect-ratio: 3 / 4;
  max-width: 380px;
  margin-inline: auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}
@media (min-width: 1024px) { .about-visual .frame { margin-inline: 0; } }
.about-visual .frame img { width: 100%; height: 100%; object-fit: cover; }
.about-visual .frame-tag {
  position: absolute;
  bottom: var(--sp-2); left: var(--sp-2);
  background: rgba(6,6,6,0.7);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-sm);
}
.about-visual .frame-tag .name { font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.about-visual .frame-tag .role { font-size: 0.65rem; color: var(--fg-muted); margin-top: 2px; }

.about-body h2 { margin-bottom: var(--sp-4); }
.about-body .lede { max-width: 42rem; }
.about-body .about-p + .about-p { margin-top: var(--sp-2); }
.about-panels { display: grid; gap: var(--sp-2); margin-top: var(--sp-5); }
@media (min-width: 640px) { .about-panels { grid-template-columns: 1fr 1fr; } }
.about-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--sp-3);
}
.about-panel h3 { font-size: 0.95rem; margin-bottom: var(--sp-2); }
.about-panel ul { display: grid; gap: 0.55rem; }
.about-panel li { display: flex; gap: 0.6rem; font-size: 0.9rem; color: var(--fg-muted); line-height: 1.5; }
.about-panel li::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); margin-top: 0.55em; flex-shrink: 0; }

/* ============================================================
   SERVICES (offset staggered rail)
   ============================================================ */
.services-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
}
.rail-controls { display: flex; gap: 0.6rem; }
.rail-btn {
  width: 46px; height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.25s, color 0.25s, background 0.25s;
}
.rail-btn:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-soft); }
.rail-btn svg { width: 18px; height: 18px; }

.services-rail {
  display: flex;
  gap: var(--sp-3);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: var(--sp-2);
  scrollbar-width: none;
}
.services-rail::-webkit-scrollbar { display: none; }
.service-card {
  position: relative;
  flex: 0 0 auto;
  width: min(300px, 78vw);
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  scroll-snap-align: start;
  cursor: default;
}
.service-card:nth-child(3n+2) { margin-top: var(--sp-4); }
.service-card:nth-child(3n) { margin-top: calc(var(--sp-4) / 2); }
.service-card .sc-bg {
  position: absolute; inset: 0;
  background: linear-gradient(155deg, #171717, #0a0a0a);
}
.service-card .sc-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 20% 0%, rgba(58,92,255,0.18), transparent 60%);
}
.service-card .sc-num {
  position: absolute; top: var(--sp-2); left: var(--sp-2);
  font-size: 0.72rem; letter-spacing: 0.12em; color: var(--fg-faint);
}
.service-card .sc-body {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: var(--sp-3);
  background: linear-gradient(0deg, rgba(6,6,6,0.94) 10%, rgba(6,6,6,0.5) 60%, transparent 100%);
}
.service-card h3 { font-size: 1.2rem; margin-bottom: 0.6rem; transition: transform 0.4s var(--ease); }
.service-card:hover h3, .service-card:focus-within h3 { transform: translateY(-4px); }
.service-card .sc-reveal { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows 0.4s var(--ease), opacity 0.35s var(--ease); }
.service-card:hover .sc-reveal, .service-card:focus-within .sc-reveal { grid-template-rows: 1fr; opacity: 1; }
.service-card ul { display: grid; gap: 0.35rem; overflow: hidden; margin-top: 0.2rem; }
.service-card ul > li { min-height: 0; }
.service-card li { font-size: 0.82rem; color: var(--fg-muted); display: flex; gap: 0.5rem; }
.service-card li::before { content: '—'; color: var(--accent); flex-shrink: 0; }
.service-card .sc-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: var(--sp-2);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
}
.service-card .sc-link svg { width: 14px; height: 14px; }

.modalities {
  margin-top: var(--sp-6);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.modality-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.6rem 1.1rem;
  font-size: 0.8rem;
  color: var(--fg-muted);
  transition: border-color 0.25s, color 0.25s;
}
.modality-pill:hover { border-color: var(--gold-dim); color: var(--fg); }

/* ============================================================
   TREATMENT
   ============================================================ */
.treatment-grid {
  display: grid;
  gap: var(--sp-3);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .treatment-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .treatment-grid { grid-template-columns: repeat(3, 1fr); } }
.treatment-card {
  border: 1px solid var(--gold-dim);
  border-radius: var(--radius-md);
  padding: var(--sp-3);
  transition: border-color 0.25s;
}
.treatment-card:hover { border-color: var(--gold); }
.treatment-card h3 { font-size: 1rem; margin-bottom: 0.4rem; }
.treatment-card p { font-size: 0.9rem; color: var(--fg-muted); line-height: 1.5; }
.tc-icon {
  width: 72px; height: 72px;
  margin-bottom: var(--sp-2);
}
.tc-icon img { width: 100%; height: 100%; object-fit: contain; }

/* ============================================================
   PAIN NAVIGATOR
   ============================================================ */
.pain-eyebrow { display: flex; align-items: center; gap: 0.5rem; }
.pain-eyebrow-icon { width: 18px; height: 27px; flex-shrink: 0; }
.pain-eyebrow-curve { width: 70px; height: 20px; flex-shrink: 0; }
.pain-hint { margin-top: var(--sp-3); font-size: 0.9rem; color: var(--fg-faint); line-height: 1.6; max-width: 26rem; }

.pain-nav-grid { display: grid; gap: var(--sp-6); align-items: center; }
@media (min-width: 1024px) { .pain-nav-grid { grid-template-columns: 0.85fr 1.15fr; gap: var(--sp-7); } }

/* -- left: dynamic content -- */
.pain-content {
  min-height: 15rem;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease);
}
.pain-content.is-swapping { opacity: 0; transform: translateY(10px); }
.pain-content-index { display: block; font-size: 0.85rem; letter-spacing: 0.06em; color: var(--fg-faint); margin-bottom: 0.75rem; }
.pain-content h3 { font-size: clamp(1.5rem, 1.4vw + 1.1rem, 2rem); margin-bottom: 0.85rem; }
.pain-content p { font-size: 1rem; color: var(--fg-muted); line-height: 1.75; margin-bottom: var(--sp-4); max-width: 30rem; }

/* -- right: illustration + hotspots -- */
.pain-figure-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1076 / 1248;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--black);
  overflow: hidden;
}
.pain-figure-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; user-select: none; -webkit-user-drag: none; }

.pain-hotspots { position: absolute; inset: 0; }

.pain-hotspot {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  opacity: 0.6;
  transition: opacity 0.25s var(--ease);
}
.pain-hotspot:hover,
.pain-hotspot:focus-visible,
.pain-hotspot.is-active { opacity: 1; }
.pain-hotspot:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 50%; }

.pain-hotspot-dot {
  position: relative;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(58, 92, 255, 0.22);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.pain-hotspot-dot::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(58, 92, 255, 0.5);
  animation: pain-pulse 2.6s ease-out infinite;
}
.pain-hotspot:hover .pain-hotspot-dot,
.pain-hotspot:focus-visible .pain-hotspot-dot,
.pain-hotspot.is-active .pain-hotspot-dot {
  transform: scale(1.4);
  box-shadow: 0 0 0 8px rgba(58, 92, 255, 0.3), 0 0 18px 3px rgba(58, 92, 255, 0.6);
}
@keyframes pain-pulse {
  0% { transform: scale(0.6); opacity: 0.8; }
  100% { transform: scale(2); opacity: 0; }
}

@media (max-width: 640px) {
  .pain-hotspot { width: 52px; height: 52px; }
  .pain-hotspot-dot { width: 13px; height: 13px; }
}

/* ============================================================
   WHY CHOOSE (index list, editorial)
   ============================================================ */
.why-grid { display: grid; gap: var(--sp-6); }
@media (min-width: 1024px) { .why-grid { grid-template-columns: 0.8fr 1.2fr; gap: var(--sp-7); } }
.why-list { border-top: 1px solid var(--line); }
.why-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--sp-3);
  align-items: center;
  padding-block: var(--sp-4);
  border-bottom: 1px solid var(--line);
  transition: transform 0.35s var(--ease), background 0.35s var(--ease);
}
.why-row:hover { transform: translateX(8px); background: rgba(247,200,37,0.03); }
.why-row .wr-index { font-size: 0.85rem; color: var(--fg-faint); }
.why-row h3 { font-size: 1.15rem; margin-bottom: 0.35rem; }
.why-row p { font-size: 0.9rem; color: var(--fg-muted); max-width: 34rem; }
.why-row .wr-metric { text-align: right; max-width: 9rem; }
.why-row .wr-metric .m-num { font-size: 1.05rem; font-weight: 800; color: var(--accent); line-height: 1.25; }
.why-row .wr-metric .m-label { font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-faint); margin-top: 4px; }
.why-visual { position: sticky; top: 110px; align-self: start; }
.why-visual .frame { aspect-ratio: 4/5; border-radius: var(--radius-lg); overflow: hidden; }
.why-visual .frame img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 1023px) { .why-visual { display: none; } }

/* ============================================================
   JOURNEY (rehab timeline)
   ============================================================ */
.journey-track {
  position: relative;
  display: grid;
  gap: var(--sp-4);
}
@media (min-width: 900px) { .journey-track { grid-template-columns: repeat(4, 1fr); gap: var(--sp-3) var(--sp-2); } }
@media (min-width: 1300px) { .journey-track { grid-template-columns: repeat(7, 1fr); } }
.journey-track::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 22px;
  height: 1px;
  background: var(--line-strong);
  display: none;
}
@media (min-width: 900px) { .journey-track::before { display: block; } }
.journey-step { position: relative; }
.journey-node {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--gold-dim);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.95rem;
  margin-bottom: var(--sp-2);
  position: relative;
  z-index: 1;
}
.journey-step:nth-child(odd) .journey-node { background: var(--accent); color: var(--gold-ink); border-color: var(--accent); }
.journey-step h3 { font-size: 1.02rem; margin-bottom: 0.5rem; }
.journey-step p { font-size: 0.85rem; color: var(--fg-muted); line-height: 1.55; }

/* ============================================================
   TESTIMONIAL
   ============================================================ */
.testimonial-wrap { display: grid; place-items: center; }
.testimonial-card {
  position: relative;
  max-width: 780px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--sp-6) var(--sp-4);
  background: linear-gradient(160deg, var(--surface-1), var(--black-soft));
  text-align: center;
}
.testimonial-card .quote-mark {
  font-family: Georgia, serif;
  font-size: 6rem;
  line-height: 1;
  color: var(--gold-dim);
  opacity: 0.6;
  margin-bottom: -1.5rem;
}
.testimonial-card .stars { display: flex; justify-content: center; gap: 0.25rem; margin-bottom: var(--sp-3); }
.testimonial-card .stars svg { width: 18px; height: 18px; color: var(--accent); }
.testimonial-card blockquote { font-size: clamp(1.15rem, 1.6vw + 0.9rem, 1.6rem); font-weight: 500; line-height: 1.5; }
.testimonial-card .t-person { margin-top: var(--sp-4); display: flex; align-items: center; justify-content: center; gap: 0.8rem; }
.avatar-ring {
  width: 54px; height: 54px; border-radius: 50%;
  background: linear-gradient(160deg, var(--surface-2), var(--bg));
  border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: var(--accent); font-size: 1.1rem;
}
.t-person .p-name { font-weight: 700; font-size: 0.95rem; }
.t-person .p-sport { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-faint); }

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  position: relative;
  border-radius: var(--radius-lg);
  margin-inline: var(--sp-3);
  padding: var(--sp-7) var(--sp-4);
  text-align: center;
  overflow: hidden;
  background: radial-gradient(120% 140% at 50% -10%, #1a1200 0%, var(--black) 55%);
  border: 1px solid var(--gold-soft);
}
@media (min-width: 768px) { .cta-banner { margin-inline: var(--sp-5); padding-inline: var(--sp-6); } }
.cta-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(70% 60% at 85% 100%, rgba(58,92,255,0.16), transparent 60%);
}
.cta-banner h2 { position: relative; z-index: 1; max-width: 46rem; margin-inline: auto; }
.cta-banner .lede { position: relative; z-index: 1; max-width: 32rem; margin: var(--sp-3) auto var(--sp-5); }
.cta-actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-2); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--line); padding-block: var(--sp-6) var(--sp-4); }
.footer-grid {
  display: grid;
  gap: var(--sp-5);
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .footer-grid { grid-template-columns: 1.3fr 0.9fr 0.9fr 1.2fr 1.1fr; gap: var(--sp-4); } }
.footer-links span { display: block; font-size: 0.88rem; color: var(--fg-muted); line-height: 1.5; }
.footer-brand { display: flex; align-items: center; gap: 0.75rem; margin-bottom: var(--sp-2); }
.footer-brand img { width: 96px; height: 96px; border-radius: 50%; }
.footer-brand span { font-weight: 800; font-size: 1rem; }
.footer p.lede { font-size: 0.88rem; max-width: 24rem; }
.footer h4 { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-faint); margin-bottom: var(--sp-2); }
.footer-links { display: grid; gap: 0.65rem; }
.footer-links a { font-size: 0.9rem; font-weight: 600; color: var(--fg-muted); transition: color 0.25s; }
.footer-links a:hover { color: var(--gold); }
.footer-contact { display: grid; gap: 0.75rem; }
.footer-contact a { display: flex; align-items: center; gap: 0.6rem; font-size: 0.88rem; font-weight: 600; color: var(--fg-muted); transition: color 0.25s; }
.footer-contact a:hover { color: var(--gold); }
.footer-contact svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; }
.footer-bottom {
  margin-top: var(--sp-6);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: var(--sp-2);
  align-items: center; justify-content: space-between;
  font-size: 0.75rem; color: var(--fg-faint);
}

/* ============================================================
   INNER PAGES (about / contact shared)
   ============================================================ */
.page-hero { padding-top: calc(168px + var(--sp-6)); padding-bottom: var(--sp-5); }
.page-hero .lede { max-width: 40rem; margin-top: var(--sp-3); }

.philosophy-list { display: grid; gap: var(--sp-3); }
.phi-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--sp-4); }
.phi-card h2 { font-size: 1.35rem; margin-bottom: var(--sp-3); }
.phi-card ul { display: grid; gap: 0.6rem; margin: var(--sp-2) 0; }
.phi-card li { display: flex; gap: 0.6rem; font-size: 0.95rem; color: var(--fg-muted); line-height: 1.55; }
.phi-card li::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); margin-top: 0.6em; flex-shrink: 0; }
.phi-card p { color: var(--fg-muted); line-height: 1.65; font-size: clamp(1.05rem, 1vw + 0.9rem, 1.25rem); }
.phi-card p + p { margin-top: var(--sp-2); }

.contact-grid { display: grid; gap: var(--sp-6); }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 0.9fr 1.3fr; gap: var(--sp-7); } }
.contact-detail { display: flex; align-items: center; gap: var(--sp-2); padding-block: var(--sp-2); }
.contact-detail .icon-box { width: 44px; height: 44px; border-radius: var(--radius-sm); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-detail .icon-box svg { width: 18px; height: 18px; color: var(--accent); }
.contact-detail .cd-label { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-faint); }
.contact-detail .cd-value { font-size: 0.95rem; font-weight: 600; }

.field { display: grid; gap: 0.5rem; }
.field label { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-muted); }
.field input, .field textarea, .field select {
  width: 100%;
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
  font-size: 0.95rem;
  min-height: 48px;
  transition: border-color 0.25s;
  color: inherit;
  font-family: inherit;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--gold); }
.field input::placeholder, .field textarea::placeholder { color: var(--fg-faint); }
.form-row { display: grid; gap: var(--sp-2); }
@media (min-width: 560px) { .form-row.two { grid-template-columns: 1fr 1fr; } }
.form-note { font-size: 0.8rem; color: var(--fg-faint); }

/* ---------- Utility ---------- */
.mt-6 { margin-top: var(--sp-6); }
.center-text { text-align: center; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; font-size: 0.8rem; color: var(--fg-faint); margin-bottom: var(--sp-3); }
.breadcrumb a { color: var(--fg-faint); font-weight: 600; transition: color 0.25s; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .sep { color: var(--fg-faint); opacity: 0.5; }
.breadcrumb .current { color: var(--fg-muted); }

/* ============================================================
   DETAIL PAGE (services / conditions / rehab — sidebar layout)
   ============================================================ */
.detail-grid { display: grid; gap: var(--sp-6); align-items: start; }
@media (min-width: 1024px) { .detail-grid { grid-template-columns: 1.6fr 1fr; gap: var(--sp-7); } }
.detail-content > * + * { margin-top: var(--sp-5); }
.detail-content h2 { font-size: clamp(1.4rem, 1.6vw + 1rem, 1.9rem); margin-bottom: var(--sp-2); }
.detail-content > p { color: var(--fg-muted); font-size: 1.02rem; line-height: 1.75; }
.detail-content p a { font-weight: 700; color: var(--fg); text-decoration: underline; text-underline-offset: 0.15em; transition: color 0.25s; }
.detail-content p a:hover { color: var(--gold); }
.detail-list { display: grid; gap: 0.65rem; }
.detail-list li { display: flex; gap: 0.65rem; font-size: 0.98rem; color: var(--fg-muted); line-height: 1.55; }
.detail-list li::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); margin-top: 0.65em; flex-shrink: 0; }
.detail-icon { width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; margin-bottom: var(--sp-4); border: 1px solid var(--line); }
.detail-icon img { width: 100%; height: 100%; object-fit: cover; }
.detail-cta { border: 1px solid var(--gold-soft); border-radius: var(--radius-lg); padding: var(--sp-4); background: radial-gradient(120% 140% at 50% -10%, #1a1200 0%, var(--surface-1) 70%); }
.detail-cta h3 { font-size: 1.15rem; margin-bottom: 0.6rem; }
.detail-cta p { color: var(--fg-muted); margin-bottom: var(--sp-3); }

.detail-sidebar { display: grid; gap: var(--sp-3); align-self: start; }
@media (min-width: 1024px) { .detail-sidebar { position: sticky; top: 110px; } }
.sidebar-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--sp-4); background: var(--surface-1); }
.sidebar-card h3 { font-size: 1.05rem; margin-bottom: var(--sp-3); }
.sidebar-contact-list { display: grid; gap: 0.85rem; }
.sidebar-contact-list a { display: flex; align-items: center; gap: 0.6rem; font-size: 0.88rem; font-weight: 600; color: var(--fg-muted); transition: color 0.25s; }
.sidebar-contact-list a:hover { color: var(--gold); }
.sidebar-contact-list svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; }
.sidebar-related-list { display: grid; gap: 0.2rem; }
.sidebar-related-list a { font-size: 0.88rem; font-weight: 600; color: var(--fg-muted); padding: 0.6rem 0; border-bottom: 1px solid var(--line); transition: color 0.25s; }
.sidebar-related-list a:last-child { border-bottom: none; }
.sidebar-related-list a:hover { color: var(--gold); }

/* ============================================================
   CATEGORY / HUB GRIDS
   ============================================================ */
.condition-grid { display: grid; gap: var(--sp-3); grid-template-columns: 1fr; }
@media (min-width: 640px) { .condition-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .condition-grid { grid-template-columns: repeat(3, 1fr); } }
.condition-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--sp-3); transition: border-color 0.25s, transform 0.3s var(--ease); }
.condition-card:hover { border-color: var(--gold); transform: translateY(-4px); }
.condition-card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.condition-card p { font-size: 0.88rem; color: var(--fg-muted); line-height: 1.5; flex-grow: 1; }
.condition-card .link-arrow { margin-top: var(--sp-2); }

.group-heading { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-3); margin-bottom: var(--sp-3); flex-wrap: wrap; }
.group-heading h2 { font-size: clamp(1.4rem, 1.6vw + 1rem, 1.9rem); }
.group-block + .group-block { margin-top: var(--sp-6); }

/* ============================================================
   LEGAL PAGES
   ============================================================ */
.legal-content { max-width: 54rem; }
.legal-content h2 { font-size: 1.25rem; margin-top: var(--sp-5); margin-bottom: var(--sp-2); }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p { color: var(--fg-muted); line-height: 1.75; margin-bottom: var(--sp-2); }
.legal-content ul { display: grid; gap: 0.5rem; margin: var(--sp-2) 0 var(--sp-3); }
.legal-content li { display: flex; gap: 0.6rem; font-size: 0.95rem; color: var(--fg-muted); line-height: 1.6; }
.legal-content li::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); margin-top: 0.6em; flex-shrink: 0; }

/* <picture> wrappers (scripts/inject-pictures.js) must not sit between an image
   and the frame that sizes it — the img keeps behaving as the frame's child. */
picture { display: contents; }

/* Agency credit (templates/designed-by-avily.html) */
.avily-credit { margin: 0; }
.avily-credit .avily-link { color: inherit; text-decoration: none; }
.avily-credit .avily-link:hover { text-decoration: underline; }
.avily-credit img {
  display: inline-block;
  height: 1em;
  width: auto;
  vertical-align: middle;
  margin: 0 4px;
}
