/* ==========================================================================
   WOU Gym — public site components. Builds on core.css tokens only.
   The language: display type set huge and heavy, every word opening on a
   leaning letter (the blade of the W); photographs in black and white so the
   gold is the only colour; soft cards; pill buttons whose arrow sits in a
   round badge (the ring of the mark).
   ========================================================================== */

/* ---------- Layout ---------- */
.section { padding-block: var(--section); position: relative; }
.section--raised { background: var(--bg-raised); overflow: clip; isolation: isolate; }
/* the raised bands carry the O of the mark: very faint, set huge and cut by the edge of the page,
   alternating sides (user request, 10.11.2026: a ground with depth, not a grid) */
.section--raised::before {
  content: "";
  position: absolute; z-index: -1; pointer-events: none;
  top: 50%; right: -18vw;
  width: min(72vw, 64rem); aspect-ratio: 247.3 / 235;
  translate: 0 -50%;
  background: var(--mark-o) center / contain no-repeat;
  opacity: .035;
}
.section--raised:nth-of-type(even)::before { right: auto; left: -18vw; }
.section--tight { padding-block: calc(var(--section) * .6); }
/* content that continues the page hero directly (no new section heading in between) */
.section--follow { padding-top: var(--s-7); }

/* Section heading: title left, support copy right; no labels above the title */
.sec-head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--s-5) var(--gutter);
  align-items: end;
  margin-bottom: clamp(var(--s-7), 2rem + 3vw, var(--s-9));
}
.sec-head__title { max-width: 14ch; }
@media (min-width: 901px) {
  .sec-head:not(.sec-head--center) .sec-head__title { --fit: 5.4cqi; }
  .split__a .h1, .split__a .h2, .split__b .h1, .split__b .h2 { --fit: 4.8cqi; }
  .program-row__title { --fit: 4.4cqi; }
  .cta-band__title { --fit: 10cqi; }
}
.sec-head__aside { display: grid; gap: var(--s-5); justify-items: start; padding-bottom: .6rem; }
.sec-head__aside p { color: var(--ink-2); max-width: 46ch; }
/* Centred: the title stacked large in the middle, the support copy and its action beneath */
.sec-head--center { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
.sec-head--center .sec-head__title { max-width: 13ch; }
.sec-head--center .sec-head__aside { justify-items: center; padding-bottom: 0; }
.sec-head--center .sec-head__aside p { max-width: 52ch; }
.sec-foot { display: flex; justify-content: center; margin-top: clamp(var(--s-7), 2rem + 2vw, var(--s-8)); }

/* ---------- Media ---------- */
.media {
  position: relative;
  overflow: hidden;
  border-radius: var(--r);
  background: var(--surface);
}
.media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: var(--grade);
  transition: transform var(--t-4) var(--ease), filter var(--t-3) var(--ease);
}
a.media:hover img, a:hover > .media img, .media:hover img { transform: scale(calc(1 + (var(--zoom) - 1) / 2)); filter: var(--grade-hover); }
.ratio-3x2 { aspect-ratio: 3 / 2; }
.ratio-4x5 { aspect-ratio: 4 / 5; }
.ratio-16x9 { aspect-ratio: 16 / 9; }
.ratio-1 { aspect-ratio: 1; }

/* ---------- Header ----------
   Open at the top of the page: no ground, one hairline across the full width; the mark on the left,
   the sections in the exact middle, language and the gold action on the right. Once the page
   moves it takes the dark ground and draws in a little; it never hides. */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  border-bottom: 1px solid var(--line);
  transition: background-color var(--t-2) var(--ease), border-color var(--t-2) var(--ease);
}
.site-header.is-scrolled { background: var(--bg-veil); border-color: var(--line-2); }
.site-header__bar {
  width: min(100% - 2 * var(--gutter), var(--wrap-wide));
  height: var(--header-h);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: var(--s-6);
  transition: height var(--t-2) var(--ease);
}
.site-header.is-scrolled .site-header__bar { height: var(--bar-h); }
.brand { justify-self: start; display: inline-flex; align-items: center; padding: .4rem 0; }
.logo { height: 1.55rem; width: auto; }
.brand .logo { height: 1.6rem; transition: height var(--t-2) var(--ease); }
.site-header.is-scrolled .brand .logo { height: 1.35rem; }
/* GYM beside the mark, small, on the mark's baseline */
.brand { gap: .5rem; align-items: flex-end; }
.brand__gym {
  font-family: var(--font-display); font-weight: var(--weight-display);
  font-size: .78rem; line-height: 1; letter-spacing: .16em;
  color: var(--logo-ink); opacity: .7;
  padding-bottom: .12rem;
  transition: font-size var(--t-2) var(--ease);
}
.site-header.is-scrolled .brand__gym { font-size: .68rem; }
.nav__list { display: flex; gap: clamp(1.25rem, .2rem + 1.9vw, 2.75rem); }
.nav__link {
  position: relative;
  display: inline-block;
  padding: .6rem 0;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--ink);
  transition: color var(--t-1) var(--ease);
}
/* a gold hairline draws in under the link in focus and stays under the current section */
.nav__link::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: .2rem;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-2) var(--ease);
}
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--gold-ink); }
/* the one link out of the site (WOU Esports, same building): quieter, with its arrow */
.nav__link--out { display: inline-flex; align-items: center; gap: .35rem; color: var(--ink-2); }
.nav__link--out .icon { width: .9em; height: .9em; color: var(--gold); }
.site-header__actions { justify-self: end; display: flex; align-items: center; gap: var(--s-5); }
.lang {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: var(--fs-micro); font-weight: 700; letter-spacing: .14em;
  color: var(--ink-3);
}
.lang a, .lang span { padding: .35rem 0; transition: color var(--t-1) var(--ease); }
.lang a:hover { color: var(--ink); }
.lang [aria-current="true"] { color: var(--ink); }
.lang .lang__sep { width: 1px; height: .8rem; padding: 0; background: var(--line-2); }
.menu-btn {
  display: none;
  width: var(--control-h-sm); height: var(--control-h-sm);
  border: 1px solid var(--line-2); border-radius: 50%;
  align-items: center; justify-content: center;
  transition: border-color var(--t-1) var(--ease), background-color var(--t-1) var(--ease);
}
.menu-btn:hover { border-color: var(--gold); }
.menu-btn__lines { position: relative; width: 1.1rem; height: .7rem; }
.menu-btn__lines::before, .menu-btn__lines::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: var(--ink);
  transition: transform var(--t-2) var(--ease), top var(--t-2) var(--ease);
}
.menu-btn__lines::before { top: 0; }
.menu-btn__lines::after { top: calc(100% - 1.5px); }
.menu-btn[aria-expanded="true"] .menu-btn__lines::before { top: calc(50% - .75px); transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__lines::after { top: calc(50% - .75px); transform: rotate(-45deg); }

/* Mobile menu */
.menu {
  position: fixed; inset: 0; z-index: 45;
  background: var(--bg);
  padding: calc(var(--header-h) + var(--s-6)) var(--gutter) var(--s-6);
  display: flex; flex-direction: column; gap: var(--s-7);
  overflow-y: auto;
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path var(--t-3) var(--ease), visibility 0s linear var(--t-3);
}
.menu.is-open { clip-path: inset(0); visibility: visible; transition: clip-path var(--t-3) var(--ease), visibility 0s; }
.menu__list { display: grid; gap: var(--s-2); }
.menu__link {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display); text-transform: var(--case-display); font-size: var(--fs-2); font-weight: var(--weight-display); letter-spacing: var(--track-head);
  opacity: 0; transform: translateY(var(--shift));
  transition: opacity var(--t-3) var(--ease), transform var(--t-3) var(--ease), color var(--t-1) var(--ease);
}
.menu__link .icon { color: var(--gold); width: 1.5rem; height: 1.5rem; }
.menu__link[aria-current="page"] { color: var(--gold-ink); }
.menu.is-open .menu__link { opacity: 1; transform: none; transition-delay: calc(var(--i, 0) * var(--stagger) + var(--t-1)); }
.menu__foot { margin-top: auto; display: grid; gap: var(--s-5); color: var(--ink-2); font-size: var(--fs-sm); }
body.is-locked { overflow: hidden; }

/* Warm band: the raised ground, flat */
.section--warm { background: var(--bg-raised); }

/* ---------- Hero ----------
   Brand first. Three tall frames from the gym fill the first screen (a photograph, the film shot
   there, a photograph); the official wordmark is set large across their foot, with one plain line
   and the two actions beside it. Phones keep the film alone as the ground. */
.hero {
  position: relative;
  isolation: isolate;
  height: 100svh;
  min-height: 38rem;
  display: grid;
  align-items: end;
  overflow: clip;
  background: var(--bg);
}
.hero__frames {
  position: absolute; inset: 0; z-index: -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .4rem;
}
.hero__frame { position: relative; margin: 0; overflow: hidden; background: var(--surface); }
.hero__frame img, .hero__video { width: 100%; height: 100%; object-fit: cover; }
.hero__frames::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, var(--bg-veil) 0%, var(--bg-shade) 14%, transparent 30%),
    linear-gradient(0deg, var(--bg) 0%, var(--bg-veil) 22%, var(--bg-shade) 44%, transparent 64%);
}
/* the wordmark, one letter to a frame: each letter stands centred on its own frame, all on one
   height so they keep the logo's baseline; the line and the two actions are centred beneath */
