/* Urban Jiu-Jitsu Canada, demo site (version 1). Black and white with the academy's slate
   (#2F4F4F) as the only accent; Oswald condensed headings echo the old site's Fjalla One. */

@font-face {
  font-family: "Oswald";
  src: url("/assets/fonts/oswald-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0a0a0a;
  --ink-2: #141414;
  --ink-3: #1f1f1f;
  --paper: #ffffff;
  --paper-2: #f3f3f1;
  --paper-3: #e8e8e5;
  --text: #0a0a0a;
  --muted: #555555;
  --muted-on-dark: #a8a8a8;
  --line: rgba(0, 0, 0, 0.12);
  --line-on-dark: rgba(255, 255, 255, 0.16);
  --slate: #2f4f4f;
  --slate-2: #3d6565;
  --slate-tint: #e2ebe9;
  --slate-light: #9cbcb7;
  --display: "Oswald", "Arial Narrow", Impact, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(64px, 9vw, 128px);
  --radius: 4px;
  --header-h: 72px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: light;
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
/* VR2-05: no orphaned single words in headings; tidier rag in body copy. */
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: 0.005em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.6rem, 7.2vw, 6.4rem); font-weight: 700; }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.9rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); line-height: 1.1; }
h4 { font-size: 1.1rem; letter-spacing: 0.03em; }
:where(ul[class], ol[class]) { list-style: none; margin: 0; padding: 0; }
strong { font-weight: 650; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 3px solid var(--slate); outline-offset: 3px; }
/* Dark contexts keep the light slate ring (slate on near-black would be too faint). */
.section--dark :focus-visible, .section--ink-2 :focus-visible, .section--slate :focus-visible, .site-header :focus-visible,
.site-footer :focus-visible, .hero :focus-visible, .page-hero :focus-visible, .cta-band :focus-visible, .mobile-menu :focus-visible,
.sticky-cta :focus-visible, .lightbox :focus-visible, .card--dark :focus-visible, .announce :focus-visible { outline-color: var(--slate-light); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--paper); color: var(--ink);
  padding: 10px 16px; font-weight: 600; border-radius: var(--radius); transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 860px; }
.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section--dark { background: var(--ink); color: var(--paper); }
.section--ink-2 { background: var(--ink-2); color: var(--paper); }
.section--paper { background: var(--paper-2); }
.section--slate { background: var(--slate); color: var(--paper); }
.section--dark a:not(.btn), .section--ink-2 a:not(.btn), .section--slate a:not(.btn) { color: inherit; }
.stack > * + * { margin-top: 1rem; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.center { text-align: center; }

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--body); font-size: 0.75rem; font-weight: 650; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--slate); margin: 0 0 18px;
}
.kicker::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.section--dark .kicker, .section--ink-2 .kicker, .page-hero .kicker { color: var(--slate-light); }
.hero .kicker { color: rgba(255, 255, 255, 0.92); text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6); }
.hero .kicker::before { background: var(--slate-light); }
.section--slate .kicker { color: var(--slate-tint); }
.lead { font-size: clamp(1.08rem, 1.5vw, 1.25rem); line-height: 1.6; color: var(--muted); max-width: 62ch; }
.section--dark .lead, .section--ink-2 .lead, .section--slate .lead { color: var(--muted-on-dark); }
.section--slate .lead { color: #d5e1df; }
.prose { max-width: 68ch; }
.prose p { color: inherit; }
.prose h3 { margin-top: 2rem; }
.muted { color: var(--muted); }
.section--dark .muted, .section--ink-2 .muted { color: var(--muted-on-dark); }

.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head > div { max-width: 760px; }
.section-head h2 { margin-bottom: 0.35em; }
.section-head .lead { margin: 0; }

.split { display: grid; gap: clamp(32px, 6vw, 96px); align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--wide-text { grid-template-columns: 0.85fr 1.15fr; }
  .split--wide-media { grid-template-columns: 1.15fr 0.85fr; }
  .split--top { align-items: start; }
  .split > .split__media--right { order: 2; }
}
.media-frame { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--ink-3); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-frame--bw img { filter: grayscale(1) contrast(1.06); }
.media-frame__tag {
  position: absolute; left: 16px; bottom: 16px; background: var(--ink); color: var(--paper);
  font-family: var(--display); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.85rem;
  padding: 8px 12px; border-radius: 2px;
}

/* ---------- Buttons and chips ---------- */
.btn {
  --btn-bg: var(--ink); --btn-fg: var(--paper); --btn-bd: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 24px; border: 2px solid var(--btn-bd); border-radius: var(--radius);
  background: var(--btn-bg); color: var(--btn-fg); text-decoration: none; cursor: pointer;
  font-family: var(--display); font-weight: 600; font-size: 1rem; letter-spacing: 0.08em; text-transform: uppercase;
  line-height: 1; white-space: nowrap;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--dark:hover { --btn-bg: var(--slate); --btn-bd: var(--slate); }
.btn--light { --btn-bg: var(--paper); --btn-fg: var(--ink); --btn-bd: var(--paper); }
.btn--light:hover { --btn-bg: var(--slate-tint); --btn-bd: var(--slate-tint); }
.btn--ghost-light { --btn-bg: transparent; --btn-fg: var(--paper); --btn-bd: rgba(255, 255, 255, 0.7); }
.btn--ghost-light:hover { --btn-bg: var(--paper); --btn-fg: var(--ink); --btn-bd: var(--paper); }
.btn--ghost-dark { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--ink); }
.btn--ghost-dark:hover { --btn-bg: var(--ink); --btn-fg: var(--paper); }
.btn--sm { min-height: 42px; padding: 9px 16px; font-size: 0.9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px;
  font-size: 0.75rem; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--slate-tint); color: var(--slate); line-height: 1.2;
}
.chip--dark { background: var(--ink); color: var(--paper); }
.chip--light { background: rgba(10, 10, 10, 0.62); color: var(--paper); border: 1px solid rgba(255, 255, 255, 0.22); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.chip--line { background: transparent; border: 1px solid currentColor; }

.text-link {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); text-transform: uppercase;
  letter-spacing: 0.08em; font-weight: 600; text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 3px;
}
.text-link::after { content: "\2192"; transition: transform 0.2s var(--ease); }
.text-link:hover::after { transform: translateX(4px); }

