/*
  Tehran Pars inner pages (Piano, Prices, Free trial). Loaded after tokens.css and site.css;
  the header, menu, footer, seams, reveal system and motion keyframes all come from site.css.
*/

:root {
  --h1-inner: clamp(2.75rem, 1rem + 6vw, 6.25rem);   /* 44px phone to 100px desktop */
}

/* =========================================================
   Title band: Ink stage, breadcrumb, the logo stave, eyebrow, H1, one lead, one action
   ========================================================= */
.tb { position: relative; isolation: isolate; }
.tb-grid { display: grid; }
.tb-copy {
  --pad-l: var(--gutter);
  --pad-r: var(--gutter);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.25rem, 3vw, 2rem) var(--pad-r) clamp(2.75rem, 5vw, 4.5rem) var(--pad-l);
}
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 0.55rem;
  margin: 0 0 clamp(0.75rem, 2vw, 1.5rem);
  padding: 0;
  list-style: none;
  font-size: var(--small);
  color: var(--on-stage-muted);
}
.crumbs li { display: inline-flex; align-items: center; gap: 0.55rem; }
.crumbs li + li::before { content: "/"; color: color-mix(in srgb, var(--paper) 38%, var(--ink)); }
.crumbs a { color: var(--paper); }
.crumbs [aria-current="page"] { color: var(--on-stage-muted); }
.tb-stave {
  position: relative;
  gap: 5px;
  width: auto;
  margin-left: calc(-1 * var(--pad-l));
  margin-right: calc(-1 * var(--pad-r));
}
.tb-stave > span { background: color-mix(in srgb, var(--sand) 36%, var(--ink)); }
.tb-eyebrow { margin-top: clamp(1.1rem, 2.2vw, 1.75rem); margin-bottom: clamp(0.8rem, 1.4vw, 1.25rem); }
.tb-title {
  max-width: 14ch;
  padding-block: 0.1em 0.14em;
  font-size: var(--h1-inner);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--paper);
}
.tb-lead {
  margin-top: clamp(0.9rem, 1.8vw, 1.4rem);
  max-width: 34rem;
  font-size: var(--lead);
  line-height: 1.6;
  color: var(--paper-dim);
}
.tb-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.6rem; }
.tb-actions .btn { flex: 1 1 100%; }
.tb-photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--lift);
}
.tb-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (min-width: 30em) {
  .tb-actions .btn { flex: 0 0 auto; }
}
@media (min-width: 48em) {
  .tb-stave { gap: 7px; }
  .tb-photo { aspect-ratio: 1; }
}
@media (min-width: 64em) {
  .tb-grid--split {
    grid-template-columns: minmax(0, 58fr) minmax(0, 42fr);
    min-height: min(calc(100svh - var(--header-h) - 6rem), 60rem);
  }
  .tb-grid--split .tb-copy { --pad-l: var(--edge-vw); --pad-r: clamp(2rem, 3vw, 3rem); }
  .tb-grid--split .tb-photo { aspect-ratio: auto; }
  .tb-grid--wide .tb-copy { --pad-l: var(--edge-vw); --pad-r: var(--edge-vw); padding-bottom: clamp(3.5rem, 6vw, 5rem); }
  .tb-grid--wide .tb-title { max-width: none; }
}

/* The piano plate: the keys and both hands at every size. A slight upward bleed (scale from the
   bottom edge) keeps the fragment along the source's top edge outside the frame. */
.tb-photo--hands img {
  object-position: 50% 24%;
  scale: 1.035;
  transform-origin: 50% 100%;
}

/* =========================================================
   Full-bleed photograph with a stepped lower edge and the stave in the step
   ========================================================= */
