/* The Fitness Den: "Raise the bar"
   Palette from the room in daylight: chalk walls, steel frame, rubber floor, plyo-box yellow. */
:root {
  --chalk: #f2f3f0;
  --steel: #1f252c;
  --rubber: #545a62;
  --plyo: #f4c21b;
  --white: #ffffff;
  --line: rgba(31, 37, 44, 0.16);

  --f-display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --f-text: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1280px;
  --gut: clamp(1.25rem, 4vw, 3rem);
  --head: 4.25rem;
  --bar: clamp(10px, 1.1vw, 14px);

  --swing: cubic-bezier(0.34, 1.5, 0.5, 1);
  --out: cubic-bezier(0.2, 0.7, 0.1, 1);
}

@view-transition { navigation: auto; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head) + 1rem); }
body {
  margin: 0;
  background: var(--chalk);
  color: var(--steel);
  font-family: var(--f-text);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: clip;
}
ul[role="list"], ol[role="list"] { list-style: none; margin: 0; padding: 0; }
abbr[title] { text-decoration: none; }
main, .site-foot { overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; max-width: 62ch; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 800; line-height: 0.92; margin: 0; letter-spacing: 0.005em; }

:focus-visible { outline: 3px solid var(--steel); outline-offset: 3px; border-radius: 2px; }
.on-dark :focus-visible, .site-foot :focus-visible { outline-color: var(--plyo); }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--plyo); color: var(--steel); padding: 0.75rem 1rem; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 1rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: min(100% - 2 * var(--gut), var(--wrap)); margin-inline: auto; }

/* ---------- Header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--chalk) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  view-transition-name: site-head;
}
.site-head__in { display: flex; align-items: center; gap: 1.5rem; height: var(--head); }
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; margin-right: auto; }
.brand img { width: auto; height: 2.5rem; }
.brand span { font-family: var(--f-display); font-weight: 800; font-size: 1.35rem; line-height: 1; }
.nav { display: flex; gap: 0.25rem; }
.nav a {
  position: relative; text-decoration: none; font-weight: 500; padding: 0.5rem 0.75rem;
}
.nav a::after {
  content: ""; position: absolute; left: 0.75rem; right: 0.75rem; bottom: 0.2rem; height: 3px;
  background: var(--plyo); transform: scaleX(0); transform-origin: left; transition: transform 0.25s var(--out);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { font-weight: 600; }
.nav__extra { display: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 2.9rem; padding: 0.7rem 1.25rem;
  font-family: var(--f-text); font-weight: 600; font-size: 1rem; text-decoration: none;
  border: 2px solid var(--steel); border-radius: 999px;
  background: var(--steel); color: var(--chalk);
  transition: transform 0.15s var(--out), background-color 0.15s, color 0.15s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px); }
.btn--plyo { background: var(--plyo); border-color: var(--plyo); color: var(--steel); }
.btn--ghost { background: transparent; color: var(--steel); }
.btn--ghost:hover { background: var(--steel); color: var(--chalk); }
.on-dark .btn--ghost { color: var(--chalk); border-color: var(--chalk); }
.on-dark .btn--ghost:hover { background: var(--chalk); color: var(--steel); }

.menu-btn {
  display: none; background: none; border: 2px solid var(--steel); border-radius: 999px;
  font: 600 1rem var(--f-text); color: var(--steel); padding: 0.45rem 1rem; cursor: pointer;
}

@media (max-width: 860px) {
  .menu-btn { display: inline-block; }
  .site-head .btn { display: none; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; padding: 0.5rem var(--gut) 1.5rem;
    background: var(--chalk); border-bottom: var(--bar) solid var(--steel);
    visibility: hidden; opacity: 0; transform: translateY(-0.75rem);
    transition: opacity 0.2s, transform 0.25s var(--out), visibility 0s 0.25s;
  }
  .nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity 0.2s, transform 0.25s var(--out); }
  .nav a { font-family: var(--f-display); font-weight: 800; font-size: 2rem; padding: 0.35rem 0; }
  .nav a::after { left: 0; right: auto; width: 3rem; }
  .nav__extra { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
  .nav__extra a { font-family: var(--f-text); font-size: 1rem; }
}

/* ---------- The rig: steel bar with two posts to the ceiling ---------- */
.rig { position: relative; height: calc(var(--bar) + 2.5rem); pointer-events: none; }
.rig__bar {
  position: absolute; left: 0; right: 0; bottom: 0; height: var(--bar);
  background: var(--steel); border-radius: var(--bar);
  transform-origin: left center;
}
.rig__bar::before, .rig__bar::after { /* chalked grip zones */
  content: ""; position: absolute; top: 0; bottom: 0; width: 9%;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.28) 0 2px, transparent 2px 6px);
  border-radius: inherit;
}
.rig__bar::before { left: 22%; }
.rig__bar::after { right: 22%; }
.rig__post { position: absolute; bottom: 0; top: 0; width: calc(var(--bar) * 0.7); background: var(--steel); }
.rig__post--l { left: 6%; }
.rig__post--r { right: 6%; }

