/* GeoSynapse — production stylesheet
   V1.3 — earth-tone identity. Warm parchment, oxidized copper, deep burgundy.
   Deliberately not blue/black AI-lab or cybersecurity/crypto visual language:
   GeoSynapse is about civilizations, institutions, entrepreneurship and human
   adaptation, not developer tooling. */

:root {
  --bg: #f6eee3;
  --bg-elev: #fbf6ee;
  --bg-elev-2: #ecdfc9;
  --border: #ddc9ab;
  --text: #2b2019;
  --text-muted: #6b5847;
  --text-faint: #9c8871;
  --accent: #a8472b;
  --accent-soft: rgba(168, 71, 43, 0.09);
  --accent-line: rgba(168, 71, 43, 0.32);
  --accent-burgundy: #6e2a3b;
  --accent-burgundy-soft: rgba(110, 42, 59, 0.10);
  --serif: "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max: 1120px;
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

ul { margin: 0; padding: 0; list-style: none; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Accessibility ---------- */

.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  z-index: 200;
  background: var(--text);
  color: var(--bg);
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 600;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 16px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Section scroll offset ---------- */

section[id] {
  scroll-margin-top: 88px;
}

.venture[id] {
  scroll-margin-top: 88px;
}

/* ---------- Typography ---------- */

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  color: var(--text);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.9rem); max-width: 18ch; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); font-family: var(--sans); font-weight: 600; }
h4 { font-size: 1.02rem; font-family: var(--sans); font-weight: 600; }

p { margin: 0 0 1.1em; color: var(--text-muted); }
p:last-child { margin-bottom: 0; }

.lede {
  font-size: clamp(1.08rem, 1.6vw, 1.3rem);
  color: var(--text-muted);
  max-width: 62ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px 2px var(--accent-line);
  flex-shrink: 0;
}

.text-muted { color: var(--text-muted); }
.text-faint { color: var(--text-faint); font-size: 0.9rem; }

/* ---------- Layout helpers ---------- */

.section {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}

.section-head {
  max-width: 62ch;
  margin-bottom: 48px;
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-6 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-6 { grid-template-columns: 1fr; }
}
@media (min-width: 601px) and (max-width: 900px) {
  .grid-6 { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 238, 227, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand .brand-name {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  color: var(--text);
}

.brand .brand-tag {
  font-size: 0.68rem;
  color: var(--text-faint);
  letter-spacing: 0.02em;
  margin-top: 2px;
}

@media (max-width: 640px) {
  .brand .brand-tag { display: none; }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.15s ease;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover { color: var(--text); }

.nav-links a[aria-current="true"] {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.nav-cta {
  padding: 9px 18px;
  border-radius: 8px;
  background: var(--text) !important;
  color: var(--bg) !important;
  font-weight: 600 !important;
  border-bottom: none !important;
}

.nav-cta:hover { opacity: 0.88; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 42px;
  height: 42px;
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 28px 24px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.18s ease;
    overflow-y: auto;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links a {
    padding: 16px 0;
    width: 100%;
    border-bottom: 1px solid var(--border);
    border-bottom-width: 1px !important;
  }
  .nav-links a[aria-current="true"] { border-bottom: 1px solid var(--border) !important; }
  .nav-cta { margin-top: 12px; text-align: center; }
  .nav-toggle { display: flex; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 9px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.15s ease;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }

.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--text-faint); }

.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Cards ---------- */

.card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  transition: border-color 0.2s ease;
  height: 100%;
}

.card:hover { border-color: var(--accent-line); }
.card h3 { margin-bottom: 10px; }
.card p { margin-bottom: 0; font-size: 0.96rem; }

.card-link {
  display: block;
  margin-top: 16px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--accent);
}

.tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 14px;
}

.tag-dev {
  background: var(--bg-elev-2);
  color: var(--text-faint);
}

/* ---------- Hero ---------- */

