:root {
  --black: #0a0a0a;
  --ink: #151515;
  --white: #ffffff;
  --ivory: #f5f2eb;
  --champagne: #d6c0a0;
  --champagne-soft: #e8dac6;
  --line: rgba(214, 192, 160, 0.42);
  --serif: "Italiana", "Times New Roman", serif;
  --sans: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --micro: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  --pad: clamp(1.3rem, 4vw, 4rem);
  --section: clamp(5.5rem, 11vw, 10rem);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--black);
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  overflow-x: hidden;
}

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

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

img {
  display: block;
  width: 100%;
}

::selection {
  background: var(--champagne);
  color: var(--black);
}


/* =========================================================
   GRAIN
   ========================================================= */

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 99;
  opacity: .05;
  mix-blend-mode: multiply;

  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='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}


/* =========================================================
   HEADER
   ========================================================= */

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
  height: 88px;
  padding: 0 var(--pad);

  display: flex;
  align-items: center;
  justify-content: space-between;

  color: white;
}

.monogram {
  font-family: var(--serif);
  font-size: 1.35rem;
  letter-spacing: .14em;
}

.monogram span {
  color: var(--champagne);
}

.nav {
  display: flex;
  gap: clamp(1.1rem, 3vw, 2.6rem);

  font-family: var(--micro);
  text-transform: uppercase;
  font-size: .69rem;
  letter-spacing: .16em;
}

.nav a {
  position: relative;
  padding: .4rem 0;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;

  width: 100%;
  height: 1px;

  background: var(--champagne);

  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s ease;
}

.nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}


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

.hero {
  min-height: 100svh;
  position: relative;

  display: grid;
  place-items: center;

  overflow: hidden;

  background: #111;
  color: white;
}

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

.hero-media img {
  height: 100%;
  object-fit: cover;
  object-position: center;

  filter: grayscale(1) contrast(1.04);

  transform: scale(1.035);
  animation: heroDrift 18s ease-out both;
}

.hero-shade {
  background:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, .22),
      rgba(0, 0, 0, .12) 40%,
      rgba(0, 0, 0, .55)
    );
}

.hero-content {
  position: relative;
  z-index: 2;

  width: min(1240px, calc(100% - 2 * var(--pad)));

  text-align: center;
  padding-top: 4rem;
}

.eyebrow {
  margin: 0 0 1.35rem;

  font-family: var(--micro);
  font-size: .7rem;
  font-weight: 500;

  text-transform: uppercase;
  letter-spacing: .28em;
}

.hero-kicker {
  color: var(--champagne-soft);
}

.hero-title {
  margin: 0;

  display: flex;
  flex-direction: column;
  align-items: center;

  font-family: var(--serif);
  font-weight: 400;

  font-size: clamp(4.3rem, 12vw, 10.8rem);
  line-height: .73;
  letter-spacing: -.045em;

  text-shadow: 0 3px 40px rgba(0, 0, 0, .22);
}

.hero-title em {
  position: relative;
  z-index: 2;

  margin: .1em 0 -.04em;

  font-family: Georgia, serif;
  font-size: .43em;
  font-weight: 400;

  color: var(--champagne);
}

.hero-meta {
  margin-top: clamp(2.8rem, 7vh, 5.5rem);

  display: flex;
  justify-content: center;
  align-items: center;

  gap: 1rem;

  font-family: var(--micro);
  font-size: .72rem;

  letter-spacing: .19em;
  text-transform: uppercase;
}

.hero-meta .dot {
  color: var(--champagne);
  font-size: .55rem;
}

.scroll-cue {
  position: absolute;
  z-index: 3;

  bottom: 1.8rem;
  right: var(--pad);

  display: flex;
  align-items: center;

  gap: .9rem;

  font-family: var(--micro);
  font-size: .62rem;

  text-transform: uppercase;
  letter-spacing: .2em;
}

.scroll-cue i {
  width: 44px;
  height: 1px;

  background: rgba(255, 255, 255, .7);

  overflow: hidden;
  position: relative;
}

.scroll-cue i::after {
  content: "";

  position: absolute;
  inset: 0;

  background: var(--champagne);

  transform: translateX(-100%);
  animation: scan 2.4s ease-in-out infinite;
}


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

.section-pad {
  padding: var(--section) var(--pad);
}

.intro {
  text-align: center;
  max-width: 1220px;
  margin: auto;
}

