@font-face {
  font-family: "Geist Var";
  src: url("/static/fonts/geist-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono Var";
  src: url("/static/fonts/geist-mono-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bone: #e6dccb;
  --bone-bright: #f7efe1;
  --amber: #d9a05a;
  --gold: #e8c47a;
  --gold-hover: #f3d798;
  --ink: #120d06;
  --bar: clamp(48px, min(11vh, calc((100vh - 100vw / 2.39) / 2)), 13vh);
  --bar-top: var(--bar);
  --bar-bottom: var(--bar);
  --pad-x: clamp(20px, 4vw, 56px);
}

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

html {
  background: #000;
  color-scheme: dark;
  scroll-behavior: smooth;
  scrollbar-color: rgba(230, 220, 203, 0.24) #000;
  scrollbar-width: thin;
}

::selection {
  background: rgba(232, 196, 122, 0.28);
  color: var(--bone-bright);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

body {
  color: var(--bone);
  font-family: "Geist Var", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* shown only when WebGL2 is missing */
  background: radial-gradient(120% 80% at 46% 58%, #6b5038 0%, #2a2018 38%, #0a0806 75%, #000 100%) fixed;
}

.mono {
  font-family: "Geist Mono Var", ui-monospace, Menlo, monospace;
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  background: var(--gold);
  color: var(--ink);
  padding: 12px 18px;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform 0.2s ease;
}
.skip-link:focus-visible {
  transform: translateY(0);
}

#world,
#hero-3d {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100lvh; /* stays put while the iOS toolbar slides */
  display: block;
  pointer-events: none;
}
#hero-3d {
  z-index: 0;
}
body.in-slate #hero-3d {
  visibility: hidden;
}

.bar {
  position: fixed;
  left: 0;
  right: 0;
  background: #000;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad-x);
  color: rgba(230, 220, 203, 0.65);
}
.bar-top {
  top: 0;
  height: var(--bar-top);
  transition: opacity 0.35s ease;
}
.bar-bottom {
  bottom: 0;
  height: var(--bar-bottom);
}
body.in-slate .bar-top {
  opacity: 0;
  pointer-events: none;
}

.mark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 13px;
  letter-spacing: 0.65em;
  color: var(--bone);
  text-decoration: none;
  transition: color 0.3s ease;
}
.mark:hover, .mark:focus-visible { color: var(--gold); }

.top-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.top-nav .nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
  color: rgba(230, 220, 203, 0.78);
  text-decoration: none;
  transition: color 0.3s ease;
}
.top-nav .nav-link:hover, .top-nav .nav-link:focus-visible { color: var(--gold); }

.top-nav .nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin-left: clamp(16px, 2.2vw, 32px);
  padding: 0 18px;
  color: var(--ink);
  background: var(--gold);
  border: 1px solid var(--gold);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  max-width: 240px;
  opacity: 1;
  transition:
    opacity 0.45s ease,
    max-width 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    margin-left 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    padding 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.25s ease,
    border-color 0.25s ease;
}
.top-nav .nav-cta:hover, .top-nav .nav-cta:focus-visible {
  background: var(--gold-hover);
  border-color: var(--gold-hover);
  color: var(--ink);
}
/* Collapse out of layout flow before scrolling past hero so Research stays flush right on all viewports. */
body:not(.past-hero) .top-nav .nav-cta {
  max-width: 0;
  margin-left: 0;
  padding-left: 0;
  padding-right: 0;
  border-left-width: 0;
  border-right-width: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.hint { animation: breathe 4s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: 0.3; } }

main { position: relative; z-index: 2; }

/* 600vh scroll runway with a single sticky viewport so shots cross-fade cleanly with zero dead zones. */
.film-stage {
  position: relative;
  height: 600vh;
}
.shot-viewport {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.shot {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: calc(var(--bar-top) + 24px) var(--pad-x) calc(var(--bar-bottom) + 6vh);
  opacity: 0;
  pointer-events: none;
  will-change: opacity, transform;
}
.shot.on { pointer-events: auto; }
.shot-right { align-items: flex-end; text-align: right; }

/* One fixed shade per side behind the copy; it fades with the copy, so it has no edges to scroll past. */
.shade {
  position: fixed;
  inset: 0;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
}
.shade-left { background: linear-gradient(to top right, rgba(8, 6, 4, 0.84) 0%, rgba(8, 6, 4, 0.5) 32%, rgba(8, 6, 4, 0) 62%); }
.shade-right { background: linear-gradient(to top left, rgba(8, 6, 4, 0.68) 0%, rgba(8, 6, 4, 0.32) 28%, rgba(8, 6, 4, 0) 52%); }

.shot-label {
  color: var(--gold);
  margin-bottom: 14px;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.85);
}

