:root{
  --cream:#f7f4ee;
  --paper:#fffdf9;
  --panel:rgba(255,252,245,.72);
  --panel-border:rgba(255,255,255,.55);
  --olive:#49613d;
  --olive-dark:#31422b;
  --gold:#c3a44f;
  --ink:#2f372f;
  --muted:#6a7067;
  --line:#ddd8cc;
  --serif:"Cormorant Garamond", Georgia, serif;
  --sans:"Inter", Arial, sans-serif;
  --script:"Allura", cursive;
  --shadow:0 18px 40px rgba(30,36,24,.12);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--cream);color:var(--ink);font-family:var(--serif);font-size:18px;line-height:1.55}
img{max-width:100%;display:block}
a{color:inherit}
.section{padding:90px max(24px,calc((100% - 1180px)/2))}
.narrow{max-width:760px;margin:0 auto;text-align:center}
.section-heading{max-width:760px;margin:0 auto;text-align:center}
.sprig{width:74px;margin:0 auto 14px;opacity:.92}
.mini-sprig{width:58px;margin:6px auto 10px}
h1,h2,h3{margin:0;color:var(--ink);font-weight:500}
h2{font-size:clamp(2.3rem,4vw,3.7rem);text-transform:uppercase;letter-spacing:.05em}
h3{font-size:1.9rem;letter-spacing:.04em}
p{margin:0 0 14px}
.heart{margin-top:12px;color:var(--olive-dark);font-size:1.5rem}

.site-header{
  position:fixed;
  inset:0 0 auto 0;
  z-index:50;
  height:70px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 max(22px,3.5vw);
  color:#fff;
  background:transparent;
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
  border-bottom:none;
}
.brand{
  text-decoration:none;
  font:600 1.45rem var(--serif);
  letter-spacing:.11em;
  text-transform:uppercase;
}
.brand i, .site-header nav i, .nav-rsvp{color:#e0bf63;font-style:normal}
.site-header nav{
  display:flex;
  align-items:center;
  gap:28px;
}
.site-header nav a{
  text-decoration:none;
  font:500 .78rem var(--sans);
  letter-spacing:.14em;
  text-transform:uppercase;
}
.menu{
  display:none;
  border:0;
  background:none;
  color:#fff;
  font-size:1.55rem;
  cursor:pointer;
}

.hero{
  position:relative;
  min-height:760px;
  display:grid;
  place-items:center;
  padding:110px 20px 70px;
  background:
    linear-gradient(rgba(32,42,25,.18), rgba(34,43,28,.25)),
    url("assets/hero-v34.jpg") center/cover no-repeat;
}
.hero-overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(rgba(255,255,255,.04), rgba(255,255,255,.04));
}
.hero-panel{
  position:relative;
  z-index:1;
  width:min(820px,100%);
  padding:42px 46px 34px;
  text-align:center;
  background:var(--panel);
  border:1px solid var(--panel-border);
  border-radius:34px;
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  box-shadow:0 26px 60px rgba(40,52,33,.14);
}
.hero-kicker{
  margin-bottom:12px;
  color:#3e433a;
  font:600 .85rem var(--sans);
  letter-spacing:.26em;
  text-transform:uppercase;
}
.hero h1{
  font-family:var(--script);
  font-size:clamp(4rem,10vw,7rem);
  line-height:.92;
  letter-spacing:.01em;
}
.name-black{color:#181915}
.amp{color:var(--olive);padding:0 .05em}
.hero-line{
  margin:18px 0 22px;
  font-size:1.2rem;
  color:#3b3f3a;
}
.date-block{
  margin-bottom:28px;
  color:#35372f;
  text-align:center;
}
.date-block strong{
  display:block;
  font-size:1.65rem;
  letter-spacing:.03em;
}
.date-block span{
  display:block;
  margin-top:4px;
  font:600 1rem var(--serif);
  letter-spacing:.02em;
}
.hero-button,
.submit,
.rsvp-banner-action a,
.feature-card a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  text-decoration:none;
  text-transform:uppercase;
  letter-spacing:.12em;
  font:600 .83rem var(--sans);
  white-space:nowrap;
}
.hero-button{
  min-width:180px;
  padding:16px 28px;
  border-radius:18px;
  background:var(--olive);
  color:#fff;
  box-shadow:0 10px 25px rgba(48,66,43,.18);
}
.hero-button.small{min-width:unset}
.welcome{background:var(--paper)}
.welcome .section-heading p{font-size:1.14rem}

.feature-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
  max-width:1040px;
  margin:34px auto 0;
}
.feature-card{
  overflow:hidden;
  border:1px solid #e4ded1;
  background:#fff;
  box-shadow:var(--shadow);
}
.feature-card img{
  width:100%;
  height:250px;
  object-fit:cover;
  filter:saturate(1.03) brightness(1.03);
}
.feature-copy{
  padding:18px 24px 24px;
  text-align:center;
}
.feature-copy p{color:var(--muted);margin-bottom:18px}
.feature-card a{
  min-width:160px;
  padding:10px 16px;
  border:1px solid #cfc7b7;
  color:var(--ink);
}
.feature-card a span,
.rsvp-banner-action a span,
.submit span{color:var(--gold)}

.rsvp-banner{
  display:grid;
  grid-template-columns:180px 1fr 260px;
  align-items:center;
  gap:20px;
  max-width:1040px;
  margin:20px auto 0;
  padding:24px 28px;
  border:1px solid #e5dfd2;
  background:#f4f1ea;
  box-shadow:var(--shadow);
}
.rsvp-banner-art img{width:120px;margin:0 auto;opacity:.85}
.rsvp-banner-copy{text-align:center}
.rsvp-banner-copy h3{font-size:2rem;text-transform:uppercase}
.rsvp-banner-copy p{margin:4px 0 0;color:var(--muted);font-family:var(--sans);font-size:.95rem}
.rsvp-banner-action{text-align:right}
.rsvp-banner-action a{
  min-width:220px;
  padding:14px 22px;
  background:var(--olive);
  color:#fff;
  border-radius:6px;
}

