/* =====================================================================
   THE RED HAT COACH — stylesheet
   ===================================================================== */

:root {
  --black: #0a0a0b;
  --charcoal: #131316;
  --charcoal-2: #1b1b1f;
  --line: #2a2a30;
  --white: #f5f5f2;
  --muted: #a9a9b2;
  --red: #e21b2b;
  --red-dark: #a8111f;
  --red-glow: rgba(226, 27, 43, 0.35);
  --font-display: "Anton", "Arial Narrow", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --container: 1120px;
  --radius: 14px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container.narrow { max-width: 760px; }

h1, h2, h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.05;
  margin: 0 0 16px;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: 1.25rem; letter-spacing: 0.3px; }

p { margin: 0 0 16px; color: var(--muted); }
a { color: inherit; text-decoration: none; }

.accent { color: var(--red); }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}
.center { text-align: center; }
.center.eyebrow { display: block; }

/* ---------------- Reveal-on-scroll ---------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in-view { opacity: 1; transform: none; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 8px 24px -8px var(--red-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px -6px var(--red-glow); background: #ff2338; }
.btn-outline { border-color: var(--line); color: var(--white); background: transparent; }
.btn-outline:hover { border-color: var(--red); color: var(--red); }
.btn-ghost { border-color: rgba(245,245,242,0.25); color: var(--white); background: transparent; }
.btn-ghost:hover { border-color: var(--white); transform: translateY(-2px); }
.btn-lg { padding: 17px 34px; font-size: 1rem; }
.btn-sm { padding: 10px 20px; font-size: 0.85rem; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ---------------- Nav ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 11, 0.75);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.3s ease, padding 0.3s ease;
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; gap: 20px; }
.site-header.scrolled .nav-wrap { padding: 12px 24px; }

.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1.05rem; letter-spacing: 0.5px; color: var(--white); text-transform: uppercase; }
.logo em { color: var(--red); font-style: normal; }
.logo-mark { width: 28px; height: 28px; color: var(--red); flex-shrink: 0; }

.main-nav { display: flex; gap: 32px; }
.main-nav a { position: relative; font-weight: 600; font-size: 0.92rem; color: var(--muted); transition: color 0.2s ease; }
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform 0.25s var(--ease);
}
.main-nav a:hover { color: var(--white); }
.main-nav a:hover::after { transform: scaleX(1); }

.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--white); border-radius: 2px; transition: transform 0.25s ease, opacity 0.25s ease; }

/* ---------------- Hero ---------------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 88px; }
.hero-bg-glow {
  position: absolute; inset: -20% -10% auto -10%; height: 700px;
  background: radial-gradient(60% 60% at 30% 20%, var(--red-glow), transparent 70%),
              radial-gradient(40% 40% at 80% 10%, rgba(255,255,255,0.06), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}
.hero-wrap { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.hero-sub { font-size: 1.08rem; max-width: 520px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.hero-tags { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-tags span {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase;
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted);
}

.hero-video-frame {
  position: relative; aspect-ratio: 9 / 13; border-radius: 24px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6), 0 0 0 10px rgba(255,255,255,0.02);
}
.hero-video-frame video, .hero-video-frame { background: var(--charcoal); }
.hero-video-frame video { width: 100%; height: 100%; object-fit: cover; }
.hero-video-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,11,0) 40%, rgba(10,10,11,0.85) 100%); }
.hero-video-badge {
  position: absolute; left: 18px; bottom: 18px; font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.4px; text-transform: uppercase; color: var(--white);
  padding: 8px 14px; border-radius: 999px; background: rgba(226,27,43,0.85); backdrop-filter: blur(4px);
}

/* ---------------- Trust strip ---------------- */
.trust-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--charcoal); }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 40px 24px; }
.trust-item { text-align: center; }
.trust-num { display: block; font-family: var(--font-display); font-size: 1.9rem; color: var(--red); letter-spacing: 1px; margin-bottom: 6px; }
.trust-label { font-size: 0.88rem; color: var(--muted); }

