@font-face {
  font-family: 'Imbue';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/imbue-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Imbue';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/imbue-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Ysabeau Office';
  font-style: italic;
  font-weight: 1 1000;
  font-display: swap;
  src: url('/fonts/ysabeau-office-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Ysabeau Office';
  font-style: italic;
  font-weight: 1 1000;
  font-display: swap;
  src: url('/fonts/ysabeau-office-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Ysabeau Office';
  font-style: normal;
  font-weight: 1 1000;
  font-display: swap;
  src: url('/fonts/ysabeau-office-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Ysabeau Office';
  font-style: normal;
  font-weight: 1 1000;
  font-display: swap;
  src: url('/fonts/ysabeau-office-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Gildmoth: example store (Brand Store package). One stylesheet; tokens first. */

:root {
  /* iron-gall ink, lit by a candle */
  --ink: oklch(16.5% 0.028 278);
  --ink-2: oklch(20.5% 0.032 278);
  --ink-3: oklch(25% 0.034 278);
  --line: oklch(33% 0.03 278);
  --line-2: oklch(45% 0.03 278);
  --paper: oklch(93.5% 0.018 85);
  --paper-2: oklch(82% 0.022 80);
  --gold: oklch(82% 0.105 82);
  --gold-hi: oklch(88% 0.09 88);
  --gold-lo: oklch(70% 0.11 76);
  --gold-glow: oklch(70% 0.13 75 / 0.22);
  --ember: oklch(74% 0.14 32);
  --leaf: oklch(83% 0.1 150);
  --silver-chip: oklch(87% 0.008 260);
  --rose-chip: oklch(79% 0.07 38);

  --display: 'Imbue', 'Didot', 'Bodoni 72', Georgia, serif;
  --text: 'Ysabeau Office', 'Gill Sans', 'Segoe UI', system-ui, sans-serif;

  --step--1: 0.9375rem;   /* 15px: labels, the least anyone must read */
  --step-0: 1.0625rem;    /* 17px body on phones */
  --step-1: 1.3125rem;
  --step-2: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem);
  --step-3: clamp(2.4rem, 1.6rem + 3vw, 4rem);
  --step-4: clamp(3.4rem, 2rem + 6vw, 8.4rem);

  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-s: 0.75rem;
  --space-m: 1rem;
  --space-l: 1.5rem;
  --space-xl: 2.5rem;
  --space-2xl: clamp(3rem, 2rem + 4vw, 6rem);
  --space-3xl: clamp(4.5rem, 3rem + 7vw, 10rem);
  --gutter: clamp(1rem, 0.5rem + 2.4vw, 3rem);
  --wide: 1680px;

  /* one easing family, one duration scale */
  --ease: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
  --t-1: 120ms;
  --t-2: 240ms;
  --t-3: 480ms;
  --t-4: 900ms;

  --radius: 3px;
  color-scheme: dark;
}

@media (min-width: 768px) {
  :root { --step-0: 1.125rem; }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--text);
  font-size: var(--step-0);
  font-weight: 440;
  line-height: 1.62;
  letter-spacing: 0.012em;
  font-kerning: normal;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}
main { overflow-x: clip; }
img, canvas, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
h1, h2, h3 { font-weight: 400; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--gold); color: var(--ink); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.skip { position: absolute; left: var(--gutter); top: -4rem; z-index: 60; background: var(--gold); color: var(--ink); padding: 0.6rem 1rem; font-weight: 650; }
.skip:focus { top: 0.5rem; }

/* ---------------------------------------------------------------- the example label (always shown) */
.example-bar {
  background: var(--ink-3);
  color: var(--paper);
  font-size: var(--step--1);
  text-align: center;
  padding: 0.45rem var(--gutter);
  line-height: 1.4;
  border-bottom: 1px solid var(--line);
}

/* ---------------------------------------------------------------- header */
.top {
  position: sticky; top: 0; z-index: 40;
  background: var(--ink);
  border-bottom: 1px solid var(--line);
}
.top-in {
  max-width: var(--wide); margin: 0 auto;
  display: flex; align-items: center; gap: var(--space-l);
  padding: 0 var(--gutter); min-height: 4rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.55rem; text-decoration: none; color: var(--paper); min-height: 44px; }
.brand .moth { width: 2.1rem; height: auto; color: var(--gold); transition: transform var(--t-3) var(--ease); }
.brand:hover .moth { transform: translateY(-2px) rotate(-4deg); }
.brand span { font-family: var(--display); font-size: 1.9rem; font-weight: 520; letter-spacing: 0.01em; line-height: 1; }
.nav { display: flex; gap: var(--space-l); margin-left: auto; }
.nav a, .bag-link {
  text-decoration: none; color: var(--paper-2); font-size: 1rem; font-weight: 520;
  min-height: 44px; display: inline-flex; align-items: center;
  background: linear-gradient(var(--gold), var(--gold)) 0 calc(100% - 8px) / 0 1px no-repeat;
  transition: color var(--t-2) var(--ease), background-size var(--t-3) var(--ease);
}
.nav a:hover, .nav a[aria-current="page"], .bag-link:hover, .bag-link[aria-current="page"] { color: var(--paper); background-size: 100% 1px; }
.bag-link { gap: 0.45rem; }
.bag-count {
  display: inline-grid; place-items: center; min-width: 1.6rem; height: 1.6rem; padding: 0 0.4rem;
  border-radius: 1rem; background: var(--ink-3); color: var(--paper); font-size: 0.9375rem; font-variant-numeric: tabular-nums;
  transition: background-color var(--t-2) var(--ease), color var(--t-2) var(--ease);
}
.bag-count.has { background: var(--gold); color: var(--ink); }
.bag-count.bump { animation: bump var(--t-3) var(--ease); }
@keyframes bump { 30% { transform: scale(1.28); } 100% { transform: scale(1); } }
.menu-btn { display: none; }

@media (max-width: 899px) {
  .top-in { gap: var(--space-s); }
  .menu-btn {
    display: inline-flex; align-items: center; margin-left: auto; min-height: 44px; padding: 0 0.9rem;
    background: none; border: 1px solid var(--line-2); border-radius: var(--radius); color: var(--paper); font-weight: 560; cursor: pointer;
  }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; margin: 0; padding: var(--space-s) var(--gutter) var(--space-l);
    background: var(--ink); border-bottom: 1px solid var(--line);
  }
  .js .nav:not(.open) { display: none; }
  .nav a { font-family: var(--display); font-size: 2rem; color: var(--paper); border-bottom: 1px solid var(--line); min-height: 3.4rem; background: none; }
  .nav.open a { animation: menu-in var(--t-3) var(--ease) both; }
  .nav.open a:nth-child(2) { animation-delay: 30ms; } .nav.open a:nth-child(3) { animation-delay: 60ms; }
  .nav.open a:nth-child(4) { animation-delay: 90ms; } .nav.open a:nth-child(5) { animation-delay: 120ms; }
  .brand span { font-size: 1.7rem; }
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px); } }

