/* Hila Pilates, variant D: her feed, in white.
   Warm white page, white surfaces, cream bands, sand hairlines, wood accents, espresso text.
   Fonts are self-hosted (SIL OFL 1.1): Assistant, Quicksand, Varela Round. */

@font-face { font-family: "Assistant"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("../fonts/assistant-200_800-normal-hebrew.woff2") format("woff2");
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Assistant"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("../fonts/assistant-200_800-normal-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Assistant"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("../fonts/assistant-200_800-normal-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Quicksand"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("../fonts/quicksand-300_700-normal-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Varela Round"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/varela-round-400-normal-hebrew.woff2") format("woff2");
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }

:root {
  --paper: #fbf8f4;
  --white: #ffffff;
  --cream: #f2eadf;
  --sand: #dbcebf;
  --line: #e7ddd1;
  --wood: #a3826a;
  --walnut: #684c3d;
  --wood-deep: #8c6b55;
  --ink: #3b352f;
  --ink-2: #6b6259;
  --blush: #eed9da;
  --r-frame: 24px;
  --r-tile: 16px;
  --shadow-1: 0 1px 2px rgb(59 53 47 / .05), 0 12px 32px -14px rgb(59 53 47 / .20);
  --shadow-2: 0 2px 6px rgb(59 53 47 / .06), 0 28px 56px -22px rgb(59 53 47 / .32);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --dir: 1;
  --wrap: 1240px;
  --gut: clamp(20px, 5vw, 48px);
  --header: 76px;
  --sans: "Assistant", "Segoe UI", "Arial Hebrew", Arial, sans-serif;
  --mark: "Quicksand", "Assistant", sans-serif;
  --round: "Varela Round", "Assistant", sans-serif;
  color-scheme: light;
}
[dir="rtl"] { --dir: -1; }
[dir="ltr"] { --dir: 1; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header) + 16px);
  scrollbar-color: var(--sand) var(--paper);
  accent-color: var(--ink);
  caret-color: var(--wood);
  background: var(--paper);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  @view-transition { navigation: auto; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.7;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
html[lang="en"] body { line-height: 1.6; }

img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: 400; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .32em; text-decoration-color: var(--wood); }
::selection { background: var(--blush); color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.nowrap { white-space: nowrap; }
.wrap { width: min(100% - 2 * var(--gut), var(--wrap)); margin-inline: auto; }

.skip {
  position: absolute; inset-inline-start: 16px; top: 12px; z-index: 50;
  padding: 10px 20px; border-radius: 999px; background: var(--ink); color: var(--white);
  text-decoration: none; translate: 0 -200%;
}
.skip:focus, .skip:focus-visible { translate: 0 0; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--paper);
  border-block-end: 1px solid var(--line);
}
@supports (animation-timeline: scroll()) {
  .site-header {
    border-block-end-color: transparent;
    animation: header-settle linear both;
    animation-timeline: scroll(root);
    animation-range: 0 80px;
  }
  @keyframes header-settle {
    to { border-block-end-color: var(--line); box-shadow: 0 10px 30px -24px rgb(59 53 47 / .35); }
  }
}
.header-inner { display: flex; align-items: center; gap: clamp(16px, 3vw, 44px); min-height: var(--header); }
.brand { display: inline-flex; align-items: center; min-height: 44px; color: var(--walnut); text-decoration: none; }
.wordmark { font-family: var(--mark); font-weight: 300; font-size: 1.625rem; line-height: 1; letter-spacing: .01em; white-space: nowrap; }
.nav ul { display: flex; gap: clamp(18px, 2.4vw, 36px); }
.nav a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px;
  color: var(--ink-2); font-size: 1rem; text-decoration: none; transition: color .3s ease;
}
.nav a::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 9px; height: 1px; background: var(--wood);
  scale: 0 1; transform-origin: left; transition: scale .5s var(--ease);
}
html[dir="rtl"] .nav a::after { transform-origin: right; }
.nav a:hover { color: var(--ink); }
.nav a:hover::after { scale: 1 1; }
.header-actions { display: flex; align-items: center; gap: clamp(10px, 2vw, 24px); margin-inline-start: auto; }
.lang { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 6px; color: var(--ink-2); font-size: 1rem; text-decoration: none; }
.lang:hover { color: var(--ink); text-decoration: underline; }

