/* ============================================================
   Fascial Fitness with Julie — Editorial Wellness
   Cool & calming palette, modern sans, lots of whitespace
   ============================================================ */

:root {
  /* Palette — Sage (default) */
  --bg: #fafaf7;
  --surface: #f3f1ec;
  --ink: #1f2a26;
  --ink-2: #475e57;
  --muted: #8a958f;
  --rule: #dcdcd4;
  --accent: #6b7d6e;          /* sage */
  --accent-deep: #3f4f43;
  --accent-soft: #e6ebe1;
  --highlight: #c8a97e;       /* warm clay accent */

  /* Type */
  --font-display: "Inter Tight", "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, sans-serif;
  --tracking-tight: -0.025em;
  --tracking-display: -0.04em;

  /* Density */
  --pad-section: 160px;
  --pad-x: 64px;
  --gap-block: 48px;

  /* Layout */
  --container: 1440px;
  --radius: 4px;
  --radius-lg: 12px;
}

[data-density="compact"] {
  --pad-section: 96px;
  --pad-x: 48px;
  --gap-block: 32px;
}

[data-density="airy"] {
  --pad-section: 220px;
  --pad-x: 80px;
  --gap-block: 64px;
}

/* Palette variants */
[data-palette="slate"] {
  --bg: #f6f7f9;
  --surface: #eaecf0;
  --ink: #15202b;
  --ink-2: #354b5e;
  --muted: #8693a0;
  --rule: #d5dae0;
  --accent: #5b7891;
  --accent-deep: #2a3e51;
  --accent-soft: #e2e8ef;
  --highlight: #b89669;
}

[data-palette="bone"] {
  --bg: #f8f6f1;
  --surface: #efebe1;
  --ink: #2a261c;
  --ink-2: #5a4f3d;
  --muted: #8e836f;
  --rule: #ddd6c5;
  --accent: #7a8a6b;
  --accent-deep: #3d4a32;
  --accent-soft: #e9ead9;
  --highlight: #b07a5a;
}

[data-typography="serif-mix"] {
  --font-display: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --tracking-display: -0.02em;
}

[data-typography="grotesk"] {
  --font-display: "Space Grotesk", "Inter", sans-serif;
  --font-body: "Space Grotesk", "Inter", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Prevent iOS Safari rubber-band overscroll from revealing a different
     color past the document edges. */
  overscroll-behavior: none;
}
/* Bottom of the document (revealed by iOS overscroll) should match the
   footer's mauve background, not the page's cream. Top is covered by
   the nav, so it doesn't matter visually. */
html { background: #9d7889; }

body {
  min-height: 100vh;
  overflow-x: hidden;
  /* Grid sticky-footer: main grows (1fr), footer is intrinsic. Nav (fixed),
     boxes-layer (absolute), and scripts/styles (display:none) are not grid
     items, so the body's effective grid is just main + footer in 2 rows. */
  display: grid;
  grid-template-rows: 1fr auto;
}
main { display: block; min-width: 0; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img, video { display: block; max-width: 100%; }

/* ───────── Typography ───────── */
.eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.display-xl {
  font-family: var(--font-display);
  font-size: clamp(56px, 9vw, 144px);
  line-height: 0.92;
  letter-spacing: var(--tracking-display);
  font-weight: 500;
}

.display-lg {
  font-family: var(--font-display);
  font-size: clamp(44px, 6.5vw, 96px);
  line-height: 0.96;
  letter-spacing: var(--tracking-display);
  font-weight: 500;
}

.display-md {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.5vw, 64px);
  line-height: 1.02;
  letter-spacing: var(--tracking-display);
  font-weight: 500;
}

.display-sm {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1.1;
  letter-spacing: var(--tracking-tight);
  font-weight: 500;
}

.lede {
  font-size: clamp(18px, 1.4vw, 22px);
  line-height: 1.45;
  color: var(--ink-2);
  letter-spacing: -0.005em;
  font-weight: 400;
  max-width: 60ch;
  text-wrap: pretty;
}

p { text-wrap: pretty; }

/* ───────── Layout ───────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

section { padding: var(--pad-section) 0; }
.tight-top { padding-top: 0; }
.tight-bot { padding-bottom: 0; }

/* ───────── Nav ───────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 22px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: color-mix(in srgb, var(--bg) 75%, transparent);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid color-mix(in srgb, var(--rule) 40%, transparent);
  transition: background .3s, border-color .3s;
}

.nav.transparent {
  background: transparent;
  border-bottom-color: transparent;
}
.nav.transparent .nav-link,
.nav.transparent .brand { color: #fff; }
.nav.transparent .brand-mark { background: rgba(255,255,255,.95); color: #1a1a1a; }
.nav.transparent .nav-cta { background: rgba(255,255,255,.95); color: #1a1a1a; }

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  font-size: 16px;
}
.brand-mark {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  font-family: var(--font-body);
}

.nav-links {
  display: flex;
  gap: clamp(18px, 1.8vw, 28px);
  list-style: none;
}
.nav-link {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink);
  position: relative;
  padding: 4px 0;
  transition: opacity .2s;
}
.nav-link:hover { opacity: .6; }
.nav-link.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: currentColor;
}

.nav-right { display: flex; align-items: center; gap: 16px; }
.nav-cta {
  padding: 9px 18px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  transition: transform .2s, opacity .2s;
}
.nav-cta:hover { opacity: .85; }

/* ───────── Buttons ───────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.005em;
  border-radius: 999px;
  transition: transform .25s ease, opacity .2s, background .2s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: var(--bg);
}
.btn-primary:hover { transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--rule);
}
.btn-ghost:hover { border-color: var(--ink); }
.btn-light {
  background: rgba(255,255,255,.95);
  color: #1a1a1a;
}
.btn-arrow::after {
  content: '→';
  display: inline-block;
  transition: transform .25s;
}
.btn-arrow:hover::after { transform: translateX(4px); }

/* ───────── Hero ───────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media video,
.hero-media .video-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  /* Two layers for cleaner text protection: a subtle full wash at the top to
     calm busy backgrounds, and a stronger gradient near the bottom where the
     headline + sub + CTAs live. */
  background:
    linear-gradient(180deg, rgba(0,0,0,.30) 0%, rgba(0,0,0,.10) 28%, rgba(0,0,0,.10) 45%, rgba(0,0,0,.55) 75%, rgba(0,0,0,.78) 100%),
    radial-gradient(ellipse 80% 60% at 30% 80%, rgba(0,0,0,.30) 0%, transparent 70%);
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 var(--pad-x) 80px;
  max-width: var(--container);
  margin: 0 auto;
  color: #fff;
}
.hero-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,.92);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-shadow: 0 1px 12px rgba(0,0,0,.5);
}
.hero-eyebrow::before {
  content: '';
  width: 32px; height: 1px;
  background: rgba(255,255,255,.7);
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(56px, 9vw, 140px);
  line-height: 0.92;
  letter-spacing: var(--tracking-display);
  font-weight: 500;
  margin-bottom: 32px;
  max-width: 14ch;
  text-wrap: balance;
  text-shadow: 0 2px 32px rgba(0,0,0,.45), 0 0 1px rgba(0,0,0,.35);
}
.hero-sub {
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.45;
  color: rgba(255,255,255,.95);
  max-width: 48ch;
  margin-bottom: 40px;
  text-shadow: 0 1px 16px rgba(0,0,0,.55), 0 1px 2px rgba(0,0,0,.4);
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Hero Variant: SPLIT */
.hero[data-variant="split"] {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: stretch;
  min-height: 100vh;
}
.hero[data-variant="split"] .hero-media {
  position: relative;
  inset: auto;
}
.hero[data-variant="split"] .hero-media::after { display: none; }
.hero[data-variant="split"] .hero-content {
  color: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 64px 80px;
  max-width: none;
  margin: 0;
  background: var(--bg);
}
.hero[data-variant="split"] .hero-eyebrow { color: var(--ink-2); }
.hero[data-variant="split"] .hero-eyebrow::before { background: var(--ink-2); }
.hero[data-variant="split"] .hero-sub { color: var(--ink-2); }
.hero[data-variant="split"] .hero-title { font-size: clamp(48px, 6vw, 96px); }

/* Hero Variant: FRAMED */
.hero[data-variant="framed"] {
  align-items: center;
  padding: 120px var(--pad-x) 60px;
  min-height: 100vh;
  display: block;
}
.hero[data-variant="framed"] .hero-content {
  color: var(--ink);
  text-align: center;
  padding: 0 0 48px;
  margin: 0 auto;
  max-width: 1100px;
  position: relative;
  z-index: 2;
}
.hero[data-variant="framed"] .hero-eyebrow { color: var(--ink-2); justify-content: center; }
.hero[data-variant="framed"] .hero-eyebrow::before,
.hero[data-variant="framed"] .hero-eyebrow::after {
  content: ''; width: 32px; height: 1px; background: var(--ink-2);
}
.hero[data-variant="framed"] .hero-eyebrow::after { content: ''; }
.hero[data-variant="framed"] .hero-sub {
  color: var(--ink-2);
  margin: 0 auto 40px;
  text-align: center;
}
.hero[data-variant="framed"] .hero-actions { justify-content: center; }
.hero[data-variant="framed"] .hero-title { max-width: 18ch; margin-left: auto; margin-right: auto; }
.hero[data-variant="framed"] .hero-media {
  position: relative;
  inset: auto;
  max-width: 1240px;
  margin: 0 auto;
  aspect-ratio: 21/9;
  border-radius: 4px;
  overflow: hidden;
}
.hero[data-variant="framed"] .hero-media::after {
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,.25) 100%);
}

/* Hero scroll cue */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
}
.scroll-cue-line {
  width: 1px; height: 40px;
  background: linear-gradient(180deg, rgba(255,255,255,.7), transparent);
  animation: scrollCue 2.4s infinite ease-out;
  transform-origin: top;
}
@keyframes scrollCue {
  0%,100% { transform: scaleY(.4); opacity: .3; }
  50% { transform: scaleY(1); opacity: 1; }
}
.hero[data-variant="split"] .scroll-cue,
.hero[data-variant="framed"] .scroll-cue { color: var(--ink-2); }
.hero[data-variant="split"] .scroll-cue-line,
.hero[data-variant="framed"] .scroll-cue-line {
  background: linear-gradient(180deg, var(--ink-2), transparent);
}

/* ───────── Video placeholder (when video file isn't loaded) ───────── */
.video-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #2d3a35 0%, #4a5a52 50%, #6b7d6e 100%);
  position: relative;
  overflow: hidden;
}
.video-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(200,169,126,.25), transparent 50%),
    radial-gradient(ellipse at 70% 60%, rgba(255,255,255,.1), transparent 50%);
  animation: drift 18s ease-in-out infinite;
}
.video-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(120deg, transparent 0 80px, rgba(255,255,255,.03) 80px 81px);
  animation: drift 28s ease-in-out infinite reverse;
}
@keyframes drift {
  0%,100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(-3%, -2%) scale(1.05); }
}

