/**
 * TEMPO — original Tunai theme for dance & music studios.
 * Stage lights on black: breathing spotlight cones, equalizer bars keeping
 * the beat, diagonal skewed headers, beat-dot dividers, condensed italic
 * caps filled with a magenta→violet→cyan stage-light gradient.
 * Scoped under .tempo-theme.
 */

.tempo-theme {
  --tp-bg: #0a0a10;
  --tp-bg2: #0e0e16;
  --tp-panel: #13131c;
  --tp-ink: #f4f2f8;
  --tp-muted: #9b96ad;
  --tp-line: rgba(244, 242, 248, 0.1);
  --tp-g1: #e93d82;
  --tp-g2: #7c4dff;
  --tp-g3: #22d3ee;
  --tp-accent: #e93d82;
  --tp-soft: rgba(233, 61, 130, 0.14);
  --tp-line-a: rgba(233, 61, 130, 0.26);
  --tp-on: #10060f;
  --tp-g: linear-gradient(100deg, var(--tp-g1), var(--tp-g2) 52%, var(--tp-g3));
  --fx-accent: var(--tp-accent);
  --fx-spot: var(--tp-soft);
  --tp-display: "Anton", "Archivo Black", sans-serif;
  --tp-body: "Inter", ui-sans-serif, system-ui, sans-serif;

  background: var(--tp-bg);
  color: var(--tp-ink);
  color-scheme: dark;
  font-family: var(--tp-body);
  line-height: 1.66;
  overflow-x: hidden;
  min-height: 100vh;
}

.tempo-theme *,
.tempo-theme *::before,
.tempo-theme *::after {
  box-sizing: border-box;
}

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

.tempo-theme a {
  color: inherit;
  text-decoration: none;
}

.tempo-theme ::selection {
  background: var(--tp-accent);
  color: var(--tp-on);
}

.tempo-theme a:focus-visible,
.tempo-theme button:focus-visible {
  outline: 2px solid var(--tp-accent);
  outline-offset: 3px;
}

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

/* ══ Signature glyphs ═══════════════════════════════════════════════════ */

/* Equalizer bars — staggered height keyframes, gradient fills. */
.tp-eq {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 13px;
  flex: none;
}

.tp-eq i {
  width: 3px;
  height: 50%;
  border-radius: 99px;
  background: linear-gradient(180deg, var(--tp-g2), var(--tp-g1));
  animation: tp-eq 0.9s ease-in-out infinite alternate;
}

.tp-eq i:nth-child(3n + 1) {
  background: linear-gradient(180deg, var(--tp-g1), var(--tp-g2));
}

.tp-eq i:nth-child(3n) {
  background: linear-gradient(180deg, var(--tp-g3), var(--tp-g2));
}

.tp-eq i:nth-child(1) { animation-delay: -0.1s; }
.tp-eq i:nth-child(2) { animation-delay: -0.42s; }
.tp-eq i:nth-child(3) { animation-delay: -0.74s; }
.tp-eq i:nth-child(4) { animation-delay: -0.23s; }
.tp-eq i:nth-child(5) { animation-delay: -0.58s; }
.tp-eq i:nth-child(6) { animation-delay: -0.9s; }
.tp-eq i:nth-child(7) { animation-delay: -0.35s; }
.tp-eq i:nth-child(8) { animation-delay: -0.66s; }
.tp-eq i:nth-child(9) { animation-delay: -0.15s; }

@keyframes tp-eq {
  from { height: 22%; }
  to { height: 100%; }
}

.tp-eq--hero {
  height: 44px;
  gap: 7px;
  margin: 26px 0 2px;
}

.tp-eq--hero i {
  width: 9px;
  border-radius: 3px;
}

/* Beat-dot ellipsis — dots pulse in sequence. */
.tp-beats {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  flex: none;
}

.tp-beats i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tp-g1);
  animation: tp-beat 1.25s ease-in-out infinite;
}

.tp-beats i:nth-child(2) {
  background: var(--tp-g2);
  animation-delay: 0.21s;
}

.tp-beats i:nth-child(3) {
  background: var(--tp-g3);
  animation-delay: 0.42s;
}