/* ---------- buttons and links ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 54px; padding-inline: 30px; border-radius: 999px;
  background: var(--ink); color: var(--white);
  font-size: 1.0625rem; font-weight: 600; line-height: 1.2; text-decoration: none; white-space: nowrap;
  box-shadow: 0 1px 2px rgb(59 53 47 / .14), 0 12px 26px -14px rgb(59 53 47 / .55);
  transition: translate .5s var(--ease), box-shadow .5s var(--ease), background-color .3s ease, color .3s ease;
}
.pill:hover { background: #2b2622; translate: 0 -2px; box-shadow: 0 2px 4px rgb(59 53 47 / .14), 0 20px 34px -16px rgb(59 53 47 / .6); }
.pill:active { translate: 0 0; }
.pill:focus-visible { outline-offset: 4px; border-radius: 999px; }
.pill--sm { min-height: 44px; padding-inline: 20px; font-size: .975rem; }
.pill--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.pill--ghost:hover { background: var(--ink); color: var(--white); box-shadow: inset 0 0 0 1px var(--ink), 0 18px 30px -18px rgb(59 53 47 / .55); }

.link-arrow {
  display: inline-flex; align-items: center; gap: .45em; min-height: 44px;
  color: var(--ink); font-weight: 500; text-decoration: underline; text-decoration-color: var(--wood); text-underline-offset: .38em;
}
.link-arrow .i { flex: none; transition: translate .45s var(--ease); }
[dir="rtl"] .i-arrow { scale: -1 1; }
[dir="rtl"] [dir="ltr"] .i-arrow { scale: 1 1; }
.link-arrow:hover .i { translate: calc(var(--dir) * 4px) 0; }

/* ---------- hero ---------- */
.hero { padding-block: clamp(28px, 4.5vw, 56px) clamp(72px, 8vw, 120px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); align-items: center; gap: clamp(32px, 6vw, 104px); }
.hero-copy { max-width: 660px; }
.display { font-size: clamp(2.6rem, 1.1rem + 5.2vw, 5.75rem); font-weight: 300; line-height: 1.04; }
.display span { display: block; }
html[lang="en"] .display { font-size: clamp(2.75rem, 1.2rem + 5.6vw, 6rem); letter-spacing: -.028em; line-height: 1; }
.lead span { display: block; }
.lead { margin-top: clamp(18px, 2.2vw, 30px); max-width: 46ch; color: var(--ink-2); font-size: clamp(1.125rem, 1rem + .5vw, 1.4rem); line-height: 1.6; text-wrap: pretty; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 30px; margin-top: clamp(28px, 3.4vw, 44px); }

.hero-media { position: relative; justify-self: center; width: min(100%, 360px); padding-block-end: 22px; }
.reel { position: relative; aspect-ratio: 9 / 16; overflow: hidden; border-radius: var(--r-frame); background: var(--cream); box-shadow: var(--shadow-2); isolation: isolate; }
.reel-video { width: 100%; height: 100%; object-fit: cover; }
.reel-toggle {
  position: absolute; inset-block-start: 12px; inset-inline-end: 12px; z-index: 2;
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: 50%; background: rgb(255 255 255 / .84); color: var(--ink); cursor: pointer;
  box-shadow: 0 2px 10px -3px rgb(59 53 47 / .35);
  transition: background-color .3s ease, scale .45s var(--ease);
}
.reel-toggle:hover { background: var(--white); scale: 1.06; }
.reel-toggle[data-state="playing"] .i-play, .reel-toggle:not([data-state="playing"]) .i-pause { display: none; }
.ig-chip {
  position: absolute; inset-inline: 0; inset-block-end: 0; z-index: 3;
  display: flex; align-items: center; gap: 6px; width: fit-content; min-height: 44px; margin-inline: auto; padding-inline: 18px;
  border-radius: 999px; background: var(--cream); color: var(--ink);
  font-size: .975rem; font-weight: 500; text-decoration: none; white-space: nowrap;
  box-shadow: 0 0 0 1px rgb(255 255 255 / .8), var(--shadow-1);
  transition: translate .5s var(--ease), box-shadow .5s var(--ease);
}
.ig-chip:hover { translate: 0 -2px; box-shadow: 0 0 0 1px rgb(255 255 255 / .8), var(--shadow-2); }

