/* 老王和老曹的工作室 — 手工玩具工坊 */

:root {
  --cream: #f4ede1;
  --paper: #fbf8f2;
  --white: #fffdf9;
  --ink: #1b2033;
  --ink-2: #4b5066;
  --ink-3: #80838f;
  --line: rgba(27, 32, 51, .12);
  --line-2: rgba(27, 32, 51, .22);
  --red: #b8402b;
  --mustard: #e0a63a;
  --night: #11152b;
  --night-2: #1a2142;
  --moon: #e9e4d6;

  --serif: "Fraunces", "Noto Serif SC", Georgia, serif;
  --sans: "Figtree", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --hand-grown: "Caveat", "Long Cang", cursive;

  --r-lg: 28px;
  --r-md: 18px;
  --r-sm: 12px;
  --wrap: 1240px;
  --header: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 1px 2px rgba(27, 32, 51, .06), 0 18px 48px -18px rgba(27, 32, 51, .28);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* Paper grain over everything */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: .5;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.1  0 0 0 0 0.08  0 0 0 0 0.06  0 0 0 .07 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
h1, h2, h3, p, figure, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: 0; z-index: 100; padding: 10px 14px; background: var(--white); border-radius: 0 0 10px 10px; transform: translateY(-110%); }
.skip:focus { transform: none; }

.wrap { width: min(100% - 64px, var(--wrap)); margin-inline: auto; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; }