@keyframes tp-beat {
  0%, 100% {
    opacity: 0.22;
    transform: scale(0.65);
  }
  30% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Spotlight cones — huge conic sweeps from the top corners, breathing. */
.tp-cone {
  position: absolute;
  top: 0;
  height: 100%;
  width: 64%;
  pointer-events: none;
  mix-blend-mode: screen;
  animation: tp-breathe 8s ease-in-out infinite alternate;
}

.tp-cone--l {
  left: 0;
  background: conic-gradient(
    from 108deg at -4% -8%,
    transparent 0deg,
    color-mix(in srgb, var(--tp-g2) 34%, transparent) 12deg,
    color-mix(in srgb, var(--tp-g1) 20%, transparent) 26deg,
    transparent 42deg
  );
}

.tp-cone--r {
  right: 0;
  background: conic-gradient(
    from 182deg at 104% -8%,
    transparent 0deg,
    color-mix(in srgb, var(--tp-g3) 30%, transparent) 12deg,
    color-mix(in srgb, var(--tp-g2) 18%, transparent) 26deg,
    transparent 42deg
  );
  animation-delay: -4s;
}

@keyframes tp-breathe {
  from {
    opacity: 0.45;
  }
  to {
    opacity: 1;
  }
}

/* Gradient ink helper. */
.tp-sec-head h2 em,
.tp-visit h2 em {
  font-style: inherit;
  background: var(--tp-g);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* Italic overhang of the final glyph paints outside the inline box and a
     text-clipped background cuts it off — pad the box past the overhang. */
  padding-right: 0.14em;
  margin-right: -0.14em;
}

/* ══ Nav ════════════════════════════════════════════════════════════════ */

.tp-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 28px;
  background: rgba(10, 10, 16, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--tp-line);
}

.tp-logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.tp-logo .tp-eq {
  height: 17px;
}

.tp-logo .tp-eq i {
  width: 3.5px;
}

.tp-logo-name {
  font-family: var(--tp-display);
  font-weight: 400;
  font-style: italic;
  text-transform: uppercase;
  font-size: 17px;
  letter-spacing: 0.05em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tp-nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.tp-nav-links a {
  color: var(--tp-muted);
  transition: color 0.2s ease;
}

.tp-nav-links a:hover {
  color: var(--tp-ink);
}

/* ══ Buttons — skewed parallelogram, gradient fill, un-skewed label ═════ */

.tp-btn {
  position: relative;
  display: inline-block;
  padding: 15px 34px;
  transform: skewX(-12deg);
  background: linear-gradient(100deg, var(--tp-g1), var(--tp-g2) 55%, var(--tp-g3));
  background-size: 165% 100%;
  background-position: 0% 0;
  color: var(--tp-on);
  font-family: var(--tp-display);
  font-weight: 400;
  font-style: italic;
  text-transform: uppercase;
  font-size: 14.5px;
  letter-spacing: 0.09em;
  border: 0;
  cursor: pointer;
  transition:
    background-position 0.45s ease,
    box-shadow 0.3s ease,
    filter 0.3s ease;
}

.tp-btn > span {
  display: inline-block;
  transform: skewX(12deg);
}

.tp-btn:hover {
  background-position: 100% 0;
  filter: brightness(1.08);
  box-shadow:
    0 10px 44px -6px color-mix(in srgb, var(--tp-accent) 55%, transparent),
    0 4px 18px color-mix(in srgb, var(--tp-g2) 35%, transparent);
}

.tp-btn--ghost {
  background: transparent;
  color: var(--tp-ink);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--tp-ink) 38%, transparent);
}

.tp-btn--ghost:hover {
  background: transparent;
  filter: none;
  box-shadow:
    inset 0 0 0 1.5px var(--tp-accent),
    0 10px 34px -8px color-mix(in srgb, var(--tp-accent) 42%, transparent);
}

.tp-btn--nav {
  padding: 11px 26px;
  font-size: 12.5px;
}

/* ══ Hero ═══════════════════════════════════════════════════════════════ */

.tp-hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  padding: 150px 0 92px;
  overflow: hidden;
}

/* Photo layer — ThemeHero (multi-slide) or a bare img (single slide). */
.tp-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.tp-hero-bg > .theme-hero {
  position: absolute;
  inset: 0;
  width: 100%;
  height: auto;
}

.tp-hero-bg > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Spotlight vignette over the photo. */
.tp-hero-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(
      92% 72% at 50% 6%,
      transparent 0%,
      transparent 32%,
      rgba(10, 10, 16, 0.76) 76%,
      var(--tp-bg) 100%
    ),
    linear-gradient(
      180deg,
      rgba(10, 10, 16, 0.6),
      rgba(10, 10, 16, 0.34) 42%,
      var(--tp-bg) 98%
    );
}