.video-placeholder.warm {
  background: linear-gradient(135deg, #4a3a2e 0%, #6b5544 50%, #8a6f5a 100%);
}
.video-placeholder.cool {
  background: linear-gradient(135deg, #2a3742 0%, #3d525f 50%, #5d7585 100%);
}
.video-placeholder.studio {
  background: linear-gradient(135deg, #d8d3c5 0%, #c4bfaf 50%, #b0a895 100%);
}

/* ───────── Section header ───────── */
.section-head {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
  align-items: end;
  margin-bottom: 80px;
}
.section-head-eyebrow { color: var(--ink-2); }
.section-head-title { color: var(--ink); }
.section-head-text { color: var(--ink-2); }

/* ───────── Marquee ───────── */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 26px 0;
  background: var(--bg);
}
.marquee-track {
  display: flex;
  gap: 64px;
  white-space: nowrap;
  animation: scroll 36s linear infinite;
  width: max-content;
}
.marquee-item {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 64px;
}
.marquee-item::after {
  content: '✦';
  color: var(--accent);
  font-size: 20px;
}
@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ───────── Practice cards / grids ───────── */
.practice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
/* 4-up variant — used on the home page where we have 4 "ways to move" cards.
   On smaller tablets, falls back to 2x2. */
.practice-grid.practice-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1180px) {
  .practice-grid.practice-grid--4 { grid-template-columns: repeat(2, 1fr); }
}
.practice-card {
  background: var(--bg);
  padding: 56px 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: background .3s, transform .3s;
  cursor: pointer;
  position: relative;
  min-height: 380px;
}
.practice-card:hover { transform: translateY(-2px); }

/* Distinct tints per home-page card — cool sage (online/calm), warm
   cream (in-studio/welcome), magnolia blush (spin flow/energy). */
.practice-card[data-tint="1"]       { background: #e8eee0; }  /* sage */
.practice-card[data-tint="1"]:hover { background: #dde6d3; }
.practice-card[data-tint="2"]       { background: #efe7d8; }  /* warm cream */
.practice-card[data-tint="2"]:hover { background: #e7dcc7; }
.practice-card[data-tint="3"]       { background: #f0d8de; }  /* magnolia blush */
.practice-card[data-tint="3"]:hover { background: #e7c5cd; }
.practice-card[data-tint="4"]       { background: #f5e3d2; }  /* warm peach (Instagram-inspired) */
.practice-card[data-tint="4"]:hover { background: #ecd3bd; }

/* Top-right card icons — each animated in character with the activity */
.practice-card-icon {
  position: absolute;
  top: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  color: var(--ink);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), color .25s;
}
.practice-card-icon svg { width: 100%; height: 100%; display: block; overflow: visible; }
.practice-card-icon * { transform-box: fill-box; transform-origin: center; }
.practice-card:hover .practice-card-icon { transform: scale(1.18); color: var(--accent-deep); }

/* Zoom — camera body steady, lens "barrel" rocks slightly, red REC dot pulses */
.ff-hpicon-zoom-lens { animation: ff-hpicon-zoom-rock 3.6s ease-in-out infinite; }
.ff-hpicon-zoom-rec  { animation: ff-hpicon-zoom-rec 1.6s ease-in-out infinite; }
@keyframes ff-hpicon-zoom-rock {
  0%, 100% { transform: translateX(0) scale(1);   }
  50%      { transform: translateX(2px) scale(1.04); }
}
@keyframes ff-hpicon-zoom-rec {
  0%, 100% { opacity: 0.35; transform: scale(1);   }
  50%      { opacity: 1;    transform: scale(1.5); fill: var(--highlight); }
}
.practice-card:hover .ff-hpicon-zoom-lens { animation-duration: 1.2s; }
.practice-card:hover .ff-hpicon-zoom-rec  { animation-duration: 0.5s; }

/* Studio — roof drops in, body holds, interior light pulses ("on") */
.ff-hpicon-studio-roof  { animation: ff-hpicon-studio-roof 4.5s ease-in-out infinite; transform-origin: 50% 100%; }
.ff-hpicon-studio-light { animation: ff-hpicon-studio-light 2.6s ease-in-out infinite; }
@keyframes ff-hpicon-studio-roof {
  0%, 100% { transform: translateY(0);   }
  50%      { transform: translateY(-1.5px); }
}
@keyframes ff-hpicon-studio-light {
  0%, 100% { opacity: 0.45; transform: scale(1);   }
  50%      { opacity: 1;    transform: scale(1.6); fill: var(--highlight); }
}
.practice-card:hover .ff-hpicon-studio-roof  { animation-duration: 1.5s; }
.practice-card:hover .ff-hpicon-studio-light { animation-duration: 0.8s; }

/* Bike — wheels rotate (slow), faster on hover. transform-box: fill-box
   + transform-origin: center makes each <g> spin around its own visual
   center (the hub of each wheel). */
.ff-hpicon-bike-wheel {
  transform-box: fill-box;
  transform-origin: center;
  animation: ff-hpicon-bike-spin 4s linear infinite;
}
@keyframes ff-hpicon-bike-spin { to { transform: rotate(360deg); } }
.practice-card:hover .ff-hpicon-bike-wheel { animation-duration: 0.8s; }

/* Instagram — frame breathes, lens stroke pulses */
.ff-hpicon-ig-frame { animation: ff-hpicon-ig-breath 4.5s ease-in-out infinite; }
.ff-hpicon-ig-lens  { animation: ff-hpicon-ig-pulse  3.6s ease-in-out infinite; }
@keyframes ff-hpicon-ig-breath {
  0%, 100% { transform: scale(1);     }
  50%      { transform: scale(1.04);  }
}
@keyframes ff-hpicon-ig-pulse {
  0%, 100% { stroke-width: 1.5; opacity: 0.85; }
  50%      { stroke-width: 2.2; opacity: 1;   }
}
.practice-card:hover .ff-hpicon-ig-frame { animation-duration: 1.4s; }
.practice-card:hover .ff-hpicon-ig-lens  { animation-duration: 0.9s; }

@media (prefers-reduced-motion: reduce) {
  .ff-hpicon-zoom-lens, .ff-hpicon-zoom-rec,
  .ff-hpicon-studio-roof, .ff-hpicon-studio-light,
  .ff-hpicon-bike-wheel-l, .ff-hpicon-bike-wheel-r { animation: none !important; }
  .practice-card:hover .practice-card-icon { transform: scale(1.08); }
}
@media (max-width: 640px) {
  .practice-card-icon { top: 20px; right: 20px; width: 36px; height: 36px; }
}
.practice-card-num {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--ink-2);
  font-feature-settings: 'tnum';
  letter-spacing: 0.04em;
}
.practice-card-title {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.05;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.practice-card-text {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.55;
  flex: 1;
}
.practice-card-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.005em;
}
.practice-card-link::after {
  content: '→';
  transition: transform .25s;
}
.practice-card:hover .practice-card-link::after { transform: translateX(4px); }

/* ───────── Movement library (video grid) ───────── */
.video-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}
.video-tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  aspect-ratio: 4/5;
  cursor: pointer;
}
.video-tile video,
.video-tile .video-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s ease;
}
.video-tile:hover video,
.video-tile:hover .video-placeholder { transform: scale(1.04); }
.video-tile-meta {
  position: absolute;
  left: 20px; right: 20px; bottom: 20px;
  color: #fff;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}
.video-tile::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.6));
  z-index: 1;
}
.video-tile-name {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.video-tile-time {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,.85);
}
.video-tile-tag {
  position: absolute;
  top: 16px; left: 16px;
  z-index: 2;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(8px);
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25);
}

/* span helpers */
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }
.span-12 { grid-column: span 12; }
.tall { aspect-ratio: 3/4; }
.wide { aspect-ratio: 16/10; }

/* ───────── Before/After ───────── */
.beforeafter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: stretch;
}
.ba-card {
  display: flex;
  flex-direction: column;
}
.ba-media {
  aspect-ratio: 4/5;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
}
.ba-media video,
.ba-media .video-placeholder { width: 100%; height: 100%; object-fit: cover; }
.ba-tag {
  position: absolute;
  top: 20px; left: 20px;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(8px);
  padding: 7px 12px;
  border-radius: 0;
  z-index: 2;
}
.ba-tag.after { background: var(--accent-deep); }
.ba-meta { padding: 24px 0 0; display: flex; justify-content: space-between; gap: 24px; }
.ba-name { font-family: var(--font-display); font-size: 22px; font-weight: 500; letter-spacing: -0.015em; }
.ba-detail { color: var(--ink-2); font-size: 14px; line-height: 1.5; max-width: 30ch; }

/* ───────── Pricing / Sessions ───────── */
.session-list {
  border-top: 1px solid var(--rule);
}
.session-row {
  display: grid;
  grid-template-columns: 80px 1fr 1.2fr 220px 80px;
  gap: 32px;
  padding: 32px 0;
  border-bottom: 1px solid var(--rule);
  align-items: center;
  transition: background .25s;
  cursor: pointer;
}
.session-row:hover { background: var(--accent-soft); padding-left: 16px; padding-right: 16px; }
.session-num {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--muted);
  font-feature-settings: 'tnum';
}
.session-name {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.session-desc { color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.session-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  color: var(--ink-2);
}
.session-price {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  color: var(--ink);
}
.session-arrow {
  text-align: right;
  font-size: 18px;
  color: var(--ink);
  transition: transform .25s;
}
.session-row:hover .session-arrow { transform: translateX(6px); }

/* ───────── Schedule (Spin Flow) ───────── */
.schedule {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 0;
  border: 1px solid var(--rule);
}
.schedule-day {
  padding: 28px 24px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--surface);
}
.schedule-day:last-child { border-bottom: none; }
.schedule-day-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.schedule-day-date { font-size: 12px; color: var(--muted); }
.schedule-slots {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--rule);
}
.schedule-slots:last-child { border-bottom: none; }
.schedule-slot {
  flex: 1;
  padding: 24px 20px;
  border-right: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  transition: background .2s;
  position: relative;
}
.schedule-slot:last-child { border-right: none; }
.schedule-slot:hover:not(.empty) { background: var(--accent-soft); }
.schedule-slot.empty { background: var(--surface); cursor: default; }
.schedule-slot-time { font-family: var(--font-display); font-size: 16px; font-weight: 500; }
.schedule-slot-class { font-size: 13px; color: var(--ink-2); }
.schedule-slot-tag {
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-top: 4px;
}
.schedule-slot.full .schedule-slot-tag { color: var(--muted); }

/* ───────── Pull quote / testimonials ───────── */
.pullquote {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 56px);
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 400;
  text-wrap: balance;
  max-width: 22ch;
}
.pullquote-attr {
  font-size: 13px;
  color: var(--ink-2);
  letter-spacing: 0.04em;
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.pullquote-attr::before {
  content: ''; width: 28px; height: 1px; background: var(--ink-2);
}

.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.testimonial {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.testimonial-quote {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--ink);
  font-weight: 400;
  text-wrap: pretty;
}
.testimonial-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--ink-2);
}
.testimonial-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 500;
}

/* ───────── Footer ───────── */
.footer {
  background: #9d7889; /* dusty mauve — pulls from the magnolia palette */
  color: var(--bg);
  padding: 72px var(--pad-x) 32px;
}
.footer-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr 1fr 1.2fr;
  gap: 48px 56px;
  padding-bottom: 40px;
  /* Top-align all columns so the link lists don't stretch to match the
     tall brand column — keeps the footer compact. */
  align-items: start;
}
@media (max-width: 1200px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1.1fr 1fr 1.1fr; gap: 48px; }
}
.footer-col h4 {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin-bottom: 24px;
  font-weight: 500;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.footer-col a { font-size: 14px; color: rgba(255,255,255,.85); transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-logo-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #fff;
  margin-bottom: 18px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .4s cubic-bezier(.2, .8, .2, 1), box-shadow .4s;
}
.footer-logo-circle img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  display: block;
  /* Subtle continuous bob — looks "alive" without being distracting. */
  animation: ff-footer-logo-bob 3.4s ease-in-out infinite;
  transform-origin: 50% 70%;
}
@keyframes ff-footer-logo-bob {
  0%, 100% { transform: translateY(0)    rotate(0);    }
  50%      { transform: translateY(-3px) rotate(-1.5deg); }
}

/* Hover: bigger joyful jump on the dancer, soft white glow on the circle. */
.footer-logo-circle:hover {
  transform: scale(1.05);
  box-shadow: 0 0 0 6px rgba(255,255,255,.18);
}
.footer-logo-circle:hover img {
  animation-name: ff-footer-logo-jump;
  animation-duration: 0.9s;
}
@keyframes ff-footer-logo-jump {
  0%   { transform: translateY(0)    rotate(0);    }
  25%  { transform: translateY(-8px) rotate(-4deg); }
  50%  { transform: translateY(0)    rotate(0);    }
  60%  { transform: translateY(-4px) rotate(3deg);  }
  75%  { transform: translateY(0)    rotate(0);    }
  100% { transform: translateY(0)    rotate(0);    }
}

@media (prefers-reduced-motion: reduce) {
  .footer-logo-circle img { animation: none !important; }
  .footer-logo-circle:hover { transform: scale(1.03); }
}
.footer-brand {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-weight: 500;
  margin-bottom: 16px;
}
.footer-tag { font-size: 14px; color: rgba(255,255,255,.7); max-width: 32ch; line-height: 1.55; }
.footer-bot {
  max-width: var(--container);
  margin: 0 auto;
  padding-top: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 12px;
  color: rgba(255,255,255,.55);
}
/* Divider line sits between the "Love and Health, Julie" sign-off and the
   copyright / credits row underneath. */
.footer-bot-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.18);
}
.footer-bot-meta a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: opacity .2s;
}
.footer-bot-meta a:hover { opacity: .75; }

/* "Love and Health, Julie" — handwritten sign-off, sits above the copyright
   row, right-aligned. "Julie" uses the Sacramento script font. */
