/*
 * Beyond the Game — theme stylesheet.
 *
 * A plain-CSS port of the marketing design from the booking app: the same
 * Material-derived dark palette, the same three faces, the same near-square
 * corners and hard-edged slabs. Nothing here depends on a build step; edit
 * the file and reload.
 *
 * Every animation is gated on `prefers-reduced-motion: no-preference`, so a
 * visitor who asked for less motion — or whose JavaScript never ran — sees the
 * finished page rather than content waiting to be revealed.
 */

:root {
  --mk-background: #131313;
  --mk-on-background: #e5e2e1;
  --mk-surface: #131313;
  --mk-surface-bright: #393939;
  --mk-surface-variant: #353535;
  --mk-surface-container-lowest: #0e0e0e;
  --mk-surface-container-low: #1c1b1b;
  --mk-surface-container: #20201f;
  --mk-surface-container-high: #2a2a2a;
  --mk-surface-container-highest: #353535;
  --mk-on-surface: #e5e2e1;
  --mk-on-surface-variant: #e3bfb3;

  --mk-primary: #ffb59c;
  --mk-on-primary: #5c1900;
  --mk-primary-container: #ff5f1f;
  --mk-on-primary-container: #561700;
  --mk-primary-fixed: #ffdbcf;
  --mk-inverse-primary: #ab3600;

  --mk-tertiary: #c6c6c7;
  --mk-error: #ffb4ab;

  --mk-outline: #aa897f;
  --mk-outline-variant: #5b4138;

  --radius: 0.25rem;
  --radius-full: 9999px;

  --gutter: 24px;
  --margin-desktop: 64px;
  --section-gap: 128px;

  --font-display: 'Anton', 'Impact', 'Haettenschweiler', sans-serif;
  --font-body: 'Hanken Grotesk', ui-sans-serif, system-ui, sans-serif;
  --font-label: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', monospace;
}

/* ------------------------------------------------------------------ */
/* Reset and base                                                      */
/* ------------------------------------------------------------------ */

*,
*::before,
*::after {
  box-sizing: border-box;
  border: 0 solid var(--mk-outline-variant);
}

html {
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background-color: var(--mk-background);
  color: var(--mk-on-background);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* The hero headline is rotated and the ken-burns layer oversized; neither
     may create a horizontal scrollbar. */
  overflow-x: hidden;
}

::selection {
  background-color: var(--mk-primary-container);
  color: var(--mk-on-primary-container);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

/* The fixed nav is roughly 4.5rem tall; anchored sections park below it. */
section[id] {
  scroll-margin-top: 6rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--mk-primary-container);
  color: var(--mk-on-primary-container);
  font-family: var(--font-label);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.skip-link:focus {
  top: 1rem;
}

:focus-visible {
  outline: 2px solid var(--mk-primary);
  outline-offset: 2px;
}

/* ------------------------------------------------------------------ */
/* Type                                                                */
/* ------------------------------------------------------------------ */

.label {
  font-family: var(--font-label);
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0.1em;
  font-weight: 500;
  text-transform: uppercase;
}

.label--wide {
  letter-spacing: 0.2em;
}

.eyebrow {
  margin-bottom: 1rem;
  color: var(--mk-primary);
}

.headline {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 36px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

@media (min-width: 768px) {
  .headline {
    font-size: 48px;
  }
}

.display {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: 36px;
  line-height: 1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .display {
    font-size: 48px;
  }
}

.body-lg {
  font-size: 18px;
  line-height: 1.6;
}

.muted {
  color: var(--mk-on-surface-variant);
}

.accent {
  color: var(--mk-primary-container);
  font-weight: 700;
}

.icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}
.icon--sm {
  width: 1rem;
  height: 1rem;
}
.icon--xs {
  width: 1.125rem;
  height: 1.125rem;
}

/* ------------------------------------------------------------------ */
/* Buttons                                                             */
/* ------------------------------------------------------------------ */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.2;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.15s ease;
}
.btn:active {
  transform: scale(0.95);
}

.btn--primary {
  background-color: var(--mk-primary-container);
  color: var(--mk-on-primary-container);
  overflow: hidden;
}
.btn--primary:hover,
.btn--primary:focus-visible {
  background-color: var(--mk-inverse-primary);
}

