/* Easeloft store layer: sits on the taste-skill system (tokens, grid, buttons). Mobile first. */

/* ---------- product photographs: every shot sits on the same soft paper, so its frame is paper too ---------- */
.tile__media--product, .pdp__main, .kit-stage__main, .kit-stage__cell, .pdp__thumbs button, .cart-line img {
  background: var(--p-photo, #F3ECE1);
}
.tile__media--product { position: relative; overflow: hidden; }
.tile__media--product img, .pdp__main img, .kit-stage img { width: 100%; height: 100%; object-fit: contain; display: block; }
.tile__media--product img { transition: transform var(--dur) var(--ease); }
@media (hover: hover) and (pointer: fine) {
  a.tile:hover .tile__media--product img, .shop-tile:hover .tile__media--product img { transform: scale(1.03); }
}
.tile__media--product { --tile-ratio: 1 / 1; }
.tag {
  position: absolute; top: var(--s-3); left: var(--s-3); z-index: 1;
  background: var(--p-accent); color: var(--p-accent-ink);
  font-size: var(--t-small); font-weight: 600; padding: 4px 12px; border-radius: 999px;
}

/* ---------- small facts lists ---------- */
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: var(--t-small); color: var(--muted); }
.facts li { position: relative; padding-left: 18px; }
.facts li::before { content: ""; position: absolute; left: 2px; top: .6em; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--p-brand, var(--p-accent)); }
.facts--box { font-size: var(--t-body); color: var(--ink); }

.shop-tile, .kit-tile { align-content: start; }
.shop-tile > .btn { justify-self: start; margin-top: auto; }
.kit-tile { color: inherit; text-decoration: none; }

/* ---------- round line-icon badges (one-sheet look) ---------- */
.badge-ic {
  flex: none; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--p-surface); color: var(--p-brand, var(--p-accent)); border: 1px solid var(--line);
}
.badge-ic svg { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ground-brand .badge-ic, .ground-inverse .badge-ic { background: rgba(255,255,255,.08); color: currentColor; border-color: rgba(255,255,255,.22); }

.service-row { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-4); }
.service-row li { display: flex; gap: var(--s-3); align-items: center; }
.service-row li div { display: grid; gap: 2px; }
.service-row b { font-weight: 600; }
.service-row span:not(.badge-ic) { font-size: var(--t-small); color: var(--muted); }
.ground-brand .service-row span:not(.badge-ic) { color: inherit; opacity: .78; }
@media (min-width: 640px) { .service-row { grid-template-columns: 1fr 1fr; } }

/* ---------- hero: kit composition stage ---------- */
.hero-notice { font-size: var(--t-small); font-weight: 500; color: var(--muted); margin: 0 0 var(--s-3); }
.hero .hero-notice { margin-bottom: var(--s-4); }
.hero-visual.kit-stage__main { aspect-ratio: auto; border-radius: var(--r-lg); overflow: hidden; }
.hero-visual.kit-stage__main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.hero-facts--2 { grid-template-columns: 1fr 1fr; }
.hero-facts dd { font-size: var(--t-small); line-height: 1.4; }
@media (max-width: 1023px) { .hero-visual.kit-stage__main { aspect-ratio: 4 / 3; flex: none; height: auto; } }
@media (max-width: 639px) { .hero-visual.kit-stage__main { aspect-ratio: 5 / 4; } }

/* Shine border: vanilla port of Magic UI ShineBorder (radial gradient sweeping round the edge) */
.shine::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background-image: radial-gradient(transparent, transparent, #e3e2da, #a6b3bc, transparent, transparent);
  background-size: 300% 300%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: shine 14s linear infinite;
}
@keyframes shine { 0% { background-position: 0% 0%; } 50% { background-position: 100% 100%; } 100% { background-position: 0% 0%; } }
@media (prefers-reduced-motion: reduce) { .shine::before { animation: none; } }

.ships-photo img { aspect-ratio: 1; object-fit: cover; }

/* ---------- cart button and count ---------- */
.cart-btn { display: inline-flex; align-items: center; gap: 8px; }
.cart-count {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center;
  font-size: 12px; font-weight: 600; background: var(--p-action-ink); color: var(--p-action);
}
.cart-count[hidden] { display: none; }

/* ---------- drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 100; }
.drawer[hidden] { display: none; }
.drawer__scrim { position: absolute; inset: 0; border: 0; background: rgba(20, 24, 18, .42); opacity: 0; transition: opacity .26s var(--ease); cursor: pointer; }
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%);
  background: var(--bg); color: var(--ink); display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .26s var(--ease); box-shadow: -12px 0 40px rgba(0,0,0,.12);
}
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: var(--s-5) var(--s-5) var(--s-3); }
.drawer__head h2 { font-size: var(--t-h3); margin: 0; }
.drawer__close { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: inherit; display: grid; place-items: center; cursor: pointer; }
.drawer .ship-meter { padding: 0 var(--s-5) var(--s-4); }
.drawer__body { flex: 1; overflow-y: auto; padding: 0 var(--s-5); }
.drawer__foot { padding: var(--s-5); border-top: 1px solid var(--line); display: grid; gap: var(--s-3); background: var(--p-surface); }
html.drawer-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .drawer__panel, .drawer__scrim { transition: none; } }

/* ---------- free shipping meter ---------- */
.ship-meter { display: grid; gap: 8px; }
.ship-meter p { margin: 0; font-weight: 500; }
.ship-meter__bar { height: 6px; border-radius: 999px; background: rgba(0,0,0,.1); overflow: hidden; }
.ship-meter__bar span { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: var(--p-brand, var(--p-accent)); border-radius: inherit; transition: width .5s var(--ease); }

/* ---------- cart lines ---------- */
.cart-lines { list-style: none; margin: 0; padding: 0; display: grid; }
.cart-line { display: grid; grid-template-columns: 72px 1fr auto; gap: var(--s-3); align-items: start; padding: var(--s-4) 0; border-bottom: 1px solid var(--line); }
.cart-line img { width: 72px; height: 72px; object-fit: contain; border-radius: var(--r-sm); }
.cart-line__info { display: grid; gap: 4px; }
.cart-line__name { font-weight: 600; }
.cart-line__price { font-weight: 600; font-variant-numeric: tabular-nums; }
.cart-empty { padding: var(--s-5) 0; color: var(--muted); }
.qty { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; border: 1px solid var(--line-strong); border-radius: 999px; width: max-content; }
.qty button { width: 36px; height: 36px; border: 0; background: transparent; color: inherit; font-size: 18px; cursor: pointer; border-radius: 50%; }
.qty button:hover { background: rgba(0,0,0,.06); }
.qty span { min-width: 20px; text-align: center; font-variant-numeric: tabular-nums; }

.sums { margin: 0; display: grid; gap: 6px; }
.sums div { display: flex; justify-content: space-between; }
.sums dt { color: var(--muted); }
.sums dd { margin: 0; font-variant-numeric: tabular-nums; }
.sums__total { padding-top: 8px; border-top: 1px solid var(--line); font-weight: 600; font-size: 1.1em; }
.sums__total dt { color: var(--ink); }
.btn--wide { width: 100%; justify-content: center; }
.checkout-msg:empty { display: none; }
.checkout-msg { color: var(--ink); font-weight: 500; }
button[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- inner pages ---------- */
main.page { padding-top: calc(var(--nav-h, 64px) + var(--s-6)); }
.block { padding-block: var(--s-8); }
.block--first { padding-top: var(--s-4); }
.block[hidden] { display: none; }
.narrow { max-width: 760px; }
.stack-4 > * + * { margin-top: var(--s-4); }
.stack-5 > * + * { margin-top: var(--s-5); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* product detail */
.pdp { display: grid; gap: var(--s-6); }
.pdp__gallery { display: grid; gap: var(--s-3); }
.pdp__main { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 1; }
.pdp__thumbs { display: flex; gap: var(--s-2); overflow-x: auto; }
.pdp__thumbs button { flex: none; width: 72px; height: 72px; padding: 0; border-radius: var(--r-sm); border: 2px solid transparent; overflow: hidden; cursor: pointer; }
.pdp__thumbs button[aria-pressed="true"] { border-color: var(--p-accent); }
.pdp__thumbs img { width: 100%; height: 100%; object-fit: contain; }
.pdp__buy { display: grid; gap: var(--s-4); align-content: start; }
.pdp__buy h1 { font-size: var(--t-h2); margin: 0; }
.pdp__price { display: flex; align-items: baseline; gap: var(--s-3); flex-wrap: wrap; margin: 0; }
.pdp__price b { font-size: var(--t-h3); font-weight: 600; }
.pdp__price s { color: var(--muted); }
.save { font-size: var(--t-small); font-weight: 600; background: var(--p-accent); color: var(--p-accent-ink); padding: 3px 10px; line-height: 1.35; border-radius: 999px; }
.pdp__row { display: flex; gap: var(--s-3); }
.pdp__add { flex: 1; justify-content: center; }
.qty-select select { height: var(--btn-h, 48px); padding: 0 32px 0 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--p-surface); color: inherit; font: inherit; }
.pdp__inside-h { margin: var(--s-3) 0 0; }
@media (min-width: 900px) {
  .pdp { grid-template-columns: 1.1fr 1fr; gap: var(--s-8); align-items: start; }
  .pdp__gallery { position: sticky; top: calc(var(--nav-h, 64px) + var(--s-4)); }
}

/* swatches */
.swatches { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-2); }
.swatches legend { width: 100%; margin-bottom: var(--s-2); padding: 0; }
.swatch input { position: absolute; opacity: 0; pointer-events: none; }
.swatch span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-strong); cursor: pointer; font-size: var(--t-small); transition: background var(--dur) var(--ease); }
.swatch input:checked + span { background: var(--p-accent); color: var(--p-accent-ink); border-color: var(--p-accent); }
.swatch input:focus-visible + span { outline: 2px solid var(--p-accent); outline-offset: 2px; }

