

/* ==========================================================================
   Zei's Site: sticker note site
   1. Fonts  2. Tokens  3. Base  4. Layout  5. Type  6. Controls
   7. Stickers & gift objects  8. Header & drawers  9. Home  10. Inner pages
   11. Footer  12. Motion  13. Responsive  14. Reduced motion
   ========================================================================== */

/* 1. Local fonts --- */
@font-face { font-family: "Source Han Sans SC"; src: url(/assets/c74b2239d90db30694fa.woff2) format("woff2"); font-weight: 250 900; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url(/assets/b8375946ccf5df512be2.woff2) format("woff2"); font-weight: 100 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Caveat"; src: url(/assets/891951df5e8b5b0f0bc7.woff2) format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }

/* 2. Tokens -------------------------------------------------------------- */
:root {
  /* colour */
  --cream: #f6eedf;
  --cream-2: #efe2cb;
  --paper: #fffbf4;
  --ink: #15130f;
  --ink-2: #26221c;
  --ink-3: #39332b;
  --body: #3f382f;
  --muted: #6b6155;
  --line: rgba(21, 19, 15, .12);
  --line-2: rgba(21, 19, 15, .2);
  --line-inv: rgba(255, 251, 244, .16);
  --coral: #ff6a4d;
  --coral-deep: #d9452a;
  --coral-soft: #ffd8cb;
  --sun: #ffc83a;
  --sun-soft: #ffe9a8;
  --peach: #ffe4d6;
  --sage: #b9c9ad;
  --sage-deep: #3f5a3b;
  --hero-band: #f9e7b9;   /* soft butter hero band: the warm counterpart of the original pale band */
  --hero-oval: rgba(255, 251, 244, .5);
  --ok: #2f6b3a;
  --error: #b42f16;

  /* type */
  --display: "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", ui-sans-serif, system-ui, sans-serif;
  --sans: "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", ui-sans-serif, system-ui, sans-serif;
  --hand: "Caveat", "Kaiti SC", "STKaiti", "KaiTi", "楷体", "Bradley Hand", cursive;
  --fs-hero: clamp(3.25rem, 6.7vw, 6rem);              /* 96px at 1440, 52px on phones: the original hero scale */
  --fs-h1: clamp(2.375rem, 1.6rem + 2.6vw, 4rem);
  --fs-h2: clamp(2rem, 1.25rem + 2.4vw, 3.25rem);       /* section titles, 52px max (original 48 to 64px) */
  --w-display: 700;
  --fs-h3: clamp(1.3rem, 1.1rem + .6vw, 1.625rem);
  --fs-h4: 1.1875rem;
  --fs-lead: clamp(1.1rem, 1rem + .35vw, 1.3125rem);
  --fs-body: 1.0625rem;
  --fs-sm: .9375rem;
  --fs-xs: .8125rem;

  /* space & shape */
  --wrap: 1280px;
  --gutter: clamp(1rem, .5rem + 2.4vw, 2.5rem);
  --section: clamp(5rem, 3.5rem + 6vw, 9.5rem);
  --r-xl: 40px;
  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 14px;
  --r-pill: 999px;
  --header-h: 76px;

  /* depth: shadows are tinted to the warm ground, never pure black */
  --sh-1: 0 1px 2px rgba(70, 42, 12, .08), 0 2px 8px rgba(70, 42, 12, .06);
  --sh-2: 0 2px 4px rgba(70, 42, 12, .06), 0 14px 32px -10px rgba(70, 42, 12, .24);
  --sh-3: 0 40px 70px -28px rgba(70, 42, 12, .42), 0 14px 28px -14px rgba(70, 42, 12, .26);
  --sh-sticker: drop-shadow(0 1px 1px rgba(70, 42, 12, .22)) drop-shadow(0 6px 10px rgba(70, 42, 12, .16));

  /* motion */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-press: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  --ease-drawer: cubic-bezier(.32, .72, 0, 1);
  --d-1: 140ms;
  --d-2: 220ms;
  --d-3: 480ms;
  --d-4: 700ms;
}

/* 3. Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--cream); color: var(--body);
  font: 400 var(--fs-body)/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip; text-rendering: optimizeLegibility;
}
body.is-locked { overflow: hidden; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--sun); color: var(--ink); }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 8px; }
.on-ink :focus-visible, .band-ink :focus-visible, .site-foot :focus-visible { outline-color: var(--sun); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: var(--r-pill); font-weight: 600; transition: transform var(--d-2) var(--ease-out); }
.skip:focus { transform: translateY(76px); }
.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.i-sm { width: 16px; height: 16px; }
.i-lg { width: 24px; height: 24px; }
.tnum { font-variant-numeric: tabular-nums; }

/* 4. Layout -------------------------------------------------------------- */
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2 * var(--gutter), 860px); margin-inline: auto; }
.section { padding-block: var(--section); }
.section-tight { padding-block: calc(var(--section) * .62); }
.stack > * + * { margin-top: 1rem; }
.page { min-height: 70vh; }
/* An inner-page address must not expose the default home while the HTML streams. */
.js[data-initial-route="inner"] [data-page="home"] { display: none !important; }
.js[data-initial-route="inner"] #main { min-height: 100vh; }
.band { position: relative; isolation: isolate; }
.band-coral { background: var(--coral); color: var(--ink); }
.band-sun { background: var(--sun); color: var(--ink); }
.band-ink { background: var(--ink); color: #e9dfcf; }
.band-paper { background: var(--paper); }
.band-cream2 { background: var(--cream-2); }
.rounded-band { overflow: clip; border-radius: var(--r-xl); margin-inline: clamp(.5rem, 1.2vw, 1.25rem); }

/* 5. Type ---------------------------------------------------------------- */
.display, .h1, .h2, .h3, .h4 { font-family: var(--display); color: var(--ink); font-weight: 700; text-wrap: balance; font-optical-sizing: auto; }
.display { font-size: var(--fs-hero); font-weight: var(--w-display); line-height: .98; letter-spacing: -.04em; }
.h1 { font-size: var(--fs-h1); font-weight: 800; line-height: 1; letter-spacing: -.035em; }
.h2 { font-size: var(--fs-h2); font-weight: var(--w-display); line-height: 1.02; letter-spacing: -.03em; }
.h3 { font-size: var(--fs-h3); line-height: 1.12; letter-spacing: -.02em; font-weight: 700; }
.h4 { font-size: var(--fs-h4); line-height: 1.25; letter-spacing: -.01em; font-weight: 700; }
.band-ink .h1, .band-ink .h2, .band-ink .h3, .band-ink .h4, .band-ink .display { color: var(--paper); }
.lead { font-size: var(--fs-lead); line-height: 1.55; max-width: 34em; color: var(--body); text-wrap: pretty; }
.band-ink .lead { color: #d9cdb9; }
.band-coral .lead, .band-sun .lead { color: var(--ink-3); }
.muted { color: var(--muted); }
.band-ink .muted { color: #b9ad9a; }
.small { font-size: var(--fs-sm); }
.xs { font-size: var(--fs-xs); }
.prose { max-width: 66ch; }
.prose p + p { margin-top: 1.1em; }
.prose h3 { margin: 2em 0 .6em; }
.kicker { display: inline-flex; align-items: center; gap: .55rem; font: 600 var(--fs-xs)/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.hand { font-family: var(--hand); font-weight: 600; letter-spacing: 0; }
.hl { position: relative; display: inline-block; z-index: 0; white-space: nowrap; }
.hl::before { content: ""; position: absolute; z-index: -1; inset: .14em -.08em .02em -.1em; background: var(--sun); border-radius: .22em; transform: rotate(-1.6deg); }
.hl-coral::before { background: var(--coral); }
.link { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: .28em; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); transition: text-decoration-color var(--d-1) ease; }
.link:hover { text-decoration-color: currentColor; }
.link .i { transition: transform var(--d-2) var(--ease-out); }
.link:hover .i { transform: translateX(3px); }
.band-ink .link { color: var(--paper); }

/* 6. Controls ------------------------------------------------------------ */
.btn {
  --bg: var(--ink); --fg: var(--paper);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 52px; padding: 0 1.5rem; border-radius: var(--r-pill);
  background: var(--bg); color: var(--fg); font: 600 1rem/1 var(--sans); letter-spacing: -.005em; white-space: nowrap;
  border: 1.5px solid transparent;
  transition: transform var(--d-1) var(--ease-press), background-color var(--d-2) ease, color var(--d-2) ease, box-shadow var(--d-2) ease, border-color var(--d-2) ease;
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.btn:active { transform: scale(.97); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; }
.btn-primary { box-shadow: 0 1px 0 rgba(255, 255, 255, .14) inset, 0 8px 18px -8px rgba(21, 19, 15, .55); }
.btn-primary:hover { --bg: #2c2720; }
.btn-coral { --bg: var(--coral); --fg: var(--ink); }
.btn-coral:hover { --bg: #ff7c62; }
.btn-sun { --bg: var(--sun); --fg: var(--ink); }
.btn-sun:hover { --bg: #ffd25c; }
.btn-paper { --bg: var(--paper); --fg: var(--ink); box-shadow: var(--sh-1); }
.btn-paper:hover { --bg: #fff; }
.btn-ghost { --bg: transparent; --fg: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); }
.band-ink .btn-ghost, .on-ink .btn-ghost { --fg: var(--paper); border-color: var(--line-inv); }
.band-ink .btn-ghost:hover, .on-ink .btn-ghost:hover { border-color: var(--paper); }
.btn-sm { min-height: 44px; padding: 0 1.1rem; font-size: .9375rem; }
.btn-lg { min-height: 60px; padding: 0 1.9rem; font-size: 1.0625rem; }
.btn-block { width: 100%; }
.btn .i { transition: transform var(--d-2) var(--ease-out); }
.btn:hover .i-move { transform: translateX(3px); }
.btn.is-loading { pointer-events: none; }
.btn.is-loading .btn-label { opacity: .0; }
.btn .spin { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; position: absolute; }
.btn.is-loading { position: relative; }
.btn.is-loading .spin { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--ink); transition: background-color var(--d-2) ease, transform var(--d-1) var(--ease-press); position: relative; }
.icon-btn:hover { background: rgba(21, 19, 15, .07); }
.icon-btn:active { transform: scale(.94); }
.icon-btn-solid { background: var(--paper); box-shadow: var(--sh-1); }
.icon-btn-solid:hover { background: #fff; }
.on-ink .icon-btn, .band-ink .icon-btn { color: var(--paper); }
.on-ink .icon-btn:hover, .band-ink .icon-btn:hover { background: rgba(255, 251, 244, .1); }

/* chips & segmented controls */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: 0 1.05rem;
  border-radius: var(--r-pill); border: 1.5px solid var(--line-2); background: transparent; color: var(--ink);
  font: 600 .9375rem/1 var(--sans); white-space: nowrap;
  transition: background-color var(--d-2) ease, border-color var(--d-2) ease, color var(--d-2) ease, transform var(--d-1) var(--ease-press);
}
.chip:hover { border-color: var(--ink); }
.chip:active { transform: scale(.97); }
.chip[aria-pressed="true"], .chip[aria-selected="true"], .chip.is-on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip .count { font-weight: 500; opacity: .6; font-variant-numeric: tabular-nums; }
.band-coral .chip, .band-sun .chip { border-color: rgba(21, 19, 15, .28); }
.band-ink .chip { color: var(--paper); border-color: var(--line-inv); }
.band-ink .chip[aria-pressed="true"], .band-ink .chip.is-on { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.seg { position: relative; display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 5px; border-radius: var(--r-pill); background: rgba(21, 19, 15, .07); }
.seg button { position: relative; z-index: 1; min-height: 42px; padding: 0 1.25rem; border-radius: var(--r-pill); font-weight: 600; font-size: .9375rem; color: var(--ink-3); transition: color var(--d-2) ease; white-space: nowrap; }
.seg button[aria-pressed="true"] { color: var(--ink); }
.seg-thumb { position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 5px; border-radius: var(--r-pill); background: var(--paper); box-shadow: var(--sh-1); transition: transform var(--d-3) var(--ease-out); }
.save-tag { display: inline-block; margin-left: .35rem; padding: 3px 7px; border-radius: var(--r-pill); background: var(--coral); color: var(--ink); font-size: .75rem; font-weight: 700; }

/* fields */
.field { display: grid; gap: .45rem; }
.field label, .field .label { font-weight: 600; font-size: .9375rem; color: var(--ink); }
.field .hint { font-size: var(--fs-xs); color: var(--muted); }
.input, .select, .textarea {
  width: 100%; min-height: 52px; padding: 0 1rem; border-radius: var(--r-sm);
  border: 1.5px solid var(--line-2); background: var(--paper); color: var(--ink); font-size: 1rem;
  transition: border-color var(--d-2) ease, box-shadow var(--d-2) ease;
}
.textarea { min-height: 132px; padding: .85rem 1rem; resize: vertical; line-height: 1.5; }
.select { appearance: none; padding-right: 2.75rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%2315130f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; cursor: pointer; }
.input::placeholder, .textarea::placeholder { color: #8a7f71; }
.input:hover, .select:hover, .textarea:hover { border-color: rgba(21, 19, 15, .38); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(255, 200, 58, .55); }
.field.is-invalid .input, .field.is-invalid .select, .field.is-invalid .textarea { border-color: var(--error); box-shadow: 0 0 0 4px rgba(180, 47, 22, .12); }
.err { display: none; align-items: center; gap: .4rem; font-size: var(--fs-sm); font-weight: 600; color: var(--error); }
.field.is-invalid .err { display: flex; }
.form { display: grid; gap: 1.1rem; max-width: 560px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.form-note { font-size: var(--fs-xs); color: var(--muted); }
.check { display: flex; gap: .7rem; align-items: flex-start; font-size: var(--fs-sm); cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--ink); flex: none; }
.success {
  display: flex; gap: .9rem; align-items: flex-start; padding: 1.1rem 1.2rem; border-radius: var(--r-md);
  background: var(--paper); border: 1.5px solid var(--ink); color: var(--ink); box-shadow: var(--sh-2);
}
.success .tick { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--sun); }
.success strong { display: block; font-family: var(--display); font-size: 1.125rem; letter-spacing: -.01em; }
.success p { font-size: var(--fs-sm); color: var(--body); margin-top: .2rem; }

/* stepper */
.stepper { display: inline-flex; align-items: center; gap: .25rem; padding: 4px; border-radius: var(--r-pill); background: var(--paper); border: 1.5px solid var(--line-2); }
.stepper button { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); transition: background-color var(--d-2) ease, transform var(--d-1) var(--ease-press); }
.stepper button:hover { background: rgba(21, 19, 15, .07); }
.stepper button:active { transform: scale(.92); }
.stepper button[disabled] { opacity: .3; cursor: not-allowed; }
.stepper output { min-width: 4.5ch; text-align: center; font: 700 1.125rem/1 var(--display); font-variant-numeric: tabular-nums; color: var(--ink); }

/* accordion (grid-rows height trick) */
.acc { border-top: 1.5px solid var(--line); }
.acc-item { border-bottom: 1.5px solid var(--line); }
.acc-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.35rem 0; text-align: left; font: 700 1.1875rem/1.3 var(--display); letter-spacing: -.012em; color: var(--ink); }
.acc-q .pm { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(21, 19, 15, .06); transition: transform var(--d-3) var(--ease-out), background-color var(--d-2) ease; }
.acc-q:hover .pm { background: var(--sun); }
.acc-q[aria-expanded="true"] .pm { transform: rotate(45deg); background: var(--coral); }
.acc-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--d-3) var(--ease-out); }
.acc-a > div { overflow: hidden; }
.acc-a p { padding: 0 3.5rem 1.5rem 0; color: var(--body); max-width: 62ch; }
.acc-item.is-open .acc-a { grid-template-rows: 1fr; }
.band-ink .acc, .band-ink .acc-item { border-color: var(--line-inv); }
.band-ink .acc-q { color: var(--paper); }
.band-ink .acc-a p { color: #d9cdb9; }

/* breadcrumb */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: var(--fs-sm); color: var(--muted); }
.crumbs a { color: var(--ink-3); font-weight: 600; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: .25em; }
.crumbs .i { width: 14px; height: 14px; opacity: .6; }

/* toast */
.toasts { position: fixed; z-index: 90; left: 50%; bottom: 24px; transform: translateX(-50%); display: grid; gap: .5rem; width: min(440px, calc(100% - 32px)); pointer-events: none; }
.toast { pointer-events: auto; display: flex; gap: .75rem; align-items: center; padding: .9rem 1rem .9rem 1.1rem; border-radius: var(--r-md); background: var(--ink); color: var(--paper); box-shadow: var(--sh-3); font-size: var(--fs-sm); transition: opacity var(--d-3) var(--ease-out), transform var(--d-3) var(--ease-out); }
.toast .dot { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--sun); color: var(--ink); }
.toast.is-entering { opacity: 0; transform: translateY(14px) scale(.98); }
.toast.is-leaving { opacity: 0; transform: translateY(8px); }

/* 7. Stickers & gift objects --------------------------------------------- */
.stk { position: absolute; display: grid; place-items: center; filter: var(--sh-sticker); transform: rotate(var(--r, 0deg)); transition: transform var(--d-3) var(--ease-out); pointer-events: none; }
.stk svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.stk b { position: absolute; inset: 0; display: grid; place-items: center; font: 800 var(--fs, 1rem)/.95 var(--display); letter-spacing: -.02em; color: var(--ink); text-align: center; }
.stk-coral { color: var(--coral); }
.stk-sun { color: var(--sun); }
.stk-ink { color: var(--ink); }
.stk-ink b { color: var(--paper); }
.stk-paper { color: var(--paper); }
.stk-sage { color: var(--sage); }
.stk-pop { animation: stkPop var(--d-3) var(--ease-out) both; }
@keyframes stkPop { from { opacity: 0; transform: rotate(var(--r, 0deg)) scale(.86); } to { opacity: 1; transform: rotate(var(--r, 0deg)) scale(1); } }
.tag-stk { display: inline-flex; align-items: center; gap: .35rem; padding: .45rem .8rem; border-radius: var(--r-pill); background: var(--sun); color: var(--ink); font: 700 .8125rem/1 var(--sans); box-shadow: 0 0 0 3px var(--paper), var(--sh-1); transform: rotate(var(--r, -3deg)); white-space: nowrap; }
.tag-stk.is-coral { background: var(--coral); }
.tag-stk.is-ink { background: var(--ink); color: var(--paper); }

/* gift card object: artwork + caption strip, like a printed card */
.gcard { position: relative; display: block; background: var(--paper); border-radius: var(--r-md); padding: 10px 10px 0; box-shadow: var(--sh-2); transform: rotate(var(--r, 0deg)); transition: transform var(--d-3) var(--ease-out), box-shadow var(--d-3) var(--ease-out); }
.gcard img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; background: var(--cream-2); }
.gcard-cap { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .75rem .3rem .85rem; }
.gcard-cap b { font: 700 .9375rem/1.15 var(--display); color: var(--ink); letter-spacing: -.01em; }
.gcard-cap span { white-space: nowrap; flex: none; font: 700 .875rem/1 var(--display); color: var(--ink); background: var(--cream); padding: .4rem .55rem; border-radius: 8px; font-variant-numeric: tabular-nums; }
a.gcard:hover { transform: rotate(var(--r, 0deg)) translateY(-4px); box-shadow: var(--sh-3); }
a.gcard:active { transform: rotate(var(--r, 0deg)) scale(.98); }

/* greeting card object (used in phone, editor and cards) */
.gc-face { position: relative; overflow: hidden; border-radius: 14px; background: var(--paper); aspect-ratio: 2 / 3; container-type: inline-size; }
.gc-face > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.gc-text { position: absolute; left: 8%; right: 8%; bottom: 6%; text-align: center; color: var(--ink); }
.gc-text .t { font: 800 9cqi/1 var(--display); letter-spacing: -.035em; text-wrap: balance; }
.gc-text .m { margin-top: .4em; font: 600 7.2cqi/1.05 var(--hand); color: var(--ink-3); text-wrap: balance; overflow-wrap: anywhere; }
.gc-type { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; padding: 10%; background: var(--sun); }
.gc-type .big { font: 800 21cqi/.86 var(--display); letter-spacing: -.055em; color: var(--ink); }
.gc-type .big em { font-style: normal; color: var(--coral-deep); }
.gc-type svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.gc-face .placed { position: absolute; width: 22%; aspect-ratio: 1; filter: var(--sh-sticker); transform: translate(-50%, -50%) rotate(var(--r, 0deg)); }
.gc-face .placed svg { width: 100%; height: 100%; overflow: visible; }
.gc-face .placed b { position: absolute; inset: 0; display: grid; place-items: center; font: 800 4.2cqi/1 var(--display); color: var(--ink); }
.gc-face .placed.is-new { animation: placeIn var(--d-3) var(--ease-out) both; }
@keyframes placeIn { from { opacity: 0; transform: translate(-50%, -50%) rotate(var(--r, 0deg)) scale(.8); } }

/* phone mockup (complete device, never cropped) */
.phone { position: relative; width: var(--pw, 300px); aspect-ratio: 300 / 620; border-radius: calc(var(--pw, 300px) * .16); background: #1b1813; padding: calc(var(--pw, 300px) * .035); box-shadow: 0 0 0 1.5px #3a342b inset, var(--sh-3); }
.phone::before { content: ""; position: absolute; z-index: 3; top: calc(var(--pw, 300px) * .055); left: 50%; width: 32%; height: calc(var(--pw, 300px) * .075); transform: translateX(-50%); background: #1b1813; border-radius: 999px; }
.screen { position: relative; height: 100%; overflow: hidden; border-radius: calc(var(--pw, 300px) * .13); background: var(--paper); display: flex; flex-direction: column; font-size: calc(var(--pw, 300px) * .042); color: var(--ink); container-type: inline-size; }
.sb { display: flex; justify-content: space-between; align-items: center; padding: 5.2cqi 8cqi 0; font: 700 4.4cqi/1 var(--sans); height: 13cqi; }
.sb .sig { display: flex; gap: 1.4cqi; align-items: center; }
.sb .sig i { display: block; width: 6cqi; height: 3cqi; border-radius: 1cqi; background: var(--ink); }
.sb .sig i:first-child { width: 4.5cqi; opacity: .9; clip-path: polygon(0 100%, 100% 0, 100% 100%); border-radius: 0; height: 3.4cqi; }
.app-top { display: flex; align-items: center; justify-content: space-between; padding: 3cqi 5cqi 2cqi; }
.app-top .who { font: 700 4.6cqi/1.1 var(--display); text-align: center; }
.app-top .who small { display: block; font: 500 3.6cqi/1.3 var(--sans); color: var(--muted); }
.app-top .ab { width: 10cqi; height: 10cqi; border-radius: 50%; display: grid; place-items: center; background: var(--cream); }
.app-top .ab .i { width: 5cqi; height: 5cqi; }
.app-top .send { padding: 2.4cqi 4.2cqi; border-radius: 999px; background: var(--ink); color: var(--paper); font: 700 3.8cqi/1 var(--sans); }
.app-body { flex: 1; padding: 1cqi 5cqi 0; display: flex; flex-direction: column; gap: 3cqi; min-height: 0; }
.app-tools { display: flex; gap: 2cqi; }
.app-tools span { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 1.2cqi; padding: 2.4cqi 0; border-radius: 4cqi; background: var(--cream); font: 600 3.2cqi/1 var(--sans); }
.app-tools span.on { background: var(--ink); color: var(--paper); }
.app-tools .i { width: 5.2cqi; height: 5.2cqi; }
.app-gift { display: flex; align-items: center; gap: 3cqi; padding: 2.4cqi; border-radius: 4cqi; background: var(--cream); font: 600 3.5cqi/1.25 var(--sans); }
.app-gift img { width: 11cqi; height: 11cqi; border-radius: 2.4cqi; object-fit: cover; }
.app-gift b { display: block; font: 700 3.8cqi/1.2 var(--display); }
.app-gift .amt { margin-left: auto; font: 800 4.6cqi/1 var(--display); }
.app-tabs { display: flex; justify-content: space-around; padding: 3cqi 4cqi 6cqi; border-top: 1px solid var(--line); margin-top: 3cqi; }
.app-tabs span { display: grid; justify-items: center; gap: 1cqi; font: 600 2.9cqi/1 var(--sans); color: var(--muted); }
.app-tabs span.on { color: var(--ink); }
.app-tabs .i { width: 5.6cqi; height: 5.6cqi; }

/* 8. Header & drawers ---------------------------------------------------- */
.site-head { position: sticky; top: 0; z-index: 50; transition: background-color var(--d-3) ease, box-shadow var(--d-3) ease, backdrop-filter var(--d-3) ease; }
.site-head .wrap { display: flex; align-items: center; gap: 1.5rem; height: var(--header-h); transition: height var(--d-3) var(--ease-out); }
.site-head.is-scrolled { background: rgba(246, 238, 223, .86); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--line); }
.site-head.is-scrolled .wrap { height: 64px; }
/* On a phone the header steps aside while reading downwards, so a phone
   mockup or a card is never cut in half by a bar the reader did not ask for. */
@media (max-width: 760px) {
  .site-head { transition: background-color var(--d-3) ease, box-shadow var(--d-3) ease, backdrop-filter var(--d-3) ease, transform var(--d-2) var(--ease-out); }
  .site-head.is-hidden { transform: translateY(-100%); }
}
.brand { display: inline-flex; align-items: center; gap: .55rem; font: 800 1.6rem/1 var(--display); letter-spacing: -.05em; color: var(--ink); }
.brand-mark { width: 34px; height: 34px; filter: drop-shadow(0 2px 3px rgba(70, 42, 12, .25)); transition: transform var(--d-3) var(--ease-out); }
.brand:hover .brand-mark { transform: rotate(-14deg); }
.nav { margin-left: auto; position: relative; }
.nav ul { display: flex; gap: .25rem; }
.nav a { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 .85rem; border-radius: var(--r-pill); font-weight: 600; font-size: .9688rem; color: var(--ink-3); transition: color var(--d-2) ease, background-color var(--d-2) ease; }
.nav a:hover { color: var(--ink); background: rgba(21, 19, 15, .05); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav-dot { position: absolute; left: 0; bottom: 3px; width: 6px; height: 6px; border-radius: 50%; background: var(--coral); opacity: 0; transition: transform var(--d-3) var(--ease-out), opacity var(--d-2) ease; pointer-events: none; }
.head-actions { display: flex; align-items: center; gap: .5rem; }
.bag-count { position: absolute; top: 3px; right: 1px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--coral); color: var(--ink); font: 800 .7rem/19px var(--sans); text-align: center; box-shadow: 0 0 0 2px var(--cream); font-variant-numeric: tabular-nums; transition: transform var(--d-2) var(--ease-out); }
.bag-count.bump { animation: bump var(--d-3) var(--ease-out); }
@keyframes bump { 40% { transform: scale(1.25); } }
.menu-btn { display: none; }

/* sheets: mobile menu + gift drawer */
.scrim { position: fixed; inset: 0; z-index: 70; background: rgba(21, 19, 15, .42); opacity: 0; visibility: hidden; transition: opacity var(--d-3) ease, visibility 0s linear var(--d-3); }
.scrim.is-open { opacity: 1; visibility: visible; transition: opacity var(--d-3) ease; }
.sheet { position: fixed; z-index: 80; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--cream); display: flex; flex-direction: column; transform: translateX(104%); visibility: hidden; transition: transform 420ms var(--ease-drawer), visibility 0s linear 420ms; box-shadow: var(--sh-3); }
.sheet.is-open { transform: none; visibility: visible; transition: transform 420ms var(--ease-drawer); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 1rem var(--gutter); min-height: var(--header-h); border-bottom: 1.5px solid var(--line); }
.sheet-body { flex: 1; overflow-y: auto; padding: 1.25rem var(--gutter) 2rem; overscroll-behavior: contain; }
.sheet-foot { padding: 1.1rem var(--gutter) 1.4rem; border-top: 1.5px solid var(--line); background: var(--paper); }
.mnav a { display: flex; align-items: center; justify-content: space-between; padding: 1rem 0; border-bottom: 1.5px solid var(--line); font: 800 1.9rem/1.05 var(--display); letter-spacing: -.035em; color: var(--ink); }
.mnav a[aria-current="page"] { color: var(--coral-deep); }
.mnav a .i { opacity: .4; }
.bag-item { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: .9rem; align-items: center; padding: .9rem 0; border-bottom: 1.5px solid var(--line); }
.bag-item img { width: 76px; height: 76px; border-radius: 12px; object-fit: cover; }
.bag-item b { display: block; font: 700 1rem/1.2 var(--display); color: var(--ink); }
.bag-item .small { color: var(--muted); }
.bag-item .amt { font: 800 1.125rem/1 var(--display); color: var(--ink); text-align: right; }
.bag-item .rm { margin-top: .4rem; font-size: var(--fs-xs); font-weight: 600; color: var(--muted); text-decoration: underline; text-underline-offset: .2em; min-height: 32px; }
.bag-item .rm:hover { color: var(--error); }
.bag-row { display: flex; justify-content: space-between; padding: .35rem 0; font-size: var(--fs-sm); }
.bag-row.total { padding-top: .7rem; margin-top: .4rem; border-top: 1.5px dashed var(--line-2); font: 800 1.35rem/1 var(--display); color: var(--ink); }
.empty { text-align: center; padding: 2.5rem 1rem; display: grid; justify-items: center; gap: .9rem; }
.empty .stk-static { width: 96px; height: 96px; filter: var(--sh-sticker); transform: rotate(-8deg); }

/* 9. Home ---------------------------------------------------------------- */
/* Hero: the original split composition, refined. Soft band, oval behind a tilted phone,
   headline at the original 96px / 600, nothing added. Tilts use the `rotate` property so the
   entrance animation (which animates `transform`) never strips them. */
.hero { position: relative; z-index: 0; background: var(--hero-band); padding: 42px 0 38px; overflow: clip; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: 20px; align-items: center; min-height: 570px; }
.hero-copy { position: relative; z-index: 4; padding: 20px 0 35px; }
.hero-kicker { font: 700 .6875rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.hero-copy .display { margin: 24px 0; max-width: 9ch; }
.hero-lead { font-size: 1.125rem; line-height: 1.55; max-width: 25ch; color: var(--body); margin-bottom: 28px; text-wrap: pretty; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.4rem; }
.hero-cta .btn { min-height: 46px; padding: 0 1.35rem; font-size: .9375rem; gap: .45rem; }
.hero-link { font-size: .875rem; }
.hero-note { display: flex; align-items: center; gap: 12px; margin-top: 50px; font: 500 1.375rem/1.08 var(--hand); color: var(--ink-3); }
.hero-note > span { rotate: -3deg; }
.hero-note-heart { width: 42px; height: 42px; flex: none; color: var(--coral); rotate: -12deg; filter: var(--sh-sticker); }
.hero-scene { position: relative; z-index: 1; min-width: 0; height: 590px; display: flex; flex-direction: column; align-items: center; padding-top: 10px; }
.hero-orbit { position: absolute; z-index: 0; width: 510px; height: 470px; border-radius: 50%; background: var(--hero-oval); top: 26px; left: 50%; transform: translateX(-50%) rotate(-15deg); }
.hero-phone { --pw: 250px; position: relative; z-index: 3; rotate: 3deg; box-shadow: 0 0 0 1.5px #3a342b inset, 0 24px 38px -18px rgba(70, 42, 12, .5), 0 2px 4px rgba(70, 42, 12, .14); }
.hero-gift { position: absolute; z-index: 2; display: block; width: 156px; padding: 9px 9px 12px; background: var(--paper); border-radius: 14px; box-shadow: var(--sh-2); transition: rotate var(--d-3) var(--ease-out), translate var(--d-3) var(--ease-out), box-shadow var(--d-3) var(--ease-out); }
.hero-gift img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: var(--cream-2); }
.hero-gift span { display: block; margin-top: 9px; text-align: center; font: 600 .84rem/1.15 var(--display); letter-spacing: -.01em; color: var(--ink); }
.hero-gift-coffee { left: -8px; top: 80px; rotate: -13deg; }
.hero-gift-flower { right: -3px; top: 262px; rotate: 12deg; }
.hero-gift:hover { rotate: 0deg; translate: 0 -6px; box-shadow: var(--sh-3); }
.hero-gift:active { translate: 0 -2px; }
.hero-sent { position: absolute; z-index: 4; left: 1%; top: 318px; display: flex; align-items: center; gap: 8px; padding: 11px 16px; border-radius: var(--r-pill); background: var(--paper); box-shadow: var(--sh-2); font: 650 .6875rem/1 var(--sans); color: var(--ink); white-space: nowrap; rotate: -5deg; }
.hero-sent .i { color: var(--ok); stroke-width: 2.4; }
.hero-scene .stk { z-index: 4; }
.hero-flower { width: 54px; height: 54px; left: 6%; top: 368px; --r: -13deg; --flower-c: var(--sun); }
.hero-smile { width: 56px; height: 56px; right: 4%; top: 34px; --r: 13deg; }
.occ { position: relative; z-index: 5; margin-top: 25px; display: flex; align-items: center; gap: 10px; padding: 4px; border-radius: var(--r-pill); background: rgba(255, 251, 244, .72); }
.occ .icon-btn { width: 36px; height: 36px; background: var(--ink); color: var(--paper); }
.occ .icon-btn:hover { background: #2c2720; }
.occ-label { min-width: 105px; text-align: center; font: 700 .8125rem/1 var(--sans); color: var(--ink); }
@media (max-width: 1100px) and (min-width: 761px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; }
  .hero-copy .display { font-size: min(76px, 7.8vw); }
  .hero-scene { height: 555px; }
  .hero-phone { --pw: 230px; }
  .hero-orbit { width: 440px; height: 420px; }
  .hero-gift { z-index: 4; width: 122px; }
  .hero-gift-coffee { left: -3px; }
  .hero-gift-flower { right: -3px; top: 240px; }
  .hero-sent { left: 0; padding: 10px 12px; font-size: .625rem; }
}
@media (max-width: 760px) {
  .hero { padding: 40px 0 28px; }
  .hero-grid { display: flex; flex-direction: column; gap: 30px; min-height: 0; }
  .hero-copy { padding: 0; width: 100%; text-align: center; }
  .hero-kicker { font-size: .625rem; letter-spacing: .12em; }
  .hero-copy .display { margin: 18px auto; }
  .hero-lead { font-size: .9375rem; max-width: 29ch; margin: 0 auto 22px; }
  .hero-cta { justify-content: center; gap: .75rem 1rem; }
  .hero-cta .btn { min-height: 44px; padding: 0 1.15rem; }
  .hero-link { font-size: .8125rem; }
  .hero-note { position: absolute; visibility: hidden; pointer-events: none; } /* hidden on phones as in the original; visibility keeps its entrance from replaying on resize */
  .hero-scene { width: 100%; height: 555px; }
  .hero-phone { --pw: 232px; }
  .hero-orbit { width: 360px; height: 390px; top: 28px; }
  .hero-gift { z-index: 4; width: 116px; padding: 6px 6px 9px; border-radius: 12px; }
  .hero-gift span { font-size: .66rem; margin-top: 7px; }
  .hero-gift-coffee { left: -12px; top: 58px; }
  .hero-gift-flower { right: -14px; top: 247px; }
  .hero-flower { left: 0; top: 350px; width: 42px; height: 42px; }
  .hero-smile { right: 0; top: 9px; width: 44px; height: 44px; }
  .hero-sent { left: -6px; top: 305px; font-size: .5625rem; padding: 9px 12px; }
  .occ { margin-top: 22px; }
}
@media (max-width: 600px) {
  .hero { padding: 32px 0 22px; }
  .hero-grid { gap: 22px; }
  .hero-copy .display { margin: 15px auto; }
  .hero-lead { margin-bottom: 18px; }
  .hero-scene { height: 459px; padding-top: 6px; }
  .hero-phone { --pw: 196px; }
  .hero-orbit { width: 320px; height: 345px; top: 20px; }
  .hero-gift { width: 102px; }
  .hero-gift span { font-size: .6rem; }
  .hero-gift-coffee { left: 0; top: 45px; }
  .hero-gift-flower { right: 0; top: 213px; }
  .hero-sent { left: 0; top: 266px; font-size: .5rem; padding: 8px 10px; gap: 6px; }
  .hero-sent .i { width: 13px; height: 13px; }
  .hero-flower { top: 312px; }
  .occ { margin-top: 18px; }
}
.screen-card { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; }
.screen-card .gc-face { height: 100%; aspect-ratio: auto; width: 100%; max-height: 100%; box-shadow: 0 1px 0 var(--line), 0 6px 14px -6px rgba(70, 42, 12, .3); }
.swap-fade { transition: opacity 260ms var(--ease-out), transform 260ms var(--ease-out); }
.swap-fade.is-out { opacity: 0; transform: translateY(6px) scale(.985); }

/* occasion marquee */
.marquee { overflow: hidden; background: var(--ink); color: var(--paper); padding: 1.15rem 0; border-block: 0; }
.marquee-track { display: flex; width: max-content; animation: marquee var(--marquee-duration, 32s) linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee ul { display: flex; flex: none; align-items: center; gap: 2.25rem; padding-right: 2.25rem; }
.marquee li { display: flex; align-items: center; gap: 2.25rem; font: 800 clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem)/1 var(--display); letter-spacing: -.02em; text-transform: uppercase; white-space: nowrap; }
.marquee li svg { width: 26px; height: 26px; flex: none; }
@keyframes marquee { to { transform: translateX(var(--marquee-distance, -50%)); } }

/* section heads */
.shead { display: grid; gap: 1.1rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); max-width: 50rem; }
.shead.center { margin-inline: auto; text-align: center; justify-items: center; }

/* bento */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: minmax(250px, auto); gap: 1rem; }
.tile { position: relative; overflow: hidden; border-radius: var(--r-lg); padding: clamp(1.4rem, 2.4vw, 2rem); display: flex; flex-direction: column; gap: .5rem; color: var(--ink); transition: transform var(--d-3) var(--ease-out), box-shadow var(--d-3) var(--ease-out); }
a.tile:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
a.tile:active { transform: scale(.99); }
.tile:has(.tile-hit:hover) { transform: translateY(-4px); box-shadow: var(--sh-2); }
.tile:has(.tile-hit:active) { transform: scale(.99); }
.tile-hit { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.tile-hit:focus-visible { outline: 3px solid var(--ink); outline-offset: -6px; }
.tile:has(.tile-hit) > :not(.tile-hit, .reading-preview) { position: relative; z-index: 2; pointer-events: none; }
.tile:has(.tile-hit) > .reading-preview { position: relative; z-index: 3; }
.tile .h3 { max-width: 16ch; padding-right: 3rem; }
.tile > p, .sched-row p, .wallet-ui > div > p { padding-right: 2.75rem; }
.tile p { max-width: 32ch; color: var(--ink-3); }
.tile .go { position: absolute; top: clamp(1.2rem, 2vw, 1.6rem); right: clamp(1.2rem, 2vw, 1.6rem); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 251, 244, .7); transition: transform var(--d-3) var(--ease-out), background-color var(--d-2) ease; }
:is(a.tile, .tile-hit):is(:hover, :focus-visible) > .go { transform: rotate(-45deg); background: var(--paper); color: var(--ink); }
.t-card { grid-column: span 3; grid-row: span 2; background: var(--peach); }
.t-sched { grid-column: span 3; background: var(--sun); }
.t-group { grid-column: span 3; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); }
.t-wallet { grid-column: span 4; background: var(--ink); color: var(--paper); }
.t-wallet .h3 { color: var(--paper); }
.t-wallet p { color: #cfc3af; }
.t-wallet .go { background: rgba(255, 251, 244, .12); color: var(--paper); }
.t-remind { grid-column: span 2; background: var(--coral); }
.tile-ui { margin-top: auto; padding-top: 1.25rem; }
.mini-editor { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 1rem; align-items: end; }
.mini-editor .gc-face { width: 100%; max-width: 260px; justify-self: center; box-shadow: var(--sh-2); transform: rotate(-3deg); }
.toolrail { display: grid; gap: .5rem; }
.toolrail span { display: flex; align-items: center; gap: .55rem; padding: .7rem .85rem; border-radius: 14px; background: var(--paper); font-weight: 600; font-size: .9rem; box-shadow: var(--sh-1); }
.toolrail span.on { background: var(--ink); color: var(--paper); }
.cal { background: var(--paper); border-radius: 18px; padding: .9rem; box-shadow: var(--sh-1); width: 100%; max-width: 330px; margin-left: auto; }
.cal-h { display: flex; justify-content: space-between; font: 700 .9rem/1 var(--display); margin-bottom: .6rem; }
.cal-g { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; font: 600 .75rem/2 var(--sans); font-variant-numeric: tabular-nums; color: var(--ink-3); }
.cal-g .dw { color: var(--muted); font-weight: 500; }
.cal-g .on { background: var(--coral); color: var(--ink); border-radius: 50%; font-weight: 800; box-shadow: 0 0 0 2px var(--paper), 0 0 0 3.5px var(--ink); }
.cal-g .mute { opacity: .35; }
.t-sched .go { z-index: 2; }
.sched-row { margin-top: auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 330px); gap: 1rem; align-items: end; }
.pool { display: grid; gap: .8rem; }
.pool-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.faces { display: flex; }
.faces span { width: 34px; height: 34px; margin-left: -8px; border-radius: 50%; display: grid; place-items: center; border: 2.5px solid var(--paper); font: 700 .72rem/1 var(--display); color: var(--ink); }
.faces span:first-child { margin-left: 0; }
.pool-amt { font: 800 1.6rem/1 var(--display); color: var(--ink); letter-spacing: -.03em; }
.pool-amt small { font: 600 .875rem/1 var(--sans); color: var(--muted); letter-spacing: 0; }
.bar { height: 12px; border-radius: 999px; background: var(--cream); overflow: hidden; }
.bar i { display: block; height: 100%; width: 72%; border-radius: inherit; background: linear-gradient(90deg, var(--coral), var(--sun)); transform-origin: left; }
.reveal-on .bar i, .bar.in i { animation: grow 1.1s var(--ease-out) both .2s; }
@keyframes grow { from { transform: scaleX(.05); } }
.wallet-ui { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 1.25rem; align-items: end; }
.cashcard { text-align: left; position: relative; aspect-ratio: 1.586; border-radius: 18px; background: var(--coral); color: var(--ink); padding: 1rem 1.1rem; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 18px 30px -16px rgba(0, 0, 0, .6); overflow: hidden; }
.cashcard::before { content: ""; position: absolute; right: -18%; top: -30%; width: 70%; aspect-ratio: 1; border-radius: 50%; background: var(--sun); opacity: .9; }
.cashcard > * { position: relative; }
.cashcard .cc-top { display: flex; justify-content: space-between; align-items: center; font: 800 1rem/1 var(--display); letter-spacing: -.03em; }
.cashcard .cc-top svg { width: 30px; height: 30px; }
.cashcard .cc-amt { font: 800 2.2rem/1 var(--display); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.cashcard .cc-sub { font: 600 .75rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.tx { display: grid; gap: .1rem; }
.tx li { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--line-inv); font-size: .9rem; color: #e1d6c4; }
.tx li:last-child { border: 0; }
.tx li b { font-weight: 700; color: var(--paper); font-variant-numeric: tabular-nums; }
.notif { display: flex; gap: .75rem; padding: .85rem; border-radius: 18px; background: var(--paper); box-shadow: var(--sh-2); font-size: .875rem; line-height: 1.35; color: var(--ink-3); }
.notif .app-ic { flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--coral); display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px rgba(21, 19, 15, .08); }
.notif b { display: block; color: var(--ink); font-size: .875rem; }
.notif-stack { display: grid; gap: .5rem; isolation: isolate; }
.notif-stack .notif:nth-child(2) { transform: scale(.94); transform-origin: top; opacity: .75; margin-top: -2.4rem; position: relative; z-index: -1; }

/* coral band: card editor */
.editor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.editor-stage { position: relative; display: grid; place-items: center; padding: 2rem 0; }
.editor-stage::before { content: ""; position: absolute; width: 74%; aspect-ratio: 1; border-radius: 50%; background: rgba(255, 251, 244, .22); }
.editor-card { position: relative; width: min(100%, 380px); transform: rotate(-2.5deg); }
.editor-card .gc-face { box-shadow: 0 2px 0 rgba(21, 19, 15, .08), 0 40px 60px -28px rgba(70, 20, 5, .6); }
.editor-env { position: absolute; z-index: -1; width: 92%; aspect-ratio: 1.45; right: -16%; bottom: -6%; border-radius: 10px; background: var(--paper); transform: rotate(9deg); box-shadow: var(--sh-2); overflow: hidden; }
.editor-env::before { content: ""; position: absolute; inset: 0 0 auto; height: 64%; background: var(--cream-2); clip-path: polygon(0 0, 100% 0, 50% 100%); }
.editor-panel { display: grid; gap: 1.6rem; }
.ctrl-label { font: 700 .8125rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: .75rem; display: flex; justify-content: space-between; }
.designs { display: flex; gap: .6rem; flex-wrap: wrap; }
.design-btn { width: 64px; height: 84px; border-radius: 12px; overflow: hidden; position: relative; box-shadow: 0 0 0 2px rgba(21, 19, 15, .15); transition: transform var(--d-2) var(--ease-out), box-shadow var(--d-2) ease; background: var(--paper); }
.design-btn img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 10%; }
.design-btn:hover { transform: translateY(-3px); }
.design-btn:active { transform: scale(.96); }
.design-btn[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--paper), 0 0 0 5.5px var(--ink); }
.design-btn .gc-type .big { font-size: 1rem; }
.stk-tray { display: flex; flex-wrap: wrap; gap: .55rem; }
.stk-btn { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: rgba(255, 251, 244, .55); box-shadow: inset 0 0 0 1.5px rgba(21, 19, 15, .14); transition: transform var(--d-2) var(--ease-out), background-color var(--d-2) ease, box-shadow var(--d-2) ease; position: relative; }
.stk-btn svg { width: 38px; height: 38px; overflow: visible; filter: drop-shadow(0 2px 2px rgba(70, 42, 12, .2)); }
.stk-btn b { position: absolute; font: 800 .5rem/1 var(--display); color: var(--ink); }
.stk-btn:hover { background: var(--paper); transform: translateY(-2px) rotate(-4deg); }
.stk-btn:active { transform: scale(.94); }
.stk-btn[aria-pressed="true"] { background: var(--paper); box-shadow: inset 0 0 0 2.5px var(--ink); }
.band-coral .input, .band-coral .textarea { background: rgba(255, 251, 244, .92); border-color: rgba(21, 19, 15, .22); }
.char { font-variant-numeric: tabular-nums; font-weight: 600; letter-spacing: 0; text-transform: none; }

