 *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  :root {
    --cream: #faf8f3;
    --warm-white: #fffdf9;
    --gold: #EBCB75;
    --gold-light: #e8d5b0;
    --gold-dark: #a07840;
    --text-dark: #A0A168;
    --text-mid: #5a4a32;
    --text-light: #9a8468;
    --border: rgba(201,169,110,0.3);
    --section-bg: #fdf9f2;
  }
  html { scroll-behavior: smooth; }
  body { font-family: 'Cormorant Garamond', serif; background: var(--cream); color: var(--text-dark); overflow-x: hidden; }

  /* ════════════ ENVELOPE SCREEN ════════════ */
  #envelope-screen {
    
    position: fixed; inset: 0; z-index: 9999;
    background: linear-gradient(145deg, #f6f0e9 0%, #f6f0e9 45%, #f6f0e9 100%);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    transition: opacity 0.9s ease, visibility 0.9s ease;
  }
  #envelope-screen.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

  .env-hint {
    font-family: 'Josefin Sans', sans-serif; font-size: 12px;
    letter-spacing: 0.45em; text-transform: uppercase; color: var(--text-light);
    margin-bottom: 0px;
  }
  @keyframes envPulse { 0%,100%{opacity:0.4} 50%{opacity:1} }

.env {
    cursor: pointer;
    transition: transform 0.4s ease;
   min-height: auto; max-height: 100%; width: auto; max-width: 117%;
   margin-top: 50px;

}

.env:hover {
    transform: scale(1.02);
}
  .envelope-wrap {
    perspective: 1000px; cursor: pointer; position: relative;
    filter: drop-shadow(0 24px 60px rgba(44,36,24,0.22));
    transition: filter 0.3s;
  }
  .envelope-wrap:hover { filter: drop-shadow(0 28px 70px rgba(44,36,24,0.28)); }

  .env-body { width: 400px; height: 270px; position: relative; }

  /* Base / back of envelope */
  .env-base {
    position: absolute; inset: 0;
    background: linear-gradient(168deg, #e4d8c0 0%, #d6c8a4 100%);
    border-radius: 4px;
  }


  /* Wax seal on envelope - positioned on top */
  .env-seal {
    position: absolute; top: 53%; left: 50%; z-index: 5;
    transform: translate(-50%, -50%);
    width: 100px; height: 100px;
    
    border-radius: 50%;
   
    display: flex; align-items: center; justify-content: center;
    font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 17px;
    color: rgba(255, 215, 170, 0.92); letter-spacing: -1px;
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
  }
  .env-seal.break { transform: translate(-50%, -50%) scale(1.2) rotate(15deg); opacity: 0; }
 
  /* Inner decorative border */
  .env-inner-border {
    position: absolute; inset: 8px;
    border: 1px solid rgba(201,169,110,0.3);
    border-radius: 2px; pointer-events: none; z-index: 6;
  }

  .env-open-btn {
    
    font-family: 'Josefin Sans', sans-serif; font-size: 12px;
    letter-spacing: 0.42em; text-transform: uppercase;
    color: var(--text-light); background: none;
    border: 1px solid rgba(201,169,110,0.4); padding: 0.85rem 2.2rem;
    cursor: pointer; border-radius: 2px;
    transition: color 0.25s, border-color 0.25s, background 0.25s;
    margin-top: 60px;
  }
  .env-open-btn:hover { color: var(--gold-dark); border-color: var(--gold); background: rgba(201,169,110,0.07); }

  /* Petal particles */
  .petal { position: fixed; pointer-events: none; font-size: 16px; opacity: 0; animation: petalDrift 3.2s ease-out forwards; z-index: 9998; }
  @keyframes petalDrift {
    0%   { opacity: 0; transform: translateY(0) rotate(0deg) scale(0.4); }
    12%  { opacity: 0.85; }
    100% { opacity: 0; transform: translateY(220px) rotate(400deg) scale(1.1); }
  }

  /* ════════════ MAIN SITE ════════════ */
  #main-site { opacity: 0; visibility: hidden; transition: opacity 1.1s ease 0.2s, visibility 1.1s ease 0.2s; }
  #main-site.visible { opacity: 1; visibility: visible; }

  /* NAV */
  nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(250,248,243,0.96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: center; gap: 3rem; height: 58px; transition: box-shadow 0.3s; }
  nav.scrolled { box-shadow: 0 2px 20px rgba(44,36,24,0.08); }
  nav a { font-family: 'Josefin Sans', sans-serif; font-size: 10px; font-weight: 300; letter-spacing: 0.25em; text-transform: uppercase; color: var(--text-mid); text-decoration: none; transition: color 0.25s; padding: 0.25rem 0; position: relative; }
  nav a::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px; background: var(--gold); transform: scaleX(0); transition: transform 0.25s; }
  nav a:hover { color: var(--gold-dark); }
  nav a:hover::after { transform: scaleX(1); }


 

  /* HERO */
