
/* Keel Movement Clinic: evidence-informed and warm. Limestone ground, slate type, Outfit display
   over Source Serif body; the tap-to-learn body map is the signature, the measured-progress table backs it. */
:root {
  --bg: #EEEAE2; --surface: #FAF8F4; --surface-2: #E3DED3; --line: #D2CBBE;
  --ink: #2E3A46; --ink-soft: #505B66; --heading: #2E3A46;
  --primary: #B8532A; --primary-ink: #FFFFFF; --primary-hover: #974220;
  --accent: #4E6B4C; --accent-ink: #FFFFFF;
  --dark: #2E3A46; --on-dark: #F4F1EA; --on-dark-soft: #C9D0D6;
  --kicker: #4E6B4C; --kicker-on-dark: #B9CDB7; --link: #8F3F1F; --field-border: #827A6C; --star: #B8532A;
  --ph-a: #E3DED3; --ph-b: #DAD4C7; --ph-edge: #827A6C;
  --display: "Outfit", "Segoe UI", system-ui, sans-serif; --body: "Source Serif 4", Georgia, serif;
  --display-weight: 600; --display-lh: 1.08; --display-track: -0.015em; --fs-body: 1.08rem;
  --radius: 10px; --radius-lg: 16px; --btn-radius: 10px; --chip-radius: 10px; --field-radius: 10px; --nav-radius: 8px;
  --btn-font: "Outfit", sans-serif; --btn-weight: 600; --brand-font: "Outfit", sans-serif; --brand-weight: 600;
  --step-bg: #4E6B4C; --step-ink: #FFFFFF; --step-radius: 10px; --ico-bg: #E3DED3; --ico-ink: #4E6B4C;
}
.nav a, .hdr-phone, .menu-btn, .kicker, .eyebrow, .small, .crumbs, label, legend, .chip span, .filters button, .facts, th, .sample, .photo-card, .bm-label { font-family: var(--display); }
.kicker, .eyebrow { font-weight: 600; letter-spacing: 0.01em; }
.eyebrow { color: var(--accent); }

.hero { padding-block: clamp(36px, 5vw, 72px); }
.hero-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.hero-copy { display: grid; gap: 22px; min-width: 0; }
.hero h1 { font-size: clamp(2.6rem, 1.6rem + 3.8vw, 4.4rem); }
.hero-notes { list-style: none; padding: 0; display: grid; gap: 6px; font-family: var(--display); font-weight: 500; }
.hero-notes li { display: flex; gap: 10px; align-items: center; }
.hero-notes svg { width: 20px; height: 20px; color: var(--accent); }

.bodymap { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 24px; display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 24px; align-items: center; min-width: 0; box-shadow: 0 30px 60px -40px rgba(46,58,70,.5); }
.bm-q { grid-column: 1 / -1; font-family: var(--display); font-weight: 600; font-size: 1.35rem; }
.bm-q span { font-weight: 400; color: var(--ink-soft); font-size: 1rem; margin-left: 6px; }
.bm-stage { position: relative; aspect-ratio: 200 / 420; max-height: 460px; justify-self: center; width: 100%; max-width: 230px; }
.figure { width: 100%; height: 100%; display: block; }
.spot { position: absolute; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; border: 2px solid var(--surface); background: var(--accent); cursor: pointer; padding: 0; box-shadow: 0 0 0 3px rgba(78,107,76,.25); transition: transform .15s ease, background-color .15s ease; }
.spot:hover { transform: scale(1.15); }
.spot[aria-pressed="true"] { background: var(--primary); box-shadow: 0 0 0 6px rgba(184,83,42,.28); }
.spot::after { content: ""; position: absolute; inset: -12px; border-radius: 50%; }
.bm-card { display: grid; gap: 6px; align-content: start; min-width: 0; }
.bm-card h2 { font-size: 1.6rem; margin-bottom: 6px; }
.bm-label { font-size: 0.78rem; font-weight: 600; color: var(--accent); letter-spacing: 0.04em; margin-top: 8px; }
.bm-card p:not(.bm-label) { font-size: 0.98rem; }
.bm-visits { margin: 6px 0 10px; }
.bm-card .btn { justify-self: start; }

.approach { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-bottom: 40px; }
.approach article { display: grid; gap: 8px; align-content: start; border-top: 3px solid var(--ink); padding-top: 18px; }
.ap-step { font-family: var(--display); font-weight: 700; color: var(--primary); font-size: 0.95rem; }
.approach p { color: var(--ink-soft); }
.progress-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; display: grid; gap: 16px; }
.pc-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.progress-card td.num { font-family: var(--display); font-weight: 600; }
.progress-card td.num:last-child { color: var(--accent); }

