/* TS Fight Academy , colour chapters, mobile first.
   Fields: night → chalk → blue → night/navy → chalk → navy → chalk → blue → night */

:root {
  /* colour (brand blue sampled from the logo) */
  --night: #06090f;
  --navy: #0a1428;
  --navy-2: #13213d;
  --blue: #006dfc;
  --blue-deep: #0052c7;
  --blue-pale: #a9cbff;
  --chalk: #e8edf4;
  --chalk-2: #d5dde9;
  --chalk-3: #c3cedd;
  --paper: #ffffff;
  --ink-soft-dark: #3b4658;   /* secondary text on chalk, 8.3:1 */
  --ink-soft-light: #b4c0d2;  /* secondary text on night, 10:1 */

  /* stages of the trial, dark → light, one hue */
  --step-1: #0b2a66;
  --step-2: #0a3f99;
  --step-3: #0052c7;
  --step-4: #006dfc;
  --step-5: #a9cbff;

  /* type */
  --display: "Saira", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --text: "Albert Sans", "Helvetica Neue", Arial, sans-serif;
  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2.25rem, 1.2rem + 4.4vw, 6.5rem);
  --step-hero: clamp(2.75rem, 1.6rem + 5.2vw, 7.5rem);
  --step-poster: clamp(3.25rem, 0.6rem + 12vw, 9.375rem);

  /* space */
  --margin: clamp(1rem, 2.2vw, 2rem);
  --gutter: clamp(0.75rem, 1.4vw, 1.5rem);
  --section: clamp(4.5rem, 2rem + 9vw, 10rem);
  --cut: 10px;

  /* motion (taste-skill tokens; Emil: strong ease-out for UI) */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-move: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;
  --t-reveal: 800ms;
  --stagger-line: 90ms;
  --stagger-item: 70ms;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
  scroll-padding-top: 1rem;
  background: var(--night);
  color-scheme: dark;
  scrollbar-color: var(--blue) var(--night);
}
body {
  margin: 0;
  font-family: var(--text);
  font-size: var(--step-body);
  line-height: 1.5;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  background: var(--night);
  color: var(--paper);
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3 { margin: 0; font-weight: inherit; hyphens: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 0.07em; }
button, input, select { font: inherit; color: inherit; }
button, a, [role="button"], summary { touch-action: manipulation; }
button, .btn, .chip, .day, summary { -webkit-user-select: none; user-select: none; }
::selection { background: var(--blue); color: var(--paper); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.field--blue :focus-visible { outline-color: var(--paper); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: var(--margin); top: -4rem; z-index: 50;
  background: var(--paper); color: var(--night); padding: 0.75rem 1rem; font-weight: 600;
}
.skip:focus { top: 0.75rem; }

.wrap { padding-inline: max(var(--margin), env(safe-area-inset-left)) max(var(--margin), env(safe-area-inset-right)); }

/* ---------- fields ---------- */
.field { position: relative; }
.field--night { background: var(--night); color: var(--paper); }
.field--navy { background: var(--navy); color: var(--paper); }
.field--blue { background: var(--blue); color: var(--paper); }
.field--chalk { background: var(--chalk); color: var(--night); }

/* ---------- type ---------- */
.display {
  font-family: var(--display);
  font-weight: 750;
  font-stretch: 100%;
  text-transform: uppercase;
  font-stretch: 88%;
  letter-spacing: 0.005em;
  line-height: 0.92;
  text-wrap: balance;
}
.lead { font-size: var(--step-lead); line-height: 1.35; }

/* ---------- buttons: one shape, cut like the octagon ---------- */
.btn {
  --cut-s: var(--cut);
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0.75rem 1.4rem;
  font-family: var(--text); font-weight: 600; font-size: var(--step-body); line-height: 1.1;
  text-decoration: none; text-align: center;
  border: 0; cursor: pointer;
  clip-path: polygon(var(--cut-s) 0, calc(100% - var(--cut-s)) 0, 100% var(--cut-s), 100% calc(100% - var(--cut-s)), calc(100% - var(--cut-s)) 100%, var(--cut-s) 100%, 0 calc(100% - var(--cut-s)), 0 var(--cut-s));
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease, color var(--t-hover) ease;
}
.btn:active { transform: scale(0.97); }
.btn:focus-visible { outline: 3px solid var(--paper); outline-offset: -3px; }
.btn--blue { background: var(--blue); color: var(--paper); }
.btn--line { background: var(--navy-2); color: var(--paper); }
.btn--big { min-height: 56px; padding-inline: 1.75rem; }
.field--blue .btn--blue { background: var(--night); }

@media (hover: hover) and (pointer: fine) {
  .btn--blue:hover { background: var(--paper); color: var(--night); }
  .field--blue .btn--blue:hover { background: var(--paper); color: var(--night); }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column;
  overflow: clip;
  isolation: isolate;
}

.bar {
  position: relative; z-index: 3;
  display: flex; align-items: center; gap: 1.5rem;
  padding-top: max(1rem, env(safe-area-inset-top));
  padding-bottom: 1rem;
}
.bar__brand { display: block; margin-right: auto; }
.bar__brand img { width: auto; height: 40px; }
.bar__nav, .bar__cta { display: none; }
.bar__menu {
  min-height: 44px; padding: 0 0.25rem;
  background: none; border: 0; cursor: pointer;
  font-weight: 600; font-size: var(--step-body); color: var(--paper);
  text-decoration: underline; text-decoration-color: var(--blue); text-decoration-thickness: 2px; text-underline-offset: 0.3em;
}

.hero__body {
  position: relative; z-index: 2;
  padding-top: clamp(1.5rem, 6svh, 4rem);
}
.hero__title {
  font-size: var(--step-hero);
  font-stretch: 92%;
  margin-left: -0.04em;
}
.hero__lead { margin-top: 1.25rem; max-width: 34ch; font-size: var(--step-lead); color: var(--paper); }
.hero__actions { margin-top: 1.75rem; display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.hero__next { font-size: var(--step-small); color: var(--ink-soft-light); max-width: 36ch; }
.hero__next a { color: var(--paper); text-decoration-color: var(--blue); text-decoration-thickness: 2px; }
.hero__next strong { color: var(--paper); font-weight: 600; }

/* the cage: one giant octagon, cropped by the frame */
.octagon {
  position: relative; z-index: 1;
  flex: 1 0 auto;
  min-height: 72vw;
  margin-top: 2.5rem;
  pointer-events: none;
}
.octagon__shape {
  position: absolute;
  left: 50%; top: 0;
  width: 132vw; aspect-ratio: 1;
  translate: -50% 0;
  background: var(--blue);
  clip-path: polygon(29.3% 0, 70.7% 0, 100% 29.3%, 100% 70.7%, 70.7% 100%, 29.3% 100%, 0 70.7%, 0 29.3%);
  isolation: isolate;
}
.flip {
  position: absolute;
  left: 50%; top: 9%;
  width: 58%;
  translate: -50% 0;
  aspect-ratio: 1;
  background: var(--night);
  clip-path: polygon(29.3% 0, 70.7% 0, 100% 29.3%, 100% 70.7%, 70.7% 100%, 29.3% 100%, 0 70.7%, 0 29.3%);
}
.flip__video { display: block; width: 100%; height: 100%; object-fit: cover; }
.flip__toggle {
  position: absolute; z-index: 3;
  right: max(var(--margin), env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom));
  min-height: 44px; padding: 0 1rem;
  background: var(--night); color: var(--paper); border: 0; cursor: pointer;
  font-size: var(--step-small); font-weight: 600;
  clip-path: polygon(6px 0, calc(100% - 6px) 0, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 0 calc(100% - 6px), 0 6px);
  transition: transform var(--t-press) var(--ease-out);
}
.flip__toggle:active { transform: scale(0.97); }
.flip__toggle:focus-visible { outline: 3px solid var(--paper); outline-offset: -3px; }

@media (prefers-reduced-motion: reduce) { .flip__toggle { display: none; } }

/* =========================================================
   MENU (phone sheet)
   ========================================================= */
.menu {
  position: fixed; inset: 0;
  width: 100%; max-width: none; height: 100dvh; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: var(--night); color: var(--paper);
  display: none; flex-direction: column;
  overscroll-behavior: contain;
}
.menu[open] { display: flex; }
.menu::backdrop { background: var(--night); }
.menu__top { display: flex; align-items: center; justify-content: space-between; padding-top: max(1rem, env(safe-area-inset-top)); padding-bottom: 1rem; }
.menu__logo { height: 40px; width: auto; }
.menu__nav { display: flex; flex-direction: column; padding-top: 1.5rem; }
.menu__nav a {
  font-family: var(--display); font-weight: 750; text-transform: uppercase; font-stretch: 90%;
  font-size: var(--step-head); line-height: 1.1;
  text-decoration: none; padding-block: 0.2rem;
}
.menu__foot { margin-top: auto; padding-bottom: max(1.5rem, env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
.menu__tel { font-weight: 600; font-size: var(--step-body); min-height: 44px; display: inline-flex; align-items: center; }
@media (prefers-reduced-motion: no-preference) {
  .menu[open] { animation: sheet-in 320ms var(--ease-out); }
  .menu[open] .menu__nav a { animation: rise 420ms var(--ease-out) both; animation-delay: calc(60ms + var(--n, 0) * 40ms); }
}
@keyframes sheet-in { from { opacity: 0; transform: translateY(12px); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* =========================================================
   DISZIPLINEN , pinned heading, passing rows
   ========================================================= */
.disc { padding-block: 0 var(--section); }
.disc__title {
  position: sticky; top: 0; z-index: 2;
  background: var(--chalk);
  font-size: var(--step-head);
  padding-block: 1.25rem 0.75rem;
  margin-inline: calc(var(--margin) * -1);
  padding-inline: var(--margin);
}
.disc__list { display: flex; flex-direction: column; gap: 4.5rem; padding-top: 2rem; }
.disc__name { font-family: var(--display); font-weight: 750; text-transform: uppercase; font-size: var(--step-lead); letter-spacing: 0.02em; margin-bottom: 1rem; }
.disc__row { display: flex; flex-direction: column; gap: 1.25rem; }
.disc__pic img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--night); }
.disc__pic figcaption { margin-top: 0.5rem; font-size: var(--step-small); color: var(--ink-soft-dark); }
.disc__facts { display: flex; flex-direction: column; gap: 0.6rem; font-size: var(--step-body); }
.disc__facts li:last-child { font-weight: 600; }

/* =========================================================
   FÜR JEDES ALTER , one item per poster line
   ========================================================= */
.ages { padding-block: var(--section); }
.ages__title { font-size: var(--step-head); margin-bottom: 2.5rem; }
.ages__list { display: flex; flex-direction: column; }
.ages__item {
  display: flex; flex-direction: column;
  text-decoration: none; color: var(--paper);
  padding-block: 0.15rem 1.1rem;
  transition: color var(--t-hover) ease;
}
.ages__word {
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  font-size: var(--step-poster);
  font-stretch: 78%;
  line-height: 1.02; letter-spacing: 0.005em;
  overflow: clip; overflow-clip-margin: 0.04em;
}
.ages__detail { margin-top: 0.5rem; font-size: var(--step-small); font-weight: 600; font-variant-numeric: tabular-nums; }
.ages__item:active .ages__word { color: var(--night); }
.ages__item:focus-visible { outline-offset: 4px; }
.ages__note { margin-top: 1.5rem; font-size: var(--step-small); font-weight: 500; }
@media (hover: hover) and (pointer: fine) {
  .ages__item:hover { color: var(--night); }
}

/* =========================================================
   FRAUEN , inset panel, shaped portrait
   ========================================================= */
.women { padding: 10px; }
.women__panel {
  position: relative;
  background: var(--navy);
  overflow: hidden;
  padding: clamp(2.5rem, 6vw, 3.5rem) var(--margin) 0;
  display: flex; flex-direction: column;
}
.women__title { font-size: var(--step-head); color: var(--chalk); }
.women__text { margin-top: 2rem; display: flex; flex-direction: column; gap: 2rem; align-items: flex-start; }
.women__sub { font-size: var(--step-lead); font-weight: 600; line-height: 1.2; margin-bottom: 0.5rem; }
.women__text p { color: var(--ink-soft-light); max-width: 40ch; }
.women__pic {
  width: 86vw; max-width: 560px;
  margin: 3rem auto 0;
  margin-bottom: -22%;
  clip-path: polygon(29.3% 0, 70.7% 0, 100% 29.3%, 100% 70.7%, 70.7% 100%, 29.3% 100%, 0 70.7%, 0 29.3%);
  background: var(--blue);
}
.women__pic img { width: 100%; aspect-ratio: 1; object-fit: cover; }

/* =========================================================
   TRAININGSPLAN , the live thing
   ========================================================= */
.plan { padding-block: var(--section); }
.plan__title { font-size: var(--step-head); }
.plan__intro { margin-top: 1.25rem; max-width: 46ch; }

.plan__controls { margin-top: 2rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.375rem; }
.chip, .day {
  flex: 0 0 auto;
  min-height: 44px; padding: 0 0.9rem;
  border: 0; cursor: pointer;
  background: var(--chalk-2); color: var(--night);
  font-weight: 600; font-size: var(--step-small);
  clip-path: polygon(6px 0, calc(100% - 6px) 0, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 0 calc(100% - 6px), 0 6px);
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease, color var(--t-hover) ease;
}
.chip:active, .day:active { transform: scale(0.97); }
.chip[aria-pressed="true"], .day[aria-selected="true"] { background: var(--night); color: var(--paper); }
.chip:focus-visible, .day:focus-visible { outline: 3px solid var(--blue); outline-offset: -3px; }
@media (hover: hover) and (pointer: fine) {
  .chip:hover, .day:hover { background: var(--chalk-3); }
  .chip[aria-pressed="true"]:hover, .day[aria-selected="true"]:hover { background: var(--night); }
}
.plan__now { margin-top: 1rem; min-height: 1.5em; font-weight: 500; }
.plan__now strong { font-weight: 600; }

.days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.375rem; margin-top: 1.5rem; }
.day { padding: 0; width: 100%; }

.grid { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 2rem; }
.grid__time { display: none; }
.col__day { font-weight: 600; font-size: var(--step-lead); margin-bottom: 0.75rem; }
.col__list { display: flex; flex-direction: column; gap: 0.375rem; }
.s {
  display: flex; align-items: baseline; gap: 1rem;
  min-height: 56px; padding: 0.9rem 1rem;
  background: var(--paper); color: var(--night);
  transition: opacity var(--t-ui) ease, background-color var(--t-ui) ease, color var(--t-ui) ease;
}
.s__t { font-variant-numeric: tabular-nums; font-weight: 600; flex: 0 0 3.25rem; }
.s__n { font-weight: 500; }
.s--f { background: var(--blue); color: var(--paper); }
.s__badge { margin-left: auto; font-size: var(--step-small); font-weight: 600; white-space: nowrap; }
.s.is-dim, .js .grid.is-in .s.is-dim { opacity: 0.32; }
.s.is-next { background: var(--night); color: var(--paper); }

/* with script on a phone: one day at a time */
.js .grid.is-tabbed .col { display: none; }
.js .grid.is-tabbed .col.is-shown { display: block; }
.js .grid.is-tabbed .col__day { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* =========================================================
   PROBETRAINING , accordion of tinted panels
   ========================================================= */
.steps { padding-block: var(--section); }
.steps__title { font-size: var(--step-head); }
.steps__intro { margin-top: 1.25rem; max-width: 44ch; color: var(--ink-soft-light); }
.steps__row { margin-top: 2.5rem; display: flex; flex-direction: column; }
.step { background: var(--tone); color: var(--paper); }
.step:last-child { color: var(--night); }
.step__btn {
  display: flex; align-items: center; width: 100%;
  min-height: 64px; padding: 0 1.25rem;
  background: none; border: 0; cursor: pointer; text-align: left;
  font-family: var(--display); font-weight: 750; text-transform: uppercase; letter-spacing: 0.02em;
  font-size: var(--step-body);
}
.step__btn:focus-visible { outline: 3px solid currentColor; outline-offset: -3px; }
.step__body { display: none; padding: 0 1.25rem 1.75rem; max-width: 44ch; }
.step__pic { display: none; }
.step.is-open .step__body { display: block; }
html:not(.js) .step__body { display: block; }

/* =========================================================
   FAQ , accordion of filled tiles
   ========================================================= */
.faq { padding-block: var(--section); }
.faq__title { font-size: var(--step-head); margin-bottom: 2rem; }
.faq__list { display: flex; flex-direction: column; gap: 6px; }
.tile { background: var(--chalk-2); transition: background-color var(--t-ui) ease, color var(--t-ui) ease; }
.tile summary {
  display: flex; align-items: center; gap: 1rem;
  min-height: 64px; padding: 0.9rem 1.25rem;
  cursor: pointer; list-style: none;
  font-size: var(--step-body); font-weight: 500; line-height: 1.3;
}
.tile summary::-webkit-details-marker { display: none; }
.tile summary { position: relative; padding-right: 3.5rem; }
.tile summary::before, .tile summary::after {
  content: ""; position: absolute; right: 1.25rem; top: 50%;
  width: 16px; height: 3px; margin-top: -1.5px;
  background: currentColor;
  transition: transform var(--t-ui) var(--ease-out);
}
.tile summary::before { transform: rotate(90deg); }
.tile[open] { background: var(--blue); color: var(--paper); }
.tile[open] summary::before { transform: rotate(0deg); }
.tile summary:focus-visible { outline: 3px solid var(--blue); outline-offset: -3px; }
.tile[open] summary:focus-visible { outline: 3px solid var(--paper); outline-offset: -3px; }
.tile p { padding: 0 1.25rem 1.5rem; max-width: 52ch; }
.tile a { font-weight: 600; }
@media (hover: hover) and (pointer: fine) {
  .tile:not([open]) summary:hover { background: var(--chalk-3); }
}

/* =========================================================
   KONTAKT , photo strip, three-cell bar
   ========================================================= */
.contact { padding-block: 3rem var(--section); overflow: clip; }
.strip { height: 110px; overflow: hidden; }
.strip::-webkit-scrollbar { display: none; }
.strip__track { display: flex; gap: 8px; width: max-content; height: 100%; }
.strip__track img { height: 100%; width: auto; }
.contact__title { margin-top: 3.5rem; font-size: var(--step-head); }
.form { margin-top: 2rem; display: grid; grid-template-columns: 1fr; gap: 8px; }
.form__cell input, .form__cell select {
  width: 100%; height: 60px; padding: 0 1.25rem;
  background: var(--blue-deep); color: var(--paper);
  border: 0; border-radius: 0; font-size: var(--step-body);
  -webkit-appearance: none; appearance: none;
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease;
}
.form__cell input::placeholder { color: #dbe7ff; opacity: 1; }
.form__cell--select { position: relative; }
.form__cell--select::after {
  content: ""; position: absolute; right: 1.25rem; top: 50%; width: 10px; height: 10px;
  border-right: 3px solid var(--paper); border-bottom: 3px solid var(--paper);
  transform: translateY(-70%) rotate(45deg); pointer-events: none;
}
.form__cell select:invalid { color: #dbe7ff; }
.form__cell select option { color: var(--night); background: var(--paper); }
.form__cell input:focus, .form__cell select:focus { outline: none; background: var(--paper); color: var(--night); }
.form__cell--select:focus-within::after { border-color: var(--night); }
.form__cell [aria-invalid="true"] { border-bottom: 4px solid var(--night); }
.form__send {
  height: 60px; border: 0; cursor: pointer;
  background: var(--night); color: var(--paper);
  font-weight: 600; font-size: var(--step-body);
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease, color var(--t-hover) ease;
}
.form__send:active { transform: scale(0.98); }
.form__send:focus-visible { outline: 3px solid var(--paper); outline-offset: -3px; }
@media (hover: hover) and (pointer: fine) {
  .form__send:hover { background: var(--paper); color: var(--night); }
}
.form__notes { margin-top: 0.75rem; display: flex; flex-direction: column; gap: 0.25rem; }
.form__note { font-size: var(--step-small); font-weight: 500; }
.form__note a { font-weight: 600; }
.form__note.is-error { font-weight: 600; }

/* =========================================================
   FOOTER , contact as the headline
   ========================================================= */
.foot { padding-top: max(2.5rem, env(safe-area-inset-top)); padding-bottom: max(1.5rem, env(safe-area-inset-bottom)); display: flex; flex-direction: column; }
.foot__top { display: flex; flex-direction: column; gap: 1rem; font-size: var(--step-small); color: var(--ink-soft-light); }
.foot__logo { height: 36px; width: auto; align-self: flex-start; }
.foot__up { color: var(--paper); font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; align-self: flex-start; }
.foot__main { margin-top: 4rem; display: flex; flex-direction: column; }
.foot__crest { width: min(72vw, 360px); margin-bottom: 2.5rem; }
.foot__ask { font-size: var(--step-lead); font-weight: 500; margin-bottom: 0.75rem; }
.foot__tel {
  font-size: 13vw;
  font-stretch: 84%; font-variant-numeric: tabular-nums;
  text-decoration: none; white-space: nowrap; line-height: 0.95;
  margin-left: -0.04em;
  transition: color var(--t-hover) ease;
}
@media (hover: hover) and (pointer: fine) {
  .foot__tel:hover { color: var(--blue); }
  .foot a:not(.foot__tel):hover { text-decoration-color: var(--blue); }
}
.foot__meta { margin-top: 3rem; display: flex; flex-direction: column; gap: 1rem; font-size: var(--step-small); color: var(--ink-soft-light); }
.foot__links { display: flex; flex-direction: column; gap: 0.25rem; }
.foot__links a { color: var(--paper); min-height: 32px; display: inline-flex; align-items: center; }
.credits summary { cursor: pointer; color: var(--paper); min-height: 32px; display: inline-flex; align-items: center; text-decoration: underline; text-underline-offset: 0.18em; }
.credits ul { margin-top: 0.75rem; display: flex; flex-direction: column; gap: 0.4rem; max-width: 70ch; }

/* =========================================================
   DOCK: phone and tablet, a slim top bar that returns when the visitor scrolls up
   ========================================================= */
.dock {
  position: fixed; left: 0; right: 0; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 1rem;
  padding: max(8px, env(safe-area-inset-top)) max(var(--margin), env(safe-area-inset-right)) 8px max(var(--margin), env(safe-area-inset-left));
  background: var(--night);
  transform: translateY(-105%);
  transition: transform 280ms var(--ease-out);
}
.dock.is-on { transform: none; }
.dock__brand { margin-right: auto; display: block; }
.dock__brand img { height: 32px; width: auto; }
.dock__call { font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; text-decoration-color: var(--blue); text-decoration-thickness: 2px; }
.dock .btn { min-height: 44px; padding-inline: 1rem; }
@media (prefers-reduced-motion: reduce) { .dock { transition: none; } }

/* =========================================================
   TABLET ≥ 700
   ========================================================= */
@media (min-width: 700px) {
  .hero__actions { flex-direction: row; align-items: center; gap: 1.5rem; }
  .octagon { min-height: 54vw; }
  .octagon__shape { width: 110vw; }
  .flip { width: 48%; top: 8%; }

  .disc__row { flex-direction: row; align-items: flex-start; gap: 1.5rem; }
  .disc__block--flip .disc__row { flex-direction: row-reverse; }
  .disc__pic { flex: 0 0 220px; }
  .disc__pic img { aspect-ratio: 3 / 4; }
  .disc__facts { padding-top: 0.25rem; gap: 0.875rem; }

  .ages__item { flex-direction: row; align-items: baseline; justify-content: space-between; gap: 2rem; padding-block: 0; }
  .ages__word { font-stretch: 86%; }
  .ages__detail { font-size: var(--step-body); margin: 0; }

  .form { grid-template-columns: 1fr 1fr 1fr; }
  .form__cell input, .form__cell select, .form__send { height: 96px; }
  .form__cell input { text-align: center; }
  .form__cell select { text-align: center; text-align-last: center; }
  .form__notes { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .form__notes .form__note:last-child { grid-column: 3; }
  .strip { height: 150px; }

  .foot__top { display: grid; grid-template-columns: auto 1fr 1fr auto; align-items: start; gap: var(--gutter); }
  .foot__meta { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: start; }
  .foot__place { text-align: right; }

  .women { padding: 20px; }
}

/* =========================================================
   DESKTOP ≥ 1024
   ========================================================= */
@media (min-width: 1024px) {
  .bar { gap: 2.25rem; }
  .bar__brand img { height: 48px; }
  .bar__nav { display: flex; gap: 2rem; font-weight: 500; }
  .bar__nav a { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; transition: color var(--t-hover) ease; }
  .bar__cta { display: inline-flex; background: var(--night); }
  .bar__menu { display: none; }
  @media (hover: hover) and (pointer: fine) {
    .bar__nav a:hover { color: var(--blue-pale); text-decoration: underline; text-decoration-color: var(--blue); text-decoration-thickness: 2px; }
  }

  /* hero: headline on bare ground left, octagon cropped at right */
  .hero__body {
    flex: 1; display: flex; flex-direction: column; justify-content: center;
    padding-top: 0; padding-bottom: 6svh;
    max-width: 54%;
  }
  .hero__title { font-stretch: 80%; }
  .hero__lead { margin-top: 2rem; max-width: 30ch; }
  .hero__actions { margin-top: 2.5rem; flex-direction: column; align-items: flex-start; }
  .octagon { position: absolute; inset: 0; margin: 0; min-height: 0; }
  .octagon__shape { width: 112svh; min-width: 720px; left: 81%; top: 55%; translate: -50% -50%; }
  .flip { left: 40%; top: 50%; width: 54%; translate: -50% -50%; }
  .flip__toggle { right: var(--margin); bottom: 1.25rem; }

  /* disciplines: pinned heading left, rows right */
  .disc { padding-block: var(--section); }
  .disc__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; }
  .disc__title {
    grid-column: 1 / 6; top: 2rem;
    background: none; margin: 0; padding: 0;
  }
  .disc__list { grid-column: 7 / 13; padding-top: 0.5rem; gap: 5rem; }
  .disc__pic { flex-basis: 200px; }
  .disc__name { margin-bottom: 1rem; }

  /* ages: the poster */
  .ages { min-height: 90svh; }
  .ages__title { margin-bottom: 3rem; }
  .ages__word { font-stretch: 100%; line-height: 1.04; }
  .ages__note { margin-top: 2.5rem; }

  /* women: panel with statement left, text at 63%, octagon picture cropped by the bottom */
  .women__panel { min-height: 110svh; padding: 56px; display: block; }
  .women__title { max-width: 55%; }
  .women__text { position: absolute; left: 63%; top: 56px; width: 320px; margin: 0; gap: 4rem; }
  .women__pic { position: absolute; left: 56px; bottom: 0; width: 38vw; max-width: 640px; margin: 0; translate: 0 20%; }

  /* plan: full week as a grid */
  .plan__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: end; }
  .plan__title { grid-column: 1 / 7; }
  .plan__intro { grid-column: 7 / 12; margin: 0; }
  .plan__controls { margin-top: 3rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
  .chips { margin: 0; padding: 0; overflow: visible; }
  .plan__now { margin: 0; }
  .days { display: none !important; }
  .grid {
    display: grid; gap: 6px;
    grid-template-columns: 4.5rem repeat(5, minmax(0, 1fr));
    grid-template-rows: auto repeat(5, minmax(84px, auto));
  }
  .grid__time { display: block; grid-column: 1; grid-row: var(--r); padding-top: 0.9rem; font-weight: 600; font-variant-numeric: tabular-nums; }
  .col, .col__list { display: contents; }
  .js .grid.is-tabbed .col, .js .grid.is-tabbed .col.is-shown { display: contents; }
  .col__day, .js .grid.is-tabbed .col__day {
    position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal;
    grid-row: 1; grid-column: var(--c); margin: 0 0 0.5rem; font-size: var(--step-body);
  }
  .s { grid-row: var(--r); grid-column: var(--c); flex-direction: column; justify-content: space-between; gap: 0.5rem; padding: 0.9rem; }
  .s__t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .s__badge { margin: 0; }

  /* trial: horizontal accordion */
  .steps__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: end; }
  .steps__title { grid-column: 1 / 7; font-stretch: 80%; }
  .steps__intro { grid-column: 7 / 12; margin: 0; }
  .steps__row { margin-top: 4rem; flex-direction: row; height: 520px; }
  .step { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; transition: flex-grow 450ms var(--ease-move); }
  .step.is-open { flex-grow: 5.5; }
  .step__h { height: 100%; }
  .step__btn {
    height: 100%; align-items: flex-end; padding: 1.5rem;
    writing-mode: vertical-rl; transform: rotate(180deg);
    font-size: var(--step-lead);
  }
  .step.is-open .step__btn {
    writing-mode: horizontal-tb; transform: none;
    align-items: flex-start; font-size: var(--step-head); padding: 2rem;
    cursor: default;
  }
  .step__body {
    display: block; position: absolute; left: 2rem; bottom: 2rem; width: min(36ch, 46%); padding: 0;
    opacity: 0; transform: translateY(12px); visibility: hidden;
    transition: opacity 200ms ease, transform 200ms var(--ease-out), visibility 0s linear 200ms;
  }
  .step__pic {
    display: block; position: absolute; right: 2rem; bottom: 2rem; width: 40%; height: 56%;
    margin: 0; opacity: 0; transform: scale(1.04); visibility: hidden;
    transition: opacity 200ms ease, transform 200ms var(--ease-out), visibility 0s linear 200ms;
  }
  .step__pic img { width: 100%; height: 100%; object-fit: cover; }
  .step.is-open .step__pic { opacity: 1; transform: none; visibility: visible; transition: opacity 420ms ease 200ms, transform 900ms var(--ease-expo) 200ms, visibility 0s; }
  .step.is-open .step__body { opacity: 1; transform: none; visibility: visible; transition: opacity 360ms ease 220ms, transform 420ms var(--ease-out) 220ms, visibility 0s; }
  @media (hover: hover) and (pointer: fine) {
    .step:not(.is-open) .step__btn:hover { background: rgb(255 255 255 / 0.08); }
  }

  /* faq: sticky heading */
  .faq__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; }
  .faq__title { grid-column: 1 / 5; position: sticky; top: 96px; margin: 0; }
  .faq__list { grid-column: 5 / 13; gap: 8px; }
  .tile summary { min-height: 72px; padding: 1rem 3.75rem 1rem 1.5rem; font-size: var(--step-lead); }
  .tile summary::before, .tile summary::after { right: 1.5rem; }
  .tile p { padding: 0 1.5rem 1.75rem; }

  /* contact */
  .contact { min-height: 80svh; padding-top: 48px; }
  .contact__title { margin-top: 4.5rem; }
  .form { margin-top: 2.5rem; }

  /* footer */
  .foot { min-height: 90svh; }
  .foot__main { margin-top: auto; padding-top: 6rem; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: end; }
  .foot__crest { grid-column: 9 / 13; grid-row: 1 / 3; justify-self: end; width: min(26vw, 380px); margin: 0 0 1rem; }
  .foot__ask { grid-column: 1 / 9; grid-row: 1; }
  .foot__tel { grid-column: 1 / 13; grid-row: 3; font-size: var(--step-poster); }
  .foot__meta { margin-top: 2.5rem; }

  .dock { display: none; }
}

/* =========================================================
   MOTION LAYER , all hidden states only under .js + no-preference
   ========================================================= */
.lines .line { display: block; overflow: clip; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.lines [data-line] { display: block; }

@media (prefers-reduced-motion: no-preference) {
  /* load sequence, over by ~1.2s */
  .js .hero [data-line] { transform: translateY(105%); animation: load-line 900ms var(--ease-expo) forwards; animation-delay: calc(120ms + var(--i) * var(--stagger-line)); }
  .js .hero [data-load] { opacity: 0; transform: translateY(14px); animation: load-rise 600ms var(--ease-out) forwards; animation-delay: var(--d); }
  .js .octagon__shape { animation: cage-in 1200ms var(--ease-expo) 60ms both; }

  /* reveals (set once by the observer) */
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: var(--rd, 0ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }

  /* headings wipe up inside their own box: the text never leaves it, so it never lies on its neighbours */
  .js .display[data-rise] > span { display: inline-block; clip-path: inset(100% 0 -0.2em 0); transform: translateY(0.18em); transition: clip-path 800ms var(--ease-expo), transform 900ms var(--ease-expo); }
  .js .display[data-rise].is-in > span { clip-path: inset(-0.2em 0 -0.2em 0); transform: none; }

  .js .ages__item { opacity: 0; transform: translateY(32px); transition: opacity 600ms var(--ease-out), transform 800ms var(--ease-expo), color var(--t-hover) ease; transition-delay: calc(var(--n, 0) * var(--stagger-item)), calc(var(--n, 0) * var(--stagger-item)), 0ms; }
  .js .ages__list.is-in .ages__item { opacity: 1; transform: none; }

  .js .s { opacity: 0; transform: translateY(10px); }
  .js .grid.is-in .s { opacity: 1; transform: none; transition: opacity 500ms var(--ease-out), transform 600ms var(--ease-out), background-color var(--t-ui) ease, color var(--t-ui) ease; transition-delay: calc(var(--n, 0) * 22ms), calc(var(--n, 0) * 22ms), 0ms, 0ms; }
  .js .grid.is-in.is-settled .s { transition-delay: 0ms; }

  .js .tile { opacity: 0; transform: translateY(16px); transition: opacity 500ms var(--ease-out), transform 700ms var(--ease-out), background-color var(--t-ui) ease, color var(--t-ui) ease; transition-delay: calc(var(--n, 0) * 60ms), calc(var(--n, 0) * 60ms), 0ms, 0ms; }
  .js .faq__list.is-in .tile { opacity: 1; transform: none; }

  /* the signature: the women's picture opens like a shutter */
  .js .shutter { clip-path: polygon(29.3% 100%, 70.7% 100%, 100% 100%, 100% 100%, 70.7% 100%, 29.3% 100%, 0 100%, 0 100%); transition: clip-path 1100ms var(--ease-move); }
  .js .shutter img { transform: scale(1.12); transition: transform 1500ms var(--ease-soft); }
  .js .is-in .shutter { clip-path: polygon(29.3% 0, 70.7% 0, 100% 29.3%, 100% 70.7%, 70.7% 100%, 29.3% 100%, 0 70.7%, 0 29.3%); }
  .js .is-in .shutter img { transform: none; }

  /* the photo strip drifts */
  .strip.is-moving { overflow: hidden; }
  .strip.is-moving .strip__track { animation: drift 60s linear infinite; }
  .strip.is-moving:hover .strip__track { animation-play-state: paused; }
}
@keyframes load-line { to { transform: none; } }
@keyframes load-rise { to { opacity: 1; transform: none; } }
@keyframes cage-in { from { opacity: 0; scale: 0.94; rotate: 8deg; } to { opacity: 1; scale: 1; rotate: 0deg; } }
@keyframes drift { to { transform: translateX(-50%); } }