.hero {
  padding: 140px 0 100px;
  position: relative;
  overflow: hidden;
  border-top: none;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(600px 420px at 12% -10%, var(--accent-soft), transparent 60%),
    radial-gradient(520px 360px at 92% 10%, var(--accent-burgundy-soft), transparent 60%);
}

.hero .lede { margin-top: 20px; margin-bottom: 32px; }

.founder-signal {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.92rem;
  color: var(--text-faint);
  max-width: 62ch;
}

.founder-signal a {
  color: var(--text);
  font-weight: 600;
  border-bottom: 1px solid var(--accent-line);
}

.founder-signal a:hover { color: var(--accent); }

/* ---------- Callout / name note ---------- */

.callout {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  padding: 24px 28px;
  margin: 32px 0;
}

.callout h4 { margin-bottom: 8px; color: var(--accent); font-size: 0.85rem; letter-spacing: 0.04em; text-transform: uppercase; }
.callout p { margin-bottom: 0; color: var(--text); font-size: 0.98rem; }

/* ---------- List rows (domains, principles) ---------- */

.list-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.list-row:last-child { border-bottom: none; }
.list-row h4 { margin: 0; color: var(--text); }
.list-row p { margin: 0; }

@media (max-width: 700px) {
  .list-row { grid-template-columns: 1fr; gap: 8px; }
}

/* ---------- Venture entries ---------- */

.venture {
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}

.venture:last-child { border-bottom: none; }

.venture-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.venture-head h3 { margin: 0; }

.status {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
}

.status-live { background: var(--accent-burgundy-soft); color: var(--accent-burgundy); }
.status-progress { background: var(--accent-soft); color: var(--accent); }
.status-dev { background: var(--bg-elev-2); color: var(--text-faint); }

/* ---------- Synapse Talks placeholder grid ---------- */

.talks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 8px;
}

@media (max-width: 860px) {
  .talks-grid { grid-template-columns: 1fr; }
}

.talk-card {
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-elev);
}

.talk-thumb {
  aspect-ratio: 16 / 9;
  background:
    repeating-linear-gradient(135deg, var(--bg-elev-2), var(--bg-elev-2) 10px, var(--bg-elev) 10px, var(--bg-elev) 20px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-faint);
}

.talk-thumb svg { width: 34px; height: 34px; opacity: 0.5; }

.talk-body { padding: 20px; }

.talk-body h3 {
  font-size: 1rem;
  color: var(--text-faint);
  margin-bottom: 6px;
}

.talk-body p {
  font-size: 0.88rem;
  color: var(--text-faint);
  margin-bottom: 0;
}

.talks-note {
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-cats { display: grid; gap: 20px; }

.contact-cat h4 { margin-bottom: 4px; }
.contact-cat p { margin-bottom: 0; font-size: 0.95rem; }

.form-field { margin-bottom: 18px; }

.form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.96rem;
}

.form-field textarea { resize: vertical; min-height: 120px; }

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: var(--accent-line);
}

.form-status {
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--accent);
  min-height: 1.2em;
}

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 40px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.footer-brand .brand-name { font-size: 1rem; }
.footer-brand .brand-tag { margin-top: 4px; }

.footer-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

footer a { color: var(--text-muted); font-size: 0.9rem; }
footer a:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--text-faint);
  font-size: 0.82rem;
}

/* ---------- Misc ---------- */

.flow {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 20px 0 0;
}

.flow-step {
  padding: 13px 20px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-elev);
  font-weight: 600;
  font-size: 0.92rem;
}

.flow-arrow { color: var(--accent); font-size: 1.1rem; }

@media (max-width: 600px) {
  .flow { flex-direction: column; align-items: flex-start; }
}

.cta-band {
  border-top: 1px solid var(--border);
  padding: 96px 0;
  text-align: center;
}

.cta-band h2 { max-width: 20ch; margin: 0 auto 20px; }
.cta-band .btn-row { justify-content: center; }

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
