/* Fonts: self-hosted, no third-party requests */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("fonts/atkinson-next.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0D1210;
  --surface: #141C18;
  --footer: #080C0A;
  --text: #F4EFE6;
  --text-soft: #B8B4AA;
  --line: rgba(244, 239, 230, 0.16);
  --accent: #F1B434;
  --accent-hover: #F6C75E;
  --on-accent: #0D1210;
  --green: #25694C;
  --green-deep: #174735;
  --green-bright: #4FAE86;

  --font-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "Atkinson Hyperlegible Next", "Segoe UI", system-ui, sans-serif;

  --radius: 1.25rem;
  --radius-s: 0.75rem;
  --gutter: clamp(1.25rem, 5vw, 2rem);
  --maxw: 70rem;
  --section-space: clamp(3.5rem, 8vw, 6rem);

  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.nowrap { white-space: nowrap; }

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: var(--radius-s);
}
.skip-link:focus { top: 1rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.75rem 1.5rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font: 700 1.0625rem/1.2 var(--font-body);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn--primary,
.btn--sun { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover,
.btn--sun:hover { background: var(--accent-hover); }
.btn--ghost { border-color: var(--text); color: var(--text); background: transparent; }
.btn--ghost:hover { background: var(--text); color: var(--bg); }
.btn--small { min-height: 2.75rem; padding: 0.5rem 1.15rem; font-size: 1rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 0.6rem var(--gutter);
}
.wordmark { display: flex; flex-direction: column; text-decoration: none; line-height: 1.15; }
.wordmark__name { font: 800 1.35rem/1.1 var(--font-display); letter-spacing: -0.02em; }
.wordmark__role { display: none; font-size: 0.875rem; color: var(--text-soft); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.75rem;
  padding: 0 1rem;
  border: 2px solid var(--text);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font: 700 1rem/1 var(--font-body);
  cursor: pointer;
}
.nav-toggle__bars,
.nav-toggle__bars::before {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: currentColor;
  content: "";
}
.nav-toggle__bars { position: relative; margin-top: -0.35rem; }
.nav-toggle__bars::before { position: absolute; top: 0.4rem; left: 0; }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.25rem;
}
.site-nav a:not(.btn) {
  padding: 0.5rem 0.1rem;
  font-weight: 700;
  text-decoration: none;
}
.site-nav a:not(.btn):hover { text-decoration: underline; text-underline-offset: 0.3em; }

@media (max-width: 52rem) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 0 1rem;
  }
  .js .site-nav.is-open { display: flex; }
  .js .site-nav a:not(.btn) { padding: 0.9rem 0; border-bottom: 1px solid var(--line); font-size: 1.125rem; }
  .js .site-nav .btn { margin-top: 1rem; }
}
@media (min-width: 40rem) {
  .wordmark__role { display: block; }
}

/* Sections */
.section { padding-block: var(--section-space); }
.section--raised { background: var(--surface); }
.section--green { background: var(--green-deep); }
.section--tight-top { padding-top: 0; }

.section__title { font-size: clamp(1.875rem, 4.2vw, 3rem); max-width: 22ch; }
.section__lead {
  max-width: 40rem;
  margin-top: 1rem;
  font-size: 1.25rem;
  color: var(--text-soft);
}

