/* More work: a list of names drives one screen. Sits on the ink scene before the footer. */
.sc { --sc-ease: cubic-bezier(.2,.75,.2,1); align-items: start; min-height: 0; padding-block: clamp(4rem, 3rem + 5vw, 6rem); }
.sc__inner { display: grid; gap: clamp(1.25rem, 1rem + 1.5vw, 2.5rem); width: min(100%, 90rem); margin-inline: auto; }
.sc__stage { display: grid; gap: 1rem; border-top: 1px solid rgba(243,238,226,.16); padding-top: clamp(1rem, .8rem + 1vw, 2rem); }

.sc__names { position: relative; display: flex; gap: 1.25rem; overflow-x: auto; scrollbar-width: none; white-space: nowrap; scroll-snap-type: x proximity;
  margin-inline: calc(var(--gutter, 1.5rem) * -1); padding-inline: var(--gutter, 1.5rem);
  -webkit-mask: linear-gradient(90deg, transparent, #000 var(--gutter, 1.5rem), #000 calc(100% - 3rem), transparent); mask: linear-gradient(90deg, transparent, #000 var(--gutter, 1.5rem), #000 calc(100% - 3rem), transparent); }
.sc__names::-webkit-scrollbar { display: none; }
.sc__names button { flex: none; scroll-snap-align: center; font: inherit; font-family: var(--font-display, "Instrument Serif", Georgia, serif); font-size: 1.625rem; line-height: 1.3; color: var(--s-muted); background: none; border: 0; padding: 0; cursor: pointer; opacity: .45; transition: opacity .25s, color .25s; }
.sc__names button:hover { opacity: .85; }
.sc__names button[aria-current="true"] { color: var(--s-acc); opacity: 1; }
.sc__mark { display: none; }

.sc__frame { position: relative; aspect-ratio: 16/10; border-radius: .5rem; overflow: hidden; background: #262019; touch-action: pan-y; cursor: pointer; user-select: none; -webkit-user-select: none; }
.sc__frame > .sc__shot { position: absolute; inset: 0; }
.sc__shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; pointer-events: none; }
.sc__shot--draw { background: #262019; display: grid; place-items: center; }
.sc__shot--draw svg { width: 100%; height: 100%; }
.sc .w-c { font-family: var(--font-display, "Instrument Serif", Georgia, serif); font-size: 44px; fill: var(--s-ink); }
.sc .w-n text { font-family: var(--font-display, "Instrument Serif", Georgia, serif); font-size: 26px; fill: var(--s-ink); }
.sc .w-l text { font-family: "Switzer", system-ui, sans-serif; font-size: 14.5px; fill: var(--s-muted); }
.sc__frame > .is-in { z-index: 1; animation: sc-wipe .7s var(--sc-ease) both; }
.sc__frame > .is-in > * { animation: sc-settle .9s var(--sc-ease) both; }
.sc__frame > .is-out { animation: sc-hold .7s linear both; }
@keyframes sc-wipe { from { clip-path: inset(0 calc(50% - var(--d, 1) * 50%) 0 calc(50% + var(--d, 1) * 50%)); } to { clip-path: inset(0); } }
@keyframes sc-settle { from { transform: scale(1.06); } }
@keyframes sc-hold { to { opacity: .999; } }

.sc__screens { display: flex; gap: .4rem; margin-top: .75rem; }
.sc__screens button { flex: 0 0 1.75rem; height: 1.25rem; position: relative; background: none; border: 0; padding: 0; cursor: pointer; }
.sc__screens button::before { content: ""; position: absolute; inset: 50% 0 auto; height: 3px; margin-top: -1.5px; border-radius: 2px; background: var(--s-ink); opacity: .25; transition: opacity .25s, background .25s; }
.sc__screens button[aria-pressed="true"]::before { background: var(--s-acc); opacity: 1; }
.sc__screens img, .sc__screens .sc__dot { display: none; }

.sc__cap { display: grid; gap: .75rem; min-height: 9rem; align-content: start; }
.sc__what { color: var(--s-muted); font-size: .8125rem; letter-spacing: .04em; }
.sc__head { margin: 0; font-family: var(--font-display, "Instrument Serif", Georgia, serif); font-weight: 400; font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem); line-height: 1.08; letter-spacing: -.01em; max-width: 18em; text-wrap: balance; }
.sc__lines { margin: 0; padding: 0; list-style: none; display: grid; gap: .5rem; color: var(--s-muted); font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); line-height: 1.4; max-width: 30em; }
.sc__fade { animation: sc-up .5s var(--sc-ease) both; }
@keyframes sc-up { from { opacity: 0; transform: translateY(8px); } }

@media (min-width: 60rem) {
  .sc { min-height: 100svh; padding-block: clamp(2.5rem, 1rem + 3vw, 4rem); }
  .sc__stage { grid-template-columns: 18rem minmax(0, 1fr); grid-template-areas: "names view" "cap view"; grid-template-rows: auto 1fr; column-gap: clamp(2rem, 1rem + 3vw, 4.5rem); row-gap: 2.5rem; align-items: start; }
  .sc__names { grid-area: names; flex-direction: column; align-items: flex-start; gap: .15rem; overflow: visible; margin: 0; padding: 0 0 0 1.1rem; -webkit-mask: none; mask: none; }
  .sc__names button { font-size: 1.5rem; }
  .sc__mark { display: block; position: absolute; left: 0; top: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--s-acc); transition: transform .6s var(--sc-ease); }
  .sc__view { grid-area: view; }
  .sc__frame { width: 100%; aspect-ratio: auto; height: min(calc(100svh - 12rem), calc((100vw - 2 * var(--gutter, 1.5rem) - 22.5rem) / 1.6), 56rem); min-height: 22rem; }
  .sc__cap { grid-area: cap; padding-left: 1.1rem; min-height: 0; }
  .sc__lines { font-size: 1rem; }
  .sc__screens { gap: .5rem; }
  .sc__screens button { flex: 0 0 4.25rem; height: auto; aspect-ratio: 16/10; border-radius: .2rem; overflow: hidden; filter: grayscale(1); opacity: .4; transition: opacity .25s, filter .25s; }
  .sc__screens button:hover { opacity: .8; }
  .sc__screens button[aria-pressed="true"] { filter: none; opacity: 1; }
  .sc__screens button::before { display: none; }
  .sc__screens img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
  .sc__screens .sc__dot { display: block; width: 100%; height: 100%; background: #262019; border: 1.5px solid var(--s-acc); border-radius: .2rem; }
}
@media (prefers-reduced-motion: reduce) {
  .sc *, .sc *::before { animation: none !important; transition: none !important; }
}
