/* PACE Training — sub-pages (/trial, /programs).
   Loaded after site.css: same tokens, type and door motion. Nothing here touches the home page.
   Layout rules carried over from the home page: the opening is the same three-film hero, and every heading starts at the left edge. */

/* ---------- Opening: the home hero, with a two-line headline ---------- */
.hero--page .display { font-size: clamp(56px, 9.4vw, 152px); }
/* One film across the full width. Each page sets the film's object-position so its subject stays in the band that shows. */
.hero--one .hero__films { grid-template-columns: 1fr; }
/* A full-width film can put bright sky or walls behind the menu: a firmer shade at the top keeps it readable. */
.hero--one::after { background: linear-gradient(180deg, rgba(17,17,17,.66) 0, rgba(17,17,17,.14) 24%, rgba(17,17,17,.08) 44%, rgba(17,17,17,.86) 100%); }

/* ---------- Trial: what the week includes ---------- */
.facts { padding-block: var(--section); }
.facts__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.fact { display: grid; gap: 14px; align-content: start; padding-top: 22px; border-top: 1px solid var(--ink); }
.fact__big { font: 400 clamp(40px, 4.6vw, 76px)/.95 var(--display); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.fact p:not(.fact__big) { color: var(--muted-on-paper); max-width: 28ch; }

/* ---------- Trial: your first class (words left, photo right, as in the Visit section) ---------- */
.first { padding-block: var(--section); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 96px); align-items: end; }
.first__photo { overflow: hidden; margin: 0; background: var(--char); }
.first__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.first__copy { display: grid; gap: 28px; }
.steps { counter-reset: step; border-top: 1px solid var(--char); margin-top: 12px; }
.steps li {
  counter-increment: step; display: grid; grid-template-columns: clamp(52px, 5.4vw, 88px) 1fr; column-gap: 20px; row-gap: 8px;
  padding: 26px 0; border-bottom: 1px solid var(--char);
}
.steps li::before {
  content: counter(step); grid-row: 1 / span 2;
  font: 400 clamp(40px, 4vw, 64px)/.9 var(--display); letter-spacing: -.04em; color: var(--grey); font-variant-numeric: tabular-nums;
}
.steps h3 { font: 400 clamp(22px, 2vw, 30px)/1.1 var(--display); letter-spacing: -.02em; }
.steps p { color: var(--mist); max-width: 44ch; }
.first__note { color: var(--grey); font-size: 14px; }
.first__note a { color: var(--paper); }

/* ---------- Ruled lists on ink: heading left, list right, the same split as Questions ---------- */
.when { padding-bottom: var(--section); display: grid; grid-template-columns: 1fr 1.4fr; gap: 32px; }
.when__head { display: grid; gap: 24px; align-content: start; justify-items: start; }
.when__list { border-top: 1px solid var(--char); }
.when__list > div { display: grid; grid-template-columns: minmax(150px, 1fr) 2.4fr; gap: 10px 24px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--char); }
.when__list dt { color: var(--grey); }
.when__list dd { color: var(--mist); }
.times { display: flex; flex-wrap: wrap; gap: 6px 28px; }
.times time { font: 400 clamp(22px, 2vw, 30px)/1 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--paper); }
.times time small { margin-left: 3px; font: 400 14px var(--text); letter-spacing: 0; color: var(--grey); }

/* ---------- Trial: after your week ---------- */
.after { padding-block: var(--section); }
.rows { border-top: 1px solid var(--ink); }
.row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) minmax(120px, auto) auto; gap: 12px 32px; align-items: center;
  padding: 26px 0; border-bottom: 1px solid rgba(17, 17, 17, .2); color: inherit; text-decoration: none;
}
.row__name { font: 400 clamp(26px, 2.4vw, 38px)/1 var(--display); letter-spacing: -.03em; }
.row__what { color: var(--muted-on-paper); }
.row__price { font: 400 clamp(26px, 2.4vw, 38px)/1 var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.row__price small { font: 400 15px var(--text); letter-spacing: 0; color: var(--muted-on-paper); }
@media (hover: hover) {
  .row:hover .btn { color: var(--on-fill); }
  .row:hover .btn::before { transform: none; }
}
.after__note { margin-top: 28px; color: var(--muted-on-paper); }

/* ---------- Programs: one row per session. Film left, words right, every row, as in the home page's week ---------- */
.sessions { padding-block: var(--section) clamp(56px, 8vw, 120px); }
.sess {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: center;
  padding-block: clamp(32px, 4vw, 56px); border-top: 1px solid var(--char);
}
.sess__film { position: relative; overflow: hidden; aspect-ratio: 4 / 5; margin: 0; background: var(--char); }
.sess__film video, .sess__film img { width: 100%; height: 100%; object-fit: cover; }
.sess__day { font-size: 14px; color: var(--grey); }
.sess__name { font: 400 clamp(56px, 8vw, 128px)/.9 var(--display); letter-spacing: -.045em; margin: 12px 0 22px; }
.sess__desc { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.5; color: var(--mist); max-width: 34ch; }

/* ---------- Programs: the timetable ---------- */
.tt { width: 100%; border-collapse: collapse; border-top: 1px solid var(--char); }
.tt th, .tt td { text-align: left; font-weight: 400; padding: 22px 24px 22px 0; border-bottom: 1px solid var(--char); vertical-align: baseline; }
.tt td:last-child { padding-right: 0; }
.tt tbody th { color: var(--grey); font-size: 16px; white-space: nowrap; width: 22%; }
.tt__class { font: 400 clamp(22px, 2vw, 30px)/1 var(--display); letter-spacing: -.02em; width: 30%; }
.tt__times { color: var(--mist); font-variant-numeric: tabular-nums; }

/* ---------- Tablet ---------- */
@media (max-width: 1080px) {
  .row { grid-template-columns: minmax(0, 1fr) auto; }
  .row__what { grid-column: 1 / -1; grid-row: 2; }
  .row .btn { grid-column: 1 / -1; justify-self: start; }
}

/* ---------- Phone ---------- */
@media (max-width: 760px) {
  .hero--page .display { font-size: clamp(50px, 14.6vw, 76px); }

  .facts__grid, .first, .sess, .when { grid-template-columns: 1fr; }
  .facts__grid { gap: 36px; }
  .first { gap: 40px; }
  .sess { gap: 24px; }
  .sess__film { aspect-ratio: 1 / 1; }
  .when__list > div { grid-template-columns: 1fr; }
  .row .btn { width: 100%; }

  /* The table reads as a list: day over class, times under. */
  .tt tbody, .tt tr { display: block; }
  .tt tr { display: grid; gap: 6px; padding: 18px 0; border-bottom: 1px solid var(--char); }
  .tt th, .tt td { display: block; padding: 0; border: 0; width: auto; }
  .tt tbody th { font-size: 14px; }
}