/* ---------------- Sections ---------------- */
.section { padding: 96px 0; }
.section-alt { background: var(--charcoal); }
.section-dark { background: var(--black); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.two-col.reverse .col-visual { order: 1; }
.two-col.reverse .col-text { order: 2; }

.check-list { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-direction: column; gap: 12px; }
.check-list li { position: relative; padding-left: 30px; color: var(--white); font-size: 0.96rem; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--red); box-shadow: inset 0 0 0 3px var(--black), inset 0 0 0 3px rgba(226,27,43,0.15);
}
.check-list li::after {
  content: "\2713"; position: absolute; left: 3px; top: 1px; font-size: 0.7rem; color: #fff; font-weight: 700;
}

.quote-card {
  background: linear-gradient(160deg, var(--charcoal-2), var(--charcoal));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 40px 32px;
  position: relative; overflow: hidden;
}
.quote-card::before {
  content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 100% 0%, var(--red-glow), transparent 60%);
  opacity: 0.5;
}
.quote-mark { width: 30px; height: 30px; color: var(--red); margin-bottom: 16px; position: relative; }
.quote-card p { color: var(--white); font-size: 1.2rem; font-family: var(--font-display); text-transform: none; letter-spacing: 0.2px; line-height: 1.35; position: relative; }
.quote-card span { color: var(--red); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.5px; position: relative; }

/* ---------------- LEAN grid ---------------- */
.apply-sub { max-width: 620px; margin-left: auto; margin-right: auto; }
.lean-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px; }
.lean-card {
  background: var(--black); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 22px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.lean-card:hover { transform: translateY(-6px); border-color: var(--red); }
.lean-letter {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border-radius: 50%; background: var(--red); color: #fff; font-family: var(--font-display); font-size: 1.3rem;
  margin-bottom: 16px;
}
.lean-card h3 { margin-bottom: 8px; }
.lean-card p { font-size: 0.9rem; margin: 0; }

/* ---------------- Fit cards ---------------- */
.fit-card {
  background: var(--charcoal); border: 1px solid var(--line); border-left: 4px solid var(--red);
  border-radius: var(--radius); padding: 28px; margin-bottom: 20px;
}
.fit-card-no { border-left-color: var(--muted); opacity: 0.85; }
.fit-card h3 { margin-bottom: 16px; }
.icon-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.icon-list li { position: relative; padding-left: 26px; font-size: 0.94rem; color: var(--white); }
.icon-list.yes li::before { content: "\2713"; position: absolute; left: 0; color: var(--red); font-weight: 700; }
.icon-list.no li::before { content: "\2715"; position: absolute; left: 0; color: var(--muted); font-weight: 700; }

/* ---------------- Steps ---------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 48px; }
.step-card { background: var(--charcoal); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 24px; position: relative; }
.step-num { display: block; font-family: var(--font-display); font-size: 2.4rem; color: rgba(226,27,43,0.35); margin-bottom: 10px; }
.step-card h3 { margin-bottom: 8px; }
.step-card p { font-size: 0.9rem; margin: 0; }

/* ---------------- Video showcase ---------------- */
.video-showcase { background: var(--charcoal); }
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.video-card {
  position: relative; aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: var(--black); cursor: pointer;
}
.video-card video { width: 100%; height: 100%; object-fit: cover; }
.video-card-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,11,0) 45%, rgba(10,10,11,0.9) 100%); }
.video-card-label {
  position: absolute; left: 16px; bottom: 16px; right: 16px; color: #fff; font-weight: 700; font-size: 0.95rem;
}
.video-card-quote {
  display: flex; flex-direction: column; justify-content: center; padding: 30px;
  background: linear-gradient(160deg, var(--red-dark), var(--black)); cursor: default;
}
.video-card-quote p { color: #fff; font-family: var(--font-display); text-transform: none; font-size: 1.15rem; line-height: 1.35; }
.video-card-quote span { color: rgba(255,255,255,0.75); font-size: 0.82rem; font-weight: 700; }

/* ---------------- Application form ---------------- */
.application-form { max-width: 760px; margin: 48px auto 0; }
.form-step-title { color: var(--red); font-size: 0.95rem; letter-spacing: 1px; margin-bottom: 24px; text-transform: uppercase; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field-full { grid-column: 1 / -1; }
fieldset.field { border: none; padding: 0; margin: 0; }
fieldset legend { padding: 0; margin-bottom: 8px; font-size: 0.92rem; font-weight: 600; color: var(--white); float: left; width: 100%; }

label { font-size: 0.92rem; font-weight: 600; color: var(--white); }

input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="date"], textarea, select {
  background: var(--charcoal); border: 1px solid var(--line); border-radius: 10px; padding: 13px 14px;
  color: var(--white); font-family: var(--font-body); font-size: 0.95rem; width: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(226,27,43,0.18);
}
textarea { resize: vertical; min-height: 80px; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) center, calc(100% - 13px) center; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }

