@font-face {
  font-family: "Silkscreen";
  src: url("assets/fonts/silkscreen-regular.woff2") format("woff2");
  font-display: swap;
}

:root {
  --bedrock: #120d08;
  --deep-dirt: #24150a;
  --dirt: #7a4f2c;
  --crust: #d9a05a;
  --grass: #6e9838;
  --bone: #ece4d2;
  --action: #b33a21;
  --ink: #0a0705;
  --ash: #bdb19d;
  --sky: #111827;
  --line: rgba(236, 228, 210, 0.18);
  --display: "Silkscreen", ui-monospace, monospace;
  --body: "Trebuchet MS", "Segoe UI", sans-serif;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--bone);
  background: var(--bedrock);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
}

body::after {
  position: fixed;
  z-index: 20;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 3px,
    rgba(0, 0, 0, 0.08) 4px
  );
  content: "";
  pointer-events: none;
}

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

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--bone);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: var(--ink);
  background: var(--bone);
  font: 0.8rem/1 var(--display);
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.surface {
  --surface-parallax: 0px;
  position: relative;
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(8, 10, 18, 0.12), rgba(26, 16, 9, 0.76) 86%, #3a2414),
    url("assets/textures/bg-far.webp") center top / cover no-repeat,
    var(--sky);
  isolation: isolate;
}

.surface::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 5, 3, 0.64), transparent 48%, rgba(8, 5, 3, 0.28)),
    linear-gradient(180deg, transparent 62%, rgba(18, 13, 8, 0.66));
  content: "";
  pointer-events: none;
}

.nav {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: 76px;
  border-bottom: 2px solid rgba(217, 160, 90, 0.35);
  font: 0.68rem/1 var(--display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-mark {
  justify-self: start;
  color: var(--crust);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 24px;
}

.nav-links a,
.footer-inner a {
  color: var(--ash);
  text-decoration: none;
}

.nav-links a:hover,
.footer-inner a:hover {
  color: var(--bone);
}

.nav-action {
  padding: 10px 14px;
  border: 2px solid var(--crust);
  color: var(--crust);
  text-decoration: none;
}

.nav-end,
.nav-platforms {
  display: flex;
  align-items: center;
}

.nav-end {
  justify-self: end;
  gap: 13px;
}

.nav-platforms {
  gap: 8px;
}

.nav-platforms img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.hero {
  position: relative;
  z-index: 3;
  display: grid;
  min-height: calc(100svh - 76px);
  flex: 1;
  align-content: center;
  padding-block: clamp(38px, 4.5vw, 58px) 172px;
  text-align: center;
}

.hero-copy {
  max-width: 920px;
  margin-inline: auto;
  transform: translate3d(0, var(--surface-parallax), 0);
  will-change: transform;
}

.hero-copy > * {
  animation: rise-in 600ms both;
}

.hero-copy > :nth-child(2) { animation-delay: 70ms; }
.hero-copy > :nth-child(3) { animation-delay: 140ms; }
.hero-copy > :nth-child(4) { animation-delay: 210ms; }
.hero-copy > :nth-child(5) { animation-delay: 280ms; }
.hero-copy > :nth-child(6) { animation-delay: 350ms; }
.hero-copy > :nth-child(7) { animation-delay: 420ms; }

.eyebrow,
.depth-label,
.index-title,
.band-kicker,
.platform-note {
  margin: 0;
  color: var(--crust);
  font: 0.72rem/1.4 var(--display);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.hero-logo {
  width: min(640px, 100%);
  height: auto;
  margin: 16px auto 14px;
  image-rendering: auto;
}

h1,
h2,
h3 {
  margin-top: 0;
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
}

h1 {
  max-width: 760px;
  margin: 0 auto 22px;
  color: var(--bone);
  font-size: clamp(1.18rem, 2.25vw, 2rem);
  line-height: 1.35;
  letter-spacing: 0.035em;
  text-shadow: 4px 4px 0 var(--ink);
}

.hero-lead {
  max-width: 680px;
  margin: 0 auto;
  color: #e3d8c6;
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
}

.hero-trailer-frame {
  position: relative;
  width: min(760px, 100%);
  margin: 28px auto 0;
  overflow: hidden;
  border: 4px solid var(--crust);
  background: var(--ink);
  box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.62);
}

.hero-trailer {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #000;
}

.hero-trailer-play {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  display: grid;
  width: 86px;
  height: 70px;
  padding: 0;
  border: 3px solid var(--crust);
  color: var(--bone);
  background: rgba(18, 13, 8, 0.9);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.78);
  cursor: pointer;
  place-items: center;
  transform: translate(-50%, -50%);
  transition: background 120ms ease, transform 120ms ease, box-shadow 120ms ease;
}

.hero-trailer-play::before {
  width: 0;
  height: 0;
  margin-left: 6px;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  border-left: 24px solid currentcolor;
  content: "";
}

.hero-trailer-play:hover {
  background: var(--action);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.78);
  transform: translate(calc(-50% + 2px), calc(-50% + 2px));
}

