/* Sunshine Suspects — whitelist application desk. "The Cover": a mosaic of slanted panels around a form.
   No font files on purpose: display lettering ships as raster, everything else is system type.
   No inline styles anywhere: the page runs under style-src 'self'. */

:root {
  --ink: #220634;
  --ink-2: #2b1b4a;
  --paper: #fff4e2;
  --paper-2: #f3dfc0;
  --pink: #ff3d8b;
  --hot: #e21c60;
  --gold: #ffd23f;
  --teal: #19c6c0;
  --cyan: #35e0ff;
  --violet: #8f5bd8;
  --mute: #5b3f6b;
  --gut: 6px;
  --display: Impact, "DIN Condensed", "Avenir Next Condensed", "Arial Narrow", "Roboto Condensed", sans-serif-condensed, sans-serif;
  --type: "American Typewriter", "Courier Prime", "Courier New", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font: 15px/1.45 var(--type);
  overflow-x: hidden;
}

img, video { max-width: 100%; }

:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
/* Cyan reads on the dark cover only; on paper the ring is ink. */
.desk__paper :focus-visible { outline-color: var(--ink); }

.skip {
  position: absolute; left: 12px; top: -80px; z-index: 50;
  padding: 10px 14px; background: var(--gold); color: var(--ink);
  font: 400 16px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  border: 3px solid var(--ink);
}
.skip:focus { top: 12px; }

/* ───────────────────────── cover ───────────────────────── */

.cover {
  /* `clip` after `hidden`: the same cut, but the box stops being a scroll container, so neither a
     focus nor a scroll-into-view can shift the hero inside it. `hidden` stays for old engines. */
  position: relative; isolation: isolate; overflow: hidden; overflow: clip;
  display: flex; flex-direction: column;
  background: var(--ink);
}

.center {
  position: relative; z-index: 2; order: 1;
  display: flex; flex-direction: column; align-items: center;
  padding: 0 16px 34px;
}

.sky { position: absolute; inset: 0; z-index: -2; background: var(--ink-2); overflow: hidden; }
.sky img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.sky::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(34, 6, 52, .0) 0%, rgba(34, 6, 52, .0) 34%, rgba(34, 6, 52, .62) 100%),
    radial-gradient(120% 60% at 50% 0%, rgba(255, 61, 139, .0) 40%, rgba(34, 6, 52, .35) 100%);
}

.sun {
  position: absolute; z-index: -1; left: 50%; top: clamp(60px, 16vw, 150px);
  width: min(82%, 430px); aspect-ratio: 1; translate: -50% 0; border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, #fffbe0 0%, #ffe37a 30%, #ffb054 55%, rgba(255, 86, 140, .55) 68%, rgba(255, 61, 139, 0) 72%);
  opacity: .78; pointer-events: none;
}
:where(.js) .sun { animation: sun 9s ease-in-out infinite alternate; }

.topband {
  position: relative; align-self: stretch; margin: 0 -16px;
  height: clamp(92px, 30vw, 230px); overflow: hidden;
  border-bottom: var(--gut) solid var(--ink);
}
.topband img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.topband::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(34, 6, 52, .28), rgba(34, 6, 52, 0) 60%); }

.brand { margin: 18px 0 0; width: min(76vw, 340px); line-height: 0; }
.brand img { display: block; width: 100%; height: auto; filter: drop-shadow(0 7px 0 rgba(34, 6, 52, .38)); }

.headline { margin: 10px 0 0; width: min(78vw, 360px); line-height: 0; rotate: -3deg; }
.headline img { display: block; width: 100%; height: auto; filter: drop-shadow(0 6px 0 rgba(34, 6, 52, .45)); }

.brand, .headline { animation: rise .7s cubic-bezier(.2, .9, .2, 1) both; }
.headline { animation-delay: .12s; }

/* ───────────────────────── desk form ───────────────────────── */

.desk {
  position: relative; width: 100%; max-width: 620px; margin-top: 22px;
  animation: rise .7s .22s cubic-bezier(.2, .9, .2, 1) both;
}

.desk__paper {
  position: relative; color: var(--ink);
  background: var(--paper) url("/img/grain.png");
  border: 3px solid var(--ink); border-radius: 4px;
  box-shadow: 7px 7px 0 var(--pink), 7px 7px 0 3px var(--ink), 0 26px 50px rgba(20, 2, 34, .5);
}

