:root {
      --blue-light: #C8DDE8;
      --blue:       #5B7FA6;
      --blue-dark:  #4A6A8E;
      --cream:      #F8F4EF;
      --off-white:  #FDFBF8;
      --text:       #363636;
      --muted:      #6E6E6E;
      --stripe-w:   66px;

      --font-display: 'Marcellus', serif;
      --font-script:  'Alex Brush', cursive;
      --font-body:    'Raleway', sans-serif;
    }

    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; }
    body { font-family: var(--font-body); color: var(--text); background: var(--off-white); overflow-x: hidden; font-synthesis: none; }
    img { max-width: 100%; height: auto; display: block; }
    a { color: inherit; }

    /* ── Stripe pattern ────────────────────────────────── */
    .stripes {
      background-image: repeating-linear-gradient(
        90deg,
        var(--blue-light) 0px,
        var(--blue-light) var(--stripe-w),
        #fff 0px,
        #fff calc(var(--stripe-w) * 2)
      );
    }

    /* ── Navigation ────────────────────────────────────── */
    #nav {
      position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
      display: flex; justify-content: center; gap: 36px;
      padding: 18px 40px;
      transition: background 0.3s, padding 0.3s, box-shadow 0.3s;
    }
    #nav.scrolled {
      background: rgba(253,251,248,0.96); backdrop-filter: blur(8px);
      padding: 12px 40px; box-shadow: 0 1px 18px rgba(0,0,0,0.07);
    }
    #nav a {
      font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em;
      text-transform: uppercase; color: var(--blue); text-decoration: none;
      transition: opacity 0.2s;
    }
    #nav a:hover { opacity: 0.55; }

    /* ── HERO ──────────────────────────────────────────── */
    #hero {
      min-height: 100vh; position: relative; overflow: hidden;
      display: flex; flex-direction: column;
      align-items: center; justify-content: center;
      text-align: center; padding: 100px 24px 80px;
    }
    .hero-names { margin-bottom: 28px; line-height: 1; }
    .hero-cap {
      font-family: var(--font-script); font-style: italic; font-weight: 400;
      font-size: clamp(3.6rem, 18vw, 10rem);
      color: var(--blue); display: block; letter-spacing: 0.01em;
    }
    .hero-script {
      font-family: var(--font-script); font-style: italic;
      font-weight: 300; font-size: clamp(2rem, 6vw, 4.2rem);
      color: var(--blue); display: block; line-height: 1.25;
    }
    .hero-date {
      font-family: var(--font-display); font-weight: 400;
      font-size: clamp(0.9rem, 2.5vw, 1.3rem);
      letter-spacing: 0.42em; color: var(--blue); margin-top: 22px;
    }
    .hero-venue {
      font-family: var(--font-body); font-weight: 300;
      font-size: clamp(0.72rem, 1.8vw, 0.9rem);
      letter-spacing: 0.22em; text-transform: uppercase;
      color: var(--blue-dark); margin-top: 10px; opacity: 0.75;
    }
    .hero-botanical {
      position: absolute; bottom: 50px; right: 4%;
      width: clamp(180px, 28%, 300px); pointer-events: none;
    }
    .hero-scroll {
      position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
      display: flex; flex-direction: column; align-items: center; gap: 6px;
      font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase;
      color: var(--blue); opacity: 0.55;
      animation: bobble 2.2s ease-in-out infinite;
    }
    .hero-scroll .vline { width: 1px; height: 28px; background: var(--blue); opacity: 0.35; }
    @keyframes bobble {
      0%,100% { transform: translateX(-50%) translateY(0); opacity: 0.55; }
      50%      { transform: translateX(-50%) translateY(7px); opacity: 0.85; }
    }

    /* ── Section shell ─────────────────────────────────── */
    section { padding: 88px 24px; }
    .inner { max-width: 920px; margin: 0 auto; }
    .s-label {
      font-size: 0.68rem; font-weight: 700; letter-spacing: 0.32em;
      text-transform: uppercase; color: var(--blue); opacity: 0.65;
      margin-bottom: 10px;
    }
    .s-title {
      font-family: var(--font-display); font-weight: 700;
      font-size: clamp(1.9rem, 5vw, 3rem); color: var(--blue);
      margin-bottom: 10px;
    }
    .s-title em {
      font-family: var(--font-script); font-weight: 300; font-style: italic;
    }
    .s-sub {
      font-family: var(--font-script); font-style: italic;
      font-size: 1.15rem; color: var(--muted); margin-bottom: 52px;
    }

    /* ── Botanical divider ─────────────────────────────── */
    .divider {
      display: flex; align-items: center; gap: 14px;
      max-width: 360px; margin: 0 auto 52px;
    }
    .divider hr { flex: 1; border: none; height: 1px; background: var(--blue); opacity: 0.2; }

    /* ── STORY — timeline ──────────────────────────────── */
    #story { background: var(--cream); }
    .timeline { position: relative; display: grid; gap: 52px; }
    .timeline::before {
      content: ''; position: absolute; left: 50%; top: 0; bottom: 0;
      width: 1px; background: var(--blue); opacity: 0.12;
      transform: translateX(-50%);
    }
    .tl-item {
      display: grid; grid-template-columns: 1fr 48px 1fr; align-items: start;
    }
    /* odd: text left, image right */
    .tl-item:nth-child(odd)  .tl-content { grid-column:1; text-align:right; padding-right:36px; }
    .tl-item:nth-child(odd)  .tl-img     { grid-column:3; grid-row:1; }
    /* even: image left, text right */
    .tl-item:nth-child(even) .tl-content { grid-column:3; text-align:left;  padding-left:36px; }
    .tl-item:nth-child(even) .tl-img     { grid-column:1; grid-row:1; }
    .tl-dot {
      grid-column: 2; grid-row: 1; z-index: 1;
      display: flex; align-items: flex-start; justify-content: center; padding-top: 6px;
    }
    .tl-dot span {
      width: 11px; height: 11px; border-radius: 50%;
      background: var(--blue); opacity: 0.45; display: block;
    }
    .tl-year {
      font-family: var(--font-script); font-style: italic;
      font-size: 0.88rem; color: var(--blue); opacity: 0.8; margin-bottom: 5px;
    }
    .tl-heading {
      font-family: var(--font-display); font-weight: 700;
      font-size: 1.15rem; color: var(--blue); margin-bottom: 8px;
    }
    .tl-text { font-size: 0.9rem; line-height: 1.75; color: var(--muted); }
    .tl-img img {
      border-radius: 4px; width: 100%; max-height: 240px;
      object-fit: cover; box-shadow: 0 6px 24px rgba(0,0,0,0.1);
    }
    .tl-img-empty { /* placeholder column when no photo */ }

    /* ── VENUE ─────────────────────────────────────────── */
    #venue { background: var(--off-white); }
    .venue-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: start; }
    .venue-intro { font-size: 0.95rem; line-height: 1.85; color: var(--muted); margin-bottom: 28px; }
    .venue-list { list-style: none; display: grid; gap: 11px; }
    .venue-list li {
      display: flex; align-items: flex-start; gap: 11px;
      font-size: 0.9rem; line-height: 1.65; color: var(--text);
    }
    .venue-list li::before {
      content: '✦'; color: var(--blue); font-size: 0.45rem;
      margin-top: 7px; flex-shrink: 0;
    }
    .venue-addr {
      margin-top: 28px; padding: 18px 22px;
      border-left: 2px solid var(--blue);
    }
    .venue-addr p { font-size: 0.88rem; line-height: 1.9; color: var(--muted); }
    .venue-addr a {
      display: inline-block; margin-top: 10px;
      font-size: 0.72rem; font-weight: 700; letter-spacing: 0.15em;
      text-transform: uppercase; color: var(--blue); text-decoration: none;
      border-bottom: 1px solid var(--blue); padding-bottom: 2px;
      transition: opacity 0.2s;
    }
    .venue-addr a:hover { opacity: 0.6; }
    .venue-img-wrap img {
      border-radius: 4px; width: 100%;
      box-shadow: 0 10px 36px rgba(0,0,0,0.12);
    }
    .venue-img-wrap .caption {
      font-family: var(--font-script); font-style: italic;
      font-size: 0.82rem; color: var(--muted); text-align: center; margin-top: 10px;
    }

    /* ── DAY ───────────────────────────────────────────── */
    #day { background: var(--cream); }
    .schedule { max-width: 580px; margin: 0 auto; }
    .sch-item {
      display: grid; grid-template-columns: 72px 1fr;
      gap: 16px; padding: 15px 0;
      border-bottom: 1px solid rgba(91,127,166,0.11);
    }
    .sch-item:last-child { border-bottom: none; }
    .sch-time {
      font-family: var(--font-script); font-size: 1rem;
      color: var(--blue); padding-top: 2px; white-space: nowrap;
    }
    .sch-title { font-weight: 700; font-size: 0.95rem; margin-bottom: 2px; }
    .sch-note { font-size: 0.83rem; color: var(--muted); line-height: 1.55; }

    /* ── STAY ──────────────────────────────────────────── */
    #stay { background: var(--off-white); }
    .stay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
    .stay-card {
      padding: 30px 28px; border: 1px solid rgba(91,127,166,0.18); border-radius: 4px;
    }
    .stay-icon { font-size: 1.4rem; margin-bottom: 14px; }
    .stay-title {
      font-family: var(--font-display); font-size: 1.05rem;
      color: var(--blue); margin-bottom: 10px;
    }
    .stay-text { font-size: 0.88rem; line-height: 1.75; color: var(--muted); }

    /* ── GALLERY ───────────────────────────────────────── */
    #gallery { background: var(--cream); }
    .gal-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      grid-auto-rows: 240px;
      gap: 10px;
    }
    .gal-item { overflow: hidden; border-radius: 4px; }
    .gal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s ease; }
    .gal-item:hover img { transform: scale(1.05); }
    .gal-item.tall { grid-row: span 2; }

    .gallery-closer {
      display: flex; justify-content: center;
      margin-top: 46px; line-height: 0;
    }
    .gallery-closer img {
      display: block; width: auto;
      height: clamp(90px, 14vw, 150px); max-width: 100%; object-fit: contain;
    }

    /* ── FOOTER ────────────────────────────────────────── */
    footer {
      background: var(--blue); color: #fff;
      padding: 64px 24px 44px; text-align: center;
    }
    .foot-names {
      font-family: var(--font-display); font-weight: 700;
      font-size: 1.65rem; letter-spacing: 0.05em; margin-bottom: 6px;
    }
    .foot-date {
      font-family: var(--font-script); font-style: italic;
      font-size: 1rem; opacity: 0.8; letter-spacing: 0.22em; margin-bottom: 36px;
    }
    .foot-note {
      font-size: 0.88rem; line-height: 1.75; opacity: 0.88;
      max-width: 480px; margin: 0 auto 10px;
    }
    .foot-email { font-weight: 700; color: #fff; text-decoration: underline; }
    .foot-lang {
      display: inline-block; margin-top: 30px;
      padding: 8px 22px; border: 1px solid rgba(255,255,255,0.38); border-radius: 20px;
      font-size: 0.72rem; font-weight: 700; letter-spacing: 0.15em;
      text-transform: uppercase; color: #fff; text-decoration: none;
      transition: background 0.2s;
    }
    .foot-lang:hover { background: rgba(255,255,255,0.15); }
    .foot-copy { margin-top: 44px; font-size: 0.68rem; opacity: 0.38; letter-spacing: 0.1em; }

    /* ── RESPONSIVE ────────────────────────────────────── */
    @media (max-width: 768px) {
      #nav { display: none; }
      .hero-cap { font-size: clamp(3.8rem, 27vw, 8.5rem); }
      .hero-script { font-size: clamp(2.1rem, 7vw, 3.6rem); }
      .hero-botanical {
        position: static; width: auto;
        margin-top: 28px; display: flex; justify-content: center;
      }
      .hero-botanical img { height: clamp(140px, 32vh, 220px); max-width: 68vw; }

      .timeline::before { left: 16px; }
      .tl-item { grid-template-columns: 32px 1fr; }
      .tl-item:nth-child(odd) .tl-content,
      .tl-item:nth-child(even) .tl-content {
        grid-column: 2; text-align: left; padding: 0 0 0 14px;
      }
      .tl-item:nth-child(odd) .tl-img,
      .tl-item:nth-child(even) .tl-img {
        grid-column: 2; grid-row: 2; padding-left: 14px;
      }
      .tl-dot { grid-column: 1; }

      .venue-grid { grid-template-columns: 1fr; }
      .stay-grid  { grid-template-columns: 1fr; }

      .gal-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
      }
      .gal-item.tall { grid-row: span 1; }

      .hero-countdown { gap: 8px; }
      .cd-unit { min-width: 54px; padding: 10px 4px; }
    }

    /* ════════ ANIMATIONS & DESIGN ENHANCEMENTS ════════ */

    /* Scroll-reveal */
    .reveal {
      opacity: 0; transform: translateY(30px);
      transition: opacity 0.85s cubic-bezier(.22,.61,.36,1),
                  transform 0.85s cubic-bezier(.22,.61,.36,1);
      will-change: opacity, transform;
    }
    .reveal.in { opacity: 1; transform: none; }

    /* Hero entrance (staggered) */
    @keyframes heroUp {
      from { opacity: 0; transform: translateY(28px); }
      to   { opacity: 1; transform: none; }
    }
    #hero .hero-names    { animation: heroUp 1s   cubic-bezier(.22,.61,.36,1) 0.05s both; }
    #hero .hero-date     { animation: heroUp 0.9s cubic-bezier(.22,.61,.36,1) 0.30s both; }
    #hero .hero-venue    { animation: heroUp 0.9s cubic-bezier(.22,.61,.36,1) 0.45s both; }
    #hero .hero-countdown{ animation: heroUp 0.9s cubic-bezier(.22,.61,.36,1) 0.60s both; }

    /* Gently swaying botanical */
    @keyframes sway {
      0%,100% { transform: rotate(-1.5deg) translateY(0); }
      50%     { transform: rotate(2deg) translateY(-10px); }
    }
    .hero-botanical { animation: sway 8s ease-in-out infinite; transform-origin: bottom center; }

    /* Countdown */
    .hero-countdown {
      display: flex; gap: 14px; justify-content: center; margin-top: 32px;
    }
    .cd-unit {
      display: flex; flex-direction: column; align-items: center;
      min-width: 64px; padding: 13px 8px;
      background: rgba(255,255,255,0.55); backdrop-filter: blur(5px);
      border: 1px solid rgba(91,127,166,0.22); border-radius: 10px;
      box-shadow: 0 4px 18px rgba(91,127,166,0.10);
    }
    .cd-num {
      font-family: var(--font-display); font-weight: 700;
      font-size: clamp(1.4rem, 4.5vw, 2.1rem); color: var(--blue);
      line-height: 1; font-variant-numeric: tabular-nums; display: block;
    }
    .cd-label {
      font-size: 0.55rem; letter-spacing: 0.16em; text-transform: uppercase;
      color: var(--blue-dark); margin-top: 8px; opacity: 0.7;
    }
    @keyframes tickPop { 0% { transform: translateY(-5px); opacity: 0.35; } 100% { transform: none; opacity: 1; } }
    .cd-num.tick { animation: tickPop 0.5s ease; }

    /* Nav underline + active state */
    #nav a { position: relative; }
    #nav a::after {
      content: ''; position: absolute; left: 0; right: 0; bottom: -5px; height: 1.5px;
      background: var(--blue); transform: scaleX(0); transform-origin: center;
      transition: transform 0.32s ease;
    }
    #nav a:hover::after, #nav a.active::after { transform: scaleX(1); }
    #nav a.active { opacity: 1; }

    /* Timeline line draws in, dots pop */
    .timeline::before {
      transform: translateX(-50%) scaleY(0); transform-origin: top;
      transition: transform 1.5s cubic-bezier(.22,.61,.36,1);
    }
    .timeline.in::before { transform: translateX(-50%) scaleY(1); }
    .tl-dot span {
      transform: scale(0);
      transition: transform 0.55s cubic-bezier(.34,1.56,.64,1) 0.15s;
    }
    .tl-item.in .tl-dot span { transform: scale(1); }
    .tl-img img { transition: transform 0.5s ease, box-shadow 0.5s ease; }
    .tl-img img:hover { transform: translateY(-5px); box-shadow: 0 16px 38px rgba(0,0,0,0.18); }

    /* Venue image */
    .venue-img-wrap img { transition: transform 0.6s ease, box-shadow 0.6s ease; }
    .venue-img-wrap img:hover { transform: scale(1.02); }

    /* Schedule rows */
    .sch-item {
      margin: 0 -12px; padding-left: 12px; padding-right: 12px;
      border-radius: 8px; transition: background 0.3s ease;
    }
    .sch-item:hover { background: rgba(91,127,166,0.06); }
    .sch-time { transition: color 0.3s ease; }
    .sch-item:hover .sch-time { color: var(--blue-dark); font-weight: 700; }

    /* Stay cards lift */
    .stay-card {
      transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    }
    .stay-card:hover {
      transform: translateY(-6px);
      box-shadow: 0 16px 36px rgba(91,127,166,0.16);
      border-color: rgba(91,127,166,0.4);
    }
    .stay-icon { display: inline-block; transition: transform 0.4s cubic-bezier(.34,1.56,.64,1); }
    .stay-card:hover .stay-icon { transform: scale(1.18) rotate(-7deg); }

    /* Gallery overlay tint */
    .gal-item { position: relative; }
    .gal-item::after {
      content: ''; position: absolute; inset: 0; pointer-events: none;
      background: linear-gradient(transparent 55%, rgba(74,106,142,0.34));
      opacity: 0; transition: opacity 0.4s ease;
    }
    .gal-item:hover::after { opacity: 1; }

    /* Footer language button shine */
    .foot-lang { transition: background 0.25s, transform 0.25s, box-shadow 0.25s; }
    .foot-lang:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,0.22); }

    /* Respect reduced-motion */
    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after {
        animation-duration: 0.001ms !important; animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important; scroll-behavior: auto !important;
      }
      .reveal { opacity: 1 !important; transform: none !important; }
      .tl-dot span { transform: scale(1) !important; }
      .timeline::before { transform: translateX(-50%) scaleY(1) !important; }
    }

    /* ════════ WATERCOLOR DECORATIONS (lemon & hydrangea) ════════ */
    .hero-botanical { width: auto; bottom: 24px; right: 2%; line-height: 0; }
    .hero-botanical img {
      display: block; width: auto;
      height: clamp(230px, 44vh, 460px); max-width: 55vw; object-fit: contain;
      filter: drop-shadow(0 12px 24px rgba(91,127,166,0.20));
    }
    .divider-deco { display: inline-flex; align-items: center; line-height: 0; }
    .divider-deco img { display: block; width: auto; height: 68px; object-fit: contain; }
    .divider-deco.lg img { height: 150px; }
    .divider-deco.lg { margin: 4px 0; }
    .stay-icon { height: 56px; margin-bottom: 16px; }
    .stay-icon img { display: block; width: auto; height: 100%; object-fit: contain; }
