/* =========================================================
   FitFormer: Physio-led Pilates
   Palette: light grey base · navy brand · steel-blue accent
   Layout: horizontal, full-screen slides (swipe on phones)
   ========================================================= */

:root {
  /* Light grey (base) */
  --bg: #EEF0F3;
  --bg-alt: #E1E5EB;
  --surface: #FAFBFC;

  /* Navy (brand) */
  --brand: #1B2E4B;
  --brand-hover: #2A4268;
  --brand-soft: #D3DAE4;

  /* Steel blue (accent) + deep navy for dark panels */
  --accent: #4A6A94;
  --accent-deep: #101C30;
  --tint: #D3DEEB;

  /* Text */
  --ink: #1C2430;
  --ink-muted: #4F5A68;
  --on-dark: #EEF0F3;
  --on-dark-muted: #B9C3D1;

  --line: rgba(16, 28, 48, 0.12);

  /* Logo ink, from the FitFormer logo (its orange lives in the logo's SVG gradient) */
  --logo-ink: #1A1A1A;

  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-sub: "Montserrat", "Inter", system-ui, sans-serif;

  /* One even type scale for the whole site. Nothing goes below 14px. */
  --fs-sm: 0.875rem;                                   /* 14px: labels, chips, notes */
  --fs-base: 1rem;                                     /* 16px: all body text */
  --fs-md: 1.125rem;                                   /* 18px: card titles, lede */
  --fs-h2: clamp(1.75rem, 1.25rem + 2vw, 2.5rem);      /* 28 → 40px */
  --fs-h1: clamp(2.25rem, 1.5rem + 3.4vw, 3.75rem);    /* 36 → 60px */

  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 18px 40px -24px rgba(16, 28, 48, 0.35);
  --container: 1160px;
  --gutter: 20px;
  --header-h: 64px;
  --pager-h: 60px;
  --banner-h: 0px;   /* set by the shared preview build */
}

@media (min-width: 768px) {
  :root { --gutter: 32px; --header-h: 72px; }
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow: hidden; /* the slide track scrolls, not the page */
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
h1, h2 { font-family: var(--font-display); font-weight: 600; color: var(--brand); letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-md); font-weight: 600; }
h1 em, h2 em { font-style: italic; color: var(--accent); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
[tabindex="-1"]:focus { outline: none; }

.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.icon { width: 1.15em; height: 1.15em; flex-shrink: 0; }

.eyebrow {
  margin-bottom: .75rem;
  font-size: var(--fs-sm); font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow-light { color: var(--tint); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1.5px solid transparent;
  font: 600 var(--fs-base)/1 var(--font-body);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .25s, color .25s, border-color .25s, transform .25s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); }
.btn-ghost { border-color: var(--brand); color: var(--brand); background: transparent; }
.btn-ghost:hover { background: var(--brand); color: #fff; }
.btn-sm { min-height: 42px; padding: 0 20px; font-size: var(--fs-sm); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; left: 0; right: 0; top: var(--banner-h); z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  background: var(--bg); border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }

/* Logo lockup, matching the FitFormer logo: serif "Fit" + orange "Former", then PILATES STUDIO.
   The word is sized by width so it stays exactly as wide as the letter-spaced line beneath. */
.logo {
  display: inline-flex; flex-direction: column; align-items: center; gap: 5px;
  color: var(--logo-ink); text-decoration: none; line-height: 1;
}
.logo-word { display: block; width: 222.7px; height: auto; aspect-ratio: 598.05 / 95.7; max-width: 100%; }
.logo-sub {
  font-family: var(--font-sub); font-weight: 600; font-size: 9.5px; letter-spacing: .92em;
  margin-right: -.92em; /* balance trailing letter-spacing so it centres under the word */
  white-space: nowrap;
}
.logo-by {
  margin-top: 8px; font-family: var(--font-sub); font-weight: 600; font-size: var(--fs-sm);
  color: var(--tint);
}
.logo-light { color: var(--on-dark); }
.footer-logo .logo-word { width: 321.6px; }
.footer-logo .logo-sub { font-size: 13.7px; }
@media (max-width: 359px) {
  .site-header .logo-word { width: 185.6px; }
  .site-header .logo-sub { font-size: 7.9px; }
  .footer-logo .logo-word { width: 247.4px; }
  .footer-logo .logo-sub { font-size: 10.5px; }
}

.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 10px; border: 0; background: none; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--brand); border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-nav {
  position: absolute; top: 100%; left: 0; right: 0;
  display: flex; flex-direction: column;
  padding: 8px var(--gutter) 20px;
  background: var(--bg); border-bottom: 1px solid var(--line);
  box-shadow: 0 20px 30px -20px rgba(16, 28, 48, .3);
  visibility: hidden; opacity: 0; transform: translateY(-8px);
  transition: opacity .25s, transform .25s, visibility .25s;
}
.site-nav.is-open { visibility: visible; opacity: 1; transform: none; }
.site-nav a:not(.btn) {
  padding: 12px 0; text-decoration: none; font-size: var(--fs-base); font-weight: 500;
  border-bottom: 1px solid var(--line);
}
.site-nav a.is-active { color: var(--accent); font-weight: 600; }
.site-nav .btn { margin-top: 14px; }

@media (min-width: 1200px) {
  .nav-toggle { display: none; }
  .site-nav {
    position: static; flex-direction: row; align-items: center; gap: 28px;
    padding: 0; background: none; border: 0; box-shadow: none;
    visibility: visible; opacity: 1; transform: none;
  }
  .site-nav a:not(.btn) { padding: 4px 0; border: 0; font-size: var(--fs-sm); position: relative; }
  .site-nav a:not(.btn)::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1.5px;
    background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform .3s;
  }
  .site-nav a:not(.btn):hover::after,
  .site-nav a.is-active::after { transform: scaleX(1); }
  .site-nav a.is-active { color: var(--brand); }
  .site-nav .btn { margin-top: 0; }
}