/* ---------------------------------------------------------------- buttons */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3.25rem; padding: 0 1.6rem; border-radius: var(--radius);
  font-weight: 620; font-size: 1.0625rem; letter-spacing: 0.02em; text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: background-color var(--t-2) var(--ease), color var(--t-2) var(--ease), border-color var(--t-2) var(--ease), transform var(--t-1) var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-hi); }
/* the lamp passes over the button too */
.btn-gold::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 35%, oklch(97% 0.04 90 / 0.7) 50%, transparent 65%);
  transform: translateX(-120%);
}
.btn-gold:hover::after { transform: translateX(120%); transition: transform var(--t-4) var(--ease); }
.btn-line { background: transparent; color: var(--paper); border-color: var(--line-2); }
.btn-line:hover { border-color: var(--gold); color: var(--gold-hi); }
.btn-quiet { background: var(--ink-3); color: var(--paper); border-color: var(--line-2); }
.btn-quiet:hover { border-color: var(--gold); }
.btn-wide { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { background: var(--ink-3); color: var(--paper-2); cursor: not-allowed; transform: none; }
.btn[disabled]::after { display: none; }
.btn-text {
  background: none; border: 0; padding: 0 0.2rem; min-height: 44px; min-width: 44px; cursor: pointer;
  color: var(--gold); font-weight: 600; text-decoration: underline; text-underline-offset: 0.25em;
}
.btn-text:hover { color: var(--gold-hi); }

.kicker { font-size: 1.125rem; font-style: italic; letter-spacing: 0.01em; color: var(--gold); font-weight: 500; }
.lede { font-size: var(--step-1); line-height: 1.5; color: var(--paper-2); max-width: 34ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-s); }

/* ---------------------------------------------------------------- the stage (signature) */
.stage { position: relative; margin: 0; }
.stage-pool {
  position: absolute; inset: -6% -2% 4%;
  background: radial-gradient(closest-side, oklch(62% 0.12 72 / 0.34), oklch(45% 0.09 70 / 0.12) 55%, transparent 100%);
  pointer-events: none;
}
.stage-box {
  position: relative; aspect-ratio: 1; width: 100%;
  cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none;
  border-radius: 50%;
}
.stage-box:active { cursor: grabbing; }
.stage-box:focus-visible { outline-offset: -6px; }
.stage-still, .stage-canvas { position: absolute; inset: -12%; width: 124%; height: 124%; max-width: none; object-fit: contain; pointer-events: none; }
.stage-canvas { opacity: 0; transition: opacity var(--t-3) var(--ease); }
.stage.live .stage-canvas { opacity: 1; }
.stage.live .stage-still { opacity: 0; transition: opacity var(--t-3) var(--ease); }
.stage.swapping .stage-canvas { opacity: 0.35; transition-duration: var(--t-2); }
.stage-cap { display: flex; justify-content: center; margin-top: var(--space-xs); }
.hint { display: inline-flex; align-items: center; gap: 0.55rem; font-size: var(--step--1); color: var(--paper-2); }
.hint svg { width: 2.4rem; color: var(--gold); }
.stage.touched .hint { opacity: 0.7; }

/* ---------------------------------------------------------------- swatches and options */
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; font-weight: 600; font-size: 1rem; margin-bottom: var(--space-xs); color: var(--paper); }
.legend-val { font-weight: 440; color: var(--paper-2); margin-left: 0.35rem; }
.swatch-row { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.swatch { position: relative; display: inline-flex; align-items: center; gap: 0.55rem; min-height: 44px; padding: 0.25rem 0.85rem 0.25rem 0.35rem; border: 1px solid var(--line); border-radius: 2rem; cursor: pointer; transition: border-color var(--t-2) var(--ease), background-color var(--t-2) var(--ease); }
.swatch input, .opt input, .chip-btn input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip { width: 2rem; height: 2rem; border-radius: 50%; box-shadow: inset 0 0 0 1px oklch(100% 0 0 / 0.18); }
.swatch-gold .chip, .dot-gold::before, .mini-gold { background: radial-gradient(circle at 32% 28%, oklch(96% 0.06 92), oklch(80% 0.12 80) 45%, oklch(56% 0.1 66)); }
.swatch-silver .chip, .dot-silver::before, .mini-silver { background: radial-gradient(circle at 32% 28%, oklch(99% 0.003 260), oklch(84% 0.008 260) 45%, oklch(58% 0.01 260)); }
.swatch-rose .chip, .dot-rose::before, .mini-rose { background: radial-gradient(circle at 32% 28%, oklch(95% 0.04 50), oklch(77% 0.075 38) 45%, oklch(55% 0.07 32)); }
.swatch-name { font-size: 1rem; }
.swatch:hover { border-color: var(--line-2); }
.swatch:has(input:checked) { border-color: var(--gold); background: var(--ink-2); }
.swatch:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 3px; }
.swatch.out .swatch-name::after { content: ' · sold out'; color: var(--paper-2); }