.intro-rule {
  width: 1px;
  height: 80px;

  background: var(--champagne);

  margin: 0 auto 3.2rem;
}

.display-copy {
  max-width: 1050px;
  margin: 0 auto;

  font-family: var(--serif);

  font-size: clamp(2.6rem, 6.3vw, 6.3rem);
  line-height: .98;

  font-weight: 400;
  letter-spacing: -.035em;
}

.champagne {
  color: #9d7b51;
  font-style: italic;
}

.body-copy {
  max-width: 560px;

  margin: 2.4rem auto 0;

  line-height: 1.8;
  font-size: .95rem;

  color: #555;
}


/* =========================================================
   FEATURE IMAGE
   ========================================================= */

.image-feature {
  position: relative;

  height: min(78vw, 900px);

  margin: 0 var(--pad);

  overflow: hidden;

  background: #171717;
}

.image-feature img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  filter: grayscale(1);

  transition:
    transform 1.8s cubic-bezier(.2, .75, .25, 1);
}

.image-feature.is-visible img {
  transform: scale(1.025);
}

.image-caption {
  position: absolute;

  left: 1.5rem;
  bottom: 1rem;

  margin: 0;

  color: white;

  font-family: var(--micro);
  text-transform: uppercase;

  letter-spacing: .18em;
  font-size: .6rem;
}


/* =========================================================
   DETAILS
   ========================================================= */

.details {
  background: var(--black);
  color: white;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;

  gap: 2rem;

  margin-bottom: clamp(3rem, 6vw, 5.5rem);
}

.section-heading h2,
.countdown-copy h2,
.story-copy h2,
.rsvp-intro h2 {
  margin: 0;

  font-family: var(--serif);
  font-weight: 400;

  font-size: clamp(3rem, 7vw, 6.5rem);
  line-height: .92;

  letter-spacing: -.04em;
}

.section-heading .eyebrow {
  color: var(--champagne);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);

  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.detail-card {
  min-height: 360px;

  padding:
    2rem
    clamp(1.2rem, 2.6vw, 2.8rem)
    2.4rem;

  position: relative;

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

  display: flex;
  flex-direction: column;
}

.detail-card:last-child {
  border-right: 0;
}

.detail-number {
  align-self: end;

  font-family: var(--serif);
  font-size: 1.1rem;

  color: var(--champagne);
}

.detail-card .eyebrow {
  margin-top: 3.8rem;
  color: #a7a7a7;
}

.detail-card h3 {
  margin: 0 0 1rem;

  font-family: var(--serif);

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

  font-weight: 400;
}

.detail-card p:not(.eyebrow) {
  max-width: 280px;

  line-height: 1.7;

  color: #c4c4c4;

  font-size: .88rem;
}

.text-link {
  margin-top: auto;

  width: fit-content;

  border-bottom: 1px solid #6b6b6b;

  padding-bottom: .35rem;

  font-size: .75rem;
  letter-spacing: .08em;
}

.text-link span {
  color: var(--champagne);
}

.palette {
  display: flex;
  gap: .6rem;

  margin-top: auto;
}

.swatch {
  width: 34px;
  height: 34px;

  border-radius: 50%;

  display: block;

  border: 1px solid rgba(255, 255, 255, .22);
}

.swatch.black {
  background: #050505;
}

.swatch.white {
  background: white;
}

.swatch.gold {
  background: var(--champagne);
}

.calendar-wrap {
  display: flex;
  justify-content: flex-end;

  padding-top: 2.8rem;
}

.outline-button {
  appearance: none;

  border: 1px solid #454545;
  background: transparent;

  color: white;

  padding: 1rem 1.2rem 1rem 1.35rem;

  min-width: 220px;

  display: flex;
  justify-content: space-between;

  gap: 1rem;

  cursor: pointer;

  font-family: var(--micro);
  font-size: .72rem;

  text-transform: uppercase;
  letter-spacing: .14em;

  transition: .35s ease;
}

.outline-button:hover {
  background: var(--champagne);
  color: var(--black);
  border-color: var(--champagne);
}


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

.countdown-section {
  background: var(--champagne);
  color: var(--black);

  padding:
    clamp(4.5rem, 9vw, 8rem)
    var(--pad);

  display: grid;
  grid-template-columns: .8fr 1.2fr;

  gap: 5vw;

  align-items: end;
}

