:root {
  --black: #050706;
  --deep: #0c1210;
  --ink: #f6f1e8;
  --muted: rgba(246, 241, 232, 0.68);
  --quiet: rgba(246, 241, 232, 0.46);
  --line: rgba(246, 241, 232, 0.13);
  --green: #8bb9a5;
  --blue: #8faac8;
  --gold: #d5aa76;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--black);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

.ambient {
  position: fixed;
  inset: -30vh -20vw;
  z-index: -2;
  background:
    radial-gradient(ellipse at 28% 18%, rgba(79, 143, 123, 0.26), transparent 34%),
    radial-gradient(ellipse at 74% 22%, rgba(72, 111, 156, 0.2), transparent 32%),
    radial-gradient(ellipse at 54% 78%, rgba(177, 132, 88, 0.17), transparent 38%),
    linear-gradient(180deg, #050706 0%, #101512 52%, #050706 100%);
  animation: ambient-drift 22s ease-in-out infinite alternate;
  filter: blur(1px);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(rgba(246, 241, 232, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(246, 241, 232, 0.022) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: linear-gradient(to bottom, transparent, black 18%, black 70%, transparent);
}

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 54px);
  border-bottom: 1px solid rgba(246, 241, 232, 0.09);
  background: rgba(5, 7, 6, 0.72);
  backdrop-filter: blur(20px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand img {
  width: 34px;
  height: 34px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  color: var(--muted);
  font-size: 0.94rem;
}

.nav-cluster {
  display: grid;
  justify-items: end;
  gap: 10px;
}

.nav a {
  text-decoration: none;
}

.nav a:hover {
  color: var(--ink);
}

.beta-test-button {
  min-height: 38px;
  border: 1px solid rgba(213, 170, 118, 0.42);
  border-radius: 999px;
  background: rgba(213, 170, 118, 0.09);
  color: #fff7df;
  padding: 0 16px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.beta-test-button:hover {
  background: rgba(213, 170, 118, 0.17);
}

.wavevest-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
}

.wavevest-modal.hidden {
  display: none;
}

.wavevest-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.72);
  cursor: pointer;
}

.wavevest-dialog {
  position: relative;
  width: min(520px, 100%);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(12, 18, 16, 0.96);
  box-shadow: 0 36px 120px rgba(0, 0, 0, 0.62);
  padding: clamp(28px, 5vw, 42px);
}

.wavevest-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(246, 241, 232, 0.04);
  color: var(--muted);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.wavevest-dialog h2 {
  margin-bottom: 16px;
  font-size: clamp(2.6rem, 8vw, 4.8rem);
}

.wavevest-dialog p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

.wavevest-dialog form {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}

.wavevest-dialog label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.wavevest-dialog input {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(246, 241, 232, 0.055);
  color: var(--ink);
  padding: 0 14px;
  font: inherit;
}

.wavevest-dialog form button {
  min-height: 54px;
  border: 0;
  border-radius: 6px;
  background: var(--green);
  color: #08100d;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.wavevest-status {
  min-height: 22px;
  color: var(--green);
  font-size: 0.92rem;
}

.wavevest-status.error {
  color: #f0aaa0;
}

main {
  width: 100%;
}

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(320px, 0.94fr);
  gap: clamp(34px, 7vw, 100px);
  align-items: center;
  padding: clamp(62px, 9vw, 128px) clamp(22px, 7vw, 118px);
}

.hero-copy {
  max-width: 820px;
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  letter-spacing: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(4.2rem, 10vw, 10.4rem);
  line-height: 0.9;
}

h2 {
  margin-bottom: 28px;
  font-size: clamp(2.8rem, 6.5vw, 7rem);
  line-height: 0.96;
}

h1 span,
h2 span,
mark {
  color: #fff7df;
  background: transparent;
  text-shadow: 0 0 32px rgba(213, 170, 118, 0.28);
}

.hero-image {
  min-height: clamp(420px, 62vw, 720px);
  overflow: hidden;
  border-radius: 10px;
  background: rgba(246, 241, 232, 0.08);
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.45);
}

.hero-image img,
.body-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.86) contrast(1.05) brightness(0.8);
}

