:root {
  --ink: #f8efe0;
  --muted: #c8b796;
  --gold: #e6c67a;
  --gold-dark: #b8964a;
  --gold-soft: #f3e4c2;
  --gold-glow: rgba(230, 198, 122, 0.35);
  /* Definisaniji, tamniji zlatni za naslove — premium, čitljiviji */
  --gold-heading: #9a7526;
  --gold-heading-deep: #836018;
  /* Jači kontrast za telo teksta i adrese */
  --ink-strong: #2c2722;
  --ink-body: #38332d;
  --ink-soft: #574d3e;
  --paper: #fff8ea;
  --ivory: #fffdf8;
  --warm-paper: #f4eee3;
  --taupe: #aa9974;
  --charcoal: #34302c;
  --night: #11100d;
  --wine: #4d171b;
  --green: #10251f;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--charcoal);

  background:
    radial-gradient(circle at 15% 10%, rgba(255,255,255,0.95), transparent 28rem),
    radial-gradient(circle at 85% 20%, rgba(230,198,122,0.18), transparent 30rem),
    radial-gradient(circle at 50% 100%, rgba(200,180,130,0.25), transparent 35rem),
    linear-gradient(180deg, #fffdf8 0%, #f4eee3 45%, #e6d6b3 100%);

  font-family: Jost, sans-serif;
}

body.locked {
  overflow: hidden;
}

a {
  color: inherit;
}

.intro {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 1.1rem;
  background:
    radial-gradient(circle at center, rgba(198, 178, 131, 0.16), transparent 20rem),
    linear-gradient(155deg, #20201e, #171716 70%);
  transition: opacity 900ms ease, visibility 900ms ease;
}

.intro.is-open {
  animation: introExit 0.9s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  pointer-events: none;
}

@keyframes introExit {
  0% {
    opacity: 1;
    transform: scale(1);
  }

  70% {
    opacity: 0.85;
    transform: scale(1.02);
  }

  100% {
    opacity: 0;
    transform: scale(1.05);
    visibility: hidden;
  }
}

.intro__grain,
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;

  opacity: 0.06;

  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");

  mix-blend-mode: multiply;
}

.intro-card {
  position: relative;
  width: min(100%, 430px);
  min-height: min(92svh, 760px);
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0.95rem;
  padding: clamp(1.35rem, 5vw, 2rem);
  padding-top: clamp(2.5rem, 8vw, 3.5rem);
  border: 1px solid rgba(130, 103, 45, 0.34);
  background:
    linear-gradient(rgba(255, 253, 246, 0.88), rgba(255, 250, 238, 0.9)),
    radial-gradient(circle at 80% 8%, rgba(224, 202, 156, 0.26), transparent 13rem),
    linear-gradient(180deg, #fffaf0, #f4ead7);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  overflow: hidden;
}

.intro-card::before {
  content: "";
  position: absolute;
  inset: 1rem;
  border: 1px solid rgba(191, 139, 45, 0.78);
  pointer-events: none;
}

.floral-bg {
  position: absolute;
  z-index: 0;
  width: 260px;
  height: 360px;
  pointer-events: none;
  opacity: 0.16;

  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;

  filter: blur(0.4px);
  mix-blend-mode: multiply;
}

.floral-bg--top {
  top: -40px;
  right: -30px;

  background-image: url("https://png.pngtree.com/png-clipart/20230914/original/pngtree-beige-watercolor-floral-border-wedding-decoration-png-image_12147209.png");

  opacity: 0.18;
  transform: rotate(8deg);
}

.floral-bg--bottom {
  bottom: -60px;
  left: -30px;

  background-image: url("https://png.pngtree.com/png-clipart/20230914/original/pngtree-beige-floral-watercolor-border-png-image_12147186.png");

  opacity: 0.18;
  transform: rotate(190deg);
}

.floral-bg {
  z-index: 0;
}

.intro-card {
  position: relative;
}

.intro-names {
  display: flex;
  align-items: center;
  gap: 0.6rem;

  font-family: "Fraunces", serif;
  font-size: clamp(2.2rem, 6vw, 3.2rem);
  color: #b47a23;
}

.intro-names i {
  font-style: normal;
  font-size: 0.7em;
  opacity: 0.7;
}

.envelope,
.intro-monogram,
.intro__copy,
.intro-divider {
  position: relative;
  z-index: 2;
}

.intro-botanical {
  position: absolute;
  width: 210px;
  height: 260px;
  opacity: 0.34;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 54% 17%, rgba(190, 143, 58, 0.22) 0 12px, transparent 13px),
    radial-gradient(ellipse at 67% 28%, rgba(190, 143, 58, 0.18) 0 16px, transparent 17px),
    radial-gradient(ellipse at 45% 37%, rgba(190, 143, 58, 0.16) 0 14px, transparent 15px),
    radial-gradient(ellipse at 69% 51%, rgba(190, 143, 58, 0.14) 0 18px, transparent 19px),
    linear-gradient(70deg, transparent 0 47%, rgba(165, 126, 52, 0.34) 48% 49%, transparent 50%);
  filter: blur(0.1px);
}

.intro-botanical--top {
  right: -3.4rem;
  top: 0.7rem;
  transform: rotate(17deg);
}

.intro-botanical--bottom {
  left: -3.7rem;
  bottom: -1.8rem;
  transform: rotate(198deg);
}

.intro-monogram {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: 104px;
  color: #b47a23;
  font-family: "Fraunces", serif;
  font-size: 3.05rem;
  line-height: 1;
}

.intro-doves {
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);

  opacity: 3;
  pointer-events: none;
  z-index: 0;
}

.intro-doves img {
  width: 200px;
}

.envelope {
  position: relative;
  z-index: 3;

  width: min(78vw, 300px);
  aspect-ratio: 1.55;

  display: grid;
  place-items: center;

  isolation: isolate;

  /* remove card look */
  border-radius: 0;
  border: none;

  /* real paper base */
  background: #f3e6cf;

  box-shadow:
    0 30px 60px rgba(0,0,0,0.25);

  overflow: visible;
}

