:root {
  color-scheme: light;
  --ink: #0f1115;
  --muted: #626775;
  --soft: #8a8f9c;
  --gold: #c99428;
  --gold-strong: #b57c12;
  --paper: #fbf7ed;
  --paper-2: #f4ead8;
  --white: #fffefd;
  --line: rgba(15, 17, 21, 0.1);
  --shadow: 0 30px 80px rgba(24, 21, 18, 0.18);
  --header-h: 5.1rem;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #f8f1e5;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  min-width: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 12%, rgba(201, 148, 40, 0.12), transparent 28rem),
    linear-gradient(180deg, #fffefd 0%, #fffdf8 58%, #f8f1e5 100%);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background-image: url("assets/paper-grain.png");
  opacity: 0.08;
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
  padding: 0.95rem clamp(1.1rem, 5vw, 5.5rem);
  background: rgba(255, 254, 253, 0.84);
  border-bottom: 1px solid rgba(15, 17, 21, 0.07);
  backdrop-filter: blur(22px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
}

.brand-icon {
  width: 2.6rem;
  height: 2.6rem;
  object-fit: cover;
  border-radius: 0.78rem;
  box-shadow:
    0 12px 28px rgba(5, 5, 7, 0.16),
    0 0 0 1px rgba(255, 255, 255, 0.72);
}

.brand-wordmark {
  width: clamp(9.5rem, 15vw, 12rem);
  height: auto;
  object-fit: contain;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2.25rem);
  color: #20242f;
  font-size: 0.98rem;
  font-weight: 760;
}

.site-header nav a:not(.nav-cta) {
  opacity: 0.86;
}

.site-header nav a:hover,
.site-header nav a:focus-visible {
  opacity: 1;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0 1.2rem;
  color: #fffdf8;
  background: linear-gradient(180deg, #d5a13a, #b98216);
  border: 1px solid rgba(128, 78, 5, 0.18);
  border-radius: 0.7rem;
  box-shadow: 0 14px 30px rgba(168, 112, 20, 0.22);
  opacity: 1;
}

main {
  overflow: clip;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(20rem, 0.92fr) minmax(22rem, 1.08fr);
  align-items: center;
  gap: clamp(1.6rem, 5.6vw, 6rem);
  min-height: calc(100svh - var(--header-h));
  padding: clamp(2rem, 4.2vw, 4.4rem) clamp(1.1rem, 6vw, 5.5rem) clamp(0.45rem, 1.4vw, 1.5rem);
}

.hero::after {
  position: absolute;
  right: clamp(1rem, 7vw, 8rem);
  bottom: 9%;
  width: min(44vw, 42rem);
  height: min(24vw, 16rem);
  background: linear-gradient(180deg, rgba(230, 218, 199, 0.62), rgba(206, 189, 164, 0.22));
  border: 1px solid rgba(127, 98, 55, 0.12);
  border-radius: 50%;
  content: "";
  filter: blur(2px);
  transform: perspective(40rem) rotateX(68deg);
}

.hero-copy {
  position: relative;
  z-index: 3;
  max-width: 45rem;
}

.beta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.45rem;
  padding: 0.55rem 0.85rem;
  color: #9a6a12;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(201, 148, 40, 0.34);
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 800;
}

.beta-pill span {
  width: 0.55rem;
  height: 0.55rem;
  background: var(--gold);
  border-radius: 999px;
  box-shadow: 0 0 0 0.24rem rgba(201, 148, 40, 0.14);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  letter-spacing: -0.04em;
}

h1 {
  max-width: 17ch;
  font-size: clamp(3.15rem, 5.7vw, 5.8rem);
  line-height: 0.96;
}

h2 {
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 1;
}

h3 {
  font-size: clamp(1.7rem, 3vw, 2.55rem);
  line-height: 1.05;
}

.hero-text,
.story-intro p,
.story-step p,
.closing-cta p {
  color: var(--muted);
  font-size: clamp(1.08rem, 1.6vw, 1.35rem);
  line-height: 1.58;
}

.hero-text {
  max-width: 35rem;
  margin: 1.25rem 0 1.65rem;
}

.invite-form {
  width: min(100%, 43rem);
}

.hero-cta {
  width: fit-content;
}

.invite-form label {
  display: block;
  margin-bottom: 0.55rem;
  color: #2a2e38;
  font-size: 0.9rem;
  font-weight: 780;
}

.form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
}

input[type="email"] {
  width: 100%;
  min-height: 3.55rem;
  padding: 0 1.15rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(15, 17, 21, 0.15);
  border-radius: 0.7rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 12px 28px rgba(18, 17, 16, 0.06);
  font: inherit;
  font-size: 1.05rem;
}