.countdown-copy h2 {
  font-size: clamp(3rem, 6vw, 6rem);
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);

  border-top: 1px solid rgba(0, 0, 0, .35);
}

.countdown > div {
  padding: 1.8rem .8rem .5rem;

  border-right: 1px solid rgba(0, 0, 0, .22);
}

.countdown > div:last-child {
  border-right: none;
}

.countdown strong {
  display: block;

  font-family: var(--serif);

  font-size: clamp(2.7rem, 5.2vw, 5.4rem);

  font-weight: 400;
  line-height: 1;
}

.countdown span {
  display: block;

  margin-top: .8rem;

  font-family: var(--micro);
  font-size: .62rem;

  text-transform: uppercase;
  letter-spacing: .18em;
}


/* =========================================================
   STORY / SINCE 2021 SECTION
   ========================================================= */

.story {
  background: var(--ivory);
}

.story-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;

  gap: clamp(2rem, 8vw, 9rem);

  align-items: center;

  max-width: 1300px;

  margin: auto;
}

.story-copy .eyebrow {
  color: #8b6e4a;
}

.story-copy p:last-child {
  max-width: 460px;

  margin-top: 2rem;

  line-height: 1.8;

  color: #575757;
}

.story-image {
  margin: 0;

  aspect-ratio: 4 / 5;

  overflow: hidden;
}

.story-image img {
  height: 100%;

  object-fit: cover;

  filter: grayscale(1);
}


/* =========================================================
   GALLERY
   ========================================================= */

.gallery {
  background: white;
}

.gallery .section-heading .eyebrow {
  color: #8b6e4a;
}

.gallery-grid {
  display: grid;

  grid-template-columns: 1.25fr .75fr;
  grid-template-rows:
    repeat(2, minmax(230px, 38vw));

  gap: clamp(.7rem, 1.8vw, 1.5rem);
}

.gallery-item {
  margin: 0;

  overflow: hidden;

  background: #ddd;
}

.gallery-item.tall {
  grid-row: 1 / 3;
}

.gallery-item img {
  height: 100%;

  object-fit: cover;

  filter: grayscale(1);

  transform: scale(1.01);

  transition:
    transform 1.2s cubic-bezier(.2, .75, .25, 1),
    filter .8s ease;
}

.gallery-item:hover img {
  transform: scale(1.045);

  filter: grayscale(.3);
}


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

.rsvp {
  background: #111;
  color: white;
}

.rsvp-shell {
  max-width: 1250px;

  margin: auto;

  display: grid;
  grid-template-columns: .85fr 1.15fr;

  gap: clamp(3rem, 8vw, 9rem);
}

.rsvp-intro {
  position: sticky;

  top: 5rem;

  align-self: start;
}

.rsvp-intro .eyebrow {
  color: var(--champagne);
}

.rsvp-intro p:last-child {
  max-width: 410px;

  margin-top: 2rem;

  line-height: 1.8;

  color: #aaa;
}

.rsvp-intro strong {
  color: white;
  font-weight: 400;
}

.rsvp-form {
  display: grid;

  gap: 2rem;
}

.rsvp-form > label,
.rsvp-form fieldset {
  border: 0;

  padding: 0;
  margin: 0;
}

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

  margin-bottom: .75rem;

  font-family: var(--micro);
  font-size: .65rem;

  text-transform: uppercase;
  letter-spacing: .16em;

  color: #aaa;
}

.rsvp-form small {
  text-transform: none;
  letter-spacing: normal;
}

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

  border: 0;
  border-bottom: 1px solid #444;

  border-radius: 0;

  outline: 0;

  padding: .75rem 0 1rem;

  background: transparent;
  color: white;

  font-family: var(--serif);
  font-size: 1.55rem;

  transition: border-color .25s;
}

.rsvp-form textarea {
  resize: vertical;
  min-height: 100px;
}

.rsvp-form select {
  color-scheme: dark;
}

.rsvp-form input:focus,
.rsvp-form select:focus,
.rsvp-form textarea:focus {
  border-color: var(--champagne);
}

.choice-row {
  display: grid;
  grid-template-columns: 1fr 1fr;

  gap: .7rem;
}

.choice {
  cursor: pointer;
}

.choice input {
  position: absolute;

  opacity: 0;

  pointer-events: none;
}

