/* Showcase edition, part two: the route, the protocol-name bands and the footer letters. Loaded after showcase.css. */

/* ---------- the route: a charted course down the page, with a boat that sails it as you scroll (path built in showcase-route.js) ---------- */
main { position: relative; }
.route, .route-boat { display: none; }
.routed .route { display: block; position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.route path { fill: none; stroke: var(--ink); stroke-linecap: round; }
.route .r-dash { stroke-width: 1.5; stroke-dasharray: 1 9; opacity: .5; }
.route .r-done { stroke: var(--red); stroke-width: 2; }
.routed .route-boat { display: block; position: absolute; left: 0; top: 0; z-index: 1; width: 34px; height: 34px; margin: -24px 0 0 -17px; padding: 4px; border-radius: 50%; background: var(--paper); pointer-events: none; will-change: translate; }
.route-boat svg { display: block; width: 100%; height: 100%; }

/* ---------- protocol names as two giant bands that slide against each other with the scroll ---------- */
.s-names { width: 100vw; margin: 0 0 clamp(2.5rem, 6vw, 5rem) calc(50% - 50vw); overflow: hidden; }
.s-names p { width: max-content; white-space: nowrap; font: 500 clamp(3.2rem, 10.5vw, 9.5rem)/1.08 var(--display); letter-spacing: -.02em; translate: calc(var(--sp, 0) * -520vw); will-change: translate; }
.s-names .o { font-style: italic; font-weight: 400; color: transparent; -webkit-text-stroke: 1.5px var(--ink); translate: calc(-260vw + var(--sp, 0) * 520vw); }

/* ---------- footer wordmark: each letter lifts as the cursor passes ---------- */
.s-word .l { display: inline-block; transition: translate .5s var(--ease), color .3s; }
.s-word .l.hot { color: var(--red); }

/* ---------- about: the paragraph inks in on the left; a large amphora sticks on the right inside a turning inscription ---------- */
.s-about-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; margin-top: clamp(2.5rem, 6vw, 5rem); }
.s-about .s-big { font-size: clamp(1.6rem, 3.3vw, 3.1rem); max-width: none; }
.s-about .s-aside { margin-left: 0; }
.s-port { position: sticky; top: 16vh; display: grid; place-items: center; width: min(100%, 27rem); aspect-ratio: 1; margin-inline: auto; }
.s-port > * { grid-area: 1 / 1; }
.s-port .ring { width: 100%; height: 100%; overflow: visible; rotate: calc(var(--sp, 0) * 1400deg); }
.s-port .ring text { font: 400 12.5px var(--mono); letter-spacing: .1em; fill: var(--ink); }
.s-port .spot { width: 66%; animation: bob 5s ease-in-out infinite alternate; }

/* ---------- proposals: rows grouped under a big sticky year; a tag with the protocol name rides the cursor ---------- */
.s-props .s-year { display: grid; grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); gap: 0 2rem; align-items: start; border-top: 2px solid var(--ink); }
.s-props .s-year ul { border-top: 0; }
.s-props .s-year li:last-child a { border-bottom: 0; }
.s-props .y { position: sticky; top: 5.5rem; padding-block: 1rem 2rem; font: 500 clamp(3rem, 7.5vw, 7rem)/.9 var(--display); letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.cur .chip { position: absolute; translate: calc(var(--rx, -99px) + 50px) calc(var(--ry, -99px) - 78px); rotate: -6deg; scale: .6; opacity: 0; padding: .55rem 1rem; border: 2px solid #121211; border-radius: .8rem; background: var(--yellow); color: #121211; font: italic 400 1.7rem/1 var(--display); white-space: nowrap; transition: opacity .25s, scale .35s var(--ease); }
.cur.chipped .chip { opacity: 1; scale: 1; }

@media (max-width: 900px) {
  .s-about-grid { grid-template-columns: 1fr; }
  .s-port { position: static; width: min(70%, 18rem); grid-row: 1; }
  .s-props .s-year { grid-template-columns: 1fr; }
  .s-props .y { position: static; padding-bottom: .5rem; }
}

/* reduced motion: nothing turns or slides with the scroll */
@media (prefers-reduced-motion: reduce) {
  .s-compass, .s-port .ring { rotate: none; } .s-voice .q { rotate: -10deg; }
  .s-names p, .s-names .o { translate: none; }
}
