/* Tempo — fitness studio. Big Shoulders Display + Space Grotesk. Concrete, black, cobalt. */
:root {
  --bg: #e8e6e1;
  --panel: #dcd9d2;
  --ink: #0d0d0d;
  --muted: #5e5c57;
  --line: rgba(13, 13, 13, 0.16);
  --accent: #2343ff;
  --display: 'Big Shoulders Display', Impact, sans-serif;
  --sans: 'Space Grotesk', system-ui, sans-serif;
  --ease: cubic-bezier(0.2, 1, 0.3, 1);
  --pad: clamp(18px, 4vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, figure, ul, dl, dd { margin: 0; padding: 0; }
ul { list-style: none; }
button, input { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 12px; top: 12px; }
.wrap { width: 100%; max-width: 1560px; margin: 0 auto; padding-inline: var(--pad); }

.h2 { font-family: var(--display); font-weight: 800; font-size: clamp(48px, 8vw, 132px); line-height: 0.88; letter-spacing: -0.01em; text-transform: uppercase; }

/* Motion primitives */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 0.9s var(--ease) var(--d, 0ms), transform 1.1s var(--ease) var(--d, 0ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="clip"] { opacity: 1; transform: none; }
.js [data-reveal="clip"] > img { clip-path: inset(0 100% 0 0); transition: clip-path 1.4s var(--ease) var(--d, 0ms) !important; }
.js [data-reveal="clip"].is-in > img { clip-path: inset(0); }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.04em; margin-bottom: -0.04em; }
.w-i { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease); }
.is-in .w-i { transform: none; }
[hidden] { display: none !important; }

