/* ============================================================
   Wedding site — sage green · ivory · garden · regal
   Mobile-first
   ============================================================ */

:root{
  --sage-deep: #4a5840;
  --sage: #6f8064;
  --sage-soft: #8aa07c;
  --sage-tint: #e7eade;
  --ivory: #f7f4ec;
  --ivory-2: #fbf9f3;
  --cream-card: #fffdf8;
  --ink: #3a3f33;
  --ink-soft: #5d6450;
  --gold: #ad8a4e;
  --gold-soft: #c7a86f;
  --line: #d9d6c8;

  --serif: "Cormorant Garamond", Georgia, serif;
  --script: "Pinyon Script", cursive;
  --sans: "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --maxw: 1100px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

*,*::before,*::after{ box-sizing:border-box; }

html{ scroll-behavior:smooth; -webkit-text-size-adjust:100%; }

body{
  margin:0;
  font-family:var(--serif);
  color:var(--ink);
  background:var(--ivory);
  font-size:18px;
  line-height:1.7;
  overflow-x:hidden;
}

img{ max-width:100%; display:block; }
a{ color:var(--sage-deep); }

sup{ font-size:.55em; }

/* ---------- Type helpers ---------- */
.eyebrow{
  font-family:var(--sans);
  font-weight:400;
  text-transform:uppercase;
  letter-spacing:.34em;
  font-size:.7rem;
  color:var(--gold);
  margin:0 0 .9rem;
  text-align:center;
}
.section-title{
  font-family:var(--serif);
  font-weight:500;
  font-size:clamp(2.1rem, 8vw, 3.4rem);
  text-align:center;
  margin:0 0 2.4rem;
  color:var(--sage-deep);
  line-height:1.1;
}

/* ---------- Layout ---------- */
.section{
  padding:5rem 1.4rem;
  max-width:var(--maxw);
  margin-inline:auto;
}
@media(min-width:760px){
  .section{ padding:7rem 2rem; }
}

/* ============================================================
   Buttons
   ============================================================ */
.btn{
  display:inline-block;
  font-family:var(--sans);
  font-weight:400;
  text-transform:uppercase;
  letter-spacing:.22em;
  font-size:.78rem;
  padding:.95em 2.4em;
  border-radius:999px;
  text-decoration:none;
  cursor:pointer;
  border:1px solid transparent;
  transition:transform .35s var(--ease), background .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease);
}
.btn:active{ transform:scale(.97); }
.btn--light{
  color:#fff; border-color:rgba(255,255,255,.8); background:rgba(255,255,255,.06);
  backdrop-filter:blur(2px);
}
.btn--light:hover{ background:#fff; color:var(--sage-deep); }
.btn--solid{
  background:var(--sage-deep); color:var(--ivory-2);
  box-shadow:0 8px 24px -10px rgba(74,88,64,.7);
}
.btn--solid:hover{ background:var(--sage); transform:translateY(-2px); }

/* ============================================================
   Petals canvas
   ============================================================ */
#petals{
  position:fixed; inset:0;
  width:100%; height:100%;
  pointer-events:none;
  z-index:2;
}

/* ============================================================
   Nav
   ============================================================ */
.nav{
  position:fixed; top:0; left:0; right:0;
  z-index:30;
  display:flex; align-items:center; justify-content:space-between;
  padding:.7rem 1.1rem;
  padding-top:calc(.7rem + env(safe-area-inset-top));
  transition:background .4s var(--ease), box-shadow .4s var(--ease), padding .4s var(--ease);
}
.nav.scrolled{
  background:rgba(247,244,236,.92);
  backdrop-filter:blur(10px);
  box-shadow:0 1px 0 var(--line);
}
.nav__brand{ text-decoration:none; }
.nav__monogram{
  font-family:var(--script); font-weight:400;
  font-size:1.9rem; line-height:1;
  color:#fff;
  transition:color .4s var(--ease);
}
.nav.scrolled .nav__monogram{ color:var(--sage-deep); }