.envelope__letter::before,
.envelope__letter::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  height: 1px;

  background: linear-gradient(
    to right,
    transparent,
    rgba(180, 122, 35, 0.18),
    transparent
  );
}

.envelope__letter::before {
  top: 20%;
}

.envelope__letter::after {
  top: 26%;
  box-shadow: 0 18px 25px rgba(0,0,0,0.15);
}

.envelope.is-opening {
  transform: translateY(8px) scale(0.985);
  filter: drop-shadow(0 34px 44px rgba(92, 62, 18, 0.2));
}

.envelope.is-opening::before {
  opacity: 0.56;
  transform: translateY(12px);
}

.envelope__letter {
  position: absolute;
  left: 9%;
  right: 9%;
  bottom: 14%;
  z-index: 1;
  height: 78%;

  display: grid;
  place-items: center;

  border: 1px solid rgba(180, 122, 35, 0.36);
  border-radius: 6px 6px 0 0;

  background:
    radial-gradient(circle at 50% 18%, rgba(255,255,255,0.82), transparent 7rem),
    linear-gradient(180deg, #fffdf7, #f6ead3);

  box-shadow:
    0 18px 35px rgba(60, 40, 10, 0.18),
    inset 0 1px 0 rgba(255,255,255,0.75);

  transform: translateY(58%) scale(0.93);
  transform-origin: bottom;

  opacity: 0;
  transition: opacity 0.38s ease;

  will-change: transform, opacity;
}

.envelope__letter::before,
.envelope__letter::after {
  content: "";
  position: absolute;
  left: 14%;
  right: 14%;
  height: 1px;
  background: rgba(180, 122, 35, 0.22);
}

.envelope__letter::before {
  top: 18%;
}

.envelope__letter::after {
  top: 24%;
}

.envelope__letter span {
  color: rgba(180, 122, 35, 0.72);
  font-family: "Fraunces", serif;
  font-size: 2.15rem;
  transform: translateY(-22%);
}

.envelope.is-opening .envelope__letter {
  z-index: 5; 
  opacity: 1;
  animation:
      letterReveal 2.1s cubic-bezier(0.25, 0.8, 0.3, 1) 0.75s forwards,
      letterShadow 2.1s ease 0.75s forwards;   
}

.envelope__flap {
  position: absolute;
  inset: 0;
  z-index: 6;

  /* sharper triangle */
  clip-path: polygon(0 0, 100% 0, 50% 62%);

  /* paper gradient (important) */
  background:
    linear-gradient(
      180deg,
      #fdf6ea 0%,
      #e9d8bb 55%,
      #d9c3a0 100%
    );

  /* subtle edge highlight */
  border-bottom: 1px solid rgba(0,0,0,0.08);

  transform-origin: top;

  /* depth */
  box-shadow:
    inset 0 2px 6px rgba(0,0,0,0.08),
    0 8px 18px rgba(0,0,0,0.18);

  will-change: transform;
}

.envelope__flap::before {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  top: 0;
  height: 60%;

  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.12),
    transparent
  );

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

.envelope.is-opening .envelope__flap {
  animation: flapOpen 0.85s cubic-bezier(0.34, 1.2, 0.4, 1) forwards;
  filter: brightness(1.05);
  z-index: 4;
}

.envelope__front {
  position: absolute;
  inset: auto 0 0 0;
  height: 54%;
  z-index: 4;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  background:
    linear-gradient(180deg, rgba(255,245,222,0.98), rgba(233,215,181,0.98));
  border-top: 1px solid rgba(178, 121, 30, 0.36);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.72);
  transition: transform 0.9s cubic-bezier(0.2, 0.9, 0.25, 1);
}

.envelope__front::before {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  top: -2px;
  height: 42%;
  background: linear-gradient(180deg, rgba(124, 88, 33, 0.18), transparent 80%);
  clip-path: polygon(0 0, 100% 0, 50% 86%);
  opacity: 0.45;
}

.envelope__flap::after {
  content: "";
  position: absolute;
  left: 20%;
  right: 20%;
  bottom: 0;

  height: 2px;

  background: linear-gradient(
    to right,
    transparent,
    rgba(255,255,255,0.7),
    transparent
  );

  opacity: 0.7;
}
.envelope.is-opening .envelope__front {
  transform: translateY(2px);
}

.seal {
  z-index: 7;
  display: grid;
  place-items: center;
  width: 82px;
  aspect-ratio: 1;
  border-radius: 999px;
  cursor: pointer;

  background:
    radial-gradient(circle at 35% 28%, #ffe4a2, #c48624 52%, #7c4618);
  border: 2px solid rgba(255, 241, 191, 0.8);
  box-shadow: 0 14px 30px rgba(92, 62, 18, 0.36), inset 0 0 0 7px rgba(123, 70, 24, 0.22);
  transition:
    transform 0.72s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.45s ease,
    filter 0.45s ease;
  transform: translateY(12%);
  will-change: transform;
  backface-visibility: hidden;
  animation: sealPulse 2.2s ease-in-out infinite;
}

.envelope.is-opening .seal {
  animation: none;
  transform: scale(0.58) translateY(-12px) rotate(-14deg);
  opacity: 0;
  filter: blur(1px);
}

.envelope::after {
   content: "";
  position: absolute;
  inset: 0;
  border-radius: 6px;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.8),
    inset 0 -2px 6px rgba(0,0,0,0.08);

  pointer-events: none;
}

.envelope.is-opening::after {
  animation: openGlow 1.25s ease-out forwards;
}

.seal::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  pointer-events: none;

  box-shadow:
    0 0 20px rgba(230, 198, 122, 0.4),
    0 0 40px rgba(230, 198, 122, 0.2);

  opacity: 0;
  transition: opacity 0.3s ease;
}

.seal:hover {
  transform: scale(1.08);
  box-shadow:
    0 18px 40px rgba(0,0,0,0.4),
    inset 0 4px 8px rgba(255,255,255,0.7),
    inset 0 -6px 12px rgba(0,0,0,0.4);
}

.seal:hover::after {
  opacity: 1;
}

