/* ==========================================================================
   Dottie — homepage v2 · "a sticker book for food brands"
   Shell = paper / ink / coral. Every other colour belongs to the work.
   ========================================================================== */

:root {
  --paper: #F7F2E8;
  --paper-2: #EFE7D8;
  --ink: #1A1A1A;
  --ink-2: #4A433D;
  --muted: #7A7067;
  --line: rgba(26, 26, 26, .16);
  --coral: #E84854;
  --coral-ink: #C42F3B;   /* coral that passes AA as small text on paper */
  --white: #FFFFFF;

  /* 中文用系统字体：苹方 / 冬青 / 雅黑 / 安卓思源 */
  --f-cn: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", sans-serif;
  --f-head: "Bricolage Grotesque", var(--f-cn);
  --f-display: "Archivo Black", var(--f-cn);
  --f-serif: "DM Serif Display", Georgia, serif;
  --f-pixel: "Silkscreen", ui-monospace, "SF Mono", monospace;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);

  --gutter: clamp(20px, 4vw, 64px);
  --maxw: 1520px;
  --nav-h: 72px;
  --paper-red: var(--coral) url("../assets/img/paper-red.webp") 0 0 / 1200px auto repeat;
}

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-cn);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }
.nw { white-space: nowrap; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--coral); color: var(--white); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; border-radius: 4px; }
.hero :focus-visible, .menu :focus-visible, .footer__inner :focus-visible, .nav:not(.is-solid) :focus-visible { outline-color: var(--white); }

.pixel { font-family: var(--f-pixel); letter-spacing: .06em; text-transform: uppercase; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: fixed; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

/* film grain — 给纯色一点印刷纸的质感。静止、很淡（原来 0.32 + 每 1.2 秒抖一次，像电视雪花） */
.grain {
  position: fixed; inset: 0; z-index: 150; pointer-events: none;
  background: url("../assets/img/grain.png") repeat;
  opacity: .12;
}

/* ---------- buttons ---------- */

.btn {
  --hx: 0px; --hy: 0px; --hr: 0deg;
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  padding: .78em 1.6em;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 3px 3px 0 var(--ink);
  transform: translate(calc(var(--mx, 0px) + var(--hx)), calc(var(--my, 0px) + var(--hy))) rotate(var(--hr));
  transition: transform .35s var(--ease-out), box-shadow .25s, background-color .25s, color .25s;
}
.btn:hover { --hx: -2px; --hy: -2px; --hr: -2deg; box-shadow: 5px 5px 0 var(--ink); }
.btn:active { --hx: 2px; --hy: 2px; box-shadow: 1px 1px 0 var(--ink); }
.btn--ghost { background: transparent; color: var(--white); border-color: var(--white); box-shadow: 3px 3px 0 rgba(0, 0, 0, .22); }
.btn--ghost:hover { background: var(--white); color: var(--coral-ink); box-shadow: 5px 5px 0 rgba(0, 0, 0, .22); }
.btn--small { padding: .55em 1.1em; font-size: 14px; box-shadow: 2px 2px 0 var(--ink); }

/* ---------- custom cursor (fine pointers only, enabled by JS) ---------- */
/* 三档：0 默认 14px 黑点；1 可点 40px 空心圈；2 动作提示（只有 COPY / DRAG）黑点 + 白底描边小标签 */

.cursor {
  position: fixed; left: 0; top: 0; z-index: 180;
  width: 14px; height: 14px; margin: -7px 0 0 -7px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 2px var(--white);
  color: var(--white);
  pointer-events: none;
  opacity: 0;
  transition: width .35s var(--ease-out), height .35s var(--ease-out), margin .35s var(--ease-out), background-color .25s, opacity .25s;
}
.cursor__label { opacity: 0; font-family: var(--f-pixel); letter-spacing: .08em; }
.has-cursor .cursor.is-visible { opacity: 1; }
.cursor.is-down { width: 10px; height: 10px; margin: -5px 0 0 -5px; }
/* 0 档：14px 黑点（现网）；1 档：40px 空心圈；2 档：黑点 + 白底描边小标签（COPY / DRAG 才有） */
.cursor.is-ring {
  width: 40px; height: 40px; margin: -20px 0 0 -20px;
  background: transparent;
  box-shadow: inset 0 0 0 2px var(--ink), inset 0 0 0 3.5px rgba(255, 255, 255, .85), 0 0 0 1.5px rgba(255, 255, 255, .85);
}
.cursor.is-ring.is-down { width: 32px; height: 32px; margin: -16px 0 0 -16px; }
.cursor.is-label { width: 14px; height: 14px; margin: -7px 0 0 -7px; }
.cursor.is-label.is-down { width: 10px; height: 10px; margin: -5px 0 0 -5px; }
.cursor.is-drag { background: var(--ink); }
.cursor__label {
  position: absolute; left: 14px; top: 12px;
  padding: .45em .9em;
  border: 2px solid var(--ink); border-radius: 999px;
  background: var(--white); color: var(--ink);
  font-size: 10px; line-height: 1; white-space: nowrap;
  box-shadow: 2px 2px 0 var(--ink);
  transition: opacity .2s, transform .3s var(--ease-out);
  transform: translate(-4px, -4px) scale(.9);
  transform-origin: 0 0;
}
.cursor.is-label .cursor__label { transform: none; }
.cursor.is-flip .cursor__label { left: auto; right: 14px; transform-origin: 100% 0; }
.cursor.is-label .cursor__label { opacity: 1; }
.has-cursor, .has-cursor * { cursor: none !important; }

/* ---------- nav ---------- */

.nav {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--nav-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  padding: 0 var(--gutter);
  color: var(--white);
  transition: background-color .35s, color .35s, box-shadow .35s, transform .45s var(--ease-out);
}
.nav.is-solid {
  background: rgba(247, 242, 232, .9);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  backdrop-filter: blur(12px) saturate(1.2);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}
.nav.is-hidden { transform: translateY(-100%); }
.nav.is-menu { background: transparent; color: var(--white); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.nav__logo {
  justify-self: start;
  font-family: var(--f-display);
  font-size: 24px;
  letter-spacing: .01em;
  color: var(--coral);
  text-decoration: none;
  text-shadow:
    3px 0 #fff, -3px 0 #fff, 0 3px #fff, 0 -3px #fff,
    2px 2px #fff, -2px -2px #fff, 2px -2px #fff, -2px 2px #fff,
    0 4px 10px rgba(0, 0, 0, .16);
  transition: transform .4s var(--ease-spring);
}
.nav__logo:hover { transform: rotate(-4deg) scale(1.06); }
.nav__links { display: flex; gap: clamp(20px, 3vw, 44px); font-size: 15px; font-weight: 700; }
.nav__links a { position: relative; text-decoration: none; padding: 6px 0; }
.nav__links a::after {
  content: ""; position: absolute; left: 50%; bottom: -2px;
  width: 6px; height: 6px; margin-left: -3px; border-radius: 50%;
  background: currentColor; transform: scale(0); transition: transform .35s var(--ease-spring);
}
.nav__links a:hover::after, .nav__links a.is-current::after { transform: scale(1); }
.nav__pdf { justify-self: end; }
.nav__menu {
  display: none; justify-self: end;
  width: 48px; height: 48px; border: 0; border-radius: 50%;
  background: var(--white); box-shadow: 0 0 0 2px var(--ink);
  cursor: pointer;
}
.nav__menu-lines, .nav__menu-lines::before {
  display: block; width: 18px; height: 2px; margin: 0 auto; background: var(--ink);
  transition: transform .4s var(--ease-out);
}
.nav__menu-lines { position: relative; transform: translateY(-3px); }
.nav__menu-lines::before { content: ""; position: absolute; left: 0; top: 6px; }
.nav__menu[aria-expanded="true"] .nav__menu-lines { transform: rotate(45deg); }
.nav__menu[aria-expanded="true"] .nav__menu-lines::before { transform: translateY(-6px) rotate(-90deg); }

/* mobile menu overlay */
.menu {
  position: fixed; inset: 0; z-index: 90;
  display: grid; align-content: center; justify-items: start; gap: 40px;
  padding: 120px var(--gutter) 60px;
  background: var(--paper-red);
  color: var(--white);
  clip-path: circle(0% at calc(100% - var(--gutter) - 24px) 36px);
  visibility: hidden;
  transition: clip-path .7s var(--ease-out), visibility 0s .7s;
}
.menu.is-open { clip-path: circle(150% at calc(100% - var(--gutter) - 24px) 36px); visibility: visible; transition: clip-path .7s var(--ease-out); }
.menu__links { display: grid; gap: 4px; }
.menu__links a {
  display: flex; align-items: baseline; gap: 16px;
  font-size: clamp(44px, 13vw, 72px); font-weight: 900; line-height: 1.15; text-decoration: none;
  opacity: 0; transform: translateY(24px);
  transition: opacity .5s, transform .6s var(--ease-out);
}
.menu__links a .pixel { font-size: 13px; font-weight: 400; opacity: .8; }
.menu.is-open .menu__links a { opacity: 1; transform: none; }
.menu.is-open .menu__links a:nth-child(2) { transition-delay: .05s; }
.menu.is-open .menu__links a:nth-child(3) { transition-delay: .1s; }
.menu.is-open .menu__links a:nth-child(4) { transition-delay: .15s; }

/* ==========================================================================
   1 · HERO
   ========================================================================== */

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: calc(var(--nav-h) + 8px) var(--gutter) clamp(48px, 6vh, 72px);
  background: var(--paper-red);
  color: var(--white);
  overflow: hidden;
  user-select: none;
}
.hero__meta { display: grid; grid-template-columns: 1fr auto 1fr; font-size: clamp(11px, 1vw, 14px); }
.hero__meta > :last-child { justify-self: end; }
.hero__meta-mid { opacity: .75; }
.hero__stage { display: grid; place-items: center; padding: clamp(12px, 3vh, 40px) 0; }
.hero__logo { position: relative; width: min(74vw, 860px, calc((100svh - 340px) * 1.78)); min-width: 280px; }

.logo-sticker { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 14px 22px rgba(90, 10, 20, .28)); }
.logo-sticker__dottie { font-family: var(--f-display); font-size: 200px; }
.logo-sticker__portfolio { font-family: var(--f-serif); font-style: italic; font-size: 250px; }
.logo-sticker__outline text { fill: var(--white); stroke: var(--white); stroke-width: 58; stroke-linejoin: round; }
.logo-sticker__fill text { fill: var(--coral); }