.hero__bottom { display: grid; gap: var(--s-4); padding-bottom: var(--s-4); }
.letters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: .4rem; align-items: end; }
/* the mask reaches a little above and below the letters, where the O's arcs run past the line */
.letters__one {
  justify-self: center; display: block; overflow: clip;
  padding-block: calc(var(--mark-h) * .05) calc(var(--mark-h) * .03);
  margin-block: calc(var(--mark-h) * -.05) calc(var(--mark-h) * -.03);
}
.letters__o { overflow: visible; }
/* the letters stay quiet over the frames: translucent ivory, the gold a step stronger */
.letters .logo__ink { fill-opacity: .34; }
.letters .logo__gold { fill-opacity: .62; }
.letters__spin { transform-box: view-box; transform-origin: 452.05px 115.8px; animation: orbit var(--t-orbit) linear infinite; }
@keyframes orbit { to { rotate: 360deg; } }
.letters__one .logo { display: block; height: var(--mark-h); width: auto; }
.hero__foot { display: grid; justify-items: center; gap: var(--s-3); padding-inline: var(--gutter); text-align: center; }
.hero__tagline {
  font-size: var(--fs-micro); font-weight: 600; line-height: 1.4;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink-2);
}
.hero__actions { gap: var(--s-2); justify-content: center; }
/* pause / play: a round badge on the film (two bars while it plays, a triangle when paused) */
.hero__play {
  position: absolute; right: var(--s-4); top: calc(var(--header-h) + var(--s-4)); z-index: 1;
  display: grid; place-items: center;
  width: 3rem; height: 3rem;
  border-radius: 50%;
  background: var(--bg-veil);
  border: 1px solid var(--line-2);
  color: var(--ink);
  transition: background-color var(--t-2) var(--ease), color var(--t-2) var(--ease), border-color var(--t-2) var(--ease);
}
.hero__play:hover { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
.hero__play-icon { width: .75rem; height: .85rem; border-inline: 3px solid currentColor; }
.is-paused .hero__play-icon { width: .8rem; border: 0; background: currentColor; clip-path: polygon(10% 0, 100% 50%, 10% 100%); }

/* Hero intro: the frames open upward one after another, then the mark and the copy rise */
.js .hero [data-intro]:not(.hero__frame):not(.letters__one) { opacity: 0; transform: translateY(var(--shift)); }
.js .hero.is-ready [data-intro]:not(.hero__frame):not(.letters__one) {
  opacity: 1; transform: none;
  transition: opacity var(--t-3) var(--ease), transform var(--t-3) var(--ease);
  transition-delay: calc(var(--i, 0) * var(--stagger) * 2 + var(--t-2));
}
/* each letter rises out of its own mask, one after the other */
.js .hero .letters__one .logo { translate: 0 105%; }
.js .hero.is-ready .letters__one .logo { translate: 0 0; transition: translate var(--t-4) var(--ease) calc(var(--i, 0) * var(--stagger) * 3 + var(--t-3)); }
.js .hero .hero__frame { clip-path: inset(100% 0 0 0); }
.js .hero.is-ready .hero__frame { clip-path: inset(0); transition: clip-path var(--t-4) var(--ease) calc(var(--i, 0) * var(--stagger) * 2); }

/* ---------- Facts in large figures (hero, about) ---------- */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.fact { display: grid; gap: var(--s-3); align-content: start; padding: var(--s-5) var(--s-5) 0 0; }
.fact + .fact { padding-left: var(--s-5); border-left: 1px solid var(--line); }
.fact__n {
  display: flex; align-items: baseline; gap: .35rem;
  font-family: var(--font-display); font-weight: var(--weight-display);
  font-size: var(--fs-2); line-height: .9; letter-spacing: var(--track-display);
  color: var(--ink);
}
.fact__n small {
  font-family: var(--font); font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: var(--track-label); text-transform: uppercase;
  color: var(--gold-ink);
}
.fact__t { display: flex; align-items: center; gap: var(--s-3); font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.4; }
.fact__t::before { content: ""; flex: none; width: .8rem; height: .2rem; background: var(--gold); transform: skewX(var(--blade)); }
.facts-band { margin-top: clamp(var(--s-8), 2rem + 4vw, var(--s-9)); }

/* ---------- Reveal on scroll (content stays visible without JS) ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(var(--shift));
  transition: opacity var(--t-3) var(--ease), transform var(--t-3) var(--ease);
  transition-delay: calc(var(--i, 0) * var(--stagger));
}
.js [data-reveal].is-in { opacity: 1; transform: none; }
/* Media: the frame stays measurable (observers ignore fully clipped boxes); the photo unclips inside it. */
.js [data-reveal="media"] { opacity: 1; transform: none; }
.js [data-reveal="media"] img {
  clip-path: inset(100% 0 0 0);
  transform: scale(var(--zoom));
  transition: clip-path var(--t-4) var(--ease), transform var(--t-4) var(--ease), filter var(--t-3) var(--ease);
  transition-delay: calc(var(--i, 0) * var(--stagger));
}
.js [data-reveal="media"].is-in img { clip-path: inset(0); transform: none; }
.js a.media.is-in:hover img, .js a:hover > .media.is-in img, .js .media.is-in:hover img { transform: scale(calc(1 + (var(--zoom) - 1) / 2)); transition-delay: 0s; }
.js [data-reveal="line"] { opacity: 1; transform: scaleX(0); transform-origin: left; transition: transform var(--t-4) var(--ease); }
.js [data-reveal="line"].is-in { transform: none; }

/* Scroll-linked drift: the photo is taller than its frame and travels inside it (site.js → --p) */
[data-parallax] img {
  height: calc(100% + var(--drift));
  translate: 0 calc((var(--p, 1) - 1) * var(--drift));
}

/* ---------- What's in the gym: the four areas as a list, one photo that follows it ----------
   The section heading runs the full width; beneath it the list and a landscape frame of the same
   height stand side by side. Pointing at (or tapping) an area brings its photo forward. */
.zones__body {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--s-6) clamp(var(--s-7), 1rem + 4vw, var(--s-9));
  align-items: center;
}
.zones__side { display: grid; gap: var(--s-6); }
.zones__list { border-top: 1px solid var(--line); }
.zone {
  width: 100%;
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr) auto;
  align-items: center;
  column-gap: var(--s-4);
  padding: var(--s-4) 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  color: var(--ink-3);
  transition: color var(--t-2) var(--ease);
}
.zone__no {
  grid-row: 1 / span 2; align-self: start;
  padding-top: .3rem;
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em;
  color: var(--ink-3);
  transition: color var(--t-2) var(--ease);
}
.zone__name { font-size: var(--fs-4); font-weight: 600; line-height: 1.2; letter-spacing: -.01em; }
.zone__detail { grid-column: 2; font-size: var(--fs-sm); color: var(--ink-3); margin-top: .2rem; }
/* only the open area shows its arrow, in a gold round badge */
.zone__arrow {
  grid-column: 3; grid-row: 1 / span 2;
  box-sizing: content-box;
  width: .9rem; height: .9rem;
  padding: .65rem;
  border-radius: 50%;
  background: var(--gold);
  color: var(--on-gold);
  fill: none; stroke: currentColor; stroke-width: 1.5;
  opacity: 0;
  transform: translateX(calc(var(--shift) * -.25));
  transition: opacity var(--t-2) var(--ease), transform var(--t-2) var(--ease);
}
.zone:hover, .zone[aria-pressed="true"] { color: var(--ink); }
.zone[aria-pressed="true"] .zone__no { color: var(--gold-ink); }
.zone[aria-pressed="true"] .zone__arrow { opacity: 1; transform: none; }
.zone:focus-visible { outline-offset: 4px; }
.zones__note {
  justify-self: start;
  display: flex; align-items: center; gap: var(--s-3);
  padding: .6rem 1.1rem .6rem .7rem;
  background: var(--surface);
  border-radius: var(--r-round);
  font-size: var(--fs-sm); color: var(--ink-2);
}
.zones__frame {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--surface);
}
.zones__shot {
  position: absolute; inset: 0;
  margin: 0;
  opacity: 0;
  scale: calc(1 + (var(--zoom) - 1) / 2);
  transition: opacity var(--t-3) var(--ease), scale var(--t-4) var(--ease);
}
.zones__shot.is-on { opacity: 1; scale: 1; }
.zones__shot img { width: 100%; height: 100%; object-fit: cover; filter: var(--grade); transition: filter var(--t-3) var(--ease); }
.zones__frame:hover .zones__shot img { filter: var(--grade-hover); }
.zones__cap {
  position: absolute; left: var(--s-4); bottom: var(--s-4);
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .55rem 1rem;
  background: var(--bg-veil);
  border-radius: var(--r-round);
  font-size: var(--fs-micro); font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink);
}
.zones__cap .num { color: var(--gold-ink); }

/* ---------- Reformer pilates explained (home, reformer page) ---------- */
.pil {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--s-7) var(--gutter);
  align-items: center;
}
.pil__media { grid-column: 1 / span 5; aspect-ratio: 4 / 5; border-radius: var(--r-lg); }
.pil__body { grid-column: 7 / -1; display: grid; gap: var(--s-7); }
.pil__block { display: grid; gap: var(--s-4); }
.pil__block > p { color: var(--ink-2); max-width: 52ch; }
.pil__h { font-size: var(--fs-4); font-weight: 600; line-height: 1.25; }
.pil__note { display: flex; gap: .6rem; align-items: flex-start; font-size: var(--fs-sm); color: var(--ink-3); line-height: 1.5; max-width: 52ch; }
.pil__note .icon { flex: none; color: var(--gold); margin-top: .1rem; }
.pil__formats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); margin-top: clamp(var(--s-7), 2rem + 2vw, var(--s-8)); }
.pil__format {
  display: grid; gap: var(--s-4); align-content: start; justify-items: start;
  padding: var(--s-6);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.pil__format > .sum__rows { justify-self: stretch; }
.pil__format-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--s-3); width: 100%; }
.pil__who { font-size: var(--fs-micro); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink); }
.pil__text { color: var(--ink-2); font-size: var(--fs-sm); max-width: 48ch; }
.pil__pkg { color: var(--ink); transition: color var(--t-1) var(--ease); }
.pil__pkg:hover { color: var(--gold-ink); }
.pil__format dd { display: grid; justify-items: end; gap: .1rem; }
.pil__per { font-size: var(--fs-xs); font-weight: 400; color: var(--ink-3); }
/* ---------- Programs as a photo grid (home, about) ---------- */
.pp {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: repeat(2, clamp(17rem, 26vw, 24rem));
  gap: var(--s-4);
}
.pp__item {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--surface);
  grid-column: 8 / -1;
}
.pp__item:first-child { grid-column: 1 / span 7; grid-row: 1 / span 2; }
.pp__item:has(:focus-visible) { outline: 2px solid var(--gold-ink); outline-offset: 3px; }
.pp__media { position: absolute; inset: 0; }
.pp__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: var(--grade);
  transition: filter var(--t-3) var(--ease), scale var(--t-4) var(--ease);
}
.pp__item:hover .pp__media img { filter: var(--grade-hover); scale: calc(1 + (var(--zoom) - 1) / 2); }
.pp__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--bg-veil) 0%, var(--bg-shade) 30%, transparent 60%), linear-gradient(0deg, var(--bg-shade), transparent 30%);
}
.pp__body { position: relative; z-index: 1; display: grid; gap: var(--s-3); justify-items: start; padding: var(--s-6); }
.pp__title { font-size: var(--fs-3); font-weight: 600; line-height: 1.1; letter-spacing: -.02em; }
.pp__text { color: var(--ink-2); font-size: var(--fs-sm); max-width: 34ch; }
.pp__item:not(:first-child) .pp__text { max-width: 30ch; }
/* the whole card is the link */
.pp__link::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.pp__link:focus-visible { outline: none; }
.pp__body .link-arrow { margin-top: var(--s-2); }
.pp__item:hover .link-arrow { background-size: 100% 1px; color: var(--gold-ink); }
.pp__item:hover .link-arrow .icon { transform: translate(.15rem, -.15rem); }
.pp__tags { position: absolute; left: var(--s-6); bottom: var(--s-5); z-index: 1; }
.pp__tags li { background: var(--bg-veil); }