.footer-sign {
  display: flex;
  flex-direction: column;
  align-self: flex-end;
  align-items: flex-end;
  line-height: 1;
  gap: 4px;
  color: rgba(255,255,255,.85);
}
.footer-sign-prefix {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: -0.01em;
  font-style: italic;
  font-weight: 400;
  opacity: .85;
}
.footer-sign-name {
  font-family: 'Sacramento', 'Brush Script MT', cursive;
  font-size: 52px;
  /* Generous line-height + padding so the Sacramento descender on the "J"
     isn't clipped by the gradient-text mask. background-clip: text uses the
     content box as the gradient's bounds, so the content box must be tall
     enough to include the entire glyph including its descender. */
  line-height: 1.25;
  padding: 6px 4px 14px 4px;
  color: #fff;
  background: linear-gradient(135deg, #fff 0%, #f3dae1 50%, #fff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transform: rotate(-3deg);
  transform-origin: right bottom;
  margin-top: 2px;
}

@media (max-width: 640px) {
  .footer-bot-meta { flex-direction: column; gap: 6px; }
  .footer-sign { align-self: flex-end; align-items: flex-end; }
  .footer-sign-name { transform: rotate(-2deg); font-size: 42px; }
}

/* ───────── Page transitions ───────── */
.page { animation: pageIn .55s cubic-bezier(.2,.8,.2,1); }
@keyframes pageIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ───────── Animated body diagram ───────── */
.body-diagram {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  max-width: 520px;
  margin: 0 auto;
}
.body-diagram svg { width: 100%; height: 100%; display: block; }
.fascia-zone {
  fill: var(--accent);
  fill-opacity: 0.15;
  stroke: var(--accent-deep);
  stroke-width: 1;
  stroke-dasharray: 3 3;
  cursor: pointer;
  transition: fill-opacity .35s, stroke-width .25s;
}
.fascia-zone:hover, .fascia-zone.active {
  fill-opacity: 0.55;
  stroke-width: 1.5;
  stroke-dasharray: none;
}
.fascia-pulse {
  fill: var(--highlight);
  opacity: 0;
  animation: fpulse 4s infinite ease-in-out;
}
@keyframes fpulse {
  0%, 100% { opacity: 0; transform: scale(.85); transform-origin: center; }
  50% { opacity: .4; transform: scale(1.1); }
}
.body-outline {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ───────── Stat ───────── */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
  border-top: 1px solid var(--rule);
  padding-top: 56px;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: default;
  outline: none;
}
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(48px, 5.5vw, 80px);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 500;
  transition: color .3s, transform .35s cubic-bezier(.2, .8, .2, 1);
  transform-origin: left center;
  display: inline-block;
}
.stat-label {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.4;
  max-width: 22ch;
  transition: color .3s;
}

/* Each stat has a continuous, subtle "alive" animation — and on hover/focus
   the number scales up, tints to the highlight, and the animation accelerates. */
.stat[data-stat="1"] .stat-num { animation: ff-stat-breath 5s ease-in-out infinite; }
.stat[data-stat="2"] .stat-num { animation: ff-stat-tilt   6s ease-in-out infinite; }
.stat[data-stat="3"] .stat-num { animation: ff-stat-bob    5s ease-in-out infinite; }
.stat[data-stat="4"] .stat-num {
  /* Infinity ∞ — a barely-there horizontal sway at rest. Hover speeds it up
     and adds a gentle scale; previously this was a full continuous rotation
     which read as too intense. */
  animation: ff-stat-sway 6s ease-in-out infinite;
  transform-origin: center 60%;
}

@keyframes ff-stat-breath {
  0%, 100% { transform: scale(1);     }
  50%      { transform: scale(1.03);  }
}
@keyframes ff-stat-tilt {
  0%, 100% { transform: rotate(0deg);  }
  50%      { transform: rotate(-1.5deg); }
}
@keyframes ff-stat-bob {
  0%, 100% { transform: translateY(0);    }
  50%      { transform: translateY(-3px); }
}
@keyframes ff-stat-sway {
  0%, 100% { transform: translateX(0)    scale(1);     }
  50%      { transform: translateX(3px)  scale(1.02);  }
}
@keyframes ff-stat-sway-hover {
  0%, 100% { transform: translateX(-5px) scale(1.1);   }
  50%      { transform: translateX(5px)  scale(1.1);   }
}

/* Hover / focus — color shift + scale + animation acceleration */
.stat:hover .stat-num,
.stat:focus-visible .stat-num {
  color: var(--accent-deep);
}
.stat:hover .stat-label,
.stat:focus-visible .stat-label {
  color: var(--ink);
}
.stat:hover[data-stat="1"] .stat-num { animation-duration: 1.4s; }
.stat:hover[data-stat="2"] .stat-num { animation-duration: 1.6s; }
.stat:hover[data-stat="3"] .stat-num { animation-duration: 1.2s; }
.stat:hover[data-stat="4"] .stat-num { animation-duration: 2.4s; }

/* On hover, swap to a larger-amplitude keyframe per stat. */
.stat:hover[data-stat="1"] .stat-num { animation-name: ff-stat-breath-hover; }
.stat:hover[data-stat="2"] .stat-num { animation-name: ff-stat-tilt-hover;   }
.stat:hover[data-stat="3"] .stat-num { animation-name: ff-stat-bob-hover;    }
.stat:hover[data-stat="4"] .stat-num { animation-name: ff-stat-sway-hover;   }
@keyframes ff-stat-breath-hover {
  0%, 100% { transform: scale(1.08); }
  50%      { transform: scale(1.18); }
}
@keyframes ff-stat-tilt-hover {
  0%, 100% { transform: scale(1.1) rotate(-3deg); }
  50%      { transform: scale(1.1) rotate(3deg);  }
}
@keyframes ff-stat-bob-hover {
  0%, 100% { transform: translateY(0) scale(1.1);    }
  50%      { transform: translateY(-8px) scale(1.1); }
}

@media (prefers-reduced-motion: reduce) {
  .stat-num { animation: none !important; }
  .stat:hover .stat-num { transform: scale(1.06); }
}
@media (max-width: 900px) {
  .stat-row { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}
@media (max-width: 480px) {
  .stat-row { grid-template-columns: 1fr; gap: 24px; padding-top: 32px; }
}

/* ───────── Helpers ───────── */
.divider {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 0;
}
.center { text-align: center; }
.flex { display: flex; }
.gap-12 { gap: 12px; }
.gap-24 { gap: 24px; }
.fade-in { animation: fadeIn .7s ease both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); }}

/* Small responsive */
@media (max-width: 1080px) {
  .practice-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials { grid-template-columns: 1fr 1fr; }
  /* Tablet: brand goes full-width, link columns wrap below in 2x2. */
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .session-row { grid-template-columns: 50px 1fr 140px 40px; }
  .session-row > .session-desc { display: none; }
  .section-head { grid-template-columns: 1fr; gap: 24px; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .hero[data-variant="split"] { grid-template-columns: 1fr; }
}

/* ============================================================
   WordPress-only additions — vanilla-JS hooks for components
   that the React prototype handled with inline state.
   ============================================================ */

/* Sessions: selected row */
.session-row.is-selected {
  background: var(--accent-soft);
  padding-left: 16px;
  padding-right: 16px;
}

/* Booking form summary rows */
.ff-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
}
.ff-row-label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.ff-row-value {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
}

/* Booking form fields */
.ff-field { display: flex; flex-direction: column; }
.ff-field > span,
.ff-field-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 8px;
  display: block;
}
.ff-field input,
.ff-field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule);
  padding: 12px 0;
  font-size: 16px;
  font-family: var(--font-body);
  color: var(--ink);
  outline: none;
  transition: border-color .25s;
  resize: none;
}
.ff-field input:focus,
.ff-field textarea:focus { border-bottom-color: var(--ink); }

/* Time chips */
.ff-chip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.ff-chip {
  padding: 14px 10px;
  background: var(--bg);
  border: 1px solid var(--rule);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  transition: all .2s;
}
.ff-chip:hover,
.ff-chip.is-on {
  border-color: var(--ink);
  color: var(--ink);
}
.ff-chip.is-on { background: var(--accent-soft); }

/* FAQ */
.ff-faq-row { border-top: 1px solid var(--rule); }
.ff-faq-row:last-child { border-bottom: 1px solid var(--rule); }
.ff-faq-q {
  width: 100%;
  padding: 28px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.ff-faq-plus {
  font-size: 24px;
  transition: transform .35s ease;
  color: var(--accent-deep);
}
.ff-faq-row.is-open .ff-faq-plus { transform: rotate(45deg); }
.ff-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease, padding .4s ease;
}
.ff-faq-row.is-open .ff-faq-a {
  max-height: 240px;
  padding-bottom: 28px;
}
.ff-faq-a p {
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.6;
  max-width: 64ch;
}

/* Fascia diagram layout */
.ff-fascia-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}
.ff-fascia-grid .body-diagram { max-width: 380px; margin: 0 auto; }
.ff-fascia-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 16px;
  border-top: 1px solid var(--rule);
}
.ff-fascia-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 8px 10px 10px;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  color: var(--ink-2);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
  transition: color .25s, padding-left .25s, background .25s;
  width: 100%;
  cursor: pointer;
  background: transparent;
}
.ff-fascia-btn:hover { color: var(--ink); }
.ff-fascia-btn.is-on {
  color: var(--ink);
  padding-left: 14px;
  background: var(--accent-soft);
}
.ff-fascia-btn.is-related {
  color: var(--ink);
  background: linear-gradient(90deg, var(--accent-soft) 0%, transparent 60%);
}
.ff-fascia-num {
  font-size: 11px;
  color: var(--muted);
  font-family: var(--font-body);
  letter-spacing: 0.06em;
  flex: 0 0 auto;
}
.ff-fascia-group-label {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-top: 20px;
  margin-bottom: 8px;
}
.ff-fascia-group-label:first-of-type { margin-top: 0; }
.ff-fascia-desc {
  margin-top: 20px;
  padding: 14px 16px;
  background: var(--accent-soft);
  border-left: 2px solid var(--accent-deep);
  border-radius: 0 4px 4px 0;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.55;
  max-width: 52ch;
}
.fascia-organ { transition: opacity .35s; }
.fascia-organ:hover { opacity: 0.95 !important; }
.fascia-organ.active circle, .fascia-organ.active ellipse {
  filter: drop-shadow(0 0 6px var(--highlight));
}

@media (max-width: 1080px) {
  .ff-fascia-grid { grid-template-columns: 1fr; }
  .ff-chip-grid   { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   Filler blocks (the "flexible row" library — see inc/fillers.php)
   ============================================================ */

.ff-filler {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ff-filler img,
.ff-filler video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  background: var(--surface);
}
.ff-filler-image img,
.ff-filler-video video {
  aspect-ratio: 16/9;
  object-fit: cover;
}
.ff-filler-caption {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.5;
  letter-spacing: 0.01em;
  max-width: 64ch;
}

/* Pair: two figures side by side */
.ff-filler-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
.ff-filler-pair .ff-filler img,
.ff-filler-pair .ff-filler video {
  aspect-ratio: 4/5;
  object-fit: cover;
}

/* Image + text */
.ff-filler-imgtext {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.ff-filler-imgtext[data-side="right"] .ff-filler-imgtext-media {
  order: 2;
}
.ff-filler-imgtext-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--surface);
  display: block;
}
.ff-filler-imgtext-text {
  display: flex;
  flex-direction: column;
}

@media (max-width: 1080px) {
  .ff-filler-pair    { grid-template-columns: 1fr; }
  .ff-filler-imgtext { grid-template-columns: 1fr; gap: 32px; }
  .ff-filler-imgtext[data-side="right"] .ff-filler-imgtext-media { order: 0; }
}

/* ============================================================
   Dropdown nav (4-item: Practice / Spin Flow / About / Hands On)
   ============================================================ */

.ff-nav-item {
  position: relative;
}
.ff-nav-caret {
  font-size: 9px;
  margin-left: 4px;
  opacity: .55;
  transition: transform .25s, opacity .2s;
  display: inline-block;
}
.ff-nav-item:hover .ff-nav-caret,
.ff-nav-item:focus-within .ff-nav-caret {
  transform: rotate(180deg);
  opacity: 1;
}

.ff-dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: -16px;
  min-width: 240px;
  list-style: none;
  margin: 0;
  padding: 8px;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 6px;
  box-shadow: 0 12px 36px rgba(0,0,0,.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
  z-index: 60;
}
.ff-nav-item:hover > .ff-dropdown,
.ff-nav-item:focus-within > .ff-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity .2s ease, transform .2s ease, visibility 0s;
}
.ff-dropdown li {
  list-style: none;
}
.ff-dropdown a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.005em;
  color: var(--ink-2);
  border-radius: 4px;
  transition: background .15s, color .15s;
}
.ff-dropdown a:hover,
.ff-dropdown a:focus-visible {
  background: var(--accent-soft);
  color: var(--ink);
}
.ff-ext {
  font-size: 11px;
  color: var(--muted);
}

/* Transparent (over home hero) — invert dropdown trigger color, keep panel
   readable since it's its own surface. */
.nav.transparent .ff-nav-caret { color: #fff; }

/* Mobile: collapse to a stacked list (kept simple — no JS toggle yet). */
@media (max-width: 1080px) {
  .nav-links { gap: 18px; flex-wrap: wrap; }
  .ff-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    background: transparent;
    padding: 0 0 8px 12px;
    transition: none;
    min-width: 0;
  }
  .ff-dropdown a { padding: 6px 0; }
  .ff-nav-caret { display: none; }
}