/* ---------- Announcement bar and header ---------- */
.announce {
  background: var(--ink); color: var(--paper); font-size: 0.82rem; text-align: center; padding: 9px var(--gutter);
  border-bottom: 1px solid var(--line-on-dark); position: relative; z-index: 60;
}
.announce a { color: var(--paper); font-weight: 650; }
.announce__short { display: none; }
@media (max-width: 640px) { .announce__long { display: none; } .announce__short { display: inline; } }

.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(10, 10, 10, 0.92); color: var(--paper);
  backdrop-filter: saturate(1.2) blur(14px); -webkit-backdrop-filter: saturate(1.2) blur(14px);
  border-bottom: 1px solid var(--line-on-dark);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.has-hero .site-header { position: fixed; left: 0; right: 0; top: var(--announce-h, 0px); background: transparent; border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.has-hero .site-header.is-solid { top: 0; background: rgba(10, 10, 10, 0.92); border-bottom-color: var(--line-on-dark); backdrop-filter: saturate(1.2) blur(14px); -webkit-backdrop-filter: saturate(1.2) blur(14px); }
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--paper); flex: none; }
.brand img { width: 46px; height: 46px; }
.brand__name { display: flex; flex-direction: column; line-height: 1; }
.brand__name b { font-family: var(--display); font-weight: 600; font-size: 1.28rem; letter-spacing: 0.06em; text-transform: uppercase; }
.brand__name small { font-size: 0.66rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted-on-dark); margin-top: 5px; font-weight: 600; }
.nav { display: none; }
.nav__list { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); }
.nav__list a {
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none;
  color: rgba(255, 255, 255, 0.82); padding: 8px 0; position: relative; transition: color 0.2s;
}
.nav__list a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--paper); transform: scaleX(0); transform-origin: left; transition: transform 0.25s var(--ease); }
.nav__list a:hover, .nav__list a[aria-current="page"] { color: var(--paper); }
.nav__list a:hover::after, .nav__list a[aria-current="page"]::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.header-phone { display: none; color: var(--paper); text-decoration: none; font-weight: 600; font-size: 0.9rem; letter-spacing: 0.02em; }
.header-cta { display: none; }
.menu-btn {
  width: 46px; height: 46px; display: inline-grid; place-items: center; border: 1px solid var(--line-on-dark);
  background: transparent; color: var(--paper); border-radius: var(--radius); cursor: pointer;
}
.menu-btn span { display: block; width: 20px; height: 2px; background: currentColor; position: relative; transition: background 0.2s; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: currentColor; transition: transform 0.25s var(--ease); }
.menu-btn span::before { top: -6px; }
.menu-btn span::after { top: 6px; }
.menu-open .menu-btn span { background: transparent; }
.menu-open .menu-btn span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-btn span::after { transform: translateY(-6px) rotate(-45deg); }
/* VR2-03: breakpoints in em so they follow the browser text size (62.5em = 1000px and 72em = 1152px at 100%; the tight band also covers 1366 px at 125% text). */
@media (min-width: 62.5em) and (max-width: 72em) {
  .nav__list { gap: 14px; }
  .nav__list a { letter-spacing: 0.08em; }
}
@media (min-width: 62.5em) {
  .nav { display: block; }
  .menu-btn { display: none; }
  .header-cta { display: inline-flex; }
}
@media (min-width: 77.5em) { .header-phone { display: inline; } }

.mobile-menu {
  position: fixed; inset: 0; z-index: 45; background: var(--ink); color: var(--paper);
  padding: calc(var(--header-h) + 24px) var(--gutter) 32px; display: flex; flex-direction: column; justify-content: space-between;
  opacity: 0; visibility: hidden; transition: opacity 0.25s var(--ease), visibility 0.25s;
  overflow-y: auto;
}
.menu-open .mobile-menu { opacity: 1; visibility: visible; }
.menu-open { overflow: hidden; }
.menu-open .site-header { background: var(--ink); top: 0; }
.mobile-menu__list a {
  display: block; font-family: var(--display); font-size: clamp(2rem, 9vw, 2.8rem); font-weight: 600; text-transform: uppercase;
  text-decoration: none; padding: 6px 0; border-bottom: 1px solid var(--line-on-dark); line-height: 1.15;
}
.mobile-menu__list a[aria-current="page"] { color: var(--slate-light); }
.mobile-menu__foot { display: grid; gap: 10px; margin-top: 32px; }
.mobile-menu__foot .btn { width: 100%; }
.mobile-menu__meta { color: var(--muted-on-dark); font-size: 0.9rem; margin-top: 12px; }

/* ---------- Home hero ---------- */
.hero {
  position: relative; min-height: 640px; min-height: clamp(640px, 100svh, 1040px);
  display: flex; align-items: flex-end; color: var(--paper); background: var(--ink); overflow: hidden; isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img, .hero__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__media video { opacity: 0; transition: opacity 0.8s var(--ease); }
.hero__media video.is-playing { opacity: 1; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.05) 30%, rgba(0, 0, 0, 0.35) 55%, rgba(0, 0, 0, 0.92) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 70%);
}
.hero__content { width: 100%; padding-top: calc(var(--header-h) + 64px); padding-bottom: clamp(96px, 12vh, 140px); }
.hero__eyebrow { font-family: var(--display); font-size: clamp(1.15rem, 2.4vw, 1.9rem); text-transform: uppercase; letter-spacing: 0.04em; font-weight: 500; margin: 0 0 10px; color: rgba(255, 255, 255, 0.85); }
.hero h1 { margin: 0; max-width: 11.5ch; text-wrap: balance; }
.hero h1 em { font-style: normal; -webkit-text-stroke: 2px var(--paper); color: transparent; }
.hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.55; color: rgba(255, 255, 255, 0.86); max-width: 46ch; margin: 22px 0 0; }
.hero .btn-row { margin-top: 32px; }
.hero__badge {
  position: absolute; right: var(--gutter); bottom: calc(clamp(104px, 13vh, 150px) + 56px); width: clamp(96px, 11vw, 150px); opacity: 0.95;
  display: none;
}
@media (min-width: 900px) { .hero__badge { display: block; } }
@media (max-width: 520px) { .hero .btn { flex: 1 1 100%; } }