.nav__links{
  display:flex; align-items:center; gap:.3rem;
  font-family:var(--sans); font-size:.66rem;
  text-transform:uppercase; letter-spacing:.18em;
}
.nav__links a{
  color:#fff; text-decoration:none;
  padding:.5em .55em; border-radius:6px;
  transition:color .3s, opacity .3s;
  opacity:.92;
  text-shadow:0 1px 6px rgba(0,0,0,.3);
}
.nav.scrolled .nav__links a{ color:var(--ink-soft); text-shadow:none; }
.nav__links a:hover{ opacity:1; color:var(--gold-soft); }
.nav.scrolled .nav__links a:hover{ color:var(--gold); }
.nav__cta{
  border:1px solid rgba(255,255,255,.6);
  border-radius:999px !important;
  padding:.5em 1.1em !important;
}
.nav.scrolled .nav__cta{ border-color:var(--sage); }

@media(max-width:430px){
  .nav__links{ gap:0; font-size:.6rem; }
  .nav__links a{ padding:.5em .4em; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero{
  position:relative;
  min-height:100svh;
  display:flex; flex-direction:column;
  align-items:center; justify-content:center;
  text-align:center;
  padding:6rem 1.4rem 4rem;
  overflow:hidden;
  color:#fff;
}
.hero__bg{
  position:absolute; inset:0;
  background-size:cover; background-position:center 62%;
  transform:scale(1.08);
  animation:heroZoom 14s var(--ease) forwards;
  z-index:0;
}
@keyframes heroZoom{ to{ transform:scale(1); } }
.hero__scrim{
  position:absolute; inset:0; z-index:1;
  background:
    linear-gradient(180deg, rgba(40,46,34,.42) 0%, rgba(40,46,34,.12) 35%, rgba(40,46,34,.30) 70%, rgba(40,46,34,.62) 100%);
}
.hero__inner{
  position:relative; z-index:3;
  max-width:620px;
}
.hero__pre{
  font-family:var(--sans); text-transform:uppercase;
  letter-spacing:.36em; font-size:.72rem; font-weight:300;
  margin:0 0 1.2rem;
  text-shadow:0 1px 10px rgba(0,0,0,.35);
}
.hero__names{
  font-family:var(--script);
  font-weight:400;
  font-size:clamp(3.4rem, 17vw, 7rem);
  line-height:.95;
  margin:.4rem 0 1.4rem;
  text-shadow:0 2px 24px rgba(0,0,0,.4);
}
.hero__names span{ display:block; }
.hero__amp{
  font-size:.5em; color:var(--gold-soft);
  margin:.05em 0;
}
.hero__meta{
  font-family:var(--sans); font-weight:300;
  text-transform:uppercase; letter-spacing:.16em;
  font-size:.74rem;
  display:flex; flex-direction:column; gap:.4rem; align-items:center;
  margin-bottom:2.2rem;
  text-shadow:0 1px 10px rgba(0,0,0,.4);
}

.hero__scroll{
  position:absolute; bottom:1.6rem; left:50%; transform:translateX(-50%);
  z-index:3; width:26px; height:42px;
  border:1.5px solid rgba(255,255,255,.7); border-radius:14px;
}
.hero__scroll span{
  position:absolute; top:8px; left:50%; transform:translateX(-50%);
  width:3px; height:7px; border-radius:2px; background:#fff;
  animation:scrollDot 1.8s var(--ease) infinite;
}
@keyframes scrollDot{ 0%{opacity:0;transform:translate(-50%,0)} 40%{opacity:1} 80%{opacity:0;transform:translate(-50%,12px)} 100%{opacity:0} }

/* Monogram (hero) */
.monogram{
  width:128px; height:128px;
  margin:0 auto .4rem;
  display:block;
}
.monogram .draw{
  fill:none;
  stroke:var(--gold-soft);
  stroke-width:1.4;
  stroke-linecap:round;
  stroke-dasharray:1;
  stroke-dashoffset:1;
}
.monogram.drawn .ring{ animation:drawLine 2s var(--ease) .2s forwards; }
.monogram.drawn .leaf-l{ animation:drawLine 1.5s var(--ease) .9s forwards; }
.monogram.drawn .leaf-r{ animation:drawLine 1.5s var(--ease) 1.1s forwards; }
@keyframes drawLine{ to{ stroke-dashoffset:0; } }

.monogram text{
  font-family:var(--serif); font-weight:500;
  fill:#fff; text-anchor:middle;
  opacity:0;
}
.monogram .mono-left, .monogram .mono-right{ font-size:34px; }
.monogram .mono-amp{ font-size:20px; fill:var(--gold-soft); }
.monogram.drawn text{ animation:fadeIn 1s var(--ease) 1.5s forwards; }
@keyframes fadeIn{ from{opacity:0} to{opacity:1} }

/* ============================================================
   Hero entrance reveal
   ============================================================ */
.reveal-hero{ opacity:0; transform:translateY(24px); }
.hero.lit .reveal-hero{
  animation:heroUp 1s var(--ease) forwards;
}
.hero.lit .reveal-hero[data-d="1"]{ animation-delay:.1s; }
.hero.lit .reveal-hero[data-d="2"]{ animation-delay:.2s; }
.hero.lit .reveal-hero[data-d="3"]{ animation-delay:1.5s; }
.hero.lit .reveal-hero[data-d="4"]{ animation-delay:1.7s; }
.hero.lit .reveal-hero[data-d="5"]{ animation-delay:1.9s; }
.hero.lit .reveal-hero[data-d="6"]{ animation-delay:2.3s; }
.hero.lit .reveal-hero[data-d="7"]{ animation-delay:2.6s; }
.hero.lit .reveal-hero[data-d="8"]{ animation-delay:3s; }
@keyframes heroUp{ to{ opacity:1; transform:none; } }

/* ============================================================
   Scroll reveal (sections)
   ============================================================ */
.reveal{
  opacity:0; transform:translateY(34px);
  transition:opacity .9s var(--ease), transform .9s var(--ease);
  will-change:opacity, transform;
}
.reveal.in-view{ opacity:1; transform:none; }

/* ============================================================
   Details / countdown
   ============================================================ */
.details{ text-align:center; }
.countdown{
  display:flex; justify-content:center; gap:.5rem;
  margin:0 auto 3.5rem;
  max-width:460px;
}
.cd{
  flex:1;
  background:var(--cream-card);
  border:1px solid var(--line);
  border-radius:14px;
  padding:1rem .3rem .8rem;
  box-shadow:0 14px 30px -22px rgba(74,88,64,.5);
}
.cd__num{
  display:block;
  font-family:var(--serif); font-weight:600;
  font-size:clamp(1.7rem, 8vw, 2.7rem);
  line-height:1; color:var(--sage-deep);
  font-variant-numeric:tabular-nums;
}
.cd__lbl{
  display:block; margin-top:.45rem;
  font-family:var(--sans); text-transform:uppercase;
  letter-spacing:.18em; font-size:.56rem; color:var(--ink-soft);
}

.info-grid{
  display:grid; grid-template-columns:1fr 1fr; gap:1rem;
  margin-top:1rem;
}
@media(min-width:760px){ .info-grid{ grid-template-columns:repeat(4,1fr); gap:1.4rem; } }
.info-card{
  background:var(--ivory-2);
  border:1px solid var(--line);
  border-radius:16px;
  padding:1.8rem 1.1rem;
  text-align:center;
}
.info-card__ico{
  display:block; font-size:1.6rem; color:var(--gold);
  margin-bottom:.5rem; line-height:1;
}
.info-card h3{
  font-family:var(--sans); font-weight:400;
  text-transform:uppercase; letter-spacing:.2em; font-size:.7rem;
  color:var(--sage-deep); margin:0 0 .6rem;
}
.info-card p{ margin:0; font-size:1.02rem; color:var(--ink-soft); line-height:1.5; }
.info-card em{ color:var(--gold); font-size:.92em; }

/* ============================================================
   Gallery
   ============================================================ */
.gallery{ text-align:center; }
.gallery__grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:.7rem;
}
@media(min-width:760px){
  .gallery__grid{ grid-template-columns:repeat(3,1fr); gap:1rem; grid-auto-flow:dense; }
}
.gallery__item{
  margin:0; overflow:hidden; border-radius:14px;
  background:var(--sage-tint);
  box-shadow:0 16px 34px -24px rgba(74,88,64,.6);
}
.gallery__item img{
  width:100%; height:100%; object-fit:cover;
  aspect-ratio:3/4;
  transition:transform 1.2s var(--ease);
}
.gallery__item:hover img{ transform:scale(1.05); }
.g-tall img{ aspect-ratio:3/4; }
.g-wide{ grid-column:span 2; }
.g-wide img{ aspect-ratio:16/10; }
@media(min-width:760px){
  .g-tall{ grid-row:span 2; }
  .g-tall img{ aspect-ratio:3/5; }
  .g-wide{ grid-column:span 2; }
  .g-wide img{ aspect-ratio:16/9; }
}

/* ============================================================
   Divider band
   ============================================================ */
.divider{
  position:relative;
  min-height:46vh;
  display:flex; align-items:center; justify-content:center;
  text-align:center;
  overflow:hidden;
}
.divider__bg{
  position:absolute; inset:0;
  background-size:cover; background-position:center 40%;
}
.divider::after{
  content:""; position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(58,63,51,.55), rgba(58,63,51,.4));
}
.divider__quote{
  position:relative; z-index:2;
  font-family:var(--script); color:#fff;
  font-size:clamp(2rem, 8vw, 3.4rem);
  padding:1rem 1.4rem; margin:0;
  text-shadow:0 2px 20px rgba(0,0,0,.5);
}
@media(min-width:760px){
  .divider{ background-attachment:fixed; }
  .divider__bg{ background-attachment:fixed; }
}