.hero__tags { list-style: none; margin: 0; padding: 0; }
.tag-sticker {
  position: absolute;
  padding: .5em .95em;
  border-radius: 14px;
  background: var(--white);
  color: var(--coral-ink);
  font-size: clamp(11px, 1vw, 14px);
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
  white-space: nowrap;
  box-shadow: 0 8px 16px rgba(90, 10, 20, .2);
}
.tag-sticker span { display: block; font-weight: 500; letter-spacing: .04em; }
.tag-sticker--a { left: -5%; top: 30%; transform: rotate(-4deg); }
.tag-sticker--b { right: -13%; top: 54%; transform: rotate(5deg); }
.tag-sticker--c { left: 4%; bottom: 0; transform: rotate(3deg); }

.hero__bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 24px; position: relative; z-index: 4; }
.hero__role { margin: 0; max-width: 24em; line-height: 1.45; }
.hero__role strong { display: block; font-size: clamp(18px, 1.6vw, 24px); font-weight: 900; }
.hero__role span { display: block; margin-top: 4px; font-size: clamp(13px, 1vw, 15px); opacity: .88; }
.hero__cta { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 12px; }

.scroll-cue { position: relative; display: grid; place-items: center; width: 108px; height: 108px; color: var(--white); text-decoration: none; }
.scroll-cue svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 16s linear infinite; }
.scroll-cue text { font-family: var(--f-pixel); font-size: 10.4px; letter-spacing: .14em; fill: currentColor; }
.scroll-cue__arrow { font-size: 22px; font-weight: 900; animation: nudge 1.8s var(--ease-out) infinite; }
.scroll-cue:hover svg { animation-duration: 5s; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes nudge { 0%, 100% { transform: translateY(-4px); } 50% { transform: translateY(5px); } }

/* draggable character stickers */
.stickers { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.sticker {
  --dx: 0px; --dy: 0px; --px: 0px; --py: 0px; --tilt: 0deg; --s: 1;
  position: absolute;
  left: var(--x); top: var(--y);
  width: var(--w);
  padding: 0; border: 0; background: none;
  pointer-events: auto;
  touch-action: none;
  cursor: grab;
  transform: translate3d(calc(var(--dx) + var(--px)), calc(var(--dy) + var(--py)), 0) rotate(calc(var(--r) + var(--tilt))) scale(var(--s));
  filter: drop-shadow(0 6px 10px rgba(70, 10, 15, .32));
  transition: transform .6s var(--ease-out), filter .3s;
  will-change: transform;
}
.sticker img { width: 100%; height: auto; pointer-events: none; user-select: none; -webkit-user-drag: none; }
.sticker::after {
  content: attr(data-name);
  position: absolute; left: 50%; top: -10px;
  padding: 5px 11px; border-radius: 999px;
  background: var(--ink); color: var(--white);
  font-size: 12px; font-weight: 700; line-height: 1.2; white-space: nowrap;
  transform: translate(-50%, -100%) rotate(calc(-1 * var(--r))) scale(.6);
  opacity: 0;
  transition: opacity .25s, transform .4s var(--ease-spring);
  pointer-events: none;
}
.sticker:hover, .sticker:focus-visible { --s: 1.06; --tilt: -4deg; filter: drop-shadow(0 16px 20px rgba(70, 10, 15, .38)); z-index: 5; }
.sticker:hover::after, .sticker:focus-visible::after, .sticker.is-poked::after { opacity: 1; transform: translate(-50%, -100%) rotate(calc(-1 * var(--r))) scale(1); }
.sticker:focus-visible { outline: 3px dashed var(--white); outline-offset: 8px; border-radius: 16px; }
.sticker.is-dragging { --s: 1.1; --tilt: 6deg; cursor: grabbing; transition: filter .2s; filter: drop-shadow(0 24px 26px rgba(70, 10, 15, .42)); }
.sticker.is-dragging::after { opacity: 0; }
.sticker.is-flying { transition: filter .3s; }
.sticker.is-poked img { animation: wiggle .6s var(--ease-out); }
@keyframes wiggle {
  0%, 100% { transform: rotate(0); }
  20% { transform: rotate(-12deg) scale(1.08); }
  45% { transform: rotate(9deg); }
  70% { transform: rotate(-5deg); }
}
.drag-hint {
  position: absolute; left: 7%; top: calc(14% + clamp(124px, 12.4vw, 200px));
  font-size: 12px; color: var(--white); opacity: .9; transform: rotate(-6deg);
  transition: opacity .4s;
}
.has-dragged .drag-hint { opacity: 0; }

.torn-edge { position: absolute; left: 0; bottom: -1px; z-index: 5; width: 100%; height: 26px; fill: var(--paper); pointer-events: none; }
.torn-edge--top { top: -1px; bottom: auto; }

/* hero entrance — only when JS is present to start it */
.js .hero__logo, .js .tag-sticker, .js .hero__bar > *, .js .hero__meta, .js .sticker { opacity: 0; }
.is-ready .hero__meta { animation: fade-in .8s ease-out .1s forwards; }
.is-ready .hero__logo { animation: slap .95s var(--ease-spring) .15s forwards; }
.is-ready .tag-sticker { animation: pop .6s var(--ease-spring) forwards; }
.is-ready .tag-sticker--a { animation-delay: .75s; }
.is-ready .tag-sticker--b { animation-delay: .85s; }
.is-ready .tag-sticker--c { animation-delay: .95s; }
.is-ready .hero__bar > * { animation: rise .9s var(--ease-out) forwards; }
.is-ready .hero__bar > :nth-child(1) { animation-delay: .9s; }
.is-ready .hero__bar > :nth-child(2) { animation-delay: 1s; }
.is-ready .hero__bar > :nth-child(3) { animation-delay: 1.1s; }
.is-ready .sticker { animation: stick-on .6s var(--ease-spring) forwards; animation-delay: calc(1s + var(--i, 0) * .09s); }
.is-ready.is-settled .sticker, .is-ready.is-settled .hero__logo, .is-ready.is-settled .tag-sticker,
.is-ready.is-settled .hero__bar > *, .is-ready.is-settled .hero__meta { animation: none; opacity: 1; }
@keyframes fade-in { to { opacity: 1; } }
@keyframes slap {
  0%   { opacity: 0; transform: scale(1.3) rotate(-7deg); }
  55%  { opacity: 1; transform: scale(.96) rotate(1.2deg); }
  100% { opacity: 1; transform: none; }
}
@keyframes pop {
  0%   { opacity: 0; scale: .2; }
  100% { opacity: 1; scale: 1; }
}
@keyframes rise {
  0%   { opacity: 0; translate: 0 24px; }
  100% { opacity: 1; translate: 0 0; }
}
@keyframes stick-on {
  0%   { opacity: 0; scale: 1.7; }
  100% { opacity: 1; scale: 1; }
}

/* ==========================================================================
   2 · TAPES
   ========================================================================== */

.tapes { position: relative; height: clamp(150px, 13vw, 196px); overflow: hidden; margin-top: -6px; }
.tape {
  position: absolute; left: -5%; width: 110%;
  padding: 13px 0;
  white-space: nowrap;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .1);
}
.tape--coral { top: 18%; z-index: 2; background: var(--coral); color: var(--white); font-weight: 900; font-size: clamp(16px, 1.9vw, 26px); transform: rotate(-2.4deg); }
.tape--ink { top: 56%; background: var(--ink); color: var(--paper); font-family: var(--f-pixel); font-size: clamp(12px, 1.4vw, 18px); transform: rotate(1.8deg); }
.tape__track { display: inline-flex; will-change: transform; }

/* ==========================================================================
   SECTIONS (shared)
   ========================================================================== */

.section__head {
  display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap;
  gap: 24px 48px;
  margin-bottom: clamp(40px, 5vw, 80px);
}
.section__title { position: relative; display: flex; align-items: flex-start; margin: 0; padding-top: .55em; font-size: clamp(36px, 5vw, 76px); line-height: 1; }
.section__no { position: absolute; left: 0; top: 0; font-size: .26em; color: var(--coral-ink); }
.title-box {
  display: inline-block;
  padding: .08em .3em .1em;
  border: 3px solid var(--ink);
  background: var(--white);
  color: var(--ink);
  font-weight: 900;
  line-height: 1.12;
  box-shadow: 6px 6px 0 var(--coral);
}
.js [data-reveal-title] { clip-path: inset(-12px 100% -12px -12px); transition: clip-path 1s var(--ease-out); }
.js [data-reveal-title].is-in { clip-path: inset(-12px -12px -12px -12px); }
.js [data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease-out), transform 1s var(--ease-out); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ==========================================================================
   SHARED WIDGETS — 项目页也在用，别删
   ========================================================================== */

.round-btn {
  --rot: 0deg;
  display: grid; place-items: center;
  width: clamp(52px, 4.6vw, 68px); aspect-ratio: 1;
  margin-left: auto;
  border-radius: 50%;
  background: var(--pc-ink); color: var(--pc);
  font-size: clamp(20px, 1.8vw, 28px); font-weight: 900; line-height: 1;
  text-decoration: none;
  transform: translate(var(--mx, 0px), var(--my, 0px)) rotate(var(--rot));
  transition: transform .5s var(--ease-spring);
}
.round-btn:hover, .round-btn:focus-visible { --rot: 45deg; }

.slogan {
  align-self: flex-start;
  margin: clamp(18px, 2.2vw, 34px) 0 0;
  padding: .45em .85em .5em;
  border-radius: 14px;
  background: var(--white); color: var(--ink);
  font-size: clamp(16px, 1.5vw, 24px); font-weight: 900; line-height: 1.25;
  box-shadow: 0 10px 22px rgba(30, 15, 5, .16);
  transform: rotate(-2.5deg);
  transition: transform .5s var(--ease-spring);
}
.slogan .pixel { display: block; margin-bottom: 4px; font-size: 10px; font-weight: 400; color: var(--coral-ink); }
.slogan--latin { font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: clamp(18px, 1.7vw, 27px); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips li { padding: .3em .9em; border-radius: 999px; background: var(--pc-chip); color: #1A1A1A; font-size: 13px; font-weight: 700; line-height: 1.4; }

.shot { position: absolute; display: block; object-fit: cover; }
.shot--main {
  top: 0; right: 0; width: 92%; height: 86%;
  border-radius: clamp(12px, 1.4vw, 22px);
  box-shadow: 0 24px 50px rgba(30, 15, 5, .22);
  transform: translateY(var(--para, 0px));
  transition: scale .9s var(--ease-out);
}
.shot--alt {
  left: 0; bottom: 0; width: 28%; aspect-ratio: 5 / 7; height: auto;
  border: clamp(5px, .5vw, 8px) solid var(--white);
  border-radius: 10px;
  box-shadow: 0 18px 36px rgba(30, 15, 5, .3);
  transform: translateY(calc(var(--para, 0px) * -1.6)) rotate(-6deg);
}
.shot--wide { width: 46%; aspect-ratio: 16 / 9; }

/* ==========================================================================
   6 · ABOUT
   ========================================================================== */

.about__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 88px); align-items: center; }
.about__photo { position: relative; margin: 0; }
.about__photo img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 30%;
  border: clamp(6px, .7vw, 10px) solid var(--white);
  border-radius: 20px;
  box-shadow: 0 30px 60px rgba(60, 30, 10, .18);
  transform: rotate(-2deg);
}
.about__hello {
  position: absolute; right: -14px; bottom: 9%;
  padding: .15em .6em .22em;
  border-radius: 999px;
  background: var(--coral); color: var(--white);
  font-family: var(--f-serif); font-style: italic; font-size: clamp(22px, 2.2vw, 34px);
  box-shadow: 0 10px 20px rgba(90, 10, 20, .25);
  transform: rotate(-7deg);
}

