/* Beyond The Chair — shared styles. Tokens come from the gym's own walls. */
:root {
  --yellow: #F6D21E;
  --blue: #1B5FC1;
  --blue-dark: #134A99;
  --ink: #0B2A6B;
  --ink-soft: #3A4A6B;
  --white: #FFFFFF;
  --mat: #EDF2FA;
  --floor: #23262B;
  --line: #C9D3E6;

  --display: "Archivo", "Arial Narrow", sans-serif;
  --body: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, sans-serif;

  --step--1: 1rem;
  --step-0: 1.1875rem;   /* 19px body */
  --step-1: 1.375rem;
  --step-2: 1.75rem;
  --step-3: clamp(2rem, 1.4rem + 2.4vw, 3rem);
  --step-4: clamp(2.75rem, 1.6rem + 5vw, 5.5rem);

  --wrap: 75rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section: clamp(4rem, 8vw, 7rem);
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 0.18em; text-decoration-thickness: 2px; }
a:hover { color: var(--ink); }

:focus-visible {
  outline: 4px solid var(--ink);
  outline-offset: 3px;
  box-shadow: 0 0 0 8px var(--yellow);
  border-radius: 4px;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 68%;
  font-variation-settings: "wdth" 68;
  line-height: 1.02;
  letter-spacing: -0.005em;
  word-spacing: 0.08em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); line-height: 1.1; font-variation-settings: "wdth" 80; letter-spacing: 0; }
p { margin: 0 0 1em; max-width: 64ch; text-wrap: pretty; }
.lede { font-size: var(--step-1); line-height: 1.5; color: var(--ink); }
.muted { color: var(--ink-soft); }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.section { padding-block: var(--section); }
.section--mat { background: var(--mat); }
.section-head { max-width: 46rem; margin-bottom: 2.5rem; }
.section-head p { color: var(--ink-soft); }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--yellow); color: var(--ink); padding: 0.75rem 1rem;
  font-weight: 700; border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3.25rem; padding: 0.75rem 1.5rem;
  border-radius: 999px; border: 2px solid transparent;
  font: 700 var(--step-0)/1.2 var(--body);
  text-decoration: none; cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease;
}
.btn--primary { background: var(--blue); color: var(--white); }
.btn--primary:hover { background: var(--ink); color: var(--white); }
.btn--outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: var(--white); }
.btn--yellow { background: var(--yellow); color: var(--ink); }
.btn--yellow:hover { background: var(--white); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: relative; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 5.5rem; }
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--ink); }
.brand img { width: 64px; height: auto; }
.brand span { font: 800 1.35rem/1 var(--display); font-variation-settings: "wdth" 68; }

.nav-toggle {
  display: none; min-height: 3rem; padding: 0.5rem 1rem;
  border: 2px solid var(--ink); border-radius: 999px; background: none;
  font: 700 1rem var(--body); color: var(--ink); cursor: pointer;
}
.site-nav ul { list-style: none; display: flex; align-items: center; gap: 0.25rem; margin: 0; padding: 0; }
.site-nav a:not(.btn) {
  display: inline-flex; align-items: center; min-height: 3rem; padding: 0 0.85rem;
  color: var(--ink); text-decoration: none; font-weight: 700; border-radius: 999px;
}
.site-nav a:not(.btn):hover { background: var(--mat); }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--yellow); text-underline-offset: 0.4em; }
.site-nav .nav-phone { color: var(--blue); }
.site-nav .btn { min-height: 3rem; padding: 0.5rem 1.25rem; margin-left: 0.5rem; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--line); padding: 0.5rem var(--gutter) 1.25rem; }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; }
  .site-nav a:not(.btn) { padding: 0 0.5rem; font-size: var(--step-1); }
  .site-nav .btn { margin: 0.75rem 0 0; width: 100%; }
}

/* Hero: the yellow wall */
.hero { background: var(--yellow); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: stretch; min-height: min(78vh, 46rem); }
.hero-copy { padding-block: clamp(3rem, 7vw, 6rem); padding-right: clamp(1rem, 4vw, 3.5rem); align-self: center; }
.hero h1 { color: var(--ink); font-size: clamp(3rem, 1.6rem + 6vw, 6.5rem); line-height: 0.95; margin-bottom: 0.35em; }
.hero .lede { max-width: 34ch; }
.hero-photo { position: relative; margin-right: calc((min(100vw - 2 * var(--gutter), var(--wrap)) - 100vw) / 2); }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 38% 40%; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; margin: 2rem 0 0; padding: 0; list-style: none; font-weight: 700; }
.hero-facts li { display: flex; align-items: center; gap: 0.5rem; }
.hero-facts svg { flex: none; }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; min-height: 0; }
  .hero-photo { height: 22rem; margin-inline: calc(-1 * var(--gutter)); }
  .hero-copy { padding-right: 0; }
}

