/* JV Fitness — global styles */
:root {
  --bg: #0a0a0a;
  --ink: #ffffff;
  --muted: #8a8a8a;
  --line: #1f1f1f;
  --red: #e10600;
  --red-deep: #b30500;
  --accent: var(--red);
  --serif: "Fraunces", "Times New Roman", serif;
  --display: "Oswald", "Anton", "Arial Narrow", sans-serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

/* ===== Type ===== */
.display {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 0.92;
}
.eyebrow {
  font-family: var(--display);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--accent);
}
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; }

/* ===== Layout ===== */
.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 48px;
}
section { position: relative; }

/* ===== Nav ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10,10,10,0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 48px;
  max-width: 1440px;
  margin: 0 auto;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 18px;
}
.nav-logo .kanji {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: var(--accent);
  color: #fff;
  font-size: 22px;
  font-weight: 800;
}
.nav-logo small {
  display: block;
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--muted);
  font-weight: 400;
  margin-top: 2px;
}
.nav-links {
  display: flex;
  gap: 36px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav-links a {
  color: #c4c4c4;
  transition: color .2s;
}
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  padding: 12px 22px;
  background: var(--accent);
  color: #fff;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 13px;
  transition: background .2s;
}
.nav-cta:hover { background: var(--red-deep); }

/* ===== Hero ===== */
.hero {
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: start;
}
.hero-kanji {
  position: absolute;
  font-weight: 900;
  color: rgba(225,6,0,0.08);
  font-size: 48vw;
  line-height: 0.8;
  top: -8vw;
  right: -6vw;
  pointer-events: none;
  user-select: none;
  font-family: serif;
  z-index: 0;
}
.hero-content { position: relative; z-index: 2; }
.hero h1 {
  font-size: clamp(56px, 7.2vw, 112px);
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.02;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  padding-top: 0.08em;
}
.hero h1 .red { color: var(--accent); }
.hero h1 .outline {
  -webkit-text-stroke: 2px var(--ink);
  color: transparent;
}
.hero h1 em {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  text-transform: none;
  letter-spacing: -0.03em;
  font-size: 0.72em;
}
.hero-sub {
  font-size: 18px;
  color: #b8b8b8;
  max-width: 480px;
  margin-top: 32px;
  line-height: 1.6;
}
.hero-actions {
  margin-top: 40px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 32px;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 14px;
  transition: all .2s;
  border: 1px solid transparent;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--red-deep); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: #2a2a2a;
}
.btn-ghost:hover { border-color: var(--ink); }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(4px); }

.hero-stats {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 40px;
}
.hero-stats .stat {
  background: var(--bg);
  padding: 28px 24px;
}
.hero-stats .num {
  font-family: var(--display);
  font-size: 56px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.hero-stats .lbl {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 8px;
}
.hero-image {
  position: relative;
  aspect-ratio: 4/5;
  background: #1a1a1a;
  overflow: hidden;
  width: 100%;
}
.hero-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-image .badge {
  position: absolute;
  top: 20px; left: 20px;
  background: var(--accent);
  color: #fff;
  padding: 8px 14px;
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.hero-image .corner {
  position: absolute;
  bottom: 20px; right: 20px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 80px;
  color: rgba(255,255,255,0.9);
  line-height: 0.85;
  text-align: right;
}
.hero-image .corner small {
  display: block;
  font-size: 10px;
  letter-spacing: 0.2em;
  font-weight: 400;
  color: rgba(255,255,255,0.6);
  margin-top: 4px;
}

.ticker {
  position: relative;
  z-index: 2;
  margin-top: 80px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 22px 0;
}
.ticker-track {
  display: flex;
  gap: 60px;
  white-space: nowrap;
  animation: scroll 40s linear infinite;
  font-family: var(--display);
  font-size: 28px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  width: max-content;
}
.ticker-track span { display: inline-flex; align-items: center; gap: 60px; }
.ticker-track .dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}
@keyframes scroll {
  to { transform: translateX(-50%); }
}

/* ===== Section header ===== */
.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 100px 0 64px;
  align-items: end;
}
.section-head h2 {
  font-family: var(--display);
  font-size: clamp(40px, 4.6vw, 72px);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.04;
  letter-spacing: -0.005em;
  padding-top: 0.08em;
}
.section-head h2 .red { color: var(--accent); }
.section-head h2 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  text-transform: none;
}
.section-head p {
  font-size: 17px;
  line-height: 1.6;
  color: #b8b8b8;
}