.choice span {
  margin: 0 !important;

  padding: 1rem;

  border: 1px solid #414141;

  color: #d8d8d8 !important;

  text-transform: none !important;
  letter-spacing: .02em !important;

  font-size: .78rem !important;

  text-align: center;

  transition: .25s;
}

.choice input:checked + span {
  background: var(--champagne);
  color: var(--black) !important;
  border-color: var(--champagne);
}

.whatsapp-button {
  margin-top: .5rem;

  border: 0;

  background: var(--champagne);
  color: #0a0a0a;

  padding: 1.15rem 1.25rem 1.15rem 1.5rem;

  display: flex;
  justify-content: space-between;
  align-items: center;

  cursor: pointer;

  font-family: var(--micro);

  font-size: .75rem;
  font-weight: 500;

  text-transform: uppercase;
  letter-spacing: .12em;

  transition:
    transform .25s ease,
    background .25s ease;
}

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

  background: #e4d0b4;
}

.whatsapp-button svg {
  width: 22px;
  height: 22px;

  fill: currentColor;
}

.form-note {
  margin: -.6rem 0 0;

  color: #777;

  font-size: .7rem;

  line-height: 1.5;
}


/* =========================================================
   CLOSING
   ========================================================= */

.closing {
  height: min(78vw, 920px);

  position: relative;

  display: grid;
  place-items: center;

  overflow: hidden;

  color: white;
  background: #111;
}

.closing img,
.closing-overlay {
  position: absolute;

  inset: 0;

  width: 100%;
  height: 100%;
}

.closing img {
  object-fit: cover;

  filter: grayscale(1);
}

.closing-overlay {
  background: rgba(0, 0, 0, .45);
}

.closing-copy {
  position: relative;
  z-index: 2;

  text-align: center;
}

.closing-copy .eyebrow {
  color: var(--champagne-soft);
}

.closing-copy h2 {
  margin: 0;

  font-family: var(--serif);

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

  font-weight: 400;
  letter-spacing: -.04em;
}

.closing-copy h2 em {
  color: var(--champagne);

  font-size: .65em;
}

.closing-copy > p:last-child {
  font-family: var(--micro);

  letter-spacing: .2em;

  font-size: .72rem;
}


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

.footer {
  min-height: 150px;

  padding: 2.5rem var(--pad);

  background: var(--black);

  color: #aaa;

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

  align-items: center;

  gap: 2rem;

  font-family: var(--micro);

  font-size: .65rem;

  text-transform: uppercase;
  letter-spacing: .12em;
}

.footer > span {
  color: var(--champagne);

  font-family: var(--serif);

  font-size: 1.3rem;
}

.footer p {
  margin: 0;

  text-align: center;
}

.footer a {
  justify-self: end;
}


/* =========================================================
   REVEAL ANIMATIONS
   ========================================================= */

.reveal {
  opacity: 0;

  transform: translateY(26px);

  transition:
    opacity 1.15s cubic-bezier(.2, .7, .2, 1),
    transform 1.15s cubic-bezier(.2, .7, .2, 1);
}

.reveal.is-visible {
  opacity: 1;

  transform: translateY(0);
}

.hero .reveal:nth-child(2) {
  transition-delay: .15s;
}

.hero .reveal:nth-child(3) {
  transition-delay: .32s;
}

@keyframes heroDrift {
  from {
    transform: scale(1.09);
  }

  to {
    transform: scale(1.035);
  }
}

@keyframes scan {
  0%,
  25% {
    transform: translateX(-100%);
  }

  60%,
  100% {
    transform: translateX(100%);
  }
}


/* =========================================================
   ORIGINAL TABLET / MOBILE RULES
   ========================================================= */

@media (max-width: 860px) {

  .site-header {
    height: 72px;
  }

  .nav a:not(:last-child) {
    display: none;
  }

  .hero-title {
    font-size: clamp(4rem, 18vw, 7rem);
    line-height: .78;
  }

  .hero-meta {
    flex-direction: column;
    gap: .5rem;
  }

  .hero-meta .dot {
    display: none;
  }

  .scroll-cue {
    display: none;
  }

  .image-feature {
    margin: 0;

    height: 110vw;
    max-height: 720px;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .detail-card {
    min-height: 300px;

    border-right: 0;

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

  .detail-card:last-child {
    border-bottom: 0;
  }

  .detail-card .eyebrow {
    margin-top: 2.5rem;
  }

  .countdown-section {
    grid-template-columns: 1fr;

    gap: 3rem;
  }

  .countdown strong {
    font-size: clamp(2rem, 10vw, 4rem);
  }

  .story-grid,
  .rsvp-shell {
    grid-template-columns: 1fr;
  }

  .rsvp-intro {
    position: static;
  }

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

    grid-template-rows: 75vw 54vw;
  }

  .gallery-item.tall {
    grid-column: 1 / 3;
    grid-row: auto;
  }

  .closing {
    height: 125vw;

    max-height: 820px;
  }

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

    text-align: center;
  }

  .footer a {
    justify-self: center;
  }
}


