:root {
  --black: #030303;
  --ink: #080808;
  --bone: #d8d3c9;
  --ash: #8e8b84;
  --line: rgba(216, 211, 201, .22);
  --blood: #8e1717;
  --display: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  --mono: "Courier New", Consolas, monospace;
  --pointer-x: 50vw;
  --pointer-y: 50vh;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--black); }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--bone);
  background: var(--black);
  font-family: var(--mono);
}
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.grain {
  position: fixed;
  inset: -50%;
  z-index: 20;
  pointer-events: none;
  opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
  animation: grain .18s steps(2) infinite;
}
@keyframes grain { 0% { transform: translate(0,0); } 25% { transform: translate(2%,-3%); } 50% { transform: translate(-3%,2%); } 75% { transform: translate(3%,3%); } }

.cursor-light {
  position: fixed;
  inset: 0;
  z-index: 12;
  pointer-events: none;
  background: radial-gradient(300px circle at var(--pointer-x) var(--pointer-y), rgba(255,255,255,.045), transparent 70%);
}

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px clamp(20px, 4vw, 64px);
  border-bottom: 1px solid rgba(255,255,255,.12);
  font-size: .78rem;
  letter-spacing: .12em;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 500; }
.brand-mark {
  display: grid;
  width: 32px;
  aspect-ratio: 1;
  place-items: center;
  color: var(--black);
  background: var(--bone);
  font: 900 1.35rem/1 var(--display);
  clip-path: polygon(11% 5%, 88% 0, 100% 82%, 76% 100%, 4% 91%, 0 21%);
}
nav { display: flex; gap: clamp(18px, 3vw, 42px); }
nav a { text-decoration: none; color: #aaa69e; transition: color .2s; }
nav a:hover, nav a:focus-visible { color: #fff; }

.hero {
  position: relative;
  min-height: 100svh;
  isolation: isolate;
  display: grid;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-image-wrap { position: absolute; inset: 0; z-index: -2; }
.hero-image { width: 100%; height: 100%; object-fit: cover; object-position: 63% center; filter: contrast(1.08) brightness(.66); transform: scale(1.035); transition: transform .12s linear; }
.hero-vignette { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.98) 2%, rgba(0,0,0,.84) 30%, rgba(0,0,0,.22) 67%, rgba(0,0,0,.7) 100%), linear-gradient(0deg, #030303 0%, transparent 28%); }
.hero-copy { width: min(720px, 90vw); margin-left: clamp(20px, 7vw, 110px); padding: 130px 0 110px; }
.eyebrow { margin: 0 0 22px; color: var(--ash); font-size: .75rem; letter-spacing: .24em; }
h1, h2 { margin: 0; font-family: var(--display); font-weight: 900; text-transform: uppercase; }
h1 { position: relative; width: max-content; max-width: 100%; font-size: clamp(5rem, 12vw, 11rem); line-height: .74; letter-spacing: -.045em; text-shadow: 7px 0 0 rgba(142,23,23,.34); }
h1::after { content: attr(data-text); position: absolute; inset: 0; z-index: -1; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.32); transform: translate(7px, 7px); }
.ticker { margin: 25px 0 0; font: italic 700 clamp(1.8rem, 4vw, 3.4rem)/1 var(--display); letter-spacing: .18em; }
.ticker span { color: var(--blood); }
.hero-line { margin: 32px 0 36px; color: #aaa69e; font-size: clamp(.9rem, 1.2vw, 1.08rem); line-height: 1.7; text-transform: uppercase; letter-spacing: .06em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.stone-button {
  position: relative;
  display: inline-flex;
  min-width: 170px;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 15px 24px;
  overflow: hidden;
  border: 1px solid rgba(216,211,201,.5);
  color: var(--bone);
  background: linear-gradient(145deg, #181818, #080808);
  clip-path: polygon(2% 8%, 96% 0, 100% 83%, 92% 100%, 4% 94%, 0 22%);
  font: 700 1rem/1 var(--display);
  letter-spacing: .13em;
  text-decoration: none;
  transition: color .2s, transform .2s, background .2s;
}
.stone-button::before { content: ""; position: absolute; inset: 46% -10%; height: 1px; background: rgba(255,255,255,.24); transform: rotate(-4deg); }
.stone-button:hover, .stone-button:focus-visible { color: #fff; transform: translateY(-3px) rotate(-.4deg); background: #201f1d; outline: none; }
.stone-button--light { color: #090909; background: linear-gradient(145deg, #efebe2, #aaa69e); border-color: #fff; }
.stone-button--light:hover, .stone-button--light:focus-visible { color: #050505; background: #fff; }
.scroll-cue { position: absolute; right: clamp(20px, 4vw, 64px); bottom: 36px; display: flex; align-items: center; gap: 12px; color: #85817a; font-size: .68rem; letter-spacing: .18em; text-decoration: none; }
.scroll-cue span { display: block; width: 42px; height: 1px; background: #85817a; }

.origin, .code-section { position: relative; padding: clamp(90px, 13vw, 190px) clamp(20px, 7vw, 110px); border-bottom: 1px solid var(--line); }
.section-number { position: absolute; top: 34px; right: clamp(20px, 4vw, 64px); color: rgba(216,211,201,.18); font: 900 clamp(4rem, 10vw, 9rem)/1 var(--display); }
.origin h2, .code-panel h2, .finale h2 { font-size: clamp(3.8rem, 8.6vw, 8rem); line-height: .85; letter-spacing: -.025em; }
.origin-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(40px, 10vw, 170px); max-width: 1120px; margin: 70px 0 0 auto; align-items: end; }
.origin-grid > p { max-width: 500px; color: #aaa69e; font-size: 1rem; line-height: 1.8; }
blockquote { margin: 0; padding: 30px 0 12px 34px; border-left: 1px solid var(--blood); font: italic 700 clamp(2rem, 4vw, 4rem)/1 var(--display); text-transform: uppercase; }

.code-section { min-height: 70vh; display: grid; place-items: center; background: radial-gradient(circle at center, #171717 0, #050505 56%); }
.code-panel { width: min(980px, 100%); text-align: center; }
.ca-box {
  width: 100%;
  margin-top: 48px;
  padding: 24px clamp(18px, 4vw, 44px);
  border: 1px solid rgba(216,211,201,.42);
  color: var(--bone);
  background: rgba(0,0,0,.56);
  cursor: pointer;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  text-align: left;
  clip-path: polygon(.6% 6%, 99% 0, 100% 88%, 98.2% 100%, .8% 95%, 0 14%);
}
.ca-value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 clamp(.82rem, 1.45vw, 1.05rem)/1.4 var(--mono); }
.copy-state { color: var(--ash); font: 700 .82rem/1 var(--display); letter-spacing: .13em; }
.ca-box:hover, .ca-box:focus-visible, .ca-box.is-copied { border-color: var(--bone); background: rgba(216,211,201,.08); outline: none; }
.ca-box.is-copied .copy-state { color: #fff; }
.microcopy { margin-top: 20px; color: #6f6c66; font-size: .7rem; letter-spacing: .07em; text-transform: uppercase; }

.finale { min-height: 90vh; position: relative; display: grid; grid-template-columns: 1.15fr .85fr; overflow: hidden; background: #000; }
.finale::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, transparent 35%, #000 62%); }
.finale img { width: 100%; height: 100%; min-height: 90vh; object-fit: cover; object-position: center; filter: contrast(1.1); }
.finale-copy { position: relative; z-index: 2; align-self: center; padding: 60px clamp(20px, 6vw, 90px) 60px 0; }
.finale-copy .stone-button { margin-top: 46px; }
footer { display: flex; justify-content: space-between; gap: 24px; padding: 28px clamp(20px, 4vw, 64px); color: #6f6c66; background: #000; font-size: .67rem; letter-spacing: .12em; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 800px) {
  nav { display: none; }
  .hero { min-height: 820px; align-items: end; }
  .hero-image { object-position: 59% center; }
  .hero-vignette { background: linear-gradient(0deg, #030303 4%, rgba(0,0,0,.38) 54%, rgba(0,0,0,.36) 100%), linear-gradient(90deg, rgba(0,0,0,.65), transparent 70%); }
  .hero-copy { margin-left: 20px; padding-bottom: 110px; }
  h1 { font-size: clamp(3.2rem, 17vw, 5.6rem); }
  .origin-grid, .finale { grid-template-columns: 1fr; }
  .origin-grid { margin-top: 48px; }
  .finale { min-height: 760px; }
  .finale::after { background: linear-gradient(0deg, #000 17%, transparent 72%); }
  .finale img { min-height: 760px; object-position: center top; opacity: .8; }
  .finale-copy { position: absolute; inset: auto 20px 65px; padding: 0; }
  .ca-box { grid-template-columns: 1fr; gap: 12px; }
  footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grain { animation: none; }
  .reveal { opacity: 1; transform: none; }
}
