/* Fitzone Fitness - performance lab, not gym template */

:root {
  --ink: #000000;
  --void: #09090d;
  --signal: #ffe21f;
  --ember: #ff6b1a;
  --ion: #2a7bff;
  --paper: #dfe3ea;
  --mute: #8d939e;
  --line: rgba(255, 255, 255, 0.09);
  --glass: rgba(255, 255, 255, 0.06);
  --glass-edge: rgba(255, 255, 255, 0.14);
  --display: "Archivo", sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --spring: cubic-bezier(0.22, 1.18, 0.36, 1);
  --spring-soft: cubic-bezier(0.16, 1, 0.3, 1);
  --pad: clamp(1.25rem, 4vw, 3.5rem);
  --max: 1180px;
}

@supports (animation-timing-function: linear(0, 1)) {
  :root {
    --spring: linear(
      0,
      0.008,
      0.031,
      0.069,
      0.121,
      0.186 13.8%,
      0.51,
      0.754,
      0.915,
      1.006,
      1.05,
      1.058,
      1.046,
      1.023,
      1.006,
      1
    );
  }
}

@property --nav-y {
  syntax: "<length>";
  inherits: false;
  initial-value: 0px;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

html.reduce-motion {
  scroll-behavior: auto;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--body);
  font-optical-sizing: auto;
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -0.011em;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-stretch: 82%;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.92;
  margin: 0;
}

p {
  margin: 0;
}

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

.skip {
  position: absolute;
  left: var(--pad);
  top: 0.75rem;
  z-index: 80;
  padding: 0.55rem 0.9rem;
  background: var(--signal);
  color: var(--ink);
  transform: translateY(-150%);
}

.skip:focus {
  transform: none;
}

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}

.fluid {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 1;
}

.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-edge);
}

/* ----- nav ----- */

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 1.1rem var(--pad) 1.6rem;
  --nav-y: 0px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.35) 55%, transparent 100%);
}

.nav__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.6rem 1.15rem 0.6rem 0.8rem;
  border-radius: 999px;
  transform: translateY(var(--nav-y)) scale(1);
  transform-origin: top center;
  transition: transform 620ms var(--spring), background-color 420ms var(--spring-soft),
    border-color 420ms ease;
}

.nav.is-compact .nav__bar {
  --nav-y: -4px;
  transform: translateY(var(--nav-y)) scale(0.97);
  background: rgba(0, 0, 0, 0.52);
  border-color: rgba(255, 255, 255, 0.1);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--display);
  font-stretch: 88%;
  font-weight: 760;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  transform-origin: left center;
  transition: transform 620ms var(--spring);
}

.nav.is-compact .logo {
  transform: scale(0.92);
}

/* Transparent cutout of the badge, so it reads on dark and light surfaces alike */
.logo__mark {
  display: block;
  height: 2.25rem;
  width: auto;
  flex: none;
  user-select: none;
  -webkit-user-drag: none;
}

.nav__links {
  display: none;
  align-items: center;
  gap: 1.6rem;
}

.nav__links a {
  color: var(--mute);
  font-size: 0.92rem;
  transition: color 280ms ease;
}

.nav__links a:hover {
  color: var(--paper);
}

.nav__join {
  color: var(--paper) !important;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 226, 31, 0.12);
  border: 1px solid rgba(255, 226, 31, 0.28);
}

