:root {
    --ink: #0A1628;
    --panel: #12233D;
    --panel-2: #172C4D;
    --paper: #F4F7FB;
    --paper-dim: #B9C4D6;
    --blue: #3B82FF;
    --blue-soft: #5B9BFF;
    --sun: #FF5B36;
    --danger: #FF5B36;
    --mute: #7F8FA8;
    --hair: rgba(244,247,251,0.14);
    --shadow: rgba(0,0,0,0.35);

    --font-display: "Anton", "Arial Narrow", sans-serif;
    --font-body: "Questrial", sans-serif;
  }

  @media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) {
      --ink: #0C1A2E;
      --panel: #14263F;
      --panel-2: #1A2F4E;
    }
  }

  * { box-sizing: border-box; }
  html {
    scroll-behavior: smooth;
    scroll-padding-top: env(safe-area-inset-top, 0px);
  }
  html, body { height: 100%; }
  body {
    margin: 0;
    background: var(--ink);
    color: var(--paper);
    font-family: var(--font-body);
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }
  img, svg { max-width: 100%; display: block; }

  a { color: inherit; text-decoration: none; }
  .wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 48px);
  }

  /* ---------- focus ---------- */
  a:focus-visible, button:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 3px;
  }

  @media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  }

  /* ---------- nav ---------- */
  header.site {
    position: sticky;
    top: env(safe-area-inset-top, 0px);
    z-index: 50;
    background: rgba(10,22,40,0.82);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--hair);
  }
  .nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px clamp(20px, 5vw, 48px);
    max-width: 1180px;
    margin: 0 auto;
  }
  .logo {
    font-family: var(--font-display);
    font-size: 26px;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .logo .dot { width: 9px; height: 9px; background: var(--blue); border-radius: 50%; display: inline-block; }
  nav.links { display: flex; gap: 34px; font-size: 15px; font-weight: 500; color: var(--paper-dim); }
  nav.links a { transition: color 0.15s ease; }
  nav.links a:hover { color: var(--paper); }
  .nav-cta {
    display: inline-block;
    background: var(--paper);
    color: var(--ink);
    font-weight: 700;
    font-size: 14px;
    padding: 11px 22px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
  }
  .nav-cta:hover { background: var(--blue); transform: translateY(-1px); }
  .menu-toggle { display: none; background: none; border: none; color: var(--paper); font-size: 26px; cursor: pointer; }

  @media (max-width: 760px) {
    nav.links { display: none; }
    .menu-toggle { display: block; }
  }

  /* ---------- hero ---------- */
  .hero {
    position: relative;
    padding: clamp(56px, 10vw, 108px) 0 clamp(64px, 8vw, 96px);
    overflow: hidden;
    border-bottom: 1px solid var(--hair);
    background:
      radial-gradient(120% 90% at 20% 0%, rgba(59,130,255,0.08), transparent 60%),
      linear-gradient(180deg, var(--panel-2) 0%, var(--ink) 55%);
  }
  .hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
    align-items: center;
  }
  @media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; }
  }
  .eyebrow {
    font-size: 14px;
    color: var(--blue-soft);
    font-weight: 600;
    margin: 0 0 18px;
  }
  h1.display {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(52px, 8.4vw, 104px);
    line-height: 0.94;
    letter-spacing: 0.5px;
    margin: 0 0 26px;
    text-transform: uppercase;
  }
  h1.display span.outline {
    -webkit-text-stroke: 2px var(--paper);
    color: transparent;
  }
  .hero p.lede {
    font-size: clamp(17px, 1.6vw, 19px);
    color: var(--paper-dim);
    max-width: 46ch;
    line-height: 1.6;
    margin: 0 0 34px;
  }
  .hero-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
  .btn-primary {
    background: var(--blue);
    color: var(--ink);
    font-weight: 800;
    font-size: 15px;
    padding: 16px 30px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 0 0 rgba(59,130,255,0);
  }
  .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 26px -8px rgba(59,130,255,0.55); }
  .btn-ghost {
    font-weight: 600;
    font-size: 15px;
    color: var(--paper);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 4px;
    border-bottom: 1px solid var(--hair);
  }
  .btn-ghost .ring {
    width: 34px; height: 34px; border-radius: 50%;
    border: 1px solid var(--hair);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
  }

  /* hero visual: kinetic burst, no stock photo */
  .hero-visual { position: relative; width: 100%; aspect-ratio: 4/5; max-width: 420px; margin: 0 auto; }
  .burst-ring {
    position: absolute; inset: 0;
    border-radius: 50%;
    border: 1px solid var(--hair);
  }
  .burst-ring.r2 { inset: 34px; border-color: rgba(59,130,255,0.25); }
  .burst-ring.r3 { inset: 68px; border-style: dashed; border-color: rgba(244,247,251,0.18); }
  .burst-core {
    position: absolute; inset: 88px;
    border-radius: 50%;
    background: radial-gradient(circle at 32% 28%, var(--blue), #1D4FB8 55%, #06101F 100%);
    box-shadow: 0 30px 60px -20px rgba(59,130,255,0.35);
  }
  .speed-line {
    position: absolute;
    height: 3px;
    background: var(--sun);
    border-radius: 3px;
    opacity: 0.85;
  }
  .stat-chip {
    position: absolute;
    background: var(--panel);
    border: 1px solid var(--hair);
    border-radius: 14px;
    padding: 12px 16px;
    font-size: 13px;
    box-shadow: 0 20px 40px -20px var(--shadow);
  }
  .stat-chip strong { display: block; font-family: var(--font-display); font-size: 22px; font-weight: 400; letter-spacing: 0.3px; }
  .stat-chip.a { top: -6px; right: -10px; }
  .stat-chip.b { bottom: 6px; left: -18px; }

  @media (max-width: 900px) {
    .hero-visual { margin-top: 10px; }
  }

  /* ---------- brand strip ---------- */
  .brand-strip {
    border-bottom: 1px solid var(--hair);
    padding: 22px 0;
  }
  .brand-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
  }
  .brand-row > span {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: var(--mute);
    white-space: nowrap;
  }
  .brand-logos { display: flex; align-items: center; gap: 30px; opacity: 0.9; }
  @media (max-width: 700px) {
    .brand-row { justify-content: center; text-align: center; }
    .brand-logos { justify-content: center; flex-wrap: wrap; row-gap: 10px; }
  }

  /* ---------- ticker ---------- */
  .ticker {
    border-bottom: 1px solid var(--hair);
    background: var(--panel);
    overflow: hidden;
    white-space: nowrap;
  }
  .ticker-track {
    display: inline-flex;
    align-items: center;
    animation: scroll 26s linear infinite;
    padding: 16px 0;
  }
  .ticker-track span {
    font-family: var(--font-display);
    font-size: 20px;
    letter-spacing: 0.5px;
    color: var(--paper-dim);
    padding: 0 28px;
    display: inline-flex;
    align-items: center;
    gap: 28px;
  }
  .ticker-track span::after { content: "•"; color: var(--sun); }
  @keyframes scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
  }

  /* ---------- section shell ---------- */
  section { padding: clamp(48px, 6.5vw, 80px) 0; }
  .section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 52px;
    border-bottom: 1px solid var(--hair);
    padding-bottom: 28px;
  }
  h2.display {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(34px, 4.6vw, 56px);
    letter-spacing: 0.3px;
    margin: 0;
    text-transform: uppercase;
    line-height: 1;
  }
  .section-head p { color: var(--paper-dim); max-width: 34ch; margin: 0; font-size: 15px; line-height: 1.6; }

  /* ---------- coaches ---------- */
  .coach-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }
  @media (max-width: 820px) { .coach-row { grid-template-columns: 1fr; } }
  .coach {
    background: var(--panel);
    border: 1px solid var(--hair);
    border-radius: 18px;
    padding: 26px;
  }
  .coach-avatar {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 12px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(155deg, var(--panel-2), var(--ink));
  }
  .coach-avatar svg { position: absolute; inset: 0; width: 100%; height: 100%; }
  .coach h4 { font-family: var(--font-display); font-weight: 400; font-size: 19px; text-transform: uppercase; margin: 0 0 4px; letter-spacing: 0.3px; }
  .coach span.role { color: var(--blue-soft); font-size: 13px; font-weight: 600; }
  .coach p { color: var(--paper-dim); font-size: 14px; line-height: 1.6; margin: 12px 0 0; }

  /* ---------- cta band ---------- */
  .cta-band {
    background: var(--blue);
    color: var(--ink);
    border-radius: 26px;
    padding: clamp(44px, 6vw, 72px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
  }
  .cta-band h2 {
    font-family: var(--font-display);
    font-weight: 400;
    text-transform: uppercase;
    font-size: clamp(30px, 4.4vw, 48px);
    margin: 0;
    max-width: 14ch;
    line-height: 1;
  }
  .cta-band .btn-dark {
    display: inline-block;
    background: var(--ink);
    color: var(--paper);
    font-weight: 700;
    font-size: 15px;
    padding: 16px 30px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.15s ease;
  }
  .cta-band .btn-dark:hover { transform: translateY(-2px); }

  /* ---------- footer ---------- */
  footer.site {
    border-top: 1px solid var(--hair);
    padding: 48px 0 calc(40px + env(safe-area-inset-bottom, 0px));
  }
  .foot-row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
    font-size: 14px;
    color: var(--mute);
  }
  .foot-links { display: flex; gap: 26px; }
  .foot-links a:hover { color: var(--paper); }