/* ============================================================
   Events page — image + body card layout
   ============================================================ */
.ff-events-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
}
.ff-event-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: start;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--rule);
}
.ff-event-card:last-child { border-bottom: 0; padding-bottom: 0; }
/* Alternate image side for visual rhythm. */
.ff-event-card:nth-child(even) .ff-event-media { order: 2; }
.ff-event-media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  /* Soft tinted background so any letterbox area (when the image's
     aspect ratio doesn't match the container) looks intentional. */
  background: var(--surface);
  /* Container fills the column and caps at a reasonable height so very
     tall portraits don't blow up the row. Images use object-fit: contain
     so they're never cropped. */
  min-height: 360px;
  max-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ff-event-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
/* Placeholder still wants to fill the box for no-image cards. */
.ff-event-media .video-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.ff-event-num {
  position: absolute;
  top: 16px; left: 16px;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(8px);
  padding: 6px 10px;
  border-radius: 999px;
}
.ff-event-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ff-event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.ff-event-loc {
  position: relative;
  padding-left: 32px;
}
.ff-event-loc::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 24px; height: 1px;
  background: var(--ink-2);
  transform: translateY(-50%);
}
.ff-event-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 500;
  color: var(--ink);
  text-wrap: balance;
  margin: 0;
}
.ff-event-time {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
}
.ff-event-desc {
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.6;
  max-width: 56ch;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ff-event-desc p {
  margin: 0;
  /* Reset paragraph margin; we use flex-gap for rhythm between paragraphs. */
}
/* Slightly bigger first paragraph for visual lead-in */
.ff-event-desc p:first-child {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
}
.ff-event-cta { margin-top: 12px; }

@media (max-width: 1080px) {
  .ff-event-card { grid-template-columns: 1fr; gap: 32px; }
  .ff-event-card:nth-child(even) .ff-event-media { order: 0; }
  .ff-event-media { min-height: 280px; max-height: 440px; }
}
@media (max-width: 640px) {
  .ff-event-media { min-height: 240px; max-height: 380px; }
  .ff-event-desc p:first-child { font-size: 16px; }
}

/* ============================================================
   Practice page — image + tinted offering cards
   ============================================================ */
.practice-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.practice-card-v2 {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--rule);
  background: var(--bg);
  transition: transform .25s, box-shadow .25s;
  min-height: 420px;
}

/* ============================================================
   Card badge — Human Garage certified-coach mark
   ============================================================
   Used on the Toronto Human Garage card on the Practice page
   and Book Now page. Sits in the lower-right corner of the
   card body, capped at a sensible width so it never crowds
   the card content. */
.ff-card-badge {
  display: block;
  height: auto;
  pointer-events: none;
  user-select: none;
}
.ff-card-badge--humangarage {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: clamp( 110px, 24%, 160px );
  z-index: 2;
  filter: drop-shadow( 0 2px 4px rgba( 0, 0, 0, .08 ) );
}
@media (max-width: 768px) {
  .ff-card-badge--humangarage {
    right: 12px;
    bottom: 12px;
    width: clamp( 88px, 28%, 120px );
  }
}
.practice-card-v2:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(0,0,0,.06);
}
.practice-card-media {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--surface);
}
.practice-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .8s ease;
}
.practice-card-v2:hover .practice-card-media img { transform: scale(1.04); }
.practice-card-body {
  padding: 40px 36px 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}
/* When there is no image, give the body a bit more breathing room. */
.practice-card-v2:not(:has(.practice-card-media)) .practice-card-body {
  padding-top: 56px;
}
.practice-card-v2 .practice-card-num {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--ink-2);
  text-transform: uppercase;
}
.practice-card-v2 .practice-card-title {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.05;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.practice-card-v2 .practice-card-text {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.55;
  flex: 1;
}
.practice-card-v2 .practice-card-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.practice-card-v2 .practice-card-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}
.practice-card-v2 .practice-card-links .practice-card-link {
  padding: 8px 0;
  border-top: 1px solid var(--rule);
}
.practice-card-v2 .practice-card-links .practice-card-link:first-child {
  border-top-color: transparent;
}
.practice-card-v2 .practice-card-link::after {
  content: '→';
  transition: transform .25s;
}
.practice-card-v2:hover .practice-card-link::after { transform: translateX(4px); }

/* Curated tints — editorial wellness, all in the same value range so they
   harmonize with each other and with sage / slate / bone palettes. The body
   background tints; the image stays full-color above. */
