/* =========================================================
   HOME — page-specific styles
   ========================================================= */

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding-bottom: 100px;
  padding-top: 120px;
}
@media (max-width: 700px) {
  .hero { padding-bottom: 90px; padding-top: 100px; }
}
.hero-media {
  position: absolute; inset: 0;
  z-index: 1;
}
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.hero-video.active { opacity: 1; }
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,10,0.55) 0%, rgba(10,10,10,0.10) 30%, rgba(10,10,10,0.0) 50%, rgba(10,10,10,0.85) 100%),
    linear-gradient(90deg, rgba(10,10,10,0.55) 0%, rgba(10,10,10,0.0) 50%);
}

.hero-rail {
  position: absolute;
  left: 24px; top: 120px; bottom: 120px;
  z-index: 3;
  display: flex; align-items: center;
}
.hero-rail.right { left: auto; right: 24px; }
.hero-rail .vlabel { color: rgba(255,255,255,0.5); }

@media (max-width: 900px) { .hero-rail { display: none; } }

.hero-inner {
  position: relative;
  z-index: 4;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.hero-meta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(10,10,10,0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 28px;
  max-width: 100%;
}
.hero-meta > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hero-meta .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 8px var(--orange);
  animation: pulse 2s infinite;
}

.hero-title {
  margin: 0;
  color: var(--white);
  font-size: clamp(40px, 7.5vw, 120px);
  line-height: 0.92;
}
@media (max-width: 700px) {
  .hero-title { font-size: clamp(36px, 11vw, 64px); }
}
.hero-title .line {
  display: block;
  overflow: hidden;
}
.hero-title .accent { color: var(--orange); }

.hero-sub {
  margin: 28px 0 36px;
  max-width: 560px;
  font-size: clamp(15px, 1.3vw, 19px);
  line-height: 1.55;
  color: rgba(255,255,255,0.85);
}
@media (max-width: 700px) {
  .hero-sub { margin: 20px 0 28px; }
  .hero-meta { margin-bottom: 20px; font-size: 10px; }
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-cta .btn { flex: 0 0 auto; }
@media (max-width: 480px) {
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; justify-content: center; }
}

.hero-foot {
  position: absolute;
  bottom: 28px; left: 0; right: 0;
  z-index: 4;
  padding: 0 var(--pad-x);
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}
.hero-tracks { display: flex; gap: 8px; }
.hero-tracks .track {
  width: 40px; height: 16px;
  display: flex; align-items: center;
  cursor: pointer;
}
.hero-tracks .track span {
  display: block;
  width: 100%; height: 2px;
  background: rgba(255,255,255,0.25);
  transition: background .2s ease;
}
.hero-tracks .track.on span { background: var(--orange); }

.scroll-cue {
  display: flex; align-items: center; gap: 10px;
  position: absolute;
  left: 50%; transform: translateX(-50%);
}
.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.6) 30%, transparent);
  animation: scrollSlide 2s ease-in-out infinite;
  display: inline-block;
}
@keyframes scrollSlide {
  0% { transform: translateY(-12px); opacity: 0; }
  40% { opacity: 1; }
  100% { transform: translateY(12px); opacity: 0; }
}
.hero-tags { display: flex; gap: 8px; }
.hero-tags .sep { color: var(--orange); }

@media (max-width: 700px) {
  .scroll-cue { display: none; }
  .hero-foot { font-size: 10px; }
}

/* Split-screen variant */
body[data-hero="split"] .hero { padding-bottom: 0; align-items: stretch; }
body[data-hero="split"] .hero-media { left: 50%; right: 0; }
body[data-hero="split"] .hero-scrim {
  background: linear-gradient(180deg, transparent, rgba(10,10,10,0.6));
}
body[data-hero="split"] .hero-inner { display: flex; align-items: flex-end; padding-bottom: 100px; }
body[data-hero="split"] .hero-inner > * { max-width: 50%; padding-right: 40px; }
@media (max-width: 900px) {
  body[data-hero="split"] .hero-media { left: 0; }
  body[data-hero="split"] .hero-inner > * { max-width: none; padding-right: 0; }
}