.tp-hero .tp-cone {
  z-index: 2;
}

/* Copy sits above; let swipes fall through to the carousel. */
.tp-hero-inner {
  position: relative;
  z-index: 3;
  width: 100%;
  pointer-events: none;
}

.tp-hero-inner a {
  pointer-events: auto;
}

.tp-hero-eyebrow {
  color: color-mix(in srgb, var(--tp-ink) 78%, transparent);
}

/* Shop name — HUGE stacked lines, skew-italic caps, gradient fills. */
.tp-hero-title {
  margin: 16px 0 0;
  font-family: var(--tp-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(54px, 10vw, 128px);
  line-height: 0.96;
  letter-spacing: 0.005em;
  filter: drop-shadow(0 0 34px color-mix(in srgb, var(--tp-g2) 34%, transparent));
}

.tp-hline {
  --tpa: var(--tp-g1);
  --tpb: var(--tp-g2);
  display: block;
  transform: skewX(-8deg);
  background: linear-gradient(180deg, var(--tpa), var(--tpb));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  overflow-wrap: anywhere;
  padding-right: 0.06em;
}

.tp-hline:nth-child(3n + 2) {
  --tpa: var(--tp-g2);
  --tpb: var(--tp-g3);
  margin-left: 0.35em;
}

.tp-hline:nth-child(3n) {
  --tpa: var(--tp-g3);
  --tpb: var(--tp-g1);
  margin-left: 0.7em;
}

/* Split-text chars re-clip the same vertical gradient per character, so the
   line reads as one continuous fill before and after hydration. */
.tp-hline .fx-c {
  background: linear-gradient(180deg, var(--tpa), var(--tpb));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Cascade the lines — second and third start a beat later. */
.tp-hero-title .tp-hline:nth-child(2) .fx-c {
  transition-delay: calc(var(--d, 0s) + 0.14s);
}

.tp-hero-title .tp-hline:nth-child(3) .fx-c {
  transition-delay: calc(var(--d, 0s) + 0.28s);
}

.tp-hero-motto {
  margin: 16px 0 32px;
  max-width: 52ch;
  color: color-mix(in srgb, var(--tp-ink) 76%, transparent);
  font-size: 17px;
}

.tp-hero-cta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* Hero copy glides up on load. */
.tp-hero-inner > * {
  animation: tp-rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.tp-hero-inner > *:nth-child(2) { animation-delay: 0.08s; }
.tp-hero-inner > *:nth-child(3) { animation-delay: 0.16s; }
.tp-hero-inner > *:nth-child(4) { animation-delay: 0.24s; }
.tp-hero-inner > *:nth-child(5) { animation-delay: 0.32s; }

@keyframes tp-rise {
  from {
    opacity: 0;
    translate: 0 34px;
  }
}

/* ══ Marquee strip ══════════════════════════════════════════════════════ */

.tp-marquee {
  border-block: 1px solid var(--tp-line);
  padding: 14px 0;
  --fx-mq: 24s;
  background: color-mix(in srgb, var(--tp-panel) 62%, transparent);
}

.tp-marquee b {
  font-family: var(--tp-display);
  font-weight: 400;
  font-style: italic;
  text-transform: uppercase;
  font-size: 16px;
  letter-spacing: 0.1em;
  padding: 0 10px;
  white-space: nowrap;
  color: var(--tp-ink);
}

/* Every other word runs as an outline — stage-bulb rhythm. */
.tp-marquee b:nth-child(2n) {
  color: transparent;
  -webkit-text-stroke: 1px color-mix(in srgb, var(--tp-ink) 52%, transparent);
}

.tp-marquee b::after {
  content: "•";
  margin-left: 34px;
  color: var(--tp-accent);
  -webkit-text-stroke: 0;
}

/* ══ Sections ═══════════════════════════════════════════════════════════ */

.tp-section {
  position: relative;
  padding: 112px 0 96px;
}

/* Diagonal skewed header block — the theme's tilt. */
.tp-sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 26px;
  margin-bottom: 60px;
  transform: skewY(-2deg);
}

.tp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin: 0;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--tp-muted);
}

.tp-sec-head h2 {
  margin: 12px 0 0;
  text-wrap: balance;
  font-family: var(--tp-display);
  font-weight: 400;
  font-style: italic;
  text-transform: uppercase;
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.02;
  letter-spacing: 0.01em;
}