.practice-card-v2[data-tint="1"] { background: #eef0e8; }  /* pale sage */
.practice-card-v2[data-tint="2"] { background: #efe7d8; }  /* warm cream */
.practice-card-v2[data-tint="3"] { background: #e1e6e9; }  /* cool grey-blue */
.practice-card-v2[data-tint="4"] { background: #ead9c7; }  /* soft clay */

/* Slate palette: shift to cool-leaning tints */
[data-palette="slate"] .practice-card-v2[data-tint="1"] { background: #e2e8ef; }
[data-palette="slate"] .practice-card-v2[data-tint="2"] { background: #e8e4d9; }
[data-palette="slate"] .practice-card-v2[data-tint="3"] { background: #d6dde4; }
[data-palette="slate"] .practice-card-v2[data-tint="4"] { background: #e4d8cb; }

/* Bone palette: shift to warm-leaning tints */
[data-palette="bone"] .practice-card-v2[data-tint="1"] { background: #e9ead9; }
[data-palette="bone"] .practice-card-v2[data-tint="2"] { background: #efe5cf; }
[data-palette="bone"] .practice-card-v2[data-tint="3"] { background: #e1ddd1; }
[data-palette="bone"] .practice-card-v2[data-tint="4"] { background: #ecd9c0; }

@media (max-width: 1080px) {
  .practice-cards-grid { grid-template-columns: 1fr; gap: 24px; }
  .practice-card-v2 { min-height: 0; }
}

/* ============================================================
   Auto-injected sound toggle for autoplay videos
   ============================================================ */
.ff-video-sound {
  position: absolute;
  bottom: 18px;
  right: 18px;
  /* Sit above the box editor's overlay (z=5 in edit mode) so the click
     hit-tests to the button, not to the layer. */
  z-index: 50;
  pointer-events: auto;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .2s, transform .2s, border-color .2s;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1;
  padding: 0;
  -webkit-appearance: none;
}
.ff-video-sound:hover {
  background: rgba(0,0,0,.75);
  transform: scale(1.06);
  border-color: rgba(255,255,255,.45);
}
.ff-video-sound svg { width: 20px; height: 20px; display: block; }
.ff-video-sound[aria-pressed="false"] .ff-icon-on  { display: none; }
.ff-video-sound[aria-pressed="true"]  .ff-icon-off { display: none; }

/* On the home hero, push the button up enough to clear the scroll-cue. */
.hero .ff-video-sound { bottom: 24px; right: 24px; }

/* ============================================================
   Spin Flow — split-hero header (portrait video left, text right)
   ============================================================ */
.ff-spin-hero {
  /* Sit below the fixed nav. Section padding is handled by inner. */
  padding: 0;
  background: var(--bg);
}
.ff-spin-hero-inner {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) 1.25fr;
  gap: clamp(48px, 6vw, 96px);
  align-items: center;
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(96px, 12vw, 160px) var(--pad-x) clamp(72px, 10vw, 120px);
  /* Mostly-fills the viewport but never crops too aggressively. */
  min-height: clamp(640px, 92vh, 980px);
}
.ff-spin-hero-media {
  position: relative;
  aspect-ratio: 9/16;
  width: 100%;
  max-height: 80vh;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 24px 60px rgba(0,0,0,.08);
}
.ff-spin-hero-media video,
.ff-spin-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ff-spin-hero-text {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 56ch;
}
.ff-spin-hero-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.ff-spin-kicker {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--ink-2);
  letter-spacing: 0.04em;
}
.ff-spin-hero-title {
  margin: 0;
  text-wrap: balance;
}
.ff-spin-hero-lede {
  margin: 0;
  max-width: 52ch;
}
.ff-spin-hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 16px;
}

@media (max-width: 1080px) {
  .ff-spin-hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    min-height: 0;
  }
  .ff-spin-hero-media {
    aspect-ratio: 4/5;
    max-height: 70vh;
    max-width: 520px;
  }
  .ff-spin-hero-text {
    max-width: 100%;
    text-align: left;
  }
}

/* ============================================================
   Spin Flow — animated pillar icons
   ============================================================ */
.ff-spin-pillar {
  /* No layout shift on hover — just animation tempo changes. */
  --pillar-tempo: 1;
}
.ff-spin-pillar:hover {
  --pillar-tempo: 0.45;  /* speeds up animations on hover */
}
.ff-spin-pillar-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 32px;
  color: var(--accent-deep);
  transition: color .25s, transform .35s cubic-bezier(.2,.8,.2,1);
}
.ff-spin-pillar-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}
.ff-spin-pillar:hover .ff-spin-pillar-icon {
  color: var(--accent);
  transform: translateY(-2px);
}

/* ── Pillar 1 — flowing dashed lines ────────────────────── */
.ff-flow-line {
  stroke-dasharray: 8 6;
  animation: ff-flow-dash calc(3.5s * var(--pillar-tempo, 1)) linear infinite;
}
.ff-flow-2 { animation-delay: -1s; }
.ff-flow-3 { animation-delay: -2s; }
@keyframes ff-flow-dash {
  to { stroke-dashoffset: -28; }
}

/* ── Pillar 2 — audio equalizer ─────────────────────────── */
.ff-eq-bar {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: ff-eq-bounce calc(1.1s * var(--pillar-tempo, 1)) ease-in-out infinite;
}
.ff-eq-1 { animation-duration: calc(1.0s * var(--pillar-tempo, 1)); }
.ff-eq-2 { animation-duration: calc(1.5s * var(--pillar-tempo, 1)); animation-delay: -.2s; }
.ff-eq-3 { animation-duration: calc(1.2s * var(--pillar-tempo, 1)); animation-delay: -.4s; }
.ff-eq-4 { animation-duration: calc(1.35s * var(--pillar-tempo, 1)); animation-delay: -.6s; }
@keyframes ff-eq-bounce {
  0%, 100% { transform: scaleY(0.45); }
  50%      { transform: scaleY(1); }
}

/* ── Pillar 3 — concentric ripples ──────────────────────── */
.ff-ripple {
  transform-box: fill-box;
  transform-origin: center;
  animation: ff-ripple-out calc(2.4s * var(--pillar-tempo, 1)) ease-out infinite;
  opacity: 0;
}
.ff-ripple-1 { animation-delay: 0s; }
.ff-ripple-2 { animation-delay: calc(.8s * var(--pillar-tempo, 1)); }
.ff-ripple-3 { animation-delay: calc(1.6s * var(--pillar-tempo, 1)); }
@keyframes ff-ripple-out {
  0%   { transform: scale(0.55); opacity: 0; }
  10%  { opacity: 0.85; }
  100% { transform: scale(2.3);  opacity: 0; }
}

/* Respect reduced-motion preference. */
@media (prefers-reduced-motion: reduce) {
  .ff-flow-line, .ff-eq-bar, .ff-ripple { animation: none !important; }
  .ff-ripple { opacity: .5; }
}

/* ============================================================
   Spin Flow — gear-section media slot (left column)
   ============================================================ */
.ff-spin-gear-media {
  position: relative;
  aspect-ratio: 4/5;
  width: 100%;
  max-width: 480px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 16px 40px rgba(0,0,0,.07);
}
.ff-spin-gear-media video,
.ff-spin-gear-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 1080px) {
  .ff-spin-gear-media { aspect-ratio: 16/10; max-width: none; }
}

/* ============================================================
   Spin Flow gear list — interactive bike-wheel cell
   ============================================================ */
.ff-gear-wheel-cell { background: transparent; }

.ff-spin-wheel {
  /* Reset button styling */
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  width: 120px;
  height: 120px;
  color: var(--accent-deep);
  transition: color .25s, transform .35s cubic-bezier(.2,.8,.2,1);
  --wheel-tempo: 1;
}
.ff-spin-wheel:hover,
.ff-spin-wheel:focus-visible {
  color: var(--accent);
  transform: scale(1.04);
  --wheel-tempo: 0.25;  /* 4× faster on hover */
  outline: none;
}
.ff-spin-wheel.is-burst { --wheel-tempo: 0.12; }  /* one-shot speed kick on click */
.ff-spin-wheel svg { width: 100%; height: 100%; display: block; overflow: visible; }

.ff-spin-wheel-rotor {
  transform-box: fill-box;
  transform-origin: center;
  animation: ff-wheel-spin calc(8s * var(--wheel-tempo, 1)) linear infinite;
}
@keyframes ff-wheel-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .ff-spin-wheel-rotor { animation: none !important; }
}

/* ============================================================
   Practice page — counter-rotation interactive icon
   (in the "About Fascial Maneuvers" section, left column)
   ============================================================ */
.ff-counter-rotate {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  display: block;
  width: 240px;
  max-width: 100%;
  aspect-ratio: 1;
  color: var(--accent-deep);
  transition: color .25s, transform .35s cubic-bezier(.2,.8,.2,1);
  --cr-tempo: 1;
}
.ff-counter-rotate:hover,
.ff-counter-rotate:focus-visible {
  color: var(--accent);
  transform: scale(1.03);
  --cr-tempo: 0.4;  /* speeds up rings on hover */
  outline: none;
}
.ff-counter-rotate.is-burst { --cr-tempo: 0.18; }  /* click → brief release burst */
.ff-counter-rotate svg { width: 100%; height: 100%; display: block; overflow: visible; }

/* All rings share transform-box so transform-origin: center works in SVG. */
.ff-cr-ring {
  transform-box: fill-box;
  transform-origin: center;
}
.ff-cr-ring--out { animation: ff-rotate-cw  calc(7s  * var(--cr-tempo, 1)) linear infinite; }
.ff-cr-ring--mid { animation: ff-rotate-ccw calc(5.5s * var(--cr-tempo, 1)) linear infinite; }
.ff-cr-ring--in  { animation: ff-rotate-cw  calc(9s  * var(--cr-tempo, 1)) linear infinite; }

@keyframes ff-rotate-cw  { to { transform: rotate(360deg); } }
@keyframes ff-rotate-ccw { to { transform: rotate(-360deg); } }

/* Breath cycle for the centre dot. */
.ff-cr-breath {
  transform-box: fill-box;
  transform-origin: center;
  animation: ff-cr-breath calc(4.6s * var(--cr-tempo, 1)) ease-in-out infinite;
}
@keyframes ff-cr-breath {
  0%, 100% { transform: scale(0.6);  opacity: .85; }
  50%      { transform: scale(1.45); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .ff-cr-ring, .ff-cr-breath { animation: none !important; }
}

/* ============================================================
   Home intro grid — left column spans 2 rows (eyebrow + portrait
   stretch tall), right column row 1 has the quote/body/button,
   right column row 2 has the flowers — they automatically fill
   the empty space beside the bottom of the portrait.
   ============================================================ */
.ff-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  grid-template-areas:
    "left right"
    "left flowers";
  /* Row 1 takes the right-column text height; row 2 absorbs the rest of the
     left column's height (so the flowers cell exactly fills the empty space
     beside the bottom of the portrait). */
  grid-template-rows: auto 1fr;
  column-gap: 96px;
  row-gap: 48px;
  align-items: stretch;
}
.ff-intro-left    { grid-area: left;    align-self: start; }
.ff-intro-right   { grid-area: right;   align-self: start; }
.ff-intro-flowers-cell {
  grid-area: flowers;
  /* Cap the cell so it never stretches further than the actual flower
     image needs — prevents huge empty space below the petals when the
     portrait column is very tall. */
  align-self: start;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  width: 100%;
  aspect-ratio: 5 / 4;
  max-height: 360px;
}
.ff-intro-flowers {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 35% 18%;
  display: block;
}

@media (max-width: 1080px) {
  .ff-intro-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "left"
      "right"
      "flowers";
    grid-template-rows: auto auto auto;
    column-gap: 0;
    row-gap: 40px;
  }
  .ff-intro-flowers-cell { aspect-ratio: 4/3; min-height: 0; }
}

/* ============================================================
   Decorative Meridian Lines — Practice page, "Beyond muscles" section
   Five vertical dashed channels with continuously flowing dashes —
   suggests qi/energy moving along the body's pathways. Pure decoration.
   ============================================================ */
.ff-meridian-lines {
  width: 100%;
  height: 180px;
}
.ff-meridian-lines svg {
  width: 100%;
  height: 100%;
  display: block;
}
.ff-mline {
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 4 8;
  stroke-opacity: 0.75;
  cursor: pointer;
  transition: stroke-width .3s, stroke-opacity .3s, filter .3s;
  animation: ff-mline-flow 4.5s linear infinite;
}
.ff-mline-1 { stroke: #c66e93; }
.ff-mline-2 { stroke: #a04a70; animation-duration: 5.5s; animation-delay: -0.6s; }
.ff-mline-3 { stroke: #c8a97e; animation-duration: 4s;   animation-delay: -1.2s; }
.ff-mline-4 { stroke: #883458; animation-duration: 6s;   animation-delay: -1.8s; }
.ff-mline-5 { stroke: #7d2e4f; animation-duration: 5s;   animation-delay: -2.4s; }
/* Hover: line brightens, thickens, glows, and the flow speeds up dramatically */
.ff-mline:hover {
  stroke-width: 3;
  stroke-opacity: 1;
  filter: drop-shadow(0 0 6px currentColor);
  animation-duration: 1.2s !important;
}
@keyframes ff-mline-flow {
  to { stroke-dashoffset: -24; }
}
@media (prefers-reduced-motion: reduce) {
  .ff-mline { animation: none !important; }
}
@media (max-width: 900px) {
  .ff-meridian-lines { height: 140px; }
}

/* ============================================================
   List rows with animated icons — Benefits / What to Bring blocks
   on the Practice page (dark section)
   ============================================================ */
.ff-listrow-group {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(255,255,255,.18);
}
.ff-listrow {
  display: grid;
  grid-template-columns: 32px 40px 1fr;
  gap: 20px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255,255,255,.18);
}
.ff-listrow-num {
  font-family: var(--font-display);
  font-size: 13px;
  color: rgba(255,255,255,.5);
  letter-spacing: .04em;
}
.ff-listrow-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), color .25s;
  cursor: pointer;
}
.ff-listrow-icon svg { width: 100%; height: 100%; display: block; overflow: visible; }

/* ============================================================
   Site-wide animated-icon hover reactions
   ============================================================
   Any of these icon wrappers, when hovered (directly or via parent
   card), scales up, tints to the warm highlight, and speeds up the
   icon's continuous animation 3-5x. Same treatment regardless of
   page so the language stays consistent.

   Wrappers covered:
     .ff-listrow-icon  — Practice page Benefits / What to Bring rows
     .ff-step-icon     — Step cards (About, Practice release, Book Now)
     .organ-card-icon  — Practice page organ grid
   Parent triggers also covered so hovering anywhere on the parent
   card animates the icon: .ff-step-card, .organ-card. */
.ff-listrow-icon,
.ff-step-icon,
.organ-card-icon {
  transition: transform .35s cubic-bezier(.2,.8,.2,1), color .25s;
}
.ff-listrow-icon { cursor: pointer; }

/* Direct hover on the icon — scale + tint */
.ff-listrow-icon:hover,
.ff-step-icon:hover,
.organ-card-icon:hover {
  transform: scale(1.25);
  color: var(--highlight);
}

/* Parent-card hover — subtler scale, no tint (cards already have own hover) */
.ff-step-card:hover .ff-step-icon,
.organ-card:hover  .organ-card-icon {
  transform: scale(1.12);
}

/* ── Speed up shared-library bicons when their wrapper is hovered ── */
.ff-listrow-icon:hover .ff-bicon-cr-out,
.ff-step-icon:hover    .ff-bicon-cr-out,
.ff-step-card:hover    .ff-bicon-cr-out,
.organ-card-icon:hover .ff-bicon-cr-out,
.organ-card:hover      .ff-bicon-cr-out      { animation-duration: 1.4s; }

.ff-listrow-icon:hover .ff-bicon-cr-mid,
.ff-step-icon:hover    .ff-bicon-cr-mid,
.ff-step-card:hover    .ff-bicon-cr-mid,
.organ-card-icon:hover .ff-bicon-cr-mid,
.organ-card:hover      .ff-bicon-cr-mid      { animation-duration: 1.1s; }

.ff-listrow-icon:hover .ff-bicon-cr-in,
.ff-step-icon:hover    .ff-bicon-cr-in,
.ff-step-card:hover    .ff-bicon-cr-in,
.organ-card-icon:hover .ff-bicon-cr-in,
.organ-card:hover      .ff-bicon-cr-in       { animation-duration: 1.8s; }

.ff-listrow-icon:hover .ff-bicon-cr-breath,
.ff-step-icon:hover    .ff-bicon-cr-breath,
.ff-step-card:hover    .ff-bicon-cr-breath,
.organ-card-icon:hover .ff-bicon-cr-breath,
.organ-card:hover      .ff-bicon-cr-breath   { animation-duration: 1.2s; }

.ff-listrow-icon:hover .ff-bicon-heart-shape,
.ff-step-icon:hover    .ff-bicon-heart-shape,
.ff-step-card:hover    .ff-bicon-heart-shape { animation-duration: 0.55s; }

.ff-listrow-icon:hover .ff-bicon-compass-needle,
.ff-step-icon:hover    .ff-bicon-compass-needle,
.ff-step-card:hover    .ff-bicon-compass-needle { animation-duration: 2.5s; }

.ff-listrow-icon:hover .ff-bicon-sun-rays,
.ff-step-icon:hover    .ff-bicon-sun-rays,
.ff-step-card:hover    .ff-bicon-sun-rays    { animation-duration: 5s, 1s; }

.ff-listrow-icon:hover .ff-bicon-sun-core,
.ff-step-icon:hover    .ff-bicon-sun-core,
.ff-step-card:hover    .ff-bicon-sun-core    { animation-duration: 1s; }

.ff-listrow-icon:hover .ff-bicon-flow-line,
.ff-step-icon:hover    .ff-bicon-flow-line,
.ff-step-card:hover    .ff-bicon-flow-line   { animation-duration: 1.1s; }

.ff-listrow-icon:hover .ff-bicon-ripple-r,
.ff-step-icon:hover    .ff-bicon-ripple-r,
.ff-step-card:hover    .ff-bicon-ripple-r    { animation-duration: 1.1s; }

.ff-listrow-icon:hover .ff-bicon-breath-ring,
.ff-listrow-icon:hover .ff-bicon-breath-core,
.ff-step-icon:hover    .ff-bicon-breath-ring,
.ff-step-icon:hover    .ff-bicon-breath-core,
.ff-step-card:hover    .ff-bicon-breath-ring,
.ff-step-card:hover    .ff-bicon-breath-core { animation-duration: 1.5s; }

.ff-listrow-icon:hover .ff-bicon-wheel-rotor,
.ff-step-icon:hover    .ff-bicon-wheel-rotor,
.ff-step-card:hover    .ff-bicon-wheel-rotor { animation-duration: 2.5s; }

.ff-listrow-icon:hover .ff-bicon-lotus-petals,
.ff-step-icon:hover    .ff-bicon-lotus-petals,
.ff-step-card:hover    .ff-bicon-lotus-petals { animation-duration: 6s; }

.ff-listrow-icon:hover .ff-bicon-eq-bar,
.ff-step-icon:hover    .ff-bicon-eq-bar,
.ff-step-card:hover    .ff-bicon-eq-bar      { animation-duration: 0.4s; }

/* ── Speed up "What to bring" picons (Practice page) ── */
.ff-listrow-icon:hover .ff-picon-clothes-shape    { animation-duration: 0.9s; }
.ff-listrow-icon:hover .ff-picon-water-drop       { animation-duration: 0.7s; }
.ff-listrow-icon:hover .ff-picon-water-highlight  { animation-duration: 0.7s; }
.ff-listrow-icon:hover .ff-picon-eye-shape        { animation-duration: 0.6s; }
.ff-listrow-icon:hover .ff-picon-eye-iris,
.ff-listrow-icon:hover .ff-picon-eye-pupil        { animation-duration: 1.4s; }
.ff-listrow-icon:hover .ff-picon-feet-l,
.ff-listrow-icon:hover .ff-picon-feet-r           { animation-duration: 0.7s; }

/* ── Speed up organ icons (oicons) on hover of card or icon ── */
.organ-card-icon:hover .ff-oicon-liver-body,
.organ-card:hover      .ff-oicon-liver-body      { animation-duration: 1.6s; }
.organ-card-icon:hover .ff-oicon-liver-dot,
.organ-card:hover      .ff-oicon-liver-dot       { animation-duration: 1.2s; }
.organ-card-icon:hover .ff-oicon-lung-l,
.organ-card-icon:hover .ff-oicon-lung-r,
.organ-card:hover      .ff-oicon-lung-l,
.organ-card:hover      .ff-oicon-lung-r          { animation-duration: 1.4s; }
.organ-card-icon:hover .ff-oicon-stomach-body,
.organ-card-icon:hover .ff-oicon-stomach-wave,
.organ-card:hover      .ff-oicon-stomach-body,
.organ-card:hover      .ff-oicon-stomach-wave    { animation-duration: 1.2s; }
.organ-card-icon:hover .ff-oicon-diaphragm-dome,
.organ-card:hover      .ff-oicon-diaphragm-dome  { animation-duration: 1.4s; }
.organ-card-icon:hover .ff-oicon-diaphragm-wave-1,
.organ-card-icon:hover .ff-oicon-diaphragm-wave-2,
.organ-card:hover      .ff-oicon-diaphragm-wave-1,
.organ-card:hover      .ff-oicon-diaphragm-wave-2 { animation-duration: 1.5s; }
.organ-card-icon:hover .ff-oicon-pelvic-bowl,
.organ-card:hover      .ff-oicon-pelvic-bowl     { animation-duration: 1.5s; }
.organ-card-icon:hover .ff-oicon-pelvic-socket-l,
.organ-card-icon:hover .ff-oicon-pelvic-socket-r,
.organ-card:hover      .ff-oicon-pelvic-socket-l,
.organ-card:hover      .ff-oicon-pelvic-socket-r { animation-duration: 1s; }

@media (prefers-reduced-motion: reduce) {
  .ff-listrow-icon:hover,
  .ff-step-icon:hover,
  .organ-card-icon:hover,
  .ff-step-card:hover .ff-step-icon,
  .organ-card:hover  .organ-card-icon { transform: scale(1.08); }
}
.ff-listrow-text {
  font-family: var(--font-display);
  font-size: clamp(17px, 1.5vw, 21px);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

/* Practice-page-scoped icon animations.
   - clothes: gentle sway
   - water:   drop pulse + inner ripple
   - eye:     blink + iris pulse
   - feet:    alternate step forward */
.ff-picon * { transform-box: fill-box; transform-origin: center; }

.ff-picon-clothes-shape { animation: ff-picon-clothes-sway 4.4s ease-in-out infinite; }
@keyframes ff-picon-clothes-sway {
  0%, 100% { transform: rotate(-2deg); }
  50%      { transform: rotate(2deg); }
}

.ff-picon-water-drop      { animation: ff-picon-water-pulse  3.6s ease-in-out infinite; }
.ff-picon-water-highlight { animation: ff-picon-water-shimmer 3.6s ease-in-out infinite; }
@keyframes ff-picon-water-pulse {
  0%, 100% { transform: scale(0.97) translateY(0);   }
  50%      { transform: scale(1.03) translateY(-1px); }
}
@keyframes ff-picon-water-shimmer {
  0%, 100% { opacity: 0.35; transform: scale(1);   }
  50%      { opacity: 0.7;  transform: scale(1.25); }
}

.ff-picon-eye-shape { animation: ff-picon-eye-blink 4.2s ease-in-out infinite; transform-origin: 50% 50%; }
.ff-picon-eye-iris  { animation: ff-picon-eye-look  6s   ease-in-out infinite; }
.ff-picon-eye-pupil { animation: ff-picon-eye-look  6s   ease-in-out infinite; }
@keyframes ff-picon-eye-blink {
  0%, 92%, 100% { transform: scaleY(1); }
  95%           { transform: scaleY(0.08); }
}
@keyframes ff-picon-eye-look {
  0%, 100% { transform: translateX(0); }
  25%      { transform: translateX(-2.5px); }
  60%      { transform: translateX(2.5px); }
}

.ff-picon-feet-l { animation: ff-picon-feet-step 2.6s ease-in-out infinite; }
.ff-picon-feet-r { animation: ff-picon-feet-step 2.6s ease-in-out infinite; animation-delay: -1.3s; }
@keyframes ff-picon-feet-step {
  0%, 100% { transform: translateY(0) rotate(0); opacity: 0.85; }
  50%      { transform: translateY(-3px) rotate(-3deg); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .ff-picon-clothes-shape,
  .ff-picon-water-drop, .ff-picon-water-highlight,
  .ff-picon-eye-shape, .ff-picon-eye-iris, .ff-picon-eye-pupil,
  .ff-picon-feet-l, .ff-picon-feet-r { animation: none !important; }
}

@media (max-width: 640px) {
  .ff-listrow { grid-template-columns: 26px 32px 1fr; gap: 14px; }
  .ff-listrow-icon { width: 32px; height: 32px; }
}

/* ============================================================
   Newsletter hero icon — animated envelope on the Newsletter page
   ============================================================ */
.ff-newsletter-hero {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 56px;
  align-items: center;
}
.ff-newsletter-hero-text { min-width: 0; }
.ff-newsletter-icon {
  width: 100%;
  max-width: 320px;
  margin-left: auto;
  color: var(--accent-deep);
  cursor: pointer;
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.ff-newsletter-icon svg { width: 100%; height: auto; display: block; overflow: visible; }
.ff-newsletter-icon * { transform-box: fill-box; transform-origin: center; }

/* Idle motion — envelope gently floats, letter peeks subtly, heart pulses,
   badge breathes. */
.ff-nl-envelope { animation: ff-nl-float 4.6s ease-in-out infinite; }
.ff-nl-letter,
.ff-nl-line,
.ff-nl-heart { animation: ff-nl-peek 4.6s ease-in-out infinite; }
.ff-nl-heart { animation-name: ff-nl-heart-pulse; animation-duration: 1.8s; }
.ff-nl-badge { animation: ff-nl-badge-pulse 2.4s ease-in-out infinite; transform-origin: center; }
.ff-nl-flap { animation: ff-nl-flap-wiggle 4.6s ease-in-out infinite; transform-origin: 50% 76px; transform-box: view-box; }

@keyframes ff-nl-float {
  0%, 100% { transform: translateY(0)    rotate(0); }
  50%      { transform: translateY(-6px) rotate(-0.8deg); }
}
@keyframes ff-nl-peek {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-3px); }
}
@keyframes ff-nl-heart-pulse {
  0%, 100% { transform: scale(1); opacity: .85; }
  35%      { transform: scale(1.25); opacity: 1; }
  60%      { transform: scale(1); opacity: .85; }
}
@keyframes ff-nl-badge-pulse {
  0%, 100% { transform: scale(1);   }
  50%      { transform: scale(1.15); }
}
@keyframes ff-nl-flap-wiggle {
  0%, 100% { transform: rotateX(0);  }
  50%      { transform: rotateX(8deg); }
}

/* Hover — joyful jump on the envelope, flap swings fully open, letter
   slides UP, heart pumps faster, badge bounces. */
.ff-newsletter-icon:hover { transform: scale(1.05); color: var(--highlight); }
.ff-newsletter-icon:hover .ff-nl-envelope { animation-name: ff-nl-jump;   animation-duration: 0.8s; }
.ff-newsletter-icon:hover .ff-nl-letter,
.ff-newsletter-icon:hover .ff-nl-line,
.ff-newsletter-icon:hover .ff-nl-heart  { animation-name: ff-nl-letter-rise; animation-duration: 0.8s; }
.ff-newsletter-icon:hover .ff-nl-heart  { animation-name: ff-nl-heart-pulse; animation-duration: 0.5s; }
.ff-newsletter-icon:hover .ff-nl-flap   { animation-name: ff-nl-flap-open;   animation-duration: 0.6s; animation-fill-mode: forwards; }
.ff-newsletter-icon:hover .ff-nl-badge  { animation-name: ff-nl-badge-pulse; animation-duration: 0.6s; }
@keyframes ff-nl-jump {
  0%   { transform: translateY(0)    rotate(0);    }
  35%  { transform: translateY(-12px) rotate(-3deg); }
  70%  { transform: translateY(0)    rotate(2deg);  }
  100% { transform: translateY(0)    rotate(0);    }
}
@keyframes ff-nl-letter-rise {
  0%   { transform: translateY(0);   }
  100% { transform: translateY(-14px); }
}
@keyframes ff-nl-flap-open {
  0%   { transform: rotateX(0);    }
  100% { transform: rotateX(-170deg); }
}

@media (prefers-reduced-motion: reduce) {
  .ff-nl-envelope, .ff-nl-letter, .ff-nl-line, .ff-nl-heart, .ff-nl-badge, .ff-nl-flap {
    animation: none !important;
  }
  .ff-newsletter-icon:hover { transform: scale(1.03); }
}
@media (max-width: 900px) {
  .ff-newsletter-hero { grid-template-columns: 1fr; gap: 32px; }
  .ff-newsletter-icon { max-width: 240px; margin: 0 auto; }
}

/* ============================================================
   Class-first callout — Book Now page (above the booking cards)
   ============================================================ */
.ff-class-callout {
  background: linear-gradient(135deg, #f3dae1 0%, #ebcad4 100%);
  /* Tight vertical padding so it reads as a callout strip between the
     booking grid above and the "About Julie" section below. */
  padding: 64px 0;
  margin: 0;
}
.ff-class-callout-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: 0 24px;
}
.ff-class-callout-eyebrow {
  color: #7d2e4f;
  margin-bottom: 18px;
}
.ff-class-callout-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #5e213a;
  margin-bottom: 16px;
  text-wrap: balance;
}
.ff-class-callout-text {
  color: #6f2945;
  font-size: 17px;
  line-height: 1.55;
  max-width: 54ch;
  margin: 0 auto 28px;
}
.ff-class-callout-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.ff-class-callout-ghost {
  border-color: #7d2e4f;
  color: #5e213a;
}
.ff-class-callout-ghost:hover {
  background: rgba(125, 46, 79, .08);
}

@media (max-width: 640px) {
  .ff-class-callout { padding: 40px 0; }
}

/* ============================================================
   Booking grid — Book Now page
   ============================================================ */
.booking-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.booking-card {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 40px 36px 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.booking-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(0,0,0,.06);
  border-color: var(--accent-deep);
}
.booking-card.is-highlight {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.booking-card.is-highlight .booking-card-eyebrow,
.booking-card.is-highlight .booking-card-meta { color: rgba(255,255,255,.65); }
.booking-card.is-highlight .booking-card-desc { color: rgba(255,255,255,.8); }
.booking-card.is-highlight .booking-card-title { color: #fff; }
.booking-card.is-highlight .booking-card-cta {
  background: var(--highlight);
  color: var(--ink);
  border-color: var(--highlight);
}
.booking-card-flag {
  position: absolute;
  top: 18px;
  right: 18px;
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--highlight);
  padding: 5px 10px;
  border-radius: 999px;
}
.booking-card-eyebrow {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.booking-card-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: -0.018em;
  text-wrap: balance;
}
.booking-card-desc {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.6;
  flex: 1;
}
.booking-card-meta {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--ink-2);
  letter-spacing: 0.02em;
  padding-top: 8px;
  border-top: 1px solid var(--rule);
}
.booking-card.is-highlight .booking-card-meta { border-top-color: rgba(255,255,255,.18); }
.booking-card-cta {
  align-self: flex-start;
  margin-top: 8px;
}

@media (max-width: 900px) {
  .booking-grid { grid-template-columns: 1fr; gap: 20px; }
  .booking-card { padding: 28px 24px 24px; }
}

/* ============================================================
   Practice-card-v2 corner icons (Practice page, "Classes" grid)
   ============================================================ */
.practice-card-v2 { position: relative; }
.practice-card-v2-icon {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 44px;
  height: 44px;
  color: var(--ink);
  z-index: 2;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), color .25s;
  pointer-events: none;
}
.practice-card-v2-icon svg { width: 100%; height: 100%; display: block; overflow: visible; }
.practice-card-v2-icon * { transform-box: fill-box; transform-origin: center; }
.practice-card-v2:hover .practice-card-v2-icon {
  transform: scale(1.18);
  color: var(--accent-deep);
}

/* — Instagram — frame gently breathes, lens pulses, status dot blinks */
.ff-ppicon-ig-frame { animation: ff-ppicon-ig-breath 4.5s ease-in-out infinite; }
.ff-ppicon-ig-lens  { animation: ff-ppicon-ig-pulse  3.6s ease-in-out infinite; }
@keyframes ff-ppicon-ig-breath {
  0%, 100% { transform: scale(1);     }
  50%      { transform: scale(1.05);  }
}
@keyframes ff-ppicon-ig-pulse {
  0%, 100% { stroke-width: 1.6; opacity: 0.8; }
  50%      { stroke-width: 2.4; opacity: 1;   }
}
.practice-card-v2:hover .ff-ppicon-ig-frame { animation-duration: 1.4s; }
.practice-card-v2:hover .ff-ppicon-ig-lens  { animation-duration: 0.9s; }

/* — Zoom 1:1 — camera body steady, lens barrel rocks, recording dot pulses */
.ff-ppicon-zoom-lens { animation: ff-ppicon-zoom-rock 3.6s ease-in-out infinite; }
@keyframes ff-ppicon-zoom-rock {
  0%, 100% { transform: translateX(0)   scale(1);    }
  50%      { transform: translateX(2px) scale(1.04); }
}
.practice-card-v2:hover .ff-ppicon-zoom-lens { animation-duration: 1.2s; }

/* — Clock — minute hand sweeps continuously, hour hand creeps slowly */
.ff-ppicon-clock-min  { animation: ff-ppicon-clock-sweep 10s linear infinite; transform-origin: 20px 20px; transform-box: view-box; }
.ff-ppicon-clock-hour { animation: ff-ppicon-clock-sweep 120s linear infinite; transform-origin: 20px 20px; transform-box: view-box; }
@keyframes ff-ppicon-clock-sweep { to { transform: rotate(360deg); } }
.practice-card-v2:hover .ff-ppicon-clock-min  { animation-duration: 2.5s; }
.practice-card-v2:hover .ff-ppicon-clock-hour { animation-duration: 30s; }

/* — Studio — roof breathes, interior light pulses warm */
.ff-ppicon-studio-roof  { animation: ff-ppicon-studio-roof 4.6s ease-in-out infinite; transform-origin: 50% 100%; }
.ff-ppicon-studio-light { animation: ff-ppicon-studio-light 2.8s ease-in-out infinite; }
@keyframes ff-ppicon-studio-roof {
  0%, 100% { transform: translateY(0);     }
  50%      { transform: translateY(-1.5px);}
}
@keyframes ff-ppicon-studio-light {
  0%, 100% { opacity: 0.4; transform: scale(1);   }
  50%      { opacity: 1;   transform: scale(1.6); fill: var(--highlight); }
}
.practice-card-v2:hover .ff-ppicon-studio-roof  { animation-duration: 1.5s; }
.practice-card-v2:hover .ff-ppicon-studio-light { animation-duration: 0.9s; }

@media (prefers-reduced-motion: reduce) {
  .ff-ppicon-ig-frame, .ff-ppicon-ig-lens,
  .ff-ppicon-zoom-lens,
  .ff-ppicon-clock-min, .ff-ppicon-clock-hour,
  .ff-ppicon-studio-roof, .ff-ppicon-studio-light { animation: none !important; }
  .practice-card-v2:hover .practice-card-v2-icon { transform: scale(1.08); }
}
@media (max-width: 640px) {
  .practice-card-v2-icon { top: 18px; right: 18px; width: 36px; height: 36px; }
}

/* ============================================================
   Organ grid — magnolia-tinted cards on the Practice page
   ============================================================ */
.organ-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.organ-card {
  --organ-bg: #f0d4d8;
  --organ-fg: #8a2e54;
  background: var(--organ-bg);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 22px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform .25s, box-shadow .25s;
  min-height: 280px;
  position: relative;
  overflow: hidden;
}
.organ-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(120, 40, 70, .12);
}
.organ-card-icon {
  width: 40px;
  height: 40px;
  color: var(--organ-fg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.organ-card-icon svg { width: 100%; height: 100%; display: block; }
.organ-card-name {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--organ-fg);
}
.organ-card-fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 2px;
}
.organ-card-label {
  display: block;
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--organ-fg);
  opacity: .7;
  margin-bottom: 3px;
}
.organ-card-text {
  display: block;
  color: var(--ink);
  font-size: 13.5px;
  line-height: 1.45;
}

/* ── Organ icon animations — anatomically truthful, gentle motion ──
   Each animation is paused by default and runs on hover/focus of the
   parent card. Reduced-motion preference stops all of them. */
.ff-oicon { width: 100%; height: 100%; display: block; overflow: visible; }
.ff-oicon * { transform-box: fill-box; transform-origin: center; }

/* Liver — slow filtration: body shimmers, dot pulses through */
.ff-oicon-liver-body { animation: ff-oicon-liver-shimmer 5s ease-in-out infinite; }
.ff-oicon-liver-dot  { animation: ff-oicon-liver-flow    3.6s ease-in-out infinite; }
@keyframes ff-oicon-liver-shimmer {
  0%, 100% { opacity: 0.85; }
  50%      { opacity: 1; }
}
@keyframes ff-oicon-liver-flow {
  0%   { transform: translate(0, 0) scale(1);   opacity: .8; }
  40%  { transform: translate(8px, 4px) scale(1.3); opacity: 1; }
  70%  { transform: translate(14px, 6px) scale(.9);  opacity: .5; }
  100% { transform: translate(0, 0) scale(1);   opacity: .8; }
}

/* Lung — symmetric inflate/deflate breath cycle */
.ff-oicon-lung-l, .ff-oicon-lung-r {
  animation: ff-oicon-lung-breathe 4.2s ease-in-out infinite;
  transform-origin: 50% 20%; /* anchor at top so they expand outward & down */
}
.ff-oicon-lung-l { transform-origin: 100% 20%; }
.ff-oicon-lung-r { transform-origin: 0% 20%; }
@keyframes ff-oicon-lung-breathe {
  0%, 100% { transform: scale(0.92); opacity: 0.85; }
  50%      { transform: scale(1.06); opacity: 1; }
}

/* Stomach — gentle peristalsis: body squeezes, wave dot travels through */
.ff-oicon-stomach-body { animation: ff-oicon-stomach-churn 3.6s ease-in-out infinite; }
.ff-oicon-stomach-wave { animation: ff-oicon-stomach-wave 3.6s ease-in-out infinite; }
@keyframes ff-oicon-stomach-churn {
  0%, 100% { transform: scaleX(1)    scaleY(1); }
  35%      { transform: scaleX(0.95) scaleY(1.04); }
  65%      { transform: scaleX(1.04) scaleY(0.97); }
}
@keyframes ff-oicon-stomach-wave {
  0%   { transform: translate(0, 0);    opacity: 0;   }
  20%  { transform: translate(2px, -2px); opacity: .8; }
  60%  { transform: translate(12px, 4px); opacity: .6; }
  90%  { transform: translate(16px, 2px); opacity: 0;   }
  100% { transform: translate(16px, 2px); opacity: 0;   }
}

/* Diaphragm — dome rises and falls; waves drift sideways */
.ff-oicon-diaphragm-dome { animation: ff-oicon-diaphragm-breath 4.6s ease-in-out infinite; }
.ff-oicon-diaphragm-wave-1 { animation: ff-oicon-diaphragm-drift 5s ease-in-out infinite; }
.ff-oicon-diaphragm-wave-2 { animation: ff-oicon-diaphragm-drift 5s ease-in-out infinite; animation-delay: -2.5s; }
@keyframes ff-oicon-diaphragm-breath {
  0%, 100% { transform: translateY(2px) scaleY(0.96); }
  50%      { transform: translateY(-2px) scaleY(1.05); }
}
@keyframes ff-oicon-diaphragm-drift {
  0%   { transform: translateX(-2px); opacity: 0.2; }
  50%  { transform: translateX(2px);  opacity: 0.7; }
  100% { transform: translateX(-2px); opacity: 0.2; }
}

/* Pelvic — grounded breath: hip sockets pulse alternately, bowl steady */
.ff-oicon-pelvic-bowl     { animation: ff-oicon-pelvic-root 5s ease-in-out infinite; }
.ff-oicon-pelvic-socket-l { animation: ff-oicon-pelvic-glow 3.2s ease-in-out infinite; fill: currentColor; fill-opacity: 0; }
.ff-oicon-pelvic-socket-r { animation: ff-oicon-pelvic-glow 3.2s ease-in-out infinite; animation-delay: -1.6s; fill: currentColor; fill-opacity: 0; }
@keyframes ff-oicon-pelvic-root {
  0%, 100% { transform: scaleY(0.98); }
  50%      { transform: scaleY(1.02); }
}
@keyframes ff-oicon-pelvic-glow {
  0%, 100% { fill-opacity: 0;   transform: scale(1);   }
  50%      { fill-opacity: 0.45; transform: scale(1.15); }
}

/* Thyroid — butterfly wings flutter alternately */
.ff-oicon-thyroid-l { animation: ff-oicon-thyroid-flutter-l 3.2s ease-in-out infinite; transform-origin: 70% 60%; }
.ff-oicon-thyroid-r { animation: ff-oicon-thyroid-flutter-r 3.2s ease-in-out infinite; transform-origin: 30% 60%; }
@keyframes ff-oicon-thyroid-flutter-l {
  0%, 100% { transform: scaleX(1)   scaleY(1);    }
  50%      { transform: scaleX(0.92) scaleY(1.04); }
}
@keyframes ff-oicon-thyroid-flutter-r {
  0%, 100% { transform: scaleX(1)   scaleY(1);    }
  50%      { transform: scaleX(0.92) scaleY(1.04); }
}

/* Kidneys — gentle alternating filtration breath */
.ff-oicon-kidneys-l { animation: ff-oicon-kidneys-breath 4s ease-in-out infinite; }
.ff-oicon-kidneys-r { animation: ff-oicon-kidneys-breath 4s ease-in-out infinite; animation-delay: -2s; }
@keyframes ff-oicon-kidneys-breath {
  0%, 100% { transform: scale(1);    opacity: 0.9; }
  50%      { transform: scale(1.05); opacity: 1;   }
}

/* Heart — classic heartbeat */
.ff-oicon-heart-shape { animation: ff-oicon-heart-beat 1.2s ease-in-out infinite; transform-origin: center; }
@keyframes ff-oicon-heart-beat {
  0%, 100% { transform: scale(0.96); }
  15%      { transform: scale(1.08); }
  30%      { transform: scale(0.98); }
  45%      { transform: scale(1.04); }
}

/* Bladder — slow soft pulse */
.ff-oicon-bladder-body { animation: ff-oicon-bladder-pulse 4.6s ease-in-out infinite; }
@keyframes ff-oicon-bladder-pulse {
  0%, 100% { transform: scale(0.98); }
  50%      { transform: scale(1.03); }
}

@media (prefers-reduced-motion: reduce) {
  .ff-oicon-liver-body, .ff-oicon-liver-dot,
  .ff-oicon-lung-l, .ff-oicon-lung-r,
  .ff-oicon-stomach-body, .ff-oicon-stomach-wave,
  .ff-oicon-diaphragm-dome, .ff-oicon-diaphragm-wave,
  .ff-oicon-pelvic-bowl, .ff-oicon-pelvic-socket,
  .ff-oicon-thyroid-l, .ff-oicon-thyroid-r,
  .ff-oicon-kidneys-l, .ff-oicon-kidneys-r,
  .ff-oicon-heart-shape,
  .ff-oicon-bladder-body {
    animation: none !important;
  }
}

@media (max-width: 1180px) {
  .organ-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 960px) {
  .organ-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .organ-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .organ-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .organ-card { padding: 18px 16px 20px; min-height: 240px; }
  .organ-card-name { font-size: 19px; }
}
@media (max-width: 480px) {
  .organ-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Box editor — video media inside boxes
   ============================================================
   The companion JS (initBoxVideoFit in main.js) measures each
   box-video's native dimensions on `loadedmetadata` and writes
   `aspect-ratio: W / H; height: auto !important` straight onto
   the box inline. That overrides the box editor's authored pixel
   height, so the box scales fluidly with viewport width while
   the video stays in its exact native aspect — no letterboxing
   and no cropping. `object-fit: cover` is a safe fallback during
   the brief window before metadata loads. */
.ff-box--video video {
  object-fit: cover;
  background: transparent;
}

/* ============================================================
   Home page — testimonial section (Margaret R.)
   ============================================================
   Quote text + optional client video, native to the section (no
   box-editor box). Desktop: quote left, video right, both
   centered vertically. Mobile: stack — quote on top, video below. */
.ff-home-testimonial {
  padding-top: clamp( 60px, 6vh, 100px );
  padding-bottom: clamp( 60px, 6vh, 100px );
}
.ff-home-testimonial-grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas: "text";
  gap: 40px;
  align-items: center;
}
.ff-home-testimonial.has-video .ff-home-testimonial-grid {
  /* Fixed-share fractional units (no minmax-to-zero) so the text
     column always claims its share even if its content briefly
     measures empty during JS migration. */
  grid-template-columns: 1.4fr 1fr;
  grid-template-areas: "text video";
  gap: clamp( 40px, 6vw, 96px );
}
.ff-home-testimonial-text  { grid-area: text;  min-width: 0; color: var(--ink); }
.ff-home-testimonial-video { grid-area: video; min-width: 0; }
.ff-home-testimonial-text .eyebrow      { margin-bottom: 18px; }
.ff-home-testimonial-text .pullquote    { color: var(--ink); }
.ff-home-testimonial-text .pullquote-attr { margin-top: 22px; }
.ff-home-testimonial-video {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin-inline: auto;
  border-radius: 14px;
  overflow: hidden;
  background: #1a1a1a;
  /* Aspect-ratio updated at runtime by JS from the video's natural
     dimensions (see initTestimonialVideo). Fallback to 9/16 portrait. */
  aspect-ratio: var( --ff-testimonial-ar, 9 / 16 );
  box-shadow: 0 14px 40px rgba( 0, 0, 0, .12 );
}
.ff-home-testimonial-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 768px) {
  .ff-home-testimonial.has-video .ff-home-testimonial-grid {
    /* Stack: quote on top, video below. */
    grid-template-columns: 1fr;
    grid-template-areas: "text" "video";
    gap: 32px;
  }
  .ff-home-testimonial-video { max-width: 320px; }
}

/* ============================================================
   Generic media-slot system
   ============================================================
   Drop `<div class="ff-media-slot"></div>` anywhere in a section
   template, and the JS in main.js (initBoxMediaAdoption) will
   automatically adopt the nearest non-decorative box-editor
   image/video into the slot — so authors can keep using the
   box editor, but the rendered media becomes a native part of
   the section's flow (no body-Y anchoring, no bleed, no
   viewport-dependent overlap).
   ============================================================ */
.ff-media-slot {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba( 0, 0, 0, .15 );
  background: rgba( 0, 0, 0, .04 );
}
/* Empty slots collapse so an authoring placeholder doesn't
   leave blank space when no media has been adopted. */
.ff-media-slot:empty {
  display: none;
}
.ff-media-slot img,
.ff-media-slot video {
  display: block;
  width: 100%;
  height: auto;
}
/* Optional shape hints — overrideable by the slot's modifier
   class. Defaults to natural aspect. */
.ff-media-slot--landscape img,
.ff-media-slot--landscape video {
  aspect-ratio: 16 / 9;
  height: 100%;
  object-fit: cover;
}
.ff-media-slot--portrait img,
.ff-media-slot--portrait video {
  aspect-ratio: 9 / 16;
  height: 100%;
  object-fit: cover;
}
.ff-media-slot--square img,
.ff-media-slot--square video {
  aspect-ratio: 1 / 1;
  height: 100%;
  object-fit: cover;
}

/* Section-head right column when it hosts a media slot — stack
   slot above the lede with breathing room. */
.section-head-side {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ============================================================
   Generic "quote section" — tight vertical padding for sections
   whose only content is a pull-quote (eyebrow + quote + attr).
   The theme's default `section { padding: var(--pad-section) 0 }`
   leaves 160px above and 160px below — way too much for a single
   line of attributed quote. Use this class to dial it down. */
.ff-quote-section {
  padding-top: clamp( 60px, 6vh, 100px );
  padding-bottom: clamp( 60px, 6vh, 100px );
}

/* Spin Flow — "What you'll need" section: media slot stacked
   above the gear list in the right column. */
.ff-spin-gear-side {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.ff-spin-gear-side .ff-media-slot { margin-bottom: 0; }

/* ============================================================
   Contact page hero — sonar-style pulse rings + heart
   ============================================================
   Concentric rings expand outward from a beating heart in
   staggered waves — reads as a message radiating out and
   being received. Hidden on mobile so the title and form
   stay in focus. */
.ff-contact-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp( 32px, 5vw, 80px );
  align-items: center;
}
.ff-contact-hero-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var( --ink );
  width: 100%;
  max-width: 360px;
  margin-inline: auto;
}
.ff-contact-pulse {
  width: 100%;
  height: auto;
  overflow: visible;
}
.ff-contact-pulse .ff-pulse-rings circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  transform-origin: 100px 100px;
  transform-box: fill-box;
  opacity: 0;
}
.ff-contact-pulse .ff-pulse-rings circle:nth-child(1) {
  animation: ff-contact-ring 4s ease-out infinite;
}
.ff-contact-pulse .ff-pulse-rings circle:nth-child(2) {
  animation: ff-contact-ring 4s ease-out 1s infinite;
}
.ff-contact-pulse .ff-pulse-rings circle:nth-child(3) {
  animation: ff-contact-ring 4s ease-out 2s infinite;
}
.ff-contact-pulse .ff-pulse-rings circle:nth-child(4) {
  animation: ff-contact-ring 4s ease-out 3s infinite;
}
.ff-contact-pulse .ff-pulse-heart {
  transform-origin: 100px 100px;
  transform-box: fill-box;
  animation: ff-contact-heart 1.4s ease-in-out infinite;
  filter: drop-shadow( 0 4px 12px color-mix( in srgb, currentColor 30%, transparent ) );
}
.ff-contact-hero-icon:hover .ff-pulse-rings circle {
  animation-duration: 2.2s;
}
.ff-contact-hero-icon:hover .ff-pulse-heart {
  animation-duration: .9s;
}

