/* =========================================================================
   sections.css — one clearly commented block per section, in the same order
   as SECTIONS.md. Use tokens only. Mobile-first, min-width breakpoints at
   480 / 768 / 1024 / 1280.

   Template for each block:

   / * ---- section-<name> ------------------------------------------------ * /
   .section-<name> { }
   @media (min-width: 768px) { .section-<name> { } }
   ========================================================================= */


/* ---- section-site-header -------------------------------------------------
   Sticky site header, sits above breadcrumbs and the hero. Full nav is
   desktop-only (1024px+) — on mobile only the logo and one CTA show, so the
   header does not compete with the hero for attention on a small screen.
   Plain links throughout, so it needs no JS and still works with JS off.
   ------------------------------------------------------------------------ */

.section-site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding-block: var(--sp-3);
  background: color-mix(in srgb, var(--c-bg) 88%, transparent);
  backdrop-filter: blur(var(--header-blur));
  -webkit-backdrop-filter: blur(var(--header-blur));
  border-bottom: var(--border);
}

.section-site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
}

.section-site-header__logo {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: var(--font-head);
  font-size: var(--fs-body);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-tight);
  color: var(--c-ink);
  text-decoration: none;
  white-space: nowrap;
}

.section-site-header__logo-accent { color: var(--c-brand); }

.section-site-header__nav { display: none; }

.section-site-header__nav-list {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  margin: 0;
  padding: 0;
  list-style: none;
}

.section-site-header__nav-list a {
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  color: var(--c-ink-soft);
  text-decoration: none;
}

.section-site-header__nav-list a:hover { color: var(--c-brand-dark); }

/* Smaller than the standard .btn on a phone, where the logo and this button
   are the only two things sharing the row — the full button padding was
   tight enough on a narrow screen to risk the two colliding. */
.section-site-header__cta {
  flex-shrink: 0;
  padding: var(--sp-2) var(--sp-4);
  font-size: var(--fs-micro);
}

@media (min-width: 480px) {
  .section-site-header__logo { font-size: var(--fs-h3); }
  .section-site-header__cta {
    padding: var(--btn-pad-y) var(--btn-pad-x);
    font-size: var(--btn-fs);
  }
}

@media (min-width: 1024px) {
  .section-site-header__nav { display: block; }
}


/* ---- section-hero-banner ------------------------------------------------
   Two columns on desktop: the instrument on one side, the offer on the
   other. The photograph used to sit behind the copy under a dark scrim.
   Showing it whole on a warm light panel sells the guitar better, and it
   lets the headline sit on a clean background instead of fighting the
   picture behind it.

   On a real mouse the photo tilts a few degrees toward the cursor and
   catches a soft highlight. That is gated on hover + fine pointer + no
   reduced-motion preference, so a phone, a touch tablet or a
   motion-sensitive visitor never sees it — see the tilt block in site.js.
   ------------------------------------------------------------------------ */

.section-hero-banner {
  position: relative;
  padding-block: var(--sp-7);
  background: var(--c-bg-alt);
  overflow: hidden;
}

/* Warm wash across the panel so it is not a flat slab of black. */
.section-hero-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero-wash);
  pointer-events: none;
}

.section-hero-banner__inner {
  position: relative;
  display: grid;
  gap: var(--sp-6);
  align-items: center;
}

.section-hero-banner__media {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.section-hero-banner__image { width: 100%; }

.section-hero-banner__text > :last-child { margin-bottom: 0; }

.section-hero-banner h1 { margin-bottom: var(--sp-5); }

.section-hero-banner .u-lede { margin-bottom: var(--sp-6); }

.section-hero-banner__actions {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

/* Trust line, set off by a hairline so it reads as a footnote to the offer
   rather than more body copy. */
.section-hero-banner__note {
  margin-top: var(--sp-6);
  margin-bottom: 0;
  padding-top: var(--sp-5);
  border-top: var(--border);
  font-size: var(--fs-small);
  color: var(--c-ink-faint);
}

@media (min-width: 480px) {
  .section-hero-banner__actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
}

@media (min-width: 768px) {
  .section-hero-banner { padding-block: var(--sp-8); }
  .section-hero-banner__inner { gap: var(--sp-7); }
}

/* Side by side only once there is room for both columns to stay readable.
   Below this the photo sits on top of the copy, which is the right order —
   the instrument is what stops the scroll. */
@media (min-width: 1024px) {
  .section-hero-banner__inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-8);
  }
}

/* Cursor tilt. The angles come from site.js as --tilt-x / --tilt-y. */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .section-hero-banner__media {
    transform: perspective(var(--tilt-perspective))
               rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
    transition: transform var(--dur) var(--ease);
    will-change: transform;
  }

  /* Highlight that follows the pointer, so the panel reads as something
     catching the light rather than a flat picture. */
  .section-hero-banner__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--shine-x, 50%) var(--shine-y, 50%),
                rgba(255, 255, 255, 0.30), rgba(255, 255, 255, 0) 55%);
    opacity: 0;
    transition: opacity var(--dur) var(--ease);
    pointer-events: none;
  }

  .section-hero-banner__media:hover::after { opacity: 1; }
}

/* ---- Hero presets -------------------------------------------------------
   One section, four jobs.

   The default — photograph beside the offer — is the commercial hero the
   client signed off on the Strings Hub. It is not modified here.

   The other three drop the photograph on purpose. A guide, a directory and
   a lesson are not sold by a picture; they are judged in the first screen
   on whether the reader can see what they came for. A landing-page hero on
   an article is what gets an article bounced.
   ------------------------------------------------------------------------ */

.section-hero-banner--article,
.section-hero-banner--hub,
.section-hero-banner--lesson {
  padding-block: var(--sp-6);
}

/* THE IMAGE IS A TOGGLE, NOT A PROPERTY OF THE PRESET.

   Drop a __media block into any of these and the hero lays out two columns
   on desktop, exactly like the commercial one. Leave it out and the copy
   runs on its own at a readable measure instead of stretching across the
   full grid. Nothing else has to change, so adding or removing a
   photograph later is a content decision rather than a rebuild — which is
   what it should be, because the photography will keep changing and the
   template will not. */