/* Page hero for inner pages */
.page-hero { background: var(--yellow); padding-block: clamp(3rem, 7vw, 5.5rem); }
.page-hero h1 { font-size: clamp(2.75rem, 1.6rem + 5vw, 5rem); max-width: 16ch; }
.page-hero .lede { max-width: 46ch; }

/* Conditions list */
.conditions { columns: 3 14rem; column-gap: 2.5rem; margin: 0; padding: 0; list-style: none; }
.conditions li { break-inside: avoid; padding: 0.6rem 0; border-bottom: 1px solid var(--line); font-weight: 700; font-size: var(--step-1); }

/* Split media + text */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split--flip > :first-child { order: 2; }
.split img { border-radius: var(--radius); width: 100%; object-fit: cover; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split--flip > :first-child { order: 0; }
}

/* Steps — a real sequence */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; counter-reset: step; }
.steps li { counter-increment: step; border-top: 4px solid var(--ink); padding-top: 1.25rem; }
.steps li::before {
  content: counter(step);
  display: block; margin-bottom: 0.75rem;
  font: 800 3.5rem/1 var(--display); font-variation-settings: "wdth" 68; color: var(--blue);
}
.steps h3 { font-size: var(--step-1); }
.steps p { font-size: var(--step--1); color: var(--ink-soft); margin: 0; }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Pricing table */
.price-table { width: 100%; border-collapse: collapse; font-size: var(--step-1); }
.price-table caption { text-align: left; font-weight: 700; margin-bottom: 0.75rem; font-size: var(--step-0); color: var(--ink-soft); }
.price-table th, .price-table td { text-align: left; padding: 1rem 0.5rem 1rem 0; border-bottom: 2px solid var(--line); }
.price-table thead th { font-size: var(--step--1); color: var(--ink-soft); border-bottom-color: var(--ink); }
.price-table td.price { font: 800 var(--step-3)/1 var(--display); font-variation-settings: "wdth" 68; white-space: nowrap; }
.price-table td.price small { font: 700 var(--step--1) var(--body); color: var(--ink-soft); }
.price-notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 2.5rem; }
.price-notes h3 { font-size: var(--step-1); }
.price-notes p { font-size: var(--step--1); }
@media (max-width: 860px) { .price-notes { grid-template-columns: 1fr; } }

/* Quotes */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; margin: 0; }
.quotes figure { margin: 0; border-left: 6px solid var(--yellow); padding-left: 1.25rem; }
.quotes blockquote { margin: 0 0 1rem; font-size: var(--step-1); line-height: 1.45; }
.quotes figcaption { font-weight: 700; }
@media (max-width: 860px) { .quotes { grid-template-columns: 1fr; } }

/* Team */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.team img { aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); width: 100%; background: var(--mat); }
.team h3 { font-size: var(--step-1); margin: 0.9rem 0 0.15rem; }
.team p { font-size: var(--step--1); color: var(--ink-soft); margin: 0; }
@media (max-width: 860px) { .team { grid-template-columns: 1fr 1fr; } }

.bio { display: grid; grid-template-columns: 14rem 1fr; gap: 2rem; padding-block: 2.5rem; border-top: 1px solid var(--line); }
.bio img { border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; }
.bio h3 { margin-bottom: 0.15em; }
.bio .role { font-weight: 700; color: var(--blue); margin-bottom: 1rem; }
@media (max-width: 640px) { .bio { grid-template-columns: 1fr; } .bio img { max-width: 14rem; } }