.head-row { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 32px; }
.problems { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.problems a { display: grid; gap: 4px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); height: 100%; }
.problems a:hover { border-color: var(--ink); }
.problems strong { font-family: var(--display); font-size: 1.15rem; }
.problems span { color: var(--ink-soft); font-size: 0.95rem; }

.section--dark .review { border-color: rgba(244,241,234,.2); }
.review blockquote p { font-style: italic; }

.visit-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; display: grid; gap: 14px; }

.cond-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cond { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; display: grid; gap: 4px; align-content: start; scroll-margin-top: 100px; }
.cond h2 { font-size: 1.5rem; margin-bottom: 4px; }
.cond-visits { margin-top: 10px; font-family: var(--display); }

.tr-row { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(24px, 4vw, 56px); align-items: center; scroll-margin-top: 100px; }
.tr-row:nth-child(even) > .photo { order: 2; }

.prov { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: 24px; align-items: start; }
.prov .photo { --ar: 4 / 5 !important; }
.prov h2 { font-size: 1.5rem; }
.prov .role { font-family: var(--display); font-weight: 600; color: var(--accent); }
.prov blockquote { margin: 6px 0 0; font-style: italic; border-left: 3px solid var(--primary); padding-left: 14px; }

.steps--v { grid-template-columns: 1fr; gap: 22px; }
.steps--v > li { grid-template-columns: 46px 1fr; column-gap: 16px; }
.steps--v > li::before { grid-row: span 2; }
.book-split { grid-template-columns: 1.3fr 0.7fr; }
.map-slot { aspect-ratio: 4 / 3; border-radius: var(--radius-lg); background: repeating-linear-gradient(0deg, transparent 0 38px, var(--line) 38px 40px), repeating-linear-gradient(90deg, var(--surface-2) 0 38px, var(--line) 38px 40px); border: 1.5px dashed var(--field-border); display: flex; align-items: flex-end; padding: 12px; }

@media (max-width: 1020px) { .problems, .cond-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 820px) {
  .hero-grid, .approach, .tr-row, .book-split { grid-template-columns: 1fr; }
  .tr-row:nth-child(even) > .photo { order: 0; }
}
@media (max-width: 560px) { .bodymap { grid-template-columns: 1fr; } .bm-stage { max-width: 170px; } .problems, .cond-grid, .prov { grid-template-columns: 1fr; } }

/* ---- Motion: alignment (Keel Movement Clinic) ---- */
@keyframes kl-align { from { opacity: 0; transform: translateY(26px) rotate(-3deg); } to { opacity: 1; transform: none; } }
@keyframes kl-tilt { 0% { transform: rotate(-2.6deg); } 40% { transform: rotate(1.4deg); } 70% { transform: rotate(-.5deg); } 100% { transform: none; } }
@keyframes kl-bubble { 0% { transform: translateX(-32px); } 40% { transform: translateX(18px); } 70% { transform: translateX(-6px); } 100% { transform: none; } }
@keyframes kl-spot { from { transform: scale(0); } }
@keyframes kl-ripple { from { transform: scale(1); opacity: .8; } to { transform: scale(2.8); opacity: 0; } }
.kl-line { left: 6%; right: 6%; bottom: 20px; height: 2px; background: linear-gradient(90deg, transparent, rgba(46, 58, 70, .22) 12% 88%, transparent); }
.kl-line i { position: absolute; left: 50%; top: 50%; width: 112px; height: 18px; margin: -9px 0 0 -56px; border: 1.5px solid rgba(46, 58, 70, .45); border-radius: 9px; background: rgba(250, 248, 244, .95); }
.kl-line i::before { content: ""; position: absolute; left: 50%; top: 2px; bottom: 2px; width: 22px; margin-left: -11px; border-inline: 1.5px solid rgba(46, 58, 70, .4); }
.kl-line i::after { content: ""; position: absolute; left: 50%; top: 3px; width: 16px; height: 9px; margin-left: -8px; border-radius: 50%; background: var(--accent); opacity: .85; }
html.mo .kl-line { animation: kl-tilt 2.6s .4s cubic-bezier(.3, 1.3, .5, 1) both; }
html.mo .kl-line i::after { animation: kl-bubble 2.6s .4s cubic-bezier(.3, 1.3, .5, 1) both; }
html.mo .bodymap { animation: bf-rise .9s .25s cubic-bezier(.2, .7, .2, 1) both; }
html.mo .spot { animation: kl-spot .45s cubic-bezier(.3, 1.6, .5, 1) backwards; animation-delay: calc(var(--i, 0) * 90ms + .7s); transition: transform .2s ease; }
html.mo .spot[aria-pressed="true"]::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--primary); animation: kl-ripple 1.8s ease-out infinite; pointer-events: none; }
html.mo .approach > article { transform-origin: left bottom; }