.ticket {
  position: relative;
  padding: clamp(24px, 3.4vw, 52px);
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 2px 0 rgba(0, 0, 0, .04), 0 30px 60px rgba(60, 30, 10, .12);
}
.ticket::before, .ticket::after {   /* punched notches */
  content: ""; position: absolute; top: calc(var(--notch, 62%) - 16px);
  width: 32px; height: 32px; border-radius: 50%; background: var(--paper);
}
.ticket::before { left: -16px; }
.ticket::after { right: -16px; }
.ticket__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 12px; }
.ticket__label { padding: .2em .6em; border: 2px solid var(--ink); }
.ticket__serial { color: var(--muted); }
.ticket__name { margin: .38em 0 .12em; font-family: var(--f-display); font-weight: 400; font-size: clamp(52px, 6.2vw, 104px); line-height: 1; letter-spacing: -.01em; }
.ticket__name small { margin-left: .2em; font-family: var(--f-cn); font-weight: 900; font-size: .38em; letter-spacing: 0; }
.ticket__meta { margin: 0 0 1em; font-weight: 700; }
.ticket__intro { margin: 0; padding-bottom: 28px; max-width: 34em; font-size: clamp(15px, 1.2vw, 18px); color: var(--ink-2); border-bottom: 2px dashed var(--line); }