.seal__initials {
  color: #33140f;
  font-family: "Fraunces", serif;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.intro__copy {
  position: relative;
  z-index: 0;
  width: min(100%, 340px);
  text-align: center;
  transition: transform 0.7s ease, opacity 0.55s ease;
}

.intro.is-opening .intro__copy,
.intro.is-opening .intro-monogram,
.intro.is-opening .intro-divider {
  opacity: 0.72;
  transform: translateY(-10px);
}

.intro__copy p,
.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--gold-heading);

  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;

  text-shadow: 0 1px 0 rgba(255, 253, 248, 0.7);
}

.hero__invite {
  margin: 0 auto 0.6rem;
  max-width: 22ch;
  font-family: "Ephesis", cursive;
  font-size: clamp(1.85rem, 5.2vw, 2.7rem);
  font-weight: 400;
  line-height: 1.18;
  color: #8a754a;
  text-align: center;
}

.eyebrow--names {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.05em;
  font-family: "Ephesis", cursive;
  font-size: clamp(2.7rem, 8vw, 4.2rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
  color: #5a4824;
  margin-bottom: 1.4rem;
  text-shadow: 0 1px 0 rgba(255, 253, 248, 0.5);
}

.eyebrow--names span {
  display: block;
}

.intro__copy p {
  color: #9d6822;
  font-size: 0.64rem;
  letter-spacing: 0.34em;
}

.intro__copy h1 {
  margin: 0;
  color: #96631f;
  font-family: "Sacramento", cursive;
  font-size: clamp(3.4rem, 14vw, 5.6rem);
  font-weight: 400;
  line-height: 0.95;
}

.intro-divider {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: min(100%, 260px);
  color: #b47a23;
  font-size: 0.72rem;
}

.intro-divider span {
  flex: 1;
  height: 1px;
  background: rgba(157, 104, 34, 0.42);
}

.floating-controls {
  position: fixed;
  right: 1rem;
  top: 1rem;
  z-index: 4;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 320ms ease, transform 320ms ease;
  pointer-events: none;
}

.floating-controls.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.float-btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(214, 173, 93, 0.42);
  border-radius: 50%;
  color: #fffdf8;
  background: rgba(154, 137, 99, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  cursor: pointer;
  padding: 0;
  transition: background 200ms ease, transform 200ms ease;
}

.float-btn:hover,
.float-btn:focus-visible {
  background: rgba(184, 158, 110, 0.95);
  transform: scale(1.05);
}

.float-btn:active {
  transform: scale(0.94);
}

.sound-toggle {
  /* legacy hook — kept so old layout selectors still match */
}

.share-toast {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  padding: 0.4rem 0.7rem;
  font-family: "Jost", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: #fffdf8;
  background: rgba(28, 22, 14, 0.85);
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 220ms ease, transform 220ms ease;
  pointer-events: none;
}

.share-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

main {
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 2%, rgba(255, 255, 255, 0.9), transparent 18rem),
    radial-gradient(circle at 88% 20%, rgba(218, 199, 158, 0.28), transparent 18rem),
    linear-gradient(180deg, #fffdf8 0%, #f7f1e7 48%, #d3c29a 100%);
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 4rem 1.15rem;
  background: linear-gradient(180deg, #fdfaf1 0%, #fbf5e6 100%);
}

.floral-corner {
  position: absolute;
  width: min(38vw, 210px);
  aspect-ratio: 1.35;
  pointer-events: none;
  opacity: 0.5;
  background:
    radial-gradient(circle at 18% 34%, rgba(255, 255, 255, 0.98) 0 11px, rgba(225, 215, 191, 0.7) 12px 14px, transparent 15px),
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.95) 0 9px, rgba(225, 215, 191, 0.58) 10px 12px, transparent 13px),
    radial-gradient(circle at 42% 42%, rgba(255, 255, 255, 0.96) 0 10px, rgba(225, 215, 191, 0.62) 11px 13px, transparent 14px),
    radial-gradient(circle at 58% 30%, rgba(255, 255, 255, 0.92) 0 8px, rgba(225, 215, 191, 0.55) 9px 11px, transparent 12px),
    linear-gradient(28deg, transparent 0 46%, rgba(165, 154, 120, 0.36) 47% 49%, transparent 50%);
  filter: drop-shadow(0 16px 22px rgba(104, 88, 56, 0.12));
}

.floral-corner--top {
  left: -2rem;
  top: 0.6rem;
  transform: rotate(-11deg);
}

.floral-corner--bottom {
  right: -2.8rem;
  bottom: 1rem;
  transform: rotate(171deg);
}

.hero__frame {
  position: relative;
  width: min(100%, 560px);
  min-height: 76svh;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  padding: 2rem;
  border: 1px solid rgba(174, 154, 104, 0.48);
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.82), transparent 16rem),
    linear-gradient(180deg, rgba(255, 253, 248, 0.76), rgba(245, 239, 229, 0.74));
  box-shadow: 0 24px 70px rgba(132, 113, 75, 0.18);
  overflow: hidden;
}

.hero__frame::before,
.hero__frame::after {
  content: "";
  position: absolute;
  inset: 1rem;
  border: 1px solid rgba(174, 154, 104, 0.28);
}

.hero h2 {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #5a5145;
  font-family: "Fraunces", serif;
  font-size: clamp(3.7rem, 15vw, 7.3rem);
  font-weight: 500;
  line-height: 0.82;
}

.hero__art {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  margin-top: 0.75rem;
  padding: clamp(0.8rem, 2.5vw, 1rem);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(249, 242, 230, 0.88));
  box-shadow:
    0 20px 52px rgba(132, 113, 75, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.hero__art img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 22px;
}

