/* ==========================================================================
   Wuxing Movement Lab — site styles
   One grid, one spacing scale, one type scale. Every section uses .container
   so left edges line up across the whole site.
   ========================================================================== */

:root {
  /* Colours (taken from the original site) */
  --ink: #181818;          /* header bar */
  --char: #202020;         /* dark sections */
  --char-2: #2a2a2a;       /* cards on dark */
  --paper: #fff8f1;        /* light sections */
  --sand: #fff2dd;         /* footer */
  --stone: #efefef;        /* light ink background */
  --gold: #e2ddb0;         /* display headings on dark */
  --gold-2: #f3e7ae;       /* small headings on dark */
  --gold-soft: #d6d3ac;    /* links on dark */
  --cream: #f3ebd7;        /* button text on dark */
  --rose: #daa49c;         /* accent */
  --text-dark: #383838;
  --text-light: #e6e6e6;
  --muted-dark: #6b6b6b;
  --muted-light: #a9a698;
  --line-dark: rgba(226, 221, 176, .28);
  --line-light: rgba(0, 0, 0, .14);
  --alert: #a80000;

  /* Type */
  --font-display: "Cormorant Infant", "Cormorant Garamond", Georgia, serif;
  --font-body: "Cormorant Garamond", Georgia, serif;
  --font-ui: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Layout */
  --container: 1100px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(64px, 9vw, 112px);
  --gap: clamp(28px, 5vw, 64px);
  --radius: 14px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 19px;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--char);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.05; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; }

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 200; background: var(--gold); color: var(--ink); padding: 8px 14px; border-radius: 6px; }
.skip-link:focus { left: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(820px + 2 * var(--gutter)); }

/* ---------- Section skins ---------- */
.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(40px, 6vw, 72px); }
.skin-dark { background: var(--char); color: var(--text-light); }
.skin-ink-dark { background: var(--char) url("../img/bg-ink-dark.webp") center / cover no-repeat; color: var(--text-light); }
.skin-ink-light { background: var(--stone) url("../img/bg-ink-light.webp") center / cover no-repeat; color: var(--text-dark); }
.skin-paper { background: var(--paper); color: var(--text-dark); }
.skin-sand { background: var(--sand); color: var(--text-dark); }