/* ---------- placeholder imagery ---------- */
.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.coach-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 52px;
  align-items: start;
}
.gallery figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--hair);
  background: var(--panel);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.gallery figure:nth-child(2),
.gallery figure:nth-child(3) { margin-top: 28px; }
.gallery img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
  filter: saturate(0.78) contrast(1.06);
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.4s ease;
}
.gallery figure:nth-child(2) img,
.gallery figure:nth-child(3) img { aspect-ratio: 3/4.6; }

/* permanent: blue tint at the top, dark fade at the bottom */
.gallery figure::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(59,130,255,0.14) 0%, rgba(10,22,40,0) 42%, rgba(10,22,40,0.7) 100%);
  transition: opacity 0.4s ease;
}
/* permanent: corner brackets (blue top-left, yellow bottom-right) */
.gallery figure::after {
  content: "";
  position: absolute;
  inset: 12px;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(var(--blue), var(--blue)) top left / 24px 2px no-repeat,
    linear-gradient(var(--blue), var(--blue)) top left / 2px 24px no-repeat,
    linear-gradient(var(--sun), var(--sun)) bottom right / 24px 2px no-repeat,
    linear-gradient(var(--sun), var(--sun)) bottom right / 2px 24px no-repeat;
  transition: inset 0.35s ease, background-size 0.35s ease;
}
/* hover: lift, glow, zoom, full color, brackets open up */
.gallery figure:hover {
  transform: translateY(-6px);
  border-color: rgba(59,130,255,0.6);
  box-shadow: 0 26px 44px -20px rgba(59,130,255,0.5);
}
.gallery figure:hover img { transform: scale(1.07); filter: saturate(1.08) contrast(1.02); }
.gallery figure:hover::before { opacity: 0.55; }
.gallery figure:hover::after {
  inset: 18px;
  background-size: 40px 2px, 2px 40px, 40px 2px, 2px 40px;
}
@media (max-width: 820px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery figure:nth-child(2),
  .gallery figure:nth-child(3) { margin-top: 0; }
}
/* ---------- credentials strip ---------- */
.credentials-strip {
  border-bottom: 1px solid var(--hair);
  padding: 28px 0;
  background: var(--panel);
}
.credentials-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.credential strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  color: var(--blue-soft);
  letter-spacing: 0.3px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.credential span {
  display: block;
  font-size: 12.5px;
  color: var(--paper-dim);
  line-height: 1.5;
}
@media (max-width: 820px) {
  .credentials-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .credentials-row { grid-template-columns: 1fr; }
}

