/* The overlay shares the illustrated desk's aspect ratio and cover positioning. */
.hero { container-type: size; }
.hero-atmosphere {
  position: absolute; z-index: 2; pointer-events: none;
  width: max(100cqw, 177.684cqh); aspect-ratio: 1672 / 941;
  left: 50%; top: 50%; transform: translate(-50%, -50%);
  overflow: visible;
}
.hero-atmosphere svg { display: block; width: 100%; height: 100%; overflow: visible; }
.hero-steam { fill: none; stroke: #fff7e4; stroke-width: 5; stroke-linecap: round; opacity: 0; }
.hero-note-symbol { fill: #fff3d2; stroke: #44685f; stroke-width: 1.6; opacity: 0; transform-box: fill-box; transform-origin: center; }
@media (max-width: 700px) {
  .hero-atmosphere { left: 20%; transform: translate(-20%, -50%); }
}
@media (prefers-reduced-motion: no-preference) {
  .hero.scene-active .hero-steam { animation: coffee-steam 4.8s ease-out infinite; }
  .hero.scene-active .hero-steam:nth-child(2) { animation-delay: 1.6s; }
  .hero.scene-active .hero-steam:nth-child(3) { animation-delay: 3.2s; }
  .hero.scene-active .hero-note-symbol { animation: speaker-note 5.4s ease-out infinite; }
  .hero.scene-active .hero-note-symbol:nth-child(2) { animation-delay: 1.8s; }
  .hero.scene-active .hero-note-symbol:nth-child(3) { animation-delay: 3.6s; }
}
@keyframes coffee-steam {
  0% { opacity: 0; translate: 0 6px; }
  20% { opacity: .65; }
  75% { opacity: .38; }
  100% { opacity: 0; translate: 8px -48px; }
}
@keyframes speaker-note {
  0% { opacity: 0; translate: 0 0; rotate: -12deg; }
  15% { opacity: .9; }
  72% { opacity: .8; }
  100% { opacity: 0; translate: -36px -64px; rotate: 12deg; }
}


@keyframes memory-sway {
  0%, 80%, 100% { rotate: 0deg; }
  84% { rotate: 2deg; }
  89% { rotate: -1.2deg; }
  94% { rotate: .4deg; }
}
.hero-atmosphere--mobile { display: none; }
@media (max-width: 700px) {
  .hero { background-image: url('/assets/hero-desk-mobile.webp'); background-position: center; }
  .hero-atmosphere--desktop { display: none; }
  .hero-atmosphere--mobile { display: block; width: max(100cqw, 56.28cqh); aspect-ratio: 941 / 1672; left: 50%; transform: translate(-50%, -50%); }
  .hero-snapshot { bottom: 27%; }
}
/* Small details belong to the product illustrations themselves. */
#ringotter .product-art::after, #wimlet .product-art::after, #bannertrackr .product-art::after {
  content: ''; position: absolute; width: 26%; height: 26%; right: 8%; top: 8%; opacity: 0; pointer-events: none;
  background: center / contain no-repeat;
}
#ringotter .product-art::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M8 23c5-3 7-8 6-13M16 27c8-4 12-12 10-21M24 30c10-5 15-15 13-26' fill='none' stroke='%23547786' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E"); }
#wimlet .product-art::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M20 4C15 13 9 19 9 26a11 11 0 0 0 22 0C31 19 25 13 20 4Z' fill='%2381aeb8' stroke='%23547173' stroke-width='2'/%3E%3Cpath d='M14 26c0-3 1-5 3-7' fill='none' stroke='%23f8f4e6' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); }
#bannertrackr .product-art::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M20 4v7M20 29v7M4 20h7M29 20h7M9 9l5 5M26 26l5 5M31 9l-5 5M14 26l-5 5' fill='none' stroke='%23b27737' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E"); }
@media (prefers-reduced-motion: no-preference) {
  #ringotter.scene-active .product-art::after { animation: product-detail 5.6s ease-in-out 1s infinite; }
  #wimlet.scene-active .product-art::after { animation: product-detail 6s ease-in-out 2s infinite; }
  #bannertrackr.scene-active .product-art::after { animation: product-detail 5.4s ease-in-out 1.5s infinite; }
}
@keyframes product-detail {
  0%, 12%, 80%, 100% { opacity: 0; transform: translateY(5px) scale(.75); }
  25%, 55% { opacity: .9; transform: translateY(0) scale(1); }
  72% { opacity: 0; transform: translateY(-7px) scale(1.05); }
}

/* Product-specific details: crumbs, a pencil, and reply bubbles. */
#consentpop .product-art::after, #handypal .product-art::after,
#makrly .product-art::after, #marketingpal .product-art::after,
#reply-drawer .product-art::after {
  content: ''; position: absolute; width: 26%; height: 26%; right: 8%; top: 8%;
  opacity: 0; pointer-events: none; background: center / contain no-repeat;
}
#consentpop .product-art::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Ccircle cx='10' cy='25' r='3.5' fill='%23b07a43'/%3E%3Ccircle cx='23' cy='14' r='4.5' fill='%23d59a4b'/%3E%3Ccircle cx='30' cy='28' r='2.8' fill='%238d5d38'/%3E%3C/svg%3E"); }
#handypal .product-art::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M20 4c1 9 4 12 12 13-8 1-11 4-12 13-1-9-4-12-12-13C16 16 19 13 20 4Z' fill='%23dfb763' stroke='%23866437' stroke-width='1.5'/%3E%3C/svg%3E"); }
#makrly .product-art::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='m8 29 3-8L28 4l7 7-17 17-8 3z' fill='%23e7b765' stroke='%23805c39' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath d='m23 9 7 7' fill='none' stroke='%23805c39' stroke-width='2'/%3E%3C/svg%3E"); }
#marketingpal .product-art::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M7 9h21v16H17l-6 5v-5H7z' fill='%23d2e0ca' stroke='%23546e60' stroke-width='2' stroke-linejoin='round'/%3E%3Ccircle cx='13' cy='17' r='1.5' fill='%23546e60'/%3E%3Ccircle cx='18' cy='17' r='1.5' fill='%23546e60'/%3E%3Ccircle cx='23' cy='17' r='1.5' fill='%23546e60'/%3E%3C/svg%3E"); }
#reply-drawer .product-art::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M5 8h28v18H19l-7 5v-5H5z' fill='%23efc4ae' stroke='%23836554' stroke-width='2' stroke-linejoin='round'/%3E%3Ccircle cx='13' cy='17' r='1.7' fill='%23836554'/%3E%3Ccircle cx='19' cy='17' r='1.7' fill='%23836554'/%3E%3Ccircle cx='25' cy='17' r='1.7' fill='%23836554'/%3E%3C/svg%3E"); }


