/* =========================================================
   Ultimate Fight Fitness — main stylesheet
   ========================================================= */

@import url("../assets/fonts/fonts.css");

:root {
  --red-text: #f7838b;  --red-hot: #d92730;  /* passes contrast on the dark cards; fills stay --red */
  color-scheme: dark;
  --bg: #313131;           /* matches the logo grey */
  --bg-2: #2a2a2b;
  --card: #3a3a3b;
  --line: #4a4a4c;
  --text: #f5f5f5;
  --muted: #c0c0c4;
  --red: #c4202a;          /* logo red */
  --red-dark: #9d1a21;
  --radius: 14px;
  --head: "Oswald", "Arial Narrow", sans-serif;
  --body: "Inter", "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16.5px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 22px; }

/* ---------- typography ---------- */

h1, h2, h3, h4 {
  font-family: var(--head);
  text-transform: uppercase;
  letter-spacing: .02em;
  line-height: 1.12;
  font-weight: 700;
}

.display {
  font-size: clamp(2.6rem, 7vw, 5rem);
  letter-spacing: .01em;
}

h2.section-title { font-size: clamp(1.7rem, 3.6vw, 2.6rem); margin-bottom: .5rem; }

.kicker {
  font-family: var(--head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .28em;
  font-size: .82rem;
  color: var(--red);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.kicker::before { content: ""; width: 34px; height: 2px; background: var(--red); }

p.lead { font-size: 1.12rem; color: var(--text); }
.muted { color: var(--muted); }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(43, 43, 44, .97);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
}

.logo { display: inline-flex; align-items: center; padding: 8px 0; }
.logo img { height: 42px; width: auto; }
.footer-logo img { height: 52px; width: auto; margin-bottom: 16px; }

.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; }
.nav-links a {
  font-family: var(--head);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .86rem;
  color: var(--text);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.nav-links a:hover { color: var(--red); }
.nav-links a.active { color: #fff; border-color: var(--red); }

.nav-cta { margin-left: 4px; }

.burger {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 44px;
  height: 40px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.burger span { width: 20px; height: 2px; background: #fff; transition: transform .2s, opacity .2s; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 920px) {
  .burger { display: flex; }
  .nav-links {
    max-height: calc(100dvh - 120px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #2c2c2d;
    border-bottom: 1px solid var(--line);
    padding: 8px 22px 18px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px solid var(--line); }
  .nav-links li:last-child { border-bottom: 0; padding-top: 14px; }
  .nav-links a { display: block; padding: 13px 0; font-size: 1rem; border-bottom: 0; }
}

/* ---------- buttons ---------- */

.btn {
  position: relative;
  display: inline-block;
  font-family: var(--head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .88rem;
  padding: 13px 26px;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  border: 1px solid var(--red);
  cursor: pointer;
  transition: background .15s;
}
.btn:hover { background: var(--red-dark); }

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, .35);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .08); border-color: #fff; }

.btn-sm { padding: 9px 18px; font-size: .78rem; }

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

.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-size: cover;
  background-position: center;
}
.hero .hero-bg { background-image: url(../assets/img/muaythai-area.jpg); }
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(41,41,42,.45) 0%, rgba(41,41,42,.55) 45%, rgba(49,49,49,.97) 100%);
}
.hero-inner { padding-top: 120px; padding-bottom: 72px; width: 100%; }
.hero .display .accent { color: var(--red); }
.hero-sub {
  max-width: 620px;
  margin: 18px 0 30px;
  font-size: 1.12rem;
  color: #d8d8de;
}
.hero-sub strong { color: #fff; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }

.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 96px 0 64px;
}
.page-hero .hero-bg::after {
  background: linear-gradient(180deg, rgba(41,41,42,.74) 0%, rgba(49,49,49,.98) 100%);
}

/* ---------- sections ---------- */

.section { padding: 84px 0; }
.section.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: 42px; }

.split {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 54px;
  align-items: center;
}
@media (max-width: 880px) { .split { grid-template-columns: 1fr; gap: 30px; } }

.split .photo { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.split .photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- class tiles ---------- */

.tile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 920px) { .tile-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .tile-grid { grid-template-columns: 1fr; } }

.tile {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  isolation: isolate;
  display: flex;
  align-items: flex-end;
}
.tile img {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(41,41,42,.05) 30%, rgba(41,41,42,.9) 100%);
}
.tile:hover img { transform: scale(1.05); }
.tile-label { padding: 18px 20px; }
.tile-label h3 { font-size: 1.25rem; }
.tile-label span {
  display: inline-block;
  margin-top: 4px;
  font-family: var(--head);
  font-weight: 500;
  font-size: .74rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--red);
}

/* ---------- feature cards (community / motivation / results) ---------- */

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 880px) { .card-grid { grid-template-columns: 1fr; } }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
}
.card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--red);
  display: inline-block;
}
.card p { color: var(--muted); font-size: .98rem; }
.card p + p { margin-top: 12px; }

/* ---------- gallery ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 720px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
.gallery a, .gallery figure {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3;
}
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.gallery a:hover img, .gallery figure:hover img { transform: scale(1.04); }

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

.coach {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 44px;
  align-items: start;
  padding: 54px 0;
  border-top: 1px solid var(--line);
}
.coach:first-of-type { border-top: 0; }
@media (max-width: 880px) { .coach { grid-template-columns: 1fr; gap: 26px; } }

.coach-media { display: grid; gap: 12px; }
.coach-media .main {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.coach-media .main img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; }
.coach-media .thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.coach-media .thumbs img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.coach h3 { font-size: 1.9rem; }
.coach .role {
  font-family: var(--head);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .84rem;
  color: var(--red);
  margin: 6px 0 18px;
}
.coach p { color: var(--muted); }
.coach p + p { margin-top: 14px; }
.coach .btn { margin-top: 22px; }

/* ---------- timetables ---------- */

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 36px;
}
.tab-btn {
  font-family: var(--head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .85rem;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 22px;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.tab-btn:hover { border-color: var(--red); }
.tab-btn.active { background: var(--red); border-color: var(--red); color: #fff; }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.day-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.day {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.day h4 {
  background: #2e2e2f;
  border-bottom: 2px solid var(--red);
  padding: 13px 18px;
  font-size: 1.02rem;
  letter-spacing: .1em;
}
.day ul { list-style: none; padding: 8px 0; }
.day li {
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 10px 18px;
  border-top: 1px solid var(--line);
  font-size: .95rem;
}
.day li:first-child { border-top: 0; }
.day .t {
  font-family: var(--head);
  font-weight: 600;
  color: var(--red-text);
  min-width: 62px;
  letter-spacing: .04em;
}
.day .c { color: var(--text); }
.day .c small { display: block; color: var(--muted); }
.day .tag {
  display: inline-block;
  font-style: normal;
  font-family: var(--head);
  font-weight: 600;
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--red-text);
  border: 1px solid var(--red);
  border-radius: 999px;
  padding: 1px 8px;
  margin-left: 6px;
  vertical-align: 2px;
  white-space: nowrap;
}

.note {
  margin-top: 30px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  border-radius: 10px;
  padding: 16px 20px;
  color: var(--muted);
  font-size: .95rem;
}

/* ---------- memberships ---------- */

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 980px) { .price-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .price-grid { grid-template-columns: 1fr; } }

