/* fonts.css */
/* Self-hosted fonts (SIL OFL 1.1 — see src/fonts/OFL.txt). Latin subset U+0000-00FF etc. covers á é í ó ú ñ ¡ ¿. */
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/barlow-condensed-latin-700-normal.3787a5a4.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: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-400-normal.8909904a.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: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-600-normal.f9a06e79.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: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-700-normal.6f56409f.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;
}

/* tokens.css */
:root {
  /* color */
  --bg:#14171B; --surface:#1E2329; --surface-2:#272D35; --teal:#2DD4C8; --on-teal:#0A1214;
  --text:#F1F5F7; --muted:#A7B2BC; --subtle:#87929D; --teal-deep:#0F766E; --focus:#7DF9FF;
  --input-border:#6B7682; --border:#3A434D; --error:#FF8A80; --success:#6EE7B7;
  --error-surface:#3A2A2C; --active-row:#20383C;
  --glass-card:rgba(30,35,41,.92); --glass-ctl:rgba(20,23,27,.90); --scrim:rgba(0,0,0,.62);
  /* radius */
  --r-card:24px; --r-float:28px; --r-sheet:28px; --r-tile:16px; --r-photo:18px; --r-btn:14px; --r-pill:999px;
  /* spacing (4 px base) */
  --s1:4px; --s2:8px; --s3:12px; --s3b:14px; --s4:16px; --s5:20px; --s6:24px; --s7:28px;
  --gutter:14px; --card-pad-y:20px; --card-pad-x:18px; --card-gap:16px;
  /* type */
  --font-display:"Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body:"Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  /* motion */
  --ease-out:cubic-bezier(0.22,1,0.36,1); --ease-expand:cubic-bezier(0.2,0,0,1);
  --ease-sheet-in:cubic-bezier(0.32,0.72,0,1); --ease-sheet-out:cubic-bezier(0.4,0,1,1);
  /* elevation */
  --shadow-float:0 24px 60px rgba(0,0,0,.55);
  --topbar-h:60px;
}
@media (min-width:1024px){ :root{ --topbar-h:72px; } }

/* base.css */
/* base — font sizes in rem (16 px base) so user text-size settings scale text */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--topbar-h) + 8px);
  scroll-behavior: smooth;
  background: var(--bg);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.5;
  overflow-wrap: break-word;
}
[hidden] { display: none !important; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
p, h1 { margin: 0; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
main:focus { outline: none; }

/* M7: <picture> wrappers do not change layout (the <img> keeps its class sizing) */
picture { display: contents; }
picture > source { display: none; } /* no flex/grid item, no gap */

.visually-hidden {
  position: absolute !important;
  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;
}

.skip {
  position: absolute;
  z-index: 10;
  left: var(--gutter);
  top: var(--s2);
  padding: 10px var(--s4);
  min-height: 44px;
  border-radius: var(--r-btn);
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  transform: translateY(-200%);
}
.skip:focus, .skip:focus-visible { transform: none; }

@media (forced-colors: active) {
  .profile-card, .pill, .action__sq, .lang, .menu-btn { border: 1px solid CanvasText; }
  :focus-visible { outline-color: Highlight; }
}

/* layout.css */
/* layout — mobile first; 768–1023: mobile layout in a centred 640 px column; ≥1024: desktop bar + split hero (M2) */
.topbar, .hero, .dev-stubs, .dev-banner { max-width: 640px; margin-inline: auto; }

/* top bar: over the hero (transparent, glass controls) -> compact solid bar with the section label (JS) */
.topbar {
  position: absolute; /* no JS: scrolls away with the hero (M1 behaviour) */
  z-index: 3;
  top: 0; left: 0; right: 0;
  min-height: var(--topbar-h);
  padding: 0 var(--s4);
  display: flex;
  align-items: center;
  gap: var(--s2);
}
.js .topbar { position: fixed; }
.topbar__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  opacity: 0;
  transition: opacity 240ms ease-in-out;
}
.topbar[data-state="compact"] .topbar__bg { opacity: 1; }
.topbar__ctl { margin-left: auto; display: flex; align-items: center; gap: var(--s2); }

/* hero */
.hero { position: relative; }
.hero__sentinel { position: absolute; top: 200px; left: 0; width: 1px; height: 1px; pointer-events: none; }
.hero__media {
  position: relative;
  height: 500px;
  overflow: hidden;
  background: var(--surface-2);
}
@media (max-height: 700px) { .hero__media { height: 400px; } }
/* landscape phones (undrawn; Package 2.5, flagged at G2): hero 320, card overlap 100 (see components.css) */
@media (max-height: 499.98px) and (max-width: 1023.98px) { .hero__media { height: 320px; } }
.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
}
.hero__media::before, .hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero__media::before { background: linear-gradient(rgba(20,23,27,.65), transparent 120px); }
.hero__media::after { background: linear-gradient(transparent 45%, rgba(20,23,27,.85) 80%, var(--bg) 100%); }

/* desktop ≥1024 (D01 at 1440, D02 at 1024; linear in between via clamp()) */
@media (min-width: 1024px) {
  :root {
    --photo-w: clamp(512px, calc(54.3269vw - 44.31px), 738px);   /* photo column: 512 @1024 → 738 @1440 (D01 card left 588 + 150) */
    --overlap: clamp(90px, calc(14.4231vw - 57.69px), 150px);    /* card over the photo edge: 90 → 150 */
    --card-w: clamp(470px, calc(31.25vw + 150px), 600px);        /* card: ~470 → 600 */
    --photo-fade: clamp(80px, calc(4.8077vw + 30.77px), 100px);  /* right fade into charcoal: 80 → 100 */
  }
  /* sticky (in flow): always solid at the top, and the hero starts below the bar's real height,
     so a wrapped nav (long placeholder copy, 200% text) never covers the photo */
  .topbar, .js .topbar {
    position: sticky;
    max-width: none;
    min-height: var(--topbar-h);
    padding: 0 40px;
    gap: var(--s4);
  }
  .topbar__bg { opacity: 1; transition: none; }
  .hero {
    max-width: none;
    min-height: min(calc(100vh - var(--topbar-h)), 828px);
    display: grid;
    grid-template-columns: calc(var(--photo-w) - var(--overlap)) var(--card-w) minmax(0, 1fr);
    align-items: center;
  }
  .hero__media {
    position: absolute;
    top: 0; bottom: 0; left: 0;
    width: var(--photo-w);
    height: auto;
  }
  .hero__media::before { display: none; }
  .hero__media::after { background: linear-gradient(90deg, transparent calc(100% - var(--photo-fade)), var(--bg)); }
  .dev-stubs, .dev-banner { max-width: 1120px; }
}