.btn--shadow {
  box-shadow: 4px 4px 0 #000;
}

.btn--outline {
  border: 1px solid var(--mk-outline);
  color: var(--mk-on-surface);
  overflow: hidden;
  z-index: 1;
}

.btn--sm {
  padding: 0.75rem 1rem;
}
@media (min-width: 640px) {
  .btn--sm {
    padding: 0.75rem 1.5rem;
  }
}

.btn--xs {
  padding: 0.5rem 1rem;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgb(170 137 127 / 0.4);
  border-radius: var(--radius);
  color: var(--mk-primary);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.icon-btn:hover,
.icon-btn:focus-visible {
  border-color: var(--mk-primary);
  background-color: rgb(255 181 156 / 0.1);
}

.text-link {
  color: var(--mk-primary);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.2s ease;
}
.text-link:hover {
  color: var(--mk-primary-fixed);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--mk-on-surface-variant);
  transition: color 0.2s ease;
}
.back-link:hover {
  color: var(--mk-primary);
}

/* ------------------------------------------------------------------ */
/* Layout helpers                                                      */
/* ------------------------------------------------------------------ */

.container {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
}

.band {
  padding-inline: var(--gutter);
}
@media (min-width: 768px) {
  .band {
    padding-inline: var(--margin-desktop);
  }
}

/* ------------------------------------------------------------------ */
/* Nav                                                                 */
/* ------------------------------------------------------------------ */

.site-nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgb(91 65 56 / 0.3);
  background-color: rgb(19 19 19 / 0.8);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.site-nav.is-scrolled {
  background-color: rgb(19 19 19 / 0.95);
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.3);
}

.site-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
}

.site-nav__links {
  display: none;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 768px) {
  .site-nav__links {
    display: flex;
  }
}

.site-nav__link {
  display: block;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius);
  color: var(--mk-on-surface-variant);
  transition: color 0.2s ease, background-color 0.2s ease;
}
.site-nav__link:hover {
  color: var(--mk-primary);
  background-color: rgb(255 181 156 / 0.1);
}
.site-nav__link--current {
  color: var(--mk-primary);
  font-weight: 700;
  border-bottom: 2px solid var(--mk-primary);
  border-radius: 0;
  padding-bottom: 0.25rem;
}

.site-nav__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
@media (min-width: 640px) {
  .site-nav__actions {
    gap: 1rem;
  }
}

/* ------------------------------------------------------------------ */
/* Hero                                                                */
/* ------------------------------------------------------------------ */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 640px;
  padding-top: 6rem;
  overflow: hidden;
}
@media (min-width: 640px) {
  .hero {
    min-height: 760px;
  }
}
@media (min-width: 768px) {
  .hero {
    min-height: 921px;
  }
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 10;
  background: linear-gradient(
    to bottom,
    rgb(19 19 19 / 0.4),
    rgb(19 19 19 / 0.2),
    var(--mk-background)
  );
}

.hero__parallax {
  position: absolute;
  top: -10%;
  left: 0;
  width: 100%;
  height: 120%;
}

.hero__zoom {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  mix-blend-mode: luminosity;
}

.hero__content {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 2rem;
  width: 100%;
}
@media (min-width: 768px) {
  .hero__content {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }
}

.hero__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 5rem;
  text-align: center;
}
@media (min-width: 768px) {
  .hero__copy {
    grid-column: 2 / span 10;
    margin-top: 0;
    align-items: flex-start;
    text-align: left;
  }
}

.hero__slab {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 56rem;
  margin-inline: auto;
  margin-bottom: 1.5rem;
  transform: rotate(-2deg);
  transform-origin: left;
}

.hero__title {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(3.25rem, 13.5vw, 6.25rem);
  line-height: 0.8;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
@media (min-width: 768px) {
  .hero__title {
    font-size: 140px;
  }
}

.hero__line-1 {
  color: #fff;
}

.hero__line-2 {
  margin-top: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: var(--mk-primary-container);
}
.hero__line-2 > span {
  display: inline-block;
  color: var(--mk-background);
}

.hero__kicker {
  margin-top: 2rem;
  color: #fff;
  letter-spacing: 0.5em;
  text-align: center;
}
@media (min-width: 768px) {
  .hero__kicker {
    text-align: left;
  }
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  margin-top: 2rem;
}
@media (min-width: 640px) {
  .hero__actions {
    flex-direction: row;
    width: auto;
  }
}

.hero__fade {
  pointer-events: none;
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 10;
  width: 100%;
  height: 8rem;
  background: linear-gradient(to top, var(--mk-background), transparent);
}

/* ------------------------------------------------------------------ */
/* Philosophy                                                          */
/* ------------------------------------------------------------------ */

.philosophy {
  position: relative;
  overflow: hidden;
  padding-top: var(--section-gap);
}

.philosophy__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  max-width: 80rem;
  margin-inline: auto;
}
@media (min-width: 768px) {
  .philosophy__inner {
    flex-direction: row;
  }
}

