/* M152-a: the Beauty page's say / tape / reel / faces / range-dialog moves for the Audio, Electronics and Tools desks.
   Built only on the desk tokens (--bg, --ink, --mute, --ac, --on-ac, --line, --r) so each desk keeps its own colours and type. */

/* say: one statement, four photographs drifting around it */
.sh-say { position: relative; padding: clamp(80px, 13vw, 200px) var(--pad); overflow: hidden; }
.sh-say-t { position: relative; z-index: 1; max-width: min(17em, 58vw); margin-inline: auto; text-align: center;
  font-size: clamp(1.6rem, .9rem + 2.6vw, 3.4rem); line-height: 1.14; }
.sh-say-pics img { position: absolute; width: clamp(96px, 13vw, 220px); aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r, 4px);
  transform: translate3d(0, var(--sy, 0px), 0); will-change: transform; }
.sh-say-pics img:nth-child(1) { left: 2.5vw; top: 12%; }
.sh-say-pics img:nth-child(2) { right: 3vw; top: 7%; width: clamp(80px, 9vw, 150px); }
.sh-say-pics img:nth-child(3) { left: 7vw; bottom: 6%; width: clamp(80px, 8vw, 140px); }
.sh-say-pics img:nth-child(4) { right: 5vw; bottom: 7%; width: clamp(90px, 11vw, 180px); }
@media (max-width: 900px) {
  .sh-say { padding-block: 64px 44px; }
  .sh-say-t { max-width: 19em; }
  .sh-say-pics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 32px; }
  .sh-say-pics img, .sh-say-pics img:nth-child(n) { position: static; width: 100%; transform: none; }
}

/* tape: four verbs, huge and faint; reel: photographs running underneath */
.sh-tape { overflow: hidden; padding-block: 8px 12px; border-top: 1px solid var(--line); }
.sh-tape-in, .sh-reel-in { display: flex; width: max-content; animation: sh-run 40s linear infinite; }
.sh-tape span { padding-inline: .3em; font-size: clamp(3.4rem, 10vw, 9rem); line-height: 1; white-space: nowrap; color: var(--ink); opacity: .1; }
.au .sh-tape span { font-family: var(--serif); font-style: italic; }
.el .sh-tape span { font-weight: 600; letter-spacing: -.04em; }
.tl .sh-tape span { font-weight: 800; text-transform: uppercase; letter-spacing: -.01em; }
.sh-reel { overflow: hidden; padding-bottom: clamp(48px, 7vw, 110px); }
.sh-reel-in { gap: clamp(10px, 1.2vw, 18px); animation-duration: 95s; }
.sh-reel:hover .sh-reel-in { animation-play-state: paused; }
.sh-reel img { flex: none; height: clamp(220px, 26vw, 400px); width: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r, 4px); }
@keyframes sh-run { to { transform: translate3d(-50%, 0, 0); } }

/* faces: what good looks like */
.sh-faces { padding: clamp(72px, 10vw, 150px) var(--pad); }
.sh-faces h2 { max-width: 12em; margin: 0 auto clamp(40px, 5vw, 76px); text-align: center; font-size: clamp(2.3rem, 1.4rem + 3.4vw, 5rem); line-height: 1; }
.sh-faces-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 34px); max-width: 84rem; margin-inline: auto; align-items: start; }
.sh-face { margin: 0; }
.sh-face:nth-child(2) { margin-top: clamp(40px, 6vw, 96px); }
.sh-face-fr { overflow: hidden; aspect-ratio: 4 / 5; border-radius: var(--r, 4px); background: var(--line); }
.sh-face-fr img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.8s cubic-bezier(.2, .7, .2, 1); }
.js .sh-face:not(.in) .sh-face-fr img { transform: scale(1.14); }
.sh-face figcaption { display: grid; gap: 12px; margin-top: 20px; }
.sh-face q { font-size: clamp(1.2rem, 1rem + .7vw, 1.65rem); line-height: 1.25; quotes: none; color: var(--ink); }
.au .sh-face q { font-family: var(--serif); }
.sh-face span { font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ac); }
@media (max-width: 760px) {
  .sh-faces-row { grid-template-columns: 1fr; gap: 44px; }
  .sh-face:nth-child(2) { margin-top: 0; }
}

