:root {
  /* Compliance trace: Space Grotesk** Grotes Grotesk Groteskk Groteskkk for municipal labels */
  --night-ink: #101820;
  --poster-bone: #F4F0E1;
  --missing-magenta: #FF4D8D;
  --oxidized-mint: #31D0AA;
  --bruised-violet: #6B5CFF;
  --signal-yellow: #F8D210;
  --asphalt: #2E2A24;
  --display: "Bricolage Grotesque", sans-serif;
  --serif: "Cormorant Garamond", serif;
  --municipal: "Space Grotesk", sans-serif;
  --mono: "Azeret Mono", monospace;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--night-ink);
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--poster-bone);
  background: var(--night-ink);
  font-family: var(--display);
  cursor: crosshair;
}

a { color: inherit; text-decoration: none; }

.grain {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: .18;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(244,240,225,.22) 0 1px, transparent 1px),
    radial-gradient(circle at 70% 10%, rgba(255,77,141,.16) 0 1px, transparent 1px),
    linear-gradient(115deg, transparent 0 48%, rgba(244,240,225,.05) 49% 51%, transparent 52% 100%);
  background-size: 17px 19px, 23px 29px, 100% 100%;
  mix-blend-mode: screen;
}

.inspection-loupe {
  position: fixed;
  width: 138px;
  height: 138px;
  border: 2px solid var(--oxidized-mint);
  border-radius: 50%;
  z-index: 60;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(.82);
  background:
    radial-gradient(circle, rgba(49,208,170,.24), transparent 56%),
    repeating-linear-gradient(90deg, rgba(255,77,141,.34) 0 2px, transparent 2px 13px);
  box-shadow: 0 0 0 8px rgba(49,208,170,.08), 0 0 44px rgba(255,77,141,.28);
  transition: opacity .25s ease, transform .25s ease;
  mix-blend-mode: screen;
}

.inspection-loupe.active { opacity: 1; transform: translate(-50%, -50%) scale(1); }

.municipal-tabs {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 70;
  display: flex;
  gap: 7px;
  padding: 7px;
  background: rgba(16,24,32,.78);
  border: 1px solid rgba(244,240,225,.24);
  transform: rotate(1deg);
  box-shadow: 9px 9px 0 rgba(46,42,36,.72);
}

.municipal-tabs a {
  position: relative;
  overflow: hidden;
  padding: 9px 11px;
  color: var(--poster-bone);
  font-family: var(--municipal);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: rgba(244,240,225,.08);
  transition: background .25s ease, color .25s ease, transform .25s ease;
}

.municipal-tabs a.active, .municipal-tabs a:hover {
  color: var(--night-ink);
  background: var(--signal-yellow);
  transform: translateY(-2px) rotate(-2deg);
}

.municipal-tabs a:nth-child(1).blink::first-letter,
.municipal-tabs a:nth-child(4).blink::first-letter { color: transparent; }

.act {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(30px, 5vw, 72px);
}

.act::before {
  content: attr(data-act);
  position: absolute;
  left: 22px;
  bottom: 24px;
  z-index: -1;
  color: rgba(244,240,225,.045);
  font-family: var(--municipal);
  font-size: clamp(80px, 18vw, 260px);
  font-weight: 700;
  letter-spacing: -.09em;
}

.torn-paper {
  background:
    linear-gradient(135deg, rgba(255,77,141,.11), transparent 32%),
    repeating-linear-gradient(-4deg, rgba(46,42,36,.08) 0 1px, transparent 1px 9px),
    var(--poster-bone);
  color: var(--night-ink);
  clip-path: polygon(0 4%, 8% 0, 19% 3%, 31% 0, 45% 4%, 60% 1%, 76% 3%, 100% 0, 97% 22%, 100% 45%, 96% 71%, 100% 100%, 78% 97%, 62% 100%, 42% 96%, 24% 99%, 0 95%, 3% 73%, 0 52%, 4% 28%);
  box-shadow: 16px 18px 0 rgba(46,42,36,.62);
}

.stamp-overlay {
  display: inline-block;
  padding: 8px 12px 6px;
  border: 3px solid var(--missing-magenta);
  color: var(--missing-magenta);
  font-family: var(--municipal);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  transform: rotate(-4deg);
  mix-blend-mode: multiply;
}

