:root {
  --velvet-950: #420711;
  --velvet-900: #570914;
  --velvet-800: #700c1a;
  --velvet-700: #8a1022;
  --velvet-600: #a91c31;
  --velvet-500: #c53245;

  --cream-100: #fff9f1;
  --cream-200: #f8ecde;
  --cream-300: #ecd9c3;

  --rose-200: #e3b4b4;

  --ink: #2c1719;
  --muted: #765e60;

  --line: rgba(74, 25, 32, 0.14);

  --white: #ffffff;

  --shadow:
    0 24px 80px rgba(54, 4, 13, 0.22);

  --container:
    min(1180px, calc(100% - 48px));

  --radius-xl: 40px;
  --radius-lg: 28px;
  --radius-md: 20px;

  --ease:
    cubic-bezier(0.22, 1, 0.36, 1);

  --font-display:
    "Great Vibes",
    cursive;

  --font-sans:
    "Onest",
    Arial,
    sans-serif;
}


/* =========================================================
   RESET
   ========================================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;

  background: var(--cream-100);
}

body {
  margin: 0;

  min-width: 320px;

  overflow-x: hidden;

  background: var(--cream-100);

  color: var(--ink);

  font-family: var(--font-sans);

  -webkit-font-smoothing: antialiased;

  text-rendering: optimizeLegibility;
}

body.intro-active {
  overflow: hidden;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline:
    3px solid rgba(255, 247, 236, 0.96);

  outline-offset: 4px;
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline-color:
    rgba(138, 16, 34, 0.32);
}

::selection {
  background: var(--velvet-700);

  color: var(--cream-100);
}


/* =========================================================
   BASIC
   ========================================================= */

.container {
  width: var(--container);

  margin-inline: auto;
}

.narrow {
  max-width: 850px;
}

.eyebrow {
  margin:
    0
    0
    18px;

  color: var(--velvet-700);

  font-size: 0.72rem;

  font-weight: 700;

  letter-spacing: 0.18em;

  text-transform: uppercase;
}

.eyebrow--light {
  color:
    rgba(255, 248, 241, 0.7);
}

.display-title {
  margin: 0;

  max-width: 900px;

  font-family: var(--font-display);

  font-size:
    clamp(4rem, 8vw, 7.8rem);

  font-weight: 400;

  letter-spacing: 0;

  line-height: 1.05;
}

.display-title--light {
  color: var(--cream-100);
}

.lead {
  margin:
    34px
    0
    0;

  max-width: 760px;

  color: var(--muted);

  font-size:
    clamp(1.05rem, 2vw, 1.34rem);

  line-height: 1.7;
}

.lead--small {
  max-width: 560px;

  font-size: 1rem;
}

.section {
  position: relative;

  padding:
    clamp(92px, 11vw, 150px)
    0;

  overflow: hidden;
}

.section--cream {
  background: var(--cream-100);
}

.section--soft {
  background: var(--cream-200);
}

.section--red {
  background:
    radial-gradient(
      circle at 14% 7%,
      rgba(255, 221, 212, 0.09),
      transparent 27%
    ),
    linear-gradient(
      145deg,
      var(--velvet-700),
      var(--velvet-900) 65%,
      var(--velvet-950)
    );
}

.section--velvet {
  background:
    radial-gradient(
      circle at 20% 8%,
      rgba(255, 220, 212, 0.15),
      transparent 30%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(255, 170, 170, 0.08),
      transparent 30%
    ),
    linear-gradient(
      150deg,
      #9c172a,
      #650b18 55%,
      #4d0711
    );
}

.section-number {
  display: inline-flex;

  align-items: center;

  justify-content: center;

  width: 48px;

  height: 48px;

  margin-bottom: 28px;

  border:
    1px solid var(--line);

  border-radius: 50%;

  color: var(--velvet-700);

  font-size: 0.72rem;

  font-weight: 700;

  letter-spacing: 0.12em;
}

.section-number--light {
  border-color:
    rgba(255, 248, 241, 0.25);

  color: var(--cream-100);
}


/* =========================================================
   NOSCRIPT
   ========================================================= */

.noscript-message {
  position: fixed;

  z-index: 1000;

  inset:
    12px
    12px
    auto;

  padding:
    14px
    16px;

  border-radius: 12px;

  background: #fff;

  color: #6f0d1b;

  font-size: 0.9rem;

  box-shadow:
    0 10px 40px
    rgba(0, 0, 0, 0.14);
}


/* =========================================================
   INTRO
   ========================================================= */

.intro {
  position: fixed;

  z-index: 999;

  inset: 0;

  display: grid;

  place-items: center;

  min-height: 100svh;

  padding:
    max(24px, env(safe-area-inset-top))
    max(18px, env(safe-area-inset-right))
    max(24px, env(safe-area-inset-bottom))
    max(18px, env(safe-area-inset-left));

  overflow: hidden;

  background:
    radial-gradient(
      circle at 50% -10%,
      rgba(255, 220, 220, 0.22),
      transparent 30%
    ),
    radial-gradient(
      circle at 10% 100%,
      rgba(255, 143, 160, 0.08),
      transparent 30%
    ),
    linear-gradient(
      145deg,
      #8c1325 0%,
      #650a17 52%,
      #49060f 100%
    );

  color: var(--cream-100);

  transition:
    opacity 0.85s var(--ease),
    visibility 0.85s var(--ease);
}

