
  /* =========================================================
     0. DESIGN TOKENS — pulled from the save-the-date card
     ========================================================= */
  :root {
    --blue:        #88a1ad;  /* card background */
    --blue-nav:    #7e96a3;  /* nav: dusty blue, a touch darker */
    --blue-deep:   #5f7686;
    --blue-ink:    #445866;  /* headings / strong text */
    --blue-soft:   #e7edf0;  /* tinted surface */
    --page:        #f2f5f6;  /* page background */

    --white:       #ffffff;
    --cream:       #f4efe6;  /* envelope stage accents */
  --paper-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23p)' opacity='0.42'/%3E%3C/svg%3E");
    --sage:        #9caf88;
    --sage-deep:   #788a74;
    --gold:        #cbb27e;
    --gold-deep:   #a98d54;
    --text:        #3e4f5c;
    --text-light:  #6f8290;

    --shadow-sm: 0 1px 2px rgba(30,45,55,.06), 0 4px 14px rgba(30,45,55,.06);
    --shadow-md: 0 2px 6px rgba(30,45,55,.08), 0 14px 34px rgba(30,45,55,.10);
    --ring: 0 0 0 3px rgba(203,178,126,.35);

    --font-display: 'Melodrama', 'Georgia', serif;
    --font-body: 'Cabinet Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --frame: rgba(136,161,173,.35); /* thin stationery border colour */
    --radius: 14px;
  }

  * { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

  html, body {
    margin: 0; padding: 0; min-height: 100vh; min-height: 100dvh;
    background: var(--page);
    font-family: var(--font-body);
    color: var(--text);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;
  }
  /* While the envelope is showing: pin the page — nothing to scroll yet */
  body.locked {
    height: 100vh; height: 100dvh; overflow: hidden;
    background:
      radial-gradient(120% 90% at 50% 0%, rgba(255,255,255,.16) 0%, rgba(255,255,255,0) 55%),
      radial-gradient(90% 70% at 50% 110%, rgba(36,52,62,.35) 0%, rgba(36,52,62,0) 60%),
      linear-gradient(175deg, #94abb6 0%, var(--blue) 45%, #7d95a2 100%);
  }
  body.locked #saveTheDateView { background: none; }
  /* Root paints the same blue so overscroll never shows white */
  html:has(body.locked) {
    background:
      radial-gradient(120% 90% at 50% 0%, rgba(255,255,255,.16) 0%, rgba(255,255,255,0) 55%),
      linear-gradient(175deg, #94abb6 0%, var(--blue) 45%, #7d95a2 100%);
  }

  img { max-width: 100%; display: block; }
  a { color: var(--blue-deep); }
  a:hover { color: var(--blue-ink); }
  button { font-family: var(--font-body); }

  /* =========================================================
     1. ENVELOPE — SAVE THE DATE VIEW
     ========================================================= */
  #saveTheDateView {
    display: flex; flex-direction: column;
    min-height: 100vh; min-height: 100dvh;
    position: relative; overflow: hidden;
    isolation: isolate;
    /* Stationery backdrop: the same dusty blue as the card */
    background:
      radial-gradient(120% 90% at 50% 0%, rgba(255,255,255,.16) 0%, rgba(255,255,255,0) 55%),
      radial-gradient(90% 70% at 50% 110%, rgba(36,52,62,.35) 0%, rgba(36,52,62,0) 60%),
      linear-gradient(175deg, #94abb6 0%, var(--blue) 45%, #7d95a2 100%);
  }
  /* Faint letterpress texture (sits above the backdrop, below the content) */
  #saveTheDateView::after {
    content: ''; position: absolute; inset: 0; z-index: -1; opacity: .5;
    background-image:
      repeating-linear-gradient(45deg, rgba(255,255,255,.045) 0 1px, transparent 1px 14px),
      repeating-linear-gradient(-45deg, rgba(255,255,255,.045) 0 1px, transparent 1px 14px);
    pointer-events: none;
  }

  .stage {
    position: relative; width: 100%; height: 100vh; height: 100dvh;
    display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
    padding-bottom: max(10px, env(safe-area-inset-bottom));
    perspective: 1600px;
  }

  .stage-title {
    position: absolute; top: clamp(9%, 12vh, 18%); left: 50%; transform: translateX(-50%);
    width: min(86vw, 420px); text-align: center; color: var(--cream);
    transition: opacity .5s ease; pointer-events: none;
  }
  .stage.opened .stage-title { opacity: 0; }
  .stage-title .kicker {
    font-size: .68rem; letter-spacing: .34em; text-transform: uppercase;
    font-weight: 600; opacity: .8; margin-bottom: .5rem;
  }
  .stage-title h1 {
    margin: 0; font-family: var(--font-display); font-weight: 500;
    font-size: clamp(1.7rem, 7vw, 2.4rem); line-height: 1.15;
    text-shadow: 0 1px 8px rgba(30,45,55,.25);
  }
  .stage-title h1 .amp { font-style: italic; font-size: 1.15em; opacity: .92; padding: 0 .06em; }
  .stage-title .date-line {
    margin-top: .55rem; font-family: var(--font-display);
    font-size: clamp(1.05rem, 4.4vw, 1.35rem); letter-spacing: .12em;
    display: flex; align-items: center; justify-content: center; gap: .55em;
  }
  .stage-title .date-line::before, .stage-title .date-line::after {
    content: ''; height: 1px; width: 2.4em; background: rgba(244,239,230,.55);
  }

  .envelope-wrap {
    position: relative; font-size: clamp(13px, 4.6vw, 19px);
    width: 20em; height: 13.53em; cursor: pointer;
    -webkit-user-select: none; user-select: none; touch-action: manipulation;
    transition: transform .3s ease;
  }
  .envelope-wrap:hover { transform: translateY(-2px); }

  .envelope-wrap:not(.opened) .flap { animation: wiggle 3.2s ease-in-out infinite; }
  .envelope-wrap:not(.opened) .seal { animation: seal-invite 2.6s ease-in-out infinite; }

  @keyframes seal-invite {
    0%, 72%, 100% { transform: translate(-50%, -50%) scale(1); }
    80% { transform: translate(-50%, -50%) scale(.91); }
    88% { transform: translate(-50%, -50%) scale(1.04); }
    94% { transform: translate(-50%, -50%) scale(1); }
  }

  @keyframes wiggle {
    0%, 100% { transform: rotateX(0deg); }
    6% { transform: rotateX(-8deg); }
    12% { transform: rotateX(0deg); }
  }

  .env-back {
    position: absolute; left: 0; top: 0; width: 100%; height: 100%;
    background:
      var(--paper-grain),
      linear-gradient(165deg, #9db2bd 0%, #8ba3af 48%, #7e96a3 100%);
    background-blend-mode: overlay, normal;
    background-size: 180px 180px, 100% 100%;
    border-radius: .3em;
    box-shadow:
      0 1.9em 3.6em -1.2em rgba(30,45,55,.5),
      0 .5em 1.1em rgba(0,0,0,.18),
      inset 0 1px 0 rgba(255,255,255,.5),
      inset 0 -1px 0 rgba(41,58,68,.28);
  }
  .env-back::after { /* fine linen weave */
    content: ''; position: absolute; inset: .4em;
    background-image:
      repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 1px, transparent 1px 3px),
      repeating-linear-gradient(90deg, rgba(46,64,75,.055) 0 1px, transparent 1px 3px);
    border-radius: .2em; opacity: .55;
  }

  .pocket {
    position: absolute; left: 0; top: 0; width: 100%; height: 100%;
    overflow: hidden; z-index: 2; border-radius: .3em;
  }
  .stage.opened .pocket {
    overflow: visible;
    /* once the letter has risen, bring its layer in front of the envelope */
    animation: card-to-front .01s linear 1.5s forwards;
  }
  @keyframes card-to-front { to { z-index: 6; } }

  .card {
    position: absolute; left: 50%; bottom: .35em;
    width: min(330px, 78vw, calc(44vh / 1.406));
    transform-origin: center bottom;
    transform: translate(-50%, .4em) scale(.36);
    opacity: .98; border-radius: .25em; overflow: hidden;
    box-shadow: 0 .35em 1.4em rgba(20,30,38,.35);
    transition: transform 1.05s cubic-bezier(.22,.9,.28,1.02) .55s, box-shadow 1.05s ease .55s;
    background: var(--blue);
  }
  .card img { display: block; width: 100%; height: auto; }
  /* If save.jpg is ever missing, keep the card presentable */
  .card .card-fallback {
    display: none; aspect-ratio: 700 / 984; align-items: center; justify-content: center;
    color: var(--cream); font-family: var(--font-display); letter-spacing: .2em; text-align: center;
  }

  .env-front {
    position: absolute; left: 0; top: 0; width: 100%; height: 100%;
    background:
      var(--paper-grain),
      linear-gradient(160deg, #8399a6 0%, #748c9a 55%, #6d8593 100%);
    background-blend-mode: overlay, normal;
    background-size: 180px 180px, 100% 100%;
    clip-path: polygon(0% 32%, 50% 60%, 100% 32%, 100% 100%, 0% 100%);
    z-index: 3;
  }
  .env-front::before { /* soft daylight sweep across the pocket */
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(115deg, rgba(255,255,255,.13) 0%, rgba(255,255,255,0) 42%);
  }
  .env-front { filter: drop-shadow(0 -3px 5px rgba(31,44,53,.2)); }

  .flap {
    position: absolute; left: 0; top: 0; width: 100%; height: 100%;
    background:
      var(--paper-grain),
      linear-gradient(202deg, #9db3be 0%, #869dab 58%, #7a92a0 100%);
    background-blend-mode: overlay, normal;
    background-size: 180px 180px, 100% 100%;
    clip-path: polygon(0% 0%, 100% 0%, 100% 32%, 50% 60%, 0% 32%);
    transform-origin: top center; transform-style: preserve-3d;
    transition: transform .95s cubic-bezier(.6,-0.15,.32,1.22) .05s;
    z-index: 4; filter: drop-shadow(0 2px 3px rgba(30,45,55,.22));
  }
  .stage.opened .flap { transform: rotateX(178deg); z-index: 1; }

  .seal {
    position: absolute; left: 50%; top: 3.85em; width: 3.45em; height: 3.45em;
    transform: translate(-50%, -50%);
    border-radius: 47% 53% 50% 50% / 52% 49% 51% 48%;
    background:
      var(--paper-grain),
      radial-gradient(circle at 30% 26%, #f4e7c8 0%, var(--gold) 46%, var(--gold-deep) 78%, #8a6f3a 100%);
    background-blend-mode: overlay, normal;
    background-size: 90px 90px, 100% 100%;
    box-shadow:
      0 .3em .7em rgba(0,0,0,.38),
      0 .08em .18em rgba(0,0,0,.28),
      inset 0 -.14em .3em rgba(94,72,32,.55),
      inset 0 .12em .22em rgba(255,246,222,.75);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display); color: #4a3b1e; font-size: 1.15em; font-weight: 500;
    text-shadow: 0 1px 0 rgba(255,240,200,.65);
    z-index: 5; transition: transform .55s cubic-bezier(.5,-0.3,.6,1.2) .12s, opacity .45s ease .12s;
  }
  .seal::before { /* embossed wax rim */
    content: ''; position: absolute; inset: .18em; border-radius: inherit;
    border: 1px solid rgba(122,95,44,.55);
    box-shadow: inset 0 1px 2px rgba(255,244,214,.5), inset 0 -1px 2px rgba(94,72,32,.4);
  }
  .seal::after { /* wax glint */
    content: ''; position: absolute; left: 17%; top: 11%; width: 36%; height: 24%;
    background: radial-gradient(ellipse at center, rgba(255,252,240,.9), rgba(255,252,240,0) 70%);
    border-radius: 50%; transform: rotate(-18deg); filter: blur(1px); pointer-events: none;
  }
  .stage.opened .seal { animation: none; transform: translate(-50%, -50%) scale(.2) rotate(45deg); opacity: 0; }
  .stage.opened .card {
    transform: translate(-50%, var(--card-lift, -14vh)) scale(1);
    box-shadow: 0 1.2em 3em rgba(20,30,38,.3);
    animation: card-forward .5s ease 1.5s forwards;
  }
  /* Letter lifts towards you and fades in over the envelope front */
  @keyframes card-forward {
    from { opacity: .5; transform: translate(-50%, var(--card-lift, -14vh)) scale(1); }
    to   { opacity: 1;  transform: translate(-50%, var(--card-lift, -14vh)) scale(1.02); }
  }

  .actions {
    display: flex; flex-direction: column; align-items: center; gap: .3em;
    margin-top: .5em; opacity: 0; transform: translateY(10px);
    transition: opacity .6s ease 1.3s, transform .6s ease 1.3s;
    pointer-events: none; z-index: 10;
  }
  .stage.opened .actions { opacity: 1; transform: translateY(0); pointer-events: auto; }

  /* --- Unlock reveal choreography --- */
  #revealVeil {
    position: fixed; inset: 0; z-index: 2000;
    display: flex; align-items: center; justify-content: center;
    background:
      radial-gradient(62% 46% at 50% 44%, rgba(203,178,126,.32), rgba(203,178,126,0) 72%),
      linear-gradient(175deg, #94abb6 0%, var(--blue) 48%, #7d95a2 100%);
    opacity: 0; visibility: hidden; pointer-events: none;
  }
  #revealVeil .veil-inner { text-align: center; }
  #revealVeil .veil-kicker {
    font-size: .66rem; letter-spacing: .42em; text-transform: uppercase; font-weight: 600;
    color: rgba(244,239,230,.8); margin-bottom: .8rem;
  }
  #revealVeil .veil-monogram {
    font-family: var(--font-display); font-weight: 500; color: var(--cream);
    font-size: clamp(2.8rem, 11vw, 5rem); line-height: 1.05;
    text-shadow: 0 2px 16px rgba(30,45,55,.3);
  }
  #revealVeil .veil-monogram .amp { font-style: italic; opacity: .95; padding: 0 .04em; }
  #revealVeil .veil-date {
    margin-top: .8rem; font-family: var(--font-display); letter-spacing: .3em;
    font-size: clamp(.8rem, 3.4vw, 1rem); color: rgba(244,239,230,.85);
    display: flex; align-items: center; justify-content: center; gap: .6em;
  }
  #revealVeil .veil-date::before, #revealVeil .veil-date::after {
    content: ''; height: 1px; width: 2.6em; background: rgba(244,239,230,.5);
  }
  #revealVeil.play { animation: veilBloom 2s cubic-bezier(.45,0,.2,1) both; }
  @keyframes veilBloom {
    0% { opacity: 0; visibility: visible; }
    20% { opacity: 1; }
    74% { opacity: 1; }
    100% { opacity: 0; visibility: hidden; }
  }
  #revealVeil.play .veil-inner { animation: veilContent 2s cubic-bezier(.4,0,.2,1) both; }
  @keyframes veilContent {
    0% { opacity: 0; transform: scale(.94); filter: blur(8px); }
    28% { opacity: 1; transform: scale(1); filter: blur(0); }
    70% { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.035); filter: blur(3px); }
  }
  .stage.farewell .envelope-wrap {
    transition: transform 1.05s cubic-bezier(.55,0,.25,1), opacity .95s ease .08s, filter .95s ease .08s;
    transform: translateY(-15vh) scale(.85) rotateX(9deg);
    opacity: 0; filter: blur(5px);
  }
  .stage.farewell .stage-title { opacity: 0; transition: opacity .45s ease; }
  .stage.farewell .actions { opacity: 0 !important; pointer-events: none !important; transition: opacity .3s ease; }
  #fullSiteView.entering { animation: siteIn 1.1s cubic-bezier(.22,.9,.3,1) both; }
  @keyframes siteIn {
    from { opacity: 0; transform: scale(1.02); filter: blur(10px); }
    to { opacity: 1; transform: scale(1); filter: blur(0); }
  }
  .pw-shake { animation: pwShake .4s ease; }
  @keyframes pwShake { 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(3px); } }
  .pw-kicker {
    font-size: .6rem; letter-spacing: .4em; text-transform: uppercase; font-weight: 600;
    color: var(--gold-deep); margin-bottom: .35rem;
  }
  @media (prefers-reduced-motion: reduce) {
    #fullSiteView.entering { animation: none; }
    #revealVeil { display: none; }
    .stage.farewell .envelope-wrap { transition: opacity .3s ease; transform: none; filter: none; }
  }

  .btn-primary {
    padding: .85em 1.9em; border-radius: 999px;
    border: 1px solid rgba(255,255,255,.45);
    background: linear-gradient(180deg, rgba(255,255,255,.30) 0%, rgba(255,255,255,.12) 100%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    backdrop-filter: blur(16px) saturate(150%);
    color: #ffffff; font-size: clamp(12px, 3.6vw, 15px);
    font-weight: 600; letter-spacing: .05em; text-transform: uppercase; cursor: pointer;
    box-shadow: 0 .45em 1.2em rgba(20,30,38,.22), inset 0 1px 0 rgba(255,255,255,.45);
    text-shadow: 0 1px 2px rgba(20,30,38,.15);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  }
  .btn-primary:hover {
    background: linear-gradient(180deg, rgba(255,255,255,.40) 0%, rgba(255,255,255,.18) 100%);
    border-color: rgba(226,205,152,.8);
    box-shadow: 0 .55em 1.5em rgba(20,30,38,.26), 0 0 0 1px rgba(203,178,126,.25), inset 0 1px 0 rgba(255,255,255,.5);
  }
  .btn-primary:active { transform: scale(.97); box-shadow: 0 .2em .5em rgba(20,30,38,.18); }

  .btn-secondary {
    padding: .5em 1.2em; border-radius: 999px; border: 1px solid rgba(244,239,230,.55);
    background: transparent; color: var(--cream);
    font-size: clamp(10px, 3vw, 12px); font-weight: 600; letter-spacing: .08em;
    text-transform: uppercase; cursor: pointer; opacity: .85;
    transition: background .2s ease, opacity .2s ease;
  }
  .btn-secondary:hover { background: rgba(255,255,255,.08); opacity: 1; }

  .pw-link-btn {
    background: none; border: none; color: var(--cream); font-size: .8rem;
    text-decoration: underline; cursor: pointer; margin-top: .1rem; opacity: .85;
    padding: .35rem .5rem; min-height: 44px;
  }

  /* Compact screens: keep the whole invite on one screen */
  @media (max-height: 640px) {
    .stage { padding-bottom: max(6px, env(safe-area-inset-bottom)); }
    .envelope-wrap { font-size: clamp(11px, 2.6vh, 15px); }
    .stage-title { top: 6%; }
    .stage-title h1 { font-size: clamp(1.4rem, 5.5vw, 1.9rem); }
  }
  /* =========================================================
     2. FULL SITE VIEW — matches the stationery
     ========================================================= */
  #fullSiteView { display: none; min-height: 100vh; min-height: 100dvh; flex-direction: column; }

  /* --- Navigation: dusty blue, a touch darker --- */
  .navbar {
    position: sticky; top: 0; z-index: 900;
    background:
      linear-gradient(180deg, rgba(255,255,255,.08) 0%, rgba(255,255,255,0) 40%),
      var(--blue-nav);
    border-bottom: 1px solid rgba(255,255,255,.18);
    padding: .55rem max(1rem, env(safe-area-inset-left)) .55rem max(1rem, env(safe-area-inset-right));
    display: flex; align-items: center; justify-content: space-between; gap: .75rem;
    box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 6px 18px -8px rgba(36,52,62,.35);
    min-height: 58px;
  }
  .navbar.scrolled { box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 10px 26px -10px rgba(36,52,62,.5); }

  .nav-brand {
    display: flex; align-items: center; gap: .6rem;
    text-decoration: none; color: var(--cream); min-height: 44px;
  }
  .nav-brand .monogram {
    width: 34px; height: 34px; border-radius: 50%; flex: none;
    background: radial-gradient(circle at 32% 28%, #eee1c3, var(--gold) 58%, var(--gold-deep) 100%);
    color: #4a3b1e; font-family: var(--font-display); font-size: .72rem;
    display: flex; align-items: center; justify-content: center;
    box-shadow: inset 0 1px 2px rgba(255,255,255,.55), 0 1px 4px rgba(0,0,0,.22);
  }
  .nav-brand .names {
    font-family: var(--font-display); font-size: 1.18rem; font-weight: 500; letter-spacing: .02em;
    white-space: nowrap;
  }

  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; margin-right: -8px;
    background: none; border: none; cursor: pointer; color: var(--cream); border-radius: 10px;
  }
  .nav-toggle svg { width: 26px; height: 26px; }
  .nav-toggle .close-icon { display: none; }
  .navbar.menu-open .nav-toggle .burger-icon { display: none; }
  .navbar.menu-open .nav-toggle .close-icon { display: block; }

  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    display: none; flex-direction: column; gap: .15rem;
    margin: 0; padding: .6rem max(1rem, env(safe-area-inset-left)) .9rem;
    list-style: none;
    background: linear-gradient(180deg, var(--blue-nav) 0%, #748d9a 100%);
    border-bottom: 1px solid rgba(255,255,255,.16);
    box-shadow: 0 18px 30px -18px rgba(36,52,62,.55);
  }
  .nav-links.open { display: flex; animation: menuIn .28s ease both; }
  @keyframes menuIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }

  .nav-links a {
    display: flex; align-items: center; min-height: 46px; padding: .35rem .4rem;
    text-decoration: none; color: var(--cream);
    font-weight: 500; font-size: .95rem; letter-spacing: .14em; text-transform: uppercase;
    border-bottom: 1px solid rgba(244,239,230,.14);
    transition: color .2s ease, padding-left .2s ease;
  }
  .nav-links li:last-child a { border-bottom: none; }
  .nav-links a:hover { color: #ffffff; padding-left: .65rem; }
  .nav-links a.active { color: #ffffff; }
  .nav-links a.active::after {
    content: ''; margin-left: auto; width: 22px; height: 2px; background: var(--gold); border-radius: 2px;
  }
  /* Wedding dropdown — mobile: inline within the menu */
  .nav-links .has-sub > a .caret { width: 11px; height: 11px; margin-left: .5rem; flex: none; transition: transform .25s ease; }
  .nav-links .has-sub.open > a .caret, .nav-links .has-sub:hover > a .caret { transform: rotate(180deg); }
  .nav-links .has-sub.sub-active > a { color: #fff; }
  .nav-sub { display: none; list-style: none; margin: 0; padding: 0 0 .3rem; }
  .nav-links .has-sub.open > .nav-sub { display: block; }
  .nav-sub a { min-height: 44px; padding-left: 1.55rem; color: rgba(255,255,255,.88); font-size: .84rem; border-bottom: 1px solid rgba(244,239,230,.08); }
  .nav-sub a:hover { color: #fff; padding-left: 1.8rem; }
  .nav-sub a.active { color: #fff; }

  /* --- Layout --- */
  .site-container {
    max-width: 980px; width: 100%; margin: 0 auto;
    padding: 2rem 1.1rem 3rem; flex: 1;
  }
  .site-container:has(#home.active) { flex: 0 0 auto; padding-bottom: 0; }
  .site-container:has(.venue-foot-art) { flex: 0 0 auto; padding-bottom: 0; }
  .page-section { display: none; animation: fadeIn .45s ease both; }
  .page-section.active { display: block; }
  @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

  .section-title {
    font-family: var(--font-display); font-weight: 500;
    font-size: clamp(1.9rem, 6vw, 2.6rem); line-height: 1.1;
    color: var(--blue-ink); text-align: center; margin: 0 0 .4rem;
  }
  .travel-subheading { margin-top: 2.5rem; }
  .section-subtitle {
    text-align: center; color: var(--text-light); font-size: .78rem;
    margin-bottom: 2rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: .22em;
  }
  .venue-gallery {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .8rem; margin: 1.6rem 0 2rem;
  }
  .venue-gallery figure {
    margin: 0; padding: .45rem; background: rgba(255,255,255,.88);
    border: 1px solid rgba(203,178,126,.5); border-radius: 10px;
    box-shadow: 0 10px 24px -16px rgba(57,76,90,.55);
  }
  .venue-gallery img {
    display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
    border-radius: 6px;
  }
  .venue-gallery figcaption {
    padding: .5rem .2rem .15rem; color: var(--blue-ink);
    font-family: var(--font-display); font-size: .95rem; text-align: center;
  }
  .venue-details-grid { margin-top: 0; }
  .venue-foot-art { margin: 2rem calc(50% - 50vw) 0; line-height: 0; }
  .venue-foot-art img {
    display: block; width: min(100%, 760px); height: auto; margin-inline: auto; opacity: .48;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 18%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 18%);
  }

  .ornament {
    display: flex; align-items: center; justify-content: center; gap: .8rem;
    color: var(--gold-deep); margin: 0 auto 1.6rem;
  }
  .ornament::before, .ornament::after {
    content: ''; height: 1px; width: 44px; background: linear-gradient(90deg, transparent, var(--gold));
  }
  .ornament::after { background: linear-gradient(90deg, var(--gold), transparent); }

  /* --- Hero: echoes the save-the-date card --- */
  .hero-panel {
    position: relative; text-align: center;
    background:
      radial-gradient(120% 100% at 50% 0%, #93abb7 0%, var(--blue) 60%, #7d95a2 100%);
    color: var(--cream);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 2.4rem 1.2rem 2.2rem;
    overflow: hidden;
  }
  /* the double-line frame from the card */
  .hero-panel::before {
    content: ''; position: absolute; inset: 10px;
    border: 1px solid rgba(244,239,230,.55); border-radius: 9px;
    pointer-events: none;
  }
  .hero-panel::after {
    content: ''; position: absolute; inset: 0;
    background-image:
      repeating-linear-gradient(45deg, rgba(255,255,255,.04) 0 1px, transparent 1px 14px),
      repeating-linear-gradient(-45deg, rgba(255,255,255,.04) 0 1px, transparent 1px 14px);
    pointer-events: none;
  }
  .hero-kicker {
    font-size: .68rem; letter-spacing: .34em; text-transform: uppercase; font-weight: 600; opacity: .85;
  }
  .hero-panel h1 {
    margin: .6rem 0 0; font-family: var(--font-display); font-weight: 500;
    font-size: clamp(2.1rem, 8.5vw, 3.4rem); line-height: 1.08;
  }
  .hero-panel h1 .amp { font-style: italic; font-size: 1.12em; padding: 0 .05em; }
  .hero-married {
    margin-top: .5rem; font-size: .8rem; letter-spacing: .3em; text-transform: uppercase; font-weight: 600; opacity: .9;
  }
  .hero-date {
    margin: 1.1rem 0 0; font-family: var(--font-display);
    font-size: clamp(1.35rem, 5.5vw, 1.9rem); letter-spacing: .1em;
    display: flex; align-items: center; justify-content: center; gap: .6em;
  }
  .hero-date .bar { width: 1px; height: 1.15em; background: rgba(244,239,230,.55); }
  .hero-place { margin-top: .8rem; font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; opacity: .85; }

  .sprig { display: block; margin: 1rem auto .2rem; width: 74px; height: 22px; opacity: .9; }

  /* --- Countdown --- */
  .countdown-box {
    margin: 1.4rem auto 0; max-width: 460px;
    background: rgba(244,239,230,.12);
    border: 1px solid rgba(244,239,230,.4);
    border-radius: 12px; padding: 1rem .8rem .9rem;
    backdrop-filter: blur(2px);
  }
  .countdown-box h3 {
    margin: 0 0 .7rem; font-family: var(--font-display); font-weight: 500;
    font-size: 1.05rem; letter-spacing: .04em;
  }
  .countdown-digits { display: flex; justify-content: center; gap: clamp(.6rem, 3vw, 1.4rem); }
  .digit-item { display: flex; flex-direction: column; align-items: center; min-width: 3.2rem; }
  .digit-num {
    font-family: var(--font-display); font-size: clamp(1.7rem, 7vw, 2.3rem);
    font-weight: 500; font-variant-numeric: tabular-nums; line-height: 1;
  }
  .digit-lbl {
    margin-top: .35rem; font-size: .62rem; text-transform: uppercase;
    letter-spacing: .2em; opacity: .8;
  }

  /* --- Cards --- */
  .card-grid {
    display: grid; grid-template-columns: 1fr; gap: 1rem; margin-top: 1.25rem;
  }
  .home-info-grid { grid-template-columns: 1fr; }
  .home-details-card { border: 1px solid var(--gold); text-align: center; }
  .home-details-place { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(203,178,126,.55); }
  .home-details-card .info-link { margin-inline: auto; }
  .content-card {
    background: rgba(255,255,255,.85); border-radius: var(--radius); padding: 1.4rem 1.25rem;
    border: 1px solid rgba(255,255,255,.95);
    box-shadow: 0 14px 34px -22px rgba(95,118,134,.55);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  }
  .content-card h2, .content-card h3, .content-card h4 {
    font-family: var(--font-display); font-weight: 500; color: var(--blue-ink);
    margin: 0 0 .55rem; line-height: 1.2;
  }
  .content-card h3 { font-size: 1.35rem; }
  .content-card p { margin: 0 0 .55rem; }
  .content-card p:last-child { margin-bottom: 0; }
  .content-card strong { color: var(--blue-ink); font-weight: 600; }
  /* Accent colours: gold times & notes, sage venues */
  .schedule-card p strong { color: var(--sage-deep); }
  .notes-card p strong { color: var(--gold-deep); }
  #wedding .section-subtitle { color: var(--sage-deep); }

  .welcome-card { text-align: center; }
  .welcome-card .sprig { margin-top: 0; }

  .info-link {
    display: flex; width: fit-content; align-items: center; gap: .45rem;
    margin-top: .5rem; font-weight: 600; font-size: .82rem;
    letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
    color: var(--blue-deep); border-bottom: 1px solid var(--gold);
    padding: .35rem 0; min-height: 44px; align-items: center;
    transition: color .2s ease;
  }
  .info-link:hover { color: var(--blue-ink); }
  .info-link .arrow { font-size: 1rem; }

  /* --- Timeline --- */
  .timeline { position: relative; max-width: 640px; margin: 0 auto; padding: .5rem 0 0 .0; }
  .timeline::before {
    content: ''; position: absolute; left: 13px; top: 0; bottom: 0; width: 2px;
    background: linear-gradient(180deg, var(--gold), rgba(203,178,126,.25));
  }
  .timeline-item { position: relative; padding: 0 0 1.4rem 44px; }
  .timeline-item:last-child { padding-bottom: .2rem; }
  .timeline-dot {
    position: absolute; left: 6px; top: .35rem; width: 12px; height: 12px;
    background: var(--sage); border: 3px solid var(--page); border-radius: 50%;
    box-shadow: 0 0 0 1px var(--frame);
  }
  .timeline-item h4 { font-family: var(--font-display); font-weight: 500; color: var(--blue-ink); margin: 0 0 .3rem; font-size: 1.15rem; }
  .timeline-item p { margin: 0; font-size: .95rem; color: var(--text); }
  .timeline-item .when { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-deep); font-weight: 600; }

  /* --- Schedule day-cards --- */
  .schedule-card { display: flex; gap: .9rem; align-items: flex-start; }
  .schedule-time {
    flex: none; width: 7rem; text-align: center;
    font-family: var(--font-display); color: var(--gold-deep);
    border-right: 1px solid var(--frame); padding-right: .8rem;
    align-self: center;
  }
  .schedule-time .t { font-size: .95rem; line-height: 1.25; white-space: nowrap; }
  .schedule-time .lbl { font-size: .6rem; letter-spacing: .16em; text-transform: uppercase; color: var(--sage-deep); margin-top: .2rem; }
  .schedule-card h3 { font-size: 1.2rem; margin-top: .1rem; }
  .schedule-card .loc { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-deep); font-weight: 600; }

  /* --- Forms --- */
  .form-card { max-width: 560px; margin: 0 auto; }
  .form-group { margin-bottom: 1rem; text-align: left; }
  .form-group label {
    display: block; font-size: .72rem; font-weight: 600; color: var(--blue-ink);
    margin-bottom: .35rem; text-transform: uppercase; letter-spacing: .12em;
  }
  .form-control {
    width: 100%; padding: .8rem .9rem; border: 1px solid rgba(95,118,134,.35);
    border-radius: 10px; background: var(--white); font-family: var(--font-body);
    font-size: 16px; color: var(--text); transition: border-color .2s ease, box-shadow .2s ease;
    min-height: 48px;
  }
  .form-control:focus { outline: none; border-color: var(--gold-deep); box-shadow: var(--ring); }
  textarea.form-control { resize: vertical; min-height: 84px; }
  select.form-control { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--blue-deep) 50%), linear-gradient(135deg, var(--blue-deep) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; }

  .radio-group { display: flex; flex-direction: column; gap: .55rem; }
  .radio-label {
    display: flex; align-items: center; gap: .6rem; font-size: .95rem; cursor: pointer;
    padding: .65rem .8rem; border: 1px solid var(--frame); border-radius: 10px;
    background: var(--white); transition: border-color .2s ease, background .2s ease; min-height: 48px;
  }
  .radio-label:has(input:checked) { border-color: var(--gold-deep); background: #fdfaf3; box-shadow: var(--ring); }
  .radio-label input { accent-color: var(--sage-deep); width: 18px; height: 18px; }

  .btn-submit {
    width: 100%; padding: 1rem; margin-top: .6rem; border: none; border-radius: 999px;
    background: linear-gradient(135deg, #7c94a1 0%, #5f7686 100%);
    color: var(--cream); font-size: .95rem; font-weight: 600; letter-spacing: .12em;
    text-transform: uppercase; cursor: pointer; min-height: 52px;
    box-shadow: 0 8px 20px -8px rgba(69,89,102,.55);
    transition: transform .15s ease, box-shadow .2s ease, opacity .2s ease;
  }
  .btn-submit:hover { transform: translateY(-1px); }
  .btn-submit:active { transform: translateY(0) scale(.99); }
  .btn-submit:disabled { opacity: .6; cursor: default; transform: none; }

  .form-note { text-align: center; font-size: .85rem; color: var(--text-light); margin-top: .8rem; }
  .form-success {
    display: none; text-align: center; padding: 1.1rem .8rem; margin-top: .6rem;
    background: #f3f6ee; border: 1px solid rgba(156,175,136,.5); border-radius: 10px;
    color: var(--sage-deep); font-weight: 600;
  }
  .form-error {
    display: none; text-align: center; padding: .9rem .8rem; margin-top: .6rem;
    background: #fbf1ef; border: 1px solid rgba(196,120,110,.4); border-radius: 10px;
    color: #a45248; font-weight: 600; font-size: .9rem;
  }

  /* --- Wedding party --- */
  .party-member { text-align: center; }
  .party-avatar {
    width: 96px; height: 96px; border-radius: 50%; margin: .2rem auto .9rem;
    border: 1px solid var(--gold); background: linear-gradient(160deg, #f7f3ea, #eadfc8);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display); font-size: 1.5rem; color: var(--gold-deep);
    box-shadow: inset 0 0 0 4px var(--white);
  }
  .party-role {
    color: var(--sage-deep); font-weight: 600; margin: .2rem 0 .7rem;
    font-size: .7rem; text-transform: uppercase; letter-spacing: .2em;
  }
  .party-note { font-size: .9rem; color: var(--text-light); font-style: italic; }

  /* --- Photo dropzone --- */
  .dropzone {
    border: 2px dashed rgba(136,161,173,.7); border-radius: var(--radius);
    padding: 2.4rem 1.2rem; text-align: center; background: rgba(255,255,255,.65);
    cursor: pointer; transition: background .2s ease, border-color .2s ease;
  }
  .dropzone:hover, .dropzone:focus-visible { background: rgba(255,255,255,.95); border-color: var(--sage-deep); outline: none; }
  .dropzone .dz-icon { font-size: 2rem; margin-bottom: .4rem; }
  .dropzone h3 { margin: 0 0 .3rem; }
  .dropzone p { margin: 0; font-size: .88rem; color: var(--text-light); }
  .photo-gallery-card { margin-top: 1.25rem; }
  .photo-gallery-card h2 { margin: 0 0 .55rem; font-family: var(--font-display); font-weight: 500; color: var(--blue-ink); }
  .gallery-empty { color: var(--text-light); margin: 0; }
  #filePreviewList { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .8rem; }
  #filePreviewList img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; border: 1px solid var(--frame); box-shadow: var(--shadow-sm); }

  /* --- FAQ accordion --- */
  .faq-list { max-width: 680px; margin: 0 auto; }
  .faq-item {
    background: var(--white); border-radius: 12px; margin-bottom: .7rem;
    border: 1px solid var(--frame); overflow: hidden; box-shadow: var(--shadow-sm);
  }
  .faq-question {
    width: 100%; padding: 1.05rem 1.15rem; text-align: left; background: none; border: none;
    font-family: var(--font-display); font-size: 1.12rem; color: var(--blue-ink);
    display: flex; justify-content: space-between; align-items: center; gap: 1rem;
    cursor: pointer; min-height: 52px;
  }
  .faq-question span {
    flex: none; width: 26px; height: 26px; border-radius: 50%;
    border: 1px solid var(--gold); color: var(--gold-deep);
    display: flex; align-items: center; justify-content: center; font-family: var(--font-body);
    font-size: 1rem; transition: transform .25s ease, background .25s ease, color .25s ease;
  }
  .faq-item.open .faq-question span { transform: rotate(45deg); background: var(--gold); color: var(--white); }
  .faq-answer { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
  .faq-answer-inner { padding: 0 1.15rem 1.1rem; line-height: 1.65; color: var(--text); }
  .faq-answer-inner a { font-weight: 600; }

  /* --- Modals --- */
  .modal-overlay {
    position: fixed; inset: 0; background: rgba(36,52,62,.5);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    display: flex; align-items: flex-end; justify-content: center;
    z-index: 1000; opacity: 0; visibility: hidden;
    transition: opacity .4s ease, visibility .4s ease;
  }
  .modal-overlay.active { opacity: 1; visibility: visible; }
  .modal-card {
    background: var(--page); width: 100%; max-width: 500px; max-height: 92dvh;
    border-radius: 18px 18px 0 0; padding: 1.6rem 1.2rem max(1.4rem, env(safe-area-inset-bottom));
    overflow-y: auto; transform: translateY(100%);
    transition: transform .4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 -0.5em 2em rgba(0,0,0,.25);
    border-top: 3px solid var(--gold);
  }
  .modal-overlay.active .modal-card { transform: translateY(0); }
  .modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.2rem; }
  .modal-header h2 { margin: 0; font-family: var(--font-display); font-size: 1.5rem; color: var(--blue-ink); font-weight: 500; }
  .close-btn {
    background: none; border: none; font-size: 1.6rem; line-height: 1;
    color: var(--blue-deep); cursor: pointer; width: 44px; height: 44px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
  }
  .close-btn:hover { background: rgba(136,161,173,.15); }

  /* --- Footer --- */
  .site-footer {
    text-align: center; padding: 1.6rem 1rem max(1.6rem, env(safe-area-inset-bottom));
    background: var(--blue-ink); color: rgba(244,239,230,.85);
    font-size: .8rem; letter-spacing: .12em;
  }
  .site-footer .names { font-family: var(--font-display); font-size: 1.05rem; letter-spacing: .06em; display: block; margin-bottom: .25rem; }
  .site-footer a { color: var(--gold); text-decoration: none; }
  .site-footer a:hover { text-decoration: underline; }

  /* =========================================================
     3. RESPONSIVE — mobile first, enhance upward
     ========================================================= */
  @media (min-width: 40rem) {
    .site-container { padding: 2.6rem 2rem 3.5rem; }
    .card-grid { grid-template-columns: repeat(2, 1fr); }
    .card-grid.single { grid-template-columns: 1fr; }
    .countdown-digits { gap: 1.6rem; }
    .modal-overlay { align-items: center; padding: 1rem; }
    .modal-card { border-radius: 16px; padding: 2rem 1.8rem; max-height: 88vh; }
    .hero-panel { padding: 3rem 2rem 2.6rem; }
    .radio-group { flex-direction: row; }
    .radio-label { flex: 1; }
  }

  @media (min-width: 64rem) {
    .nav-toggle { display: none; }
    .nav-links {
      position: static; display: flex; flex-direction: row; gap: 1.35rem;
      background: none; border: none; box-shadow: none; padding: 0; margin: 0;
    }
    .nav-links.open { animation: none; }
    .nav-links a {
      min-height: 44px; padding: .35rem .1rem; font-size: .78rem;
      border-bottom: 2px solid transparent; position: relative;
    }
    .nav-links a:hover { padding-left: .1rem; color: #ffffff; }
    .nav-links a::after {
      content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px;
      background: var(--gold); border-radius: 2px; transform: scaleX(0); transition: transform .25s ease;
    }
    .nav-links a:hover::after { transform: scaleX(1); }
    .nav-links a.active::after { transform: scaleX(1); margin: 0; width: auto; }
    /* Wedding dropdown — desktop: floating panel */
    .nav-links .has-sub { position: relative; }
    .nav-sub {
      position: absolute; top: calc(100% + 12px); left: 50%; transform: translate(-50%, 8px);
      display: block; min-width: 212px; padding: .5rem 0; text-align: left;
      background: rgba(255,255,255,.97); border-radius: 14px; border: 1px solid rgba(203,178,126,.45);
      box-shadow: 0 22px 44px -20px rgba(30,45,55,.5);
      opacity: 0; visibility: hidden; pointer-events: none;
      transition: opacity .22s ease, transform .22s ease, visibility .22s;
      z-index: 80;
    }
    .nav-sub::before { content: ''; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
    .nav-links .has-sub:hover > .nav-sub, .nav-links .has-sub:focus-within > .nav-sub {
      opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0);
    }
    .nav-sub a { display: block; min-height: 0; padding: .6rem 1.15rem; font-size: .72rem; color: var(--ink); border-bottom: none; }
    .nav-sub a::after { content: none; }
    .nav-sub a:hover { color: var(--gold-deep); background: var(--cream); padding-left: 1.15rem; }
    .nav-sub a.active { color: var(--gold-deep); }
    /* Touch devices at desktop widths: tap "The Wedding" to pin the dropdown open */
    .nav-links .has-sub.open > .nav-sub {
      opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0);
    }
    .card-grid { grid-template-columns: repeat(2, 1fr); }
    .card-grid.quad { grid-template-columns: repeat(2, 1fr); }
    .schedule-grid { grid-template-columns: repeat(2, 1fr); }
    .timeline::before { left: 50%; transform: translateX(-50%); }
    .timeline-item { width: 50%; padding: 0 1.6rem 2rem; }
    .timeline-item.left { text-align: right; margin-left: 0; }
    .timeline-item.right { margin-left: 50%; text-align: left; }
    .timeline-item .timeline-dot { top: .4rem; }
    .timeline-item.left .timeline-dot { right: -7px; left: auto; }
    .timeline-item.right .timeline-dot { left: -7px; }
    .party-grid { grid-template-columns: repeat(3, 1fr); }
  }

  /* Desktop fallback for between 40-64rem: keep 2-up grids sane */
  @media (min-width: 40rem) and (max-width: 63.99rem) {
    .party-grid { grid-template-columns: repeat(2, 1fr); }
    .schedule-grid { grid-template-columns: 1fr; }
  }

  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    html { scroll-behavior: auto; }
  }

  /* =========================================================
     HOME HERO — editorial collage (arch photos, sage + gold)
     ========================================================= */
  .home-hero {
    position: relative;
    display: grid;
    grid-template-columns: 1.06fr .94fr .78fr;
    gap: clamp(1rem, 2.6vw, 2.2rem);
    align-items: center;
    margin-inline: calc(50% - 50vw);
    padding: clamp(.4rem, 1.6vw, 1.2rem) max(1.1rem, calc(50vw - 660px)) .4rem;
  }
  .hh-kicker { font-size: .68rem; letter-spacing: .34em; text-transform: uppercase; font-weight: 600; color: var(--gold-deep); }
  .hh-names {
    margin: .55rem 0 0; font-family: var(--font-display); font-weight: 500;
    font-size: clamp(2.5rem, 6vw, 4rem); line-height: 1.04; color: var(--blue-ink);
  }
  .hh-names .amp { font-style: italic; font-size: 1.1em; padding: 0 .06em; color: var(--gold-deep); }
  .hh-lede { margin: 1.05rem 0 0; max-width: 42ch; color: var(--text); font-size: .98rem; line-height: 1.65; }
  .hh-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.5rem; }
  .hh-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    min-height: 48px; padding: .78rem 1.55rem; border-radius: 999px;
    font-weight: 600; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase;
    text-decoration: none; transition: transform .25s ease, background .25s ease, box-shadow .25s ease;
  }
  .hh-btn-solid { background: var(--blue-ink); color: var(--cream); box-shadow: 0 16px 30px -14px rgba(68,88,102,.7); }
  .hh-btn-solid:hover { background: var(--blue-deep); transform: translateY(-2px); }
  .hh-btn-ghost { border: 1.5px solid var(--blue-ink); color: var(--blue-ink); }
  .hh-btn-ghost:hover { background: rgba(68,88,102,.08); transform: translateY(-2px); }
  .hh-meta { display: flex; flex-direction: column; align-items: flex-start; gap: .55rem; margin-top: 1.7rem; }
  .hh-meta-day { font-size: .7rem; letter-spacing: .34em; text-transform: uppercase; font-weight: 600; color: var(--gold-deep); }
  .hh-meta-date { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.9rem, 3vw, 2.5rem); line-height: 1.08; color: var(--blue-ink); }
  .hh-meta-rule { width: 66px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--gold) 0%, rgba(203,178,126,0) 100%); }
  .hh-meta-venue { font-size: .76rem; letter-spacing: .24em; text-transform: uppercase; font-weight: 600; color: var(--text-light); line-height: 1.75; max-width: 34ch; }

  /* centre arch photo */
  .hh-arch { position: relative; padding: 0 1.3rem 2.4rem 1.6rem; }
  .hh-arch-offset {
    position: absolute; top: 3.5%; right: -.8%; width: 88%; height: 91%;
    background: linear-gradient(180deg, #6f8794 0%, #55707f 70%);
    border-radius: 999px 999px 16px 16px; transform: rotate(3deg);
    box-shadow: 0 24px 48px -24px rgba(74,96,109,.55);
  }
  .hh-arch-img {
    position: relative; width: 100%; aspect-ratio: 3 / 4.1; object-fit: cover;
    border-radius: 999px 999px 14px 14px;
    box-shadow: 0 22px 44px -20px rgba(30,45,55,.5);
  }
  .hh-seal { position: absolute; right: 2%; bottom: .6rem; width: clamp(88px, 8.6vw, 118px); aspect-ratio: 1; filter: drop-shadow(0 10px 18px rgba(30,45,55,.28)); }
  .hh-seal svg { width: 100%; height: 100%; animation: hhSealSpin 28s linear infinite; transform-origin: 50% 50%; }
  @keyframes hhSealSpin { to { transform: rotate(360deg); } }

  /* right collage column */
  .hh-side { display: flex; flex-direction: column; align-self: stretch; padding: .4rem 0 0; }
  .hh-side-copy { align-self: center; max-width: 320px; padding: 1.2rem 0; }
  .hh-side-copy p { margin: 0; font-family: var(--font-display); font-size: clamp(1.05rem, 1.5vw, 1.28rem); line-height: 1.45; color: var(--blue-ink); font-weight: 500; }

  /* countdown — dark navy panel, gold rings */
  .hh-countdown { margin: 1.9rem auto 0; max-width: 880px; padding: 0 1.1rem; background: none; border-radius: 0; box-shadow: none; }
  .hh-countdown::after { content: none; }
  .hh-countdown .countdown-box {
    margin: 0; max-width: none;
    background: linear-gradient(172deg, #35454f 0%, #26333d 55%, #212c35 100%);
    border: 1px solid rgba(203,178,126,.28);
    border-radius: 28px;
    padding: 1.6rem 1.1rem 1.8rem;
    box-shadow: 0 30px 60px -30px rgba(33,44,53,.7);
    position: relative; overflow: hidden;
  }
  .hh-countdown .countdown-box::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(120% 100% at 50% -35%, rgba(255,255,255,.1) 0%, rgba(255,255,255,0) 55%);
  }
  .hh-countdown .countdown-box h3 {
    margin: 0 0 1.25rem; font-style: italic; color: var(--gold); opacity: 1;
    font-size: clamp(1.3rem, 2.6vw, 1.7rem); letter-spacing: .03em;
  }
  .hh-countdown .countdown-digits { gap: clamp(.6rem, 2.6vw, 1.5rem); }
  .hh-countdown .digit-item {
    width: clamp(72px, 11.5vw, 118px); aspect-ratio: 1; min-width: 0;
    justify-content: center; gap: .15rem; padding: 0;
    border: 1.6px solid rgba(203,178,126,.9); border-radius: 50%;
    background: radial-gradient(circle at 50% 30%, rgba(203,178,126,.1) 0%, rgba(203,178,126,.03) 70%);
    box-shadow: 0 0 0 5px rgba(203,178,126,.06), inset 0 0 20px rgba(203,178,126,.07);
  }
  .hh-countdown .digit-num { color: #ddc08a; font-size: clamp(1.45rem, 3.2vw, 2.15rem); line-height: 1; }
  .hh-countdown .digit-lbl { color: rgba(233,216,182,.9); opacity: 1; font-size: .56rem; letter-spacing: .28em; margin-top: .25rem; text-indent: .28em; }

  /* footer art — low-opacity venue illustration, full width */
  .home-foot-art { margin: 2.4rem calc(50% - 50vw) 0; line-height: 0; }
  .home-foot-art img {
    width: min(100%, 620px); height: auto; display: block; margin-inline: auto; opacity: .48;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 18%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 18%);
  }

  @media (max-width: 63.99rem) {
    .venue-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-hero { grid-template-columns: 1fr; margin-inline: 0; padding: .2rem 0 0; gap: 1.6rem; }
    .hh-copy { text-align: center; }
    .hh-lede { margin-inline: auto; }
    .hh-actions { justify-content: center; }
    .hh-meta { align-items: center; }
    .hh-meta-rule { background: linear-gradient(90deg, rgba(203,178,126,0), var(--gold), rgba(203,178,126,0)); }
    .hh-arch { max-width: 430px; margin: .4rem auto 0; padding: 0 .6rem 2rem .9rem; }
    .hh-seal { right: -2%; bottom: .2rem; }
    .hh-side { padding: 0; }
    .hh-side-copy { align-self: center; text-align: center; max-width: 46ch; padding: .4rem 0 0; }
    .hh-side-copy .info-link { justify-content: center; margin-inline: auto; }
  }
  @media (max-width: 30rem) {
    .hh-actions .hh-btn { flex: 1 1 100%; }
    .hh-arch { max-width: 100%; }
    .hh-countdown { padding: 0 .55rem; }
    .hh-countdown .countdown-box { padding: 1.35rem .7rem 1.5rem; border-radius: 22px; }
  }
  @media (prefers-reduced-motion: reduce) {
    .hh-seal svg { animation: none; }
  }

/* ---- Multi-page: show the site once the gate unlocks (inner pages render directly) ---- */
  body:not(.locked) #fullSiteView { display: flex; }

  /* =========================================================
     WEDDING DAY — "A Celebration of Love" vertical timeline
     + scattered polaroid frames (v5)
     ========================================================= */
  #wedding .tl-wrap {
    position: relative;
    overflow: hidden;
    margin-inline: calc(50% - 50vw);
    padding: clamp(2.4rem, 5vw, 3.6rem) max(1.1rem, calc(50vw - 620px)) clamp(2.6rem, 5vw, 3.8rem);
    background:
      radial-gradient(110% 70% at 50% 0%, rgba(255,255,255,.07) 0%, rgba(255,255,255,0) 55%),
      radial-gradient(80% 60% at 50% 115%, rgba(203,178,126,.10) 0%, rgba(203,178,126,0) 60%),
      linear-gradient(175deg, #829baa 0%, #6b8494 48%, #55707f 100%);
    border-radius: 4px;
    box-shadow: var(--shadow-md);
  }

  /* --- Header --- */
  .tl-head { text-align: center; position: relative; z-index: 1; }
  .tl-flourish { width: 150px; height: auto; color: var(--gold); display: block; margin: 0 auto .6rem; }
  .tl-title {
    font-family: var(--font-display); font-weight: 500;
    font-size: clamp(2.5rem, 7vw, 4.1rem); line-height: 1.04;
    color: #f6efdf; margin: 0;
  }
  .tl-dash { color: var(--gold); font-weight: 400; padding-inline: .04em; }
  .tl-love { display: flex; align-items: center; justify-content: center; gap: .9rem; margin-top: .7rem; }
  .tl-rule { height: 1px; width: clamp(54px, 11vw, 110px); background: linear-gradient(90deg, rgba(203,178,126,0), var(--gold)); }
  .tl-rule:last-child { background: linear-gradient(90deg, var(--gold), rgba(203,178,126,0)); }
  .tl-love-txt { font-size: .82rem; font-weight: 600; letter-spacing: .42em; text-transform: uppercase; color: #f6efdf; text-indent: .42em; }
  .tl-intro { color: rgba(247,242,230,.85); font-size: .95rem; margin: 1.1rem auto 0; max-width: 46ch; }

  /* --- Timeline spine --- */
  .tl { position: relative; max-width: 61rem; margin: 2.6rem auto 0; padding: .4rem 0 .6rem; }
  .tl::before {
    content: ''; position: absolute; left: 50%; top: 0; bottom: 0;
    border-left: 2px dashed rgba(203,178,126,.8);
    transform: translateX(-50%);
  }
  .tl-row {
    position: relative;
    display: grid; grid-template-columns: 1fr 1fr;
    gap: clamp(1.6rem, 4vw, 3.6rem); align-items: center;
    padding: 1.15rem 0;
  }
  .tl-row::after {
    content: ''; position: absolute; left: 50%; top: 50%;
    width: 11px; height: 11px; border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 4px rgba(203,178,126,.28), 0 0 0 10px rgba(203,178,126,.08);
    transform: translate(-50%, -50%);
  }
  .tl-row.flip .tl-photo-cell { order: 2; }
  .tl-row.flip .tl-text-cell { order: 1; }

  /* --- Photo cards (polaroid-flavoured, straight) --- */
  .tl-photo {
    background: #fdf8ee; padding: 9px 9px 12px; border-radius: 10px;
    box-shadow: 0 16px 34px rgba(23,44,56,.22);
    max-width: 340px; margin: 0 auto;
  }
  .tl-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; border-radius: 6px; }
  .tl-photo img.tl-bw { filter: grayscale(1); }
  .tl-photo figcaption {
    font-family: var(--font-display); color: #8a7550;
    text-align: center; font-size: .98rem; padding-top: .55rem;
  }

  /* --- Text moments --- */
  .tl-text-cell { display: flex; }
  .tl-moment { margin: auto; text-align: center; max-width: 300px; }
  .tl-when { font-size: .78rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: #f7f1e2; }
  .tl-when span { font-size: .68rem; opacity: .85; }
  .tl-what {
    font-family: var(--font-display); font-weight: 500;
    font-size: clamp(1.45rem, 2.6vw, 1.85rem); line-height: 1.12;
    letter-spacing: .05em; text-transform: uppercase;
    color: #f6efdf; margin: .4rem 0 .3rem;
  }
  .tl-where { font-size: .74rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: rgba(247,241,226,.85); margin: 0; }
  .tl-copy { color: rgba(247,242,230,.9); font-size: .92rem; margin: .5rem 0 0; }

  .tl-end { margin: 2.1rem auto 0; }

  /* --- Polaroids (scattered) --- */
  .tl-pols { position: static; }
  .polaroid {
    position: absolute; z-index: 2; margin: 0;
    background: #fffdf8; padding: 9px 9px 30px; border-radius: 4px;
    box-shadow: 0 16px 34px rgba(23,44,56,.30);
  }
  .polaroid img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; border-radius: 2px; }
  .polaroid-crop { width: 100%; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 2px; }
  .polaroid-crop img { height: 100%; transform: scale(1.1); }
  .polaroid figcaption { font-family: var(--font-display); color: #5a6a76; text-align: center; font-size: .95rem; padding-top: .55rem; }
  .polaroid::before {
    content: ''; position: absolute; top: -10px; left: 50%;
    transform: translateX(-50%) rotate(-3deg);
    width: 72px; height: 20px; background: rgba(203,178,126,.42);
    box-shadow: 0 2px 6px rgba(0,0,0,.14);
  }
  .pol-1 { top: 2rem;    left: 2%;    width: 185px; transform: rotate(-7deg); }
  .pol-2 { top: 33%;     right: 2.5%; width: 195px; transform: rotate(6deg); }
  .pol-3 { top: 58%;     left: 1.5%;  width: 180px; transform: rotate(-5deg); }
  .pol-4 { bottom: 5.5%; right: 4%;   width: 170px; transform: rotate(8deg); }

  /* --- Responsive --- */
  @media (max-width: 63.99rem) {
    .tl::before { left: 15px; transform: none; }
    .tl-row, .tl-row.flip { grid-template-columns: 1fr; padding-left: 2.7rem; row-gap: .9rem; }
    .tl-row .tl-photo-cell, .tl-row.flip .tl-photo-cell { order: 0; }
    .tl-row .tl-text-cell, .tl-row.flip .tl-text-cell { order: 1; }
    .tl-row::after { left: 15px; }
    .tl-moment { text-align: left; margin: 0; max-width: none; }
    .tl-photo { margin: 0; max-width: 430px; }
    .tl-pols { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.4rem 1.5rem; margin-top: 2.2rem; }
    .polaroid, .pol-1, .pol-2, .pol-3, .pol-4 { position: static; width: 148px; }
    .pol-1 { transform: rotate(-5deg); } .pol-2 { transform: rotate(4deg); }
    .pol-3 { transform: rotate(-4deg); } .pol-4 { transform: rotate(5deg); }
  }
  @media (max-width: 30rem) {
    .polaroid, .pol-1, .pol-2, .pol-3, .pol-4 { width: 126px; }
    .tl-flourish, .tl-end { width: 120px; }
  }
