:root {
  --wall: #22304d;
  --wall-deep: #141d33;
  --brick: #2b3a5c;
  --mortar: #182339;
  --beam: #59606e;
  --steel: #b9c1cc;
  --bag: #c9272d;
  --bag-deep: #7d1119;
  --tape: #f2c14e;
  --glove: #2f6fd6;
  --cream: #f6ecd9;
  --floor: #a8683d;
  --floor-deep: #6b3d22;
  --ring: #e8423a;
  --brass: #d9a441;
  --ink: #0e1424;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: var(--wall);
  color: var(--cream);
  font-family: 'Bricolage Grotesque Variable', system-ui, sans-serif;
}

.gym {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.gym__back,
.gym__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.gym__bar {
  position: absolute;
  top: clamp(16px, 7.5vh, 58px);
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 clamp(14px, 4vw, 52px);
  pointer-events: none;
  z-index: 3;
}

.gym__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  font-family: 'Big Shoulders Display Variable', sans-serif;
  font-weight: 900;
  font-size: clamp(17px, min(2.4vw, 3.6vh), 26px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* il marchio: un guantone visto dall'alto, disegnato col CSS */
.gym__brand-mark {
  width: 0.95em;
  height: 0.95em;
  border-radius: 46% 54% 40% 40%;
  background: radial-gradient(circle at 35% 30%, #ff8a7d 0 12%, transparent 13%), var(--bag);
  box-shadow: inset 0 -0.16em 0 var(--cream);
}

.gym__hours {
  font-size: clamp(10px, min(1.15vw, 1.8vh), 13px);
  letter-spacing: 0.04em;
  opacity: 0.72;
}

.gym__copy {
  position: absolute;
  left: clamp(14px, 4vw, 52px);
  top: clamp(64px, 22vh, 190px);
  width: min(46vw, 560px);
  z-index: 3;
  pointer-events: none;
}

.gym__kicker {
  margin: 0 0 0.9em;
  font-size: clamp(10px, min(1.2vw, 1.9vh), 13px);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tape);
}

.gym__title {
  margin: 0;
  font-family: 'Big Shoulders Display Variable', sans-serif;
  font-weight: 900;
  font-size: clamp(30px, min(7.2vw, 11.5vh), 104px);
  line-height: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.005em;
}

.gym__line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.04em;
}

.gym__line > span { display: inline-block; }

.gym__title em {
  font-style: normal;
  color: var(--tape);
}

.gym__lede {
  margin: 0.9em 0 0;
  max-width: 30em;
  font-size: clamp(11px, min(1.45vw, 2.3vh), 17px);
  line-height: 1.45;
  opacity: 0.84;
}

.gym__button {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-top: clamp(12px, 3.4vh, 30px);
  padding: 0.95em 1.6em 0.95em 1.5em;
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink);
  font-weight: 700;
  font-size: clamp(11px, min(1.35vw, 2.2vh), 16px);
  text-decoration: none;
  pointer-events: auto;
  overflow: hidden;
  box-shadow: 0 0.35em 0 var(--bag-deep), 0 0.9em 1.6em rgba(0, 0, 0, 0.35);
}

/* la striscia di nastro da boxe che avvolge il pulsante, di traverso */
.gym__button-tape {
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: -0.4em;
  width: 1.1em;
  background:
    repeating-linear-gradient(0deg, transparent 0 4px, rgba(0, 0, 0, 0.08) 4px 5px),
    var(--tape);
  transform: rotate(14deg);
}

.gym__button-text {
  position: relative;
  padding-left: 0.6em;
  font-variation-settings: 'wdth' 100;
}

@media (hover: hover) {
  .gym__button:hover .gym__button-tape { animation: gym-tape 0.6s cubic-bezier(.3, 1.6, .5, 1); }
}

@keyframes gym-tape {
  0% { transform: rotate(14deg); }
  40% { transform: rotate(-6deg) translateX(0.2em); }
  100% { transform: rotate(14deg); }
}

.gym__hint {
  position: absolute;
  left: 50%;
  bottom: clamp(8px, 2.4vh, 22px);
  margin: 0;
  transform: translateX(-50%);
  font-size: clamp(10px, min(1.1vw, 1.8vh), 12px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.7;
  pointer-events: none;
  z-index: 3;
  white-space: nowrap;
}

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

/* telefono: la scritta in alto a sinistra, stretta, il sacco a destra */
@media (max-aspect-ratio: 1/1) {
  .gym__copy { width: 56vw; top: clamp(56px, 19vh, 160px); }
  .gym__title { font-size: clamp(26px, min(10.5vw, 8.4vh), 64px); }
  .gym__lede { max-width: 15em; }
  .gym__hours { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .gym__button:hover .gym__button-tape { animation: none; }
}