/* ============================================================
   Schedule timeline
   ============================================================ */
.schedule{ background:transparent; }
.timeline{
  list-style:none; margin:0 auto; padding:0;
  max-width:640px;
  position:relative;
}
.timeline::before{
  content:""; position:absolute;
  left:14px; top:8px; bottom:8px;
  width:2px; background:linear-gradient(var(--sage-soft), var(--line));
}
@media(min-width:680px){ .timeline::before{ left:50%; transform:translateX(-50%); } }

.timeline__item{
  position:relative;
  padding:0 0 2.6rem 3.2rem;
}
.timeline__item::before{
  content:""; position:absolute;
  left:6px; top:.55rem;
  width:18px; height:18px; border-radius:50%;
  background:var(--cream-card);
  border:2px solid var(--gold);
  box-shadow:0 0 0 4px var(--ivory);
}
.timeline__item:last-child{ padding-bottom:0; }

@media(min-width:680px){
  .timeline__item{ width:50%; padding:0 0 3rem; }
  .timeline__item:nth-child(odd){ left:0; padding-right:3rem; text-align:right; }
  .timeline__item:nth-child(even){ left:50%; padding-left:3rem; }
  .timeline__item::before{ left:auto; }
  .timeline__item:nth-child(odd)::before{ right:-9px; left:auto; }
  .timeline__item:nth-child(even)::before{ left:-9px; }
}