.nav__toggle {
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.nav__toggle-bars,
.nav__toggle-bars::before,
.nav__toggle-bars::after {
  display: block;
  width: 1.15rem;
  height: 1.5px;
  background: var(--paper);
  position: relative;
  transition: transform 420ms var(--spring), opacity 200ms ease;
}

.nav__toggle-bars::before,
.nav__toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav__toggle-bars::before {
  top: -6px;
}

.nav__toggle-bars::after {
  top: 6px;
}

.nav.is-open .nav__toggle-bars {
  background: transparent;
}

.nav.is-open .nav__toggle-bars::before {
  transform: translateY(6px) rotate(45deg);
}

.nav.is-open .nav__toggle-bars::after {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 4.8rem var(--pad) auto;
  z-index: 39;
  visibility: hidden;
  pointer-events: none;
}

.mobile-menu__panel {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.7rem;
  border-radius: 1.25rem;
  background: rgba(8, 8, 10, 0.72);
  transform: translateY(-10px) scale(0.98);
  opacity: 0;
  transition: transform 520ms var(--spring), opacity 280ms ease;
}

.nav.is-open + .mobile-menu {
  visibility: visible;
  pointer-events: auto;
}

.nav.is-open + .mobile-menu .mobile-menu__panel {
  transform: none;
  opacity: 1;
}

.mobile-menu__panel a {
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
}

.mobile-menu__panel a:hover {
  background: rgba(255, 255, 255, 0.05);
}

@media (min-width: 860px) {
  .nav__links {
    display: flex;
  }

  .nav__toggle {
    display: none;
  }

  .mobile-menu {
    display: none;
  }
}

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

.hero {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  padding: 4.5rem var(--pad) 5rem;
  max-width: none;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: min(68%, 46rem);
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.28) 0%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

.hero__copy,
.hero__frame {
  position: relative;
  z-index: 2;
}

.hero__copy {
  max-width: 22rem;
}

.hero__title {
  font-size: clamp(3.4rem, 11vw, 7.4rem);
  font-stretch: 78%;
  font-weight: 780;
  opacity: 0;
  transform: translateY(20px);
  animation: rise 900ms var(--spring) 80ms forwards;
}

.hero__sub {
  margin-top: 1.4rem;
  max-width: 34ch;
  color: var(--mute);
  font-size: 1.02rem;
  line-height: 1.55;
  opacity: 0;
  transform: translateY(16px);
  animation: rise 900ms var(--spring) 280ms forwards;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
  opacity: 0;
  animation: rise 900ms var(--spring) 460ms forwards;
}

.hero__frame {
  position: relative;
  justify-self: end;
  width: min(100%, 520px);
  overflow: hidden;
  border-radius: 1.2rem;
}

.hero__img {
  width: 100%;
  height: min(58vh, 560px);
  object-fit: cover;
  object-position: 78% 16%;
  filter: grayscale(1) contrast(1.14) brightness(0.88);
  mask-image: linear-gradient(to top, transparent 0%, #000 18%, #000 100%);
  -webkit-mask-image: linear-gradient(to top, transparent 0%, #000 18%, #000 100%);
  will-change: transform;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 550;
  transition: transform 480ms var(--spring), box-shadow 480ms var(--spring),
    background-color 280ms ease, border-color 280ms ease;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn:active {
  transform: scale(0.96);
}

.btn--signal {
  background: var(--signal);
  color: var(--ink);
  box-shadow: 0 10px 32px rgba(255, 226, 31, 0.16);
}

.btn--signal:hover {
  box-shadow: 0 16px 40px rgba(255, 226, 31, 0.28);
}

.btn--ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.btn--press {
  animation: glow 3.6s var(--spring-soft) infinite;
}

@keyframes glow {
  0%,
  100% {
    box-shadow: 0 10px 28px rgba(255, 226, 31, 0.14);
  }
  50% {
    box-shadow: 0 14px 42px rgba(255, 226, 31, 0.32);
  }
}

@media (min-width: 900px) {
  .hero {
    display: block;
    padding: 0;
  }

  .hero__copy {
    max-width: 1180px;
    margin: 0 auto;
    padding: 22vh var(--pad) 5rem;
  }

  .hero__frame {
    position: absolute;
    inset: 0 0 0 auto;
    width: min(56vw, 820px);
    height: 100%;
    z-index: 1;
    border-radius: 0;
  }

  .hero__img {
    width: 100%;
    height: 100%;
    object-position: 62% 18%;
    mask-image: linear-gradient(90deg, transparent 0%, #000 24%, #000 88%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 24%, #000 88%, transparent 100%);
  }
}

/* ----- stats ----- */

.stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad) 5.5rem;
}

.stat {
  padding: 1.25rem 1.2rem 1.15rem;
  border-radius: 1.15rem;
  opacity: 0;
  transform: translateY(22px);
  transition: transform 700ms var(--spring), opacity 480ms ease;
}

.stat.is-in {
  opacity: 1;
  transform: none;
}

.stat:nth-child(1) {
  transition-delay: 0ms;
}
.stat:nth-child(2) {
  transition-delay: 70ms;
}
.stat:nth-child(3) {
  transition-delay: 140ms;
}
.stat:nth-child(4) {
  transition-delay: 210ms;
}

.stat__value {
  font-family: var(--display);
  font-stretch: 80%;
  font-size: clamp(2rem, 4.6vw, 3.15rem);
  font-weight: 750;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--paper);
}

.stat__label {
  margin-top: 0.55rem;
  color: var(--mute);
  font-size: 0.9rem;
}

@media (min-width: 800px) {
  .stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ----- programs ----- */

.programs,
.coaches,
.pricing,
.cta,
.atmosphere {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad) 6.5rem;
  scroll-margin-top: 5.75rem;
}

.section-head {
  max-width: 28ch;
  margin-bottom: 2.75rem;
}

.section-head h2 {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
}

.section-head p {
  margin-top: 0.9rem;
  color: var(--mute);
}

.program {
  display: grid;
  gap: 1.4rem;
  margin-bottom: 4.5rem;
}

.program__copy {
  max-width: 36ch;
}

.program__copy h3 {
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  margin-bottom: 0.7rem;
  opacity: 0;
  transform: translateY(18px);
  transition: transform 800ms var(--spring), opacity 500ms ease;
}

.program__copy p {
  color: var(--mute);
}

.program.is-in .program__copy h3 {
  opacity: 1;
  transform: none;
}

.media {
  position: relative;
  overflow: hidden;
  border-radius: 1.35rem;
}

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(14px);
  transform: scale(1.05);
  opacity: 0.65;
  transition: filter 900ms ease, transform 1100ms var(--spring), opacity 600ms ease;
}

.media.is-in img {
  filter: blur(0);
  transform: scale(1);
  opacity: 1;
}

.media__cap {
  position: absolute;
  left: 0.85rem;
  bottom: 0.85rem;
  max-width: 22ch;
  padding: 0.7rem 0.85rem;
  border-radius: 0.85rem;
  font-size: 0.88rem;
  line-height: 1.35;
}

.program--wide .media img {
  aspect-ratio: 4 / 5;
  object-position: 50% 20%;
}

.program--flip .media img {
  aspect-ratio: 4 / 5;
  object-position: 50% 28%;
}

.program--split {
  align-items: start;
}

.program--split .media img {
  aspect-ratio: 4 / 5;
  object-position: 48% 42%;
}

.media--inset img {
  aspect-ratio: 4 / 5;
  object-position: 50% 20%;
}

@media (min-width: 820px) {
  .program--wide,
  .program--flip {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2.8rem;
    align-items: center;
  }

  .program--flip {
    grid-template-columns: 0.9fr 1.1fr;
  }

  .program--flip .program__copy {
    order: -1;
    justify-self: end;
    text-align: right;
  }

  .program--flip .program__copy p {
    margin-left: auto;
  }

  .program--wide {
    width: 100%;
  }

  .program--flip {
    width: 92%;
    margin-left: auto;
  }

  .program--split {
    grid-template-columns: 1.15fr 0.85fr;
    grid-template-areas:
      "photo copy"
      "photo inset";
    gap: 1.5rem 2.5rem;
    width: 94%;
  }

  .program--split .media:first-child {
    grid-area: photo;
  }

  .program--split .program__copy {
    grid-area: copy;
    padding-top: 0.4rem;
  }

  .program--split .media--inset {
    grid-area: inset;
    width: 78%;
    justify-self: end;
  }

  .program--split .media:first-child img {
    min-height: 540px;
  }
}

/* ----- atmosphere ----- */

.atmosphere {
  min-height: 28rem;
}

.atmosphere__tex {
  position: absolute;
  inset: 0 var(--pad);
  overflow: hidden;
  border-radius: 1.6rem;
  z-index: 0;
}

.atmosphere__tex img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
  filter: grayscale(0.4) contrast(1.1) brightness(0.38);
  opacity: 0.45;
  transform: scale(1.08);
}