.passage,
.question,
.definition,
.signals,
.resonance,
.uses,
.next,
.final {
  padding: clamp(86px, 14vw, 178px) clamp(22px, 7vw, 118px);
}

.narrow {
  max-width: 980px;
  margin: 0 auto;
}

.passage p,
.experience-card p,
.definition p,
.resonance p,
.next p,
.final p {
  color: var(--muted);
  font-size: clamp(1.32rem, 2.15vw, 2rem);
  line-height: 1.72;
}

.passage p + p,
.experience-card p + p,
.next p + p {
  margin-top: 22px;
}

.pause {
  margin-top: clamp(74px, 12vw, 150px);
}

.experience {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(84px, 14vw, 180px) clamp(22px, 7vw, 118px);
}

.experience-card {
  width: min(860px, 100%);
  padding: clamp(30px, 6vw, 74px);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(246, 241, 232, 0.035);
  box-shadow: inset 0 1px 0 rgba(246, 241, 232, 0.08);
}

.question {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.question h2 {
  max-width: 1080px;
}

.question-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 4vw, 54px);
  margin-top: 54px;
}

.question-grid p,
.careful,
.use-grid span {
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.72;
}

.story {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.8fr);
  gap: clamp(34px, 7vw, 100px);
  align-items: center;
  min-height: 100vh;
  padding: clamp(84px, 14vw, 180px) clamp(22px, 7vw, 118px);
}

.story-copy p {
  color: var(--muted);
  font-size: clamp(1.16rem, 1.8vw, 1.6rem);
  line-height: 1.7;
}

blockquote {
  margin: clamp(42px, 7vw, 80px) 0 0;
  padding-left: 22px;
  border-left: 2px solid var(--gold);
  color: #fff7df;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.8rem, 3.6vw, 4rem);
  line-height: 1.08;
}

.body-image {
  height: clamp(420px, 58vw, 700px);
  overflow: hidden;
  border-radius: 10px;
  background: rgba(246, 241, 232, 0.07);
}

.definition,
.resonance,
.next,
.final {
  max-width: 1180px;
  margin: 0 auto;
}

.definition p,
.resonance p,
.next p {
  max-width: 900px;
}

.signals {
  max-width: 1260px;
  margin: 0 auto;
}

.signals ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 44px 0 28px;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--line);
  list-style: none;
}

.signals li {
  min-height: 86px;
  display: flex;
  align-items: center;
  padding: 22px 24px;
  background: rgba(5, 7, 6, 0.82);
  color: rgba(246, 241, 232, 0.82);
  font-size: 1.08rem;
}

.careful {
  max-width: 720px;
  color: var(--quiet);
}

.use-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 44px;
  border: 1px solid var(--line);
  background: var(--line);
}

.use-grid span {
  min-height: 110px;
  display: flex;
  align-items: center;
  padding: 24px;
  background: rgba(246, 241, 232, 0.035);
}

.closing-list {
  margin-top: clamp(58px, 10vw, 118px);
}

.closing-list p {
  margin-bottom: 16px;
  color: #fff7df;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2rem, 5vw, 5.4rem);
  line-height: 0.98;
}

.final {
  min-height: 100vh;
  display: grid;
  align-content: center;
}

.final h2 {
  max-width: 1160px;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 34px clamp(22px, 7vw, 118px);
  border-top: 1px solid var(--line);
  color: var(--quiet);
  font-size: 0.92rem;
}

.footer a {
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 900ms ease,
    transform 900ms ease;
}

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

@keyframes ambient-drift {
  0% {
    transform: translate3d(-1.5vw, -1vh, 0) scale(1);
  }
  100% {
    transform: translate3d(1.8vw, 1.4vh, 0) scale(1.035);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .ambient,
  .reveal {
    animation: none;
    transition: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 900px) {
  .hero,
  .story,
  .question-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
  }

  .question-grid,
  .use-grid,
  .signals ul {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .nav-cluster {
    justify-items: start;
  }

  h1 {
    font-size: clamp(3.4rem, 17vw, 5.2rem);
  }

  h2 {
    font-size: clamp(2.6rem, 13vw, 4.2rem);
  }

  .hero-image,
  .body-image {
    min-height: 360px;
    height: 360px;
  }
}
