/* ==========================================================================
   O15 Boxing Club — styles
   Tokens → base → layout → components → sections → motion → responsive
   ========================================================================== */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 600 900;
  font-display: swap;
  src:
    url("../fonts/Outfit-Bold.woff2") format("woff2"),
    url("../fonts/Outfit-Bold.otf") format("opentype");
}

/* ---------- Tokens ---------- */
:root {
  --onyx: #111111;
  --smoke: #f5f5f5;
  --red: #e42320;
  --red-deep: #b8140f;
  --silver: #a6a6a6;

  --bg: #ffffff;
  --fg: #171716;
  --muted: #6b6b68;
  --surface: #f5f5f4;
  --border: #e4e4e1;
  --dark-border: #2a2a2a;

  --font-display: "Outfit", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Outfit", ui-sans-serif, system-ui, sans-serif;
  /* Brand rule: Outfit only — the former mono role is Outfit with wide tracking. */
  --font-mono: "Outfit", ui-sans-serif, system-ui, sans-serif;

  --shell: 1160px;
  --gutter: clamp(20px, 4vw, 32px);
  --header-h: 76px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  color-scheme: light;
}

.dark {
  --bg: #111111;
  --fg: #f5f5f5;
  --muted: #a6a6a6;
  --surface: #1a1a1a;
  --border: #2a2a2a;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img,
svg,
picture {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
h1,
h2,
h3,
h4,
p,
dl,
dd,
figure {
  margin: 0;
}
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}
::selection {
  background: var(--red);
  color: #fff;
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Layout primitives ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section {
  padding-block: clamp(80px, 11vw, 128px);
  border-bottom: 1px solid var(--border);
  scroll-margin-top: calc(var(--header-h) + 8px);
}
.section--dark {
  background: var(--onyx);
  color: var(--smoke);
  border-color: var(--dark-border);
}
.section--dark .eyebrow {
  color: var(--red);
}
.section--dark .lede {
  color: color-mix(in srgb, var(--smoke) 70%, transparent);
}

/* ---------- Type ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}
.h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  letter-spacing: -0.025em;
  line-height: 1.02;
  margin-top: 24px;
  max-width: 18ch;
}
.h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.lede {
  max-width: 34rem;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--muted);
  margin-top: 24px;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--red);
}
.eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: currentColor;
}
.mono {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}
.label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.num {
  font-variant-numeric: tabular-nums;
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
}
.wordmark .o {
  color: var(--red);
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding-inline: 28px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  transition:
    color 0.3s var(--ease-out),
    border-color 0.3s var(--ease-out),
    background-color 0.3s var(--ease-out);
}
.btn::after {
  /* the fill slides in from the left on hover — one bar, one direction */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: translateX(-101%);
  transition: transform 0.45s var(--ease-out);
}
.btn:hover::after,
.btn:focus-visible::after {
  transform: translateX(0);
}
.btn--primary {
  background: var(--red);
  color: #fff;
}
.btn--primary::after {
  background: var(--red-deep);
}
.btn--ghost {
  border: 1px solid currentColor;
  color: var(--fg);
}
.btn--ghost::after {
  background: var(--fg);
}
.btn--ghost:hover,
.btn--ghost:focus-visible {
  color: var(--bg);
}
.btn--light {
  border: 1px solid color-mix(in srgb, var(--smoke) 40%, transparent);
  color: var(--smoke);
}
.btn--light::after {
  background: var(--smoke);
}
.btn--light:hover,
.btn--light:focus-visible {
  color: var(--onyx);
  border-color: var(--smoke);
}
.btn--lg {
  height: 58px;
  padding-inline: 36px;
  font-size: 15px;
}
.hero__note {
  margin-top: 16px;
  color: var(--silver);
}
.btn--sm {
  height: 42px;
  padding-inline: 18px;
}
.btn--block {
  width: 100%;
}
.btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.6vw, 24px);
  height: var(--header-h);
  transition: height 0.4s var(--ease-out);
}
.header.is-compact .header__inner {
  height: 62px;
}
.header__logo {
  display: inline-flex;
  align-items: center;
  font-size: 28px;
}
.header__nav {
  display: none;
  flex: 1;
  justify-content: center;
  gap: clamp(12px, 1.2vw, 18px);
}
.header__nav a {
  position: relative;
  white-space: nowrap;
  padding-block: 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s;
}
.header__nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}
.header__nav a:hover,
.header__nav a.is-active {
  color: var(--fg);
}
.header__nav a.is-active::after,
.header__nav a:hover::after {
  transform: scaleX(1);
}
.header__actions {
  display: none;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}
