/* ==========================================================
   TUĞBA & ALP EREN — WEDDING INVITATION
   styles.css
   ========================================================== */

:root {
  --ivory: #f8f6f0;
  --paper: #fdfbf6;
  --cream: #eee9df;
  --sage: #8e9a7c;
  --sage-light: #b9c4a6;
  --sage-dark: #5e6b4e;
  --gold: #c2a878;
  --ink: #30352d;
  --muted: #6d7068;
  --line: rgba(94, 107, 78, 0.25);

  --serif: "Cormorant Garamond", Georgia, serif;
  --script: "Great Vibes", cursive;
  --display: "Playfair Display", Georgia, serif;
  --sans: "Montserrat", Arial, sans-serif;

  --max-width: 1080px;
}


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

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;

  background: var(--ivory);
  color: var(--ink);

  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.6;

  overflow-x: hidden;
}

body.is-sealed {
  overflow: hidden;
}

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

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}


/* ==========================================================
   AMBIENCE
   ========================================================== */

.ambience {
  position: fixed;
  inset: 0;

  z-index: 800;

  pointer-events: none;
}

.grain {
  position: absolute;
  inset: 0;

  opacity: 0.035;

  background-image:
    repeating-radial-gradient(
      circle at 30% 20%,
      rgba(40, 45, 35, 0.4) 0,
      rgba(40, 45, 35, 0.4) 0.5px,
      transparent 0.8px,
      transparent 4px
    );
}

.vignette {
  position: absolute;
  inset: 0;

  background:
    radial-gradient(
      circle at center,
      transparent 55%,
      rgba(48, 53, 45, 0.055) 100%
    );
}

.petals {
  position: absolute;
  inset: 0;
}


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

.gate {
  position: fixed;
  inset: 0;

  z-index: 900;

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

  padding: 20px;

  background:
    radial-gradient(
      circle at center,
      #faf8f2 0%,
      #eee9df 72%,
      #e5dfd3 100%
    );

  transition:
    opacity 0.9s ease,
    visibility 0.9s ease;
}

.gate.is-open {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}


.gate__paper {
  position: relative;

  width: min(680px, 94vw);
  height: min(570px, 82vh);
  min-height: 470px;

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

  overflow: hidden;

  text-align: center;

  background:
    linear-gradient(
      145deg,
      #fdfbf6,
      #eee9df
    );

  border:
    1px solid rgba(86, 91, 77, 0.14);

  box-shadow:
    0 35px 90px rgba(48, 53, 45, 0.17);
}


.gate__texture {
  position: absolute;
  inset: 0;

  opacity: 0.3;

  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 3px,
      rgba(80, 85, 70, 0.025) 4px
    );

  pointer-events: none;
}


/* envelope folds */

.gate__fold {
  position: absolute;
  inset: 0;

  pointer-events: none;
}

.gate__fold--tl {
  background:
    linear-gradient(
      34deg,
      transparent 49.8%,
      rgba(102, 102, 82, 0.11) 50%,
      transparent 50.2%
    );
}

.gate__fold--tr {
  background:
    linear-gradient(
      -34deg,
      transparent 49.8%,
      rgba(102, 102, 82, 0.11) 50%,
      transparent 50.2%
    );
}


/* top flap */