/* ===== About ===== */
.about {
  padding: 60px 0 80px;
  border-top: 1px solid var(--line);
}
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.about-feat {
  padding: 40px 32px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.about-feat:last-child { border-right: none; }
.about-feat .num {
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--accent);
}
.about-feat h3 {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1;
}
.about-feat p {
  color: #a0a0a0;
  font-size: 15px;
  line-height: 1.6;
}

/* ===== Branches ===== */
.branches { padding: 80px 0 100px; border-top: 1px solid var(--line); }
.branch-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.branch {
  padding: 36px 32px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  transition: background .2s;
  cursor: pointer;
  position: relative;
}
.branch:nth-child(2n) { border-right: none; }
.branch:hover { background: #111; }
.branch:hover .branch-arrow { color: var(--accent); transform: translateX(6px); }
.branch-num {
  font-family: var(--display);
  color: var(--accent);
  font-size: 14px;
  letter-spacing: 0.16em;
  font-weight: 600;
}
.branch-name {
  font-family: var(--display);
  font-size: 36px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1;
}
.branch-meta {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.branch-meta .phone { color: #d4d4d4; }
.branch-meta .tag {
  padding: 3px 8px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  letter-spacing: 0.16em;
}
.branch-meta .tag.soon { background: transparent; border: 1px solid var(--accent); color: var(--accent); }
.branch-meta .tag.women { background: #c81d6a; }
.branch-arrow {
  font-family: var(--display);
  font-size: 24px;
  transition: all .2s;
  color: #555;
}

/* ===== Pricing ===== */
.pricing {
  padding: 80px 0 120px;
  border-top: 1px solid var(--line);
  background: #060606;
}
.pricing-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border: 1px solid var(--line);
  margin-bottom: 0;
  border-bottom: none;
}
.pricing-tab {
  flex: 1;
  min-width: 140px;
  padding: 22px 16px;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #888;
  border-right: 1px solid var(--line);
  transition: all .2s;
  position: relative;
  text-align: center;
}
.pricing-tab:last-child { border-right: none; }
.pricing-tab:hover { color: #fff; background: #0e0e0e; }
.pricing-tab.active {
  background: var(--accent);
  color: #fff;
}
.pricing-tab small {
  display: block;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.5);
  font-weight: 400;
  margin-top: 4px;
}
.pricing-tab.active small { color: rgba(255,255,255,0.85); }

.pricing-panel {
  border: 1px solid var(--line);
  background: #0a0a0a;
  padding: 48px;
}
.pricing-panel[hidden] { display: none; }
.pricing-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
  gap: 16px;
}
.pricing-panel-head h3 {
  font-family: var(--display);
  font-size: 56px;
  text-transform: uppercase;
  font-weight: 700;
  line-height: 1;
}
.pricing-panel-head .loc {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
}
.price-card {
  background: #0a0a0a;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  transition: background .2s;
}
.price-card:hover { background: #111; }
.price-card.featured {
  background: #0d0d0d;
  outline: 1px solid var(--accent);
  outline-offset: -1px;
}
.price-card .duration {
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-transform: uppercase;
}
.price-card .featured-tag {
  position: absolute;
  top: 18px;
  right: 18px;
  background: var(--accent);
  color: #fff;
  font-family: var(--display);
  font-size: 10px;
  letter-spacing: 0.18em;
  padding: 4px 8px;
  text-transform: uppercase;
}
.price-card h4 {
  font-family: var(--display);
  font-size: 22px;
  text-transform: uppercase;
  font-weight: 700;
  line-height: 1.1;
}
.price-card .options {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: auto;
}
.price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.price-row:first-child { border-top: 1px solid #222; }
.price-row .visits {
  font-size: 13px;
  color: #b0b0b0;
  letter-spacing: 0.04em;
}
.price-row .amt {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.price-row .amt small {
  font-size: 14px;
  color: var(--muted);
  font-weight: 400;
  margin-left: 2px;
}

/* ===== Trainers ===== */
.trainers { padding: 80px 0 100px; border-top: 1px solid var(--line); }
.trainer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.trainer { position: relative; }
.trainer-img {
  aspect-ratio: 3/4;
  background: linear-gradient(180deg, #1a1a1a, #0a0a0a);
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
}
.trainer-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.trainer:hover .trainer-img img { transform: scale(1.04); }
.trainer-img::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60%;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.6));
}
.trainer-img .spec {
  position: absolute;
  bottom: 16px; left: 16px;
  z-index: 2;
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.trainer h4 {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1;
}
.trainer .role {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 6px;
}

/* ===== Gallery ===== */
.gallery {
  padding: 80px 0 100px;
  border-top: 1px solid var(--line);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 140px;
  gap: 12px;
}
.tile {
  background: #1a1a1a;
  position: relative;
  overflow: hidden;
}
.tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.tile:hover img { transform: scale(1.05); }
.tile .ph-text {
  position: relative;
  z-index: 2;
  font-family: serif;
  font-weight: 900;
  color: rgba(0,0,0,0.2);
  text-align: center;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 80px;
}
.tile.t1 { grid-column: span 2; grid-row: span 2; }
.tile.t2 { grid-column: span 2; grid-row: span 1; }
.tile.t3 { grid-column: span 2; grid-row: span 1; background: var(--accent); }
.tile.t4 { grid-column: span 2; grid-row: span 2; }
.tile.t5 { grid-column: span 1; grid-row: span 1; }
.tile.t6 { grid-column: span 1; grid-row: span 1; }

/* ===== CTA / Contact ===== */
.cta-band {
  padding: 100px 0;
  border-top: 1px solid var(--line);
  background: var(--accent);
  position: relative;
  overflow: hidden;
}
.cta-band .kanji-bg {
  position: absolute;
  font-family: serif;
  font-weight: 900;
  font-size: 50vw;
  color: rgba(0,0,0,0.06);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  line-height: 0.8;
  pointer-events: none;
  user-select: none;
}
.cta-band-inner {
  position: relative;
  z-index: 2;
  text-align: center;
}
.cta-band h2 {
  font-family: var(--display);
  font-size: clamp(48px, 6.4vw, 104px);
  text-transform: uppercase;
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: #fff;
  padding-top: 0.08em;
}
.cta-band h2 em {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  text-transform: none;
  color: rgba(255,255,255,0.85);
}
.cta-band p {
  margin: 24px auto 0;
  max-width: 540px;
  color: rgba(255,255,255,0.85);
  font-size: 17px;
  line-height: 1.6;
}
.cta-band .btn-primary {
  background: #0a0a0a;
  margin-top: 40px;
}
.cta-band .btn-primary:hover { background: #000; }

/* ===== Footer ===== */
.footer {
  padding: 80px 0 32px;
  border-top: 1px solid var(--line);
  background: #060606;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--line);
}
.footer h5 {
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer ul a { color: #c4c4c4; font-size: 14px; }
.footer ul a:hover { color: var(--accent); }
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footer-brand .big-kanji {
  font-family: serif;
  font-weight: 900;
  font-size: 80px;
  color: var(--accent);
  line-height: 0.9;
}
.footer-brand .wordmark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.footer-brand .wordmark small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 400;
  margin-top: 4px;
}
.footer-brand p {
  color: #888;
  font-size: 14px;
  max-width: 320px;
  line-height: 1.6;
}
.footer-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--ink); }

/* ===== Utility ===== */
.divider {
  height: 1px;
  background: var(--line);
  margin: 0;
}

/* ===== Responsive ===== */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .section-head { grid-template-columns: 1fr; padding: 80px 0 48px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-feat { border-right: none; border-bottom: 1px solid var(--line); }
  .branch-list { grid-template-columns: 1fr; }
  .branch { border-right: none !important; }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-panel { padding: 28px; }
  .trainer-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .tile { grid-column: span 1 !important; grid-row: span 1 !important; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .container { padding: 0 24px; }
  .nav-inner { padding: 16px 24px; }
}

@media (max-width: 600px) {
  .hero { padding: 120px 0 60px; }
  .hero-stats { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .pricing-panel-head h3 { font-size: 36px; }
  .branch-name { font-size: 28px; }
}

/* =====================================================
   MOTION LAYER — animations & interactions
   ===================================================== */

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 100%;
  background: transparent;
  z-index: 200;
  pointer-events: none;
}
.scroll-progress::after {
  content: "";
  display: block;
  height: 100%;
  width: var(--progress, 0%);
  background: var(--accent);
  box-shadow: 0 0 12px rgba(225,6,0,0.5);
  transition: width 0.06s linear;
}

/* Hero cursor glow */
.hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(
    520px circle at var(--mx, 50%) var(--my, 30%),
    rgba(225, 6, 0, 0.18),
    rgba(225, 6, 0, 0.04) 30%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.5s;
}
.hero:hover .hero-glow { opacity: 1; }

/* Breathing kanji */
@keyframes kanji-breathe {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}
.hero-kanji {
  animation: kanji-breathe 7s ease-in-out infinite;
  will-change: transform, opacity;
}

/* Hero headline staggered line-reveal */
.hero h1 .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.04em;
}
.hero h1 .line .word {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  animation: line-rise 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.hero h1 .line:nth-child(1) .word { animation-delay: 0.18s; }
.hero h1 .line:nth-child(2) .word { animation-delay: 0.34s; }
.hero h1 .line:nth-child(3) .word { animation-delay: 0.50s; }
@keyframes line-rise {
  to { transform: translateY(0); opacity: 1; }
}

/* Other hero entrance items */
.hero .anim-rise {
  opacity: 0;
  transform: translateY(20px);
  animation: rise-fade 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.hero .anim-rise[data-d="1"] { animation-delay: 0.65s; }
.hero .anim-rise[data-d="2"] { animation-delay: 0.78s; }
.hero .anim-rise[data-d="3"] { animation-delay: 0.92s; }
.hero .anim-rise[data-d="4"] { animation-delay: 1.06s; }
.hero .anim-rise[data-d="5"] { animation-delay: 1.20s; }
@keyframes rise-fade {
  to { opacity: 1; transform: translateY(0); }
}

/* Ticker hover-pause */
.ticker:hover .ticker-track {
  animation-play-state: paused;
}

/* Scroll-reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.85s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.85s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform, opacity;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal-delay="1"] { transition-delay: 0.08s; }
[data-reveal-delay="2"] { transition-delay: 0.16s; }
[data-reveal-delay="3"] { transition-delay: 0.24s; }
[data-reveal-delay="4"] { transition-delay: 0.32s; }
[data-reveal-delay="5"] { transition-delay: 0.40s; }
[data-reveal-delay="6"] { transition-delay: 0.48s; }

/* Nav link animated underline */
.nav-links a {
  position: relative;
  padding-bottom: 4px;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Branch hover sweep — red bar grows from top */
.branch::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 1;
}
.branch:hover::before {
  transform: scaleY(1);
}
.branch {
  transition: background .25s, padding-left .35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.branch:hover {
  padding-left: 44px;
}

/* Trainer image reveal mask + name underline */
.trainer-img {
  clip-path: inset(0 0 0 0);
}
.trainer h4 {
  position: relative;
  display: inline-block;
}
.trainer h4::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.trainer:hover h4::after { transform: scaleX(1); }
.trainer-img .spec {
  transform: translateY(0);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), color 0.3s;
}
.trainer:hover .trainer-img .spec {
  transform: translateY(-6px);
}

/* Gallery tile depth */
.tile {
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.tile:hover {
  transform: translateY(-4px);
  z-index: 2;
}
.tile.t3 { animation: kanji-breathe 5s ease-in-out infinite; }

/* Pricing tabs — sliding active indicator + hover lift */
.pricing-tab {
  overflow: hidden;
}
.pricing-tab::before {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.pricing-tab:hover::before {
  transform: scaleX(1);
}
.pricing-tab.active::before { display: none; }

/* Pricing panel + card entrance */
.pricing-panel {
  animation: panel-fade 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes panel-fade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.price-card {
  opacity: 0;
  transform: translateY(14px);
  animation: card-in 0.65s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.pricing-panel .price-card:nth-child(1) { animation-delay: 0.08s; }
.pricing-panel .price-card:nth-child(2) { animation-delay: 0.18s; }
.pricing-panel .price-card:nth-child(3) { animation-delay: 0.28s; }
@keyframes card-in {
  to { opacity: 1; transform: translateY(0); }
}

/* Featured card pulse on accent outline */
@keyframes outline-pulse {
  0%, 100% { outline-color: var(--accent); outline-offset: -1px; }
  50% { outline-color: var(--accent); outline-offset: 2px; }
}
.price-card.featured {
  animation: card-in 0.65s cubic-bezier(0.2, 0.8, 0.2, 1) 0.18s forwards,
             outline-pulse 3.5s ease-in-out 1.2s infinite;
}

/* CTA band — subtle kanji rotation */
@keyframes kanji-drift {
  0%, 100% { transform: translate(-50%, -50%) rotate(0deg); }
  50% { transform: translate(-50%, -50%) rotate(2deg); }
}
.cta-band .kanji-bg {
  animation: kanji-drift 18s ease-in-out infinite;
}

/* Magnetic button base */
.btn {
  will-change: transform;
}

/* Stat counter — fixed-width digits to prevent jitter */
.hero-stats .num {
  font-variant-numeric: tabular-nums;
}

/* Logo kanji — pulse on hover */
.nav-logo .kanji {
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.3s;
}
.nav-logo:hover .kanji {
  transform: rotate(-8deg) scale(1.08);
}

/* Reduced motion — respect user preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
  .hero h1 .line .word {
    transform: none !important;
    opacity: 1 !important;
  }
  .hero .anim-rise {
    opacity: 1 !important;
    transform: none !important;
  }
  .price-card {
    opacity: 1 !important;
    transform: none !important;
  }
  .ticker-track { animation: none !important; }
}
