:root {
  --wall: #F2F3F0;
  --wall-shade: #E6E8E4;
  --ink: #121212;
  --ink-soft: #45484A;
  --floor: #161616;
  --on-floor: #F2F3F0;
  --on-floor-soft: #A9ADA8;
  --green: #1E7E45;
  --green-deep: #166236;
  --yellow: #F2B517;
  --on-yellow-soft: #4A3A06;
  --blue: #2B4FA8;
  --blue-deep: #22428F;
  --blue-bright: #6D90E6;
  --on-blue-soft: #DCE4F7;
  --steel: #C9CDD0;
  --birch: #D8BA8C;

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --fs-display: clamp(2.75rem, 1rem + 4.6vw, 4.75rem);
  --fs-h2: clamp(2rem, 1.1rem + 3.2vw, 4rem);
  --fs-h3: clamp(1.2rem, 1rem + .7vw, 1.6rem);
  --fs-lead: clamp(1.125rem, 1rem + .45vw, 1.375rem);
  --fs-body: 1.0625rem;
  --fs-small: .875rem;

  --gutter: clamp(1rem, 4vw, 3rem);
  --section: clamp(4.5rem, 3rem + 7vw, 9rem);
  --header-h: 68px;
  --knee-h: clamp(104px, 13.5vw, 210px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --rubber: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .52 0 0 0 0 .54 0 0 0 0 .56 0 0 0 8 -5.9'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  scrollbar-color: var(--floor) var(--wall-shade);
  accent-color: var(--green);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--wall);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-stretch: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--green);
}

::selection { background: var(--yellow); color: var(--ink); }

img, svg, iframe { display: block; max-width: 100%; }
p { margin: 0; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
figure { margin: 0; }

a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: .22em; }

:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }
.team :focus-visible { outline-color: var(--ink); }

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

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

.container { width: min(100% - 2 * var(--gutter), 80rem); margin-inline: auto; }

.icon { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- type ---------- */

.display, .h2, .h3 {
  font-stretch: 112%;
  text-transform: uppercase;
  line-height: .94;
  letter-spacing: -.02em;
}
.display { font-size: var(--fs-display); font-weight: 900; }
.h2 { font-size: var(--fs-h2); font-weight: 850; max-width: 16ch; }
.h3 { font-size: var(--fs-h3); font-weight: 800; line-height: 1.05; letter-spacing: -.005em; }
.lead { font-size: var(--fs-lead); line-height: 1.5; max-width: 40ch; }

/* ---------- controls ---------- */

.btn {
  display: inline-flex; align-items: center; gap: .65rem;
  min-height: 3.5rem; padding: .85rem 1.6rem .85rem 1.35rem;
  border-radius: 999px;
  font-size: 1rem; font-weight: 800; font-stretch: 110%;
  text-transform: uppercase; letter-spacing: .02em; line-height: 1.1;
  text-decoration: none;
  transition: background-color .25s var(--ease-out), color .25s var(--ease-out), box-shadow .25s var(--ease-out), transform .25s var(--ease-out);
}
.btn:active { transform: translateY(1px); }
.btn--green { background: var(--green); color: #fff; box-shadow: 0 10px 20px -12px rgba(0, 0, 0, .45); }
.btn--green:hover { background: var(--green-deep); }
.btn--wall { background: var(--wall); color: var(--ink); box-shadow: 0 12px 24px -14px rgba(0, 0, 0, .6); }
.btn--wall .icon { color: var(--green); }
.btn--wall:hover { background: #fff; }
.btn--sm { min-height: 2.75rem; padding: .55rem 1.1rem .55rem .95rem; font-size: .875rem; }
.btn--lg { min-height: 4rem; padding-inline: 1.7rem 2.1rem; font-size: 1.125rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .45rem;
  font-weight: 800; font-stretch: 110%; text-transform: uppercase; letter-spacing: .02em; font-size: .9375rem;
  text-decoration: none;
}
.link-arrow .icon { transition: transform .3s var(--ease-out); }
.link-arrow:hover .icon { transform: translateX(4px); }
.link-arrow:hover { text-decoration: underline; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; }

/* ---------- materials ---------- */

.floor {
  background-color: var(--floor);
  background-image: var(--rubber);
  background-size: 240px 240px;
  color: var(--on-floor);
}

.plate { color: var(--plate); width: 100%; height: auto; overflow: visible; }
.rim { font-family: var(--font); font-size: 12.5px; font-weight: 800; font-stretch: 120%; fill: #fff; fill-opacity: .92; }
.rim--ink { fill: var(--ink); fill-opacity: .82; }

.print { display: grid; gap: .75rem; }
.print__frame {
  background: #fff;
  padding: clamp(.55rem, 1.2vw, 1.1rem);
  border: clamp(5px, .55vw, 8px) solid #141414;
  box-shadow: 0 22px 36px -22px rgba(0, 0, 0, .55), 0 2px 5px rgba(0, 0, 0, .14);
}
.print__frame img { width: 100%; height: auto; }
.print figcaption { font-size: var(--fs-small); line-height: 1.4; color: var(--ink-soft); }
.print figcaption strong { display: block; color: var(--ink); font-weight: 800; font-stretch: 110%; text-transform: uppercase; letter-spacing: .02em; }

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--wall) 94%, transparent);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, .08);
}
.site-header__inner { height: var(--header-h); display: flex; align-items: center; gap: 2rem; }
.brand img { width: 128px; height: auto; filter: brightness(0); }
.site-nav { display: flex; gap: 1.75rem; margin-left: auto; font-size: .9375rem; font-weight: 700; font-stretch: 105%; text-transform: uppercase; letter-spacing: .03em; }
.site-nav a { text-decoration: none; padding-block: .5rem; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .3s var(--ease-out); }
.site-nav a:hover { background-size: 100% 2px; }