/* range cards: photo first, "Open" on hover, a dialog with what we check */
.sh-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 228px), 1fr)); gap: clamp(14px, 1.8vw, 26px); }
.sh-card { display: grid; gap: 8px; width: 100%; padding: 0; border: 0; background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.sh-card-pic { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 5; border-radius: var(--r, 4px); background: var(--line); }
.sh-card-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.2, .7, .2, 1), filter .5s; }
.sh-open { position: absolute; left: 12px; bottom: 12px; padding: 8px 14px; border-radius: 999px; background: var(--ac); color: var(--on-ac);
  font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .35s; }
.sh-card:hover .sh-card-pic img, .sh-card:focus-visible .sh-card-pic img { transform: scale(1.06); filter: brightness(.82); }
.sh-card:hover .sh-open, .sh-card:focus-visible .sh-open { opacity: 1; transform: none; }
.sh-card:focus-visible { outline: 2px solid var(--ac); outline-offset: 4px; }
.sh-card-n { margin-top: 6px; font: 600 .7rem/1 var(--mono); letter-spacing: .12em; color: var(--ac); }
.sh-card-t { font-size: 1.12rem; line-height: 1.2; }
.sh-card-d { color: var(--mute); font-size: .92rem; line-height: 1.45; }
@media (hover: none) { .sh-open { opacity: 1; transform: none; } }
@media (max-width: 560px) {   /* two cards a row on phones: ten ranges stay a short scroll */
  .sh-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
  .sh-card-t { font-size: 1rem; }
  .sh-card-d { display: none; }
  .sh-open { left: 8px; bottom: 8px; padding: 6px 10px; font-size: .62rem; }
}

.sh-dlg { width: min(64rem, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 1px solid var(--line); border-radius: calc(var(--r, 4px) * 2);
  background: var(--bg); color: var(--ink); overflow: auto; }
.sh-dlg::backdrop { background: rgba(0, 0, 0, .66); backdrop-filter: blur(4px); }
.sh-dlg-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.sh-dlg figure { margin: 0; min-height: 100%; }
.sh-dlg figure img { width: 100%; height: 100%; max-height: 640px; object-fit: cover; display: block; }
.sh-dlg-c { position: relative; display: grid; align-content: start; gap: 14px; padding: clamp(28px, 4vw, 52px); }
.sh-dlg h3 { margin: 0; font-size: clamp(1.8rem, 1.2rem + 2vw, 2.8rem); line-height: 1.04; }
.sh-dlg p { margin: 0; color: var(--mute); }
.sh-dlg ol { margin: 8px 0 12px; padding: 0; list-style: none; counter-reset: sh; border-top: 1px solid var(--line); }
.sh-dlg ol li { counter-increment: sh; display: grid; grid-template-columns: 2.4em 1fr; padding: 12px 0; border-bottom: 1px solid var(--line); line-height: 1.4; }
.sh-dlg ol li::before { content: counter(sh, decimal-leading-zero); font: 600 .74rem/1.9 var(--mono); color: var(--ac); }
.sh-dlg .btn { justify-self: start; }
.sh-dlg form { position: absolute; top: 12px; right: 12px; margin: 0; }
.sh-x { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 999px; background: none; color: var(--ink); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.sh-x:hover, .sh-x:focus-visible { border-color: var(--ac); color: var(--ac); }
@media (max-width: 760px) {
  .sh-dlg-in { grid-template-columns: 1fr; }
  .sh-dlg figure img { max-height: 38vh; }
}

@media (prefers-reduced-motion: reduce) {
  .sh-tape-in, .sh-reel-in { animation: none; }
  .sh-say-pics img, .sh-face-fr img, .js .sh-face:not(.in) .sh-face-fr img { transform: none; transition: none; }
}

/* M177: "for brands and distributors" terms on the audio and tools desks (computing styles its own .guides list) */
.sup-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 0 clamp(24px, 4vw, 64px); margin: 0; padding: 0; list-style: none; }
.sup-list li { padding: 24px 0 28px; border-top: 1px solid var(--line); }
.sup-list li > span { display: block; margin-bottom: 10px; font-size: .78rem; letter-spacing: .14em; color: var(--mute); }
.sup-list b { display: block; margin-bottom: 8px; font-size: 1.1rem; font-weight: 500; }
.sup-list p { color: var(--mute); }
