:root {
  --ink: #17130e;
  --ink-soft: #282016;
  --sand-deep: #b95f25;
  --sand: #e39135;
  --sand-light: #f5c56e;
  --cream: #fff0c9;
  --paper: #f7e3b5;
  --blue: #3fb2d2;
  --blue-dark: #087995;
  --signal: #f44e2f;
  --line: rgba(23, 19, 14, .25);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--cream);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, a { color: inherit; font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }
::selection { background: var(--blue); color: var(--ink); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }

.site-shell { min-height: 100vh; overflow: hidden; }
.section-pad { padding: clamp(90px, 10vw, 170px) clamp(20px, 6vw, 110px); }
.kicker { margin: 0 0 18px; font: 800 11px/1.1 "Courier New", monospace; letter-spacing: .18em; text-transform: uppercase; }

/* HERO / CUSTOM CSS DUNE SYSTEM */
.hero {
  --mx: 0;
  --my: 0;
  position: relative;
  min-height: max(760px, 100svh);
  isolation: isolate;
  overflow: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 69% 24%, rgba(255, 231, 158, .9) 0 8%, transparent 8.4%),
    linear-gradient(180deg, #59b9da 0%, #a8dde1 41%, #efb357 41.5%, #cb6c29 100%);
}
.hero::after,
.field-notes::after,
.signal-console::after,
.join-section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: url("assets/grain.png") repeat;
  opacity: .22;
  mix-blend-mode: soft-light;
}
.sun {
  position: absolute;
  width: min(28vw, 440px);
  aspect-ratio: 1;
  border-radius: 50%;
  right: 16vw;
  top: 4vh;
  z-index: -3;
  background: #ffe09b;
  box-shadow: 0 0 90px rgba(255, 225, 153, .62);
  transform: translate(calc(var(--mx) * -8px), calc(var(--my) * -4px));
}
.dune { position: absolute; left: -12%; width: 124%; border-radius: 48% 58% 0 0; z-index: -2; transform-origin: 50% 100%; }
.dune-far { height: 31%; bottom: 28%; opacity: .68; background: #df903a; transform: rotate(-1.8deg) translateX(calc(var(--mx) * -4px)); box-shadow: inset 0 18px 35px #f1bd62; }
.dune-back { height: 41%; bottom: 6%; background: #df8a35; transform: rotate(2.3deg) translateX(calc(var(--mx) * -8px)); box-shadow: inset 0 24px 50px #efb35b; }
.dune-front { height: 31%; bottom: -14%; background: #b75d27; transform: rotate(-2deg) translateX(calc(var(--mx) * -13px)); box-shadow: inset 0 24px 65px #d87c30; }

.topbar {
  position: relative;
  z-index: 8;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 22px clamp(20px, 4vw, 72px);
  border-bottom: 1px solid rgba(23, 19, 14, .2);
}
.brand { display: inline-flex; width: max-content; gap: 12px; align-items: center; color: var(--ink); text-decoration: none; font-size: 13px; font-weight: 950; letter-spacing: .1em; }
.brand-mark { display: grid; width: 38px; aspect-ratio: 1; place-items: center; border: 2px solid currentColor; border-radius: 50%; font: 900 11px/1 "Courier New", monospace; }
.nav-links { display: flex; align-items: center; gap: clamp(18px, 3vw, 42px); }
.nav-links a { color: var(--ink); text-decoration: none; font: 800 10px/1 "Courier New", monospace; letter-spacing: .12em; }
.nav-links a::after { content: ""; display: block; width: 0; height: 2px; margin-top: 5px; background: currentColor; transition: width .2s ease; }
.nav-links a:hover::after { width: 100%; }
.status { justify-self: end; padding: 9px 13px; border: 1px solid rgba(23, 19, 14, .42); border-radius: 999px; color: var(--ink); font: 700 10px/1 "Courier New", monospace; letter-spacing: .08em; }
.status i { display: inline-block; width: 7px; height: 7px; margin-right: 7px; background: var(--signal); border-radius: 50%; box-shadow: 0 0 0 5px rgba(244, 78, 47, .15); animation: signalPulse 1.8s infinite; }

.hero-copy { position: relative; z-index: 4; width: min(660px, 49vw); margin: clamp(80px, 13vh, 150px) 0 0 clamp(20px, 5vw, 86px); }
.eyebrow { display: inline-block; margin: 0 0 17px; padding: 8px 11px; border: 1px solid var(--ink); border-radius: 2px; font: 800 10px/1 "Courier New", monospace; letter-spacing: .16em; }
h1, h2, h3, p { text-wrap: balance; }
h1 { margin: 0; font-size: clamp(62px, 7.3vw, 126px); line-height: .78; letter-spacing: -.075em; font-weight: 950; text-transform: uppercase; }
h1 em { display: inline-block; color: var(--cream); font-style: normal; text-shadow: 3px 3px 0 var(--ink); transform: rotate(-1deg); }
.hero-lede { width: min(540px, 94%); margin: 30px 0 0; font-size: clamp(15px, 1.2vw, 19px); line-height: 1.55; font-weight: 650; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; gap: 14px; padding: 0 20px; border: 2px solid var(--ink); border-radius: 2px; text-decoration: none; font-size: 12px; font-weight: 950; letter-spacing: .07em; box-shadow: 5px 5px 0 var(--ink); transition: transform .18s, box-shadow .18s, background .18s; }
.button:hover { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--ink); }
.button-primary { color: var(--cream); background: var(--ink); box-shadow: 5px 5px 0 rgba(255, 240, 201, .68); }
.button-ghost { background: rgba(255, 240, 201, .16); backdrop-filter: blur(8px); }
.button b { font-size: 16px; }

.hero-character {
  position: absolute;
  z-index: 3;
  right: -5vw;
  bottom: 3.5vh;
  width: min(69vw, 1120px);
  pointer-events: none;
  filter: drop-shadow(0 30px 18px rgba(61, 28, 7, .3));
  transform: translate(calc(var(--mx) * 12px), calc(var(--my) * 7px));
  animation: boatDrift 7s ease-in-out infinite;
}
.hero-character img { display: block; width: 100%; height: auto; }
.social-rail { position: absolute; z-index: 7; right: 25px; top: 50%; display: flex; flex-direction: column; gap: 8px; transform: translateY(-50%); }
.social-rail a { display: grid; width: 42px; aspect-ratio: 1; place-items: center; border: 2px solid var(--ink); border-radius: 50%; color: var(--ink); text-decoration: none; font: 950 11px/1 Arial; background: rgba(255, 240, 201, .14); transition: background .2s, color .2s, transform .2s; }
.social-rail a:hover { color: var(--cream); background: var(--ink); transform: rotate(-8deg); }
.ticker { position: absolute; z-index: 9; left: 0; right: 0; bottom: 0; overflow: hidden; padding: 13px 0; color: var(--cream); background: var(--ink); font: 900 11px/1 "Courier New", monospace; letter-spacing: .17em; }
.ticker-track { display: flex; width: max-content; gap: 55px; animation: tickerMove 24s linear infinite; }
.ticker span::before { content: "✦"; margin-right: 55px; color: var(--sand-light); }

/* CA BAR */
.contract-band { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 22px; min-height: 82px; padding: 16px clamp(20px, 6vw, 110px); color: var(--ink); background: var(--blue); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.contract-label { font: 900 10px/1 "Courier New", monospace; letter-spacing: .15em; }
.contract-band code { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: 700 13px/1.2 "Courier New", monospace; }
.contract-band button { min-height: 40px; padding: 0 16px; color: var(--cream); background: var(--ink); border: 2px solid var(--ink); border-radius: 2px; font: 900 11px/1 "Courier New", monospace; letter-spacing: .08em; transition: transform .18s; }
.contract-band button:hover { transform: rotate(-2deg) scale(1.03); }

/* FIELD NOTES */
.field-notes { position: relative; isolation: isolate; color: var(--ink); background: var(--paper); }
.field-notes::after { opacity: .17; }
.section-heading { display: grid; grid-template-columns: 1.25fr .75fr; gap: 10vw; align-items: end; }
.section-heading .kicker { grid-column: 1 / -1; }
.section-heading h2, .signal-console h2, .manifesto h2, .join-section h2 { margin: 0; font-size: clamp(52px, 7vw, 116px); line-height: .82; letter-spacing: -.07em; font-weight: 950; text-transform: uppercase; }
.section-intro { max-width: 480px; margin: 0; font-size: clamp(16px, 1.3vw, 20px); line-height: 1.55; }
.notes-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; margin-top: clamp(70px, 8vw, 120px); }
.note-card { position: relative; min-height: 330px; padding: 28px; overflow: hidden; border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); }
.note-one { grid-column: 1 / 5; background: var(--sand-light); transform: rotate(-1.5deg); }
.note-two { grid-column: 5 / 9; background: var(--blue); transform: translateY(38px) rotate(1deg); }
.note-three { grid-column: 9 / 13; color: var(--cream); background: var(--ink); transform: rotate(-.5deg); }
.note-number { font: 800 10px/1 "Courier New", monospace; letter-spacing: .15em; }
.note-card h3 { position: relative; z-index: 1; margin: 90px 0 14px; font-size: clamp(28px, 3vw, 46px); line-height: .9; letter-spacing: -.05em; }
.note-card p { position: relative; z-index: 1; max-width: 290px; margin: 0; line-height: 1.5; font-weight: 650; }
.card-line { position: absolute; width: 210px; aspect-ratio: 1; right: -72px; bottom: -80px; border: 2px solid currentColor; border-radius: 50%; opacity: .35; }
.card-line::before, .card-line::after { content: ""; position: absolute; inset: 22px; border: 2px solid currentColor; border-radius: inherit; }
.card-line::after { inset: 48px; }

/* INTERACTIVE SIGNAL */
.signal-section { display: grid; grid-template-columns: minmax(360px, .88fr) minmax(520px, 1.12fr); min-height: 850px; background: var(--ink); }
.signal-photo { position: relative; min-height: 760px; overflow: hidden; border-right: 2px solid var(--cream); }
.signal-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(23, 19, 14, .62)); pointer-events: none; }
.signal-photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.9) contrast(1.06); }
.photo-stamp { position: absolute; z-index: 2; right: 28px; top: 28px; display: grid; width: 126px; aspect-ratio: 1; place-items: center; border: 3px double var(--cream); border-radius: 50%; color: var(--cream); text-align: center; font: 900 12px/1.15 "Courier New", monospace; transform: rotate(8deg); text-shadow: 1px 1px 0 var(--ink); }
.photo-index { position: absolute; z-index: 2; left: 28px; bottom: 28px; font: 800 10px/1 "Courier New", monospace; letter-spacing: .13em; }
.signal-console { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: center; padding: clamp(70px, 8vw, 140px); background: var(--ink); }
.signal-console::after { opacity: .14; }
.console-topline { position: absolute; left: 0; right: 0; top: 0; display: flex; justify-content: space-between; padding: 20px 25px; border-bottom: 1px solid rgba(255, 240, 201, .2); font: 800 9px/1 "Courier New", monospace; letter-spacing: .14em; }
.blink { color: var(--signal); animation: signalBlink 1.1s step-end infinite; }
.signal-console .kicker { color: var(--blue); }
.signal-console h2 { color: var(--cream); }
.console-copy { max-width: 580px; margin: 25px 0 42px; color: rgba(255, 240, 201, .72); font-size: 17px; line-height: 1.55; }
.cast-zone { display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 24px; padding: 18px; border: 1px solid rgba(255, 240, 201, .22); background: rgba(255,255,255,.025); }
.cast-radar { position: relative; display: grid; width: 136px; aspect-ratio: 1; place-items: center; overflow: hidden; border: 1px solid rgba(63,178,210,.55); border-radius: 50%; background: radial-gradient(circle, rgba(63,178,210,.14), transparent 65%); }
.cast-radar::after { content: ""; position: absolute; width: 52%; height: 1px; left: 50%; top: 50%; background: var(--blue); transform-origin: left center; animation: radarSpin 4s linear infinite; }
.radar-ring { position: absolute; border: 1px solid rgba(63,178,210,.35); border-radius: 50%; }
.ring-one { inset: 22px; }
.ring-two { inset: 44px; }
.radar-hook { position: relative; z-index: 2; color: var(--blue); font: 900 34px/1 Arial; transform: rotate(14deg); }
.cast-button { display: flex; min-height: 108px; flex-direction: column; align-items: flex-start; justify-content: center; padding: 18px 25px; color: var(--ink); background: var(--sand-light); border: 0; clip-path: polygon(0 0, 96% 0, 100% 18%, 100% 100%, 4% 100%, 0 82%); transition: background .2s, transform .2s; }
.cast-button:hover:not(:disabled) { background: var(--blue); transform: translateX(5px); }
.cast-button:disabled { cursor: wait; }
.cast-button span { font-size: clamp(28px, 3vw, 48px); line-height: .9; letter-spacing: -.04em; font-weight: 950; }
.cast-button small { margin-top: 10px; font: 800 9px/1 "Courier New", monospace; letter-spacing: .13em; }
.is-casting .cast-radar { animation: radarLock .5s ease-in-out infinite alternate; }
.is-casting .radar-hook { animation: hookDrop .45s ease-in-out infinite alternate; }
.catch-readout { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 25px; min-height: 142px; margin-top: 16px; padding: 24px; border: 1px solid rgba(255, 240, 201, .22); }
.readout-label { display: block; margin-bottom: 9px; color: var(--blue); font: 800 9px/1 "Courier New", monospace; letter-spacing: .13em; }
.catch-readout strong { display: block; font-size: clamp(19px, 2.3vw, 34px); line-height: 1; text-transform: uppercase; }
.catch-readout p { margin: 8px 0 0; color: rgba(255, 240, 201, .65); font-size: 13px; }
.cast-count { display: flex; min-width: 78px; flex-direction: column; font: 950 44px/1 Arial; color: var(--sand-light); text-align: right; }
.cast-count small { margin-top: 6px; font: 800 8px/1 "Courier New", monospace; letter-spacing: .12em; }