.ticker {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; overflow: hidden; border-top: 1px solid var(--line-on-dark);
  background: rgba(10, 10, 10, 0.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.ticker__track { display: flex; width: max-content; animation: ticker 38s linear infinite; }
.ticker__track ul { display: flex; flex: none; }
.ticker__track li {
  display: flex; align-items: center; gap: 28px; padding: 15px 0 15px 28px; white-space: nowrap;
  font-family: var(--display); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.95rem; color: rgba(255, 255, 255, 0.9);
}
.ticker__track li::after { content: ""; width: 7px; height: 7px; background: var(--slate-light); transform: rotate(45deg); }
@keyframes ticker { to { transform: translateX(-50%); } }
.hero.is-still .ticker__track { animation-play-state: paused; } /* hero Pause button stops the ticker too */

/* ---------- Inner page hero ---------- */
.page-hero {
  position: relative; color: var(--paper); background: var(--ink); overflow: hidden; isolation: isolate;
  padding: clamp(72px, 11vw, 140px) 0 clamp(48px, 7vw, 88px);
}
.page-hero__media { position: absolute; inset: 0; z-index: -2; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1) brightness(0.8); }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.55) 60%, rgba(0, 0, 0, 0.35) 100%); }
.page-hero h1 { font-size: clamp(2.6rem, 6.4vw, 5.4rem); max-width: 14ch; margin-bottom: 0.3em; }
.page-hero .lead { color: rgba(255, 255, 255, 0.82); }
.breadcrumb { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-on-dark); margin-bottom: 22px; }
.breadcrumb a { color: var(--muted-on-dark); text-decoration: none; }
.breadcrumb a:hover { color: var(--paper); }
.page-nav { position: sticky; top: var(--header-h); z-index: 30; background: var(--paper); border-bottom: 1px solid var(--line); }
.page-nav__list { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-block: 10px; }
.page-nav__list::-webkit-scrollbar { display: none; }
.page-nav__list > li { flex: none; }
.page-nav__list a {
  flex: none; display: block; white-space: nowrap; padding: 8px 14px; border-radius: 999px; font-size: 0.78rem; font-weight: 650; letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: none; color: var(--muted); border: 1px solid var(--line); background: var(--paper);
}
.page-nav__list a:hover { color: var(--ink); border-color: var(--ink); }