.timeline {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px;
  margin: 36px 0 26px; padding: 0; list-style: none;
  border-top: 3px solid var(--ink);
}
.timeline li { position: relative; padding-top: 16px; font-size: 13px; line-height: 1.4; }
.timeline li::before {
  content: ""; position: absolute; left: 0; top: -10px;
  width: 17px; height: 17px; border: 3px solid var(--ink); border-radius: 50%;
  background: var(--coral);
  transition: transform .4s var(--ease-spring);
}
.timeline li:hover::before { transform: scale(1.3); }
.timeline b { display: block; font-size: 15px; font-weight: 400; }
.timeline span { display: block; margin-top: 2px; font-weight: 700; }
.timeline small { color: var(--muted); font-size: 12px; }
.barcode {
  height: 52px;
  background: repeating-linear-gradient(90deg,
    var(--ink) 0 3px, transparent 3px 5px, var(--ink) 5px 6px, transparent 6px 10px,
    var(--ink) 10px 14px, transparent 14px 16px, var(--ink) 16px 17px, transparent 17px 21px,
    var(--ink) 21px 23px, transparent 23px 27px);
}

.mini-title { margin: 0 0 18px; font-size: 12px; font-weight: 400; color: var(--coral-ink); }
.brand-wall { display: flex; flex-wrap: wrap; gap: 14px 12px; margin: 0; padding: 0; list-style: none; }
.brand-wall li {
  padding: .45em 1em;
  border: 2px solid var(--ink); border-radius: 12px;
  background: var(--white);
  font-size: clamp(15px, 1.25vw, 18px); font-weight: 900;
  box-shadow: 3px 3px 0 var(--coral);
  transform: rotate(var(--r));
  transition: transform .45s var(--ease-spring);
}
.brand-wall li:hover { transform: rotate(0deg) scale(1.06); }
.note { margin: 18px 0 0; font-size: 12px; color: var(--muted); }

/* ==========================================================================
   7 · FOOTER / CONTACT
   ========================================================================== */

