/* Surface page: the producers page's product layout (artists.css + producers.css), with the interface
   switchable by module, then the modules, what is around them, and the specifications. */
/* first screen: the text and the stage (picture + switch) both centred on one line, filling the screen */
/* first screen: the name and the demo start on one line under the bar */
.service.product { align-items: start; margin-top: clamp(136px, 15vh, 196px); }
/* no scroll drift here: the name and the demo stay on their shared top line */
.product h1, .product .lead { animation: none; translate: none; }
.product .service-text { grid-column: 1 / span 5; grid-row: 1; }
.product .stage { grid-column: 6 / -1; grid-row: 1; display: grid; gap: 18px; padding-top: 0.6rem; }  /* the window top on the cap line of the name */
.product h1 { font-size: clamp(3rem, 1.6rem + 3.4vw, 5rem); }
/* one rhythm down the column: name, what it is, the facts, the deal */
.product .service-text { gap: 24px; max-width: 520px; }
.product .detail { gap: 32px; margin-top: 4px; padding-top: 28px; }
/* the plugin at work: one loop per module, stacked; the chosen one fades in over the last */
/* a demo of the instrument, not a mood picture: the whole window, sharp, no fade */
.service.ui.product .service-media { aspect-ratio: 1650 / 890; display: grid; grid-column: auto; grid-row: auto;
  -webkit-mask-image: none; mask-image: none; }
.product .shots video { grid-area: 1 / 1; width: 100%; height: 100%; object-fit: contain; scale: 1; animation: none;
  opacity: 0; transition: opacity 450ms var(--ease-out); }
.product .shots video.on { opacity: 1; }

/* the module switch under the picture: each name in its module's colour, the chosen one underlined */
.shot-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 28px; }
.shot-tabs button { position: relative; padding: 10px 0; background: none; border: 0; cursor: pointer; color: var(--muted);
  font: inherit; font-size: var(--step-small); font-stretch: 112%; letter-spacing: 0.14em; text-transform: uppercase; transition: color 200ms; }
.shot-tabs button::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--mod);
  transform: scaleX(0); transition: transform 350ms var(--ease-out); }
.shot-tabs button:hover, .shot-tabs button[aria-pressed="true"] { color: var(--ink); }
.shot-tabs button[aria-pressed="true"]::after { transform: none; }

/* modules, around them, specs: the same frame as the services, headings on the left, content on the right */
.modules, .around, .specs { width: min(100% - 2 * var(--margin), 1360px); margin-inline: auto; display: grid;
  grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 40px; align-items: start; }
.modules h2, .around h2, .specs > h2 { grid-column: 1 / span 5; font-size: clamp(2rem, 1rem + 2.2vw, 3.2rem); line-height: 1; letter-spacing: -0.035em; font-weight: 650; }
.facts { grid-column: 6 / -1; }

/* the chain as in the plugin: six stages side by side, left to right, each under its own colour line */
.modules h2 { grid-column: 1 / -1; }
.module-list { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 40px 24px; }
/* each stage rests dim, like a module that is off; when the list scrolls into view they all switch on
   together, and under the pointer one lights up in its colour, its line
   runs out to full width and the name steps forward a little (on touch screens they are always lit) */
.module-list li { position: relative; display: grid; gap: 12px; align-content: start; padding-top: 22px; }
.module-list li::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: var(--mod);
  opacity: 0.35; transform: scaleX(0.3); transform-origin: 0 50%; transition: transform 600ms var(--ease-out), opacity 400ms; }
.module-list h3 { font-size: 1.5rem; font-weight: 650; font-stretch: 112%; letter-spacing: 0.02em; color: var(--mod);
  filter: brightness(1.35) saturate(0.25) opacity(0.55); transition: filter 400ms, translate 500ms var(--ease-out); }
.module-list li > p { transition: color 400ms; }
.module-list li > p { color: var(--muted); }
.module-list.lit li::before, .module-list li:hover::before { opacity: 1; transform: none; }
.module-list.lit li h3, .module-list li:hover h3 { filter: brightness(1.35); translate: 4px 0; }
.module-list.lit li > p, .module-list li:hover > p { color: var(--ink); }
@media (hover: none) {
  .module-list li::before { opacity: 1; transform: none; }
  .module-list h3 { filter: brightness(1.35); }
  .module-list li > p { color: var(--ink); }
}

.facts { display: grid; }
.facts div { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px; padding: 22px 0; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.facts div:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.facts dt { font-weight: 600; }
.facts dd { margin: 0; color: var(--muted); }
.facts a { color: var(--ink); text-decoration-color: rgba(255, 255, 255, 0.35); text-underline-offset: 4px; }
.facts a:hover { color: #fff; }

/* try before you buy: a centred column, the two installers side by side */
.try { width: min(100% - 2 * var(--margin), 860px); margin: var(--gap-section) auto; display: grid; gap: 24px; justify-items: center; text-align: center; }
.try h2 { white-space: nowrap; }  /* one line; the phone lets it wrap */
.try h2 { font-size: clamp(2rem, 1rem + 2.2vw, 3.2rem); line-height: 1; letter-spacing: -0.035em; font-weight: 650; }
.try .lead { color: var(--muted); max-width: none; }
.downloads { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }
.downloads .button { gap: 12px; padding-inline: 22px 26px; background: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28); }
.downloads .button::before { background: rgba(255, 255, 255, 0.06); }
.os-icon { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; }

@media (max-width: 1100px) {
  .module-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .modules h2, .around h2, .specs > h2, .module-list, .facts { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .modules, .around, .specs { width: auto; margin-inline: 16px; }
  /* the switch stays with the picture: picture, switch, then the text */
  .service.product { display: flex; flex-direction: column; min-height: 0; }
  .product .stage { gap: 4px; margin: 0 -16px 28px; }
  .service.ui.product .service-media { margin: 0; }
  .product .shot-tabs { padding-inline: 16px; }
  .product .shot-tabs { gap: 8px; flex-wrap: nowrap; justify-content: space-between; }
  .product .shot-tabs button { letter-spacing: 0.04em; font-size: 0.75rem; }
  .module-list { grid-template-columns: 1fr; gap: 36px; }
  .service.product { margin-top: 88px; }
  .facts div { grid-template-columns: 1fr; gap: 6px; }
  .product h1 { font-size: 16vw; }
  .try { width: auto; margin-inline: 16px; }
  .try h2 { white-space: normal; }
  .downloads .button { flex: 1 1 100%; justify-content: center; }
}