/* cart page */
.cart-page { display: grid; gap: var(--s-6); }
.cart-page__lines { display: grid; gap: var(--s-4); align-content: start; }
.cart-page__lines h1 { font-size: var(--t-h2); margin: 0; }
.cart-page__sum { display: grid; gap: var(--s-3); padding: var(--s-5); border-radius: var(--r-lg); background: var(--p-surface); align-content: start; }
@media (min-width: 900px) { .cart-page { grid-template-columns: 1.6fr 1fr; gap: var(--s-8); } }

/* policy pages */
.prose h1 { font-size: var(--t-h2); margin: 0 0 var(--s-4); }
.prose .t-lead { margin-bottom: var(--s-6); }
.prose__part { display: grid; grid-template-columns: auto 1fr; column-gap: var(--s-4); padding: var(--s-5) 0; border-top: 1px solid var(--line); }
.prose__part > :not(.badge-ic) { grid-column: 2; }
.prose__part:not(:has(.badge-ic)) { grid-template-columns: 1fr; }
.prose__part:not(:has(.badge-ic)) > * { grid-column: 1; }
.prose__part .badge-ic { grid-row: 1 / span 3; }
.prose__part h2 { font-size: var(--t-h3); margin: 0 0 var(--s-2); }
.prose__part p, .prose__part ul { margin: 0 0 var(--s-2); max-width: 62ch; }
.prose__part ul { padding-left: 1.2em; }
.contact-mail { font-size: var(--t-h3); }

/* footer */
.footer__lede { opacity: .8; max-width: 36ch; }
.footer__col h3 { font-size: var(--t-small); font-weight: 600; margin: 0 0 var(--s-3); opacity: .7; }
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.footer__col a { color: inherit; text-decoration: none; overflow-wrap: anywhere; }
.footer__col a:hover { text-decoration: underline; }

.btn.is-added { pointer-events: none; }

/* grid tiles may shrink below their content's width; on phones each product takes its own row */
.grid > .tile { min-width: 0; }
.tile__head { flex-wrap: wrap; gap: 4px var(--s-3); }
@media (max-width: 639px) {
  .grid > .tile:is(.span-3, .span-4, .span-6) { grid-column: 1 / -1; }
  .shop-tile .tile__media--product, .kit-tile .tile__media--product { aspect-ratio: 4 / 3; }
}

.crumb { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }

/* shorter product tiles everywhere so a row of cards fits its one-screen section */
.shop-tile .tile__media--product, .kit-tile .tile__media--product { --tile-ratio: 4 / 3; aspect-ratio: 4 / 3; }

/* ================= motion layer (store.js + motion.js) ================= */
/* page transitions: a short cross-fade between pages (Chrome, Edge, Safari 18+; others just load) */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: 160ms cubic-bezier(.4, 0, 1, 1) both vt-out; }
  ::view-transition-new(root) { animation: 280ms cubic-bezier(.2, .7, .2, 1) both vt-in; }
  .nav { view-transition-name: site-nav; }          /* the bar stays put while the page under it changes */
  ::view-transition-group(site-nav) { animation: none; }
}
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(6px); } }

/* BlurFade reveal (Magic UI): the hidden state only exists under html.rv-on, which motion.js adds; never under reduced motion */
@media (prefers-reduced-motion: no-preference) {
  html.rv-on .rv { opacity: 0; transform: translateY(6px); filter: blur(3px);
    transition: opacity .35s cubic-bezier(.2,.7,.2,1), transform .35s cubic-bezier(.2,.7,.2,1), filter .35s cubic-bezier(.2,.7,.2,1);
    transition-delay: var(--rv-d, 0ms); }
  html.rv-on .rv.is-in { opacity: 1; transform: none; filter: none; }
}

/* frosted nav once scrolled (Apple-style sticky bar, in our palette) */
.nav { transition: background-color .3s var(--ease), box-shadow .3s var(--ease); }
.nav.is-scrolled { background: color-mix(in oklab, var(--bg) 78%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); }

/* card hover: one soft float shadow + 2px lift (a single elevation tier, Airbnb-style restraint) */
.tile__media--product { transition: box-shadow .35s var(--ease), transform .35s var(--ease); }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .shop-tile, a.kit-tile { transition: transform .35s var(--ease); }
  .shop-tile:hover, a.kit-tile:hover { transform: translateY(-2px); }
  .shop-tile:hover .tile__media--product, a.kit-tile:hover .tile__media--product,
  .grid > .tile:hover .tile__media--product { box-shadow: 0 0 0 1px rgba(0,0,0,.03), 0 4px 10px rgba(28,36,24,.06), 0 14px 32px rgba(28,36,24,.12); }
}
/* the photo zoom on hover inside cards, slower and softer than the default */
@media (prefers-reduced-motion: no-preference) { .tile__media--product img { transition: transform .6s cubic-bezier(.2,.7,.2,1); } }

/* product page zoom: follows the pointer; tap to zoom on touch */
.pdp__main { position: relative; cursor: zoom-in; }
.pdp__main img { transition: transform .35s cubic-bezier(.2,.7,.2,1); will-change: transform; }
.pdp__main.is-zoom { cursor: zoom-out; }
.pdp__main.is-zoom img { transform: scale(1.9); }
@media (prefers-reduced-motion: reduce) { .pdp__main img { transition: none; } }
/* thumbnail swap: the main photo cross-fades */
@media (prefers-reduced-motion: no-preference) {
  .pdp__main img.is-swapping { animation: photo-in .35s cubic-bezier(.2,.7,.2,1); }
}
@keyframes photo-in { from { opacity: .2; transform: scale(1.015); } }

