:root {
  --bg: #eeeedf;
  --paper: #dcd9c8;
  --ink: #11110f;
  --soft: #706e62;
  --red: #9b201b;
  --red-dark: #54130f;
  --acid: #d8ff2f;
  --white: #f8f7ec;
  --line: rgba(17, 17, 15, 0.28);
  --display: Impact, "Arial Black", "Arial Narrow", sans-serif;
  --mono: "Courier New", Courier, monospace;
  --sans: Arial, Helvetica, sans-serif;
  --rail-w: 26px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

section[id],
main[id] {
  scroll-margin-top: calc(var(--chrome-h, 92px) + 28px);
}

body {
  margin: 0;
  padding-top: var(--chrome-h, 92px);
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(17,17,15,.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(17,17,15,.035) 1px, transparent 1px),
    var(--bg);
  background-size: 36px 36px;
  font-family: var(--sans);
  overflow-x: hidden;
}

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

.grain {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: .13;
  background:
    radial-gradient(circle at 10% 20%, rgba(17,17,15,.24) 0 1px, transparent 1px),
    radial-gradient(circle at 70% 60%, rgba(17,17,15,.16) 0 1px, transparent 1px);
  background-size: 11px 13px, 17px 19px;
  mix-blend-mode: multiply;
}

.side-rail {
  position: fixed;
  top: 0;
  bottom: 0;
  z-index: 42;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: var(--rail-w);
  overflow: hidden;
  pointer-events: none;
}

.side-rail-left {
  left: 0;
  color: var(--bg);
  background: var(--ink);
  border-right: 1px solid rgba(17,17,15,.24);
}

.side-rail-right {
  right: 0;
  color: var(--white);
  background: var(--red);
  border-left: 1px solid rgba(17,17,15,.24);
}

.side-rail div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  flex: 0 0 auto;
  gap: 24px;
  width: auto;
  min-height: max-content;
  padding: 24px 0;
  animation: sideRailMove 34s linear infinite;
  will-change: transform;
}

.side-rail-left div {
  animation-direction: reverse;
}

.side-rail-right div {
  animation-duration: 36s;
}

.side-rail span {
  display: inline-block;
  width: auto;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .07em;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
}

.side-rail-right span {
  transform: none;
}

@keyframes sideRailMove {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}

.status {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 41;
  height: 28px;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  background: var(--ink);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  transition: transform .24s ease;
  will-change: transform;
}

.status b { color: var(--acid); }

.header {
  position: fixed;
  top: var(--status-h, 28px);
  left: 0;
  right: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  min-height: 64px;
  padding: 12px clamp(14px, 2.4vw, 34px);
  border-bottom: 1px solid var(--ink);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px);
  transition: transform .24s ease;
  will-change: transform;
}

body.chrome-hidden .status,
body.chrome-hidden .header {
  transform: translateY(calc(-1 * var(--chrome-h, 92px)));
}

.logo {
  font-family: var(--display);
  font-size: 29px;
  line-height: 1;
  text-decoration: none;
}

.logo span { color: var(--red); }

.nav {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 3vw, 42px);
  font-family: var(--mono);
  font-size: 12px;
}

.nav a {
  text-decoration: none;
}

.nav a:hover { color: var(--red); }

.freq-mini {
  display: grid;
  grid-template-columns: auto minmax(86px, 150px) auto;
  align-items: center;
  gap: 8px;
  min-width: 210px;
  padding: 8px 11px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: rgba(248,247,236,.58);
  font-family: var(--mono);
  font-weight: 900;
  font-size: 12px;
}

.freq-mini input {
  width: 100%;
  accent-color: var(--red);
}

.section {
  padding: clamp(68px, 9vw, 132px) clamp(14px, 2.4vw, 34px);
  border-bottom: 1px solid var(--ink);
}

.hero {
  min-height: calc(100vh - var(--chrome-h, 92px));
  display: grid;
  grid-template-columns: minmax(420px, .94fr) minmax(420px, 1.06fr);
  grid-template-rows: auto 1fr auto;
  gap: 20px;
  padding: 24px clamp(14px, 2.4vw, 34px) 52px;
  border-bottom: 1px solid var(--ink);
  position: relative;
}

.eyebrow,
.section-head p,
.slogan,
.manifest,
.hero-media figcaption,
.bad-slot span,
.bad-slot p,
.bad-slot b,
.work-copy small,
.work-copy p,
.chip span,
.steps span,
.questions p,
.tariffs span,
.tariffs p {
  font-family: var(--mono);
}

.eyebrow {
  margin: 0;
  color: var(--soft);
  font-size: 13px;
}