.header__burger {
  margin-left: auto;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
}
.header__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  transition: transform 0.35s var(--ease-out), opacity 0.2s;
}
.header__burger span + span {
  margin-top: 6px;
}
.header__burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.header__burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.header__burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}
.header__drawer {
  display: none;
  border-top: 1px solid var(--border);
}
.header__drawer[data-open="true"] {
  display: block;
}
.header__drawer nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-block: 24px;
}
.header__drawer nav a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.header__drawer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 24px;
}

/* Theme switch */
.theme {
  display: inline-flex;
  border: 1px solid var(--border);
}
.theme button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--muted);
  transition: background-color 0.3s, color 0.3s;
}
.theme button svg {
  width: 16px;
  height: 16px;
}
.theme button:hover {
  color: var(--fg);
}
.theme button[aria-pressed="true"] {
  background: var(--fg);
  color: var(--bg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--onyx);
  color: var(--smoke);
  border-bottom: 1px solid var(--dark-border);
}
.hero__grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgb(255 255 255 / 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(255 255 255 / 0.045) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: radial-gradient(70% 70% at 30% 40%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(70% 70% at 30% 40%, #000 30%, transparent 100%);
}
.hero__glow {
  position: absolute;
  inset-block: 0;
  right: 0;
  width: 100%;
  pointer-events: none;
  background: radial-gradient(55% 55% at 62% 62%, rgb(228 35 32 / 0.16), transparent 70%);
  animation: glow-breathe 7s ease-in-out infinite;
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  padding-top: 56px;
}
.hero__type {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-bottom: 16px;
}
.hero__mark {
  font-size: clamp(3.75rem, 8vw, 4.75rem);
}
.hero__block {
  margin-top: 48px;
}
.hero__rule {
  display: block;
  width: 48px;
  height: 3px;
  margin-top: 16px;
  background: var(--red);
}
.hero__title {
  margin-top: 24px;
  font-size: clamp(3rem, 9vw, 6.75rem);
  line-height: 0.92;
  letter-spacing: -0.035em;
}
.hero__copy {
  margin-top: 32px;
  max-width: 28rem;
  font-size: 1.125rem;
  line-height: 1.6;
  color: color-mix(in srgb, var(--smoke) 70%, transparent);
}
.hero__cta {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero__url {
  margin-top: 56px;
  color: var(--silver);
}
.hero__figure {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.hero__tag {
  position: absolute;
  top: 0;
  right: 0;
  display: none;
  color: var(--silver);
}
.hero__boxer {
  height: min(62svh, 560px);
  width: auto;
  max-width: none;
  user-select: none;
  -webkit-user-drag: none;
}
.hero__parallax {
  will-change: transform;
}

/* ---------- The Code ---------- */
.code__grid {
  display: grid;
  gap: 56px;
}
.code__text p + p {
  margin-top: 20px;
}
.code__stats {
  border-block: 1px solid var(--border);
}
.code__stats > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding-block: 22px;
}
.code__stats > div + div {
  border-top: 1px solid var(--border);
}
.code__stats dt {
  color: var(--muted);
}
.code__stats dd {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.25rem, 4vw, 3rem);
  letter-spacing: -0.02em;
  line-height: 1;
}
.ill.punchchart {
  width: 100%;
  max-width: 440px;
  height: auto;
  color: var(--fg);
}
.ill.punchchart [data-accent] {
  stroke: var(--red);
}
.punchchart__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 16px;
  color: var(--muted);
}
.punchchart__legend b {
  color: var(--red);
  font-weight: 400;
  margin-right: 6px;
}

/* ---------- Card grid (programs, facilities) ---------- */
.cards {
  display: grid;
  gap: 1px;
  margin-top: 56px;
  border: 1px solid var(--border);
  background: var(--border);
}
.card {
  background: var(--bg);
}
.card__inner {
  height: 100%;
  padding: 32px;
  transition: background-color 0.35s var(--ease-out);
}
.card__inner:hover,
.card__inner:focus-within {
  background: var(--surface);
}
.card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}
.card__n {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--red);
}
.card .h3 {
  margin-top: 24px;
}
.card p {
  margin-top: 16px;
  font-size: 0.925rem;
  line-height: 1.6;
  color: var(--muted);
}
.card--cta {
  grid-column: 1 / -1;
  background: var(--onyx);
  color: var(--smoke);
}
/* Fits into a single grid cell instead of breaking to a full-width row —
   used where the CTA tile completes an otherwise-partial row (e.g.
   Programs: 5 real cards + this tile = a clean 2×3 grid). */