/* ---------- Programs index (alternating rows) ---------- */
.programs { display: grid; gap: clamp(var(--s-8), 3rem + 4vw, var(--s-10)); }
.program-row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--s-6) var(--gutter);
  align-items: center;
}
.program-row__media { grid-column: 1 / span 7; aspect-ratio: 16 / 11; border-radius: var(--r-lg); }
.program-row__body { grid-column: 9 / -1; display: grid; gap: var(--s-5); justify-items: start; }
.program-row:nth-child(even) .program-row__media { grid-column: 6 / -1; grid-row: 1; }
.program-row:nth-child(even) .program-row__body { grid-column: 1 / span 4; grid-row: 1; }
.program-row__no {
  font-family: var(--font-display); font-weight: var(--weight-display); font-style: var(--lean);
  font-size: var(--fs-1); line-height: .85; letter-spacing: var(--track-display);
  color: var(--surface-3);
}
.program-row__title a { transition: color var(--t-1) var(--ease); }
.program-row__title a:hover { color: var(--gold-ink); }
.program-row__text { color: var(--ink-2); max-width: 40ch; }

.tags { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.tags li {
  padding: .3rem .8rem;
  border: 1px solid var(--line-2);
  border-radius: var(--r-round);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--ink-2);
}

/* ---------- Checklist (blade bullets) ---------- */
.checklist { display: grid; gap: .7rem; }
.checklist li { position: relative; padding-left: 1.75rem; }
.checklist li::before {
  content: "";
  position: absolute; left: .1rem; top: .68em;
  width: .8rem; height: .22rem;
  background: var(--gold);
  transform: skewX(var(--blade));
}
.checklist--cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4) var(--gutter); }
.checklist--rule li { padding-block: var(--s-4); border-bottom: 1px solid var(--line); }
.checklist--rule li::before { top: calc(var(--s-4) + .68em); }

/* ---------- Statement / split ---------- */
.split {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--s-7) var(--gutter);
  align-items: start;
}
.split__a { grid-column: 1 / span 6; }
.split__b { grid-column: 8 / -1; }
.split--center { align-items: center; }

/* ---------- Plans ---------- */
.seg {
  display: flex; gap: .25rem;
  width: max-content;
  max-width: 100%;
  margin: 0 auto var(--s-7);
  padding: .3rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-round);
  overflow-x: auto;
  scrollbar-width: none;
}
.seg::-webkit-scrollbar { display: none; }
.seg__btn {
  min-height: calc(var(--control-h) - .6rem);
  padding: 0 1.5rem;
  border-radius: var(--r-round);
  font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-2);
  white-space: nowrap;
  transition: background-color var(--t-2) var(--ease), color var(--t-2) var(--ease);
}
.seg__btn:hover { color: var(--ink); }
.seg__btn[aria-selected="true"] { background: var(--ink); color: var(--bg); }
.tabpanel:focus-visible { outline-offset: 8px; }
.js .tabpanel.is-entering .plan { animation: rise var(--t-3) var(--ease) both; animation-delay: calc(var(--i, 0) * var(--stagger)); }
@keyframes rise { from { opacity: 0; transform: translateY(var(--shift)); } }

/* Plan cards: separate soft cards. The figure that defines the plan (months of commitment,
   sessions in a package) stands inside the O of the mark; choosing the card closes the ring. */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16.5rem), 1fr));
  gap: var(--s-4);
}
.plan {
  position: relative;
  display: flex; flex-direction: column; gap: var(--s-5);
  padding: var(--s-6);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: border-color var(--t-2) var(--ease), background-color var(--t-2) var(--ease), translate var(--t-2) var(--ease);
}
.plan:hover, .plan:focus-within { border-color: var(--line-gold); background-color: var(--surface-2); translate: 0 calc(var(--shift) * -.15); }
.plan--featured {
  --ink: #0b0a08; --ink-2: rgb(11 10 8 / .78); --ink-3: rgb(11 10 8 / .62);
  --line: rgb(11 10 8 / .16); --line-2: rgb(11 10 8 / .3); --line-gold: rgb(11 10 8 / .4);
  --gold: #0b0a08; --gold-ink: #0b0a08; --gold-hi: #231f19; --on-gold: #d6a32b;
  --logo-gold: #0b0a08; --surface-2: #e4b23c;
  background: #d6a32b; border-color: #d6a32b; color: var(--ink);
}
.plan--featured:hover, .plan--featured:focus-within { background: #e4b23c; border-color: #e4b23c; }
.plan__top { display: flex; align-items: center; gap: var(--s-4); }
.plan__dial { position: relative; flex: none; width: 5.25rem; aspect-ratio: 1; display: grid; place-items: center; }
.plan__ring { position: absolute; inset: 0; }
.plan:hover .plan__ring .ring__full, .plan:focus-within .plan__ring .ring__full { opacity: 1; }
.plan__figure {
  position: relative;
  display: grid; justify-items: center; gap: .15rem;
  font-family: var(--font-display); font-weight: var(--weight-display);
  font-size: var(--fs-4); line-height: .9; letter-spacing: -.02em;
  color: var(--ink);
}
.plan__figure small {
  font-family: var(--font); font-size: var(--fs-micro); font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; line-height: 1;
  color: var(--ink-3);
}
.plan__name { display: grid; gap: .35rem; min-width: 0; }
.plan__title { font-size: var(--fs-body); font-weight: 600; line-height: 1.3; }
.plan__badge {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: var(--fs-micro); font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold-ink);
}
.plan__badge::before { content: ""; width: .7rem; height: .18rem; background: var(--gold); transform: skewX(var(--blade)); }
.plan__sub { font-size: var(--fs-xs); color: var(--ink-3); line-height: 1.4; }
.plan__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: .1rem .55rem; }
.plan__amount {
  font-family: var(--font-display); font-weight: var(--weight-display);
  font-size: var(--fs-3); line-height: 1; letter-spacing: -.02em;
  white-space: nowrap;
}
.plan__unit { font-size: var(--fs-sm); color: var(--ink-3); font-weight: 500; }
.plan__facts { display: grid; border-top: 1px solid var(--line); }
.plan__facts div {
  display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-4);
  padding: .6rem 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-sm);
}
.plan__facts dt { color: var(--ink-3); }
.plan__facts dd { color: var(--ink); font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.plan__features { font-size: var(--fs-sm); color: var(--ink-2); gap: .5rem; }
.plan__foot { margin-top: auto; display: grid; gap: var(--s-3); padding-top: var(--s-2); }
.plan__more { justify-self: center; font-size: var(--fs-xs); color: var(--ink-3); letter-spacing: .04em; transition: color var(--t-1) var(--ease); }
.plan__more:hover { color: var(--ink); }

/* How it goes: three steps under a hairline, big leaning gold numbers */
.howto {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-5) var(--gutter);
  margin-top: clamp(var(--s-7), 2rem + 2vw, var(--s-8));
}
.howto__step { display: grid; gap: var(--s-3); align-content: start; padding-top: var(--s-4); border-top: 1px solid var(--line-2); }
.howto__no {
  font-family: var(--font-display); font-weight: var(--weight-display); font-style: var(--lean);
  font-size: var(--fs-3); line-height: 1; letter-spacing: var(--track-display);
  color: var(--gold-ink);
}
.howto__text { display: block; font-size: var(--fs-sm); color: var(--ink-3); line-height: 1.5; }
.howto__text strong { display: block; margin-bottom: .3rem; font-size: var(--fs-body); font-weight: 600; color: var(--ink); }
.plans-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4) var(--s-7); margin-top: var(--s-6); }
.plans-foot .plans-note { margin-top: 0; }
.plans-note {
  display: flex; gap: var(--s-4); align-items: flex-start;
  margin-top: var(--s-6);
  max-width: 62rem;
  font-size: var(--fs-sm);
  color: var(--ink-3);
}
.plans-note .icon { color: var(--gold); margin-top: .1rem; }

/* Plan group (memberships page) */
.plan-group + .plan-group { margin-top: clamp(var(--s-8), 3rem + 3vw, var(--s-10)); }
.plan-group__head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: var(--s-3) var(--s-6);
  margin-bottom: var(--s-6);
  padding-bottom: var(--s-4);
  border-bottom: 1px solid var(--line);
}
.plan-group__head p { color: var(--ink-2); font-size: var(--fs-sm); max-width: 52ch; }

/* ---------- Steps (a real sequence) ----------
   Each figure is set large and leaning, quiet at first; it fills with gold as its step arrives. */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-7) var(--gutter); }
.step { display: grid; gap: var(--s-3); align-content: start; }
.step__no {
  font-family: var(--font-display); font-weight: var(--weight-display); font-style: var(--lean);
  font-size: var(--fs-1); line-height: .85; letter-spacing: var(--track-display);
  color: var(--gold-ink);
  font-variant-numeric: tabular-nums;
  margin-bottom: var(--s-4);
}
.step p { color: var(--ink-2); font-size: var(--fs-sm); max-width: 30ch; }
.js .step__no { color: var(--surface-3); transition: color var(--t-4) var(--ease) calc(var(--i, 0) * var(--stagger) * 3 + var(--t-2)); }
.js .step.is-in .step__no { color: var(--gold-ink); }

/* ---------- Visit / location ----------
   The map runs the full width of the page. Above the O pin a card names the gym and sets the
   neighbourhood large; a slim bar under the map carries the address and the two actions. */