.hero-copy {
  grid-row: 1 / 3;
  align-self: center;
  z-index: 2;
}

h1 {
  margin: 8px 0 0;
  font-family: var(--display);
  font-size: clamp(78px, 10.4vw, 168px);
  line-height: .9;
  letter-spacing: -.03em;
}

h1 i {
  color: var(--red);
  font-style: normal;
  display: inline-block;
  transform: rotate(8deg) translateY(-.02em);
}

.fade { color: color-mix(in srgb, var(--ink) 26%, transparent); }

#num-999,
#num-666 {
  display: inline-block;
  transition: color .2s ease, opacity .2s ease, transform .2s ease;
}

body[data-station="999"] #num-999 {
  color: var(--ink);
  transform: translateY(-3px);
}

body[data-station="999"] #num-666 {
  color: color-mix(in srgb, var(--ink) 26%, transparent);
}

body[data-station="666"] #num-999 {
  color: color-mix(in srgb, var(--ink) 24%, transparent);
}

body[data-station="666"] #num-666 {
  color: var(--red);
  transform: translateY(-3px) rotate(1deg);
}

.slogan {
  width: fit-content;
  margin: 14px 0 0;
  padding: 0;
  color: var(--red);
  font-family: var(--display);
  font-size: clamp(32px, 4.3vw, 68px);
  line-height: .86;
  font-weight: 900;
  transform: rotate(-1deg);
}

.sub-slogan {
  width: fit-content;
  margin: 2px 0 0 clamp(168px, 15vw, 244px);
  padding: 8px 12px;
  border: 2px solid var(--ink);
  background: var(--acid);
  color: #11110f;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .04em;
  transform: rotate(-2.8deg) translateY(1px);
}

.manifest {
  max-width: 760px;
  margin: 12px 0 0;
  font-family: var(--sans);
  font-size: clamp(25px, 2.72vw, 50px);
  line-height: .98;
  font-weight: 900;
  letter-spacing: -.035em;
}

.hero-tuner {
  width: min(360px, 100%);
  margin-top: 30px;
}

.hero-tuner label {
  display: block;
  margin-bottom: 9px;
  color: var(--soft);
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
}

.hero-tuner input {
  width: 100%;
  accent-color: var(--red);
}

.hero-tuner div {
  display: flex;
  gap: 28px;
  margin-top: 8px;
  color: var(--red);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 900;
}

.hero-media {
  grid-column: 2;
  grid-row: 1 / 3;
  position: relative;
  align-self: start;
  height: clamp(580px, 43vw, 640px);
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--ink);
  box-shadow: 10px 10px 0 var(--red);
  transform: translateY(16px) rotate(1.1deg);
  background: #111;
}

.hero-media img,
.bad-slot img,
.work-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17,17,15,.04), rgba(17,17,15,.42));
}