.intro::before,
.intro::after {
  position: absolute;

  content: "";

  width:
    min(58vw, 750px);

  aspect-ratio: 1;

  border:
    1px solid
    rgba(255, 241, 230, 0.06);

  border-radius: 50%;
}

.intro::before {
  top: -38%;

  right: -18%;
}

.intro::after {
  bottom: -45%;

  left: -20%;
}

.intro__noise {
  position: absolute;

  inset: 0;

  opacity: 0.14;

  pointer-events: none;

  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='.18'/%3E%3C/svg%3E");

  mix-blend-mode: soft-light;
}

.intro__content {
  position: relative;

  z-index: 2;

  display: flex;

  flex-direction: column;

  align-items: center;

  width:
    min(560px, 100%);

  text-align: center;
}

.intro__eyebrow {
  margin-bottom:
    clamp(18px, 4vh, 34px);

  color:
    rgba(255, 248, 241, 0.68);
}


/* =========================================================
   ENVELOPE
   ========================================================= */

.envelope {
  position: relative;

  width:
    min(430px, 78vw);

  aspect-ratio:
    1.48 / 1;

  margin:
    0
    auto
    34px;

  perspective: 1200px;

  transform-style: preserve-3d;

  filter:
    drop-shadow(
      0 30px 35px
      rgba(35, 1, 7, 0.3)
    );
}

.envelope__shadow {
  position: absolute;

  z-index: -1;

  left: 8%;

  right: 8%;

  bottom: -11%;

  height: 18%;

  border-radius: 50%;

  background:
    rgba(18, 0, 4, 0.3);

  filter: blur(18px);

  transform:
    scaleX(0.9);

  transition:
    transform 1.1s var(--ease),
    opacity 1.1s var(--ease);
}

.envelope__back,
.envelope__front {
  position: absolute;

  inset: 0;

  border-radius: 18px;
}

.envelope__back {
  z-index: 1;

  overflow: hidden;

  background:
    linear-gradient(
      150deg,
      #f8ecdd,
      #ead4bb 85%
    );
}

.envelope__back::before,
.envelope__back::after {
  position: absolute;

  content: "";

  inset: 0;

  opacity: 0.32;
}

.envelope__back::before {
  background:
    linear-gradient(
      36deg,
      transparent 48.8%,
      rgba(105, 42, 45, 0.1) 49%,
      transparent 49.7%
    );
}

.envelope__back::after {
  background:
    linear-gradient(
      -36deg,
      transparent 48.8%,
      rgba(105, 42, 45, 0.1) 49%,
      transparent 49.7%
    );
}


/* =========================================================
   LETTER
   ========================================================= */

.envelope__letter {
  position: absolute;

  z-index: 2;

  left: 8%;

  right: 8%;

  bottom: 8%;

  height: 76%;

  opacity: 0;

  border-radius:
    14px
    14px
    8px
    8px;

  background: #fffaf3;

  box-shadow:
    0 12px 36px
    rgba(77, 20, 24, 0.17);

  transform:
    translateY(34%);

  transform-origin:
    center bottom;

  will-change:
    transform,
    opacity;
}

.mini-card {
  position: absolute;

  inset: 18px;

  display: flex;

  flex-direction: column;

  align-items: center;

  justify-content: center;

  border:
    1px solid
    rgba(112, 12, 26, 0.16);

  border-radius: 10px;

  color: var(--velvet-800);
}

.mini-card::before {
  position: absolute;

  top: 16px;

  left: 50%;

  content: "";

  width: 42px;

  height: 4px;

  border-radius: 999px;

  background: var(--velvet-700);

  transform:
    translateX(-50%);
}

.mini-card__kicker {
  margin-bottom: 10px;

  font-size: 0.58rem;

  font-weight: 700;

  letter-spacing: 0.15em;

  text-transform: uppercase;
}

.mini-card strong {
  font-family: var(--font-display);

  font-size:
    clamp(2.7rem, 7vw, 4.4rem);

  font-weight: 400;

  line-height: 1;
}

.mini-card > span:last-child {
  margin-top: 14px;

  color: #9a7775;

  font-size: 0.7rem;

  letter-spacing: 0.18em;
}


/* =========================================================
   FLAP
   ========================================================= */

.envelope__flap {
  position: absolute;

  z-index: 4;

  top: 0;

  left: 0;

  width: 100%;

  height: 58%;

  border-radius:
    17px
    17px
    0
    0;

  background:
    linear-gradient(
      165deg,
      #fff6eb 0%,
      #ecd7bf 100%
    );

  clip-path:
    polygon(
      0 0,
      100% 0,
      50% 100%
    );

  transform-origin:
    top center;

  transform:
    rotateX(0deg);

  will-change: transform;

  backface-visibility: hidden;
}


/* =========================================================
   FRONT
   ========================================================= */

.envelope__front {
  z-index: 3;

  overflow: hidden;

  pointer-events: none;
}

.envelope__front::before,
.envelope__front::after {
  position: absolute;

  content: "";

  bottom: 0;

  width: 72%;

  height: 78%;

  background:
    linear-gradient(
      150deg,
      #f7ead9,
      #e6cfb4
    );
}

.envelope__front::before {
  left: 0;

  clip-path:
    polygon(
      0 0,
      100% 72%,
      100% 100%,
      0 100%
    );
}

.envelope__front::after {
  right: 0;

  clip-path:
    polygon(
      100% 0,
      0 72%,
      0 100%,
      100% 100%
    );
}


