@font-face { font-family: 'Sofia Handwritten'; src: url(../assets/fonts/SofiaHandwritten-web.woff) format('woff'), url(../assets/fonts/SofiaHandwritten-web.otf) format('opentype'); font-weight: 400 700; font-display: swap; }
/* =========================================================================
   style.css — Rude & Lique, photographic desk (DESIGN.md v2)
   Sections: tokens · desk & objects · hover · labels & handwriting · note ·
   sheet (case/about/contact) · phone · reduced motion
   All desk sizes derive from --cm (px per real centimetre, set by app.js).
   ========================================================================= */
:root {
  --cm: 12.9px;
  --cream: #f2ead8; --ink: #1f1d1a; --ink-soft: #4d4840;
  --pink: #e8318a; --blue: #22356b; --mat: #3f6b58;
  --hand: 'Sofia Handwritten', 'Reenie Beanie', 'Segoe Print', cursive;   /* the duo's chosen heading font (assets/fonts) */
  --ease: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; overscroll-behavior: none; }
body { background: #6b4a2c; color: var(--ink); font-family: 'DM Sans', system-ui, sans-serif; overflow: hidden; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
:focus-visible { outline: none; }

/* ---------------- desk & objects ---------------- */
#desk { position: fixed; inset: 0; overflow: hidden; background: #5a3d22; }
#deskimg { position: absolute; display: block; user-select: none; }
#stage { position: absolute; inset: 0; }
.item { position: absolute; pointer-events: none; }
.item img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; user-select: none; }
.item .sh, .item .shl { transition: opacity .34s var(--ease); }
.item .shl { opacity: 0; }
.item .im { transition: transform .38s var(--ease), filter .38s var(--ease); will-change: transform; }
.item .hit { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.item .hit a { pointer-events: auto; cursor: pointer; }
.item .hit path { fill: transparent; stroke: none; }
.item .hit a:focus-visible path { stroke: rgba(255, 245, 220, .9); stroke-width: 3; stroke-dasharray: 6 6; }
.item.away { visibility: hidden; }
.item.missing { border: 2px dashed rgba(255,255,255,.4); color: #fff; font: 500 12px 'DM Sans'; display: grid; place-items: center; }

/* hover: the object is picked up a little — moves toward the light, its shadow
   becomes the softer, longer lifted shadow; the rest of the desk falls back */
.item.on .im { transform: translate(calc(var(--cm) * -.25), calc(var(--cm) * -.5)) scale(1.02); filter: saturate(1.06); }
.item.on .sh { opacity: 0; }
.item.on .shl { opacity: 1; }
#desk.hovering .item:not(.on) .im, #desk.hovering .item:not(.on) .hand, #desk.hovering .label:not(.on) { filter: grayscale(1) brightness(.82) contrast(1.05); }
#desk.hovering #deskimg { filter: grayscale(1) brightness(.78) contrast(1.05); }
.item .hand, .label { transition: filter .38s var(--ease), transform .38s var(--ease); }
#deskimg, .label .im { transition: filter .38s var(--ease); }

/* intro: everything settles onto the desk */
.item.settle .im { animation: settle .8s var(--ease) both; animation-delay: var(--d); }
.item.settle .sh { animation: settleSh .8s var(--ease) both; animation-delay: var(--d); }
@keyframes settle { from { opacity: 0; transform: translate(calc(var(--cm) * -.6), calc(var(--cm) * -1)) scale(1.04); } to { opacity: 1; } }
@keyframes settleSh { from { opacity: 0; } to { opacity: 1; } }

/* ---------------- labels: baked paper + live handwriting ---------------- */
.label { position: absolute; pointer-events: none; transform: rotate(var(--lr)); transform-origin: 50% 50%; transition: transform .38s var(--ease); }
.label img { position: absolute; inset: 0; width: 100%; height: 100%; }
/* text written ON a piece of paper: a box matching the paper's real outline, text fitted inside */
.hand, .lt.boxed { position: absolute; display: grid; place-items: center; overflow: hidden; transform: rotate(var(--pr, 0deg)); transform-origin: 50% 50%; }
.hand p, .lt.boxed p { margin: 0; font-weight: 400 !important; max-width: 100%; text-align: center; font-family: var(--hand); font-weight: 400; line-height: 1.05;
  color: var(--c, #1f1d1a); mix-blend-mode: multiply; overflow-wrap: break-word; hyphens: auto; }
.hand.big p { font-weight: 700; }
.hand { transition: transform .38s var(--ease); }
.item.on .hand { transform: translate(calc(var(--cm) * -.18), calc(var(--cm) * -.32)) rotate(var(--pr, 0deg)); }
.label .lt:not(.boxed) { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); white-space: nowrap; text-align: center; line-height: 1; font-family: var(--hand); }
.label.none .lt { font-size: calc(var(--cm) * 1.6); color: #f6f1e4; opacity: .92; text-shadow: 0 1px 1px rgba(0,0,0,.18); }
.label.over .lt { font-size: calc(var(--cm) * 2.8); font-weight: 400; color: #f4efe2; opacity: .94; letter-spacing: .02em; }
.label.on { transform: rotate(var(--lr)) translate(calc(var(--cm) * -.12), calc(var(--cm) * -.22)); }
.logo-fallback { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); margin: 0; font: 400 calc(var(--cm) * 6) var(--hand); color: #f3efe2; }

/* ---------------- menu: cut-out MENU scrap + handwritten list on a torn notepad sheet ---------------- */
#menu { position: fixed; z-index: 140; top: 6px; right: 10px; width: clamp(330px, 32vw, 460px); max-width: calc(100vw - 12px); pointer-events: none; }
#menubtn { pointer-events: auto; }
#menubtn { display: block; margin-left: auto; width: clamp(120px, 12vw, 180px); padding: 0; border: 0; background: none; cursor: pointer;
  font: 400 27.5px var(--hand); color: #f4efe2; transform: rotate(3deg); transition: transform .35s var(--ease); }
#menubtn { position: relative; }
#menubtn img { display: block; width: 100%; height: auto; }
#menubtn:hover .mbase, #menubtn:focus-visible .mbase { visibility: hidden; }
#menubtn .ml { position: absolute; inset: 0; transform-origin: 50% 60%; }
#menubtn:hover .ml, #menubtn:focus-visible .ml { animation: letterwiggle .9s var(--ease) both; animation-delay: calc(var(--k) * 60ms); }
@keyframes letterwiggle { 0% { transform: none; } 30% { transform: translateY(-3px) rotate(calc((var(--k) - 1.5) * 2.4deg)); } 60% { transform: translateY(1px) rotate(calc((1.5 - var(--k)) * 1.6deg)); } 100% { transform: translateY(-1px) rotate(calc((var(--k) - 1.5) * .8deg)); } }
#menubtn:hover, #menu.open #menubtn { transform: rotate(-1deg) translateY(2px) scale(1.03); }
#menubtn:focus-visible { outline: 2px dashed #f4efe2; outline-offset: 4px; }
#menulist { position: relative; margin-top: -8px; transform-origin: 80% 0; transform: translateY(-14px) rotate(-6deg) scale(.96); opacity: 0; pointer-events: none;
  transition: transform .45s var(--ease), opacity .25s; }
#menu.open #menulist { transform: rotate(-2deg); opacity: 1; pointer-events: auto; }
#menulist .mpaper { object-fit: fill; position: absolute; inset: 0; width: 100%; height: 100%; }
#menulist .mbox { position: absolute; display: flex; align-items: center; overflow: hidden; transform: rotate(var(--pr, 0deg)); }
#menulist ol { margin: 0; padding: 0 0 0 1.4em; font-family: var(--hand); line-height: 1.15; color: #22356b; }
#menulist li { padding: .1em 0; white-space: nowrap; }
#menulist li::marker { color: #e8318a; font-size: .8em; }
#menulist a { text-decoration: none; background: linear-gradient(transparent 62%, rgba(255, 220, 60, 0) 62%); transition: background .2s; }
#menulist a:hover, #menulist a:focus-visible { background: linear-gradient(transparent 58%, rgba(255, 214, 40, .75) 58%, rgba(255, 214, 40, .75) 92%, transparent 92%); outline: none; }
@media (max-width: 700px) { #menu { width: calc(100vw - 8px); right: 4px; top: 2px; } #menubtn { width: 92px; } }

/* ---------------- easter-egg note ---------------- */
#note { position: fixed; z-index: 90; pointer-events: none; opacity: 0; transform: translateY(10px) rotate(-3deg) scale(.97);
  transition: opacity .2s, transform .35s var(--ease); aspect-ratio: 3 / 2; }
#note.on { opacity: 1; transform: rotate(-2deg); }
#note img { position: absolute; inset: 0; width: 100%; height: 100%; }
#note .nbox { position: absolute; display: grid; place-items: center; overflow: hidden; transform: rotate(var(--pr, 0deg)); }
#note p { margin: 0; text-align: center; font-family: var(--hand); line-height: 1.08; color: #22356b; mix-blend-mode: multiply; overflow-wrap: normal; word-break: keep-all; hyphens: none; max-width: 100%; }

/* ---------------- sheet: case / about / contact ---------------- */
#sheet { position: fixed; inset: 0; z-index: 100; overflow-y: auto; overflow-x: hidden; visibility: hidden; overscroll-behavior: contain; }
#sheet.open { visibility: visible; }
.paper { position: relative; display: flow-root; min-height: 100vh; padding-bottom: 140px;
  background: var(--bg, var(--cream)); isolation: isolate; transition: background-color .3s;
  transform: translateY(104%); transition: transform .8s var(--ease); box-shadow: 0 -18px 40px rgba(30, 20, 10, .35); }
#sheet.open .paper { transform: none; }
.paper::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url(../assets/textures/paper-ref.jpg) center top / max(1300px, 100%) auto repeat-y; mix-blend-mode: multiply; opacity: .25; filter: brightness(1.07) contrast(1.15); }
#sheet.closing .paper { transform: translateY(104%); transition: transform .6s cubic-bezier(.6,0,.8,.2); }
.back { position: fixed; z-index: 120; top: 16px; left: 16px; padding: .5em 1.1em .45em; text-decoration: none;
  font: 400 23.8px var(--hand); color: var(--ink);
  background: url(../assets/obj/tape.webp) center / 100% 100% no-repeat; transform: rotate(-2deg) translateY(-90px); transition: transform .5s var(--ease) .35s; }
#sheet.open .back { transform: rotate(-2deg); }
#sheet.closing .back { transform: rotate(-2deg) translateY(-90px); transition-delay: 0s; }
.back:hover span { display: inline-block; transform: translateX(-4px); }
.back:focus-visible { outline: 2px dashed var(--pink); outline-offset: 4px; }

.hero { position: absolute; left: 0; top: 0; width: 100%; height: 0; z-index: 4; pointer-events: none; }
.floater { position: absolute; will-change: transform, opacity; }
.floater .bob, #fly .f { position: absolute; inset: 0; }
.floater .bob { animation: bob 5.5s ease-in-out infinite; }
.floater img, #fly img { position: absolute; inset: 0; width: 100%; height: 100%; }
.floater .shl, .floater .sh { opacity: .75; transform: translate(2%, 3%); }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-12px) rotate(1deg); } }
#fly { position: fixed; inset: 0; pointer-events: none; z-index: 110; }
#fly .f { position: absolute; transform-origin: 50% 50%; }

