/* RC DOJO. One motif: the arcs of the logo. Square corners, flat colour, no rules, no shadows. */
:root {
  --ground: #ffffff;
  --paper: #f1f5f8;
  --ink: #12161a;
  --muted: #4a5560;
  --red: #c8170a;
  --sky: #cfe6f6;
  --sky-deep: #a9d2ee;
  --grass: #dbe8bf;
  --grass-deep: #bfd596;
  --blue: #154a73;
  --margin: clamp(16px, 2.2vw, 32px);
  --step-small: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 var(--step-body)/1.45 "Hanken Grotesk", system-ui, sans-serif; letter-spacing: -0.005em; }
img, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, figure { margin: 0; }
h1, h2 { font-weight: 500; font-size: var(--step-head); line-height: 0.95; letter-spacing: -0.045em; text-wrap: balance; }
h3 { font-weight: 500; font-size: var(--step-lead); line-height: 1.1; letter-spacing: -0.02em; }
a { color: inherit; text-underline-offset: 0.2em; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.wrap { padding-inline: var(--margin); }
main > section { margin-top: clamp(96px, 12vw, 200px); }

.btn { display: inline-block; background: var(--red); color: #fff; font-weight: 500; text-decoration: none; padding: 18px 28px; transition: transform 160ms var(--ease), background 160ms; }
.btn:hover { background: var(--ink); }
.btn:active { transform: scale(0.97); }
.btn--ink { background: var(--ink); }
.btn--ink:hover { background: #fff; color: var(--ink); }

.arcs__ink { fill: var(--ink); }
.arcs__red { fill: var(--red); }
/* the motif as a mask: every picture ends in the logo's arc */
.arcmask { clip-path: ellipse(120% 100% at 50% 0%); object-fit: cover; }

/* hero: card beside the field */
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 12px; min-height: 100svh; }
.hero__card { background: var(--paper); display: flex; flex-direction: column; }
.arcs { width: 100%; height: 72px; padding: 16px 12% 0; overflow: visible; }
.hero__body { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 24px; padding: 24px var(--margin); }
.hero__logo { width: min(340px, 72%); }
.hero h1 { font-size: clamp(2.5rem, 3.9vw, 4rem); }
.lead { font-size: var(--step-lead); line-height: 1.3; max-width: 34ch; }
.hero__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; padding: 0 var(--margin) 28px; }
.hero__nav a { padding: 10px 0; }
.hero__photo { position: relative; overflow: hidden; }
.hero__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 38% 50%; animation: drift 24s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1.02); } to { transform: scale(1.1) translateX(-2%); } }

