:root {
  --ink: #1f040f;
  --oxblood: #4e0000;
  --cream: #f3eddd;
  --stone: #e5ded6;

  --gutter: clamp(20px, 5.5vw, 88px);
  --radius: 10px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: light;
  scrollbar-color: var(--oxblood) var(--cream);
}

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

html {
  background: var(--ink);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--oxblood); color: var(--cream); }
.talk ::selection,
.hero ::selection { background: var(--cream); color: var(--oxblood); }

img { display: block; max-width: 100%; height: auto; }
h1, h2, p { margin: 0; }
h1, h2 { font-weight: 600; text-wrap: balance; }

a:focus-visible,
button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 28px;
  border: 0;
  border-radius: var(--radius);
  font: inherit;
  font-size: 1rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.25s var(--ease-out), color 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}
.button:active { transform: translateY(1px); }

.button--cream { background: var(--cream); color: var(--ink); }
.button--cream:hover { background: var(--ink); color: var(--cream); }
.button--cream:focus-visible { outline-color: var(--cream); }

.button--oxblood { background: var(--oxblood); color: var(--cream); }
.button--oxblood:hover { background: var(--ink); }
.button--oxblood:focus-visible { outline-color: var(--oxblood); }
.button[disabled] { cursor: progress; background: var(--ink); }

/* Hero */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto 1fr;
  gap: clamp(40px, 6vh, 96px) var(--gutter);
  padding: clamp(28px, 6.4vh, 72px) var(--gutter) clamp(32px, 6.6vh, 72px);
  background: var(--oxblood);
  color: var(--cream);
}

.hero__art {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% 50%;
  transform-origin: 30% 50%;
  animation: art-settle 1.9s var(--ease-out) backwards;
}

.hero__logo {
  align-self: start;
  justify-self: start;
  display: block;
  width: clamp(72px, 6.4vw, 104px);
}
.hero__logo img { width: 100%; }

.hero__headline {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: clamp(24px, 3.4vh, 40px);
  text-align: right;
}

.hero h1 {
  font-size: clamp(2.75rem, 6.1vw, 6rem);
  line-height: 1.03;
  letter-spacing: -0.04em;
}
.hero h1 span {
  display: block;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
  color: var(--cream);
  animation: line-focus 1.5s var(--ease-out) backwards;
}
.hero h1 span:nth-child(2) { animation-delay: 0.09s; }
.hero h1 span:nth-child(3) { animation-delay: 0.18s; }

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero h1 span {
    background: linear-gradient(90deg, rgb(243 237 221 / 0.86), var(--cream) 62%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

.hero__lede {
  grid-column: 1 / -1;
  align-self: end;
  max-width: 38ch;
  font-size: clamp(1.1875rem, 1.95vw, 1.875rem);
  line-height: 1.68;
  letter-spacing: -0.025em;
}

.chip {
  display: inline-block;
  padding: 0 0.55em;
  border-radius: var(--radius);
  background: rgb(243 237 221 / 0.17);
  font-size: 0.8em;
  line-height: 1.75;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

@keyframes art-settle {
  from { transform: translateX(-3.5%) scale(1.09); filter: blur(22px); }
}
@keyframes line-focus {
  from { opacity: 0.15; transform: translateX(-32px); filter: blur(10px); }
}

/* Waitlist */

.waitlist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 6vw, 96px);
  align-items: end;
  padding: clamp(88px, 13vw, 184px) var(--gutter);
  scroll-margin-top: 0;
}

.waitlist h2 {
  font-size: clamp(3rem, 7.4vw, 6rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.waitlist__body > p {
  max-width: 40ch;
  font-size: clamp(1.125rem, 1.5vw, 1.375rem);
  line-height: 1.45;
  letter-spacing: -0.015em;
}

.form { margin-top: clamp(28px, 3vw, 40px); }

.form__trap {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.form__label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.9375rem;
}

.form__row { display: flex; gap: 8px; }

.form__input {
  flex: 1 1 auto;
  min-width: 0;
  height: 56px;
  padding: 0 18px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  background: var(--stone);
  color: var(--ink);
  font: inherit;
  font-size: 1.0625rem;
  caret-color: var(--oxblood);
  transition: border-color 0.2s var(--ease-out);
}
.form__input:hover { border-color: rgb(31 4 15 / 0.35); }
.form__input:focus { outline: none; border-color: var(--oxblood); }
.form__input[aria-invalid="true"] { border-color: var(--oxblood); }

.form__message {
  min-height: 1.5em;
  margin-top: 10px;
  color: var(--oxblood);
  font-size: 0.9375rem;
}
.form__message a { color: inherit; }

.form__done { margin-top: clamp(28px, 3vw, 40px); outline: none; }
.form__done[hidden] { display: none; }
.form__done-title {
  color: var(--oxblood);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.form__done p + p { margin-top: 8px; }

/* Close */

.talk {
  padding: clamp(72px, 10vw, 136px) var(--gutter) clamp(40px, 5vw, 64px);
  background: var(--oxblood);
  color: var(--cream);
}

.talk h2 {
  max-width: 18ch;
  font-size: clamp(1.75rem, 3.4vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.talk__line {
  margin-top: clamp(40px, 6vw, 88px);
  letter-spacing: -0.02em;
}
.talk__line span {
  display: block;
  margin-bottom: 4px;
  color: var(--stone);
  font-size: clamp(1.125rem, 1.8vw, 1.5rem);
}
.talk__line a {
  color: var(--cream);
  font-size: clamp(1.5rem, 8.2vw, 6rem);
  line-height: 1.15;
  letter-spacing: -0.04em;
  text-decoration: underline;
  text-decoration-thickness: 0.05em;
  text-underline-offset: 0.14em;
  text-decoration-color: rgb(243 237 221 / 0.4);
  transition: text-decoration-color 0.3s var(--ease-out);
}
.talk__line a:hover { text-decoration-color: var(--cream); }

.talk__logo {
  width: clamp(160px, 14vw, 208px);
  margin-top: clamp(64px, 9vw, 128px);
  margin-left: auto;
}

/* Confirmation page (no-JavaScript fallback) */

.thanks {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 64px;
  padding: clamp(28px, 6.4vh, 72px) var(--gutter);
  background: var(--oxblood);
  color: var(--cream);
}
.thanks__mark { width: clamp(72px, 6.4vw, 104px); }
.thanks h1 {
  font-size: clamp(2.75rem, 7.4vw, 6rem);
  line-height: 1.03;
  letter-spacing: -0.04em;
}
.thanks p { margin-top: 16px; }
.thanks .button { margin-top: 32px; }

/* Stacked layout */

@media (max-width: 820px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto 1fr;
    gap: 28px;
  }
  .hero__art img { object-position: 50% 50%; }
  .hero__lede { grid-column: auto; max-width: 30ch; }
  .hero h1 { font-size: clamp(2.75rem, 12.4vw, 5.25rem); }

  .waitlist { grid-template-columns: minmax(0, 1fr); }
  .talk__logo { margin-left: 0; }
}

@media (max-width: 460px) {
  .form__row { flex-direction: column; }
  .form__row .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__art img,
  .hero h1 span { animation: none; }
  .button, .form__input, .talk__line a { transition: none; }
}
