  :root {
    --blush: #f2d4cc;
    --rose: #c8796a;
    --deep-rose: #9e4f42;
    --petal: #faf0ed;
    --gold: #c9a96e;
    --text: #3a2a27;
    --muted: #8c6e6a;
    --content-width: 900px;
    --rsvp-width: 700px;
    --faq-width: 1200px;
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }

  html {
    scroll-behavior: smooth;
  }

  body {
    font-family: 'Jost', sans-serif;
    background: var(--petal);
    color: var(--text);
    overflow-x: hidden;
  }

  /* ── INVITATION GATE ── */
  #gate {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--petal);
    background-image:
      radial-gradient(ellipse at 20% 20%, #f2d4cc55 0%, transparent 60%),
      radial-gradient(ellipse at 80% 80%, #c8796a22 0%, transparent 60%);
    transition: opacity 1s ease, transform 1s ease;
  }
  #gate.hide {
    opacity: 0;
    pointer-events: none;
    transform: scale(1.06);
  }

  /* ── ENVELOPE ── */
  .envelope-scene {
    perspective: 1200px;
    width: 50vw;
    max-width: 92vw;
    margin-top: 15vw;
  }

  .envelope {
    position: relative;
    width: 100%;
    padding-bottom: 62%; /* envelope aspect ratio */
    background: white;
    box-shadow: 0 30px 100px rgba(200,121,106,0.18), 0 4px 20px rgba(200,121,106,0.1);
    container-type: inline-size;
  }

  /* envelope body sides (triangles via clip-path on pseudo) */
  .env-body {
    position: absolute;
    inset: 0;
    background: white;
  }

  /* Bottom flap V shape */
  .env-bottom {
    position: absolute;
    inset: 0;
    background: #fdf6f4;
    clip-path: polygon(0% 100%, 50% 52%, 100% 100%);
    z-index: 2;

  }

  /* Left triangle */
  .env-left {
    position: absolute;
    inset: 0;
    background: #faf0ed;
    clip-path: polygon(0% 0%, 0% 100%, 50% 52%);
    z-index: 2;
  }

  /* Right triangle */
  .env-right {
    position: absolute;
    inset: 0;
    background: #faf0ed;
    clip-path: polygon(100% 0%, 100% 100%, 50% 52%);
    z-index: 2;
  }

  /* Envelope border lines */
  .env-body::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid #e8cfc8;
    pointer-events: none;
  }

  /* Top flap — this rotates open */
  .env-flap-wrap {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 52%;
    transform-origin: top center;
    transform-style: preserve-3d;
    transition: transform 0.9s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
  }
  .env-flap-wrap.open {
    transform: rotateX(-178deg);
  }
  .env-flap-wrap.open-done {
    z-index: 0;
  }
  .env-flap {
    position: absolute;
    inset: 0;
    background: white;
    clip-path: polygon(0% 0%, 100% 0%, 50% 100%);
    border-bottom: 1px solid #e8cfc8;
  }
  .env-flap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, #fff9f8 0%, #faf0ed 100%);
    clip-path: polygon(0% 0%, 100% 0%, 50% 100%);
  }

  /* Wax seal on the flap */
  .env-seal {
    position: absolute;
    top: 28%;
    left: 50%;
    transform: translateX(-50%);
    width: 8cqw;
    height: 8cqw;
    background: radial-gradient(circle at 40% 35%, var(--rose), var(--deep-rose));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.8cqw;
    box-shadow: 0 2px 12px rgba(158,79,66,0.4);
    z-index: 11;
    transition: opacity 0.3s;
  }

  /* The card that slides out */
  .env-card {
    position: absolute;
    left: 8%;
    right: 8%;
    bottom: 6%;
    background: white;
    border: 1px solid #e8cfc8;
    padding: 5% 6% 4%;
    text-align: center;
    z-index: 1;
    transform: translateY(0);
    transition: transform 1s cubic-bezier(0.2, 0.8, 0.3, 1) 0.5s;
    box-shadow: 0 -4px 20px rgba(200,121,106,0.08);
  }
  .env-card.risen {
    transform: translateY(-88%);
  }
  .env-card::before {
    content: '';
    position: absolute;
    inset: 3%;
    border: 1px solid #e8cfc844;
    pointer-events: none;
  }

  .card-ornament {
    font-size: 3.2cqw;
    color: var(--gold);
    letter-spacing: 0.4em;
    margin-bottom: 0.6em;
    display: block;
  }
  .card-subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.6cqw;
    color: var(--muted);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 0.5em;
  }
  .card-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 5.5cqw;
    font-weight: 300;
    color: var(--text);
    line-height: 1.1;
    margin-bottom: 0.2em;
  }
  .card-title em { color: var(--rose); font-style: italic; }
  .card-edasi-btn {
    margin-top: 1.5cqw;
    background: var(--rose);
    color: white;
    border: none;
    padding: 1.2cqw 3cqw;
    font-family: 'Jost', sans-serif;
    font-size: 1.8cqw;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s;
    display: block;
    margin-left: auto;
    margin-right: auto;
  }
  .card-edasi-btn:hover { background: var(--deep-rose); }
  .card-divider {
    width: 20%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 0.8em auto;
  }

  /* Input form on envelope, above all flaps */
  .gate-form {
    position: absolute;
    inset: 0;
    z-index: 10;
    text-align: center;
    width: 100%;
    transition: opacity 0.3s ease;
    pointer-events: none;
  }
  .gate-form.hidden {
    opacity: 0;
    pointer-events: none;
  }
  .gate-form-middle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: all;
    position: absolute;
  }
  .gate-form-bottom {
    position: absolute;
    bottom: 8%;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    pointer-events: all;
  }
  .gate-form-label {
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 16px;
    display: block;
  }
  .gate-inputs {
    display: flex;
    flex-wrap: wrap;
    gap: 2cqw;
    margin: 0 auto;
  }
  .gate-inputs-label {
    width: 100%;
    font-size: 3.5cqw;
    color: var(--muted);
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    text-align: center;
    margin-bottom: 0.5cqw;
  }
  .gate-input {
    flex: 1;
    border: none;
    border-bottom: 1px solid #e8cfc8;
    padding: 1cqw 0.5cqw;
    font-family: 'Jost', sans-serif;
    font-size: 2.2cqw;
    font-weight: 300;
    color: var(--text);
    background: transparent;
    outline: none;
    text-align: center;
    letter-spacing: 0.05em;
    transition: border-color 0.3s;
  }
  .gate-input:focus { border-color: var(--rose); }
  .gate-input::placeholder { color: #cbb3ae; font-style: italic; font-size: 2cqw; }

  .gate-btn {
    background: var(--rose);
    color: white;
    border: none;
    padding: 1.5cqw 4cqw;
    font-family: 'Jost', sans-serif;
    font-size: 1.8cqw;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s, transform 0.15s;
  }
  .gate-btn:hover { background: var(--deep-rose); transform: translateY(-1px); }
  .gate-btn:active { transform: translateY(0); }

  .gate-error {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 1cqw;
    font-size: 1.8cqw;
    color: var(--rose);
    font-style: italic;
    white-space: nowrap;
    font-family: 'Cormorant Garamond', serif;
  }

  /* ── MAIN SITE ── */
  #site {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease 0.3s, transform 1s ease 0.3s;
    pointer-events: none;
  }
  #site.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
  }

  /* NAV */
  nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(250,240,237,0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #e8cfc855;
    padding: 16px 40px;
    display: flex;
    justify-content: center;
    gap: 40px;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }
  nav::-webkit-scrollbar { display: none; }
  nav a {
    font-size: 11px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 400;
    white-space: nowrap;
    flex-shrink: 0;
  }
  nav a:hover { color: var(--rose); }

  /* SECTIONS */
  section { padding: 120px 40px; }

  /* HERO */
  #hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
    background-image:
      radial-gradient(ellipse at 15% 30%, #f2d4cc60 0%, transparent 50%),
      radial-gradient(ellipse at 85% 70%, #c8796a18 0%, transparent 50%),
      linear-gradient(rgba(250, 240, 237, 0.85), rgba(250, 240, 237, 0.50)),
      url('Meie.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }
  .hero-welcome {
    font-size: 12px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 20px;
    animation: fadeUp 1s ease both;
  }
  .hero-names {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(64px, 10vw, 120px);
    font-weight: 300;
    line-height: 0.95;
    color: var(--text);
    animation: fadeUp 1s 0.2s ease both;
  }
  .hero-names em { color: var(--rose); font-style: italic; }
  .hero-amp {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 0.5em;
    color: var(--gold);
    line-height: 1.6;
  }
  .hero-date {
    margin-top: 32px;
    font-size: 13px;
    letter-spacing: 4px;
    color: var(--text);
    text-transform: uppercase;
    animation: fadeUp 1s 0.4s ease both;
  }
  .hero-scroll {
    position: absolute;
    bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    animation: fadeUp 1s 0.8s ease both;
  }
  .scroll-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(180deg, var(--gold), transparent);
    animation: scrollPulse 2s infinite;
  }
  .scroll-label {
    font-size: 10px;
    letter-spacing: 3px;
    color: var(--text);
    text-transform: uppercase;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.3);
  }

  /* STORY */
  #story {
    background: white;
    max-width: 100%;
  }
  .story-inner {
    max-width: var(--content-width);
    margin: 0 auto;
    text-align: center;
  }
  .section-label {
    font-size: 11px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
  }
  .section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 300;
    color: var(--text);
    margin-bottom: 40px;
    line-height: 1.1;
  }
  .section-title em { color: var(--rose); font-style: italic; }
  .story-text {
    font-size: 17px;
    line-height: 1.85;
    color: var(--muted);
    font-weight: 300;
  }
  .timeline {
    margin-top: 64px;
    display: flex;
    flex-direction: column;
    gap: 0;
    text-align: left;
  }
  .timeline-item {
    display: grid;
    grid-template-columns: 80px 1px 1fr;
    gap: 0 24px;
    padding-bottom: 40px;
    position: relative;
  }
  .timeline-item:last-child { padding-bottom: 0; }
  .timeline-year {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    color: var(--rose);
    font-style: italic;
    text-align: right;
    padding-top: 2px;
    line-height: 1.2
  }
  .timeline-date {
    display: block;
    font-family: 'Jost', sans-serif;
    font-size: 11px;
    color: var(--muted);
    font-style: normal;
    font-weight: 300;
    letter-spacing: 1px;
    margin-top: 4px;
  }
  .timeline-line {
    background: linear-gradient(180deg, var(--blush), transparent);
    position: relative;
  }
  .timeline-line::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--rose);
    border: 2px solid white;
  }
  .timeline-content { padding-left: 8px; }
  .timeline-content h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 4px;
  }
  .timeline-content p { font-size: 14px; color: var(--muted); line-height: 1.6; font-weight: 300; }

  /* EVENT */
  #event {
    background: var(--petal);
    text-align: center;
  }
  .event-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    max-width: 900px;
    margin: 56px auto 0;
  }
  .event-card {
    background: white;
    border: 1px solid #e8cfc8;
    padding: 40px 28px;
    text-align: center;
  }
  .event-icon { font-size: 28px; margin-bottom: 16px; display: block; }
  .event-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 23px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 12px;
    font-weight: 400;
  }
  .event-card p {
    font-size: 15px;
    color: var(--text);
    line-height: 1.7;
    font-weight: 300;
  }
  .event-card .big {
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px;
    font-weight: 300;
    color: var(--rose);
    display: block;
    margin-bottom: 4px;
  }

  /* SCHEDULE */
  #schedule {
    background: white;
    text-align: center;
  }
  .schedule-list {
    max-width: var(--content-width);
    margin: 56px auto 0;
    text-align: left;
  }
  .schedule-row {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 24px;
    padding: 20px 0;
    border-bottom: 1px solid #f2e8e5;
    align-items: center;
  }
  .schedule-time {
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    color: var(--rose);
    font-style: italic;
  }
  .schedule-event-name {
    font-size: 15px;
    font-weight: 400;
    color: var(--text);
  }
  .schedule-event-desc {
    font-size: 13px;
    color: var(--muted);
    margin-top: 2px;
    font-weight: 300;
  }

  /* RSVP */
  #rsvp {
    background: linear-gradient(135deg, #f2d4cc 0%, var(--petal) 60%);
    text-align: center;
  }
  .rsvp-box {
    max-width: var(--rsvp-width);
    margin: 56px auto 0;
    background: white;
    border: 1px solid #e8cfc8;
    padding: 56px 48px;
    position: relative;
  }
  .rsvp-box::before {
    content: '';
    position: absolute;
    inset: 6px;
    border: 1px solid #e8cfc844;
    pointer-events: none;
  }
  .rsvp-name-display {
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px;
    font-style: italic;
    color: var(--rose);
    margin-bottom: 32px;
  }
  .rsvp-question {
    font-size: 15px;
    color: var(--muted);
    margin-bottom: 32px;
    font-weight: 300;
  }
  .rsvp-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 24px;
  }
  .rsvp-btn {
    flex: 1;
    max-width: 240px;
    padding: 16px 20px;
    border: 1px solid var(--blush);
    background: white;
    cursor: pointer;
    font-family: 'Jost', sans-serif;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted);
    transition: all 0.3s;
    white-space: nowrap;
  }
  .rsvp-btn:hover {
    border-color: var(--rose);
    color: var(--rose);
  }
  .rsvp-btn.active-yes {
    background: white;
    color: var(--rose);
    border: 3px solid var(--rose);
    padding: 15px 19px;
  }
  .rsvp-btn.active-no {
    background: white;
    color: var(--text);
    border: 3px solid var(--text);
    padding: 15px 19px;
  }
  #main-guest-item {
    margin-bottom: 8px;
    transition: opacity 0.3s, max-height 0.3s;
  }
  .rsvp-relatives {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--blush);
    transition: opacity 0.3s, max-height 0.3s;
  }
  .relatives-header {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 16px;
    text-align: center;
  }
  .relative-item {
    padding: 12px 16px;
    margin-bottom: 8px;
    background: white;
    border-radius: 4px;
    border: 1px solid var(--blush);
  }
  .rsvp-message-section {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--blush);
    transition: opacity 0.3s, max-height 0.3s;
  }
  .rsvp-message-section label {
    display: block;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 8px;
    text-align: left;
  }
  .rsvp-message-section textarea {
    width: 100%;
    border: none;
    border-bottom: 1px solid #e8cfc8;
    padding: 10px 4px;
    font-family: 'Jost', sans-serif;
    font-size: 14px;
    font-weight: 300;
    color: var(--text);
    background: white;
    outline: none;
    resize: vertical;
  }
  .rsvp-message-section textarea:focus {
    border-bottom-color: var(--rose);
  }
  .rsvp-submit {
    margin-top: 24px;
  }
  .relative-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .relative-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    color: var(--text);
  }
  .relative-buttons {
    display: flex;
    gap: 8px;
  }
  .relative-diet {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--blush);
  }
  .relative-diet-select {
    width: 100%;
    border: none;
    border-bottom: 1px solid #e8cfc8;
    padding: 10px 4px;
    font-family: 'Jost', sans-serif;
    font-size: 14px;
    font-weight: 300;
    color: var(--text);
    background: white;
    margin-bottom: 8px;
    outline: none;
    cursor: pointer;
  }
  .relative-diet-select:focus {
    border-bottom-color: var(--rose);
  }
  .relative-diet-other {
    width: 100%;
    border: none;
    border-bottom: 1px solid #e8cfc8;
    padding: 10px 4px;
    font-family: 'Jost', sans-serif;
    font-size: 14px;
    font-weight: 300;
    color: var(--text);
    background: white;
    outline: none;
  }
  .relative-diet-other:focus {
    border-bottom-color: var(--rose);
  }
  .relative-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--blush);
    background: white;
    cursor: pointer;
    font-size: 16px;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .relative-btn:hover {
    border-color: var(--rose);
    color: var(--rose);
  }
  .relative-btn.active-yes {
    background: white;
    color: var(--rose);
    border: 2px solid var(--rose);
  }
  .relative-btn.active-no {
    background: white;
    color: var(--text);
    border: 2px solid var(--text);
  }
  .rsvp-extras {
    margin-top: 24px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                margin-top 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .rsvp-extras.show {
    max-height: 600px;
    opacity: 1;
  }
  .rsvp-extras label {
    display: block;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 8px;
    text-align: left;
  }
  .rsvp-extras select,
  .rsvp-extras textarea {
    width: 100%;
    border: none;
    border-bottom: 1px solid #e8cfc8;
    padding: 10px 4px;
    font-family: 'Jost', sans-serif;
    font-size: 14px;
    font-weight: 300;
    color: var(--text);
    background: transparent;
    outline: none;
    margin-bottom: 24px;
    resize: none;
  }
  .rsvp-submit {
    background: var(--rose);
    color: white;
    border: none;
    padding: 14px 40px;
    font-family: 'Jost', sans-serif;
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s;
    width: 100%;
    margin-top: 8px;
  }
  .rsvp-submit:hover { background: var(--deep-rose); }
  .rsvp-confirmation {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    color: var(--rose);
    font-style: italic;
    line-height: 1.5;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .rsvp-confirmation.show {
    max-height: 400px;
    opacity: 1;
  }
  .rsvp-change-btn {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    margin-top: 0;
    background: transparent;
    color: var(--muted);
    border: 1px solid var(--blush);
    padding: 12px 32px;
    font-family: 'Jost', sans-serif;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                margin-top 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .rsvp-change-btn:hover {
    border-color: var(--rose);
    color: var(--rose);
  }
  .rsvp-change-btn.show {
    max-height: 100px;
    opacity: 1;
    margin-top: 24px;
  }
  .add-to-calendar-btn {
    background: var(--gold);
    color: white;
    border: none;
    padding: 12px 32px;
    font-family: 'Jost', sans-serif;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 24px;
    border-radius: 4px;
  }
  .add-to-calendar-btn:hover {
    background: #b08f5a;
  }

  /* RSVP Loader */
  .rsvp-loader {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(250, 240, 237, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 100;
    border-radius: 8px;
  }
  .rsvp-loader p {
    margin-top: 16px;
    font-family: 'Jost', sans-serif;
    font-size: 14px;
    color: var(--muted);
    letter-spacing: 1px;
  }
  .loader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--blush);
    border-top: 3px solid var(--rose);
    border-radius: 50%;
    animation: spin 1s linear infinite;
  }
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  .rsvp-box {
    position: relative;
  }

  /* PRACTICAL INFO / FAQ */
  #info {
    background: var(--petal);
    text-align: center;
  }
  .faq-container {
    max-width: var(--faq-width);
    margin: 56px auto 0;
  }
  .faq-item {
    background: white;
    border: 1px solid #e8cfc8;
    margin-bottom: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
  }
  .faq-item:hover {
    border-color: var(--rose);
  }
  .faq-question {
    width: 100%;
    background: white;
    border: none;
    padding: 24px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    color: var(--text);
    transition: all 0.3s ease;
  }
  .faq-question:hover {
    color: var(--rose);
  }
  .faq-question span:first-child {
    flex: 1;
  }
  .faq-icon {
    font-size: 28px;
    color: var(--rose);
    font-weight: 300;
    transition: transform 0.3s ease;
    font-family: 'Jost', sans-serif;
  }
  .faq-item.active .faq-icon {
    transform: rotate(45deg);
  }
  .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 32px;
  }
  .faq-item.active .faq-answer {
    max-height: 100px;
    padding: 0 32px 24px 32px;
  }
  .faq-answer p {
    font-size: 15px;
    color: var(--muted);
    line-height: 1.8;
    font-weight: 300;
    text-align: left;
  }

  /* FOOTER */
  footer {
    background: var(--text);
    color: var(--blush);
    text-align: center;
    padding: 80px 40px;
  }
  .footer-names {
    font-family: 'Cormorant Garamond', serif;
    font-size: 48px;
    font-weight: 300;
    font-style: italic;
    color: white;
    margin-bottom: 16px;
  }
  .footer-names em { color: var(--blush); }
  .footer-date {
    font-size: 11px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 32px;
  }
  .footer-note {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 18px;
    color: var(--blush);
    opacity: 0.7;
  }

  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
  }
  @keyframes scrollPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
  }

  @media (max-width: 1000px) {
    .envelope-scene {
      width: 80vw;
    }
  }

  @media (max-width: 600px) {
    .envelope-scene {
      width: 95vw;
      margin-top: 30vw;
    }
    .gate-form-bottom {
      bottom: calc(100% + 40px);
      top: auto;
      width: 90%;
      background: white;
      padding: 24px 20px;
      border-radius: 8px;
      box-shadow: 0 4px 20px rgba(200,121,106,0.12);
    }
    .gate-btn {
      padding: 14px 28px;
      font-size: 14px;
    }
    .gate-inputs-label {
      font-size: 18px;
    }
    .gate-input {
      font-size: 16px;
      padding: 12px 8px;
    }
    .gate-input::placeholder {
      font-size: 14px;
    }
    .gate-error {
      font-size: 14px;
      margin-top: 12px;
    }
    nav { gap: 20px; padding: 14px 20px; justify-content: flex-start; }
    .invitation-card { padding: 40px 28px; }
    section { padding: 80px 24px; }
    .rsvp-box { padding: 40px 24px; }
    .rsvp-buttons { flex-direction: column; align-items: center; }
    .rsvp-btn { max-width: 100%; width: 100%; }
  }