:root {
  --white: #f8f7f2;
  --ink: #171a18;
  --mist: rgba(248, 247, 242, 0.72);
  --glass: rgba(18, 21, 19, 0.58);
  --line: rgba(248, 247, 242, 0.26);
  --accent: #dfe1c9;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "Iowan Old Style", "Baskerville", "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

/* .waitlist-success sets `display`, which would otherwise outrank the HTML
   `hidden` attribute that gates it — keep `hidden` authoritative. */
[hidden] {
  display: none !important;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  min-width: 320px;
  color: var(--white);
  background: #333a35;
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.hero {
  position: relative;
  display: grid;
  width: 100%;
  height: 100dvh;
  min-height: 540px;
  overflow: hidden;
  padding: clamp(22px, 3vw, 48px) clamp(22px, 4vw, 68px);
  grid-template-rows: auto 1fr auto;
  isolation: isolate;
}

.hero-image,
.shade,
.grain {
  position: absolute;
  inset: 0;
}

.hero-image {
  z-index: -3;
  background: url("./assets/coastal-context.webp") center center / cover no-repeat;
  transform: scale(1.015);
}

.shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(10, 13, 12, 0.7) 0%, rgba(10, 13, 12, 0.34) 48%, rgba(10, 13, 12, 0.04) 78%),
    linear-gradient(180deg, rgba(8, 10, 9, 0.34) 0%, transparent 30%, rgba(8, 10, 9, 0.42) 100%);
}

.grain {
  z-index: -1;
  pointer-events: none;
  opacity: 0.2;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.17'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.site-header,
.hero-foot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: inline-block;
  width: 25px;
  height: 20px;
}

.brand-mark i {
  position: absolute;
  width: 15px;
  height: 15px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}

.brand-mark i:first-child {
  top: 0;
  left: 0;
}

.brand-mark i:last-child {
  right: 0;
  bottom: 0;
  background: rgba(248, 247, 242, 0.26);
}

.header-cta,
.primary-cta {
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition:
    color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.header-cta {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 11px 15px 11px 18px;
  background: rgba(20, 24, 22, 0.28);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.header-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.header-arrow svg {
  display: block;
}

.header-cta:hover,
.primary-cta:hover {
  color: var(--ink);
  background: var(--white);
  transform: translateY(-2px);
}

.hero-copy {
  display: flex;
  width: min(100%, 1100px);
  padding-top: clamp(26px, 5vh, 72px);
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

h1 {
  margin: 0;
  font-size: clamp(38px, 4.15vw, 80px);
  font-weight: 600;
  letter-spacing: -0.065em;
  line-height: 0.92;
  white-space: nowrap;
}

.thesis {
  width: min(100%, 720px);
  margin-top: clamp(28px, 4.2vh, 48px);
}

.thesis p {
  margin: 0;
  color: rgba(248, 247, 242, 0.78);
  font-size: clamp(13px, 1vw, 16px);
  line-height: 1.48;
}

.thesis p + p {
  margin-top: 18px;
  color: var(--white);
}

.thesis .invite {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--white);
  font-weight: 500;
}

.experiment-link {
  margin: 0 -3px;
  padding: 0 3px;
  background: none;
  border: 0;
  border-radius: 5px;
  color: inherit;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 180ms ease,
    color 180ms ease;
}

/* Only the word is underlined; the arrow stays clean. Accent colour reads as
   "interactive" rather than mere emphasis. */
.experiment-word {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--accent);
  transition: text-decoration-color 180ms ease;
}

.experiment-arrow {
  display: inline-block;
  margin-left: 2px;
  color: var(--accent);
  font-size: 0.82em;
  /* one gentle, twice-only nudge shortly after load to draw the eye */
  animation: experiment-arrow-hint 1.5s ease 1.8s 2;
}

.experiment-link:hover {
  color: var(--white);
  background: rgba(223, 225, 201, 0.14);
}

.experiment-link:hover .experiment-word {
  text-decoration-color: var(--white);
}

.experiment-link:hover .experiment-arrow {
  color: var(--white);
}

@keyframes experiment-arrow-hint {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(2px, -2px);
  }
}

/* Quiet secondary link under the primary CTA — same arrow vocabulary, no fill,
   so it complements the pill instead of competing with it. */
.secondary-link {
  display: inline-flex;
  align-items: center;
  margin-top: clamp(13px, 1.8vh, 20px);
  padding: 4px 2px;
  gap: 8px;
  background: none;
  border: 0;
  color: rgba(248, 247, 242, 0.66);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition:
    color 180ms ease,
    gap 180ms ease;
}

.secondary-link:hover {
  color: var(--white);
  gap: 11px;
}

.secondary-link .sec-arrow {
  display: inline-flex;
  transition: transform 180ms ease;
}