.atmosphere__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.9rem;
  padding: 2.5rem 0;
}

.note {
  padding: 1.35rem 1.3rem;
  border-radius: 1.2rem;
}

.note h3 {
  font-size: 1.35rem;
  margin-bottom: 0.45rem;
}

.note p {
  color: var(--mute);
  max-width: 42ch;
}

.atmosphere .note {
  background: rgba(6, 6, 8, 0.48);
}

.atmosphere .note p {
  color: #c9ced6;
}

@media (min-width: 800px) {
  .atmosphere__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 4rem 1.5rem;
  }
}

/* ----- coaches ----- */

.coach-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

.coach h3 {
  font-size: 1.55rem;
  margin-top: 0.85rem;
}

.coach > p {
  color: var(--mute);
  font-size: 0.92rem;
}

.coach__shot {
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
  border: 1px solid transparent;
  transition: border-color 360ms ease, transform 520ms var(--spring);
}

.coach__shot img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 700ms var(--spring);
}

.coach:nth-child(1) img {
  object-position: 52% 38%;
}

.coach:nth-child(2) img {
  object-position: 58% 40%;
}

.coach:nth-child(3) img {
  object-position: 48% 36%;
}

.coach__bio {
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: 0.7rem;
  padding: 0.85rem 0.9rem;
  border-radius: 0.9rem;
  transform: translateY(120%);
  opacity: 0;
  transition: transform 560ms var(--spring), opacity 320ms ease;
}

.coach__bio p {
  font-size: 0.9rem;
  line-height: 1.4;
}

.coach:hover .coach__shot,
.coach:focus-within .coach__shot {
  border-color: rgba(255, 226, 31, 0.55);
  transform: translateY(-4px);
}

.coach:hover img,
.coach:focus-within img {
  transform: scale(1.05);
}

.coach:hover .coach__bio,
.coach:focus-within .coach__bio {
  transform: none;
  opacity: 1;
}