.radio-group { display: flex; flex-direction: column; gap: 10px; clear: both; }
.radio-opt {
  display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 0.92rem; color: var(--muted);
  background: var(--charcoal); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.radio-opt:hover { border-color: rgba(226,27,43,0.5); }
.radio-opt input[type="radio"] { accent-color: var(--red); width: 16px; height: 16px; flex-shrink: 0; }
.radio-opt:has(input:checked) { border-color: var(--red); color: var(--white); background: rgba(226,27,43,0.08); }
.radio-other { flex-wrap: wrap; }
.other-input { flex: 1; min-width: 140px; background: var(--black); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; color: var(--white); font-size: 0.88rem; }
.other-input:disabled { opacity: 0.4; }

.field-invalid input, .field-invalid textarea, .field-invalid select, .field-invalid .radio-opt { border-color: var(--red); }

.form-nav { display: flex; justify-content: space-between; margin-top: 32px; gap: 16px; }
.form-nav .btn:only-child { margin-left: auto; }
.form-error { color: var(--red); font-weight: 600; text-align: center; margin-top: 20px; }

.form-success { max-width: 560px; margin: 40px auto 0; text-align: center; }
.success-check { width: 64px; height: 64px; color: var(--red); margin: 0 auto 20px; }
.success-check circle { stroke: var(--red); stroke-width: 2; }
.success-check path { stroke: var(--red); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.form-success h3 { margin-bottom: 12px; }

/* ---------------- Calendly ---------------- */
.calendly-wrap { max-width: 820px; margin: 40px auto 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.calendly-fallback { margin-top: 16px; font-size: 0.88rem; }
.calendly-fallback a { color: var(--red); font-weight: 700; }

/* ---------------- FAQ ---------------- */
.faq-list { margin-top: 40px; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--black); border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; }
.faq-item summary { cursor: pointer; font-weight: 700; font-size: 1rem; color: var(--white); list-style: none; position: relative; padding-right: 30px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--red);
  transition: transform 0.25s ease;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p { margin: 14px 0 0; }

/* ---------------- Footer ---------------- */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 24px; }
.footer-wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; padding-bottom: 32px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a, .footer-social a { font-size: 0.88rem; color: var(--muted); font-weight: 600; }
.footer-links a:hover, .footer-social a:hover { color: var(--white); }
.footer-social { display: flex; gap: 20px; }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 20px; }
.footer-bottom p { text-align: center; font-size: 0.8rem; margin: 0; }

/* ---------------- Responsive ---------------- */
@media (max-width: 980px) {
  .two-col, .hero-wrap { grid-template-columns: 1fr; }
  .two-col.reverse .col-visual { order: 0; }
  .lean-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .video-card-quote { grid-column: 1 / -1; aspect-ratio: auto; padding: 26px; }
  .hero-video { max-width: 340px; margin: 0 auto; }
}