@media (prefers-reduced-motion: no-preference) {
  #consentpop.scene-active .product-art::after, #handypal.scene-active .product-art::after,
  #makrly.scene-active .product-art::after, #marketingpal.scene-active .product-art::after,
  #reply-drawer.scene-active .product-art::after { animation: product-detail 6.2s ease-in-out 1.4s infinite; }
  #makrly.scene-active .product-art::after, #reply-drawer.scene-active .product-art::after { animation-delay: 2.5s; }
  .page-book .booking-frame.scene-active .booking-window-mark { animation: calendar-flip 9s ease-in-out 2s infinite; transform-origin: top; }
  .object.scene-active, .page-memories figure.scene-active { animation: memory-sway 10s ease-in-out 2s infinite; transform-origin: 50% 8%; }
  .object:nth-child(even).scene-active, .page-memories figure:nth-child(even).scene-active { animation-delay: 4s; }
  .object.scene-active:hover, .object.scene-active:focus-visible { animation-play-state: paused; }
}
@keyframes calendar-flip {
  0%, 80%, 100% { scale: 1 1; }
  84% { scale: 1 .6; }
  88% { scale: 1 1.05; }
  92% { scale: 1 1; }
}

/* Keep the illustrated actions legible at phone-sized card artwork. */
#bannertrackr .product-art::after, #consentpop .product-art::after,
#handypal .product-art::after, #makrly .product-art::after,
#marketingpal .product-art::after, #reply-drawer .product-art::after,
#ringotter .product-art::after, #wimlet .product-art::after { width: 40%; height: 40%; right: 2%; top: 2%; }
.hero-steam { stroke-width: 8; }
@media (prefers-reduced-motion: no-preference) {
  .object.scene-active, .page-memories figure.scene-active { animation-duration: 6.5s; animation-delay: .8s; }
  .object:nth-child(even).scene-active, .page-memories figure:nth-child(even).scene-active { animation-delay: 2s; }
  #bannertrackr.scene-active .product-art::after, #consentpop.scene-active .product-art::after,
  #handypal.scene-active .product-art::after, #makrly.scene-active .product-art::after,
  #marketingpal.scene-active .product-art::after, #reply-drawer.scene-active .product-art::after,
  #ringotter.scene-active .product-art::after, #wimlet.scene-active .product-art::after { animation-duration: 4s; animation-delay: .3s; }
  #makrly.scene-active .product-art::after, #reply-drawer.scene-active .product-art::after,
  #ringotter.scene-active .product-art::after { animation-delay: 1s; }
}
@keyframes product-detail {
  0%, 100% { opacity: 0; transform: translateY(12px) scale(.6) rotate(-8deg); }
  20% { opacity: 1; transform: translateY(0) scale(1.1) rotate(4deg); }
  35%, 60% { opacity: 1; transform: translateY(-4px) scale(1) rotate(0deg); }
  80% { opacity: 0; transform: translateY(-18px) scale(.9) rotate(8deg); }
}
@keyframes memory-sway {
  0%, 48%, 100% { rotate: 0deg; }
  54% { rotate: 4deg; }
  62% { rotate: -3deg; }
  70% { rotate: 1.5deg; }
  78% { rotate: -.5deg; }
  84% { rotate: 0deg; }
}


