/* apps/site/site.css */
:root {
  --bg: #faf9f6;
  --bg-warm: #f3f0ea;
  --bg-card: #fff;
  --ink: #18181b;
  --ink-secondary: #52525b;
  --ink-tertiary: #a1a1aa;
  --border: #0000000f;
  --border-strong: #0000001a;
  --burgundy: #991b1b;
  --burgundy-soft: #991b1b0f;
  --green-1: #3b6b4a;
  --green-2: #5a9e6f;
  --green-soft: #3b6b4a0f;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  font-family: DM Sans, -apple-system, sans-serif;
}

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

.ambient {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(80% 60% at 70% 0%, #3b6b4a12 0%, #0000 60%), radial-gradient(60% 50% at 0%, #3b6b4a0a 0%, #0000 50%), radial-gradient(50% 40% at 90% 90%, #991b1b08 0%, #0000 50%);
  inset: 0;
}

.wrap {
  position: relative;
  z-index: 1;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items:  center;
  padding: 24px 0;
}

.nav-brand {
  color: var(--ink);
  font-family: Instrument Serif, Georgia, serif;
  font-size: 1.5rem;
  font-style: italic;
}

.nav-cta {
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--border-strong);
  cursor: pointer;
  background: none;
  border-radius: 100px;
  padding: 8px 20px;
  transition: all .2s;
  font-family: DM Sans, sans-serif;
  font-size: .84rem;
  font-weight: 500;
}

.nav-cta:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.hero {
  text-align: center;
  padding: 100px 0 120px;
}

.hero-pill {
  display: inline-flex;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--ink-secondary);
  border-radius: 100px;
  align-items:  center;
  gap: 8px;
  margin-bottom: 32px;
  padding: 6px 16px;
  font-size: .8rem;
  font-weight: 500;
}

.hero-pill-dot {
  background: var(--green-1);
  border-radius: 50%;
  width: 6px;
  height: 6px;
}

.hero h1 {
  letter-spacing: -.02em;
  max-width: 16ch;
  margin: 0 auto 28px;
  font-family: Instrument Serif, Georgia, serif;
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 400;
  line-height: 1.1;
}

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

.hero-sub {
  color: var(--ink-secondary);
  max-width: 52ch;
  margin: 0 auto 44px;
  font-size: 1.15rem;
  line-height: 1.65;
}

.hero-cta {
  display: inline-flex;
  color: var(--bg);
  background: var(--ink);
  cursor: pointer;
  border: none;
  border-radius: 100px;
  align-items:  center;
  gap: 10px;
  padding: 14px 32px;
  transition: all .25s;
  font-family: DM Sans, sans-serif;
  font-size: .95rem;
  font-weight: 500;
}

.hero-cta:hover {
  background: #2d2d30;
  transform: translateY(-1px);
  box-shadow: 0 8px 32px #0000001f;
}

.hero-cta:active {
  transform: translateY(0);
}

.hero-cta-arrow {
  transition: transform .2s;
  font-size: 1.1rem;
}

.hero-cta:hover .hero-cta-arrow {
  transform: translateX(2px);
}

.hero-hint {
  color: var(--ink-tertiary);
  margin-top: 14px;
  font-size: .82rem;
}

.section-divider {
  background: var(--border);
  border: none;
  max-width: 1080px;
  height: 1px;
  margin: 0 auto;
}

.ask {
  padding: 96px 0;
}

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

.ask h2 {
  letter-spacing: -.01em;
  position: sticky;
  font-family: Instrument Serif, Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 400;
  line-height: 1.2;
  top: 80px;
}

.ask-body p {
  color: var(--ink-secondary);
  margin-bottom: 20px;
  font-size: 1.05rem;
  line-height: 1.75;
}

.ask-body p:last-child {
  margin-bottom: 0;
}

.ask-body strong {
  color: var(--ink);
  font-weight: 600;
}

.team {
  background: var(--bg-warm);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.team-inner {
  padding: 80px 0;
}

.team-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 40px;
}

.team h2 {
  font-family: Instrument Serif, Georgia, serif;
  font-size: 1.8rem;
  font-weight: 400;
}

.team-affiliation {
  color: var(--ink-tertiary);
  letter-spacing: .02em;
  font-size: .88rem;
  font-weight: 500;
}

.founders-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
  gap: 16px;
}

.founder-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 24px;
  transition: box-shadow .2s, transform .2s;
}

.founder-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 24px #0000000d;
}

.founder-name {
  margin-bottom: 4px;
  font-size: 1.05rem;
  font-weight: 600;
}

.founder-title {
  color: var(--ink-tertiary);
  font-size: .84rem;
}

.footer {
  padding: 48px 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items:  center;
  gap: 16px;
}

.footer-brand {
  color: var(--ink-tertiary);
  font-family: Instrument Serif, Georgia, serif;
  font-size: 1.15rem;
  font-style: italic;
}

.footer-links {
  display: flex;
  align-items:  center;
  gap: 24px;
}

.footer-link {
  color: var(--ink-secondary);
  text-decoration: none;
  transition: color .2s;
  font-size: .88rem;
}

.footer-link:hover {
  color: var(--ink);
}

.footer-dot {
  background: var(--ink-tertiary);
  border-radius: 50%;
  width: 3px;
  height: 3px;
}

.reveal {
  opacity: 0;
  transition: opacity .6s cubic-bezier(.22,1,.36,1), transform .6s cubic-bezier(.22,1,.36,1);
  transform: translateY(24px);
}

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

.hero-enter {
  opacity: 0;
  animation: enter .7s cubic-bezier(.22, 1, .36, 1) forwards;
  transform: translateY(16px);
}

.hero-enter-d1 {
  animation-delay: 50ms;
}

.hero-enter-d2 {
  animation-delay: .12s;
}

.hero-enter-d3 {
  animation-delay: .2s;
}

.hero-enter-d4 {
  animation-delay: .3s;
}

.hero-enter-d5 {
  animation-delay: .38s;
}

@keyframes enter {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.error-bar {
  color: var(--burgundy);
  text-align: center;
  background: #991b1b0f;
  border-bottom: 1px solid #991b1b1f;
  padding: 10px 20px;
  font-size: .88rem;
}

@media (max-width: 768px) {
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero {
    padding: 64px 0 80px;
  }

  .hero h1 {
    font-size: 2.4rem;
  }

  .ask {
    padding: 64px 0;
  }

  .ask-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .ask h2 {
    position: static;
  }

  .team-inner {
    padding: 56px 0;
  }

  .founders-row {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    align-items:  flex-start;
    gap: 20px;
  }

  .footer-links {
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 48px 0 64px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-sub {
    font-size: 1.02rem;
  }

  .hero-cta {
    justify-content: center;
    width: 100%;
  }
}
