/* ==========================================================================
   STUDIO 20 — public design system
   Black / white / red. Bold editorial type, premium cards, restrained motion.
   ========================================================================== */

:root {
  --bg: #070708;
  --bg-2: #0d0d10;
  --surface: #131317;
  --surface-2: #1a1a20;
  --surface-3: #22222a;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f6f6f8;
  --text-2: #c9c9d1;
  --muted: #8f8f9b;
  --red: #e0132b;
  --red-2: #ff2f47;
  --red-soft: rgba(224, 19, 43, 0.14);
  --red-glow: rgba(224, 19, 43, 0.45);
  --green: #22c55e;
  --amber: #f59e0b;
  --blue: #60a5fa;
  --font-display: "Outfit", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --container: 1280px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section: clamp(3.25rem, 6.5vw, 5.75rem);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 76px;
}
/* Where sticky bars sit: under the header, or at the very top once the header has slid away. */
html { --sticky-top: var(--header-h); }
html.header-hidden { --sticky-top: 0px; }

/* Reset ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; scrollbar-color: #3a3a44 var(--bg); }
/* Anchor links land below the sticky header instead of under it. */
[id] { scroll-margin-top: 6rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
p a, .prose a, .field__hint a, .auth-card__alt a, .checkbox a { color: var(--red-2); text-decoration: underline; text-underline-offset: 3px; }
button { font: inherit; color: inherit; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); line-height: 1.05; letter-spacing: -0.02em; }
p { margin: 0 0 1rem; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.95em; }
:focus-visible { outline: 3px solid var(--red-2); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--red); color: #fff; }

.sr-only { position: absolute !important; 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: 1rem; top: -4rem; z-index: 1000; padding: 0.6rem 1rem; background: var(--red); color: #fff; border-radius: 8px; font-weight: 600; transition: top 0.2s; }
.skip-link:focus { top: 1rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Layout ------------------------------------------------------------------ */
.container { width: min(var(--container), 100% - var(--gutter) * 2); margin-inline: auto; }
.container--narrow { max-width: 780px; }
.section { padding-block: var(--section); position: relative; }
.section-sm { padding-block: clamp(2rem, 5vw, 4rem); }
.section--surface { background: var(--bg-2); }
.section--dark { background: #050506; }
.section--legal { padding-top: calc(var(--section) + 3rem); }
.section--slant::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: clamp(40px, 6vw, 90px);
  background: var(--bg); clip-path: polygon(0 0, 100% 0, 100% 100%);
}
.section--slant { padding-top: calc(var(--section) + clamp(20px, 3vw, 50px)); }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); flex-wrap: wrap; }
.section__head--center { flex-direction: column; align-items: center; text-align: center; }
.section__aside { max-width: 32ch; margin: 0 0 0.5rem; color: var(--muted); font-size: 1rem; line-height: 1.55; }
.pills { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.6rem 0 2rem; }
.pills li { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.55rem 1rem; border: 1px solid var(--border-strong); border-radius: 999px; font-size: 0.88rem; color: var(--text-2); }
.pills li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--red-2); }
.section__head--center .lead { max-width: 720px; }

/* Typography -------------------------------------------------------------- */
.display { font-size: clamp(2.8rem, 8vw, 6rem); font-weight: 900; text-transform: uppercase; }
.display-sm { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -0.025em; }
.h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 800; }
.h3 { font-size: clamp(1.3rem, 2.5vw, 1.6rem); font-weight: 700; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--text-2); max-width: 60ch; }
.display + .lead, .display-sm + .lead, .h2 + .lead, .h3 + .lead { margin-top: 1.1rem; }
.eyebrow { display: inline-flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; font-family: var(--font-display); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--red-2); }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--red); border-radius: 2px; }
main { counter-reset: sec; }
.section .eyebrow::after, .gallery .eyebrow::after { counter-increment: sec; content: "/ " counter(sec, decimal-leading-zero); margin-left: 0.3rem; color: var(--muted); font-weight: 600; }
.section .staff-profile__body .eyebrow::after, .section.cta-band .eyebrow::after { content: none; }
.text-red { color: var(--red-2); }
.text-muted { color: var(--muted); }
.text-center { text-align: center; }
.site-footer__legal { padding-block: 1.25rem 0; }
.site-footer__credit { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.45rem; margin: 0; font-size: 0.83rem; color: var(--muted); }
/* XLeo wordmark, set from the developer's own brand CSS. text-decoration is stated
   explicitly because the global `p a` rule underlines links inside paragraphs. */
.footer-credit-logo {
  display: inline-flex;
  align-items: baseline;
  min-height: 24px;
  font-family: "Space Grotesk", "Poppins", var(--font-display), sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
  text-decoration: none;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.footer-credit-logo:hover { opacity: 0.8; text-decoration: none; }
.footer-credit-logo .logo-x { color: #60a5fa; font-size: 1.17rem; font-style: italic; font-weight: 800; }
@media (max-width: 768px) {
  .footer-credit-logo { font-size: 0.95rem; }
  .footer-credit-logo .logo-x { font-size: 1.11rem; }
}
@media (max-width: 480px) {
  .footer-credit-logo { font-size: 0.92rem; }
  .footer-credit-logo .logo-x { font-size: 1.07rem; }
}
.site-footer__trader { margin: 0; font-size: 0.82rem; line-height: 1.7; color: var(--muted); }

/* Footnote under a grid — needs real air above it or it reads as part of the last card. */
.grid-note { margin: clamp(2.5rem, 5vw, 3.75rem) auto 0; max-width: 62ch; font-size: 0.95rem; }
.mt { margin-top: 1rem; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 0.02em; }
.placeholder-text { color: var(--muted); font-style: italic; }
.prose h2 { font-size: 1.35rem; margin: 2rem 0 0.6rem; }
.prose ul { list-style: disc; padding-left: 1.4rem; margin-bottom: 1rem; color: var(--text-2); }
.prose li { margin-bottom: 0.4rem; }
.prose p { color: var(--text-2); }
.prose h3 { font-size: 1.05rem; margin: 1.5rem 0 0.4rem; }
.prose code { padding: 0.1rem 0.35rem; border-radius: 6px; background: var(--surface-2); color: var(--text); }
.prose-table { margin: 1rem 0 1.5rem; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.prose-table table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.prose-table th, .prose-table td { padding: 0.75rem 0.9rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.prose-table thead th { background: var(--surface); font-family: var(--font-display); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text); }
.prose-table tbody tr:last-child th, .prose-table tbody tr:last-child td { border-bottom: 0; }
.prose-table td { color: var(--text-2); }
/* Map — facade first, iframe swapped in on request. */
.map { margin: 2rem 0 clamp(2.75rem, 5vw, 3.75rem); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.map__facade { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.75rem; min-height: 260px; padding: 2rem 1.5rem; text-align: center; background: radial-gradient(120% 100% at 50% 0%, rgba(224, 19, 43, 0.08), transparent 70%), var(--bg-2); }
.map__pin { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--red-soft); color: var(--red-2); }
.map__address { margin: 0; font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; color: var(--text); }
.map__note { margin: 0; font-size: 0.78rem; color: var(--muted); }
.map iframe { display: block; width: 100%; height: 340px; border: 0; }
.map__caption { display: flex; justify-content: flex-end; padding: 0.7rem 1rem; border-top: 1px solid var(--border); background: var(--surface); }
.map__directions { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 24px; font-size: 0.85rem; font-weight: 600; color: var(--red-2); }
.map__directions:hover { text-decoration: underline; text-underline-offset: 3px; }

.terms-example { padding: 0.9rem 1.1rem; border-left: 3px solid var(--red); background: var(--bg-2); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 0.95rem; }
.cancel-form { margin: 1rem 0 0; padding: 1.25rem 1.4rem; border: 1px dashed var(--border-strong); border-radius: var(--radius-sm); background: var(--bg-2); color: var(--text-2); font-size: 0.95rem; }
.cancel-form p:last-child { margin-bottom: 0; }

/* Pre-contract information shown before the customer commits to paying. */
.precontract { margin-bottom: 1.5rem; padding: 1.25rem 1.4rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-2); }
.precontract__title { display: flex; align-items: center; gap: 0.5rem; margin: 0 0 0.75rem; font-family: var(--font-display); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text); }
.precontract ul { display: grid; gap: 0.55rem; margin: 0; padding: 0; list-style: none; font-size: 0.9rem; line-height: 1.6; color: var(--text-2); }
.precontract li { padding-left: 1.1rem; position: relative; }
.precontract li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 5px; height: 5px; border-radius: 50%; background: var(--red); }