.gate__flap {
  position: absolute;

  top: 0;
  left: 0;

  width: 100%;
  height: 48%;

  z-index: 1;

  background:
    linear-gradient(
      160deg,
      #faf8f2,
      #e9e4d9
    );

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

  transform-origin: top center;

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

.gate.opening .gate__flap {
  transform:
    perspective(900px)
    rotateX(180deg);
}


/* gate typography */

.gate__eyebrow {
  position: relative;
  z-index: 4;

  max-width: 440px;

  margin:
    0 25px 15px;

  color: var(--sage-dark);

  font-size:
    clamp(17px, 2.2vw, 21px);

  font-style: italic;
  letter-spacing: 0.03em;
}

.gate__sub {
  position: relative;
  z-index: 4;

  margin:
    20px 0 0;

  font-family: var(--display);
  font-size: 17px;

  letter-spacing: 0.1em;
}

.gate__cue {
  position: relative;
  z-index: 4;

  display: flex;
  align-items: center;

  gap: 7px;

  margin-top: 12px;

  color: var(--muted);

  font-family: var(--sans);
  font-size: 9px;

  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.gate__cue svg {
  width: 9px;
}


/* ==========================================================
   RULE
   ========================================================== */

.rule {
  width: min(360px, 78%);

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

  gap: 12px;

  margin:
    20px auto 35px;
}

.rule--gate {
  position: relative;
  z-index: 4;

  margin:
    0 auto 17px;
}

.rule__line {
  flex: 1;

  height: 1px;

  background:
    linear-gradient(
      to right,
      transparent,
      var(--sage)
    );
}

.rule__line:last-child {
  background:
    linear-gradient(
      to left,
      transparent,
      var(--sage)
    );
}

.rule__mark {
  width: 34px;

  color: var(--gold);
}


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

.seal {
  position: relative;
  z-index: 5;

  width: 126px;
  height: 126px;

  padding: 0;

  border: 0;
  border-radius: 50%;

  background: transparent;

  transition:
    transform 0.3s ease;
}

.seal:hover {
  transform: scale(1.05);
}

.seal:active {
  transform: scale(0.97);
}

.seal__body {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  filter:
    drop-shadow(
      0 10px 13px
      rgba(55, 63, 46, 0.25)
    );
}

.seal__monogram {
  position: absolute;
  inset: 0;

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

  color:
    rgba(255, 253, 244, 0.93);

  font-family: var(--serif);
  font-size: 25px;
  font-style: italic;

  text-shadow:
    0 1px 1px
    rgba(40, 45, 35, 0.3);
}

.seal__shine {
  position: absolute;

  left: 27%;
  top: 21%;

  width: 34%;
  height: 17%;

  border-radius: 50%;

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

  transform:
    rotate(-20deg);

  filter: blur(3px);
}

.seal__glow {
  position: absolute;
  inset: 8%;

  border-radius: 50%;

  box-shadow:
    0 0 35px
    rgba(142, 154, 124, 0.35);

  animation:
    sealGlow 2.5s ease-in-out infinite;
}

@keyframes sealGlow {

  0%,
  100% {
    opacity: 0.3;
    transform: scale(1);
  }

  50% {
    opacity: 0.7;
    transform: scale(1.16);
  }

}


/* ==========================================================
   BALLOON TRANSITION
   ZARF → BALONLAR → HERO
   ========================================================== */

.balloon-transition {
  position: fixed;
  inset: 0;
  z-index: 950;

  overflow: hidden;
  pointer-events: none;

  visibility: hidden;
}

.balloon-transition.is-active {
  visibility: visible;
}


/* ==========================================================
   BALLOON
   ========================================================== */

.transition-balloon {
  position: absolute;

  left: var(--x);
  bottom: -220px;

  width: var(--size);
  height: calc(var(--size) * 1.22);

  border-radius: 50% 50% 46% 46%;

  background:
    radial-gradient(
      circle at 30% 24%,
      rgba(255, 255, 255, 0.8) 0 4%,
      rgba(255, 255, 255, 0.25) 5% 12%,
      transparent 25%
    ),
    var(--balloon-color);

  box-shadow:
    inset -12px -16px 20px rgba(60, 55, 45, 0.11),
    0 8px 18px rgba(50, 45, 40, 0.08);

  opacity: 0;

  transform:
    translateX(-50%)
    translateY(0)
    rotate(var(--rotate));

  animation:
  weddingBalloonFly
  var(--duration)
  linear
  var(--delay)
  forwards;

  will-change: transform, opacity;
}


/* Balon düğümü */

.transition-balloon::before {
  content: "";

  position: absolute;

  left: 50%;
  bottom: -9px;

  transform: translateX(-50%);

  width: 0;
  height: 0;

  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 11px solid var(--balloon-color);
}


/* Balon ipi */

.transition-balloon::after {
  content: "";

  position: absolute;

  left: 50%;
  top: calc(100% + 8px);

  width: 1px;
  height: calc(var(--size) * 0.95);

  background:
    linear-gradient(
      to bottom,
      rgba(94, 107, 78, 0.42),
      rgba(94, 107, 78, 0.08)
    );

  transform:
    translateX(-50%)
    rotate(var(--string-rotate));

  transform-origin: top;
}


/* ==========================================================
   SMOOTH BALLOON FLIGHT
   Kesintisiz, süzülerek yukarı
   ========================================================== */

@keyframes weddingBalloonFly {

  0% {
    opacity: 0;

    transform:
      translate3d(-50%, 0, 0)
      rotate(var(--rotate));
  }

  5% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    opacity: 0;

    transform:
      translate3d(
        calc(-50% + var(--drift)),
        -150vh,
        0
      )
      rotate(var(--end-rotate));
  }

}

/* ==========================================================
   ÖN PLAN BALONLARI

   Bazı balonları büyük yaparak ekranı gerçekten
   doldurmuş gibi göstereceğiz.
   ========================================================== */

.transition-balloon.is-front {
  filter: blur(0.4px);

  opacity: 0;

  z-index: 3;
}

.transition-balloon.is-back {
  filter: blur(0.2px);

  z-index: 1;
}


/* ==========================================================
   MOBİL
   ========================================================== */

@media (max-width: 700px) {

  .transition-balloon::after {
    height: calc(var(--size) * 0.75);
  }

}

/* ==========================================================
   PAGE
   ========================================================== */

.page {
  position: relative;

  width: 100%;

  overflow: hidden;

  background: var(--ivory);
}


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

.hero {
  position: relative;

  width: 100%;
  height: 100svh;
  min-height: 650px;

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

  overflow: hidden;

  background:
    linear-gradient(
      135deg,
      #859076,
      #c5bda9
    );
}

.hero__frame,
.hero__art {
  position: absolute;
  inset: 0;
}

.hero__art {
  overflow: hidden;
}

.hero__img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  transform: scale(1.03);
}