.plan {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
}
.plan.featured { border-color: var(--red); box-shadow: 0 0 0 1px var(--red); }
.plan .flag {
  position: absolute;
  top: -12px;
  right: 18px;
  background: var(--red);
  font-family: var(--head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .68rem;
  padding: 5px 12px;
  border-radius: 999px;
}
.plan h3 { font-size: 1.12rem; min-height: 2.4em; }
.plan .price {
  font-family: var(--head);
  font-weight: 700;
  font-size: 2.5rem;
  color: #fff;
  margin: 10px 0 2px;
}
.plan .price small {
  font-size: .95rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: .06em;
}
.plan .desc { color: var(--muted); font-size: .95rem; margin: 10px 0 14px; }
.plan ul { list-style: none; margin: 0 0 22px; }
.plan li {
  position: relative;
  padding: 6px 0 6px 26px;
  color: var(--text);
  font-size: .93rem;
}
.plan li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--red);
  border-bottom: 2px solid var(--red);
  transform: rotate(-45deg);
}
.plan li.ex { color: var(--muted); }
.plan li.ex::before {
  border: 0;
  width: 12px;
  height: 0;
  border-bottom: 2px solid var(--muted);
  transform: none;
  top: 16px;
}
.plan .btn { margin-top: auto; text-align: center; }

/* ---------- instagram / cta band ---------- */

.band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 84px 0;
  text-align: center;
}
.band .hero-bg::after { background: rgba(43, 43, 44, .86); }
.band h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
.band p { color: #d8d8de; max-width: 560px; margin: 12px auto 26px; }

/* ---------- contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 760px;
  gap: 54px;
  align-items: start;
}
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }

.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-family: var(--head);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .74rem;
  color: var(--muted);
  margin-bottom: 7px;
}
.field input, .field textarea {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--body);
  font-size: 1rem;
  padding: 13px 14px;
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--red); outline-offset: 0; border-color: var(--red); }
.field textarea { min-height: 130px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }


/* ---------- policies ---------- */

.prose { max-width: 820px; }
.prose h2 { font-size: 1.5rem; margin: 40px 0 12px; }
.prose h3 { font-size: 1.12rem; margin: 26px 0 8px; }
.prose p { color: var(--muted); margin-bottom: 14px; }
.prose ul { margin: 0 0 16px 22px; color: var(--muted); }
.prose li { margin-bottom: 5px; }
.prose strong { color: var(--text); }

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

.site-footer {
  border-top: 1px solid var(--line);
  background: #2b2b2c;
  padding: 64px 0 0;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
}
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

.site-footer h3 {
  font-size: .95rem;
  letter-spacing: .2em;
  color: #fff;
  margin-bottom: 14px;
}
.site-footer p, .site-footer address { color: var(--muted); font-style: normal; font-size: .95rem; }
.site-footer a:hover { color: var(--red); }
.site-footer .link { color: var(--red); font-weight: 600; }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 20px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: .86rem;
}
.footer-bottom nav { display: flex; gap: 20px; align-items: center; }
.footer-bottom nav a { display: inline-block; padding: 10px 0; }

.ig {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.ig svg { width: 18px; height: 18px; fill: currentColor; }

/* ---------- announcement bar ---------- */

.announce {
  display: block;
  background: var(--red);
  color: #fff;
  text-align: center;
  padding: 9px 16px;
  font-family: var(--head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .76rem;
  transition: background .15s;
}
.announce:hover { background: var(--red-dark); }

/* ---------- Founding 50 ---------- */

.founding {
  background: var(--card);
  border: 1px solid var(--red);
  box-shadow: 0 0 0 1px var(--red);
  border-radius: var(--radius);
  padding: 38px 36px 30px;
}
.founding-head {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 880px) { .founding-head { grid-template-columns: 1fr; gap: 26px; } }

.founding-terms { list-style: none; margin-top: 18px; }
.founding-terms li {
  position: relative;
  padding: 5px 0 5px 26px;
  color: var(--text);
  font-size: .95rem;
}
.founding-terms li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--red);
  border-bottom: 2px solid var(--red);
  transform: rotate(-45deg);
}

.founding-prices { display: grid; gap: 16px; }
.fprice {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px 24px;
}
.fprice h3 { font-size: 1.05rem; letter-spacing: .08em; }
.fprice .price {
  font-family: var(--head);
  font-weight: 700;
  font-size: 2.1rem;
  color: #fff;
  margin: 6px 0 2px;
}
.fprice .price small { font-size: .85rem; font-weight: 500; color: var(--muted); letter-spacing: .05em; }
.fprice p { font-size: .88rem; margin-bottom: 14px; }

.spots { margin-top: 30px; }
.spots-bar {
  height: 10px;
  border-radius: 999px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  overflow: hidden;
}
.spots-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--red-dark), var(--red));
  border-radius: 999px;
}
.spots p {
  margin-top: 10px;
  font-family: var(--head);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .82rem;
  color: var(--muted);
}
.spots strong { color: #fff; font-size: 1rem; }

html, body { overflow-x: hidden; }

/* ---------- page load / transitions ---------- */

@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }
body { animation: pageIn .45s ease both; }
body.leaving { opacity: 0; transition: opacity .22s ease; }

