:root {
  --paper: #ded1ad;
  --cream: #eee4c6;
  --stain: #9c8057;
  --ink: #12110f;
  --gray: #777166;
  --green: #35d66f;
  --purple: #8d5cff;
  --red: #d52920;
  --shadow: 5px 5px 0 var(--ink);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  background:
    linear-gradient(rgba(18,17,15,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18,17,15,.05) 1px, transparent 1px),
    var(--paper);
  background-size: 17px 17px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.06), rgba(0,0,0,.06) 1px, transparent 1px, transparent 4px);
  mix-blend-mode: multiply;
  z-index: 20;
}

img {
  display: block;
  max-width: 100%;
}

a { color: inherit; }

.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: #11100d;
  color: #e8f7d0;
  transition: opacity .35s ease, visibility .35s ease;
}

.loader.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-window {
  width: min(520px, calc(100vw - 32px));
  border: 3px solid var(--green);
  padding: 24px;
  font-family: "Courier New", monospace;
  background: #050704;
  box-shadow: 0 0 35px rgba(53,214,111,.24);
}

.loader-window p {
  margin: 0 0 8px;
  opacity: 0;
  animation: typeIn .2s steps(2) forwards;
}

.loader-window p:nth-child(2) { animation-delay: .3s; }
.loader-window p:nth-child(3) { animation-delay: .62s; }
.loader-window p:nth-child(4) { animation-delay: .94s; }

.loader-window strong,
.loader-window span {
  display: block;
  opacity: 0;
  animation: typeIn .15s forwards;
}

.loader-window strong {
  margin-top: 12px;
  color: var(--red);
  font: 900 56px Impact, "Arial Black", sans-serif;
  letter-spacing: 0;
  animation-delay: 1.16s;
}

.loader-window span {
  color: var(--cream);
  font-weight: 700;
  animation-delay: 1.35s;
}

@keyframes typeIn { to { opacity: 1; } }

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 14px;
  border-bottom: 4px solid var(--ink);
  background: var(--cream);
  box-shadow: 0 4px 0 rgba(0,0,0,.16);
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: max-content;
  font: 900 20px Impact, "Arial Black", sans-serif;
  text-decoration: none;
  text-transform: uppercase;
}

.brand img {
  width: 38px;
  height: 38px;
  border: 2px solid var(--ink);
  background: #fff;
}

.brand em {
  padding: 2px 5px;
  color: var(--green);
  font: 800 13px "Courier New", monospace;
  background: var(--ink);
}

.navlinks {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex: 1;
}

.navlinks a {
  padding: 6px 8px;
  border: 2px solid transparent;
  font: 800 12px "Courier New", monospace;
  text-transform: uppercase;
  text-decoration: none;
}

.navlinks a:hover {
  border-color: var(--ink);
  background: var(--paper);
}

.old-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 3px outset #f7edce;
  color: var(--ink);
  font: 900 17px Impact, "Arial Black", sans-serif;
  text-transform: uppercase;
  text-decoration: none;
  background: #d8c99d;
  box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer;
}

.old-button:hover {
  animation: shake .18s infinite;
  filter: contrast(1.18);
}