/* =========================================================
   SEAL
   ========================================================= */

.envelope__seal {
  position: absolute;

  z-index: 5;

  top: 46%;

  left: 50%;

  display: flex;

  align-items: center;

  justify-content: center;

  width: 62px;

  height: 62px;

  margin:
    -31px
    0
    0
    -31px;

  border:
    1px solid
    rgba(255, 221, 218, 0.35);

  border-radius: 50%;

  background:
    radial-gradient(
      circle at 35% 28%,
      rgba(255, 255, 255, 0.22),
      transparent 25%
    ),
    linear-gradient(
      145deg,
      #a80f26,
      #6c0917
    );

  color: #f7decf;

  box-shadow:
    0 7px 16px
    rgba(71, 5, 15, 0.28);

  font-family: var(--font-display);

  font-size: 1.4rem;

  transition:
    opacity 0.3s ease,
    transform 0.5s var(--ease);
}

.envelope__seal span + span::before {
  content: "·";

  margin: 0 3px;

  opacity: 0.7;
}


/* =========================================================
   INTRO TEXT
   ========================================================= */

.intro__copy h1 {
  margin: 0;

  font-family: var(--font-display);

  font-size:
    clamp(4rem, 10vw, 7rem);

  font-weight: 400;

  letter-spacing: 0;

  line-height: 0.95;
}

.intro__copy h1 span {
  color: #efb4ad;
}

.intro__copy p {
  margin:
    12px
    auto
    0;

  max-width: 430px;

  color:
    rgba(255, 248, 241, 0.66);

  font-size: 0.92rem;

  line-height: 1.6;
}


/* =========================================================
   OPEN BUTTON
   ========================================================= */