/* ---------- STATS ---------- */
.stats {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 56px 0;
  background: var(--ink);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
@media (max-width: 900px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
.stat {
  padding: 0 24px;
  border-left: 1px solid var(--line-soft);
}
.stat:first-child { border-left: 0; padding-left: 0; }
.stat:nth-child(3) { padding-left: 32px; }
@media (max-width: 900px) {
  .stat { padding: 24px 16px; border-left: 0; border-top: 1px solid var(--line-soft); }
  .stat:nth-child(-n+2) { border-top: 0; }
  .stat:nth-child(odd) { border-right: 1px solid var(--line-soft); }
}
.stat-num {
  font-size: clamp(56px, 6.5vw, 96px);
  line-height: 1;
  color: var(--white);
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.stat-num .unit {
  font-size: 0.3em;
  letter-spacing: 0.16em;
  color: var(--orange);
  font-family: var(--body);
  font-weight: 600;
  margin-left: 4px;
}
.stat-label {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel-2);
  margin-top: 12px;
  line-height: 1.5;
}

/* ---------- WHAT IS KM ---------- */
.what-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 900px) { .what-grid { grid-template-columns: 1fr; gap: 40px; } }
.what-left h2 { margin: 16px 0 0; color: var(--ink); }
.what-right .lede { margin: 0 0 24px; }
.what-ticks {
  display: flex; gap: 32px; flex-wrap: wrap;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--paper-line);
}
.what-ticks span {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  color: #555;
  display: flex; gap: 8px; align-items: baseline;
}
.what-ticks b {
  color: var(--orange);
  font-family: var(--display);
  font-size: 18px;
  font-weight: 400;
}

/* ---------- CLASS CARDS ---------- */
.class-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 1100px) { .class-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) { .class-grid { grid-template-columns: 1fr; } }

.class-card {
  display: flex;
  flex-direction: column;
  background: var(--ink-2);
  border: 1px solid var(--line);
  transition: border-color .2s ease, transform .3s ease;
}
.class-card:hover { border-color: var(--orange); transform: translateY(-4px); }
.class-card.featured { background: linear-gradient(180deg, var(--ink-3), var(--ink-2)); border-color: rgba(232,119,34,0.3); }

.class-img {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #000;
}
.class-img img { transition: transform .8s ease; }
.class-card:hover .class-img img { transform: scale(1.04); }
.class-img-tag {
  position: absolute; top: 16px; left: 16px;
  background: rgba(10,10,10,0.7);
  backdrop-filter: blur(8px);
  padding: 6px 10px;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
}
.class-meta {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 24px 24px 0;
}
.class-num {
  font-family: var(--display);
  font-size: 32px;
  color: var(--orange);
  line-height: 1;
}
.class-age {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--steel-2);
}
.class-card h3 { margin: 8px 24px 12px; color: var(--white); }
.class-card p { margin: 0 24px; color: var(--steel-2); font-size: 14px; line-height: 1.55; }
.class-list {
  list-style: none; padding: 0;
  margin: 24px 24px 24px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  display: flex; flex-direction: column; gap: 10px;
  flex: 1;
}
.class-list li {
  font-size: 13px;
  color: var(--steel-2);
  padding-left: 18px;
  position: relative;
}
.class-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.6em;
  width: 8px; height: 1px;
  background: var(--orange);
}
.class-link {
  margin: 0 24px 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 600;
  display: flex; justify-content: space-between; align-items: center;
}
.class-link .arr { transition: transform .2s ease; }
.class-card:hover .class-link .arr { transform: translateX(4px); }

/* ---------- LOCATIONS ---------- */
.locations-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 800px) { .locations-grid { grid-template-columns: 1fr; } }