@media (max-width: 720px) {
  .main-nav { position: fixed; inset: 68px 0 auto 0; background: var(--black); flex-direction: column; padding: 20px 24px; gap: 4px; border-bottom: 1px solid var(--line); transform: translateY(-12px); opacity: 0; pointer-events: none; transition: opacity 0.25s ease, transform 0.25s ease; }
  .main-nav.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: flex; }
  .nav-cta .btn-outline { display: none; }
  .nav-cta .nav-instagram { display: none; }
  .logo { font-size: 0.88rem; white-space: nowrap; }
  .logo-mark { width: 22px; height: 22px; }
  .trust-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .lean-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .video-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .footer-wrap { flex-direction: column; align-items: flex-start; }
}

/* =====================================================================
   V2 — PREMIUM / CINEMATIC ENHANCEMENTS
   Intro sequence, 3D dumbbell CTA + flip transition, gym-floor video
   section, scroll-linked 3D tilts, spotlight cursor, particles, marquee,
   magnetic buttons, scroll progress, click ripples.
   ===================================================================== */

/* ---------------- Custom scrollbar ---------------- */
html { scrollbar-color: var(--red) var(--black); scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--red), var(--red-dark)); border-radius: 10px; border: 2px solid var(--black); }

/* ---------------- Cinematic vignette ---------------- */
body.site-ready::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 30;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,0.5) 145%);
  mix-blend-mode: multiply;
}

/* ---------------- Body lock during intro ---------------- */
body.intro-locked { overflow: hidden; height: 100vh; }