/* ---------- Trust strip ---------- */
.facts { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.facts li { padding: clamp(18px, 3vw, 30px); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts b { display: block; font-family: var(--display); font-size: clamp(1.25rem, 2.2vw, 1.7rem); font-weight: 600; text-transform: uppercase; line-height: 1.05; }
.facts span { display: block; color: var(--muted); font-size: 0.92rem; margin-top: 6px; line-height: 1.45; }
@media (min-width: 900px) { .facts { grid-template-columns: repeat(4, 1fr); } }
/* Short fact lists: never leave empty cells. Two facts, or facts inside a half-width column: 2 up; three facts: 3 up. */
.split .facts, .facts:has(> li:nth-child(2):last-child) { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 600px) { .facts:has(> li:nth-child(3):last-child) { grid-template-columns: repeat(3, 1fr); } }
.section--dark .facts, .section--dark .facts li { border-color: var(--line-on-dark); }
.section--dark .facts span { color: var(--muted-on-dark); }

/* ---------- Program cards ---------- */
.programs { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .programs { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .programs { grid-template-columns: repeat(3, 1fr); } }
/* Four cards: 2 by 2, then one row of four on wide screens (no orphan card). */
@media (min-width: 1000px) { .programs:has(> :nth-child(4):last-child) { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1180px) { .programs:has(> :nth-child(4):last-child) { grid-template-columns: repeat(4, 1fr); } }
.program {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 440px; padding: 24px;
  border-radius: var(--radius); overflow: hidden; color: var(--paper); text-decoration: none; isolation: isolate; background: var(--ink-3);
}
.program > picture, .program > img { position: absolute; inset: 0; z-index: -2; }
.program > picture img, .program > img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease), filter 0.5s var(--ease); }
.program::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 22%, rgba(0, 0, 0, 0.55) 55%, rgba(0, 0, 0, 0.92) 100%); }
.program:hover > picture img, .program:hover > img { transform: scale(1.045); }
.program__top { position: absolute; top: 20px; left: 20px; right: 20px; display: flex; justify-content: space-between; gap: 8px; }
.program h3 { margin: 0 0 8px; font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.program p { margin: 0; color: rgba(255, 255, 255, 0.84); font-size: 0.97rem; line-height: 1.5; max-width: 38ch; }
.program__more { margin-top: 16px; font-family: var(--display); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.85rem; display: inline-flex; gap: 8px; align-items: center; }
.program__more::after { content: "\2192"; transition: transform 0.2s var(--ease); }
.program:hover .program__more::after { transform: translateX(4px); }

/* Detailed program rows (classes page) */
.program-row { display: grid; gap: clamp(24px, 4vw, 64px); align-items: center; padding-block: clamp(36px, 5vw, 64px); border-top: 1px solid var(--line); }
.program-row:first-of-type { border-top: 0; }
.program-row__media { aspect-ratio: 4 / 5; }
.program-row__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.program-row h3 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
.program-row ul:not([class]) { padding-left: 1.1em; margin: 0 0 1.1em; }
.program-row ul:not([class]) li + li { margin-top: 6px; }
@media (min-width: 900px) {
  .program-row { grid-template-columns: 0.8fr 1.2fr; }
  .program-row--flip { grid-template-columns: 1.2fr 0.8fr; }
  .program-row--flip .program-row__media { order: 2; }
}
.section--dark .program-row { border-color: var(--line-on-dark); }

/* ---------- Schedule ---------- */
.schedule { --hour-h: 84px; }
.schedule__filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.filter-btn {
  border: 1px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 999px; padding: 9px 16px;
  font: 650 0.78rem/1 var(--body); letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; transition: all 0.2s;
}
.filter-btn:hover { border-color: var(--ink); }
.filter-btn[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.section--dark .filter-btn { background: transparent; color: var(--paper); border-color: var(--line-on-dark); }
.section--dark .filter-btn[aria-pressed="true"] { background: var(--paper); color: var(--ink); border-color: var(--paper); }

.week { display: grid; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.week__row { display: contents; }
.week--desktop { display: none; }
@media (min-width: 900px) {
  .week--desktop { display: grid; grid-template-columns: 84px repeat(6, 1fr); }
}
.week__head { background: var(--ink); color: var(--paper); font-family: var(--display); text-transform: uppercase; letter-spacing: 0.08em; padding: 14px 10px; text-align: center; font-size: 0.95rem; }
.week__head.is-today { background: var(--slate); }
/* One row per hour (Oct 30, round 6): the label names the hour the row covers and the next label marks where it ends. */
.week__time { position: relative; height: var(--hour-h); background: var(--ink-2); color: var(--paper); font-family: var(--display); font-size: 0.95rem; line-height: 1; padding: 9px 10px 0; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.week__time--end { height: 30px; }
.week__cell { position: relative; height: var(--hour-h); border-top: 1px solid var(--line); border-left: 1px solid var(--line); padding: 0; }
.week__cell::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px dashed rgba(0, 0, 0, 0.07); pointer-events: none; }
.week__cell--end { height: 30px; }
.week__cell--end::after { display: none; }
.week__cell.is-today { background: #f7faf9; }
.week__closed { position: absolute; left: 0; right: 0; background-color: rgba(0, 0, 0, 0.03); background-image: repeating-linear-gradient(135deg, rgba(0, 0, 0, 0.11) 0 1px, transparent 1px 7px); pointer-events: none; }
.week .class-tag { position: absolute; left: 5px; right: 5px; top: calc(var(--top, 0%) + 4px); height: calc(var(--hour-h) * var(--span, 1) - 8px); z-index: 1; justify-content: flex-start; gap: 3px; padding: 8px 10px; }
.week--day { --hour-h: 76px; grid-template-columns: 68px minmax(0, 1fr); }
.week--day .week__head { padding: 10px 8px; }
.week--day .week__time { padding-inline: 8px; font-size: 0.9rem; }
.week--day .class-tag { gap: 2px; padding: 6px 10px; }
.section--dark .week { border-color: var(--line-on-dark); }
/* Two-line class names need a taller hour between 900 and 1239 px (round 6 review). */
@media (min-width: 900px) and (max-width: 1239px) { .schedule { --hour-h: 104px; } }
.class-tag {
  flex: 1; text-decoration: none; display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 8px 10px; border-radius: 3px;
  border-left: 4px solid var(--tag-bar, var(--ink)); background: var(--tag-bg, var(--paper-2)); color: var(--ink); transition: opacity 0.25s, filter 0.25s;
}
.class-tag b { font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.02em; font-size: 0.96rem; line-height: 1.1; }
.class-tag small { font-size: 0.74rem; color: var(--muted); font-weight: 550; letter-spacing: 0.02em; }
.class-tag__time { font-size: 0.8rem; font-weight: 650; letter-spacing: 0.02em; line-height: 1.2; white-space: nowrap; }
.class-tag.is-dim { opacity: 0.18; filter: grayscale(1); }
.class-tag[data-group="kids"] { --tag-bg: #e9f0ef; --tag-bar: var(--slate-2); }
.class-tag[data-group="teens"] { --tag-bg: #dde8e6; --tag-bar: var(--slate); }
.class-tag[data-group="adults"] { --tag-bg: #f0f0ee; --tag-bar: var(--ink); }
.class-tag[data-group="nogi"] { --tag-bg: var(--ink); --tag-bar: var(--slate-light); color: var(--paper); }
.class-tag[data-group="nogi"] small { color: var(--muted-on-dark); }
.class-tag[data-group="open"] { --tag-bg: transparent; --tag-bar: var(--muted); border: 1px dashed #9a9a9a; border-left: 4px solid var(--muted); }

.days { display: block; }
@media (min-width: 900px) { .days { display: none; } }
.days__tabs { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 14px; }
.day-tab {
  border: 1px solid var(--line); background: var(--paper); color: var(--ink); border-radius: var(--radius); padding: 9px 0 13px; cursor: pointer;
  font-family: var(--display); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.95rem; line-height: 1; position: relative;
}
.day-tab[aria-selected="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.day-tab.is-today::after { content: ""; position: absolute; left: 50%; bottom: 4px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--slate-light); }
.section--dark .day-tab { background: transparent; color: var(--paper); border-color: var(--line-on-dark); }
.section--dark .day-tab[aria-selected="true"] { background: var(--paper); color: var(--ink); }
.day-panel__hours { margin: 0 0 10px; font-size: 0.9rem; color: var(--muted); }
.section--dark .day-panel__hours { color: var(--muted-on-dark); }
.day-panel__closed { padding: 22px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); text-align: center; }
.section--dark .day-panel__closed { border-color: var(--line-on-dark); color: var(--muted-on-dark); }
.schedule__note { margin-top: 18px; font-size: 0.92rem; color: var(--muted); }
.section--dark .schedule__note { color: var(--muted-on-dark); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; font-size: 0.85rem; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 14px; height: 14px; border-radius: 3px; border-left: 4px solid var(--tag-bar); background: var(--tag-bg); display: inline-block; }
.legend [data-group="kids"] i { --tag-bg: #e9f0ef; --tag-bar: var(--slate-2); }
.legend [data-group="teens"] i { --tag-bg: #dde8e6; --tag-bar: var(--slate); }
.legend [data-group="adults"] i { --tag-bg: #f0f0ee; --tag-bar: var(--ink); }
.legend [data-group="nogi"] i { --tag-bg: var(--ink); --tag-bar: var(--slate-light); }
.legend [data-group="open"] i { --tag-bg: transparent; --tag-bar: var(--muted); border: 1px dashed #9a9a9a; border-left-width: 4px; }
.legend [data-group="closed"] i { border: 1px solid rgba(0, 0, 0, 0.28); background-color: rgba(0, 0, 0, 0.03); background-image: repeating-linear-gradient(135deg, rgba(0, 0, 0, 0.32) 0 1px, transparent 1px 5px); }
.section--dark .legend { color: var(--muted-on-dark); }
.section--dark .legend [data-group="closed"] i { border-color: rgba(255, 255, 255, 0.4); background-color: rgba(255, 255, 255, 0.06); background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.55) 0 1px, transparent 1px 5px); }

/* ---------- Hours ---------- */
.hours { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
.hours th, .hours td { padding: 11px 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 500; }
.hours th { font-weight: 650; width: 40%; }
.hours tr.is-today th, .hours tr.is-today td { color: var(--slate); font-weight: 700; }
.section--dark .hours th, .section--dark .hours td { border-color: var(--line-on-dark); }
.section--dark .hours tr.is-today th, .section--dark .hours tr.is-today td { color: var(--slate-light); }

/* ---------- Numbered reasons ---------- */
.reasons { display: grid; gap: 0; border-top: 1px solid var(--line-on-dark); }
@media (min-width: 760px) { .reasons { grid-template-columns: repeat(2, 1fr); column-gap: 48px; } }
@media (min-width: 1100px) { .reasons { grid-template-columns: repeat(3, 1fr); } }
.reasons li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 28px 0; border-bottom: 1px solid var(--line-on-dark); }
.reasons__n { font-family: var(--display); font-size: 1.6rem; color: var(--slate-light); line-height: 1; }
.reasons h3 { font-size: 1.35rem; margin-bottom: 8px; }
.reasons p { color: var(--muted-on-dark); font-size: 0.97rem; margin: 0; }
.section:not(.section--dark):not(.section--ink-2) .reasons, .section:not(.section--dark):not(.section--ink-2) .reasons li { border-color: var(--line); }
.section:not(.section--dark):not(.section--ink-2) .reasons p { color: var(--muted); }
.section:not(.section--dark):not(.section--ink-2) .reasons__n { color: var(--slate); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 32px; }
.stats > div { background: var(--paper); padding: 22px 18px; }
.stats b { display: block; font-family: var(--display); font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 600; line-height: 1; }
.stats span { display: block; margin-top: 8px; font-size: 0.86rem; color: var(--muted); line-height: 1.4; }
@media (min-width: 640px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.section--dark .stats, .section--ink-2 .stats { background: var(--line-on-dark); border-color: var(--line-on-dark); }
.section--dark .stats > div { background: var(--ink); }
.section--ink-2 .stats > div { background: var(--ink-2); }
.section--dark .stats span, .section--ink-2 .stats span { color: var(--muted-on-dark); }
.section--paper .stats > div { background: var(--paper-2); }

/* ---------- Credentials list ---------- */
.creds { display: grid; gap: 0; margin-top: 24px; border-top: 1px solid var(--line); }
.creds li { padding: 14px 0 14px 30px; border-bottom: 1px solid var(--line); position: relative; line-height: 1.5; }
.creds li::before { content: ""; position: absolute; left: 4px; top: 22px; width: 10px; height: 10px; background: var(--ink); transform: rotate(45deg); }
.section--dark .creds, .section--dark .creds li, .section--ink-2 .creds, .section--ink-2 .creds li { border-color: var(--line-on-dark); }
.section--dark .creds li::before, .section--ink-2 .creds li::before { background: var(--slate-light); }

/* ---------- URBAN JIU JITSU acrostic ---------- */
.acrostic { display: grid; gap: clamp(28px, 4vw, 56px); }
@media (min-width: 900px) { .acrostic { grid-template-columns: 5fr 4fr 5fr; align-items: start; } .acrostic > :nth-child(2) { align-self: center; } }
.acrostic__word h3 { font-size: 0.8rem; font-family: var(--body); letter-spacing: 0.22em; color: var(--slate-light); margin-bottom: 14px; }
.acrostic ol li { display: grid; grid-template-columns: clamp(52px, 6vw, 78px) 1fr; align-items: center; border-top: 1px solid var(--line-on-dark); padding: 6px 0; }
.acrostic ol li:last-child { border-bottom: 1px solid var(--line-on-dark); }
.acrostic__letter { font-family: var(--display); font-weight: 700; font-size: clamp(2.6rem, 5vw, 4.2rem); line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--paper); transition: color 0.3s; }
.acrostic ol li:hover .acrostic__letter { color: var(--paper); }
.acrostic__text { font-size: clamp(1.02rem, 1.4vw, 1.18rem); font-weight: 500; }
.acrostic__text b { font-weight: 750; }

/* ---------- Quote ---------- */
.creed { max-width: 980px; }
.creed blockquote { margin: 0; font-family: var(--display); font-size: clamp(1.8rem, 4vw, 3.2rem); line-height: 1.12; text-transform: uppercase; font-weight: 500; }
.creed blockquote::before { content: "\201C"; display: block; font-size: 5rem; line-height: 0.6; color: var(--slate-light); margin-bottom: 18px; }
.creed figcaption { margin-top: 22px; color: var(--muted-on-dark); letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.8rem; font-weight: 650; }
.section--slate .creed figcaption { color: #d5e1df; }

/* ---------- Gallery ---------- */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 30%); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: thin; }
.rail > * { scroll-snap-align: start; }
.rail img { width: 100%; height: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 640px) { .rail { grid-auto-columns: 72%; } }
.masonry { columns: 2 140px; column-gap: 10px; }
@media (min-width: 900px) { .masonry { columns: 4 240px; } }
.masonry a { display: block; break-inside: avoid; margin-bottom: 12px; border-radius: var(--radius); overflow: hidden; background: var(--paper-3); position: relative; }
.masonry img { width: 100%; height: auto; transition: transform 0.6s var(--ease); }
.masonry a:hover img { transform: scale(1.03); }
.reels { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 900px) { .reels { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .reels { grid-template-columns: repeat(6, 1fr); } }
.reel { position: relative; aspect-ratio: 9 / 16; border-radius: var(--radius); overflow: hidden; background: var(--ink-3); }
.reel video { width: 100%; height: 100%; object-fit: cover; }
.reel__label { position: absolute; left: 10px; bottom: 10px; right: 10px; font-family: var(--display); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.9rem; color: var(--paper); text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6); }

.lightbox { position: fixed; inset: 0; z-index: 120; background: #080808; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: none; align-items: center; justify-content: center; padding: 56px 16px; }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: min(1400px, 100%); max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 2px; }
.lightbox button { position: absolute; background: rgba(255, 255, 255, 0.1); color: var(--paper); border: 1px solid rgba(255, 255, 255, 0.3); width: 48px; height: 48px; border-radius: 50%; font-size: 1.4rem; cursor: pointer; display: grid; place-items: center; }
.lightbox__count { position: absolute; left: 0; right: 0; bottom: 18px; margin: 0; text-align: center; font: 500 0.8rem/1 var(--body); letter-spacing: 0.12em; color: var(--muted-on-dark); pointer-events: none; }
.lightbox__close { top: 14px; right: 14px; }
.lightbox__prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 14px; top: 50%; transform: translateY(-50%); }

/* ---------- Cards and info blocks ---------- */
.cards { display: grid; gap: 16px; }
@media (min-width: 760px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 32px); }
.card h3 { margin-bottom: 12px; }
.card p { color: var(--muted); }
a.card { display: block; text-decoration: none; color: inherit; transition: border-color 0.2s var(--ease), transform 0.2s var(--ease); }
a.card:hover { border-color: var(--ink); transform: translateY(-2px); }
a.card h3 { text-decoration: none; }
.card--dark { background: var(--ink-2); border-color: var(--line-on-dark); color: var(--paper); }
.card--dark p { color: var(--muted-on-dark); }
.section--paper .card { background: var(--paper); }
.card__icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--paper); margin-bottom: 18px; }
.card__icon svg { width: 20px; height: 20px; }
.card--dark .card__icon { background: var(--paper); color: var(--ink); }

.rules-list { display: grid; gap: 0; counter-reset: rule; max-width: 82ch; }
.rules-list li { counter-increment: rule; display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); line-height: 1.55; }
.rules-list li::before { content: counter(rule, decimal-leading-zero); font-family: var(--display); color: var(--slate); font-size: 1.05rem; padding-top: 1px; }

details.disclosure { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
details.disclosure + details.disclosure { margin-top: 10px; }
details.disclosure summary {
  list-style: none; cursor: pointer; padding: 18px 22px; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-family: var(--display); text-transform: uppercase; letter-spacing: 0.04em; font-size: 1.15rem; font-weight: 600;
}
details.disclosure summary::-webkit-details-marker { display: none; }
details.disclosure summary::after { content: "+"; font-size: 1.6rem; line-height: 1; transition: transform 0.2s; }
details.disclosure[open] summary::after { transform: rotate(45deg); }
details.disclosure .disclosure__body { padding: 0 22px 22px; color: #333; font-size: 0.97rem; }

/* ---------- Visit and contact ---------- */
.visit { display: grid; gap: 16px; }
@media (min-width: 960px) { .visit { grid-template-columns: 1.1fr 0.9fr; } }
.contact-list { display: grid; gap: 0; }
.contact-list li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line-on-dark); align-items: start; }
.contact-list svg { width: 22px; height: 22px; margin-top: 2px; color: var(--slate-light); }
.contact-list a { text-decoration: none; font-weight: 600; }
.contact-list a:hover { text-decoration: underline; }
.contact-list small { display: block; color: var(--muted-on-dark); font-size: 0.85rem; }
.section:not(.section--dark):not(.section--ink-2) .contact-list li { border-color: var(--line); }
.section:not(.section--dark):not(.section--ink-2) .contact-list svg { color: var(--slate); }
.section:not(.section--dark):not(.section--ink-2) .contact-list small { color: var(--muted); }
.map-card { position: relative; min-height: 340px; border-radius: var(--radius); overflow: hidden; background: var(--ink-3); }
.map-card iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.05); }

.form { display: grid; gap: 14px; }
.form__row { display: grid; gap: 14px; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.78rem; font-weight: 650; letter-spacing: 0.1em; text-transform: uppercase; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: 13px 14px; border: 1px solid #c9c9c6; border-radius: var(--radius); background: var(--paper); color: var(--ink);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--ink); outline-offset: 1px; border-color: var(--ink); }
.form__note { font-size: 0.85rem; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; isolation: isolate; background: var(--ink); color: var(--paper); }
.cta-band__media { position: absolute; inset: 0; z-index: -2; }
.cta-band__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1) brightness(0.55); }
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.35)); }
.cta-band h2 { font-size: clamp(2.4rem, 6vw, 5rem); max-width: 14ch; }
.cta-band .lead { color: rgba(255, 255, 255, 0.84); }
.cta-band .kicker { color: var(--slate-light); }
.section--dark .chip:not(.chip--light):not(.chip--dark), .section--ink-2 .chip:not(.chip--light):not(.chip--dark) { background: rgba(255, 255, 255, 0.1); color: var(--paper); }
.section--dark .chip--dark { background: var(--paper); color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--paper); padding: clamp(56px, 7vw, 96px) 0 28px; border-top: 1px solid var(--line-on-dark); }
.footer-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.3fr 0.8fr 1fr 1fr; } }
.footer-brand img { width: 84px; height: 84px; margin-bottom: 18px; }
.footer-brand p { color: var(--muted-on-dark); font-size: 0.95rem; max-width: 34ch; }
.site-footer .footer-h { font-family: var(--body); font-size: 0.75rem; letter-spacing: 0.2em; color: var(--muted-on-dark); margin-bottom: 16px; font-weight: 650; line-height: 1.3; }
.footer-links li + li { margin-top: 8px; }
.footer-links a { text-decoration: none; color: rgba(255, 255, 255, 0.86); font-size: 0.95rem; }
.footer-links a:hover { color: var(--paper); text-decoration: underline; }
.footer-contact { font-size: 0.95rem; color: rgba(255, 255, 255, 0.86); font-style: normal; line-height: 1.7; }
.footer-contact a { color: inherit; text-decoration: none; }
.footer-contact a:hover { text-decoration: underline; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { width: 42px; height: 42px; border: 1px solid var(--line-on-dark); border-radius: 50%; display: grid; place-items: center; color: var(--paper); transition: background 0.2s, color 0.2s; }
.socials a:hover { background: var(--paper); color: var(--ink); }
.socials svg { width: 18px; height: 18px; }
.footer-bottom { margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line-on-dark); display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; color: var(--muted-on-dark); font-size: 0.82rem; }
.footer-bottom a { color: var(--muted-on-dark); }
.demo-note { opacity: 0.85; }