/* components.css */
/* components — Package item 3.4 */
.icon { width: 24px; height: 24px; flex: none; }
.icon--16 { width: 16px; height: 16px; }

/* glass (D7 as drawn): only the profile card, the EN/ES pill and the Menu button; solid fallback first (Package 3.2) */
.glass-ctl { background: var(--bg); }
.profile-card { background: var(--surface); }
@supports ((backdrop-filter: blur(18px)) or (-webkit-backdrop-filter: blur(18px))) {
  .glass-ctl {
    background: var(--glass-ctl);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
  }
  .profile-card {
    background: var(--glass-card);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
  }
}

/* ---------- top bar ---------- */
.topbar__mono {
  display: inline-flex;
  align-items: center;
  flex: none;
  min-width: 44px;
  min-height: 44px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.625rem;
  line-height: 1;
  color: var(--text);
  text-decoration: none;
}
.topbar__mono-l { color: var(--teal); }
/* compact-bar section label (M03): Inter 600 13 px muted, starts right after "YL" */
.topbar__label {
  flex: 1;
  min-width: 0;
  margin-left: -14px; /* the 8 px flex gap + 6 px into the 44 px YL hit area: label starts at x≈54 as in M03 */
  color: var(--muted);
  font-weight: 600;
  font-size: 0.8125rem;
  line-height: 1.2;
  opacity: 0;
  transition: opacity 240ms ease-in-out;
  pointer-events: none;
  /* M5 (WCAG 1.4.10/1.4.12/2.4.11): this aria-hidden duplicate of the section heading never grows past 3 lines, so the
     fixed bar stays small with enlarged text (at normal text size every label already fits in ≤3 lines — no visible change) */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}
.topbar[data-state="compact"] .topbar__label { opacity: 1; }

.lang {
  display: flex;
  height: 40px;
  border: 1px solid var(--input-border); /* hairline as drawn in M01/M02 */
  border-radius: var(--r-pill);
}
.lang__seg {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 47px;
  height: 38px;
  padding: 3px 0;
  border-radius: var(--r-pill);
  background-clip: content-box;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1;
  text-decoration: none;
}
.lang__seg:first-child { padding-left: 3px; }
.lang__seg:last-child { padding-right: 3px; }
.lang__seg[aria-current="page"] { background-color: var(--teal); color: var(--on-teal); }

.menu-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border); /* hairline as drawn in M01/M02 */
  border-radius: var(--r-btn);
  color: var(--text);
  cursor: pointer;
}
.js .menu-btn--nojs { display: none; }

/* desktop inline nav (D01/D02): Inter 600 15 px, muted; active = text colour + 2 px teal underline */
.desknav { display: none; }
.desknav__list { display: flex; flex-wrap: wrap; justify-content: center; column-gap: 30px; }
.desknav__link {
  position: relative;
  display: flex;
  align-items: center;
  height: 44px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1;
  text-decoration: none;
}
.desknav__link[aria-current="true"] { color: var(--text); }
.desknav__link[aria-current="true"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 11px;
  height: 2px;
  border-radius: 1px;
  background: var(--teal);
}

/* ---------- floating profile card ---------- */
.profile-card {
  position: relative;
  z-index: 1;
  margin: -150px var(--gutter) 0;
  /* "padding 22/18": 22 top, 18 sides and bottom — bottom measured on M01 (card bottom at 708 px) */
  padding: 22px var(--card-pad-x) var(--card-pad-x);
  border: 1px solid rgba(45,212,200,.28);
  border-radius: var(--r-float);
  box-shadow: var(--shadow-float);
}
@media (max-height: 499.98px) and (max-width: 1023.98px) { .profile-card { margin-top: -100px; } }
.profile-card__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.75rem;
  line-height: 0.98;
  text-transform: uppercase;
  color: var(--text);
}
.profile-card__name span { display: block; }
.profile-card__title {
  margin-top: var(--s2);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--teal);
}
.profile-card__tagline {
  margin-top: var(--s1);
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--muted);
}

/* pills */
.pills {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: var(--s4);
}
.pills li { display: flex; min-width: 0; }
.pill {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 46px;
  padding: 6px var(--s2);
  border: 1px solid var(--teal);
  border-radius: var(--r-pill);
  /* as drawn in M01/M02 (owner decision at M1): white label, teal icon, 8% teal tint */
  background: rgba(45,212,200,.08);
  color: var(--text);
  font-weight: 600;
  font-size: 0.84375rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}
.pill span { min-width: 0; overflow-wrap: anywhere; }
.pill .icon { color: var(--teal); }
/* below 360 px (undrawn): icon stacks above the label so long words ("Entrenamiento") fit without overlap */
@media (max-width: 359.98px) {
  .pill { flex-direction: column; gap: var(--s1); padding: var(--s2); }
}

/* action row */
.actions {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--s2);
  margin-top: var(--s4);
}
.actions--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.actions--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.actions--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.actions li { min-width: 0; }
.action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
  margin-inline: -4px; /* labels may use half of the 8 px gap on each side (narrow screens); squares stay centered */
  color: var(--muted);
  text-decoration: none;
}
.action__sq {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  max-width: 100%;
  aspect-ratio: 1;
  border: 1px solid var(--border);
  border-radius: var(--r-tile);
  background: var(--surface-2);
  color: var(--text);
}
.action--primary { color: var(--text); }
.action--primary .action__sq {
  border-color: var(--teal);
  background: var(--teal);
  color: var(--on-teal);
  box-shadow: 0 8px 24px rgba(45,212,200,.35);
}
.action__label {
  max-width: 100%;
  font-weight: 600;
  font-size: 0.75rem;
  line-height: 1.25;
  text-align: center;
  overflow-wrap: anywhere;
}
.action:focus-visible { outline: none; }
.action:focus-visible .action__sq { outline: 2px solid var(--focus); outline-offset: 2px; }