/* NON-ROADMAP */
.manifesto { position: relative; display: grid; grid-template-columns: .42fr .9fr 1fr; gap: 7vw; align-items: start; color: var(--ink); background: var(--sand-light); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.manifesto-mark { display: grid; width: min(21vw, 260px); aspect-ratio: 1; place-items: center; border: 3px solid var(--ink); border-radius: 50%; font-size: clamp(70px, 10vw, 150px); font-weight: 950; letter-spacing: -.09em; transform: rotate(-9deg); }
.manifesto-copy h2 { font-size: clamp(45px, 5.3vw, 84px); }
.manifesto-copy > p:last-child { max-width: 580px; margin: 28px 0 0; font-size: 18px; line-height: 1.55; font-weight: 650; }
.non-roadmap { border-top: 2px solid var(--ink); }
.non-roadmap > div { display: grid; grid-template-columns: 42px .65fr 1fr; align-items: center; gap: 15px; min-height: 88px; border-bottom: 2px solid var(--ink); }
.non-roadmap b { font: 800 10px/1 "Courier New", monospace; }
.non-roadmap span { font-size: clamp(24px, 2.5vw, 40px); font-weight: 950; letter-spacing: -.04em; }
.non-roadmap small { line-height: 1.35; }

.banner-break { position: relative; height: min(32vw, 560px); min-height: 250px; overflow: hidden; background: var(--sand-deep); }
.banner-break::after { content: ""; position: absolute; inset: 0; border: 14px solid var(--ink); pointer-events: none; }
.banner-break img { width: 100%; height: 100%; object-fit: cover; }

/* FINAL CTA */
.join-section { position: relative; isolation: isolate; display: grid; grid-template-columns: 1fr .8fr; gap: 9vw; align-items: center; min-height: 780px; padding: clamp(90px, 10vw, 170px) clamp(20px, 6vw, 110px); color: var(--ink); background: var(--blue); }
.join-section::after { opacity: .18; }
.join-copy h2 { font-size: clamp(64px, 8vw, 132px); }
.join-copy > p:last-child { max-width: 560px; margin: 30px 0 0; font-size: 18px; line-height: 1.55; font-weight: 650; }
.join-actions { border-top: 2px solid var(--ink); }
.join-link { display: grid; width: 100%; grid-template-columns: 88px 1fr; gap: 20px; align-items: center; min-height: 92px; padding: 0 12px; color: var(--ink); text-align: left; text-decoration: none; background: transparent; border: 0; border-bottom: 2px solid var(--ink); transition: padding .2s, background .2s, color .2s; }
.join-link:hover { padding-left: 28px; color: var(--cream); background: var(--ink); }
.join-link span { font: 800 9px/1 "Courier New", monospace; letter-spacing: .13em; }
.join-link b { font-size: clamp(22px, 2.5vw, 38px); letter-spacing: -.04em; }
.join-link.buy-link { color: var(--cream); background: var(--ink); }
.join-link.buy-link:hover { color: var(--ink); background: var(--sand-light); }

footer { display: grid; grid-template-columns: 1fr 1.3fr 1fr; align-items: center; gap: 25px; min-height: 130px; padding: 30px clamp(20px, 6vw, 110px); background: var(--ink); }
.footer-brand { color: var(--cream); }
footer p { margin: 0; color: rgba(255, 240, 201, .55); font: 700 9px/1.5 "Courier New", monospace; letter-spacing: .07em; text-align: center; }
footer > a:last-child { justify-self: end; font: 800 9px/1 "Courier New", monospace; letter-spacing: .1em; text-decoration: none; }

@keyframes tickerMove { to { transform: translateX(-50%); } }
@keyframes signalPulse { 50% { box-shadow: 0 0 0 9px rgba(244, 78, 47, 0); } }
@keyframes signalBlink { 50% { opacity: .25; } }
@keyframes radarSpin { to { transform: rotate(360deg); } }
@keyframes radarLock { to { box-shadow: 0 0 28px rgba(63,178,210,.4); } }
@keyframes hookDrop { to { transform: rotate(14deg) translateY(18px); } }
@keyframes boatDrift {
  0%, 100% { margin-bottom: 0; }
  50% { margin-bottom: 8px; }
}

@media (max-width: 1050px) {
  .hero-copy { width: 58vw; }
  .hero-character { right: -16vw; width: 78vw; opacity: .94; }
  .signal-section { grid-template-columns: .8fr 1.2fr; }
  .signal-console { padding: 80px 6vw; }
  .cast-zone { grid-template-columns: 110px 1fr; }
  .cast-radar { width: 104px; }
  .manifesto { grid-template-columns: .35fr 1fr; }
  .manifesto-mark { width: 180px; }
  .non-roadmap { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .section-pad { padding: 90px 20px; }
  .hero { min-height: 900px; background-position: center; }
  .topbar { grid-template-columns: 1fr auto; padding: 17px 18px; }
  .nav-links, .status { display: none; }
  .hero-copy { width: auto; margin: 78px 18px 0; }
  h1 { font-size: clamp(57px, 17vw, 83px); }
  .hero-lede { width: 88%; margin-top: 23px; font-size: 14px; }
  .button { min-height: 46px; padding: 0 14px; font-size: 10px; }
  .hero-character { right: -42vw; bottom: 66px; width: 142vw; opacity: .9; }
  .social-rail { right: 16px; top: auto; bottom: 70px; }
  .ticker { padding: 12px 0; }
  .contract-band { grid-template-columns: 1fr auto; gap: 8px; min-height: 92px; padding: 14px 18px; }
  .contract-label { grid-column: 1 / -1; }
  .contract-band code { font-size: 10px; }
  .contract-band button { min-height: 36px; }
  .section-heading { display: block; }
  .section-heading h2, .signal-console h2, .manifesto h2, .join-section h2 { font-size: clamp(47px, 14vw, 72px); }
  .section-intro { margin-top: 30px; font-size: 16px; }
  .notes-grid { display: block; margin-top: 60px; }
  .note-card { min-height: 270px; margin-bottom: 22px; transform: none; }
  .note-card h3 { margin-top: 65px; }
  .signal-section { display: block; }
  .signal-photo { min-height: 520px; border-right: 0; border-bottom: 2px solid var(--cream); }
  .signal-console { padding: 90px 20px 70px; }
  .console-copy { font-size: 15px; }
  .cast-zone { grid-template-columns: 1fr; }
  .cast-radar { display: none; }
  .cast-button { min-height: 98px; }
  .catch-readout { grid-template-columns: 1fr; }
  .cast-count { display: none; }
  .manifesto { display: block; }
  .manifesto-mark { width: 140px; margin-bottom: 55px; }
  .non-roadmap { margin-top: 65px; }
  .non-roadmap > div { grid-template-columns: 32px .7fr 1fr; }
  .banner-break { height: 290px; }
  .banner-break img { object-position: 59% center; }
  .banner-break::after { border-width: 8px; }
  .join-section { display: block; min-height: auto; padding: 100px 20px; }
  .join-actions { margin-top: 70px; }
  .join-link { grid-template-columns: 64px 1fr; min-height: 84px; }
  footer { grid-template-columns: 1fr; justify-items: start; padding: 45px 20px; }
  footer p { text-align: left; }
  footer > a:last-child { justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition: none !important; }
}