/* sun band: gift cards fan */
.giftband { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.fan { position: relative; height: clamp(380px, 38vw, 500px); }
.fan .gcard { position: absolute; width: clamp(170px, 17vw, 236px); top: 50%; left: 50%; transition: transform 600ms var(--ease-out), box-shadow var(--d-3) var(--ease-out); }
.fan .gcard:nth-child(1) { transform: translate(-138%, -46%) rotate(-12deg); z-index: 1; }
.fan .gcard:nth-child(2) { transform: translate(-82%, -58%) rotate(-4deg); z-index: 2; }
.fan .gcard:nth-child(3) { transform: translate(-22%, -50%) rotate(5deg); z-index: 3; }
.fan .gcard:nth-child(4) { transform: translate(36%, -40%) rotate(13deg); z-index: 4; }
@media (hover: hover) {
  .fan:hover .gcard:nth-child(1) { transform: translate(-150%, -48%) rotate(-15deg); }
  .fan:hover .gcard:nth-child(2) { transform: translate(-86%, -62%) rotate(-5deg); }
  .fan:hover .gcard:nth-child(3) { transform: translate(-18%, -52%) rotate(6deg); }
  .fan:hover .gcard:nth-child(4) { transform: translate(46%, -40%) rotate(16deg); }
  .fan .gcard:hover { z-index: 6; box-shadow: var(--sh-3); }
}
.cat-list { display: grid; margin-top: 2rem; border-top: 1.5px solid rgba(21, 19, 15, .18); }
.cat-list a { display: flex; align-items: center; justify-content: space-between; padding: 1rem 0; border-bottom: 1.5px solid rgba(21, 19, 15, .18); font: 700 1.25rem/1.2 var(--display); letter-spacing: -.02em; color: var(--ink); transition: padding var(--d-3) var(--ease-out); }
.cat-list a span { display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap; font: 600 .875rem/1 var(--sans); color: var(--ink-3); letter-spacing: 0; }
.cat-list a .i { transition: transform var(--d-2) var(--ease-out); }
.cat-list a:hover .i { transform: translateX(4px); }

/* ink band: cash */
.cash { text-align: center; display: grid; justify-items: center; }
.cash .h2 { max-width: 14ch; }
.cash-stage { position: relative; margin-top: clamp(2.5rem, 5vw, 3.5rem); width: min(100%, 420px); }
.cash-stage .cashcard { transform: rotate(-4deg); box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 40px 60px -30px rgba(0, 0, 0, .8); }
.cash-stage .cashcard .cc-amt { font-size: clamp(2.6rem, 2rem + 2.4vw, 3.6rem); }
.cash-stage .tag-stk { position: absolute; top: -14px; right: -12px; --r: 8deg; }
.cash-ctrl { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .75rem; margin-top: 2.5rem; }
.cash-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(3rem, 6vw, 4.5rem); border-top: 1.5px solid var(--line-inv); text-align: left; width: 100%; }
.cash-facts li { padding: 1.5rem 1.5rem 0 0; display: grid; gap: .5rem; }
.cash-facts li + li { padding-left: 1.5rem; border-left: 1.5px solid var(--line-inv); }
.cash-facts .h4 { color: var(--paper); display: flex; align-items: center; gap: .6rem; }
.cash-facts .h4 .i { color: var(--sun); }
.cash-facts p { color: #cfc3af; font-size: var(--fs-sm); max-width: 32ch; }

/* steps with photo */
.steps-split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(2.5rem, 5vw, 5rem); align-items: center; }
.photo { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--cream-2); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.steps-photo { aspect-ratio: 5 / 4; }
.steps-photo img { object-position: 62% 50%; }
.steps-split .stk { width: 104px; height: 104px; --r: -10deg; top: -26px; right: -18px; --fs: 1.05rem; z-index: 2; }
.steps-list { counter-reset: s; display: grid; gap: 1.6rem; margin-top: 2.25rem; }
.steps-list li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 1.1rem; align-items: start; }
.steps-list .n { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line-2); font: 800 1.25rem/1 var(--display); color: var(--ink); }
.steps-list li:nth-child(1) .n { background: var(--sun); box-shadow: none; }
.steps-list li:nth-child(2) .n { background: var(--coral); box-shadow: none; }
.steps-list li:nth-child(3) .n { background: var(--ink); color: var(--paper); box-shadow: none; }
.steps-list p { color: var(--body); margin-top: .3rem; }