.loader {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: var(--bg-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  transition: transform .35s cubic-bezier(.7, 0, .2, 1);
}
.loader img { height: 52px; width: auto; }
.loader-bar {
  width: 130px;
  height: 2px;
  background: var(--line);
  overflow: hidden;
  border-radius: 2px;
}
.loader-bar::after {
  content: "";
  display: block;
  height: 100%;
  background: var(--red);
  animation: loadfill .5s ease-out forwards;
}
@keyframes loadfill { from { width: 0; } to { width: 100%; } }
.loader.done { transform: translateY(-101%); }
/* if scripts never run, the curtain must not hold the site hostage */
.loader { animation: loaderBail 0s 2s forwards; }
@keyframes loaderBail { to { visibility: hidden; opacity: 0; } }
html.no-loader .loader { display: none; }

/* arriving under the red wipe: the loader IS the curtain, in brand red */
html.wiped body { animation: none; }
html.wiped .loader { display: flex; background: var(--red); }
html.wiped .loader::before, html.wiped .loader::after { background: var(--red) !important; }
html.wiped .loader.done::before { border-bottom-color: #fff !important; }
html.wiped .loader.done::after { border-top-color: #fff !important; }
html.wiped .loader .loader-bar { background: rgba(255, 255, 255, .3); }
html.wiped .loader .loader-bar::after { background: #fff; }

/* ---------- scroll progress ---------- */

#progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 0;
  background: var(--red);
  z-index: 350;
  pointer-events: none;
}

/* ---------- custom cursor ---------- */

#cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  border: 1.5px solid rgba(255, 255, 255, .55);
  border-radius: 50%;
  pointer-events: none;
  z-index: 510;
  transform: translate(-50%, -50%);
  transition: width .22s, height .22s, border-color .22s, opacity .3s;
  opacity: 0;
}
#cursor.on { opacity: 1; }
#cursor.hot { width: 52px; height: 52px; border-color: var(--red); }
@media (pointer: coarse) { #cursor { display: none; } }

/* ---------- hero headline letters ---------- */

.display .ch {
  display: inline-block;
  animation: chIn .55s cubic-bezier(.2, .7, .2, 1) both;
  animation-delay: calc(.25s + var(--i) * .035s);
  white-space: pre;
}
@keyframes chIn {
  from { opacity: 0; transform: translateY(.55em) rotate(4deg); }
  to { opacity: 1; transform: none; }
}

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

.hero .hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: .09;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  pointer-events: none;
}

/* ---------- tilted marquee ---------- */

.marquee { transform: rotate(-1.2deg) scale(1.04); }

/* ---------- photo reveals ---------- */

.split .photo.reveal img, .gallery figure.reveal img {
  clip-path: inset(12% 12% 12% 12%);
  transform: scale(1.12);
  transition: clip-path .9s cubic-bezier(.2, .7, .2, 1), transform 1.1s cubic-bezier(.2, .7, .2, 1);
}
.split .photo.reveal.in img, .gallery figure.reveal.in img {
  clip-path: inset(0 0 0 0);
  transform: scale(1);
}
.gallery figure.reveal:hover img { transform: scale(1.04); }

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

.site-footer { overflow: hidden; }
.footer-word {
  text-align: center;
  font-family: var(--head);
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  line-height: .9;
  font-size: clamp(3rem, 10vw, 8.5rem);
  letter-spacing: .01em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .1);
  user-select: none;
  pointer-events: none;
  margin: -10px 0 34px;
  white-space: nowrap;
}
.footer-word b { color: rgba(196, 32, 42, .28); -webkit-text-stroke: 0; font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
  body, .display .ch, .loader-bar::after { animation: none; }
  .loader { display: none; }
  .split .photo.reveal img, .gallery figure.reveal img { clip-path: none; transform: none; transition: none; }
  .marquee { transform: none; }
  #cursor { display: none; }
}

/* ---------- skip link ---------- */

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 300;
  background: var(--red);
  color: #fff;
  padding: 10px 18px;
  font-family: var(--head);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .8rem;
}
.skip:focus { left: 0; }

/* ---------- getting started steps ---------- */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 880px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
}
.step b {
  display: inline-block;
  font-family: var(--head);
  font-weight: 700;
  font-style: italic;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--red);
  margin-bottom: 12px;
}
.step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .95rem; }

/* ---------- FAQ ---------- */

.faq { max-width: 820px; }
.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 10px;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 20px;
  font-family: var(--head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .95rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--head);
  font-size: 1.3rem;
  color: var(--red);
  line-height: 1;
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq details p { padding: 14px 20px 18px; color: var(--muted); font-size: .96rem; }

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

@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.07); } }
.hero .hero-bg { animation: kenburns 16s ease-out forwards; transform-origin: 60% 40%; }

@keyframes rise {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}
.hero .kicker  { animation: rise .7s .15s cubic-bezier(.2,.7,.2,1) both; }
.hero .display { animation: rise .8s .3s  cubic-bezier(.2,.7,.2,1) both; }
.hero-sub      { animation: rise .8s .5s  cubic-bezier(.2,.7,.2,1) both; }
.hero-ctas     { animation: rise .8s .65s cubic-bezier(.2,.7,.2,1) both; }
.hero-stats    { animation: rise .8s .8s  cubic-bezier(.2,.7,.2,1) both; }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 36px 52px;
  margin-top: 44px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, .16);
}
.hero-stats b {
  display: block;
  font-family: var(--head);
  font-weight: 700;
  font-size: 2.3rem;
  line-height: 1;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.hero-stats b em { color: var(--red); font-style: normal; }
.hero-stats span {
  display: block;
  margin-top: 6px;
  font-family: var(--head);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .72rem;
  color: var(--muted);
}

/* ---------- marquee ticker ---------- */

.marquee {
  overflow: hidden;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 46px;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee-track span {
  font-family: var(--head);
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 1.5rem;
  color: #fff;
  white-space: nowrap;
}
.marquee-track span.o {
  color: #fff;
}
.marquee-track i {
  font-style: normal;
  color: var(--red);
  font-size: 1rem;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- ghost background words ---------- */

.section, .band { position: relative; overflow: hidden; }
.bg-word {
  position: absolute;
  top: 22px;
  right: -8px;
  z-index: 0;
  font-family: var(--head);
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  line-height: 1;
  font-size: clamp(4rem, 11vw, 9.5rem);
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .07);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}
.section > .wrap, .band > .wrap { position: relative; z-index: 1; }

/* ---------- micro-interactions ---------- */

.tile::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
  z-index: 1;
}
.tile:hover::before { transform: scaleX(1); }
.tile-label span::after { content: " \2192"; opacity: 0; transition: opacity .2s; }
.tile:hover .tile-label span::after { opacity: 1; }

.coach-media .main { position: relative; }
.coach-media .main img.alt {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .45s ease;
}
.coach-media .main:hover img.alt,
.coach-media .main:focus-visible img.alt { opacity: 1; }

.gallery img, .coach-media img, .split .photo img { cursor: zoom-in; }

/* ---------- timetable "today" ---------- */

.day.today { border-color: var(--red); box-shadow: 0 0 0 1px var(--red); }
.day.today h4 { display: flex; justify-content: space-between; align-items: center; }
.day.today h4::after {
  content: "Today";
  font-size: .62rem;
  letter-spacing: .14em;
  color: var(--red);
  border: 1px solid var(--red);
  border-radius: 999px;
  padding: 1px 9px;
}

/* ---------- founding counter shimmer ---------- */

@keyframes shimmer {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.4); }
}
.spots-fill { animation: shimmer 2.6s ease-in-out infinite; }

