:root {
  /* Compliance typography tokens: Inter Tight** Tight* for crisp Swiss utility with contemporary tension. Small technical annotations use IBM Plex Sans Condensed** Condensed*. */
  --burgundy-black: #18040B;
  --ox-blood: #5B1024;
  --riot-red: #B3163B;
  --bone-paper: #F2E7D8;
  --bruised-mauve: #8F5264;
  --signal-chartreuse: #C5E64B;
  --grid-line: rgba(242, 231, 216, 0.14);
  --soft-line: rgba(143, 82, 100, 0.44);
  --mx: 50vw;
  --my: 50vh;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--burgundy-black);
  color: var(--bone-paper);
  font-family: "Inter Tight", Inter, Arial, sans-serif;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
}

a,
button {
  color: inherit;
  font: inherit;
}

.poster-stage {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(179, 22, 59, 0.20), transparent 15rem),
    radial-gradient(circle at 91% 8%, rgba(197, 230, 75, 0.08), transparent 13rem),
    linear-gradient(135deg, #18040B 0%, #210610 48%, #5B1024 100%);
}

.poster-stage::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    repeating-linear-gradient(90deg, transparent 0 calc(8.333vw - 2px), var(--grid-line) calc(8.333vw - 2px) 8.333vw),
    repeating-linear-gradient(0deg, transparent 0 78px, rgba(242, 231, 216, 0.08) 78px 80px);
  mask-image: linear-gradient(90deg, rgba(0,0,0,0.96), rgba(0,0,0,0.46));
}

.poster-stage::after {
  content: "";
  position: fixed;
  inset: 2.2rem;
  z-index: -1;
  border: 1px solid rgba(242, 231, 216, 0.22);
  box-shadow: inset 0 0 0 12px rgba(91, 16, 36, 0.24);
  pointer-events: none;
}

.cursor-field {
  position: fixed;
  width: 24rem;
  height: 24rem;
  left: calc(var(--mx) - 12rem);
  top: calc(var(--my) - 12rem);
  border: 1px solid rgba(197, 230, 75, 0.32);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(197, 230, 75, 0.10), rgba(179, 22, 59, 0.05) 38%, transparent 66%);
  mix-blend-mode: screen;
  pointer-events: none;
  transform: scale(var(--field-scale, 0.72));
  opacity: 0.62;
  transition: transform 240ms ease, opacity 240ms ease;
  z-index: 5;
}

.swiss-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.grid-tick {
  position: absolute;
  left: var(--x);
  top: var(--y);
  font-family: "IBM Plex Sans Condensed", "Arial Narrow", sans-serif;
  font-size: clamp(0.68rem, 0.9vw, 0.95rem);
  letter-spacing: 0.13em;
  color: rgba(242, 231, 216, 0.54);
  border-left: 2px solid var(--bruised-mauve);
  padding-left: 0.45rem;
}

.route-svg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  filter: url(#inkBleed);
}

.route,
.line-illustration path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.route-main {
  stroke: var(--riot-red);
  stroke-width: 7;
  stroke-dasharray: 2220;
  stroke-dashoffset: 2220;
  animation: drawRoute 2.6s cubic-bezier(0.65, 0, 0.2, 1) 0.15s forwards;
}

.route-ghost {
  stroke: var(--bruised-mauve);
  stroke-width: 2.2;
  opacity: 0.74;
  stroke-dasharray: 16 18;
  animation: restlessDash 9s linear infinite;
}

.route-thin {
  stroke: rgba(242, 231, 216, 0.62);
  stroke-width: 1.4;
}

.route-riot {
  stroke: var(--signal-chartreuse);
  stroke-width: 3.5;
  stroke-dasharray: 14 15;
  filter: drop-shadow(0 0 12px rgba(197, 230, 75, 0.28));
}

.line-illustration path {
  stroke: rgba(242, 231, 216, 0.48);
  stroke-width: 2;
}

.fold {
  stroke: var(--bruised-mauve) !important;
}

.top-rail {
  position: fixed;
  top: 3.2rem;
  left: 3.6rem;
  right: 3.6rem;
  z-index: 8;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-family: Archivo, Impact, sans-serif;
  font-weight: 900;
  letter-spacing: -0.025em;
}

.brand-mini {
  color: var(--signal-chartreuse);
  font-size: clamp(1rem, 1.6vw, 1.6rem);
}