/* cart drawer: panel slides, scrim blurs in, lines arrive one after another */
.drawer__scrim { -webkit-backdrop-filter: blur(0px); backdrop-filter: blur(0px); transition: opacity .3s var(--ease), backdrop-filter .3s var(--ease); }
.drawer.is-open .drawer__scrim { -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.drawer__panel { transition: transform .42s cubic-bezier(.22, 1, .36, 1); }
@media (prefers-reduced-motion: no-preference) {
  .drawer.is-entering .cart-line, .drawer.is-entering .drawer__foot { animation: line-in .45s cubic-bezier(.22,1,.36,1) both; animation-delay: calc(120ms + var(--i, 0) * 50ms); }
  .drawer.is-entering .drawer__foot { --i: 3; }
  .cart-count.is-bump { animation: bump .3s cubic-bezier(.22,1,.36,1); }
  .btn.is-added { animation: added .4s ease; }
}
@keyframes line-in { from { opacity: 0; transform: translateX(16px); } }
@keyframes bump { 40% { transform: scale(1.2); } }
@keyframes added { 50% { transform: scale(.98); } }

/* star ratings: a grey row with a filled row on top that grows to the score */
.stars { position: relative; display: inline-block; color: rgba(0,0,0,.18); letter-spacing: 2px; line-height: 1; white-space: nowrap; }
.stars__fill { position: absolute; inset: 0 auto 0 0; overflow: hidden; color: var(--p-brand, var(--p-accent)); width: calc(var(--r) / 5 * 100%); }
@media (prefers-reduced-motion: no-preference) {
  .stars.is-armed:not(.is-filled) .stars__fill { width: 0; }
  .stars__fill { transition: width 1s cubic-bezier(.22,1,.36,1) .15s; }
}

/* inner pages: the footer is as tall as its content (the one-screen close is for the home page) */
body:not([data-page="home"]) footer.closing { min-height: 0; height: auto; --h: auto; }
body:not([data-page="home"]) footer.closing > .wrap { min-height: 0; }

/* ===== gate fixes ===== */
/* facts sit on the text margin, in body ink (contrast), separated by thin rules instead of indented bullets */
.facts { color: var(--ink); gap: 0; }
.facts li { padding: 5px 0; padding-left: 0; border-top: 1px solid var(--line); }
.facts li::before { content: none; }
/* footer column labels readable on the dark ground */
.footer__col h3 { opacity: 1; color: var(--p-inv-muted); }
/* footer mark: a full-size tile so the initial is not clipped */
.footer .nav__logo .mark--initial { width: 22px; height: 22px; font-size: 13px; margin-right: 6px; vertical-align: middle; }
/* service list: icon above its words, so the words keep the text margin */
.service-row li { flex-direction: column; align-items: flex-start; gap: var(--s-2); }
.service-row { grid-template-columns: 1fr 1fr; }
/* FAQ: badge beside each question */
.faq__item { display: grid; grid-template-columns: 44px 1fr; column-gap: var(--s-4); align-items: start; }
.faq__item > .badge-ic { grid-row: 1 / span 2; }
.faq__item > :not(.badge-ic) { grid-column: 2; }
/* product tiles a little flatter so a row fits its screen */
.tile__media--product { --tile-ratio: 3 / 2; aspect-ratio: 3 / 2; }
.shop-tile .tile__media--product, .kit-tile .tile__media--product { --tile-ratio: 3 / 2; aspect-ratio: 3 / 2; }
/* phones: the hero fits the first screen (main photo only), kit cards drop their contents list
   (it is on each kit page), the ships photo is wide not square */
@media (max-width: 639px) {
  .kit-tile .facts { display: none; }
  .ships-photo img { aspect-ratio: 16 / 10; }
  .service-row { gap: var(--s-4) var(--s-3); }
}
/* very small phones (320): the cart button drops its word, the closing button and footer wrap */
@media (max-width: 359px) {
  .cart-btn > span:not(.cart-count) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .closing__cta .btn--xl { font-size: 18px; white-space: normal; }
  .closing__links .grid > * { min-width: 0; }
  .footer__col a { word-break: break-all; }
}
/* the shine loop pauses off screen and on hover */
.shine.is-off::before, .shine:hover::before { animation-play-state: paused; }
/* add-ons row: a little flatter so the row sits inside one screen */
#add-ons .tile__media--product { aspect-ratio: 16 / 10; --tile-ratio: 16 / 10; }
/* hero split (5 | 7): words left, the kit photo the full height of the first screen on the right */
@media (min-width: 1024px) {
  .hero-copy h1 { font-size: clamp(40px, 3.6vw, 54px); line-height: 1.04; }
}
/* ships photo: landscape beside the words */
@media (min-width: 640px) { .ships-photo img { aspect-ratio: 4 / 3; } }
/* FAQ: two columns of questions, each badge above its question on the text line */
.faq--grid { display: grid; gap: var(--s-6) var(--gutter); }
@media (min-width: 900px) { .faq--grid { grid-template-columns: 1fr 1fr; } }
.faq--grid .faq__item { display: grid; grid-template-columns: 1fr; gap: var(--s-3); padding: 0; border: 0; }
.faq--grid .faq__item > * { grid-column: 1; }
.faq--grid .faq__item > .badge-ic { grid-row: auto; }
/* footer legal line: links wrap onto the text margin */
.legal-links { display: flex; flex-wrap: wrap; column-gap: var(--s-5); align-items: center; }
.faq--grid .faq__item > * { margin: 0; }
.faq--grid { align-content: start; }
/* home: add-on tiles keep to name, line and price (the facts are on the add-ons page) */
#add-ons .facts { display: none; }
/* ships: the four service points in one column, each icon above its words, on the text line */
@media (min-width: 640px) { #ships .service-row { grid-template-columns: 1fr; gap: var(--s-4); } }
/* FAQ: heading on top, questions in three columns */
.faq--grid { grid-template-columns: 1fr; }
@media (min-width: 900px) { .faq--grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* footer legal links: one per line on phones so each sits on the margin */
@media (max-width: 639px) { .legal-links { flex-direction: column; align-items: flex-start; } }
/* phones: flatter photos so #inside and #ships keep to their screens */
@media (max-width: 639px) {
  #inside .tile__media--product { aspect-ratio: 16 / 10; --tile-ratio: 16 / 10; }
  .ships-photo img { aspect-ratio: 5 / 2; }
  #ships .stack-5 > * + * { margin-top: var(--s-4); }
}


/* =====================================================================================
   WARM PAPER (step 2): cream paper, sand bands, espresso ink, one terracotta action.
   Fraunces for display, Figtree for text. Radius 6px, pill buttons. Sections alternate
   paper / sand / espresso. Every rule below reads the --p-* tokens set in <head>.
   ===================================================================================== */
html[data-radius="soft"] { --r-sm: 4px; --r-md: 6px; --r-lg: 6px; --r-btn: 999px; }
:root { --p-photo: #F3ECE1; --ease-out: cubic-bezier(.22, 1, .36, 1); --ease-soft: cubic-bezier(.2, .7, .2, 1); }
body { background: var(--p-bg); }
h1, h2, h3, .t-card { font-variation-settings: "opsz" 96; }
h1, h2 { text-wrap: balance; }
.muted { color: var(--muted); }
.ground-surface { --card: var(--p-card); }
.ground-surface .badge-ic { background: var(--p-card); }

/* chips: Trending (warm highlight) and New (espresso) */
.chip { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px;
        font: 600 12px/1 var(--font-text); letter-spacing: .02em; width: max-content; }
.chip--trend { background: var(--p-hi); color: var(--p-ink); }
.chip--new { background: var(--p-ink); color: var(--p-bg); }

/* ---------- hero: words left, the best-selling kit filling the right column ---------- */
.hero--shop > .wrap { grid-template-rows: minmax(0, 1fr); }
.hero-shop { height: 100%; align-items: stretch; }
.hero-shop > .hero-copy { grid-column: 1 / span 6; align-self: stretch; display: flex; flex-direction: column; }
.hero-shop > .hero-feature { grid-column: 7 / span 6; }
.hero-notice { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.hero-notice .badge-ic { width: 32px; height: 32px; background: var(--p-card); }
.hero-notice .badge-ic svg { width: 16px; height: 16px; }
.hero-copy h1 { font-size: clamp(44px, 5.2vw, 80px); line-height: 1.0; letter-spacing: -0.025em; margin: 0; max-width: 11ch; }
.hero__lead { font-size: var(--t-lead); color: var(--muted); max-width: 40ch; }
.hero-copy .btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); }
.hero-proof { list-style: none; padding: 0; margin: auto 0 0; display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-6);
              font-size: var(--t-small); color: var(--muted); padding-top: var(--s-5); border-top: 1px solid var(--p-line); }
.hero-proof b { color: var(--ink); font-weight: 600; }
.hero-feature { position: relative; display: block; min-height: 0; height: 100%; border-radius: var(--r-lg); overflow: hidden;
                background: var(--p-photo); color: var(--ink); text-decoration: none; }
.hero-feature__media, .hero-feature__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.hero-feature__media img { object-position: 50% 40%; }
.hero-feature__cap { position: absolute; left: var(--s-4); bottom: var(--s-4); display: grid; gap: 6px; padding: var(--s-4) var(--s-5);
                     background: color-mix(in oklab, var(--p-card) 92%, transparent); border-radius: var(--r-md);
                     -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 6px 24px rgba(42,33,28,.08); }
.hero-feature__name { font: 400 22px/1.15 var(--font-display); }
.hero-feature__price { font-variant-numeric: tabular-nums; }
.hero-feature__price s { color: var(--muted); margin-left: 6px; }
@media (max-width: 1023px) {
  .hero-shop { display: flex; flex-direction: column; gap: var(--s-6); }
  .hero-shop > .hero-copy { display: block; }
  .hero-shop > .hero-feature { flex: 1 1 0; min-height: 260px; }
  .hero-proof { margin-top: var(--s-5); }
}
@media (max-width: 639px) {
  .hero-copy h1 { font-size: clamp(38px, 11vw, 48px); max-width: none; }
  .hero-shop > .hero-feature { flex: none; aspect-ratio: 1; height: auto; }
  .hero-feature__cap { left: var(--s-3); bottom: var(--s-3); padding: var(--s-3) var(--s-4); }
  .hero-feature__name { font-size: 19px; }
}
/* the letter reveal waits for GSAP (max 1.5 s; the class is never added under reduce motion) */
.fx-wait [data-split] { visibility: hidden; }

/* ---------- THE product card (one component everywhere) ---------- */
.pcard { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto 1fr;
         column-gap: var(--s-3); row-gap: var(--s-3); align-content: start; }
.pcard__media { grid-column: 1 / -1; position: relative; aspect-ratio: 1; border-radius: var(--r-lg); overflow: hidden; background: var(--p-photo); }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pcard__media .chip { position: absolute; top: var(--s-3); left: var(--s-3); z-index: 1; }
.pcard__body { display: grid; gap: 4px; align-content: start; min-width: 0; }
.pcard__title { font: 400 20px/1.2 var(--font-display); letter-spacing: -0.01em; margin: 0; }
.pcard__title a { color: inherit; text-decoration: none; }
.pcard__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--r-lg); }   /* whole card is the link */
.pcard__title a:focus-visible { outline: 2px solid var(--p-action); outline-offset: 3px; }
.pcard__price { margin: 0; font-variant-numeric: tabular-nums; }
.pcard__price b { font-weight: 600; }
.pcard__price s { color: var(--muted); margin-left: 8px; font-size: var(--t-small); }
.pcard__line { margin: 0; color: var(--muted); font-size: var(--t-small); line-height: 1.45;
               display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard__add { position: relative; z-index: 2; align-self: start; display: inline-flex; align-items: center; gap: 6px;
              height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong);
              background: transparent; color: var(--ink); font: 600 var(--t-small)/1 var(--font-text); cursor: pointer;
              transition: background-color .2s var(--ease-soft), color .2s var(--ease-soft), border-color .2s var(--ease-soft), transform .12s var(--ease-soft); }
.pcard__add::before { content: ""; position: absolute; inset: -4px; }   /* 48px touch target */
.pcard__add:hover, .pcard__add.is-added { background: var(--p-action); color: var(--p-action-ink); border-color: var(--p-action); }
.pcard__add:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .pcard { transition: transform .25s var(--ease-out); }
  .pcard__media { transition: box-shadow .25s var(--ease-out); }
  .pcard__media img { transition: transform .45s var(--ease-out); }
  .pcard:hover { transform: translateY(-3px); }
  .pcard:hover .pcard__media { box-shadow: 0 1px 2px rgba(42,33,28,.05), 0 12px 28px rgba(42,33,28,.12); }
  .pcard:hover .pcard__media img { transform: scale(1.04); }
}
/* second photo (lifestyle / in use) crossfades over the packshot on hover; touch devices keep the packshot */
.pcard__alt { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
@media (hover: hover) and (pointer: fine) {
  .pcard:hover .pcard__alt, .pcard:focus-within .pcard__alt { opacity: 1; }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .pcard__alt { transition: opacity .22s cubic-bezier(.23, 1, .32, 1); }
}
@media (max-width: 639px) {
  .grid > .pcard { grid-column: span 6; }
  .pcard { grid-template-columns: minmax(0, 1fr); }
  .pcard__title { font-size: 17px; }
  .pcard__line { display: none; }
  .pcard__add { justify-self: start; height: 36px; }
  #kits .grid > .pcard { grid-column: 1 / -1; }
  #kits .pcard { grid-template-columns: minmax(0, 1fr) auto; }
  #kits .pcard__line { display: -webkit-box; }
}

/* ---------- rooms ---------- */
.rooms { list-style: none; margin: 0; padding: 0; }
.room { position: relative; display: grid; grid-template-rows: auto 1fr; height: 100%; border-radius: var(--r-lg); overflow: hidden;
        background: var(--p-card); color: var(--ink); text-decoration: none; border: 1px solid var(--p-line); }
.room__media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--p-photo); }
.room__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.room__body { position: relative; display: grid; gap: var(--s-2); padding: 0 var(--s-5) var(--s-5); align-content: start; }
.room__body .badge-ic { margin-top: -22px; background: var(--p-card); }
.room__name { font: 400 28px/1.1 var(--font-display); letter-spacing: -0.015em; }
.room__line { color: var(--muted); font-size: var(--t-small); }
.room__count { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: var(--t-small); margin-top: var(--s-2); color: var(--p-action); }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .room { transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), border-color .25s var(--ease-out); }
  .room__media img { transition: transform .45s var(--ease-out); }
  .room:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(42,33,28,.10); border-color: var(--line-strong); }
  .room:hover .room__media img { transform: scale(1.04); }
}
@media (max-width: 639px) {
  .rooms > li { grid-column: span 6; }
  .room__media { aspect-ratio: 1; }
  .room__body { padding: 0 var(--s-3) var(--s-4); }
  .room__name { font-size: 22px; }
  .room__line { display: none; }
}