.footer {
  position: relative;
  margin-top: clamp(32px, 5vw, 72px);
  padding-top: clamp(96px, 11vw, 168px);
  background: var(--paper-red);
  color: var(--white);
  overflow: hidden;
}
.footer__inner {
  display: grid; justify-items: center; gap: clamp(28px, 3.6vw, 52px);
  max-width: var(--maxw); margin: 0 auto;
  padding: 0 var(--gutter) clamp(64px, 7vw, 112px);
  text-align: center;
}
.footer__kicker { margin: 0; font-size: 12px; letter-spacing: .14em; opacity: .9; }
.end-sticker { width: min(92vw, 880px); height: auto; overflow: visible; filter: drop-shadow(0 14px 22px rgba(90, 10, 20, .28)); }
.end-sticker text { font-family: var(--f-cn); font-size: 200px; font-weight: 900; text-anchor: middle; transform-box: fill-box; transform-origin: 50% 90%; }
.end-sticker__outline text { fill: var(--white); stroke: var(--white); stroke-width: 46; stroke-linejoin: round; }
.end-sticker__fill text { fill: var(--coral); }
.end-sticker text:nth-child(2) { --d: 1; }
.end-sticker text:nth-child(3) { --d: 2; }
.end-sticker text:nth-child(4) { --d: 3; }
.end-sticker.is-hopping text { animation: hop .7s var(--ease-spring) calc(var(--d, 0) * 70ms); }
@keyframes hop {
  0%, 100% { transform: none; }
  40% { transform: translateY(-14%) rotate(-5deg); }
  70% { transform: translateY(2%) rotate(2deg); }
}

.contact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; width: min(100%, 640px); }
.contact__item {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  min-height: 150px; padding: 22px;
  border: 0; border-radius: 22px;
  background: var(--white); color: var(--ink);
  text-decoration: none;
  box-shadow: 0 12px 26px rgba(90, 10, 20, .2);
  cursor: pointer;
  transition: transform .5s var(--ease-spring), box-shadow .3s;
}
.contact__item:hover { transform: translateY(-5px) rotate(-1.5deg); box-shadow: 0 20px 34px rgba(90, 10, 20, .26); }
.contact__item .pixel { font-size: 11px; color: var(--coral-ink); }
.contact__item b { font-size: clamp(15px, 1.3vw, 18px); font-weight: 900; word-break: break-all; }
.footer__strip {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px;
  padding: 16px var(--gutter);
  background: var(--white); color: var(--ink);
  font-size: 13px;
}
.footer__strip .pixel { font-size: 11px; color: var(--muted); }
.beian { margin-left: 1em; color: var(--muted); text-decoration: none; white-space: nowrap; }
.beian:hover { color: var(--coral-ink); text-decoration: underline; }
.to-top { justify-self: end; font-weight: 700; text-decoration: none; }
.to-top:hover { color: var(--coral-ink); }

/* ---------- toast ---------- */

.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 170;
  padding: 11px 20px; border-radius: 999px;
  background: var(--ink); color: var(--paper);
  font-size: 14px; font-weight: 700;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
  transform: translate(-50%, 24px); opacity: 0; pointer-events: none;
  transition: opacity .3s, transform .45s var(--ease-spring);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1180px) {
  .tag-sticker--b { right: -6%; }
}

@media (min-width: 901px) and (max-width: 1180px) {
  .drag-hint { display: none; }
}

@media (max-width: 900px) {
  :root { --nav-h: 64px; }
  .nav { grid-template-columns: 1fr auto auto; }
  .nav__links { display: none; }
  .nav__menu { display: grid; place-items: center; }
  .hero__meta { grid-template-columns: 1fr 1fr; }
  .hero__meta-mid { display: none; }
  .hero__bar { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 18px; }
  .hero__cta { justify-content: center; }
  .scroll-cue { display: none; }

  .about__grid { grid-template-columns: 1fr; }
  .about__photo { max-width: 440px; }
  .contact { grid-template-columns: 1fr; width: min(100%, 420px); }
  .contact__item { min-height: 0; }
  .footer__strip { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .to-top { justify-self: center; }
}

@media (max-width: 600px) {
  .hero { padding-top: calc(var(--nav-h) + 4px); padding-bottom: 172px; }
  .hero__logo { width: 100%; min-width: 0; }
  .hero__tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 10px; }
  .tag-sticker { position: static; transform: none !important; padding: .35em .75em; font-size: 12px; }
  .tag-sticker span { display: none; }
  .hero__stage { align-content: center; padding: 72px 0 28px; }
  .sticker--sm, .drag-hint { display: none; }
  /* !important beats the inline desktop positions */
  .sticker:nth-of-type(1) { --x: 4% !important;  --y: 10.5% !important; --w: 74px !important; }
  .sticker:nth-of-type(2) { --x: 81% !important; --y: 10% !important; --w: 54px !important; }
  .sticker:nth-of-type(3) { --x: 50% !important; --y: calc(100% - 150px) !important; --w: 164px !important; }
  .sticker:nth-of-type(4) { --x: 6% !important;  --y: calc(100% - 158px) !important; --w: 132px !important; }
  .hero__role strong { font-size: 18px; }
  .timeline { grid-template-columns: 1fr; gap: 12px; margin-top: 28px; padding-left: 22px; border-top: 0; border-left: 3px solid var(--ink); }
  .timeline li { padding-top: 0; }
  .timeline li::before { left: -32px; top: 2px; }
  .ticket { --notch: 34%; }
}