#content { max-width: 1060px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 56px); }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.kicker { margin: 0 0 12.5px; font: 400 clamp(20.0px, 1.4vw, 25.0px) var(--hand); color: var(--sub, var(--pink)); transform: rotate(-1.5deg); transform-origin: left; }
.kicker.reveal.in { transform: rotate(-1.5deg); }
.title { margin: 0 0 clamp(37.5px, 4vw, 65.0px); font: 400 clamp(50.0px, 6.4vw, 110.0px)/.8 var(--hand); color: var(--ink); max-width: 16ch; transform: rotate(-1deg); transform-origin: left; }
.media { position: relative; margin: 0 0 clamp(44px, 6vw, 80px); }
.media .ph { aspect-ratio: 16 / 9; background: #2a2724; color: #efe7d6; display: grid; place-content: center; text-align: center;
  box-shadow: 0 1px 2px rgba(30,20,10,.3), 0 14px 30px rgba(30,20,10,.18); }
.media .ph p { margin: 0; font: 400 clamp(22.5px, 2vw, 32.5px) var(--hand); opacity: .55; }
.media .tp { position: absolute; z-index: 2; width: clamp(80px, 12%, 140px); top: -12px; }
.media .tp.a { left: 5%; transform: rotate(-7deg); } .media .tp.b { right: 5%; transform: rotate(6deg); }
.media.video .ph { transform: rotate(-.5deg); }
.ph-tag { display: inline-block; background: #e8318a; color: #fff; font: 700 12px 'DM Sans'; letter-spacing: .16em; padding: 6px 10px; }
.sections { display: grid; gap: clamp(28px, 4vw, 46px); }
.sec { display: grid; grid-template-columns: minmax(150px, 220px) 1fr; gap: 10px clamp(20px, 4vw, 56px); }
.sec h3 { margin: 5.0px 0 0; font: 400 clamp(32.5px, 2.4vw, 40.0px)/1 var(--hand); color: var(--sub, var(--blue)); transform: rotate(-2deg); transform-origin: left; }
.sec p { margin: 0 0 1em; font-size: clamp(17px, 1.3vw, 19px); line-height: 1.62; max-width: 64ch; }
.sec p:last-child { margin-bottom: 0; }
.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 30px); margin: clamp(50px, 7vw, 96px) 0 0; }
.photos .media .ph { aspect-ratio: 4 / 5; background: #d8cfbd; color: #5a5348; }
.photos .media:nth-child(1) .ph { transform: rotate(-1.6deg); } .photos .media:nth-child(2) .ph { transform: rotate(1.2deg) translateY(16px); } .photos .media:nth-child(3) .ph { transform: rotate(-.6deg); }
.credits { font-size: clamp(17px, 1.3vw, 19px); line-height: 1.62; color: var(--ink-soft); border-top: 1px solid rgba(31,29,26,.2); padding-top: 22px; margin-top: 40px; }
.foot { font-size: clamp(17px, 1.3vw, 19px); line-height: 1.62; color: var(--ink-soft); }

.lede { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.6; max-width: 62ch; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); margin: 56px 0; }
.person { display: grid; grid-template-columns: 140px 1fr; gap: 22px; align-items: start; }
.bobble { width: 140px; height: 140px; border-radius: 50%; background: #d8cfbd; display: grid; place-content: center; text-align: center; padding: 10px;
  transform-origin: 50% 100%; animation: bobble 2.4s ease-in-out infinite; }
