@import "tailwindcss";
@import "tw-animate-css";
@import "../vendor/shadcn-tailwind-4.13.0.css";

:root {
  --ink: #11100f;
  --paper: #f4f0e5;
  --paper-bright: #fffdf5;
  --hot: #ff571d;
  --hot-dark: #8d1f00;
  --cold: #34d8ff;
  --cold-dark: #005a70;
  --line: rgba(17, 16, 15, 0.2);
  --background: var(--paper);
  --foreground: var(--ink);
  --card: var(--paper-bright);
  --card-foreground: var(--ink);
  --primary: var(--ink);
  --primary-foreground: var(--paper-bright);
  --secondary: #ddd7c8;
  --secondary-foreground: var(--ink);
  --muted: #e8e3d6;
  --muted-foreground: #5b574f;
  --accent: var(--hot);
  --accent-foreground: var(--ink);
  --destructive: #c51f1a;
  --border: rgba(17, 16, 15, 0.28);
  --input: rgba(17, 16, 15, 0.35);
  --ring: var(--hot);
  --radius: 0;
}

@theme inline {
  --color-background: var(--background);
  --color-foreground: var(--foreground);
  --color-card: var(--card);
  --color-card-foreground: var(--card-foreground);
  --color-primary: var(--primary);
  --color-primary-foreground: var(--primary-foreground);
  --color-secondary: var(--secondary);
  --color-secondary-foreground: var(--secondary-foreground);
  --color-muted: var(--muted);
  --color-muted-foreground: var(--muted-foreground);
  --color-accent: var(--accent);
  --color-accent-foreground: var(--accent-foreground);
  --color-destructive: var(--destructive);
  --color-border: var(--border);
  --color-input: var(--input);
  --color-ring: var(--ring);
  --font-sans: Arial, Helvetica, sans-serif;
  --font-mono: "Courier New", Courier, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.signal-bar {
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 28px;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper-bright);
  font-family: "Courier New", monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  white-space: nowrap;
}
.signal-bar span:nth-child(2) { color: var(--hot); }
.signal-bar span:nth-child(3) { color: var(--cold); }

.site-header {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 76px);
  border-bottom: 1px solid var(--line);
  background: rgba(244, 240, 229, 0.92);
  position: relative;
  z-index: 20;
}
.wordmark { display: inline-flex; align-items: center; gap: 12px; }
.mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--paper-bright);
  background: linear-gradient(90deg, var(--hot) 0 50%, var(--cold-dark) 50% 100%);
  border: 2px solid var(--ink);
  font-family: "Courier New", monospace;
  font-size: 0.86rem;
  font-weight: 900;
}
.wordmark > span:last-child { display: flex; flex-direction: column; gap: 1px; }
.wordmark strong { font-size: 1rem; letter-spacing: 0.08em; }
.wordmark small { font: 700 0.66rem/1.2 "Courier New", monospace; letter-spacing: 0.08em; }
.site-header nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 42px); font: 700 0.75rem/1 "Courier New", monospace; letter-spacing: 0.05em; }
.site-header nav a { padding: 10px 0; border-bottom: 2px solid transparent; }
.site-header nav a:hover, .site-header nav a:focus-visible { border-color: var(--ink); }
.site-header nav .nav-cta { padding: 12px 16px; color: var(--paper-bright); background: var(--ink); border: 0; }
.site-header nav .nav-cta:hover, .site-header nav .nav-cta:focus-visible { background: var(--hot); color: var(--ink); }