.bleed-step {
  --step: 41px;
  --step-x: 38%;
  position: relative;
  background: var(--paper);
}
.bleed-step-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--lift);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--step)), var(--step-x) calc(100% - var(--step)), var(--step-x) 100%, 0 100%);
}
.bleed-step-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
}
.bleed-step-stave {
  position: absolute;
  left: var(--step-x);
  right: 0;
  bottom: calc((var(--step) - 25px) / 2);
  display: grid;
  gap: 5px;
  color: color-mix(in srgb, var(--oxblood) 60%, var(--paper));
  pointer-events: none;
}
.bleed-step-stave i { display: block; height: 1px; background: currentColor; transform-origin: 0 50%; }
@media (min-width: 48em) {
  .bleed-step { --step: 55px; --step-x: 44%; }
  .bleed-step-frame { aspect-ratio: 16 / 8; }
  .bleed-step-stave { gap: 7px; bottom: calc((var(--step) - 33px) / 2); }
}
@media (min-width: 64em) {
  .bleed-step-frame { aspect-ratio: 21 / 9; max-height: 78vh; }
  .bleed-step-frame img { object-position: 50% 20%; }
}

/* Seam variants for inner pages: a Paper notch stepping into Ink */
.seam--paper {
  --seam-ground: var(--paper);
  --on-notch: color-mix(in srgb, var(--oxblood) 60%, var(--paper));
  --beyond: color-mix(in srgb, var(--paper) 48%, var(--ink));
}

/* =========================================================
   Shared inner sections
   ========================================================= */
.band { padding-block: var(--section); }
.band-sand { background: var(--sand); }
.head-icon { width: 3.5rem; height: 3.5rem; margin-bottom: 1rem; }
.split-head { display: grid; gap: 2.5rem; }
@media (min-width: 64em) {
  .split-head {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: clamp(3rem, 6vw, 7rem);
    align-items: start;
  }
}

/* A single large statement (piano) */
.statement-text {
  max-width: 26ch;
  font-family: var(--font-display);
  font-weight: 500;
  font-optical-sizing: auto;
  font-size: var(--display-3);
  line-height: 1.3;
  letter-spacing: -0.012em;
  color: var(--ink);
}

/* =========================================================
   Stage moment (piano): a full-bleed concert plate, one line set on an Ink scrim
   ========================================================= */
.stage-plate {
  position: relative;
  margin: 0;
  background: var(--ink);
  container-type: inline-size;
}
.stage-plate-frame {
  position: relative;
  overflow: hidden;
  height: 66.667cqw;              /* phones: the whole stage at 3:2, so nobody meets an edge */
  background: var(--lift);
}
.stage-plate-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 100%;      /* keep the stage floor: the line stands on it */
}
.stage-plate-frame::after {       /* the Ink scrim: the floor fades into the band */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--ink) 0%, color-mix(in srgb, var(--ink) 70%, transparent) 14%, transparent 34%);
  pointer-events: none;
}
.stage-line {
  position: relative;
  z-index: 1;
  width: var(--wrap);
  margin: -1.05em auto 0;         /* the first line rests on the faded floor */
  padding-bottom: clamp(3.75rem, 10vw, 5rem);
  font-family: var(--font-display);
  font-weight: 500;
  font-optical-sizing: auto;
  font-size: var(--display-2);
  line-height: 1.04;
  letter-spacing: -0.016em;
  color: var(--paper);
  text-wrap: balance;
}
@media (min-width: 48em) {
  .stage-plate-frame { height: min(56.25cqw, 85vh); }
  .stage-plate-frame::after {
    background: linear-gradient(to top, var(--ink) 0%, color-mix(in srgb, var(--ink) 80%, transparent) 17%, color-mix(in srgb, var(--ink) 35%, transparent) 36%, transparent 54%);
  }
  .stage-line {
    position: absolute;
    left: var(--edge-vw);
    bottom: clamp(2.5rem, 5vw, 4.5rem);
    width: auto;
    max-width: 12em;
    margin: 0;
    padding: 0;
  }
}

/* =========================================================
   After you book (free trial): a real sequence, so numbered steps
   ========================================================= */
