/* ==========================================================================
   NY TANGO SCHOOL — styles.css

   PALETTE SAMPLED FROM THE LOGO
   The mark is 94% white, 1.8% red, 1.8% black ink — red and ink appear in
   equal, tiny amounts against an overwhelming field of paper. That ratio is
   the design rule for the whole site:

     · White is the material, not the background. Do not fill it.
     · Ink carries all the text and all the structure.
     · Red is as rare as the dancer's dress. Primary buttons, the current nav
       item, and the glossary translations. Nothing else. If you find yourself
       adding a fourth use, use ink instead.

   CONTENTS
   1.  Tokens            9.  Prose            15. Editor notes
   2.  Reset & base      10. Team             16. Footer
   3.  Buttons           11. Glossary         17. Responsive
   4.  Header            12. Schedule
   5.  Hero / page head  13. Contact
   6.  Sections          14. Gallery
   7.  Offerings
   8.  Split
   ========================================================================== */

/* --- 1. Tokens ------------------------------------------------------------ */

:root {
  --paper:     #ffffff;   /* exact logo background — the mark sits seamlessly */
  --paper-off: #f7f6f4;   /* barely-there panel tint */
  --ink:       #0c0b0b;   /* sampled from the brush strokes */
  --ink-soft:  #55534f;   /* secondary text */
  --ink-faint: #6e6b67;   /* captions, meta */
  --rojo:      #e91d22;   /* sampled from the dress */
  --rojo-deep: #c4161a;
  --rojo-lift: #ff6f66;   /* the red, lifted for legibility on the dark hero only */   /* hover — darker, never lighter */
  --rule:      #e2e0dc;   /* hairlines */
  --rule-soft: #efedea;

  --display: "Bodoni Moda", Georgia, "Times New Roman", serif;
  --body:    "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --gutter:  clamp(1.25rem, 5vw, 4rem);
  --stack:   clamp(4rem, 10vw, 8rem);
  --measure: 66ch;
}

/* --- 2. Reset & base ------------------------------------------------------ */

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

body, h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; padding: 0; }

ul[class] { list-style: none; }
img { max-width: 100%; display: block; height: auto; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

body {
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

/* Bodoni Moda is a didone: very high stroke contrast. Left alone, the browser
   raises the optical-size axis as the type gets bigger, which thins the
   hairlines until they nearly disappear. Pinning opsz low uses the cut drawn
   for small text — sturdier hairlines — while keeping the same letterforms. */
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -.015em;
  color: var(--ink);
  font-optical-sizing: none;
  font-variation-settings: "opsz" 14;
}

/* Larger headings need it pushed lower still. */
.hero h1, .page-header h1 { font-variation-settings: "opsz" 10; font-weight: 500; }

.term dt { font-optical-sizing: none; font-variation-settings: "opsz" 12; }

a { color: var(--ink); text-decoration-color: var(--rojo); text-underline-offset: .18em; }
a:hover { color: var(--rojo); }

a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--rojo);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap { width: min(1180px, 100% - (var(--gutter) * 2)); margin-inline: auto; }
.wrap-narrow { width: min(860px, 100% - (var(--gutter) * 2)); margin-inline: auto; }

.skip { position: absolute; left: -9999px; }
.skip:focus {
  left: var(--gutter); top: .75rem; z-index: 100;
  background: var(--ink); color: var(--paper);
  padding: .6rem 1rem; font-weight: 600;
}

/* --- 3. Buttons ----------------------------------------------------------- */

.btn {
  display: inline-block;
  font-family: var(--body);
  font-size: .95rem;
  font-weight: 600;
  padding: .9rem 1.9rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
  cursor: pointer;
}