.hero__date {
  position: relative;
  z-index: 1;
  margin: 1.5rem 0 0;
  color: #8f805e;
  font-size: 0.92rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero__monogram {
  position: absolute;
  right: -1rem;
  bottom: 1rem;
  color: rgba(174, 154, 104, 0.13);
  font-family: "Fraunces", serif;
  font-size: 11rem;
  line-height: 1;
}

.message,
.details,
.countdown,
.calendar,
.rsvp,
.date-poster {
  width: min(100% - 2rem, 780px);
  margin: 0 auto;
  padding: 5rem 0;
}

.date-poster {
  padding: 2.2rem 0 1rem;
}

.date-poster__frame {
  position: relative;
  width: min(100%, 620px);
  margin: 0 auto;
  padding: clamp(0.7rem, 2vw, 1rem);
  border-radius: 28px;
  border: 1px solid rgba(154, 117, 38, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(246, 238, 224, 0.94));
  box-shadow:
    0 30px 64px rgba(120, 100, 62, 0.2),
    0 4px 12px rgba(120, 100, 62, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.date-poster__frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
}

.date-poster__cta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10%;
  width: max-content;
  margin: 0 auto;
  white-space: nowrap;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.message {
  position: relative;
  width: min(100%, 860px);
  padding: 5.8rem 1.2rem 7rem;
  background:
    radial-gradient(circle at 50% 4%, rgba(214, 201, 170, 0.28), transparent 14rem),
    linear-gradient(180deg, rgba(255, 253, 248, 0), rgba(255, 253, 248, 0.8));
}

.message::after,
.rsvp__card::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 1.6rem;
  width: min(72vw, 520px);
  height: 86px;
  transform: translateX(-50%);
  opacity: 0.62;
  background:
    radial-gradient(circle at 16% 58%, rgba(255,255,255,0.95) 0 13px, rgba(195,181,143,0.44) 14px 16px, transparent 17px),
    radial-gradient(circle at 27% 42%, rgba(255,255,255,0.95) 0 15px, rgba(195,181,143,0.38) 16px 18px, transparent 19px),
    radial-gradient(circle at 40% 60%, rgba(255,255,255,0.96) 0 14px, rgba(195,181,143,0.36) 15px 17px, transparent 18px),
    radial-gradient(circle at 55% 40%, rgba(255,255,255,0.94) 0 13px, rgba(195,181,143,0.34) 14px 16px, transparent 17px),
    radial-gradient(circle at 70% 60%, rgba(255,255,255,0.96) 0 15px, rgba(195,181,143,0.38) 16px 18px, transparent 19px),
    radial-gradient(circle at 82% 46%, rgba(255,255,255,0.94) 0 12px, rgba(195,181,143,0.34) 13px 15px, transparent 16px),
    linear-gradient(180deg, transparent 0 55%, rgba(158, 149, 113, 0.34) 56% 59%, transparent 60%);
  filter: drop-shadow(0 12px 18px rgba(114, 95, 58, 0.1));
}

.message p {
  position: relative;
  z-index: 1;
  width: min(100% - 3rem, 560px);
  margin: 0 auto;
  padding: 0 0.5rem;
  color: #322d27;
  font-family: "Ephesis", cursive;
  font-weight: 400;
  font-style: normal;
  font-size: clamp(2.3rem, 7vw, 3.6rem);
  line-height: 1.18;
  letter-spacing: 0;
  text-align: center;
}

.details {
  position: relative;
  display: grid;
  gap: 1.4rem;
  width: min(100% - 2rem, 860px);
  padding-top: 4rem;
}

.section-heading {
  grid-column: 1 / -1;
  text-align: center;
  margin-bottom: 1.2rem;
}

.section-heading h2 {
  margin: 0;
  color: var(--gold-heading);
  font-family: "Fraunces", serif;
  font-size: clamp(3rem, 12vw, 5.4rem);
  font-weight: 500;
  font-style: italic;
  line-height: 0.92;
  text-shadow: 0 1px 0 rgba(255, 253, 248, 0.6);
}

.details article {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(1.7rem, 4.5vw, 2.1rem);
  border: 1px solid rgba(184, 150, 74, 0.32);
  border-radius: 18px;

  background:
    linear-gradient(180deg, rgba(255, 254, 250, 0.82), rgba(252, 247, 237, 0.7));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  box-shadow:
    0 20px 46px rgba(120, 100, 62, 0.14),
    0 2px 6px rgba(120, 100, 62, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

/* Zaglavlje kartice — broj i ikona u ravnoteži na istom redu */
.event-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 1.2rem;
}

.details span {
  position: relative;
  z-index: 1;
  display: inline-grid;
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 50%;
  border: 1px solid rgba(154, 117, 38, 0.4);
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 253, 248, 0.95), rgba(245, 233, 205, 0.5));
  color: var(--gold-heading);
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 1.3rem;
  letter-spacing: 0.02em;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 6px 14px rgba(120, 100, 62, 0.1);
}

.event-icon {
  flex: 0 0 auto;
  width: 3.2rem;
  height: 3.2rem;
  display: grid;
  place-items: center;
  color: var(--gold-heading);
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, rgba(255, 253, 248, 0.92), rgba(214, 189, 135, 0.22));
  box-shadow:
    inset 0 0 0 1px rgba(154, 117, 38, 0.32),
    0 6px 16px rgba(130, 111, 75, 0.12);
}

.event-icon svg {
  width: 62%;
  height: 62%;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 8px 12px rgba(150, 128, 83, 0.12));
}

.details h3,
.calendar h3,
.rsvp h3 {
  margin: 0.25rem 0;
  color: var(--gold-heading);
  font-family: "Fraunces", serif;
  font-size: 2.35rem;
  font-weight: 500;
}

.details h3 {
  font-size: clamp(1.65rem, 5.5vw, 2rem);
  line-height: 1.12;
  letter-spacing: 0.005em;
}

.details p {
  margin: 0.75rem 0 0;
  color: var(--ink-body);
  font-weight: 600;
}

/* Vreme — ključna informacija: tamno, krupno, najčitljivije */
.details article > p:not(.detail-address) {
  margin-top: 0.7rem;
  font-family: "Fraunces", serif;
  font-style: normal;
  font-weight: 600;
  font-size: 1.75rem;
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--ink-strong);
}

.details .detail-address {
  width: 100%;
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(154, 117, 38, 0.22);
  color: var(--ink-soft);
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}


.countdown {
  text-align: center;
  color: #3d3935;
  padding-top: 4rem;
}

