@font-face {
  font-family: "Forge";
  src: url("../assets/fonts/DejaVuSans-Bold.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 800;
}

:root {
  --ink: #171411;
  --ink-soft: #25211d;
  --bone: #ebe5d9;
  --paper: #dcd2c2;
  --rust: #c23b16;
  --rust-dark: #7e2410;
  --sand: #bda27f;
  --steel: #817b72;
  --line: rgba(23, 20, 17, 0.26);
  --header-height: 88px;
  --mouse-x: 0;
  --mouse-y: 0;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  cursor: auto;
}

::selection {
  color: var(--bone);
  background: var(--rust);
}

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

button {
  border: 0;
}

a {
  text-decoration: none;
}

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

.page-noise {
  position: fixed;
  z-index: 1000;
  inset: 0;
  pointer-events: none;
  opacity: 0.12;
  background-image:
    repeating-radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.72) 0 0.5px, transparent 0.7px 5px),
    repeating-radial-gradient(circle at 80% 60%, rgba(0, 0, 0, 0.8) 0 0.7px, transparent 0.9px 7px);
  background-size: 9px 11px, 13px 17px;
  mix-blend-mode: soft-light;
}

.cursor {
  position: fixed;
  z-index: 2000;
  top: 0;
  left: 0;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border: 1px solid rgba(235, 229, 217, 0.74);
  border-radius: 50%;
  pointer-events: none;
  transition: width 180ms ease, height 180ms ease, margin 180ms ease, border-color 180ms ease, background 180ms ease;
  mix-blend-mode: difference;
  display: none;
}

.has-js body {
  cursor: none;
}

.has-js .cursor {
  display: block;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid #ff6a3a;
  outline-offset: 4px;
}

.cursor span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fff;
  transform: translate(-50%, -50%);
}

.cursor.is-active {
  width: 54px;
  height: 54px;
  margin: -27px 0 0 -27px;
  border-color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.progress-rail {
  position: fixed;
  z-index: 1201;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
}

.progress-rail span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--rust);
}

.site-header {
  position: fixed;
  z-index: 1200;
  top: 0;
  left: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  height: var(--header-height);
  padding: 0 4.8vw;
  color: var(--bone);
  background:
    linear-gradient(90deg, rgba(10, 9, 8, 0.99), rgba(29, 25, 22, 0.97)),
    repeating-linear-gradient(105deg, transparent 0 11px, rgba(255, 255, 255, 0.03) 12px 13px);
  border-bottom: 1px solid rgba(235, 229, 217, 0.25);
  box-shadow: 0 9px 34px rgba(0, 0, 0, 0.26);
  transition: height 260ms ease, background-color 260ms ease;
}

.site-header::after {
  content: "";
  position: absolute;
  right: 1.7vw;
  bottom: -1px;
  width: 85px;
  height: 15px;
  background: repeating-linear-gradient(120deg, var(--rust) 0 6px, transparent 7px 14px);
  transform: skewX(-18deg);
}

.site-header.is-condensed {
  height: 72px;
  background: rgba(16, 14, 12, 0.96);
  backdrop-filter: blur(13px);
}

.brand {
  position: relative;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding-right: 34px;
  overflow: hidden;
  color: var(--bone);
  font-family: "Forge", Impact, sans-serif;
  font-size: clamp(1.6rem, 2vw, 2.35rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.08em;
  text-transform: uppercase;
  transform: skewX(-6deg);
}

.brand-word {
  text-shadow: 2px 2px 0 rgba(255, 255, 255, 0.12);
}

.brand-cut {
  position: absolute;
  top: 23px;
  left: -8px;
  width: calc(100% + 2px);
  height: 3px;
  background: var(--rust);
  box-shadow: 0 0 8px rgba(194, 59, 22, 0.5);
  transform: rotate(-8deg);
  transition: transform 250ms ease;
}

.brand:hover .brand-cut {
  transform: translateX(15px) rotate(-8deg);
}

.main-nav {
  display: flex;
  gap: clamp(30px, 3.2vw, 64px);
}

.main-nav a {
  position: relative;
  padding: 9px 0;
  color: rgba(235, 229, 217, 0.72);
  font-family: "Forge", Arial, sans-serif;
  font-size: 0.78rem;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 2px;
  background: var(--rust);
  transform: scaleX(0) skewX(-24deg);
  transform-origin: right;
  transition: transform 180ms ease;
}

.main-nav a:hover {
  color: #fff;
}

.main-nav a:hover::after {
  transform: scaleX(1) skewX(-24deg);
  transform-origin: left;
}

.header-actions {
  justify-self: end;
  display: flex;
  gap: 12px;
}

.mini-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 118px;
  height: 43px;
  padding: 0 18px;
  color: var(--bone);
  background: #201d1a;
  border: 1px solid rgba(235, 229, 217, 0.48);
  box-shadow: inset 0 0 0 3px rgba(0, 0, 0, 0.28), 4px 4px 0 rgba(0, 0, 0, 0.28);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  font-family: "Forge", Arial, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.mini-link:hover {
  color: #fff;
  background: #302a25;
  transform: translateY(-2px);
}

.mini-link:active {
  transform: translate(2px, 2px);
}

.mini-link--rust {
  min-width: 142px;
  background: var(--rust-dark);
  border-color: var(--rust);
}

.mini-link--rust:hover {
  background: var(--rust);
}

.mini-icon {
  font-size: 1.05rem;
}

.arrow {
  font-size: 1rem;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 820px;
  height: 100svh;
  overflow: hidden;
  color: var(--ink);
  background: #b8a58d;
}

.hero-sky {
  position: absolute;
  z-index: -5;
  inset: -3%;
  background: url("../assets/images/machete-world.png") center center / cover no-repeat;
  filter: contrast(1.08) saturate(0.78) sepia(0.08) brightness(0.95);
  transform: translate3d(calc(var(--mouse-x) * -9px), calc(var(--mouse-y) * -6px), 0) scale(1.065);
  transition: transform 120ms linear;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -4;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 8, 6, 0.14), transparent 25%, transparent 72%, rgba(10, 8, 6, 0.36)),
    linear-gradient(90deg, rgba(224, 216, 202, 0.2), transparent 72%);
}

