@font-face {
  font-family: Bungee;
  src: url("assets/bungee.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: Manrope;
  src: url("assets/manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --graphite: #16181d;
  --black: #111215;
  --surface: #1e2126;
  --orange: #ff5c1a;
  --lime: #c8f04b;
  --paper: #f2f2ed;
  --muted: #bfc1bf;
  --edge: clamp(1rem, 2.3vw, 2.5rem);
  --nav-h: 4.3125rem;
  --display: Bungee, Manrope, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--paper);
  background: var(--graphite);
  font: 400 1rem/1.6 Manrope, sans-serif;
}
h1, h2, h3, p, figure { margin: 0; }
img, video { display: block; max-inline-size: 100%; }
button, summary { cursor: pointer; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; }
::selection { color: var(--black); background: var(--lime); }
[hidden] { display: none !important; }
[id] { scroll-margin-top: calc(var(--nav-h) + 1rem); }
.wrap { width: calc(100% - 2 * var(--edge)); margin-inline: auto; }
.sr-only, .skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip:focus {
  position: fixed;
  z-index: 5;
  left: 1rem;
  top: .75rem;
  padding: .5rem 1rem;
  color: var(--black);
  background: var(--lime);
}

.topbar {
  position: sticky;
  z-index: 3;
  top: 0;
  color: var(--orange);
  background: var(--black);
  font-family: var(--display);
}
.topbar nav {
  min-height: var(--nav-h);
  display: grid;
  width: 100%;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  justify-items: center;
  padding-inline: 11.5%;
  position: relative;
}
.topbar a {
  display: grid;
  min-height: 44px;
  place-items: center;
  line-height: 1;
  font-size: clamp(.65rem, 1.17vw, .95rem);
}
.topbar a:hover { color: var(--paper); }
.topbar .topbar-brand { font-size: clamp(1.25rem, 2.55vw, 2.1rem); }
.topbar .topbar-location {
  width: 44px;
  position: absolute;
  right: calc(var(--edge) - .2rem);
}
.topbar-location svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 2.4; }

.hero {
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
  min-height: max(29rem, calc(100vh - var(--nav-h) - 4.75rem));
  min-height: max(29rem, calc(100svh - var(--nav-h) - 4.75rem));
  overflow: hidden;
  background: var(--black) url("assets/forja-film.webp") center 44% / cover;
  color: var(--orange);
}
.hero-film, .hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-film { object-fit: cover; object-position: 50% 44%; }
.hero::after {
  content: "";
  background: linear-gradient(95deg, rgba(9, 10, 13, .30), rgba(9, 10, 13, .58) 60%);
}
.hero h1 { width: 100%; text-align: center; }
.hero-title {
  display: grid;
  justify-items: center;
  font: 400 clamp(3.4rem, 10.35vw, 10rem)/.845 var(--display);
  letter-spacing: -.04em;
  transform: translateY(.045em);
}
.hero-title > span:first-child { transform: scaleX(1.16); }
.hero-window {
  display: grid;
  place-items: center;
  width: 100%;
  height: .87em;
  overflow: clip;
}
#hero-word { display: block; }
.hero[data-enter] h1 { animation: enter .75s cubic-bezier(.2,.85,.25,1) both; }
@keyframes enter {
  from { transform: translateY(.2em); clip-path: inset(14% 0 14%); }
  to { transform: none; clip-path: inset(0); }
}
.film-control {
  position: absolute;
  right: calc(var(--edge) + .45rem);
  bottom: 1.4rem;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--orange);
}
.film-control:hover { color: var(--paper); }
.film-control svg { width: 1.4rem; fill: currentColor; }
.play-icon, .film-control[data-paused="true"] .pause-icon { display: none; }
.film-control[data-paused="true"] .play-icon { display: block; }

.tour-link {
  position: fixed;
  z-index: 2;
  bottom: max(1.8rem, calc(env(safe-area-inset-bottom) + 1rem));
  left: 50%;
  transform: translateX(-50%);
  padding: .55em .72em .5em;
  border: .15em solid var(--black);
  background: var(--orange);
  color: var(--black);
  font: 400 clamp(1rem, 2.05vw, 1.8rem)/1.25 var(--display);
  white-space: nowrap;
  transition: background .2s, transform .2s, opacity .2s, visibility .2s;
}
.tour-link:hover { transform: translate(-50%, -3px); background: var(--lime); }
.tour-link:active { transform: translate(-50%, 1px); }
.tour-link[data-out-of-way] { opacity: 0; visibility: hidden; }