/* ---------- sections ---------- */
.section { padding-block: clamp(80px, 10vw, 148px); }
.h2 { font-size: clamp(2.1rem, 1.1rem + 2.6vw, 3.3rem); font-weight: 300; line-height: 1.12; text-wrap: balance; }
html[lang="en"] .h2 { letter-spacing: -.022em; line-height: 1.08; }
.h2--s { font-size: clamp(1.9rem, 1.3rem + 2vw, 2.75rem); }
.h2--lines span { display: block; text-wrap: balance; }
.body-l { margin-top: 18px; max-width: 40ch; color: var(--ink-2); font-size: clamp(1.125rem, 1.04rem + .32vw, 1.3125rem); line-height: 1.7; text-wrap: pretty; }
.frame { position: relative; overflow: hidden; border-radius: var(--r-frame); background: var(--cream); box-shadow: var(--shadow-1); }
.frame img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* why */
.why-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; gap: clamp(40px, 7vw, 120px); }
.words { display: flex; flex-wrap: wrap; row-gap: 4px; margin-top: 26px; color: var(--walnut); font-size: 1.0625rem; }
.words li { white-space: nowrap; }
.words li:not(:last-child)::after { content: "·"; margin-inline: .75em; color: var(--wood); }
.quote { max-width: 36rem; margin-top: clamp(40px, 4.4vw, 64px); padding-top: clamp(28px, 3vw, 40px); border-top: 1px solid var(--sand); }
.quote p { max-width: 15em; font-size: clamp(1.5rem, 1.15rem + 1.3vw, 2.2rem); font-weight: 300; line-height: 1.35; text-wrap: balance; }
.quote figcaption { margin-top: 14px; color: var(--ink-2); font-size: 1rem; }
.quote figcaption::before { content: "— "; color: var(--wood); }

/* classes */
.classes-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: center; gap: clamp(40px, 7vw, 120px); }
.class-list { margin-top: clamp(28px, 3vw, 44px); border-top: 1px solid var(--sand); }
.class-item { padding-block: clamp(22px, 2.6vw, 32px); border-bottom: 1px solid var(--sand); }
.class-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 16px; }
.class-item h3 { font-size: clamp(1.5rem, 1.22rem + .95vw, 2rem); font-weight: 400; line-height: 1.2; }
.dur { color: var(--ink-2); font-size: .975rem; white-space: nowrap; }
.class-item p { max-width: 46ch; margin-top: 8px; color: var(--ink-2); }
.class-item.is-trial { margin-top: 28px; padding: clamp(24px, 3vw, 36px); border: 0; border-radius: 20px; background: var(--cream); }
.class-item.is-trial .pill { margin-top: 20px; }