/* ══ Services — the programme ═══════════════════════════════════════════ */

.tp-rows {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--tp-line);
}

.tp-row {
  position: relative;
  display: grid;
  grid-template-columns: 92px 1fr auto;
  align-items: center;
  gap: 26px;
  padding: 26px 12px;
  border-bottom: 1px solid var(--tp-line);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.3s ease;
}

/* Gradient underline chase — ::before, since data-spot owns ::after. */
.tp-row::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--tp-g);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.7, 0, 0.2, 1);
  z-index: 1;
}

.tp-row:hover {
  /* Slide along the diagonal. */
  transform: translate(10px, -3px);
  background: color-mix(in srgb, var(--tp-panel) 55%, transparent);
}

.tp-row:hover::before {
  transform: scaleX(1);
}

.tp-row-num {
  font-family: var(--tp-display);
  font-weight: 400;
  font-style: italic;
  font-size: 46px;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px color-mix(in srgb, var(--tp-ink) 26%, transparent);
  transition: -webkit-text-stroke-color 0.3s ease;
}

.tp-row:hover .tp-row-num {
  -webkit-text-stroke-color: var(--tp-accent);
}

.tp-row-main {
  min-width: 0;
}

.tp-row-name {
  display: block;
  font-family: var(--tp-display);
  font-weight: 400;
  font-style: italic;
  text-transform: uppercase;
  font-size: clamp(19px, 2.4vw, 28px);
  line-height: 1.12;
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;
}

.tp-row-meta {
  display: block;
  margin-top: 6px;
  color: var(--tp-muted);
  font-size: 13.5px;
  letter-spacing: 0.06em;
}

.tp-row-right {
  text-align: right;
}

.tp-price {
  display: block;
  font-family: var(--tp-display);
  font-weight: 400;
  font-style: italic;
  font-size: 21px;
  letter-spacing: 0.03em;
  white-space: nowrap;
  color: var(--tp-accent);
  text-shadow: 0 0 20px color-mix(in srgb, var(--tp-accent) 55%, transparent);
}

.tp-row-book {
  display: block;
  margin-top: 5px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--tp-muted);
  opacity: 0;
  translate: -8px 0;
  transition: opacity 0.25s ease, translate 0.25s ease, color 0.25s ease;
}

.tp-row:hover .tp-row-book {
  opacity: 1;
  translate: 0 0;
  color: var(--tp-ink);
}

/* ══ Gallery — film strip meets stage ═══════════════════════════════════ */

.tp-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.tp-gallery figure {
  margin: 0;
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--tp-panel);
  border: 1px solid var(--tp-line);
  transform: rotate(-1.4deg);
  transition:
    transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.tp-gallery figure:nth-child(2n) {
  transform: rotate(1.2deg);
}

.tp-gallery figure:nth-child(3n) {
  transform: rotate(-0.8deg);
}

.tp-gallery figure:hover {
  transform: rotate(0deg);
  z-index: 2;
  border-color: color-mix(in srgb, var(--tp-accent) 55%, transparent);
  box-shadow: 0 20px 60px -18px color-mix(in srgb, var(--tp-accent) 50%, transparent);
}

.tp-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Stage-light sheen that sweeps across on hover. */
.tp-gallery figure::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.25) 50%, transparent 60%);
  transform: translateX(-130%);
  transition: transform 0.7s ease;
}

.tp-gallery figure:hover::after {
  transform: translateX(130%);
}

.tp-gallery figure:hover img {
  transform: scale(1.05);
}

/* ══ Team — instructors ═════════════════════════════════════════════════ */

/* Centered flex rows — a trailing pair of cards sits centre-stage instead of
   leaving grid holes on the right. */
.tp-team {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.tp-member {
  flex: 0 1 252px;
  min-width: 0;
  position: relative;
  background: var(--tp-panel);
  border: 1px solid var(--tp-line);
  padding-bottom: 20px;
  overflow: hidden;
  transition:
    translate 0.28s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.28s ease,
    border-color 0.28s ease;
}

.tp-member:hover {
  translate: 0 -6px;
  border-color: color-mix(in srgb, var(--tp-accent) 45%, transparent);
  box-shadow: 0 22px 54px -20px color-mix(in srgb, var(--tp-g2) 55%, transparent);
}

.tp-member-photo {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  margin-bottom: 16px;
}

.tp-member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Stage-light sheen over the portrait. */
.tp-member-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.25) 50%, transparent 60%);
  transform: translateX(-130%);
  transition: transform 0.7s ease;
}

