/* Musikinder — proposition 2026
   One motif: the note head of the Musikinder logo (the "i" written as a note).
   It shapes the hero mark, every photograph, the list bullets and the footer mark. */

:root {
  /* brand colours, taken from the logo */
  --navy: #1d3a94;
  --navy-deep: #142a6e;
  --motif: #f2761c;          /* the logo orange, brightened: used large and flat */
  --accent: var(--navy);     /* actions are navy with white text */
  --ink-deep: #0f1f52;       /* text on orange fields */
  --ground: #ffffff;
  --ground-2: #eef2fa;
  --pale-blue: #dce4f6;
  --ink: #1a2d72;
  --muted: #4a5682;
  --on-dark: #ffffff;
  --on-dark-soft: #dce4f6;

  /* type: one family, five sizes */
  --font: "Schibsted Grotesk", system-ui, sans-serif;
  --step-small: 0.875rem;
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.375rem, 1.05rem + 1.2vw, 2.125rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --step-display: clamp(2.75rem, 0.6rem + 3.6vw, 4.5rem);

  /* space */
  --m: clamp(16px, 2.2vw, 32px);
  --gap-section: clamp(96px, 12vw, 200px);
  --r: 20px;

  /* motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;
  --t-reveal: 800ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-body);
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}
img, video, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, figure { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
:focus-visible { outline: 3px solid var(--motif); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--motif); color: #fff; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.display {
  font-size: var(--step-display);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.92;
}
.head {
  font-size: var(--step-head);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

/* buttons: one shape, the round of the note head */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease;
}
.btn:hover { background: var(--navy-deep); transform: translateY(-2px); }
.btn:focus-visible { outline-color: var(--motif); }
.btn:active { transform: scale(0.97); }
.btn-small { min-height: 44px; padding: 0 20px; font-size: var(--step-small); }

.text-link {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  transition: text-underline-offset var(--t-hover) var(--ease-out), color var(--t-hover) ease;
}
.text-link:hover { text-underline-offset: 8px; text-decoration-color: var(--motif); }

/* ---------- bar ---------- */
.bar {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px var(--m);
}
.bar-name { font-weight: 800; text-decoration: none; letter-spacing: -0.03em; white-space: nowrap; }
.bar-links { display: flex; gap: clamp(16px, 2vw, 32px); margin-left: auto; }
.bar-links a, .lang a {
  font-weight: 600;
  text-decoration: none;
  padding: 10px 0;
  transition: color var(--t-hover) ease;
}
.bar-links a:hover, .lang a:hover { color: var(--navy); text-decoration: underline; text-decoration-color: var(--motif); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.bar-end { display: flex; align-items: center; gap: 20px; }
.lang { display: flex; gap: 10px; font-size: var(--step-small); }
.lang a { color: var(--muted); }
.lang a[aria-current] { color: var(--ink); }
.menu { display: none; position: relative; }
.menu summary {
  list-style: none;
  width: 48px; height: 48px;
  display: grid; place-content: center; gap: 6px;
  border-radius: 999px;
  background: var(--ground-2);
  cursor: pointer;
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary span { width: 20px; height: 3px; border-radius: 2px; background: var(--ink); transition: transform var(--t-ui) var(--ease-out); }
.menu[open] summary span:first-child { transform: translateY(4.5px) rotate(45deg); }
.menu[open] summary span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
.menu-panel {
  position: absolute; right: 0; top: 56px; z-index: 20;
  min-width: 240px;
  padding: 12px;
  display: grid;
  background: var(--navy);
  border-radius: var(--r);
  transform-origin: top right;
  animation: menu-in var(--t-ui) var(--ease-out);
}
.menu:not([open]) .menu-panel { display: none; }
.menu-panel a { color: #fff; text-decoration: none; font-weight: 600; font-size: var(--step-lead); padding: 8px 14px; border-radius: 12px; }
.menu-panel a:hover { background: var(--navy-deep); }
@keyframes menu-in { from { opacity: 0; transform: scale(0.94); } }

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 12px;
  height: calc(100svh - 76px);
  min-height: 640px;
  max-height: 1000px;
}
.hero-card {
  display: flex;
  flex-direction: column;
  background: var(--ground-2);
  border-radius: var(--r);
  overflow: hidden;
}
.hero-text { padding: clamp(28px, 4vw, 60px); padding-bottom: 0; }
.hero-logo { width: min(320px, 70%); height: auto; margin: 0 0 clamp(24px, 3.5vh, 40px) -6px; }
.hero h1 .line { white-space: nowrap; }
.hero-sub { margin-top: 24px; max-width: 40ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 28px; }
.hero-note {
  flex: 1;
  min-height: 150px;
  position: relative;
  color: var(--motif);
}
.hero-note svg {
  position: absolute;
  right: 6%;
  bottom: -14%;
  height: 112%;
  width: auto;
  transform: rotate(4deg);
  transform-origin: 50% 100%;
}
.hero-photo {
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--pale-blue);
}
.hero-photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.6s ease;
}
.hero-photo img.is-on { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .hero-photo img.is-on { animation: drift 9s var(--ease-soft) both; }
}
@keyframes drift { from { transform: scale(1.08); } to { transform: scale(1); } }