.opt-row { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.opt { position: relative; }
.opt span {
  display: inline-grid; place-items: center; min-width: 3.3rem; min-height: 2.9rem; padding: 0 0.7rem;
  border: 1px solid var(--line-2); border-radius: var(--radius); cursor: pointer; font-variant-numeric: tabular-nums;
  transition: border-color var(--t-2) var(--ease), background-color var(--t-2) var(--ease), color var(--t-2) var(--ease);
}
.opt span:hover { border-color: var(--paper-2); }
.opt input:checked + span { background: var(--paper); color: var(--ink); border-color: var(--paper); font-weight: 650; }
.opt input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.opt input:disabled + span {
  color: var(--paper-2); border-style: dashed; cursor: not-allowed;
  background: linear-gradient(to top right, transparent calc(50% - 0.5px), var(--line-2) 50%, transparent calc(50% + 0.5px));
}
.field-msg { min-height: 0; font-size: var(--step--1); color: var(--ember); margin-top: 0.35rem; }
.field-msg:empty { display: none; }
.field-msg.ok { color: var(--leaf); }

/* ---------------------------------------------------------------- cards */
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xl) var(--space-s); }
@media (min-width: 768px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2xl) var(--space-l); } }
@media (min-width: 1440px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1440px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 768px) and (max-width: 1023px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.card { position: relative; display: flex; flex-direction: column; }
.card-link { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 0.15rem 0.6rem; text-decoration: none; color: var(--paper); }
.card-img {
  grid-column: 1 / -1; position: relative; overflow: hidden; border-radius: var(--radius); margin-bottom: 0.7rem;
  background: radial-gradient(70% 55% at 50% 58%, var(--ink-3), var(--ink-2) 70%);
  aspect-ratio: 4 / 5;
}
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-4) var(--ease), opacity var(--t-2) var(--ease); }
.card-img::after {
  content: ''; position: absolute; inset: -10%;
  background: linear-gradient(105deg, transparent 42%, oklch(92% 0.08 85 / 0.16) 50%, transparent 58%);
  transform: translateX(-80%); pointer-events: none;
}
.card-link:hover .card-img img, .card-link:focus-visible .card-img img { transform: scale(1.035); }
.card-link:hover .card-img::after, .card-link:focus-visible .card-img::after { transform: translateX(80%); transition: transform 1.1s var(--ease); }
.card-name { font-size: 1.0625rem; line-height: 1.35; font-weight: 520; }
.card-price { font-variant-numeric: tabular-nums; color: var(--paper-2); }
.card-tag { position: absolute; top: 0.6rem; left: 0.6rem; font-size: var(--step--1); color: var(--ink); background: var(--gold); padding: 0.05rem 0.55rem; border-radius: 2rem; font-weight: 600; }
.card-img img.swap { opacity: 0; }
.dots { display: flex; gap: 0.1rem; margin-top: 0.35rem; margin-left: -0.55rem; }
.dot { width: 44px; height: 44px; border: 0; padding: 0; background: none; cursor: pointer; display: grid; place-items: center; border-radius: 50%; }
.dot::before { content: ''; width: 1.1rem; height: 1.1rem; border-radius: 50%; box-shadow: 0 0 0 1px oklch(100% 0 0 / 0.16); transition: box-shadow var(--t-2) var(--ease); }
.dot[aria-pressed="true"]::before { box-shadow: 0 0 0 2px var(--ink), 0 0 0 3.5px var(--paper); }

/* ---------------------------------------------------------------- page frame */
main { display: block; }
.sec-head { display: grid; gap: var(--space-s); margin-bottom: var(--space-xl); }
.sec-head h2, .pairs h2, .wrap h2, .guide-sec > h2, .sizes-help h2, .story h2, .materials h2, .care h2, .credits h2 {
  font-family: var(--display); font-size: var(--step-3); line-height: 1.02; font-weight: 420; max-width: 18ch;
}

/* ---------------------------------------------------------------- home: hero */
.hero {
  max-width: var(--wide); margin: 0 auto; padding: var(--space-l) var(--gutter) var(--space-2xl);
  display: grid; gap: var(--space-l); align-items: center;
}
.hero-copy { display: grid; gap: var(--space-l); align-content: center; }
.hero-title {
  font-family: var(--display); font-size: var(--step-4); line-height: 0.92; font-weight: 460; letter-spacing: -0.005em;
  font-variation-settings: 'opsz' 100;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero-title .line > span { display: inline-block; }
.hero-title .line:last-child > span { color: var(--gold); }
.hero-stage { position: relative; max-width: 46rem; width: 100%; justify-self: center; }
.hero-buy { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--space-s) var(--space-l); margin-top: var(--space-s); }
.hero-prod { display: inline-flex; gap: 0.7rem; align-items: baseline; text-decoration: none; min-height: 44px; align-items: center; }
.hp-name { font-family: var(--display); font-size: 1.8rem; line-height: 1; }
.hp-price { color: var(--gold); font-variant-numeric: tabular-nums; }
.hero-prod:hover .hp-name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
.hero-buy legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (min-width: 1024px) {
  .hero { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); padding-top: var(--space-xl); min-height: min(52rem, calc(100svh - 6.6rem)); }
  .hero-copy { padding-bottom: var(--space-2xl); }
  .hero-stage { margin-right: calc(var(--gutter) * -0.5); }
}
@media (max-width: 1023px) {
  .hero { padding-top: var(--space-s); gap: var(--space-m); }
  .hero-title { font-size: clamp(3.4rem, 1.4rem + 10vw, 6rem); }
  .hero-stage { order: -1; max-width: min(36rem, 92vw); }
  .hero-stage .stage-cap { display: none; }
}
@media (max-width: 639px) {
  .hero-stage { max-width: 21rem; }
  .hero-buy { margin-top: 0; }
  .hero-buy .swatch { padding-right: 0.7rem; }
}
@media (min-width: 640px) and (max-width: 1023px) {
  .hero-copy { grid-template-columns: 1fr 1fr; align-items: end; column-gap: var(--space-xl); }
  .hero-copy .kicker, .hero-copy .hero-title { grid-column: 1 / -1; }
}