/* desktop card (D01 @1440, D02 @1024; clamp() in between). Title 19 / tagline 17 as drawn (owner decision at M2). */
@media (min-width: 1024px) {
  .topbar__label, .menu-btn { display: none; }
  .desknav { display: flex; flex: 1; justify-content: center; margin-left: -20px; } /* centred between the YL glyph and EN/ES as drawn */
  .profile-card {
    grid-column: 2;
    margin: 0;
    padding: clamp(28px, calc(1.9231vw + 8.31px), 36px) clamp(28px, calc(1.4423vw + 13.23px), 34px) 28px; /* top 28→36, sides 28→34 (Package 1440: 36/34); bottom 28 measured on D01 + D02 */
  }
  .profile-card__name { font-size: clamp(3.5rem, calc(5.7692vw - 3.08px), 5rem); }
  .profile-card__title { margin-top: 6px; font-size: 1.1875rem; }
  .profile-card__tagline { margin-top: var(--s1); max-width: 27em; font-size: 1.0625rem; } /* D01 wraps the tagline at ≈430–510 px */
  .pills { margin-top: 18px; }
  .pill { font-size: 0.875rem; }
  .actions, .actions--4, .actions--3, .actions--2 {
    grid-template-columns: repeat(var(--n, 5), clamp(56px, calc(1.9231vw + 36.31px), 64px));
    column-gap: clamp(10px, calc(0.9615vw + 0.15px), 14px);
    justify-content: start;
  }
  .action { margin-inline: 0; }
  .action__sq { width: clamp(52px, calc(65.85px - 0.9615vw), 56px); }
}

/* ---------- menu bottom sheet (M05) ---------- */
.sheet {
  position: fixed;
  inset: auto 0 0 0;
  width: 100%;
  max-width: 640px;
  max-height: 92vh;
  max-height: 92dvh;
  margin: 0 auto;
  padding: 0 var(--s4) var(--s6);
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--border);
  border-bottom: 0;
  border-radius: var(--r-sheet) var(--r-sheet) 0 0;
  background: var(--surface);
  color: var(--text);
}
.sheet::backdrop { background: var(--scrim); }
.sheet__handle {
  width: 40px;
  height: 5px;
  margin: 10px auto 0;
  border-radius: var(--r-pill);
  background: var(--input-border); /* as drawn in M05 (owner decision at M2; Package says --border) */
}
.sheet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--s3);
}
.sheet__h {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.625rem;
  line-height: 1;
  text-transform: uppercase;
}
.sheet__h:focus { outline: none; }
.sheet__h:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.sheet__close {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: var(--r-btn);
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
}
.sheet__eyebrow {
  margin: var(--s3b) 0 var(--s1);
  padding-left: var(--s1);
  color: var(--subtle); /* allowed on --surface */
  font-weight: 600;
  font-size: 0.75rem;
  line-height: 1.2;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.sheet-row {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: var(--s1) var(--s3);
  border-radius: var(--r-tile);
  color: var(--text);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.25;
  text-decoration: none;
}
.sheet-row[aria-current="true"] { background: var(--active-row); }
.sheet-row__num { flex: none; width: 39px; color: var(--teal); }
.sheet-row__label { flex: 1; min-width: 0; }
.sheet-row__chev { color: var(--subtle); }
.seg {
  display: flex;
  gap: var(--s1);
  margin-top: var(--s3);
  padding: var(--s1);
  border: 1px solid var(--border);
  border-radius: var(--r-photo);
  background: var(--bg);
}
.seg__opt {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: var(--r-btn);
  color: var(--muted);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
}
.seg__opt[aria-current="page"] { background: var(--teal); color: var(--on-teal); }

/* ---------- no-JS menu fallback: hidden until #menu-fallback is :target, then a fixed panel at the
   bottom of the viewport (same surface as the sheet); a section link or Back closes it ---------- */
.menu-fallback { display: none; }
.menu-fallback:target {
  display: block;
  position: fixed;
  z-index: 4;
  left: 0; right: 0; bottom: 0;
  max-width: 640px;
  max-height: 92vh;
  margin: 0 auto;
  padding: var(--card-pad-y) var(--s4) var(--s6);
  overflow-y: auto;
  border: 1px solid var(--border);
  border-bottom: 0;
  border-radius: var(--r-sheet) var(--r-sheet) 0 0;
  background: var(--surface);
}
.js .menu-fallback { display: none; }
.menu-fallback__h { margin: 0 0 var(--s2); font-family: var(--font-display); font-size: 1.625rem; text-transform: uppercase; }
.menu-fallback__link { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); font-weight: 600; text-decoration: none; }
.menu-fallback__lang { display: flex; gap: var(--s5); margin-top: var(--s2); }

/* ---------- states (Package 3.5): hover (desktop), pressed; focus ring is global ---------- */
.pill::before, .action__sq::before, .menu-btn::before, .lang__seg::before, .sheet-row::before, .seg__opt::before, .sheet__close::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(255,255,255,.08); /* "+8% lighter" */
  opacity: 0;
  transition: opacity 180ms ease-out;
  pointer-events: none;
}
.lang__seg::before { inset: 3px 0; }
.lang__seg:first-child::before { left: 3px; }
.lang__seg:last-child::before { right: 3px; }
@media (hover: hover) and (pointer: fine) {
  .pill:hover::before, .action:hover .action__sq::before, .menu-btn:hover::before, .lang__seg:hover::before,
  .sheet-row:hover::before, .seg__opt:hover::before, .sheet__close:hover::before { opacity: 1; }
  .desknav__link:hover { color: var(--text); }
}
.pill:active::before, .action:active .action__sq::before, .menu-btn:active::before, .lang__seg:active::before,
.sheet-row:active::before, .seg__opt:active::before, .sheet__close:active::before { opacity: 1; transition-duration: 120ms; }

/* ---------- dev-only section stubs (blocked by the production guard) ---------- */
.dev-stubs { margin-top: var(--s6); margin-bottom: var(--s6); color: var(--muted); font-size: 0.875rem; }
@media (max-width: 667.98px) { .dev-stubs { padding-inline: var(--gutter); } }
.dev-stubs__label { color: var(--text); font-weight: 600; }
.dev-stub {
  min-height: 70vh;
  margin-top: var(--s4);
  padding: var(--card-pad-y) var(--card-pad-x);
  border: 1px dashed var(--border);
  border-radius: var(--r-card);
  background: var(--surface);
}
.dev-stub:last-child { min-height: calc(100vh - var(--topbar-h) - 24px); }
.dev-stub__h { margin: 0; color: var(--text); font-weight: 600; font-size: 0.875rem; line-height: 1.5; }
.dev-stub__anchor { margin-top: var(--s2); }
.dev-banner {
  padding: var(--s2) var(--gutter) var(--s6);
  color: var(--muted);
  font-size: 0.75rem;
  text-align: center;
}

/* sections.css */
/* sections 01–04, footer, secondary pages (M3) — Package 3.4; measured on M03/M04/M06/M10/D03/D04 */
.js-only { display: none !important; }
.js .js-only { display: inline-flex !important; }
.js .dots.js-only { display: flex !important; }