.statement {
  color: var(--black);
  background: var(--orange);
  padding: clamp(3.25rem, 6.25vw, 5.75rem) var(--edge);
}
.statement p {
  max-width: 22ch;
  margin-inline: auto;
  text-align: center;
  font: 400 clamp(1.85rem, 5.05vw, 5.35rem)/1.08 var(--display);
  letter-spacing: -.035em;
}
.statement img {
  display: inline-block;
  width: 1.78em;
  height: .84em;
  margin-inline: .05em;
  vertical-align: -.12em;
  object-fit: cover;
  filter: saturate(.62);
}

.interlude {
  min-height: min(92svh, 63vw);
  display: grid;
  place-items: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  text-align: center;
  background: var(--black);
}
.interlude img {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 52%;
  filter: brightness(.72) saturate(.35);
}
.interlude h2 {
  padding: 2rem;
  color: var(--orange);
  font: 400 clamp(3rem, 9vw, 9rem)/.92 var(--display);
  letter-spacing: -.04em;
}
.interlude span { display: block; }

.section-title {
  color: var(--orange);
  font: 400 clamp(2.2rem, 6.15vw, 6.8rem)/1.02 var(--display);
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}
.workouts, .club, .inside { padding-block: clamp(3.9rem, 7.1vw, 8rem); }
.workouts .section-title, .club .section-title, .inside .section-title {
  margin-bottom: clamp(1.6rem, 3vw, 3rem);
}
.workout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: clamp(.8rem, 1.3vw, 1.25rem);
  align-items: stretch;
}
.workout-image { overflow: hidden; position: relative; min-height: 32rem; background: var(--surface); }
.workout-image img { width: 100%; height: 100%; position: absolute; object-fit: cover; }
.workout-catalog { display: grid; align-content: start; }
.workout-catalog details {
  padding: clamp(1rem, 1.9vw, 2rem) clamp(1rem, 7vw, 7rem);
  transition: color .2s, background .2s;
}
.workout-catalog details[open] { color: var(--black); background: var(--orange); }
.workout-catalog details:not([open]):hover { color: var(--orange); background: var(--surface); }
.workout-catalog summary {
  min-height: 44px;
  display: grid;
  align-items: center;
  list-style: none;
  font: 400 clamp(1.6rem, 3.4vw, 3.6rem)/1.05 var(--display);
  letter-spacing: -.025em;
}
.workout-catalog summary::-webkit-details-marker { display: none; }
.workout-catalog p { max-width: 52ch; margin-block: .55rem .25rem; }

.club { padding-top: 0; }
.club-frame {
  position: relative;
  isolation: isolate;
  margin-inline: 8.8%;
  min-height: clamp(21rem, 37vw, 40rem);
  display: grid;
  place-items: center;
  color: var(--orange);
  background: var(--surface);
}
.club-frame img {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.70) saturate(.54);
}
.club-frame figcaption {
  display: grid;
  justify-items: center;
  margin: 1rem;
  padding: .8rem 1.5rem;
  background: var(--black);
  border: 1px solid var(--orange);
}
.club-frame strong { font: 400 clamp(1.25rem, 3.2vw, 3rem)/1.2 var(--display); }
.club-frame span { color: var(--paper); }

.about, .faq, .culture { color: var(--black); background: var(--orange); }
.about .section-title, .faq .section-title, .culture .section-title { color: inherit; }
.about { padding-block: clamp(4.2rem, 8vw, 8rem); }
.about .section-title { text-align: center; margin-bottom: clamp(2.4rem, 5vw, 5rem); }
.about-columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.6rem, 4vw, 5rem); }
.about h3 { font: 400 clamp(1.4rem, 2.9vw, 2.6rem)/1.15 var(--display); }
.about p { margin-top: .7rem; max-width: 40ch; }