.person:nth-child(2) .bobble { animation-delay: -1.1s; animation-duration: 2.1s; }
.bobble .ph-tag { font-size: 12.5px; padding: 5.0px 7.5px; } .bobble small { font: 400 25.0px var(--hand); color: #6a6355; }
@keyframes bobble { 0%,100% { transform: rotate(-9deg); } 25% { transform: rotate(6deg) translateY(-4px); } 50% { transform: rotate(-4deg); } 75% { transform: rotate(8deg) translateY(-3px); } }
.person h3 { margin: 0 0 7.5px; font: 400 52.5px/1 var(--hand); }
.person p { margin: 0 0 10px; line-height: 1.6; font-size: 17.5px; }
.mail { font: 400 28.8px var(--hand); color: var(--blue); text-decoration: none; border-bottom: 2.5px solid rgba(34,53,107,.3); }
.lists { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(28px, 5vw, 64px); margin-top: 48px; }
.lists h3 { font: 400 42.5px var(--hand); color: var(--blue); margin: 0 0 15.0px; }
.lists ul { list-style: none; margin: 0; padding: 0; }
.lists li { padding: 9px 0; border-bottom: 1px solid rgba(34,53,107,.18); font-size: 16.5px; line-height: 1.45; }
.awards { position: relative; }
.lamp { position: absolute; right: -250px; top: -40px; width: 230px; animation: lampfloat 6s ease-in-out infinite; text-align: center; }
.lamp img { width: 100%; height: auto; display: block; }
.lamp .ph-tag { font-size: 10px; transform: rotate(-4deg); white-space: nowrap; }
@keyframes lampfloat { 0%,100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-16px) rotate(5deg); } }
@media (max-width: 1380px) { .lamp { position: relative; right: auto; margin: 0 auto 24px; } }
.say { font: 400 clamp(90.0px, 12vw, 200.0px)/.9 var(--hand); color: var(--pink); transform: rotate(-4deg); margin: 0 0 50.0px; }
.say.reveal.in { transform: rotate(-4deg); }
.lines { display: grid; gap: 14px; max-width: 760px; }
.lines a, .lines div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; align-items: baseline; padding: 14px 4px; border-bottom: 2px solid rgba(34,53,107,.25); text-decoration: none; }
.lines .who { font: 400 37.5px var(--hand); color: var(--blue); }
.lines .what { font-size: clamp(18px, 2.2vw, 26px); font-weight: 500; overflow-wrap: anywhere; }
.lines a:hover .what { color: var(--pink); }
.nojs { position: fixed; inset: 0; z-index: 999; background: var(--cream); padding: 10vh 8vw; font-size: 20px; }