.section-hero-banner--article .section-hero-banner__inner,
.section-hero-banner--hub .section-hero-banner__inner,
.section-hero-banner--lesson .section-hero-banner__inner {
  grid-template-columns: 1fr;
}

.section-hero-banner--article .section-hero-banner__text,
.section-hero-banner--hub .section-hero-banner__text,
.section-hero-banner--lesson .section-hero-banner__text {
  max-width: var(--container-text);
}

@media (min-width: 1024px) {
  .section-hero-banner--article:has(.section-hero-banner__media) .section-hero-banner__inner,
  .section-hero-banner--hub:has(.section-hero-banner__media) .section-hero-banner__inner,
  .section-hero-banner--lesson:has(.section-hero-banner__media) .section-hero-banner__inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-8);
  }

  .section-hero-banner--article:has(.section-hero-banner__media) .section-hero-banner__text,
  .section-hero-banner--hub:has(.section-hero-banner__media) .section-hero-banner__text,
  .section-hero-banner--lesson:has(.section-hero-banner__media) .section-hero-banner__text {
    max-width: none;
  }

  /* Four facts across a half-width column is too tight; they pair up. */
  .section-hero-banner:has(.section-hero-banner__media) .section-hero-banner__facts {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Byline. Turns the guide hero into the top of an article: who wrote it,
   how long it takes, when it was last touched. */
.section-hero-banner__byline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--sp-2) var(--sp-4);
  margin: var(--sp-6) 0 0;
  padding-top: var(--sp-5);
  border-top: var(--border);
  font-size: var(--fs-small);
  color: var(--c-ink-faint);
}

.section-hero-banner__byline b {
  font-weight: var(--fw-bold);
  color: var(--c-ink);
}

/* A row of facts under the headline. The hub uses it for numbers, the
   lesson for the song's spec — same shape, different weight. On both it
   replaces a grey footnote sentence that nobody was reading. */
.section-hero-banner__facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-5) var(--sp-4);
  margin: var(--sp-6) 0 0;
  padding-top: var(--sp-5);
  border-top: var(--border);
  list-style: none;
}

.section-hero-banner__facts li { margin: 0; min-width: 0; }

.section-hero-banner__fact-v {
  display: block;
  font-family: var(--font-head);
  font-size: var(--fs-h2);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  color: var(--c-accent);
}

/* The lesson's values are words, not numbers, so they take a smaller size —
   "Around 90 bpm" at display size reads as shouting. */
.section-hero-banner--lesson .section-hero-banner__fact-v {
  font-size: var(--fs-h3);
}

.section-hero-banner__fact-l {
  display: block;
  margin-top: var(--sp-1);
  font-size: var(--fs-small);
  color: var(--c-ink-faint);
}

@media (min-width: 768px) {
  .section-hero-banner__facts { grid-template-columns: repeat(4, 1fr); }
}

/* Entrance animation, not a scroll reveal — the hero is already on screen on
   load, so it plays once immediately instead of waiting on an observer.
   Gated on the media feature directly rather than --dur, so a reduced-motion
   visitor gets the content with no animation at all, not just a fast one. */
@media (prefers-reduced-motion: no-preference) {
  .section-hero-banner__text > * {
    opacity: 0;
    animation: hero-rise 800ms var(--ease) forwards;
  }
  /* Fade only, no transform — hero-rise would hold transform:none after it
     finishes and the cursor tilt above would never apply. */
  .section-hero-banner__media {
    opacity: 0;
    animation: hero-fade 800ms var(--ease) 60ms forwards;
  }
  .section-hero-banner .u-eyebrow      { animation-delay: 140ms; }
  .section-hero-banner h1              { animation-delay: 220ms; }
  .section-hero-banner .u-lede         { animation-delay: 300ms; }
  .section-hero-banner__actions        { animation-delay: 380ms; }
  .section-hero-banner__note           { animation-delay: 460ms; }
  .section-hero-banner__byline         { animation-delay: 380ms; }
  .section-hero-banner__facts          { animation-delay: 460ms; }
}

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(var(--sp-4)); }
  to   { opacity: 1; transform: none; }
}

@keyframes hero-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}


/* ---- section-breadcrumbs ------------------------------------------------
   Sits above the hero, so it gets almost no vertical padding of its own.
   The separator is a CSS ::before on every crumb after the first — put in
   the markup it would be read aloud as content.
   ------------------------------------------------------------------------ */

.section-breadcrumbs {
  padding-block: var(--sp-4) var(--sp-2);
}

.section-breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--fs-small);
}

.section-breadcrumbs__crumb {
  margin-bottom: 0;
  min-width: 0;
  color: var(--c-ink-faint);
}

.section-breadcrumbs__crumb + .section-breadcrumbs__crumb::before {
  content: "\203A";           /* single right angle quote */
  margin-right: var(--sp-2);
  color: var(--c-ink-faint);
}

.section-breadcrumbs__crumb a {
  color: var(--c-ink-soft);
  text-decoration: none;
}
.section-breadcrumbs__crumb a:hover { color: var(--c-brand-dark); }

/* The current page is not a link, and it was reading lighter than the trail
   leading to it — the one crumb that should stand out was the faintest
   thing in the row. This is the "you are here" label, so it gets the
   strongest colour and some weight, not the weakest. */
.section-breadcrumbs__crumb [aria-current="page"] {
  color: var(--c-ink);
  font-weight: var(--fw-medium);
}


/* ---- section-intro-block ------------------------------------------------
   Narrow measure, sits directly under the hero. Slightly tighter top padding
   than a normal section so it reads as part of the hero, not a new idea.
   ------------------------------------------------------------------------ */

.section-intro-block {
  padding-top: var(--sp-6);
  padding-bottom: var(--sp-5);
}