/* thank-you notes */
.notes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; align-items: start; }
.note { position: relative; background: var(--paper); border-radius: 6px 6px 18px 6px; padding: 2.1rem 1.6rem 1.5rem; box-shadow: var(--sh-2); transform: rotate(var(--r, 0deg)); transition: transform var(--d-3) var(--ease-out); }
.note:hover { transform: rotate(0deg) translateY(-4px); }
.note:nth-child(1) { --r: -2deg; }
.note:nth-child(2) { --r: 1.5deg; margin-top: 3rem; background: #fff3d1; }
.note:nth-child(3) { --r: -1deg; margin-top: 1rem; }
.note:nth-child(4) { --r: 2.2deg; margin-top: 4rem; background: #ffe8de; }
.note blockquote { font: 600 1.6rem/1.12 var(--hand); color: var(--ink); text-wrap: pretty; }
.note figcaption { margin-top: 1.1rem; font-size: var(--fs-sm); color: var(--muted); line-height: 1.4; }
.note figcaption b { display: block; color: var(--ink); font-weight: 700; }
.note .stk { width: 52px; height: 52px; top: -26px; right: -12px; }
.notes-foot { margin-top: clamp(3rem, 5vw, 4rem); display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; justify-content: space-between; align-items: center; padding-top: 1.5rem; border-top: 1.5px solid var(--line); }
.facts-inline { display: flex; flex-wrap: wrap; gap: 1rem 3rem; }
.facts-inline div { display: grid; gap: .25rem; }
.facts-inline b { font: 800 2rem/1 var(--display); color: var(--ink); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.facts-inline span { font-size: var(--fs-sm); color: var(--muted); }

/* faq split */
.faq-split { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.faq-aside { position: sticky; top: calc(var(--header-h) + 2rem); display: grid; gap: 1.25rem; justify-items: start; }
.faq-aside .h2 { font-size: min(var(--fs-h2), 2.75rem); }

/* closing CTA panel */
.cta-panel { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 0; border-radius: var(--r-xl); background: var(--sun); overflow: hidden; }
.cta-copy { padding: clamp(2.5rem, 6vw, 5.5rem); display: grid; align-content: center; gap: 1.5rem; }
.cta-photo { position: relative; min-height: 420px; }
.cta-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* 10. Inner pages -------------------------------------------------------- */
.phead { padding: clamp(2rem, 5vw, 4.5rem) 0 clamp(2.5rem, 5vw, 4rem); }
.phead .crumbs { margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.phead .h1 { max-width: 15ch; }
.phead .lead { margin-top: 1.4rem; }
.phead-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 2rem; align-items: end; }
.jump { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }

/* features */
.feat { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: center; scroll-margin-top: calc(var(--header-h) + 24px); }
.feat-copy { display: grid; gap: 1.25rem; justify-items: start; }
.ticks { display: grid; gap: .8rem; margin-top: .5rem; }
.ticks li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: .7rem; align-items: start; color: var(--body); }
.ticks li .t { width: 26px; height: 26px; border-radius: 50%; background: var(--sun); display: grid; place-items: center; color: var(--ink); margin-top: 1px; }
.ticks .t .i { width: 15px; height: 15px; stroke-width: 2.4; }
.band-ink .ticks li { color: #ddd2c0; }
.studio { position: relative; border-radius: var(--r-lg); background: var(--peach); padding: clamp(1.25rem, 3vw, 2.25rem); display: grid; gap: 1.25rem; }
.studio-tabs { display: flex; gap: .4rem; flex-wrap: wrap; }
.studio-view { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 1.5rem; align-items: center; }
.studio-view .gc-face { box-shadow: var(--sh-2); }
.panel-box { background: var(--paper); border-radius: 18px; padding: 1.1rem; box-shadow: var(--sh-1); display: grid; gap: .8rem; font-size: .9375rem; }
.panel-box h4 { font: 700 1.05rem/1.2 var(--display); color: var(--ink); }
.swatches { display: flex; gap: .45rem; }
.swatches i { width: 28px; height: 28px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(21, 19, 15, .15); }
.swatches i.on { box-shadow: 0 0 0 2px var(--paper), 0 0 0 3.5px var(--ink); }
.wave { display: flex; align-items: center; gap: 3px; height: 34px; }
.wave i { display: block; width: 4px; border-radius: 4px; background: var(--ink); }
.photo-slot { aspect-ratio: 4/3; border-radius: 12px; overflow: hidden; }
.photo-slot img { width: 100%; height: 100%; object-fit: cover; }
.pair { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 1rem; }
.pair-rev { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
.pcard { border-radius: var(--r-lg); padding: clamp(1.6rem, 3vw, 2.5rem); display: grid; gap: 1rem; align-content: start; scroll-margin-top: calc(var(--header-h) + 24px); }
.pcard .lead { font-size: 1.0625rem; }
.list-ui { display: grid; gap: .5rem; margin-top: .75rem; }
.list-ui li { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: .8rem; align-items: center; padding: .75rem .85rem; border-radius: 16px; background: var(--paper); box-shadow: var(--sh-1); font-size: .9375rem; }
.list-ui li .av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font: 700 .8rem/1 var(--display); color: var(--ink); }
.list-ui li b { display: block; color: var(--ink); font-weight: 700; }
.list-ui li small { color: var(--muted); font-size: .8125rem; }
.list-ui li .when { font: 700 .8125rem/1.2 var(--sans); color: var(--ink-3); text-align: right; font-variant-numeric: tabular-nums; }
.home-projects .when { padding: .3rem .5rem; border-radius: var(--r-pill); background: var(--sage); white-space: nowrap; }
.home-projects .when.is-pending { background: var(--sun-soft); }
.pocket-products .m { white-space: pre-line; }
.group-feat { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 0; align-items: center; scroll-margin-top: calc(var(--header-h) + 24px); }
.group-photo { aspect-ratio: 3 / 2; }
.group-photo img { object-position: 50% 45%; }
.group-card { position: relative; margin-left: -18%; background: var(--paper); border-radius: var(--r-lg); padding: clamp(1.5rem, 3vw, 2.25rem); box-shadow: var(--sh-3); display: grid; gap: 1rem; }
.teaser { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: center; padding: clamp(1.75rem, 4vw, 3rem); border-radius: var(--r-xl); background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); }

/* how it works */
.flow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.flow-tabs { display: grid; gap: .6rem; }
.flow-tab { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 1rem; align-items: start; padding: 1.15rem 1.25rem; border-radius: var(--r-md); text-align: left; transition: background-color var(--d-2) ease, box-shadow var(--d-2) ease; }
.flow-tab:hover { background: rgba(255, 251, 244, .6); }
.flow-tab[aria-selected="true"] { background: var(--paper); box-shadow: var(--sh-2); }
.flow-tab .n { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font: 800 1.2rem/1 var(--display); background: rgba(21, 19, 15, .07); color: var(--ink); transition: background-color var(--d-2) ease; }
.flow-tab[aria-selected="true"] .n { background: var(--coral); }
.flow-tab b { display: block; font: 700 1.25rem/1.2 var(--display); color: var(--ink); letter-spacing: -.015em; }
.flow-tab span { display: block; margin-top: .3rem; font-size: var(--fs-sm); color: var(--muted); }
.flow-stage { position: relative; display: grid; place-items: center; min-height: 600px; }
.flow-stage::before { content: ""; position: absolute; width: 86%; aspect-ratio: 1; border-radius: 50%; background: var(--sun); }
.flow-stage .phone { --pw: 280px; }
.scr-pane { flex: 1; display: flex; flex-direction: column; gap: 3cqi; padding: 1cqi 5cqi 0; min-height: 0; }
.scr-pane h5 { margin: 0; font: 800 7cqi/1.02 var(--display); letter-spacing: -.035em; }
.occ-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.4cqi; }
.occ-grid span { padding: 4cqi 3cqi; border-radius: 4cqi; font: 700 3.8cqi/1.1 var(--display); background: var(--cream); }
.occ-grid span:nth-child(2) { background: var(--sun-soft); }
.occ-grid span.on { background: var(--coral); }
.up-row { display: flex; align-items: center; gap: 3cqi; padding: 3cqi; border-radius: 4cqi; background: var(--cream); font: 600 3.4cqi/1.3 var(--sans); }
.up-row b { display: block; font: 700 3.9cqi/1.2 var(--display); }
.up-row .d { flex: none; width: 11cqi; height: 11cqi; border-radius: 3cqi; display: grid; place-items: center; background: var(--paper); font: 800 4.4cqi/1 var(--display); }
.gift-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 2.4cqi; }
.gift-pick span { border-radius: 4cqi; overflow: hidden; background: var(--cream); font: 700 3.3cqi/1.2 var(--display); }
.gift-pick span img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.gift-pick span em { display: block; font-style: normal; padding: 1.8cqi 2.4cqi; }
.gift-pick span.on { box-shadow: 0 0 0 1cqi var(--ink); }
.amt-row { display: flex; gap: 2cqi; }
.amt-row span { flex: 1; text-align: center; padding: 2.6cqi 0; border-radius: 99px; background: var(--cream); font: 700 3.8cqi/1 var(--display); }
.amt-row span.on { background: var(--ink); color: var(--paper); }
.when-card { border-radius: 5cqi; background: var(--cream); padding: 4cqi; display: grid; gap: 2cqi; }
.when-card .big { font: 800 9cqi/1 var(--display); letter-spacing: -.04em; }
.when-card .sm { font: 600 3.4cqi/1.3 var(--sans); color: var(--muted); }
.scr-cta { margin-top: auto; margin-bottom: 7cqi; padding: 3.8cqi; border-radius: 99px; text-align: center; background: var(--ink); color: var(--paper); font: 700 4cqi/1 var(--sans); }
.two-sides { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; }
.side { border-radius: var(--r-lg); padding: clamp(1.6rem, 3vw, 2.5rem); display: grid; gap: 1.4rem; align-content: start; }
.side-photo { aspect-ratio: 16 / 10; border-radius: var(--r-md); }
.side-photo img { object-position: 70% 40%; }
.timeline { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 2px; background: repeating-linear-gradient(90deg, var(--ink) 0 8px, transparent 8px 16px); opacity: .35; }
.timeline li { position: relative; display: grid; gap: .5rem; align-content: start; }
.timeline .pin { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); box-shadow: 0 0 0 6px var(--cream), var(--sh-1); color: var(--ink); }
.timeline li:nth-child(3) .pin { background: var(--coral); }
.timeline li:nth-child(5) .pin { background: var(--sun); }
.timeline time { margin-top: .6rem; font: 800 1.35rem/1 var(--display); color: var(--ink); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.timeline p { font-size: var(--fs-sm); color: var(--body); }

/* gift shop */
.shop-tools { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem 1.5rem; align-items: center; margin-top: 2.25rem; }
.search { position: relative; max-width: 460px; width: 100%; }
.search .i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search .input { padding-left: 2.85rem; border-radius: var(--r-pill); }
.sort { display: flex; align-items: center; gap: .6rem; font-size: var(--fs-sm); font-weight: 600; color: var(--ink-3); }
.sort .select { min-height: 44px; width: auto; border-radius: var(--r-pill); font-size: .9375rem; font-weight: 600; }
.result-line { margin-top: 1.5rem; font-size: var(--fs-sm); color: var(--muted); min-height: 1.6em; }
.grid-gifts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); margin-top: 1.25rem; }
.shop-card { display: grid; gap: .85rem; }
.shop-card .gcard { --r: 0deg; }
.shop-card:nth-child(4n+1) .gcard { --r: -1.2deg; }
.shop-card:nth-child(4n+3) .gcard { --r: 1deg; }
.shop-meta { display: grid; gap: .2rem; padding: 0 .25rem; }
.shop-meta b { font: 700 1.1rem/1.2 var(--display); color: var(--ink); letter-spacing: -.015em; }
.shop-meta span { font-size: var(--fs-sm); color: var(--muted); }
.shop-card .tag-stk { position: absolute; top: -10px; right: -8px; z-index: 2; --r: 6deg; }
.perks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1.5px solid var(--line); }
.perks li { padding: 1.75rem 1.75rem 1.75rem 0; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 1rem; align-items: start; }
.perks li + li { padding-left: 1.75rem; border-left: 1.5px solid var(--line); }
.perks .ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--paper); box-shadow: var(--sh-1); color: var(--ink); }
.perks b { display: block; font: 700 1.125rem/1.25 var(--display); color: var(--ink); }
.perks p { font-size: var(--fs-sm); margin-top: .25rem; }
.suggest { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; padding: clamp(2rem, 5vw, 4rem); border-radius: var(--r-xl); background: var(--coral); }

/* gift detail */
.pdp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.pdp-art { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.pdp-art .gcard { padding: 16px 16px 0; border-radius: 28px; --r: -1.5deg; box-shadow: var(--sh-3); }
.pdp-art .gcard img { border-radius: 16px; }
.pdp-art .gcard-cap { padding: 1rem .4rem 1.15rem; }
.pdp-art .gcard-cap b { font-size: 1.25rem; }
.pdp-art .gcard-cap span { font-size: 1.05rem; }
.pdp-art .stk { width: 112px; height: 112px; top: -30px; right: -22px; --r: 12deg; --fs: 1rem; z-index: 3; }
.pdp-info { display: grid; gap: 1.6rem; }
.pdp-info .h1 { font-size: clamp(2.6rem, 1.6rem + 3.4vw, 4.6rem); }
.opt-group { display: grid; gap: .75rem; }
.opt-group .label { font-weight: 700; color: var(--ink); display: flex; justify-content: space-between; }
.amt-chips .chip { min-width: 72px; justify-content: center; font-family: var(--display); font-weight: 700; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.buy-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: .75rem; padding: 1.25rem; border-radius: var(--r-md); background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); }
.buy-total { display: flex; justify-content: space-between; align-items: baseline; font-size: var(--fs-sm); color: var(--muted); }
.buy-total b { font: 800 2rem/1 var(--display); color: var(--ink); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.spec { padding: 1.25rem; border-radius: var(--r-md); background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); display: grid; gap: .4rem; align-content: start; }
.spec .i { color: var(--coral-deep); }
.spec b { font: 700 1.05rem/1.25 var(--display); color: var(--ink); }
.spec p { font-size: var(--fs-sm); }
.loved { display: flex; flex-wrap: wrap; gap: .5rem; }
.loved span { padding: .5rem .9rem; border-radius: var(--r-pill); background: var(--cream-2); font-weight: 600; font-size: var(--fs-sm); color: var(--ink); }
.related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; align-items: stretch; margin-top: 3rem; }
.plan { position: relative; display: flex; flex-direction: column; gap: 1.25rem; padding: clamp(1.6rem, 2.6vw, 2.25rem); border-radius: var(--r-lg); background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); }
.plan.featured { background: var(--ink); color: #ddd2c0; box-shadow: var(--sh-3); }
.plan.featured .h3, .plan.featured .price b { color: var(--paper); }
.plan .tag-stk { position: absolute; top: -14px; right: 22px; --r: 5deg; }
.price { display: flex; align-items: baseline; gap: .35rem; }
.price b { font: 800 clamp(3rem, 2.4rem + 2vw, 4rem)/1 var(--display); color: var(--ink); letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.price > span { font-size: var(--fs-sm); color: var(--muted); }
.plan.featured .price > span { color: #b9ad9a; }
.plan .note-line { font-size: var(--fs-sm); color: var(--muted); min-height: 1.5em; }
.plan.featured .note-line { color: #b9ad9a; }
.plan ul { display: grid; gap: .7rem; font-size: var(--fs-sm); }
.plan li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: .6rem; align-items: start; }
.plan li .i { width: 18px; height: 18px; margin-top: 2px; stroke-width: 2.4; color: var(--coral-deep); }
.plan.featured li .i { color: var(--sun); }
.plan .btn { margin-top: auto; }
.price-num { display: inline-block; transition: opacity var(--d-2) ease, transform var(--d-2) var(--ease-out); }
.price-num.is-swapping { opacity: 0; transform: translateY(-6px); }
.compare-wrap { overflow-x: auto; border-radius: var(--r-lg); background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); -webkit-overflow-scrolling: touch; }
.compare { width: 100%; min-width: 640px; border-collapse: collapse; font-size: var(--fs-sm); }
.compare th, .compare td { padding: 1rem 1.25rem; text-align: center; }
.compare th:first-child, .compare td:first-child { text-align: left; }
.compare tbody th[scope="row"], .compare thead th:first-child { position: sticky; left: 0; z-index: 1; background: var(--paper); }
.swipe-hint { display: none; }
.compare thead th { font: 700 1.05rem/1.2 var(--display); color: var(--ink); border-bottom: 1.5px solid var(--line); position: sticky; top: 0; background: var(--paper); }
.compare tbody th { font-weight: 500; color: var(--body); }
.compare .grp th { padding-top: 1.75rem; font: 700 .8125rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.compare td .i { margin: 0 auto; color: var(--ink); stroke-width: 2.4; }
.compare td .no { display: inline-block; width: 14px; height: 2px; background: var(--line-2); vertical-align: middle; }
.compare tbody tr:not(.grp) + tr:not(.grp) th, .compare tbody tr:not(.grp) + tr:not(.grp) td { border-top: 1px solid var(--line); }
.compare .hl-col { background: rgba(255, 200, 58, .16); }

/* help */
.help-search { position: relative; max-width: 640px; margin-top: 2rem; }
.help-search .input { min-height: 64px; padding-left: 3.25rem; border-radius: var(--r-pill); font-size: 1.125rem; box-shadow: var(--sh-2); border-color: transparent; }
.help-search .i { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 22px; height: 22px; }
.topics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.topic { display: grid; gap: .6rem; align-content: start; padding: 1.4rem; border-radius: var(--r-md); background: var(--paper); text-align: left; box-shadow: inset 0 0 0 1.5px var(--line); transition: transform var(--d-2) var(--ease-out), box-shadow var(--d-2) ease, background-color var(--d-2) ease; min-height: 150px; }
.topic:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1.5px var(--ink); }
.topic:active { transform: scale(.98); }
.topic[aria-pressed="true"] { background: var(--ink); color: #d9cdb9; box-shadow: none; }
.topic[aria-pressed="true"] b { color: var(--paper); }
.topic .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--sun); color: var(--ink); }
.topic:nth-child(2) .ic { background: var(--coral); }
.topic:nth-child(3) .ic { background: var(--sage); }
.topic:nth-child(4) .ic { background: var(--peach); }
.topic b { font: 700 1.125rem/1.2 var(--display); color: var(--ink); }
.topic span { font-size: var(--fs-sm); color: inherit; opacity: .85; }
.help-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.help-side { position: sticky; top: calc(var(--header-h) + 1.5rem); display: grid; gap: 1rem; }
.help-card { padding: 1.5rem; border-radius: var(--r-md); background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); display: grid; gap: .6rem; }
.help-card b { font: 700 1.1rem/1.2 var(--display); color: var(--ink); }
mark { background: var(--sun-soft); color: inherit; border-radius: 3px; padding: 0 2px; }
.hours { display: grid; gap: .6rem; margin-top: 1.5rem; }
.hours li { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: .6rem; border-bottom: 1.5px dashed var(--line-2); font-size: var(--fs-sm); }
.hours li b { color: var(--ink); }

