/* Home page (index.php) — luxe "rehearsal room". Tokens come from site.css; fallbacks keep the page readable alone. */

.page-home main > section { margin-block: var(--space, clamp(72px, 10vw, 150px)); }
.page-home main > section.bleed { margin-block: 0; }
.page-home main > section.h-poster { margin-top: 0; }
.page-home .bleed { width: 100vw; margin-left: calc(50% - 50vw); }
.page-home main { overflow-x: clip; }
/* distance from the window edge to the .wrap content edge: split sections run their photo to the other edge */
.page-home { --h-pad: clamp(16px, 4vw, 48px); --h-edge: max(var(--h-pad), calc((100% - var(--wrap, 1240px)) / 2 + var(--h-pad))); }

/* section heads: roman numeral, small caps eyebrow, Bodoni title */
.h-head { max-width: var(--text, 600px); margin-bottom: clamp(32px, 4vw, 56px); }
.h-head--center { margin-inline: auto; text-align: center; }
.h-head .numeral { display: block; font-family: "Libre Bodoni", Georgia, serif; font-size: 22px; color: var(--maroon, #8b4543); margin-bottom: 10px; }
.h-head .eyebrow, .page-home .eyebrow {
  font-family: "Public Sans", system-ui, sans-serif; font-size: 12.5px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--maroon, #8b4543); margin: 0 0 14px;
}
.h-head h2, .page-home main h2 {
  font-family: "Libre Bodoni", Georgia, serif; font-weight: 400; font-size: clamp(32px, 3.6vw, 52px);
  line-height: 1.12; letter-spacing: -.01em; color: var(--ink, #2b1a18); margin: 0;
}
.h-head__lede { margin: 18px 0 0; color: var(--ink-2, #4e3a36); }
.h-head--center .h-head__lede { margin-inline: auto; }
.page-home a:focus-visible, .page-home button:focus-visible { outline: 2px solid var(--maroon, #8b4543); outline-offset: 3px; }

/* I · voice-poster (B02) */
.h-poster { position: relative; min-height: min(92vh, 900px); display: grid; align-items: end; overflow: hidden;
  color: #fbf7f1; background: var(--dark, #2a1816); isolation: isolate; }
.h-poster__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%;
  z-index: -2; animation: h-zoom 1.6s cubic-bezier(.2, .6, .2, 1) both; transform-origin: 50% 40%; }
.h-poster::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(42, 24, 22, .18) 0%, rgba(42, 24, 22, .5) 32%, rgba(42, 24, 22, .84) 60%, rgba(42, 24, 22, .93) 100%); }
.h-poster__in { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(220px, .6fr); gap: clamp(32px, 6vw, 96px);
  align-items: end; padding-top: 120px; padding-bottom: clamp(40px, 6vw, 88px); width: 100%; }
.h-poster__eyebrow { color: #f2d9c6 !important; display: flex; align-items: center; gap: 14px; }
.h-poster__eyebrow .h-num { font-family: "Libre Bodoni", Georgia, serif; font-size: 18px; letter-spacing: 0; color: #f2d9c6; }
.h-poster h1 { font-family: "Libre Bodoni", Georgia, serif; font-weight: 400; font-size: clamp(44px, 6vw, 88px); line-height: 1.04;
  letter-spacing: -.01em; margin: 0 0 22px; max-width: 14ch; color: #fff; }
.h-poster__lede { max-width: 540px; font-size: 18px; color: #f6ece2; margin: 0 0 30px; }
.h-poster__cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 0; }
.h-poster .h-btn-light { color: #fff; border-color: rgba(255, 255, 255, .7); background: transparent; }
.h-poster .h-btn-light:hover { background: rgba(255, 255, 255, .12); }
.h-poster__figs { margin: 0; display: grid; gap: 0; }
.h-poster__figs > div { border-top: 1px solid rgba(246, 236, 226, .45); padding: 14px 0 16px; display: flex; flex-direction: column-reverse; }
.h-poster__figs dt { font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #e6d3c6; }
.h-poster__figs dd { margin: 0 0 4px; font-family: "Libre Bodoni", Georgia, serif; font-size: clamp(40px, 4.4vw, 64px); line-height: 1; color: #fff;
  font-variant-numeric: lining-nums tabular-nums; }

/* II · room-picker: 60/40 split list + tall photo that follows the hovered row */
.h-rooms { padding-left: var(--h-edge); display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: stretch; }
.h-rooms__rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line, rgba(43, 26, 24, .16)); }
.h-rooms__row { position: relative; }
.h-rooms__row::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line, rgba(43, 26, 24, .16));
  transform-origin: left; }
html.js .h-rooms__rows.reveal:not(.in) .h-rooms__row::after { transform: scaleX(0); }
.h-rooms__rows.in .h-rooms__row::after { animation: h-draw 1.1s cubic-bezier(.3, .7, .2, 1) both; }
.h-rooms__rows.in .h-rooms__row:nth-child(2)::after { animation-delay: .12s; }
.h-rooms__rows.in .h-rooms__row:nth-child(3)::after { animation-delay: .24s; }
.h-rooms__rows.in .h-rooms__row:nth-child(4)::after { animation-delay: .36s; }
.h-rooms__row a { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 24px; align-items: baseline; padding: 28px 0;
  color: var(--ink, #2b1a18); text-decoration: none; transition: padding .6s ease; }
.h-rooms__n { font-family: "Libre Bodoni", Georgia, serif; font-size: 20px; color: var(--maroon, #8b4543); }
.h-rooms__name { display: block; font-family: "Libre Bodoni", Georgia, serif; font-size: clamp(28px, 3vw, 42px); line-height: 1.1; margin-bottom: 8px; }
.h-rooms__lead { display: block; color: var(--ink-2, #4e3a36); max-width: 46ch; font-size: 16px; }
.h-rooms__count { font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2, #4e3a36); white-space: nowrap; }
.h-rooms__row a:hover, .h-rooms__row a:focus-visible { padding-left: 12px; }
.h-rooms__row a:hover .h-rooms__name { color: var(--maroon, #8b4543); }
.h-rooms__media { position: relative; min-height: 560px; overflow: hidden; background: var(--paper-2, #f4e9dc); }
.h-rooms__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04);
  transition: opacity .8s ease, transform 1.6s ease; }
.h-rooms__photo[data-room="instrument"] { opacity: 1; transform: none; }
.h-rooms:has(.h-rooms__row:is(:hover, :focus-within)) .h-rooms__photo { opacity: 0; transform: scale(1.04); }
.h-rooms:has(.h-rooms__row[data-room="instrument"]:is(:hover, :focus-within)) .h-rooms__photo[data-room="instrument"],
.h-rooms:has(.h-rooms__row[data-room="table"]:is(:hover, :focus-within)) .h-rooms__photo[data-room="table"],
.h-rooms:has(.h-rooms__row[data-room="front"]:is(:hover, :focus-within)) .h-rooms__photo[data-room="front"],
.h-rooms:has(.h-rooms__row[data-room="lens"]:is(:hover, :focus-within)) .h-rooms__photo[data-room="lens"] { opacity: 1; transform: none; }

/* III · sentence-wall: two-column masonry of problem sentences */
.h-wall__list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: clamp(40px, 6vw, 96px); }
.h-wall__item { break-inside: avoid; padding: 30px 0 32px; border-top: 1px solid var(--line, rgba(43, 26, 24, .16)); }
.h-wall__say { font-family: "Libre Bodoni", Georgia, serif; font-style: italic; font-size: clamp(22px, 2.1vw, 30px); line-height: 1.32;
  color: var(--ink, #2b1a18); margin: 0 0 16px; }
.h-wall__item:nth-child(3n+1) .h-wall__say { font-size: clamp(25px, 2.5vw, 36px); }
.h-wall__link { font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--maroon, #8b4543);
  text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .6s ease; }
.h-wall__link:hover { border-bottom-color: currentColor; }

/* IV · breath-score: dark typographic band, marks draw in one after another */
.h-score { background: var(--dark, #2a1816); color: #f6ece2; padding: clamp(80px, 11vw, 160px) 0; }
.h-score .h-head h2 { color: #f6ece2; }
.h-score .numeral, .h-score .eyebrow { color: #e3b9a0 !important; }
.h-score__line { font-family: "Libre Bodoni", Georgia, serif; font-size: clamp(40px, 6.4vw, 96px); line-height: 1.5; letter-spacing: -.01em;
  margin: 0 0 clamp(48px, 6vw, 80px); max-width: 18ch; color: #fbf7f1; }
.mk { position: relative; display: inline-block; }
.mk--stress { background: linear-gradient(#e3b9a0, #e3b9a0) left 100% / 100% 3px no-repeat; padding-bottom: .02em; }
.mk--pause { width: .5em; height: .9em; vertical-align: -.08em; }
.mk--pause::before, .mk--long::after { content: ""; position: absolute; top: 0; bottom: 0; width: 3px; background: #e3b9a0; left: 50%; }
.mk--long { width: .7em; }
.mk--long::before { left: 34%; }
.mk--long::after { left: 60%; }
.mk--breath { color: #e3b9a0; font-size: .9em; margin-right: .08em; vertical-align: .18em; }
html.js .h-score__line.reveal:not(.in) .mk--stress { background-size: 0 3px; }
html.js .h-score__line.reveal:not(.in) .mk--pause::before,
html.js .h-score__line.reveal:not(.in) .mk--long::after { transform: scaleY(0); }
html.js .h-score__line.reveal:not(.in) .mk--breath { opacity: 0; }
.h-score__line.in .mk--stress { animation: h-underline .9s cubic-bezier(.3, .7, .2, 1) both; animation-delay: calc(.5s + var(--i, 0) * .45s); }
.h-score__line.in .mk--pause::before,
.h-score__line.in .mk--long::after { animation: h-bar .7s cubic-bezier(.3, .7, .2, 1) both; animation-delay: calc(.5s + var(--i, 0) * .45s);
  transform-origin: 50% 100%; }
.h-score__line.in .mk--long::after { animation-delay: calc(.65s + var(--i, 0) * .45s); }
.h-score__line.in .mk--breath { animation: h-breath .8s ease both; animation-delay: calc(.5s + var(--i, 0) * .45s); }
.h-score__key { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); margin: 0 0 40px;
  border-top: 1px solid rgba(246, 236, 226, .3); padding-top: 28px; }
.h-score__key dt { font-family: "Libre Bodoni", Georgia, serif; font-size: 30px; line-height: 1; height: 36px; display: flex; align-items: center; gap: 10px;
  color: #d4bfb3; margin-bottom: 14px; }
.h-score__key dd { margin: 0; color: #d4bfb3; font-size: 16px; }
.key-pause { display: inline-block; width: 3px; height: 28px; background: #e3b9a0; }
.key-pause--long { width: 12px; background: linear-gradient(90deg, #e3b9a0 0 3px, transparent 3px 9px, #e3b9a0 9px 12px); }
.key-stress { color: #fbf7f1; background: linear-gradient(#e3b9a0, #e3b9a0) left 100% / 100% 3px no-repeat; padding-bottom: 2px; }
.key-breath { color: #e3b9a0; font-size: 40px; }
.h-score__more { margin: 0; }
.h-score .link-arrow { color: #f6ece2; text-decoration: none; border-bottom: 1px solid rgba(246, 236, 226, .5); padding-bottom: 3px; }
.h-score .link-arrow:hover { border-bottom-color: #f6ece2; }

/* V · lesson-anatomy (B06): photo 60 %, paper card overlapping by 80px */
.h-anat { padding-right: var(--h-edge); display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .9fr); align-items: center; }
.h-anat__media { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; }
.h-anat__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.h-anat__card { position: relative; margin-left: -80px; padding: clamp(32px, 4vw, 56px); background: var(--paper, #fbf7f1);
  border: 1px solid var(--line, rgba(43, 26, 24, .16)); }
.h-anat__card .numeral { display: block; font-family: "Libre Bodoni", Georgia, serif; font-size: 22px; color: var(--maroon, #8b4543); margin-bottom: 10px; }
.h-anat__card h2 { margin-bottom: 18px !important; font-size: clamp(28px, 3vw, 42px) !important; }
.h-anat__card > p { color: var(--ink-2, #4e3a36); }
.h-anat__steps { list-style: none; counter-reset: st; margin: 24px 0 28px; padding: 0; }
.h-anat__steps li { counter-increment: st; display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 8px; padding: 14px 0;
  border-top: 1px solid var(--line, rgba(43, 26, 24, .16)); }
.h-anat__steps li::before { content: counter(st, upper-roman); font-family: "Libre Bodoni", Georgia, serif; color: var(--maroon, #8b4543); grid-row: span 2; }
.h-anat__steps b { font-weight: 600; }
.h-anat__steps span { color: var(--ink-2, #4e3a36); font-size: 16px; }
.page-home .link-arrow { color: var(--maroon, #8b4543); font-weight: 500; }

/* VI · six-week-plan: ruled table */
.h-plan__top { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(200px, 1fr); gap: clamp(32px, 5vw, 80px); align-items: end;
  margin-bottom: clamp(32px, 4vw, 56px); }
.h-plan__top .h-head { margin-bottom: 0; }
.h-plan__img { width: 100%; aspect-ratio: 3 / 2; height: auto; object-fit: cover; display: block; }
.h-plan__scroll { overflow-x: auto; }
.h-plan__table { width: 100%; border-collapse: collapse; font-size: 16px; }
.h-plan__table th, .h-plan__table td { text-align: left; vertical-align: top; padding: 20px 18px 20px 0; border-top: 1px solid var(--line, rgba(43, 26, 24, .16)); }
.h-plan__table thead th { font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2, #4e3a36);
  border-top: 0; border-bottom: 1px solid var(--ink, #2b1a18); padding-bottom: 12px; }
.h-plan__table tbody tr:last-child > * { border-bottom: 1px solid var(--line, rgba(43, 26, 24, .16)); }
.h-plan__wk { font-family: "Libre Bodoni", Georgia, serif; font-size: 36px; font-weight: 400; line-height: 1; color: var(--maroon, #8b4543); }
.h-plan__table td p { margin: 0 0 6px; color: var(--ink-2, #4e3a36); }
.h-plan__table td a { color: var(--ink, #2b1a18); font-weight: 500; }
.h-plan__min { font-family: "Libre Bodoni", Georgia, serif; font-size: 24px; white-space: nowrap; }
.h-plan__min small { display: block; font-family: "Public Sans", system-ui, sans-serif; font-size: 13px; color: var(--muted, #6e5953); margin-top: 6px; }
.h-plan__more { margin: 28px 0 0; }

/* VII · bundles: one featured left with photo, two stacked right */
.h-bund__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-template-rows: auto auto; gap: clamp(24px, 3vw, 40px); }
.h-bund__item { border: 1px solid var(--line, rgba(43, 26, 24, .16)); background: var(--paper, #fbf7f1); display: flex; flex-direction: column; }
.h-bund__item--lead { grid-row: span 2; background: var(--paper-2, #f4e9dc); }
.h-bund__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.h-bund__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.6s ease; }
.h-bund__media:hover img { transform: scale(1.03); }
.h-bund__body { padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; flex: 1; }
.h-bund__body h3 { font-family: "Libre Bodoni", Georgia, serif; font-weight: 400; font-size: clamp(28px, 2.6vw, 38px); margin: 0 0 10px; }
.h-bund__item--lead h3 { font-size: clamp(34px, 3.4vw, 50px); }
.h-bund__body h3 a { color: var(--ink, #2b1a18); text-decoration: none; }
.h-bund__body h3 a:hover { color: var(--maroon, #8b4543); }
.h-bund__sum { color: var(--ink-2, #4e3a36); margin: 0 0 18px; }
.h-bund__parts { list-style: none; margin: 0 0 24px; padding: 0; font-size: 15px; }
.h-bund__parts li { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-top: 1px solid var(--line, rgba(43, 26, 24, .16)); }
.h-bund__parts a { color: var(--ink, #2b1a18); }
.h-bund__parts span { color: var(--ink-2, #4e3a36); font-variant-numeric: tabular-nums; }
.h-bund__buy { margin-top: auto; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; }
.h-bund__price { margin: 0; }
.h-bund__price .price { font-family: "Libre Bodoni", Georgia, serif; font-size: 40px; line-height: 1; display: block; color: var(--ink, #2b1a18); }
.h-bund__price small { display: block; margin-top: 8px; font-size: 13px; color: var(--ink-2, #4e3a36); }
.h-bund__buy form { margin: 0; }

/* VIII · honest-limits: two-column list with hairlines */
.h-limits__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(40px, 6vw, 96px); }
.h-limits__list li { padding: 24px 0; border-top: 1px solid var(--line, rgba(43, 26, 24, .16)); color: var(--ink-2, #4e3a36); }
.h-limits__list b { display: block; font-family: "Libre Bodoni", Georgia, serif; font-weight: 400; font-size: 24px; color: var(--ink, #2b1a18); margin-bottom: 6px; }

/* IX · mosaic-close (B15) with a paper panel */
.h-mosaic { position: relative; }
.h-mosaic__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 300px 300px; gap: 6px; }
.h-mosaic__grid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.h-mosaic__grid img:first-child { grid-row: span 2; }
.h-mosaic__panel { position: absolute; left: clamp(16px, 6vw, 96px); bottom: clamp(24px, 5vw, 64px); max-width: 520px;
  background: var(--paper, #fbf7f1); padding: clamp(28px, 3.5vw, 48px); border: 1px solid var(--line, rgba(43, 26, 24, .16)); }
.h-mosaic__panel .numeral { display: block; font-family: "Libre Bodoni", Georgia, serif; font-size: 22px; color: var(--maroon, #8b4543); margin-bottom: 10px; }
.h-mosaic__panel h2 { font-size: clamp(28px, 2.8vw, 40px) !important; margin-bottom: 14px !important; }
.h-mosaic__panel p { color: var(--ink-2, #4e3a36); margin: 0 0 24px; }

/* motion */
@keyframes h-zoom { from { transform: scale(1.06); } to { transform: scale(1); } }
@keyframes h-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes h-underline { from { background-size: 0 3px; } to { background-size: 100% 3px; } }
@keyframes h-bar { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes h-breath { from { opacity: 0; transform: translateY(-.25em); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .h-poster__img, .h-rooms__rows .h-rooms__row::after, .h-score__line .mk, .h-score__line .mk::before, .h-score__line .mk::after {
    animation: none !important; }
  html.js .h-rooms__rows.reveal:not(.in) .h-rooms__row::after,
  html.js .h-score__line.reveal:not(.in) .mk--pause::before,
  html.js .h-score__line.reveal:not(.in) .mk--long::after { transform: none; }
  html.js .h-score__line.reveal:not(.in) .mk--stress { background-size: 100% 3px; }
  html.js .h-score__line.reveal:not(.in) .mk--breath { opacity: 1; }
  .h-rooms__photo, .h-rooms__row a, .h-bund__media img { transition: none; }
}

/* narrower screens: plain stacking, no special mobile work */
@media (max-width: 960px) {
  .h-poster__in, .h-rooms, .h-anat, .h-plan__top, .h-bund__grid, .h-score__key, .h-limits__list { grid-template-columns: 1fr; }
  .h-rooms { padding-left: 0; }
  .h-rooms__list { padding-inline: var(--h-pad); }
  .h-rooms__media { min-height: 420px; }
  .h-anat { padding-right: 0; }
  .h-anat__card { margin: -48px 16px 0; }
  .h-bund__item--lead { grid-row: auto; }
  .h-wall__list { columns: 1; }
  .h-mosaic__grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .h-mosaic__grid img { aspect-ratio: 4 / 5; }
  .h-mosaic__grid img:first-child { grid-column: span 2; grid-row: auto; aspect-ratio: 16 / 10; }
  .h-mosaic__panel { position: relative; left: auto; bottom: auto; margin: -64px 16px 0; }
}
