/* The Gilded Tree (STAGING 2026-11-23) — the Art Deco gold-foil tree layer over the gatefold engine (site/gildedtree/gildedtree.js).
   Scoped to html.gtr-on. Zero AI imagery: canvas paper, SVG foil linework, CSS. Google Fonts (SIL OFL): Poiret One (the title, the
   page titles, the big day number), Italiana (names), Josefin Sans (small spaced caps and the body text).
   The engine's theme gives --paper / --ink / --accent / --soft per colourway (black / emerald / burgundy — every page is dark). */
html.gtr-on {
  --foil: linear-gradient(100deg, #8f6a2e 0%, #d9bb76 14%, #f4e2ab 24%, #b48b45 38%, #e7cc88 52%, #fff1c8 58%, #a87f3d 72%, #d6b56c 86%, #9a7535 100%);
  --gtr-line: color-mix(in srgb, var(--accent) 78%, transparent);
  --gtr-dia: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M5 0L10 5L5 10L0 5Z' fill='%23dcbd74'/%3E%3C/svg%3E");
  --gtr-caps: 'Josefin Sans', 'Futura', 'Century Gothic', sans-serif;
}
html.gtr-on, html.gtr-on body { background: var(--table); }
html.gtr-on .app { background: var(--paper-img) repeat 0 0 / 256px, var(--paper); color: var(--ink); font-family: var(--gtr-caps); }

/* ───────── the hero ───────── */
html.gtr-on .hero { background: var(--paper); }
html.gtr-on .hero .hint, html.gtr-on .hero .hn { opacity: 0 !important; pointer-events: none; }
/* the engine's own card (paper doors) stays under the layer and is never seen: it is not painted or animated at all */
html.gtr-on .hero > .card { visibility: hidden; }
html.gtr-on .hero > .card * { animation: none !important; transition: none !important; }
.gtr { position: absolute; inset: 0; z-index: 6; overflow: hidden; background: var(--paper); color: #dcc07c; cursor: pointer;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
.gtr.open { cursor: default; }
.gtr.done { pointer-events: none; }
.gtr.off *, .gtr.off *::before { animation-play-state: paused !important; }
.gtr-text .ink { white-space: nowrap; }
.gtr-l.wrap .ink { white-space: normal; text-wrap: balance; line-height: 1.14; max-width: 100%; }
.gtr-l.wrap .w { max-width: 100%; }
.gtr-names .nw { white-space: nowrap; }
.gtr-names.stack .ink { white-space: normal; line-height: 1.16; }
.gtr-names.stack .nm, .gtr-names.stack .amp { display: block; }
.gtr-names.stack .amp { font-size: .8em; margin: .06em 0; }
.gtr-names.stack:not(.wrap) .nm { white-space: nowrap; }
.gtr-paper, .gtr-frame, .gtr-kling { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.gtr-kling { mix-blend-mode: screen; opacity: 0; transition: opacity 1.6s ease; }
.gtr-kling video { width: 100%; height: 100%; object-fit: cover; }
.gtr.amb .gtr-kling.on { opacity: .35; }

/* ── light sweep over the foil: a bright band moved by transform inside a static mask (compositor only) ── */
.gtr-sheen { position: absolute; pointer-events: none; overflow: hidden; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%; }
.gtr-sheen-frame { inset: 0; }
.gtr-sheen > i { position: absolute; top: -10%; bottom: -10%; left: 0; width: 100%; will-change: transform; transform: translate3d(-130%,0,0);
  background: linear-gradient(112deg, rgba(255,248,225,0) 36%, rgba(255,236,190,.18) 44%, rgba(255,240,205,.55) 48%, rgba(255,250,232,.95) 50%, rgba(255,240,205,.55) 52%, rgba(255,236,190,.18) 56%, rgba(255,248,225,0) 64%); }

.gtr-tree-box { position: absolute; left: 0; top: 0; }
.gtr-tree { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.gtr-tree path, .gtr-tree line, .gtr-tree polyline { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.gtr-sheen-tree { inset: 0; }
/* the foil texture over the tree's lines: a dark translucent veil (mottling, brushed streaks, grain) that only ever darkens */
.gtr-ftex { position: absolute; inset: 0; pointer-events: none; background-size: 100% 100%; will-change: transform;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-size: 100% 100%; mask-size: 100% 100%; }
.gtr-orns { position: absolute; inset: 0; }
.gtr-orn { position: absolute; left: 0; top: 0; width: 0; height: 0; }
.gtr-orn b, .gtr-orn s { position: absolute; border-radius: 50%; opacity: 0; will-change: transform, opacity; }
/* the glowing point: a hot white-gold core in a warm bloom (no star shapes, no sparkle) */
.gtr-orn b { width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px;
  background: radial-gradient(circle, #fffaf0 0 22%, #ffe2a3 42%, rgba(255,196,100,.55) 66%, rgba(255,170,70,0) 100%); }
.gtr-orn s { width: 34px; height: 34px; margin: -17px 0 0 -17px;
  background: radial-gradient(circle, rgba(255,214,140,.42) 0%, rgba(255,186,90,.16) 38%, rgba(255,170,70,0) 70%); }
.gtr-orn.sm b { width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; }
.gtr-orn.sm s { width: 24px; height: 24px; margin: -12px 0 0 -12px; }
.gtr.amb2 .gtr-orn s { --o1: .75; --o0: .42; animation: gtr-breathe var(--d, 4s) ease-in-out var(--dl, 0s) infinite alternate; }
@keyframes gtr-breathe { from { opacity: var(--o1, .9); } to { opacity: var(--o0, .5); } }

/* the "pen" of light at the head of the trunk line while it draws */
.gtr-pen { position: absolute; left: 0; top: 0; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; opacity: 0; will-change: transform, opacity;
  background: radial-gradient(circle, #fffaf0 0 10%, rgba(255,228,170,.7) 26%, rgba(255,200,110,.22) 50%, rgba(255,190,90,0) 72%); }

/* ── the star ── */
.gtr-star { position: absolute; left: 0; top: 0; width: 0; height: 0; will-change: transform; }
.gtr-star-core { position: absolute; width: 26px; height: 26px; left: -13px; top: -13px; overflow: visible; }
.gtr-star-rays { position: absolute; width: 150px; height: 150px; left: -75px; top: -75px; opacity: 0; will-change: transform, opacity; overflow: visible; }
.gtr-star-bloom { position: absolute; width: 90px; height: 90px; left: -45px; top: -45px; border-radius: 50%; opacity: 0; will-change: transform, opacity;
  background: radial-gradient(circle, rgba(255,232,180,.5) 0%, rgba(255,200,120,.18) 34%, rgba(255,190,100,0) 68%); }
.gtr.amb3 .gtr-star-rays { animation: gtr-spin 90s linear infinite; }
@keyframes gtr-spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }
.gtr.amb3 .gtr-star-bloom { animation: gtr-breathe 5s ease-in-out infinite alternate; --o1: .85; --o0: .55; }

/* ── text ── */
.gtr-text { position: absolute; left: 0; right: 0; top: 0; text-align: center; padding: 0 var(--side, 28px); pointer-events: none; }
.gtr-l { margin: 0; line-height: 1; }
.gtr-l .w { position: relative; display: inline-block; }
.gtr-l .ink { display: inline-block; background: var(--foil); background-size: 100% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-mask-image: linear-gradient(90deg, #000 0 45%, transparent 55% 100%); mask-image: linear-gradient(90deg, #000 0 45%, transparent 55% 100%);
  -webkit-mask-size: 250% 100%; mask-size: 250% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: 100% 0; mask-position: 100% 0; padding: .12em .04em .1em; }
/* the big type is stamped with the foil texture (made in JS once, --foil-tex); the gradient underneath is the fallback */
.gtr-title .ink, .gtr-names .ink, .gtr-date .ink { background-image: var(--foil-tex, linear-gradient(transparent, transparent)), var(--foil); background-size: 100% 100%, 100% 100%; }
.gtr-kick .ink, .gtr-by .ink, .gtr-day .ink, .gtr-time .ink, .gtr-date .side { font-family: 'Josefin Sans', sans-serif; font-weight: 400; text-transform: uppercase; }
.gtr-kick { font-size: var(--fs-k); letter-spacing: .34em; margin-right: -.34em; }
.gtr-title { font-family: 'Poiret One', serif; font-weight: 400; font-size: var(--fs-t); letter-spacing: .015em; margin-top: var(--g1); }
.gtr-by { font-size: var(--fs-k); letter-spacing: .34em; margin-right: -.34em; margin-top: var(--g2); }
.gtr-names { font-family: 'Italiana', serif; font-weight: 400; font-size: var(--fs-n); letter-spacing: .02em; margin-top: var(--g1); }
.gtr-rule { margin-top: var(--g2); line-height: 0; }
.gtr-rule svg { width: calc(var(--fs-n) * 4.2); height: calc(var(--fs-n) * .26); display: block; overflow: visible; }
.gtr-rule .ink { background: none; color: inherit; padding: 0; }
.gtr-day { font-size: var(--fs-s); letter-spacing: .4em; margin-right: -.4em; margin-top: var(--g2); }
.gtr-date { margin-top: calc(var(--g2) * .55); }
.gtr-date .ink { display: inline-flex; align-items: center; gap: calc(var(--fs-s) * 1.15); }
.gtr-date .side { font-size: var(--fs-s); letter-spacing: .3em; margin-right: -.3em; padding: .55em 0 .45em; border-top: 1px solid rgba(220,190,120,.55); border-bottom: 1px solid rgba(220,190,120,.55); min-width: 5.6em; }
.gtr-date .num { font-family: 'Poiret One', serif; font-size: calc(var(--fs-t) * 1.02); line-height: .9; letter-spacing: .02em; }
.gtr-time { font-size: var(--fs-s); letter-spacing: .3em; margin-right: -.3em; margin-top: calc(var(--g2) * .9); }

.gtr-l .glint { position: absolute; left: 0; top: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; opacity: 0; pointer-events: none; will-change: transform, opacity;
  background: radial-gradient(circle, rgba(255,250,232,.95) 0 6%, rgba(255,228,170,.45) 22%, rgba(255,205,120,.12) 46%, rgba(255,200,110,0) 70%); }

/* ── tap hint ── */
.gtr-hint { position: absolute; left: 50%; top: 0; transform: translate(-50%, 0); border: 0; background: none; padding: 14px 18px; margin: 0; cursor: pointer;
  font-family: 'Josefin Sans', sans-serif; font-weight: 400; font-size: var(--fs-h); letter-spacing: .38em; text-transform: uppercase; color: #ecd497; white-space: nowrap; font-weight: 600; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.gtr-hint span { display: inline-block; margin-right: -.38em; animation: gtr-hint 2.8s ease-in-out infinite alternate; }
@keyframes gtr-hint { from { opacity: .82; } to { opacity: 1; } }
.gtr-hint::before { content: ''; display: block; width: 34px; height: 1px; margin: 0 auto 14px; background: linear-gradient(90deg, transparent, #ecd497 30%, #ecd497 70%, transparent); }

/* ── ambient gold dust ── */
.gtr-dust { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 2s ease; }
.gtr.amb .gtr-dust { opacity: 1; }
.gtr-dust i { position: absolute; border-radius: 50%; background: radial-gradient(circle, rgba(255,240,205,.95) 0 30%, rgba(255,214,140,.35) 55%, rgba(255,200,120,0) 75%); opacity: 0; will-change: transform, opacity; }
.gtr.amb .gtr-dust i { animation: gtr-dust var(--d) linear var(--dl) infinite; }
@keyframes gtr-dust {
  0% { opacity: 0; transform: translate3d(0, 0, 0); }
  18% { opacity: var(--o); }
  70% { opacity: calc(var(--o) * .8); }
  100% { opacity: 0; transform: translate3d(var(--dx), var(--dy), 0); }
}
.gtr.amb .gtr-sheen.loop > i { animation: gtr-sweep 11s cubic-bezier(.45,.05,.4,1) 3s infinite; }
@keyframes gtr-sweep { 0% { transform: translate3d(-130%,0,0); } 26%, 100% { transform: translate3d(130%,0,0); } }

@media (prefers-reduced-motion: reduce) { .gtr-hint span, .gtr.amb .gtr-dust i, .gtr.amb3 .gtr-star-rays, .gtr.amb3 .gtr-star-bloom, .gtr.amb2 .gtr-orn s, .gtr.amb .gtr-sheen.loop > i { animation: none; } }

/* ───────── the pages ───────── */
html.gtr-on #content { color: var(--ink); }
html.gtr-on #content .sec { background: transparent; }
html.gtr-on #content .kicker { font-family: var(--gtr-caps); font-weight: 400; letter-spacing: .3em; text-transform: uppercase; color: var(--accent); }
html.gtr-on #content h2, html.gtr-on #content h2.script, html.gtr-on #content .te-h { font-family: 'Poiret One', 'Josefin Sans', sans-serif; font-weight: 400; color: var(--accent); letter-spacing: .02em; }
html.gtr-on #content .names-big, html.gtr-on #content .sig { font-family: 'Italiana', 'Poiret One', serif; }
html.gtr-on #content .names-big .n { background: var(--foil); -webkit-background-clip: text; background-clip: text; color: transparent; }
html.gtr-on #content p, html.gtr-on #content .addr, html.gtr-on #content .when { color: var(--ink); }
html.gtr-on #content .timeline-words, html.gtr-on #content .dateline span { color: var(--soft); }
html.gtr-on #content .venue-name, html.gtr-on #content .dress-title { font-family: 'Poiret One', sans-serif; color: var(--ink); letter-spacing: .03em; }
html.gtr-on #content .divider.ldiv { display: none; }

/* a Deco divider with a line icon in its diamond: the hairlines draw in from the outside, the icon lights last */
.gtr-emb { position: relative; width: min(232px, 72%); margin: 0 auto 16px; color: var(--accent); line-height: 0; }
.gtr-emb.first { margin-bottom: 20px; }
.gtr-emb svg { width: 100%; height: auto; overflow: visible; }
.gtr-emb path { stroke-width: 1; stroke-dasharray: 1 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.1s cubic-bezier(.45, .05, .25, 1); }
.gtr-emb .d2 { transition-delay: .2s; } .gtr-emb .d3 { transition-delay: .4s; }
.gtr-emb circle { opacity: 0; transition: opacity .6s ease .7s; }
.gtr-emb .gi { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; opacity: 0; transform: scale(.85); transition: opacity .7s ease .55s, transform .9s cubic-bezier(.2, .7, .2, 1) .55s; color: var(--accent); }
.gtr-emb .gi svg { display: block; width: 22px; height: 22px; }
.gtr-emb.in path { stroke-dashoffset: 0; } .gtr-emb.in circle, .gtr-emb.in .gi { opacity: 1; transform: none; }
.gtr-rl { width: min(200px, 60%); margin: 18px auto 4px; color: var(--accent); line-height: 0; }
.gtr-rl svg { width: 100%; height: auto; overflow: visible; }
.gtr-rl path { stroke-width: .9; stroke-dasharray: 1 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.1s cubic-bezier(.45, .05, .25, 1); }
.gtr-rl.in path { stroke-dashoffset: 0; }

/* the countdown in a Deco frame: a double gold rule with diamonds at the corners */
html.gtr-on #content .framed.gtr-frm { position: relative; background: color-mix(in srgb, var(--paper) 88%, #000); border: 1px solid var(--gtr-line); border-radius: 0;
  box-shadow: inset 0 0 0 5px var(--paper), inset 0 0 0 6px color-mix(in srgb, var(--accent) 45%, transparent); }
html.gtr-on #content .framed.gtr-frm::after { content: ''; position: absolute; inset: -5px; pointer-events: none;
  background: var(--gtr-dia) left top / 10px 10px no-repeat, var(--gtr-dia) right top / 10px 10px no-repeat, var(--gtr-dia) left bottom / 10px 10px no-repeat, var(--gtr-dia) right bottom / 10px 10px no-repeat; }
html.gtr-on #content .framed.gtr-frm * { color: var(--ink); }
html.gtr-on #content .framed.gtr-frm b, html.gtr-on #content .framed.gtr-frm .num, html.gtr-on #content .framed.gtr-frm strong { font-family: 'Poiret One', sans-serif; color: var(--accent); }

/* the programme: gold line icons */
html.gtr-on #content .pi.gtr-ic { color: var(--accent); background: none; border: 0; box-shadow: none; }
html.gtr-on #content .pi.gtr-ic svg { width: 30px; height: 30px; display: block; }

/* photos in gold Deco frames: a double rule with diamond corners around the photo, the frame's shadow falls into the picture */
html.gtr-on #content .gtr-ph { position: relative; overflow: visible; will-change: transform; } /* own layer: rastered ahead, a 2400 px photo tile appearing mid-scroll cost WebKit 50–70 ms */
.gtr-in { position: absolute; inset: 0; pointer-events: none; z-index: 2; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .55), inset 0 3px 16px rgba(0, 0, 0, .62), inset 0 0 40px rgba(0, 0, 0, .25); }
.gtr-pf { position: absolute; inset: -8px; pointer-events: none; z-index: 3; border: 1px solid var(--gtr-line); box-shadow: 0 10px 26px rgba(0, 0, 0, .45); }
.gtr-pf::before { content: ''; position: absolute; inset: 3px; border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent); }
.gtr-pf::after { content: ''; position: absolute; inset: -5px;
  background: var(--gtr-dia) left top / 10px 10px no-repeat, var(--gtr-dia) right top / 10px 10px no-repeat, var(--gtr-dia) left bottom / 10px 10px no-repeat, var(--gtr-dia) right bottom / 10px 10px no-repeat; }

/* each gallery frame keeps its own diamonds: room between the frames */
html.gtr-on #content .gf-gal { gap: 34px 30px; width: min(84%, 360px); margin-top: 44px; }

/* Deco cards (good to know, gifts) */
html.gtr-on #content .note-card.gtr-card { background: color-mix(in srgb, var(--paper) 85%, #000); color: var(--ink); border: 1px solid var(--gtr-line); border-radius: 0;
  box-shadow: inset 0 0 0 5px color-mix(in srgb, var(--paper) 85%, #000), inset 0 0 0 6px color-mix(in srgb, var(--accent) 40%, transparent); position: relative; }
html.gtr-on #content .note-card.gtr-card::after { content: ''; position: absolute; inset: -5px; pointer-events: none;
  background: var(--gtr-dia) left top / 10px 10px no-repeat, var(--gtr-dia) right top / 10px 10px no-repeat, var(--gtr-dia) left bottom / 10px 10px no-repeat, var(--gtr-dia) right bottom / 10px 10px no-repeat; }
/* two Deco cards in a row (good to know → gifts): air between them, so the second card's gold rule never sits on the page seam */
html.gtr-on #content > .sec.note:not(.tone):has(+ .sec.note) { padding-bottom: 22px !important; }
html.gtr-on #content > .sec.note + .sec.note { padding-top: 22px !important; }
.gtr-ci { display: block; width: 30px; height: 30px; margin: 0 auto 8px; color: var(--accent); }
.gtr-ci svg { display: block; }

/* dress-code swatches in gold rings */
html.gtr-on #content .palette span { box-shadow: 0 0 0 1px var(--paper), 0 0 0 2px var(--gtr-line); }

/* buttons: gold outline; the main one in foil */
html.gtr-on #content .btn { border: 1px solid var(--gtr-line); color: var(--accent); background: transparent; border-radius: 0; font-family: var(--gtr-caps); letter-spacing: .18em; text-transform: uppercase; box-shadow: none; }
html.gtr-on #content .btn.fill { background: var(--foil); color: #1d150a; border-color: transparent; text-shadow: none; }
html.gtr-on #content .rsvp div.seal { display: none; }

/* the end: a thank-you line and the small still tree */
.gtr-thanks { font-family: 'Italiana', serif; font-size: 20px; line-height: 1.35; color: var(--ink) !important; margin: 10px auto 0; max-width: 300px; text-align: center; }
.gtr-end { width: 112px; margin: 26px auto 6px; color: var(--accent); line-height: 0; }
.gtr-end svg { width: 100%; height: auto; }

/* ───────── hand-drawn gold line animations (site/gildedtree/gildedtree.js VIG): draw once in view, then a quiet idle life ───────── */
.gtr-a { color: var(--accent); line-height: 0; }
.gtr-a svg { display: block; margin: 0 auto; overflow: visible; }
.gtr-a .dr { stroke-dasharray: 1 1; stroke-dashoffset: 1; transition: stroke-dashoffset var(--t, 1s) cubic-bezier(.45, .05, .25, 1) var(--d, 0s); }
.gtr-a.play .dr { stroke-dashoffset: 0; }
.gtr-a .fi { opacity: 0; fill: currentColor; stroke: none; transition: opacity .6s ease var(--fd, 1s); }
.gtr-a.play .fi { opacity: 1; }
.gtr-a.now .dr, .gtr-a.now .fi { transition: none; }
.gtr-a g, .gtr-a .fl, .gtr-a .tw { transform-box: view-box; }
.gtr-a.off *, .gtr-fl.off * { animation-play-state: paused !important; }

/* coupes: apart, then a clink every few seconds with a tiny sparkle */
.gv-glass .cl { transform-origin: 14px 37px; transform: rotate(-7deg); }
.gv-glass .cr { transform-origin: 34px 37px; transform: rotate(7deg); }
.gv-glass .sp { opacity: 0; transform-origin: 24px 5px; }
.gv-glass.idle .cl { animation: gtr-clinkL 4.6s ease-in-out infinite; }
.gv-glass.idle .cr { animation: gtr-clinkR 4.6s ease-in-out infinite; }
.gv-glass.idle .sp { animation: gtr-spark 4.6s ease-out infinite; }
@keyframes gtr-clinkL { 0%, 62%, 100% { transform: rotate(-7deg); } 74%, 80% { transform: rotate(3deg); } }
@keyframes gtr-clinkR { 0%, 62%, 100% { transform: rotate(7deg); } 74%, 80% { transform: rotate(-3deg); } }
@keyframes gtr-spark { 0%, 72% { opacity: 0; transform: scale(.4); } 77% { opacity: 1; transform: scale(1.1); } 90%, 100% { opacity: 0; transform: scale(1.2); } }
/* the gift's bow ties itself (drawn last), then breathes */
.gv-gift .bow { transform-origin: 24px 15px; }
.gv-gift.idle .bow { animation: gtr-bow 3.8s ease-in-out infinite alternate; }
@keyframes gtr-bow { from { transform: scale(1); } to { transform: scale(1.07); } }
/* candle flames flicker */
.gv-supper .fl { transform-box: fill-box; transform-origin: 50% 100%; }
.gv-supper.idle .f1 { animation: gtr-flick 1.7s ease-in-out infinite alternate; }
.gv-supper.idle .f2 { animation: gtr-flick 1.3s ease-in-out -.4s infinite alternate; }
.gv-supper.idle .f3 { animation: gtr-flick 1.9s ease-in-out -.9s infinite alternate; }
@keyframes gtr-flick { 0% { transform: scale(1, 1); opacity: .95; } 40% { transform: scale(.92, 1.08) skewX(2deg); } 70% { transform: scale(1.05, .9) skewX(-2deg); opacity: .8; } 100% { transform: scale(.96, 1.04); opacity: 1; } }
/* music: notes rise from the gramophone horn and fade */
.gv-music .n1, .gv-music .n2 { opacity: 0; }
.gv-music.idle .n1 { animation: gtr-note 3.4s ease-out infinite; }
.gv-music.idle .n2 { animation: gtr-note 3.4s ease-out 1.7s infinite; }
@keyframes gtr-note { 0% { opacity: 0; transform: translate(-6px, 6px); } 25% { opacity: 1; } 80% { opacity: .6; } 100% { opacity: 0; transform: translate(3px, -14px); } }
/* the Deco star: the inner star turns slowly; the mini tree twinkles */
.gv-star .spin { transform-origin: 24px 24px; }
.gv-star.idle .spin { animation: gtr-turn 24s linear infinite; }
@keyframes gtr-turn { to { transform: rotate(360deg); } }
.gtr-a.idle .tw { animation: gtr-tw 2.6s ease-in-out infinite alternate; }
.gtr-a.idle .tw.t2 { animation-delay: -.9s; } .gtr-a.idle .tw.t3 { animation-delay: -1.7s; }
@keyframes gtr-tw { from { opacity: 1; } to { opacity: .35; } }
/* the clock: the minute hand sweeps round once as it draws, then ticks */
.gv-clock .hm { transform-origin: 24px 24px; transform: rotate(-300deg); transition: transform 1.8s cubic-bezier(.2, .7, .2, 1) .5s; }
.gv-clock .hh { transform-origin: 24px 24px; transform: rotate(-60deg); transition: transform 1.8s cubic-bezier(.2, .7, .2, 1) .5s; }
.gv-clock.play .hm, .gv-clock.play .hh { transform: none; }
.gv-clock.idle .hm { animation: gtr-tick 60s steps(60) infinite; }
@keyframes gtr-tick { to { transform: rotate(360deg); } }
.gtr-clock { margin: 2px auto 18px; }
/* the bell in the card swings gently */
.gv-bell .swing { transform-origin: 20px 6px; }
.gv-bell.idle .swing { animation: gtr-swing 3.2s ease-in-out infinite alternate; }
@keyframes gtr-swing { from { transform: rotate(-9deg); } to { transform: rotate(9deg); } }
/* the venue: a drawn map, the pin drops onto it, a ripple spreads */
.gtr-map { width: min(260px, 74%); margin: 4px auto 16px; }
.gtr-map svg { width: 100%; height: auto; }
.gv-map .pin { opacity: 0; transform: translateY(-34px); transition: opacity .3s ease 1.25s, transform .7s cubic-bezier(.3, 1.6, .5, 1) 1.25s; }
.gv-map.play .pin { opacity: 1; transform: none; }
.gv-map .rp { opacity: 0; transform-origin: 112px 56px; }
.gv-map.idle .rp { animation: gtr-ripple 2.8s ease-out infinite; }
@keyframes gtr-ripple { 0% { opacity: .9; transform: scale(.4); } 100% { opacity: 0; transform: scale(1.9); } }
/* dress code: a bow tie over a string of pearls; the bow wiggles now and then */
.gtr-bow { width: min(150px, 46%); margin: 6px auto 4px; }
.gtr-bow svg { width: 100%; height: auto; }
.gv-bowtie .bt { transform-origin: 60px 22px; }
.gv-bowtie.idle .bt { animation: gtr-wig 5s ease-in-out infinite; }
@keyframes gtr-wig { 0%, 80%, 100% { transform: rotate(0); } 86% { transform: rotate(-5deg); } 92% { transform: rotate(4deg); } }
/* RSVP: the envelope's flap closes and the seal is pressed */
.gtr-env { margin: 6px auto 18px; }
.gv-letter .flap { transform-origin: 40px 16px; transform: scaleY(-1); transition: transform .7s cubic-bezier(.5, 0, .3, 1) 1.1s; }
.gv-letter.play .flap { transform: none; }
.gv-letter .wax { transform-box: fill-box; transform-origin: 50% 50%; transform: scale(0); transition: opacity .2s ease 1.75s, transform .45s cubic-bezier(.3, 1.8, .5, 1) 1.75s; }
.gv-letter.play .wax { transform: none; }
.gv-letter.idle .wax { animation: gtr-glint 3s ease-in-out infinite alternate; }
@keyframes gtr-glint { from { opacity: 1; } to { opacity: .55; } }
/* a gold garland with three swinging ornaments (never on the page seam: it sits inside its section) */
.gtr-gar { width: min(330px, 86%); margin: 34px auto 6px; opacity: .9; }
.gtr-gar svg { width: 100%; height: auto; }
.gtr-gar { position: relative; }
.gv-garland .o { position: absolute; display: block; transform-origin: 50% 0; will-change: transform; }
.gv-garland .o svg { width: 100%; height: auto; }
.gv-garland.idle .o { animation: gtr-sw 3.6s ease-in-out infinite alternate; }
.gv-garland.idle .o2 { animation-duration: 4.4s; animation-delay: -1.2s; } .gv-garland.idle .o3 { animation-delay: -2.1s; }
@keyframes gtr-sw { from { transform: rotate(-6deg); } to { transform: rotate(6deg); } }
html.gtr-on #content .pi.gtr-ic svg { width: 44px; height: 44px; }
.gtr-ci.gtr-a { width: 34px; height: 34px; margin: 0 auto 8px; }
/* slow line snowflakes in the page margins (the text keeps clear of the outer 26 px) */
.gtr-fl { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; color: var(--accent); }
html.gtr-on #content > .sec { position: relative; }
.gtr-fl i { position: absolute; opacity: 0; }
.gtr-fl i.l { left: 6px; } .gtr-fl i.r { right: 6px; }
.gtr-fl.play i { animation: gtr-flake var(--d, 20s) linear var(--dl, 0s) infinite; }
@keyframes gtr-flake { 0% { opacity: 0; transform: translate3d(0, -20px, 0) rotate(0); } 15% { opacity: .5; } 85% { opacity: .4; } 100% { opacity: 0; transform: translate3d(6px, 90px, 0) rotate(120deg); } }
@media (prefers-reduced-motion: reduce) {
  .gtr-a .dr, .gtr-a .fi, .gtr-a .pin, .gtr-a .flap, .gtr-a .wax, .gtr-a .hm, .gtr-a .hh { transition: none !important; }
  .gtr-a *, .gtr-fl * { animation: none !important; }
  .gtr-fl { display: none; }
}