/* Set in the heading face at display size — this is the sentence that has to
   land, so it is treated as display type rather than a big paragraph. */
.section-intro-block__lede {
  font-size: var(--fs-lede);
  font-family: var(--font-head);
  font-weight: var(--fw-medium);
  line-height: 1.32;
  letter-spacing: var(--ls-tight);
  color: var(--c-ink);
  text-wrap: pretty;
}

.section-intro-block__meta {
  margin-bottom: 0;
  color: var(--c-ink-faint);
}

@media (min-width: 768px) {
  .section-intro-block {
    padding-top: var(--sp-7);
    padding-bottom: var(--sp-6);
  }
}


/* ---- section-toc --------------------------------------------------------
   Boxed list of anchor links. The --sticky modifier is ready but only bites
   when a template puts the TOC beside a tall column — see the note in
   sections/toc.html.
   ------------------------------------------------------------------------ */

.section-toc__nav {
  padding: var(--sp-6);
  background: var(--c-bg-alt);
  border: 0;
  border-radius: var(--radius-lg);
}

.section-toc__heading {
  margin-bottom: var(--sp-3);
  font-size: var(--fs-h3);
}

.section-toc__list {
  margin: 0;
  padding-left: var(--sp-5);
  font-size: var(--fs-small);
}

.section-toc__list li { margin-bottom: var(--sp-2); }
.section-toc__list li:last-child { margin-bottom: 0; }

.section-toc__list a { color: var(--c-ink-soft); }
.section-toc__list a:hover { color: var(--c-brand-dark); }

@media (min-width: 1024px) {
  .section-toc--sticky .section-toc__nav {
    position: sticky;
    top: var(--sp-5);
  }
}


/* ---- section-rich-text --------------------------------------------------
   The workhorse. Because the body is a single rich-text field, this block
   styles raw child elements rather than classes.
   ------------------------------------------------------------------------ */

.section-rich-text__body > :last-child { margin-bottom: 0; }

/* More air above a subheading than below it, so each run of copy groups
   with the heading it belongs to. */
.section-rich-text__body h3 {
  margin-top: var(--sp-6);
  margin-bottom: var(--sp-3);
}

.section-rich-text__body ul,
.section-rich-text__body ol { padding-left: var(--sp-5); }

.section-rich-text__body li { margin-bottom: var(--sp-3); }

.section-rich-text__body ol { counter-reset: none; }

/* Pull quotes and callouts dropped in by the client via the editor. */
.section-rich-text__body blockquote {
  margin: var(--sp-7) 0;
  padding: var(--sp-5) var(--sp-6);
  background: var(--c-bg-alt);
  border-radius: var(--radius-lg);
  border-left: var(--c-frame-width) solid var(--c-accent);
  font-size: var(--fs-h3);
  line-height: var(--lh-head);
  color: var(--c-ink-soft);
}

@media (min-width: 768px) {
  .section-rich-text__body h3 { margin-top: var(--sp-7); }
}


/* ---- section-text-image -------------------------------------------------
   Image always first on mobile. At 1024px the two halves sit side by side,
   and --reverse flips the image to the right.
   ------------------------------------------------------------------------ */

.section-text-image__media { margin-bottom: var(--sp-5); }

.section-text-image__text > :last-child { margin-bottom: 0; }

.section-text-image__list {
  margin-bottom: var(--sp-5);
  padding-left: var(--sp-5);
  color: var(--c-ink-soft);
}

@media (min-width: 1024px) {
  .section-text-image__media { margin-bottom: 0; }

  .section-text-image--reverse .section-text-image__media { order: 2; }
  .section-text-image--reverse .section-text-image__text  { order: 1; }
}


/* ---- section-video-block ------------------------------------------------
   Poster + play badge. The facade is an <a>, so it is focusable and gets the
   global :focus-visible ring from base.css for free. When site.js swaps in
   the iframe, .ratio > * already positions it, so nothing here needs to know
   about the embed.
   ------------------------------------------------------------------------ */

.section-video-block__frame { background: var(--c-bg-dark); }

/* No position or size here on purpose — .ratio > * in base.css already
   absolutely fills the box, and repeating it would fight that rule. The play
   badge below positions against this same box. */
.section-video-block__facade {
  display: block;
  cursor: pointer;
}

.section-video-block__facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Play badge: a centred disc with a CSS triangle inside it. No icon file. */
.section-video-block__play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--sp-8);
  height: var(--sp-8);
  transform: translate(-50%, -50%);
  border-radius: var(--radius-pill);
  background: var(--c-cta);
  box-shadow: var(--shadow-lg);
  transition: background var(--dur) var(--ease);
}

.section-video-block__play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-40%, -50%);
  border-style: solid;
  border-width: var(--sp-3) 0 var(--sp-3) var(--sp-4);
  border-color: transparent transparent transparent var(--c-on-dark);
}

.section-video-block__facade:hover .section-video-block__play,
.section-video-block__facade:focus-visible .section-video-block__play {
  background: var(--c-cta-dark);
}

.section-video-block__caption {
  margin-top: var(--sp-3);
  margin-bottom: 0;
  color: var(--c-ink-faint);
}


/* ---- section-steps ------------------------------------------------------
   Numbered <ol>. The bubble is drawn from the list counter so the numbers
   renumber themselves when a step is added or removed.
   ------------------------------------------------------------------------ */

.section-steps__list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.step {
  position: relative;
  margin-bottom: var(--sp-6);
  padding-left: var(--sp-8);
  counter-increment: step;
}

.step:last-child { margin-bottom: 0; }

.step::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--sp-6);
  height: var(--sp-6);
  border-radius: var(--radius-pill);
  background: var(--c-brand);
  color: var(--c-btn-text-alt);
  font-size: var(--fs-small);
  font-weight: var(--fw-bold);
  line-height: 1;
}

/* A rule down the left edge joins the steps into one run. Drawn as a border
   so the hairline comes from the --border token rather than a loose 1px. */