/* ---------- at-a-glance grid ---------- */
.glance-card {
  background: var(--panel);
  border: 1px solid var(--hair);
  border-radius: 16px;
  padding: 26px;
}
.glance-kicker {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  color: var(--blue-soft);
  font-size: 14px;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}
.glance-card h4 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: 19px;
  letter-spacing: 0.3px;
  margin: 0 0 8px;
}
.glance-card p {
  color: var(--paper-dim);
  font-size: 13.5px;
  line-height: 1.6;
  margin: 0;
}

/* ---------- services (train with Joel) ---------- */
.service-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 820px) {
  .service-row { grid-template-columns: 1fr; }
}
.service {
  background: var(--panel);
  border: 1px solid var(--hair);
  border-radius: 18px;
  padding: 26px;
}
.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(155deg, var(--panel-2), var(--ink));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.service-icon svg { width: 26px; height: 26px; }
.service h4 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 19px;
  text-transform: uppercase;
  margin: 0 0 4px;
  letter-spacing: 0.3px;
}
.service span.role {
  color: var(--blue-soft);
  font-size: 13px;
  font-weight: 600;
}
.service p {
  color: var(--paper-dim);
  font-size: 14px;
  line-height: 1.6;
  margin: 12px 0 0;
}

/* ---------- booking / contact page shell ---------- */
.book-hero {
  padding: clamp(48px, 8vw, 84px) 0 clamp(64px, 8vw, 96px);
  background:
    radial-gradient(120% 90% at 20% 0%, rgba(59,130,255,0.08), transparent 60%),
    linear-gradient(180deg, var(--panel-2) 0%, var(--ink) 55%);
  border-bottom: 1px solid var(--hair);
}
.book-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 56px);
  align-items: start;
}
@media (max-width: 900px) {
  .book-grid { grid-template-columns: 1fr; }
}
.credentials-line {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-soft);
  letter-spacing: 0.2px;
  margin: -8px 0 26px;
}
.book-photo {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--hair);
  margin-bottom: 26px;
}
.book-photo img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}