/* ---------------- Scroll progress bar ---------------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%; z-index: 9990;
  background: linear-gradient(90deg, var(--red), #ff5a68);
  box-shadow: 0 0 12px var(--red-glow);
  transition: width 0.1s linear;
}

/* ---------------- Intro cinematic ---------------- */
.intro-overlay {
  position: fixed; inset: 0; z-index: 10000; background: #000;
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  overflow: hidden; transition: opacity 0.65s ease, visibility 0.65s ease;
}
.intro-overlay.intro-hide { opacity: 0; visibility: hidden; pointer-events: none; }
.intro-bg-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(226,27,43,0.09) 1px, transparent 1px), linear-gradient(90deg, rgba(226,27,43,0.09) 1px, transparent 1px);
  background-size: 42px 42px;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, black, transparent 72%);
  mask-image: radial-gradient(circle at 50% 50%, black, transparent 72%);
  opacity: 0.7;
}
.intro-logo-wrap {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 16px;
  transform: translateY(-140vh) rotate(-8deg); opacity: 0;
  animation: introDrop 1.1s cubic-bezier(.2,1.1,.4,1) 0.15s forwards;
}
.intro-logo-mark { width: 64px; height: 64px; color: var(--red); filter: drop-shadow(0 0 30px rgba(226,27,43,0.7)); }
.intro-logo-text {
  font-family: var(--font-display); font-size: clamp(1.7rem, 7vw, 3.2rem); letter-spacing: 3px;
  color: #fff; text-transform: uppercase; margin: 0; text-align: center;
}
.intro-logo-text em { color: var(--red); font-style: normal; }
@keyframes introDrop {
  0%   { transform: translateY(-140vh) rotate(-8deg); opacity: 0; }
  58%  { transform: translateY(6vh) rotate(2deg); opacity: 1; }
  74%  { transform: translateY(-2vh) rotate(-1deg); }
  88%  { transform: translateY(1vh) rotate(0.5deg); }
  100% { transform: translateY(0) rotate(0deg); opacity: 1; }
}
.intro-shockwave {
  position: absolute; width: 10px; height: 10px; border-radius: 50%;
  border: 2px solid var(--red); opacity: 0; top: 50%; left: 50%; transform: translate(-50%,-50%);
}
.intro-overlay.intro-impact .intro-shockwave { animation: introShock 0.65s ease-out forwards; }
@keyframes introShock {
  0% { width: 10px; height: 10px; opacity: 0.9; }
  100% { width: 1500px; height: 1500px; opacity: 0; }
}
.intro-overlay.intro-impact { animation: introFlash 0.2s ease; }
@keyframes introFlash { 0% { background: #17070a; } 100% { background: #000; } }

@media (prefers-reduced-motion: reduce) {
  .intro-overlay { display: none; }
}

/* ---------------- 3D flip transition ---------------- */
.flip-transition {
  position: fixed; inset: 0; z-index: 9998; pointer-events: none; opacity: 0;
  background: linear-gradient(135deg, var(--red-dark), var(--black) 70%);
  transform-origin: bottom center;
  transform: perspective(1400px) rotateX(90deg);
}
.flip-transition.flip-active { animation: flipIn 0.5s cubic-bezier(.5,0,.2,1) forwards; }
.flip-transition.flip-out { animation: flipOut 0.42s cubic-bezier(.5,0,.2,1) forwards; }
@keyframes flipIn {
  0% { transform: perspective(1400px) rotateX(90deg); opacity: 0; }
  35% { opacity: 1; }
  100% { transform: perspective(1400px) rotateX(0deg); opacity: 1; }
}
@keyframes flipOut {
  0% { transform: perspective(1400px) rotateX(0deg); opacity: 1; }
  100% { transform: perspective(1400px) rotateX(-90deg); opacity: 0; }
}

/* ---------------- Floating 3D dumbbell CTA ---------------- */
.hero-3d-badge {
  position: fixed; right: 24px; bottom: 24px; z-index: 500;
  width: 104px; height: 104px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 35% 30%, rgba(226,27,43,0.35), rgba(19,19,22,0.9) 70%);
  border: 1px solid rgba(226,27,43,0.4);
  box-shadow: 0 18px 40px -14px rgba(0,0,0,0.7), 0 0 0 0 rgba(226,27,43,0.45);
  opacity: 0; transform: scale(0.6) translateY(30px); pointer-events: none;
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease), box-shadow 0.3s ease;
  animation: badgePulse 2.6s ease-in-out infinite;
}
.hero-3d-badge.fab-visible { opacity: 1; transform: scale(1) translateY(0); pointer-events: auto; }
.hero-3d-badge:hover, .hero-3d-badge:focus-visible { box-shadow: 0 18px 46px -12px rgba(0,0,0,0.75), 0 0 0 10px rgba(226,27,43,0.14); outline: none; }
.hero-3d-badge:hover .badge-label, .hero-3d-badge:focus-visible .badge-label { opacity: 1; transform: translateX(0); }
@keyframes badgePulse {
  0%, 100% { box-shadow: 0 18px 40px -14px rgba(0,0,0,0.7), 0 0 0 0 rgba(226,27,43,0.35); }
  50% { box-shadow: 0 18px 40px -14px rgba(0,0,0,0.7), 0 0 0 10px rgba(226,27,43,0); }
}
#dumbbellCanvas { width: 76px; height: 76px; display: block; pointer-events: none; }
#dumbbellCanvas[hidden] { display: none; }
.badge-fallback-icon { width: 42px; height: 42px; color: var(--red); pointer-events: none; }
.badge-fallback-icon[hidden] { display: none; }
.badge-label {
  position: absolute; right: 112px; top: 50%; transform: translateX(8px) translateY(-50%); opacity: 0;
  background: var(--charcoal); border: 1px solid var(--line); color: var(--white);
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.4px; white-space: nowrap;
  padding: 8px 14px; border-radius: 999px; transition: opacity 0.25s ease, transform 0.25s ease;
}
@media (max-width: 720px) {
  .hero-3d-badge { width: 76px; height: 76px; right: 16px; bottom: 16px; }
  #dumbbellCanvas { width: 54px; height: 54px; }
  .badge-label { display: none; }
}

/* ---------------- Nav Instagram icon ---------------- */
.nav-instagram { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; color: var(--muted); border: 1px solid var(--line); transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease; }
.nav-instagram svg { width: 17px; height: 17px; }
.nav-instagram:hover { color: var(--red); border-color: var(--red); transform: translateY(-2px); }