/* ---------- Hang reveal: drops from the bar with a small swing. Replays on every re-entry. ---------- */
.reveal { transform-origin: 50% 0; }
.js .reveal {
  transition: opacity 0.5s var(--out), transform 0.9s var(--swing);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.js .reveal:not(.is-in) { opacity: 0; transform: translateY(-1.5rem) rotate(-2.5deg); }
/* big blocks swing less */
.js .trainer.reveal:not(.is-in), .js .class-row__media.reveal:not(.is-in) { transform: translateY(-1.5rem) rotate(-1.2deg); }
.js .reveal.reveal--rise:not(.is-in) { transform: translateY(2rem); }
.js .reveal.reveal--bar { transition: transform 0.9s var(--out); }
.js .reveal.reveal--bar:not(.is-in) { opacity: 1; transform: scaleX(0.08); }

/* ---------- Hero ---------- */
.hero { position: relative; padding-bottom: clamp(3rem, 7vw, 6rem); }
.hero .rig { height: calc(var(--bar) + clamp(2rem, 5vw, 4rem)); transform: translateY(calc(var(--lift, 0) * -3rem)); }
.hero__grid {
  display: grid; gap: clamp(1.5rem, 4vw, 4rem);
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start;
}
.hero__title {
  font-size: clamp(4.25rem, 14vw, 12.5rem); font-weight: 900; line-height: 0.82;
  margin-top: clamp(1.25rem, 3vw, 2.5rem);
  transform: translateY(calc(var(--lift, 0) * -2rem));
}
.hero__title .ln { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero__title .ln > span { display: inline-block; }
.hero__lead { font-size: clamp(1.125rem, 1.6vw, 1.35rem); margin-top: 1.75rem; max-width: 34ch; }
.hero__lead strong { font-weight: 600; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.hero__photo { position: relative; margin: 0; }
.hero__photo::before { /* sunlit block behind the photo */
  content: ""; position: absolute; inset: 12% -6% -5% 18%; background: var(--plyo); z-index: -1;
  transform: translateY(calc(var(--lift, 0) * 2.5rem));
}
.hero__photo img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.hero__photo figcaption { font-size: 0.9rem; color: var(--rubber); margin-top: 0.6rem; }

.js .hero .rig__bar { animation: bar-in 0.9s var(--out) both; }
.js .hero__title .ln > span { animation: pull-up 0.9s var(--out) both; animation-delay: calc(0.35s + var(--i, 0) * 0.12s); }
.js .hero__lead, .js .hero__actions { animation: settle 0.7s var(--out) both 0.8s; }
.js .hero__photo { animation: hang-in 1.1s var(--swing) both 0.55s; }

@keyframes bar-in { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes pull-up { from { transform: translateY(105%); } to { transform: translateY(0); } }
@keyframes settle { from { opacity: 0; transform: translateY(0.75rem); } to { opacity: 1; transform: none; } }
@keyframes hang-in { from { opacity: 0; transform: translateY(-2rem) rotate(-3deg); } to { opacity: 1; transform: none; } }

@media (max-width: 760px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__photo { width: 86%; margin-left: auto; }
}

/* ---------- Class ticker ---------- */
.ticker {
  position: relative; background: var(--plyo); color: var(--steel); overflow: hidden;
  border-block: var(--bar) solid var(--steel);
}
.ticker__track { display: flex; width: max-content; animation: ticker 32s linear infinite; }
.ticker__track ul { display: flex; list-style: none; margin: 0; padding: 0; }
.ticker__track li {
  font-family: var(--f-display); font-weight: 800; font-size: clamp(1.75rem, 4vw, 3rem);
  padding: 0.7rem 1.4rem; white-space: nowrap; display: flex; align-items: center; gap: 2.8rem;
}
.ticker__track li::after { content: ""; width: 0.5em; height: 0.5em; border-radius: 50%; border: 3px solid currentColor; }
.ticker.is-paused .ticker__track { animation-play-state: paused; }
.ticker__toggle {
  position: absolute; right: 0.6rem; top: 50%; transform: translateY(-50%);
  background: var(--steel); color: var(--chalk); border: 0; border-radius: 999px;
  font: 600 0.85rem var(--f-text); padding: 0.45rem 0.85rem; cursor: pointer;
}
.ticker__toggle:focus-visible { outline-color: var(--steel); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(4rem, 9vw, 8rem); }
.section--tight { padding-top: clamp(2rem, 4vw, 3rem); }
.section__head { display: grid; gap: 1rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section__head h2, .page-title { font-size: clamp(3rem, 8vw, 6.5rem); font-weight: 900; }
.section__head p { color: var(--rubber); font-size: 1.125rem; }
.section__head--split { grid-template-columns: minmax(0, 1fr) minmax(0, 28rem); align-items: end; }
@media (max-width: 760px) { .section__head--split { grid-template-columns: 1fr; } }

.on-dark { background: var(--steel); color: var(--chalk); }
.on-dark .section__head p, .on-dark .muted { color: #c3c8ce; }
.on-dark .rig__bar, .on-dark .rig__post { background: var(--chalk); }
.on-dark .rig__bar::before, .on-dark .rig__bar::after { background: repeating-linear-gradient(90deg, rgba(31,37,44,.35) 0 2px, transparent 2px 6px); }

.text-link {
  font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.25em;
  text-decoration-color: var(--steel);
}
.on-dark .text-link { text-decoration-color: var(--plyo); }
.text-link:hover { text-decoration-color: currentColor; }

/* ---------- The week: classes hang on straps from one bar ---------- */
.week { position: relative; --name: 2.75rem; }
.week__bar {
  position: absolute; left: 0; right: 0; top: var(--name); height: var(--bar);
  background: var(--steel); border-radius: var(--bar); transform-origin: left;
}
.on-dark .week__bar { background: var(--chalk); }
.week__days { position: relative; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: clamp(0.4rem, 1vw, 1rem); }
.day { display: flex; flex-direction: column; align-items: center; min-height: 15rem; padding-bottom: 1rem; }
.day__name { height: var(--name); font-family: var(--f-display); font-weight: 800; font-size: 1.6rem; line-height: var(--name); margin-bottom: var(--bar); }
.day__slots { display: flex; flex-direction: column; align-items: center; width: 100%; }
.day__slot { display: flex; flex-direction: column; align-items: center; width: 100%; }
.day__slot::before { content: ""; width: 3px; height: 2.2rem; background: currentColor; opacity: 0.55; }
.day__slot + .day__slot::before { height: 1rem; }
.tag {
  display: block; width: 100%; text-decoration: none; text-align: center;
  background: var(--plyo); color: var(--steel);
  border-radius: 0.9rem; padding: 0.85rem 0.5rem 0.9rem;
  transition: transform 0.25s var(--swing); transform-origin: 50% 0;
}
.tag:hover { transform: rotate(-3deg); }
.tag b { display: block; font-family: var(--f-display); font-weight: 800; font-size: clamp(1.25rem, 1.8vw, 1.6rem); line-height: 1; }
.tag span { display: block; font-size: 0.95rem; font-weight: 600; margin-top: 0.3rem; }
.day__rest { margin-top: 2.2rem; color: var(--rubber); font-size: 0.95rem; text-align: center; }
.on-dark .day__rest { color: #c3c8ce; }
.week__more { margin-top: 2rem; }

@media (max-width: 860px) {
  .week__bar { display: none; }
  .week__days { grid-template-columns: 1fr; gap: 0; }
  .day {
    flex-direction: row; align-items: center; min-height: 0; gap: 1rem;
    border-top: var(--bar) solid currentColor; padding: 0.9rem 0 1.2rem;
  }
  .day__name { width: 3.5rem; flex: none; margin: 0; height: auto; line-height: 1; }
  .day__slots { flex-direction: row; flex-wrap: wrap; gap: 0.6rem; flex: 1; }
  .day__slot::before { display: none; }
  .day__slot { width: auto; flex: 1 1 9rem; }
  .tag { text-align: left; padding: 0.75rem 1rem; }
  .day__rest { margin: 0; text-align: left; }
}

/* ---------- Den block (about teaser) ---------- */
.den { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.den__copy h2 { font-size: clamp(2.75rem, 6vw, 5rem); font-weight: 900; margin-bottom: 1.25rem; }
.den__copy p { font-size: 1.15rem; }
.den__photos { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: start; }
.den__photos figure:nth-child(2) { margin-top: 5rem; }
@media (max-width: 760px) { .den { grid-template-columns: 1fr; } }

/* ---------- Hanging frames (photos on two straps) ---------- */
.frame { margin: 0; position: relative; padding-top: 2.5rem; }
.frame::before, .frame::after {
  content: ""; position: absolute; top: 0; width: 3px; height: 2.5rem; background: currentColor; opacity: 0.6;
}
.frame::before { left: 18%; }
.frame::after { right: 18%; }
.frame img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 0.4rem; }
.frame figcaption { font-size: 0.9rem; margin-top: 0.6rem; opacity: 0.8; }

/* ---------- Trainers ---------- */
.trainers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 4rem); }
.trainer h3 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 900; margin-top: 1.25rem; }
.trainer__role { font-weight: 600; font-size: 1.125rem; margin: 0.4rem 0 1rem; }
.trainer__book { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.trainer__book .label { width: 100%; margin: 0 0 0.25rem; }
@media (max-width: 700px) { .trainers { grid-template-columns: 1fr; } }

/* ---------- Find us ---------- */
.find { background: var(--plyo); }
.find__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: end; }
.find h2 { font-size: clamp(3rem, 9vw, 7.5rem); font-weight: 900; }
.find address { font-style: normal; font-size: clamp(1.35rem, 2.4vw, 1.9rem); font-weight: 600; line-height: 1.3; margin-top: 1rem; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; border-top: var(--bar) solid var(--steel); }
.contact-list li { border-bottom: 2px solid var(--steel); }
.contact-list a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 0.9rem 0.25rem;
  text-decoration: none; font-family: var(--f-display); font-weight: 800; font-size: clamp(1.5rem, 3vw, 2.25rem); line-height: 1.1;
  transition: padding 0.2s var(--out);
}
.contact-list a small { font-family: var(--f-text); font-weight: 500; font-size: 0.95rem; }
.contact-list a:hover { padding-left: 0.9rem; }
@media (max-width: 760px) { .find__grid { grid-template-columns: 1fr; } }

/* ---------- Page header (inner pages) ---------- */
.page-head { padding-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.page-title { margin-top: clamp(1.25rem, 3vw, 2.5rem); font-size: clamp(3.75rem, 12vw, 10rem); }
.page-lead { font-size: clamp(1.125rem, 1.6vw, 1.35rem); margin-top: 1.5rem; max-width: 40ch; }
.js .page-head .rig__bar { animation: bar-in 0.9s var(--out) both; }
.js .page-title { animation: hang-in 1s var(--swing) both 0.25s; }
.js .page-lead { animation: settle 0.7s var(--out) both 0.6s; }

/* ---------- Class detail rows ---------- */
.class-row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 5vw, 5rem);
  align-items: center; padding-block: clamp(3rem, 6vw, 5rem); border-top: var(--bar) solid var(--steel);
}
.class-row:nth-of-type(even) .class-row__media { order: 2; }
.class-row h2 { font-size: clamp(2.75rem, 7vw, 5.5rem); font-weight: 900; margin-bottom: 1rem; }
.class-row .when { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.5rem, 2.5vw, 2rem); background: var(--plyo); display: inline-block; padding: 0.2rem 0.8rem; border-radius: 0.5rem; margin-bottom: 1.25rem; }
.class-row .focus { list-style: none; padding: 0; margin: 0 0 1.25rem; display: flex; gap: 0.5rem; flex-wrap: wrap; }
.class-row .focus li { border: 2px solid var(--steel); border-radius: 999px; padding: 0.15rem 0.8rem; font-weight: 600; font-size: 0.95rem; }
.class-row--text { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 760px) {
  .class-row, .class-row--text { grid-template-columns: 1fr; }
  .class-row:nth-of-type(even) .class-row__media { order: 0; }
}

/* ---------- Pricing ---------- */
.ask { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.ask a {
  display: flex; flex-direction: column; justify-content: space-between; gap: 2.5rem; min-height: 12rem;
  padding: 1.5rem; text-decoration: none; background: var(--white); border-top: var(--bar) solid var(--steel);
  transition: background-color 0.2s, transform 0.25s var(--swing); transform-origin: 50% 0;
}
.ask a:hover { background: var(--plyo); transform: rotate(-1.5deg); }
.ask small { font-weight: 600; font-size: 1rem; }
.ask b { font-family: var(--f-display); font-weight: 900; font-size: clamp(2rem, 3.5vw, 2.75rem); line-height: 1; }
@media (max-width: 1000px) { .ask { grid-template-columns: 1fr; } .ask a { min-height: 0; } }
.ask b { overflow-wrap: anywhere; }

/* ---------- About facts ---------- */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; list-style: none; padding: 0; margin: 0; }
.facts li { border-top: var(--bar) solid currentColor; padding-top: 1rem; }
.facts h3 { font-size: 1.9rem; margin-bottom: 0.6rem; }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr; gap: 2rem; } }