button,
.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.55rem;
  padding: 0 1.35rem;
  color: #fffdf8;
  background: linear-gradient(180deg, #d5a13a, #b98216);
  border: 1px solid rgba(128, 78, 5, 0.18);
  border-radius: 0.7rem;
  box-shadow: 0 16px 32px rgba(168, 112, 20, 0.24);
  cursor: pointer;
  font: inherit;
  font-weight: 850;
  white-space: nowrap;
}

button:hover,
.hero-cta:hover {
  filter: brightness(0.96);
}

button:disabled {
  cursor: progress;
  opacity: 0.72;
}

.hidden-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-message {
  min-height: 1.35rem;
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.form-message[data-tone="success"] {
  color: #25624d;
}

.form-message[data-tone="error"] {
  color: #9c3e2d;
}

.invite-note {
  margin: 0.75rem 0 0;
  color: var(--soft);
  font-size: 0.95rem;
}

.hero-stage {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  min-height: min(28rem, 52vw);
}

.parchment-panel {
  position: absolute;
  right: -3%;
  width: min(42vw, 34rem);
  height: min(32vw, 28rem);
  background:
    linear-gradient(135deg, rgba(255, 253, 247, 0.94), rgba(240, 225, 198, 0.72)),
    url("assets/paper-grain.png");
  border: 1px solid rgba(154, 106, 18, 0.12);
  border-radius: 1.4rem;
  box-shadow: 0 28px 70px rgba(95, 74, 44, 0.12);
  opacity: 0.92;
  transform: translate3d(0, var(--parallax-y, 0), 0);
  transition: transform 120ms linear;
}

.parchment-panel::after {
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(154, 106, 18, 0.08);
  border-radius: 999px 999px 2rem 999px;
  content: "";
  transform: rotate(-18deg);
}

.stone-plinth {
  position: absolute;
  bottom: 2%;
  width: min(42vw, 38rem);
  height: min(8vw, 5.7rem);
  background: linear-gradient(180deg, #f1e7d7, #d9c7ad);
  border: 1px solid rgba(129, 100, 58, 0.15);
  border-radius: 50%;
  box-shadow: 0 22px 55px rgba(61, 48, 31, 0.14);
  transform: translate3d(0, var(--parallax-y, 0), 0) perspective(42rem) rotateX(64deg);
  transition: transform 120ms linear;
}

.device-frame {
  position: relative;
  margin: 0;
  width: min(100%, 20.5rem);
  padding: 0.52rem;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.22), transparent 36%),
    #0b0d0c;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 2.45rem;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    var(--shadow);
}

.device-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 368 / 800;
  object-fit: cover;
  background: var(--white);
  border-radius: 1.92rem;
  transition: opacity 180ms ease;
}

.hero-device {
  z-index: 3;
  width: min(38vw, 19rem, calc((100svh - var(--header-h) - 5rem) * 0.46));
  transform: translate3d(0, var(--parallax-y, 0), 0);
  transition: transform 120ms linear;
}

.product-story {
  position: relative;
  margin-top: -2rem;
  padding: clamp(4rem, 8vw, 7rem) clamp(1.1rem, 6vw, 5.5rem) clamp(5rem, 9vw, 8rem);
  background:
    linear-gradient(180deg, rgba(248, 241, 229, 0.94), rgba(255, 254, 253, 0.98)),
    var(--paper);
  border-top: 1px solid rgba(154, 106, 18, 0.1);
}

.story-intro {
  max-width: 54rem;
  margin: 0 auto clamp(3rem, 6vw, 5.5rem);
  text-align: center;
}

.section-label,
.story-step span {
  color: #9a6a12;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.story-intro h2 {
  margin-top: 0.85rem;
}

.story-intro p {
  max-width: 48rem;
  margin: 1.15rem auto 0;
}

.story-pin {
  display: grid;
  grid-template-columns: minmax(18rem, 0.92fr) minmax(20rem, 1fr);
  gap: clamp(2rem, 7vw, 7rem);
  align-items: start;
  max-width: 76rem;
  margin: 0 auto;
}

.story-device {
  position: sticky;
  top: calc(var(--header-h) + 2rem);
  display: grid;
  place-items: center;
  min-height: calc(100svh - var(--header-h) - 3rem);
}

.story-device::before {
  position: absolute;
  width: min(32vw, 25rem);
  height: min(32vw, 25rem);
  background: radial-gradient(circle, rgba(201, 148, 40, 0.16), transparent 68%);
  content: "";
}

.story-device-frame {
  z-index: 2;
  width: min(34vw, 19rem);
}

.mobile-step-shot {
  display: none;
}

.story-steps {
  display: grid;
  gap: clamp(1.4rem, 4vw, 3.2rem);
  padding: 7svh 0 12svh;
}