.old-button.buy {
  background: linear-gradient(90deg, var(--green), #e1f0aa);
}

.old-button.warning {
  background: #f2d0bb;
  border-color: var(--red);
  color: var(--red);
}

.old-button.small {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 13px;
}

@keyframes shake {
  0%, 100% { transform: rotate(0deg) translate(0); }
  50% { transform: rotate(-1deg) translate(1px, -1px); }
}

.section {
  position: relative;
  min-height: 100vh;
  padding: 86px clamp(16px, 4vw, 58px);
  border-bottom: 5px solid var(--ink);
  overflow: hidden;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
  align-items: end;
  gap: 24px;
  padding-top: 30px;
  padding-bottom: 26px;
  min-height: calc(100vh - 55px);
}

.hero-art {
  width: 100%;
  max-height: calc(100vh - 110px);
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(8px 8px 0 rgba(0,0,0,.5));
  align-self: end;
}

.hero-copy {
  position: absolute;
  left: clamp(16px, 4vw, 62px);
  top: clamp(64px, 10vh, 112px);
  max-width: min(600px, 50vw);
  transform: rotate(-1.4deg);
}

.blink {
  display: inline-block;
  padding: 6px 9px;
  color: #fff;
  font: 900 14px "Courier New", monospace;
  background: var(--red);
  animation: blink .8s steps(1) infinite;
}

@keyframes blink { 50% { opacity: .25; } }

h1, h2, h3 {
  margin: 0;
  font-family: Impact, "Arial Black", sans-serif;
  letter-spacing: 0;
  text-transform: uppercase;
  line-height: .95;
}

.hero h1 {
  margin: 8px 0 12px;
  font-size: clamp(44px, 6.5vw, 92px);
  text-shadow: 4px 4px 0 var(--cream), 7px 7px 0 var(--ink);
}

.hero-copy p:not(.blink) {
  max-width: 470px;
  padding: 10px;
  border: 3px solid var(--ink);
  font-size: 19px;
  font-weight: 700;
  background: rgba(238,228,198,.88);
}

.quick-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.quick-stats b {
  padding: 7px 9px;
  border: 2px solid var(--ink);
  font-family: "Courier New", monospace;
  background: #fff6cf;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.centered {
  justify-content: center;
}

.portfolio {
  justify-self: end;
  align-self: center;
  width: min(360px, 100%);
  padding: 16px;
  border: 4px solid var(--ink);
  background: #171a12;
  color: var(--green);
  font-family: "Courier New", monospace;
  box-shadow: var(--shadow);
}

.portfolio span,
.portfolio em,
.portfolio b {
  display: block;
}

.portfolio strong {
  display: block;
  margin: 10px 0;
  color: #fff;
  font-size: 52px;
}

.portfolio em {
  color: var(--red);
  font-style: normal;
}

.portfolio b {
  margin-top: 12px;
  padding: 8px;
  color: var(--ink);
  background: var(--green);
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 25;
  width: min(280px, calc(100vw - 36px));
  min-height: 70px;
  padding: 10px;
  border: 3px solid var(--ink);
  background: #ece7d7;
  box-shadow: var(--shadow);
  font: 800 13px "Courier New", monospace;
  transform: translateY(160%);
  transition: transform .28s ease;
}

.toast.show { transform: translateY(0); }

.section-head {
  max-width: 900px;
  margin: 0 auto 32px;
  text-align: center;
}

.kicker {
  display: inline-block;
  margin: 0 0 10px;
  padding: 5px 8px;
  border: 2px solid var(--ink);
  color: var(--green);
  font: 900 13px "Courier New", monospace;
  background: var(--ink);
}

.section-head h2 {
  font-size: clamp(42px, 6vw, 82px);
}

.section-head p:last-child {
  margin: 12px auto 0;
  max-width: 640px;
  font-size: 19px;
  font-weight: 700;
}

.comparison {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 1160px;
  margin: 0 auto;
}

.comparison article,
.notice,
.slide,
.medical-ui,
.dialogue,
.rejection {
  border: 4px solid var(--ink);
  background: var(--cream);
  box-shadow: var(--shadow);
}

.comparison article {
  padding: 14px;
}

.comparison h3 {
  margin-bottom: 10px;
  font-size: 34px;
}

.comparison img,
.notice img,
.wide-art,
.sheet-grid img,
.bank-grid img,
.medical-grid img,
.nothing img {
  border: 4px solid var(--ink);
  background: var(--paper);
}

ul {
  margin: 14px 0 0;
  padding-left: 22px;
  font-weight: 800;
}

li { margin: 5px 0; }

.compare-range {
  position: absolute;
  left: 50%;
  bottom: -28px;
  width: min(420px, 70vw);
  accent-color: var(--red);
  transform: translateX(-50%);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin: 58px auto 20px;
  max-width: 1160px;
}

.timeline div {
  min-height: 134px;
  padding: 10px;
  border: 3px solid var(--ink);
  background: #f0e5c4;
  transform: rotate(var(--r, -1deg));
}

.timeline div:nth-child(even) { --r: 1.5deg; }

.timeline b,
.timeline span,
.timeline em {
  display: block;
}

.timeline b { font-family: Impact, "Arial Black", sans-serif; font-size: 26px; }
.timeline span { margin: 8px 0; font-weight: 700; }
.timeline em { color: var(--red); font: 900 23px "Courier New", monospace; font-style: normal; }

.giant {
  margin: 30px auto;
  max-width: 1120px;
  text-align: center;
  font-size: clamp(48px, 9vw, 126px);
  color: var(--red);
  text-shadow: 4px 4px 0 var(--ink);
}

.liquidation {
  background-color: #cdb889;
}

.chaos-grid,
.bank-grid,
.medical-grid,
.sheet-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
}