/* ---------- Call to action strip ---------- */
.cta { text-align: left; }
.cta h2 { font-size: clamp(3.25rem, 10vw, 8rem); font-weight: 900; }
.cta p { font-size: 1.15rem; margin-top: 1.25rem; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

/* ---------- Footer ---------- */
.site-foot { background: var(--steel); color: var(--chalk); padding-block: 4rem 2rem; }
.site-foot__grid { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 2rem; }
.site-foot img { height: 4.5rem; width: auto; margin-bottom: 1rem; }
.site-foot h2 { font-family: var(--f-text); font-weight: 600; font-size: 1rem; line-height: 1.4; margin-bottom: 0.6rem; color: var(--plyo); }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin-bottom: 0.35rem; }
.site-foot a { text-decoration: none; }
.site-foot a:hover { text-decoration: underline; text-decoration-color: var(--plyo); text-underline-offset: 0.2em; }
.site-foot__motto { font-family: var(--f-display); font-weight: 900; font-size: 2.5rem; line-height: 1; }
.site-foot__base { margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid rgba(242,243,240,.2); font-size: 0.9rem; color: #c3c8ce; }
@media (max-width: 860px) { .site-foot__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .site-foot__grid { grid-template-columns: 1fr; } }

/* ---------- Reduced motion: everything at rest ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .js .reveal, .js .reveal:not(.is-in) { opacity: 1 !important; transform: none !important; }
  .hero .rig, .hero__title, .hero__photo::before { transform: none !important; }
  .ticker__toggle { display: none; }
  .ticker__track { flex-wrap: wrap; width: auto; }
  .ticker__track ul[aria-hidden="true"] { display: none; }
  .ticker__track ul { flex-wrap: wrap; }
  @view-transition { navigation: none; }
}