/* ---------- Trending now / New in tabs with a sliding underline ---------- */
.tabs { position: relative; display: flex; flex-wrap: nowrap; flex: none; gap: var(--s-1); border-bottom: 1px solid var(--p-line); }
.section-head--split > .tabs { display: flex; max-width: none; gap: var(--s-1); }
.tabs .m-tab-ind { display: none; }   /* the kit's pill indicator: we use our own underline */
.tabs__tab { white-space: nowrap; }
.tabs__tab { position: relative; height: 44px; padding: 0 var(--s-4); border: 0; background: none; color: var(--muted);
             font: 500 var(--t-body)/1 var(--font-text); cursor: pointer; transition: color .2s var(--ease-soft); }
.tabs__tab:hover, .tabs__tab[aria-selected="true"] { color: var(--ink); }
.tabs__ink { position: absolute; left: 0; bottom: -1px; height: 2px; width: var(--w, 0); background: var(--p-action);
             transform: translateX(var(--x, 0)); opacity: 0; }
.tabs.is-ready .tabs__ink { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .tabs.is-ready .tabs__ink { transition: transform .25s var(--ease-out), width .25s var(--ease-out); }
}
html:not(.mo-js) .tabs__panel[hidden] { display: grid; margin-top: var(--s-6); }   /* no JS: both lists show */

/* ---------- shipping band on espresso ---------- */
#ships .ships-photo { border-radius: var(--r-lg); overflow: hidden; }
#ships .ships-photo img { width: 100%; display: block; }
.ground-inverse .t-lead { color: var(--p-inv-muted); }

/* ---------- product page ---------- */
.pdp__crumbs { color: var(--muted); }
.pdp__buy > .chip { margin-bottom: calc(var(--s-2) * -1); }
.pdp__buy h1 { font-size: clamp(34px, 3.4vw, 48px); line-height: 1.05; letter-spacing: -0.02em; }
.pdp__main { border-radius: var(--r-lg); }
.pdp__main img { width: 100%; height: 100%; object-fit: cover; }
.pdp__thumbs img { object-fit: cover; }
.save { background: var(--p-hi); color: var(--p-ink); font-variant-numeric: tabular-nums; }
.piece { position: relative; display: grid; grid-template-columns: 96px 1fr; grid-template-rows: auto auto auto; column-gap: var(--s-4); row-gap: 2px;
         align-items: start; padding: var(--s-3); border-radius: var(--r-lg); background: var(--p-card); border: 1px solid var(--p-line); color: var(--ink); text-decoration: none; }
.piece__media { grid-row: 1 / span 3; width: 96px; height: 96px; border-radius: var(--r-md); overflow: hidden; background: var(--p-photo); }
.piece__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.piece__qty { font: 600 var(--t-small)/1.4 var(--font-text); color: var(--p-action); padding-top: var(--s-2); }
.piece__name { font: 400 19px/1.2 var(--font-display); }
.piece__facts { font-size: var(--t-small); color: var(--muted); }
@media (hover: hover) and (pointer: fine) { .piece:hover { border-color: var(--line-strong); } }
.also { display: grid; gap: var(--s-3); }
.also__kit { display: grid; grid-template-columns: 88px 1fr; gap: var(--s-4); align-items: center; padding: var(--s-3); border-radius: var(--r-lg);
             background: var(--p-card); border: 1px solid var(--p-line); color: var(--ink); text-decoration: none; }
.also__kit > span:last-child { display: grid; gap: 2px; }
.also__media { width: 88px; height: 88px; border-radius: var(--r-md); overflow: hidden; background: var(--p-photo); }
.also__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.also__price { font-variant-numeric: tabular-nums; font-weight: 600; }
.also__price .muted { font-weight: 400; }
.ground-surface .piece, .ground-surface .also__kit { background: var(--p-card); }
.block.ground-surface { background: var(--p-surface); }
@media (max-width: 639px) { .grid > .piece { grid-column: 1 / -1; } }

/* ---------- collections ---------- */
.collection-head .wrap { display: grid; gap: var(--s-5); }
.collection-head__row { display: flex; gap: var(--s-4); align-items: center; }
.collection-head__row h1 { font-size: clamp(36px, 4vw, 56px); line-height: 1.02; margin: 0; }
.collection-head__row .t-lead { margin: var(--s-2) 0 0; color: var(--muted); }
.collection-head__row .badge-ic { width: 56px; height: 56px; }
.filters { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.filter { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-strong);
          color: var(--ink); text-decoration: none; font-weight: 500; font-size: var(--t-small); transition: background-color .2s var(--ease-soft); }
.filter:hover { background: var(--p-surface); }
.filter[aria-current="page"] { background: var(--p-ink); color: var(--p-bg); border-color: var(--p-ink); }
.block--tight { padding-top: var(--s-2); }
.block--tight .grid { row-gap: var(--s-7); }

/* ---------- nav mega menu: rooms list + kit cards ---------- */
.menu-cats ul { list-style: none; margin: var(--s-3) 0 0; padding: 0; display: grid; gap: var(--s-1); }
.menu-cat { display: flex; align-items: center; gap: var(--s-3); padding: 6px; border-radius: var(--r-md); color: inherit; text-decoration: none; }
.menu-cat:hover { background: var(--p-surface); }
.menu-cat > span:last-child { display: grid; }
.menu-cat .badge-ic { width: 36px; height: 36px; }
.menu-card .panel { background: var(--p-photo); aspect-ratio: 1; overflow: hidden; }
.menu-card .panel img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- drawer and cart on paper ---------- */
.drawer__scrim { background: rgba(42, 33, 28, .38); }
.drawer__panel { box-shadow: -12px 0 40px rgba(42,33,28,.14); }
.cart-line img { object-fit: cover; border-radius: var(--r-md); }
.ship-meter__bar { background: color-mix(in oklab, var(--p-ink) 10%, transparent); }

/* ---------- footer on espresso ---------- */
.footer__lede { color: var(--p-inv-muted); opacity: 1; line-height: 1.45; }
.footer .badge-ic { background: var(--p-inv-surface); }

/* a flying copy of the product photo travels from the card to the cart (fx.js, GSAP Flip-style) */
.fly-ghost { position: fixed; z-index: 120; pointer-events: none; border-radius: var(--r-md); object-fit: cover; box-shadow: 0 10px 30px rgba(42,33,28,.25); }