.hero__wash {
  position: absolute;
  inset: 0;

  z-index: 1;

  background:
    linear-gradient(
      135deg,
      rgba(244, 240, 225, 0.09),
      rgba(73, 83, 64, 0.15)
    );
}

.hero__scrim {
  position: absolute;
  inset: 0;

  z-index: 2;

  background:
    linear-gradient(
      to bottom,
      rgba(28, 32, 25, 0.08),
      rgba(28, 32, 25, 0.16) 50%,
      rgba(28, 32, 25, 0.42)
    );
}

.hero__copy {
  position: relative;

  z-index: 5;

  width: min(900px, 92%);

  text-align: center;

  color: #fffdf7;

  text-shadow:
    0 5px 25px
    rgba(30, 34, 27, 0.35);
}

.hero__eyebrow {
  margin:
    0 0 15px;

  font-family: var(--sans);
  font-size: 10px;
  font-weight: 400;

  text-transform: uppercase;

  letter-spacing: 0.38em;
}

.hero__names {
  margin: 0;

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

  line-height: 0.85;

  font-weight: 400;
}

.hero__name {
  font-family: var(--script);

  font-size:
    clamp(80px, 13vw, 155px);

  font-weight: 400;
}

.hero__amp {
  margin:
    10px 0;

  font-size: 30px;

  font-style: italic;
}

.hero__hint {
  position: absolute;

  z-index: 5;

  left: 50%;
  bottom: 27px;

  transform:
    translateX(-50%);

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

  color:
    rgba(255, 255, 255, 0.82);

  font-family: var(--sans);
  font-size: 8px;

  text-transform: uppercase;

  letter-spacing: 0.23em;
}

.hero__hint-line {
  width: 1px;
  height: 37px;

  margin-bottom: 8px;

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

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

@keyframes scrollHint {

  0%,
  100% {
    transform: scaleY(0.4);
    transform-origin: top;
  }

  50% {
    transform: scaleY(1);
    transform-origin: top;
  }

}


/* ==========================================================
   GENERAL SECTION TYPOGRAPHY
   ========================================================== */

.band {
  position: relative;

  width: 100%;

  padding:
    110px
    max(
      24px,
      calc((100vw - var(--max-width)) / 2)
    );

  text-align: center;
}

.band--tight {
  padding-top: 85px;
  padding-bottom: 85px;
}

.kicker {
  margin:
    0 0 10px;

  color: var(--sage-dark);

  font-family: var(--sans);
  font-size: 9px;
  font-weight: 500;

  text-transform: uppercase;

  letter-spacing: 0.36em;
}

.heading {
  margin: 0;

  color: var(--ink);

  font-family: var(--display);
  font-size:
    clamp(38px, 6vw, 64px);

  font-weight: 400;

  line-height: 1.1;
}

.heading--script {
  font-family: var(--script);

  font-size:
    clamp(58px, 8vw, 91px);

  font-weight: 400;
}

.lede {
  max-width: 700px;

  margin:
    15px auto 30px;

  color: var(--muted);

  font-size:
    clamp(18px, 2.5vw, 23px);

  font-style: italic;
}

.lede--wide {
  max-width: 750px;
}


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

.countdown {
  background:
    linear-gradient(
      180deg,
      #f8f6f0,
      #eee9df
    );
}

.clock {
  max-width: 720px;

  margin:
    40px auto 0;

  padding: 0;

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

  list-style: none;
}

.clock__unit {
  width: 120px;
}

.clock__val {
  display: block;

  color: var(--sage-dark);

  font-family: var(--display);

  font-size:
    clamp(37px, 7vw, 63px);

  line-height: 1;
}

.clock__label {
  display: block;

  margin-top: 10px;

  color: var(--muted);

  font-family: var(--sans);
  font-size: 8px;

  text-transform: uppercase;

  letter-spacing: 0.18em;
}

.clock__sep {
  padding:
    0 7px;

  color: var(--gold);

  font-size: 42px;

  line-height: 1;
}


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

.venue {
  background: var(--paper);
}

.plate {
  width:
    min(850px, 100%);

  margin:
    45px auto 34px;

  padding: 12px;

  background: #fffdf8;

  border:
    1px solid
    rgba(94, 107, 78, 0.16);

  box-shadow:
    0 28px 65px
    rgba(50, 55, 45, 0.11);
}

.plate__inner {
  position: relative;

  aspect-ratio: 4 / 3;

  overflow: hidden;

  background:
    linear-gradient(
      145deg,
      #ddd9ce,
      #efede5
    );
}

.plate__inner img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  transition:
    transform 1s ease;
}