@media (max-width: 520px) {

  .hero-content {
    width: calc(100% - 2.2rem);
  }

  .hero-title {
    font-size: 18vw;
  }

  .section-heading {
    display: block;
  }

  .section-heading .eyebrow {
    margin-bottom: 1.4rem;
  }

  .countdown > div {
    padding-left: .35rem;
    padding-right: .35rem;
  }

  .countdown strong {
    font-size: 9vw;
  }

  .countdown span {
    font-size: .5rem;

    letter-spacing: .12em;
  }

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


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

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}


/* =========================================================
   NILMI & NILAN LOGO + MOBILE-FIRST POLISH
   ========================================================= */

.hero-title {
  width: 100%;

  display: grid;
  place-items: center;

  line-height: 1;
}

.hero-logo {
  width: min(78vw, 960px);

  height: auto;

  filter:
    drop-shadow(0 4px 26px rgba(0, 0, 0, .22));
}

.closing-logo-wrap {
  display: grid;

  place-items: center;

  width: min(82vw, 920px);

  margin-inline: auto !important;
}

.closing-logo {
  width: 100%;

  height: auto;

  filter:
    drop-shadow(0 4px 24px rgba(0, 0, 0, .2));
}

.mobile-rsvp {
  display: none;
}

.hero {
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
}

.site-header {
  padding-left:
    max(var(--pad), env(safe-area-inset-left));

  padding-right:
    max(var(--pad), env(safe-area-inset-right));

  padding-top:
    env(safe-area-inset-top);
}

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

button,
.outline-button,
.whatsapp-button,
.mobile-rsvp {
  touch-action: manipulation;
}


@media (hover: none) {

  .gallery-item:hover img {
    transform: scale(1.01);

    filter: grayscale(1);
  }

  .whatsapp-button:hover {
    transform: none;

    background: var(--champagne);
  }

  .outline-button:hover {
    background: transparent;

    color: white;

    border-color: #454545;
  }
}


@media (max-width: 860px) {

  :root {
    --pad: clamp(1.15rem, 5vw, 2rem);
    --section: clamp(4.5rem, 18vw, 7rem);
  }

  body {
    padding-bottom:
      calc(74px + env(safe-area-inset-bottom));
  }

  .site-header {
    height:
      calc(68px + env(safe-area-inset-top));
  }

  .monogram {
    font-size: 1.15rem;
  }

  .nav {
    gap: 1rem;
  }

  .nav a:last-child {
    border:
      1px solid rgba(255, 255, 255, .5);

    border-radius: 999px;

    padding: .65rem .85rem;
  }

  .nav a:last-child::after {
    display: none;
  }

  .hero-content {
    padding-top:
      max(2rem, env(safe-area-inset-top));

    width:
      min(calc(100% - 2rem), 720px);
  }

  .hero-kicker {
    margin-bottom: 1.75rem;
  }

  .hero-logo {
    width: min(94vw, 650px);
  }

  .hero-meta {
    margin-top:
      clamp(2rem, 6vh, 3.25rem);

    font-size: .66rem;

    line-height: 1.5;

    letter-spacing: .16em;
  }

  .display-copy {
    font-size:
      clamp(2.7rem, 11vw, 5rem);
  }

  .body-copy {
    font-size: .93rem;
  }

  .image-caption {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;

    line-height: 1.5;
  }

  .detail-card {
    min-height: 270px;

    padding:
      1.6rem .25rem 2rem;
  }

  .detail-number {
    margin-right: .25rem;
  }

  .calendar-wrap {
    justify-content: stretch;
  }

  .outline-button {
    width: 100%;
    min-height: 52px;
  }

  .countdown-section {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
  }

  .countdown {
    width: 100%;
  }

  .countdown > div {
    min-width: 0;
  }

  .story-image {
    margin-top: .5rem;
  }

  .rsvp-form {
    gap: 1.7rem;
  }

  .rsvp-form input[type="text"],
  .rsvp-form select,
  .rsvp-form textarea {
    font-size: 1.25rem;
  }

  .whatsapp-button {
    min-height: 56px;

    padding:
      1rem 1.1rem 1rem 1.25rem;

    border-radius: 2px;
  }

  .mobile-rsvp {
    position: fixed;
    z-index: 90;

    left:
      max(1rem, env(safe-area-inset-left));

    right:
      max(1rem, env(safe-area-inset-right));

    bottom:
      max(.85rem, env(safe-area-inset-bottom));

    min-height: 54px;

    padding:
      0 1.15rem 0 1.3rem;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border:
      1px solid rgba(255, 255, 255, .16);

    border-radius: 999px;

    background:
      rgba(12, 12, 12, .9);

    color: #fff;

    box-shadow:
      0 14px 40px rgba(0, 0, 0, .28);

    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);

    font-family: var(--micro);

    font-size: .69rem;
    font-weight: 500;

    letter-spacing: .18em;
    text-transform: uppercase;

    transition:
      opacity .3s ease,
      transform .3s ease;
  }

  .mobile-rsvp i {
    width: 34px;
    height: 34px;

    border-radius: 50%;

    display: grid;
    place-items: center;

    background: var(--champagne);
    color: var(--black);

    font-style: normal;
    font-size: 1rem;
  }

  body.rsvp-in-view .mobile-rsvp {
    opacity: 0;

    pointer-events: none;

    transform: translateY(12px);
  }

  .closing-logo-wrap {
    width: min(92vw, 650px);
  }

  .footer {
    padding-bottom:
      calc(2.5rem + env(safe-area-inset-bottom));
  }
}