.hero {
  position: relative;
  min-height: 740px;
  overflow: hidden;
  border-bottom: 2px solid var(--ink);
  background:
    linear-gradient(90deg, rgba(255,87,29,.18) 0, rgba(255,87,29,.03) 42%, rgba(52,216,255,.03) 58%, rgba(52,216,255,.18) 100%),
    var(--paper);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .2;
  background-image: repeating-linear-gradient(0deg, transparent 0 3px, rgba(17,16,15,.08) 3px 4px);
  mix-blend-mode: multiply;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, transparent, black 18%, black 82%, transparent);
  opacity: .35;
}
.hero-grid::after { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: var(--ink); opacity: .6; }
.hero-copy {
  position: absolute;
  z-index: 5;
  left: clamp(20px, 5vw, 76px);
  top: 78px;
  width: min(560px, 42vw);
}
.eyebrow {
  display: inline-block;
  font: 800 0.76rem/1.35 "Courier New", monospace;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.hero-copy .eyebrow { padding: 8px 10px; background: var(--paper-bright); border: 1px solid var(--ink); }
.hero h1 {
  margin: 20px 0 10px;
  font-size: clamp(4.8rem, 9vw, 9.2rem);
  line-height: .78;
  letter-spacing: -.085em;
  font-weight: 950;
}
.hero h1 em { font-style: normal; color: transparent; -webkit-text-stroke: 3px var(--ink); text-shadow: 7px 7px 0 var(--hot); }
.hero-lede { max-width: 500px; margin: 24px 0 0; font-size: clamp(1.06rem, 1.5vw, 1.3rem); line-height: 1.5; font-weight: 600; }
.uncle-frame {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: -54px;
  width: min(61vw, 780px);
  transform: translateX(-30%);
}
.uncle-frame img { width: 100%; height: auto; display: block; filter: drop-shadow(14px 10px 0 rgba(17,16,15,.16)); }
.uncle-caption {
  position: absolute;
  right: 4%;
  bottom: 100px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 9px 12px;
  color: var(--paper-bright);
  background: var(--ink);
  font: 700 .7rem/1.25 "Courier New", monospace;
  letter-spacing: .08em;
}
.crosshair { position: absolute; width: 28px; height: 28px; border: 1px solid var(--ink); border-radius: 50%; opacity: .65; }
.crosshair::before, .crosshair::after { content: ""; position: absolute; background: var(--ink); }
.crosshair::before { width: 42px; height: 1px; left: -8px; top: 13px; }
.crosshair::after { width: 1px; height: 42px; left: 13px; top: -8px; }
.crosshair-a { top: 20%; right: 7%; }
.crosshair-b { bottom: 31%; left: 11%; }
.faction { position: absolute; z-index: 6; top: 430px; font-family: "Courier New", monospace; }
.faction-hot { left: clamp(20px, 5vw, 76px); color: var(--hot-dark); }
.faction-cold { right: clamp(20px, 5vw, 76px); text-align: right; color: var(--cold-dark); }
.faction-kicker { display: inline-flex; align-items: center; gap: 7px; font-size: .78rem; font-weight: 900; letter-spacing: .06em; }
.faction-kicker svg { width: 17px; height: 17px; }
.faction p { margin: 12px 0 14px; font: 900 clamp(1rem, 1.5vw, 1.25rem)/1.25 Arial, sans-serif; color: var(--ink); }
.status-line { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); font-size: .67rem; font-weight: 700; }
.status-line i { width: 8px; height: 8px; background: currentColor; border-radius: 50%; box-shadow: 0 0 0 4px rgba(17,16,15,.1); }
.scroll-cue {
  position: absolute;
  z-index: 7;
  left: clamp(20px, 5vw, 76px);
  bottom: 38px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 800 .72rem/1 "Courier New", monospace;
  letter-spacing: .09em;
}
.scroll-cue svg { width: 16px; animation: bob 1.5s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(5px); } }