.plate:hover
.plate__inner img {
  transform: scale(1.035);
}

.plate__cap {
  padding:
    14px 10px 4px;

  color: var(--muted);

  font-family: var(--sans);
  font-size: 8px;

  text-transform: uppercase;

  letter-spacing: 0.19em;
}


/* ==========================================================
   BUTTONS
   ========================================================== */

.btn {
  display: inline-flex;

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

  gap: 10px;

  min-width: 175px;

  padding:
    14px 25px;

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

  background: transparent;

  color: var(--sage-dark);

  font-family: var(--sans);
  font-size: 9px;
  font-weight: 500;

  text-decoration: none;

  text-transform: uppercase;

  letter-spacing: 0.17em;

  transition:
    background 0.3s ease,
    color 0.3s ease,
    transform 0.3s ease;
}

.btn svg {
  width: 15px;
  height: 15px;
}

.btn:hover {
  color: white;

  background: var(--sage-dark);

  transform:
    translateY(-2px);
}

.btn--solid {
  background: var(--sage-dark);

  border-color: var(--sage-dark);

  color: white;
}

.btn--solid:hover {
  background: #4d5941;
}


/* ==========================================================
   ORDER OF THE DAY
   ========================================================== */

.schedule {
  background:
    linear-gradient(
      180deg,
      #eee9df,
      #f8f6f0
    );
}

.timeline {
  position: relative;

  width:
    min(720px, 100%);

  margin:
    55px auto 0;

  padding:
    5px 0 0;

  list-style: none;

  text-align: left;
}

.timeline__track {
  position: absolute;

  top: 5px;
  bottom: 0;

  left: 50%;

  width: 1px;

  background:
    rgba(94, 107, 78, 0.22);

  transform:
    translateX(-50%);
}

.timeline__fill {
  display: block;

  width: 100%;
  height: 0;

  background:
    linear-gradient(
      var(--sage),
      var(--gold)
    );
}

.timeline__item {
  position: relative;

  width: 50%;

  min-height: 103px;

  padding:
    3px 48px 35px;

  text-align: right;
}

.timeline__item:nth-of-type(even) {
  margin-left: 50%;

  text-align: left;
}

.timeline__dot {
  position: absolute;

  top: 8px;
  right: -7px;

  width: 14px;
  height: 14px;

  border-radius: 50%;

  border:
    3px solid var(--ivory);

  background: var(--sage);

  box-shadow:
    0 0 0 1px var(--sage);
}

.timeline__item:nth-of-type(even)
.timeline__dot {
  left: -7px;
  right: auto;
}

.timeline time {
  display: block;

  margin-bottom: 4px;

  color: var(--gold);

  font-family: var(--sans);
  font-size: 9px;
  font-weight: 600;

  letter-spacing: 0.15em;
}

.timeline h3 {
  margin: 0;

  font-family: var(--serif);
  font-size:
    clamp(20px, 3vw, 27px);

  font-weight: 400;
  font-style: italic;

  line-height: 1.25;
}


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

.invite {
  background:
    linear-gradient(
      145deg,
      #eae6db,
      #faf8f2 50%,
      #eee9df
    );
}

.invite__names {
  display: flex;
  flex-direction: column;
  align-items: center;

  line-height: 0.87;
}

.invite__name {
  color: var(--sage-dark);

  font-family: var(--script);

  font-size:
    clamp(65px, 10vw, 105px);
}

.invite__amp {
  margin:
    9px 0;

  color: var(--gold);

  font-size: 28px;
  font-style: italic;
}