/* ---------- lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 360;
  background: rgba(15, 15, 16, .94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  cursor: zoom-out;
}
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
  box-shadow: 0 20px 80px rgba(0, 0, 0, .6);
}

@media (prefers-reduced-motion: reduce) {
  .hero .hero-bg, .hero .kicker, .hero .display, .hero-sub, .hero-ctas,
  .hero-stats, .marquee-track, .spots-fill { animation: none; }
}

/* ---------- phone-size tuning ---------- */

@media (max-width: 640px) {
  .hero { min-height: 94svh; }
  .hero .hero-bg {
    background-image: url(../assets/img/muaythai-bags.jpg);
    background-position: center 52%;
  }
  .hero-inner { padding-top: 92px; padding-bottom: 40px; }
  .hero .kicker { font-size: .74rem; letter-spacing: .14em; gap: 10px; }
  .hero .kicker::before { width: 22px; }
  .display { font-size: clamp(2.5rem, 12.5vw, 3.4rem); }
  .hero-sub { font-size: 1rem; margin: 14px 0 22px; }
  .hero-ctas .btn { padding: 12px 20px; font-size: .8rem; }
  .hero-stats {
    gap: 18px 26px;
    margin-top: 28px;
    padding-top: 18px;
  }
  .hero-stats b { font-size: 1.65rem; }
  .hero-stats span { font-size: .72rem; letter-spacing: .1em; margin-top: 4px; }

  .announce { font-size: .74rem; letter-spacing: .06em; padding: 12px 14px; }
  .section { padding: 58px 0; }
  .section-head { margin-bottom: 30px; }
  h2.section-title { font-size: 1.65rem; }
  .kicker { font-size: .75rem; letter-spacing: .16em; }
  .bg-word { font-size: 17vw; top: 14px; }

  .marquee { padding: 12px 0; }
  .marquee-track { gap: 30px; }
  .marquee-track span { font-size: 1.05rem; }
  .marquee-track i { font-size: .8rem; }

  .page-hero { padding: 70px 0 44px; }
  .coach { padding: 40px 0; }
  .coach h3 { font-size: 1.5rem; }
  .founding { padding: 26px 20px 22px; }
  .fprice .price { font-size: 1.8rem; }
  .plan .price { font-size: 2.1rem; }
  .footer-word { font-size: 13vw; margin: -4px 0 24px; }
  .site-footer { padding-top: 44px; }
  .steps .step, .card { padding: 22px 20px; }
}

/* ---------- reveal animation ---------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
/* build 7ca5f01 */

/* ============================================================
   IMMERSION LAYER
   Everything below is scoped to html.immersive, a class the
   engine in main.js adds once it boots. No JS = the original
   site, untouched. prefers-reduced-motion = engine never boots.
   ============================================================ */

:root {
  --vel: 0;      /* scroll velocity, roughly -1 .. 1 */
  --px: 0;       /* pointer x from centre, -1 .. 1  */
  --py: 0;       /* pointer y from centre, -1 .. 1  */
}

/* ---------- 1. the room: hero atmosphere ---------- */

.immersive .hero { perspective: 1200px; }
.immersive .hero .wrap { position: relative; z-index: 2; }

/* the engine drives the hero background for everyone (compositor-only) */
.immersive .hero .hero-bg,
.immersive .page-hero .hero-bg { animation: none; will-change: transform; }

.hero-atmos {
  position: absolute;
  inset: -6%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* light falling through the roof lights */
.hero-atmos .beam {
  position: absolute;
  top: -40%;
  width: 42%;
  height: 190%;
  background: linear-gradient(100deg, rgba(255, 252, 240, 0) 0%, rgba(255, 252, 240, .055) 26%,
              rgba(255, 252, 240, .075) 50%, rgba(255, 252, 240, .04) 72%, rgba(255, 252, 240, 0) 100%);
  transform-origin: top center;
}
.hero-atmos .b1 { left: 4%;  animation: beamDrift 19s ease-in-out infinite; }
.hero-atmos .b2 { left: 46%; animation: beamDrift 25s ease-in-out -8s infinite reverse; }
@keyframes beamDrift {
  0%, 100% { opacity: .5;  transform: rotate(13deg) translateX(0); }
  50%      { opacity: .95; transform: rotate(16deg) translateX(26px); }
}

/* dust in the light */
.hero-atmos .dust { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .75; }

/* the lens */
.hero-atmos .vig {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 85% at 50% 42%, rgba(0, 0, 0, 0) 42%, rgba(0, 0, 0, .34) 78%, rgba(0, 0, 0, .62) 100%);
}

/* ---------- 2. arrival: the doors open ---------- */

.immersive .loader {
  gap: 26px;
  transition: none;
  background: #141415;
}
.immersive .loader img {
  animation: loaderBreathe 2.2s ease-in-out infinite;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .7));
}
@keyframes loaderBreathe {
  0%, 100% { transform: scale(1);    opacity: .92; }
  50%      { transform: scale(1.045); opacity: 1; }
}
/* split the curtain: two halves pull apart on a red seam */
.immersive .loader::before,
.immersive .loader::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  height: 51%;
  background: #141415;
  z-index: -1;
  transition: transform .72s cubic-bezier(.76, 0, .18, 1);
}
.immersive .loader::before { top: 0;    border-bottom: 2px solid transparent; }
.immersive .loader::after  { bottom: 0; border-top: 2px solid transparent; }
.immersive .loader.done {
  transform: none;
  background: transparent;
  pointer-events: none;
}
.immersive .loader.done img,
.immersive .loader.done .loader-bar { opacity: 0; transition: opacity .18s ease; }
.immersive .loader.done::before { transform: translateY(-101%); border-bottom-color: var(--red); }
.immersive .loader.done::after  { transform: translateY(101%);  border-top-color: var(--red); }

/* the whole page settles out of a push-in as the doors part */
.immersive.booting body > main,
.immersive.booting .site-header { animation: cameraSettle 1.5s cubic-bezier(.16, .84, .24, 1) both; }
@keyframes cameraSettle {
  from { transform: scale(1.055); opacity: .4; }
  to   { transform: none; opacity: 1; }
}

