/* Après-Ski (STAGING 2026-11-14) — the retro ski-poster layer over the gatefold engine (site/apres/apres.js). Scoped to html.as-on.
   Zero AI imagery: flat vector drawings, one frost canvas, CSS. Google Fonts: Bowlby One (poster title), Josefin Sans (caps, text) — OFL.
   The engine's theme gives --paper / --ink / --accent; the poster's own colours per colourway are below (plain hex: the frost canvas
   reads them with getComputedStyle). --as-navy = the dark poster colour (mountains, band), --as-hink = type on the poster sky,
   --as-card / --as-cardink = the dark cards on the pages, --as-kick = small caps on the paper (darker than the title red for contrast). */
html.as-on {
  --as-sky: #f1e2c4; --as-navy: #1f3557; --as-red: #c8412e; --as-sun: #e2a93b; --as-pine: #2e5b4a; --as-ice: #a9c0d3; --as-snow: #fbf8f2;
  --as-hink: #1f3557; --as-line: #1f3557; --as-kick: #b93a28; --as-card: #1f3557; --as-cardink: #fbf8f2; --as-wood: #7a5236; --as-wood2: #5e3d27;
  --as-green: #3e8e5a; --as-blue: #2f64b8; --as-black: #14161c; --as-btnink: #fff;
  --as-disp: 'Bowlby One', 'Arial Black', Impact, sans-serif; --as-sans: 'Josefin Sans', 'Century Gothic', 'Avenir Next', Arial, sans-serif;
  --as-shadow: color-mix(in srgb, var(--as-navy) 70%, #000);
}
html.as-on[data-variant="pastel"] { --as-sky: #fbe3d6; --as-navy: #5b3a4a; --as-red: #e07a6e; --as-sun: #f2c46d; --as-pine: #6faf92; --as-ice: #c9b6e4; --as-snow: #fffaf6;
  --as-hink: #5b3a4a; --as-line: #5b3a4a; --as-kick: #b5524a; --as-card: #5b3a4a; --as-cardink: #fffaf6; --as-green: #5fa583; --as-blue: #8f7cc4; --as-black: #5b3a4a; }
html.as-on[data-variant="midnight"] { --as-sky: #172745; --as-navy: #0f1b33; --as-red: #d4af5a; --as-sun: #f1e0b0; --as-pine: #2d4c5e; --as-ice: #3e5a80; --as-snow: #e9eef5;
  --as-hink: #f1e0b0; --as-line: #7d90b3; --as-kick: #d4af5a; --as-card: #0f1b33; --as-cardink: #e9eef5; --as-green: #5fae7d; --as-blue: #6f9be0; --as-black: #e9eef5; --as-btnink: #15233f; }
html.as-on[data-variant="forest"] { --as-sky: #eadfc8; --as-navy: #24453a; --as-red: #c25e3a; --as-sun: #e0a548; --as-pine: #1e3a2f; --as-ice: #9eb8a6; --as-snow: #faf7ee;
  --as-hink: #24453a; --as-line: #24453a; --as-kick: #a94c2b; --as-card: #24453a; --as-cardink: #faf7ee; --as-green: #4d8f63; --as-blue: #3f6f9c; --as-black: #1b2420; }

html.as-on, html.as-on body { background: var(--table); }
html.as-on .app { background: var(--paper-img) repeat 0 0 / 256px, var(--paper); font-family: var(--as-sans); }

/* ───────── the hero ───────── */
html.as-on .hero { background: var(--paper); }
html.as-on .hero .hint, html.as-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.as-on .hero > .card { visibility: hidden; }
html.as-on .hero > .card * { animation: none !important; transition: none !important; }
.as { position: absolute; inset: 0; z-index: 6; overflow: hidden; background: var(--paper-img) repeat 0 0 / 256px, var(--paper); --pad: var(--as-pad, 12px);
  touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; cursor: grab; font-family: var(--as-sans); }
.as.wiping { cursor: grabbing; }
.as.open { touch-action: auto; cursor: default; }
.as.done { pointer-events: none; }
.as-poster { position: absolute; inset: var(--pad); overflow: hidden; background: var(--as-sky); transform: scale(1.045); transform-origin: 50% 62%; will-change: transform; }
.as.open .as-poster { transform: none; transition: transform 1.5s cubic-bezier(.3, .6, .2, 1); }
html.as-on[data-variant="midnight"] .as-poster { box-shadow: 0 0 0 1px color-mix(in srgb, var(--as-red) 55%, transparent); }
.as-scene svg { position: absolute; display: block; overflow: visible; }
.as-glowwin { opacity: 0; }
.as.open .as-glowwin, .as-end .as-glowwin { animation: asWin 5.5s ease-in-out 2.4s infinite; }
@keyframes asWin { 0%, 100% { opacity: 0; } 18% { opacity: .55; } 30% { opacity: .2; } 46% { opacity: .6; } 70% { opacity: .1; } }

/* the gondola: glides in along the cable (the cable's own slope), settles with a small swing, then sways now and then */
.as-gond { position: absolute; left: var(--as-gx, 150px); top: var(--as-gy, 300px); width: 0; height: 0; opacity: 0; transform: translate3d(var(--as-dx, -260px), var(--as-dy, -80px), 0); will-change: transform; }
.as-gsw { position: absolute; left: -30px; top: -6px; width: 60px; height: 80px; transform-origin: 30px 6px; transform: scale(var(--as-gk, 1)); }
.as-gsw svg { display: block; transform-origin: 30px 6px; overflow: visible; }
.as.open .as-gond { opacity: 1; animation: asGlide 1.55s cubic-bezier(.16, .62, .24, 1) .34s both; }
.as.open .as-gsw svg { animation: asSwing 2.1s cubic-bezier(.3, 0, .3, 1) .5s both, asSway 7s ease-in-out 3s infinite; }
@keyframes asGlide { from { opacity: 1; transform: translate3d(var(--as-dx, -260px), var(--as-dy, -80px), 0); } to { opacity: 1; transform: translate3d(0, 0, 0); } }
@keyframes asSwing { 0% { transform: rotate(7deg); } 52% { transform: rotate(7deg); } 66% { transform: rotate(-5deg); } 78% { transform: rotate(3deg); } 89% { transform: rotate(-1.4deg); } 100% { transform: rotate(0); } }
@keyframes asSway { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(1.6deg); } 70% { transform: rotate(-1.4deg); } }

/* soft snow: small round flakes, each on its own slow fall with a slight drift (transform only); only inside the scene, never over the title */
.as-flakes { position: absolute; left: 0; right: 0; top: var(--as-zt, 240px); bottom: 0; overflow: hidden; pointer-events: none; opacity: .01; /* already painted under the frost: no new layers appear mid-opening */ }
.as-flakes i { position: absolute; left: var(--x); top: -8px; width: var(--s); height: var(--s); border-radius: 50%; background: var(--as-snow); opacity: var(--o); will-change: transform; }
.as.open .as-flakes { opacity: 1; transition: opacity 1.6s ease 1s; }
.as-flakes i { animation: asFall var(--d) linear var(--w) infinite paused; }
.as.open .as-flakes i, .as-flakes.on i { animation-play-state: running; }
.as-flakes.on { opacity: 1; top: 0; }
@keyframes asFall { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(var(--sw), var(--as-fall, 520px), 0); } }

/* the poster's words */
.as-head { position: absolute; left: 12px; right: 12px; top: calc(max(22px, 5.4svh) + var(--as-hy, 0px)); text-align: center; color: var(--as-hink); pointer-events: none; }
.as-head.as-cover { left: calc(var(--pad) + 12px); right: calc(var(--pad) + 12px); top: calc(var(--pad) + max(22px, 5.4svh) + var(--as-hy, 0px)); z-index: 3; }
/* --as-hy (apres.js layout): a personal guest link ("Dear Anna & Mark", --gh-room on html.gh-on) moves both titles under the greeting;
   the poster's scene then fits the space left (2026-11-17: the greeting sat on "APRÈS SKI"). 0 without a guest. */
.as-k { font: 700 12px/1.5 var(--as-sans); letter-spacing: .26em; text-transform: uppercase; white-space: nowrap; overflow: hidden; }
.as-k span, .as-sub span { display: inline-block; padding-left: .26em; }
.as-k.tight { letter-spacing: .14em; font-size: 11.5px; }
.as-k.wrap { white-space: normal; letter-spacing: .16em; text-wrap: balance; overflow: visible; }
.as-title { margin: calc(var(--as-f, 84px) * .2) 0 0; font: 400 var(--as-f, 84px)/.9 var(--as-disp); letter-spacing: .01em; text-transform: uppercase; color: var(--as-red); }
.as-title .as-l { display: block; white-space: nowrap; }
.as-title b { font-weight: 400; display: inline-block; }
.as-sub { margin-top: calc(var(--as-f, 84px) * .17); font: 700 15px/1.4 var(--as-sans); letter-spacing: .42em; text-transform: uppercase; white-space: nowrap; overflow: hidden; }
.as-sub span { padding-left: .42em; }
.as-sub.tight { letter-spacing: .22em; font-size: 14px; } .as-sub.tight span { padding-left: .22em; }
.as-sub.wrap { white-space: normal; letter-spacing: .2em; font-size: 13.5px; text-wrap: balance; overflow: visible; }
@media (max-width: 350px) { .as-sub { font-size: 13px; letter-spacing: .34em; } .as-k { font-size: 11px; letter-spacing: .2em; } }
.as-band { position: absolute; left: 0; right: 0; bottom: 0; background: var(--as-navy); color: var(--as-snow); padding: 20px 12px 30px; text-align: center; }
.as-b1, .as-b2 { text-transform: uppercase; white-space: nowrap; overflow: hidden; }
.as-b1 { font: 700 15px/1.3 var(--as-sans); letter-spacing: .24em; }
.as-b2 { margin-top: 8px; font: 600 12px/1.4 var(--as-sans); letter-spacing: .24em; opacity: .86; }
/* QA 2026-11-18: the round music button (bottom-right, 44 px) lay on "…BRECKENRIDGE, CO" (iPhone 13, 320 px): the venue line keeps
   clear of it on both sides (symmetric, so it stays centred) and goes tighter / onto two balanced lines in what is left */
.as-b2 { padding: 0 48px; }
/* QA 2026-11-18 (fix G): wrapped, the line broke after the "·" and left it dangling at the end of line 1 — now a wrapped line puts each
   part (venue / city) on its own line and drops the separator: no line ever starts or ends with "·". A part wraps
   inside itself (balanced) only if it alone is wider than the line */
.as-band .as-b2.wrap > span { display: block; text-wrap: balance; } .as-band .as-b2.wrap > i { display: none; }
.as-band i { font-style: normal; margin: 0 .26em; opacity: .8; }
.as-band .tight { letter-spacing: .12em; } .as-b1.tight { font-size: 14px; } .as-b2.tight { font-size: 11.5px; }
.as-band .wrap { white-space: normal; letter-spacing: .12em; text-wrap: balance; overflow: visible; }
@media (max-width: 350px) { .as-b1 { font-size: 13.5px; letter-spacing: .2em; } .as-b2 { font-size: 11px; letter-spacing: .2em; } }
/* closed: the poster's words are not printed yet; the window carries its own (same place, same size, on the frost) */
.as-real .as-k, .as-real .as-l, .as-real .as-sub, .as-b1, .as-b2 { opacity: 0; }
.as-cover .as-title { color: var(--as-navy); opacity: .84; text-shadow: 0 1px 0 rgba(255, 255, 255, .6); }
.as-cover .as-k { color: var(--as-navy); }
.as-cover { opacity: 0; transition: opacity .7s ease; }
.as.ready.fonts .as-cover { opacity: 1; }
.as.as.as.open .as-cover { opacity: 0; transition: opacity .38s ease; }
.as.open .as-real .as-k { animation: asUp .75s ease .62s both; }
.as.open .as-real .as-l { animation: asLine .82s cubic-bezier(.2, .7, .2, 1) calc(.78s + var(--i) * .17s) both; }
.as.open .as-real .as-sub { animation: asUp .75s ease 1.24s both; }
.as.open .as-b1 { animation: asUp .7s ease 1.36s both; }
.as.open .as-b2 { animation: asUp86 .7s ease 1.5s both; }
@keyframes asUp { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
@keyframes asUp86 { from { opacity: 0; transform: translateY(7px); } to { opacity: .86; transform: none; } }
@keyframes asLine { 0% { opacity: 0; transform: translateY(.3em); clip-path: inset(-10% -10% 100% -10%); } 30% { opacity: 1; } 100% { opacity: 1; transform: none; clip-path: inset(-30% -10% -20% -10%); } }

/* the frost (one canvas) and the chalet window around it */
.as-frost { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 2; background: #e6edf4; will-change: opacity; }
/* the layers that leave keep their own compositor layers until the whole opening is over (no layer tree change mid-motion) */
.as-cover, .as-hint { will-change: opacity; }
.as.done .as-frost, .as.done .as-win, .as.done .as-cover, .as.done .as-hint { display: none; }
.as.ready .as-frost { background: none; }
.as-win { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.as-wf { position: absolute; inset: 0; border: 16px solid var(--as-wood); }
/* four wooden rails with their own grain (along each rail), mitred at the corners; a lip around the glass */
.as-ws { position: absolute; background-color: var(--as-wood); }
.as-ws.t, .as-ws.b { left: 0; right: 0; height: 16px; background-image: linear-gradient(180deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, 0) 30%, rgba(0, 0, 0, .12)), repeating-linear-gradient(180deg, rgba(60, 34, 16, .0) 0 2px, rgba(60, 34, 16, .16) 2px 3px, rgba(60, 34, 16, 0) 3px 5.5px, rgba(255, 236, 210, .07) 5.5px 6.5px); }
.as-ws.t { top: 0; clip-path: polygon(0 0, 100% 0, calc(100% - 16px) 100%, 16px 100%); } .as-ws.b { bottom: 0; clip-path: polygon(16px 0, calc(100% - 16px) 0, 100% 100%, 0 100%); }
.as-ws.l, .as-ws.r { top: 0; bottom: 0; width: 16px; background-image: linear-gradient(90deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, 0) 30%, rgba(0, 0, 0, .14)), repeating-linear-gradient(90deg, rgba(60, 34, 16, 0) 0 2px, rgba(60, 34, 16, .16) 2px 3px, rgba(60, 34, 16, 0) 3px 5.5px, rgba(255, 236, 210, .07) 5.5px 6.5px); }
.as-ws.l { left: 0; clip-path: polygon(0 0, 100% 16px, 100% calc(100% - 16px), 0 100%); } .as-ws.r { right: 0; clip-path: polygon(0 16px, 100% 0, 100% 100%, 0 calc(100% - 16px)); }
.as-wi { position: absolute; inset: 16px; box-shadow: inset 0 0 0 3px var(--as-wood2), inset 0 12px 22px rgba(0, 0, 0, .3), inset 0 0 0 4px rgba(0, 0, 0, .12); }
.as-wb { position: absolute; left: 16px; right: 16px; top: var(--as-bar, 280px); height: 16px; background: linear-gradient(180deg, #8f6646, var(--as-wood) 55%, var(--as-wood2)), var(--as-wood);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, 0) 35%, rgba(0, 0, 0, .2)), repeating-linear-gradient(180deg, rgba(60, 34, 16, 0) 0 2px, rgba(60, 34, 16, .16) 2px 3px, rgba(60, 34, 16, 0) 3px 5.5px, rgba(255, 236, 210, .07) 5.5px 6.5px); background-color: var(--as-wood);
  box-shadow: 0 5px 12px rgba(0, 0, 0, .3), 0 0 0 1px var(--as-wood2); }
/* the frame opens outwards: each rail slides off its own edge (translate only), the lip and the bar fade; the frost melts.
   Every exit is ONE long animation that holds its end state until the whole opening is over (3.3 s; the layer is removed at
   .done): no big layer stops animating — and gets re-composited — while the gondola and the title are still moving */
.as-ws, .as-wb, .as-wi, .as-wf { will-change: transform, opacity; }
.as.open .as-ws.t { animation: asRailT 3.3s linear both; } .as.open .as-ws.b { animation: asRailB 3.3s linear both; }
.as.open .as-ws.l { animation: asRailL 3.3s linear both; } .as.open .as-ws.r { animation: asRailR 3.3s linear both; }
.as.open .as-wf { animation: asOutA 3.3s linear both; } .as.open .as-wi { animation: asOutB 3.3s linear both; } .as.open .as-wb { animation: asOutBar 3.3s linear both; }
.as.open .as-frost { animation: asMelt 3.3s linear both; pointer-events: none; }
@keyframes asRailT { 0%, 1.5% { transform: none; animation-timing-function: cubic-bezier(.55, 0, .3, 1); } 30% { transform: translate3d(0, -130%, 0); animation-timing-function: linear; } 100% { transform: translate3d(0, -175%, 0); } }
@keyframes asRailB { 0%, 1.5% { transform: none; animation-timing-function: cubic-bezier(.55, 0, .3, 1); } 30% { transform: translate3d(0, 130%, 0); animation-timing-function: linear; } 100% { transform: translate3d(0, 175%, 0); } }
@keyframes asRailL { 0%, 1.5% { transform: none; animation-timing-function: cubic-bezier(.55, 0, .3, 1); } 30% { transform: translate3d(-130%, 0, 0); animation-timing-function: linear; } 100% { transform: translate3d(-175%, 0, 0); } }
@keyframes asRailR { 0%, 1.5% { transform: none; animation-timing-function: cubic-bezier(.55, 0, .3, 1); } 30% { transform: translate3d(130%, 0, 0); animation-timing-function: linear; } 100% { transform: translate3d(175%, 0, 0); } }
@keyframes asOutA { 0% { opacity: 1; animation-timing-function: ease; } 9%, 100% { opacity: 0; } }
@keyframes asOutB { 0%, 3% { opacity: 1; animation-timing-function: ease; } 20%, 100% { opacity: 0; } }
@keyframes asOutBar { 0%, 2% { opacity: 1; transform: none; animation-timing-function: cubic-bezier(.5, 0, .3, 1); } 19% { opacity: 0; } 23%, 100% { opacity: 0; transform: translate3d(0, -10px, 0); } }
@keyframes asMelt { 0%, 9% { opacity: 1; animation-timing-function: ease; } 34%, 100% { opacity: 0; } }
/* the hint: a small frosted pill (readable on the frost and on a wiped patch); its dot slides like a finger */
.as-hint { position: absolute; left: 50%; bottom: calc(var(--as-zb, 96px) + var(--pad) + 22px); transform: translateX(-50%); z-index: 5; display: inline-flex; align-items: center; gap: 14px; border: 0; margin: 0;
  padding: 14px 20px 12px 18px; border-radius: 999px; background: rgba(255, 255, 255, .88); box-shadow: 0 8px 20px -6px rgba(20, 30, 50, .3), inset 0 0 0 1px rgba(255, 255, 255, .8);
  font: 700 11.5px/1 var(--as-sans); letter-spacing: .2em; text-transform: uppercase; color: var(--as-navy); white-space: nowrap; cursor: pointer; opacity: 0; transition: opacity .6s ease; }
.as-hint i { display: block; width: 9px; height: 9px; margin-top: -3px; border-radius: 50%; background: var(--accent); animation: asDot 1.9s cubic-bezier(.45, 0, .55, 1) infinite alternate; }
html.as-on[data-variant="midnight"] .as-hint i { background: #b98f33; }
@keyframes asDot { from { transform: translateX(-5px); } to { transform: translateX(7px); } }
.as.idle .as-hint i { animation: asPulse 1.3s ease-in-out infinite; }
@keyframes asPulse { 0%, 100% { transform: scale(.8); opacity: .7; } 50% { transform: scale(1.35); opacity: 1; } }
.as.ready.fonts .as-hint { opacity: 1; }
.as.as.as.wiping .as-hint { opacity: 0; transition: opacity .25s ease; }
.as.as.as.open .as-hint { opacity: 0; transition: opacity .3s ease; pointer-events: none; }
@media (max-width: 350px) { .as-hint { letter-spacing: .14em; font-size: 11px; padding-left: 15px; padding-right: 16px; gap: 11px; } }
.as-meas { position: absolute; left: -9999px; top: 0; white-space: nowrap; visibility: hidden; }
.as-meas.ti { font: 400 100px/1 var(--as-disp); letter-spacing: .01em; text-transform: uppercase; }
/* the scroll cue: a small chevron at the foot of the date band (in its own space under the two lines) */
html.as-on .hero .cue { z-index: 8; bottom: calc(var(--as-pad, 12px) + 9px); }
html.as-on .hero .cue span { display: none; }
html.as-on .hero .cue i { width: 9px; height: 9px; margin: 0 auto; background: none; border: solid var(--as-snow); border-width: 0 2px 2px 0; transform: rotate(45deg); transform-origin: 50% 50%; animation: asCue 1.9s ease-in-out infinite; }
@keyframes asCue { 0%, 100% { transform: translateY(-3px) rotate(45deg); opacity: .5; } 50% { transform: translateY(2px) rotate(45deg); opacity: 1; } }
/* ?open (studio / previews) and reduced motion: the finished poster at once */
.as.instant *, .as.instant { transition: none !important; animation-duration: 0s !important; animation-delay: 0s !important; }
.as.instant .as-flakes i { animation-duration: var(--d) !important; animation-delay: var(--w) !important; }
.as.instant .as-frost, .as.instant .as-win, .as.instant .as-hint, .as.instant .as-cover { display: none; }
@media (prefers-reduced-motion: reduce) { .as-flakes i, .as-gsw svg, .as-glowwin, .as-hint i { animation: none !important; } }

/* ───────── the pages ───────── */
html.as-on #content { position: relative; }
html.as-on #content > .sec { isolation: isolate; }
html.as-on #content > .sec:not(.foot) { padding: 56px 28px 54px; }
html.as-on #content .sec p { font-family: var(--as-sans); font-weight: 400; font-size: 17.5px; line-height: 1.55; color: var(--ink); max-width: 330px; }
html.as-on .kicker { font: 700 12px/1.5 var(--as-sans); letter-spacing: .26em; padding-left: .26em; text-transform: uppercase; color: var(--as-kick); }
html.as-on.gf-serifheads h2.script, html.as-on.gf-serifheads .note h2.script, html.as-on .kicker.as-h { font: 400 37px/1.02 var(--as-disp); letter-spacing: .01em; padding-left: 0; text-transform: uppercase; color: var(--as-red);
  margin: 12px auto 0; max-width: 330px; text-wrap: balance; }
html.as-on.gf-serifheads h2.script::after { display: none; }
@media (max-width: 350px) { html.as-on.gf-serifheads h2.script, html.as-on.gf-serifheads .note h2.script, html.as-on .kicker.as-h { font-size: 31px; } html.as-on #content > .sec:not(.foot) { padding-left: 22px; padding-right: 22px; } }
html.as-on .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 3px 24px 0 26.5px; border-radius: 999px; border: 1.5px solid var(--ink); background: transparent; box-shadow: none;
  font: 700 12.5px/1 var(--as-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink); }
html.as-on .btn.fill { min-height: 56px; min-width: min(100%, 250px); padding: 2px 30px 0; border: 0; border-radius: 9px; background: var(--as-red); color: var(--as-btnink); font: 400 18px/1.2 var(--as-disp); letter-spacing: .06em;
  box-shadow: 0 5px 0 color-mix(in srgb, var(--as-red) 64%, #000), 0 16px 22px -12px color-mix(in srgb, var(--as-red) 60%, #000); }
html.as-on .divider { display: none; }
/* trail-map contour lines far behind a few pages (a whisper, faded out at both ends — no edge, nothing readable in them) */
.as-topo { position: absolute; inset: 0; z-index: -1; pointer-events: none; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 26%, #000 74%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 26%, #000 74%, transparent 100%); }
.as-topo i { position: absolute; inset: 0; background: var(--ink); opacity: .055; -webkit-mask: var(--as-topo) 50% 0 / 380px 460px repeat; mask: var(--as-topo) 50% 0 / 380px 460px repeat; }
/* vignettes: small flat drawings in their own space */
.as-vig { display: flex; justify-content: center; margin: 0 auto 18px; pointer-events: none; }
.as-vig svg { display: block; height: auto; overflow: visible; }
.as-isle { height: 44px; margin: 0 -28px 44px; background: var(--as-isle) 50% 0 / 32px 44px repeat-x; }
html.as-on .sec.rsvp .as-isle { margin: 46px -28px 0; }

/* the invitation */
html.as-on .sec.invite { padding-top: 62px; }
.as-vig.skis .sk, .as-vig.skis .pole { transform-box: view-box; transform-origin: 60px 44px; transition: transform 1s cubic-bezier(.3, 1.3, .5, 1) .15s, opacity .5s ease .15s; }
.as-vig.skis:not(.in) .sk.a { transform: rotate(-45deg); } .as-vig.skis:not(.in) .sk.b { transform: rotate(45deg); }
.as-vig.skis:not(.in) .pole { transform: translateY(-14px); opacity: 0; }
.as-vig.skis .pole { transition-delay: .55s; }
html.as-on .sec.invite .names-big { font: 400 46px/.98 var(--as-disp); letter-spacing: .01em; text-transform: uppercase; color: var(--as-red); margin: 12px 0 14px; }
html.as-on .sec.invite .names-big .amp { font: inherit; color: inherit; font-size: .62em; }
html.as-on .sec.invite .dateline, html.as-on .sec.invite .timeline-words { display: none; }
/* the lift pass */
.as-pass { position: relative; max-width: 334px; margin: 30px auto 4px; text-align: left; color: var(--as-navy); }
/* its shadow: the two drop-shadows (0 16px 14px 20 % + 0 2px 2px 14 %, notches included) pre-drawn once into this canvas by apres.js — no live filter */
.as-pass-sh { position: absolute; left: -48px; top: -48px; display: block; pointer-events: none; }
.as-pass-in { position: relative; }
.as-pass[data-reveal] { transform: translateY(26px) rotate(-2.2deg); transition: opacity .8s ease, transform 1.1s cubic-bezier(.2, .9, .3, 1.15); }
.as-pass[data-reveal].in { transform: none; }
.as-pass-in { background: var(--as-snow); border-radius: 11px; overflow: hidden;
  -webkit-mask: radial-gradient(circle 11px at 0 var(--notch, 96px), transparent 97%, #000) 0 0 / 51% 100% no-repeat, radial-gradient(circle 11px at 100% var(--notch, 96px), transparent 97%, #000) 100% 0 / 51% 100% no-repeat;
  mask: radial-gradient(circle 11px at 0 var(--notch, 96px), transparent 97%, #000) 0 0 / 51% 100% no-repeat, radial-gradient(circle 11px at 100% var(--notch, 96px), transparent 97%, #000) 100% 0 / 51% 100% no-repeat; }
.as-ph { display: flex; justify-content: space-between; align-items: center; gap: 12px; height: 80px; padding: 4px 22px 0; background: var(--as-card); color: var(--as-cardink); }
.as-pk { font: 600 11px/1.3 var(--as-sans); letter-spacing: .26em; text-transform: uppercase; opacity: .82; }
.as-pa { font: 400 23px/1.05 var(--as-disp); letter-spacing: .02em; text-transform: uppercase; margin-top: 4px; }
.as-ph svg { flex: none; }
.as-pb { margin-top: 15px; padding: 22px 22px 6px; border-top: 2px dashed color-mix(in srgb, var(--as-navy) 26%, transparent); }
.as-pr { display: flex; gap: 16px; } .as-pr > div { flex: 1 1 0; min-width: 0; } .as-pr > .t { flex: 0 0 34%; }
.as-pw { margin-top: 15px; }
.as-pass .k { font: 700 11px/1.3 var(--as-sans); letter-spacing: .24em; text-transform: uppercase; color: var(--as-kick); }
html.as-on[data-variant="midnight"] .as-pass .k { color: #9a7526; }
.as-pass .v { font: 600 19px/1.22 var(--as-sans); margin-top: 4px; overflow-wrap: anywhere; }
.as-pass .v small { display: block; font-size: 15px; font-weight: 400; line-height: 1.3; opacity: .82; margin-top: 2px; }
.as-pc { position: relative; padding: 26px 22px 24px; height: 84px; color: var(--as-navy); }
.as-pc svg { display: block; width: 100%; height: 32px; fill: currentColor; }
.as-stamp { position: absolute; right: 18px; top: 12px; width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; background: var(--as-snow); color: var(--as-red); box-shadow: inset 0 0 0 2.5px currentColor, inset 0 0 0 5px var(--as-snow), inset 0 0 0 6px currentColor;
  transform: rotate(-12deg) scale(1.7); opacity: 0; transition: transform .42s cubic-bezier(.3, 1.6, .5, 1) .75s, opacity .2s ease .75s; }
html.as-on[data-variant="midnight"] .as-stamp { color: #a37b28; }
.as-pass.in .as-stamp { transform: rotate(-12deg); opacity: 1; }
.as-stamp b { font: 400 13.5px/1 var(--as-disp); letter-spacing: .03em; text-transform: uppercase; text-align: center; max-width: 46px; }

/* the countdown: a night board */
html.as-on .countdown .framed, html.as-on .countdown .framed.plain { position: relative; max-width: 334px; margin: 0 auto; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: var(--as-card); color: var(--as-cardink);
  box-shadow: 0 18px 26px -14px color-mix(in srgb, var(--as-shadow) 55%, transparent), 0 2px 3px color-mix(in srgb, var(--as-shadow) 20%, transparent); }
html.as-on[data-variant="midnight"] .countdown .framed, html.as-on[data-variant="midnight"] .as-map, html.as-on[data-variant="midnight"] .photos .portrait.noframe { box-shadow: 0 0 0 1px color-mix(in srgb, var(--as-red) 50%, transparent), 0 18px 26px -14px rgba(0, 0, 0, .6); }
html.as-on .countdown .framed-in { position: static; border: 0; padding: 0 20px 88px; width: auto; height: auto; min-height: 150px; }
html.as-on .countdown .cd-past { font: 400 27px/1.15 var(--as-disp) !important; letter-spacing: .02em !important; text-transform: uppercase; color: var(--as-cardink); text-wrap: balance; }
@media (max-width: 350px) { html.as-on .countdown .cd-past { font-size: 22px !important; } }
html.as-on .countdown .cd-past-date { font: 700 12px/1.4 var(--as-sans) !important; letter-spacing: .24em !important; color: var(--as-sun); opacity: 1 !important; margin-top: 12px !important; }
html.as-on .countdown .framed::before, html.as-on .countdown .framed::after, html.as-on .countdown .framed-in::before, html.as-on .countdown .framed-in::after { display: none; }
.as-cdtop { position: relative; height: 62px; margin: 0 0 4px; overflow: hidden; }
.as-cdtop .cb { position: absolute; left: -4%; right: -4%; top: 14px; height: 1.5px; background: var(--as-cardink); opacity: .5; transform: rotate(2.6deg); }
.as-cdtop .go { position: absolute; left: 0; top: 7px; display: block; animation: asCross 26s linear infinite; }
.as-cdtop .go svg { display: block; }
@keyframes asCross { from { transform: translate3d(-40px, 0, 0); } to { transform: translate3d(390px, 17.6px, 0); } }
html.as-on .countdown .kicker { color: var(--as-sun); }
html.as-on .countdown .cd-days b { font: 400 min(27cqw, 96px)/.95 var(--as-disp); font-size: 88px; letter-spacing: .01em; color: var(--as-cardink); }
html.as-on .countdown .cd-days span, html.as-on .countdown .cd-row span { font: 700 11px/1.4 var(--as-sans); letter-spacing: .24em; text-transform: uppercase; color: color-mix(in srgb, var(--as-cardink) 78%, transparent); }
html.as-on .countdown .cd-row { border: 0; border-top: 1.5px solid color-mix(in srgb, var(--as-cardink) 18%, transparent); margin-top: 16px; padding-top: 14px; }
html.as-on .countdown .cd-row > div { border: 0; }
html.as-on .countdown .cd-row b { font: 400 26px/1.1 var(--as-disp); color: var(--as-cardink); }
html.as-on .countdown .cd-t { font: 600 15px/1.4 var(--as-sans); letter-spacing: .04em; color: var(--as-cardink); opacity: .9; font-style: normal; }
.as-cdridge { position: absolute; left: 0; right: 0; bottom: 0; height: 70px; pointer-events: none; }
.as-cdridge svg { display: block; width: 100%; height: 100%; }
html.as-on .countdown .btn { margin-top: 26px; }

/* the programme: trail markers on a dashed piste */
html.as-on .schedule .prog { position: relative; max-width: 330px; margin: 26px auto 0; text-align: left; }
html.as-on .schedule .prog::before { content: ''; position: absolute; left: 16px; top: 34px; bottom: 44px; width: 2px; background: repeating-linear-gradient(180deg, color-mix(in srgb, var(--ink) 34%, transparent) 0 5px, transparent 5px 12px); }
html.as-on .schedule .prog li, html.as-on .schedule .prog li.alt { display: flex; flex-direction: row; grid-template-columns: none; gap: 16px; align-items: flex-start; padding: 17px 0 17px; border: 0; text-align: left; position: relative; background: none; }
html.as-on .schedule .prog li + li, html.as-on .schedule .prog li + li.alt { border-top: 1.5px solid color-mix(in srgb, var(--ink) 13%, transparent); }
html.as-on .schedule .prog .pi, html.as-on .schedule .prog li.alt .pi { order: 0; flex: none; width: 34px; height: 34px; margin: 2px 0 0; display: block; position: relative; z-index: 1; background: var(--paper); border-radius: 50%; box-shadow: 0 0 0 5px var(--paper); }
html.as-on .schedule .prog .pi svg { display: block; transform: scale(.4) rotate(-30deg); opacity: 0; transition: transform .6s cubic-bezier(.3, 1.5, .5, 1) .2s, opacity .3s ease .2s; }
html.as-on .schedule .prog li.in .pi svg { transform: none; opacity: 1; }
html.as-on .schedule .prog .pt { display: block; flex: 1; min-width: 0; text-align: left; }
html.as-on .schedule .prog .pt time { display: block; font: 700 12px/1.4 var(--as-sans); letter-spacing: .2em; text-transform: uppercase; color: var(--as-kick); }
html.as-on .schedule .prog .pt b { display: block; font: 400 19px/1.15 var(--as-disp); letter-spacing: .01em; text-transform: uppercase; color: var(--ink); margin: 4px 0 0; }
html.as-on .schedule .prog .pt span { display: block; font: 400 15.5px/1.45 var(--as-sans); color: var(--ink); opacity: .86; margin-top: 4px; }
.as-vig.flag { margin: 14px auto 0; }
.as-vig.flag .fl { transform-box: fill-box; transform-origin: 0 50%; transform: scaleX(0); transition: transform .7s cubic-bezier(.3, 1.4, .5, 1) .35s; }
.as-vig.flag.in .fl { transform: none; }

/* photos: set INTO the poster frame — a deep mat in the poster's dark colour, a fine light keyline, an inner shadow on the photo */
html.as-on .photos .kicker.as-k2 { margin-bottom: 0; }
html.as-on .photos .portrait.noframe { width: min(100%, 318px); aspect-ratio: 4 / 5; margin: 26px auto 0; padding: 10px; border-radius: 4px; background: var(--as-card); overflow: visible;
  box-shadow: 0 2px 2px color-mix(in srgb, var(--as-shadow) 18%, transparent), 0 20px 28px -12px color-mix(in srgb, var(--as-shadow) 42%, transparent); }
html.as-on .photos .portrait.noframe.land { aspect-ratio: 5 / 4; }
html.as-on .photos .portrait.noframe::before { content: ''; position: absolute; inset: 10px; z-index: 2; pointer-events: none; border: 1.5px solid color-mix(in srgb, var(--as-cardink) 72%, transparent); }
html.as-on .photos .portrait.noframe::after { display: none; }
html.as-on .photos .portrait.noframe .ph { position: absolute; inset: 17px; width: auto; height: auto; border-radius: 0; background-size: cover; background-position: 50% 35%; }
html.as-on .photos .portrait.noframe .ph::after, html.as-on .gf-gal figure::after { content: ''; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 2px 9px rgba(0, 0, 0, .34), inset 0 0 26px rgba(0, 0, 0, .14); background: none; }
html.as-on .gf-gal { gap: 22px 16px; margin-top: 30px; max-width: 318px; margin-left: auto; margin-right: auto; }
html.as-on .gf-gal figure { position: relative; border-radius: 3px; padding: 0; background: var(--as-card);
  box-shadow: 0 0 0 5px var(--as-card), 0 0 0 6.2px color-mix(in srgb, var(--as-sun) 85%, transparent), 0 18px 22px -10px color-mix(in srgb, var(--as-shadow) 45%, transparent); }
html.as-on .gf-gal img { border-radius: 0; display: block; }
html.as-on .gf-gal figure::before { display: none; }
html.as-on .gf-gal.mixed figure.solo { width: 62%; }
html.as-on .gf-gal.mixed figure.solo img { aspect-ratio: 3 / 4; }

/* the venue + the trail map */
.as-map { position: relative; display: block; width: min(100%, 334px); aspect-ratio: 16 / 10; margin: 26px auto 22px; border-radius: 10px; overflow: hidden; background: var(--as-sky);
  box-shadow: 0 0 0 5px var(--as-snow), 0 0 0 6.5px color-mix(in srgb, var(--ink) 30%, transparent), 0 20px 26px -14px color-mix(in srgb, var(--as-shadow) 50%, transparent); }
.as-map svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.as-map::after { content: ''; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 2px 8px rgba(0, 0, 0, .16); }
.as-map .run { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.3s cubic-bezier(.4, 0, .2, 1) .35s; }
.as-map .run.r2 { transition-delay: .6s; } .as-map .run.r3 { transition-delay: .85s; }
.as-map.in .run { stroke-dashoffset: 0; }
.as-map .pin { opacity: 0; transition: opacity .3s ease 1.4s; }
.as-map .pin path, .as-map .pin circle { transform: translateY(-16px); transition: transform .55s cubic-bezier(.3, 1.6, .5, 1) 1.4s; }
.as-map.in .pin { opacity: 1; } .as-map.in .pin path, .as-map.in .pin circle { transform: none; }
.as-map .mg { animation: asLift 9s linear infinite; }
@keyframes asLift { from { transform: translate(236px, 172px); } to { transform: translate(162px, 34px); } }
html.as-on .venue-name { font: 400 25px/1.12 var(--as-disp); letter-spacing: .01em; text-transform: uppercase; color: var(--ink); margin-top: 6px; text-wrap: balance; }
html.as-on .venue .addr { font-size: 17px; color: var(--ink); opacity: .86; }
html.as-on .venue .when { font: 700 12px/1.6 var(--as-sans) !important; letter-spacing: .1em; text-wrap: balance; text-transform: uppercase; color: var(--as-kick) !important; margin-top: 14px; }

/* dress code */
html.as-on #content > .sec.dress { padding-top: 34px; }
.as-vig.knit { margin: 22px auto 16px; }
.as-vig.knit .hat, .as-vig.knit .mit { transform-box: view-box; transition: transform .9s cubic-bezier(.3, 1.4, .5, 1) .2s, opacity .5s ease .2s; }
.as-vig.knit .hat { transform-origin: 100px 74px; } .as-vig.knit .mit.l { transform-origin: 35px 72px; transition-delay: .4s; } .as-vig.knit .mit.r { transform-origin: 165px 72px; transition-delay: .5s; }
.as-vig.knit:not(.in) .hat { transform: translateY(-18px) rotate(-8deg); opacity: 0; }
.as-vig.knit:not(.in) .mit.l { transform: rotate(-26deg) translateX(-10px); opacity: 0; } .as-vig.knit:not(.in) .mit.r { transform: rotate(26deg) translateX(10px); opacity: 0; }
html.as-on .dress .dress-title { font: 400 25px/1.1 var(--as-disp); letter-spacing: .01em; text-transform: uppercase; color: var(--ink); }
html.as-on .dress .palette { gap: 14px; margin-top: 24px; }
html.as-on .dress .palette span { width: 38px; height: 38px; border-radius: 50%; transform: none; background: var(--c); background-image: none; box-shadow: 0 0 0 3px var(--paper), 0 0 0 4.2px color-mix(in srgb, var(--ink) 26%, transparent), 0 8px 10px -6px color-mix(in srgb, var(--as-shadow) 50%, transparent); }

/* notes (good to know, gifts, own pages): no box; a vignette above */
html.as-on .note-card { padding: 0; border: 0; outline: 0; background: none; box-shadow: none; }
html.as-on .note-card::before, html.as-on .note-card::after { display: none; }
html.as-on #content > .sec.note { padding-top: 40px; padding-bottom: 44px; }
.as-vig.sign .b1, .as-vig.sign .b2 { transform-box: view-box; transform-origin: 70px 40px; transition: transform .8s cubic-bezier(.3, 1.5, .5, 1) .3s; }
.note-card:not(.in) .as-vig.sign .b1 { transform: rotate(-16deg); } .note-card:not(.in) .as-vig.sign .b2 { transform: rotate(14deg); }
.as-vig.sign .b2 { transition-delay: .45s; }
.as-vig.gift .lid { transform-box: view-box; transform-origin: 60px 46px; transition: transform .7s cubic-bezier(.3, 1.6, .5, 1) .35s; }
.note-card:not(.in) .as-vig.gift .lid { transform: translateY(-14px) rotate(-7deg); }

/* the reply */
html.as-on .rsvp .seal { display: none; }
html.as-on #content > .sec.rsvp { padding-bottom: 34px; }
.as-vig.ride { position: relative; display: block; height: 96px; margin: -8px -28px 14px; overflow: hidden; }
.as-vig.ride .cb { position: absolute; left: -4%; right: -4%; top: 20px; height: 1.6px; background: var(--as-line); transform: rotate(3deg); }
.as-vig.ride .go { position: absolute; left: 50%; top: 16px; margin-left: -27px; display: block; transform: translate3d(-150px, -7.8px, 0); transition: transform 1.6s cubic-bezier(.16, .62, .24, 1) .2s; }
.as-vig.ride.in .go { transform: none; }
.as-vig.ride .go svg { display: block; transform-origin: 27px 5.4px; animation: asSway 6s ease-in-out 2s infinite; }
html.as-on .rsvp .btns { margin-top: 24px; }

/* the last page: the sign-off, a thank-you line, the valley at night */
html.as-on .sec.foot { padding: 52px 0 0; }
html.as-on .sec.foot .sig { font: 400 26px/1.15 var(--as-disp) !important; letter-spacing: .01em; text-transform: uppercase; color: var(--as-red); padding: 0 28px; text-wrap: balance; }
.as-thanks { font: 600 13px/1.6 var(--as-sans) !important; letter-spacing: .2em; text-transform: uppercase; color: var(--ink) !important; opacity: .8; margin-top: 14px !important; padding: 0 28px; text-wrap: balance; }
.as-end { position: relative; height: 230px; margin-top: 30px; overflow: hidden; --as-fall: 250px; }
.as-end svg { position: absolute; left: 0; bottom: 0; width: 100%; height: 100%; display: block; }
.as-end .smoke circle { opacity: .0; animation: asSmoke 5s ease-out infinite; transform-box: fill-box; transform-origin: 50% 50%; }
.as-end .smoke circle:nth-child(2) { animation-delay: 1.6s; } .as-end .smoke circle:nth-child(3) { animation-delay: 3.2s; }
@keyframes asSmoke { 0% { opacity: 0; transform: translate(0, 14px) scale(.5); } 25% { opacity: .75; } 100% { opacity: 0; transform: translate(10px, -22px) scale(1.5); } }
@media (prefers-reduced-motion: reduce) { .as-end .smoke circle { animation: none; opacity: .6; } .as-cdtop .go, .as-map .mg, .as-vig.ride .go svg { animation: none; } }

/* the reply card (common/rsvp.js builds it; here only its dress): a fair isle band on top, poster type, the gondola-red button */
html.as-on { --as-rh: var(--as-red); }
html.as-on[data-variant="midnight"] { --as-rh: var(--as-card); }
html.as-on form.rsvp-card { border-radius: 14px; background: var(--as-snow); color: var(--as-card); font-family: var(--as-sans); padding-top: 66px; }
html.as-on form.rsvp-card::before { content: ''; display: block; position: absolute; left: 0; right: 0; top: 0; height: 44px; background: var(--as-isle) 50% 0 / 32px 44px repeat-x; }
html.as-on form.rsvp-card .rsvp-x { top: 54px; right: 10px; }
html.as-on form.rsvp-card h3 { font: 400 28px/1.05 var(--as-disp); letter-spacing: .01em; text-transform: uppercase; color: var(--as-rh); margin-bottom: 10px; }
html.as-on form.rsvp-card .sub { font-size: 14.5px; opacity: .8; }
html.as-on form.rsvp-card .rule { background: color-mix(in srgb, var(--as-card) 30%, transparent); }
html.as-on form.rsvp-card label { font-weight: 700; letter-spacing: .2em; opacity: .85; }
html.as-on form.rsvp-card input, html.as-on form.rsvp-card textarea, html.as-on form.rsvp-card select { border-radius: 8px; border: 1.5px solid color-mix(in srgb, var(--as-card) 24%, transparent); font-family: var(--as-sans); color: var(--as-card); }
html.as-on form.rsvp-card input:focus, html.as-on form.rsvp-card textarea:focus, html.as-on form.rsvp-card select:focus { border-color: var(--as-card); box-shadow: 0 0 0 3px color-mix(in srgb, var(--as-card) 16%, transparent); }
html.as-on .rsvp-att label > span { border-radius: 8px; border: 1.5px solid color-mix(in srgb, var(--as-card) 24%, transparent); font-weight: 600; background: #fff; }
html.as-on .rsvp-att input:checked + span { background: var(--as-card); color: var(--as-cardink); border-color: var(--as-card); }
html.as-on .rsvp-send { border-radius: 9px; min-height: 56px; background: var(--as-red); color: var(--as-btnink); font: 400 17px/1.2 var(--as-disp); letter-spacing: .06em; text-transform: uppercase;
  box-shadow: 0 5px 0 color-mix(in srgb, var(--as-red) 64%, #000); margin-bottom: 6px; }
html.as-on .rsvp-done .rsvp-ic { color: var(--as-rh); }
