*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: #1a1f18;
  color: #b8c4b0;
  line-height: 1.65;
  min-height: 100vh;
  padding-bottom: 96px;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

:root {
  --bg: #1a1f18;
  --panel: #242b22;
  --ink: #e8efe4;
  --muted: #7a8a74;
  --flag: #e07030;
  --moss: #5a8a5c;
  --line: #333b30;
  --mono: ui-monospace, 'Cascadia Code', Menlo, Consolas, monospace;
}

/* ——— FIELD FLAGS bottom staggered stakes (not punches equal strip, not dial) ——— */
.flags {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 8px;
  padding: 0 12px 0;
  pointer-events: none;
}
.flags a {
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 64px;
  text-decoration: none;
}
.flags a .pole {
  width: 3px;
  background: var(--line);
  height: 28px;
}
.flags a:nth-child(1) .pole { height: 36px; }
.flags a:nth-child(2) .pole { height: 24px; }
.flags a:nth-child(3) .pole { height: 40px; }
.flags a:nth-child(4) .pole { height: 20px; }
.flags a:nth-child(5) .pole { height: 32px; }
.flags a .flag {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 8px 6px;
  font-family: var(--mono);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  width: 100%;
  clip-path: polygon(0 0, 100% 0, 100% 70%, 50% 100%, 0 70%);
  padding-bottom: 16px;
  transition: all 0.12s;
}
.flags a:hover .flag { color: var(--ink); border-color: var(--moss); }
.flags a.on .flag {
  background: var(--flag);
  border-color: var(--flag);
  color: #1a1f18;
}
.flags a.on .pole { background: var(--flag); }

.tag {
  position: fixed;
  top: 16px;
  left: 20px;
  z-index: 90;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.tag strong {
  display: block;
  font-size: 0.88rem;
  color: var(--ink);
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

/* ——— FIELD: full image + data bar ——— */
.field {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.field .land {
  flex: 1;
  min-height: 55vh;
  position: relative;
  overflow: hidden;
}
.field .land img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.3) contrast(1.05);
  opacity: 0.75;
}
.field .data {
  background: var(--panel);
  border-top: 3px solid var(--flag);
  padding: 36px 28px 48px;
  max-width: 640px;
  margin: 0 auto;
  width: 100%;
}
.field .k {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--flag);
  margin-bottom: 10px;
}
.field h1 {
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 14px;
}
.field p {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 10px;
}

/* ——— SAMPLE: lab notebook cells ——— */
.sample {
  max-width: 640px;
  margin: 0 auto;
  padding: 88px 24px 48px;
}
.sample .k {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--flag);
  margin-bottom: 8px;
}
.sample h1 {
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 24px;
}
.cells {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.cell {
  background: var(--panel);
  padding: 20px 16px;
}
.cell .id {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--flag);
  margin-bottom: 6px;
}
.cell h2 {
  font-size: 0.98rem;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 4px;
}
.cell p {
  font-size: 0.85rem;
  color: var(--muted);
}

/* ——— STREAM: vertical flow ——— */
.stream {
  max-width: 480px;
  margin: 0 auto;
  padding: 88px 24px 48px;
}
.stream .k {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--flag);
  margin-bottom: 8px;
}
.stream h1 {
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 28px;
}
.flow {
  position: relative;
  padding-left: 28px;
}
.flow::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--line);
}
.node {
  position: relative;
  margin-bottom: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 16px 18px;
}
.node::before {
  content: '';
  position: absolute;
  left: -24px;
  top: 20px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--flag);
}
.node h2 {
  font-size: 1rem;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 4px;
}
.node p {
  font-size: 0.88rem;
  color: var(--muted);
}

/* ——— REPORT: two-column document ——— */
.report {
  max-width: 700px;
  margin: 0 auto;
  padding: 88px 24px 48px;
}
.report .k {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--flag);
  margin-bottom: 8px;
}
.report h1 {
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 24px;
}
.cols {
  columns: 2;
  column-gap: 28px;
  column-rule: 1px solid var(--line);
}
.cols p {
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 14px;
  break-inside: avoid;
}
.cols strong {
  color: var(--ink);
  font-weight: 600;
}

/* ——— REACH: dispatch radio ——— */
.reach-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 88px 20px 48px;
}
.radio {
  width: 100%;
  max-width: 400px;
  background: var(--panel);
  border: 1px solid var(--line);
}
.radio .top {
  background: #121610;
  padding: 12px 16px;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--flag);
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.radio .body { padding: 24px 18px; }
.radio h1 {
  font-size: 1.2rem;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 10px;
}
.radio .meta {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 18px;
}
.radio .meta a { color: var(--flag); font-weight: 600; }
.radio label {
  display: block;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.radio input,
.radio textarea {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.95rem;
  margin-bottom: 12px;
}
.radio input:focus,
.radio textarea:focus {
  outline: none;
  border-color: var(--flag);
}
.radio textarea { min-height: 80px; resize: vertical; }
.radio button {
  width: 100%;
  padding: 12px;
  background: var(--flag);
  color: #1a1f18;
  border: none;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}
.radio button:hover { filter: brightness(1.08); }

.ft {
  text-align: center;
  padding: 16px 24px;
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--muted);
}
.ft strong { color: var(--ink); }

@media (max-width: 560px) {
  .flags a { width: 56px; }
  .flags a .flag { font-size: 0.48rem; padding: 6px 4px 14px; }
  .cells { grid-template-columns: 1fr; }
  .cols { columns: 1; }
}