.section--map { padding-bottom: 0; }
.visit { position: relative; }
.visit__map {
  position: relative;
  height: clamp(30rem, 62svh, 44rem);
  border-radius: 0;
}
.visit__map img { width: 100%; height: 100%; object-fit: cover; filter: none; object-position: var(--pin-x, 50%) var(--pin-y, 50%); }
.media.visit__map:hover img { filter: none; scale: 1; }
.visit__open { position: absolute; inset: 0; z-index: 1; }
.visit__open:focus-visible { outline: 2px solid var(--gold-ink); outline-offset: -4px; }
.map-pin {
  position: absolute; left: var(--pin-x, 50%); top: var(--pin-y, 50%); z-index: 2;
  width: 3.4rem; height: 3.4rem; translate: -50% -50%; pointer-events: none;
}
.map-pin .ring--mini { width: 100%; height: 100%; }
.map-pin::after { content: ""; position: absolute; inset: 36%; border-radius: 50%; background: var(--gold); }
/* the pin sends out a ring, again and again */
.map-pin::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid var(--gold);
  animation: ping calc(var(--t-4) * 2) var(--ease) infinite;
}
@keyframes ping { from { transform: scale(.5); opacity: 1; } to { transform: scale(2.4); opacity: 0; } }
/* the card stands on the pin: its pointer touches the ring */
.map-card {
  position: absolute; left: var(--pin-x, 50%); top: var(--pin-y, 50%); z-index: 3;
  translate: -50% calc(-100% - 2.6rem);
  display: grid; gap: .15rem; justify-items: center; text-align: center;
  min-width: 15rem;
  padding: var(--s-4) var(--s-5) var(--s-4);
  background: var(--bg);
  border: 1px solid var(--line-gold);
  border-radius: var(--r);
}
.map-card::after {
  content: ""; position: absolute; left: 50%; top: 100%;
  width: 1px; height: 1.5rem; background: var(--gold);
}
.map-card__name { font-size: var(--fs-micro); font-weight: 700; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--ink-2); }
.map-card__place {
  font-family: var(--font-display); font-weight: var(--weight-display); text-transform: var(--case-display);
  font-size: var(--fs-4); line-height: 1.05; letter-spacing: var(--track-head);
  color: var(--gold-ink);
  margin-block: .15rem .3rem;
}
.map-card__line { font-size: var(--fs-xs); color: var(--ink-2); line-height: 1.5; }
.map-card a { position: relative; z-index: 4; color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: .2em; }
.map-card a:hover { color: var(--gold-ink); }
.visit__bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4) var(--s-6);
  padding-block: var(--s-5);
}
.visit__address { display: flex; gap: .6rem; align-items: center; font-size: var(--fs-sm); color: var(--ink-2); }
.visit__address .icon { color: var(--gold); flex: none; }
.info-list { display: grid; }
.info-list li { display: grid; grid-template-columns: 1.5rem 1fr; gap: var(--s-4); padding: var(--s-4) 0; border-bottom: 1px solid var(--line); align-items: start; }
.info-list li:first-child { padding-top: 0; }
.info-list .icon { color: var(--gold); margin-top: .2rem; }
.info-list strong {
  display: block; margin-bottom: .25rem;
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: var(--track-label); text-transform: uppercase;
  color: var(--ink-3);
}
.info-list span, .info-list a { color: var(--ink); font-size: var(--fs-body); line-height: 1.4; }
.info-list a { transition: color var(--t-1) var(--ease); }
.info-list a:hover { color: var(--gold-ink); }

/* ---------- Journal / posts ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-8) var(--s-5); }
.post-card { display: grid; gap: var(--s-4); align-content: start; }
.post-card__media { aspect-ratio: 10 / 9; }
.post-card__date {
  position: absolute; right: var(--s-4); bottom: var(--s-4); z-index: 1;
  display: grid; justify-items: center; gap: .15rem;
  min-width: 3.9rem;
  padding: .55rem .6rem .5rem;
  background: var(--ink);
  border-radius: var(--r);
  color: var(--bg);
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  line-height: 1;
}
.post-card__date b { font-size: var(--fs-4); font-weight: 600; letter-spacing: 0; }
.post-card__body { display: grid; gap: var(--s-3); align-content: start; }
.post-card__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem;
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-3);
}
.post-card__meta time { display: none; }
.post-card__cat { color: var(--gold-ink); }
.post-card__title { font-size: var(--fs-4); font-weight: 600; line-height: 1.25; letter-spacing: -.01em; transition: color var(--t-1) var(--ease); }
.post-card__excerpt { color: var(--ink-2); font-size: var(--fs-sm); }
.post-card:hover .post-card__title { color: var(--gold-ink); }
/* Lead story (journal): photo and text side by side in one soft card */
.post-card--lead {
  grid-column: 1 / -1;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--s-6) var(--gutter);
  align-items: center;
  padding: .5rem;
  background: var(--surface);
  border-radius: var(--r-lg);
}
.post-card--lead .post-card__media { grid-column: 1 / span 6; aspect-ratio: 16 / 11; }
.post-card--lead .post-card__body { grid-column: 7 / -1; display: grid; gap: var(--s-4); padding: var(--s-5) var(--s-6) var(--s-5) 0; }
.post-card--lead .post-card__title { font-size: var(--fs-3); line-height: 1.12; letter-spacing: -.02em; }

.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-8); }
.chip {
  display: inline-flex; align-items: center;
  min-height: var(--control-h-sm);
  padding: 0 1.1rem;
  border: 1px solid var(--line-2);
  border-radius: var(--r-round);
  font-size: var(--fs-sm); font-weight: 500;
  color: var(--ink-2);
  transition: border-color var(--t-1) var(--ease), color var(--t-1) var(--ease), background-color var(--t-1) var(--ease);
}
.chip:hover { border-color: var(--gold); color: var(--ink); }
.chip[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }

.pager { display: flex; justify-content: center; align-items: center; gap: var(--s-2); margin-top: var(--s-9); }
.pager a, .pager span {
  display: inline-grid; place-items: center;
  min-width: var(--control-h-sm); height: var(--control-h-sm);
  padding: 0 .75rem;
  border: 1px solid var(--line-2); border-radius: var(--r-round);
  font-size: var(--fs-sm); font-variant-numeric: tabular-nums;
  transition: border-color var(--t-1) var(--ease), color var(--t-1) var(--ease);
}
.pager a:hover { border-color: var(--gold); color: var(--gold-ink); }
.pager [aria-current="page"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pager .is-gap { border-color: transparent; color: var(--ink-3); }

/* ---------- FAQ ---------- */
.faq { display: grid; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); transition: border-color var(--t-2) var(--ease); }
.faq__item[open] { border-bottom-color: var(--line-gold); }
.faq__q {
  display: flex; justify-content: space-between; align-items: center; gap: var(--s-5);
  padding: var(--s-4) var(--s-4) var(--s-4) var(--s-5);
  font-size: var(--fs-body); font-weight: 600; line-height: 1.4;
  cursor: pointer;
  list-style: none;
  transition: color var(--t-1) var(--ease);
  padding-inline: 0;
  font-size: var(--fs-4);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--gold-ink); }
/* the toggle sits in a round badge, like the arrow on a button */
.faq__toggle {
  position: relative; flex: none;
  width: 2.5rem; height: 2.5rem;
  border-radius: 50%;
  background: var(--surface-3);
  transition: background-color var(--t-2) var(--ease), transform var(--t-2) var(--ease);
}
.faq__toggle::before, .faq__toggle::after {
  content: ""; position: absolute; left: 32%; right: 32%; top: calc(50% - .75px); height: 1.5px; background: var(--ink);
  transition: transform var(--t-2) var(--ease), background-color var(--t-2) var(--ease);
}
.faq__toggle::after { transform: rotate(90deg); }
.faq__item[open] .faq__toggle { background: var(--gold); transform: rotate(180deg); }
.faq__item[open] .faq__toggle::before, .faq__item[open] .faq__toggle::after { background: var(--on-gold); }
.faq__item[open] .faq__toggle::after { transform: rotate(0deg); }
.faq__a { overflow: hidden; }
.faq__a-inner { padding: 0 0 var(--s-6); max-width: var(--measure); color: var(--ink-2); }
.faq__a-inner p + p { margin-top: var(--s-3); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  padding-top: calc(var(--header-h) + var(--s-7));
  padding-bottom: clamp(var(--s-5), 1rem + 1.5vw, var(--s-7));
  position: relative;
}
.page-hero .crumbs { margin-bottom: var(--s-4); }
.page-hero__grid {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--s-5) var(--gutter); align-items: end;
}
.page-hero__grid--solo { grid-template-columns: minmax(0, 1fr); }
.page-hero__title {
  font-size: min(clamp(1.9rem, 1.1rem + 2vw, 3.25rem), var(--fit, 100vw));
  line-height: 1;
  max-width: 16ch; overflow-wrap: break-word;
}
.page-hero__side { display: grid; gap: var(--s-3); justify-items: start; padding-bottom: .2rem; }
.page-hero__lead { color: var(--ink-2); font-size: var(--fs-sm); max-width: 48ch; }
.page-hero--media { padding-bottom: 0; }
.page-hero__media { margin-top: clamp(var(--s-5), 1rem + 1.5vw, var(--s-7)); aspect-ratio: 21 / 9; border-radius: var(--r-lg); }

.crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: .1rem .4rem;
  font-size: var(--fs-micro); font-weight: 500; line-height: 1.4;
  color: var(--ink-3);
}
.crumbs li { display: inline-flex; align-items: center; gap: .4rem; }
.crumbs li + li::before { content: "/"; color: var(--surface-3); font-weight: 400; }
.crumbs a { transition: color var(--t-1) var(--ease); }
.crumbs a:hover { color: var(--ink); }
.crumbs [aria-current="page"] { color: var(--gold-ink); }

/* ---------- Program detail ---------- */
.detail { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s-8) var(--gutter); }
.detail__main { grid-column: 1 / span 7; display: grid; gap: var(--s-8); align-content: start; }
.detail__side { grid-column: 9 / -1; }
.detail__block { display: grid; gap: var(--s-5); }
.sticky { position: sticky; top: calc(var(--header-h) + var(--s-5)); }

.panel {
  padding: var(--s-6);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  display: grid; gap: var(--s-5);
}
.panel--gold { border-color: var(--line-gold); }
.panel__title { font-family: var(--font-display); text-transform: var(--case-display); font-size: var(--fs-card); font-weight: var(--weight-display); letter-spacing: var(--track-head); }
.panel__rows { display: grid; }
.panel__links { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-3) var(--s-6); }
.panel__row {
  display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-4);
  padding: .7rem 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-sm);
}
.panel__row:last-child { border-bottom: 0; }
.panel__row dt { color: var(--ink-3); }
.panel__row dd { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.panel__row--total dd { color: var(--gold-ink); font-size: var(--fs-4); }

.secure {
  display: flex; align-items: center; gap: var(--s-3);
  font-size: var(--fs-xs); color: var(--ink-3);
}
.secure .icon { color: var(--gold); width: 1.15rem; height: 1.15rem; }
.paylogos { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); }
.paylogos img { height: 1.6rem; width: auto; opacity: .85; }