/* headline line reveal */
.lines .line { display: block; overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.lines [data-line] { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .js .lines [data-line] {
    transform: translateY(105%);
    animation: line-up 900ms var(--ease-out) forwards;
    animation-delay: calc(var(--i) * 110ms + 250ms);
  }
  .js [data-rise] {
    opacity: 0;
    transform: translateY(18px);
    animation: rise var(--t-reveal) var(--ease-out) forwards;
    animation-delay: calc(var(--i, 0) * 90ms + 200ms);
  }
  .js .hero-note svg { animation: note-in 1200ms var(--ease-out) 500ms both; }
}
@keyframes line-up { to { transform: none; } }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes note-in { from { transform: translateY(40%) rotate(12deg); } to { transform: rotate(4deg); } }

/* scroll reveal, once */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out);
    transition-delay: var(--d, 0ms);
  }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
}

/* ---------- intro statement ---------- */
.intro { padding: var(--gap-section) var(--m); }
.statement {
  max-width: 30em;
  margin: 0 auto;
  text-align: center;
  font-size: var(--step-lead);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.thumb {
  display: inline-block;
  width: 1.5em;
  height: 1em;
  vertical-align: -0.16em;
  margin: 0 0.06em;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; clip-path: url(#notehead); }

/* ---------- cours et tarifs ---------- */
.cours { padding: 0 var(--m); }
.cours-head {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 32px;
  align-items: end;
  padding-bottom: 48px;
}
.cours-lead { max-width: 44ch; }
.cours-lead strong { font-weight: 800; }
.tarifs { display: grid; gap: 8px; }
.tarif {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 32px clamp(32px, 5vw, 80px);
  padding: clamp(28px, 3.5vw, 48px);
  border-radius: var(--r);
}
.t-eveil { background: var(--pale-blue); }
.t-decouverte { background: var(--motif); color: var(--ink-deep); }
.t-instrument { background: var(--navy); color: var(--on-dark); }
.tarif-name { font-size: var(--step-lead); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; }
.tarif-meta { margin: 10px 0 24px; font-weight: 600; }
.dots { list-style: none; padding: 0; display: grid; gap: 8px; }
.dots li { position: relative; padding-left: 1.4em; }
.dots li::before {
  content: "";
  position: absolute; left: 0; top: 0.45em;
  width: 0.72em; height: 0.52em;
  border-radius: 50%;
  background: var(--motif);
  transform: rotate(-22deg);
}
.t-decouverte .dots li::before, .t-instrument .dots li::before { background: currentColor; }

.tarif-prix { display: grid; gap: 16px; align-content: start; justify-items: start; }
.prix-row { display: grid; grid-template-columns: repeat(var(--n, 1), 1fr); gap: 8px; width: 100%; }
.prix, .prix-table td {
  display: grid;
  gap: 4px;
  padding: 18px 22px;
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
}
.prix-label, .prix-table th { font-size: var(--step-small); font-weight: 600; text-align: left; }
.prix-val, .prix-table td {
  font-size: var(--step-head);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.prix-table { width: calc(100% + 16px); margin: -8px; border-collapse: separate; border-spacing: 8px; }
.prix-table td { display: table-cell; }
.prix-table thead th { padding: 0 4px; }
.prix-table tbody th { width: 22%; padding-right: 8px; font-size: var(--step-body); font-weight: 800; }
.prix-unit { font-size: var(--step-small); font-weight: 600; }
.prix-extra { max-width: 52ch; }
.t-instrument .btn { background: var(--motif); color: var(--ink-deep); }
.t-instrument .btn:hover { background: #fff; color: var(--navy); }
.cours-note { margin-top: 24px; color: var(--muted); max-width: 70ch; }

/* ---------- ateliers: stacked folders ---------- */
.ateliers { padding: var(--gap-section) 12px 0; }
.ateliers-head {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 32px;
  align-items: end;
  padding: 0 calc(var(--m) - 12px) 48px;
}
.ateliers-head p { max-width: 44ch; }
.folders { display: grid; }
.folders { gap: 8px; }
.folder {
  border-radius: var(--r);
  display: flex;
  flex-direction: column;
}
.folder-tab {
  height: 56px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 0 24px 0 16px;
}
.folder-tab h3 {
  height: 44px;
  display: flex;
  align-items: center;
  padding: 0 28px;
  font-size: var(--step-lead);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  white-space: nowrap;
  clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 100%, 0 100%);
  border-radius: 14px 14px 0 0;
}
.folder-tab span { font-size: var(--step-small); font-weight: 600; align-self: center; text-align: right; }
.folder-body {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  padding: 32px 24px 56px;
  align-items: start;
}
.nh-frame { grid-column: 1 / 8; aspect-ratio: 16 / 10; position: relative; }
.nh-frame img, .nh-frame video {
  width: 100%; height: 100%;
  object-fit: cover;
  clip-path: url(#notehead);
  transition: transform 900ms var(--ease-soft);
}
.folder:hover .nh-frame img { transform: scale(1.03) rotate(-1deg); }
.folder-text { grid-column: 9 / 13; display: grid; gap: 20px; justify-items: start; padding-top: 12px; }
.sound { position: absolute; left: 50%; bottom: 4%; transform: translateX(-50%); }
.sound:hover { transform: translateX(-50%) translateY(-2px); }

.f-navy { background: var(--navy); color: var(--on-dark); }
.f-navy .folder-tab h3 { background: var(--motif); color: var(--navy-deep); }
.f-pale { background: var(--pale-blue); }
.f-pale .folder-tab h3 { background: var(--navy); color: #fff; }
.f-orange { background: var(--motif); color: var(--ink-deep); }
.f-orange .folder-tab h3 { background: var(--ink-deep); color: #fff; }
.f-white { background: var(--ground-2); }
.f-white .folder-tab h3 { background: var(--navy); color: #fff; }
.f-navy .text-link:hover { color: var(--pale-orange); }

/* ---------- ateliers: summary on the home page, intro on their own page ---------- */
.teaser { padding: var(--gap-section) var(--m) 0; }
.teaser-panel {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 40px clamp(32px, 5vw, 80px);
  align-items: center;
}
.teaser-text { display: grid; gap: 24px; justify-items: start; }
.teaser-text p { max-width: 44ch; }
.nh-frame.teaser-photo { grid-column: 2; }
.places { grid-column: 1 / -1; list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.places a {
  display: grid;
  gap: 2px;
  padding: 12px 20px;
  border-radius: var(--r);
  background: #fff;
  text-decoration: none;
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.places a:hover { background: var(--navy); color: #fff; transform: translateY(-2px); }
.places a:active { transform: scale(0.97); }
.places strong { font-weight: 800; }
.places span { font-size: var(--step-small); font-weight: 600; }

.page-hero {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 40px clamp(32px, 5vw, 80px);
  align-items: center;
  padding: clamp(24px, 3vw, 48px) var(--m) clamp(48px, 6vw, 96px);
}
.page-lead { max-width: 46ch; margin-top: 28px; }
.page-hero-photo { aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; }
.page-hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.places a { background: var(--ground-2); }

.ateliers-page { padding-top: 0; }
.folder { scroll-margin-top: 16px; }

/* ---------- books: object on a note head ---------- */
.books {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 24px;
  padding: var(--gap-section) var(--m) 0;
  min-height: 100svh;
  align-items: end;
  overflow: clip;
}
.books-list { grid-column: 1; grid-row: 1; padding-bottom: 8px; }
.list-title { font-size: var(--step-lead); font-weight: 800; letter-spacing: -0.03em; color: var(--muted); line-height: 1.15; }
.books-intro { margin: 8px 0 20px; max-width: 34ch; color: var(--muted); }
.books-list ul { list-style: none; padding: 0; display: grid; }
.books-list button {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  font-size: var(--step-lead);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--muted);
  cursor: pointer;
  transition: color var(--t-hover) ease, transform var(--t-hover) var(--ease-out);
}
.books-list button::before {
  content: "";
  width: 0;
  height: 0.48em;
  border-radius: 50%;
  background: var(--book, var(--motif));
  transform: rotate(-22deg);
  transition: width var(--t-ui) var(--ease-out);
}
.books-list button:hover { color: var(--ink); transform: translateX(4px); }
.books-list button[aria-pressed="true"] { color: var(--ink); }
.books-list button[aria-pressed="true"]::before { width: 0.66em; }

.books-stage {
  grid-column: 2; grid-row: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  min-width: 0;
  container-type: inline-size;
}
.books-stage > * { --disc: min(84cqi, 60vh * 1.3, 640px); }
.disc {
  grid-column: 1; grid-row: 1;
  justify-self: center;
  width: var(--disc);
  aspect-ratio: 1.3;
  border-radius: 50%;
  background: var(--book, #9b6bb0);
  transform: rotate(-18deg);
  transition: background-color 300ms ease;
}
.cover {
  grid-column: 1; grid-row: 1;
  justify-self: center;
  align-self: center;
  height: calc(var(--disc) / 1.3 * 0.94);
  margin-top: calc(var(--disc) * -0.12);
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
}
.cover img {
  height: calc(var(--disc) / 1.3 * 0.94);
  width: auto;
  max-width: min(100%, 520px);
  object-fit: contain;
  border-radius: 6px;
  transition: opacity 300ms ease, transform 500ms var(--ease-out);
}
.cover img.is-swapping { opacity: 0; transform: translateY(10px) rotate(-2deg); }
.book-fact { grid-column: 1; grid-row: 2; justify-self: end; max-width: 44ch; display: grid; gap: 12px; justify-items: start; padding-bottom: 8px; }
.book-fact [data-fact-orig] { font-size: var(--step-small); font-weight: 600; color: var(--muted); }

/* ---------- about ---------- */
.about { padding: var(--gap-section) 20px 0; }
.about-panel {
  display: grid;
  grid-template-columns: 5fr 7fr;
  background: var(--pale-blue);
  color: var(--ink);
  border-radius: var(--r);
  overflow: hidden;
}
.about-photo { position: relative; min-height: 640px; background: var(--pale-blue); }
.about-photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
}
.about-text {
  padding: clamp(40px, 5vw, 80px);
  display: grid;
  gap: 44px;
  align-content: center;
  justify-items: start;
}
.about-text .head { color: var(--navy); }
.about-quote {
  margin: 0;
  max-width: 26em;
  font-size: var(--step-lead);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--navy);
}
.about-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 40px; }
.sub { font-size: var(--step-body); font-weight: 800; margin-bottom: 8px; }
.about-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 40px;
  margin: 0;
  padding: 28px 32px;
  width: 100%;
  background: #fff;
  border-radius: calc(var(--r) - 6px);
}
.about-facts div { display: grid; gap: 2px; align-content: start; }
.about-facts dt { font-size: var(--step-small); font-weight: 600; color: var(--muted); }
.about-facts dd { color: var(--navy); }
.about-facts dd { margin: 0; font-weight: 600; }
.about .btn { background: var(--motif); color: var(--ink-deep); }
.about .btn:hover { background: var(--navy); color: #fff; }

/* ---------- comusic: a small link card under Petra ---------- */
.comusic { padding: clamp(32px, 4vw, 56px) 20px 0; }
.comusic-card {
  display: grid;
  grid-template-columns: minmax(160px, 240px) 1fr auto;
  gap: 32px;
  align-items: center;
  padding: 16px 32px 16px 16px;
  border-radius: var(--r);
  background: var(--ground-2);
  color: inherit;
  text-decoration: none;
  transition: background-color var(--t-hover) ease;
}
.comusic-card:hover { background: var(--pale-blue); }
.comusic-card img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; }
.comusic-text { display: grid; gap: 8px; }
.comusic-text p { max-width: 62ch; }
.comusic-title { font-size: var(--step-lead); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.comusic-go {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border-radius: 999px;
  background: var(--navy); color: #fff;
  font-weight: 600; white-space: nowrap;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease;
}
.comusic-card:hover .comusic-go { background: var(--navy-deep); transform: translateY(-2px); }
.comusic-card:active .comusic-go { transform: scale(0.97); }

/* ---------- contact: coupon ---------- */
.contact { padding: var(--gap-section) var(--m); }
.coupon {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 42fr auto 58fr;
  background: var(--motif);
  color: var(--ink-deep);
  border-radius: var(--r);
}
.coupon-left { padding: 48px; display: flex; flex-direction: column; gap: 20px; }
.perf { position: relative; width: 0; border-left: 6px dotted var(--ground); margin: 30px 0; }
.perf::before, .perf::after {
  content: "";
  position: absolute; left: -17px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--ground);
}
.perf::before { top: -44px; }
.perf::after { bottom: -44px; }
.coupon-actions { list-style: none; margin: 0; padding: 40px 48px; display: grid; gap: 10px; align-content: center; }
.coupon-actions a {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2px 16px;
  min-height: 76px;
  padding: 12px 24px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.coupon-actions a:hover { background: var(--navy-deep); color: #fff; transform: translateY(-2px); }
.coupon-actions a:active { transform: scale(0.98); }
.coupon-actions small { font-size: var(--step-small); font-weight: 600; color: inherit; opacity: 0.85; }
.coupon-actions strong { grid-column: 1; font-weight: 800; overflow-wrap: anywhere; }
.coupon-actions span[aria-hidden] { grid-column: 2; grid-row: 1 / 3; font-size: var(--step-lead); transition: transform var(--t-hover) var(--ease-out); }
.coupon-actions a:hover span[aria-hidden] { transform: translateX(6px); }

/* ---------- footer ---------- */
.foot { background: var(--ground-2); padding: 64px var(--m) 28px; }
.mark {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: max(34svh, 200px);
  text-decoration: none;
}
.mark > span {
  flex: 1;
  height: calc(var(--h) * 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  border-radius: 10px 10px 0 0;
  color: var(--ground-2);
  font-size: clamp(2.5rem, 7.6vw, 8.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.8;
  padding-bottom: 0.08em;
  transition: height 500ms var(--ease-out);
}
.mark > span:nth-child(odd) { background: var(--navy); }
.mark > span:nth-child(even) { background: var(--motif); color: var(--navy-deep); }
.mark:hover > span { height: calc((var(--h) * 0.85 + 0.15) * 100%); }
.mark-note svg { width: 62%; height: auto; margin-bottom: 0.06em; }
.foot-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr) 1.4fr;
  gap: 32px;
  margin-top: 56px;
}
.foot-cols > div { display: grid; gap: 6px; align-content: start; justify-items: start; }
.foot-cols h3 { font-size: var(--step-body); font-weight: 800; margin-bottom: 6px; }
.foot-cols a, .foot-cols span { overflow-wrap: anywhere; }
.foot-cols a { text-decoration: none; transition: color var(--t-hover) ease; }
.foot-cols a:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 4px; }
.foot-last { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 56px; font-size: var(--step-small); }

/* ---------- tablet ---------- */
@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; height: auto; min-height: 0; max-height: none; gap: 0; }
  .hero-photo { order: -1; height: 52svh; }
  .hero-card { margin-top: -24px; position: relative; z-index: 1; }
  .bar-links, .bar-end .btn-small { display: none; }
  .bar-end { margin-left: auto; }
  .menu { display: block; }

  .cours-head { grid-template-columns: 1fr; gap: 20px; }
  .tarif { grid-template-columns: 1fr; }

  .folder-body { grid-template-columns: 1fr; }
  .nh-frame, .folder-text { grid-column: 1; }
  .folder-text { max-width: 60ch; }

  .books { grid-template-columns: 1fr; min-height: 0; }
  .books-stage { grid-column: 1; grid-row: 1; }
  .book-fact { justify-self: start; }
  .books-list { grid-row: 2; }

  .foot-cols { grid-template-columns: repeat(3, 1fr); }
  .foot-contact { grid-column: 1 / -1; }
  .coupon { grid-template-columns: 1fr; }
  .perf { width: auto; height: 0; border-left: 0; border-top: 6px dotted var(--ground); margin: 0 26px; }
  .perf::before, .perf::after { top: -17px; bottom: auto; }
  .perf::before { left: -44px; }
  .perf::after { left: auto; right: -44px; }
  .coupon-left { padding-bottom: 32px; }
  .coupon-actions { padding-top: 32px; }

  .teaser-panel { grid-template-columns: 1fr; }
  .nh-frame.teaser-photo { grid-column: 1; }
  .page-hero { grid-template-columns: 1fr; }
  .page-hero-photo { order: -1; }

  .comusic-card { grid-template-columns: 200px 1fr; padding: 16px; }
  .comusic-go { grid-column: 2; justify-self: start; }

  .about-panel { grid-template-columns: 1fr; }
  .about-photo { min-height: 0; aspect-ratio: 4 / 3; }
  .about-photo img { object-position: 50% 18%; }
}

/* ---------- phone ---------- */
@media (max-width: 720px) {
  :root {
    --step-display: 2.375rem;
    --step-head: 2rem;
    --step-lead: 1.375rem;
    --step-body: 1.0625rem;
  }
  .bar { padding: 12px 16px; }
  .hero-photo { height: 48svh; }
  .hero-text { padding: 28px 22px 0; }
  .hero-logo { width: 62%; }
  .hero-note { min-height: 170px; }
  .hero-note svg { right: 4%; }

  .intro { padding: 96px 20px; }
  .statement { text-align: left; }
  .hide-sm { display: none; }

  .teaser { padding: 96px 10px 0; }
  .teaser-panel { padding: 0 8px; }
  .places a { padding: 10px 16px; }
  .cours { padding: 0 12px; }
  .cours-head { padding: 0 8px 28px; }
  .tarif { padding: 28px 20px; }
  .prix, .prix-table td { padding: 14px 14px; }
  .prix-val, .prix-table td { font-size: var(--step-lead); }
  .prix-table tbody th { font-size: var(--step-small); }
  .cours-note { padding: 0 8px; }

  .ateliers-head { grid-template-columns: 1fr; gap: 16px; padding: 0 8px 32px; }
  .folder-tab { height: auto; flex-direction: column; align-items: flex-start; gap: 6px; padding: 0 20px 0 12px; }
  .folder-tab h3 { height: 40px; padding: 0 20px; }
  .folder-tab span { text-align: left; padding-left: 8px; align-self: flex-start; }
  .folder-body { padding: 16px 20px 28px; }
  .nh-frame { aspect-ratio: 16 / 11; }

  .books { padding: 96px 16px 0; }
  .books-stage { grid-template-columns: 1fr; }
  .books-stage > * { --disc: min(86vw, 420px); }
  .book-fact { grid-column: 1; grid-row: 2; }
  .books-list { grid-row: 2; }
  .books-list ul { display: flex; flex-wrap: wrap; gap: 0 18px; }
  .books { display: flex; flex-direction: column; align-items: stretch; }
  .books-list { order: -1; }

  .about { padding: 96px 10px 0; }
  .comusic { padding: 32px 10px 0; }
  .comusic-card { grid-template-columns: 1fr; gap: 16px; padding: 12px 12px 20px; }
  .comusic-card img { aspect-ratio: 16 / 9; }
  .comusic-text, .comusic-go { grid-column: 1; margin: 0 8px; }
  .comusic-go { white-space: normal; }
  .about-photo { aspect-ratio: 4 / 5; max-height: 70svh; width: 100%; }
  .about-text { padding: 32px 24px 40px; gap: 32px; }
  .about-cols, .about-facts { grid-template-columns: 1fr; }
  .about-facts { padding: 24px; }

  .contact { padding: 96px 12px; }
  .coupon { grid-template-columns: 1fr; }
  .coupon-left { padding: 32px 24px; }
  .perf { width: auto; height: 0; border-left: 0; border-top: 6px dotted var(--ground); margin: 0 26px; }
  .perf::before, .perf::after { top: -17px; bottom: auto; }
  .perf::before { left: -44px; }
  .perf::after { left: auto; right: -44px; }
  .coupon-actions { padding: 28px 16px 24px; }
  .coupon-actions a { border-radius: 20px; padding: 12px 20px; }

  .mark { height: 22svh; min-height: 150px; gap: 3px; }
  .mark > span { border-radius: 6px 6px 0 0; font-size: var(--step-head); }
  .foot-cols { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .foot-contact { grid-column: 1 / -1; }
  .foot-cols a { min-height: 32px; display: inline-flex; align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