.hero-scrim {
  position: absolute;
  z-index: -1;
  top: var(--header-height);
  bottom: 0;
  left: 0;
  width: min(67vw, 1280px);
  background:
    linear-gradient(90deg, rgba(237, 232, 221, 0.99) 0%, rgba(237, 232, 221, 0.97) 48%, rgba(237, 232, 221, 0.82) 72%, rgba(237, 232, 221, 0) 100%),
    repeating-linear-gradient(170deg, rgba(0, 0, 0, 0.025) 0 1px, transparent 1px 11px);
  clip-path: polygon(0 0, 90% 0, 100% 56%, 90% 100%, 0 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(92vw, 1760px);
  height: 100%;
  margin: 0 auto;
  padding-top: clamp(142px, 14vh, 168px);
}

.hero-copy {
  position: relative;
  z-index: 8;
  width: min(58vw, 1000px);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 15px;
  color: #40382f;
  font-family: "Forge", Arial, sans-serif;
  font-size: clamp(0.72rem, 0.78vw, 0.92rem);
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.eyebrow i {
  width: 50px;
  height: 2px;
  background: var(--rust);
  transform: skewX(-32deg);
}

.hero h1 {
  position: relative;
  width: max-content;
  max-width: 100%;
  margin: 17px 0 -11px;
  font-family: "Forge", Impact, sans-serif;
  font-size: clamp(6.2rem, 10vw, 11.5rem);
  font-weight: 800;
  line-height: 0.83;
  letter-spacing: -0.095em;
  text-transform: uppercase;
  transform: scaleX(0.83);
  transform-origin: left center;
  text-shadow: 5px 5px 0 rgba(255, 255, 255, 0.25);
}

.hero h1::after {
  content: "";
  position: absolute;
  top: 48%;
  left: -2%;
  width: 106%;
  height: clamp(5px, 0.55vw, 10px);
  background: linear-gradient(90deg, var(--rust-dark), var(--rust), transparent 92%);
  box-shadow: 0 -2px 0 var(--bone);
  transform: rotate(-8deg) skewX(-30deg);
}

.ticker-lockup {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  color: var(--rust-dark);
  font-family: "Forge", Impact, sans-serif;
  font-size: clamp(2.8rem, 4.4vw, 5.25rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

.ticker-mark {
  color: var(--rust);
  transform: translateY(-2px);
}

.hero-line {
  margin: 15px 0 0;
  font-family: "Forge", Arial, sans-serif;
  font-size: clamp(1rem, 1.25vw, 1.48rem);
  font-weight: 800;
  letter-spacing: 0.29em;
  text-transform: uppercase;
}

.ca-plate {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  width: min(100%, 660px);
  min-height: 57px;
  margin-top: 25px;
  color: var(--bone);
  background:
    linear-gradient(90deg, #28241f, #151311),
    repeating-linear-gradient(115deg, transparent 0 8px, rgba(255, 255, 255, 0.04) 9px 10px);
  border: 1px solid #49413a;
  box-shadow: inset 0 0 0 4px rgba(0, 0, 0, 0.28), 8px 9px 0 rgba(47, 36, 29, 0.2);
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}

.ca-label {
  align-self: stretch;
  display: grid;
  place-items: center;
  min-width: 61px;
  color: var(--bone);
  background: var(--rust-dark);
  font-family: "Forge", Arial, sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
}

.ca-plate code {
  min-width: 0;
  padding: 0 16px;
  overflow: hidden;
  color: rgba(235, 229, 217, 0.84);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.89rem;
  letter-spacing: 0.04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-button {
  position: relative;
  align-self: stretch;
  min-width: 130px;
  padding: 0 18px;
  overflow: hidden;
  color: var(--ink);
  background: var(--bone);
  font-family: "Forge", Arial, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  cursor: none;
  transition: color 170ms ease, background 170ms ease;
}

.copy-button::before {
  content: "";
  position: absolute;
  top: -30%;
  left: -70%;
  width: 42%;
  height: 160%;
  background: rgba(255, 255, 255, 0.72);
  transform: skewX(-25deg);
  transition: left 320ms ease;
}

.copy-button:hover::before {
  left: 120%;
}

.copy-button:hover,
.copy-button.is-copied {
  color: #fff;
  background: var(--rust);
}

.copy-notch {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 10px;
  height: 10px;
  background: var(--ink);
  clip-path: polygon(100% 0, 0 100%, 100% 100%);
}

.hero-actions,
.trail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 22px;
}

.blade-button {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  min-width: 235px;
  height: 62px;
  padding: 0 25px 0 29px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.58);
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.08), 7px 8px 0 rgba(0, 0, 0, 0.2);
  clip-path: polygon(11px 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 0 100%, 0 11px);
  font-family: "Forge", Arial, sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  transition: transform 170ms ease, filter 170ms ease;
}

.blade-button::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -10%;
  background: linear-gradient(115deg, transparent 34%, rgba(255, 255, 255, 0.32) 48%, transparent 62%);
  transform: translateX(-120%);
  transition: transform 370ms ease;
}

.blade-button:hover {
  filter: brightness(1.12);
  transform: translateY(-4px) rotate(-0.4deg);
}

.blade-button:hover::before {
  transform: translateX(120%);
}

.blade-button:active {
  transform: translate(3px, 3px);
}

.blade-button b {
  font-size: 1.25rem;
}

.blade-button--rust {
  color: #fff;
  background: linear-gradient(180deg, #d0441d, #98270f);
}

.blade-button--dark {
  color: var(--bone);
  background: linear-gradient(180deg, #2d2823, #12100e);
  border-color: rgba(235, 229, 217, 0.44);
}

.blade-button--bone {
  color: var(--ink);
  background: var(--bone);
}

.hero-character-wrap {
  position: absolute;
  z-index: 3;
  top: clamp(69px, 7vh, 86px);
  right: clamp(160px, 12.5vw, 240px);
  width: min(59vw, 1120px);
  transform: translate3d(calc(var(--mouse-x) * 12px), calc(var(--mouse-y) * 8px), 0);
  pointer-events: none;
}

.hero-character {
  width: 100%;
  filter: drop-shadow(24px 25px 20px rgba(26, 18, 12, 0.33)) contrast(1.03) saturate(0.91);
  transform-origin: 61% 58%;
  animation: bladeFloat 6.2s ease-in-out infinite;
}

.hero-character.is-struck {
  animation: bladeStrike 520ms cubic-bezier(0.15, 0.86, 0.3, 1);
}

.blade-glint {
  position: absolute;
  z-index: 5;
  left: 6%;
  bottom: 16%;
  width: 66%;
  height: 3px;
  opacity: 0.58;
  background: linear-gradient(90deg, transparent, #fff 46%, transparent 58%);
  filter: blur(0.4px);
  transform: rotate(-35deg) translateX(-26%);
  animation: glint 5.2s ease-in-out infinite;
}

.character-hitbox {
  position: absolute;
  z-index: 7;
  top: 9%;
  right: 0;
  width: 54%;
  height: 84%;
  padding: 0;
  background: transparent;
  cursor: none;
}

.field-note {
  position: absolute;
  z-index: 5;
  color: var(--bone);
  background: rgba(28, 25, 22, 0.9);
  border: 1px solid rgba(235, 229, 217, 0.25);
  box-shadow: 8px 9px 0 rgba(0, 0, 0, 0.22);
  transform: rotate(-2deg);
}

.field-note::before,
.field-note::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #060606;
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.25);
}

.field-note::before {
  top: 8px;
  left: 8px;
}

.field-note::after {
  right: 8px;
  bottom: 8px;
}

.field-note--top {
  top: 20%;
  right: -1%;
  display: grid;
  gap: 4px;
  width: 204px;
  padding: 24px 24px;
  font-family: "Forge", Arial, sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.field-note--top strong {
  color: #e26037;
  font-size: 1rem;
}

.field-note--bottom {
  right: 1%;
  bottom: 8%;
  width: 230px;
  padding: 21px 24px;
  background: rgba(113, 37, 16, 0.94);
  transform: rotate(2.5deg);
}

.field-note--bottom small {
  display: block;
  margin-bottom: 8px;
  color: rgba(235, 229, 217, 0.6);
  font-family: "Forge", Arial, sans-serif;
  font-size: 0.66rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.field-note--bottom span {
  font-family: "Forge", Arial, sans-serif;
  font-size: 0.9rem;
  line-height: 1.35;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-dust {
  position: absolute;
  z-index: 4;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-dust i {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  background: rgba(116, 71, 40, 0.58);
  box-shadow: 0 0 8px rgba(86, 53, 31, 0.35);
  animation: dustDrift var(--d) linear var(--delay) infinite;
}

.scroll-cue {
  position: absolute;
  z-index: 9;
  left: 4.8vw;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 13px;
  color: rgba(23, 20, 17, 0.7);
  font-family: "Forge", Arial, sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.scroll-cue i {
  position: relative;
  width: 48px;
  height: 1px;
  background: var(--ink);
}

.scroll-cue i::after {
  content: "";
  position: absolute;
  right: 0;
  top: -3px;
  width: 7px;
  height: 7px;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  transform: rotate(-45deg);
}

.marquee {
  position: relative;
  z-index: 20;
  height: 76px;
  overflow: hidden;
  color: #fff;
  background: var(--rust);
  border-top: 4px solid var(--ink);
  border-bottom: 4px solid var(--ink);
  transform: rotate(-0.8deg) scale(1.01);
  transform-origin: center;
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 31px;
  width: max-content;
  height: 100%;
  padding-left: 20px;
  animation: marqueeMove 26s linear infinite;
}

.marquee-track span {
  font-family: "Forge", Arial, sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.13em;
  white-space: nowrap;
}

.marquee-track i {
  color: var(--ink);
  font-family: Arial, sans-serif;
  font-size: 2rem;
  font-style: normal;
  font-weight: 800;
}

.section-light {
  color: var(--ink);
  background:
    linear-gradient(117deg, transparent 0 58%, rgba(122, 99, 72, 0.08) 58.2% 58.5%, transparent 58.7%),
    repeating-linear-gradient(0deg, rgba(43, 34, 26, 0.02) 0 1px, transparent 1px 8px),
    var(--bone);
}

.origin {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(420px, 0.85fr) minmax(560px, 1.15fr);
  gap: clamp(50px, 6vw, 120px);
  min-height: 1000px;
  padding: 145px max(5vw, calc((100vw - 1700px) / 2)) 130px;
  overflow: hidden;
}

.origin::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  right: 8%;
  width: 26%;
  height: 100%;
  opacity: 0.15;
  background: repeating-linear-gradient(94deg, transparent 0 28px, #3d352e 29px 30px);
  transform: skewX(-12deg);
}

.section-index {
  position: absolute;
  top: 88px;
  left: max(5vw, calc((100vw - 1700px) / 2));
  color: var(--rust-dark);
  font-family: "Forge", Arial, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.origin-copy {
  align-self: center;
  max-width: 690px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  color: var(--rust-dark);
  font-family: "Forge", Arial, sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  width: 38px;
  height: 4px;
  background: var(--rust);
  transform: skewX(-30deg);
}

.origin h2,
.code-heading h2,
.trail h2 {
  margin: 0;
  font-family: "Forge", Impact, sans-serif;
  font-size: clamp(4.3rem, 6.3vw, 7.6rem);
  font-weight: 800;
  line-height: 0.89;
  letter-spacing: -0.075em;
  text-transform: uppercase;
}

.origin h2 em,
.code-heading h2 em,
.trail h2 em {
  color: var(--rust);
  font-style: normal;
}

.origin .lead {
  margin: 38px 0 18px;
  max-width: 620px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.28rem, 1.48vw, 1.72rem);
  line-height: 1.46;
}

.origin-copy > p:not(.kicker):not(.lead) {
  max-width: 590px;
  margin: 0;
  color: rgba(23, 20, 17, 0.72);
  font-size: 1.05rem;
  line-height: 1.75;
}

.stamp {
  display: grid;
  gap: 6px;
  width: fit-content;
  margin-top: 39px;
  padding: 14px 19px;
  color: var(--rust-dark);
  border: 3px double var(--rust-dark);
  transform: rotate(-2.5deg);
  text-transform: uppercase;
}

.stamp span {
  font-family: Georgia, serif;
  font-size: 0.68rem;
  font-style: italic;
  letter-spacing: 0.08em;
}

.stamp strong {
  font-family: "Forge", Arial, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}

.origin-photo {
  position: relative;
  align-self: center;
  justify-self: end;
  width: min(100%, 720px);
  margin: 0;
  transition: transform 180ms ease-out;
}

.photo-frame {
  position: relative;
  height: min(72vh, 720px);
  min-height: 600px;
  overflow: hidden;
  background: #a8947b;
  border: 8px solid var(--ink);
  clip-path: polygon(5% 0, 100% 3%, 96% 100%, 0 94%);
  box-shadow: 25px 28px 0 rgba(126, 36, 16, 0.2);
}

.photo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(25, 18, 12, 0.24));
  box-shadow: inset 0 0 90px rgba(17, 12, 8, 0.2);
  pointer-events: none;
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(0.13) saturate(0.76) contrast(1.12);
  transition: transform 650ms cubic-bezier(0.2, 0.8, 0.2, 1), filter 650ms ease;
}

.origin-photo:hover .photo-frame img {
  filter: sepia(0.04) saturate(0.95) contrast(1.08);
  transform: scale(1.035);
}

.origin-photo figcaption {
  position: absolute;
  z-index: 3;
  right: -20px;
  bottom: 36px;
  display: grid;
  gap: 6px;
  width: min(84%, 470px);
  padding: 21px 28px;
  color: var(--bone);
  background: rgba(24, 21, 18, 0.94);
  border-left: 7px solid var(--rust);
  transform: rotate(-1.5deg);
  box-shadow: 9px 10px 0 rgba(0, 0, 0, 0.17);
}

.origin-photo figcaption span {
  color: rgba(235, 229, 217, 0.62);
  font-family: Georgia, serif;
  font-size: 0.75rem;
  font-style: italic;
}

.origin-photo figcaption strong {
  font-family: "Forge", Arial, sans-serif;
  font-size: 0.84rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.photo-code {
  position: absolute;
  top: 28px;
  right: 17px;
  z-index: 4;
  padding: 8px 13px;
  color: var(--bone);
  background: var(--rust-dark);
  font-family: "Forge", Arial, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  transform: rotate(3deg);
}

.slash-divider {
  position: absolute;
  z-index: 6;
  right: -10%;
  bottom: 5%;
  width: 53%;
  height: 9px;
  background: linear-gradient(90deg, transparent, var(--rust) 18%, #fff 45%, var(--rust) 68%, transparent);
  box-shadow: 0 4px 0 rgba(23, 20, 17, 0.16);
  transform: rotate(-15deg);
}

.code-section {
  position: relative;
  isolation: isolate;
  min-height: 1050px;
  padding: 146px max(5vw, calc((100vw - 1700px) / 2));
  overflow: hidden;
  color: var(--bone);
  background:
    radial-gradient(circle at 73% 42%, rgba(136, 51, 24, 0.25), transparent 27%),
    linear-gradient(120deg, #171411, #0d0c0b 66%, #20160f);
}

.code-section::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0.12;
  background: repeating-linear-gradient(102deg, transparent 0 37px, rgba(235, 229, 217, 0.17) 38px 39px, transparent 40px 93px);
  transform: skewX(-9deg);
}

.code-backdrop {
  position: absolute;
  z-index: -2;
  top: -10%;
  right: -13%;
  width: 78%;
  height: 120%;
  opacity: 0.2;
  background: url("../assets/images/machete-world.png") 65% center / cover no-repeat;
  filter: grayscale(0.6) contrast(1.45) brightness(0.55);
  transform: skewX(-7deg);
  mask-image: linear-gradient(90deg, transparent, #000 25% 100%);
}

.code-heading {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.section-index--dark {
  position: static;
  display: block;
  margin-bottom: 24px;
  color: #e2653f;
}

.code-heading h2 {
  color: var(--bone);
}

.rules {
  position: relative;
  z-index: 3;
  display: grid;
  gap: 19px;
  width: min(100%, 1020px);
  margin: 70px 0 0 auto;
}

.rule {
  display: grid;
  grid-template-columns: 150px 1fr;
  align-items: center;
  min-height: 170px;
  padding: 24px 74px 24px 36px;
  color: var(--ink);
  background: var(--bone);
  border-left: 9px solid var(--rust);
  box-shadow: 15px 18px 0 rgba(0, 0, 0, 0.35);
  clip-path: polygon(0 0, 96% 0, 100% 50%, 96% 100%, 3% 100%);
  transition: transform 280ms cubic-bezier(0.2, 0.8, 0.2, 1), background 280ms ease;
}

.rule:hover {
  color: #fff;
  background: var(--rust);
  transform: translateX(-18px);
}

.rule--one {
  margin-right: 12%;
  transform: rotate(-0.8deg);
}

.rule--one:hover {
  transform: translateX(-18px) rotate(-0.8deg);
}

.rule--two {
  margin-left: 8%;
  margin-right: 4%;
  transform: rotate(0.6deg);
}

.rule--two:hover {
  transform: translateX(-18px) rotate(0.6deg);
}

.rule--three {
  margin-left: 16%;
  transform: rotate(-0.4deg);
}

.rule--three:hover {
  transform: translateX(-18px) rotate(-0.4deg);
}

.rule-number {
  color: var(--rust);
  font-family: "Forge", Arial, sans-serif;
  font-size: 3.7rem;
  letter-spacing: -0.08em;
  transition: color 280ms ease;
}

.rule:hover .rule-number {
  color: var(--ink);
}

.rule h3 {
  margin: 0 0 7px;
  font-family: "Forge", Arial, sans-serif;
  font-size: 1.75rem;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

.rule p {
  margin: 0;
  max-width: 560px;
  font-family: Georgia, serif;
  font-size: 1.05rem;
  line-height: 1.45;
}

.side-message {
  position: absolute;
  right: -145px;
  bottom: 140px;
  margin: 0;
  color: rgba(235, 229, 217, 0.18);
  font-family: "Forge", Arial, sans-serif;
  font-size: 1rem;
  letter-spacing: 0.35em;
  transform: rotate(-90deg);
}

.trail {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  min-height: 1080px;
  padding: 145px max(5vw, calc((100vw - 1700px) / 2)) 124px;
  overflow: hidden;
  color: var(--bone);
  background:
    radial-gradient(circle at 20% 56%, rgba(194, 59, 22, 0.27), transparent 29%),
    linear-gradient(120deg, #28150d, #11100e 52%, #0a0908);
}

.trail::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background: linear-gradient(163deg, transparent 0 49.6%, rgba(194, 59, 22, 0.45) 49.8% 50.2%, transparent 50.4%);
}

.trail-grid {
  position: absolute;
  z-index: -3;
  inset: 0;
  opacity: 0.1;
  background-image:
    linear-gradient(rgba(235, 229, 217, 0.25) 1px, transparent 1px),
    linear-gradient(90deg, rgba(235, 229, 217, 0.25) 1px, transparent 1px);
  background-size: 75px 75px;
  transform: perspective(600px) rotateX(52deg) scale(1.35) translateY(20%);
  transform-origin: center bottom;
}

.trail-character {
  position: relative;
  align-self: end;
  height: 780px;
}

.trail-character img {
  position: absolute;
  z-index: 2;
  left: -15%;
  bottom: -9%;
  width: min(63vw, 1030px);
  max-width: none;
  filter: drop-shadow(28px 26px 22px rgba(0, 0, 0, 0.45)) saturate(0.82) contrast(1.06);
  transform: rotate(-4deg);
  transition: transform 500ms cubic-bezier(0.2, 0.8, 0.2, 1), filter 500ms ease;
}

.trail-character:hover img {
  filter: drop-shadow(32px 30px 24px rgba(0, 0, 0, 0.52)) saturate(0.98) contrast(1.04);
  transform: rotate(-2deg) scale(1.015);
}

.sun-disc {
  position: absolute;
  z-index: 0;
  top: 4%;
  left: 14%;
  width: min(29vw, 470px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--rust);
  box-shadow: 0 0 80px rgba(194, 59, 22, 0.36);
}

.sun-disc::before,
.sun-disc::after {
  content: "";
  position: absolute;
  inset: 17%;
  border: 1px solid rgba(23, 20, 17, 0.42);
  border-radius: 50%;
}

.sun-disc::after {
  inset: 34%;
}

.trail-copy {
  position: relative;
  z-index: 4;
  align-self: center;
  max-width: 700px;
  padding-left: 20px;
}

.trail-copy .section-index {
  position: static;
  display: block;
  margin-bottom: 24px;
  color: #e46942;
}

.trail h2 {
  font-size: clamp(4.6rem, 6.6vw, 7.8rem);
}

.trail-copy > p {
  max-width: 590px;
  margin: 36px 0 0;
  color: rgba(235, 229, 217, 0.72);
  font-family: Georgia, serif;
  font-size: 1.24rem;
  line-height: 1.58;
}

.final-ca {
  width: min(100%, 650px);
  margin-top: 40px;
  padding: 17px 18px 18px;
  background: rgba(235, 229, 217, 0.07);
  border: 1px solid rgba(235, 229, 217, 0.26);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.final-ca > span {
  display: block;
  margin: 0 0 10px 3px;
  color: rgba(235, 229, 217, 0.52);
  font-family: "Forge", Arial, sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.final-ca > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  min-height: 52px;
  background: #0d0c0b;
}

.final-ca code {
  align-self: center;
  min-width: 0;
  padding: 0 16px;
  overflow: hidden;
  color: var(--bone);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.9rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.final-ca button {
  min-width: 124px;
  padding: 0 18px;
  color: #fff;
  background: var(--rust-dark);
  font-family: "Forge", Arial, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: none;
  transition: background 170ms ease;
}

.final-ca button:hover,
.final-ca button.is-copied {
  background: var(--rust);
}

.trail-actions {
  margin-top: 22px;
}

.trail footer {
  position: absolute;
  right: max(5vw, calc((100vw - 1700px) / 2));
  bottom: 38px;
  left: max(5vw, calc((100vw - 1700px) / 2));
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 34px;
  padding-top: 19px;
  color: rgba(235, 229, 217, 0.48);
  border-top: 1px solid rgba(235, 229, 217, 0.18);
  font-family: "Forge", Arial, sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.trail footer > span:first-child {
  color: var(--bone);
}

.trail footer i {
  color: var(--rust);
  font-style: normal;
}

.secret-key {
  width: 34px;
  height: 34px;
  color: rgba(235, 229, 217, 0.58);
  background: transparent;
  border: 1px solid rgba(235, 229, 217, 0.25);
  font-family: "Forge", Arial, sans-serif;
  cursor: none;
  transition: color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.secret-key:hover {
  color: #fff;
  border-color: var(--rust);
  transform: rotate(-7deg);
}

.toast {
  position: fixed;
  z-index: 2100;
  right: 28px;
  bottom: 28px;
  min-width: 190px;
  padding: 16px 22px;
  color: #fff;
  background: var(--rust-dark);
  border-left: 5px solid var(--bone);
  box-shadow: 9px 10px 0 rgba(0, 0, 0, 0.3);
  font-family: "Forge", Arial, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.11em;
  text-align: center;
  transform: translateY(150%);
  transition: transform 300ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

.toast.is-visible {
  transform: translateY(0) rotate(-1deg);
}

.slash-flash {
  position: fixed;
  z-index: 2050;
  top: 50%;
  left: -20%;
  width: 140%;
  height: 5px;
  opacity: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.94) 44%, #f06436 50%, rgba(255, 255, 255, 0.9) 56%, transparent);
  box-shadow: 0 0 24px rgba(235, 229, 217, 0.72);
  transform: rotate(-23deg) translateX(-100%);
}

.slash-flash.is-cutting {
  animation: pageCut 520ms ease-out;
}

.spark {
  position: fixed;
  z-index: 2200;
  width: 3px;
  height: 17px;
  pointer-events: none;
  background: linear-gradient(#fff, #f45b27, transparent);
  box-shadow: 0 0 8px #ff6a32;
  transform-origin: center top;
  animation: sparkFly 720ms ease-out var(--delay) forwards;
}

.reveal {
  opacity: 0;
  transform: translateY(38px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.rule.reveal {
  opacity: 0;
  transform: translateX(60px);
}

.rule.reveal.is-visible.rule--one {
  opacity: 1;
  transform: rotate(-0.8deg);
}

.rule.reveal.is-visible.rule--two {
  opacity: 1;
  transform: rotate(0.6deg);
  transition-delay: 90ms;
}

.rule.reveal.is-visible.rule--three {
  opacity: 1;
  transform: rotate(-0.4deg);
  transition-delay: 180ms;
}

@keyframes bladeFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(0.25deg); }
}

@keyframes bladeStrike {
  0% { transform: translateX(0) rotate(0); }
  30% { transform: translateX(-14px) rotate(-1deg); }
  58% { transform: translateX(9px) rotate(0.7deg); }
  100% { transform: translateX(0) rotate(0); }
}

@keyframes glint {
  0%, 75%, 100% { opacity: 0; transform: rotate(-35deg) translateX(-42%); }
  82% { opacity: 0.85; }
  93% { opacity: 0; transform: rotate(-35deg) translateX(66%); }
}

@keyframes dustDrift {
  0% { opacity: 0; transform: translate3d(0, 28px, 0) scale(0.5); }
  20% { opacity: 0.65; }
  75% { opacity: 0.32; }
  100% { opacity: 0; transform: translate3d(90px, -150px, 0) scale(1.6); }
}

@keyframes marqueeMove {
  to { transform: translateX(-50%); }
}

@keyframes pageCut {
  0% { opacity: 0; transform: rotate(-23deg) translateX(-100%); }
  32% { opacity: 1; }
  100% { opacity: 0; transform: rotate(-23deg) translateX(100%); }
}

@keyframes sparkFly {
  0% { opacity: 1; transform: rotate(var(--angle)) translateY(0) scaleY(1); }
  100% { opacity: 0; transform: rotate(var(--angle)) translateY(var(--distance)) scaleY(0.25); }
}

@media (max-width: 1500px) {
  :root { --header-height: 80px; }

  .site-header { padding-inline: 3vw; }
  .main-nav { gap: 28px; }
  .mini-link { min-width: 104px; padding-inline: 14px; }
  .hero-inner { width: 94vw; }
  .hero h1 { font-size: clamp(6rem, 9.5vw, 9rem); }
  .hero-character-wrap { right: 10vw; width: 63vw; }
  .field-note--top { right: 0; }
  .field-note--bottom { right: 0; }
  .origin, .code-section, .trail { padding-inline: 5vw; }
  .trail-character img { left: -24%; }
  .trail footer { right: 5vw; left: 5vw; }
}

@media (max-width: 1180px) {
  body { cursor: auto; }
  .cursor { display: none; }
  .main-nav { display: none; }
  .site-header { grid-template-columns: 1fr 1fr; }
  .header-actions { justify-self: end; }
  .hero-copy { width: 63vw; }
  .hero h1 { font-size: 7.4rem; }
  .hero-character-wrap { right: 2vw; width: 72vw; opacity: 0.95; }
  .field-note { display: none; }
  .origin { grid-template-columns: 0.9fr 1.1fr; gap: 35px; }
  .photo-frame { min-height: 560px; }
  .rule { grid-template-columns: 110px 1fr; }
  .trail { grid-template-columns: 0.9fr 1.1fr; }
  .trail-character img { left: -48%; width: 79vw; }
  .blade-button, .copy-button, .final-ca button, .character-hitbox, .secret-key { cursor: pointer; }
}

@media (max-width: 860px) {
  :root { --header-height: 72px; }
  .site-header { padding: 0 20px; }
  .brand { font-size: 1.55rem; }
  .mini-link { min-width: 48px; height: 40px; padding: 0 12px; }
  .mini-link span:not(.mini-icon):not(.arrow) { display: none; }
  .hero { height: auto; min-height: 920px; }
  .hero-inner { width: 100%; padding: 124px 24px 80px; }
  .hero-scrim { width: 100%; clip-path: none; background: linear-gradient(90deg, rgba(237, 232, 221, 0.98), rgba(237, 232, 221, 0.84)); }
  .hero-copy { width: 100%; }
  .hero h1 { font-size: clamp(4.5rem, 21vw, 7rem); }
  .ticker-lockup { font-size: 2.8rem; }
  .hero-character-wrap { right: -27%; top: 42%; width: 116vw; opacity: 0.45; }
  .character-hitbox { display: none; }
  .ca-plate { grid-template-columns: 52px 1fr; }
  .ca-plate .copy-button { grid-column: 1 / -1; min-height: 48px; }
  .hero-actions { position: relative; z-index: 9; }
  .origin { display: block; min-height: 0; padding: 132px 24px 110px; }
  .section-index { top: 70px; left: 24px; }
  .origin h2, .code-heading h2, .trail h2 { font-size: clamp(3.7rem, 15vw, 6rem); }
  .origin-photo { margin-top: 70px; }
  .photo-frame { height: 620px; min-height: 0; }
  .code-section { min-height: 0; padding: 110px 24px 120px; }
  .rules { margin-top: 55px; }
  .rule { grid-template-columns: 72px 1fr; min-height: 150px; margin: 0; padding: 22px 42px 22px 24px; }
  .rule-number { font-size: 2.5rem; }
  .rule h3 { font-size: 1.35rem; }
  .rule.reveal.is-visible { transform: none; }
  .trail { display: block; min-height: 1120px; padding: 108px 24px 120px; }
  .trail-copy { padding: 0; }
  .trail-character { position: absolute; right: 0; bottom: 60px; left: 0; height: 580px; opacity: 0.38; }
  .trail-character img { left: -24%; bottom: -14%; width: 115vw; }
  .sun-disc { left: 8%; width: 55vw; }
  .trail footer { right: 24px; bottom: 24px; left: 24px; grid-template-columns: 1fr auto; }
  .trail footer > span:nth-child(2) { display: none; }
}

@media (pointer: coarse) {
  body { cursor: auto; }
  .cursor { display: none; }
  .blade-button, .copy-button, .final-ca button, .character-hitbox, .secret-key { cursor: pointer; }
}

@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;
  }
  .cursor, .hero-dust, .slash-flash { display: none; }
  body { cursor: auto; }
  .reveal { opacity: 1; transform: none; }
}