/* ---------- Slide track ---------- */
.slides {
  position: fixed; left: 0; right: 0;
  top: calc(var(--banner-h) + var(--header-h) + env(safe-area-inset-top, 0px));
  bottom: calc(var(--pager-h) + env(safe-area-inset-bottom, 0px));
  display: flex;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.slides::-webkit-scrollbar { display: none; }

.slide {
  flex: 0 0 100%; height: 100%;
  scroll-snap-align: start; scroll-snap-stop: always;
  display: flex; flex-direction: column;
  overflow-y: auto; overscroll-behavior-y: contain;
  padding: 24px 0;
}
/* margin-block: auto centres the content, and falls back to top-aligned if it overflows */
.slide-inner { margin-block: auto; }

.slide-head { margin-bottom: 24px; }
.slide-head .eyebrow { margin-bottom: .5rem; }

.two-col { display: grid; gap: 24px; }
@media (min-width: 900px) {
  .slide { padding: 40px 0; }
  .slide-head { margin-bottom: 36px; }
  .two-col { grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: center; }
}

/* Each panel's content settles in when the panel arrives */
.js .slide .reveal {
  opacity: 0; transform: translateY(14px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.16, 1, .3, 1);
  transition-delay: calc(var(--r, 0) * 110ms);
}
.js .slide.is-current .reveal { opacity: 1; transform: none; }

/* ---------- 1. Home ---------- */
.hero-grid { display: grid; gap: 24px; align-items: center; }
.lede { font-size: var(--fs-md); color: var(--ink-muted); max-width: 30em; margin: 1rem 0 1.5rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; }

.hero-media { position: relative; margin: 0; }
.hero-media img {
  position: relative; z-index: 1;
  width: 100%; height: clamp(140px, 24vh, 230px); object-fit: cover;
  border-radius: 160px 160px var(--radius-lg) var(--radius-lg);
  box-shadow: var(--shadow);
}

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 72px; }
  .hero-media img { height: min(62vh, 520px); border-radius: 220px 220px var(--radius-lg) var(--radius-lg); }
}

/* Hero entrance: each word rises from behind its own mask */
.hero { overflow-x: clip; }
.hero h1 .w {
  display: inline-block; overflow: hidden; vertical-align: top;
  padding: 0 .1em .14em; margin: 0 -.1em -.14em; /* room for italics and descenders */
}
.hero h1 .w > * {
  display: inline-block;
  animation: ff-rise 1.1s cubic-bezier(.16, 1, .3, 1) both;
  animation-delay: calc(150ms + var(--i) * 90ms);
}
.hero-in {
  animation: ff-fade-up .9s cubic-bezier(.16, 1, .3, 1) both;
  animation-delay: calc(700ms + var(--d) * 120ms);
}
/* Photo opens upward like the studio arch */
.hero-media img { animation: ff-arch 1.5s cubic-bezier(.65, 0, .35, 1) .15s both; }

/* Breathing rings: 4s in, 4s out, the rhythm of a Pilates breath */
.breath {
  position: absolute; z-index: 0; top: -6%; right: 4%;
  height: 80%; aspect-ratio: 1; max-width: 100%; border-radius: 50%;
  border: 1.5px solid var(--accent); opacity: .35;
  animation: ff-breathe 8s ease-in-out 1.2s infinite, ff-fade-in 1.2s ease 1s both;
}
.breath-2 {
  top: auto; right: auto; bottom: 0; left: -4%; height: 52%;
  border: 0; background: var(--tint); opacity: .7;
  animation-delay: 5.2s, 1.2s;
}

@keyframes ff-rise { from { transform: translateY(110%) rotate(3deg); } }
@keyframes ff-fade-up { from { opacity: 0; transform: translateY(16px); } }
@keyframes ff-fade-in { from { opacity: 0; } }
@keyframes ff-breathe { 50% { transform: scale(1.07); } }
@keyframes ff-arch {
  from { clip-path: inset(100% 0 0 0); transform: scale(1.06); }
  to { clip-path: inset(-60px); transform: none; } /* negative inset keeps the shadow */
}