.join-wrap { position: relative; z-index: 10; margin-top: -34px; padding: 0 clamp(20px, 5vw, 76px); }
.join-panel {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 24px 38px;
  padding: clamp(24px, 4vw, 42px);
  background: var(--paper-bright);
  border: 2px solid var(--ink);
  box-shadow: 10px 10px 0 var(--ink);
}
.join-heading h2 { margin: 7px 0 7px; font-size: clamp(1.9rem, 3vw, 3rem); line-height: .95; letter-spacing: -.05em; }
.join-heading p { margin: 0; color: #5f5a50; line-height: 1.45; }
.team-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
.team-choice {
  min-height: 86px;
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.team-choice:hover { transform: translateY(-2px); box-shadow: 4px 4px 0 var(--ink); }
.team-choice.selected { box-shadow: inset 0 0 0 3px var(--ink); }
.team-sol.selected { background: rgba(255,87,29,.22); }
.team-quai.selected { background: rgba(52,216,255,.24); }
.team-icon { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--ink); }
.team-sol .team-icon { background: var(--hot); }
.team-quai .team-icon { background: var(--cold); }
.team-icon svg { width: 18px; }
.team-choice > span:last-child { display: flex; flex-direction: column; gap: 5px; }
.team-choice strong { font: 900 .87rem/1 "Courier New", monospace; }
.team-choice small { font-size: .78rem; color: #5f5a50; }
.email-row { grid-column: 2; display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.email-row input { height: 50px; border: 1px solid var(--ink); background: var(--paper); border-radius: 0; padding: 0 15px; font-family: "Courier New", monospace; font-size: 1rem; box-shadow: none; }
.email-row button { height: 50px; border-radius: 0; padding: 0 22px; background: var(--ink); color: var(--paper-bright); font: 800 .78rem/1 "Courier New", monospace; letter-spacing: .04em; }
.email-row button:hover { background: var(--hot); color: var(--ink); }
.form-foot { grid-column: 2; min-height: 22px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 18px; }
.form-foot p, .form-message { margin: 0; font: 700 .66rem/1.4 "Courier New", monospace; color: #686359; }
.form-message { color: var(--cold-dark); }
.form-message.error { color: var(--hot-dark); }

.section-shell { max-width: 1280px; margin: 0 auto; padding: 120px clamp(20px, 5vw, 76px); }
.contracts { display: grid; grid-template-columns: minmax(250px, .8fr) minmax(440px, 1.35fr); gap: clamp(50px, 8vw, 110px); align-items: center; }
.section-intro h2 { margin: 10px 0 20px; font-size: clamp(3.1rem, 5vw, 5.7rem); line-height: .88; letter-spacing: -.075em; }
.section-intro p { max-width: 520px; margin: 0; font-size: 1.08rem; line-height: 1.6; color: #5f5a50; }
.contract-stack { display: grid; grid-template-columns: 1fr; }
.contract-card { position: relative; padding: 25px; color: var(--paper-bright); border: 2px solid var(--ink); }
.contract-sol { background: var(--hot-dark); transform: rotate(-1.2deg); }
.contract-quai { background: var(--cold-dark); transform: rotate(1.2deg); }
.contract-topline { display: flex; justify-content: space-between; margin-bottom: 20px; font: 800 .72rem/1 "Courier New", monospace; letter-spacing: .08em; }
.ca-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 12px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.38); }
.ca-row code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 .76rem/1.3 "Courier New", monospace; }
.ca-row button { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid currentColor; color: inherit; background: transparent; cursor: pointer; }
.ca-row button:disabled { opacity: .4; cursor: not-allowed; }
.ca-row svg, .contract-card a svg { width: 16px; }
.contract-card > a, .pending-link { display: inline-flex; align-items: center; gap: 7px; margin-top: 16px; font: 800 .7rem/1 "Courier New", monospace; letter-spacing: .06em; }
.contract-card > a { border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.pending-link { opacity: .65; }
.differential { position: relative; z-index: 3; min-height: 74px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 15px; margin: -5px 12%; padding: 10px 16px; background: var(--paper-bright); border: 2px solid var(--ink); text-align: center; }
.differential span, .differential small { font: 800 .64rem/1.3 "Courier New", monospace; letter-spacing: .07em; }
.differential strong { font: 900 2.5rem/1 Arial, sans-serif; }

.experiment { border-top: 1px solid var(--line); }
.section-intro.compact { display: grid; grid-template-columns: 1.2fr 1fr; gap: 10px 70px; align-items: end; }
.section-intro.compact .eyebrow { grid-column: 1 / -1; }
.section-intro.compact h2 { margin: 10px 0 0; }
.section-intro.compact p { padding-bottom: 8px; }
.prediction-board { margin-top: 60px; border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); font-family: "Courier New", monospace; }
.board-head, .board-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr; }
.board-head { color: var(--paper-bright); background: var(--ink); }
.board-head span, .board-row span, .board-row strong { padding: 14px 18px; border-right: 1px solid var(--line); }
.board-head span { font-size: .72rem; font-weight: 900; letter-spacing: .08em; }
.board-head .hot-text { color: var(--hot); }
.board-head .cold-text { color: var(--cold); }
.board-row { border-top: 1px solid var(--ink); background: var(--paper-bright); }
.board-row span { font-weight: 700; }
.board-row strong { font-size: .82rem; }
.board-row strong:nth-child(2) { background: rgba(255,87,29,.14); }
.board-row strong:nth-child(3) { background: rgba(52,216,255,.16); }
.rules-grid { margin-top: 70px; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--ink); }
.rules-grid article { min-height: 270px; position: relative; padding: 30px; border-right: 1px solid var(--ink); }
.rules-grid article:last-child { border-right: 0; }
.rules-grid article > svg { width: 27px; height: 27px; }
.rules-grid article > span { position: absolute; top: 25px; right: 25px; font: 900 1.7rem/1 "Courier New", monospace; color: rgba(17,16,15,.22); }
.rules-grid h3 { margin: 70px 0 10px; font-size: 1.45rem; letter-spacing: -.035em; }
.rules-grid p { margin: 0; line-height: 1.5; color: #5f5a50; }

.family-meeting { max-width: none; text-align: center; color: var(--paper-bright); background: var(--ink); }
.family-meeting blockquote { max-width: 980px; margin: 24px auto 34px; font-size: clamp(2.5rem, 5.5vw, 6rem); font-weight: 900; line-height: .98; letter-spacing: -.065em; }
.family-meeting a { display: inline-flex; align-items: center; gap: 10px; padding: 14px 18px; color: var(--ink); background: var(--cold); font: 900 .78rem/1 "Courier New", monospace; }
.family-meeting a svg { width: 16px; transform: rotate(-90deg); }

footer { min-height: 150px; display: grid; grid-template-columns: 1fr 1.3fr auto; align-items: center; gap: 40px; padding: 34px clamp(20px, 5vw, 76px); border-top: 1px solid rgba(255,255,255,.2); color: var(--paper-bright); background: var(--ink); }
footer div { display: flex; flex-direction: column; gap: 5px; }
footer strong { font-size: 1.2rem; }
footer div span, footer > span { font: 700 .66rem/1.4 "Courier New", monospace; letter-spacing: .06em; }
footer p { margin: 0; color: #b9b4a8; font-size: .82rem; line-height: 1.5; }

@media (max-width: 980px) {
  .site-header nav a:not(.nav-cta) { display: none; }
  .hero { min-height: 790px; }
  .hero-copy { width: 64vw; }
  .uncle-frame { width: min(82vw, 720px); left: 45%; transform: translateX(-22%); }
  .faction { top: 535px; }
  .join-panel { grid-template-columns: 1fr; }
  .email-row, .form-foot { grid-column: 1; }
  .contracts { grid-template-columns: 1fr; }
  .section-intro { max-width: 700px; }
  .section-intro.compact { grid-template-columns: 1fr; }
  .section-intro.compact .eyebrow { grid-column: auto; }
  .rules-grid article { min-height: 240px; padding: 24px; }
  footer { grid-template-columns: 1fr 1fr; }
  footer > span { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .signal-bar { justify-content: flex-start; padding-left: 16px; }
  .signal-bar span:nth-child(n+3) { display: none; }
  .site-header { height: 68px; padding: 0 16px; }
  .site-header nav { gap: 0; }
  .nav-cta { font-size: .68rem; }
  .hero { min-height: 720px; }
  .hero-copy { top: 45px; left: 18px; width: calc(100% - 36px); }
  .hero h1 { font-size: clamp(4.3rem, 22vw, 6rem); }
  .hero h1 em { -webkit-text-stroke-width: 2px; text-shadow: 4px 4px 0 var(--hot); }
  .hero-lede { max-width: 92%; margin-top: 18px; font-size: 1rem; }
  .uncle-frame { left: 50%; bottom: -12px; width: 112vw; transform: translateX(-50%); }
  .uncle-caption { right: 10%; bottom: 70px; font-size: .56rem; }
  .faction { top: 428px; }
  .faction-hot { left: 18px; }
  .faction-cold { right: 18px; }
  .faction p { font-size: .86rem; }
  .status-line { display: none; }
  .scroll-cue { display: none; }
  .join-wrap { margin-top: 0; padding: 0; }
  .join-panel { border-width: 0 0 2px; box-shadow: none; padding: 30px 18px 34px; gap: 24px; }
  .team-grid { grid-template-columns: 1fr; }
  .team-choice { min-height: 76px; }
  .email-row { grid-template-columns: 1fr; }
  .email-row button { width: 100%; }
  .section-shell { padding: 82px 18px; }
  .contracts { gap: 48px; }
  .section-intro h2 { font-size: 3.35rem; }
  .contract-card { padding: 18px; }
  .contract-topline { gap: 10px; }
  .differential { margin: -4px 4%; padding: 9px; }
  .differential small { display: none; }
  .prediction-board { margin-top: 42px; box-shadow: 5px 5px 0 var(--ink); }
  .board-head, .board-row { grid-template-columns: 1.2fr .8fr .8fr; }
  .board-head span, .board-row span, .board-row strong { padding: 12px 8px; font-size: .66rem; }
  .rules-grid { grid-template-columns: 1fr; }
  .rules-grid article { min-height: 220px; border-right: 0; border-bottom: 1px solid var(--ink); }
  .rules-grid article:last-child { border-bottom: 0; }
  .family-meeting blockquote { font-size: 2.7rem; }
  footer { grid-template-columns: 1fr; gap: 24px; padding: 38px 18px; }
  footer > span { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-cue svg { animation: none; }
}

/* Static-bundle controls */
.team-choice input[type="radio"] {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--ink);
}
.email-row input {
  width: 100%;
  outline: none;
}
.email-row input:focus {
  box-shadow: inset 0 0 0 2px var(--hot);
}
.email-row button:disabled {
  opacity: .7;
  cursor: wait;
}
.ca-row button {
  width: auto;
  min-width: 54px;
  padding: 0 7px;
  font: 800 .58rem/1 "Courier New", monospace;
}
.rules-grid article > b {
  font: 900 1.75rem/1 "Courier New", monospace;
}
[hidden] { display: none !important; }