/* ---------- Prose (articles, legal) ---------- */
.prose { max-width: var(--measure); font-size: var(--fs-prose); line-height: 1.75; color: var(--ink-2); }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { margin-top: 2.4em; font-family: var(--font-display); text-transform: var(--case-display); font-size: var(--fs-3); font-weight: var(--weight-display); color: var(--ink); line-height: 1.05; letter-spacing: var(--track-head); }
.prose h3 { margin-top: 2em; font-family: var(--font-display); text-transform: var(--case-display); font-size: var(--fs-card); font-weight: var(--weight-display); color: var(--ink); line-height: 1.08; letter-spacing: var(--track-head); }
.prose h4 { margin-top: 1.6em; font-size: var(--fs-body); font-weight: 600; color: var(--ink); }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: .6em; }
.prose strong { color: var(--ink); }
.prose a { color: var(--gold-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; transition: color var(--t-1) var(--ease); }
.prose a:hover { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.35rem; }
.prose li + li { margin-top: .45em; }
.prose ul li::marker { color: var(--gold); }
.prose ol li::marker { color: var(--gold-ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.prose blockquote { padding-left: var(--s-5); border-left: 1px solid var(--gold); color: var(--ink); font-size: var(--fs-lead); line-height: 1.55; }
.prose img { border-radius: var(--r); filter: var(--grade); margin-block: 2em; }
.prose figure { margin-block: 2em; }
.prose figure img { margin: 0; }
.prose figcaption { margin-top: .75rem; font-size: var(--fs-sm); color: var(--ink-3); }
.prose hr { border: 0; height: 1px; background: var(--line); margin-block: 2.5em; }
.prose table { width: 100%; font-size: var(--fs-sm); display: block; overflow-x: auto; }
.prose th, .prose td { padding: .7rem .9rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { color: var(--ink); font-weight: 600; }

.article { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s-7) var(--gutter); }
.article__body { grid-column: 1 / span 8; }
.article__side { grid-column: 10 / -1; }
.toc { display: grid; gap: var(--s-4); font-size: var(--fs-sm); }
.toc ol { display: grid; gap: .1rem; border-left: 1px solid var(--line); list-style: none; padding: 0; }
.toc a {
  display: block; padding: .45rem 0 .45rem var(--s-4);
  margin-left: -1px; border-left: 1px solid transparent;
  color: var(--ink-3); line-height: 1.4;
  transition: color var(--t-1) var(--ease), border-color var(--t-1) var(--ease);
}
.toc a:hover, .toc a.is-active { color: var(--ink); border-left-color: var(--gold); }
.article__meta { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; align-items: center; font-size: var(--fs-sm); color: var(--ink-3); }
.article__meta .post-card__cat { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.article__cover { aspect-ratio: 21 / 9; margin-top: clamp(var(--s-7), 2rem + 3vw, var(--s-9)); border-radius: var(--r-lg); }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); padding-top: var(--s-6); margin-top: var(--s-8); border-top: 1px solid var(--line); font-size: var(--fs-sm); color: var(--ink-3); }
.share a {
  display: inline-grid; place-items: center;
  width: var(--control-h-sm); height: var(--control-h-sm);
  border: 1px solid var(--line-2); border-radius: 50%;
  color: var(--ink-2);
  transition: border-color var(--t-1) var(--ease), color var(--t-1) var(--ease);
}
.share a:hover { border-color: var(--gold); color: var(--gold-ink); }
.share .icon { width: 1.05rem; height: 1.05rem; }

.callout {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-5) var(--s-7); align-items: center;
  margin-top: var(--s-8);
  padding: var(--s-7);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.callout p { color: var(--ink-2); margin-top: var(--s-2); }

.doc-nav { display: grid; gap: var(--s-4); font-size: var(--fs-sm); }
.doc-nav ul { display: grid; border-top: 1px solid var(--line); list-style: none; padding: 0; }
.doc-nav a {
  display: flex; justify-content: space-between; gap: var(--s-3);
  padding: .8rem 0; border-bottom: 1px solid var(--line);
  color: var(--ink-2); transition: color var(--t-1) var(--ease);
}
.doc-nav a:hover, .doc-nav a[aria-current="page"] { color: var(--ink); }
.doc-nav a[aria-current="page"]::after { content: ""; align-self: center; width: .8rem; height: .2rem; background: var(--gold); transform: skewX(var(--blade)); }

/* ---------- Checkout ----------
   Short and quiet: a small title, the pay-mode choice as two slim rows, four fields, the consents
   and one button that names the amount; the flat summary beside. No boxes inside boxes, no
   gradients, no glow (user decision, 10.11.2026). The pay-mode choice switches the summary, the
   automatic-charge consent and the button label without script (:has). */
.co { padding: calc(var(--header-h) + var(--s-6)) 0 var(--section); }
.co__head { display: grid; gap: var(--s-4); justify-items: start; margin-bottom: var(--s-7); }
.co__title {
  font-family: var(--font-display); font-weight: var(--weight-display); text-transform: var(--case-display);
  font-size: var(--fs-3); line-height: 1; letter-spacing: var(--track-head);
}
.co__lead { max-width: 44rem; color: var(--ink-2); }
.co__steps { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.co__steps li {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .45rem .95rem;
  border: 1px solid var(--line);
  border-radius: var(--r-round);
  font-size: var(--fs-xs); font-weight: 600;
  color: var(--ink-3);
}
.co__steps .num { font-size: var(--fs-micro); letter-spacing: .06em; }
.co__steps .is-done { color: var(--ink-2); border-color: var(--line-2); }
.co__steps [aria-current="step"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.co__grid {
  display: grid;
  grid-template-columns: minmax(0, 34rem) minmax(0, 24rem);
  justify-content: space-between;
  gap: var(--s-7) var(--s-8);
  align-items: start;
  margin-top: var(--s-6);
}
.co__form { display: grid; gap: var(--s-6); align-content: start; }
.co__form .form-grid { gap: var(--s-4); }
.co__form .field__label { font-size: var(--fs-xs); color: var(--ink-2); }
.co__form .input { min-height: var(--control-h-sm); font-size: var(--fs-sm); }
.co__form .notice { margin: 0; }
/* the app's consent step still uses numbered blocks */
.co__block { display: grid; gap: var(--s-5); padding-block: var(--s-6) var(--s-7); border-top: 1px solid var(--line); }
.co__legend { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem var(--s-3); font-size: var(--fs-body); font-weight: 600; line-height: 1.25; }
.co__n { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; color: var(--gold-ink); }
.co__hint { width: 100%; font-size: var(--fs-xs); font-weight: 400; color: var(--ink-3); }
.co__checks { display: grid; gap: var(--s-3); }
.co__checks .check { font-size: var(--fs-xs); }
.co__submit { display: grid; gap: var(--s-3); }
.co__secure { display: flex; gap: .6rem; align-items: flex-start; font-size: var(--fs-xs); color: var(--ink-3); line-height: 1.5; }
.co__secure .icon { flex: none; color: var(--gold); width: 1rem; height: 1rem; margin-top: .1rem; }
.co__secure a { color: var(--ink-2); text-decoration: underline; text-underline-offset: .2em; }
.co__aside { position: sticky; top: calc(var(--header-h) + var(--s-5)); }
/* the info request reuses the checkout layout: intro over the form, interest as a 2×2 choice */
.co__intro { display: grid; gap: var(--s-3); }
.co__lead { font-size: var(--fs-sm); color: var(--ink-2); max-width: 46ch; }
.paymodes--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.paymodes--grid > legend { grid-column: 1 / -1; margin-bottom: var(--s-2); padding: 0; }
.paymodes--grid .paymode { grid-template-columns: minmax(0, 1fr); padding: var(--s-3) var(--s-4); }
.co__form .textarea--short { min-height: 5.5rem; font-size: var(--fs-sm); }
.sum dd a { color: var(--ink); transition: color var(--t-1) var(--ease); }
.sum dd a:hover { color: var(--gold-ink); }
.sum > .btn { justify-self: start; }

/* Pay mode: two slim rows; the chosen one takes the gold edge and a filled radio */
.paymodes { display: grid; gap: var(--s-2); border: 0; margin: 0; padding: 0; min-width: 0; }
.paymode {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .15rem var(--s-4); align-items: baseline;
  padding: var(--s-4) var(--s-5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  cursor: pointer;
  transition: border-color var(--t-1) var(--ease), background-color var(--t-1) var(--ease);
}
.paymode input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.paymode:hover { border-color: var(--line-2); }
.paymode:has(input:checked) { border-color: var(--gold); background: var(--surface-2); }
.paymode:has(input:focus-visible) { outline: 2px solid var(--gold-ink); outline-offset: 3px; }
.paymode__name { display: inline-flex; align-items: center; gap: .6rem; font-size: var(--fs-sm); font-weight: 600; }
.paymode__name::before {
  content: ""; flex: none;
  width: 1rem; height: 1rem;
  border: 1px solid var(--line-2); border-radius: 50%;
  transition: border var(--t-1) var(--ease);
}
.paymode:has(input:checked) .paymode__name::before { border: .31rem solid var(--gold); }
.paymode__price { font-size: var(--fs-sm); font-weight: 700; white-space: nowrap; text-align: right; }
.paymode__price small { margin-left: .25rem; font-size: var(--fs-xs); font-weight: 500; color: var(--ink-3); }
.paymode__text { grid-column: 1 / -1; padding-left: 1.6rem; font-size: var(--fs-xs); color: var(--ink-3); line-height: 1.45; }
/* the choice switches the summary, the automatic-charge consent and the button label */
.co:has(input[name="mode"][value="full"]:checked) [data-for="monthly"],
.co:has(input[name="mode"][value="monthly"]:checked) [data-for="full"] { display: none; }

/* Summary card (checkout, app step, result) */
.sum {
  display: grid; gap: var(--s-5);
  padding: var(--s-6);
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--r-lg);
}
.sum__head { display: flex; align-items: center; gap: var(--s-4); }
.sum__name { display: grid; gap: .3rem; min-width: 0; }
.sum__title { font-size: var(--fs-4); font-weight: 600; line-height: 1.25; }
.sum__sub { font-size: var(--fs-xs); color: var(--ink-3); }
.sum__mode { display: grid; gap: var(--s-4); }
.sum__rows { display: grid; border-top: 1px solid var(--line); }
.sum__rows div {
  display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-4);
  padding: .65rem 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-sm);
}
.sum__rows dt { color: var(--ink-3); }
.sum__rows dd { color: var(--ink); font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.sum__today { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-4); }
.sum__today span { font-size: var(--fs-sm); color: var(--ink-2); }
.sum__today strong { font-family: var(--font-display); font-weight: var(--weight-display); font-size: var(--fs-3); letter-spacing: -.02em; color: var(--gold-ink); white-space: nowrap; }
.sum__note { font-size: var(--fs-xs); color: var(--ink-3); line-height: 1.5; }
.sum__change { justify-self: start; font-size: var(--fs-xs); color: var(--ink-3); text-decoration: underline; text-underline-offset: .2em; transition: color var(--t-1) var(--ease); }
.sum__change:hover { color: var(--ink); }

/* Result: the ring, the message and the actions beside the order card; next steps beneath */
.done { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-6) clamp(var(--s-6), 1rem + 3vw, var(--s-8)); align-items: center; margin-bottom: var(--s-6); }
.done__main { display: grid; gap: var(--s-5); justify-items: start; }
.done__note { display: flex; gap: .6rem; align-items: flex-start; font-size: var(--fs-sm); color: var(--ink-2); }
.done__note .icon { flex: none; color: var(--gold); margin-top: .1rem; }
.result__ring { width: clamp(5.5rem, 4.5rem + 3vw, 7.5rem); animation: ring-draw var(--t-4) var(--ease) backwards; }
.result__ring .ring__full { transition: opacity var(--t-4) var(--ease) var(--t-3); }
.result__ring--fail .ring__arc { fill: var(--ink-3); }

/* ---------- Closing call: the headline set huge over a photograph ---------- */
.cta-band {
  position: relative;
  isolation: isolate;
  overflow: clip;
  display: grid;
  align-items: end;
  min-height: min(52rem, 92svh);
  padding-block: var(--section) var(--s-9);
}
.cta-band__photo { position: absolute; inset: 0; z-index: -1; margin: 0; overflow: hidden; background: var(--bg); }
.cta-band__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; filter: var(--grade); }
.cta-band__photo::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, var(--bg) 0%, var(--bg-shade) 28%, transparent 50%),
    linear-gradient(0deg, var(--bg) 0%, var(--bg-veil) 20%, transparent 62%),
    linear-gradient(90deg, var(--bg-shade), transparent 60%);
}
.cta-band__inner { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s-6) var(--gutter); align-items: end; }
.cta-band__title { grid-column: 1 / span 8; max-width: 10ch; }
.cta-band__copy { grid-column: 9 / -1; display: grid; gap: var(--s-5); justify-items: start; padding-bottom: .6rem; }
.cta-band__copy .lead { font-size: var(--fs-body); color: var(--ink-2); }

