:root {
  --night: #08070c;
  --night-soft: #111019;
  --cream: #f0ece2;
  --violet: #8d5cff;
  --violet-light: #b794ff;
  --ink: #211d24;
  --body: "DM Sans", sans-serif;
  --display: "Italiana", serif;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--night);
  color: var(--cream);
  font-family: var(--body);
  font-size: 16px;
  font-weight: 300;
}
body:before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  opacity: 0.035;
  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='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero {
  position: relative;
  min-height: 940px;
  height: 100svh;
  overflow: hidden;
  background: var(--night);
}
.hero-image {
  position: absolute;
  inset: 70px 0 0 44%;
  background: url("assets/kaya-ceremony-waist-v9.png") 60% 39% / auto 240%
    no-repeat;
}
.hero-wash {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      var(--night) 0 34%,
      #08070cf0 42%,
      #08070c33 67%,
      transparent 82%
    ),
    linear-gradient(0deg, var(--night) 0%, transparent 25%);
}
.nav {
  position: absolute;
  z-index: 3;
  inset: 0 0 auto;
  height: 76px;
  padding: 0 5vw;
  display: flex;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid #ffffff20;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
}
.mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid #ffffff88;
  border-radius: 50%;
  font-family: var(--display);
  font-size: 1.1rem;
  letter-spacing: 0;
}
.nav-date {
  margin-left: auto;
  padding: 8px 11px;
  background: #08070ce8;
  border: 1px solid #ffffff28;
  color: white;
  text-shadow: 0 2px 9px #000;
}
.hero-copy {
  position: absolute;
  z-index: 2;
  left: 7vw;
  top: 51%;
  width: min(720px, 52vw);
  transform: translateY(-46%);
}
.eyebrow,
.section-label {
  margin: 0;
  color: #d8d3de;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.hero h1,
.closing h2 {
  margin: 30px 0;
  font-family: var(--display);
  font-size: clamp(4.9rem, 8.2vw, 8.4rem);
  font-weight: 400;
  line-height: 0.83;
  letter-spacing: -0.035em;
}
.hero h1 em,
.closing h2 em {
  color: var(--violet-light);
  font-weight: 400;
}
.dek {
  max-width: 615px;
  margin: 0 0 28px;
  color: #d3cfd6;
  font-size: 1.08rem;
  line-height: 1.65;
}
.scroll-cue {
  position: absolute;
  right: 4vw;
  bottom: 50px;
}
.scroll-cue span {
  display: block;
  width: 1px;
  height: 72px;
  background: linear-gradient(transparent, var(--violet-light));
}

.portal-form {
  width: min(690px, 100%);
  padding: 20px;
  border: 1px solid #966aff66;
  background: linear-gradient(115deg, #211735d9, #0c0a12e8);
  box-shadow: 0 24px 70px #0007;
}
.portal-content {
  width: 100%;
}
.portal-form label {
  display: block;
  margin: 0 0 12px;
  font-size: 0.9rem;
  font-weight: 400;
  color: #f5f1f7;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}
.form-row input {
  min-width: 0;
  height: 54px;
  padding: 0 17px;
  border: 1px solid #ffffff35;
  border-radius: 2px;
  outline: 0;
  background: #ffffff09;
  color: white;
  font: 400 1rem var(--body);
}
.form-row input::placeholder {
  color: #9b95a1;
}
.form-row input:focus {
  border-color: var(--violet-light);
  box-shadow: 0 0 0 3px #8d5cff22;
}
.form-row button {
  min-width: 205px;
  height: 54px;
  padding: 0 21px;
  border: 0;
  border-radius: 2px;
  background: linear-gradient(135deg, #9466ff, #7040e9);
  box-shadow: 0 10px 28px #7040e955;
  color: white;
  cursor: pointer;
  font: 600 0.72rem var(--body);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.form-row button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 35px #7040e988;
}
.form-row button:focus-visible {
  outline: 2px solid white;
  outline-offset: 3px;
}
.form-row button b {
  margin-left: 10px;
  font-size: 1.05rem;
  color: white;
}
.form-note {
  margin: 10px 0 0;
  color: #a29ba8;
  font-size: 0.72rem;
}

.section-pad {
  padding: 125px 7vw;
}
.section-label span {
  color: var(--violet);
}

.story {
  background: var(--cream);
  color: var(--ink);
}
.story .section-label {
  margin-bottom: 28px;
  color: var(--violet);
}
.wide-image {
  position: relative;
  height: min(72vw, 720px);
  margin: 0;
  overflow: hidden;
  background: #15111a;
}
.wide-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 43%;
  filter: saturate(0.7) contrast(1.08);
}
.wide-image:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    #08040de0 0%,
    #08040d4d 50%,
    transparent 72%
  );
}
.wide-image figcaption {
  position: absolute;
  z-index: 2;
  left: 6%;
  right: 6%;
  bottom: 9%;
  max-width: 900px;
  color: white;
  font-family: var(--display);
  font-size: clamp(2.6rem, 5.2vw, 5.3rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
}
.wide-image figcaption em {
  color: var(--violet-light);
}

.threshold {
  position: relative;
  min-height: 600px;
  display: grid;
  place-items: center;
  overflow: hidden;
  text-align: center;
  background: radial-gradient(circle, #211347, #0d0916 45%, var(--night) 72%);
}
.orb {
  position: absolute;
  width: 410px;
  height: 410px;
  border: 1px solid #b794ff44;
  border-radius: 50%;
  box-shadow:
    0 0 110px #8d5cff2c,
    inset 0 0 90px #8d5cff15;
}
.orb:before,
.orb:after {
  content: "";
  position: absolute;
  border: 1px solid #ffffff12;
  border-radius: 50%;
  inset: 50px;
}
.orb:after {
  inset: 105px;
}
.threshold blockquote {
  position: relative;
  z-index: 2;
  margin: 0;
  color: #f6f1f7;
  font: 400 clamp(2.8rem, 5.4vw, 5rem) / 1.07 var(--display);
}
.threshold blockquote em {
  color: var(--violet-light);
}
.wave {
  position: absolute;
  bottom: 48px;
  display: flex;
  height: 38px;
  gap: 7px;
  align-items: center;
}
.wave i {
  width: 1px;
  height: var(--h, 10px);
  background: #9a72ff;
  opacity: 0.55;
}
.wave i:nth-child(3n) {
  --h: 28px;
}
.wave i:nth-child(4n) {
  --h: 18px;
}
.wave i:nth-child(5n) {
  --h: 35px;
}

.capacity {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9vw;
  align-items: center;
  background: #0c0a10;
}
.capacity-image {
  position: relative;
  height: 740px;
  overflow: hidden;
}
.capacity-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.capacity-image:after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 90px #0007;
  background: linear-gradient(0deg, #250f4852, transparent 55%);
}
.capacity h2,
.includes h2 {
  margin: 42px 0;
  color: #f2eef4;
  font: 400 clamp(3.8rem, 6.2vw, 6.3rem) / 0.93 var(--display);
  letter-spacing: -0.035em;
}
.capacity-copy > p {
  max-width: 550px;
  color: #c5c0ca;
  font-size: 1.16rem;
  line-height: 1.82;
}

.includes {
  background: radial-gradient(ellipse at 50% 48%, #211347, #0d0916 48%, var(--night) 82%);
}
.plan-passage {
  max-width: 760px;
  margin: 0 auto;
}
.includes h2 {
  margin: 42px 0 92px;
  font-size: clamp(2.8rem, 5vw, 4.4rem);
}
.plan-moment + .plan-moment {
  margin-top: 88px;
}
.plan-moment h3 {
  margin: 0 0 24px;
  font: 400 clamp(2rem, 3.4vw, 3rem) / 1.15 var(--display);
  color: #f6f1f7;
}
.plan-moment h3 span {
  display: block;
  margin-bottom: 8px;
  color: var(--violet-light);
  font-size: 1.4em;
}
.plan-moment p {
  margin: 0;
  max-width: 590px;
  color: #c5c0ca;
  font-size: 1.16rem;
  line-height: 1.82;
}
.plan-ending {
  margin: 112px 0 0;
  color: #f6f1f7;
  font: 400 clamp(2rem, 3.8vw, 3.5rem) / 1.15 var(--display);
}

.note {
  display: grid;
  place-items: center;
  background: #08070c;
  color: #fff;
}
.letter-sheet {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: min(960px, 100%);
  aspect-ratio: 1165 / 2048;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: #070609;
  font-family: "Cormorant Garamond", Georgia, serif;
}
.letter-sheet:after {
  content: "";
  position: absolute;
  inset: 58% 0 0;
  z-index: -1;
  background: linear-gradient(transparent, #07060980 35%, #070609 100%);
}
.letter-ceremony {
  position: absolute;
  inset: 0 0 auto;
  width: 100%;
  height: auto;
  z-index: -2;
}
.letter-content {
  padding: 120% 8% 8%;
  text-shadow: 0 2px 16px #0008;
}
.letter-intro {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
}
.letter-portrait {
  width: 178px;
  height: 178px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow:
    0 16px 42px #69442c38,
    0 0 0 1px #7b4b3850,
    0 0 0 8px #fff8e755;
}
.letter-from {
  margin: 0;
  color: #fff;
  font:
    italic 400 1.55rem/1.2 "Cormorant Garamond",
    Georgia,
    serif;
}
.letter {
  margin: 0;
}
.letter p,
.letter p:first-child {
  margin: 0 0 26px;
  color: #fff;
  font:
    400 1.42rem/1.6 "Cormorant Garamond",
    Georgia,
    serif;
}
.letter-sheet .signature {
  display: inline-block;
  margin: 8px 0 0;
  color: #fff;
  font:
    italic 400 4.4rem/1 "Cormorant Garamond",
    Georgia,
    serif;
  transform: rotate(-4deg);
  transform-origin: left center;
}

.closing {
  padding-top: 145px;
  padding-bottom: 145px;
  text-align: center;
  background: radial-gradient(circle at 50% 30%, #281653, var(--night) 50%);
}
.closing h2 {
  margin: 0 0 68px;
}
.portal-bottom {
  margin: 0 auto;
  text-align: left;
}
footer {
  min-height: 95px;
  padding: 28px 5vw;
  display: grid;
  place-items: center;
  border-top: 1px solid #ffffff19;
  color: #827b88;
  font-size: 0.76rem;
  line-height: 1.6;
  text-align: center;
}
.toast {
  position: fixed;
  z-index: 40;
  left: 50%;
  bottom: 25px;
  padding: 15px 24px;
  transform: translate(-50%, 140%);
  background: var(--cream);
  color: #17131d;
  box-shadow: 0 14px 50px #0006;
  font-size: 0.82rem;
  transition: transform 0.4s;
}
.toast.show {
  transform: translate(-50%, 0);
}

@media (max-width: 800px) {
  .hero {
    min-height: 990px;
    height: auto;
  }
  .hero-image {
    inset: 66px 0 auto;
    height: 54%;
    background-position: 60% 39%;
    background-size: auto 240%;
  }
  .hero-wash {
    background: linear-gradient(
      0deg,
      var(--night) 2%,
      #08070cf3 48%,
      transparent 73%
    );
  }
  .nav {
    height: 66px;
    padding: 0 22px;
  }
  .nav > span:nth-child(2) {
    display: none;
  }
  .nav-date {
    display: block;
    font-size: 0.58rem;
    letter-spacing: 0.1em;
  }
  .hero-copy {
    left: 24px;
    right: 24px;
    top: auto;
    bottom: 34px;
    width: auto;
    transform: none;
  }
  .hero h1 {
    margin: 23px 0;
    font-size: 4rem;
  }
  .eyebrow .ceremony-date {
    white-space: nowrap;
  }
  .eyebrow {
    font-size: 0.62rem;
    line-height: 1.7;
  }
  .dek {
    font-size: 0.96rem;
    line-height: 1.55;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .form-row button {
    width: 100%;
    min-width: 0;
  }
  .scroll-cue {
    display: none;
  }
  .section-pad {
    padding: 82px 24px;
  }
  .story {
    padding: 72px 24px;
  }
  .wide-image {
    height: 630px;
  }
  .wide-image img {
    object-position: 53% center;
  }
  .wide-image figcaption {
    left: 24px;
    right: 24px;
    bottom: 8%;
    font-size: 2.55rem;
  }
  .threshold {
    min-height: 500px;
    padding: 0 20px;
  }
  .orb {
    width: 310px;
    height: 310px;
  }
  .threshold blockquote {
    font-size: 2.55rem;
  }
  .capacity {
    grid-template-columns: 1fr;
    gap: 38px;
    padding: 0 0 82px;
  }
  .capacity-image {
    height: 600px;
  }
  .capacity-copy {
    padding: 0 24px;
  }
  .capacity h2,
  .includes h2 {
    font-size: 3.45rem;
  }
  .capacity-copy > p {
    font-size: 1.05rem;
  }
  .includes h2 {
    margin-bottom: 64px;
    font-size: 2.9rem;
  }
  .plan-moment + .plan-moment {
    margin-top: 68px;
  }
  .plan-moment p {
    font-size: 1.05rem;
  }
  .plan-ending {
    margin-top: 80px;
  }
  .note {
    padding: 0;
  }
  .letter-sheet:before {
    display: none;
  }
  .letter-from {
    font-size: 1.35rem;
  }
  .letter-intro {
    gap: 20px;
    margin-bottom: 20px;
  }
  .letter-portrait {
    width: 122px;
    height: 122px;
  }
  .letter p,
  .letter p:first-child {
    font-size: 1.2rem;
    line-height: 1.45;
  }
  .letter-sheet .signature {
    font-size: 3.8rem;
  }
  .closing {
    padding-top: 105px;
    padding-bottom: 105px;
  }
  .closing h2 {
    margin-bottom: 55px;
    font-size: 4rem;
  }
}

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