/* page-load choreography: the words rise, then the ring is lit */
@media (prefers-reduced-motion: no-preference) {
  .hero .kicker { animation: fade-up var(--t-4) var(--ease-expo) 80ms both; }
  .hero-title .line > span { animation: line-up 1.1s var(--ease-expo) both; }
  .hero-title .line:nth-child(1) > span { animation-delay: 140ms; }
  .hero-title .line:nth-child(2) > span { animation-delay: 240ms; }
  .hero .lede { animation: fade-up var(--t-4) var(--ease-expo) 420ms both; }
  .hero .hero-actions { animation: fade-up var(--t-4) var(--ease-expo) 520ms both; }
  .hero-stage .stage-pool { animation: lamp-on 1.6s var(--ease) 200ms both; }
  .hero-stage .stage-box { animation: ring-in 1.3s var(--ease-expo) 260ms both; }
  .hero-buy { animation: fade-up var(--t-4) var(--ease-expo) 700ms both; }
}
@keyframes line-up { from { transform: translateY(105%); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } }
@keyframes lamp-on { from { opacity: 0; transform: scale(0.8); } }
@keyframes ring-in { from { opacity: 0; transform: scale(0.94) translateY(10px); } }

/* ---------------------------------------------------------------- home: the edit (lookbook mixed with products) */
.edit, .cats, .facts, .review, .gift-band, .pairs, .shop, .gifts > section, .cart, .pdp { max-width: var(--wide); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.edit { padding-top: var(--space-2xl); padding-bottom: var(--space-3xl); }
.edit-grid { display: grid; gap: var(--space-2xl) var(--space-l); }
.edit-products { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-s); align-content: start; }
@media (min-width: 1024px) {
  .edit-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; }
  .edit-grid > :nth-child(1) { grid-column: 1 / 9; }
  .edit-grid > :nth-child(2) { grid-column: 9 / 13; grid-template-columns: 1fr; gap: var(--space-xl); margin-top: var(--space-3xl); }
  .edit-grid > :nth-child(3) { grid-column: 5 / 13; grid-row: 2; }
  .edit-grid > :nth-child(4) { grid-column: 1 / 5; grid-row: 2; grid-template-columns: 1fr; gap: var(--space-xl); margin-top: var(--space-2xl); }
  .edit-products .card { max-width: 22rem; }
}