/* ---------- hero ---------- */

.hero { overflow-x: clip; background: linear-gradient(180deg, #F7F8F5, var(--wall) 40%, var(--wall-shade)); }
.hero__inner {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(2rem, 5vw, 5rem); align-items: center;
  min-height: calc(100svh - var(--header-h) - 4.5rem - var(--knee-h));
  padding-block: clamp(2rem, 4vw, 3.5rem) clamp(1.5rem, 3vw, 2.5rem);
}
.hero__copy { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); }
.hero .lead { color: var(--ink-soft); }

.hero__wall { display: flex; justify-content: flex-end; align-items: flex-start; gap: clamp(.9rem, 2.4vw, 2.25rem); }
.rack { position: relative; isolation: isolate; display: grid; gap: 6px; width: clamp(72px, 9vw, 140px); flex: none; padding-block: 1.25rem; }
.rack::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 0; bottom: 0; width: 13%;
  transform: translateX(-50%); background: #1b1b1b; border-radius: 3px;
}
.hero__print { width: clamp(190px, 22vw, 320px); }

.floor--strip { position: relative; z-index: 1; }

/* hero knee: the logo's joint measured with a goniometer, driven by knee.js */
.knee { position: relative; z-index: 5; height: var(--knee-h); }
.knee__btn {
  appearance: none; display: block; width: 100%; height: 100%; margin: 0; padding: 0;
  border: 0; border-radius: 0; background: none; color: inherit;
  cursor: grab; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.knee__btn.is-dragging { cursor: grabbing; }
.knee__btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 6px; }
.knee__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.knee__bones { fill: var(--ink); }
.knee__patella { fill: none; stroke: var(--ink); stroke-width: .3; stroke-linecap: round; }
.knee__wedge { fill: var(--green); fill-opacity: .16; }
.knee__arc { stroke: var(--green); stroke-width: 2; }
.knee__tick { stroke: var(--ink-soft); stroke-width: 1.5; }
.knee__num { font-family: var(--font); font-size: 11px; font-weight: 700; font-stretch: 110%; fill: var(--ink-soft); }
.knee__best { stroke: var(--green); stroke-width: 3; stroke-linecap: round; }
.knee__arms line { stroke: var(--green); stroke-width: 2.5; stroke-linecap: round; }
.knee__pivot { fill: var(--wall); stroke: var(--green); stroke-width: 2.5; }