.sections { max-width: 640px; margin: 0 auto; padding: 0 var(--gutter); }
.section {
  margin-top: var(--card-gap);
  padding: var(--card-pad-y) var(--card-pad-x);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--surface);
  overflow: hidden; /* clips the testimonial strip at the card edge (M06) */
  overflow-wrap: anywhere; /* long placeholder words never push past the card at 200 % text */
}
.sections > .section:first-child { margin-top: 24px; }
.eyebrow {
  margin: 0;
  color: var(--teal);
  font-weight: 600;
  font-size: 0.75rem;
  line-height: 1.2;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.section__h {
  margin: var(--s1) 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.875rem;
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--text);
}
.section__h:focus { outline: none; }
.section__h:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* outline button (Read more, Open in Maps, secondary pages) */
.btn-outline {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 var(--s3b);
  border: 1px solid var(--teal);
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--teal);
  font: inherit;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}
.btn-outline__chev { transition: transform 280ms var(--ease-expand); }
[aria-expanded="true"] > .btn-outline__chev { transform: rotate(-90deg); }

/* expanders (About "Read more", Training cards): grid-rows 0fr ↔ 1fr, 280 ms open / 220 ms close */
.expander {
  display: grid;
  grid-template-rows: 1fr;
  opacity: 1;
  transition: grid-template-rows 280ms var(--ease-expand), opacity 280ms var(--ease-expand);
}
.expander__inner { min-height: 0; overflow: hidden; }
.expander.is-settled > .expander__inner { overflow: visible; }
.expander[data-open="false"], .svc-card[data-open="false"] .expander {
  grid-template-rows: 0fr;
  opacity: 0;
  visibility: hidden;
  transition: grid-template-rows 220ms var(--ease-expand), opacity 220ms var(--ease-expand), visibility 0s linear 220ms;
}

/* 01 About */
.about { display: flex; flex-wrap: wrap; gap: var(--s3b); margin-top: var(--s4); align-items: flex-start; }
.about__photo { flex: none; width: 112px; height: 140px; border-radius: var(--r-photo); object-fit: cover; background: var(--surface-2); }
.about__text { flex: 1 1 8rem; min-width: 0; } /* drops below the photo only when narrower than 8 rem (200 % text at 320 px) */
.about__bio { margin: 0; color: var(--muted); font-size: 0.9375rem; line-height: 1.5; }
.about__bio--full { padding-top: var(--s2); }
/* M7: supporting copy (no slot in the hero card) opens About; the closing message is a quote in the same text style */
.about__lead { margin-bottom: var(--s2); }
.about__quote { margin: var(--s3) 0 0; padding-left: var(--s3); border-left: 2px solid var(--teal); }
.about__quote .about__bio { color: var(--text); }
.about__quote-by { margin: var(--s1) 0 0; color: var(--muted); font-weight: 600; font-size: 0.8125rem; line-height: 1.4; }
.cred-chips { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s3); }
.cred-chip {
  display: inline-flex; align-items: center; min-height: 32px; padding: 6px var(--s3);
  border-radius: var(--r-pill); background: var(--surface-2); color: var(--muted);
  font-weight: 600; font-size: 0.8125rem; line-height: 1.2; max-width: 100%;
}
.about .btn-outline { margin-top: var(--s3b); }
@media (max-width: 1023.98px) { .about__bio { padding-right: var(--s1); } } /* M10 text column ≈194 px at 390 */

/* 02 Training: two identical list-cards that expand in place (M03); chips are information only (M3-D) */
.svc-cards { display: grid; gap: 10px; margin-top: var(--s3b); align-items: start; }
/* AC-14: Personal Training and Functional Fitness identical in size while both are collapsed (M10 draws them 108 / 98 px) */
.svc-cards:not(:has([data-open="true"])) { grid-auto-rows: 1fr; align-items: stretch; }
.svc-card {
  border: 1px solid var(--border);
  border-radius: var(--r-photo);
  background: var(--surface-2);
  overflow: hidden;
}
.svc-card:not([data-open="false"]) { border-color: rgba(45,212,200,.5); }
.svc-card__img { display: block; width: 100%; height: 170px; object-fit: cover; }
.svc-card__h { margin: 0; }
.svc-card__toggle {
  position: relative;
  display: flex; align-items: center; gap: var(--s3b);
  width: 100%; min-height: 44px; padding: 10px;
  border: 0; background: transparent; color: inherit; text-align: left; font: inherit; cursor: pointer;
}
.svc-card__toggle:disabled { cursor: default; color: inherit; }
.svc-card__thumb { flex: none; width: 96px; height: 76px; border-radius: 12px; object-fit: cover; }
.svc-card__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.svc-card__title { font-family: var(--font-display); font-weight: 700; font-size: 1.375rem; line-height: 1; text-transform: uppercase; color: var(--text); }
.svc-card__summary { color: var(--muted); font-weight: 400; font-size: 0.84375rem; line-height: 1.4; } /* 13.5 px as drawn (M03, M10) */
.svc-card__chev { flex: none; color: var(--teal); width: 20px; height: 20px; }
/* open (default without JS): image header on top, no thumbnail / chevron, roomier text */
.svc-card:not([data-open="false"]) .svc-card__thumb,
.svc-card:not([data-open="false"]) .svc-card__chev { display: none; }
.svc-card:not([data-open="false"]) .svc-card__toggle { padding: 20px var(--s4) 0; }
.svc-card__body .expander__inner { padding: 0 var(--s4); } /* no vertical padding: it would show while collapsed */
.svc-card__body .expander__inner > :last-child { margin-bottom: 10px; }
.svc-card__group-h {
  margin: var(--s3) 0 0;
  color: var(--teal);
  font-weight: 600; font-size: 0.8125rem; line-height: 1.3; letter-spacing: .08em; text-transform: uppercase;
}
.bullets { margin-top: var(--s2); }
.bullets li { position: relative; padding-left: var(--s4); color: var(--muted); font-size: 0.9375rem; line-height: 1.5; }
.bullets li + li { margin-top: var(--s2); }
.bullets li::before { content: ""; position: absolute; left: 1px; top: .6em; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }
.svc-card__less {
  position: relative;
  align-items: center; gap: var(--s3); min-height: 44px; margin-top: var(--s3); padding: 0 var(--s1);
  border: 0; border-radius: var(--r-btn); background: transparent; color: var(--text);
  font: inherit; font-weight: 600; font-size: 0.9375rem; cursor: pointer;
}
.svc-card__less-chev { transform: rotate(-90deg); }
.aud-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: var(--s3b); }
.aud-chip {
  display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: var(--s1) var(--s2);
  border: 1px solid var(--teal); border-radius: var(--r-pill); background: rgba(45,212,200,.08);
  color: var(--text); font-weight: 600; font-size: 0.8125rem; line-height: 1.15; text-align: center;
}
.aud-chip .icon { color: var(--teal); }
.aud-chip span { min-width: 0; overflow-wrap: anywhere; }