.hero {
  min-height: 100vh;

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

  text-align: center;

  padding: 150px 2rem 5rem;

  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
 position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

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

  opacity: 0;

  transition: opacity 1.2s ease;

  pointer-events: none;
}

.hero-bg.active {
  opacity: 1;
}

/* Dark/soft overlay */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;

  background: rgba(0, 0, 0, 0.15);

  pointer-events: none;

  z-index: -1;
}

.hero > .hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero > .hero-bg.active {
  opacity: 1;
}

.hero > .hero-bg:not(.active) {
  opacity: 0;
}

  .ornament { color: var(--gold); font-size: 1rem; letter-spacing: 0.4em; margin-bottom: 1.5rem; opacity: 0.65; animation: fadeUp 1s ease both; }
  .hero-tag { font-family: 'Josefin Sans', sans-serif; font-size: 15px; font-style: bold; font-weight: 300; letter-spacing: 0.4em; text-transform: uppercase; color: var(--warm-white); margin-bottom: 1.5rem; animation: fadeUp 1s ease 0.15s both; }
  .hero-names { font-size: clamp(3.0rem, 8vw, 6.5rem); font-weight: 300; font-style: italic; line-height: 1.05; color: var(--warm-white); position: relative; z-index: 1; animation: fadeUp 1s ease 0.3s both; }
  .hero-ampersand { color: var(--gold); font-size: clamp(5rem, 12vw, 9rem); line-height: 0.85; display: block; }
  .hero-date-line { font-family: 'Josefin Sans', sans-serif; font-size: clamp(1.0rem, 1vw, 1.0rem); font-weight: 300; letter-spacing: 0.40em; text-transform: uppercase; color: var(--gold); margin: 2rem 0 0.5rem; display: flex; align-items: center; gap: 1.5rem; animation: fadeUp 1s ease 0.45s both; }
  .hero-date-line::before, .hero-date-line::after { content: ''; flex: 1; max-width: 70px; height: 1px; background: var(--border); }
  .hero-photos img { object-fit: cover; border-radius: 2px; filter: sepia(12%) contrast(0.95) brightness(1.05); transition: filter 0.4s, transform 0.4s; }
  .hero-photos img:hover { filter: sepia(0%) contrast(1) brightness(1.08); transform: scale(1.02); }
  .photo-main { width: 340px; height: 430px; }
  .photo-side { width: 200px; height: 285px; }
  .scroll-hint { margin-top: 3rem; font-family: 'Josefin Sans', sans-serif; font-size: 15px; letter-spacing: 0.4em; text-transform: uppercase; color: var(--warm-white); animation: bounce 2.5s ease-in-out infinite; }
  @keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
  @keyframes bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(7px); } }

  /* SECTIONS */
  .section-wrap { padding: 7rem 2rem; }
  .section-inner { max-width: 920px; margin: 0 auto; }
  .divider { display: flex; align-items: center; gap: 1.5rem; margin: 0 auto 3.5rem; max-width: 280px; }
  .divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
  .diamond { width: 8px; height: 8px; background: var(--text-dark); transform: rotate(45deg); flex-shrink: 0; }
  .section-tag { font-family: 'Josefin Sans', sans-serif; font-size: 10px; font-weight: 300; letter-spacing: 0.38em; text-transform: uppercase; color: var(--warm-white); text-align: center; margin-bottom: 0.75rem; }
  .section-title { font-size: clamp(2rem, 5vw, 3rem); font-weight: 300; font-style: italic; text-align: center; color: var(--text-dark); margin-bottom: 2.5rem; line-height: 1.2; }
  .section-title2 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 300; font-style: italic; text-align: center; color: var(--warm-white); line-height: 1.2; }

  /* STORY */
  .story-wrap { background: var(--warm-white); } 
  .story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4.5rem; align-items: center; }
  .photo-frame { position: relative; }
  .photo-frame img { width: 100%; height: 600px; object-fit: cover; border-radius: 2px; filter: sepia(8%) contrast(0.95) brightness(1.05); display: block; }
  .photo-frame-border { position: absolute; bottom: -1.5rem; right: -1.5rem; width: 58%; height: 55%; border: 1px solid var(--gold-light); border-radius: 2px; pointer-events: none; }
  .story-body p { font-size: 1.2rem; font-weight: 300; line-height: 1.95; color: var(--text-mid); margin-bottom: 1.5rem; }
  .pull-quote { font-size: 1.45rem; font-style: italic; color: var(--gold-dark); border-left: 2px solid var(--gold-light); padding-left: 1.5rem; margin: 2.25rem 0; line-height: 1.65; }

  /* DETAILS */
  .timeline-section {
    background: var(--text-dark); padding: 6rem 2rem; position: relative; overflow: hidden;
 
}
.timeline-section::before {
   content: "";
    position: absolute;
    inset: 0;
    background-image: url(/Images/pattern-floral.avif);
    opacity: 0.22;
    z-index: 0;
}
/* Decorative swirl behind */
.timeline-swirl {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  font-family: 'Josefin Sans', sans-serif; font-size: 18rem; color: rgba(255,255,255,0.03);
  pointer-events: none; white-space: nowrap; user-select: none;
}
.timeline-inner { max-width: 680px; margin: 0 auto; }
.timeline-heading { font-size: clamp(2rem, 5vw, 3rem); font-weight: 300; font-style: italic; text-align: center; color: var(--warm-white); margin-bottom: 2.5rem; line-height: 1.2; }
.timeline-heading2 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 300; font-style: italic; text-align: center; color: var(--text-dark); margin-bottom: 2.5rem; line-height: 1.2; }