/* ---------- Footer ---------- */
.site-footer { padding-top: var(--s-8); border-top: 1px solid var(--line); overflow: clip; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: var(--s-7) var(--gutter); }
.footer-brand { display: grid; gap: var(--s-5); align-content: start; }
.footer-brand .logo { height: 2rem; }
.footer-brand p { color: var(--ink-2); font-size: var(--fs-sm); max-width: 32ch; }
.footer-col h2 { font-size: var(--fs-xs); font-weight: 600; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--ink-3); margin-bottom: var(--s-4); }
.footer-col ul { display: grid; gap: .55rem; list-style: none; padding: 0; }
.footer-col a, .footer-col li { font-size: var(--fs-sm); color: var(--ink-2); transition: color var(--t-1) var(--ease); }
.footer-col a:hover { color: var(--ink); }
.footer-contact { display: grid; gap: .9rem; font-size: var(--fs-sm); color: var(--ink-2); }
.footer-contact li { display: grid; grid-template-columns: 1.15rem 1fr; gap: .75rem; align-items: start; }
.footer-contact .icon { color: var(--gold); width: 1.15rem; height: 1.15rem; margin-top: .2rem; }
.footer-contact a:hover { color: var(--ink); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s-4) var(--s-6);
  margin-top: var(--s-8); padding-block: var(--s-5);
  border-block: 1px solid var(--line);
  font-size: var(--fs-xs); color: var(--ink-3);
}
.footer-bottom__legal { display: grid; gap: .2rem; }

/* ---------- WhatsApp ---------- */
.wa {
  position: fixed; right: var(--gutter); bottom: var(--gutter); z-index: 40;
  display: grid; place-items: center;
  width: 3.4rem; height: 3.4rem;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--line-gold);
  color: var(--gold-ink);
  box-shadow: var(--shadow);
  opacity: 0; transform: translateY(1rem); visibility: hidden;
  transition: opacity var(--t-2) var(--ease), transform var(--t-2) var(--ease), visibility 0s linear var(--t-2), background-color var(--t-1) var(--ease), color var(--t-1) var(--ease);
}
.wa.is-visible { opacity: 1; transform: none; visibility: visible; transition: opacity var(--t-2) var(--ease), transform var(--t-2) var(--ease), visibility 0s, background-color var(--t-1) var(--ease), color var(--t-1) var(--ease); }
.wa:hover { background: var(--gold); color: var(--on-gold); }
.wa .icon { width: 1.5rem; height: 1.5rem; }

/* ---------- 404 ---------- */
.lost { min-height: 100svh; display: grid; place-items: center; padding: calc(var(--header-h) + var(--s-7)) var(--gutter) var(--s-8); text-align: center; }
.lost__inner { display: grid; justify-items: center; gap: var(--s-5); width: min(100%, var(--wrap)); container-type: inline-size; }
.lost__inner .h1 { --fit: 11cqi; }
.lost__inner .lead { max-width: 46ch; }
.lost__ring { width: clamp(8rem, 6rem + 8vw, 13rem); margin-bottom: var(--s-4); animation: ring-draw var(--t-4) var(--ease) backwards; }

/* ---------- Page details ---------- */
main:focus { outline: none; }
.post-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.steps--pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 0; }
.steps--pillars .step { padding: var(--s-6); background: var(--surface); border-radius: var(--r-lg); }
.steps--pillars .step p { font-size: var(--fs-body); }
.article__title { max-width: 22ch; font-size: var(--fs-headline); line-height: 1; }
.prose--legal { font-size: var(--fs-body); }
.prose--legal h2 { font-size: var(--fs-4); }