/* 03 Where I Coach */
.gym { margin-top: var(--s3b); border: 1px solid var(--border); border-radius: var(--r-photo); background: var(--surface-2); overflow: hidden; }
.gym__media { position: relative; }
.gym__img { display: block; width: 100%; height: 150px; object-fit: cover; }
.gym__info { padding: var(--s4) var(--s4) var(--s3b); }
.gym__name { display: flex; align-items: center; gap: var(--s2); margin: 0; color: var(--text); font-weight: 600; font-size: 1rem; line-height: 1.3; }
.gym__name .icon { color: var(--teal); }
.gym__meta { margin: var(--s1) 0 0; color: var(--muted); font-size: 0.875rem; line-height: 1.4; }
.gym__maps { margin-top: var(--s3b); }
/* M7 (C6): "Get Directions" disclosure menu (two map links); without JS the links show as a plain list */
.directions__menu { margin-top: var(--s3b); }
.js .directions__menu { margin-top: var(--s2); padding: var(--s1); min-width: min(100%, 16rem); border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.directions__menu[hidden] { display: none; }
.directions__list { list-style: none; margin: 0; padding: 0; }
.directions__link {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: var(--s2); min-height: 44px;
  padding: 0 var(--s3); border-radius: 12px; color: var(--text); font-weight: 600; font-size: 0.9375rem; line-height: 1.2; text-decoration: none;
}
.directions__link .icon { flex: none; color: var(--teal); }
.directions__link:focus-visible, .directions__close:focus-visible { outline-offset: -2px; }
.directions__close {
  width: 100%; min-height: 44px; margin-top: var(--s1); padding: 0 var(--s3); border: 0; border-top: 1px solid var(--border);
  border-radius: 0 0 12px 12px; background: transparent; color: var(--muted); font-weight: 600; font-size: 0.875rem; cursor: pointer; justify-content: center; align-items: center;
}
.gym__credit { margin: var(--s3) 0 0; color: var(--muted); font-size: 0.75rem; line-height: 1.4; } /* --muted: the card is --surface-2 */

/* 04 Testimonials: scroll-snap carousel (86 % cards, peek), dots; empty-state card (M3-B) */
.carousel {
  display: flex; gap: var(--s3);
  margin: var(--s3b) calc(-1 * var(--card-pad-x) - 1px) 0;
  padding: 0 calc(var(--card-pad-x) + 1px);
  scroll-padding: 0 calc(var(--card-pad-x) + 1px);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none;
}
.carousel::-webkit-scrollbar { display: none; }
.t-card { padding: var(--s4) var(--card-pad-x) var(--card-pad-x); border: 1px solid var(--border); border-radius: 20px; background: var(--surface-2); }
.carousel .t-card {
  flex: none;
  width: 86%;
  scroll-snap-align: start;
}
.t-card--empty { margin-top: var(--s3b); }
.carousel .t-card:last-child { margin-right: 0; }
.t-card__q { width: 18px; height: 10px; color: var(--teal); }
.t-card__stars { display: flex; gap: 2px; margin: var(--s2) 0 0; }
.t-star--on { color: var(--teal); }
.t-star--off { color: var(--input-border); }
.t-card__text { margin: var(--s3) 0 0; color: var(--text); font-size: 0.9375rem; line-height: 1.55; }
.t-card--empty .t-card__text { color: var(--muted); }
.t-card__text p { margin: 0; }
.t-card__name { margin: var(--s3) 0 0; color: var(--muted); font-size: 0.8125rem; line-height: 1.4; }
.dots { justify-content: center; gap: 4px; margin: var(--s2) 0 calc(-1 * var(--s2)); } /* 24 px hit areas; 8 px visual dots 16 px below the cards, 20 px above the section edge (M06) */
.dot {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; padding: 0; border: 0; border-radius: 12px; background: transparent; cursor: pointer;
}
.dot__v { display: block; width: 8px; height: 8px; border-radius: 4px; background: var(--input-border); transition: width 180ms ease-out; }
.dot[aria-current="true"] .dot__v { width: 20px; background: var(--teal); }

/* footer (M10, D04) */
.site-footer { max-width: 640px; margin: 0 auto; padding: var(--s7) var(--gutter) var(--s6); text-align: center; color: var(--muted); font-size: 0.8125rem; line-height: 1.5; }
.site-footer p { margin: 0; }
.site-footer__link { display: inline-block; padding: 2.25px 4px; margin: -0.25px -2px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; } /* M5 (WCAG 2.5.8): hit area ≥24×24; the negative margins keep the text and the line box exactly where they were */
.site-footer__link[aria-current="page"] { color: var(--text); text-decoration: none; }
.site-footer__lang a + a::before { content: "/" / ""; display: inline-block; margin: 0 .35em 0 .15em; color: var(--muted); text-decoration: none; }

/* secondary pages (privacy, thanks, 404) — v2 card styling only */
.page-simple .topbar--simple, .js .page-simple .topbar--simple { position: sticky; }
.simple { max-width: 640px; margin: var(--s6) auto 0; }
@media (max-width: 667.98px) { .simple { margin-inline: var(--gutter); } }
.simple__h { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 1.875rem; line-height: 1.05; text-transform: uppercase; }
.simple__h--alt { font-size: 1.5rem; }
.simple__p { margin: var(--s3) 0 0; color: var(--muted); font-size: 0.9375rem; line-height: 1.5; }
.simple__back { margin: var(--s5) 0 0; }
.simple__alt { margin-top: var(--s7); padding-top: var(--s5); border-top: 1px solid var(--border); }

/* hover / pressed for the new controls (same +8 % overlay as M2) */
.btn-outline::before, .svc-card__toggle::before, .svc-card__less::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; background: rgba(255,255,255,.08);
  opacity: 0; transition: opacity 180ms ease-out; pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
  .btn-outline:hover::before, .svc-card__toggle:enabled:hover::before, .svc-card__less:hover::before { opacity: 1; }
  .dot:hover .dot__v { background: var(--muted); }
  .dot[aria-current="true"]:hover .dot__v { background: var(--teal); }
  .site-footer__link:hover { color: var(--text); }
  .directions__link:hover, .directions__close:hover { background: rgba(255,255,255,.08); }
}
.btn-outline:active::before, .svc-card__toggle:enabled:active::before, .svc-card__less:active::before { opacity: 1; transition-duration: 120ms; }