.step::after {
  content: "";
  position: absolute;
  left: calc(var(--sp-6) / 2);
  top: var(--sp-6);
  bottom: calc(var(--sp-6) * -1);
  width: 0;
  border-left: var(--border);
}

.step:last-child::after { display: none; }

.step__title {
  margin-bottom: var(--sp-3);
  font-size: var(--fs-h3);
}

.step__media { margin-bottom: var(--sp-4); }

.step__body { margin-bottom: 0; }


/* ---- section-comparison-table -------------------------------------------
   Two layouts from one table.

   ON A PHONE it does not scroll sideways at all. A five-column chart in a
   scroll box has two problems: people do not realise there is anything to
   the right, and the row label scrolls away with everything else, so even
   the ones who do scroll cannot see which spec they are looking at.

   So below 768px each row becomes its own block: the spec as a heading,
   then one line per series. The series name on each line comes from the
   cell's data-label. Nothing is hidden and nothing has to be discovered.

   FROM 768px it is a normal table, which is where a chart earns its keep —
   you can read down a column and compare.

   display:block strips a table of its semantics, which is why the markup
   carries explicit role attributes. Without them a screen reader would get
   a flat run of text on a phone instead of a table.
   ------------------------------------------------------------------------ */

.section-comparison-table__scroll {
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--c-surface);
  box-shadow: var(--shadow-sm);
}

.section-comparison-table__table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-small);
}

/* ---- Stacked (phone) ---- */

.section-comparison-table__table,
.section-comparison-table__table thead,
.section-comparison-table__table tbody,
.section-comparison-table__table tr,
.section-comparison-table__table th,
.section-comparison-table__table td { display: block; }

/* The column headings are repeated on every line by data-label, so the
   header row would just be four series names with nothing under them.
   Hidden visually, still read out. */
.section-comparison-table__table thead {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.section-comparison-table__table tbody tr {
  padding: var(--sp-5);
  border-bottom: var(--border);
}

.section-comparison-table__table tbody tr:last-child { border-bottom: 0; }

.section-comparison-table__table tbody th {
  padding: 0 0 var(--sp-3);
  font-family: var(--font-head);
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
  text-align: left;
  color: var(--c-ink);
}

.section-comparison-table__table tbody td {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-2) 0;
  color: var(--c-ink-soft);
  text-align: right;
}

.section-comparison-table__table tbody td::before {
  content: attr(data-label);
  flex-shrink: 0;
  font-weight: var(--fw-medium);
  color: var(--c-ink-faint);
  text-align: left;
}

/* The full-width footnote row has no series of its own, so it reads as a
   plain paragraph rather than a label/value pair. */
.section-comparison-table__table tbody td[colspan]{
  display: block;
  text-align: left;
}

.section-comparison-table__table tbody td[colspan]::before { content: none; }

/* ---- Table (768px and up) ---- */

@media (min-width: 768px) {
  /* Only a real table can overflow, so the scroll box only exists up here.
     Between 768 and roughly 1024 five columns still need the room. */
  .section-comparison-table__scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .section-comparison-table__table {
    display: table;
    min-width: calc(var(--container-text) * 0.9);
  }
  .section-comparison-table__table thead {
    position: static;
    width: auto; height: auto;
    overflow: visible;
    clip: auto;
    display: table-header-group;
  }
  .section-comparison-table__table tbody { display: table-row-group; }

  /* The header row needs this as much as the body rows do. Leave it as a
     block and its cells form an anonymous row of their own, so the
     headings stop lining up with the columns underneath them. */
  .section-comparison-table__table thead tr { display: table-row; }

  /* These have to match the stacked rules selector for selector. A media
     query adds no specificity, so a plainer selector up here simply loses
     to the phone layout and the cells stay stacked. */
  .section-comparison-table__table tbody tr {
    display: table-row;
    padding: 0;
    border-bottom: 0;
  }

  .section-comparison-table__table thead th,
  .section-comparison-table__table tbody th,
  .section-comparison-table__table tbody td {
    display: table-cell;
    padding: var(--sp-4) var(--sp-5);
    text-align: left;
    vertical-align: top;
    border-bottom: var(--border);
  }

  .section-comparison-table__table thead th {
    background: var(--c-bg-alt);
    font-family: var(--font-head);
    font-weight: var(--fw-bold);
    color: var(--c-ink);
    white-space: nowrap;
  }

  .section-comparison-table__table tbody th {
    font-family: var(--font-body);
    font-size: var(--fs-small);
    font-weight: var(--fw-bold);
    color: var(--c-ink);
    white-space: nowrap;
  }

  .section-comparison-table__table tbody td {
    color: var(--c-ink-soft);
  }

  .section-comparison-table__table tbody td[colspan] { text-align: left; }

  .section-comparison-table__table tbody td::before { content: none; }

  .section-comparison-table__table tbody tr:last-child th,
  .section-comparison-table__table tbody tr:last-child td { border-bottom: 0; }
}


/* ---- section-product-row ------------------------------------------------
   Shared .card plus a price line. The price pattern is also used by
   collection-grid, so it is named .product-price rather than after a section.
   ------------------------------------------------------------------------ */

.product-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--sp-2);
  margin: var(--sp-3) 0;
}

.product-price__was {
  color: var(--c-ink-faint);
  text-decoration: line-through;
  font-size: var(--fs-small);
}

.product-price__now {
  color: var(--c-sale);
  font-weight: var(--fw-bold);
  font-size: var(--fs-h3);
}



/* ---- section-collection-grid --------------------------------------------
   Filter pills are links, not buttons. The current one is marked with
   aria-current in the markup and styled off that attribute, so the highlight
   can never drift out of step with what is actually selected.
   ------------------------------------------------------------------------ */

.section-collection-grid__filters { margin-bottom: var(--sp-6); }

.filter-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.filter-list li { margin-bottom: 0; }

.filter-list__item {
  display: inline-block;
  padding: var(--sp-3) var(--sp-5);
  border: 1px solid var(--c-line-strong);
  border-radius: var(--radius-pill);
  background: var(--c-surface);
  color: var(--c-ink-soft);
  font-size: var(--fs-small);
  text-decoration: none;
}