.facts {
  width:
    min(760px, 100%);

  margin:
    45px auto 0;

  display: grid;

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

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

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

.facts > div {
  padding:
    27px 16px;

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

.facts > div:last-child {
  border-right: 0;
}

.facts dt {
  margin-bottom: 7px;

  color: var(--sage-dark);

  font-family: var(--sans);
  font-size: 8px;
  font-weight: 500;

  text-transform: uppercase;

  letter-spacing: 0.18em;
}

.facts dd {
  margin: 0;

  font-size: 19px;
}


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

.rsvp {
  min-height: auto;

  background:
    #faf8f2;
}


/* form card */

.form {
  width:
    min(650px, 100%);

  margin:
    45px auto 0;

  padding:
    clamp(30px, 5vw, 52px);

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

  border:
    1px solid
    rgba(94, 107, 78, 0.19);

  box-shadow:
    0 25px 65px
    rgba(49, 54, 44, 0.08);

  text-align: left;
}


/* IMPORTANT:
   data-reveal="wipe" form will become visible
   when JS adds is-visible
*/

.rsvp .form.is-visible {
  opacity: 1;
}


/* fields */

.field {
  margin:
    0 0 32px;

  padding: 0;

  border: 0;
}

.field legend,
.label {
  display: block;

  width: 100%;

  margin:
    0 0 13px;

  color: var(--ink);

  font-family: var(--serif);
  font-size: 19px;
  font-weight: 400;
}

.field legend b {
  color: var(--gold);
}


/* answer choices */

.choices {
  display: flex;

  gap: 10px;
}

.choices--stack {
  flex-direction: column;
}

.choice {
  position: relative;

  flex: 1;

  cursor: pointer;
}

.choice input {
  position: absolute;

  opacity: 0;

  pointer-events: none;
}

.choice span {
  min-height: 48px;

  display: flex;

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

  padding:
    12px 14px;

  border:
    1px solid
    rgba(94, 107, 78, 0.28);

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

  color: var(--muted);

  font-family: var(--sans);
  font-size: 9px;

  text-align: center;

  letter-spacing: 0.04em;

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

.choice:hover span {
  border-color: var(--sage);
}

.choice input:checked + span {
  color: white;

  background: var(--sage-dark);

  border-color: var(--sage-dark);
}


/* conditional area */

.conditional {
  overflow: hidden;

  max-height: 1000px;

  opacity: 1;

  transition:
    max-height 0.45s ease,
    opacity 0.3s ease;
}


/* inputs */

.input {
  width: 100%;

  padding:
    12px 3px;

  border: 0;

  border-bottom:
    1px solid
    rgba(94, 107, 78, 0.4);

  border-radius: 0;

  outline: none;

  background: transparent;

  color: var(--ink);

  font-family: var(--serif);
  font-size: 18px;

  transition:
    border-color 0.25s ease;
}

.input:focus {
  border-color: var(--sage-dark);
}

.input::placeholder {
  color:
    rgba(80, 85, 75, 0.45);
}

textarea.input {
  resize: vertical;

  min-height: 90px;
}


/* guest stepper */

.stepper {
  width: 150px;

  display: flex;

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

  border:
    1px solid
    rgba(94, 107, 78, 0.3);
}

.stepper__btn {
  width: 44px;
  height: 44px;

  border: 0;

  background: transparent;

  color: var(--sage-dark);

  font-size: 22px;

  transition:
    background 0.2s ease;
}

.stepper__btn:hover {
  background:
    rgba(142, 154, 124, 0.1);
}

.stepper__val {
  min-width: 40px;

  text-align: center;

  font-family: var(--display);
  font-size: 18px;
}


/* error */

.form__error {
  margin:
    -7px 0 20px;

  color: #884c4c;

  font-family: var(--sans);
  font-size: 10px;
}

.form > .btn {
  width: 100%;

  margin-top: 5px;
}


/* ==========================================================
   RSVP THANK YOU
   ========================================================== */

.thanks {
  width:
    min(600px, 100%);

  margin:
    45px auto 0;

  padding:
    55px 25px;

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

  border:
    1px solid
    rgba(94, 107, 78, 0.2);

  text-align: center;
}

.thanks[hidden] {
  display: none !important;
}

.thanks__mark {
  width: 60px;

  margin-bottom: 12px;

  color: var(--sage);
}

.thanks h3 {
  margin:
    0 0 8px;

  font-family: var(--script);

  font-size: 57px;
  font-weight: 400;
}

.thanks p {
  margin: 0;

  color: var(--muted);
}


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

.footer {
  padding:
    90px 24px 65px;

  background: var(--sage-dark);

  color:
    rgba(255, 255, 255, 0.91);

  text-align: center;
}

.footer__names {
  margin: 0;

  font-family: var(--script);

  font-size:
    clamp(58px, 8vw, 88px);

  line-height: 1;
}

.footer__star {
  display: block;

  margin:
    24px auto;

  color: var(--gold);

  font-size: 21px;
}

.footer__line {
  max-width: 520px;

  margin:
    0 auto 20px;

  font-style: italic;

  opacity: 0.87;
}

.footer__date,
.footer__tag {
  margin:
    8px 0;

  font-family: var(--sans);
  font-size: 8px;

  text-transform: uppercase;

  letter-spacing: 0.18em;

  opacity: 0.72;
}


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

[data-reveal] {
  opacity: 0;

  transform:
    translateY(24px);

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

[data-reveal].is-visible {
  opacity: 1;

  transform:
    translateY(0);
}


/* wipe animation */

[data-reveal="wipe"] {
  opacity: 0;

  transform: none;

  clip-path:
    inset(0 100% 0 0);

  transition:
    clip-path 1.05s
      cubic-bezier(.7, 0, .2, 1)
      var(--d, 0s),
    opacity 0.65s ease
      var(--d, 0s);
}

[data-reveal="wipe"].is-visible {
  opacity: 1;

  clip-path:
    inset(0 0 0 0);
}


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

@media (max-width: 700px) {

  body {
    font-size: 17px;
  }


  .band {
    padding:
      82px 21px;
  }


  /* envelope */

  .gate {
    padding: 14px;
  }

  .gate__paper {
    width: 94vw;

    height: 75vh;

    min-height: 480px;
  }

  .gate__eyebrow {
    max-width: 300px;

    font-size: 17px;
  }

  .seal {
    width: 110px;
    height: 110px;
  }


  /* hero */

  .hero {
    min-height: 620px;
  }

  .hero__name {
    font-size:
      clamp(68px, 20vw, 100px);
  }


  /* countdown */

  .clock {
    width: 100%;
  }

  .clock__unit {
    width: 24%;
  }

  .clock__val {
    font-size:
      clamp(28px, 9vw, 45px);
  }

  .clock__sep {
    padding:
      0 1px;

    font-size: 28px;
  }

  .clock__label {
    font-size: 7px;

    letter-spacing: 0.07em;
  }


  /* timeline */

  .timeline {
    padding-left: 33px;
  }

  .timeline__track {
    left: 7px;

    transform: none;
  }

  .timeline__item,
  .timeline__item:nth-of-type(even) {

    width: 100%;

    margin-left: 0;

    padding:
      0 0 39px 28px;

    text-align: left;
  }

  .timeline__dot,
  .timeline__item:nth-of-type(even)
  .timeline__dot {

    left: -32px;
    right: auto;

    top: 6px;
  }

  .timeline h3 {
    font-size: 22px;
  }


  /* invitation details */

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

  .facts > div {
    border-right: 0;

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

  .facts > div:last-child {
    border-bottom: 0;
  }


  /* RSVP */

  .form {
    margin-top: 35px;

    padding:
      30px 20px;
  }

  .choices {
    flex-direction: column;
  }

  .choice {
    width: 100%;
  }

}


/* ==========================================================
   SMALL PHONES
   ========================================================== */

@media (max-width: 420px) {

  .heading--script {
    font-size: 55px;
  }

  .hero__name {
    font-size: 72px;
  }

}


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

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

  *,
  *::before,
  *::after {

    animation-duration:
      0.01ms !important;

    animation-iteration-count:
      1 !important;

    transition-duration:
      0.01ms !important;

    scroll-behavior:
      auto !important;
  }

}
/* ==========================================================
   RSVP FORMU - GÖRÜNÜRLÜK DÜZELTMESİ
   ========================================================== */

#rsvpForm {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  clip-path: none !important;
}

#rsvpForm[data-reveal="wipe"] {
  opacity: 1 !important;
  clip-path: none !important;
}

#rsvpForm.is-visible {
  opacity: 1 !important;
  clip-path: none !important;
}
/* ==========================================================
   SOFT & YAVAŞ DÜŞEN GÜL YAPRAKLARI
   ========================================================== */

.rose-petals {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 50;
}

.rose-petal {
  position: absolute;
  top: -12vh;

  width: var(--size);
  height: calc(var(--size) * 1.55);

  opacity: var(--opacity);

  /*
    Daha gerçek gül yaprağı formu:
    üst kısmı geniş, alt kısmı dar.
  */
  border-radius:
    75% 25% 72% 28%
    / 82% 68% 32% 18%;

  /*
    Soft pudra / dusty rose.
    Önceki koyu kırmızı görüntüyü kaldırıyoruz.
  */
 background:
  radial-gradient(
    ellipse at 35% 25%,

    rgba(248, 228, 225, 0.96) 0%,
    rgba(226, 181, 180, 0.92) 35%,
    rgba(196, 137, 140, 0.88) 72%,
    rgba(160, 101, 108, 0.82) 100%
  );

  box-shadow:
    inset 1px 1px 3px rgba(255,255,255,.45),
    0 1px 3px rgba(90,60,60,.05);

  transform-origin: 50% 20%;

  animation:
    roseFall var(--duration) linear infinite,
    roseDrift var(--sway-duration) ease-in-out infinite alternate;

  animation-delay: var(--delay);
}


/* Yaprağın küçük sivri/dar alt ucu */
.rose-petal::after {
  content: "";
  position: absolute;

  width: 35%;
  height: 18%;

  left: 32%;
  bottom: -5%;

  background: inherit;

  border-radius: 20% 20% 80% 80%;

  transform: rotate(4deg);

  opacity: .8;
}


/* Çok yavaş aşağı süzülme */
@keyframes roseFall {

  0% {
    top: -12vh;
    transform: rotate(0deg) rotateY(0deg);
  }

  20% {
    transform: rotate(35deg) rotateY(45deg);
  }

  40% {
    transform: rotate(75deg) rotateY(110deg);
  }

  60% {
    transform: rotate(125deg) rotateY(165deg);
  }

  80% {
    transform: rotate(175deg) rotateY(230deg);
  }

  100% {
    top: 110vh;
    transform: rotate(225deg) rotateY(320deg);
  }

}


/* Hafif rüzgârda sağa-sola süzülme */
@keyframes roseDrift {

  0% {
    margin-left: -35px;
  }

  35% {
    margin-left: 8px;
  }

  70% {
    margin-left: 35px;
  }

  100% {
    margin-left: -5px;
  }

}


/* Telefonda ekranı doldurmasın */
@media (max-width: 700px) {

  .rose-petal:nth-child(n+11) {
    display: none;
  }

}


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

  .rose-petals {
    display: none;
  }

}
/* ==========================================================
   YEŞİL DANTELLİ ZARF
   Tuğba & Alp Eren
   ========================================================== */