.timeline__time{
  font-family:var(--sans); font-weight:500;
  text-transform:uppercase; letter-spacing:.16em;
  font-size:.78rem; color:var(--gold);
  margin-bottom:.3rem;
}
.timeline__body h3{
  font-family:var(--serif); font-weight:600;
  font-size:1.5rem; color:var(--sage-deep); margin:0 0 .35rem; line-height:1.15;
}
.timeline__place{ margin:0; font-weight:500; color:var(--ink); }
.timeline__addr{ margin:.2rem 0 .4rem; font-size:.98rem; color:var(--ink-soft); }
.timeline__map{
  font-family:var(--sans); font-size:.7rem; text-transform:uppercase;
  letter-spacing:.14em; text-decoration:none; color:var(--sage);
  border-bottom:1px solid var(--gold-soft); padding-bottom:1px;
}
.timeline__map:hover{ color:var(--sage-deep); }

/* ============================================================
   FAQ
   ============================================================ */
.faq{ background:transparent; }
.faq__list{ max-width:680px; margin:0 auto; }
.faq__item{
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--ivory-2);
  margin-bottom:.85rem;
  overflow:hidden;
}
.faq__item summary{
  cursor:pointer; list-style:none;
  padding:1.15rem 3rem 1.15rem 1.3rem;
  position:relative;
  font-family:var(--serif); font-weight:500;
  font-size:1.18rem; color:var(--sage-deep);
}
.faq__item summary::-webkit-details-marker{ display:none; }
.faq__item summary::after{
  content:"+"; position:absolute; right:1.2rem; top:50%;
  transform:translateY(-50%);
  font-family:var(--sans); font-weight:300; font-size:1.5rem;
  color:var(--gold); transition:transform .35s var(--ease);
  line-height:1;
}
.faq__item[open] summary::after{ transform:translateY(-50%) rotate(45deg); }
.faq__a{
  padding:0 1.3rem 1.2rem;
  color:var(--ink-soft); font-size:1.02rem;
}
.faq__a p{ margin:0; }