/* cream band: the week + how to find a spot */
.band-cream { background: var(--cream); }
.week { padding-block-end: clamp(48px, 6vw, 80px); }
.week-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px 40px; }
.example-tag {
  display: inline-block; padding: 7px 16px; border-radius: 999px; line-height: 1.4;
  background: var(--white); color: var(--walnut); font-size: .95rem; font-weight: 500; box-shadow: inset 0 0 0 1px var(--sand);
}
.tt { margin-top: clamp(28px, 3.4vw, 44px); padding: clamp(14px, 2.2vw, 28px); border-radius: var(--r-frame); background: var(--white); box-shadow: var(--shadow-1); }
.tt-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)) minmax(0, .72fr); }
.tt-day { padding-inline: clamp(8px, 1.1vw, 16px); }
.tt-day + .tt-day { border-inline-start: 1px solid var(--line); }
.tt-day-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 8px; padding-block: 6px 12px; margin-block-end: 4px; border-bottom: 1px solid var(--line); font-size: 1.0625rem; font-weight: 600; line-height: 1.3; }
.tt-day-date { color: var(--ink-2); font-size: .875rem; font-weight: 400; font-variant-numeric: tabular-nums; }
.tt-class { display: grid; padding-block: 10px; line-height: 1.35; }
.tt-class + .tt-class { border-top: 1px solid var(--line); }
.tt-time { font-size: .9375rem; font-weight: 600; font-variant-numeric: tabular-nums; unicode-bidi: isolate; }
.tt-type { font-size: .9375rem; }
.tt-with { color: var(--ink-2); font-size: .875rem; }
.tt-status { display: inline-flex; align-items: center; gap: 6px; justify-self: start; margin-top: 6px; color: var(--ink-2); font-size: .8125rem; line-height: 1.2; }
.tt-status::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--wood); }
.tt-class.is-full .tt-status { padding: 3px 10px; border-radius: 999px; background: var(--blush); color: var(--walnut); }
.tt-class.is-full .tt-status::before { display: none; }
.tt-class.is-full .tt-time, .tt-class.is-full .tt-type { color: var(--ink-2); }
.tt-rest { margin-top: 12px; color: var(--ink-2); font-size: .95rem; line-height: 1.4; }
.tt-tabs { display: none; }
.week-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 40px; margin-top: clamp(24px, 3vw, 36px); }
.week-foot p { max-width: 52ch; color: var(--ink-2); }

.how { padding-block: clamp(40px, 5vw, 72px) clamp(80px, 10vw, 140px); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 3vw, 44px); margin-top: clamp(26px, 3vw, 40px); }
.step { display: flex; align-items: baseline; gap: 16px; padding-top: 22px; border-top: 1px solid var(--sand); font-size: clamp(1.25rem, 1.1rem + .55vw, 1.6rem); font-weight: 300; line-height: 1.35; }
.step-n { flex: none; color: var(--wood-deep); font-family: var(--mark); font-size: clamp(2.4rem, 1.9rem + 1.6vw, 3.4rem); font-weight: 300; line-height: .9; }
.step a { text-decoration-color: var(--wood); }
.step a:hover { text-decoration-thickness: 2px; }

/* hila */
.hila-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; gap: clamp(40px, 7vw, 120px); }
.hila-name { margin-top: clamp(24px, 2.6vw, 36px); font-size: clamp(1.35rem, 1.2rem + .5vw, 1.6rem); font-weight: 600; line-height: 1.3; }
.hila-role { margin-top: 4px; }
.team { margin-top: clamp(36px, 4vw, 56px); padding-top: 26px; border-top: 1px solid var(--sand); }
.team h3 { font-size: 1.0625rem; font-weight: 600; }
.team ul { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.team li { padding: 8px 18px; border-radius: 999px; background: var(--white); box-shadow: inset 0 0 0 1px var(--sand); font-size: 1rem; white-space: nowrap; }

/* instagram */
.ig { background: var(--white); }
.ig-grid-wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: clamp(40px, 6vw, 96px); }
.ig-profile { display: grid; justify-items: start; }
.h2--ig { font-size: clamp(2rem, 1.3rem + 2.3vw, 3.1rem); }
.ig-id { display: flex; align-items: center; gap: 14px; margin-top: clamp(26px, 3vw, 40px); }
.ig-handle { display: inline-flex; align-items: center; min-height: 44px; font-size: 1.125rem; font-weight: 600; text-decoration: none; }
.ig-handle:hover { text-decoration: underline; }
.ig-profile .pill { margin-top: 18px; }
.ig-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(6px, .9vw, 12px); }
.ig-grid a { display: block; overflow: hidden; border-radius: var(--r-tile); background: var(--cream); transition: translate .5s var(--ease), box-shadow .5s var(--ease); }
.ig-grid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: scale .9s var(--ease); }
.ig-grid a:hover { translate: 0 -4px; box-shadow: var(--shadow-2); }
.ig-grid a:hover img { scale: 1.035; }
.ig-grid a:focus-visible { outline-offset: 3px; border-radius: var(--r-tile); }