.timeline-items { display: flex; flex-direction: column; gap: 3rem; }
.tl-item { display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; gap: 1.5rem; }
.tl-item:nth-child(even) .tl-time { order: 3; text-align: left; }
.tl-item:nth-child(even) .tl-dot { order: 2; }
.tl-item:nth-child(even) .tl-info { order: 1; text-align: right; }
.tl-time { font-size: 3rem; font-weight: 300; color: rgba(255,255,255,0.9); line-height: 1; padding-top: 0.1rem; }
.tl-dot { display: flex; flex-direction: column; align-items: center; gap: 0; }
.tl-dot-circle { width: 12px; height: 12px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.4); background: var(--burg-dark); flex-shrink: 0; margin-top: 0.4rem; }

.tl-title { font-family: 'Jost', sans-serif; font-size: 12px; font-weight: 400; letter-spacing: 0.25em; text-transform: uppercase; color: rgba(255, 253, 253, 0.977); margin-bottom: 0.4rem; }
.tl-desc { font-size: 1.0rem; font-weight: 300; color: rgba(255, 255, 255, 0.877); line-height: 1.6; font-style: italic; }
 
/* ── DRESS CODE ── */
.dress-section { background: var(--parchment); padding: 6rem 2rem; }
.dress-inner { max-width: 720px; margin: 0 auto; text-align: center; }
.swatch-grid { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 2rem 0; }
.swatch {
  width: 44px; height: 44px; border-radius: 50%;
  box-shadow: 0 2px 8px rgba(42,26,16,0.18);
  transition: transform 0.2s; cursor: default;
}
.swatch:hover { transform: scale(1.12); }
.dress-note { font-size: 0.9rem; font-weight: 300; color: var(--text-mid); line-height: 1.75; max-width: 520px; margin: 0 auto 2.5rem; }
.dress-outfit-row {
  display: flex; gap: 1.5rem; justify-content: center; align-items: flex-end;
  margin-top: 1.5rem;
}
.outfit-card {
  width: 130px; text-align: center;
  padding: 1.2rem 0.75rem 0.75rem;
  border: 1px solid rgba(184,149,106,0.2);
  background: var(--cream); border-radius: 2px;
}
.outfit-icon { font-size: 2.5rem; margin-bottom: 0.5rem; }
.outfit-label { font-size: 8px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--text-light); }
 
  /* COUNTDOWN */
  .countdown-wrap { background-image: url(/Images/field.jpg); background-size: cover; opacity: 1.90; /* adjust this */
  z-index: 0;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;}
  .countdown-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(57, 55, 45, 0.403);
    z-index: 0;
  }
  h2.section-title2 { position:relative; z-index:1; color:#f5f5f5; margin:0;  font-size: clamp(2rem, 5vw, 3rem); font-weight: 300; font-style: italic; }
  .countdown-label { font-family: 'Josefin Sans', sans-serif; font-size: 32px; letter-spacing: 0.4em; text-transform: uppercase; color: var(--warm-white); margin-bottom: 2.6rem; }
  .countdown-grid { display: flex; justify-content: center; gap: 0.25rem; flex-wrap: wrap; }
  .countdown-unit { text-align: center; }
  .countdown-number { font-size: clamp(3rem, 8vw, 5rem); font-weight: 300; font-style: italic; color: var(--warm-white); line-height: 1; display: block; }
  .countdown-unit-label { font-family: 'Josefin Sans', sans-serif; font-size: 15px; text-transform: uppercase; color: var(--warm-white); margin-top: 0.9rem; }
  .countdown-sep { font-size: clamp(2.5rem, 6vw, 4rem); color: var(--gold); opacity: 0.3; line-height: 1; align-self: flex-start; padding-top: 0.1rem; font-weight: 300; }

  /* VENUE */
  .venue-wrap { background: var(--section-bg); }
  .venue-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: start; }
  .venue-info h3 { font-size: 1.75rem; font-weight: 300; font-style: italic; color: var(--text-dark); margin-bottom: 1rem; }
  .venue-info > p { font-size: 1.1rem; color: var(--text-mid); line-height: 1.8; margin-bottom: 1.5rem; }
  .venue-rows { border-top: 1px solid var(--border); }
  .venue-row { display: flex; gap: 1rem; align-items: flex-start; padding: 0.9rem 0; border-bottom: 1px solid var(--border); font-size: 1rem; color: var(--text-mid); line-height: 1.6; }
  .vr-label { font-family: 'Josefin Sans', sans-serif; font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-light); min-width: 78px; padding-top: 3px; flex-shrink: 0; }
  .map-block { border-radius: 2px; overflow: hidden; border: 1px solid var(--border); }
  .map-block iframe { width: 100%; height: 310px; border: none; display: block; }
  .map-btn { display: block; text-align: center; padding: 0.9rem 1rem; background: var(--gold); color: white; text-decoration: none; font-family: 'Josefin Sans', sans-serif; font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; transition: background 0.25s; }
  .map-btn:hover { background: var(--text-dark); }

  /* GALLERY */
  .gallery-strip { overflow-x: auto; display: flex; gap: 0.75rem; padding: 0 2rem; scrollbar-width: none; }
  .gallery-strip::-webkit-scrollbar { display: none; }
  .gallery-strip img { height: 260px; width: auto; object-fit: cover; border-radius: 2px; flex-shrink: 0; filter: sepia(8%) contrast(0.95); transition: filter 0.3s, transform 0.3s; }
  .gallery-strip img:hover { filter: sepia(0%) contrast(1); transform: scale(1.02); }
  .gallery-label { font-family: 'Josefin Sans', sans-serif; font-size: 15px; letter-spacing: 0.4em; text-transform: uppercase; color: var(--text-light); text-align: center; padding: 2rem 0 0.5rem; }

  /* REGISTRY */
  .registry-wrap {
  background: var(--cream);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}
  .registry-text { max-width: 760px; margin: 0.25rem auto 0; text-align: center; color: var(--text-mid); font-size: 1.2rem; line-height: 1.8; }
  .btn-registry { display: inline-block; padding: 0.9rem 1.05rem; background: var(--gold); color: var(--cream); text-decoration: none; border-radius: 2px; font-family: 'Josefin Sans', sans-serif; font-size: 10px; letter-spacing: 0.35em; text-transform: uppercase; transition: background 0.2s, transform 0.08s; }
  .btn-registry:hover { background: var(--text-dark); color: var(--warm-white); transform: translateY(-2px); }

  /* RSVP */
  /* Ornate frame card */