.hero-trailer-play[hidden] {
  display: none;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-top: 26px;
}

.button {
  position: relative;
  display: inline-flex;
  min-width: 250px;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 15px 22px;
  border: 3px solid var(--ink);
  font: 0.76rem/1.2 var(--display);
  letter-spacing: 0.035em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 5px 5px 0 var(--ink), inset 0 -4px 0 rgba(0, 0, 0, 0.22);
  transition: transform 120ms ease, box-shadow 120ms ease, filter 120ms ease;
}

.button:hover {
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0 var(--ink), inset 0 -3px 0 rgba(0, 0, 0, 0.22);
  filter: brightness(1.08);
}

.button-steam {
  color: var(--bone);
  background: #171a21;
}

.button-discord {
  color: #fff;
  background: #5865f2;
}

.button-brand {
  width: auto;
  object-fit: contain;
}

.button-brand-steam {
  height: 26px;
}

.button-brand-discord {
  height: 28px;
}

.surface-lineup {
  position: absolute;
  z-index: 3;
  bottom: 54px;
  left: 50%;
  width: min(1180px, calc(100% - 48px));
  height: 64px;
  overflow: hidden;
  transform: translateX(-50%);
}

.surface-fighter {
  position: absolute;
  bottom: 0;
  left: var(--run-start);
  width: 96px;
  height: 64px;
  animation: fighter-patrol var(--run-duration) linear var(--run-delay) infinite;
  transform-origin: 48px 64px;
  will-change: left, transform;
}

.fighter-body,
.fighter-weapon {
  position: absolute;
  display: block;
  max-width: none;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
}

.fighter-body {
  z-index: 1;
  inset: 0;
  width: 96px;
  height: 64px;
  background-position: 0 0;
  background-repeat: no-repeat;
  background-size: 576px 64px;
  animation: fighter-stride 540ms steps(6) infinite;
}

.fighter-weapon {
  z-index: 2;
  top: var(--weapon-top);
  left: var(--weapon-left);
}

.fighter-ant {
  --run-start: 4%;
  --run-end: 46%;
  --run-duration: 12s;
  --run-delay: -3s;
  --weapon-left: 44px;
  --weapon-top: 43px;
}

.fighter-ant .fighter-body {
  background-image: url("assets/characters/ant-run.png");
}

.fighter-bear {
  --run-start: 22%;
  --run-end: 78%;
  --run-duration: 17s;
  --run-delay: -11s;
  --weapon-left: 33px;
  --weapon-top: 32px;
}

.fighter-bear .fighter-body {
  background-image: url("assets/characters/bear-run.png");
}

.fighter-chameleon {
  --run-start: 48%;
  --run-end: 96%;
  --run-duration: 14s;
  --run-delay: -7s;
  --weapon-left: 50px;
  --weapon-top: 34px;
}

.fighter-chameleon .fighter-body {
  background-image: url("assets/characters/chameleon-run.png");
}

.fighter-platypus {
  --run-start: 7%;
  --run-end: 91%;
  --run-duration: 20s;
  --run-delay: -15s;
  --weapon-left: 46px;
  --weapon-top: 45px;
}

.fighter-platypus .fighter-body {
  background-image: url("assets/characters/platypus-run.png");
}

.game-window {
  position: relative;
  overflow: hidden;
  margin: 0;
  border: 3px solid var(--crust);
  background: var(--ink);
  box-shadow: 12px 12px 0 rgba(0, 0, 0, 0.52);
}

.carousel-viewport {
  aspect-ratio: 16 / 9;
  background: var(--ink);
}

.carousel-slide {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-slide[hidden] {
  display: none;
}

.carousel-control {
  position: absolute;
  z-index: 2;
  top: 50%;
  width: 46px;
  height: 56px;
  padding: 0;
  border: 2px solid rgba(236, 228, 210, 0.72);
  background: rgba(10, 7, 5, 0.78);
  cursor: pointer;
  transform: translateY(-50%);
}

.carousel-control::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  border-top: 3px solid var(--bone);
  border-left: 3px solid var(--bone);
  content: "";
}

.carousel-previous {
  left: 12px;
}

.carousel-previous::before {
  transform: translate(-35%, -50%) rotate(-45deg);
}

.carousel-next {
  right: 12px;
}

.carousel-next::before {
  transform: translate(-65%, -50%) rotate(135deg);
}

.carousel-control:hover {
  background: rgba(179, 58, 33, 0.9);
}

