/* Fieldnet — night survey net. Desktop-first. System fonts only. */
:root {
  --bg: #0a0a0a;
  --panel: #141414;
  --fg: #f5f3ec;
  --muted: #d8d2c2;
  --line: #2a2a2a;
  --accent: #ff6600;
  --audio: #1ed760;
  --max: 1180px;
  --sans: "Avenir Next", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  --mono: "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
::selection {
  background: rgba(255, 102, 0, 0.28);
  color: var(--fg);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.55;
}

.topo {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(800px 480px at 80% -10%, rgba(255, 102, 0, 0.12), transparent 55%),
    repeating-radial-gradient(circle at 12% 80%, transparent 0 18px, rgba(255, 102, 0, 0.04) 19px 20px);
  mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
}

a {
  color: var(--fg);
  text-underline-offset: 0.18em;
}
a:hover {
  color: var(--accent);
}
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.wrap {
  width: min(var(--max), calc(100% - 5rem));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(10, 10, 10, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 0.95rem 0;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.wordmark svg {
  width: 24px;
  height: 24px;
  display: block;
}
.nav-toggle {
  display: none;
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.35rem 0.7rem;
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
}
.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.86rem;
}
.nav-list a {
  color: var(--muted);
  text-decoration: none;
}
.nav-list a:hover,
.nav-list a[aria-current="page"] {
  color: var(--fg);
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #111;
  text-decoration: none;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--accent);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: filter 0.2s ease;
}
.btn:hover {
  filter: brightness(1.08);
  color: #111;
}
.btn-ghost {
  background: transparent;
  color: var(--fg);
  border-color: #555;
}
.btn-ghost:hover {
  color: var(--fg);
  filter: none;
  background: #1a1a1a;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.6rem;
  align-items: center;
  padding: 4.6rem 0 3.2rem;
}
.kicker {
  margin: 0 0 0.75rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.hero h1,
.page h1 {
  margin: 0;
  font-size: clamp(2.6rem, 5.6vw, 4.4rem);
  letter-spacing: -0.035em;
  line-height: 1.02;
  font-weight: 650;
}
.lede {
  margin: 1.1rem 0 1.4rem;
  color: var(--muted);
  max-width: 36rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.rig {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.rig svg {
  width: 100%;
  height: auto;
  display: block;
}

.band {
  padding: 0 0 3.8rem;
}
.band h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  letter-spacing: -0.03em;
}
.sub {
  color: var(--muted);
  margin: 0 0 1.4rem;
  max-width: 40rem;
}

.grid4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}
.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.05rem 1.1rem 1.15rem;
  background: var(--panel);
}
.card .n {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.78rem;
  margin-bottom: 0.45rem;
}
.card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.card svg {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 0.7rem;
}

.timeline {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 1px solid var(--line);
}
.timeline li {
  padding: 0.85rem 0 0.85rem 1.2rem;
  position: relative;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 1.15rem;
  width: 9px;
  height: 9px;
  background: var(--accent);
  border-radius: 50%;
}
.timeline strong {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--accent);
  display: block;
  margin-bottom: 0.2rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.2rem;
}
.chips span {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.32rem 0.7rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.koan {
  padding: 2.4rem 0 4rem;
  border-top: 1px solid var(--line);
  font-size: 1.25rem;
  max-width: 34rem;
}

.page {
  padding: 3.4rem 0 4.4rem;
}
.page-hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: end;
  margin-bottom: 2rem;
}
.page-hero svg {
  width: 100%;
  height: auto;
  display: block;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

form {
  display: grid;
  gap: 0.4rem;
  max-width: 28rem;
}
label {
  margin-top: 0.4rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
input,
textarea,
select {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--fg);
  font: inherit;
}
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.form-status {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.5rem;
  font-size: 0.86rem;
  color: var(--muted);
}
.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 1.3rem;
}
.site-footer a {
  color: var(--muted);
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--fg);
}
.site-footer strong {
  display: block;
  color: var(--fg);
  margin-bottom: 0.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ping {
  animation: ping 2.4s ease-in-out infinite;
}
@keyframes ping {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 1;
  }
}
.draw {
  stroke-dasharray: 640;
  stroke-dashoffset: 640;
  animation: draw 1.8s ease forwards;
}
@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .ping,
  .draw,
  .reveal {
    animation: none;
    opacity: 1;
    transform: none;
    stroke-dashoffset: 0;
  }
}

@media (max-width: 800px) {
  .wrap,
  .header-inner {
    width: min(var(--max), calc(100% - 1.5rem));
  }
  .nav-toggle {
    display: inline-block;
  }
  .header-inner {
    flex-wrap: wrap;
  }
  .nav-list {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
  }
  .nav-list.is-open {
    display: flex;
  }
  .hero,
  .grid4,
  .page-hero,
  .foot-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    padding-top: 2.2rem;
  }
}
