@font-face { font-family: "Lacquer"; src: url("fonts/Lacquer-Regular.woff2") format("woff2"), url("fonts/Lacquer-Regular.ttf") format("truetype"); font-display: block; }   /* (no flash of another font on the intro buttons) */

:root {
  --blue: #0049e2;
  --blue-soft: #2356f5;
  --red: #ff2a1f;
  --yellow: #f8bb00;
  --lemon: #fbed4f;
  --green: #41914a;
  --ink: #111;
  --paper: #fff;
  --hand: "Lacquer", cursive;
  --sans: "Poppins", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 64px);
  --nav-h: 66px;
}

* { box-sizing: border-box; }
html { scroll-padding-top: var(--nav-h); overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.6;
  overflow-x: clip; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--yellow); color: var(--ink); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.blue { color: var(--blue); } .red { color: var(--red); } .yellow { color: var(--yellow); } .green { color: var(--green); } .white { color: #fff; }
.hand { font-family: var(--hand); }

/* ---------- cursor ---------- */
/* the everyday pointer: a hand-drawn smiley in Angel's yellow (the follower only shows up as the big labelled bubble) */
html, body { cursor: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2234%22%20height%3D%2234%22%20viewBox%3D%220%200%2034%2034%22%3E%3Cpath%20d%3D%22M30.3%2017.0%20L30.2%2020.0%20L28.9%2022.8%20L26.6%2024.6%20L24.4%2026.2%20L22.2%2027.8%20L19.7%2029.0%20L17.0%2029.8%20L14.1%2029.6%20L11.4%2028.6%20L9.1%2026.9%20L6.9%2025.1%20L5.5%2022.5%20L4.6%2019.8%20L5.0%2017.0%20L5.8%2014.4%20L5.8%2011.6%20L6.7%208.8%20L8.6%206.5%20L11.2%205.0%20L14.2%204.7%20L17.0%204.8%20L19.8%204.9%20L22.3%206.0%20L24.6%207.5%20L26.4%209.5%20L27.8%2011.8%20L29.3%2014.2%20Z%22%20fill%3D%22%23f8bb00%22%20stroke%3D%22%23111%22%20stroke-width%3D%222.4%22%20stroke-linejoin%3D%22round%22/%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22%23111%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20stroke-width%3D%222.6%22%20d%3D%22M13.2%2011.6%20L13.5%2015.4%22/%3E%3Cpath%20stroke-width%3D%222.6%22%20d%3D%22M20.4%2011.2%20L20.2%2015%22/%3E%3Cpath%20stroke-width%3D%222.3%22%20d%3D%22M9.6%2018.4%20Q11.4%2023.9%2016.6%2024%20Q21.8%2023.6%2024.2%2017.6%22/%3E%3Cpath%20stroke-width%3D%221.6%22%20d%3D%22M8.7%2017.3%20L10.4%2019.1%20M23.2%2016.7%20L25%2018.6%22/%3E%3C/g%3E%3C/svg%3E") 5 5, auto; }
.cursor {
  position: fixed; left: 0; top: 0; z-index: 9999; pointer-events: none;
  width: 0; height: 0; margin: 0; border-radius: 50%;
  background: var(--yellow); mix-blend-mode: normal;
  display: grid; place-items: center;
  transition: width .25s, height .25s, margin .25s, background .25s;
}
.cursor-label { font-family: var(--hand); font-size: 18px; color: var(--ink); white-space: nowrap; opacity: 0; transition: opacity .2s; }
.cursor.big { width: 110px; height: 110px; margin: -55px 0 0 -55px; }
.cursor.big .cursor-label { opacity: 1; }
/* over anything clickable: the dot steps aside and the pointer becomes two hand-drawn arrows (yellow + blue, ink line) */
.cursor.ring { width: 0; height: 0; margin: 0; }
a, button, label, summary, [role="tab"], [data-cursor]:not([data-drag]), input[type="radio"], input[type="submit"],
.pdc-video:not(.is-full), .pd-card, .pf-stage, .ct-tile, .cs-iconset li, .skills li, .stamp, .cg-item, .work-card, .wf { cursor: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2246%22%20height%3D%2242%22%20viewBox%3D%220%200%2046%2042%22%3E%3Cg%20stroke%3D%22%23111%22%20stroke-width%3D%222.6%22%20stroke-linejoin%3D%22round%22%20stroke-linecap%3D%22round%22%3E%3Cpath%20fill%3D%22%230049e2%22%20d%3D%22M24.5%2020.2%20L42.6%2021.4%20Q38.9%2026.6%2034.4%2038.6%20Q30.8%2029.4%2024.5%2020.2%20Z%22/%3E%3Cpath%20fill%3D%22%23f8bb00%22%20d%3D%22M3%203%20Q17.5%208.2%2030.8%2011.6%20Q22.6%2018.8%2013.2%2031.4%20Q8.6%2016.4%203%203%20Z%22/%3E%3C/g%3E%3C/svg%3E") 3 3, pointer !important; }
@media (hover: none) { .cursor { display: none; } }
/* words that change with the device: "hover" with a mouse, "tap" on a phone */
.on-touch { display: none; }
@media (hover: none) { .on-mouse { display: none; } .on-touch { display: inline; } }

/* ---------- page wipe ---------- */
.wipe { position: fixed; inset: 0; z-index: 9000; color: var(--blue); pointer-events: none; overflow: hidden; }
/* the page change is a cloud in the category's colour (fill = currentColor); main.js sizes it to cover the screen */
.wipe-cloud { position: absolute; left: 50%; top: 50%; width: 100px; height: 100px; margin: -50px 0 0 -50px; fill: currentColor; transform: scale(0); will-change: transform; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 500; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 64px);
  background: #f1f1f1;
  font-family: var(--hand); font-size: clamp(16px, 1.5vw, 21px);
}
/* irregular hand-drawn edge: a thick wobbly stroke plus a thinner second pass */
.nav-edge { position: absolute; z-index: -1; left: 0; width: 100%; top: calc(100% - 9px); height: 28px; overflow: visible; pointer-events: none; }
.nav-edge path { fill: none; stroke: var(--ink); stroke-width: 2.8; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.nav-edge .thin { stroke-width: 1.2; opacity: .8; }
.nav-edge .fill { fill: #f1f1f1; stroke: none; }

/* words do a little wave on hover, letter by letter */
.wavy { display: inline-flex; }
.wavy .l { display: inline-block; }
.scribble:hover .wavy .l { animation: ripple .55s ease-in-out calc(var(--i) * 45ms) both; }
@keyframes ripple { 50% { transform: translateY(-4px) rotate(-4deg); } }
.brand {
  display: inline-flex; align-items: center; gap: 12px; text-decoration: none; line-height: 1;
  padding: 6px 10px; margin-left: -10px; border-radius: 12px; font-size: clamp(17px, 1.5vw, 21px);
}
.brand:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.brand-word { letter-spacing: .02em; }

/* angel logo */
.angel { width: 48px; height: auto; overflow: visible; flex: none; translate: 0 -4px; }
.angel path { transform-box: view-box; }
.angel .halo { transform-origin: 162px 24px; animation: halo-float 3.2s ease-in-out infinite; }
.angel .eye { transform-origin: 170px 124px; animation: blink 5s infinite; }
.angel .wing-l { transform-origin: 112px 120px; }
.angel .wing-r { transform-origin: 236px 120px; }
.angel .wing, .angel .mouth { transition: transform .35s cubic-bezier(.3,1.8,.5,1); }
.angel .mouth { transform-origin: 173px 180px; }
.brand:hover .wing-l, .brand:focus-visible .wing-l { animation: flap-l .5s ease-in-out infinite alternate; }
.brand:hover .wing-r, .brand:focus-visible .wing-r { animation: flap-r .5s ease-in-out infinite alternate; }
.brand:hover .halo { animation: halo-spin 1s cubic-bezier(.3,1.6,.5,1) both; }
.brand:hover .mouth { transform: scale(1.12); }
.brand:hover .angel { animation: angel-hop .6s cubic-bezier(.3,1.6,.5,1); }
@keyframes halo-float { 50% { transform: translateY(-9px); } }
@keyframes halo-spin { 0% { transform: translateY(-9px) rotate(0); } 60% { transform: translateY(-16px) rotate(-8deg) scaleX(.85); } 100% { transform: translateY(-10px) rotate(0); } }
@keyframes blink { 0%, 94%, 100% { transform: scaleY(1); } 97% { transform: scaleY(.1); } }
@keyframes flap-l { from { transform: rotate(0); } to { transform: rotate(-16deg); } }
@keyframes flap-r { from { transform: rotate(0); } to { transform: rotate(16deg); } }
@keyframes angel-hop { 40% { transform: translateY(-5px) rotate(-6deg); } }
@media (prefers-reduced-motion: reduce) { .angel * { animation: none !important; } }
.nav nav { display: flex; gap: clamp(24px, 5.5vw, 88px); padding-bottom: 2px; }
/* phone menu: a hand-drawn burger that turns into an x and drops a yellow burst with three pills (Angel's Figma) */
.burger, .mnav { display: none; }
.burger { position: relative; z-index: 2; width: 44px; height: 40px; margin-right: -6px; padding: 5px; background: none; border: 0; cursor: pointer; }
.burger svg { width: 100%; height: 100%; overflow: visible; }
.burger path { fill: none; stroke: var(--ink); stroke-width: 3.6; stroke-linecap: round; transform-box: fill-box; transform-origin: center; transition: rotate .4s cubic-bezier(.3, 1.6, .5, 1), translate .4s cubic-bezier(.3, 1.6, .5, 1), opacity .2s; }
.menu-open .burger .b1 { translate: 0 9px; rotate: 45deg; }
.menu-open .burger .b2 { opacity: 0; }
.menu-open .burger .b3 { translate: 0 -10px; rotate: -45deg; }
.mnav { position: fixed; z-index: -2; top: calc(var(--nav-h) - 6px); right: 0; width: 86vw; aspect-ratio: 300 / 260;
  transform-origin: 100% 0; scale: .1; rotate: -10deg; opacity: 0; pointer-events: none;
  transition: scale .55s cubic-bezier(.3, 1.4, .5, 1), rotate .55s cubic-bezier(.3, 1.4, .5, 1), opacity .2s; }
.menu-open .mnav { scale: 1; rotate: 0deg; opacity: 1; pointer-events: auto; }
.mnav-burst { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(5px 5px 0 var(--ink)); }
.mnav-burst path { fill: var(--yellow); stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.mnav-btn { position: absolute; right: -18px; width: 74%; box-sizing: border-box; padding: .5em 1em .42em; text-align: center; text-decoration: none;
  font-family: var(--hand); font-size: 19px; line-height: 1; color: #fff; background: var(--c); border: 3px solid var(--ink); border-radius: 999px; box-shadow: 4px 4px 0 var(--ink);
  opacity: 0; translate: 40px 0; rotate: 0deg; transition: translate .5s cubic-bezier(.3, 1.7, .5, 1), opacity .2s; }
.mnav-btn:nth-of-type(1) { top: 10%; } .mnav-btn:nth-of-type(2) { top: 30%; } .mnav-btn:nth-of-type(3) { top: 50%; }
.menu-open .mnav-btn { opacity: 1; translate: 0 0; }
.menu-open .mnav-btn:nth-of-type(1) { transition-delay: .12s; rotate: -3deg; } .menu-open .mnav-btn:nth-of-type(2) { transition-delay: .2s; rotate: 2deg; } .menu-open .mnav-btn:nth-of-type(3) { transition-delay: .28s; rotate: -2deg; }
.mnav-btn:active { translate: 3px 3px; box-shadow: 1px 1px 0 var(--ink); }
.scribble { text-decoration: none; position: relative; transition: color .25s; }
.c-red { --c: #ff0000; } .c-yellow { --c: var(--yellow); } .c-green { --c: var(--green); }
.scribble:hover, .scribble:focus-visible { color: var(--c); }


main { padding-top: var(--nav-h); }

/* ---------- intro video ---------- */
.intro { position: fixed; inset: 0; z-index: 8500; background: #f0f0f0; overflow: hidden; }
.intro-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.intro button {
  position: absolute; bottom: 28px; font-family: var(--hand); font-size: 22px; cursor: pointer;
  padding: 10px 22px 8px; border: 3px solid var(--ink); border-radius: 999px; background: #fff; color: var(--ink);
  box-shadow: 5px 5px 0 var(--ink); transition: transform .2s cubic-bezier(.3,1.8,.5,1);
}
.intro button:hover { transform: rotate(-4deg) scale(1.06); }
.intro-skip { right: 28px; }
.intro-sound { left: 28px; background: var(--yellow) !important; }
.intro-sound[hidden] { display: none; }
/* On tall screens (phones) show the whole frame so the word isn't cut off */
@media (max-aspect-ratio: 1/1) { .intro { background: #000; } .intro-video { object-fit: contain; } }


/* ---------- hero (zipped shut; scroll unzips it) ---------- */
.hero {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  height: calc(100svh - var(--nav-h)); min-height: 440px; background: var(--ink);   /* fits the screen, so the pull hanging at the bottom is always seen */
  --open: 0px;                     /* how far down the zip is open */
}
.hero-left, .hero-right { position: relative; overflow: hidden; }
.hero-left { background: var(--blue); }
.hero-right { background: #fff; }
/* only what's above the zip pull is uncovered */
.zc { position: absolute; top: 0; height: 100%; width: 50%; z-index: 6; }
.zc-left { left: 0; display: flex; flex-direction: column; justify-content: center; padding: 0 6% 1.5%; }
.zc-right { left: 50%; display: flex; align-items: center; justify-content: center; }
.sparks { position: absolute; inset: 0; z-index: 7; pointer-events: none; }
.sparks i { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; opacity: 0; }
.hello { margin: 0; line-height: .86; font-family: var(--hand); font-size: clamp(60px, min(13vw, 18svh), 240px); }
.h1 { padding-left: 2%; } .h2 { padding-left: 34%; } .h3 { padding-left: 6%; } .h4 { padding-left: 38%; }
.hello .w { display: inline-block; will-change: transform; }
.hello .ch { display: inline-block; cursor: default; }
.zipper { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 5; }
.zipper path, .zipper rect { stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.zipper .teeth path { fill: #fff; }
.zipper .pull path { fill: #fff; }
.pull-layer { position: fixed; inset: 0 auto auto 0; z-index: 4; }   /* above the pinned hero, below the nav */
.zipper .pull .hole { fill: var(--ink); }
.pull-layer .pull { pointer-events: auto; }
@media (min-width: 821px) { .pull-layer .pull { touch-action: none; } }   /* the pull can be clicked or dragged (hand cursor via data-cursor) */
.pull-layer .pull .hit { fill: transparent; stroke: none; }
.scroll-hint {
  /* a strip of yellow tape slapped across the seam, holding the zip shut (torn ends, ink outline); its words take turns
     and a red curly arrow runs from it up to the pull. Clicking it unzips; it rips off as soon as the zip moves */
  position: absolute; left: 50%; top: 45%; translate: -50% -50%; margin: 0; z-index: 6; cursor: pointer;   /* a bit above the middle, closer to the pull */
  font-size: clamp(16px, 1.6vw, 22px); line-height: 1; padding: 0; background: none; border: 0; rotate: -10deg;
  transition: translate .15s, rotate .25s cubic-bezier(.3,1.8,.5,1), transform .55s cubic-bezier(.5,0,.75,0), opacity .3s .25s;
}
.sh-tape { display: block; filter: drop-shadow(2.5px 0 0 var(--ink)) drop-shadow(-2.5px 0 0 var(--ink)) drop-shadow(0 2.5px 0 var(--ink)) drop-shadow(0 -2.5px 0 var(--ink)) drop-shadow(5px 5px 0 var(--ink)); }
.sh-tape > span { display: grid; place-items: center; width: 7.6em; height: 2.2em; background: var(--yellow);
  clip-path: polygon(0 4%, 5% 0, 95% 2%, 100% 10%, 97% 24%, 100% 38%, 96% 52%, 100% 66%, 97% 80%, 100% 94%, 94% 100%, 4% 98%, 0 90%, 3% 76%, 0 62%, 4% 48%, 0 34%, 3% 20%); }
.scroll-hint .sh-word { display: block; font-family: var(--hand); color: var(--ink); white-space: nowrap; }
/* the arrow: from the tape's top edge, curling through the white, tip at the pull (placed in main.js) */
.sh-arrow { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 6; overflow: visible; pointer-events: none; transition: opacity .3s; }
.sh-arrow path { fill: none; stroke: var(--red); stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.sh-arrow.is-gone { opacity: 0; }
.scroll-hint:hover { translate: calc(-50% - 1px) calc(-50% - 3px); rotate: -6deg; }
.scroll-hint:active { translate: calc(-50% + 3px) calc(-50% + 3px); }
.scroll-hint:focus { outline: none; } .scroll-hint:focus-visible .sh-word { text-decoration: underline wavy; text-underline-offset: .3em; }
.scroll-hint.is-torn { transform: translate(70px, 160px) rotate(40deg); opacity: 0; pointer-events: none; }   /* ripped off, falls away */
@keyframes nudge { 50% { transform: translateY(6px); } }
.frame { position: absolute; left: 0; top: -3.2%; width: 100%; height: 103.2%; z-index: 3; pointer-events: none; clip-path: inset(3.2% 12px 0 0); overflow: visible; }   /* no ink line on the right edge: open, like the blue side */
/* shifted up and clipped: the frame's own top edge is cut off (the bar's line is there) while the side line reaches the top */
/* the photo-booth strip: still, shown whole */
.booth { position: relative; margin: 0; height: 90%; aspect-ratio: 608 / 2278; }
.booth img:first-child { width: 100%; height: 100%; object-fit: contain; }
.booth .sparkle { position: absolute; width: 130%; left: -15%; top: 14%; pointer-events: none; }
.tag {
  position: absolute; z-index: 2; margin: 0; text-align: center; isolation: isolate;
  font-family: var(--hand); font-size: clamp(14px, 1.45vw, 23px); line-height: .95;
}
/* Lacquer has a single weight: never fake a bold version of it */
.tag b, .hello b { font-weight: 400; }
body { font-synthesis: none; }

/* speech bubble scribbled by hand behind the words: loose overlapping loops + a scribbled tail */
.bubble { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; overflow: visible; }
.bubble .paper { fill: #fff; }
.bubble .lines path { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.bubble .lines path:nth-child(n+3) { stroke-width: 1.4; }            /* second pass + accents: thinner */
/* one bubble per photo of the strip: each sits beside its own photo, tail at the face.
   --half = half the strip's width (strip is 92% of the hero's height, ratio 608/2278) */
.zc-right { --half: 9vh; }   /* real value set by main.js from the strip's width */
.tag { translate: 0 -50%; }
.t1 { padding: 1.1em 2em 1.5em 1.6em; font-size: clamp(18px, 1.95vw, 31px); }   /* the name leads */
.t2 { padding: 2.1em 2.4em 2.4em 2.8em; }   /* the burst's spikes need more room */
.t3, .t4 { padding: 1.3em 2.1em 1.7em 1.7em; }
.t3 { font-size: clamp(15px, 1.55vw, 24.5px); }
.t2, .t4 { padding-left: 2.2em; padding-right: 1.6em; }
.t2 { padding: 2.09em 1.98em 2.51em 3.02em; }   /* centred on the star's body (tail on the left) */
.t1 { top: 14%; right: calc(50% + var(--half) + 6px); rotate: -6deg; }
.t2 { top: 35%; left: calc(50% + var(--half) + 2px); rotate: 5deg; }
.t3 { top: 56%; right: calc(50% + var(--half) + 12px); rotate: -4deg; }
.t4 { top: 77%; left: calc(50% + var(--half) + 8px); rotate: 7deg; }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; border-block: 4px solid var(--ink); position: relative; z-index: 2; }
.marquee-track { display: flex; width: max-content; animation: marquee 30s linear infinite; }
.marquee span, .marquee i {
  font-family: var(--hand); font-style: normal; white-space: nowrap;
  font-size: clamp(34px, 5vw, 76px); line-height: 1.35; padding: 0 .35em;
}
.marquee-yellow { background: var(--yellow); rotate: -1deg; margin: -26px -10px 0; }   /* overlaps the hero's bottom edge along its whole width: no white wedges */

.marquee-blue { background: var(--blue); color: #fff; rotate: 1.5deg; margin: 40px -10px 0; }
.marquee-yellow .marquee-track { animation-duration: 16s; }   /* faster than the other ribbon */
/* separator = a hand-drawn spiral doodle in ink, spinning slowly */
.marquee i .swirl { width: 1em; height: 1em; vertical-align: middle; overflow: visible; animation: swirl 3s linear infinite; }
.marquee i .swirl path { fill: none; stroke: var(--ink); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
@keyframes swirl { to { rotate: 360deg; } }
.marquee-blue .marquee-track { animation-direction: reverse; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-33.333%); } }

/* ---------- choose ---------- */
.choose {
  position: relative;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center;
  min-height: calc(100svh - var(--nav-h)); align-content: center;   /* fills the screen while it holds still */
  padding: clamp(30px, 4vw, 70px) var(--gutter);
}
/* a small nudge in the corner: scroll on (or click it) and it grows into the big "or just SCROLL!" */
.choose-scroll {
  position: absolute; right: calc(var(--gutter) + clamp(24px, 4vw, 70px)); top: calc(100svh - var(--nav-h) - clamp(110px, 15vh, 150px)); z-index: 2;   /* on the bottom of the screen once you've landed */
  font-family: var(--hand); font-size: clamp(22px, 2.2vw, 34px); line-height: 1; color: var(--ink); text-transform: none;
  background: none; border: 0; padding: 0; rotate: -5deg; transform-origin: 100% 100%; white-space: nowrap;
}
.choose-scroll span { display: inline-block; vertical-align: top; margin-left: .15em; animation: nudge 1.2s ease-in-out infinite; }
.choose-scroll svg { width: 1.5em; height: 2em; overflow: visible; rotate: 8deg; }   /* a hand-drawn arrow that loops once and drops down */
.choose-scroll svg path { fill: none; stroke: var(--red); stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.choose-scroll:hover span { animation-duration: .5s; }
.choose-scroll:focus { outline: none; } .choose-scroll:focus-visible { text-decoration: underline wavy; text-underline-offset: .3em; }
@media (max-width: 820px) { .choose-scroll { display: none; } }
.choose .preview { width: 100%; max-width: 560px; justify-self: center; }
.hand-title { font-family: var(--hand); font-weight: 400; font-size: clamp(36px, 5vw, 78px); line-height: 1.02; margin: 0 0 40px; }
.choose .hand-title { margin-bottom: clamp(20px, 3vw, 44px); }
.choose-left { width: fit-content; }   /* as wide as the title, so the stamps centre under the words */
.eye {
  display: inline-block; position: relative; vertical-align: -0.08em;
  width: .8em; height: .8em; margin: 0 .02em;
}
.eye:nth-of-type(1) { rotate: -6deg; } .eye:nth-of-type(2) { rotate: 8deg; width: .76em; }
.eye svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.eye .white { fill: #fff; }
.eye .ring { fill: var(--ink); fill-rule: evenodd; }
/* pupil: a blob, not a perfect dot */
.eye i {
  position: absolute; width: .3em; height: .28em; background: var(--ink);
  border-radius: 46% 54% 42% 58% / 55% 45% 58% 42%;
  top: 50%; left: 50%; transform: translate(calc(-50% + var(--ex, 0px)), calc(-50% + var(--ey, 0px)));
}
.eye:nth-of-type(2) i { border-radius: 58% 42% 55% 45% / 44% 56% 46% 54%; width: .28em; height: .3em; }
.slap-spark { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; pointer-events: none; z-index: 5; }
/* the three stickers at one common scale (their hand-written words end up the same size) */
.stamps { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 46px; max-width: min(400px, 66vh); margin-inline: auto; }   /* centred under the title */
.stamp { position: relative; display: block; transition: transform .3s cubic-bezier(.3,1.8,.5,1); }
.stamp img { width: 100%; }
.stamp .hov { position: absolute; inset: 0; opacity: 0; transition: opacity .2s; }
.stamp:hover .hov { opacity: 1; }
.stamp img { transition: transform .3s cubic-bezier(.3,1.8,.5,1); }
.stamp:hover img { transform: rotate(-6deg) scale(1.08); }   /* on the images: the stamp itself is animated by the scroll */
/* straight at rest (they only move on hover); ping's box matches stuff's size */
.s-who { width: 66%; } .s-stuff { width: 40%; } .s-ping { width: 44%; }
.choose-right { position: relative; display: grid; }
.preview { position: relative; aspect-ratio: 3 / 2; border: 5px solid var(--ink); box-shadow: 14px 14px 0 var(--blue); overflow: hidden; rotate: 2deg; }
.preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; scale: 1.1; transition: opacity .45s .45s, scale .9s; }   /* the old one waits until the new one is in: never an empty (white) frame */
.preview img.on { z-index: 1; opacity: 1; scale: 1; transition: opacity .45s, scale .9s; }
.stars-deco { position: absolute; width: 38%; right: -8%; top: -22%; pointer-events: none; animation: spin 18s linear infinite; }
@keyframes spin { to { rotate: 360deg; } }

/* ---------- or just scroll ---------- */
.scroll-cta { height: 190vh; position: relative; }
.scroll-pin { position: sticky; top: var(--nav-h); height: calc(100vh - var(--nav-h)); overflow: hidden; display: grid; place-items: center; }
.or, .just { position: absolute; font-family: var(--hand); font-size: clamp(50px, 8vw, 130px); color: #282828; }
.or { top: 10%; left: 34%; } .just { top: 22%; left: 52%; }
.scroll-word { display: flex; font-family: var(--hand); font-size: clamp(120px, 22vw, 380px); line-height: 1; margin-top: 10vh; }
.scroll-word b { font-weight: 400; display: inline-block; color: #282828; }
/* "still here? that's a GOOD SIGN!" before contact: same show, a longer word */
.still-cta .or { left: 18%; } .still-cta .just { left: 56%; }
.still-cta .scroll-word { font-size: clamp(80px, 14vw, 240px); }
.still-cta .scroll-word .gap { width: .3em; }

/* ---------- banners ---------- */
.banner { width: 100%; height: auto; }

/* ---------- about ---------- */
.about-head { position: relative; }
/* the blue fills the whole screen under the menu, so on arrival there's no white: the cloud comes after */
.ah-sky { background: var(--blue); min-height: calc(100svh - var(--nav-h) + 2px); display: grid; place-items: center; padding: 3vh 0 2vh; }
.ah-box { --bw: 760; --bh: 610; position: relative; width: min(64vw, calc((100svh - var(--nav-h) - 8vh) * var(--bw) / var(--bh))); aspect-ratio: var(--bw) / var(--bh); }
.work-head, .contact-head { position: relative; }
.ah-cloud { display: block; width: 100%; height: calc(100vw * 110 / 1440); margin-top: -1px; overflow: visible; }
.ah-cloud .fill { fill: var(--blue); }
/* the cloud's bottom is closed with a hand-drawn ink line, drawn in as you arrive */
.ah-cloud .edge { fill: none; stroke: var(--ink); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; filter: url(#rough); stroke-dasharray: 1; stroke-dashoffset: 0; }
.ah { position: absolute; height: auto; will-change: transform; }
.about { overflow: hidden; }
.about-grid {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 64px);
  --room: calc(100svh - var(--nav-h) - 100vw * 110 / 1440 - 7vh);   /* the screen under the cloud */ align-items: center;
  min-height: calc(100svh - var(--nav-h) - 100vw * 110 / 1440); box-sizing: border-box;   /* the rest of the screen, under the cloud */
  max-width: 1320px; margin: 0 auto; padding: 3vh var(--gutter) 4vh;
}
.about-photo-wrap { position: relative; }
/* the drawing lives in a frame, like the card in "choose": the frame lands first, then Angel draws himself in it */
.illo-frame { position: relative; width: 100%; max-width: min(560px, calc(var(--room) - 20px)); margin: 0 auto; aspect-ratio: 1; background: #fff;
  border: 5px solid var(--ink); box-shadow: 14px 14px 0 var(--blue); rotate: -2deg; overflow: hidden; }
.about-illo { display: block; width: 100%; height: 100%; }
.about-illo .trace { fill: none; stroke: #fff; stroke-width: 110; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.about-illo .ink, .about-illo .ink-bit { fill: #000; }
.about-illo .scrib { fill: none; stroke: #000; stroke-width: 34; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }   /* the shirt's hatching, carried down to the frame */
.about-illo .dot { transform-box: fill-box; transform-origin: 50% 50%; }
.folder { --tab: var(--blue-soft); }
/* the folder is Angel's own drawing, at its own proportions (never squashed): tall arched tabs + wobbly body.
   Everything inside is sized from the folder's width (cqw), so it always fits the drawing. */
.folder { position: relative; width: 100%; max-width: min(860px, calc(var(--room) * 511.5 / 392)); aspect-ratio: 511.5 / 392; container-type: inline-size; justify-self: center; }
.folder-art { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.folder-art .body { fill: var(--tab); transition: fill .35s; }
/* a light ink outline on every piece of the folder + the hard ink shadow of the house style (kept small: the folder is already loud) */
.folder-art { filter: drop-shadow(5px 5px 0 var(--ink)); }
.folder-art .body, .folder-art .tab { stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.folder-art .tab { transform-box: fill-box; transform-origin: 50% 100%; transition: translate .25s cubic-bezier(.3,1.8,.5,1); }
.folder-tabs { position: absolute; inset: 0; pointer-events: none; }
.folder-tabs button {
  position: absolute; background: none; border: 0; cursor: pointer; padding: 0; pointer-events: auto;
  font-family: var(--hand); font-size: 3.2cqw; line-height: 1; color: #fff; display: grid; place-items: center;
  transition: translate .25s cubic-bezier(.3,1.8,.5,1);
}
.folder-tabs button[data-tab="resume"] { rotate: -7deg; }
.folder-tabs button[data-tab="studies"] { rotate: -3deg; color: var(--ink); }
.folder-tabs button[data-tab="job"] { rotate: -3deg; }
.folder-tabs button[data-tab="skills"] { color: var(--ink); }
.folder-tabs button:hover { translate: 0 -4px; }
.folder-tabs button:focus { outline: none; }
.folder-tabs button:focus-visible { outline: none; text-decoration: underline wavy; text-underline-offset: .25em; }   /* keyboard: a wavy underline, no box */
.folder[data-active="studies"] { --tab: #cf2e25; } .folder[data-active="job"] { --tab: var(--green); } .folder[data-active="skills"] { --tab: var(--lemon); }
/* the content lives inside the body of the drawing */
.folder-body { position: absolute; left: 8%; right: 6%; top: 27%; bottom: 9%; color: #fff; font-size: 2.3cqw; line-height: 1.4; transition: color .35s; display: flex; flex-direction: column; justify-content: center; }
.folder[data-active="skills"] .folder-body { color: var(--ink); }
.panel { display: none; }
.folder[data-active="resume"] [data-panel="resume"], .folder[data-active="studies"] [data-panel="studies"],
.folder[data-active="job"] [data-panel="job"], .folder[data-active="skills"] [data-panel="skills"] { display: block; animation: pop .45s cubic-bezier(.3,1.6,.5,1); }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.97); } }
.panel p { margin: 0 0 .8em; }
.lead { font-size: 1.1em; line-height: 1.3; }
/* studies: two big tilted blocks stepping down diagonally, each with a short note */
.degree { display: flex; align-items: flex-start; gap: .9em; line-height: 1.3; max-width: 34em; }
.degree + .degree { margin: 1.1em 0 0; }
.deg { font-family: var(--hand); font-size: 2.6em; line-height: 1; flex: none; width: 1.6em; color: #fff; rotate: -8deg; }
.degree + .degree .deg { rotate: 6deg; }
.degree b { display: block; font-size: 1.3em; line-height: 1.15; }
.degree .school { display: block; font-size: .9em; opacity: .85; margin-top: .15em; }
.deg-note { margin: .4em 0 0 !important; font-size: .95em; }
.award { display: inline-block; margin-top: .45em; padding: .15em .6em .2em; font-family: var(--hand); font-size: .9em; color: var(--ink); background: var(--lemon); border: .14em solid var(--ink); border-radius: 1em; rotate: -3deg; box-shadow: .12em .12em 0 var(--ink); }
/* handwritten bits inside the folder use the Figma's script */
/* accents inside the folder: Poppins too (italic) */
.folder .hand { font-family: var(--sans); font-style: italic; font-weight: 600; }
/* job exp: a wavy hand-drawn arrow climbing up to "you!!!" */
/* job exp: a hand-drawn road, oldest stop first, that ends pointing at "you!!!" (the next stop) */
.road { position: relative; padding-bottom: 6.5em; }
.road-line { position: absolute; left: .5em; width: 78%; top: 2.55em; overflow: visible; }
.road-line path { fill: none; stroke: #fff; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.stops { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr) .9fr; gap: 0 1.2em; }
.stops li { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.3; }
.stops .when { font-family: var(--hand); font-size: .95em; line-height: 1; height: 2.1em; display: flex; align-items: flex-end; white-space: nowrap; }
.stop-dot { width: 1.2em; height: 1.2em; border-radius: 50%; background: var(--tab); border: .25em solid #fff; margin: .5em 0 .8em; position: relative; z-index: 1; transition: background .35s; }
.stops li:nth-child(3) .stop-dot { background: #fff; }   /* where Angel is now: filled */
.stops b { font-weight: 700; font-size: 1em; line-height: 1.2; }
.stops li > span:last-child:not(.you-word) { opacity: .85; font-size: .92em; }
.stops .you .when { opacity: .85; }
.you-stamp { position: relative; display: grid; place-items: center; width: 6.2em; aspect-ratio: 1; rotate: -7deg; margin: .5em 0 0 -.6em; filter: drop-shadow(4px 4px 0 var(--ink)); transition: transform .3s cubic-bezier(.3,1.8,.5,1); }
.you-stamp:hover { transform: rotate(-8deg) scale(1.08); }
.you-stamp .frame-wavy path { fill: var(--red); }
.you-word { position: relative; font-family: var(--hand); font-size: 1.6em; line-height: 1; color: #fff; }
.freelance { position: absolute; right: 0; bottom: .2em; margin: 0; font-family: var(--hand); font-size: 1.25em; line-height: 1.05; rotate: -4deg; }

.skills { list-style: none; padding: 0; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 15.5cqw); gap: 2.2cqw 3cqw; justify-content: center; }
.skills li { position: relative; aspect-ratio: 1; display: grid; place-items: center; color: var(--lemon); transition: transform .3s cubic-bezier(.3,1.8,.5,1); }
/* each stamp tilted like in the design */
.skills li:nth-child(1) { rotate: 3deg; } .skills li:nth-child(2) { rotate: -2deg; } .skills li:nth-child(3) { rotate: -4deg; }
.skills li:nth-child(4) { rotate: 6deg; } .skills li:nth-child(5) { rotate: 3deg; translate: -10px 0; } .skills li:nth-child(6) { rotate: -9deg; }
.skills li:nth-child(7) { rotate: 2deg; translate: 8px 0; }
.skills li:hover { transform: rotate(-10deg) scale(1.1); }
.frame-wavy { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.frame-wavy path { fill: var(--lemon); stroke: var(--ink); stroke-width: 3.4; stroke-linejoin: round; transition: fill .2s; }
.skills li:hover .frame-wavy path { fill: #cfc341; }   /* the olive tone from the design, on hover */
.skills .app { position: relative; width: 70%; aspect-ratio: 1; display: grid; place-items: center; background: var(--ink); border-radius: 22%; font-weight: 700; font-size: 4.6cqw; letter-spacing: -.02em; }
.skills .canva { border-radius: 50%; width: 76%; font-family: Georgia, "Times New Roman", serif; font-style: italic; font-weight: 700; font-size: 2.9cqw; }
.skills .fig { width: 34%; color: var(--lemon); }   /* Figma in the same black tile as the others */
/* hover a stamp: a little ink tag with how much Angel uses it, in wobbly stars */
.skills li:hover, .skills li:focus-within { z-index: 2; }
.rate { position: absolute; left: 50%; top: 100%; translate: -50% .3em; display: flex; flex-direction: column; align-items: center; gap: .15em;
  padding: .35em .55em .4em; background: #fff; color: var(--ink); border: .18em solid var(--ink); border-radius: .7em; box-shadow: .22em .22em 0 var(--ink);
  font-size: 2.2cqw; white-space: nowrap; pointer-events: none; opacity: 0; scale: .6; rotate: 4deg; transition: opacity .15s, scale .3s cubic-bezier(.3,1.8,.5,1); }
.rate-name { font-family: var(--hand); font-size: 1.15em; line-height: 1; }
.rate-stars { display: flex; gap: .1em; }
.star { width: 1.5em; height: 1.5em; overflow: visible; opacity: 0; scale: 0; transition: scale .3s cubic-bezier(.3,2,.5,1), opacity .1s; }
.star path { fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linejoin: round; }
.star.on path { fill: var(--yellow); }
.skills li:hover .rate { opacity: 1; scale: 1; }
.skills li:hover .star { opacity: 1; scale: 1; }
.skills li:hover .star:nth-child(2) { transition-delay: .05s; } .skills li:hover .star:nth-child(3) { transition-delay: .1s; }
.skills li:hover .star:nth-child(4) { transition-delay: .15s; } .skills li:hover .star:nth-child(5) { transition-delay: .2s; }

.facts { position: relative; z-index: 3; max-width: 1240px; margin: 0 auto; padding: 6vh var(--gutter);
  min-height: calc(100svh - var(--nav-h)); box-sizing: border-box; display: flex; flex-direction: column; justify-content: center; }   /* a screen of its own: the next section never peeks in */   /* a dragged sticker stays on top of the next section */
/* fun facts: a big ink title with a red squiggle, and four wavy stamps in the brand colours, slapped on the page */
.facts-head { display: flex; align-items: flex-end; gap: 28px; margin-bottom: 34px; }
.facts-title { position: relative; margin: 0; font-family: var(--hand); font-weight: 400; color: var(--ink); font-size: clamp(36px, 5vw, 78px); line-height: 1; rotate: -2deg; }   /* same scale as the other section titles */
.facts-squiggle { position: absolute; left: 2%; bottom: -.2em; width: 96%; overflow: visible; }
.facts-squiggle path { fill: none; stroke: #ff2a1f; stroke-width: 6; stroke-linecap: round; }
.facts-hint { position: relative; margin: 0 0 6px; font-family: var(--hand); font-size: clamp(15px, 1.4vw, 20px); line-height: 1.15; rotate: 4deg; padding-right: 50px; }
.facts-hint svg { position: absolute; right: 0; top: 60%; width: 44px; overflow: visible; }
.facts-hint path { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.stickers { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 30px); }
.sticker {
  --c: var(--blue); position: relative; aspect-ratio: 1; display: flex; flex-direction: column; justify-content: center;
  padding: 15% 14%; color: #fff; font-size: clamp(13px, 1.15vw, 16px); line-height: 1.4;
  cursor: grab; touch-action: none; user-select: none; filter: drop-shadow(7px 7px 0 var(--ink)); transition: filter .2s, scale .2s;
}
.sticker .frame-wavy path { fill: var(--c); stroke-width: 3.5; vector-effect: non-scaling-stroke; }
.sticker > :not(.frame-wavy) { position: relative; }
.sticker:hover { scale: 1.03; }
.sticker:active { cursor: grabbing; filter: drop-shadow(12px 12px 0 var(--ink)); z-index: 5; }
.sticker b { display: block; font-family: var(--hand); font-weight: 400; font-size: 2.6em; line-height: 1; margin-bottom: .25em; }
.sticker p { margin: 0; }
.sticker em { font-style: normal; font-weight: 700; }
.sticker .codes { white-space: nowrap; }
.s1 { --c: var(--blue); rotate: -4deg; } .s2 { --c: #cf2e25; rotate: 3deg; } .slot-s2 { margin-top: 46px; }
.s3 { --c: var(--lemon); color: var(--ink); rotate: -2deg; } .s4 { --c: var(--green); rotate: 4deg; } .slot-s4 { margin-top: 34px; }
/* each sticker hides a little note: drag it off its spot and the note shows up in the empty outline */
.slot { position: relative; }
.secret { position: absolute; inset: 6%; margin: 0; display: grid; place-items: center; padding: 12%; text-align: center;
  font-family: var(--hand); font-size: clamp(15px, 1.5vw, 22px); line-height: 1.1; color: var(--ink);
  border: 3px dashed var(--ink); border-radius: 18px; opacity: 0; scale: .8; transition: opacity .3s, scale .4s cubic-bezier(.3,1.8,.5,1); }
.slot.moved .secret { opacity: 1; scale: 1; }
.slot .sticker { z-index: 1; }

/* ---------- work ---------- */
.work { position: relative; }
/* the projects: a compact grid under the cloud, with chunky ink filter buttons (one click: only that kind of work) */
.work-body { max-width: 1240px; margin: 0 auto; padding: max(7vh, 50px) var(--gutter) 8vh; min-height: calc(100svh - var(--nav-h) - 100vw * 110 / 1440); box-sizing: border-box; }
.work-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: clamp(18px, 3vh, 30px); }
.wf { --c: var(--blue); position: relative; font-family: var(--hand); font-size: clamp(15px, 1.4vw, 19px); line-height: 1; color: var(--ink); cursor: pointer;
  padding: .55em 1.1em .45em; background: #fff; border: 3px solid var(--ink); border-radius: 999px; box-shadow: 4px 4px 0 var(--ink);
  transition: translate .15s, box-shadow .15s, background .2s, rotate .25s cubic-bezier(.3,1.8,.5,1); }
.wf sup { font-family: var(--sans); font-size: .62em; font-weight: 700; margin-left: .3em; vertical-align: .5em; }
.wf:hover { translate: -1px -2px; box-shadow: 6px 6px 0 var(--ink); }
.wf:active { translate: 3px 3px; box-shadow: 1px 1px 0 var(--ink); }
.wf.is-on { background: var(--c); rotate: -3deg; }
.wf[data-filter="all"].is-on, .wf[data-filter="posters"].is-on, .wf[data-filter="branding"].is-on { color: #fff; }
.wf:focus { outline: none; } .wf:focus-visible { box-shadow: 6px 6px 0 var(--ink); text-decoration: underline wavy; text-underline-offset: .3em; }   /* keyboard: wavy underline, no dashed box */
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(36px, 6vh, 64px) clamp(28px, 3.4vw, 54px); padding-top: 14px; }
.work-card { position: relative; display: flex; flex-direction: column; color: var(--ink); text-decoration: none; }
/* the photo sits in a thick ink frame with a hard shadow in its category colour (like the portrait in "about") */
.wc-img { position: relative; display: block; aspect-ratio: 4 / 3; border: 4px solid var(--ink); overflow: hidden; background: #fff;   /* square, like the choose / about frames */
  box-shadow: 9px 9px 0 var(--c); transition: translate .35s cubic-bezier(.3,1.6,.5,1), rotate .35s cubic-bezier(.3,1.6,.5,1), box-shadow .35s; }
.wc-img img { width: 100%; height: 100%; object-fit: cover; transition: scale .6s; }
/* hover: the frame lifts and tilts, and a panel in the category colour slides up to tell the story */
.wc-story { position: absolute; inset: auto 0 0; display: flex; flex-direction: column; gap: .7em; padding: 1.1em 1.2em 1.2em;
  background: var(--c); color: #fff; border-top: 4px solid var(--ink); font-size: clamp(13px, 1.05vw, 15px); line-height: 1.4;
  translate: 0 101%; transition: translate .45s cubic-bezier(.3,1.3,.5,1); }
.wc-story b { font-family: var(--hand); font-weight: 400; font-size: 1.15em; }
.work-card[data-cat="editorial"] .wc-story, .work-card[data-cat="editorial"] .wc-cat { color: var(--ink); }   /* dark text on yellow */
.work-card:hover .wc-img { translate: 0 -8px; rotate: -2deg; box-shadow: 14px 14px 0 var(--c); }
.work-card:hover .wc-img img { scale: 1.08; }
.work-card:hover .wc-story, .work-card:focus-visible .wc-story { translate: 0 0; }
/* the category as a little sticker slapped on the frame's corner */
.wc-cat { position: absolute; top: -20px; left: -16px; z-index: 6; font-family: var(--hand); font-size: clamp(15px, 1.35vw, 19px); line-height: 1;   /* slapped on the corner, diagonal */
  padding: .5em 1em .4em; background: var(--c); color: #fff; border: 3px solid var(--ink); border-radius: 999px; rotate: -14deg; transition: rotate .35s cubic-bezier(.3,1.8,.5,1); }
.work-card:hover .wc-cat { rotate: -4deg; }
.work-card h3 { margin: 18px 0 2px; font-family: var(--hand); font-weight: 400; font-size: clamp(22px, 2.2vw, 32px); line-height: 1; }
.wc-tag { font-size: clamp(13px, 1.1vw, 16px); line-height: 1.3; opacity: .7; }
.work-card:focus { outline: none; } .work-card:focus-visible .wc-img { outline: 3px dashed var(--ink); outline-offset: 6px; }
.is-soon { cursor: default; }
.wc-soon { position: absolute; left: 50%; top: 50%; translate: -50% -50%; rotate: -8deg; white-space: nowrap; font-family: var(--hand); font-size: clamp(15px, 1.4vw, 20px);
  padding: .35em .8em .25em; background: var(--yellow); border: 3px solid var(--ink); border-radius: 999px; }
.is-soon .wc-img img { filter: grayscale(.6) blur(1px); }
.work-card.is-out { display: none; }
.pill {
  align-self: flex-start; display: inline-block; font-family: var(--hand); font-size: 18px; line-height: 1;
  padding: 8px 18px 6px; border: 3px solid var(--ink); border-radius: 999px; color: #fff;
}
.pill-red { background: var(--red); } .pill-yellow { background: var(--yellow); } .pill-green { background: var(--green); }

/* ---------- contact ---------- */
.contact { overflow: hidden; }
/* under the cloud: a screen of its own, the title + direct ways on the left, a short form on the right */
.contact-body {
  max-width: 1240px; margin: 0 auto; padding: 4vh var(--gutter);
  min-height: calc(100svh - var(--nav-h)); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center;
}
.cb-title { margin: 0; font-family: var(--hand); font-weight: 400; font-size: clamp(34px, 4.6vw, 68px); line-height: 1; }
.jitter { white-space: nowrap; }
.jitter span { display: inline-block; transition: transform .25s cubic-bezier(.3,1.8,.5,1); }
.cb-lead { margin: .7em 0 1.1em; font-size: clamp(14px, 1.15vw, 17px); line-height: 1.55; max-width: 34em; }
.cb-lead b { display: block; margin-bottom: .4em; font-family: var(--hand); font-weight: 400; font-size: 1.4em; line-height: 1.2; color: var(--blue); }   /* the call to action, loud */
/* first screen: the email and the phone, huge, on coloured tapes, with Angel's drawings slapped on as stickers */
.contact-big { min-height: calc(100svh - var(--nav-h) - 100vw * 110 / 1440); display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0; padding: 1vh var(--gutter) 2vh; text-align: center; }
/* below: Instagram and LinkedIn as wobbly hand-drawn tiles, then the way down to the form */
.cg-social { display: flex; align-items: center; justify-content: flex-start; align-self: flex-start; margin-left: max(var(--gutter), 12%) !important; gap: clamp(12px, 1.6vw, 22px); margin-top: 1vh; }
.soc { display: block; width: clamp(54px, 5.6vw, 84px); transition: translate .2s, rotate .3s cubic-bezier(.3,1.8,.5,1); }
.soc-ig { rotate: -8deg; } .soc-in { rotate: 7deg; }
.soc:hover { translate: 0 -5px; rotate: 0deg; }
.soc-svg { display: block; width: 100%; overflow: visible; filter: drop-shadow(4px 4px 0 var(--ink)); }
.soc-svg path { fill: none; stroke: var(--ink); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.soc-svg .tile { fill: var(--c); }
.soc-svg .ln { stroke: #fff; stroke-width: 7; } .soc-svg .dot { fill: #fff; stroke: #fff; stroke-width: 3; }
.cg-hi, .cg-or { margin: 0; font-family: var(--hand); }
.cg-or { position: absolute; z-index: 3; right: max(var(--gutter), 4%); bottom: 0; rotate: 4deg; isolation: isolate; padding: 1.6em 3em 1.6em 2.2em; font-size: clamp(16px, 1.7vw, 26px); line-height: 1; white-space: nowrap; }
.cg-or .bubble .lines path { stroke-width: 2.6; }
.cg-or .cg-arrow { position: absolute; right: calc(100% - .35em); top: 42%; width: 2.6em; height: 3.5em; overflow: visible; }   /* same looping arrow as "or just scroll" (mirrored): leaves the bubble from its left side, tail runs down to the form */
.cg-or .cg-arrow path { stroke-dasharray: 1; stroke-dashoffset: 1; fill: none; stroke: var(--red); stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; }
/* a big phone and a big envelope (Angel's drawings), each with its contact crossed out by the scribble underneath;
   when they show up the scribble rubs itself off and the number / email appear */
/* two big buttons, same structure each: a marker circle in colour with the drawing (what it is) and under it a white
   pill like the work filters with the number / email in ink (the thing you read and tap). The whole thing is the link.
   Colour lives only in the circles; the pills stay white so the text is the easiest thing on the screen to read.
   The pill arrives crossed out with an ink scribble that then rubs off */
.cg-pair { display: flex; justify-content: center; align-items: flex-start; gap: clamp(40px, 8vw, 140px); width: 100%; margin: 0 0 4vh; }
.cg-item { --hh: clamp(160px, 36vh, 340px); position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: center;
  width: var(--hh); font-size: calc(var(--hh) * .085); color: var(--ink); text-decoration: none; }
.cg-phone { rotate: -4deg; } .cg-mail { rotate: 3deg; margin-top: 6vh; }   /* one a bit higher than the other */
.cg-item .rbubble { position: relative; display: block; width: 100%; height: auto; aspect-ratio: 1; overflow: visible; filter: drop-shadow(6px 6px 0 var(--ink));
  transition: rotate .35s cubic-bezier(.3,1.8,.5,1), scale .35s cubic-bezier(.3,1.8,.5,1); }
.rbubble .paper { fill: var(--c); }
.rbubble .lines path { fill: none; stroke: var(--ink); stroke-width: 3.6; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.rbubble .lines path:nth-child(n+2) { stroke-width: 2.4; }
.cg-art { position: absolute; top: 0; left: 0; width: 100%; height: var(--hh); background: var(--ink);   /* covers the circle; the drawing sits in its middle */
  -webkit-mask: var(--ic) 50% 46% / auto var(--h) no-repeat; mask: var(--ic) 50% 46% / auto var(--h) no-repeat; }
.cg-phone .cg-art { --h: 5em; rotate: -10deg; }
.cg-mail .cg-art { --h: 3.6em; rotate: 8deg; background: #fff; }
/* the pill: the "all / editorial / posters" filters, overlapping the bottom of the circle */
.cg-line { position: relative; z-index: 2; margin-top: -1.3em; padding: .55em 1.1em .45em; background: #fff; border: 3px solid var(--ink); border-radius: 999px;
  box-shadow: 4px 4px 0 var(--ink); transition: translate .15s, box-shadow .15s; }
.cg-phone .cg-line { rotate: 3deg; } .cg-mail .cg-line { rotate: -3deg; }
.cg-tape { display: block; font-family: var(--hand); font-size: 1.1em; line-height: 1; white-space: nowrap; letter-spacing: .02em; -webkit-text-stroke: .03em currentColor; }
.cg-tape span { display: inline-block; }
.cg-item:hover .rbubble { rotate: -6deg; scale: 1.04; }
.cg-item:hover .cg-line { translate: -1px -2px; box-shadow: 6px 6px 0 var(--ink); }
.cg-item:active .cg-line { translate: 3px 3px; box-shadow: 1px 1px 0 var(--ink); }
.cg-item:focus { outline: none; } .cg-item:focus-visible .cg-tape { text-decoration: underline wavy; text-underline-offset: .3em; }
/* "the quick way" in a little bubble of its own, tilted, up on the left */
.contact-big { position: relative; }
.cg-hi { position: absolute; z-index: 3; left: max(var(--gutter), 7%); top: 3vh; rotate: -9deg; isolation: isolate; padding: 1.1em 2em 1.5em 1.6em; font-size: clamp(16px, 1.7vw, 26px); line-height: 1; }
.cg-hi .bubble .lines path { stroke-width: 2.6; }
/* the crossing-out: a fast marker zigzag drawn over the tape (built in main.js to the tape's own size, never stretched) */
.cg-scrib { position: absolute; left: 3%; top: 4%; width: 94%; height: 92%; z-index: 2; overflow: visible; pointer-events: none; }
.cg-scrib .p2 { opacity: .85; }
.cg-scrib path { fill: none; stroke: var(--ink); stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.ic-mail { --ic: url(img/ic-mail.png); } .ic-phone { --ic: url(img/ic-phone.png); }
/* the form: one white card, ink lines, the topic picked with pills like the project filters */
.contact-form { display: grid; gap: 10px; padding: clamp(14px, 1.8vw, 28px) clamp(18px, 2.2vw, 30px); border: 4px solid var(--ink); border-radius: 22px; background: #fff; box-shadow: 10px 10px 0 var(--red); rotate: 1deg; }
.cf-about { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cf-about legend, .cf-field > span { font-family: var(--hand); font-size: clamp(16px, 1.4vw, 20px); padding: 0; margin-bottom: 6px; }
.cf-chip input { position: absolute; opacity: 0; pointer-events: none; }
.cf-chip span { display: inline-block; font-family: var(--hand); font-size: clamp(12px, 1.1vw, 15px); line-height: 1; padding: .55em 1em .45em; border: 3px solid var(--ink); border-radius: 999px;
  background: #fff; box-shadow: 3px 3px 0 var(--ink); cursor: pointer; transition: translate .15s, box-shadow .15s, background .2s, rotate .25s cubic-bezier(.3,1.8,.5,1); }
.cf-chip span:hover { translate: -1px -2px; box-shadow: 5px 5px 0 var(--ink); }
.cf-chip input:checked + span { background: var(--c); rotate: -3deg; }
.cf-chip input:checked + span { color: var(--t, #fff); }   /* (ink on lemon) */
.cf-chip input:focus-visible + span { text-decoration: underline wavy; text-underline-offset: .3em; }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cf-field { display: grid; }
.cf-field input, .cf-field textarea { width: 100%; font: inherit; font-size: 15px; color: var(--ink); background: #fff; border: 3px solid var(--ink); border-radius: 14px; padding: 8px 12px; transition: box-shadow .2s; }
.cf-field textarea { resize: vertical; min-height: 64px; }
.cf-field input:focus, .cf-field textarea:focus { outline: none; box-shadow: 5px 5px 0 var(--yellow); }
.cf-send { justify-self: start; font-family: var(--hand); font-size: clamp(18px, 1.6vw, 22px); line-height: 1; color: var(--ink); cursor: pointer;
  padding: .6em 1.4em .5em; background: var(--yellow); border: 3px solid var(--ink); border-radius: 999px; box-shadow: 4px 4px 0 var(--ink); transition: translate .15s, box-shadow .15s, rotate .25s cubic-bezier(.3,1.8,.5,1); }
.cf-send:hover { translate: -1px -2px; box-shadow: 6px 6px 0 var(--ink); rotate: -3deg; }
.cf-send:active { translate: 3px 3px; box-shadow: 1px 1px 0 var(--ink); }
.cf-done { margin: 0; font-size: 14px; min-height: 1em; }
@media (max-width: 820px) { .contact-body { grid-template-columns: 1fr; } .cf-row { grid-template-columns: 1fr; } }
/* phone: the call and mail circles stack, one under the other */
@media (max-width: 600px) {
  .contact-big { padding: 90px 0 30px; }
  .cg-pair { flex-direction: column; align-items: center; gap: 34px; }
  .cg-item { --hh: min(210px, 56vw); }
  .cg-mail { margin-top: 0; }
  .cg-hi { top: 22px; }
  .cg-social { margin-left: var(--gutter) !important; }
  .cg-or { position: relative; right: auto; bottom: auto; align-self: flex-end; margin: 18px var(--gutter) 0 0; }
}

/* ---------- footer ---------- */
.footer { background: var(--ink); color: #fff; padding: 30px var(--gutter) 20px; overflow: hidden; }
.giant { margin: 0; font-family: var(--hand); font-size: clamp(22px, 2.6vw, 40px); line-height: 1; display: flex; align-items: center; justify-content: center; gap: .25em; overflow: hidden; padding: .2em 0; }
.giant span:last-child { color: var(--yellow); }
.giant-logo .angel { width: 1.7em; translate: 0 -.12em; rotate: -6deg; }   /* the logo cutting into the name, like the blue n in Ovunque */
.giant-logo:hover .wing-l { animation: flap-l .5s ease-in-out infinite alternate; }
.giant-logo:hover .wing-r { animation: flap-r .5s ease-in-out infinite alternate; }
.footnote { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin: 14px 0 0; font-size: 13px; opacity: .8; }

/* ---------- project pages ----------
   a case study read like a normal web page: the hero photo takes the whole screen, then the facts,
   then pictures and words taking turns. Poppins at reading size; the hand font only for names and labels. */
.p-hero { position: relative; height: calc(100svh - var(--nav-h)); min-height: 420px; overflow: hidden; background: var(--ink); }
.p-hero-img { position: absolute; inset: 0; }
.p-hero-img img { width: 100%; height: 112%; object-fit: cover; object-position: 50% 15%; }
.p-hint { position: absolute; right: var(--gutter); bottom: 22px; padding: .45em 1em .4em; font-family: var(--hand); font-size: 15px; color: var(--ink); background: #fff; border: 3px solid var(--ink); border-radius: 999px; box-shadow: 3px 3px 0 var(--ink); rotate: -4deg; animation: nudge 1.4s ease-in-out infinite; }

/* the intro stops a little short of a full screen: a strip of the main photo stays in view above it */
.project { --peek: 18svh; }
.p-intro { min-height: calc(100svh - var(--nav-h) - var(--peek)); box-sizing: border-box; align-content: center; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 32px clamp(40px, 6vw, 96px); max-width: 1160px; align-items: center !important; margin: 0 auto; padding: clamp(56px, 9vh, 96px) var(--gutter) clamp(56px, 8vh, 88px); align-items: start; }
.p-head { display: flex; justify-content: flex-start; padding-top: 18px; margin-left: -1em; }
.p-badge { position: relative; isolation: isolate; display: inline-flex; flex-direction: column; align-items: flex-start; padding: 1.9em 4em 3em 2.6em; rotate: -4deg; }
.p-badge .bubble .lines path { stroke-width: 2.6; }
.p-badge .pill { position: absolute; top: -.4em; left: 1.4em; font-size: 15px; rotate: -6deg; }
.p-name { margin: 0; font-family: var(--hand); font-weight: 400; font-size: clamp(52px, 6.4vw, 92px); line-height: .95; }
.p-sub { margin: 8px 0 0; font-size: 16px; font-style: italic; opacity: .75; }
.p-about > p { margin: 0; font-size: var(--p-fs); line-height: 1.7; max-width: 68ch; }
.p-meta { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 18px clamp(24px, 4vw, 56px); margin: 32px 0 0; padding: 22px 0 0; border-top: 3px solid var(--ink); }
.p-meta dt { font-family: var(--hand); font-size: 14px; color: var(--blue); }
.p-meta dd { margin: 4px 0 0; font-size: 15px; line-height: 1.4; white-space: nowrap; }

/* one text size for every paragraph of a case study; lines kept long so the text takes fewer lines */
.project { --p-fs: 18px; }
.p-text { box-sizing: content-box; max-width: 880px; min-height: calc(100svh - var(--nav-h)); margin: 0 auto; padding: 0 var(--gutter); display: flex; flex-direction: column; justify-content: center; font-size: var(--p-fs); line-height: 1.7; }
.p-text p { margin: 0 0 1.4em; } .p-text p:last-child { margin: 0; }
/* text with a hand-lettered heading beside it; on Capicua a little train rolls along the bottom */
.p-text.has-kick { position: relative; box-sizing: border-box; max-width: 1160px; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: center; align-content: center; gap: 28px clamp(36px, 6vw, 96px); overflow: hidden; }
.p-kick { margin: 0; font-family: var(--hand); font-weight: 400; font-size: clamp(40px, 5.2vw, 76px); line-height: 1; color: #f37268; rotate: -4deg; text-wrap: balance; }
.p-kick::after { content: ""; display: block; width: 70%; height: 14px; margin-top: 14px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'%3E%3Cpath d='M3 9 C 40 3, 80 12, 120 6 S 180 5, 197 8' fill='none' stroke='%23ffcb05' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%; }
.p-text-body p { margin: 0 0 1.2em; } .p-text-body p:last-child { margin: 0; }
.p-mini { grid-column: 1 / -1; position: relative; height: clamp(78px, 15vh, 132px); }
.p-mini-1 { margin-bottom: clamp(8px, 3vh, 30px); } .p-mini-2 { margin-top: clamp(8px, 3vh, 30px); }
.p-mini-rail { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 4px; }
.p-mini-train { position: absolute; bottom: 4px; left: 50%; translate: -50% 0; height: calc(100% - 4px); width: auto; overflow: visible; }   /* both meet in the middle */
.p-mini-1 .p-mini-train { aspect-ratio: 670 / 322; }
.p-mini-2 .p-mini-train { aspect-ratio: 706 / 388; }
@media (max-width: 820px) { .p-text.has-kick { grid-template-columns: 1fr; } }
.p-img { margin: 0 auto clamp(64px, 10vh, 110px); }
.p-img img, .p-img video { display: block; width: 100%; height: 100%; object-fit: cover; }
.p-full { width: 100%; }
.p-wide { width: min(1160px, calc(100% - 2 * var(--gutter))); }
.p-mid { width: min(860px, calc(100% - 2 * var(--gutter))); }
/* every framed picture gets the same marker line + offset shadow as the rest of the site (drawn by frameIt) */
.p-frame { position: relative; overflow: hidden; border: 4px solid var(--ink); box-shadow: 9px 9px 0 var(--ink); }
.theme-yellow .p-frame { box-shadow: 9px 9px 0 var(--yellow); } .theme-red .p-frame { box-shadow: 9px 9px 0 var(--red); }
.theme-green .p-frame { box-shadow: 9px 9px 0 var(--green); }

/* picture + words side by side (words centred on the picture) */
/* a video that starts as a little window and grows to fill the screen while you scroll (pinned) */
.p-vgrow { position: relative; height: calc(100svh - var(--nav-h)); min-height: 420px; overflow: hidden; background: #fff; }
.pv-box { position: absolute; inset: 0; background: #111; clip-path: inset(38% 40% round 22px); will-change: clip-path; }
.pv-box video { display: block; width: 100%; height: 100%; object-fit: contain; }   /* the whole frame, nothing cropped */
.pv-sound { position: absolute; right: var(--gutter); bottom: 22px; padding: .45em 1em .4em; font-family: var(--hand); font-size: 15px; color: var(--ink); background: #fff; border: 3px solid var(--ink); border-radius: 999px; box-shadow: 3px 3px 0 var(--ink); rotate: -4deg; cursor: pointer; opacity: 0; transition: opacity .3s, transform .3s cubic-bezier(.3,1.8,.5,1); }
.p-vgrow.is-full .pv-sound { opacity: 1; }
.pv-sound:hover { transform: rotate(4deg) scale(1.06); }

/* the picture as big as the screen lets it, laid down a little crooked; the words beside it */
.p-split { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(36px, 6vw, 96px); align-items: center; max-width: 1160px; min-height: calc(100svh - var(--nav-h)); box-sizing: border-box; margin: 0 auto clamp(40px, 8vh, 90px); padding: 0 var(--gutter); }
.p-split.is-flip { grid-template-columns: minmax(0, 1fr) auto; }
.p-split.is-flip .p-img { order: 2; rotate: 2.5deg; }
.p-split .p-img { margin: 0; width: min(46vw, 520px, calc((100svh - var(--nav-h) - 90px) * var(--ar, .7))); rotate: -2.5deg; }
.p-copy p { margin: 0 0 1.1em; font-size: var(--p-fs); line-height: 1.7; max-width: 60ch; }
.p-copy p:last-child { margin-bottom: 0; }
/* Capicua: the logo and its trains, each piece cut from the same picture, and the stars from the cover */
.cap-trains { height: calc(100svh - var(--nav-h)); min-height: 420px; display: grid; place-items: center; margin-bottom: clamp(40px, 8vh, 90px); overflow: hidden; }
.ct-stage { width: min(calc(100vw - 2 * var(--gutter)), 760px, calc((100svh - var(--nav-h)) * .76 * var(--ar))); aspect-ratio: var(--ar); }
.ct-svg { display: block; width: 100%; height: 100%; overflow: visible; }
.ct-car { will-change: transform; }
/* two upright photos */
.p-pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 40px); max-width: 1160px; margin: 0 auto clamp(64px, 10vh, 110px); padding: 0 var(--gutter); }
.p-pair .p-img { margin: 0; }
.p-pair .p-img:nth-child(2) { margin-top: clamp(40px, 8vw, 120px); }   /* a little offset, like photos dropped on a table */
@media (max-width: 760px) {
  .p-intro, .p-split { grid-template-columns: 1fr; }
  .p-split.is-flip .p-img { order: 0; }
}
/* the blue ending: when it was made and with what (Angel's own stamps, inverted: white on blue) */
.p-made { background: var(--blue); color: #fff; display: grid; place-items: center; min-height: calc(100svh - var(--nav-h)); padding: 40px var(--gutter); }
.pm-pill { position: relative; display: flex; align-items: center; gap: clamp(32px, 7vw, 110px); padding: clamp(26px, 3.4vw, 44px) clamp(36px, 5vw, 72px); }
.pm-loop { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.pm-loop path { fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.pm-date { margin: 0; font-family: var(--hand); font-size: clamp(26px, 3.4vw, 48px); line-height: 1.1; }
.pm-apps { display: flex; gap: clamp(10px, 1.4vw, 18px); list-style: none; margin: 0; padding: 0; }
.pm-apps li { position: relative; width: clamp(62px, 7.4vw, 100px); aspect-ratio: 1; display: grid; place-items: center; }
.pm-apps li:nth-child(1) { rotate: -4deg; } .pm-apps li:nth-child(2) { rotate: 3deg; } .pm-apps li:nth-child(3) { rotate: -2deg; }
.pm-apps .frame-wavy path { fill: var(--blue); stroke: #fff; stroke-width: 3; }
.pm-apps span { position: relative; width: 66%; aspect-ratio: 1; display: grid; place-items: center; background: #fff; color: var(--blue); border-radius: 22%; font-weight: 700; font-size: clamp(17px, 2.1vw, 28px); letter-spacing: -.02em; }
/* the last two photos: one whole screen, half and half, no frame; the blue ending rises over them as you scroll */
.p-finale { position: relative; height: calc(100svh - var(--nav-h)); min-height: 420px; overflow: hidden; }
.p-finale .p-screen { height: 100%; min-height: 0; }
.p-finale .p-made { position: absolute; inset: 0; min-height: 0; }
.p-screen { display: grid; grid-template-columns: 1fr 1fr; height: calc(100svh - var(--nav-h)); min-height: 420px; }
.p-screen figure { margin: 0; overflow: hidden; }
.p-screen img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* next project: a small card on a band of another colour, right after the blue ending */
/* previous project on the left, next on the right */
.next-wrap { position: relative; background: var(--yellow); padding: 26px var(--gutter) 30px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 20px; }
.next-wrap .next { justify-self: end; } .next-wrap .next.is-prev { justify-self: start; }
.next-cloud { grid-column: 1 / -1; }
html:has(body.project) { background: var(--yellow); }   /* the elastic bounce past the end shows yellow, not white */
/* after the blue ending: the band opens with the big cloud from under "about me", upside down: yellow puffs rising into the blue */
.next-cloud { display: block; width: calc(100% + 2 * var(--gutter)); height: calc(100vw * 132 / 1440 + 3px); margin: -29px calc(-1 * var(--gutter)) 18px; background: var(--blue); scale: 1 -1; }
.next-cloud .fill { fill: var(--yellow); }
.next-cloud .edge { fill: none; stroke: var(--ink); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
/* previous / next: a round photo with a tab growing out of it, one shape, the words inside the tab */
.next { display: flex; align-items: center; text-decoration: none; color: var(--ink); filter: drop-shadow(5px 5px 0 var(--ink));
  transition: transform .3s cubic-bezier(.3,1.8,.5,1), filter .3s; }
.next:hover { transform: translate(-3px, -3px) rotate(-1.5deg); filter: drop-shadow(8px 8px 0 var(--ink)); }
.next-pic { position: relative; z-index: 1; flex: none; width: clamp(84px, 7vw, 110px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 3px solid var(--ink); background: #fff; }
.next-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.next-tab { display: flex; align-items: center; gap: 16px; background: #fff; border: 3px solid var(--ink); padding: 12px 22px 12px 44px; margin-left: -30px;
  border-radius: 0 40px 36px 0 / 0 44px 40px 0; }
.next:not(.is-prev) .next-tab { margin: 0 -30px 0 0; padding: 12px 44px 12px 22px; border-radius: 40px 0 0 36px / 44px 0 0 40px; }
.next-txt { display: flex; flex-direction: column; gap: 4px; }
.next-label { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; opacity: .6; }
.next-title { font-family: var(--hand); font-size: clamp(20px, 2vw, 26px); line-height: 1; }
.next-arrow { font-size: 26px; font-weight: 700; margin-left: 10px; transition: transform .3s; }
.next:hover .next-arrow { transform: translateX(6px); }
.next.is-prev .next-arrow { margin: 0; }
.next.is-prev:hover { transform: translate(-3px, -3px) rotate(1.5deg); } .next.is-prev:hover .next-arrow { transform: translateX(-6px); }

/* ---------- motion helpers ---------- */
.reveal-lines, .reveal-words { will-change: transform, opacity; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- small screens ---------- */
@media (max-width: 820px) {
  :root { --nav-h: 52px; }
  .brand-word { display: none; }
  .angel { width: 42px; }
  .nav { font-size: 16px; }
  .nav nav { display: none; }
  .burger, .mnav { display: block; }
  .scroll-word { font-size: 20vw; }
  .or { left: 18%; } .just { left: 46%; }
  /* same zip as on desktop, both halves side by side, scaled to the phone */
  .hero { min-height: 0; }
  .booth { height: 70%; }
  .hello { font-size: clamp(40px, 13.5vw, 70px); }
  .tag { font-size: 11px; } .t1 { font-size: 14px; } .t3 { font-size: 11.5px; }
  /* the photo-booth sits big in the middle, under both halves: the zip parts and shows it, bubbles on either side */
  .hero { background: #fff; }   /* the zip opens onto a clean white page, the photo on it */
  .hero > .booth { position: absolute; left: 50%; top: 41%; height: 70%; translate: -50% -50%; filter: drop-shadow(6px 6px 0 var(--ink)); }   /* moved here by main.js, before the halves */
  .t1, .t3 { right: calc(100% + var(--half) + 4px); }
  .t2, .t4 { left: calc(var(--half) + 4px); right: auto; }
  .t1 { top: 16%; } .t2 { top: 38%; } .t3 { top: 62%; } .t4 { top: 82%; }
  .choose { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  /* the folder grows taller on a phone (the drawing stretches with it) so the text stays readable */
  .folder { aspect-ratio: auto; min-height: 590px; display: flex; }
  .folder-body { position: relative; inset: auto; flex: 1; justify-content: flex-start; padding: 132px 7% 40px 8%; font-size: 13.5px; }
  .folder-tabs button { font-size: 11.5px; }
  .stickers { grid-template-columns: 1fr 1fr; }
  .work-grid { grid-template-columns: 1fr 1fr; }
  .scroll-cta { height: 140vh; }
  .next { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  /* four small stickers, two by two */
  .stickers { grid-template-columns: 1fr 1fr; gap: 16px 14px; }
  .sticker { font-size: 11px; line-height: 1.35; padding: 17% 13% 15%; }
  .sticker b { font-size: 2.2em; }
  .slot-s2 { margin-top: 30px; } .slot-s4 { margin-top: 22px; }
  .facts-head { gap: 14px; margin-bottom: 26px; }
  .secret { font-size: 15px; padding: 10%; }
}
/* on a phone the stickers are tapped, not dragged: they slide aside to show their note */
@media (hover: none) {
  .sticker { touch-action: auto; cursor: pointer; transition: translate .55s cubic-bezier(.3, 1.6, .5, 1), filter .2s, scale .2s; }
}
/* ADE: the flyers, dealt one at a time with the hand-drawn arrow (like flicking through them on a table) */
.p-flyers { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(24px, 4vw, 64px); align-items: center; max-width: 1160px; min-height: calc(100svh - var(--nav-h)); box-sizing: border-box; margin: 0 auto clamp(40px, 8vh, 90px); padding: 0 var(--gutter); }
.pf-stage { position: relative; width: min(100%, calc((100svh - var(--nav-h) - 60px) * 1.5)); justify-self: center; cursor: pointer; }
.pf-flyer { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; visibility: hidden; will-change: transform; }
.pf-flyer.is-on { opacity: 1; visibility: visible; }
.pf-side { display: grid; justify-items: start; gap: 18px; width: clamp(210px, 22vw, 290px); }
.pf-num { margin: 0; font-family: var(--hand); line-height: .9; color: var(--blue); }
.pf-cur { display: inline-block; font-size: clamp(72px, 9vw, 130px); rotate: -5deg; }
.pf-of { font-size: clamp(24px, 2.4vw, 34px); color: var(--ink); margin-left: 6px; }
.pf-quotes { display: grid; min-height: 3.4em; }
.pf-quote { grid-area: 1 / 1; margin: 0; font-size: var(--p-fs); line-height: 1.5; font-style: italic; opacity: 0; visibility: hidden; }
.pf-quote.is-on { opacity: 1; visibility: visible; }
.pf-next { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px 12px 24px; border: 3px solid var(--ink); border-radius: 46px 34px 52px 38px / 40px 52px 36px 48px; background: var(--lemon); color: var(--ink); font-family: var(--hand); font-size: 26px; cursor: pointer; rotate: -2deg; box-shadow: 4px 5px 0 var(--ink); transition: translate .15s, box-shadow .15s; }
.pf-next:hover { translate: -2px -2px; box-shadow: 6px 7px 0 var(--ink); }
.pf-next:active { translate: 3px 4px; box-shadow: 1px 1px 0 var(--ink); }
.pf-next svg { width: 64px; overflow: visible; }
.pf-next path { fill: none; stroke: var(--ink); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.pf-next:hover svg { animation: pf-nudge .6s ease-in-out infinite; }
@keyframes pf-nudge { 50% { translate: 7px 0; } }
.pf-dots { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.pf-dot { border: 0; background: none; padding: 4px 6px; font-family: var(--hand); font-size: 20px; color: var(--ink); opacity: .35; cursor: pointer; transition: opacity .2s; }
.pf-dot:hover { opacity: .7; }
.pf-dot.is-on { opacity: 1; color: var(--blue); text-decoration: underline wavy var(--yellow) 3px; text-underline-offset: 6px; }
@media (max-width: 760px) {
  .p-flyers { grid-template-columns: 1fr; }
  .pf-side { width: 100%; justify-items: center; text-align: center; }
}
/* ADE: the five flyers on the table; hovering one turns it over to its back */
.p-deck { --cw: min(15vw, 172px, calc((100svh - var(--nav-h) - 150px) / 2 * .72)); position: relative; display: grid; grid-template-columns: repeat(6, calc(var(--cw) / 2)); column-gap: clamp(12px, 1.4vw, 20px); row-gap: clamp(8px, 1.4vh, 14px); justify-content: center; perspective: 1400px; }
.pd-card { grid-column: span 2; width: var(--cw); aspect-ratio: 290 / 402; padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
.pd-card:nth-child(4) { grid-column: 2 / span 2; }
.pd-card:nth-child(5) { grid-column: 4 / span 2; }
.pd-card:nth-child(1) { rotate: -5deg; } .pd-card:nth-child(2) { rotate: 2deg; translate: 0 -8px; } .pd-card:nth-child(3) { rotate: 6deg; }
.pd-card:nth-child(4) { rotate: 4deg; } .pd-card:nth-child(5) { rotate: -3deg; }
.pd-in { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.3, 1.5, .5, 1), translate .3s; }
.pd-in img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; backface-visibility: hidden; border-radius: 3px; box-shadow: 0 10px 22px rgba(17, 17, 17, .22); }
.pd-back { transform: rotateY(180deg); }
.pd-card:hover, .pd-card:focus-visible { z-index: 2; }
.pd-card:hover .pd-in, .pd-card.is-flip .pd-in { transform: rotateY(180deg); translate: 0 -10px; }
.pd-hint { grid-column: 1 / -1; justify-self: center; margin: 22px 0 0; font-family: var(--hand); font-size: 22px; color: var(--blue); rotate: -3deg; }
@media (hover: none) { .pd-card:hover .pd-in { transform: none; translate: none; } .pd-card.is-flip .pd-in { transform: rotateY(180deg); } }

/* ADE: "it's okay to disconnect" in the campaign's colours, the video playing small beside it; hover and it fills the screen */
.p-disc { position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 64px); align-items: center; min-height: calc(100svh - var(--nav-h)); box-sizing: border-box; padding: clamp(40px, 8vh, 80px) max(var(--gutter), calc((100vw - 1160px) / 2)); color: var(--ink); overflow: hidden; background: #fff; }
.p-disc > * { position: relative; z-index: 1; }
@keyframes pdc-drift { to { background-position: 100% 100%; } }
.pdc-kick { margin: 0 0 .5em; font-family: var(--hand); font-weight: 400; font-size: clamp(40px, 5.2vw, 76px); line-height: 1; rotate: -4deg; color: #111; }
.pdc-kick br + * , .pdc-kick { text-wrap: balance; }
.pdc-kick { display: inline-block; background: #f2e830; padding: .12em .3em .18em; clip-path: polygon(0 4%, 100% 0, 97% 100%, 2% 94%); }
.pdc-words p { margin: 0 0 1em; font-size: var(--p-fs); line-height: 1.7; max-width: 46ch; }
.pdc-video { position: relative; aspect-ratio: 16 / 9; background: #111; border: 4px solid #111; border-radius: 18px 26px 20px 30px / 26px 18px 30px 20px; box-shadow: 8px 10px 0 #111; overflow: hidden; rotate: 2deg; cursor: pointer; }
.pdc-video video { width: 100%; height: 100%; object-fit: contain; display: block; }
.pdc-play { position: absolute; left: 14px; bottom: 12px; padding: 6px 14px; border-radius: 999px; background: #f2e830; color: #111; font-family: var(--hand); font-size: 18px; transition: opacity .2s; }
.pdc-close { display: none; position: absolute; top: 18px; right: 22px; width: 52px; height: 52px; border-radius: 50%; border: 3px solid #111; background: #f2e830; color: #111; font-size: 30px; line-height: 1; cursor: pointer; }
.pdc-video.is-full { position: fixed; z-index: 600; rotate: 0deg; border-radius: 0; border-width: 0; box-shadow: none; cursor: default; }
.pdc-video.is-full .pdc-play { opacity: 0; }
.pdc-video.is-full .pdc-close { display: block; }
.pdc-ghost { aspect-ratio: 16 / 9; }

/* ADE: heat-map feelings. A thermal camera you play with: the cursor leaves heat behind in the posters' colours */
.p-heat { position: relative; display: grid; place-items: center; min-height: calc(100svh - var(--nav-h)); overflow: hidden; color: #fff; background: #2f45a8; isolation: isolate; cursor: crosshair; }
.ph-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; filter: blur(14px) saturate(1.15); transform: scale(1.06); }
.p-heat::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .28; mix-blend-mode: overlay; pointer-events: none; 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'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.ph-words { max-width: 640px; padding: 40px var(--gutter); text-align: center; pointer-events: none; text-shadow: 0 1px 2px rgba(20, 20, 80, .5), 0 2px 22px rgba(20, 20, 80, .55); }
.ph-kick { display: inline-block; margin: 0 0 .6em; padding: .12em .34em .2em; font-family: var(--hand); font-weight: 400; font-size: clamp(40px, 5.4vw, 80px); line-height: .95; color: #111; background: #fff; border: 4px solid #111; border-radius: 26px 18px 30px 20px / 20px 30px 18px 26px; box-shadow: 7px 8px 0 #111; rotate: -3deg; text-shadow: none; }
.ph-words p { margin: 0 0 1em; font-size: var(--p-fs); line-height: 1.7; }
.ph-words .ph-hint { display: inline-block; margin-top: 1.2em; padding: 6px 16px; font-family: var(--hand); font-size: 20px; color: #111; background: #f2e830; border: 3px solid #111; border-radius: 999px; rotate: 2deg; text-shadow: none; }

.pf-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.pf-prev { background: #fff; rotate: 2deg; padding: 12px 24px 12px 20px; }
.pf-prev svg { scale: -1 1; }
.pf-prev:hover svg { animation-name: pf-nudge-back; }
@keyframes pf-nudge-back { 50% { translate: -7px 0; } }
.pf-next { font-size: 22px; }
.pf-next svg { width: 48px; }
@media (max-width: 760px) {
  .p-disc { grid-template-columns: 1fr; }
  .p-deck { --cw: 27vw; }
}

/* the flyers dealt onto a pile, like on a table: each new one lands on top of the last, a little crooked */
.pf-stage { overflow: visible; }
.pf-flyer { opacity: 0; visibility: visible; }
.pf-flyer.is-on { opacity: 1; }
.p-flyers .pf-quote { justify-self: start; font-weight: 600; font-style: normal; font-size: calc(var(--p-fs) + 2px); line-height: 1.55; }
.p-flyers .pf-quote span { background: #f2e830; padding: .08em .3em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
/* Posters: "no empty walls". An empty wall that scrolling fills, poster by poster, each held up with a strip of tape */
.p-wall { --pw: min(15.5vw, calc((100svh - var(--nav-h)) * .34)); position: relative; height: calc(100svh - var(--nav-h)); min-height: 440px; overflow: hidden; margin-bottom: clamp(40px, 8vh, 90px); background: #efece6; isolation: isolate; }
.p-wall::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5; mix-blend-mode: multiply; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .53 0 0 0 0 .5 0 0 0 .35 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.pw-title { position: absolute; left: 50%; top: 46%; translate: -50% -50%; margin: 0; width: max-content; text-align: center; font-family: var(--hand); font-weight: 400; font-size: clamp(80px, 13vw, 200px); line-height: .88; color: #fff; -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; text-shadow: 7px 7px 0 var(--ink); rotate: -3deg; }
.pw-hint { position: absolute; left: 50%; top: 78%; translate: -50% 0; margin: 0; padding: 6px 16px; background: #fff; border: 2.5px solid var(--ink); border-radius: 999px; font-family: var(--hand); font-size: 20px; color: var(--blue); rotate: 2deg; white-space: nowrap; }
.pw-poster { position: absolute; left: var(--x); top: var(--y); width: var(--pw); padding: 0; border: 0; background: none; cursor: zoom-in; translate: -50% -50%; rotate: var(--r); opacity: 0; transition: scale .25s; }
.pw-poster img { display: block; width: 100%; height: auto; box-shadow: 0 10px 22px rgba(40, 30, 20, .28), 0 2px 4px rgba(40, 30, 20, .2); }
.pw-poster::before { content: ""; position: absolute; z-index: 1; left: 32%; top: -10px; width: 36%; height: 20px; background: rgba(248, 187, 0, .82); rotate: -4deg; clip-path: polygon(3% 0, 100% 6%, 97% 100%, 0 94%); }
.pw-poster:nth-child(even)::before { rotate: 5deg; background: rgba(255, 255, 255, .78); }
.pw-poster:hover, .pw-poster:focus-visible { z-index: 5; scale: 1.07; }
.pw-tag { position: absolute; left: 50%; bottom: -14px; translate: -50% 0; padding: 5px 12px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; font-family: var(--hand); font-size: 15px; white-space: nowrap; color: var(--ink); opacity: 0; transition: opacity .2s; pointer-events: none; }
.pw-poster:hover .pw-tag, .pw-poster:focus-visible .pw-tag { opacity: 1; }
.pw-more { position: absolute; right: 2.5%; bottom: 4%; z-index: 6; margin: 0; padding: 10px 18px 12px; background: #fff; border: 3px solid var(--ink); border-radius: 26px 18px 30px 20px / 20px 30px 18px 26px; box-shadow: 5px 6px 0 var(--ink); font-family: var(--hand); font-size: clamp(18px, 1.8vw, 26px); line-height: 1.05; rotate: -6deg; opacity: 0; }
.pw-more b { font-weight: 400; color: var(--blue); font-size: 1.3em; }
.pw-click { position: absolute; left: 2.5%; top: 3%; z-index: 6; margin: 0; padding: 6px 14px; background: var(--lemon); border: 2.5px solid var(--ink); border-radius: 999px; font-family: var(--hand); font-size: 17px; rotate: -3deg; opacity: 0; }
.pw-zoom { position: fixed; inset: 0; z-index: 600; display: grid; place-items: center; align-content: center; gap: 16px; background: rgba(17, 17, 17, .86); cursor: zoom-out; padding: 30px; }
.pw-zoom img { max-width: min(88vw, 640px); max-height: calc(100svh - 150px); width: auto; height: auto; box-shadow: 0 20px 50px rgba(0, 0, 0, .5); }
.pw-zoom p { margin: 0; color: #fff; font-family: var(--hand); font-size: 26px; text-align: center; }
.pw-zoom p span { display: block; font-family: inherit; font-size: 17px; opacity: .7; }
@media (max-width: 760px) { .p-wall { --pw: 27vw; } }

.pw-bricks { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; }
.pw-bricks .bk { stroke: var(--ink); stroke-width: 2.4; stroke-linejoin: round; }
.pw-bricks .bh { fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; opacity: .65; }
.p-wall::after { opacity: .35; }
/* the pictures taking turns in one frame */
.p-img .pc-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.p-img .pc-img.is-on { opacity: 1; }
/* "no rules attached": the words, and a little poster machine next to them */
.p-rules { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(36px, 6vw, 96px); align-items: center; max-width: 1160px; min-height: calc(100svh - var(--nav-h)); box-sizing: border-box; margin: 0 auto clamp(40px, 8vh, 90px); padding: 0 var(--gutter); }
.pr-words .p-kick { margin: 0 0 .5em; }
.pr-words p { margin: 0 0 1.1em; font-size: var(--p-fs); line-height: 1.7; max-width: 58ch; }
.pr-toy { display: grid; justify-items: center; gap: 22px; }
.pr-poster { --bg: var(--blue); --fg: #fff; --sh: var(--yellow); position: relative; width: clamp(200px, 23vw, 290px); aspect-ratio: 1 / 1.414; box-sizing: border-box; padding: 18px 18px 30px; overflow: hidden; background: var(--bg); color: var(--fg); border: 3px solid var(--ink); box-shadow: 8px 9px 0 var(--ink); rotate: 3deg; display: flex; flex-direction: column; justify-content: center; }
.pr-shape { position: absolute; width: 70%; aspect-ratio: 1; left: var(--sx, 40%); top: var(--sy, 8%); color: var(--sh); rotate: var(--sr, 0deg); }
.pr-shape svg { width: 100%; height: 100%; overflow: visible; }
.pr-word { position: relative; margin: 0; font-family: var(--pf, var(--hand)); font-weight: var(--pw8, 400); font-style: var(--pi, normal); font-size: var(--ps, 64px); line-height: .86; letter-spacing: var(--pl, 0); text-transform: uppercase; text-align: var(--pa, left); rotate: var(--wr, -4deg); }
.pr-small { position: absolute; left: 14px; right: 14px; bottom: 10px; margin: 0; font-size: 10px; letter-spacing: .04em; text-transform: uppercase; opacity: .85; }
.pr-small b { font-weight: 700; }
.pr-btn { padding: 12px 24px; border: 3px solid var(--ink); border-radius: 46px 34px 52px 38px / 40px 52px 36px 48px; background: var(--lemon); color: var(--ink); font-family: var(--hand); font-size: 24px; cursor: pointer; rotate: -2deg; box-shadow: 4px 5px 0 var(--ink); transition: translate .15s, box-shadow .15s; }
.pr-btn:hover { translate: -2px -2px; box-shadow: 6px 7px 0 var(--ink); }
.pr-btn:active { translate: 3px 4px; box-shadow: 1px 1px 0 var(--ink); }
.pr-note { margin: -8px 0 0; font-family: var(--hand); font-size: 18px; color: var(--blue); rotate: 3deg; }
@media (max-width: 760px) { .p-rules { grid-template-columns: 1fr; } }

/* ---------- Cobra ---------- */
/* the main photo shown whole (as it was shot): the band is as tall as the photo, never taller than the screen */
.p-hero.is-whole { height: min(calc(100svh - var(--nav-h)), calc(100vw / (var(--har)))); min-height: 0; }
.p-hero.is-whole .p-hero-img img { height: 100%; object-position: 50% 50%; }

/* the logo drawing itself on white, its words beside it: the frame fits the whole film (nothing cropped, nothing zoomed) */
.p-cvid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; min-height: calc(100svh - var(--nav-h)); box-sizing: border-box; padding: clamp(32px, 6vh, 64px) max(var(--gutter), calc((100vw - 1160px) / 2)); background: #fff; }
/* (it opens to the whole screen with sound, like the ADE film: see .pdc-video) */
.p-cvid .cv-video { background: #fff; border: 3px solid var(--ink); border-radius: 26px 34px 22px 30px; box-shadow: 8px 9px 0 var(--ink); rotate: -1.2deg; }
.p-cvid .cv-video.is-full { border-width: 0; border-radius: 0; box-shadow: none; rotate: 0deg; }
.p-cvid .pdc-play, .p-cvid .pdc-close { background: #F4BA40; }
.cv-words .p-kick { color: var(--ink); margin-bottom: .5em; }
.cv-words .p-kick::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'%3E%3Cpath d='M3 9 C 40 3, 80 12, 120 6 S 180 5, 197 8' fill='none' stroke='%23E93323' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E"); }
.cv-words p { margin: 0 0 1em; font-size: var(--p-fs); line-height: 1.7; max-width: 44ch; }

/* the other logos: the symbol alone and its words; scrolling, the camera dives in through the ring (the hole of the "C",
   where the symbol comes from) and inside, the whole family fills the screen and stays there a while */
.p-ctiles { position: relative; height: calc(100svh - var(--nav-h)); overflow: hidden; background: #fff; }
.ctl-intro { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 80px); align-items: center; padding: 0 max(var(--gutter), calc((100vw - 1160px) / 2)); }
.ctl-cm { width: 78%; height: auto; justify-self: center; transform-origin: 52.7% 48.3%; will-change: transform; }   /* (origin: the green core) */
.ctl-words p { margin: .6em 0 0; font-size: var(--p-fs); line-height: 1.7; }
.ctl-words .ctl-go { font-family: var(--hand); font-size: 18px; color: #00984F; rotate: -2deg; }
.ctl-grid { position: absolute; inset: 0; z-index: 1; display: grid; grid-template-columns: 1.55fr 1fr 1fr; grid-template-rows: 1fr 1fr; opacity: 0; }
.ct-tile { margin: 0; display: grid; place-items: center; background: var(--bg); min-width: 0; min-height: 0; overflow: hidden; }
.ct-tile img { max-width: 64%; max-height: 58%; object-fit: contain; }
.ct-wide { grid-area: 1 / 1; } .ct-black { grid-area: 2 / 1; } .ct-ring { grid-area: 1 / 2 / 3 / 3; } .ct-cm { grid-area: 1 / 3; } .ct-cmus { grid-area: 2 / 3; }
.ct-black img { max-width: 76%; max-height: 76%; }
.ct-ring img { max-width: 82%; }
.ct-ring:hover img { animation: cb-spin 2.4s linear infinite; }
@keyframes cb-spin { to { rotate: 360deg; } }

/* the system: three screens on white; the painted bits start up by the colours and fall down to the icons */
.p-csys { position: relative; background: #fff; overflow: hidden; }
.cs-motas { position: absolute; inset: 0; pointer-events: none; z-index: 2; }   /* over the coloured screens, so they can fall through them */
.cs-mota { position: absolute; left: var(--x0); top: var(--y0); width: var(--w); height: auto; translate: -50% 0; rotate: var(--r0); will-change: transform; }
.cs-screen { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 80px); align-items: center; min-height: calc(100svh - var(--nav-h)); box-sizing: border-box; padding: clamp(32px, 6vh, 64px) max(var(--gutter), calc((100vw - 1160px) / 2)); }
.cs-words p { margin: .6em 0 0; font-size: var(--p-fs); line-height: 1.7; max-width: 42ch; }
.cs-pal .p-kick { color: #E93323; }
.cs-type { background: #F4BA40; }
.cs-type .p-kick { color: var(--ink); }
/* underlines in the palette's colours, never white: blue on the yellow, yellow on the blue */
.cs-type .p-kick::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'%3E%3Cpath d='M3 9 C 40 3, 80 12, 120 6 S 180 5, 197 8' fill='none' stroke='%232355A7' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E"); }
.cs-words .p-kick::after { margin-bottom: 18px; }
.cs-icons { background: #2355A7; color: #fff; }
.cs-icons .p-kick { color: var(--ink); }
.cs-icons .p-kick::after, .p-cwalk .p-kick::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'%3E%3Cpath d='M3 9 C 40 3, 80 12, 120 6 S 180 5, 197 8' fill='none' stroke='%23F4BA40' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E"); }

.cs-blobs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.6vw, 24px); }
.cs-blobs li { display: grid; justify-items: center; gap: 12px; }
.cs-blobs li:nth-child(even) { translate: 0 28px; }
.cs-blob { position: relative; width: 100%; aspect-ratio: 3 / 4; padding: 0; border: 3px solid var(--ink); background: var(--c); cursor: copy; border-radius: 58% 42% 55% 45% / 46% 55% 45% 54%; box-shadow: 5px 6px 0 var(--ink); animation: cb-wob 6s ease-in-out infinite; transition: scale .25s cubic-bezier(.3, 1.6, .5, 1); }
.cs-blobs li:nth-child(2) .cs-blob { animation-delay: -1.5s; } .cs-blobs li:nth-child(3) .cs-blob { animation-delay: -3s; } .cs-blobs li:nth-child(4) .cs-blob { animation-delay: -4.5s; }
.cs-blob:hover { scale: 1.07; animation-duration: 1.4s; }
.cs-blob.is-copied::after { content: "copied!"; position: absolute; left: 50%; top: 42%; translate: -50% -50%; rotate: -8deg; padding: .2em .6em; background: #fff; border: 2px solid var(--ink); border-radius: 999px; font-family: var(--hand); font-size: 15px; color: var(--ink); white-space: nowrap; }
@keyframes cb-wob { 0%, 100% { border-radius: 58% 42% 55% 45% / 46% 55% 45% 54%; } 33% { border-radius: 44% 56% 42% 58% / 56% 44% 58% 42%; } 66% { border-radius: 52% 48% 62% 38% / 40% 60% 42% 58%; } }
.cs-name { margin: 0; text-align: center; font-size: 13px; line-height: 1.35; text-transform: uppercase; letter-spacing: .04em; }
.cs-name b { display: block; font-family: var(--hand); font-weight: 400; font-size: 15px; text-transform: none; letter-spacing: 0; }
.cs-tip { position: absolute; right: max(var(--gutter), calc((100vw - 1160px) / 2)); bottom: clamp(20px, 5vh, 48px); margin: 0; font-family: var(--hand); font-size: 17px; color: var(--blue); rotate: -3deg; }

.cs-tester { display: grid; gap: 14px; }
.cs-in { display: grid; gap: 6px; font-family: var(--hand); font-size: 16px; color: var(--ink); }
.cs-in input { font: 500 18px/1.2 Poppins, sans-serif; padding: 12px 18px; border: 3px solid var(--ink); border-radius: 999px; outline: none; background: #fff; box-shadow: 4px 5px 0 var(--ink); }
.cs-in input:focus { background: #fffbe0; }
.cs-spec { position: relative; padding: clamp(14px, 2.4vh, 22px) clamp(18px, 2vw, 28px); border: 3px solid var(--ink); border-radius: 20px; overflow: hidden; }
.cs-barrio { background: #E93323; color: #fff; rotate: -1.5deg; }
.cs-mont { background: #00984F; color: #fff; rotate: .8deg; }
.cs-out { margin: 0; min-height: 1.15em; font-size: clamp(30px, 4vw, 58px); line-height: 1.1; overflow-wrap: anywhere; }
.cs-barrio .cs-out { font-family: Barrio, var(--hand); }
.cs-barrio .cs-out span { display: inline-block; white-space: pre; }
.cs-mont .cs-out { font-family: Montserrat, sans-serif; font-weight: 700; letter-spacing: -.01em; }
.cs-lab { margin: 6px 0 0; font-size: 13px; opacity: .8; }
.cs-lab b { font-family: var(--hand); font-weight: 400; font-size: 15px; margin-right: .5em; opacity: 1; }

.cs-iconset { list-style: none; margin: 0 0 clamp(70px, 14vh, 130px); padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.6vw, 22px); }
.cs-iconset li { color: var(--ink); aspect-ratio: 1; display: grid; place-items: center; background: #fff; border: 3px solid var(--ink); border-radius: 18px 24px 16px 22px; box-shadow: 4px 5px 0 var(--ink); transition: rotate .2s, scale .2s; }
.cs-iconset li:nth-child(odd) { rotate: -2deg; } .cs-iconset li:nth-child(even) { rotate: 2deg; }
.cs-iconset li { position: relative; }
.cs-iconset li:hover, .cs-iconset li:focus-visible { rotate: -8deg; scale: 1.08; z-index: 3; outline: none; }
/* what each icon stands for: a little sticker that pops up on hover */
.cs-tip-i { position: absolute; left: 50%; bottom: -14px; translate: -50% 0; rotate: 6deg; padding: .25em .8em .2em; background: #F4BA40; color: var(--ink); border: 2.5px solid var(--ink); border-radius: 999px; box-shadow: 3px 3px 0 var(--ink); font-family: var(--hand); font-size: 15px; white-space: nowrap; scale: 0; transition: scale .25s cubic-bezier(.3, 1.8, .5, 1); pointer-events: none; }
.cs-iconset li:hover .cs-tip-i, .cs-iconset li:focus-visible .cs-tip-i { scale: 1; }
.cs-iconset img { width: 74%; height: 74%; object-fit: contain; mix-blend-mode: multiply; }
.cs-floor { display: none; }

/* the walk: the track slides sideways while the page holds still; every piece has its museum wall label */
.p-cwalk { position: relative; height: calc(100svh - var(--nav-h)); overflow: hidden; background: #E93323; color: #fff; transition: background-color .6s, color .6s; }
.p-cwalk .p-kick { color: #fff; }
.p-cwalk.is-light { color: var(--ink); }
.p-cwalk.is-light .p-kick { color: var(--ink); }
.cw-track { display: flex; align-items: center; gap: clamp(48px, 7vw, 120px); height: 100%; width: max-content; padding: 0 30vw 0 max(var(--gutter), calc((100vw - 1160px) / 2)); box-sizing: border-box; will-change: transform; }
.cw-intro { flex: 0 0 min(400px, 80vw); }
.cw-intro p { margin: .7em 0 0; font-size: var(--p-fs); line-height: 1.7; }
.cw-intro .cw-go { font-family: var(--hand); font-size: 18px; rotate: -2deg; }
.cw-piece { position: relative; margin: 0; flex: 0 0 auto; height: min(62%, 520px); display: flex; align-items: center; }
.cw-pic { height: 100%; aspect-ratio: auto; border: 3px solid var(--ink); border-radius: 18px; overflow: hidden; box-shadow: 7px 8px 0 var(--ink); }
.cw-pic img { display: block; height: 100%; width: auto; }
.cw-piece:nth-child(odd) .cw-pic { rotate: -1deg; } .cw-piece:nth-child(even) .cw-pic { rotate: 1.2deg; }
.cw-label { position: absolute; right: -14px; bottom: -14px; display: grid; gap: 2px; max-width: 210px; padding: 10px 14px 12px; background: #fff; color: var(--ink); border: 2.5px solid var(--ink); border-radius: 6px; box-shadow: 3px 4px 0 var(--ink); rotate: 2deg; font-size: 13px; line-height: 1.35; }
.cw-n { font-family: var(--hand); font-size: 14px; color: #E93323; }
.cw-label b { font-size: 15px; }
.cw-label i { opacity: .75; }
.cw-piece.is-dark .cw-pic img { filter: brightness(.18); transition: filter .1s; }
.cw-piece.is-dark.is-lit .cw-pic img { filter: none; }
.cw-room { position: absolute; left: max(var(--gutter), calc((100vw - 1160px) / 2)); top: 18px; margin: 0; padding: .35em 1em .3em; background: #fff; color: var(--ink); border: 2.5px solid var(--ink); border-radius: 999px; box-shadow: 3px 4px 0 var(--ink); font-family: var(--hand); font-size: 17px; rotate: -2deg; opacity: 0; transition: opacity .3s; }
.cw-room.is-on { opacity: 1; }
.cw-room { transition: opacity .3s, background-color .3s, color .3s; }
.p-screen.is-one { grid-template-columns: 1fr; }

@media (max-width: 760px) {
  .p-cvid, .p-ctiles, .cs-screen { grid-template-columns: 1fr; height: auto; }
  .cs-blobs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cs-blobs li:nth-child(even) { translate: none; }
}
/* a name on two lines (Cobra Museum): a little smaller and with more room, so it stays inside its bubble */
.p-badge.is-two { padding: 2.9em 4.6em 3.6em 3em; }
.p-badge.is-two .p-name { font-size: clamp(42px, 4.6vw, 66px); line-height: 1.05; }

/* Cobra speaks only in its own palette (red E93323, yellow F4BA40, blue 2355A7, green 00984F): no Capicua coral or site blue */
.p-ctiles .ctl-words .p-kick { color: var(--ink); }
.p-ctiles .ctl-words .p-kick::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'%3E%3Cpath d='M3 9 C 40 3, 80 12, 120 6 S 180 5, 197 8' fill='none' stroke='%23F4BA40' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E"); }
.cs-pal .p-kick { color: var(--ink); }
.cs-pal .p-kick::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'%3E%3Cpath d='M3 9 C 40 3, 80 12, 120 6 S 180 5, 197 8' fill='none' stroke='%23E93323' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E"); }
.cs-pal .cs-tip { color: #00984F; }

/* the type screen in two colours plus white: green room, yellow for the chaos (Barrio), plain white for the control (Montserrat) */
.cs-type { background: #00984F; color: #fff; }
.cs-type .p-kick { color: var(--ink); }
.cs-type .p-kick::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'%3E%3Cpath d='M3 9 C 40 3, 80 12, 120 6 S 180 5, 197 8' fill='none' stroke='%23F4BA40' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E"); }
.cs-type .cs-in { color: #fff; }
.cs-type .cs-in input { color: var(--ink); }
.cs-type .cs-barrio { background: #F4BA40; color: var(--ink); }
.cs-type .cs-mont { background: #E93323; color: #fff; }

/* Cobra headings: always black; the colour goes in the hand-drawn line under them */
.p-cvid .p-kick, .p-ctiles .p-kick, .p-csys .p-kick, .p-cwalk .p-kick, .p-cwalk.is-light .p-kick { color: var(--ink); }
.p-ctiles .ctl-words .p-kick::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'%3E%3Cpath d='M3 9 C 40 3, 80 12, 120 6 S 180 5, 197 8' fill='none' stroke='%2300984F' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E"); }
.cs-icons .p-kick::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'%3E%3Cpath d='M3 9 C 40 3, 80 12, 120 6 S 180 5, 197 8' fill='none' stroke='%23E93323' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E"); }
/* Cobra film: the hint is a small tilted sticker in the top corner, away from the logo */
.p-cvid .pdc-play { left: auto; bottom: auto; top: 12px; right: 12px; padding: 4px 11px 3px; font-size: 14px; border: 2px solid var(--ink); rotate: 7deg; }
/* each logo says what it is when the mouse rests on it: a white label sticker in the tile's corner */
.ct-tile { position: relative; }
.ct-lab { position: absolute; left: 18px; bottom: 18px; display: grid; gap: 1px; max-width: 220px; padding: 8px 14px 9px; background: #fff; color: var(--ink); border: 2.5px solid var(--ink); border-radius: 6px; box-shadow: 3px 4px 0 var(--ink); font-size: 13px; line-height: 1.35; rotate: -3deg; scale: 0; transform-origin: 0 100%; transition: scale .25s cubic-bezier(.3, 1.8, .5, 1); pointer-events: none; }
.ct-lab b { font-family: var(--hand); font-weight: 400; font-size: 18px; }
.ct-tile:hover .ct-lab, .ct-tile:focus-visible .ct-lab { scale: 1; }
.ct-tile:focus-visible { outline: none; }
.ct-tile img { transition: scale .3s; }
.ct-tile:hover img { scale: 1.06; }

/* the green type screen: white heading, black words, blue line */
.p-csys .cs-type .p-kick { color: #fff; }
.p-csys .cs-type .p-kick::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'%3E%3Cpath d='M3 9 C 40 3, 80 12, 120 6 S 180 5, 197 8' fill='none' stroke='%232355A7' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E"); }
.cs-type .cs-words p, .cs-type .cs-in { color: var(--ink); }
/* nine icons (the three toilets make the first row): three by three, a little smaller so they fit the screen */
.cs-iconset { grid-template-columns: repeat(3, minmax(0, 1fr)); width: min(100%, calc((100svh - var(--nav-h)) * .62)); justify-self: center; }
.p-cvid .pdc-play { right: auto; left: 12px; rotate: -6deg; }
/* the film changes its background colour: it covers the frame and bleeds a hair past its edges, so no white ever peeks through */
.p-cvid .cv-video { background: transparent; }
.p-cvid .cv-video video { width: 100%; height: 100%; object-fit: cover; scale: 1.02; }
/* pinned 2px up under the bar, so they need 2px more at the bottom or a hairline of page shows under them */
.p-ctiles, .p-cwalk { height: calc(100svh - var(--nav-h) + 2px); }
.ctl-grid { inset: -1px 0 -1px; pointer-events: none; }   /* (it sits over the ring while hidden: it mustn't catch the mouse) */
.p-ctiles.is-in .ctl-grid { pointer-events: auto; }
.p-ctiles.is-in .ctl-cm { pointer-events: none; }
/* the copy tip sits right under the colours, in red */
.cs-pal .cs-tip { bottom: auto; top: calc(50% + min(16vw, 26vh)); color: #E93323; }
/* on the green and the blue screens every word is white (the line under the heading keeps its colour) */
.p-csys .cs-type .p-kick, .p-csys .cs-icons .p-kick, .cs-type .cs-words p, .cs-type .cs-in, .cs-icons .cs-words p { color: #fff; }
/* the red start of the walk: every word white */
.p-cwalk .cw-intro .p-kick, .p-cwalk .cw-intro p { color: #fff; }
/* the painted bits fall out of the system and down onto the floor of the walk through the museum */
.p-csys { overflow: clip visible; }
.cs-motas { bottom: auto; }
.cw-floor { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.cw-mota { position: absolute; height: auto; translate: -50% 0; visibility: hidden; }
/* (the category pill stays white: the room behind it already wears the category's colour) */
/* Cobra walk: the room name sits a bit lower and bigger, written in the room's colour (set in main.js) */
.cw-room { top: 38px; font-size: 22px; }
.cw-floor { display: none; }
/* the walk can be dragged sideways */
.p-cwalk { touch-action: pan-y; user-select: none; }
.p-cwalk img { -webkit-user-drag: none; }
.p-cwalk.is-dragging, .p-cwalk.is-dragging * { cursor: grabbing !important; }
/* a piece of the walk, big, on the colour of its room */
.zv { user-select: none; } .zv img { -webkit-user-drag: none; }
.zv { position: fixed; inset: 0; z-index: 8000; display: grid; place-items: center; overflow: hidden; background: var(--room, #E93323); opacity: 0; pointer-events: none; transition: opacity .3s, background-color .3s; }
.zv.is-open { opacity: 1; pointer-events: auto; }
.zv-box { cursor: zoom-in !important; }
.zv.is-zoomed .zv-box { cursor: zoom-out !important; }
.zv-box img { display: block; max-width: calc(100vw - 2 * var(--gutter) - 200px); max-height: calc(100svh - 170px); width: auto; height: auto; border: 3px solid var(--ink); border-radius: 14px; box-shadow: 8px 9px 0 var(--ink); background: #fff; -webkit-user-drag: none; }
.zv-x { position: absolute; top: 18px; right: var(--gutter); padding: 6px 16px; border: 2.5px solid var(--ink); border-radius: 30px; background: #fff; font-family: var(--hand); font-size: 18px; box-shadow: 3px 3px 0 var(--ink); z-index: 2; }
.zv-arr { position: absolute; top: 50%; translate: 0 -50%; z-index: 2; display: grid; place-items: center; width: 74px; height: 74px; padding: 0;
  border: 3px solid var(--ink); border-radius: 46% 54% 50% 50% / 52% 46% 54% 48%; background: #fff; box-shadow: 4px 5px 0 var(--ink); transition: translate .15s, box-shadow .15s; }
.zv-arr svg { width: 44px; overflow: visible; }
.zv-arr path { fill: none; stroke: var(--ink); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.zv-prev { left: var(--gutter); rotate: 3deg; } .zv-prev svg { scale: -1 1; } .zv-next { right: var(--gutter); rotate: -3deg; }
.zv-arr:hover { translate: -1px calc(-50% - 2px); box-shadow: 6px 7px 0 var(--ink); }
.zv-lab { position: absolute; left: var(--gutter); top: 18px; z-index: 2; display: grid; gap: 2px; max-width: 260px; margin: 0; padding: 10px 14px 12px; background: #fff; border: 2.5px solid var(--ink); border-radius: 6px; box-shadow: 3px 4px 0 var(--ink); rotate: -2deg; font-size: 13px; line-height: 1.35; }
.zv-lab b { font-size: 15px; } .zv-lab i { opacity: .75; } .zv-lab .cw-n { color: var(--room); }
.zv-hint { position: absolute; bottom: 16px; left: 50%; translate: -50% 0; margin: 0; padding: .3em 1em; background: #fff; border: 2px solid var(--ink); border-radius: 999px; font-family: var(--hand); font-size: 16px; rotate: -2deg; transition: opacity .3s; }
.zv.is-zoomed .zv-hint, .zv.is-zoomed .zv-lab { opacity: 0; }
/* Cobra type screen: "type something" in the blue of the underline */
.p-csys .cs-type .cs-in > span { color: #2355A7; }
/* Cobra walk: each label's number in the colour of its room */
.cw-piece[data-cat="stationery"] .cw-n { color: #E93323; }
.cw-piece[data-cat="print"] .cw-n { color: #2355A7; }
.cw-piece[data-cat="merchandising"] .cw-n { color: #00984F; }
.cw-piece[data-cat="signage"] .cw-n { color: #F4BA40; }
/* Cobra type screen: "type something" and the underline in yellow; the Barrio card in blue (white type), Montserrat stays red */
.p-csys .cs-type .cs-in > span { color: #F4BA40; }
.p-csys .cs-type .p-kick::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'%3E%3Cpath d='M3 9 C 40 3, 80 12, 120 6 S 180 5, 197 8' fill='none' stroke='%23F4BA40' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E"); }
.cs-type .cs-barrio { background: #2355A7; color: #fff; }
/* Cobra "one logo, many moods": underline and the scroll hint in blue */
.p-ctiles .ctl-words .p-kick::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'%3E%3Cpath d='M3 9 C 40 3, 80 12, 120 6 S 180 5, 197 8' fill='none' stroke='%232355A7' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E"); }
.ctl-words .ctl-go { color: #2355A7; }

/* ---------- Sticky Fingers ---------- */
/* the pink mess: icons, scribbles, tags and the logo scattered around the words; scrolling tidies them into the brand book */
.p-smess { position: relative; height: calc(100svh - var(--nav-h) + 2px); overflow: hidden; background: #D79FA4; color: var(--ink); }
.sm-mess { position: absolute; inset: 0; }
.sm-it { position: absolute; left: var(--x); top: var(--y); width: calc(var(--w) * 1vmin); height: auto; translate: -50% -50%; rotate: var(--r); will-change: transform; user-select: none; -webkit-user-drag: none; }
.sm-it.is-dot { aspect-ratio: 1; border-radius: 52% 48% 55% 45% / 47% 55% 45% 53%; background: var(--c); border: 2.5px solid var(--ink); }
.sm-words { position: absolute; left: max(var(--gutter), calc((100vw - 1160px) / 2)); top: 50%; translate: 0 -50%; width: min(440px, 40vw); z-index: 2; }
.sm-words .p-kick { color: var(--ink); }
.sm-words .p-kick::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'%3E%3Cpath d='M3 9 C 40 3, 80 12, 120 6 S 180 5, 197 8' fill='none' stroke='%23F6EC83' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E"); }
.sm-words p { font-size: clamp(15px, 1.25vw, 18px); line-height: 1.6; margin: 0 0 .7em; }
.sm-go { font-family: var(--hand); font-size: 18px !important; color: #fff; rotate: -2deg; margin-top: 1.2em !important; }
.sm-book { position: absolute; left: 50%; top: 50%; width: min(68vw, calc((100svh - var(--nav-h)) * 1.25)); margin: 0; translate: -50% -50%; z-index: 3; visibility: hidden; }
.sm-book img { display: block; width: 100%; height: auto; background: #fff; border: 3px solid var(--ink); border-radius: 6px; box-shadow: 8px 10px 0 var(--ink); }
.sm-book figcaption { position: absolute; right: -10px; bottom: -22px; padding: .35em 1em .3em; background: #F6EC83; border: 2.5px solid var(--ink); border-radius: 999px; box-shadow: 3px 4px 0 var(--ink); font-family: var(--hand); font-size: 20px; rotate: -3deg; }
@media (max-width: 760px) { .sm-words { width: auto; right: var(--gutter); } }
.sm-it { translate: calc(-50% + var(--mx, 0px)) calc(-50% + var(--my, 0px)); transition: translate .5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes sf-bob { from { rotate: calc(var(--r) - 3deg); margin-top: -5px; } to { rotate: calc(var(--r) + 3deg); margin-top: 5px; } }
/* Sticky Fingers mess: the title sized to its text, the underline as wide as the title */
.sm-words .p-kick { font-size: clamp(30px, 3.4vw, 50px); width: fit-content; margin-bottom: .55em; }
.sm-words .p-kick::after { width: 100%; margin-top: 10px; }

/* ---------- My Sicily ---------- */
/* palette from the issue: crema F1E7D5, blu maiolica 2546B0, arancione FC5935, giallo limone F6D200, rosa bougainville E5498A, grigio carta E3E3E3 */
.p-mcon, .p-mflip { --ms-pink: #E5498A; --ms-blue: #2546B0; }
.p-mcon .p-kick, .p-mflip .p-kick { color: var(--ink); width: fit-content; font-size: clamp(32px, 3.6vw, 54px); margin-bottom: .55em; }
.p-mcon .p-kick::after, .p-mflip .p-kick::after { width: 100%; margin-top: 10px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'%3E%3Cpath d='M3 9 C 40 3, 80 12, 120 6 S 180 5, 197 8' fill='none' stroke='%23E5498A' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E"); }

/* the idea: the cover leaning on the cream, with the reader's blue notes around it */
.p-mcon { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 110px); align-items: center; max-width: 1160px; margin: 0 auto; padding: clamp(70px, 10vw, 130px) var(--gutter); }
.p-mcon { background: var(--paper); max-width: none; padding-inline: max(var(--gutter), calc((100vw - 1160px) / 2)); }
.mc-cover { position: relative; justify-self: center; width: min(400px, 36vw); margin: 0; rotate: -4deg; }
.mc-cover img { display: block; width: 100%; height: auto; box-shadow: 14px 18px 0 rgba(20, 18, 16, .14), 0 2px 0 rgba(0, 0, 0, .1); }
.mc-note { position: absolute; left: var(--x); top: var(--y); translate: -50% -50%; rotate: var(--r); font-family: var(--hand); font-size: clamp(16px, 1.5vw, 21px); color: var(--ms-blue); white-space: nowrap; }
.mc-note::after { content: ""; position: absolute; inset: -.45em -.6em; border: 2px solid var(--ms-blue); border-radius: 48% 52% 45% 55% / 55% 45% 55% 45%; opacity: .8; }
.mc-words p { font-size: clamp(15px, 1.25vw, 18px); line-height: 1.6; margin: 0 0 .8em; }
@media (max-width: 760px) { .p-mcon { grid-template-columns: 1fr; } .mc-cover { width: min(300px, 70vw); } }

/* the issue to leaf through: the page holds still and each bit of scroll turns a page */
.p-mflip { position: relative; height: calc(100svh - var(--nav-h) + 2px); overflow: hidden; background: #E3E3E3; --ph: min(calc(100svh - var(--nav-h) - 110px), calc(62vw * 1.415 / 2)); --pw: calc(var(--ph) / 1.415); }
.mf-words { position: absolute; left: max(var(--gutter), calc((100vw - 1160px) / 2)); top: 50%; translate: 0 -50%; width: min(300px, 24vw); z-index: 2; }
.mf-words p { font-size: clamp(14px, 1.15vw, 17px); line-height: 1.6; margin: 0 0 .8em; }
.mf-count { display: inline-block; margin-top: .6em !important; padding: .3em .9em .25em; background: #fff; border: 2.5px solid var(--ink); border-radius: 999px; box-shadow: 3px 4px 0 var(--ink); font-family: var(--hand); font-size: 18px !important; rotate: -2deg; }
.mf-stage { position: absolute; top: 50%; left: calc(max(var(--gutter), (100vw - 1160px) / 2) + min(300px, 24vw) + (100vw - 2 * max(var(--gutter), (100vw - 1160px) / 2) - min(300px, 24vw)) / 2); translate: -50% -50%; width: calc(var(--pw) * 2); height: var(--ph); perspective: 2200px; }
.mf-book { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; }
.mf-leaf { position: absolute; left: 50%; top: 0; width: 50%; height: 100%; transform-origin: 0 50%; transform-style: preserve-3d; }
.mf-leaf img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 10px 24px rgba(0, 0, 0, .16); }
.mf-back { transform: rotateY(180deg); }
.mf-leaf::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(0, 0, 0, .14), rgba(0, 0, 0, 0) 7%); backface-visibility: hidden; }
.mf-stage { perspective: none; }
.mf-book { transform-style: flat; perspective: 2200px; }
.mf-stage { touch-action: pan-y; user-select: none; }   /* the pages can be dragged sideways */
.mf-leaf img { -webkit-user-drag: none; }
.mf-hint { margin-top: 14px !important; font-family: var(--hand); font-size: 19px !important; rotate: -3deg; }
/* a hand-drawn two-way arrow under the words, a bit wobbly, nudging left and right */
.mf-hint svg { display: block; width: 120px; margin: 6px 0 0 10px; overflow: visible; animation: mf-sway 1.6s ease-in-out infinite; }
.mf-hint path { fill: none; stroke: var(--ink); stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; }
@keyframes mf-sway { 0%, 100% { translate: -6px 0; rotate: -2deg; } 50% { translate: 6px 0; rotate: 2deg; } }
/* "you can also zoom in": a hand-drawn magnifying glass and a note; it opens the spread big */
.mf-zoom { display: flex; align-items: center; gap: 10px; margin-top: 20px; padding: 0; border: 0; background: none; color: var(--ink); text-align: left;
  font-family: var(--hand); font-size: 15px; line-height: 1.15; rotate: -2deg; }
.mf-zoom svg { width: 40px; flex: none; overflow: visible; transition: rotate .3s cubic-bezier(.3,1.8,.5,1), scale .3s cubic-bezier(.3,1.8,.5,1); }
.mf-zoom path { fill: none; stroke: var(--ink); stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; }
.mf-zoom path:first-child { fill: #fff; } .mf-zoom path:last-child { stroke-width: 8; }
.mf-zoom:hover svg { rotate: -12deg; scale: 1.15; }
.mf-zoom b { font-weight: 400; color: var(--ms-pink); }
.mf-zoom:hover span { text-decoration: underline wavy #F6D200 3px; text-underline-offset: 5px; }
/* the spread, big */
.mf-view { position: fixed; inset: 0; z-index: 8000; display: grid; place-items: center; overflow: hidden; background: rgba(232, 230, 226, .97); opacity: 0; pointer-events: none; transition: opacity .3s; }
.mf-view.is-open { opacity: 1; pointer-events: auto; }
.mf-spread { display: flex; height: min(calc(100svh - 120px), (100vw - 2 * var(--gutter) - 200px) * 1415 / 2000); box-shadow: 0 20px 50px rgba(0,0,0,.25); cursor: zoom-in !important; }
.mf-view.is-zoomed .mf-spread { cursor: zoom-out !important; }
.mf-spread img { height: 100%; width: auto; display: block; }
.mf-spread img[hidden] { display: none; }
.mf-x { position: absolute; top: 18px; right: var(--gutter); padding: 6px 16px; border: 2.5px solid var(--ink); border-radius: 30px; background: #F6D200; font-family: var(--hand); font-size: 18px; box-shadow: 3px 3px 0 var(--ink); z-index: 2; }
.mf-vhint { position: absolute; bottom: 14px; left: 50%; translate: -50% 0; margin: 0; font-family: var(--hand); font-size: 18px; rotate: -2deg; transition: opacity .3s; }
.mf-view.is-zoomed .mf-vhint { opacity: .35; }
.mf-spread img { -webkit-user-drag: none; user-select: none; }
/* the hand-drawn arrows on either side, in My Sicily's yellow */
.mf-arr { position: absolute; top: 50%; translate: 0 -50%; z-index: 2; display: grid; place-items: center; width: 74px; height: 74px; padding: 0;
  border: 3px solid var(--ink); border-radius: 46% 54% 50% 50% / 52% 46% 54% 48%; background: #F6D200; box-shadow: 4px 5px 0 var(--ink);
  transition: translate .15s, box-shadow .15s, opacity .2s; }
.mf-arr svg { width: 44px; overflow: visible; }
.mf-arr path { fill: none; stroke: var(--ink); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.mf-prev { left: var(--gutter); rotate: 3deg; } .mf-prev svg { scale: -1 1; }
.mf-next { right: var(--gutter); rotate: -3deg; }
.mf-arr:hover { translate: -1px calc(-50% - 2px); box-shadow: 6px 7px 0 var(--ink); }
.mf-arr:active { translate: 2px calc(-50% + 3px); box-shadow: 1px 1px 0 var(--ink); }
.mf-arr:disabled { opacity: .25; pointer-events: none; }
.mf-vcount { position: absolute; top: 20px; left: var(--gutter); margin: 0; padding: .3em .9em .25em; background: #F6D200; border: 2.5px solid var(--ink); border-radius: 999px; box-shadow: 3px 4px 0 var(--ink); font-family: var(--hand); font-size: 18px; rotate: -2deg; z-index: 2; }
@media (hover: none), (max-width: 820px) { .mf-zoom { display: none; } }   /* flat, so the page order follows z-index; each leaf keeps its own 3D turn */
.mc-cover { width: min(340px, 30vw, calc((100svh - var(--nav-h) - 170px) / 1.415)); }

/* footer: a thank-you, the little angel in the middle, the name small on the right */
.footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px 16px; padding: 22px var(--gutter) 16px; }
.footer { background: var(--blue); color: #fff; }
.ft-love { margin: 0; font-family: var(--hand); font-size: clamp(16px, 1.4vw, 21px); line-height: 1.3; }
.ft-thanks { margin: 0; justify-self: end; display: block; line-height: 1.5; font-family: var(--hand); font-size: clamp(18px, 1.7vw, 26px); color: #fff; text-align: right; }
.ft-thanks span { display: inline-block; margin-left: .6em; } .ft-thanks span:nth-of-type(odd) { rotate: -4deg; } .ft-thanks span:nth-of-type(even) { rotate: 3deg; }

/* the angel sits on a white hand-drawn badge (so its blue wings show) and takes you back up */
.footer .to-top { display: flex; flex-direction: column; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.ft-badge { display: block; width: clamp(70px, 5.5vw, 90px); rotate: -6deg; transition: translate .25s, rotate .25s; }
.footer .ft-badge .angel { width: 100%; rotate: 0deg; translate: 0 0; display: block; }
/* wings: white with their blue line, and a thin white rim so the blue line still reads on the blue footer */
.footer .angel .wing { fill: #fff; stroke: var(--blue); stroke-width: 9; stroke-linejoin: round; }
.footer .ft-badge .angel { filter: drop-shadow(1.5px 0 0 #fff) drop-shadow(-1.5px 0 0 #fff) drop-shadow(0 1.5px 0 #fff) drop-shadow(0 -1.5px 0 #fff); }
.footer .angel .face { stroke: var(--ink); }
.ft-up { position: relative; font-family: var(--hand); font-size: clamp(15px, 1.2vw, 19px); white-space: nowrap; }
/* a little hand-drawn arrow curling up from the words to the angel */
.ft-point { position: absolute; right: 100%; bottom: 55%; width: 30px; height: 26px; margin-right: -4px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
/* on hover the angel flies up a little and flaps: that's where it takes you */
.footer .to-top:hover .ft-badge { translate: 0 -10px; rotate: 4deg; }
.footer .to-top:hover .wing-l { animation: flap-l .35s ease-in-out infinite alternate; }
.footer .to-top:hover .wing-r { animation: flap-r .35s ease-in-out infinite alternate; }
/* the footer opens with the same cloud as the next-project band: blue puffs rising into the white page */
.footer .ft-cloud { grid-column: 1 / -1; height: calc(100vw * 48 / 1440 + 3px); margin: -22px calc(-1 * var(--gutter)) 0; background: var(--paper); }
.footer .ft-cloud .fill { fill: var(--blue); }
html:has(body.home) { background: var(--blue); }
/* while the hero photo loads, its box shows the category colour instead of black */
.theme-yellow .p-hero { background: var(--yellow); } .theme-red .p-hero { background: var(--red); } .theme-green .p-hero { background: var(--green); }

/* My Sicily: the opening photo is a real mockup, straight, in the yellow editorial frame */
.mc-cover.is-photo { width: min(720px, 52vw, calc((100svh - var(--nav-h) - 80px) * 1.3)); rotate: 0deg; }
.mc-cover.is-photo img { box-shadow: none; }   /* the mockup's white melts into the page: just the magazine */
.p-mcon { min-height: calc(100svh - var(--nav-h)); box-sizing: border-box; }
/* front & back, on the issue's cream: the cover hangs from a hand coming in from the top edge, its why beside it;
   scrolling on, the why of the back cover with the back cover on the right */
.p-mcovers { --ms-pink: #E5498A; --ms-blue: #2546B0; background: #F1E7D5; padding: 0 max(var(--gutter), calc((100vw - 1160px) / 2)); }
.mv-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 110px); align-items: center; min-height: calc(100svh - var(--nav-h)); }
.mv-row.is-back .mv-stage { order: 2; }
.p-mcovers .p-kick { color: var(--ink); width: fit-content; font-size: clamp(32px, 3.6vw, 54px); margin: 0 0 .55em; }
.p-mcovers .p-kick::after { width: 100%; margin-top: 10px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'%3E%3Cpath d='M3 9 C 40 3, 80 12, 120 6 S 180 5, 197 8' fill='none' stroke='%23E5498A' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E"); }
.mv-stage { position: relative; justify-self: center; }
.mv-pic { margin: 0; }
.mv-pic img { display: block; width: 100%; height: auto; }
.is-hold .mv-stage { align-self: start; }
.is-hold .mv-pic { width: min(330px, 26vw, calc((100svh - var(--nav-h) - 30px) * 600 / 1182)); transform-origin: 58% 22%; animation: ms-swing 3.4s ease-in-out infinite alternate; }
.is-hold .mv-pic img { filter: drop-shadow(10px 16px 10px rgba(60, 40, 20, .18)); }
.is-back .mv-pic { width: min(380px, 32vw); }
.mv-words { max-width: 440px; }
.mv-title { font-family: var(--hand); font-weight: 400; font-size: clamp(22px, 2vw, 30px); color: var(--ink); margin: 0 0 .35em; }
.mv-words p { font-size: clamp(15px, 1.2vw, 17px); line-height: 1.6; margin: 0; }
@keyframes ms-swing { from { rotate: -2deg; } to { rotate: 2deg; } }
/* little notes in the margins, written at an angle, with pink arrows pointing at the detail they explain */
.mv-arrows { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; fill: none; stroke: var(--ms-pink); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.mv-arrows path { vector-effect: non-scaling-stroke; }
.mv-note { position: absolute; left: var(--x); top: var(--y); translate: -50% -50%; rotate: var(--r); font-family: var(--hand); font-size: clamp(14px, 1.2vw, 18px); line-height: 1.15; color: var(--ink); text-align: center; white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .is-hold .mv-pic { animation: none; } }
@media (max-width: 760px) {
  .mv-row { grid-template-columns: 1fr; } .mv-row.is-back .mv-pic { order: 0; }
  .is-hold .mv-pic { width: min(260px, 66vw); } .is-back .mv-pic { width: min(280px, 70vw); }
}
/* the pink underline only as wide as the words, so it never runs into the open magazine */
.p-mflip .p-kick { width: max-content; max-width: 100%; font-size: clamp(28px, 2.9vw, 44px); }
.is-back .mv-stage { rotate: 3deg; }
.is-back .mv-pic { width: min(400px, 30vw, calc((100svh - var(--nav-h) - 120px) * 749 / 985)); }
.is-back .mv-pic img { box-shadow: 12px 16px 0 rgba(20, 18, 16, .14); }
/* arrows are drawn twice: an ink outline under the colour. On the cover they're plain pink; on the red back cover
   pink would disappear, so there they turn sunny yellow with the ink line around them */
.mv-arrows .mv-o { stroke: var(--ink); stroke-width: 6; }
.mv-arrows .mv-i { stroke-width: 3; }
.is-back .mv-arrows .mv-o { display: inline; stroke: var(--ink); stroke-width: 6; }
.is-back .mv-arrows .mv-i { stroke: #F6D200; stroke-width: 3; }
/* the opening photo a touch bigger than its column: it grows out to the left, the words keep their place */
.mc-cover.is-photo { justify-self: end; width: min(590px, 43vw, calc((100svh - var(--nav-h) - 60px) * 1.23)); }

/* the yellow band at the end of a project: previous on the left, the little angel in the middle (fly me up!), next on the right */
.next-wrap { grid-template-columns: 1fr auto 1fr; }
.next-wrap .next-up { justify-self: center; display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.next-wrap .ft-badge .angel { width: 100%; display: block; }
.next-wrap .ft-point { stroke: var(--ink); }
.next-wrap .next-up:hover .ft-badge { translate: 0 -10px; rotate: 4deg; }
.next-wrap .next-up:hover .wing-l { animation: flap-l .35s ease-in-out infinite alternate; }
.next-wrap .next-up:hover .wing-r { animation: flap-r .35s ease-in-out infinite alternate; }
@media (max-width: 760px) { .next-wrap { grid-template-columns: 1fr; justify-items: center; } .next-wrap .next, .next-wrap .next.is-prev { justify-self: center; } .next-wrap .next-up { order: 3; } }
/* the little angel in the yellow band dressed like the one in the home footer: white wings with their blue line and
   a thin white rim all round, so the halo and wings still read on the yellow */
.next-wrap .angel .wing { fill: #fff; stroke: var(--blue); stroke-width: 9; stroke-linejoin: round; }
.next-wrap .ft-badge .angel { filter: drop-shadow(1.5px 0 0 #fff) drop-shadow(-1.5px 0 0 #fff) drop-shadow(0 1.5px 0 #fff) drop-shadow(0 -1.5px 0 #fff); }
/* the cloud edge between the blue ending and the yellow band, a little lower */
.next-wrap .next-cloud { height: calc(100vw * 92 / 1440 + 3px); }
/* My Sicily: the scroll pill on the photo and the page counter of the flipbook in the issue's giallo limone */
.is-my-sicily .p-hint, .is-my-sicily .mf-count { background: #F6D200; }
/* front & back: both magazines at the same size, and the arrows without the ink outline */
.is-hold .mv-pic { width: min(350px, 26vw, calc((100svh - var(--nav-h) - 30px) * 600 / 1182)); }
.is-back .mv-pic { width: min(350px, 26vw, calc((100svh - var(--nav-h) - 120px) * 749 / 985)); }
.mv-arrows .mv-o, .is-back .mv-arrows .mv-o { display: none; }
/* front & back: the hand swings the cover more, and faster */
.is-hold .mv-pic { animation: ms-swing-big 1.9s ease-in-out infinite alternate; }
@keyframes ms-swing-big { from { rotate: -5deg; } to { rotate: 5deg; } }

/* back to top, take two: the angel on a white coin (round, like the prev/next photos), "fly me up!" circling it */
.to-top.fly { position: relative; display: grid; place-items: center; width: clamp(150px, 12vw, 185px); aspect-ratio: 1; justify-self: center; text-decoration: none; }
.fly-ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; animation: fly-spin 16s linear infinite; }
.fly-ring text { font-family: var(--hand); font-size: 19px; fill: #fff; letter-spacing: .5px; }
.next-wrap .fly-ring text { fill: var(--ink); }
.fly-coin { position: relative; display: grid; place-items: center; width: 60%; aspect-ratio: 1; border-radius: 50%; background: #fff; transition: translate .3s cubic-bezier(.3,1.6,.5,1), scale .3s; }
.next-wrap .fly-coin { filter: drop-shadow(3px 4px 0 rgba(0,0,0,.12)); }
.to-top.fly .fly-coin .angel { width: 66%; rotate: -6deg; translate: 0 2px; display: block; filter: none; }
.to-top.fly .angel .wing { fill: #fff; stroke: var(--blue); stroke-width: 9; stroke-linejoin: round; }
/* hover: the coin lifts and the angel flaps */
.to-top.fly:hover .fly-coin { translate: 0 -8px; scale: 1.06; }

.to-top.fly:hover .wing-l { animation: flap-l .3s ease-in-out infinite alternate; }
.to-top.fly:hover .wing-r { animation: flap-r .3s ease-in-out infinite alternate; }
@keyframes fly-spin { to { rotate: 360deg; } }
@media (prefers-reduced-motion: reduce) { .fly-ring { animation: none; } }
/* arriving through the cloud: the page starts covered in the cloud's colour until the top photo is ready */
html.arriving .wipe { background: var(--wipe-c, var(--blue)); }
/* the coin gets the site's ink outline, like the prev/next pills */
.fly-coin { border: 3px solid var(--ink); }
/* the cloud edge above the prev/next band, lower again */
.next-wrap .next-cloud { height: calc(100vw * 58 / 1440 + 3px); margin-top: -18px; }
.wipe { transition: opacity .35s ease-out; } .wipe.lift { opacity: 0; }
/* end band, take three: just a round white button with a hand-drawn arrow, in the same ink style as prev/next */
.up-btn { justify-self: center; display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.up-circle { display: grid; place-items: center; width: clamp(62px, 5vw, 76px); aspect-ratio: 1; border-radius: 50%; background: #fff; border: 3px solid var(--ink);
  filter: drop-shadow(5px 5px 0 var(--ink)); transition: transform .25s, filter .25s; }
.up-circle svg { width: 55%; fill: none; stroke: var(--ink); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.up-txt { font-family: var(--hand); font-size: clamp(16px, 1.3vw, 20px); }
.up-btn:hover .up-circle { transform: translate(-3px, -3px); filter: drop-shadow(8px 8px 0 var(--ink)); }
.up-btn:hover .up-circle svg { animation: up-bob .5s ease-in-out infinite alternate; }
@keyframes up-bob { to { translate: 0 -4px; } }
/* no yellow line above the band's cloud edge */
.next-wrap .next-cloud { margin-top: -29px; }
@media (max-width: 760px) { .next-wrap .up-btn { order: 3; } }

/* ---------- Conscious Hotels: its own palette (the sage of the postcards and stickers, the menu's yellow) ---------- */
.is-conscious { --cs-sage: #a9bdb3; --cs-deep: #4f6d61; --cs-cream: #f4f1e8; --cs-yellow: #efea93; }
.is-conscious .p-kick { color: var(--cs-deep); }
.is-conscious .pd-hint { color: var(--cs-deep); }
.is-conscious .p-deck { --cw: min(22vw, 250px, calc((100svh - var(--nav-h) - 170px) * .7)); }

/* the vinyl: a record player on the sage; the sleeve slides off, the needle drops, the record spins */
.p-vinyl { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 80px); align-items: center;
  min-height: calc(100svh - var(--nav-h)); box-sizing: border-box; padding: clamp(24px, 4vh, 48px) var(--gutter); background: var(--cs-sage); overflow: hidden; }
.pv-words { max-width: 440px; justify-self: end; }
.pv-words > p { margin: 14px 0 0; font-size: clamp(14px, 1.05vw, 16px); line-height: 1.6; }
.pv-list { margin-top: 18px; }
.pv-side { margin: 12px 0 4px; font-family: var(--hand); font-size: 18px; color: var(--cs-deep); }
.pv-list ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.pv-track { display: flex; justify-content: space-between; gap: 12px; width: 100%; padding: 7px 12px; border: 2px solid transparent; border-radius: 30px; background: none; font: inherit; font-size: 13px; text-align: left; color: var(--ink); cursor: pointer; transition: background .2s, border-color .2s, translate .2s; }
.pv-track:hover { background: rgba(255,255,255,.45); translate: 4px 0; }
.pv-track.is-on { background: var(--cs-yellow); border-color: var(--ink); }
.pv-song { font-weight: 600; }
.pv-drink { font-style: italic; opacity: .75; white-space: nowrap; }
.pv-hint { margin: 16px 0 0; font-family: var(--hand); font-size: 20px; color: var(--cs-deep); rotate: -3deg; }

.pv-stage { position: relative; width: min(100%, 680px, calc((100svh - var(--nav-h) - 60px) * 600 / 520)); aspect-ratio: 600 / 520; justify-self: start; }
.pv-deck, .pv-arm { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.pv-plinth { fill: var(--cs-cream); stroke: var(--ink); stroke-width: 4; filter: drop-shadow(8px 9px 0 rgba(17,17,17,.85)); }
.pv-mat { fill: #1d1d1d; }
.pv-knob { fill: #fff; stroke: var(--ink); stroke-width: 3.5; }
.pv-led { stroke: #e34c4c; stroke-width: 6; stroke-linecap: round; opacity: .3; transition: opacity .3s; }
.p-vinyl.is-playing .pv-led { opacity: 1; }
.pv-arm { z-index: 3; pointer-events: none; }
.pv-pivot { fill: #fff; stroke: var(--ink); stroke-width: 4; }
.pv-rod { fill: none; stroke: var(--ink); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.pv-head { fill: var(--cs-deep); stroke: var(--ink); stroke-width: 3; }
/* the record sits on the platter (centre 260,260 of 600x520, 205 radius) */
.pv-record { position: absolute; left: calc(260 / 600 * 100%); top: 50%; width: calc(410 / 600 * 100%); aspect-ratio: 1; translate: -50% -50%; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; z-index: 1; }
.pv-spin, .pv-flipper { position: absolute; inset: 0; display: block; border-radius: 50%; }
.pv-flipper { transform-style: preserve-3d; }
.pv-disc { position: absolute; inset: 0; width: 100%; height: 100%; backface-visibility: hidden; border-radius: 50%;
  box-shadow: 0 0 0 3px var(--ink), 0 14px 28px rgba(0,0,0,.35); }
.pv-b { transform: rotateY(180deg); }
.pv-record[data-side="b"] .pv-flipper { transform: rotateY(180deg); }
/* fine grooves over the print, so it reads as vinyl */
.pv-spin::after { content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background: repeating-radial-gradient(circle, transparent 0 5px, rgba(0,0,0,.035) 5px 6px), conic-gradient(from 30deg, transparent 0 10%, rgba(255,255,255,.28) 14%, transparent 20% 60%, rgba(255,255,255,.18) 64%, transparent 70%); }
.pv-ring { position: absolute; left: var(--x, 50%); top: var(--y, 50%); width: 42%; translate: -50% -50%; overflow: visible; fill: none; stroke: #e34c4c; stroke-width: 2.4; stroke-linecap: round; z-index: 2; pointer-events: none; }
.pv-ring path { stroke-dasharray: 1; stroke-dashoffset: 1; vector-effect: non-scaling-stroke; transition: stroke-dashoffset .6s ease-out; }
.pv-record.is-picked .pv-ring path { stroke-dashoffset: 0; }
/* the sleeve: over the record at first, then slid off to the left of the deck */
.pv-sleeve { position: absolute; left: calc(260 / 600 * 100%); top: 50%; width: calc(440 / 600 * 100%); aspect-ratio: 1; translate: -50% -50%; z-index: 4; perspective: 1400px; pointer-events: none; }
.pv-sleeve-in { position: absolute; inset: 0; transform-style: preserve-3d; }
.pv-sleeve img { position: absolute; inset: 0; width: 100%; height: 100%; backface-visibility: hidden; border: 3px solid var(--ink); box-sizing: border-box; box-shadow: 8px 10px 0 rgba(17,17,17,.85); }
.pv-back { transform: rotateY(180deg); }
.pv-now { position: absolute; right: 2%; top: -6%; margin: 0; display: grid; justify-items: end; gap: 2px; z-index: 5; font-family: var(--hand); text-align: right; rotate: 3deg; }
.pv-now-l { font-size: 14px; color: var(--cs-deep); }
.pv-now-t { padding: 6px 14px; border: 2.5px solid var(--ink); border-radius: 30px; background: var(--cs-yellow); font-size: clamp(14px, 1.2vw, 18px); max-width: 26ch; }
.pv-note { position: absolute; left: 46%; top: 40%; z-index: 2; font-size: clamp(22px, 2.4vw, 34px); color: var(--ink); opacity: 0; pointer-events: none; }
.p-vinyl.is-playing .pv-note { animation: pv-float 2.6s ease-out infinite; }
.p-vinyl.is-playing .pv-note.n2 { animation-delay: .9s; left: 30%; } .p-vinyl.is-playing .pv-note.n3 { animation-delay: 1.7s; left: 58%; }
@keyframes pv-float { 0% { opacity: 0; translate: 0 0; rotate: -10deg; } 20% { opacity: 1; } 100% { opacity: 0; translate: 40px -170px; rotate: 18deg; } }
.pv-flip { position: absolute; left: calc(260 / 600 * 100%); bottom: -3%; translate: -50% 0; z-index: 5; padding: 8px 18px; border: 2.5px solid var(--ink); border-radius: 30px; background: #fff; font-family: var(--hand); font-size: 17px; color: var(--ink); cursor: pointer; box-shadow: 4px 4px 0 var(--ink); transition: translate .2s, box-shadow .2s; }
.pv-flip:hover { translate: calc(-50% - 2px) -2px; box-shadow: 6px 6px 0 var(--ink); }
@media (max-width: 860px) { .p-vinyl { grid-template-columns: 1fr; } .pv-words { justify-self: start; } .pv-stage { justify-self: center; margin: 40px 0 30px; } }

/* the star sticker: the mouse turns it over */
.p-stars .ps-star { position: relative; width: min(40vw, 460px); aspect-ratio: 820 / 780; padding: 0; border: 0; background: none; perspective: 1400px; cursor: pointer; rotate: -4deg; }
.ps-in { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .8s cubic-bezier(.3, 1.5, .5, 1); }
.ps-in img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; backface-visibility: hidden; border-radius: 4px; box-shadow: 0 12px 26px rgba(17,17,17,.2); }
.ps-b { transform: rotateY(180deg); }
.ps-star:hover .ps-in, .ps-star.is-flip .ps-in { transform: rotateY(180deg); }
.ps-hint { position: absolute; left: 50%; bottom: -44px; translate: -50% 0; font-family: var(--hand); font-size: 20px; color: var(--cs-deep); white-space: nowrap; }
@media (hover: none) { .ps-star:hover .ps-in { transform: none; } .ps-star.is-flip .ps-in { transform: rotateY(180deg); } }
.pv-flipper { transition: transform .75s cubic-bezier(.4, 1.4, .5, 1); }
@media (prefers-reduced-motion: reduce) { .pv-sleeve { display: none; } }
.pv-ring { opacity: 0; transition: opacity .2s; } .pv-record.is-picked .pv-ring { opacity: 1; }
.pv-ring path { vector-effect: none; stroke-width: 2.4; }
.is-conscious .p-deck-wrap { grid-template-columns: auto minmax(260px, 1fr); max-width: 1240px; }
.is-conscious .p-deck { --cw: min(16vw, 220px, calc((100svh - var(--nav-h) - 170px) * .7)); }
.is-conscious .p-frame { box-shadow: 9px 9px 0 var(--cs-sage); }
.is-conscious .p-pair { max-width: min(820px, calc((100svh - var(--nav-h) - 160px) * 1.45)); }

/* the facts under the title wrap instead of running off the screen */
.p-meta { grid-template-columns: repeat(3, minmax(0, auto)); }
.p-meta dd { white-space: normal; text-wrap: balance; }
/* the "scroll" pill on every project hero, in its category's colour */
.theme-green .p-hint { background: var(--green); color: #fff; }
.theme-red .p-hint { background: var(--red); color: #fff; }
.theme-yellow .p-hint { background: var(--yellow); }

/* ---------- Conscious, take two ---------- */
.is-conscious .p-kick::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'%3E%3Cpath d='M3 9 C 40 3, 80 12, 120 6 S 180 5, 197 8' fill='none' stroke='%23a9bdb3' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E"); }
.p-vinyl .p-kick::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'%3E%3Cpath d='M3 9 C 40 3, 80 12, 120 6 S 180 5, 197 8' fill='none' stroke='%23ffffff' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E"); }
.p-vinyl .p-kick { color: var(--ink); }
.pv-words > p { font-size: clamp(14px, 1.1vw, 17px); }
.pv-hint { margin-top: 22px; color: var(--ink); opacity: .7; }
/* the bubbles take Sticky Fingers' pink (the menu is theirs) */
.pv-now { right: 2%; top: -7%; padding: 7px 16px; border: 2.5px solid var(--ink); border-radius: 30px; background: #D79FA4; font-size: clamp(15px, 1.25vw, 19px); box-shadow: 4px 4px 0 var(--ink); display: block; }
.pv-now b { font-weight: 400; }
.pv-flip { background: #D79FA4; }
/* the cover first: big on the empty sage, the record player appears under it as it shrinks away */
.pv-sleeve { width: calc(440 / 600 * 100%); }
.pv-sleeve img { position: static; display: block; width: 100%; height: auto; border: 3px solid var(--ink); box-shadow: 8px 10px 0 rgba(17,17,17,.85); }

/* the cover can be touched: it lifts and wiggles a little; a click opens it */
.pv-sleeve { pointer-events: auto; }
.pv-sleeve img { transition: transform .35s cubic-bezier(.3,1.8,.5,1), box-shadow .25s; }
.pv-sleeve:hover img { transform: translate(-4px, -6px) rotate(-3deg); box-shadow: 14px 16px 0 rgba(17,17,17,.85); }
.pv-sleeve:focus { outline: none; } .pv-sleeve:focus-visible img { outline: 3px dashed var(--ink); outline-offset: 6px; }
/* opened big: the record slides out of the sleeve */
.pv-lightbox { cursor: pointer; }
.pv-lb { position: relative; width: min(56vh, 40vw); aspect-ratio: 1; translate: -18% 0; }
.pv-lb img { position: absolute; inset: 0; width: 100%; height: 100%; }
.pv-lb-cover { z-index: 1; border: 3px solid var(--ink); box-sizing: border-box; box-shadow: 10px 12px 0 rgba(17,17,17,.85); rotate: -2deg; transition: scale .5s cubic-bezier(.3,1.5,.5,1); scale: .85; }
.pv-lb-disc { border-radius: 50%; box-shadow: 0 0 0 3px var(--ink), 0 14px 28px rgba(0,0,0,.35); scale: .92;
  transition: transform 1s cubic-bezier(.3,1.2,.4,1) .25s; }
.pv-lightbox.is-open .pv-lb-cover { scale: 1; }
.pv-lightbox.is-open .pv-lb-disc { transform: translateX(52%) rotate(200deg); }

/* the Christmas postcards, big */
.cs-lightbox { position: fixed; inset: 0; z-index: 8000; display: grid; place-items: center; background: rgba(169, 189, 179, .94); opacity: 0; pointer-events: none; transition: opacity .3s; }
.cs-lightbox.is-open { opacity: 1; pointer-events: auto; }
.cs-lb-pair { display: flex; gap: clamp(16px, 3vw, 40px); align-items: center; padding: 0 var(--gutter); }
.cs-lb-pair img { width: auto; max-width: 42vw; max-height: calc(100svh - 140px); box-shadow: 0 20px 40px rgba(17,17,17,.25); transition: transform .5s cubic-bezier(.3,1.5,.5,1); }
.cs-lb-pair img:first-child { rotate: -2deg; } .cs-lb-pair img:last-child { rotate: 2deg; }
.cs-lightbox.is-open .cs-lb-pair img { animation: cs-pop .5s cubic-bezier(.3,1.5,.5,1) both; } .cs-lightbox.is-open .cs-lb-pair img:last-child { animation-delay: .08s; }
@keyframes cs-pop { from { transform: scale(.6) translateY(40px); opacity: 0; } }
.cs-lb-close { position: absolute; top: calc(var(--nav-h) + 14px); right: var(--gutter); padding: 6px 16px; border: 2.5px solid var(--ink); border-radius: 30px; background: #fff; font-family: var(--hand); font-size: 18px; cursor: pointer; box-shadow: 3px 3px 0 var(--ink); }
@media (max-width: 700px) { .cs-lb-pair { flex-direction: column; } .cs-lb-pair img { max-width: 80vw; max-height: 40svh; } }

/* Pride: its own little world, with the rainbow line running behind */
.p-pride { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: clamp(24px, 4vw, 64px); align-items: center; max-width: 1240px; min-height: calc(100svh - var(--nav-h)); box-sizing: border-box; margin: 0 auto; padding: 40px var(--gutter); }
.pp-words { position: relative; z-index: 2; max-width: 420px; }
.pp-words p { font-size: clamp(14px, 1.05vw, 16px); line-height: 1.6; }
.p-pride .p-kick::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'%3E%3ClinearGradient id='r'%3E%3Cstop offset='0' stop-color='%23e94b3c'/%3E%3Cstop offset='.25' stop-color='%23f6a623'/%3E%3Cstop offset='.5' stop-color='%23f5d43b'/%3E%3Cstop offset='.75' stop-color='%2350b05f'/%3E%3Cstop offset='1' stop-color='%236a5acd'/%3E%3C/linearGradient%3E%3Cpath d='M3 9 C 40 3, 80 12, 120 6 S 180 5, 197 8' fill='none' stroke='url(%23r)' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E"); }
.pp-poster, .pp-wall { position: relative; z-index: 2; margin: 0; }
.pp-poster { width: min(24vw, 340px, calc((100svh - var(--nav-h) - 120px) * .71)); rotate: -3deg; box-shadow: 9px 9px 0 var(--ink); border: 3px solid var(--ink); }
.pp-wall { width: min(26vw, 380px); rotate: 4deg; translate: -30px 90px; border: 3px solid var(--ink); box-shadow: 9px 9px 0 var(--cs-sage); }
.pp-poster img, .pp-wall img { display: block; width: 100%; height: auto; }
.pp-line { position: absolute; left: 0; top: 50%; width: 100%; height: 160px; translate: 0 -50%; z-index: 1; overflow: visible; fill: none; stroke-width: 26; stroke-linecap: round; stroke: url(#none); }
.pp-line path { stroke: #a9bdb3; opacity: .45; stroke-dasharray: 1; stroke-dashoffset: 1; }
@media (max-width: 900px) { .p-pride { grid-template-columns: 1fr; justify-items: center; } .pp-poster, .pp-wall { width: min(70vw, 360px); } .pp-wall { translate: 0; } }

/* Cork Free Mondays: click the poster, a cork pops */
.p-cork { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 80px); align-items: center; max-width: 1240px; min-height: calc(100svh - var(--nav-h)); box-sizing: border-box; margin: 0 auto; padding: 40px var(--gutter); }
.pk-words { max-width: 420px; justify-self: end; }
.pk-words p { font-size: clamp(14px, 1.05vw, 16px); line-height: 1.6; }
.pk-count { margin-top: 22px !important; padding: 10px 16px; border: 2.5px dashed var(--ink); border-radius: 14px; font-family: var(--hand); font-size: 18px !important; line-height: 1.4 !important; display: inline-block; rotate: -2deg; }
.pk-count b { font-weight: 400; color: #8a3b2a; }
.pk-stage { position: relative; height: min(78svh, 680px); }
.pk-post { position: absolute; right: 0; top: 4%; width: 46%; margin: 0; rotate: 6deg; border: 3px solid var(--ink); box-shadow: 8px 8px 0 var(--cs-sage); }
.pk-post img { display: block; width: 100%; height: auto; }
.pk-poster { position: absolute; left: 4%; top: 0; height: 100%; aspect-ratio: 1273 / 1800; padding: 0; border: 3px solid var(--ink); background: none; rotate: -3deg; box-shadow: 9px 9px 0 var(--ink); cursor: pointer; transition: rotate .25s; }
.pk-poster img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pk-poster:hover { rotate: -1deg; }
.pk-poster:active { scale: .98; }
.pk-tag { position: absolute; right: -26px; top: 18%; padding: 6px 14px; border: 2.5px solid var(--ink); border-radius: 30px; background: #fff; font-family: var(--hand); font-size: 17px; rotate: 8deg; box-shadow: 3px 3px 0 var(--ink); }
.pk-cork { position: fixed; z-index: 7000; width: 34px; height: 22px; border: 2.5px solid var(--ink); border-radius: 6px; background: #c9935a repeating-linear-gradient(90deg, transparent 0 5px, rgba(80,40,10,.25) 5px 7px); pointer-events: none; }
.pk-pop { position: fixed; z-index: 7001; font-family: var(--hand); font-size: 44px; color: #fff; -webkit-text-stroke: 2px var(--ink); paint-order: stroke; pointer-events: none; }
@media (max-width: 900px) { .p-cork { grid-template-columns: 1fr; } .pk-words { justify-self: start; } .pk-stage { height: 70svh; } }

/* Spritz o'clock: the question and the answer, and the clock between them winding to five */
.p-spritz { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 80px); align-items: center; min-height: calc(100svh - var(--nav-h)); box-sizing: border-box; padding: 40px max(var(--gutter), calc((100vw - 1240px) / 2)); background: #e9e1d2; overflow: hidden; }
.pz-words { max-width: 420px; justify-self: end; }
.pz-words p { font-size: clamp(14px, 1.05vw, 16px); line-height: 1.6; }
.p-spritz .p-kick { color: #3d3730; }
.p-spritz .p-kick::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'%3E%3Cpath d='M3 9 C 40 3, 80 12, 120 6 S 180 5, 197 8' fill='none' stroke='%23f08a24' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E"); }
.pz-stage { position: relative; height: min(76svh, 660px); }
.pz-q, .pz-a { position: absolute; top: 6%; height: 86%; aspect-ratio: 1271 / 1800; margin: 0; border: 3px solid var(--ink); box-shadow: 9px 9px 0 var(--ink); transition: rotate .5s cubic-bezier(.3,1.6,.5,1), translate .5s cubic-bezier(.3,1.6,.5,1); }
.pz-q { left: 0; rotate: -6deg; } .pz-a { right: 0; rotate: 6deg; }
.pz-q img, .pz-a img { display: block; width: 100%; height: 100%; object-fit: cover; }
.p-spritz.is-five .pz-q { rotate: 3deg; translate: 18px 0; } .p-spritz.is-five .pz-a { rotate: -3deg; translate: -18px 0; }
.pz-clock { position: absolute; left: 50%; top: 50%; width: min(30%, 190px); translate: -50% -50%; z-index: 3; overflow: visible; filter: drop-shadow(5px 6px 0 var(--ink)); }
.pz-face { fill: #f08a24; stroke: var(--ink); stroke-width: 5; }
.pz-ticks path { stroke: #fff6e6; stroke-width: 5; stroke-linecap: round; }
.pz-five { font-family: var(--hand); font-size: 30px; fill: #fff; stroke: var(--ink); stroke-width: 1.5; paint-order: stroke; }
.pz-h, .pz-m { stroke: var(--ink); stroke-linecap: round; } .pz-h { stroke-width: 9; } .pz-m { stroke-width: 6; }
.pz-pin { fill: #fff; stroke: var(--ink); stroke-width: 3; }
.pz-cheers { position: absolute; left: 50%; top: calc(50% + min(15%, 95px) + 26px); translate: -50% 0; z-index: 4; margin: 0; padding: 6px 18px; border: 2.5px solid var(--ink); border-radius: 30px; background: #fff; font-family: var(--hand); font-size: 22px; scale: 0; rotate: -6deg; transition: scale .4s cubic-bezier(.3,1.8,.5,1); }
.p-spritz.is-five .pz-cheers { scale: 1; }
@media (max-width: 900px) { .p-spritz { grid-template-columns: 1fr; } .pz-words { justify-self: start; } .pz-stage { height: 64svh; } }

/* even the job ads: the eyes in L00KING follow the mouse */
.ph-poster { position: relative; }
.ph-eye { position: absolute; z-index: 3; aspect-ratio: 26 / 38; translate: -50% -50%; border-radius: 50%; background: #fff; border: 2px solid #111; box-sizing: border-box; pointer-events: none; }
.ph-eye i { position: absolute; left: 50%; top: 50%; width: 52%; aspect-ratio: 1; margin: -26% 0 0 -26%; border-radius: 50%; background: #111; }
.p-meta { display: flex; flex-wrap: wrap; gap: 14px clamp(24px, 3.4vw, 48px); }
.p-meta dd { white-space: normal; max-width: 30ch; }
.p-pride .p-kick { font-size: clamp(34px, 3.6vw, 56px); overflow-wrap: anywhere; }

/* Conscious, take three */
/* every title keeps its line clear of the words under it */
.is-conscious .p-kick { margin-bottom: .45em; }
.is-conscious .p-kick::after { margin-top: 18px; }
.is-conscious .p-kick + p, .is-conscious .p-kick + .pg-text { margin-top: 26px; }

/* Pride: the postcard turns over to its back */
.pp-poster { padding: 0; background: none; cursor: pointer; perspective: 1600px; aspect-ratio: 1277 / 1800; border: 0; box-shadow: none; }
.pp-in { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .8s cubic-bezier(.3, 1.4, .5, 1); }
.pp-in img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; backface-visibility: hidden; border: 3px solid var(--ink); box-sizing: border-box; box-shadow: 9px 9px 0 var(--ink); }
.pp-b { transform: rotateY(180deg); }
.pp-poster:hover .pp-in, .pp-poster:focus-visible .pp-in { transform: rotateY(180deg); }
.pp-hint { position: absolute; left: 50%; bottom: -46px; translate: -50% 0; white-space: nowrap; font-family: var(--hand); font-size: 19px; color: var(--cs-deep); rotate: 3deg; }
@media (hover: none) { .pp-poster:hover .pp-in { transform: none; } }

/* the star is only the star: no box, the shadow follows its shape */
.ps-in img { box-shadow: none; border-radius: 0; object-fit: contain; filter: drop-shadow(0 12px 14px rgba(17, 17, 17, .22)); }

/* Spritz o'clock: the clock lives with the words, the two posters stand on their own */
.pz-time { position: relative; display: flex; align-items: center; gap: 18px; margin-top: 26px; }
.pz-time .pz-clock { position: static; width: clamp(120px, 11vw, 160px); translate: none; }
.pz-time .pz-cheers { position: static; translate: none; }
.pz-q { left: 2%; } .pz-a { right: 2%; }
.pz-q, .pz-a { height: 74%; }
.pz-q { left: 0; top: 4%; } .pz-a { right: 0; top: 18%; }

/* Conscious, take four */
.pg-card:focus:not(:focus-visible), .pk-poster:focus:not(:focus-visible), .pp-poster:focus:not(:focus-visible), .ps-star:focus:not(:focus-visible) { outline: none; }

/* Merry Tree-Max: the postcards hang like ornaments on a tree drawn in one line; the words beside it */
.p-garland { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 5vw, 80px); align-items: center; max-width: 1240px; min-height: calc(100svh - var(--nav-h)); box-sizing: border-box; margin: 0 auto; padding: 40px var(--gutter); }
.pg-stage { position: relative; width: min(100%, 600px, calc((100svh - var(--nav-h) - 80px) * 500 / 620)); aspect-ratio: 500 / 620; justify-self: center; }
.pg-tree { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.pg-line { fill: none; stroke: var(--cs-sage); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.2s cubic-bezier(.5, 0, .3, 1); }
.pg-star { fill: var(--cs-yellow); stroke: var(--ink); stroke-width: 3.5; stroke-linejoin: round; transform-origin: 250px 60px; scale: 0; transition: scale .6s cubic-bezier(.3, 1.8, .5, 1) 1.9s; }
.p-garland.is-in .pg-line { stroke-dashoffset: 0; }
.p-garland.is-in .pg-star { scale: 1; }
.pg-card { position: absolute; left: var(--x); top: var(--y); width: 31%; margin-left: -15.5%; aspect-ratio: 290 / 402; padding: 0; border: 0; background: none; cursor: pointer; rotate: var(--r);
  opacity: 0; translate: 0 -40px; transition: opacity .5s, translate .8s cubic-bezier(.3, 1.6, .5, 1); transition-delay: calc(.6s + var(--k) * .25s); }
.p-garland.is-in .pg-card { opacity: 1; translate: 0 0; }
.pg-swing { position: absolute; inset: 0; transform-origin: 50% -24px; animation: pg-sway 3.4s ease-in-out infinite alternate; animation-delay: calc(var(--k) * -1.1s); }
@keyframes pg-sway { from { rotate: -2.5deg; } to { rotate: 2.5deg; } }
/* the ornament hook: a little thread and a loop */
.pg-peg { position: absolute; left: 50%; top: -26px; width: 2px; height: 26px; margin-left: -1px; background: var(--ink); }
.pg-peg::before { content: ""; position: absolute; left: -6px; top: -12px; width: 10px; height: 10px; border: 2px solid var(--ink); border-radius: 50%; }
.pg-in { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .75s cubic-bezier(.3, 1.5, .5, 1); }
.pg-in img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; backface-visibility: hidden; border-radius: 3px; box-shadow: 0 10px 20px rgba(17, 17, 17, .2); }
.pg-back { transform: rotateY(180deg); }
.pg-card:hover { z-index: 3; }
.pg-card:hover .pg-swing, .pg-card:focus-visible .pg-swing { animation-play-state: paused; }
.pg-card:hover .pg-in, .pg-card:focus-visible .pg-in { transform: rotateY(180deg) scale(1.06); }
.pg-words { max-width: 420px; }
.pg-words p { font-size: clamp(14px, 1.05vw, 16px); line-height: 1.6; }
.pg-hint { margin-top: 22px; font-family: var(--hand); font-size: 19px !important; line-height: 1.3 !important; color: var(--cs-deep); rotate: -2deg; }
@media (hover: none) { .pg-card:hover .pg-in { transform: none; } }
@media (prefers-reduced-motion: reduce) { .pg-swing { animation: none; } .pg-line { transition: none; stroke-dashoffset: 0; } .pg-star { scale: 1; } }
@media (max-width: 800px) { .p-garland { grid-template-columns: 1fr; } }

/* Pride: just the postcard; its back is set in type, like the printed one */
.p-pride { grid-template-columns: minmax(0, 1fr) auto; max-width: 1080px; }
.pp-poster { width: min(30vw, 420px, calc((100svh - var(--nav-h) - 140px) * 1277 / 1800)); rotate: -3deg; }
.pp-b { position: absolute; inset: 0; transform: rotateY(180deg); backface-visibility: hidden; box-sizing: border-box; padding: 9cqw 8cqw 6cqw; text-align: left;
  background: #f7f6f1; border: 3px solid var(--ink); box-shadow: 9px 9px 0 var(--ink); font-family: Inter, "Helvetica Neue", Arial, sans-serif; font-weight: 600; color: #232323; }
.pp-b p { margin: 0 0 4.4cqw; font-size: 4.25cqw; line-height: 1.32; }
.ppb-hi { margin-bottom: 5cqw !important; }
.ppb-hi span, .ppb-sign span { font-family: "Mrs Saint Delafield", cursive; font-weight: 400; font-size: 12.5cqw; line-height: 1; color: #1d1d1d; padding: 0 2cqw; background: linear-gradient(transparent 52%, #a9cde6 52% 80%, transparent 80%); }
.ppb-foot { position: absolute; left: 6cqw; right: 6cqw; bottom: 5cqw; display: flex; align-items: flex-end; justify-content: space-between; }
.ppb-rainbow { width: 34cqw; overflow: visible; }
.ppb-rainbow path { fill: none; stroke-width: 6; stroke-linecap: round; }
.ppb-rainbow .ppb-cloud { fill: #fff; stroke: #232323; stroke-width: 2.5; }
.ppb-sign { margin: 0 0 1cqw !important; }
.ppb-sign span { font-size: 9cqw; }
.pp-in { transition: transform .8s cubic-bezier(.3, 1.4, .5, 1); }

/* Cork Free Mondays, in Hotel V's own colours: the poster's paper, its espresso brown and the burgundy of the tags */
.p-cork { --hv-paper: #ebe5da; --hv-ink: #2a2320; --hv-red: #7c2e24; max-width: none; padding: 40px max(var(--gutter), calc((100vw - 1240px) / 2)); background: var(--hv-paper); }
.p-cork .p-kick { color: var(--hv-ink); }
.p-cork .p-kick::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'%3E%3Cpath d='M3 9 C 40 3, 80 12, 120 6 S 180 5, 197 8' fill='none' stroke='%237c2e24' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E"); }
.p-cork .pk-words p { color: var(--hv-ink); }
.pk-count { border-color: var(--hv-red); color: var(--hv-ink); }
.pk-count b { color: var(--hv-red); }
.pk-stage { display: grid; place-items: center; }
.pk-poster { position: relative; left: auto; height: min(82svh, 720px); box-shadow: 10px 10px 0 var(--hv-red); border-color: var(--hv-ink); }
.pk-tag { background: var(--hv-red); color: #fff; border-color: var(--hv-ink); }

/* Spritz o'clock, in black: the posters bigger, the clock with the words */
.p-spritz { background: #111; }
.p-spritz .p-kick { color: #fff; }
.pz-words p { color: #eee7da; }
.pz-words b { color: #fff; }
.pz-stage { height: min(86svh, 780px); }
.pz-q, .pz-a { height: 84%; box-shadow: 9px 9px 0 #f08a24; border-color: #fff; }
.pz-q { left: 0; top: 2%; } .pz-a { right: 0; top: 14%; }
.pz-clock { filter: drop-shadow(5px 6px 0 #f08a24); }
.pz-face { stroke: #fff; }
.pz-five { fill: #fff; stroke: none; font-size: 34px; }
.pz-time .pz-cheers { border-color: #fff; }
.pp-in { container-type: inline-size; }
.pg-card { width: 25%; margin-left: -12.5%; }
.p-spritz { grid-template-columns: minmax(0, .55fr) minmax(0, 1.45fr); }
.pz-q, .pz-a { height: 80%; }
.pz-a { top: 16%; }

/* take five: the tree drawn by hand, wobbly, with a marker's second pass; a smaller stage */
.pg-stage { width: min(100%, 460px, calc((100svh - var(--nav-h) - 150px) * 500 / 620)); }
.pg-line { stroke: var(--cs-deep); stroke-width: 5; }
.pg-l2 { stroke: var(--cs-sage); stroke-width: 9; opacity: .55; translate: 4px 3px; }
.pg-stargroup { transform-origin: 250px 56px; rotate: -9deg; scale: 0; transition: scale .6s cubic-bezier(.3, 1.8, .5, 1) 1.9s; }
.p-garland.is-in .pg-stargroup { scale: 1; }
.pg-star { scale: 1 !important; transition: none; stroke-width: 4; }
.pg-spark { fill: none; stroke: var(--ink); stroke-width: 3.5; stroke-linecap: round; }
.p-garland .pg-stargroup { animation: pg-twinkle 2.8s ease-in-out infinite; }
@keyframes pg-twinkle { 50% { rotate: 4deg; } }
.pg-card { width: 26%; margin-left: -13%; }
/* Pride back: the real card again, as a picture */
.pp-in img.pp-b { transform: rotateY(180deg); background: none; padding: 0; }
@media (prefers-reduced-motion: reduce) { .pg-stargroup { scale: 1; animation: none; } }

/* take six */
/* the tree a little bigger; the hint sits by its top-left, on a slant */
.pg-stage { width: min(100%, 540px, calc((100svh - var(--nav-h) - 90px) * 500 / 620)); }
.pg-stage .pg-hint { position: absolute; left: -4%; top: 4%; margin: 0; rotate: -14deg; font-size: 19px !important; line-height: 1.25 !important; }

/* Cork: the cream fills the whole screen, edge to edge */
.p-cork { width: 100%; margin: 0; }

/* a chapter page: a little title stamped like a postcard */
.p-chapter { position: relative; display: grid; place-content: center; justify-items: center; gap: 14px; min-height: calc(100svh - var(--nav-h)); box-sizing: border-box; padding: 40px var(--gutter); text-align: center; }
.pc-tag { margin: 0; padding: 4px 14px; border: 2px dashed var(--cs-deep); border-radius: 30px; font-family: var(--hand); font-size: 17px; color: var(--cs-deep); rotate: -3deg; }
.pc-title { margin: 0; font-family: var(--hand); font-weight: 400; font-size: clamp(44px, 6vw, 92px); line-height: 1; color: var(--cs-deep); rotate: -2deg; }
.pc-text { margin: 10px 0 0; max-width: 46ch; font-size: clamp(14px, 1.1vw, 17px); line-height: 1.6; }
.pc-mark { position: absolute; right: max(var(--gutter), calc((100vw - 1100px) / 2)); top: 18%; width: clamp(90px, 9vw, 130px); rotate: 14deg; fill: none; stroke: var(--cs-sage); stroke-width: 3; stroke-linecap: round; }
.p-cork { height: calc(100svh - var(--nav-h)); min-height: 520px; padding-block: 0; }
.pk-stage { height: 100%; }
.pk-poster { height: min(calc(100svh - var(--nav-h) - 100px), 760px); }
.pg-stage .pg-hint { left: -30%; top: 13%; }
.pg-stage .pg-hint { left: -24%; }

/* Spritz fits one screen, whatever its height: the clock sits up by the title, the posters stay inside */
.p-spritz { height: calc(100svh - var(--nav-h)); min-height: 520px; padding-block: 24px; }
.pz-stage { height: 100%; }
.pz-q, .pz-a { height: 76%; }
.pz-q { top: 4%; } .pz-a { top: 20%; }
.pz-words { position: relative; }
.pz-words p { font-size: clamp(13px, min(1.05vw, 1.9svh), 16px); }
.pz-time { position: absolute; right: -10px; top: -14px; margin: 0; flex-direction: column; gap: 6px; }
.pz-time .pz-clock { width: clamp(80px, min(8vw, 14svh), 120px); }
.pz-time .pz-cheers { font-size: 18px; padding: 4px 14px; }
.p-spritz, .p-cork { min-height: 420px; }
.pz-time { right: -34px; top: -20px; }

/* Sticky Fingers brand book, in its own pink, yellow and black: the pages pile up as you scroll */
.p-sfbook { display: grid; grid-template-columns: minmax(0, .62fr) minmax(0, 1.38fr); gap: clamp(28px, 4vw, 64px); align-items: center; height: calc(100svh - var(--nav-h)); min-height: 420px; box-sizing: border-box; padding: 24px max(var(--gutter), calc((100vw - 1320px) / 2)); background: #D79FA4; overflow: hidden; }
.p-sfbook .p-kick { color: var(--ink); }
.p-sfbook .p-kick::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'%3E%3Cpath d='M3 9 C 40 3, 80 12, 120 6 S 180 5, 197 8' fill='none' stroke='%23F6EC83' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E"); }
.sb-words { max-width: 400px; justify-self: end; }
.sb-words p { font-size: clamp(13px, min(1.05vw, 1.9svh), 16px); line-height: 1.6; }
.sb-count { display: inline-block; margin-top: 18px !important; padding: 6px 16px; border: 2.5px solid var(--ink); border-radius: 30px; background: #F6EC83; font-family: var(--hand); font-size: 18px !important; line-height: 1.3 !important; box-shadow: 3px 3px 0 var(--ink); rotate: -2deg; }
.sb-count b { font-weight: 400; }
.sb-stage { position: relative; width: min(100%, calc((100svh - var(--nav-h) - 110px) * 1754 / 1240)); aspect-ratio: 1754 / 1240; justify-self: center; }
.sb-page { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; box-sizing: border-box; border: 3px solid var(--ink); box-shadow: 8px 9px 0 var(--ink); rotate: var(--r); background: #fff; }
@media (max-width: 860px) { .p-sfbook { grid-template-columns: 1fr; height: auto; } .sb-words { justify-self: start; } }

/* Spritz o'clock, take two: a warm grey instead of black; the clock moves down under the first poster */
.p-spritz { background: #4a4643; }
.pz-time { position: absolute; left: 2%; right: auto; top: auto; bottom: 2%; flex-direction: row; align-items: center; gap: 12px; z-index: 3; }
.pz-time .pz-clock { width: clamp(80px, min(8vw, 13svh), 120px); }

/* Spritz o'clock, take three: Hotel V's own colours (the posters' brown, sand and orange) but drawn by hand like the
   rest of the site: the orange-slice alarm clock from the poster in wobbly ink, and a hand-drawn speech bubble */
.p-spritz { background: #463d35; }
.pz-words p { color: #d6cfb8; } .pz-words b { color: #f3eedd; }
.pz-time .pz-clock { width: clamp(100px, min(10vw, 16svh), 150px); filter: drop-shadow(5px 6px 0 #1f1a16); rotate: -6deg; }
.pz-clock path, .pz-clock circle { stroke: #141210; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.pz-bar, .pz-leg { fill: none; stroke-width: 7 !important; }
.pz-bell { fill: #d9d6cc; }
.pz-rind { fill: #f39a12; } .pz-pith { fill: #ffe6b3; stroke-width: 2.5 !important; }
.pz-seg { fill: #ff9f1c; stroke: #ffe6b3 !important; stroke-width: 3 !important; }
.pz-h { stroke-width: 9 !important; } .pz-m { stroke-width: 6 !important; }
.pz-pin { fill: #b08a3e; stroke-width: 3 !important; }
/* the bubble: sand paper, an uneven ink outline and a little tail, in Angel's hand */
.pz-time .pz-cheers { position: relative; padding: 10px 20px 8px; background: #ebe6d6; color: #463d35; border: 3px solid #141210;
  border-radius: 255px 18px 225px 22px / 20px 225px 18px 255px; box-shadow: 4px 5px 0 #1f1a16;
  font-family: var(--hand); font-size: clamp(18px, 1.6vw, 24px); text-transform: none; white-space: nowrap; rotate: -4deg; }
.pz-time .pz-cheers::after { content: ""; position: absolute; left: 16px; bottom: -15px; width: 18px; height: 16px; background: #ebe6d6;
  border-left: 3px solid #141210; border-bottom: 3px solid #141210; transform: skewX(-28deg); border-bottom-left-radius: 4px; }

/* the two doodled photos: one screen, side by side, greetings first */
.is-conscious .p-pair { grid-template-columns: auto auto; justify-content: center; align-items: start; align-content: center; gap: clamp(28px, 4vw, 64px); max-width: none; height: calc(100svh - var(--nav-h)); min-height: 420px; box-sizing: border-box; margin: 0; padding: 20px var(--gutter) 60px; }
.is-conscious .p-pair .p-img { height: calc(100svh - var(--nav-h) - 150px); width: auto; aspect-ratio: auto; rotate: -2deg; }
.is-conscious .p-pair .p-img:nth-child(2) { margin-top: 50px; rotate: 2deg; }
.is-conscious .p-pair .p-img img { display: block; height: 100%; width: auto; }
/* short screens: titles and words shrink with the height too, so each screen holds its piece */
.is-conscious .p-kick { font-size: clamp(32px, min(5.2vw, 8.5svh), 76px); }
.is-conscious .p-garland .p-kick, .is-conscious .p-pride .p-kick { font-size: clamp(30px, min(3.6vw, 7.5svh), 56px); }
.pk-words p, .pp-words p, .pg-words p, .pv-words > p { font-size: clamp(13px, min(1.05vw, 1.9svh), 16px); }
.pk-count { margin-top: 14px !important; }

/* a postcard for every occasion: the little days, each card with its own tear-off calendar page */
.p-occ { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(28px, 4vw, 70px); align-items: center; height: calc(100svh - var(--nav-h)); min-height: 420px; box-sizing: border-box; max-width: 1320px; margin: 0 auto; padding: 24px var(--gutter); }
.po-words { max-width: 400px; justify-self: end; }
.po-words p { font-size: clamp(13px, min(1.05vw, 1.9svh), 16px); line-height: 1.6; }
.p-occ .p-kick { font-size: clamp(30px, min(3.8vw, 7.5svh), 58px); }
.po-row { display: flex; justify-content: center; align-items: flex-start; gap: clamp(14px, 2vw, 30px); }
.po-card { --h: min(calc(100svh - var(--nav-h) - 190px), 440px, 21vw); position: relative; margin: 0; padding-top: 34px; rotate: calc((var(--k) - 1) * 4deg); translate: 0 calc(var(--k) * 26px);
  opacity: 0; transform: translateY(50px); transition: opacity .5s, transform .8s cubic-bezier(.3, 1.6, .5, 1), rotate .4s; transition-delay: calc(var(--k) * .15s); }
.po-card:nth-child(2) { translate: 0 -10px; }
.p-occ.is-in .po-card { opacity: 1; transform: none; }
.po-card img { display: block; height: var(--h); width: auto; max-width: none; box-shadow: 0 14px 26px rgba(17, 17, 17, .2); border-radius: 3px; transition: scale .4s cubic-bezier(.3, 1.6, .5, 1); }
.po-card:hover { rotate: 0deg; z-index: 2; transition-delay: 0s; }
.po-card:hover img { scale: 1.06; }
/* the calendar page clipped on top */
.po-cal { position: absolute; left: 50%; top: 0; z-index: 2; translate: -50% 0; display: grid; width: 64px; border: 2.5px solid var(--ink); border-radius: 6px; overflow: hidden; background: #fff; box-shadow: 3px 3px 0 var(--ink); rotate: -5deg; text-align: center; font-family: var(--hand); }
.po-cal b { font-weight: 400; font-size: 14px; line-height: 1.5; text-transform: uppercase; color: #fff; background: var(--c); border-bottom: 2.5px solid var(--ink); }
.po-cal i { font-style: normal; font-size: 30px; line-height: 1.15; }
.po-card figcaption { margin-top: 12px; text-align: center; font-family: var(--hand); font-size: 18px; color: var(--ink); }
@media (max-width: 860px) { .p-occ { grid-template-columns: 1fr; height: auto; } .po-words { justify-self: start; } .po-card { --h: 40vw; } }

/* conscious finale: each doodled photo fills half the screen, framed on its doodles */
.is-conscious .p-finale .p-screen figure:nth-child(1) img { object-position: 50% 28%; }
.is-conscious .p-finale .p-screen figure:nth-child(2) img { object-position: 50% 42%; }

/* spritz: the clock signs off the text column, away from the posters */
.pz-words .pz-time { position: relative; left: auto; right: auto; top: auto; bottom: auto; flex-direction: row; align-items: center; gap: 14px; margin-top: clamp(10px, 2.5svh, 24px); }
.pz-words .pz-time .pz-clock { width: clamp(70px, min(7vw, 12svh), 110px); }
.pz-words .pz-time { position: absolute; right: 0; top: 0; margin: 0; flex-direction: column; gap: 6px; }
.pz-words .pz-time .pz-cheers { font-size: 16px; padding: 3px 12px; }
.pz-words { display: grid; grid-template-columns: auto 1fr; column-gap: clamp(10px, 1.6vw, 22px); align-content: center; }
.pz-words > * { grid-column: 1 / -1; }
.pz-words > .p-kick { grid-column: 1; grid-row: 1; }
.pz-words > .pz-time { grid-column: 2; grid-row: 1; position: static; align-self: center; justify-self: start; }

/* My Sicily, the cover in the hand: the arm always runs up behind the nav (never a gap above it, however it swings),
   notes get their own room on both sides, and the text sits up by the masthead instead of sinking to the middle */
@media (min-width: 861px) {
  .mv-row.is-hold { grid-template-columns: auto minmax(0, 420px); justify-content: center; gap: clamp(20px, 4vw, 80px); clip-path: inset(0 -100vw); }
  .is-hold .mv-stage { translate: 0 -9%; margin: 0 clamp(130px, 13.5vw, 200px) 0 clamp(140px, 14vw, 190px); }
  .is-hold .mv-pic { width: min(360px, 26vw, calc((100svh - var(--nav-h)) * 600 / 1182)); }
  .is-hold .mv-words { align-self: start; margin-top: clamp(40px, 15svh, 150px); }
}

/* ADE: the top photo framed lower, on the postcards and the hand rather than the sky */
.is-ade .p-hero-img img { object-position: 50% 80%; }
/* ADE: the flyers open big on the posters' blue */
.is-ade .cs-lightbox { background: rgba(47, 69, 168, .95); }
.is-ade .cs-lb-close { background: #f2e830; }
/* front and back always the same size, whatever the size of each file */
.is-ade .cs-lb-pair img { height: min(calc(100svh - 140px), 42vw * 1000 / 720); width: auto; aspect-ratio: 720 / 1000; object-fit: cover; max-width: none; max-height: none; }

/* choose: the frame's hand-drawn shadow (the offset path main.js draws) takes the colour of the stamp under the mouse; blue at rest */
.preview .mk-back path[transform] { fill: var(--sh, var(--blue)); transition: fill .35s; }

/* ---------- what's in a name (after the fun facts): the logo as a dictionary entry with two street sightings of its n
   underneath, the story beside. Two typefaces only (hand for the title and the button, sans for the rest); a screen of its own ---------- */
.ovunque { position: relative; max-width: 1180px; margin: 0 auto; padding: 4vh var(--gutter); box-sizing: border-box;
  min-height: calc(100svh - var(--nav-h)); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(40px, 7vw, 120px); align-items: center; }
.ov-stage { position: relative; justify-self: center; container-type: inline-size; width: min(100%, 540px); }
.ov-card { position: relative; z-index: 2; box-sizing: border-box; margin: 0; padding: 7% 8% 7.5%; background: #fff; border: 4px solid var(--ink); box-shadow: 10px 10px 0 var(--yellow); rotate: -3deg; }
.ov-logo { display: block; width: 100%; height: auto; }
.ov-say { margin: .9em 0 .6em; font-size: clamp(14px, min(1.2vw, 2.4svh), 18px); } .ov-say i { color: #666; }
.ov-defs { margin: 0; padding-left: 1.3em; font-size: clamp(14px, min(1.2vw, 2.4svh), 18px); line-height: 1.5; }
.ov-defs li::marker { color: var(--blue); font-family: var(--hand); font-size: 1.15em; }
/* hover the logo and, pum, the photos burst out from behind it */
.ov-pol { position: absolute; left: 50%; top: 50%; z-index: 3; width: 24%; aspect-ratio: 100 / 118; pointer-events: none; opacity: 0; scale: .2; translate: -50% -50%; rotate: 0deg;
  transition: translate .35s, scale .35s, rotate .35s, opacity .2s; }
.ov-pol svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ov-pol .sh { fill: var(--c); }
.ov-pol .fr { fill: #fff; stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.ov-pol img { position: absolute; left: 8%; top: 7%; width: 84%; height: auto; aspect-ratio: 1; object-fit: cover; outline: 2px solid var(--ink); }
.ov-card:hover + .ov-pops .ov-pol, .ov-stage.is-pop .ov-pops .ov-pol { opacity: 1; scale: 1; translate: calc(-50% + var(--x)) calc(-50% + var(--y)); rotate: var(--r); }
/* popcorn: each one jumps up past its spot, then drops and settles, at uneven times */
.ov-card:hover + .ov-pops .ov-pol, .ov-stage.is-pop .ov-pops .ov-pol { transition: none; animation: ov-popcorn .7s cubic-bezier(.25, .8, .4, 1) both; animation-delay: var(--d); }
@keyframes ov-popcorn {
  0%   { opacity: 0; scale: .2; translate: -50% -50%; rotate: 0deg; }
  12%  { opacity: 1; }
  45%  { scale: 1.18; translate: calc(-50% + var(--x) * 1.08) calc(-50% + var(--y) - 9cqw); rotate: calc(var(--r) * -1.4); }
  72%  { scale: .92; translate: calc(-50% + var(--x)) calc(-50% + var(--y) + 1.5cqw); rotate: calc(var(--r) * 1.3); }
  88%  { scale: 1.04; translate: calc(-50% + var(--x)) calc(-50% + var(--y) - .6cqw); }
  100% { opacity: 1; scale: 1; translate: calc(-50% + var(--x)) calc(-50% + var(--y)); rotate: var(--r); }
}
.ov-card { transition: rotate .4s cubic-bezier(.3, 1.8, .5, 1), scale .4s cubic-bezier(.3, 1.8, .5, 1); }
.ov-card:hover, .ov-stage.is-pop .ov-card { rotate: -1deg; scale: .96; }
.ov-hint { position: absolute; left: 50%; top: calc(100% + 30px); margin: 0; padding-left: 50px; translate: -50% 0; font-family: var(--hand); font-size: clamp(15px, 1.4vw, 20px); line-height: 1.15; color: var(--ink); white-space: nowrap; rotate: -4deg; transition: opacity .3s; }
.ov-hint svg { position: absolute; left: 0; bottom: 5%; width: 42px; overflow: visible; }
.ov-hint path { fill: none; stroke: var(--blue); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

.ov-card:hover ~ .ov-hint, .ov-stage.is-pop .ov-hint { opacity: 0; }
.ov-words { max-width: 470px; }
.ov-title { position: relative; width: fit-content; margin: 0 0 .9em; font-family: var(--hand); font-weight: 400; color: var(--ink); font-size: clamp(30px, min(3.8vw, 8svh), 58px); line-height: 1; white-space: nowrap; rotate: -2deg; }
.ov-squiggle { position: absolute; left: 0; top: 100%; width: 100%; height: .3em; margin-top: .08em; overflow: visible; }
.ov-squiggle path { fill: none; stroke: var(--blue); stroke-width: 5; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.ov-words p { margin: 0 0 1em; font-size: clamp(13px, min(1.08vw, 2.1svh), 16px); line-height: 1.6; }
.ov-cta { display: inline-block; margin-top: .4em; padding: .5em 1.1em; border: 3px solid var(--ink); border-radius: 40px; background: var(--yellow); color: var(--ink);
  font-family: var(--hand); font-size: clamp(14px, 1.25vw, 18px); text-decoration: none; box-shadow: 4px 4px 0 var(--ink); rotate: -2deg; transition: rotate .3s cubic-bezier(.3,1.8,.5,1), translate .3s; }
.ov-cta:hover { rotate: 2deg; translate: 0 -3px; }
@media (max-width: 860px) {
  .ovunque { grid-template-columns: 1fr; row-gap: 40px; }
  .ov-stage { justify-self: center; width: min(84%, 420px); }
  .ov-hint { position: relative; left: auto; top: auto; translate: none; width: fit-content; margin: 34px auto 0; }
  .ovunque { padding-top: 40px; padding-bottom: 40px; }
}

/* ---------- phones, for now: an "under construction" page instead of the site ---------- */
.wip { display: none; }
@media (max-width: 820px) {
  html, body { overflow: hidden !important; height: 100%; background: var(--blue) !important; }
  body > :not(.wip) { display: none !important; }
  .wip { position: fixed; inset: 0; min-height: 100lvh; z-index: 10000; display: flex; flex-direction: column; justify-content: center; background: var(--blue); color: #fff;
    overflow: hidden; font-variant-ligatures: none; font-feature-settings: "calt" 0, "liga" 0; }
  .wip .hook path, .wip .wip-jib path { stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
  .wip-sign { flex: 0 0 auto; padding-top: clamp(40px, 20svh, 300px) !important; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; padding: 0 8px 10px; min-height: 0; }
  .wip-uc { position: relative; isolation: isolate; margin: 0; font-family: var(--hand); line-height: .86; text-align: center; }
  .wip-uc > span { display: block; }
  .wu-1 { font-size: min(35.5vw, 19svh, 156px); }
  .wu-2 { position: relative; display: inline-block !important; font-size: min(15.6vw, 8.4svh, 72px); }
  .wip-stripes { position: absolute; z-index: -1; left: 2%; top: -6%; width: 80%; height: 118%; overflow: visible; }
  .wip-stripes path { fill: var(--yellow); stroke: none !important; }
  .wu-gap { position: relative; color: transparent; }
  .crane { position: absolute; left: 50%; bottom: .62em; width: 1em; margin-left: -.5em; display: flex; flex-direction: column; align-items: center;
    transform-origin: 50% -60vh; animation: wip-swing 2.8s ease-in-out infinite alternate; }
  .cable { position: absolute; bottom: 100%; left: 50%; width: .16em; margin-left: -.08em; height: 60vh; overflow: visible; }
  .wip-uc { margin-top: clamp(16px, 6svh, 60px) !important; }
  .cable path { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
  .hook { width: .58em; display: block; margin-bottom: -.44em; position: relative; z-index: 1; overflow: visible; }
  .hook .blk { fill: var(--yellow); stroke: none !important; } .hook .str { stroke-width: 7 !important; stroke-linecap: butt !important; }
  .hook .blk-o { fill: none; stroke-width: 3; } .hook .sh { fill: #8a9099; } .hook .zz { fill: none; stroke-width: 2.6; } .hook .ax { stroke-width: 4 !important; } .hook .sk { fill: #8a9099; } .hook .hk-o { fill: none; stroke-width: 12 !important; } .hook .hk { fill: none; stroke: #8a9099 !important; stroke-width: 6 !important; } .hook .rope { fill: none; stroke-width: 2.5 !important; }
  .crane-tag { position: absolute; left: calc(60% + 36px); top: calc(.12em + 12px); font-family: var(--hand); font-size: max(14px, .125em); line-height: 1.05; white-space: nowrap; text-align: center;
    color: var(--ink); background: #fff; border: 3px solid var(--ink); border-radius: 6px; padding: 6px 9px 4px; box-shadow: 3px 3px 0 var(--ink);
    transform-origin: -40px -12px; animation: wip-tag 2.2s ease-in-out infinite alternate; }
  /* the little rope from the side of the hook block to the tag's corner (with a knot on the block) */
  .crane-tag::before { content: ""; position: absolute; left: -40px; top: -12px; width: 48px; height: 3px; background: var(--ink); border-radius: 2px; rotate: 22deg; transform-origin: 0 50%; }
  .crane-tag::after { display: none; content: ""; position: absolute; left: -47px; top: -19px; width: 12px; height: 12px; z-index: 2; background: var(--ink); border-radius: 50%; }
  /* the crane arm, with the blue above it masking the top of the cable (and the space behind the status bar) */
  .wip-top { position: absolute; z-index: 5; left: 0; right: 0; top: -200px; padding-top: calc(200px + env(safe-area-inset-top)); background: var(--blue); }
  .wip-jib { display: block; width: 100%; height: 32px; overflow: visible; }
  .wip-jib .jb { fill: var(--yellow); stroke: none !important; } .wip-jib .jz { fill: none; stroke-width: 2.6 !important; } .wip-jib .jl { fill: none; stroke-width: 3.6 !important; }
  .hook-front { position: absolute; z-index: 3; top: 0; left: 50%; margin-left: -.29em; }
  .crane-d { position: relative; z-index: 2; display: block; color: #fff; line-height: .78; rotate: -7deg; margin-top: -.04em; }
  .wip-ish { position: absolute; right: -4px; top: 100%; margin-top: 8px; font-style: normal; font-size: 18px; line-height: 1; color: #fff;
    background: var(--red); border: 3px solid var(--ink); border-radius: 999px; padding: 6px 12px 4px; box-shadow: 3px 3px 0 var(--ink); rotate: -8deg;
    animation: wip-pop .6s .5s cubic-bezier(.3, 1.8, .5, 1) both; }
  .wip-talk { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; padding: clamp(46px, 8svh, 72px) 16px calc(clamp(10px, 3svh, 28px) + env(safe-area-inset-bottom)); gap: clamp(8px, 2svh, 18px); }
  .wip-row { display: flex; align-items: flex-end; justify-content: center; gap: 0; width: 100%; max-width: 356px; }
  .wip-angel { flex: 0 0 min(94px, 11.5svh); margin: 0 -34px -5px 28px; position: relative; z-index: 1; animation: wip-float 2.6s ease-in-out infinite; }
  .wip-angel .angel { width: 100%; display: block; }
  .wip-angel .angel .wing { fill: #fff; stroke: none !important; }
  .wip-angel .wing-l { animation: flap-l .5s ease-in-out infinite alternate; }
  .wip-angel .wing-r { animation: flap-r .5s ease-in-out infinite alternate; }
  .wip-bub { position: relative; isolation: isolate; flex: 0 1 250px; margin: 0 0 4px auto; padding: clamp(22px, 3.6svh, 32px) 26px clamp(32px, 5.2svh, 46px) 38px; font-family: var(--hand); font-size: clamp(13px, 1.9svh, 16px); line-height: 1.2; text-align: center; color: var(--ink); rotate: -4deg; }
  .wip-bub .red { color: var(--red); }
  .wip-btn { font-family: var(--hand); font-size: 18px; line-height: 1; padding: 12px 20px 10px; color: #fff; text-decoration: none; white-space: nowrap;
    background: var(--c); border: 3px solid var(--ink); border-radius: 999px; box-shadow: 4px 4px 0 var(--ink); rotate: -2deg; }
}
@keyframes wip-pop { from { opacity: 0; scale: .3; } }
@keyframes wip-swing { from { rotate: -4.5deg; } to { rotate: 4.5deg; } }
@media (max-width: 820px) {
  .wip-hi { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 16px; }
  .wip-hi-txt { flex: 0 0 100%; margin: 0; text-align: center; font-family: var(--hand); font-size: 20px; line-height: 1; color: #fff; rotate: -2deg; }
  .wip-hi .soc { width: min(56px, 7svh); }
  .wip-hi .soc:nth-of-type(1) { rotate: -8deg; } .wip-hi .soc:nth-of-type(2) { rotate: 6deg; } .wip-hi .soc:nth-of-type(3) { rotate: -4deg; }
}
@keyframes wip-tag { from { rotate: 6deg; } to { rotate: 14deg; } }
@media (max-width: 820px) and (max-height: 720px) {
}
@keyframes wip-float { 0%, 100% { translate: 0 0; rotate: -10deg; } 50% { translate: 4px -9px; rotate: -2deg; } }

/* a sideways trackpad swipe never turns into the browser's back/forward gesture */
html, body { overscroll-behavior-x: none; }
