/* MURDER FOR FOLLOWERS — the landing page.
 *
 * The visual language is the GAME's, transcribed from `src/ui/tokens.css` and `src/ui/ui.css`:
 * eight colours and no ninth, Bungee for display and Rubik for body, SQUARE corners,
 * ZERO-BLUR offset shadows, everything tilted. If a rule here disagrees with the game,
 * the game wins.
 *
 * The one deliberate deviation: fonts load from Google. The GAME self-hosts because its CSP
 * forbids external hosts and the .app runs offline. A public web page has neither constraint.
 */

:root {
  /* the eight, exact */
  --paper: #f5efe2;
  --ink: #14181f;
  --yellow: #ffd23f;
  --orange: #ff5d3b;
  --red: #ff4757;
  --cyan: #22d3ee;
  --teal: #19b3a6;
  --purple: #7a4ff2;

  /* ink alphas, same suffixes the game uses */
  --ink-8c: #14181f8c;
  --ink-cc: #14181fcc;
  --ink-d9: #14181fd9;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Rubik, system-ui, sans-serif;
  font-weight: 500;
  line-height: 1.55;
  /* The paper tooth. Two hairline grids, nothing else — no gradient fill, which is banned. */
  background-image:
    repeating-linear-gradient(0deg, #14181f08 0 1px, transparent 1px 4px),
    repeating-linear-gradient(90deg, #14181f05 0 1px, transparent 1px 4px);
}

main {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px 40px;
}

/* ---------------------------------------------------------------- THE SURFACE
 *
 * The title screen's set, standing behind the lockup on this page for the same reason it
 * stands behind it in the game: THE SHALLOWS was too busy under type and the director had
 * this one built to fix exactly that.
 *
 * Ported plane-for-plane from `src/ui/ui.css` — same `inset: -7% -9%`, same
 * `--px/--py * --d` transform, same 0.34 vertical damping, same idle drift so the set is
 * alive with no mouse on it. The DEPTH table (2 6 12 20 30 46 68) rides in on each layer.
 *
 * It is fixed rather than absolute: the set is the window you are looking through, so it
 * holds still while the page scrolls over it, and it stops at the fold — below the lockup
 * the content owns the field.
 */

.dio {
  position: fixed;
  inset: 0 0 auto 0;
  height: 100vh;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  /* THE SET IS A BACKDROP, NOT THE PAGE. At full strength the crowd competes with the form
     twenty pixels in front of it. The game solves the same problem with `hushed`; here it is
     one opacity, applied once, rather than a rule per element. */
  opacity: 0.42;
  mask-image: linear-gradient(to bottom, #000 0 62%, transparent 96%);
}

.dio__layer {
  position: absolute;
  inset: -7% -9%;
  transform: translate3d(calc(var(--px, 0) * var(--d) * 1px), calc(var(--py, 0) * var(--d) * 0.34px), 0);
  transition: transform 0.55s cubic-bezier(0.2, 0.8, 0.3, 1);
  animation: dioDrift 11s ease-in-out infinite alternate;
}

.dio__layer:nth-child(even) {
  animation-duration: 14s;
  animation-delay: -3s;
}

.dio__layer svg {
  width: 100%;
  height: 100%;
  display: block;
}

@keyframes dioDrift {
  to {
    translate: 0 -7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dio__layer {
    animation: none;
  }
}

/* Everything the reader actually reads sits in front of the set. */
main,
.chyron,
.footer {
  position: relative;
  z-index: 1;
}

/* ---------------------------------------------------------------- the chyron */

.chyron {
  position: sticky;
  top: 0;
  z-index: 50;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  border-bottom: 4px solid var(--ink);
}

.chyron__rail {
  display: inline-flex;
  gap: 48px;
  white-space: nowrap;
  padding: 9px 0;
  font-family: Bungee, sans-serif;
  font-size: 13px;
  letter-spacing: 0.06em;
  animation: roll 62s linear infinite;
}

.chyron__rail span::before {
  content: '\25C6';
  color: var(--yellow);
  margin-right: 14px;
}

@keyframes roll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .chyron__rail {
    animation: none;
  }
}

/* ---------------------------------------------------------------- chips */

.chip {
  display: inline-block;
  font-family: Bungee, sans-serif;
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 5px 11px;
  border: 3px solid var(--ink);
  background: var(--paper);
  box-shadow: 3px 3px var(--ink-cc);
  transform: rotate(-1.5deg);
}

.chip--season {
  background: var(--paper);
}
.chip--for {
  background: var(--yellow);
  transform: rotate(3deg);
  font-size: clamp(18px, 3vw, 34px);
  padding: 2px 14px;
  box-shadow: 5px 5px var(--ink-d9);
}
.chip--live {
  background: var(--red);
  color: var(--paper);
  transform: rotate(-3deg);
}
.chip--file {
  background: var(--paper);
  transform: rotate(2deg);
}
.chip--sealed {
  background: var(--ink);
  color: var(--paper);
  transform: rotate(-2.5deg);
}
.chip--founder {
  background: var(--purple);
  color: var(--paper);
  transform: rotate(2deg);
  margin-top: 18px;
}
.chip--cyan {
  background: var(--cyan);
}
.chip--orange {
  background: var(--orange);
  color: var(--paper);
}
.chip--red {
  background: var(--red);
  color: var(--paper);
}

/* ---------------------------------------------------------------- the lockup */

.lockup {
  text-align: center;
  padding: 54px 0 30px;
}

.wordmark {
  margin: 18px 0 6px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: Bungee, sans-serif;
  font-weight: 400;
  line-height: 0.94;
  font-size: clamp(42px, 10vw, 118px);
}

/* Ink stroke plus a hard offset in the accent. Zero blur, always.
   MURDER is INK-FILLED with a red offset — matching the approved wordmark
   (`~/Downloads/MURDER-FOR-FOLLOWERS-wordmark.jpg`), not paper-filled. */
.wordmark__murder {
  color: var(--ink);
  text-shadow: 7px 7px 0 var(--red);
  transform: rotate(-2deg);
}

.wordmark__followers {
  color: var(--yellow);
  -webkit-text-stroke: 3px var(--ink);
  text-shadow: 7px 7px 0 var(--ink);
  transform: rotate(1.5deg);
}

.tagline {
  font-family: Bungee, sans-serif;
  font-size: clamp(14px, 2.4vw, 22px);
  margin: 22px auto 0;
  padding-top: 16px;
  max-width: 460px;
  border-top: 4px solid var(--ink);
  transform: rotate(-0.6deg);
}

.hook {
  max-width: 620px;
  margin: 18px auto 0;
  font-size: 18px;
  font-weight: 600;
}

/* ---------------------------------------------------------------- the stage */

.stage {
  margin: 34px 0 10px;
  border: 4px solid var(--ink);
  background: var(--paper);
  box-shadow: 10px 10px var(--ink-d9);
  transform: rotate(-0.35deg);
}

.stage__bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: var(--ink);
  color: var(--paper);
}

.stage__title {
  font-family: Bungee, sans-serif;
  font-size: 13px;
  letter-spacing: 0.05em;
}

.stage__screen {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* No build mounted yet. A full 16:9 void reads as a broken player, not as a coming-soon —
   so the holding state collapses to a band and only opens out when there is something in it. */
.stage__screen.is-holding {
  aspect-ratio: auto;
  min-height: 150px;
  padding: 30px 20px;
}

.stage__screen iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.stage__holding {
  text-align: center;
  color: var(--paper);
  padding: 24px;
  max-width: 520px;
}

.stage__holding-kicker {
  font-family: Bungee, sans-serif;
  color: var(--yellow);
  font-size: 14px;
  letter-spacing: 0.1em;
  margin: 0 0 10px;
}

.stage__holding-line {
  margin: 0;
  font-weight: 600;
}

.stage__mobile {
  display: none;
  padding: 20px 18px;
  border-top: 4px solid var(--ink);
  background: var(--yellow);
}

.stage__mobile p {
  margin: 0;
  font-weight: 600;
}

.stage__mobile-kicker {
  font-family: Bungee, sans-serif;
  font-size: 13px;
  margin: 0 0 8px !important;
}

/* ---------------------------------------------------------------- the application */

.casting {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 26px;
  margin: 46px 0 0;
  align-items: start;
}

.form {
  position: relative;
  border: 4px solid var(--ink);
  background: var(--paper);
  box-shadow: 9px 9px var(--ink-d9);
  padding: 24px;
  transform: rotate(0.4deg);
}

.form__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  border-bottom: 4px solid var(--ink);
  padding-bottom: 14px;
}

.form__dept {
  font-family: Bungee, sans-serif;
  font-size: 10px;
  letter-spacing: 0.1em;
  margin: 0 0 4px;
}

.form__title {
  font-family: Bungee, sans-serif;
  font-size: clamp(20px, 3vw, 30px);
  margin: 0;
  line-height: 1;
}

.form__blurb {
  font-size: 15px;
  margin: 16px 0 20px;
}

.field {
  display: block;
  margin-bottom: 20px;
}

.field__label {
  display: block;
  font-family: Bungee, sans-serif;
  font-size: 11px;
  letter-spacing: 0.08em;
  margin-bottom: 7px;
}

.field__input {
  width: 100%;
  font-family: Rubik, sans-serif;
  font-weight: 600;
  font-size: 17px;
  padding: 13px 14px;
  color: var(--ink);
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 0;
  box-shadow: inset 3px 3px var(--ink-8c);
}

.field__input:focus {
  outline: 3px solid var(--cyan);
  outline-offset: 2px;
}

.field__note {
  display: block;
  font-size: 13px;
  margin-top: 8px;
  opacity: 0.8;
}

.field__note.is-bad {
  color: var(--red);
  font-weight: 700;
  opacity: 1;
}

.hp {
  position: absolute;
  left: -9999px;
}

.clauses {
  border: 3px solid var(--ink);
  padding: 14px 16px 16px;
  margin: 0 0 22px;
}

.clauses__legend {
  font-family: Bungee, sans-serif;
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 3px 9px;
  background: var(--ink);
  color: var(--paper);
}

.clauses__list {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: grid;
  gap: 11px;
}

.clauses__list li {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 12px;
  font-size: 14.5px;
}

.clauses__key {
  font-family: Bungee, sans-serif;
  font-size: 10px;
  letter-spacing: 0.06em;
  padding-top: 3px;
}

.apply {
  width: 100%;
  font-family: Bungee, sans-serif;
  font-size: clamp(17px, 2.6vw, 25px);
  padding: 17px 20px;
  cursor: pointer;
  color: var(--ink);
  background: var(--yellow);
  border: 4px solid var(--ink);
  border-radius: 0;
  box-shadow: 7px 7px var(--ink-d9);
  transform: rotate(-1deg);
  transition:
    transform 0.12s,
    box-shadow 0.12s;
}

.apply:hover {
  transform: rotate(-1deg) translate(-2px, -2px) scale(1.02);
  box-shadow: 10px 10px var(--ink-d9);
}

.apply:active {
  transform: rotate(-1deg) translate(4px, 4px);
  box-shadow: 2px 2px var(--ink-d9);
}

.apply[disabled] {
  cursor: default;
  opacity: 0.55;
}

.form__small {
  font-size: 12.5px;
  text-align: center;
  margin: 14px 0 0;
  opacity: 0.75;
}

/* The stamp. Slams over the form on submit — the acknowledgment the funnel requires. */
.form.is-sent .form__body,
.form.is-sent .clauses,
.form.is-sent .field,
.form.is-sent .apply,
.form.is-sent .form__small,
.form.is-sent .form__blurb {
  opacity: 0.25;
  pointer-events: none;
}

.stamp {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 8px;
  text-align: center;
  padding: 24px;
}

.stamp__mark {
  font-family: Bungee, sans-serif;
  font-size: clamp(26px, 5vw, 46px);
  color: var(--red);
  border: 6px solid var(--red);
  padding: 10px 20px;
  transform: rotate(-8deg);
  line-height: 1;
}

/* The message needs its own paper, or it lands on top of the ghosted form and cannot be read.
   The ghost stays as texture; the words get a card slapped over it. */
.stamp__line {
  font-weight: 700;
  font-size: 16px;
  max-width: 420px;
  margin: 18px auto 0;
  background: var(--paper);
  border: 4px solid var(--ink);
  box-shadow: 6px 6px var(--ink-d9);
  padding: 16px 18px;
  transform: rotate(0.8deg);
}

/* ---------------------------------------------------------------- the founder */

.founder {
  border: 4px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  box-shadow: 9px 9px var(--ink-d9);
  padding: 22px;
  transform: rotate(-0.8deg);
}

.founder__name {
  font-family: Bungee, sans-serif;
  font-size: clamp(26px, 4vw, 40px);
  margin: 14px 0 2px;
  color: var(--yellow);
  line-height: 1;
}

.founder__occ {
  font-family: Bungee, sans-serif;
  font-size: 11px;
  letter-spacing: 0.06em;
  margin: 0 0 14px;
}

.founder__reason,
.founder__blurb,
.founder__grant {
  font-size: 14.5px;
  margin: 0 0 12px;
}

.founder__grant {
  border-top: 3px solid var(--paper);
  padding-top: 12px;
  margin-bottom: 0;
}

/* ---------------------------------------------------------------- previously on */

.previously {
  margin: 58px 0 0;
}

.section-title {
  font-family: Bungee, sans-serif;
  font-size: clamp(22px, 4vw, 38px);
  margin: 0 0 20px;
  transform: rotate(-1deg);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  border: 4px solid var(--ink);
  background: var(--paper);
  box-shadow: 6px 6px var(--ink-cc);
  padding: 18px;
}

.card:nth-child(odd) {
  transform: rotate(0.7deg);
}
.card:nth-child(even) {
  transform: rotate(-0.9deg);
}

.card p {
  margin: 12px 0 0;
  font-size: 15px;
}

/* ---------------------------------------------------------------- footer */

.footer {
  border-top: 4px solid var(--ink);
  margin-top: 60px;
  padding: 24px 20px 34px;
  text-align: center;
}

.footer__row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
  font-family: Bungee, sans-serif;
  font-size: 13px;
}

.footer__link {
  color: var(--ink);
  background: var(--cyan);
  border: 3px solid var(--ink);
  box-shadow: 4px 4px var(--ink-cc);
  padding: 8px 14px;
  text-decoration: none;
  transform: rotate(-1.5deg);
  display: inline-block;
}

.footer__link:hover {
  transform: rotate(-1.5deg) translate(-2px, -2px);
  box-shadow: 6px 6px var(--ink-cc);
}

.footer__muted {
  opacity: 0.6;
}

.footer__disclosure {
  font-size: 12.5px;
  opacity: 0.7;
  margin: 16px 0 0;
}

/* ---------------------------------------------------------------- narrow
   The gate, not a squeeze. A phone visitor gets the pitch and the ask, and is told the
   truth about why they cannot play here yet. */

@media (max-width: 900px) {
  .casting,
  .cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  /* A 78px key column against a phone-width value column wraps every clause to four lines.
     Stack them instead — the clause number becomes a heading, which reads better anyway. */
  .clauses__list li {
    grid-template-columns: 1fr;
    gap: 3px;
  }
  .stage__screen {
    display: none;
  }
  .stage__mobile {
    display: block;
  }
  .stage {
    transform: none;
  }
  .wordmark {
    gap: 8px;
  }
}