/* rooms fill their screen: the list takes what the heading leaves, each photo grows */
#rooms .rooms { flex: 1 1 0; min-height: 0; }
#rooms .rooms > li { min-height: 0; }
#rooms .room { grid-template-rows: minmax(0, 1fr) auto; }
#rooms .room__media { aspect-ratio: auto; min-height: 160px; }
@media (max-width: 639px) { #rooms .rooms { flex: none; } #rooms .room__media { aspect-ratio: 1; } }
/* picks: the row of cards sits under its heading with room to breathe */
#picks .tabs__panel { align-content: start; }
/* shipping on espresso: four service points in two columns beside the photo */
@media (min-width: 640px) { #ships .service-row { grid-template-columns: 1fr 1fr; gap: var(--s-5) var(--s-4); } }

/* ===== taste gate, round 1 ===== */
/* picks: taller photos so the row fills its screen */
#picks .pcard__media { aspect-ratio: 4 / 5; }
/* kits: a little flatter so the row ends above the section's bottom padding */
@media (min-width: 640px) { #kits .pcard__media { aspect-ratio: 10 / 9; } }
/* FAQ: the questions spread over the screen they are given, so the gap to the footer matches the others */
@media (min-width: 1024px) {
  #faq > .wrap > .grid { flex: 1 1 auto; grid-template-rows: auto 1fr; }
  #faq .faq--grid { align-content: space-evenly; row-gap: var(--s-7); }
}
/* phones */
@media (max-width: 639px) {
  /* hero: words, button and the kit photo inside the first screen */
  .hero--shop .hero-proof { display: none; }
  .hero--shop .hero__lead { font-size: 17px; }
  .hero--shop .hero-copy > * + * { margin-top: var(--s-4); }
  .hero--shop .hero-copy > .btn-row { margin-top: var(--s-5); }
  .hero-shop { height: 100%; }
  .hero-shop > .hero-feature { flex: 1 1 0; aspect-ratio: auto; min-height: 180px; }
  /* rooms and picks: flatter photos so each section is one screen */
  #rooms .room__media { aspect-ratio: 4 / 3; }
  #rooms .room__body .badge-ic { width: 36px; height: 36px; margin-top: -18px; }
  #rooms .section-head p, #picks .section-head p { display: none; }
  #picks .pcard__media { aspect-ratio: 1; }
  #picks .pcard { row-gap: var(--s-2); }
  /* kits: stacked cards with flatter photos, two screens */
  #kits { --hm: 2; }
  #kits .pcard__media { aspect-ratio: 4 / 3; }
  /* picks: flatter photos so the two rows fit one screen */
  #picks .pcard__media { aspect-ratio: 5 / 4; }
  #picks .tabs__tab { height: 40px; }
  /* FAQ: badge beside each question, two screens */
  #faq { --hm: 2; }
  #faq .faq--grid { gap: var(--s-5); }
  #faq .faq--grid .faq__item { grid-template-columns: 36px 1fr; column-gap: var(--s-3); row-gap: var(--s-1); }
  #faq .faq--grid .faq__item > .badge-ic { grid-row: 1 / span 2; width: 36px; height: 36px; }
  #faq .faq--grid .faq__item > :not(.badge-ic) { grid-column: 2; }
  #faq .faq--grid .faq__item h3 { font-size: 17px; }
}

/* ================= round 3: motion tokens, hero layers, trust strip, cards, gallery, sticky bar =================
   Motion tokens (design-system): one set of curves and durations, so every animation shares a rhythm.
   Durations follow emil-design-eng: press 140 ms, small UI 220 ms, enters 380-520 ms, nothing on the page over 0.8 s. */
:root {
  --m-out: cubic-bezier(.23, 1, .32, 1);        /* strong ease-out for things entering */
  --m-inout: cubic-bezier(.77, 0, .175, 1);     /* things moving on screen */
  --m-press: 140ms; --m-ui: 220ms; --m-enter: 420ms;
}
html { scroll-padding-bottom: 24px; }
html.has-atc { scroll-padding-bottom: 96px; }    /* the sticky bar never covers a focused control */

/* --- hero: layers behind and in front of the photo (they only move on desktop with motion allowed) --- */
.hero--shop { position: relative; overflow: clip; }
.hero--shop > .wrap { position: relative; z-index: 1; }
.hero-deco { position: absolute; z-index: 0; border-radius: 50%; pointer-events: none; will-change: transform; }
.hero-deco--a { width: 38vw; height: 38vw; right: -9vw; top: -6%; background: radial-gradient(circle at 35% 35%, rgba(233,201,168,.75), rgba(233,201,168,0) 68%); }
.hero-deco--b { width: 20vw; height: 20vw; left: 36%; bottom: -7vw; background: radial-gradient(circle at 50% 50%, rgba(164,71,42,.16), rgba(164,71,42,0) 70%); }
.hero-feature[data-tilt] { transform-style: preserve-3d; }
.hero-feature::after, .pcard__media[data-tilt]::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: var(--sheen, 0);
  background: radial-gradient(circle at var(--px, 50%) var(--py, 50%), rgba(255,248,240,.55), rgba(255,248,240,0) 60%); mix-blend-mode: soft-light; }
.hero-save, .pcard__save { display: inline-block; margin-left: 8px; padding: 3px 10px; line-height: 1.35; border-radius: 999px; background: var(--p-hi); color: var(--p-ink);
  font: 600 12px/1.5 var(--font-text); font-variant-numeric: tabular-nums; }
.hero-feature__price { display: flex; align-items: baseline; flex-wrap: wrap; row-gap: 4px; }

/* --- trust strip under the hero: slow loop; static centered row without JS or with reduced motion --- */
.trust { position: relative; background: var(--p-surface); border-block: 1px solid var(--p-line); padding: 0; overflow: hidden; }
.trust__list { list-style: none; margin: 0; padding: 14px 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 44px; }
.trust__list li { display: inline-flex; align-items: center; gap: 12px; font: 500 15px/1.4 var(--font-text); color: var(--p-ink); white-space: nowrap; }
.trust__list i { width: 7px; height: 7px; border-radius: 50%; background: var(--p-brand, var(--p-accent)); flex: none; }
.trust.is-marquee { -webkit-mask-image: linear-gradient(90deg, transparent, #000 56px, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(90deg, transparent, #000 56px, #000 calc(100% - 56px), transparent); }
.trust__track { display: flex; width: max-content; will-change: transform; }
.trust.is-marquee .trust__list { flex-wrap: nowrap; justify-content: flex-start; gap: 44px; padding-right: 44px; flex: none; }
.trust__toggle { position: absolute; right: 8px; top: 50%; translate: 0 -50%; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--p-card); color: var(--p-ink); display: none; place-items: center; box-shadow: 0 1px 3px rgba(42,33,28,.16); transition: transform var(--m-press) var(--m-out); }
.trust.is-marquee .trust__toggle { display: grid; }
.trust__toggle:active { transform: scale(.94); }
.trust__toggle svg { width: 14px; height: 14px; fill: currentColor; }
.trust__toggle .i-play { display: none; } .trust__toggle[aria-pressed="true"] .i-play { display: block; } .trust__toggle[aria-pressed="true"] .i-pause { display: none; }

/* --- cards: below-the-fold cards wait (photo only, never the price) until stage.js lets them in --- */
/* (no hidden card state in CSS: stage.js animates cards in from visible) */

/* --- photo swaps: the old photo stays on top and slides/fades out while the new one comes in --- */
.swap-ghost { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; pointer-events: none; }
.pdp__main, .pcard__media { isolation: isolate; }

/* --- zoom lightbox (GSAP Flip carries the photo from the page into the dialog and back) --- */
html.lb-open { overflow: hidden; }
dialog.lightbox { border: 0; padding: 0; background: transparent; width: 100%; max-width: none; height: 100%; max-height: none; overflow: hidden; }
dialog.lightbox::backdrop { background: rgba(42,33,28,.82); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lightbox__stage { position: relative; display: grid; place-items: center; width: 100%; height: 100%; padding: 56px 16px; }
.lightbox__frame { position: relative; width: min(88vmin, 1000px); aspect-ratio: 1; border-radius: var(--r-lg); overflow: hidden; background: var(--p-photo, #EFE6D6); }
.lightbox__frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lightbox__btn { position: absolute; z-index: 3; width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer; background: var(--p-card); color: var(--p-ink);
  display: grid; place-items: center; box-shadow: 0 2px 10px rgba(0,0,0,.25); transition: transform var(--m-press) var(--m-out); }
.lightbox__btn:active { transform: scale(.94); }
.lightbox__btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lightbox__close { top: 12px; right: 12px; } .lightbox__prev { left: 12px; top: 50%; translate: 0 -50%; } .lightbox__next { right: 12px; top: 50%; translate: 0 -50%; }
.lightbox__count { position: absolute; bottom: 14px; left: 50%; translate: -50% 0; color: #fff8f0; font: 500 14px/1 var(--font-text); }
.pdp__main { cursor: zoom-in; }

/* --- sticky add-to-cart bar on product pages --- */
.atc-bar { position: fixed; z-index: 30; left: 50%; bottom: max(12px, env(safe-area-inset-bottom)); width: min(680px, calc(100% - 24px));
  display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 8px; background: var(--p-card); border: 1px solid var(--p-line); border-radius: 18px;
  box-shadow: 0 10px 30px rgba(42,33,28,.18); translate: -50% 160%; opacity: 0; visibility: hidden;
  transition: translate .2s var(--m-out), opacity .16s var(--m-out), visibility 0s .2s; }
.atc-bar.is-on { translate: -50% 0; opacity: 1; visibility: visible; transition: translate .32s var(--m-out), opacity .2s var(--m-out), visibility 0s; }
.atc-bar img { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; flex: none; }
.atc-bar__text { display: grid; min-width: 0; flex: 1; line-height: 1.25; }
.atc-bar__text b { font: 500 15px/1.25 var(--font-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.atc-bar__text span { font-variant-numeric: tabular-nums; color: var(--p-muted); font-size: 14px; }
.atc-bar .btn { flex: none; min-height: 44px; }
@media (max-width: 479px) { .atc-bar__text b { font-size: 14px; } .atc-bar .btn { padding-inline: 18px; } }

/* --- page transition: short fade, paper behind it so there is never a white flash --- */
html { background-color: var(--p-bg); }
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root) { animation: 140ms var(--m-out) both vt-out; }
  ::view-transition-new(root) { animation: 240ms var(--m-out) both vt-in; }
  ::view-transition { background: var(--p-bg); }
}
@keyframes vt-in { from { opacity: 0; transform: translateY(4px); } }

/* --- how your order gets to you: tighter --- */
#ships.section { padding-block: clamp(40px, 5vw, 72px); min-height: 0; }
#ships .ships-copy { gap: var(--s-4); }

/* --- reduce motion: no layers, no marquee, no entrances --- */
@media (prefers-reduced-motion: reduce) {
  .hero-deco { display: none; }
  .atc-bar, .atc-bar.is-on { transition: none; }
}

/* press feedback on the main buttons (individual `scale` property, so it never fights the magnetic x/y) */
.btn--primary { transition-property: background-color, color, border-color, box-shadow, scale; }
.btn--primary:active { scale: .97; transition-duration: var(--m-press); }

/* ---------- round 3 review fixes (critique + audit) ---------- */
/* trust strip: a strip, not a screen. system.css stretches every main > section to 100svh */
main > section.trust.trust:not(.hero) { height: auto; min-height: 0; padding-block: 0; }   /* beats system.css (0,2,1) */
/* drawer quantity steppers: 44px targets */
.qty button { width: 44px; height: 44px; }
/* footer links: full-height tap rows on touch screens */
@media (pointer: coarse) {
  .footer__col ul { gap: 0; }
  .footer__col a { display: inline-flex; align-items: center; min-height: 44px; }
}
/* hero on phones: the trust strip below already says free shipping, so the notice yields its room to the kit photo;
   the price card becomes a compact corner label so the kit itself shows */
.hero-save { justify-self: start; margin-left: 0; }
@media (max-width: 639px) {
  .hero-shop > .hero-feature { min-height: 240px; }
  .hero-feature__cap { left: 10px; bottom: 10px; gap: 2px; padding: 8px 12px; }
  .hero-feature__cap .chip { display: none; }
  .hero-feature__name { font-size: 16px; }
  .hero-feature__price { font-size: 15px; column-gap: 8px; }
  .hero-feature__media img { object-position: 60% 45%; }
}

/* browser surfaces from the palette: caret, native controls, scrollbar */
:root { caret-color: var(--p-accent); accent-color: var(--p-accent); scrollbar-color: color-mix(in oklab, var(--p-ink) 28%, transparent) transparent; }

/* ===== Round 4: signature motion (signature.js). Hidden states only exist under html.sig-on, never under reduced motion ===== */
/* 1. hero lights: the glow sits on the contained photo square (object-fit: contain, object-position 50% 40%) */
.hero-photo { position: absolute; inset: 0; }
.hero-feature__media { container-type: size; }
.leds { position: absolute; pointer-events: none; width: 100cqmin; height: 100cqmin;
        left: calc((100cqw - 100cqmin) / 2); top: calc((100cqh - 100cqmin) * .4); }
.leds svg { width: 100%; height: 100%; display: block; overflow: visible; }
.leds__dots circle { mix-blend-mode: screen; opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(.6);
                     transition: opacity .9s cubic-bezier(.4, 0, .2, 1), transform .9s cubic-bezier(.4, 0, .2, 1); }
.leds__wash { mix-blend-mode: screen; opacity: 0; transition: opacity 1s cubic-bezier(.4, 0, .2, 1); }
.leds.is-on .leds__dots circle { opacity: 1; transform: none; transition-duration: .52s; transition-timing-function: cubic-bezier(.23, 1, .32, 1); transition-delay: calc(var(--i) * 28ms); }
.leds.is-on .leds__wash { opacity: 1; transition-duration: .7s; transition-delay: 80ms; }
@media (prefers-reduced-motion: reduce) { .leds { display: none; } }

/* ambient float: slow and small (6 px, 0.4 deg over 9 s), compositor-only */
@media (prefers-reduced-motion: no-preference) {
  .hero-photo { animation: hero-float 9s ease-in-out infinite alternate; will-change: transform; }
  /* phones: a soft scroll parallax without JS where the browser supports scroll timelines (desktop uses GSAP in stage.js) */
  @supports (animation-timeline: view()) {
    @media not ((hover: hover) and (pointer: fine)) {
      .hero-feature__media { animation: hero-drift linear both; animation-timeline: view(); animation-range: exit 0% exit 100%; }
    }
  }
}
@keyframes hero-float { from { transform: translate3d(0, -3px, 0) rotate(-.2deg); } to { transform: translate3d(0, 5px, 0) rotate(.25deg); } }
@keyframes hero-drift { to { transform: translate3d(0, 9%, 0) scale(1.04); } }

/* 2. Starter Kit scroll story. Base = the simple stacked version (phones, reduced motion, no JS);
      .story.is-pinned (added by signature.js on desktop) turns it into the pinned parcel scene */
.story { padding: var(--s-9, 96px) 0; background: var(--p-bg); }
.story__grid { display: grid; gap: var(--s-6); align-items: center; }
.story__steps { list-style: none; margin: var(--s-4) 0 var(--s-6); padding: 0; display: grid; gap: var(--s-3); font: 400 clamp(22px, 2.4vw, 30px)/1.2 var(--font-display); }
.story__steps li { display: flex; align-items: baseline; gap: var(--s-3); transition: opacity .35s var(--ease-out), transform .35s var(--ease-out); }
.story__n { font: 500 13px/1 var(--font-text); letter-spacing: .08em; color: var(--p-muted); font-variant-numeric: tabular-nums; }
.story__end h2 { margin: 0 0 var(--s-4); }
.story__end h2 span { color: var(--p-muted); }
.story__cta { display: flex; align-items: center; gap: var(--s-5); flex-wrap: wrap; }
.story__stage { position: relative; }
.parcel { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); }
.parcel__back, .parcel__front, .parcel__lid { display: none; }
.story__item { display: block; aspect-ratio: 1; border-radius: var(--r-md); overflow: hidden; background: var(--p-photo); box-shadow: 0 1px 2px rgba(42,33,28,.06), 0 8px 24px rgba(42,33,28,.08); }
.story__item img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (min-width: 900px) { .story__grid { grid-template-columns: 5fr 7fr; gap: var(--s-8); } }

.story.is-pinned { padding: 0; }
.story.is-pinned .story__pin { height: 100vh; height: 100svh; display: grid; align-items: center; overflow: hidden; }
.story__steps li { color: var(--p-ink); }                                    /* dark, readable text on every screen */
.story.is-pinned .story__steps li { opacity: .62; }
.story.is-pinned .story__steps li.is-on { opacity: 1; }
.story.is-pinned .story__steps li.is-done .story__n { color: var(--p-ink); }
.story.is-pinned .story__steps li.is-on .story__n { color: var(--p-ink); font-weight: 700; }
.story.is-pinned .story__end { opacity: 0; transform: translateY(14px); visibility: hidden; }
.story.is-pinned .story__stage { aspect-ratio: 1 / .92; max-height: 88vh; justify-self: center; width: min(100%, 88vh * 1.08); }
.story.is-pinned .parcel { display: block; position: absolute; inset: 0; }
.story.is-pinned .story__item { position: absolute; width: 32%; will-change: transform; box-shadow: 0 2px 4px rgba(42,33,28,.08), 0 16px 36px rgba(42,33,28,.16); }
.story.is-pinned .story__item--0 { left: 0; top: 2%; }
.story.is-pinned .story__item--1 { left: 34%; top: 0; }
.story.is-pinned .story__item--2 { left: 68%; top: 2%; }
.story.is-pinned :is(.parcel__back, .parcel__front, .parcel__lid) { display: block; position: absolute; left: 18%; width: 64%; }
.story.is-pinned .parcel__back { top: 58%; height: 30%; border-radius: 6px 6px 0 0; background: linear-gradient(#8f6c4d, #a7825f); }
.story.is-pinned .parcel__front { top: 64%; height: 32%; border-radius: 4px 4px 10px 10px; background: linear-gradient(170deg, #d9b893, #c59f78); box-shadow: 0 18px 40px rgba(42,33,28,.18), inset 0 1px 0 rgba(255,255,255,.35); display: grid; place-items: center; }
.parcel__label { display: grid; gap: 2px; padding: 10px 18px; border-radius: 6px; background: #f8f3ea; color: var(--p-ink); text-align: center; font-size: 13px; box-shadow: 0 1px 0 rgba(0,0,0,.06); }
.parcel__label b { font: 400 20px/1 var(--font-display); }
.story.is-pinned .parcel__lid { top: 54%; height: 12%; left: 16.5%; width: 67%; border-radius: 8px 8px 3px 3px; background: linear-gradient(175deg, #e0c19d, #ccA67f); box-shadow: 0 6px 16px rgba(42,33,28,.16); opacity: 0; will-change: transform; }
.parcel__tape { position: absolute; left: 44%; width: 12%; top: 0; bottom: 0; background: rgba(248,243,234,.55); }

/* 3. page transitions: the clicked card's photo grows into the product page's main photo (cross-document View Transitions).
      The main photo always carries the name; signature.js gives it to the clicked card on the way out. */
@media (prefers-reduced-motion: no-preference) {
  .pdp__main img[data-gallery-main] { view-transition-name: product-photo; }
  ::view-transition-group(product-photo) { animation-duration: 460ms; animation-timing-function: cubic-bezier(.65, 0, .25, 1); border-radius: var(--r-md); overflow: hidden; }
  ::view-transition-old(product-photo), ::view-transition-new(product-photo) { height: 100%; width: 100%; object-fit: cover; animation-duration: 300ms; animation-timing-function: cubic-bezier(.4, 0, .2, 1); }
  /* fade fallback (no cross-page view transitions): the new page settles in from the same paper colour */
  html.vt-fb body { animation: page-in .3s cubic-bezier(.23, 1, .32, 1) both; }
  html.vt-fb.is-leaving body { opacity: 0; transition: opacity .16s cubic-bezier(.23, 1, .32, 1); }
}
@keyframes page-in { from { opacity: 0; } }

/* 4. add to cart: the button morphs to a tick + "Added" (width locked in JS); the flying thumbnail; the shipping bar fills by transform */
.fly { position: fixed; z-index: 130; width: 64px; height: 64px; pointer-events: none; will-change: transform; }
.fly__img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 14px; background: var(--p-photo); box-shadow: 0 10px 28px rgba(42,33,28,.22); will-change: transform, opacity; }
.added { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.added__tick { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
[data-add].is-added { background-color: var(--p-ink); border-color: var(--p-ink); color: var(--p-bg); }
[data-add] { transition: background-color .22s var(--ease-out), color .22s var(--ease-out), border-color .22s var(--ease-out), transform .14s var(--ease-out); }
@media (prefers-reduced-motion: no-preference) {
  .is-added .added { animation: added-in .26s cubic-bezier(.23, 1, .32, 1) both; }
  .is-added .added__tick path { stroke-dasharray: 16; animation: tick-draw .32s cubic-bezier(.23, 1, .32, 1) .06s both; }
  .added--back { animation: added-in .22s cubic-bezier(.23, 1, .32, 1) both; }
  .btn.is-added { animation: none; }
}
@keyframes added-in { from { opacity: 0; filter: blur(2px); transform: translateY(3px); } }
@keyframes tick-draw { from { stroke-dashoffset: 16; } }
.ship-meter__bar span { width: 100%; transform: scaleX(var(--p, 0)); transform-origin: left center; transition: transform .7s cubic-bezier(.23, 1, .32, 1); }
@media (prefers-reduced-motion: reduce) { .ship-meter__bar span { transition: none; } }

/* 5. curtain wipe: photos below the first screen wait clipped (only under html.sig-on, never with reduced motion) */
/* (images are never hidden by CSS: signature.js plays the wipe from visible, only on photos that have loaded) */

/* 6. gallery hover zoom (desktop): the photo scales 1.6x from the pointer; leaving eases it back */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .pdp__main img[data-gallery-main] { transform-origin: var(--zx, 50%) var(--zy, 50%); transition: transform .45s cubic-bezier(.23, 1, .32, 1), transform-origin .12s linear; }
  .pdp__main.is-hz img[data-gallery-main] { transform: scale(1.6); }
  .pdp__main.hz-snap img[data-gallery-main] { transition: none; }
}

/* 7. shop menu: rows and kit cards arrive in a quick stagger (30 ms steps, 200 ms each); closing is one fast fade with the panel */
.nav__menu .menu-cats li:nth-child(2) { --k: 1; } .nav__menu .menu-cats li:nth-child(3) { --k: 2; } .nav__menu .menu-cats li:nth-child(4) { --k: 3; }
.nav__menu .menu-cats li:nth-child(5) { --k: 4; } .nav__menu .menu-cats li:nth-child(6) { --k: 5; }
.nav__menu .grid > .menu-card:nth-child(2) { --k: 2; } .nav__menu .grid > .menu-card:nth-child(3) { --k: 3; } .nav__menu .grid > .menu-card:nth-child(4) { --k: 4; }
@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
  .nav__menu :is(.menu-cats li, .menu-card) { opacity: 0; transform: translateY(6px); transition: opacity .12s cubic-bezier(.23, 1, .32, 1), transform .12s cubic-bezier(.23, 1, .32, 1); }
  .nav__item:is(:hover, :focus-within) > .nav__menu :is(.menu-cats li, .menu-card) {
    opacity: 1; transform: none; transition-duration: .2s; transition-timing-function: cubic-bezier(.23, 1, .32, 1);
    transition-delay: calc(170ms + var(--k, 0) * 30ms);
  }
}
@media (max-width: 1023px) and (prefers-reduced-motion: no-preference) {
  .nav.is-open .nav__item.is-expanded .nav__menu :is(.menu-cats li, .menu-card) { animation: menu-in .24s cubic-bezier(.23, 1, .32, 1) both; animation-delay: calc(var(--k, 0) * 30ms); }
}
@keyframes menu-in { from { opacity: 0; transform: translateY(6px); } }
@media (max-width: 899px) { .story__copy { display: contents; } .story__copy > .t-label, .story__steps { order: 1; } .story__stage { order: 2; } .story__end { order: 3; } .story__steps { margin-bottom: 0; } }

/* story button: one clear line, "Everything in one parcel · $59 · Add to cart" */
.btn--lg { font-size: clamp(16px, 1.5vw, 19px); padding: 18px 30px; min-height: 60px; }
.story__btn { display: block; width: 100%; max-width: 520px; white-space: normal; text-align: center; line-height: 1.3; text-wrap: balance; }

/* white wire shelf: shown from shelf-tile.jpg (the same photo, tone-mapped onto a slightly darker tile so the wire reads clearly); no CSS needed */

/* ================= round 5: living backgrounds =================
   Hero: a muted dusk loop (Mixkit 3977, graded warm) under a paper wash, a slow light glow and film grain.
   Shipping band: a slow warm aura on espresso. Transform + opacity only; everything rests off screen
   (living.js sets .is-asleep) and stands still under reduce motion (the poster stays, no video loads). */
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hero-bg__media { position: absolute; inset: -8% 0; will-change: transform; }
.hero-bg__poster, .hero-bg__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero-bg__video { opacity: 0; transition: opacity 1.4s var(--ease-out); }
.hero-bg__video.is-playing { opacity: 1; }
/* the wash keeps Warm Paper in charge: near-solid paper behind the words, the light shows through around the product,
   and the bottom melts into the next band */
.hero-bg__wash { position: absolute; inset: 0;
  /* round 5b: the dusk footage shows clearly; a soft cream gradient sits only behind the words on the left,
     plus a short melt into the next band at the bottom */
  background:
    linear-gradient(to bottom, rgba(244,238,228,0) 84%, var(--p-bg) 100%),
    /* 5c: a longer, eased fade from cream into warm amber dusk light (no grey where the cream ends) */
    linear-gradient(90deg, rgba(244,238,228,.9) 0%, rgba(244,238,228,.84) 26%, rgba(243,226,200,.78) 34%, rgba(238,206,162,.68) 42%,
      rgba(232,186,128,.56) 50%, rgba(226,170,108,.42) 58%, rgba(222,160,98,.26) 66%, rgba(222,160,98,.12) 75%, rgba(222,160,98,0) 86%); }
@media (max-width: 899px) {
  /* phones: the words sit above the product, so the cream sits behind the top half only */
  /* 5c: the same cream -> warm amber fade as desktop, top to bottom, so no olive-brown shows beside the product card */
  .hero-bg__wash { background:
    linear-gradient(to bottom, rgba(244,238,228,.88) 0%, rgba(244,238,228,.82) 32%, rgba(243,226,200,.76) 40%, rgba(238,206,162,.66) 48%,
      rgba(232,186,128,.56) 56%, rgba(226,170,108,.46) 66%, rgba(222,160,98,.4) 78%, rgba(222,160,98,.34) 88%, var(--p-bg) 100%); }
  /* the narrow phone crop sits on the bright dusk side of the clip, not on the dark curtain */
  .hero-bg__poster, .hero-bg__video { object-position: 80% 50%; }
}
.living-glow { position: absolute; width: 46vw; aspect-ratio: 1; left: 8%; top: 12%; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(255,210,150,.62), rgba(255,210,150,.22) 38%, rgba(255,210,150,0) 66%);
  animation: living-drift 34s ease-in-out infinite alternate; will-change: transform; }
@keyframes living-drift {
  0%   { transform: translate3d(-6vw, 4vh, 0) scale(.92); }
  50%  { transform: translate3d(14vw, -6vh, 0) scale(1.06); }
  100% { transform: translate3d(30vw, 6vh, 0) scale(.96); }
}
@media (max-width: 899px) { .living-glow { width: 120vw; left: -30vw; top: 30%; } }

/* film grain: one tiny SVG noise tile, nudged in 6 steps a second (compositor only) */
.grain { position: absolute; inset: -40px; pointer-events: none; opacity: .09;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .16  0 0 0 0 .13  0 0 0 0 .11  0 0 0 1.1 -.2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>") 0 0 / 180px 180px;
  animation: grain-shift 1s steps(6) infinite; will-change: transform; }
.ground-inverse .grain { opacity: .07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .96  0 0 0 0 .93  0 0 0 0 .89  0 0 0 1.1 -.2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
@keyframes grain-shift {
  0% { transform: translate3d(0, 0, 0); } 17% { transform: translate3d(-18px, 11px, 0); } 33% { transform: translate3d(9px, -21px, 0); }
  50% { transform: translate3d(-27px, -6px, 0); } 67% { transform: translate3d(21px, 17px, 0); } 83% { transform: translate3d(-6px, 26px, 0); } 100% { transform: translate3d(0, 0, 0); }
}

/* shipping band: warm aura (React Bits "aurora" idea, rebuilt as three soft gradient lights; GSAP drives them on desktop,
   a slow CSS drift on phones) */
#ships { position: relative; overflow: clip; isolation: isolate; }
#ships > .wrap { position: relative; z-index: 1; }
.aura { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.aura__blob { position: absolute; border-radius: 50%; will-change: transform; }
.aura__blob--a { width: 80vw; aspect-ratio: 1; left: -28vw; bottom: -52vw;
  background: radial-gradient(circle, rgba(164,71,42,.62), rgba(164,71,42,.22) 40%, rgba(164,71,42,0) 68%); animation: aura-a 26s ease-in-out infinite alternate; }
.aura__blob--b { width: 64vw; aspect-ratio: 1; right: -18vw; top: -40vw;
  background: radial-gradient(circle, rgba(222,150,78,.36), rgba(222,150,78,.12) 42%, rgba(222,150,78,0) 68%); animation: aura-b 32s ease-in-out infinite alternate; }
.aura__blob--c { width: 46vw; aspect-ratio: 1; left: 30%; top: 10%;
  background: radial-gradient(circle, rgba(233,201,168,.13), rgba(233,201,168,0) 66%); animation: aura-c 38s ease-in-out infinite alternate; }
@keyframes aura-a { to { transform: translate3d(22vw, -10vw, 0) scale(1.15); } }
@keyframes aura-b { to { transform: translate3d(-20vw, 12vw, 0) scale(.9); } }
@keyframes aura-c { to { transform: translate3d(-16vw, 8vw, 0) scale(1.25); } }
@media (max-width: 899px) {
  .aura__blob--a { width: 150vw; left: -60vw; bottom: -90vw; }
  .aura__blob--b { width: 120vw; right: -50vw; top: -70vw; }
  .aura__blob--c { width: 100vw; left: 10%; top: 30%; }
}
.aura.is-gsap .aura__blob { animation: none; }

/* rest off screen; stand still under reduce motion (no video: living.js never loads it, the poster stays) */
.is-asleep :is(.grain, .living-glow, .aura__blob) { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .grain, .living-glow, .aura__blob { animation: none; }
  .hero-bg__video { display: none; }
}

/* 5c: Shop by room photos sit fully inside their tiles (contained, with breathing room) */
#rooms .room__media { width: 100%; min-width: 0; }   /* phones: the photo box never grows wider than its tile to keep 4:3 */
#rooms .room__media img { object-fit: contain; padding: 6%; box-sizing: border-box;
  /* the photo's own paper square melts into the tile instead of reading as a box */
  -webkit-mask-image: linear-gradient(to right, transparent 6%, #000 13%, #000 87%, transparent 94%), linear-gradient(to bottom, transparent 6%, #000 13%, #000 87%, transparent 94%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent 6%, #000 13%, #000 87%, transparent 94%), linear-gradient(to bottom, transparent 6%, #000 13%, #000 87%, transparent 94%);
  mask-composite: intersect; }

/* ---------- buyer reviews (real CJ reviews, data/reviews.json) · Warm Paper ---------- */
.stars--lg { font-size: 26px; letter-spacing: 3px; }
.reviews-sec { border-top: 1px solid var(--line); scroll-margin-top: calc(var(--nav-h, 64px) + 16px); }
.reviews-sec__grid { display: grid; gap: var(--s-6); }
.reviews-sum { display: grid; gap: var(--s-4); align-content: start; }
.reviews-sum h2 { margin: 0; }
.reviews-sum__score { display: flex; align-items: center; gap: var(--s-4); }
.reviews-sum__num { font-family: var(--font-display); font-size: clamp(56px, 7vw, 76px); line-height: .9; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.reviews-sum__stars { display: grid; gap: 6px; }
.reviews-sum__count { font-size: var(--t-small); color: var(--muted); }
.reviews-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-width: 360px; }
.reviews-bars li { display: grid; grid-template-columns: 48px 1fr 28px; gap: 10px; align-items: center; font-size: var(--t-small); color: var(--muted); font-variant-numeric: tabular-nums; }
.reviews-bars li > span:last-child { text-align: right; }
.reviews-bars__track { height: 6px; border-radius: 999px; background: color-mix(in oklab, var(--ink) 8%, transparent); overflow: hidden; }
.reviews-bars__track span { display: block; height: 100%; width: var(--w); background: var(--p-brand, var(--p-accent)); border-radius: inherit; }
.reviews-sum__note { display: flex; gap: 8px; margin: 0; font-size: var(--t-small); color: var(--muted); max-width: 40ch; line-height: 1.5; }
.reviews-sum__note svg, .review__verified svg { flex: none; fill: none; stroke: var(--p-brand, var(--p-accent)); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }

.reviews__list, .review-strip__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-4); }
.review { display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-5); border-radius: var(--r-lg);
  background: var(--p-photo); border: 1px solid color-mix(in oklab, var(--ink) 6%, transparent); outline-offset: 3px; }
.review:focus:not(:focus-visible) { outline: none; }
.mo-js .reviews__list.is-paged .review[data-extra]:not(.is-shown) { display: none; }
.review__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.review__top .stars { font-size: 15px; }
.review__verified { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 500; color: var(--muted); }
.review__verified svg { margin-top: 0; }
.review__text { margin: 0; font-size: 16px; line-height: 1.55; color: var(--ink); overflow-wrap: anywhere; }
.review__text p { margin: 0; } .review__text p + p { margin-top: .6em; }
.review__photos { display: flex; gap: 8px; }
.review__photos a { display: block; width: 88px; height: 88px; border-radius: var(--r-md); overflow: hidden; }
.review__photos img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--dur, .3s) var(--ease, ease); }
@media (hover: hover) { .review__photos a:hover img { transform: scale(1.05); } }
.review__meta { margin: auto 0 0; font-size: var(--t-small); color: var(--muted); }
.review__orig { font-size: var(--t-small); color: var(--muted); border-top: 1px solid var(--line); padding-top: var(--s-3); }
.review__orig summary { cursor: pointer; width: max-content; max-width: 100%; text-decoration: underline; text-decoration-color: color-mix(in oklab, currentColor 35%, transparent); text-underline-offset: 3px; }
.review__orig summary:hover { color: var(--ink); }
.review__orig div { margin-top: var(--s-2); font-style: italic; }
.review__orig p { margin: 0; } .review__orig p + p { margin-top: .5em; }
.reviews-more { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3); margin-top: var(--s-5); }
.reviews-more p { margin: 0; }
.reviews-more [hidden] { display: none; }

@media (min-width: 720px) { .reviews__list, .review-strip__list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .reviews-sec__grid { grid-template-columns: 4fr 8fr; gap: var(--s-8); }
  .reviews-sum { position: sticky; top: calc(var(--nav-h, 64px) + var(--s-5)); }
  .review-strip__list { grid-template-columns: repeat(3, 1fr); }
}

/* home strip */
.review-strip { padding-top: 0; }
.review-strip__scores { display: grid; gap: 8px; }
.review-strip__score { display: inline-flex; align-items: center; gap: 10px; font-size: var(--t-small); color: var(--muted); text-decoration: none; }
.review-strip__score b { color: var(--ink); font-weight: 600; }
.review-strip__score:hover span { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.review-strip .review { background: var(--p-photo); }
.reviews-sec .reviews__list { align-items: start; }
.review__product { display: block; width: max-content; max-width: 100%; margin-bottom: 4px; color: var(--ink); font-weight: 500; text-decoration: underline; text-decoration-color: color-mix(in oklab, currentColor 30%, transparent); text-underline-offset: 4px; }
.review__product::after { content: ' →'; }
.review__product:hover { text-decoration-color: currentColor; }
@media (min-width: 1024px) { main > section.review-strip > .wrap { justify-content: center; } }


/* ---------- logo (round 6) ---------- */
.brand-logo { gap: 9px; }
.brand-logo img { display: block; width: auto; }
.nav__logo.brand-logo .brand-logo__mark { height: 36px; }
.nav__logo.brand-logo .brand-logo__word { height: 22px; margin-top: 8px; }   /* sits on the roof's eave line */
@media (max-width: 639px) {
  .nav__logo.brand-logo .brand-logo__mark { height: 30px; }
  .nav__logo.brand-logo .brand-logo__word { height: 18px; margin-top: 7px; }
}
.footer__logo { display: inline-block; }
.footer__logo img { display: block; height: 72px; width: auto; }
/* ---------- order pages: success + checkout cancelled (Warm Paper) ---------- */
.order-note { background: var(--p-card); border: 1px solid var(--p-line); border-radius: 24px; padding: clamp(24px, 5vw, 48px); display: grid; gap: var(--s-4); box-shadow: 0 1px 0 rgba(42,33,28,.04), 0 18px 40px -28px rgba(42,33,28,.35); }
.order-note h1 { font-size: var(--t-h2); margin: 0; text-wrap: balance; }
.order-note .t-label { margin: 0; color: var(--p-action); }
.order-note .t-lead { margin: 0; max-width: 56ch; }
.order-note__logo { height: 40px; width: auto; margin-bottom: var(--s-2); }
.order-note__state { display: grid; gap: var(--s-3); }
.order-note__state[hidden] { display: none; }
.order-steps { list-style: none; margin: var(--s-3) 0 0; padding: 0; display: grid; gap: var(--s-3); }
.order-steps li { display: flex; gap: var(--s-3); align-items: center; }
.order-steps li div { display: grid; }
.order-steps span:not(.badge-ic) { font-size: var(--t-small); color: var(--muted); }
.order-note__cart { border-top: 1px solid var(--p-line); padding-top: var(--s-4); display: grid; gap: var(--s-3); }
.order-note .btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }

/* ---------- legal pages (round 6) ---------- */
.ph { display: inline; padding: 1px 5px; -webkit-box-decoration-break: clone; box-decoration-break: clone; border: 1.5px dashed #B3261E; border-radius: 6px; color: #8C1D18; background: #FFF1EE; font-weight: 600; font-size: .92em; }
[lang="ja"] { font-family: var(--font-text), "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", sans-serif; line-break: strict; word-break: normal; overflow-wrap: anywhere; }
.h1-ja { display: block; font: 500 .52em/1.4 var(--font-text); color: var(--muted); margin-top: var(--s-2); letter-spacing: 0; }
.lang-jump { display: flex; gap: var(--s-3); align-items: center; margin: 0 0 var(--s-5); }
.disclosure { padding: var(--s-5) 0; border-top: 1px solid var(--line); scroll-margin-top: 96px; }
.disclosure h2 { font-size: var(--t-h3); margin: 0 0 var(--s-4); }
.disclosure dl { margin: 0; display: grid; border: 1px solid var(--p-line); border-radius: 16px; overflow: hidden; background: var(--p-card); }
.disclosure dl > div { display: grid; grid-template-columns: minmax(150px, 30%) 1fr; border-top: 1px solid var(--p-line); }
.disclosure dl > div:first-child { border-top: 0; }
.disclosure dt { font-weight: 600; padding: var(--s-3) var(--s-4); background: color-mix(in oklab, var(--p-surface) 55%, var(--p-card)); }
.disclosure dd { margin: 0; padding: var(--s-3) var(--s-4); }
@media (max-width: 639px) { .disclosure dl > div { grid-template-columns: 1fr; } .disclosure dt { padding-bottom: var(--s-1); } .disclosure dd { padding-top: var(--s-1); } }
.table-scroll { overflow-x: auto; margin: var(--s-3) 0; border: 1px solid var(--p-line); border-radius: 16px; background: var(--p-card); }
.ship-table { width: 100%; border-collapse: collapse; font-size: var(--t-small); }
.ship-table th, .ship-table td { text-align: left; padding: 10px 14px; border-top: 1px solid var(--p-line); white-space: nowrap; }
.ship-table thead th { border-top: 0; font-weight: 600; background: color-mix(in oklab, var(--p-surface) 55%, var(--p-card)); }
.ship-table tbody th { font-weight: 500; white-space: normal; min-width: 180px; }
.legal-links [lang="ja"] { font-size: .92em; opacity: .85; margin-left: 4px; }

/* PRE-LAUNCH STRIP (build.mjs PRELAUNCH): a thin band on top of the fixed nav. --nav grows by its height,
   so every offset that reads --nav (hero padding, sticky gallery, mobile menu) moves down with it. */
html.prelaunch { --prelaunch-h: 28px; --nav: calc(72px + var(--prelaunch-h)); }
@media (max-width: 639px) { html.prelaunch { --nav: calc(56px + var(--prelaunch-h)); } }
.prelaunch-bar { height: var(--prelaunch-h); margin: 0; display: flex; align-items: center; justify-content: center;
  padding-inline: 16px; background: var(--p-action); color: var(--p-action-ink);
  font-size: 12px; font-weight: 600; line-height: 1; letter-spacing: .02em; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.prelaunch .nav__bar { height: calc(100% - var(--prelaunch-h)); }