.filter-list__item:hover {
  border-color: var(--c-brand);
  color: var(--c-brand-dark);
}

.filter-list__item[aria-current="page"] {
  background: var(--c-bg-dark);
  border-color: var(--c-bg-dark);
  color: var(--c-on-dark);
}

.section-collection-grid__items { margin-bottom: var(--sp-6); }

/* Also reused under the comparison table and the testimonial grid, so it
   carries its own top margin rather than relying on the block above. */
.section-collection-grid__more {
  margin-top: var(--sp-7);
  margin-bottom: 0;
  text-align: center;
}


/* ---- section-feature-grid -----------------------------------------------
   Icon + heading + short copy. Icons are inline SVG on currentColor.
   ------------------------------------------------------------------------ */

/* Each benefit is a card. Four bare columns of small text in a wide section
   read as an unfinished wireframe; the same content in cards reads as design
   and fills the band properly. */
.feature {
  display: flex;
  flex-direction: column;
  padding: var(--sp-6);
  background: var(--c-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.feature__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--sp-8);
  height: var(--sp-8);
  margin-bottom: var(--sp-5);
  border-radius: var(--radius);
  background: var(--c-cta);
  color: var(--c-btn-text);
  box-shadow: var(--shadow-cta);
}

.feature__icon svg {
  width: var(--sp-6);
  height: var(--sp-6);
}

.feature__title {
  margin-bottom: var(--sp-3);
  font-size: var(--fs-h3);
  letter-spacing: var(--ls-tight);
  text-wrap: balance;
}

.feature__body {
  margin-top: auto;
  margin-bottom: 0;
  font-size: var(--fs-small);
  line-height: 1.6;
  color: var(--c-ink-soft);
}


/* ---- section-lesson-content ---------------------------------------------
   Chord diagrams, song structure and tab. The SVG diagrams inherit
   currentColor, so they work on a light or dark band without a second copy.
   ------------------------------------------------------------------------ */

.lesson-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-5);
  margin: 0 0 var(--sp-7);
  padding: var(--sp-6);
  background: var(--c-bg-warm);
  border-radius: var(--radius-xl);
}

.lesson-meta__pair dt {
  font-size: var(--fs-micro);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--c-ink-faint);
}

.lesson-meta__pair dd {
  margin: 0;
  font-family: var(--font-head);
  font-weight: var(--fw-bold);
  color: var(--c-ink);
}

.chord-set {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-5);
  margin: 0 0 var(--sp-6);
}

.chord {
  margin: 0;
  padding: var(--sp-5);
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--c-surface);
  box-shadow: var(--shadow-sm);
  text-align: center;
  color: var(--c-ink);
}

.chord__grid {
  display: block;
  width: 100%;
  max-width: var(--sp-9);
  margin: 0 auto var(--sp-3);
  height: auto;
}

.chord__name {
  display: block;
  font-family: var(--font-head);
  font-size: var(--fs-h3);
}

.chord__fingering {
  display: block;
  margin-top: var(--sp-2);
  font-size: var(--fs-micro);
  color: var(--c-ink-soft);
}

.lesson-structure {
  margin: 0 0 var(--sp-6);
  padding: 0;
  list-style: none;
  border-top: var(--border);
}

.lesson-structure__part {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  margin: 0;
  padding: var(--sp-3) 0;
  border-bottom: var(--border);
}

.lesson-structure__label {
  font-size: var(--fs-micro);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--c-ink-faint);
}

.lesson-structure__chords {
  font-family: var(--font-head);
  font-weight: var(--fw-bold);
  color: var(--c-ink);
}

.tab { margin: 0 0 var(--sp-6); }

.tab__scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: var(--sp-5);
  background: var(--c-bg-dark);
  border: 0;
  border-radius: var(--radius-lg);
}

.tab__pre {
  margin: 0;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  line-height: 1.5;
  color: var(--c-on-dark);
}

.tab__caption {
  margin-top: var(--sp-3);
  color: var(--c-ink-faint);
}

@media (min-width: 480px) {
  .lesson-meta { grid-template-columns: repeat(4, 1fr); }
  .chord-set   { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 768px) {
  .lesson-structure__part {
    flex-direction: row;
    align-items: baseline;
    gap: var(--sp-5);
  }
  .lesson-structure__label {
    flex: 0 0 auto;
    width: var(--sp-9);
  }
  .tab__pre { font-size: var(--fs-small); }
}


/* ---- section-link-hub ---------------------------------------------------
   Groups of descriptive internal links. Deliberately plain — this section is
   for crawlers and for people who already know what they are looking for.
   ------------------------------------------------------------------------ */

.link-group__heading {
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-3);
  border-bottom: 2px solid var(--c-accent);
  font-size: var(--fs-h3);
}

.link-group__list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--fs-body);
}

.link-group__list li { margin-bottom: var(--sp-3); }
.link-group__list li:last-child { margin-bottom: 0; }

.link-group__list a {
  color: var(--c-ink-soft);
  text-decoration: none;
}

.link-group__list a:hover {
  color: var(--c-brand-dark);
  text-decoration: underline;
}


/* ---- section-related-content --------------------------------------------
   3–4 cards. Entirely the shared .card primitive from base.css plus the
   .grid--3 layout — this block has nothing of its own left, which is the
   point. Keep it here as a marker so the section still has an obvious home.
   ------------------------------------------------------------------------ */


/* ---- section-faq --------------------------------------------------------
   <details>/<summary>. Works closed-to-open with no JS and takes keyboard
   focus natively. The +/− is drawn in CSS so there is no icon dependency.
   ------------------------------------------------------------------------ */

.section-faq__list {
  border-top: var(--border);
}

.faq-item { border-bottom: var(--border); }