/* More visible, object-led motion across the illustrated workspace. */
.hero-steam { stroke-width: 13; }
.hero-note-symbol { scale: 1.8; }
#bannertrackr .product-art::after, #consentpop .product-art::after,
#handypal .product-art::after, #makrly .product-art::after,
#marketingpal .product-art::after, #reply-drawer .product-art::after,
#ringotter .product-art::after, #wimlet .product-art::after { width: 36%; height: 36%; right: 2%; top: 2%; }
@media (prefers-reduced-motion: no-preference) {
  .hero.scene-active .hero-steam { animation-duration: 3.4s; }
  .hero.scene-active .hero-steam:nth-child(2) { animation-delay: 1.1s; }
  .hero.scene-active .hero-steam:nth-child(3) { animation-delay: 2.2s; }
  .hero.scene-active .hero-note-symbol { animation-duration: 3.6s; }
  .hero.scene-active .hero-note-symbol:nth-child(2) { animation-delay: 1.2s; }
  .hero.scene-active .hero-note-symbol:nth-child(3) { animation-delay: 2.4s; }
  .product-preview.scene-active .product-preview-art,
  .product-story-card.scene-active .product-art { animation: illustration-life 5.4s ease-in-out infinite; transform-origin: 50% 75%; }
  .product-preview:nth-child(even).scene-active .product-preview-art,
  .product-story-card:nth-child(even).scene-active .product-art { animation-delay: -2.2s; }
  .object.scene-active, .page-memories figure.scene-active { animation-duration: 5s; }
  #bannertrackr.scene-active .product-art::after, #consentpop.scene-active .product-art::after,
  #handypal.scene-active .product-art::after, #makrly.scene-active .product-art::after,
  #marketingpal.scene-active .product-art::after, #reply-drawer.scene-active .product-art::after,
  #ringotter.scene-active .product-art::after, #wimlet.scene-active .product-art::after { animation-duration: 3.2s; animation-delay: 0s; }
  #makrly.scene-active .product-art::after, #reply-drawer.scene-active .product-art::after,
  #ringotter.scene-active .product-art::after { animation-delay: .8s; }
  .page-book .booking-frame.scene-active .booking-window-mark { animation-duration: 4.5s; animation-delay: .5s; }
}
@keyframes coffee-steam {
  0% { opacity: 0; translate: 0 5px; }
  18% { opacity: .9; }
  70% { opacity: .7; }
  100% { opacity: 0; translate: 14px -90px; }
}
@keyframes illustration-life {
  0%, 20%, 100% { rotate: 0deg; }
  28% { rotate: -4deg; }
  38% { rotate: 3deg; }
  48% { rotate: -1.5deg; }
  60% { rotate: 0deg; }
}