/* prices: tiles that step up */
.prices__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; align-items: end; position: relative; }
.prices__title { position: absolute; top: 0; left: 0; width: 60%; }
.tile { display: flex; flex-direction: column; padding: 28px 28px 0; }
.tile--sky { background: var(--sky); min-height: 380px; --deep: var(--sky-deep); }
.tile--grass { background: var(--grass); min-height: 520px; --deep: var(--grass-deep); }
.tile--red { background: var(--red); color: #fff; min-height: 660px; --deep: var(--ink); }
.tile__price { font-size: clamp(2.5rem, 4vw, 3.5rem); font-weight: 500; letter-spacing: -0.04em; line-height: 1.1; margin: 4px 0 20px; font-variant-numeric: tabular-nums; }
.tile ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.tile li { padding-left: 30px; position: relative; }
.tile li::before, .foot li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 20px; height: 9px; background: currentColor; clip-path: ellipse(50% 100% at 50% 100%); }
.tile__go { margin: auto -28px 0; margin-top: auto; padding: 20px 28px; background: var(--deep); color: inherit; font-weight: 500; text-decoration: none; transition: padding-left 200ms var(--ease); }
.tile ul { margin-bottom: 28px; }
.tile__go:hover { padding-left: 40px; }
.tile--red .tile__go { color: #fff; }
.pricelist { width: 100%; margin-top: 56px; border-collapse: collapse; text-align: left; }
.pricelist caption { text-align: left; font-size: var(--step-lead); font-weight: 500; padding-bottom: 12px; }
.pricelist th, .pricelist td { padding: 14px 16px 14px 0; font-weight: 400; vertical-align: top; }
.pricelist th { font-weight: 500; width: 32%; }
.pricelist td:last-child { text-align: right; padding-right: 0; white-space: nowrap; font-weight: 500; font-variant-numeric: tabular-nums; }
.pricelist tr:nth-child(odd) { background: var(--paper); }
.pricelist th { padding-left: 16px; } .pricelist td:last-child { padding-right: 16px; }

/* course: accordion of tinted panels */
.course__intro { display: grid; grid-template-columns: 5fr 1fr 5fr 1fr; align-items: end; margin-bottom: 56px; }
.course__intro p { grid-column: 3; }
.acc { display: flex; height: 540px; }
.acc__panel { flex: 0 0 9%; display: flex; position: relative; overflow: hidden; transition: flex-basis 450ms var(--ease); }
.acc__panel.is-open { flex: 1 1 0; }
.acc__panel:nth-child(1) { background: var(--blue); color: #fff; }
.acc__panel:nth-child(2) { background: #5c9bc9; color: var(--ink); }
.acc__panel:nth-child(3) { background: var(--sky-deep); }
.acc__panel:nth-child(4) { background: var(--sky); }
.acc__name { all: unset; cursor: pointer; position: absolute; inset: 0; font-size: var(--step-lead); font-weight: 500; writing-mode: vertical-rl; transform: rotate(180deg); padding: 24px 20px; display: flex; align-items: center; justify-content: flex-start; white-space: nowrap; }
.acc__name:focus-visible { outline: 3px solid var(--ink); outline-offset: -6px; }
.acc__panel.is-open .acc__name { writing-mode: horizontal-tb; transform: none; position: static; padding: 32px 32px 0; align-items: flex-start; font-size: clamp(1.75rem, 2.8vw, 2.5rem); letter-spacing: -0.03em; cursor: default; }
.acc__body { display: none; }
.acc__panel.is-open { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr; }
.acc__panel.is-open .acc__body { display: contents; }
.acc__body p { grid-column: 1; align-self: end; padding: 32px; max-width: 36ch; }
.acc__body .arcmask { grid-column: 2; grid-row: 1 / 3; width: 100%; height: 100%; }

/* about: inset panel, shaped portrait */
.about { margin-inline: 20px; background: var(--blue); color: #fff; display: grid; grid-template-columns: 58% 1fr; overflow: hidden; }
.about__left { padding: 56px 56px 0; display: flex; flex-direction: column; gap: 48px; }
.about__photo { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; clip-path: ellipse(100% 100% at 50% 100%); margin-top: auto; }
.about__right { padding: 56px 56px 56px 24px; display: flex; flex-direction: column; gap: 56px; align-items: flex-start; }
.about__right p { margin-top: 12px; max-width: 34ch; }

/* start: pick your starting point */
.start { display: grid; grid-template-columns: 5fr 7fr; gap: var(--margin); align-items: end; }
.start__list { display: flex; flex-direction: column; align-items: flex-start; }
.start__list h2 { font-size: clamp(1.75rem, 2.9vw, 2.75rem); line-height: 1.15; color: var(--muted); letter-spacing: -0.03em; }
.start__list button { all: unset; cursor: pointer; font-size: clamp(1.75rem, 2.9vw, 2.75rem); font-weight: 500; line-height: 1.15; letter-spacing: -0.03em; color: var(--muted); padding: 2px 0; transition: color 160ms, transform 200ms var(--ease); }
.start__list button:hover, .start__list button.is-on { color: var(--red); transform: translateX(8px); }
.start__list button:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.start__stage img { width: 100%; aspect-ratio: 3 / 2; transition: opacity 240ms; }
.start__stage img.is-swap { opacity: 0; }
.start__stage figcaption { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 6px 20px; justify-content: space-between; }
.start__stage figcaption a { font-weight: 500; color: var(--red); }

/* MAAD: the band between the two halves */
.maad { background: var(--red); color: #fff; padding-block: clamp(64px, 8vw, 120px); }
.maad__in { display: grid; grid-template-columns: 1fr 1fr; gap: 48px var(--margin); align-items: start; }
.maad img { width: min(420px, 80%); margin-bottom: 40px; }
.maad__date { font-size: var(--step-lead); font-weight: 500; line-height: 1.25; margin-bottom: 20px; }
.maad p { max-width: 44ch; }
.maad__count { font-size: var(--step-lead); font-weight: 500; margin: 20px 0 28px; min-height: 1.3em; }

/* faq: tabbed index cards */
.faq h2, .cards, .faq__more { margin-inline: 16.6%; }
.cards { margin-top: 72px; }
.cards details { position: relative; padding: 24px 28px 64px; margin-top: -12px; }
.cards details:nth-child(3n+1) { background: var(--sky); }
.cards details:nth-child(3n+2) { background: var(--grass); }
.cards details:nth-child(3n) { background: var(--paper); }
.cards summary { list-style: none; cursor: pointer; font-size: var(--step-lead); font-weight: 500; }
.cards summary::-webkit-details-marker { display: none; }
.tab { position: absolute; top: -39px; height: 40px; width: 180px; background: inherit; display: flex; align-items: center; padding-left: 28px; font-size: var(--step-body); font-weight: 400; clip-path: polygon(0 0, 82% 0, 100% 100%, 0 100%); }
.cards details { --i: 0; } .cards details:nth-child(2) { --i: 1; } .cards details:nth-child(3) { --i: 2; } .cards details:nth-child(4) { --i: 3; } .cards details:nth-child(5) { --i: 4; } .cards details:nth-child(6) { --i: 5; }
.cards .tab { left: calc(var(--i) * 13%); }
.cards details:nth-child(3n+1) .tab { background: var(--sky); } .cards details:nth-child(3n+2) .tab { background: var(--grass); } .cards details:nth-child(3n) .tab { background: var(--paper); }
.cards details p { margin-top: 16px; max-width: 50ch; }
.cards details[open] { padding-bottom: 72px; }
.faq__more { margin-top: 32px; }

/* book: the coupon */
.coupon { margin-inline: 8.3%; background: var(--sky); display: grid; grid-template-columns: 46% 1fr; position: relative; }
.coupon::before, .coupon::after { content: ""; position: absolute; left: 46%; width: 32px; height: 32px; margin-left: -14px; border-radius: 50%; background: var(--ground); }
.coupon::before { top: -16px; } .coupon::after { bottom: -16px; }
.coupon__left { padding: 48px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.coupon__left h2 { font-size: clamp(1.75rem, 3vw, 2.75rem); line-height: 1; }
.coupon__right { padding: 48px; display: grid; gap: 10px; border-left: 5px dotted var(--ground); }
.coupon label { font-size: var(--step-small); font-weight: 500; margin-top: 6px; }
.coupon input, .coupon select { font: inherit; color: var(--ink); background: #fff; border: 0; height: 54px; padding: 0 16px; width: 100%; border-radius: 0; }
.coupon__send { font: inherit; font-weight: 500; height: 58px; margin-top: 14px; border: 0; background: var(--ink); color: #fff; cursor: pointer; transition: background 160ms, transform 160ms var(--ease); }
.coupon__send:hover { background: var(--red); } .coupon__send:active { transform: scale(0.98); }

/* footer: the mark, built large */
.foot { background: var(--paper); margin-top: clamp(96px, 12vw, 200px); padding-block: 64px 32px; }
.foot__mark { width: 100%; height: clamp(120px, 30svh, 300px); }
.foot__cols { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 32px var(--margin); margin-top: 56px; }
.foot ul { list-style: none; padding: 0; display: grid; gap: 4px; }
.foot li { position: relative; padding-left: 30px; }
.foot li a, .foot address a { display: inline-block; padding: 8px 0; }
.foot address { font-style: normal; line-height: 1.7; }
.foot__end { display: flex; justify-content: space-between; margin-top: 56px; font-size: var(--step-small); }

.wa { position: fixed; right: 16px; bottom: 16px; z-index: 5; background: #0c6b3a; color: #fff; font-weight: 500; text-decoration: none; padding: 14px 20px; transition: transform 160ms var(--ease); }
.wa:hover { transform: translateY(-3px); }
.js .wa { opacity: 0; pointer-events: none; transition: opacity 200ms, transform 160ms var(--ease); }
.js .wa.is-on { opacity: 1; pointer-events: auto; }

/* entrances: only when script runs, so nothing stays hidden without it */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 500ms var(--ease), transform 500ms var(--ease); transition-delay: calc(var(--n, 0) * 80ms); }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero__photo { order: -1; height: 46svh; }
  .hero__card { margin-top: -36px; position: relative; margin-inline: 12px; }
  .arcs { height: 48px; }
  .prices__row { grid-template-columns: 1fr; gap: 28px; }
  .prices__title { position: static; width: auto; margin-bottom: 24px; }
  .tile { min-height: 0 !important; }
  .pricelist td:nth-child(2) { display: none; }
  .pricelist th { width: auto; }
  .course__intro { display: block; } .course__intro p { margin-top: 20px; }
  .acc { flex-direction: column; height: auto; }
  .acc__panel { flex: none !important; min-height: 64px; }
  .acc__name { writing-mode: horizontal-tb; transform: none; padding: 18px 20px; }
  .acc__panel.is-open { display: block; }
  .acc__panel.is-open .acc__name { padding: 24px 20px 0; }
  .acc__panel.is-open .acc__body { display: block; }
  .acc__body p { padding: 16px 20px 24px; }
  .acc__body .arcmask { aspect-ratio: 16 / 10; height: auto; }
  .about { grid-template-columns: 1fr; margin-inline: 10px; }
  .about__left { padding: 32px 20px 0; display: contents; }
  .about h2 { padding: 32px 20px 0; }
  .about__right { padding: 32px 20px; gap: 32px; }
  .about__photo { order: 3; }
  .start { grid-template-columns: 1fr; }
  .maad__in { grid-template-columns: 1fr; }
  .faq h2, .cards, .faq__more { margin-inline: 0; }
  .tab { width: 130px; padding-left: 20px; } .cards .tab { left: calc(var(--i) * 9%); }
  .cards details { padding-inline: 20px; }
  .coupon { margin-inline: 0; grid-template-columns: 1fr; }
  .coupon::before, .coupon::after { top: 214px; bottom: auto; margin: 0; }
  .coupon::before { left: -16px; } .coupon::after { left: auto; right: -16px; }
  .coupon__left { padding: 32px 24px; height: 230px; }
  .coupon__right { padding: 32px 24px; border-left: 0; border-top: 5px dotted var(--ground); }
  .foot__cols { grid-template-columns: 1fr 1fr; } .foot address { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__photo img { animation: none; }
  .js .reveal { transform: none; transition: opacity 200ms; }
  .acc__panel, .btn, .tile__go, .start__list button { transition: none; }
}