/* ZARFIN ANA KAĞIDI */
.gate__paper {
  background:
    linear-gradient(
      145deg,
      #aeb397 0%,
      #a4aa8d 48%,
      #989f82 100%
    ) !important;

  border-color: rgba(91, 96, 73, 0.20) !important;

  box-shadow:
    0 22px 55px rgba(55, 58, 44, 0.16),
    inset 0 1px 0 rgba(255,255,255,0.18) !important;
}


/* Mevcut kâğıt dokusu yeşilin üzerinde kalsın */
.gate__texture {
  opacity: 0.30 !important;
  mix-blend-mode: soft-light;
}


/* ==========================================================
   ZARF KAPAĞI
   ========================================================== */

.gate__flap {
  background:
    linear-gradient(
      155deg,
      #b3b89c 0%,
      #a5ab8e 48%,
      #969e80 100%
    ) !important;

  filter:
    drop-shadow(0 5px 5px rgba(61, 63, 48, 0.10));
}
/* ==========================================================
   ZARF.PNG - FINAL GÖRÜNÜM DÜZELTMESİ
========================================================== */

.gate__paper {
  position: relative !important;
  overflow: hidden !important;
}


/* Yeni zarf görseli tüm mevcut zarf alanını kaplar */

.gate__zarf-image {
  position: absolute !important;

  inset: 0 !important;

  width: 100% !important;
  height: 100% !important;

  object-fit: fill !important;
  object-position: center !important;

  display: block !important;

  z-index: 10 !important;

  pointer-events: none !important;
  user-select: none !important;
}