.info-list {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  border-top: 1px solid var(--hair);
}
.info-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--hair);
  font-size: 14px;
  color: var(--paper-dim);
}
.info-list li strong {
  color: var(--paper);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.info-list.contact-details li a,
.info-list.contact-details li span {
  color: var(--paper-dim);
}
.info-list.contact-details li a:hover { color: var(--blue-soft); }

.direct-contact {
  background: var(--panel);
  border: 1px solid var(--hair);
  border-radius: 16px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.direct-contact-label {
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--mute);
  margin: 0 0 6px;
}
.direct-contact a {
  font-weight: 600;
  font-size: 15px;
  color: var(--paper);
  transition: color 0.15s ease;
}
.direct-contact a:hover { color: var(--blue-soft); }

.note-small {
  font-size: 12.5px;
  color: var(--mute);
  line-height: 1.6;
  margin-top: -8px;
}

/* ---------- form ---------- */
.book-form {
  background: var(--panel);
  border: 1px solid var(--hair);
  border-radius: 20px;
  padding: clamp(26px, 4vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--paper-dim);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--ink);
  border: 1px solid var(--hair);
  border-radius: 10px;
  padding: 13px 14px;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 14.5px;
  transition: border-color 0.15s ease;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--mute); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue-soft);
}
.field textarea { min-height: 120px; resize: vertical; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'><path d='M1 1l6 6 6-6' stroke='%237F8FA8' stroke-width='2' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.form-submit {
  background: var(--blue);
  color: var(--ink);
  font-weight: 800;
  font-size: 15px;
  padding: 16px 30px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px -8px rgba(59,130,255,0.55);
}

.confirm-msg {
  background: rgba(59,130,255,0.12);
  border: 1px solid var(--blue);
  color: var(--paper);
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
}
.error-msg {
  background: rgba(255,91,54,0.12);
  border: 1px solid var(--danger);
  color: var(--paper);
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
}
.error-msg ul { margin: 8px 0 0 18px; padding: 0; }

/* ---------- hero stretching animation ---------- */
.stretch-stage {
  position: absolute;
  inset: 0;
  border-radius: 32px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 26px 0 16px;
  background:
    radial-gradient(120% 100% at 30% 12%, rgba(59,130,255,0.16), transparent 62%),
    linear-gradient(165deg, var(--panel-2) 0%, var(--ink) 72%);
  border: 1px solid var(--hair);
  box-shadow: 0 30px 60px -20px rgba(59,130,255,0.28);
}
.stretch-stage::before {
  content: "";
  position: absolute;
  width: 66%;
  aspect-ratio: 1/1;
  border-radius: 50%;
  border: 1px solid rgba(59,130,255,0.25);
  animation: ringPulse 4.4s ease-in-out infinite;
}
.stretch-figure {
  position: relative;
  width: 58%;
  height: auto;
  overflow: visible;
}