.shot p {
  font-size: clamp(19px, 1.9vw, 28px);
  letter-spacing: 0.06em;
  max-width: 24ch;
  line-height: 1.45;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.82), 0 0 6px rgba(0, 0, 0, 0.45);
}

/* Hero lockup: DOM keeps kicker before h1 for agent Markdown while visual order places ANJO at the apex. */
.title h1 {
  order: -1;
  font-weight: 300;
  font-size: clamp(44px, 6.2vw, 96px);
  line-height: 1;
  letter-spacing: 0.3em;
  color: var(--bone-bright);
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.65);
}
.title .hero-sub {
  margin-top: 14px;
  font-size: 12px;
  letter-spacing: 0.22em;
  line-height: 1.5;
  max-width: none;
  color: var(--gold);
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.9);
}
.title .hero-lede {
  margin-top: clamp(16px, 2.4vh, 24px);
  max-width: 42ch;
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.6;
  letter-spacing: 0.015em;
  color: rgba(247, 239, 225, 0.94);
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.92), 0 0 4px rgba(0, 0, 0, 0.65);
}
.hero-cta {
  margin-top: clamp(20px, 3vh, 30px);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
}
.fine, .title .fine {
  margin-top: 16px;
  max-width: none;
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0.025em;
  color: rgba(230, 220, 203, 0.82);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.92);
}
.fine.disclosure {
  max-width: 62ch;
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: rgba(230, 220, 203, 0.72);
  text-shadow: none;
}
.title .hint {
  position: absolute;
  right: var(--pad-x);
  bottom: calc(var(--bar-bottom) + 6vh);
  color: rgba(247, 239, 225, 0.78);
}

/* Chapter progress rail */
.film-rail {
  position: absolute;
  right: clamp(12px, 2.2vw, 32px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  transition: opacity 0.35s ease;
}
body.in-slate .film-rail {
  opacity: 0;
  pointer-events: none;
}
.film-rail button {
  appearance: none;
  background: transparent;
  border: 0;
  width: 44px;
  height: 28px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  cursor: pointer;
}
.rail-tick {
  display: block;
  width: 12px;
  height: 1px;
  background: rgba(230, 220, 203, 0.38);
  transition: width 0.3s ease, background-color 0.3s ease;
}
.film-rail button:hover .rail-tick,
.film-rail button:focus-visible .rail-tick {
  width: 22px;
  background: var(--bone);
}
.film-rail button[aria-current="step"] .rail-tick {
  width: 28px;
  height: 2px;
  background: var(--gold);
}

/* Claims slate */
.slate {
  position: relative;
  z-index: 4;
  background: #000;
  min-height: 100vh;
  padding: clamp(96px, 15vh, 172px) var(--pad-x) clamp(64px, 10vh, 120px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.slate-lede {
  font-weight: 300;
  font-size: clamp(24px, 2.5vw, 36px);
  letter-spacing: 0.08em;
  text-align: center;
  color: var(--bone-bright);
  margin-bottom: clamp(56px, 10vh, 112px);
}

.slate-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 36ch));
  gap: clamp(40px, 7vh, 72px) clamp(40px, 8vw, 120px);
  justify-content: center;
}

.slate dt {
  color: var(--gold);
  margin-bottom: 12px;
}
.slate dd {
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: 0.015em;
  color: rgba(230, 220, 203, 0.86);
}