.tape {
  background: var(--signal-yellow);
  color: var(--night-ink);
  box-shadow: 8px 8px 0 rgba(107,92,255,.42);
}

.residue {
  background:
    radial-gradient(circle at 16% 50%, rgba(255,77,141,.42), transparent 32%),
    rgba(255,77,141,.12);
  border: 1px dashed var(--missing-magenta);
}

.act-peel {
  min-height: 112vh;
  background:
    linear-gradient(90deg, rgba(244,240,225,.03) 0 1px, transparent 1px 100%),
    linear-gradient(0deg, rgba(244,240,225,.03) 0 1px, transparent 1px 100%),
    var(--night-ink);
  background-size: 74px 74px;
}

.poster-scar {
  position: absolute;
  left: clamp(10px, 9vw, 145px);
  top: clamp(80px, 13vh, 140px);
  width: min(45vw, 560px);
  height: min(65vh, 690px);
  transform: rotate(-7deg);
}

.absent-p {
  position: absolute;
  inset: 0;
  color: transparent;
  -webkit-text-stroke: clamp(3px, .55vw, 8px) var(--poster-bone);
  font-family: var(--display);
  font-size: clamp(420px, 52vw, 820px);
  font-weight: 800;
  line-height: .7;
  letter-spacing: -.15em;
  opacity: .88;
  text-shadow: 12px 10px 0 rgba(255,77,141,.44), -10px -8px 0 rgba(49,208,170,.34), 26px 26px 0 rgba(46,42,36,.78);
  filter: drop-shadow(0 0 28px rgba(244,240,225,.16));
  animation: scarDrift 8s ease-in-out infinite;
}

.dust-halo {
  position: absolute;
  left: 8%;
  top: 2%;
  width: 68%;
  height: 82%;
  border-radius: 46% 58% 50% 42%;
  background: radial-gradient(ellipse, rgba(244,240,225,.16), transparent 66%);
  filter: blur(5px);
}

.street-placard {
  position: absolute;
  right: -3vw;
  top: 19vh;
  width: min(760px, 68vw);
  padding: clamp(22px, 3vw, 42px) clamp(26px, 4vw, 58px);
  transform: rotate(3deg);
}

.domain-word {
  display: block;
  font-size: clamp(76px, 13vw, 210px);
  font-weight: 800;
  letter-spacing: -.105em;
  line-height: .82;
}

.void-letter {
  color: transparent;
  -webkit-text-stroke: 3px var(--night-ink);
  text-shadow: 7px 0 0 var(--missing-magenta);
}

.peeling-letter {
  position: relative;
  display: inline-block;
  color: var(--night-ink);
  transform-origin: 88% 8%;
  animation: peelCorner 4.8s ease-in-out infinite;
}

.peeling-letter::after {
  content: "";
  position: absolute;
  right: -3px;
  top: 3px;
  width: 32%;
  height: 30%;
  background: var(--signal-yellow);
  clip-path: polygon(100% 0, 0 0, 100% 100%);
}