/* headline letters arrive with real depth */
.immersive .display .ch {
  animation-name: chDepth;
  animation-duration: .78s;
  animation-timing-function: cubic-bezier(.16, .9, .24, 1);
}
@keyframes chDepth {
  from { opacity: 0; transform: translateY(.5em) translateZ(-160px) rotateX(-62deg); filter: blur(5px); }
  to   { opacity: 1; transform: none; filter: none; }
}
.immersive .hero .display { perspective: 700px; }
.immersive .hero .display .accent .ch { animation-name: chDepthRed; }
@keyframes chDepthRed {
  from { opacity: 0; transform: translateY(.5em) translateZ(-160px) rotateX(-62deg); filter: blur(5px); text-shadow: 0 0 34px var(--red); }
  70%  { text-shadow: 0 0 26px rgba(217, 39, 48, .75); }
  to   { opacity: 1; transform: none; filter: none; text-shadow: none; }
}
/* phones skip the per-letter blur — depth + fade only */
@media (pointer: coarse) {
  @keyframes chDepth {
    from { opacity: 0; transform: translateY(.5em) translateZ(-160px) rotateX(-62deg); }
    to   { opacity: 1; transform: none; }
  }
  @keyframes chDepthRed {
    from { opacity: 0; transform: translateY(.5em) translateZ(-160px) rotateX(-62deg); text-shadow: 0 0 34px var(--red); }
    70%  { text-shadow: 0 0 26px rgba(217, 39, 48, .75); }
    to   { opacity: 1; transform: none; text-shadow: none; }
  }
}

/* ---------- 3. the camera: scroll ---------- */

/* reveals come out of depth, not just up */
@media (min-width: 900px) {
  .immersive .reveal {
    opacity: 0;
    transform: translateY(34px) scale(.978);
    transition: opacity .8s cubic-bezier(.2, .75, .2, 1), transform .8s cubic-bezier(.2, .75, .2, 1);
  }
  .immersive .reveal.in { opacity: 1; transform: none; }
}

/* section titles land like a punch, with a red line whipping under */
.immersive .section-head.in .section-title,
.immersive .reveal.in > .section-title {
  animation: titlePunch .62s cubic-bezier(.18, .9, .22, 1) both;
}
@keyframes titlePunch {
  0%   { opacity: 0; transform: translateY(20px) scale(1.06); letter-spacing: .04em; }
  55%  { opacity: 1; transform: translateY(0) scale(.995); }
  100% { opacity: 1; transform: none; letter-spacing: inherit; }
}
.immersive .section-head { position: relative; }
.immersive .reveal > .section-title { position: relative; }
.immersive .reveal.in > .section-title::after,
.immersive .section-head.in .section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -12px;
  height: 3px;
  width: 92px;
  background: var(--red);
  transform-origin: left center;
  animation: whip .55s .3s cubic-bezier(.2, .8, .2, 1) both;
  box-shadow: 0 0 18px rgba(217, 39, 48, .6);
}
.immersive .section-head[style*="center"] .section-title::after,
.immersive .band .section-title::after { left: calc(50% - 46px); transform-origin: center; }
@keyframes whip { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- 4. pointer light ---------- */

#spotlight {
  position: fixed;
  top: 0;
  left: 0;
  width: 620px;
  height: 620px;
  margin: -310px 0 0 -310px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 3;
  opacity: 0;
  /* deliberately NOT mix-blend-mode: a blend here forces the browser to
     re-composite the whole page on every scrolled frame (measured: 60fps -> 28fps).
     On a dark ground, plain alpha reads the same. */
  background: radial-gradient(circle closest-side, rgba(255, 246, 240, .085) 0%, rgba(217, 39, 48, .055) 42%, rgba(0, 0, 0, 0) 72%);
  transition: opacity .5s ease;
  will-change: transform;
}
#spotlight.on { opacity: 1; }
@media (pointer: coarse) { #spotlight { display: none; } }

/* cursor gets a soft core so it reads as a light source */
.immersive #cursor {
  box-shadow: 0 0 22px rgba(255, 255, 255, .18), inset 0 0 12px rgba(255, 255, 255, .12);
  transition: width .28s cubic-bezier(.2, .8, .2, 1), height .28s cubic-bezier(.2, .8, .2, 1),
              border-color .28s ease, background-color .28s ease, opacity .3s ease;
}
.immersive #cursor.hot {
  background: rgba(217, 39, 48, .13);
  box-shadow: 0 0 34px rgba(217, 39, 48, .45), inset 0 0 16px rgba(217, 39, 48, .25);
}

/* ---------- 5. tiles with volume ---------- */

.immersive .tile-grid { perspective: 1400px; }
.immersive .tile {
  transform-style: preserve-3d;
  transition: box-shadow .5s ease;
}
.rich .tile { will-change: transform; }
.immersive .tile img { transition: filter .5s ease; }
.immersive .tile:hover {
  box-shadow: 0 40px 90px rgba(0, 0, 0, .55), 0 0 0 1px rgba(217, 39, 48, .35);
  z-index: 3;
}
.immersive .tile:hover img { filter: saturate(1.12) contrast(1.05); }
.immersive .tile-label { transform: translateZ(38px); transition: transform .5s cubic-bezier(.2, .8, .2, 1); }

/* a specular pass sweeps the glass as you move over it */
.immersive .tile .sheen {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity .4s ease;
  /* plain alpha, no blend mode — measured: blends tank the raster thread */
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 62%);
}
.immersive .tile:hover .sheen { opacity: 1; }

/* corner brackets draw themselves on approach */
.immersive .tile .brk {
  position: absolute;
  width: 26px;
  height: 26px;
  border: 0 solid var(--red);
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  transition: opacity .35s ease, transform .45s cubic-bezier(.2, .8, .2, 1);
}
.immersive .tile .brk.tl { top: 14px;    left: 14px;  border-top-width: 3px;    border-left-width: 3px;  transform: translate(-8px, -8px); }
.immersive .tile .brk.br { bottom: 14px; right: 14px; border-bottom-width: 3px; border-right-width: 3px; transform: translate(8px, 8px); }
.immersive .tile:hover .brk { opacity: 1; transform: translate(0, 0); }

/* cards and plans get a lighter version of the same physics */
.immersive .card-grid, .immersive .price-grid, .immersive .steps { perspective: 1600px; }
.immersive .card, .immersive .plan, .immersive .step {
  transition: box-shadow .55s ease;
}

/* ---------- 6. live now ---------- */