.story{background:#f3f0e8}
.story-panel{
  display:grid;
  grid-template-columns:1.05fr .95fr;
  max-width:1000px;
  margin:42px auto 0;
  background:#fff;
  box-shadow:var(--shadow);
}
.story-photo{
  min-height:420px;
  background:url("assets/card-story.jpg") center/cover no-repeat;
  filter:saturate(1.03) brightness(1.03);
}
.story-copy{
  display:grid;
  align-content:center;
  padding:56px;
}
.signature{
  color:var(--gold);
  font:2.85rem var(--script);
}

.day{background:var(--paper)}
.timeline{
  max-width:820px;
  margin:44px auto 0;
}
.timeline article{
  display:grid;
  grid-template-columns:100px 1fr;
  gap:38px;
  padding:0 0 32px;
}
.timeline time{
  color:var(--gold);
  font:600 1.3rem var(--serif);
  text-align:right;
}
.timeline p{color:var(--muted)}

.details{background:#efebe1}
.detail-grid,
.stay-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px;
  max-width:1080px;
  margin:42px auto 0;
}
.detail-grid article,
.stay-grid article{
  padding:34px 28px;
  border:1px solid #ddd7c9;
  background:#fffdf9;
  text-align:center;
  box-shadow:0 8px 20px rgba(40,40,30,.04);
}
.detail-grid small,
.stay-grid small{
  display:block;
  margin-bottom:10px;
  color:var(--gold);
  font:600 .73rem var(--sans);
  letter-spacing:.16em;
  text-transform:uppercase;
}
.detail-grid a,
.stay-grid a{
  text-decoration:none;
  color:var(--olive);
  font:600 .78rem var(--sans);
  letter-spacing:.08em;
  text-transform:uppercase;
}

.stay{background:var(--paper)}
.gifts{
  background:var(--olive-dark);
  color:#fff;
}
.gifts h2,.gifts p{color:#fff}
.gifts .sprig{
  filter:brightness(0) saturate(100%) invert(84%) sepia(32%) saturate(529%) hue-rotate(356deg) brightness(97%) contrast(92%);
}

.faq{background:#efebe1}
.accordion{
  max-width:840px;
  margin:40px auto 0;
  border-top:1px solid var(--line);
}
details{
  border-bottom:1px solid var(--line);
  padding:18px 0;
}
summary{
  cursor:pointer;
  list-style:none;
  font-size:1.35rem;
  font-weight:600;
  color:var(--olive-dark);
}

.rsvp{background:var(--paper)}
.form{
  max-width:840px;
  margin:34px auto 0;
  padding:46px;
  border:1px solid #dcd5c7;
  background:#f4f0e7;
  box-shadow:var(--shadow);
}
.form-row,
.choices{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
}
.form label,
fieldset{
  display:block;
  margin:0 0 20px;
}
fieldset{border:0;padding:0}
legend,
.form label{
  color:var(--olive-dark);
  font:600 .78rem var(--sans);
  letter-spacing:.04em;
}
.form input,
.form select,
.form textarea{
  width:100%;
  margin-top:8px;
  padding:13px 14px;
  border:1px solid #cbc3b4;
  color:var(--ink);
  background:#fff;
  font:400 1rem var(--sans);
}
.form input:focus,
.form select:focus,
.form textarea:focus{
  outline:2px solid rgba(195,164,79,.28);
  border-color:var(--gold);
}
.choices label{margin:0}
.choices input{position:absolute;opacity:0}
.choices span{
  display:grid;
  place-items:center;
  min-height:54px;
  border:1px solid #cbc3b4;
  background:#fff;
  cursor:pointer;
  font:500 .94rem var(--sans);
}
.choices input:checked + span{
  background:var(--olive);
  color:#fff;
  border-color:var(--olive);
}
.submit{
  width:100%;
  padding:16px 20px;
  border:0;
  background:var(--olive);
  color:#fff;
  border-radius:6px;
  cursor:pointer;
}
#status{
  margin:16px 0 0;
  text-align:center;
  font:500 .78rem var(--sans);
}
.form-error{color:#a1372f}
.form-success{color:#3f6c40}

footer{
  padding:40px 20px;
  background:#ede7dc;
  text-align:center;
  text-transform:uppercase;
  letter-spacing:.14em;
}
footer .sprig{width:72px}
footer p{margin:4px 0;font-size:1rem}
footer span{color:var(--olive-dark)}

.thanks{
  position:fixed;
  inset:0;
  z-index:100;
  display:grid;
  place-items:center;
  padding:20px;
  visibility:hidden;
  opacity:0;
  background:rgba(35,45,30,.82);
  transition:.25s;
}
.thanks.show{visibility:visible;opacity:1}
.thanks > div{
  max-width:560px;
  padding:46px 36px;
  background:#fffdf9;
  text-align:center;
  box-shadow:var(--shadow);
}

.reveal{opacity:0;transform:translateY(20px);transition:.7s}
.reveal.visible{opacity:1;transform:none}

@media (max-width: 980px){
  .menu{display:block}
  .site-header nav{
    position:absolute;
    top:70px;
    right:16px;
    display:none;
    flex-direction:column;
    align-items:flex-start;
    gap:0;
    padding:16px 20px;
    color:var(--olive-dark);
    background:rgba(255,253,249,.98);
    box-shadow:var(--shadow);
  }
  .site-header nav.open{display:flex}
  .site-header nav a{padding:10px 0}
  .feature-grid,
  .detail-grid,
  .stay-grid{grid-template-columns:1fr;max-width:580px}
  .rsvp-banner{grid-template-columns:1fr;text-align:center}
  .rsvp-banner-action{text-align:center}
  .story-panel{grid-template-columns:1fr}
  .story-photo{min-height:350px}
}
@media (max-width: 700px){
  body{font-size:16px}
  .section{padding:72px 16px}
  .site-header{height:64px;padding:0 16px}
  .brand{font-size:1.1rem}
  .hero{
    min-height:690px;
    padding-top:92px;
    background-position:54% center;
  }
  .hero-panel{padding:34px 22px 28px;border-radius:24px}
  .hero h1{font-size:clamp(3.2rem,18vw,5rem)}
  .hero-line{font-size:1rem}
  .date-block strong{font-size:1.35rem}
  .feature-card img{height:220px}
  .timeline article{grid-template-columns:68px 1fr;gap:22px}
  .form{padding:28px 20px}
  .form-row,.choices{grid-template-columns:1fr}
  .story-copy{padding:36px 24px}
}
@media (prefers-reduced-motion: reduce){
  *{scroll-behavior:auto !important;transition:none !important}
}


/* V3.5 botanical ornament */
.sprig {
  width: 118px;
}

.mini-sprig {
  width: 82px;
}

.hero-panel .sprig,
.rsvp-banner-art .sprig {
  width: 128px;
}


/* Project Evergreen V3.6 - regular botanical sizing */
.sprig {
  width: 74px;
}

.mini-sprig {
  width: 74px;
  margin: 10px auto 14px;
}

.hero-panel .sprig,
.rsvp-banner-art .sprig {
  width: 74px;
}

.feature-copy .mini-sprig {
  width: 74px;
  max-width: 74px;
}


/* Project Evergreen V3.7 - remove feature-card botanical dividers */
.feature-copy h3 {
  margin-bottom: 14px;
}

.feature-copy p {
  margin-top: 0;
}


/* Project Evergreen V3.8 content finalisation */
.timeline article:last-child {
  padding-bottom: 0;
}

.timeline h3 {
  margin-bottom: 3px;
}


/* Project Evergreen V4 travel, mobile and RSVP refinements */
.travel-layout {
  max-width: 1120px;
  margin: 46px auto 0;
}

.travel-subheading {
  margin-bottom: 24px;
  text-align: center;
  color: var(--olive-dark);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.hotel-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.travel-card {
  padding: 30px;
  border: 1px solid #ddd7c9;
  background: #fffdf9;
  text-align: center;
  box-shadow: 0 8px 20px rgba(40,40,30,.04);
}

.travel-card small {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font: 600 .72rem var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
}

.travel-card h3,
.taxi-card h3 {
  margin-bottom: 8px;
  font-size: 1.55rem;
}

.travel-card p {
  color: var(--muted);
}

.contact-line a,
.taxi-card a {
  color: var(--olive);
  font: 600 .95rem var(--sans);
  text-decoration: none;
}

.travel-button {
  display: inline-flex;
  margin-top: 8px;
  padding: 11px 18px;
  border: 1px solid #cfc7b7;
  color: var(--olive-dark);
  font: 600 .72rem var(--sans);
  letter-spacing: .1em;
  text-decoration: none;
  text-transform: uppercase;
}

.taxi-section {
  margin-top: 52px;
}

.taxi-note {
  margin: -12px auto 22px;
  max-width: 650px;
  color: var(--muted);
  text-align: center;
}

.taxi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.taxi-card {
  padding: 24px 15px;
  border: 1px solid #ddd7c9;
  background: #f7f3ea;
  text-align: center;
}

.submit:disabled {
  cursor: wait;
  opacity: .64;
}

@media (max-width: 980px) {
  .taxi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .hotel-grid,
  .taxi-grid {
    grid-template-columns: 1fr;
  }

  .travel-card,
  .taxi-card {
    padding: 24px 18px;
  }

  .site-header nav {
    width: min(320px, calc(100% - 32px));
  }

  .feature-grid {
    gap: 16px;
  }

  .feature-card {
    max-width: 100%;
  }

  .timeline article {
    align-items: start;
  }

  .form input,
  .form select,
  .form textarea,
  .submit {
    min-height: 50px;
    font-size: 16px;
  }

  .choices span {
    min-height: 58px;
  }
}


/* Project Evergreen V4.1 — wax seal opening gate + confetti */
body.locked {
  overflow: hidden;
}

.confetti-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 120;
}

.entry-gate {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(rgba(32,42,25,.18), rgba(34,43,28,.28)),
    url("assets/hero-v34.jpg") center/cover no-repeat;
  transition: opacity .55s ease, visibility .55s ease;
}

.entry-gate.hidden {
  opacity: 0;
  visibility: hidden;
}

.gate-backdrop {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(255,255,255,.06), rgba(255,255,255,.08));
}

.gate-card {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  padding: 54px 28px 42px;
  text-align: center;
  background: rgba(255,252,245,.68);
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 34px;
  box-shadow: 0 28px 70px rgba(32,40,28,.18);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.gate-kicker {
  margin: 0 0 16px;
  color: #465047;
  font: 600 .84rem var(--sans);
  letter-spacing: .24em;
  text-transform: uppercase;
}

.gate-title {
  margin: 0;
  color: #1d1d1b;
  font-family: var(--script);
  font-size: clamp(3.8rem, 9vw, 6.8rem);
  line-height: .9;
}

.gate-title span {
  color: var(--olive);
}

.gate-copy {
  margin: 18px 0 16px;
  color: #3d4039;
  font-size: 1.22rem;
}

.gate-date {
  margin: 0;
  color: #2f332d;
  font-size: 1.8rem;
  letter-spacing: .02em;
}

.gate-place {
  margin: 6px 0 0;
  color: #535850;
  font: 500 1rem var(--sans);
}

.wax-seal {
  position: relative;
  margin: 28px auto 12px;
  width: 122px;
  height: 122px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  color: #fff7ef;
  font: 700 1.45rem var(--serif);
  letter-spacing: .06em;
  background:
    radial-gradient(circle at 32% 28%, #b8433a 0, #b8433a 16%, #9c2f28 36%, #85231f 60%, #6e1917 100%);
  box-shadow:
    inset 0 6px 12px rgba(255,255,255,.16),
    inset 0 -10px 18px rgba(0,0,0,.22),
    0 16px 26px rgba(78,18,16,.24);
  transition: transform .18s ease, box-shadow .18s ease;
}

.wax-seal::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 32%, rgba(255,255,255,.18), transparent 34%),
    repeating-conic-gradient(from 0deg,
      rgba(255,255,255,.06) 0 12deg,
      rgba(0,0,0,.06) 12deg 24deg);
  mix-blend-mode: screen;
  opacity: .48;
}

.wax-seal::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 7px rgba(122,24,22,.24),
    inset 0 0 0 14px rgba(255,255,255,.05);
}

.wax-seal span {
  position: relative;
  z-index: 1;
  display: inline-block;
  transform: translateY(1px);
}

.wax-seal:hover,
.wax-seal:focus-visible {
  transform: scale(1.05);
  box-shadow:
    inset 0 6px 12px rgba(255,255,255,.16),
    inset 0 -10px 18px rgba(0,0,0,.22),
    0 18px 30px rgba(78,18,16,.34);
  outline: none;
}

.gate-instruction {
  margin: 0;
  color: #5d6258;
  font: 500 .95rem var(--sans);
}

@media (max-width: 700px) {
  .gate-card {
    padding: 44px 20px 34px;
    border-radius: 26px;
  }

  .gate-copy {
    font-size: 1.05rem;
  }

  .gate-date {
    font-size: 1.4rem;
  }

  .wax-seal {
    width: 108px;
    height: 108px;
    font-size: 1.25rem;
  }
}


/* Project Evergreen V4.2 — premium wax-seal opening invitation */
.entry-gate {
  overflow: hidden;
  perspective: 1600px;
}

.invitation-shell {
  position: relative;
  z-index: 2;
  width: min(440px, calc(100vw - 34px));
  display: grid;
  gap: 16px;
  place-items: center;
}

.invitation-heading {
  text-align: center;
}

.invitation-heading .gate-kicker {
  margin: 0;
  color: #efe7d4;
  font: 600 .86rem var(--sans);
  letter-spacing: .34em;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(27,33,23,.22);
}

.invitation-heading .gate-instruction {
  margin: 10px 0 0;
  color: rgba(255,248,236,.86);
  font: 500 .98rem var(--sans);
  letter-spacing: .02em;
}

.invitation-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 0.74;
  border-radius: 26px;
  background:
    radial-gradient(circle at 20% 12%, rgba(255,255,255,.75), transparent 26%),
    linear-gradient(180deg, #f7f3ec 0%, #f1ece2 100%);
  box-shadow:
    0 26px 50px rgba(36,46,29,.18),
    inset 0 0 0 1px rgba(168,154,127,.34);
  overflow: hidden;
}

.invitation-cover::before,
.invitation-cover::after {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 18px;
  border: 1px solid rgba(194,177,142,.35);
  pointer-events: none;
}

.invitation-cover::after {
  inset: 28px;
  border-color: rgba(229,220,201,.7);
}

.cover-door {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50.2%;
  background:
    linear-gradient(180deg, rgba(255,255,255,.18), rgba(0,0,0,.02)),
    linear-gradient(180deg, #f9f5ee 0%, #f2ede4 100%);
  transition: transform 1.05s cubic-bezier(.2,.72,.06,1), opacity .8s ease;
  box-shadow: inset 0 0 0 1px rgba(182,166,137,.2);
}

.cover-left {
  left: 0;
  transform-origin: left center;
  border-right: 1px solid rgba(199,183,153,.3);
}

.cover-right {
  right: 0;
  transform-origin: right center;
  border-left: 1px solid rgba(199,183,153,.3);
}

.emboss-column {
  position: absolute;
  top: 68px;
  bottom: 68px;
  width: 84px;
  left: 50%;
  transform: translateX(-50%);
}

.emboss-column::before {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 50%;
  width: 6px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(232,223,208,.95), rgba(222,211,191,.95));
  box-shadow:
    inset 1px 1px 2px rgba(255,255,255,.7),
    inset -1px -1px 2px rgba(171,154,126,.28);
}

.leaf {
  position: absolute;
  display: block;
  width: 42px;
  height: 22px;
  border-radius: 100% 0 100% 0 / 100% 0 100% 0;
  background: linear-gradient(145deg, rgba(244,238,228,.96), rgba(218,206,185,.96));
  box-shadow:
    inset 1px 1px 2px rgba(255,255,255,.72),
    inset -1px -1px 2px rgba(164,148,120,.28);
}

.leaf::after {
  content: "";
  position: absolute;
  inset: 45% 18% auto 18%;
  height: 1px;
  background: rgba(183,168,142,.42);
  transform: rotate(-32deg);
}

.cover-left .leaf {
  right: 34px;
  transform-origin: right center;
}

.cover-right .leaf {
  left: 34px;
  transform: scaleX(-1);
  transform-origin: left center;
}

.leaf-1 { top: 0; transform: rotate(-28deg); }
.leaf-2 { top: 18%; transform: rotate(-12deg); }
.leaf-3 { top: 40%; transform: rotate(-3deg); }
.leaf-4 { top: 62%; transform: rotate(12deg); }
.leaf-5 { top: 82%; transform: rotate(26deg); }

.cover-right .leaf-1 { transform: scaleX(-1) rotate(-28deg); }
.cover-right .leaf-2 { transform: scaleX(-1) rotate(-12deg); }
.cover-right .leaf-3 { transform: scaleX(-1) rotate(-3deg); }
.cover-right .leaf-4 { transform: scaleX(-1) rotate(12deg); }
.cover-right .leaf-5 { transform: scaleX(-1) rotate(26deg); }

.seal-ribbon {
  position: absolute;
  background:
    linear-gradient(180deg, rgba(209,188,152,.95), rgba(189,165,119,.95));
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,.55),
    inset 0 -1px 1px rgba(110,96,72,.2);
}

.seal-ribbon-h {
  left: 36px;
  right: 36px;
  top: 50%;
  height: 22px;
  transform: translateY(-50%);
}

.seal-ribbon-v {
  top: 36px;
  bottom: 36px;
  left: 50%;
  width: 22px;
  transform: translateX(-50%);
}

.wax-seal.premium {
  position: absolute;
  left: 50%;
  top: 50%;
  margin: 0;
  width: 126px;
  height: 126px;
  transform: translate(-50%, -50%);
  z-index: 4;
  font-size: 1.55rem;
  letter-spacing: .08em;
  background:
    radial-gradient(circle at 34% 28%, #c95e57 0, #b7443d 18%, #a1322e 44%, #871f1d 73%, #731715 100%);
  box-shadow:
    inset 0 10px 14px rgba(255,255,255,.16),
    inset 0 -14px 22px rgba(0,0,0,.25),
    0 16px 28px rgba(98,30,25,.28);
}

.wax-seal.premium::before {
  inset: 8px;
  background:
    radial-gradient(circle at 35% 32%, rgba(255,255,255,.18), transparent 35%),
    repeating-conic-gradient(from 0deg, rgba(255,255,255,.08) 0 12deg, rgba(0,0,0,.06) 12deg 24deg);
}

.wax-seal.premium::after {
  box-shadow:
    inset 0 0 0 7px rgba(122,24,22,.22),
    inset 0 0 0 13px rgba(255,255,255,.06);
}

.invitation-shadow {
  width: 76%;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(32,40,28,.28), rgba(32,40,28,0) 72%);
  filter: blur(9px);
}

.entry-gate.opening .wax-seal.premium {
  animation: sealLift .6s ease forwards;
}

.entry-gate.opening .cover-left {
  transform: translateX(-105%) rotateY(24deg);
  opacity: 0;
}

.entry-gate.opening .cover-right {
  transform: translateX(105%) rotateY(-24deg);
  opacity: 0;
}

.entry-gate.opening .seal-ribbon-h,
.entry-gate.opening .seal-ribbon-v {
  opacity: 0;
  transition: opacity .45s ease;
}

.entry-gate.opening .invitation-heading {
  opacity: 0;
  transform: translateY(-10px);
  transition: all .4s ease;
}

.entry-gate.hidden {
  opacity: 0;
  visibility: hidden;
}

@keyframes sealLift {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  55% { transform: translate(-50%, -56%) scale(1.08); opacity: 1; }
  100% { transform: translate(-50%, -70%) scale(.82); opacity: 0; }
}

@media (max-width: 700px) {
  .invitation-shell {
    width: min(360px, calc(100vw - 28px));
  }

  .invitation-cover {
    border-radius: 22px;
  }

  .emboss-column {
    width: 72px;
    top: 58px;
    bottom: 58px;
  }

  .leaf {
    width: 36px;
    height: 18px;
  }

  .cover-left .leaf { right: 29px; }
  .cover-right .leaf { left: 29px; }

  .seal-ribbon-h {
    left: 28px;
    right: 28px;
    height: 18px;
  }

  .seal-ribbon-v {
    top: 28px;
    bottom: 28px;
    width: 18px;
  }

  .wax-seal.premium {
    width: 112px;
    height: 112px;
    font-size: 1.35rem;
  }
}


/* Project Evergreen V4.3 — luxury envelope flap, seal crack and realistic wax */
.invitation-cover {
  overflow: visible;
  transform-style: preserve-3d;
}

.envelope-flap {
  position: absolute;
  z-index: 3;
  left: 30px;
  right: 30px;
  top: 22px;
  height: 43%;
  transform-origin: top center;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  background:
    linear-gradient(180deg, rgba(255,255,255,.55), rgba(234,225,210,.96)),
    repeating-linear-gradient(
      135deg,
      rgba(255,255,255,.12) 0 2px,
      rgba(187,169,139,.06) 2px 4px
    );
  border-top: 1px solid rgba(255,255,255,.7);
  filter: drop-shadow(0 8px 10px rgba(67,57,39,.10));
  backface-visibility: hidden;
  transition:
    transform 1.18s cubic-bezier(.18,.74,.05,1),
    opacity .45s ease .55s;
}

.envelope-flap::after {
  content: "";
  position: absolute;
  inset: 0;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.8),
    inset 0 -16px 24px rgba(133,111,76,.08);
}