.story-step {
  scroll-margin-top: calc(var(--header-h) + 1.5rem);
  min-height: 48svh;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(15, 17, 21, 0.08);
  border-radius: 1.2rem;
  box-shadow: 0 20px 50px rgba(28, 24, 18, 0.06);
  opacity: 0.54;
  transform: translateY(0.8rem);
  transition:
    opacity 240ms ease,
    transform 240ms ease,
    border-color 240ms ease,
    box-shadow 240ms ease;
}

.story-step.is-active {
  border-color: rgba(201, 148, 40, 0.32);
  box-shadow: 0 24px 60px rgba(93, 70, 35, 0.1);
  opacity: 1;
  transform: translateY(0);
}

.story-step h3 {
  margin-top: 0.9rem;
}

.story-step p {
  max-width: 38rem;
  margin: 1rem 0 0;
}

.closing-cta {
  display: grid;
  grid-template-columns: auto minmax(0, 0.78fr) minmax(24rem, 1fr);
  align-items: center;
  gap: 1.25rem;
  margin: 0 clamp(1.1rem, 6vw, 5.5rem) clamp(2rem, 5vw, 4rem);
  padding: clamp(1.3rem, 3vw, 2rem);
  color: #fffdf8;
  background:
    radial-gradient(circle at 12% 0%, rgba(243, 217, 143, 0.22), transparent 22rem),
    #090908;
  border-radius: 1rem;
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.closing-cta img {
  width: 3.6rem;
  height: 3.6rem;
  object-fit: cover;
  border-radius: 0.9rem;
}

.closing-cta h2 {
  color: #fffdf8;
  font-size: clamp(2rem, 4vw, 3rem);
}

.closing-cta p {
  margin: 0.35rem 0 0;
  color: rgba(255, 253, 248, 0.74);
}

.closing-cta .invite-form {
  justify-self: end;
}

.closing-cta .invite-form label {
  color: rgba(255, 253, 248, 0.88);
}

.closing-cta input[type="email"] {
  background: rgba(255, 253, 248, 0.94);
}

.closing-cta .form-message {
  color: rgba(255, 253, 248, 0.72);
}

.closing-cta .form-message[data-tone="success"] {
  color: #bfe6d2;
}

.closing-cta .form-message[data-tone="error"] {
  color: #ffd1c8;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem clamp(1.1rem, 6vw, 5.5rem) 2rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 750;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(1.25rem);
  transition:
    opacity 500ms ease,
    transform 500ms ease;
}

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

@media (max-width: 920px) {
  :root {
    --header-h: 8.2rem;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.15rem;
  }

  .hero,
  .story-pin {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-stage {
    order: -1;
    min-height: 31rem;
  }

  .hero-device {
    width: min(72vw, 20rem);
  }

  .parchment-panel {
    width: min(82vw, 26rem);
    height: 20rem;
  }

  .stone-plinth {
    width: min(80vw, 28rem);
    height: 4rem;
  }

  .story-device {
    display: none;
  }

  .story-steps {
    gap: 1.35rem;
    padding: 0;
  }

  .story-step {
    min-height: auto;
    opacity: 1;
    transform: none;
  }

  .mobile-step-shot {
    display: block;
    width: min(68vw, 17rem);
    margin: 0 auto 1.35rem;
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.08),
      0 22px 52px rgba(24, 21, 18, 0.15);
  }

  .closing-cta {
    grid-template-columns: 1fr;
  }

  .closing-cta .invite-form {
    justify-self: stretch;
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 8.1rem;
  }

  .brand-wordmark {
    width: min(58vw, 10rem);
  }

  .site-header nav {
    gap: 0.9rem;
    font-size: 0.9rem;
  }

  .nav-cta {
    min-height: 2.35rem;
    padding: 0 0.9rem;
  }

  .hero,
  .product-story {
    padding-inline: 1rem;
  }

  .product-story {
    margin-top: 0;
    padding-block: 3.25rem 2.75rem;
  }

  .story-intro {
    margin-bottom: 2rem;
    text-align: left;
  }

  .story-intro p {
    margin-inline: 0;
  }

  .story-step {
    padding: 1.05rem;
    border-radius: 1rem;
  }

  h1 {
    font-size: clamp(3.1rem, 15vw, 4.6rem);
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  button,
  .hero-cta {
    width: 100%;
    white-space: normal;
  }

  .hero-stage {
    min-height: 27rem;
  }

  .hero-device,
  .mobile-step-shot {
    width: min(76vw, 17rem);
  }

  .closing-cta {
    gap: 1rem;
    margin-inline: 1rem;
    margin-bottom: 1rem;
  }

  footer {
    flex-direction: column;
    padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