.live-now {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
  padding: 11px 20px 11px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(18, 18, 19, .82);
  text-decoration: none;
  color: var(--text);
  font-size: .92rem;
  line-height: 1.2;
  transition: border-color .3s ease, background-color .3s ease, transform .3s cubic-bezier(.2, .8, .2, 1);
  animation: rise .8s .95s cubic-bezier(.2, .7, .2, 1) both;
}
.live-now:hover { border-color: var(--red); background: rgba(28, 20, 21, .72); transform: translateY(-2px); }
.live-now .dot {
  position: relative;
  width: 9px;
  height: 9px;
  flex: none;
  border-radius: 50%;
  background: var(--muted);
}
.live-now .dot::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid currentColor;
  opacity: 0;
}
.live-now.is-live .dot { background: var(--red); color: var(--red); }
.live-now.is-live .dot::after { animation: ping 1.9s cubic-bezier(.2, .7, .2, 1) infinite; }
.live-now.is-open .dot { background: #fff; }
@keyframes ping {
  0%   { opacity: .85; transform: scale(.7); }
  70%  { opacity: 0;   transform: scale(2.1); }
  100% { opacity: 0;   transform: scale(2.1); }
}
.live-now b {
  font-family: var(--head);
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .8rem;
  color: #fff;
}
.live-now.is-live b { color: var(--red); }
.live-now span.txt { color: var(--muted); }
.live-now .sep { color: var(--line); }
@media (max-width: 560px) {
  .live-now { font-size: .84rem; padding: 10px 16px 10px 13px; gap: 9px; }
  .live-now b { font-size: .74rem; }
}

/* ---------- 7. time of day ---------- */

.immersive :is(.hero, .page-hero) .hero-bg::after { transition: background 1.6s ease; }
.immersive.tod-dawn  :is(.hero, .page-hero) .hero-bg::after { background: linear-gradient(180deg, rgba(46, 44, 42, .40) 0%, rgba(44, 43, 44, .52) 45%, rgba(49, 49, 49, .97) 100%); }
.immersive.tod-day   .hero .hero-bg::after { background: linear-gradient(180deg, rgba(41, 41, 42, .40) 0%, rgba(41, 41, 42, .52) 45%, rgba(49, 49, 49, .97) 100%); }
.immersive.tod-dusk  :is(.hero, .page-hero) .hero-bg::after { background: linear-gradient(180deg, rgba(48, 36, 36, .48) 0%, rgba(44, 39, 40, .58) 45%, rgba(49, 49, 49, .97) 100%); }
.immersive.tod-night :is(.hero, .page-hero) .hero-bg::after { background: linear-gradient(180deg, rgba(28, 30, 36, .58) 0%, rgba(33, 33, 36, .64) 45%, rgba(49, 49, 49, .97) 100%); }
.immersive.tod-dusk  .hero-atmos .beam { background: linear-gradient(180deg, rgba(255, 226, 214, .10) 0%, rgba(255, 226, 214, .034) 45%, rgba(255, 226, 214, 0) 78%); }
.immersive.tod-night .hero-atmos { opacity: .55; }

/* ---------- 8. header condenses ---------- */

.immersive .site-header { transition: background-color .4s ease, box-shadow .4s ease; }
.immersive .site-header.condensed {
  background: rgba(18, 18, 19, .94);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .45);
}
.immersive .site-header.condensed .nav { padding-top: 8px; padding-bottom: 8px; transition: padding .35s ease; }

/* ---------- 9. exit wipe ---------- */

#wipe {
  position: fixed;
  inset: 0;
  z-index: 500;
  pointer-events: none;
  transform: translateY(101%);
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
}
#wipe { flex-direction: column; gap: 22px; }
#wipe.go { animation: wipeUp .5s cubic-bezier(.76, 0, .24, 1) forwards; }
#wipe .wbar { width: 130px; height: 2px; border-radius: 2px; overflow: hidden;
  background: rgba(255, 255, 255, .3); opacity: 0; }
#wipe.go .wbar { opacity: 1; transition: opacity .2s ease .18s; }
#wipe .wbar::after { content: ""; display: block; height: 100%; width: 40%;
  background: #fff; animation: wipeScan .9s ease-in-out infinite; }
@keyframes wipeScan { from { transform: translateX(-110%); } to { transform: translateX(360%); } }
@keyframes wipeUp { to { transform: translateY(0); } }
#wipe img { height: 46px; opacity: 0; }
#wipe.go img { animation: wipeMark .5s .12s ease forwards; }
@keyframes wipeMark { to { opacity: .9; } }
.immersive body.leaving { opacity: 1; transition: none; }

/* ---------- 10. sound toggle ---------- */

#sound {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 260;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(18, 18, 19, .88);
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 0;
  transition: border-color .3s ease, color .3s ease, transform .3s cubic-bezier(.2, .8, .2, 1);
}
#sound:hover { border-color: var(--red); color: #fff; transform: translateY(-2px); }
#sound i {
  display: block;
  width: 2px;
  height: 17px;
  transform: scaleY(.35);
  transform-origin: center bottom;
  background: currentColor;
  border-radius: 2px;
  transition: transform .25s ease;
}
#sound.on { color: #fff; border-color: var(--red); }
#sound.on i { animation: eq 1.1s ease-in-out infinite; }
#sound.on i:nth-child(2) { animation-delay: .16s; }
#sound.on i:nth-child(3) { animation-delay: .32s; }
@keyframes eq { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }
#sound:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.btn:focus-visible, .tab-btn:focus-visible, .nav-links a:focus-visible,
.burger:focus-visible, .announce:focus-visible, .faq summary:focus-visible,
.footer-bottom nav a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (max-width: 560px) { #sound { right: 12px; bottom: 12px; width: 42px; height: 42px; } }

/* ---------- 11. stat impact ---------- */

.immersive .hero-stats b.landed { animation: statHit .42s cubic-bezier(.2, .8, .2, 1); }
@keyframes statHit {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.14); text-shadow: 0 0 26px rgba(217, 39, 48, .7); }
  100% { transform: scale(1); }
}

/* ---------- safety ---------- */

@media (prefers-reduced-motion: reduce) {
  .hero-atmos, #spotlight, #wipe, #sound { display: none !important; }
}

/* ---------- 12. the ticker lurches with the scroll ---------- */

.immersive .bg-word, .immersive .band .hero-bg { will-change: transform; }

/* ---------- 13. inner pages get the same room ---------- */

.immersive .page-hero { perspective: 1200px; }
.immersive .page-hero .wrap { position: relative; z-index: 2; }
.immersive .page-hero .hero-bg { will-change: transform; }
.immersive .page-hero .hero-atmos .vig {
  background: radial-gradient(120% 90% at 50% 40%, rgba(0,0,0,0) 46%, rgba(0,0,0,.30) 80%, rgba(0,0,0,.55) 100%);
}
.immersive .page-hero .live-now { margin-top: 22px; }