/* desktop ≥1024 (D03, D04): content column max 1120 (cards 1040 at 1440) */
@media (min-width: 1024px) {
  .sections { max-width: 1120px; padding: 0 40px; }
  .sections > .section:first-child { margin-top: 24px; }
  .section { margin-top: 20px; padding: 28px; }
  .about { gap: 28px; margin-top: var(--s4); }
  .about__photo { width: 200px; height: 250px; }
  .svc-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 23px; }
  .aud-chips { gap: 12px; margin-top: var(--s3b); }
  .gym { display: grid; grid-template-columns: 1.3fr 1fr; }
  .gym__media { min-height: 239px; }
  .gym__img { position: absolute; inset: 0; height: 100%; }
  .gym__info { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: var(--s7); }
  .carousel { margin-inline: 0; padding: 0; scroll-padding: 0; }
  .carousel .t-card { width: calc((100% - 2 * var(--s3)) / 3); }
  .dev-stubs { max-width: 1120px; padding: 0 40px; }
  .site-footer { max-width: 1120px; padding-top: 40px; }
  .simple { max-width: 720px; margin-top: 40px; }
}

/* review.css */
/* 05 Leave a Review (M4): entry card (M06, D04), form sheet (M07 focus, M08 error, M09 confirmation) — Package 3.4–3.6.
   Sizes measured on the mockups (390 wide, 2× comps); undrawn details are listed in the G4 report. */
.icon--20 { width: 20px; height: 20px; }

/* ---------- entry card ---------- */
.review__entry { max-width: 560px; margin: 0 auto; text-align: center; } /* D04: review entry max 560 */
.review__intro { margin: var(--s3) 0 0; color: var(--muted); font-size: 0.9375rem; line-height: 1.6; }
.review__stars { display: flex; justify-content: center; gap: var(--s4); margin: 10px 0 0; color: var(--input-border); } /* decorative (D10), aria-hidden */
.review__star { width: 32px; height: 32px; }
.btn-primary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 0 var(--s4);
  border: 0;
  border-radius: var(--r-btn);
  background: var(--teal);
  color: var(--on-teal);
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.review__cta { margin-top: 18px; } /* M06: 18 px below the star row */
.review-js .review__cta--nojs { display: none; }
.review__note { margin: 10px 0 0; color: var(--muted); font-size: 0.8125rem; line-height: 1.4; }
.review__privacy { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }

/* no-JS: the form stays in-page below the entry card (Package 5.3) */
.review__inline { max-width: 560px; margin: var(--s6) auto 0; padding-top: var(--s5); border-top: 1px solid var(--border); text-align: left; }
.review-js .review__inline { display: none; }

/* ---------- form (in-page without JS, in the sheet with JS) ---------- */
.rform { text-align: left; }
.rform:focus { outline: none; }
.rform__h { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; line-height: 1.1; text-transform: uppercase; color: var(--text); }
.sheet .rform__h { display: none; } /* the sheet heading names the form there */
.rfield { min-width: 0; margin: 13px 0 0; padding: 0; border: 0; }
.rfield__label { display: block; float: none; margin: 0 0 6px; padding: 0; color: var(--text); font-weight: 600; font-size: 0.875rem; line-height: 1.43; }
.rfield__opt { color: var(--muted); font-weight: 400; }
.rinput {
  display: block;
  width: 100%;
  height: 48px;
  margin: 0;
  padding: 0 15px;
  border: 1px solid var(--input-border);
  border-radius: var(--r-btn);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 1rem; /* 16 px: no iOS zoom */
  line-height: 1.5;
}
.rinput::placeholder { color: var(--subtle); opacity: 1; }
.rinput--area { height: 94px; min-height: 94px; padding: 11px 15px; resize: vertical; } /* M07/M08 draw ≈94 px (Package: min 120); resizable */
/* focus (M07): 2 px teal border (1 px border + 1 px inset) + 2 px --focus ring at 2 px offset; no layout shift */
.rinput:focus { border-color: var(--teal); box-shadow: inset 0 0 0 1px var(--teal); outline: 2px solid var(--focus); outline-offset: 2px; }
.rfield__hint { margin: 6px 0 0; color: var(--muted); font-size: 0.8125rem; line-height: 1.4; }
.rfield__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; column-gap: var(--s3); } /* M5: wraps only with enlarged text (1.4.12) */
.rfield__count { flex: none; margin: 6px 0 0 auto; color: var(--muted); font-size: 0.8125rem; line-height: 1.4; font-variant-numeric: tabular-nums; }
/* error (M08): icon + 13 px text + 2 px --error border; never colour alone */
.rfield__err { display: flex; align-items: flex-start; gap: 6px; margin: 6px 0 0; color: var(--error); font-size: 0.8125rem; line-height: 1.4; }
.rfield__err-ic { margin-top: 1px; }
.is-invalid .rinput, .is-invalid .rinput:focus { border-color: var(--error); box-shadow: inset 0 0 0 1px var(--error); }