/* touch: no hover previews, no custom cursor */
@media (hover: none) {
  .cursor { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .hero__logo, .js .tag-sticker, .js .hero__bar > *, .js .hero__meta, .js .sticker { opacity: 1; }
  .js [data-reveal], .js [data-reveal-title] { opacity: 1; transform: none; clip-path: none; }
}

/* ==========================================================================
   整页切换：四页叠放在固定容器里，JS 只改每页的 translate 和压暗层
   ========================================================================== */
/* 只有首页（<html class="is-paged">）整页切换；项目页还是正常滚动 */
html.is-paged, html.is-paged body { height: 100%; overflow: hidden; overscroll-behavior: none; }
html.is-paged { scroll-behavior: auto; }
.pages { position: fixed; inset: 0; overflow: hidden; touch-action: none; }
.page {
  position: absolute; inset: 0;
  overflow: hidden;
  background: var(--paper);
  translate: 0 100%;
  visibility: hidden;
}
.page.is-current { translate: 0 0; visibility: visible; }
.page__shade { position: absolute; inset: 0; z-index: 60; background: #140a06; opacity: 0; pointer-events: none; }

/* 页内容器：内容放不下时页内滚动（5.1.5），平时不出现滚动条 */
.page__inner {
  position: relative;
  display: flex; flex-direction: column;
  height: 100%;
  max-width: var(--maxw); margin: 0 auto;
  padding: calc(var(--nav-h) + 12px) var(--gutter) clamp(18px, 3vh, 32px);
  overflow-y: auto; overflow-x: hidden;
  scrollbar-width: none;
}
.page__inner::-webkit-scrollbar { display: none; }
.page.is-overflow .page__inner { touch-action: pan-y; }

/* 入场：页头 → 主体 → 辅助，间隔 80ms；过渡进行到约 45% 时由 JS 加 .is-in */
.page [data-in] { opacity: 0; translate: 0 14px; transition: opacity .35s ease, translate .5s var(--ease-out); transition-delay: calc(var(--k, 0) * 45ms); }
.page.is-in [data-in] { opacity: 1; translate: 0 0; }
.is-reduced .page [data-in] { opacity: 1; translate: none; transition: none; }

/* 区块标题统一收小，给一屏留空间 */
.page .section__head { margin: 0 0 clamp(14px, 2.4vh, 28px); }
.page .section__title { font-size: clamp(28px, 3vw, 44px); }
.page .title-box { box-shadow: 5px 5px 0 var(--coral); }

/* ---------- 导航：红底页透明白字，米白页实底墨字 ---------- */
.nav__links a.is-current::after { transform: scale(1); }

/* ---------- 右侧页码点（> 900px） ---------- */
.dots {
  position: fixed; right: clamp(14px, 1.6vw, 26px); top: 50%; z-index: 90;
  display: grid; gap: 12px;
  translate: 0 -50%;
  color: var(--ink);
  transition: color .4s;
}
.on-red .dots { color: var(--white); }
.dots button {
  position: relative;
  width: 10px; height: 10px; padding: 0;
  border: 2px solid currentColor; border-radius: 999px;
  background: transparent; color: inherit;
  transition: height .45s var(--ease-out), background-color .3s;
}
.dots button::before { content: ""; position: absolute; inset: -8px; }   /* 点击热区 26px */
.dots button[aria-current="true"] { height: 30px; background: currentColor; }
.dots span {
  position: absolute; right: 22px; top: 50%;
  padding: 3px 9px; border-radius: 6px;
  background: var(--ink); color: var(--paper);
  font-size: 12px; font-weight: 700; line-height: 1.4; white-space: nowrap;
  opacity: 0; translate: 6px -50%;
  transition: opacity .2s, translate .3s var(--ease-out);
  pointer-events: none;
}
.dots button:hover span, .dots button:focus-visible span { opacity: 1; translate: 0 -50%; }

/* ==========================================================================
   ① 首页：红纸 = 一屏 − 胶带；胶带压住撕纸边
   ========================================================================== */
:root {
  --tapes-h: clamp(88px, 7vw, 104px);
  --tapes-lap: 18px;
  --vh: 100vh;
}
@supports (height: 100dvh) { :root { --vh: 100dvh; } }
.page--hero { --hero-h: calc(var(--vh) - var(--tapes-h) + var(--tapes-lap) - 8px); }
.page--hero .hero {
  min-height: 0;
  height: var(--hero-h);
  padding-bottom: clamp(36px, 4.5vh, 56px);
}
/* 扣掉的 300px = 导航 80 + 年份行 24 + 底栏 108 + 下边距约 40 + 余量 */
.page--hero .hero__logo { width: min(74vw, 860px, calc((var(--hero-h) - 300px) * 1.78)); }
.page--hero .hero__stage { padding: clamp(8px, 2vh, 24px) 0; }
.page--hero .sticker { opacity: 1; }

/* 胶带封条（沿用 v0.3）：墨色条压住撕纸边，珊瑚条落在米白纸上 */
.tapes--seam {
  z-index: 6;
  height: var(--tapes-h);
  margin-top: calc(var(--tapes-lap) * -1);
  overflow: visible;
}
.tapes--seam .tape { padding: 7px 0; box-shadow: 0 6px 14px rgba(0, 0, 0, .14); }
.tapes--seam .tape--ink { top: 6px; z-index: 1; font-size: clamp(11px, .95vw, 14px); transform: rotate(.9deg); }
.tapes--seam .tape--coral { top: 40%; z-index: 2; font-size: clamp(14px, 1.3vw, 19px); transform: rotate(-1.2deg); }
.tapes--seam .tape__track { animation: marquee 46s linear infinite; }
.tapes--seam .tape--ink .tape__track { animation-direction: reverse; animation-duration: 38s; }
.page:not(.is-current) .tape__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.is-reduced .tapes--seam .tape__track { animation: none; }

/* ==========================================================================
   ② 作品：左右翻页
   ========================================================================== */
.work__head {
  flex: none;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  margin-bottom: clamp(14px, 2.4vh, 26px);
}
.pager { display: flex; align-items: center; gap: 12px; }
.pager__count { display: flex; align-items: baseline; gap: 6px; margin: 0 6px 0 0; font-size: 12px; color: var(--muted); }
.pager__count b { font-family: var(--f-display); font-size: 26px; font-weight: 400; letter-spacing: 0; color: var(--ink); }
.arrow {
  display: grid; place-items: center;
  width: 48px; height: 48px; padding: 0;
  border: 2px solid var(--ink); border-radius: 50%;
  background: var(--white); color: var(--ink);
  font-size: 20px; font-weight: 900; line-height: 1;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform .35s var(--ease-out), box-shadow .25s, opacity .25s;
}
.arrow:hover:not(:disabled) { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.arrow:active:not(:disabled) { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.arrow:disabled { opacity: .28; box-shadow: none; }

/* 舞台：右侧出血到视口边，露出下一张 */
.stage {
  position: relative; flex: 1; min-height: 0;
  margin-right: calc((100% - 100vw) / 2);
  container-type: size;
  user-select: none;
  clip-path: inset(-60px 0 -60px -4px);   /* 左边切在内容边上，不让上一张的边露在页边距里；上下留出贴纸和投影 */
}
.track {
  --peek: clamp(72px, 6vw, 110px);   /* 右侧露出下一张的宽度，JS 读取 */
  --gap: 32px;
  display: flex; gap: var(--gap);
  height: 100%;
  will-change: transform;
}
.slide {
  flex: none;
  width: var(--slide-w, 80vw);
  height: 100%;
  display: grid; grid-template-columns: minmax(0, 1fr) clamp(300px, 23vw, 360px);
  align-items: center; gap: clamp(28px, 3.6vw, 60px);
}
.slide__fig { position: relative; justify-self: start; width: min(100%, calc((100cqh - 28px) * 1.6 + 28px)); }
.slide__media {
  display: block;
  padding: 14px;
  border-radius: 22px;
  background: var(--pc);
  box-shadow: 0 0 0 var(--ink);
  transition: transform .35s var(--ease-out), box-shadow .3s var(--ease-out);
}
.slide__img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px; background: var(--paper-2); }
.track.is-jumping, .track.is-jumping * { transition: none !important; }
.slide.is-current .slide__media:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--ink); }
.slide:not(.is-current) .slide__media { pointer-events: none; }

/* 角色贴纸：翻到这一页时从图后弹出 */
.slide__sticker {
  position: absolute; right: -16px; top: -30px; z-index: 3;
  width: clamp(80px, 7vw, 124px);
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .25));
  opacity: 0; transform: rotate(10deg) translateY(18px) scale(.7);
  transition: opacity .3s, transform .65s var(--ease-spring);
  pointer-events: none;
}
.slide.is-current .slide__sticker { opacity: 1; transform: rotate(-4deg); transition-delay: .25s; }
/* 备用图：悬停大图时像拍立得一样从左下角斜着弹出（沿用 v0.3） */
.slide__alt {
  position: absolute; left: 4%; bottom: 8%; z-index: 2;
  border: clamp(4px, .45vw, 7px) solid var(--white); border-radius: 8px;
  box-shadow: 0 16px 30px rgba(30, 15, 5, .32);
  object-fit: cover;
  opacity: 0; transform: translate(-12px, 24px) rotate(3deg) scale(.82); transform-origin: 0 100%;
  transition: opacity .3s, transform .55s var(--ease-spring);
  pointer-events: none;
}
.slide__alt--tall { width: 22%; aspect-ratio: 5 / 7; }
.slide__alt--wide { width: 34%; aspect-ratio: 16 / 9; }
.slide.is-current .slide__fig:hover .slide__alt { opacity: 1; transform: rotate(-6deg); }

