/* ---------- design tokens ---------- */
:root {
  --bg: #faf7f2;
  --bg-2: #f3ece1;
  --ink: #1a1f2e;
  --ink-soft: #4a4f5e;
  --ink-mute: #7d7f88;
  --rule: #e7dfd1;
  --coral: #e5704a;
  --coral-deep: #c75a37;
  --olive: #5c6b4f;
  --olive-soft: #8a9779;

  --serif: "Newsreader", "Iowan Old Style", "Hoefler Text", Georgia, serif;
  --sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --container: 1080px;
  --container-narrow: 720px;
  --radius: 14px;
  --radius-lg: 22px;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img,
svg {
  max-width: 100%;
  display: block;
}
a {
  color: var(--ink);
  text-decoration: none;
}
button {
  font: inherit;
}
em {
  font-style: italic;
}

/* ---------- layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  padding: 0 28px;
  margin: 0 auto;
}
.container--narrow {
  max-width: var(--container-narrow);
}
.section {
  padding: 110px 0;
  position: relative;
}
@media (max-width: 720px) {
  .section {
    padding: 72px 0;
  }
}

/* ---------- typography ---------- */
.brand-mark {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.eyebrow,
.section__kicker {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--coral-deep);
  margin: 0 0 18px;
}
.section__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 22px;
  color: var(--ink);
}
.prose {
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 56ch;
  margin: 0 0 18px;
}
.section--centered {
  text-align: center;
}

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  background: rgba(250, 247, 242, 0.78);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.nav--scrolled {
  border-bottom-color: var(--rule);
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.nav__cta {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  border: 1px solid var(--ink);
  padding: 9px 16px;
  border-radius: 999px;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.nav__cta:hover {
  background: var(--ink);
  color: var(--bg);
}

/* ---------- buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 16px;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease),
    color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.button--primary {
  background: var(--coral);
  color: #fff;
  box-shadow: 0 8px 24px -10px rgba(229, 112, 74, 0.7);
}
.button--primary:hover {
  background: var(--coral-deep);
  transform: translateY(-1px);
}
.button--ghost {
  color: var(--ink);
  border: 1px solid var(--rule);
}
.button--ghost:hover {
  border-color: var(--ink);
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 120px 0 110px;
  overflow: hidden;
}
.hero__aurora {
  position: absolute;
  inset: -20% -10% auto auto;
  width: 70vw;
  height: 70vw;
  max-width: 900px;
  max-height: 900px;
  background: radial-gradient(
      40% 40% at 60% 40%,
      rgba(229, 112, 74, 0.28) 0%,
      rgba(229, 112, 74, 0) 70%
    ),
    radial-gradient(
      45% 45% at 30% 70%,
      rgba(92, 107, 79, 0.22) 0%,
      rgba(92, 107, 79, 0) 70%
    );
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
  animation: drift 16s ease-in-out infinite alternate;
}
@keyframes drift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(-3%, 2%, 0) scale(1.06);
  }
}
.hero .container {
  position: relative;
  z-index: 1;
}
.hero__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(34px, 5.2vw, 62px);
  line-height: 1.08;
  letter-spacing: -0.018em;
  color: var(--ink);
  margin: 0 0 28px;
  max-width: 20ch;
}
.hero__title em {
  font-style: italic;
  color: var(--coral-deep);
}
.hero__sub {
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 60ch;
  margin: 0 0 36px;
}
.hero__sub strong {
  font-weight: 600;
  color: var(--ink);
}
.hero__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---------- problem ---------- */
.problem {
  border-top: 1px solid var(--rule);
}
.pullquote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.35;
  color: var(--ink);
  border-left: 2px solid var(--coral);
  padding: 6px 0 6px 24px;
  margin: 32px 0 0;
  max-width: 36ch;
}

/* ---------- science ---------- */
.science {
  background: var(--bg-2);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.pillars {
  list-style: none;
  margin: 56px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 720px) {
  .pillars {
    grid-template-columns: 1fr;
  }
}
.pillar {
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 32px 30px 28px;
  position: relative;
}
.pillar__num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 14px;
  color: var(--coral-deep);
  letter-spacing: 0.04em;
}
.pillar__name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 26px;
  letter-spacing: -0.01em;
  margin: 8px 0 12px;
  color: var(--ink);
}
.pillar__body {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 18px;
}
.pillar__cite {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--olive);
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
}

/* ---------- core loop ---------- */
.loop {
}
.tabs {
  list-style: none;
  margin: 56px 0 48px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 720px) {
  .tabs {
    grid-template-columns: 1fr;
  }
}
.tab {
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 30px;
  background: linear-gradient(180deg, #fff 0%, var(--bg) 100%);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}
.tab:hover {
  transform: translateY(-2px);
  border-color: var(--coral);
  box-shadow: 0 18px 40px -24px rgba(26, 31, 46, 0.25);
}
.tab__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg-2);
  font-size: 22px;
  margin-bottom: 18px;
}
.tab__name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 28px;
  letter-spacing: -0.01em;
  margin: 0 0 4px;
  color: var(--ink);
}
.tab__role {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--coral-deep);
  margin: 0 0 14px;
}
.tab__body {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
}
.loop__chain {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 14px;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(16px, 1.7vw, 19px);
  color: var(--ink);
  text-align: center;
  padding: 28px 24px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.loop__arrow {
  color: var(--coral);
  font-style: normal;
}

/* ---------- promise ---------- */
.promise {
  text-align: center;
  border-top: 1px solid var(--rule);
}
.promise__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(26px, 3.3vw, 38px);
  line-height: 1.3;
  color: var(--ink);
  margin: 0 0 18px;
}
.promise__line {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.35;
  color: var(--coral-deep);
  margin: 0;
}

/* ---------- waitlist ---------- */
.waitlist {
  background: var(--bg-2);
  border-top: 1px solid var(--rule);
  text-align: center;
}
.waitlist .prose {
  margin-left: auto;
  margin-right: auto;
}
.waitlist__form {
  margin: 36px auto 0;
  max-width: 560px;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 22px 22px 14px;
  text-align: left;
  box-shadow: 0 24px 60px -36px rgba(26, 31, 46, 0.35);
}
.waitlist__form iframe {
  width: 100%;
  border: 0;
  display: block;
}

/* ---------- footer ---------- */
.footer {
  padding: 36px 0 56px;
  border-top: 1px solid var(--rule);
}
.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer__brand {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--ink);
}
.footer__copy {
  font-size: 13px;
  color: var(--ink-mute);
}

/* ---------- scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

/* ---------- small screen tweaks ---------- */
@media (max-width: 720px) {
  .nav {
    padding: 14px 20px;
  }
  .container {
    padding: 0 22px;
  }
  .hero {
    padding: 84px 0 72px;
  }
  .pullquote {
    padding-left: 18px;
  }
}
