/* Free tools under /tools, built on the scene and story sections (scene.css, story.css):
   a photographic hero, the tool itself, an annotated screenshot, steps for each feature,
   tips, questions, and a closing section. */
.pitch-page { --pitch-teal: #4fc1b5; --pitch-dark: #211611; }

.pitch-hero .scene-photo { object-position: 80% 40%; }
.pitch-hero__fineprint { margin: 1.1rem 0 0; font-size: .875rem; color: var(--landing-muted); }

/* The tool on paper, right after the hero. Not isolated (scene.css isolates sections), so the
   maximized tool can cover the fixed header. */
.scene-page .pitch-tool { isolation: auto; }
.pitch-tool { position: relative; margin-top: calc(-1 * var(--scene-curve)); padding-block: calc(var(--scene-curve) + clamp(2rem, 4vw, 3rem)) clamp(3rem, 6vw, 4.5rem);
  border-radius: 2.5rem 2.5rem 0 0; background: var(--story-paper); scroll-margin-top: var(--header-height); }
.pitch-tool__inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; min-width: 0; }
.pitch-tool__start { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem 2rem; margin: .5rem 0 0; padding: 0; list-style: none; color: var(--scene-copy); font-size: .95rem; }
.pitch-tool__start li { display: flex; align-items: center; gap: .6rem; }
.pitch-tool__privacy { display: flex; align-items: center; justify-content: center; gap: .5rem; margin: 0; text-align: center; font-size: .875rem; color: var(--landing-muted); text-wrap: pretty; }
.pitch-tool__privacy svg { flex-shrink: 0; width: 18px; height: 18px; color: var(--scene-accent); }

/* Read the graph: an annotated screenshot with numbered pins and a legend. */
.pitch-read { padding-block: calc(var(--scene-curve) + clamp(3rem, 6vw, 5rem)) clamp(4rem, 8vw, 6.5rem); background: var(--story-panel); }
.pitch-read .listening-wave--top { fill: var(--story-paper); }
.pitch-read__layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: center; margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.pitch-annotated { margin: 0; }
.pitch-annotated__frame { position: relative; border-radius: 1.25rem; box-shadow: 0 40px 70px -46px rgb(41 24 14 / .65); }
.pitch-annotated__frame img { display: block; width: 100%; height: auto; border-radius: 1.25rem; }
.pitch-annotated figcaption { margin-top: .85rem; font-size: .85rem; color: var(--landing-muted); }
.pitch-pin { display: inline-grid; place-items: center; flex-shrink: 0; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--scene-gold); color: #4a2a0c;
  font: 700 .8125rem/1 var(--font-body); box-shadow: 0 0 0 3px rgb(255 250 242 / .9), 0 6px 14px -6px rgb(0 0 0 / .6); }
.pitch-annotated__frame .pitch-pin { position: absolute; left: var(--x); top: var(--y); translate: -50% -50%; }
.pitch-legend { display: grid; gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.pitch-legend li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .9rem; align-items: start; }
.pitch-legend h3 { margin: 0; font-family: var(--font-display); font-size: 1.2rem; line-height: 1.2; letter-spacing: -.02em; color: var(--landing-ink); }
.pitch-legend p { margin: .3rem 0 0; font-size: .95rem; line-height: 1.45; color: var(--scene-copy); text-wrap: pretty; }

/* The meter, cropped tall beside its explanation. */
.pitch-meter { display: grid; grid-template-columns: auto minmax(0, 32rem); gap: clamp(1.5rem, 5vw, 4rem); justify-content: center; align-items: center; margin-top: clamp(4rem, 8vw, 6rem); }
.pitch-meter__shot { margin: 0; padding: 1rem .75rem; border-radius: 1.5rem; background: var(--pitch-dark); box-shadow: 0 40px 70px -46px rgb(41 24 14 / .65); }
.pitch-meter__shot img { display: block; width: 5rem; height: auto; }
.pitch-meter__copy h3 { margin: .25rem 0 0; font-family: var(--font-display); font-size: calc(clamp(1.6rem, 2.6vw, 2.25rem) * var(--heading-scale, 1)); line-height: 1.1; letter-spacing: -.03em; color: var(--landing-ink); }
.pitch-meter__copy > p:not(.landing-kicker) { margin: 1rem 0 0; font-size: 1.05rem; line-height: 1.5; color: var(--scene-copy); }
.pitch-meter__list { display: grid; gap: .6rem; margin: 1.1rem 0 0; padding: 0 0 0 1.1rem; list-style: disc; color: var(--scene-copy); font-size: 1rem; line-height: 1.45; }
.pitch-meter__list strong { color: var(--landing-ink); font-weight: 600; }

