:root {
  --paper: #f3ede2;
  --paper-2: #eae2d3;
  --card: #fbf8f2;
  --news: #efe8d8;
  --ink: #2a2420;
  --ink-2: #5a4f45;
  --muted: #8c8072;
  --line: rgba(42, 36, 32, 0.16);
  --kraft: #c49a6c;
  --kraft-2: #a87b4f;
  --red: #c8442e;
  --mustard: #d9a93f;
  --teal: #4f8a7e;
  --sky: #7fa6c4;
  --pink: #d98c8c;
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --hand: "Kaiti SC", "STKaiti", "KaiTi", "BiauKai", serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
/* paper grain over everything */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .55; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .25 0 0 0 0 .2 0 0 0 0 .14 0 0 0 .13 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: inherit; text-decoration: none; }
ol, ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; letter-spacing: -0.01em; line-height: 1.15; }
h2 { font-size: clamp(30px, 3.6vw, 50px); }
.lead { font-size: 18px; color: var(--ink-2); line-height: 1.8; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.zmark { width: 26px; height: 26px; color: var(--ink); display: block; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; height: 46px; padding: 0 22px; border-radius: 999px;
  font-size: 15px; font-weight: 600; transition: transform .2s, background .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-ink { background: var(--ink); color: var(--card); box-shadow: 0 6px 18px -8px rgba(42,36,32,.6); }
.btn-ink:hover { background: #3a322c; }
.btn-line { border: 1.5px solid var(--ink); }
.btn-line:hover { background: rgba(42,36,32,.05); }
.btn-sm { height: 36px; padding: 0 16px; font-size: 14px; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; align-items: center; gap: 40px;
  padding: 16px clamp(20px, 4vw, 56px); background: rgba(243,237,226,.72); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.nav.scrolled { border-color: var(--line); }
.brand { display: flex; align-items: center; gap: 8px; font-family: var(--serif); font-weight: 700; font-size: 21px; }
.nav-links { display: flex; gap: 28px; flex: 1; font-size: 15px; color: var(--ink-2); }
.nav-links a:hover { color: var(--ink); }

.sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; }

/* =========================================================
   1. Cover — a closed book on a blurred shelf
   ========================================================= */
.cover { height: 300vh; position: relative; }
.shelf-bg {
  position: absolute; inset: 0; padding: 7vh 0 0 30vw; display: grid; grid-template-rows: 1fr 18px 1fr 18px; gap: 0;
  background: linear-gradient(180deg, #d9c7ab, #cbb593);
  filter: blur(var(--shelf-blur, 5px)) saturate(.85); transform: scale(1.06); opacity: var(--shelf-op, 1);
}
.shelf-row { display: flex; align-items: flex-end; gap: 3px; padding: 0 20px; overflow: hidden; }
.plank { background: linear-gradient(#9b7350, #7c5a3d); box-shadow: 0 8px 14px rgba(60,40,20,.35); }
.spine-bg { flex: none; border-radius: 2px 2px 0 0; position: relative; box-shadow: inset -3px 0 0 rgba(0,0,0,.12); }
.spine-bg::before, .spine-bg::after { content: ""; position: absolute; left: 0; right: 0; height: 3px; background: rgba(255,240,210,.45); }
.spine-bg::before { top: 14%; } .spine-bg::after { bottom: 12%; }

.panel-wrap { position: absolute; z-index: 3; left: 0; top: 0; bottom: 0; width: min(46vw, 640px); filter: drop-shadow(10px 0 18px rgba(60,40,20,.25)); transform: translateX(var(--panel-x, 0)); opacity: var(--panel-op, 1); }
.panel {
  height: 100%; background: var(--paper); display: flex; flex-direction: column; justify-content: center;
  padding: 0 clamp(28px, 6vw, 96px) 0 clamp(28px, 6vw, 96px);
  clip-path: var(--torn, none);
}
.cover h1 { font-size: clamp(64px, 9vw, 132px); letter-spacing: -0.03em; line-height: 1; }
.cover-tagline { margin-top: 16px; font-family: var(--serif); font-size: clamp(20px, 2vw, 28px); font-weight: 600; letter-spacing: .08em; color: var(--ink); }
.cover .lead { margin-top: 18px; max-width: 440px; }
.actions { display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap; }

.book-stage { position: absolute; z-index: 2; perspective: 1800px; }
#coverStage { left: 64%; top: 52%; width: 0; height: 0; }
.book {
  --W: 300px; --H: 420px; --T: 44px;
  position: absolute; left: calc(var(--W) / -2); top: calc(var(--H) / -2); width: var(--W); height: var(--H);
  transform-style: preserve-3d;
  transform: translate3d(var(--bx, 0px), var(--by, 0px), 0) scale(var(--bs, 1)) rotateX(var(--rx, 4deg)) rotateY(var(--ry, -28deg));
}
.face { position: absolute; backface-visibility: hidden; }
.hinge { position: absolute; inset: 0; transform-style: preserve-3d; transform-origin: left center; transform: translateZ(calc(var(--T) / 2)) rotateY(var(--open, 0deg)); }
.cover-front, .cover-inside { position: absolute; inset: 0; backface-visibility: hidden; border-radius: 2px 7px 7px 2px; }
.cover-front {
  background:
    linear-gradient(90deg, rgba(0,0,0,.35) 0, rgba(255,255,255,.06) 3%, transparent 7%),
    repeating-linear-gradient(45deg, rgba(255,255,255,.018) 0 2px, transparent 2px 5px),
    #2b2622;
  color: #eadcc2; display: flex; flex-direction: column; align-items: center; padding: 64px 28px 30px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}
.cover-z { width: 92px; height: 92px; color: #eadcc2; margin-top: 18px; filter: drop-shadow(0 1px 0 rgba(0,0,0,.5)); }
.cover-title { font-family: var(--serif); font-size: 44px; font-weight: 700; margin-top: 26px; letter-spacing: .02em; }
.cover-sub { font-family: var(--serif); font-size: 13px; letter-spacing: .3em; margin-top: 10px; opacity: .7; }
.cover-foot { margin-top: auto; font-family: var(--serif); font-size: 13px; letter-spacing: .4em; opacity: .6; border-top: 1px solid rgba(234,220,194,.25); padding-top: 12px; width: 100%; text-align: center; }
.cover-inside { transform: rotateY(180deg); background: repeating-linear-gradient(135deg, #e7dcc6 0 10px, #e1d4bb 10px 20px); box-shadow: inset -12px 0 18px -10px rgba(0,0,0,.25); }

.spine {
  width: var(--T); height: var(--H); left: calc((var(--W) - var(--T)) / 2);
  transform: rotateY(-90deg) translateZ(calc(var(--W) / 2));
  background: linear-gradient(90deg, #211d1a, #36302b 50%, #211d1a); display: grid; place-items: center;
}
.spine span { writing-mode: vertical-rl; color: #eadcc2; font-family: var(--serif); font-size: 13px; letter-spacing: .3em; }
.back { inset: 0; transform: rotateY(180deg) translateZ(calc(var(--T) / 2)); background: #2b2622; border-radius: 7px 2px 2px 7px; }
.edge-r {
  width: calc(var(--T) - 4px); height: calc(var(--H) - 10px); top: 5px; left: calc((var(--W) - var(--T)) / 2 + 2px);
  transform: rotateY(90deg) translateZ(calc(var(--W) / 2 - 4px));
  background: repeating-linear-gradient(90deg, #f4ecdc 0 2px, #e3d7c1 2px 3px);
}
.edge-t, .edge-b {
  width: calc(var(--W) - 8px); height: calc(var(--T) - 4px); left: 2px; top: calc((var(--H) - var(--T)) / 2 + 2px);
  background: repeating-linear-gradient(0deg, #f4ecdc 0 2px, #e3d7c1 2px 3px);
}
.edge-t { transform: rotateX(90deg) translateZ(calc(var(--H) / 2 - 5px)); }
.edge-b { transform: rotateX(-90deg) translateZ(calc(var(--H) / 2 - 5px)); }
.first-page {
  overflow: hidden;
  inset: 5px 6px 5px 0; transform: translateZ(calc(var(--T) / 2 - 2px)); background: var(--card);
  padding: 46px 30px 24px 34px; box-shadow: inset 14px 0 18px -14px rgba(0,0,0,.3); display: flex; flex-direction: column;
}
.first-page h3 { font-size: 22px; letter-spacing: .3em; }
.toc { margin-top: 26px; display: grid; gap: 15px; font-family: var(--serif); font-size: 12.5px; color: var(--ink-2); }
.toc li { display: flex; align-items: baseline; gap: 6px; }
.toc i { flex: 1; border-bottom: 1px dotted var(--muted); transform: translateY(-3px); }
.toc b { font-family: var(--mono); font-size: 11px; font-weight: 500; }
.page-foot { margin-top: auto; text-align: center; font-family: var(--serif); font-size: 10px; letter-spacing: .3em; color: var(--muted); }

.book { z-index: 1; }
.book-shadow {
  position: absolute; z-index: 0; left: -180px; top: 190px; width: 360px; height: 60px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(60,40,20,.38), transparent); filter: blur(6px);
  transform: translate(var(--bx, 0px), calc(var(--by, 0px) * .2)) scale(var(--bs, 1)); opacity: var(--shadow-op, 1);
}
.scroll-cue { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 4; font-family: var(--serif); font-size: 13px; letter-spacing: .2em; color: var(--ink-2); opacity: var(--cue-op, 1); }
.scroll-cue::after { content: ""; display: block; width: 1px; height: 34px; margin: 10px auto 0; background: var(--ink-2); transform-origin: top; animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); opacity: 1; } 100% { opacity: 0; } }

/* =========================================================
   2. Features carousel
   ========================================================= */
.features { height: 650vh; position: relative; }
.features .sticky { background: var(--paper); }
.track { display: flex; height: 100%; width: 500vw; will-change: transform; }
.slide { flex: none; width: 100vw; height: 100%; display: grid; grid-template-columns: minmax(300px, 34%) 1fr; align-items: center; gap: 3vw; padding: 90px clamp(24px, 5vw, 80px) 110px; }
.slide-text .num { font-family: var(--mono); font-size: 13px; color: var(--muted); letter-spacing: .1em; }
.slide-text h2 { margin-top: 18px; }
.slide-text p { margin-top: 22px; font-size: 17px; line-height: 1.85; color: var(--ink-2); max-width: 380px; }
.stage { position: relative; height: min(72vh, 620px); }

.carousel-ui { position: absolute; left: 0; right: 0; bottom: 26px; display: flex; align-items: center; justify-content: center; gap: 16px; }
.index { display: flex; gap: 4px; padding: 6px; border-radius: 999px; background: rgba(251,248,242,.8); border: 1px solid var(--line); backdrop-filter: blur(8px); }
.index button { padding: 8px 16px; border-radius: 999px; font-size: 13px; color: var(--ink-2); display: flex; gap: 8px; align-items: baseline; transition: background .3s, color .3s; }
.index button b { font-family: var(--mono); font-weight: 500; font-size: 11px; opacity: .6; }
.index button.on { background: var(--ink); color: var(--card); }
.arrow { width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--ink); font-size: 16px; transition: background .2s; }
.arrow:hover { background: rgba(42,36,32,.06); }

/* ---- ① library ---- */
#libStage { display: flex; align-items: center; }
.shelves { position: relative; width: 62%; height: 100%; display: grid; grid-template-rows: repeat(3, 1fr); padding: 6% 4% 4%; background: linear-gradient(#e4d6bf, #d9c8ab); border: 10px solid #8a6446; border-radius: 4px; box-shadow: inset 0 0 40px rgba(60,40,20,.25), 0 30px 50px -30px rgba(60,40,20,.5); }
.shelf { position: relative; display: flex; align-items: flex-end; gap: 2px; padding: 0 6px; border-bottom: 9px solid #8a6446; box-shadow: 0 6px 6px -4px rgba(60,40,20,.4); }
.lib-book {
  flex: none; border-radius: 2px 2px 0 0; position: relative; display: grid; place-items: center; overflow: hidden;
  transform: translateY(-140%); opacity: 0; transition: transform .55s cubic-bezier(.3,1.4,.5,1), opacity .25s;
  box-shadow: inset -3px 0 0 rgba(0,0,0,.14), inset 2px 0 0 rgba(255,255,255,.12);
}
.lib-book.in { transform: none; opacity: 1; }
.lib-book span { writing-mode: vertical-rl; font-family: var(--serif); font-size: 11px; color: rgba(255,248,235,.92); letter-spacing: .12em; white-space: nowrap; }
.lib-book.light span { color: var(--ink); }
.lib-book.hero { transition: transform .7s cubic-bezier(.3,1.3,.5,1), opacity .25s, box-shadow .4s; }
.lib-book.hero.pulled { transform: translateY(-34%); box-shadow: 0 0 0 2px var(--red), 0 12px 20px rgba(60,40,20,.35); }
.lib-count { position: absolute; left: 0; bottom: -40px; font-family: var(--serif); font-size: 15px; color: var(--ink-2); }
.lib-count b { font-family: var(--serif); font-size: 26px; color: var(--ink); margin-right: 4px; font-variant-numeric: tabular-nums; }
.article-card {
  position: absolute; right: 0; top: 50%; width: 42%; min-width: 250px; padding: 24px 24px 26px; background: var(--card);
  border: 1px solid var(--line); border-radius: 4px; box-shadow: 0 30px 60px -28px rgba(60,40,20,.55);
  transform: translate(30px, -46%) rotate(3deg) scale(.92); opacity: 0; transition: transform .7s cubic-bezier(.2,1,.3,1), opacity .4s;
}
.article-card.show { transform: translate(0, -50%) rotate(1.2deg); opacity: 1; }
.ac-tabs { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--paper-2); font-size: 12px; }
.ac-tabs span { padding: 4px 12px; border-radius: 999px; transition: background .3s, color .3s; }
.ac-tabs span.on { background: var(--ink); color: var(--card); }
.ac-human, .ac-ai { margin-top: 18px; transition: opacity .45s; }
.ac-human h4 { font-size: 20px; }
.ac-meta { font-size: 12px; color: var(--muted); margin-top: 4px; }
.ac-human h5 { font-family: var(--serif); font-size: 14px; margin-top: 14px; }
.ac-human p, .ac-human li { font-size: 13px; color: var(--ink-2); margin-top: 4px; }
.ac-human ol { counter-reset: s; }
.ac-human li::before { counter-increment: s; content: counter(s) ". "; color: var(--red); font-weight: 700; }
.ac-ai { position: absolute; left: 24px; right: 24px; top: 46px; font-family: var(--mono); font-size: 12px; line-height: 1.7; color: var(--teal); white-space: pre; opacity: 0; }
.article-card.ai .ac-human { opacity: 0; }
.article-card.ai .ac-ai { opacity: 1; }

/* ---- ② drop box ---- */
#stickerStage { overflow: visible; user-select: none; -webkit-user-select: none; width: 100%; max-width: 680px; max-height: 560px; justify-self: center; align-self: center; }
.dbox-wrap { position: absolute; left: 29%; top: 31%; width: 42%; aspect-ratio: 320 / 300; }
.dbox-ground { position: absolute; left: 2%; right: 2%; bottom: -3%; height: 12%; border-radius: 50%; background: rgba(90,70,50,.3); filter: blur(10px); }
.dbox-back, .dbox-front { position: absolute; inset: 0; transform-origin: 50% 100%; transition: transform .25s cubic-bezier(.3,1.5,.5,1); }
.dbox-back { z-index: 1; filter: drop-shadow(0 2px 2px rgba(60,40,20,.25)); }
.dbox-front { z-index: 4; pointer-events: none; filter: drop-shadow(0 3px 3px rgba(60,40,20,.3)); }
.dbox-back > svg, .dbox-front > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.dbox-flap { position: absolute; left: 20.6%; top: 24%; width: 58.8%; height: 9.4%; border-radius: 2px 2px 5px 5px; background: #b4895b; box-shadow: inset 0 -2px 0 rgba(90,60,30,.35), 0 2px 3px rgba(60,40,20,.3); transform-origin: 50% 0; transition: transform .22s cubic-bezier(.3,1.5,.5,1); }
.dbox-wrap.hungry .dbox-flap, .dbox-wrap.feeding .dbox-flap { transform: scaleY(.2); }
.dbox-flag { position: absolute; right: -9%; top: 30%; width: 16%; transform-origin: 10% 100%; transform: rotate(-98deg); transition: transform .45s cubic-bezier(.3,1.7,.5,1); }
.dbox-flag svg { display: block; width: 100%; height: auto; }
.dbox-flag.up { transform: rotate(0deg); }
.dbox-label { position: absolute; left: 21%; top: 49%; width: 53%; padding: 5% 3% 4%; display: grid; justify-items: center; gap: 1px; background: #fbf8f2; box-shadow: 0 2px 5px rgba(60,40,20,.35); transform: rotate(-2.5deg); font-family: var(--serif); color: var(--ink); text-align: center; }
.dbox-label::before { content: ""; position: absolute; left: 50%; top: -7px; width: 42%; height: 15px; margin-left: -21%; background: rgba(196,154,108,.72); transform: rotate(2deg); }
.dbox-label .zmark { width: clamp(16px, 2.6vw, 30px); height: clamp(16px, 2.6vw, 30px); }
.dbox-label b { font-size: clamp(13px, 1.5vw, 20px); line-height: 1.2; }
.dbox-label span { font-family: var(--hand); font-size: clamp(11px, 1.15vw, 15px); line-height: 1.25; color: var(--ink-2); white-space: nowrap; }
.dc { position: absolute; z-index: 6; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; outline: none; filter: drop-shadow(0 5px 6px rgba(60,40,20,.3)); }
.dc svg { display: block; width: 100%; height: auto; overflow: visible; transform: scale(0) rotate(-16deg); opacity: 0; transition: transform .5s cubic-bezier(.3,1.5,.5,1), opacity .25s; }
.dc.on svg { transform: none; opacity: 1; }
.dc text { font-family: var(--serif); }
@media (hover: hover) { .dc:hover:not(.held):not(.flying) svg { transform: translateY(-6px) rotate(-3deg) scale(1.05); } }
.dc:focus-visible:not(.flying):not(.held) svg { outline: 2px solid var(--ink); outline-offset: 3px; }
.dc.held { z-index: 9; cursor: grabbing; filter: drop-shadow(0 18px 14px rgba(60,40,20,.34)); }
.dc.flying { pointer-events: none; }
.dc.in-mouth { z-index: 3; filter: none; }
.drop-note { position: absolute; z-index: 5; left: 50%; top: 2%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 2px; opacity: var(--note-op, 0); transition: filter .3s; pointer-events: none; white-space: nowrap; }
.drop-note.gone { filter: opacity(0); }
.hand-note { font-family: var(--hand); font-size: 22px; line-height: 1.2; color: var(--red); transform: rotate(-4deg); }
.hand-arrow { width: 50px; margin-left: 18px; fill: none; stroke: var(--red); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 300; stroke-dashoffset: var(--draw, 300); }
.fed-count { position: absolute; z-index: 5; left: 24%; top: 84%; padding: 6px 12px 6px 22px; font-family: var(--serif); font-size: 14px; color: var(--ink); background: #efe0c3; clip-path: polygon(12px 0, 100% 0, 100% 100%, 12px 100%, 0 50%); transform: rotate(-7deg); transform-origin: 100% 50%; white-space: nowrap; }
.fed-count::before { content: ""; position: absolute; left: 11px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 1px 1px rgba(60,40,20,.5); }
.fed-count b { font: 500 20px var(--mono); font-variant-numeric: tabular-nums; }

/* ---- ③ collage ---- */
#collageStage { overflow: visible; }
.backing { position: absolute; left: 50%; top: 4%; width: 46%; height: 92%; background: #d8bf98; border-radius: 3px; box-shadow: 0 20px 40px -24px rgba(60,40,20,.6); opacity: var(--backing-op, 0); transform: rotate(-1.5deg); }
.backing::before { content: ""; position: absolute; left: 50%; top: -12px; width: 90px; height: 26px; transform: translateX(-50%) rotate(2deg); background: rgba(243,237,226,.75); }
.clip {
  position: absolute; left: 0; top: 0; background: var(--news); overflow: hidden; padding: 10px 12px; color: #3a332c; font-family: var(--serif);
  box-shadow: 0 6px 14px -8px rgba(60,40,20,.6); will-change: transform;
  clip-path: polygon(0 1%, 8% 0, 22% 1.5%, 37% 0, 55% 1%, 70% 0, 86% 1.2%, 100% 0, 99% 30%, 100% 62%, 99% 100%, 80% 99%, 62% 100%, 41% 98.6%, 23% 100%, 0 99%, 1% 66%, 0 33%);
}
.clip .hl { font-size: 22px; font-weight: 900; line-height: 1.25; letter-spacing: -.01em; position: relative; }
.clip .hl.struck::after { content: ""; position: absolute; left: -2%; right: -2%; top: 52%; height: 3px; background: var(--red); transform: scaleX(var(--strike, 0)); transform-origin: left; border-radius: 2px; }
.clip .col { font-size: 10.5px; line-height: 1.75; text-align: justify; color: #4a4038; }
.clip .col b { font-size: 13px; display: block; margin-bottom: 4px; color: var(--ink); }
.clip .meta { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; display: flex; justify-content: space-between; border-top: 2px solid #3a332c; border-bottom: 1px solid #3a332c; padding: 3px 0; }
.halftone { position: absolute; inset: 0; }
.halftone::before { content: ""; position: absolute; left: 50%; top: 50%; width: 70%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: var(--red); opacity: .9; }
.halftone::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle, #2a2420 38%, transparent 40%) 0 0 / 5px 5px;
  -webkit-mask: radial-gradient(ellipse 34% 42% at 50% 42%, #000 40%, transparent 72%), radial-gradient(ellipse 50% 22% at 50% 100%, #000 50%, transparent 75%);
  mask: radial-gradient(ellipse 34% 42% at 50% 42%, #000 40%, transparent 72%), radial-gradient(ellipse 50% 22% at 50% 100%, #000 50%, transparent 75%);
}
.scissors { position: absolute; width: 64px; height: 64px; left: 0; top: 0; opacity: 0; z-index: 5; pointer-events: none; }
.scissors.snip .blade-a { transform: rotate(-9deg); transform-origin: 21px 32px; }
.scissors.snip .blade-b { transform: rotate(9deg); transform-origin: 21px 32px; }
.rewrite { position: absolute; z-index: 6; left: 52%; top: 1%; font-family: var(--hand); color: var(--red); font-size: 26px; transform: rotate(-3deg); opacity: var(--rw-op, 0); white-space: nowrap; }
.stamp {
  position: absolute; z-index: 6; right: -2%; bottom: 6%; width: 104px; height: 104px; border-radius: 50%; border: 4px double var(--red); color: var(--red);
  display: grid; place-items: center; font-family: var(--serif); font-weight: 900; font-size: 22px; letter-spacing: .1em;
  transform: rotate(-14deg) scale(var(--stamp-s, 2)); opacity: var(--stamp-op, 0); mix-blend-mode: multiply;
}

/* ---- ④ funnel ---- */
/* Paper tones for the kit's figure (figures/hourglass/build.mjs) */
#funnelStage { display: flex; align-items: center; justify-content: center; gap: clamp(8px, 2.5vw, 36px); }
.hg-fig { flex: 0 1 auto; height: 100%; min-width: 0; aspect-ratio: 340 / 460; max-width: 62%; background: none; }
.hg-fig svg { width: 100%; height: 100%; }
.hg-wood { --anatomy-paper: #c9a071; --anatomy-top: #d3ab7c; --anatomy-shade-0: #9a7147; --anatomy-shade-1: #ab8254; --anatomy-shade-2: #bb9262; --anatomy-shade-3: #c7a071; --anatomy-lo: #8a6a47; --anatomy-faint: #a07c55; --anatomy-mid: #6e5237; }
.hg-rubber { --anatomy-paper: #a98a64; --anatomy-top: #b89a74; --anatomy-shade-0: #7f6345; --anatomy-shade-1: #8d7050; --anatomy-shade-2: #9a7d5b; --anatomy-shade-3: #a68966; --anatomy-hi: #6e5237; }
.hg-glass { fill: rgba(255,255,255,.34); }
.hg-shine { fill: rgba(255,255,255,.46); }
.hg-pile-slips { fill: #dfd3bc; }
.hg-slip path { fill: var(--card); stroke: var(--ink-2); stroke-width: .35px; vector-effect: non-scaling-stroke; }
.hg-slip[data-tint="1"] path { fill: #ecd9b0; }
.hg-slip[data-tint="2"] path { fill: #e9cfc4; }
.hg-slip .hg-rule { fill: none; stroke: var(--muted); stroke-width: .3px; }
.hg-gold { stroke: #8d6420; stroke-width: .5px; vector-effect: non-scaling-stroke; }
.hg-specks { fill: none; stroke: #8d6420; stroke-width: 1px; stroke-linecap: round; opacity: .55; vector-effect: non-scaling-stroke; }
.hg-grain { fill: #c8922b; }
.hg-ring { --anatomy-paper: #4a3f35; --anatomy-top: #5b4e41; --anatomy-shade-0: #2f2821; --anatomy-shade-1: #3a3129; --anatomy-shade-2: #453b31; --anatomy-shade-3: #51453a; --anatomy-lo: #6e6052; }
.hg-ai { --anatomy-paper: #d9a93f; --anatomy-top: #e6bd5f; --anatomy-shade-0: #a97a26; --anatomy-shade-1: #bd8d2f; --anatomy-shade-2: #cc9c37; --anatomy-shade-3: #d9a93f; --anatomy-lo: #8d6420; }
.hg-heat { fill: var(--red); opacity: 0; pointer-events: none; }
.hg-legend { flex: 0 1 230px; min-width: 0; font-family: var(--serif); color: var(--ink-2); font-size: 14px; }
.hg-total, .hg-kept { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; color: var(--ink); }
.hg-total b { font-family: var(--mono); font-size: 17px; font-weight: 500; font-variant-numeric: tabular-nums; }
.hg-kept { flex-direction: column; gap: 2px; font-weight: 700; }
.hg-kept span + span { font-weight: 400; color: var(--ink-2); }
.hg-kept b { font-family: var(--mono); font-size: 17px; font-weight: 500; color: #8d6420; }
.hg-rows { margin: 12px 0; padding: 4px 0; border-block: 1px solid var(--line); }
.hg-rows li { display: grid; grid-template-columns: 20px 1fr auto; align-items: center; gap: 8px; padding: 7px 0; cursor: default; }
.hg-rows b { display: grid; place-items: center; width: 20px; height: 20px; border: 1px solid var(--ink); border-radius: 50%; font: 500 11px var(--mono); color: var(--ink); background: var(--card); }
.hg-rows i { font: normal 12.5px var(--mono); font-variant-numeric: tabular-nums; color: var(--ink); }
.hg-rows li.on b, .hg-rows li:focus-visible b { background: var(--red); border-color: var(--red); color: #fff; }
.hg-rows li:focus-visible { outline: none; }

/* ---- ⑤ puzzle grid ---- */
#gridStage { display: flex; flex-direction: column; justify-content: center; gap: 10px; min-width: 0; }
.pz-fig { position: relative; flex: 0 1 auto; min-height: 0; aspect-ratio: 660 / 400; max-height: calc(100% - 100px); background: none; align-self: center; width: 100%; }
.pz-fig svg { width: 100%; height: 100%; }
.pz-fig.iso, .hg-fig.iso {
  --anatomy-paper: #fbf8f2; --anatomy-face: #fbf8f2; --anatomy-top: #f6efe2;
  --anatomy-shade-0: #e0d5c1; --anatomy-shade-1: #e8decc; --anatomy-shade-2: #efe7d8; --anatomy-shade-3: #f5efe3;
  --anatomy-hi: #2a2420; --anatomy-mid: #8c8072; --anatomy-lo: #b5a892; --anatomy-faint: #d8cdb9; --anatomy-lit: #c8442e;
  --anatomy-halo: #7a6a52; --anatomy-halo-opacity: .34; --anatomy-dot: #2a2420; --anatomy-weight: .8px;
}
.pz-felt { --anatomy-paper: #5d5146; --anatomy-top: #5d5146; --anatomy-shade-0: #40362c; --anatomy-shade-1: #4b4035; --anatomy-shade-2: #574a3d; --anatomy-shade-3: #625445; }
.pz-brass { --anatomy-paper: #d9a93f; --anatomy-top: #e6bd5f; --anatomy-shade-0: #a97a26; --anatomy-shade-1: #bd8d2f; --anatomy-shade-2: #cc9c37; --anatomy-shade-3: #d9a93f; --anatomy-lo: #8d6420; --anatomy-faint: #a97a26; --anatomy-hi: #4d3814; }
.pz-socket { fill: #4d4238; stroke: var(--ink); stroke-width: .8px; vector-effect: non-scaling-stroke; }
.pz-aged { fill: #e3c78f; }
.pz-stain { fill: rgba(185,142,79,.3); }
.pz-mark { fill: none; stroke: var(--red); stroke-width: 2px; vector-effect: non-scaling-stroke; }
.pz-red { stroke-width: 1.6px; }
.pz-label { fill: var(--ink); font-family: var(--serif); letter-spacing: 0; opacity: var(--pz-zoom, 0); }
.pz-flag { fill: var(--red); font-weight: 700; opacity: calc(var(--pz-zoom, 0) * var(--pz-fade, 1)); }
.pz-flag[data-flag="missing"] { fill: #f4c9bd; }
.pz-rule { opacity: calc(1 - var(--pz-zoom, 0)); }
.pz-zoom { --pz-zoom: 1; }
.pz-under { fill: var(--paper); }
.pz-shadow { fill: #5a4632; opacity: .17; filter: blur(9px); pointer-events: none; }
.pz-glass { fill: rgba(255,255,255,.06); stroke: rgba(42,36,32,.25); stroke-width: .6px; vector-effect: non-scaling-stroke; }
.pz-shine { fill: rgba(255,255,255,.4); pointer-events: none; }
.pz-rim-side { fill: #a97a26; fill-rule: evenodd; }
.pz-rim-wall { fill: #8d6420; fill-rule: evenodd; }
.pz-rim-face { fill: #dcae48; fill-rule: evenodd; }
.pz-lens { cursor: grab; touch-action: none; outline: none; }
.pz-lens.held { cursor: grabbing; }
.pz-lens:focus-visible .pz-glass { stroke: var(--red); stroke-width: 2px; }
.pz-legend { flex: none; font-family: var(--serif); color: var(--ink-2); font-size: 14px; }
.pz-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.pz-score { flex: none; display: flex; align-items: baseline; gap: 10px; white-space: nowrap; color: var(--ink); }
.pz-score b { font: 500 17px var(--mono); font-variant-numeric: tabular-nums; }
.pz-hint { font-size: 13px; color: var(--muted); }
.pz-tip {
  position: absolute; left: 0; top: 0; z-index: 3; padding: 5px 12px; white-space: nowrap; pointer-events: none;
  font-family: var(--hand); font-size: 18px; line-height: 1.3; color: var(--ink); background: var(--kraft);
  border-radius: 3px; box-shadow: 0 6px 14px -8px rgba(60,40,20,.7); opacity: 0; transition: opacity .3s;
}
.pz-tip.on { opacity: 1; }
.pz-tip::before { content: ""; position: absolute; top: 50%; right: 100%; margin-top: -6px; border: 6px solid transparent; border-right-color: var(--kraft); }
.pz-tip.left::before { right: auto; left: 100%; border-right-color: transparent; border-left-color: var(--kraft); }
.pz-again { font-family: var(--serif); font-size: 13px; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.pz-again[hidden], .pz-hint[hidden] { display: none; }
.pz-rows { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding-top: 10px; }
.pz-row {
  display: flex; align-items: center; gap: 8px; min-height: 36px; min-width: 0; padding: 0 12px; font-family: var(--serif); font-size: 14px; color: var(--ink-2); text-align: left;
  cursor: pointer; background: var(--card); border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 2px 5px -3px rgba(60,40,20,.4);
  transition: border-color .2s, transform .15s, box-shadow .2s, color .2s;
}
.pz-row span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pz-go { flex: none; width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; opacity: .55; transition: opacity .2s; }
.pz-row:hover { border-color: var(--ink); transform: translateY(-1px); box-shadow: 0 5px 10px -5px rgba(60,40,20,.55); }
.pz-row:hover .pz-go, .pz-row:focus-visible .pz-go { opacity: 1; }
.pz-row:active { transform: translateY(0); box-shadow: 0 1px 3px -2px rgba(60,40,20,.5); }
.pz-row:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.pz-row i { flex: none; width: 10px; height: 10px; border: 1.5px solid var(--ink-2); border-radius: 50%; transition: background .3s, border-color .3s; }
.pz-row:hover { color: var(--ink); }
.pz-row[data-state="found"] i, .pz-row[data-state="fixing"] i { background: var(--red); border-color: var(--red); }
.pz-row[data-state="found"], .pz-row[data-state="fixing"] { color: var(--red); }
.pz-row[data-state="done"] { color: var(--teal); }
.pz-row[data-state="done"] i { background: var(--teal); border-color: var(--teal); }

/* =========================================================
   3. Product
   ========================================================= */
.product { padding: 140px 0 120px; background: linear-gradient(var(--paper), var(--paper-2)); overflow: hidden; }
.product .wrap { text-align: center; }
.product .lead { margin-top: 18px; }
.product-stage { position: relative; max-width: 980px; margin: 64px auto 0; padding: 0 32px; perspective: 1600px; }
.window {
  border-radius: 14px; overflow: hidden; background: #221e1a; color: #e9e1d4; border: 1px solid rgba(0,0,0,.3);
  box-shadow: 0 50px 90px -40px rgba(60,40,20,.7); transform: rotateX(var(--tilt, 18deg)) scale(var(--ws, .92)); transform-origin: 50% 0;
}
.window-bar { display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; background: #1b1815; border-bottom: 1px solid rgba(255,255,255,.06); }
.window-bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a332d; }
.window-bar span { margin: 0 auto; font-size: 12px; color: #7d7266; padding-right: 50px; }
.app { display: grid; grid-template-columns: 180px 1fr; min-height: 400px; font-size: 13px; }
.app-side { border-right: 1px solid rgba(255,255,255,.06); padding: 16px 10px; color: #a3988a; }
.side-brand { display: flex; align-items: center; gap: 6px; font-family: var(--serif); font-weight: 700; color: #f1e8da; font-size: 15px; padding: 0 8px 14px; }
.side-brand .zmark { width: 18px; height: 18px; color: #f1e8da; }
.side-item { padding: 7px 10px; border-radius: 8px; }
.side-item.sub { padding-left: 22px; }
.side-item.active { background: rgba(200,68,46,.16); color: #f0b7a8; }
.side-group { padding: 12px 10px 4px; font-size: 11px; color: #7d7266; }
.app-main { padding: 22px 28px; }
.crumb { font-size: 12px; color: #7d7266; }
.art-head { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.art-head h3 { font-size: 20px; color: #f6eee2; }
.tag { font-size: 12px; padding: 3px 10px; border-radius: 999px; background: rgba(110,170,120,.18); color: #9fd2a6; }
.art-meta { font-size: 12.5px; color: #a3988a; margin-top: 6px; }
.cites { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 16px 0; padding: 10px; border-radius: 10px; background: #2b2621; }
.cites span { font-size: 12px; color: #a3988a; margin-right: 4px; }
.cites b { font-size: 12px; font-weight: 500; padding: 2px 8px; border-radius: 6px; background: #362f29; color: #f0b7a8; }
.app-main h4 { font-family: var(--sans); font-size: 14px; margin: 14px 0 10px; color: #f1e8da; }
.mini-table { border: 1px solid rgba(255,255,255,.07); border-radius: 10px; overflow: hidden; font-size: 12.5px; }
.tr { display: grid; grid-template-columns: 1fr 1.6fr .8fr; }
.tr span { padding: 8px 12px; border-top: 1px solid rgba(255,255,255,.06); color: #b7ab9c; }
.tr.th span { border-top: 0; background: #2b2621; color: #f1e8da; font-weight: 600; }
.line { height: 8px; border-radius: 4px; background: #362f29; margin: 9px 0; }
.w90 { width: 90%; } .w70 { width: 70%; }
.float {
  position: absolute; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 12px; font-size: 14px; font-weight: 600;
  background: var(--card); border: 1px solid var(--line); box-shadow: 0 20px 40px -18px rgba(60,40,20,.5); white-space: nowrap;
  transform: translateY(var(--fy, 0px)) rotate(var(--fr, 0deg));
}
.float .ico { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--paper-2); font-size: 13px; }
.float .ico.ok { background: #d9e6d3; color: #3f7a4b; }
.float .ico.star { background: #f3e2b8; color: #a7771b; }
.f1 { right: -10px; top: 70px; --fr: 2deg; }
.f2 { left: -18px; top: 190px; --fr: -2deg; }
.f3 { left: 40px; bottom: -26px; --fr: 1.5deg; }
.f4 { right: 30px; bottom: 40px; --fr: -1.5deg; }

/* =========================================================
   4. FAQ
   ========================================================= */
.faq { padding: 120px 0; background: var(--paper-2); }
.faq-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 60px; }
.faq-side { position: sticky; top: 96px; align-self: start; display: grid; justify-items: start; gap: 14px; }
.faq-note { font-family: var(--hand); font-size: 22px; color: var(--red); transform: rotate(-3deg); transform-origin: left; }
.faq-note[hidden], .faq-pick[hidden], .faq-done[hidden] { display: none; }
.faq-tally { display: grid; gap: 8px; font-family: var(--serif); font-size: 15px; color: var(--ink-2); }
.faq-tally b { font: 500 20px var(--mono); color: var(--ink); }
.faq-pips { display: flex; gap: 6px; }
.faq-pips i { width: 18px; height: 24px; border: 1px solid var(--line); border-radius: 2px; background: var(--card); transition: background .3s, transform .35s cubic-bezier(.3,1.6,.5,1), border-color .3s; }
.faq-pips i.on { background: var(--dot); border-color: var(--dot); transform: translateY(-3px) rotate(-5deg); }
.faq-done { padding: 8px 14px; font-family: var(--hand); font-size: 20px; color: var(--red); border: 2.5px solid var(--red); border-radius: 6px; transform: rotate(-4deg); }
.faq-list { display: flex; flex-direction: column; gap: 14px; }
.slip {
  --tx: 0; --ty: 0; position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 3px;
  box-shadow: 0 8px 18px -14px rgba(60,40,20,.6);
  transform: perspective(900px) rotateX(calc(var(--ty) * -1.6deg)) rotateY(calc(var(--tx) * 1.8deg)) rotate(var(--lean, 0deg));
  transition: transform .18s ease-out, box-shadow .2s;
}
.slip:hover { box-shadow: 0 16px 26px -16px rgba(60,40,20,.7); }
.slip.is-open { --lean: 0deg !important; box-shadow: 0 18px 30px -18px rgba(60,40,20,.7); }
.slip::before { content: ""; position: absolute; left: 50%; top: -9px; width: 84px; height: 20px; margin-left: -42px; background: rgba(196,154,108,.62); transform: rotate(-1.5deg) scaleX(0); transition: transform .25s cubic-bezier(.3,1.4,.5,1); pointer-events: none; }
.slip.is-open::before { transform: rotate(-1.5deg) scaleX(1); }
.slip summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px; padding: 16px 18px; font-family: var(--serif); font-size: 18px; font-weight: 700; color: var(--ink); border-radius: 3px; }
.slip summary::-webkit-details-marker { display: none; }
.slip summary span { flex: 1; min-width: 0; }
.slip summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.slip-sticker { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1.5px dashed var(--dot); color: var(--dot); font: 500 14px var(--mono); transition: background .3s, color .3s, transform .3s cubic-bezier(.3,1.6,.5,1); }
.slip:hover .slip-sticker { transform: rotate(-14deg) scale(1.12); }
.slip.read .slip-sticker { background: var(--dot); border: 1.5px solid var(--dot); color: #fff; }
.slip-plus { flex: none; position: relative; width: 26px; height: 26px; border-radius: 50%; background: var(--paper-2); transition: transform .4s cubic-bezier(.3,1.7,.5,1), background .2s; }
.slip-plus::before, .slip-plus::after { content: ""; position: absolute; left: 7px; right: 7px; top: 12px; height: 2px; background: var(--ink); border-radius: 1px; }
.slip-plus::after { transform: rotate(90deg); }
.slip:hover .slip-plus { transform: rotate(90deg) scale(1.1); background: var(--mustard); }
.slip.is-open .slip-plus { transform: rotate(135deg); }
.slip-body { position: relative; overflow: hidden; }
.slip-body p { margin: 0 18px 0 62px; padding: 2px 0 38px; max-width: 600px; line-height: 30px; color: var(--ink-2); transform-origin: top; background: repeating-linear-gradient(transparent 0 29px, rgba(42,36,32,.09) 29px 30px); }
.slip-stamp { position: absolute; right: 16px; bottom: 10px; padding: 1px 9px; font-family: var(--hand); font-size: 15px; line-height: 1.5; color: var(--red); border: 1.5px solid var(--red); border-radius: 4px; opacity: .78; transform: rotate(-8deg); pointer-events: none; }
.faq-scrap { position: absolute; z-index: 5; width: 7px; height: 10px; border-radius: 1px; pointer-events: none; }

/* =========================================================
   5. Back cover
   ========================================================= */
.backcover { height: 220vh; position: relative; }
.backcover .sticky { display: grid; place-items: center; background: var(--paper-2); }
.back-stage { left: 50%; top: 46%; width: 0; height: 0; }
#backBook { --ry: -80deg; transform: rotateX(3deg) rotateY(calc(180deg + var(--ry))); }
#backBook .cover-plain { inset: 0; transform: translateZ(calc(var(--T) / 2)); background: #2b2622; border-radius: 2px 7px 7px 2px; }
#backBook .back { display: flex; flex-direction: column; padding: 56px 34px 30px; color: #eadcc2; }
.back-title { font-family: var(--serif); font-size: 26px; font-weight: 700; white-space: nowrap; }
.back-blurb { margin-top: 18px; font-family: var(--serif); font-size: 14px; line-height: 1.9; opacity: .78; }
.barcode { margin-top: auto; align-self: flex-end; background: #f4ecdc; padding: 8px 10px 6px; border-radius: 2px; text-align: center; }
.barcode .bars { height: 44px; width: 120px; }
.barcode span { white-space: nowrap; font-family: var(--mono); font-size: 9px; letter-spacing: .12em; color: var(--ink); }
.back-stage .book-shadow { top: 200px; }
.back-cta .btn { white-space: nowrap; }
.back-cta { position: absolute; left: 50%; bottom: 9vh; transform: translateX(-50%) translateY(var(--cta-y, 20px)); display: flex; gap: 12px; opacity: var(--cta-op, 0); }

/* =========================================================
   6. Footer (锦木)
   ========================================================= */
.footer { background: #1d2230; color: #c3c8d4; padding: 64px 0 28px; font-size: 13.5px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.jinmu { font-family: Georgia, serif; font-size: 26px; font-weight: 700; letter-spacing: .08em; color: #fff; }
.jinmu span { font-family: var(--serif); font-size: 20px; margin-left: 6px; letter-spacing: 0; }
.foot-brand p { margin-top: 16px; max-width: 360px; line-height: 1.8; }
.contact { margin-top: 18px; display: grid; gap: 8px; color: #9aa1b0; }
.footer h5 { font-size: 14px; color: #fff; margin-bottom: 14px; font-weight: 600; }
.footer a { display: block; padding: 4px 0; color: #9aa1b0; }
.footer a:hover { color: #fff; }
.copy { margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.08); color: #6f7685; font-size: 12px; }

/* =========================================================
   7. Privacy policy
   ========================================================= */
.policy { padding: 112px 32px 96px; }
.policy-sheet {
  max-width: 860px; margin: 0 auto; padding: 64px 72px 72px; background: var(--card);
  border: 1px solid var(--line); border-radius: 4px; box-shadow: 0 24px 48px -32px rgba(60,40,20,.45);
  font-size: 15.5px; line-height: 1.75; color: var(--ink-2);
}
.policy-sheet h1 { font-size: clamp(36px, 5vw, 54px); color: var(--ink); margin-bottom: 28px; }
.policy-sheet h1::after { content: ""; display: block; width: 56px; height: 3px; margin-top: 20px; background: var(--red); }
.policy-sheet > p + p { margin-top: 18px; }
.policy-sheet section { margin-top: 44px; padding-top: 40px; border-top: 1px dashed var(--line); }
.policy-sheet h2 { font-size: 27px; color: var(--ink); }
.policy-sheet h3 { font-size: 18px; color: var(--ink); margin: 28px 0 10px; }
.policy-sheet h2 span, .policy-sheet h3 span { color: var(--red); }
.policy-sheet strong { color: var(--ink); font-weight: 600; }
.policy-sheet a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.policy-sheet a:hover { color: var(--ink); }
.policy-sheet ul { margin-top: 10px; display: grid; gap: 6px; }
.policy-sheet ul ul { margin-top: 6px; padding-left: 4px; }
.policy-sheet li { position: relative; padding-left: 20px; }
.policy-sheet li::before { content: ""; position: absolute; left: 3px; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: var(--kraft-2); }
.policy-sheet li li::before { top: .8em; width: 8px; height: 1px; border-radius: 0; left: 1px; }
.policy-table { margin-top: 14px; overflow-x: auto; }
.policy-table table { width: 100%; min-width: 480px; border-collapse: collapse; font-size: 14.5px; }
.policy-table th { padding: 10px 14px; text-align: left; font-weight: 600; color: var(--card); background: var(--ink); }
.policy-table td { padding: 11px 14px; border-bottom: 1px solid var(--line); }
.policy-table tbody tr:nth-child(even) { background: rgba(196,154,108,.1); }
.footer a[aria-current="page"] { color: #fff; }

/* =========================================================
   8. Language switch + 开始使用 dialog
   ========================================================= */
.nav-end { display: flex; align-items: center; gap: 12px; flex: none; }
.lang {
  appearance: none; height: 36px; padding: 0 28px 0 12px; font: 600 13px var(--sans); letter-spacing: .03em; color: var(--ink); cursor: pointer;
  border: 1px solid var(--line); border-radius: 999px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none' stroke='%232a2420' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1l4 4 4-4'/%3E%3C/svg%3E") no-repeat right 11px center;
}
.lang:hover { border-color: var(--ink); }
.lang:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }

html:has(.contact-dialog[open]) { overflow: hidden; }
.contact-dialog { margin: auto; width: min(440px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: 4px; background: var(--card); color: var(--ink); box-shadow: 0 32px 64px -24px rgba(42,36,32,.6); }
html[lang="en"] .cover-sub { letter-spacing: .1em; white-space: nowrap; }
.contact-dialog::backdrop { background: rgba(42,36,32,.55); backdrop-filter: blur(3px); }
.contact-card { position: relative; padding: 40px 36px 36px; }
.contact-close { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; font-size: 24px; line-height: 1; color: var(--muted); }
.contact-close:hover { color: var(--ink); }
.contact-dialog h2 { font-size: 28px; padding-right: 20px; }
.contact-dialog h2::after { content: ""; display: block; width: 44px; height: 3px; margin-top: 14px; background: var(--red); }
.contact-dialog p { margin-top: 14px; font-size: 15px; line-height: 1.7; color: var(--ink-2); }
.contact-dialog label { display: block; margin-top: 20px; font-size: 14px; font-weight: 600; }
.contact-dialog input { display: block; width: 100%; height: 44px; margin-top: 6px; padding: 0 12px; font: inherit; font-weight: 400; font-size: 16px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 4px; }
.contact-dialog input:focus { outline: 2px solid var(--ink); outline-offset: -1px; }
.contact-dialog input[aria-invalid="true"] { border-color: var(--red); }
.contact-error { display: block; margin-top: 6px; font-size: 13px; line-height: 1.5; color: var(--red); }
.contact-error:empty { display: none; }
.contact-dialog .btn { width: 100%; margin-top: 24px; }
.contact-dialog .btn:disabled { opacity: .6; cursor: default; }

/* =========================================================
   responsive
   ========================================================= */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav { justify-content: space-between; }
  .panel-wrap { width: 100%; top: auto; height: 46vh; filter: none; }
  .panel { clip-path: none; background: linear-gradient(transparent, var(--paper) 18%); padding-top: 40px; justify-content: flex-start; }
  .cover h1 { font-size: 64px; }
  .cover-tagline { margin-top: 8px; font-size: 18px; }
  .cover .lead { font-size: 16px; margin-top: 10px; }
  .actions { margin-top: 22px; }
  #coverStage { left: 50%; top: 32%; }
  .book { --W: 210px; --H: 294px; --T: 32px; }
  .cover-z { width: 64px; height: 64px; } .cover-title { font-size: 30px; } .cover-front { padding-top: 40px; }
  .cover-sub { letter-spacing: .12em; font-size: 11px; white-space: nowrap; }
  .first-page { padding: 28px 18px 16px 22px; } .first-page h3 { font-size: 17px; } .toc { margin-top: 14px; gap: 9px; font-size: 10px; }
  .shelf-bg { padding-left: 0; }
  .scroll-cue { display: none; }
  .slide { grid-template-columns: 1fr; grid-template-rows: auto 1fr; padding: 84px 22px 96px; gap: 18px; align-items: start; }
  .slide-text p { font-size: 15px; margin-top: 10px; }
  .slide-text h2 { font-size: 28px; margin-top: 8px; }
  .stage { height: 100%; min-height: 0; }
  .index button { padding: 7px 10px; font-size: 0; }
  .index button b { font-size: 11px; }
  .arrow { display: none; }
  .shelves { width: 100%; }
  .article-card { width: 70%; min-width: 0; right: -4px; }
  .hand-note { font-size: 17px; }
  .hand-arrow { width: 32px; margin-left: 12px; }
  .dbox-wrap { left: 24%; width: 52%; top: 29%; }
  .dbox-label { left: 17%; width: 62%; }
  .dbox-label span { font-size: 10px; white-space: normal; }
  .fed-count { font-size: 12px; padding: 4px 9px 4px 19px; left: 30%; top: 86%; }
  .fed-count b { font-size: 16px; }
  .backing { width: 60%; left: 38%; }
  .rewrite { font-size: 18px; left: 36%; top: 0; }
  .stamp { width: 84px; height: 84px; font-size: 18px; right: 0; }
  .app { grid-template-columns: 1fr; } .app-side { display: none; }
  .float { font-size: 12px; padding: 8px 12px; }
  .f2, .f3 { display: none; }
  .faq-grid { grid-template-columns: 1fr; gap: 24px; }
  .faq-side { position: static; }
  .slip summary { padding: 14px; gap: 10px; font-size: 16px; }
  .slip-body p { margin: 0 14px 0 54px; }
  #funnelStage { gap: 10px; min-width: 0; }
  .hg-fig { flex: 0 0 44%; width: 44%; height: auto; max-width: none; }
  .hg-legend { font-size: 12px; flex: 1 1 0; }
  .hg-rows { margin: 8px 0; }
  .hg-rows li { grid-template-columns: 16px 1fr auto; gap: 5px; padding: 4px 0; }
  .hg-rows b { width: 16px; height: 16px; font-size: 10px; }
  .hg-rows i { font-size: 11px; }
  .hg-total b, .hg-kept b { font-size: 14px; }
  #gridStage { justify-content: flex-start; gap: 6px; }
  .pz-rows { grid-template-columns: repeat(2, 1fr); }
  .pz-hint { font-size: 12px; text-align: right; }
  .pz-tip { font-size: 15px; padding: 3px 9px; }
  .pz-row { min-height: 34px; padding: 0 10px; font-size: 13px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .policy { padding: 84px 16px 56px; }
  .policy-sheet { padding: 36px 22px 44px; }
  .policy-sheet section { margin-top: 32px; padding-top: 28px; }
  .policy-sheet h2 { font-size: 23px; }
  #backBook .back { padding: 34px 20px 18px; }
  .back-title { font-size: 20px; white-space: normal; line-height: 1.25; }
  .back-blurb { margin-top: 12px; font-size: 12px; line-height: 1.7; }
  .barcode { padding: 6px 8px 4px; }
  .barcode .bars { height: 30px; width: 116px; }
  .barcode span { font-size: 7px; letter-spacing: .04em; }
  .back-stage .book-shadow { top: 140px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-cue::after { animation: none; }
  .slip, .slip-plus, .slip-sticker, .faq-pips i, .slip::before { transition: none; }
  .dc svg, .dbox-back, .dbox-front, .dbox-flap, .dbox-flag { transition: none; }
}