.open-button {
  display: inline-flex;

  gap: 16px;

  align-items: center;

  justify-content: center;

  min-width: 240px;

  margin-top: 28px;

  padding:
    16px
    22px;

  border:
    1px solid
    rgba(255, 246, 236, 0.22);

  border-radius: 999px;

  background:
    rgba(255, 247, 239, 0.94);

  color: var(--velvet-800);

  box-shadow:
    0 12px 35px
    rgba(46, 1, 9, 0.18);

  font-size: 0.84rem;

  font-weight: 700;

  letter-spacing: 0.03em;

  cursor: pointer;

  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

.open-button svg,
.text-link svg {
  width: 18px;

  fill: none;

  stroke: currentColor;

  stroke-linecap: round;

  stroke-linejoin: round;

  stroke-width: 1.8;
}

.open-button:hover {
  transform:
    translateY(-2px);

  box-shadow:
    0 18px 42px
    rgba(46, 1, 9, 0.24);
}

.open-button:active {
  transform:
    translateY(0);
}

.open-button:disabled {
  cursor: default;

  opacity: 0.72;
}


/* =========================================================
   OPEN ANIMATION
   ========================================================= */

.intro.is-opening .envelope__seal {
  opacity: 0;

  transform:
    scale(0.75);
}

.intro.is-opening .envelope__flap {
  animation:
    openFlap
    0.78s
    var(--ease)
    forwards;
}

.intro.is-opening .envelope__letter {
  animation:
    liftLetter
    1.15s
    0.62s
    var(--ease)
    forwards;
}

.intro.is-opening .envelope {
  animation:
    envelopeSettle
    1.4s
    0.55s
    var(--ease)
    forwards;
}

.intro.is-opening .envelope__shadow {
  transform:
    scaleX(1.08)
    scaleY(0.72);

  opacity: 0.62;
}

.intro.is-opening .intro__copy,
.intro.is-opening .open-button,
.intro.is-opening .intro__eyebrow {
  animation:
    fadeDown
    0.55s
    ease
    forwards;
}

.intro.is-leaving {
  opacity: 0;

  visibility: hidden;

  pointer-events: none;
}


/* =========================================================
   KEYFRAMES
   ========================================================= */

@keyframes openFlap {

  0% {
    transform:
      rotateX(0deg);

    z-index: 4;
  }

  49% {
    z-index: 4;
  }

  50%,
  100% {
    transform:
      rotateX(-178deg);

    z-index: 1;
  }

}

@keyframes liftLetter {

  0% {
    opacity: 0;

    transform:
      translateY(34%)
      scale(0.99);
  }

  10% {
    opacity: 1;
  }

  72% {
    opacity: 1;

    transform:
      translateY(-42%)
      scale(1.02);
  }

  100% {
    opacity: 1;

    transform:
      translateY(-34%)
      scale(1.01);
  }

}

@keyframes envelopeSettle {

  0% {
    transform:
      translateY(0)
      scale(1);
  }

  100% {
    transform:
      translateY(10px)
      scale(0.96);
  }

}

@keyframes fadeDown {

  to {
    opacity: 0;

    transform:
      translateY(12px);
  }

}


/* =========================================================
   SITE
   ========================================================= */

.site {
  min-height: 100vh;
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
  display: flex;

  min-height: 100svh;

  padding-top:
    max(36px, env(safe-area-inset-top));

  padding-bottom:
    max(36px, env(safe-area-inset-bottom));

  color: var(--cream-100);
}

.hero__inner {
  position: relative;

  z-index: 2;

  display: grid;

  grid-template-rows:
    auto
    1fr
    auto;

  min-height:
    calc(100svh - 72px);

  isolation: isolate;
}

.hero__topline {
  position: relative;

  z-index: 4;

  display: flex;

  justify-content: space-between;

  gap: 18px;

  color:
    rgba(255, 248, 241, 0.66);

  font-size: 0.73rem;

  font-weight: 600;

  letter-spacing: 0.12em;

  text-transform: uppercase;
}

.hero__title-wrap {
  position: relative;

  z-index: 3;

  align-self: center;

  max-width: 980px;

  padding:
    70px
    0
    90px;
}

.hero__title-wrap .eyebrow {
  color:
    rgba(255, 248, 241, 0.7);
}

.hero__title {
  margin: 0;

  max-width: 940px;

  font-family: var(--font-display);

  font-size:
    clamp(5.5rem, 14vw, 12rem);

  font-weight: 400;

  letter-spacing: 0;

  line-height: 0.88;
}

.hero__title em {
  color: #e6a99f;

  font-style: normal;

  font-weight: 400;
}

.hero__subtitle {
  max-width: 530px;

  margin:
    clamp(34px, 5vw, 58px)
    0
    0;

  color:
    rgba(255, 248, 241, 0.76);

  font-size:
    clamp(1rem, 1.6vw, 1.18rem);

  line-height: 1.75;
}


/* =========================================================
   HERO PHOTO
   ========================================================= */

.hero__photo {
  position: absolute;

  z-index: 1;

  top: 10%;

  right: 0;

  width:
    min(34vw, 420px);

  height:
    min(70vh, 620px);

  margin: 0;

  overflow: hidden;

  border:
    1px solid
    rgba(255, 248, 241, 0.16);

  border-radius:
    220px
    220px
    36px
    36px;

  box-shadow:
    0 38px 90px
    rgba(35, 0, 7, 0.32);
}

.hero__photo::after {
  position: absolute;

  content: "";

  inset: 0;

  background:
    linear-gradient(
      to bottom,
      rgba(76, 4, 17, 0.06),
      rgba(76, 4, 17, 0.25)
    );

  pointer-events: none;
}

.hero__photo img {
  width: 100%;

  height: 100%;

  object-fit: cover;

  filter:
    saturate(0.8)
    contrast(0.98);
}


/* =========================================================
   HERO GLOW
   ========================================================= */

.hero__glow {
  position: absolute;

  border-radius: 50%;

  pointer-events: none;

  filter: blur(8px);
}

.hero__glow--one {
  top: 10%;

  right: -12%;

  width: 42vw;

  max-width: 620px;

  aspect-ratio: 1;

  background:
    rgba(255, 158, 168, 0.06);
}

.hero__glow--two {
  bottom: -16%;

  left: -18%;

  width: 48vw;

  max-width: 700px;

  aspect-ratio: 1;

  background:
    rgba(255, 232, 215, 0.05);
}


/* =========================================================
   SCROLL CUE
   ========================================================= */

.scroll-cue {
  position: relative;

  z-index: 4;

  display: inline-flex;

  align-items: center;

  gap: 14px;

  width: max-content;

  color:
    rgba(255, 248, 241, 0.64);

  font-size: 0.73rem;

  text-decoration: none;

  text-transform: uppercase;

  letter-spacing: 0.12em;
}

.scroll-cue__line {
  width: 70px;

  height: 1px;

  overflow: hidden;

  background:
    rgba(255, 248, 241, 0.18);
}

.scroll-cue__line::after {
  display: block;

  width: 50%;

  height: 100%;

  content: "";

  background:
    rgba(255, 248, 241, 0.75);

  animation:
    scrollLine
    1.8s
    ease-in-out
    infinite;
}

@keyframes scrollLine {

  0% {
    transform:
      translateX(-120%);
  }

  100% {
    transform:
      translateX(220%);
  }

}


/* =========================================================
   DATE CARD
   ========================================================= */

.date-card {
  display: grid;

  grid-template-columns:
    1fr
    auto
    1.2fr;

  gap:
    clamp(24px, 5vw, 56px);

  align-items: center;

  margin-top:
    clamp(52px, 8vw, 92px);

  padding:
    clamp(28px, 5vw, 56px);

  border:
    1px solid var(--line);

  border-radius: var(--radius-xl);

  background:
    linear-gradient(
      145deg,
      #fffdf8,
      #f7eadb
    );

  box-shadow:
    0 30px 80px
    rgba(91, 28, 35, 0.08);
}

.date-card__side {
  display: grid;

  justify-items: center;

  color: var(--velvet-800);

  text-align: center;
}

.date-card__side span {
  font-size: 0.75rem;

  font-weight: 700;

  letter-spacing: 0.16em;

  text-transform: uppercase;
}

.date-card__side strong {
  margin:
    -3px
    0
    -8px;

  font-family: var(--font-display);

  font-size:
    clamp(6rem, 13vw, 10rem);

  font-weight: 400;

  line-height: 1;
}

.date-card__divider {
  width: 1px;

  height: 150px;

  background: var(--line);
}

.date-card__main p {
  margin: 0;

  color: var(--muted);

  font-size: 0.78rem;

  font-weight: 700;

  letter-spacing: 0.12em;

  text-transform: uppercase;
}

.date-card__main strong {
  display: block;

  margin:
    4px
    0
    18px;

  color: var(--velvet-800);

  font-family: var(--font-display);

  font-size:
    clamp(3rem, 7vw, 5.5rem);

  font-weight: 400;

  line-height: 1;
}

.date-card__main strong:last-child {
  margin-bottom: 0;
}


/* =========================================================
   PHOTO STORY
   ========================================================= */

.photo-story {
  background:
    radial-gradient(
      circle at 80% 10%,
      rgba(217, 149, 143, 0.15),
      transparent 30%
    ),
    linear-gradient(
      145deg,
      #570914,
      #3d050d
    );

  color: var(--cream-100);
}

.photo-story__grid {
  display: grid;

  grid-template-columns:
    minmax(0, 1.08fr)
    minmax(0, 0.92fr);

  gap:
    clamp(22px, 4vw, 52px);

  align-items: stretch;
}

.photo-story__side {
  display: flex;

  flex-direction: column;

  gap:
    clamp(30px, 5vw, 64px);
}

.photo-story__copy {
  padding-top:
    clamp(10px, 3vw, 40px);
}

.photo-story__copy .display-title {
  font-size:
    clamp(4rem, 7vw, 7rem);
}

.photo-story__copy > p:last-child {
  max-width: 580px;

  margin:
    30px
    0
    0;

  color:
    rgba(255, 248, 241, 0.64);

  line-height: 1.75;
}

.photo-story__mini-grid {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 16px;

  margin-top: auto;
}

.photo-card {
  position: relative;

  margin: 0;

  overflow: hidden;

  border:
    1px solid
    rgba(255, 248, 241, 0.13);

  border-radius: 26px;

  background: var(--velvet-900);

  box-shadow:
    0 26px 60px
    rgba(28, 0, 5, 0.22);
}

.photo-card::after {
  position: absolute;

  content: "";

  inset: 0;

  background:
    linear-gradient(
      to bottom,
      transparent 55%,
      rgba(57, 2, 12, 0.2)
    );

  pointer-events: none;
}

.photo-card img {
  width: 100%;

  height: 100%;

  object-fit: cover;

  transition:
    transform 1.1s var(--ease);

  filter:
    saturate(0.88)
    contrast(0.98);
}

.photo-card:hover img {
  transform:
    scale(1.035);
}

.photo-card--main {
  min-height: 680px;
}

.photo-story__mini-grid .photo-card {
  aspect-ratio:
    0.82 / 1;
}


/* =========================================================
   SECTION HEADING
   ========================================================= */

.section-heading {
  display: grid;

  grid-template-columns:
    minmax(0, 1.2fr)
    minmax(250px, 0.6fr);

  gap: 60px;

  align-items: end;
}

.section-note {
  justify-self: end;

  max-width: 420px;

  margin:
    0
    0
    10px;

  color:
    rgba(255, 247, 239, 0.64);

  line-height: 1.7;
}


/* =========================================================
   ПРОГРАММА
   ========================================================= */

.timeline {
  margin-top:
    clamp(60px, 8vw, 100px);

  border-top:
    1px solid
    rgba(255, 248, 241, 0.15);
}

.timeline__item {
  display: grid;

  grid-template-columns:
    minmax(120px, 0.33fr)
    1fr;

  gap: 28px;

  padding:
    34px
    0;

  border-bottom:
    1px solid
    rgba(255, 248, 241, 0.15);
}

.timeline__item time {
  color: #f1c2bc;

  font-family: var(--font-sans);

  font-size:
    clamp(2rem, 4vw, 3.6rem);

  font-weight: 500;

  line-height: 1;
}

.timeline__item > div {
  display: grid;

  grid-template-columns:
    60px
    minmax(220px, 0.65fr)
    1fr;

  gap: 20px;

  align-items: center;
}

.timeline__item > div > span {
  color:
    rgba(255, 248, 241, 0.42);

  font-size: 0.72rem;

  font-weight: 700;
}

.timeline__item h3 {
  margin: 0;

  color: var(--cream-100);

  font-family: var(--font-display);

  font-size:
    clamp(3.3rem, 5.5vw, 5.5rem);

  font-weight: 400;

  line-height: 0.95;
}

.timeline__item p {
  margin: 0;

  color:
    rgba(255, 248, 241, 0.62);

  line-height: 1.65;
}


/* =========================================================
   VENUE
   ========================================================= */

.split-layout {
  display: grid;

  grid-template-columns:
    0.9fr
    1.1fr;

  gap:
    clamp(40px, 8vw, 100px);

  align-items: center;
}

.text-link {
  display: inline-flex;

  gap: 14px;

  align-items: center;

  margin-top: 32px;

  padding-bottom: 7px;

  border-bottom:
    1px solid
    rgba(112, 12, 26, 0.3);

  color: var(--velvet-800);

  font-size: 0.83rem;

  font-weight: 700;

  text-decoration: none;

  transition:
    gap 0.3s var(--ease),
    border-color 0.3s ease;
}

.text-link:hover {
  gap: 20px;

  border-color: currentColor;
}


/* =========================================================
   VENUE PHOTO
   ========================================================= */

.venue-photo {
  position: relative;

  min-height: 600px;

  margin: 0;

  padding: 18px;

  overflow: hidden;

  border-radius: var(--radius-xl);

  background:
    linear-gradient(
      145deg,
      #8f1325,
      #560915
    );

  box-shadow: var(--shadow);
}

.venue-photo::before {
  position: absolute;

  z-index: 2;

  content: "";

  inset: 18px;

  border:
    1px solid
    rgba(255, 245, 235, 0.28);

  border-radius:
    calc(var(--radius-xl) - 13px);

  pointer-events: none;
}

.venue-photo > img {
  width: 100%;

  height: 100%;

  min-height: 564px;

  border-radius:
    calc(var(--radius-xl) - 10px);

  object-fit: cover;

  filter:
    saturate(0.8)
    contrast(1.02)
    brightness(0.92);
}

.venue-photo__label {
  position: absolute;

  z-index: 3;

  right: 38px;

  bottom: 38px;

  display: flex;

  flex-direction: column;

  align-items: center;

  justify-content: center;

  width: 110px;

  height: 110px;

  border:
    1px solid
    rgba(255, 248, 241, 0.28);

  border-radius: 50%;

  background:
    rgba(87, 9, 20, 0.72);

  color: var(--cream-100);

  backdrop-filter:
    blur(10px);
}

.venue-photo__label span:first-child {
  font-family: var(--font-display);

  font-size: 3.2rem;

  line-height: 1;
}

.venue-photo__label span:last-child {
  margin-top: 2px;

  font-size: 0.58rem;

  font-weight: 700;

  letter-spacing: 0.1em;

  text-transform: uppercase;
}


/* =========================================================
   PALETTE
   ========================================================= */

.palette {
  display: flex;

  flex-wrap: wrap;

  gap: 14px;

  margin-top: 52px;
}

.palette span {
  width:
    clamp(52px, 8vw, 78px);

  aspect-ratio: 1;

  border:
    7px solid
    rgba(255, 255, 255, 0.45);

  border-radius: 50%;

  background: var(--swatch);

  box-shadow:
    0 8px 24px
    rgba(81, 27, 33, 0.1);

  transition:
    transform 0.35s var(--ease);
}

.palette span:hover {
  transform:
    translateY(-5px)
    scale(1.04);
}


/* =========================================================
   COUNTDOWN
   ========================================================= */

.countdown-section {
  text-align: center;
}

.countdown-section .display-title {
  margin-inline: auto;
}

.countdown {
  display: grid;

  grid-template-columns:
    repeat(4, 1fr);

  gap: 12px;

  margin-top: 58px;
}

.countdown > div {
  padding:
    26px
    10px;

  border:
    1px solid
    rgba(255, 248, 241, 0.16);

  border-radius: 22px;

  background:
    rgba(255, 255, 255, 0.04);

  backdrop-filter:
    blur(8px);
}

.countdown strong {
  display: block;

  color: var(--cream-100);

  font-family: var(--font-display);

  font-size:
    clamp(4rem, 8vw, 6rem);

  font-weight: 400;

  line-height: 1;
}

.countdown span {
  display: block;

  margin-top: 8px;

  color:
    rgba(255, 248, 241, 0.55);

  font-size: 0.7rem;

  font-weight: 700;

  letter-spacing: 0.12em;

  text-transform: uppercase;
}


/* =========================================================
   RSVP
   ========================================================= */

.rsvp-grid {
  display: grid;

  grid-template-columns:
    minmax(280px, 0.75fr)
    minmax(360px, 1.1fr);

  gap:
    clamp(44px, 8vw, 110px);

  align-items: start;
}

.rsvp-copy {
  position: sticky;

  top: 40px;
}

.rsvp-copy__deadline {
  margin:
    26px
    0
    0;

  color: var(--velvet-700);

  font-size: 0.82rem;

  font-weight: 700;
}

.rsvp-form {
  display: grid;

  gap: 28px;

  padding:
    clamp(24px, 4vw, 48px);

  border:
    1px solid var(--line);

  border-radius: var(--radius-xl);

  background: #fffdf9;

  box-shadow:
    0 28px 80px
    rgba(76, 21, 29, 0.08);
}

.form-field {
  min-width: 0;

  margin: 0;

  padding: 0;

  border: 0;
}

.form-field > label,
.form-field > legend {
  display: block;

  width: 100%;

  margin-bottom: 10px;

  padding: 0;

  color: var(--ink);

  font-size: 0.8rem;

  font-weight: 700;
}

.form-field input[type="text"],
.form-field textarea,
.form-field select {
  width: 100%;

  border:
    1px solid
    rgba(111, 13, 27, 0.15);

  border-radius: 15px;

  background: #fffaf4;

  color: var(--ink);

  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.form-field input[type="text"],
.form-field select {
  height: 54px;

  padding:
    0
    16px;
}

.form-field textarea {
  min-height: 118px;

  padding:
    15px
    16px;

  resize: vertical;
}

.form-field input[type="text"]::placeholder,
.form-field textarea::placeholder {
  color: #ac9394;
}

.form-field input[type="text"]:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color:
    rgba(111, 13, 27, 0.42);

  background: #fff;

  box-shadow:
    0 0 0 4px
    rgba(111, 13, 27, 0.06);
}


/* =========================================================
   CHOICE PILLS
   ========================================================= */

.choice-grid {
  display: grid;

  gap: 10px;
}

.choice-grid--attendance {
  grid-template-columns:
    repeat(3, 1fr);
}

.choice-grid--drinks {
  grid-template-columns:
    repeat(2, 1fr);
}

.choice-pill {
  position: relative;

  cursor: pointer;
}

.choice-pill input {
  position: absolute;

  width: 1px;

  height: 1px;

  opacity: 0;

  pointer-events: none;
}

.choice-pill span {
  display: flex;

  align-items: center;

  justify-content: center;

  min-height: 50px;

  padding:
    10px
    14px;

  border:
    1px solid
    rgba(111, 13, 27, 0.14);

  border-radius: 14px;

  background: #fffaf4;

  color: var(--muted);

  font-size: 0.79rem;

  font-weight: 600;

  text-align: center;

  transition:
    border-color 0.25s ease,
    background 0.25s ease,
    color 0.25s ease,
    transform 0.25s var(--ease);
}

.choice-pill:hover span {
  border-color:
    rgba(111, 13, 27, 0.3);

  transform:
    translateY(-1px);
}

.choice-pill input:checked + span {
  border-color:
    var(--velvet-700);

  background:
    var(--velvet-700);

  color: #fff;
}

.choice-pill input:focus-visible + span {
  outline:
    3px solid
    rgba(138, 16, 34, 0.2);

  outline-offset: 2px;
}


/* =========================================================
   ERRORS
   ========================================================= */

.field-error {
  display: block;

  min-height: 16px;

  margin-top: 6px;

  color: #a6172a;

  font-size: 0.72rem;
}


/* =========================================================
   HONEYPOT
   ========================================================= */

.website-field {
  position: absolute !important;

  left: -10000px !important;

  width: 1px !important;

  height: 1px !important;

  overflow: hidden !important;

  opacity: 0 !important;

  pointer-events: none !important;
}


/* =========================================================
   SUBMIT
   ========================================================= */

.submit-button {
  position: relative;

  display: inline-flex;

  align-items: center;

  justify-content: center;

  min-height: 58px;

  padding:
    15px
    24px;

  border: 0;

  border-radius: 999px;

  background:
    linear-gradient(
      135deg,
      var(--velvet-700),
      var(--velvet-900)
    );

  color: #fff;

  box-shadow:
    0 16px 32px
    rgba(110, 10, 25, 0.18);

  font-weight: 700;

  cursor: pointer;

  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease),
    opacity 0.3s ease;
}