.faq-item__q {
  position: relative;
  display: block;
  padding: var(--sp-5) var(--sp-7) var(--sp-5) 0;
  font-family: var(--font-head);
  font-size: var(--fs-h3);
  line-height: var(--lh-head);
  color: var(--c-ink);
  cursor: pointer;
  list-style: none;
}

/* Kill the default disclosure triangle in both engines. */
.faq-item__q::-webkit-details-marker { display: none; }
.faq-item__q::marker { content: ""; }

.faq-item__q::after {
  content: "+";
  position: absolute;
  right: 0;
  top: var(--sp-5);
  font-size: var(--fs-h3);
  line-height: var(--lh-head);
  color: var(--c-accent-deep);
  transition: transform var(--dur) var(--ease);
}

.faq-item[open] .faq-item__q::after {
  content: "\2212"; /* true minus sign, not a hyphen */
}

.faq-item__q:hover { color: var(--c-brand-dark); }

.faq-item__a {
  padding: 0 var(--sp-7) var(--sp-5) 0;
  color: var(--c-ink-soft);
}

.faq-item__a > :last-child { margin-bottom: 0; }


/* ---- section-email-capture ----------------------------------------------
   Soft conversion. Boxed so it reads as an offer rather than more page copy.
   ------------------------------------------------------------------------ */

.section-email-capture__inner {
  padding: var(--sp-7) var(--sp-6);
  background: var(--c-bg-warm);
  border: 0;
  border-radius: var(--radius-xl);
}

.section-email-capture__lede {
  color: var(--c-ink-soft);
  margin-bottom: var(--sp-5);
}

.section-email-capture__field { margin-bottom: var(--sp-3); }

.section-email-capture__label {
  display: block;
  margin-bottom: var(--sp-2);
  font-size: var(--fs-small);
  font-weight: var(--fw-bold);
  color: var(--c-ink);
}

/* font-size stays at --fs-body (16px) on purpose — anything smaller makes
   iOS Safari zoom the page when the field takes focus. */
.section-email-capture__input {
  display: block;
  width: 100%;
  padding: var(--sp-4) var(--sp-5);
  border: 1px solid var(--c-line-strong);
  border-radius: var(--radius-cta);
  background: var(--c-surface);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--c-ink);
}

/* No focus style needed here — base.css already gives every element a
   :focus-visible ring built from --c-focus. */

.section-email-capture__fine {
  margin-top: var(--sp-4);
  margin-bottom: 0;
  color: var(--c-ink-faint);
}

@media (min-width: 768px) {
  .section-email-capture__inner { padding: var(--sp-7) var(--sp-6); }

  /* Field and button on one line once there is room for both. */
  .section-email-capture__form {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: var(--sp-3);
  }

  .section-email-capture__field { margin-bottom: 0; }
}


/* ---- section-promo-band -------------------------------------------------
   Mid-page dark band. Shares .section--dark with cta-band, so only the bits
   that actually differ live here.
   ------------------------------------------------------------------------ */

.section-promo-band {
  padding-block: var(--sp-6);
  text-align: center;
}

.section-promo-band__inner {
  max-width: var(--container-text);
}

.section-promo-band__eyebrow { color: var(--c-accent); }

/* One button today, but the band centres and wraps correctly if a second
   is added later — same pattern as the CTA band. */
.section-promo-band__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-3);
}

.section-promo-band__body {
  color: var(--c-on-dark-soft);
  margin-bottom: var(--sp-5);
}

.section-promo-band__terms {
  margin-top: var(--sp-5);
  margin-bottom: 0;
  color: var(--c-on-dark-soft);
  opacity: 0.75;
}

@media (min-width: 768px) {
  .section-promo-band { padding-block: var(--sp-7); }
}


/* ---- section-testimonial ------------------------------------------------
   <figure> + <blockquote> + <figcaption>. The stars are decorative; the
   rating is also carried as sr-only text in the markup.
   ------------------------------------------------------------------------ */