/* Sticky phone CTA on small screens */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: rgba(10, 10, 10, 0.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line-on-dark); transform: translateY(110%); transition: transform 0.3s var(--ease); }
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta .btn { min-height: 46px; padding-inline: 10px; font-size: 0.92rem; }
@media (min-width: 900px) { .sticky-cta { display: none; } }
@media (max-width: 899px) { .site-footer { padding-bottom: 96px; } }

/* ---------- Reveal on scroll (only when JS runs) ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal-stagger > * { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.js .reveal-stagger.is-in > * { opacity: 1; transform: none; }
.js .reveal-stagger.is-in > *:nth-child(2) { transition-delay: 0.07s; }
.js .reveal-stagger.is-in > *:nth-child(3) { transition-delay: 0.14s; }
.js .reveal-stagger.is-in > *:nth-child(4) { transition-delay: 0.21s; }
.js .reveal-stagger.is-in > *:nth-child(5) { transition-delay: 0.28s; }
.js .reveal-stagger.is-in > *:nth-child(6) { transition-delay: 0.35s; }
.js .reveal-stagger.is-in > *:nth-child(n + 7) { transition-delay: 0.42s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .ticker__track { animation: none; }
  .js .reveal, .js .reveal-stagger > * { opacity: 1; transform: none; }
}

/* ---------- Review round 1 additions ---------- */
/* Two photos side by side instead of a tall stack beside short text. */
.media-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-self: start; }
.media-pair .media-frame { aspect-ratio: 4 / 5 !important; }
@media (max-width: 599px) { .media-pair { grid-template-columns: 1fr; } }
/* Long bio beside a portrait: keep the portrait in view while reading. */
@media (min-width: 900px) { .split--top > .media-frame { position: sticky; top: calc(var(--header-h) + 24px); } }
/* Long mission text: two columns on wide screens. */
.prose--cols { max-width: none; }
@media (min-width: 900px) {
  .prose--cols { columns: 2 340px; column-gap: 56px; }
  .prose--cols h3 { break-after: avoid; }
  .prose--cols h3:first-child { margin-top: 0; }
  .prose--cols p { break-inside: avoid; }
}
/* Facts inside a half-width column use a smaller headline so three fit. */
.split .facts b { font-size: clamp(1.1rem, 1.6vw, 1.3rem); }