.card--cta-fit {
  grid-column: auto;
}
.card__inner--cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.card__inner--cta:hover,
.card__inner--cta:focus-within {
  background: var(--onyx);
}
.card__inner--cta .h3 {
  max-width: 22ch;
}
.card__inner--cta p {
  color: color-mix(in srgb, var(--smoke) 70%, transparent);
}
.card__inner--cta .btn {
  margin-top: auto;
  padding-top: 0;
}
.card__inner--cta .btn {
  margin-top: 28px;
}

/* Illustrations */
.ill {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  color: var(--fg);
}
.ill :is(path, circle, rect, line, polyline) {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition:
    stroke-dashoffset 1100ms var(--ease-out) var(--draw-delay, 0ms),
    stroke 0.3s ease;
}
.ill [data-static] {
  stroke-dasharray: 1.5 3.5;
  stroke-dashoffset: 0;
  transition: none;
}
[data-revealed="true"] .ill :is(path, circle, rect, line, polyline),
.ill.is-drawn :is(path, circle, rect, line, polyline) {
  stroke-dashoffset: 0;
}
.card__inner:hover .ill [data-accent],
.card__inner:focus-within .ill [data-accent] {
  stroke: var(--red);
}

/* ---------- The Floor / zones ---------- */
.zones {
  display: grid;
  gap: 1px;
  margin-top: 56px;
  border: 1px solid var(--border);
  background: var(--border);
}
.zone {
  background: var(--bg);
}
.zone__panel {
  position: relative;
  overflow: hidden;
  height: 100%;
  padding: 32px 32px 36px;
  border-left: 3px solid transparent;
  transition: border-color 0.4s var(--ease-out), background-color 0.35s var(--ease-out);
}
.zone__photo {
  display: block;
  margin: -32px -32px 28px;
  aspect-ratio: 4 / 5;
  background: var(--surface);
  overflow: hidden;
}
.zone__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 15%;
  filter: grayscale(1) contrast(1.05);
  transition: transform 0.6s var(--ease-out);
}
.zone__panel:hover .zone__photo img {
  transform: scale(1.035);
}
.zone__panel:hover {
  background: var(--surface);
  border-left-color: var(--red);
}
.zone__watermark {
  position: absolute;
  right: -0.06em;
  bottom: -0.32em;
  font-size: clamp(9rem, 16vw, 14rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--border);
  pointer-events: none;
  user-select: none;
  transition: -webkit-text-stroke-color 0.4s;
}
.zone__panel:hover .zone__watermark {
  -webkit-text-stroke-color: color-mix(in srgb, var(--red) 45%, transparent);
}
.zone__top {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}
.zone__n {
  color: var(--red);
}
.zone__ill {
  width: 44px;
  height: 44px;
}
.zone__panel:hover .zone__ill [data-accent] {
  stroke: var(--red);
}
.zone__name {
  position: relative;
  margin-top: 40px;
  font-size: clamp(2rem, 4vw, 2.75rem);
}
.zone__disc {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 0;
  margin-top: 16px;
  color: var(--muted);
  letter-spacing: 0.22em;
  line-height: 1.4;
  max-width: 42ch;
}
.zone__disc span {
  white-space: nowrap;
}
.zone__disc span:not(:last-child)::after {
  content: "·";
  margin: 0 12px;
  color: var(--red);
}
.zone__body {
  position: relative;
  margin-top: 16px;
  max-width: 30rem;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--muted);
}
.zones__note {
  margin-top: 40px;
  max-width: 44rem;
  color: var(--muted);
  line-height: 1.7;
}
.zones__note .mono {
  color: var(--red);
}
.linklike {
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.linklike:hover {
  color: var(--red);
}
.card__zone {
  margin-top: 20px;
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--muted);
}