/* Hero */
.hero { padding-block: clamp(2.5rem, 7vw, 5rem) clamp(0.5rem, 2vw, 1.5rem); }
.hero__title {
  max-width: 17ch;
  font-size: clamp(2.5rem, 7.2vw, 5.25rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.03em;
  overflow-wrap: break-word;
}
.hero__lead {
  max-width: 38rem;
  margin-top: 1.5rem;
  font-size: 1.25rem;
  color: var(--text-soft);
  text-wrap: balance;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* Open places: two flat circles, the one bold shape on the page.
   Everything inside is sized in cqi so the composition scales as one piece. */
.spots {
  container-type: inline-size;
  position: relative;
  width: min(100%, 24rem);
  aspect-ratio: 1;
  margin-top: clamp(2.5rem, 6vw, 4rem);
}
@media (min-width: 40rem) {
  .spots { margin-left: auto; }
}
.spots__sun {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 88%;
  aspect-ratio: 1;
  padding: 10cqi 10cqi 20cqi 14cqi;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  text-align: center;
}
.spots__title {
  max-width: none;
  font-size: 9.6cqi;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.spots__text {
  margin: 3cqi 0 0;
  font-size: 4.6cqi;
  font-weight: 700;
  line-height: 1.3;
}
.spots__free {
  position: absolute;
  left: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 37%;
  aspect-ratio: 1;
  margin: 0;
  padding: 4cqi;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 1.6cqi var(--bg);
  color: var(--text);
  font-size: 4.6cqi;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

/* Wide screens: headline on the left, circles on the right */
@media (min-width: 64rem) {
  .hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 4rem;
    align-items: center;
  }
  .hero__title { max-width: none; font-size: clamp(3rem, 4.6vw, 4.5rem); }
  .hero .spots { width: min(100%, 28rem); margin-top: 0; justify-self: end; }
}

/* Voor wie */
.who {
  display: grid;
  gap: 2rem 3rem;
  margin-top: 2.5rem;
}
.who__item { padding-top: 1.25rem; border-top: 1px solid var(--line); }
.who__item h3 { font-size: 1.5rem; }
.who__item p { margin: 0.5rem 0 0; color: var(--text-soft); }
@media (min-width: 44rem) {
  .who { grid-template-columns: 1fr 1fr; }
}

/* Aanbod */
.gets {
  display: grid;
  gap: 0.6rem;
  max-width: 40rem;
  margin-top: 1.75rem;
}
.gets li {
  position: relative;
  padding-left: 2rem;
  font-weight: 700;
}
.gets li::before {
  position: absolute;
  left: 0.15rem;
  top: 0.45em;
  width: 0.55rem;
  height: 0.95rem;
  border: solid var(--green-bright);
  border-width: 0 3px 3px 0;
  transform: rotate(40deg);
  content: "";
}

.tiers {
  display: grid;
  gap: 1rem;
  margin-top: 2.5rem;
}
.tier {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1.5rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.tier__name { font-size: 1.375rem; }
.tier__dots { display: flex; gap: 0.4rem; }
.tier__dots i {
  display: block;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: var(--green-bright);
}
.tier__price { margin: 0; }
.tier__amount {
  display: block;
  font: 800 clamp(2.5rem, 5vw, 3.25rem)/1 var(--font-display);
  letter-spacing: -0.03em;
}
.tier__per { font-size: 1rem; color: var(--text-soft); }
.tier .btn { margin-top: auto; }
@media (min-width: 52rem) {
  .tiers { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
}

.intake {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
  margin-top: 2.5rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.intake h3 { font-size: 1.5rem; }
.intake p { margin: 0.4rem 0 0; max-width: 34rem; color: var(--text-soft); }
@media (min-width: 52rem) {
  .intake { flex-direction: row; align-items: center; justify-content: space-between; gap: 2rem; }
  .intake .btn { flex-shrink: 0; }
}

/* Werkwijze */
.steps {
  display: grid;
  gap: 2rem 1.5rem;
  margin-top: 2.5rem;
  counter-reset: step;
}
.step { padding-top: 1rem; border-top: 1px solid var(--line); counter-increment: step; }
.step::before {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--green-bright);
  font: 800 2.75rem/1 var(--font-display);
  content: counter(step);
}
.step h3 { font-size: 1.3125rem; }
.step p { margin: 0.5rem 0 0; color: var(--text-soft); }
@media (min-width: 40rem) {
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 64rem) {
  .steps { grid-template-columns: repeat(4, 1fr); }
}

/* Over Sven */
.about { display: grid; gap: 2.5rem; align-items: start; }
.about__text { max-width: 40rem; }
.about__text .section__title { margin-bottom: 1.5rem; }
.about__text p { color: var(--text-soft); }
.about__text .about__lead {
  font: 600 clamp(1.5rem, 3vw, 2rem)/1.25 var(--font-display);
  letter-spacing: -0.015em;
  color: var(--text);
}
.creds {
  padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.creds h3 { font-size: 1.375rem; }
.creds ul { display: grid; gap: 1.1rem; margin-top: 1.25rem; }
.creds li { display: flex; flex-direction: column; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.creds li:first-child { padding-top: 0; border-top: 0; }
.creds span { font-size: 1rem; color: var(--text-soft); }
@media (min-width: 52rem) {
  .about { grid-template-columns: 1.4fr 1fr; gap: 4rem; }
}

/* HYROX */
.hyrox .section__title { max-width: none; }
.hyrox__stats {
  max-width: 34ch;
  margin: 1.5rem 0 0;
  font: 600 clamp(1.5rem, 3.6vw, 2.25rem)/1.25 var(--font-display);
  letter-spacing: -0.015em;
}
.hyrox__stats strong { color: var(--accent); font-weight: 800; }

.race {
  display: flex;
  gap: 0.3rem;
  max-width: 44rem;
  margin: 2rem 0 0.9rem;
}
.race__lap { display: flex; flex: 1; align-items: center; gap: 0.2rem; }
.race__run { flex: 1; height: 0.5rem; border-radius: 999px; background: rgba(244, 239, 230, 0.35); }
.race__station { flex: none; width: 0.8rem; height: 1.6rem; border-radius: 0.25rem; background: var(--accent); }
.hyrox__caption { max-width: 38rem; color: rgba(244, 239, 230, 0.85); font-size: 1rem; }
.hyrox p:not(.hyrox__stats):not(.hyrox__caption) { max-width: 38rem; margin-top: 1.75rem; }
.hyrox .btn { margin-top: 0.5rem; }

/* Ervaring */
.quote { max-width: 46rem; margin: 2rem 0 0; padding-left: clamp(1.25rem, 3vw, 2rem); border-left: 4px solid var(--green-bright); }
.quote blockquote { margin: 0; }
.quote p {
  font: 500 clamp(1.3rem, 2.5vw, 1.75rem)/1.4 var(--font-display);
  letter-spacing: -0.01em;
}
.quote figcaption { margin-top: 1rem; font-weight: 700; color: var(--text-soft); }

/* Contact */
.contact { display: grid; gap: 2.5rem; align-items: start; }
.contact__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.details { display: grid; gap: 1.25rem; margin: 0; }
.details > div { padding-top: 1rem; border-top: 1px solid var(--line); }
.details dt { font-size: 1rem; color: var(--text-soft); }
.details dd { margin: 0.2rem 0 0; font: 700 1.25rem/1.4 var(--font-display); }
.details a { text-underline-offset: 0.25em; }
@media (min-width: 52rem) {
  .contact { grid-template-columns: 1.2fr 1fr; gap: 4rem; }
}

/* Footer */
.site-footer { padding-block: 1.75rem; background: var(--footer); color: var(--text-soft); font-size: 1rem; border-top: 1px solid var(--line); }
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem; }
.site-footer p { margin: 0; }

/* One entrance on load: the sun rises, the green circle follows */
@media (prefers-reduced-motion: no-preference) {
  .spots__sun { animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; }
  .spots__free { animation: rise 0.6s 0.35s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(1.5rem) scale(0.92); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