.philosophy__heading {
  width: 100%;
}
@media (min-width: 768px) {
  .philosophy__heading {
    width: 33.333%;
  }
}

.philosophy__body {
  width: 100%;
}
@media (min-width: 768px) {
  .philosophy__body {
    width: 66.666%;
  }
}

.philosophy__body p {
  font-size: 18px;
  line-height: 1.625;
  color: var(--mk-on-surface-variant);
}
.philosophy__body p + p {
  margin-top: 1.5rem;
}
.philosophy__body strong {
  color: var(--mk-primary-container);
  font-weight: 700;
}

.rule {
  margin-top: 2rem;
  width: 6rem;
  height: 2px;
  background-color: var(--mk-primary-container);
}

/* ------------------------------------------------------------------ */
/* Coach                                                               */
/* ------------------------------------------------------------------ */

.coach {
  position: relative;
  overflow: hidden;
  padding-top: 6rem;
  padding-bottom: var(--section-gap);
}

.coach__inner {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 4rem;
  max-width: 80rem;
  margin-inline: auto;
}
@media (min-width: 1024px) {
  .coach__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.coach__portrait {
  position: relative;
}

.coach__frame {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid rgb(170 137 127 / 0.2);
  background-color: var(--mk-surface-container-low);
}
.coach__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: luminosity;
}

.coach__grid {
  pointer-events: none;
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, 1fr);
}
.coach__grid > span {
  border-bottom: 1px solid rgb(170 137 127 / 0.1);
  border-right: 1px solid rgb(170 137 127 / 0.1);
}
.coach__grid > span:nth-child(4n) {
  border-right: 0;
}

.coach__stats {
  display: none;
  position: absolute;
  right: -1.5rem;
  bottom: -1.5rem;
  padding: 1.5rem;
  border: 1px solid rgb(170 137 127 / 0.3);
  background-color: var(--mk-surface);
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.4);
}
@media (min-width: 768px) {
  .coach__stats {
    display: block;
  }
}
.coach__stats-title {
  margin-bottom: 0.5rem;
  color: var(--mk-primary);
}
.coach__stats-row {
  display: flex;
  gap: 2rem;
}
.coach__stat-label {
  margin-bottom: 0.25rem;
  font-size: 10px;
  color: var(--mk-surface-variant);
}
.coach__stat-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--mk-on-surface);
}

.coach__copy {
  display: flex;
  flex-direction: column;
}
.coach__heading {
  margin-bottom: 2rem;
}
.coach__heading-accent {
  color: var(--mk-outline);
}
.coach__body {
  max-width: 32rem;
  margin-bottom: 2rem;
  color: var(--mk-on-surface-variant);
}

.coach__capabilities {
  list-style: none;
  margin: 0 0 2.5rem;
  padding: 1.5rem 0 0;
  border-top: 1px solid rgb(170 137 127 / 0.2);
}
.coach__capabilities li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgb(170 137 127 / 0.1);
  color: var(--mk-on-surface);
}
.coach__capabilities li + li {
  margin-top: 1rem;
}
.coach__capabilities .icon {
  color: var(--mk-primary);
}

