/* Unbound Labs — Mutual Intelligence */

:root {
  --bg: #07080b;
  --bg-elevated: #0c0e14;
  --surface: #12151e;
  --surface-hover: #171b26;
  --line: rgba(243, 241, 236, 0.08);
  --line-strong: rgba(243, 241, 236, 0.16);
  --text: #f3f1ec;
  --muted: #9aa0ad;
  --subtle: #6f7584;
  --accent: #6ee7d0;
  --accent-dim: rgba(110, 231, 208, 0.12);
  --accent-glow: rgba(110, 231, 208, 0.22);
  --max: 1120px;
  --nav-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Outfit", system-ui, sans-serif;
  font-weight: 400;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  mix-blend-mode: overlay;
}

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

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

button {
  font: inherit;
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
}

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

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

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(7, 8, 11, 0.72);
  border-bottom: 1px solid var(--line);
}

.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--max), calc(100% - 3rem));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  letter-spacing: 0.04em;
  font-weight: 500;
  font-size: 0.92rem;
  text-transform: uppercase;
}

.brand svg {
  width: 28px;
  height: 28px;
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  font-size: 0.9rem;
  color: var(--muted);
}

.nav-links a {
  transition: color 0.2s var(--ease);
}

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

.nav-cta {
  color: var(--bg) !important;
  background: var(--accent);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.85rem;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  color: var(--bg) !important;
  filter: brightness(1.08);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  align-items: center;
  justify-content: center;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--text);
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before { top: -5px; }
.nav-toggle span::after { top: 5px; }

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

.hero {
  position: relative;
  padding: 7.5rem 0 6.5rem;
  isolation: isolate;
}

.hero-glow {
  position: absolute;
  width: 720px;
  height: 720px;
  left: 50%;
  top: -120px;
  transform: translateX(-50%);
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 62%);
  pointer-events: none;
  z-index: -1;
  filter: blur(10px);
}

.hero-orbit {
  position: absolute;
  right: max(0px, calc(50% - 640px));
  top: 4.5rem;
  width: 340px;
  height: 340px;
  z-index: -1;
  opacity: 0.7;
  color: var(--accent);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.kicker::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--accent);
}

.hero h1 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: clamp(3.2rem, 8vw, 7.2rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  max-width: 14ch;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero .tagline {
  margin-top: 1.6rem;
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  color: var(--text);
  font-weight: 400;
  letter-spacing: -0.01em;
}

.hero .pitch {
  margin-top: 1.35rem;
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.125rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
}

.btn-ghost {
  border: 1px solid var(--line-strong);
  color: var(--text);
  background: transparent;
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--accent);
}

/* ---------- Sections ---------- */

section {
  position: relative;
  z-index: 1;
  padding: 6.5rem 0;
}

.section-head {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 1.5rem;
  margin-bottom: 2.75rem;
  align-items: baseline;
}

.index {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}

.section-head h2,
.solo-title {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3.15rem);
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.lead {
  max-width: 40rem;
  color: var(--muted);
  font-size: 1.12rem;
}

.lead + .lead,
.prose p + p {
  margin-top: 1.15rem;
}

.prose {
  max-width: 40rem;
  color: var(--muted);
  font-size: 1.12rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 4rem;
  align-items: start;
}

/* ---------- Idea visual ---------- */

.idea-panel {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-elevated) 100%);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.idea-panel svg {
  width: min(100%, 360px);
  height: auto;
}

.caption {
  margin-top: 1rem;
  text-align: center;
  color: var(--subtle);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

/* ---------- Roadmap ---------- */

.roadmap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.6rem 1.5rem 1.8rem;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.card .when {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}

.card h3 {
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.card p {
  color: var(--muted);
  font-size: 0.98rem;
}

.note {
  margin-top: 1.5rem;
  color: var(--subtle);
  font-size: 0.92rem;
}

/* ---------- Why ---------- */

.why {
  background:
    linear-gradient(180deg, transparent, rgba(110, 231, 208, 0.035) 40%, transparent 100%);
  border-block: 1px solid var(--line);
}

.why .wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 3.5rem;
  align-items: start;
}

/* ---------- About ---------- */

.about-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 2rem;
  max-width: 44rem;
}

.avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: radial-gradient(circle at 30% 30%, #1c2433, #0b0d12 70%);
  display: grid;
  place-items: center;
  color: var(--accent);
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.7rem;
  font-style: italic;
}

.about-card h3 {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 0.15rem;
}

.about-card .meta {
  color: var(--subtle);
  font-size: 0.9rem;
  margin-bottom: 0.9rem;
}

.about-card p {
  color: var(--muted);
}

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

.contact-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.75rem 2rem;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--accent-dim);
}

.contact-box a.email {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  letter-spacing: -0.02em;
  color: var(--text);
  border-bottom: 1px solid transparent;
}

.contact-box a.email:hover,
.contact-box a.email:focus-visible {
  color: var(--accent);
}

.hint {
  color: var(--subtle);
  font-size: 0.9rem;
  max-width: 22rem;
}

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

footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.6rem;
  position: relative;
  z-index: 1;
}

footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--subtle);
  font-size: 0.88rem;
}

/* ---------- Focus ---------- */

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

/* ---------- Responsive ---------- */

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(7, 8, 11, 0.96);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem 1.5rem 1.6rem;
    gap: 1rem;
  }

  .nav.is-open .nav-links { display: flex; }

  .hero { padding: 4.5rem 0 4.2rem; }
  .hero-orbit { opacity: 0.28; width: 240px; height: 240px; top: 2rem; }

  .section-head { grid-template-columns: 1fr; gap: 0.45rem; }
  .split,
  .why .wrap,
  .roadmap {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  section { padding: 4.4rem 0; }
  .wrap { width: min(var(--max), calc(100% - 2rem)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