/* faq */
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); align-items: start; gap: clamp(28px, 6vw, 96px); }
.faq-list { border-top: 1px solid var(--sand); }
.faq-item { border-bottom: 1px solid var(--sand); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 64px; padding-block: 18px;
  font-size: clamp(1.125rem, 1.04rem + .35vw, 1.3125rem); font-weight: 500; line-height: 1.4; cursor: pointer; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover .faq-icon { background: var(--cream); }
.faq-icon { position: relative; flex: none; width: 34px; height: 34px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--sand); transition: background-color .3s ease; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; top: 50%; left: 50%; width: 12px; height: 1.5px; border-radius: 1px; background: var(--ink); translate: -50% -50%; transition: rotate .45s var(--ease); }
.faq-icon::after { rotate: 90deg; }
.faq-item[open] .faq-icon::after { rotate: 0deg; }
.faq-item p { max-width: 56ch; padding-bottom: 24px; color: var(--ink-2); }

/* final call */
.final { padding-block-end: clamp(80px, 9vw, 128px); }
.final-panel { display: grid; justify-items: center; padding: clamp(56px, 7vw, 108px) clamp(24px, 6vw, 96px); border-radius: 32px; background: var(--cream); text-align: center; }
.final-panel .body-l { max-width: 38ch; }
.final-panel .cta-row { justify-content: center; }

/* footer */
.site-footer { padding-block: clamp(48px, 6vw, 80px) 28px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); gap: 36px; }
.wordmark-he { font-family: var(--round); font-size: 1.75rem; line-height: 1.25; }
.footer-brand .wordmark { margin-top: 10px; color: var(--walnut); font-size: 1.3rem; }
.footer-h { margin-bottom: 8px; font-size: 1rem; font-weight: 600; }
.footer-visit p { color: var(--ink-2); }
.footer-links { display: grid; justify-items: start; align-content: start; }
.footer-links a { display: inline-flex; align-items: center; min-height: 40px; color: var(--ink-2); text-decoration: none; }
.footer-links a:hover { color: var(--ink); text-decoration: underline; }
.todo { text-decoration: underline dotted var(--wood); text-underline-offset: .3em; }
.footer-base { margin-top: clamp(36px, 5vw, 56px); padding-top: 20px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: .9375rem; }