/* ---------- Membership ---------- */
.billing {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
}
.billing__opt {
  color: var(--muted);
  transition: color 0.3s;
}
.billing__opt.is-on {
  color: var(--fg);
}
.switch {
  position: relative;
  width: 52px;
  height: 28px;
  border: 1px solid var(--fg);
  background: transparent;
}
.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: var(--red);
  transition: transform 0.4s var(--ease-out);
}
.switch[aria-checked="true"]::after {
  transform: translateX(24px);
}
.tiers {
  display: grid;
  gap: 24px;
  margin-top: 40px;
}
.tier {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 32px;
  border: 1px solid var(--border);
}
.tier--featured {
  border-color: var(--red);
  background: var(--onyx);
  color: var(--smoke);
  box-shadow: 0 0 48px -14px var(--red);
}
.tier__badge {
  position: absolute;
  top: -12px;
  left: 32px;
  padding: 4px 12px;
  background: var(--red);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.tier__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.tier__benefit {
  margin-top: 12px;
  font-size: 10px;
  letter-spacing: 0.18em;
  line-height: 1.8;
  color: var(--muted);
}
.tier--featured .tier__benefit {
  color: color-mix(in srgb, var(--smoke) 62%, transparent);
}
.tier__price {
  margin-top: 32px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.tier__amount {
  position: relative;
  display: inline-block;
  min-width: 3ch;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 3rem;
  letter-spacing: -0.03em;
  line-height: 1;
  overflow: hidden;
  height: 1em;
  vertical-align: bottom;
}
.tier__amount span {
  display: block;
  transition: transform 0.5s var(--ease-out), opacity 0.4s;
}
.tier__amount span.is-out {
  transform: translateY(-110%);
  opacity: 0;
}
.tier__amount span.is-in {
  transform: translateY(0);
}
.tier__meta {
  color: var(--muted);
}
.tier--featured .tier__meta,
.tier--featured .tier__note {
  color: color-mix(in srgb, var(--smoke) 62%, transparent);
}
.tier__note {
  margin-top: 8px;
  color: var(--muted);
}
.tier__foot {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.925rem;
  color: var(--muted);
}
.tier--featured .tier__foot {
  border-color: var(--dark-border);
  color: color-mix(in srgb, var(--smoke) 70%, transparent);
}
.tier .btn {
  margin-top: 32px;
}
.tier--featured .btn--ghost {
  color: var(--smoke);
}
.tier--featured .btn--ghost::after {
  background: var(--smoke);
}
.tier--featured .btn--ghost:hover {
  color: var(--onyx);
}
.subhead {
  margin-top: 72px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
}
.minis {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}
.mini {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  height: 100%;
  padding: 24px;
  border: 1px solid var(--border);
  transition: border-color 0.3s;
}
.mini:hover {
  border-color: var(--fg);
}
.mini h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.mini strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.875rem;
  letter-spacing: -0.02em;
  line-height: 1;
}
.mini small {
  display: block;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.mini__pay {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
}
.mini__pay:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.finenote {
  margin-top: 48px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}
.finenote a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.finenote a:hover {
  color: var(--fg);
}
/* Inline "fine print" price mentions (e.g. the €45 insurance in body copy) —
   distinct from <small class="mono"> used inside price cards. */
small {
  font-size: 0.82em;
  opacity: 0.82;
}

/* ---------- Schedule ---------- */
.schedule__frame {
  margin-top: 48px;
  border: 1px solid var(--border);
  background: var(--bg);
  min-height: 220px;
}
.schedule__widget {
  padding: clamp(12px, 3vw, 24px);
}
.schedule__fallback {
  display: none;
  padding: 40px 24px;
  text-align: center;
  color: var(--muted);
}
.schedule__frame[data-state="failed"] .schedule__widget {
  display: none;
}
.schedule__frame[data-state="failed"] .schedule__fallback {
  display: block;
}
.schedule__loading {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 40px 24px;
  color: var(--muted);
}
.schedule__frame[data-state="loaded"] .schedule__loading,
.schedule__frame[data-state="failed"] .schedule__loading {
  display: none;
}
.pulse {
  width: 8px;
  height: 8px;
  background: var(--red);
  animation: pulse 1.2s ease-in-out infinite;
}
.schedule__cta {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

/* ---------- Coaches ---------- */
.coach-lead {
  display: grid;
  gap: 32px;
  margin-top: 56px;
  padding: clamp(32px, 4vw, 40px);
  border: 1px solid var(--border);
}
.coach-lead__initials {
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  background: var(--red);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.25rem;
  letter-spacing: -0.02em;
}
.coach-lead h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.875rem, 3vw, 2.25rem);
  letter-spacing: -0.01em;
}
.coach__role {
  margin-top: 8px;
  color: var(--red);
}
.coach__bio {
  margin-top: 20px;
  max-width: 36rem;
  color: var(--muted);
}
.coach__certs {
  margin-top: 12px;
  max-width: 36rem;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  opacity: 0.82;
}
.coaches {
  display: grid;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-top: 0;
}
.coach {
  display: flex;
  gap: 20px;
  height: 100%;
  padding: 32px;
  background: var(--bg);
}
.coach__initials {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border: 1px solid var(--fg);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
}
.coach h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
}
.coach .coach__role {
  margin-top: 4px;
}
.coach .coach__bio {
  margin-top: 12px;
  font-size: 0.925rem;
}