.desk__seal {
  position: absolute; z-index: 3; left: -14px; top: -26px;
  width: 66px; height: 66px; rotate: -12deg;
  filter: drop-shadow(0 4px 0 rgba(34, 6, 52, .5));
  animation: thunk .5s .7s cubic-bezier(.2, 1.5, .3, 1) both;
}

.desk__bar {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 8px 12px 7px 60px;
  background: var(--ink); color: var(--paper);
  font: 400 12px/1.15 var(--display); letter-spacing: .16em; text-transform: uppercase;
}
.desk__bar-r { flex: none; color: var(--gold); }

.desk__body { padding: 14px 16px 14px; }

/* The stamp is a float: the title and the lede wrap around it at any width. */
.desk__head { display: flow-root; }

.desk__title {
  margin: 0; color: var(--ink);
  font: 400 clamp(27px, 7.4vw, 36px)/.94 var(--display);
  letter-spacing: .012em; text-transform: uppercase;
}

.desk__lede { margin: 8px 0 0; font-size: 13.5px; line-height: 1.42; }
.desk__lede strong {
  font-weight: 700; padding: 0 3px; margin: 0 -1px;
  background: linear-gradient(180deg, rgba(255, 210, 63, 0) 0 46%, var(--gold) 46% 92%, rgba(255, 210, 63, 0) 92%);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

.stamp {
  float: right; position: relative; z-index: 2;
  width: clamp(112px, 31%, 176px); height: auto;
  margin: 0 -6px 2px 12px;
  rotate: 8deg; mix-blend-mode: multiply; opacity: .93; pointer-events: none;
  animation: stamp .45s .95s cubic-bezier(.2, 1.6, .3, 1) both;
}

.band {
  display: flex; align-items: center; gap: 9px;
  margin: 12px 0 10px; padding: 7px 10px;
  background: var(--ink); color: var(--paper); border-radius: 3px;
  font: 700 12.5px/1.25 var(--type); letter-spacing: .02em;
}
/* Each state sets the lamp's colour once: the fill follows it, and so does the glow in the lamp keyframes. */
.band__lamp { flex: none; width: 10px; height: 10px; border-radius: 50%; color: #9a8aa6; background: currentColor; box-shadow: 0 0 0 2px rgba(255, 255, 255, .16); }
.band[data-band="open"] .band__lamp { color: #2ee6a6; }
.band[data-band="filling"] .band__lamp { color: var(--gold); }
.band[data-band="last"] .band__lamp { color: var(--pink); }
.band[data-band="loading"] .band__lamp { color: var(--violet); }
.band[data-band="down"] .band__lamp { color: var(--hot); }
:where(.js) .band[data-band="open"] .band__lamp { animation: lamp 1.7s ease-in-out infinite; }
:where(.js) .band[data-band="filling"] .band__lamp { animation: lamp 1.2s ease-in-out infinite; }
:where(.js) .band[data-band="last"] .band__lamp { animation: lamp .7s ease-in-out infinite; }
:where(.js) .band[data-band="loading"] .band__lamp { animation: lamp .9s steps(2) infinite; }

/* Three rows, always on the page. The row at the counter opens and carries the stage inside it;
   the rows behind it show what is on file, the rows ahead show their field switched off. */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 12px; }

.step {
  position: relative; display: grid; grid-template-columns: 26px minmax(0, 1fr); column-gap: 8px; align-content: start;
  padding: 7px 8px 7px 7px;
  border: 2px solid rgba(34, 6, 52, .2); border-radius: 3px;
  background: rgba(255, 255, 255, .42);
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.step__n {
  grid-row: 1 / span 2; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink); color: var(--paper);
  font: 400 15px/1 var(--display);
}
.step__label { font: 400 15px/1.1 var(--display); letter-spacing: .035em; text-transform: uppercase; color: var(--ink); }
.step__text { grid-column: 2; margin-top: 2px; font-size: 12px; line-height: 1.3; color: var(--mute); }
.step__flag {
  position: absolute; top: -9px; right: 6px;
  padding: 3px 6px 2px; border-radius: 2px;
  background: var(--ink); color: var(--gold);
  font: 700 10px/1 var(--type); letter-spacing: .07em; text-transform: uppercase;
}
.step__flag:empty { display: none; }
.step[data-state="todo"] .step__n { background: rgba(34, 6, 52, .72); }
.step[data-state="now"] { border-color: var(--ink); background: #fff; box-shadow: 3px 3px 0 var(--gold); }
.step[data-state="now"] .step__n { background: var(--hot); color: #fff; }
.step[data-state="done"] { border-color: #0f9d8f; background: rgba(25, 198, 192, .1); }
.step[data-state="done"] .step__n { background: #0b7d73; color: #fff; }
.step[data-state="done"] .step__flag { background: #0b7d73; color: #fff; }
.step[data-flag="soon"] .step__flag { background: #6b5a78; color: #fff; }
.step[data-flag="locked"] { border-style: dashed; }
.step[data-flag="locked"] .step__n { background: rgba(34, 6, 52, .5); }
.step[data-flag="locked"] .step__label { color: rgba(34, 6, 52, .74); }
.step[data-flag="locked"] .step__flag { background: var(--paper-2); color: #5b4a68; outline: 1px dashed rgba(34, 6, 52, .5); }

.step__slot { grid-column: 1 / -1; padding-left: 34px; }
.step__slot:empty { display: none; }
.step__slot > .stage__meta { margin: 4px 0 0; color: var(--ink); }
.step__slot > .field { margin-top: 7px; }
.step[data-state="now"] .step__slot { padding-left: 0; }

.stage { min-height: 138px; margin-top: 14px; padding-top: 13px; border-top: 2px dashed rgba(34, 6, 52, .45); }
/* Inside a row the stage is that row's body; above the list it is a notice with the list under it. */
.step__slot > .stage { min-height: 0; margin-top: 9px; padding-top: 11px; border-top-color: rgba(34, 6, 52, .28); }
.stage-home > .stage { min-height: 0; margin: 0 0 14px; padding: 0 0 13px; border-top: 0; border-bottom: 2px dashed rgba(34, 6, 52, .45); }
.stage__loading { margin: 0; font-size: 14px; }
:where(.js) .stage__loading { animation: blink 1.2s steps(2) infinite; }
.stage__title {
  margin: 0 0 5px; color: var(--ink);
  font: 400 clamp(20px, 5.4vw, 23px)/1.05 var(--display); letter-spacing: .025em; text-transform: uppercase;
}
.stage__title:focus { outline: none; }
.stage__title:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
/* The row's own label is the visible heading; this one stays for focus and for screen readers. */
.stage__title--quiet {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.stage__title--quiet:focus-visible { outline: none; }
.stage__text { margin: 0 0 10px; font-size: 14px; line-height: 1.42; }
.stage__text--sub { margin: 14px 0 0; padding-top: 11px; border-top: 1px dashed rgba(34, 6, 52, .28); }
.stage__meta { margin: 6px 0 0; font-size: 12.5px; line-height: 1.38; color: var(--mute); overflow-wrap: anywhere; }
.stage__meta + .stage__meta { margin-top: 2px; }

.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.actions > * { flex: 1 1 190px; }

.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 100%; min-height: 50px; padding: 17px 16px 11px;
  border: 3px solid var(--ink); border-radius: 4px;
  background: var(--ink); color: #fff;
  font: 400 clamp(19px, 5vw, 22px)/1 var(--display); letter-spacing: .07em; text-transform: uppercase; text-decoration: none; text-align: center;
  box-shadow: 5px 5px 0 var(--pink);
  cursor: pointer; overflow: hidden;
  transition: translate .12s, box-shadow .12s, background-color .12s;
}
.btn::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px;
  background: linear-gradient(90deg, var(--pink) 0 50%, var(--cyan) 50% 100%);
}
:where(.js) .btn::before { animation: lightbar 1s steps(1) infinite; }
.btn:hover { translate: -2px -2px; box-shadow: 7px 7px 0 var(--pink); background: #34104d; }
.btn:active { translate: 3px 3px; box-shadow: 2px 2px 0 var(--pink); }
.btn[disabled] { cursor: progress; opacity: .7; translate: none; box-shadow: 5px 5px 0 rgba(34, 6, 52, .3); }
.btn[disabled]::before { animation-duration: .35s; }

.btn--ghost {
  min-height: 44px; padding: 11px 14px 9px;
  background: var(--paper); color: var(--ink);
  font-size: clamp(16px, 4.2vw, 18px);
  box-shadow: 4px 4px 0 var(--teal);
}
.btn--ghost::before { display: none; }
.btn--ghost:hover { background: #fff; box-shadow: 6px 6px 0 var(--teal); }
.btn--ghost:active { box-shadow: 1px 1px 0 var(--teal); }

/* Switched off, not busy: the control is on the page so the whole route is visible, and it does nothing yet. */
.btn--off[disabled] {
  cursor: not-allowed; opacity: 1; translate: none;
  border: 2px dashed rgba(34, 6, 52, .45); background: transparent; color: rgba(34, 6, 52, .62);
  box-shadow: none;
}
.btn--off[disabled]:hover { translate: none; background: transparent; box-shadow: none; }
.btn--off::before { display: none; }

.field { display: block; margin: 10px 0 0; }
.field__label { display: block; margin-bottom: 4px; font: 700 11.5px/1.2 var(--type); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.field input, .field textarea {
  display: block; width: 100%; padding: 11px 12px;
  border: 2px solid var(--ink); border-radius: 3px;
  background: #fff; color: var(--ink);
  font: 16px/1.35 ui-monospace, "SF Mono", Menlo, Consolas, "Courier New", monospace;
}
.field textarea { min-height: 96px; resize: vertical; font-family: var(--type); font-size: 16px; }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.field input[aria-invalid="true"] { border-color: var(--hot); background: #fff3f6; }
.field input[readonly] { background: var(--paper-2); }
.field--off .field__label { color: rgba(34, 6, 52, .62); }
.field--off input[disabled] {
  border: 2px dashed rgba(34, 6, 52, .4); background: var(--paper-2); color: rgba(34, 6, 52, .62);
  cursor: not-allowed; opacity: 1;
}
.field--off input[disabled]::placeholder { color: rgba(34, 6, 52, .5); opacity: 1; }

.msg {
  margin: 10px 0 0; padding: 8px 10px 7px;
  border-left: 5px solid var(--hot); background: #ffe1ea; color: #4a0822;
  font-size: 13px; line-height: 1.38;
}
.msg--note { border-left-color: var(--violet); background: #efe6fb; color: #2f1657; }
.stage > .msg:first-child { margin: 0 0 10px; }

.ts { min-height: 66px; margin: 10px 0 0; }

.issued { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 4px; }
.issued__card {
  margin: 0 auto; width: min(100%, 250px); rotate: -1.6deg;
  background: #fff; border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--pink);
}
.issued__card img { display: block; width: 100%; height: auto; aspect-ratio: 1; background: var(--paper-2); }
.issued__side { min-width: 0; }
.issued__case { margin: 0; font: 400 18px/1.1 var(--display); letter-spacing: .04em; text-transform: uppercase; }

.desk__note { margin: 14px 0 0; padding-top: 10px; border-top: 1px solid rgba(34, 6, 52, .25); font-size: 12px; line-height: 1.38; color: var(--mute); }

/* ───────────────────────── mosaic ───────────────────────── */

.mosaic {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gut);
  padding: 0 var(--gut);
  height: clamp(300px, 86vw, 640px);
  margin-block: -2.4vw 0;
  transform: skewY(-3deg);
}
.mosaic--l { order: 2; grid-template-rows: 40fr 60fr; margin-top: 5.6vw; }
.mosaic--r { order: 3; grid-template-rows: 60fr 40fr; margin-top: var(--gut); margin-bottom: -2.8vw; transform: skewY(3deg); }

.tile { position: relative; margin: 0; overflow: hidden; background: #150320; animation: slam .75s cubic-bezier(.2, .9, .2, 1) both; }
.tile::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), inset 0 -60px 60px -40px rgba(34, 6, 52, .5); pointer-events: none; }
.tile__in { position: absolute; inset: -9% 0; transform: skewY(3deg); }
.mosaic--r .tile__in { transform: skewY(-3deg); }
.tile img, .tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; }
:where(.js) .tile img { animation: drift 24s ease-in-out infinite alternate; }
.tile__vid { opacity: 0; transition: opacity .7s; }
.tile__vid.is-on { opacity: 1; }
.t-heli img, .t-cruiser img { animation: none; }

.t-heli { grid-column: 1 / -1; grid-row: 1; }
.t-exact { grid-column: 1 / 7; grid-row: 2; }
.t-valet { grid-column: 7 / -1; grid-row: 2; }
.t-getaway, .t-turndown, .t-wholesaler, .t-evidence { display: none; }
.t-sparkler { grid-column: 1 / 6; grid-row: 1; }
.t-landlord { grid-column: 6 / -1; grid-row: 1; }
.t-cruiser { grid-column: 1 / -1; grid-row: 2; }

/* Each frame has its own focus: across for the tall desktop tiles, down for the squat ones below it.
   The desk overlaps the inner column, so those four keep their subject clear of that edge. */
.t-exact img { object-position: 44% 20%; }
.t-valet img { object-position: 40% 80%; animation-duration: 29s; }
.t-sparkler img { object-position: 42% 8%; animation-duration: 27s; }
.t-landlord img { object-position: 70% 34%; animation-duration: 31s; }
.t-turndown img { object-position: 46% 22%; animation-duration: 26s; }
.t-getaway img { object-position: 65% 30%; animation-duration: 33s; }
.t-wholesaler img { object-position: 56% 35%; animation-duration: 30s; }
.t-evidence img { object-position: 75% 23%; animation-duration: 36s; }

.mosaic .tile:nth-child(1) { animation-delay: .05s; }
.mosaic .tile:nth-child(2) { animation-delay: .16s; }
.mosaic .tile:nth-child(3) { animation-delay: .27s; }
.mosaic .tile:nth-child(4) { animation-delay: .38s; }
.mosaic .tile:nth-child(5) { animation-delay: .49s; }
.mosaic--r .tile:nth-child(1) { animation-delay: .1s; }
.mosaic--r .tile:nth-child(2) { animation-delay: .21s; }
.mosaic--r .tile:nth-child(3) { animation-delay: .32s; }
.mosaic--r .tile:nth-child(4) { animation-delay: .43s; }
.mosaic--r .tile:nth-child(5) { animation-delay: .54s; }

/* ───────────────────────── tapes ───────────────────────── */

.tapes { position: relative; z-index: 4; height: 104px; margin: -40px 0 -34px; overflow: hidden; pointer-events: none; }
.tape {
  position: absolute; left: -6%; width: 112%; padding: 8px 0 6px; overflow: hidden; white-space: nowrap;
  border-block: 3px solid var(--ink);
  font: 400 clamp(15px, 3.6vw, 19px)/1 var(--display); letter-spacing: .16em; text-transform: uppercase;
  box-shadow: 0 8px 18px rgba(20, 2, 34, .45);
}
.tape--a { top: 20px; background: var(--gold); color: var(--ink); rotate: -1.8deg; }
.tape--b { top: 46px; background: var(--pink); color: var(--ink); rotate: 1.5deg; }
.tape__run { display: inline-flex; }
:where(.js) .tape__run { animation: tape 44s linear infinite; }
.tape--b .tape__run { animation-duration: 56s; animation-direction: reverse; }

/* ───────────────────────── Most Wanted board ───────────────────────── */

.wanted {
  position: relative; overflow: hidden; text-align: center;
  padding: 0 0 46px;
  background:
    radial-gradient(rgba(255, 61, 139, .2) 1.2px, transparent 1.5px) 0 0 / 14px 14px,
    radial-gradient(90% 50% at 50% 34%, rgba(143, 91, 216, .38), rgba(34, 6, 52, 0) 70%),
    var(--ink);
}

.lineup { position: relative; height: clamp(150px, 27vw, 360px); overflow: hidden; }
.lineup img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 26%; }
.lineup::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(34, 6, 52, .15) 0%, rgba(34, 6, 52, 0) 40%, var(--ink) 100%); }

.wanted__title { position: relative; z-index: 1; margin: calc(-1 * clamp(64px, 12vw, 150px)) auto 0; width: min(72vw, 460px); line-height: 0; }
.wanted__title img { display: block; width: 100%; height: auto; filter: drop-shadow(0 10px 22px rgba(20, 2, 34, .7)); }

.wanted__caption { margin: 14px auto 4px; padding: 0 20px; max-width: 620px; font-size: 14px; line-height: 1.45; color: #f3d9ee; }
.wanted__disclaimer { margin: 10px auto 0; padding: 0 20px; max-width: 620px; font-size: 12px; line-height: 1.4; color: #d5bbdd; }

.reel { overflow-x: auto; overflow-y: hidden; padding: 20px 0 26px; scrollbar-width: thin; scrollbar-color: var(--pink) transparent; -webkit-overflow-scrolling: touch; }
.reel:focus-visible { outline-offset: -4px; }
/* Room above the second row for the tilt and the hover lift; the negative margin keeps the rows where they were. */
.reel--b { padding-top: 14px; margin-top: -14px; }
/* A still row narrower than the screen sits in the middle; a wider one starts at the left edge as before. */
.reel__run { display: flex; width: max-content; margin: 0 auto; padding: 0 0 0 18px; list-style: none; }
.reel--live { overflow: hidden; scrollbar-width: none; }
.reel--live::-webkit-scrollbar { display: none; }
/* Held: the run stops and the row can be browsed by hand. */
.is-still .reel--live { overflow-x: auto; scrollbar-width: thin; }
.is-still .reel--live::-webkit-scrollbar { display: block; }
.reel--live .reel__run { padding-left: 0; }
:where(.js) .reel--live .reel__run { animation: reel 120s linear infinite; }
.reel--b.reel--live .reel__run { animation-direction: reverse; animation-duration: 138s; }
.reel--live:hover .reel__run { animation-play-state: paused; }

.file {
  flex: none; width: clamp(160px, 44vw, 250px); margin-right: 18px;
  background: var(--paper) url("/img/grain.png"); color: var(--ink); text-align: left;
  border: 3px solid var(--ink);
  box-shadow: 5px 5px 0 var(--pink);
  rotate: -1.4deg;
  transition: rotate .22s, translate .22s, scale .22s, box-shadow .22s;
}
/* Period three: a row is nine cards, so the loop's copy lines up with its original at the seam. */
.file:nth-child(3n+2) { rotate: 1.2deg; box-shadow: 5px 5px 0 var(--teal); }
.file:nth-child(3n) { rotate: -.4deg; box-shadow: 5px 5px 0 var(--gold); }
.file:hover { rotate: 0deg; translate: 0 -6px; scale: 1.035; box-shadow: 9px 11px 0 var(--pink); z-index: 2; }
.file figure { margin: 0; }
.file img { display: block; width: 100%; height: auto; aspect-ratio: 1; border-bottom: 3px solid var(--ink); background: var(--ink-2); }
.file figcaption { display: block; padding: 7px 10px 9px; }
.file__stars { display: block; font-size: 11px; line-height: 1; letter-spacing: .22em; color: var(--hot); }
.file__name { display: block; margin-top: 4px; font: 400 clamp(15px, 3.8vw, 18px)/1.06 var(--display); letter-spacing: .02em; text-transform: uppercase; }
.file__charge { display: block; margin-top: 3px; font-size: 12px; line-height: 1.25; color: var(--mute); }

/* ───────────────────────── notes ───────────────────────── */

.notes { padding: 30px 20px 34px; padding: 30px max(20px, env(safe-area-inset-right)) 34px max(20px, env(safe-area-inset-left)); background: var(--paper) url("/img/grain.png"); color: var(--ink); border-block: 3px solid var(--ink); }
.notes__list { list-style: none; margin: 0 auto; padding: 0; max-width: 1180px; display: grid; grid-template-columns: 1fr; gap: 18px; }
.note { padding-top: 9px; border-top: 5px solid var(--ink); }
.note--free { border-top-color: var(--hot); }
.note__label { margin: 0; font: 400 20px/1.05 var(--display); letter-spacing: .04em; text-transform: uppercase; }
.note--free .note__label { color: #c9154f; }
.note__text { margin: 5px 0 0; font-size: 13.5px; line-height: 1.45; }

/* ───────────────────────── footer ───────────────────────── */

.foot { position: relative; overflow: hidden; text-align: center; background: var(--ink); color: var(--paper); }
.foot__sky { position: relative; height: clamp(120px, 20vw, 260px); overflow: hidden; }
.foot__sky img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.foot__sky::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(34, 6, 52, 0) 30%, var(--ink) 100%); }
/* The bottom padding clears the motion control pinned in the corner: its offset from the edge (same
   expression as .hold), its 46px and 14px of air. The page cannot scroll text out from under it here. */
.foot__in { position: relative; margin-top: -58px; padding: 0 20px 72px; padding-bottom: calc(max(12px, env(safe-area-inset-bottom)) + 60px); }
.foot__plate { display: block; margin: 0 auto; width: 112px; height: 112px; filter: drop-shadow(0 6px 0 rgba(20, 2, 34, .55)); }
.foot__line { margin: 14px 0 0; font-size: 13px; letter-spacing: .03em; }
.foot__fiction { margin: 6px auto 0; max-width: 560px; font-size: 12px; line-height: 1.4; color: #d5bbdd; }

/* Narrow phones: keep the second title line beside the stamp instead of dropping below it. */
@media (max-width: 349px) {
  .stamp { width: 96px; margin-left: 8px; }
  .desk__title { font-size: 24px; }
}

/* ───────────────────────── tablet ───────────────────────── */

@media (min-width: 560px) {
  .issued { grid-template-columns: minmax(150px, 210px) minmax(0, 1fr); align-items: start; }
  .issued__card { margin: 4px 0 0; width: 100%; }
  .notes__list { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 700px) {
  .cover { display: grid; grid-template-columns: 1fr 1fr; grid-template-areas: "c c" "l r"; }
  .center { grid-area: c; padding-bottom: 44px; }
  .mosaic { height: clamp(420px, 66vw, 760px); margin-top: 3vw; margin-bottom: -1.6vw; }
  .mosaic--l { grid-area: l; grid-template-rows: 27fr 41fr 32fr; padding-right: calc(var(--gut) / 2); }
  .mosaic--r { grid-area: r; grid-template-rows: 40fr 27fr 33fr; padding-left: calc(var(--gut) / 2); }
  .t-getaway, .t-turndown, .t-wholesaler, .t-evidence { display: block; }
  .t-getaway { grid-column: 1 / 8; grid-row: 3; }
  .t-turndown { grid-column: 8 / -1; grid-row: 3; }
  .t-wholesaler { grid-column: 1 / 6; grid-row: 3; }
  .t-evidence { grid-column: 6 / -1; grid-row: 3; }
  .brand { width: min(70vw, 560px); margin-top: 22px; }
  .headline { width: min(52vw, 400px); }
  .desk__body { padding: 16px 20px 16px; }
  .desk__seal { left: -22px; top: -30px; width: 76px; height: 76px; }
  .desk__bar { padding-left: 64px; }
  .tapes { height: 120px; margin: -46px 0 -40px; }
  .tape--a { top: 22px; }
  .tape--b { top: 56px; }
  .file { width: clamp(190px, 21vw, 250px); margin-right: 22px; }
  .notes__list { grid-template-columns: repeat(4, 1fr); gap: 22px; }
}

/* ───────────────────────── full cover ───────────────────────── */

@media (min-width: 1180px) {
  .cover {
    grid-template-columns: minmax(0, 1fr) clamp(470px, 36vw, 640px) minmax(0, 1fr);
    grid-template-areas: "l c r";
    min-height: max(100svh, 820px);
  }
  .center { padding: clamp(18px, 3vh, 38px) 0 clamp(30px, 5vh, 60px); justify-content: center; }
  .topband { display: none; }

  .sky { inset: 0 -30px; background: none; clip-path: polygon(26px 0, 100% 0, calc(100% - 26px) 100%, 0 100%); }
  .center::before {
    content: ""; position: absolute; z-index: -3; inset: 0 -36px; background: var(--ink);
    clip-path: polygon(26px 0, 100% 0, calc(100% - 26px) 100%, 0 100%);
  }
  .sun { top: clamp(10px, 4vh, 60px); width: min(92%, 520px); }

  .brand { margin-top: 0; width: min(calc(100% - 44px), 56vh, 520px); }
  .headline { margin-top: clamp(4px, 1.2vh, 14px); width: min(84%, 42vh, 410px); }

  .desk { width: calc(100% + 76px); max-width: 700px; margin-top: clamp(12px, 2.4vh, 26px); }
  .desk__title { font-size: clamp(30px, 2.5vw, 38px); }
  .stage__title { font-size: clamp(20px, 1.65vw, 24px); }
  .btn { font-size: clamp(20px, 1.7vw, 24px); }
  .btn--ghost { font-size: clamp(16px, 1.3vw, 18px); }

  .mosaic { height: auto; margin: -2.6vw 0; padding: 0; }
  .mosaic--l { padding: 0 0 0 var(--gut); margin-right: -4px; }
  .mosaic--r { padding: 0 var(--gut) 0 0; margin-left: -4px; }
  .tile__in { inset: -12% 0; }

  /* The slanted tape rises with the viewport width: the box grows by the same amount it is pulled back. */
  .tapes { height: calc(132px + 3.2vw); margin: calc(-52px - 1.6vw) 0 calc(-44px - 1.6vw); }
  .tape--a { top: calc(26px + 1.6vw); }
  .tape--b { top: calc(62px + 1.6vw); }
}

/* ───────────────────────── motion ───────────────────────── */

/* Entrances play once and need nothing. Everything that loops is declared under :where(.js): the
   script sets that class on <html> when it starts and brings the control that holds the motion, so
   without the script the page stands still. :where() adds no weight, so the overrides next to each
   rule (durations, direction, "none") win exactly as they did. */

@keyframes rise { from { opacity: 0; translate: 0 18px; } to { opacity: 1; translate: 0 0; } }
@keyframes slam { from { opacity: 0; scale: 1.06; translate: 0 16px; } to { opacity: 1; scale: 1; translate: 0 0; } }
@keyframes drift { from { transform: scale(1.04) translate3d(-1%, 0, 0); } to { transform: scale(1.13) translate3d(1.2%, -1.4%, 0); } }
@keyframes sun { from { scale: .97; opacity: .7; } to { scale: 1.04; opacity: .86; } }
@keyframes thunk { from { opacity: 0; scale: 1.7; } to { opacity: 1; scale: 1; } }
@keyframes stamp { from { opacity: 0; scale: 2.1; } to { opacity: .93; scale: 1; } }
@keyframes lamp { 0%, 100% { opacity: 1; box-shadow: 0 0 0 2px rgba(255, 255, 255, .16), 0 0 10px currentColor; } 50% { opacity: .45; box-shadow: 0 0 0 2px rgba(255, 255, 255, .08); } }
@keyframes blink { 50% { opacity: .45; } }
@keyframes lightbar { 0% { background: linear-gradient(90deg, var(--pink) 0 50%, var(--cyan) 50% 100%); } 50% { background: linear-gradient(90deg, var(--cyan) 0 50%, var(--pink) 50% 100%); } }
@keyframes tape { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes reel { from { transform: translateX(0); } to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .stamp { opacity: .93; }
  .tile__vid { display: none; }
}

/* ───────────────────────── utilities ───────────────────────── */

/* The hidden attribute must beat display on .btn and .msg: the card and the buttons are hidden with it. */
[hidden] { display: none !important; }

/* The trailing space of each tape half must not collapse, or the loop seam comes out one step short. */
.tape__run span { white-space: pre; }

/* One control for all motion, pinned to the window corner so it is there from the first screen. */
.hold {
  position: fixed; z-index: 40;
  right: max(12px, env(safe-area-inset-right)); bottom: max(12px, env(safe-area-inset-bottom));
  width: 46px; height: 46px; padding: 0;
  border: 3px solid var(--ink); border-radius: 50%;
  background: var(--gold); color: var(--ink);
  box-shadow: 3px 3px 0 var(--pink), 0 8px 18px rgba(20, 2, 34, .45);
  cursor: pointer; transition: translate .12s, background-color .12s;
}
.hold::before, .hold::after { content: ""; position: absolute; top: 50%; width: 5px; height: 16px; translate: 0 -50%; background: currentColor; }
.hold::before { left: calc(50% - 8px); }
.hold::after { left: calc(50% + 3px); }
.hold:hover { translate: -1px -1px; background: #ffe27a; }
.hold:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 8px var(--cyan); }
.hold--on { background: var(--paper); }
.hold--on::before {
  left: calc(50% - 5px); width: 0; height: 0; background: none;
  border-style: solid; border-width: 9px 0 9px 14px; border-color: transparent transparent transparent currentColor;
}
.hold--on::after { display: none; }

/* The lamp rules set the animation shorthand, so the pause needs a selector at least as specific. */
.is-still .reel__run, .is-still .tape__run, .is-still .tile img, .is-still .sun,
.is-still .band[data-band] .band__lamp, .is-still .stage__loading, .is-still .btn::before { animation-play-state: paused; }