.carousel-dots {
  position: absolute;
  z-index: 2;
  bottom: 12px;
  left: 50%;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.carousel-dot {
  width: 13px;
  height: 13px;
  padding: 0;
  border: 2px solid var(--bone);
  background: rgba(10, 7, 5, 0.8);
  cursor: pointer;
}

.carousel-dot.is-active {
  background: var(--crust);
}

.terrain {
  position: absolute;
  z-index: 4;
  bottom: 0;
  left: 50%;
  width: min(1180px, calc(100% - 48px));
  height: 54px;
  background:
    linear-gradient(180deg, rgba(96, 60, 32, 0.94) 0 3px, transparent 3px),
    url("assets/textures/dirt.webp") center top / 360px auto;
  box-shadow: inset 0 3px 0 rgba(22, 15, 3, 0.72);
  transform: translateX(-50%);
}

.terrain::before {
  position: absolute;
  right: 0;
  bottom: 100%;
  left: 0;
  height: 20px;
  background: url("assets/textures/grass-surface.png") center bottom / 1180px 20px no-repeat;
  content: "";
  image-rendering: pixelated;
  pointer-events: none;
}

#main-content {
  --underground-parallax: 0px;
  position: relative;
  overflow: hidden;
  background: var(--bedrock);
  isolation: isolate;
}