.fig-torso, .fig-head { fill: var(--blue); }
.fig-limb { fill: var(--paper); }
.fig-shadow { fill: #000; opacity: 0.32; animation: shadowPulse 4.4s ease-in-out infinite; }

.figure-bob { animation: figureBob 4.4s ease-in-out infinite; }

.rot-hip {
  transform: translate(120px,225px) rotate(0deg);
  animation: hipBend 9s ease-in-out infinite;
}
.rot-head {
  transform: translate(0px,-100px) rotate(0deg);
  animation: headTilt 9s ease-in-out infinite;
}
.rot-shoulder-left {
  transform: translate(-17px,-95px) rotate(6deg);
  animation: shoulderLeft 9s ease-in-out infinite;
}
.rot-shoulder-right {
  transform: translate(17px,-95px) rotate(-6deg);
  animation: shoulderRight 9s ease-in-out infinite;
}
.rot-elbow-left {
  transform: translate(0px,55px) rotate(6deg);
  animation: elbowLeft 9s ease-in-out infinite;
}
.rot-elbow-right {
  transform: translate(0px,55px) rotate(6deg);
  animation: elbowRight 9s ease-in-out infinite;
}
.rot-knee-left {
  transform: translate(0px,70px) rotate(0deg);
  animation: kneeLeft 9s ease-in-out infinite;
}
.rot-knee-right {
  transform: translate(0px,70px) rotate(0deg);
  animation: kneeRight 9s ease-in-out infinite;
}

@keyframes figureBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes shadowPulse {
  0%, 100% { opacity: 0.32; }
  50% { opacity: 0.18; }
}
@keyframes ringPulse {
  0%, 100% { transform: scale(0.9); opacity: 0.5; }
  50% { transform: scale(1.06); opacity: 0.12; }
}

/* torso hinge: reach overhead -> bend right -> forward fold -> bend left -> reset */
@keyframes hipBend {
  0%, 100% { transform: translate(120px,225px) rotate(0deg); }
  20%      { transform: translate(120px,225px) rotate(-6deg); }
  40%      { transform: translate(120px,225px) rotate(20deg); }
  60%      { transform: translate(120px,225px) rotate(78deg); }
  80%      { transform: translate(120px,225px) rotate(-20deg); }
}
@keyframes headTilt {
  0%, 100% { transform: translate(0px,-100px) rotate(0deg); }
  20%      { transform: translate(0px,-100px) rotate(-8deg); }
  40%      { transform: translate(0px,-100px) rotate(10deg); }
  60%      { transform: translate(0px,-100px) rotate(22deg); }
  80%      { transform: translate(0px,-100px) rotate(-10deg); }
}
@keyframes shoulderLeft {
  0%, 100% { transform: translate(-17px,-95px) rotate(6deg); }
  20%      { transform: translate(-17px,-95px) rotate(-175deg); }
  40%      { transform: translate(-17px,-95px) rotate(-160deg); }
  60%      { transform: translate(-17px,-95px) rotate(15deg); }
  80%      { transform: translate(-17px,-95px) rotate(-20deg); }
}
@keyframes shoulderRight {
  0%, 100% { transform: translate(17px,-95px) rotate(-6deg); }
  20%      { transform: translate(17px,-95px) rotate(175deg); }
  40%      { transform: translate(17px,-95px) rotate(10deg); }
  60%      { transform: translate(17px,-95px) rotate(-15deg); }
  80%      { transform: translate(17px,-95px) rotate(165deg); }
}
@keyframes elbowLeft {
  0%, 100% { transform: translate(0px,55px) rotate(6deg); }
  20%      { transform: translate(0px,55px) rotate(0deg); }
  40%      { transform: translate(0px,55px) rotate(4deg); }
  60%      { transform: translate(0px,55px) rotate(14deg); }
  80%      { transform: translate(0px,55px) rotate(4deg); }
}
@keyframes elbowRight {
  0%, 100% { transform: translate(0px,55px) rotate(6deg); }
  20%      { transform: translate(0px,55px) rotate(0deg); }
  40%      { transform: translate(0px,55px) rotate(4deg); }
  60%      { transform: translate(0px,55px) rotate(14deg); }
  80%      { transform: translate(0px,55px) rotate(4deg); }
}
@keyframes kneeLeft {
  0%, 100% { transform: translate(0px,70px) rotate(0deg); }
  20%      { transform: translate(0px,70px) rotate(-2deg); }
  40%      { transform: translate(0px,70px) rotate(2deg); }
  60%      { transform: translate(0px,70px) rotate(8deg); }
  80%      { transform: translate(0px,70px) rotate(2deg); }
}
@keyframes kneeRight {
  0%, 100% { transform: translate(0px,70px) rotate(0deg); }
  20%      { transform: translate(0px,70px) rotate(-2deg); }
  40%      { transform: translate(0px,70px) rotate(2deg); }
  60%      { transform: translate(0px,70px) rotate(8deg); }
  80%      { transform: translate(0px,70px) rotate(2deg); }
}

/* ---------- IJF certified (text wraps around image) ---------- */
.cert-flow { display: flow-root; }
.cert-figure {
  float: left;
  position: relative;
  width: min(360px, 40%);
  margin: 6px clamp(28px, 4vw, 52px) 24px 0;
}
.cert-figure img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 20px;
  border: 1px solid var(--hair);
}
.cert-badge {
  position: absolute;
  left: 16px;
  bottom: 16px;
  background: var(--blue);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 999px;
}
.cert-flow h2.display { margin: 0 0 24px; }
.cert-flow p:not(.eyebrow) {
  color: var(--paper-dim);
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.7;
  margin: 0 0 18px;
}
.cert-flow p.cert-lead {
  color: var(--paper);
  font-size: clamp(18px, 1.8vw, 21px);
}
.cert-cta { display: inline-block; margin-top: 8px; }
@media (max-width: 700px) {
  .cert-figure { float: none; width: 100%; margin: 0 0 28px; }
}