h1, h2, h3, .serif {
  font-family: var(--serif);
  font-weight: 460;
  font-variation-settings: "SOFT" 60, "WONK" 0;
  letter-spacing: -.02em;
}
h2 { font-size: clamp(40px, 4.6vw, 68px); line-height: 1.02; text-wrap: balance; }
.hero-t1 { white-space: pre-line; }
h2 em, h1 em { font-style: italic; font-variation-settings: "SOFT" 100, "WONK" 1; }
.eyebrow { font: 500 12px/1.4 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .6; }
.section-lede { color: var(--ink-2); font-size: 18px; max-width: 30em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 52px; padding: 0 28px;
  border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 16px; letter-spacing: .005em; white-space: nowrap;
  transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #2d3452; box-shadow: 0 10px 24px -12px rgba(27, 32, 51, .6); }
.btn-ghost { border-color: var(--line-2); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-glass { background: rgba(255, 253, 249, .55); border-color: rgba(255, 255, 255, .7); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn-glass:hover { background: rgba(255, 253, 249, .85); }
.btn-buy { width: 100%; height: 58px; background: #d9472f; color: #fff; font-size: 18px; font-weight: 700; box-shadow: 0 5px 0 #a4301c; }
.btn-buy:hover { background: #e4543b; transform: translateY(-1px); box-shadow: 0 6px 0 #a4301c; }
.btn-buy:active { transform: translateY(4px); box-shadow: 0 1px 0 #a4301c; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header);
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(251, 248, 242, .82);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.is-dark.is-scrolled { background: rgba(17, 21, 43, .72); box-shadow: 0 1px 0 rgba(255, 255, 255, .08); color: var(--moon); }
.site-header.is-dark .nav a { color: rgba(233, 228, 214, .68); }
.site-header.is-dark .nav a:hover, .site-header.is-dark .nav a.is-active { color: var(--moon); }
.header-row { height: 100%; display: flex; align-items: center; gap: 32px; }
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand-word { font-family: var(--serif); font-size: 23px; font-weight: 560; letter-spacing: -.01em; font-variation-settings: "SOFT" 80; }
.brand-word em { font-style: italic; font-weight: 420; font-variation-settings: "SOFT" 100, "WONK" 1; }
.nav { display: flex; gap: 30px; margin-left: auto; }
.nav a { font-size: 15px; font-weight: 500; color: var(--ink-2); padding: 6px 0; position: relative; transition: color .2s; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav a:hover, .nav a.is-active { color: var(--ink); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: max(700px, min(100svh, 940px));
  padding-top: var(--header);
  overflow: hidden;
  background: linear-gradient(180deg, #7fb6e3 0%, #a3cbee 34%, #cfe3f2 66%, #e9e3d4 100%);
  isolation: isolate;
}
.sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.cloud {
  position: absolute; left: var(--x); top: var(--y);
  width: 280px; height: 120px;
  transform: scale(var(--s));
  transform-origin: left top;
  animation: drift var(--d) ease-in-out infinite alternate;
  filter: drop-shadow(0 18px 22px rgba(60, 110, 160, .16));
}
.cloud i {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle at 42% 30%, #fff 0 45%, #f1f6fb 70%, #d9e7f3 100%);
}
.cloud i:nth-child(1) { left: 22px; top: 46px; width: 92px; height: 92px; }
.cloud i:nth-child(2) { left: 76px; top: 4px; width: 128px; height: 128px; }
.cloud i:nth-child(3) { left: 166px; top: 38px; width: 98px; height: 98px; }
.cloud i:nth-child(4) { left: 12px; top: 84px; width: 252px; height: 52px; border-radius: 40px; background: linear-gradient(180deg, #f6f9fc, #d6e5f1); }
@keyframes drift { from { translate: -18px 0; } to { translate: 26px 0; } }
.sunbeam {
  position: absolute; right: -10%; top: -20%; width: 70%; height: 140%;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 246, 220, .42) 46%, transparent 62%);
  transform: rotate(8deg);
}
.hero-grid {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  min-height: calc(max(700px, min(100svh, 940px)) - var(--header));
}
.hero-copy { align-self: center; padding: 40px 0 130px; max-width: 640px; position: relative; z-index: 3; }
.hero-title {
  margin: 0 0 24px;
  font-size: clamp(54px, 6.4vw, 100px);
  line-height: .98;
  font-weight: 430;
  letter-spacing: -.035em;
}
.hero-title em { display: block; white-space: nowrap; color: var(--red); }
.hero-lede { font-size: 19px; color: var(--ink-2); max-width: 30em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* Woody tips a hat from behind the shelf; the plank hides the bottom fifth of the photo. */
.hero-stage { position: relative; z-index: 1; --hh: min(84svh, 720px); }
.hero-hello {
  position: absolute; right: -4%; bottom: calc(96px - var(--hh) * .2);
  height: var(--hh); width: auto; max-width: none;
  filter: drop-shadow(0 18px 26px rgba(45, 60, 90, .22));
  animation: peek 1.3s var(--ease) both .15s;
}
@keyframes peek { from { transform: translateY(70px); } to { transform: none; } }
.hero-shelf {
  position: absolute; left: 0; right: 0; bottom: 0; height: 96px; z-index: 2;
  background:
    linear-gradient(180deg, rgba(255, 236, 205, .55) 0 2px, transparent 2px),
    repeating-linear-gradient(180deg, rgba(110, 62, 28, .07) 0 1px, transparent 1px 7px),
    linear-gradient(180deg, #dcb085 0, #cf9d6c 26px, #a8703f 27px, #95602f 60%, #7f4f26 100%);
  box-shadow: 0 -22px 40px -20px rgba(60, 35, 15, .35);
}
.hero-shelf::before {
  content: ""; position: absolute; left: 0; right: 0; top: 26px; height: 1px; background: rgba(255, 225, 185, .45);
}

/* ---------- Section heads ---------- */
.section-head { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); align-items: end; gap: 48px; }
.section-head .section-lede { padding-bottom: 8px; }

/* ---------- Collection shelf ---------- */
.collection {
  position: relative;
  padding: 140px 0 40px;
  background:
    radial-gradient(ellipse 70% 60% at 20% 0%, rgba(255, 250, 238, .9), transparent 70%),
    repeating-linear-gradient(90deg, rgba(118, 150, 186, .07) 0 1px, transparent 1px 34px),
    var(--cream);
}
.shelves { display: grid; grid-template-columns: minmax(0, 1fr); gap: 92px; margin-top: 72px; --toy-h: 340px; }
.shelf-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.shelf-head h3 { font-size: 30px; line-height: 1.15; font-variation-settings: "SOFT" 80; }
.shelf-head p { color: var(--ink-2); font-size: 15px; text-align: right; }
.shelf { position: relative; }
.shelf-plank {
  position: absolute; left: -2%; right: -2%; top: var(--toy-h); height: 46px; z-index: 0;
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(255, 236, 205, .6) 0 1.5px, transparent 1.5px),
    repeating-linear-gradient(180deg, rgba(100, 55, 22, .07) 0 1px, transparent 1px 6px),
    linear-gradient(180deg, #dfb688 0, #d2a271 18px, #a9713f 19px, #8d5a2c 100%);
  box-shadow: 0 30px 40px -24px rgba(60, 35, 15, .55), 0 2px 0 rgba(0, 0, 0, .04);
}
.shelf-plank::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 12px; background: radial-gradient(ellipse at 50% 100%, rgba(60, 35, 15, .18), transparent 70%); }
.shelf-cols {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}
.shelf-col { display: grid; grid-template-rows: var(--toy-h) 46px auto; justify-items: center; }
.toy {
  position: relative; align-self: end;
  display: flex; align-items: flex-end; justify-content: center;
  width: 100%; height: 100%; padding: 0;
  border: 0; background: none;
}
.toy img {
  position: relative; z-index: 1;
  height: var(--h); width: auto; max-width: 100%; object-fit: contain;
  transform-origin: 50% 100%;
  margin-bottom: 9px;
  filter: drop-shadow(0 10px 10px rgba(50, 30, 12, .22));
  transition: transform .45s var(--ease), filter .45s var(--ease);
  animation: fidget var(--t, 9s) ease-in-out infinite var(--delay, 0s);
}
.toy::after {
  content: ""; position: absolute; bottom: 2px; left: 50%; width: 62%; height: 16px; translate: -50% 0;
  background: radial-gradient(closest-side, rgba(45, 25, 10, .42), transparent);
  transition: width .45s var(--ease), opacity .45s;
}
@keyframes fidget {
  0%, 62%, 100% { transform: none; }
  66% { transform: rotate(var(--r1, -2.5deg)) translateY(-3px); }
  72% { transform: rotate(var(--r2, 1.5deg)); }
  78%, 92% { transform: rotate(var(--r3, -1deg)) translateX(var(--tx, 2px)); }
}
.shelf.is-watched .toy img { animation: none; }
.shelf-col:hover .toy img, .toy:focus-visible img { transform: translateY(-10px) scale(1.02); filter: drop-shadow(0 22px 18px rgba(50, 30, 12, .22)); }
.shelf-col:hover .toy::after { width: 48%; opacity: .7; }
.toy:focus-visible { outline: none; }

.tag-wrap { position: relative; display: flex; flex-direction: column; align-items: center; transform-origin: 50% 0; rotate: var(--rot, 0deg); }
.tag-string { width: 1px; height: 26px; background: linear-gradient(#7d6a55, #a8957d); }
.tag {
  position: relative; display: block;
  width: 178px; padding: 26px 18px 16px;
  background:
    radial-gradient(circle at 50% 13px, transparent 0 5px, rgba(120, 90, 50, .35) 5px 6.5px, transparent 7px),
    linear-gradient(180deg, #faf4e7, #f2e8d4);
  clip-path: polygon(16px 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%, 0 16px);
  border-radius: 0 0 6px 6px;
  box-shadow: 0 10px 20px -12px rgba(60, 40, 20, .4);
  text-align: left;
}
.tag::before { content: ""; position: absolute; inset: 6px; border: 1px dashed rgba(120, 90, 50, .25); clip-path: polygon(13px 0, calc(100% - 13px) 0, 100% 13px, 100% 100%, 0 100%, 0 13px); pointer-events: none; }
.tag .mono { font-size: 10.5px; color: var(--ink-3); }
.tag-name { display: block; font-family: var(--serif); font-size: 25px; line-height: 1.1; margin: 4px 0 2px; font-variation-settings: "SOFT" 80; }
.tag-desc { display: block; font-size: 13px; color: var(--ink-2); }
.tag-foot { display: flex; justify-content: space-between; align-items: baseline; margin-top: 12px; padding-top: 10px; border-top: 1px dashed rgba(120, 90, 50, .3); font-size: 13px; }
.tag-price { font-weight: 600; }
.tag-cta { color: var(--red); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.shelf-col:hover .tag-wrap, .shelf-col:focus-within .tag-wrap { animation: swing 1.4s var(--ease); }
@keyframes swing {
  0% { rotate: var(--rot); }
  25% { rotate: calc(var(--rot) + 5deg); }
  50% { rotate: calc(var(--rot) - 3.5deg); }
  75% { rotate: calc(var(--rot) + 1.5deg); }
  100% { rotate: var(--rot); }
}
.shelf-hint { margin-top: 56px; text-align: center; color: var(--ink-3); font-size: 11.5px; transition: color .3s; }
.shelf-hint.is-watched { color: var(--red); }

/* ---------- Product page ---------- */
.view[data-view="piece"] { background: #fdfcf9; }
.pd { padding: calc(var(--header) + 18px) 0 104px; }
.pd-crumbs, .pd-grid { width: min(100% - 64px, 1320px); margin-inline: auto; }
.pd-crumbs { display: flex; gap: 10px; margin-bottom: 20px; font-size: 14px; color: var(--ink-3); }
.pd-crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.pd-grid { display: grid; grid-template-columns: 72px minmax(0, 1fr) 420px; column-gap: 44px; align-items: start; }

.pd-thumbs { position: sticky; top: calc(var(--header) + 24px); display: grid; gap: 10px; }
.pd-thumb { width: 72px; aspect-ratio: 4 / 5; padding: 0; overflow: hidden; border: 1px solid transparent; border-radius: 0; background: #f3f0e9; transition: border-color .2s; }
.pd-thumb img { width: 100%; height: 100%; object-fit: contain; }
.pd-thumb:hover { border-color: var(--line-2); }
.pd-thumb.is-active { border-color: var(--ink); }

.pd-media { display: grid; gap: 28px; min-width: 0; }
.pd-tile {
  container-type: size;
  height: min(calc(100svh - var(--header) - 44px), 800px);
  display: flex; align-items: center; justify-content: center;
}
.pd-tile > img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pd-tile[data-view-name="detail"] > img { background: #f3f0e9; }
.pd-stage { position: relative; height: min(100cqh, 100cqw * 1.25); aspect-ratio: 600 / 750; }
.art { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.fig-wrap { position: absolute; z-index: 1; }
.fig-img { width: 100%; height: 100%; }

/* The buying panel is a big version of the shelf tags. */
.pd-info { position: sticky; top: calc(var(--header) + 44px); min-width: 0; margin-top: 26px; filter: drop-shadow(0 18px 26px rgba(60, 40, 20, .2)); }
.pd-info::before { content: ""; position: absolute; left: 50%; top: -26px; width: 1px; height: 40px; background: linear-gradient(#7d6a55, #a8957d); z-index: 1; }
.pd-tag {
  position: relative;
  padding: 44px 30px 22px;
  background:
    radial-gradient(circle at 50% 18px, transparent 0 7px, rgba(120, 90, 50, .35) 7px 8.5px, transparent 9px),
    linear-gradient(180deg, #faf4e7, #f2e8d4);
  clip-path: polygon(24px 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 0 100%, 0 24px);
  border-radius: 0 0 12px 12px;
}
.pd-tag::before {
  content: ""; position: absolute; inset: 9px; pointer-events: none;
  border: 1px dashed rgba(120, 90, 50, .28); border-radius: 0 0 6px 6px;
  clip-path: polygon(19px 0, calc(100% - 19px) 0, 100% 19px, 100% 100%, 0 100%, 0 19px);
}
.pd-no { font-size: 11px; color: var(--ink-3); }
.pd-title { margin-top: 6px; font-size: clamp(34px, 3vw, 44px); line-height: 1.05; outline: none; font-variation-settings: "SOFT" 80; }
.pd-title span { display: block; margin-top: 6px; font-size: 21px; line-height: 1.2; font-style: italic; letter-spacing: -.01em; color: var(--red); font-variation-settings: "SOFT" 100, "WONK" 1; }
.pd-price {
  display: inline-block; margin-top: 14px; padding: 5px 18px 6px;
  border-radius: 999px; background: #f4c44f; box-shadow: 0 3px 0 #c9971f;
  font-family: var(--serif); font-size: 26px; font-weight: 560; line-height: 1.15; letter-spacing: -.01em; color: var(--ink);
  rotate: -2deg; font-variation-settings: "SOFT" 80;
}
.pd-opts { display: grid; gap: 14px; margin-top: 18px; padding-top: 16px; border-top: 1px dashed rgba(120, 90, 50, .3); }
.pd-opt { display: grid; gap: 8px; }
.pd-opt-label { font: 500 11px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.pd-opt-values { display: flex; flex-wrap: wrap; gap: 6px; }
.pd-choice {
  padding: 7px 14px; border-radius: 999px;
  border: 0; background: #fffaf0; box-shadow: inset 0 0 0 1.5px rgba(120, 90, 50, .32), 0 2px 0 rgba(120, 90, 50, .22);
  font-size: 14px; font-weight: 600; color: var(--ink-2);
  transition: background-color .2s, color .2s, box-shadow .2s, transform .15s var(--ease);
}
.pd-choice:hover { color: var(--ink); transform: translateY(-1px); }
.pd-choice:active { transform: translateY(2px); }
[data-pd-finish] .pd-choice[aria-pressed="true"] { background: #8cc4f0; color: var(--ink); box-shadow: 0 3px 0 #5a96cc; }
[data-pd-display] .pd-choice[aria-pressed="true"] { background: #a5d67a; color: var(--ink); box-shadow: 0 3px 0 #74a84c; }
.pd-desc { display: grid; gap: 8px; margin: 16px 0 18px; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.pd-note { margin-top: 8px; font-size: 13px; text-align: center; color: var(--ink-3); }
.pd-ship { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 14px; margin-top: 14px; padding-top: 12px; border-top: 1px dashed rgba(120, 90, 50, .3); font-size: 14px; color: var(--ink-2); }
.pd-ship-title { font-weight: 600; color: var(--ink); }
.pd-link { flex-basis: 100%; padding: 0; border: 0; background: none; font-size: 14px; font-weight: 600; text-align: left; color: var(--red); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.pd-acc { margin-top: 12px; }
.pd-acc details { border-top: 1px dashed rgba(120, 90, 50, .3); }
.pd-acc summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; list-style: none; cursor: pointer; }
.pd-acc summary::-webkit-details-marker { display: none; }
.pd-acc summary::after { content: "+"; flex: none; font-size: 22px; font-weight: 400; line-height: 1; color: var(--red); }
.pd-acc details[open] summary::after { content: "\2013"; }
.pd-acc summary { padding: 11px 0; font-size: 15px; font-weight: 600; }
.pd-acc p { padding-bottom: 10px; font-size: 14px; color: var(--ink-2); }

.pd-more { padding: 130px 0 120px; }
.pd-more-shelf { margin-top: 56px; }
.pd-more-shelf .shelf-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- Making process ---------- */
.process {
  padding: 0;
  background:
    repeating-linear-gradient(90deg, rgba(118, 150, 186, .07) 0 1px, transparent 1px 34px),
    var(--cream);
}
.process-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.process h2 { font-size: clamp(34px, 3.5vw, 52px); }

/* Scrolling drives the whole thing; the panel stays put while the figure is made. */
.proc-track { height: 300vh; }
.proc-sticky { position: sticky; top: 0; height: 100svh; display: flex; align-items: center; padding-top: var(--header); }
.proc-sticky .wrap { width: min(100% - 64px, var(--wrap)); }
.ws-visual {
  --paint: 0; --ringon: 0; --ring: #5a96cc;
  position: relative; height: min(calc(100svh - var(--header) - 36px), 680px);
}
.ws-piece { position: absolute; left: 50%; bottom: 7%; translate: -50% 0; display: flex; flex-direction: column; align-items: center; width: 62%; }
.ws-fig { position: relative; height: min(52svh, 470px); z-index: 1; margin-bottom: -10%; }
.ws-fig img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; }
.ws-grey { filter: drop-shadow(0 10px 12px rgba(50, 30, 12, .22)); }
.ws-color {
  --y: calc(100% - var(--paint) * 100%);
  filter: drop-shadow(0 10px 12px rgba(50, 30, 12, .22));
  -webkit-mask-image: radial-gradient(ellipse 72% 5.1% at 50% var(--y), transparent 99%, #000 100%), linear-gradient(180deg, transparent var(--y), #000 var(--y));
  mask-image: radial-gradient(ellipse 72% 5.1% at 50% var(--y), transparent 99%, #000 100%), linear-gradient(180deg, transparent var(--y), #000 var(--y));
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}
/* The ring wraps the figure: its back half sits behind the toy, its front half in front. */
.ws-ring {
  position: absolute; left: 50%; top: calc(100% - var(--paint) * 100%);
  width: 150%; height: auto; overflow: visible;
  translate: -50% -50%;
  opacity: var(--ringon);
  filter: drop-shadow(0 0 6px var(--ring));
}
.ws-ring path { fill: none; stroke: var(--ring); stroke-width: 6; stroke-linecap: round; transition: stroke .4s; }
.ws-ring-back { z-index: 0; }
.ws-ring-back path { opacity: .6; }
.ws-ring-front { z-index: 2; }
.ws-plinth { width: 100%; height: auto; overflow: visible; }
.proc-sticker {
  position: absolute; right: 7%; top: 12%; z-index: 3; padding: 6px 18px 7px; border-radius: 999px;
  background: #f4c44f; box-shadow: 0 3px 0 #c9971f;
  font-family: var(--serif); font-size: 21px; font-weight: 560; color: var(--ink);
  rotate: -7deg; opacity: 0; scale: .7;
  transition: opacity .3s, scale .45s cubic-bezier(.3, 1.6, .5, 1);
}
.is-done .proc-sticker { opacity: 1; scale: 1; }
.is-done .proc-hint { opacity: 0; }

.proc-steps { display: grid; gap: 4px; margin-top: 22px; }
.proc-step {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 14px; align-items: start;
  width: 100%; padding: 12px 16px; border: 0; border-radius: var(--r-md);
  background: transparent; text-align: left;
  transition: background-color .35s, box-shadow .35s;
}
.proc-step:hover { background: rgba(250, 244, 231, .6); }
.proc-step[aria-pressed="true"] { background: #faf4e7; box-shadow: inset 0 0 0 1px rgba(120, 90, 50, .18), 0 12px 24px -18px rgba(60, 40, 20, .4); }
.proc-no {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: var(--c); box-shadow: 0 3px 0 var(--cs);
  font-family: var(--serif); font-size: 19px; font-weight: 560;
  transition: transform .35s var(--ease);
}
.proc-step[aria-pressed="true"] .proc-no { transform: scale(1.08) rotate(-5deg); }
.proc-line { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-top: 7px; }
.proc-title { font-family: var(--serif); font-size: 23px; line-height: 1.2; letter-spacing: -.01em; font-variation-settings: "SOFT" 80; }
.proc-time { flex: none; font-size: 10.5px; color: var(--ink-3); }
.proc-text { display: grid; grid-template-rows: 0fr; color: var(--ink-2); font-size: 15.5px; line-height: 1.5; transition: grid-template-rows .45s var(--ease); }
.proc-text > span { overflow: hidden; }
.proc-step[aria-pressed="true"] .proc-text { grid-template-rows: 1fr; }
.proc-step[aria-pressed="true"] .proc-text > span { padding-top: 4px; padding-bottom: 6px; }
.proc-bar { position: absolute; left: 72px; right: 18px; bottom: 7px; height: 3px; overflow: hidden; border-radius: 3px; background: rgba(120, 90, 50, .14); opacity: 0; }
.proc-bar::after { content: ""; position: absolute; inset: 0; background: var(--cs); transform: scaleX(var(--fill, 0)); transform-origin: left; }
.proc-step[aria-pressed="true"] .proc-bar { opacity: 1; }
.proc-total { margin-top: 16px; padding-left: 16px; font-size: 15px; color: var(--ink-3); }
.proc-hint { display: block; margin-top: 2px; font-weight: 600; color: var(--red); transition: opacity .3s; }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: var(--moon); padding: 110px 0 44px; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; padding-bottom: 44px; border-bottom: 1px solid rgba(233, 228, 214, .14); }
.footer-word { font-family: var(--serif); font-size: clamp(32px, 6vw, 80px); line-height: 1.2; letter-spacing: 0; font-weight: 600; font-variation-settings: "SOFT" 100; }
.footer-word em { font-style: italic; font-variation-settings: "SOFT" 100, "WONK" 1; color: var(--mustard); }
.footer-tag { font-family: var(--hand-grown); font-size: 30px; color: rgba(233, 228, 214, .8); padding-bottom: 10px; }
.footer-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: 26px 0; }
.footer-nav { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-nav a { color: rgba(233, 228, 214, .8); font-size: 15px; }
.footer-nav a:hover { color: #fff; }
.footer-copy { color: rgba(233, 228, 214, .5); font-size: 11px; }

/* ---------- Reservation card ---------- */
.cert-dialog {
  width: min(600px, calc(100vw - 32px)); max-height: calc(100svh - 32px);
  padding: 0; border: 0; background: transparent; overflow: visible;
}
.cert-dialog::backdrop { background: rgba(14, 17, 35, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.cert-dialog[open] { animation: rise .5s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(24px) scale(.98); } }
.cert {
  position: relative;
  padding: 40px 44px 30px;
  background: linear-gradient(180deg, #fffdf7, #f7efdf);
  border-radius: 10px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .55);
  color: var(--ink);
  overflow: hidden;
}
.cert::before { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(150, 110, 50, .35); border-radius: 4px; pointer-events: none; }
.cert::after { content: ""; position: absolute; inset: 16px; border: 1px solid rgba(150, 110, 50, .18); border-radius: 2px; pointer-events: none; }
.cert-head { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; align-items: center; color: var(--ink-2); }
.cert-brand { font-family: var(--serif); font-size: 18px; font-weight: 560; color: var(--ink); }
.cert-brand em { font-style: italic; font-weight: 420; }
.cert-head .mono { font-size: 11px; }
.cert-title { margin-top: 28px; font-size: 40px; text-align: center; font-variation-settings: "SOFT" 90; }
.cert-piece { margin: 14px 0 22px; text-align: center; font-family: var(--serif); font-style: italic; font-size: 30px; line-height: 1.2; color: var(--red); }
.cert-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; padding: 18px 0; border-top: 1px solid rgba(150, 110, 50, .3); border-bottom: 1px solid rgba(150, 110, 50, .3); }
.cert-grid div { display: grid; gap: 2px; padding: 8px 0; }
.cert-grid dt { font: 500 10px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.cert-grid dd { font-size: 15.5px; font-weight: 500; }
.cert-foot { display: grid; grid-template-columns: 92px 1fr auto; align-items: end; gap: 22px; margin-top: 22px; }
.seal { width: 92px; height: 92px; color: var(--red); opacity: .82; transform: rotate(-10deg); }
.cert-sign { display: grid; gap: 2px; border-bottom: 0; }
.cert-scribble { font-family: var(--hand-grown); font-size: 34px; line-height: 1; color: #22306a; border-bottom: 1px solid rgba(27, 32, 51, .35); padding-bottom: 4px; }
.cert-sign .mono, .cert-date .mono { font-size: 10px; color: var(--ink-3); }
.cert-date { display: grid; gap: 4px; text-align: right; font-size: 14px; }
.cert-demo { margin-top: 20px; text-align: center; font-size: 12px; color: var(--ink-3); }
.cert-actions { display: flex; justify-content: center; gap: 12px; margin-top: 18px; }
.cert-actions .btn-ghost { background: rgba(255, 253, 249, .9); border-color: transparent; }

/* ---------- Reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* 小胡迪只在屏幕下方活动；站好时换回完整的人偶姿势。 */
.toy-pet {
  --pet-width: 78px; --pet-height: 138px;
  position: fixed; left: 0; top: auto; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 44;
  width: var(--pet-width); height: var(--pet-height);
  margin: 0; padding: 0; border: 0; background: transparent;
  isolation: isolate; cursor: pointer; touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: opacity .2s;
}
.toy-pet__figure { position: absolute; inset: 0 0 5px; display: block; perspective: 500px; }
.toy-pet__figure svg {
  display: block; width: 100%; height: 100%; overflow: visible;
  transform: rotateY(var(--pet-turn, -12deg));
  transition: transform .09s ease;
  filter: drop-shadow(2px 3px 2px rgba(45, 28, 12, .15));
}
.toy-pet__shadow {
  position: absolute; bottom: 2px; left: 18%; width: 64%; height: 8px;
  border-radius: 50%; background: radial-gradient(ellipse, rgba(44, 30, 20, .3), transparent 72%);
  transform: scaleX(var(--pet-shadow, 1));
}
.toy-pet__rest { visibility: hidden; }
.toy-pet[data-state="still"] .toy-pet__rest, .toy-pet[data-state="caught"] .toy-pet__rest { visibility: visible; }
.toy-pet[data-state="still"] .toy-pet__rig, .toy-pet[data-state="caught"] .toy-pet__rig { visibility: hidden; }
.toy-pet[data-peeking="true"] .toy-pet__legs,
.toy-pet[data-peeking="true"] .toy-pet__arms,
.toy-pet[data-peeking="true"] .toy-pet__torso,
.toy-pet[data-peeking="true"] .toy-pet__shadow { opacity: 0; }
.toy-pet.is-startled .toy-pet__figure { animation: pet-startle .34s ease-out; }
@keyframes pet-startle {
  0% { transform: translateY(3px) rotate(9deg) scaleY(.87); }
  24% { transform: translateY(-8px) rotate(-6deg) scaleY(1.06); }
  52% { transform: translate(3px, 0) rotate(4deg); }
  76% { transform: translate(-2px, 0) rotate(-2deg); }
  100% { transform: none; }
}
.toy-pet__hint {
  position: absolute; left: 50%; bottom: calc(100% + 2px);
  translate: -50% 4px; padding: 5px 11px;
  border: 1px solid rgba(110, 76, 44, .18); border-radius: 13px 13px 13px 3px;
  background: #fff8e9; color: #4b392a;
  font: 500 13px/1.4 var(--sans); white-space: nowrap;
  box-shadow: 0 4px 12px rgba(45, 28, 12, .08);
  opacity: 0; pointer-events: none; transition: opacity .16s, translate .16s;
}
.toy-pet[data-watched="true"] .toy-pet__hint { opacity: 1; translate: -50% 0; }
.toy-pet:focus-visible { outline: 2px dashed var(--red); outline-offset: 4px; border-radius: 18px; }
@media (max-width: 600px), (pointer: coarse) {
  .toy-pet { --pet-width: 56px; --pet-height: 98px; }
  .toy-pet__shadow { height: 6px; }
  .toy-pet__hint { padding: 4px 8px; font-size: 11px; }
}

/* ---------- Chinese ---------- */
html[lang="zh-CN"] body { font-size: 16.5px; }
html[lang="zh-CN"] h1, html[lang="zh-CN"] h2, html[lang="zh-CN"] h3 { letter-spacing: 0; font-weight: 600; }
html[lang="zh-CN"] .hero-title { font-size: clamp(48px, 5.6vw, 88px); line-height: 1.12; }
html[lang="zh-CN"] h2 { line-height: 1.18; }
html[lang="zh-CN"] h2 em, html[lang="zh-CN"] h1 em { font-style: normal; color: var(--red); }
html[lang="zh-CN"] .mono { letter-spacing: .08em; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .shelves { --toy-h: 280px; }
  .tag { width: 150px; padding-inline: 14px; }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { padding: 36px 0 0; }
  .section-head { grid-template-columns: 1fr; gap: 18px; }
  .hero-stage { height: 56svh; --hh: 62svh; margin-top: 8px; }
  .hero-hello { right: 50%; translate: 50% 0; }
  .shelf-head { display: block; }
  .shelf-head p { text-align: left; margin-top: 4px; }
  .pd-grid { grid-template-columns: minmax(0, 1fr); width: 100%; }
  .pd-crumbs { width: calc(100% - 64px); }
  .pd-thumbs { display: none; }
  .pd-media { display: flex; gap: 0; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .pd-media::-webkit-scrollbar { display: none; }
  .pd-tile { flex: 0 0 100%; height: auto; aspect-ratio: 4 / 5; max-height: 74svh; scroll-snap-align: center; }
  .pd-info { position: relative; top: 0; width: calc(100% - 64px); margin: 44px auto 0; }
  .shelves { --toy-h: clamp(116px, 32vw, 230px); --plank-h: 30px; gap: 56px; margin-top: 44px; }
  .shelf { overflow: visible; margin-inline: 0; padding: 0 0 12px; }
  .shelf-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(6px, 2vw, 16px); }
  .shelf-col { min-width: 0; grid-template-rows: var(--toy-h) var(--plank-h) auto; }
  .shelf-plank {
    left: -16px; right: -16px; width: auto; height: var(--plank-h); border-radius: 2px;
    background:
      linear-gradient(180deg, rgba(255, 236, 205, .6) 0 1px, transparent 1px),
      repeating-linear-gradient(180deg, rgba(100, 55, 22, .07) 0 1px, transparent 1px 4px),
      linear-gradient(180deg, #dfb688 0, #d2a271 8px, #a9713f 9px, #8d5a2c 100%);
    box-shadow: 0 16px 24px -18px rgba(60, 35, 15, .5);
  }
  .shelf-plank::before { top: -6px; height: 8px; }
  .toy img { height: auto; max-height: var(--h); width: auto; max-width: calc(100% - 8px); margin-bottom: 5px; filter: drop-shadow(0 5px 5px rgba(50, 30, 12, .2)); }
  .toy::after { height: 8px; bottom: 1px; }
  .tag-wrap { min-width: 0; width: min(100%, 150px); }
  .tag { width: 100%; padding: 22px 10px 12px; }
  .tag-name { font-size: clamp(13px, 2.2vw, 20px); line-height: 1.25; }
  .tag-desc { font-size: 11px; }
  .tag-foot { gap: 4px; flex-wrap: wrap; font-size: 12px; }
  .process-grid { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .proc-sticky { align-items: flex-start; padding-top: calc(var(--header) + 4px); }
  .ws-visual { height: 42svh; }
  .proc-copy .eyebrow, .proc-total { display: none; }
  .process h2 { font-size: 27px; margin-bottom: 0; }
  .proc-steps { margin-top: 8px; gap: 0; }
  .proc-step { padding: 6px 12px; }
  .proc-text { font-size: 14.5px; }
}
@media (max-width: 600px) {
  .nav { display: none; }
  .pd-crumbs, .pd-info { width: calc(100% - 32px); }
  .pd-tag { padding-inline: 22px; }
  :root { --header: 64px; }
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .brand-word { font-size: 20px; }
  html[lang="zh-CN"] .hero-title { font-size: clamp(36px, 10vw, 56px); }
  .cloud { opacity: .75; }
  .cloud:nth-child(1), .cloud:nth-child(3) { display: none; }
  .hero-lede { font-size: 17px; }
  .collection { padding-top: 96px; }
  .proc-sticky .wrap { width: calc(100% - 32px); }
  /* 手机上一排完整展示四件，吊牌跟随人偶一起缩小。 */
  .shelves { --toy-h: clamp(112px, 34vw, 190px); --plank-h: 22px; gap: 42px; margin-top: 32px; }
  .shelf-head { margin-bottom: 12px; }
  .shelf-head h3 { font-size: 22px; }
  .shelf-head p { font-size: 12px; }
  .shelf-cols { gap: 6px; }
  .tag-string { height: 12px; }
  .tag {
    padding: 15px 6px 8px;
    background:
      radial-gradient(circle at 50% 7px, transparent 0 2px, rgba(120, 90, 50, .35) 2px 3px, transparent 3.5px),
      linear-gradient(180deg, #faf4e7, #f2e8d4);
    clip-path: polygon(7px 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 0 100%, 0 7px);
    border-radius: 0 0 3px 3px;
  }
  .tag::before { inset: 3px; clip-path: polygon(5px 0, calc(100% - 5px) 0, 100% 5px, 100% 100%, 0 100%, 0 5px); }
  .tag .mono { font-size: 8px; letter-spacing: 0; }
  .tag-name { min-height: 2.5em; margin-top: 3px; font-size: clamp(11px, 3.1vw, 15px); }
  .tag-desc, .tag-cta { display: none; }
  .tag-foot { margin-top: 4px; padding-top: 5px; font-size: clamp(10px, 2.8vw, 13px); }
  .tag-price { white-space: nowrap; }
  .shelf-hint { margin-top: 28px; font-size: 10px; }
  .cert { padding: 34px 26px 24px; }
  .cert-grid { grid-template-columns: 1fr; }
  .cert-scribble { font-size: 28px; }
  .cert-foot { grid-template-columns: 72px 1fr; }
  .cert-date { grid-column: 1 / -1; text-align: left; }
  .seal { width: 72px; height: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- Print: only the reservation card ---------- */
@media print {
  body::after, .site-header, main, .site-footer, .skip, .cert-actions, .toy-pet { display: none !important; }
  body { background: #fff; }
  .cert-dialog { position: static; display: block; width: 100%; max-height: none; }
  .cert-dialog::backdrop { display: none; }
  .cert { box-shadow: none; }
}