/* 404 */
.nf { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 4vw, 48px); padding-block: clamp(64px, 10vw, 140px); }
.nf-panel { padding: clamp(32px, 5vw, 64px); border-radius: var(--r-frame); background: var(--white); box-shadow: var(--shadow-1); }
.nf-panel .h2 { font-size: clamp(2rem, 1.4rem + 2vw, 3rem); }
.nf-panel[lang="en"] .h2 { letter-spacing: -.022em; }
@media (max-width: 860px) { .nf { grid-template-columns: minmax(0, 1fr); } }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .nav { display: none; }
}
@media (max-width: 860px) {
  :root { --header: 64px; }
  .wordmark { font-size: 1.4rem; }
  .hero-grid, .why-grid, .classes-grid, .hila-grid, .ig-grid-wrap, .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-media { width: min(76%, 320px); }
  .classes-photo { order: -1; }
  .why-photo, .classes-photo, .hila-photo { width: min(100%, 520px); }
  .tt-tabs:not([hidden]) { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin-bottom: 8px; }
  .tt-tab {
    display: grid; place-items: center; gap: 0; min-height: 56px; padding: 6px 0;
    border: 1px solid var(--sand); border-radius: 14px; background: var(--white); color: var(--ink);
    font: inherit; line-height: 1.2; cursor: pointer; transition: background-color .25s ease, color .25s ease;
  }
  .tt-tab[aria-selected="true"] { border-color: var(--ink); background: var(--ink); color: var(--white); }
  .tt-tab-day { font-size: 1rem; font-weight: 600; }
  .tt-tab-date { font-size: .8125rem; font-variant-numeric: tabular-nums; }
  .tt-grid { grid-template-columns: minmax(0, 1fr); }
  .tt-day { padding-inline: 4px; }
  .tt-day + .tt-day { margin-top: 28px; border-inline-start: 0; }
  .tt.is-tabs .tt-day + .tt-day { margin-top: 0; }
  .tt-class { grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 14px; align-items: center; padding-block: 12px; }
  .tt-time { grid-row: 1 / span 2; min-width: 6.2em; }
  .tt-type, .tt-with { grid-column: 2; }
  .tt-status { grid-column: 3; grid-row: 1 / span 2; margin-top: 0; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .step { padding-block: 18px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .hide-sm { display: none; }
  .header-actions { gap: 8px; }
  .pill--sm { padding-inline: 16px; }
  .cta-row { gap: 10px 22px; }
  .tt-class { column-gap: 10px; }
  .tt-time { font-size: .875rem; min-width: 0; }
}

/* ---------- motion (gentle; static and complete without it) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise-in 1s var(--ease) both; }
  .hero-copy > :nth-child(2) { animation-delay: .08s; }
  .hero-copy > :nth-child(3) { animation-delay: .16s; }
  .ig-chip { animation: chip-in .9s var(--ease) .5s both; }

  @supports (animation-timeline: view()) {
    .reveal {
      animation: reveal-rise linear both;
      animation-timeline: view();
      animation-range: entry 0px entry 220px;
    }
    .ig-grid li {
      animation: reveal-rise linear both;
      animation-timeline: view();
      animation-range: entry 0px entry 200px;
    }
    .ig-grid li:nth-child(3n + 2) { animation-range: entry 40px entry 240px; }
    .ig-grid li:nth-child(3n + 3) { animation-range: entry 80px entry 280px; }
  }
  /* Fallback without scroll timelines: site.js tags below-the-fold blocks, then reveals them once. */
  .reveal-js .is-pending { opacity: 0; translate: 0 16px; }
  .reveal-js .is-shown { opacity: 1; translate: 0 0; transition: opacity 1s var(--ease), translate 1s var(--ease); }
}
@keyframes rise-in { from { opacity: 0; translate: 0 14px; } }
@keyframes chip-in { from { opacity: 0; translate: 0 8px; scale: .96; } }
@keyframes reveal-rise { from { opacity: 0; translate: 0 16px; } }

/* ---------- photo viewer (Instagram tiles open here, never on Instagram) ---------- */
.ig-tile { cursor: zoom-in; }
html.is-lb { overflow: hidden; }
.lb {
  position: fixed; inset: 0; width: 100vw; max-width: none; height: 100%; height: 100dvh; max-height: none;
  margin: 0; padding: 0; border: 0; background: transparent; color: var(--white); overflow: hidden;
}
.lb::backdrop { background: rgb(31 27 24 / .93); }
.lb-inner {
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto; justify-items: center;
  width: 100%; height: 100%;
  padding: max(12px, env(safe-area-inset-top)) 14px max(18px, env(safe-area-inset-bottom));
}
.lb-close { justify-self: end; }
.lb-figure { display: grid; place-items: center; width: 100%; min-height: 0; padding-block: 10px; touch-action: pan-y; }
.lb-img {
  width: auto; height: auto; max-width: min(92vw, 720px); max-height: 100%; object-fit: contain;
  border-radius: var(--r-tile); box-shadow: 0 30px 80px -30px rgb(0 0 0 / .65);
  user-select: none; -webkit-user-drag: none;
}
.lb-bar { display: flex; align-items: center; justify-content: center; gap: 22px; padding-top: 10px; }
.lb-count { min-width: 7ch; color: rgb(255 255 255 / .86); font-size: 1rem; text-align: center; font-variant-numeric: tabular-nums; }
.lb-btn {
  display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%;
  background: rgb(255 255 255 / .14); color: var(--white); cursor: pointer; transition: background-color .25s ease;
}
.lb-btn:hover { background: rgb(255 255 255 / .26); }
.lb-btn:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; border-radius: 50%; }
.lb-prev .i-chev { scale: -1 1; }
[dir="rtl"] .lb-prev .i-chev { scale: 1 1; }
[dir="rtl"] .lb-next .i-chev { scale: -1 1; }
@media (prefers-reduced-motion: no-preference) {
  .lb[open] .lb-img { animation: lb-in .45s var(--ease) both; }
}
@keyframes lb-in { from { opacity: 0; scale: .97; } }