/* ---------- disciplines (structured rows) ---------- */
.disc-list { border-top: 1px solid var(--hair); }
.disc {
  display: grid;
  grid-template-columns: 84px minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(20px, 3.5vw, 48px);
  align-items: start;
  padding: 40px 20px;
  border-bottom: 1px solid var(--hair);
  transition: background 0.2s ease;
}
.disc:hover { background: var(--panel); }
.disc-num {
  font-family: var(--font-display);
  font-size: 44px;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--blue-soft);
}
.disc-lead .disc-num { color: var(--blue); -webkit-text-stroke: 0; }
.disc-title { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.disc h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  margin: 0;
}
.disc-flag {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  background: var(--blue);
  padding: 5px 11px;
  border-radius: 999px;
}
.disc-main p {
  color: var(--paper-dim);
  font-size: 16px;
  line-height: 1.65;
  margin: 0;
  max-width: 48ch;
}
.disc-meta { margin: 0; display: grid; gap: 0; }
.disc-meta div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--hair);
}
.disc-meta div:first-child { padding-top: 0; }
.disc-meta div:last-child { border-bottom: none; padding-bottom: 0; }
.disc-meta dt {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--mute);
  flex-shrink: 0;
}
.disc-meta dd { margin: 0; font-size: 14.5px; color: var(--paper); text-align: right; }
@media (max-width: 900px) {
  .disc { grid-template-columns: 1fr; padding: 32px 4px; gap: 18px; }
  .disc:hover { background: transparent; }
  .disc-num { font-size: 34px; }
}

/* ---------- timeline (at a glance) ---------- */
.timeline {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  position: relative;
  display: grid;
  gap: 32px;
  max-width: 980px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--hair);
  transform: translateX(-50%);
}
.tl-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 64px;
}
.tl-item::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 30px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--blue);
  border: 3px solid var(--ink);
  box-shadow: 0 0 0 2px var(--blue);
  transform: translateX(-50%);
  z-index: 1;
}
.tl-card {
  grid-column: 1;
  text-align: right;
  background: var(--panel);
  border: 1px solid var(--hair);
  border-radius: 18px;
  padding: 24px 28px;
}
.tl-item:nth-child(even) .tl-card { grid-column: 2; text-align: left; }
.tl-year {
  display: block;
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--blue-soft);
  margin-bottom: 12px;
}
.tl-card h4 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 19px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin: 0 0 8px;
}
.tl-card p { color: var(--paper-dim); font-size: 14px; line-height: 1.6; margin: 0; }
.tl-item.now::before { background: var(--sun); box-shadow: 0 0 0 2px var(--sun); }
.tl-item.now .tl-year { color: var(--sun); }
.tl-item.now .tl-card { border-color: rgba(255,214,10,0.45); }

.tl-sub {
  font-size: 14px;
  font-weight: 600;
  color: var(--blue-soft);
  margin: 72px 0 18px;
}
.tl-extras {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 820px) {
  .timeline::before { left: 7px; transform: none; }
  .tl-item { grid-template-columns: 1fr; padding-left: 40px; }
  .tl-item::before { left: 8px; }
  .tl-card,
  .tl-item:nth-child(even) .tl-card { grid-column: 1; text-align: left; }
  .tl-extras { grid-template-columns: 1fr; }
}


/* ---------- section dividers (svg) ---------- */
.divider {
  height: 72px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}
.divider svg { display: block; width: 100%; height: 100%; }

/* ---------- train section CTA ---------- */
.train-cta { text-align: center; margin-top: 48px; }
.train-cta .btn-primary { display: inline-block; }
.train-cta p { color: var(--paper-dim); font-size: 14px; margin: 16px 0 0; }