
  

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

    :root {
      --champagne: #F7E7CE;
      --champagne-deep: #edd9b4;
      --sage: #7a9668;
      --sage-light: #9CAF88;
      --dark-green: #3d4f35;
      --darker-green: #2a3824;
      --mid: rgba(156, 175, 136, 0.12);
      --sage-dim: rgba(122, 150, 104, 0.15);
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      background: var(--champagne);
      color: var(--sage);
      font-family: 'DM Sans', sans-serif;
      font-weight: 400;
      min-height: 100vh;
      overflow-x: hidden;
    }

    /* ─── FIXED PARALLAX LAYER ─── */
    #parallaxBg {
      position: fixed;
      inset: 0;
      background-image: url(grandcoeur2.png);
      background-size: cover;
      background-position: center center;
      z-index: 0;
      opacity: 0;
      will-change: opacity, background-position;
      pointer-events: none;
      transition: opacity 0.6s ease;
    }

    #parallaxBg.active {
      opacity: 1;
    }

    #parallaxOverlay {
      position: fixed;
      inset: 0;
      background: rgba(247, 231, 206, 0.50);
      z-index: 0;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.6s ease;
    }

    #parallaxOverlay.active {
      opacity: 1;
    }

    /* Stacking: fixed layers (z:0) sit below all sections (z:1+) */
    body {
      background: var(--champagne);
    }

    .hero {
      position: relative;
      z-index: 1;
    }

    .info-section {
      position: relative;
      z-index: 1;
      background: transparent !important;
      padding: 80px 24px;
      overflow: visible;
    }

    .form-section {
      position: relative;
      z-index: 1;
    }

    /* ─── NOISE OVERLAY ─── */

    body::before {
      content: '';
      position: fixed;
      inset: 0;
      background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
      pointer-events: none;
      z-index: 999;
      opacity: 0.6;
    }

    /* ─── HERO SECTION ─── */
    .hero {
      min-height: 100dvh;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      position: relative;
      padding: 60px 24px;
      overflow: hidden;
      background-image: url(grandcoeur.png);
      background-size: cover;
      background-position: center bottom;
    }

    /* Champagne wash over watercolor for text readability */
    .hero::after {
      content: '';
      position: absolute;
      inset: 0;
      background: rgba(247, 231, 206, 0.72);
      pointer-events: none;
      z-index: 1;
    }

    /* ─── CONTENT ─── */
    .content {
      position: relative;
      z-index: 10;
      text-align: center;
      max-width: 560px;
      width: 100%;
    }

    .save-the-date-label {
      font-family: 'DM Sans', sans-serif;
      font-size: 11px;
      font-weight: 600;
      letter-spacing: 0.35em;
      text-transform: uppercase;
      color: var(--dark-green);
      opacity: 0;
      animation: fadeUp 0.8s ease forwards 0.3s;
      margin-bottom: 32px;
    }

    .names {
      font-family: 'Cormorant Garamond', serif;
      font-size: clamp(56px, 12vw, 96px);
      font-weight: 400;
      line-height: 0.92;
      letter-spacing: -0.01em;
      color: var(--sage);
      opacity: 0;
      animation: fadeUp 1s ease forwards 0.6s;
      margin-bottom: 8px;
    }

    .names em {
      font-style: italic;
      color: var(--sage);
    }

    .ampersand {
      display: block;
      font-family: 'Playfair Display', serif;
      font-style: italic;
      font-size: clamp(36px, 8vw, 60px);
      color: var(--sage);
      opacity: 0.4;
      line-height: 1;
      margin: 4px 0;
    }

    .divider {
      width: 120px;
      height: 1px;
      background: linear-gradient(90deg, transparent, var(--sage-light), transparent);
      margin: 36px auto;
      opacity: 0;
      animation: fadeIn 1s ease forwards 1.1s;
    }

    .date-block {
      opacity: 0;
      animation: fadeUp 0.8s ease forwards 1.3s;
    }

    .date-main {
      font-family: 'Cormorant Garamond', serif;
      font-size: clamp(28px, 6vw, 46px);
      font-weight: 400;
      letter-spacing: 0.05em;
      color: var(--sage);
      line-height: 1.1;
    }

    .date-sub {
      font-size: 11px;
      font-weight: 600;
      letter-spacing: 0.3em;
      text-transform: uppercase;
      color: var(--dark-green);
      margin-top: 8px;
      opacity: 0.7;
    }

    .scroll-hint {
      position: absolute;
      bottom: 32px;
      left: 50%;
      transform: translateX(-50%);
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 8px;
      opacity: 0;
      animation: fadeIn 1s ease forwards 2.2s;
      cursor: pointer;
    }

    .scroll-hint span {
      font-size: 9px;
      letter-spacing: 0.3em;
      text-transform: uppercase;
      color: var(--dark-green);
      opacity: 0.5;
    }

    .scroll-arrow {
      width: 1px;
      height: 40px;
      background: linear-gradient(180deg, var(--dark-green), transparent);
      animation: scrollPulse 2s ease-in-out infinite;
    }

    @keyframes scrollPulse {

      0%,
      100% {
        opacity: 0.4;
        transform: scaleY(1);
      }

      50% {
        opacity: 1;
        transform: scaleY(1.2);
      }
    }


    .info-section::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 1px;
      background: linear-gradient(90deg, transparent, var(--sage-light), var(--dark-green), var(--sage-light), transparent);
      opacity: 0.4;
      z-index: 2;
    }

    .info-grid {
      position: relative;
      z-index: 1;
      max-width: 780px;
      margin: 0 auto;
      display: flex;
      flex-direction: column;
      gap: 0;
    }

    .info-card {
      opacity: 0;
      transform: translateY(28px);
      transition: opacity 0.8s ease, transform 0.8s ease;
      display: flex;
      align-items: flex-start;
      gap: 32px;
      padding: 36px 40px;
      border-bottom: 1px solid rgba(61, 79, 53, 0.12);
      background: rgba(247, 231, 206, 0.78);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
    }

    @media (max-width: 560px) {
      .info-card {
        flex-direction: column;
        gap: 12px;
        padding: 20px 16px;
        background: rgba(247, 231, 206, 0.72);
      }
    }

    .info-card.visible {
      opacity: 1;
      transform: translateY(0);
    }

    .info-card:nth-child(2) {
      transition-delay: 0.15s;
    }

    .info-card:nth-child(3) {
      transition-delay: 0.3s;
    }

    .info-card-left {
      min-width: 80px;
      text-align: right;
      padding-top: 2px;
    }

    @media (max-width: 560px) {
      .info-card-left {
        text-align: left;
        min-width: unset;
      }
    }

    .info-card-right {
      flex: 1;
    }

    .info-label {
      font-size: 9px;
      font-weight: 600;
      letter-spacing: 0.32em;
      text-transform: uppercase;
      color: var(--dark-green);
      margin-bottom: 10px;
      opacity: 0.75;
      line-height: 1.6;
    }

    .info-card-left .info-label {
      font-family: 'Cormorant Garamond', serif;
      font-size: 30px;
      font-weight: 800;
      letter-spacing: 0.05em;
      text-transform: none;
      color: var(--sage);
      opacity: 0.8;
    }

    .info-value {
      font-family: 'Cormorant Garamond', serif;
      font-size: 32px;
      font-weight: 600;
      line-height: 1.15;
      color: var(--sage);
      margin-bottom: 8px;
    }

    .info-detail {
      font-size: 12px;
      font-weight: 600;
      color: var(--dark-green);
      opacity: 0.6;
      margin-top: 6px;
      line-height: 1.5;
    }



    /* ─── FORM SECTION ─── */
    .form-section {
      background: var(--champagne);
      padding: 80px 24px;
      position: relative;
    }

    .form-section::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 1px;
      background: linear-gradient(90deg, transparent, var(--sage-light), var(--dark-green), var(--sage-light), transparent);
      opacity: 0.3;
    }

    .form-container {
      max-width: 480px;
      margin: 0 auto;
      text-align: center;
    }

    .section-title {
      font-family: 'Cormorant Garamond', serif;
      font-size: clamp(32px, 6vw, 48px);
      font-weight: 400;
      font-style: italic;
      color: var(--sage);
      text-align: center;
      margin-bottom: 8px;
    }

    .section-sub {
      font-size: 11px;
      letter-spacing: 0.25em;
      text-transform: uppercase;
      color: var(--dark-green);
      text-align: center;
      margin-bottom: 48px;
      opacity: 0.6;
    }

    .social-note {
      margin-top: 36px;
      font-family: 'DM Sans', sans-serif;
      font-size: 10px;
      letter-spacing: 0.08em;
      line-height: 1.8;
      color: var(--dark-green);
      opacity: 0.5;
      text-align: center;
    }

    .submit-btn {
      width: 100%;
      padding: 18px;
      background: transparent;
      border: 1px solid var(--dark-green);
      border-radius: 4px;
      color: var(--dark-green);
      font-family: 'DM Sans', sans-serif;
      font-size: 11px;
      letter-spacing: 0.35em;
      text-transform: uppercase;
      cursor: pointer;
      margin-top: 12px;
      transition: all 0.3s ease;
      position: relative;
      overflow: hidden;
    }

    .submit-btn::before {
      content: '';
      position: absolute;
      inset: 0;
      background: var(--dark-green);
      transform: scaleX(0);
      transform-origin: left;
      transition: transform 0.4s ease;
    }

    .submit-btn:hover::before {
      transform: scaleX(1);
    }

    .submit-btn:hover {
      color: var(--champagne);
    }

    .submit-btn span {
      position: relative;
      z-index: 1;
    }

    /* ─── UTILS ─── */
    @keyframes fadeUp {
      from {
        opacity: 0;
        transform: translateY(18px);
      }

      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    @keyframes fadeIn {
      from {
        opacity: 0;
      }

      to {
        opacity: 1;
      }
    }

    /* ─── PASSWORD SCREEN ─── */
    #pwd-screen {
      position: fixed;
      inset: 0;
      z-index: 9999;
      background: var(--champagne);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 32px;
      transition: opacity 0.6s ease;
    }

    #pwd-screen.hidden {
      opacity: 0;
      pointer-events: none;
    }

    #pwd-screen .pwd-names {
      font-family: 'Cormorant Garamond', serif;
      font-size: clamp(36px, 8vw, 56px);
      font-weight: 400;
      color: var(--sage);
      text-align: center;
      line-height: 1;
    }

    #pwd-screen .pwd-names em {
      font-style: italic;
    }

    #pwd-screen .pwd-amp {
      font-family: 'Playfair Display', serif;
      font-style: italic;
      color: var(--sage);
      opacity: 0.4;
    }

    #pwd-screen .pwd-label {
      font-family: 'DM Sans', sans-serif;
      font-size: 9px;
      letter-spacing: 0.35em;
      text-transform: uppercase;
      color: var(--dark-green);
      opacity: 0.6;
    }

    #pwd-screen .pwd-row {
      display: flex;
      align-items: center;
      border-bottom: 1px solid rgba(61, 79, 53, 0.3);
      gap: 12px;
      padding-bottom: 8px;
      width: min(280px, 80vw);
    }

    #pwd-input {
      background: none;
      border: none;
      outline: none;
      font-family: 'Cormorant Garamond', serif;
      font-size: 20px;
      font-weight: 400;
      color: var(--sage);
      width: 100%;
      letter-spacing: 0.1em;
      text-align: center;
    }

    #pwd-input::placeholder {
      color: var(--sage);
      opacity: 0.3;
      font-style: italic;
      font-size: 16px;
      letter-spacing: 0.05em;
    }

    #pwd-error {
      font-family: 'DM Sans', sans-serif;
      font-size: 9px;
      letter-spacing: 0.25em;
      text-transform: uppercase;
      color: var(--dark-green);
      opacity: 0;
      transition: opacity 0.3s ease;
      height: 12px;
    }

    #pwd-error.visible {
      opacity: 0.5;
    }

    #pwd-btn {
      margin-top: 8px;
      padding: 12px 40px;
      background: transparent;
      border: 1px solid rgba(61,79,53,0.4);
      color: var(--dark-green);
      font-family: 'DM Sans', sans-serif;
      font-size: 9px;
      font-weight: 600;
      letter-spacing: 0.35em;
      text-transform: uppercase;
      cursor: pointer;
      transition: background 0.3s ease, color 0.3s ease;
    }
    #pwd-btn:hover {
      background: var(--dark-green);
      color: var(--champagne);
    }
  
    /* ─── MOBILE ─── */
    @media (max-width: 600px) {

      .info-section {
        background: transparent !important;
        padding: 48px 20px;
      }

      /* Hero */
      .hero {
        padding: 48px 20px;
        background-attachment: scroll;
      }

      .names {
        font-size: clamp(48px, 14vw, 72px);
      }

      /* Info cards */
      .info-card-left .info-label {
        font-size: 22px;
      }

      .info-value {
        font-size: 24px;
      }

      .info-detail {
        font-size: 11px;
      }

      /* Form */
      .form-section {
        padding: 48px 20px;
      }

      .section-title {
        font-size: clamp(28px, 7vw, 40px);
      }

      .section-sub {
        margin-bottom: 32px;
      }

      /* Password screen */
      #pwd-screen {
        gap: 24px;
        padding: 32px 24px;
      }
    }