.look { margin: 0; display: grid; gap: var(--space-m); }
.look-frame { overflow: hidden; border-radius: var(--radius); background: var(--ink-2); aspect-ratio: 3 / 2; }
.look-frame img { width: 100%; height: 100%; object-fit: cover; }
.look figcaption { display: grid; gap: 0.4rem; max-width: 40rem; }
.look-no { font-size: 1.0625rem; color: var(--gold); font-style: italic; }
.look-title { font-family: var(--display); font-size: var(--step-2); line-height: 1.05; }
.look figcaption > p:not(.look-no) { color: var(--paper-2); }
.look-items { list-style: none; margin: var(--space-xs) 0 0; padding: 0; border-top: 1px solid var(--line); }
.look-items a {
  display: flex; justify-content: space-between; gap: var(--space-m); align-items: center;
  min-height: 3rem; border-bottom: 1px solid var(--line); text-decoration: none;
  transition: color var(--t-2) var(--ease), padding var(--t-2) var(--ease);
}
.look-items a::after { content: ''; width: 0.5em; height: 0.5em; border-top: 1.5px solid var(--gold); border-right: 1.5px solid var(--gold); transform: rotate(45deg); transition: transform var(--t-2) var(--ease); flex: none; margin-right: 0.2em; }
.look-items a:hover { color: var(--gold-hi); }
.look-items a:hover::after { transform: translateX(4px) rotate(45deg); }
.look-price { margin-left: auto; color: var(--paper-2); font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- home: categories as words */
.cats { padding-bottom: var(--space-3xl); }
.cats .kicker { margin-bottom: var(--space-m); }
.cat-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.cat-link {
  position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: var(--space-m);
  text-decoration: none; border-bottom: 1px solid var(--line); padding: var(--space-s) 0; min-height: 5rem;
}
.cat-word { font-family: var(--display); font-size: clamp(2.8rem, 1.6rem + 6vw, 7.5rem); line-height: 0.95; font-weight: 400; transition: color var(--t-2) var(--ease), transform var(--t-3) var(--ease); }
.cat-count { color: var(--paper-2); font-variant-numeric: tabular-nums; }
.cat-pic { position: absolute; right: 22%; top: 50%; width: clamp(6rem, 4rem + 8vw, 15rem); aspect-ratio: 4 / 5; translate: 0 -50%; pointer-events: none; opacity: 0; transform: scale(0.92) rotate(-3deg); transition: opacity var(--t-3) var(--ease), transform var(--t-3) var(--ease); }
.cat-pic img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.cat-link:hover .cat-word, .cat-link:focus-visible .cat-word { color: var(--gold); transform: translateX(0.4rem); }
.cat-link:hover .cat-pic, .cat-link:focus-visible .cat-pic { opacity: 1; transform: none; }
@media (hover: none), (max-width: 767px) {
  .cat-link { grid-template-columns: auto 1fr auto; }
  .cat-pic { position: static; translate: none; opacity: 1; transform: none; width: 4.2rem; order: -1; }
}

/* ---------------------------------------------------------------- home: gift band */
.gift-band { display: grid; gap: var(--space-xl); align-items: center; padding-bottom: var(--space-3xl); }
.gift-pic { overflow: hidden; border-radius: var(--radius); aspect-ratio: 3 / 2; background: var(--ink-2); }
.gift-pic img { width: 100%; height: 100%; object-fit: cover; }
.gift-copy { display: grid; gap: var(--space-m); justify-items: start; max-width: 36rem; }
.gift-copy h2 { font-family: var(--display); font-size: var(--step-3); line-height: 1; }
.gift-copy p { color: var(--paper-2); }
@media (min-width: 1024px) { .gift-band { grid-template-columns: 7fr 5fr; gap: var(--space-2xl); } }

/* ---------------------------------------------------------------- facts */
.facts { padding-bottom: var(--space-3xl); }
.facts .kicker { margin-bottom: var(--space-l); }
.fact-list { margin: 0; display: grid; gap: var(--space-xl); }
.fact-list dt { font-family: var(--display); font-size: var(--step-3); line-height: 1; color: var(--gold); margin-bottom: var(--space-xs); }
.fact-list dd { margin: 0; color: var(--paper-2); max-width: 32ch; }
@media (min-width: 768px) { .fact-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------------------------------------------------------------- sample review */
.review { padding-bottom: var(--space-3xl); }
.review-card { margin: 0 auto; max-width: 46rem; text-align: center; display: grid; gap: var(--space-m); justify-items: center; }
.review-card blockquote { margin: 0; font-style: italic; font-size: var(--step-2); line-height: 1.3; font-weight: 400; max-width: 30ch; }
.review-card figcaption { color: var(--paper-2); font-size: var(--step--1); }
.sample-tag { display: inline-block; font-size: var(--step--1); font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); background: var(--paper-2); padding: 0.2rem 0.6rem; border-radius: 2rem; }
.review-mini { text-align: left; justify-items: start; margin-top: var(--space-xl); padding-top: var(--space-l); border-top: 1px solid var(--line); }
.review-mini blockquote { font-size: var(--step-1); }

/* ---------------------------------------------------------------- footer */
.foot { background: var(--ink-2); border-top: 1px solid var(--line); margin-top: var(--space-2xl); }
.foot-in { max-width: var(--wide); margin: 0 auto; padding: var(--space-2xl) var(--gutter) var(--space-xl); display: grid; gap: var(--space-xl); }
.foot-brand p { color: var(--paper-2); margin-top: var(--space-s); max-width: 30ch; }
.foot-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-l); }
.foot-nav h2 { font-size: var(--step--1); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: var(--space-xs); }
.foot-nav a { display: flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--paper-2); }
.foot-nav a:hover { color: var(--paper); text-decoration: underline; }
.news { display: grid; gap: var(--space-xs); max-width: 28rem; }
.news label { font-weight: 600; }
.news-row { display: flex; gap: var(--space-xs); }
.news-row input { flex: 1; min-width: 0; }
input:not([type="checkbox"]):not([type="radio"]), select, textarea {
  min-height: 3.25rem; padding: 0.6rem 0.85rem; background: var(--ink); border: 1px solid var(--line-2); border-radius: var(--radius);
  color: var(--paper); transition: border-color var(--t-2) var(--ease), box-shadow var(--t-2) var(--ease);
}
input::placeholder, textarea::placeholder { color: oklch(68% 0.02 80); }
input:hover, select:hover, textarea:hover { border-color: var(--paper-2); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-glow); }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--ember); }
.concept { max-width: var(--wide); margin: 0 auto; padding: var(--space-l) var(--gutter) var(--space-xl); border-top: 1px solid var(--line); color: var(--paper-2); font-size: 0.875rem; line-height: 1.5; }
@media (min-width: 1024px) { .foot-in { grid-template-columns: 4fr 5fr 4fr; } .foot-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------------------------------------------------------------- shop */
.shop { padding-top: var(--space-xl); padding-bottom: var(--space-2xl); }
.shop-head { display: grid; gap: var(--space-xs); margin-bottom: var(--space-l); }
.shop-head h1 { font-family: var(--display); font-size: var(--step-4); line-height: 0.9; }
.shop-count { color: var(--paper-2); font-variant-numeric: tabular-nums; }
.filters { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 0 var(--space-xl); padding: var(--space-s) 0; }
.filter-toggle { list-style: none; }
.filter-toggle::-webkit-details-marker { display: none; }
.filter-body { display: flex; flex-wrap: wrap; gap: var(--space-m) var(--space-xl); align-items: end; padding-top: var(--space-s); }
.fgroup { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; }
.flabel { width: 100%; font-size: var(--step--1); color: var(--paper-2); font-weight: 560; }
.chip-btn {
  display: inline-flex; align-items: center; gap: 0.45rem; min-height: 44px; padding: 0 0.95rem; border-radius: 2rem;
  background: transparent; border: 1px solid var(--line-2); cursor: pointer; font-size: 1rem;
  transition: background-color var(--t-2) var(--ease), color var(--t-2) var(--ease), border-color var(--t-2) var(--ease);
}
.chip-btn:hover { border-color: var(--paper-2); }
.chip-btn[aria-pressed="true"] { background: var(--paper); color: var(--ink); border-color: var(--paper); font-weight: 620; }
.mini { width: 0.95rem; height: 0.95rem; border-radius: 50%; }
.fsort select { min-height: 44px; padding-right: 2rem; }
@media (min-width: 1024px) {
  .filter-toggle { display: none; }
  .filter-panel:not([open]) .filter-body { display: flex; }
  .filter-body { padding-top: 0; gap: var(--space-s) var(--space-l); align-items: center; }
  .flabel { width: auto; margin-right: 0.3rem; }
  .shop-head { grid-template-columns: auto 1fr; align-items: end; column-gap: var(--space-l); }
  .shop-head .kicker { grid-column: 1 / -1; }
  .shop-count { padding-bottom: 0.6rem; }
}
.grid .card { transition: opacity var(--t-2) var(--ease); }
.card[hidden], .shop-look[hidden] { display: none; }
.shop-look { grid-column: 1 / -1; padding: var(--space-l) 0; }
@media (min-width: 1024px) {
  .shop-look .look { grid-template-columns: 7fr 4fr; align-items: end; gap: var(--space-xl); }
}
.empty { text-align: center; display: grid; gap: var(--space-m); justify-items: center; padding: var(--space-2xl) 0; }
.empty-title { font-family: var(--display); font-size: var(--step-3); line-height: 1; }
.empty p:not(.empty-title) { color: var(--paper-2); max-width: 44ch; }

/* ---------------------------------------------------------------- product page (the money page) */
.pdp { padding-top: var(--space-m); padding-bottom: var(--space-2xl); }
.crumbs { display: flex; flex-wrap: wrap; gap: 0.5rem; color: var(--paper-2); font-size: 1rem; margin-bottom: var(--space-m); align-items: center; }
.crumbs a { min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center; }
.pdp-grid { display: grid; gap: var(--space-xl); align-items: start; }
.pdp-gallery { display: grid; gap: var(--space-m); }
.pdp-main { position: relative; overflow: hidden; border-radius: var(--radius); background: radial-gradient(70% 55% at 50% 58%, var(--ink-3), var(--ink-2) 70%); aspect-ratio: 4 / 5; }
.pdp-main img { width: 100%; height: 100%; object-fit: contain; transition: opacity var(--t-3) var(--ease); }
@media (min-width: 768px) { .pdp-main { max-height: calc(100svh - 8rem); width: 100%; } }
.pdp-main img.swap { opacity: 0; }
.pdp-look { margin: 0; }
.pdp-look img { border-radius: var(--radius); width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.pdp-look figcaption { color: var(--paper-2); font-size: var(--step--1); margin-top: 0.5rem; }
.pdp-gallery-turn .stage { max-width: 44rem; margin: 0 auto; width: 100%; }
.buy { display: grid; gap: var(--space-m); }
.pdp-title { font-family: var(--display); font-size: var(--step-3); line-height: 0.98; }
.pdp-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.3rem var(--space-m); }
.pdp-price [data-price] { font-family: var(--display); font-size: 2.2rem; color: var(--gold); font-variant-numeric: tabular-nums; line-height: 1; }
.pdp-tax { color: var(--paper-2); font-size: var(--step--1); }
.pdp-blurb { color: var(--paper-2); max-width: 46ch; }
.buy-form { display: grid; gap: var(--space-l); padding-top: var(--space-s); border-top: 1px solid var(--line); }
.btn-add { width: 100%; min-height: 3.6rem; font-size: 1.125rem; }
.btn-add.done { background: var(--leaf); }
.ship-line { color: var(--paper-2); font-size: var(--step--1); text-align: center; }
.added { text-align: center; color: var(--leaf); font-weight: 560; }
.added:empty { display: none; }
.added a { color: var(--paper); }
.sold-msg { color: var(--paper); background: var(--ink-2); border: 1px solid var(--line-2); padding: var(--space-s) var(--space-m); border-radius: var(--radius); }
.engrave { display: grid; gap: 0.35rem; }
.engrave label, .gift-note label { font-weight: 600; }
.hint-s { color: var(--paper-2); font-weight: 440; font-size: var(--step--1); }
.engrave-preview:empty { display: none; }
.engrave-preview { font-family: var(--display); font-size: 1.6rem; letter-spacing: 0.08em; color: var(--gold); min-height: 1.2em; }
.check { display: flex; gap: 0.7rem; align-items: flex-start; cursor: pointer; min-height: 44px; padding-top: 0.6rem; }
.check input { width: 1.3rem; height: 1.3rem; margin: 0.15rem 0 0; accent-color: var(--gold); flex: none; }
.gift-note { display: grid; gap: 0.35rem; margin-top: var(--space-xs); }
.gift-note textarea { resize: vertical; min-height: 6rem; }
.acc { border-top: 1px solid var(--line); }
.acc details, .guide { border-bottom: 1px solid var(--line); }
.acc summary, .guide summary {
  list-style: none; cursor: pointer; min-height: 3.4rem; display: flex; align-items: center; justify-content: space-between; gap: var(--space-m); font-weight: 600;
}
.acc summary::-webkit-details-marker, .guide summary::-webkit-details-marker { display: none; }
.acc summary::after, .guide summary::after { content: '+'; color: var(--gold); font-size: 1.4rem; transition: transform var(--t-2) var(--ease); }
.acc details[open] summary::after, .guide[open] summary::after { transform: rotate(45deg); }
.acc details > :not(summary) { padding-bottom: var(--space-m); color: var(--paper-2); }
.acc ul { margin: 0; padding-left: 1.1rem; }
.guide { border-top: 1px solid var(--line); }
.guide summary { color: var(--gold); }
.guide-body { display: grid; gap: var(--space-m); padding-bottom: var(--space-l); }
.guide-steps { margin: 0; padding-left: 1.3rem; color: var(--paper-2); display: grid; gap: 0.35rem; }
.calc label { font-weight: 600; display: block; margin-bottom: 0.35rem; }
.calc-row { display: flex; flex-wrap: wrap; gap: var(--space-s); align-items: center; }
.calc-row input { width: 8rem; }
.calc-out { color: var(--paper); }
.calc-out strong { color: var(--gold); font-family: var(--display); font-size: 1.6rem; font-weight: 500; }
.table-wrap { overflow-x: auto; }
.size-table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; font-size: 1rem; }
.size-table caption { text-align: left; color: var(--paper-2); font-size: var(--step--1); padding-bottom: 0.4rem; }
.size-table th, .size-table td { text-align: left; padding: 0.45rem 0.6rem 0.45rem 0; border-bottom: 1px solid var(--line); }
.size-table thead th { color: var(--paper-2); font-weight: 560; font-size: var(--step--1); }
.size-table tr.match { background: var(--ink-3); }
.size-table tr.match th, .size-table tr.match td { color: var(--gold-hi); }
.guide-note { color: var(--paper-2); font-size: 1rem; }
.pairs { padding-top: var(--space-2xl); padding-bottom: var(--space-2xl); }
.pairs h2 { margin-bottom: var(--space-xl); }
@media (min-width: 768px) {
  .pdp-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-xl); }
  .pdp-gallery { position: sticky; top: 5rem; }
  .buy { padding-top: var(--space-s); }
}
@media (min-width: 1024px) {
  .pdp-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-2xl); }
  .buy { padding-top: var(--space-l); max-width: 36rem; }
}
.sticky-buy {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; align-items: center; gap: var(--space-s); padding: 0.6rem var(--gutter) max(0.6rem, env(safe-area-inset-bottom));
  background: var(--ink-2); border-top: 1px solid var(--line-2);
  transform: translateY(110%); transition: transform var(--t-3) var(--ease);
}
.sticky-buy.show { transform: none; }
.sticky-buy .sb-name { font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sticky-buy .sb-price { color: var(--gold); font-variant-numeric: tabular-nums; }
.sticky-buy .btn { min-height: 3rem; padding: 0 1.1rem; }
@media (min-width: 768px) { .sticky-buy { display: none; } }

/* ---------------------------------------------------------------- cart and checkout */
.cart { padding-top: var(--space-xl); padding-bottom: var(--space-2xl); }
.cart-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: var(--space-m); margin-bottom: var(--space-xl); }
.cart-head h1 { font-family: var(--display); font-size: var(--step-4); line-height: 0.9; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.3rem; counter-reset: s; flex-wrap: wrap; }
.steps li { counter-increment: s; display: inline-flex; align-items: center; gap: 0.4rem; color: var(--paper-2); font-size: 1rem; padding: 0.3rem 0.7rem 0.3rem 0.35rem; border-radius: 2rem; }
.steps li::before { content: counter(s); display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; border: 1px solid var(--line-2); font-size: 0.9375rem; }
.steps li[aria-current="step"] { color: var(--paper); background: var(--ink-2); }
.steps li[aria-current="step"]::before { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.steps li.past { color: var(--paper); }
.steps li.past::before { border-color: var(--gold); color: var(--gold); }
.cart-grid { display: grid; gap: var(--space-xl); align-items: start; }
@media (min-width: 1024px) { .cart-grid { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: var(--space-2xl); } .summary { position: sticky; top: 5.5rem; } }
.lines { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.bag-line {
  display: grid; grid-template-columns: 6.5rem 1fr auto; gap: var(--space-s) var(--space-m); align-items: start;
  padding: var(--space-m) 0; border-bottom: 1px solid var(--line);
}
.bag-line.leaving { animation: leave var(--t-3) var(--ease-in) both; }
@keyframes leave { to { opacity: 0; transform: translateX(-12px); } }
.bag-line.arriving { animation: fade-up var(--t-3) var(--ease) both; }
.line-img { border-radius: var(--radius); background: radial-gradient(70% 55% at 50% 58%, var(--ink-3), var(--ink-2) 70%); aspect-ratio: 4 / 5; overflow: hidden; }
.line-img img { width: 100%; height: 100%; object-fit: cover; }
.line-info { display: grid; gap: 0.25rem; }
.line-name { font-weight: 600; text-decoration: none; }
.line-name:hover { text-decoration: underline; }
.line-meta { color: var(--paper-2); font-size: 1rem; }
.line-price { font-variant-numeric: tabular-nums; text-align: right; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: var(--radius); margin-top: 0.4rem; }
.qty button { width: 44px; height: 44px; background: none; border: 0; cursor: pointer; font-size: 1.2rem; color: var(--paper); }
.qty button:hover:not(:disabled) { color: var(--gold); }
.qty button:disabled { color: var(--line-2); cursor: not-allowed; }
.qty output { min-width: 2rem; text-align: center; font-variant-numeric: tabular-nums; }
.line-remove { justify-self: start; }
.cart-empty { text-align: left; display: grid; gap: var(--space-m); padding: var(--space-xl) 0; }
.cart-empty p:not(.empty-title) { color: var(--paper-2); }
.undo { margin-top: var(--space-m); color: var(--paper-2); }
.summary { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-l); display: grid; gap: var(--space-m); }
.summary h2 { font-family: var(--display); font-size: var(--step-2); }
.summary dl { margin: 0; display: grid; gap: 0.5rem; }
.summary dl div { display: flex; justify-content: space-between; gap: var(--space-m); }
.summary dt { color: var(--paper-2); }
.summary dd { margin: 0; font-variant-numeric: tabular-nums; }
.sum-total { border-top: 1px solid var(--line); padding-top: 0.7rem; margin-top: 0.3rem; }
.sum-total dt, .sum-total dd { color: var(--paper); font-weight: 650; font-size: 1.2rem; }
.free-line { color: var(--gold); font-size: 1rem; }
.free-line:empty { display: none; }
.co-form { display: grid; gap: var(--space-m); max-width: 36rem; }
.co-form h2, .done h2 { font-family: var(--display); font-size: var(--step-3); line-height: 1; }
.field { display: grid; gap: 0.35rem; }
.field label { font-weight: 600; }
.field-row { display: grid; gap: var(--space-m); }
@media (min-width: 600px) { .field-row { grid-template-columns: 1fr 2fr; } }
.ship-opts { display: grid; gap: 0.2rem; }
.ship-opts legend { margin-bottom: 0.2rem; }
.co-nav { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-m); margin-top: var(--space-s); }
.pay-note { color: var(--paper-2); background: var(--ink-2); border: 1px solid var(--line); padding: var(--space-m); border-radius: var(--radius); }
.done { display: grid; gap: var(--space-m); justify-items: start; padding: var(--space-xl) 0; max-width: 40rem; }
.done .moth { width: 5rem; color: var(--gold); }
.done:focus { outline: none; }
.done p { color: var(--paper-2); }
@media (prefers-reduced-motion: no-preference) {
  .done:not([hidden]) .moth { animation: moth-land 1.2s var(--ease-expo) both; }
  .done:not([hidden]) h2 { animation: fade-up var(--t-4) var(--ease-expo) 200ms both; }
  .co-form:not([hidden]) { animation: fade-up var(--t-3) var(--ease) both; }
}
@keyframes moth-land { from { opacity: 0; transform: translate(-30px, -24px) rotate(-14deg) scale(0.8); } }

