:root {
  color-scheme: light;
  --blue: #233ec4;
  --paper: #fafafa;
  --panel-night: #242523;
  --panel-sand: #b8a894;
  --ink: #1b2231;
  --rule: rgb(255 255 255 / 42%);
  --outline: #ffdc8e;
  --u: clamp(1.1rem, 4.2vw, 4.7rem);
  --gutter: clamp(.42rem, 1vw, .95rem);
  --corners: clamp(.7rem, 1.15vw, 1rem);
  --ease: cubic-bezier(.22,.72,.18,1);
  --duration: 560ms;
  --header-height: 4.75rem;
  --nav-inset: calc(.5rem + env(safe-area-inset-top, 0px));
  --nav-clearance: calc(var(--nav-inset) + 4rem);
  --studio-paper: #f0e9de;
  --studio-bottom: calc(var(--nav-space) + 1rem);
  --nav-space: calc(5.5rem + env(safe-area-inset-bottom, 0px));
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-clearance); }
body {
  margin: 0;
  color: var(--paper);
  background: var(--studio-paper);
}
.trainer-cover {
  min-height: 92vh;
  min-height: 92svh;
  background-color: var(--panel-night);
}
button, a { font: inherit; color: inherit; }
button { cursor: pointer; }
a { text-underline-offset: .23em; }
:focus-visible { outline: .18rem solid var(--outline); outline-offset: .18rem; }
.masthead, .hero { width: min(110rem, 100%); padding-inline: var(--u); margin-inline: auto; }
.masthead {
  min-height: calc(var(--header-height) + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}
.masthead::after { content: ""; position: absolute; inset: auto var(--u) 0; height: 1px; background: var(--rule); }
.brand { display: inline-flex; align-items: center; gap: .65rem; font-size: 1.45rem; font-weight: 700; letter-spacing: -.065em; }
.brand-mark { display: inline-flex; gap: .18rem; transform: skewX(-24deg); padding-inline: .2rem; }
.brand-mark i { width: .42rem; height: 1.13rem; background: currentColor; }
.back { min-height: 2.75rem; display: inline-flex; align-items: center; font-size: .94rem; text-decoration: none; }
.back:hover { text-decoration: underline; }
.hero { display: grid; grid-template-columns: minmax(14rem,.78fr) minmax(0,1.42fr); align-items: center; gap: clamp(1.75rem,4.4vw,5.75rem); padding-top: clamp(2.25rem,6.5vh,5rem); }
.intro { min-width: 0; }
.location, .lead, h1, h2, .info p { margin: 0; }
.location { font-size: .97rem; }
#trainer-heading { margin: 1.15rem 0 1.4rem; font-size: clamp(3.3rem,6.6vw,7.8rem); line-height: .95; letter-spacing: -.07em; }
.lead { max-width: 23ch; font-size: clamp(1.05rem,1.33vw,1.4rem); line-height: 1.4; }
.trainer-chooser { min-width: 0; scroll-margin-top: 1rem; }
.roster { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: var(--gutter); min-width: 0; height: clamp(27rem,64svh,42rem); }
.roster.enhanced { transition: grid-template-columns var(--duration) var(--ease); touch-action: pan-y pinch-zoom; }
.roster.is-dragging { transition: none; user-select: none; }
.roster[data-active="0"] { grid-template-columns: minmax(0,4fr) minmax(0,1fr); }
.roster[data-active="1"] { grid-template-columns: minmax(0,1fr) minmax(0,4fr); }
.coach { position: relative; isolation: isolate; overflow: hidden; min-width: 0; border-radius: var(--corners); background: var(--paper); color: #363636; }
.photo { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 16%; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .coach > .photo {
    height: calc(100% + .5rem);
    transition: transform .48s var(--ease), filter .48s ease;
  }
  .roster:not(.is-dragging) .coach:is(:hover, :has(> .selector:focus-visible)) > .photo {
    transform: translateY(-.5rem);
    filter: saturate(1.12) contrast(1.04);
  }
}
.selector { z-index: 1; position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; background: transparent; border: 0; border-radius: inherit; }
.selector[aria-expanded="true"] { cursor: default; }
.selector:focus-visible { outline-offset: -.28rem; }
.rail { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; align-items: center; padding-block: 1.15rem 1.5rem; background: linear-gradient(to top, rgb(250 248 244 / 94%), rgb(250 248 244 / 82%) 10rem, transparent 14rem); opacity: 0; transition: opacity .18s ease; }
.selector[aria-expanded="false"] .rail { opacity: 1; }
.swipe-arrow { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; color: var(--ink); background: var(--paper); }
.swipe-arrow svg { width: 1.3rem; height: 1.3rem; }
.rail-name { writing-mode: vertical-rl; transform: rotate(180deg); font-size: clamp(1.35rem,2.15vw,2.2rem); font-weight: 700; letter-spacing: -.035em; }
.info { position: absolute; z-index: 2; inset: auto clamp(1.2rem,2.25vw,2.7rem) clamp(.75rem,1.2vw,1.25rem); pointer-events: none; }
.info::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -1.75rem -3rem -3rem;
  background: linear-gradient(to bottom, transparent, rgb(250 248 244 / 82%) 1.75rem, rgb(250 248 244 / 94%) 100%);
}
.info h2 { font-size: clamp(1.25rem,2vw,1.875rem); line-height: 1.08; letter-spacing: -.025em; }
.info p { margin-top: .35rem; font-size: clamp(.875rem,1vw,1rem); line-height: 1.32; max-width: 36ch; }
.enhanced .info { transition: opacity .23s ease .18s, transform .35s var(--ease) .12s; }
.enhanced .info[inert] { opacity: 0; visibility: hidden; transform: translateY(.55rem); transition: none; }
.actions { display: grid; grid-template-columns: repeat(2, minmax(0, 13.75rem)); gap: .55rem; margin-top: 1.05rem; }
.roster:not(.enhanced) .actions { grid-template-columns: minmax(0, 13.75rem); }
.actions > * { pointer-events: auto; }
.coach-bio { margin-top: .45rem; border-radius: var(--corners); background: #f1f0eb; color: var(--ink); }
.coach-bio h3 { margin: 0; padding: .85rem 1.15rem; font-size: 1.1rem; line-height: 1.3; }
.bio-content { margin-inline: 1.15rem; padding-block: .3rem 1rem; border-top: 1px solid #c8c9c5; }
.bio-content dl { margin: .6rem 0; }
.bio-content dt { margin-top: .75rem; font-weight: 650; }
.bio-content dd { margin: .25rem 0 0; max-width: 56ch; line-height: 1.45; }
.bio-content ul { padding-left: 1.15rem; margin: .4rem 0 .6rem; }
.bio-content li + li { margin-top: .3rem; }
.bio-content a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.page-section { display: grid; align-items: center; min-height: 66svh; padding: clamp(3.5rem,9vh,7rem) var(--u) max(var(--nav-space),8vh); }
.section-inner { width: min(100%, 100rem); margin: auto; display: grid; grid-template-columns: minmax(0,.78fr) minmax(0,1.42fr); gap: clamp(1.75rem,4.4vw,5.75rem); }
.section-inner h2 { font-size: clamp(2.5rem,5.25vw,6rem); letter-spacing: -.065em; line-height: .99; }
.section-inner h3 { margin: 0; font-size: clamp(1.45rem,2.5vw,2.8rem); letter-spacing: -.045em; line-height: 1.07; }
.section-inner p, .section-inner address { margin: .7rem 0; max-width: 42ch; font-size: clamp(1rem,1.24vw,1.2rem); line-height: 1.45; font-style: normal; }
.section-inner a { display: inline-flex; align-items: center; min-height: 2.75rem; font-weight: 600; }
.goals-section { background: #f0efeb; color: #191d20; }
.goals-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem 2rem; }
.goals-list details { border-top: 1px solid #a5a7a0; padding-top: 1.25rem; }
.goals-list h3 { font-size: clamp(1.35rem, 2vw, 2.1rem); }
.training-section {
  --format-progress: 0;
  --format-top: linear-gradient(to bottom, var(--panel-night), transparent 35%);
  --format-ease: cubic-bezier(.22,.75,.18,1);
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  padding: clamp(2rem,5vw,5.25rem) var(--u) calc(var(--nav-space) + 1.1rem);
  background: var(--format-top), radial-gradient(ellipse at 75% 40%, #785238 0%, #3d3029 42%, #202120 83%);
  color: #fffaf4;
}
.training-section::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: var(--format-top), radial-gradient(ellipse at 75% 40%, #376669 0%, #243e42 46%, #17282b 83%);
  opacity: var(--format-progress); transition: opacity .48s var(--format-ease);
}
.format-layout { max-width: 82rem; min-height: calc(100svh - 2 * var(--nav-space)); margin-inline: auto; display: flex; flex-direction: column; }
.format-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.format-head h2 { font-size: clamp(1.7rem,3.2vw,3rem); line-height: 1; letter-spacing: -.055em; }
/* The floating menu uses the same segmented control as the training selector. */
.format-tabs, .section-nav {
  --switch-tint: #0d16164a;
  padding: .25rem;
  border: 1px solid #ffffff4d;
  border-radius: 3rem;
  background: linear-gradient(var(--switch-tint), var(--switch-tint)), var(--switch-backdrop, transparent);
  isolation: isolate;
}
.format-tabs { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; flex: none; }
.format-tabs[hidden] { display: none; }
.format-tabs::before, .section-nav::before {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: inherit;
  background: #fffaf3;
  pointer-events: none;
}
.format-tabs::before { inset: .25rem auto .25rem .25rem; width: calc(50% - .25rem); transform: translateX(calc(100% * var(--format-progress))); transition: transform .42s var(--format-ease); }
.format-tabs button, .section-nav a {
  min-height: 2.8rem;
  background: transparent;
  color: white;
  border: none;
  border-radius: inherit;
  font-weight: 600;
}
.format-tabs button { padding: .5rem 1.3rem; }
.format-tabs button[aria-selected="true"], .section-nav a[aria-current] { color: #1d2424; }
.format-tabs button:focus-visible, .section-nav a:focus-visible { outline-offset: -.2rem; outline-color: #c1843e; }
.format-pages { min-width: 0; margin-block: auto; }
.format-panel { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.05fr); align-items: center; gap: clamp(1.5rem,5vw,5rem); padding-block: clamp(1.5rem,5vh,4rem); scroll-margin-top: 9rem; }
.format-visual { grid-column: 2; grid-row: 1; display: grid; place-items: center; }
.format-visual img { display: block; width: 100%; height: clamp(16rem,37vw,29rem); object-fit: contain; pointer-events: none; filter: drop-shadow(0 1.4rem 1.4rem #070d104d); }
.format-copy { grid-column: 1; grid-row: 1; min-width: 0; }
.format-copy h3 { margin: 0; font-size: clamp(3.1rem,6.8vw,7rem); line-height: .95; letter-spacing: -.07em; font-weight: 650; }
@media (min-width: 42.001rem) {
  #gym .format-copy { container-type: inline-size; }
  #gym-title { font-size: min(14.5cqi, 6.8vw, 7rem); }
}
.format-copy > p { max-width: 40ch; margin: 1.2rem 0; font-size: clamp(1.05rem,1.52vw,1.45rem); line-height: 1.42; }
.format-detail { max-width: 42ch; padding-top: .8rem; border-top: 1px solid #ffffff52; }
.format-detail p, .format-detail address { margin: 0; line-height: 1.45; font-style: normal; }
.format-detail a { display: inline-flex; align-items: center; min-height: 2.75rem; text-underline-offset: .24em; }
.format-action { margin-top: .8rem; align-self: flex-start; }
.training-section[data-enhanced] .format-pages { display: grid; overflow: clip; touch-action: pan-y pinch-zoom; }
.training-section[data-enhanced] .format-panel { grid-area: 1 / 1; }
.training-section[data-enhanced] .format-copy, .training-section[data-enhanced] .format-visual { transition: opacity .38s ease, transform .5s var(--format-ease); }
.training-section[data-enhanced] #gym .format-copy, .training-section[data-enhanced] #gym .format-visual { opacity: calc(1 - var(--format-progress)); }
.training-section[data-enhanced] #online .format-copy, .training-section[data-enhanced] #online .format-visual { opacity: var(--format-progress); }
.training-section[data-enhanced] #gym .format-visual { transform: translateX(calc(-82% * var(--format-progress))) rotate(calc(-9deg * var(--format-progress))); }
.training-section[data-enhanced] #online .format-visual { transform: translateX(calc(82% * (1 - var(--format-progress)))) rotate(calc(9deg * (1 - var(--format-progress)))); }
.format-panel[inert] { pointer-events: none; }
.training-section[data-dragging] { user-select: none; }
.training-section[data-dragging]::before, .training-section[data-dragging] .format-tabs::before, .training-section[data-dragging] .format-copy, .training-section[data-dragging] .format-visual { transition: none; }
@media (max-width: 42rem) {
  .format-head { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .format-head h2 { font-size: 2.25rem; }
  .format-tabs { width: 100%; }
  .format-panel { grid-template-columns: minmax(0,1fr); align-content: start; gap: .8rem; padding-block: .9rem .4rem; scroll-margin-top: 10rem; }
  .format-visual { grid-area: 1 / 1; }
  .format-visual img { height: clamp(9rem,23svh,14rem); }
  .format-copy { grid-area: 2 / 1; }
  .format-copy h3 { font-size: clamp(2.05rem,8.6vw,3.6rem); line-height: 1.03; }
  .format-copy h3 br { display: none; }
  .format-copy > p { margin: .7rem 0 .9rem; }
  .format-action { align-self: center; }
}
@media (prefers-reduced-motion: reduce) {
  .training-section::before, .training-section .format-tabs::before, .training-section[data-enhanced] .format-copy, .training-section[data-enhanced] .format-visual { transition: none; }
  .training-section[data-enhanced] .format-visual { transform: none !important; }
}
.section-nav {
  --switch-backdrop: var(--panel-night);
  position: sticky;
  z-index: 5;
  top: var(--nav-inset);
  margin: .5rem auto 0;
  display: flex;
  width: max-content;
  max-width: calc(100% - .5rem - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px));
  gap: .2rem;
}
.section-nav::before {
  inset-block: .25rem;
  left: var(--pill-left);
  right: var(--pill-right);
  opacity: 0;
}
.section-nav[data-ready]::before {
  opacity: 1;
  transition: left var(--left-time, .42s) var(--ease), right var(--right-time, .42s) var(--ease);
}
.section-nav a {
  display: grid;
  place-items: center;
  min-width: 3.25rem;
  padding: .5rem clamp(1rem, 3vw, 1.9rem);
  text-decoration: none;
  font-size: clamp(.94rem,1.18vw,1.08rem);
}
.goals-section :focus-visible, .coach-bio :focus-visible { outline-color: var(--blue); }
@media (forced-colors: active) {
  .section-nav { border: 1px solid CanvasText; }
  .section-nav a, .section-nav a[aria-current] { color: LinkText; }
  .section-nav [aria-current] { text-decoration: underline; }
}
@media (max-width: 52rem) {
  :root {
    --header-height: 3.75rem;
    --studio-bottom: clamp(1.5rem, 5svh, 3.2rem);
  }
  .hero { grid-template-columns: minmax(0,1fr); padding-top: 1.6rem; gap: 1.25rem; }
  .section-inner { grid-template-columns: minmax(0,1fr); gap: 1.7rem; }
  #trainer-heading { font-size: clamp(2.55rem,8.1vw,4.7rem); margin: .45rem 0 .45rem; }
  #trainer-heading br { display: none; }
  .lead { max-width: none; font-size: 1rem; }
  .location { font-size: .875rem; }
  .roster { height: clamp(22.5rem,54svh,36rem); }
  .info { inset: auto 1rem .75rem; }
  .rail { padding-block: .7rem 1.1rem; }
  .rail-name { font-size: 1.5rem; }
}
@media (max-width: 30rem) {
  .section-nav a { min-width: 2.75rem; padding-inline: clamp(.35rem, 2.15vw, .8rem); font-size: .875rem; }
  .goals-list { grid-template-columns: 1fr; gap: 1rem; }
  .hero { padding-top: 1.2rem; }
  .actions { gap: .45rem; margin-top: .55rem; }
}
@media (max-width: 23rem) {
  .section-nav { width: 100%; }
  .section-nav a { flex: auto; padding-inline: .2rem; font-size: .84375rem; }
  .info { inset-inline: .8rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .roster.enhanced, .enhanced .info, .rail, .section-nav[data-ready]::before { transition: none; }
}
@media (max-width: 40rem) {
  .roster:not(.enhanced) { grid-template-columns: 1fr; height: auto; }
  .roster:not(.enhanced) .coach { height: 28rem; }
}

/* First screen: a stack of photographic prints opens along a single axis. */
.masthead { color: #29271f; }
.masthead::after { background: #302d242e; }
.studio {
  background: var(--studio-paper);
  color: #282820;
  overflow: clip;
  --studio-accent: #3b5d4e;
}
.studio :focus-visible { outline-color: var(--studio-accent); }
.studio-inner {
  min-height: calc(92svh - var(--header-height) - var(--nav-clearance));
  padding-block: clamp(1.4rem,4svh,3.5rem) var(--studio-bottom);
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  gap: clamp(1.25rem,3.6svh,3.6rem);
}
.studio-gallery { margin-block: auto; }
.studio-deck {
  --step: min(14.4vw,16.4rem);
  --frame-height: clamp(12rem,35svh,25.5rem);
  width: 100%;
  height: calc(var(--frame-height) + .4rem);
  display: grid;
  place-items: center;
  touch-action: pan-y pinch-zoom;
  user-select: none;
  isolation: isolate;
}
.studio-photo {
  --offset: 0;
  --scale: 1;
  grid-area: 1 / 1;
  margin: 0;
  width: auto;
  height: var(--frame-height);
  aspect-ratio: 0.73;
  overflow: hidden;
  background: #d1c6b7;
  border: 1px solid #3d342d22;
  box-shadow: 0 .5rem 1.5rem -.95rem #1e251c78;
  transform: translateX(calc(var(--step) * var(--offset))) scale(var(--scale));
  z-index: 4;
}
.studio[data-interactive] .studio-photo {
  transition: transform .85s cubic-bezier(.21,.76,.19,1), opacity .2s ease;
}
.studio-deck[data-auto] .studio-photo {
  transition: transform var(--gallery-travel) linear;
}
.studio[data-interactive] .studio-photo[data-wrap] { transition: none; }
.studio-photo img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.studio-photo[data-offset="-2"] { --offset: -2; }
.studio-photo[data-offset="-1"] { --offset: -1; }
.studio-photo[data-offset="1"] { --offset: 1; }
.studio-photo[data-offset="2"] { --offset: 2; }
.studio-photo:is([data-offset="-1"],[data-offset="1"]) { --scale: .88; z-index: 3; }
.studio-photo:is([data-offset="-2"],[data-offset="2"]) { --scale: .76; z-index: 2; }
.studio[data-interactive] .studio-photo:not([data-offset="0"]) { cursor: pointer; }
.studio[data-folded] .studio-photo { transform: translateX(0) scale(.98); transition: none; }
.studio-copy {
  width: min(100%,110rem); padding-inline: var(--u); margin-inline: auto;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem;
}
.studio-copy h1 {
  margin: 0; font-weight: 400;
  font-size: clamp(3.75rem,min(7.4vw,9.7vh),8.1rem); line-height: .93; letter-spacing: -.06em;
  text-wrap: balance;
}
.studio-copy h1 span { display: inline-block; max-width: 100%; overflow-wrap: anywhere; }
.studio-intro { padding-bottom: .12rem; }
.studio-intro p { margin: 0 0 .65rem; font-size: clamp(1rem,1.25vw,1.24rem); line-height: 1.36; }
.studio-intro a {
  display: inline-flex; align-items: center; min-height: 2.75rem;
  padding: .6rem 1.15rem; color: #fff; background: #294438; border-radius: .3rem;
  text-decoration: none; font-weight: 600;
}
.studio-intro a:hover { background: #355a49; }
@media (max-width: 46rem) {
  .studio-inner { justify-content: center; gap: clamp(.9rem,3.1svh,2rem); padding-top: 1rem; }
  .studio-deck { --step: 30vw; --frame-height: min(51vw,32svh); }
  .studio-gallery { margin-block: 0; }
  .studio-copy { align-items: flex-start; flex-direction: column; gap: 1rem; }
  .studio-copy h1 { font-size: clamp(1.95rem,10vw,4.6rem); }
  .studio-intro p { margin-bottom: .65rem; }
}
@media (prefers-reduced-motion: reduce) {
  .studio[data-interactive] .studio-photo { transition: none; }
}
@media (max-width: 46rem) and (max-height: 39rem) {
  .studio-inner { gap: .6rem; padding-top: .75rem; }
  .studio-deck { --frame-height: min(46vw,26svh); }
  .studio-copy { gap: .6rem; }
  .studio-copy h1 { font-size: clamp(1.95rem,9.8vw,3.5rem); }
  .studio-intro p { margin-bottom: .4rem; }
}
