:root {
  --ink: #171411;
  --ink-2: #252019;
  --paper: #d9aa69;
  --paper-light: #f4ddba;
  --cream: #fff5e3;
  --orange: #d8782a;
  --red: #d8442e;
  --line: rgba(255, 245, 227, .22);
  --shell: min(1180px, calc(100vw - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font: 400 1rem/1.6 Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
.shell { width: var(--shell); margin-inline: auto; }
.skip { position: fixed; top: -80px; left: 16px; z-index: 100; background: var(--cream); color: var(--ink); padding: 12px 18px; }
.skip:focus { top: 16px; }

.topbar {
  position: fixed;
  z-index: 15;
  top: 0;
  left: 0;
  right: 0;
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 10px max(20px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(23, 20, 17, .86);
  backdrop-filter: blur(16px);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 .8rem/1 Arial, sans-serif; letter-spacing: .12em; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; color: var(--ink); background: var(--paper); font-size: 1.25rem; transform: rotate(-3deg); }
nav { margin-left: auto; display: flex; gap: 22px; }
nav a { color: var(--paper-light); text-decoration: none; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; }
nav a:hover, nav a:focus-visible { color: #fff; }
.mini-action { padding: 11px 15px; color: var(--ink); background: var(--orange); text-decoration: none; font-weight: 900; font-size: .78rem; letter-spacing: .08em; transform: rotate(1deg); }

.hero {
  min-height: 100svh;
  width: var(--shell);
  margin: 0 auto;
  padding: 120px 0 52px;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  grid-template-rows: 1fr auto;
  gap: 36px 54px;
  align-items: center;
}
.eyebrow { margin: 0 0 14px; color: var(--paper); font: 700 .76rem/1.4 "Courier New", monospace; letter-spacing: .13em; text-transform: uppercase; }
h1, h2, h3 { margin: 0; text-transform: uppercase; }
h1, h2 { font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif; font-weight: 900; letter-spacing: .018em; line-height: .86; }
h1 { max-width: 100%; font-size: clamp(3.4rem, 7vw, 6.4rem); letter-spacing: -.02em; }
h1 span { color: var(--orange); }
.hero-line { margin: 25px 0 28px; font: 700 clamp(1.05rem, 2vw, 1.45rem)/1.35 "Courier New", monospace; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 20px;
  border: 1px solid rgba(244, 221, 186, .55);
  text-decoration: none;
  font-weight: 900;
  font-size: .78rem;
  letter-spacing: .09em;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.action:hover, .action:focus-visible { transform: translateY(-3px) rotate(-1deg); background: var(--cream); color: var(--ink); }
.action.primary { border-color: var(--orange); background: var(--orange); color: var(--ink); }
.hero-copy, .hero-visual { min-width: 0; }
.hero-visual { width: 100%; max-width: 560px; margin: 0; justify-self: end; position: relative; }
.hero-visual::before { display: none; }
.hero-visual img { width: 100%; height: auto; object-fit: contain; border: 8px solid var(--paper-light); box-shadow: 14px 16px 0 #7b4b27; }
.hero-visual figcaption { margin-top: 19px; color: var(--paper-light); font: 700 .7rem/1 "Courier New", monospace; letter-spacing: .16em; text-align: right; }
.identity-strip { grid-column: 1 / -1; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.identity-strip div { padding: 18px 20px; border-right: 1px solid var(--line); }
.identity-strip div:last-child { border-right: 0; }
.identity-strip dt { color: var(--paper); font: 700 .68rem/1.2 "Courier New", monospace; text-transform: uppercase; letter-spacing: .12em; }
.identity-strip dd { margin: 5px 0 0; font-weight: 800; text-transform: uppercase; }

.signal { overflow: hidden; border-block: 1px solid rgba(23, 20, 17, .25); background: var(--paper); color: var(--ink); transform: rotate(-1deg) scale(1.02); }
.signal div { width: max-content; padding: 12px 0; font: 900 1rem/1 "Courier New", monospace; letter-spacing: .09em; animation: ticker 22s linear infinite; }
@keyframes ticker { to { transform: translateX(-40%); } }

.story { padding: 130px 0 80px; }
.section-head { margin-bottom: 64px; }
.section-head h2 { max-width: 100%; font-size: clamp(3.5rem, 7vw, 6.5rem); }
.chapter { display: grid; grid-template-columns: minmax(0, 1fr); gap: 34px; padding: 68px 0; border-top: 1px solid var(--line); }
.chapter.flip .chapter-copy, .chapter.flip .photo-pair { order: initial; }
.chapter-copy > span { color: var(--orange); font: 800 .75rem/1 "Courier New", monospace; letter-spacing: .14em; }
.chapter h3 { max-width: 100%; margin: 14px 0 24px; font: 900 clamp(2rem, 5vw, 4rem)/.95 Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif; overflow-wrap: anywhere; }
.chapter p { max-width: 52rem; color: #ddcfba; font-size: 1.05rem; }
.photo-pair { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.photo-pair a { display: block; min-width: 0; height: auto; align-self: start; padding: 6px; border: 1px solid rgba(244, 221, 186, .55); background: var(--ink-2); box-shadow: none; transform: none !important; transition: border-color .2s ease; }
.photo-pair a:hover, .photo-pair a:focus-visible { border-color: var(--orange); transform: none; }
.photo-pair img { display: block; width: 100%; max-width: 100%; height: auto !important; aspect-ratio: auto !important; object-fit: contain; background: transparent; }

.code-section { padding: 110px 0; background: var(--paper); color: var(--ink); }
.code-section .eyebrow { color: #6f3b1f; }
.code-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 70px; }
.rules { margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--ink); }
.rules li { display: grid; grid-template-columns: 68px 1fr; gap: 20px; padding: 28px 0; border-bottom: 2px solid var(--ink); }
.rules > li > span { font: 900 1.6rem/1 Impact, sans-serif; color: var(--red); }
.rules h3 { font-size: 1.25rem; }
.rules p { margin: 5px 0 0; color: #4e3625; }

.roadmap { padding: 120px 0; }
.road-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); }
.road { min-height: 260px; padding: 28px; border-right: 1px solid var(--line); background: linear-gradient(155deg, rgba(217, 170, 105, .09), transparent 55%); }
.road:last-child { border-right: 0; }
.road span { display: inline-grid; place-items: center; width: 42px; height: 42px; margin-bottom: 56px; border: 1px solid var(--paper); color: var(--paper); font: 800 .8rem/1 "Courier New", monospace; }
.road.done span { background: var(--orange); color: var(--ink); border-color: var(--orange); }
.road h3 { font: 900 1.65rem/1 Impact, sans-serif; letter-spacing: .04em; }
.road p { color: #c9baa4; font-size: .92rem; }

.chart-section { padding: 40px 0 120px; display: grid; grid-template-columns: .7fr 1.3fr; gap: 44px; align-items: stretch; }
.chart-copy { padding: 36px; border: 1px solid var(--line); background: var(--ink-2); }
.chart-copy h2 { font-size: clamp(3.8rem, 6vw, 6rem); color: var(--orange); }
.chart-copy > p:not(.eyebrow) { color: #c9baa4; }
.ca { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); }
.ca span { display: block; margin-bottom: 7px; color: var(--paper); font: 700 .68rem/1.2 "Courier New", monospace; letter-spacing: .1em; }
.ca code { display: block; max-width: 100%; overflow-wrap: anywhere; color: var(--cream); }
.chart-frame { min-height: 540px; border: 10px solid var(--paper); box-shadow: 14px 16px 0 #6e4227; background: #0d0d0d; }
.chart-frame iframe { width: 100%; height: 100%; min-height: 520px; border: 0; }

.final-cta { min-height: 0; padding: 70px 0 110px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 54px; align-items: center; }
.final-media { min-width: 0; padding: 7px; border: 1px solid rgba(244, 221, 186, .55); background: var(--ink-2); }
.final-media img { display: block; width: 100%; height: auto; object-fit: contain; }
.final-copy { min-width: 0; position: relative; z-index: 1; width: auto; }
.final-copy h2 { max-width: 100%; margin-bottom: 34px; font-size: clamp(3.3rem, 6.6vw, 6.4rem); overflow-wrap: anywhere; }
footer { min-height: 120px; display: flex; align-items: center; justify-content: space-between; gap: 24px; width: var(--shell); margin: auto; color: var(--paper-light); font-size: .76rem; letter-spacing: .08em; }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .75s ease, transform .75s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 1180px) {
  .topbar nav { display: none; }
  .mini-action { margin-left: auto; }
  .hero { grid-template-columns: 1fr; padding-top: 112px; }
  .hero-visual { width: min(640px, 94%); margin: 20px auto; justify-self: center; }
  .identity-strip { grid-template-columns: 1fr 1fr; }
  .identity-strip div:nth-child(2) { border-right: 0; }
  .identity-strip div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .code-grid, .chart-section, .final-cta { grid-template-columns: 1fr; }
  .road-grid { grid-template-columns: 1fr 1fr; }
  .road { border-bottom: 1px solid var(--line); }
  .road:nth-child(2) { border-right: 0; }
  .road:nth-child(n+3) { border-bottom: 0; }
}

@media (max-width: 580px) {
  :root { --shell: min(100% - 26px, 1180px); }
  .brand span:last-child { display: none; }
  .topbar { min-height: 64px; padding-inline: 13px; }
  .hero { padding-top: 92px; gap: 28px; }
  h1 { font-size: clamp(3.2rem, 16vw, 5rem); }
  .hero-actions { display: grid; }
  .action { width: 100%; }
  .identity-strip { font-size: .82rem; }
  .identity-strip div { padding: 14px 10px; }
  .story, .roadmap { padding-block: 84px; }
  .section-head { margin-bottom: 40px; }
  .section-head h2 { font-size: 3.9rem; }
  .chapter { padding: 48px 0 62px; gap: 32px; }
  .photo-pair { grid-template-columns: 1fr; gap: 16px; }
  .photo-pair a { padding: 4px; }
  .code-section { padding-block: 80px; }
  .road-grid { grid-template-columns: 1fr; }
  .road { min-height: auto; border-right: 0; border-bottom: 1px solid var(--line) !important; }
  .road:last-child { border-bottom: 0 !important; }
  .road span { margin-bottom: 34px; }
  .chart-copy { padding: 26px 20px; }
  .chart-frame, .chart-frame iframe { min-height: 460px; }
  .final-cta { padding-block: 70px; }
  .final-copy h2 { font-size: clamp(3rem, 15vw, 5rem); }
  footer { padding-block: 30px; flex-direction: column; align-items: flex-start; }
}

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