.quote {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: var(--sp-6);
  background: var(--c-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.quote__stars {
  margin-bottom: var(--sp-4);
  color: var(--c-accent-deep);
  letter-spacing: var(--ls-caps);
}

.quote__text {
  margin: 0 0 var(--sp-4);
  color: var(--c-ink);
}

.quote__text p { margin-bottom: 0; }

/* Pins the attribution to the bottom so names line up across a row. */
.quote__source {
  margin-top: auto;
  font-size: var(--fs-small);
}

.quote__name {
  display: block;
  font-weight: var(--fw-bold);
  color: var(--c-ink);
}

.quote__meta {
  display: block;
  color: var(--c-ink-faint);
}


/* ---- section-author-box -------------------------------------------------
   Photo beside a short bio. Stacks on mobile, side by side from 480px —
   it never needs the full grid, so it uses its own flex rule.
   ------------------------------------------------------------------------ */

.author-box {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
  padding: var(--sp-6);
  border: 0;
  border-radius: var(--radius-xl);
  background: var(--c-bg-alt);
}

.author-box__photo { flex: 0 0 auto; }

/* min-width:0 stops a long unbroken word in the bio forcing the flex row
   wider than its container. */
.author-box__text {
  flex: 1;
  min-width: 0;
}

.author-box__photo img {
  width: var(--sp-9);
  box-shadow: var(--shadow-sm);
  height: auto;
  border-radius: var(--radius-pill);
  object-fit: cover;
  aspect-ratio: 1 / 1;
}

.author-box__name {
  margin-bottom: var(--sp-1);
  font-size: var(--fs-h3);
}

.author-box__role {
  margin-bottom: var(--sp-4);
  font-size: var(--fs-small);
  color: var(--c-ink-faint);
}

.author-box__bio {
  font-size: var(--fs-small);
  color: var(--c-ink-soft);
}

.author-box__links {
  margin-bottom: 0;
  font-size: var(--fs-small);
}

@media (min-width: 480px) {
  .author-box { flex-direction: row; }
}


/* ---- section-cta-band ---------------------------------------------------
   Last thing before the footer. Centred, dark, deliberately short.
   ------------------------------------------------------------------------ */

.section-cta-band__inner { text-align: center; }

.section-cta-band__body {
  color: var(--c-on-dark-soft);
  margin-bottom: var(--sp-6);
}

.section-cta-band__actions {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.section-cta-band__note {
  margin-top: var(--sp-6);
  margin-bottom: 0;
  color: var(--c-on-dark-soft);
  opacity: 0.8;
}

@media (min-width: 480px) {
  .section-cta-band__actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
}


/* ---- Wide-screen editorial layout --------------------------------------
   A single narrow column of text on a 1920px screen leaves two-thirds of the
   page empty, which reads as unfinished rather than airy. From 1024px the
   heading moves into its own left column and sticks while the body scrolls
   past it. Same markup, no extra elements — the section head and the body are
   already siblings. Applies to the two long-form sections only.
   ------------------------------------------------------------------------ */

@media (min-width: 1024px) {
  .section-rich-text > .container--text,
  .section-steps > .container--text {
    display: grid;
    grid-template-columns: minmax(0, 19rem) minmax(0, 42rem);
    gap: var(--sp-8);
    max-width: var(--container);
  }

  .section-rich-text > .container--text > *,
  .section-steps > .container--text > * { max-width: none; }

  /* Clears the sticky site header, which is about --sp-8 tall once its own
     padding and the CTA button are counted. Parked at --sp-7 this heading
     slid underneath it. */
  .section-rich-text .section__head,
  .section-steps .section__head {
    position: sticky;
    top: calc(var(--sp-8) + var(--sp-4));
    align-self: start;
    margin-bottom: 0;
  }
}


/* ---- section-string-demo -------------------------------------------------
   A real neck, full bleed across the page. The sound is generated in
   site.js; everything here is the instrument and the feedback.

   The board is drawn, not photographed — rosewood, nickel frets, a bone
   nut and pearl inlays, all CSS gradients. That keeps it sharp at any
   width, costs nothing to load, and recolours from tokens.

   FRET SPACING is the detail that decides whether this reads as a guitar.
   Frets are not evenly spaced: each sits at 1 - (1/2)^(n/12) of the scale
   length, so the gaps shorten as you go up the neck. Twelve frets are
   shown, normalised so the twelfth lands at the right-hand edge — which is
   why the twelfth also carries the double inlay, the marking every player
   reads as the octave.
   ------------------------------------------------------------------------ */

.string-demo {
  /* Where the nut sits. The note letters live to its left, the fretboard
     to its right, and every string starts on it. One value keeps the frets
     and the strings in register. */
  --fret-offset: var(--sp-8);
  --fret-line: 2px;
  /* Fret wire, knocked back into the wood. At full --c-fret it matched the
     strings exactly and the whole thing read as a grid. */
  --fret-shade: color-mix(in srgb, var(--c-fret) 58%, var(--c-wood));
}

.string-demo__board {
  position: relative;
  padding-block: var(--sp-2);
  background:
    /* light from above, shadow into the lower edge */
    linear-gradient(180deg,
      color-mix(in srgb, var(--c-nut) 12%, transparent) 0%,
      transparent 18%,
      color-mix(in srgb, var(--c-wood-deep) 55%, transparent) 100%),
    /* grain, running the length of the neck */
    repeating-linear-gradient(1.5deg,
      color-mix(in srgb, var(--c-wood-deep) 40%, transparent) 0 2px,
      transparent 2px 9px),
    var(--c-wood);
  border-block: var(--fret-line) solid var(--c-wood-deep);
  box-shadow: var(--shadow-lg);
}

/* Frets and inlays. Sits behind the strings, covering the board from the
   nut to the right-hand edge. */
.string-demo__frets {
  position: absolute;
  inset: 0 0 0 var(--fret-offset);
  pointer-events: none;
  background-repeat: no-repeat;
  background-image:
    /* pearl dots at 3, 5, 7, 9 and the pair at 12, each centred between
       its own fret and the one before it */
    radial-gradient(circle at 24.94% 50%, var(--c-inlay) 0 4px, transparent 5px),
    radial-gradient(circle at 42.50% 50%, var(--c-inlay) 0 4px, transparent 5px),
    radial-gradient(circle at 58.20% 50%, var(--c-inlay) 0 4px, transparent 5px),
    radial-gradient(circle at 72.10% 50%, var(--c-inlay) 0 4px, transparent 5px),
    radial-gradient(circle at 90.20% 28%, var(--c-inlay) 0 4px, transparent 5px),
    radial-gradient(circle at 90.20% 72%, var(--c-inlay) 0 4px, transparent 5px),
    /* fret wire */
    linear-gradient(90deg, transparent 10.44%, var(--fret-shade) 10.44%,
      var(--fret-shade) calc(10.44% + var(--fret-line)), transparent calc(10.44% + var(--fret-line))),
    linear-gradient(90deg, transparent 20.29%, var(--fret-shade) 20.29%,
      var(--fret-shade) calc(20.29% + var(--fret-line)), transparent calc(20.29% + var(--fret-line))),
    linear-gradient(90deg, transparent 29.59%, var(--fret-shade) 29.59%,
      var(--fret-shade) calc(29.59% + var(--fret-line)), transparent calc(29.59% + var(--fret-line))),
    linear-gradient(90deg, transparent 38.37%, var(--fret-shade) 38.37%,
      var(--fret-shade) calc(38.37% + var(--fret-line)), transparent calc(38.37% + var(--fret-line))),
    linear-gradient(90deg, transparent 46.66%, var(--fret-shade) 46.66%,
      var(--fret-shade) calc(46.66% + var(--fret-line)), transparent calc(46.66% + var(--fret-line))),
    linear-gradient(90deg, transparent 54.48%, var(--fret-shade) 54.48%,
      var(--fret-shade) calc(54.48% + var(--fret-line)), transparent calc(54.48% + var(--fret-line))),
    linear-gradient(90deg, transparent 61.86%, var(--fret-shade) 61.86%,
      var(--fret-shade) calc(61.86% + var(--fret-line)), transparent calc(61.86% + var(--fret-line))),
    linear-gradient(90deg, transparent 68.83%, var(--fret-shade) 68.83%,
      var(--fret-shade) calc(68.83% + var(--fret-line)), transparent calc(68.83% + var(--fret-line))),
    linear-gradient(90deg, transparent 75.40%, var(--fret-shade) 75.40%,
      var(--fret-shade) calc(75.40% + var(--fret-line)), transparent calc(75.40% + var(--fret-line))),
    linear-gradient(90deg, transparent 81.61%, var(--fret-shade) 81.61%,
      var(--fret-shade) calc(81.61% + var(--fret-line)), transparent calc(81.61% + var(--fret-line))),
    linear-gradient(90deg, transparent 87.47%, var(--fret-shade) 87.47%,
      var(--fret-shade) calc(87.47% + var(--fret-line)), transparent calc(87.47% + var(--fret-line))),
    linear-gradient(90deg, transparent 93.00%, var(--fret-shade) 93.00%,
      var(--fret-shade) calc(93.00% + var(--fret-line)), transparent calc(93.00% + var(--fret-line)));
}

/* The nut: bone, thicker than a fret, and the line every string starts on. */
.string-demo__frets::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--fret-line) * -3);
  width: calc(var(--fret-line) * 3);
  background: linear-gradient(90deg,
              var(--c-nut),
              color-mix(in srgb, var(--c-nut) 70%, var(--c-wood-deep)));
}