/* The only large field of red on the site. Keep it that way. */
.btn-primary { background: var(--rojo); color: #fff; }
.btn-primary:hover { background: var(--rojo-deep); color: #fff; }

.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

/* --- 4. Header ------------------------------------------------------------ */

.masthead {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  position: relative;
  z-index: 20;
}

.masthead-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding-block: 1.1rem;
}

/* No border-radius or background: the logo's own white square is the site's
   white, so the mark dissolves into the page. */
/* The wordmark already reads "jon tariq", so the school name sits beside it as
   a quiet label rather than competing as a second piece of lettering. The logo
   file is cropped to its artwork — the supplied square was 56% empty space. */
.brand { display: flex; align-items: center; gap: .95rem; text-decoration: none; color: var(--ink); }
.brand picture { display: block; }
.brand img { width: 132px; height: auto; }
.brand-name {
  font-family: var(--body); font-size: .72rem; font-weight: 700;
  letter-spacing: .15em; text-transform: uppercase; color: var(--ink-faint);
  border-left: 1px solid var(--rule); padding-left: .95rem;
  white-space: nowrap;
}

.nav-toggle {
  display: none; background: none; border: 1px solid var(--ink);
  color: var(--ink); padding: .5rem .85rem;
  font-family: var(--body); font-size: .9rem;
}

.nav ul { display: flex; align-items: center; gap: 1.55rem; list-style: none; }

.nav a {
  color: var(--ink); text-decoration: none; font-size: .93rem;
  padding-block: .35rem; border-bottom: 1px solid transparent;
  transition: border-color .18s ease, color .18s ease;
}
.nav a:hover { border-bottom-color: var(--ink); color: var(--ink); }
.nav a[aria-current="page"] { border-bottom-color: var(--rojo); }
.nav-phone { font-weight: 600; white-space: nowrap; }

/* --- 5. Hero & page header ------------------------------------------------ */
/* The hero is the one dark, full-bleed moment on an otherwise white site —
   class footage running behind the headline. Everything below it returns to
   paper. The scrim is what makes the text legible over moving footage, so do
   not lighten it without re-checking contrast against a bright frame. */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(30rem, 82vh, 46rem);
  padding-block: clamp(4rem, 10vw, 7rem);
  background: var(--ink);
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
}

/* Weighted to the left, where the type sits, and eased so the right side of
   the frame stays visible. */
.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to right,
      rgba(8,8,8,.90) 0%, rgba(8,8,8,.84) 30%, rgba(8,8,8,.66) 60%, rgba(8,8,8,.32) 100%),
    linear-gradient(to top, rgba(8,8,8,.55) 0%, rgba(8,8,8,0) 50%);
}

.hero > .wrap { position: relative; z-index: 1; }

.hero h1 {
  font-size: clamp(2.5rem, 7vw, 5.2rem);
  max-width: 15ch;
  margin-bottom: 1.75rem;
  color: var(--paper);
}
/* --rojo (#ea1d22) only reaches 1.9:1 over a bright video frame. This lifted
   tint clears 3:1 for large text across the area the headline occupies. It is
   used here and nowhere else — on paper, the brand red is correct. */
.hero h1 em { font-style: italic; color: var(--rojo-lift); }

.hero-lead {
  font-size: clamp(1.08rem, 2vw, 1.32rem);
  color: rgba(255,255,255,.82);
  max-width: 46ch; margin-bottom: 2.5rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; align-items: center; }

/* On the dark hero the ghost button inverts. */
.hero .btn-ghost { border-color: rgba(255,255,255,.5); color: var(--paper); }
.hero .btn-ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

.hero-note {
  margin-top: 3rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.22);
  color: rgba(255,255,255,.75); font-size: .95rem; max-width: var(--measure);
}
.hero-note strong { color: var(--paper); font-weight: 600; }

/* --- Hero reel controls --------------------------------------------------- */

.hero-reel {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 1.25rem 2rem;
  margin-top: 2.25rem;
}

.hero-reel-meta { display: flex; flex-direction: column; gap: .2rem; }

.hero-reel-name {
  font-size: .74rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--rojo-lift);
}
.hero-reel-desc { font-size: .95rem; color: rgba(255,255,255,.78); }