.coach__achievements {
  padding-top: 1.5rem;
  border-top: 1px solid rgb(170 137 127 / 0.2);
}
.coach__achievements h3 {
  margin-bottom: 1rem;
  color: var(--mk-primary);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.chip {
  padding: 0.375rem 0.75rem;
  border: 1px solid rgb(170 137 127 / 0.3);
  background-color: var(--mk-surface-container);
  color: var(--mk-on-surface-variant);
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.chip--headline {
  border-color: rgb(255 181 156 / 0.4);
  background-color: rgb(255 181 156 / 0.05);
  color: var(--mk-primary);
}

/* ------------------------------------------------------------------ */
/* Programmes                                                          */
/* ------------------------------------------------------------------ */

.programs {
  position: relative;
  padding-block: var(--section-gap);
  background-color: var(--mk-surface-container-low);
}

.programs__line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: rgb(255 181 156 / 0.4);
}

.programs__head {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 4rem;
}
@media (min-width: 768px) {
  .programs__head {
    flex-direction: row;
    align-items: flex-end;
  }
}
.programs__intro {
  max-width: 28rem;
  color: var(--mk-on-surface-variant);
}

.programs__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 768px) {
  .programs__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .programs__grid > li:nth-child(2) {
    margin-top: 3rem;
  }
  .programs__grid > li:nth-child(3) {
    margin-top: 6rem;
  }
}

.program {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background-color: var(--mk-surface);
}
.program__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
  mix-blend-mode: luminosity;
  transition: transform 1.5s ease-out, opacity 1.5s ease-out;
}
.program:hover .program__image,
.program:focus-visible .program__image {
  transform: scale(1.1);
  opacity: 1;
  mix-blend-mode: normal;
}
.program__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--mk-background), rgb(19 19 19 / 0.5), transparent);
}
.program__body {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 10;
  width: 100%;
  padding: 2rem;
  transform: translateY(1rem);
  transition: transform 0.5s ease-out;
}
.program:hover .program__body,
.program:focus-visible .program__body {
  transform: translateY(0);
}
.program__tag {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.25rem 0.5rem;
  border: 1px solid;
  font-family: var(--font-label);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.program__tag--primary {
  border-color: rgb(255 181 156 / 0.3);
  background-color: rgb(255 181 156 / 0.2);
  color: var(--mk-primary);
}
.program__tag--error {
  border-color: rgb(255 180 171 / 0.3);
  background-color: rgb(255 180 171 / 0.2);
  color: var(--mk-error);
}
.program__tag--tertiary {
  border-color: rgb(198 198 199 / 0.3);
  background-color: rgb(198 198 199 / 0.2);
  color: var(--mk-tertiary);
}
.program__title {
  margin-bottom: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.875rem;
  line-height: 1.1;
  text-transform: uppercase;
}
.program__description {
  font-size: 14px;
  color: var(--mk-on-surface-variant);
  opacity: 0;
  transition: opacity 0.3s ease 0.1s;
}
.program:hover .program__description,
.program:focus-visible .program__description {
  opacity: 1;
}

/* ------------------------------------------------------------------ */
/* Footer                                                              */
/* ------------------------------------------------------------------ */

.site-footer {
  width: 100%;
  padding-block: var(--section-gap);
  border-top: 1px solid rgb(91 65 56 / 0.2);
  background-color: var(--mk-surface-container-lowest);
}
.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}
.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 768px) {
  .site-footer__links {
    justify-content: flex-start;
  }
}
.site-footer__links a,
.site-footer__links button {
  color: var(--mk-on-surface-variant);
  transition: color 0.2s ease;
}
.site-footer__links a:hover,
.site-footer__links button:hover {
  color: var(--mk-primary);
}
.site-footer__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
@media (min-width: 768px) {
  .site-footer__bottom {
    flex-direction: row;
  }
  .site-footer__bottom--end {
    justify-content: flex-end;
  }
}
.site-footer__copy {
  max-width: 20rem;
  text-align: center;
  color: var(--mk-on-surface-variant);
}
@media (min-width: 768px) {
  .site-footer__copy {
    text-align: right;
  }
}

/* ------------------------------------------------------------------ */
/* Legal documents                                                     */
/* ------------------------------------------------------------------ */

.legal-bar {
  border-bottom: 1px solid rgb(91 65 56 / 0.2);
  background-color: var(--mk-surface-container-lowest);
}
.legal-bar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
}

.legal-main {
  padding-block: 4rem;
}
@media (min-width: 768px) {
  .legal-main {
    padding-block: 6rem;
  }
}