.string-demo__set {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.string-demo__row { margin: 0; }

.string-demo__string {
  display: grid;
  grid-template-columns: var(--fret-offset) 1fr;
  align-items: center;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  /* Without this the browser claims a swipe across the strings as a page
     scroll and the strum never fires on a phone. */
  touch-action: none;
}

.string-demo__note {
  font-family: var(--font-head);
  font-size: var(--fs-small);
  font-weight: var(--fw-bold);
  color: var(--c-ink-faint);
  text-align: center;
}

/* Each string gets a generous row height, so the hit area is thumb-sized
   even though the wire itself is a couple of pixels. */
.string-demo__wire {
  display: flex;
  align-items: center;
  height: var(--sp-6);
}

/* The wire is the ::before, centred in that row. Wound strings carry a
   winding texture; the top two are plain steel and stay smooth. */
.string-demo__wire::before {
  content: "";
  display: block;
  width: 100%;
  border-radius: var(--radius-pill);
  /* Lit along the top edge and shaded underneath, so the wire reads as
     round rather than as a flat line drawn on the wood. */
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--c-string-plain) 55%, var(--c-nut)) 0%,
    var(--c-string-plain) 45%,
    color-mix(in srgb, var(--c-string-plain) 50%, var(--c-wood-deep)) 100%);
  box-shadow: 0 2px 5px var(--c-wood-deep);
}

.string-demo__wire--6::before,
.string-demo__wire--5::before,
.string-demo__wire--4::before {
  background:
    repeating-linear-gradient(102deg,
      color-mix(in srgb, var(--c-wood-deep) 55%, transparent) 0 1px,
      transparent 1px 4px),
    linear-gradient(180deg,
      color-mix(in srgb, var(--c-string-wound) 45%, var(--c-nut)) 0%,
      var(--c-string-wound) 45%,
      color-mix(in srgb, var(--c-string-wound) 45%, var(--c-wood-deep)) 100%);
}

/* Gauges. A real set runs about .053 down to .012 inches; these are the
   visual equivalent, heaviest at the top. */
.string-demo__wire--6::before { height: 7px; }
.string-demo__wire--5::before { height: 6px; }
.string-demo__wire--4::before { height: 5px; }
.string-demo__wire--3::before { height: 4px; }
.string-demo__wire--2::before { height: 3px; }
.string-demo__wire--1::before { height: 3px; }

@media (hover: hover) {
  .string-demo__string:hover .string-demo__note { color: var(--c-accent); }
}

/* Lit while the note rings, so a muted or deaf visitor still sees which
   string answered. */
.string-demo__string.is-plucked .string-demo__wire::before {
  background: var(--c-accent);
  box-shadow: var(--string-glow);
}

.string-demo__string.is-plucked .string-demo__note { color: var(--c-accent); }

@media (prefers-reduced-motion: no-preference) {
  .string-demo__wire::before {
    transition: background var(--dur) var(--ease),
                box-shadow var(--dur) var(--ease);
  }
  .string-demo__string.is-plucked .string-demo__wire::before {
    animation: string-shiver 620ms var(--ease);
  }
}

/* Amplitude falls away the way a real string settles. The heavy strings
   swing further, so they carry a bigger --shiver. */
@keyframes string-shiver {
  0%   { transform: translateY(0); }
  12%  { transform: translateY(var(--shiver, 3px)); }
  28%  { transform: translateY(calc(var(--shiver, 3px) * -0.66)); }
  44%  { transform: translateY(calc(var(--shiver, 3px) * 0.42)); }
  60%  { transform: translateY(calc(var(--shiver, 3px) * -0.26)); }
  78%  { transform: translateY(calc(var(--shiver, 3px) * 0.12)); }
  100% { transform: translateY(0); }
}

.string-demo__wire--6 { --shiver: 5px; }
.string-demo__wire--5 { --shiver: 4px; }
.string-demo__wire--4 { --shiver: 3.5px; }
.string-demo__wire--3 { --shiver: 3px; }
.string-demo__wire--2 { --shiver: 2.5px; }
.string-demo__wire--1 { --shiver: 2px; }

.string-demo__hint {
  margin: var(--sp-5) 0 0;
  color: var(--c-ink-faint);
  text-align: center;
}

@media (min-width: 768px) {
  .string-demo { --fret-offset: var(--sp-9); }
  .string-demo__board { padding-block: var(--sp-3); }
  .string-demo__wire { height: var(--sp-7); }
  .string-demo__note { font-size: var(--fs-body); }
}
