:root {
  --ink: #14110e;
  --ink-2: #1c1814;
  --ink-3: #25201a;
  --brown: #574634;
  --line: #312a22;
  --cream: #f2ece1;
  --muted: #a89c8b;
  --faint: #6f6557;
  --orange: #f28a3a;
  --orange-hot: #ff7a21;
  --serif: "Instrument Serif", ui-serif, Georgia, serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --radius: 14px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
code { font: 500 0.86em var(--mono); color: var(--cream); background: var(--ink-3); padding: 0.1em 0.4em; border-radius: 6px; }
h1, h2, h3 { margin: 0; font-weight: 400; }
h2 { font: 400 clamp(2.1rem, 4.4vw, 3.2rem)/1.08 var(--serif); letter-spacing: -0.01em; }
h3 { font: 600 1.05rem/1.3 var(--sans); }
p { margin: 0; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* nav */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--ink) 82%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 600 1.05rem var(--sans); letter-spacing: -0.01em; }
.brand img { border-radius: 7px; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 0.93rem; }
.nav-links a { text-decoration: none; color: var(--muted); transition: color .15s; }
.nav-links a:hover { color: var(--cream); }
.nav-links .nav-cta { color: var(--ink); background: var(--cream); padding: 8px 14px; border-radius: 999px; font-weight: 500; }
.nav-links .nav-cta:hover { color: var(--ink); background: #fff; }

/* hero */
.hero { padding: clamp(48px, 9vw, 110px) 0 clamp(56px, 8vw, 96px); position: relative; }
.hero::before {
  content: ""; position: absolute; inset: -120px 0 auto; height: 620px; pointer-events: none;
  background: radial-gradient(520px 320px at 78% 35%, rgba(242,138,58,.13), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 6vw, 80px); align-items: center; position: relative; }
.eyebrow { font: 500 0.78rem/1.4 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--orange); margin-bottom: 22px; }
h1 { font: 400 clamp(2.8rem, 6.6vw, 5.1rem)/1.0 var(--serif); letter-spacing: -0.02em; }
h1 em { font-style: italic; color: var(--muted); }
.lede { margin-top: 26px; font-size: clamp(1.05rem, 1.6vw, 1.18rem); color: #d8cfc1; max-width: 34em; }
.fine { margin-top: 14px; font-size: 0.85rem; color: var(--faint); }

/* waitlist form */
.join { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 10px; max-width: 480px; }
.join input[type=email] {
  flex: 1 1 220px; min-width: 0; height: 50px; padding: 0 16px; border-radius: 12px;
  background: var(--ink-2); color: var(--cream); border: 1px solid var(--line); font: inherit; font-size: 1rem;
  transition: border-color .15s, box-shadow .15s;
}
.join input[type=email]::placeholder { color: var(--faint); }
.join input[type=email]:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(242,138,58,.2); }
.join button {
  height: 50px; padding: 0 22px; border: 0; border-radius: 12px; cursor: pointer;
  background: var(--orange); color: #1a0f05; font: 600 0.98rem var(--sans); transition: background .15s, transform .1s;
}
.join button:hover { background: var(--orange-hot); }
.join button:active { transform: translateY(1px); }
.join button:disabled { opacity: .6; cursor: default; }
.join-status { flex-basis: 100%; min-height: 1.4em; font-size: 0.92rem; color: var(--muted); }
.join-status.ok { color: #9fd49b; }
.join-status.err { color: #f0907a; }
.join.done input[type=email], .join.done button { display: none; }

/* feed */
.feed {
  margin: 0; background: linear-gradient(180deg, var(--ink-2), #17130f); border: 1px solid var(--line);
  border-radius: 20px; padding: 18px 18px 14px; box-shadow: 0 40px 80px -40px rgba(0,0,0,.7);
  min-width: 0;
}
.feed-head { display: flex; align-items: center; gap: 10px; font: 500 0.78rem var(--mono); color: var(--muted); padding: 2px 4px 14px; border-bottom: 1px solid var(--line); }
.feed-count { margin-left: auto; color: var(--faint); }
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 0 rgba(242,138,58,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(242,138,58,0); } 100% { box-shadow: 0 0 0 0 rgba(242,138,58,0); } }
.feed-list { list-style: none; margin: 0; padding: 0; height: 392px; overflow: hidden; position: relative;
  -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent); mask-image: linear-gradient(180deg, #000 78%, transparent); }
.feed-item {
  display: grid; grid-template-columns: 74px 1fr auto; gap: 12px; align-items: center;
  padding: 12px 6px; border-bottom: 1px solid var(--line); font-size: 0.9rem;
  animation: slidein .45s cubic-bezier(.2,.8,.2,1);
}
@keyframes slidein { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
.feed-src { font: 500 0.72rem var(--mono); color: var(--faint); text-transform: lowercase; }
.feed-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #d8cfc1; }
.feed-text b { font-weight: 500; color: var(--cream); }
.feed-item.is-silent .feed-text { color: var(--faint); }
.feed-item.is-silent .feed-text b { color: var(--muted); }
.feed-item.is-hot { background: linear-gradient(90deg, rgba(242,138,58,.10), transparent 70%); border-radius: 10px; }
.feed-note { font-size: 0.75rem; color: var(--faint); padding: 10px 4px 0; }

/* chips */
.chip { display: inline-flex; align-items: center; gap: 6px; font: 500 0.72rem/1 var(--mono); padding: 6px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.chip-silent { color: var(--faint); }
.chip-digest { color: #cdbfa8; border-color: #4a3f33; }
.chip-push { color: var(--cream); background: var(--brown); border-color: #6b5741; }
.chip-urgent { color: #1a0f05; background: var(--orange); border-color: var(--orange); }
.chip-scoring { color: var(--faint); border-style: dashed; }
.chip-scoring::after { content: ""; width: 10px; height: 10px; border: 1.5px solid var(--faint); border-top-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.tag { font: 500 0.78rem var(--mono); color: var(--muted); }

/* sections */
.band { padding: clamp(72px, 10vw, 128px) 0; border-top: 1px solid var(--line); }
.band-alt { background: var(--ink-2); }
.section-lede { margin-top: 18px; color: var(--muted); max-width: 40em; font-size: 1.05rem; }
.split { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 6vw, 88px); align-items: start; }

.levels { margin-top: 48px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.level { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.level .chip { align-self: flex-start; }
.level p { color: var(--muted); font-size: 0.95rem; }
.level:last-child { border-color: rgba(242,138,58,.45); background: linear-gradient(180deg, rgba(242,138,58,.08), var(--ink-2) 60%); }

.rule { margin: 56px 0 0; padding: 0 0 0 24px; border-left: 2px solid var(--orange); max-width: 44em; }
.rule p { font: italic 400 clamp(1.4rem, 2.6vw, 1.9rem)/1.3 var(--serif); }
.rule cite { display: block; margin-top: 12px; font: 500 0.78rem var(--mono); font-style: normal; color: var(--faint); }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 10px; bottom: 10px; width: 1px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 28px 34px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 7px; width: 11px; height: 11px; border-radius: 50%; background: var(--ink-2); border: 2px solid var(--brown); }
.timeline li:nth-child(3)::before, .timeline li:nth-child(4)::before { border-color: var(--orange); }
.timeline li:last-child::before { background: var(--orange); border-color: var(--orange); }
.timeline time { display: block; font: 500 0.78rem var(--mono); color: var(--orange); margin-bottom: 4px; }
.timeline p { color: #d8cfc1; }
.timeline .chip { vertical-align: 1px; }

.channels { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.channel { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: linear-gradient(180deg, var(--ink-2), var(--ink)); }




.channel h3 { font: 400 1.9rem/1 var(--serif); margin-bottom: 12px; }
.channel p { color: var(--muted); font-size: 0.97rem; }

.guards { margin: 48px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.guards > div { background: var(--ink-2); padding: 26px; }
.guards dt { font: 400 2.6rem/1 var(--serif); color: var(--cream); margin-bottom: 12px; }
.guards dd { margin: 0; color: var(--muted); font-size: 0.97rem; }

.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.facts li { padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--muted); background: var(--ink-2); }
.facts strong { color: var(--cream); font-weight: 600; }

.cta { padding: clamp(80px, 11vw, 140px) 0; border-top: 1px solid var(--line); background: radial-gradient(600px 300px at 50% 0%, rgba(242,138,58,.12), transparent 70%); }
.cta-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.cta-icon { border-radius: 18px; margin-bottom: 28px; box-shadow: 0 20px 50px -20px rgba(242,138,58,.45); }
.cta .section-lede { margin-inline: auto; }
.cta .join { justify-content: center; width: 100%; }
.cta .join-status { text-align: center; }

.foot { border-top: 1px solid var(--line); padding: 28px 0; font-size: 0.85rem; color: var(--faint); }
.foot-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

@media (max-width: 960px) {
  .hero-grid, .split { grid-template-columns: 1fr; }
  .levels { grid-template-columns: repeat(2, 1fr); }
  .channels { grid-template-columns: 1fr; }
  .guards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .levels, .guards { grid-template-columns: 1fr; }
  .feed-item { grid-template-columns: 1fr auto; row-gap: 4px; }
  .feed-src { grid-column: 1 / -1; }
  .feed-list { height: 440px; }
  .join button { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* generated art */
.tile { width: 56px; height: 56px; border-radius: 14px; }
.tile-lg { width: 72px; height: 72px; border-radius: 18px; margin-bottom: 22px; }
.guards .tile { width: 48px; height: 48px; margin-bottom: 18px; }
.level .tile { margin-bottom: 4px; }
.illo { margin-top: 36px; width: 100%; height: auto; max-width: 420px; aspect-ratio: 1; object-fit: cover; border-radius: 20px; border: 1px solid var(--line); }
.banner { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 55%; border-radius: 20px; border: 1px solid var(--line); }
.split-head { grid-template-columns: 1.1fr 0.9fr; align-items: center; }
.facts-lock { display: flex; gap: 16px; align-items: flex-start; }
.facts-lock .tile { width: 44px; height: 44px; flex: none; }
.hero { overflow: hidden; }
.hero-art {
  position: absolute; inset: 0; pointer-events: none;
  background: url(/img/il-field.webp) right center / cover no-repeat;
  opacity: .32;
  -webkit-mask-image: linear-gradient(90deg, transparent 20%, #000 75%);
  mask-image: linear-gradient(90deg, transparent 20%, #000 75%);
}
@media (max-width: 960px) {
  .hero-art { opacity: .18; -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%); mask-image: linear-gradient(180deg, #000, transparent 70%); }
  .illo { max-width: 100%; aspect-ratio: 16 / 10; }
  .split-head { grid-template-columns: 1fr; }
}
.channel h3 .chip { font-size: 0.66rem; vertical-align: middle; margin-left: 6px; }