.hero-reel-controls {
  display: flex; align-items: center; gap: 1.25rem;
  margin-left: auto;
}

.hero-dots { display: flex; align-items: center; gap: .7rem; }

.hero-dot {
  width: 9px; height: 9px; padding: 0;
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.hero-dot:hover { background: rgba(255,255,255,.6); }
.hero-dot.is-active {
  background: var(--rojo-lift);
  border-color: var(--rojo-lift);
  transform: scale(1.25);
}

.hero-btn {
  width: 36px; height: 36px; padding: 0;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 50%;
  background: rgba(0,0,0,.35);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.hero-btn:hover { background: rgba(0,0,0,.65); border-color: rgba(255,255,255,.7); }
.hero-btn svg { width: 17px; height: 17px; fill: currentColor; }

/* Playback position, pinned to the very bottom edge of the hero */
.hero-progress {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: rgba(255,255,255,.18);
  z-index: 1;
}
.hero-progress span {
  display: block; height: 100%; width: 0;
  background: var(--rojo-lift);
}

@media (max-width: 700px) {
  .hero { min-height: clamp(28rem, 76vh, 36rem); }
  .hero-reel { gap: 1rem 1.25rem; margin-top: 1.75rem; }
  .hero-reel-controls { margin-left: 0; width: 100%; justify-content: space-between; }
  .hero-reel-desc { font-size: .88rem; }
}

.page-header {
  padding-block: clamp(3rem, 8vw, 5rem);
  border-bottom: 1px solid var(--rule);
}
.page-header h1 { font-size: clamp(2.3rem, 5.8vw, 4rem); max-width: 20ch; }
.page-header p { margin-top: 1.1rem; color: var(--ink-soft); max-width: 54ch; font-size: 1.08rem; }

/* --- 6. Sections ---------------------------------------------------------- */

.section { padding-block: var(--stack); }
.section + .section { border-top: 1px solid var(--rule); }

.section-head { max-width: var(--measure); margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section-head h2 { font-size: clamp(2rem, 4.2vw, 3rem); margin-bottom: .9rem; }
.section-head p { color: var(--ink-soft); max-width: 52ch; }

/* --- 7. Offerings --------------------------------------------------------- */

.offerings { display: grid; gap: 0; }

.offering {
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr) auto;
  gap: 1.5rem 2.5rem; align-items: start;
  padding-block: 2.25rem; border-top: 1px solid var(--rule);
}
.offering:last-child { border-bottom: 1px solid var(--rule); }

.offering h3 { font-size: 1.6rem; }
.offering-when {
  display: block; font-family: var(--body); font-size: .85rem;
  letter-spacing: .06em; color: var(--ink-faint); margin-top: .5rem;
}
.offering p { color: var(--ink-soft); max-width: 46ch; }

.offering-link {
  font-family: var(--body); font-size: .92rem; font-weight: 600;
  color: var(--ink); text-decoration: none;
  border-bottom: 1px solid var(--rule); padding-bottom: 2px; white-space: nowrap;
}
.offering-link:hover { border-bottom-color: var(--rojo); color: var(--rojo); }

/* --- 8. Split ------------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
/* 3:4 matches Jon's photo, so it shows whole with nothing cropped. */
.split img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.split h2 { font-size: clamp(2rem, 4.2vw, 3rem); margin-bottom: 1.25rem; }
.split p { color: var(--ink-soft); margin-bottom: 1.1rem; max-width: 52ch; }

/* --- 9. Prose ------------------------------------------------------------- */

.prose { max-width: var(--measure); }
.prose p { margin-bottom: 1.35rem; color: var(--ink-soft); }
.prose p.lead { font-size: 1.22rem; color: var(--ink); }
.prose h2 { font-size: clamp(1.7rem, 3.6vw, 2.3rem); margin: 2.75rem 0 1rem; }
.prose strong { color: var(--ink); font-weight: 600; }

.credits { margin: 2.5rem 0; padding: 1.75rem 0; border-block: 1px solid var(--rule); }
.credits h3 {
  font-family: var(--body); font-size: .78rem; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: 1.1rem;
}
.credits ul { list-style: none; display: grid; gap: .65rem; }
.credits li { color: var(--ink); }
.credits li span { color: var(--ink-faint); }

/* --- 10. Team ------------------------------------------------------------- */
/* Text only — no portraits. Name and role sit in the left column, mirroring
   the offering rows on the home page.                                        */

.team { display: grid; gap: 0; }

.member {
  display: grid;
  grid-template-columns: minmax(0, 16rem) minmax(0, 1fr);
  gap: 1rem 2.5rem; align-items: start;
  padding-block: 2.75rem; border-top: 1px solid var(--rule);
}
.member:last-child { border-bottom: 1px solid var(--rule); }

.member h2 { font-size: 1.95rem; margin-bottom: .35rem; }
.member-role {
  display: block; font-family: var(--body); font-size: .82rem;
  letter-spacing: .11em; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: 1rem;
}
.member p { color: var(--ink-soft); max-width: 54ch; margin-bottom: 1rem; }

/* --- 11. Glossary --------------------------------------------------------- */

.glossary-tools {
  position: sticky; top: 0; z-index: 10;
  background: var(--paper);
  padding-block: 1.25rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 2.5rem;
}

.glossary-search {
  width: 100%; max-width: 26rem;
  background: var(--paper);
  border: 1px solid var(--ink);
  color: var(--ink);
  font-family: var(--body); font-size: 1rem;
  padding: .8rem 1rem;
}
.glossary-search::placeholder { color: var(--ink-faint); }

.glossary-count { margin-top: .75rem; font-size: .88rem; color: var(--ink-faint); }

.glossary { display: grid; gap: 0; }

.term {
  padding-block: 1.7rem;
  border-top: 1px solid var(--rule-soft);
  display: grid;
  grid-template-columns: minmax(0, 16rem) minmax(0, 1fr);
  gap: .5rem 2.5rem;
  align-items: baseline;
}
.term:last-child { border-bottom: 1px solid var(--rule-soft); }
.term[hidden] { display: none; }

.term dt { font-family: var(--display); font-size: 1.5rem; color: var(--ink); }
/* The Spanish translation is the third and last use of red on the site. */
.term dt small {
  display: block; font-family: var(--body); font-size: .82rem;
  color: var(--rojo); margin-top: .35rem; letter-spacing: .02em; line-height: 1.4;
}
.term dd { color: var(--ink-soft); }

.glossary-empty { padding: 3rem 0; color: var(--ink-faint); border-top: 1px solid var(--rule-soft); }

/* --- 12. Schedule & rates ------------------------------------------------- */

.schedule { border-top: 1px solid var(--rule); }

.slot {
  display: grid;
  grid-template-columns: minmax(0, 12rem) minmax(0, 1fr) auto;
  gap: 1rem 2.5rem; align-items: baseline;
  padding-block: 1.9rem; border-bottom: 1px solid var(--rule);
}
.slot-day { font-family: var(--display); font-size: 1.6rem; color: var(--ink); font-optical-sizing: none; font-variation-settings: "opsz" 12; }
.slot-time { display: block; font-size: .88rem; color: var(--ink-faint); margin-top: .3rem; }
.slot h3 {
  font-size: 1.15rem; font-family: var(--body); font-weight: 600;
  color: var(--ink); margin-bottom: .4rem;
}
.slot p { color: var(--ink-soft); max-width: 46ch; font-size: .98rem; }
.slot-price { font-size: 1.45rem; color: var(--ink); white-space: nowrap;
  font-family: var(--body);
  font-weight: 700;
  letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
}

.rates { display: grid; gap: 0; margin-top: 1rem; }
.rate {
  display: flex; flex-wrap: wrap; gap: 1rem;
  justify-content: space-between; align-items: baseline;
  padding-block: 1.35rem; border-top: 1px solid var(--rule);
}
.rate:last-child { border-bottom: 1px solid var(--rule); }
.rate-name { color: var(--ink); font-weight: 600; }
.rate-name span { display: block; font-weight: 400; color: var(--ink-soft); font-size: .92rem; margin-top: .25rem; }
.rate-price { font-size: 1.55rem; color: var(--ink);
  font-family: var(--body);
  font-weight: 700;
  letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
}

/* --- 13. Contact ---------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.contact-direct h2 { font-size: 1.7rem; margin-bottom: 1.25rem; }

.contact-line { padding-block: 1.45rem; border-top: 1px solid var(--rule); }
.contact-line:last-of-type { border-bottom: 1px solid var(--rule); }
.contact-line h3 {
  font-family: var(--body); font-size: .78rem; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: .5rem;
}
.contact-line a {
  font-size: 1.35rem; color: var(--ink); text-decoration: none;
  font-family: var(--body);
  font-weight: 700;
  letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
}
.contact-line a:hover { color: var(--rojo); }
.contact-line p { font-size: .95rem; color: var(--ink-soft); margin-top: .4rem; }

.form-field { margin-bottom: 1.5rem; }
.form-field label { display: block; font-size: .88rem; font-weight: 600; color: var(--ink); margin-bottom: .5rem; }
.form-field label span { color: var(--rojo); }

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--rule);
  color: var(--ink);
  font-family: var(--body); font-size: 1rem;
  padding: .85rem 1rem;
  transition: border-color .18s ease;
}
.form-field input:hover, .form-field textarea:hover, .form-field select:hover { border-color: var(--ink-faint); }
.form-field textarea { min-height: 9rem; resize: vertical; }

/* Honeypot — invisible to people, tempting to bots */
.hp { position: absolute; left: -9999px; }

.form-note { font-size: .88rem; color: var(--ink-soft); margin-top: 1.25rem; }

.form-status { padding: 1rem 1.25rem; margin-bottom: 1.5rem; border-left: 3px solid; }
.form-status.ok  { border-color: var(--ink);  background: var(--paper-off); }
.form-status.bad { border-color: var(--rojo); background: var(--paper-off); }

/* --- 14. Gallery ---------------------------------------------------------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 1rem;
}
.gallery-grid img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }

.empty-state {
  padding: clamp(3rem, 8vw, 6rem) 0;
  border-block: 1px solid var(--rule);
  max-width: var(--measure);
}
.empty-state h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); margin-bottom: 1rem; }
.empty-state p { color: var(--ink-soft); margin-bottom: 1.75rem; }

/* --- 15. Editor notes ----------------------------------------------------- */
/* Marks content still to supply. Search the HTML for "editor-note", fill it in,
   delete the block. To hide them all while you work, change the rule below to
   .editor-note { display: none; }                                            */

.editor-note {
  border: 1px dashed var(--rojo);
  background: var(--paper-off);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  font-size: .93rem;
  color: var(--ink-soft);
  max-width: var(--measure);
}
.editor-note strong { color: var(--rojo); display: block; margin-bottom: .4rem; }
.editor-note code { background: #fff; padding: .1rem .35rem; border: 1px solid var(--rule); font-size: .9em; }

/* --- 16. Footer ----------------------------------------------------------- */
/* The one dark field on the site — the logo's ink, given a whole band.        */

.site-footer {
  background: var(--ink);
  color: #cdcac6;
  padding-block: clamp(3.5rem, 8vw, 5rem) 2rem;
  font-size: .95rem;
  margin-top: var(--stack);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 2.5rem; padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,.16);
}

.footer-grid h4 {
  font-family: var(--body); font-size: .78rem; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase;
  color: #8c8985; margin-bottom: 1rem;
}
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: .55rem; }
.footer-grid a { color: #f2f0ed; text-decoration: none; }
.footer-grid a:hover { color: var(--rojo); }
.footer-grid p { color: #a09d99; }

.footer-phone {
  font-size: 1.5rem;
  color: #fff; text-decoration: none;
  display: inline-block; margin-bottom: .5rem;
  font-family: var(--body);
  font-weight: 700;
  letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
}
.footer-phone:hover { color: var(--rojo); }

.socials { display: flex; gap: 1.25rem; margin-top: 1.1rem; }
.socials a { color: #8c8985; }
.socials a:hover { color: var(--rojo); }
.socials svg { width: 22px; height: 22px; fill: currentColor; }

.colophon {
  padding-top: 2rem; display: flex; flex-wrap: wrap;
  gap: .75rem 1.75rem; justify-content: space-between;
  color: #8c8985; font-size: .88rem;
}
.colophon a { color: #8c8985; text-decoration: none; }
.colophon a:hover { color: var(--rojo); }

/* --- 17. Responsive ------------------------------------------------------- */

@media (max-width: 980px) {
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .offering { grid-template-columns: 1fr; gap: .85rem; }
  .split { grid-template-columns: 1fr; }
  /* Jon's photo is 900x1200 — a 3:4 portrait. Forcing it into a 3:2 landscape
     box here cropped his head and feet off, because object-fit: cover fills the
     box and throws away the overflow. Keeping the native ratio means cover has
     nothing to crop. Capped and centred so it does not swallow a phone screen. */
  .split img { aspect-ratio: 3 / 4; max-width: 20rem; margin-inline: auto; }
  .term { grid-template-columns: 1fr; gap: .5rem; }
  .slot { grid-template-columns: 1fr; gap: .5rem; }
  .member { grid-template-columns: 1fr; gap: 1.5rem; }
  .member img { max-width: 11rem; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }

  .nav {
    display: none; position: absolute; inset-inline: 0; top: 100%;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    box-shadow: 0 12px 24px -12px rgba(12,11,11,.18);
    padding: 1rem var(--gutter) 1.75rem;
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; align-items: flex-start; gap: 0; }
  .nav li { width: 100%; }
  .nav a { display: block; padding-block: .85rem; border-bottom: 1px solid var(--rule); width: 100%; }

  .brand-name { display: none; }
  .brand img { width: 112px; }
  .glossary-tools { position: static; }
}

/* ==========================================================================
   18. VIDEO SHOWCASE
   An autoplaying reel of class footage with track tabs. Ink frame, white
   surround — the dark band and the footer are the only two places the page
   goes black, so this reads as deliberate.
   ========================================================================== */

.showcase { border-block: 1px solid var(--rule); }

.showcase-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--ink);
  overflow: hidden;
}

/* Portrait clips sit letterboxed over a blurred still of themselves rather
   than hard black bars. */
.showcase-backdrop {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: blur(38px) brightness(.5);
  transform: scale(1.18);
  opacity: 0; transition: opacity .4s ease;
}
.showcase-backdrop.is-on { opacity: 1; }

/* The poster attribute carries the first frame, so the element is visible
   from the start — no fade-in, no black box while the stream negotiates. */
.showcase-video {
  position: relative; z-index: 1;
  width: 100%; height: 100%;
  display: block;
}

.showcase-spinner {
  position: absolute; top: 50%; left: 50%;
  width: 40px; height: 40px; margin: -20px 0 0 -20px;
  border: 2px solid rgba(255,255,255,.25);
  border-top-color: #fff;
  border-radius: 50%;
  z-index: 3; opacity: 0; pointer-events: none;
  transition: opacity .2s ease;
  animation: showcase-spin .8s linear infinite;
}
.showcase-spinner.is-on { opacity: 1; }
@keyframes showcase-spin { to { transform: rotate(360deg); } }

.showcase-controls {
  position: absolute; z-index: 4;
  bottom: 14px; right: 14px;
  display: flex; gap: 8px;
}

.showcase-controls button {
  width: 38px; height: 38px;
  border: none; border-radius: 50%;
  background: rgba(0,0,0,.45);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; padding: 0;
  opacity: .85;
  transition: opacity .15s ease, background .15s ease;
}
.showcase-controls button:hover { opacity: 1; background: rgba(0,0,0,.7); }
.showcase-controls svg { width: 18px; height: 18px; fill: currentColor; }

.showcase-progress { height: 2px; background: var(--rule); }
.showcase-progress span { display: block; height: 100%; width: 0; background: var(--rojo); }

.showcase-tabs { display: flex; }

.showcase-tab {
  flex: 1;
  background: var(--paper);
  border: none;
  border-right: 1px solid var(--rule);
  padding: .95rem .6rem 1rem;
  cursor: pointer;
  font-family: var(--body);
  display: flex; flex-direction: column; gap: .3rem;
  text-align: center;
  transition: background .15s ease;
  border-bottom: 2px solid transparent;
}
.showcase-tab:last-child { border-right: none; }
.showcase-tab:hover { background: var(--paper-off); }
.showcase-tab.is-active { border-bottom-color: var(--rojo); }

.showcase-tab-state {
  font-size: .64rem; letter-spacing: .13em; text-transform: uppercase;
  color: var(--ink-faint);
}
.showcase-tab.is-active .showcase-tab-state { color: var(--rojo); }
.showcase-tab-name { font-size: .88rem; font-weight: 600; color: var(--ink); }

@media (max-width: 700px) {
  .showcase-tab { padding: .8rem .35rem .85rem; }
  .showcase-tab-name { font-size: .74rem; }
  .showcase-tab-state { font-size: .56rem; letter-spacing: .08em; }
}

/* ==========================================================================
   20. PRICING
   Prices stay in ink. Red marks the selected card and the best-value tag
   only — the discipline from the top of this file still holds.
   ========================================================================== */

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.plan {
  position: relative;
  background: var(--paper);
  border: none;
  padding: 1.75rem 1.5rem;
  text-align: left;
  font-family: var(--body);
  cursor: pointer;
  transition: background .15s ease;
  display: flex; flex-direction: column; gap: .55rem;
}
.plan:hover { background: var(--paper-off); }
.plan.is-selected { background: var(--paper-off); box-shadow: inset 0 0 0 2px var(--rojo); }

.plan-tag {
  position: absolute; top: 1rem; right: 1rem;
  font-size: .62rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--rojo);
}

.plan-name {
  font-size: .78rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase;
  color: var(--ink-faint); padding-right: 5rem;
}
.plan-price {
  font-size: 2.5rem; line-height: 1; color: var(--ink);
  font-family: var(--body);
  font-weight: 700;
  letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
}
.plan-detail { font-size: .93rem; color: var(--ink-soft); line-height: 1.55; }
.plan-unit { font-size: .82rem; color: var(--ink-faint); }

/* ==========================================================================
   21. PAYMENT
   ========================================================================== */

.pay-state {
  padding: .9rem 1.2rem; margin-bottom: 1.5rem;
  border-left: 3px solid var(--rule);
  background: var(--paper-off);
  font-size: .95rem; color: var(--ink-soft);
}
.pay-state.is-set { border-left-color: var(--rojo); color: var(--ink); }
.pay-state strong { color: var(--ink); font-weight: 600; }

.pay-links { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2rem; }

.pay-link {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .8rem 1.4rem;
  border: 1px solid var(--rule);
  background: var(--paper);
  font-family: var(--body); font-size: .93rem; font-weight: 600;
  color: var(--ink); text-decoration: none;
  transition: border-color .15s ease, background .15s ease;
}
.pay-link:hover { border-color: var(--ink); color: var(--ink); }
.pay-link[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.pay-link i { width: 7px; height: 7px; border-radius: 50%; background: var(--rojo); }
.pay-link[aria-disabled="true"] i { background: var(--ink-faint); }
.pay-link small { color: var(--ink-faint); font-weight: 400; }

.qr-row { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-bottom: 2rem; }
.qr { text-align: center; }
.qr img { width: 190px; height: 190px; border: 1px solid var(--rule); }
.qr figcaption {
  margin-top: .6rem;
  font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-faint);
}
@media (max-width: 460px) { .qr, .qr img { width: 100%; height: auto; } }

/* Small jump links under a page header */
.jump { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 1.75rem; }
.jump a {
  font-size: .82rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
  border-bottom: 1px solid var(--rule); padding-bottom: 3px;
}
.jump a:hover { border-bottom-color: var(--rojo); color: var(--rojo); }

/* ==========================================================================
   22. CLASS CALENDAR
   Rendered from schedule.json. Rows are ruled, never boxed — same language as
   the offering and glossary lists elsewhere on the site.
   ========================================================================== */

.cal-status {
  padding: 1rem 1.25rem; margin-bottom: 1.5rem;
  border-left: 3px solid var(--rule);
  background: var(--paper-off);
  font-size: .95rem; color: var(--ink-soft);
}

.cal-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem;
  padding-bottom: 1.25rem; margin-bottom: .5rem;
  border-bottom: 1px solid var(--rule);
}

.cal-nav { display: flex; align-items: center; gap: .5rem; margin-left: auto; }

.cal-nav button {
  width: 34px; height: 34px; padding: 0;
  border: 1px solid var(--rule);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer; font-size: 1rem; line-height: 1;
  transition: border-color .15s ease, background .15s ease;
}
.cal-nav button:hover:not(:disabled) { border-color: var(--ink); }
.cal-nav button:disabled { opacity: .35; cursor: not-allowed; }

.cal-range {
  font-family: var(--body); font-weight: 700;
  font-size: .82rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink); min-width: 9rem; text-align: center;
}