/* ---------- Type ---------- */
.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .34em;
  text-transform: uppercase;
}
.display {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  line-height: .95;
}
.display--xl { font-size: clamp(56px, 10vw, 125px); }
.display--lg { font-size: clamp(44px, 7vw, 84px); }
.display--md { font-size: clamp(38px, 5.2vw, 58px); }
.display--sm { font-size: clamp(28px, 3.4vw, 40px); }
.on-dark .display, .skin-dark .display, .skin-ink-dark .display { color: var(--gold); }
.title {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(30px, 3.6vw, 40px);
  letter-spacing: .12em;
  text-transform: uppercase;
  line-height: 1.15;
}
.lead { font-size: clamp(20px, 2vw, 22px); font-weight: 600; }
.muted { opacity: .75; }
.prose p { margin-bottom: 1.1em; }
.prose { max-width: 68ch; }
.center { text-align: center; }
.center.prose, .center .prose { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 46px; padding: 10px 26px;
  font-family: var(--font-body); font-weight: 600; font-size: 18px; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; border-radius: 999px; border: 1px solid currentColor;
  background: transparent; color: inherit; transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn--solid { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.btn--solid:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn--gold { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn--gold:hover { background: var(--cream); border-color: var(--cream); }
.btn--sm { min-height: 38px; padding: 6px 18px; font-size: 15px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.btn-row.center { justify-content: center; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--ink); color: #fff; }
.site-header .container { max-width: none; display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: flex; align-items: center; flex: none; text-decoration: none; color: #fff; }
.brand__mark { height: 50px; width: 50px; flex: none; }
/* the name hides behind the circle and slides out on hover / keyboard focus */
.brand__text {
  display: block; overflow: hidden; max-width: 0; opacity: 0; flex: none;
  transform: translateX(-14px);
  transition: max-width .6s cubic-bezier(.22,1,.36,1), opacity .4s ease, transform .6s cubic-bezier(.22,1,.36,1), margin .6s cubic-bezier(.22,1,.36,1);
}
.brand__text img { display: block; height: 14px; margin-top: 1px; width: auto; max-width: none; }
.brand:hover .brand__text, .brand:focus-visible .brand__text { max-width: 70px; opacity: 1; transform: none; margin-left: -5px; }
@media (prefers-reduced-motion: reduce) { .brand__text { transition: none; } }
.header-right { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.nav-list { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-list a { text-decoration: line-through; text-decoration-color: transparent; text-decoration-thickness: 1px; font-size: 20px; letter-spacing: .06em; color: #fff; padding: 6px 0; transition: color .2s, text-decoration-color .2s; }
.nav-list a:hover, .nav-list a[aria-current="page"] { color: var(--gold); }
.nav-list a[aria-current="page"] { text-decoration-color: var(--gold); }
.socials { display: flex; gap: 12px; align-items: center; list-style: none; margin: 0; padding: 0; }
.socials a { display: grid; place-items: center; width: 30px; height: 30px; color: inherit; opacity: .85; transition: opacity .2s, color .2s; }
.socials a:hover { opacity: 1; color: var(--gold); }
.socials svg { width: 18px; height: 18px; fill: currentColor; }
.site-header .socials { padding-right: 22px; border-right: 1px solid rgba(255,255,255,.18); }
/* desktop: socials as a small 2x2 square to the right of the menu */
.site-header .socials--square { display: grid; grid-template-columns: repeat(2, 20px); gap: 4px 6px; padding: 0 0 0 22px; border-right: 0; border-left: 1px solid rgba(255,255,255,.18); }
.socials--square a { width: 20px; height: 20px; }
.socials--square svg { width: 14px; height: 14px; }
.nav-toggle { display: none; background: none; border: 0; color: #fff; width: 44px; height: 44px; padding: 10px; }
.nav-toggle span { display: block; height: 2px; background: currentColor; margin: 5px 0; transition: transform .25s, opacity .25s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-header .socials { display: none; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; background: var(--ink);
    padding: 12px var(--gutter) 28px; border-top: 1px solid rgba(255,255,255,.08);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav-open .site-nav { opacity: 1; visibility: visible; transform: none; }
  .nav-list { flex-direction: column; gap: 4px; }
  .nav-list a { display: block; font-size: 24px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .site-nav .socials { display: flex; margin-top: 18px; }
}
@media (min-width: 861px) { .site-nav .socials { display: none; } }

/* ---------- Dance page logo + title (title tucked against the brush, like the original) ---------- */
.dance-mark { position: relative; width: min(520px, 72vw); margin-inline: auto; transform: translateX(-12%); container-type: inline-size; }
.dance-mark img { display: block; width: 100%; height: auto; }
.dance-mark__text { position: absolute; left: 50%; bottom: 1%; color: #fbfcf2; white-space: nowrap; }
.dance-mark__text h1 { margin: 0; font-family: var(--font-display); font-weight: 500; text-transform: uppercase; font-size: 19cqw; line-height: .9; letter-spacing: .01em; color: inherit; }
.dance-mark__text p { margin: .2em 0 0 .25em; font-family: var(--font-display); text-transform: uppercase; font-size: 6.4cqw; letter-spacing: .14em; line-height: 1; }

/* ---------- Split rows (text + image) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items: center; }
.split--reverse > :first-child { order: 2; }
.split__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 4px; }
.split__media--tall img { aspect-ratio: 4 / 5; }
.split__text .display { margin-bottom: 26px; }
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse > :first-child { order: 0; }
}

/* ---------- Hero ---------- */
.hero { position: relative; display: grid; place-items: center; min-height: calc(100svh - var(--header-h)); overflow: hidden; color: #fff; text-align: center; }
.hero__bg { position: absolute; inset: 0; background: var(--char) center / cover no-repeat; }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.52); }
.hero__inner { position: relative; padding: 48px var(--gutter); width: 100%; }
.hero__logo { width: min(760px, 88vw); margin-inline: auto; }
.hero__tagline { margin-top: 18px; color: var(--gold); }
.hero__scroll { position: absolute; left: 50%; bottom: 26px; translate: -50% 0; width: 1px; height: 54px; background: linear-gradient(var(--gold), transparent); }
.hero--short { min-height: clamp(380px, 62vh, 620px); }

/* ---------- Video hero (as on the original site) ---------- */
.hero--video { min-height: calc(100svh - var(--header-h)); align-content: center; }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero--video .hero__bg { background: #0b0b0b url("../img/hero-poster.webp") center / cover no-repeat; }
.hero--video .hero__bg::after { background: radial-gradient(ellipse at center, rgba(0,0,0,.35), rgba(0,0,0,.72)); }
.hero--video .hero__inner { padding-bottom: 48px; }
.hero__logo { animation: breathe 9s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: scale(1); opacity: .96; } 50% { transform: scale(1.025); opacity: 1; } }


.split__media { position: relative; }
@keyframes spin { to { transform: rotate(360deg); } }

.link-row { display: flex; flex-wrap: wrap; gap: 14px 28px; }
.text-link { background: none; border: 0; padding: 0 0 2px; color: var(--gold); font-family: var(--font-ui); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; border-bottom: 1px solid currentColor; }
.text-link:hover { color: #fff; }

/* Floating popup: hidden over the video, comes in fully open at "The Practices Offered",
   folds into a ball at "Upcoming events" and fades away at the "In practice" photos. */
.float-book {
  --ease: cubic-bezier(.22, 1, .36, 1);       /* soft ease-out */
  --ease-io: cubic-bezier(.65, 0, .35, 1);    /* soft in-out */
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  display: flex; align-items: center; padding: 6px; border-radius: 999px;
  max-width: calc(100vw - 24px);
  background: rgba(24,24,24,.92); color: #fff; text-decoration: none; border: 1px solid rgba(226,221,176,.4);
  box-shadow: 0 14px 34px rgba(0,0,0,.35); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transform: translateY(18px) scale(.7); opacity: 0; pointer-events: none; will-change: transform, opacity;
  transition: transform .7s var(--ease), opacity .5s ease, border-color .4s ease, box-shadow .4s ease;
}
.float-book.is-shown { transform: none; opacity: 1; pointer-events: auto; }
.float-book:hover { border-color: var(--gold); box-shadow: 0 16px 40px rgba(0,0,0,.45); }

.float-book__ball { position: relative; flex: none; width: 46px; height: 46px; display: grid; place-items: center; }
/* Static logo with a pulsing gold notification dot */
.float-book__ball img { width: 34px; height: 34px; object-fit: contain; }
.float-book__dot { position: absolute; top: 3px; right: 3px; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); animation: pulse 2.2s infinite; }

.float-book__body {
  display: flex; align-items: center; gap: 12px; overflow: hidden; white-space: nowrap;
  max-width: var(--bw, 340px); padding-left: 10px; opacity: 1;
  /* opening: width grows first, text fades in as it settles */
  transition: max-width .75s var(--ease-io), padding-left .75s var(--ease-io), opacity .45s ease .3s;
}
.float-book__body > * { transition: transform .75s var(--ease); }
.float-book__text { display: grid; line-height: 1.1; }
.float-book small { font-family: var(--font-ui); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.float-book strong { font-size: 17px; font-weight: 600; }
.float-book__cta { font-family: var(--font-ui); font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; padding: 10px 16px; border-radius: 999px; background: var(--gold); color: var(--ink); }
.float-book:hover .float-book__cta { background: var(--cream); }

/* Ball state: text fades out first, then the pill closes around the logo */
.float-book.is-ball .float-book__body {
  max-width: 0; padding-left: 0; opacity: 0;
  transition: max-width .7s var(--ease-io) .1s, padding-left .7s var(--ease-io) .1s, opacity .25s ease;
}
.float-book.is-ball .float-book__body > * { transform: translateX(-12px); }
.float-book.is-ball { border-color: rgba(226,221,176,.6); }
/* Hovering the ball (desktop) peeks it open again */
@media (hover: hover) {
  .float-book.is-ball:hover .float-book__body { max-width: var(--bw, 340px); padding-left: 10px; opacity: 1; transition: max-width .6s var(--ease-io), padding-left .6s var(--ease-io), opacity .35s ease .2s; }
  .float-book.is-ball:hover .float-book__body > * { transform: none; }
}

@media (max-width: 560px) { .float-book { right: 12px; bottom: 12px; } .float-book strong { font-size: 16px; } }

@media (prefers-reduced-motion: reduce) {
  .hero__logo, .float-book__dot { animation: none; }
}

/* ---------- Page title (staggered "THE / PRACTICES / OFFERED") ---------- */
.stack-title { display: grid; justify-content: center; text-align: center; }
.stack-title .eyebrow { color: inherit; }
.stack-title .eyebrow:first-child { justify-self: start; }
.stack-title .eyebrow:last-child { justify-self: end; }
.rule { height: 1px; border: 0; background: currentColor; opacity: .25; margin: 0; }

/* ---------- Practices ---------- */
.practice .display { line-height: .95; }
.practice .display span { display: block; }
.practice + .practice { border-top: 1px solid var(--line-dark); }

/* ---------- Events ---------- */
.events-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 24px; margin-bottom: 32px; }
.events { display: grid; gap: 14px; }
.event {
  display: grid; grid-template-columns: 92px 1fr auto; gap: 24px; align-items: center;
  padding: 18px 22px; background: #fff; border: 1px solid var(--line-light); border-radius: var(--radius);
}
.event__date { text-align: center; border-right: 1px solid var(--line-light); padding-right: 20px; line-height: 1; }
.event__day { font-family: var(--font-display); font-weight: 700; font-size: 42px; color: var(--ink); }
.event__month { font-family: var(--font-ui); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; margin-top: 6px; }
.event__title { font-family: var(--font-display); font-weight: 700; font-size: 26px; color: var(--ink); line-height: 1.1; }
.event__meta { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 6px; font-family: var(--font-ui); font-size: 14px; color: var(--muted-dark); }
.event__meta span { display: inline-flex; align-items: center; gap: 6px; }
.event__meta svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.events-empty { padding: 28px 22px; border: 1px dashed rgba(0,0,0,.25); border-radius: var(--radius); text-align: center; }
.events-empty strong { display: block; font-size: 15px; letter-spacing: .2em; text-transform: uppercase; color: var(--alert); margin-bottom: 6px; }
.events-loading { font-family: var(--font-ui); font-size: 14px; color: var(--muted-dark); padding: 18px 0; }
@media (max-width: 640px) {
  .event { grid-template-columns: 70px 1fr; gap: 16px; padding: 16px; }
  .event__date { padding-right: 14px; }
  .event__day { font-size: 34px; }
  .event .btn { grid-column: 1 / -1; width: 100%; }
}

/* ---------- Arrangements ---------- */
.arrangements { display: grid; }
.arrangement { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px var(--gap); align-items: start; padding-block: 36px; border-top: 1px solid var(--line-dark); }
.arrangement:last-child { border-bottom: 1px solid var(--line-dark); }
.arrangement .display { color: #e2e2e2; }
.arrangement p { margin-bottom: 16px; }
.arrangement a.more { font-family: var(--font-ui); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
@media (max-width: 760px) { .arrangement { grid-template-columns: 1fr; } }

/* ---------- Carousel (scroll-snap) ---------- */
.carousel { position: relative; }
.carousel__track {
  /* Tall, slim photos at the original strip height: about 3.5 across the content width
     (2.5 on phones). Photos are cropped to fit; on hover a photo widens to its real shape. */
  --gap: 16px;
  --item-w: calc((min(var(--container), 100vw - 2 * var(--gutter)) - 3 * var(--gap)) / 3.5);
  --item-h: clamp(380px, 40vw, 520px);
  --edge: max(var(--gutter), calc((100% - var(--container)) / 2));
  display: flex; gap: var(--gap); align-items: flex-start;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge);
  padding: 10px var(--edge) 34px; scrollbar-width: thin; scrollbar-color: rgba(0,0,0,.3) transparent;
}
.carousel__track > * { scroll-snap-align: start; }
.carousel__item {
  margin: 0; position: relative; flex: 0 0 var(--item-w); min-width: 0;
  transition: flex-basis .7s cubic-bezier(.22,1,.36,1);
}
/* Photo frames: softly rounded corners and a soft shadow, all photos aligned. */
.carousel__item button {
  position: relative; display: block; width: 100%; padding: 0; border: 0; background: #111;
  border-radius: 18px; overflow: hidden; isolation: isolate;
  box-shadow: 0 1px 2px rgba(0,0,0,.12), 0 18px 40px -18px rgba(0,0,0,.45);
  transition: box-shadow .6s ease;
}
.carousel__item img {
  display: block; width: 100%; height: var(--item-h); object-fit: cover;
  filter: saturate(.92); transition: filter .6s ease;
}
@media (hover: hover) {
  /* widen to the photo's own proportions (never narrower than the slim version, max 70% of the screen) */
  .carousel__item:hover { flex-basis: max(var(--item-w), min(calc(var(--item-h) * var(--ar, 1.5)), 70vw)); }
  .carousel__item:hover button { box-shadow: 0 1px 2px rgba(0,0,0,.12), 0 28px 50px -20px rgba(0,0,0,.55); }
  .carousel__item:hover img { filter: saturate(1.05); }
}
.carousel__nav { margin-left: auto; }
.carousel__item figcaption { padding-top: 14px; }
.carousel__item figcaption h3 { font-family: var(--font-display); font-size: 22px; text-transform: uppercase; letter-spacing: .04em; }
.carousel__item figcaption p { font-size: 16px; opacity: .85; margin-top: 4px; }

/* Phones: about 2.5 slim photos on screen; tap one to open it full size */
@media (max-width: 560px) {
  .carousel .carousel__track {
    --gap: 10px;
    --item-w: calc((100vw - var(--gutter) - 2 * var(--gap)) / 2.5);
    --item-h: calc(var(--item-w) * 1.9);
    padding-bottom: 24px;
  }
  .carousel__item button { border-radius: 12px; }
  .carousel .carousel__item figcaption { padding-top: 8px; }
  .carousel .carousel__item figcaption h3 { font-size: 15px; letter-spacing: .06em; }
  .carousel .carousel__item figcaption p { display: none; }
}
.carousel__nav { display: flex; gap: 10px; justify-content: flex-end; }
.carousel__nav button { width: 46px; height: 46px; border-radius: 50%; border: 1px solid currentColor; background: none; color: inherit; display: grid; place-items: center; }
.carousel__nav button:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.carousel__nav svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }

/* ---------- Testimonials + newsletter ---------- */
.voices { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items: start; }
.voices__title { margin-bottom: 24px; }
.testimonial { margin: 0; }
.testimonial blockquote { margin: 0; font-size: clamp(22px, 2.4vw, 27px); line-height: 1.35; font-style: italic; color: #fff; }
.testimonial figcaption { margin-top: 18px; font-family: var(--font-ui); font-size: 14px; letter-spacing: .06em; color: var(--muted-light); }
.testimonial figcaption strong { display: block; font-weight: 600; color: var(--gold); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 2px; }
.slider { display: grid; }
.slider > .testimonial { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .5s, visibility .5s; }
.slider > .testimonial.is-active { opacity: 1; visibility: visible; }
.slider-dots { display: flex; gap: 10px; margin-top: 28px; }
.slider-dots button { width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--gold); background: transparent; padding: 0; }
.slider-dots button[aria-current="true"] { background: var(--gold); }
.newsletter { min-height: 120px; }
.newsletter__fallback { border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 26px; }
.newsletter__fallback h2 { margin-bottom: 10px; }
.newsletter:has([id^="omnisend-embedded"] *) .newsletter__fallback { display: none; }
@media (max-width: 860px) { .voices { grid-template-columns: 1fr; } .voices > .newsletter { order: 2; } }

/* ---------- Cards (About) ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px;
  padding: 28px 22px 30px; background: rgba(255,255,255,.55); border: 1px solid var(--line-light); border-radius: var(--radius);
  text-decoration: none; color: var(--text-dark); transition: transform .25s, box-shadow .25s, background .25s;
}
.card:hover { transform: translateY(-4px); background: rgba(255,255,255,.85); box-shadow: 0 14px 30px rgba(0,0,0,.08); }
.card img { height: 130px; width: auto; object-fit: contain; margin-bottom: 8px; }
.card h2 { font-family: var(--font-display); font-size: 30px; color: #242424; }
.card p { margin: 0; }
.card .arrow { margin-top: 8px; font-family: var(--font-ui); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; border-bottom: 1px solid currentColor; }
/* Narrower screens: keep the three cards side by side, just smaller (like the Wushu tiles) */
@media (max-width: 760px) {
  .cards { gap: 10px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .card { gap: 6px; padding: 18px 8px 20px; border-radius: 14px; }
  .card img { height: 64px; margin: 0; }
  .card h2 { font-size: 20px; line-height: 1.1; }
  .card p { font-size: 14px; line-height: 1.25; }
  .card .arrow { font-size: 10px; letter-spacing: .12em; }
}
@media (max-width: 480px) {
  .cards { gap: 8px; }
  .card { padding: 14px 6px 16px; border-radius: 12px; }
  .card img { height: 44px; }
  .card h2 { font-size: 16px; }
  .card p { font-size: 12px; }
  .card .arrow { display: none; }
}
@media (max-width: 380px) {
  .card { padding: 12px 4px 14px; }
  .card img { height: 38px; }
  .card h2 { font-size: 14px; }
  .card p { font-size: 11px; }
}

/* ---------- Icon tiles (Wushu) ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 760px; margin-inline: auto; }
.tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  padding: 22px 12px; min-height: 140px; border: 1px solid var(--line-dark); border-radius: var(--radius);
  background: rgba(63,63,63,.45); color: #fff; transition: background .2s, border-color .2s;
}
.tile:hover { background: rgba(226,221,176,.12); border-color: var(--gold); }
.tile img { height: 56px; width: auto; }
.tile span { font-family: var(--font-display); font-size: 18px; letter-spacing: .12em; text-transform: uppercase; }
/* Narrow screens: keep the three buttons side by side, just smaller */
@media (max-width: 560px) {
  .tiles { gap: 8px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tile { min-height: 0; gap: 8px; padding: 14px 6px; border-radius: 12px; }
  .tile img { height: 34px; }
  .tile span { font-size: 12px; letter-spacing: .08em; line-height: 1.2; text-align: center; }
}
@media (max-width: 380px) {
  .tile { padding: 12px 4px; }
  .tile img { height: 30px; }
  .tile span { font-size: 10px; letter-spacing: .03em; }
}
/* Buttons sit close under the Read more toggle */
section:has(.read-more) { padding-bottom: 20px; }
section:has(.read-more) + .section--tight { padding-top: 8px; background: transparent; }
section:has(.read-more) + .section--tight .container { padding-bottom: 8px; }

/* ---------- Wushu intro: centred logo, title, short text and a Read more dropdown (all screen sizes) ---------- */
.intro { display: grid; grid-template-columns: 1fr; justify-items: center; text-align: center; gap: clamp(18px, 3vw, 28px); }
.intro__logo img { width: 100%; max-width: clamp(200px, 22vw, 260px); margin-inline: auto; }
.intro .display { margin-bottom: 10px; }
.intro .eyebrow { display: block; margin-bottom: 14px; color: var(--gold-2); }
.prose--sm { font-size: 17px; line-height: 1.7; }
.prose--sm p { margin-bottom: .9em; }
.swap-closed { margin: 0 auto; max-width: 62ch; font-size: 17px; line-height: 1.6; }
.is-expanded .swap-closed { display: none; }

.read-more {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; padding: 8px 0;
  background: none; border: 0; border-bottom: 1px solid currentColor; color: var(--gold);
  font-family: var(--font-ui); font-size: 13px; letter-spacing: .16em; text-transform: uppercase;
}
.read-more:hover { color: #fff; }
.read-more svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .35s ease; }
.read-more[aria-expanded="true"] svg { transform: rotate(180deg); }

.collapsible { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .5s ease, opacity .4s ease, margin-top .5s ease; }
.collapsible > * { overflow: hidden; min-height: 0; }
.collapsible.mt-3 { margin-top: 0; }
.collapsible.is-open { grid-template-rows: 1fr; opacity: 1; margin-top: 24px; }

/* ---------- Modal ---------- */
.modal { border: 0; padding: 0; width: min(920px, calc(100vw - 24px)); max-height: calc(100svh - 32px); border-radius: var(--radius); background: var(--char); color: var(--text-light); box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.modal::backdrop { background: rgba(0,0,0,.72); }
.modal__inner { padding: clamp(24px, 4vw, 44px); }
.modal__head { display: flex; align-items: start; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.modal__close { flex: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-dark); background: none; color: #fff; font-size: 24px; line-height: 1; }
.modal__close:hover { border-color: var(--gold); color: var(--gold); }
.modal--light { background: var(--paper); color: var(--text-dark); }
.modal--light .modal__close { color: var(--ink); border-color: var(--line-light); }
.modal--light .display { color: var(--ink); }

/* Lightbox */
.lightbox { width: min(1200px, calc(100vw - 24px)); background: transparent; box-shadow: none; overflow: visible; }
.lightbox figure { margin: 0; text-align: center; }
.lightbox img { max-height: calc(100svh - 140px); width: auto; margin-inline: auto; border-radius: 4px; }
.lightbox figcaption { color: #fff; margin-top: 12px; font-size: 17px; }
.lightbox .modal__close { position: absolute; top: -4px; right: -4px; background: rgba(0,0,0,.6); }
.lightbox__prev, .lightbox__next { position: absolute; top: 50%; translate: 0 -50%; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(0,0,0,.55); color: #fff; font-size: 26px; }
.lightbox__prev { left: 6px; } .lightbox__next { right: 6px; }

/* ---------- Price list ---------- */
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.price-group { border-top: 2px solid var(--ink); padding-top: 14px; }
.price-group h3 { display: flex; justify-content: space-between; gap: 10px; font-family: var(--font-ui); font-weight: 700; font-size: 14px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); padding-bottom: 12px; border-bottom: 1px solid var(--line-light); margin-bottom: 8px; }
.price-group h3 small { font-weight: 400; letter-spacing: .04em; }
.price-group dl { margin: 0; }
.price-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dotted var(--line-light); }
.price-row dt { margin: 0; }
.price-row dd { margin: 0; font-family: var(--font-ui); font-size: 15px; white-space: nowrap; color: var(--ink); }
.price-note { margin-top: 22px; font-size: 17px; }
@media (max-width: 760px) { .prices { grid-template-columns: 1fr; } }

/* ---------- Video playlist ---------- */
.playlist { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 18px; }
.playlist__player { aspect-ratio: 16 / 9; background: #000; border-radius: 6px; overflow: hidden; }
.playlist__player iframe { width: 100%; height: 100%; border: 0; display: block; }
.playlist__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; align-content: start; max-height: 420px; overflow: auto; }
.playlist__list button { display: grid; grid-template-columns: 92px 1fr; gap: 10px; align-items: center; width: 100%; text-align: left; padding: 6px; border: 1px solid transparent; border-radius: 8px; background: none; color: inherit; }
.playlist__list button:hover, .playlist__list button[aria-current="true"] { border-color: var(--line-dark); background: rgba(255,255,255,.04); }
.playlist__list img { width: 92px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; }
.playlist__list strong { display: block; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; line-height: 1.25; }
.playlist__list small { font-family: var(--font-ui); font-size: 12px; color: var(--muted-light); }
@media (max-width: 760px) { .playlist { grid-template-columns: 1fr; } }

/* ---------- Achievements table ---------- */
.table-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.table-tools input { flex: 1 1 240px; max-width: 360px; min-height: 42px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-dark); background: rgba(255,255,255,.06); color: #fff; font: 15px var(--font-ui); }
.table-tools small { font-family: var(--font-ui); font-size: 13px; color: var(--muted-light); }
.table-wrap { max-height: 56svh; overflow: auto; border: 1px solid var(--line-dark); border-radius: 10px; }
.data-table { width: 100%; border-collapse: collapse; font-family: var(--font-ui); font-size: 14px; }
.data-table th, .data-table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid rgba(255,255,255,.07); vertical-align: top; }
.data-table th { position: sticky; top: 0; background: #2b2b2b; color: var(--gold); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: 12px; }
.data-table tbody tr:hover { background: rgba(255,255,255,.04); }
.medal { display: inline-block; min-width: 38px; padding: 1px 8px; border-radius: 999px; font-size: 12px; text-align: center; background: rgba(255,255,255,.08); }
.medal--1 { background: #c9a948; color: #1b1b1b; }
.medal--2 { background: #b9b9b9; color: #1b1b1b; }
.medal--3 { background: #a7714a; color: #fff; }
.stat-row { display: flex; flex-wrap: wrap; gap: 26px; margin-bottom: 18px; }
.stat strong { display: block; font-family: var(--font-display); font-size: 38px; color: var(--gold); line-height: 1; }
.stat span { font-family: var(--font-ui); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-light); }

/* ---------- Forms ---------- */
.form-card { background: rgba(32,32,32,.94); color: var(--text-light); border-radius: 22px; padding: clamp(24px, 4vw, 44px); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: grid; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend { font-weight: 600; font-size: 17px; }
.field .req { color: var(--rose); }
.field input, .field textarea {
  width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 10px; border: 1px solid transparent;
  background: #fff; color: var(--ink); font: 16px var(--font-ui);
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(226,221,176,.35); }
fieldset.field { border: 0; padding: 0; margin: 0; }
.checks { display: grid; gap: 6px; margin-top: 4px; }
.checks label { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 17px; cursor: pointer; }
.checks input { width: 18px; height: 18px; min-height: 0; accent-color: var(--gold); }
.hp { position: absolute; left: -9999px; }
.form-status { margin-top: 16px; font-family: var(--font-ui); font-size: 15px; }
.form-status.is-ok { color: #b9e3a8; }
.form-status.is-error { color: #ffb4a8; }
/* Phones: fields stack, but Practice and Arrangement stay side by side in two columns */
@media (max-width: 640px) {
  .form-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px 14px; }
  .form-grid > .field:not(fieldset) { grid-column: 1 / -1; }
  .checks label { align-items: flex-start; gap: 8px; font-size: 15px; line-height: 1.25; }
  .checks input { flex: none; margin-top: 1px; }
}

/* ---------- Policy text ---------- */
.policy h2 { font-family: var(--font-display); font-size: clamp(30px, 4vw, 42px); margin: 56px 0 18px; color: var(--ink); }
.policy h2:first-of-type { margin-top: 0; }
.policy h3 { font-family: var(--font-body); font-weight: 700; font-size: 23px; margin: 30px 0 8px; color: var(--ink); }
.policy h4 { font-family: var(--font-ui); font-weight: 600; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; margin: 20px 0 6px; color: var(--muted-dark); }
.policy ul { margin: 0 0 1em; padding-left: 1.2em; }
.policy li { margin-bottom: .35em; }
.policy-toc { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 44px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--sand); color: var(--text-dark); padding-block: clamp(48px, 7vw, 80px) 28px; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); text-align: center; align-items: start; }
.footer-grid h2 { font-family: var(--font-body); font-weight: 700; font-size: clamp(32px, 3.6vw, 44px); letter-spacing: .08em; text-transform: uppercase; color: #000; margin-bottom: 14px; line-height: 1.1; }
.footer-grid p { margin-bottom: 14px; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { text-decoration: underline; }
.footer-grid .btn-row { justify-content: center; flex-wrap: nowrap; gap: 10px; }
.footer-grid .btn { font-size: 13px; min-height: 40px; padding: 6px 16px; white-space: nowrap; }
.footer-grid .socials { justify-content: center; }
.footer-grid .socials { gap: 10px; }
.footer-grid .socials a { width: 46px; height: 46px; color: #000; opacity: 1; }
.footer-grid .socials a:hover { color: var(--rose); text-decoration: none; }
.footer-grid .socials svg { width: 33px; height: 33px; }
.footer-map { display: block; width: 100%; height: 170px; border: 0; border-radius: 10px; filter: grayscale(1) contrast(.95); }
.footer-bottom { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line-light); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-family: var(--font-ui); font-size: 13px; color: var(--muted-dark); }
.footer-socials--mobile { display: none !important; }
/* Mobile: socials move under the phone number in Contact; the separate Socials column goes */
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr; gap: 44px; }
  .footer-socials--mobile { display: flex !important; margin: -8px 0 18px; }
  .footer-grid .socials a { width: 32px; height: 32px; }
  .footer-grid .socials svg { width: 20px; height: 20px; }
  .footer-socials-col { display: none; }
}

/* ---------- Misc ---------- */
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 12px; } .mt-2 { margin-top: 24px; } .mt-3 { margin-top: 40px; } .mt-4 { margin-top: 64px; }
.mb-2 { margin-bottom: 24px; } .mb-3 { margin-bottom: 40px; }
.gold { color: var(--gold); }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