/* Restrained product artifact: one editable written view */
.artifact {
  margin-top: clamp(72px, 12vh, 128px);
  width: min(100%, 66ch);
  padding: clamp(28px, 4vw, 44px) 0;
  border-top: 1px solid rgba(230, 220, 203, 0.18);
  border-bottom: 1px solid rgba(230, 220, 203, 0.18);
}
.artifact-meta {
  color: var(--gold);
  margin-bottom: 20px;
}
.artifact-quote {
  font-size: clamp(19px, 1.8vw, 24px);
  font-weight: 300;
  line-height: 1.55;
  letter-spacing: 0.01em;
  color: var(--bone-bright);
  transition: opacity 0.3s ease;
}
.artifact.is-erased .artifact-quote {
  opacity: 0.32;
  text-decoration: line-through;
}
.artifact-trace {
  margin-top: 18px;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(230, 220, 203, 0.68);
}
.artifact-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}
.artifact-btn {
  appearance: none;
  background: transparent;
  color: rgba(230, 220, 203, 0.82);
  border: 1px solid rgba(230, 220, 203, 0.28);
  min-height: 44px;
  padding: 0 18px;
  cursor: pointer;
  transition: border-color 0.25s ease, color 0.25s ease, background-color 0.25s ease;
}
.artifact-btn:hover,
.artifact-btn:focus-visible {
  border-color: var(--gold);
  color: var(--gold);
}
.artifact-btn[aria-pressed="true"] {
  border-color: var(--gold);
  color: var(--ink);
  background: var(--gold);
}
.artifact-status {
  margin-top: 16px;
  min-height: 1.5em;
  font-size: 14px;
  line-height: 1.55;
  color: var(--gold);
}

.slate-close {
  margin-top: clamp(84px, 15vh, 168px);
  font-weight: 200;
  font-size: clamp(24px, 3.2vw, 46px);
  letter-spacing: 0.06em;
  text-align: center;
  line-height: 1.32;
  color: var(--bone-bright);
  text-wrap: balance;
}

/* Go deeper: three ways in, read as a contents page, not as cards. */
.deeper {
  margin-top: clamp(64px, 11vh, 116px);
  width: min(100%, 1080px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(230, 220, 203, 0.18);
}
.deeper a {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 32px 28px 36px 0;
  color: var(--bone);
  text-decoration: none;
  transition: color 0.3s ease;
}
.deeper a + a { padding-left: 28px; border-left: 1px solid rgba(230, 220, 203, 0.18); }
.deeper .mono { color: var(--gold); }
.deeper strong { font-weight: 300; font-size: clamp(19px, 1.6vw, 24px); letter-spacing: 0.03em; line-height: 1.3; }
.deeper em { font-style: normal; font-size: 15px; line-height: 1.6; color: rgba(230, 220, 203, 0.74); }
.deeper strong::after { content: "\2192"; display: inline-block; margin-left: 0.5em; transition: transform 0.3s ease; }
.deeper a:hover strong, .deeper a:focus-visible strong { color: var(--gold); }
.deeper a:hover strong::after, .deeper a:focus-visible strong::after { transform: translateX(6px); }

.members {
  margin-top: clamp(56px, 9vh, 96px);
  width: min(100%, 1080px);
  padding: clamp(28px, 4vh, 40px) 0;
  border-top: 1px solid rgba(230, 220, 203, 0.14);
  border-bottom: 1px solid rgba(230, 220, 203, 0.14);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.members-label {
  color: rgba(230, 220, 203, 0.62);
}
.members-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px clamp(32px, 5vw, 56px);
}
.members-logos a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  opacity: 0.85;
  transition: opacity 0.25s ease;
}
.members-logos a:hover,
.members-logos a:focus-visible {
  opacity: 1;
}
.members-logos img {
  display: block;
  height: 54px;
  width: auto;
  max-width: 100%;
}
.members-logos img.google-startups-logo {
  height: 20px;
}

.slate-nav {
  margin-top: 56px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
}

/* Unified CTA grammar */
.enter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  color: var(--bone);
  text-decoration: none;
  padding: 0 26px;
  border: 1px solid rgba(230, 220, 203, 0.42);
  transition: border-color 0.25s ease, color 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
}
.enter:hover, .enter:focus-visible {
  border-color: var(--gold);
  color: var(--gold);
}
.enter.quiet {
  border-color: transparent;
  padding-left: 0;
  padding-right: 0;
  color: rgba(230, 220, 203, 0.88);
  text-decoration: underline;
  text-decoration-color: rgba(230, 220, 203, 0.32);
  text-underline-offset: 8px;
}
.enter.quiet:hover, .enter.quiet:focus-visible {
  border-color: transparent;
  color: var(--gold);
  text-decoration-color: var(--gold);
}
.enter.solid {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}
.enter.solid:hover, .enter.solid:focus-visible {
  background: var(--gold-hover);
  border-color: var(--gold-hover);
  color: var(--ink);
  transform: translateY(-1px);
}