@keyframes ff-contact-ring {
  0%   { transform: scale( .35 ); opacity: .85; stroke-width: 3; }
  60%  { opacity: .35; stroke-width: 1.5; }
  100% { transform: scale( 2.6 ); opacity: 0; stroke-width: .6; }
}
@keyframes ff-contact-heart {
  0%, 100% { transform: scale( 1 ); }
  20%      { transform: scale( 1.08 ); }
  40%      { transform: scale( .98 ); }
  60%      { transform: scale( 1.04 ); }
}

@media (prefers-reduced-motion: reduce) {
  .ff-contact-pulse .ff-pulse-rings circle,
  .ff-contact-pulse .ff-pulse-heart {
    animation: none;
  }
  .ff-contact-pulse .ff-pulse-rings circle:nth-child(1) { opacity: .6; transform: scale( 1.4 ); }
  .ff-contact-pulse .ff-pulse-rings circle:nth-child(2) { opacity: .35; transform: scale( 1.9 ); }
  .ff-contact-pulse .ff-pulse-rings circle:nth-child(3) { opacity: .15; transform: scale( 2.4 ); }
  .ff-contact-pulse .ff-pulse-rings circle:nth-child(4) { opacity: 0; }
}

@media (max-width: 768px) {
  .ff-contact-hero-inner { grid-template-columns: 1fr; }
  .ff-contact-hero-icon  { display: none; }
}