.loc-card {
  background: var(--white);
  border: 1px solid var(--paper-line);
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: start;
  transition: border-color .2s ease, transform .3s ease;
}
.loc-card:hover { border-color: var(--ink); transform: translateY(-2px); }
.loc-card .loc-meta {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #888;
  grid-column: 1 / -1;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--paper-line);
}
.loc-card .loc-meta .city { color: var(--orange); font-weight: 600; }
.loc-card .loc-name {
  font-family: var(--display);
  font-size: clamp(28px, 3vw, 40px);
  text-transform: uppercase;
  line-height: 0.95;
  color: var(--ink);
  margin: 0;
}
.loc-card .loc-day {
  font-family: var(--display);
  font-size: 32px;
  color: var(--orange);
  text-align: right;
  line-height: 1;
}
.loc-card .loc-addr {
  font-size: 13px;
  color: #555;
  margin: 4px 0 0;
  grid-column: 1 / -1;
}
.loc-card .loc-slots {
  grid-column: 1 / -1;
  display: flex; flex-direction: column; gap: 6px;
  margin-top: 12px;
  padding-top: 16px;
  border-top: 1px dashed var(--paper-line);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.loc-card .loc-slots span b {
  display: inline-block;
  min-width: 70px;
  font-weight: 600;
  color: var(--ink);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.loc-card .loc-actions {
  grid-column: 1 / -1;
  display: flex; justify-content: space-between;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--paper-line);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.loc-card .loc-actions a { color: var(--ink); font-weight: 600; }
.loc-card .loc-actions a:hover { color: var(--orange); }

/* ---------- INSTRUCTOR STRIP ---------- */
.instr-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: stretch;
}
@media (max-width: 900px) { .instr-grid { grid-template-columns: 1fr; gap: 32px; } }
.instr-img {
  margin: 0;
  aspect-ratio: 4/5;
  position: relative;
  overflow: hidden;
  background: var(--ink-3);
}
.instr-img img { filter: grayscale(0.3) contrast(1.05); }
.instr-img figcaption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 16px 20px;
  background: linear-gradient(to top, rgba(10,10,10,0.85), transparent);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
}
.instr-copy { display: flex; flex-direction: column; justify-content: center; gap: 24px; }
.instr-copy blockquote {
  margin: 0;
  border-left: 3px solid var(--orange);
  padding-left: 24px;
}
.instr-copy blockquote .display {
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 1;
  color: var(--white);
}

/* ---------- TESTIMONIALS ---------- */
.testimonials .section-head { margin-bottom: 48px; }
.testi-controls {
  display: flex; align-items: center; gap: 16px;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--steel-2);
}
.testi-btn {
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  transition: all .15s ease;
}
.testi-btn:hover { border-color: var(--orange); color: var(--orange); }
.testi-count { font-variant-numeric: tabular-nums; }
.testi-count #testiNow { color: var(--white); }

.testi-track {
  position: relative;
  min-height: 280px;
}
.testi {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; gap: 24px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: opacity .5s ease, transform .5s ease;
  max-width: 1000px;
}
.testi.on { opacity: 1; pointer-events: auto; transform: none; }
.testi .quote-mark {
  font-family: var(--display);
  font-size: 100px;
  line-height: 0.6;
  color: var(--orange);
  height: 50px;
}
.testi .display { font-size: clamp(22px, 2.8vw, 36px); line-height: 1.15; color: var(--white); margin: 0; text-transform: none; letter-spacing: 0; }
.testi footer {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel-2);
  padding-top: 16px;
  border-top: 1px solid var(--line);
  margin-top: auto;
}
.testi footer b { color: var(--white); font-weight: 600; }
.testi-disclaimer {
  margin-top: 32px;
  font-size: 11px;
  color: var(--steel);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---------- INSTAGRAM GRID ---------- */
.ig-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
}
@media (max-width: 900px) { .ig-grid { grid-template-columns: repeat(3, 1fr); } }
.ig-tile {
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
  background: var(--ink-3);
}
.ig-tile img { transition: transform .5s ease, opacity .3s ease; }
.ig-tile:hover img { transform: scale(1.06); opacity: 0.7; }
.ig-overlay {
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  color: var(--white);
  opacity: 0;
  background: rgba(10,10,10,0.4);
  transition: opacity .2s ease;
}
.ig-tile:hover .ig-overlay { opacity: 1; }
.ig-disclaimer {
  margin-top: 24px;
  font-size: 11px;
  color: var(--steel);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---------- FINAL CTA ---------- */
.cta-final {
  position: relative;
  padding: clamp(100px, 15vw, 200px) 0;
  overflow: hidden;
  text-align: center;
}
.cta-bg {
  position: absolute; inset: 0;
  z-index: 0;
}
.cta-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(10,10,10,0.5), rgba(10,10,10,0.95));
}
.cta-inner {
  position: relative;
  z-index: 2;
}
.cta-inner .h1 { color: var(--white); margin: 16px 0 32px; }
.cta-inner .lede { margin: 0 auto 40px; }
.cta-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