.site-footer {
  margin-top: clamp(56px, 9vh, 96px);
  width: min(100%, 1080px);
  padding-top: 28px;
  border-top: 1px solid rgba(230, 220, 203, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.footer-row {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
}
.legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  align-items: center;
}
.legal a,
.back-top {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  min-width: 44px;
  color: rgba(230, 220, 203, 0.74);
  text-decoration: none;
  transition: color 0.25s ease;
}
.how {
  width: 100%;
}
.how a {
  color: rgba(230, 220, 203, 0.56);
}
.legal a:hover, .legal a:focus-visible,
.back-top:hover, .back-top:focus-visible {
  color: var(--gold);
}

/* Waitlist dialog: only reachable when the iOS launch state sends the CTAs to #waitlist. */
.waitlist-dialog {
  width: min(92vw, 420px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  background: #0e0d0b;
  color: var(--bone);
  padding: 32px;
  box-shadow: 0 24px 64px -16px rgba(0, 0, 0, 0.7);
  margin: auto;
}
.waitlist-dialog::backdrop { background: rgba(5, 5, 6, 0.66); backdrop-filter: blur(3px); }
.waitlist-close {
  position: absolute; top: 10px; right: 12px; width: 32px; height: 32px;
  border: none; background: transparent; color: rgba(230, 220, 203, 0.6); font-size: 24px; line-height: 1;
  cursor: pointer; border-radius: 10px;
}
.waitlist-close:hover { color: var(--bone); }
.waitlist-dialog h2 { font-weight: 300; font-size: 22px; margin: 0 0 8px; }
.waitlist-sub { color: rgba(230, 220, 203, 0.7); font-size: 14px; line-height: 1.5; margin: 0 0 24px; }
.waitlist-dialog form { display: flex; flex-direction: column; gap: 12px; }
.waitlist-dialog input[type="email"] {
  height: 46px; padding: 0 14px; border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.03); color: var(--bone);
  font: inherit; font-size: 15px; width: 100%;
}
.waitlist-dialog input[type="email"]:focus { outline: none; border-color: var(--gold); }
.waitlist-dialog button[type="submit"] {
  height: 46px; border: 0; border-radius: 10px; background: var(--gold); color: var(--ink); font: inherit; cursor: pointer;
}
.waitlist-msg { margin: 8px 0 0; font-size: 13px; min-height: 1.2em; }
.waitlist-msg[data-kind="error"] { color: #e88; }
.waitlist-msg[data-kind="success"] { color: var(--gold); }
.waitlist-fineprint { color: rgba(230, 220, 203, 0.55); font-size: 12px; margin: 24px 0 0; }
.waitlist-fineprint a { color: rgba(230, 220, 203, 0.7); text-decoration: underline; }

@media (max-width: 720px) {
  :root {
    --bar-top: 64px;
    --bar-bottom: max(12px, env(safe-area-inset-bottom, 0px));
  }
  .mono {
    font-size: 12px;
    letter-spacing: 0.16em;
  }
  .title .hero-sub {
    letter-spacing: 0.16em;
  }
  .top-nav .nav-cta {
    padding: 0 12px;
    margin-left: 12px;
    min-height: 44px;
  }
  .title h1 {
    font-size: 44px;
    letter-spacing: 0.24em;
  }
  .title .hero-lede {
    font-size: 15px;
    max-width: 34ch;
  }
  .hero-cta {
    margin-top: 20px;
    gap: 10px 20px;
  }
  .title .hint {
    position: static;
    margin-top: 16px;
    display: inline-block;
  }
  .shot {
    padding-bottom: calc(var(--bar-bottom) + 28px);
  }
  .film-rail {
    right: 6px;
  }
  .shade-left, .shade-right {
    background: linear-gradient(to top, rgba(8, 6, 4, 0.9) 0%, rgba(8, 6, 4, 0.68) 48%, rgba(8, 6, 4, 0.15) 74%, rgba(8, 6, 4, 0) 90%);
  }
  .slate-grid {
    grid-template-columns: minmax(0, 40ch);
  }
  .deeper {
    grid-template-columns: 1fr;
  }
  .deeper a, .deeper a + a {
    padding: 24px 0;
    border-left: 0;
  }
  .deeper a + a {
    border-top: 1px solid rgba(230, 220, 203, 0.18);
  }
  .members-logos img {
    height: 46px;
  }
  .members-logos img.google-startups-logo {
    height: 17px;
  }
  .footer-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hint { animation: none; }
  .shot, .bar-top, .top-nav .nav-cta, .enter, .deeper strong::after, .rail-tick {
    transition: none;
  }
}