@media (max-width: 520px) {

  .hero-media img {
    object-position: center 48%;
  }

  .hero-logo {
    width: 96vw;
    max-width: none;
  }

  .eyebrow {
    font-size: .62rem;

    letter-spacing: .24em;
  }

  .intro-rule {
    height: 62px;

    margin-bottom: 2.5rem;
  }

  .display-copy {
    font-size:
      clamp(2.55rem, 12vw, 4rem);

    line-height: 1.02;
  }

  .section-heading h2,
  .countdown-copy h2,
  .story-copy h2,
  .rsvp-intro h2 {
    font-size:
      clamp(2.8rem, 13vw, 4.2rem);
  }

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

    border-bottom:
      1px solid rgba(0, 0, 0, .25);
  }

  .countdown > div {
    padding:
      1.35rem .6rem 1rem;

    border-bottom:
      1px solid rgba(0, 0, 0, .22);
  }

  .countdown > div:nth-child(2) {
    border-right: 0;
  }

  .countdown > div:nth-child(3),
  .countdown > div:nth-child(4) {
    border-bottom: 0;
  }

  .countdown strong {
    font-size:
      clamp(2.7rem, 15vw, 4rem);
  }

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

  .gallery-grid {
    display: grid;

    grid-template-columns: 1fr;
    grid-template-rows: none;

    gap: .75rem;
  }

  .gallery-item,
  .gallery-item.tall {
    grid-column: auto;
    grid-row: auto;

    aspect-ratio: 4 / 5;
  }

  .gallery-item:nth-child(2) {
    aspect-ratio: 1 / 1;
  }

  .choice span {
    min-height: 52px;

    display: grid !important;

    place-items: center;
  }

  .form-note {
    font-size: .68rem;
  }

  .closing {
    min-height: 70vh;
    min-height: 70svh;

    height: 118vw;
  }
}


@media (max-width: 380px) {

  .hero-logo {
    width: 100vw;
  }

  .hero-meta {
    font-size: .6rem;
  }

  .mobile-rsvp {
    left: .75rem;
    right: .75rem;
  }
}


/* =========================================================
   ROSE & ORCHID THEME ACCENT
   ========================================================= */

.intro {
  position: relative;

  overflow: hidden;

  isolation: isolate;
}

.orchid-accent {
  position: absolute;

  right: clamp(-2rem, 1vw, 1rem);

  top: 50%;

  transform: translateY(-46%);

  width: clamp(220px, 28vw, 420px);

  z-index: 0;

  opacity: .42;

  pointer-events: none;
}