/* ---------------------------------------------------------------- gifts and about */
.gifts > section { padding-top: var(--space-2xl); padding-bottom: var(--space-l); }
.gifts-hero { display: grid; gap: var(--space-xl); align-items: center; }
.gifts-copy { display: grid; gap: var(--space-l); }
.gifts-copy h1 { font-family: var(--display); font-size: var(--step-4); line-height: 0.92; max-width: 11ch; }
.gifts-pic img { border-radius: var(--radius); width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
@media (min-width: 1024px) { .gifts-hero { grid-template-columns: 5fr 6fr; } }
.wrap-list { list-style: none; margin: var(--space-xl) 0 0; padding: 0; display: grid; gap: var(--space-xl); counter-reset: w; }
.wrap-list li { counter-increment: w; display: grid; gap: 0.4rem; padding-top: var(--space-m); border-top: 1px solid var(--line); }
.wrap-list li::before { content: '0' counter(w); font-family: var(--display); color: var(--gold); font-size: 1.6rem; line-height: 1; }
.wrap-list h3 { font-size: var(--step-1); font-weight: 620; }
.wrap-list p { color: var(--paper-2); }
@media (min-width: 768px) { .wrap-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .wrap-list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.budget { margin-top: var(--space-xl); }
.budget h3 { font-family: var(--display); font-size: var(--step-2); margin-bottom: var(--space-l); padding-bottom: var(--space-xs); border-bottom: 1px solid var(--line); }
.sizes-help, .story, .materials, .care, .credits { display: grid; gap: var(--space-l); justify-items: start; }
.sizes-help p, .care p { max-width: 62ch; color: var(--paper-2); }
.story-cols { display: grid; gap: var(--space-l); color: var(--paper-2); }
.story-cols p:first-child { color: var(--paper); font-size: var(--step-1); line-height: 1.5; }
@media (min-width: 1024px) { .story-cols { grid-template-columns: 1fr 1fr; gap: var(--space-2xl); } .story-cols p { max-width: 46ch; } }
.credits ul { margin: 0; padding-left: 1.1rem; color: var(--paper-2); display: grid; gap: 0.4rem; max-width: 70ch; }

/* ---------------------------------------------------------------- 404 */
.nf { min-height: 60svh; display: grid; place-items: center; padding: var(--space-2xl) var(--gutter); }
.nf-in { display: grid; gap: var(--space-m); justify-items: start; max-width: 40rem; }
.nf .moth { width: 4.5rem; color: var(--gold); }
.nf h1 { font-family: var(--display); font-size: var(--step-4); line-height: 0.92; }
.nf p:not(.kicker) { color: var(--paper-2); }
@media (prefers-reduced-motion: no-preference) {
  .nf .moth { animation: flutter 3.2s var(--ease) infinite alternate; }
}
@keyframes flutter { 0% { transform: translate(0, 0) rotate(-6deg); } 50% { transform: translate(6px, -8px) rotate(4deg); } 100% { transform: translate(-4px, -2px) rotate(-2deg); } }

/* ---------------------------------------------------------------- reveals while scrolling (CSS scroll-driven; static without support) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .look, .edit-products .card, .cat-link, .fact-list > div, .gift-pic, .gift-copy, .wrap-list li, .budget .card, .pairs .card, .review-card {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 70%;
    }
    .look-frame img, .gift-pic img {
      animation: settle linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 50%;
    }
  }
}
@keyframes reveal { from { transform: translateY(36px); } }
@keyframes settle { from { transform: scale(1.12); } }

/* ---------------------------------------------------------------- big screens: intended, not stretched */
@media (min-width: 2200px) {
  :root { --wide: 2040px; }
  body { font-size: 1.25rem; }
  .hero-stage { max-width: 58rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; }
}

/* cross-document page transition: a short fade, where supported */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out 180ms var(--ease-in) both; }
::view-transition-new(root) { animation: vt-in 320ms var(--ease) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { ::view-transition-old(root), ::view-transition-new(root) { animation: none; } }