.wax-seal.premium {
  overflow: visible;
  isolation: isolate;
  background:
    radial-gradient(circle at 32% 24%, rgba(255,205,195,.34), transparent 16%),
    radial-gradient(circle at 66% 70%, rgba(68,6,9,.20), transparent 24%),
    radial-gradient(circle at 48% 44%, #b94c47 0 30%, #9f302d 52%, #7d1e1d 76%, #641414 100%);
  border: 1px solid rgba(76,8,10,.48);
  box-shadow:
    inset 8px 7px 12px rgba(255,221,213,.12),
    inset -12px -14px 20px rgba(58,6,7,.34),
    inset 0 0 0 5px rgba(130,27,26,.28),
    inset 0 0 0 12px rgba(255,255,255,.025),
    0 18px 30px rgba(80,18,18,.32);
}

.wax-seal.premium::before {
  content: "";
  position: absolute;
  inset: -7px;
  z-index: -1;
  border-radius: 47% 53% 48% 52% / 52% 45% 55% 48%;
  background:
    radial-gradient(circle at 18% 30%, #8f2624 0 12%, transparent 13%),
    radial-gradient(circle at 82% 26%, #a63733 0 11%, transparent 12%),
    radial-gradient(circle at 77% 78%, #7e1c1b 0 12%, transparent 13%),
    radial-gradient(circle at 20% 78%, #a83b36 0 13%, transparent 14%),
    linear-gradient(145deg, #b64640, #771b1a);
  filter: drop-shadow(0 4px 5px rgba(62,12,13,.22));
  opacity: .98;
}

.wax-seal.premium::after {
  content: "";
  position: absolute;
  inset: 11px;
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 2px rgba(255,223,216,.14),
    inset 0 0 0 7px rgba(79,8,10,.14);
  background:
    repeating-conic-gradient(
      from 8deg,
      rgba(255,255,255,.028) 0 9deg,
      rgba(65,4,6,.025) 9deg 18deg
    );
  pointer-events: none;
}

.seal-face {
  position: relative;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: auto;
  border-radius: 50%;
  color: #f8ddd7;
  font: 700 1.45rem var(--serif);
  letter-spacing: .08em;
  text-shadow:
    0 1px 0 rgba(255,255,255,.16),
    0 -1px 0 rgba(62,5,7,.4);
  box-shadow:
    inset 0 2px 4px rgba(255,255,255,.1),
    inset 0 -3px 6px rgba(55,4,6,.24);
}

.seal-face::before,
.seal-face::after {
  content: "•";
  position: absolute;
  top: 50%;
  color: rgba(246,214,206,.48);
  font-size: .75rem;
  transform: translateY(-50%);
}

.seal-face::before { left: 8px; }
.seal-face::after { right: 8px; }

.seal-crack {
  position: absolute;
  z-index: 8;
  display: block;
  width: 2px;
  height: 0;
  background: rgba(77,6,8,.9);
  box-shadow: 1px 0 0 rgba(255,168,153,.08);
  transform-origin: top center;
  opacity: 0;
}

.crack-one {
  left: 49%;
  top: 15px;
  transform: rotate(8deg);
}

.crack-two {
  left: 41%;
  top: 44px;
  transform: rotate(-35deg);
}

.crack-three {
  right: 37%;
  top: 48px;
  transform: rotate(42deg);
}

.entry-gate.cracking .seal-crack {
  opacity: 1;
}

.entry-gate.cracking .crack-one {
  animation: crackGrowOne .34s ease forwards;
}

.entry-gate.cracking .crack-two {
  animation: crackGrowTwo .32s ease .08s forwards;
}

.entry-gate.cracking .crack-three {
  animation: crackGrowThree .30s ease .13s forwards;
}

.entry-gate.cracking .wax-seal.premium {
  animation: sealPulse .42s cubic-bezier(.2,.9,.3,1) forwards;
}

.entry-gate.opening .envelope-flap {
  transform: rotateX(-178deg);
  opacity: 0;
}

.entry-gate.opening .cover-left {
  transform: translateX(-108%) rotateY(38deg);
  opacity: 0;
  transition-duration: 1.25s;
}

.entry-gate.opening .cover-right {
  transform: translateX(108%) rotateY(-38deg);
  opacity: 0;
  transition-duration: 1.25s;
}

.entry-gate.opening .wax-seal.premium {
  animation: sealBreakAway .82s cubic-bezier(.18,.74,.05,1) forwards;
}

.entry-gate.opening .invitation-cover {
  animation: invitationLift 1.5s ease forwards;
}

@keyframes sealPulse {
  0% { transform: translate(-50%, -50%) scale(1); }
  45% { transform: translate(-50%, -50%) scale(1.07); }
  72% { transform: translate(-50%, -50%) scale(.97); }
  100% { transform: translate(-50%, -50%) scale(1); }
}

@keyframes sealBreakAway {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    filter: blur(0);
  }
  25% {
    transform: translate(-50%, -54%) scale(1.08) rotate(-2deg);
  }
  58% {
    transform: translate(-50%, -66%) scale(.95) rotate(4deg);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -95%) scale(.62) rotate(10deg);
    opacity: 0;
    filter: blur(1px);
  }
}

@keyframes invitationLift {
  0% { transform: translateY(0) scale(1); }
  70% { transform: translateY(-5px) scale(1.01); }
  100% { transform: translateY(-12px) scale(1.018); }
}

@keyframes crackGrowOne {
  from { height: 0; }
  to { height: 42px; }
}

@keyframes crackGrowTwo {
  from { height: 0; }
  to { height: 29px; }
}

@keyframes crackGrowThree {
  from { height: 0; }
  to { height: 25px; }
}

@media (max-width: 700px) {
  .envelope-flap {
    left: 22px;
    right: 22px;
    top: 18px;
  }

  .seal-face {
    width: 64px;
    height: 64px;
    font-size: 1.25rem;
  }
}


/* Project Evergreen V4.4 — entry seal removed */
body {
  overflow-x: hidden;
}

.entry-gate {
  display: none !important;
}


/* =========================================================
   PROJECT EVERGREEN V5.0 — FULL-VIEWPORT LUXURY ENVELOPE
========================================================= */
body.intro-active{overflow:hidden}
.luxury-envelope-intro{position:fixed;inset:0;z-index:2000;overflow:hidden;background:#eee9df;opacity:1;visibility:visible;transition:opacity 1.05s cubic-bezier(.2,.7,.2,1),visibility 1.05s ease}
.luxury-envelope-intro.is-fading{opacity:0;visibility:hidden;pointer-events:none}
.luxury-envelope-paper{position:absolute;inset:0;overflow:hidden;background:radial-gradient(circle at 23% 16%,rgba(255,255,255,.78),transparent 27%),radial-gradient(circle at 77% 76%,rgba(194,178,146,.12),transparent 30%),linear-gradient(145deg,#fbf8f1 0%,#f2ecdf 48%,#e9dfcf 100%);box-shadow:inset 0 0 0 1px rgba(150,132,96,.20),inset 0 -42px 75px rgba(160,140,103,.08);transform:scale(1.025);animation:evergreenEnvelopeSettle 900ms cubic-bezier(.18,.76,.16,1) forwards}
.paper-grain,.flap-paper-grain{position:absolute;inset:0;pointer-events:none;opacity:.48;mix-blend-mode:normal;background:repeating-linear-gradient(87deg,rgba(114,97,69,.018) 0 1px,transparent 1px 4px),repeating-linear-gradient(4deg,rgba(255,255,255,.10) 0 1px,transparent 1px 5px)}
.luxury-envelope-paper::before{content:"";position:absolute;inset:clamp(18px,2.5vw,44px);z-index:10;border:1px solid rgba(177,155,113,.22);border-radius:10px;pointer-events:none}
.luxury-envelope-paper::after{content:"";position:absolute;inset:clamp(28px,3.5vw,62px);z-index:10;border:1px solid rgba(255,255,255,.48);border-radius:8px;pointer-events:none}
.envelope-back-fold{position:absolute;inset:0;z-index:2;pointer-events:none}
.envelope-back-left{clip-path:polygon(0 0,55% 54%,0 100%);background:linear-gradient(135deg,rgba(255,255,255,.66),rgba(225,214,195,.94));filter:drop-shadow(12px 0 18px rgba(121,103,72,.06))}
.envelope-back-right{clip-path:polygon(100% 0,45% 54%,100% 100%);background:linear-gradient(225deg,rgba(255,255,255,.66),rgba(225,214,195,.94));filter:drop-shadow(-12px 0 18px rgba(121,103,72,.06))}
.envelope-bottom-fold{position:absolute;inset:0;z-index:4;clip-path:polygon(0 100%,50% 44%,100% 100%);background:linear-gradient(180deg,#eee5d7 0%,#dbceb9 100%);box-shadow:inset 0 16px 24px rgba(255,255,255,.24);pointer-events:none}
.envelope-top-flap{position:absolute;inset:0;z-index:7;transform-origin:50% 0%;transform-style:preserve-3d;backface-visibility:hidden;clip-path:polygon(0 0,100% 0,50% 62%);background:radial-gradient(circle at 20% 8%,rgba(255,255,255,.84),transparent 26%),linear-gradient(180deg,#fdfaf4 0%,#f1e8da 100%);box-shadow:inset 0 2px 0 rgba(255,255,255,.78),inset 0 -32px 44px rgba(157,137,101,.09),0 14px 34px rgba(108,89,58,.11);transition:transform 1.55s cubic-bezier(.16,.76,.12,1),filter 1.3s ease}
.envelope-top-flap::after{content:"";position:absolute;inset:0;clip-path:polygon(0 0,100% 0,50% 62%);border:1px solid rgba(175,152,108,.14);background:linear-gradient(180deg,rgba(255,255,255,.15),transparent 72%);pointer-events:none}
.gold-wax-seal{position:absolute;left:50%;top:54.5%;z-index:12;width:clamp(112px,11vw,158px);height:clamp(112px,11vw,158px);display:grid;place-items:center;padding:0;border:1px solid rgba(122,88,20,.46);border-radius:48% 52% 49% 51%/51% 48% 52% 49%;cursor:pointer;transform:translate(-50%,-50%);color:#fff6cc;background:radial-gradient(circle at 31% 25%,rgba(255,255,255,.92) 0%,rgba(255,255,255,.28) 12%,transparent 24%),radial-gradient(circle at 69% 76%,rgba(94,63,6,.36),transparent 27%),conic-gradient(from 12deg,#fff0a9,#ddb84c,#a97617,#d3a636,#f6dd82,#bd8620,#fff0a9);box-shadow:inset 0 5px 6px rgba(255,255,255,.58),inset 0 -12px 18px rgba(104,72,13,.30),inset 0 0 0 7px rgba(166,119,24,.34),inset 0 0 0 17px rgba(255,240,171,.14),0 18px 36px rgba(115,82,21,.28);transition:transform .25s ease,filter .25s ease,box-shadow .25s ease,opacity .55s ease}
.gold-wax-seal::before{content:"";position:absolute;inset:-7px;z-index:-1;border-radius:53% 47% 54% 46%/47% 55% 45% 53%;background:radial-gradient(circle at 20% 22%,#e4be54 0 12%,transparent 13%),radial-gradient(circle at 82% 28%,#d2a73d 0 11%,transparent 12%),radial-gradient(circle at 76% 80%,#b98620 0 12%,transparent 13%),radial-gradient(circle at 22% 78%,#efce68 0 13%,transparent 14%),conic-gradient(from 0deg,#f4da7c,#ad7919,#e0b94e,#f4da7c);filter:drop-shadow(0 5px 7px rgba(112,77,13,.22))}
.gold-wax-seal::after{content:"";position:absolute;inset:14px;border-radius:50%;background:repeating-conic-gradient(from 0deg,rgba(255,255,255,.12) 0 9deg,rgba(132,93,18,.08) 9deg 18deg);box-shadow:inset 0 0 0 1px rgba(255,247,205,.55),inset 0 0 0 8px rgba(137,96,17,.09);pointer-events:none}
.seal-monogram{position:relative;z-index:2;display:inline-flex;align-items:center;gap:.08em;color:#fff5c9;font:700 clamp(1.1rem,2.2vw,1.55rem) var(--serif);letter-spacing:.06em;text-shadow:0 1px 0 rgba(255,255,255,.30),0 -1px 0 rgba(117,80,14,.44)}
.seal-monogram span{font-family:var(--script);font-size:1.18em}
.gold-wax-seal:hover,.gold-wax-seal:focus-visible{filter:brightness(1.04) saturate(1.05);transform:translate(-50%,-50%) scale(1.045);box-shadow:inset 0 5px 6px rgba(255,255,255,.64),inset 0 -12px 18px rgba(104,72,13,.30),inset 0 0 0 7px rgba(166,119,24,.34),inset 0 0 0 17px rgba(255,240,171,.14),0 22px 42px rgba(115,82,21,.33);outline:none}
.seal-prompt{position:absolute;z-index:20;left:50%;bottom:clamp(22px,3.5vh,46px);margin:0;transform:translateX(-50%);color:rgba(77,73,64,.78);font:600 .78rem var(--sans);letter-spacing:.16em;text-transform:uppercase;white-space:nowrap;transition:opacity .35s ease}
.luxury-envelope-intro.is-opening .envelope-top-flap{transform:rotateX(-176deg);filter:brightness(.98)}
.luxury-envelope-intro.is-opening .gold-wax-seal{transform:translate(-50%,-50%) translateY(-10px)}
.luxury-envelope-intro.is-opening .seal-prompt{opacity:0}
.luxury-envelope-intro.is-dissolving .luxury-envelope-paper{transform:scale(1.035);opacity:0;filter:blur(2px);transition:opacity 1.05s ease,transform 1.05s ease,filter 1.05s ease}
@keyframes evergreenEnvelopeSettle{from{opacity:0;transform:scale(1.055)}to{opacity:1;transform:scale(1)}}
@media(max-width:700px){.luxury-envelope-paper::before{inset:12px}.luxury-envelope-paper::after{inset:21px}.gold-wax-seal{top:55%}.seal-prompt{bottom:20px;font-size:.68rem;letter-spacing:.12em}}
@media(prefers-reduced-motion:reduce){.luxury-envelope-intro,.luxury-envelope-paper,.envelope-top-flap,.gold-wax-seal{animation-duration:1ms!important;transition-duration:1ms!important}}


/* =========================================================
   PROJECT EVERGREEN V5.1 — REALISM + FASTER REVEAL
   Inspired by the uploaded reference video:
   embossed ivory stock, shallow triangular flap, metallic wax,
   and a quick reveal once the flap has opened.
========================================================= */

/* Softer, warmer ivory stock with more believable paper depth. */
.luxury-envelope-intro {
  background:
    radial-gradient(circle at 50% 12%, rgba(255,255,255,.92), transparent 29%),
    linear-gradient(180deg, #f5f1e8 0%, #ebe3d6 100%);
}

.luxury-envelope-paper {
  background:
    radial-gradient(circle at 18% 12%, rgba(255,255,255,.94), transparent 22%),
    radial-gradient(circle at 78% 82%, rgba(173,150,110,.10), transparent 31%),
    linear-gradient(145deg, #fffdf8 0%, #f6efe4 48%, #e9decd 100%);
  box-shadow:
    inset 0 0 0 1px rgba(142,122,88,.18),
    inset 0 -60px 100px rgba(151,129,91,.08),
    0 0 80px rgba(91,77,52,.08);
}

.paper-grain,
.flap-paper-grain {
  opacity: .7;
  background:
    repeating-linear-gradient(
      92deg,
      rgba(102,82,53,.018) 0 1px,
      transparent 1px 3px
    ),
    repeating-linear-gradient(
      2deg,
      rgba(255,255,255,.18) 0 1px,
      transparent 1px 4px
    ),
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.45), transparent 24%);
}

/* Reference video uses a shallower, cleaner closing flap. */
.envelope-top-flap {
  clip-path: polygon(0 0, 100% 0, 50% 56%);
  background:
    radial-gradient(circle at 22% 8%, rgba(255,255,255,.92), transparent 24%),
    linear-gradient(180deg, #fffdf8 0%, #f2e9dc 100%);
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,.9),
    inset 0 -28px 42px rgba(144,122,84,.10),
    0 17px 34px rgba(96,78,49,.12);
}

.envelope-top-flap::after {
  clip-path: polygon(0 0, 100% 0, 50% 56%);
}

/* Raised botanical embossing like the invitation in the reference. */
.embossed-botanicals {
  position: absolute;
  inset: 5% 6%;
  z-index: 6;
  pointer-events: none;
  opacity: .88;
  filter: drop-shadow(1px 1px 0 rgba(255,255,255,.75))
          drop-shadow(-1px -1px 0 rgba(157,139,107,.12));
}

.stem {
  position: absolute;
  display: block;
  width: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, #e5dac8, #fdf9f2 46%, #d4c5ae);
  box-shadow:
    inset 1px 0 1px rgba(255,255,255,.8),
    inset -1px 0 1px rgba(139,119,85,.16);
  transform-origin: bottom center;
}

.stem-a {
  height: 72%;
  left: 22%;
  bottom: 5%;
  transform: rotate(-9deg);
}

.stem-b {
  height: 78%;
  right: 24%;
  bottom: 2%;
  transform: rotate(8deg);
}

.stem-c {
  height: 48%;
  left: 49%;
  bottom: 7%;
  transform: rotate(2deg);
}

.emboss-leaf {
  position: absolute;
  width: clamp(46px, 6vw, 95px);
  aspect-ratio: 1.8 / 1;
  border-radius: 100% 0 100% 0 / 100% 0 100% 0;
  background:
    linear-gradient(145deg, #fbf7ef 0%, #ded1bd 100%);
  box-shadow:
    inset 2px 2px 4px rgba(255,255,255,.84),
    inset -2px -2px 4px rgba(141,122,89,.14);
}

.emboss-leaf::after {
  content: "";
  position: absolute;
  left: 16%;
  right: 14%;
  top: 48%;
  height: 2px;
  border-radius: 999px;
  background: rgba(159,140,109,.22);
  transform: rotate(-25deg);
}

.l1 { left: 13%; top: 19%; transform: rotate(-28deg); }
.l2 { left: 20%; top: 42%; transform: rotate(-5deg); }
.l3 { left: 26%; top: 66%; transform: rotate(18deg); }
.l4 { right: 14%; top: 17%; transform: scaleX(-1) rotate(-28deg); }
.l5 { right: 21%; top: 40%; transform: scaleX(-1) rotate(-2deg); }
.l6 { right: 27%; top: 65%; transform: scaleX(-1) rotate(20deg); }

.emboss-flower {
  position: absolute;
  width: clamp(48px, 5.2vw, 84px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #e4d6c0 0 11%, transparent 12%),
    radial-gradient(ellipse at 50% 14%, #fdf9f2 0 18%, transparent 19%),
    radial-gradient(ellipse at 86% 50%, #f3ebdf 0 18%, transparent 19%),
    radial-gradient(ellipse at 50% 86%, #ded1bd 0 18%, transparent 19%),
    radial-gradient(ellipse at 14% 50%, #f7f1e7 0 18%, transparent 19%);
  filter:
    drop-shadow(1px 1px 1px rgba(255,255,255,.72))
    drop-shadow(-1px -1px 1px rgba(142,121,88,.14));
}

.f1 { left: 9%; top: 8%; transform: rotate(-12deg); }
.f2 { right: 10%; top: 7%; transform: rotate(16deg); }
.f3 { left: 46%; bottom: 4%; transform: scale(.82); }

/* More natural folds: less graphic, more shadow-led. */
.envelope-back-left {
  background:
    linear-gradient(135deg, rgba(255,255,255,.76), rgba(229,218,199,.86));
  filter: drop-shadow(10px 0 15px rgba(110,90,58,.055));
}

.envelope-back-right {
  background:
    linear-gradient(225deg, rgba(255,255,255,.76), rgba(229,218,199,.86));
  filter: drop-shadow(-10px 0 15px rgba(110,90,58,.055));
}

.envelope-bottom-fold {
  background:
    linear-gradient(180deg, #f1e8dc 0%, #dcd0bd 100%);
  box-shadow:
    inset 0 18px 26px rgba(255,255,255,.28),
    0 -2px 8px rgba(126,104,69,.06);
}

/* More realistic, less perfectly circular metallic seal. */
.gold-wax-seal {
  width: clamp(108px, 10vw, 150px);
  height: clamp(108px, 10vw, 150px);
  border-radius:
    46% 54% 48% 52% /
    51% 47% 53% 49%;
  background:
    radial-gradient(circle at 29% 22%, rgba(255,255,255,.98) 0%, rgba(255,255,255,.38) 9%, transparent 21%),
    radial-gradient(circle at 71% 79%, rgba(89,54,4,.42), transparent 29%),
    radial-gradient(circle at 48% 48%, #f5dc82 0 30%, #d3aa3c 52%, #a67216 77%, #82520a 100%);
  box-shadow:
    inset 8px 7px 12px rgba(255,255,255,.42),
    inset -12px -14px 20px rgba(82,49,5,.31),
    inset 0 0 0 6px rgba(151,105,18,.24),
    inset 0 0 0 15px rgba(255,239,174,.11),
    0 19px 34px rgba(103,69,12,.27);
}

.gold-wax-seal::before {
  inset: -8px;
  border-radius:
    52% 48% 55% 45% /
    45% 55% 47% 53%;
  background:
    radial-gradient(circle at 17% 28%, #dbb04a 0 13%, transparent 14%),
    radial-gradient(circle at 85% 24%, #c7982d 0 11%, transparent 12%),
    radial-gradient(circle at 80% 79%, #9d6911 0 13%, transparent 14%),
    radial-gradient(circle at 19% 81%, #e6c45d 0 14%, transparent 15%),
    conic-gradient(from 0deg, #f1d36d, #99630d, #d8ad3b, #f1d36d);
}

.gold-wax-seal::after {
  inset: 12px;
  background:
    radial-gradient(circle at 34% 28%, rgba(255,255,255,.34), transparent 24%),
    repeating-conic-gradient(
      from 4deg,
      rgba(255,255,255,.12) 0 10deg,
      rgba(104,66,6,.08) 10deg 20deg
    );
  box-shadow:
    inset 0 0 0 1px rgba(255,246,197,.52),
    inset 0 0 0 7px rgba(124,82,9,.09);
}

.seal-monogram {
  color: #fff0ad;
  text-shadow:
    0 1px 0 rgba(255,255,255,.28),
    0 -1px 0 rgba(103,64,5,.52),
    1px 0 1px rgba(255,255,255,.12);
}

/* Faster opening: closer to the uploaded reference clip. */
.envelope-top-flap {
  transition:
    transform .82s cubic-bezier(.18,.78,.14,1),
    filter .7s ease;
}

.luxury-envelope-intro.is-opening .envelope-top-flap {
  transform: rotateX(-174deg);
}

.luxury-envelope-intro.is-dissolving .luxury-envelope-paper {
  transform: scale(1.02);
  opacity: 0;
  filter: blur(1px);
  transition:
    opacity .52s ease,
    transform .52s ease,
    filter .52s ease;
}

.luxury-envelope-intro {
  transition:
    opacity .55s ease,
    visibility .55s ease;
}

@media (max-width: 700px) {
  .embossed-botanicals {
    inset: 7% 4%;
  }

  .stem-a { left: 16%; }
  .stem-b { right: 18%; }

  .emboss-leaf {
    width: clamp(38px, 12vw, 62px);
  }

  .emboss-flower {
    width: clamp(38px, 11vw, 58px);
  }
}


/* =========================================================
   PROJECT EVERGREEN V5.2 — REFERENCE-BASED ENVELOPE INTRO
   Uses the approved envelope artwork as the visual reference.
========================================================= */

.sr-only{
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  padding:0!important;
  margin:-1px!important;
  overflow:hidden!important;
  clip:rect(0,0,0,0)!important;
  white-space:nowrap!important;
  border:0!important;
}

body.intro-active{
  overflow:hidden;
}

.photo-envelope-intro{
  position:fixed;
  inset:0;
  z-index:2200;
  display:grid;
  place-items:center;
  overflow:hidden;
  background:
    radial-gradient(circle at 50% 18%, rgba(255,255,255,.74), transparent 30%),
    linear-gradient(180deg, #f2ede4 0%, #e8e1d4 100%);
  opacity:1;
  visibility:visible;
  transition:opacity .42s ease, visibility .42s ease;
}

.photo-envelope-intro.is-fading{
  opacity:0;
  visibility:hidden;
  pointer-events:none;
}

.photo-envelope-stage{
  position:relative;
  width:min(100vw, calc(100vh * 1.5));
  height:min(100vh, calc(100vw / 1.5));
  max-width:1536px;
  max-height:1024px;
  aspect-ratio:3 / 2;
  perspective:1800px;
}

.photo-envelope-stage::after{
  content:"";
  position:absolute;
  inset:auto 7% 4%;
  height:9%;
  border-radius:50%;
  background:radial-gradient(ellipse at center, rgba(90,70,40,.14), rgba(90,70,40,0) 70%);
  filter:blur(12px);
  pointer-events:none;
}

.photo-envelope-base,
.photo-envelope-flap,
.photo-envelope-seal-piece{
  position:absolute;
  inset:0;
  background-image:url("assets/envelope-intro-v52.png");
  background-position:center;
  background-size:100% 100%;
  background-repeat:no-repeat;
}

.photo-envelope-base{
  z-index:1;
  clip-path:polygon(0 61%, 50% 43.2%, 100% 61%, 100% 100%, 0 100%);
}

.photo-envelope-lid{
  position:absolute;
  inset:0;
  z-index:2;
  transform-origin:50% 0%;
  transform-style:preserve-3d;
  transition:transform .62s cubic-bezier(.2,.78,.16,1), opacity .34s ease;
  will-change:transform, opacity;
}

.photo-envelope-flap{
  clip-path:polygon(0 0, 100% 0, 50% 55.8%);
  backface-visibility:hidden;
}

.photo-envelope-seal-piece{
  clip-path:circle(8.2% at 50% 56.4%);
  backface-visibility:hidden;
}

.photo-envelope-seal-hitbox{
  position:absolute;
  left:50%;
  top:56.4%;
  width:16.4%;
  aspect-ratio:1;
  transform:translate(-50%, -50%);
  z-index:4;
  border:0;
  border-radius:50%;
  padding:0;
  cursor:pointer;
  background:transparent;
  box-shadow:none;
  transition:transform .18s ease, filter .18s ease;
}

.photo-envelope-seal-hitbox:hover,
.photo-envelope-seal-hitbox:focus-visible{
  transform:translate(-50%, -50%) scale(1.035);
  filter:brightness(1.02);
  outline:none;
}

.photo-envelope-seal-hitbox::after{
  content:"";
  position:absolute;
  inset:-4%;
  border-radius:50%;
  box-shadow:0 0 0 2px rgba(196,156,66,.18);
  opacity:0;
  transition:opacity .18s ease;
}

.photo-envelope-seal-hitbox:hover::after,
.photo-envelope-seal-hitbox:focus-visible::after{
  opacity:1;
}

.photo-envelope-intro.is-opening .photo-envelope-lid{
  transform:rotateX(-169deg);
}

.photo-envelope-intro.is-dissolving .photo-envelope-stage{
  transform:scale(1.01);
  filter:blur(.6px);
  opacity:0;
  transition:transform .38s ease, filter .38s ease, opacity .38s ease;
}

@media (max-width: 700px){
  .photo-envelope-stage{
    width:100vw;
    height:auto;
  }

  .photo-envelope-seal-hitbox{
    width:20.5%;
    top:56.6%;
  }

  .photo-envelope-seal-piece{
    clip-path:circle(10.2% at 50% 56.6%);
  }
}

@media (prefers-reduced-motion: reduce){
  .photo-envelope-intro,
  .photo-envelope-stage,
  .photo-envelope-lid,
  .photo-envelope-seal-hitbox{
    animation-duration:1ms!important;
    transition-duration:1ms!important;
  }
}


/* =========================================================
   PROJECT EVERGREEN V5.3 — FIX ENVELOPE TRIANGLE ARTEFACTS
   Fixes the blank/strange triangles by changing the base mask
   so the side folds remain visible while only the top flap is removed.
========================================================= */

.photo-envelope-base{
  /* Keep the full envelope body and side folds visible.
     Only remove the upper triangular flap region. */
  clip-path: polygon(
    0 0,
    0 100%,
    100% 100%,
    100% 0,
    100% 60.8%,
    50% 43.2%,
    0 60.8%
  );
}

.photo-envelope-lid{
  /* Slightly cleaner hinge behaviour */
  transform-origin: 50% 0%;
}

.photo-envelope-flap{
  clip-path: polygon(0 0, 100% 0, 50% 55.8%);
}

.photo-envelope-seal-piece{
  clip-path: circle(8.2% at 50% 56.4%);
}

@media (max-width: 700px){
  .photo-envelope-base{
    clip-path: polygon(
      0 0,
      0 100%,
      100% 100%,
      100% 0,
      100% 60.8%,
      50% 43.2%,
      0 60.8%
    );
  }
}


/* =========================================================
   PROJECT EVERGREEN V5.4 — REMOVE TRIANGLE ARTEFACTS
   The closed state now uses the complete approved image.
   Only the duplicated flap/seal layer is animated on click.
========================================================= */

.photo-envelope-base{
  inset:0;
  clip-path:none !important;
  opacity:1;
  transition:opacity .34s ease .12s;
}

.photo-envelope-lid{
  z-index:3;
  transform-origin:50% 0%;
  transition:transform .56s cubic-bezier(.2,.78,.16,1), opacity .26s ease;
}

.photo-envelope-flap{
  clip-path:polygon(0 0,100% 0,50% 55.8%);
}

.photo-envelope-seal-piece{
  clip-path:circle(8.2% at 50% 56.4%);
}

.photo-envelope-intro{
  transition:background-color .34s ease .12s, opacity .30s ease, visibility .30s ease;
}

.photo-envelope-intro.is-opening .photo-envelope-lid{
  transform:rotateX(-168deg);
}

.photo-envelope-intro.is-opening .photo-envelope-base{
  opacity:0;
}

.photo-envelope-intro.is-dissolving{
  background-color:transparent;
  background-image:none;
}

.photo-envelope-intro.is-dissolving .photo-envelope-stage{
  transform:none;
  filter:none;
  opacity:1;
  transition:none;
}

.photo-envelope-intro.is-fading{
  opacity:0;
  visibility:hidden;
  pointer-events:none;
}

@media(max-width:700px){
  .photo-envelope-base{
    clip-path:none !important;
  }
}


/* =========================================================
   PROJECT EVERGREEN V5.5 — SLOWER OPENING MOTION
   Slows the flap opening so it feels closer to the reference video.
========================================================= */

.photo-envelope-lid{
  transition:transform .94s cubic-bezier(.18,.78,.16,1), opacity .28s ease;
}

.photo-envelope-intro.is-opening .photo-envelope-lid{
  transform:rotateX(-168deg);
}


/* =========================================================
   PROJECT EVERGREEN V5.6 — REMOVE STATIC FLAP DURING OPEN
   The complete base image remains for the closed state.
   As the flap starts moving, a matching ivory cover hides the
   original printed flap so only the animated flap remains visible.
========================================================= */

.photo-envelope-stage::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:2;
  pointer-events:none;
  opacity:0;
  clip-path:polygon(0 0,100% 0,50% 55.8%);
  background:
    radial-gradient(circle at 50% 18%,rgba(255,255,255,.56),transparent 34%),
    linear-gradient(180deg,#f8f3ea 0%,#eee5d8 100%);
  transition:opacity .12s ease;
}

.photo-envelope-intro.is-opening .photo-envelope-stage::before{
  opacity:1;
}

/* Keep the animated flap above the masking cover. */
.photo-envelope-lid{
  z-index:3;
}

/* Let the cover disappear with the intro. */
.photo-envelope-intro.is-dissolving .photo-envelope-stage::before,
.photo-envelope-intro.is-fading .photo-envelope-stage::before{
  opacity:0;
}


/* =========================================================
   PROJECT EVERGREEN V5.7 — SLOWER OPEN + PREMIUM FADE
   Refines the motion so the flap opens more slowly and the
   envelope dissolves away with a softer, more luxurious finish.
========================================================= */

.photo-envelope-intro{
  transition:
    opacity .72s cubic-bezier(.22,.61,.36,1),
    visibility .72s ease,
    background-color .5s ease,
    background-image .5s ease;
}

.photo-envelope-lid{
  transition:
    transform 1.18s cubic-bezier(.18,.74,.14,1),
    opacity .34s ease;
  will-change: transform;
}

.photo-envelope-seal-hitbox{
  transition:
    transform .22s ease,
    filter .22s ease,
    opacity .24s ease;
}

.photo-envelope-intro.is-opening .photo-envelope-lid{
  transform: rotateX(-168deg);
}

.photo-envelope-intro.is-dissolving{
  background:
    radial-gradient(circle at 50% 18%, rgba(255,255,255,.42), transparent 34%),
    linear-gradient(180deg, rgba(242,237,228,.78) 0%, rgba(232,225,212,.72) 100%);
}

.photo-envelope-intro.is-dissolving .photo-envelope-stage{
  transform: translateY(-8px) scale(1.008);
  filter: blur(1.4px) saturate(.94) brightness(1.02);
  opacity: 0;
  transition:
    transform .78s cubic-bezier(.22,.61,.36,1),
    filter .78s cubic-bezier(.22,.61,.36,1),
    opacity .78s cubic-bezier(.22,.61,.36,1);
}

.photo-envelope-intro.is-dissolving .photo-envelope-seal-hitbox{
  opacity: 0;
}

.photo-envelope-intro.is-fading{
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}


/* =========================================================
   PROJECT EVERGREEN V5.8 — SMOOTHER ENVELOPE OPENING
   Removes the visual "catch" at the start of the motion and
   prevents the fade from beginning before the flap has finished.
========================================================= */

/* Keep the ivory under-flap cover permanently in place.
   This avoids an opacity pop when the user clicks the seal. */
.photo-envelope-stage::before{
  opacity:1;
  transition:none;
  clip-path:polygon(-1% -1%,101% -1%,50% 56.2%);
}

/* Force the flap layer onto its own compositor layer. */
.photo-envelope-lid{
  transform:translate3d(0,0,0) rotateX(0deg);
  transform-origin:50% 0%;
  transform-style:preserve-3d;
  backface-visibility:hidden;
  -webkit-backface-visibility:hidden;
  will-change:transform;
  transition:none;
}

/* Use a staged keyframe animation instead of a single transition.
   The slower first movement and progressive acceleration feel
   more like a real heavy-stock flap opening. */
.photo-envelope-intro.is-opening .photo-envelope-lid{
  animation:evergreenSmoothFlapOpen 1.32s linear forwards;
}

@keyframes evergreenSmoothFlapOpen{
  0%{
    transform:translate3d(0,0,0) rotateX(0deg);
  }
  12%{
    transform:translate3d(0,-1px,2px) rotateX(-4deg);
  }
  38%{
    transform:translate3d(0,-3px,5px) rotateX(-46deg);
  }
  68%{
    transform:translate3d(0,-6px,8px) rotateX(-118deg);
  }
  88%{
    transform:translate3d(0,-8px,10px) rotateX(-158deg);
  }
  100%{
    transform:translate3d(0,-9px,11px) rotateX(-168deg);
  }
}

/* Keep the envelope completely stable while the flap opens. */
.photo-envelope-stage{
  transform:translateZ(0);
  backface-visibility:hidden;
  -webkit-backface-visibility:hidden;
}

/* Begin the premium fade only after the flap motion is complete. */
.photo-envelope-intro.is-dissolving .photo-envelope-stage{
  transform:translate3d(0,-7px,0) scale(1.006);
  filter:blur(1px) saturate(.96) brightness(1.015);
  opacity:0;
  transition:
    transform .68s cubic-bezier(.22,.61,.36,1),
    filter .68s cubic-bezier(.22,.61,.36,1),
    opacity .68s cubic-bezier(.22,.61,.36,1);
}

@media (prefers-reduced-motion: reduce){
  .photo-envelope-intro.is-opening .photo-envelope-lid{
    animation-duration:1ms!important;
  }
}


/* =========================================================
   PROJECT EVERGREEN V5.9 — SYNCHRONISED ENVELOPE FADE
   Makes the full envelope disappear together instead of the
   body fading first and the flap lingering afterwards.
========================================================= */

/* Keep all main envelope layers on the same fade timing. */
.photo-envelope-base,
.photo-envelope-lid,
.photo-envelope-stage::before{
  transition:
    opacity .62s cubic-bezier(.22,.61,.36,1),
    filter .62s cubic-bezier(.22,.61,.36,1),
    transform .62s cubic-bezier(.22,.61,.36,1);
}

/* Fade the entire envelope at the same time: base, flap, seal, and cover. */
.photo-envelope-intro.is-dissolving .photo-envelope-base,
.photo-envelope-intro.is-dissolving .photo-envelope-lid,
.photo-envelope-intro.is-dissolving .photo-envelope-stage::before{
  opacity: 0;
  filter: blur(1px);
}

.photo-envelope-intro.is-dissolving .photo-envelope-stage{
  transform: translate3d(0,-6px,0) scale(1.004);
  filter: none;
  opacity: 1;
  transition: transform .62s cubic-bezier(.22,.61,.36,1);
}

/* Also fade the clickable seal hitbox with the rest of the envelope. */
.photo-envelope-intro.is-dissolving .photo-envelope-seal-hitbox{
  opacity: 0;
  transition: opacity .62s cubic-bezier(.22,.61,.36,1);
}


/* =========================================================
   PROJECT EVERGREEN V5.10 — FADE ONLY AFTER FULL OPEN
   Keeps the full envelope visible for the complete opening
   sequence, then fades the whole envelope away afterwards.
========================================================= */

/* During the opening motion, keep every envelope layer fully visible. */
.photo-envelope-intro.is-opening:not(.is-dissolving) .photo-envelope-base,
.photo-envelope-intro.is-opening:not(.is-dissolving) .photo-envelope-lid,
.photo-envelope-intro.is-opening:not(.is-dissolving) .photo-envelope-stage::before,
.photo-envelope-intro.is-opening:not(.is-dissolving) .photo-envelope-seal-hitbox{
  opacity: 1;
  filter: none;
}

/* Hold the open envelope briefly, then fade the whole thing together. */
.photo-envelope-intro.is-dissolving .photo-envelope-base,
.photo-envelope-intro.is-dissolving .photo-envelope-lid,
.photo-envelope-intro.is-dissolving .photo-envelope-stage::before,
.photo-envelope-intro.is-dissolving .photo-envelope-seal-hitbox{
  opacity: 0;
  filter: blur(.9px);
}

.photo-envelope-intro.is-dissolving .photo-envelope-stage{
  transform: translate3d(0,-5px,0) scale(1.003);
  transition: transform .72s cubic-bezier(.22,.61,.36,1);
}


/* =========================================================
   PROJECT EVERGREEN V5.11 — TRUE TWO-LAYER ENVELOPE
   The body contains no closed flap or seal. The moving flap is
   a separate transparent PNG, eliminating the double-flap issue.
========================================================= */

body.intro-active{
  overflow:hidden;
}

.layered-envelope-intro{
  position:fixed;
  inset:0;
  z-index:2400;
  display:grid;
  place-items:center;
  overflow:hidden;
  background:
    radial-gradient(circle at 50% 18%,rgba(255,255,255,.72),transparent 31%),
    linear-gradient(180deg,#f2ede4 0%,#e8e1d4 100%);
  opacity:1;
  visibility:visible;
  transition:opacity .72s cubic-bezier(.22,.61,.36,1),visibility .72s ease;
}

.layered-envelope-intro.is-fading{
  opacity:0;
  visibility:hidden;
  pointer-events:none;
}

.layered-envelope-stage{
  position:relative;
  width:min(100vw,calc(100vh * 1.5));
  height:min(100vh,calc(100vw / 1.5));
  max-width:1536px;
  max-height:1024px;
  aspect-ratio:3 / 2;
  perspective:1900px;
  transform:translateZ(0);
  will-change:transform,opacity,filter;
}

.layered-envelope-body,
.layered-envelope-flap{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:fill;
  user-select:none;
  pointer-events:none;
}

.layered-envelope-body{
  z-index:1;
}

.layered-envelope-lid{
  position:absolute;
  inset:0;
  z-index:3;
  transform-origin:50% 1.95%;
  transform-style:preserve-3d;
  backface-visibility:visible;
  will-change:transform;
}

.layered-envelope-lid::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  clip-path:polygon(.9% 1.95%,99.1% 1.95%,50% 61.7%);
  transform:rotateX(180deg);
  backface-visibility:hidden;
  background:
    radial-gradient(circle at 50% 12%,rgba(255,255,255,.72),transparent 30%),
    linear-gradient(180deg,#f8f2e8 0%,#e8ddcb 100%);
  box-shadow:inset 0 -18px 30px rgba(125,100,61,.08);
}

.layered-envelope-flap{
  backface-visibility:hidden;
  -webkit-backface-visibility:hidden;
}

.layered-envelope-seal-hitbox{
  position:absolute;
  left:50%;
  top:59.4%;
  z-index:5;
  width:21.5%;
  max-width:330px;
  aspect-ratio:1;
  transform:translate(-50%,-50%);
  border:0;
  border-radius:50%;
  padding:0;
  cursor:pointer;
  background:transparent;
  outline:none;
}

.layered-envelope-seal-hitbox:focus-visible{
  box-shadow:0 0 0 4px rgba(184,139,42,.28);
}

/* Slow, continuous motion with no visibility or layer swap mid-animation. */
.layered-envelope-intro.is-opening .layered-envelope-lid{
  animation:evergreenLayeredFlapOpen 1.48s cubic-bezier(.21,.67,.19,1) forwards;
}

@keyframes evergreenLayeredFlapOpen{
  0%{
    transform:translate3d(0,0,0) rotateX(0deg);
  }
  18%{
    transform:translate3d(0,-1px,3px) rotateX(-10deg);
  }
  48%{
    transform:translate3d(0,-4px,8px) rotateX(-62deg);
  }
  76%{
    transform:translate3d(0,-7px,12px) rotateX(-112deg);
  }
  100%{
    transform:translate3d(0,-9px,14px) rotateX(-132deg);
  }
}

/* Fade the complete stage only after the opening animation finishes. */
.layered-envelope-intro.is-dissolving .layered-envelope-stage{
  opacity:0;
  transform:translate3d(0,-7px,0) scale(1.006);
  filter:blur(1px) saturate(.96) brightness(1.015);
  transition:
    opacity .72s cubic-bezier(.22,.61,.36,1),
    transform .72s cubic-bezier(.22,.61,.36,1),
    filter .72s cubic-bezier(.22,.61,.36,1);
}

@media(max-width:700px){
  .layered-envelope-stage{
    width:100vw;
    height:auto;
  }

  .layered-envelope-seal-hitbox{
    width:24%;
    top:59.2%;
  }
}

@media(prefers-reduced-motion:reduce){
  .layered-envelope-intro.is-opening .layered-envelope-lid{
    animation-duration:1ms!important;
  }

  .layered-envelope-intro,
  .layered-envelope-stage{
    transition-duration:1ms!important;
  }
}


/* =========================================================
   PROJECT EVERGREEN V5.12 — FLAP FOLLOWS REAL SEAM
   Uses a re-cut flap layer matching the seam line highlighted
   by the user, including the lower curve around the seal.
========================================================= */

.layered-envelope-lid{
  transform-origin: 50% 2%;
}

.layered-envelope-lid::after{
  /* clean back face for the opening flap */
  clip-path: polygon(1% 2%, 99% 2%, 50% 70%);
  background:
    radial-gradient(circle at 50% 14%, rgba(255,255,255,.72), transparent 30%),
    linear-gradient(180deg, #f8f2e8 0%, #e8ddcb 100%);
}

.layered-envelope-seal-hitbox{
  top: 58.9%;
  width: 19.5%;
  max-width: 300px;
}

@media(max-width:700px){
  .layered-envelope-seal-hitbox{
    width: 23%;
    top: 58.8%;
  }
}


/* =========================================================
   PROJECT EVERGREEN V5.13 — GUIDELINE-MATCHED FLAP
   Rebuilt from the approved red guideline so the opening seam
   follows the line shown in the reference diagram.
========================================================= */

.layered-envelope-lid{
  transform-origin: 50% 1.8%;
}

.layered-envelope-lid::after{
  clip-path: polygon(1% 2%, 99% 2%, 50% 73%);
  background:
    radial-gradient(circle at 50% 14%, rgba(255,255,255,.72), transparent 30%),
    linear-gradient(180deg, #f8f2e8 0%, #e8ddcb 100%);
}

.layered-envelope-seal-hitbox{
  top: 59.2%;
  width: 19.8%;
  max-width: 304px;
}

@media(max-width:700px){
  .layered-envelope-seal-hitbox{
    width: 23.2%;
    top: 59.0%;
  }
}


/* =========================================================
   PROJECT EVERGREEN V5.14 — CLOSER SEAM + SMOOTHER OPENING
========================================================= */

.layered-envelope-stage{
  perspective: 2100px;
}

.layered-envelope-lid{
  transform-origin: 50% 1.7%;
  transform-style: preserve-3d;
  will-change: transform;
}

/* Back face of the flap (the inside of the envelope flap) */
.layered-envelope-lid::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  transform: rotateX(180deg);
  backface-visibility: hidden;
  background:
    radial-gradient(circle at 50% 16%, rgba(255,255,255,.78), transparent 28%),
    linear-gradient(180deg, #faf5eb 0%, #ece1d0 68%, #e2d4bf 100%);
  box-shadow:
    inset 0 -22px 36px rgba(116, 92, 57, .10),
    inset 0 18px 30px rgba(255,255,255,.32);
  /* triangular back face only */
  clip-path: polygon(0.8% 1.8%, 99.2% 1.8%, 50% 74%);
}

/* Slightly smaller hit area aligned to the seal */
.layered-envelope-seal-hitbox{
  top: 59.05%;
  width: 19.6%;
  max-width: 300px;
}

/* Smoother, more luxurious motion */
.layered-envelope-intro.is-opening .layered-envelope-lid{
  animation: evergreenFlapOpenV514 1.7s cubic-bezier(.18,.72,.20,1) forwards;
}

@keyframes evergreenFlapOpenV514{
  0%{
    transform: translate3d(0,0,0) rotateX(0deg);
  }
  10%{
    transform: translate3d(0,-0.5px,1px) rotateX(-3deg);
  }
  28%{
    transform: translate3d(0,-1.8px,4px) rotateX(-20deg);
  }
  48%{
    transform: translate3d(0,-4px,8px) rotateX(-56deg);
  }
  70%{
    transform: translate3d(0,-6.5px,12px) rotateX(-96deg);
  }
  88%{
    transform: translate3d(0,-8.2px,15px) rotateX(-122deg);
  }
  100%{
    transform: translate3d(0,-9.5px,17px) rotateX(-136deg);
  }
}

/* Keep the whole envelope on screen through the open, then fade away */
.layered-envelope-intro.is-dissolving .layered-envelope-stage{
  opacity: 0;
  transform: translate3d(0,-7px,0) scale(1.006);
  filter: blur(1px) saturate(.97) brightness(1.015);
  transition:
    opacity .76s cubic-bezier(.22,.61,.36,1),
    transform .76s cubic-bezier(.22,.61,.36,1),
    filter .76s cubic-bezier(.22,.61,.36,1);
}

@media (max-width:700px){
  .layered-envelope-seal-hitbox{
    width: 23%;
    top: 58.9%;
  }
}


/* =========================================================
   PROJECT EVERGREEN V5.15 — PRESS SEAL, THEN FADE
   The envelope remains completely still. Pressing the seal
   gives subtle tactile feedback before the whole image fades.
========================================================= */

body.intro-active{
  overflow:hidden;
}

.fade-envelope-intro{
  position:fixed;
  inset:0;
  z-index:2600;
  display:grid;
  place-items:center;
  overflow:hidden;
  background:
    radial-gradient(circle at 50% 18%,rgba(255,255,255,.72),transparent 31%),
    linear-gradient(180deg,#f2ede4 0%,#e8e1d4 100%);
  opacity:1;
  visibility:visible;
  transition:
    opacity .86s cubic-bezier(.22,.61,.36,1),
    visibility .86s ease,
    background .86s ease;
}

.fade-envelope-stage{
  position:relative;
  width:min(100vw,calc(100vh * 1.5));
  height:min(100vh,calc(100vw / 1.5));
  max-width:1536px;
  max-height:1024px;
  aspect-ratio:3 / 2;
  transform:translate3d(0,0,0) scale(1);
  opacity:1;
  filter:none;
  will-change:transform,opacity,filter;
  transition:
    transform .86s cubic-bezier(.22,.61,.36,1),
    opacity .86s cubic-bezier(.22,.61,.36,1),
    filter .86s cubic-bezier(.22,.61,.36,1);
}

.fade-envelope-image{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:fill;
  user-select:none;
  pointer-events:none;
}

.fade-envelope-seal-hitbox{
  position:absolute;
  left:50%;
  top:56.4%;
  z-index:3;
  width:16.4%;
  max-width:252px;
  aspect-ratio:1;
  transform:translate(-50%,-50%) scale(1);
  border:0;
  border-radius:50%;
  padding:0;
  cursor:pointer;
  background:transparent;
  outline:none;
  transition:
    transform .18s ease,
    filter .18s ease,
    box-shadow .18s ease,
    opacity .3s ease;
}

.fade-envelope-seal-hitbox:hover,
.fade-envelope-seal-hitbox:focus-visible{
  transform:translate(-50%,-50%) scale(1.035);
  filter:brightness(1.02);
  box-shadow:0 0 0 3px rgba(190,145,45,.16);
}

.fade-envelope-intro.is-pressed .fade-envelope-seal-hitbox{
  transform:translate(-50%,-50%) scale(.965);
  filter:brightness(.97);
}

.fade-envelope-intro.is-dissolving{
  background:
    radial-gradient(circle at 50% 18%,rgba(255,255,255,.34),transparent 34%),
    linear-gradient(180deg,rgba(242,237,228,.64),rgba(232,225,212,.58));
}

.fade-envelope-intro.is-dissolving .fade-envelope-stage{
  transform:translate3d(0,-5px,0) scale(1.008);
  opacity:0;
  filter:blur(1.2px) saturate(.96) brightness(1.015);
}

.fade-envelope-intro.is-dissolving .fade-envelope-seal-hitbox{
  opacity:0;
}

.fade-envelope-intro.is-fading{
  opacity:0;
  visibility:hidden;
  pointer-events:none;
}

@media(max-width:700px){
  .fade-envelope-stage{
    width:100vw;
    height:auto;
  }

  .fade-envelope-seal-hitbox{
    width:20.5%;
    top:56.5%;
  }
}

@media(prefers-reduced-motion:reduce){
  .fade-envelope-intro,
  .fade-envelope-stage,
  .fade-envelope-seal-hitbox{
    transition-duration:1ms!important;
  }
}


/* =========================================================
   PROJECT EVERGREEN V5.16 — HEADER + CONTENT POLISH
========================================================= */

/* Slight overlay only on hover for the transparent header controls */
.site-header nav a,
.brand,
.menu{
  text-shadow:0 1px 3px rgba(0,0,0,.18);
}

.feature-copy h3{
  max-width: 15ch;
  margin-left:auto;
  margin-right:auto;
}

@media (max-width: 700px){
  .feature-copy h3{
    max-width: 16ch;
    font-size: 1.8rem;
    line-height: 1.18;
  }
}


/* =========================================================
   PROJECT EVERGREEN V5.17 — EDITORIAL HOMEPAGE REDESIGN
========================================================= */

.v517-header{
  position:absolute;
  inset:0 0 auto;
  z-index:60;
  height:166px;
  padding:20px clamp(28px,6vw,94px) 0;
  color:#151611;
  background:transparent;
  border:0;
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
}

.v517-nav{
  position:relative;
  width:100%;
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:start;
  gap:34px;
  color:#151611;
}

.v517-nav-group{
  display:flex;
  align-items:center;
  gap:clamp(24px,4vw,58px);
  padding-top:18px;
}

.v517-nav-right{
  justify-content:flex-end;
}

.v517-nav a{
  padding:0;
  color:#151611;
  text-decoration:none;
  font:600 clamp(.72rem,.82vw,.86rem) var(--serif);
  letter-spacing:.07em;
  text-transform:uppercase;
  text-shadow:0 1px 8px rgba(255,255,255,.65);
}

.v517-nav-group a{
  position:relative;
}

.v517-nav-group a::after{
  content:"";
  position:absolute;
  left:0;
  right:100%;
  bottom:-6px;
  height:1px;
  background:#151611;
  transition:right .25s ease;
}

.v517-nav-group a:hover::after,
.v517-nav-group a:focus-visible::after{
  right:0;
}

.v517-monogram{
  display:grid;
  place-items:center;
  min-width:240px;
}

.v517-monogram-main{
  display:flex;
  align-items:center;
  justify-content:center;
  line-height:.8;
}

.v517-monogram-main b{
  font:500 clamp(3rem,5.4vw,5.6rem) var(--serif);
}

.v517-monogram-main em{
  margin:0 .08em;
  font:400 clamp(1.8rem,3.2vw,3.3rem) var(--serif);
}

.v517-monogram-main i{
  margin:0 .15em;
  color:#4d553f;
  font-style:normal;
  font-size:clamp(1.25rem,2vw,2rem);
  transform:rotate(-12deg);
}

.v517-monogram-main i:last-child{
  transform:scaleX(-1) rotate(-12deg);
}

.v517-monogram-date{
  margin-top:14px;
  font:500 clamp(.86rem,1.35vw,1.25rem) var(--serif);
  letter-spacing:.18em;
}

.v517-menu{
  display:none;
  color:#151611;
  text-shadow:0 1px 7px rgba(255,255,255,.8);
}

.v517-hero{
  position:relative;
  min-height:610px;
  display:grid;
  place-items:center;
  padding:160px 20px 100px;
  overflow:hidden;
  background:
    url("assets/hero-v34.jpg") center 56% / cover no-repeat;
}

.v517-hero-overlay{
  position:absolute;
  inset:0;
  background:
    linear-gradient(180deg,rgba(255,255,255,.50) 0%,rgba(255,255,255,.14) 32%,rgba(246,241,232,.06) 70%,rgba(246,241,232,.18) 100%),
    radial-gradient(circle at 50% 34%,rgba(255,255,255,.48),transparent 37%);
}

.v517-hero-copy{
  position:relative;
  z-index:2;
  margin-top:46px;
  text-align:center;
  color:#151611;
  text-shadow:0 1px 12px rgba(255,255,255,.72);
}

.v517-hero-copy h1{
  color:#151611;
  font:500 clamp(4rem,7.1vw,7rem)/.95 var(--serif);
  letter-spacing:.015em;
}

.v517-hero-copy h1 span{
  font-weight:400;
}

.v517-hero-kicker{
  margin:18px 0 10px;
  font:600 clamp(.8rem,1.1vw,1rem) var(--serif);
  letter-spacing:.32em;
  text-transform:uppercase;
}

.v517-heart-line{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  margin:8px 0 10px;
  color:#a58242;
}

.v517-heart-line span{
  width:44px;
  height:1px;
  background:#927749;
}

.v517-heart-line b{
  font-size:.9rem;
}

.v517-hero-date{
  margin:0;
  font:500 clamp(1.6rem,2.5vw,2.35rem) var(--serif);
  letter-spacing:.025em;
}

.v517-hero-venue{
  margin:3px 0 0;
  font:500 clamp(1.05rem,1.65vw,1.45rem) var(--serif);
}

.v517-wave{
  position:absolute;
  z-index:3;
  left:0;
  bottom:-1px;
  width:100%;
  height:108px;
}

.v517-wave path{
  fill:#f8f5ef;
}

.v517-home{
  position:relative;
  padding-top:18px;
  padding-bottom:72px;
  background:
    linear-gradient(rgba(255,255,255,.46),rgba(255,255,255,.46)),
    radial-gradient(circle at 50% 0%,#fffdf9 0%,#f8f5ef 56%,#f3eee5 100%);
}

.v517-home::before,
.v517-home::after{
  content:"❧\A❧\A❧";
  white-space:pre;
  position:absolute;
  top:70px;
  color:#c4b28f;
  font-size:2.2rem;
  line-height:1.85;
  opacity:.68;
}

.v517-home::before{
  left:20px;
  transform:rotate(-8deg);
}

.v517-home::after{
  right:20px;
  transform:scaleX(-1) rotate(-8deg);
}

.v517-card-grid{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
  width:min(1180px,calc(100% - 44px));
  margin:0 auto;
}

.v517-card{
  position:relative;
  display:flex;
  flex-direction:column;
  min-height:485px;
  overflow:hidden;
  border:1px solid rgba(184,169,143,.40);
  border-radius:15px;
  color:#302e29;
  background:rgba(255,253,248,.94);
  box-shadow:0 12px 28px rgba(71,58,38,.09);
  text-decoration:none;
  transition:transform .25s ease,box-shadow .25s ease;
}

.v517-card:hover,
.v517-card:focus-visible{
  transform:translateY(-5px);
  box-shadow:0 20px 38px rgba(71,58,38,.14);
  outline:none;
}

.v517-card-image{
  height:228px;
  overflow:hidden;
  background:#ddd5c7;
}

.v517-card-image img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .6s ease;
}

.v517-card:hover img{
  transform:scale(1.025);
}

.v517-card-icon{
  position:absolute;
  top:204px;
  left:50%;
  display:grid;
  place-items:center;
  width:52px;
  height:52px;
  transform:translateX(-50%);
  border:1px solid rgba(177,153,110,.40);
  border-radius:50%;
  color:#a18048;
  background:#fbf8f1;
  box-shadow:0 5px 12px rgba(81,65,39,.12);
  font:500 1.45rem var(--serif);
}

.v517-card-copy{
  display:flex;
  flex:1;
  flex-direction:column;
  align-items:center;
  padding:43px 22px 23px;
  text-align:center;
}

.v517-card-copy h2{
  margin:0;
  color:#282620;
  font:500 clamp(1.7rem,2.2vw,2.25rem)/1.03 var(--serif);
  letter-spacing:0;
  text-transform:none;
}

.v517-card-copy p{
  margin:18px 0 16px;
  color:#575249;
  font:400 .98rem/1.47 var(--serif);
}

.v517-card-flourish{
  margin-top:auto;
  color:#b69b68;
  font-size:1.25rem;
  letter-spacing:.35em;
}

.v517-home-signoff{
  display:grid;
  place-items:center;
  margin:24px auto 0;
  color:#4d493f;
  text-align:center;
}

.v517-home-signoff > span,
.v517-home-signoff > b{
  display:inline-block;
  color:#a9894f;
}

.v517-home-signoff b{
  margin:0 10px;
}

.v517-home-signoff p{
  margin:8px 0 0;
  font:600 .83rem var(--serif);
  letter-spacing:.32em;
  text-transform:uppercase;
}

@media(max-width:1050px){
  .v517-header{
    height:80px;
    padding:12px 20px 0;
  }

  .v517-menu{
    position:absolute;
    z-index:3;
    top:17px;
    right:18px;
    display:block;
  }

  .v517-nav{
    display:flex;
    justify-content:center;
  }

  .v517-monogram{
    min-width:190px;
  }

  .v517-monogram-main b{
    font-size:3rem;
  }

  .v517-monogram-main em{
    font-size:1.8rem;
  }

  .v517-monogram-date{
    margin-top:8px;
    font-size:.78rem;
  }

  .v517-nav-group{
    position:absolute;
    top:70px;
    right:0;
    display:none;
    width:min(330px,calc(100vw - 32px));
    padding:14px 22px;
    flex-direction:column;
    align-items:flex-start;
    gap:0;
    color:#25271f;
    background:rgba(255,253,248,.98);
    box-shadow:0 18px 36px rgba(45,38,25,.15);
  }

  .v517-nav-left{
    border-radius:14px 14px 0 0;
  }

  .v517-nav-right{
    top:218px;
    border-radius:0 0 14px 14px;
  }

  .v517-nav.open .v517-nav-group{
    display:flex;
  }

  .v517-nav-group a{
    width:100%;
    padding:10px 0;
  }

  .v517-hero{
    min-height:590px;
    padding-top:110px;
  }

  .v517-card-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    width:min(760px,calc(100% - 36px));
  }
}

@media(max-width:650px){
  .v517-header{
    height:74px;
  }

  .v517-monogram-main b{
    font-size:2.45rem;
  }

  .v517-monogram-main em{
    font-size:1.5rem;
  }

  .v517-monogram-main i{
    font-size:1rem;
  }

  .v517-monogram-date{
    font-size:.68rem;
  }

  .v517-hero{
    min-height:535px;
    padding:112px 18px 92px;
    background-position:52% center;
  }

  .v517-hero-copy{
    margin-top:30px;
  }

  .v517-hero-copy h1{
    font-size:3.7rem;
  }

  .v517-wave{
    height:70px;
  }

  .v517-home{
    padding:8px 0 62px;
  }

  .v517-home::before,
  .v517-home::after{
    display:none;
  }

  .v517-card-grid{
    grid-template-columns:1fr;
    width:min(430px,calc(100% - 28px));
    gap:18px;
  }

  .v517-card{
    min-height:445px;
  }

  .v517-card-image{
    height:225px;
  }

  .v517-card-icon{
    top:201px;
  }

  .v517-home-signoff p{
    max-width:310px;
    line-height:1.5;
  }
}


/* =========================================================
   PROJECT EVERGREEN V5.18 — MATCH APPROVED HOMEPAGE CONCEPT
========================================================= */

.v517-header{
  height: 150px;
  padding: 18px clamp(34px,5vw,100px) 0;
  color:#101010;
}

.v517-nav{
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 22px;
}

.v517-nav a,
.v517-menu{
  color:#121212 !important;
  text-shadow:none !important;
}

.v517-nav-group{
  gap: clamp(20px,3.1vw,44px);
  padding-top: 12px;
}

.v517-nav-group a{
  font: 600 clamp(.76rem,.82vw,.90rem) var(--serif);
  letter-spacing: .035em;
}

.v517-nav-group a::after{
  bottom:-4px;
  background:#161616;
}

.v517-monogram{
  min-width: 280px;
}

.v517-monogram-main{
  gap:.04em;
}

.v517-monogram-main b{
  font:500 clamp(3.5rem,5.6vw,5.9rem) var(--serif);
  color:#101010;
}

.v517-monogram-main em{
  font:400 clamp(2.1rem,3vw,3.4rem) var(--serif);
  color:#101010;
}

.v517-monogram-main i{
  color:#6a6a51;
  font-size:clamp(1.55rem,2.2vw,2.2rem);
  margin:0 .09em;
}

.v517-monogram-date{
  margin-top:8px;
  color:#181818;
  font:500 clamp(1rem,1.25vw,1.35rem) var(--serif);
  letter-spacing:.18em;
}

.v517-hero{
  min-height: 528px;
  padding: 156px 20px 80px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.20) 0%, rgba(255,255,255,.10) 30%, rgba(255,255,255,.04) 100%),
    url("assets/hero-v34.jpg") center 54% / cover no-repeat;
}

.v517-hero-overlay{
  background:
    radial-gradient(circle at 50% 18%, rgba(255,255,255,.76), rgba(255,255,255,.46) 22%, rgba(255,255,255,.12) 45%, transparent 62%);
}

.v517-hero-copy{
  margin-top: 12px;
  color:#111;
  text-shadow:none;
}

.v517-hero-copy h1{
  color:#0f0f0f;
  font:500 clamp(4rem,6vw,5.7rem)/.94 var(--serif);
}

.v517-hero-kicker{
  margin: 10px 0 12px;
  color:#43352a;
  font:600 clamp(.88rem,1vw,1rem) var(--serif);
  letter-spacing:.18em;
}

.v517-heart-line{
  margin: 6px 0 12px;
  color:#a98a58;
}

.v517-heart-line span{
  width: 56px;
  background:#b29566;
}

.v517-hero-date{
  color:#1b1916;
  font:500 clamp(1.95rem,2.7vw,2.45rem) var(--serif);
}

.v517-hero-venue{
  color:#262018;
  font:500 clamp(1.15rem,1.65vw,1.55rem) var(--serif);
}

.v517-wave{
  height: 90px;
}

.v517-wave path{
  fill:#f8f5ef;
}

.v517-home{
  margin-top:-8px;
  padding-top: 6px;
  background:
    linear-gradient(rgba(255,255,255,.52),rgba(255,255,255,.52)),
    radial-gradient(circle at 50% 0%,#fffdf9 0%,#f8f5ef 58%,#f4efe7 100%);
}

.v517-home::before,
.v517-home::after{
  content:"";
  position:absolute;
  top: 112px;
  width: 52px;
  height: 278px;
  opacity:.78;
  background: url("data:image/svg+xml;utf8,%0A%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2048%20260%27%3E%0A%20%20%3Cg%20fill%3D%27none%27%20stroke%3D%27%23c4b28f%27%20stroke-width%3D%271.5%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%0A%20%20%20%20%3Cpath%20d%3D%27M24%2014%20C21%2032%2020%2050%2020%2078%20C20%20113%2024%20155%2024%20246%27/%3E%0A%20%20%20%20%3Cpath%20d%3D%27M23%2028%20C14%2018%2010%2010%2010%201%27/%3E%0A%20%20%20%20%3Cpath%20d%3D%27M23%2042%20C12%2034%207%2026%206%2016%27/%3E%0A%20%20%20%20%3Cpath%20d%3D%27M23%2067%20C12%2060%208%2052%208%2042%27/%3E%0A%20%20%20%20%3Cpath%20d%3D%27M23%2094%20C11%2087%207%2078%207%2068%27/%3E%0A%20%20%20%20%3Cpath%20d%3D%27M23%20122%20C12%20114%208%20105%208%2094%27/%3E%0A%20%20%20%20%3Cpath%20d%3D%27M23%20151%20C12%20143%208%20134%208%20123%27/%3E%0A%20%20%20%20%3Cpath%20d%3D%27M23%20181%20C13%20173%2010%20164%2010%20154%27/%3E%0A%20%20%20%20%3Cpath%20d%3D%27M23%20212%20C14%20204%2011%20195%2011%20185%27/%3E%0A%20%20%20%20%3Cpath%20d%3D%27M23%2030%20C33%2020%2038%2012%2039%203%27/%3E%0A%20%20%20%20%3Cpath%20d%3D%27M23%2052%20C36%2043%2041%2034%2042%2023%27/%3E%0A%20%20%20%20%3Cpath%20d%3D%27M23%2081%20C37%2072%2041%2063%2041%2052%27/%3E%0A%20%20%20%20%3Cpath%20d%3D%27M23%20109%20C35%20100%2039%2092%2039%2082%27/%3E%0A%20%20%20%20%3Cpath%20d%3D%27M23%20138%20C36%20129%2040%20121%2040%20110%27/%3E%0A%20%20%20%20%3Cpath%20d%3D%27M23%20168%20C35%20159%2039%20150%2039%20139%27/%3E%0A%20%20%20%20%3Cpath%20d%3D%27M23%20198%20C34%20189%2038%20180%2038%20170%27/%3E%0A%20%20%20%20%3Cpath%20d%3D%27M23%20228%20C33%20220%2036%20211%2036%20201%27/%3E%0A%20%20%3C/g%3E%0A%3C/svg%3E%0A") center / contain no-repeat;
}

.v517-home::before{
  left: 18px;
  transform:none;
}

.v517-home::after{
  right: 18px;
  transform: scaleX(-1);
}

.v517-card-grid{
  width:min(1204px, calc(100% - 64px));
  gap: 14px;
}

.v517-card{
  min-height: 496px;
  border:1px solid rgba(183,171,151,.42);
  border-radius:18px;
  background:rgba(255,253,249,.96);
  box-shadow:0 10px 26px rgba(71,58,38,.08);
}

.v517-card-image{
  height: 252px;
}

.v517-card-icon{
  top: 226px;
  width: 56px;
  height: 56px;
  border:1px solid rgba(188,171,143,.56);
  color:#ad8b55;
  background:#fdfaf4;
  box-shadow:0 4px 10px rgba(81,65,39,.12);
  font-size:1.55rem;
}

.v517-card-copy{
  padding: 48px 26px 22px;
}

.v517-card-copy h2{
  color:#26231e;
  font:500 clamp(1.9rem,2.3vw,2.45rem)/1.05 var(--serif);
}

.v517-card-copy p{
  margin:16px 0 18px;
  color:#4f493f;
  font:400 1rem/1.52 var(--serif);
}

.v517-card-flourish{
  font-size:1.18rem;
  color:#b59a68;
  letter-spacing:.18em;
}

.v517-home-signoff{
  margin-top: 18px;
}

.v517-home-signoff p{
  margin-top:10px;
  color:#4c463b;
  font:600 .88rem var(--serif);
  letter-spacing:.26em;
}

@media(max-width: 1050px){
  .v517-header{
    height:84px;
    padding: 10px 20px 0;
  }
  .v517-nav{
    display:flex;
    justify-content:center;
  }
  .v517-nav-group{
    display:none;
  }
  .v517-nav.open .v517-nav-group{
    display:flex;
  }
  .v517-monogram{
    min-width:220px;
  }
  .v517-monogram-main b{ font-size:3rem; }
  .v517-monogram-main em{ font-size:1.9rem; }
  .v517-monogram-date{ font-size:.86rem; }
  .v517-menu{
    display:block;
    position:absolute;
    top:12px;
    right:16px;
  }
  .v517-nav-left,
  .v517-nav-right{
    position:absolute;
    top:68px;
    right:0;
    width:min(330px,calc(100vw - 32px));
    padding:14px 22px;
    flex-direction:column;
    align-items:flex-start;
    gap:0;
    background:rgba(255,253,248,.98);
    box-shadow:0 18px 36px rgba(45,38,25,.15);
    border-radius:14px 14px 0 0;
  }
  .v517-nav-right{
    top:216px;
    border-radius:0 0 14px 14px;
  }
  .v517-hero{
    min-height:520px;
    padding-top:110px;
  }
  .v517-card-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    width:min(770px, calc(100% - 34px));
  }
}

@media(max-width: 650px){
  .v517-header{
    height:78px;
  }
  .v517-monogram{
    min-width:180px;
  }
  .v517-monogram-main b{ font-size:2.45rem; }
  .v517-monogram-main em{ font-size:1.52rem; }
  .v517-monogram-main i{ font-size:1rem; }
  .v517-monogram-date{ font-size:.7rem; }
  .v517-hero{
    min-height:490px;
    padding:104px 18px 72px;
  }
  .v517-hero-copy h1{
    font-size:3.45rem;
  }
  .v517-heart-line span{
    width:42px;
  }
  .v517-wave{
    height:58px;
  }
  .v517-home::before,
  .v517-home::after{
    display:none;
  }
  .v517-card-grid{
    grid-template-columns:1fr;
    width:min(430px, calc(100% - 24px));
    gap:16px;
  }
  .v517-card{
    min-height:470px;
  }
  .v517-card-image{
    height:236px;
  }
  .v517-card-icon{
    top:209px;
  }
}


/* =========================================================
   PROJECT EVERGREEN V5.20 — EXACT APPROVED HOMEPAGE
========================================================= */

.v520-homepage{
  position:relative;
  width:100%;
  margin:0;
  background:#f6f2ea;
}

.v520-homepage-image{
  display:block;
  width:100%;
  height:auto;
  user-select:none;
  -webkit-user-drag:none;
}

.v520-hotspots{
  position:absolute;
  inset:0;
  z-index:5;
  pointer-events:none;
}

.v520-hotspot{
  position:absolute;
  display:block;
  pointer-events:auto;
  border-radius:10px;
  outline:none;
}

.v520-hotspot:focus-visible{
  box-shadow:0 0 0 3px rgba(170,132,66,.42);
}

/* Navigation links */
.v520-hotspot.nav-home{left:6.2%;top:3.4%;width:6.0%;height:4.1%}
.v520-hotspot.nav-story{left:14.1%;top:3.4%;width:10.5%;height:4.1%}
.v520-hotspot.nav-day{left:25.3%;top:3.4%;width:8.1%;height:4.1%}
.v520-hotspot.nav-travel{left:65.7%;top:3.4%;width:6.7%;height:4.1%}
.v520-hotspot.nav-rsvp{left:74.7%;top:3.4%;width:5.0%;height:4.1%}
.v520-hotspot.nav-info{left:82.2%;top:3.4%;width:10.0%;height:4.1%}

/* Homepage cards */
.v520-hotspot.card-story{left:7.5%;top:46.0%;width:22.9%;height:45.0%}
.v520-hotspot.card-day{left:31.6%;top:46.0%;width:19.0%;height:45.0%}
.v520-hotspot.card-travel{left:51.4%;top:46.0%;width:19.3%;height:45.0%}
.v520-hotspot.card-rsvp{left:71.6%;top:46.0%;width:19.1%;height:45.0%}

@media(max-width:700px){
  .v520-hotspot{
    border-radius:4px;
  }
}


/* =========================================================
   PROJECT EVERGREEN V5.22 — THREE HOMEPAGE CARDS + RSVP UPDATES
========================================================= */

.story-photo{
  background-image:url("assets/story-photo-v524.jpg");
  background-position:center 42%;
}

.song-requests{
  margin:0 0 20px;
}

.song-requests legend{
  margin-bottom:8px;
}

/* Revised three-card homepage hotspots */
.v520-hotspot.card-day{
  left:17.8%;
  top:46.0%;
  width:20.9%;
  height:45.0%;
}

.v520-hotspot.card-travel{
  left:40.4%;
  top:46.0%;
  width:20.9%;
  height:45.0%;
}

.v520-hotspot.card-rsvp{
  left:62.9%;
  top:46.0%;
  width:20.9%;
  height:45.0%;
}



/* =========================================================
   PROJECT EVERGREEN V5.23 — REFINED HOMEPAGE + CORNER DETAILS
========================================================= */

.v523-homepage{
  background:var(--paper);
}

.v523-hero{
  position:relative;
  min-height:530px;
  background:
    linear-gradient(to bottom, rgba(248,246,241,.18), rgba(248,246,241,.05)),
    url("assets/hero-v34.jpg") center/cover no-repeat;
  overflow:hidden;
}

.v523-hero::after{
  content:"";
  position:absolute;
  inset:24px 20% 88px;
  background:radial-gradient(circle at center, rgba(255,252,247,.78) 0%, rgba(255,252,247,.36) 42%, rgba(255,252,247,0) 74%);
  pointer-events:none;
}

.v523-nav{
  position:relative;
  z-index:2;
  max-width:1240px;
  margin:0 auto;
  padding:34px 32px 0;
  display:flex;
  justify-content:space-between;
  gap:18px;
  flex-wrap:wrap;
}

.v523-nav a{
  font:600 .92rem var(--serif);
  letter-spacing:.14em;
  text-transform:uppercase;
  color:#151515;
  text-decoration:none;
}

.v523-nav a:hover{
  color:var(--gold-dark);
}

.v523-hero-overlay{
  position:relative;
  z-index:2;
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  padding:10px 20px 72px;
}

.v523-monogram{
  width:min(85px, 19vw);
  height:auto;
  display:block;
  margin:0 auto 16px;
}

.v523-hero-copy h1{
  margin:0;
  font-size:clamp(3.8rem, 6.8vw, 5.6rem);
  line-height:.96;
  color:#111;
}

.v523-kicker{
  margin:22px 0 10px;
  font:600 1.02rem var(--serif);
  letter-spacing:.26em;
  text-transform:uppercase;
  color:#6d5841;
}

.v523-divider{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  margin:10px 0 16px;
  color:var(--gold-dark);
}

.v523-divider span{
  width:58px;
  height:1px;
  background:rgba(170,132,66,.55);
  display:block;
}

.v523-divider i{
  font-style:normal;
  font-size:.92rem;
}

.v523-date{
  margin:0;
  font-size:clamp(2rem, 3.6vw, 3rem);
  color:#1e1a18;
}

.v523-venue{
  margin:10px 0 0;
  font-size:1.4rem;
  color:#342d28;
}

.v523-cards-shell{
  position:relative;
  margin-top:-34px;
  padding:72px 84px 40px;
  background:#f7f3ed;
  border-top-left-radius:50% 54px;
  border-top-right-radius:50% 54px;
}

.v523-cards{
  max-width:1080px;
  margin:0 auto;
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:24px;
  align-items:stretch;
}

.v523-card{
  position:relative;
  display:flex;
  flex-direction:column;
  min-height:520px;
  background:#fffdf9;
  border-radius:24px;
  overflow:hidden;
  box-shadow:0 16px 35px rgba(34,28,20,.10);
  text-align:center;
  text-decoration:none;
  color:inherit;
  transition:transform .2s ease, box-shadow .2s ease;
}

.v523-card:hover{
  transform:translateY(-3px);
  box-shadow:0 20px 40px rgba(34,28,20,.14);
}

.v523-card-photo{
  display:block;
  width:100%;
  height:250px;
  object-fit:cover;
}

.v523-card-icon{
  position:absolute;
  left:50%;
  top:214px;
  transform:translateX(-50%);
  width:74px;
  height:74px;
  z-index:3;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#fffdf9;
  box-shadow:0 6px 14px rgba(34,28,20,.10);
}

.v523-card-icon svg{
  width:30px;
  height:30px;
  display:block;
  stroke:#c3a44f;
  stroke-width:1.75;
  stroke-linecap:round;
  stroke-linejoin:round;
  fill:none;
}

.v523-card-icon circle{
  fill:none;
}

.v523-card h3{
  margin:60px 0 18px;
  color:#27211d;
  font-size:2.15rem;
}

.v523-card p{
  max-width:80%;
  margin:0 auto 28px;
  flex:1;
  color:#5e5148;
  line-height:1.72;
  font-size:1.15rem;
}

.v523-homepage-footer{
  text-align:center;
  margin-top:28px;
}

.v523-homepage-footer p{
  margin:8px 0 0;
  color:#6d5841;
  font:600 1rem var(--serif);
  letter-spacing:.24em;
  text-transform:uppercase;
}

.story-photo{
  position:relative;
  overflow:hidden;
  min-height:420px;
  background-image:url("assets/story-photo-v524.jpg");
  background-position:center 42%;
  background-size:cover;
  background-repeat:no-repeat;
  filter:saturate(1.03) brightness(1.03);
}

.story-corner{
  position:absolute;
  width:120px;
  height:120px;
  background:url("assets/leaf-corner-v524b.png") center/contain no-repeat;
  pointer-events:none;
  opacity:.9;
  mix-blend-mode:normal;
}

.story-corner.tl{top:0;left:0}
.story-corner.tr{top:0;right:0;transform:scaleX(-1)}
.story-corner.bl{bottom:0;left:0;transform:scaleY(-1)}
.story-corner.br{bottom:0;right:0;transform:scale(-1,-1)}

@media(max-width:980px){
  .v523-cards-shell{
    padding:64px 24px 34px;
  }

  .v523-cards{
    grid-template-columns:1fr;
    max-width:420px;
  }

  .v523-card{
    min-height:auto;
  }

  .v523-nav{
    justify-content:center;
    row-gap:10px;
  }

  .v523-venue{
    font-size:1.18rem;
  }

  .story-photo{
    min-height:360px;
  }
}


.distance-line{margin-top:-4px;color:#8b7a63;font-size:.92rem;font-style:italic;}
.travel-card .distance-line{margin-bottom:6px;}
.v523-card-photo{background:#efe9df;}
.v523-card-icon{border:1px solid rgba(199,173,128,.28);}

/* =========================================================
   PROJECT EVERGREEN V5.25 — PREMIUM MULTI-GUEST RSVP
========================================================= */

.rsvp-form-v525{
  max-width:1040px;
  background:transparent;
  padding:0;
  box-shadow:none;
}

.rsvp-guest-card,
.rsvp-extra-card{
  margin:0 0 26px;
  padding:32px;
  border:1px solid rgba(195,164,79,.28);
  border-radius:24px;
  background:linear-gradient(145deg,rgba(255,253,249,.98),rgba(248,244,235,.96));
  box-shadow:0 14px 34px rgba(45,38,29,.08);
}

.rsvp-guest-card.is-primary{
  border-color:rgba(73,97,61,.32);
}

.guest-card-heading{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  margin-bottom:26px;
  padding-bottom:18px;
  border-bottom:1px solid rgba(221,216,204,.88);
}

.guest-card-heading > div{
  display:flex;
  align-items:center;
  gap:14px;
}

.guest-card-heading h3{
  font-size:2rem;
  color:var(--olive-dark);
}

.guest-card-heading > p{
  margin:0;
  color:var(--gold);
  font:600 .76rem var(--sans);
  letter-spacing:.15em;
  text-transform:uppercase;
}

.guest-card-heading.compact{
  margin-bottom:22px;
}

.guest-number{
  display:grid;
  place-items:center;
  width:38px;
  height:38px;
  border:1px solid rgba(195,164,79,.48);
  border-radius:50%;
  color:var(--gold);
  font:600 .76rem var(--sans);
  letter-spacing:.08em;
}

.three-fields{
  grid-template-columns:repeat(3,minmax(0,1fr));
}

.attendance-fieldset{
  margin-top:24px;
}

.attendance-choices{
  grid-template-columns:repeat(2,minmax(0,1fr));
}

.guest-toggle{
  position:relative;
  cursor:pointer;
}

.guest-toggle input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}

.guest-toggle span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:132px;
  padding:11px 16px;
  border:1px solid rgba(73,97,61,.35);
  border-radius:999px;
  color:var(--olive-dark);
  background:#fffdf9;
  font:600 .76rem var(--sans);
  letter-spacing:.08em;
  text-transform:uppercase;
  transition:.2s ease;
}

.guest-toggle input:checked + span{
  color:#fff;
  background:var(--olive);
  border-color:var(--olive);
}

.guest-fields[hidden],
.meal-selection[hidden]{
  display:none !important;
}

.meal-selection{
  margin-top:28px;
  padding:26px;
  border-radius:18px;
  background:rgba(239,235,225,.72);
}

.meal-heading{
  margin-bottom:20px;
  text-align:center;
}

.meal-heading > span{
  display:block;
  color:var(--olive-dark);
  font:500 1.7rem var(--serif);
}

.meal-heading p,
.field-help{
  margin:4px 0 0;
  color:var(--muted);
  font-size:.95rem;
}

.menu-course{
  margin:0 0 22px;
}

.menu-course:last-child{
  margin-bottom:0;
}

.menu-options{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}

.menu-options label{
  position:relative;
  cursor:pointer;
}

.menu-options input{
  position:absolute;
  opacity:0;
}

.menu-options label > span{
  display:block;
  min-height:122px;
  padding:20px;
  border:1px solid #d9d2c3;
  border-radius:16px;
  background:#fffdf9;
  color:var(--olive-dark);
  font:600 1.03rem var(--serif);
  transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease;
}

.menu-options label > span small{
  display:block;
  margin-top:8px;
  color:var(--muted);
  font:400 .88rem/1.45 var(--sans);
}

.menu-options input:checked + span{
  border-color:var(--gold);
  box-shadow:0 0 0 3px rgba(195,164,79,.15);
  transform:translateY(-1px);
}

.menu-options input:focus-visible + span,
.guest-toggle input:focus-visible + span{
  outline:3px solid rgba(73,97,61,.22);
  outline-offset:2px;
}

.premium-song-requests{
  margin-top:24px;
}

.premium-song-requests .field-help{
  margin:-4px 0 18px;
}

.premium-submit{
  display:flex;
  margin:8px auto 0;
  min-width:240px;
}

.rsvp-form-v525 #status{
  text-align:center;
}

@media(max-width:850px){
  .three-fields,
  .menu-options,
  .attendance-choices{
    grid-template-columns:1fr;
  }

  .guest-card-heading{
    align-items:flex-start;
    flex-direction:column;
  }

  .guest-toggle span{
    min-width:0;
  }
}

@media(max-width:560px){
  .rsvp-guest-card,
  .rsvp-extra-card{
    padding:22px 18px;
    border-radius:18px;
  }

  .meal-selection{
    padding:20px 14px;
  }
}


/* PROJECT EVERGREEN V5.26 — RSVP finishing refinements */
.message-field{
  display:block;
  margin-top:26px;
}
.message-field textarea{
  min-height:140px;
}
.rsvp-guest-card .form-row:not(.three-fields){
  grid-template-columns:repeat(2,minmax(0,1fr));
}
@media(max-width:700px){
  .rsvp-guest-card .form-row:not(.three-fields){
    grid-template-columns:1fr;
  }
}