.legal {
  width: 100%;
  max-width: 72ch;
  margin-inline: auto;
}
.legal__kicker {
  color: var(--mk-primary);
}
.legal__title {
  margin-top: 1rem;
}
.legal__lede {
  margin-top: 1.5rem;
  font-size: 18px;
  line-height: 1.6;
  color: var(--mk-on-surface-variant);
}
.legal__updated {
  margin-top: 1.5rem;
  color: var(--mk-on-surface-variant);
}
.legal__rule {
  margin-top: 2.5rem;
  width: 6rem;
  height: 2px;
  background-color: var(--mk-primary-container);
}

.legal-body section,
.legal-body > h2 {
  margin-top: 3.5rem;
}
.legal-body h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--mk-on-background);
}
@media (min-width: 768px) {
  .legal-body h2 {
    font-size: 1.875rem;
  }
}
.legal-body h2 + * {
  margin-top: 1.25rem;
}
.legal-body h3 {
  padding-top: 0.5rem;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mk-primary);
}
.legal-body p,
.legal-body ul,
.legal-body ol {
  line-height: 2;
  color: var(--mk-on-background);
}
.legal-body p + p,
.legal-body p + ul,
.legal-body p + ol,
.legal-body ul + p,
.legal-body ol + p,
.legal-body h3 + *,
.legal-body * + h3,
.legal-body .note + *,
.legal-body * + .note,
.legal-body .table-scroll + *,
.legal-body * + .table-scroll {
  margin-top: 1.25rem;
}
.legal-body ul,
.legal-body ol {
  padding-left: 1.25rem;
}
.legal-body ul {
  list-style: disc;
}
.legal-body ol {
  list-style: decimal;
}
.legal-body li + li {
  margin-top: 0.75rem;
}
.legal-body li::marker {
  color: var(--mk-primary-container);
}
.legal-body ol li::marker {
  font-weight: 700;
}
.legal-body strong {
  font-weight: 700;
  color: var(--mk-primary-container);
}
.legal-body a {
  color: var(--mk-primary);
  text-decoration: underline;
  text-underline-offset: 4px;
  word-break: break-all;
}
.legal-body a:hover {
  color: var(--mk-primary-container);
}

.note {
  padding: 1rem 1.25rem;
  border-left: 2px solid var(--mk-primary-container);
  background-color: var(--mk-surface-container-low);
  line-height: 2;
}

.table-scroll {
  overflow-x: auto;
}
.legal-table {
  width: 100%;
  min-width: 26rem;
  border-collapse: collapse;
  text-align: left;
}
.legal-table--wide {
  min-width: 32rem;
}
.legal-table th,
.legal-table td {
  padding: 0.75rem 1rem 0.75rem 0;
  vertical-align: top;
  border-bottom: 1px solid rgb(91 65 56 / 0.2);
  line-height: 1.6;
}
.legal-table thead th {
  border-bottom-color: rgb(91 65 56 / 0.4);
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mk-on-surface-variant);
}
.legal-table tbody th {
  font-weight: 400;
  color: var(--mk-on-surface-variant);
}
.legal-table td {
  color: var(--mk-on-background);
}

.legal-contact,
.legal-others {
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgb(91 65 56 / 0.3);
}
.legal-contact h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  text-transform: uppercase;
}
@media (min-width: 768px) {
  .legal-contact h2 {
    font-size: 1.875rem;
  }
}
.legal-contact p {
  margin-top: 1.25rem;
  line-height: 2;
}
.legal-contact dl {
  margin-top: 1.25rem;
}
.legal-contact dl > div + div {
  margin-top: 1rem;
}
.legal-contact dt {
  color: var(--mk-on-surface-variant);
}
.legal-contact dd {
  margin-top: 0.25rem;
  color: var(--mk-on-background);
}
.legal-contact dd .muted {
  display: block;
}
.legal-contact address {
  font-style: normal;
}
.legal-contact address span {
  display: block;
}
.legal-contact dd a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--mk-primary);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.legal-contact dd a:hover {
  color: var(--mk-primary-container);
}

.legal-others h2 {
  color: var(--mk-on-surface-variant);
}
.legal-others ul {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 640px) {
  .legal-others ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.legal-others a {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  height: 100%;
  padding: 1.25rem;
  border: 1px solid rgb(91 65 56 / 0.3);
  background-color: var(--mk-surface-container-low);
  transition: border-color 0.2s ease;
}
.legal-others a:hover {
  border-color: var(--mk-primary-container);
}
.legal-others__title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--mk-on-background);
}
.legal-others a:hover .legal-others__title {
  color: var(--mk-primary);
}
.legal-others__title .icon {
  color: var(--mk-primary-container);
}
.legal-others__summary {
  line-height: 1.6;
  color: var(--mk-on-surface-variant);
}