/* Buttons ----------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.85rem 1.5rem; border-radius: 999px; border: 1.5px solid transparent;
  /* <button> would otherwise inherit the UA's dark-scheme grey (buttonface), which
     turns every .btn--ghost into a grey pill and fails contrast. */
  background: transparent; color: inherit;
  font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; letter-spacing: 0.04em; text-transform: uppercase;
  line-height: 1; white-space: nowrap; position: relative; overflow: hidden; isolation: isolate; text-decoration: none;
  /* --tx/--ty are set by ui.js on [data-magnetic] buttons so they lean toward the pointer. */
  transform: translate(var(--tx, 0px), var(--ty, 0px));
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.2s, border-color 0.2s, color 0.2s;
}
.btn:hover { transform: translate(var(--tx, 0px), calc(var(--ty, 0px) - 2px)); }
.btn:active { transform: translate(var(--tx, 0px), var(--ty, 0px)) scale(0.98); }
/* A light sweep across filled buttons on hover. */
.btn--primary::after, .btn--hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.28) 50%, transparent 70%); transform: translateX(-120%); transition: transform 0.7s var(--ease); }
.btn--primary:hover::after, .btn--hero:hover::after { transform: translateX(120%); }
.btn .icon-arrow { transition: transform 0.25s var(--ease); }
.btn:hover .icon-arrow { transform: translateX(3px); }
/* Submitting: the label stays put and a spinner takes its place beside it. */
.btn.is-loading { pointer-events: none; opacity: 0.85; }
.btn.is-loading::before { content: ""; width: 1em; height: 1em; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn--primary { background: var(--red); color: #fff; box-shadow: 0 10px 30px -10px var(--red-glow); }
.btn--primary:hover { background: var(--red-2); box-shadow: 0 14px 34px -10px var(--red-glow); }
.btn--outline { border-color: var(--border-strong); color: var(--text); background: rgba(255, 255, 255, 0.02); }
.btn--outline:hover { border-color: #fff; background: rgba(255, 255, 255, 0.06); }
.btn--ghost { color: var(--text-2); padding-inline: 1rem; }
.btn--ghost:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.btn--danger { background: var(--red); color: #fff; }
.btn--danger-text { color: #ff6b7b; }
.btn--danger-text:hover { background: var(--red-soft); color: #ff8a97; }
.btn--sm { padding: 0.6rem 1.05rem; font-size: 0.8rem; }
.btn--xs { padding: 0.4rem 0.75rem; font-size: 0.72rem; }
.btn--lg { padding: 1.05rem 2rem; font-size: 1.02rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: 0.5; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; align-items: center; }
.btn-row--center { justify-content: center; }

/* Chips & badges ----------------------------------------------------------- */
.chip { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.35rem 0.7rem; border-radius: 999px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-family: var(--font-display); }
.chip--red { background: var(--red); color: #fff; }
.chip--dark { background: rgba(0, 0, 0, 0.6); color: #fff; border: 1px solid var(--border-strong); backdrop-filter: blur(6px); }
.chip--xs { padding: 0.2rem 0.5rem; font-size: 0.62rem; }
.badge { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.3rem 0.65rem; border-radius: 999px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; font-family: var(--font-display); border: 1px solid transparent; }
.badge--lg { padding: 0.55rem 1rem; font-size: 0.9rem; }
.badge--success { background: rgba(34, 197, 94, 0.15); color: #4ade80; border-color: rgba(34, 197, 94, 0.3); }
.badge--warning { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border-color: rgba(245, 158, 11, 0.3); }
.badge--danger { background: var(--red-soft); color: #ff6b7b; border-color: rgba(224, 19, 43, 0.35); }
.badge--info { background: rgba(96, 165, 250, 0.15); color: #93c5fd; border-color: rgba(96, 165, 250, 0.3); }
.badge--neutral { background: rgba(255, 255, 255, 0.06); color: var(--text-2); border-color: var(--border); }

/* Alerts & toasts ---------------------------------------------------------- */
.alert { display: flex; gap: 0.6rem; align-items: flex-start; padding: 0.9rem 1.1rem; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: var(--surface-2); margin: 0 0 1.25rem; font-size: 0.95rem; }
.alert .icon { flex: none; margin-top: 0.15rem; }
.alert--error { border-color: rgba(224, 19, 43, 0.5); background: var(--red-soft); color: #ffd3d8; }
.alert--success { border-color: rgba(34, 197, 94, 0.4); background: rgba(34, 197, 94, 0.1); color: #d1fae5; }
.alert--warning { border-color: rgba(245, 158, 11, 0.4); background: rgba(245, 158, 11, 0.1); color: #fde68a; }
.alert--info { border-color: rgba(96, 165, 250, 0.4); background: rgba(96, 165, 250, 0.1); color: #dbeafe; }
.toast-region { position: fixed; z-index: 900; right: 1rem; bottom: 1rem; max-width: min(420px, calc(100% - 2rem)); }
.toast { display: flex; align-items: center; gap: 0.6rem; padding: 0.9rem 1rem; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--border-strong); box-shadow: var(--shadow); animation: toast-in 0.4s var(--ease); }
.toast--success { border-color: rgba(34, 197, 94, 0.5); }
.toast--error { border-color: rgba(224, 19, 43, 0.6); }
.toast--warning { border-color: rgba(245, 158, 11, 0.5); }
.toast__close { margin-left: auto; background: none; border: 0; color: var(--muted); padding: 0.25rem; border-radius: 6px; }
.toast__close:hover { color: #fff; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Notice strips ------------------------------------------------------------ */
.notice-strip { display: flex; align-items: center; justify-content: center; gap: 0.6rem; margin: 0; padding: 0.8rem 0; font-family: var(--font-display); font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.85rem; color: #fff; }
.policy-banner { display: flex; align-items: center; justify-content: center; gap: 0.7rem; margin: 2.5rem auto 1.5rem; padding: 0.75rem 1.2rem; max-width: 820px; border-radius: 999px; background: var(--red-soft); border: 1px solid rgba(224, 19, 43, 0.4); color: #fff; font-family: var(--font-display); font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; font-size: clamp(0.66rem, 1.2vw, 0.78rem); line-height: 1.45; text-align: center; }
.policy-banner--top { margin-top: 0; margin-bottom: 2rem; }
.policy-banner .icon { color: var(--red-2); flex: none; }
.notice-inline { display: flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1rem; border-radius: var(--radius-sm); background: var(--red-soft); border: 1px solid rgba(224, 19, 43, 0.35); font-family: var(--font-display); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.78rem; margin-top: 1.25rem; }
.notice-inline .icon { color: var(--red-2); flex: none; }

/* Header ------------------------------------------------------------------ */
/* A floating glass pill. The header itself is an invisible, full-width strip (so everything that measures against
   --header-h still works) and lets clicks through; only the pill takes them. */
.site-header { position: sticky; top: 0; z-index: 800; pointer-events: none; transition: transform 0.45s var(--ease); view-transition-name: site-header; }
/* Slides away while reading down the page and returns the moment you scroll up. */
.site-header.is-hidden { transform: translateY(-120%); }
.site-header__inner { pointer-events: auto; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; width: min(var(--container), 100% - var(--gutter) * 2); min-height: calc(var(--header-h) - 18px); margin: 9px auto; padding: 0 0.7rem 0 1.4rem; border: 1px solid rgba(255, 255, 255, 0.06); border-radius: 999px; background: rgba(14, 14, 17, 0.5); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); transition: background 0.35s, border-color 0.35s, box-shadow 0.35s; }
.site-header.is-scrolled .site-header__inner { border-color: var(--border); background: rgba(12, 12, 15, 0.82); box-shadow: 0 22px 44px -26px rgba(0, 0, 0, 0.9); }
/* Reading progress, pinned to the very top of the screen so it stays put while the header slides away. */
.scroll-progress { position: fixed; left: 0; right: 0; top: 0; z-index: 900; height: 3px; background: linear-gradient(90deg, var(--red), var(--red-2)); transform-origin: left; transform: scaleX(var(--progress, 0)); pointer-events: none; }
/* flex:none + max-width:none stop the logo collapsing when the nav gets tight. */
.site-header__brand { display: inline-flex; align-items: center; flex: none; }
.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.site-nav__list { display: flex; gap: 0.1rem; }
.site-nav__link { display: inline-block; padding: 0.55rem 0.8rem; border-radius: 999px; font-family: var(--font-display); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-2); position: relative; transition: color 0.2s, background 0.25s; }
.site-nav__link::after { content: ""; position: absolute; left: 50%; bottom: 0.2rem; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--red-2); transform: scale(0); transition: transform 0.3s var(--ease); }
.site-nav__link:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.site-nav__link.is-active { color: #fff; }
.site-nav__link.is-active::after { transform: scale(1); }
.site-nav__actions { display: flex; align-items: center; gap: 0.5rem; }
.nav-toggle { display: none; background: none; border: 1px solid var(--border-strong); border-radius: 50%; width: 44px; height: 44px; padding: 0; place-items: center; color: #fff; }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }

/* Wordmark */
.wordmark { display: inline-grid; grid-template-columns: auto auto; grid-template-rows: auto auto; column-gap: 0.45rem; align-items: center; font-family: var(--font-display); line-height: 1; color: #fff; }
.wordmark__studio { grid-column: 1; grid-row: 1; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.32em; text-transform: uppercase; color: var(--text-2); align-self: end; }
.wordmark__num { grid-column: 2; grid-row: 1 / span 2; font-size: 2.1rem; font-weight: 900; letter-spacing: -0.04em; color: var(--red-2); }
.wordmark__sub { grid-column: 1; grid-row: 2; font-size: 0.55rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); align-self: start; }
.wordmark--footer .wordmark__num { font-size: 2.8rem; }
.wordmark--footer .wordmark__studio { font-size: 0.85rem; }
.wordmark--footer .wordmark__sub { font-size: 0.62rem; }
.logo-img { height: 42px; width: auto; max-width: none; flex: none; }
.logo-img--footer { height: 64px; }

/* Hero -------------------------------------------------------------------- */
/* HERO — one full screen, nothing but type inside a thin corner frame. */
.hero { position: relative; isolation: isolate; min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h)); display: flex; align-items: center; padding: clamp(4rem, 8vh, 6rem) 0 clamp(6rem, 12vh, 8rem); background: var(--bg); overflow: hidden; --frame: clamp(1rem, 3vw, 2.5rem); }
.hero__frame { position: absolute; inset: var(--frame); pointer-events: none; }
.hero__bracket { position: absolute; width: clamp(28px, 4vw, 56px); height: clamp(28px, 4vw, 56px); border: 1px solid rgba(224, 19, 43, 0.45); }
.hero__bracket--tl { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.hero__bracket--tr { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.hero__bracket--bl { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.hero__bracket--br { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.hero__inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero__title { margin: 2rem 0 0; font-size: clamp(3rem, 11vw, 9.5rem); font-weight: 800; text-transform: uppercase; letter-spacing: -0.025em; line-height: 0.94; color: #fff; }
.hero__sub { margin: 0.9rem 0 0; font-family: var(--font-display); font-size: clamp(0.7rem, 1.1vw, 0.88rem); font-weight: 700; letter-spacing: 0.42em; text-transform: uppercase; color: var(--muted); }
.hero__lead { margin: 1.6rem auto 0; max-width: 34ch; font-size: clamp(1rem, 1.5vw, 1.3rem); line-height: 1.6; color: var(--text-2); text-wrap: balance; }
.hero .btn-row { margin-top: 2.5rem; }
.btn--hero { padding: 0.95rem 1.9rem; font-size: 0.84rem; letter-spacing: 0.12em; background: var(--red); color: #fff; }
.btn--hero:hover { background: var(--red-2); }
.btn--hero-ghost { background: transparent; border-color: var(--border-strong); color: #fff; }
.btn--hero-ghost:hover { background: rgba(255, 255, 255, 0.07); border-color: #fff; }

/* Live status pill above the name. */
.hero-status { display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.5rem 1.05rem; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); font-family: var(--font-display); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; color: #fff; transition: border-color 0.2s, background 0.2s; }
.hero-status:hover { border-color: rgba(255, 255, 255, 0.4); background: var(--surface-2); }
.hero-status__sep { opacity: 0.3; }
.hero-status__hours { font-weight: 500; letter-spacing: 0.07em; color: var(--text-2); font-variant-numeric: tabular-nums; }
.hero-status__dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.hero-status--open .hero-status__dot { background: var(--green); animation: pulse 2s infinite; }
.hero-status--closing_soon .hero-status__dot { background: var(--amber); animation: pulse 1.4s infinite; }
.hero-status--closed .hero-status__dot { background: var(--red-2); }

/* Opening card ------------------------------------------------------------- */
.opening-card { position: relative; padding: 1.5rem; border-radius: var(--radius); background: rgba(19, 19, 23, 0.85); border: 1px solid var(--border-strong); backdrop-filter: blur(12px); box-shadow: var(--shadow); overflow: hidden; }
.opening-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--muted); transition: background 0.3s; }
.opening-card--open::before, .opening-card--closing_soon::before { background: var(--green); }
.opening-card--closing_soon::before { background: var(--amber); }
.opening-card--closed::before { background: var(--red); }
.opening-card__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.6rem; }
.opening-card__label { font-family: var(--font-display); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }
.opening-card__dot { width: 12px; height: 12px; border-radius: 50%; background: var(--muted); box-shadow: 0 0 0 0 transparent; }
.opening-card--open .opening-card__dot { background: var(--green); animation: pulse 2s infinite; }
.opening-card--closing_soon .opening-card__dot { background: var(--amber); animation: pulse 1.4s infinite; }
.opening-card--closed .opening-card__dot { background: var(--red); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); } 70% { box-shadow: 0 0 0 12px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
.opening-card__headline { margin: 0; font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 900; text-transform: uppercase; letter-spacing: -0.02em; line-height: 1; }
.opening-card--open .opening-card__headline { color: #fff; }
.opening-card--closing_soon .opening-card__headline { color: #fbbf24; }
.opening-card--closed .opening-card__headline { color: #ff6b7b; }
.opening-card__subline { margin: 0.45rem 0 0; font-family: var(--font-display); font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text); }
.opening-card__hours { margin: 1rem 0 0; color: var(--muted); font-size: 0.9rem; }
.opening-card__hours strong { color: var(--text-2); }
.opening-card__link { display: inline-flex; align-items: center; gap: 0.35rem; margin-top: 0.75rem; font-size: 0.85rem; font-weight: 600; color: var(--red-2); }
.opening-card--compact { padding: 1rem 1.25rem; margin-bottom: 1rem; }
.opening-card--compact .opening-card__headline { font-size: 1.4rem; }
.opening-card--compact .opening-card__subline { font-size: 0.95rem; }
.opening-card.is-updating { opacity: 0.85; }

/* Split / media ------------------------------------------------------------ */
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.split--reverse .split__text { order: 2; }
.split--reverse .split__media { order: 1; }
.media-frame { margin: 0; border-radius: var(--radius-lg); overflow: hidden; position: relative; box-shadow: var(--shadow); }
.media-frame img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; transition: transform 0.9s var(--ease); }
.media-frame:hover img { transform: scale(1.04); }
.media-frame--tilt::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--border-strong); pointer-events: none; }
.media-frame--tilt::before { content: ""; position: absolute; right: -20%; top: -20%; width: 60%; height: 60%; background: radial-gradient(circle, var(--red-glow), transparent 65%); filter: blur(40px); z-index: 1; pointer-events: none; opacity: 0.6; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: clamp(3rem, 6vw, 5rem) 0 0; border-top: 1px solid var(--border); }
.stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 0.7rem; padding: 1.6rem 1.5rem 0 0; }
.stat + .stat { padding-left: 1.5rem; border-left: 1px solid var(--border); }
.stat__value { margin: 0; font-family: var(--font-display); font-size: clamp(2.6rem, 9vw, 8rem); font-weight: 900; letter-spacing: -0.045em; line-height: 0.9; color: #fff; font-variant-numeric: tabular-nums; }
.stat__label { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.check-list { display: grid; gap: 0.7rem; margin: 1.5rem 0; }
.check-list li { display: flex; gap: 0.6rem; align-items: flex-start; color: var(--text-2); }
.check-list .icon { color: var(--red-2); flex: none; margin-top: 0.2rem; }

/* Features grid ------------------------------------------------------------- */
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.feature { position: relative; display: block; min-height: clamp(440px, 60vh, 620px); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--border); isolation: isolate; }
.feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; transition: transform 1s var(--ease), filter 0.5s; filter: saturate(0.8); }
.feature:hover img { transform: scale(1.06); filter: saturate(1.05); }
.feature__index { position: absolute; top: 1.5rem; left: 1.7rem; font-family: var(--font-display); font-size: 0.85rem; font-weight: 800; letter-spacing: 0.22em; color: rgba(255, 255, 255, 0.9); text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6); }
.feature__go { position: absolute; top: 1.2rem; right: 1.2rem; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.4); background: rgba(0, 0, 0, 0.35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: #fff; rotate: -45deg; transition: rotate 0.55s var(--ease), background 0.3s, border-color 0.3s; }
.feature:hover .feature__go { rotate: 0deg; background: var(--red); border-color: var(--red); }
.feature__body { position: absolute; inset: auto 0 0 0; padding: clamp(1.5rem, 3vw, 2.5rem); background: linear-gradient(0deg, rgba(7, 7, 8, 0.96) 0%, rgba(7, 7, 8, 0.7) 55%, transparent 100%); }
.feature__body p { margin: 0.8rem 0 0; color: var(--text-2); max-width: 38ch; }
.feature__title { font-size: clamp(2.8rem, 5.4vw, 4.8rem); font-weight: 900; line-height: 0.92; letter-spacing: -0.03em; text-transform: uppercase; margin: 0.8rem 0 0; }
.feature__meta { display: inline-block; margin-top: 1.1rem; padding: 0.4rem 0.9rem; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 999px; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #fff; }
/* "On today" as a ticket: a red stub, a torn edge, then the day's classes. */
.today-strip { display: flex; align-items: stretch; margin-top: 1.25rem; padding: 0; overflow: hidden; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border-strong); }
.today-strip__title { position: relative; flex: none; display: inline-flex; align-items: center; gap: 0.55rem; margin: 0; padding: 1.2rem 2rem 1.2rem 1.6rem; background: var(--red); color: #fff; font-size: 0.9rem; letter-spacing: 0.16em; text-transform: uppercase; white-space: nowrap; }
.today-strip__title::after { content: ""; position: absolute; top: 0.6rem; bottom: 0.6rem; right: 0; border-right: 2px dashed rgba(0, 0, 0, 0.4); }
.today-strip__list { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 2.25rem; margin: 0; padding: 1rem 1.75rem; }
.today-strip__list li { display: flex; gap: 0.7rem; align-items: baseline; font-size: 0.95rem; }
.today-strip__time { font-family: var(--font-display); font-size: 1.15rem; font-weight: 900; color: #fff; font-variant-numeric: tabular-nums; }
.today-strip__name { font-weight: 600; }
.today-strip__place { color: var(--muted); }

/* Cards --------------------------------------------------------------------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.class-card { display: flex; flex-direction: column; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); overflow: hidden; transition: transform 0.4s var(--ease), border-color 0.3s, box-shadow 0.4s; }
.class-card:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.class-card__media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; }
.class-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.class-card:hover .class-card__media img { transform: scale(1.05); }
.class-card__media .chip { position: absolute; top: 0.9rem; left: 0.9rem; }
.class-card__body { padding: 1.25rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.class-card__meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; font-size: 0.8rem; color: var(--muted); align-items: center; }
.class-card__day { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red-2); }
.class-card__time { display: inline-flex; align-items: center; gap: 0.3rem; }
.class-card__title { font-size: 1.3rem; font-weight: 800; }
.class-card__desc { color: var(--text-2); font-size: 0.93rem; margin: 0; }
.class-card__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem 1rem; margin: 0.75rem 0 0; padding-top: 0.9rem; border-top: 1px solid var(--border); font-size: 0.85rem; }
.class-card__facts dt { color: var(--muted); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; }
.class-card__facts dd { margin: 0; color: var(--text); font-weight: 600; }
.class-card__sessions { list-style: none; margin: 0.4rem 0 0; padding: 0; display: grid; gap: 0.35rem; font-size: 0.86rem; }
.class-card__sessions li { display: flex; align-items: baseline; gap: 0.75rem; color: var(--text-2); }
.class-card__sessions .class-card__day { min-width: 2.4rem; font-size: 0.74rem; text-decoration: none; cursor: default; }
.class-card__session-price { margin-left: auto; color: var(--muted); }

/* Timetable ----------------------------------------------------------------- */
.day-tabs { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.day-tab { position: relative; /* contains the absolutely-positioned .sr-only "(today)" label, so it can't escape the scrolling row */ display: inline-flex; align-items: center; gap: 0.5rem; white-space: nowrap; padding: 0.6rem 1rem; border-radius: 999px; border: 1px solid var(--border-strong); background: transparent; color: var(--text-2); font-family: var(--font-display); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.day-tab:hover { color: #fff; border-color: #fff; }
.day-tab.is-active { background: var(--red); border-color: var(--red); color: #fff; }
.day-tab__short { display: none; }
.day-tab__count { min-width: 1.4em; padding: 0.1em 0.45em; border-radius: 999px; background: rgba(255, 255, 255, 0.08); font-size: 0.72rem; line-height: 1.4; text-align: center; letter-spacing: 0; }
.day-tab.is-active .day-tab__count { background: rgba(0, 0, 0, 0.28); }
.day-tab.is-today:not(.is-active) { border-color: rgba(224, 19, 43, 0.6); color: #fff; }
.day-tab.is-today:not(.is-active)::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--red-2); }
.timetable__day { margin-bottom: 2.25rem; }
.timetable__day.is-hidden { display: none; }
.tt-controls { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.tt-filters { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.filter-chip { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.5rem 0.95rem; border-radius: 10px; border: 1px solid var(--border-strong); background: transparent; color: var(--text-2); font-family: var(--font-display); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.filter-chip:hover { color: #fff; border-color: #fff; }
.filter-chip.is-active { background: #fff; border-color: #fff; color: #0a0a0c; }
.tt-summary { margin: 0; font-size: 0.88rem; color: var(--muted); }
/* The day bar stays under the header while you read down a long list. */
.tt-days { position: sticky; top: var(--sticky-top); z-index: 60; margin: 0 calc(50% - 50vw) 2rem; padding: 0.7rem calc(50vw - 50%); background: rgba(7, 7, 8, 0.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); transition: top 0.4s var(--ease); }
.timetable__day-title { display: flex; align-items: baseline; gap: 0.75rem; font-size: 1.35rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.9rem; padding-bottom: 0.6rem; border-bottom: 1px solid var(--border); }
.timetable__day-title .text-muted { font-family: var(--font-body); font-size: 0.85rem; font-weight: 500; text-transform: none; letter-spacing: 0; }
.timetable__list { display: grid; gap: 0.6rem; }
.timetable__empty { color: var(--muted); font-style: italic; }
.slot { border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); transition: border-color 0.25s, background 0.25s, opacity 0.3s; }
.slot:hover { border-color: var(--border-strong); background: var(--surface-2); }
.slot[open] { border-color: rgba(224, 19, 43, 0.45); background: var(--surface-2); }
.slot__row { display: grid; grid-template-columns: 120px 1fr auto 1.5rem; gap: 1.25rem; align-items: center; padding: 1rem 1.25rem; cursor: pointer; list-style: none; border-radius: inherit; }
.slot__row::-webkit-details-marker { display: none; }
.slot__chevron { color: var(--muted); transition: transform 0.3s var(--ease), color 0.2s; }
.slot[open] .slot__chevron { transform: rotate(90deg); color: var(--red-2); }
.slot__panel { display: grid; gap: 0.9rem; margin: 0 1.25rem; padding: 1rem 0 1.25rem; border-top: 1px solid var(--border); }
.slot__desc { margin: 0; color: var(--text-2); font-size: 0.95rem; max-width: 70ch; }
.slot__facts { display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; margin: 0; }
.slot__facts dt { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.slot__facts dd { margin: 0.1rem 0 0; font-weight: 600; font-size: 0.93rem; }
.slot__note { margin: 0; font-size: 0.82rem; }
.slot__note a { color: var(--red-2); text-decoration: underline; text-underline-offset: 3px; }
/* Live state of today's classes, filled in by ui.js. */
.slot__state { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.15rem 0.55rem; border-radius: 999px; font-family: var(--font-display); font-size: 0.64rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.slot__state[hidden] { display: none; }
.slot__state--live { background: rgba(34, 197, 94, 0.15); color: #4ade80; border: 1px solid rgba(34, 197, 94, 0.4); }
.slot__state--live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: pulse 2s infinite; }
.slot__state--next { background: var(--red-soft); color: #ff8a97; border: 1px solid rgba(224, 19, 43, 0.45); }
.slot__state--done { color: var(--muted); border: 1px solid var(--border); }
.slot-item.is-done .slot { opacity: 0.5; }
.slot-item.is-done .slot:hover, .slot-item.is-done .slot[open] { opacity: 1; }
.slot-item.is-live .slot { border-color: rgba(34, 197, 94, 0.45); }
.slot-item.is-next .slot { border-color: rgba(224, 19, 43, 0.5); }
.slot-item[hidden], .timetable__day[hidden] { display: none; }
.timetable__none { color: var(--muted); font-style: italic; }
.timetable__none[hidden] { display: none; }
.slot__time { display: flex; flex-direction: column; font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; line-height: 1.1; color: #fff; }
.slot__end { font-size: 0.8rem; font-weight: 600; color: var(--muted); }
.slot__main { display: grid; gap: 0.15rem; min-width: 0; }
.slot__name { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; color: var(--text); }
.slot__meta { margin: 0; color: var(--muted); font-size: 0.88rem; }
.slot__side { display: flex; flex-direction: column; align-items: flex-end; gap: 0.4rem; }
.slot__price { font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; color: var(--red-2); }

/* Hours table --------------------------------------------------------------- */
.hours-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.hours-table th, .hours-table td { padding: 0.7rem 0.25rem; border-bottom: 1px solid var(--border); text-align: left; }
.hours-table th { font-weight: 600; color: var(--text-2); width: 45%; }
.hours-table td { color: var(--text); font-weight: 500; font-variant-numeric: tabular-nums; }
.hours-table tr.is-today th, .hours-table tr.is-today td { color: #fff; background: linear-gradient(90deg, var(--red-soft), transparent); }
.hours-table__special { color: var(--amber); font-size: 0.85rem; }
.hours-specials { margin: 1.25rem 0 1.5rem; padding: 1rem 1.25rem; border-radius: var(--radius-sm); background: rgba(245, 158, 11, 0.08); border: 1px solid rgba(245, 158, 11, 0.3); font-size: 0.9rem; }
.hours-specials__title { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: #fbbf24; margin-bottom: 0.5rem; }
.hours-specials li { margin-bottom: 0.3rem; }

/* Video -------------------------------------------------------------------- */
.video { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.video__poster { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.video:hover .video__poster { transform: scale(1.03); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video noscript { position: absolute; bottom: 1rem; left: 1rem; }

/* Plans ------------------------------------------------------------------- */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.25rem; margin: 0 auto; align-items: stretch; }
.plan-card { position: relative; display: flex; flex-direction: column; padding: 2.1rem 1.75rem 1.6rem; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); transition: transform 0.4s var(--ease), border-color 0.3s, box-shadow 0.4s; }
.plan-card:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.plan-card--featured { border-color: rgba(224, 19, 43, 0.6); background: linear-gradient(180deg, rgba(224, 19, 43, 0.14), var(--surface) 46%); box-shadow: 0 0 0 1px rgba(224, 19, 43, 0.3), 0 30px 60px -30px var(--red-glow); }
.plan-card__badge { position: absolute; top: -0.85rem; left: 1.75rem; padding: 0.35rem 0.8rem; border-radius: 999px; background: var(--red); color: #fff; font-family: var(--font-display); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.plan-card__name { font-size: 0.82rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-2); }
.plan-card__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.15rem 0.45rem; margin: 1.1rem 0 0.5rem; }
.plan-card__amount { font-family: var(--font-display); font-size: clamp(2.8rem, 4.2vw, 3.7rem); font-weight: 900; letter-spacing: -0.045em; line-height: 1; color: #fff; }
.plan-card__period { color: var(--muted); font-weight: 600; }
.plan-card__equiv { display: flex; align-items: center; flex-wrap: wrap; gap: 0.4rem 0.6rem; margin: 0 0 0.35rem; font-size: 0.9rem; color: var(--text-2); }
.plan-card__equiv strong { color: #fff; }
.plan-card__save { display: inline-block; padding: 0.15rem 0.55rem; border-radius: 999px; background: rgba(34, 197, 94, 0.14); border: 1px solid rgba(34, 197, 94, 0.35); color: #4ade80; font-size: 0.74rem; font-weight: 700; }
.plan-card__billing { display: flex; align-items: center; gap: 0.7rem; margin: 1rem 0 1.5rem; font-size: 0.88rem; line-height: 1.35; color: var(--text-2); }
.plan-card__billing strong { display: block; font-weight: 700; color: #fff; }
.plan-card__billing small { display: block; font-size: 0.8rem; color: var(--muted); }
.plan-card__billing .icon { flex: none; color: var(--muted); }
.plan-card__billing--sub .icon { color: var(--red-2); }
.plan-card__more { display: grid; gap: 0.9rem; margin: 0 0 1.6rem; padding-top: 1.25rem; border-top: 1px solid var(--border); font-size: 0.9rem; color: var(--text-2); }
.plan-card__more p { margin: 0; }
.plan-card__desc { line-height: 1.55; }
.plan-card__features { display: grid; gap: 0.5rem; margin: 0; }
.plan-card__features li { display: flex; gap: 0.5rem; align-items: flex-start; font-size: 0.88rem; color: var(--text-2); }
.plan-card__features .icon { color: var(--red-2); flex: none; margin-top: 0.22rem; }
.plan-card__note { font-size: 0.8rem; color: var(--muted); }
.plan-card__foot { margin-top: auto; }
.plan-card__policy { margin: 0.8rem 0 0; text-align: center; font-family: var(--font-display); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.plan-card--compact { padding: 1.9rem 1.6rem 1.5rem; }
.plan-card--compact .plan-card__billing { margin-bottom: 1.6rem; }
/* The home page version: roomier, with a line on what the plan is. */
.members .plan-card { padding: 2.5rem 2rem 2rem; }
.members .plan-card__amount { font-size: clamp(3.2rem, 4.6vw, 4.4rem); }
.members .plan-card__name { font-size: 0.88rem; }
.members .plan-card__desc { margin: 0 0 1.75rem; font-size: 0.95rem; line-height: 1.55; color: var(--text-2); }
.members .plan-card__billing { margin-bottom: 1.25rem; }

/* The plans side by side */
.compare { margin-top: clamp(3rem, 6vw, 5rem); }
.compare__title { margin: 0 0 1.1rem; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.compare__scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.compare__scroll:focus-visible { outline-offset: 0; }
.compare__table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 0.95rem; }
.compare__table th, .compare__table td { padding: 1rem 1.25rem; text-align: left; border-bottom: 1px solid var(--border); }
.compare__table tbody tr:last-child th, .compare__table tbody tr:last-child td { border-bottom: 0; }
.compare__table thead th { font-family: var(--font-display); font-size: 0.82rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #fff; background: var(--surface-2); }
.compare__table tbody th { width: 15%; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.compare__table td { color: var(--text-2); }
.compare__table td strong { font-family: var(--font-display); font-size: 1.25rem; font-weight: 900; color: #fff; letter-spacing: -0.02em; }
.compare__table td span { color: var(--muted); }
.compare__table .is-featured { background: rgba(224, 19, 43, 0.1); }
.compare__table thead .is-featured { background: var(--red); }
.compare__save { color: #4ade80 !important; font-weight: 700; }
.compare__none { color: var(--muted); }
.compare__note { margin: 0.9rem 0 0; font-size: 0.85rem; color: var(--muted); }

/* What every membership includes: said once, under the cards */
.perks { margin-top: clamp(3rem, 6vw, 5rem); }
.perks__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.perks__head .perks__title { margin: 0; }
.perks__title { margin: 0 0 1.1rem; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.perks__list { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1px; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--border); }
.perk { display: grid; align-content: start; gap: 0.2rem; padding: 1.4rem 1.2rem 1.5rem; background: var(--surface); transition: background 0.3s; }
.perk:hover { background: var(--surface-2); }
.perk__icon { display: block; margin-bottom: 0.7rem; color: var(--red-2); }
.perk strong { font-family: var(--font-display); font-size: 0.98rem; line-height: 1.2; }
.perk span:last-child { font-size: 0.82rem; line-height: 1.4; color: var(--muted); }
.perks__note { margin: 1.6rem 0 0; max-width: 70ch; font-size: 0.88rem; color: var(--muted); }
@media (max-width: 1100px) { .perks__list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .perks__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Placeholder for photography the business is still supplying (swap by setting the image src). */
.photo-slot { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem; text-align: center; padding: clamp(2rem, 5vw, 3.5rem); aspect-ratio: 4 / 3.4; border-radius: var(--radius-lg); border: 1px dashed var(--border-strong); background: linear-gradient(160deg, rgba(224, 19, 43, 0.1), var(--surface) 55%); }
.photo-slot__icon { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; background: var(--red-soft); color: var(--red-2); margin-bottom: 0.5rem; }
.photo-slot__title { margin: 0; font-family: var(--font-display); font-size: 1.15rem; font-weight: 800; letter-spacing: 0.02em; text-transform: uppercase; }
.photo-slot__text { margin: 0; color: var(--muted); font-size: 0.92rem; max-width: 34ch; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--border); }
.step { padding: 2rem 2rem 0.5rem 0; }
.step + .step { padding-left: 2rem; border-left: 1px solid var(--border); }
.step__num { display: block; margin-bottom: 1.2rem; font-family: var(--font-display); font-size: clamp(3.4rem, 7vw, 6rem); font-weight: 900; line-height: 1; letter-spacing: -0.03em; color: var(--bg-2); -webkit-text-stroke: calc(1.2px + 0.1vw) rgba(255, 255, 255, 0.4); paint-order: stroke fill; transition: color 0.5s, -webkit-text-stroke-color 0.5s; }
.step:hover .step__num { color: var(--red); -webkit-text-stroke-color: var(--red); }
.step h3 { font-size: 1.2rem; margin-bottom: 0.45rem; }
.step p { margin: 0; max-width: 30ch; color: var(--text-2); font-size: 0.95rem; }
.faq-layout { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.faq-layout__head { position: sticky; top: calc(var(--sticky-top) + 2rem); }
@media (max-width: 860px) { .faq-layout { grid-template-columns: minmax(0, 1fr); } .faq-layout__head { position: static; } }
.faq__item { border-bottom: 1px solid var(--border); }
.faq__item summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 0; cursor: pointer; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .icon { transition: transform 0.3s var(--ease); color: var(--red-2); flex: none; }
.faq__item[open] summary .icon { transform: rotate(90deg); }
.faq__item p { color: var(--text-2); padding-bottom: 1.1rem; }
/* Open/close animates in browsers that support it; elsewhere it simply snaps as before. */
.faq__item { interpolate-size: allow-keywords; }
.faq__item::details-content { block-size: 0; overflow: clip; transition: block-size 0.35s var(--ease), content-visibility 0.35s allow-discrete; }
.faq__item[open]::details-content { block-size: auto; }
.faq__item summary { transition: color 0.2s; }
.faq__item summary:hover { color: var(--red-2); }

/* Staff ------------------------------------------------------------------- */
.staff-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; align-items: start; }
.staff-card { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); transition: transform 0.5s var(--ease), border-color 0.3s; }
.staff-card:hover { transform: translateY(-8px); border-color: var(--border-strong); }
.staff-card__media { aspect-ratio: 4 / 4.6; overflow: hidden; }
.staff-card__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.55) contrast(1.05); transition: transform 1s var(--ease), filter 0.6s; }
.staff-card:hover .staff-card__media img { transform: scale(1.06); filter: none; }
.staff-card__num { position: absolute; top: 1.1rem; left: 1.3rem; font-family: var(--font-display); font-size: 0.8rem; font-weight: 800; letter-spacing: 0.22em; color: rgba(255, 255, 255, 0.9); text-shadow: 0 1px 10px rgba(0, 0, 0, 0.7); }
.staff-card__body { padding: 1.5rem 1.6rem 1.75rem; }
.staff-card__name { font-size: clamp(1.9rem, 2.7vw, 2.6rem); font-weight: 900; line-height: 0.95; letter-spacing: -0.025em; text-transform: uppercase; }
.staff-card__role { margin: 0.9rem 0 0; color: var(--red-2); font-size: 0.74rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.staff-card__spec { margin: 0.5rem 0 0; color: var(--text-2); font-size: 0.9rem; }
@media (min-width: 1000px) { .team .staff-card:nth-child(even) { margin-top: 2.75rem; } }
@media (max-width: 600px) {
  .staff-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
  .staff-card { border-radius: var(--radius); }
  .staff-card__body { padding: 1rem 0.95rem 1.2rem; }
  .staff-card__name { font-size: 1.45rem; }
  .staff-card__role { margin-top: 0.6rem; font-size: 0.62rem; letter-spacing: 0.1em; }
  .staff-card__spec { display: none; }
  .staff-card__num { top: 0.8rem; left: 0.9rem; }
}
.staff-list { display: grid; gap: clamp(3rem, 6vw, 5rem); }
.staff-profile { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2rem, 6vw, 6.5rem); align-items: center; }
/* order:2 moves the photo into the second column, so the track sizes must swap too —
   otherwise every alternate portrait renders in the wide 1.2fr text column. */
.staff-profile--reverse { grid-template-columns: 1.2fr 0.8fr; }
.staff-profile--reverse .staff-profile__media { order: 2; }
.staff-profile__media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 4.5; box-shadow: var(--shadow); }
.staff-profile__media img { width: 100%; height: 100%; object-fit: cover; }
/* Empty-photo placeholder. Initials come from data-initials via ::before so they stay
   decorative (not read out, not held to text-contrast rules); the label carries meaning. */
.staff-placeholder { position: relative; width: 100%; height: 100%; display: grid; place-items: center; background: radial-gradient(70% 55% at 50% 40%, rgba(224, 19, 43, 0.14), transparent 72%), repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.022) 0 2px, transparent 2px 14px), var(--surface-2); }
.staff-placeholder::before { content: attr(data-initials); font-family: var(--font-display); font-weight: 800; font-size: clamp(3.5rem, 9vw, 6rem); line-height: 1; letter-spacing: -0.03em; color: rgba(255, 255, 255, 0.12); }
.staff-placeholder__note { position: absolute; left: 0; right: 0; bottom: 1.1rem; text-align: center; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.staff-profile__spec { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--amber); font-weight: 600; margin: 0.75rem 0; }
.staff-profile__bio { color: var(--text-2); font-size: 1.02rem; }
.staff-profile__classes { color: var(--text-2); font-size: 0.92rem; }
.social-list { display: flex; gap: 0.5rem; }
.social-link { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border-strong); color: var(--text-2); transition: color 0.2s, border-color 0.2s, background 0.2s; }
.social-link:hover { color: #fff; border-color: var(--red); background: var(--red-soft); }
.social-link.is-placeholder { opacity: 0.4; cursor: default; }

/* Timeline ----------------------------------------------------------------- */
/* One row per milestone: a big outlined year, the story, a small photo. A red rail runs down the left. */
.timeline { --tl-pad: clamp(1.6rem, 3vw, 2.4rem); position: relative; margin: 0; padding: 0 0 0 var(--tl-pad); }
.timeline::before { content: ""; position: absolute; left: 7px; top: 0; bottom: 0; width: 2px; border-radius: 2px; background: linear-gradient(180deg, transparent, var(--red) 6%, var(--red) 94%, transparent); }
.timeline__item { position: relative; display: grid; grid-template-columns: minmax(7rem, 0.55fr) minmax(0, 1.5fr) minmax(0, 0.8fr); align-items: center; gap: clamp(1rem, 3vw, 3rem); padding-block: clamp(1.4rem, 3vw, 2.2rem); border-bottom: 1px solid var(--border); }
.timeline__item:last-child { border-bottom: 0; }
.timeline__marker { position: absolute; top: 50%; left: calc(-1px - var(--tl-pad)); width: 18px; height: 18px; margin-top: -9px; border-radius: 50%; background: var(--bg); border: 4px solid var(--red); box-shadow: 0 0 0 6px var(--red-soft); }
.timeline__year { margin: 0; font-family: var(--font-display); font-size: clamp(2.6rem, 5.5vw, 4.8rem); font-weight: 900; line-height: 1; letter-spacing: -0.03em; color: var(--bg); -webkit-text-stroke: calc(1.2px + 0.1vw) rgba(255, 255, 255, 0.5); paint-order: stroke fill; transition: color 0.6s, -webkit-text-stroke-color 0.6s; }
.timeline__title { margin-bottom: 0.4rem; font-size: clamp(1.15rem, 2vw, 1.5rem); font-weight: 800; }
.timeline__body p:last-child { margin: 0; max-width: 46ch; color: var(--text-2); font-size: 0.95rem; }
.timeline__img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); filter: grayscale(0.65) brightness(0.9); transition: filter 0.6s; }
.timeline__item:hover .timeline__img { filter: none; }

/* Values / tiles ------------------------------------------------------------ */
.tile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.tile { border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--border); }
.tile img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; filter: saturate(0.85); transition: transform 0.8s var(--ease); }
.tile:hover img { transform: scale(1.05); }
.tile__body { padding: 1.25rem 1.4rem 1.5rem; }
.tile__body h3 { font-size: 1.25rem; margin-bottom: 0.4rem; }
.tile__body p { margin: 0; color: var(--text-2); font-size: 0.93rem; }

/* CTA band ------------------------------------------------------------------ */
/* The closing call to action is the one full-red block on a page. Text on it is white or near-black, never red. */
.cta-band { background: var(--red); color: #fff; border: 0; padding-block: clamp(4.5rem, 10vw, 8.5rem); }
.cta-band__inner { display: grid; justify-items: start; }
.cta-band .eyebrow { color: #fff; }
.cta-band .eyebrow::before { background: #fff; }
.cta-band .display { max-width: 12ch; font-size: clamp(3rem, 9.5vw, 8.6rem); line-height: 0.92; color: #fff; }
.cta-band .display .text-red { color: #0a0a0c; }
.cta-band .btn-row { margin-top: clamp(1.75rem, 3vw, 2.6rem); }
.cta-band .btn--primary { background: #0a0a0c; color: #fff; box-shadow: none; }
.cta-band .btn--primary:hover { background: #000; box-shadow: 0 16px 34px -14px rgba(0, 0, 0, 0.6); }
.cta-band .btn--outline { border-color: rgba(255, 255, 255, 0.8); background: transparent; color: #fff; }
.cta-band .btn--outline:hover { border-color: #fff; background: #fff; color: var(--red); }

/* Page hero ------------------------------------------------------------------ */
/* The photo runs behind the title, dimmed from the left so the type stays readable. */
.page-hero { position: relative; padding: clamp(6rem, 14vh, 9rem) 0 clamp(3rem, 6vh, 5rem); overflow: hidden; isolation: isolate; min-height: 420px; display: flex; align-items: flex-end; }
.page-hero--tall { min-height: 560px; }
.page-hero__media { position: absolute; inset: 0; z-index: -1; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.75); }
.page-hero__overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 7, 8, 0.94), rgba(7, 7, 8, 0.62) 58%, rgba(7, 7, 8, 0.3)), linear-gradient(0deg, var(--bg) 0%, rgba(7, 7, 8, 0.15) 45%); }
.page-hero__inner .lead { margin-bottom: 1.5rem; }
.page-hero .display { font-size: clamp(2.8rem, 7.4vw, 6.4rem); }
}

/* Contact ------------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-list { display: grid; gap: 1.25rem; margin: 1.5rem 0 2.5rem; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact-list__icon { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 12px; background: var(--red-soft); color: var(--red-2); }
.contact-list__label { display: block; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.15rem; }
.contact-list a, .contact-list address { font-size: 1.1rem; font-weight: 600; font-style: normal; color: #fff; }
.contact-hours h3 { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; }

/* Auth / forms ---------------------------------------------------------------- */
.auth-page { padding: clamp(7rem, 14vh, 9rem) 0 var(--section); min-height: 80vh; display: flex; align-items: center; }
.auth-page__inner { width: min(460px, 100%); margin: 0 auto; }
.auth-page__inner--wide { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; max-width: 1040px; }
.auth-card { padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border-strong); box-shadow: var(--shadow); }
.auth-card .h2, .auth-card .h3 { margin-bottom: 0.4rem; }
.auth-card__alt { margin: 1.25rem 0 0; text-align: center; font-size: 0.93rem; }
.auth-card__help { margin-top: 1.25rem; font-size: 0.9rem; color: var(--text-2); }
.auth-card__help summary { cursor: pointer; color: var(--red-2); font-weight: 600; }
.auth-side .display-sm { margin-bottom: 1.25rem; }
.form { display: grid; gap: 1.1rem; margin-top: 1.25rem; }
.form--grid { grid-template-columns: 1fr 1fr; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: grid; gap: 0.4rem; }
.field--span2 { grid-column: 1 / -1; }
.field__label { font-size: 0.85rem; font-weight: 600; color: var(--text-2); letter-spacing: 0.02em; }
.field__req { color: var(--red-2); }
.input { width: 100%; padding: 0.85rem 1rem; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: var(--bg-2); color: var(--text); font: inherit; transition: border-color 0.2s, box-shadow 0.2s; }
.input:focus { outline: none; border-color: var(--red-2); box-shadow: 0 0 0 4px var(--red-soft); }
.input::placeholder { color: var(--muted); }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238f8f9b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
select.input option { background: var(--surface-2); }
textarea.input { resize: vertical; min-height: 110px; }
.input--time { width: auto; padding: 0.55rem 0.7rem; }
input[type="date"].input, input[type="time"].input { color-scheme: dark; }
.has-error .input { border-color: var(--red-2); }
.field__error { margin: 0; color: #ff6b7b; font-size: 0.85rem; font-weight: 500; }
.field__hint { margin: 0; color: var(--muted); font-size: 0.83rem; }
.checkbox { display: flex; gap: 0.7rem; align-items: flex-start; cursor: pointer; font-size: 0.93rem; color: var(--text-2); }
.checkbox input { flex: none; width: 20px; height: 20px; margin-top: 0.1rem; accent-color: var(--red); }
.field--code .input { font-family: var(--font-display); font-size: 1.6rem; letter-spacing: 0.3em; text-align: center; font-weight: 700; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0.6rem; }
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.field legend { padding: 0; margin-bottom: 0.4rem; }

/* Member area ----------------------------------------------------------------- */
.member-page { padding: clamp(6.5rem, 12vh, 8rem) 0 var(--section); }
.member-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.member-tabs { display: flex; gap: 0.3rem; padding: 0.3rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); }
.member-tab { padding: 0.55rem 1.1rem; border-radius: 999px; font-family: var(--font-display); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); transition: background 0.2s, color 0.2s; }
.member-tab:hover { color: #fff; }
.member-tab.is-active { background: var(--red); color: #fff; }
.member-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; align-items: start; }
.member-grid--dash { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.member-col { display: grid; gap: 1.5rem; align-content: start; }
/* One column on a phone, in the order people need it: ID, membership, today, links. */
@media (max-width: 800px) {
  .member-grid--dash { grid-template-columns: minmax(0, 1fr); }
  .member-col { display: contents; }
  .member-grid--dash .id-card { order: 1; }
  .member-grid--dash .card--status { order: 2; }
  .member-grid--dash .card--today { order: 3; }
  .member-grid--dash .card--quick { order: 4; }
}
.member-grid--two { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.card { padding: 1.75rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.card__title { font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.card--status .badge { margin-bottom: 1rem; }
.card .btn { margin-top: 0.5rem; }
.id-card { position: relative; padding: 1.75rem; border-radius: var(--radius); background: linear-gradient(135deg, #1b1b22, #0d0d10); border: 1px solid rgba(224, 19, 43, 0.5); box-shadow: 0 0 0 1px rgba(224, 19, 43, 0.15), 0 30px 60px -30px var(--red-glow); overflow: hidden; }
.id-card::after { content: ""; position: absolute; right: -30%; top: -40%; width: 70%; height: 120%; background: radial-gradient(circle, var(--red-glow), transparent 60%); filter: blur(30px); opacity: 0.5; pointer-events: none; }
.id-card__label { display: flex; align-items: center; gap: 0.4rem; font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-2); margin-bottom: 0.75rem; }
.id-card { container-type: inline-size; display: flex; flex-direction: column; align-items: flex-start; }
.id-card__value { font-family: var(--font-display); font-size: clamp(1.7rem, 13cqw, 3.2rem); font-weight: 900; letter-spacing: 0.08em; color: #fff; margin: 0 0 0.75rem; line-height: 1; white-space: nowrap; }
.id-card__name { margin: auto 0 0; padding-top: 1rem; color: var(--text-2); font-weight: 600; }
.kv { display: grid; gap: 0.55rem; margin: 0 0 1rem; }
.kv div { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: 0.55rem; border-bottom: 1px solid var(--border); font-size: 0.95rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; text-align: right; }
.kv--compact { font-size: 0.9rem; }
.link-list { display: grid; gap: 0.5rem; }
.link-list a { display: flex; align-items: center; gap: 0.6rem; padding: 0.7rem 0.9rem; border-radius: var(--radius-sm); background: var(--bg-2); border: 1px solid var(--border); color: var(--text-2); transition: border-color 0.2s, color 0.2s; }
.link-list a:hover { color: #fff; border-color: var(--border-strong); }
.link-list .icon { color: var(--red-2); }
.history { display: grid; gap: 0.75rem; }
.history li { display: flex; gap: 0.9rem; align-items: flex-start; padding-bottom: 0.75rem; border-bottom: 1px solid var(--border); font-size: 0.93rem; }
.history .badge { flex: none; margin-top: 0.1rem; }
.plan-grid--select { max-width: none; }
.plan-option { position: relative; display: block; cursor: pointer; }
.plan-option input { position: absolute; opacity: 0; inset: 0; }
.plan-option__body { display: flex; flex-direction: column; gap: 0.4rem; height: 100%; padding: 1.5rem; border-radius: var(--radius); background: var(--surface); border: 2px solid var(--border); transition: border-color 0.2s, background 0.2s, transform 0.3s var(--ease); }
.plan-option:hover .plan-option__body { border-color: var(--border-strong); transform: translateY(-3px); }
.plan-option input:checked + .plan-option__body { border-color: var(--red); background: linear-gradient(180deg, rgba(224, 19, 43, 0.12), var(--surface) 50%); box-shadow: 0 0 0 4px var(--red-soft); }
.plan-option input:focus-visible + .plan-option__body { outline: 3px solid var(--red-2); outline-offset: 2px; }
.plan-option__name { font-family: var(--font-display); font-size: 1.2rem; font-weight: 800; }
.plan-option__price { font-family: var(--font-display); font-size: 2rem; font-weight: 900; color: #fff; line-height: 1; }
.plan-option__price small { font-size: 0.9rem; color: var(--muted); font-weight: 600; }
.plan-option__equiv { font-size: 0.85rem; color: var(--text-2); }
.plan-option__equiv strong { color: #4ade80; }
.choose-plans__footer { max-width: 640px; margin: 2rem auto 0; display: grid; gap: 1rem; justify-items: center; text-align: center; }
.choose-plans__footer .field { justify-items: center; }
.choose-plans__footer .precontract { text-align: left; width: 100%; }
.backup-codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem; margin: 1.5rem 0; }
.backup-codes li { padding: 0.75rem 1rem; border-radius: var(--radius-sm); background: var(--bg-2); border: 1px solid var(--border-strong); text-align: center; }
.backup-codes code { font-size: 1.15rem; letter-spacing: 0.15em; color: #fff; }
.secret-key { display: inline-block; padding: 0.5rem 0.75rem; border-radius: 8px; background: var(--bg-2); letter-spacing: 0.12em; color: #fff; }
.setup-2fa { display: grid; grid-template-columns: auto 1fr; gap: 2rem; align-items: start; margin-top: 1.5rem; }
.setup-2fa__qr img { border-radius: 12px; background: #fff; padding: 8px; }
.setup-steps { list-style: decimal; padding-left: 1.25rem; color: var(--text-2); display: grid; gap: 0.35rem; }
.empty { padding: 2rem 1rem; text-align: center; color: var(--muted); }

/* Error page ----------------------------------------------------------------- */
.error-page { min-height: 70vh; display: flex; align-items: center; padding: clamp(7rem, 15vh, 10rem) 0 var(--section); }
.error-page__inner { text-align: center; max-width: 640px; }
.error-page .lead { margin: 1.5rem auto; }
.error-page .btn-row { justify-content: center; }

/* Footer -------------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--border); background: #050506; }
.site-footer__notice { background: #12070a; border-block: 1px solid rgba(224, 19, 43, 0.5); }
.site-footer__notice .notice-strip .icon { color: var(--red-2); }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; padding: clamp(3rem, 6vw, 4.5rem) 0 2.5rem; }
.site-footer__tagline { margin: 1.25rem 0; color: var(--text-2); max-width: 32ch; }
.site-footer__heading { font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.site-footer__col ul { display: grid; gap: 0.5rem; }
.site-footer__col a { color: var(--text-2); font-size: 0.95rem; transition: color 0.2s; }
.site-footer__col a:hover { color: #fff; }
.site-footer__address { display: grid; gap: 0.6rem; font-style: normal; color: var(--text-2); font-size: 0.93rem; }
.site-footer__address span { display: flex; gap: 0.5rem; align-items: flex-start; }
.site-footer__address .icon { flex: none; margin-top: 0.2rem; color: var(--red-2); }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1.25rem 0 2rem; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.83rem; }
.site-footer__bottom p { margin: 0; }

/* Reveal animation ---------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* Responsive ----------------------------------------------------------------- */
/* Short laptop screens: tighten the hero so the ticker still reaches the fold. */
@media (min-width: 861px) and (max-height: 880px) {
  .hero__title { font-size: clamp(2.6rem, 8.5vw, 6.5rem); }
  .hero__lead { margin-top: 1.2rem; }
  .hero .btn-row { margin-top: 1.9rem; }
}

@media (max-width: 1024px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .staff-profile { grid-template-columns: 1fr 1.4fr; }
  .staff-profile--reverse { grid-template-columns: 1.4fr 1fr; }
}
/* Seven day tabs with counts only fit on one row at full names above this width. */
@media (max-width: 1100px) {
  .day-tab__full { display: none; }
  .day-tab__short { display: inline; }
}
/* The nav collapses before the rest of the layout: seven links plus two buttons need about 1100px of
   container inside the pill, so below ~1240px of screen they would run off the right-hand edge.
   The menu is a full-screen sheet that wipes down; clip-path (not a transform) keeps the closed menu from adding
   any page overflow. */
@media (max-width: 1240px) {
  /* Anything with a backdrop-filter becomes the containing block for position:fixed descendants, which would size
     this menu against the pill instead of the viewport. Dropping the blur while it is open hands that back. */
  body.nav-open .site-header__inner { backdrop-filter: none; -webkit-backdrop-filter: none; background: transparent; border-color: transparent; box-shadow: none; }
  .site-nav { position: fixed; inset: 0; z-index: 790; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; padding: calc(var(--header-h) + 1.25rem) var(--gutter) max(2rem, env(safe-area-inset-bottom)); background: radial-gradient(90% 45% at 85% 0, rgba(224, 19, 43, 0.2), transparent 70%), var(--bg); overflow-y: auto; overscroll-behavior: contain; clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path 0.75s var(--ease), visibility 0s linear 0.75s; }
  .site-nav.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition-delay: 0s; }
  .site-nav__list { flex-direction: column; gap: 0; counter-reset: nav; }
  .site-nav__link { display: flex; align-items: baseline; gap: 1rem; padding: 0.6rem 0; border-bottom: 1px solid var(--border); border-radius: 0; background: none; font-size: clamp(1.9rem, 8.5vw, 3rem); font-weight: 800; letter-spacing: -0.01em; color: #fff; }
  .site-nav__link::before { counter-increment: nav; content: counter(nav, decimal-leading-zero); flex: none; width: 2.2rem; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.2em; color: var(--red-2); }
  .site-nav__link::after { display: none; }
  .site-nav__link:hover { background: none; }
  .site-nav__link.is-active { color: var(--red-2); }
  .site-nav__actions { flex-direction: column; align-items: stretch; margin-top: auto; padding-top: 2rem; gap: 0.75rem; }
  .site-nav__actions .btn { justify-content: center; padding: 1rem; font-size: 0.95rem; }
  /* The sheet covers the whole screen, so the logo and the close button have to sit above it. */
  .site-header__brand, .nav-toggle { position: relative; z-index: 791; }
  .nav-toggle { display: inline-grid; }
  body.nav-open { overflow: hidden; }
}
/* A landscape phone or a short window: keep every link on screen. */
@media (max-width: 1240px) and (max-height: 760px) {
  .site-nav__link { padding: 0.3rem 0; font-size: clamp(1.4rem, 5.2vw, 2rem); }
  .site-nav__actions { padding-top: 1.25rem; flex-direction: row; }
  .site-nav__actions .btn { flex: 1; padding: 0.85rem; }
}

@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; }
  .step, .step + .step { padding: 1.6rem 0; border-left: 0; border-bottom: 1px solid var(--border); }
  .step__num { margin-bottom: 0.6rem; }
  .split, .split--reverse { grid-template-columns: 1fr; }
  .split--reverse .split__text { order: 1; }
  .split--reverse .split__media { order: 2; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature { min-height: 400px; }
  .today-strip { flex-direction: column; }
  .today-strip__title::after { top: auto; bottom: 0; left: 0.8rem; right: 0.8rem; border-right: 0; border-bottom: 2px dashed rgba(0, 0, 0, 0.4); }
  .contact-grid { grid-template-columns: 1fr; }
  .auth-page__inner--wide { grid-template-columns: 1fr; }
  .staff-profile, .staff-profile--reverse { grid-template-columns: 1fr; }
  .staff-profile--reverse .staff-profile__media { order: 0; }
  .staff-profile__media { max-width: 420px; }
  .timeline__item { grid-template-columns: minmax(0, 1fr); gap: 0.7rem; }
  .timeline__marker { top: 2.2rem; margin-top: 0; }
  .timeline__img { max-width: 340px; }
  .form--grid { grid-template-columns: 1fr; }
  .setup-2fa { grid-template-columns: 1fr; justify-items: center; }
  .hero-status { font-size: 0.66rem; padding: 0.45rem 0.85rem; }
  .hero-status__hours, .hero-status__sep { display: none; }
  .btn-row--center .btn--hero { width: 100%; max-width: 320px; }
  .video-window { border-radius: 14px; }
  .video-window__knurl { display: none; }
  .video-window__title { font-size: 0.6rem; letter-spacing: 0.1em; }
}
@media (max-width: 600px) {
  .site-footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .form-row { grid-template-columns: 1fr; }
  .backup-codes { grid-template-columns: 1fr; }
  .member-head { flex-direction: column; align-items: stretch; }
  .member-tabs { justify-content: space-between; }
  .member-tab { flex: 1; text-align: center; padding-inline: 0.5rem; }
  .btn--lg { padding: 0.9rem 1.4rem; font-size: 0.92rem; }
  .stat { padding-right: 0.75rem; }
  .stat + .stat { padding-left: 0.9rem; }
  .class-card__facts { grid-template-columns: 1fr; }
}

/* The hero wordmark is masked word by word so its letters (split by motion.js) can rise out of the line. The mask
   geometry is permanent: overflow:hidden moves an inline-block's baseline to its bottom margin edge, so switching
   it off later would nudge the wordmark. The padding (cancelled by the negative margin) keeps glyphs off the edges. */
.hero__word { display: inline-block; overflow: hidden; padding: 0.12em 0.06em; margin: -0.12em -0.06em; }
.hero__word > span { display: inline-block; }
/* Only ever visible while the opening animation plays it (premium.css). */
.hero__glow { position: absolute; inset: -25% -10%; pointer-events: none; opacity: 0; background: radial-gradient(55% 50% at 50% 50%, rgba(224, 19, 43, 0.13), transparent 78%); }


/* Reduced motion ------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-status__dot { animation: none; }
}

/* Print --------------------------------------------------------------------- */
@media print {
  .site-header, .site-footer, .btn, .toast-region, .nav-toggle, .hero__glow { display: none !important; }
  body { background: #fff; color: #000; }
}

/* Payment type on the member plan picker */
.plan-option__billing { display: block; margin: 0.5rem 0 0.25rem; font-size: 0.85rem; color: var(--muted); }
.plan-option__billing strong { color: var(--text-2); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.78rem; }
.plan-option__billing--sub strong { color: #ff8a97; }

/* Coaching ------------------------------------------------------------------ */
.plan-card__tagline { margin: 0.25rem 0 0; color: var(--muted); font-size: 0.9rem; }
.plan-card__billing-note { margin: 0 0 1rem; font-size: 0.88rem; color: var(--muted); }
.coaching-card .plan-card__name, .coaching-buy .plan-card__name { font-size: 1.5rem; letter-spacing: -0.02em; text-transform: none; color: #fff; }
.coaching-card .plan-card__features, .coaching-layout .plan-card__features { margin: 0.5rem 0 1.75rem; flex: 1; }
.coaching-card__img { width: calc(100% + 4rem); max-width: none; margin: -2rem -2rem 1.25rem; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.coaching-card .plan-card__name a:hover { color: var(--red-2); }
.coaching-facts { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 1.25rem; padding: 0; list-style: none; }
.coaching-facts li { padding: 0.3rem 0.7rem; border-radius: 999px; border: 1px solid var(--border-strong); font-family: var(--font-display); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2); }
.coaching-seller { margin: 0 0 1.5rem; font-size: 0.9rem; color: var(--muted); }
.coaching-seller strong { color: var(--text-2); }
.coaching-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.coaching-layout__main .prose { margin-top: 1.25rem; }
.coaching-subhead { margin: 2rem 0 0.75rem; font-size: 1.05rem; }
.coaching-facts-list { display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; margin: 1.25rem 0 0; }
.coaching-facts-list dt { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.coaching-facts-list dd { margin: 0.2rem 0 0; font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; color: #fff; }
.coaching-buy { position: sticky; top: 6rem; }
.coaching-buy .plan-card__price { margin-top: 0.75rem; }
.plan-content { padding: clamp(1.25rem, 3vw, 2.25rem); }
.plan-content h3 { margin: 2rem 0 0.6rem; padding-top: 1.25rem; border-top: 1px solid var(--border); font-size: 1.35rem; }
.plan-content h3:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.plan-content h4 { margin: 1.5rem 0 0.4rem; font-size: 1.05rem; color: var(--text); }
@media (max-width: 860px) {
  .coaching-layout { grid-template-columns: minmax(0, 1fr); }
  .coaching-buy { position: static; }
}
/* Four member tabs no longer fit a phone's gutters at the default size. */
@media (max-width: 480px) {
  .member-tab { padding-inline: 0.2rem; font-size: 0.7rem; letter-spacing: 0.04em; }
}

/* ==========================================================================
   INTERACTION LAYER
   Hero photography, pointer effects, gallery + lightbox, form components, meters,
   mobile quick actions and page transitions. Everything that moves is switched off
   under prefers-reduced-motion at the bottom of this block, and everything that needs
   JavaScript (public/js/ui.js) degrades to the plain page without it.
   ========================================================================== */

/* Page transitions: browsers that support cross-document view transitions fade between pages
   instead of cutting; the header is named so it stays put while the rest changes. */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 0.16s ease both vt-out; }
::view-transition-new(root) { animation: 0.34s var(--ease) both vt-in; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }

/* Subtle depth for every card-like surface: a lit top edge and a faint vertical gradient. */
.plan-card:not(.plan-card--featured), .class-card, .staff-card, .value, .card, .tile, .timeline__card, .slot, .today-strip {
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0) 45%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.section--surface { background: radial-gradient(900px 360px at 50% 0, rgba(224, 19, 43, 0.06), transparent 70%), var(--bg-2); }

/* A red light that follows the pointer across the hero (fine pointers only; see ui.js). */
.hero__spot { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity 0.6s; background: radial-gradient(540px circle at var(--mx, 50%) var(--my, 42%), rgba(224, 19, 43, 0.26), transparent 62%); mix-blend-mode: screen; }
.hero.is-lit .hero__spot { opacity: 1; }

/* Hero dock: what's on at the gym right now, and a cue to keep scrolling. */
.hero-dock { position: absolute; left: 0; right: 0; bottom: calc(var(--frame) + 2.25rem); margin-inline: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; z-index: 2; }
.hero-dock__chip { display: inline-flex; align-items: center; gap: 0.7rem; max-width: 100%; padding: 0.5rem 1.1rem 0.5rem 0.5rem; border-radius: 999px; border: 1px solid var(--border-strong); background: rgba(19, 19, 23, 0.72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: 0.86rem; transition: border-color 0.2s, transform 0.3s var(--ease); }
.hero-dock__chip:hover { border-color: rgba(255, 255, 255, 0.4); transform: translateY(-2px); }
.hero-dock__label { flex: none; padding: 0.3rem 0.65rem; border-radius: 999px; background: var(--red); font-family: var(--font-display); font-size: 0.66rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap; }
.hero-dock__class { font-weight: 600; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero-dock__meta { flex: none; color: var(--muted); white-space: nowrap; }
.hero-dock__scroll { display: inline-flex; flex-direction: column; align-items: center; gap: 0.6rem; margin-left: auto; font-family: var(--font-display); font-size: 0.64rem; font-weight: 700; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); transition: color 0.2s; }
.hero-dock__scroll:hover { color: #fff; }
.hero-dock__line { width: 1px; height: 38px; background: linear-gradient(var(--red-2), transparent); transform-origin: top; animation: scroll-cue 2.2s var(--ease) infinite; }
@keyframes scroll-cue { 0% { transform: scaleY(0); opacity: 0; } 30% { opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* Spotlight: a red edge-light on cards that follows the pointer (fine pointers only; see ui.js). */
.spot { position: relative; }
.spot::before { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity 0.35s; background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 47, 71, 0.8), transparent 62%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.spot:hover::before { opacity: 1; }

/* Icon buttons ---------------------------------------------------------------------- */
.icon-btn { display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border-strong); background: rgba(255, 255, 255, 0.04); color: #fff; transition: background 0.2s, border-color 0.2s, opacity 0.2s; }
.icon-btn:hover { background: var(--red); border-color: var(--red); }
.icon-btn[disabled] { opacity: 0.35; pointer-events: none; }

/* Lightbox (a native <dialog>: Esc, focus trapping and the top layer come for free) */
.lightbox { width: min(94vw, 1000px); max-width: none; max-height: none; margin: auto; padding: 0; border: 0; background: transparent; color: #fff; overflow: visible; }
.lightbox::backdrop { background: rgba(4, 4, 6, 0.93); backdrop-filter: blur(6px); }
.lightbox[open] { animation: lb-in 0.35s var(--ease); }
@keyframes lb-in { from { opacity: 0; transform: scale(0.97); } }
.lightbox__figure { display: grid; justify-items: center; gap: 0.9rem; margin: 0; }
.lightbox__img { width: auto; max-width: 100%; max-height: 78vh; border-radius: var(--radius); box-shadow: var(--shadow); }
.lightbox__caption { display: grid; gap: 0.2rem; max-width: 60ch; text-align: center; }
.lightbox__caption strong { font-family: var(--font-display); letter-spacing: 0.06em; text-transform: uppercase; }
.lightbox__caption span { font-size: 0.92rem; color: var(--text-2); }
.lightbox__count { position: fixed; top: 1.6rem; left: 1.25rem; margin: 0; font-family: var(--font-display); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.2em; color: var(--muted); }
.lightbox__close { position: fixed; top: 1rem; right: 1rem; }
.lightbox__prev .icon { transform: rotate(180deg); }
.lightbox__prev, .lightbox__next { position: fixed; top: 50%; translate: 0 -50%; }
.lightbox__prev { left: 1rem; }
.lightbox__next { right: 1rem; }
html.is-locked { overflow: hidden; }

/* Forms ------------------------------------------------------------------------------- */
.input-wrap { position: relative; }
.input-wrap .input { padding-right: 3.25rem; }
.input-toggle { position: absolute; top: 50%; right: 0.4rem; translate: 0 -50%; display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); transition: color 0.2s, background 0.2s; }
.input-toggle:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.input-toggle.is-on { color: var(--red-2); }
.field.is-valid .input { border-color: rgba(34, 197, 94, 0.55); }
.field__error { display: flex; align-items: flex-start; gap: 0.4rem; }
.field__error::before { content: ""; flex: none; width: 15px; height: 15px; margin-top: 0.15em; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v6M12 16.5h.01'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v6M12 16.5h.01'/%3E%3C/svg%3E") center / contain no-repeat; }
.field__note { margin: 0; font-size: 0.82rem; color: var(--muted); }
.field__note--ok { color: #4ade80; }
.field__note--warn { color: var(--amber); }
.field__count { margin: 0; text-align: right; font-size: 0.78rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.field__count.is-near { color: var(--amber); }
.pw-meter { display: grid; gap: 0.5rem; }
.pw-meter__bars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.pw-meter__bars span { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.1); transition: background 0.25s; }
.pw-meter[data-score="1"] .pw-meter__bars span:nth-child(-n + 1) { background: #ef4444; }
.pw-meter[data-score="2"] .pw-meter__bars span:nth-child(-n + 2) { background: var(--amber); }
.pw-meter[data-score="3"] .pw-meter__bars span:nth-child(-n + 3) { background: #84cc16; }
.pw-meter[data-score="4"] .pw-meter__bars span { background: var(--green); }
.pw-rules { display: flex; flex-wrap: wrap; gap: 0.2rem 1rem; margin: 0; padding: 0; list-style: none; font-size: 0.8rem; color: var(--muted); }
.pw-rules li::before { content: "○"; margin-right: 0.4rem; }
.pw-rules li.is-met { color: #4ade80; }
.pw-rules li.is-met::before { content: "✓"; }

/* Membership meter + today's classes (member dashboard) ------------------------------------------ */
.meter { height: 8px; margin: 1.1rem 0 0.6rem; border-radius: 999px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.meter__fill { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--red), var(--red-2)); transition: width 1.1s var(--ease); }
.meter__fill--success { background: linear-gradient(90deg, #16a34a, #4ade80); }
.meter__fill--warning { background: linear-gradient(90deg, #d97706, #fbbf24); }
.meter__label { margin: 0 0 1rem; font-size: 0.9rem; color: var(--text-2); }
.meter__label strong { font-family: var(--font-display); font-size: 1.3rem; color: #fff; }
.card--today .opening-card { margin-bottom: 0; }
.today-list { display: grid; gap: 0.4rem; margin: 1rem 0; }
.today-list__item { display: flex; align-items: center; gap: 0.75rem; padding: 0.55rem 0.8rem; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--border); font-size: 0.93rem; }
.today-list__time { font-family: var(--font-display); font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.today-list__item .slot__state { margin-left: auto; }
.today-list__item.is-live { border-color: rgba(34, 197, 94, 0.4); }
.today-list__item.is-next { border-color: rgba(224, 19, 43, 0.45); }

/* Floating controls -------------------------------------------------------------------------------- */
.to-top { position: fixed; right: 1rem; bottom: 1rem; z-index: 650; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--border-strong); background: var(--surface-2); color: #fff; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity 0.3s, transform 0.3s var(--ease), visibility 0s linear 0.3s, background 0.2s; }
.to-top .icon { transform: rotate(-90deg); }
.to-top:hover { background: var(--red); }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
body:has(.toast) .to-top { bottom: 5rem; }
.mobile-cta { display: none; }

/* Short, wide screens keep the dock clear of the frame's corner brackets. */
@media (min-width: 861px) { .hero-dock { width: min(var(--container), 100% - var(--gutter) * 2 - 8rem); } }

@media (max-width: 860px) {
  .tt-days { padding: 0.6rem 0; }
  .day-tabs { flex-wrap: nowrap; overflow-x: auto; padding-inline: var(--gutter); scrollbar-width: none; }
  .day-tabs::-webkit-scrollbar { display: none; }
  .mobile-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 700; display: flex; gap: 0.6rem; padding: 0.7rem var(--gutter) calc(0.7rem + env(safe-area-inset-bottom)); background: rgba(7, 7, 8, 0.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--border); transform: translateY(110%); transition: transform 0.4s var(--ease); }
  .mobile-cta.is-visible { transform: none; }
  .mobile-cta .btn { flex: 1; padding-block: 0.85rem; }
  body.nav-open .mobile-cta { transform: translateY(110%); }
  body:has(.mobile-cta) .site-footer__bottom { padding-bottom: 5.5rem; }
  body:has(.mobile-cta.is-visible) .to-top { bottom: 5.25rem; }
  body:has(.mobile-cta.is-visible) .toast-region { bottom: 5.25rem; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 1rem; translate: 0 0; }
  .lightbox__img { max-height: 70vh; }
  .hero-dock__meta, .hero-dock__scroll { display: none; }
}
@media (max-width: 600px) {
  .slot__row { grid-template-columns: 1fr 1.5rem; gap: 0.5rem 0.75rem; padding: 0.95rem 1rem; }
  .slot__time { grid-column: 1; flex-direction: row; gap: 0.5rem; align-items: baseline; }
  .slot__chevron { grid-column: 2; grid-row: 1; }
  .slot__main { grid-column: 1 / -1; }
  .slot__side { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; }
  .slot__panel { margin: 0 1rem; }
  .tt-controls { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .hero-dock__line { animation: none; opacity: 1; transform: none; }
  .site-header { transition: none; }
  .btn::after { display: none; }
  .btn:hover, .btn:active { transform: none; }
  .meter__fill { transition: none; }
  .lightbox[open] { animation: none; }
}
@media print {
  .mobile-cta, .to-top, .hero__spot, .hero-dock, .scroll-progress, .lightbox, .tt-days { display: none !important; }
}
