:root {
  --night: #080b12;
  --night-soft: #111827;
  --paper: #f1d89b;
  --paper-pale: #fff2c7;
  --ink: #090c12;
  --cyan: #39c6c8;
  --gold: #f8b72e;
  --signal: #ff5438;
  --mist: #bdcbc8;
  --line: rgba(241, 216, 155, 0.24);
  --shell: min(100% - 2rem, 82rem);
  --display: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; color: var(--paper-pale); background: var(--night); font-family: var(--sans); }
body::before { position: fixed; inset: 0; z-index: -1; content: ""; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(to bottom, #000, transparent 72%); }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }

.skip-link { position: fixed; top: .7rem; left: .7rem; z-index: 20; padding: .75rem 1rem; color: var(--ink); background: var(--paper-pale); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 4px; }

.site-header, main > section, .site-footer { width: var(--shell); margin-inline: auto; }
.site-header { min-height: 5.5rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; border-bottom: 1px solid var(--line); }
.wordmark { display: inline-flex; align-items: center; gap: .8rem; font-weight: 900; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
.wordmark-mark { width: 2.8rem; aspect-ratio: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; align-items: end; padding: 8px; border: 2px solid var(--gold); }
.wordmark-mark i { display: block; background: var(--gold); }
.wordmark-mark i:nth-child(1) { height: 45%; }
.wordmark-mark i:nth-child(2) { height: 85%; }
.wordmark-mark i:nth-child(3) { height: 65%; }
.site-header nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: clamp(.8rem, 3vw, 2rem); }
.site-header nav a { min-height: 44px; display: inline-flex; align-items: center; color: var(--mist); font-size: .73rem; font-weight: 900; letter-spacing: .12em; text-decoration: none; text-transform: uppercase; }
.site-header nav a:hover { color: var(--cyan); }

.hero { min-height: calc(100svh - 5.5rem); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(19rem, .75fr); gap: clamp(3rem, 7vw, 8rem); align-items: center; padding-block: clamp(4rem, 9vw, 8rem); }
.hero > * { min-width: 0; }
.eyebrow, .section-number, .security-card > p, .chain-label { margin: 0 0 1rem; color: var(--cyan); font-size: .75rem; font-weight: 950; letter-spacing: .18em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: var(--display); font-weight: 900; letter-spacing: -.035em; text-transform: uppercase; }
h1 { max-width: 12ch; margin-bottom: 2rem; font-size: clamp(4rem, 9.5vw, 8.8rem); line-height: .82; }
h1 em { color: var(--gold); font-style: normal; }
h2 { max-width: 13ch; margin-bottom: 1.8rem; font-size: clamp(3rem, 7vw, 6.5rem); line-height: .88; }
.hero-intro { max-width: 40rem; color: var(--mist); font-size: clamp(1.1rem, 2vw, 1.35rem); line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: .85rem 1.15rem; border: 2px solid var(--paper-pale); font-size: .78rem; font-weight: 950; letter-spacing: .1em; text-decoration: none; text-transform: uppercase; transition: transform 160ms ease, color 160ms ease, background 160ms ease; }
.button:hover { transform: translateY(-3px); }
.button-primary { border-color: var(--gold); color: var(--ink); background: var(--gold); }
.button-secondary { color: var(--paper-pale); background: transparent; }
.status-list { display: flex; flex-wrap: wrap; gap: .65rem; margin: 2rem 0 0; padding: 0; list-style: none; }
.status-list li { padding: .5rem .7rem; border: 1px solid var(--line); color: var(--mist); font-size: .7rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }

.hero-visual { position: relative; justify-self: end; width: min(100%, 27rem); padding: 1.2rem; }
.phone-shell { position: relative; max-height: 44rem; overflow: hidden; border: 8px solid #273040; border-radius: 3.3rem; background: #000; box-shadow: 0 2rem 6rem rgba(0,0,0,.52), 1rem 1rem 0 rgba(248,183,46,.09); }
.phone-shell::before { position: absolute; top: .65rem; left: 50%; z-index: 2; width: 35%; height: 1.5rem; border-radius: 99px; content: ""; background: #000; transform: translateX(-50%); }
.phone-shell img { width: 100%; }
.signal-tag { position: absolute; top: 5.5rem; left: -1.5rem; z-index: 3; padding: .7rem 1rem; color: var(--ink); background: var(--signal); font-size: .72rem; font-weight: 950; letter-spacing: .15em; transform: rotate(-3deg); }
.loot-stamp { position: absolute; right: -2rem; bottom: 8%; z-index: 3; width: 8.5rem; aspect-ratio: 1; display: grid; place-content: center; border: 4px double var(--gold); color: var(--gold); background: var(--night); text-align: center; transform: rotate(6deg); }
.loot-stamp span, .loot-stamp small { font-size: .62rem; font-weight: 950; letter-spacing: .12em; }
.loot-stamp strong { display: block; margin: .15rem 0; font-family: var(--display); font-size: 2.2rem; }

.section-shell { position: relative; padding-block: clamp(5rem, 10vw, 10rem); border-top: 1px solid var(--line); }
.section-number { position: absolute; top: 2rem; right: 0; color: var(--gold); }
.manifesto { display: grid; grid-template-columns: minmax(0, .8fr) minmax(22rem, 1.2fr); gap: clamp(3rem, 8vw, 8rem); }
.manifesto-copy > p:last-child, .section-heading > p, .run-intro > p:last-child, .prototype-copy > p { max-width: 43rem; color: var(--mist); font-size: 1.08rem; line-height: 1.65; }
.deck-pressure { align-self: center; display: grid; grid-template-columns: minmax(8rem, 1fr) minmax(8rem, 1fr); gap: 1rem; align-items: center; }
.mini-card { min-height: 14rem; display: flex; flex-direction: column; padding: 1.2rem; border: 2px solid var(--paper); color: var(--ink); background: var(--paper); box-shadow: .6rem .6rem 0 rgba(241,216,155,.14); transform: rotate(-2deg); }
.mini-card span, .mini-card small { font-size: .68rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.mini-card strong { margin: auto 0; font-family: var(--display); font-size: 2rem; text-transform: uppercase; }
.loot-card { border-color: var(--signal); background: var(--gold); transform: rotate(2deg); }
.deck-arrow { grid-column: 1 / -1; color: var(--signal); font-size: 3rem; text-align: center; transform: rotate(90deg); }
.strain-meter { grid-column: 1 / -1; padding: 1.2rem; border: 1px solid var(--line); background: var(--night-soft); }
.strain-meter > span, .strain-meter > strong { font-size: .72rem; font-weight: 950; letter-spacing: .12em; }
.strain-meter div { display: grid; grid-template-columns: repeat(5, 1fr); gap: .35rem; margin: .8rem 0; }
.strain-meter i { height: .8rem; background: var(--signal); }
.strain-meter i:nth-child(n+4) { background: #303849; }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 3rem; margin-bottom: 3rem; }
.section-heading > p { max-width: 28rem; }
.security-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
.security-card { position: relative; min-height: 29rem; display: flex; flex-direction: column; padding: clamp(1.3rem, 3vw, 2.2rem); border-right: 1px solid var(--line); overflow: hidden; }
.security-card:last-child { border-right: 0; }
.security-card::after { position: absolute; inset: auto -15% -38% 10%; height: 70%; content: ""; background: currentColor; opacity: .07; transform: skewY(-16deg); }
.security-card.access { color: var(--gold); }
.security-card.stealth { color: var(--cyan); }
.security-card.disruption { color: var(--signal); }
.security-card > * { position: relative; z-index: 1; }
.security-index { align-self: flex-end; font-family: var(--display); font-size: 2rem; }
.security-card > p { margin-top: auto; color: currentColor; }
.security-card h3 { margin-bottom: .8rem; color: var(--paper-pale); font-family: var(--display); font-size: clamp(2.2rem, 4vw, 3.6rem); line-height: .9; text-transform: uppercase; }
.security-card > span:not(.security-index) { min-height: 4rem; color: var(--mist); line-height: 1.45; }
.security-card > strong { margin-top: 1.3rem; font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; }
.pixel-camera, .pixel-guards, .pixel-shutter { position: relative; height: 10rem; margin: 2rem 0; }
.pixel-camera i, .pixel-camera b, .pixel-camera em { position: absolute; display: block; }
.pixel-camera i { top: 1rem; left: 20%; width: 55%; height: 1.3rem; background: var(--paper); }
.pixel-camera b { top: 2.3rem; left: 35%; width: .55rem; height: 1.7rem; background: var(--mist); }
.pixel-camera em { top: 4rem; left: 12%; width: 75%; height: 6rem; background: var(--signal); opacity: .15; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.pixel-guards { display: flex; justify-content: space-around; align-items: end; }
.pixel-guards i, .pixel-guards b, .pixel-guards em { width: 2rem; height: 5rem; display: block; background: var(--paper); box-shadow: inset 0 1.2rem var(--signal); }
.pixel-guards b { height: 7rem; background: var(--cyan); box-shadow: inset 0 1.2rem var(--paper-pale); opacity: .7; }
.pixel-shutter { display: grid; gap: .65rem; align-content: center; }
.pixel-shutter i { height: .8rem; background: var(--mist); }
.chain-callout { display: grid; grid-template-columns: auto auto 1fr; gap: 2rem; align-items: center; margin-top: 1rem; padding: 1.5rem; border: 1px solid var(--gold); color: var(--ink); background: var(--paper); }
.chain-label { margin: 0; color: var(--ink); }
.chain-icons { display: flex; gap: .35rem; }
.chain-icons i { width: 2.4rem; aspect-ratio: 1; display: grid; place-items: center; color: var(--ink); background: var(--gold); font-style: normal; }
.chain-callout p { margin: 0; font-weight: 700; line-height: 1.45; }

.run { display: grid; grid-template-columns: minmax(0, .8fr) minmax(24rem, 1.2fr); gap: clamp(3rem, 9vw, 9rem); }
.run-loop { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--paper); }
.run-loop li { display: grid; grid-template-columns: 3.3rem 1fr; gap: 1.2rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.run-loop li > span { color: var(--gold); font-family: var(--display); font-size: 1.7rem; }
.run-loop strong { display: block; margin-bottom: .45rem; font-family: var(--display); font-size: 1.7rem; letter-spacing: .02em; text-transform: uppercase; }
.run-loop small { color: var(--mist); font-size: .95rem; line-height: 1.5; }

.prototype { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem, 8vw, 8rem); }
.honesty-note { padding-left: 1rem; border-left: 4px solid var(--signal); }
.prototype-facts { display: grid; grid-template-columns: repeat(2, 1fr); margin: 0; border: 1px solid var(--line); }
.prototype-facts div { min-height: 13rem; display: flex; flex-direction: column; padding: 1.4rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.prototype-facts div:nth-child(even) { border-right: 0; }
.prototype-facts div:nth-child(n+3) { border-bottom: 0; }
.prototype-facts dt { color: var(--cyan); font-size: .7rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.prototype-facts .fact-value { margin: auto 0; color: var(--gold); font-family: var(--display); font-size: 4.5rem; }
.prototype-facts .fact-note { margin: 0; color: var(--mist); font-size: .8rem; line-height: 1.4; }

.closing { min-height: 42rem; display: grid; grid-template-columns: .55fr 1fr; gap: 4rem; align-items: center; }
.closing-mark { color: var(--gold); font-family: var(--display); font-size: clamp(14rem, 28vw, 26rem); line-height: .65; text-align: center; opacity: .18; }
.closing p:not(.eyebrow) { max-width: 38rem; color: var(--mist); font-size: 1.1rem; line-height: 1.6; }
.site-footer { min-height: 10rem; display: grid; grid-template-columns: 1fr auto auto; gap: 2rem; align-items: center; border-top: 1px solid var(--line); color: var(--mist); font-size: .78rem; }
.site-footer > div { display: flex; gap: 1rem; align-items: center; }
.site-footer p { margin: 0; }
.site-footer a { min-height: 44px; display: inline-flex; align-items: center; font-weight: 900; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }

.js .reveal { opacity: 0; transform: translateY(1.5rem); }
.js .reveal.is-visible { opacity: 1; transform: none; transition: opacity 600ms ease, transform 600ms cubic-bezier(.2,.7,.2,1); }

@media (max-width: 880px) {
  .hero, .manifesto, .run, .prototype, .closing { grid-template-columns: 1fr; }
  .hero { padding-top: 4rem; }
  .hero-visual { justify-self: center; }
  .phone-shell { max-height: none; }
  .security-grid { grid-template-columns: 1fr; }
  .security-card { min-height: 24rem; border-right: 0; border-bottom: 1px solid var(--line); }
  .security-card:last-child { border-bottom: 0; }
  .chain-callout { grid-template-columns: 1fr; gap: 1rem; }
  .closing-mark { text-align: left; }
  .site-footer { grid-template-columns: 1fr; padding-block: 2rem; }
}

@media (max-width: 600px) {
  :root { --shell: min(100% - 1.25rem, 82rem); }
  .site-header { align-items: flex-start; padding-block: .8rem; }
  .site-header nav { max-width: 12rem; gap: .15rem .8rem; }
  .site-header nav a { min-height: 34px; font-size: .64rem; }
  h1 { font-size: clamp(3rem, 16vw, 5.6rem); }
  h2 { font-size: clamp(2.8rem, 15vw, 4.5rem); }
  .hero-visual { padding: .5rem; }
  .signal-tag { left: -.25rem; }
  .loot-stamp { right: 0; width: 7.5rem; }
  .section-heading { display: block; }
  .deck-pressure { grid-template-columns: 1fr; }
  .deck-arrow, .strain-meter { grid-column: auto; }
  .mini-card { min-height: 11rem; }
  .prototype-facts { grid-template-columns: 1fr; }
  .prototype-facts div, .prototype-facts div:nth-child(even), .prototype-facts div:nth-child(n+3) { border-right: 0; border-bottom: 1px solid var(--line); }
  .prototype-facts div:last-child { border-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