/* about */
.about-hero .h1 { max-width: 19ch; }
.about-hero { padding-bottom: clamp(1rem, 2.4vw, 2rem); }
.about-hero + .section-tight { padding-top: 1rem; }
.about-photo { aspect-ratio: 21 / 9; border-radius: var(--r-xl); margin-top: clamp(2.5rem, 5vw, 4rem); }
.about-photo img { object-position: 50% 42%; }
.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.story-photo { aspect-ratio: 4 / 5; }
.story-photo img { object-position: 38% 50%; }
.values { display: grid; gap: 0; border-top: 1.5px solid var(--line-inv); }
.values li { display: grid; grid-template-columns: 96px minmax(0, 1fr) minmax(0, 1.3fr); gap: 2rem; align-items: center; padding: 2rem 0; border-bottom: 1.5px solid var(--line-inv); }
.values .vs { position: relative; width: 84px; height: 84px; filter: var(--sh-sticker); }
.values .vs svg { width: 100%; height: 100%; overflow: visible; }
.values .h3 { color: var(--paper); }
.values p { color: #cfc3af; }

/* Three short principles share one compact band instead of three full-width rows. */
.about-values-band { margin-top: clamp(1rem, 3vw, 2.5rem); padding-block: clamp(2rem, 4vw, 3.5rem); }
.about-values-band .shead { margin-bottom: 1.75rem; max-width: none; }
.about-values-band .shead .h2 { font-size: clamp(1.5rem, 2.7vw, 2.25rem); line-height: 1.3; }
.about-values-band .values { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3.5rem); border: 0; }
.about-values-band .values li { grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; row-gap: 12px; align-items: center; align-content: start; padding: 0; border: 0; }
.about-values-band .values .vs { width: 40px; height: 40px; grid-column: 1; grid-row: 1; }
.about-values-band .values .h3 { grid-column: 2; grid-row: 1; font-size: 1.25rem; line-height: 1.4; }
.about-values-band .values p { grid-column: 1 / -1; grid-row: 2; font-size: 1rem; line-height: 1.65; }
@media (max-width: 760px) {
  .about-values-band { padding-block: 1.75rem; }
  .about-values-band .shead { margin-bottom: 1.25rem; }
  .about-values-band .values { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .about-values-band .values li { grid-template-columns: 30px minmax(0, 1fr); column-gap: 14px; row-gap: 5px; padding-block: 14px; }
  .about-values-band .values li + li { border-top: 1px solid var(--line-inv); }
  .about-values-band .values .vs { width: 30px; height: 30px; grid-row: 1 / span 2; align-self: start; }
  .about-values-band .values .h3 { font-size: 1.125rem; }
  .about-values-band .values p { grid-column: 2; font-size: .9375rem; }
}
.miles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.mile { padding: 1.5rem; border-radius: var(--r-md); background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); display: grid; gap: .5rem; align-content: start; }
.mile b { font: 800 2.4rem/1 var(--display); color: var(--ink); letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.mile:nth-child(2) { background: var(--sun); box-shadow: none; }
.mile:nth-child(4) { background: var(--coral); box-shadow: none; }
.roles { display: grid; border-top: 1.5px solid var(--line); scroll-margin-top: calc(var(--header-h) + 24px); }
.role { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, .8fr) auto; gap: 1.5rem; align-items: center; padding: 1.4rem 0; border-bottom: 1.5px solid var(--line); }
.role b { font: 700 1.25rem/1.2 var(--display); color: var(--ink); letter-spacing: -.015em; }
.role span { font-size: var(--fs-sm); color: var(--muted); }
.press { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem 3rem; align-items: center; padding: clamp(1.75rem, 4vw, 3rem); border-radius: var(--r-xl); background: var(--peach); scroll-margin-top: calc(var(--header-h) + 24px); }
.copy-row { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.copy-row code { font: 600 1rem/1 var(--sans); padding: .9rem 1.1rem; border-radius: var(--r-pill); background: var(--paper); color: var(--ink); }

/* download */
.dl { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.stores { display: flex; flex-wrap: wrap; gap: .75rem; }
.store-btn { display: inline-flex; align-items: center; gap: .75rem; min-height: 60px; padding: 0 1.4rem 0 1.1rem; border-radius: 16px; background: var(--ink); color: var(--paper); transition: transform var(--d-1) var(--ease-press), background-color var(--d-2) ease; text-align: left; }
.store-btn:hover { background: #2c2720; }
.store-btn:active { transform: scale(.97); }
.store-btn small { display: block; font: 500 .75rem/1.1 var(--sans); opacity: .75; }
.store-btn b { display: block; font: 700 1.1rem/1.1 var(--display); letter-spacing: -.01em; }
.store-btn .i { width: 26px; height: 26px; }
.dl-stage { position: relative; display: grid; place-items: center; min-height: 620px; }
.dl-stage::before { content: ""; position: absolute; width: 90%; aspect-ratio: 1; border-radius: 50%; background: var(--coral); }
.dl-stage .phone { --pw: 270px; transform: rotate(-3deg); }
.qr-card { position: absolute; z-index: 3; right: 0; bottom: 8%; width: 172px; padding: 14px 14px 12px; border-radius: 22px; background: var(--paper); box-shadow: var(--sh-3); transform: rotate(5deg); text-align: center; }
.qr-card svg { width: 100%; height: auto; }
.qr-card p { margin-top: .5rem; font: 700 .8125rem/1.25 var(--display); color: var(--ink); }
.reqs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.req { padding: 1.4rem; border-radius: var(--r-md); background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); }
.req b { display: block; font: 700 1.1rem/1.2 var(--display); color: var(--ink); margin: .6rem 0 .3rem; }
.req p { font-size: var(--fs-sm); }
.changes { display: grid; gap: 0; border-top: 1.5px solid var(--line); }
.changes li { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 1.5rem; padding: 1.25rem 0; border-bottom: 1.5px solid var(--line); }
.changes time { font: 700 1rem/1.4 var(--display); color: var(--ink); }

/* legal */
.legal { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + 1.5rem); display: grid; gap: .25rem; }
.toc p { font: 700 .8125rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 1rem 0 .5rem; }
.toc a { display: block; padding: .55rem .85rem; border-radius: 10px; font-size: var(--fs-sm); font-weight: 600; color: var(--ink-3); transition: background-color var(--d-2) ease, color var(--d-2) ease; }
.toc a:hover { background: rgba(21, 19, 15, .05); color: var(--ink); }
.toc a.is-active { background: var(--paper); color: var(--ink); box-shadow: var(--sh-1); }
.legal-body section { scroll-margin-top: calc(var(--header-h) + 24px); padding-bottom: 2.5rem; margin-bottom: 2.5rem; border-bottom: 1.5px solid var(--line); }
.legal-body h2 { font: 800 clamp(1.6rem, 1.3rem + 1vw, 2.2rem)/1.1 var(--display); color: var(--ink); letter-spacing: -.03em; margin-bottom: 1rem; }
.legal-body ul { list-style: disc; padding-left: 1.25rem; margin-top: .8rem; display: grid; gap: .4rem; }
.legal-summary { padding: 1.25rem 1.4rem; border-radius: var(--r-md); background: var(--sun-soft); color: var(--ink); margin-bottom: 2.5rem; font-size: var(--fs-sm); }

/* 404 */
.nf { min-height: 72vh; display: grid; place-items: center; text-align: center; padding-block: 4rem; }
.nf-art { position: relative; width: min(100%, 520px); height: 240px; margin: 0 auto 1.5rem; }
.nf-art .big { font: 800 clamp(7rem, 5rem + 9vw, 12rem)/1 var(--display); letter-spacing: -.07em; color: var(--ink); position: absolute; inset: 0; display: grid; place-items: center; }
.nf-art .nf-s1 { width: 110px; height: 110px; left: 4%; top: 6%; --r: -16deg; --fs: 1.05rem; }
.nf-art .nf-s2 { width: 84px; height: 84px; right: 6%; bottom: 4%; --r: 18deg; }
.nf .btns { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: 2rem; }

/* 11. Footer ------------------------------------------------------------- */
.site-foot { background: var(--ink); color: #cfc3af; padding-top: clamp(4rem, 7vw, 6.5rem); margin-top: 0; }
.foot-top { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, .7fr)); gap: 2.5rem; padding-bottom: 3.5rem; }
.foot-signoff { display: flex; align-items: center; align-self: start; gap: clamp(12px, 1.5vw, 22px); }
.foot-signoff img { width: clamp(56px, 6vw, 80px); height: auto; flex: none; transform: rotate(-5deg); }
.foot-signoff h2 { margin: 0; font: 800 clamp(24px, 2.35vw, 34px)/1.2 var(--display); letter-spacing: -.045em; color: var(--paper); }
.foot-signature { display: inline-block; margin: 10px 0 0 2px; padding: 2px 10px; background: var(--sun); color: var(--ink); font: 700 12px/1.45 var(--sans); letter-spacing: .09em; transform: rotate(-3deg); clip-path: polygon(3% 0, 100% 0, 97% 100%, 0 100%); }
.news-form { display: flex; gap: .5rem; margin-top: 1.25rem; max-width: 440px; }
.news-form .field { flex: 1; }
.news-form .input { background: rgba(255, 251, 244, .06); border-color: var(--line-inv); color: var(--paper); border-radius: var(--r-pill); padding-left: 1.2rem; }
.news-form .input::placeholder { color: #9d9180; }
.news-form .input:focus { border-color: var(--sun); box-shadow: 0 0 0 4px rgba(255, 200, 58, .25); }
.news-form .err { color: #ff9c86; }
.site-foot .success { background: rgba(255, 251, 244, .06); color: var(--paper); border-color: var(--line-inv); box-shadow: none; margin-top: 1.25rem; max-width: 440px; }
.site-foot .success p { color: #cfc3af; }
.foot-col h3 { font: 700 .8125rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #9d9180; margin-bottom: 1.1rem; }
.foot-col ul { display: grid; gap: .25rem; }
.foot-col a { display: inline-flex; min-height: 36px; align-items: center; color: #e9dfcf; font-weight: 500; transition: color var(--d-2) ease; }
.foot-col a:hover { color: var(--sun); }
.foot-word { font: 800 min(23vw, 21rem)/.8 var(--display); letter-spacing: -.07em; color: var(--paper); display: flex; align-items: flex-end; gap: .1em; padding: .05em 0 .2em; user-select: none; }
.foot-word svg { width: .62em; height: .62em; flex: none; margin-bottom: .04em; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.5rem 0 2rem; border-top: 1.5px solid var(--line-inv); margin-top: 2rem; font-size: var(--fs-xs); }
.foot-bottom nav { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.foot-bottom a:hover { color: var(--sun); }
.site-foot.foot-compact { padding-top: 36px; }
.foot-compact .foot-top { grid-template-columns: minmax(0, 1.5fr) minmax(0, .9fr) minmax(0, .65fr); gap: clamp(24px, 4vw, 56px); padding-bottom: 24px; }
.foot-compact .foot-content ul { grid-template-columns: repeat(2, max-content); gap: 0 24px; }
.foot-compact .foot-col h3 { margin-bottom: 14px; letter-spacing: .03em; }
.foot-contact-icons { display: flex; align-items: center; gap: 10px; }
.foot-contact-icons .icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; min-height: 0; padding: 0; color: var(--paper); background: rgba(255, 251, 244, .07); }
.foot-contact-icons .icon-btn:hover { background: var(--sun); color: var(--ink); }
.foot-contact-icons .i { width: 23px; height: 23px; }
.foot-compact .foot-bottom { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px; padding: 18px 0 24px; margin-top: 0; }
.foot-compact .foot-word { font-size: 58px; line-height: 1; padding: 0; letter-spacing: -.065em; align-items: center; }
.foot-compact .foot-word svg { margin-bottom: 0; }
.contact-popup { width: min(440px, calc(100% - 32px)); margin: auto; padding: 24px; border: 0; border-radius: 24px; background: var(--paper); color: var(--ink); box-shadow: var(--sh-3); }
.contact-popup::backdrop { background: rgba(21, 19, 15, .58); }
.contact-popup-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.contact-popup-hint { margin-top: 14px; font-size: 15px; color: var(--muted); }
.contact-popup-value { margin: 16px 0 22px; padding: 16px; border-radius: 12px; background: var(--sun-soft); color: var(--ink); font: 650 18px/1.5 var(--sans); overflow-wrap: anywhere; user-select: all; }
.contact-popup-status { margin-top: 10px; min-height: 1.4em; color: var(--muted); font-size: 13px; }
@media (max-width: 900px) {
  .foot-compact .foot-top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .foot-signoff { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .site-foot.foot-compact { padding-top: 28px; }
  .foot-compact .foot-top { grid-template-columns: minmax(0, 1fr) 142px; gap: 24px 18px; }
  .foot-compact .foot-content ul { gap: 0 12px; }
  .foot-contact-icons { gap: 5px; }
  .foot-compact .foot-bottom { grid-template-columns: auto minmax(0, 1fr); gap: 14px; padding-block: 18px 22px; }
  .foot-compact .foot-word { font-size: 46px; }
  .foot-compact .foot-bottom > span { font-size: 12px; line-height: 1.6; }
  .foot-compact .foot-bottom nav { grid-column: 1 / -1; gap: 24px; }
}
.socials { display: flex; gap: .4rem; }
.socials .icon-btn { border: 1.5px solid var(--line-inv); color: var(--paper); }
.socials .icon-btn:hover { background: rgba(255, 251, 244, .1); color: var(--sun); }

/* 12. Motion ------------------------------------------------------------- */
.js .rv { opacity: 0; transform: translateY(20px); transition: opacity var(--d-4) var(--ease-out), transform var(--d-4) var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
.js .rv.in { opacity: 1; transform: none; }
/* hero entrance: everything settled within 900 ms */
.js .hero .hi { opacity: 0; transform: translateY(14px); animation: heroIn 600ms var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 60ms + 40ms); }
.js .hero .hi-scale { opacity: 0; transform: scale(.97) translateY(10px); animation: heroScale 640ms var(--ease-out) forwards; animation-delay: 100ms; }
.js .hero .stk-in { opacity: 0; animation: stkPop var(--d-3) var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 60ms + 320ms); }
@keyframes heroIn { to { opacity: 1; transform: none; } }
@keyframes heroScale { to { opacity: 1; transform: none; } }
main:focus { outline: none; }
.fade-up { animation: pageIn 460ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 45ms); }
.page.is-entering { animation: pageIn 300ms var(--ease-out) both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(10px); } }
@media (hover: hover) {
  .note:hover .stk { transform: rotate(-6deg); }
}

/* 13. Responsive --------------------------------------------------------- */
@media (max-width: 1180px) {
  .notes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .note:nth-child(n) { margin-top: 0; }
  .grid-gifts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sched-row { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .sched-row .cal { margin-left: 0; max-width: 360px; }
  .topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1020px) {
  :root { --header-h: 68px; }
  .nav, .head-actions .get { display: none; }
  .menu-btn { display: inline-grid; }
  .head-actions { margin-left: auto; }
  .editor, .giftband, .steps-split, .faq-split, .feat, .flow, .pdp, .story, .dl, .contact, .help-layout, .suggest, .phead-row { grid-template-columns: minmax(0, 1fr); }
  .editor-stage { order: -1; }
  .steps-split .stk { right: 8px; width: 84px; height: 84px; }
  .faq-aside, .pdp-art, .help-side { position: static; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .t-card, .t-sched, .t-group, .t-wallet, .t-remind { grid-column: span 2; grid-row: auto; }
  .t-group, .t-remind { grid-column: span 1; }
  .cta-panel { grid-template-columns: minmax(0, 1fr); }
  .cta-photo { min-height: 360px; }
  .group-feat { grid-template-columns: minmax(0, 1fr); }
  .group-card { margin: -4rem 1rem 0; }
  .pair, .pair-rev, .two-sides { grid-template-columns: minmax(0, 1fr); }
  .flow-stage { order: -1; min-height: 560px; }
  .plans { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin-inline: auto; }
  .legal { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toc p { grid-column: 1 / -1; }
  .miles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .values li { grid-template-columns: 84px minmax(0, 1fr); }
  .values li p { grid-column: 2; }
  .timeline { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .timeline::before { left: 23px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--ink) 0 8px, transparent 8px 16px); }
  .timeline li { grid-template-columns: 48px minmax(0, 1fr); column-gap: 1.25rem; }
  .timeline li > :not(.pin) { grid-column: 2; }
  .timeline li .pin { grid-row: span 2; }
  .timeline time { margin-top: .2rem; }
  .pdp-art { max-width: 520px; }
  .related { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  :root { --fs-body: 1rem; }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .t-group, .t-remind { grid-column: span 2; }
  .mini-editor { grid-template-columns: minmax(0, 1fr); }
  .toolrail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sched-row, .wallet-ui { grid-template-columns: minmax(0, 1fr); }
  .cal { margin-left: 0; }
  .cash-facts { grid-template-columns: minmax(0, 1fr); }
  .cash-facts li, .cash-facts li + li { padding: 1.25rem 0; border-left: 0; border-bottom: 1.5px solid var(--line-inv); }
  .notes { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
  .grid-gifts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem .9rem; }
  .shop-tools { grid-template-columns: minmax(0, 1fr); }
  .perks { grid-template-columns: minmax(0, 1fr); }
  .perks li, .perks li + li { padding: 1.25rem 0; border-left: 0; }
  .perks li + li { border-top: 1.5px solid var(--line); }
  .topics { grid-template-columns: minmax(0, 1fr); }
  .topic { min-height: 0; }
  .form-row { grid-template-columns: minmax(0, 1fr); }
  .swipe-hint { display: block; }
  .compare th, .compare td { padding: .85rem .9rem; }
  .compare { min-width: 560px; }
  .specs { grid-template-columns: minmax(0, 1fr); }
  .related { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .related > :nth-child(3) { display: none; }
  .reqs, .miles { grid-template-columns: minmax(0, 1fr); }
  .role { grid-template-columns: minmax(0, 1fr) auto; gap: .35rem 1rem; }
  .role > span { grid-column: 1; }
  .role .btn { grid-column: 2; grid-row: 1 / span 3; }
  .press, .teaser { grid-template-columns: minmax(0, 1fr); }
  .changes li { grid-template-columns: minmax(0, 1fr); gap: .35rem; }
  .foot-top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.5rem; }
  .news-form { flex-direction: column; }
  .about-photo { aspect-ratio: 4 / 3; border-radius: var(--r-lg); }
  .story-photo { aspect-ratio: 4 / 3; }
  .values li { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .values li p { grid-column: auto; }
  .values .vs { width: 64px; height: 64px; }
  .toc { grid-template-columns: minmax(0, 1fr); }
  .acc-a p { padding-right: 0; }
  .studio-view { grid-template-columns: minmax(0, 1fr); }
  .studio-view .gc-face { max-width: 220px; margin-inline: auto; }
  .group-card { margin: -2.5rem .5rem 0; }
  .flow-stage { min-height: 540px; }
  .flow-stage .phone { --pw: 244px; }
  .dl-stage { min-height: 560px; }
  .dl-stage .phone { --pw: 240px; }
  .qr-card { width: 128px; right: -4px; bottom: 0; }
}
@media (max-width: 560px) {
  .editor-env { right: -6%; }
  .fan { height: 330px; }
  .fan .gcard { width: 150px; }
  .fan .gcard:nth-child(1) { transform: translate(-112%, -50%) rotate(-12deg); }
  .fan .gcard:nth-child(2) { transform: translate(-72%, -60%) rotate(-4deg); }
  .fan .gcard:nth-child(3) { transform: translate(-28%, -48%) rotate(5deg); }
  .fan .gcard:nth-child(4) { transform: translate(12%, -38%) rotate(12deg); }
  .cash-stage .tag-stk { right: 0; }
  .shop-meta b { font-size: 1rem; }
  .gcard-cap b { font-size: .84rem; }
  .gcard-cap span { font-size: .78rem; padding: .35rem .45rem; }
  .gcard { padding: 7px 7px 0; border-radius: 16px; }
  .gcard img { border-radius: 10px; }
  .pdp-art .stk { width: 88px; height: 88px; right: -6px; top: -24px; }
  .stores .store-btn { flex: 1 1 100%; }
  .btns .btn { flex: 1 1 100%; }
  .seg button { padding: 0 1rem; }
  .cta-copy { padding: 2.25rem 1.5rem; }
}

/* 14. Reduced motion ------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .rv, .js .hero .hi, .js .hero .hi-scale, .js .hero .stk-in { opacity: 1; transform: none; animation: none; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; }
  .marquee-track ul[aria-hidden="true"] { display: none; }
  .marquee ul { width: 100%; flex-wrap: wrap; justify-content: space-evenly; row-gap: .75rem; padding-right: 0; }
}

/* 15. Site additions ----------------------------------------------------- */
/* Chinese headings need looser leading and tracking than the Latin display face */
.display.cn { letter-spacing: -.02em; line-height: 1.12; }
.h1.cn, .h2.cn, .h3.cn { letter-spacing: -.01em; line-height: 1.22; }
.hero-copy .display { max-width: 12ch; }
.hero-lead { max-width: 30rem; }
.phead .h1 { max-width: 22ch; }
.phead .lead { max-width: 44rem; }

/* index card artwork: the typographic cover used for notes, works and picks */
.card-art {
  position: relative; width: 100%; aspect-ratio: 1; border-radius: 12px; overflow: hidden;
  display: grid; place-items: center; background: var(--cream-2);
  box-shadow: inset 0 0 0 1.5px rgba(21, 19, 15, .1);
}
.card-art::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(70, 42, 12, .06) 1px, transparent 1px); background-size: 4px 4px;
}
.card-art .ca-mark {
  position: relative; z-index: 1; padding: 0 .18em;
  font: 800 clamp(2.4rem, 5.4vw, 4rem)/1 var(--display); letter-spacing: -.05em; color: var(--ink);
  text-align: center; text-wrap: balance;
}
.card-art .ca-mark.cn { font-family: var(--display); letter-spacing: 0; font-weight: 700; }
.card-art .ca-sub {
  position: absolute; z-index: 1; left: .8rem; bottom: .75rem;
  font: 700 .6875rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3);
}
.card-art .ca-tag {
  position: absolute; z-index: 2; right: .7rem; top: .7rem;
  font: 700 .6875rem/1 var(--sans); padding: .4rem .55rem; border-radius: 999px;
  background: rgba(255, 251, 244, .82); color: var(--ink-3);
}
.card-art[data-tone="sun"] { background: var(--sun); }
.card-art[data-tone="coral"] { background: var(--coral); }
.card-art[data-tone="peach"] { background: var(--peach); }
.card-art[data-tone="sage"] { background: var(--sage); }
.card-art[data-tone="ink"] { background: var(--ink); }
.card-art[data-tone="ink"] .ca-mark { color: var(--paper); }
.card-art[data-tone="ink"] .ca-sub, .card-art[data-tone="ink"] .ca-tag { color: #cfc3af; }
.card-art[data-tone="ink"] .ca-tag { background: rgba(255, 251, 244, .14); }
.card-art .ca-stk { position: absolute; z-index: 2; width: 42px; height: 42px; right: -.35rem; bottom: .5rem; filter: var(--sh-sticker); transform: rotate(10deg); }

/* list card for notes and picks */
.note-card { display: grid; grid-template-rows: auto auto auto; align-content: start; gap: .85rem; height: 100%; }
.note-card .gcard { --r: 0deg; }
.note-card .gcard:nth-child(1) { --r: -.8deg; }
.note-card .card-art { aspect-ratio: 4 / 3; }
.note-card .card-art > img { height: 100%; aspect-ratio: auto; border-radius: inherit; }
.note-card .gcard-cap { align-items: flex-start; min-height: 3.45rem; }
.note-card .gcard-cap b { display: -webkit-box; min-width: 0; min-height: 2.3em; overflow: hidden; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
.note-card .card-summary { display: -webkit-box; min-width: 0; min-height: 3.2em; overflow: hidden; line-height: 1.6; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
.note-card .meta { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 1.6em; font-size: var(--fs-xs); color: var(--muted); }
.note-card .meta > span:first-child { flex: none; }
.note-card .meta > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.note-card .meta .ex { padding: .2rem .45rem; border-radius: 6px; background: var(--cream-2); color: var(--ink-3); font-weight: 700; }

/* phone: a saved item row under the note */
.app-note { display: flex; align-items: center; gap: 3cqi; padding: 2.4cqi; border-radius: 4cqi; background: var(--cream); }
.app-note .m { flex: none; width: 11cqi; height: 11cqi; border-radius: 2.4cqi; display: grid; place-items: center; background: var(--sun); font: 800 5cqi/1 var(--display); color: var(--ink); }
.app-note b { display: block; font: 700 3.8cqi/1.2 var(--display); color: var(--ink); }
.app-note span.s { font: 600 3.5cqi/1.25 var(--sans); color: var(--muted); }

/* ink band: version controls */
.cash-ctrl { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: center; margin-top: 1.75rem; }
.ver { display: flex; align-items: center; gap: .6rem; margin-top: 1rem; justify-content: center; }
.ver .label { font: 600 var(--fs-xs)/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: #cfc3af; }
.ver output { font: 800 1.1rem/1 var(--display); color: var(--paper); font-variant-numeric: tabular-nums; min-width: 3.5ch; text-align: center; }
.ver button { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 251, 244, .12); color: var(--paper); }
.ver button:hover { background: rgba(255, 251, 244, .22); }
.ver button:disabled { opacity: .35; }

/* article detail */
.article-head { display: grid; gap: 1.1rem; max-width: 46rem; }
.meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem; font-size: var(--fs-sm); color: var(--muted); }
.meta-row .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--line-2); }
.article-body { max-width: 42rem; }
.article-body pre { max-width: 100%; overflow-x: auto; padding: 1rem; background: var(--paper); border-radius: 12px; }
.article-body img { max-width: 100%; height: auto; margin-block: 1.25rem; }
.article-body table { display: block; max-width: 100%; overflow-x: auto; margin-block: 1.25rem; border-collapse: collapse; }
.article-body th, .article-body td { padding: .65rem 1rem; text-align: left; border-bottom: 1px solid var(--line); }
.article-body h2 { font: 700 1.45rem/1.3 var(--display); color: var(--ink); letter-spacing: -.01em; margin: 2.4rem 0 .8rem; }
.article-body p { color: var(--body); }
.article-body p + p { margin-top: 1em; }
.article-body ul { display: grid; gap: .45rem; margin: 1.1rem 0; padding-left: 0; }
.article-body li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: .5rem; color: var(--body); }
.article-body li::before { content: ""; width: 7px; height: 7px; margin-top: .6em; border-radius: 50%; background: var(--coral); }
.article-body blockquote { margin: 1.8rem 0; padding: 1.4rem 1.5rem; border-radius: 0 18px 18px 0; border-left: 4px solid var(--coral); background: var(--paper); font: 600 1.35rem/1.5 var(--hand); color: var(--ink); }
.article-cover { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-2); }
.article-cover .card-art { aspect-ratio: 16 / 7; border-radius: 0; }
.article-cover .ca-mark { font-size: clamp(2.4rem, 5vw, 3.6rem); }

/* works */
.work-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.work-hero .card-art { aspect-ratio: 5 / 4; border-radius: var(--r-lg); }
.work-hero .card-art .ca-mark { font-size: clamp(2rem, 3.6vw, 2.9rem); }
.work-copy { display: grid; gap: 1rem; justify-items: start; }

/* products: a list you can keep adding to */
.prod-list { display: grid; gap: clamp(1.1rem, 2.4vw, 1.8rem); width: 100%; }
.prod-card { display: grid; grid-template-columns: minmax(0, 1.72fr) minmax(0, 1fr); gap: clamp(1.2rem, 2.6vw, 2.2rem); align-items: center; padding: clamp(1.1rem, 2.2vw, 1.7rem); border-radius: var(--r-xl); background: var(--paper); box-shadow: var(--sh-2); }
.prod-shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.45rem, .9vw, .7rem); }
.prod-shots figure { margin: 0; border-radius: 18px; overflow: hidden; background: var(--cream-2); box-shadow: var(--sh-1); transition: transform var(--d-3) var(--ease-out); }
.prod-shots figure:nth-child(1) { transform: rotate(-1.4deg); }
.prod-shots figure:nth-child(2) { transform: rotate(.9deg); }
.prod-shots figure:nth-child(3) { transform: rotate(-.7deg); }
.prod-card:hover .prod-shots figure { transform: rotate(0deg); }
.prod-shots img { display: block; width: 100%; height: auto; }
.prod-info { display: grid; gap: .6rem; justify-items: start; }
.prod-info .h3 { letter-spacing: -.025em; }
.prod-info > p { max-width: 52ch; font-size: var(--fs-sm); line-height: 1.6; color: var(--muted); }
.prod-tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.prod-tags li { padding: .34rem .72rem; border-radius: var(--r-pill); background: var(--cream-2); font: 600 var(--fs-xs)/1 var(--sans); color: var(--ink-3); }
.prod-tags .is-live { background: var(--sage); color: var(--sage-deep); }
.prod-card-foot { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .4rem; }
.prod-hint { font-size: var(--fs-xs); line-height: 1.5; color: var(--muted); max-width: 40ch; min-height: 1em; }
.prod-development { margin-top: clamp(1.7rem, 4vw, 3rem); }
.prod-development-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; }
.prod-development-heading h2 { display: flex; align-items: center; gap: .7rem; }
.prod-development-heading p { color: var(--muted); font-size: var(--fs-sm); }
.prod-work-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--coral); }
.prod-development-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2.4vw, 1.8rem); }
.prod-card.is-development { display: flex; flex-direction: column; gap: 0; padding: 0; overflow: hidden; align-items: stretch; text-align: left; }
.prod-cover { position: relative; overflow: hidden; background: var(--cream-2); }
.prod-cover img { display: block; width: 100%; height: auto; aspect-ratio: 7 / 4; transition: transform var(--d-3) var(--ease-out); }
.is-development:hover .prod-cover img { transform: scale(1.025); }
.prod-cover figcaption { position: absolute; bottom: .8rem; left: 1.1rem; padding: .25rem .6rem; border-radius: var(--r-pill); background: var(--paper); color: var(--ink-3); font-size: .6875rem; }
.is-development .prod-info { flex: 1; padding: clamp(1.2rem, 2.5vw, 1.8rem); justify-items: start; gap: .75rem; }
.is-development .prod-info > p { max-width: 34ch; }
.prod-tags .is-pending { background: var(--sun-soft); color: var(--ink-3); }
.is-development .prod-tags { justify-content: flex-start; }
.is-development .prod-card-foot { margin-top: .25rem; justify-content: flex-start; }
.prod-project-link { display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; font-size: var(--fs-sm); font-weight: 700; }
.prod-project-link:hover { color: var(--coral-deep); }
@media (max-width: 639px) {
  .prod-development-grid { grid-template-columns: minmax(0, 1fr); }
  .prod-development-heading { align-items: flex-start; flex-direction: column; gap: .5rem; }
}

