:root {
  --ink: #211f1c;
  --muted: #625e57;
  --paper: #faf9f6;
  --surface: #efede6;
  --line: #dcd8ce;
  --orange: #b53512;
  --bright: #fd662e;
  --dark: #1d1b19;
  --sans: Inter, "Helvetica Neue", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  --heading: "Momo Trust Sans", "Helvetica Neue", "PingFang TC", "Microsoft JhengHei", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 78px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.7 var(--sans); }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--orange); }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--orange); outline-offset: 5px; }
.wrap { width: min(1180px, calc(100% - 96px)); margin-inline: auto; }
.skip { position: fixed; z-index: 8; inset: 10px auto auto 10px; transform: translateY(-150%); padding: 10px; background: white; }
.skip:focus { transform: none; }
.reading-progress { position: fixed; z-index: 7; inset: 0 auto auto 0; width: 100%; height: 2px; background: var(--bright); transform: scaleX(0); transform-origin: left; }
.site-header { position: sticky; top: 0; z-index: 6; background: var(--paper); border-bottom: 1px solid var(--line); }
nav { min-height: 66px; display: flex; align-items: center; justify-content: space-between; }
.wordmark { font-size: 14px; font-weight: 700; letter-spacing: .1em; }
.nav-links, .jump-links { display: flex; flex-wrap: wrap; gap: 20px; font-size: 14px; }
.hero { display: grid; grid-template-columns: 1.12fr 1fr; min-height: clamp(550px, 75svh, 750px); background: var(--dark); color: #fbf9f4; }
.hero-inner { width: auto; margin: auto 0; padding: 62px clamp(24px, 5vw, 96px) 65px max(48px, calc((100vw - 1180px) / 2)); animation: arrive .58s ease-out both; }
.kicker { display: block; margin: 0 0 11px; color: var(--orange); font-size: 12px; font-weight: 650; letter-spacing: .08em; }
.hero .kicker { color: #ded6c9; }
h1, h2, h3 { margin: 0; font-family: var(--heading); font-weight: 400; line-height: 1.12; }
h1 { font-size: clamp(55px, 6.5vw, 94px); letter-spacing: -.035em; }
h1 span { display: block; margin-top: 8px; font-size: .64em; letter-spacing: -.045em; line-height: 1.04; }
.hero-bottom { margin-top: 23px; }
.hero-bottom p { max-width: 42ch; margin: 0; color: #ddd7cd; }
.hero-bottom .hero-role { color: #fffaf3; font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.hero-link { display: inline-flex; align-items: center; gap: 24px; padding: 9px 15px; border-radius: 3px; background: var(--bright); color: #20140b; font-size: 14px; font-weight: 700; }
.hero-link { margin-top: 22px; }
.hero-link:hover { background: #ff8c60; color: #20140b; }
.hero a:focus-visible { outline-color: #fff6ee; }
.hero-figure { min-width: 0; margin: 0; padding: clamp(23px, 5vw, 72px); display: flex; flex-direction: column; justify-content: center; background: #dfd8c7; color: var(--ink); }
.hero-photo { display: block; width: 100%; aspect-ratio: 1.38; object-fit: cover; filter: saturate(.67); animation: arrive .75s ease-out both; }
.hero-figure figcaption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 16px; padding-top: 12px; font-size: 13px; }
.hero-figure figcaption span { color: #545047; }
.work, .secondary, .about { padding-block: 76px; }
.section-title { display: flex; align-items: end; justify-content: space-between; gap: 16px; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
h2 { font-size: clamp(35px, 4.8vw, 59px); letter-spacing: -.03em; }
h3 { font-size: clamp(28px, 3.8vw, 47px); letter-spacing: -.025em; }
.jump-links { padding-bottom: 4px; color: var(--muted); }
.feature { display: grid; grid-template-columns: 1.02fr 1fr; align-items: center; gap: clamp(25px, 7vw, 96px); padding-block: 43px; border-bottom: 1px solid var(--line); }
.feature:nth-child(even) .feature-text { order: 1; }
.feature dl { margin: 23px 0 0; }
.feature dt { font-weight: 650; margin-top: 12px; }
.feature dd { margin: 3px 0 0; max-width: 46ch; color: var(--muted); }
.feature-visual { min-width: 0; border: 1px solid var(--line); background: #fff; }
.artwork { margin: 0; padding: 22px; display: grid; place-items: center; background: var(--surface); }
.artwork img { max-width: 100%; height: clamp(175px, 26vw, 300px); object-fit: contain; box-shadow: 0 5px 17px #211f1c21; }
.result { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding: 15px 20px; border-top: 1px solid var(--line); }
.result strong { font-family: var(--heading); font-size: clamp(34px, 5vw, 64px); font-weight: 500; line-height: 1; letter-spacing: -.055em; color: var(--orange); }
.result span { font-size: 14px; color: var(--muted); }
.ticket-evidence { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; padding: 12px; background: var(--surface); }
.ticket-shot { display: grid; align-content: start; gap: 7px; min-width: 0; padding: 6px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font: 13px/1.35 var(--sans); text-align: start; cursor: zoom-in; }
.ticket-shot img { width: 100%; aspect-ratio: .53; object-fit: contain; object-position: top; background: #ebe8e1; }
.ticket-shot:hover { border-color: var(--orange); color: var(--orange); }
.ticket-shot:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.ticket-enlarged img { max-height: 70dvh; }
.secondary { background: var(--surface); }
.stack-layout { display: grid; grid-template-columns: 1.34fr 1fr; gap: clamp(18px, 4vw, 56px); align-items: center; padding-top: 24px; }
.stack-scene { min-width: 0; position: relative; overflow: hidden; display: grid; place-items: center; min-height: clamp(390px, 48vw, 590px); border: 1px solid var(--line); background: radial-gradient(ellipse at center, #faf8f0, #e5e0d4); }
.stack-scene::before { content: ""; position: absolute; inset: 0; opacity: .35; pointer-events: none; background: radial-gradient(circle, #a9a195 1px, transparent 1px) 0 0/14px 14px; mask-image: radial-gradient(ellipse, #000, transparent 75%); }
.gallery { --depth: 1; --layer-step: clamp(-42px, -4vw, -34px); position: relative; width: min(73%, 380px); aspect-ratio: 1.55; perspective: 950px; }
.gallery-card { position: absolute; inset: 0; transform: translateY(calc((var(--layer) - 3) * var(--depth) * var(--layer-step))) rotateX(calc(var(--depth) * 52deg)) rotateZ(calc(var(--depth) * -28deg)); transition: transform .28s cubic-bezier(.22,.65,.32,1); }
.gallery-card:is(:hover,.is-highlighted) { transform: translateY(calc((var(--layer) - 3) * var(--depth) * var(--layer-step) - 12px)) rotateX(calc(var(--depth) * 52deg)) rotateZ(calc(var(--depth) * -28deg)); }
.gallery-trigger { display: grid; grid-template-columns: 1fr .65fr; grid-template-rows: minmax(0, 1fr) auto; width: 100%; height: 100%; padding: 0; border: 1px solid #c8c0b1; border-radius: 7px; overflow: hidden; text-align: start; color: var(--ink); background: #fffcf5; font: inherit; cursor: pointer; box-shadow: 0 14px 22px -11px #3c32246b; }
.gallery-card:nth-child(even) .gallery-trigger { background: #f1ece0; }
.gallery-card:is(:hover,.is-highlighted) .gallery-trigger { border-color: var(--orange); box-shadow: 0 17px 25px -8px #6f361b85; }
.gallery-media { grid-column: 2; grid-row: 1; position: relative; min-width: 0; min-height: 0; display: grid; place-items: center; padding: 11px; overflow: hidden; background: #e5dfd3; }
.gallery-media img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.gallery-arrow { position: absolute; right: 6px; top: 3px; color: var(--orange); }
.gallery-graphic { display: grid; text-align: center; font-size: 11px; }
.gallery-graphic strong { color: var(--orange); font-size: clamp(13px, 2vw, 24px); line-height: 1.2; }
.gallery-copy { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; justify-content: center; min-width: 0; gap: 6px; padding: 13px; }
.gallery-copy .kicker { margin: 0; font-size: 10px; letter-spacing: 0; }
.gallery-title { font-size: clamp(12px, 1.65vw, 21px); font-weight: 750; line-height: 1.25; }
.gallery-result { color: var(--orange); font-weight: 650; font-size: 14px; }
.gallery-copy .gallery-result { font-size: clamp(9px, 1.05vw, 13px); line-height: 1.35; }
.stack-index { display: grid; min-width: 0; }
.stack-link { display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 0; border-bottom: 1px solid #cdc7b9; padding: 10px 6px; background: transparent; color: var(--ink); text-align: start; font: inherit; cursor: pointer; }
.stack-link:hover, .stack-link:focus-visible { color: var(--orange); background: #fffcf5; }
.stack-link:focus-visible, .dialog-close:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.stack-result { display: block; color: #4c4942; font-size: 13px; line-height: 1.5; }
.project-dialog { width: min(720px, calc(100% - 34px)); max-height: 90dvh; padding: 0; border: 1px solid var(--line); color: var(--ink); background: var(--paper); }
.project-dialog[open] { animation: arrive .3s ease-out both; }
.project-dialog::backdrop { background: #211f1cb8; }
.dialog-close { position: absolute; right: 12px; top: 12px; z-index: 1; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); color: var(--ink); cursor: pointer; font-size: 23px; line-height: 1; }
.dialog-copy { padding: 26px 58px 16px 24px; }
.dialog-copy p { margin: 10px 0; }
.dialog-media { display: grid; place-items: center; margin: 0; padding: 18px; background: var(--surface); }
.dialog-media img { display: block; max-width: 100%; max-height: 52vh; object-fit: contain; }
.about { display: grid; grid-template-columns: 1fr 1.4fr; align-items: start; gap: 45px; }
.about .section-title { border: 0; }
.about p { margin: 0 0 11px; color: var(--muted); }
@keyframes arrive { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (max-width: 760px) {
  .wrap { width: calc(100% - 36px); }
  .hero, .feature, .about { grid-template-columns: 1fr; }
  .hero-inner { padding: 42px 18px 34px; }
  .hero-figure { padding: 20px 18px; }
  .hero-photo { aspect-ratio: 1.8; }
  .section-title { align-items: flex-start; flex-direction: column; }
  .work, .secondary, .about { padding-block: 42px; }
  .feature { padding-block: 28px; gap: 18px; }
  .feature:nth-child(even) .feature-text { order: 0; }
  .about { gap: 4px; }
  .stack-layout { grid-template-columns: 1fr; }
  .stack-scene { min-height: 365px; }
  .nav-links { gap: 12px; }
}
@media (max-width: 440px) {
  .stack-scene { min-height: 340px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  --sans: Inter, "Huninn", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  --heading: "Momo Trust Sans", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --muted: #4f4b44;
}
h1, h2, h3 { font-weight: 750; line-height: 1.2; }
h1 span { font-weight: 400; }
.stack-link strong, .gallery-title { font-family: var(--heading); }

#ansheles .feature-text {
  min-width: 0;
  container-type: inline-size;
}
#ansheles h3 {
  font-size: min(47px, 7.9cqi);
  white-space: nowrap;
}

.layer-label {
  grid-column: 1 / -1;
  grid-row: 2;
  z-index: 1;
  padding: 5px 12px;
  border-top: 1px solid #d5ccbd;
  background: #fffcf5;
  color: #211f1c;
  font: 750 clamp(13px, 1.65vw, 19px)/1.25 var(--heading);
  white-space: nowrap;
}
.gallery-card:nth-child(even) .layer-label { background: #f1ece0; }
.gallery-card:is(:hover,.is-highlighted) .layer-label { background: #f9e2d0; color: #79270d; }
@media (max-width: 440px) {
  .stack-scene { min-height: 385px; }
}

/* Pixel-art fields and hand-drawn framing. */
:root {
  --ink: #29243b;
  --paper: #fff8e8;
  --surface: #e8f5e3;
  --line: #cbbb9e;
  --orange: #8e3556;
  --bright: #ffd36f;
  --dark: #322747;
}
body { background: var(--paper); color: var(--ink); }
.site-header { background: #fff8e8f5; border-bottom: 2px solid var(--ink); }
.wordmark { letter-spacing: .09em; }
.wordmark::before {
  content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 9px;
  background: #a3cb8c; border: 2px solid var(--ink); box-shadow: 2px 2px var(--ink);
}
.reading-progress { height: 4px; background: #d85e81; }
.hero {
  min-height: min(690px, 83svh); grid-template-columns: 1fr 1.07fr; align-items: center;
  gap: clamp(20px, 4vw, 56px); padding: 38px max(40px, calc((100vw - 1240px)/2)) 52px;
  color: var(--ink); background: #fae2da; border-bottom: 2px solid var(--ink);
  background-image: radial-gradient(#ba8b883c 1px, transparent 1px);
  background-size: 15px 15px;
}
.hero-inner { width: auto; padding: 0; }
.hero .kicker, .hero-bottom .hero-role { color: var(--ink); }
.hero-bottom p { color: #514658; }
.hero h1 span { color: #77345c; }
.hero-link, .world-actions button {
  border: 2px solid var(--ink); border-radius: 5px 8px 4px 7px;
  box-shadow: 3px 4px var(--ink); transition: transform .18s, box-shadow .18s, background .18s;
}
.hero-link:hover, .world-actions button:hover {
  background: #ffe896; transform: translate(-2px, -3px); box-shadow: 5px 7px var(--ink);
}
.hero-link:active, .world-actions button:active { transform: translate(3px, 4px); box-shadow: none; }
.hero a:focus-visible { outline-color: var(--orange); }
.pixel-world {
  width: 100%; min-width: 0; align-self: center; overflow: hidden; border: 2px solid var(--ink);
  border-radius: 8px 4px 10px 5px; background: #bceafa; box-shadow: 7px 8px var(--ink);
  animation: world-in .65s cubic-bezier(.17,.9,.35,1.12) both;
}
#pixel-scene { display: block; width: 100%; height: auto; image-rendering: pixelated; }
.world-actions {
  display: flex; flex-wrap: wrap; gap: 10px; padding: 11px 12px 15px;
  background: #fff8e8; border-top: 2px solid var(--ink);
}
.world-actions button { background: #d4ebc5; color: var(--ink); padding: 5px 9px; font: 600 13px/1.4 var(--sans); cursor: pointer; }
.world-actions button + button { background: #e5daf7; }
.world-actions button:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; }
.section-title { border-bottom: 2px solid var(--ink); }
.section-title h2::after {
  content: ""; display: inline-block; vertical-align: middle; margin-inline-start: .3em;
  width: .19em; height: .19em; background: #e3879b; box-shadow: .14em -.14em #f4bf64;
}
.feature-visual {
  border: 2px solid var(--ink); border-radius: 6px 11px 5px 9px;
  box-shadow: 5px 6px #29243b; overflow: hidden;
}
.feature:nth-child(2) .artwork { background: #e4dbfa; }
.feature:nth-child(3) .artwork { background: #f9dfca; }
.ticket-shot { border: 1px solid #8a846e; border-radius: 3px; transition: transform .2s, box-shadow .2s; }
.ticket-shot:hover { transform: translateY(-3px); box-shadow: 2px 4px #29243b55; }
.result { border-color: #29243b88; background: #fff3d0; }
.secondary {
  border-block: 2px solid var(--ink); background: #e4f0d9;
  background-image: linear-gradient(#6f8d6b16 1px, transparent 1px), linear-gradient(90deg, #6f8d6b16 1px, transparent 1px);
  background-size: 22px 22px;
}
.stack-scene { border: 2px solid var(--ink); border-radius: 9px 4px 12px 6px; background: radial-gradient(ellipse at center, #fff7db, #f0dcb6); box-shadow: 5px 6px var(--ink); }
.gallery-trigger { border-color: #5e486c; border-radius: 4px 9px 4px 7px; background: #fff1ca; }
.gallery-card:nth-child(even) .gallery-trigger { background: #f2e6fc; }
.gallery-media { background: #d8e9ce; }
.layer-label { background: #fff1ca; border-color: #8e745a; }
.gallery-card:nth-child(even) .layer-label { background: #f2e6fc; }
.gallery-card:is(:hover,.is-highlighted) .layer-label { background: #ffd36f; color: #29243b; }
.stack-link { border-color: #879778; transition: transform .2s, background .2s; }
.stack-link:is(:hover,:focus-visible) { background: #fff1ca; transform: translateX(4px); }
.project-dialog { border: 2px solid var(--ink); border-radius: 9px 5px 11px 5px; box-shadow: 6px 7px var(--ink); }
.project-dialog[open] { animation: world-in .35s cubic-bezier(.17,.9,.35,1.12) both; }
.about-photo { max-width: 380px; margin: 22px 0 0; padding: 8px; background: #fffdf4; border: 2px solid var(--ink); box-shadow: 4px 4px var(--ink); transform: rotate(-1.5deg); }
.about-photo img { width: 100%; height: auto; display: block; }
.about-photo figcaption { display: flex; justify-content: space-between; gap: 9px; padding: 6px 2px 0; font-size: 12px; }
@keyframes world-in {
  from { opacity: 0; transform: translateY(22px) scale(.97) rotate(-1deg); }
  to { opacity: 1; transform: none; }
}
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding: 30px 18px 38px; gap: 24px; min-height: auto; }
  .hero h1 { font-size: clamp(51px, 11vw, 69px); }
  .pixel-world, .stack-scene { box-shadow: 4px 5px var(--ink); }
}
@media (prefers-reduced-motion: reduce) {
  .stack-link:is(:hover,:focus-visible), .ticket-shot:hover { transform: none; }
}

#more {
  --ink: #292846;
  --orange: #51439a;
  --line: #dcd6f4;
  background: var(--paper);
  border-block: 1px solid var(--line);
}
#more .section-title { border-color: var(--line); }
#more .section-title h2::after { background: #a58ae8; box-shadow: .14em -.14em #ffc1d9; }
#more .stack-scene {
  border: 1px solid #cfc1f5;
  border-radius: 12px;
  background: radial-gradient(ellipse at 22% 22%, #fffaff, transparent 53%),
              radial-gradient(ellipse at 81% 76%, #e2d3ff, #edf3ff 72%);
  box-shadow: inset 0 1px #fff, 0 10px 24px #50369d16;
}
#more .stack-scene::before { opacity: .16; }
#more .gallery-trigger {
  background: linear-gradient(145deg, #fffffff0, #e8f3efb8 62%, #cbded7b3);
  border: 1px solid #ffffffeb;
  border-radius: 8px;
  box-shadow: inset 0 1px 1px #ffffffeb, 0 8px 14px -6px #47308054;
  backdrop-filter: blur(5px);
}
#more .gallery-media { background: #d7e6e267; }
#more .gallery-media img { filter: saturate(.42); }
#more .layer-label { background: #f7fcfaad; border-color: #a5c0b88c; color: var(--ink); }
#more .gallery-card:is(:hover,.is-highlighted) .gallery-trigger {
  border-color: #74a198;
  box-shadow: inset 0 1px 1px #fff, 0 12px 17px -6px #47308063;
}
#more .gallery-card:is(:hover,.is-highlighted) .layer-label { background: #cce5dcdb; color: #1e4841; }
#more .stack-link { border-color: var(--line); }
#more .stack-link:is(:hover,:focus-visible) { background: #dbeae4; }
#more .stack-result { color: #514c6b; }

#more .section-title { position: relative; }
.flower-patch {
  display: flex;
  align-items: flex-end;
  gap: 11px;
  padding-inline: 9px;
  pointer-events: none;
  border-bottom: 1px solid #92aa88;
}
.flower-patch-heading { position: absolute; bottom: -1px; right: 0; }
.flower-patch-corner { position: absolute; bottom: 10px; left: 9px; gap: 9px; transform: scale(.74); transform-origin: bottom left; }
.flower-patch i {
  --bloom: #cb7c96;
  --stem-height: 27px;
  --grow-delay: 0ms;
  position: relative;
  width: 2px;
  height: var(--stem-height);
  margin: 0 2px;
  border-radius: 2px 2px 0 0;
  background: #73906d;
  transform-origin: bottom;
}
.flower-patch i:nth-child(2) { --bloom: #dfad64; --stem-height: 39px; --grow-delay: 115ms; }
.flower-patch i:nth-child(3) { --bloom: #cca1ca; --stem-height: 23px; --grow-delay: 230ms; }
.flower-patch i:nth-child(4) { --bloom: #dc947e; --stem-height: 33px; --grow-delay: 345ms; }
.flower-patch i:nth-child(5) { --bloom: #9c9bc9; --stem-height: 18px; --grow-delay: 460ms; }
.flower-patch i::before {
  content: "";
  position: absolute;
  top: -3px;
  left: -1px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fff0bf;
  box-shadow: -3px -2px 0 1px var(--bloom), 3px -2px 0 1px var(--bloom),
              -2px 2px 0 1px var(--bloom), 2px 2px 0 1px var(--bloom);
}
.flower-patch i::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: -4px;
  width: 6px;
  height: 4px;
  border-radius: 0 75%;
  background: #92aa7f;
  transform: rotate(22deg);
}
.flower-patch.is-growing i {
  animation: flower-grow .56s cubic-bezier(.2,.7,.3,1.25) var(--grow-delay) both;
}
@keyframes flower-grow {
  from { transform: scaleY(.08) rotate(-7deg); opacity: .25; }
  to { transform: scaleY(1) rotate(0); opacity: 1; }
}
@media (max-width: 420px) {
  .flower-patch-heading { transform: scale(.78); transform-origin: bottom right; }
  .flower-patch-corner { display: none; }
}

#more [data-tint="green"] { --tint: #a7e4ff; --edge: #76c7f4; --stripe: #3888bf; }
#more [data-tint="lilac"] { --tint: #d0b9ff; --edge: #af8be9; --stripe: #8258bf; }
#more [data-tint="peach"] { --tint: #ffc3d9; --edge: #ee90bc; --stripe: #bd5087; }
#more .gallery-card[data-tint] .gallery-trigger {
  background: linear-gradient(150deg, #fffffff0, color-mix(in srgb, var(--tint) 72%, transparent));
  border-color: color-mix(in srgb, var(--edge) 48%, white);
}
#more .gallery-card[data-tint] .gallery-media {
  background: color-mix(in srgb, var(--tint) 45%, transparent);
}
#more .gallery-card[data-tint] .layer-label {
  background: color-mix(in srgb, var(--tint) 82%, #fff 18%);
  border-color: color-mix(in srgb, var(--edge) 65%, transparent);
}
#more .gallery-card[data-tint]:is(:hover,.is-highlighted) .gallery-trigger { border-color: var(--stripe); }
#more .gallery-card[data-tint]:is(:hover,.is-highlighted) .layer-label { background: var(--tint); }
#more .stack-link[data-tint] { border-inline-start: 0; padding-inline-start: 17px; position: relative; }
#more .stack-link[data-tint]:is(:hover,:focus-visible) { background: color-mix(in srgb, var(--tint) 52%, transparent); }

#more .stack-link[data-tint]::before {
  content: "";
  position: absolute;
  inset-inline-start: 2px;
  top: 16px;
  width: 7px;
  height: 7px;
  border: 1px solid var(--stripe);
  border-radius: 2px;
  background: var(--tint);
  transform: rotate(-9deg);
}
#more .flower-patch i { --bloom: #ed8eb6; }
#more .flower-patch i:nth-child(2) { --bloom: #8acdf5; }
#more .flower-patch i:nth-child(3) { --bloom: #b796ed; }
#more .flower-patch i:nth-child(4) { --bloom: #f197bb; }
#more .flower-patch i:nth-child(5) { --bloom: #a18de9; }

.world-guide { border-top: 2px solid var(--ink); background: var(--paper); padding-bottom: 13px; }
.world-guide .world-actions { border-top: 0; padding-bottom: 8px; }
.world-guide .world-actions button { background: #fff8ee; box-shadow: 2px 2px var(--ink); }
.world-guide .world-actions button[aria-pressed="true"] { background: #ffd684; }
#guide-summary, #guide-link { margin: 0 14px; font-size: 14px; }
#guide-link { display: inline-block; text-decoration: underline; text-underline-offset: 3px; color: #703657; }

.growth-chart { margin: 0; padding: 14px 12px 8px; background: #f2eaff; }
.growth-chart figcaption { font-weight: 700; padding-inline: 5px; }
.growth-chart svg { display: block; width: 100%; height: auto; }
.growth-grid { fill: none; stroke: #d6c5e8; }
.growth-ticks { fill: #5e496f; font-size: 10px; }
.growth-area { fill: url(#growth-wash); }
.growth-trend { fill: none; stroke: #7847a3; stroke-width: 3; stroke-dasharray: 5 6; stroke-linecap: round; }
.growth-points { fill: #7847a3; stroke: #fff; stroke-width: 1.7; }
.growth-values { fill: #563280; font-size: 14px; font-weight: 700; }

.growth-pair {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  align-items: stretch;
  background: #faf5ff;
}
.growth-pair .artwork { min-width: 0; padding: 9px; }
.growth-pair .artwork img { max-width: 100%; height: auto; max-height: 255px; }
.growth-pair .growth-chart { min-width: 0; display: grid; align-content: center; padding: 8px 4px; }
.growth-pair .growth-chart figcaption { font-size: 13px; }
@media (max-width: 420px) {
  .growth-pair { grid-template-columns: 1fr; }
  .growth-pair .artwork img { max-height: 200px; }
}
.growth-runner { opacity: 0; fill: #7950b5; stroke: white; stroke-width: 2; }
.growth-halo { fill: #c699f1; fill-opacity: .43; }
.growth-chart.is-playing .growth-window { animation: growth-draw 1.55s cubic-bezier(.25,.65,.35,1) both; }
.growth-chart.is-playing .growth-runner { animation: growth-follow 1.55s cubic-bezier(.25,.65,.35,1) both; }
.growth-chart.is-playing .growth-end { animation: growth-point .35s ease-out 1.52s both; }
@keyframes growth-draw { from { width: 0; } to { width: 242px; } }
@keyframes growth-follow {
  0% { transform: translate(0, 0); opacity: 1; }
  99% { opacity: 1; }
  100% { transform: translate(242px, -114.38px); opacity: 0; }
}
@keyframes growth-point { from { opacity: 0; } to { opacity: 1; } }

.contact { background: #fae2da; color: var(--ink); border-top: 2px solid var(--ink); }
.contact-inner {
  display: grid; grid-template-columns: 1fr minmax(0, 320px); align-items: center;
  gap: clamp(24px, 8vw, 120px); padding-block: clamp(42px, 7vw, 90px);
}
.contact-copy p { margin: 12px 0 18px; color: #514658; }
.contact-nav { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 6px 18px; min-height: 0; margin-top: 26px; font-size: 14px; }
.contact-nav a { text-decoration: underline; text-underline-offset: 3px; }
.contact-postcard {
  margin: 0; padding: 8px; background: #fff9ed; border: 2px solid var(--ink);
  border-radius: 7px 11px 5px 8px; box-shadow: 5px 5px var(--ink);
  transform: rotate(2deg); transition: transform .3s ease, box-shadow .3s ease;
}
.contact-postcard:hover { transform: translateY(-4px) rotate(0); box-shadow: 5px 9px var(--ink); }
.postcard-garden { position: relative; isolation: isolate; height: clamp(190px, 25vw, 250px); overflow: hidden; border: 1px solid var(--ink); background: linear-gradient(#c4ecfa 77%, #a9ce91 77%); }
.postcard-garden::before {
  content: ""; position: absolute; inset: 43% 0 19%; z-index: -1; background: #b2d3a5;
  clip-path: polygon(0 33%, 9% 33%, 9% 21%, 19% 21%, 19% 36%, 33% 36%, 33% 50%, 48% 50%, 48% 36%, 60% 36%, 60% 25%, 70% 25%, 70% 10%, 82% 10%, 82% 29%, 94% 29%, 94% 44%, 100% 44%, 100% 100%, 0 100%);
}
.postcard-sun { position: absolute; top: 16%; right: 17%; width: 23px; aspect-ratio: 1; background: #ffd36f; }
.postcard-cloud { position: absolute; top: 29%; left: 10%; width: 47px; height: 10px; background: #fff8e8; }
.postcard-cloud::before { content: ""; position: absolute; left: 10px; bottom: 100%; width: 24px; height: 8px; background: inherit; }
.postcard-cloud-small { top: 43%; left: auto; right: 9%; transform: scale(.65); }
.postcard-garden img { position: absolute; height: 85%; width: auto; bottom: 8%; left: 50%; transform: translateX(-50%); }
.postcard-flowers { position: absolute; bottom: 6%; left: 6px; border: 0; gap: 5px; }
.contact-postcard figcaption { padding: 8px 2px 2px; text-align: center; font-size: 14px; }
.portfolio-footer {
  padding-block: 16px 12px; color: #314534; font-size: 13px;
  background: linear-gradient(90deg, #94bd79 45%, transparent 45%) 0 0 / 20px 5px repeat-x,
              linear-gradient(90deg, transparent 55%, #acd493 55%) 0 5px / 20px 5px repeat-x,
              linear-gradient(#fae2da 10px, #acd493 10px);
}
.portfolio-footer .wrap { display: flex; justify-content: space-between; gap: 14px; }
@media (max-width: 650px) {
  .contact-inner { grid-template-columns: minmax(0, 1fr); }
  .contact-postcard { width: min(100%, 300px); }
}
@media (prefers-reduced-motion: reduce) {
  .contact-postcard:hover { transform: rotate(2deg); }
}

.contact-details { display: grid; gap: 8px; font-style: normal; }
.contact-details > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; }
.contact-details span { color: #514658; font-size: 14px; }
.contact-details a { min-width: 0; overflow-wrap: anywhere; font-weight: 650; text-decoration: underline; text-underline-offset: 4px; }

#about {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: clamp(22px, 4vw, 48px);
  row-gap: 24px;
  align-items: start;
  padding-block: clamp(32px, 5vw, 56px);
}
.about-title { grid-column: 1 / -1; padding-bottom: 0; }
.about-profile h3, .about-avatar-info h3 {
  display: inline-block; padding: 5px 11px; border: 2px solid var(--ink); border-radius: 5px;
  background: #ffe376; box-shadow: 3px 3px var(--ink);
  font-size: 18px; line-height: 1.2; font-weight: 750;
  transform: rotate(-3deg);
}
.about-profile ul { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.about-profile li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 12px; line-height: 1.4; }
.about-profile li strong { font: 750 18px/1.25 var(--heading); }
.about-profile li span { font-size: 16px; color: var(--muted); }
.about-avatar-card {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .86fr); align-items: center; gap: 8px;
  padding: 18px 10px 18px 19px; background: #bfeaff; border: 2px solid var(--ink);
  border-radius: 16px 10px 21px 13px; box-shadow: 5px 5px var(--ink);
}
.about-avatar-info h3 { background: #ffb4cd; transform: rotate(2deg); }
.about-avatar-info dl { margin: 16px 0 8px; }
.about-avatar-info dt { font: 750 13px/1.3 monospace; letter-spacing: .1em; }
.about-avatar-info dd { margin: 0; color: var(--ink); font: 750 18px/1.4 var(--heading); letter-spacing: .045em; }
.about-avatar-info p { margin: 12px 0 0; font-size: 16px; }
.about-avatar-art { position: relative; display: grid; place-items: center; min-width: 0; }
.about-avatar-art img { display: block; max-width: 100%; width: auto; height: clamp(116px, 14vw, 160px); object-fit: contain; transition: transform .25s steps(4, end); }
.avatar-note { position: absolute; z-index: 1; top: -3px; right: 4px; font-size: 24px; color: #4d3472; transform: rotate(10deg); }
.about-avatar-card:hover img { transform: translateY(-5px); }
.about-story p { font-size: 16px; line-height: 1.7; }
.about-story p + p { margin-top: 16px; }
#about .about-photo { width: min(100%, 340px); margin: 0; }
#about .about-photo figcaption { font-size: 14px; flex-wrap: wrap; }
@media (max-width: 760px) {
  #about { grid-template-columns: minmax(0, 1fr); row-gap: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .about-avatar-card:hover img { transform: none; }
}

.about-video { position: relative; display: block; }
.about-video-play {
  position: absolute; inset: auto 10px 10px auto; padding: 4px 8px;
  border: 1px solid var(--ink); border-radius: 4px; background: var(--paper);
  color: var(--ink); font-size: 12px; font-weight: 700; box-shadow: 2px 2px var(--ink);
}
.about-video:is(:hover,:focus-visible) .about-video-play { background: var(--bright); }

.film-progress { position: fixed; inset: 0 0 auto; height: 4px; z-index: 8; pointer-events: none; }
.film-progress .reading-progress { position: absolute; z-index: auto; }
.film-spark {
  position: absolute; top: 0; left: clamp(0px, var(--film-progress, 0%), calc(100% - 8px));
  width: 8px; height: 6px; background: #ffd36f; box-shadow: 2px 2px #392c45;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-inner .kicker { animation: opening-cel .56s .06s both; }
  .hero-inner h1 { animation: opening-cel .67s .14s both; }
  .hero-bottom > div { animation: opening-cel .62s .25s both; }
  .hero-bottom .hero-link { animation: opening-cel .55s .38s both; }
  .world-guide .world-actions button[aria-pressed="true"] { transition: background .2s, box-shadow .2s, transform .2s; }
  @keyframes opening-cel {
    from { opacity: 0; translate: 0 15px; }
    to { opacity: 1; translate: 0 0; }
  }
}
@media (prefers-reduced-motion: reduce) {
  .film-spark { display: none; }
}

.site-header .nav-links { gap: 4px; align-items: center; flex-wrap: nowrap; }
.site-header .nav-links a {
  white-space: nowrap; padding: 5px 8px; border: 1px solid transparent; border-radius: 5px;
  transition: background-color .18s, border-color .18s, box-shadow .18s;
}
.site-header .nav-links a:hover { background: #ffe9ef; }
.site-header .nav-links a[aria-current="location"] {
  background: #ffe6a9; border-color: var(--ink); color: var(--ink); box-shadow: 2px 2px var(--ink);
}
@media (max-width: 540px) {
  .site-header .nav-links { gap: 2px; font-size: 12px; }
  .site-header .nav-links a { padding: 4px; }
  .site-header .nav-long { display: none; }
  .site-header .wordmark { font-size: 12px; }
}

.about-volunteer h3 {
  display: inline-block; margin-bottom: 15px; padding: 5px 10px;
  border: 2px solid var(--ink); border-radius: 5px;
  background: #d7ebc8; box-shadow: 3px 3px var(--ink);
  font-size: 18px; transform: rotate(-2deg);
}
#about .about-volunteer-photo { transform: rotate(1.3deg); }