.underground-parallax {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.underground-parallax::before {
  position: absolute;
  top: -460px;
  left: 50%;
  width: 1536px;
  height: 6144px;
  background: url("assets/backgrounds/dirtnap-vertical-battlefield.webp") center top / 1536px 6144px no-repeat;
  content: "";
  filter: brightness(0.52) saturate(0.8) contrast(1.08);
  image-rendering: crisp-edges;
  image-rendering: pixelated;
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  transform: translate3d(-50%, var(--underground-parallax), 0);
  transform-origin: 50% 0;
  will-change: transform;
}

.underground-parallax::after {
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
  left: 0;
  height: 32px;
  background:
    linear-gradient(90deg, transparent 0 13px, #7a4f2c 13px 23px, transparent 23px 41px) 0 0 / 41px 8px repeat-x,
    linear-gradient(90deg, transparent 0 8px, #603c20 8px 20px, transparent 20px 35px) 9px 8px / 35px 10px repeat-x,
    linear-gradient(90deg, transparent 0 17px, #3a2414 17px 30px, transparent 30px 47px) 4px 18px / 47px 11px repeat-x,
    linear-gradient(180deg, #7a4f2c 0 8px, #603c20 8px 18px, #3a2414 18px 28px, transparent 28px);
  content: "";
  image-rendering: pixelated;
}

.stratum {
  position: relative;
  z-index: 1;
  padding-block: clamp(76px, 8vw, 112px);
  isolation: isolate;
}

.d1 {
  background: linear-gradient(rgba(61, 35, 17, 0.28), rgba(43, 25, 13, 0.46));
}

.d2 {
  background: linear-gradient(rgba(39, 22, 11, 0.42), rgba(34, 19, 9, 0.56));
}

.section-divider {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 48px));
  height: 2px;
  margin: -1px auto;
  background: rgba(217, 160, 90, 0.58);
}

.section-divider-inner {
  margin: clamp(70px, 7vw, 96px) auto 0;
}

.split {
  display: grid;
  grid-template-columns: minmax(310px, 0.75fr) minmax(0, 1.25fr);
  align-items: center;
  gap: clamp(48px, 7vw, 96px);
}

.split-reverse {
  grid-template-columns: minmax(0, 1.25fr) minmax(310px, 0.75fr);
}

.split-reverse .section-copy {
  order: 2;
}

.section-copy h2,
.section-heading h2,
.bedrock-cta h2 {
  margin: 18px 0 28px;
  color: var(--bone);
  font-size: clamp(1.8rem, 4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-shadow: 5px 5px 0 rgba(0, 0, 0, 0.55);
}

.section-copy > p:not(.depth-label),
.section-heading > p:not(.depth-label) {
  color: #d7cbb8;
  font-size: clamp(1rem, 1.5vw, 1.16rem);
}

.bedrock-cta > .shell > p:not(.depth-label, .platform-note) {
  color: #d7cbb8;
  font-family: var(--display);
  font-size: clamp(1rem, 1.5vw, 1.16rem);
  letter-spacing: 0.01em;
}

.verb-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.verb-strip li {
  padding: 9px 11px;
  border: 2px solid var(--crust);
  color: var(--crust);
  background: rgba(18, 13, 8, 0.56);
  font: 0.68rem/1 var(--display);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 58px;
}

.section-heading.centered {
  margin-inline: auto;
  text-align: center;
}

.mode-block {
  margin-top: clamp(76px, 8vw, 110px);
}

.mode-ledger {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 4px solid var(--crust);
  border-bottom: 4px solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
}

.mode-ledger article {
  min-height: 245px;
  padding: 24px 22px;
  border-right: 2px solid var(--ink);
  background: rgba(60, 34, 18, 0.86);
}

.mode-ledger article:nth-child(even) {
  background: rgba(45, 26, 14, 0.92);
}

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

.mode-ledger span {
  color: var(--crust);
  font: 0.56rem/1.4 var(--display);
  letter-spacing: 0.05em;
}

.mode-ledger h3,
.tournament-band h3 {
  margin: 34px 0 13px;
  color: var(--bone);
  font-size: 1.03rem;
  line-height: 1.35;
}

.mode-ledger p {
  margin: 0;
  color: var(--ash);
  font-size: 0.92rem;
}

.tournament-band {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: center;
  gap: 36px;
  margin-top: 28px;
  padding: 25px 28px;
  border-left: 8px solid var(--action);
  background: var(--ink);
}

.tournament-band h3 {
  margin: 7px 0 0;
  font-size: 1.55rem;
}

.tournament-band p {
  margin: 0;
  color: var(--ash);
}

.bedrock-cta {
  position: relative;
  z-index: 1;
  padding-block: clamp(100px, 14vw, 180px);
  overflow: hidden;
  text-align: center;
  background:
    linear-gradient(rgba(12, 9, 6, 0.9), rgba(7, 5, 4, 0.96)),
    url("assets/textures/rock.webp") center / 740px auto,
    var(--bedrock);
}

.bedrock-cta::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 12px;
  background: repeating-linear-gradient(90deg, #32251a 0 28px, #1f1811 28px 48px);
  content: "";
}

.cta-shell {
  max-width: 820px;
}

.button-row-centered {
  justify-content: center;
}

.platform-note {
  margin-top: 38px;
  color: var(--ash);
}

footer {
  border-top: 1px solid rgba(236, 228, 210, 0.12);
  background: #080604;
}

.footer-inner {
  display: flex;
  min-height: 90px;
  align-items: center;
  justify-content: center;
  gap: 24px;
  color: #968a78;
  font: 0.62rem/1.5 var(--display);
  text-align: center;
  text-transform: uppercase;
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fighter-stride {
  to { background-position: -576px 0; }
}

@keyframes fighter-patrol {
  0% {
    left: var(--run-start);
    transform: translateX(-50%) scaleX(1);
  }
  49.9% {
    left: var(--run-end);
    transform: translateX(-50%) scaleX(1);
  }
  50% {
    left: var(--run-end);
    transform: translateX(-50%) scaleX(-1);
  }
  99.9% {
    left: var(--run-start);
    transform: translateX(-50%) scaleX(-1);
  }
  100% {
    left: var(--run-start);
    transform: translateX(-50%) scaleX(1);
  }
}

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

  .nav-links {
    display: none;
  }

  .hero-copy {
    max-width: 800px;
  }

  .split,
  .split-reverse {
    grid-template-columns: 1fr;
  }

  .split-reverse .section-copy {
    order: 0;
  }

  .mode-ledger {
    grid-template-columns: repeat(2, 1fr);
  }

  .mode-ledger article:nth-child(2) {
    border-right: 0;
  }

  .mode-ledger article:nth-child(-n + 2) {
    border-bottom: 2px solid var(--ink);
  }

}

@media (max-width: 680px) {
  .shell {
    width: min(100% - 28px, 1180px);
  }

  .nav {
    min-height: 64px;
  }

  .hero {
    min-height: auto;
    padding-block: 54px 172px;
  }

  .hero-logo {
    margin-top: 18px;
  }

  .hero-trailer-frame {
    border-width: 3px;
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.62);
  }

  .hero-trailer-play {
    width: 66px;
    height: 56px;
    border-width: 2px;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.78);
  }

  .hero-trailer-play::before {
    border-top-width: 12px;
    border-bottom-width: 12px;
    border-left-width: 19px;
  }

  .button-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .game-window {
    border-width: 3px;
    box-shadow: 7px 7px 0 rgba(0, 0, 0, 0.58);
  }

  .surface-lineup,
  .terrain,
  .section-divider {
    width: calc(100% - 28px);
  }

  .stratum {
    padding-block: 82px;
  }

  .section-copy h2,
  .section-heading h2,
  .bedrock-cta h2 {
    font-size: clamp(1.65rem, 9vw, 2.6rem);
  }

  .mode-ledger {
    grid-template-columns: 1fr;
  }

  .mode-ledger article,
  .mode-ledger article:nth-child(2) {
    min-height: 0;
    border-right: 0;
    border-bottom: 2px solid var(--ink);
  }

  .mode-ledger article:last-child {
    border-bottom: 0;
  }

  .tournament-band {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }

}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