/* ---------------- phone ---------------- */
@media (max-width: 700px) {
  .back { top: 10px; left: 10px; font-size: 16px; }
  .hero { height: 0; }
  .sec { grid-template-columns: 1fr; }
  .photos { grid-template-columns: 1fr 1fr; } .photos .media:nth-child(3) { display: none; }
  .duo, .lists { grid-template-columns: 1fr; }
  .person { grid-template-columns: 96px 1fr; } .bobble { width: 96px; height: 96px; }
}

/* ---------------- reduced motion ---------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; transition-delay: 0s !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------------- hover title: typewriter on a strip of masking tape ---------------- */
#typer { position: fixed; z-index: 95; pointer-events: none; padding: .55em 1.1em .5em; white-space: nowrap;
  font: 400 clamp(15px, 1.25vw, 19px) 'Special Elite', 'Courier New', monospace; color: #1f1d1a; letter-spacing: .02em;
  transform: rotate(-1.5deg); transform-origin: 0 50%; opacity: 0; transition: opacity .15s; isolation: isolate; }
/* the tape is cut at its final length and only revealed from the left as the text types (never moves or stretches) */
#typer::before { content: ''; position: absolute; left: -.9em; top: 0; bottom: 0; z-index: -1; width: calc(var(--tw, 0px) + .9em); max-width: calc(100% + .9em);
  background: url(../assets/obj/tape.webp) left center / calc(var(--fw, 100%) + .9em) 100% no-repeat; transition: width .06s linear; }