/* ---------- Google reviews (round 2) ---------- */
.stars { letter-spacing: 0.12em; line-height: 1; color: var(--ink); }
.hero__rating {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; color: rgba(255, 255, 255, 0.9);
  font-size: 0.92rem; font-weight: 600; text-decoration: none;
}
.hero__rating .stars { color: var(--paper); font-size: 0.95rem; }
.hero__rating:hover span:last-child { text-decoration: underline; text-underline-offset: 3px; }
.rating { display: inline-flex; align-items: center; gap: 14px; color: var(--text); text-decoration: none; }
.rating__score { font-family: var(--display); font-size: clamp(3rem, 6vw, 4.5rem); font-weight: 600; line-height: 0.9; }
.rating__meta { display: grid; gap: 8px; font-size: 0.9rem; font-weight: 600; color: var(--muted); }
.rating__meta .stars { font-size: 1.15rem; }
.rating:hover .rating__meta > span:last-child { text-decoration: underline; text-underline-offset: 3px; }
.reviews { display: grid; grid-auto-flow: column; grid-auto-columns: 86%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  margin-inline: calc(-1 * var(--gutter)); padding: 2px var(--gutter) 14px; scroll-padding-inline: var(--gutter); scrollbar-width: thin; }
.reviews > * { scroll-snap-align: start; }
@media (max-width: 899px) { .reviews > * { align-self: start; } }
.reviews:focus-visible { outline-offset: -3px; }
@media (min-width: 640px) { .reviews { grid-auto-columns: 46%; } }
@media (min-width: 900px) {
  .reviews { display: block; columns: 3 280px; column-gap: 16px; overflow: visible; margin-inline: 0; padding: 0; }
  .reviews > .review { break-inside: avoid; margin-bottom: 16px; }
}
.review { margin: 0; display: flex; flex-direction: column; gap: 14px; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 2.6vw, 28px); }
.review blockquote { margin: 0; }
.review blockquote p { margin: 0; font-size: 1rem; line-height: 1.6; }
.review figcaption { display: flex; align-items: baseline; gap: 10px; margin-top: auto; font-size: 0.9rem; }
.review figcaption b { font-weight: 700; }
.review figcaption span { color: var(--muted); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 650; }
.reviews__more { margin: 18px 0 0; }