.countdown__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.7rem;
}

.countdown__grid div {
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 50%;
  background:
    radial-gradient(125% 125% at 30% 22%,
      #efe4c4 0%,
      #d3bf8d 42%,
      #ad9763 78%,
      #927c52 100%);
  box-shadow:
    0 14px 30px rgba(91, 75, 45, 0.22),
    inset 0 2px 3px rgba(255, 255, 255, 0.55),
    inset 0 -12px 24px rgba(120, 96, 52, 0.32);
  animation: floatCoin 4s ease-in-out infinite;
}

.countdown__grid div::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  border: 1px solid rgba(255, 253, 248, 0.4);
  pointer-events: none;
}

.countdown__grid div:nth-child(1) {
  animation-delay: 0s;
}

.countdown__grid div:nth-child(2) {
  animation-delay: 0.4s;
}

.countdown__grid div:nth-child(3) {
  animation-delay: 0.8s;
}

.countdown__grid div:nth-child(4) {
  animation-delay: 1.2s;
}

.countdown strong {
  color: #fffdf8;
  font-family: "Fraunces", serif;
  font-size: clamp(2rem, 10vw, 4.2rem);
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(86, 66, 38, 0.35);
}

.countdown span {
  color: #fffdf8;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.calendar {
  position: relative;
  text-align: center;
  padding: 4rem 1rem 5rem;

  background:
    radial-gradient(circle at 50% 20%, rgba(255,255,255,0.9), transparent 20rem),
    linear-gradient(180deg, #f4eee3, #e6d6b3);

  border-radius: 20px;
  margin: 2rem auto;
}

/* countdown ostaje kako jeste */
.countdown .eyebrow {
  color: #9b8c68;
}

/* calendar dobija premium gold */
.calendar h3 {
  color: #b8964a;
}

.btn-ico {
  width: 1.15em;
  height: 1.15em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn-ico path:last-child {
  fill: currentColor;
  stroke: none;
}

.actions {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 1.3rem;
}

.button,
.rsvp button,
.details a {
  margin-top: 1rem;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.95rem 1.5rem;
  border: 1px solid rgba(154, 117, 38, 0.65);
  border-radius: 999px;
  color: #fffdf8;
  background: linear-gradient(180deg, #e7c878 0%, #c39a44 55%, #a87f30 100%);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.82rem;
  line-height: 1;
  text-shadow: 0 1px 1px rgba(96, 68, 16, 0.4);
  box-shadow:
    0 16px 34px rgba(168, 127, 48, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.button::after,
.rsvp button::after,
.details a::after {
  content: "›";
  font-size: 1.05rem;
  line-height: 1;
}

.button:hover,
.rsvp button:hover,
.details a:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 38px rgba(184, 150, 74, 0.34);
  filter: saturate(1.04);
}

.button:active,
.rsvp button:active,
.details a:active {
  transform: translateY(0);
}

.calendar .button:first-child {
  width: 100%;
  max-width: 280px;
  margin: 1rem auto 0;

  font-size: 0.85rem;
  letter-spacing: 0.18em;

  background: linear-gradient(180deg, #e6c67a, #b8964a);
  box-shadow:
    0 18px 40px rgba(184, 150, 74, 0.35),
    inset 0 1px 0 rgba(255,255,255,0.4);

  transform: scale(1.05);
}

.calendar .button:first-child:hover {
  transform: scale(1.08);
}

.button--ghost {
  color: #867755;
  background: transparent;
  border-color: rgba(168, 151, 103, 0.55);
}

/* "Vidi mapu" — sekundarna akcija: rafinirano outline dugme,
   da puna zlatna dugmad (kalendar, RSVP) ostanu primarni fokus */
.details a {
  margin-top: 1.5rem;
  align-self: flex-start;
  min-height: 46px;
  padding: 0.7rem 1.3rem;
  color: var(--gold-heading-deep);
  background: rgba(255, 253, 248, 0.55);
  border: 1.5px solid rgba(154, 117, 38, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
  font-size: 0.76rem;
  text-shadow: none;
}

.details a:hover {
  color: #fffdf8;
  background: linear-gradient(180deg, #d9b766, #a87f30 72%);
  border-color: transparent;
  box-shadow: 0 14px 30px rgba(168, 127, 48, 0.3);
}

.rsvp__card {
  position: relative;
  overflow: hidden;
  padding: clamp(1.6rem, 6vw, 2.8rem);
  padding-top: clamp(4.6rem, 12vw, 5.4rem);
  border-radius: 22px;

  border: 1px solid rgba(184, 150, 74, 0.34);

  background:
    linear-gradient(180deg, rgba(255, 254, 250, 0.72), rgba(252, 246, 235, 0.6));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  box-shadow:
    0 28px 70px rgba(112, 91, 48, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);

  text-align: center;
}

.rsvp__card::before {
  top: 0.4rem;
  bottom: auto;
  opacity: 0.95;
}

.rsvp__ornament {
  position: relative;
  z-index: 1;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin: 0 auto 0.8rem;
  border-radius: 50%;
  color: #fffdf8;
  background: linear-gradient(180deg, rgba(255,255,255,0.22), rgba(255,255,255,0.08));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35);
}

.rsvp__card .eyebrow {
  color: var(--gold-heading);
}

.rsvp__card h3 {
  color: var(--gold-heading);
}

.rsvp__note {
  max-width: 28rem;
  margin: 0.4rem auto 0;
  color: var(--ink-body);
  font-family: "Jost", sans-serif;
  font-size: 1.04rem;
  font-weight: 500;
  line-height: 1.55;
}

.rsvp__subnote {
  max-width: 34rem;
  margin: 0 auto 1.4rem;
  color: rgba(76, 60, 28, 0.82);
  font-size: 0.98rem;
  line-height: 1.55;
}

form {
  display: grid;
  gap: 1.05rem;
  margin-top: 1.4rem;
  text-align: left;
}

.field-shell {
  padding: 1rem 1rem 0.95rem;
  border: 1px solid rgba(184, 150, 74, 0.16);
  border-radius: 18px;
  background: rgba(255,255,255,0.24);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.24);
}

label,
legend {
  color: var(--ink-soft);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

input,
textarea {
  width: 100%;
  margin-top: 0.5rem;
  border: 1px solid rgba(154, 117, 38, 0.32);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink-strong);
  font-size: 1rem;
  padding: 1rem 1.05rem;
  transition: all 0.2s ease;
}

input::placeholder,
textarea::placeholder {
  color: rgba(89, 74, 42, 0.54);
}

input:focus,
textarea:focus {
  outline: none;
  border-color: rgba(154, 117, 38, 0.7);
  box-shadow: 0 0 0 4px rgba(230, 198, 122, 0.22);
  background: #fffdf8;
}

/* RSVP forma */
.rsvp-form {
  margin-top: 2rem;
  gap: 1.35rem;
}

/* `form { display: grid }` pregazi podrazumevano [hidden] -> ovo vraća skrivanje */
.rsvp-form[hidden] {
  display: none;
}

/* Najdominantniji CTA na stranici */
.rsvp-form .button,
#rsvpSubmit {
  width: 100%;
  margin-top: 0.9rem;
  min-height: 60px;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  box-shadow:
    0 20px 44px rgba(168, 127, 48, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

#rsvpSubmit:hover {
  box-shadow:
    0 24px 50px rgba(168, 127, 48, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.rsvp-field__label {
  display: block;
  color: var(--ink-soft);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.rsvp-opt {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  font-size: 0.72rem;
  opacity: 0.65;
}

.rsvp-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.05rem;
}

.rsvp-choice {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.rsvp-pill {
  flex: 1;
  position: relative;
  margin: 0;
}

.rsvp-pill input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  cursor: pointer;
}

.rsvp-pill span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.6rem 1rem;
  border: 1.5px solid rgba(154, 117, 38, 0.38);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink-soft);
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all 0.2s ease;
}

.rsvp-pill input:checked + span {
  border-color: transparent;
  color: #fffdf8;
  background: linear-gradient(180deg, #ead08d, #b8964a 72%);
  box-shadow: 0 12px 26px rgba(184, 150, 74, 0.28);
}

.rsvp-pill input:focus-visible + span {
  box-shadow: 0 0 0 4px rgba(230, 198, 122, 0.25);
}

.rsvp-form .button {
  width: 100%;
}

.rsvp-status {
  min-height: 1.2em;
  margin: 0.2rem 0 0;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  color: #b4543a;
}

.rsvp-done {
  margin-top: 0.5rem;
  animation: fadeUp 0.5s ease both;
}

.rsvp-done .rsvp__ornament {
  font-size: 1.5rem;
  background: linear-gradient(180deg, #ead08d, #b8964a);
  box-shadow: 0 12px 26px rgba(184, 150, 74, 0.3);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 520px) {
  .rsvp-row {
    grid-template-columns: 1fr;
  }
}

.scroll-indicator {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);

  width: 22px;
  height: 36px;

  border: 2px solid rgba(184, 150, 74, 0.6);
  border-radius: 12px;

  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.scroll-indicator span {
  width: 4px;
  height: 8px;
  border-radius: 2px;
  background: #b8964a;

  animation: scrollMove 1.6s ease-in-out infinite;
}

@keyframes scrollMove {
  0% {
    opacity: 0;
    transform: translateY(0);
  }

  40% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateY(10px);
  }
}

input,
textarea {
  width: 100%;
  margin-top: 0.5rem;

  border: 1px solid rgba(154, 117, 38, 0.32);
  border-radius: 14px;

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

  color: var(--ink-strong);
  font-size: 1rem;

  padding: 1rem 1.05rem;

  transition: all 0.2s ease;
}

fieldset {
  margin: 0;
  padding: 1rem;
  border: 1px solid rgba(184, 150, 74, 0.16);
  border-radius: 18px;
  background: rgba(255,255,255,0.24);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.24);
}

.choice-group legend {
  margin-bottom: 0.85rem;
}

.choice-grid {
  display: grid;
  gap: 0.85rem;
}

.radio-card {
  position: relative;
  display: grid;
  grid-template-columns: 1.4rem minmax(0, 1fr);
  align-items: start;
  column-gap: 0.95rem;
  row-gap: 0;
  min-height: 84px;
  padding: 1rem 1rem 1rem 1rem;
  border: 1px solid rgba(184, 150, 74, 0.2);
  border-radius: 18px;
  background: rgba(255,255,255,0.62);
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.radio-card input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}

.radio-card__indicator {
  position: relative;
  width: 1.4rem;
  height: 1.4rem;
  border: 1.5px solid rgba(184, 150, 74, 0.6);
  border-radius: 50%;
  background: rgba(255,255,255,0.86);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.radio-card__indicator::after {
  content: "";
  position: absolute;
  inset: 0.27rem;
  border-radius: 50%;
  background: linear-gradient(180deg, #ead08d, #b8964a);
  transform: scale(0.15);
  opacity: 0;
  transition: transform 180ms ease, opacity 180ms ease;
}

.radio-card__content {
  display: grid;
  gap: 0.28rem;
  min-width: 0;
}

.radio-card__title {
  color: #5e4c29;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
}

.radio-card__meta {
  color: rgba(89, 74, 42, 0.72);
  font-size: 0.92rem;
  line-height: 1.4;
}

.radio-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(184, 150, 74, 0.1);
}

.radio-card:has(input:checked) {
  border-color: rgba(184, 150, 74, 0.52);
  background: rgba(255,255,255,0.9);
  box-shadow: 0 14px 26px rgba(184, 150, 74, 0.16);
}

.radio-card:has(input:checked) .radio-card__indicator {
  border-color: rgba(184, 150, 74, 0.95);
  box-shadow: 0 0 0 5px rgba(230, 198, 122, 0.14);
}

.radio-card:has(input:checked) .radio-card__indicator::after {
  transform: scale(1);
  opacity: 1;
}

.radio-card:focus-within {
  outline: 2px solid rgba(230, 198, 122, 0.34);
  outline-offset: 3px;
}

.rsvp button {
  width: 100%;
  margin-top: 0.4rem;
}

.form-status {
  min-height: 1.4rem;
  color: #5a4a2f;
  text-align: center;
}

.section-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 800ms ease, transform 800ms ease;
}

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

/* GOLD GLOW EFFECT */
.details article::after,
.rsvp__card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;

  box-shadow:
    0 0 0 1px rgba(230, 198, 122, 0.25),
    0 0 22px rgba(230, 198, 122, 0.18);

  opacity: 0;
  transition: opacity 0.3s ease;
}

/* HOVER STATE */
.details article:hover::after,
.rsvp__card:hover::after {
  opacity: 1;
}

/* LIFT EFFECT */
.details article:hover,
.rsvp__card:hover {
  transform: translateY(-4px);
  transition: transform 0.25s ease;
}

@media (min-width: 760px) {
  .details {
    grid-template-columns: repeat(6, 1fr);
  }

  .details article {
    grid-column: span 3;
  }

  .details article:last-child {
    grid-column: 2 / span 4;
  }
}

@media (max-width: 520px) {
  .countdown__grid {
    gap: 0.45rem;
  }

  .countdown__grid div {
    min-width: 0;
  }

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

  .hero__art {
    width: min(100%, 100%);
    padding: 0.7rem;
    border-radius: 22px;
  }

  .hero__art img {
    border-radius: 18px;
  }

  .radio-card {
    grid-template-columns: 1.25rem minmax(0, 1fr);
    column-gap: 0.8rem;
    min-height: 76px;
    padding: 0.9rem;
  }

  .radio-card__title {
    font-size: 0.95rem;
  }

  .radio-card__meta {
    font-size: 0.84rem;
  }

  .button,
  .rsvp button,
  .details a {
    width: 100%;
  }

  .date-poster__cta {
    width: max-content;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    padding: 0.75rem 1.15rem;
    min-height: 48px;
    gap: 0.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
  }
}

@keyframes floatCoin {
  0%,
  100% {
    transform: translateY(0);
    box-shadow:
      0 14px 30px rgba(91, 75, 45, 0.22),
      inset 0 2px 3px rgba(255, 255, 255, 0.55),
      inset 0 -12px 24px rgba(120, 96, 52, 0.32);
  }

  50% {
    transform: translateY(-7px);
    box-shadow:
      0 24px 40px rgba(91, 75, 45, 0.26),
      inset 0 2px 3px rgba(255, 255, 255, 0.6),
      inset 0 -12px 24px rgba(120, 96, 52, 0.32);
  }
}

@keyframes sealPulse {
  0% {
    transform: scale(1);
    box-shadow:
      0 16px 48px rgba(0, 0, 0, 0.36),
      inset 0 0 0 9px rgba(94, 38, 30, 0.32);
  }

  50% {
    transform: scale(1.08);
    box-shadow:
      0 22px 60px rgba(184, 150, 74, 0.4),
      inset 0 0 0 9px rgba(94, 38, 30, 0.32);
  }

  100% {
    transform: scale(1);
    box-shadow:
      0 16px 48px rgba(0, 0, 0, 0.36),
      inset 0 0 0 9px rgba(94, 38, 30, 0.32);
  }
}

@keyframes openGlow {
  0% {
    opacity: 0;
    transform: scale(0.86);
  }

  34% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: scale(1.16);
  }
}


@keyframes flapOpen {
  0%   { transform: perspective(1000px) rotateX(0deg); }                                                                                                                                                  
  55%  { transform: perspective(1000px) rotateX(178deg); }                                                                                                                                                
  100% { transform: perspective(1000px) rotateX(172deg); }
}

@keyframes letterReveal {
   0% {                                                                                                                                                                                                    
      transform: translateY(60%) scale(0.94) rotate(0deg);
      opacity: 0;                                                                                                                                                                                           
    }
    15% {                                                                                                                                                                                                   
      opacity: 1;    
    }
    60% {
      transform: translateY(-30%) scale(1) rotate(-0.6deg);
    }                                                                                                                                                                                                       
    100% {
      transform: translateY(-68%) scale(1) rotate(0deg);                                                                                                                                                    
    }                                                           
}

@keyframes letterShadow {
  0% {
    box-shadow:
      0 6px 12px rgba(60, 40, 10, 0.08),
      inset 0 1px 0 rgba(255,255,255,0.75);
  }

  50% {
    box-shadow:
      0 20px 40px rgba(60, 40, 10, 0.2),
      inset 0 1px 0 rgba(255,255,255,0.75);
  }

  100% {
    box-shadow:
      0 14px 28px rgba(60, 40, 10, 0.15),
      inset 0 1px 0 rgba(255,255,255,0.75);
  }
}

/* === SVG envelope intro =========================================== */

.intro {
  padding: 0;
  display: block;
  min-height: 100vh;
  min-height: 100svh;
  background:
    radial-gradient(ellipse at 50% 18%, rgba(255, 255, 255, 0.85), transparent 55%),
    radial-gradient(circle at 14% 78%, rgba(228, 198, 138, 0.22), transparent 50%),
    radial-gradient(circle at 86% 72%, rgba(192, 158, 96, 0.20), transparent 55%),
    linear-gradient(170deg, #fbf6ec 0%, #f1e8d4 55%, #e6d8b7 100%);
  overflow: hidden;
}

.intro::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.4' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.34  0 0 0 0 0.24  0 0 0 0 0.12  0 0 0 0.15 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.4;
  mix-blend-mode: multiply;
  z-index: 0;
}

/* Hide all the legacy intro chrome — we're using the SVG envelope only */
.intro-card,
.intro-card::before,
.floral-bg,
.intro-botanical,
.intro-doves,
.intro-names,
.intro-monogram,
.intro__copy,
.intro-divider,
.envelope__letter,
.envelope__flap,
.envelope__front {
  display: none !important;
}

.intro-scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
  perspective: 1200px;
}

.intro-bokeh {
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(circle at 22% 30%, rgba(232, 196, 132, 0.30), transparent 6%),
    radial-gradient(circle at 78% 22%, rgba(232, 196, 132, 0.22), transparent 5%),
    radial-gradient(circle at 14% 72%, rgba(232, 196, 132, 0.18), transparent 4%),
    radial-gradient(circle at 86% 68%, rgba(232, 196, 132, 0.26), transparent 6%),
    radial-gradient(circle at 50% 88%, rgba(232, 196, 132, 0.20), transparent 5%);
  filter: blur(1.5px);
  animation: bokehDrift 18s ease-in-out infinite alternate;
  pointer-events: none;
  mix-blend-mode: multiply;
}

@keyframes bokehDrift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-1.5%, -2.5%, 0) scale(1.04); }
}