/* The steps. */
.pitch-steps { padding-block: clamp(4rem, 8vw, 6.5rem); }
.pitch-toolbar { max-width: 36rem; margin: 2.5rem auto 0; padding: .4rem .6rem; border-radius: 99px; background: var(--pitch-dark); box-shadow: 0 24px 44px -30px rgb(41 24 14 / .7); }
.pitch-toolbar img { display: block; width: 100%; height: auto; }
.pitch-steps .story-step__copy p strong { color: var(--landing-ink); font-weight: 600; }

/* Tanpura: four strings that shimmer, Pa then three Sa. */
.pitch-drone { display: grid; place-items: center; margin: 0; min-height: 20rem; border-radius: 1.5rem; background: radial-gradient(circle at 50% 110%, color-mix(in oklab, var(--scene-gold) 45%, transparent), transparent 70%), var(--story-panel);
  box-shadow: 0 40px 70px -46px rgb(41 24 14 / .45); }
.pitch-drone__strings { display: flex; gap: clamp(1.5rem, 4vw, 2.75rem); height: 15rem; }
.pitch-drone__string { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; width: 2px; }
.pitch-drone__string::before { content: ""; flex: 1; width: 2px; border-radius: 2px; background: linear-gradient(var(--scene-gold-deep), var(--scene-gold)); transform-origin: center;
  animation: pitch-string 2.4s ease-in-out infinite; animation-delay: calc(var(--i) * .6s); }
.pitch-drone__string--low::before { width: 3px; }
.pitch-drone__string b { margin-top: .8rem; font: 600 .875rem/1 var(--font-body); color: var(--scene-accent); }
@keyframes pitch-string { 0%, 100% { transform: scaleX(1); } 8% { transform: scaleX(2.6); } 30% { transform: scaleX(1.4); } }