.notice {
  padding: 14px;
}

.notice h3 {
  margin: 14px 0 8px;
  font-size: 38px;
}

.notice p {
  font-size: 18px;
  font-weight: 800;
}

.notice.tilted {
  transform: rotate(1.3deg);
}

.status {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  padding: 9px;
  border: 2px dashed var(--red);
  font-family: "Courier New", monospace;
}

.status span {
  color: var(--red);
  font-weight: 900;
}

.market-cards,
.three-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 1000px;
  margin: 30px auto 0;
}

.market-cards div,
.three-stats b {
  display: grid;
  min-height: 86px;
  padding: 10px;
  border: 3px solid var(--ink);
  background: #efe4c1;
  font: 900 18px "Courier New", monospace;
  animation: sellAway 3.4s infinite;
}

.market-cards div:nth-child(2) { animation-delay: .25s; }
.market-cards div:nth-child(3) { animation-delay: .5s; }
.market-cards div:nth-child(4) { animation-delay: .75s; }

.market-cards span {
  justify-self: end;
  color: var(--red);
}

@keyframes sellAway {
  70% { transform: translate(0) rotate(0); opacity: 1; }
  86% { transform: translateY(-18px) rotate(-4deg); opacity: .4; }
  100% { transform: translate(0) rotate(0); opacity: 1; }
}

.purchase {
  text-align: center;
  font: 900 24px "Courier New", monospace;
}