.envelope-stage {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(92vw, 480px);
  aspect-ratio: 4 / 3;
  transform: translate(-50%, -50%);
  z-index: 4;
  pointer-events: none;
}

.envelope {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  filter: drop-shadow(0 28px 50px rgba(60, 40, 20, 0.30));
  will-change: transform, opacity;
  background: none;
  border-radius: 0;
  border: 0;
  box-shadow: none;
  aspect-ratio: auto;
  isolation: auto;
  transform-origin: 50% 60%;
}

.envelope--blank {
  z-index: 2;
}

.envelope--open {
  z-index: 2;
  opacity: 0;
}

.envelope--sealed {
  z-index: 3;
}

/* "Tap here" signal centered on the wax seal */
.intro-tap {
  position: absolute;
  left: 51%;
  top: 62%;
  width: 30%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  z-index: 6;
  pointer-events: none;
  transition: opacity 240ms ease;
}

/* Persistent ring that breathes — always visible, never fully fades */
.intro-tap::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid rgba(165, 42, 48, 0.78);
  box-shadow:
    0 0 0 1.5px rgba(255, 248, 232, 0.6),
    0 8px 22px rgba(90, 20, 26, 0.28);
  animation: tapCore 2.4s ease-in-out infinite;
}

/* Soft warm glow halo behind the ring */
.intro-tap::after {
  content: "";
  position: absolute;
  inset: -32%;
  border-radius: 50%;
  z-index: -1;
  background: radial-gradient(circle, rgba(255, 210, 140, 0.6), rgba(255, 210, 140, 0) 70%);
  animation: tapGlow 2.4s ease-in-out infinite;
}