/* Developer docs (/api/docs): same reading column as the legal pages, plus code and checklists */
.prose--doc { font-size: var(--fs-body); max-width: none; }
.prose--doc > :is(p, ul, ol) { max-width: var(--measure); }
.prose--doc h2 { font-size: var(--fs-4); scroll-margin-top: calc(var(--header-h) + var(--s-5)); }
.prose--doc h3 { scroll-margin-top: calc(var(--header-h) + var(--s-5)); }
.prose--doc h3 code { font-size: .8em; }
.prose code { font-family: var(--font-mono); font-size: .88em; padding: .1em .35em; border-radius: calc(var(--r) / 2); background: var(--surface-2); color: var(--ink); overflow-wrap: anywhere; }
.prose pre { overflow-x: auto; padding: var(--s-4) var(--s-5); border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-raised); font-size: var(--fs-xs); line-height: 1.6; }
.prose pre code { padding: 0; background: none; font-size: inherit; color: var(--ink-2); overflow-wrap: normal; white-space: pre; }
.prose td code { overflow-wrap: normal; white-space: nowrap; }
.prose .tasks { list-style: none; padding-left: 0; }
.prose .task { display: flex; gap: var(--s-3); align-items: baseline; }
.task__box { flex: none; width: .9em; height: .9em; border: 1px solid var(--line-gold); border-radius: calc(var(--r) / 3); transform: translateY(.1em); }
.task__box.is-done { background: var(--gold); border-color: var(--gold); }
.article__body > .notice { margin-bottom: var(--s-6); }
.paybar { display: inline-flex; align-items: center; gap: .55rem; font-size: var(--fs-xs); color: var(--ink-3); }
.paybar .icon { color: var(--gold); width: 1rem; height: 1rem; }
.map-credit {
  position: absolute; right: .75rem; bottom: .75rem; z-index: 2;
  font-size: var(--fs-xs); color: var(--ink-3);
}
.share__copy {
  display: inline-grid; place-items: center;
  width: var(--control-h-sm); height: var(--control-h-sm);
  border: 1px solid var(--line-2); border-radius: 50%;
  color: var(--ink-2);
  transition: border-color var(--t-1) var(--ease), color var(--t-1) var(--ease);
}
.share__copy:hover, .share__copy.is-copied { border-color: var(--gold); color: var(--gold-ink); }
.share__copy .icon { width: 1.05rem; height: 1.05rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav { display: none; }
  .site-header__bar { grid-template-columns: auto minmax(0, 1fr); }
  .menu-btn { display: inline-flex; }
  .site-header__actions { margin-left: auto; }
  .program-row__body, .program-row:nth-child(even) .program-row__body { grid-column: span 12; grid-row: auto; }
  .program-row__media, .program-row:nth-child(even) .program-row__media { grid-column: span 12; grid-row: auto; }
  .detail__main, .detail__side, .article__body, .article__side { grid-column: 1 / -1; }
  .article__side, .detail--buy .detail__side { order: -1; }
  .co__grid, .done { grid-template-columns: minmax(0, 1fr); }
  .co__aside { position: static; }
  .article__side .toc { display: none; }
  .sticky { position: static; }
  .post-card--lead .post-card__media, .post-card--lead .post-card__body { grid-column: 1 / -1; }
  .post-card--lead .post-card__body { padding: 0 var(--s-5) var(--s-5); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-band__title, .cta-band__copy { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  :root { --header-h: 4.5rem; --bar-h: 3.75rem; }
  /* phones: the film alone is the ground of the first screen */
  .hero__frames { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .hero__frame:not(.hero__frame--film) { display: none; }
  /* one frame: the three letters stand together, as in the logo */
  :root { --mark-h: 22vw; }
  .letters { grid-template-columns: repeat(3, auto); justify-content: center; column-gap: .35rem; }
  .hero__bottom { gap: var(--s-4); padding-bottom: var(--s-4); }
  .sec-head { grid-template-columns: 1fr; align-items: start; }
  .split__a, .split__b { grid-column: 1 / -1; }
  .steps--pillars { grid-template-columns: 1fr; }
  .howto { grid-template-columns: minmax(0, 1fr); }
  .pil__media, .pil__body { grid-column: 1 / -1; }
  .pil__media { aspect-ratio: 4 / 3; }
  .pil__formats { grid-template-columns: minmax(0, 1fr); }
  .zones__body { grid-template-columns: minmax(0, 1fr); }
  .zones__frame { order: -1; }
  .pp { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-auto-rows: clamp(22rem, 80vw, 30rem); }
  .pp__item, .pp__item:first-child { grid-column: 1; grid-row: auto; }
  .pp__media img { filter: var(--grade-hover); }
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-hero__grid { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .callout { grid-template-columns: 1fr; padding: var(--s-6); }
}
@media (max-width: 640px) {
  .post-grid, .post-grid--2, .checklist--cols { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .fact { gap: var(--s-2); padding-right: var(--s-3); }
  .fact + .fact { padding-left: var(--s-3); }
  .fact__n { font-size: var(--fs-3); }
  .fact__t { font-size: var(--fs-xs); }
  .fact__t::before { display: none; }
  .pp__body { padding: var(--s-5); }
  .pp__tags { left: var(--s-5); }
  .footer-grid { grid-template-columns: 1fr; }
  .panel, .plan { padding: var(--s-5); }
  .page-hero__ring { opacity: .3; }
  .seg { width: 100%; }
  .paymodes { grid-template-columns: minmax(0, 1fr); }
  .sum { padding: var(--s-5); }
  .site-header .lang { display: none; }
  .site-header__actions { gap: var(--s-3); }
  .seg__btn { flex: 1 1 0; padding: .45rem .6rem; white-space: normal; line-height: 1.2; min-height: 2.75rem; letter-spacing: .04em; }
  .article__cover, .page-hero__media { aspect-ratio: 4 / 3; }
}

/* ---------- Gold band ----------
   Solid gold between the hero and the first section: what the gym is, running slowly sideways,
   the W's blade between the items. */
.ticker { overflow: hidden; background: var(--gold); color: var(--on-gold); border-block: 1px solid var(--gold-hi); }
.ticker__track { display: flex; width: max-content; animation: ticker var(--t-ticker) linear infinite; }
.ticker__list { display: flex; align-items: center; flex: none; margin: 0; padding: 0; list-style: none; }
.ticker__list li {
  display: inline-flex; align-items: center; gap: var(--s-6);
  padding: var(--s-4) var(--s-6) var(--s-4) 0;
  font-family: var(--font-display); font-weight: var(--weight-display); font-style: var(--lean);
  font-size: var(--fs-4); line-height: 1; text-transform: var(--case-display); letter-spacing: var(--track-head);
  white-space: nowrap;
}
.ticker__list li::after { content: ""; width: 1.4rem; height: .32rem; background: currentColor; transform: skewX(var(--blade)); }
@keyframes ticker { to { transform: translateX(-50%); } }


/* ---------- Page head ---------- */
.co .crumbs { margin-bottom: var(--s-2); }

/* ---------- Rails (phones): card rows scroll sideways instead of stacking ---------- */
.rail-hint { display: none; }
@media (max-width: 760px) {
  .rail-hint {
    display: inline-flex; align-items: center; gap: .45rem;
    margin: 0 0 var(--s-3);
    font-size: var(--fs-micro); font-weight: 700; letter-spacing: var(--track-label); text-transform: uppercase;
    color: var(--ink-3);
  }
  .rail-hint .icon { width: .9rem; height: .9rem; color: var(--gold); animation: nudge var(--t-4) var(--ease-io) infinite alternate; }
  @keyframes nudge { to { translate: var(--s-2) 0; } }
  .rail {
    display: grid; grid-auto-flow: column; grid-template-columns: none; grid-template-rows: none;
    grid-auto-columns: min(84%, 22rem); grid-auto-rows: auto;
    gap: var(--s-3);
    overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); padding-bottom: var(--s-2);
    scrollbar-width: none;
  }
  .rail::-webkit-scrollbar { display: none; }
  .rail > * { scroll-snap-align: start; min-width: 0; }
  .rail.pp > .pp__item, .rail.pp > .pp__item:first-child { grid-column: auto; grid-row: auto; min-height: 26rem; }
  .rail.howto { grid-auto-columns: min(72%, 18rem); }
  .rail.howto > .howto__step { padding: var(--s-4); border: 1px solid var(--line); border-radius: var(--r); }
  .map-card { min-width: 13rem; padding: var(--s-3) var(--s-4); }
}
/* the start day sits on its own above the contact fields, half width like one of them */
.co__start { max-width: calc(50% - var(--s-2)); }
.co__start .input { min-height: var(--control-h-sm); font-size: var(--fs-sm); }
@media (max-width: 640px) { .co__start { max-width: none; } }
/* the page head keeps its buttons small, like .btn--sm */
.page-hero__side .btn { min-height: var(--control-h-sm); padding: 0 1.15rem; letter-spacing: .07em; }
.page-hero__side .btn > .icon--arrow { width: .85rem; height: .85rem; padding: calc((var(--control-h-sm) - .85rem - .5rem - 2px) / 2); }

/* ---------- Bilgi al: photo and direct lines on one side, the short form on the other ----------
   One block about the height of the screen, no empty middle (user, 10.11.2026). */
.ask { padding: calc(var(--header-h) + var(--s-5)) 0 var(--s-8); }
.ask__grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(var(--s-6), 1rem + 3vw, var(--s-9));
  align-items: stretch;
}
.ask__media {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: min(44rem, calc(100svh - var(--header-h) - var(--s-8)));
  border-radius: var(--r-lg);
  display: flex; align-items: flex-end;
}
.ask__media img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; filter: var(--grade); }
.ask__media::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, var(--bg-veil) 0%, var(--bg-shade) 42%, transparent 70%); }
.ask__direct { display: grid; gap: var(--s-3); justify-items: start; padding: var(--s-6); }
.ask__direct-title { font-size: var(--fs-micro); font-weight: 700; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--ink-2); }
.ask__phone {
  font-family: var(--font-display); font-weight: var(--weight-display);
  font-size: var(--fs-3); line-height: 1; letter-spacing: var(--track-head);
  color: var(--ink); transition: color var(--t-1) var(--ease);
}
.ask__phone:hover { color: var(--gold-ink); }
.ask__hours { font-size: var(--fs-sm); color: var(--ink-2); }
.ask__direct .actions { margin-top: var(--s-2); gap: var(--s-2); }
.ask__form { display: grid; gap: var(--s-5); align-content: center; max-width: 36rem; }
.ask__form .crumbs { margin-bottom: var(--s-2); }
.ask__intro { display: grid; gap: var(--s-3); }
.ask__title {
  font-family: var(--font-display); font-weight: var(--weight-display); text-transform: var(--case-display);
  font-size: clamp(2rem, 1.2rem + 2vw, 3.25rem); line-height: 1; letter-spacing: var(--track-head);
}
.ask__lead { font-size: var(--fs-sm); color: var(--ink-2); max-width: 44ch; }
.ask__form .form-grid { gap: var(--s-4); }
.ask__form .field__label { font-size: var(--fs-xs); color: var(--ink-2); }
.ask__form .input { min-height: var(--control-h-sm); font-size: var(--fs-sm); }
.ask__form .check { font-size: var(--fs-xs); }
.ask__form > .btn { justify-self: start; }
/* interests as small pills: the chosen one fills with ivory */
.pills { display: flex; flex-wrap: wrap; gap: var(--s-2); border: 0; margin: 0; padding: 0; min-width: 0; }
.pills > legend { width: 100%; padding: 0; margin-bottom: var(--s-2); }
.pill { position: relative; cursor: pointer; }
.pill input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.pill > span {
  display: inline-flex; align-items: center; min-height: var(--control-h-xs);
  padding: 0 1rem;
  border: 1px solid var(--line-2); border-radius: var(--r-round);
  font-size: var(--fs-xs); font-weight: 600; color: var(--ink-2);
  transition: background-color var(--t-1) var(--ease), color var(--t-1) var(--ease), border-color var(--t-1) var(--ease);
}
.pill:hover > span { border-color: var(--ink-3); color: var(--ink); }
.pill input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.pill input:focus-visible + span { outline: 2px solid var(--gold-ink); outline-offset: 2px; }
@media (max-width: 900px) {
  .ask__grid { grid-template-columns: minmax(0, 1fr); }
  .ask__form { order: -1; max-width: none; }
  .ask__media { min-height: 34rem; }
  .ask__media img { object-position: 50% 12%; }
  .ask__media::after { background: linear-gradient(0deg, var(--bg) 0%, var(--bg-veil) 34%, transparent 62%); }
}

/* ---------- Programs index: three tall photo cards side by side ----------
   The number and the name sit large at the foot of each photograph, with three plain rows that
   tell the programs apart. On wide screens the card under the pointer widens; on phones the
   cards scroll sideways (.rail). Replaces the zig-zag rows (user, 10.11.2026). */