.submit-button:hover {
  transform:
    translateY(-2px);

  box-shadow:
    0 20px 38px
    rgba(110, 10, 25, 0.24);
}

.submit-button:disabled {
  cursor: default;

  opacity: 0.75;

  transform: none;
}

.submit-button__loader {
  display: none;

  width: 20px;

  height: 20px;

  border:
    2px solid
    rgba(255, 255, 255, 0.35);

  border-top-color: #fff;

  border-radius: 50%;

  animation:
    spin
    0.8s
    linear
    infinite;
}

.submit-button.is-loading
.submit-button__text {
  display: none;
}

.submit-button.is-loading
.submit-button__loader {
  display: block;
}

.form-status {
  display: none;

  padding:
    14px
    16px;

  border-radius: 14px;

  font-size: 0.84rem;

  line-height: 1.5;
}

.form-status.is-visible {
  display: block;
}

.form-status.is-success {
  background: #eef6ee;

  color: #2e6637;
}

.form-status.is-error {
  background: #fff0f1;

  color: #9d1e30;
}

@keyframes spin {

  to {
    transform:
      rotate(360deg);
  }

}


/* =========================================================
   FOOTER
   ========================================================= */

.footer {
  position: relative;

  overflow: hidden;

  padding:
    100px
    0;

  background:
    var(--velvet-950);

  color:
    var(--cream-100);

  text-align: center;
}