/* Expanding sonar pings radiating outward */
.intro-tap span {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(165, 42, 48, 0.6);
  opacity: 0;
  animation: tapPing 2.4s ease-out infinite;
}

.intro-tap span:nth-child(2) {
  animation-delay: 1.2s;
}

@keyframes tapCore {
  0%, 100% { transform: scale(0.96); opacity: 0.65; }
  50% { transform: scale(1.06); opacity: 1; }
}

@keyframes tapGlow {
  0%, 100% { opacity: 0.28; transform: scale(0.9); }
  50% { opacity: 0.62; transform: scale(1.12); }
}

@keyframes tapPing {
  0% { transform: scale(0.92); opacity: 0; }
  12% { opacity: 0.7; }
  100% { transform: scale(2); opacity: 0; }
}

.envelope-glow {
  position: absolute;
  left: 50%;
  top: 60%;
  width: 36%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 222, 158, 0.65) 0%, rgba(255, 222, 158, 0.25) 30%, rgba(255, 222, 158, 0) 70%);
  opacity: 0;
  z-index: 4;
  mix-blend-mode: screen;
  filter: blur(10px);
}

.seal-piece {
  position: absolute;
  left: 50%;
  top: 60%;
  width: 32%;
  aspect-ratio: 1;
  object-fit: contain;
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
  z-index: 5;
  will-change: transform, opacity;
  user-select: none;
  -webkit-user-drag: none;
  filter: drop-shadow(0 10px 18px rgba(40, 6, 10, 0.55));
}