/* ---------- 2. Story ---------- */
.story { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.story li { padding-left: 18px; border-left: 2px solid var(--tint); }
.story h3 { color: var(--brand); margin-bottom: .25rem; }
.story p { color: var(--ink-muted); }

/* ---------- 3. Why Pilates ---------- */
.benefits {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 16px;
}
.benefits svg { width: 32px; height: 32px; color: var(--brand); margin-bottom: 8px; }
.benefits h3 { margin-bottom: .25rem; }
.benefits p { color: var(--ink-muted); font-size: var(--fs-sm); line-height: 1.5; }

.made-for { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.made-for .eyebrow { margin-bottom: .6rem; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  padding: 6px 14px; border-radius: 999px;
  background: var(--tint); color: var(--accent-deep);
  font-size: var(--fs-sm); font-weight: 500;
}

@media (min-width: 900px) {
  .benefits { grid-template-columns: repeat(4, 1fr); gap: 32px; }
  .benefits p { font-size: var(--fs-base); }
  .made-for { margin-top: 44px; display: flex; align-items: center; gap: 16px; }
  .made-for .eyebrow { margin: 0; }
}

/* ---------- 4. Founders ---------- */
.founders { display: grid; gap: 14px; }
.founder {
  display: grid; grid-template-columns: 72px 1fr; align-items: center; gap: 12px 16px;
  padding: 18px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
}
.founder-photo {
  width: 72px; aspect-ratio: 1; border-radius: 50%;
  object-fit: cover; object-position: center; background: var(--bg-alt);
}
.founder h3 { color: var(--brand); }
.founder-role { margin-top: .2rem; font-size: var(--fs-sm); font-weight: 500; color: var(--accent); line-height: 1.35; }
.founder-bio { grid-column: 1 / -1; color: var(--ink-muted); }

@media (min-width: 900px) {
  .founders { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .founder { grid-template-columns: 96px 1fr; padding: 28px; gap: 16px 20px; }
  .founder-photo { width: 96px; }
}

/* ---------- 5. Classes ---------- */
.classes {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px;
}
.class-card {
  padding: 12px 14px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--brand);
}
.class-card h3 { color: var(--brand); font-size: var(--fs-base); margin-bottom: .2rem; }
.class-card p { color: var(--ink-muted); font-size: var(--fs-sm); line-height: 1.45; }
.class-card-accent { background: var(--accent-deep); border-color: var(--accent-deep); border-top-color: var(--tint); }
.class-card-accent h3 { color: var(--bg); }
.class-card-accent p { color: var(--on-dark-muted); }

.steps {
  margin-top: 16px; padding: 14px 16px; border-radius: var(--radius);
  background: var(--bg-alt);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
}
.steps ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.steps li { display: flex; align-items: center; gap: 8px; font-size: var(--fs-sm); font-weight: 600; }
.steps li span {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  border: 1.5px solid var(--brand); color: var(--brand); font-size: var(--fs-sm);
}
@media (max-width: 559px) { .steps .btn { width: 100%; } }

@media (min-width: 900px) {
  .classes { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .class-card { padding: 22px; }
  .class-card h3 { font-size: var(--fs-md); }
  .class-card p { font-size: var(--fs-base); }
  .steps { margin-top: 24px; padding: 18px 22px; }
  .steps li { font-size: var(--fs-base); }
}

/* ---------- 6. FAQ ---------- */
.faq { display: grid; gap: 8px; align-items: start; }
.faq details {
  background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line);
  padding: 0 16px;
}
.faq summary {
  list-style: none; cursor: pointer; padding: 14px 28px 14px 0; position: relative;
  font-size: var(--fs-base); font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 9px; height: 9px; margin-top: -6px;
  border-right: 2px solid var(--brand); border-bottom: 2px solid var(--brand);
  transform: rotate(45deg); transition: transform .3s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -1px; }
.faq details p { padding-bottom: 14px; color: var(--ink-muted); }
.faq-link { display: inline-block; margin-top: 4px; font-weight: 600; color: var(--tone-ink); text-decoration: none; border-bottom: 1.5px solid currentColor; }

@media (min-width: 900px) { .faq { grid-template-columns: 1fr 1fr; gap: 12px 16px; } .faq details { padding: 0 20px; } }

/* ---------- 7. Book ---------- */
.book { background: var(--brand); color: var(--on-dark); }
.book h2 { color: var(--bg); }
.book-copy { color: var(--brand-soft); margin-top: .75rem; }
/* Spam trap: off-screen rather than display:none, which some bots skip */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* Text for search engines and screen readers only */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.book-form {
  background: var(--surface); color: var(--ink); border-radius: var(--radius-lg);
  padding: 18px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.45);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.field { margin-bottom: 12px; min-width: 0; }
.field label { display: block; font-size: var(--fs-sm); font-weight: 600; margin-bottom: 4px; }
.field input,
.field select {
  width: 100%; min-height: 46px; padding: 0 12px; border-radius: 10px;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink);
  font: 400 var(--fs-base) var(--font-body); /* 16px keeps phones from zooming in */
  transition: border-color .2s, box-shadow .2s;
}
.field select {
  appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--brand) 50%), linear-gradient(135deg, var(--brand) 50%, transparent 50%);
  background-position: calc(100% - 18px) 52%, calc(100% - 12px) 52%;
  background-size: 6px 6px; background-repeat: no-repeat;
  padding-right: 30px; text-overflow: ellipsis;
}
.field input:focus,
.field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(74,106,148,.18); }
.field.has-error input,
.field.has-error select { border-color: #A3243B; }
.field-error { margin-top: 4px; font-size: var(--fs-sm); color: #A3243B; font-weight: 500; line-height: 1.35; }
.field-error:empty { display: none; }
.form-success {
  margin-top: 12px; padding: 12px 14px; border-radius: 10px; text-align: center;
  background: var(--tint); color: var(--accent-deep); font-size: var(--fs-sm); font-weight: 500;
}
.form-success a { color: var(--brand); font-weight: 600; }
[hidden] { display: none !important; }

@media (min-width: 900px) {
  .book-form { padding: 32px; }
  .form-row { gap: 0 16px; }
  .field { margin-bottom: 16px; }
}

/* ---------- 8. Visit ---------- */
.visit { background: var(--accent-deep); color: var(--on-dark-muted); }
.visit-grid { display: grid; gap: 24px; }
.visit h3 {
  font-size: var(--fs-sm); letter-spacing: .12em; text-transform: uppercase; color: var(--bg); margin-bottom: .5rem;
}
.visit h3:not(:first-child) { margin-top: 1.25rem; }
.visit address { font-style: normal; margin-bottom: .6rem; }
.visit address strong { color: var(--bg); }
.visit a { color: var(--bg); text-decoration: none; }
.visit a:hover { text-decoration: underline; }
.contact-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.contact-links a { display: inline-flex; align-items: center; gap: 10px; }
.copyright { margin-top: 28px; padding-top: 16px; border-top: 1px solid rgba(201,214,227,.15); font-size: var(--fs-sm); }

@media (min-width: 900px) {
  .visit-grid { grid-template-columns: 1.2fr 1fr 1fr; gap: 48px; align-items: start; }
}

/* ---------- Pager ---------- */
.pager {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  height: calc(var(--pager-h) + env(safe-area-inset-bottom, 0px));
  padding: 0 var(--gutter) env(safe-area-inset-bottom, 0px);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--bg); border-top: 1px solid var(--line);
}
.pager-btn {
  display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 50%; border: 1.5px solid var(--brand); background: transparent; color: var(--brand);
  cursor: pointer; transition: background .2s, color .2s, opacity .2s;
}
.pager-btn:hover:not(:disabled) { background: var(--brand); color: #fff; }
.pager-btn:disabled { opacity: .3; cursor: default; }
.pager-btn .icon { width: 20px; height: 20px; }

.pager-mid { position: relative; display: grid; place-items: center; flex: 1; }
.dots { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
/* Flex-centred so the dot sits mid-height in both buttons and links (links to page 2 don't centre on their own) */
.dots :is(button, a) {
  display: flex; align-items: center; justify-content: center;
  width: 20px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer;
}
.dots :is(button, a)::before {
  content: ""; display: block; flex: none; width: 8px; height: 8px; border-radius: 999px;
  background: var(--brand-soft); transition: width .3s, background .3s;
}
.dots :is(button, a)[aria-current="true"]::before { width: 22px; background: var(--brand); }

/* "Swipe →" hint on the first panel of a phone; hidden after the first move */
.swipe-hint {
  position: absolute; bottom: calc(100% + 6px);
  font-size: var(--fs-sm); font-weight: 600; color: var(--accent); white-space: nowrap;
  transition: opacity .4s;
}
.swipe-hint span { display: inline-block; animation: ff-nudge 1.6s ease-in-out infinite; }
.swipe-hint.is-hidden { opacity: 0; pointer-events: none; }
@keyframes ff-nudge { 50% { transform: translateX(6px); } }
@media (hover: hover) and (pointer: fine) { .swipe-hint { display: none; } }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 16px; z-index: 60;
  bottom: calc(var(--pager-h) + env(safe-area-inset-bottom, 0px) + 12px);
  display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%;
  background: var(--brand); color: #fff; border: 3px solid var(--bg);
  box-shadow: 0 14px 30px -10px rgba(27,46,75,.6);
  transition: transform .25s, background .25s;
}
.wa-float .icon { width: 26px; height: 26px; }
.wa-float:hover { transform: scale(1.06); background: var(--brand-hover); }

/* On phones WhatsApp lives in the header, so nothing floats over the panels */
.header-wa {
  display: grid; place-items: center; width: 40px; height: 40px; margin-left: auto; margin-right: 6px;
  border-radius: 50%; background: var(--brand); color: #fff;
}
.header-wa .icon { width: 20px; height: 20px; }
@media (max-width: 899px) { .wa-float { display: none; } }
@media (min-width: 900px) { .header-wa { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .js .slide .reveal { opacity: 1; transform: none; transition: none; }
  .hero h1 .w > *, .hero-in, .hero-media img, .breath, .swipe-hint span { animation: none !important; }
  * { transition-duration: 0s !important; }
}

/* =========================================================
   COLOUR STORY
   Every panel has its own tone: a pastel ground (--tone-bg), a deeper
   pastel for chips and cards (--tone-soft), a vibrant pop for shapes and
   icons (--tone-pop), a readable dark shade for text accents (--tone-ink)
   and a translucent highlighter (--tone-mark).
   ========================================================= */
:root {
  /* Earthy studio palette: oat, sage, clay and stone pastels; terracotta and olive pops */
  --oat: #F4EEE3;    --oat-soft: #E9DFCC;
  --sage: #DDE6D5;   --sage-soft: #C8D6BD;
  --clay: #F1D9CC;   --clay-soft: #E8C3AF;
  --stone: #E7E2DA;  --stone-soft: #D8D1C6;
  --ochre-soft: #EBD9B4;

  --terracotta: #D2693C;  --terracotta-ink: #9A4520;  /* the main vibrant colour */
  --olive: #6F7D4E;       --olive-ink: #4F5A33;
  --sage-deep: #7F9A72;
  --ochre: #C79A4A;
  --clay-deep: #B9775A;
  --clay-light: #F2B89B;  /* terracotta that reads on navy */
}

.tone-oat    { --tone-bg: var(--oat);   --tone-soft: var(--oat-soft);   --tone-pop: var(--terracotta); --tone-ink: var(--terracotta-ink); --tone-mark: rgba(210, 105, 60, .24); }
.tone-sage   { --tone-bg: var(--sage);  --tone-soft: var(--sage-soft);  --tone-pop: var(--olive);      --tone-ink: var(--olive-ink);      --tone-mark: rgba(111, 125, 78, .26); }
.tone-clay   { --tone-bg: var(--clay);  --tone-soft: var(--clay-soft);  --tone-pop: var(--terracotta); --tone-ink: var(--terracotta-ink); --tone-mark: rgba(210, 105, 60, .24); }
.tone-stone  { --tone-bg: var(--stone); --tone-soft: var(--stone-soft); --tone-pop: var(--olive);      --tone-ink: var(--olive-ink);      --tone-mark: rgba(111, 125, 78, .26); }
.tone-night  { --tone-bg: var(--brand);       --tone-soft: rgba(255,255,255,.08); --tone-pop: var(--terracotta); --tone-ink: var(--clay-light); --tone-mark: rgba(210, 105, 60, .4); }
.tone-deep   { --tone-bg: var(--accent-deep); --tone-soft: rgba(255,255,255,.06); --tone-pop: var(--sage-deep);  --tone-ink: var(--sage-soft);  --tone-mark: rgba(127, 154, 114, .4); }

.slide { position: relative; overflow-x: hidden; background: var(--tone-bg, var(--bg)); }
.slide-inner { position: relative; z-index: 1; }
/* Shapes live in a clipped layer, so they never add scroll space to a panel */
.decos { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }

/* Text accents take the panel's tone */
.slide .eyebrow { color: var(--tone-ink); }
.slide h2 em, .hero h1 em {
  color: var(--tone-ink);
  background: linear-gradient(transparent 60%, var(--tone-mark) 60%, var(--tone-mark) 92%, transparent 92%);
  padding: 0 .08em;
}

/* Header and pager: clean white rails so every pastel reads as its own panel */
.site-header, .pager { background: #fff; } /* solid, not frosted glass: blur is costly on phones */
.site-nav { background: #fff; }
.dots :is(button, a)::before { background: var(--line); }
.dots :is(button, a)[aria-current="true"]::before { background: var(--now-pop, var(--brand)); }
.pager-btn { border-color: var(--now-pop, var(--brand)); color: var(--brand); transition: border-color .4s, background .2s, color .2s; }
.pager-btn:hover:not(:disabled) { background: var(--now-pop, var(--brand)); border-color: var(--now-pop, var(--brand)); color: #fff; }
.swipe-hint { color: var(--terracotta-ink); }

/* ---------- Pilates motif shapes ----------
   .deco carries the swipe parallax (--p is the panel's offset from the
   screen, -1 to 1); the svg inside floats on its own slow loop. */
.deco {
  position: absolute; z-index: 0; pointer-events: none;
  width: var(--s, 160px); aspect-ratio: 1;
  color: var(--deco, var(--tone-pop));
  transform: translateX(calc(var(--p, 0) * var(--par, 90px)));
}
.deco svg { width: 100%; height: 100%; display: block; animation: ff-float var(--dur, 9s) ease-in-out infinite; }
.d2 svg { animation-direction: alternate-reverse; --dur: 11s; }
@keyframes ff-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(6deg); }
}

/* Placement per panel: shapes sit in the corners, partly off-screen */
#home .d1     { --s: 140px; top: -58px; right: -58px; --par: 120px; }
#home .d2     { --s: 90px;  bottom: 18%; left: -20px; --deco: var(--olive); opacity: .8; }
#story .d1    { --s: 190px; bottom: -96px; right: -64px; --par: 140px; }
#story .d2    { --s: 80px;  top: 10px; right: -14px; --deco: var(--terracotta); opacity: .75; }
#pilates .d1  { --s: 130px; top: -78px; right: -50px; --par: 130px; }
#pilates .d2  { --s: 150px; bottom: -78px; left: -30px; --deco: var(--olive); opacity: .55; }
#founders .d1 { --s: 150px; top: -78px; right: -46px; --deco: var(--terracotta); --par: 120px; }
#founders .d2 { --s: 130px; bottom: -50px; left: -40px; }
#classes .d1  { --s: 170px; top: -50px; right: -30px; --par: 120px; }
#classes .d2  { --s: 110px; bottom: -40px; left: -36px; --deco: var(--clay-deep); opacity: .7; }
#faq .d1      { --s: 150px; top: -40px; right: -46px; --par: 120px; }
#faq .d2      { --s: 100px; bottom: -20px; left: -24px; --deco: var(--olive); opacity: .6; }
#book .d1     { --s: 200px; bottom: -60px; left: -40px; --par: 130px; }
#book .d2     { --s: 150px; top: -46px; right: -50px; --deco: var(--sage-soft); opacity: .9; }
#visit .d1    { --s: 200px; bottom: -110px; right: -50px; --par: 140px; opacity: .8; }
#visit .d2    { --s: 100px; bottom: -14px; left: -18px; --deco: var(--ochre); opacity: .7; }

@media (min-width: 900px) {
  #home .d1     { --s: 260px; top: -70px; right: auto; left: 44%; }
  #home .d2     { --s: 130px; bottom: 10%; left: 2%; }
  #story .d1    { --s: 420px; bottom: -110px; right: -60px; }
  #story .d2    { --s: 150px; top: 8%; left: 3%; }
  #pilates .d1  { --s: 320px; top: -90px; right: -70px; }
  #pilates .d2  { --s: 300px; bottom: -110px; left: -60px; }
  #founders .d1 { --s: 300px; top: -60px; right: -40px; }
  #founders .d2 { --s: 240px; bottom: -90px; left: -60px; }
  #classes .d1  { --s: 300px; top: -100px; right: -30px; }
  #classes .d2  { --s: 200px; bottom: -70px; left: -60px; }
  #faq .d1      { --s: 280px; top: -80px; right: -70px; }
  #faq .d2      { --s: 180px; bottom: -40px; left: -40px; }
  #book .d1     { --s: 340px; bottom: -110px; left: -60px; }
  #book .d2     { --s: 260px; top: -80px; right: -70px; }
  #visit .d1    { --s: 380px; bottom: -90px; right: -60px; }
  #visit .d2    { --s: 160px; bottom: -30px; left: -30px; top: auto; right: auto; }
}

/* ---------- Home ---------- */
.hero {
  background:
    radial-gradient(60% 50% at 85% 80%, rgba(111, 125, 78, .16), transparent 70%),
    radial-gradient(50% 50% at 10% 10%, rgba(210, 105, 60, .14), transparent 70%),
    var(--tone-bg);
}
.breath { border-color: var(--terracotta); opacity: .6; border-width: 2px; }
.breath-2 { background: var(--sage-soft); opacity: .9; }
.btn-ghost { background: rgba(255, 255, 255, .55); }

/* ---------- Story ---------- */
.story li { border-left: 3px solid var(--tone-pop); background: rgba(255, 255, 255, .85); padding: 12px 14px 12px 16px; border-radius: 0 12px 12px 0; }
.story h3 { color: var(--tone-ink); }
.story p { color: var(--ink); }

/* ---------- Why Pilates: each benefit gets its own colour ---------- */
.benefits svg {
  width: 48px; height: 48px; padding: 10px; border-radius: 14px;
  background: var(--b, var(--tone-pop)); color: #fff;
}
.benefits li:nth-child(1) { --b: var(--terracotta); }
.benefits li:nth-child(2) { --b: var(--olive); }
.benefits li:nth-child(3) { --b: var(--sage-deep); }
.benefits li:nth-child(4) { --b: var(--clay-deep); }
.benefits p { color: var(--ink); }
.made-for { border-top-color: rgba(79, 90, 51, .2); }

/* Chips cycle through the whole palette */
.chips li { color: var(--ink); }
.chips li:nth-child(6n+1) { background: var(--clay-soft); }
.chips li:nth-child(6n+2) { background: var(--sage-soft); }
.chips li:nth-child(6n+3) { background: #fff; }
.chips li:nth-child(6n+4) { background: var(--oat-soft); }
.chips li:nth-child(6n+5) { background: var(--stone-soft); }
.chips li:nth-child(6n+6) { background: var(--ochre-soft); }

/* ---------- Founders ---------- */
.founder { background: rgba(255, 255, 255, .8); border-color: rgba(79, 90, 51, .15); }
.founder-photo { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--ring, var(--tone-pop)); }
.founder:nth-child(1) { --ring: var(--olive); }
.founder:nth-child(2) { --ring: var(--clay-deep); }
.founder:nth-child(3) { --ring: var(--sage-deep); }
.founder-role { color: var(--tone-ink); }

/* ---------- Classes: one colour per class ---------- */
.class-card { background: #fff; border: 0; border-top: 4px solid var(--c); box-shadow: 0 10px 24px -18px rgba(16, 28, 48, .45); }
.class-card h3 { color: var(--brand); }
.class-card h3::before {
  content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 8px; border-radius: 50%;
  background: var(--c); vertical-align: .05em;
}
.classes li:nth-child(1) { --c: var(--terracotta); }
.classes li:nth-child(2) { --c: var(--olive); }
.classes li:nth-child(3) { --c: var(--sage-deep); }
.classes li:nth-child(4) { --c: var(--ochre); }
.classes li:nth-child(5) { --c: var(--clay-deep); }
.class-card-accent { --c: var(--terracotta); background: var(--brand); }
.class-card-accent h3 { color: #fff; }
.steps { background: rgba(255, 255, 255, .7); }
.steps li span { border: 0; background: var(--tone-pop); color: #fff; font-weight: 700; }

/* ---------- FAQ ---------- */
.faq details { background: rgba(255, 255, 255, .85); border-color: rgba(154, 69, 32, .12); border-left: 4px solid transparent; transition: border-color .3s; }
.faq details[open] { border-left-color: var(--tone-pop); }
.faq summary::after { border-color: var(--tone-ink); }
.faq details p { color: var(--ink); }

/* ---------- Book: navy with a terracotta spark ---------- */
.book { background: var(--tone-bg); }
.book .eyebrow { color: var(--clay-light); }
.book-form { border-top: 6px solid var(--terracotta); }
.book-form .btn-primary { background: var(--terracotta); color: var(--accent-deep); }
.book-form .btn-primary:hover { background: #E07B4F; }

/* ---------- Visit ---------- */
.visit h3 { color: #fff; }
.visit h3::before {
  content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%;
  background: var(--terracotta); vertical-align: .1em;
}
.contact-links .icon { color: var(--terracotta); }

@media (prefers-reduced-motion: reduce) {
  .deco svg { animation: none; }
  .deco { transform: none; }
}

/* =========================================================
   SHORT PHONE SCREENS
   With the browser's address and tool bars showing, many phones leave only
   ~650-750px for the page. Tighten spacing (not text sizes) so each panel
   still fits without scrolling.
   ========================================================= */
@media (max-width: 899px) and (max-height: 760px) {
  :root { --header-h: 56px; --pager-h: 52px; }
  .slide { padding: 12px 0; }
  .slide-head { margin-bottom: 14px; }
  .slide-head .eyebrow, .eyebrow { margin-bottom: .35rem; }
  .two-col { gap: 14px; }

  .lede { margin: .5rem 0 .9rem; }
  .hero-grid { gap: 14px; }
  .hero-media img { height: clamp(100px, 18vh, 150px); border-radius: 120px 120px var(--radius) var(--radius); }

  .story { gap: 8px; }
  .story li { padding: 8px 12px; }
  .story p { line-height: 1.45; }

  .benefits { gap: 12px 14px; }
  .benefits svg { width: 40px; height: 40px; padding: 8px; margin-bottom: 4px; }
  .benefits p { line-height: 1.4; }
  .made-for { margin-top: 10px; padding-top: 10px; }
  .benefits h3 { margin-bottom: .1rem; }

  .founders { gap: 10px; }
  .founder { padding: 14px; gap: 10px 14px; grid-template-columns: 60px 1fr; }
  .founder-photo { width: 60px; }
  .founder-bio { line-height: 1.5; }

  .classes { gap: 6px; }
  .class-card { padding: 10px 12px; }
  .steps { margin-top: 10px; padding: 10px 12px; gap: 10px; }
  .steps ol { gap: 6px 16px; }

  .faq { gap: 6px; }
  .faq summary { padding: 9px 28px 9px 0; }

  .book-form { padding: 14px; }
  .field { margin-bottom: 8px; }
  .field input, .field select { min-height: 44px; }

  .visit-grid { gap: 14px; }
  .visit h3:not(:first-child) { margin-top: .8rem; }
  .footer-logo .logo-word { width: 272.1px; }
  .footer-logo .logo-sub { font-size: 11.6px; }
  .copyright { margin-top: 10px; padding-top: 0; border-top: 0; }
  .logo-by { margin-top: 5px; }
  .visit address { margin-bottom: .3rem; }
}

/* =========================================================
   LIGHT ONLY
   The site has one designed palette. Phone dark modes must not invert it.
   `only light` opts out of Chrome's auto-dark; the prefers-color-scheme
   block tells Samsung Internet the page already handles dark mode, so it
   leaves the colours alone.
   ========================================================= */
:root { color-scheme: only light; }
@media (prefers-color-scheme: dark) {
  :root { color-scheme: only light; background: var(--bg); }
  body { background: var(--bg); color: var(--ink); }
}

/* =========================================================
   PHONE PERFORMANCE
   ========================================================= */
/* Only the panel on screen animates; the others pause */
.slide:not(.is-current) .deco svg,
.slide:not(.is-current) .breath { animation-play-state: paused; }


/* Phones: no parallax (the swipe is the motion) */
@media (pointer: coarse) { .deco { transform: none; } }

/* =========================================================
   MORE THAN PILATES (#care): Yoga Pilates + Dr. Priyanka's therapy services
   ========================================================= */
.care { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.care-card {
  padding: 12px 14px; border-radius: var(--radius);
  background: #fff; box-shadow: 0 10px 24px -18px rgba(16, 28, 48, .45);
}
.care-card svg { display: block; width: 30px; height: 30px; margin-bottom: 6px; color: var(--c, var(--tone-pop)); }
.care-card h3 { font-size: var(--fs-base); color: var(--brand); margin-bottom: .15rem; }
.care-card p { font-size: var(--fs-sm); line-height: 1.45; color: var(--ink-muted); }
.care li:nth-child(2) { --c: var(--olive); }
.care li:nth-child(3) { --c: var(--clay-deep); }
.care li:nth-child(4) { --c: var(--sage-deep); }
.care li:nth-child(5) { --c: var(--ochre); }

/* Yoga Pilates is the featured tile: full width, navy, icon beside the text */
.care-card-feature {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 14px;
  background: var(--brand);
}
.care-card-feature svg { width: 40px; height: 40px; margin: 0; flex-shrink: 0; color: var(--clay-light); }
.care-card-feature h3 { color: #fff; font-size: var(--fs-md); }
.care-card-feature p { color: var(--brand-soft); font-size: var(--fs-base); }

.care-lead { margin-top: 14px; color: var(--ink); display: flex; align-items: center; gap: 12px; line-height: 1.4; }
.care-lead img { width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--sage-deep); }
.care-lead span { font-size: var(--fs-sm); color: var(--ink-muted); }
.care-lead strong { color: var(--tone-ink); }

#care .d1 { --s: 150px; top: -40px; right: -50px; --par: 120px; }
#care .d2 { --s: 120px; bottom: -70px; left: -30px; --deco: var(--olive); opacity: .6; }

@media (min-width: 900px) {
  .care { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .care-card { padding: 22px; }
  .care-card svg { width: 40px; height: 40px; margin-bottom: 12px; }
  .care-card h3 { font-size: var(--fs-md); }
  .care-card p { font-size: var(--fs-base); }
  .care-card-feature { grid-column: span 2; padding: 26px; }
  .care-card-feature svg { width: 56px; height: 56px; }
  .care-lead { margin-top: 24px; }
  #care .d1 { --s: 300px; top: -90px; right: -70px; }
  #care .d2 { --s: 240px; bottom: -110px; left: -50px; }
}

/* Short phone screens: three founders and the care tiles stay on one screen */
@media (max-width: 899px) and (max-height: 760px) {
  .founders { gap: 8px; }
  .founder { padding: 10px 12px; gap: 6px 12px; grid-template-columns: 48px 1fr; }
  .founder-photo { width: 48px; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ring, var(--tone-pop)); }
  .founder-bio { line-height: 1.45; font-size: var(--fs-sm); }

  .care { gap: 6px; }
  .care-card { padding: 9px 12px; }
  .care-card svg { width: 24px; height: 24px; margin-bottom: 4px; }
  .care-card-feature { padding: 10px 12px; }
  .care-card-feature svg { width: 32px; height: 32px; }
  .care-card-feature p { font-size: var(--fs-sm); }
  .care-lead { margin-top: 8px; }
}

/* Taller phones (short ones use the compact rules above): three founder cards and the Home trust line need a little less room */
@media (max-width: 899px) and (min-height: 761px) {
  .founders { gap: 8px; }
  .founder { padding: 12px 14px; gap: 8px 12px; grid-template-columns: 56px 1fr; }
  .founder-photo { width: 56px; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ring, var(--tone-pop)); }
  .founder-bio { line-height: 1.5; }
  .hero-media img { height: clamp(120px, 20vh, 200px); }
}

/* Panel subheading (Classes: semi-private, supervised) */
.slide-sub {
  display: flex; align-items: flex-start; gap: 8px; margin-top: .6rem; max-width: 40em;
  font-size: var(--fs-base); font-weight: 500; line-height: 1.45; color: var(--ink);
}
.slide-sub .icon { width: 20px; height: 20px; margin-top: 1px; color: var(--tone-pop); }
@media (max-width: 899px) { .slide-sub { font-size: var(--fs-sm); } }
@media (max-width: 899px) and (max-height: 760px) { .slide-sub { margin-top: .35rem; } }

/* Phones: team bios at the small step of the scale so three people fit */
@media (max-width: 899px) {
  .founder-bio { font-size: var(--fs-sm); line-height: 1.45; }
}
@media (max-width: 899px) and (max-height: 760px) {
  .founder { padding: 8px 12px; gap: 6px 12px; }
  .founders { gap: 6px; }
}
@media (max-width: 899px) and (max-height: 760px) {
  .care-lead { margin-top: 8px; gap: 10px; }
  .care-lead img { width: 36px; height: 36px; }
}

/* =========================================================
   ONE JOURNEY, TWO PAGES
   ========================================================= */
/* Bridge panel at the end of page 1: matches Visit, then hands off to page 2 */
.bridge-inner { display: grid; justify-items: center; gap: 20px; text-align: center; }
.bridge-link {
  color: var(--bg); text-decoration: none; font-weight: 600; font-size: var(--fs-md);
  border-bottom: 1.5px solid var(--clay-light); padding-bottom: 2px;
}

/* Moving between the pages slides sideways like a normal swipe
   (browsers with cross-document view transitions; others just load the page) */
@view-transition { navigation: auto; }
.site-header { view-transition-name: ff-header; }
.pager { view-transition-name: ff-pager; }
::view-transition-old(root) { animation: ff-page-out .38s cubic-bezier(.4, 0, .2, 1) both; }
::view-transition-new(root) { animation: ff-page-in .38s cubic-bezier(.4, 0, .2, 1) both; }
@keyframes ff-page-out { to { transform: translateX(-100%); } }
@keyframes ff-page-in { from { transform: translateX(100%); } }
/* Going back (e.g. Visit → FAQ): mirror it, so earlier panels come in from the left.
   main.js and head.php tag the transition "back". */
html:active-view-transition-type(back)::view-transition-old(root) { animation-name: ff-page-out-back; }
html:active-view-transition-type(back)::view-transition-new(root) { animation-name: ff-page-in-back; }
@keyframes ff-page-out-back { to { transform: translateX(100%); } }
@keyframes ff-page-in-back { from { transform: translateX(-100%); } }

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