#typer.on { opacity: 1; }
#typer i { display: inline-block; width: .55em; height: 1em; margin-left: 1px; vertical-align: -.12em; border-bottom: 2px solid #1f1d1a; animation: caret .8s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
@media (hover: none) { #typer { display: none; } }

/* handwriting supplied as images (the duo's own handwriting) */
.himg { display: grid; place-items: center; }
.himg img { max-width: 100%; max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.label .lt.limg:not(.boxed) { position: static; display: block; width: 100%; height: auto; transform: none; }
.label.over { width: auto; }

/* about: the duo's own bobblehead GIFs, used as supplied (white melts into the paper) */
.bobble { width: 200px; height: 200px; padding: 0; background: none; border-radius: 0; box-shadow: none; }
.bobble img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.person { grid-template-columns: 200px 1fr; }
@media (max-width: 700px) { .person { grid-template-columns: 130px 1fr; } .bobble { width: 130px; height: 130px; } }
.bobble { mix-blend-mode: normal; animation: none; transform: none; }
.bobble img { mix-blend-mode: normal; filter: drop-shadow(0 6px 10px rgba(60,40,20,.18)); }

.hand.hplace { overflow: visible; }
.hand.hplace img { position: absolute; height: auto; mix-blend-mode: multiply; }

/* to-do list written on the slip's ruled lines (Sofia Handwritten, like a real pen) */
.hand.hlines { overflow: visible; display: block; }
.hand.hlines p { position: absolute; margin: 0; white-space: nowrap; overflow: hidden; line-height: 1; transform: translateY(-88%) rotate(var(--lr));
  transform-origin: 0 100%; font-family: 'Sofia Handwritten', var(--hand); color: var(--c); mix-blend-mode: multiply; opacity: .92; text-align: left; }

/* real case videos in the 4:5 slots, used as supplied */
.photos .vid video { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: #2a2724;
  box-shadow: 0 1px 2px rgba(30,20,10,.3), 0 14px 30px rgba(30,20,10,.18); }
.photos .vid:nth-child(1) video { transform: rotate(-1.6deg); } .photos .vid:nth-child(2) video { transform: rotate(1.2deg) translateY(16px); } .photos .vid:nth-child(3) video { transform: rotate(-.6deg); }
@media (max-width: 900px) { .photos .media.vid:nth-child(3) { display: block; } }
@media (max-width: 700px) { .photos:has(.vid) { grid-template-columns: 1fr; gap: 36px; } .photos .vid:nth-child(2) video { transform: rotate(1.2deg); } }

.photos .vid img:not(.tp) { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; box-shadow: 0 1px 2px rgba(30,20,10,.3), 0 14px 30px rgba(30,20,10,.18); }
.photos .vid:nth-child(3n+1) img:not(.tp) { transform: rotate(-1.6deg); } .photos .vid:nth-child(3n+2) img:not(.tp) { transform: rotate(1.2deg) translateY(16px); } .photos .vid:nth-child(3n) img:not(.tp) { transform: rotate(-.6deg); }
.media.film video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #2a2724; transform: rotate(-.5deg); box-shadow: 0 1px 2px rgba(30,20,10,.3), 0 14px 30px rgba(30,20,10,.18); }

/* a single upload: centred at its own shape */
.photos.one { grid-template-columns: minmax(0, 380px); justify-content: center; }
.photos.one .vid video, .photos.one .vid img:not(.tp) { aspect-ratio: auto; height: auto; transform: rotate(-1deg); }

.media.film + .media.film video { transform: rotate(.6deg); }

/* videos take less room: centred and narrower than the text column */
.media.film { max-width: 760px; margin-left: auto; margin-right: auto; }
.after { margin-top: clamp(44px, 6vw, 80px); }
.photos:has(.vid) { max-width: 760px; margin-left: auto; margin-right: auto; }
.photos.one { grid-template-columns: minmax(0, 300px); }

/* uploaded photos: shown whole at their own shape */
.pics { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(18px, 2.4vw, 32px); max-width: 860px; margin: clamp(44px, 6vw, 72px) auto 0; align-items: center; }
.pics .pimg { display: block; width: 100%; height: auto; box-shadow: 0 1px 2px rgba(30,20,10,.3), 0 14px 30px rgba(30,20,10,.18); }
.pics .pic:nth-child(odd) .pimg { transform: rotate(-1.2deg); } .pics .pic:nth-child(even) .pimg { transform: rotate(1deg) translateY(10px); }

/* newspaper clipping tucked over the bottom corner of the video; opens the article */
.photos.hasclip { position: relative; }
.photos .clip { position: absolute; z-index: 3; width: min(340px, 62vw); left: calc(50% + 24px); bottom: -34px; display: block; transition: transform .35s var(--ease), filter .35s; filter: drop-shadow(0 8px 14px rgba(40,25,10,.25)); }
.photos .clip.reveal.in { transform: rotate(4deg); }
.photos .clip:hover, .photos .clip:focus-visible { transform: rotate(2deg) translateY(-6px) scale(1.03); filter: drop-shadow(0 16px 22px rgba(40,25,10,.3)); }
.photos .clip img { display: block; width: 100%; height: auto; }
.photos.hasclip { margin-bottom: 110px; }
@media (max-width: 700px) { .photos .clip { left: auto; right: -2px; bottom: -40px; width: 62vw; } }

/* awards: the LINQ line is bold, links to the case, a tiny lamp floats above "Silver Lamp" */
.aw-hi a { color: inherit; text-decoration: none; border-bottom: 2px solid rgba(31,29,26,.25); transition: border-color .2s; }
.aw-hi a:hover, .aw-hi a:focus-visible { border-bottom-color: var(--ink); }
.lampword { position: relative; display: inline-block; }
.minilamp { position: absolute; left: 50%; bottom: 105%; width: 30px; height: auto; margin-left: -15px; pointer-events: none;
  filter: drop-shadow(0 5px 4px rgba(40,25,10,.22)); animation: minifloat 3.2s ease-in-out infinite; }
@keyframes minifloat { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-5px) rotate(3deg); } }
@media (prefers-reduced-motion: reduce) { .minilamp { animation: none; } }