.purchase b { color: #057e38; }

.wide-art {
  width: min(960px, 100%);
  margin: 0 auto 24px;
}

.presentation {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(240px, 360px);
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.slide {
  padding: 18px;
  background: #f5ebcb;
}

.slide h3 { font-size: 46px; }

.arrow {
  margin-top: 10px;
  color: var(--green);
  font: 900 42px "Courier New", monospace;
  text-shadow: 2px 2px 0 var(--ink);
  transform: rotate(-14deg);
}

.chat-bubbles {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.chat-bubbles span {
  padding: 12px;
  border: 3px solid var(--ink);
  background: #fff4cd;
  font-weight: 900;
  box-shadow: 3px 3px 0 var(--ink);
}

.job {
  display: grid;
  gap: 8px;
  max-width: 760px;
  margin: 30px auto 0;
  text-align: center;
  font-size: 22px;
}

.job strong {
  font: 900 44px Impact, "Arial Black", sans-serif;
  color: var(--purple);
  text-shadow: 2px 2px 0 var(--ink);
}

.autopsy {
  background-color: #d7d0bd;
}

.sheet-grid {
  align-items: stretch;
}

table {
  width: 100%;
  border-collapse: collapse;
  border: 4px solid var(--ink);
  background: #eee9d6;
  box-shadow: var(--shadow);
  font: 800 15px "Courier New", monospace;
}

caption {
  padding: 10px;
  border: 4px solid var(--ink);
  border-bottom: 0;
  background: var(--ink);
  color: var(--green);
  font-weight: 900;
}

th, td {
  padding: 8px;
  border: 2px solid var(--ink);
  text-align: left;
}

th {
  color: #fff;
  background: var(--red);
}

.total td {
  font-size: 19px;
  background: #fff0aa;
}

.stamp {
  width: fit-content;
  margin: 24px auto 0;
  padding: 7px 16px;
  border: 7px double var(--red);
  color: var(--red);
  font: 900 clamp(48px, 8vw, 108px) Impact, "Arial Black", sans-serif;
  transform: rotate(-8deg);
}

.scribble {
  margin: 14px 0 0;
  text-align: center;
  font: 900 26px "Comic Sans MS", "Arial Black", sans-serif;
}

.ratio {
  text-align: center;
  font: 900 19px "Courier New", monospace;
}

.ratio strong { color: #057e38; }

.dialogue,
.medical-ui {
  padding: 18px;
  font-family: "Courier New", monospace;
}

.dialogue p {
  margin: 0 0 10px;
  padding: 7px;
  background: rgba(255,255,255,.45);
}

.rejection {
  max-width: 780px;
  margin: 26px auto 0;
  padding: 15px;
  text-align: center;
}

.rejection span {
  display: block;
  font: 900 18px "Courier New", monospace;
}

.rejection strong {
  display: block;
  color: var(--red);
  font: 900 84px Impact, "Arial Black", sans-serif;
}

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

.three-stats b span {
  color: var(--green);
  font-size: 26px;
  text-shadow: 1px 1px 0 var(--ink);
}

.diagnosis {
  background-color: #d4d6c7;
}

.diagnosis s {
  color: var(--red);
  text-decoration-thickness: 8px;
}

.medical-ui strong {
  color: var(--red);
  font-size: 22px;
}

.scan {
  width: 100%;
  margin-top: 12px;
}

.scan.is-scanning {
  background: repeating-linear-gradient(90deg, var(--green) 0 16px, var(--purple) 16px 32px);
}

.diagnosis-result {
  min-height: 82px;
  margin-top: 14px;
  padding: 12px;
  border: 3px inset #777;
  background: #070906;
  color: var(--green);
  font: 900 20px "Courier New", monospace;
}

.nothing {
  display: grid;
  gap: 24px;
  place-items: center;
  color: #eee1bd;
  background: linear-gradient(#9f8b5e, #11100d 30%, #050505);
}

.nothing img {
  width: min(880px, 100%);
  border-color: #050505;
  filter: brightness(.8);
}

.final-lines {
  max-width: 1050px;
  text-align: center;
}

.final-lines h2 {
  margin: 26px 0;
  font-size: clamp(42px, 7vw, 96px);
}

.final-lines h1 {
  margin: 38px 0 18px;
  color: var(--green);
  font-size: clamp(56px, 10vw, 140px);
  text-shadow: 4px 4px 0 #000, 7px 7px 0 var(--red);
}

.final-lines p {
  font-size: 22px;
  font-weight: 900;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border-top: 4px solid var(--ink);
  background: var(--cream);
  font: 800 13px "Courier New", monospace;
}

@media (max-width: 900px) {
  .topbar {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .navlinks {
    order: 3;
    display: grid;
    grid-template-columns: repeat(5, max-content);
    justify-content: start;
    overflow-x: auto;
    width: 100%;
    padding-top: 5px;
    border-top: 2px solid var(--ink);
  }

  .navlinks a {
    padding: 5px 7px;
    background: rgba(255,255,255,.28);
  }

  .hero {
    display: block;
    min-height: auto;
    padding-top: 40px;
  }

  .hero-copy {
    position: relative;
    left: auto;
    top: auto;
    max-width: none;
    margin-bottom: 18px;
  }

  .hero h1 {
    font-size: clamp(48px, 16vw, 76px);
  }

  .hero-copy p:not(.blink) {
    max-width: none;
  }

  .portfolio {
    margin: 18px 0;
  }

  .comparison,
  .chaos-grid,
  .bank-grid,
  .medical-grid,
  .sheet-grid,
  .presentation {
    grid-template-columns: 1fr;
  }

  .timeline,
  .market-cards,
  .three-stats {
    grid-template-columns: 1fr;
  }

  .compare-range {
    position: static;
    transform: none;
    grid-row: 2;
    width: 100%;
    margin: 2px 0;
  }

  .section {
    padding: 58px 16px;
  }

  .section-head h2 {
    font-size: clamp(42px, 14vw, 68px);
  }

  .old-button {
    width: 100%;
    flex: 1 1 100%;
    min-width: 0;
  }

  .cta-row {
    flex-direction: column;
  }

  footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