.orchid-accent img {
  width: 100%;
  height: auto;

  object-fit: contain;

  filter:
    drop-shadow(
      0 18px 28px
      rgba(198, 168, 128, .10)
    );
}

.intro-rule,
.intro .eyebrow,
.display-copy,
.body-copy,
.theme-note {
  position: relative;

  z-index: 1;
}

.display-copy {
  max-width:
    min(860px, calc(100% - 240px));
}

.theme-note {
  margin: 1.35rem auto 0;

  font-family: var(--serif);

  font-size:
    clamp(1rem, 1.7vw, 1.25rem);

  font-style: italic;

  letter-spacing: .08em;

  color: #a88962;
}

@keyframes orchidFloat {

  0%,
  100% {
    transform: translateY(-46%);
  }

  50% {
    transform: translateY(-49%);
  }
}

.orchid-accent {
  animation:
    orchidFloat 8s ease-in-out infinite;
}

@keyframes orchidFloatMobile {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-8px) rotate(1.5deg);
  }
}


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

@media (max-width: 860px) {

  .intro {
    padding-top:
      calc(var(--section) - 1rem);
  }

  .orchid-accent {
    right: -3rem;

    top: 2.1rem;

    transform: none;

    width:
      clamp(170px, 42vw, 260px);

    opacity: .34;

    animation: none;
  }

  .display-copy {
    max-width: 100%;
  }
}


/* =========================================================
   PHONE ORCHID
   FIXED: ALWAYS ON RIGHT SIDE
   ========================================================= */

@media (max-width: 520px) {

  .intro {
    padding-top:
      calc(var(--section) + 2.75rem);
  }

  .orchid-accent {
    right: -3rem;
    left: auto;
    top: 1.5rem;

    width: min(70vw, 290px);

    transform: translateY(-5px) rotate(1deg);
    opacity: .28;

    animation: orchidFloatMobile 9s ease-in-out infinite;
  }
}

  .theme-note {
    margin-top: 1rem;

    font-size: .96rem;

    letter-spacing: .06em;
  }
}


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

  .orchid-accent {
    animation: none;
  }
}


/* =========================================================
   FINAL CONTENT POLISH — 10 DEC 2026
   ========================================================= */

.site-header {
  justify-content: flex-end;
}


/* =========================================================
   CLOSING LOGO
   ========================================================= */

.closing-copy {
  width: 100%;

  padding-inline:
    clamp(1.5rem, 6vw, 5rem);
}

.closing-logo-wrap {
  width: min(72vw, 760px);

  max-width: 100%;

  margin:
    .6rem auto 0 !important;

  padding: .35rem 0;

  overflow: visible;
}

.closing-logo {
  width: 100%;
  height: auto;

  object-fit: contain;

  overflow: visible;
}

.closing-date {
  margin: 1.15rem 0 0;

  font-family: var(--micro);

  letter-spacing: .22em;

  font-size: .72rem;
}


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

.footer {
  grid-template-columns: 1fr auto;
}

.footer p {
  text-align: left;
}


@media (max-width: 860px) {

  .closing-logo-wrap {
    width:
      min(78vw, 600px);
  }

  .footer {
    grid-template-columns: 1fr;
  }

  .footer p {
    text-align: center;
  }
}


@media (max-width: 520px) {

  .closing-copy {
    padding-inline: 1.35rem;
  }

  .closing-logo-wrap {
    width: 82vw;
  }

  .closing-date {
    margin-top: .9rem;

    font-size: .65rem;
  }
}


/* =========================================================
   CLOSING COMPOSITION REFINEMENT
   ========================================================= */

.closing-copy {
  display: flex;
  flex-direction: column;

  align-items: center;
  justify-content: center;

  gap: 0;
}

.closing-logo-wrap {
  width: min(54vw, 560px);

  margin:
    .45rem auto 0 !important;

  padding: 0;

  line-height: 0;
}

.closing-logo {
  display: block;

  width: 100%;
  height: auto;
}

.closing-date {
  position: relative;

  z-index: 2;

  margin:
    2.25rem 0 0 !important;

  line-height: 1.4;
}


@media (max-width: 860px) {

  .closing-logo-wrap {
    width:
      min(60vw, 460px);
  }

  .closing-date {
    margin-top:
      2rem !important;
  }
}


@media (max-width: 520px) {

  .closing-logo-wrap {
    width: 64vw;
  }

  .closing-date {
    margin-top:
      1.85rem !important;
  }
}