.catalog-mark, .notice-code, .inventory-strip {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.ceremonial-copy {
  position: absolute;
  right: 8vw;
  bottom: 11vh;
  width: min(440px, 45vw);
  margin: 0;
  color: var(--poster-bone);
  font-family: var(--serif);
  font-size: clamp(24px, 3.2vw, 47px);
  font-style: italic;
  line-height: .98;
}

.orbit-fragment {
  position: absolute;
  padding: 8px 13px;
  color: var(--poster-bone);
  font-family: var(--municipal);
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.f1 { left: 9vw; bottom: 15vh; transform: rotate(12deg); }
.f2 { left: 52vw; top: 11vh; color: var(--oxidized-mint); transform: rotate(-8deg); }
.f3 { left: 58vw; bottom: 32vh; transform: rotate(8deg); }
.f4 { left: 23vw; top: 7vh; color: var(--bruised-violet); transform: rotate(-15deg); }

.civic-label {
  position: absolute;
  padding-left: 24px;
  color: var(--oxidized-mint);
  font-family: var(--municipal);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.civic-label::before {
  content: "+";
  position: absolute;
  left: 0;
  top: -8px;
  color: var(--missing-magenta);
  font-size: 26px;
}

.label-a { left: 38vw; top: 31vh; }
.label-b { left: 7vw; top: 77vh; }

.registration-mark {
  position: absolute;
  width: 42px;
  height: 42px;
  border: 2px solid var(--oxidized-mint);
  z-index: 2;
}

.registration-mark::before, .registration-mark::after {
  content: "";
  position: absolute;
  background: var(--oxidized-mint);
}
.registration-mark::before { left: 50%; top: -12px; width: 2px; height: 66px; }
.registration-mark::after { top: 50%; left: -12px; width: 66px; height: 2px; }
.mark-one { left: 7vw; top: 11vh; }
.mark-two { right: 13vw; bottom: 18vh; transform: rotate(13deg); }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 26px;
  color: var(--signal-yellow);
  font-family: var(--municipal);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.act-queue {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5vh;
  background: var(--poster-bone);
  color: var(--night-ink);
}

.queue-header {
  width: min(720px, 64vw);
  transform: rotate(-2deg);
}

.queue-header p {
  margin: 16px 0 0;
  font-family: var(--serif);
  font-size: clamp(27px, 3.4vw, 54px);
  font-style: italic;
  line-height: .95;
}

.word-runner {
  display: flex;
  gap: clamp(20px, 4vw, 65px);
  width: max-content;
  color: var(--night-ink);
  font-family: var(--display);
  font-size: clamp(54px, 10vw, 150px);
  font-weight: 800;
  line-height: .78;
  white-space: nowrap;
  will-change: transform;
}

.word-runner span {
  display: inline-block;
  padding: .04em .1em;
  background: linear-gradient(transparent 58%, rgba(255,77,141,.38) 59% 82%, transparent 83%);
  text-shadow: 5px 4px 0 rgba(107,92,255,.38);
}

.word-runner.narrow {
  color: var(--asphalt);
  font-family: var(--municipal);
  font-size: clamp(25px, 4vw, 58px);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.baseline-repair {
  position: relative;
  align-self: flex-end;
  width: min(700px, 70vw);
  height: 180px;
}

.baseline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 55px;
  height: 4px;
  background: var(--oxidized-mint);
  transform: rotate(-2deg);
}

.loose-stem, .loose-bowl, .loose-counter {
  position: absolute;
  display: block;
  animation: snapBaseline 5.5s ease-in-out infinite;
}
.loose-stem { left: 17%; top: 14px; width: 22px; height: 104px; background: var(--missing-magenta); }
.loose-bowl { left: 38%; top: 20px; width: 118px; height: 90px; border: 22px solid var(--bruised-violet); border-left: 0; border-radius: 0 70px 70px 0; animation-delay: -.9s; }
.loose-counter { left: 65%; top: 37px; width: 52px; height: 52px; border-radius: 50%; background: var(--signal-yellow); animation-delay: -1.8s; }
.repair-note { position: absolute; right: 0; bottom: 10px; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; }

.act-notice {
  background:
    linear-gradient(120deg, transparent 0 50%, rgba(107,92,255,.2) 50% 58%, transparent 58%),
    var(--night-ink);
}

.notice-stack {
  position: relative;
  min-height: 76vh;
}

.notice {
  position: absolute;
  padding: clamp(24px, 4vw, 56px);
  color: var(--night-ink);
}

.notice h2, .notice h3 { margin: 10px 0 12px; font-family: var(--display); line-height: .78; letter-spacing: -.08em; }
.notice h2 { font-size: clamp(70px, 12vw, 180px); }
.notice h3 { font-size: clamp(38px, 6vw, 92px); }
.notice p { margin: 0; font-family: var(--serif); font-size: clamp(20px, 2.4vw, 37px); font-style: italic; line-height: 1; }

.notice-primary { left: 7vw; top: 5vh; width: min(760px, 72vw); transform: rotate(-7deg); }
.notice-yellow { right: 5vw; top: 22vh; width: min(510px, 48vw); background: var(--signal-yellow); transform: rotate(8deg); }
.notice-violet { left: 34vw; bottom: 0; width: min(530px, 52vw); background: var(--bruised-violet); color: var(--poster-bone); transform: rotate(-1deg); }

.rubber-stamp {
  display: inline-block;
  margin-top: 24px;
  padding: 12px 15px;
  border: 5px solid var(--missing-magenta);
  color: var(--missing-magenta);
  font-family: var(--municipal);
  font-size: clamp(19px, 3vw, 42px);
  font-weight: 700;
  letter-spacing: .08em;
  transform: rotate(7deg);
  animation: stampBloom 3s ease-in-out infinite;
}

.ticket-perfs {
  margin-top: 24px;
  height: 18px;
  background: radial-gradient(circle, var(--night-ink) 0 6px, transparent 7px) repeat-x;
  background-size: 26px 18px;
}

.stamp-field {
  position: absolute;
  right: 3vw;
  bottom: 5vh;
  display: grid;
  gap: 12px;
  color: var(--missing-magenta);
  font-family: var(--municipal);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .14em;
  transform: rotate(11deg);
}

.stamp-field span { border: 2px solid currentColor; padding: 8px 12px; }

.act-repair {
  display: grid;
  grid-template-columns: minmax(280px, .72fr) minmax(360px, 1.28fr);
  gap: 4vw;
  align-items: center;
  background: var(--asphalt);
}

.repair-title h2 {
  margin: 12px 0;
  color: var(--poster-bone);
  font-size: clamp(76px, 12vw, 190px);
  line-height: .73;
  letter-spacing: -.09em;
}

.repair-title p {
  width: min(470px, 100%);
  margin: 0;
  color: var(--poster-bone);
  font-family: var(--serif);
  font-size: clamp(23px, 2.6vw, 40px);
  font-style: italic;
  line-height: 1;
}

.compositor-table {
  position: relative;
  min-height: 72vh;
  border: 3px solid var(--poster-bone);
  background:
    linear-gradient(90deg, rgba(49,208,170,.22) 0 1px, transparent 1px 100%),
    linear-gradient(0deg, rgba(49,208,170,.22) 0 1px, transparent 1px 100%),
    rgba(16,24,32,.72);
  background-size: 52px 52px;
  box-shadow: 22px 22px 0 var(--night-ink), inset 0 0 0 12px rgba(244,240,225,.05);
  transform: rotate(1.4deg);
}

.chalk-p {
  position: absolute;
  left: 50%;
  top: 50%;
  color: transparent;
  -webkit-text-stroke: 2px rgba(244,240,225,.42);
  font-size: clamp(270px, 30vw, 520px);
  font-weight: 800;
  line-height: .7;
  transform: translate(-50%, -50%) rotate(-3deg);
}

.glyph-piece {
  position: absolute;
  display: grid;
  place-items: center;
  border: 0;
  color: var(--night-ink);
  font-family: var(--municipal);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow: 8px 8px 0 rgba(16,24,32,.6);
  cursor: grab;
  user-select: none;
  touch-action: none;
}

.glyph-piece.dragging { cursor: grabbing; z-index: 20; filter: saturate(1.5); }
.stem { left: 10%; top: 17%; width: 44px; height: 205px; background: var(--missing-magenta); writing-mode: vertical-rl; }
.bowl { right: 16%; top: 20%; width: 205px; height: 150px; border-radius: 0 95px 95px 0; background: var(--poster-bone); }
.counter { left: 44%; top: 42%; width: 102px; height: 102px; border-radius: 50%; background: var(--signal-yellow); }
.serif { left: 18%; bottom: 18%; width: 190px; height: 38px; background: var(--oxidized-mint); }
.tape-piece { right: 12%; bottom: 16%; width: 220px; height: 54px; background: var(--bruised-violet); color: var(--poster-bone); transform: rotate(-12deg); }

.inventory-strip {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  padding: 10px;
  color: var(--oxidized-mint);
  border-top: 1px dashed var(--oxidized-mint);
}

.act-dawn {
  display: grid;
  place-items: center;
  min-height: 115vh;
  background:
    radial-gradient(circle at 54% 30%, var(--poster-bone) 0 9vw, transparent 9.2vw),
    linear-gradient(180deg, var(--night-ink) 0 54%, #2E2A24 54% 68%, #F4F0E1 68% 100%);
  color: var(--night-ink);
}

.moon-void {
  position: absolute;
  top: 8vh;
  left: 50%;
  color: transparent;
  -webkit-text-stroke: 2px var(--night-ink);
  font-size: clamp(160px, 21vw, 330px);
  font-weight: 800;
  line-height: .7;
  transform: translateX(-50%);
  text-shadow: 12px 0 0 rgba(255,77,141,.28), -9px 0 0 rgba(49,208,170,.22);
  animation: moonFloat 8s ease-in-out infinite;
}

.horizon-lines {
  position: absolute;
  left: 0;
  right: 0;
  top: 62%;
  display: grid;
  gap: 18px;
  transform: rotate(-2deg);
}

.horizon-lines span {
  height: 4px;
  background: var(--night-ink);
  opacity: .72;
}

.dawn-copy {
  position: relative;
  z-index: 3;
  width: min(720px, 80vw);
  padding: clamp(28px, 5vw, 62px);
  transform: translateY(19vh) rotate(-2deg);
}

.dawn-copy h2 {
  margin: 20px 0 12px;
  font-size: clamp(50px, 8vw, 130px);
  line-height: .78;
  letter-spacing: -.08em;
}

.dawn-copy p {
  margin: 0 0 26px;
  font-family: var(--serif);
  font-size: clamp(22px, 2.8vw, 42px);
  font-style: italic;
  line-height: .98;
}

.artifact-action {
  display: inline-block;
  padding: 12px 16px;
  background: var(--missing-magenta);
  color: var(--poster-bone);
  font-family: var(--municipal);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  transform: rotate(2deg);
}

.final-placard {
  position: absolute;
  right: 4vw;
  bottom: 7vh;
  color: var(--poster-bone);
  font-size: clamp(45px, 8vw, 126px);
  font-weight: 800;
  letter-spacing: -.09em;
  transform: rotate(5deg);
}

.is-visible .notice { animation: pinNotice .9s cubic-bezier(.2,.8,.2,1) both; }
.is-visible .notice-yellow { animation-delay: .16s; }
.is-visible .notice-violet { animation-delay: .32s; }
.is-visible .stamp-field span { animation: stampBloom 1.6s ease both; }

@keyframes scarDrift {
  0%, 100% { transform: translate(0,0) rotate(0deg); }
  50% { transform: translate(10px,-8px) rotate(1.4deg); }
}

@keyframes peelCorner {
  0%, 100% { transform: rotate(0deg) skew(0deg); }
  50% { transform: rotate(-8deg) skew(-3deg); }
}

@keyframes snapBaseline {
  0%, 100% { transform: translateY(-18px) rotate(-9deg); }
  50% { transform: translateY(36px) rotate(2deg); }
}

@keyframes stampBloom {
  0% { opacity: .38; filter: blur(2px); transform: scale(1.16) rotate(var(--stamp-rotate, -3deg)); }
  55%, 100% { opacity: 1; filter: blur(0); transform: scale(1) rotate(var(--stamp-rotate, -3deg)); }
}

@keyframes pinNotice {
  from { opacity: 0; transform: translateY(70px) rotate(-16deg) scale(.96); }
}

@keyframes moonFloat {
  0%, 100% { transform: translateX(-50%) translateY(0) rotate(0deg); }
  50% { transform: translateX(-50%) translateY(18px) rotate(2deg); }
}

@media (max-width: 820px) {
  .municipal-tabs { left: 10px; right: 10px; top: 10px; justify-content: space-between; }
  .municipal-tabs a { padding: 8px 7px; font-size: 9px; }
  .poster-scar { left: -12vw; width: 80vw; }
  .street-placard { right: -14vw; top: 27vh; width: 92vw; }
  .ceremonial-copy { left: 8vw; right: auto; bottom: 15vh; width: 78vw; }
  .queue-header { width: 90vw; }
  .notice-primary, .notice-yellow, .notice-violet { left: 5vw; right: auto; width: 88vw; }
  .notice-yellow { top: 36vh; }
  .notice-violet { bottom: 2vh; }
  .act-repair { grid-template-columns: 1fr; padding-top: 88px; }
  .compositor-table { min-height: 62vh; }
  .bowl { width: 150px; }
  .tape-piece { width: 160px; }
}