/* Harmonium: the voice line, the delay, and the harmonium joining. */
.pitch-follow { margin: 0; padding: clamp(1rem, 3vw, 1.75rem); border-radius: 1.5rem; background: var(--pitch-dark); box-shadow: 0 40px 70px -46px rgb(41 24 14 / .65); }
.pitch-follow svg { display: block; width: 100%; height: auto; overflow: visible; }
.pitch-follow__grid line { stroke: rgb(232 190 130 / .35); stroke-width: 1; }
.pitch-follow__note { fill: #e8be82; font: 600 14px var(--font-body); }
.pitch-follow__voice { fill: none; stroke: var(--pitch-teal); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.pitch-follow__span { fill: none; stroke: rgb(255 250 242 / .55); stroke-width: 1.5; }
.pitch-follow__marker { stroke: rgb(255 250 242 / .35); stroke-width: 1; stroke-dasharray: 3 4; }
.pitch-follow__label { fill: rgb(255 250 242 / .7); font: 13px var(--font-body); }
.pitch-follow__key { font: 600 13px var(--font-body); }
.pitch-follow__key--voice { fill: var(--pitch-teal); }
.pitch-follow__key--harmonium { fill: var(--scene-gold); }

/* Tuning: Standard's twelve even steps above a ladder of Harmonic strings. Each note's string is a fraction of Sa's, and a
   line drops from where it ends, like a fret, onto the line below, where Standard tuning's frets are marked. */
.pitch-tunings { --tunings-sa: var(--pitch-teal); --tunings-note: var(--scene-gold-deep); --tunings-line: light-dark(rgb(124 74 30 / .16), rgb(255 255 255 / .12));
  display: grid; grid-template-columns: 5.75rem 2.75rem minmax(0, 1fr); column-gap: .75rem; margin: 0;
  padding: clamp(1.25rem, 3vw, 1.75rem); border-radius: 1.5rem; background: var(--story-panel); box-shadow: 0 40px 70px -46px rgb(41 24 14 / .45); font-size: .875rem; }
.pitch-tunings .pitch-tunings__title { grid-column: 1 / -1; margin: 0 0 .75rem; font-weight: 600; color: var(--landing-ink); text-wrap: balance; }
.pitch-tunings .pitch-tunings__title:not(:first-child) { margin-top: 1.75rem; margin-bottom: .35rem; }
.pitch-tunings .pitch-tunings__lede { grid-column: 1 / -1; margin: 0 0 1rem; font-size: .875rem; line-height: 1.45; color: var(--scene-copy); text-wrap: pretty; }
.pitch-tunings__equal { grid-column: 1 / -1; position: relative; height: .75rem; overflow: hidden; border-radius: 99px; }
.pitch-tunings__equal span { position: absolute; inset-block: 0; left: calc(var(--at) * 1%); width: calc(100% / 12); background: var(--tunings-sa); opacity: .55; }
.pitch-tunings__equal span:nth-child(odd) { opacity: .25; }
.pitch-tunings__scale { grid-column: 1 / -1; position: relative; height: 1.2rem; margin: .35rem 0 0; padding: 0; list-style: none; font-size: .75rem; color: var(--landing-muted); }
.pitch-tunings__scale li { position: absolute; left: calc(var(--at) * 1%); translate: -50% 0; }
.pitch-tunings__scale li:first-child { translate: 0; }
.pitch-tunings__scale li:last-child { translate: -100% 0; }
.pitch-tunings__ladder, .pitch-tunings__ladder li { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: center; margin: 0; padding: 0; list-style: none; }
.pitch-tunings__ladder li { min-height: 2rem; }
.pitch-tunings__name { grid-column: 1; color: var(--landing-ink); white-space: nowrap; }
.pitch-tunings__ratio { grid-column: 2; text-align: end; font-variant-numeric: tabular-nums; color: var(--landing-muted); }
.pitch-tunings__strings { grid-column: 3; position: relative; align-self: stretch; }
/* Sa's whole string, faint, behind every row, so each note's string reads as a share of it. */
.pitch-tunings__ladder li:not([class]) .pitch-tunings__strings::before { content: ""; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--tunings-line); }
.pitch-tunings__string { position: absolute; top: 50%; left: 0; width: calc(var(--at) * 1%); height: 1rem; translate: 0 -50%; overflow: visible; }
.pitch-tunings__string path { fill: none; stroke: var(--tunings-note); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.pitch-tunings__ladder li:first-child .pitch-tunings__string path { stroke: var(--tunings-sa); }
.pitch-tunings__strings i, .pitch-tunings__strings::after { position: absolute; width: 2px; margin-left: -1px; background: var(--tunings-note); opacity: .4; }
.pitch-tunings__strings i { inset-block: 0; left: calc(var(--at) * 1%); }
.pitch-tunings__strings::after { content: ""; top: 50%; bottom: 0; left: calc(var(--at) * 1%); }
.pitch-tunings__strings b { position: absolute; top: 50%; left: calc(var(--at) * 1%); width: .7rem; height: .7rem; margin: -.35rem 0 0 -.35rem; border-radius: 50%; background: var(--tunings-note); }
.pitch-tunings__ladder li:first-child b { background: var(--tunings-sa); }
.pitch-tunings__ladder .pitch-tunings__axis { min-height: 0; }
.pitch-tunings__axis .pitch-tunings__strings { height: .6rem; border-top: 2px solid var(--tunings-note); }
.pitch-tunings__axis .pitch-tunings__strings::after, .pitch-tunings__axis-labels .pitch-tunings__strings::after { display: none; }
.pitch-tunings__axis u { position: absolute; top: 0; left: calc(var(--at) * 1%); width: 1px; height: .5rem; background: var(--tunings-sa); }
.pitch-tunings__ladder .pitch-tunings__axis-labels { min-height: 1.1rem; font-size: .75rem; color: var(--landing-muted); }
.pitch-tunings__axis-labels span span { position: absolute; top: 0; left: calc(var(--at) * 1%); translate: -50% 0; white-space: nowrap; }
.pitch-tunings__axis-labels span span:last-child { translate: -100% 0; }
/* Both tunings on one octave: Harmonic's lines above it, Standard's below, names standing over Harmonic's. */
.pitch-tunings__compare { grid-column: 1 / -1; position: relative; height: 9.5rem; margin: .5rem .25rem 0; }
.pitch-tunings__compare > span { position: absolute; left: 0; right: 0; }
.pitch-tunings__compare-names { top: 0; height: 5.25rem; font-size: .75rem; color: var(--landing-ink); }
.pitch-tunings__compare-names span { position: absolute; bottom: .3rem; left: calc(var(--at) * 1%); writing-mode: vertical-rl; rotate: 180deg; translate: -50% 0; white-space: nowrap; line-height: 1; }
.pitch-tunings__compare-harmonic { top: 5.25rem; height: 2rem; border-bottom: 2px solid var(--landing-muted); }
.pitch-tunings__compare-equal { top: calc(7.25rem + 2px); height: 2rem; }
.pitch-tunings__compare i { position: absolute; inset-block: 0; left: calc(var(--at) * 1%); width: 2px; margin-left: -1px; }
.pitch-tunings__compare-harmonic i { background: var(--tunings-note); }
.pitch-tunings__compare-equal i { background: var(--tunings-sa); }
.pitch-tunings__key-sa::before { color: var(--tunings-sa); }
.pitch-tunings__key { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; margin: 1rem 0 0; font-size: .8rem; color: var(--landing-muted); }
.pitch-tunings__key span::before { content: ""; display: inline-block; width: 1rem; height: 2px; margin-right: .4rem; vertical-align: middle; background: currentColor; }
.pitch-tunings__key-note::before { color: var(--tunings-note); }
.pitch-tunings__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* The same major chord in each tuning, as two recordings side by side. */
.tuning-chords { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr)); gap: .75rem; margin: .25rem 0 0; }
.tuning-chords__clip { display: grid; grid-template-rows: 1fr auto; gap: .6rem; margin: 0; padding: .9rem 1rem 1rem; border-radius: 1rem; background: color-mix(in srgb, var(--clip-tint) 12%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--clip-tint) 35%, transparent); }
.tuning-chords__clip--equal { --clip-tint: var(--pitch-teal); }
.tuning-chords__clip--just { --clip-tint: var(--scene-gold-deep); }
.tuning-chords figcaption { display: grid; gap: .15rem; font-size: .875rem; line-height: 1.4; color: var(--scene-copy); text-wrap: pretty; }
.tuning-chords figcaption strong { color: var(--landing-ink); }
.tuning-chords audio { width: 100%; height: 2.5rem; }
.pitch-tunings .pitch-tunings__more { grid-column: 1 / -1; margin: 1rem 0 0; font-size: .875rem; }
.pitch-tunings__more a { color: var(--scene-accent); font-weight: 500; }
@media (max-width: 30rem) {
  /* The strings keep at least half the width; at a large text size the note names wrap instead. */
  .pitch-tunings { grid-template-columns: minmax(0, 4.6rem) auto minmax(50%, 1fr); column-gap: .5rem; font-size: .8rem; }
  .pitch-tunings__name { white-space: normal; }
}
/* At a large text size on a small phone, each ratio sits under its note name, and the strings take
   the rest of the row. */