/* 文字栏：比大图晚 80ms 出发，形成前后层次 */
.slide__info {
  display: flex; flex-direction: column; align-items: flex-start; gap: clamp(10px, 1.6vh, 16px);
  min-width: 0;
  opacity: .2; translate: 48px 0;
  transition: opacity .5s ease, translate .7s cubic-bezier(.22, 1, .36, 1);
}
.slide.is-before .slide__info { translate: -48px 0; }
.slide.is-current .slide__info { opacity: 1; translate: 0 0; transition-delay: .08s; }
.is-reduced .slide__info, .is-reduced .slide__sticker, .is-reduced .slide__alt { transition: none; translate: none; }
.is-reduced .slide__info { opacity: 1; }
.slide__cat { margin: 0; font-size: 12px; color: var(--coral-ink); }
.slide__name { margin: 0; font-size: clamp(30px, 3.4vw, 54px); font-weight: 900; line-height: 1.1; letter-spacing: -.01em; }
.slide__name--latin { font-family: var(--f-head); font-weight: 800; letter-spacing: -.02em; }
.slide__name em { font-family: var(--f-serif); font-weight: 400; letter-spacing: 0; }
.slide__name small { display: block; margin-top: .15em; font-family: var(--f-cn); font-size: .5em; font-weight: 900; letter-spacing: 0; }
.slide__desc { margin: 0; font-size: clamp(14px, 1.1vw, 17px); line-height: 1.75; color: var(--ink-2); }
.slide { --pc-chip: var(--paper-2); }
.slide__btn { margin-top: 6px; }