.route-nav {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  transform: translateY(0.2rem);
}

.route-nav a {
  text-decoration: none;
  font-family: "IBM Plex Sans Condensed", "Arial Narrow", sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.17em;
  padding: 0.34rem 0.52rem;
  border-top: 2px solid rgba(242, 231, 216, 0.44);
  color: var(--bone-paper);
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.route-nav a:hover {
  color: var(--signal-chartreuse);
  border-color: var(--riot-red);
  background: rgba(91, 16, 36, 0.64);
}

.act {
  position: relative;
  z-index: 6;
  min-height: 100vh;
  padding: 7.4rem 3.6rem 4.4rem;
}

.act-origin {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(8, minmax(4.8rem, 1fr));
}

.wordmark {
  grid-column: 1 / 9;
  grid-row: 2 / 5;
  align-self: center;
  margin: 0 0 0 -7vw;
  font-family: Archivo, Impact, sans-serif;
  font-size: clamp(6.5rem, 20vw, 20rem);
  line-height: 0.74;
  font-weight: 900;
  letter-spacing: -0.105em;
  color: var(--bone-paper);
  text-shadow: 0.05em 0.045em 0 var(--ox-blood), -0.018em -0.018em 0 rgba(197, 230, 75, 0.23);
  animation: wordReveal 1.1s cubic-bezier(0.7, 0, 0.1, 1) both;
}

.rail-label {
  position: absolute;
  left: 3.85rem;
  top: 14rem;
  font-family: "IBM Plex Sans Condensed", "Arial Narrow", sans-serif;
  letter-spacing: 0.18em;
  color: var(--bruised-mauve);
  font-weight: 700;
  font-size: 0.78rem;
}

.vertical {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.manifesto-chip {
  grid-column: 2 / 6;
  grid-row: 6;
  align-self: end;
  width: max-content;
  padding: 0.7rem 0.85rem;
  background: var(--riot-red);
  color: var(--bone-paper);
  font-family: Archivo, Impact, sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.025em;
  transform: rotate(-1.5deg);
}

.origin-copy {
  grid-column: 8 / 12;
  grid-row: 5 / 7;
  align-self: center;
  max-width: 25rem;
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 3.6rem);
  line-height: 0.9;
  font-weight: 800;
  letter-spacing: -0.055em;
}

.act-swerve,
.act-tilt,
.act-unsettle {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: center;
}

.act-swerve {
  background: linear-gradient(180deg, transparent 0%, rgba(91, 16, 36, 0.38) 52%, transparent 100%);
}

.act-swerve .act-number,
.act-tilt .act-number,
.act-unsettle .act-number {
  font-family: Archivo, Impact, sans-serif;
  font-size: clamp(7rem, 16vw, 15rem);
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 2px rgba(242, 231, 216, 0.36);
  line-height: 0.78;
}

.act-swerve .act-number {
  grid-column: 10 / 13;
  grid-row: 1;
  align-self: start;
}

.act h2 {
  margin: 0;
  font-family: Archivo, Impact, sans-serif;
  font-size: clamp(3.2rem, 8vw, 8rem);
  line-height: 0.82;
  letter-spacing: -0.075em;
  text-transform: uppercase;
}

.act p {
  margin: 1.3rem 0 0;
  font-size: clamp(1rem, 1.5vw, 1.35rem);
  line-height: 1.22;
  color: rgba(242, 231, 216, 0.78);
}

.act-swerve h2,
.act-swerve p {
  grid-column: 7 / 12;
}

.route-loop {
  grid-column: 2 / 5;
  grid-row: 1;
  width: min(32vw, 24rem);
  aspect-ratio: 1;
  border: 3px solid var(--bruised-mauve);
  border-left-color: var(--riot-red);
  border-bottom-color: transparent;
  border-radius: 50% 46% 50% 42%;
  box-shadow: inset 0 0 0 1.1rem rgba(91, 16, 36, 0.46), 0 0 0 1px rgba(242, 231, 216, 0.2);
  transform: rotate(-23deg);
}

.act-tilt {
  padding-top: 10rem;
}

.act-tilt .act-number {
  grid-column: 1 / 4;
  grid-row: 1;
}

.act-tilt h2,
.act-tilt p {
  grid-column: 2 / 8;
}

.sticker {
  grid-column: 9 / 12;
  grid-row: 1;
  justify-self: stretch;
  padding: 1.2rem 1rem;
  background: var(--bone-paper);
  color: var(--burgundy-black);
  font-family: Archivo, Impact, sans-serif;
  font-size: clamp(1.5rem, 3.2vw, 3rem);
  line-height: 0.86;
  font-weight: 900;
  letter-spacing: -0.07em;
  transform: rotate(4deg);
  box-shadow: -1rem 1rem 0 var(--ox-blood);
}

.act-unsettle {
  min-height: 96vh;
  padding-bottom: 8rem;
}

.act-unsettle .act-number {
  grid-column: 8 / 11;
  grid-row: 1;
}

.act-unsettle h2,
.act-unsettle p {
  grid-column: 2 / 7;
}

.terminal-stamp {
  grid-column: 9 / 12;
  grid-row: 1;
  align-self: end;
  justify-self: end;
  width: min(19rem, 100%);
  padding: 0.95rem;
  border: 1px solid var(--signal-chartreuse);
  border-radius: 0;
  background: rgba(24, 4, 11, 0.84);
  color: var(--signal-chartreuse);
  cursor: pointer;
  text-align: left;
  box-shadow: 0 0 0 0 rgba(197, 230, 75, 0.38);
  transition: transform 160ms ease, box-shadow 220ms ease, background 180ms ease;
}

.terminal-stamp span,
.terminal-stamp strong {
  display: block;
}

.terminal-stamp span {
  font-family: "IBM Plex Sans Condensed", "Arial Narrow", sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.2em;
}

.terminal-stamp strong {
  margin-top: 0.25rem;
  font-family: Archivo, Impact, sans-serif;
  font-size: 2rem;
  line-height: 0.86;
  letter-spacing: -0.06em;
}

.terminal-stamp:hover,
.terminal-stamp.is-pulled {
  background: var(--riot-red);
  color: var(--bone-paper);
  box-shadow: -0.65rem 0.65rem 0 var(--signal-chartreuse);
  transform: translate(-0.4rem, 0.35rem) rotate(-1deg);
}

.poster-footer {
  position: fixed;
  z-index: 8;
  left: 3.6rem;
  right: 3.6rem;
  bottom: 3.1rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-family: "IBM Plex Sans Condensed", "Arial Narrow", sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: rgba(242, 231, 216, 0.6);
}

.spark {
  color: var(--signal-chartreuse);
  font-size: 1.1rem;
  filter: drop-shadow(0 0 8px var(--signal-chartreuse));
}

.magnetic {
  transform: translate3d(var(--tx, 0), var(--ty, 0), 0) rotate(var(--r, 0deg));
  transition: transform 520ms cubic-bezier(0.18, 0.82, 0.2, 1);
  will-change: transform;
}

.magnetic-path {
  transform: translate3d(var(--tx, 0), var(--ty, 0), 0);
  transition: transform 620ms cubic-bezier(0.18, 0.82, 0.2, 1);
  transform-box: fill-box;
}

.is-pulled-path {
  stroke-dasharray: 2 10;
  stroke-width: 7;
  animation: restlessDash 1.4s linear infinite;
}

@keyframes drawRoute {
  to { stroke-dashoffset: 0; }
}

@keyframes restlessDash {
  to { stroke-dashoffset: -160; }
}

@keyframes wordReveal {
  from {
    clip-path: inset(0 100% 0 0);
    transform: translateX(-3rem);
  }
  to {
    clip-path: inset(0 0 0 0);
    transform: translateX(0);
  }
}

@media (max-width: 860px) {
  .top-rail,
  .poster-footer {
    left: 1.4rem;
    right: 1.4rem;
  }

  .route-nav {
    display: none;
  }

  .poster-stage::after {
    inset: 1rem;
  }

  .act {
    padding: 6.4rem 1.4rem 4rem;
  }

  .act-origin,
  .act-swerve,
  .act-tilt,
  .act-unsettle {
    display: block;
  }

  .wordmark {
    margin-left: -2.2rem;
    font-size: clamp(5rem, 25vw, 10rem);
  }

  .rail-label {
    display: none;
  }

  .origin-copy,
  .act h2,
  .act p {
    max-width: 92%;
  }

  .manifesto-chip,
  .route-loop,
  .sticker,
  .terminal-stamp {
    margin-top: 2rem;
  }

  .route-loop {
    width: 15rem;
  }

  .poster-footer {
    gap: 1rem;
    flex-wrap: wrap;
  }
}