@media (max-width: 22rem) {
  .pitch-tunings { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
  .pitch-tunings__ratio { grid-column: 1; text-align: start; }
  .pitch-tunings__strings { grid-column: 2; grid-row: 1 / span 2; }
}

/* Settings. */
.pitch-settings { display: grid; gap: .9rem; margin: 1.25rem 0 0; }
.pitch-settings div { padding-inline-start: 1rem; border-inline-start: 2px solid var(--scene-gold); }
.pitch-settings dt { font-weight: 600; color: var(--landing-ink); }
.pitch-settings dd { margin: .2rem 0 0; font-size: .98rem; line-height: 1.45; color: var(--scene-copy); }
.pitch-settings-shot { max-width: 32rem; }

/* Maximize: a desktop window with a phone in front of it. */
.pitch-devices { position: relative; margin: 0; padding: 0 0 3rem 0; }
.pitch-devices__desktop { display: block; width: 88%; border-radius: 1rem; }
.pitch-devices__phone { position: absolute; right: 0; bottom: 0; width: 30%; border-radius: 1.4rem; border: 5px solid #120c08; box-shadow: 0 30px 60px -30px rgb(0 0 0 / .7); }

/* Tips. */
.pitch-tips { margin-top: 0; padding-block: clamp(4rem, 8vw, 6.5rem); }
.pitch-tips__layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.pitch-tips .story-cards__list { grid-template-columns: minmax(0, 1fr); max-width: none; margin: 0; }

/* Questions. */
.pitch-faq { padding-block: clamp(4rem, 8vw, 6.5rem); background: var(--story-paper); }
.pitch-faq__inner > .story-head { position: sticky; top: calc(var(--header-height) + 2rem); }
.pitch-faq__inner { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.pitch-faq__list details { border-bottom: 1px solid var(--landing-rule); }
.pitch-faq__list details:first-child { border-top: 1px solid var(--landing-rule); }
.pitch-faq__list summary { padding: 1.1rem 0; font-size: 1.05rem; }
.pitch-faq__list details p { margin: 0; padding: 0 2rem 1.25rem 0; font-size: 1rem; line-height: 1.5; color: var(--scene-copy); text-wrap: pretty; }

@media (max-width: 63.999rem) {
  .pitch-read__layout, .pitch-faq__inner, .pitch-tips__layout { grid-template-columns: minmax(0, 1fr); }
  .pitch-faq__inner > .story-head { position: static; }
  .pitch-legend { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 47.999rem) {
  .pitch-tool { border-radius: 1.5rem 1.5rem 0 0; }
  .pitch-tool__start { flex-direction: column; align-items: flex-start; }
  .pitch-tool__privacy { justify-content: flex-start; text-align: start; align-items: flex-start; }
  .pitch-legend { grid-template-columns: minmax(0, 1fr); }
  .pitch-pin { width: 1.4rem; height: 1.4rem; font-size: .7rem; box-shadow: 0 0 0 2px rgb(255 250 242 / .9); }
  .pitch-meter { grid-template-columns: auto minmax(0, 1fr); gap: 1.25rem; align-items: start; }
  .pitch-meter__shot { padding: .6rem .4rem; }
  .pitch-meter__shot img { width: 4rem; }
  .pitch-drone { min-height: 15rem; }
  .pitch-drone__strings { height: 11rem; }
}
/* The meter beside its key needs about 15rem; with less (a large text size on a phone), the key goes under it. */
.pitch-read .landing-frame { container: pitch-read / inline-size; }
@container pitch-read (max-width: 15rem) {
  .pitch-meter { grid-template-columns: minmax(0, 1fr); justify-items: center; }
}
@media (prefers-reduced-motion: reduce) {
  .pitch-drone__string::before { animation: none; }
}
.pitch-page .story-closing__media img { object-position: 60% 50%; }
/* The tool's own screenshots are dark: give them an edge on the dark page. */
.pitch-page :is(.pitch-meter__shot, .pitch-toolbar, .pitch-follow, .pitch-annotated__frame img, .pitch-settings-shot, .pitch-devices__desktop) { outline: 1px solid light-dark(transparent, rgb(255 250 242 / .12)); outline-offset: -1px; }
.story-head .pitch-toolbar { margin: 2.5rem auto 0; }

/* Standard tuning vs Harmonic tuning: an article of short sections, each figure under its text. */
.tuning-hero .scene-photo { object-position: 85% 35%; }
/* The technical names sit under the page's name, as a smaller second line of the same heading. */
.tuning-hero__terms { display: block; margin-top: .4em; font-size: .45em; line-height: 1.2; letter-spacing: normal; }
.tuning-article { width: min(100% - 40px, 46rem); margin-inline: auto; padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2rem, 5vw, 4rem); }
.tuning-section + .tuning-section { margin-top: clamp(3rem, 6vw, 4.5rem); }
.tuning-section { scroll-margin-top: calc(var(--header-height, 4.5rem) + 1rem); }
.tuning-section h2 { margin: 0 0 .9rem; font-size: calc(clamp(1.6rem, 3.2vw, 2.1rem) * var(--heading-scale, 1)); line-height: 1.15; color: var(--landing-ink); text-wrap: balance; }
.tuning-section .landing-kicker { margin-bottom: .5rem; }
.tuning-section > p { margin: 0 0 1rem; font-size: 1.05rem; line-height: 1.6; color: var(--scene-copy); text-wrap: pretty; }
.tuning-section > p a { color: var(--scene-accent); }
.tuning-section > .pitch-tunings, .tuning-section > .tuning-chords, .tuning-section > .tuning-overtones, .tuning-section > .tuning-table { margin-block: 1.5rem; }
.tuning-section > .tuning-chords { padding: clamp(1rem, 3vw, 1.5rem); border-radius: 1.5rem; background: var(--story-panel); box-shadow: 0 40px 70px -46px rgb(41 24 14 / .45); }
.tuning-table { overflow-x: auto; }
.tuning-table table { width: 100%; border-collapse: collapse; font-size: .9rem; font-variant-numeric: tabular-nums; }
.tuning-table caption { margin-bottom: .6rem; text-align: start; font-weight: 600; color: var(--landing-ink); }
.tuning-table th, .tuning-table td { padding: .5rem .75rem; border-bottom: 1px solid var(--tunings-line, light-dark(rgb(124 74 30 / .16), rgb(255 255 255 / .12))); text-align: end; white-space: nowrap; }
.tuning-table th:first-child, .tuning-table thead th:first-child { text-align: start; }
.tuning-table thead th { font-weight: 600; color: var(--landing-muted); }
.tuning-table tbody th { font-weight: 500; color: var(--landing-ink); }
.tuning-table td { color: var(--scene-copy); }
.tuning-table--wrap th, .tuning-table--wrap td { white-space: normal; text-align: start; }
/* On a phone, each meeting point becomes a short block: the overtones, then each tuning on its own line. */
@media (max-width: 36rem) {
  .tuning-table th, .tuning-table td { padding: .45rem .4rem; }
  .tuning-table thead th, .tuning-table tbody th { white-space: normal; vertical-align: bottom; }
  .tuning-table--wrap thead { display: none; }
  .tuning-table--wrap tr { display: grid; padding: .6rem 0; border-bottom: 1px solid var(--tunings-line, light-dark(rgb(124 74 30 / .16), rgb(255 255 255 / .12))); }
  .tuning-table--wrap th, .tuning-table--wrap td { padding: .15rem 0; border: 0; }
  .tuning-table--wrap td::before { content: attr(data-label) ": "; color: var(--landing-muted); }
}
.tuning-overtones { margin: 0; padding: clamp(1rem, 3vw, 1.5rem); border-radius: 1.5rem; background: var(--story-panel); box-shadow: 0 40px 70px -46px rgb(41 24 14 / .45); }
.tuning-overtones__plot { position: relative; display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); row-gap: 1.1rem; align-items: center; padding-top: .5rem; }
.tuning-overtones__name { grid-column: 1; font-weight: 600; font-size: .875rem; color: var(--landing-ink); }
.tuning-overtones__row { grid-column: 2; position: relative; height: 1.6rem; border-bottom: 0; background: linear-gradient(var(--tunings-line, rgb(124 74 30 / .2)), var(--tunings-line, rgb(124 74 30 / .2))) center / 100% 1px no-repeat; }
.tuning-overtones__row i { position: absolute; top: 20%; bottom: 20%; left: calc(var(--at) * 1%); width: 2px; margin-left: -1px; background: var(--scene-gold-deep); }
.tuning-overtones__row .tuning-overtones__note { top: 0; bottom: 0; width: 3px; margin-left: -1.5px; background: var(--pitch-teal); }
/* The meeting bands run down the plot's track column, behind the rows. */
.tuning-overtones__meets { position: absolute; top: 0; bottom: 1.6rem; left: calc(2.5rem); right: 0; pointer-events: none; }
.tuning-overtones__meets b { position: absolute; top: 0; bottom: 0; left: calc(var(--at) * 1%); width: 10px; margin-left: -5px; border-radius: 99px; background: color-mix(in srgb, var(--scene-gold-deep) 28%, transparent); }
.tuning-overtones__axis { grid-column: 2; position: relative; height: 1rem; font-size: .75rem; color: var(--landing-muted); font-variant-numeric: tabular-nums; }
.tuning-overtones__axis span { position: absolute; top: 0; left: calc(var(--at) * 1%); translate: -50% 0; }
.tuning-overtones__axis span:first-child { translate: 0; }
.tuning-overtones__axis .tuning-overtones__unit { left: auto; right: 0; translate: 0; }
.tuning-overtones figcaption { margin-top: .6rem; font-size: .85rem; color: var(--landing-muted); }
.tuning-section > .pitch-settings { margin-block: 1.25rem 1.5rem; }
.tuning-try { padding: clamp(1.25rem, 3vw, 1.75rem); border-radius: 1.5rem; background: var(--story-panel); }
.tuning-try .story-actions { margin-top: .5rem; }
.tuning-sources { padding-block: 0 clamp(3rem, 6vw, 4.5rem); }
.tuning-sources .landing-frame { width: min(100% - 40px, 46rem); }
.tuning-sources h2 { margin: 0 0 .75rem; font-size: 1.1rem; color: var(--landing-ink); }
.tuning-sources ul { margin: 0; padding-inline-start: 1.1rem; display: grid; gap: .5rem; font-size: .875rem; line-height: 1.5; color: var(--scene-copy); }
.tuning-sources a { color: var(--scene-accent); }
/* Controls that play sound on the tuning page. They start hidden, and tuning.js shows them. */
.tuning-play { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem .75rem; margin: 1rem 0 0; }
.tuning-section > .tuning-play { margin-block: 1.25rem 1.5rem; padding: 1rem 1.1rem; border-radius: 1rem; background: var(--story-panel); }
.tuning-play[hidden], .pitch-tunings[hidden] { display: none; }
.tuning-play__label, .tuning-play__readout { flex: 1 0 100%; margin: 0; font-size: .875rem; line-height: 1.45; color: var(--scene-copy); text-wrap: pretty; }
.tuning-play__label { font-weight: 600; color: var(--landing-ink); }
.tuning-play__readout { min-height: 1.45em; font-variant-numeric: tabular-nums; }
.tuning-button, .tuning-switch button, .tuning-chips button { min-height: 2.5rem; padding: .45rem 1rem; border: 1px solid var(--scene-accent); border-radius: 99px; background: transparent; color: var(--scene-accent); font: inherit; font-size: .8125rem; font-weight: 500; cursor: pointer; }
.tuning-button:not(.tuning-button--quiet) { border-color: transparent; background: linear-gradient(180deg, #efd3a2, var(--scene-gold-deep)) border-box; color: #2d190b; }
.tuning-button:disabled { opacity: .45; cursor: default; }
.tuning-switch { display: inline-flex; border-radius: 99px; box-shadow: inset 0 0 0 1px var(--scene-accent); }
.tuning-switch { max-width: 100%; }
.tuning-switch button { min-width: 0; border-color: transparent; text-wrap: balance; }
.tuning-switch button[aria-pressed="true"], .tuning-chips button[aria-pressed="true"] { background: var(--scene-accent); color: light-dark(#fff8ee, #1a110c); }
.tuning-chips { flex: 1 0 100%; display: flex; flex-wrap: wrap; gap: .4rem; }
.tuning-chips button { padding-inline: .8rem; }
.tuning-play input[type="range"] { flex: 1 1 10rem; min-height: 2rem; accent-color: var(--scene-gold-deep); }
.tuning-range { flex: 1 0 100%; display: grid; grid-template-columns: minmax(0, auto) minmax(3rem, 1fr) minmax(0, auto); gap: .6rem; align-items: center; font-size: .75rem; color: var(--landing-muted); }
.pitch-tunings__equal span.is-on { opacity: 1; }
.tuning-pluck { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; text-decoration: underline dotted; text-underline-offset: .2em; }
.pitch-tunings__ladder li:has(.tuning-pluck) { cursor: pointer; }
.pitch-tunings__ladder li:has(.tuning-pluck):hover b { scale: 1.25; }
.pitch-tunings__compare.is-playing i, .pitch-tunings__compare.is-playing .pitch-tunings__compare-names span { opacity: .22; }
.pitch-tunings__compare.is-playing .is-on { opacity: 1; }
.pitch-tunings__compare i.is-on { width: 4px; margin-left: -2px; }
.tuning-table tr.is-on > * { background: color-mix(in srgb, var(--scene-gold-deep) 16%, transparent); }
/* A close view of two overtones: 5 x Sa stays put, and 4 x Ga moves away from it as Ga leaves 5:4. */
.tuning-zoom { grid-column: 1 / -1; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem; align-items: center; margin: .25rem .5rem 1.6rem 0; }
.tuning-pulse { width: 2rem; height: 2rem; border-radius: 50%; background: var(--scene-gold-deep); }
.tuning-zoom__track { position: relative; height: 3.6rem; border-bottom: 2px solid var(--landing-muted); }
.tuning-zoom__track i { position: absolute; top: 1.3rem; bottom: 0; left: calc(var(--at) * 1%); width: 3px; margin-left: -1.5px; font-style: normal; }
.tuning-zoom__sa { --at: 25; background: var(--pitch-teal); }
.tuning-zoom__ga { background: var(--scene-gold-deep); }
.tuning-zoom__track i span { position: absolute; bottom: calc(100% + .2rem); left: 50%; translate: -50% 0; white-space: nowrap; font-size: .75rem; color: var(--landing-ink); }
.tuning-zoom__track .tuning-zoom__ga span { top: calc(100% + .35rem); bottom: auto; }
/* Twelve fifths on one octave: each mark is a number over a line, and the twelfth stands taller, just past Sa. */
.tuning-fifths__track { grid-column: 1 / -1; position: relative; height: 4.2rem; margin: .25rem .75rem .25rem; border-bottom: 2px solid var(--landing-muted); }
.tuning-fifths__track > * { position: absolute; bottom: 1.6rem; left: calc(var(--at) * 1%); translate: -50% 0; font-size: .72rem; font-style: normal; font-weight: 500; line-height: 1.3; color: var(--landing-ink); }
.tuning-fifths__track > *::after { content: ""; position: absolute; top: 100%; left: 50%; width: 2px; height: 1.6rem; margin-left: -1px; background: var(--scene-gold-deep); }
.tuning-fifths__track > b::after { background: var(--pitch-teal); }
.tuning-fifths__track > .is-last { bottom: 2.9rem; color: var(--scene-accent); }
.tuning-fifths__track > .is-last::after { height: 2.9rem; background: var(--scene-accent); }
@media (prefers-reduced-motion: no-preference) {
  .tuning-pulse.is-beating { animation: tuning-beat var(--beat, 1s) ease-in-out infinite; }
  .pitch-tunings__ladder .is-sounding .pitch-tunings__string { animation: tuning-pluck 1.4s ease-out; }
}
@keyframes tuning-beat { 50% { opacity: .2; scale: .55; } }
@keyframes tuning-pluck { 0% { scale: 1 2.2; } 12% { scale: 1 .5; } 26% { scale: 1 1.8; } 42% { scale: 1 .7; } 60% { scale: 1 1.35; } 80% { scale: 1 .9; } 100% { scale: 1 1; } }
/* First below the tool: how the graph sets the noise level, with a looping picture of the three moments. Without motion, the picture rests on Now sing. */
.pitch-noise { padding-block: clamp(3rem, 6vw, 5rem) clamp(1rem, 3vw, 2rem); }
.pitch-noise__layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.pitch-noise__steps { display: grid; gap: .9rem; margin: 1.5rem 0 1.25rem; padding-inline-start: 1.4rem; list-style: decimal; line-height: 1.55; color: var(--scene-copy); }
.pitch-noise__steps strong { color: var(--landing-ink); }
.pitch-noise__demo { margin: 0; }
.pitch-noise__demo figcaption { margin-top: .7rem; font-size: .85rem; color: var(--landing-muted); }
.pitch-noise__screen { --from: 46%; --to: 70%; --heard: 62%; position: relative; display: grid; align-content: end; min-height: 15rem; padding: 1.25rem; border-radius: 1.25rem; background: var(--story-panel);
  box-shadow: 0 30px 60px -40px rgb(41 24 14 / .6);
  background-image: repeating-linear-gradient(to bottom, transparent 0 1.6rem, color-mix(in srgb, var(--landing-muted) 22%, transparent) 1.6rem calc(1.6rem + 1px)); background-size: 100% 9.6rem; background-repeat: no-repeat; }
.pitch-noise__flash { position: absolute; top: 2.6rem; left: 50%; display: grid; gap: .2rem; width: max-content; max-width: calc(100% - 2rem); padding: .7rem 1.25rem; translate: -50% 0; border-radius: .9rem;
  background: #f2c879; color: #29150b; font-size: .8rem; text-align: center; opacity: 0; }
.pitch-noise__flash b { font-size: 1.3rem; line-height: 1.2; }
.pitch-noise__flash--sing { background: #217346; color: #fff; opacity: 1; }
.pitch-noise__control { display: grid; gap: .35rem; padding: .7rem .9rem; border-radius: .9rem; background: color-mix(in srgb, var(--landing-muted) 12%, transparent); }
.pitch-noise__label { font-size: .75rem; color: var(--landing-muted); }
.pitch-noise__slider, .pitch-noise__meter { position: relative; display: block; height: .375rem; border-radius: 99px; background: color-mix(in srgb, var(--landing-muted) 25%, transparent); }
.pitch-noise__slider { margin-block: .45rem; }
.pitch-noise__slider i { position: absolute; inset-block: 0; left: 0; width: var(--to); border-radius: 99px; background: var(--pitch-teal); }
.pitch-noise__slider b { position: absolute; top: 50%; left: var(--to); width: 1.1rem; height: 1.1rem; margin: -.55rem 0 0 -.55rem; border-radius: 50%; background: var(--landing-ink); }
/* The microphone bar: one bar clipped at the input level, grey up to the noise level and red past it. */
.pitch-noise__meter { overflow: hidden; }
.pitch-noise__meter i { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--heard)) 0 0);
  background: linear-gradient(to right, color-mix(in srgb, var(--landing-muted) 60%, transparent) var(--pitch-noise-at, var(--to)), #d6453d var(--pitch-noise-at, var(--to))); }
@media (prefers-reduced-motion: no-preference) {
  .pitch-noise__flash--silent { animation: pitch-noise-silent 7s linear infinite; }
  .pitch-noise__flash--sing { animation: pitch-noise-sing 7s linear infinite; }
  .pitch-noise__slider i { animation: pitch-noise-fill 7s ease-in-out infinite; }
  .pitch-noise__slider b { animation: pitch-noise-thumb 7s ease-in-out infinite; }
  .pitch-noise__meter i { animation: pitch-noise-cut 7s ease-in-out infinite; }
}
@keyframes pitch-noise-silent { 0%, 6% { opacity: 0; } 9%, 52% { opacity: 1; } 55%, 100% { opacity: 0; } }
@keyframes pitch-noise-sing { 0%, 55% { opacity: 0; } 58%, 94% { opacity: 1; } 97%, 100% { opacity: 0; } }
@keyframes pitch-noise-fill { 0%, 38% { width: var(--from); } 52%, 96% { width: var(--to); } 100% { width: var(--from); } }
@keyframes pitch-noise-thumb { 0%, 38% { left: var(--from); } 52%, 96% { left: var(--to); } 100% { left: var(--from); } }
@property --pitch-noise-at { syntax: "<percentage>"; inherits: false; initial-value: 70%; }
@keyframes pitch-noise-cut { 0%, 38% { --pitch-noise-at: var(--from); } 52%, 96% { --pitch-noise-at: var(--to); } 100% { --pitch-noise-at: var(--from); } }
@media (max-width: 47.999rem) { .pitch-noise__layout { grid-template-columns: minmax(0, 1fr); } }

/* Identify the swar (ear training, step 1) */
.ear-hero .scene-photo { object-position: 85% 35%; }
.ear-ladder { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(15rem, 100%), 1fr)); gap: .5rem 1.5rem; margin: 0; padding: 0; list-style: none; color: var(--scene-copy); }
.ear-ladder li { display: flex; align-items: baseline; gap: .75rem; font-size: 1.05rem; }
.ear-ladder b { display: inline-grid; place-items: center; flex: none; width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--landing-ink); color: var(--landing-paper, #fffaf2); font-size: .95rem; }

/* /tools: the tools as steps to take in order, then the guides. */
.tools-path { display: grid; gap: 1rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.tools-path__item { padding: clamp(1.25rem, 3vw, 1.75rem); border-radius: 1.5rem; background: var(--story-panel); }
.tools-path__item h3 { margin: 0 0 .5rem; font-size: clamp(1.3rem, 2.4vw, 1.6rem); line-height: 1.2; color: var(--landing-ink); text-wrap: balance; }
.tools-path__item p { margin: 0; font-size: 1.05rem; line-height: 1.6; color: var(--scene-copy); text-wrap: pretty; }
.tools-path__item .story-actions { margin-top: 1.1rem; }