.club-collage {
  height: min(61vw, 49rem);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: repeat(10, minmax(0, 1fr));
}
.club-collage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.73);
}
.collage-one { grid-area: 1 / 1 / 7 / 4; }
.collage-two { grid-area: 2 / 3 / 6 / 8; z-index: 1; object-position: 50% 38%; }
.collage-three { grid-area: 1 / 9 / 8 / 13; }
.collage-four { grid-area: 6 / 2 / 11 / 7; }
.collage-five { grid-area: 5 / 6 / 10 / 11; object-position: 60% 50%; }

.faq { padding-block: clamp(3rem, 7vw, 7rem); }
.faq-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(1.4rem, 6vw, 7rem); }
.faq details { border-top: 1px solid var(--black); }
.faq details:last-child { border-bottom: 1px solid var(--black); }
.faq summary {
  position: relative;
  padding: 1.1rem 2.25rem 1.1rem 0;
  list-style: none;
  font: 400 clamp(.95rem, 1.85vw, 1.7rem)/1.4 var(--display);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .15rem; top: 1.1rem; }
.faq details[open] summary::after { content: "−"; }
.faq p { padding: 0 2rem 1.15rem 0; max-width: 55ch; }
.faq :focus-visible, .culture :focus-visible { outline-color: var(--black); }

.culture-copy { padding-block: clamp(3rem, 6vw, 6rem); border-top: 1px solid var(--black); }
.culture-copy p { margin-top: 1.2rem; font: 400 clamp(1.3rem, 3.5vw, 3.4rem)/1.2 var(--display); }
.culture-photos { display: grid; grid-template-columns: repeat(3, 1fr); }
.culture-photos img { width: 100%; height: clamp(12rem, 39vw, 37rem); object-fit: cover; }
.culture-photos img:nth-child(2) { object-position: 54%; }

.footer { padding-block: clamp(3rem, 6vw, 6rem) max(6rem, calc(env(safe-area-inset-bottom) + 4rem)); background: var(--black); }
.footer-inner { display: flex; justify-content: space-between; align-items: end; gap: 2rem; }
.footer-brand { font: 400 clamp(4rem, 13vw, 12rem)/.84 var(--display); color: var(--orange); }
.footer-nav { display: grid; gap: .35rem; color: var(--orange); }
.footer-nav a:hover { text-decoration: underline; text-underline-offset: .2em; }
.footer-nav p { margin-top: .75rem; font-size: .85rem; color: var(--muted); }

@media (max-width: 820px) {
  .topbar nav { padding-inline: 2rem; }
  .topbar-location { display: none !important; }
  .hero-title { font-size: clamp(2.65rem, 10.1vw, 6rem); }
  .workout-image { min-height: 25rem; }
  .workout-catalog details { padding-inline: 1.45rem; }
  .club-frame { margin-inline: 3%; }
}
@media (max-width: 560px) {
  :root { --nav-h: 3.55rem; }
  .topbar nav { grid-template-columns: 1fr 1fr 1fr; padding-inline: .55rem; }
  .hero {
    min-height: max(24rem, calc(100vh - var(--nav-h) - 3.75rem));
    min-height: max(24rem, calc(100svh - var(--nav-h) - 3.75rem));
  }
  .hero-title { font-size: min(14vw, 4.8rem); line-height: .92; }
  .hero-window { height: 1.06em; font-size: min(12.1vw, 4.2rem); }
  .hero-film { object-position: 48% 44%; }
  .film-control { bottom: 1.05rem; right: .65rem; }
  .tour-link { bottom: max(1.2rem, calc(env(safe-area-inset-bottom) + .7rem)); }
  .statement p { max-width: 18ch; }
  .interlude { min-height: 66svh; }
  .interlude h2 { font-size: clamp(2.65rem, 11.5vw, 4.4rem); }
  .workout-layout, .about-columns, .faq-layout { grid-template-columns: 1fr; }
  .workout-image { min-height: 16.5rem; }
  .workout-catalog details { padding: .72rem 1rem; }
  .section-title { font-size: clamp(1.85rem, 7.8vw, 3.1rem); }
  .club-frame { margin-inline: 0; min-height: 16rem; }
  .about .section-title { text-align: left; }
  .club-collage { height: 93vw; }
  .culture-photos { grid-template-columns: 1fr 1fr; }
  .culture-photos img:first-child { grid-column: 1 / -1; height: 15rem; }
  .culture-photos img { height: 11rem; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