/* ============================================================
   RSVP call-to-action band
   ============================================================ */
.rsvp-cta{
  text-align:center;
  background:var(--sage-tint);
  padding:5rem 1.4rem;
}
@media(min-width:760px){ .rsvp-cta{ padding:6rem 2rem; } }
.rsvp-cta .section-title{ margin-bottom:.6rem; }
.rsvp-cta__deadline{
  font-family:var(--sans); text-transform:uppercase;
  letter-spacing:.2em; font-size:.72rem; color:var(--gold);
  margin:0 0 2rem;
}

/* ============================================================
   RSVP
   ============================================================ */
.rsvp{ text-align:center; }
.rsvp__deadline{
  font-family:var(--sans); text-transform:uppercase;
  letter-spacing:.2em; font-size:.72rem; color:var(--gold);
  margin:-1.4rem 0 2.6rem;
}
.rsvp__form{
  max-width:520px; margin:0 auto; text-align:left;
}
.field{ display:block; margin-bottom:1.4rem; border:0; padding:0; }
.field__label{
  display:block;
  font-family:var(--sans); font-weight:400;
  text-transform:uppercase; letter-spacing:.14em;
  font-size:.68rem; color:var(--ink-soft);
  margin-bottom:.55rem;
}
.field__label small{ text-transform:none; letter-spacing:0; opacity:.7; font-size:.85em; }
.field input[type=text],
.field input[type=email],
.field textarea,
.field__select{
  width:100%;
  font-family:var(--serif); font-size:1.1rem; color:var(--ink);
  background:var(--ivory-2);
  border:1px solid var(--line); border-radius:12px;
  padding:.85rem 1rem;
  transition:border-color .3s, box-shadow .3s;
}
.field input:focus,
.field textarea:focus,
.field__select:focus{
  outline:none; border-color:var(--sage);
  box-shadow:0 0 0 3px rgba(111,128,100,.15);
}
.field textarea{ resize:vertical; }

/* Select — custom caret, native menu */
.field__select{
  appearance:none; -webkit-appearance:none; -moz-appearance:none;
  cursor:pointer;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23ad8a4e' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 1.1rem center;
  padding-right:2.6rem;
}

/* Honeypot — visually & functionally hidden from people */
.hp{
  position:absolute !important;
  left:-9999px !important;
  width:1px; height:1px;
  opacity:0; overflow:hidden;
}