/* rating: 5 radios drawn as 44×44 stars (native arrow-key behaviour) */
.rfield--rating { padding-bottom: 6px; } /* M07: 45 px from the star row centre to the next label */
.stars-input { display: flex; flex-wrap: wrap; gap: 2px; }
.star-opt { position: relative; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--r-btn); color: var(--muted); cursor: pointer; }
.star-opt__in { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.star-opt__ic { width: 28px; height: 28px; pointer-events: none; border-radius: 8px; }
.star-opt__ic .star-on { display: none; }
.star-opt__in:checked + .star-opt__ic { color: var(--teal); }
.star-opt__in:checked + .star-opt__ic .star-on { display: inline; }
.star-opt__in:checked + .star-opt__ic .star-off { display: none; }
/* stars up to the chosen one are filled (M07: 4 of 5) */
.stars-input:has(.star-opt:nth-child(2) .star-opt__in:checked) .star-opt:nth-child(-n+1) .star-opt__ic,
.stars-input:has(.star-opt:nth-child(3) .star-opt__in:checked) .star-opt:nth-child(-n+2) .star-opt__ic,
.stars-input:has(.star-opt:nth-child(4) .star-opt__in:checked) .star-opt:nth-child(-n+3) .star-opt__ic,
.stars-input:has(.star-opt:nth-child(5) .star-opt__in:checked) .star-opt:nth-child(-n+4) .star-opt__ic { color: var(--teal); }
.stars-input:has(.star-opt:nth-child(2) .star-opt__in:checked) .star-opt:nth-child(-n+1) .star-on,
.stars-input:has(.star-opt:nth-child(3) .star-opt__in:checked) .star-opt:nth-child(-n+2) .star-on,
.stars-input:has(.star-opt:nth-child(4) .star-opt__in:checked) .star-opt:nth-child(-n+3) .star-on,
.stars-input:has(.star-opt:nth-child(5) .star-opt__in:checked) .star-opt:nth-child(-n+4) .star-on { display: inline; }
.stars-input:has(.star-opt:nth-child(2) .star-opt__in:checked) .star-opt:nth-child(-n+1) .star-off,
.stars-input:has(.star-opt:nth-child(3) .star-opt__in:checked) .star-opt:nth-child(-n+2) .star-off,
.stars-input:has(.star-opt:nth-child(4) .star-opt__in:checked) .star-opt:nth-child(-n+3) .star-off,
.stars-input:has(.star-opt:nth-child(5) .star-opt__in:checked) .star-opt:nth-child(-n+4) .star-off { display: none; }
.star-opt__in:focus-visible + .star-opt__ic { outline: 2px solid var(--focus); outline-offset: 6px; }

/* program: 3 radios in a 48 px segmented control; selected = teal outline + --surface-2 (equal emphasis) */
.segrad { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s1); min-height: 48px; padding: 3px; border: 1px solid var(--input-border); border-radius: var(--r-btn); background: var(--bg); }
.segrad__opt { position: relative; display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 40px; padding: var(--s1) 6px; border: 1px solid transparent; border-radius: 11px; color: var(--muted); font-weight: 600; font-size: 0.9375rem; line-height: 1.2; text-align: center; cursor: pointer; }
.segrad__in { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.segrad__txt { min-width: 0; overflow-wrap: anywhere; }
.segrad__in:checked + .segrad__txt { color: var(--text); }
.segrad__opt:has(.segrad__in:checked) { border-color: var(--teal); background: var(--surface-2); }
.segrad__opt:has(.segrad__in:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }

/* consent: 24×24 box inside a 44×44 hit area, text inside the <label>; error = red outline around the row */
.consent { position: relative; display: flex; align-items: flex-start; gap: var(--s3); min-height: 44px; padding: 10px var(--s3); border: 1px solid transparent; border-radius: var(--r-btn); color: var(--muted); font-size: 0.9375rem; line-height: 1.3; cursor: pointer; } /* M08: row 81 tall for 3 lines */
.consent__in { position: absolute; left: 2px; top: 2px; width: 44px; height: 44px; margin: 0; opacity: 0; cursor: pointer; }
.consent__box { flex: none; margin-top: 2px; display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; border: 2px solid var(--input-border); border-radius: 7px; background: var(--bg); color: var(--on-teal); pointer-events: none; }
.consent__box .icon { opacity: 0; }
.consent__in:checked + .consent__box { border-color: var(--teal); background: var(--teal); }
.consent__in:checked + .consent__box .icon { opacity: 1; }
.consent__in:focus-visible + .consent__box { outline: 2px solid var(--focus); outline-offset: 2px; }
.consent__txt { min-width: 0; }
.is-invalid .consent { border-color: var(--error); box-shadow: inset 0 0 0 1px var(--error); }
.is-invalid .consent__box { border-color: var(--error); }
.hp { display: none !important; } /* honeypot "botcheck": hidden from everyone (class instead of an inline style) */

/* submit (52 tall) + busy state */
.rform__submit { margin-top: var(--s5); min-height: 52px; }
.rform__submit:disabled { cursor: progress; }
.spinner { display: none; flex: none; width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; }
.rform__submit.is-busy .spinner { display: block; animation: rf-spin 700ms linear infinite; }

/* ---------- form sheet (M07–M09): mobile = bottom sheet, desktop = centred 560 card ---------- */
.sheet--form { max-width: 640px; }
.rsheet__top { position: sticky; top: 0; z-index: 1; margin: 0 calc(-1 * var(--s4)); padding: 10px var(--s4) var(--s1); background: var(--surface); }
.rsheet__top .sheet__handle { margin-top: 0; } /* padding, not margin: the pinned header keeps its 10 px top while the sheet scrolls (M08) */
.rsheet__slot > .rform > .rfield:first-of-type { margin-top: 7px; }
/* pinned summary (M08): --error-surface, radius 14, icon + "Please check N fields below." + links to the fields */
.rsum { display: flex; align-items: flex-start; gap: var(--s3); margin-top: 2px; padding: 10px var(--s3b); border: 1px solid rgba(255,138,128,.45); border-radius: var(--r-btn); background: var(--error-surface); color: var(--text); font-size: 1rem; line-height: 1.5; }
.rsum__ic { color: var(--error); }
.rsum__body { min-width: 0; }
.rsum__msg { margin: 0; }
/* the per-field links (Package 3.4) are announced with the alert and shown when they receive keyboard focus, so the
   summary keeps the single line drawn in M08 (provisional, G4 §10) */
.rsum__list { font-size: 0.8125rem; line-height: 1.4; }
.rsum__list > li:not(:focus-within) {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.rsum__list > li:focus-within { margin-top: 2px; }
.rsum__link { display: inline-block; padding: 2px 0; color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
/* confirmation (M09): check circle 64 (--success), heading, "Back to top" */
.rdone { padding: var(--s7) var(--s2) var(--s2); text-align: center; }
.rdone__check { display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; margin: 0 auto; border: 2px solid var(--success); border-radius: 50%; background: rgba(110,231,183,.12); color: var(--success); }
.rdone__h { margin: var(--s4) 0 0; font-weight: 400; }
.rdone__h:focus { outline: none; }
.rdone__h:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.rdone__title { display: block; font-family: var(--font-display); font-weight: 700; font-size: 2rem; line-height: 1; text-transform: uppercase; color: var(--text); }
.rdone__text { display: block; margin-top: var(--s2); font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.5; color: var(--muted); }
.btn-quiet { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; margin-top: var(--s3b); padding: 0 var(--s4); border: 1px solid var(--input-border); border-radius: var(--r-btn); background: transparent; color: var(--text); font: inherit; font-weight: 600; font-size: 1rem; cursor: pointer; }

@media (min-width: 1024px) {
  .review__inline { margin-top: var(--s7); }
  /* desktop sheet (undrawn; Package RECOMMENDATION): max 560, centred, radius 28 on all corners */
  .sheet--form {
    inset: 0;
    width: calc(100% - 80px);
    max-width: 560px;
    height: fit-content;
    margin: auto;
    border-bottom: 1px solid var(--border);
    border-radius: var(--r-sheet);
  }
  .sheet--form .sheet__handle { visibility: hidden; height: 0; } /* no drag affordance on the centred card */
}

/* hover / pressed (same +8 % overlay as M2/M3) */
.btn-primary::before, .btn-quiet::before, .star-opt::before, .segrad__opt::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; background: rgba(255,255,255,.08);
  opacity: 0; transition: opacity 180ms ease-out; pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
  .btn-primary:enabled:hover::before, a.btn-primary:hover::before, .btn-quiet:hover::before, .star-opt:hover::before, .segrad__opt:hover::before { opacity: 1; }
  .review__privacy:hover { color: var(--text); }
}
.btn-primary:enabled:active::before, a.btn-primary:active::before, .btn-quiet:active::before { opacity: 1; transition-duration: 120ms; }
.btn-primary, .btn-quiet { transition: transform 180ms ease-out; }
.btn-primary:enabled:active, a.btn-primary:active, .btn-quiet:active { transform: scale(.96); transition-duration: 120ms; }

/* ---------- motion (Package 3.6 M4 rows; transform/opacity only) ---------- */
@keyframes rf-spin { to { transform: rotate(360deg); } }
@keyframes rf-err-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@keyframes rf-check-in { from { opacity: 0; transform: scale(.8); } to { opacity: 1; transform: none; } }
@keyframes rf-rise-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes rf-rise-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(24px); } }
/* sheet open 320 / close 240: inherited from the menu sheet rules in motion.css (.sheet[open], .sheet.is-closing) */
/* form error appears: fade + 4 px, 180 ms (no shake) */
.rfield__err:not([hidden]), .rsum:not([hidden]) { animation: rf-err-in 180ms ease-out; }
/* submit → confirmation: form fades out 240, then check scales .8 → 1 + fades in 260 */
.rsheet__slot.is-leaving { animation: fade-out 240ms ease-out forwards; }
.rdone:not([hidden]) { animation: fade-in 260ms ease-out; }
.rdone:not([hidden]) .rdone__check { animation: rf-check-in 260ms ease-out both; }
@media (min-width: 1024px) {
  /* the centred desktop card rises 24 px instead of sliding up from the bottom edge (undrawn); .sheet.sheet--form outranks the menu-sheet rules in motion.css */
  .sheet.sheet--form[open] { animation: rf-rise-in 320ms var(--ease-sheet-in); }
  .sheet.sheet--form.is-closing { animation: rf-rise-out 240ms var(--ease-sheet-out) forwards; }
}
@media (prefers-reduced-motion: reduce) {
  .sheet.sheet--form[open] { animation: fade-in 150ms linear; }
  .sheet.sheet--form.is-closing, .sheet.sheet--form.is-closing::backdrop { animation: none; }
  .rfield__err:not([hidden]), .rsum:not([hidden]), .rsheet__slot.is-leaving, .rdone:not([hidden]), .rdone:not([hidden]) .rdone__check { animation: none; }
  .rform__submit.is-busy .spinner { animation: none; border-right-color: currentColor; opacity: .7; }
  .btn-primary:enabled:active, a.btn-primary:active, .btn-quiet:active { transform: none; }
}
@media (forced-colors: active) {
  .consent__box, .segrad, .rinput { border-color: CanvasText; }
  /* M5 (WCAG 1.4.11 in high-contrast mode): filled buttons without a border would lose their outline */
  .btn-primary, .sheet__close { border: 1px solid ButtonText; }
  .star-opt__in:checked + .star-opt__ic { color: Highlight; }
}

