/* PULSE · a strength gym at 6am. Graphite, chalk-white type, one safety-yellow signal.
   Archivo with its width axis: tall condensed display, wide numbers. The live element is a heartbeat:
   an ECG line that keeps tracing through the hero, a real "next class" countdown, and spots-left bars. */
@font-face { font-family: "Archivo"; src: url(fonts/archivo.woff2) format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
:root {
  --bg: #0b0c0e; --bg2: #131418; --chalk: #ecebe6; --muted: #a09f98; --line: rgba(236,235,230,.12); --volt: #f5d10b; --focus: #f5d10b;
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
}
body { background: var(--bg); color: var(--chalk); font: 16px/1.6 var(--font); }
h1, h2, h3 { margin: 0; font-weight: 800; font-stretch: 68%; text-transform: uppercase; letter-spacing: -.01em; line-height: .9; text-wrap: balance; }
p { margin: 0; }
.w-full { width: 100%; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 6px; font: 700 15px/1 var(--font); font-stretch: 100%; text-decoration: none; border: 1.5px solid transparent; transition: background .2s, color .2s, border-color .2s; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-volt { background: var(--volt); color: #111; }
.btn-volt:hover { background: #ffe14a; }
.btn-ghost { border-color: rgba(236,235,230,.35); color: var(--chalk); background: transparent; }
.btn-ghost:hover { border-color: var(--chalk); }

/* Header */
.hdr { position: sticky; top: 0; z-index: 40; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.hdr.scrolled { background: rgba(11,12,14,.86); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-color: var(--line); }
.hdr-in { display: flex; align-items: center; gap: 28px; height: 70px; }
.brand { font: 900 28px/1 var(--font); font-stretch: 62%; text-transform: uppercase; letter-spacing: .02em; text-decoration: none; margin: 0; }
.nav { display: flex; gap: 26px; margin-left: auto; font-size: 15px; font-weight: 600; }
.nav a { text-decoration: none; color: var(--muted); } .nav a:hover { color: var(--chalk); }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: none; position: relative; }
.menu-btn span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--chalk); transition: transform .3s; }
.menu-btn span:first-child { top: 17px; } .menu-btn span:last-child { top: 25px; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Hero */
.hero { padding: 48px 0 72px; overflow: hidden; }
.hero h1 { font-size: clamp(60px, 11.2vw, 172px); }
.hero h1 span { color: #77766f; }
.ecg { display: block; width: 100%; height: 90px; margin: 18px 0 8px; }
.ecg path { fill: none; stroke: var(--volt); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.ecg .base { stroke: rgba(236,235,230,.16); stroke-width: 1.5; }
@media (prefers-reduced-motion: no-preference) {
  .ecg .beam { stroke-dasharray: .22 .78; animation: trace 3.2s linear infinite; }
  @keyframes trace { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
}
.hero-row { display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: end; }
.lede { font-size: 19px; max-width: 30em; color: #d6d5cf; }
.next-class { border: 1px solid var(--line); border-radius: 10px; padding: 22px; background: var(--bg2); }
.next-class .k { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; color: var(--volt); }
.beat { width: 10px; height: 10px; border-radius: 50%; background: var(--volt); }
@media (prefers-reduced-motion: no-preference) { .beat { animation: beat 1.1s ease-in-out infinite; } }
@keyframes beat { 0%, 100% { transform: scale(1); opacity: 1; } 15% { transform: scale(1.35); } 30% { transform: scale(1); opacity: .7; } 45% { transform: scale(1.2); } }
.next-class .v { margin-top: 10px; font-size: 22px; font-weight: 800; font-stretch: 85%; line-height: 1.15; }
.next-class .t { margin: 4px 0 18px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* Stats */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats-in { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats p { padding: 28px 0 26px; border-left: 1px solid var(--line); padding-left: 24px; }
.stats p:first-child { border-left: 0; padding-left: 0; }
.stats b { display: block; font-size: clamp(40px, 5vw, 64px); font-weight: 800; font-stretch: 120%; line-height: 1; font-variant-numeric: tabular-nums; }
.stats span { display: block; margin-top: 6px; color: var(--muted); font-size: 14px; }

/* Floor photo: full-bleed with a slow push-in */
.floor { margin: 0; height: clamp(260px, 42vw, 560px); overflow: hidden; }
.floor figure { margin: 0; height: 100%; }
.floor img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.4) contrast(1.05); }
@media (prefers-reduced-motion: no-preference) { .floor img { animation: push 30s ease-in-out infinite alternate; } @keyframes push { to { transform: scale(1.08); } } }

/* Section heads */
.sec-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 32px; margin-bottom: 30px; }
.sec-head h2 { font-size: clamp(56px, 8vw, 110px); }
.sec-head p { color: var(--muted); }

/* Schedule */
.schedule { padding-top: 110px; padding-bottom: 100px; }
.days { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.days [role="tab"] { min-height: 44px; min-width: 64px; padding: 0 16px; border-radius: 6px; border: 1.5px solid var(--line); background: transparent; color: var(--muted); font-weight: 700; }
.days [role="tab"][aria-selected="true"] { background: var(--chalk); color: var(--bg); border-color: var(--chalk); }
.cls { display: grid; grid-template-columns: 110px 1fr 180px auto; align-items: center; gap: 22px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cls time { font-size: 22px; font-weight: 800; font-stretch: 110%; font-variant-numeric: tabular-nums; }
.cls h3 { font-size: 28px; font-stretch: 75%; }
.cls div p { color: var(--muted); font-size: 14px; margin-top: 4px; }
.cap { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.cap::before { content: attr(data-label); }
.cap i { display: block; height: 4px; border-radius: 4px; background: var(--line); position: relative; overflow: hidden; }
.cap i::after { content: ""; position: absolute; inset: 0; width: var(--fill, 0%); background: var(--chalk); border-radius: inherit; transition: width 1.2s cubic-bezier(.2,.8,.2,1); }
.cls.low .cap::before { color: var(--volt); }
.cls.low .cap i::after { background: var(--volt); }
.cls.is-next { background: linear-gradient(90deg, rgba(245,209,11,.08), transparent 60%); }

/* Plans */
.plans-sec { padding: 100px 0; background: var(--bg2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.plan { border: 1px solid var(--line); border-radius: 10px; padding: 28px; display: flex; flex-direction: column; background: var(--bg); }
.plan h3 { font-size: 36px; }
.price { margin: 18px 0 20px; color: var(--muted); font-size: 14px; }
.price b { display: block; font-size: 60px; font-weight: 800; font-stretch: 120%; line-height: 1; color: var(--chalk); }
.plan ul { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 10px; flex: 1; }
.plan li { padding-left: 22px; position: relative; color: #d6d5cf; }
.plan li::before { content: ""; position: absolute; left: 0; top: .7em; width: 10px; height: 2px; background: var(--volt); }
.plan-hot { border-color: var(--volt); }
.badge { align-self: flex-start; font-size: 12px; font-weight: 800; color: #111; background: var(--volt); border-radius: 4px; padding: 4px 8px; margin-bottom: 14px; }
.fine { margin-top: 18px; color: var(--muted); font-size: 13px; }

/* Coaches */
.coaches-sec { padding-top: 110px; padding-bottom: 100px; }
.coaches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.coach img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 8px; filter: grayscale(1) contrast(1.05); transition: filter .5s ease; }
.coach:hover img { filter: none; }
.coach h3 { font-size: 32px; margin-top: 14px; }
.coach p { color: var(--muted); font-size: 14px; margin-top: 4px; }

/* Free pass */
.pass { background: var(--volt); color: #111; padding: 100px 0; }
.pass-in { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.pass h2 { font-size: clamp(64px, 9vw, 130px); }
.pass p { margin-top: 18px; font-size: 18px; max-width: 26em; }
.pass-card { background: var(--bg); color: var(--chalk); border-radius: 12px; padding: 28px; }
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 7px; font-size: 13px; font-weight: 700; color: var(--muted); }
.form input, .form select { min-height: 48px; border-radius: 6px; border: 1.5px solid var(--line); background: var(--bg2); color: var(--chalk); padding: 0 14px; font: 500 16px var(--font); color-scheme: dark; }
.form input:focus, .form select:focus { outline: none; border-color: var(--volt); }
.done h3 { font-size: 56px; } .done p { margin-top: 10px; color: var(--muted); }
.pass-card .demo-note { color: var(--muted); opacity: 1; }

.ftr { border-top: 1px solid var(--line); }
.ftr-in { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 14px; padding-top: 28px; padding-bottom: 36px; font-size: 14px; color: var(--muted); }
.ftr a { color: var(--chalk); }
dialog { background: var(--bg2); color: var(--chalk); }
.dlg { padding: 34px 28px 26px; position: relative; }
.dlg h3 { font-size: 40px; padding-right: 36px; }
.dlg-x { background: rgba(236,235,230,.08); color: var(--chalk); }
.spots { margin: 14px 0 20px; color: var(--muted); }
.dlg .demo-note { color: var(--muted); opacity: 1; }
.callbar { background: rgba(19,20,24,.92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid var(--line); }

@media (max-width: 900px) {
  .nav { position: fixed; inset: 70px 0 auto; flex-direction: column; gap: 0; padding: 8px 20px 18px; background: rgba(11,12,14,.97); border-bottom: 1px solid var(--line); transform: translateY(-130%); transition: transform .35s ease; }
  .nav.open { transform: none; }
  .nav a { padding: 14px 0; font-size: 18px; color: var(--chalk); border-bottom: 1px solid var(--line); }
  .menu-btn { display: block; }
  .hdr .btn-sm { margin-left: auto; }
  .hero-row, .pass-in { grid-template-columns: 1fr; gap: 32px; }
  .stats-in { grid-template-columns: 1fr 1fr; }
  .stats p:nth-child(3) { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .stats p:nth-child(4) { border-top: 1px solid var(--line); }
  .cls { grid-template-columns: 76px 1fr; row-gap: 12px; }
  .cls time { font-size: 18px; }
  .cls .cap, .cls .btn { grid-column: 2; }
  .cls .btn { justify-self: start; }
  .plans, .coaches { grid-template-columns: 1fr 1fr; }
  .plans .plan-hot { grid-column: 1 / -1; order: -1; }
}
@media (max-width: 480px) { .hdr .btn-sm { display: none; } .menu-btn { margin-left: auto; } .plans { grid-template-columns: 1fr; } }