/* ============================================================
   Practice page — "Anatomy in motion" fascia feature
   ============================================================
   Heading + video, side-by-side on wide screens, stacked on
   narrow. Replaces the legacy interactive fascia diagram. */
.ff-fascia-feature-inner {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp( 40px, 6vw, 96px );
  align-items: center;
}
.ff-fascia-feature-text .eyebrow { margin-bottom: 20px; color: var( --ink-2 ); }
.ff-fascia-feature-title {
  font-weight: 500;
  letter-spacing: -0.02em;
  text-wrap: balance;
  color: var( --ink );
}
.ff-fascia-feature-video {
  position: relative;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: #1a1a1a;
  box-shadow: 0 14px 40px rgba( 0, 0, 0, .14 );
}
.ff-fascia-feature-video video {
  display: block;
  width: 100%;
  height: auto;
  /* Aspect-ratio JS (initBoxVideoFit) sets a precise ratio once
     metadata loads. Fallback before that prevents layout jump. */
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
@media (max-width: 768px) {
  .ff-fascia-feature-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ============================================================
   Mobile / tablet breakpoints
   - 900px: tablet & smaller — switch to hamburger nav, stack
            most 2-col layouts
   - 640px: phone — tighten paddings, dial down display type,
            single-column everything
   ============================================================ */

/* Hamburger toggle (hidden on desktop) */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  z-index: 60;
}
.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.nav.transparent .nav-toggle-bar { background: #fff; }
body.ff-nav-open .nav-toggle-bar { background: var(--ink); }
body.ff-nav-open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.ff-nav-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
body.ff-nav-open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Drawer (hidden on desktop) */
.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 49;
  background: var(--bg);
  transform: translateY(-100%);
  transition: transform .35s ease;
  overflow-y: auto;
  visibility: hidden;
  padding: 96px 24px 48px;
}
.nav-drawer[aria-hidden="false"] {
  transform: translateY(0);
  visibility: visible;
}
.nav-drawer-inner { max-width: 480px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; }
.nav-drawer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.nav-drawer-links > li { border-bottom: 1px solid var(--rule); }
.nav-drawer-link {
  display: block;
  padding: 18px 0 12px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.018em;
  color: var(--ink);
}
.nav-drawer-link.active { color: var(--accent-deep); }
.nav-drawer-sublinks {
  list-style: none;
  margin: 0 0 16px;
  padding: 0 0 0 4px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nav-drawer-sublinks a {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--ink-2);
  padding: 6px 0;
}
.nav-drawer-cta { align-self: flex-start; margin-top: 24px; }
body.ff-nav-open { overflow: hidden; }

@media (max-width: 900px) {
  /* Force the body to fill exactly the viewport when content is short,
     and grow with content when long. Combined with main flex:1, the
     footer always lands flush at the viewport / body bottom. */
  html, body { height: auto; }
  body { min-height: 100vh !important; min-height: 100dvh !important; }

  /* Mobile fallback to make the footer fill any leftover viewport space
     when content + footer < viewport (so the footer's dark bg always
     extends to the bottom of the screen — no trailing cream gap). */
  .footer { min-height: 240px; }

  /* Horizontal-overflow guard — keeps anything wider than the viewport
     (e.g. wide tables, embed iframes, oversized grids) from breaking the
     mobile layout. */
  main, .page, .container, section { max-width: 100%; }

  /* Nav */
  .nav { padding: 14px var(--pad-x); }
  .nav-links, .nav-right { display: none; }
  .nav-toggle { display: flex; }
  .brand { font-size: 15px; gap: 8px; }
  .brand-mark { width: 28px; height: 28px; }

  /* Density */
  :root {
    --pad-x: 22px;
    --pad-section: 64px;
  }

  /* Typography — keep display sizes readable on small screens */
  .display-xl { font-size: clamp(40px, 9vw, 64px); line-height: 1.04; }
  .display-md { font-size: clamp(28px, 6vw, 40px); line-height: 1.1; }
  .display-sm { font-size: clamp(20px, 4.4vw, 26px); }
  .lede       { font-size: 16px; }
  .eyebrow    { font-size: 11px; }

  /* Universal: collapse 2-col page grids the theme uses inline */
  .page section > .container > div[style*="grid-template-columns"]:not([data-ff-skip-mobile]) {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  .section-head { grid-template-columns: 1fr !important; gap: 24px !important; }

  /* Hero */
  .hero { min-height: 70vh; padding-top: 96px; padding-bottom: 64px; }
  .hero-title { font-size: clamp(40px, 11vw, 72px) !important; max-width: none !important; }
  .hero-lede  { font-size: 16px; max-width: none; }

  /* Fascia diagram */
  .ff-fascia-grid { grid-template-columns: 1fr; gap: 32px; }
  .ff-fascia-grid .body-diagram { max-width: 260px; }
  .ff-fascia-list { grid-template-columns: 1fr 1fr; gap: 0 12px; }

  /* Practice cards & generic auto-fit grids — already flexible, just tighten */
  .practice-cards-grid { grid-template-columns: 1fr !important; gap: 20px !important; }
  .practice-card-v2 { min-height: auto; }
  /* Home page's 3-up practice grid (different class — collapse separately) */
  .practice-grid { grid-template-columns: 1fr; }
  .practice-card { padding: 32px 24px; }

  /* Before/After grid on home page — stack the two videos */
  .beforeafter { grid-template-columns: 1fr; gap: 32px; }
  .ba-media { aspect-ratio: 4/5; }

  /* Stack remaining home-page / filler-library multi-column grids */
  .video-grid       { grid-template-columns: 1fr !important; gap: 20px !important; }
  .stat-row         { grid-template-columns: 1fr !important; gap: 16px !important; }
  .ff-filler-pair   { grid-template-columns: 1fr !important; gap: 24px !important; }
  .ff-filler-imgtext { grid-template-columns: 1fr !important; gap: 24px !important; }

  /* Footer */
  .footer-top { grid-template-columns: 1fr !important; gap: 32px !important; }

  /* Counter-rotation icon — smaller */
  .ff-counter-rotate { width: 140px; height: 140px; }

  /* Testimonials */
  .testimonials { grid-template-columns: 1fr !important; gap: 24px !important; }

  /* About page step cards & release cards */
  .ff-step-card { gap: 12px; }
}

@media (max-width: 640px) {
  :root {
    --pad-x: 18px;
    --pad-section: 48px;
  }
  .display-xl { font-size: clamp(34px, 10vw, 50px); }
  .display-md { font-size: clamp(24px, 7vw, 34px); }
  .lede       { font-size: 15px; line-height: 1.55; }

  /* Buttons */
  .btn { padding: 12px 18px; font-size: 13px; }
  .nav-cta { padding: 8px 14px; }

  /* Three-up grids → single column on phones */
  .page section > .container > div[style*="repeat(3"],
  .page section > .container > div[style*="repeat( 3"] {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  /* Pull quote */
  .practice-card-title { font-size: 20px; }

  /* Fascia diagram phone tweaks */
  .ff-fascia-grid .body-diagram { max-width: 220px; }
  .ff-fascia-btn { font-size: 13px; padding: 8px 6px; }
  .ff-fascia-list { grid-template-columns: 1fr; }
  .ff-fascia-desc { font-size: 13.5px; padding: 12px 14px; }
}