@media (max-width: 700px) { .pics { grid-template-columns: 1fr; } }

/* case page top: one hero asset; the desk object floats small at the top-left */
#content > .top:first-child { margin-top: clamp(150px, 14vw, 104px); margin-bottom: clamp(40px, 5vw, 64px); }
@media (min-width: 701px) { #content > .top:first-child { margin-top: 96px; } }
.media.ph-wrap.top, .media.video.top { max-width: 760px; margin-left: auto; margin-right: auto; }
.pics.one { grid-template-columns: minmax(0, 760px); justify-content: center; }
.pics.one .pic .pimg { transform: rotate(-.6deg); }
.floater .bob { animation-duration: 4.5s; }

/* phone mockup: a generic black smartphone; the screen keeps the video's own 9:16 shape (nothing cropped) */
.phones { display: flex; justify-content: center; gap: clamp(28px, 5vw, 72px); flex-wrap: wrap; margin: clamp(48px, 6vw, 80px) auto 0; }
.phone { margin: 0; width: min(250px, 72vw); padding: 30px 11px 34px; border-radius: 40px; background: linear-gradient(145deg, #2b2b2e, #0d0d0f 60%);
  box-shadow: inset 0 0 0 2px #3a3a3e, inset 0 0 0 4px #111, 0 2px 3px rgba(20,10,0,.35), 0 22px 44px rgba(40,25,10,.28); position: relative; }
.phone::before { content: ''; position: absolute; top: 13px; left: 50%; width: 54px; height: 6px; margin-left: -27px; border-radius: 4px; background: #1d1d20; box-shadow: inset 0 1px 2px #000; }
.phone::after { content: ''; position: absolute; bottom: 10px; left: 50%; width: 30%; height: 4px; margin-left: -15%; border-radius: 3px; background: #2e2e32; }
.phone:nth-child(odd) { transform: rotate(-2.5deg); } .phone:nth-child(even) { transform: rotate(2deg) translateY(18px); }
.phone .screen { border-radius: 8px; overflow: hidden; background: #000; }
.phone video { display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: contain; background: #000; }

@media (max-width: 700px) { .photos.one { grid-template-columns: minmax(0, 250px) !important; justify-content: center; } }

.later { max-width: 760px; margin: clamp(56px, 7vw, 90px) auto 0; }

.hand.himg.drawing img { mix-blend-mode: normal; opacity: .95; }

#note .nbox { margin-top: 4.5%; }

/* ---------- toys ---------- */
.item[data-i] { translate: 0 0; transition: translate 2s cubic-bezier(.25,.6,.3,1); }
.item.toy .im { transition: transform .38s var(--ease), rotate 2s cubic-bezier(.25,.6,.3,1); }
.item.toy.lift .im { transform: translate(calc(var(--cm) * -.18), calc(var(--cm) * -.36)) scale(1.04); }
.item.toy.lift .sh { opacity: 0; } .item.toy.lift .shl { opacity: 1; }
@keyframes diceroll { 0% { rotate: 0deg; translate: 0 0; } 25% { rotate: 95deg; translate: 2px -5px; } 50% { rotate: 180deg; translate: -2px 0; } 75% { rotate: 275deg; translate: 1px -4px; } 100% { rotate: 360deg; translate: 0 0; } }
.pupil { position: absolute; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%); pointer-events: none;
  background: radial-gradient(circle at 38% 32%, #2b2b2e 0 18%, #0b0b0c 55%); box-shadow: 0 1px 1.5px rgba(0,0,0,.35); transition: transform .14s ease-out; }
.item.o-stain .im { mix-blend-mode: multiply; opacity: .9; }
#lucky { position: fixed; z-index: 95; pointer-events: none; display: flex; align-items: flex-end; gap: 2px; opacity: 0; transform: translateY(8px) scale(.96);
  transition: opacity .25s, transform .3s var(--ease); font-size: 26px; line-height: 1; white-space: nowrap; }
#lucky.on { opacity: 1; transform: none; }
#lucky > span:not(.stk) { display: inline-block; padding: .1em .14em .06em; transform: translateY(var(--y)) rotate(var(--r)); box-shadow: 0 1px 2px rgba(30,20,10,.35), 0 4px 8px rgba(30,20,10,.18); }
#lucky .sp { width: .35em; padding: 0; box-shadow: none; }
@media (prefers-reduced-motion: reduce) { .item[data-i], .item.toy .im { transition: none; } .item.toy.rolling .im { animation: none; } .pupil { transition: none; } }

.pair { display: grid; grid-template-columns: 2fr 3fr; gap: clamp(20px, 3vw, 40px); align-items: center; max-width: 900px; margin: clamp(48px, 6vw, 80px) auto 0; }
.pair .vid video { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: #2a2724; transform: rotate(-1.4deg); box-shadow: 0 1px 2px rgba(30,20,10,.3), 0 14px 30px rgba(30,20,10,.18); }
.pair .pimg { display: block; width: 100%; height: auto; transform: rotate(1deg); box-shadow: 0 1px 2px rgba(30,20,10,.3), 0 14px 30px rgba(30,20,10,.18); }
@media (max-width: 700px) { .pair { grid-template-columns: 1fr; } .pair .vid { max-width: 260px; margin: 0 auto; } }

/* Tikkie beer mats: scattered over each other, gently hovering */
.coasters { position: relative; max-width: 760px; height: clamp(300px, 42vw, 470px); margin: clamp(56px, 7vw, 96px) auto 0; }
.coaster { position: absolute; width: 52%; filter: drop-shadow(0 14px 18px rgba(40,25,10,.22)) drop-shadow(0 2px 3px rgba(40,25,10,.25));
  animation: mat 6s ease-in-out infinite; animation-delay: calc(var(--k) * -2.1s); }
.coaster:nth-child(1) { left: -4%; top: 4%; --r: -9deg; }
.coaster:nth-child(2) { left: 24%; top: -8%; --r: 7deg; z-index: 2; }
.coaster:nth-child(3) { left: 50%; top: 10%; --r: -3deg; }
@keyframes mat { 0%, 100% { transform: translateY(0) rotate(var(--r)); } 50% { transform: translateY(-12px) rotate(calc(var(--r) + 2deg)); } }
@media (prefers-reduced-motion: reduce) { .coaster { animation: none; transform: rotate(var(--r)); } }
@media (max-width: 700px) { .coasters { height: 330px; } .coaster { width: 62%; } .coaster:nth-child(1) { left: -6%; top: 0; } .coaster:nth-child(2) { left: 20%; top: 26%; } .coaster:nth-child(3) { left: 42%; top: 50%; } }

#lucky { gap: 3px; }
#lucky .stk { position: relative; display: inline-block; flex: none; width: 1.05em; height: 1.4em; margin: 0 3px; font: 400 32px/1 'Instrument Serif', 'Times New Roman', serif; font-variant-numeric: lining-nums; transform: rotate(var(--r));
  filter: drop-shadow(0 2px 2px rgba(30,20,10,.3)) drop-shadow(0 6px 10px rgba(30,20,10,.18)); padding: 0; box-shadow: none; background: none; }
#lucky .stk .stkb { position: absolute; inset: -3px; background-image: url(../assets/textures/paper-crumpled.jpg); background-size: 220px; background-blend-mode: multiply; width: auto; height: auto; padding: 0; background: #fbf7ee; transform: none; box-shadow: none; }
#lucky .stk .ink { position: absolute; inset: 0; font-size: 1.3em; line-height: 1; -webkit-text-stroke: .035em currentColor; width: auto; height: auto; transform: none; box-shadow: none; display: grid; place-items: center; padding: 0; text-shadow: 1px 1px 0 rgba(0,0,0,.18);
  background-image: url(../assets/textures/paper-crumpled.jpg); background-size: 220px; background-blend-mode: multiply; text-shadow: none; }
#lucky .stk .ink::after { content: ''; position: absolute; inset: 0; background: url(../assets/textures/paper-crumpled.jpg) 40px 30px / 220px; mix-blend-mode: soft-light; opacity: .9; }

/* googly eyes: clear plastic dome over the pupil (highlight + rim sheen above the moving pupil) */
.gloss { position: absolute; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%); pointer-events: none;
  background: radial-gradient(ellipse 30% 20% at 33% 27%, rgba(255,255,255,1), rgba(255,255,255,.35) 45%, rgba(255,255,255,0) 72%),
              radial-gradient(ellipse 12% 8% at 66% 72%, rgba(255,255,255,.55), rgba(255,255,255,0) 70%),
              radial-gradient(circle at 50% 50%, rgba(255,255,255,0) 58%, rgba(255,255,255,.22) 68%, rgba(120,125,135,.18) 74%, rgba(255,255,255,0) 76%); }

/* slight natural window light from the top-left: fresher, not brighter overall */
#desk::after { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 5;
  background: radial-gradient(125% 95% at 8% 0%, rgba(255,250,236,.42), rgba(255,250,236,.16) 42%, rgba(255,250,236,0) 72%),
              linear-gradient(115deg, rgba(255,255,255,0) 28%, rgba(255,253,245,.11) 41%, rgba(255,255,255,0) 52%, rgba(255,253,245,.08) 62%, rgba(255,255,255,0) 73%);
  mix-blend-mode: soft-light; }
#deskimg, #stage { filter: saturate(1.06) contrast(1.02); }

/* Tikkie beer mats tucked on the poster corners (circle = central 60% of each image) */
.pics.mats { position: relative; }
.pics.mats .coaster { width: 30%; z-index: 3; }
.pics.mats .coaster.m0 { left: -13%; top: 0; margin-top: -10%; --r: -9deg; }
.pics.mats .coaster.m1 { left: 35%; bottom: 0; margin-bottom: -13%; --r: 6deg; }
.pics.mats .coaster.m2 { right: -13%; top: 0; margin-top: -8%; --r: -4deg; }
.pics.mats { margin-bottom: 9%; }
@media (max-width: 700px) { .pics.mats .coaster { width: 46%; } .pics.mats .coaster.m0 { left: -14%; margin-top: -20%; } .pics.mats .coaster.m1 { left: auto; right: -14%; top: 48%; bottom: auto; margin: 0; } .pics.mats .coaster.m2 { right: auto; left: -14%; top: auto; bottom: 0; margin: 0 0 -22%; } }

/* per-case pastel backdrops (kept soft and desaturated) */
#sheet[data-case="kpn-wifi-therapie"] { --bg: #e7f1e0; --sub: #4f6b45; }
#sheet[data-case="tikkie"] { --bg: #ece7f7; --sub: #5a4d84; }
#sheet[data-case="artis-aquarium"] { --bg: #e1eef6; --sub: #3f6680; }
#sheet[data-case="dat-is-raak"], #sheet[data-case="raak-100-dingen"] { --bg: #f8e6e2; --sub: #9a463c; }
#sheet[data-case="artis-micropia"], #sheet[data-case="donker-in-artis"] { --bg: #f5ecdc; --sub: #7a5a3a; }
#sheet[data-case="artis-pride"] { --bg: #fae7ed; --sub: #a24a6c; }

/* Micropia: video + photo side by side, Parool clipping on the video's bottom corner */
.pair .vid { position: relative; }
.pair .clip { position: absolute; z-index: 3; width: 100%; left: 62%; bottom: -100px; display: block; filter: drop-shadow(0 8px 14px rgba(40,25,10,.25)); transition: transform .35s var(--ease); }
.pair .clip.reveal.in { transform: rotate(4deg); }
.pair .clip:hover { transform: rotate(2deg) translateY(-6px) scale(1.03); }
.pair .clip img { display: block; width: 100%; height: auto; }
.pair.hasclip { margin-bottom: 140px; }
@media (max-width: 700px) { .pair .clip { width: 80%; left: auto; right: -20px; bottom: -50px; } }

.media.embed iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; background: #191919; transform: rotate(-.5deg); box-shadow: 0 1px 2px rgba(30,20,10,.3), 0 14px 30px rgba(30,20,10,.18); }

/* easter eggs and the rolling paper only react on hover: normal arrow cursor (dice stay clickable) */
.item .hit a[data-egg], .item .hit a[data-toy="roll"] { cursor: default; }

/* fullscreen videos: show the whole frame on black in its own aspect ratio (no zoom/crop) */
video:fullscreen, video:-webkit-full-screen { object-fit: contain !important; aspect-ratio: auto !important; width: 100% !important; height: 100% !important; background: #000 !important; transform: none !important; box-shadow: none !important; }

/* about page: pastel orange; title + kicker centred, clear of the floating photostrip */
#sheet[data-case="about"] { --bg: #fbe8d7; --sub: #b4643c; }
#sheet[data-case="about"] #content > .kicker:first-child { margin-top: clamp(150px, 16vw, 210px); text-align: center; transform: none; }
#sheet[data-case="about"] #content > .title { text-align: center; margin-left: auto; margin-right: auto; max-width: 18ch; }
@media (max-width: 700px) { #sheet[data-case="about"] #content > .kicker:first-child { margin-top: 150px; } }

/* LINQ award: tiny lamp floating to the right of the line */
.aw-hi { display: flex; align-items: center; gap: 10px; }
.minilamp.side { position: static; width: 30px; margin: 0; flex: none; }

/* glass glare on the Micropia petri dish lid: curved window reflection + small specular spot */
.glare { position: absolute; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%); pointer-events: none; mix-blend-mode: screen; transition: transform .38s var(--ease);
  background:
    radial-gradient(ellipse 9% 5% at 30% 25%, rgba(255,255,255,.85), rgba(255,255,255,0) 100%),
    radial-gradient(ellipse 52% 46% at 50% 50%, rgba(255,255,255,0) 82%, rgba(255,255,255,.38) 90%, rgba(255,255,255,0) 97%) ,
    linear-gradient(135deg, rgba(255,255,255,.26) 0%, rgba(255,255,255,.08) 28%, rgba(255,255,255,0) 42%, rgba(255,255,255,0) 70%, rgba(255,255,255,.07) 82%, rgba(255,255,255,0) 92%);
  -webkit-mask: radial-gradient(circle, #000 69%, transparent 71%); mask: radial-gradient(circle, #000 69%, transparent 71%); }
.item.on .glare { transform: translate(calc(-50% + var(--cm) * -.25), calc(-50% + var(--cm) * -.5)) scale(1.02); }

/* paper balls always roll OVER everything on the desk */
#stage .item.o-crumple-y, #stage .item.o-crumple-k { z-index: 30; }

/* case titles: hand-lettered lines sit close together; a little top room so ascenders aren't clipped */
.title { padding-top: .08em; }
.title.oneline { max-width: none; white-space: nowrap; }

/* custom pixel arrow everywhere (links included); colour set per page in app.js */
@media (hover: hover) and (pointer: fine) { html, html * { cursor: var(--cur, auto), auto !important; } }