@media (min-width: 800px) {
  .coach-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

/* ----- pricing ----- */

.plans {
  display: grid;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.plan {
  padding: 1.6rem 0 1.5rem;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transform: translateY(0);
  transition: transform 480ms var(--spring);
}

.plan:last-child {
  border-bottom: 0;
}

.plan h3 {
  font-size: 1.8rem;
  margin-bottom: 0.45rem;
  color: var(--paper);
  transition: color 280ms ease;
}

.plan p {
  color: var(--mute);
  max-width: 36ch;
  transition: color 280ms ease;
}

.plan:hover,
.plan:focus-visible {
  transform: translateY(-4px);
}

.plan:hover h3,
.plan:focus-visible h3 {
  color: var(--signal);
}

.plan:hover p,
.plan:focus-visible p {
  color: var(--paper);
}

.pricing__note {
  margin-top: 1.1rem;
  color: var(--mute);
  font-size: 0.92rem;
}

@media (min-width: 800px) {
  .plans {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .plan {
    padding: 2rem 1.6rem 1.8rem;
    border-bottom: 0;
    border-right: 1px solid var(--line);
  }

  .plan:first-child {
    padding-left: 0;
  }

  .plan:last-child {
    border-right: 0;
    padding-right: 0;
  }
}

/* ----- cta / form ----- */

.cta {
  padding-bottom: 5rem;
}

.cta__inner {
  max-width: 34rem;
}

.cta h2 {
  font-size: clamp(3rem, 8vw, 6rem);
}

.cta__inner > p {
  margin: 1rem 0 2rem;
  color: var(--mute);
}

.join {
  display: grid;
  gap: 0.9rem;
}

.join__row {
  display: grid;
  gap: 0.9rem;
}

.join label {
  display: grid;
  gap: 0.4rem;
  color: var(--mute);
  font-size: 0.88rem;
}

.join input,
.join select {
  appearance: none;
  background: rgba(255, 255, 255, 0.04);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  padding: 0.9rem 1rem;
  color: var(--paper);
  transition: border-color 240ms ease, transform 480ms var(--spring);
}

.join input:hover,
.join select:hover,
.join input:focus,
.join select:focus {
  border-color: rgba(255, 226, 31, 0.45);
}

.join select {
  background-image: linear-gradient(45deg, transparent 50%, var(--mute) 50%),
    linear-gradient(135deg, var(--mute) 50%, transparent 50%);
  background-position: calc(100% - 1.15rem) 1.2rem, calc(100% - 0.85rem) 1.2rem;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.join .btn {
  justify-self: start;
  margin-top: 0.4rem;
}

.join__status {
  min-height: 1.4em;
  color: var(--signal);
}

@media (min-width: 640px) {
  .join__row {
    grid-template-columns: 1fr 1fr;
  }
}

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

.footer {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2rem 3rem;
  padding: 2.75rem var(--pad) 2.2rem;
  max-width: var(--max);
  margin: 0 auto;
  color: var(--mute);
  font-size: 0.92rem;
  border-top: 1px solid var(--line);
}

.footer__brand {
  display: grid;
  gap: 0.7rem;
  align-content: start;
  max-width: 22ch;
}

.footer__brand p {
  line-height: 1.5;
}

.footer .logo {
  color: var(--paper);
}

.footer .logo__mark {
  height: 3rem;
}

.footer__col {
  display: grid;
  gap: 0.45rem;
  align-content: start;
}

.footer__col h2 {
  font-family: var(--body);
  font-stretch: normal;
  font-size: 0.92rem;
  font-weight: 550;
  letter-spacing: -0.011em;
  line-height: 1.4;
  color: var(--paper);
  margin-bottom: 0.25rem;
}

.footer__col a {
  color: var(--mute);
  width: fit-content;
  transition: color 240ms ease;
}

.footer__col a:hover,
.footer__col a:focus-visible {
  color: var(--signal);
}

.footer__copy {
  grid-column: 1 / -1;
  padding-top: 0.4rem;
  border-top: 1px solid var(--line);
  font-size: 0.84rem;
}

@media (min-width: 800px) {
  .footer {
    grid-template-columns: 1.3fr 0.8fr 0.8fr 0.8fr;
    padding-top: 3.25rem;
  }
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero__title,
  .hero__sub,
  .hero__actions,
  .stat,
  .program__copy h3,
  .media img,
  .coach__shot img,
  .coach__bio,
  .nav__bar,
  .logo,
  .mobile-menu__panel,
  .btn {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    filter: none !important;
    opacity: 1 !important;
  }

  .hero__img {
    transform: none !important;
  }

  .btn--press {
    box-shadow: 0 8px 24px rgba(255, 226, 31, 0.18);
  }

  .fluid {
    display: none;
  }
}
