/* The story page (build 12): the J&E story's styles, as they were. */
  :root {
    --ivory: #F3EBD8; --paper: #F8F3E7; --forest: #2D3B2D; --soft-black: #1D1C1A; --gold: #C5A767; --gold-hi: #D4BC7E;
    --burgundy: #5E1F2D; --frost: #E8ECEC; --slate: #9FB1BC; --muted: #5d6152;
    --display: "Italiana", "Cormorant Garamond", Georgia, serif;
    --story: "Cormorant Garamond", Georgia, serif;
    --body: "Hanken Grotesk", system-ui, sans-serif;
    color-scheme: light;
  }
  html, body { background: var(--ivory); color: var(--soft-black); }
  body { margin: 0; font-family: var(--body); -webkit-font-smoothing: antialiased; }


  /* every chapter about 55% as long to scroll as before (Paul, 1 Oct 2026: some were so slow "someone will think its broken");
     each one times its animations as a fraction of its own height, so they all still play in full */
  .track { position: relative; height: 330vh; }
  .stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: transparent; }
  /* pictures, maps and washes melt into the paper at the top and bottom of every chapter: no hard edges */
  .stage > canvas, .stage > .ap-fig { -webkit-mask-image: linear-gradient(transparent, #000 9%, #000 91%, transparent); mask-image: linear-gradient(transparent, #000 9%, #000 91%, transparent); }
  .scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 0.8s ease; }
  .scene.ready { opacity: 1; }
  .grain { display: none; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: multiply; opacity: 0.3;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.55 0 0 0 0 0.5 0 0 0 0 0.42 0 0 0 0.35 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
  body::after { content: ""; position: fixed; inset: 0; z-index: 50; pointer-events: none; mix-blend-mode: multiply; opacity: 0.3;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.55 0 0 0 0 0.5 0 0 0 0 0.42 0 0 0 0.35 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

  /* the paper card */
  .panel { position: absolute; z-index: 2; left: clamp(20px, 5vw, 80px); top: 50%; translate: 0 -50%; width: min(30vw, 26rem);
    padding: clamp(28px, 3.2vw, 44px) clamp(24px, 2.8vw, 40px) clamp(30px, 3.2vw, 44px); opacity: 0; display: grid; gap: 12px; isolation: isolate; }
  .panel::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
  /* 1 paper card: ivory, deckled edge, gold hairline, a soft shadow like a place card.
     The torn paper is a picture of the old deckle filters (img/paper, made by hwm/paper.mjs), stretched round the card as a frame:
     iPhones redrew the live filters on the processor, which froze the page for up to a second at the RSVP (30 Sep 2026) */
  .panel::before { border: 0 solid transparent; border-image: url(img/paper/panel.webp) 108 fill / 54px / 32px round; }
  .s4 { bottom: -62px; left: -34px; } .s5 { bottom: -44px; }

  .sprig { position: absolute; pointer-events: none; }
  /* corner flowers and sprigs drift into focus as they come into view, rather than banging in */
  .deco .sprig, .deco .rc-corner, .deco .dt-ink { opacity: 0; filter: blur(10px); transform: scale(0.94);
    transition: opacity 1.2s ease, filter 1.5s ease, transform 1.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
  .deco .sprig.in, .deco .rc-corner.in, .deco .dt-ink.in { opacity: 1; filter: none; transform: none; }
  @media (prefers-reduced-motion: reduce) { .deco .sprig, .deco .rc-corner, .deco .dt-ink { filter: none; transform: none; transition: opacity 0.4s ease; } }
  .s1 { width: clamp(90px, 8.5vw, 124px); right: -52px; top: -70px; rotate: 28deg; }
  .s2 { width: clamp(64px, 6vw, 88px); right: 44px; top: -56px; rotate: -18deg; }
  .s3 { width: clamp(44px, 4vw, 58px); right: -30px; top: 6px; rotate: 12deg; }
  .s4 { width: clamp(64px, 6vw, 86px); left: -30px; bottom: -34px; rotate: -150deg; }
  .s5 { width: clamp(40px, 3.6vw, 52px); left: 30px; bottom: -26px; rotate: 20deg; }

  .kicker { font-family: var(--story); font-style: italic; font-size: clamp(1.1rem, 1.5vw, 1.3rem); color: #9C7F43; margin: 0; position: relative; }
  .title { font-family: var(--display); font-weight: 400; font-size: clamp(2.8rem, 4.6vw, 4.6rem); text-wrap: balance; line-height: 0.95; color: var(--forest); margin: 0; letter-spacing: 0.01em; position: relative; }
  /* each title letter grows up from its baseline as it comes into focus (app.js titleFx) */
  .title .tw { display: inline-block; white-space: nowrap; }
  .title .tc { display: inline-block; transform-origin: 50% 100%; }
  .rule { width: 56px; height: 1px; background: var(--gold); margin: 4px 0 2px; position: relative; }
  .fill { font-family: var(--story); font-size: clamp(1.2rem, 1.55vw, 1.5rem); line-height: 1.45; margin: 0; color: var(--forest); position: relative; }
  .fill .w { color: rgba(45, 59, 45, 0.22); transition: color 0.35s ease; }
  .fill .w.on { color: var(--forest); }
  /* chapters one to ten: title and story in deep forest (Paul, 1 Oct 2026: forest "isnt dark enough"; chose this over black) */
  .track .title, .track .fill, .track .fill .w.on { color: #16211A; }
  .track .fill .w { color: rgba(22, 33, 26, 0.22); }
  .where { margin: 4px 0 0; font: 500 0.72rem/1.4 var(--body); letter-spacing: 0.16em; text-transform: uppercase; color: #7a6a44; position: relative; }

  .splash { position: absolute; z-index: 1; width: clamp(40px, 6vw, 90px); aspect-ratio: 1; opacity: 0; mix-blend-mode: multiply; pointer-events: none; }
  .status { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 3; font: 500 12px/1 var(--body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
  .status[hidden] { display: none; }
  .cue { position: absolute; right: clamp(20px, 4vw, 48px); bottom: clamp(18px, 4vh, 36px); z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 10px;
    font: 500 11px/1 var(--body); letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); transition: opacity 0.4s; }
  .cue::after { content: ""; width: 1px; height: 34px; background: linear-gradient(var(--gold), transparent); animation: drop 1.8s ease-in-out infinite; }
  @keyframes drop { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

  @media (max-width: 760px), (max-width: 1100px) and (orientation: portrait) {
    
    .panel { left: 16px; right: 16px; top: auto; bottom: 18px; translate: none; width: auto; padding: 18px 20px 22px; gap: 5px; }
    .title { font-size: clamp(2.5rem, 11vw, 3.2rem); }
    .track .panel .title { font-size: clamp(2rem, 9vw, 2.4rem); }
    .track .panel .kicker { font-size: 0.95rem; }
    .track .panel .rule { margin: 2px 0 0; }
    .panel::before { border-image-source: url(img/paper/panel-phone.webp); }
    .fill { font-size: 1rem; line-height: 1.36; }
    .where { font-size: 0.6rem; letter-spacing: 0.14em; }
    .s1 { width: 80px; right: -12px; top: -40px; } .s2 { width: 62px; right: 50px; top: -34px; } .s3 { display: none; }
    .s4 { width: 56px; left: -10px; bottom: -22px; } .s5 { display: none; }
    .cue { display: none; }
    }
  @media (prefers-reduced-motion: reduce) { .cue::after { animation: none; } .scene { transition: none; } }
  /* at the foot of the screen all the way down to the RSVP: guests did not know to keep scrolling (Paul, 30 Sep 2026).
     An ivory label with a gold hairline, the words breathing gently and a little ink arrow bobbing */
  /* (1 Oct 2026, Paul: the padding "is bad", the icon should be "above the button animated a bit bigger without a background")
     the mouse floats on its own above the words, ink with a soft paper glow so it reads over any picture; the words keep the forest pill */
  .keep { position: fixed; z-index: 35; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); translate: -50% 0; display: flex; flex-direction: column; align-items: center; gap: 10px;
    pointer-events: none; transition: opacity 0.6s ease; animation: keep-nudge 3.2s ease-in-out infinite; }
  .keep-pill { display: block; padding: 13px 28px 14px; border: 1px solid var(--gold); border-radius: 999px; background: var(--forest); outline: 1px solid rgba(197, 167, 103, 0.35); outline-offset: 3px;
    font: italic 500 1.2rem/1 var(--story); color: var(--ivory); white-space: nowrap; box-shadow: 0 6px 16px rgba(60, 45, 25, 0.16); }
  /* (Paul, 1 Oct 2026: "much thinner and elegant", chose the fine hairline mouse) a pen line, a dot of a wheel, one chevron breathing */
  .keep-mouse { width: 26px; height: 54px; flex: none; fill: none; stroke: rgba(22, 33, 26, 0.85); stroke-linecap: round; stroke-linejoin: round; overflow: visible;
    filter: drop-shadow(0 0 2px rgba(248, 243, 231, 0.95)) drop-shadow(0 0 6px rgba(248, 243, 231, 0.7)); }
  .keep-mouse rect { stroke-width: 0.9; }
  .keep-wheel { fill: var(--burgundy); stroke: none; animation: keep-wheel 2.2s cubic-bezier(.5, 0, .3, 1) infinite; }
  .keep-chev { stroke: #9C7F43; stroke-width: 0.9; animation: keep-chev 2.2s ease-in-out infinite; }
  @keyframes keep-wheel { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: 1; } 75% { transform: translateY(8px); opacity: 0; } 100% { opacity: 0; } }
  @keyframes keep-chev { 0%, 100% { opacity: 0.25; transform: translateY(-1px); } 50% { opacity: 1; transform: translateY(2px); } }
  @keyframes keep-nudge { 0%, 70%, 100% { transform: translateY(0); } 80% { transform: translateY(5px); } 90% { transform: translateY(0); } }
  .keep.gone { opacity: 0; }
  /* on phones the cards sit at the foot of the screen, so they move up to leave the label its own space */
  @media (max-width: 760px), (max-width: 1100px) and (orientation: portrait) { .keep { gap: 8px; } .keep-pill { font-size: 1.02rem; padding: 11px 22px 12px; } .keep-mouse { width: 22px; height: 46px; }
    .panel { bottom: calc(124px + env(safe-area-inset-bottom, 0px)); }
    
    .track.home .panel { bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
    /* story-v253: Six months apart and The travels too, whose words run longer and went under the label */
    .track.apart .panel, .track.travels .panel { bottom: calc(14px + env(safe-area-inset-bottom, 0px)); } }
  @media (prefers-reduced-motion: reduce) { .keep, .keep-wheel, .keep-chev { animation: none; } }

  /* intro, gaps and the ink line */
  .flow { position: relative; display: grid; place-items: center; text-align: center; padding: 0 16px; }
  .intro { min-height: 100vh; min-height: 100svh; align-content: start; padding-top: 22vh; }
  .intro .mono { font-family: var(--display); font-size: clamp(2.6rem, 6vw, 4rem); line-height: 1; color: var(--forest); margin: 0; position: relative; z-index: 1; }
  .intro .mono i { font-family: var(--story); font-style: italic; color: var(--gold); padding: 0 0.12em; }
  .intro .names { font-family: var(--story); font-style: italic; font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1; color: var(--forest); margin: 16px 0 0; position: relative; z-index: 1; }
  .intro .wed { font-family: var(--story); font-style: italic; font-size: clamp(1rem, 1.3vw, 1.1rem); line-height: 1; color: var(--muted); margin: 8px 0 0; position: relative; z-index: 1; }
  .intro .sub { font: 500 0.75rem/1 var(--body); letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); margin: 0 0 22px; }
  /* the wreath round the opening (build 53, spring's wild crescent): behind the monogram, the names and the ribbon, its middle a little
     below theirs, so the names sit inside its heavy foot and the kicker inside its open top; 3.4 times the monogram's height, never
     wider than the screen; on a short laptop window its foot runs behind the Keep scrolling cue, which floats over it as it does
     over the pictures (capping it by height put a flower on the kicker) */
  .intro .opening { position: relative; --mark-h: clamp(84px, 9vw, 124px); --ow: min(calc(var(--mark-h) * var(--mark-k, 1) * 3.4), 100vw); }
  .intro .op-wreath, .intro .op-flies { position: absolute; left: 50%; top: calc(100% - var(--ow) * 0.67); width: var(--ow); height: var(--ow); max-width: none; margin-left: calc(var(--ow) / -2); pointer-events: none; z-index: 0; }
  /* its butterflies (build 54) fly in a box laid exactly over it, above it; story.js moves each from the box's top left corner */
  .intro .op-flies { z-index: 1; }
  .intro .op-fly { position: absolute; left: 0; top: 0; height: auto; max-width: none; opacity: 0; will-change: transform, opacity; }
  /* the opening dressed as a mock-up (build 91, autumn): a box laid exactly over the wreath, each picture placed in wreath widths
     from its top left; the "under" pieces lie beneath the splash and the words, the "over" ones on top; the opening makes room
     below itself for the lowest of them (--low, in wreath widths from the wreath's top) */
  .intro .op-dress { position: absolute; left: 50%; top: calc(100% - var(--ow) * 0.67); width: var(--ow); height: var(--ow); margin-left: calc(var(--ow) / -2); pointer-events: none; }
  /* each piece is drawn --s times its size, about a point (--px, --py) in wreath widths: the opening's own pieces at 1 everywhere,
     the lower arrangement (.lo, from 2 wreath widths down) smaller on a tablet or phone so it all shows (Paul: "resize things to
     suit you"), about its own middle; a laptop sees it exactly as the mock-up */
  .intro .opening.dressed { --ls: 1; }
  .intro .op-dress { --s: 1; --px: 0.5; --py: 0.5; --lpy: 4.6; }
  .intro .op-dress img { position: absolute; height: auto; max-width: none; will-change: transform;
    left: calc(var(--ow) * (var(--px) + (var(--x) - var(--px)) * var(--s))); top: calc(var(--ow) * (var(--py) + (var(--y) - var(--py)) * var(--s))); width: calc(var(--ow) * var(--w) * var(--s) * var(--k, 1)); }
  .intro .op-dress img.lo { --s: var(--ls); --py: var(--lpy); }
  /* the insects at 0.6 of the size they have in the mock-up (Paul: "the insects are way to big") */
  .intro .op-dress img:is([data-m=fly], [data-m=moth], [data-m=dart], [data-m=buzz]) { --k: 0.6; }
  .intro .op-dress img[data-m=feather] { --k: 0.55; }   /* and the feathers (Paul: "feathers smaller") */
  @media (max-width: 1100px) { .intro .opening.dressed { --ls: 0.82; } }
  @media (max-width: 600px) { .intro .opening.dressed { --ls: 0.56; } }
  .intro .op-dress.under { z-index: -1; }
  .intro .op-dress.over { z-index: 1; }
  .intro:has(.opening.dressed) .sub, .intro .opening.dressed > .mono, .intro .opening.dressed > .names, .intro .opening.dressed > .wed { position: relative; z-index: 2; }   /* the words stay in front of anything blowing past */
  .intro .opening.dressed { margin-bottom: max(0px, calc(var(--ow) * (4.6 + (var(--low, 0) - 4.6) * var(--ls) - 2.2))); }
  .intro:has(.opening) { overflow-x: clip; }
  /* the end wreath's and the reply card's dressing (build 96): a box laid over each, every piece placed and sized in widths of
     its box (container units), so it keeps its place on a phone; under or over the wreath, always behind the end's words */
  .dress { position: absolute; inset: 0; pointer-events: none; container-type: inline-size; }
  .dress img { position: absolute; height: auto; max-width: none; will-change: transform; left: calc(var(--x) * 100cqw); top: calc(var(--y) * 100cqw);
    width: calc(var(--w) * 100cqw); rotate: var(--r, 0deg); }
  .dress img.b { top: auto; bottom: calc(var(--y) * 100cqw); }
  .after .dress { opacity: var(--fg); }
  .after .dress.over { z-index: 1; }
  .after .fin-mark { z-index: 2; }
  .rsvp-card .dress { z-index: 1; }
  .gap { height: 50vh; }
  .after { min-height: 125vh; align-content: center; gap: 18px; padding-block: 16vh 14vh; }
  .after .finale { position: relative; z-index: 2; width: min(78vw, 560px); aspect-ratio: 1; --fg: 0; --fm: 0; }
  .after .garland { position: absolute; inset: 0; width: 100%; height: 100%; opacity: var(--fg); transform: scale(calc(0.93 + var(--fg) * 0.07)) rotate(calc((1 - var(--fg)) * -10deg)); }
  
  .after .fin-crest { justify-self: center; margin-top: 10px; width: 80px; aspect-ratio: 5 / 6; box-sizing: border-box; padding: 11px 10px 9px; border-radius: 50%;
    background: #F8F3E7; box-shadow: 0 0 0 1px rgba(197, 167, 103, 0.9), 0 0 0 5px #F8F3E7, 0 0 0 6px rgba(197, 167, 103, 0.7), 0 8px 14px rgba(60, 45, 25, 0.16);
    --z-ink: #2D3B2D; --z-bow: #5E1F2D; }
  .after .fin-crest svg { display: block; width: 100%; height: auto; }
  .after .fin-mark { position: absolute; left: 21%; top: 24%; width: 58%; height: auto; opacity: var(--fm); transform: translateY(calc((1 - var(--fm)) * 8px)); }
  .fin-je { font-family: var(--display); font-size: 140px; fill: var(--forest); }
  .fin-amp { font-family: var(--story); font-style: italic; fill: var(--gold); }
  .fin-stars path { fill: var(--gold); }
  .fin-date { font-family: var(--story); font-style: italic; font-size: 24px; letter-spacing: 3px; fill: var(--forest); }
  /* the couple's own drawn monogram in place of the initials (build 42, summer): the same height on the loading screen and the
     opening, so the loader's sits exactly on the page's; in the words' colour */
  .mono.marked { --mark-h: clamp(84px, 9vw, 124px); line-height: 0; }
  .mono.marked svg { display: block; height: calc(var(--mark-h) * var(--mark-k, 1)); width: auto; margin: 0 auto; overflow: visible; }   /* --mark-k: couple.mark.size (build 49) */
  .fin-nr { fill: var(--forest); }
  .after .fin-place { font: 500 0.75rem/1 var(--body); font-style: normal; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); opacity: var(--fm, 0); margin: -2vh 0 0; }
  /* no longer the end of the page: the details follow straight on, so no tall empty space under the crest */
  .after { min-height: 0; padding-bottom: 4vh; }

  /* the RSVP card: ivory, deckled, gold hairline, messy ink at two opposite corners */
  /* the details: practical cards before the RSVP. Anything the couple have not told us yet says "Details to follow", never a guess */
  .details { position: relative; display: grid; justify-items: center; gap: 36px; padding: 7vh 16px 4vh; overflow-x: clip; }
  .dt-head { display: grid; justify-items: center; text-align: center; gap: 12px; }
  .dt-grid { width: min(960px, 100%); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
  /* folded away until asked for; opens in place with a gentle drop */
  .dt-grid[hidden] { display: none; }
  .dt-grid.opening { animation: dt-in 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  @keyframes dt-in { from { opacity: 0; transform: translateY(-12px); } }
  .dt-toggle { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 26px; border: 1px solid rgba(155, 132, 84, 0.55); border-radius: 2px; background: transparent;
    color: var(--forest); font: 500 0.75rem/1 var(--body); letter-spacing: 0.18em; text-transform: uppercase; cursor: pointer; transition: background 0.25s, color 0.25s, border-color 0.25s; }
  .dt-toggle:hover { background: var(--forest); border-color: var(--forest); color: #F8F3E7; }
  .dt-toggle:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
  .dt-plus { position: relative; width: 10px; height: 10px; flex: none; }
  .dt-plus::before, .dt-plus::after { content: ""; position: absolute; left: 0; top: 4.5px; width: 10px; height: 1px; background: currentColor; transition: transform 0.3s ease; }
  .dt-plus::after { transform: rotate(90deg); }
  .dt-toggle[aria-expanded="true"] .dt-plus::after { transform: rotate(0deg); }
  @media (prefers-reduced-motion: reduce) { .dt-grid.opening { animation: none; } .dt-plus::after { transition: none; } }
  .dt-card { position: relative; min-width: 0; box-sizing: border-box; padding: 34px clamp(22px, 3.4vw, 38px) 32px; isolation: isolate; display: grid; align-content: start; gap: 10px; }
  .dt-card::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; border: 0 solid transparent; border-image: url(img/paper/details.webp) 100 fill / 50px / 32px round; }
  .dt-card.wide { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 40px; }
  .dt-card.wide .dt-label, .dt-card.wide h3 { grid-column: 1 / -1; }
  
  @media (min-width: 761px) and (orientation: landscape), (min-width: 1101px) { .dt-grid > .dt-card:last-child:nth-child(even) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 11px); } }
  .dt-card .dt-label { margin: 0; font: 500 0.7rem/1.3 var(--body); letter-spacing: 0.18em; text-transform: uppercase; color: #7a6a44; }
  
  .dt-you { width: min(640px, 100%); justify-items: center; text-align: center; gap: 14px; }
  .dt-you .dt-words p { margin: 0 0 10px; font: 400 clamp(1.15rem, 1.8vw, 1.3rem)/1.6 var(--story); color: var(--forest); }
  .dt-you .dt-words p:last-child { margin-bottom: 0; }
  .dt-card h3 { margin: 0 0 4px; font: 400 clamp(1.6rem, 2.4vw, 1.9rem)/1.15 var(--story); color: var(--forest); text-wrap: balance; }
  .dt-card p { margin: 0; font: 400 1rem/1.6 var(--body); color: var(--soft-black); }
  .dt-card address { font: 400 1rem/1.6 var(--body); font-style: normal; color: var(--soft-black); }
  .dt-tbc { font-family: var(--story) !important; font-style: italic; font-size: 1.15rem !important; color: var(--muted) !important; }
  .dt-sub { display: grid; gap: 6px; align-content: start; }
  .dt-map { justify-self: start; margin-top: 8px; font: 500 0.75rem/1 var(--body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--forest);
    text-decoration: underline; text-decoration-color: var(--burgundy); text-underline-offset: 6px; padding: 12px 0; }
  .dt-map:hover { color: var(--burgundy); }
  .dt-map:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
  .dt-ink { position: absolute; z-index: 1; pointer-events: none; width: 264px; height: auto; }
  .dt-ink.tl { left: -114px; top: -106px; } .dt-ink.br { right: -114px; bottom: -106px; }
  @media (max-width: 760px), (max-width: 1100px) and (orientation: portrait) {
    .dt-grid { grid-template-columns: minmax(0, 1fr); }
    .dt-card.wide { grid-template-columns: minmax(0, 1fr); row-gap: 14px; }
    .dt-ink { width: 170px; } .dt-ink.tl { left: -70px; top: -66px; } .dt-ink.br { right: -70px; bottom: -66px; }
  }
  .rsvp { position: relative; display: grid; justify-items: center; padding: 6vh 16px 20vh; overflow-x: clip; }
  .rsvp-card { position: relative; width: min(640px, 100%); box-sizing: border-box; padding: clamp(40px, 6vw, 64px) clamp(22px, 5vw, 56px) clamp(44px, 6vw, 64px); isolation: isolate; }
  .rsvp-card::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; border: 0 solid transparent; border-image: url(img/paper/rsvp.webp) 120 fill / 60px / 38px round; }
  /* messy ink at two opposite corners: a dried pool, a splat with spatter and two burgundy drops, a pen scribble */
  .rc-corner { position: absolute; z-index: 1; pointer-events: none; width: 440px; height: auto; }
  .rc-corner.tl { left: -150px; top: -140px; } .rc-corner.br { right: -150px; bottom: -140px; }
  .rc-head { display: grid; justify-items: center; text-align: center; gap: 12px; margin-bottom: 28px; }
  .rc-head .title { font-size: clamp(2.6rem, 5vw, 3.6rem); }
  .rc-when { margin: 0; font: 500 0.72rem/1.5 var(--body); letter-spacing: 0.18em; text-transform: uppercase; color: #7a6a44; }
  .rc-when i { font: italic 400 1.05rem/1 var(--story); letter-spacing: 0.02em; text-transform: none; color: var(--forest); white-space: nowrap; }
  @media (max-width: 760px), (max-width: 1100px) and (orientation: portrait) { .rc-when span { display: none; } .rc-when i { display: block; margin-top: 8px; } }
  /* story-v257 (Paul, 1 Nov 2026: "i rsvp but its not clear. It should have dates and that text"): their version's words on the reply card */
  .rc-for { max-width: 36ch; margin-top: 6px; }
  .rc-for p { margin: 0 0 8px; font: italic 400 clamp(1.1rem, 1.7vw, 1.25rem)/1.55 var(--story); color: var(--forest); }
  .rc-for p:last-child { margin-bottom: 0; }
  .rc-form { display: grid; gap: 22px; }
  .rc-guests { display: grid; gap: 26px; }
  .rc-guest { margin: 0; padding: 0 0 24px; border: 0; border-bottom: 1px solid rgba(197, 167, 103, 0.45); display: grid; gap: 16px; min-width: 0; }
  .rc-guest legend { padding: 0; margin-bottom: 4px; font: italic 400 1.35rem/1.2 var(--story); color: var(--forest); }
  .rc-field { display: grid; gap: 6px; min-width: 0; }
  .rc-label, .rc-choice legend { font: 500 0.7rem/1.3 var(--body); letter-spacing: 0.16em; text-transform: uppercase; color: #7a6a44; }
  .rc-field input, .rc-field textarea { width: 100%; box-sizing: border-box; border: 0; border-bottom: 1px solid rgba(45, 59, 45, 0.35); background: transparent; padding: 8px 2px; font: 400 1rem/1.4 var(--body); color: var(--soft-black); border-radius: 0; resize: vertical; }
  .rc-field input::placeholder, .rc-field textarea::placeholder { color: rgba(93, 97, 82, 0.6); }
  .rc-field input:focus, .rc-field textarea:focus { outline: none; border-bottom-color: var(--burgundy); box-shadow: 0 1px 0 var(--burgundy); }
  .rc-field input[aria-invalid="true"] { border-bottom-color: var(--burgundy); }
  /* (10 Oct 2026) the favourite song: one box for the household, once someone can make it */
  .rc-hint { margin: 0; font: italic 400 0.95rem/1.3 var(--story); color: var(--muted); }
  .rc-choice { margin: 0; padding: 0; border: 0; display: grid; gap: 10px; min-width: 0; }
  .rc-opts { display: flex; flex-wrap: wrap; gap: 10px; }
  .rc-opt { position: relative; flex: 1 1 180px; }
  .rc-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
  .rc-opt span { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 16px; border: 1px solid rgba(155, 132, 84, 0.55); border-radius: 2px;
    font: italic 400 1.1rem/1 var(--story); color: var(--forest); transition: border-color 0.2s, color 0.2s, background 0.2s; }
  .rc-opt span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 1px solid currentColor; flex: none; transition: background 0.2s; }
  .rc-opt:hover span { border-color: var(--burgundy); color: var(--burgundy); }
  .rc-opt input:checked + span { border-color: var(--burgundy); color: var(--burgundy); background: rgba(94, 31, 45, 0.07); }
  .rc-opt input:checked + span::before { background: var(--burgundy); }
  .rc-opt input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
  .rc-choice[aria-invalid="true"] .rc-opt span { border-color: var(--burgundy); }
  .rc-gerr, .rc-err { margin: 0; font: 400 0.9rem/1.4 var(--body); color: var(--burgundy); }
  .rc-test { margin: 0 auto 18px; max-width: 44ch; padding: 9px 14px; border: 1px dashed var(--burgundy); font: 400 0.85rem/1.45 var(--body); color: var(--burgundy); text-align: center; }   /* story-v255 */
  .rsvp [hidden] { display: none !important; }
  .rc-add, .rc-remove, .rc-again { justify-self: start; background: none; border: 0; padding: 6px 0; min-height: 44px; font: 500 0.75rem/1 var(--body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--forest);
    text-decoration: underline; text-decoration-color: var(--burgundy); text-underline-offset: 6px; cursor: pointer; }
  .rc-add:hover, .rc-remove:hover, .rc-again:hover { color: var(--burgundy); }
  .rc-add:focus-visible, .rc-remove:focus-visible, .rc-again:focus-visible, .rc-send:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
  .rc-send { justify-self: center; min-height: 52px; padding: 0 34px; border: 0; border-radius: 2px; background: var(--forest); color: #F8F3E7; font: 500 0.78rem/1 var(--body); letter-spacing: 0.22em; text-transform: uppercase; cursor: pointer; transition: background 0.25s; }
  .rc-send:hover { background: var(--burgundy); }
  .rc-status { margin: 0 auto; max-width: 30ch; text-align: center; font: italic 400 1.15rem/1.5 var(--story); color: var(--forest); text-wrap: balance; }
  .rc-dear { margin: 0 0 4px; text-align: center; font: italic 400 clamp(1.4rem, 3vw, 1.8rem)/1.25 var(--story); color: var(--forest); text-wrap: balance; }
  .rc-guest .rc-name { margin: 0; font: italic 400 1.35rem/1.2 var(--story); color: var(--forest); }
  .rc-thanks { display: grid; justify-items: center; text-align: center; gap: 14px; }
  .rc-thanks[hidden] { display: none; }
  .rc-thanks:focus { outline: none; }
  .rc-thanks-t { margin: 0; font: 400 clamp(1.6rem, 3.4vw, 2.2rem)/1.2 var(--story); font-style: italic; color: var(--forest); text-wrap: balance; }
  .rc-summary { list-style: none; margin: 4px 0 6px; padding: 0; display: grid; gap: 6px; font: 400 1rem/1.4 var(--body); color: var(--soft-black); }
  .rc-summary b { font-weight: 500; }
  .rc-thanks .rc-again { justify-self: center; }
  
  .rc-out { display: block; width: fit-content; margin: 28px auto 0; font: 400 0.82rem/1.4 var(--body); color: var(--forest); text-decoration: underline; text-decoration-color: var(--burgundy); text-underline-offset: 3px; }
  .rc-out:hover { color: var(--burgundy); }
  .rc-out:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
  @media (max-width: 760px), (max-width: 1100px) and (orientation: portrait) {
    .rsvp-card { padding: 96px 20px 110px; }
    .rc-corner { width: 230px; } .rc-corner.tl { left: -78px; top: -76px; } .rc-corner.br { right: -78px; bottom: -76px; }
  }
  .after p { font-family: var(--story); font-style: italic; font-size: clamp(1.1rem, 2.2vw, 1.4rem); color: var(--muted); margin: 0; }
  canvas.life { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
  .root { fill: none; stroke: #C5A767; stroke-linecap: round; }
  .peek { position: absolute; z-index: 4; right: 3vw; bottom: 16vh; height: 58vh; aspect-ratio: 353 / 1000; transform: translateX(140vw); transform-origin: 80% 100%; pointer-events: none; }
  .peek img { width: 100%; height: 100%; display: block; }
  .peek .bubble { position: absolute; width: 22vh; right: 62%; top: -7%; opacity: 0; transform-origin: 94% 96%; pointer-events: none; }
  .peek .bubble svg { transform: scaleX(-1); }
  .bubble { position: absolute; z-index: 2; opacity: 0; pointer-events: none; }
  .bubble svg { display: block; width: 100%; height: auto; overflow: visible; }
  .bubble path { fill: rgba(248, 243, 231, 0.96); stroke: #1D1C1A; stroke-width: 1.8; stroke-linejoin: round; filter: url(#nib); }
  .bubble span { position: absolute; left: 6%; right: 12%; top: 6%; height: 64%; display: grid; place-items: center; font: italic 500 clamp(0.95rem, 1.3vw, 1.25rem)/1 var(--story); color: var(--forest); letter-spacing: 0.01em; }
  svg.ink { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 1; }
  .pen { fill: none; stroke: #1D1C1A; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; filter: url(#nib); opacity: 0.9; }
  .stage svg.ink { z-index: 1; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-composite: xor; mask-composite: exclude; }
  .panel { z-index: 3; }
  .pic-left .panel { left: auto; right: clamp(20px, 5vw, 80px); }
  @media (max-width: 760px), (max-width: 1100px) and (orientation: portrait) {
    .peek { height: 34vh; bottom: auto; top: 8vh; right: 2vw; }
    .peek .bubble { width: 15vh; right: 56%; top: -9%; }
    .bubble span { font-size: 0.85rem; }
  }
  .say { position: absolute; z-index: 2; opacity: 0; pointer-events: none; }
  .say-right { transform-origin: 4% 97%; } .say-left { transform-origin: 96% 97%; }
  .say svg { display: block; width: 100%; height: auto; overflow: visible; }
  .say-left svg { transform: scaleX(-1); }
  .say path { fill: rgba(248, 243, 231, 0.96); stroke: #1D1C1A; stroke-width: 2.4; stroke-linejoin: round; filter: url(#nib); }
  .say span { position: absolute; top: 6%; height: 64%; left: 10%; right: 6%; display: grid; place-items: center; white-space: nowrap; font: italic 500 clamp(0.85rem, 1.05vw, 1.05rem)/1 var(--story); color: var(--burgundy); }
  .say-left span { left: 6%; right: 10%; }
  .stereo { position: absolute; z-index: 2; opacity: 0; pointer-events: none; width: clamp(110px, 10vw, 160px); left: clamp(24px, 2.8vw, 40px); bottom: calc(100% - 6px); }
  .stereo .st-img { display: block; width: 100%; height: auto; transform-origin: 50% 90%; }
  .stereo.on .st-img { animation: bop 0.9s ease-in-out infinite; }
  @keyframes bop { 0%, 100% { transform: rotate(-1.2deg) scale(1); } 50% { transform: rotate(1.2deg) scale(1.03); } }
  .stereo svg * { stroke: #1D1C1A; stroke-width: 2.6; stroke-linejoin: round; stroke-linecap: round; fill: none; }
  .stereo .st-body { fill: rgba(94, 31, 45, 0.82); }
  .stereo .st-spk circle { fill: rgba(243, 235, 216, 0.5); }
  .stereo .st-spk .st-dot { fill: #1D1C1A; }
  .stereo .st-win { fill: rgba(197, 167, 103, 0.9); }
  .stereo .st-btn { fill: #F3EBD8; }
  .stereo.on .st-spk { transform-box: fill-box; transform-origin: center; animation: thump 0.9s ease-in-out infinite; }
  .stereo.on .st-spk2 { animation-delay: 0.45s; }
  @keyframes thump { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); } }
  .st-tag { position: absolute; left: 0; bottom: 104%; display: grid; gap: 2px; white-space: nowrap; text-align: center;
    padding: 6px 10px 7px; background: rgba(248, 243, 231, 0.95); border: 1px solid rgba(29, 28, 26, 0.7); border-radius: 3px; box-shadow: 0 6px 14px -8px rgba(40, 30, 20, 0.4); rotate: -3deg; }
  .st-tag b { font: 500 9px/1 var(--body); letter-spacing: 0.18em; text-transform: uppercase; color: #9C7F43; }
  .st-tag span { font: italic 500 clamp(12px, 1vw, 15px)/1.1 var(--story); color: var(--forest); }
  .stereo .note { position: absolute; font-style: normal; font-size: clamp(16px, 1.7vw, 26px); color: #5E1F2D; opacity: 0; left: 104%; top: 34%; }
  .stereo.on .note { animation: floaty 3.6s ease-out infinite; }
  .stereo.on .n2 { animation-delay: 0.9s; left: 112%; color: #1D1C1A; } .stereo.on .n3 { animation-delay: 1.8s; left: 100%; top: 50%; }
  .stereo.on .n4 { animation-delay: 2.7s; left: 118%; color: #9C7F43; }
  @keyframes floaty { 0% { opacity: 0; transform: translate(0, 0) rotate(-8deg) scale(0.7); } 15% { opacity: 0.95; }
    100% { opacity: 0; transform: translate(70px, -70px) rotate(14deg) scale(1.15); } }
  @media (max-width: 760px), (max-width: 1100px) and (orientation: portrait) { .stereo { width: 96px; left: 22px; } .st-tag { padding: 4px 7px 5px; } .st-tag b { font-size: 7px; } .st-tag span { font-size: 10px; } }
  @media (prefers-reduced-motion: reduce) { .stereo.on * { animation: none !important; } .stereo.on .note { opacity: 0.8; } }
  /* six months apart */
  .track.apart { height: 440vh; }
  .ap-bg, .ap-fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
  .ap-bg { z-index: 0; } .ap-fx { z-index: 2; }
  .ap-fig { position: absolute; left: 0; top: 0; z-index: 1; opacity: 0; will-change: transform; }
  .ap-layer { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }
  .ap-count { position: absolute; z-index: 3; left: 50%; top: 4vh; translate: -50% 0; display: grid; justify-items: center; gap: 4px; opacity: 0; pointer-events: none; }
  .ap-lbl, .ap-season { font: 500 0.7rem/1 var(--body); letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
  .ap-season { color: #9C7F43; min-height: 1em; }
  .ap-num { font-family: var(--display); font-size: clamp(3rem, 5vw, 4.4rem); line-height: 1; color: var(--forest); font-variant-numeric: tabular-nums; }
  .ap-dots { display: flex; gap: 7px; margin: 2px 0 4px; }
  .ap-dots i { width: 7px; height: 7px; border-radius: 50%; box-shadow: inset 0 0 0 1px #9C7F43; transition: background 0.3s; }
  .ap-dots i.on { background: var(--gold); }
  .panel.ap-panel { left: 50%; right: auto; top: auto; bottom: 4vh; translate: -50% 0; width: min(40rem, 48vw); gap: 8px; padding-block: 26px 28px; }
  .ap-panel .title { font-size: clamp(2.4rem, 3.6vw, 3.6rem); }
  .ap-panel .fill { font-size: clamp(1.05rem, 1.25vw, 1.25rem); }
  @media (max-width: 760px), (max-width: 1100px) and (orientation: portrait) {
    .ap-count { top: 3vh; }
    .ap-num { font-size: 2.6rem; }
    .panel.ap-panel { width: auto; left: 16px; right: 16px; translate: none; bottom: 14px; }
    .ap-panel .title { font-size: 2.2rem; }
    .ap-panel .fill { font-size: 1rem; }
  }
  /* the travels */
  .track.travels { height: 720vh; }   /* 2 Oct 2026: 650vh flew too fast (Paul); 7 flights need room: about 0.7 of a screen per country */
  .tv-map { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
  .tv-cards { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
  .pc { position: absolute; left: 0; top: 0; margin: 0; width: clamp(160px, 15vw, 230px); padding: 9px 9px 0; opacity: 0; isolation: isolate; will-change: transform; }
  .pc::before { content: ""; position: absolute; inset: 0; z-index: -1; border: 0 solid transparent; border-image: url(img/paper/postcard.webp) 80 fill / 40px / 30px round; }
  .pc img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
  .pc figcaption { font: 500 0.66rem/1 var(--body); letter-spacing: 0.2em; text-transform: uppercase; color: var(--forest); text-align: center; padding: 9px 0 10px; }
  .pc-splash { position: absolute; z-index: -2; width: 44%; right: -16%; top: -18%; mix-blend-mode: multiply; }
  .tv-home { position: absolute; left: 0; top: 0; z-index: 3; opacity: 0; display: grid; gap: 3px; padding: 8px 12px 9px; pointer-events: none; }
  .tv-home::before { content: ""; position: absolute; inset: 0; z-index: -1; border: 0 solid transparent; border-image: url(img/paper/home.webp) 36 fill / 18px / 8px round; }
  .tv-home b { font: italic 500 1.2rem/1 var(--story); color: var(--burgundy); }
  .tv-home span { font: 500 0.62rem/1 var(--body); letter-spacing: 0.2em; text-transform: uppercase; color: var(--forest); }
  .panel.tv-panel { width: min(28vw, 24rem); top: auto; bottom: 5vh; translate: none; }
  .tv-panel .title { font-size: clamp(2.4rem, 3.6vw, 3.6rem); }
  .tv-panel .fill { font-size: clamp(1.05rem, 1.3vw, 1.3rem); }
  .tv-panel .where { letter-spacing: 0.12em; }
  @media (max-width: 760px), (max-width: 1100px) and (orientation: portrait) {
    .panel.tv-panel { width: auto; left: 16px; right: 16px; bottom: 14px; }
    .tv-panel .title { font-size: 2.2rem; } .tv-panel .fill { font-size: 1rem; }
    .pc { width: 132px; padding: 6px 6px 0; } .pc figcaption { font-size: 0.56rem; padding: 6px 0 7px; }
  }
  
  .track.zel { height: 500vh; }
  .pet { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
  .z-shadow { position: absolute; left: 0; top: 0; opacity: 0; border-radius: 50%; background: radial-gradient(closest-side, rgba(107, 90, 69, 0.34), rgba(107, 90, 69, 0.14) 60%, rgba(107, 90, 69, 0)); filter: url(#bleed); }
  .pet img { position: absolute; left: 0; top: 0; opacity: 0; will-change: transform, opacity; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
  /* (10 Oct 2026) her prints along the lane, and a little tag above each age */
  .z-print { position: absolute; left: 0; top: 0; opacity: 0; transform-origin: 50% 50%; }
  .z-print svg { display: block; width: 100%; height: auto; fill: #4A3B2C; }
  .z-tag { position: absolute; left: 0; top: 0; z-index: 20; opacity: 0; white-space: nowrap; padding: 5px 11px 6px; font: italic 500 clamp(0.9rem, 1.1vw, 1.1rem)/1 var(--story);
    color: var(--burgundy); isolation: isolate; }
  .z-tag::before { content: ""; position: absolute; inset: 0; z-index: -1; border: 0 solid transparent; border-image: url(img/paper/note.webp) 72 fill / 24px / 14px round; }
  
  .z-crest { position: absolute; left: -40px; top: -70px; width: 112px; aspect-ratio: 5 / 6; box-sizing: border-box; padding: 16px 14px 12px; border-radius: 50%;
    background: #F8F3E7; box-shadow: 0 0 0 1px rgba(197, 167, 103, 0.9), 0 0 0 6px #F8F3E7, 0 0 0 7px rgba(197, 167, 103, 0.7), 0 10px 18px rgba(60, 45, 25, 0.2);
    --z-ink: #2D3B2D; --z-bow: #5E1F2D; opacity: 0; rotate: -9deg; transform-origin: 50% 60%; z-index: 3; }
  .z-crest svg { display: block; width: 100%; height: auto; }
  @media (max-width: 760px), (max-width: 1100px) and (orientation: portrait) { .z-crest { width: 84px; left: auto; right: -6px; top: -58px; rotate: 9deg; padding: 12px 10px 9px; } }
  .paws { position: absolute; right: -34px; bottom: -40px; width: 62%; height: auto; pointer-events: none; overflow: visible; }
  .paws .paw { fill: #6B5A45; opacity: 0; transition: opacity 0.35s ease; }
  .paws .paw.on { opacity: 0.42; }
  
  .ring { position: absolute; left: 0; top: 0; z-index: 2; width: 54px; height: 54px; margin: -27px 0 0 -27px; opacity: 0; pointer-events: none; }
  .ring svg { display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 0 3px rgba(248, 243, 231, 0.95)) drop-shadow(0 0 7px rgba(212, 188, 126, 0.8)); }
  .ring-band ellipse { fill: none; stroke: #C5A767; stroke-width: 2.2; }
  .ring-band path { fill: #F8F3E7; stroke: #B8964F; stroke-width: 0.8; }
  .ring-star { fill: #F8F3E7; stroke: #C5A767; stroke-width: 0.7; transform-origin: 0 -7px; animation: twinkle 1.6s ease-in-out infinite; }
  @keyframes twinkle { 0%, 100% { transform: scale(0.6) rotate(0deg); opacity: 0.7; } 45% { transform: scale(1.25) rotate(20deg); opacity: 1; } }
  @media (prefers-reduced-motion: reduce) { .ring-star { animation: none; } }
  /* the wet tip of the ink line */
  .tip { pointer-events: none; transition: opacity 0.25s ease; opacity: 0; }
  .tip-wash { fill: #A58B5F; opacity: 0.26; filter: url(#blot); }
  .tip-wash2 { fill: #5E1F2D; opacity: 0.12; filter: url(#blot); }
  .tip-bead { fill: #1D1C1A; opacity: 0.8; filter: url(#blot); }
  /* the line is a string of Christmas lights: each bulb switches on as the pen passes it */
  .bulb-in { opacity: 0; transform: scale(0.3); transition: opacity 0.3s ease, transform 0.45s cubic-bezier(0.3, 1.7, 0.5, 1); }
  .bulb.on .bulb-in { opacity: 1; transform: none; }
  .bulb .wire { fill: none; stroke: #1D1C1A; stroke-width: 1.1; stroke-linecap: round; opacity: 0.85; }
  .bulb .cap { fill: #1D1C1A; opacity: 0.85; }
  .bulb .glass { stroke: #1D1C1A; stroke-width: 0.9; filter: url(#nib); }
  @media (max-width: 700px) { .bulb.on .bulb-in { transform: scale(0.75); } }
  /* phones and tablets: no ink wobble on the line, bulbs and speech bubbles. iPhones redraw that filter on the processor
     every time the line grows, which was over half the drawing work while scrolling (30 Sep 2026) */
  @media (pointer: coarse) { .pen, .bulb .glass, .bubble path, .say path { filter: none; } }
  @media (prefers-reduced-motion: reduce) { .bulb-in { transition: none; } }
  /* the vine (build 25, summer): a sage stem in place of the ink, heart leaves and flower heads in place of the bulbs, each
     popping out as the line reaches it; a flower opens a moment after its leaves */
  html.vine .pen { stroke: var(--vine, #76845C) !important; stroke-width: 2.2; opacity: 0.95; }
  html.vine .root { stroke: var(--vine, #76845C); }
  html.vine .tip-wash { fill: #9DAA82; } html.vine .tip-wash2 { fill: #D17375; } html.vine .tip-bead { fill: #5C6A45; }
  .sprout .vs { fill: none; stroke: var(--vine, #76845C); stroke-width: 1.5; stroke-linecap: round; }
  .vl-leaf { fill: #7D8E62; stroke: #4C5838; stroke-width: 0.6; }
  .vl2 .vl-leaf { fill: #93A377; }
  .vl-mot { fill: url(#vmot); }
  #vmot > * { fill: #DCE2CB; opacity: 0.55; }
  .vl-rib { fill: none; stroke: #4C5838; stroke-width: 0.5; opacity: 0.45; }
  .sprout .vh { opacity: 0; transform: scale(0.15); transition: opacity 0.35s ease 0.16s, transform 0.6s cubic-bezier(0.3, 1.6, 0.5, 1) 0.16s; }
  .sprout.on .vh { opacity: 1; transform: none; }
  @media (prefers-reduced-motion: reduce) { .sprout .vh { transition: none; } }
  /* the ribbon (build 46, spring): a thin flat ribbon in place of the ink, its faces drawn by story.js; no ink line, bead or roots */
  html.ribbon .pen { stroke: none !important; }
  html.ribbon .root, html.ribbon .tip { display: none; }
  /* (build 70) the liquid line: a fine string in the theme's string colour, a drop of liquid gold at its tip (a gradient from its light
     to its deep, --liq-light, --liq, --liq-deep on the html), the wet stretch behind it, the beads it leaves and the drips that fall */
  html.liquid .pen { stroke: var(--liq-string, #9C8156) !important; stroke-width: 1.15; opacity: 0.95; filter: none; }
  html.liquid .root, html.liquid .tip { display: none; }
  .liq { pointer-events: none; }
  .liq-wet { fill: none; stroke: var(--liq, #D3B990); stroke-width: 1.9; stroke-linecap: round; opacity: 0.7; }
  .liq-drop { fill: url(#liqG); transition: opacity 0.25s ease; }
  .liq-hi { fill: rgba(255, 250, 232, 0.85); }
  .liq-bead .lb { transform-box: fill-box; transform-origin: 50% 0; transform: scale(0); opacity: 0; transition: transform 0.5s cubic-bezier(0.3, 1.5, 0.5, 1), opacity 0.3s ease; }
  .liq-bead.on .lb { transform: none; opacity: 1; }
  .liq-bead .b, .liq-drip .b { fill: url(#liqG); }
  .liq-bead .h, .liq-drip .h { fill: rgba(255, 250, 232, 0.8); }
  @media (prefers-reduced-motion: reduce) { .liq-bead .lb { transition: none; } }
  /* the loader's liquid garland: the same fine string and gold */
  .ld.liquid .ld-lights .bwire { stroke: var(--liq-string, #9C8156); stroke-width: 0.75; }
  .ld-lights .lb { opacity: 0; transition: opacity 0.4s ease; } .ld-lights .lb.on { opacity: 1; }
  .ld-lights .ldrop { transition: opacity 0.3s ease; }
  /* (build 70) a chapter's year (its `when`) as a large Didone figure in brackets over its title, rolling like a counter from the year
     before as the chapter comes in (--roll, set by the page); a screen reader hears the year once */
  .panel .when { margin: 0 0 0.1em; font-family: 'Bodoni Moda', var(--story), serif; font-weight: 500; font-size: clamp(2.6rem, 4.6vw, 3.9rem); line-height: 1;
    color: var(--when, #9C7F43); font-variant-numeric: lining-nums tabular-nums; letter-spacing: 0.02em;
    font-variation-settings: 'opsz' 12; }   /* a small optical size of the Didone, so the hairline of a 4 still reads as a 4 */
  .when-n { display: inline-flex; align-items: flex-start; }
  .when .wp { font-weight: 400; opacity: 0.85; }
  .when .wd { display: inline-block; height: 1em; overflow: hidden; line-height: 1; }
  .when .ws { display: block; transform: translateY(calc((var(--a) + (var(--b) - var(--a)) * var(--roll, 1)) * -1em)); }
  .when-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  @media (max-width: 760px), (max-width: 1100px) and (orientation: portrait) { .panel .when { font-size: 2.35rem; } }
  @media (prefers-reduced-motion: reduce) { .when .ws { transform: translateY(calc(var(--b) * -1em)); } }
  /* (build 70) soft cloud or mist drifting across the gaps between chapters, faded at the top and foot so it never shows an edge */
  .gap-sky { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0;
    -webkit-mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent); mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent); }
  @media (prefers-reduced-motion: reduce) { .gap-sky { display: none; } }
  
  .track.home { height: 460vh; }
  .home-note { position: absolute; z-index: 3; left: clamp(20px, 5vw, 80px); bottom: 9vh; margin: 0; padding: 10px 16px 11px; opacity: 0; rotate: -3deg;
    font: italic 500 clamp(1.05rem, 1.4vw, 1.35rem)/1.2 var(--story); color: var(--burgundy); isolation: isolate; }
  .home-note::before { content: ""; position: absolute; inset: 0; z-index: -1; border: 0 solid transparent; border-image: url(img/paper/note.webp) 72 fill / 36px / 26px round; }
  @media (max-width: 760px), (max-width: 1100px) and (orientation: portrait) { .home-note { left: 16px; right: auto; bottom: auto; top: 6vh; font-size: 1rem; } }
  /* chapter ten: the album row slides under the fixed stage; snow falls over it all */
  .track.album { height: 430vh; }
  /* fewer swipes on phones (Paul, 30 Sep 2026: "yes fewer swipes"): every chapter about 65% as long; each one measures its own height, so nothing else changes */
  /* the proposal: two paintings in turn, so a longer track (1 Oct 2026) */
  .track.prop { height: 460vh; }
  /* sketched rings floating up from the couple, each on its own loop */
  .rings { position: absolute; left: 0; top: 0; width: 0; height: 0; z-index: 2; opacity: 0; pointer-events: none; }
  .rings i { position: absolute; left: 0; top: 0; width: clamp(46px, 4.6vw, 76px); margin: -38px 0 0 -38px; opacity: 0; }
  .rings i svg { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 0 3px rgba(248, 243, 231, 0.95)); }
  .rings.on i { animation: ringfloat 7.2s ease-in-out var(--d) infinite; }
  @keyframes ringfloat { 0% { opacity: 0; transform: translate(var(--x), 30px) rotate(var(--r)) scale(var(--s)); } 14% { opacity: 0.95; }
    50% { transform: translate(calc(var(--x) + 22px), -70px) rotate(calc(var(--r) + 16deg)) scale(var(--s)); } 82% { opacity: 0.8; }
    100% { opacity: 0; transform: translate(calc(var(--x) - 12px), -170px) rotate(calc(var(--r) - 10deg)) scale(var(--s)); } }
  @media (prefers-reduced-motion: reduce) { .rings.on i { animation: none; opacity: 0.9; transform: translate(var(--x), -40px) rotate(var(--r)) scale(var(--s)); } }
  @media (max-width: 760px), (max-width: 1100px) and (orientation: portrait) {
    .track { height: 230vh; } .track.prop { height: 320vh; } .track.apart { height: 300vh; } .track.travels { height: 620vh; } .track.zel { height: 340vh; }
    .track.home { height: 320vh; } .track.album { height: 300vh; } .gap { height: 40vh; }
  }
  .album .row { position: absolute; left: 0; top: 0; height: 100%; z-index: 1; pointer-events: none; will-change: transform; }
  .album .row svg.ink { position: absolute; left: 0; top: 0; height: 100%; right: auto; }
  .album canvas.snow { z-index: 2; }
  /* chapter rail. Desktop: a column of small gold ticks on the right; the current chapter's name shows for a moment when it changes,
     and every name shows while you hover. Phone: a small button in the corner opens the list. */
  /* the top: two buttons in the same dress as "Keep scrolling" (Paul, 1 Oct 2026: the side rail "you cant read it", wanted "a drastic
     change", and a button at the top to skip the story and go straight to the RSVP). Left opens the chapters, right skips to the RSVP */
  .tb { position: fixed; z-index: 40; top: calc(14px + env(safe-area-inset-top, 0px)); left: clamp(12px, 2.4vw, 28px); right: clamp(12px, 2.4vw, 28px);
    display: flex; justify-content: space-between; align-items: center; gap: 10px; pointer-events: none; }
  .tb > * { pointer-events: auto; }
  .tb-now, .tb-rsvp { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 20px; border-radius: 999px; cursor: pointer; text-decoration: none;
    border: 1px solid var(--gold); outline: 1px solid rgba(197, 167, 103, 0.35); outline-offset: 3px; box-shadow: 0 6px 16px rgba(60, 45, 25, 0.14); transition: background 0.25s, color 0.25s, opacity 0.4s, transform 0.4s; }
  .tb-now { background: #F8F3E7; color: #16211A; font: italic 400 1.1rem/1 var(--story); }
  .tb-now .tb-num:empty { display: none; }
  .tb-now .tb-num { font: 500 0.7rem/1 var(--body); font-style: normal; letter-spacing: 0.16em; color: #7a6a44; }
  .tb-now .tb-lines { width: 16px; height: 10px; flex: none; border-block: 1.5px solid currentColor; position: relative; }
  .tb-now .tb-lines::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1.5px solid currentColor; translate: 0 -50%; }
  .tb-now:hover { color: var(--burgundy); }
  .tb-rsvp { background: var(--forest); color: #F8F3E7; font: 500 0.74rem/1 var(--body); letter-spacing: 0.18em; text-transform: uppercase; }
  .tb-rsvp:hover { background: var(--burgundy); }
  .tb-rsvp.gone { opacity: 0; transform: translateY(-8px); pointer-events: none; }
  .tb-now:focus-visible, .tb-rsvp:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
  /* the chapters: a whole page of their own, each chapter a little picture with its number and name */
  .tbm { position: fixed; inset: 0; z-index: 50; background: var(--ivory); overflow-y: auto; overscroll-behavior: contain; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0s 0.3s; }
  .tbm.open { opacity: 1; visibility: visible; transition: opacity 0.3s ease; }
  .tbm-in { max-width: 1180px; margin: 0 auto; padding: calc(28px + env(safe-area-inset-top, 0px)) clamp(16px, 4vw, 48px) 48px; display: grid; gap: 28px; }
  .tbm-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
  .tbm-head .title { font-size: clamp(2.4rem, 5vw, 3.6rem); color: #16211A; }
  .tbm-close { min-height: 46px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--gold); background: #F8F3E7; color: #16211A; font: 500 0.74rem/1 var(--body); letter-spacing: 0.18em; text-transform: uppercase; cursor: pointer; }
  .tbm-close:hover { color: var(--burgundy); }
  .tbm-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 22px 18px; }
  .tbm-list a { display: grid; gap: 8px; text-decoration: none; color: #16211A; }
  .tbm-pic { display: block; aspect-ratio: 4 / 3; max-width: 100%; background: #F8F3E7 center / cover no-repeat; border: 1px solid rgba(197, 167, 103, 0.7); outline: 4px solid #F8F3E7; outline-offset: -5px;
    box-shadow: 0 6px 14px rgba(60, 45, 25, 0.12); transition: transform 0.3s ease, box-shadow 0.3s ease; }
  .tbm-cap { display: flex; align-items: baseline; gap: 10px; }
  .tbm-num { font: 500 0.7rem/1 var(--body); letter-spacing: 0.16em; color: #7a6a44; font-variant-numeric: tabular-nums; }
  .tbm-name { font: italic 400 1.3rem/1.15 var(--story); }
  .tbm-list a:hover .tbm-pic, .tbm-list a:focus-visible .tbm-pic { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(60, 45, 25, 0.18); }
  .tbm-list a:hover .tbm-name { color: var(--burgundy); }
  .tbm-list .now .tbm-pic { border-color: var(--burgundy); box-shadow: 0 0 0 2px var(--burgundy), 0 6px 14px rgba(60, 45, 25, 0.12); }
  .tbm-pic { position: relative; }
  .tbm-list .now .tbm-pic::after { content: "You are here"; position: absolute; left: 8px; bottom: 8px; padding: 5px 9px; background: var(--burgundy); color: #F8F3E7; font: 500 0.6rem/1 var(--body); letter-spacing: 0.16em; text-transform: uppercase; }
  .tbm-end { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; padding-top: 8px; border-top: 1px solid rgba(197, 167, 103, 0.45); }
  .tbm-end a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1px solid var(--gold); text-decoration: none; font: 500 0.74rem/1 var(--body); letter-spacing: 0.18em; text-transform: uppercase; color: #16211A; background: #F8F3E7; }
  .tbm-end a.go { background: var(--forest); color: #F8F3E7; }
  .tbm-end a:hover { color: #F8F3E7; background: var(--burgundy); }
  .tbm-list a:focus-visible, .tbm-end a:focus-visible, .tbm-close:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
  @media (max-width: 760px), (max-width: 1100px) and (orientation: portrait) {
    .tb-now, .tb-rsvp { min-height: 42px; padding: 0 15px; }
    .tb-now { font-size: 1rem; max-width: 62vw; } .tb-now .tb-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .tb-rsvp { letter-spacing: 0.14em; font-size: 0.68rem; }
    /* phones: one row per chapter, a small picture beside its name, so all ten fit about one screen (Paul chose pictures, 1 Oct 2026) */
    .tbm-in { gap: 18px; padding-bottom: 32px; }
    .tbm-head .title { font-size: 2.3rem; }
    .tbm-list { grid-template-columns: 1fr; gap: 8px; }
    .tbm-list a { grid-template-columns: 76px minmax(0, 1fr); align-items: center; gap: 14px; }
    .tbm-pic { outline-width: 2px; outline-offset: -3px; }
    .tbm-cap { flex-direction: column; align-items: flex-start; gap: 3px; }
    .tbm-name { font-size: 1.25rem; }
    .tbm-list .now .tbm-pic::after { content: none; }
    .tbm-list .now .tbm-num::after { content: " \00B7  you are here"; color: var(--burgundy); letter-spacing: 0.1em; }
  }
  .cn-veil { position: fixed; inset: 0; z-index: 45; background: var(--ivory); opacity: 0; pointer-events: none; transition: opacity 0.28s ease; }
  .cn-veil.on { opacity: 1; }
  .title:focus, .after:focus { outline: none; }
  /* the loading screen (Paul, 1 Oct 2026): Toile Navy with snow, the J & E exactly where it sits on the opening page, writing itself in,
     the story's fairy lights lighting one by one with "Loading", then watercolour blooms wash the navy away.
     Ten seconds the first time; four on a return visit; a Skip after two seconds */
  .ld { position: fixed; inset: 0; z-index: 70; }
  .ld canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
  .ld-in { position: absolute; inset: 0; display: grid; place-items: start center; align-content: start; text-align: center; padding: 22vh 16px 0; transition: opacity 0.7s ease; }
  .ld .sub { visibility: hidden; }
  .ld .mono { font-family: var(--display); font-size: clamp(2.6rem, 6vw, 4rem); line-height: 1; margin: 0; color: var(--ivory); position: relative; font-weight: 700; }   /* the page's logo is an h1, so bold: match it */
  .ld .mono .l { display: inline-block; opacity: 0; filter: blur(14px); transform: translateY(10px); transition: opacity 1.4s ease, filter 1.6s ease, transform 1.6s cubic-bezier(.2, .7, .2, 1); }
  .ld .mono .l.in { opacity: 1; filter: blur(0); transform: none; }
  .ld .mono i { font-family: var(--story); font-style: italic; padding: 0 0.12em; display: inline-block;
    -webkit-mask-image: linear-gradient(100deg, #000 42%, transparent 58%); mask-image: linear-gradient(100deg, #000 42%, transparent 58%); -webkit-mask-size: 300% 100%; mask-size: 300% 100%;
    -webkit-mask-position: 100% 0; mask-position: 100% 0; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
    background: linear-gradient(100deg, #C5A767 30%, #FFF3C9 50%, #C5A767 70%) 100% 0 / 300% 100% no-repeat; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: #D4BC7E; }
  .ld .mono i.in { transition: -webkit-mask-position 1.8s cubic-bezier(.4, 0, .2, 1), mask-position 1.8s cubic-bezier(.4, 0, .2, 1); -webkit-mask-position: 0 0; mask-position: 0 0; }
  .ld .mono i.shine { transition: background-position 1.6s ease; background-position: 0% 0; }
  /* a drawn monogram comes in as if written: a soft edge sweeps across it from left to right (build 42) */
  .ld .mono.marked .l { display: block; filter: none; transform: none;
    -webkit-mask-image: linear-gradient(100deg, #000 42%, transparent 58%); mask-image: linear-gradient(100deg, #000 42%, transparent 58%); -webkit-mask-size: 300% 100%; mask-size: 300% 100%;
    -webkit-mask-position: 100% 0; mask-position: 100% 0; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
    transition: opacity 0.8s ease, -webkit-mask-position 2.6s cubic-bezier(.4, 0, .2, 1), mask-position 2.6s cubic-bezier(.4, 0, .2, 1); }
  .ld .mono.marked .l.in { opacity: 1; -webkit-mask-position: 0 0; mask-position: 0 0; }
  .ld .names, .ld .wed { font-family: var(--story); font-style: italic; line-height: 1; opacity: 0; transition: opacity 1.2s ease; }
  .ld .names { font-size: clamp(1.25rem, 2vw, 1.6rem); color: var(--ivory); margin: 16px 0 0; }
  .ld .wed { font-size: clamp(1rem, 1.3vw, 1.1rem); color: rgba(243, 235, 216, 0.7); margin: 8px 0 0; }
  .ld .in.names, .ld .in.wed { opacity: 1; }
  /* the loader: the story's own fairy lights, tiny, on a gold wire swagging across, lighting one by one (Paul, 1 Oct 2026: "the fairy
     lights", "really muted"; the thick wreath and the stars over the logo were not for him) */
  .ld-lights { display: block; width: min(300px, 80vw); height: auto; margin-top: 6vh; overflow: visible; }
  .ld-lights .bwire { fill: none; stroke: rgba(197, 167, 103, 0.6); stroke-width: 0.4; stroke-linecap: round; }   /* (Paul: the cable "too thick", was 0.9) */
  .ld-lights .cap { fill: rgba(243, 235, 216, 0.45); }
  .ld-lights .glass { stroke: rgba(243, 235, 216, 0.4); stroke-width: 0.7; transition: fill 0.8s ease; }
  .ld-lights .hl, .ld-lights .halo { transition: opacity 0.8s ease; }
  .ld-word { margin: 18px 0 0; font: 500 0.72rem/1 var(--body); letter-spacing: 0.32em; text-transform: uppercase; color: rgba(243, 235, 216, 0.8); padding-left: 0.32em; }
  .ld-word i { font-style: normal; animation: ld-dot 1.4s ease-in-out infinite; } .ld-word i:nth-child(2) { animation-delay: 0.2s; } .ld-word i:nth-child(3) { animation-delay: 0.4s; }
  @keyframes ld-dot { 0%, 100% { opacity: 0.15; } 40% { opacity: 1; } }
  .ld-skip { position: absolute; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); translate: -50% 0; min-height: 44px; padding: 0 22px; border-radius: 999px; border: 1px solid rgba(197, 167, 103, 0.7);
    background: transparent; color: rgba(243, 235, 216, 0.85); font: 500 0.7rem/1 var(--body); letter-spacing: 0.22em; text-transform: uppercase; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity 0.6s ease, background 0.25s; }
  .ld-skip.on { opacity: 1; pointer-events: auto; }
  .ld-skip:hover { background: rgba(243, 235, 216, 0.08); }
  .ld-skip:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
  /* the email gate (2 Oct 2026): once the lights are lit, "Loading" gives way to one field; only a guest's email lets the navy wash away */
  .ld-word { transition: opacity 0.5s ease; }
  .ld.back .mono .l, .ld.back .mono.marked .l, .ld.back .mono i, .ld.back .names, .ld.back .wed, .ld.back .ld-lights * { transition: none; }   /* just let in: already in place */
  .ld-word.out { opacity: 0; }
  .ld-gate { width: min(360px, 100%); margin: 18px auto 0; display: grid; gap: 12px; opacity: 0; transform: translateY(8px); transition: opacity 0.8s ease, transform 0.8s ease; }
  .ld-gate[hidden] { display: none; }
  .ld-gate.in { opacity: 1; transform: none; }
  .ld-gate label { font: italic 400 clamp(1.1rem, 1.7vw, 1.25rem)/1.35 var(--story); color: var(--ivory); text-wrap: balance; }
  .ld-row { display: flex; gap: 8px; }
  .ld-gate input { flex: 1; min-width: 0; min-height: 48px; box-sizing: border-box; padding: 0 18px; border: 1px solid rgba(197, 167, 103, 0.7); border-radius: 999px;
    background: rgba(243, 235, 216, 0.06); color: var(--ivory); font: 400 16px/1 var(--body); }   /* 16px, or iPhones zoom in on the field */
  .ld-gate input::placeholder { color: rgba(243, 235, 216, 0.45); }
  .ld-gate input:focus { outline: none; border-color: var(--gold-hi); background: rgba(243, 235, 216, 0.1); }
  .ld-gate button { min-height: 48px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--gold); color: #1D1C1A; font: 500 0.72rem/1 var(--body); letter-spacing: 0.22em;
    text-transform: uppercase; padding-left: calc(22px + 0.22em); cursor: pointer; transition: background 0.25s; }
  .ld-gate button:hover { background: var(--gold-hi); }
  .ld-gate button:focus-visible { outline: 2px solid var(--ivory); outline-offset: 3px; }
  .ld-gate button:disabled { cursor: progress; opacity: 0.75; }
  .ld-msg { min-height: 2.8em; margin: 0; font: 400 0.85rem/1.4 var(--body); color: rgba(243, 235, 216, 0.85); text-wrap: balance; }
  @media (max-width: 760px), (max-width: 1100px) and (orientation: portrait) { .ld-lights { margin-top: 5vh; } }
  @media (prefers-reduced-motion: reduce) { .ld *, .ld-gate { transition: none !important; animation: none !important; } }
  /* the meadow look (build 26, summer): linen ground, ink words, the theme's meadow strip rising along the foot, a little vine */
  .ld.meadow .mono, .ld.meadow .names { color: var(--forest); }
  .ld.meadow .wed { color: var(--muted); }
  .ld.meadow .ld-word { color: rgba(45, 59, 45, 0.72); }
  .ld.meadow .ld-lights .bwire { stroke: #76845C; stroke-width: 1; }
  .ld.ribbon .ld-lights .bwire { stroke: none; }   /* the ribbon is drawn beside it instead (build 52) */
  .ld-lights .sp { opacity: 0; transform: scale(0.1); transition: opacity 0.35s ease, transform 0.6s cubic-bezier(0.3, 1.6, 0.5, 1); }
  .ld-lights .sp.on { opacity: 1; transform: none; }
  .ld-lights .lf { stroke: #4C5838; stroke-width: 0.9; }
  /* the meadow at full strength, wall to wall: its own height on a laptop, at most a third of the screen and never up into the words
   (which start 22vh down, where the opening's do); when that bites only the ground at its foot is cropped, never the flowers'
   tops. On a phone it stands taller and its sides are cropped instead */
.ld-field { position: absolute; left: -4%; bottom: 0; width: 108%; height: auto; max-height: max(80px, min(34vh, calc(78vh - 346px))); object-fit: cover; object-position: center top;
    pointer-events: none; opacity: 0; transform: translateY(24px); transition: opacity 1.6s ease, transform 2.4s cubic-bezier(0.2, 0.7, 0.2, 1); }
  .ld-field.in { opacity: 1; transform: none; }
.ld[data-gate] .ld-field { max-height: max(80px, min(34vh, calc(78vh - 404px))); }   /* at the door it stays under the email box (measured: the words end 22vh + 300 to 330 px down, the box 22vh + 376 to 402) */
@media (max-aspect-ratio: 1/1) { .ld-field { height: clamp(150px, 26vh, 260px); max-height: none; } }
/* a drawn monogram stands taller than the initials, so the meadow keeps that much further down (build 42) */
.ld.marked { --mark-x: calc(clamp(84px, 9vw, 124px) * var(--mark-k, 1) - clamp(2.6rem, 6vw, 4rem)); }
.ld.marked .ld-field { max-height: max(80px, min(34vh, calc(78vh - 346px - var(--mark-x)))); }
.ld.marked[data-gate] .ld-field { max-height: max(80px, min(34vh, calc(78vh - 404px - var(--mark-x)))); }
/* the flowers hanging along the top instead (build 45, spring: Paul's daisies, loader.at "top"): the same sizes and caps, hung from the
   top edge and dropping in a touch as they arrive; where a cap crops the strip's see-through foot, its last quarter fades so no edge shows */
.ld.top .ld-field { top: 0; bottom: auto; transform: translateY(-24px); -webkit-mask-image: linear-gradient(#000 72%, transparent); mask-image: linear-gradient(#000 72%, transparent); }
.ld.top .ld-field.in { transform: none; }
/* and it always shows whole, its own height, even on a short laptop window where it runs behind the top of the words (build 51,
   Paul: "short laptops dont do that let it show") */
.ld.top .ld-field, .ld.top[data-gate] .ld-field, .ld.top.marked .ld-field, .ld.top.marked[data-gate] .ld-field { max-height: none; }
  .ld.meadow .ld-skip { color: var(--forest); border-color: rgba(155, 132, 84, 0.7); background: rgba(243, 235, 216, 0.7); }
  .ld.meadow .ld-skip:hover { background: rgba(243, 235, 216, 0.95); }
  .ld.meadow .ld-gate label, .ld.meadow .ld-msg { color: var(--forest); }
  .ld.meadow .ld-gate input { color: var(--soft-black); background: rgba(255, 255, 255, 0.55); }
  .ld.meadow .ld-gate input::placeholder { color: rgba(45, 59, 45, 0.5); }
  .ld.meadow .ld-gate input:focus { background: rgba(255, 255, 255, 0.8); }
  .ld.meadow .ld-gate button:focus-visible { outline-color: var(--forest); }
  @media (prefers-reduced-motion: reduce) { .tb *, .tbm, .cn-veil { transition: none; } }
  
  @media (hover: none) and (pointer: coarse) {
    body::after { display: none; }
    .stage > canvas, .stage > .ap-fig { -webkit-mask-image: none; mask-image: none; }
    .splash, .pc-splash { mix-blend-mode: normal; }
    .pen, .bubble path, .say path, .bulb .glass, .tip-wash, .tip-wash2, .tip-bead, [filter] { filter: none; }
  }

/* ---- added for the product (build 12) ---- */
/* Upright words (Paul's rule, 6 Nov 2026: no italics in sentences): with html.upright every line stands upright and only the
   ampersand between the initials keeps its slope. Without the class the page is italic where the J&E story was. */
html.upright body *, html.upright body *::before { font-style: normal !important; }
html.upright .mono i, html.upright .fin-amp { font-style: italic !important; }
/* a sample wedding says so on the screen, and at the foot of the page */
/* above the loading screen (.ld is 70); on a phone under the top bar, clear of the Keep scrolling pill */
@media (max-width: 760px), (max-width: 1100px) and (orientation: portrait) { .tag { top: calc(66px + env(safe-area-inset-top, 0px)); bottom: auto !important; } }
.tag { position: fixed; left: 12px; bottom: 12px; z-index: 80; margin: 0; padding: 6px 10px; border-radius: 999px; background: rgba(248, 243, 231, 0.92);
  font: 500 11px/1 var(--body); letter-spacing: 0.14em; text-transform: uppercase; color: #5d6152; pointer-events: none; }
.sample { margin: 0; padding: 18px 16px 40px; text-align: center; font: 400 0.85rem/1.5 var(--body); color: #5d6152; }
.sample a { color: inherit; }
.rc-by { margin: 10px 0 0; font: 500 0.72rem/1.4 var(--body); letter-spacing: 0.16em; text-transform: uppercase; color: #7a6a44; }
/* without JavaScript: the loader stays away and a plain door is shown */
.nojs-door { position: relative; z-index: 5; max-width: 26rem; margin: 0 auto; padding: 0 16px 48px; display: grid; gap: 10px; text-align: center; }
.nojs-door input, .nojs-door button { font: 400 16px/1.2 var(--body); padding: 12px 14px; border-radius: 10px; border: 1px solid #b9ae94; }
.nojs-door button { background: #2D3B2D; color: #F8F3E7; border: 0; }

/* (build 74) the stacked layout (picture above, card at the foot) is the phone's, and since this build any upright screen under 1100
   wide takes it too: every "(max-width: 760px), (max-width: 1100px) and (orientation: portrait)" above, and stacked() in story.js.
   An iPad held upright had the laptop layout squeezed: a small band of picture, a narrow card over its edge, a lot of empty paper
   (Paul, 27 Nov 2026, chose "B, tablet sizes"). These are the tablet's own sizes on top of the phone's rules: the card centred and
   no wider than a page of a book, its words at reading size, its sprigs larger, a little more room above the Keep scrolling mouse.
   Each rule starts at html so it also beats a theme's own phone sizes, which load after this file. */
@media (min-width: 700px) and (max-width: 1100px) and (orientation: portrait) {
  html .panel { left: 0; right: 0; margin-inline: auto; width: min(640px, 80vw); padding: 30px 38px 34px; gap: 9px; bottom: calc(150px + env(safe-area-inset-bottom, 0px)); }
  html .track.home .panel, html .track.apart .panel, html .track.travels .panel { bottom: calc(22px + env(safe-area-inset-bottom, 0px)); }
  html .panel.tv-panel, html .panel.ap-panel { left: 0; right: 0; margin-inline: auto; width: min(640px, 80vw); translate: none; }
  html .track .panel .title, html .ap-panel .title, html .tv-panel .title { font-size: clamp(2.8rem, 6vw, 3.6rem); }
  html .track .panel .kicker { font-size: 1.25rem; }
  html .track .panel .rule { margin: 4px 0 2px; }
  html .fill, html .ap-panel .fill, html .tv-panel .fill { font-size: 1.36rem; line-height: 1.45; }
  html .where { font-size: 0.74rem; letter-spacing: 0.16em; }
  html .s1 { width: 116px; right: -34px; top: -62px; } html .s2 { width: 86px; right: 62px; top: -50px; }
  html .s4 { width: 78px; left: -24px; bottom: -30px; }
  html .keep-pill { font-size: 1.15rem; padding: 13px 26px 14px; }
}