.secondary-link .sec-arrow svg {
  display: block;
}

.secondary-link:hover .sec-arrow {
  transform: translateX(2px);
}

.primary-cta {
  display: flex;
  min-width: 226px;
  margin-top: clamp(20px, 3vh, 34px);
  padding: 7px 8px 7px 22px;
  align-items: center;
  justify-content: space-between;
  background: var(--glass);
  font-size: 12px;
  font-weight: 600;
}

.primary-cta .arrow {
  display: grid;
  width: 38px;
  height: 38px;
  margin-left: 28px;
  color: var(--ink);
  background: var(--white);
  border-radius: 50%;
  place-items: center;
  font-size: 17px;
  line-height: 1;
}

.hero-foot {
  justify-content: flex-end;
  color: rgba(248, 247, 242, 0.58);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.modal {
  position: fixed;
  z-index: 20;
  display: grid;
  visibility: hidden;
  inset: 0;
  opacity: 0;
  place-items: center;
  transition:
    opacity 240ms ease,
    visibility 240ms ease;
}

.modal.is-open {
  visibility: visible;
  opacity: 1;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  background: rgba(8, 10, 9, 0.3);
  border: 0;
  cursor: default;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-card {
  position: relative;
  width: min(92vw, 550px);
  max-height: calc(100dvh - 24px);
  padding: 30px 34px 24px;
  overflow-y: auto;
  color: var(--white);
  background:
    linear-gradient(160deg, rgba(104, 107, 116, 0.36), rgba(25, 26, 24, 0.58)),
    rgba(44, 46, 46, 0.28);
  border: 1px solid rgba(248, 247, 242, 0.24);
  border-radius: 26px;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  opacity: 0;
  transform: translateY(16px) scale(0.985);
  transition:
    opacity 240ms ease,
    transform 300ms cubic-bezier(0.2, 0.75, 0.2, 1);
}

.modal.is-open .modal-card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.close-button {
  position: absolute;
  top: 17px;
  right: 17px;
  width: 34px;
  height: 34px;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(248, 247, 242, 0.3);
  border-radius: 50%;
  cursor: pointer;
}

.close-button span {
  position: absolute;
  top: 16px;
  left: 10px;
  width: 13px;
  height: 1px;
  background: currentColor;
}

.close-button span:first-child {
  transform: rotate(45deg);
}

.close-button span:last-child {
  transform: rotate(-45deg);
}

.access-label {
  display: inline-flex;
  padding: 7px 12px;
  color: rgba(248, 247, 242, 0.76);
  border: 1px solid rgba(248, 247, 242, 0.22);
  border-radius: 999px;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.form-intro {
  text-align: center;
}

.form-intro h2 {
  margin: 18px 0 0;
  font-size: clamp(34px, 4vw, 46px);
  font-weight: 600;
  letter-spacing: -0.065em;
  line-height: 0.9;
}

.form-intro > p:last-child {
  max-width: 430px;
  margin: 12px auto 0;
  color: rgba(248, 247, 242, 0.66);
  font-size: 12px;
  line-height: 1.45;
}

.waitlist-counter {
  margin-top: 20px;
  padding: 14px 0;
  border-top: 1px solid rgba(248, 247, 242, 0.15);
  border-bottom: 1px solid rgba(248, 247, 242, 0.15);
}

.count-line {
  display: flex;
  gap: 7px;
  align-items: baseline;
  margin: 0;
}

.count-line strong {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.035em;
}

.count-line span {
  color: rgba(248, 247, 242, 0.48);
  font-size: 11px;
}

.waitlist-form {
  margin-top: 18px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
}

.waitlist-form label {
  display: grid;
  gap: 6px;
}

.waitlist-form label > span {
  color: rgba(248, 247, 242, 0.6);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.full-field {
  grid-column: 1 / -1;
}

.waitlist-form input,
.waitlist-form textarea {
  width: 100%;
  min-height: 43px;
  padding: 10px 15px;
  color: var(--white);
  background: rgba(248, 247, 242, 0.06);
  border: 1px solid rgba(248, 247, 242, 0.24);
  border-radius: 999px;
  outline: 0;
  font-size: 12px;
  resize: none;
}

.waitlist-form textarea {
  min-height: 48px;
  border-radius: 20px;
}

.waitlist-form input:focus,
.waitlist-form textarea:focus {
  background: rgba(248, 247, 242, 0.1);
  border-color: var(--white);
  outline: 0;
}

.waitlist-form input::placeholder,
.waitlist-form textarea::placeholder {
  color: rgba(248, 247, 242, 0.42);
}

.submit-button {
  display: flex;
  width: 100%;
  margin-top: 19px;
  padding: 14px;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--white);
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  transition:
    background 180ms ease,
    transform 180ms ease;
}

.submit-button:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

.submit-button:disabled {
  cursor: default;
  opacity: 0.8;
}

.form-note {
  min-height: 15px;
  margin: 10px 0 0;
  color: rgba(248, 247, 242, 0.5);
  font-size: 9px;
  text-align: center;
}

.waitlist-form.is-complete .submit-button {
  background: #5c6d59;
  border-color: #5c6d59;
}

.waitlist-success {
  display: grid;
  justify-items: center;
  padding: 26px 8px 16px;
  gap: 14px;
  text-align: center;
}

.success-check {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  color: var(--ink);
  background: var(--accent);
  border-radius: 50%;
}

.success-check svg {
  display: block;
}

.waitlist-success h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 0.95;
}

.waitlist-success p {
  max-width: 390px;
  margin: 0;
  color: rgba(248, 247, 242, 0.66);
  font-size: 13px;
  line-height: 1.5;
}

/* ---- Experiment modal ---- */
.experiment-steps {
  display: grid;
  margin: 22px 0 0;
  padding: 0;
  gap: 20px;
  list-style: none;
}

.experiment-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
}

.step-num {
  padding-top: 2px;
  color: rgba(248, 247, 242, 0.4);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  font-variant-numeric: tabular-nums;
}

.step-body h3 {
  margin: 0;
  color: var(--white);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.step-body p {
  margin: 5px 0 0;
  color: rgba(248, 247, 242, 0.62);
  font-size: 12.5px;
  line-height: 1.5;
}

/* The "memory, not the recording" trust moment — given its own breath. */
.step-body .step-privacy {
  margin-top: 11px;
  margin-bottom: 11px;
  color: rgba(248, 247, 242, 0.5);
}

.experiment-card .submit-button {
  margin-top: 24px;
}

@media (max-width: 760px) {
  .hero {
    min-height: 500px;
    padding: 20px;
  }

  .hero-image {
    background-position: 62% center;
  }

  .shade {
    background:
      linear-gradient(90deg, rgba(10, 13, 12, 0.68) 0%, rgba(10, 13, 12, 0.22) 100%),
      linear-gradient(180deg, rgba(8, 10, 9, 0.25) 0%, transparent 25%, rgba(8, 10, 9, 0.6) 100%);
  }

  .header-cta {
    gap: 12px;
    padding: 10px 13px;
  }

  .hero-copy {
    padding-top: 18px;
    justify-content: center;
  }

  h1 {
    font-size: clamp(40px, 8.6vw, 60px);
    white-space: normal;
  }

  .thesis {
    width: min(100%, 560px);
    margin-top: 23px;
  }

  .thesis p {
    max-width: 510px;
    font-size: 12px;
    line-height: 1.36;
  }

  .primary-cta {
    margin-top: 28px;
  }
}

@media (max-width: 520px) {
  .brand {
    font-size: 13px;
  }

  .header-cta {
    width: 42px;
    height: 42px;
    gap: 0;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
    font-size: 0;
  }

  .eyebrow {
    margin-bottom: 16px;
    font-size: 8px;
  }

  h1 {
    font-size: clamp(34px, 11vw, 52px);
    white-space: normal;
  }

  .thesis p {
    font-size: 12px;
    line-height: 1.42;
  }

  .primary-cta {
    min-width: 208px;
  }

  .hero-foot span:first-child {
    display: none;
  }

  .hero-foot {
    justify-content: flex-end;
  }

  .modal-card {
    width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
    padding: 38px 20px 24px;
    border-radius: 24px;
  }

  .close-button {
    top: 16px;
    right: 16px;
  }

  .form-intro h2 {
    padding-right: 34px;
  }

  .waitlist-form {
    margin-top: 20px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .full-field {
    grid-column: auto;
  }
}

@media (max-height: 710px) and (min-width: 761px) {
  .hero {
    padding-top: 20px;
    padding-bottom: 18px;
  }

  .hero-copy {
    padding-top: 20px;
  }

  h1 {
    font-size: clamp(38px, 4.15vw, 80px);
  }

  .thesis {
    margin-top: 22px;
  }

  .thesis p {
    font-size: 12px;
    line-height: 1.3;
  }

  .primary-cta {
    margin-top: 16px;
  }
}

@media (max-height: 690px) and (max-width: 760px) {
  .hero-copy {
    padding-top: 12px;
  }

  h1 {
    font-size: clamp(30px, 9vw, 46px);
    white-space: normal;
  }

  .thesis {
    margin-top: 18px;
  }

  .thesis p {
    font-size: 10.5px;
    line-height: 1.28;
  }

  .thesis p + p {
    margin-top: 10px;
  }

  .primary-cta {
    margin-top: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

}
