/* Gifts by August. The page is built like one of our video frames: a paper caption band on top, a lamp-lit
   evening scene below. Paper and ink are the caption bar of the videos; lamp and wood come from their scenes.
   One motion idea carries the page: our purple ribbon unspools from the mark at the top as you scroll and ties into
   the same bow at "get in touch". The gifts on the shelf have ribbons of their own colours. */
:root {
  --paper: #ece2d0;
  --ink: #2a2019;
  --dusk: #2d231e;
  --dusk-deep: #241c18;
  --cream: #f1e7d8;
  --muted: #c4b49e;
  --lamp: #f2c46b;
  --ribbon: #8f2b64;   /* the signature: the ribbon and the mark, in the videos and here */
  --sheen: #b5508a;
  --band: var(--paper);      /* the bar over a section and the panel at the top */
  --band-ink: var(--ink);
  --band-soft: #6b5a4a;
  --lamp-glow: rgba(242, 196, 107, 0.12);
  --serif: "PT Serif", Georgia, "Times New Roman", serif;
  --sans: "PT Sans Caption", "Segoe UI", Arial, sans-serif;
  --ease: cubic-bezier(.6, 0, .2, 1);
}

/* from six in the evening till six in the morning by the visitor's own clock: twilight instead of paper, stars, a warmer lamp */
[data-eve] {
  --dusk: #191b2e;
  --dusk-deep: #121426;
  --muted: #b9b6c9;
  --band: #2f2a4d;
  --band-ink: #f3e8d2;
  --band-soft: #b9aec6;
  --ribbon: #b23d83;
  --sheen: #dd86b9;
  --lamp-glow: rgba(242, 196, 107, 0.22);
}
[data-eve]:not(.bones) .scene::before {   /* the stars over a section */
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='620' height='360' fill='%23fff6dc'%3E%3Ccircle cx='38' cy='62' r='1.3'/%3E%3Ccircle cx='146' cy='20' r='.9'/%3E%3Ccircle cx='214' cy='148' r='1.1'/%3E%3Ccircle cx='330' cy='54' r='1.5'/%3E%3Ccircle cx='402' cy='232' r='.9'/%3E%3Ccircle cx='478' cy='104' r='1.2'/%3E%3Ccircle cx='566' cy='34' r='1'/%3E%3Ccircle cx='590' cy='290' r='1.2'/%3E%3Ccircle cx='96' cy='262' r='1'/%3E%3Ccircle cx='276' cy='318' r='1.3'/%3E%3C/svg%3E");
  -webkit-mask-image: linear-gradient(#000, rgba(0, 0, 0, 0.35) 55%, transparent);
  mask-image: linear-gradient(#000, rgba(0, 0, 0, 0.35) 55%, transparent);
  opacity: 0.6;
}

.starlight { opacity: 0; }
[data-eve] .starlight { opacity: 0.85; }
[data-eve][data-time="night"] .starlight { opacity: 1; transform: scale(1.35); }
[data-eve]:not(.bones) :is(.b-star, .mark) .m-gold { filter: drop-shadow(0 0 3px rgba(255, 224, 150, 0.95)) drop-shadow(0 0 9px rgba(255, 205, 110, 0.75)); }
.bones .starlight { display: none; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 66px; }
body {
  position: relative;
  margin: 0;
  background: var(--dusk);
  color: var(--cream);
  font: 18px/1.6 var(--serif);
  overflow-x: hidden;
}
/* film grain, like the videos */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .45 0 0 0 0 .4 0 0 0 1.4 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: inherit; }
img, video { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.defs { position: absolute; }
/* content sits above the ribbon; section backgrounds sit below it */
.tag, .caption, .col, .hero-grid, .tabs, .shelf-wrap, .more, .story-grid, .name-grid, .pair, .alsos, .works, .contact-grid { position: relative; z-index: 2; }

/* ---- the ribbon ---- */
.ribbon { position: absolute; top: 0; left: 0; z-index: 1; pointer-events: none; overflow: visible; }
.ribbon-base, .ribbon-sheen { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ribbon-base { stroke: var(--ribbon); stroke-width: 7; }
.ribbon-sheen { stroke: var(--sheen); stroke-width: 1.8; opacity: 0.8; }
@media (max-width: 859px) { .ribbon-base { stroke-width: 5; } .ribbon-sheen { stroke-width: 1.3; } }

/* ---- the mark ---- */
.mark { overflow: visible; }
.mark path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.mark .m-ink { stroke: currentColor; stroke-width: 6.1; }
.mark .m-rib { stroke: var(--ribbon); stroke-width: 4.4; }
.mark .m-loops { stroke-width: 4.2; }
.mark .m-knot { fill: var(--ribbon); }
.mark .m-gold { fill: var(--lamp); stroke: #a0681e; stroke-width: 0.6; }
.mark .m-comet { fill: url(#comet); }
.mark-head { width: 36px; height: 36px; flex: none; margin: -10px 9px -8px -4px; }
.mark-bow { width: 104px; height: 104px; color: var(--cream); }
/* drawn in: the head mark on load, the contact bow when the ribbon reaches it; the star lands last */
.js .mark .m-ink, .js .mark .m-rib { stroke-dasharray: 1 3; stroke-dashoffset: 1.1; }   /* the long gap: no round-cap dot before the draw */
.js .mark .m-knot { transform: scale(0); transform-origin: 32px 37.5px; }
.js .mark .m-star { transform: translate(34px, -30px) scale(1.4); opacity: 0; transform-origin: 32px 9.8px; }
.js .mark.drawn .m-ink, .js .mark.drawn .m-rib { stroke-dashoffset: 0; transition: stroke-dashoffset 0.8s var(--ease); }
.js .mark.drawn .m-bar { transition-delay: 0.25s; }
.js .mark.drawn .m-loops { transition-delay: 0.5s; }
.js .mark.drawn .m-tails { transition-delay: 0.8s; }
.js .mark.drawn .m-knot { transform: scale(1); transition: transform 0.35s 0.8s var(--ease); }
.js .mark.drawn .m-star { transform: none; opacity: 1; transition: transform 0.55s 1.1s cubic-bezier(.2, .7, .3, 1), opacity 0.2s 1.1s; }
.reveal-all .mark .m-ink, .reveal-all .mark .m-rib { stroke-dashoffset: 0; }   /* app.js never ran: show the marks complete */
.reveal-all .mark .m-knot, .reveal-all .mark .m-star { transform: none; opacity: 1; }

/* ---- caption band: the paper bar of the videos ---- */
.band {
  background: var(--band);
  color: var(--band-ink);
  padding: 14px 16px 16px;
}
/* the panel at the top stays with the visitor: the mark, the skeleton, the call. At the very top it lies on the first band */
.top { --toph: 58px; position: sticky; top: 0; z-index: 7; height: var(--toph); padding: 13px 16px 0; color: var(--band-ink); }
.top + main { margin-top: -58px; }
.band.first { padding-top: 70px; }
.top.stuck { background: var(--band); box-shadow: 0 8px 22px -12px rgba(0, 0, 0, 0.6); }
.tag::after { transition: opacity 0.2s; }
.top.stuck .tag::after { opacity: 0; }
.tag {
  max-width: 1000px;
  height: 44px;
  margin: 0 auto;
  padding-bottom: 8px;
  display: grid;
  grid-template-columns: auto 1fr auto auto auto;
  gap: 0 22px;
  align-items: center;
  font: 700 13px/1.2 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.tag::after {   /* the rule under the tag row; it draws across like in the videos */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform-origin: left;
}
.brand { display: flex; align-items: center; }
.tagline { text-align: right; font-weight: 400; color: var(--band-soft); }
.top-bones {   /* the skeleton of the page, at hand anywhere on it */
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin: -12px 0 -10px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  font: 700 14px/1 var(--sans);
  cursor: pointer;
}
.top-bones[aria-pressed="true"] { background: #9fd0ff; color: #0e1720; }
.top-bones.top-bones { color: inherit; text-decoration: none; font: 700 14px/1 var(--sans); }
.top-bones.top-bones[aria-pressed="true"] { color: #0e1720; }
html:not(.ready) .top-bones { visibility: hidden; }
@media (hover: hover) { .top-bones:hover:not([aria-pressed="true"]) { background: rgba(128, 128, 128, 0.16); } }
.tag .top-cta {
  background: var(--ink);
  color: var(--lamp);
  text-decoration: none;
  letter-spacing: 0.02em;
  text-transform: none;
  font-size: 14px;
  padding: 10px 14px;
  margin: -9px 0 -5px;
  border-radius: 6px;
}
.tag .lang {
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
  display: inline-block;
  padding: 15px 12px;   /* a 44 px tap target around 12 px text */
  margin: -15px -12px;
}
[data-eve] .tag .top-cta { background: var(--lamp); color: var(--ink); }
@media (max-width: 400px) { .tag { letter-spacing: 0.06em; } .tag .top-cta { padding: 10px 11px; } }
@media (max-width: 620px) {
  .tag { grid-template-columns: 1fr auto auto auto; gap: 0 10px; }
  .top { --toph: 66px; }
  .top.stuck { --toph: 54px; }
  .top + main { margin-top: -66px; }
  .band.first { padding-top: 78px; }
  .tag { height: 52px; }
  .top.stuck .tag { height: 44px; }
  .tagline { position: absolute; left: 37px; top: 25px; text-align: left; text-transform: none; font-size: 12.5px; letter-spacing: 0; white-space: nowrap; }
  .stuck .tagline { visibility: hidden; }
  .tag { align-items: start; }
  .brand { min-height: 22px; }
  .tag .top-cta, .tag .lang, .top-bones { align-self: start; }
  .top:not(.stuck) .brand { margin-top: -4px; }
}
@media (max-width: 370px) { .tagline { display: none; } .top { --toph: 54px; } .top + main { margin-top: -54px; } .band.first { padding-top: 66px; } .tag { height: 44px; } .mark-head { width: 30px; height: 30px; } .tag .lang { padding: 15px 8px; margin: -15px -8px; } }
@media (max-width: 430px) { .brand { letter-spacing: 0; font-size: 12px; } .mark-head { margin-right: 6px; } }
.caption {
  margin: 0;
  text-align: center;
  text-wrap: balance;
  font: italic 400 clamp(24px, 4.2vw, 38px)/1.2 var(--serif);
}
.caption span { display: inline-block; }
/* our star stands before the name of every section; it lands there when the band comes into view */
.b-star { display: inline-block; width: 46px; height: 46px; margin: -14px 12px -8px -34px; vertical-align: -0.12em; overflow: visible; }
.b-star .m-comet { fill: url(#comet); }
.b-star .m-gold { fill: var(--lamp); stroke: #a0681e; stroke-width: 0.6; }
.band .b-star { filter: drop-shadow(0 1px 1px rgba(90, 50, 10, 0.35)); }
.js .band .b-star { transform: translate(70px, -54px) scale(0.7); opacity: 0; }
.js .band.in .b-star, .reveal-all .band .b-star { transform: none; opacity: 1; transition: transform 0.8s 0.5s cubic-bezier(.2, .7, .3, 1), opacity 0.3s 0.5s; }
@media (max-width: 620px) { .b-star { width: 36px; height: 36px; margin: -10px 8px -6px -14px; } }
/* written in from left to right when the band comes into view */
.js .band .caption span { clip-path: inset(-0.2em 100% -0.3em 0); }
.js .band.in .caption span, .reveal-all .band .caption span {
  clip-path: inset(-0.2em -0.1em -0.3em 0);
  transition: clip-path 1.1s var(--ease);
}
/* a little drawing at the right end of a band: three gifts, each with a tag of its own */
.band.has-pic { position: relative; }
.band .pile { position: absolute; right: max(16px, calc(50% - 520px)); bottom: 5px; width: 118px; height: auto; pointer-events: none; }
@media (max-width: 859px) { .band .pile { display: none; } }
.js .tag::after { transform: scaleX(0); }
.js.ready .tag::after, .reveal-all .tag::after { transform: scaleX(1); transition: transform 0.9s var(--ease), opacity 0.2s; }

/* ---- scene: the evening below the band ---- */
.scene {
  position: relative;
  background:
    radial-gradient(ellipse 55% 300px at 50% 0, var(--lamp-glow), transparent 75%),
    var(--dusk);
  padding: 34px 16px 46px;
}
.col { max-width: 640px; margin: 0 auto; }
.lead { margin: 0 0 16px; font-size: 19px; }
.lead.strong { font-style: italic; color: var(--lamp); }
.quiet { color: var(--muted); }
.note { margin: 16px 0 0; color: var(--muted); font-size: 16px; }
.motes { position: absolute; top: 0; left: 0; width: 100%; height: 480px; z-index: 1; pointer-events: none; }

/* ---- videos ---- */
.vid {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 4px;
  background: var(--dusk-deep);
  box-shadow: 0 0 0 1px rgba(242, 196, 107, 0.14), 0 24px 60px -24px rgba(0, 0, 0, 0.7);
}
.player { position: relative; }
.still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
.still + .vid { position: relative; background: transparent; }
html:not(.ready) .play { display: none; }   /* until the script runs, the native controls work */
.play {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 4px;
}
.play span {   /* in the corner, so it never covers a face */
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(236, 226, 208, 0.92);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  transition: opacity 0.2s, transform 0.2s;
}
.play span::after {
  content: "";
  position: absolute;
  left: 24px;
  top: 19px;
  border-style: solid;
  border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent var(--ink);
}
.player.is-playing .play span { opacity: 0; transform: scale(0.85); }
.play:focus-visible { outline: 3px solid var(--lamp); outline-offset: 3px; }

/* captions that swap lie in one grid cell, so nothing below them jumps */
.caps { display: grid; }
.caps .cap { grid-area: 1 / 1; visibility: hidden; }
.caps .cap.on { visibility: visible; }
html:not(.js) .caps .cap:not(.on) { display: none; }

/* the sound switch stays out of the frame: the top corners of a video hold the names */
.snd {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: var(--lamp);
  font: 700 14px/1 var(--sans);
  cursor: pointer;
  white-space: nowrap;
}
.snd-ic { position: relative; width: 18px; height: 16px; flex: none; }
.snd-ic::before {   /* the speaker */
  content: "";
  position: absolute;
  inset: 0 8px 0 0;
  background: currentColor;
  clip-path: polygon(0 32%, 40% 32%, 100% 0, 100% 100%, 40% 68%, 0 68%);
}
.snd-ic::after {   /* off: a stroke; on: a wave */
  content: "";
  position: absolute;
  right: 0;
  top: 1px;
  width: 2px;
  height: 14px;
  background: currentColor;
  transform: rotate(38deg);
  border-radius: 2px;
}
.snd.none { visibility: hidden; }
.bars-row .snd { min-width: 158px; justify-content: flex-end; }
.snd.on .snd-ic::after { background: none; border-right: 2px solid currentColor; border-radius: 50%; width: 8px; transform: none; }
.snd:focus-visible { outline: 3px solid var(--lamp); outline-offset: 2px; border-radius: 4px; }
html:not(.js) .snd { display: none; }

/* ---- gift colours: the box, its lid, the ribbon on it ---- */
.box-red { --box: #a3342b; --lid: #b94338; --rb: #dfae4d; --rb-d: #a87724; --rb-s: #f6d992; --face-ink: #fff3df; }
.box-kraft { --box: #b78d5f; --lid: #c69d70; --rb: #c8382f; --rb-d: #8f241d; --rb-s: #e8786d; --face-ink: #2a2019; }
.box-cream { --box: #e6d9c2; --lid: #f1e7d6; --rb: #c8382f; --rb-d: #8f241d; --rb-s: #e8786d; --face-ink: #2a2019; }
.box-plum { --box: #40304f; --lid: #4f3d60; --rb: #dfae4d; --rb-d: #a87724; --rb-s: #f6d992; --face-ink: #f6ecdc; }

/* ---- every gift comes tied with a ribbon; the first tap unties it ---- */
.wrapping {
  --x: 79%;   /* where the ribbons cross: the empty bottom-right corner the videos keep for the mark */
  --y: 81%;
  --w: 4.6%;
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 4px;
  pointer-events: none;
}
.rb-v, .rb-h { position: absolute; box-shadow: 0 0 8px rgba(0, 0, 0, 0.35); }
.rb-v { background: linear-gradient(90deg, var(--rb-d), var(--rb) 28%, var(--rb-s) 50%, var(--rb) 72%, var(--rb-d)); }
.rb-h { background: linear-gradient(180deg, var(--rb-d), var(--rb) 28%, var(--rb-s) 50%, var(--rb) 72%, var(--rb-d)); }
.wrapping .rb-v { left: var(--x); width: var(--w); top: 31.5%; bottom: 0; }   /* under the paper caption, which stays readable */
.wrapping .rb-h { top: var(--y); height: var(--w); left: 0; right: 0; }
.rb-bow { position: absolute; overflow: visible; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.4)); }
.wrapping .rb-bow {
  width: 30%;
  height: 30%;
  left: calc(var(--x) + var(--w) / 2 - 15%);
  top: calc(var(--y) + var(--w) / 2 - 15%);
}
.rb-loop path, .rb-tail { fill: var(--rb); }
.rb-loop .rb-fold, .rb-knot { fill: var(--rb-d); }
.rb-loop, .rb-tail, .rb-knot { transform-box: view-box; transform-origin: 32px 32px; }
.rb-tag {
  position: absolute;
  right: calc(100% - var(--x) + 3%);
  top: calc(var(--y) + var(--w) + 1%);
  background: var(--paper);
  color: var(--ink);
  font: italic 400 17px/1.1 var(--serif);
  padding: 6px 11px 8px 34px;
  border-radius: 2px 4px 4px 2px;
  white-space: nowrap;
  transform: rotate(-5deg);
  transform-origin: right center;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
}
.rb-tag::after {   /* what is behind the ribbon: a video */
  content: "";
  position: absolute;
  left: 18px;
  top: 50%;
  margin-top: -6px;
  border-style: solid;
  border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent #8f2b64;
}
.rb-tag::before {   /* the hole of the tag */
  content: "";
  position: absolute;
  left: 6px;
  top: 50%;
  width: 4px;
  height: 4px;
  margin-top: -2px;
  border-radius: 50%;
  background: var(--dusk);
}
.player.gift:not(.unwrapped) .play span { opacity: 0; }   /* the bow is the call while it is tied */
html:not(.js) .wrapping { display: none; }   /* no script: the native controls work instead */
@media (hover: hover) and (pointer: fine) {
  .player.gift:not(.unwrapped):hover .rb-bow { animation: tug 0.7s var(--ease); }
}
.player.gift.tug:not(.unwrapped) .rb-bow { animation: tug 0.9s var(--ease); }
@keyframes tug {
  30% { transform: translate(2%, 3%) rotate(-6deg); }
  65% { transform: translate(-1%, -1%) rotate(3deg); }
}
/* untie: the loops spin open, the tails drop, the ribbons slide off the edges */
.unwrapped .rb-l { transform: rotate(-70deg) scale(0); transition: transform 0.45s var(--ease); }
.unwrapped .rb-r { transform: rotate(70deg) scale(0); transition: transform 0.45s var(--ease); }
.unwrapped .rb-knot { transform: scale(0); transition: transform 0.3s 0.2s var(--ease); }
.unwrapped .rb-tail { transform: translateY(60px) rotate(12deg); opacity: 0; transition: transform 0.6s 0.1s ease-in, opacity 0.4s 0.3s; }
.unwrapped .rb-tr { transform: translateY(60px) rotate(-12deg); }
.unwrapped .rb-v { transform: translateY(105%); transition: transform 0.65s 0.25s cubic-bezier(.5, 0, .9, .4); }
.unwrapped .rb-h { transform: translateX(105%); transition: transform 0.65s 0.32s cubic-bezier(.5, 0, .9, .4); }
.unwrapped .rb-tag { transform: translateY(160%) rotate(-24deg); opacity: 0; transition: transform 0.5s ease-in, opacity 0.35s 0.15s; }
.unwrapped .wrapping { visibility: hidden; transition: visibility 0s 1.1s; }

/* ---- hero: on a phone the stories, then the offer and the call; on a laptop stories left, offer and call right ---- */
.hero-grid { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr); }
.hero-lead, .hero-act { width: 100%; max-width: 640px; margin-left: auto; margin-right: auto; }
.hero-lead { margin-bottom: 22px; display: flex; flex-direction: column; }
.hero-lead .lead { margin-bottom: 14px; }
@media (max-width: 859px) {   /* phone: the stories first, then "drawn in code", then the words */
  .hero-video { order: -1; margin-bottom: 22px; }
  .hero-lead .nocode { order: -1; margin-bottom: 16px; }
}
/* "drawn in code, not by a neural network": the selling point, on the first screen */
.nocode {
  margin: 0;
  padding: 2px 0 2px 14px;
  border-left: 2px solid var(--lamp);
  color: var(--muted);
  font-size: 16px;
}
.nocode strong { display: block; color: var(--cream); font-size: 18px; }
/* the little tear-off calendar by the button: the words come only when you touch it */
.cal { width: 62px; height: 76px; padding: 0; margin: -14px 0 -10px; border: 0; background: transparent; cursor: pointer; transform: rotate(2deg); transform-origin: 50% 8%; }
.cal svg { display: block; width: 100%; height: 100%; overflow: visible; }
.cal:focus-visible { outline: 3px solid var(--lamp); outline-offset: 2px; border-radius: 6px; }
.cal-n { font: 700 24px var(--serif); fill: #2b1c16; }
.cal-s { font: 700 9.5px var(--sans); letter-spacing: 0.06em; fill: #fff3df; text-transform: uppercase; }
.cal-leaf { transform-box: view-box; transform-origin: 36px 26px; }
.torn { animation: torn 0.95s cubic-bezier(.4, 0, .8, .5) forwards; pointer-events: none; }
@keyframes torn {
  18% { transform: rotate(-7deg); }
  30% { transform: translate(4px, 3px) rotate(6deg); opacity: 1; }
  100% { transform: translate(34px, 74px) rotate(58deg); opacity: 0; }
}
@media (hover: hover) and (pointer: fine) { .cal:hover { animation: swing 0.9s var(--ease); } }
@keyframes swing {
  25% { transform: rotate(-6deg); }
  55% { transform: rotate(7deg); }
  80% { transform: rotate(0deg); }
}
.cal-note { flex: 0 0 100%; margin: 6px 0 0; padding: 9px 16px 10px; background: var(--paper); color: var(--ink); font: italic 400 18px/1.35 var(--serif); border-radius: 3px; scroll-margin-bottom: 14px; animation: written 0.7s var(--ease); }
.cal-note:empty { position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; overflow: hidden; clip-path: inset(50%); }
@keyframes written { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
.hero-video { width: 100%; max-width: 540px; margin: 0 auto 26px; }
.hero-video figcaption { margin-top: 12px; color: var(--muted); font-size: 16px; }
.hero-video figcaption strong { color: var(--cream); font-weight: 700; }
.bars-row { display: flex; align-items: center; gap: 14px; margin: -6px 0 4px; min-height: 44px; }
.bars { flex: 1; display: flex; gap: 6px; }
.bar {
  flex: 1;
  height: 44px;   /* tap area; the visible bar is the 3 px line inside */
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.bar::before, .bar span {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 20px;
  height: 3px;
  border-radius: 2px;
}
html:not(.js) .bars-row { display: none; }
.bar::before { background: rgba(241, 231, 216, 0.22); }
.bar span { background: var(--lamp); transform: scaleX(0); transform-origin: left; }
.bar:focus-visible { outline: 3px solid var(--lamp); outline-offset: 2px; }
@media (min-width: 860px) {
  .hero-grid {
    grid-template-columns: minmax(0, 11fr) minmax(0, 9fr);
    grid-template-rows: auto 1fr;
    column-gap: 48px;
    align-items: start;
  }
  .hero-video { grid-column: 1; grid-row: 1 / span 2; margin: 0; }
  .hero-lead { grid-column: 2; grid-row: 1; margin: 44px 0 18px; }
  .hero-act { grid-column: 2; grid-row: 2; margin: 0; }
}

/* ---- catalog: tabs, then a shelf of gifts ---- */
.tabs { max-width: 1000px; margin: 22px auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
html:not(.js) .tabs { display: none; }
.tab {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(242, 196, 107, 0.32);
  border-radius: 999px;
  background: transparent;
  color: var(--cream);
  font: 400 16px/1 var(--serif);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.tab[aria-pressed="true"] { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.tab:focus-visible, .who:focus-visible, .arrow:focus-visible, .order:focus-visible { outline: 3px solid var(--lamp); outline-offset: 3px; }
@media (hover: hover) { .tab:hover:not([aria-pressed="true"]) { border-color: var(--lamp); } }

.shelf-wrap { max-width: 1000px; margin: 14px auto 0; pointer-events: none; }
.arrow, .rail, .count, .slot .box, .slot .label { pointer-events: auto; }
.shelf {
  --stage: 398px;   /* the height above the board: a gift that plays grows inside it, over the tabs */
  margin-top: -64px !important;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  scroll-padding: 0 22px;
  scrollbar-width: none;
  margin: 0 -36px;
}
.shelf::-webkit-scrollbar { display: none; }
.shelf img { -webkit-user-drag: none; user-select: none; }
@media (hover: hover) and (pointer: fine) { .shelf { cursor: grab; } }
.shelf.dragging { cursor: grabbing; scroll-snap-type: none; }
.shelf.dragging * { cursor: grabbing !important; user-select: none; }
.shelf:focus-visible { outline: 2px solid var(--lamp); outline-offset: -2px; }
/* the board runs under all the gifts */
.shelf-in {
  display: flex;
  width: max-content;
  min-width: 100%;
  padding: 0 22px 6px;
  background:
    linear-gradient(180deg, #a1764f, #7a5538 18%, #5a3d28 72%, #3c2819) 0 var(--stage) / 100% 18px no-repeat,
    linear-gradient(180deg, rgba(0, 0, 0, 0.42), transparent) 0 calc(var(--stage) + 18px) / 100% 16px no-repeat;
}
.slot { flex: none; width: calc(min(76vw, 280px) + 28px); padding: 0 14px; scroll-snap-align: start; }
.slot.closed { width: calc(min(48vw, 196px) + 28px); }
@media (max-width: 1110px) {
  .shelf { margin: 0 -16px; }
  .arrow.prev { left: -8px !important; }
  .arrow.next { right: -8px !important; }
}
@media (max-width: 620px) {
  .shelf { margin: 0 -16px; scroll-padding: 0 2px; }
  .shelf-in { padding: 0 2px 6px; }
}
/* a finger scrolls the shelf only where the shelf itself takes the touch (Safari on an iPhone does not scroll a strip that lets
   touches through): on touch screens it does not lie over the tabs, and a round arrow says there is more to the right */
@media (hover: none) {
  .shelf-wrap { pointer-events: auto; }
  .shelf { --stage: 334px; margin-top: 0 !important; }
  .arrow.next { display: block; top: 174px; }
}
@media (hover: none) and (max-width: 620px) {
  .shelf { --stage: calc(min(76vw, 280px) + 46px); }
  .arrow.next { top: calc(26px + min(38vw, 140px)); width: 40px; height: 40px; }
}
.stage { height: var(--stage); display: flex; align-items: flex-end; }
.box { position: relative; width: 100%; transform-origin: 50% 100%; transition: transform 0.32s var(--ease); }
.box::after {   /* the shadow on the board */
  content: "";
  position: absolute;
  left: 1%;
  right: -5%;
  bottom: -10px;
  height: 18px;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.36) 62%, transparent);
}
.lid {
  display: block;
  position: relative;
  z-index: 1;
  height: 28px;
  margin: 0 -5px;
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 40%, rgba(0, 0, 0, 0.14)), var(--lid);
  box-shadow: 0 4px 5px -2px rgba(0, 0, 0, 0.45);
}
.side { position: absolute; top: 28px; right: 0; bottom: 0; width: 9px; background: rgba(0, 0, 0, 0.26); pointer-events: none; }
.slot .vid, .slot .still, .slot .wrapping, .slot .play { border-radius: 0; }
.slot .vid { box-shadow: none; }
.slot .play span { width: 48px; height: 48px; }
.slot .play span::after { left: 19px; top: 14px; border-width: 10px 0 10px 15px; }
.slot .rb-tag { font-size: 15px; padding: 4px 9px 6px 30px; }
.slot .rb-tag::after { left: 16px; margin-top: -5px; border-width: 5px 0 5px 8px; }
@media (hover: hover) and (pointer: fine) {
  .has-video:hover { z-index: 3; position: relative; }
  .has-video:hover .box { transform: scale(1.07); }
  .closed .box:hover { transform: scale(1.05); }
}
/* the gift that plays comes closer still, over its neighbours */
.has-video:has(.is-playing) { z-index: 4; position: relative; }
.has-video .box:has(.is-playing) { transform: scale(1.26); }
@media (max-width: 620px) { .has-video .box:has(.is-playing) { transform: scale(1.1); } }
/* once more, and it comes close: the middle of the screen, a veil behind it */
.zoom-tag {
  position: absolute;
  left: 10px;
  bottom: 11px;
  z-index: 2;
  display: none;
  align-items: center;
  gap: 7px;
  padding: 5px 10px 6px 8px;
  background: var(--paper);
  color: var(--ink);
  font: italic 400 15px/1.1 var(--serif);
  border-radius: 2px;
  box-shadow: 0 3px 9px rgba(0, 0, 0, 0.4);
  pointer-events: none;
  opacity: 0;
}
.zoom-tag svg { width: 15px; height: 15px; }
.slot .is-playing .zoom-tag { display: flex; animation: zoom-tag 6s 0.9s both; }
.slot .is-playing .play { cursor: zoom-in; }
.slot .is-playing:hover .zoom-tag { opacity: 1; animation: none; }
.slot.big .zoom-tag { display: none; }
@keyframes zoom-tag { 0% { opacity: 0; } 6%, 86% { opacity: 1; } 100% { opacity: 0; } }
.shelf-wrap.has-big { z-index: 40; }
.veil { position: fixed; inset: 0; z-index: 30; background: rgba(13, 10, 17, 0.86); opacity: 0; transition: opacity 0.3s; pointer-events: auto; cursor: zoom-out; }
.veil.on { opacity: 1; }
.slot.big {
  position: relative;
  z-index: 31;
  --bw: max(300px, min(max(44vw, 620px), 100vw - 130px, 100vh - 190px, 800px));
  --bt: calc((100vh - var(--bw) - 110px) / 2);
}
.has-video.big .box:has(.player) { position: fixed; z-index: 2; left: calc(50vw - var(--bw) / 2); top: var(--bt); width: var(--bw); transform: none; transition: none; }
.has-video.big .box::after { display: none; }
.slot:first-child .box { transform-origin: 10% 100%; }
.slot.big .play { cursor: pointer; }
.slot.big .label { position: fixed; z-index: 1; left: calc(50vw - var(--bw) / 2); top: calc(var(--bt) + 28px + var(--bw)); width: var(--bw); padding: 10px 2px 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 22px; }
.slot.big .label h3 { margin: 0; }
.slot.big .label p:not(.meta) { display: none; }
.close { position: absolute; left: calc(100% + 12px); top: 0; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--paper); cursor: pointer; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45); }
.close::before, .close::after { content: ""; position: absolute; left: 13px; right: 13px; top: 22px; height: 3px; border-radius: 2px; background: var(--ink); transform: rotate(45deg); }
.close::after { transform: rotate(-45deg); }
.close:focus-visible { outline: 3px solid var(--lamp); outline-offset: 3px; }
/* on a phone it comes close at the width of the screen, the panel at the top stays in sight, the cross above the box.
   Two quick taps do not zoom the page */
.slot .play { touch-action: manipulation; }
@media (max-width: 699px), (max-height: 479px) {
  .veil { top: 54px; }
  .slot.big {
    --bw: min(100vw - 24px, max(100vh - 220px, 260px));
    --bt: max(118px, calc(110px + (100vh - 202px - var(--bw)) / 2));
  }
  .close { left: auto; right: -5px; top: -58px; }
}
/* the first place: a gift that is not drawn yet */
.slot.own { width: calc(min(48vw, 196px) + 28px); }
.own .box { display: block; color: #3a2f27; text-decoration: none; cursor: pointer; }
.own .box::after { display: none; }
.own-pic { display: block; width: 100%; height: auto; overflow: visible; }
.own-pic path { fill: none; stroke: #4b4037; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.own-pic .pf { fill: #efe5d3; }
.own-pic .pf:first-child, .own-pic .pf:nth-child(2) { stroke: none; }
.own-pic .dash path { stroke-dasharray: 2 8; stroke-width: 2.2; }
.own-pen { transition: transform 0.4s var(--ease); }
.own-pen path { stroke-width: 2; }
.own-pen path[fill="#e9cda2"] { fill: #e9cda2; }
.own-pen path[fill="#f2c46b"] { fill: #f2c46b; }
.own-pen path[fill="#b5508a"] { fill: #b5508a; }
.own-pen path[fill="#4b4037"] { fill: #4b4037; }
.own h3 { position: absolute; left: 7%; top: 38%; width: 60%; margin: 0; font: italic 400 24px/1.12 var(--serif); }
.own .made { bottom: 12px; left: 8%; max-width: 62%; background: var(--lamp); }
.own .box:focus-visible { outline: 3px solid var(--lamp); outline-offset: 4px; border-radius: 4px; }
@media (hover: hover) and (pointer: fine) {
  .own .box:hover { transform: scale(1.05); }
  .own .box:hover .own-pen { animation: own-pen 1.1s var(--ease) infinite alternate; }
}
@keyframes own-pen { from { transform: translate(168px, 257px) rotate(20deg); } to { transform: translate(194px, 257px) rotate(12deg); } }
/* a closed gift: the lid with its bow lifts, and something from the story looks out */
.closed .box { cursor: pointer; }
.closed .top { display: block; position: relative; z-index: 2; transform-origin: 100% 100%; transition: transform 0.34s cubic-bezier(.3, 1.4, .5, 1); }
.closed .in { position: absolute; z-index: 0; top: 21px; left: 5px; right: 5px; height: 12px; background: #1c120c; border-radius: 3px 3px 0 0; }
.closed .peek { position: absolute; z-index: 0; left: 15%; top: -24px; width: 66px; height: 62px; transform: translateY(66px); transition: transform 0.36s 0.04s cubic-bezier(.3, 1.5, .5, 1); }
.closed .open .top { transform: translateY(-24px) rotate(9deg); }
.closed .open .peek { transform: none; transition-delay: 0.12s; }
@media (hover: hover) and (pointer: fine) {
  .closed .box:hover .top { transform: translateY(-24px) rotate(9deg); }
  .closed .box:hover .peek { transform: none; transition-delay: 0.12s; }
}
.closed .face {
  position: relative;
  z-index: 1;
  height: 176px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.16), transparent 22%), var(--box);
  overflow: hidden;
}
.closed .rb-v { top: 0; bottom: 0; left: 74%; width: 12px; }
.closed .rb-h { left: 0; right: 0; top: 72%; height: 12px; }
.closed .lid::after {   /* the ribbon goes on over the lid */
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(5px + (100% - 10px) * 0.74);
  width: 12px;
  background: linear-gradient(90deg, var(--rb-d), var(--rb) 28%, var(--rb-s) 50%, var(--rb) 72%, var(--rb-d));
}
.closed .rb-bow { filter: none; width: 74px; height: 74px; left: calc(74% + 6px - 37px); top: -39px; z-index: 2; transform-origin: 50% 60%; }
.closed h3 {
  position: absolute;
  left: 12px;
  top: 14px;
  width: calc(74% - 20px);
  margin: 0;
  color: var(--face-ink);
  font: 700 17px/1.22 var(--serif);
  hyphens: manual;
}
.made {
  position: absolute;
  left: 9px;
  bottom: 9px;
  max-width: 68%;
  padding: 5px 8px 5px 14px;
  background: var(--paper);
  color: var(--ink);
  font: 700 12px/1.1 var(--sans);
  border-radius: 2px 3px 3px 2px;
  transform: rotate(-3deg);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.35);
}
.made::before { content: ""; position: absolute; left: 5px; top: 50%; width: 4px; height: 4px; margin-top: -2px; border-radius: 50%; background: var(--dusk); }
@media (max-width: 379px) { .closed h3 { font-size: 16px; } }
/* from 1 December to 14 January a garland hangs under the shelf */
[data-ny] .shelf-in {
  background:
    linear-gradient(180deg, #a1764f, #7a5538 18%, #5a3d28 72%, #3c2819) 0 var(--stage) / 100% 18px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='34'%3E%3Cstyle%3E@keyframes t{0%25,100%25{opacity:1}50%25{opacity:.35}}.a{animation:t 2.6s infinite}.b{animation:t 2.6s -1.3s infinite}@media(prefers-reduced-motion:reduce){.a,.b{animation:none}}%3C/style%3E%3Cpath d='M0 0 Q45 26 90 0 Q135 26 180 0' fill='none' stroke='%23201510' stroke-width='2'/%3E%3Cg stroke='%23201510' stroke-width='1.2'%3E%3Cellipse class='a' cx='22' cy='16' rx='4.5' ry='6.5' fill='%23f2c46b'/%3E%3Cellipse class='b' cx='46' cy='20' rx='4.5' ry='6.5' fill='%23e8786d'/%3E%3Cellipse class='a' cx='70' cy='16' rx='4.5' ry='6.5' fill='%238fc2a8'/%3E%3Cellipse class='b' cx='112' cy='16' rx='4.5' ry='6.5' fill='%23f2c46b'/%3E%3Cellipse class='a' cx='136' cy='20' rx='4.5' ry='6.5' fill='%23b5508a'/%3E%3Cellipse class='b' cx='160' cy='16' rx='4.5' ry='6.5' fill='%236aa7c4'/%3E%3C/g%3E%3C/svg%3E") 0 calc(var(--stage) + 18px) / 180px 34px repeat-x,
    linear-gradient(180deg, rgba(0, 0, 0, 0.42), transparent) 0 calc(var(--stage) + 18px) / 100% 16px no-repeat;
}
[data-ny] .label { padding-top: 46px; }
.label { padding: 34px 2px 0; }
.label h3 { margin: 0 0 4px; font: 700 19px/1.3 var(--serif); }
.label p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.5; }
.label .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0 14px; color: var(--cream); min-height: 44px; }
.label .meta .order { margin-right: auto; }
.order { display: inline-flex; align-items: center; min-height: 44px; color: var(--lamp); font-size: 15.5px; text-underline-offset: 4px; }

.arrow {
  position: absolute;
  top: 88px;
  z-index: 4;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  cursor: pointer;
}
.arrow::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 11px;
  height: 11px;
  border: solid var(--ink);
  border-width: 0 3px 3px 0;
}
.arrow.prev { left: -24px; }
.arrow.prev::after { transform: translate(-30%, -50%) rotate(135deg); }
.arrow.next { right: -24px; }
.arrow.next::after { transform: translate(-70%, -50%) rotate(-45deg); }
.arrow:disabled { opacity: 0; pointer-events: none; }
@media (hover: none) { .arrow { display: none; } }
/* the same arrow at the right end of the other strips that scroll sideways (app.js adds it where a strip runs over) */
.has-strip { position: relative; }
.strip-next, .strip-next.strip-next { display: block; right: 4px; width: 40px; height: 40px; }
.strip-next::after { transform: translate(-70%, -50%) rotate(-45deg); }
.strip-next[hidden] { display: none; }
html:not(.js) .arrow, html:not(.js) .rail { display: none; }
/* how far along the shelf */
.rail { height: 3px; margin: 22px 0 0; border-radius: 2px; background: rgba(241, 231, 216, 0.18); overflow: hidden; }
.rail span { display: block; height: 100%; width: 30%; border-radius: 2px; background: var(--lamp); }
.count { margin: 8px 0 0; text-align: center; color: var(--muted); font-size: 15.5px; }

/* "also made to order": paper tags on our ribbon */
.more { max-width: 1000px; margin: 30px auto 0; }
.more h3 { margin: 0 0 14px; font: 700 19px/1.3 var(--serif); text-align: center; }
html:not(.js) .ideas[hidden] { display: grid !important; margin-top: 12px; }
.ideas { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); row-gap: 18px; }
.ideas li {
  position: relative;
  padding: 24px 9px 0;
  background: linear-gradient(180deg, var(--sheen), var(--ribbon) 40%, #641a45) 0 0 / 100% 7px no-repeat;   /* the ribbon runs on from tag to tag */
}
.ideas li:first-child, .ideas li:nth-child(4n+1) { border-radius: 4px 0 0 4px; }
.ideas a {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  min-height: 78px;
  padding: 12px 13px 12px 12px;
  background: var(--paper);
  color: var(--ink);
  font: 400 15.5px/1.3 var(--serif);
  text-decoration: none;
  border-radius: 10px 10px 4px 4px;
  box-shadow: 0 10px 18px -10px rgba(0, 0, 0, 0.65);
  transform-origin: 50% -20px;
  transition: transform 0.35s var(--ease);
}
.ideas li:nth-child(odd) a { transform: rotate(-1.3deg); }
.ideas li:nth-child(even) a { transform: rotate(1.1deg); }
.ideas li:nth-child(3n) a { margin-top: 6px; }
.ideas a::before {   /* the string from the ribbon to the hole */
  content: "";
  position: absolute;
  left: 50%;
  top: -21px;
  width: 2px;
  height: 27px;
  margin-left: -1px;
  background: #d9b45f;
}
.ideas li:nth-child(3n) a::before { top: -27px; height: 33px; }
.ideas a::after {   /* the hole */
  content: "";
  position: absolute;
  left: 50%;
  top: 4px;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  border-radius: 50%;
  background: var(--dusk);
  box-shadow: 0 0 0 2px #d9b45f;
}
.ideas .peek { display: block; width: 46px; height: 44px; overflow: visible; }
.ideas a:focus-visible { outline: 3px solid var(--lamp); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .ideas a:hover { animation: sway 0.9s var(--ease); } }
@keyframes sway {
  25% { transform: rotate(-4deg); }
  60% { transform: rotate(3deg); }
}
@media (max-width: 859px) {   /* one row that slides under the finger */
  .more { margin: 26px -16px 0; }
  .ideas { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(62vw, 230px); overflow-x: auto; scroll-snap-type: x proximity; scroll-padding: 0 16px; scrollbar-width: none; padding: 0 16px 16px; }
  .ideas::-webkit-scrollbar { display: none; }
  .ideas li { scroll-snap-align: start; }
}
.plain { margin: 8px 0 0; padding-left: 1.1em; }
.plain li { margin: 2px 0; }
.plain li::marker { color: var(--lamp); }

/* ---- three gifts, one player ---- */
.pair { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; }
.pair-text { max-width: 640px; width: 100%; margin: 0 auto; }
.pair-video { margin: 0 auto; width: 100%; max-width: 460px; }
.pair-video figcaption { margin-top: 10px; color: var(--muted); font-size: 16px; }
.pair-video figcaption strong { color: var(--cream); }
.whos { display: flex; gap: 8px; margin-bottom: 12px; }
.same { margin: 18px 0 14px; }
.same-set { display: none; grid-template-columns: 1fr 1fr; gap: 12px; }
.same-set.on { display: grid; }
.js .same-set.on path { stroke-dasharray: 1 2; animation: same-ring 0.7s 0.1s cubic-bezier(.5, .1, .4, 1) both; }
.js .same-one:not(.ready) path { visibility: hidden; animation: none; }   /* a ring waits for its frame (app.js marks it loaded) */
.same-one { background: rgba(0, 0, 0, 0.18); border-radius: 3px; }
.js .same-set.on .same-one + .same-one path { animation-delay: 0.35s; }
@keyframes same-ring { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.same-one { position: relative; display: block; }
.same-one img { width: 100%; height: auto; border-radius: 3px; }
.same-one svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.same-one path { fill: none; stroke: #c0307f; stroke-width: 1.15; stroke-linecap: round; }
.same figcaption { margin-top: 9px; color: var(--muted); font-size: 16px; line-height: 1.45; }
html:not(.js) .whos { display: none; }
.who {
  flex: 1;
  min-height: 46px;
  border: 0;
  border-bottom: 2px solid rgba(241, 231, 216, 0.22);
  background: transparent;
  color: var(--muted);
  font: italic 400 21px/1 var(--serif);
  cursor: pointer;
}
.who[aria-pressed="true"] { color: var(--cream); border-bottom-color: var(--lamp); }
.one { display: block; position: relative; }
.js .turns .one + .one { position: absolute; inset: 0; }
.js .turns .one { opacity: 0; }
.js .turns .one.on { opacity: 1; z-index: 1; transition: opacity 0.25s; }
.turns .wrapping, .turns .play { z-index: 2; }
html:not(.js) .turns .one + .one { margin-top: 18px; }
html:not(.js) .pair-video .cap { display: block; visibility: visible; grid-area: auto; }
@media (max-width: 859px) {
  .pair-text { display: contents; }
  .pair-text > * { width: 100%; max-width: 640px; margin-left: auto; margin-right: auto; }
  .pair-video { order: 1; }
  .pair-text .same { order: 2; max-width: 460px; margin-top: 0; margin-bottom: 0; }
  .pair-text .note { order: 3; margin-top: -8px; }
}
@media (min-width: 860px) {
  .pair { grid-template-columns: minmax(0, 9fr) minmax(0, 10fr); gap: 56px; align-items: center; }
}

/* ---- what else I do ---- */
.alsos { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 34px 48px; align-items: start; }
@media (min-width: 860px) { .alsos { grid-template-columns: 1fr 1fr; } .also.wide { grid-column: 1 / -1; } .also.wide .also-body { max-width: 640px; } }
.also { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 0 22px; align-items: start; border-top: 1px solid rgba(242, 196, 107, 0.3); padding-top: 20px; }
.also-pic { width: 88px; height: 88px; }
.also-pic svg { display: block; width: 100%; height: 100%; overflow: visible; }
.also-pic .mark { color: var(--cream); }
@media (max-width: 520px) { .also { grid-template-columns: 64px minmax(0, 1fr); gap: 0 16px; } .also-pic { width: 64px; height: 64px; } }
/* the pictures come alive once, one after another, when they come into view (app.js adds .in) */
.al-heart, .al-bar, .al-star { transform-box: fill-box; }
.al-heart { transform-origin: 50% 60%; transition: transform 0.5s 0.15s cubic-bezier(.3, 1.7, .5, 1); }
.al-bar { transform-origin: 50% 100%; transition: transform 0.7s cubic-bezier(.2, .8, .3, 1); }
.al-b2 { transition-delay: 0.15s; }
.al-b3 { transition-delay: 0.3s; }
.al-line, .al-ring { stroke-dasharray: 1 1; transition: stroke-dashoffset 1s 0.6s ease-out; }
.al-ring { transition: stroke-dashoffset 2.6s 0.3s linear; }
.al-arrow { transition: opacity 0.2s 1.5s; }
.al-star { transform-origin: 50% 50%; transition: transform 0.8s 0.3s cubic-bezier(.3, 1.4, .5, 1); }
.js:not(.reveal-all) .also:not(.in) .al-heart { transform: scale(0); }
.js:not(.reveal-all) .also:not(.in) .al-bar { transform: scaleY(0); }
.js:not(.reveal-all) .also:not(.in) .al-line, .js:not(.reveal-all) .also:not(.in) .al-ring { stroke-dashoffset: 1; }
.js:not(.reveal-all) .also:not(.in) .al-arrow { opacity: 0; }
.js:not(.reveal-all) .also:not(.in) .al-star { transform: rotate(-72deg) scale(0.4); }
@media (prefers-reduced-motion: reduce) { .al-heart, .al-bar, .al-line, .al-ring, .al-arrow, .al-star { transition: none; } }
.also h3 { margin: 0 0 6px; font: 700 20px/1.3 var(--serif); }
.also p { margin: 0; font-size: 17px; }
.also summary { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; margin: 0 -8px; color: var(--lamp); cursor: pointer; text-decoration: underline; text-underline-offset: 4px; font-size: 16px; list-style: none; }
.also summary::-webkit-details-marker { display: none; }
.also summary:focus-visible { outline: 3px solid var(--lamp); outline-offset: 2px; }
.also details ul { color: var(--muted); font-size: 16px; margin-top: 0; }

/* the hamster looks over the edge of the section */
.also-scene { padding-bottom: 92px; }
.ham-spot {
  position: absolute;
  right: max(12px, calc(50% - 690px));
  bottom: -14px;
  z-index: 3;
  width: 176px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.ham { display: block; width: 100%; height: auto; overflow: hidden; }
.ham-b { transform: translateY(300px); transition: transform 0.28s cubic-bezier(.5, 0, .9, .5); }
.up .ham-b { transform: none; transition: transform 0.62s cubic-bezier(.3, 1.35, .5, 1); }
.ham .g-paw { opacity: 0; transform: translateY(12px); transition: opacity 0.1s, transform 0.2s; }
.up .ham .g-paw { opacity: 1; transform: none; transition: opacity 0.1s 0.34s, transform 0.24s 0.34s; }
html:not(.js) .ham-b { transform: none; }
html:not(.js) .ham .g-paw { opacity: 1; }
.up .ham .h-eyes { animation: ham-eyes 5.3s 1.4s infinite; }
.up .ham .h-shut { animation: ham-shut 5.3s 1.4s infinite; }
@keyframes ham-eyes { 0%, 95.9% { opacity: 1; } 96%, 98.4% { opacity: 0; } 98.5% { opacity: 1; } }
@keyframes ham-shut { 0%, 95.9% { opacity: 0; } 96%, 98.4% { opacity: 1; } 98.5% { opacity: 0; } }
.ham .h-head { transform-box: fill-box; transform-origin: 50% 90%; transition: transform 0.4s var(--ease); }
@media (hover: hover) and (pointer: fine) { .ham-spot:hover .h-head { transform: rotate(-6deg); } }
.ham-spot:focus-visible { outline: 3px solid var(--lamp); outline-offset: 2px; border-radius: 8px; }
@media (max-width: 1390px) { .ham-spot { width: 150px; } .also-scene { padding-bottom: 130px; } }
@media (max-width: 859px) { .ham-spot { width: 132px; } .scene.also-scene { padding-bottom: 122px; } }

/* the cat sleeps in his basket on the edge of the catalog */
.catalog { padding-bottom: 92px; }
.cat-spot { position: absolute; right: max(12px, calc(50% - 710px)); bottom: -13px; z-index: 3; width: 212px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.cat { display: block; width: 100%; height: auto; overflow: visible; }
.c-all { transition: transform 0.5s cubic-bezier(.3, 1.3, .5, 1); }
.hid .c-all { transform: translateY(212px); transition: transform 0.3s cubic-bezier(.5, 0, .9, .5); }
.c-h { transition: transform 0.45s cubic-bezier(.3, 1.3, .5, 1); transform-origin: -60px -50px; }
.awake .c-h { transform: translate(3px, -17px) rotate(5deg); }
.c-el, .c-er { transition: transform 0.25s var(--ease); }
.c-el { transform-origin: -102px -104px; }
.c-er { transform-origin: -52px -108px; }
.awake .c-el { transform: rotate(9deg); }
.awake .c-er { transform: rotate(-7deg); }
.c-open { transition: opacity 0.08s 0.14s; }
.c-shut { transition: opacity 0.08s 0.14s; }
.awake .c-open { opacity: 1; }
.awake .c-shut { opacity: 0; }
.c-tail { transition: transform 0.3s 0.05s var(--ease); }
.hid .c-tail { transform: translateY(-176px); }
.c-tip { transform-origin: 206px -68px; }
.c-z { opacity: 0; font: italic 700 46px/1 var(--serif); transform-origin: -40px -270px; }
.on .c-all > g { animation: c-breathe 3.4s ease-in-out infinite; transform-origin: 14px -100px; }
.on .c-tip { animation: c-flick 7.3s 2s infinite; }
.on:not(.awake) .c-z { animation: c-zzz 4.2s infinite; }
.on .c-z1.c-z1 { animation-delay: 1.4s; }
.on .c-z2.c-z2 { animation-delay: 2.8s; }
@keyframes c-breathe { 50% { transform: translate(14px, -100px) scale(1.14, 1.18); } }
@keyframes c-flick { 0%, 88% { transform: none; } 91% { transform: rotate(26deg); } 94% { transform: rotate(-8deg); } 97% { transform: rotate(6deg); } }
@keyframes c-zzz { 0% { opacity: 0; transform: translate(0, 0) scale(.45); } 25% { opacity: .95; } 100% { opacity: 0; transform: translate(96px, -130px) rotate(14deg) scale(1.1); } }
.cat-spot:focus-visible { outline: 3px solid var(--lamp); outline-offset: 2px; border-radius: 8px; }
@media (max-width: 1430px) { .cat-spot { width: 176px; } .catalog { padding-bottom: 148px; } }
@media (max-width: 859px) { .cat-spot { width: 156px; } .scene.catalog { padding-bottom: 134px; } }

/* ---- how it works ---- */
.works {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px 56px;
}
.works h3 { margin: 0 0 14px; font: 700 20px/1.3 var(--serif); }
.faces { margin: 0; }
.faces div { padding: 0 0 12px; }
.faces dt { font-weight: 700; color: var(--lamp); }
.faces dd { margin: 0; font-size: 18px; }
.terms-box { grid-column: 1 / -1; padding-top: 10px; }
.terms-box h3 { text-align: center; }
.sheet {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 12fr) minmax(0, 10fr) minmax(0, 8fr);
  color: var(--ink);
  background: var(--paper);
  border-radius: 3px;
  --bite: radial-gradient(circle 7px at 50% 0, transparent 98%, #000) 50% 0 / 22px 51% repeat-x, radial-gradient(circle 7px at 50% 100%, transparent 98%, #000) 50% 100% / 22px 51% repeat-x;
  -webkit-mask: var(--bite);   /* the edge of a torn-off ticket */
  mask: var(--bite);
}
.sheet section { padding: 30px 26px 28px; }
.sheet section + section { border-left: 2px dashed rgba(42, 32, 25, 0.28); }
.sheet h4 { margin: 0 0 14px; font: italic 400 24px/1.2 var(--serif); }
.sheet ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.sh-time li { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 0 14px; align-items: center; }
.sh-time b { font: 700 18px/1.2 var(--serif); }
.sh-time li > span:last-child { grid-column: 2; color: #5b4636; font-size: 15.5px; line-height: 1.35; }
.sq { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; grid-row: 1 / span 2; }
.sq i { height: 22px; border: 1.5px solid #b9a27f; border-top: 5px solid #b9a27f; border-radius: 3px; }
.sq i.on { background: #f7c766; border-color: #8f2b64; }
.sh-note { margin: 14px 0 0; color: #5b4636; font-size: 14.5px; line-height: 1.4; }
.sh-what dl { margin: 0; display: grid; gap: 12px; }
.sh-what dt { font-weight: 700; }
.sh-what dd { margin: 1px 0 0; color: #43342a; font-size: 16px; line-height: 1.4; }
.sh-price { background: rgba(143, 43, 100, 0.08); }
.sh-price p { margin: 0 0 12px; font-size: 16px; line-height: 1.45; }
.sh-price .sh-big { font: 700 22px/1.2 var(--serif); color: #8f2b64; }
.sh-free { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; align-items: start; }
.sh-free .b-star { width: 30px; height: 30px; margin: -6px 0 0 -4px; }
.sheet .cta { margin-top: 4px; background: var(--ink); color: var(--lamp); box-shadow: none; }
.sheet .cta:hover { background: #43342a; }
@media (max-width: 859px) {
  .sheet { grid-template-columns: minmax(0, 1fr); }
  .sheet section { padding: 24px 20px; }
  .sheet section + section { border-left: 0; border-top: 2px dashed rgba(42, 32, 25, 0.28); }
}
@media (max-width: 400px) { .sh-time li { grid-template-columns: 92px minmax(0, 1fr); gap: 0 11px; } .sq i { height: 18px; } }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 12px 44px;
  font-size: 18px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -6px;
  font: italic 400 32px/1 var(--serif);
  color: var(--lamp);
}

/* ---- calls to action ---- */
.actions { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; margin: 22px 0 0; }
.cta {
  display: inline-block;
  background: var(--lamp);
  color: var(--ink);
  text-decoration: none;
  font: 700 16px/1 var(--sans);
  letter-spacing: 0.02em;
  padding: 16px 24px;
  border-radius: 6px;
  box-shadow: 0 10px 26px -12px rgba(242, 196, 107, 0.6);
  transition: background 0.2s, transform 0.2s;
}
.cta:hover { background: #ffd98c; transform: translateY(-1px); }
.cta:focus-visible { outline: 3px solid var(--cream); outline-offset: 3px; }
.mail a:focus-visible { outline: 3px solid var(--lamp); outline-offset: 3px; }
.tag .lang:focus-visible, .tag .top-cta:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.mail { color: var(--muted); font-size: 16px; }
.mail a { color: var(--cream); display: inline-block; padding: 11px 0; }
.contact-grid { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; align-items: center; }
.contact-text { max-width: 640px; width: 100%; margin: 0 auto; display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 0 24px; align-items: start; }
.august-fig { margin: 0 auto; width: 100%; max-width: 620px; order: -1; }
.august { display: block; width: 100%; height: auto; border-radius: 4px; cursor: pointer; box-shadow: 0 0 0 1px rgba(242, 196, 107, 0.14), 0 24px 60px -24px rgba(0, 0, 0, 0.7); }
@media (min-width: 860px) {
  .contact-grid { grid-template-columns: minmax(0, 9fr) minmax(0, 11fr); gap: 44px; }
  .august-fig { order: 0; }
  .contact-text { grid-template-columns: 92px minmax(0, 1fr); }
  .contact-text .mark-bow { width: 92px; height: 92px; }
}

/* ---- the windows of the scenes: the visitor's own hour and season ---- */
.ag-sky { fill: #33406e; }
.ag-sun { fill: #f4ead0; }
.ag-stars { fill: #fff; opacity: 0.5; }
.ag-far { fill: #26305a; }
.ag-house { fill: #1a2348; }
.ag-lit { fill: #f2c46b; }
.ag-dayl { opacity: 0; }
[data-time="night"] .ag-sky { fill: #172340; }
[data-time="night"] .ag-stars { opacity: 1; }
[data-time="night"] .ag-far { fill: #16203a; }
[data-time="night"] .ag-house { fill: #111a30; }
[data-time="morning"] .ag-sky { fill: #f0cda6; }
[data-time="morning"] .ag-sun { fill: #fff0c4; }
[data-time="morning"] .ag-far { fill: #b7a18c; }
[data-time="morning"] .ag-house { fill: #7d6155; }
[data-time="morning"] .ag-lit { fill: #e9c9a2; }
[data-time="morning"] .ag-dayl { opacity: 0.12; }
[data-time="day"] .ag-sky { fill: #9ccbe8; }
[data-time="day"] .ag-sun { fill: #fff6cf; }
[data-time="day"] .ag-far { fill: #7fa08c; }
[data-time="day"] .ag-house { fill: #a58a74; }
[data-time="day"] .ag-lit { fill: #54626b; }
[data-time="day"] .ag-dayl { opacity: 0.2; }
[data-time="morning"] .ag-stars, [data-time="day"] .ag-stars { opacity: 0; }
[data-time="day"] .ag-lampg, [data-time="day"] .ag-cone { opacity: 0.35; }
.ag-snow, .ag-leaves { display: none; }
.ag-snow { fill: #fff; }
[data-season="winter"] .ag-snow, [data-season="autumn"] .ag-leaves, [data-season="spring"] .ag-leaves { display: inline; }
[data-season="autumn"] .ag-leaves { fill: #d9873b; }
[data-season="spring"] .ag-leaves { fill: #f2b8c6; }
[data-season="winter"] .ag-far { fill: #cfd9e6; }
.ag-fall { animation: ag-fall var(--t) linear var(--d) infinite; }
@keyframes ag-fall { to { transform: translate(var(--x), 206px); } }
.ag-steam { opacity: 0.5; animation: ag-steam 3.4s ease-in-out infinite; }
@keyframes ag-steam { 0%, 100% { transform: translateY(2px); opacity: 0.3; } 50% { transform: translateY(-4px); opacity: 0.6; } }
.away .ag-fall, .away .ag-steam { animation-play-state: paused; }

/* ---- your story: questions on a sheet, three pencil frames ---- */
.own-line { margin: 10px 0 18px; font-size: 18px; line-height: 1.5; }
.own-line a { color: var(--lamp); text-underline-offset: 4px; }
.own-line a:focus-visible { outline: 3px solid var(--lamp); outline-offset: 3px; }
.story-grid { max-width: 1000px; margin: 0 auto; }
.story-grid .lead { margin: 0 auto 20px; max-width: 640px; }
.story-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; max-width: 640px; margin: 0 auto; }
.story-asks, .story-end { padding: 14px 20px 18px; background: var(--paper); color: var(--ink); border-radius: 3px; box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.75); }
.q { position: relative; margin: 0; display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 0 12px; align-items: center; border-bottom: 1.5px dotted rgba(42, 32, 25, 0.42); }
.q label { color: #5b4636; font-size: 15px; line-height: 1.2; }
.q input { min-width: 0; width: 100%; min-height: 46px; padding: 4px 2px 0; border: 0; border-radius: 0; background: transparent; color: #641a45; font: italic 400 18px/1.2 var(--serif); }
.q input::placeholder { color: rgba(42, 32, 25, 0.42); opacity: 1; }
.q input:focus { outline: 0; }
.q:focus-within { border-bottom: 1.5px solid #8f2b64; }
.q:focus-within label { color: #8f2b64; }
.story-send { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; align-items: center; }
.story-form .cta { background: var(--ink); color: var(--lamp); box-shadow: none; }
.story-form .cta:hover { background: #43342a; }
.story-form .cta:focus-visible, .story-form .mail a:focus-visible { outline: 3px solid #8f2b64; outline-offset: 3px; }
.story-form .mail { color: #5b4636; }
.story-form .mail a { color: var(--ink); text-underline-offset: 4px; }
.story-note { margin: 8px 0 0; color: #5b4636; font-size: 15px; line-height: 1.4; }
.story-ex { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 2px 0 8px; }
.story-ex span { margin-right: 4px; color: #5b4636; font-size: 14.5px; }
.story-ex button { padding: 5px 11px 6px; border: 1.5px solid rgba(42, 32, 25, 0.28); border-radius: 999px; background: transparent; color: #4b3a2e; font: italic 400 15px/1.1 var(--serif); cursor: pointer; }
.story-ex button:hover { border-color: #8f2b64; color: #641a45; }
.story-ex button[aria-pressed="true"] { border-color: #8f2b64; background: #8f2b64; color: #fbf0dd; }
.story-ex button:focus-visible { outline: 3px solid #8f2b64; outline-offset: 2px; }
.q textarea { display: block; min-width: 0; width: 100%; min-height: 46px; padding: 13px 2px 6px; border: 0; border-radius: 0; background: transparent; color: #641a45; font: italic 400 18px/1.3 var(--serif); resize: none; overflow: hidden; }
.q textarea::placeholder { color: rgba(42, 32, 25, 0.42); opacity: 1; }
.q textarea:focus { outline: 0; }
.story-give { margin: 10px 0 0; color: #5b4636; font-size: 15px; line-height: 1.4; }
.story-give a { color: var(--ink); text-underline-offset: 4px; }
.story-give a:focus-visible { outline: 3px solid #8f2b64; outline-offset: 3px; }
html:not(.js) :is(.story-grid .lead, .story-asks, .story-board, .story-note, .story-give) { display: none; }
.story-nojs { margin: 0 0 14px; font-size: 17px; line-height: 1.45; }
.js .story-nojs { display: none; }
.sk { position: relative; margin: 0; padding: 8px 8px 9px; background: #f7efdf; color: #2a2019; border-radius: 2px; box-shadow: 0 12px 24px -12px rgba(0, 0, 0, 0.7); }
.sk::before { content: ""; position: absolute; left: 50%; top: -9px; width: 58px; height: 19px; margin-left: -29px; background: rgba(242, 214, 150, 0.82); transform: rotate(-3deg); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.22); }
.sk-pic { display: block; width: 100%; height: auto; border: 1.5px solid rgba(75, 64, 55, 0.5); background: #fbf5e8; }
.sk figcaption { margin-top: 7px; font: italic 400 16px/1.3 var(--serif); text-align: center; min-height: 2.6em; display: grid; place-items: center; overflow-wrap: anywhere; text-wrap: balance; }
.sk-all { filter: url(#pencil); }
.sk-all path, .sk-all circle { fill: none; stroke: #4b4037; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sk-all .pf { fill: #fbf5e8; }
.sk-all .pc { stroke: #8f2b64; stroke-width: 3; }
.sk-all .pr { stroke: #8f2b64; stroke-width: 5; }
.sk-all .pp { fill: #8f2b64; stroke: #641a45; }
.sk-all .pg { fill: #e0a63f; stroke: #a0681e; stroke-width: 0.5; }
.sk-name { font-family: "Pacifico", var(--serif); fill: #8f2b64; }
.sk-all .pf.wr { fill: #f5d4cc; } .sk-all .pf.wm { fill: #f6e1a8; } .sk-all .pf.ws { fill: #d6e4c8; } .sk-all .pf.wb { fill: #d3e3ef; }
.sk-all .pf.wl { fill: #e3d6ec; } .sk-all .pf.wo { fill: #f6cfa2; } .sk-all .pf.wd { fill: #efe0c4; } .sk-all .pf.wk { fill: #dcc3a4; } .sk-all .pf.wg { fill: #dcdde0; }
.sk-all .th { stroke-width: 1.1; opacity: 0.65; }
.sk-all .pi { fill: #4b4037; }
.sk-all .pk { fill: #ef9f96; stroke: none; opacity: 0.55; }
.sk-ghost { filter: url(#pencil); opacity: 0.2; }
.sk-ghost path, .sk-ghost circle { fill: none !important; stroke: #4b4037; stroke-width: 1; }
.sk-ghost .pk, .sk-ghost .pg, .sk-ghost text { display: none; }
.sk-word { font: italic 400 15px var(--serif); fill: #4b4037; }
.draw .sk-ghost { opacity: 0; animation: sk-ghost 0.6s 1s forwards; }
.draw .pk, .draw .sk-word { opacity: 0; animation: sk-fill-o 0.4s 1s forwards; }
@keyframes sk-ghost { to { opacity: 0.2; } }
.draw .sk-all :is(path, circle):not(.pg, .pk) { stroke-dasharray: 1; stroke-dashoffset: 1; animation: sk-line 0.55s var(--d, 0s) ease-out forwards; }
.draw .sk-all :is(path, circle):is(.pf, .pp) { fill-opacity: 0; animation: sk-line 0.55s var(--d, 0s) ease-out forwards, sk-fill 0.2s calc(var(--d, 0s) + 0.1s) forwards; }
.draw .sk-name { clip-path: inset(-30% 100% -30% -5%); animation: sk-name 1s 0.7s cubic-bezier(.5, .1, .4, 1) forwards; }
.draw .pg { opacity: 0; animation: sk-fill-o 0.3s 1.6s forwards; }
@keyframes sk-line { to { stroke-dashoffset: 0; } }
@keyframes sk-fill { to { fill-opacity: 1; } }
@keyframes sk-fill-o { to { opacity: 1; } }
@keyframes sk-name { to { clip-path: inset(-30% -5% -30% -5%); } }
/* on a phone the three frames are a strip that slides */
.story-board { display: grid; grid-auto-flow: column; grid-auto-columns: min(62vw, 250px); gap: 14px; margin: 0 -16px; padding: 12px 16px 8px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding: 0 16px; scrollbar-width: none; }
.story-board::-webkit-scrollbar { display: none; }
.sk { scroll-snap-align: start; }
.sk-dots { display: flex; justify-content: center; gap: 9px; margin: -12px 0 -2px; }
.sk-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--paper); opacity: 0.3; transition: opacity 0.2s, transform 0.2s; }
.sk-dots i.on { opacity: 1; transform: scale(1.25); }
@media (min-width: 860px) {
  .story-grid .lead { margin: 0 0 24px; max-width: 720px; }
  .story-form { max-width: none; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 0 40px; }
  .sk-dots { display: none; }
  .story-asks { padding: 18px 26px 0; border-radius: 3px 3px 0 0; box-shadow: none; }
  .story-end { padding: 18px 26px 22px; border-radius: 0 0 3px 3px; }
  .story-board { grid-column: 2; grid-row: 1 / span 2; align-self: center; grid-auto-flow: row; grid-template-columns: minmax(0, 10fr) minmax(0, 15fr); grid-template-rows: 1fr 1fr; gap: 20px 22px; margin: 0; padding: 0; overflow: visible; }
  .sk:nth-child(1) { transform: rotate(-1.6deg); }
  .sk:nth-child(2) { transform: rotate(1.2deg); grid-row: 2; }
  .sk:nth-child(3) { grid-column: 2; grid-row: 1 / span 2; align-self: center; transform: rotate(0.6deg); padding: 10px 10px 12px; }
  .sk:nth-child(3) figcaption { font-size: 19px; }
  .sk figcaption { font-size: 15px; }
}
@media (max-width: 520px) {
  .story-asks { padding: 10px 16px 16px; }
  .q { grid-template-columns: minmax(0, 1fr); padding-top: 8px; }
  .q label { font-size: 14.5px; }
  .q input { min-height: 38px; padding-top: 0; }
  .q textarea { min-height: 38px; padding-top: 4px; }
  .story-ex { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 6px; padding: 2px 16px 4px; scrollbar-width: none; }
  .story-ex::-webkit-scrollbar { display: none; }
  .story-ex button { flex: none; }
}

/* ---- write a name: the live scene ---- */
.name-grid { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.gift-fig { position: relative; margin: 0 auto; width: 100%; max-width: 520px; }
.gift-scene { display: block; width: 100%; height: auto; border-radius: 4px; box-shadow: 0 0 0 1px rgba(242, 196, 107, 0.14), 0 24px 60px -24px rgba(0, 0, 0, 0.7); }
.gift-tap { position: absolute; inset: 0; width: 100%; padding: 0; border: 0; background: transparent; cursor: pointer; border-radius: 4px; }
.gift-tap:focus-visible { outline: 3px solid var(--lamp); outline-offset: 3px; }
html:not(.js) .gift-tap, html:not(.js) .name-form { display: none; }
.gift-pad { position: absolute; left: 0; right: 0; top: 8.8%; height: 22.6%; z-index: 1; cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Cpath d='M3 29 L6 20 L22 4 L28 10 L12 26 Z' fill='%23f2c46b' stroke='%232a2019' stroke-width='1.6' stroke-linejoin='round'/%3E%3Cpath d='M3 29 L6 20 L12 26 Z' fill='%23e9cda2' stroke='%232a2019' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E") 3 29, crosshair; }
.gift-pad.armed { touch-action: none; }
.pad-clear { position: absolute; right: 2.6%; top: 0; z-index: 2; height: 8.6%; min-height: 32px; padding: 0 10px; border: 0; background: transparent; color: #8f2b64; font: italic 400 16px/1 var(--serif); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.pad-clear::after { content: ""; position: absolute; inset: -4px 0 -8px; }
.pad-clear:focus-visible { outline: 2px solid #8f2b64; outline-offset: -3px; }
.g-hint { font: italic 400 23px var(--serif); fill: #6b5a4a; }
html:not(.js) .gift-pad { display: none; }
.g-from, .g-to { font: 700 14px var(--sans); letter-spacing: 0.14em; fill: #2a2019; }
.g-from { text-transform: uppercase; }
.g-cap { font: italic 400 38px var(--serif); fill: #2a2019; }
.g-tagname { font: italic 400 23px var(--serif); }
.g-name { font-family: "Pacifico", var(--serif); font-weight: 700; font-synthesis: none; }   /* scripts Pacifico has not: bold serif */
.name-text { max-width: 640px; width: 100%; margin: 0 auto; }
.name-form label { display: block; color: var(--muted); font-size: 16px; margin-bottom: 8px; }
.name-row { display: flex; gap: 10px; }
.name-row input {
  flex: 1;
  min-width: 0;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid rgba(242, 196, 107, 0.5);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.22);
  color: var(--cream);
  font: italic 400 22px/1 var(--serif);
}
.name-row input::placeholder { color: rgba(196, 180, 158, 0.6); }
.name-row input:focus { outline: 2px solid var(--lamp); outline-offset: 1px; }
.name-row .cta { border: 0; cursor: pointer; }
.name-share { margin-top: 16px; padding: 12px 16px; border-left: 2px solid var(--lamp); }
.name-share p { margin: 0; font-size: 17px; }
.share-row { display: flex; flex-wrap: wrap; gap: 4px 20px; align-items: center; margin-top: 4px !important; }
.copy { min-height: 44px; padding: 0 18px; border: 1px solid var(--lamp); border-radius: 6px; background: transparent; color: var(--lamp); font: 700 15px/1 var(--sans); cursor: pointer; }
.copy:focus-visible, .card-link:focus-visible, .card-more:focus-visible, .bones-on:focus-visible { outline: 3px solid var(--lamp); outline-offset: 3px; }
.card-link, .card-more { color: var(--lamp); text-underline-offset: 4px; display: inline-flex; align-items: center; min-height: 44px; }
.copied { color: var(--muted); font-size: 15px !important; min-height: 1.5em; overflow-wrap: anywhere; }
@media (min-width: 860px) {
  .name-grid { grid-template-columns: minmax(0, 10fr) minmax(0, 9fr); gap: 52px; align-items: center; }
}
/* the free card: the scene alone */
.card-page { min-height: 100vh; display: grid; place-items: center; }
.card-main { width: 100%; max-width: 620px; padding: 16px; text-align: center; }
.card-page .gift-fig { max-width: min(560px, 78vh); }
.card-hint { margin: 14px 0 0; color: var(--lamp); font-style: italic; }
.gift-fig.opened + .card-hint { visibility: hidden; }
.js .card-after { opacity: 0; visibility: hidden; }
.js .gift-fig.opened ~ .card-after { opacity: 1; visibility: visible; transition: opacity 0.8s 6.4s, visibility 0s 6.4s; }
html:not(.js) .card-hint { display: none; }
.card-after .actions { justify-content: center; margin-top: 10px; }
.card-after .lead { margin: 0; }
@media (orientation: landscape) and (max-height: 560px) {   /* a phone on its side: the scene, and the words beside it */
  .card-main { max-width: 800px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 26px; align-items: center; text-align: left; }
  .card-page .gift-fig { width: calc(100vh - 32px); max-width: none; grid-row: 1 / span 2; }
  .card-hint { align-self: end; }
  .card-after { align-self: start; }
  .card-after .actions { justify-content: flex-start; }
}

/* the example page of a gift (gift/): the band, the box over the video, the card, the reply, the footer */
.gp { width: 100%; max-width: 560px; margin: 0 auto; padding-block: 16px 40px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.gp-head { margin: 4px 0 12px; color: var(--muted); font: italic 400 18px/1.3 var(--serif); text-align: center; }
.gp-stage { position: relative; aspect-ratio: 1; max-width: 100%; overflow: hidden; border-radius: 8px; background: #2a2019; box-shadow: 0 26px 50px -22px rgba(0, 0, 0, 0.9); }
.gp-video, .gp-box { position: absolute; inset: 0; }
.gp-video video { display: block; width: 100%; height: 100%; object-fit: cover; }
.gp-play { position: absolute; inset: 0; width: 100%; padding: 0; border: 0; background: transparent; cursor: pointer; }
.gp-play:focus-visible, .gp-box:focus-visible { outline: 3px solid var(--lamp); outline-offset: -3px; }
html:not(.js) .gp-play, html:not(.js) .gp-box, html:not(.js) .gp-hint, html:not(.js) .gp-reply { display: none; }
.gp-box { display: grid; place-items: center; padding: 0; border: 0; background: radial-gradient(circle at 50% 42%, #5a4030, #2a2019 70%); cursor: pointer; }
.gp-boxpic { width: 84%; overflow: visible; }
.bx-name { font-family: "Pacifico", var(--serif); }
.gp-boxpic g { transform-box: fill-box; transform-origin: 50% 100%; transition: transform 0.6s cubic-bezier(.3, .7, .3, 1), opacity 0.4s; }
@media (hover: hover) { .gp:not(.opened) .gp-box:hover .bx-bow { transform: rotate(-4deg); } }
.gp.opened .bx-bow { transform: translateY(-60%) scale(1.3); opacity: 0; }
.gp.opened .bx-lid { transform: translate(8%, -180%) rotate(-14deg); opacity: 0; transition-delay: 0.12s; }
.gp.opened .gp-box { opacity: 0; visibility: hidden; transition: opacity 0.35s 0.55s, visibility 0s 0.9s; }
.js .gp-video { opacity: 0; visibility: hidden; }
.gp.opened .gp-video { opacity: 1; visibility: visible; transition: opacity 0.5s 0.45s; }
.gp.opened:not(.playing) .gp-play::before { content: ""; position: absolute; left: 50%; top: 50%; width: 68px; height: 68px; margin: -34px 0 0 -34px; border-radius: 50%; background: rgba(20, 14, 10, 0.62); }
.gp.opened:not(.playing) .gp-play::after { content: ""; position: absolute; left: 50%; top: 50%; margin: -13px 0 0 -7px; border-style: solid; border-width: 13px 0 13px 22px; border-color: transparent transparent transparent #f1e7d8; }
.gp-hint { margin: 14px 0 0; text-align: center; color: var(--lamp); font-style: italic; }
.gp.opened .gp-hint { display: none; }
.gp-acts { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; margin: 14px 0 0; }
.js .gp:not(.opened) .gp-acts { display: none; }
.gp-save, .gp-share, .gp-again { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.1); color: var(--cream); font: 400 16px/1 var(--serif); text-decoration: none; cursor: pointer; }
.gp-save:focus-visible, .gp-share:focus-visible, .gp-again:focus-visible { outline: 3px solid var(--lamp); outline-offset: 2px; }
.gp-done { color: var(--lamp); font-style: italic; }
.gp-card { margin: 34px 4px 0; }
.gp .card { padding: 20px 22px 16px; font-size: clamp(18px, 4.8vw, 22px); }
.js .gp:not(.watched) .gp-card { display: none; }
.js .gp.watched:not(.back) .gp-card .hl { clip-path: inset(-20% 100% -20% 0); animation: ph-write 0.7s calc(0.35s + var(--i) * 0.75s) steps(16) forwards; }
.gp-reply { margin: 40px 0 0; }
.gp-reply h2 { margin: 0 0 12px; font: italic 400 26px/1.2 var(--serif); }
.js .gp:not(.watched) .gp-reply, .js .gp:not(.watched) .gp-stays { display: none; }
.js .gp.watched:not(.back) .gp-reply, .js .gp.watched:not(.back) .gp-stays { animation: gp-in 0.6s 4.2s both; }
@keyframes gp-in { from { opacity: 0; transform: translateY(10px); } }
.gp-form label { display: block; margin: 0 0 6px; color: var(--muted); font-size: 16px; }
.gp-form textarea { display: block; width: 100%; margin: 0 0 12px; padding: 12px 14px; border: 1px solid rgba(241, 231, 216, 0.3); border-radius: 6px; background: rgba(0, 0, 0, 0.22); color: var(--cream); font: 400 18px/1.45 var(--serif); resize: vertical; }
.gp-form textarea:focus-visible { outline: 3px solid var(--lamp); outline-offset: 1px; }
.gp-form .cta { border: 0; cursor: pointer; }
.gp-sent .card { margin: 0 4px 14px; overflow-wrap: anywhere; }
.gp-sent .gp-words, .gp-sent .sig { display: block; }
.gp-sent.fresh .card { animation: gp-in 0.6s both; }
.gp-stays { margin: 34px 0 0; color: var(--cream); font-size: 18px; }
.gp-foot { margin: 34px 0 0; padding: 22px 0 0; border-top: 1px solid rgba(241, 231, 216, 0.2); color: var(--muted); font-size: 16px; }
.gp-foot p { margin: 0; }
.gp-foot .actions { margin-top: 16px; }
@media (prefers-reduced-motion: reduce) {
  .gp-boxpic g, .gp.opened .gp-box, .gp.opened .gp-video { transition: none; }
  .js .gp.watched .gp-card .hl { animation: none; clip-path: none; }
  .js .gp.watched .gp-reply, .js .gp.watched .gp-stays, .gp-sent.fresh .card { animation: none; }
}

/* ---- the skeleton of the page ---- */
.bones-on { display: flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--lamp); font: 400 16px/1 var(--serif); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
html:not(.ready) .bones-on { display: none; }
.side-bones { display: none; }
@media (min-width: 1200px) {
  .tag { grid-template-columns: auto 1fr auto auto; }
  .top-bones.top-bones { display: none; }
  .side-bones.side-bones {
    position: fixed;
    right: 0;
    top: 50%;
    z-index: 6;
    transform: translateY(-50%);
    display: grid;
    justify-items: center;
    gap: 6px;
    width: 74px;
    padding: 9px 0 10px;
    background: #0e1720;
    color: #cfe4f2;
    border: 1px solid rgba(159, 208, 255, 0.5);
    border-right: 0;
    border-radius: 10px 0 0 10px;
    box-shadow: 0 10px 26px -10px rgba(0, 0, 0, 0.7);
    font: 700 13px/1 var(--sans);
    text-decoration: none;
  }
}
/* below 1200 px the same picture and word sit in the panel at the top, on phones in its free middle: a bookmark at the edge covered the page (Evgen 26.11).
   On phones it stays in the first line, clear of the tagline under the brand; where the word does not fit beside the picture, the picture alone */
@media (max-width: 1199px) {
  .tag { grid-template-columns: auto 1fr auto auto auto; }
  .top-bones.top-bones { position: relative; gap: 7px; min-height: 0; margin: -10px 0; padding: 4px 9px 4px 4px; font-size: 13px; }
  .top-bones.top-bones::after { content: ""; position: absolute; inset: -4px -2px; }
  .top-bones svg { flex: none; width: 34px; height: 34px; border-radius: 4px; }
}
@media (max-width: 620px) {
  .tag { grid-template-columns: auto 1fr auto auto; }
  .top-bones.top-bones { justify-self: center; margin: -3px 0 0; padding: 0 6px 0 0; gap: 5px; font-size: 11px; }
  .top-bones svg { width: 28px; height: 28px; }
}
@media (max-width: 389px) { .top-bones.top-bones { padding: 0; } .top-bones .bones-t { display: none; } }
@media (max-width: 429px) { .top-bones.top-bones:lang(en) { padding: 0; } .top-bones:lang(en) .bones-t { display: none; } }
/* the narrowest: no tagline, so the word goes under the picture */
@media (max-width: 370px) {
  .top-bones.top-bones:lang(ru) { flex-direction: column; gap: 2px; margin-top: -4px; padding: 0 2px; font-size: 9px; }
  .top-bones:lang(ru) .bones-t { display: inline; }
  .top-bones:lang(ru) svg { width: 24px; height: 24px; }
}
.side-bones svg { width: 48px; height: 48px; border-radius: 4px; }
.side-bones[aria-pressed="true"] { background: #9fd0ff; color: #0e1720; }
.bones-tip {
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  width: 270px;
  padding: 14px 16px 15px;
  background: #0e1720;
  color: #cfe4f2;
  border: 1px solid rgba(159, 208, 255, 0.5);
  border-radius: 8px;
  font: 400 15.5px/1.45 var(--serif);
  text-align: left;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translate(10px, -50%);
  transition: opacity 0.2s, transform 0.2s, visibility 0s 0.2s;
}
.bones-tip strong { display: block; margin-bottom: 4px; color: #ffd98c; font: 700 14px/1.3 var(--sans); }
.side-bones:focus-visible .bones-tip { opacity: 1; visibility: visible; transform: translate(0, -50%); transition: opacity 0.2s, transform 0.2s; }
@media (hover: hover) {
  .side-bones:hover .bones-tip { opacity: 1; visibility: visible; transform: translate(0, -50%); transition: opacity 0.2s, transform 0.2s; }
}
.side-bones[aria-pressed="true"] .bones-tip { display: none; }
.bones-bar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 9; margin: 0 auto; max-width: 720px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 18px; align-items: center; padding: 10px 12px 10px 18px; background: #0e1720; color: #cfe4f2; border: 1px solid #9fd0ff; border-radius: 6px; box-shadow: 0 14px 34px -12px rgba(0, 0, 0, 0.8); font-size: 16px; }
.bones-bar p { margin: 0; }
.bones-bar .bones-off { grid-column: 2; grid-row: 1 / span 2; }
.bones-code { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 9px; align-items: start; }
.bones-code i { width: 18px; height: 18px; margin-top: 2px; border-radius: 3px; border: 1px solid #9fd0ff; }
.bones-code code { color: #ffd98c; font: 400 13px/1.45 ui-monospace, Consolas, monospace; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bones-off { min-height: 44px; padding: 0 16px; border: 0; border-radius: 4px; background: #9fd0ff; color: #0e1720; font: 700 15px/1 var(--sans); cursor: pointer; }
/* the page turns into its drawing from the top down */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
.scan::view-transition-new(root) { animation: scan 1.1s cubic-bezier(.4, 0, .3, 1); }
@keyframes scan { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
.scan body::before { content: ""; position: fixed; z-index: 30; left: 0; right: 0; top: 0; height: 4px; background: #d9f0ff; box-shadow: 0 0 22px 6px #9fd0ff; animation: scanline 1.1s cubic-bezier(.4, 0, .3, 1) both; }
@keyframes scanline { from { transform: translateY(-4px); } to { transform: translateY(100vh); } }
/* the frame of a video as lines */
.bone { display: none; }
.bones .bone { display: block; position: absolute; inset: 0; z-index: 1; }
.bones .bone img { width: 100%; height: 100%; object-fit: cover; }
.bones .bone span { position: absolute; left: 10px; bottom: 9px; right: 10px; color: #ffd98c; font: 400 12.5px/1.35 ui-monospace, Consolas, monospace; }
/* ---- how to give it: the gift's own page in a phone, a tag with a QR code ---- */
.give-grid { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 34px; }
.give-text { max-width: 640px; width: 100%; margin: 0 auto; }
.give-steps { list-style: none; margin: 18px 0 22px; padding: 0; display: grid; gap: 4px; counter-reset: gs; }
.gs { position: relative; display: block; width: 100%; padding: 9px 12px 10px 44px; border: 0; border-radius: 4px; background: transparent; color: var(--muted); font: 400 16px/1.45 var(--serif); text-align: left; cursor: pointer; counter-increment: gs; }
.gs::before { content: counter(gs); position: absolute; left: 10px; top: 9px; width: 24px; height: 24px; border: 1.5px solid currentColor; border-radius: 50%; font: 700 13px/22px var(--sans); text-align: center; }
.gs b { color: var(--cream); font-weight: 700; }
.gs:hover { background: rgba(255, 255, 255, 0.04); }
.gs.on { background: rgba(242, 196, 107, 0.1); color: var(--cream); }
.gs.on::before { border-color: var(--lamp); background: var(--lamp); color: #2a2019; }
.gs:focus-visible { outline: 3px solid var(--lamp); outline-offset: 2px; }
.give h3 { margin: 0 0 8px; font-size: 19px; }
.give-ways { margin: 0 0 14px; padding-left: 20px; color: var(--muted); font-size: 16px; line-height: 1.5; }
.give-ways b { color: var(--cream); }
.give-fig { position: relative; margin: 0 auto; width: 100%; max-width: 330px; padding: 0 0 64px; }
.phone { position: relative; width: 252px; margin: 0 auto; padding: 14px 10px 18px; background: #16131c; border-radius: 34px; box-shadow: 0 0 0 2px #3a3446, 0 26px 50px -22px rgba(0, 0, 0, 0.9); }
.phone::before { content: ""; position: absolute; left: 50%; top: 7px; width: 54px; height: 5px; margin-left: -27px; border-radius: 3px; background: #2c2836; }
.ph-top { margin: 6px 4px 8px; color: #cbb9a0; font: italic 400 14px/1.2 var(--serif); text-align: center; }
.ph-screen { position: relative; aspect-ratio: 9 / 15; overflow: hidden; border-radius: 22px; background: #2a2019; }
.ph-s { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity 0.45s, visibility 0s 0.45s; }
.ph-s.on { opacity: 1; visibility: visible; transition: opacity 0.45s; }
.ph-box { background: radial-gradient(circle at 50% 42%, #5a4030, #2a2019 70%); }
.ph-boxpic { width: 86%; }
.ph-hint { position: absolute; bottom: 9%; padding: 5px 12px 6px; border-radius: 999px; background: #f1e7d8; color: #2a2019; font: italic 400 14px/1 var(--serif); }
.ph-video { background: #0e0c10; align-content: center; gap: 12px; }
.ph-video img { width: 100%; height: auto; aspect-ratio: 1 / 0.68; object-fit: cover; object-position: 50% 100%; }
.ph-bar { display: block; width: 84%; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, 0.2); }
.ph-bar i { display: block; width: 0; height: 100%; border-radius: 2px; background: var(--lamp); }
.ph-video.on .ph-bar i { animation: ph-bar 3.2s linear forwards; }
@keyframes ph-bar { to { width: 100%; } }
.ph-acts { display: flex; gap: 10px; }
.ph-acts span { padding: 6px 12px 7px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); color: #f1e7d8; font: 400 13px/1 var(--serif); }
.ph-card, .ph-reply { background: linear-gradient(#2a2019, #3b2c22); align-content: center; gap: 12px; padding: 0 14px; }
.card { margin: 0; padding: 14px 14px 12px; background: #fbf5e8; color: #4b2a3a; border-radius: 3px; box-shadow: 0 10px 20px -10px rgba(0, 0, 0, 0.8); font: 400 15px/1.55 "Pacifico", var(--serif); transform: rotate(-1.5deg); }
.card .hl { display: block; }
.card .sig { margin-top: 2px; text-align: right; color: #8f2b64; }
.card.small { font-size: 11px; opacity: 0.75; transform: rotate(-2.5deg) scale(0.92); }
.card.reply { transform: rotate(1.5deg); }
.js .ph-s .hl { clip-path: inset(-20% 100% -20% 0); }
.js .ph-s.on .hl { animation: ph-write 0.7s calc(0.35s + var(--i) * 0.75s) steps(16) forwards; }
.js .ph-reply.on .small .hl { animation: none; clip-path: none; }
@keyframes ph-write { to { clip-path: inset(-20% -12% -20% -4%); } }   /* well past the ends: the tail of the last letter, and Safari stopping a step short */
.ph-years { background: #f1e7d8; align-content: center; padding: 0 16px; }
.ph-years ul { list-style: none; margin: 0; padding: 0 0 0 16px; border-left: 2px solid #c8b79c; display: grid; gap: 16px; }
.ph-years li { position: relative; color: #4b3a2e; font: 400 14px/1.35 var(--serif); }
.ph-years li::before { content: ""; position: absolute; left: -23px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: #8f2b64; }
.ph-years li.add { color: #8f2b64; }
.ph-years li.add::before { background: #f1e7d8; border: 2px dashed #8f2b64; width: 8px; height: 8px; top: 3px; }
.ph-years b { display: block; color: #2a2019; }
.give-tag { position: absolute; left: -6px; bottom: 0; display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; align-items: center; width: 250px; padding: 12px 14px 12px 12px;
  background: #d9b886; color: #3b2a1e; border-radius: 6px 22px 22px 6px; text-decoration: none; transform: rotate(-4deg); box-shadow: 0 14px 26px -14px rgba(0, 0, 0, 0.85); }
.give-tag::before { content: ""; position: absolute; right: 12px; top: 50%; width: 9px; height: 9px; margin-top: -5px; border-radius: 50%; background: #2a2019; }
.give-tag svg { display: block; width: 92px; height: 92px; }
.give-tag span { padding-right: 14px; font: italic 400 14px/1.35 var(--serif); }
.give-tag:focus-visible { outline: 3px solid var(--lamp); outline-offset: 3px; }
html:not(.js) .give-fig { display: none; }
@media (min-width: 860px) {
  .give-grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: center; }
  .give-fig { padding-bottom: 84px; }
  .give-tag { left: -70px; bottom: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .ph-s, .ph-s.on { transition: none; }
  .js .ph-s .hl, .js .ph-s.on .hl { animation: none; clip-path: none; }
  .ph-video.on .ph-bar i { animation: none; width: 40%; }
}

.bones .wrapping, .bones .play { display: none; }
/* a shape under the pointer */
.bones svg:not(.ribbon) :is(path, circle, rect, ellipse, line, polygon, polyline, text) { pointer-events: all; }
.bones .gift-tap, .bones .gift-pad, .bones .pad-clear { display: none; }
.bones .own-pic .pf { stroke: #9fd0ff !important; }
.bones .own h3, .bones .story-asks, .bones .story-end, .bones .q label, .bones .story-note, .bones .story-ex span, .bones .story-give, .bones .story-give a, .bones .story-form .mail, .bones .story-form .mail a, .bones .sk { color: #cfe4f2; }
.bones .story-asks, .bones .story-end, .bones .sk, .bones .sk-pic { background: none; box-shadow: none; outline: 1px solid #9fd0ff; }
.bones .sk::before { background: none; outline: 1px dashed #9fd0ff; box-shadow: none; }
.bones .sk-all { filter: none; }
.bones .q input, .bones .q input::placeholder { color: #ffd98c; }
.bones .story-ex button, .bones .gs, .bones .phone, .bones .ph-screen, .bones .card, .bones .ph-hint, .bones .ph-acts span { background: none !important; box-shadow: none; outline: 1px solid #9fd0ff; color: #cfe4f2; }
.bones .ph-s { background: none; }
.bones .give-tag { background: #14212b; box-shadow: none; outline: 1px solid #9fd0ff; color: #cfe4f2; }
.bones .give-tag::before { background: none; outline: 1px solid #9fd0ff; }
.bones .give-tag svg:not(.keep) rect:not(.lit) { fill: #cfe4f2 !important; stroke: none !important; }
.bones .give-tag svg:not(.keep) path:not(.lit) { fill: #14212b !important; stroke: none !important; }
.bones .q textarea, .bones .q textarea::placeholder { color: #ffd98c; }
.bones .sk-all .pf { fill: none; }
.bones .sk-ghost { display: none; }
.bones svg .lit { stroke: #ffd98c !important; stroke-width: 2.4px !important; fill: rgba(255, 217, 140, 0.16) !important; }
.bones body { background: #14212b; background-image: linear-gradient(rgba(159, 208, 255, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(159, 208, 255, 0.08) 1px, transparent 1px); background-size: 24px 24px; }
.bones .scene, .bones .band, .bones .foot, .bones .sheet, .bones .sh-price, .bones .ideas a, .bones .ideas li { background: none; -webkit-mask: none; mask: none; color: #cfe4f2; outline: 1px dashed rgba(159, 208, 255, 0.4); outline-offset: -3px; }
.bones .band { position: relative; }
.bones .scene::before, .bones .band::before, .bones .slot::before, .bones .hero-grid::before, .bones .works::before {
  content: attr(class);
  position: absolute;
  z-index: 3;
  left: 8px;
  top: 4px;
  font: 400 12px/1 ui-monospace, Consolas, monospace;
  color: #7fb6df;
  pointer-events: none;
}
.bones .slot { position: relative; }
.bones .works::before, .bones .hero-grid::before { top: -18px; }
.bones .top.stuck { background: #14212b; }
.bones .top, .bones .tagline, .bones .tag a, .bones .tab, .bones .ideas a, .bones .note, .bones .lead, .bones .quiet, .bones .sheet, .bones .sheet :is(dd, span, p, h4) { color: #cfe4f2; }
.bones .ideas a { box-shadow: none; outline: 1px solid #9fd0ff; }
.bones .ideas a::after, .bones .sq i.on { background: none; }
.bones .sq i { border-color: #9fd0ff; }
.bones .sheet .sh-time li > span:last-child, .bones .sheet .sh-note, .bones .sheet .sh-big { color: #cfe4f2; }
.bones .rb-tag::after { display: none; }
.bones .tag .top-cta, .bones .cta, .bones .sheet .cta, .bones .tab[aria-pressed="true"], .bones .arrow, .bones .rb-tag, .bones .made { background: none; color: #ffd98c; box-shadow: none; outline: 1px solid #ffd98c; }
.bones .box, .bones .lid, .bones .face, .bones .side, .bones .rb-v, .bones .rb-h, .bones .in, .bones .player, .bones .gift-fig, .bones .august-fig { background: none !important; box-shadow: none !important; outline: 1px solid rgba(159, 208, 255, 0.75); }
.bones .box::after, .bones .closed .lid::after { display: none; }
.bones .closed h3, .bones .closed .made { color: #cfe4f2; }
.bones .still, .bones .vid { opacity: 0.2; filter: grayscale(1) contrast(1.3); box-shadow: none; }
.bones .bone ~ .still, .bones .bone ~ .vid, .bones .same-one .bone ~ img { opacity: 0; }
.bones .shelf-in { background: none; border-top: 1px solid rgba(159, 208, 255, 0.5); }
.bones svg:not(.keep) :not(defs, defs *, clipPath, clipPath *, mask, mask *, text, .lit) { fill: none !important; stroke: #9fd0ff !important; stroke-width: 1px !important; vector-effect: non-scaling-stroke; filter: none !important; }
.bones svg text { fill: #9fd0ff !important; stroke: none !important; }
.bones .ribbon circle { stroke: #ffd98c !important; }
.bones .motes { opacity: 0.3; }
.bones .ham-b { transform: none; }

.foot {
  background: var(--dusk-deep);
  color: var(--muted);
  text-align: center;
  font-size: 15px;
  padding: 22px 16px 26px;
}
.foot p { margin: 0; }

@media (max-width: 520px) {
  body { font-size: 17px; }
  .lead { font-size: 18px; }
  .steps li, .faces dd { font-size: 17px; }
  .scene { padding: 28px 16px 38px; }
  .play span { width: 54px; height: 54px; right: 12px; bottom: 12px; }
  .play span::after { left: 21px; top: 16px; border-width: 11px 0 11px 17px; }
  .tabs { gap: 6px; }
  .tab { padding: 0 11px; }
  .works { gap: 24px; }
  .label { padding-top: 30px; }
  .contact-text { grid-template-columns: 72px minmax(0, 1fr); gap: 0 18px; }
  .mark-bow { width: 72px; height: 72px; }
  .bars-row { gap: 8px; }
  .bars-row .snd { min-width: 150px; }
}

@media (max-width: 520px) {   /* the bar of the skeleton must not hide the end of the page */
  .bones body { padding-bottom: 120px; }
  .bones-bar { font-size: 15px; line-height: 1.35; gap: 4px 12px; padding: 9px 10px 9px 14px; }
  .bones-bar .bones-off { padding: 0 12px; font-size: 14px; }
  .bones-bar:has(.bones-code:not([hidden])) [data-note] { display: none; }
}
@media (max-width: 400px) {
  .actions { gap: 10px 14px; }
  .actions .cta { padding: 16px 15px; font-size: 15px; }
  .contact-text { grid-template-columns: 60px minmax(0, 1fr); gap: 0 14px; }
  .contact-text .mark-bow { width: 60px; height: 60px; }
}

@media (prefers-reduced-motion: reduce) {
  .play span, .cta, .box, .tab { transition: none; }
  .unwrapped .wrapping { display: none; }
  .player.gift .rb-bow, .ag-fall, .ag-steam { animation: none !important; }
  .cal, .cal-note { animation: none !important; }
  .ag-snow, .ag-leaves { display: none !important; }
  .closed .top, .closed .peek, .js .gift-fig.opened ~ .card-after { transition: none; }
  .has-video:hover .box, .closed .box:hover { transform: none; }
  .ideas a, .ideas a:hover { animation: none; transition: none; }
  .ham-b, .up .ham-b, .ham .g-paw, .up .ham .h-eyes, .up .ham .h-shut { transition: none; animation: none; }
  .cat *, .on .c-all > g, .on .c-tip, .on:not(.awake) .c-z { transition: none !important; animation: none !important; }
  .slot .is-playing .zoom-tag { animation: none; opacity: 1; }
  .veil, .bones-tip { transition: none; }
  .own .box:hover { transform: none; }
  .own .box:hover .own-pen { animation: none; }
  .js .band .b-star { transform: none; opacity: 1; transition: none; }
  .js .mark path, .js .band .caption span, .js .tag::after, .js .mark .m-knot, .js .mark .m-star { transition: none !important; }
}