/* ------------------------------------------------------------------ */
/* Contact                                                             */
/* ------------------------------------------------------------------ */

.contact-main {
  padding-top: 6rem;
  padding-bottom: var(--section-gap);
}
.contact__header {
  max-width: 48rem;
  margin: 2rem 0 4rem;
}
.contact__intro {
  margin-top: 1.5rem;
  color: var(--mk-on-surface-variant);
}
.contact__grid {
  display: grid;
  gap: 4rem;
}
@media (min-width: 1024px) {
  .contact__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 6rem;
  }
}
.contact__column {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.contact__column > h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.contact-detail {
  padding-left: 1.25rem;
  border-left: 2px solid rgb(91 65 56 / 0.4);
}
.contact-detail__label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  color: var(--mk-primary);
}
.contact-detail__body {
  color: var(--mk-on-surface-variant);
}
.contact-detail__body p + p,
.contact-detail__hint {
  margin-top: 0.25rem;
  font-size: 14px;
}
.contact-detail strong {
  font-weight: 600;
  color: var(--mk-on-surface);
}
.hours {
  display: grid;
  gap: 0.25rem;
}
.hours > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0 1.5rem;
}
.hours dd {
  color: var(--mk-on-surface);
}

.notice {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid;
  font-size: 14px;
  line-height: 1.6;
}
.notice--error {
  border-color: rgb(255 180 171 / 0.4);
  background-color: rgb(255 180 171 / 0.1);
  color: var(--mk-error);
}
.notice--success {
  border-color: rgb(255 181 156 / 0.4);
  background-color: rgb(255 181 156 / 0.1);
  color: var(--mk-primary);
}
.notice .icon {
  margin-top: 0.125rem;
}