/* motion.css */
/* motion — Package item 3.6 (only transform and opacity animate) */
@keyframes hero-photo-in {
  from { opacity: 0; transform: scale(1.04); }
  to   { opacity: 1; transform: none; }
}
@keyframes card-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
@keyframes sheet-in  { from { transform: translateY(100%); } to { transform: none; } }
@keyframes sheet-out { from { transform: none; } to { transform: translateY(100%); } }
@keyframes fade-in   { from { opacity: 0; } to { opacity: 1; } }
@keyframes fade-out  { from { opacity: 1; } to { opacity: 0; } }

/* page load */
.hero__img { animation: hero-photo-in 600ms var(--ease-out) both; }
.profile-card { animation: card-in 420ms var(--ease-out) 120ms both; }

/* menu sheet: open 320 ms / close 240 ms; scrim 0 → 62 % */
.sheet[open] { animation: sheet-in 320ms var(--ease-sheet-in); }
.sheet[open]::backdrop { animation: fade-in 320ms var(--ease-sheet-in); }
.sheet.is-closing { animation: sheet-out 240ms var(--ease-sheet-out) forwards; }
.sheet.is-closing::backdrop { animation: fade-out 240ms var(--ease-sheet-out) forwards; }

/* press: scale .96 (120 ms down / 180 ms up) + 8 % lighter overlay (components.css) */
.pill, .action__sq, .menu-btn, .lang__seg, .sheet-row, .seg__opt, .sheet__close, .desknav__link, .topbar__mono {
  transition: transform 180ms ease-out;
}
.pill:active, .action:active .action__sq, .menu-btn:active, .lang__seg:active, .sheet-row:active,
.seg__opt:active, .sheet__close:active, .desknav__link:active, .topbar__mono:active {
  transform: scale(.96);
  transition-duration: 120ms;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__img, .profile-card { animation: none; }
  .topbar__bg, .topbar__label { transition: none; }
  /* sheet: fade 150 ms instead of slide */
  .sheet[open], .sheet[open]::backdrop { animation: fade-in 150ms linear; }
  .sheet.is-closing, .sheet.is-closing::backdrop { animation: fade-out 150ms linear forwards; }
  /* press: colour only */
  .pill:active, .action:active .action__sq, .menu-btn:active, .lang__seg:active, .sheet-row:active,
  .seg__opt:active, .sheet__close:active, .desknav__link:active, .topbar__mono:active { transform: none; }
}

/* M3: section enters view (first time only) — fade + rise 12 px, 320 ms. The pre-state class is added by JS only
   when IntersectionObserver exists and only for sections below the fold, so content is never hidden without JS. */
.section { transition: opacity 320ms var(--ease-out), transform 320ms var(--ease-out); }
.section.is-pre-reveal { opacity: 0; transform: translateY(12px); }
.svc-card__less, .svc-card__toggle { transition: transform 180ms ease-out; }
.svc-card__toggle:enabled:active, .svc-card__less:active, .btn-outline:active, .dot:active { transform: scale(.96); transition-duration: 120ms; }

@media (prefers-reduced-motion: reduce) {
  /* card expand / collapse and section-enter: instant / none; carousel stays native (no autoplay either way) */
  .expander, .expander[data-open="false"], .svc-card[data-open="false"] .expander { transition: none; }
  .btn-outline__chev, .dot__v { transition: none; }
  .section { transition: none; }
  .section.is-pre-reveal { opacity: 1; transform: none; }
  .svc-card__toggle:enabled:active, .svc-card__less:active, .btn-outline:active, .dot:active { transform: none; }
}