/* ---------- 14. scroll cue ---------- */

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 3;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  pointer-events: none;
  font-family: var(--head);
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: .3em;
  text-indent: .3em;
  font-size: .64rem;
  color: rgba(255, 255, 255, .5);
  animation: rise .9s 1.4s cubic-bezier(.2, .7, .2, 1) both;
}
.scroll-cue .rail {
  width: 1px;
  height: 46px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .32), rgba(255, 255, 255, 0));
  position: relative;
  overflow: hidden;
}
.scroll-cue .rail::after {
  content: "";
  position: absolute;
  left: 0;
  top: -14px;
  width: 1px;
  height: 14px;
  background: var(--red);
  box-shadow: 0 0 10px var(--red);
  animation: cueDrop 2.1s cubic-bezier(.6, 0, .3, 1) infinite;
}
@keyframes cueDrop {
  0%   { transform: translateY(0);    opacity: 0; }
  25%  { opacity: 1; }
  100% { transform: translateY(60px); opacity: 0; }
}
@media (max-width: 640px) { .scroll-cue { display: none; } }
.immersive .spots-fill { transition: width 1.5s cubic-bezier(.2, .85, .2, 1); }


/* ---------- 15. touch focus: what's under your eyes comes forward ---------- */

@media (pointer: coarse) {
  .immersive .tile, .immersive .card, .immersive .plan {
    transition: transform .6s cubic-bezier(.2, .8, .2, 1), box-shadow .6s ease, border-color .6s ease;
  }
  .immersive .tile.focus, .immersive .card.focus, .immersive .plan.focus {
    transform: scale(1.03);
    border-color: rgba(217, 39, 48, .55);
    box-shadow: 0 26px 60px rgba(0, 0, 0, .5);
    z-index: 2;
  }
  .immersive .tile.focus img { transform: scale(1.08); filter: saturate(1.1); }
  .immersive .tile .brk { opacity: 0; transition: opacity .4s ease, transform .5s cubic-bezier(.2, .8, .2, 1); }
  .immersive .tile.focus .brk { opacity: 1; transform: translate(0, 0); }
}

/* ---------- 16. the film look, everywhere ---------- */

.immersive .film {
  position: fixed;
  inset: 0;
  z-index: 320;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

.immersive #progress {
  box-shadow: 0 0 12px rgba(217, 39, 48, .8), 0 0 3px rgba(217, 39, 48, 1);
}

/* today ticker: times pop in white, classes in the dark ink */
.immersive .marquee-track span { white-space: nowrap; }

/* ---------- 17. punch the screen ---------- */

.pow {
  position: fixed;
  z-index: 340;
  width: 190px;
  height: 190px;
  margin: -95px 0 0 -95px;
  border: 3px solid rgba(217, 39, 48, .85);
  border-radius: 50%;
  pointer-events: none;
  transform: scale(0);
  animation: pow .45s cubic-bezier(.2, .8, .3, 1) forwards;
}
.pow::after {
  content: "";
  position: absolute;
  inset: 30%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .5), rgba(217, 39, 48, 0) 70%);
}
@keyframes pow {
  0%   { transform: scale(0);   opacity: 1; }
  100% { transform: scale(1.1); opacity: 0; }
}
main.jolt { animation: jolt .16s linear; }
@keyframes jolt {
  0%, 100% { transform: translate(0, 0); }
  30% { transform: translate(-5px, 3px); }
  60% { transform: translate(4px, -2px); }
}

/* ---------- 18. the fist ---------- */

.immersive #cursor .glove {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  transform: rotate(-24deg);
  transition: transform .18s cubic-bezier(.2, .8, .2, 1), font-size .18s ease;
}
.immersive #cursor.hot .glove { font-size: 24px; }
.immersive #cursor.jab .glove { animation: jab .22s cubic-bezier(.2, .9, .2, 1); }
@keyframes jab {
  0%   { transform: rotate(-24deg) scale(1); }
  35%  { transform: rotate(-42deg) scale(.62); }
  100% { transform: rotate(-24deg) scale(1); }
}
#combo {
  position: fixed;
  z-index: 341;
  pointer-events: none;
  font-family: var(--head);
  font-style: italic;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1.35rem;
  letter-spacing: .06em;
  color: var(--red);
  text-shadow: 0 2px 12px rgba(0, 0, 0, .8);
  opacity: 0;
  transform: translate(-50%, -120%);
}
#combo.hit { animation: comboPop .8s cubic-bezier(.2, .8, .2, 1) forwards; }
@keyframes comboPop {
  0%   { opacity: 0; transform: translate(-50%, -110%) scale(.6) rotate(-6deg); }
  25%  { opacity: 1; transform: translate(-50%, -150%) scale(1.15) rotate(-3deg); }
  70%  { opacity: 1; transform: translate(-50%, -175%) scale(1) rotate(-3deg); }
  100% { opacity: 0; transform: translate(-50%, -215%) scale(.95) rotate(-3deg); }
}

/* ---------- 19. the bag ---------- */