.cal-filters { display: flex; flex-wrap: wrap; gap: .5rem; }

.cal-filter {
  border: 1px solid var(--rule);
  background: var(--paper);
  font-family: var(--body); font-size: .82rem; font-weight: 600;
  color: var(--ink-soft);
  padding: .45rem .95rem;
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.cal-filter:hover { border-color: var(--ink-faint); color: var(--ink); }
.cal-filter.is-active { border-color: var(--ink); background: var(--ink); color: var(--paper); }

.cal-day {
  font-family: var(--body); font-size: .76rem; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--ink-faint);
  margin: 2.25rem 0 .25rem;
}
.cal-day:first-child { margin-top: 1.5rem; }

.cal-row {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  gap: .75rem 1.75rem;
  align-items: center;
  padding-block: 1.15rem;
  border-top: 1px solid var(--rule-soft);
}

.cal-time {
  font-family: var(--body); font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: 1.02rem; color: var(--ink);
}

.cal-title {
  font-family: var(--body); font-size: 1.02rem; font-weight: 600;
  color: var(--ink); margin-bottom: .3rem;
}

.cal-tag {
  display: inline-block;
  font-size: .68rem; font-weight: 700;
  letter-spacing: .11em; text-transform: uppercase;
  color: var(--ink-faint);
  border: 1px solid var(--rule);
  padding: .18rem .5rem;
  margin-right: .5rem;
}
/* Only the entry-level tag is coloured — that is the one a newcomer scans for. */
.cal-tag-beginner { color: var(--rojo); border-color: var(--rojo); }

.cal-loc { font-size: .88rem; color: var(--ink-faint); }

.cal-empty { padding: 3rem 0; color: var(--ink-soft); border-top: 1px solid var(--rule-soft); }

.cal-note { margin-top: 1.75rem; font-size: .88rem; color: var(--ink-faint); }

@media (max-width: 720px) {
  .cal-row { grid-template-columns: 5.5rem minmax(0, 1fr); gap: .5rem 1rem; }
  .cal-nav { margin-left: 0; }
  .cal-bar { gap: .75rem; }
}

/* Staff link in the footer. Deliberately quieter than the visitor links — it is
   there so Jon can find it, not to invite the public to try it. */
.footer-admin {
  color: #8c8985 !important;
  font-size: .88rem;
}
.footer-admin:hover { color: var(--rojo) !important; }
