/* Vellum and dust (layer/particles/110), INV-15 Olive Grove stage 2 (A2409). Every "before" state is under html.pa110-on, so the page
   without the script is the finished page. Everything ends at no transform, so nothing rests on its own layer on an iPhone (AG-T347),
   and transitions leave nothing behind (AG-T332). No timed move travels more than 12 px (AG-T333). */
.pa110 { display: none; }
html.pa110-on { --pa110-vellum: rgb(250 245 234 / .62); --pa110-dust: 1; --pa110-lift: 1100ms; --pa110-haze: 1; --pa110-fluff: 1; --pa110-seed-art: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 60'%3E%3Cpath d='M30 24L9.7 18.6M30 24L9.6 13.4M30 24L13.9 10.5M30 24L16.0 5.8M30 24L21.1 5.0M30 24L25.0 1.5M30 24L30.0 3.0M30 24L35.0 1.5M30 24L38.9 5.0M30 24L44.0 5.8M30 24L46.1 10.5M30 24L50.4 13.4M30 24L50.3 18.6M30 24L30 49' stroke='%23B58A58' stroke-width='1.5' opacity='0.6' stroke-linecap='round' fill='none'/%3E%3Cpath d='M30 24L9.7 18.6M30 24L9.6 13.4M30 24L13.9 10.5M30 24L16.0 5.8M30 24L21.1 5.0M30 24L25.0 1.5M30 24L30.0 3.0M30 24L35.0 1.5M30 24L38.9 5.0M30 24L44.0 5.8M30 24L46.1 10.5M30 24L50.4 13.4M30 24L50.3 18.6M30 24L30 49' stroke='%23FFFDF8' stroke-width='0.8' opacity='1' stroke-linecap='round' fill='none'/%3E%3Cellipse cx='30' cy='52' rx='1.7' ry='4.2' fill='%23A97B47'/%3E%3C/svg%3E"); }

/* A photo: a leaf of the opener's vellum over it fades and lifts once. It sits under the torn strips (z-index 2), so the tears stay crisp. */
html.pa110-on .pa110-ph { position: relative; }
html.pa110-on .pa110-ph::after { content: ""; position: absolute; inset: 0; z-index: 1; background: var(--pa110-vellum); pointer-events: none;
  transition: opacity var(--pa110-lift) ease, translate var(--pa110-lift) var(--k-ease), visibility 0s linear var(--pa110-lift); }
html.pa110-on .pa110-ph.is-in::after { opacity: 0; translate: 0 -12px; visibility: hidden; }

/* Titles and short lines rise a little, once. */
html.pa110-on .pa110-up { transition: opacity .8s ease, transform .9s var(--k-ease); }
html.pa110-on .pa110-up:not(.is-in) { opacity: 0; transform: translateY(10px); }

/* A title's brush paints across once, and the script rises on it. */
html.pa110-on .k-og-ttl::before { transition: clip-path 1s cubic-bezier(.45, 0, .3, 1) .1s; clip-path: inset(-6%); }
html.pa110-on .k-og-ttl:not(.is-in)::before { clip-path: inset(-6% 106% -6% -6%); }

/* The pen: line icons draw in from the left, the tall dress sketches from the top. */
html.pa110-on .pa110-pen { clip-path: inset(-6%); transition: clip-path .95s cubic-bezier(.45, 0, .3, 1); }
html.pa110-on .pa110-pen:not(.is-in) { clip-path: inset(-6% 106% -6% -6%); }
html.pa110-on :is(.dc110-card__sk, .dc110-row__sk).pa110-pen { transition-duration: 1.4s; }
html.pa110-on :is(.dc110-card__sk, .dc110-row__sk).pa110-pen:not(.is-in) { clip-path: inset(-6% -6% 106% -6%); }

/* The dividers: the pen runs along the hills, then the sun warms up and the rays or the birds follow. */
html.pa110-on .k-og-div { transition: opacity .2s ease; }
html.pa110-on .k-og-div:not(.is-in) { opacity: 0; }
html.pa110-on .k-og-div path { stroke-dasharray: 1; transition: stroke-dashoffset 1.6s cubic-bezier(.45, 0, .3, 1); }
html.pa110-on .k-og-div:not(.is-in) path { stroke-dashoffset: 1; }
html.pa110-on .k-og-div__late path { transition-duration: .7s; transition-delay: .9s; }
html.pa110-on .k-og-div__sun { transition: stroke-dashoffset 1s cubic-bezier(.45, 0, .3, 1) .5s, fill-opacity .9s ease .8s; }
html.pa110-on .k-og-div:not(.is-in) .k-og-div__sun { fill-opacity: 0; }
/* The sun sinks a little behind its hill, once, after the pen has drawn it. Each divider sets it lower than the last. */
html.pa110-on .k-og-div__sink { transition: transform 2.4s cubic-bezier(.3, 0, .2, 1) .9s; }
html.pa110-on .k-og-div:not(.is-in) .k-og-div__sink { transform: translateY(-12px); }
/* At the closing the last sun shows for a moment, slips out of sight, and then one star comes out. */
html.pa110-on .cl110 .k-og-div__sink { transition-duration: 2.2s; transition-delay: 1.7s; }
html.pa110-on .k-og-div__star { transform-box: fill-box; transform-origin: center; transition: opacity 1.2s ease 3.5s, transform 1.4s cubic-bezier(.22, .8, .3, 1) 3.5s; }
html.pa110-on .k-og-div:not(.is-in) .k-og-div__star { opacity: 0; transform: scale(.4); }
/* A print lands, eases into its tilt, then its corners hold it. Each plays once. */
html.pa110-on .ga110-photo { transition: opacity .7s ease var(--ga110-d, 0s), transform 1.3s cubic-bezier(.22, .8, .3, 1) var(--ga110-d, 0s); }
html.pa110-on .ga110-photo:not(.is-in) { opacity: 0; transform: translateY(calc(var(--ga110-y, 0px) + 12px)) rotate(0deg); }
html.pa110-on .ga110-photo::after { transition: opacity .5s ease calc(var(--ga110-d, 0s) + .8s); }
html.pa110-on .ga110-photo:not(.is-in)::after { opacity: 0; }

/* The ring round the day draws itself. A round line end would show as a dot, so it stays hidden until the pen starts. */
html.pa110-on .dt110__ring { transition: opacity .2s ease .2s; }
html.pa110-on .dt110__c--main:not(.is-in) .dt110__ring { opacity: 0; }
html.pa110-on .dt110__ring path { stroke-dasharray: 1; transition: stroke-dashoffset 1.1s cubic-bezier(.45, 0, .3, 1) .2s; }
html.pa110-on .dt110__c--main:not(.is-in) .dt110__ring path { stroke-dashoffset: 1; }

/* The countdown starts as dashes; the real numbers arrive once, as on INV-02. */
html.pa110-on .cd110__timer:not(.is-in) .kjy-unit__n { position: relative; color: transparent; }
html.pa110-on .cd110__timer:not(.is-in) .kjy-unit__n::after { content: "\2013"; position: absolute; inset: 0; text-align: center; color: var(--k-ghost); }
html.pa110-on .cd110__timer.is-in .kjy-unit__n { animation: pa110-num .65s ease-out backwards; }
html.pa110-on .cd110__timer.is-in .kjy-unit:nth-child(2) .kjy-unit__n { animation-delay: .1s; }
html.pa110-on .cd110__timer.is-in .kjy-unit:nth-child(3) .kjy-unit__n { animation-delay: .2s; }
html.pa110-on .cd110__timer.is-in .kjy-unit:nth-child(4) .kjy-unit__n { animation-delay: .3s; }
@keyframes pa110-num { from { opacity: 0; transform: translateY(.14em); } }

/* The events: at each stop the thread grows down to it, the dot appears and the words rise. */
html.pa110-on .ev110-ev::before { transform-origin: top; transition: transform .9s var(--k-ease); }
html.pa110-on .ev110-ev:not(.is-in)::before { transform: scaleY(0); }
html.pa110-on .ev110-ev__dot { transition: transform .5s var(--k-ease) .15s, opacity .5s ease .15s; }
html.pa110-on .ev110-ev:not(.is-in) .ev110-ev__dot { transform: scale(0); opacity: 0; }
html.pa110-on .ev110-ev__b, html.pa110-on .ev110-gap { transition: opacity .8s ease .1s, transform .9s var(--k-ease) .1s; }
html.pa110-on .ev110-ev:not(.is-in) :is(.ev110-ev__b, .ev110-gap) { opacity: 0; transform: translateY(10px); }

/* Dust in the low sun, on the hero and closing photos only: soft flecks with no hard core, moved on the graphics chip. */
.pa110-dust { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; opacity: 0; transition: opacity 1.4s ease; }
.pa110-dust.is-on { opacity: var(--pa110-dust, 1); }
.pa110-dust i { position: absolute; display: block; border-radius: 50%; background: radial-gradient(closest-side, rgb(255 242 212), rgb(255 226 170 / .55) 45%, transparent);
  animation: pa110-a var(--t1) ease-in-out var(--d1) infinite alternate, pa110-b var(--t2) ease-in-out var(--d2) infinite alternate, pa110-tw var(--t3) ease-in-out var(--d3) infinite alternate; }
.pa110-dust.is-off i { animation-play-state: paused; }
@keyframes pa110-a { to { translate: var(--ax) var(--ay); } }
@keyframes pa110-b { to { transform: translate(var(--bx), var(--by)); } }
@keyframes pa110-tw { from { opacity: calc(var(--a) * .45); } to { opacity: var(--a); } }

/* The air (W2.6, A2442): warm haze and seed fluff over the whole page, for the whole visit. Each strength is one token above. A small
   soft circle is scaled up, so a big glow costs little memory. 100lvh, never inset: 0, so a phone's toolbar can't resize it (AG-T348). */
.pa110-air { position: fixed; top: 0; left: 0; right: 0; height: 100vh; height: 100lvh; z-index: 40; overflow: hidden; pointer-events: none; opacity: 0; transition: opacity 1.6s ease; }
.pa110-air.is-on { opacity: 1; }
.pa110-air.is-quiet { opacity: 0; transition-duration: .5s; }
.pa110-wisp { position: absolute; left: 0; top: 0; width: 200px; height: 200px; margin: -100px; border-radius: 50%; background: radial-gradient(closest-side, rgb(255 186 104 / .2), rgb(255 196 124 / .09) 50%, rgb(255 206 146 / 0)); transform: translate3d(var(--x), var(--y), 0) scale(var(--s)); animation: pa110-wisp var(--t1) ease-in-out var(--d1) infinite alternate, pa110-breathe var(--t2) ease-in-out var(--d2) infinite alternate; }
.pa110-seed { position: absolute; left: 0; top: 0; width: var(--w); height: var(--w); opacity: var(--pa110-fluff); animation: pa110-seed var(--t1) linear var(--d1) infinite; }
.pa110-seed b { display: block; width: 100%; height: 100%; background: var(--pa110-seed-art) center / contain no-repeat; animation: pa110-bob var(--t2) ease-in-out var(--d2) infinite alternate; }
@keyframes pa110-wisp { to { transform: translate3d(var(--x2), var(--y2), 0) scale(var(--s2)); } }
@keyframes pa110-breathe { from { opacity: calc(var(--a) * var(--pa110-haze) * .45); } to { opacity: calc(var(--a) * var(--pa110-haze)); } }
@keyframes pa110-seed { from { transform: translate3d(var(--sx), calc(var(--sy) * 1vh), 0); } to { transform: translate3d(var(--ex), calc(var(--ey) * 1vh), 0); } }
@keyframes pa110-bob { from { transform: translateY(-12px) rotate(var(--r1)); } to { transform: translateY(12px) rotate(var(--r2)); } }