/* shelf drawer thumb */
.bag-item .card-art { width: 76px; height: 76px; border-radius: 12px; }
.bag-item .card-art .ca-mark { font-size: 1.6rem; }

/* placeholder card for the QR slot */
.qr-hold {
  display: grid; gap: .5rem; justify-items: center; padding: 1.25rem 1rem; width: 168px;
  border-radius: 18px; border: 2px dashed var(--line-2); background: var(--paper);
  text-align: center; font-size: var(--fs-xs); color: var(--muted); line-height: 1.4;
}
.qr-hold svg { width: 54px; height: 54px; color: var(--line-2); }

@media (max-width: 1020px) {
  .work-hero { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .article-cover .card-art { aspect-ratio: 4 / 3; }
  .card-art .ca-mark { font-size: clamp(2rem, 12vw, 3rem); }
  .prod-card { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
  .prod-shots { width: 100%; gap: .4rem; }
  .prod-shots figure:nth-child(1), .prod-shots figure:nth-child(2), .prod-shots figure:nth-child(3) { transform: none; }
  .prod-info { justify-items: center; }
  .prod-info > p { max-width: 34ch; }
  .prod-tags { justify-content: center; }
  .prod-card-foot { justify-content: center; }
}

/* small shared bits */
.foot-btn { font: inherit; color: inherit; text-align: left; padding: 0; background: none; border: 0; cursor: pointer; }
.foot-btn:hover { color: var(--paper); text-decoration: underline; text-underline-offset: .2em; }
.ex { display: inline-block; padding: .2rem .45rem; border-radius: 6px; background: var(--cream-2); color: var(--ink-3); font-weight: 700; font-size: var(--fs-xs); line-height: 1.4; }
.url-line { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.url-line code { font: 600 .95rem/1 var(--sans); padding: .85rem 1.1rem; border-radius: var(--r-pill); background: var(--cream-2); color: var(--ink); overflow-wrap: anywhere; }

/* 16. Refinements after browser review ----------------------------------- */
.hero-lead { max-width: 34rem; }

/* the fan: spread the four cards so every name stays readable */
.giftband .fan { height: clamp(360px, 34vw, 460px); }
.giftband .fan .gcard { width: clamp(150px, 13.4vw, 182px); }
.giftband .fan .gcard:nth-child(1) { transform: translate(-162%, -46%) rotate(-10deg); }
.giftband .fan .gcard:nth-child(2) { transform: translate(-101%, -55%) rotate(-3.5deg); }
.giftband .fan .gcard:nth-child(3) { transform: translate(-40%, -50%) rotate(3.5deg); }
.giftband .fan .gcard:nth-child(4) { transform: translate(21%, -42%) rotate(10deg); }
.giftband .fan:hover .gcard:nth-child(1) { transform: translate(-172%, -48%) rotate(-12deg); }
.giftband .fan:hover .gcard:nth-child(2) { transform: translate(-106%, -58%) rotate(-4deg); }
.giftband .fan:hover .gcard:nth-child(3) { transform: translate(-36%, -52%) rotate(5deg); }
.giftband .fan:hover .gcard:nth-child(4) { transform: translate(28%, -42%) rotate(12deg); }

/* the plain-paper design thumbnail */
.design-type { position: absolute; inset: 0; display: grid; place-items: center; background: var(--paper); border-radius: 10px; font: 800 1.35rem/1 var(--display); color: var(--ink); }

/* Chinese has no handwriting face in this build: printed serif on the paper notes */
.note blockquote { font: 600 1.15rem/1.75 "Songti SC", "SimSun", "Noto Serif SC", Georgia, serif; letter-spacing: .01em; }
.note figcaption b { font-family: var(--sans); }

/* article header: an index stamp instead of a wide empty cover */
.article-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: start; }
.article-stamp { width: clamp(120px, 14vw, 164px); rotate: 3deg; }
.article-stamp .card-art { aspect-ratio: 1; border-radius: 18px; box-shadow: var(--sh-2); }
.article-stamp .ca-mark { font-size: clamp(2rem, 3.4vw, 2.6rem); }

/* stickers on artwork must sit inside the frame */
.card-art .ca-stk { right: .55rem; bottom: .5rem; }

/* the dashed QR slot needs a stroked icon, not a filled one */
.qr-hold svg { fill: none; stroke: currentColor; stroke-width: 1.5; }

/* keep the player-card tag clear of the logo */
.cash-stage .tag-stk { right: -12px; top: -18px; }

/* give the schedule tile copy more room */
.t-sched .sched-row { grid-template-columns: minmax(0, 1fr) minmax(0, 286px); }
.t-sched .cal { max-width: 286px; }

@media (max-width: 760px) {
  .giftband .fan { height: 320px; }
  .giftband .fan .gcard { width: 118px; }
  .giftband .fan .gcard:nth-child(1) { transform: translate(-140%, -56%) rotate(-9deg); }
  .giftband .fan .gcard:nth-child(2) { transform: translate(-84%, -46%) rotate(-3deg); }
  .giftband .fan .gcard:nth-child(3) { transform: translate(-28%, -36%) rotate(3deg); }
  .giftband .fan .gcard:nth-child(4) { transform: translate(28%, -26%) rotate(9deg); }
  .giftband .fan:hover .gcard { transform: none; }
  .giftband .fan:hover .gcard:nth-child(1) { transform: translate(-140%, -56%) rotate(-9deg); }
  .giftband .fan:hover .gcard:nth-child(2) { transform: translate(-84%, -46%) rotate(-3deg); }
  .giftband .fan:hover .gcard:nth-child(3) { transform: translate(-28%, -36%) rotate(3deg); }
  .giftband .fan:hover .gcard:nth-child(4) { transform: translate(28%, -26%) rotate(9deg); }
  .giftband .fan .gcard-cap b { font-size: .8rem; }
  .giftband .fan .gcard-cap span { font-size: .7rem; padding: .3rem .4rem; }
  .editor-env { display: none; }
  .article-stamp { display: none; }
  .note blockquote { font-size: 1.05rem; }
}

/* fan cards: the left edge is the part that stays visible, so the tag lives there */
.giftband .fan .ca-tag { left: .55rem; right: auto; top: .55rem; }
.giftband .fan { height: clamp(300px, 26vw, 360px); }
@media (max-width: 760px) { .giftband .fan { height: 300px; } }

/* player card: a small dot instead of the logo, so the corner tag stays clear */
.cashcard .cc-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 3px rgba(255, 251, 244, .55); }

/* tablet hero: keep both cards near the phone's top so the note inside stays readable */
@media (max-width: 1100px) and (min-width: 761px) {
  .hero-gift-coffee { left: -6px; top: 76px; }
  .hero-gift-flower { right: -6px; top: 118px; }
}

/* the hero lead reads better balanced than ragged at tablet widths */
.hero-lead { text-wrap: balance; }

/* work covers: a year label balances the corner tag, and the sticker needs a size */
.card-art .ca-year { position: absolute; z-index: 2; left: .8rem; top: .72rem; font: 700 .6875rem/1 var(--sans); letter-spacing: .14em; color: var(--ink-3); }
.card-art[data-tone="ink"] .ca-year { color: #cfc3af; }
.card-art .ca-stk svg { width: 100%; height: 100%; }
.work-hero .card-art .ca-mark { font-size: clamp(2.4rem, 4.2vw, 3.4rem); }
.pair-even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .pair-even { grid-template-columns: minmax(0, 1fr); } }

/* the tall bento tile: let the tool rail fill the card's height instead of leaving a gap */
.mini-editor { align-items: end; }
.t-card .tile-ui { margin-block: auto; }

/* narrower grids: give long names room next to the caption pill */
@media (max-width: 1020px) {
  .grid-gifts .gcard-cap { gap: .35rem; padding: .6rem .2rem .7rem; }
  .grid-gifts .gcard-cap b { font-size: .875rem; }
  .grid-gifts .gcard-cap span { font-size: .75rem; padding: .3rem .45rem; }
}

/* footer field: lift the placeholder a step for comfort on ink */
.news-form .input::placeholder { color: #b3a693; }

/* 17. Personal notebook: the established sticker palette and paper motion. */
.floating-note { aspect-ratio: 1; padding: 13px 10px; background: var(--sun); border-radius: 8px; display: flex; flex-direction: column; align-items: start; gap: 8px; }
.floating-note small { font: 700 10px/1.3 var(--sans); }
.floating-note strong { font: 750 19px/1.35 var(--display); letter-spacing: 0; }
.floating-note p { font: 500 10px/1.4 var(--sans); }
.floating-note .i { width: 20px; height: 20px; margin-top: auto; align-self: end; }
.floating-work { background: var(--peach); }
.pocket-note { aspect-ratio: auto; min-height: 126cqi; background: var(--sun); padding: 7cqi 7cqi 8cqi; display: flex; flex-direction: column; align-items: start; }
.pocket-note small { font: 600 4cqi/1.5 var(--sans); }
.pocket-symbol { margin: 7cqi 0; font: 800 29cqi/1 var(--display); letter-spacing: -.06em; color: var(--coral-deep); }
.pocket-note .t { font: 750 8cqi/1.35 var(--display); letter-spacing: 0; text-wrap: balance; }
.pocket-note .m { font: 500 4.6cqi/1.6 var(--sans); margin-top: 5cqi; }
.pocket-note[data-paper="peach"] { background: var(--peach); }
.pocket-note[data-paper="cream"] { background: var(--cream-2); }
.app-tabs button { display: grid; justify-items: center; gap: 1.5cqi; font: 600 3.4cqi/1.3 var(--sans); color: var(--muted); padding: 1cqi; }
.app-tabs button.on { color: var(--ink); }
.app-top .send { display: grid; place-items: center; min-height: 10cqi; }
.reading-preview { padding-top: 2rem; margin-block: auto; }
.t-card > .reading-preview { width: 100%; max-width: 320px; padding-top: 1.25rem; align-self: center; }
.t-card > .reading-preview .note-card { height: auto; }
.t-card > .reading-preview .card-summary { padding-right: 0; max-width: none; }
.site-updates { display: grid; gap: .5rem; margin-top: auto; padding-top: 1.5rem; }
.site-updates small { font-size: .8rem; }
.site-updates strong { font-size: 1.3rem; }
.site-updates span { font-size: .9rem; max-width: 30ch; }
.index-slips { display: flex; gap: .8rem; margin-top: 1.5rem; padding: .5rem .15rem; }
.index-slips > div { flex: 1; min-width: 0; background: var(--paper); color: var(--ink); border-radius: 6px 6px 16px 6px; padding: 1rem .85rem; rotate: -3deg; }
.index-slips > div:nth-child(2) { background: var(--sun); rotate: 2deg; }
.index-slips > div:nth-child(3) { background: var(--peach); rotate: -1deg; }
.index-slips span { font-size: .75rem; display: block; margin-bottom: 1rem; }
.index-slips b { font: 700 1.1rem/1.4 var(--display); overflow-wrap: anywhere; }
.index-slips p { font-size: .8rem; padding: 0; color: var(--ink-3); margin-top: .75rem; }
.home-overview { padding-bottom: clamp(3rem, 5vw, 5rem); }
.prod-card.no-shots { grid-template-columns: minmax(0, 1fr); }
.collection-body { line-height: 1.8; overflow-wrap: anywhere; }
.collection-body > * + * { margin-top: 1rem; }
.collection-body img { max-width: 100%; height: auto; }
.idea-paper { padding: 9%; aspect-ratio: 4 / 5; display: flex; flex-direction: column; }
.idea-paper[data-paper="sun"], .design-btn[data-paper="sun"] { background: var(--sun); }
.idea-paper[data-paper="cream"], .design-btn[data-paper="cream"] { background: var(--paper); }
.idea-paper[data-paper="peach"], .design-btn[data-paper="peach"] { background: var(--peach); }
.idea-paper[data-paper="blue"], .design-btn[data-paper="blue"] { background: #e2eff5; }
.paper-heading { display: flex; justify-content: space-between; align-items: center; font: 650 3cqi/1.4 var(--sans); }
.paper-heading .i { width: 6cqi; height: 6cqi; }
.idea-title { font: 750 9cqi/1.35 var(--display); margin: 18cqi 0 7cqi; }
.idea-message { font: 500 6.5cqi/1.75 var(--sans); overflow-wrap: anywhere; flex: 1; }
.paper-signature { font: 500 4cqi/1.2 var(--hand); padding-top: 12cqi; }
.idea-paper .placed { width: 17%; pointer-events: none; }
.idea-paper .placed b { font-family: var(--sans); }
.design-btn { width: auto; flex: 1 1 90px; max-width: 128px; height: 90px; padding: .8rem; text-align: left; display: flex; flex-direction: column; justify-content: space-between; }
.design-name { font: 700 .85rem/1.3 var(--sans); }
.design-word { font: 600 1.2rem/1 var(--hand); }
.editor-env { display: none; }
.player-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(3rem,8vw,8rem); align-items: center; }
.player-intro { display: grid; gap: 1.5rem; justify-items: start; }
.player-intro p { color: #e1d6c4; max-width: 32ch; }
.player-intro .btn { margin-top: .5rem; }
.player-sheet { background: var(--sun); color: var(--ink); padding: clamp(1.7rem,4vw,3rem); border-radius: 8px 8px 32px 8px; rotate: 3deg; max-width: 510px; }
.player-sheet-top { display: flex; justify-content: space-between; align-items: center; font: 700 1rem/1.4 var(--sans); }
.player-sheet-top svg { width: 48px; height: 48px; }
.player-name { display: block; font: 750 clamp(2.5rem,5vw,4.5rem)/1.25 var(--display); margin: 2rem 0 1.2rem; }
.player-sheet p { color: var(--ink); font: 600 1.2rem/1.6 var(--sans); }
/* The character and command note share one introduction, with no second stage. */
.about-profile-layout { padding-block: 1rem; align-items: center; }
.about-bio { min-width: 0; }
.about-hero .h1 { font: 800 clamp(38px, 4.45vw, 64px)/1.25 var(--sans); }
.about-intro { color: #514a41; font: 400 clamp(16px, 1.15vw, 17px)/1.85 var(--sans); }
.about-intro h2 { color: var(--ink); font: 700 clamp(28px, 2.2vw, 32px)/1.45 var(--sans); margin: 0 0 8px; }
.about-intro h3 { color: var(--ink-2); font: 700 16px/1.5 var(--sans); margin: 22px 0 9px; padding-top: 18px; border-top: 1px solid var(--line); }
.about-intro p + p { margin-top: 8px; }
.about-intro > p:last-child { margin-top: 18px; color: var(--ink-2); }
.about-profile-layout { padding-block: 1rem; }

@media (max-width: 760px) {
  .about-profile-layout { gap: 1rem; }
}
.personal-illustration img { object-fit: contain; }
.cta-photo { background: #fbe9b9; }
.about-photo img { object-fit: contain; background: #fbe9b9; }
.motto-board { position: relative; display: grid; align-content: center; justify-items: start; gap: 2rem; padding: clamp(2rem,5vw,4rem); background: var(--sun); border-radius: 8px 8px 32px 8px; rotate: 3deg; min-height: 380px; }
.motto-board > svg { width: 60px; height: 60px; color: var(--coral); }
.motto-board p { font: 600 clamp(2rem,4vw,3.5rem)/1.1 var(--hand); color: var(--ink); }
.motto-board span { font: 650 1.1rem/1.5 var(--sans); }
.motto-board small { font-size: .85rem; }
.mail-reopen { justify-self: start; }
.marquee:focus-within .marquee-track { animation-play-state: paused; }
@media (max-width: 1020px) {
  .player-layout { gap: 3rem; }
  .index-slips { flex-wrap: wrap; }
  .index-slips > div { flex-basis: 120px; }
}
@media (max-width: 760px) {
  .bento > .tile { grid-column: 1 / -1; grid-row: auto; }
  /* 手机上「最近更新」排到「这里都有什么」第一位 */
  .bento > .t-sched { order: -1; }
  .t-card { min-height: 500px; }
  .t-sched { min-height: 270px; }
  .tile .h3 { max-width: none; }
  .tile p { max-width: none; }
  .player-layout { grid-template-columns: minmax(0,1fr); }
  .player-sheet { rotate: 2deg; width: 96%; justify-self: center; }
  .player-interests { margin: 1.5rem 0; }
  .index-slips { gap: .65rem; }
  .index-slips > div { flex-basis: 100%; }
  .index-slips span { margin-bottom: .5rem; }
  .index-slips p { margin-top: .4rem; }
  .floating-note { padding: 9px 8px; gap: 5px; }
  .floating-note strong { font-size: 15px; }
  .floating-note small, .floating-note p { font-size: 9px; }
  .floating-note .i { width: 16px; height: 16px; }
  .design-btn { flex-basis: 40%; max-width: none; height: 78px; }
  .motto-board { min-height: 340px; rotate: 1deg; }
  .about-photo { aspect-ratio: 9 / 7; }
}
.hero-lead > span { display: block; }
.hero-english { margin-bottom: .65rem; }
.pocket-note .t { font-size: 10cqi; }
.pocket-note .m { font-size: 6cqi; }
.pocket-footer { margin-top: auto; padding-top: 8cqi; display: grid; gap: 3cqi; }
.pocket-footer strong { font: 700 5cqi/1.4 var(--sans); }
.pocket-footer span { font: 500 4.6cqi/1.5 var(--sans); }
.band-coral .lead, .band-coral .ctrl-label, .band-coral .char { color: var(--ink); }
.t-remind p { color: var(--ink); }
@media (max-width: 1020px) {
  .bento > .tile { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .hero-lead { font-size: 1.125rem; max-width: 31ch; }
}

/* Approved personal avatar: keep the original alpha image and sticker edge. */
.hero-avatar {
  position: absolute; z-index: 2; width: 360px; left: -100px; top: 85px;
  rotate: -5deg; transform-origin: 50% 70%;
  transition: rotate var(--d-3) var(--ease-out), translate var(--d-3) var(--ease-out);
}
.hero-avatar img { width: 100%; height: auto; background: transparent; }
.hero-avatar:hover { rotate: -1deg; translate: 0 -7px; }
.hero-avatar:active { translate: 0 -2px; }
.hero-avatar:focus-visible { outline-offset: -20px; border-radius: 40%; }
.hero-scene .hero-flower { left: 4%; top: 30px; }
.hero-scene .hero-sent { left: auto; right: 1%; top: 340px; }
@media (min-width: 761px) and (max-width: 1100px) {
  .hero-phone { translate: 35px 0; }
  .hero-avatar { width: 265px; left: -90px; top: 145px; }
  .hero-scene .hero-sent { left: 0; right: auto; top: 85px; pointer-events: none; }
  .hero-scene .hero-flower { left: 0; top: 20px; }
}
@media (min-width: 761px) and (max-width: 900px) {
  .hero-phone { --pw: 200px; translate: 50px 0; }
  .hero-avatar { width: 225px; left: -78px; top: 155px; }
}
@media (max-width: 760px) {
  .hero-phone { translate: 42px 0; }
  .hero-avatar { width: 310px; left: -80px; top: 90px; rotate: -5deg; }
  .hero-scene .hero-flower { left: 7%; top: 80px; }
  .hero-scene .hero-sent { left: 0; right: auto; top: 20px; pointer-events: none; }
}
@media (max-width: 600px) {
  .hero-avatar { width: 230px; left: -46px; top: 115px; }
  .hero-scene .hero-sent { font-size: .625rem; }
}
@media (max-width: 360px) {
  .hero-avatar { width: 205px; left: -50px; top: 130px; }
  .hero-phone { --pw: 184px; translate: 46px 0; }
  .hero-scene .hero-sent { padding: 7px; font-size: .5625rem; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-avatar:hover { rotate: -5deg; translate: none; }
}

/* footer contact icons: the three glyphs have different ink boxes, so each gets a small optical nudge */
.foot-contact-icons .icon-github .i { translate: .55px .55px; }
.foot-contact-icons .icon-wechat .i { translate: .5px 0; }

/* One workspace shell, with a preview pane and command terminal. */

/* A bounded, reversible sticky scene; the document remains the scroll driver. */
/* Terminal content is fully expanded; only command suggestions may scroll. */
/* Short desktop windows keep the full transcript, with less surrounding space. */

/* Paper feedback: independent translate preserves reveal and existing fan transforms.
   Inner slips remain part of their parent link, without extra keyboard stops. */
:is(.index-slips > div, .prod-card, .pcard, .help-card, .group-card, .qr-card) {
  transition: translate 280ms var(--ease-out), rotate 280ms var(--ease-out), box-shadow 280ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .index-slips > div:hover { translate: 0 -7px; rotate: 0deg; box-shadow: var(--sh-3); }
  :is(.prod-card, .pcard, .help-card, .group-card, .qr-card):hover { translate: 0 -5px; box-shadow: var(--sh-3); }
}
@media (prefers-reduced-motion: no-preference) {
  :is(.tile, .gcard, .note, .topic) { transition: transform var(--d-3) var(--ease-out), translate 280ms var(--ease-out), box-shadow var(--d-3) var(--ease-out); }
  :is(.tile, .gcard, .note, .topic):focus-visible,
  :is(.prod-card, .pcard, .help-card, .group-card, .qr-card):focus-within { translate: 0 -5px; box-shadow: var(--sh-3); }
  .tile:focus-visible .index-slips > div { translate: 0 -5px; rotate: 0deg; }
  :is(.tile, .gcard, .topic, .prod-card):active { translate: 0 1px; }
  .tile:active .index-slips > div { translate: 0 1px; }
}
@media (prefers-reduced-motion: no-preference) {
  :is(.home-projects > li, .notif, .editor-card) { transition: translate 280ms var(--ease-out), box-shadow 280ms var(--ease-out); }
  .tile:focus-visible :is(.home-projects > li, .notif) { translate: 0 -3px; }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  :is(.home-projects > li, .notif):hover { translate: 0 -3px; box-shadow: var(--sh-2); }
  .editor-card:hover { translate: 0 -5px; }
}

/* Earth Online: a shared axis, with main and side quests on either side. */
.quest-heading { align-items: end; }
.quest-heading h2 span { display: inline-block; background: var(--sun); padding: 0 .15em .08em; margin-top: .12em; }
.quest-board { position: relative; padding: 40px clamp(22px,4vw,60px) 24px; border: 1.5px solid var(--ink); border-radius: 30px; background-color: var(--paper); background-image: linear-gradient(var(--line) 1px,transparent 1px),linear-gradient(90deg,var(--line) 1px,transparent 1px); background-size: 28px 28px; box-shadow: 6px 7px 0 var(--ink); }
.quest-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; margin-bottom: 40px; text-align: center; }
.quest-columns span { justify-self: center; padding: 9px 24px; background: var(--paper); border: 1.5px solid var(--ink); box-shadow: 5px 5px 0 var(--coral); font-size: 23px; font-weight: 800; }
.quest-columns span + span { box-shadow: 5px 5px 0 var(--sun); }
.quest-axis-tip { position: absolute; top: 46px; left: 50%; transform: translateX(-50%); width: 34px; height: 34px; display: grid; place-items: center; border: 1.5px solid var(--ink); border-radius: 8px; background: var(--paper); font: 700 22px/1 var(--sans); }
.quest-list { position: relative; list-style: none; padding: 0; margin: 0; display: grid; gap: 24px; }
.quest-list::before { content: ''; position: absolute; left: 50%; top: -46px; bottom: -22px; border-left: 3px dashed var(--ink); transform: translateX(-50%); }
.quest-row { position: relative; display: grid; grid-template-columns: minmax(0,1fr) 100px minmax(0,1fr); align-items: center; }
.quest-row::before { content: ''; position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; border: 3px solid var(--ink); border-radius: 50%; background: var(--ink); box-shadow: inset 0 0 0 4px var(--paper),0 0 0 4px var(--paper); transform: translate(-50%,-50%); }
.quest-row::after { content: ''; position: absolute; left: calc(50% - 50px); top: 50%; width: 36px; border-top: 1.5px solid var(--ink); }
.quest-row.is-side::after { left: calc(50% + 14px); }
.quest-card.mile { position: relative; display: flex; gap: 16px; padding: 22px; border: 1.5px solid var(--ink); border-radius: 17px; background: var(--paper); box-shadow: 5px 6px 0 var(--coral); }
.is-side .quest-card { grid-column: 3; box-shadow: 5px 6px 0 var(--sun); }
.quest-mark { flex: 0 0 40px; height: 40px; display: grid; place-items: center; background: var(--coral); border: 1.5px solid var(--ink); border-radius: 12px; }
.is-side .quest-mark { background: var(--sun); }
.quest-copy { min-width: 0; }
.quest-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--body); }
.quest-kind { background: var(--ink); color: var(--paper); padding: 2px 6px; border-radius: 3px; font-weight: 700; }
.quest-card h3 { font-size: clamp(17px,1.6vw,21px); line-height: 1.5; margin: 8px 0; }
.quest-card p { font-size: 15px; line-height: 1.75; margin: 0; color: var(--body); }
.quest-status { display: inline-block; font-size: 12px; margin-top: 12px; border-bottom: 2px solid var(--coral); }
.is-side .quest-status { border-color: var(--sun); }
.quest-footnote { position: relative; width: fit-content; margin: 44px auto 0; padding: 4px 12px; background: var(--paper); font-size: 13px; }
.quest-empty { position: relative; background: var(--paper); text-align: center; padding: 24px; }
@media(max-width:760px) {
 .quest-board { padding: 26px 18px 20px; border-radius: 22px; box-shadow: 4px 5px 0 var(--ink); }
 .quest-columns { gap: 16px; margin: 0 0 36px 24px; }
 .quest-columns span { font-size: 17px; padding: 7px 12px; }
 .quest-axis-tip { top: 82px; left: 24px; width: 26px; height: 26px; font-size: 18px; }
 .quest-list { gap: 22px; }
 .quest-list::before { left: 5px; top: -12px; bottom: -22px; }
 .quest-row { display: block; padding-left: 30px; }
 .quest-row::before { left: 5px; width: 16px; height: 16px; border-width: 2px; box-shadow: inset 0 0 0 3px var(--paper),0 0 0 3px var(--paper); }
 .quest-row::after,.quest-row.is-side::after { left: 16px; width: 14px; }
 .quest-card.mile { gap: 10px; padding: 16px 14px; }
 .quest-mark { display: none; }
 .quest-card p { font-size: 14px; }
 .quest-footnote { margin-top: 36px; margin-left: 30px; }
}

/* Pin the board while the document scroll reveals the full timeline. */
.quest-heading h2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: .15em .3em; }
.quest-heading h2 span { margin: 0; }
.quest-window { padding: 8px 8px 10px; margin: -8px -8px -10px; }
.quest-rail.is-pinned .quest-board { position: sticky; top: var(--quest-top); height: var(--quest-height); display: flex; flex-direction: column; }
.quest-rail.is-pinned .quest-columns { flex-shrink: 0; margin-bottom: 26px; }
.quest-rail.is-pinned .quest-window { flex: 1; min-height: 0; overflow: clip; padding-top: 12px; padding-bottom: 12px; }
.quest-rail.is-pinned .quest-list { transform: translateY(var(--quest-shift,0px)); }
.quest-rail.is-pinned .quest-footnote { flex-shrink: 0; margin-top: 18px; }
.quest-rail.is-pinned .quest-list::before { top: 0; bottom: 0; }
@media(max-width:760px) {
 .quest-heading h2 { font-size: clamp(24px,5.8vw,38px); gap: .15em .25em; }
 .quest-rail.is-pinned .quest-columns { margin-bottom: 30px; }
 .quest-rail.is-pinned .quest-window { padding-top: 14px; }
}

/* Mobile reading: size the hero from its contents, including the controls.
   A fixed scene height clipped the selector when fonts or card content grew. */
@media (max-width: 760px) {
  .hero-scene { height: auto; min-height: 0; padding-bottom: 12px; }
  .hero-phone { flex: none; }
  .hero-scene .occ { flex: none; margin-top: 30px; }
  .occ .icon-btn { width: 44px; height: 44px; }
  .hero-phone .app-tabs button { min-height: 44px; }
  .note-card .gcard:nth-child(1) { --r: 0deg; }
  .note-card .gcard, .note-card .card-art, .note-card .gcard-cap { min-width: 0; max-width: 100%; }
  .note-card .gcard { width: 100%; }
  .note-card .card-art > img { width: 100%; object-fit: cover; }
  .note-card, .notes > *, .grid-gifts > * { min-width: 0; }
  .giftband .fan { overflow: clip; }

  /* Keep the original transcript in a scrollable pane inside one screen. */
  .sheet-foot { padding-bottom: max(1.4rem, env(safe-area-inset-bottom)); }
  .sheet { padding-top: env(safe-area-inset-top); }
  .contact-popup { max-height: calc(100dvh - 32px); overflow-y: auto; padding: 20px; }
}
@media (max-width: 480px) {
  .notes, [data-note-grid] { grid-template-columns: minmax(0,1fr); }
}


/* Workspace styles are owned here; do not append terminal overrides to css.part. */
/* Workspace base: terminal, preview, commands and desktop pinning. */
.skill-stage { display: grid; justify-items: center; gap: .25rem; margin-top: 1.25rem; }
.skill-art { position: relative; width: 280px; max-width: 100%; aspect-ratio: 1; touch-action: pan-y; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.skill-poster, .skill-frames, .skill-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.skill-frames { background-repeat: no-repeat; }
.skill-frames[hidden], .skill-poster[hidden], .skill-video[hidden] { display: none; }
.skill-art[data-video="true"] { aspect-ratio: 4 / 3; }
.about-runtime .skill-art[data-video="true"] { width: min(400px, 96%); }
.player-code-card { --pc-code: "JetBrains Mono", "Source Han Sans SC", monospace; width: 100%; max-width: 580px; padding: 30px 34px 26px; rotate: 2.5deg; border-radius: 9px 9px 32px 9px; }
.pc-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 24px; }
.pc-file { display: flex; align-items: center; gap: 10px; font: 600 14px/1.3 var(--pc-code); }
.pc-file > span { font-size: 19px; }
.pc-top > svg { width: 46px; height: 46px; rotate: -8deg; }
.pc-config { font: 500 15px/1.9 var(--pc-code); }
.pc-line { display: block; }
.pc-keyword { font-weight: 700; color: #702c16; }
.pc-punct { color: #625014; }
.pc-key { color: #4b3d14; }
.pc-string { color: var(--ink); font-weight: 650; }
.pc-indent { padding-left: 20px; }
.pc-indent2 { padding-left: 38px; }
.pc-name-line { display: flex; align-items: baseline; gap: 12px; margin: 4px 0; }
.player-code-card .player-name { display: inline; margin: 0; font: 750 34px/1.3 var(--display); letter-spacing: 0; }
.pc-name-line > .pc-string { font: 750 34px/1.3 var(--display); }
.pc-version-block { margin: 17px 0 19px; padding-left: 20px; }
.pc-version-label { display: block; font-size: 14px; }
.pc-version { display: block; margin: 4px 0 10px; font: 750 clamp(52px, 6vw, 86px)/1.05 var(--display); letter-spacing: -.055em; white-space: nowrap; }
.player-code-card .pc-version { font-family: var(--pc-code); font-weight: 700; }
.pc-quote { font: 500 18px/1 var(--pc-code); letter-spacing: 0; color: #625014; }
.pc-v { font-size: .69em; font-weight: 500; }
.pc-minor { color: #8a3218; }
.pc-age-comment { font-size: 13px; color: #574415; overflow-wrap: anywhere; display: block; }
.pc-array { color: #7c2813; font-weight: 600; }
.pc-closing { margin-top: 4px; }
.pc-release { margin-top: 25px; padding: 14px 16px; background: #ffdb7a; border-radius: 5px 5px 13px 5px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.pc-release-label { display: block; font: 500 11px/1.5 var(--pc-code); color: #554216; letter-spacing: .03em; }
.pc-release-cn { display: inline-block; white-space: nowrap; }
.about-profile-layout .player-code-card { justify-self: center; }
.pc-release time { font: 650 14px/1.5 var(--pc-code); }
.pc-release strong { display: flex; align-items: center; gap: 8px; font: 750 24px/1 var(--display); letter-spacing: -.03em; white-space: nowrap; }
.pc-release .i { width: 20px; height: 20px; rotate: -45deg; }
.player-code-card .pc-closing-comment { margin: 16px 0 0; font: 500 12px/1.5 var(--pc-code); color: #574415; }
.pc-command-form { margin-top: 18px; }
.pc-command-line { display: flex; align-items: center; gap: 10px; font: 600 15px/1.9 var(--pc-code); }
.pc-command-line > span { color: #7c2813; }
.pc-input-wrap { position: relative; display: block; flex: 1; min-width: 0; }
.pc-command-line input { flex: 1; width: 100%; min-width: 0; min-height: 44px; padding: 8px 4px; border: 0; border-bottom: 1px solid #b88c22; border-radius: 0; background: transparent; color: var(--ink); font: 500 16px/1.4 var(--pc-code); }
.pc-command-line input:placeholder-shown:not(:focus) { padding-left: 13px; }
.pc-idle-caret { position: absolute; pointer-events: none; left: 3px; top: 50%; width: 2px; height: 18px; transform: translateY(-50%); background: var(--ink); animation: pc-caret 1s steps(1, end) infinite; }
.pc-command-line input:focus + .pc-idle-caret, .pc-command-line input:not(:placeholder-shown) + .pc-idle-caret { display: none; }
.pc-command-line input:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.pc-command-line input[aria-invalid="true"] { border-bottom-color: #702c16; }
.pc-command-line input::placeholder { color: #67501c; opacity: 1; font-size: 13px; }
.pc-command-output { margin-top: 12px; padding-left: 22px; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink); font: 400 13px/1.8 var(--pc-code); }
.skill-art:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
.about-runtime-section { padding-bottom: clamp(4rem, 7vw, 7rem); }
.about-runtime { display: grid; align-items: center; padding: 0; grid-template-columns: minmax(260px,.8fr) minmax(0,1.5fr); gap: 0; background: #1d1b17; border: 1px solid #494238; border-radius: 14px; overflow: hidden; }
.about-runtime .skill-stage { margin: 0; display: grid; grid-template-rows: auto 1fr auto; align-self: stretch; justify-items: stretch; gap: 0; background: #eee4d3; min-height: 480px; border-right: 1px solid #494238; }
.about-runtime .skill-art { width: min(370px,90%); place-self: center; margin-block: 24px; }
.about-runtime .terminal-card { --terminal-text: #e8dfce; --terminal-muted: #b7ad9c; --terminal-accent: #ffd36b; width: 100%; max-width: none; rotate: 0deg; padding: 0; overflow: hidden; background: #1d1b17; color: var(--terminal-text); display: flex; flex-direction: column; min-height: 0; border-radius: 0; align-self: stretch; }
.terminal-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 26px; background: #292620; border-bottom: 1px solid #494238; }
.terminal-owner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.terminal-card .player-name { font: 500 12px/1.5 var(--sans); }
.terminal-version { font: 600 13px/1.5 var(--pc-code); color: var(--terminal-accent); }
.terminal-screen { padding: 24px 28px 0; font: 400 14px/1.8 var(--pc-code); }
.terminal-launch { font-weight: 600; margin-bottom: 8px; }
.terminal-launch > span { margin-right: 9px; color: var(--terminal-accent); }
.terminal-log, .terminal-ready, .terminal-loading { font: 400 12px/1.7 var(--pc-code); color: var(--terminal-muted); }
.terminal-log > span, .terminal-ready > span, .terminal-loading > span { color: var(--terminal-accent); font-weight: 600; }
.terminal-profile { margin-top: 20px; color: var(--terminal-text); }
.terminal-profile h2 { margin: 0 0 6px; color: var(--terminal-text); font: 700 clamp(19px, 1.6vw, 22px)/1.5 var(--pc-code); }
.terminal-profile h3 { margin: 15px 0 5px; color: var(--terminal-accent); font: 600 13px/1.6 var(--pc-code); }
.terminal-profile h3::before { content: '// '; }
.terminal-card .terminal-profile p { font: 400 15px/1.85 var(--pc-code); color: var(--terminal-text); }
.terminal-profile p + p { margin-top: 5px; }
.terminal-profile > p:last-child { margin-top: 12px; }
.terminal-loading { margin-top: 20px; }
.terminal-ready { margin-top: 5px; }
.terminal-card[data-boot-state="loading"] .terminal-loading-dots { animation: pc-caret .6s steps(1,end) infinite; }
.terminal-typing { position: relative; }
.terminal-type-reserve { visibility: hidden; }
.terminal-type-live { position: absolute; inset: 0; }
.terminal-type-live::after { content: ''; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -.1em; background: currentColor; }
.terminal-card .terminal-release { margin: 15px 28px 0; padding: 0; background: transparent; border-radius: 0; }
.terminal-release .pc-release-label { font: 400 11px/1.5 var(--pc-code); }
.terminal-release strong { font: 600 13px/1.5 var(--pc-code); color: var(--terminal-accent); }
.terminal-release time { font-size: 11px; }
.terminal-card .pc-command-form { margin: 18px 28px 20px; border-top: 1px solid #494238; padding-top: 10px; position: relative; }
.terminal-card .pc-command-line { gap: 12px; }
.terminal-card .pc-command-line input { border: 0; padding-block: 10px; color: var(--terminal-text); }
.terminal-release .pc-release-label, .terminal-release time { color: var(--terminal-muted); }
.terminal-card .pc-command-line > span { color: var(--terminal-accent); }
.terminal-card .pc-idle-caret { background: var(--terminal-accent); }
.terminal-card .pc-command-line input::placeholder { color: var(--terminal-muted); }
.terminal-card .terminal-prompt { flex: none; font-size: 12px; }
.terminal-card .pc-command-line input:focus-visible { outline: 0; }
.terminal-card .pc-command-line:focus-within { outline: 2px solid var(--terminal-accent); outline-offset: 3px; border-radius: 3px; }
.terminal-card .pc-command-output { padding-left: 0; font-size: 12px; color: var(--terminal-text); height: auto; min-height: 106px; max-height: none; overflow: visible; line-height: 1.6; }
.js .terminal-card:is([data-boot-state="pending"], [data-boot-state="running"], [data-boot-state="loading"]) :is([data-boot-line], .terminal-profile > *) { visibility: hidden; }
.js .terminal-card:is([data-boot-state="pending"], [data-boot-state="running"], [data-boot-state="loading"]) .boot-written { visibility: visible; }
.js .terminal-card:not([data-boot-state="ready"]) :is(.pc-command-form, .terminal-release) { visibility: hidden; }
.js .terminal-card:not([data-boot-state="ready"]) .pc-idle-caret { animation: none; }
.workbench-bar, .workbench-status { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; color: #c9c0b0; background: #292620; font: 400 12px/1.5 "JetBrains Mono", var(--sans); }
.workbench-bar { border-bottom: 1px solid #494238; }
.workbench-title { display: flex; align-items: center; gap: 10px; }
.workbench-title svg { width: 22px; height: 22px; }
.workbench-session { font-size: 10px; color: #b7ad9c; }
.workbench-status { padding-block: 7px; border-top: 1px solid #494238; font-size: 10px; display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); }
.workbench-status > :first-child { color: #ffd36b; }
.preview-tab, .preview-mode { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 20px; background: #292620; color: #e8dfce; font: 500 12px/1.5 var(--sans); }
.preview-tab { border-bottom: 1px solid #494238; }
.preview-tab > span { color: #b7ad9c; font: 400 10px/1.5 "JetBrains Mono", var(--sans); }
.preview-mode { padding-block: 11px; border-top: 1px solid #494238; font-size: 11px; }
.preview-mode code { font: 400 11px/1.5 "JetBrains Mono", monospace; color: #ffd36b; }
.about-runtime .terminal-bar { background: #24211c; padding-block: 15px; }
.terminal-card .pc-command-output[hidden] { display: block !important; visibility: hidden; }
.terminal-card .command-menu { position: absolute; z-index: 5; left: 0; right: 0; bottom: calc(100% - 1px); max-height: 260px; overflow-y: auto; margin: 0; padding: 5px; border: 1px solid #655a45; border-radius: 5px; background: #292620; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.command-option { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; min-height: 40px; padding: 8px 10px; color: #c9c0b0; font: 400 11px/1.5 var(--pc-code); cursor: pointer; }
.command-option code { color: #ffd36b; font: 500 12px/1.5 var(--pc-code); }
.command-option[aria-selected="true"] { background: #4b4030; color: #ffefce; border-radius: 3px; }
.workbench-scroll-scene { overflow-anchor: none; }
html.has-workbench-scene { overflow-anchor: none; }
.workbench-scroll-scene .about-runtime { position: sticky; top: var(--workbench-pin-top, calc(var(--header-h) + 16px)); height: auto; grid-template-rows: auto auto auto; align-items: stretch; }
.workbench-scroll-scene .skill-stage { min-height: 0; min-width: 0; }
.workbench-scroll-scene .terminal-card { display: flex; flex-direction: column; min-height: 0; }
.workbench-scroll-scene .terminal-bar,
.workbench-scroll-scene .terminal-release,
.workbench-scroll-scene .pc-command-form { flex-shrink: 0; }
.terminal-card .terminal-screen { flex: none; min-height: auto; overflow: visible; }
.terminal-card .terminal-screen,
.terminal-card .pc-command-output,
.terminal-card .command-menu { scrollbar-width: none; }
.terminal-card .terminal-screen::-webkit-scrollbar,
.terminal-card .pc-command-output::-webkit-scrollbar,
.terminal-card .command-menu::-webkit-scrollbar { display: none; }
.workbench-scroll-scene .pc-command-output { overscroll-behavior-y: auto; }
.workbench-scroll-scene .terminal-screen:focus-visible { outline: 2px solid #ffd36b; outline-offset: -3px; }
.workbench-scroll-meter { display: flex; align-items: center; gap: 10px; height: 16px; flex: none; grid-column: 2; justify-self: center; }
.workbench-status > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workbench-status > span:last-child { grid-column: 3; justify-self: end; white-space: nowrap; }
.workbench-scroll-meter > span { position: relative; display: block; width: 34px; height: 2px; overflow: hidden; background: #514a3f; }
.workbench-scroll-meter > span::before { content: ''; position: absolute; inset: 0; background: #ffd36b; transform: scaleX(var(--segment-fill,0)); transform-origin: left; }
.about-runtime-section:not(.workbench-scroll-scene) .workbench-scroll-meter { display: none; }
/* Caret animation. */
@keyframes pc-caret {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
/* Viewport and motion variant: (max-width:1100px) */
@media (max-width:1100px) {
  .player-code-card { padding: 26px; }
  .pc-name-line > .pc-string { font-size: 30px; }
  .pc-version { font-size: 70px; }
  .pc-indent2 { padding-left: 30px; }
  .skill-art { width: 260px; }
}
/* Viewport and motion variant: (max-width:1020px) */
@media (max-width:1020px) {
  .about-runtime { grid-template-columns: minmax(210px,.7fr) minmax(0,1.5fr); }
  .preview-tab, .preview-mode { padding-inline: 14px; }
  .preview-tab > span { display: none; }
}
/* Viewport and motion variant: (min-width:761px) */
@media (min-width:761px) {
  .about-runtime .workbench-bar { padding-block: 5px; }
  .about-runtime .terminal-bar, .about-runtime .preview-tab { padding-block: 8px; }
  .terminal-card .terminal-screen { padding-top: 10px; }
  .terminal-card .terminal-profile { margin-top: 10px; }
  .terminal-card .terminal-profile h2 { font-size: 20px; }
  .terminal-card .terminal-profile h3 { margin-top: 10px; }
  .terminal-card .terminal-profile p { font-size: 14px; line-height: 1.65; }
  .terminal-card .terminal-loading { margin-top: 12px; }
  .terminal-card .terminal-release { margin-top: 6px; }
  .terminal-card .pc-command-form { margin-top: 6px; margin-bottom: 8px; padding-top: 6px; }
  .terminal-card .pc-command-line input { padding-block: 6px; }
  .terminal-card .pc-command-output { margin-top: 6px; min-height: 90px; font-size: 11px; line-height: 1.35; }
}
/* Viewport and motion variant: (min-width:761px)and(max-height:900px) */
@media (min-width:761px) and (max-height:900px) {
  .about-runtime { grid-template-columns: minmax(200px,.6fr) minmax(0,1.7fr); }
  .about-runtime .skill-art { width: min(300px,85%); margin-block: 12px; }
  .terminal-card .terminal-profile p { line-height: 1.5; }
  .terminal-card .terminal-profile h3 { margin: 6px 0 3px; }
  .terminal-card .terminal-profile p + p { margin-top: 3px; }
  .terminal-card .terminal-profile > p:last-child { margin-top: 6px; }
  .terminal-card .terminal-profile { margin-top: 6px; }
  .terminal-card .terminal-loading { margin-top: 6px; }
  .terminal-card .terminal-ready { margin-top: 3px; }
  .terminal-card .terminal-screen { padding-top: 6px; }
  .terminal-card .terminal-launch { margin-bottom: 4px; }
  .terminal-card .terminal-log, .terminal-card .terminal-ready, .terminal-card .terminal-loading { line-height: 1.4; }
  .terminal-card .terminal-release { margin-top: 4px; }
  .terminal-card .terminal-release > div { display: flex; align-items: baseline; gap: 12px; }
  .terminal-card .pc-command-form { margin-top: 4px; margin-bottom: 4px; padding-top: 4px; }
  .terminal-card .pc-command-line input { padding-block: 4px; }
}
/* Viewport and motion variant: (min-width:1100px)and(max-height:900px) */
@media (min-width:1100px) and (max-height:900px) {
  .terminal-card .pc-command-output { columns: 2; column-gap: 20px; min-height: 45px; }
}
/* Viewport and motion variant: (min-width:761px)and(max-height:760px) */
@media (min-width:761px) and (max-height:760px) {
  .about-runtime .skill-art { width: min(250px,85%); }
  .about-runtime .workbench-bar { padding-block: 3px; }
  .about-runtime .terminal-bar, .about-runtime .preview-tab { padding-block: 5px; }
  .terminal-card .terminal-profile h2 { font-size: 19px; line-height: 1.35; margin-bottom: 4px; }
  .terminal-card .terminal-profile h3 { margin-top: 4px; }
  .terminal-card .pc-command-output { margin-top: 4px; }
  .about-runtime .workbench-status { padding-block: 4px; }
}
/* Phone layout: bounded workspace, scrollable transcript. */
@media (max-width:760px) {
  .player-code-card { padding: 22px 20px; }
  .pc-file { font-size: 12px; }
  .pc-top { margin-bottom: 18px; }
  .pc-top > svg { width: 40px; height: 40px; }
  .pc-name-line { gap: 9px; }
  .pc-indent, .pc-version-block { padding-left: 12px; }
  .pc-indent2 { padding-left: 20px; }
  .pc-version-block { margin-top: 14px; }
  .pc-version { font-size: 68px; }
  .pc-age-comment { font-size: 12px; }
  .pc-release { padding: 12px; margin-top: 22px; }
  .player-code-card .pc-closing-comment { font-size: 11px; }
  .skill-stage { margin-top: .75rem; }
  .skill-art { width: 220px; }
  .about-runtime { grid-template-columns: minmax(0,1fr); height: calc(100svh - 88px); grid-template-rows: auto auto minmax(0,1fr) auto; }
  .about-runtime .skill-art { width: 116px; margin-block: 2px; }
  .terminal-bar { padding: 14px 18px; gap: 8px; }
  .terminal-owner { gap: 8px; }
  .terminal-bar .pc-file { font-size: 12px; }
  .terminal-screen { padding: 20px 18px 0; font-size: 12px; }
  .terminal-log, .terminal-ready { font-size: 10px; }
  .terminal-card .terminal-profile p { font-size: 14px; }
  .terminal-card .terminal-release { margin-inline: 18px; margin: 4px 12px 0; display: flex; justify-content: space-between; gap: 8px; }
  .terminal-card .pc-command-form { margin-inline: 18px; margin: 8px 12px 10px; padding-top: 6px; }
  .terminal-card .pc-command-output { font-size: 11px; min-height: 0; max-height: 72px; overflow-y: auto; margin-top: 6px; line-height: 1.5; scrollbar-width: thin; }
  .terminal-card .terminal-prompt { font-size: 10px; }
  .about-runtime .skill-stage { min-height: 0; border-right: 0; border-bottom: 1px solid #494238; grid-template-rows: auto 120px auto; }
  .workbench-bar { padding: 12px 14px; }
  .workbench-title { font-size: 10px; gap: 7px; }
  .workbench-session { display: none; }
  .preview-tab, .preview-mode { padding-block: 9px; }
  .preview-tab > span { display: inline; }
  .workbench-status { padding-inline: 14px; padding: 5px 12px; }
  .workbench-status > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .workbench-status > span:last-child { display: none; }
  .workbench-scroll-meter { gap: 8px; }
  .workbench-scroll-meter > span { width: 28px; }
  .about-runtime .skill-art[data-video="true"] { width: 154px; }
  .about-runtime .workbench-bar { padding: 7px 12px; }
  .about-runtime .preview-tab, .about-runtime .preview-mode { padding: 5px 12px; font-size: 11px; }
  .about-runtime .terminal-bar { padding: 7px 12px; }
  .about-runtime .terminal-card .terminal-screen { flex: 1; min-height: 0; padding: 12px 14px; overflow-y: auto; scrollbar-width: auto; scrollbar-gutter: stable; }
  .terminal-card .terminal-screen::-webkit-scrollbar { display: block; width: 6px; }
  .terminal-card .terminal-screen::-webkit-scrollbar-track { background: #292620; }
  .terminal-card .terminal-screen::-webkit-scrollbar-thumb { background: #a69981; border-radius: 6px; }
  .terminal-card .terminal-screen:focus-visible { outline: 2px solid #ffd36b; outline-offset: -3px; }
  .terminal-card .terminal-release > div { display: flex; gap: 8px; align-items: baseline; }
  .terminal-card .terminal-bar, .terminal-card .terminal-release, .terminal-card .pc-command-form { flex-shrink: 0; }
  .terminal-card .pc-command-line { gap: 6px; }
  .terminal-card .pc-command-line input { font-size: 16px; padding-block: 6px; }
  .terminal-card .command-menu { scrollbar-width: thin; scrollbar-color: #a69981 #292620; }
  .terminal-card .command-menu::-webkit-scrollbar { display: block; width: 6px; }
  .terminal-card .pc-command-output[hidden] { display: none !important; }
}
/* Phone layout: bounded workspace, scrollable transcript. */
@media (max-width:760px) and (max-height:650px) {
  .about-runtime .skill-stage { grid-template-rows: auto 88px auto; }
  .about-runtime .skill-art { width: 84px; }
  .about-runtime .skill-art[data-video="true"] { width: 112px; }
}
/* Viewport and motion variant: (prefers-reduced-motion:reduce) */
@media (prefers-reduced-motion:reduce) {
  .pc-idle-caret { animation: none; }
}

/* Same phead, h1/h3, chips, gcard proportions and tokens as the inner pages.
   One worktable: wall + three permanently visible containers; no tab views. */
.studio-workspace.wrap { width:min(100% - 2 * var(--gutter),1440px); }
.studio-heading { display:flex; gap:2rem; justify-content:space-between; align-items:flex-end; }
.studio-heading-actions { display:flex; gap:.75rem; flex-wrap:wrap; flex:none; padding-bottom:.25rem; }
.studio-workspace { padding-bottom:var(--section); }
.studio-scroll-progress { display:none; position:absolute; left:50%; bottom:0; transform:translateX(-50%); gap:8px; pointer-events:none; }
.studio-scroll-progress>span { display:block; width:24px; height:3px; background:#15130f24; border-radius:2px; overflow:hidden; }
.studio-scroll-progress i { display:block; width:100%; height:100%; background:var(--ink-3); transform:scaleX(0); transform-origin:left; }
.studio-tools { margin-bottom:24px; display:flex; justify-content:space-between; align-items:center; gap:1.5rem; }
.studio-search { width:280px; flex:none; }
.studio-search .input { width:100%; }
.studio-storage:not(.sr-only) { font-size:var(--fs-xs); color:var(--muted); margin:1rem 0 1.5rem; min-height:1.5em; }
.studio-storage.has-error,.studio-danger,.studio-dialog-error { color:var(--error); }
.studio-worktable { display:grid; grid-template-columns:minmax(0,1fr) 320px; gap:24px; align-items:start; }
.studio-wall-panel { min-width:0; padding:28px 24px 18px; border-radius:var(--r-lg); background:var(--hero-band); position:relative; }
.studio-panel-heading { margin-bottom:18px; display:flex; justify-content:space-between; align-items:center; gap:1rem; }
.studio-panel-heading .h3,.studio-bin-head .h3 { display:flex; align-items:center; gap:.65rem; }
.studio-count { font:600 .8125rem/1 var(--display); display:inline-grid; place-items:center; min-width:25px; height:25px; padding:0 6px; background:var(--paper); border-radius:8px; font-variant-numeric:tabular-nums; }
.studio-wall-viewport { position:relative; max-height:740px; overflow:auto; padding:14px 0 0; overscroll-behavior:contain; scrollbar-width:thin; scrollbar-color:#b69b70 transparent; border-radius:10px; }
.studio-wall { position:relative; display:flow-root; isolation:isolate; min-width:660px; min-height:650px; --card-w:208px; --note-h:168px; }
.studio-rope { position:absolute; height:55px; left:22px; right:22px; pointer-events:none; }
.studio-rope svg { width:100%; height:50px; overflow:visible; }
.studio-rope path { fill:none; stroke:#a9875d; stroke-width:3; vector-effect:non-scaling-stroke; filter:drop-shadow(0 3px 1px #73583d20); transition:stroke .2s; }
.studio-rope::before { content:""; position:absolute; top:-4px; left:-4px; width:9px; height:9px; background:#765739; border:2px solid #c6a678; border-radius:50%; }
.studio-rope svg { transform-origin:50% 0; }
.studio-rope-number { position:absolute; left:-7px; top:20px; font:13px var(--hand); color:var(--muted); }
.studio-rope .studio-rope-hook,.studio-rope-starter .studio-rope-hook { position:absolute; right:-22px; top:-22px; width:44px; height:44px; border-radius:50%; box-shadow:inset 0 0 0 1px #a9875d30; }
.studio-rope-hook::before { content:""; position:absolute; width:11px; height:11px; top:16px; left:16px; border-radius:50%; background:#87633f; border:3px solid #d9b67f; box-shadow:1px 2px 2px #76573920; }
.studio-rope-hook.is-active { box-shadow:inset 0 0 0 2px #a9875d70; }
.studio-rope-hook.is-ready { background:var(--sun-soft); box-shadow:inset 0 0 0 2px var(--ink); }
.studio-rope-end { position:absolute; right:-22px; top:-22px; width:44px; height:44px; border-radius:50%; pointer-events:auto; touch-action:none; cursor:grab; }
.studio-rope-end::before { content:""; position:absolute; width:19px; height:19px; left:12px; top:12px; border:3px solid #a9875d; border-radius:50%; box-shadow:inset 0 0 0 2px #e2bb84,1px 2px 2px #76573930; }
.studio-rope-end::after { content:""; position:absolute; width:12px; height:10px; border-right:3px solid #a9875d; border-radius:0 0 9px 0; left:27px; top:24px; transform:rotate(12deg); }
.studio-rope-end:hover { background:#fffbf480; }
.studio-rope.is-unhooked>svg,.studio-rope.is-unhooked>.studio-rope-end { visibility:hidden; }
.studio-rope-starter { position:absolute; left:22px; right:22px; height:60px; pointer-events:none; }
.studio-rope-spool { position:absolute; top:-24px; left:-24px; width:48px; height:48px; pointer-events:auto; touch-action:none; cursor:grab; border-radius:50%; }
.studio-rope-spool svg { width:48px; height:48px; filter:drop-shadow(1px 3px 2px #76573925); }
.studio-rope-spool:hover svg { transform:rotate(-12deg); }.studio-rope-spool:active { cursor:grabbing; }
.studio-rope-preview { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; z-index:30; overflow:visible; }
.studio-rope-preview path { fill:none; stroke:#a9875d; stroke-width:3; stroke-linecap:round; vector-effect:non-scaling-stroke; filter:drop-shadow(0 3px 1px #73583d20); }
.studio-rope-free-end { position:absolute; width:18px; height:18px; margin:-9px 0 0 -9px; border:3px solid #a9875d; border-radius:50%; box-shadow:inset 0 0 0 2px #e2bb84,1px 2px 2px #76573930; pointer-events:none; z-index:31; }
.studio-rope-free-end.is-ready { border-color:var(--ink); background:var(--sun-soft); }
.is-rope-dragging { user-select:none; cursor:grabbing; }.is-rope-dragging .studio-empty { opacity:.35; }
.studio-rope.is-target path { stroke:var(--coral-deep); stroke-width:4; }
.studio-hanging { position:absolute; width:var(--card-w,208px); z-index:2; pointer-events:none; transition:left .3s var(--ease-out),top .3s var(--ease-out); }
/* A rotated paper leaves empty corners inside its box; those must stay
   click-through, otherwise a neighbour swallows the clip you are aiming at. */
.studio-hanging > .studio-paper { pointer-events:auto; }
.studio-hanging:hover,.studio-hanging:focus-within { z-index:10; }
.studio-paper { position:relative; padding:10px 10px 0; background:var(--paper); border-radius:var(--r-md); box-shadow:var(--sh-2); transform:rotate(var(--rest,0deg)); transform-origin:50% 0; }
.studio-note { position:relative; height:var(--note-h,168px); padding:24px 16px; border-radius:12px; background:var(--sun-soft); overflow:hidden; }
.studio-note[data-paper="sun"],.studio-colors [data-paper="sun"] { background:var(--sun); }
.studio-note[data-paper="cream"],.studio-colors [data-paper="cream"] { background:var(--cream-2); }
.studio-note[data-paper="peach"],.studio-colors [data-paper="peach"] { background:var(--peach); }
.studio-note[data-paper="blue"],.studio-colors [data-paper="blue"] { background:#e2eff5; }
.studio-note[data-paper="pink"],.studio-colors [data-paper="pink"] { background:#f5d7df; }
.studio-paper-text { position:relative; z-index:1; width:100%; height:calc(var(--note-h,168px) - 53px); display:block; overflow:hidden; font:600 1rem/1.75 var(--display); color:var(--ink); text-align:left; overflow-wrap:anywhere; touch-action:pan-x pan-y; }
.studio-paper-caption { display:flex; align-items:center; gap:6px; padding:12px 3px; min-height:48px; color:var(--ink); }
.studio-paper-caption b { font:700 .875rem/1.15 var(--display); flex:1; min-width:0; }
.studio-paper-caption>span { white-space:nowrap; font:600 11px/1 var(--display); padding:6px; background:var(--cream); border-radius:6px; }
.studio-clip { position:absolute; top:-17px; left:calc(50% - 8px); width:16px; height:36px; background:#c49961; border:1px solid #a87e4d; border-radius:3px 3px 2px 2px; box-shadow:2px 2px 2px #76573936; z-index:5; transform:rotate(3deg); touch-action:none; cursor:grab; outline-offset:7px; }
.studio-clip::before { content:""; position:absolute; top:-6px; bottom:-6px; left:-14px; right:-14px; background:transparent; }
.studio-clip::after { content:""; position:absolute; top:17px; left:-2px; right:-2px; height:5px; border:1px solid #685b4b; border-left:0; border-right:0; background:#b4a086; }
.studio-grip { position:absolute; right:2px; top:2px; width:44px; height:44px; display:grid; place-items:center; z-index:4; cursor:grab; touch-action:none; border-radius:12px; color:var(--ink-3); background:var(--paper); }
.studio-grip svg { width:13px; height:18px; }
.studio-sticker { position:absolute; width:34px; height:34px; transform:translate(-50%,-25%) rotate(var(--sr,0deg)); pointer-events:none; opacity:.9; }
.studio-sticker svg { width:100%; height:100%; filter:drop-shadow(0 2px 1px #76573925); }
.studio-sticker b { position:absolute; inset:0; display:grid; place-items:center; font:700 11px var(--sans); color:var(--ink); }
.studio-empty { position:relative; margin:95px 35px 0; max-width:480px; padding:32px 26px; border-radius:var(--r-md); background:var(--paper); text-align:left; box-shadow:var(--sh-1); }
.studio-empty p { font-size:var(--fs-sm); color:var(--muted); margin:1rem 0 1.5rem; }
.studio-wall-footer { position:relative; display:flex; justify-content:space-between; align-items:center; gap:16px; padding:20px 2px 0; }
.studio-hand { font:26px/1.2 var(--hand); color:var(--ink-3); }
.studio-rail-slot { position:sticky; top:88px; min-width:0; }
.studio-containers { display:grid; gap:24px; }
.studio-bin { position:relative; padding:22px 18px 16px; border-radius:var(--r-lg); background:var(--paper); min-width:0; transition:background-color .18s,box-shadow .18s; }
.studio-trash { background:var(--peach); }
.studio-archive { background:var(--cream-2); }
.studio-bin-head { display:flex; align-items:center; gap:12px; }
.studio-bin-art { width:65px; height:65px; flex:none; }
.studio-bin-head .h3 { font-size:1.25rem; gap:.5rem; }
.studio-loose { margin-top:20px; display:grid; gap:20px; max-height:290px; padding:6px 8px 12px; overflow-x:hidden; overflow-y:auto; overscroll-behavior:contain; scrollbar-width:thin; }
.studio-loose-item { min-width:0; }
.studio-loose-item .studio-paper { --rest:-1deg; box-shadow:var(--sh-1); }
.studio-loose-item:nth-child(even) .studio-paper { --rest:1.5deg; }
.studio-loose-item .studio-note { height:110px; padding:18px 14px; }
.studio-loose-item .studio-paper-text { height:75px; font-size:.875rem; padding-right:14px; }
.studio-loose-item .studio-paper-caption { padding-block:10px; }
.studio-loose-item .studio-sticker { width:25px; height:25px; }
.studio-text-btn { font-size:12px; min-height:44px; text-decoration:underline; text-underline-offset:4px; }
.studio-bin.is-drop-target { background:var(--sun-soft); box-shadow:inset 0 0 0 3px var(--ink); }
.studio-trash.is-drop-target { background:var(--coral-soft); }
.studio-wall-panel.is-drop-target { box-shadow:inset 0 0 0 2px #a9875d80; }
.studio-ghost { position:fixed; z-index:3000; margin:0; pointer-events:none; transform-origin:50% 0; box-shadow:var(--sh-3); opacity:.97; }
.is-drag-source { opacity:.25; }
.is-studio-dragging { user-select:none; cursor:grabbing; }
.studio-dialog { border:0; border-radius:var(--r-lg); padding:30px; background:var(--paper); color:var(--ink-3); width:min(820px,calc(100vw - 32px)); max-height:calc(100dvh - 40px); overflow:auto; box-shadow:var(--sh-3); }
.studio-dialog::backdrop { background:#30241665; }
.studio-dialog-head { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:24px; }
.studio-dialog-head .icon-btn { font-size:27px; flex:none; }
.studio-composer { display:grid; grid-template-columns:230px minmax(0,1fr); gap:30px; align-items:start; }
.studio-preview { padding:22px 0; position:sticky; top:0; }
.studio-preview .studio-paper { transform:rotate(-3deg); }
.studio-preview .studio-note { min-height:210px; height:auto; }
.studio-preview p { font:600 1rem/1.75 var(--display); color:var(--ink); overflow-wrap:anywhere; white-space:pre-wrap; position:relative; z-index:1; }
.studio-fields { display:grid; gap:10px; font-size:var(--fs-sm); min-width:0; }
.studio-fields .input,.studio-fields .select { width:100%; padding:9px 12px; font-size:16px; min-height:44px; }
.studio-fields textarea { resize:vertical; min-height:120px; }
.studio-fields label>span { font-size:12px; float:right; color:var(--muted); }
.studio-fields .stk-tray { gap:8px; flex-wrap:wrap; }
.studio-fields .stk-btn { width:44px; height:44px; min-width:44px; border-radius:12px; }
.studio-fields .stk-btn svg { width:31px; height:31px; }.studio-fields .stk-btn b { font-size:11px; }
.studio-colors { display:flex; gap:10px; margin-bottom:5px; }
.studio-colors button { width:44px; height:44px; border:1px solid var(--line-2); border-radius:50%; }
.studio-colors button[aria-pressed="true"] { outline:2px solid var(--ink); outline-offset:2px; }
.studio-position { display:grid; grid-template-columns:1fr 1.5fr 1fr; gap:12px; margin-top:8px; font-size:12px; }
.studio-position input { width:100%; margin-top:7px; }.studio-position input[type="range"] { accent-color:var(--ink); min-height:44px; }
.studio-dialog-save { display:flex; gap:22px; align-items:center; margin-top:24px; }
.studio-dialog-error { font-size:13px; margin-top:12px; }
.studio-card-actions { display:flex; gap:8px 24px; flex-wrap:wrap; border-top:1px solid var(--line); padding-top:16px; margin-top:22px; }.studio-card-actions:empty { display:none; }
.studio-card-actions button { font-size:13px; min-height:44px; text-decoration:underline; text-underline-offset:4px; }
.studio-card-actions small { width:100%; font-size:12px; color:var(--muted); }
.studio-aux { width:min(510px,calc(100vw - 32px)); }.studio-aux>p { font-size:var(--fs-sm); margin-bottom:20px; line-height:1.7; }
.studio-aux .studio-dialog-save { margin-top:8px; }
.studio-import,.studio-persist { border-top:1px solid var(--line); padding-top:22px; margin-top:26px; display:grid; gap:12px; font-size:14px; }
.studio-import p,.studio-persist p { font-size:12px; color:var(--muted); }.studio-import input { max-width:100%; font-size:14px; }
.ed-colors { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }.ed-colors label { font-size:14px; }.ed-colors .select { min-height:44px; padding:6px 12px; font-size:16px; }.ed-save-status { font-size:12px; opacity:.85; }
.idea-paper[data-paper="pink"] { background:#f5d7df; }
.studio-workspace button:disabled,.studio-dialog button:disabled { opacity:.55; cursor:default; }
@media(max-width:1100px) {
  .studio-heading { align-items:flex-start; }.studio-heading-actions { flex-direction:column; }
  .studio-worktable { grid-template-columns:minmax(0,1fr) 265px; gap:18px; }.studio-wall-panel { padding:24px 16px 18px; }
  .studio-bin { padding:18px 14px 12px; }.studio-bin-art { width:52px; height:52px; }.studio-bin-head { gap:8px; }.studio-bin-head .h3 { font-size:1.125rem; }
}
@media(max-width:800px) {
  .studio-worktable { grid-template-columns:minmax(0,1fr); }
  .studio-rail-slot { position:static; grid-row:1; }
  .studio-containers { grid-template-columns:1fr 1fr; gap:16px; }
  .studio-archive { grid-column:2; }
  .studio-bin { border-radius:var(--r-md); }.studio-loose { max-height:205px; }.studio-bin-art { width:54px; height:54px; }
  .studio-wall-viewport { max-height:650px; }
  .studio-heading { display:block; }.studio-heading-actions { flex-direction:row; margin-top:1.5rem; }
  .studio-tools { align-items:flex-start; flex-wrap:wrap; }.studio-search { width:100%; }.studio-tools .chips { gap:.4rem; }
  .is-studio-dragging .studio-containers { position:fixed; z-index:2500; bottom:max(12px,env(safe-area-inset-bottom)); left:16px; right:16px; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; padding:8px; background:var(--cream); border-radius:24px; box-shadow:var(--sh-3); }
  .is-studio-dragging .studio-archive { grid-column:auto; }
  .is-studio-dragging .studio-bin { padding:12px; min-height:80px; box-shadow:inset 0 0 0 1px var(--line); }
  .is-studio-dragging .studio-bin .studio-loose,.is-studio-dragging .studio-bin [data-studio-empty-trash] { display:none; }
  .is-studio-dragging .studio-bin-art { width:40px; height:40px; }.is-studio-dragging .studio-bin-head { gap:8px; }.is-studio-dragging .studio-bin-head .h3 { font-size:14px; gap:6px; }
  .is-studio-dragging .studio-count { font-size:11px; min-width:21px; height:21px; }
}
@media(max-width:600px) {
  .studio-phead { padding-bottom:1.5rem; }.studio-heading .lead { max-width:27em; }
  .studio-tools .chip { min-height:40px; }
  .studio-wall-panel { padding:22px 14px 18px; border-radius:var(--r-lg); }.studio-panel-heading .h3 { font-size:1.25rem; }
  .studio-wall-viewport { max-height:620px; }.studio-wall { min-width:0; --card-w:170px; --note-h:145px; }
  .studio-note { padding:24px 12px 14px; }.studio-paper-text { font-size:.9375rem; height:calc(var(--note-h,145px) - 40px); line-height:1.7; }.studio-paper-caption { min-height:44px; gap:4px; }.studio-paper-caption b { font-size:12px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }.studio-paper-caption>span { font-size:10px; padding:4px 5px; }
  .studio-sticker { width:29px; height:29px; }.studio-clip { width:18px; left:calc(50% - 9px); }.studio-empty { margin:85px 18px 0; width:calc(100vw - 100px); max-width:400px; padding:25px 20px; }.studio-empty p { font-size:14px; }
  .studio-wall-footer { align-items:flex-start; }.studio-hand { font-size:21px; }
  .studio-containers { gap:12px; }.studio-bin { padding:16px 12px 10px; }.studio-bin-head { flex-direction:column; align-items:flex-start; gap:8px; }.studio-bin-head .h3 { font-size:1.125rem; gap:6px; }.studio-bin-art { width:50px; height:50px; }
  .studio-loose { margin-top:10px; max-height:190px; padding:4px 0 8px; gap:18px; }.studio-loose-item .studio-paper { padding:7px 7px 0; border-radius:14px; }.studio-loose-item .studio-note { height:108px; padding:20px 10px 10px; border-radius:9px; }.studio-loose-item .studio-paper-text { font-size:12px; height:72px; padding:0; }.studio-loose-item .studio-paper-caption>span { display:none; }.studio-loose-item .studio-paper-caption { padding:8px 3px; min-height:36px; }.studio-loose-item .studio-grip { width:36px; height:36px; }.studio-loose-item .studio-paper-caption b { font-size:11px; }
  .is-studio-dragging .studio-bin-head { flex-direction:column; align-items:flex-start; }
  .studio-dialog { padding:20px; border-radius:var(--r-md); width:calc(100vw - 24px); max-height:calc(100dvh - 24px); }.studio-dialog-head { margin-bottom:12px; }.studio-composer { display:flex; flex-direction:column; gap:10px; }.studio-preview { width:170px; position:static; align-self:center; padding:10px 0 20px; }.studio-preview .studio-note { min-height:140px; }.studio-preview p { font-size:14px; max-height:110px; overflow:auto; }.studio-fields { width:100%; gap:9px; font-size:14px; }.studio-fields textarea { min-height:92px; }.studio-position { grid-template-columns:1fr 1fr; font-size:12px; }.studio-position label:last-child { grid-column:1/-1; max-width:130px; }.studio-card-actions { gap:5px 16px; }.studio-card-actions button { font-size:12px; }.studio-dialog-save { gap:20px; }.studio-card-actions small { font-size:11px; }
}
@media(max-width:350px) { .is-studio-dragging .studio-bin-art { width:28px; height:34px; }.is-studio-dragging .studio-bin { padding:10px 7px; }.is-studio-dragging .studio-bin-head .h3 { font-size:13px; }.studio-bin-head .h3 { font-size:1rem; } }
@media(prefers-reduced-motion:reduce) { .studio-hanging,.studio-rope path,.studio-bin { transition:none; }.studio-flying { display:none; } }

/* Keep the clear action beside the bin heading, including narrow screens. */
.studio-trash .studio-bin-head { position:relative; padding-right:52px; }
.studio-clear-trash { --fg:var(--error); position:absolute; right:0; top:10px; width:44px; height:44px; min-height:44px; padding:0; display:inline-grid; place-items:center; border-color:var(--line-2); }
.studio-clear-trash svg { width:20px; height:20px; }
.studio-clear-trash:hover:not(:disabled) { background:var(--coral-soft); border-color:var(--error); }
@media(max-width:600px) { .studio-trash .studio-bin-head { padding-right:0; }.studio-clear-trash { top:3px; } }

/* One viewport beneath the fixed navigation; document scroll advances the wall.
   Three equal storage rows share the wall's top and bottom, independent of data. */
@media(min-width:801px) {
  .studio-scroll-scene { overflow-anchor:none; }
  .studio-scroll-scene .studio-scroll-progress { display:flex; }
  .studio-scroll-scene .studio-pin-frame { position:sticky; top:calc(var(--header-h) + 12px); height:calc(100svh - var(--header-h) - 24px); display:flex; flex-direction:column; }
  .studio-scroll-scene .studio-tools { flex:none; margin-bottom:16px; }
  .studio-scroll-scene .studio-worktable { flex:1 1 0; min-height:0; align-items:stretch; grid-template-rows:minmax(0,1fr); gap:20px; }
  .studio-scroll-scene .studio-wall-panel { display:flex; flex-direction:column; min-height:0; padding:20px 20px 14px; }
  .studio-scroll-scene .studio-panel-heading { flex:none; margin-bottom:12px; }
  .studio-scroll-scene .studio-wall-viewport { flex:1 1 0; min-height:0; max-height:none; overflow-y:auto; overscroll-behavior:auto; }
  .studio-scroll-scene .studio-wall-footer { flex:none; padding:12px 2px 14px; }
  .studio-scroll-scene .studio-rail-slot { position:static; min-height:0!important; height:100%; }
  .studio-scroll-scene .studio-containers { height:100%; min-height:0; grid-template-rows:repeat(3,minmax(0,1fr)); gap:16px; }
  .studio-scroll-scene .studio-bin { min-height:0; padding:12px 14px; display:flex; flex-direction:column; }
  .studio-scroll-scene .studio-bin-head { flex:none; gap:8px; }
  .studio-scroll-scene .studio-bin-art { width:44px; height:44px; }
  .studio-scroll-scene .studio-bin-head .h3 { font-size:1.125rem; }
  .studio-scroll-scene .studio-trash .studio-bin-head { padding-right:48px; }
  .studio-scroll-scene .studio-clear-trash { top:0; }
  .studio-scroll-scene .studio-loose { flex:1 1 0; min-height:0; max-height:none; margin-top:8px; padding:5px 6px 8px; gap:12px; align-content:start; }
  .studio-scroll-scene .studio-loose-item .studio-note { height:78px; padding:14px 12px; }
  .studio-scroll-scene .studio-loose-item .studio-paper-text { height:52px; font-size:12px; line-height:1.6; }
  .studio-scroll-scene .studio-loose-item .studio-paper-caption { min-height:32px; padding:6px 3px; }
  .studio-scroll-scene .studio-loose-item .studio-paper-caption b { font-size:11px; }
  .studio-scroll-scene .studio-loose-item .studio-paper-caption>span { font-size:10px; }
}

/* Keep a new-card shortcut within reach while the wall is pinned. */
.studio-tool-left { display:flex; align-items:center; justify-content:space-between; gap:16px; flex:1; min-width:0; }
.studio-add-card { flex-shrink:0; width:48px; height:48px; background:var(--ink); color:var(--paper); border-color:var(--ink); }
.studio-add-card:hover { background:var(--coral); color:var(--ink); }
.studio-add-card .i { width:24px; height:24px; }
@media(max-width:600px) {
 .studio-tool-left { flex-basis:100%; gap:8px; }
 .studio-tool-left .chips { flex-wrap:wrap; }
 .studio-add-card { width:44px; height:44px; }
}

/* ==========================================================================
   Contact menu: the header's 「打个招呼」 button opens a small paper card
   holding the three contact buttons.
   ========================================================================== */

.contact-menu { position: relative; display: inline-flex; }

/* A touch tighter than the default button gap so the caret sits close to the
   label instead of floating away from it. */
.contact-menu .get { gap: .4rem; padding-right: .95rem; }
/* The caret points the way the card goes: right when it opens sideways, down
   (and then up) when it has to fall back underneath. */
.contact-menu .cm-chevron { transform: rotate(-90deg); transition: transform var(--d-2) var(--ease-out); }
.contact-menu.is-open .get { --bg: #2c2720; }
.contact-menu.is-drop .cm-chevron { transform: rotate(0deg); }
.contact-menu.is-open.is-drop .cm-chevron { transform: rotate(180deg); }

/* The strip opens to the right of the button, sitting on the header's own
   centre line so it reads as one more item in the nav row. When the viewport
   is too narrow for that side, JS adds `is-drop` and it falls back to hanging
   under the button instead — never over the nav, which a mirrored card would
   cover. */
.contact-panel {
  position: absolute;
  z-index: 60;
  top: 50%;
  left: calc(100% + 10px);
  translate: 0 -50%;
  padding: 8px;
  border-radius: var(--r-pill);
  background: var(--paper);
  box-shadow:
    0 0 0 1.5px var(--ink),
    0 4px 8px rgba(70, 42, 12, .08),
    0 26px 42px -20px rgba(70, 42, 12, .5);
  transform-origin: left center;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-10px) scale(.96);
  pointer-events: none;
  transition:
    opacity 170ms ease,
    transform 260ms var(--ease-out),
    visibility 0s linear 260ms;
}
.contact-menu.is-open .contact-panel {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
  transition:
    opacity 200ms ease,
    transform 340ms var(--ease-out),
    visibility 0s;
}
.contact-menu.is-drop .contact-panel {
  top: calc(100% + 10px);
  left: auto;
  right: 0;
  translate: 0;
  transform-origin: right top;
  transform: translateY(-8px) scale(.96);
}
.contact-menu.is-open.is-drop .contact-panel { transform: none; }

.cm-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }

/* Each column lifts in just after the one to its left. */
.cm-list li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  translate: 0 -6px;
  opacity: 0;
  transition: translate 340ms var(--ease-out), opacity 200ms ease;
}
.contact-menu.is-open .cm-list li { translate: 0 0; opacity: 1; }
.contact-menu.is-open .cm-list li:nth-child(1) { transition-delay: 45ms; }
.contact-menu.is-open .cm-list li:nth-child(2) { transition-delay: 85ms; }
.contact-menu.is-open .cm-list li:nth-child(3) { transition-delay: 125ms; }

/* The buttons keep the reference's springy pop, in paper and ink. */
.cm-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--ink);
  background: var(--cream-2);
  transition:
    transform 280ms cubic-bezier(.34, 1.56, .64, 1),
    background-color 180ms ease,
    color 180ms ease,
    box-shadow 280ms ease;
}
.cm-btn .i { width: 19px; height: 19px; }
.cm-btn:hover,
.cm-btn:focus-visible { transform: translateY(-4px) scale(1.1); }
.cm-btn:active { transform: translateY(-2px) scale(1); }
.cm-btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.cm-btn[data-accent="coral"]:hover,
.cm-btn[data-accent="coral"]:focus-visible {
  background: var(--coral);
  color: var(--paper);
  box-shadow: 0 7px 16px -4px rgba(255, 106, 77, .55);
}
.cm-btn[data-accent="ink"]:hover,
.cm-btn[data-accent="ink"]:focus-visible {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 7px 16px -4px rgba(21, 19, 15, .45);
}
.cm-btn[data-accent="sage"]:hover,
.cm-btn[data-accent="sage"]:focus-visible {
  background: var(--sage-deep);
  color: var(--paper);
  box-shadow: 0 7px 16px -4px rgba(63, 90, 59, .5);
}

/* Optical nudges so the three glyphs read as the same size. */
.cm-github .i { translate: .4px .3px; }
.cm-wechat .i { translate: .4px 0; }

.cm-name {
  font: 600 11px/1 var(--sans);
  letter-spacing: .02em;
  color: var(--muted);
}

/* The phone menu sheet borrows the same three buttons. */
.cm-list.sheet-contact { gap: 8px; }
.cm-list.sheet-contact li { opacity: 1; translate: 0 0; }

/* The header CTA itself steps aside at 1020px (see css.part) — the menu sheet
   takes over from there, so the card has nothing left to hang from. */
@media (max-width: 1020px) {
  .contact-menu { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .contact-panel { transition: opacity 180ms ease, visibility 0s linear 180ms; transform: none; }
  .contact-menu.is-open .contact-panel { transition: opacity 180ms ease, visibility 0s; }
  .cm-list li { transition: opacity 160ms ease; translate: 0 0; }
  .cm-btn { transition: background-color 160ms ease, color 160ms ease; }
  .cm-btn:hover, .cm-btn:focus-visible { transform: none; }
  .contact-menu .cm-chevron { transition: none; }
}