/* ----------------------------------------------------------
   ESKİ CSS İLE ÇİZİLEN ZARFI GİZLE
   Elemanları SİLMİYORUZ.
   Böylece eski yapı/animasyon korunuyor.
---------------------------------------------------------- */

.gate__texture,
.gate__fold,
.gate__flap {
  opacity: 0 !important;
}


/* ----------------------------------------------------------
   YAZILAR zarf.png'nin üzerinde
---------------------------------------------------------- */

.gate__eyebrow,
.rule--gate,
.gate__sub,
.gate__cue {
  position: absolute !important;
  z-index: 20 !important;
}


/* Üst yazı */

.gate__eyebrow {
  left: 50% !important;
  top: 18% !important;

  transform: translateX(-50%) !important;

  width: 80% !important;
  text-align: center !important;

  color: #f7efe3 !important;
}


/* Üst yazının altındaki çizgi */

.rule--gate {
  left: 50% !important;
  top: 27% !important;

  transform: translateX(-50%) !important;

  color: #c98f61 !important;
}


/* ----------------------------------------------------------
   MÜHÜR
   Eski mühür görünmez ama buton çalışmaya devam eder.
---------------------------------------------------------- */

.seal {
  position: absolute !important;

  left: 50% !important;
  top: 50% !important;

  transform: translate(-50%, -50%) !important;

  width: 120px !important;
  height: 120px !important;

  z-index: 40 !important;

  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;

  cursor: pointer !important;
}


/* Eski yeşil mühür çizimini gizle */

.seal__glow,
.seal__body,
.seal__monogram,
.seal__shine {
  opacity: 0 !important;
}


/* ----------------------------------------------------------
   İSİMLER
---------------------------------------------------------- */

.gate__sub {
  left: 50% !important;
  top: 70% !important;

  transform: translateX(-50%) !important;

  width: 100% !important;

  text-align: center !important;

  color: #f7efe3 !important;
}


/* ----------------------------------------------------------
   DAVETİYEYİ AÇ
---------------------------------------------------------- */

.gate__cue {
  left: 50% !important;
  top: 78% !important;

  transform: translateX(-50%) !important;

  color: #f7efe3 !important;

  white-space: nowrap !important;
}