.steps {
  --step-pad: clamp(1.5rem, 2.5vw, 2.5rem);
  display: grid;
  gap: 2.5rem;
  margin: clamp(2.5rem, 5vw, 4rem) 0 0;
  padding: 0;
  list-style: none;
}
.step { display: grid; align-content: start; gap: 0.55rem; }
.step-head {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 0.5rem;
}
.step-head::after {               /* the sequence line runs on to the next step */
  content: "";
  flex: 1;
  height: 1px;
  background: color-mix(in srgb, var(--oxblood) 55%, var(--sand));
}
.step-num {
  font-family: var(--font-display);
  font-weight: 500;
  font-optical-sizing: auto;
  font-size: var(--display-3);
  line-height: 1;
  color: var(--oxblood);
  font-variant-numeric: lining-nums tabular-nums;
}
.step-icon { flex: none; width: 2.75rem; height: 2.75rem; }
.step-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-optical-sizing: auto;
  font-size: clamp(1.375rem, 1.15rem + 0.7vw, 1.75rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.step-text { color: var(--on-sand-muted); max-width: 28ch; }
@media (min-width: 48em) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem 3rem; }
}
@media (min-width: 64em) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 0; }
  .step { padding-right: var(--step-pad); }
  .step-head { margin-right: calc(-1 * var(--step-pad) + 0.875rem); }
}

/* Lesson rows: what a lesson looks like (Sand) */
.lesson-rows {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--rule);
}
.lesson-row {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  column-gap: 1.25rem;
  align-items: start;
  padding-block: 1.75rem;
  border-bottom: 1px solid var(--rule);
}
.lesson-icon { grid-row: 1 / span 2; width: 3.5rem; height: 3.5rem; }
.lesson-name {
  font-size: clamp(2rem, 1.2rem + 2.6vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.lesson-text {
  margin-top: 0.5rem;
  font-size: var(--lead);
  line-height: 1.5;
  color: var(--on-sand-muted);
}
@media (min-width: 64em) {
  .lesson-row {
    grid-template-columns: 5rem minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    padding-block: 2.25rem;
  }
  .lesson-icon { grid-row: auto; width: 4.5rem; height: 4.5rem; }
  .lesson-text { margin-top: 0; }
}

/* Faculty languages line (piano) */
.roll-lang {
  margin-top: 0.65rem;
  font-size: var(--small);
  color: var(--on-stage-muted);
}

/* Cards: image-led, one link each */
.cards { display: grid; gap: 2.5rem 1.5rem; margin-top: clamp(2.5rem, 5vw, 4rem); }
.card {
  display: grid;
  align-content: start;
  gap: 0.9rem;
  color: inherit;
  text-decoration: none;
}
.card-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--lift);
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease-out);
}
/* Graphic tile for a programme without a photograph: the same 4:3 box as a photo card, on Ink,
   with the logo's five hairlines running through it and the icon set on the stave at 40% height */
.card-tile {
  display: grid;
  place-items: center;
  background: var(--ink);
  container-type: size;
}
.tile-stave {
  position: absolute;
  inset-inline: 0;
  top: 30%;
  height: 40%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: color-mix(in srgb, var(--paper) 30%, var(--ink));
  transition: color 320ms var(--ease-out);
}
.tile-stave i { display: block; height: 1px; background: currentColor; }
.tile-icon {
  position: relative;
  width: 40cqh;
  height: 40cqh;
  background: var(--ink);
  box-shadow: 0 0 0 5cqh var(--ink);
}
.card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: clamp(1.5rem, 1.2rem + 0.9vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.card-title .icon {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  color: var(--oxblood);
  transition: transform 320ms var(--ease-out);
}
.card-text { color: var(--ink-muted); max-width: 34ch; }
.on-stage .card-title { color: var(--paper); }
.on-stage .card-title .icon { color: var(--paper); }
.on-stage .card-text { color: var(--on-stage-muted); }
@media (hover: hover) and (pointer: fine) {
  .card:hover .card-media img { transform: scale(1.04); }
  .card:hover .tile-stave { color: color-mix(in srgb, var(--paper) 46%, var(--ink)); }
  .card:hover .card-title .icon { transform: translateX(6px); }
}
.card:active .card-title .icon { transform: translateX(6px); }
@media (min-width: 48em) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 47.99em) {
  .cards--four { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1rem; }
  .cards--four .card-title { font-size: 1.1875rem; }
  .cards--four .card-text { font-size: var(--small); }
}
@media (min-width: 64em) { .cards { grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); } }