.hero-media figcaption {
  position: absolute;
  z-index: 2;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-media figcaption span {
  padding: 7px 10px;
  background: var(--bg);
  border: 1px solid var(--ink);
  color: var(--ink);
  transform: rotate(var(--r, -2deg));
}

.hero-media figcaption span:nth-child(2) { --r: 2deg; }
.hero-media figcaption span:nth-child(3) { --r: -1deg; background: var(--acid); }

.bad-slot {
  grid-column: 1 / 3;
  display: grid;
  grid-template-columns: minmax(280px, .52fr) 1fr;
  min-height: 238px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  overflow: hidden;
  transform: rotate(-.55deg);
}

.bad-slot img {
  filter: grayscale(.12) brightness(1.18) contrast(.94);
  transition: filter .2s ease, opacity .2s ease;
}

.bad-slot div {
  display: grid;
  align-content: center;
  gap: 16px;
  padding: 26px;
}

.bad-slot span {
  width: fit-content;
  color: var(--acid);
  font-size: 12px;
}

.bad-slot strong {
  max-width: 780px;
  font-family: var(--display);
  font-size: clamp(44px, 6vw, 104px);
  line-height: .84;
  text-transform: uppercase;
}

.bad-slot p {
  max-width: 560px;
  margin: 0;
  color: color-mix(in srgb, var(--bg) 70%, transparent);
  line-height: 1.4;
}

.bad-slot b {
  color: var(--acid);
  font-size: 12px;
  font-weight: 900;
}

.ticker {
  grid-column: 1 / 3;
  overflow: hidden;
  border: 1px solid var(--ink);
  background: var(--acid);
  color: #11110f;
  transform: rotate(.4deg);
}

.ticker div {
  display: flex;
  width: max-content;
  animation: move 24s linear infinite;
}

.ticker span {
  padding: 15px 36px 12px;
  font-family: var(--display);
  font-size: clamp(28px, 4.3vw, 68px);
  line-height: .82;
  text-transform: uppercase;
  white-space: nowrap;
}

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

.section-head {
  display: grid;
  grid-template-columns: minmax(150px, .28fr) 1fr;
  gap: clamp(20px, 4vw, 72px);
  align-items: start;
  margin-bottom: clamp(34px, 5vw, 78px);
}

.section-head p {
  margin: 8px 0 0;
  color: var(--soft);
  font-size: 13px;
}

.section-head h2 {
  max-width: 1280px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(48px, 8.3vw, 136px);
  line-height: .86;
  letter-spacing: -.02em;
  text-transform: uppercase;
}

.cases { background: var(--paper); }

.works {
  border-top: 1px solid var(--ink);
}

.work a {
  display: grid;
  grid-template-columns: 58px minmax(280px, .46fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(16px, 2.5vw, 38px);
  min-height: 230px;
  padding: 22px 0;
  border-bottom: 1px solid var(--ink);
  text-decoration: none;
  transition: padding-left .18s ease, background .18s ease, color .18s ease;
}

.work:nth-child(even) a {
  grid-template-columns: 58px minmax(0, 1fr) minmax(280px, .46fr);
}

.work:nth-child(even) .work-image { grid-column: 3; }
.work:nth-child(even) .work-copy { grid-column: 2; grid-row: 1; text-align: right; }

.work a:hover,
.work.is-active a {
  padding-left: 18px;
  background: var(--ink);
  color: var(--bg);
}

.work-num {
  align-self: start;
  padding-top: 10px;
  font-family: var(--mono);
  color: var(--red);
}

.work-image {
  height: 210px;
  overflow: hidden;
  border: 1px solid currentColor;
  background: #111;
  transform: rotate(-1.2deg);
}

.work:nth-child(even) .work-image { transform: rotate(1.2deg); }

.work-image img {
  filter: saturate(.84) contrast(.96);
  transition: transform .2s ease;
}

.work:hover .work-image img { transform: scale(1.04); }

.work-copy small {
  color: var(--soft);
  font-size: 12px;
}

.work a:hover .work-copy small,
.work.is-active .work-copy small {
  color: color-mix(in srgb, var(--bg) 58%, transparent);
}

.work-copy h3 {
  margin: 10px 0 8px;
  font-family: var(--display);
  font-size: clamp(38px, 6.8vw, 108px);
  line-height: .84;
  text-transform: uppercase;
}

.work-copy p {
  margin: 0;
  color: var(--red);
  font-size: 14px;
}

.do {
  background: var(--ink);
  color: var(--bg);
}

.do .section-head p { color: color-mix(in srgb, var(--bg) 56%, transparent); }

.inventory {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 1180px;
}

.chip {
  display: inline-grid;
  grid-template-columns: auto auto;
  gap: 10px;
  align-items: baseline;
  min-height: 52px;
  padding: 10px 14px;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transform: rotate(var(--r, -1deg));
}

.chip:nth-child(2n) { --r: 1deg; }
.chip:nth-child(3n) { --r: -2deg; }

.chip b {
  font-family: var(--display);
  font-size: clamp(26px, 4vw, 58px);
  line-height: .86;
  text-transform: uppercase;
}

.chip span {
  color: color-mix(in srgb, var(--bg) 60%, transparent);
  font-size: 12px;
}

.chip:hover,
.chip.is-on {
  color: #11110f;
  background: var(--acid);
}

.chip:hover span,
.chip.is-on span { color: rgba(17,17,15,.62); }

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(130px, 1fr));
  border: 1px solid var(--ink);
  counter-reset: step;
}

.steps li {
  min-height: 238px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  padding: 18px;
  border-right: 1px solid var(--ink);
  counter-increment: step;
}

.steps li:last-child { border-right: 0; }
.steps li::before {
  content: "0" counter(step);
  font-family: var(--mono);
  color: var(--red);
}

.steps b {
  font-family: var(--display);
  font-size: clamp(28px, 2.8vw, 42px);
  line-height: .9;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.steps span {
  color: var(--soft);
  font-size: 13px;
}

.faq {
  background: var(--red);
  color: var(--white);
}

.faq .section-head p { color: rgba(248,247,236,.6); }

.questions {
  margin-left: clamp(0px, 26vw, 380px);
  border-top: 1px solid rgba(248,247,236,.46);
}

details {
  border-bottom: 1px solid rgba(248,247,236,.46);
}

summary {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  padding: 24px 0;
  font-family: var(--display);
  font-size: clamp(34px, 5vw, 78px);
  line-height: .86;
  text-transform: uppercase;
  cursor: pointer;
}

summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--mono); }
details[open] summary::after { content: "-"; }

