/* ---- 03 / The desk: someone at work, wandering off course on purpose ---- */
.explorations .section-heading{grid-template-columns:1.1fr 1fr;column-gap:48px}
.explorations .section-heading h2{grid-column:1;grid-row:2}
.explorations .section-heading>p:last-child{grid-column:1;grid-row:3;justify-self:start;align-self:start;margin-top:26px}
.desk-scene{grid-column:2;grid-row:2/4;justify-self:end;align-self:end;width:100%;max-width:540px;margin:0 0 -18px}
.desk-scene svg{display:block;width:100%;height:auto;overflow:visible}
.desk-scene figcaption{font:8px/1.6 var(--mono);letter-spacing:1.2px;color:#5b6474;margin-top:6px;text-align:right}
.journey-active .desk-scene figcaption{color:var(--journey-muted)}
.desk-ink{fill:none;stroke:#2b2622;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.desk-ink.thin{stroke-width:1}
.desk-wash{mix-blend-mode:multiply}
.desk-label{font:6.5px var(--mono);letter-spacing:.9px;fill:#4b5263}
.desk-sign{font:600 6.4px var(--sans);letter-spacing:.6px;fill:#2b2622}
.desk-route{fill:none;stroke:#2b2622;stroke-width:1.3;stroke-dasharray:.1 5.2;stroke-linecap:round;opacity:.75}
.desk-stop circle{fill:#f0e8d8;stroke:#2b2622;stroke-width:1.2;transition:fill .35s,transform .35s;transform-box:fill-box;transform-origin:center}
.desk-stop text{transition:fill .35s}
.desk-stop.is-lit circle{fill:var(--ember);transform:scale(1.35)}
.desk-stop.is-lit text{fill:#c4472f}
.desk-traveler{fill:var(--ember);stroke:#2b2622;stroke-width:.8}
.desk-screen image{transform-box:fill-box;transition:opacity .45s}

.desk-forearm{transform-box:fill-box;transform-origin:4% 40%;animation:desk-type 2.6s ease-in-out infinite}
.desk-head{transform-box:fill-box;transform-origin:30% 95%;animation:desk-nod 6s ease-in-out infinite}
.desk-eye{transform-box:fill-box;transform-origin:center;animation:desk-blink 4.8s infinite}
.desk-steam path{animation:desk-steam 3.2s ease-out infinite;opacity:0}
.desk-steam path:nth-child(2){animation-delay:1.1s}
.desk-steam path:nth-child(3){animation-delay:2.1s}
.desk-cat-body{transform-box:fill-box;transform-origin:50% 100%;animation:desk-breathe 3.6s ease-in-out infinite}
.desk-zz text{animation:desk-zz 4.2s ease-out infinite;opacity:0}
.desk-zz text:nth-child(2){animation-delay:2.1s}
.desk-spark{transform-box:fill-box;transform-origin:center;animation:desk-spark 9s ease-out infinite;opacity:0}
.desk-note{transform-box:fill-box;transform-origin:50% 0;animation:desk-flutter 5s ease-in-out infinite}
.desk-scene.is-idle *{animation-play-state:paused!important}

@keyframes desk-type{0%,100%{transform:none}8%{transform:rotate(-5deg)}14%{transform:none}22%{transform:rotate(-4deg)}28%{transform:none}36%{transform:rotate(-6deg)}44%{transform:none}}
@keyframes desk-nod{0%,100%{transform:none}46%{transform:none}52%{transform:rotate(-4deg) translateY(-1px)}70%{transform:rotate(-4deg) translateY(-1px)}78%{transform:none}}
@keyframes desk-blink{0%,93%,100%{transform:none}95%{transform:scaleY(.1)}}
@keyframes desk-steam{0%{opacity:0;transform:translateY(4px)}30%{opacity:.7}100%{opacity:0;transform:translateY(-14px)}}
@keyframes desk-breathe{0%,100%{transform:none}50%{transform:scaleY(1.06)}}
@keyframes desk-zz{0%{opacity:0;transform:translate(0,0)}25%{opacity:.8}100%{opacity:0;transform:translate(8px,-16px)}}
@keyframes desk-spark{0%,62%{opacity:0;transform:scale(.4)}66%{opacity:1;transform:scale(1.15)}76%{opacity:1;transform:scale(1)}84%,100%{opacity:0;transform:scale(.9)}}
@keyframes desk-flutter{0%,100%{transform:rotate(0)}50%{transform:rotate(5deg)}}

@media(prefers-reduced-motion:reduce){.desk-scene *{animation:none!important;transition-property:opacity!important}.desk-steam path{opacity:.5}}
@media(max-width:760px){
  .explorations .section-heading{display:flex;flex-direction:column;align-items:flex-start}
  .explorations .section-heading>p:last-child{margin-top:20px}
  .desk-scene{order:4;align-self:stretch;max-width:none;margin:26px 0 0}
  .desk-scene figcaption{text-align:left;font-size:7px}
}

/* Small print floor: no reading text under 10px (the comic stamp is a drawing, not text to read). */
.board-foot,.nemo-label,.nemo-note,.desk-scene figcaption,.shelf-kind{font-size:.625rem}
@media(max-width:760px){.board-foot,.nemo-label,.nemo-note,.desk-scene figcaption,.hero .hero-aside,.arrival-strip p:first-child,.arrival-strip>a,.art-caption span,.art-caption span:last-child{font-size:.625rem}.nemo-hint{bottom:34px}}

/* ---- Polish pass (critique 2026-11-17) ---- */
/* The italic serif voice is rationed: the hero, the comic's question and the terminus keep it. */
:is(#nemo .comic-heading h2,#explorations .section-heading h2,#about h2,#contact h2) em,
.journey-active :is(#nemo .comic-heading h2,#explorations .section-heading h2,#about h2,#contact h2) em{font:inherit;font-style:normal;letter-spacing:inherit;color:inherit;margin:0}
/* Headings break evenly; short lines don't strand a word. */
:is(.section-heading h2,.comic-heading h2,.about h2,.contact h2,.terminus h2){text-wrap:balance}
:is(.hero-aside,.comic-deck,.hero-description,.section-heading>p){text-wrap:pretty}
/* Anything you can press reads at 12px or more. */
.arrival-strip>a,.footer-links a,footer>a:last-child,.terminus-hello,.nemo-hint{font-size:.75rem}
.arrival-strip>a+a{margin-left:-6px}
.arrival-strip .arrival-skip{color:var(--ember)}
.journey-active .arrival-strip .arrival-skip{color:var(--journey-accent)}
/* Expand, not exit: the row's + turns to × when its shelf is open. */
.exploration-card:hover .card-arrow{transform:scale(1.12)}
.exploration-card[aria-expanded="true"] .card-arrow{transform:rotate(45deg)}
/* The shelf's invitation runs across its own row instead of orphaning in a column. */
.shelf-cta{grid-column:1/-1;min-height:0;display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 22px;padding:18px 20px}
.shelf-cta .shelf-note{margin:0}
/* Point Nemo: retiring a spacecraft is a real button, reachable by keyboard. */
.nemo-hint{pointer-events:auto;background:none;border:0;border-bottom:1px solid color-mix(in srgb,var(--ember) 55%,transparent);padding:2px 0;cursor:pointer;text-transform:uppercase;letter-spacing:.12em;font-family:var(--mono)}
.nemo-hint:hover{border-bottom-color:var(--ember)}
@media(max-width:760px){
  /* Phones get the section links back, as a quiet second row. */
  .header{flex-wrap:wrap;height:auto;padding:16px 0 12px;row-gap:10px}
  .header nav{display:flex;order:3;width:100%;margin:0;gap:20px;font-size:.75rem}
  .header .identity{width:178px}
  .motion-toggle{margin-right:10px}
  .header-contact span{margin-left:6px}
  .arrival-strip>a{font-size:.75rem}
  .arrival-strip>a+a{margin-left:0}
}
/* Wide screens set the Nemo heading on one line, where the <br> is hidden: keep the word space. */
@media(min-width:1101px){#nemo .comic-heading h2 em,.journey-active #nemo .comic-heading h2 em{margin-left:.24em}}