.media { position: relative; overflow: hidden; background: var(--panel); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media img[data-parallax] { position: absolute; left: 0; top: -8%; height: 116%; will-change: transform; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 24px; border: 1.5px solid var(--ink); background: none; cursor: pointer; font-size: 14px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease); }
.btn:hover { background: var(--ink); color: var(--bg); }
.btn svg, .link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform 0.5s var(--ease); }
.btn:hover svg, .link:hover svg { transform: translateX(5px); }
.btn--accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--ink); border-color: var(--ink); }
.btn--white { background: #fff; border-color: #fff; color: var(--accent); }
.btn--white:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--black { background: var(--ink); border-color: var(--ink); color: #fff; padding: 20px 28px; }
.btn--black:hover { background: #fff; border-color: #fff; color: var(--ink); }
.link { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; border-bottom: 1.5px solid currentColor; padding-bottom: 4px; }

/* Header */
.header { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px var(--pad); transition: padding 0.5s var(--ease), background 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.header.is-scrolled { padding-block: 10px; background: rgba(232, 230, 225, 0.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.brand { display: inline-flex; align-items: flex-end; gap: 4px; font-family: var(--display); font-weight: 800; font-size: 34px; line-height: 0.9; text-transform: uppercase; letter-spacing: 0.01em; }
.brand i { width: 9px; height: 9px; background: var(--accent); margin-bottom: 4px; }
.nav { display: flex; gap: clamp(16px, 2.8vw, 40px); }
.nav a { font-size: 14px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; position: relative; padding: 4px 0; }
.nav a::after { content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform 0.5s var(--ease); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.header__cta { padding: 11px 20px; }
.burger { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 9px; right: 9px; height: 2.500px; background: var(--ink); transition: transform 0.5s var(--ease), top 0.5s var(--ease); }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 26px; }
.nav-open .burger span:first-child { top: 21px; transform: rotate(45deg); }
.nav-open .burger span:last-child { top: 21px; transform: rotate(-45deg); }

/* Hero */
.hero { padding-top: 110px; }
.hero__meta { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 13px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; padding-bottom: 14px; border-bottom: 1.5px solid var(--ink); }
.hero__title { font-family: var(--display); font-weight: 800; font-size: clamp(72px, 17vw, 330px); line-height: 0.8; letter-spacing: -0.015em; text-transform: uppercase; margin: 0.1em 0 0.08em -0.02em; }
.hero__title .w:last-child { color: var(--accent); }
.hero__stage { position: relative; padding-inline: var(--pad); max-width: 1560px; margin: 0 auto; }
.hero__media { height: clamp(300px, 46vw, 660px); }
.hero__media img { filter: grayscale(1) contrast(1.08); }
.hero__card { position: absolute; right: calc(var(--pad) + clamp(12px, 2vw, 32px)); bottom: clamp(12px, 2vw, 32px); width: min(340px, 78%); background: var(--accent); color: #fff; padding: 24px 26px; }
.live { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; }
.live i { width: 9px; height: 9px; border-radius: 50%; background: #fff; animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 0.25; } }
.hero__card h2 { font-family: var(--display); font-weight: 800; font-size: 40px; line-height: 0.95; text-transform: uppercase; margin: 14px 0 6px; }
.hero__card > p:not(.live) { font-size: 14px; opacity: 0.85; margin-bottom: 20px; }
.hero__foot { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(32px, 6vw, 100px); align-items: start; padding-block: clamp(40px, 5vw, 72px) clamp(64px, 8vw, 120px); }
.hero__lede { font-size: clamp(20px, 2vw, 28px); line-height: 1.3; letter-spacing: -0.02em; max-width: 26ch; }
.figures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.figures > div { padding-top: 14px; border-top: 1.5px solid var(--ink); }
.figures dt { font-family: var(--display); font-weight: 800; font-size: clamp(54px, 7vw, 116px); line-height: 0.9; }
.figures dt small { font-family: var(--sans); font-weight: 500; font-size: 0.2em; margin-left: 6px; color: var(--accent); }
.figures dd { font-size: 14px; color: var(--muted); margin-top: 8px; max-width: 20ch; }

/* Marquee */
.marquee { overflow: hidden; background: var(--ink); color: var(--bg); padding: 16px 0; }
.marquee__track { display: flex; align-items: center; gap: 36px; width: max-content; padding-left: 36px; animation: marquee 34s linear infinite; }
.marquee span { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 3.6vw, 52px); line-height: 1; text-transform: uppercase; white-space: nowrap; }
.marquee i { width: 14px; height: 14px; background: var(--accent); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Programs */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head > p { max-width: 40ch; color: var(--muted); }
.programs { padding-block: clamp(80px, 10vw, 150px); }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(8px, 1vw, 14px); }
.tile { position: relative; overflow: hidden; aspect-ratio: 3 / 4.4; color: #fff; display: flex; align-items: flex-end; padding: clamp(18px, 1.8vw, 28px); background: var(--ink); }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(0.72); transition: transform 1.4s var(--ease), filter 0.9s var(--ease); }
.tile::after { content: ''; position: absolute; inset: 0; background: var(--accent); mix-blend-mode: multiply; opacity: 0; transition: opacity 0.8s var(--ease); }
.tile:hover img { transform: scale(1.06); filter: grayscale(1) brightness(0.95); }
.tile:hover::after { opacity: 1; }
.tile__no { position: absolute; z-index: 1; left: clamp(18px, 1.8vw, 28px); top: clamp(18px, 1.8vw, 28px); font-size: 13px; font-weight: 500; letter-spacing: 0.08em; }
.tile div { position: relative; z-index: 1; }
.tile h3 { font-family: var(--display); font-weight: 800; font-size: clamp(38px, 3.8vw, 62px); line-height: 0.9; text-transform: uppercase; }
.tile p { font-size: 14px; line-height: 1.5; max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.8s var(--ease), opacity 0.6s var(--ease), margin 0.8s var(--ease); }
.tile:hover p, .tile:focus-visible p { max-height: 90px; opacity: 0.92; margin-top: 12px; }

/* Timetable */
.timetable { background: var(--ink); color: var(--bg); padding-block: clamp(80px, 10vw, 150px); }
.days { display: flex; gap: 6px; }
.days button { min-width: 68px; padding: 12px 16px; background: none; border: 1.5px solid rgba(232, 230, 225, 0.3); color: var(--bg); cursor: pointer; font-size: 14px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; transition: background 0.4s var(--ease), border-color 0.4s var(--ease); }
.days button:hover { border-color: var(--bg); }
.days button.is-active { background: var(--accent); border-color: var(--accent); }
.panel.is-shown .slots li { animation: rise 0.7s var(--ease) both; }
.slots li:nth-child(2) { animation-delay: 50ms; } .slots li:nth-child(3) { animation-delay: 100ms; } .slots li:nth-child(4) { animation-delay: 150ms; } .slots li:nth-child(5) { animation-delay: 200ms; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.slots li { display: grid; grid-template-columns: 130px 1.4fr 1fr 110px 110px auto; align-items: center; gap: 20px; padding: clamp(16px, 1.8vw, 24px) 0; border-top: 1px solid rgba(232, 230, 225, 0.2); transition: padding 0.5s var(--ease), background 0.5s var(--ease); }
.slots li:last-child { border-bottom: 1px solid rgba(232, 230, 225, 0.2); }
.slots li:hover { padding-inline: 14px; background: rgba(232, 230, 225, 0.06); }
.slots time { font-family: var(--display); font-weight: 600; font-size: 34px; line-height: 1; font-variant-numeric: tabular-nums; }
.slots h3 { font-family: var(--display); font-weight: 800; font-size: clamp(28px, 2.8vw, 42px); line-height: 1; text-transform: uppercase; }
.slots p, .slots span { font-size: 14px; opacity: 0.65; }
.slots b { font-size: 13px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: #9fb0ff; }
.slots b.full { color: rgba(232, 230, 225, 0.5); }
.slots a { padding: 10px 20px; border: 1.5px solid var(--bg); font-size: 13px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; transition: background 0.4s var(--ease), color 0.4s var(--ease); }
.slots a:hover { background: var(--bg); color: var(--ink); }

/* Club */
.club { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 100px); align-items: center; padding-block: clamp(80px, 10vw, 150px); }
.club__media { aspect-ratio: 5 / 4.4; }
.club__copy > p { margin-top: 22px; max-width: 42ch; color: var(--muted); font-size: 18px; }
.kit { margin-top: 36px; }
.kit li { display: grid; grid-template-columns: 56px 1fr; gap: 20px; align-items: center; padding: 20px 0; border-top: 1.5px solid var(--ink); }
.kit svg { width: 46px; height: 46px; fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: square; transition: transform 0.7s var(--ease); }
.kit li:hover svg { transform: scale(1.1); }
.kit h3 { font-family: var(--display); font-weight: 800; font-size: 28px; line-height: 1; text-transform: uppercase; }
.kit p { font-size: 15px; color: var(--muted); margin-top: 4px; }

/* Membership */
.membership { padding-bottom: clamp(80px, 10vw, 150px); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(8px, 1vw, 14px); align-items: stretch; }
.plan { background: var(--panel); padding: clamp(24px, 2.8vw, 40px); display: flex; flex-direction: column; transition: transform 0.7s var(--ease); }
.plan:hover { transform: translateY(-8px); }
.plan--main { background: var(--accent); color: #fff; }
.plan__tag { align-self: flex-start; padding: 4px 10px; background: #fff; color: var(--accent); font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 14px; }
.plan h3 { font-family: var(--display); font-weight: 800; font-size: 40px; line-height: 1; text-transform: uppercase; }
.plan__price { font-family: var(--display); font-weight: 800; font-size: clamp(84px, 9vw, 140px); line-height: 0.9; margin: 22px 0 22px; }
.plan__price small { font-family: var(--sans); font-weight: 400; font-size: 15px; margin-left: 8px; opacity: 0.7; }
.plan ul { margin-bottom: 30px; }
.plan li { padding: 11px 0; border-top: 1px solid var(--line); font-size: 15px; }
.plan--main li { border-color: rgba(255, 255, 255, 0.3); }
.plan .btn { margin-top: auto; }

/* Join */
.join { background: var(--accent); color: #fff; padding-block: clamp(72px, 9vw, 130px); }
.join__title { font-family: var(--display); font-weight: 800; font-size: clamp(60px, 12vw, 220px); line-height: 0.84; text-transform: uppercase; }
.signup { position: relative; display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; margin-top: clamp(32px, 4vw, 56px); max-width: 980px; }
.signup input { padding: 20px 22px; background: transparent; border: 1.5px solid rgba(255, 255, 255, 0.6); color: #fff; font-size: 16px; transition: border-color 0.4s var(--ease), background 0.4s var(--ease); }
.signup input::placeholder { color: rgba(255, 255, 255, 0.7); }
.signup input:focus { outline: none; border-color: #fff; background: rgba(255, 255, 255, 0.1); }
.signup__note { grid-column: 1 / -1; font-weight: 500; min-height: 1.6em; opacity: 0; transition: opacity 0.6s var(--ease); }
.signup__note.is-shown { opacity: 1; }

/* Footer */
.footer { background: var(--ink); color: var(--bg); }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-block: 30px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 26px; font-size: 14px; }
.footer nav a { opacity: 0.7; transition: opacity 0.4s var(--ease); }
.footer nav a:hover { opacity: 1; }
.footer p { font-size: 13px; opacity: 0.5; }

/* Responsive */
@media (max-width: 1000px) {
  .tiles { grid-template-columns: 1fr 1fr; }
  .tile { aspect-ratio: 4 / 4.2; }
  .tile p { max-height: 90px; opacity: 0.92; margin-top: 12px; }
  .hero__foot, .club { grid-template-columns: 1fr; }
  .slots li { grid-template-columns: 90px 1fr auto; }
  .slots p, .slots span { display: none; }
  .slots b { grid-column: 2; grid-row: 2; }
  .slots a { grid-column: 3; grid-row: 1 / span 2; }
  .plans { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .burger { display: block; z-index: 2; }
  .brand { z-index: 2; position: relative; }
  .header__cta { display: none; }
  .nav { position: fixed; inset: 0; background: var(--bg); flex-direction: column; justify-content: center; gap: 0; padding: var(--pad); opacity: 0; visibility: hidden; transition: opacity 0.4s var(--ease), visibility 0.4s; }
  .nav a { font-family: var(--display); font-weight: 800; font-size: 64px; line-height: 1; letter-spacing: 0; }
  .nav-open .nav { opacity: 1; visibility: visible; }
  .nav-open { overflow: hidden; }
}
@media (max-width: 600px) {
  .tiles { grid-template-columns: 1fr; }
  .tile { aspect-ratio: 4 / 3.4; }
  .hero__card { position: relative; right: auto; bottom: auto; width: 100%; }
  .figures { gap: 12px; }
  .signup { grid-template-columns: 1fr; }
  .days button { min-width: 0; flex: 1; }
  .days { width: 100%; }
  .slots time { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