.questions p {
  max-width: 760px;
  margin: -8px 0 28px;
  color: rgba(248,247,236,.72);
  line-height: 1.5;
}

.price { background: var(--paper); }

.tariffs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--ink);
}

.tariffs article {
  min-height: 380px;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border-right: 1px solid var(--ink);
}

.tariffs article:last-child { border-right: 0; }

.tariffs span {
  width: fit-content;
  padding: 7px 10px;
  border: 1px solid currentColor;
  color: var(--red);
  font-size: 12px;
}

.tariffs h3 {
  margin: 34px 0 14px;
  font-family: var(--display);
  font-size: clamp(38px, 5vw, 78px);
  line-height: .86;
  text-transform: uppercase;
}

.tariffs p {
  max-width: 360px;
  margin: 0;
  color: var(--soft);
  line-height: 1.4;
}

.tariffs b {
  margin-top: auto;
  font-family: var(--display);
  font-size: clamp(38px, 5vw, 76px);
  line-height: .9;
}

.main-tariff {
  color: var(--bg);
  background: var(--ink);
  transform: translateY(-18px) rotate(-1deg);
  box-shadow: 14px 14px 0 var(--red);
}

.main-tariff span { color: var(--acid); }
.main-tariff p { color: color-mix(in srgb, var(--bg) 66%, transparent); }

.contact {
  min-height: 82vh;
  display: grid;
  align-content: space-between;
  background: var(--ink);
  color: var(--bg);
}

.contact h2 {
  max-width: 1180px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(58px, 11vw, 176px);
  line-height: .82;
  text-transform: uppercase;
}

.contact a {
  width: fit-content;
  color: var(--acid);
  font-family: var(--display);
  font-size: clamp(32px, 6vw, 92px);
  line-height: .86;
  text-decoration: none;
}

@media (min-width: 1180px) {
  .header,
  .status,
  .hero,
  .section {
    padding-left: clamp(52px, 4.2vw, 72px);
    padding-right: clamp(52px, 4.2vw, 72px);
  }
}

body[data-station="666"] .bad-slot {
  background: #151512;
  color: var(--bg);
}

body[data-station="666"] .bad-slot img {
  filter: grayscale(.16) brightness(.48) contrast(1.35);
}

body[data-station="666"] .bad-slot span,
body[data-station="666"] .bad-slot b {
  color: var(--red);
}

body[data-station="666"] .bad-slot p {
  color: rgba(238,238,223,.7);
}

@media (max-width: 1120px) {
  :root { --rail-w: 0px; }

  .side-rail {
    display: none;
  }

  .hero,
  .bad-slot {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .hero-media,
  .bad-slot,
  .ticker {
    grid-column: 1;
  }

  .hero-media {
    min-height: 480px;
    grid-row: auto;
  }

  .bad-slot img {
    min-height: 230px;
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .steps li:nth-child(3) { border-right: 0; }
  .steps li:nth-child(-n + 3) { border-bottom: 1px solid var(--ink); }
}

@media (max-width: 820px) {
  .header {
    grid-template-columns: 1fr auto;
  }

  .nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .slogan {
    margin-left: 0;
  }

  .manifest {
    font-size: 29px;
  }

  .section-head {
    grid-template-columns: 1fr;
  }

  .work a,
  .work:nth-child(even) a {
    grid-template-columns: 42px 1fr;
    min-height: 0;
  }

  .work-image,
  .work:nth-child(even) .work-image {
    grid-column: 2;
    height: 220px;
  }

  .work-copy,
  .work:nth-child(even) .work-copy {
    grid-column: 2;
    grid-row: auto;
    text-align: left;
  }

  .steps,
  .tariffs {
    grid-template-columns: 1fr;
  }

  .steps li,
  .steps li:nth-child(3),
  .tariffs article {
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }

  .steps li:last-child,
  .tariffs article:last-child {
    border-bottom: 0;
  }

  .questions {
    margin-left: 0;
  }

  .main-tariff {
    transform: none;
    box-shadow: none;
  }
}

@media (max-width: 520px) {
  .status { gap: 18px; }
  .logo { font-size: 23px; }
  .freq-mini { min-width: 184px; padding: 7px 9px; }
  h1 { font-size: 96px; }
  .hero-media { height: 360px; box-shadow: 7px 7px 0 var(--red); }
  .bad-slot strong { font-size: 48px; }
  .chip { grid-template-columns: 1fr; }
  .work-copy h3 { font-size: 42px; }
}