/* Keep scene effects registered to the original desk artwork. */
.page-media, .page-about, .page-book { isolation:isolate; }
.page-media { background: #e9e1c9 url('/assets/music-desk.png') center top / cover no-repeat; }
.page-about, .page-book { background: #d6e9c8 url('/assets/desk-paper.png') center top / cover no-repeat; }
.page-media::before, .page-about::before, .page-book::before {
  content:''; position:absolute; z-index:-1; inset:0 0 auto; width:100%; aspect-ratio:1672 / 941;
  background: url('/assets/desk-paper.png') center top / 100% auto no-repeat;
  -webkit-mask-image:linear-gradient(#000 70%, transparent); mask-image:linear-gradient(#000 70%, transparent);
  pointer-events:none;
}
.page-media::before { background-image:url('/assets/music-desk.png'); }
.painted-desk-life { position:absolute; z-index:0; top:0; left:0; width:100%; aspect-ratio:1672 / 941; pointer-events:none; overflow:hidden; }
.painted-desk-life svg { width:100%; height:100%; display:block; overflow:visible; }
.desk-screen { fill:none; stroke:#d7edbb; stroke-width:4; stroke-linecap:round; opacity:.9; }
@media (prefers-reduced-motion:no-preference) {
  .scene-active .desk-screen { animation: desk-display 3.8s steps(1,end) infinite; }
  .scene-active .desk-cursor { animation: desk-cursor 1s steps(1,end) infinite; }
}
@keyframes desk-display { 0%,100% {opacity:.9} 15% {opacity:.3} 25%,70% {opacity:1} 75% {opacity:.5} }
@keyframes desk-cursor { 50% {opacity:0} }
@media(max-width:700px) {
  .product-page .painted-desk-life { aspect-ratio:750 / 1335; }
  .product-page .desk-screen { transform:scale(.95,.5); transform-origin:top left; }
  .page-about .desk-screen, .page-book .desk-screen { stroke-width:7; }
}

/* The home sections use cover-positioned illustrations: slice the effect to match. */
.panel.about > .painted-desk-life, .panel.projects > .painted-desk-life { inset:0; width:100%; height:100%; aspect-ratio:auto; }
@media (prefers-reduced-motion:no-preference) {
  .illustrated-object.scene-active { animation: desk-object-hello 4.6s ease-in-out infinite; transform-origin:50% 80%; }
  .object-player.scene-active { animation-delay:-1.8s; }
  .page-travel-heading.scene-active img { animation: desk-globe 5.5s ease-in-out infinite; transform-origin:50% 80%; }
}
@keyframes desk-object-hello {
  0%, 18%, 100% { rotate:0deg; }
  28% { rotate:-7deg; } 38% { rotate:5deg; } 48% { rotate:-2deg; } 60% { rotate:0deg; }
}
@keyframes desk-globe {
  0%, 20%, 100% { rotate:0deg; } 32% { rotate:-12deg; } 48% { rotate:9deg; } 64% { rotate:-4deg; } 78% { rotate:0deg; }
}

/* The story illustration has its own actions: code appears as Rg works and Rumpy dreams. */
.about-portrait { position:relative; width:100%; }
.about-portrait .portrait-life { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; }
.portrait-code { fill:none; stroke:#d9efc4; stroke-width:17; stroke-linecap:round; stroke-dasharray:100; stroke-dashoffset:100; }
.rumpy-dream { fill:#365c59; font:700 165px Outfit,sans-serif; opacity:0; }
.rumpy-dream text:nth-child(2) { font-size:130px; }
.rumpy-dream text:nth-child(3) { font-size:100px; }
@media (prefers-reduced-motion:no-preference) {
  .about-portrait.scene-active .portrait-code { animation: portrait-typing 4s steps(6,end) infinite; }
  .about-portrait.scene-active .portrait-cursor { animation: desk-cursor .9s steps(1,end) infinite; }
  .about-portrait.scene-active .rumpy-dream { animation:rumpy-dreaming 4.5s ease-in-out infinite; }
}
@keyframes portrait-typing { 0% {stroke-dashoffset:100} 65%,90% {stroke-dashoffset:0} 100% {stroke-dashoffset:100} }
@keyframes rumpy-dreaming { 0% {opacity:0;translate:0 25px} 20%,65% {opacity:.95} 100% {opacity:0;translate:30px -80px} }
@media(max-width:700px) { .page-about-hero .about-portrait { width:min(70%,320px); margin:auto; } .page-about-hero .about-portrait img { width:100%; } }

/* A separate call desk: the telephone rings and a clock hand sweeps. */
.page-book { background:#b3cece url('/assets/booking-desk.webp') center top / cover no-repeat; }
.page-book::before { background-image:url('/assets/booking-desk.webp'); }
.booking-clock { fill:#9d4e3e; stroke:#9d4e3e; stroke-width:8; stroke-linecap:round; transform-origin:185px 210px; }
.booking-ringing { fill:none; stroke:#fdf2d9; stroke-width:12; stroke-linecap:round; opacity:0; }
@media(prefers-reduced-motion:no-preference) {
 .scene-active .booking-clock { animation:booking-clock-tick 12s linear infinite; }
 .scene-active .booking-ringing { animation:booking-phone-ring 2.8s ease-out infinite; }
 .scene-active .booking-ring-two { animation-delay:.2s; }
}
@keyframes booking-clock-tick { to { rotate:360deg; } }
@keyframes booking-phone-ring {
  0%,100% { opacity:0; scale:.88; } 15%,45% {opacity:1;scale:1;} 65% {opacity:0;scale:1.12;}
}

/* About's own desk objects come alive: the paper star turns and pawprints walk. */
.about-star { transform-origin:1523px 467px; }
.about-paw { fill:#8b6c4a; opacity:0; }
@media (prefers-reduced-motion:no-preference) {
  .scene-active .about-star { animation:about-star-wink 4.4s ease-in-out infinite; }
  .scene-active .about-paw { animation:about-paw-step 4.4s ease-in-out infinite; }
  .scene-active .about-paw-two { animation-delay:.55s; }
  .scene-active .about-paw-three { animation-delay:1.1s; }
}
@keyframes about-star-wink { 0%,100% {rotate:0deg;scale:1} 25% {rotate:16deg;scale:1.22} 55% {rotate:-12deg;scale:.92} 80% {rotate:7deg;scale:1.12} }
@keyframes about-paw-step { 0%,10%,100% {opacity:0} 18%,65% {opacity:.9} 80% {opacity:0} }

.about-pencil { transform-origin:1370px 700px; }
@media (prefers-reduced-motion:no-preference) {
 .scene-active .about-pencil { animation:about-pencil-draw 4.8s ease-in-out infinite; }
}
@keyframes about-pencil-draw { 0%,100% {rotate:0deg} 18% {rotate:-5deg} 37% {rotate:3deg} 55% {rotate:-4deg} 75% {rotate:2deg} }