/* ---------- Contact ---------- */
.contact__grid {
  display: grid;
  gap: 64px;
}
.lockup {
  display: inline-block;
}
.lockup__mark {
  font-size: clamp(4rem, 9vw, 6.5rem);
}
.lockup__tag {
  /* brand lockup ratio: tagline width ≈ 0.97 × mark width, gap ≈ 0.09 × mark width */
  margin-top: 0.5em;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1rem, 2.28vw, 1.65rem);
  letter-spacing: -0.02em;
  line-height: 1;
}
.contact__copy {
  margin-top: 32px;
  max-width: 30rem;
  font-size: 1.125rem;
  line-height: 1.6;
  color: color-mix(in srgb, var(--smoke) 70%, transparent);
}
.contact__cta {
  margin-top: 32px;
}
.contact__facts {
  display: grid;
  gap: 32px 24px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--dark-border);
}
.contact__facts dt {
  color: var(--red);
}
.contact__facts dd {
  margin-top: 12px;
  font-size: 0.925rem;
  line-height: 1.7;
  color: color-mix(in srgb, var(--smoke) 70%, transparent);
}
.contact__facts a:hover {
  color: var(--smoke);
}

.contact__map iframe {
  display: block;
  width: 100%;
  height: 360px;
  border: 1px solid var(--dark-border);
  filter: grayscale(0.3) contrast(1.05);
}

/* Forms */
.form {
  display: grid;
  gap: 16px;
  padding: 32px;
  border: 1px solid var(--dark-border);
}
.form h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.field {
  display: block;
}
.field > span {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px;
  font: inherit;
  font-size: 0.925rem;
  color: inherit;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 0;
  outline: none;
  transition: border-color 0.3s;
}
.form--dark .field input,
.form--dark .field select,
.form--dark .field textarea {
  border-color: var(--dark-border);
  color: var(--smoke);
}
/* Native dropdown popup: explicit colours per theme — some Windows browsers
   otherwise paint light-on-light in dark mode. */
.field select option {
  color: #171716;
  background: #ffffff;
}
.dark .field select option {
  color: #f5f5f5;
  background: #1a1a1a;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--red);
}
.field textarea {
  resize: vertical;
}
.field .err {
  display: none;
  margin-top: 6px;
  font-size: 12px;
  color: var(--red);
}
.field.is-invalid .err {
  display: block;
}
.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea {
  border-color: var(--red);
}
.form__row {
  display: grid;
  gap: 16px;
}
.form__error {
  display: none;
  font-size: 0.925rem;
  color: var(--red);
}
.form__error[data-show="true"] {
  display: block;
}
.form__done {
  padding: 32px;
  border: 1px solid var(--red);
}
.form__done h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.form__done p {
  margin-top: 12px;
  color: var(--muted);
}
.form--dark .form__done p {
  color: color-mix(in srgb, var(--smoke) 70%, transparent);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--onyx);
  color: var(--smoke);
  padding-block: 56px 112px;
}
.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footer__brandrow {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer__social {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--dark-border);
  color: var(--smoke);
  transition: border-color 0.3s, color 0.3s, background-color 0.3s;
}
.footer__social svg {
  width: 18px;
  height: 18px;
}
.footer__social:hover {
  border-color: var(--red);
  color: var(--red);
}
.footer__logo {
  font-size: 28px;
}
.footer__meta {
  font-size: 12px;
  line-height: 1.7;
  color: color-mix(in srgb, var(--smoke) 60%, transparent);
}
.footer__meta p + p {
  margin-top: 4px;
}
.footer__nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__navtitle {
  color: var(--red);
  margin-bottom: 2px;
}
.footer__nav a {
  font-size: 13px;
  color: color-mix(in srgb, var(--smoke) 78%, transparent);
  transition: color 0.3s;
  width: fit-content;
}
.footer__nav a:hover {
  color: var(--smoke);
}

