:root {
  --bg: #f3f1ea;
  --ink: #111111;
  --muted: rgba(17, 17, 17, .62);
  --rule: rgba(17, 17, 17, .18);
  --pill: rgba(17, 17, 17, .3);
}
:root[data-theme="dark"] {
  --bg: #0e0d0b;
  --ink: #f3f1ea;
  --muted: rgba(243, 241, 234, .65);
  --rule: rgba(243, 241, 234, .18);
  --pill: rgba(243, 241, 234, .3);
}

html, body { margin: 0; padding: 0; }
html { background: var(--bg); color-scheme: light; }
html[data-theme="dark"] { color-scheme: dark; }
body { background: var(--bg); }

a { color: inherit; text-decoration: none; }
a:hover { opacity: .7; }
input { outline: none; }
input::placeholder { color: inherit; opacity: .45; }
button { -webkit-appearance: none; appearance: none; }
[hidden] { display: none !important; }

@keyframes srUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes srFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes srSweep { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

.page {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: .06em;
  box-sizing: border-box;
  padding: clamp(20px, 3vw, 32px) clamp(20px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
}
.muted { color: var(--muted); }
.ink { color: var(--ink); }

/* Row 1: nav */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 32px;
}
.wordmark { font-weight: 500; color: var(--ink); }
.wordmark:hover { opacity: 1; }
.nav-end { display: flex; gap: 24px; align-items: center; }
.pill {
  background: transparent;
  border: 1px solid var(--pill);
  border-radius: 999px;
  color: var(--ink);
  font: inherit;
  letter-spacing: inherit;
  padding: 6px 12px;
  cursor: pointer;
  min-height: 32px;
}
.pill:hover { border-color: var(--ink); }
@media (pointer: coarse) { .pill { min-height: 44px; padding: 6px 16px; } }

/* Row 2: hero */
.hero { display: flex; flex-direction: column; gap: clamp(24px, 4vw, 40px); }
h1 {
  font-family: 'Archivo', sans-serif;
  font-weight: 500;
  font-size: clamp(44px, 9.3vw, 118px);
  line-height: .98;
  letter-spacing: -.04em;
  margin: 0 auto;
  max-width: 1050px;
  text-align: center;
  text-wrap: balance;
  animation: srUp 1.2s cubic-bezier(.2, .7, .2, 1) .1s both;
}
h1 em {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.02em;
  font-size: 1.12em;
}
.rule {
  position: relative;
  width: 100%;
  height: 1px;
  background: var(--rule);
  overflow: hidden;
  animation: srFade 1s .8s both;
}
.sweep {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 30%, var(--ink), transparent 70%);
  animation: srSweep 4s cubic-bezier(.6, 0, .4, 1) infinite;
}

/* Home hero: the rule matches the waitlist width so headline + rule + form read as one block */
.hero .rule { width: min(100%, 420px); margin: 0 auto; }

/* Waitlist (under the headline) */
.waitlist {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(100%, 420px);
  margin: 0 auto;
  animation: srFade 1s 1s both;
}
.waitlist-form {
  display: flex;
  gap: 12px;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 8px;
}
.waitlist-form input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  padding: 8px 0;
}
.waitlist-form button {
  background: transparent;
  color: var(--ink);
  border: 0;
  font: inherit;
  letter-spacing: inherit;
  cursor: pointer;
  padding: 8px 0;
  min-height: 44px;
}
.waitlist-form button:disabled { cursor: progress; opacity: .6; }
.waitlist-done {
  border-bottom: 1px solid var(--ink);
  padding-bottom: 8px;
  font-size: 14px;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.waitlist-error { font-size: 12px; color: var(--muted); }

/* Row 3: footer, one thin line */
.footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px 32px;
  min-height: 44px;
  animation: srFade 1s 1s both;
}
.footer-location { grid-column: 1; justify-self: start; }
.footer-links { grid-column: 2; display: flex; gap: clamp(16px, 3vw, 40px); }
.footer-links a { color: var(--ink); }
.copyright { grid-column: 3; justify-self: end; text-align: right; }
@media (max-width: 900px) {
  .footer { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .footer-location, .footer-links, .copyright { grid-column: 1; justify-self: center; text-align: center; }
}

/* Company page */
.company { display: flex; flex-direction: column; gap: clamp(24px, 4vw, 40px); }
.company-title {
  font-size: clamp(40px, 6vw, 72px);
  text-align: left;
  margin: 0;
}
.company-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 32px 40px;
  animation: srFade 1s .8s both;
}
.company-block { display: flex; flex-direction: column; gap: 6px; line-height: 1.6; }
.company-block h2 {
  font: inherit;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 6px;
  text-transform: uppercase;
}
.company-block .founder-2 { margin-top: 8px; }
.company-block .back { margin-top: 16px; color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  .sweep { animation: none; }
  h1, .rule, .footer, .waitlist, .company-grid { animation: none; }
}