/* 缩略图条：12 个一行，精选 4 + 更多 8 */
.rail {
  flex: none;
  display: flex; align-items: center; gap: 10px;
  margin-top: clamp(12px, 2.2vh, 24px);
  padding: 8px 2px 4px;
  overflow-x: auto; scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail__label { flex: none; font-size: 10px; color: var(--muted); writing-mode: vertical-rl; letter-spacing: .2em; }
.rail__sep { flex: none; width: 2px; height: 34px; margin: 0 6px; background: var(--line); }
.rail__item {
  flex: none;
  width: clamp(64px, 5.6vw, 88px); aspect-ratio: 16 / 10;
  padding: 0;
  border: 2px solid transparent; border-radius: 8px;
  overflow: hidden;
  background: var(--paper-2);
  opacity: .5;
  transition: transform .3s var(--ease-out), opacity .3s, border-color .3s, box-shadow .3s;
}
.rail__item img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.rail__item:hover { opacity: 1; transform: translateY(-3px); }
.rail__item[aria-current="true"] { opacity: 1; border-color: var(--ink); transform: translateY(-4px); box-shadow: 3px 3px 0 var(--ink); }
.work-seg { display: none; }

/* ==========================================================================
   ③ 关于：照片 + 档案卡并排，合作品牌在卡下；擅长已删
   ========================================================================== */
.page--about .about__grid { flex: 1; min-height: 0; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: clamp(28px, 4.4vw, 80px); }
.page--about .about__photo { justify-self: center; width: min(100%, calc(var(--vh) * .62 * .8)); }
.page--about .about__side { display: grid; gap: clamp(16px, 2.6vh, 28px); }
.page--about .ticket { padding: clamp(22px, 2.6vw, 40px); }
.page--about .ticket__name { font-size: clamp(44px, 4.6vw, 80px); }
.page--about .ticket__meta { margin-bottom: .7em; }
.page--about .ticket__intro { padding-bottom: 18px; font-size: clamp(14px, 1.1vw, 16px); }
.page--about .timeline { margin: 28px 0 18px; }
.page--about .barcode { height: 36px; }
.page--about .mini-title { margin-bottom: 12px; }
/* 不可点元素：去掉像按钮的 hover（沿用 v0.3） */
.brand-wall li { border: 0; font-size: clamp(14px, 1.1vw, 16px); box-shadow: 0 6px 14px rgba(60, 30, 10, .12), 0 0 0 1px rgba(26, 26, 26, .06); }
.brand-wall li:hover { transform: rotate(var(--r)); }
.timeline li:hover::before { transform: none; }

/* 矮屏（平板横放、小笔记本）：关于页多了一行「占位」说明，把间距收一收，仍然一屏装下 */
@media (min-width: 901px) and (max-height: 820px) {
  .page--about .about__side { gap: 14px; }
  .page--about .ticket { padding: 20px 28px; }
  .page--about .ticket__name { font-size: clamp(40px, 4vw, 64px); }
  .page--about .ticket__intro { padding-bottom: 12px; }
  .page--about .timeline { margin: 20px 0 12px; }
  .page--about .barcode { height: 28px; }
  .page--about .note { margin-top: 8px; }
}

/* ==========================================================================
   ④ 联系：红纸底，一屏
   ========================================================================== */
/* 红纸底由 .footer 自带（style.css 里的 --paper-red，路径相对 style.css 才对）；这里不要再写一遍 */
.page--contact .footer { display: flex; flex-direction: column; height: 100%; margin: 0; padding: 0; }
.page--contact .footer__inner {
  flex: 1; min-height: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(14px, 2.6vh, 30px);
  width: 100%;
  padding: calc(var(--nav-h) + 8px) var(--gutter) clamp(16px, 3vh, 32px);
  overflow-y: auto; scrollbar-width: none;
}
.footer__no { margin: 0; font-size: 11px; letter-spacing: .14em; opacity: .75; }
.page--contact .end-sticker { width: min(92vw, 760px, calc((var(--vh) - 470px) * 3.46)); }
.page--contact .footer__strip { flex: none; }

/* ==========================================================================
   平板 901–1180
   ========================================================================== */
@media (max-width: 1180px) {
  .track { --peek: 64px; --gap: 28px; }
  .slide { grid-template-columns: minmax(0, 1fr) 280px; gap: 28px; }
}

/* ==========================================================================
   手机 ≤ 900
   ========================================================================== */
@media (max-width: 900px) {
  .dots { display: none; }
  .page__inner { padding-top: calc(var(--nav-h) + 4px); }

  /* 作品：上图下文，露出约 16px；缩略图条换成 12 段进度条 */
  .work__head { align-items: center; margin-bottom: 14px; }
  .page .section__title { font-size: 28px; }
  .arrow { width: 40px; height: 40px; font-size: 17px; }
  .pager { gap: 8px; }
  .pager__count b { font-size: 20px; }
  .track { --peek: 18px; --gap: 12px; }
  .slide { grid-template-columns: 1fr; grid-template-rows: auto auto; align-items: start; align-content: center; gap: 18px; }
  .slide__fig { width: 100%; }
  .slide__media { padding: 8px; border-radius: 16px; }
  .slide__img { border-radius: 10px; }
  .slide__sticker { right: -6px; top: -22px; width: 74px; }
  .slide__alt { display: none; }
  .slide__info { gap: 10px; translate: 24px 0; }
  .slide.is-before .slide__info { translate: -24px 0; }
  .slide__name { font-size: 26px; display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .slide__name small { display: inline; margin: 0 0 0 .3em; }
  .slide__desc { font-size: 14px; line-height: 1.65; display: -webkit-box; overflow: hidden; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
  .slide .chips li { font-size: 12px; }
  .slide__btn { margin-top: 2px; padding: .7em 1.35em; font-size: 15px; }
  .rail { display: none; }
  /* 触控热区用 padding 撑到 28px 高；用 ::before 伸出去会算进页内可滚动范围，把页顶出一屏 */
  .work-seg { flex: none; display: flex; gap: 4px; margin-top: 2px; }
  .work-seg button { flex: 1; box-sizing: content-box; height: 4px; padding: 12px 0; border: 0; background: var(--line) content-box; background-clip: content-box; transition: background-color .3s; }
  .work-seg button[aria-current="true"] { background-color: var(--ink); }

  /* 关于：照片缩成拍立得小图，挂在档案卡右上角；经历单列 */
  .page--about .about__grid { position: relative; display: block; flex: none; }
  .page--about .about__photo { position: absolute; right: 2px; top: -8px; z-index: 2; width: 104px; max-width: none; }
  .page--about .about__photo img { border-width: 5px; border-radius: 10px; transform: rotate(-4deg); box-shadow: 0 12px 24px rgba(60, 30, 10, .2); }
  .page--about .about__hello { right: -6px; bottom: -6px; font-size: 15px; }
  .page--about .ticket { padding: 18px 18px 16px; border-radius: 18px; }
  .page--about .ticket::before, .page--about .ticket::after { display: none; }
  .page--about .ticket__serial { display: none; }
  .page--about .ticket__name { max-width: calc(100% - 100px); font-size: 40px; }
  .page--about .ticket__name small { display: block; margin: 4px 0 0; font-size: 16px; }
  .page--about .ticket__meta { font-size: 14px; }
  .page--about .ticket__intro { padding-bottom: 14px; font-size: 14px; line-height: 1.65; }
  .page--about .timeline { grid-template-columns: 1fr; gap: 0; margin: 16px 0 12px 7px; border-top: 0; border-left: 3px solid var(--ink); }
  .page--about .timeline li { display: flex; align-items: baseline; gap: 8px; padding: 3px 0 3px 16px; }
  .page--about .timeline li::before { left: -9px; top: 50%; width: 15px; height: 15px; translate: 0 -50%; }
  .page--about .timeline b, .page--about .timeline span { display: inline; margin: 0; font-size: 13px; }
  .page--about .barcode { height: 24px; }
  .page--about .about__side { gap: 16px; }
  .brand-wall { gap: 8px; }
  .brand-wall li { padding: .35em .8em; font-size: 13px; }

  /* 联系：两卡竖排，压缩高度 */
  .page--contact .footer__inner { gap: 14px; }
  .page--contact .end-sticker { width: min(86vw, calc((var(--vh) - 520px) * 3.46)); }
  .page--contact .contact { gap: 10px; }
  .page--contact .contact__item { flex-direction: row; justify-content: space-between; padding: 14px 18px; border-radius: 16px; }
  .page--contact .footer__strip { gap: 2px; padding: 10px var(--gutter); font-size: 12px; }
}

@media (max-width: 600px) {
  /* 首页：底部两张大贴纸缩小，放在两个按钮左右（沿用 v0.3） */
  .page--hero .hero { padding-bottom: 28px; }
  .page--hero .hero__stage { padding: 64px 0 12px; }
  .page--hero .sticker:nth-of-type(1) { --y: 14% !important; }
  .page--hero .sticker:nth-of-type(2) { --y: 13.5% !important; }
  .page--hero .sticker:nth-of-type(3) { --x: 80.5% !important; --y: calc(100% - 77px) !important; --w: 70px !important; }
  .page--hero .sticker:nth-of-type(4) { --x: 1% !important;    --y: calc(100% - 81px) !important; --w: 66px !important; }
  .page--hero .hero__bar { gap: 14px; }
  .page--hero .btn { padding: .7em 1.35em; }
}

@media (prefers-reduced-motion: reduce) {
  .is-paged .page { transition: opacity .2s ease !important; }
}