.footer::before {
  position: absolute;

  top: -120px;

  left: 50%;

  width: 340px;

  height: 340px;

  content: "";

  border:
    1px solid
    rgba(255, 247, 239, 0.08);

  border-radius: 50%;

  transform:
    translateX(-50%);
}

.footer__inner {
  position: relative;

  z-index: 2;
}

.footer h2 {
  margin: 0;

  font-family: var(--font-display);

  font-size:
    clamp(4.5rem, 11vw, 8.5rem);

  font-weight: 400;

  letter-spacing: 0;

  line-height: 0.95;
}

.footer h2 em {
  color: #e6a99f;

  font-style: normal;

  font-weight: 400;
}

.footer__inner > p:last-child {
  margin:
    28px
    0
    0;

  color:
    rgba(255, 248, 241, 0.54);

  font-size: 0.75rem;

  letter-spacing: 0.18em;
}


/* =========================================================
   SCROLL REVEAL
   ========================================================= */

.reveal {
  opacity: 0;

  transform:
    translateY(28px);

  transition:
    opacity 0.85s var(--ease),
    transform 0.85s var(--ease);
}

.reveal.is-visible {
  opacity: 1;

  transform:
    translateY(0);
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 960px) {

  :root {
    --container:
      min(calc(100% - 36px), 860px);
  }


  .hero__title {
    font-size:
      clamp(5rem, 14vw, 9rem);
  }


  .hero__photo {
    top: 16%;

    right: -5%;

    width: 38vw;

    height: 60vh;

    opacity: 0.7;
  }


  .section-heading,
  .split-layout,
  .rsvp-grid {
    grid-template-columns: 1fr;
  }


  .section-note {
    justify-self: start;

    max-width: 620px;
  }


  .photo-story__grid {
    grid-template-columns: 1fr;
  }


  .photo-card--main {
    min-height: 600px;
  }


  .split-layout {
    gap: 58px;
  }


  .venue-photo {
    min-height: 560px;
  }


  .venue-photo > img {
    min-height: 524px;
  }


  .rsvp-copy {
    position: static;

    max-width: 700px;
  }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 720px) {

  :root {
    --container:
      calc(100% - 28px);

    --radius-xl:
      30px;
  }


  .section {
    padding:
      86px
      0;
  }


  .display-title {
    font-size:
      clamp(3.7rem, 15vw, 6rem);
  }


  .intro__content {
    width: 100%;
  }


  .intro__eyebrow {
    margin-bottom: 22px;

    font-size: 0.6rem;
  }


  .envelope {
    width:
      min(390px, 86vw);

    margin-bottom: 26px;
  }


  .envelope__seal {
    width: 54px;

    height: 54px;

    margin:
      -27px
      0
      0
      -27px;
  }


  .intro__copy h1 {
    font-size:
      clamp(4rem, 17vw, 6rem);
  }


  .open-button {
    min-width:
      min(250px, 86vw);

    margin-top: 22px;
  }


  .hero__topline {
    font-size: 0.62rem;

    letter-spacing: 0.08em;
  }


  .hero__title-wrap {
    padding:
      60px
      0
      110px;
  }


  .hero__title {
    font-size:
      clamp(5rem, 21vw, 8rem);
  }


  .hero__photo {
    top: 18%;

    right: -15%;

    width: 72vw;

    height: 58vh;

    opacity: 0.34;
  }


  .date-card {
    grid-template-columns: 1fr;

    gap: 30px;

    text-align: center;
  }


  .date-card__divider {
    width: 100%;

    height: 1px;
  }


  .photo-card--main {
    min-height: 500px;
  }


  /* ПРОГРАММА */

  .timeline__item {
    grid-template-columns: 1fr;

    gap: 18px;

    padding:
      30px
      0;
  }


  .timeline__item > div {
    grid-template-columns:
      44px
      1fr;

    gap: 12px;
  }


  .timeline__item h3 {
    grid-column: 2;

    font-size:
      clamp(3.4rem, 15vw, 5.4rem);
  }


  .timeline__item p {
    grid-column: 2;
  }


  .venue-photo {
    min-height: 470px;

    padding: 12px;
  }


  .venue-photo::before {
    inset: 12px;
  }


  .venue-photo > img {
    min-height: 446px;
  }


  .venue-photo__label {
    right: 28px;

    bottom: 28px;

    width: 94px;

    height: 94px;
  }


  .countdown {
    grid-template-columns:
      repeat(2, 1fr);
  }


  .choice-grid--attendance,
  .choice-grid--drinks {
    grid-template-columns: 1fr;
  }


  .rsvp-form {
    padding: 22px;

    border-radius: 24px;
  }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 460px) {

  .section {
    padding:
      74px
      0;
  }


  .display-title {
    font-size:
      clamp(3.4rem, 16vw, 5.3rem);
  }


  .lead {
    margin-top: 26px;
  }


  .envelope {
    width:
      min(340px, 88vw);
  }


  .mini-card {
    inset: 12px;
  }


  .mini-card strong {
    font-size: 2.6rem;
  }


  .intro__copy h1 {
    font-size:
      clamp(3.8rem, 19vw, 5.5rem);
  }


  .intro__copy p {
    font-size: 0.82rem;
  }


  .hero__topline {
    flex-direction: column;

    gap: 7px;
  }


  .hero__title {
    font-size:
      clamp(4.8rem, 23vw, 7rem);

    line-height: 0.9;
  }


  .hero__subtitle {
    font-size: 0.92rem;
  }


  .scroll-cue__line {
    width: 44px;
  }


  .photo-card--main {
    min-height: 420px;
  }


  .photo-story__mini-grid {
    grid-template-columns:
      1fr
      1fr;
  }


  .timeline__item h3 {
    font-size:
      clamp(3.2rem, 13vw, 5rem);
  }


  .venue-photo {
    min-height: 390px;
  }


  .venue-photo > img {
    min-height: 366px;
  }


  .venue-photo__label {
    width: 82px;

    height: 82px;
  }


  .palette {
    gap: 10px;
  }


  .palette span {
    width: 54px;
  }


  .countdown {
    gap: 8px;
  }


  .countdown > div {
    padding:
      20px
      8px;

    border-radius: 18px;
  }


  .countdown strong {
    font-size: 4rem;
  }


  .countdown span {
    font-size: 0.62rem;
  }

}


/* =========================================================
   LOW HEIGHT
   ========================================================= */

@media (max-height: 700px) {

  .intro {
    padding-top: 12px;

    padding-bottom: 12px;
  }


  .intro__eyebrow {
    margin-bottom: 12px;
  }


  .envelope {
    width:
      min(330px, 72vw);

    margin-bottom: 14px;
  }


  .intro__copy h1 {
    font-size:
      clamp(3.4rem, 10vh, 5rem);
  }


  .intro__copy p {
    margin-top: 7px;

    font-size: 0.78rem;
  }


  .open-button {
    min-height: 46px;

    margin-top: 14px;

    padding:
      12px
      19px;
  }

}


/* =========================================================
   TOUCH
   ========================================================= */

@media (hover: none) {

  .open-button:hover,
  .submit-button:hover,
  .palette span:hover,
  .choice-pill:hover span,
  .photo-card:hover img {
    transform: none;
  }

}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }


  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;

    animation-duration:
      0.001ms !important;

    animation-iteration-count:
      1 !important;

    transition-duration:
      0.001ms !important;
  }


  .reveal {
    opacity: 1;

    transform: none;
  }

}