/* ---------- phone adjustments (desktop unchanged) ---------- */
/* The photos keep the initial design on phones: full width, in their original order, each one
   rising in as it scrolls into view (the second photo's reveal is the one the user wanted back). */
@media (max-width: 860px) {
  .section { padding-block: clamp(52px, 13vw, 72px); }
  .quote { margin-top: 32px; padding-top: 24px; }
  .class-list { margin-top: 22px; }
  .week { padding-block-end: 56px; }
  .final { padding-block-end: 56px; }
  .final-panel { padding: 44px 22px; }
}

/* ---------- hero ----------
   Phone (base): her reel runs full-screen behind the copy, under a transparent header.
   Desktop (861px and up): the initial design, with the copy beside her reel in a rounded 9:16 frame. */
.hero--video { position: relative; display: grid; align-items: end; isolation: isolate; overflow: clip; min-height: 100svh; padding: 0; color: var(--white); }
.hero-bg { position: absolute; inset: 0; z-index: -1; margin: 0; background: var(--walnut); }
.hero-video { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 46%; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to bottom, rgb(31 27 24 / .55) 0%, rgb(31 27 24 / 0) 22%),
    linear-gradient(to top, rgb(31 27 24 / .78) 0%, rgb(31 27 24 / .46) 38%, rgb(31 27 24 / .12) 68%, rgb(31 27 24 / .05) 100%);
}
.hero-inner { padding-block: 40svh 36px; }
.hero--video .hero-copy { text-shadow: 0 2px 28px rgb(31 27 24 / .28); }
.hero--video .display { font-size: clamp(2.5rem, 1.2rem + 6vw, 3.4rem); }
.hero--video .lead { color: rgb(255 255 255 / .9); font-size: 1.125rem; }
.hero--video .pill { background: var(--white); color: var(--ink); box-shadow: 0 14px 34px -14px rgb(0 0 0 / .55); text-shadow: none; }
.hero--video .pill:hover { background: var(--cream); }
.hero--video .link-arrow { color: var(--white); text-decoration-color: rgb(255 255 255 / .7); }
.hero--video :focus-visible { outline-color: var(--white); }
.hero-chip { display: none; }
/* phone: no visible pause button (user request); it stays focusable, so a pause control exists (WCAG 2.2.2) */
.hero-toggle { inset-block-start: auto; inset-block-end: 14px; inset-inline-end: 14px; }
.hero-toggle:not(:focus-visible) { width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); opacity: 0; box-shadow: none; }

/* phone: the header is transparent over the reel, then solid once the reel has scrolled past (site.js) */
@media (max-width: 860px) {
  .site-header { transition: background-color .35s ease, border-color .35s ease, box-shadow .35s ease; }
  .has-video-hero .site-header { margin-block-end: calc(-1 * var(--header)); }
  .site-header.is-over-hero { background: transparent; border-block-end-color: transparent; box-shadow: none; animation: none; }
  .site-header.is-over-hero .brand, .site-header.is-over-hero .lang { color: var(--white); }
  .site-header.is-over-hero .pill { background: var(--white); color: var(--ink); box-shadow: 0 10px 26px -14px rgb(0 0 0 / .55); }
  .site-header.is-over-hero :focus-visible { outline-color: var(--white); }
}