.form {
  display: grid;
  gap: 1.5rem;
}
.form__row {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .form__row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.field {
  display: grid;
  gap: 0.5rem;
}
.field label {
  color: var(--mk-on-surface-variant);
}
.field input,
.field textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid rgb(170 137 127 / 0.4);
  border-radius: var(--radius);
  background-color: var(--mk-surface-container-low);
  color: var(--mk-on-surface);
  font: inherit;
  line-height: 1.5;
  transition: border-color 0.2s ease;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--mk-primary);
}
.field textarea {
  min-height: 10rem;
  resize: vertical;
}
.field__error {
  font-size: 14px;
  color: var(--mk-error);
}
.form__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form__consent {
  font-size: 14px;
  line-height: 1.6;
  color: var(--mk-on-surface-variant);
}
.form__consent a {
  color: var(--mk-primary);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.form__submit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

/* Contact Form 7, dressed in the theme's form styles. */
.wpcf7-form-control-wrap {
  display: block;
}
.field .wpcf7-not-valid {
  border-color: var(--mk-error);
}
.wpcf7-not-valid-tip {
  display: block;
  margin-top: 0.5rem;
  font-size: 14px;
  color: var(--mk-error);
}
.wpcf7 .wpcf7-spinner {
  margin: 0;
}
.wpcf7 form .wpcf7-response-output {
  margin: 0;
  padding: 0.75rem 1rem;
  border: 1px solid rgb(255 180 171 / 0.4);
  background-color: rgb(255 180 171 / 0.1);
  color: var(--mk-error);
  font-size: 14px;
  line-height: 1.6;
}
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.payment-required .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output {
  border-color: rgb(255 180 171 / 0.4);
}
.wpcf7 form.sent .wpcf7-response-output {
  border-color: rgb(255 181 156 / 0.4);
  background-color: rgb(255 181 156 / 0.1);
  color: var(--mk-primary);
}

/* ------------------------------------------------------------------ */
/* Consent banner                                                      */
/* ------------------------------------------------------------------ */

.consent {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 60;
  padding: 1.25rem var(--gutter);
  border-top: 1px solid rgb(91 65 56 / 0.4);
  background-color: var(--mk-surface-container-lowest);
  box-shadow: 0 -10px 25px rgb(0 0 0 / 0.4);
}
@media (min-width: 768px) {
  .consent {
    padding-inline: var(--margin-desktop);
  }
}
.consent__inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
@media (min-width: 768px) {
  .consent__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
.consent__text {
  max-width: 48rem;
  font-size: 14px;
  line-height: 1.6;
  color: var(--mk-on-surface-variant);
}
.consent__text a {
  color: var(--mk-primary);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.consent__actions {
  display: flex;
  gap: 0.75rem;
}
/* The two answers are the same size, weight and colour on purpose: neither
   is the "default" and the privacy policy says so. */
.consent__actions .btn {
  flex: 1 1 0;
  padding: 0.75rem 1.25rem;
  border: 1px solid var(--mk-outline);
  color: var(--mk-on-surface);
}
.consent__actions .btn:hover {
  border-color: var(--mk-primary);
  color: var(--mk-primary);
}

/* ------------------------------------------------------------------ */
/* Generic page (index / 404)                                          */
/* ------------------------------------------------------------------ */

.plain-main {
  padding-top: 8rem;
  padding-bottom: var(--section-gap);
}
.plain {
  max-width: 72ch;
  margin-inline: auto;
}
.plain h1 {
  margin-bottom: 1.5rem;
}
.plain .entry-content p + p {
  margin-top: 1.25rem;
}
.plain .entry-content a {
  color: var(--mk-primary);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ------------------------------------------------------------------ */
/* Motion                                                              */
/* ------------------------------------------------------------------ */

@media (prefers-reduced-motion: no-preference) {
  @keyframes mk-slide-in-left {
    from { transform: translateX(-100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
  }
  @keyframes mk-scale-bounce {
    0% { transform: scale(0.8); opacity: 0; }
    60% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
  }
  @keyframes mk-expand-center {
    from { transform: scaleX(0); opacity: 0; }
    to { transform: scaleX(1); opacity: 1; }
  }
  @keyframes mk-ken-burns {
    0% { transform: scale(1) translate(0, 0); }
    50% { transform: scale(1.15) translate(-1%, -1%); }
    100% { transform: scale(1) translate(0, 0); }
  }
  @keyframes mk-shimmer {
    100% { left: 200%; }
  }
  @keyframes mk-draw-line {
    from { transform: scaleX(0); opacity: 0; }
    to { transform: scaleX(1); opacity: 1; }
  }

  .hero__line-1 {
    animation: mk-slide-in-left 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  }
  .hero__line-2 {
    animation: mk-expand-center 0.6s cubic-bezier(0.25, 1, 0.5, 1) 0.4s forwards;
    transform-origin: center;
    opacity: 0;
  }
  .hero__line-2 > span {
    animation: mk-scale-bounce 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s forwards;
    opacity: 0;
  }
  .hero__zoom {
    animation: mk-ken-burns 40s ease-in-out infinite;
    transform-origin: center;
  }
  .programs__line {
    transform-origin: left;
    animation: mk-draw-line 1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  }

  /* Scroll reveal. Hidden here, inside the media query, so a reduced-motion
     visitor or a page without JavaScript sees everything from the first paint. */
  .reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  }
  .reveal.is-revealed {
    opacity: 1;
    transform: translateY(0);
  }

  .btn--primary::after {
    content: "";
    position: absolute;
    inset-block: 0;
    left: -100%;
    width: 50%;
    background: linear-gradient(to right, transparent, rgb(255 255 255 / 0.4), transparent);
    transform: skewX(-20deg);
    pointer-events: none;
  }
  .btn--primary:hover::after,
  .btn--primary:focus-visible::after {
    animation: mk-shimmer 0.6s ease-in-out;
  }

  .btn--outline::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 0%;
    background-color: var(--mk-primary-container);
    transition: width 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: -1;
  }
  .btn--outline:hover::before,
  .btn--outline:focus-visible::before {
    width: 100%;
  }
  .btn--outline:hover,
  .btn--outline:focus-visible {
    color: var(--mk-on-primary-container);
    border-color: var(--mk-primary-container);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
}

/* ------------------------------------------------------------------ */
/* Admin bar                                                           */
/* ------------------------------------------------------------------ */

.admin-bar .site-nav {
  top: 32px;
}
@media screen and (max-width: 782px) {
  .admin-bar .site-nav {
    top: 46px;
  }
}