.choice-row{ display:flex; gap:.8rem; }
.choice-row .choice{ flex:1; }
.choice{
  position:relative; display:block;
}
.choice input{ position:absolute; opacity:0; inset:0; cursor:pointer; }
.choice span{
  display:block; text-align:center;
  padding:.9rem 1rem;
  border:1px solid var(--line); border-radius:12px;
  background:var(--ivory-2);
  font-size:1.02rem; color:var(--ink-soft);
  cursor:pointer;
  transition:all .3s var(--ease);
}
.choice--block span{ text-align:left; margin-bottom:.7rem; }
.choice input:checked + span{
  border-color:var(--sage);
  background:var(--sage-tint);
  color:var(--sage-deep);
  box-shadow:0 0 0 1px var(--sage) inset;
  font-weight:500;
}
.choice input:focus-visible + span{ box-shadow:0 0 0 3px rgba(111,128,100,.3); }

.branch{ animation:slideDown .45s var(--ease); }
@keyframes slideDown{ from{opacity:0; transform:translateY(-8px)} to{opacity:1; transform:none} }

.rsvp__note{
  background:var(--sage-tint); border-radius:12px;
  padding:1.1rem 1.2rem; color:var(--sage-deep);
  font-size:1.1rem; text-align:center; margin:0 0 1.4rem;
}
.rsvp__form .btn--solid{ width:100%; margin-top:.4rem; }
.rsvp__status{
  text-align:center; font-family:var(--sans); font-size:.85rem;
  margin:1rem 0 0; min-height:1.2em;
}
.rsvp__status.error{ color:#a5402f; }

/* Success */
.rsvp__success{
  max-width:480px; margin:0 auto; text-align:center;
  background:var(--ivory-2); border:1px solid var(--line);
  border-radius:18px; padding:3rem 1.6rem;
}
.rsvp__success h3{
  font-family:var(--serif); font-weight:600; font-size:2rem;
  color:var(--sage-deep); margin:.6rem 0 .4rem;
}
.rsvp__success p{ margin:0; color:var(--ink-soft); font-size:1.1rem; }
.check{ width:64px; height:64px; }
.check circle{ fill:none; stroke:var(--sage); stroke-width:2;
  stroke-dasharray:151; stroke-dashoffset:151; animation:drawCheck .6s var(--ease) forwards; }
.check path{ fill:none; stroke:var(--gold); stroke-width:3; stroke-linecap:round; stroke-linejoin:round;
  stroke-dasharray:40; stroke-dashoffset:40; animation:drawCheck .4s var(--ease) .5s forwards; }
@keyframes drawCheck{ to{ stroke-dashoffset:0; } }

/* ============================================================
   Footer
   ============================================================ */
.footer{
  background:var(--sage-deep); color:var(--ivory);
  text-align:center; padding:3.5rem 1.4rem 4rem;
}
.footer__mono{ width:74px; height:74px; margin:0 auto .6rem; }
.footer__mono ellipse{ fill:none; stroke:var(--gold-soft); stroke-width:1; }
.footer__mono text{ font-family:var(--serif); font-weight:500; fill:var(--ivory); text-anchor:middle; font-size:20px; }
.footer__mono .footer__amp{ font-size:13px; fill:var(--gold-soft); }
.footer__names{
  font-family:var(--script); font-size:2.4rem; margin:.2rem 0 .3rem; line-height:1;
}
.footer__date{
  font-family:var(--sans); text-transform:uppercase; letter-spacing:.2em;
  font-size:.7rem; opacity:.85; margin:0 0 1.4rem;
}
.footer__credit{
  font-family:var(--sans); font-size:.66rem; text-transform:uppercase;
  letter-spacing:.2em; opacity:.6; margin:0;
}
.footer__credit{ color:var(--gold-soft); }

/* ============================================================
   Envelope intro
   ============================================================ */
#envelope-intro{
  position:fixed; inset:0; z-index:60;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  background:radial-gradient(circle at 50% 40%, #6f8064, #4a5840 70%);
  cursor:pointer;
  transition:opacity 1s var(--ease), visibility 1s;
}
#envelope-intro.gone{ opacity:0; visibility:hidden; pointer-events:none; }

.env{
  position:relative;
  width:min(78vw, 340px);
  aspect-ratio:7/5;
  perspective:900px;
}
.env__back{
  position:absolute; inset:0;
  background:#f3efe4; border-radius:8px;
  box-shadow:0 30px 60px -20px rgba(0,0,0,.5);
}
.env__letter{
  position:absolute; left:6%; right:6%; top:8%;
  height:0; background:var(--cream-card);
  border-radius:6px 6px 0 0;
  display:flex; align-items:center; justify-content:center;
  overflow:hidden;
  transition:height .9s var(--ease) .15s, top .9s var(--ease) .15s;
  z-index:1;
  box-shadow:0 -6px 18px -8px rgba(0,0,0,.2);
}
.env-monogram{ width:60%; max-width:150px; opacity:0; transition:opacity .6s ease .7s; }
.env-monogram .draw{ fill:none; stroke:var(--gold); stroke-width:1.5;
  stroke-dasharray:1; stroke-dashoffset:1; }
.env-monogram text{ font-family:var(--serif); fill:var(--sage-deep); text-anchor:middle; }
.env-monogram .env-mono-left,.env-monogram .env-mono-right{ font-size:34px; }
.env-monogram .env-mono-amp{ font-size:20px; fill:var(--gold); }

.env__front{
  position:absolute; inset:0;
  background:linear-gradient(160deg,#f7f3e8,#ece6d6);
  border-radius:8px;
  clip-path:polygon(0 38%, 50% 100%, 100% 38%, 100% 100%, 0 100%);
  z-index:3;
}
.env__flap{
  position:absolute; left:0; right:0; top:0; height:64%;
  background:linear-gradient(160deg,#efe9da,#e2dcc9);
  clip-path:polygon(0 0, 100% 0, 50% 100%);
  transform-origin:top center;
  transition:transform .8s var(--ease);
  z-index:5; backface-visibility:hidden;
  border-radius:8px 8px 0 0;
}
.env__seal{
  position:absolute; left:50%; top:38%; transform:translate(-50%,-50%);
  width:54px; height:54px; border-radius:50%;
  background:radial-gradient(circle at 35% 30%, #c7a86f, #9b7636);
  box-shadow:0 4px 12px -2px rgba(0,0,0,.4), inset 0 0 0 2px rgba(255,255,255,.18);
  display:flex; align-items:center; justify-content:center;
  z-index:7;
  transition:opacity .4s ease, transform .5s var(--ease);
}
.env__seal span{ font-family:var(--serif); color:#fff8e9; font-size:1.5rem; }

/* opening states */
#envelope-intro.opening .env__flap{ transform:rotateX(180deg); z-index:1; }
#envelope-intro.opening .env__seal{ opacity:0; transform:translate(-50%,-50%) scale(.6); }
#envelope-intro.opening .env__letter{ height:150%; top:-60%; }
#envelope-intro.opening .env-monogram{ opacity:1; }
#envelope-intro.opening .env-monogram .draw{ animation:drawLine 1.6s var(--ease) .7s forwards; }

.env__hint{
  margin-top:2rem;
  font-family:var(--sans); text-transform:uppercase; letter-spacing:.28em;
  font-size:.66rem; color:rgba(255,255,255,.8);
  animation:pulse 2.2s ease-in-out infinite;
}
#envelope-intro.opening .env__hint{ opacity:0; transition:opacity .3s; }
@keyframes pulse{ 0%,100%{opacity:.4} 50%{opacity:.95} }

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce){
  *{ animation-duration:.001ms !important; animation-iteration-count:1 !important;
     transition-duration:.001ms !important; scroll-behavior:auto !important; }
  .hero__bg{ transform:none; }
  .reveal, .reveal-hero{ opacity:1 !important; transform:none !important; }
  #petals{ display:none; }
}