.knee__readout {
  position: absolute; top: 0; right: 0; display: grid; justify-items: end; pointer-events: none;
  font-stretch: 110%; text-transform: uppercase; line-height: 1;
}
.knee__label { font-size: .75rem; font-weight: 800; letter-spacing: .06em; color: var(--ink-soft); }
.knee__deg { font-size: calc(var(--knee-h) * .26); font-weight: 900; font-stretch: 112%; letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin-top: .15em; }
.knee__unit { color: var(--green); }
.knee__max { font-size: .75rem; font-weight: 800; letter-spacing: .06em; color: var(--green-deep); min-height: 1em; margin-top: .35em; }

.knee__hint {
  position: absolute; left: 0; top: .25rem; translate: 0 6px;
  display: inline-flex; align-items: center; gap: .4rem; pointer-events: none; white-space: nowrap;
  font-size: .8125rem; font-weight: 800; font-stretch: 110%; text-transform: uppercase; letter-spacing: .06em;
  color: var(--ink-soft); opacity: 0;
  transition: opacity .5s var(--ease-out), translate .5s var(--ease-out);
}
.knee__hint.is-shown { opacity: 1; translate: 0 0; }
.knee__hint .icon { width: 1.1em; height: 1.1em; }
@media (prefers-reduced-motion: no-preference) {
  .knee__hint.is-shown .icon { animation: bend 2s var(--ease-out) infinite; }
}
@keyframes bend { 0%, 55%, 100% { rotate: 0deg; } 25% { rotate: -40deg; } }
.floor__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding-block: 1.4rem; font-size: .9375rem; color: var(--on-floor-soft); }
.floor__inner p { display: inline-flex; align-items: center; gap: .5rem; }
.floor__inner a { color: var(--on-floor); font-weight: 700; }

/* ---------- services ---------- */

.services { padding-block: var(--section); }
.services__inner { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2.5rem, 7vw, 7rem); align-items: start; }
.services__intro { display: grid; gap: 1.5rem; position: sticky; top: calc(var(--header-h) + 2rem); }
.services__intro > p { color: var(--ink-soft); max-width: 42ch; }
.services__print { width: min(100%, 300px); margin-top: 1rem; }

.service-list { border-bottom: 3px solid var(--ink); }
.service {
  display: grid; grid-template-columns: clamp(2.5rem, 4vw, 3.5rem) minmax(0, 1fr);
  column-gap: clamp(1rem, 2.5vw, 2rem); row-gap: .75rem;
  padding-block: clamp(1.75rem, 3.5vw, 2.75rem);
  border-top: 3px solid var(--ink);
}
.service__mark { grid-row: span 3; width: 100%; height: auto; color: var(--plate); }
.service p { color: var(--ink-soft); max-width: 52ch; }
.service .link-arrow { justify-self: start; margin-top: .25rem; color: var(--green-deep); }

/* ---------- differentiator ---------- */

.diff { position: relative; overflow: hidden; background: var(--blue); color: #fff; padding-block: var(--section); }
.diff__plate { position: absolute; width: min(68vw, 820px); height: auto; right: -18vw; top: 50%; translate: 0 -50%; color: var(--plate); }
.diff__plate .rim { font-size: 13px; }
.diff__inner { position: relative; display: grid; gap: clamp(2rem, 4vw, 3.5rem); justify-items: start; }
.diff .h2 { max-width: 13ch; }
.diff__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 4rem); max-width: 54rem; }
.diff__grid > div { display: grid; gap: .9rem; align-content: start; padding-top: 1.5rem; border-top: 2px solid rgba(255, 255, 255, .45); }
.diff__grid p { color: var(--on-blue-soft); }

/* ---------- method: la barra ---------- */