/* ---------------- Hero spotlight + particles ---------------- */
.hero { --mx: 50%; --my: 40%; }
.hero-spotlight {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: radial-gradient(460px circle at var(--mx) var(--my), rgba(226,27,43,0.16), transparent 70%);
  opacity: 0; transition: opacity 0.4s ease;
}
.hero.spotlight-active .hero-spotlight { opacity: 1; }
.hero-particles { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }

/* ---------------- Marquee ticker ---------------- */
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--charcoal); padding: 14px 0; }
.marquee-track { display: flex; align-items: center; gap: 22px; white-space: nowrap; width: max-content; animation: marqueeScroll 26s linear infinite; }
.marquee-track span { font-family: var(--font-display); font-size: 0.92rem; letter-spacing: 2px; color: var(--muted); }
.marquee-track span.dot { color: var(--red); font-family: var(--font-body); }
@keyframes marqueeScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---------------- Gym floor / intro video section ---------------- */
.gym-floor-section { position: relative; overflow: hidden; background: var(--black); }
.gym-floor-texture {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(circle at 25% 25%, rgba(255,255,255,0.035) 0, rgba(255,255,255,0.035) 2px, transparent 2px),
    linear-gradient(180deg, rgba(226,27,43,0.07), transparent 45%);
  background-size: 26px 26px, 100% 100%;
}
.intro-video-frame {
  position: relative; max-width: 880px; margin: 48px auto 0; aspect-ratio: 16 / 9; border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--line); background: linear-gradient(160deg, var(--charcoal-2), var(--black));
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.7);
}
.intro-video-frame video { width: 100%; height: 100%; object-fit: cover; background: #000; }
.video-play-btn {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 84px; height: 84px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(226,27,43,0.92); color: #fff; display: flex; align-items: center; justify-content: center;
  animation: playPulse 2.4s ease-in-out infinite; transition: transform 0.25s var(--ease);
}
.video-play-btn:hover { transform: translate(-50%,-50%) scale(1.08); }
.video-play-btn svg { width: 30px; height: 30px; margin-left: 4px; fill: #fff; }
@keyframes playPulse {
  0% { box-shadow: 0 0 0 0 rgba(226,27,43,0.5); }
  70% { box-shadow: 0 0 0 22px rgba(226,27,43,0); }
  100% { box-shadow: 0 0 0 0 rgba(226,27,43,0); }
}
.video-coming-soon { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--muted); text-align: center; padding: 20px; }
.camera-icon { width: 40px; height: 40px; fill: var(--muted); }
.video-play-btn[hidden], .video-coming-soon[hidden] { display: none; }

.instagram-cta { text-align: center; margin-top: 28px; }
.instagram-pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--white); font-weight: 700; font-size: 0.9rem;
  transition: border-color 0.25s ease, transform 0.25s var(--ease), background 0.25s ease;
}
.instagram-pill svg { width: 18px; height: 18px; color: var(--red); flex-shrink: 0; }
.instagram-pill:hover { border-color: var(--red); transform: translateY(-2px); background: rgba(226,27,43,0.08); }

/* ---------------- Video card shine sweep ---------------- */
.video-card { position: relative; }
.video-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,0.16) 50%, transparent 60%);
  transform: translateX(-130%); transition: transform 0.7s ease;
}
.video-card:hover::after { transform: translateX(130%); }

/* ---------------- Click ripple ---------------- */
.click-ripple {
  position: fixed; width: 10px; height: 10px; border-radius: 50%;
  background: rgba(226,27,43,0.45); pointer-events: none; z-index: 9995;
  transform: translate(-50%, -50%); animation: rippleOut 0.6s ease-out forwards;
}
@keyframes rippleOut { to { width: 64px; height: 64px; opacity: 0; } }

/* ---------------- 3D tilt perspective helpers ---------------- */
.lean-grid, .steps, .video-grid, .trust-grid { perspective: 1200px; }
.lean-card, .step-card, .trust-item, .fit-card { transform-style: preserve-3d; will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  .hero-3d-badge, .flip-transition, .intro-overlay, .video-play-btn, .marquee-track { animation: none !important; }
}