/* Card crops: no face or head meets a frame edge */
.crop-duo img { object-position: 50% 30%; }
.crop-orchestra img { object-position: 100% 0%; }
.crop-keys img { object-position: 50% 0%; }
.crop-orff img { object-position: 70% 30%; }
.crop-daf img { object-position: 80% 0%; scale: 1.3; transform-origin: 85% 0%; }

/* Closing band */
.closing-inner { display: grid; justify-items: start; gap: 1.5rem; }
.closing-inner .sec-lead { margin-top: 0; }

/* Current page in the navigation (the header sits on Ink, so the mark is an underline, not Oxblood) */
.header-nav a[aria-current="page"]::after { transform: scaleX(1); }
.menu-links a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.12em;
}

/* =========================================================
   Prices: tables on the Sand band, rules, ask-us rows
   ========================================================= */
.ptables {
  display: grid;
  gap: 2.75rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.ptable { width: 100%; border-collapse: collapse; }
.ptable caption {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--oxblood);
  text-align: left;
  font-family: var(--font-display);
  font-weight: 500;
  font-optical-sizing: auto;
  font-size: clamp(1.5rem, 1.15rem + 1vw, 2.125rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.ptable caption .cap-dur {
  display: block;
  margin-top: 0.35rem;
  font: 400 var(--small)/1.4 var(--font-text);
  letter-spacing: 0;
  color: var(--on-sand-muted);
}
.ptable thead th {
  padding-block: 0.75rem 0.5rem;
  font: 500 var(--small)/1.4 var(--font-text);
  color: var(--on-sand-muted);
  text-align: left;
}
.ptable thead th:last-child { text-align: right; }
.ptable tbody th,
.ptable tbody td {
  padding-block: 1.1rem;
  border-bottom: 1px solid var(--rule);
}
.ptable tbody th {
  font: 400 var(--lead)/1.35 var(--font-text);
  color: var(--ink);
  text-align: left;
}
.ptable tbody td { text-align: right; }
.ptable .price { font-size: clamp(1.25rem, 1rem + 0.7vw, 1.625rem); }
.vat {
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
  max-width: 46rem;
  color: var(--on-sand-muted);
}
.vat strong { font-weight: 500; color: var(--ink); }
@media (min-width: 64em) {
  .ptables {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: clamp(2rem, 4vw, 4rem);
    align-items: start;
  }
}

.rules { border-top: 1px solid var(--oxblood); }
.rule {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr);
  column-gap: 1.25rem;
  align-items: start;
  padding-block: 1.6rem;
  border-bottom: 1px solid var(--line);
}
.rule-icon { grid-row: 1 / span 2; width: 3.25rem; height: 3.25rem; }
.rule-name {
  font-size: clamp(1.5rem, 1.15rem + 1vw, 2.125rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.rule-text { margin-top: 0.4rem; max-width: 52ch; color: var(--ink-muted); }
@media (min-width: 64em) {
  .rule {
    grid-template-columns: 4rem minmax(0, 5fr) minmax(0, 7fr);
    align-items: center;
    column-gap: 2rem;
    padding-block: 1.9rem;
  }
  .rule-icon { grid-row: auto; width: 4rem; height: 4rem; }
  .rule-text { margin-top: 0; }
}

.ask { margin-top: clamp(4rem, 8vw, 7rem); }
.ask-title {
  font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.012em;
  color: var(--oxblood);
}
.ask-note { margin-top: 0.75rem; max-width: 46ch; color: var(--ink-muted); }
.ask-list { margin-top: clamp(1.5rem, 3vw, 2.25rem); border-top: 1px solid var(--oxblood); }
.ask-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.75rem;
  padding-block: 0.6rem;
  border-bottom: 1px solid var(--line);
}
.ask-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-optical-sizing: auto;
  font-size: clamp(1.25rem, 1.05rem + 0.6vw, 1.625rem);
  line-height: 1.2;
  color: var(--ink);
}
.ask-row .sweep { flex: none; color: var(--oxblood); font-weight: 500; }

/* =========================================================
   Free trial: the form beside a full-height plate
   ========================================================= */
.trial-grid { display: grid; }
.trial-copy {
  width: var(--wrap);
  margin-inline: auto;
  padding-block: clamp(3rem, 6vw, 4rem) var(--section);
}
.trial-copy .book-notes { margin-top: 2rem; }
.trial-photo .photo-frame { aspect-ratio: 4 / 3; }
.trial-photo img { object-position: 80% 0%; scale: 1.3; transform-origin: 85% 0%; }
@media (min-width: 64em) {
  .trial-grid { grid-template-columns: minmax(0, 58fr) minmax(0, 42fr); }
  .trial-copy {
    width: auto;
    margin: 0;
    padding: clamp(4rem, 1rem + 8vw, 8.5rem) clamp(3rem, 5vw, 6rem) var(--section) var(--edge-vw);
  }
  .trial-photo { align-self: stretch; }
  .trial-photo .photo-frame { aspect-ratio: auto; height: 100%; }
  .trial-photo img { position: absolute; inset: 0; object-position: 72% 30%; scale: none; }
}

/* Who the trial is for */
.who-list { margin-top: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--oxblood); }
.who-list li {
  padding-block: 1.4rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-weight: 500;
  font-optical-sizing: auto;
  font-size: clamp(1.375rem, 1.05rem + 1vw, 2rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
}

/* Visit block (free trial): label and value, no icon column, and a stage photograph beside it */
.visit-solo .head-icon { margin-bottom: 1.25rem; }
.visit-solo .details { max-width: 52rem; }
.visit-photo--violin .photo-frame { aspect-ratio: 4 / 3; }
.visit-photo--violin img { object-position: 0% 0%; }
.details--plain .detail { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 48em) {
  .details--plain .detail { grid-template-columns: 10rem minmax(0, 1fr); align-items: baseline; }
  .details--plain .detail dd { margin-top: 0; }
}

/* =========================================================
   Motion on inner pages (same system and keyframes as the home)
   ========================================================= */
.motion .tb-stave > span {
  transform-origin: 0 50%;
  animation: stave-draw 1100ms var(--ease-in-out) both;
}
.motion .tb-stave > span:nth-child(2) { animation-delay: 60ms; }
.motion .tb-stave > span:nth-child(3) { animation-delay: 120ms; }
.motion .tb-stave > span:nth-child(4) { animation-delay: 180ms; }
.motion .tb-stave > span:nth-child(5) { animation-delay: 240ms; }
.motion .tb-title { overflow: hidden; }
.motion .tb-title .mask-in {
  display: block;
  animation: seg-rise 800ms var(--ease-out) 90ms both;
}
.motion .tb-photo img,
.motion .bleed-step-frame img { animation: hero-push 12s var(--ease-soft) both; }
.motion .bleed-step-stave i { animation: stave-draw 1100ms var(--ease-in-out) 500ms both; }

@media (prefers-reduced-motion: reduce) {
  .tb-stave > span, .tb-title .mask-in, .tb-photo img, .bleed-step-frame img, .bleed-step-stave i {
    animation: none !important;
    transform: none !important;
  }
  .card-media img, .card-title .icon, .tile-stave { transition: none; }
}
