/* 📋 Stamp · Div 2 — Dissemination · Cycle: WEBSITE + LEGAL · Created 2026-11-07 · Edited 2026-11-11 (v6: heavier orange route, big centered pop-outs) · By Claude · Status: draft
   Purpose: V5 motion figures in the 1975 world (art: art-v5/y75/web). Layered on v4's site.css. */

/* a figure = a window onto the 1672x941 art; --y0 / --h crop it vertically */
.m5 {
  position: relative;
  margin: 0;
  min-width: 0;
}
.m5 .win {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1672 / var(--h, 941);
}
.m5 .stage {
  position: absolute;
  left: 0;
  width: 100%;
  height: calc(var(--H, 941) / var(--h, 941) * 100%);
  top: calc(var(--y0, 0) / var(--h, 941) * -100%);
}
.m5 .stage > img,
.m5 .stage > .lyr {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.m5 .stage > .lyr {
  background-size: 100% 100%;
}
.m5 svg.sys {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* soften the sheet's edges into the band so the art reads as printed on the page, not a pasted rectangle */
.m5.cream .win {
  -webkit-mask-image:
    linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent),
    linear-gradient(transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent),
    linear-gradient(transparent, #000 6%, #000 94%, transparent);
  mask-composite: intersect;
}
.m5.dark .win {
  -webkit-mask-image:
    linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent),
    linear-gradient(transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent),
    linear-gradient(transparent, #000 8%, #000 92%, transparent);
  mask-composite: intersect;
}

/* print-in: ink takes on the paper from the bottom up (stations) or left to right (plates) */
.m5 .pr {
  -webkit-mask-image: linear-gradient(0deg, #000 45%, transparent 55%);
  mask-image: linear-gradient(0deg, #000 45%, transparent 55%);
  -webkit-mask-size: 100% 260%;
  mask-size: 100% 260%;
  -webkit-mask-position: 0 0;
  mask-position: 0 0;
  opacity: 0;
  transition:
    -webkit-mask-position 0.9s cubic-bezier(0.3, 0.6, 0.2, 1),
    mask-position 0.9s cubic-bezier(0.3, 0.6, 0.2, 1),
    opacity 0.5s;
}
.m5 .pr.lr {
  -webkit-mask-image: linear-gradient(90deg, #000 45%, transparent 55%);
  mask-image: linear-gradient(90deg, #000 45%, transparent 55%);
  -webkit-mask-size: 260% 100%;
  mask-size: 260% 100%;
  -webkit-mask-position: 100% 0;
  mask-position: 100% 0;
  transition-duration: 1.4s, 1.4s, 0.8s;
}
.m5 .pr.on {
  -webkit-mask-position: 0 100%;
  mask-position: 0 100%;
  opacity: 1;
}
.m5 .pr.lr.on {
  -webkit-mask-position: 0 0;
  mask-position: 0 0;
}

/* system layer type */
.m5 .lbl {
  font: 600 22px var(--f-mono);
  letter-spacing: 0.2em;
  fill: #14232a;
  opacity: 0;
  transition:
    opacity 0.5s,
    fill 0.3s;
}
.m5.dark .lbl {
  fill: #ece2cf;
  font-size: 20px;
}
.m5 .lbl.on {
  opacity: 0.8;
}
.m5 .lbl.hot {
  fill: #d44a20;
  opacity: 1;
}
.m5 .tick {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(1.6);
  transition:
    opacity 0.25s,
    transform 0.35s cubic-bezier(0.2, 1.6, 0.4, 1);
}
.m5 .tick.on {
  opacity: 1;
  transform: none;
}
.m5 .route {
  fill: none;
  stroke: #d44a20;
  stroke-width: 11;
  stroke-linecap: round;
  opacity: 1;
}
.m5 .glow {
  opacity: 0;
  transition: opacity 0.35s;
}
.m5 .glow.on {
  opacity: 1;
}
.m5 .tag rect {
  fill: #14232a;
}
.m5 .tag text {
  font: 600 21px var(--f-mono);
  letter-spacing: 0.2em;
  fill: #ece2cf;
}
.m5 .stamp {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(1.9) rotate(-8deg);
}
.m5 .stamp.on {
  opacity: 1;
  transform: rotate(-8deg);
  transition:
    opacity 0.12s,
    transform 0.3s cubic-bezier(0.2, 1.3, 0.4, 1);
}

/* gears */
.m5 .gear {
  position: absolute;
  transform-origin: 50% 50%;
  will-change: transform;
}
.m5 .gear img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: opacity 0.5s;
}
.m5 .gear img.o {
  opacity: 0;
}
.m5 .gear.hot img.o {
  opacity: 1;
}
.m5 .gear {
  transition: filter 0.8s;
}
.m5 .gear.dead {
  filter: brightness(0.42) saturate(0.6);
}
.m5 .arrow {
  fill: none;
  stroke: #f08628;
  stroke-width: 7;
  stroke-dasharray: 18 10;
}
.m5 .arrow-w {
  stroke-dashoffset: 0;
}
.m5 .note {
  font: 600 19px var(--f-mono);
  letter-spacing: 0.18em;
  fill: #f08628;
  opacity: 0;
  transition: opacity 0.5s;
}
.m5 .note.on {
  opacity: 1;
}

.m5 figcaption {
  margin-top: 8px;
}
.machine-wide {
  margin-top: 34px;
}
.machine-wide .sw {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  margin-top: 10px;
  font: 500 12px var(--f-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.machine-wide .sw i {
  font-style: normal;
  color: var(--orange);
}

@media (prefers-reduced-motion: reduce) {
  .m5 .pr {
    -webkit-mask: none;
    mask: none;
    opacity: 1;
    transition: none;
  }
  .m5 .lbl {
    opacity: 0.8;
  }
}
@media (max-width: 700px) {
  .m5 .lbl {
    font-size: 40px;
  }
  .m5 .lbl.on {
    opacity: 0;
  }
  .m5 .lbl.hot {
    opacity: 1;
  }
  .m5 .tag text {
    font-size: 30px;
  }
}

/* round 3 */
.m5 .route.back {
  stroke-width: 9;
  opacity: 0.95;
}
.m5 .route.thin {
  stroke-width: 9;
}
.m5 .tag.done rect {
  fill: #d44a20;
}
.m5 .note {
  font: 600 22px var(--f-mono);
  letter-spacing: 0.18em;
  fill: #d44a20;
  opacity: 0;
  transition: opacity 0.4s;
}
.m5.dark .note {
  fill: #f08628;
}
.m5 .note.on {
  opacity: 1;
}
.m5.vig .win {
  aspect-ratio: 460/420;
}
.dragpts .m5.vig {
  margin: 0 0 14px;
}
.thesis-top.one {
  grid-template-columns: 1fr;
}
.stuck-v {
  margin: 0;
}
.stuck-v .fig-r {
  display: block;
  font: 500 12px var(--f-mono);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 6px;
  text-align: right;
}
.m5.wide {
  margin-top: 34px;
}

/* app pop-outs: the real app piece pops out just under its drawing (never over the moving parts); hero-shot frame + race stripes */
.m5 .pop {
  position: relative;
  z-index: 3;
  width: 86%;
  margin: 34px auto 0;
  opacity: 0;
  transform: translateY(22px) scale(0.97);
  transition:
    opacity 0.6s,
    transform 0.7s cubic-bezier(0.2, 1.2, 0.4, 1);
}
.m5 .pop.tl {
  margin: 34px auto 0;
}
.m5 .pop.in {
  opacity: 1;
  transform: none;
}
.m5 .pop-frame {
  border: 2px solid rgba(20, 35, 42, 0.85);
  border-radius: 9px;
  overflow: hidden;
  background: #f5eddd;
  box-shadow:
    0 0 0 5px rgba(236, 226, 207, 0.95),
    0 26px 50px -18px rgba(20, 35, 42, 0.6);
}
.m5.dark .pop-frame {
  border-color: rgba(236, 226, 207, 0.9);
  box-shadow:
    0 0 0 5px rgba(20, 35, 42, 0.95),
    0 30px 60px -20px rgba(0, 0, 0, 0.75);
}
.m5 .pop img {
  display: block;
  width: 100%;
  height: auto;
}
.m5 .pop figcaption {
  margin-top: 14px;
  text-align: center;
  font: 500 12px/1.5 var(--f-mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.m5 .pop figcaption b {
  color: var(--orange);
  font-weight: 600;
}
.m5.dark .pop figcaption {
  color: var(--cream-ink-2);
}
.m5 .pop-stripes {
  position: absolute;
  right: 6%;
  top: -12px;
  width: 120px;
  height: 26px;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
}
.m5 .pop-stripes i {
  position: absolute;
  top: 0;
  width: 14px;
  height: 34px;
  transform: skewX(-35deg);
}
.m5 .pop-stripes i:nth-child(1) {
  left: 16px;
  background: var(--navy);
}
.m5 .pop-stripes i:nth-child(2) {
  left: 38px;
  background: var(--orange);
}
.m5 .pop-stripes i:nth-child(3) {
  left: 60px;
  background: var(--amber);
}
.m5.dark .pop-stripes i:nth-child(1) {
  background: var(--cream-ink);
}
@media (max-width: 900px) {
  .m5 .pop,
  .m5 .pop.tl {
    width: 100%;
    margin: 20px 0 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .m5 .pop {
    opacity: 1;
    transform: none;
  }
}

/* v6: §06 lit board cross-fade */
.m5 .stage > img.lit6 {
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}