.rsvp-card {
  background: var(--text-dark); color: var(--warm-white);
  border-radius: 3px; padding: 3.5rem 3rem;
  position: relative; overflow: hidden;
}
.rsvp-card::before {
  content: '';
  position: absolute; inset: 10px;
  border: 1px solid rgba(255,255,255,0.15); border-radius: 2px;
  box-shadow: inset 0 0 0 6px rgba(255,255,255,0.04);
}
/* Corner decorations */
.rsvp-card::after {
  content: '✦';
  position: absolute; bottom: 18px; right: 22px;
  font-size: 0.7rem; color: var(--warm-white); opacity: 0.35; transform: rotate(45deg);
   pointer-events: none;
}
  .rsvp-wrap { background-image: url(/Images/sunflowers.avif); background-size: cover; padding: 6rem 2rem; }
  .rsvp-inner { max-width: 600px; margin: 0 auto; }
  .rsvp-intro { font-size: 1.15rem; color: var(--warm-white); line-height: 1.85; text-align: center; margin-bottom: 3rem; margin-top: 0.5rem; }
  .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
  .form-group { position: relative;
    z-index: 2; }
  label.field-label { font-family: 'Josefin Sans', sans-serif; font-size: 9px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--warm-white); margin-bottom: 0.5rem; }
  input[type="text"], input[type="email"], select, textarea { font-family: 'Cormorant Garamond', serif; font-size: 1rem; color: var(--text-dark); background: var(--cream); border: 1px solid var(--border); border-radius: 2px; padding: 0.75rem 1rem; outline: none; transition: border-color 0.25s, box-shadow 0.25s; width: 100%; appearance: none; -webkit-appearance: none; }
  input:focus, select:focus, textarea:focus { border-color: var(--warm-white); box-shadow: 0 0 0 3px rgba(201,169,110,0.15); }
  textarea { resize: vertical; min-height: 110px; }
  .radio-group { display: flex; gap: 2rem; margin-top: 0.5rem; align-items: center; }
  .radio-opt { display: flex; align-items: center; gap: 0.6rem; cursor: pointer; font-size: 1.05rem; color: var(--warm-white); transition: color 0.2s; }
  .radio-opt input { width: auto; margin: 0; cursor: pointer; accent-color: var(--gold); }
  .radio-opt:hover { color: var(--text-dark); }
  .btn-submit {   position: relative;
    z-index: 1000; width: 100%; padding: 1.05rem; margin-top: 1.75rem; background: var(--gold); color: var(--cream); border: none; cursor: pointer; border-radius: 2px; font-family: 'Josefin Sans', sans-serif; font-size: 10px; letter-spacing: 0.45em; text-transform: uppercase; transition: background 0.25s, transform 0.15s; }
  .btn-submit:hover { background: var(--gold); }
  .btn-submit:active { transform: scale(0.99); }
  .rsvp-note { margin-top: 1.25rem; font-size: 0.9rem; color: var(--warm-white); font-style: italic; text-align: center; }
  .success-msg { display: none; text-align: center; padding: 3.5rem 2rem; border: 1px solid var(--gold-light); background: #fdf9f0; border-radius: 2px; }
  .success-msg .s-icon { font-size: 2.5rem; color: var(--gold); margin-bottom: 1rem; }
  .success-msg h3 { font-size: 2.2rem; font-weight: 300; font-style: italic; color: var(--text-dark); margin-bottom: 0.75rem; }
  .success-msg p { color: var(--text-mid); font-size: 1.1rem; line-height: 1.7; }
  .success-msg .sig { font-style: italic; color: var(--text-light); margin-top: 1rem; }

  /* FOOTER */
  footer { background: var(--text-dark); color: var(--warm-white); text-align: center; padding: 4rem 2rem 3rem; }
  .footer-names { font-size: 3rem; font-weight: 300; font-style: italic; margin-bottom: 0.5rem; }
  .footer-date { font-family: 'Josefin Sans', sans-serif; font-size: 10px; letter-spacing: 0.4em; text-transform: uppercase; opacity: 0.45; margin-bottom: 2.5rem; }
  .footer-divider { width: 60px; height: 1px; background: var(--gold); opacity: 0.3; margin: 0 auto 2rem; }
  .footer-links { display: flex; justify-content: center; gap: 2.5rem; flex-wrap: wrap; }
  .footer-links a { font-family: 'Josefin Sans', sans-serif; font-size: 9px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--warm-white); opacity: 0.5; text-decoration: none; transition: opacity 0.2s; }
  .footer-links a:hover { opacity: 1; }
  .footer-made { margin-top: 2.5rem; font-family: 'Josefin Sans', sans-serif; font-size: 9px; letter-spacing: 0.15em; opacity: 0.2; }

  /* RESPONSIVE */
  @media (max-width: 720px) {
    .story-grid, .details-grid, .venue-grid { grid-template-columns: 1fr; }
    .details-grid { grid-template-columns: 1fr 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .hero-photos { flex-direction: column; align-items: center;  }
    .photo-side { width: 300px; height: 220px; }
    .photo-main { width: 300px; height: 380px; }
    .photo-frame-border { display: none; }
    nav { gap: 1.5rem; }
    .countdown-grid { gap: 1.3rem; }
    .env-body { width: 510px; height: 310px; }
    .env-letter { left: 16px; right: 16px; height: 160px; }
    .env-letter.rise { transform: translateY(-152px); }
    .env-seal { width: 90px; height: 90px; font-size: 14px; top: 54%; }
     
  }
  @media (max-width: 480px) {
    .details-grid { grid-template-columns: 1fr; }
    nav a { font-size: 8px; letter-spacing: 0.15em; }
  }