/* Donate band */
.donate-band { background: var(--blue); color: var(--white); }
.donate-band h2, .donate-band a:not(.btn) { color: var(--white); }
.donate-band p { color: #E4ECFA; }
.donate-band .split img { border-radius: var(--radius); }
.amounts { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.amounts li { background: rgba(255,255,255,0.12); border-radius: var(--radius); padding: 0.85rem 1.1rem; font-size: var(--step--1); line-height: 1.35; }
.amounts strong { display: block; font: 800 var(--step-2)/1 var(--display); font-variation-settings: "wdth" 68; color: var(--yellow); }

/* Fund cards on donate page */
.funds { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.fund { border: 2px solid var(--line); border-radius: var(--radius); padding: 2rem; display: flex; flex-direction: column; }
.fund p { flex: 1; }
@media (max-width: 760px) { .funds { grid-template-columns: 1fr; } }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.25rem 2.5rem 1.25rem 0; position: relative;
  font-weight: 700; font-size: var(--step-1); min-height: 3rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.25rem; top: 1rem; font: 800 2rem/1 var(--display); color: var(--blue); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding-bottom: 1.25rem; }

/* Lists */
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.ticks li { padding-left: 2rem; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0.25rem; top: 0.45em; width: 0.9rem; height: 0.9rem; border-radius: 50%; background: var(--yellow); box-shadow: inset 0 0 0 3px var(--ink); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }

.equipment { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 3rem; margin: 0; }
.equipment div { padding-block: 1.25rem; border-top: 1px solid var(--line); }
.equipment dt { font-weight: 700; font-size: var(--step-1); }
.equipment dd { margin: 0.25rem 0 0; color: var(--ink-soft); font-size: var(--step--1); }
@media (max-width: 760px) { .equipment { grid-template-columns: 1fr; } }

/* Forms */
.form { display: grid; gap: 1.5rem; max-width: 40rem; }
.field { display: grid; gap: 0.4rem; }
.field label, .field legend { font-weight: 700; }
.field .hint { font-size: var(--step--1); color: var(--ink-soft); margin: 0; }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); background: var(--white);
  min-height: 3.25rem; padding: 0.7rem 0.9rem;
  border: 2px solid var(--ink-soft); border-radius: 8px; width: 100%;
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { border-color: var(--ink); }
fieldset.field { border: 0; padding: 0; margin: 0; }
.choice { display: flex; align-items: center; gap: 0.75rem; min-height: 2.75rem; }
.choice input { width: 1.5rem; height: 1.5rem; min-height: 0; accent-color: var(--blue); }
.hp { position: absolute; left: -9999px; }
.form-status { padding: 1rem 1.25rem; border-radius: var(--radius); font-weight: 700; }
.form-status--ok { background: #E3F4E8; color: #14532D; }
.form-status--error { background: #FDECEC; color: #8A1C1C; }

.callout { background: var(--mat); border-radius: var(--radius); padding: 1.75rem; }
.callout h2, .callout h3 { font-size: var(--step-2); }

/* Visit */
.visit { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.visit img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; object-position: 45% 50%; }
.visit dl { margin: 0; display: grid; gap: 1.25rem; }
.visit dt { font-weight: 700; color: var(--ink-soft); font-size: var(--step--1); }
.visit dd { margin: 0; font-size: var(--step-1); }
@media (max-width: 860px) { .visit { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--floor); color: #D7DCE4; padding-block: 3.5rem 2rem; font-size: var(--step--1); }
.site-footer a { color: var(--white); }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.site-footer h2 { font-size: var(--step-1); color: var(--white); margin-bottom: 0.75rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.site-footer .fine { grid-column: 1 / -1; border-top: 1px solid #3A3F47; padding-top: 1.5rem; margin-top: 1rem; color: #AEB5C0; }
.site-footer .fine p { max-width: none; margin: 0 0 0.5rem; }
@media (max-width: 860px) { .site-footer .wrap { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* One orchestrated moment: hero headline lines settle in on load */
@media (prefers-reduced-motion: no-preference) {
  .hero h1 .line { display: block; animation: settle 700ms cubic-bezier(.2,.7,.2,1) both; }
  .hero h1 .line:nth-child(2) { animation-delay: 90ms; }
  .hero h1 .line:nth-child(3) { animation-delay: 180ms; }
  @keyframes settle { from { opacity: 0; transform: translateY(0.35em); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
.quotes--stack { grid-template-columns: 1fr; gap: 2rem; }
.callout--next { margin-top: 1.5rem; }
.spaced { margin-top: 1.5rem; }
.spaced-lg { margin-top: 3rem; }
.crop-portrait { aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 40%; max-height: 34rem; }

/* Photo grid */
.photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; margin: 0; padding: 0; list-style: none; }
.photo-grid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 760px) { .photo-grid { grid-template-columns: 1fr 1fr; } }

/* Videos: thumbnail button that swaps in the player on click */
.videos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.video h3 { font-size: var(--step-1); margin: 0.85rem 0 0.25rem; }
.video p { font-size: var(--step--1); color: var(--ink-soft); margin: 0; }
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--floor); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play { all: unset; position: absolute; inset: 0; cursor: pointer; display: block; }
.video-play img { width: 100%; height: 100%; object-fit: cover; }
.video-play span {
  position: absolute; left: 1rem; bottom: 1rem; display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--yellow); color: var(--ink); font: 700 1rem var(--body); padding: 0.6rem 1rem; border-radius: 999px;
}
.video-play:focus-visible { outline: 4px solid var(--yellow); outline-offset: -4px; }
@media (max-width: 860px) { .videos { grid-template-columns: 1fr; } }

/* History timeline */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 7rem 1fr 18rem; gap: 2rem; padding-block: 2rem; border-top: 1px solid var(--line); align-items: start; }
.timeline .year { font: 800 var(--step-3)/1 var(--display); font-variation-settings: "wdth" 68; color: var(--blue); }
.timeline h3 { font-size: var(--step-1); }
.timeline p { margin: 0; }
.timeline img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 860px) { .timeline li { grid-template-columns: 1fr; gap: 0.75rem; } }

/* Press list */
.press { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 3rem; }
.press li { padding-block: 1.25rem; border-top: 1px solid var(--line); }
.press .outlet { font-weight: 700; color: var(--ink-soft); font-size: var(--step--1); display: block; }
.press a { font-weight: 700; font-size: var(--step-1); }
@media (max-width: 760px) { .press { grid-template-columns: 1fr; } }
.spaced-xl { margin-top: 3.5rem; }