/* ---------- Sample film page (round 2) ---------- */
.film-page { padding-top: calc(var(--header-h) + clamp(40px, 6vw, 72px)); min-height: 100svh; }
@media (max-width: 899px) { .film-page { padding-top: calc(var(--header-h) + 52px); } .film-page__player { order: -1; } }
.film-page__grid { display: grid; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (min-width: 900px) { .film-page__grid { grid-template-columns: 1fr minmax(320px, 420px); } }
.film-page__player video { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; max-height: 82svh; margin-inline: auto; background: var(--ink-3); border-radius: var(--radius); }
.film-page .breadcrumb a { color: inherit; }

/* ---------- Round 3: design and accessibility polish ---------- */
.nowrap { white-space: nowrap; }

/* Colour on purpose (Jay, Oct 30): content photos, reels, the gallery and the lightbox stay in full colour.
 * Only the page heroes, CTA bands, the map and media-frame--bw portraits are graded black and white. */

/* D11: ten cards, two columns from tablet width (five even rows, no orphan). */
@media (min-width: 760px) { .cards--3:has(> :nth-child(10):last-child) { grid-template-columns: repeat(2, 1fr); } }

/* D12: "Almost" as a small kicker line above the number; every number sits on the same line. */
.stats b { display: flex; flex-direction: column; justify-content: flex-end; min-height: calc(1em + 22px); }
.stat__pre { display: block; font-family: var(--body); font-size: 0.68rem; font-weight: 650; letter-spacing: 0.18em; line-height: 1; text-transform: uppercase; color: var(--slate); margin-bottom: 8px; white-space: nowrap; }
.section--dark .stat__pre, .section--ink-2 .stat__pre { color: var(--slate-light); }

/* A2: pause controls for moving video. */
.hero__pause, .reels-toggle { min-height: 44px; min-width: 44px; }
.hero__pause {
  position: absolute; right: var(--gutter); bottom: 72px; z-index: 2; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 0 18px; border: 2px solid rgba(255, 255, 255, 0.7); border-radius: var(--radius); background: rgba(10, 10, 10, 0.62);
  color: var(--paper); cursor: pointer; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  font-family: var(--display); font-weight: 600; font-size: 0.9rem; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.hero__pause:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.hero__pause[hidden], .reels-toggle[hidden] { display: none; }
.ctl-ico { display: inline-block; width: 12px; height: 14px; border-left: 4px solid currentColor; border-right: 4px solid currentColor; }
.hero__pause.is-paused .ctl-ico { width: 0; height: 0; border-left: 12px solid currentColor; border-right: 0; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.reels__ctl { margin: 0 0 16px; }

/* A6: quiet required marker in labels. */
.field label .req { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--muted); font-size: 0.82rem; }

/* A8: footer and contact links reach 24px tall without moving the layout (padding is cancelled by margin). */
.footer-links a, .footer-contact a, .contact-list a, .footer-bottom a { display: inline-block; padding-block: 5px; margin-block: -5px; line-height: 1.4; }
/* Phones: lift the hero copy so the pause button never covers the rating line. */
@media (max-width: 899px) { .hero__content { padding-bottom: 136px; } }

/* ---------- Round 4 (Oct 30): conversion and layout ---------- */
/* VR2-04: phone numbers never split across lines. */
a[href^="tel:"], .announce a { white-space: nowrap; }
/* VR2-07: keep faces in the upper third of the colour team photo (no filter). */
.media-frame--community img { object-position: 50% 78%; }
/* CRO-03: classes in the timetable and time chips on /classes/ are links to the free-class form. */
a.class-tag:hover b { text-decoration: underline; text-underline-offset: 3px; }
a.class-tag:focus-visible { outline-offset: 1px; }
a.chip { text-decoration: none; min-height: 28px; }
a.chip:hover { text-decoration: underline; text-underline-offset: 3px; }
a.chip::after { content: "\2192"; font-size: 0.9em; }
/* Trust strip right after the hero. */
.trust { padding-block: clamp(28px, 4vw, 48px); }
/* Why Urban: three sourced chips under item 02. */
.reasons .reasons__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
/* CRO-04 and CRO-05: proof and preparation beside the decision. */
.proof { display: grid; gap: clamp(20px, 3vw, 32px); margin-top: clamp(28px, 4vw, 48px); align-items: start; }
@media (min-width: 900px) { .proof { grid-template-columns: 1fr 1fr; } }
.proof > .review { max-width: 640px; }
.prep { margin: 0; }
.prep h3 { font-size: clamp(1.2rem, 1.8vw, 1.45rem); margin-bottom: 4px; }
.prep .creds { margin-top: 12px; }
.prep .creds li { padding-block: 10px; }
.prep .creds li::before { top: 18px; }
.prep--aside { margin-bottom: 36px; padding: clamp(20px, 2.6vw, 28px); background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); }
.section--dark .review { color: var(--ink); }
.program-row__note { font-size: 0.97rem; }
/* CRO-01: the form explains itself before and after the tap. */
.form__done { font-size: 0.95rem; }
.form__done:not(:empty) { padding: 16px 18px; border-left: 4px solid var(--slate); background: var(--slate-tint); border-radius: var(--radius); }
.form__done p { margin: 0; }
.form__wa[hidden] { display: none; }
/* Class links keep their tag colours inside dark sections (the generic dark-section link colour would whiten them). */
.section--dark a.class-tag, .section--ink-2 a.class-tag { color: var(--ink); }
.section--dark a.class-tag[data-group="nogi"], .section--ink-2 a.class-tag[data-group="nogi"] { color: var(--paper); }
/* Long sourced headings sit a step smaller. */
.h2--long { font-size: clamp(1.8rem, 3.6vw, 3rem); }
.section--dark a.chip--dark, .section--ink-2 a.chip--dark { color: var(--ink); }
.section-head__note { margin-top: 14px; }
