@font-face {
  font-family: Besley;
  src: url('assets/besley.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: block;
}
:root {
  color-scheme: light;
  --ink: #252723;
  --muted: #626960;
  --blue: #456d93;
  --line: #c3ccd3;
  --scene-height: clamp(104px, 19svh, 192px);
  font-family: Besley, Georgia, serif;
  color: var(--ink);
  background: #f7fafd;
  --wind-tilt: 0deg;
}
* { box-sizing: border-box; }
html { overflow-x: clip; }
body {
  position: relative;
  margin: 0;
  min-height: 100svh;
  padding: clamp(28px, 5svh, 56px) 28px calc(var(--scene-height) * 0.78 + clamp(28px, 5svh, 56px));
  display: grid;
  place-items: center;
  overflow-x: clip;
  background: linear-gradient(180deg, #f3f8fd 0%, #fafdff 28%, #ffffff 68%, #f3f8fc 100%);
  transition: background .8s ease;
}
body[data-weather="squall"] { background: linear-gradient(180deg, #ebf2f9 0%, #f6fafd 32%, #fcfdff 70%, #ecf3f9 100%); }
body[data-weather="frost"] { background: linear-gradient(180deg, #eef4fc 0%, #f9fbff 32%, #ffffff 72%, #f1f7fd 100%); }
/* Whisper-soft living northern winter sky wash using zero-blur radial gradients (GPU-cheap!). */
.winter-sky {
  position: absolute;
  inset: 0 0 auto 0;
  height: clamp(190px, 40svh, 360px);
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
  transition: opacity .35s ease;
}
.aurora-ribbon {
  position: absolute;
  left: -18%;
  width: 136%;
  height: 220px;
  opacity: .55;
  transform-origin: 50% 0%;
  will-change: transform;
  transition: opacity .6s ease;
}
.aurora-ribbon.a {
  top: -40px;
  background: radial-gradient(ellipse 46% 62% at 44% 24%, rgba(160, 210, 232, .34) 0%, rgba(154, 212, 202, .16) 44%, transparent 74%);
  animation: aurora-drift-a 26s ease-in-out infinite alternate;
}
.aurora-ribbon.b {
  top: -20px;
  height: 200px;
  opacity: .42;
  background: radial-gradient(ellipse 42% 58% at 62% 28%, rgba(190, 206, 240, .28) 0%, rgba(164, 218, 224, .14) 46%, transparent 74%);
  animation: aurora-drift-b 34s ease-in-out infinite alternate;
}
body[data-weather="frost"] .aurora-ribbon.a { opacity: .88; }
body[data-weather="frost"] .aurora-ribbon.b { opacity: .72; }
body[data-weather="squall"] .aurora-ribbon { opacity: .24; }
@keyframes aurora-drift-a {
  0% { transform: translate3d(-4%, 0, 0) scaleY(.94); }
  50% { transform: translate3d(3%, 0, 0) scaleY(1.08); }
  100% { transform: translate3d(6%, 0, 0) scaleY(.96); }
}
@keyframes aurora-drift-b {
  0% { transform: translate3d(5%, 0, 0) scaleY(1.04); }
  50% { transform: translate3d(-4%, 0, 0) scaleY(.90); }
  100% { transform: translate3d(-2%, 0, 0) scaleY(1.06); }
}
.snow-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.snow-accum { z-index: 4; }
.snow-fx { z-index: 4; }
body:not(.intro-play):not(.intro-done) .snow-canvas { opacity: 0; }
body.intro-play:not(.intro-done) .snow-canvas { animation: intro-walker .75s ease-out .40s both; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; border-radius: 2px; }
::selection { color: white; background: #456a8c; }
[hidden] { display: none !important; }
.page { width: min(565px, 100%); position: relative; z-index: 2; }
.page header { margin-bottom: 28px; }
h1 { font-size: clamp(31px, 2.5vw, 37px); font-weight: 400; line-height: 1.4; letter-spacing: -1.2px; margin: 0 0 10px; }
.name { position: relative; border: 0; background: none; padding: 0 6px; letter-spacing: inherit; line-height: 1.16; margin-left: 1px; transition: background .2s; }
.name:hover { background: #f1f5f9; }
.name:active { background: #e3ecf4; }
.name-frame { position: absolute; inset: 0; border: 1px solid #7895b6; pointer-events: none; transition: box-shadow .2s; }
.name:hover .name-frame, .name:focus-visible .name-frame { box-shadow: 0 0 0 1px #7895b6; }
.corner { position: absolute; width: 5px; height: 5px; border: 1px solid #7895b6; background: white; }
.corner.a { left: -3px; top: -3px; }.corner.b { right: -3px; top: -3px; }.corner.c { left: -3px; bottom: -3px; }.corner.d { right: -3px; bottom: -3px; }
.name-label { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); font: 12px/1.25 Besley, Georgia, serif; letter-spacing: 0; background: #456a8c; color: white; padding: 2px 7px; white-space: nowrap; pointer-events: none; }
.name-label { opacity: 0; transition: opacity .15s, translate .15s; translate: 0 3px; }
.name:hover .name-label, .name:focus-visible .name-label, .name.copied .name-label { opacity: 1; translate: 0 0; }
.location { display: flex; align-items: center; gap: 8px; color: #63665e; font-size: 14px; }
.parliament-icon { width: 28px; height: 26px; color: #5c7c92; flex: none; }
.coordinates { font: 9px/1.3 Besley, Georgia, serif; font-variant-numeric: tabular-nums; display: grid; margin-left: 3px; color: #626a6b; }
.postmark { font: 8.5px/1 Besley, Georgia, serif; letter-spacing: .04em; border: 1px solid #8c9189; padding: 2.5px 4px; transform: rotate(-6deg); margin-left: 2px; }
.weather-stamp {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font: 9.5px/1 Besley, Georgia, serif;
  font-variant-numeric: tabular-nums;
  color: #466882;
  background: #f2f7fb;
  border: 1px solid #b8cbd9;
  border-radius: 3px;
  padding: 3px 6px;
  margin-left: 3px;
  transform: rotate(2.5deg);
  transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
}
.weather-stamp:hover { background: #e7f1f9; border-color: #7ca0bc; color: #2d4d66; transform: rotate(0deg) translateY(-1px); }
.weather-stamp:active { transform: scale(.95); }
.flake-icon { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 1.35; stroke-linecap: round; transition: transform .45s cubic-bezier(.22, .8, .28, 1); }
.weather-stamp:hover .flake-icon { transform: rotate(60deg); }
body[data-weather="squall"] .weather-stamp { background: #e6eff8; border-color: #7a9db8; color: #2b4a63; }
body[data-weather="frost"] .weather-stamp { background: #eef4fc; border-color: #9cb6d4; color: #3d5c80; }
.prose { font-size: clamp(16px, 1.2vw, 17.5px); line-height: 1.85; letter-spacing: -.02em; }
.prose p { margin: 0 0 18px; text-wrap: pretty; }
.prose p:last-child { margin-bottom: 0; }
.prose em { font-style: italic; padding-right: .12em; }
.keep { white-space: nowrap; }
.prose-break { display: block; }
.word { display: inline; position: relative; border: 0; padding: 0; background: none; line-height: inherit; color: inherit; }
.word > span:last-child { background: linear-gradient(var(--line),var(--line)) left calc(100% - 1px)/100% 1px no-repeat; padding-bottom: 3px; transition: color .2s, background .2s; }
.word:hover > span:last-child, .word[aria-expanded=true] > span:last-child { color: var(--blue); background-size: 100% 2px; }
.inline-icon { width: .92em; height: .92em; vertical-align: -.1em; margin-right: 5px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.company img { width: 1.14em; height: 1.14em; object-fit: contain; vertical-align: -.2em; margin-right: 5px; border-radius: 2px; }
.company img[src$='exo.png'] { background: #141819; border-radius: 3px; }
.company img[src$='cat-180.png'] { object-fit: cover; border-radius: 3px; }
.word.company { white-space: nowrap; }
.page, .page header, .prose .fade, .prose .word { transition: opacity .18s ease-out; }
.scenery, .walker-stage { transition: opacity .2s; }
body.peeking .page header, body.peeking .prose .fade,
body.peeking .prose .word:not([aria-expanded=true]) { filter: blur(2.5px); opacity: .36; }
/* Dim full-viewport SVGs & snow canvases cleanly without GPU blur/transition contention during hover glitch! */
body.peeking .scenery, body.peeking .walker-stage { opacity: .24; }
body.peeking .snow-accum, body.lightbox-open .snow-accum { opacity: .18; }
body.peeking .snow-fx, body.lightbox-open .snow-fx { visibility: hidden; }
body.peeking .winter-sky, body.lightbox-open .winter-sky { opacity: .18; }
body.peeking #walker-hit, body.lightbox-open #walker-hit { pointer-events: none; }
body.lightbox-open .page, body.lightbox-open .popup { filter: blur(2.5px); opacity: .36; pointer-events: none; }
body.lightbox-open .scenery, body.lightbox-open .walker-stage { opacity: .22; pointer-events: none; }

/* Popups keep media and controls in normal flow. Geometry is set by place(). */
.popup {
  position: fixed;
  z-index: 10;
  width: 360px;
  max-width: calc(100vw - 32px);
  padding: 18px;
  background: #fff;
  border: 0;
  border-radius: 5px;
  box-shadow: 0 10px 40px #25352b18;
  font: 14px/1.55 Besley, Georgia, serif;
  opacity: 1;
  contain: layout style;
  translate: 0px 0px;
  rotate: 0deg;
  transition: translate .14s ease-out, rotate .14s ease-out;
  transform-origin: var(--origin,50% 100%);
}
.popup:not([hidden]) { will-change: transform, opacity; }
.popup p { margin: 10px 0 0; color: var(--muted); }
.role-popup { width: 430px; }
.cat-popup { width: 340px; }
.photo-stack {
  position: relative;
  height: var(--stack-height,220px);
  width: var(--stack-width,300px);
  max-width: calc(100% - 20px);
  margin: 16px auto 0;
}
.photo-stack.stack-animated {
  transition: width .55s cubic-bezier(.22,.68,.25,1), height .55s cubic-bezier(.22,.68,.25,1);
}
.photo-card {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 5px;
  border: 0;
  padding: 7px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 2px 10px #0002;
  transform: translate(calc(var(--slot)*3px),calc(var(--slot)*-3px)) rotate(calc(var(--slot)*1.5deg));
  z-index: calc(8 - var(--slot));
  transition: transform .55s cubic-bezier(.22,.68,.25,1);
}
.photo-card:not([data-front=true]) { pointer-events: none; }
.photo-media { position: relative; flex: 1 1 0%; width: 100%; min-width: 0; min-height: 0; overflow: hidden; display: block; background: #edeae4; }
.photo-card img, .photo-card video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.photo-card video { pointer-events: none; }
.photo-card .photo-caption { flex: 0 0 auto; display: block; font: 11px/1.35 Besley, Georgia, serif; text-align: center; }
.photo-card[data-front=true]:hover { transform: translateY(-2px) rotate(-.5deg); }
.photo-card:active { scale: .985; }
.photo-controls { position: relative; z-index: 10; display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 8px; font-size: 12px; min-height: 32px; }
.photo-controls button { border: 0; background: none; font-size: 24px; line-height: 1; padding: 4px 12px; transition: transform .15s, color .15s; }
.photo-controls button:hover { color: var(--blue); transform: scale(1.12); }
.photo-controls button:active { transform: scale(.94); }
.role-popup > p { font-size: 12px; line-height: 1.5; }
.role-popup.compact-photo { display: grid; grid-template-columns: minmax(0,1fr) minmax(90px,.8fr); gap: 8px 16px; align-items: center; }
.compact-photo .photo-stack { grid-column: 1; grid-row: 1/3; margin: 10px auto 4px; max-width: calc(100% - 10px); }
.compact-photo > p { grid-column: 2; grid-row: 1; margin: 0; }
.compact-photo .photo-controls { grid-column: 2; grid-row: 2; gap: 0; margin: 0; }
.compact-photo .photo-controls button { padding-inline: 8px; }
.compact-photo .photo-card { transform: translate(calc(var(--slot)*1.5px),calc(var(--slot)*-2px)) rotate(calc(var(--slot)*.7deg)); }
.reveal-sheen-wrap { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; z-index: 12; }
.reveal-sheen {
  position: absolute;
  inset: -12% -24%;
  background: linear-gradient(108deg, transparent 36%, rgba(186, 218, 242, .24) 48%, rgba(255, 255, 255, .62) 52%, transparent 64%);
  will-change: transform, opacity;
  pointer-events: none;
}

/* Full-screen high-resolution Exoskeleton photo viewer with matching background blur. */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: clamp(14px, 3svh, 30px) clamp(14px, 3vw, 36px);
  background: rgba(255, 255, 255, .22);
}
.lightbox-frame {
  position: relative;
  margin: 0;
  display: grid;
  grid-template-rows: auto auto;
  justify-items: center;
  gap: 10px;
  max-width: min(94vw, 1220px);
  max-height: 94svh;
  padding: clamp(10px, 1.5vw, 18px);
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 24px 80px #1f2d2729;
  font: 14px/1.5 Besley, Georgia, serif;
  outline: none;
}
.lightbox-stage {
  position: relative;
  width: var(--lb-w, auto);
  height: var(--lb-h, auto);
  max-width: 100%;
  overflow: hidden;
  border-radius: 3px;
  background: #f5f6f4;
  transition: width .42s cubic-bezier(.22, .72, .24, 1), height .42s cubic-bezier(.22, .72, .24, 1);
}
.lightbox-stage img, .lightbox-stage video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2px;
}
.lightbox-stage video { pointer-events: none; }
.lightbox-stage [hidden], .lightbox-desc[hidden] { display: none; }
/* Hidden on roomy screens where clicking outside dismisses; shown cleanly without a circle on tight viewports. */
.lightbox-close {
  display: none;
  position: absolute;
  top: 4px;
  right: 6px;
  z-index: 2;
  border: 0;
  background: none;
  padding: 2px 8px;
  color: var(--muted);
  font-size: 24px;
  line-height: 1;
  transition: transform .15s, color .15s;
}
.lightbox-close:hover { color: var(--ink); transform: scale(1.1); }
.lightbox.tight .lightbox-frame { padding-top: 38px; }
.lightbox.tight .lightbox-close { display: block; }
@media (max-width: 640px), (max-height: 520px) {
  .lightbox-frame { padding-top: 38px; }
  .lightbox-close { display: block; }
}
.lightbox-meta {
  text-align: center;
  width: max(260px, var(--lb-w, 680px));
  max-width: 100%;
  transition: width .42s cubic-bezier(.22, .72, .24, 1);
}
.lightbox-meta strong { display: block; font-size: 14px; font-weight: 400; color: var(--ink); }
.lightbox-desc { margin: 4px 0 0; font-size: 12px; color: var(--muted); }
.lightbox-controls { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 6px; font-size: 12px; color: var(--muted); }
.lightbox-controls button { border: 0; background: none; font-size: 24px; line-height: 1; padding: 2px 12px; transition: transform .15s, color .15s; }
.lightbox-controls button:hover { color: var(--blue); transform: scale(1.12); }
.lightbox-controls button:active { transform: scale(.94); }
.photo-card[data-front=true] { cursor: zoom-in; }

/* Internet dock. */
.social-popup { width: 250px; background: transparent; box-shadow: none; padding: 15px 16px 28px; }
.social-popup::before { content: ''; position: absolute; inset: -6px -14px -2px; border-radius: 50%; background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(255,255,255,.96) 0%, rgba(255,255,255,.9) 56%, rgba(255,255,255,0) 100%); z-index: -1; pointer-events: none; }
.socials { display: flex; gap: 22px; justify-content: center; align-items: end; }
.socials a { position: relative; display: flex; flex-direction: column; align-items: center; transform: translateY(calc((var(--s,1) - 1)*-12px)) scale(var(--s,1)); transition: transform .14s ease-out; transform-origin: 50% 100%; }
.social-drawing { width: 42px; height: 42px; fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.socials a > span { position: absolute; top: 100%; padding-top: 9px; white-space: nowrap; opacity: 0; font: 12px Besley, Georgia, serif; transition: opacity .15s; }
.socials a:hover > span, .socials a:focus-visible > span { opacity: 1; }

/* Projects and cover shelf. */
.projects-popup { width: 420px; }
.project { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid #eff0ec; transition: transform .2s; }
.project:first-of-type { padding-top: 0; }
.project:last-of-type { border: 0; padding-bottom: 0; }
.project:hover { transform: translateX(3px); }
.project > img, .project > picture, .project-icon { width: 48px; height: 48px; flex: none; object-fit: contain; border-radius: 4px; }
.project > picture img { width: 100%; height: 100%; object-fit: contain; }
.project-icon { display: grid; place-items: center; font-size: 32px; }
.project strong { display: block; font-size: 15px; font-weight: 400; margin-bottom: 3px; }
.project small { font: 11px/1.5 Besley, Georgia, serif; color: #6b5344; background: #f8f1e9; padding: 3px 5px; border-radius: 3px; margin-left: 6px; }
.project > span > span { display: block; color: var(--muted); font-size: 14px; }
.projects-popup.compact { padding: 12px 16px; }
.projects-popup.compact .project { padding: 7px 0; gap: 10px; }
.projects-popup.compact .project:first-of-type { padding-top: 0; }
.projects-popup.compact .project:last-of-type { padding-bottom: 0; }
.projects-popup.compact .project > span > span { font-size: 12px; }
.books-popup { width: 560px; --cover-height: 176px; }
.shelf { display: flex; align-items: flex-end; justify-content: center; gap: 6px; padding: 10px 0 8px; border-bottom: 5px solid #e8e2d8; box-shadow: 0 4px 4px -4px #6d594d55; }
.book { width: 37px; height: var(--cover-height); flex: none; border: 0; padding: 0; position: relative; background: #f3f0e9; overflow: hidden; box-shadow: 1px 2px 5px #0002; transition: width .4s cubic-bezier(.2,.8,.2,1), transform .4s; }
.book img { display: block; height: 100%; width: auto; max-width: none; }
.book:hover, .book:focus-visible, .book.selected { width: var(--cover-width,120px); transform: translateY(-7px); box-shadow: 2px 5px 9px #0002; }
.book-caption { min-height: 64px; text-align: center; padding-top: 14px; }
.book-caption strong { font-size: 14px; font-weight: 400; display: block; line-height: 1.4; }
.book-caption > span { font-size: 12px; color: var(--muted); display: block; margin-top: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.no-js { position: relative; font: 14px/1.7 Besley, Georgia, serif; max-width: 650px; }
.no-js a { text-decoration: underline; }

/* Scenery spans edge-to-edge while keeping the prose visually centered. */
.scenery { position: absolute; bottom: 0; left: 0; right: 0; height: var(--scene-height); pointer-events: none; overflow: hidden; }
.landscape { display: block; position: absolute; bottom: 0; left: 0; width: 100%; height: 100%; max-height: 100%; overflow: visible; }
.landscape path, .landscape circle { vector-effect: non-scaling-stroke; }
.clouds { animation: cloud-drift 35s ease-in-out infinite alternate; }
.river { animation: river-drift 16s ease-in-out infinite alternate; }
.signal { stroke-dasharray: 22 700; animation: signal-travel 10s linear infinite; }
.hill-flag { transform-origin: 1012px 18px; animation: flag-wave 2.4s ease-in-out infinite alternate; }
.pine-tree { transform-origin: 0px 0px; transform: skewX(var(--wind-tilt, 0deg)); }
.lamp-halo, .chalet-glow { animation: lamp-breathe 4.2s ease-in-out infinite alternate; }
.skater-scarf { animation: scarf-bob .7s ease-in-out infinite alternate; }
@keyframes cloud-drift { to { transform: translateX(35px); } }
@keyframes river-drift { to { transform: translateX(36px); } }
@keyframes signal-travel { to { stroke-dashoffset: -722; } }
@keyframes flag-wave { to { transform: scaleX(.84) skewY(8deg); } }
@keyframes lamp-breathe { from { opacity: .84; } to { opacity: 1; } }
@keyframes scarf-bob { from { transform: translateY(0px); } to { transform: translateY(-1.2px); } }
body.paused .scenery *, body.peeking .scenery *, body:not(.intro-done) .scenery *,
body.paused .winter-sky *, body.peeking .winter-sky * { animation-play-state: paused !important; }
@media (max-width:600px) {
  :root { --scene-height: clamp(104px, 16svh, 144px); }
  body { padding-inline: 25px; }
  h1 { font-size: 32px; }
  .location { font-size: 13px; gap: 7px; }
  .coordinates { font-size: 8px; }
  .prose { font-size: 16px; }
  .prose-break { display: none; }
  .prose-break + .fade::before { content: ' '; }
  .popup { padding: 16px; }
  .books-popup { --cover-height: 140px; }
  .shelf { gap: 3px; }
  .book { width: 22px; }
  .book-caption strong { font-size: 12px; }
  .book-caption > span { font-size: 11px; }
  .landscape { left: 50%; width: 900px; transform: translateX(-62%); }
}
@media (max-height:760px) and (min-width:601px) {
  body { padding-top: clamp(22px, 4svh, 40px); padding-bottom: calc(var(--scene-height) * 0.78 + clamp(22px, 4svh, 40px)); }
  .page header { margin-bottom: 22px; }
  .prose { font-size: 16.5px; line-height: 1.8; }
  .prose p { margin-bottom: 15px; }
  h1 { font-size: 34px; }
}
@media (max-height:620px) and (min-height:461px) {
  :root { --scene-height: clamp(92px, 18svh, 118px); }
  body { padding-top: 22px; padding-bottom: calc(var(--scene-height) * 0.82 + 22px); }
}
/* Keep headline inline-block box stable before & after intro-done so kerning never jumps. */
.intro-sweep, .name-text { display: inline-block; padding: .16em 0; margin: -.16em 0; }
.intro-sweep { white-space: pre; }
/* Opening entrance choreography: Ottawa-palette ink sweep, frame draw + corner pop,
   prose unfog, and scenery arrival. Held at rest until body.intro-play (after Besley
   is decoded and initial paint settles) and detached cleanly via body.intro-done. */
body:not(.intro-done) .intro-sweep,
body:not(.intro-done) .name-text {
  background-image: linear-gradient(90deg, var(--ink) 0 33.4%, #3c6c8f 40%, #6b9cb2 48%, #c95642 56%, #d89a42 62%, transparent 66.6% 100%);
  background-size: 300% 100%;
  background-repeat: no-repeat;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
body:not(.intro-play):not(.intro-done) .name-frame { clip-path: inset(-6px 100% 100% -6px); }
body:not(.intro-play):not(.intro-done) .name-frame .corner { transform: scale(0); }
body:not(.intro-play):not(.intro-done) .location,
body:not(.intro-play):not(.intro-done) .prose p,
body:not(.intro-play):not(.intro-done) .scenery,
body:not(.intro-play):not(.intro-done) .walker-stage { opacity: 0; }
body.intro-play:not(.intro-done) .intro-sweep { will-change: background-position; animation: intro-ink .52s cubic-bezier(.38, 0, .52, 1) both; }
body.intro-play:not(.intro-done) .name-text { will-change: background-position; animation: intro-ink .52s cubic-bezier(.38, 0, .52, 1) .15s both; }
body.intro-play:not(.intro-done) .name-frame { animation: intro-frame .4s cubic-bezier(.3, 0, .2, 1) .52s both; }
body.intro-play:not(.intro-done) .name-frame .corner { animation: intro-corner .22s cubic-bezier(.3, 1.6, .5, 1) .86s both; }
body.intro-play:not(.intro-done) .location { will-change: opacity, filter, translate; animation: intro-unfog .56s cubic-bezier(.2, .75, .2, 1) .26s both; }
body.intro-play:not(.intro-done) .prose p { will-change: opacity, filter, translate; animation: intro-unfog .54s cubic-bezier(.2, .75, .2, 1) both; }
body.intro-play:not(.intro-done) .prose p:nth-child(1) { animation-delay: .32s; }
body.intro-play:not(.intro-done) .prose p:nth-child(2) { animation-delay: .39s; }
body.intro-play:not(.intro-done) .prose p:nth-child(3) { animation-delay: .46s; }
body.intro-play:not(.intro-done) .prose p:nth-child(4) { animation-delay: .53s; }
body.intro-play:not(.intro-done) .prose p:nth-child(5) { animation-delay: .6s; }
body.intro-play:not(.intro-done) .scenery { will-change: opacity, translate; animation: intro-scenery .68s cubic-bezier(.2, .75, .2, 1) .34s both; }
body.intro-play:not(.intro-done) .walker-stage { animation: intro-walker .5s ease-out .46s both; }
@keyframes intro-ink { from { background-position: 100% 0; } to { background-position: 0% 0; } }
@keyframes intro-frame { from { clip-path: inset(-6px 100% 100% -6px); } to { clip-path: inset(-6px -6px -6px -6px); } }
@keyframes intro-corner { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes intro-unfog { from { opacity: 0; filter: blur(4px); translate: 0 7px; } to { opacity: 1; filter: blur(0); translate: 0 0; } }
@keyframes intro-scenery { from { opacity: 0; translate: 0 18px; } to { opacity: 1; translate: 0 0; } }
@keyframes intro-walker { from { opacity: 0; } to { opacity: 1; } }

/* Interactive stickman overlay shares body's coordinate frame with .scenery so pinch-zoom
   and scrolling keep the stickman locked to the sidewalk while still draggable anywhere. */
.walker-stage { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; overflow: visible; }
.walker-stage path, .walker-stage circle { vector-effect: non-scaling-stroke; }
#walker-hit { pointer-events: auto; cursor: grab; touch-action: none; }
body.dragging-walker { cursor: grabbing !important; user-select: none; -webkit-user-select: none; }
body.dragging-walker .walker-stage { z-index: 15; }
body.dragging-walker #walker-hit { cursor: grabbing; }
@media (max-height:460px) {
  body { padding: 32px 25px; }
  .scenery, .walker-stage, .snow-canvas { display: none; }
}
@media (prefers-reduced-motion:reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .intro-sweep, .name-text { color: inherit !important; background: none !important; }
  .name-frame { clip-path: none !important; }
  .popup { translate: none !important; rotate: none !important; }
  .pixel-reveal { display: none; }
  #walker-hit { pointer-events: none; cursor: default; }
}