/* ==========================================================
   BU GECEYİ HATIRLAYALIM
   ========================================================== */

.memory-section {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 100px 28px 110px;
}


/* BAŞLIK */

.memory-heading {
  max-width: 760px;
  margin: 0 auto 75px;
  text-align: center;
}

.memory-kicker {
  margin-bottom: 14px;

  font-family: "Cormorant Garamond", serif;
  font-size: 12px;
  letter-spacing: 0.22em;

  color: #7c876d;
}

.memory-heading h2 {
  margin: 0;

  font-family: "Bodoni Moda", "Cormorant Garamond", serif;
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 400;
  line-height: 1;

  color: #59634d;
}

.memory-intro {
  max-width: 600px;
  margin: 22px auto 0;

  font-family: "Cormorant Garamond", serif;
  font-size: 21px;
  font-style: italic;
  line-height: 1.5;

  color: #777064;
}


/* KARTLAR */

.memory-card {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;

  gap: 70px;

  margin: 0 0 100px;
}

.memory-card--reverse .memory-image {
  order: 2;
}

.memory-card--reverse .memory-copy {
  order: 1;
}


/* FOTOĞRAF */

.memory-image {
  position: relative;
}

.memory-image::before {
  content: "";

  position: absolute;
  inset: 15px -15px -15px 15px;

  border: 1px solid rgba(112, 124, 96, 0.35);

  z-index: -1;
}

.memory-image img {
  display: block;

  width: 100%;
  height: 520px;

  object-fit: cover;

  box-shadow:
    0 20px 45px rgba(62, 55, 45, 0.12);
}


/* YAZI */

.memory-copy {
  position: relative;

  padding: 20px 10px;
}

.memory-number {
  display: block;

  margin-bottom: 12px;

  font-family: "Cormorant Garamond", serif;
  font-size: 13px;
  letter-spacing: 0.22em;

  color: #a58c6c;
}

.memory-copy h3 {
  margin: 0 0 16px;

  font-family: "Bodoni Moda", "Cormorant Garamond", serif;
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 400;
  line-height: 1.1;

  color: #59634d;
}

.memory-script {
  margin: 0 0 18px;

  font-family: "Cormorant Garamond", serif;
  font-size: 22px;
  font-style: italic;
  line-height: 1.4;

  color: #8c725c;
}

.memory-copy > p:not(.memory-script) {
  max-width: 430px;

  margin: 0;

  font-family: "Cormorant Garamond", serif;
  font-size: 18px;
  line-height: 1.7;

  color: #625d54;
}


/* İNCE DEKORATİF ÇİZGİ */

.memory-copy::before {
  content: "";

  display: block;

  width: 55px;
  height: 1px;

  margin-bottom: 25px;

  background: #a58c6c;
}


/* QR ALANI */

.memory-qr-placeholder {
  width: 110px;
  height: 110px;

  margin-top: 28px;

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

  border: 1px solid rgba(89, 99, 77, 0.5);

  font-family: "Bodoni Moda", serif;
  font-size: 27px;
  letter-spacing: 0.08em;

  color: #59634d;

  background: rgba(255, 253, 248, 0.55);
}

.memory-qr-placeholder small {
  display: block;

  margin-top: 5px;

  font-family: "Cormorant Garamond", serif;
  font-size: 11px;
  letter-spacing: 0.12em;

  color: #777064;
}


/* BÖLÜM SONU */

.memory-ending {
  margin-top: 15px;

  text-align: center;

  color: #78816b;
}

.memory-ending span {
  display: block;

  margin-bottom: 7px;

  font-size: 25px;
}

.memory-ending p {
  margin: 0;

  font-family: "Cormorant Garamond", serif;
  font-size: 20px;
  font-style: italic;
}


/* ==========================================================
   TELEFON
   ========================================================== */

@media (max-width: 760px) {

  .memory-section {
    padding: 75px 22px 85px;
  }

  .memory-heading {
    margin-bottom: 55px;
  }

  .memory-heading h2 {
    font-size: 45px;
  }

  .memory-intro {
    font-size: 19px;
  }

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

    gap: 32px;

    margin-bottom: 75px;
  }

  .memory-card--reverse .memory-image,
  .memory-card--reverse .memory-copy {
    order: initial;
  }

  .memory-image img {
    height: auto;
    aspect-ratio: 4 / 5;
  }

  .memory-image::before {
    inset: 10px -10px -10px 10px;
  }

  .memory-copy {
    padding: 10px 4px;
  }

  .memory-copy h3 {
    font-size: 34px;
  }

  .memory-script {
    font-size: 20px;
  }

  .memory-copy > p:not(.memory-script) {
    font-size: 17px;
  }

}

.field__hint {
  margin: -4px 0 12px;
  color: var(--muted);
  font-size: 15px;
  font-style: italic;
  line-height: 1.45;
}