.tp-member:hover .tp-member-photo::after {
  transform: translateX(130%);
}

.tp-member:hover .tp-member-photo img {
  transform: scale(1.05);
}

.tp-member h3 {
  margin: 0 18px 3px;
  font-family: var(--tp-display);
  font-weight: 400;
  font-style: italic;
  text-transform: uppercase;
  font-size: 19px;
  line-height: 1.15;
  letter-spacing: 0.03em;
  overflow-wrap: anywhere;
}

.tp-member p {
  margin: 0 18px;
  color: var(--tp-muted);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Gradient bar that extends on hover. */
.tp-member-bar {
  display: block;
  height: 3px;
  width: 34%;
  margin: 14px 18px 0;
  background: var(--tp-g);
  transition: width 0.4s cubic-bezier(0.7, 0, 0.2, 1);
}

.tp-member:hover .tp-member-bar {
  width: calc(100% - 36px);
}

/* ══ Classes — the setlist ══════════════════════════════════════════════ */

.tp-classes {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 880px;
  margin: 0 auto;
}

.tp-class {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px 24px;
  background: var(--tp-panel);
  border: 1px solid var(--tp-line);
  transition:
    transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 0.28s ease,
    box-shadow 0.28s ease;
}

.tp-class:hover {
  transform: translate(8px, -2px);
  border-color: color-mix(in srgb, var(--tp-accent) 45%, transparent);
  box-shadow: 0 16px 44px -18px color-mix(in srgb, var(--tp-accent) 45%, transparent);
}

/* Date in a marquee-bulb border box. */
.tp-class-date {
  flex: none;
  min-width: 72px;
  text-align: center;
  padding: 9px 12px 11px;
  border: 3px dotted var(--tp-line-a);
  animation: tp-bulbs 1.6s steps(2) infinite;
}

@keyframes tp-bulbs {
  0% {
    border-color: var(--tp-line-a);
  }
  100% {
    border-color: color-mix(in srgb, var(--tp-accent) 60%, transparent);
  }
}

.tp-class-date b {
  display: block;
  font-family: var(--tp-display);
  font-weight: 400;
  font-style: italic;
  font-size: 25px;
  line-height: 1;
  background: var(--tp-g);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tp-class-date span {
  display: block;
  margin-top: 4px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--tp-muted);
}

.tp-class-main {
  flex: 1;
  min-width: 0;
}

.tp-class-main b {
  display: block;
  font-family: var(--tp-display);
  font-weight: 400;
  font-style: italic;
  text-transform: uppercase;
  font-size: 17px;
  letter-spacing: 0.03em;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.tp-class-when {
  display: block;
  margin-top: 4px;
  color: var(--tp-muted);
  font-size: 13.5px;
}

.tp-class-seats {
  flex: none;
  font-family: var(--tp-display);
  font-weight: 400;
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--tp-accent);
  text-shadow: 0 0 16px color-mix(in srgb, var(--tp-accent) 50%, transparent);
}

.tp-class-seats.is-full {
  color: var(--tp-muted);
  text-shadow: none;
}

/* ══ Visit — the green room ═════════════════════════════════════════════ */

.tp-visit {
  position: relative;
  overflow: hidden;
  padding: 132px 0 122px;
  text-align: center;
  background: var(--tp-bg2);
  border-top: 1px solid var(--tp-line);
}

.tp-visit-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tp-visit h2 {
  margin: 14px 0 26px;
  font-family: var(--tp-display);
  font-weight: 400;
  font-style: italic;
  text-transform: uppercase;
  font-size: clamp(38px, 5.4vw, 66px);
  line-height: 1;
  letter-spacing: 0.01em;
}

.tp-visit-info {
  max-width: 60ch;
}

.tp-visit-info p {
  margin: 0 0 8px;
  color: var(--tp-muted);
}

.tp-visit-info a {
  color: var(--tp-ink);
  border-bottom: 1px solid var(--tp-accent);
  transition: color 0.2s ease;
}

.tp-visit-info a:hover {
  color: var(--tp-accent);
}

.tp-visit .tp-btn {
  margin-top: 30px;
}

.tp-outlets {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  font-size: 14px;
}

.tp-outlets a {
  color: var(--tp-muted);
  transition: color 0.2s ease;
}

.tp-outlets a:hover {
  color: var(--tp-accent);
}

/* ══ Footer ═════════════════════════════════════════════════════════════ */

.tp-footer {
  border-top: 1px solid var(--tp-line);
  padding: 30px 0 42px;
  color: var(--tp-muted);
  font-size: 13px;
}

.tp-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.tp-footer a {
  transition: color 0.2s ease;
}

.tp-footer a:hover {
  color: var(--tp-accent);
}

.tp-footer-social {
  display: flex;
  gap: 22px;
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ══ Shared helpers restyled ════════════════════════════════════════════ */

.tempo-theme .theme-view-more {
  color: var(--tp-ink);
  letter-spacing: 0.04em;
}

.tempo-theme .theme-view-more:hover {
  color: var(--tp-accent);
}

.tempo-theme .theme-view-more-icon {
  border-color: var(--tp-accent);
  color: var(--tp-accent);
}

/* ══ Motion (ThemeFX) ═══════════════════════════════════════════════════ */

.tfx .tempo-theme [data-reveal] {
  opacity: 0;
  translate: 0 30px;
  transition: opacity 0.55s ease, translate 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.tfx .tempo-theme [data-reveal].is-in {
  opacity: 1;
  translate: 0 0;
}

/* ══ Mobile booking bar ═════════════════════════════════════════════════ */

.tp-mobile-bar {
  display: none;
}

/* ══ Responsive ═════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .tp-hero {
    min-height: 82vh;
    padding: 126px 0 72px;
  }

  .tp-section {
    padding: 92px 0 78px;
  }

  .tp-visit {
    padding: 104px 0 96px;
  }

  .tp-gallery {
    gap: 16px;
  }
}

@media (max-width: 860px) {
  .tp-nav-links {
    display: none;
  }

  .tp-sec-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 46px;
  }

  .tp-beats {
    padding-bottom: 0;
  }

  .tp-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .tp-team {
    gap: 18px;
  }

  .tp-member {
    flex-basis: 190px;
  }

  .tp-row {
    grid-template-columns: 64px 1fr auto;
    gap: 18px;
    padding: 22px 8px;
  }

  .tp-row-num {
    font-size: 34px;
  }
}

@media (max-width: 720px) {
  .tp-nav > .tp-btn {
    display: none;
  }

  .tp-mobile-bar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99;
    justify-content: center;
    padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
    background: rgba(10, 10, 16, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--tp-line);
  }

  .tp-mobile-bar .tp-btn {
    width: 100%;
    text-align: center;
    transform: skewX(-8deg);
  }

  .tp-mobile-bar .tp-btn > span {
    transform: skewX(8deg);
  }

  .tp-footer {
    padding-bottom: 118px;
  }

  /* No hover on touch — keep the per-row CTA visible. */
  .tp-row-book {
    opacity: 1;
    translate: 0 0;
  }
}

@media (max-width: 640px) {
  .tp-hero {
    padding: 112px 0 60px;
  }

  .tp-hero-motto {
    font-size: 15.5px;
  }

  .tp-eq--hero {
    height: 32px;
    gap: 5px;
  }

  .tp-eq--hero i {
    width: 7px;
  }

  .tp-hline:nth-child(3n + 2) {
    margin-left: 0.2em;
  }

  .tp-hline:nth-child(3n) {
    margin-left: 0.4em;
  }

  .tp-row {
    grid-template-columns: 44px 1fr;
    grid-template-areas:
      "num main"
      "num right";
    row-gap: 8px;
  }

  .tp-row-num {
    grid-area: num;
    font-size: 26px;
    align-self: start;
  }

  .tp-row-main {
    grid-area: main;
  }

  .tp-row-right {
    grid-area: right;
    display: flex;
    align-items: baseline;
    gap: 16px;
    text-align: left;
  }

  .tp-row-book {
    margin-top: 0;
  }

  .tp-class {
    flex-wrap: wrap;
    gap: 14px 20px;
  }

  .tp-class-seats {
    flex-basis: 100%;
  }

  .tp-visit .tp-btn {
    width: 100%;
    max-width: 340px;
    text-align: center;
  }

  /* Two instructor cards per row — full-width portrait cards each ate a
     whole screen of scrolling. */
  .tp-team {
    gap: 14px;
  }

  .tp-member {
    flex: 1 1 calc(50% - 7px);
  }

  .tp-member h3 {
    margin: 0 14px 3px;
    font-size: 16px;
  }

  .tp-member p {
    margin: 0 14px;
    font-size: 11px;
  }

  .tp-member-bar {
    margin: 12px 14px 0;
  }
}

/* ══ Reduced motion ═════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  .tp-eq i,
  .tp-beats i,
  .tp-cone,
  .tp-class-date,
  .tp-hero-inner > * {
    animation: none;
  }

  .tfx .tempo-theme [data-reveal] {
    opacity: 1;
    translate: 0 0;
    transition: none;
  }

  .tp-row,
  .tp-class,
  .tp-gallery figure,
  .tp-gallery figure::after,
  .tp-gallery img,
  .tp-member,
  .tp-member-photo::after,
  .tp-member-photo img,
  .tp-member-bar,
  .tp-btn {
    transition: none;
  }
}

.tp-hline {
  font-size: calc(1em * var(--tx-scale, 1));
}

/* ── Themed backdrop: equalizer bars and notes ──────────────────────────────
   A page-wide motif tile pinned behind every section, so the canvas reads as
   equalizer bars and notes the way the seasonal themes carry their own festive
   backdrop. `::before` is left to the existing colour wash; this rides on
   `::after` at z-index -1, which keeps it above the page background but under
   every in-flow section without having to restack the theme's own children.
   `isolation` makes the root a stacking context so the -1 layer stays inside it
   (above the root's own background) instead of sinking behind the page. */
.tempo-theme {
  isolation: isolate;
}

.tempo-theme::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='116'%20height='116'%3E%20%3Cg%20fill='none'%20stroke='%23f4f2f8'%20stroke-opacity='.08'%20stroke-width='1.4'%20stroke-linecap='round'%3E%20%3Cpath%20d='M12%2046v14M20%2038v22M28%2028v32M36%2042v18M44%2034v26'/%3E%20%3Cpath%20d='M74%2096v14M82%2088v22M90%2078v32M98%2092v18M106%2084v26'/%3E%20%3Cpath%20d='M76%2016v26a7%207%200%2011-4-6V22l16-4v20a7%207%200%2011-4-6'/%3E%20%3C/g%3E%3C/svg%3E");
  background-size: 116px 116px;
  background-repeat: repeat;
}

/* ── Deco: backstage ambience — stage-dust sparks rising through the light
   cones, drifting notes and a slow-spinning vinyl behind the show. ── */
.tp-deco {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Lift statically-positioned page children above the deco layer.
   :where() keeps this at zero specificity so it never fights the sticky
   nav, hero stacking or any element that positions itself. */
:where(.tempo-theme > :not(.tp-deco)) {
  position: relative;
  z-index: 1;
}

/* Stage sparks — glowing dust caught in the lights, drifting upward. */
.tp-spark {
  position: absolute;
  top: 100%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--tp-g1);
  box-shadow: 0 0 8px 1px var(--tp-soft);
  opacity: 0.35;
  animation: tp-rise linear infinite;
}

.tp-spark:nth-child(3n) {
  background: var(--tp-g3);
  box-shadow: 0 0 8px 1px rgba(34, 211, 238, 0.18);
}

.tp-spark:nth-child(3n + 2) {
  background: var(--tp-g2);
  box-shadow: 0 0 8px 1px rgba(124, 77, 255, 0.18);
}

@keyframes tp-rise {
  from { transform: translateY(0); }
  to { transform: translateY(calc(-100vh - 30px)); }
}

.tp-spark--1 { left: 4%; animation-duration: 16s; }
.tp-spark--2 { left: 10%; width: 3px; height: 3px; animation-duration: 22s; animation-delay: -9s; }
.tp-spark--3 { left: 17%; animation-duration: 18s; animation-delay: -14s; }
.tp-spark--4 { left: 25%; width: 5px; height: 5px; animation-duration: 25s; animation-delay: -3s; }
.tp-spark--5 { left: 32%; animation-duration: 17s; animation-delay: -11s; }
.tp-spark--6 { left: 40%; width: 3px; height: 3px; animation-duration: 23s; animation-delay: -18s; }
.tp-spark--7 { left: 48%; animation-duration: 19s; animation-delay: -5s; }
.tp-spark--8 { left: 55%; width: 5px; height: 5px; animation-duration: 26s; animation-delay: -13s; }
.tp-spark--9 { left: 62%; animation-duration: 17.5s; animation-delay: -16s; }
.tp-spark--10 { left: 70%; width: 3px; height: 3px; animation-duration: 21s; animation-delay: -2s; }
.tp-spark--11 { left: 77%; animation-duration: 20s; animation-delay: -8s; }
.tp-spark--12 { left: 84%; width: 4px; height: 4px; animation-duration: 24s; animation-delay: -19s; }
.tp-spark--13 { left: 91%; animation-duration: 18.5s; animation-delay: -6s; }
.tp-spark--14 { left: 96%; width: 3px; height: 3px; animation-duration: 27s; animation-delay: -21s; }
.tp-spark--15 { left: 21%; width: 4px; height: 4px; animation-duration: 23.5s; animation-delay: -12s; }
.tp-spark--16 { left: 66%; width: 4px; height: 4px; animation-duration: 21.5s; animation-delay: -17s; }

/* Notes — drifting through the wings. */
.tp-deco-note {
  position: absolute;
  width: 38px;
  height: 60px;
  color: var(--tp-g1);
  opacity: 0.08;
  animation: tp-drift 21s ease-in-out infinite alternate;
}

.tp-deco-note--1 { top: 18%; left: 4%; transform: rotate(-10deg); }
.tp-deco-note--2 { top: 66%; right: 5%; width: 28px; height: 46px; color: var(--tp-g3); transform: rotate(14deg); animation-delay: -10s; animation-duration: 26s; }

.tp-deco-beam {
  position: absolute;
  width: 56px;
  height: 60px;
  color: var(--tp-g2);
  opacity: 0.08;
  animation: tp-drift 24s ease-in-out infinite alternate;
}

.tp-deco-beam--1 { top: 34%; right: 3%; transform: rotate(8deg); animation-delay: -6s; }
.tp-deco-beam--2 { bottom: 10%; left: 8%; width: 42px; height: 46px; color: var(--tp-g1); transform: rotate(-12deg); animation-delay: -15s; animation-duration: 19s; }

/* Vinyl — spinning at 33⅓, very far back in the mix. */
.tp-deco-vinyl {
  position: absolute;
  width: 76px;
  height: 76px;
  color: var(--tp-g3);
  opacity: 0.06;
  animation: tp-spin 28s linear infinite;
}

.tp-deco-vinyl--1 { top: 10%; right: 10%; }
.tp-deco-vinyl--2 { bottom: 20%; left: 3%; width: 54px; height: 54px; color: var(--tp-g2); animation-delay: -13s; animation-duration: 34s; }

@keyframes tp-drift {
  from { translate: 0 0; rotate: 0deg; }
  to { translate: 12px -20px; rotate: 6deg; }
}

@keyframes tp-spin {
  to { transform: rotate(360deg); }
}

/* ── Large anchored ornaments — stage rig at the viewport edges. ── */

/* Par-can stage lights rigged to the top edge, beams breathing color. */
.tp-deco-parcan {
  position: absolute;
  top: -4px;
  width: 104px;
  height: 180px;
  animation: tp-hang 7s ease-in-out infinite;
  transform-origin: 50% 0;
}

.tp-deco-parcan--1 {
  left: 5%;
  filter: drop-shadow(0 10px 26px rgba(233, 61, 130, 0.35));
}

.tp-deco-parcan--2 {
  right: 5%;
  filter: drop-shadow(0 10px 26px rgba(34, 211, 238, 0.35));
  animation-delay: -3.5s;
  animation-duration: 8s;
}

/* Big vinyl spinning half off the right margin. */
.tp-deco-bigvinyl {
  position: absolute;
  top: 46%;
  right: -110px;
  width: 230px;
  height: 230px;
  opacity: 0.85;
  animation: tp-spin 46s linear infinite;
}

/* Studio headphones resting in the bottom-left corner. */
.tp-deco-phones {
  position: absolute;
  bottom: -34px;
  left: -34px;
  width: 190px;
  height: 190px;
  opacity: 0.8;
  transform: rotate(14deg);
  animation: tp-drift 28s ease-in-out infinite alternate;
}

@keyframes tp-hang {
  0%, 100% { transform: rotate(-3deg); }
  50% { transform: rotate(3deg); }
}

@media (max-width: 720px) {
  .tp-deco-parcan--2,
  .tp-deco-bigvinyl {
    display: none;
  }

  .tp-deco-parcan--1 { width: 72px; height: 126px; }
  .tp-deco-phones { width: 130px; height: 130px; bottom: -26px; left: -26px; }
}

@media (prefers-reduced-motion: reduce) {
  .tp-deco * {
    animation: none !important;
  }
}