/* desktop: the initial design */
@media (min-width: 861px) {
  .hero--video {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); align-items: center; column-gap: clamp(32px, 6vw, 104px);
    min-height: 0; overflow: visible; isolation: auto; color: inherit;
    padding-block: clamp(28px, 4.5vw, 56px) clamp(72px, 8vw, 120px);
    padding-inline: max(var(--gut), calc((100% - var(--wrap)) / 2));
  }
  .hero-inner { grid-column: 1; grid-row: 1; width: auto; margin: 0; padding: 0; }
  .hero-bg { position: relative; inset: auto; z-index: auto; grid-column: 2; grid-row: 1; justify-self: center; width: min(100%, 360px); padding-block-end: 22px; background: none; }
  .hero-bg::after { display: none; }
  .hero-video { height: auto; aspect-ratio: 9 / 16; border-radius: var(--r-frame); background: var(--cream); box-shadow: var(--shadow-2); object-position: 50% 50%; }
  .hero--video .hero-copy { max-width: 660px; text-shadow: none; }
  .hero--video .display { font-size: clamp(2.6rem, 1.1rem + 5.2vw, 5.75rem); }
  html[lang="en"] .hero--video .display { font-size: clamp(2.75rem, 1.2rem + 5.6vw, 6rem); }
  .hero--video .lead { color: var(--ink-2); font-size: clamp(1.125rem, 1rem + .5vw, 1.4rem); }
  .hero--video .pill { background: var(--ink); color: var(--white); box-shadow: 0 1px 2px rgb(59 53 47 / .14), 0 12px 26px -14px rgb(59 53 47 / .55); }
  .hero--video .pill:hover { background: #2b2622; }
  .hero--video .link-arrow { color: var(--ink); text-decoration-color: var(--wood); }
  .hero--video :focus-visible { outline-color: var(--ink); }
  .hero-chip { display: flex; }
  .hero-toggle { inset-block-start: 12px; inset-block-end: auto; inset-inline-end: 12px; }
  .hero-toggle:not(:focus-visible) { width: 44px; height: 44px; overflow: visible; clip-path: none; opacity: 1; box-shadow: 0 2px 10px -3px rgb(59 53 47 / .35); }
}

/* phone: the bottom of the reel blurs, then dissolves into the warm-white page (user request) */
@media (max-width: 860px) {
  .hero-bg::before {
    content: ""; position: absolute; inset-inline: 0; inset-block-end: 0; height: 190px; pointer-events: none;
    -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    -webkit-mask-image: linear-gradient(to top, #000 40%, transparent); mask-image: linear-gradient(to top, #000 40%, transparent);
  }
  .hero-bg::after {
    background:
      linear-gradient(to bottom, rgb(31 27 24 / .55) 0%, rgb(31 27 24 / 0) 22%),
      linear-gradient(to top, var(--paper) 0px, rgb(251 248 244 / .88) 46px, rgb(251 248 244 / 0) 160px),
      linear-gradient(to top, rgb(31 27 24 / 0) 96px, rgb(31 27 24 / .62) 200px, rgb(31 27 24 / .52) 48%, rgb(31 27 24 / .12) 72%, rgb(31 27 24 / .04) 100%);
  }
  .hero-inner { padding-block: 30svh 186px; }
}
/* desktop: a larger first video (was 360px wide, now up to 460px), sized so the frame and its
   @hila_pilates chip fit the first screen; the headline keeps the rest of the row */
@media (min-width: 861px) {
  .hero--video {
    --reel-w: clamp(360px, calc((100svh - var(--header) - 64px) * 9 / 16), min(460px, 34vw));
    grid-template-columns: minmax(0, 1fr) var(--reel-w);
    padding-block-start: 24px;
  }
  .hero-bg { width: var(--reel-w); }
}

/* ---------- second reel: her flow on the reformer, in the classes frame ---------- */
.classes-video { margin: 0; }
.frame-video { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 56%; background: var(--cream); }
/* phones: no visible pause button (as on the first reel); it stays focusable (WCAG 2.2.2) */
@media (max-width: 860px) {
  .frame-toggle:not(:focus-visible) { width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); opacity: 0; box-shadow: none; }
}