/* Hero gets a stronger, slower reveal than other sections — it's the
   content that "emerges" from the envelope so it deserves more drama. */
.hero.section-reveal {
  transform: scale(0.94) translateY(36px);
  transition: opacity 1100ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 1100ms cubic-bezier(0.16, 1, 0.3, 1);
}

.hero.section-reveal.is-visible {
  transform: scale(1) translateY(0);
}

/* The "Dodirni pečat" pill at the bottom — fades out on click */
.intro-cta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: max(16vh, 110px);
  z-index: 5;
  display: flex;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 360ms ease, transform 320ms ease;
}

.intro-cta.is-ready {
  opacity: 1;
}

.intro-cta__pill {
  display: inline-block;
  padding: 0.62rem 1.45rem;
  background: rgba(255, 251, 240, 0.78);
  color: #6e1820;
  border: 1px solid rgba(125, 38, 44, 0.30);
  border-radius: 999px;
  font-family: "Jost", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 8px 22px rgba(110, 80, 30, 0.12);
  animation: ctaBreathe 2.2s ease-in-out infinite;
}

@keyframes ctaBreathe {
  0%, 100% { transform: translateY(0); opacity: 0.92; }
  50%      { transform: translateY(-3px); opacity: 1; }
}

.intro-hit-area {
  position: absolute;
  inset: 0;
  z-index: 10;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.intro-hit-area:focus-visible {
  outline: 2px solid rgba(230, 198, 122, 0.68);
  outline-offset: -8px;
}

.intro.is-opening .intro-cta {
  opacity: 0;
  transform: translateY(10px);
}

.intro.is-opening .intro-tap,
.intro.is-open .intro-tap {
  opacity: 0;
}

.intro.is-opening .intro-tap span,
.intro.is-opening .intro-tap::before,
.intro.is-opening .intro-tap::after {
  animation: none;
}

.intro.is-opening .intro-hit-area {
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .envelope__seal,
  .intro-bokeh,
  .intro-cta__pill,
  .intro-tap span,
  .intro-tap::before,
  .intro-tap::after {
    animation: none !important;
  }

  .intro-tap span {
    opacity: 0;
  }

  .intro-tap::before {
    opacity: 0.85;
  }

  .intro-tap::after {
    opacity: 0.45;
  }
}