/* ---------- Sticky CTA ---------- */
.sticky {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 40;
  background: var(--onyx);
  color: var(--smoke);
  border-top: 1px solid var(--dark-border);
  transform: translateY(100%);
  transition: transform 0.4s var(--ease-out);
}
.sticky[data-visible="true"] {
  transform: translateY(0);
}
.sticky__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 14px;
}
.sticky__text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ---------- Modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: 40px 16px;
  background: rgb(0 0 0 / 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.modal[data-open="true"] {
  display: flex;
}
.modal__panel {
  width: 100%;
  max-width: 560px;
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--border);
  animation: modal-in 0.5s var(--ease-out) both;
}
.modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
}
.modal__head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.modal__close {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--muted);
  transition: color 0.3s;
}
.modal__close:hover {
  color: var(--fg);
}
.modal__close svg {
  width: 20px;
  height: 20px;
}
.modal .form {
  border: 0;
  padding: 24px;
}
.modal__done {
  padding: 32px 24px;
}
.modal__done p {
  color: var(--muted);
  font-size: 0.925rem;
}
.ref {
  margin-top: 16px;
  padding: 12px 16px;
  border: 1px solid var(--red);
  color: var(--red);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.14em;
}
.recap {
  margin-top: 24px;
  border-block: 1px solid var(--border);
}
.recap div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-block: 12px;
  font-size: 0.925rem;
}
.recap div + div {
  border-top: 1px solid var(--border);
}
.recap dt {
  color: var(--muted);
}
.recap dd {
  font-weight: 700;
}
.modal__done .btn {
  margin-top: 24px;
}

/* ---------- Motion ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s var(--ease-out) var(--reveal-delay, 0ms),
    transform 0.7s var(--ease-out) var(--reveal-delay, 0ms);
}
.reveal[data-revealed="true"] {
  opacity: 1;
  transform: none;
}
.hero-in {
  opacity: 0;
  animation: hero-rise 0.9s var(--ease-out) both;
}
.hero-rule {
  transform-origin: left center;
  transform: scaleX(0);
  animation: rule-grow 0.7s var(--ease-out) both;
}
.hero-lights {
  opacity: 0;
  animation: hero-lights 1.4s var(--ease-out) 0.25s both;
}
@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes hero-lights {
  from {
    opacity: 0;
    transform: scale(1.04);
    filter: brightness(0.35) contrast(1.15);
  }
  to {
    opacity: 1;
    transform: none;
    filter: brightness(1) contrast(1);
  }
}
@keyframes rule-grow {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
@keyframes glow-breathe {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 1;
  }
}
@keyframes pulse {
  0%,
  100% {
    opacity: 0.25;
  }
  50% {
    opacity: 1;
  }
}
@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
  .reveal,
  .hero-in,
  .hero-rule,
  .hero-lights {
    opacity: 1;
    transform: none;
    filter: none;
  }
  .ill :is(path, circle, rect, line, polyline) {
    stroke-dashoffset: 0;
  }
  .hero__glow {
    animation: none;
  }
}

/* ---------- Responsive ---------- */
@media (min-width: 640px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .card--wide {
    grid-column: span 2;
  }
  .zones {
    grid-template-columns: repeat(2, 1fr);
  }
  .minis {
    grid-template-columns: repeat(2, 1fr);
  }
  .coach-lead {
    grid-template-columns: auto 1fr;
  }
  .coaches {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact__facts {
    grid-template-columns: repeat(3, 1fr);
  }
  .form__row {
    grid-template-columns: 1fr 1fr;
  }
  .footer__inner {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }
}
@media (min-width: 1024px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 42%);
    gap: 32px;
    /* Fill the first screen, but never balloon on very tall / 4K displays. */
    min-height: min(calc(100svh - var(--header-h)), 880px);
    max-height: 1000px;
    padding-top: 56px;
  }
  .hero__type {
    justify-content: flex-start;
    padding-bottom: 72px;
  }
  .hero__block {
    margin-top: clamp(56px, 9vh, 112px);
  }
  .hero__figure {
    align-items: flex-end;
  }
  .hero__figure {
    justify-content: flex-end;
  }
  .hero__tag {
    display: block;
  }
  .hero__glow {
    width: 60%;
  }
  .hero__boxer {
    height: min(78svh, 740px);
  }
  .code__grid {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
  }
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
  .tiers {
    grid-template-columns: repeat(3, 1fr);
  }
  .minis {
    grid-template-columns: repeat(4, 1fr);
  }
  .contact__grid {
    grid-template-columns: 1fr 1fr;
  }
  .coaches {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 1180px) {
  .header__nav,
  .header__actions {
    display: flex;
  }
  .header__burger,
  .header__drawer {
    display: none !important;
  }
}