.method { padding-block: var(--section); overflow: clip; }
.method__head { display: grid; gap: 1.25rem; margin-bottom: clamp(2.5rem, 6vw, 5rem); }
.method__head p { color: var(--on-floor-soft); font-size: var(--fs-lead); max-width: 40ch; }
.method__body { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.method__stage { position: sticky; top: calc(50svh - var(--ph) / 2); --ph: clamp(150px, 24vw, 330px); }

.barbell { display: flex; align-items: center; height: var(--ph); margin-left: -50vw; }
.barbell__shaft {
  flex: 1 1 auto; height: calc(var(--ph) * .045); min-height: 8px; border-radius: 2px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .45), rgba(255, 255, 255, 0) 45%, rgba(0, 0, 0, .35)),
    repeating-linear-gradient(90deg, #b8bcbf 0 2px, #8f9396 2px 4px);
}
.barbell__flange {
  flex: none; width: calc(var(--ph) * .05); height: calc(var(--ph) * .2); border-radius: 3px;
  background: linear-gradient(180deg, #eef0f1, #b3b7ba 50%, #7d8184);
}
.barbell__sleeve {
  position: relative; flex: none; width: calc(var(--ph) * .62); height: calc(var(--ph) * .1); border-radius: 0 5px 5px 0;
  background: linear-gradient(180deg, #f1f3f4, #c3c7ca 45%, #83878a);
}
.barbell__plates { position: absolute; left: 0; top: 50%; translate: 0 -50%; display: flex; align-items: center; gap: 2px; }
.plate-side {
  display: block; width: calc(var(--ph) * var(--t)); height: var(--ph); border-radius: calc(var(--ph) * .025);
  background: linear-gradient(90deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 40%, rgba(0, 0, 0, .28)), var(--c);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .3), 0 18px 30px -18px rgba(0, 0, 0, .9);
}
.collar {
  display: block; width: calc(var(--ph) * .085); height: calc(var(--ph) * .19); border-radius: 4px; margin-left: 3px;
  background: linear-gradient(90deg, #3a3a3a, #1d1d1d 60%, #0e0e0e);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
}

.js .barbell [data-step] { transition: transform .9s var(--ease-out), opacity .5s var(--ease-out); }
.js .barbell[data-load="0"] [data-step],
.js .barbell[data-load="1"] [data-step]:not([data-step="1"]),
.js .barbell[data-load="2"] [data-step="3"],
.js .barbell[data-load="2"] [data-step="4"],
.js .barbell[data-load="3"] [data-step="4"] { transform: translateX(calc(var(--ph) * 1.4)); opacity: 0; }

.steps { display: grid; gap: clamp(3rem, 18svh, 11rem); padding-bottom: clamp(2rem, 12svh, 8rem); }
.step { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 1.25rem; row-gap: .6rem; align-items: baseline; }
.step__n {
  grid-row: span 2; font-size: clamp(2.5rem, 1.5rem + 3vw, 4.5rem); line-height: .8; font-weight: 900; font-stretch: 112%;
  color: var(--c); min-width: 1.1ch;
}
.step p { color: var(--on-floor-soft); max-width: 40ch; }
.js .step { opacity: .38; transition: opacity .6s var(--ease-out); }
.js .step.is-active { opacity: 1; }

/* ---------- team ---------- */

.team { background: var(--yellow); padding-block: var(--section); }
.team__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.team__copy { display: grid; gap: 1.5rem; }
.team__copy p:not(.lead) { color: var(--on-yellow-soft); max-width: 44ch; }
.team__copy .lead { font-weight: 700; }
.team__wall { display: flex; justify-content: center; align-items: flex-start; gap: clamp(1rem, 3vw, 2.5rem); }
.team__print--main { width: clamp(170px, 24vw, 310px); }
.team__print--side { width: clamp(120px, 16vw, 210px); margin-top: clamp(3rem, 10vw, 8rem); }
.team .print figcaption { color: var(--on-yellow-soft); }

/* ---------- booking ---------- */

.book { background: var(--green); color: #fff; padding-block: var(--section); }
.book__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.book__copy { display: grid; gap: clamp(1.5rem, 3vw, 2.25rem); }
.book .h2 { max-width: 12ch; }

.contact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 2rem; padding-top: 1.75rem; border-top: 2px solid rgba(255, 255, 255, .5); }
.contact div:last-child { grid-column: 1 / -1; }
.contact dt { font-size: var(--fs-small); font-weight: 800; font-stretch: 110%; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .3rem; }
.contact dd { font-size: 1.125rem; line-height: 1.5; }
.contact dd a { font-weight: 700; }
.contact .link-arrow { margin-top: .5rem; }

.book__map .print__frame { padding: 0; background: var(--wall-shade); }
.book__map iframe { width: 100%; aspect-ratio: 4 / 3.4; border: 0; filter: grayscale(.85) contrast(1.05); }

/* ---------- footer ---------- */

.site-footer { padding-block: clamp(3rem, 6vw, 4.5rem); }
.site-footer__inner { display: grid; grid-template-columns: auto 1fr auto; gap: 1.5rem 3rem; align-items: center; color: var(--on-floor-soft); font-size: .9375rem; }
.site-footer__logo { width: 150px; height: auto; }
.social { display: flex; gap: 1.5rem; }
.social a { display: inline-flex; align-items: center; gap: .5rem; color: var(--on-floor); font-weight: 700; text-decoration: none; }
.social a:hover { text-decoration: underline; }
.site-footer__fine { grid-column: 1 / -1; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .12); font-size: var(--fs-small); }

/* ---------- floating whatsapp ---------- */

.fab {
  position: fixed; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 60;
  display: grid; place-items: center; width: 3.75rem; height: 3.75rem; border-radius: 50%;
  background: var(--green); color: #fff;
  box-shadow: 0 14px 28px -10px rgba(0, 0, 0, .55), inset 0 0 0 2px rgba(255, 255, 255, .18);
  transition: transform .45s var(--ease-out), opacity .3s var(--ease-out), background-color .25s;
}
.fab .icon { width: 1.6rem; height: 1.6rem; }
.fab:hover { background: var(--green-deep); }
.js .fab:not(.is-shown) { transform: translateY(140%); opacity: 0; pointer-events: none; }

/* ---------- motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    .spin { animation: spin linear both; animation-timeline: scroll(root); }
    .spin--rev { animation-name: spin-rev; }
  }
}
@keyframes spin { to { rotate: 300deg; } }
@keyframes spin-rev { to { rotate: -300deg; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .site-nav { display: none; }
  .site-header__inner { justify-content: space-between; }
  .services__inner, .team__inner, .book__inner { grid-template-columns: minmax(0, 1fr); }
  .services__intro { position: static; }
  .services__print { display: none; }
  .method__body { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .method__stage {
    --ph: clamp(120px, 30vw, 200px);
    top: var(--header-h); z-index: 2; padding-block: 1rem;
    margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter);
    background-color: var(--floor);
    box-shadow: 0 18px 22px -16px rgba(0, 0, 0, .9);
  }
  .barbell { margin-left: calc(-1 * var(--gutter)); }
  .barbell__shaft { flex-basis: 0; }
  .steps { gap: clamp(2.5rem, 22svh, 9rem); }
}

@media (max-width: 820px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-block: 1.5rem 1.75rem; gap: 1.75rem; }
  .hero__copy { gap: 1.1rem; }
  .hero__wall { justify-content: center; }
  .rack { width: clamp(56px, 17vw, 100px); padding-block: .75rem; }
  .hero__print { width: min(46vw, 240px); }
  .hero .lead { font-size: 1.0625rem; }
  .diff__grid { grid-template-columns: minmax(0, 1fr); }
  .diff__plate { width: 110vw; right: -60vw; top: auto; bottom: -62vw; translate: none; }
  .site-footer__inner { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 600px) {
  .knee__hint, .knee__long { display: none; }
  .knee__readout { left: 0; right: auto; justify-items: start; }
  .knee__deg { font-size: 1.5rem; }
  .knee__max { margin-top: .25em; }
}

@media (max-width: 480px) {
  .display { font-stretch: 104%; }
  .btn { width: 100%; justify-content: center; }
  .btn--sm { width: auto; }
  .contact { grid-template-columns: minmax(0, 1fr); }
  .team__wall { justify-content: flex-start; }
}