.bagzone { overflow: hidden; }
.bag-stage {
  position: relative;
  height: 560px;
  max-width: 720px;
  margin: 0 auto;
  touch-action: pan-y;
}
.bag-rig { position: absolute; inset: 0; display: flex; justify-content: center; }
.bag-beam {
  position: absolute;
  top: 0;
  left: 6%;
  right: 6%;
  height: 16px;
  background: linear-gradient(180deg, #454547, #2c2c2d);
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .5);
}
.bag-swing {
  position: absolute;
  top: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform-origin: top center;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  will-change: transform;
}
.bag-chain {
  width: 10px;
  height: 120px;
  background:
    repeating-linear-gradient(180deg, #6a6a6e 0 10px, #3d3d3f 10px 14px, #55555a 14px 24px);
  border-radius: 5px;
  box-shadow: inset 2px 0 3px rgba(255, 255, 255, .18), inset -2px 0 4px rgba(0, 0, 0, .5);
}
.bag-body {
  position: relative;
  width: 148px;
  height: 330px;
  border-radius: 72px 72px 58px 58px / 54px 54px 44px 44px;
  background:
    radial-gradient(120% 60% at 32% 18%, rgba(255, 255, 255, .14), rgba(255, 255, 255, 0) 55%),
    linear-gradient(100deg, #232324 0%, #303032 45%, #1a1a1b 100%);
  border: 1px solid #454547;
  box-shadow: 0 40px 60px rgba(0, 0, 0, .55), inset 0 -26px 40px rgba(0, 0, 0, .5);
  overflow: hidden;
}
.bag-cap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 58px;
  background: linear-gradient(180deg, var(--red) 0%, #8f151d 100%);
  border-bottom: 3px solid #121213;
}
.bag-cap::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 10px;
  height: 3px;
  background: rgba(0, 0, 0, .35);
  border-radius: 2px;
}
.bag-brand {
  position: absolute;
  top: 54%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(90deg);
  font-family: var(--head);
  font-style: italic;
  font-weight: 700;
  font-size: 3.2rem;
  letter-spacing: .3em;
  color: rgba(255, 255, 255, .82);
  text-shadow: 0 2px 8px rgba(0, 0, 0, .6);
}
.bag-shine {
  position: absolute;
  top: 12%;
  bottom: 8%;
  left: 16%;
  width: 14px;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .02));
  filter: blur(2px);
}
.bag-hud {
  position: absolute;
  right: 8px;
  top: 14px;
  text-align: center;
  font-family: var(--head);
  font-style: italic;
  font-weight: 700;
  text-transform: uppercase;
}
.bag-hud b {
  display: block;
  font-size: 3rem;
  line-height: 1;
  color: var(--red);
  font-variant-numeric: tabular-nums;
}
.bag-hud b.bump { animation: statHit .3s cubic-bezier(.2, .8, .2, 1); }
.bag-hud span { font-size: .78rem; letter-spacing: .3em; color: var(--muted); }
.bag-prize {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  width: min(92%, 430px);
  text-align: center;
  background: rgba(24, 24, 25, .96);
  border: 1px solid var(--red);
  border-radius: var(--radius);
  padding: 22px 24px 26px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 40px rgba(217, 39, 48, .25);
  z-index: 4;
}
.bag-prize[hidden] { display: none; }
.bag-prize h3 { font-size: 1.5rem; margin-bottom: 6px; }
.bag-prize p { color: var(--muted); font-size: .95rem; margin-bottom: 14px; }
.immersive .bag-prize.show { animation: slamCard .5s cubic-bezier(.2, .9, .2, 1) both; }
@keyframes slamCard {
  from { opacity: 0; transform: translateX(-50%) scale(1.5); filter: blur(8px); }
  to   { opacity: 1; transform: translateX(-50%) scale(1); filter: none; }
}
@media (max-width: 640px) {
  .bag-stage { height: 470px; }
  .bag-chain { height: 95px; }
  .bag-body { width: 126px; height: 285px; }
  .bag-hud b { font-size: 2.4rem; }
}

/* ---------- 20. stats that punch in ---------- */

.stat-dust {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red);
  pointer-events: none;
  animation: dustFly .55s ease-out forwards;
}
@keyframes dustFly {
  from { opacity: .9; transform: translate(0, 0) scale(1); }
  to   { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(.3); }
}
.hero-stats .stat { position: relative; }

/* ---------- 21. the gym pulse ---------- */

.live-now .pulse {
  width: 52px;
  height: 14px;
  flex: none;
  display: block;
}
@media (max-width: 560px) { .live-now .pulse { width: 42px; } }

/* ---------- 22. the building runs on gym time ---------- */

.immersive.gym-shut .hero .hero-bg { filter: brightness(.66) saturate(.85); }
.immersive.gym-shut .hero-atmos { opacity: .35; }
.immersive.gym-open.booting .hero .hero-bg { animation: lightsOn 1.15s steps(1, end) both; }
@keyframes lightsOn {
  0%   { filter: brightness(.12); }
  18%  { filter: brightness(.85); }
  26%  { filter: brightness(.2); }
  38%  { filter: brightness(.95); }
  46%  { filter: brightness(.35); }
  60%  { filter: brightness(1.05); }
  100% { filter: brightness(1); }
}

/* ---------- 23. FIGHT MODE ---------- */

#fightmode {
  position: fixed;
  inset: 0;
  z-index: 380;
  overflow: hidden;
  background: rgba(12, 12, 13, .55);
  animation: fmIn .3s ease both;
  transition: opacity .6s ease;
}
#fightmode.out { opacity: 0; pointer-events: none; }
@keyframes fmIn { from { opacity: 0; } to { opacity: 1; } }
#fightmode .fm-flash {
  position: absolute;
  inset: 0;
  background: var(--red-hot);
  animation: fmFlash .5s ease-out both;
}
@keyframes fmFlash { 0% { opacity: .85; } 100% { opacity: 0; } }
#fightmode .fm-tape {
  position: absolute;
  left: -30%;
  right: -30%;
  padding: 14px 0;
  background: var(--red);
  color: #fff;
  font-family: var(--head);
  font-style: italic;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1.2rem;
  letter-spacing: .2em;
  white-space: nowrap;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .5);
}
#fightmode .fm-tape span { display: inline-block; animation: fmSlide 9s linear infinite; }
@keyframes fmSlide { to { transform: translateX(-33%); } }
#fightmode .fm-t1 { top: 16%; transform: rotate(-7deg); animation: fmTape1 .5s .1s cubic-bezier(.2, .9, .2, 1) both; }
#fightmode .fm-t2 { bottom: 17%; transform: rotate(5deg); animation: fmTape2 .5s .2s cubic-bezier(.2, .9, .2, 1) both; }
#fightmode .fm-t2 span { animation-direction: reverse; }
@keyframes fmTape1 { from { transform: rotate(-7deg) translateX(-110%); } to { transform: rotate(-7deg) translateX(0); } }
@keyframes fmTape2 { from { transform: rotate(5deg) translateX(110%); } to { transform: rotate(5deg) translateX(0); } }
#fightmode .fm-card {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(92%, 440px);
  text-align: center;
  background: rgba(20, 20, 21, .97);
  border: 1px solid var(--red);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, .7), 0 0 60px rgba(217, 39, 48, .35);
  animation: fmCard .55s .35s cubic-bezier(.2, .9, .2, 1) both;
}
@keyframes fmCard {
  from { opacity: 0; transform: translate(-50%, -50%) scale(1.6); filter: blur(10px); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1); filter: none; }
}
#fightmode .fm-card h3 {
  font-size: 1.9rem;
  font-style: italic;
  margin-bottom: 10px;
}
#fightmode .fm-card h3 b { color: var(--red); }
#fightmode .fm-card p { color: var(--muted); font-size: .98rem; margin-bottom: 18px; }
#fightmode .fm-card p b { color: #fff; }

/* ---------- 24. touch press feedback ---------- */
@media (pointer: coarse) {
  .immersive .btn,
  .immersive .tab-btn { transition: background .15s, border-color .15s, transform .14s ease; }
  .immersive .btn:active,
  .immersive .tab-btn:active { transform: scale(.955); }
  /* press never shrinks the auto-focused tile below its resting scale */
  .immersive .tile:not(.focus):active img { transform: scale(1.04); }
  .immersive .tile.focus:active img { transform: scale(1.1); }
}