.prog-section { padding-top: 0; }
.prog-index { display: flex; gap: var(--s-3); height: min(46rem, calc(100svh - var(--header-h) - var(--s-7))); min-height: 34rem; }
.prog-card {
  position: relative; isolation: isolate; overflow: hidden;
  flex: 1 1 0; min-width: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  border-radius: var(--r-lg);
  background: var(--surface);
  transition: flex-grow var(--t-3) var(--ease);
}
.prog-card:hover, .prog-card:focus-within { flex-grow: 1.55; }
.prog-card__media { position: absolute; inset: 0; z-index: -2; margin: 0; }
.prog-card__media img { width: 100%; height: 100%; object-fit: cover; filter: var(--grade); transition: scale var(--t-4) var(--ease), filter var(--t-3) var(--ease); }
.prog-card:hover .prog-card__media img { scale: var(--zoom); filter: var(--grade-hover); }
/* the scrim keeps the type readable on any photograph */
.prog-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, var(--bg) 0%, var(--bg-veil) 30%, var(--bg-shade) 55%, transparent 80%); }
.prog-card__no {
  position: absolute; top: var(--s-5); left: var(--s-6);
  font-family: var(--font-display); font-weight: var(--weight-display); font-style: var(--lean);
  font-size: var(--fs-3); line-height: 1; color: var(--gold-ink);
}
.prog-card__body { display: grid; gap: var(--s-4); justify-items: start; padding: var(--s-6); }
.prog-card__title {
  font-family: var(--font-display); font-weight: var(--weight-display); text-transform: var(--case-display);
  font-size: clamp(1.8rem, 1rem + 1.8vw, 3rem); line-height: .98; letter-spacing: var(--track-head);
}
.prog-card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.prog-card__link:focus-visible { outline: none; }
.prog-card:has(.prog-card__link:focus-visible) { outline: 2px solid var(--gold-ink); outline-offset: 3px; }
.prog-card__text { font-size: var(--fs-sm); color: var(--ink-2); max-width: 40ch; }
.prog-card__facts { display: grid; width: 100%; border-top: 1px solid var(--line-2); }
.prog-card__facts div { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: var(--s-3); padding: .55rem 0; border-bottom: 1px solid var(--line); font-size: var(--fs-xs); }
.prog-card__facts dt { color: var(--ink-3); font-weight: 600; letter-spacing: .04em; }
.prog-card__facts dd { color: var(--ink); }
.prog-card .link-arrow { margin-top: var(--s-1); }
.prog-card:hover .link-arrow { background-size: 100% 1px; color: var(--gold-ink); }
@media (max-width: 1100px) and (min-width: 761px) {
  .prog-index { height: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .prog-card { min-height: 40rem; }
}
@media (max-width: 760px) {
  .prog-index { display: grid; height: auto; min-height: 0; }
  .prog-index > .prog-card { min-height: 34rem; flex: none; }
  .prog-card:hover, .prog-card:focus-within { flex-grow: 0; }
}

/* ---------- Memberships page: one price table per group ----------
   The cards of a group stand side by side in one panel, divided by hairlines; the featured
   plan is the gold column and stands a little proud of the panel. What every plan shares is
   said once underneath (user, 10.11.2026: twelve identical boxes in a row). */
.plans-page { padding-top: var(--s-2); }
.plans-page .seg { margin: 0 0 var(--s-6); }
.plans-grid--joined {
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.plans-grid--joined > .plan {
  background: transparent;
  border: 0;
  border-radius: 0;
  translate: none;
}
.plans-grid--joined > .plan + .plan { border-left: 1px solid var(--line); }
.plans-grid--joined > .plan:hover, .plans-grid--joined > .plan:focus-within { background: var(--surface-2); translate: none; }
.plans-grid--joined > .plan--featured {
  background: #d6a32b;
  border-radius: var(--r-lg);
  margin-block: calc(var(--s-3) * -1);
  padding-block: calc(var(--s-6) + var(--s-3));
  box-shadow: var(--shadow);
  z-index: 1;
}
.plans-grid--joined > .plan--featured:hover, .plans-grid--joined > .plan--featured:focus-within { background: #e4b23c; }
.plans-grid--joined > .plan--featured + .plan { border-left-color: transparent; }
.plans-grid--joined > .plan:first-child:not(.plan--featured) { border-radius: var(--r-lg) 0 0 var(--r-lg); }
.plans-grid--joined > .plan:last-child:not(.plan--featured) { border-radius: 0 var(--r-lg) var(--r-lg) 0; }
.plans-common {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3) var(--s-6);
  margin-top: var(--s-6); padding-top: var(--s-4);
  border-top: 1px solid var(--line);
}
.plans-common__text { font-size: var(--fs-sm); color: var(--ink-2); }
.plans-common__list { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-6); font-size: var(--fs-sm); color: var(--ink); }

/* Personal training on the memberships page: a photograph and the plain answer beside it */
.pt-band {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  background: var(--surface); border-radius: var(--r-lg); overflow: hidden;
}
.pt-band__media { position: relative; margin: 0; min-height: 22rem; }
.pt-band__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: var(--grade); }
.pt-band__body { display: grid; gap: var(--s-4); align-content: center; justify-items: start; padding: clamp(var(--s-6), 1rem + 3vw, var(--s-8)); }
.pt-band__title {
  font-family: var(--font-display); font-weight: var(--weight-display); text-transform: var(--case-display);
  font-size: clamp(1.7rem, 1rem + 1.6vw, 2.75rem); line-height: 1; letter-spacing: var(--track-head);
}
.pt-band__body p { color: var(--ink-2); max-width: 48ch; }
@media (max-width: 900px) {
  .pt-band { grid-template-columns: minmax(0, 1fr); }
  .pt-band__media { min-height: 16rem; }
}
@media (max-width: 760px) {
  /* on phones the joined table becomes the same sideways rail of separate cards */
  .plans-grid--joined { background: transparent; border: 0; gap: var(--s-3); }
  .plans-grid--joined > .plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
  .plans-grid--joined > .plan + .plan { border-left: 1px solid var(--line); }
  .plans-grid--joined > .plan--featured { margin-block: 0; padding-block: var(--s-6); box-shadow: none; background: #d6a32b; border-color: #d6a32b; }
  .plans-grid--joined > .plan--featured:hover, .plans-grid--joined > .plan--featured:focus-within { background: #e4b23c; border-color: #e4b23c; }
  .plans-common { flex-direction: column; align-items: flex-start; }
}

/* ---------- About: the gym in its own photographs ----------
   An uneven grid: the first frame large, five smaller around it; each named by its area. */
.about-gallery { padding-top: 0; }
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(12rem, 17vw, 17rem); gap: var(--s-3); margin: 0; padding: 0; list-style: none; }
.gallery__item { position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--surface); }
.gallery__item:first-child { grid-column: span 2; grid-row: span 2; }
.gallery__item:nth-child(4), .gallery__item:nth-child(5), .gallery__item:nth-child(6) { grid-column: span 2; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; filter: var(--grade); transition: scale var(--t-4) var(--ease), filter var(--t-3) var(--ease); }
.gallery__item:hover img { scale: calc(1 + (var(--zoom) - 1) / 2); filter: var(--grade-hover); }
.gallery__label {
  position: absolute; left: var(--s-4); bottom: var(--s-4);
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .45rem .9rem; border-radius: var(--r-round);
  background: var(--bg-veil); font-size: var(--fs-xs); font-weight: 600; color: var(--ink);
}
.gallery__label .num { color: var(--gold-ink); font-size: var(--fs-micro); letter-spacing: .06em; }
.about-note > * + * { margin-top: var(--s-3); }
.about-note p { font-size: var(--fs-sm); color: var(--ink-2); }
.about-points { margin-top: clamp(var(--s-7), 2rem + 2vw, var(--s-8)); }
@media (max-width: 760px) {
  .gallery { grid-auto-rows: auto; }
  .gallery__item, .gallery__item:first-child, .gallery__item:nth-child(n) { grid-column: auto; grid-row: auto; aspect-ratio: 4 / 5; }
}

/* ---------- Contact: four ways to reach us in one row, then a plain form ---------- */
.reach { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; border-block: 1px solid var(--line); }
.reach__item { display: grid; gap: var(--s-2); align-content: start; padding: var(--s-6) var(--s-5) var(--s-6) 0; }
.reach__item + .reach__item { padding-left: var(--s-5); border-left: 1px solid var(--line); }
.reach__label { display: inline-flex; align-items: center; gap: .5rem; font-size: var(--fs-micro); font-weight: 700; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--ink-3); }
.reach__label .icon { width: 1rem; height: 1rem; color: var(--gold); }
.reach__value {
  font-family: var(--font-display); font-weight: var(--weight-display);
  font-size: clamp(1.25rem, .9rem + .9vw, 1.9rem); line-height: 1.1; letter-spacing: var(--track-head);
  color: var(--ink); transition: color var(--t-1) var(--ease); overflow-wrap: anywhere;
}
a.reach__value:hover { color: var(--gold-ink); }
.reach__value--text { font-size: clamp(1.1rem, .85rem + .6vw, 1.5rem); }
.reach__sub { font-size: var(--fs-xs); color: var(--ink-3); line-height: 1.5; }
.msg { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--s-6) clamp(var(--s-6), 1rem + 4vw, var(--s-10)); align-items: start; }
.msg__intro { display: grid; gap: var(--s-3); justify-items: start; position: sticky; top: calc(var(--header-h) + var(--s-5)); }
.msg__intro p { color: var(--ink-2); font-size: var(--fs-sm); max-width: 36ch; }
.msg__title {
  font-family: var(--font-display); font-weight: var(--weight-display); text-transform: var(--case-display);
  font-size: clamp(1.8rem, 1rem + 1.8vw, 3rem); line-height: 1; letter-spacing: var(--track-head);
}
.msg__form { display: grid; gap: var(--s-5); max-width: 44rem; }
.msg__form .form-grid { gap: var(--s-4); }
.msg__form .field__label { font-size: var(--fs-xs); color: var(--ink-2); }
.msg__form .input { min-height: var(--control-h-sm); font-size: var(--fs-sm); }
.msg__form .textarea { font-size: var(--fs-sm); min-height: 7rem; }
.msg__form .check { font-size: var(--fs-xs); }
.msg__form > .btn { justify-self: start; }
@media (max-width: 900px) {
  .reach { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reach__item:nth-child(3) { padding-left: 0; border-left: 0; }
  .reach__item:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .msg { grid-template-columns: minmax(0, 1fr); }
  .msg__intro { position: static; }
}
@media (max-width: 560px) {
  .reach { grid-template-columns: minmax(0, 1fr); }
  .reach__item, .reach__item + .reach__item { padding: var(--s-5) 0; border-left: 0; }
  .reach__item + .reach__item { border-top: 1px solid var(--line); }
}

/* ---------- Facts in prose for readers and AI answers (11.11.2026) ---------- */
.page-hero__facts { margin-top: var(--s-3); font-size: var(--fs-sm); line-height: 1.6; color: var(--ink-3); text-wrap: pretty; }
.reach__nap { max-width: 46rem; margin-bottom: var(--s-6); font-size: var(--fs-body); line-height: 1.6; color: var(--ink-2); text-wrap: pretty; }

/* ---------- Footer credit, as on BEF Code's other sites (11.11.2026) ---------- */
.credit { display: inline-flex; align-items: center; gap: .4rem; justify-self: start; margin-top: .3rem; font-size: var(--fs-xs); color: var(--ink-3); transition: color var(--t-1) var(--ease); }
.credit img { width: auto; height: 1rem; opacity: .85; transition: opacity var(--t-1) var(--ease); }
.credit:hover { color: var(--ink-2); }
.credit:hover img { opacity: 1; }

/* billing (12.11.2026): the company-invoice fields open with their switch (no script), and the
   "remember on this device" row with its forget link */
.corp { display: grid; gap: var(--s-4); }
.corp:not(:has(> .check input:checked)) > .corp__fields { display: none; }
.remember { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: var(--s-2) var(--s-4); }
.remember__forget { font-size: var(--fs-xs); }
.check__hint { display: block; margin-top: var(--s-1); color: var(--ink-3); font-size: var(--fs-xs); }
