/* =========================================================
   TANUZI — storefront styles
   Direction: white, photography-led, a near-black burgundy ink,
   tiny text interface, oversized display type. (Zara-inspired)
   ========================================================= */
:root {
  --bg: #ffffff;
  --ink: #2b0610;          /* near-black burgundy: the only interface colour */
  --ink-2: #6f5c61;        /* secondary text */
  --ink-3: #9a8e91;        /* hints, photo labels */
  --line: #e6e1e2;
  --frame: #f1eeeb;        /* empty photo slot */
  --brand: #650a25;        /* logo burgundy, used sparingly */
  --ok: #2f6b4a;
  --err: #a3122e;

  --f-ar: "IBM Plex Sans Arabic", system-ui, sans-serif;
  --f-en: "Plus Jakarta Sans", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --f-display-en: "Archivo Narrow", "Plus Jakarta Sans", sans-serif;
  --f-body: var(--f-ar);
  --f-display: var(--f-ar);

  --g: clamp(16px, 2.4vw, 36px);   /* page gutter */
  --top: 150px;                    /* space under the fixed header */
  --header-h: 72px;                /* height of the compact header (sticky offsets) */
  --ease: cubic-bezier(.4, 0, .2, 1);
}
html[lang="en"] { --f-body: var(--f-en); --f-display: var(--f-display-en); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
html.smooth-wheel { scroll-behavior: auto; }
body {
  margin: 0; background: var(--bg); color: var(--ink); overflow-x: clip;
  font-family: var(--f-body); font-size: 15px; line-height: 1.65; -webkit-font-smoothing: antialiased;
}
html[lang="en"] body { font-size: 14px; }
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; line-height: 1.2; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* Small interface type: uppercase + tracked in English, plain in Arabic */
.z-label, .z-link, .z-eyebrow, .zh-link, .zh-search, .z-btn, .btn, .z-textbtn, .crumbs, .card__new, .ph__label, .mnav__label {
  font-family: var(--f-body); font-size: 13px; font-weight: 400; letter-spacing: 0;
}
html[lang="en"] :is(.z-label, .z-link, .z-eyebrow, .zh-link, .zh-search, .z-btn, .btn, .z-textbtn, .crumbs, .card__new, .ph__label, .mnav__label) {
  font-size: 11px; text-transform: uppercase; letter-spacing: .06em;
}

.wrap { max-width: 1320px; margin-inline: auto; padding-inline: var(--g); }
.z-page { padding-inline: var(--g); }
#app { padding-top: var(--top); min-height: 70vh; transition: opacity .18s ease; }
body[data-page="home"] #app { padding-top: 0; }
#app.is-fading { opacity: 0; }

/* ---------- Loader splash ---------- */
.splash { position: fixed; inset: 0; z-index: 1000; background: var(--bg); display: grid; place-items: center; transition: opacity .7s ease, visibility .7s; }
.splash.is-out { opacity: 0; visibility: hidden; }
.splash.is-gone { display: none; }
.splash__inner { display: grid; justify-items: center; gap: 36px; transition: transform .9s var(--ease), opacity .5s ease; }
.splash.is-out .splash__inner { transform: scale(1.04); opacity: 0; }
.splash__mark { position: relative; width: clamp(170px, 22vw, 240px); aspect-ratio: 326 / 456; }
.splash__mark img { position: absolute; inset: 0; width: 100%; height: 100%; }
.splash__ghost { opacity: .12; animation: ghostBreath 2.4s ease-in-out infinite; }
.splash__fill { clip-path: inset(calc(100% - var(--p, 0%)) 0 0 0); }
@keyframes ghostBreath { 50% { opacity: .2; } }
.splash__meter { display: flex; align-items: center; gap: 14px; direction: ltr; }
.splash__bar { position: relative; width: 120px; height: 1px; overflow: hidden; background: var(--line); }
.splash__bar i { position: absolute; inset: 0; background: var(--brand); transform-origin: 0 50%; transform: scaleX(var(--pv, 0)); }
.splash__pct { min-width: 4ch; font-family: var(--f-en); font-size: 11px; letter-spacing: .12em; color: var(--brand); font-variant-numeric: tabular-nums; }

/* ---------- Header ---------- */
.zh {
  position: fixed; top: 0; inset-inline: 0; z-index: 50;
  display: flex; align-items: flex-start; gap: 28px; padding: 22px var(--g) 14px;
  background: transparent; transition: background .25s ease, box-shadow .25s ease;
}
.zh.is-scrolled { background: rgba(255, 255, 255, .97); box-shadow: 0 1px 0 var(--line); }
.zh-menu { display: grid; place-items: center; height: 28px; color: var(--ink); }
.zh-logo { display: block; transition: opacity .25s ease; }
.zh-logo img { height: 30px; width: auto; mix-blend-mode: multiply; }
body[data-page="home"] .zh:not(.is-scrolled) .zh-logo { opacity: 0; pointer-events: none; } /* the hero carries the big logo */
.zh-end { margin-inline-start: auto; display: grid; justify-items: end; gap: 26px; }
.zh-search { min-width: 220px; padding: 4px 0 6px; border-bottom: 1px solid var(--ink); text-align: end; color: var(--ink); }
.zh-links { display: grid; justify-items: end; gap: 6px; }
.zh-link { color: var(--ink); line-height: 1.5; }
.zh-link:hover, .zh-search:hover { opacity: .6; }
.zh-count { font-variant-numeric: tabular-nums; }
.zh-count::before { content: "["; } .zh-count::after { content: "]"; }
/* compact once scrolled: the links fold into one row beside SEARCH */
.zh.is-scrolled .zh-end { display: flex; align-items: center; gap: 24px; }
.zh.is-scrolled .zh-links { display: flex; gap: 20px; }
.zh.is-scrolled .zh-search { min-width: 160px; }

/* ---------- Side menu ---------- */
.mscrim { position: fixed; inset: 0; z-index: 88; background: rgba(43, 6, 16, .18); opacity: 0; pointer-events: none; transition: opacity .3s; }
.mscrim.show { opacity: 1; pointer-events: auto; }
.mnav {
  position: fixed; top: 0; bottom: 0; inset-inline-start: 0; z-index: 89; width: min(420px, 88vw);
  display: flex; flex-direction: column; gap: 34px; padding: 22px 34px calc(28px + env(safe-area-inset-bottom));
  background: var(--bg); overflow-y: auto; visibility: hidden;
  transform: translateX(100%); transition: transform .4s var(--ease), visibility .4s;
}
html[dir="ltr"] .mnav { transform: translateX(-100%); }
.mnav.open, html[dir="ltr"] .mnav.open { transform: none; visibility: visible; }
.mnav__head { display: flex; }
.mnav__group { display: grid; gap: 4px; }
.mnav__group a { font-size: 17px; line-height: 1.6; color: var(--ink); }
html[lang="en"] .mnav__group a { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; line-height: 2; }
.mnav__group a:hover { opacity: .6; }
.mnav__group a.is-active { text-decoration: underline; text-underline-offset: 5px; }
.mnav__group--small a { font-size: 14px; color: var(--ink-2); }
.mnav__label { color: var(--ink-3); margin-bottom: 4px; }
.mnav__lang { justify-self: start; margin-top: 10px; font-size: 13px; text-decoration: underline; text-underline-offset: 4px; }
.mnav__note { margin: auto 0 0; font-size: 12px; color: var(--ink-3); }
.x-btn { display: grid; place-items: center; width: 36px; height: 36px; color: var(--ink); }
.x-btn:hover { opacity: .6; }

/* ---------- Photo frames ---------- */
.ph { position: relative; overflow: hidden; background: color-mix(in srgb, var(--c, #e9e5e2) 9%, var(--frame)); }
.ph--img { background: var(--frame); }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph__label { position: absolute; bottom: 10px; inset-inline-start: 12px; inset-inline-end: 12px; color: var(--ink-3); line-height: 1.4; }
.ph--hero .ph__label { top: 50%; bottom: auto; text-align: center; font-size: 12px; }
html[lang="en"] .ph--hero .ph__label { font-size: 11px; }

/* ---------- Shared bits ---------- */
.z-link { display: inline-block; color: var(--ink); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.z-link:hover { opacity: .6; }
.link { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; font-size: 13px; }
.z-eyebrow { color: var(--ink-2); margin: 0 0 10px; }
.z-label { color: var(--ink); }
.z-display {
  font-family: var(--f-display); font-weight: 700; color: var(--ink);
  font-size: clamp(44px, 6.2vw, 108px); line-height: 1.04; letter-spacing: -.01em;
}
html[lang="en"] .z-display { font-size: clamp(56px, 8.6vw, 150px); line-height: .9; text-transform: uppercase; letter-spacing: -.005em; }
.z-btn, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 48px; padding: 0 20px;
  background: var(--ink); color: #fff; border: 1px solid var(--ink); border-radius: 0; transition: background .2s, color .2s;
}
.z-btn:hover, .btn:hover { background: #000; border-color: #000; }
.z-btn--line, .btn--ghost, .btn--wa { background: transparent; color: var(--ink); }
.z-btn--line:hover, .btn--ghost:hover, .btn--wa:hover { background: var(--ink); color: #fff; }
.btn--block { width: 100%; }
.z-textbtn { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Home ---------- */
.z-hero { position: relative; height: 100svh; min-height: 560px; overflow: hidden; }
.z-hero__img, .z-hero__img .ph { position: absolute; inset: 0; }
.z-hero__logo {
  position: absolute; inset-inline: 0; bottom: 5vh; margin-inline: auto; width: min(92vw, 1500px); height: auto;
  mix-blend-mode: multiply; pointer-events: none;
}
.z-hero__caption { position: absolute; inset-inline-start: var(--g); bottom: calc(min(92vw, 1500px) / 2.99 + 8vh); max-width: 420px; }
.z-hero__title { font-family: var(--f-display); font-weight: 600; font-size: clamp(22px, 2.4vw, 34px); line-height: 1.25; margin-bottom: 14px; }
html[lang="en"] .z-hero__title { text-transform: uppercase; }

.z-story {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 16px; row-gap: 8vh;
  padding: 14vh var(--g) 4vh; align-items: start;
}
.z-story__main { grid-row: 1 / span 2; }
.z-story__main .ph { aspect-ratio: 4 / 5; }
.z-story__lead { color: var(--ink-2); max-width: 36ch; margin: 18px 0 16px; }
.z-story__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.z-story--a .z-story__main { grid-column: 1 / 8; }
.z-story--a .z-story__text { grid-column: 9 / 13; padding-top: 6vh; }
.z-story--a .z-story__pair { grid-column: 9 / 13; }
.z-story--b .z-story__main { grid-column: 6 / 13; }
.z-story--b .z-story__text { grid-column: 1 / 5; grid-row: 1; padding-top: 6vh; }
.z-story--b .z-story__pair { grid-column: 1 / 5; grid-row: 2; }

.z-section { padding: 12vh var(--g) 6vh; }
.z-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 22px; }
.z-grid, .grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 44px 14px; }

.z-index { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 3.4vw; padding: 10vh var(--g); border-top: 1px solid var(--line); }
.z-index__item { display: inline-flex; align-items: flex-start; gap: 6px; color: var(--ink); }
.z-index__name { font-family: var(--f-display); font-weight: 700; font-size: clamp(36px, 5.4vw, 92px); line-height: 1.15; }
html[lang="en"] .z-index__name { text-transform: uppercase; line-height: 1; }
.z-index__n { position: relative; top: .4em; font-family: var(--f-en); font-size: 12px; color: var(--ink-3); }
.z-index__item:hover .z-index__name { color: var(--ink-2); }

.z-info { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 34px var(--g); border-top: 1px solid var(--line); text-align: center; font-size: 13px; color: var(--ink-2); }
.z-info p { margin: 0; }

/* ---------- Product card ---------- */
.card { position: relative; min-width: 0; }
.card__media { position: relative; }
.card__media > .ph { aspect-ratio: 2 / 3; }
.card__hit { position: absolute; inset: 0; z-index: 1; }
.quick__toggle {
  position: absolute; z-index: 3; bottom: 8px; inset-inline-end: 8px; width: 30px; height: 30px;
  display: grid; place-items: center; background: rgba(255, 255, 255, .9); color: var(--ink); transition: opacity .2s;
}
.quick {
  position: absolute; z-index: 2; inset-inline: 0; bottom: 0; padding: 8px; background: rgba(255, 255, 255, .96);
  opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .2s, transform .2s;
}
.quick__sizes { display: flex; gap: 4px; }
.quick__sizes button { flex: 1; min-height: 34px; font-family: var(--f-en); font-size: 11px; border: 1px solid var(--line); background: #fff; }
.quick__sizes button:hover:not(:disabled) { background: var(--ink); color: #fff; border-color: var(--ink); }
.quick__sizes button:disabled { color: #c6bcbe; text-decoration: line-through; cursor: not-allowed; }
.card.quick-open .quick { opacity: 1; transform: none; pointer-events: auto; }
.card.quick-open .quick__toggle { bottom: auto; top: 8px; transform: rotate(45deg); }
@media (hover: hover) and (pointer: fine) {
  .card:hover .quick { opacity: 1; transform: none; pointer-events: auto; }
  .card:hover .quick__toggle { opacity: 0; }
}
.card__info { display: grid; gap: 2px; padding-top: 10px; }
.card__line { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.card__name { font-size: 13.5px; line-height: 1.4; color: var(--ink); }
html[lang="en"] .card__name { font-size: 11.5px; text-transform: uppercase; letter-spacing: .03em; }
.price { font-family: var(--f-en); font-size: 12.5px; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.dots { display: flex; align-items: center; gap: 5px; margin-top: 4px; }
.dot { width: 10px; height: 10px; border-radius: 0; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .14); }
.dot[aria-checked="true"] { outline: 1px solid var(--ink); outline-offset: 2px; }
.card__new { margin-inline-start: auto; color: var(--ink-2); }

/* Wishlist */
.wish-btn { display: grid; place-items: center; width: 28px; height: 28px; color: var(--ink); flex: none; }
.wish-btn svg { width: 16px; height: 16px; fill: transparent; transition: fill .2s; }
.wish-btn[aria-pressed="true"] svg { fill: currentColor; }
.wish-btn.pop { animation: wishPop .35s ease; }
@keyframes wishPop { 40% { transform: scale(1.25); } }
.wish-btn--card { margin-top: -5px; margin-inline-end: -6px; }
.wish-btn--pdp { width: 48px; height: 48px; border: 1px solid var(--ink); }
.wish-btn--pdp svg { width: 18px; height: 18px; }
.wish-empty { display: grid; justify-items: center; gap: 18px; text-align: center; padding: 60px 0; }
.wish-empty > svg { width: 36px; height: 36px; fill: none; }
.wish-empty .btn { width: auto; }

/* ---------- Shop ---------- */
.shop-head { display: grid; gap: 14px; margin-bottom: 26px; }
.shop-cats { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 14px; }
html[lang="en"] .shop-cats { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.shop-cats a { color: var(--ink-2); }
.shop-cats a:hover, .shop-cats a.is-active { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }
.shop { padding-bottom: 12vh; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 24px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.toolbar__count { color: var(--ink-3); font-size: 12px; }
.select {
  appearance: none; border: 0; border-bottom: 1px solid var(--ink); background: transparent no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%232b0610' fill='none'/%3E%3C/svg%3E");
  background-position: left 0 center; padding: 4px 0; padding-inline-end: 18px; font-size: 13px; border-radius: 0;
}
html[dir="ltr"] .select { background-position: right 0 center; }
.empty { padding: 60px 0; text-align: center; color: var(--ink-2); }
.filters {
  position: fixed; top: 0; bottom: 0; inset-inline-end: 0; z-index: 92; width: min(400px, 92vw);
  display: grid; align-content: start; gap: 28px; padding: 22px 30px calc(28px + env(safe-area-inset-bottom));
  background: var(--bg); overflow-y: auto; visibility: hidden;
  transform: translateX(-100%); transition: transform .4s var(--ease), visibility .4s;
}
html[dir="ltr"] .filters { transform: translateX(100%); }
.filters.open, html[dir="ltr"] .filters.open { transform: none; visibility: visible; }
.filters__head { display: flex; justify-content: space-between; align-items: center; }
.f-group h3 { font-size: 13px; font-weight: 500; margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { min-height: 34px; padding: 0 12px; border: 1px solid var(--line); font-size: 13px; background: #fff; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.swatch-btn { position: relative; width: 24px; height: 24px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .14); }
.swatch-btn[aria-pressed="true"], .swatch-btn[aria-checked="true"] { outline: 1px solid var(--ink); outline-offset: 3px; }
.range { width: 100%; accent-color: var(--ink); }
.range-val { font-size: 12px; color: var(--ink-2); }

/* ---------- Product page ---------- */
.pdp { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); gap: clamp(24px, 4vw, 64px); align-items: start; padding-bottom: 8vh; }
.gallery { min-width: 0; }
.gallery__track { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.gallery__track .slide:first-child { grid-column: 1 / -1; }
.slide { position: relative; overflow: hidden; cursor: zoom-in; }
.slide > .ph { aspect-ratio: 2 / 3; transition: transform .35s var(--ease); transform-origin: var(--zx, 50%) var(--zy, 50%); }
.slide:first-child > .ph { aspect-ratio: 4 / 5; }
.slide.is-zoom > .ph { transform: scale(2); }
.slide.is-zoom { cursor: zoom-out; }
.gallery__dots { display: none; justify-content: center; gap: 6px; padding-top: 10px; }
.gallery__dots span { width: 5px; height: 5px; background: var(--line); }
.gallery__dots span.on { background: var(--ink); }
.info { position: sticky; top: calc(var(--header-h) + 24px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; color: var(--ink-3); margin-bottom: 10px; }
.crumbs a:hover { color: var(--ink); }
.info__name { font-size: 20px; font-weight: 500; line-height: 1.3; }
html[lang="en"] .info__name { font-size: 15px; text-transform: uppercase; letter-spacing: .03em; }
.info .price { display: block; font-size: 14px; margin: 8px 0 18px; }
.info__desc { color: var(--ink-2); font-size: 14px; max-width: 46ch; }
.opt { margin-top: 22px; }
.opt__label { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; margin-bottom: 10px; }
.opt__label b { font-weight: 500; }
.opt__label span { color: var(--ink-2); }
.sizes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.size { min-height: 42px; border: 1px solid var(--line); font-family: var(--f-en); font-size: 12px; background: #fff; }
.size:hover { border-color: var(--ink); }
.size[aria-checked="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.size:disabled { color: #c6bcbe; text-decoration: line-through; cursor: not-allowed; border-color: var(--line); background: transparent; }
.sizes.shake { animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.opt__err { color: var(--err); font-size: 12px; margin-top: 8px; min-height: 1.2em; }
.buy { display: grid; grid-template-columns: auto 1fr auto; gap: 6px; margin-top: 18px; }
.buy .z-btn--line { grid-column: 1 / -1; }
.buy .z-btn--line svg { width: 16px; height: 16px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); height: 48px; }
.qty button { width: 38px; height: 100%; font-size: 16px; }
.qty output { min-width: 22px; text-align: center; font-family: var(--f-en); font-size: 13px; }
.perks { margin-top: 22px; display: grid; gap: 8px; font-size: 13px; color: var(--ink-2); }
.perks div { display: flex; gap: 10px; align-items: center; }
.perks svg { width: 16px; height: 16px; flex: none; }
.perks .stock { color: var(--ok); }
.acc { margin-top: 26px; border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; padding: 14px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 13.5px; }
html[lang="en"] .acc summary { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; font-family: var(--f-en); font-weight: 300; font-size: 18px; transition: transform .25s; }
.acc details[open] summary::after { transform: rotate(45deg); }
.acc details p { color: var(--ink-2); font-size: 13.5px; padding-bottom: 10px; }
.sticky-buy {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 40; display: none; align-items: center; gap: 12px;
  padding: 10px var(--g) calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform .3s var(--ease);
}
.sticky-buy.show { transform: none; }
.sticky-buy__name { font-size: 13px; line-height: 1.3; }
.sticky-buy .z-btn { width: auto; flex: none; }

/* ---------- Bag drawer ---------- */
.scrim { position: fixed; inset: 0; z-index: 80; background: rgba(43, 6, 16, .18); opacity: 0; pointer-events: none; transition: opacity .3s; }
.scrim.show { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; bottom: 0; inset-inline-end: 0; z-index: 90; width: min(440px, 100vw);
  display: grid; grid-template-rows: auto 1fr auto; background: #fff; visibility: hidden;
  transform: translateX(-100%); transition: transform .4s var(--ease), visibility .4s;
}
html[dir="ltr"] .drawer { transform: translateX(100%); }
.drawer.open, html[dir="ltr"] .drawer.open { transform: none; visibility: visible; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.drawer__head h2 { font-size: 14px; }
html[lang="en"] .drawer__head h2 { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.drawer__body { overflow-y: auto; padding: 0 24px; }
.drawer__foot { display: grid; gap: 10px; padding: 18px 24px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.drawer__empty { display: grid; justify-items: center; gap: 18px; padding: 70px 10px; text-align: center; color: var(--ink-2); }
.drawer__empty svg { display: none; }
.drawer__empty .btn { width: auto; }
.line-item { display: grid; grid-template-columns: 74px 1fr auto; gap: 14px; padding-block: 16px; border-bottom: 1px solid var(--line); }
.line-item__img .ph { aspect-ratio: 2 / 3; }
.line-item h4 { font-size: 13px; font-weight: 500; line-height: 1.35; }
.line-item small { display: block; margin: 2px 0 8px; color: var(--ink-2); font-size: 12px; }
.line-item .qty { height: 32px; }
.line-item .qty button { width: 28px; }
.line-item__end { display: grid; justify-items: end; align-content: space-between; }
.rm { font-size: 12px; color: var(--ink-2); text-decoration: underline; }
.totals { display: flex; justify-content: space-between; font-size: 13px; }
.ship-bar { font-size: 12px; color: var(--ink-2); }
.ship-bar__track { height: 1px; margin-top: 8px; background: var(--line); }
.ship-bar__fill { height: 100%; background: var(--ink); transition: width .4s var(--ease); }

/* ---------- Size guide modal ---------- */
.modal { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 16px; background: rgba(43, 6, 16, .18); opacity: 0; pointer-events: none; transition: opacity .25s; }
.modal.open { opacity: 1; pointer-events: auto; }
.modal__box { position: relative; width: min(620px, 100%); max-height: 88vh; overflow: auto; padding: 34px clamp(18px, 4vw, 36px); background: #fff; }
.modal__close { position: absolute; top: 10px; inset-inline-end: 10px; }
.modal h2 { font-size: 15px; }
.table-wrap { overflow-x: auto; margin-block: 18px 12px; }
table { width: 100%; border-collapse: collapse; font-family: var(--f-en); font-size: 12.5px; }
th, td { padding: 10px 8px; text-align: center; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font-weight: 500; font-family: var(--f-body); }
tr.is-match td { background: var(--frame); }
.note { font-size: 12px; color: var(--ink-2); }
.finder { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.finder h3 { font-size: 14px; margin-bottom: 10px; }
.finder__row { display: flex; gap: 16px; align-items: end; flex-wrap: wrap; }
.finder__out { display: flex; align-items: center; gap: 14px; min-height: 48px; }
.finder__out .btn { width: auto; }
.finder__size { display: grid; line-height: 1.1; }
.finder__size small { color: var(--ink-2); font-size: 11px; }
.finder__size b { font-family: var(--f-display-en); font-size: 30px; font-weight: 700; }

/* ---------- Forms / checkout / simple pages ---------- */
.page-head { padding-bottom: 28px; }
.h-l, .h-xl { font-family: var(--f-display); font-weight: 700; font-size: clamp(30px, 4vw, 56px); line-height: 1.1; }
html[lang="en"] :is(.h-l, .h-xl) { text-transform: uppercase; line-height: .95; }
.h-m { font-size: 15px; font-weight: 500; }
.lead { color: var(--ink-2); max-width: 52ch; margin-top: 10px; }
.checkout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(24px, 5vw, 80px); padding-bottom: 12vh; }
.form { display: grid; gap: 18px; }
.form h2 { font-size: 14px; margin-top: 8px; }
.field { display: grid; gap: 6px; }
.field label, .field > span { font-size: 12.5px; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 44px; padding: 8px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; outline: none;
}
.field textarea { min-height: 80px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--ink); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-bottom-color: var(--err); }
.field__err { color: var(--err); font-size: 12px; min-height: 1em; }
.field__hint { color: var(--ink-3); font-size: 12px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.pay-opt { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--ink); }
.pay-opt input { accent-color: var(--ink); margin-top: 5px; }
.pay-opt small { display: block; color: var(--ink-2); }
.summary { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; padding: 24px; background: var(--frame); }
.summary h2 { font-size: 14px; margin-bottom: 6px; }
.summary .line-item { grid-template-columns: 56px 1fr auto; }
.summary__rows { display: grid; gap: 8px; margin-top: 16px; font-size: 13px; }
.summary__rows div { display: flex; justify-content: space-between; }
.summary__total { padding-top: 12px; margin-top: 4px; border-top: 1px solid var(--line); font-weight: 600; }
.success { display: grid; justify-items: center; gap: 16px; padding: 60px var(--g) 14vh; text-align: center; }
.success__mark { width: 60px; height: 80px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.hero__ctas .btn { width: auto; }
.about { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 80px); align-items: center; padding-bottom: 12vh; }
.about .ph { aspect-ratio: 4 / 5; }
.about .hero__ctas { justify-content: flex-start; }

/* ---------- Search ---------- */
.search { position: fixed; inset: 0; z-index: 96; background: #fff; overflow-y: auto; opacity: 0; pointer-events: none; transition: opacity .25s; }
.search.open { opacity: 1; pointer-events: auto; }
.search__inner { padding: 26px var(--g) 80px; }
.search__bar { display: flex; align-items: center; gap: 14px; border-bottom: 1px solid var(--ink); padding-bottom: 8px; }
.search__bar input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font-size: clamp(20px, 2.6vw, 30px); }
.search__bar input::-webkit-search-cancel-button { display: none; }
.search__hint { color: var(--ink-3); font-size: 12px; margin: 22px 0 10px; }
.search__grid { margin-top: 28px; }

/* ---------- Help & policy pages ---------- */
.doc { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); padding-bottom: 12vh; }
.doc-nav { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; display: grid; gap: 6px; }
.doc-nav a { font-size: 13px; color: var(--ink-2); }
.doc-nav a:hover, .doc-nav a.is-active { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }
.doc-body { max-width: 66ch; }
.doc-sec { padding-block: 24px; border-top: 1px solid var(--line); }
.doc-sec:first-child { border-top: 0; padding-top: 0; }
.doc-sec h2 { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.doc-sec p, .doc-answer p { color: var(--ink-2); line-height: 1.9; margin: 0 0 .8em; }
.doc-list { margin: 0; padding-inline-start: 1.2em; color: var(--ink-2); line-height: 1.9; }
.doc-table th, .doc-table td { text-align: start; white-space: normal; vertical-align: top; }
.doc-table td:first-child { white-space: nowrap; }
.doc-faq summary { font-size: 14px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: #fff; color: var(--ink-2); font-size: 13px; }
.ft-wrap { padding-inline: var(--g); }
.ft-main { padding-block: 64px 48px; }
.ft-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px clamp(24px, 4vw, 64px); align-items: start; }
.ft-logo { display: inline-block; line-height: 0; }
.ft-logo img { display: block; width: auto; height: auto; max-width: 100%; max-height: 40px; object-fit: contain; mix-blend-mode: multiply; }
.ft-tagline { margin: 18px 0 20px; max-width: 32ch; line-height: 1.8; }
.ft-social { list-style: none; display: flex; gap: 8px; margin: 0; padding: 0; }
.ft-social a, .ft-social span { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); color: var(--ink); transition: background .2s, color .2s; }
.ft-social a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.ft-social .is-unset { opacity: .4; border-style: dashed; cursor: help; }
.ft-h { margin: 0 0 14px; font-size: 13px; font-weight: 600; color: var(--ink); }
html[lang="en"] .ft-h { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.ft-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ft-col a { color: var(--ink-2); transition: color .2s; }
.ft-col a:hover { color: var(--ink); }
.ft-bar { background: var(--ink); color: #fff; }
.ft-bar__row { display: flex; align-items: center; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; padding-block: 14px; font-size: 12px; }
.ft-powered { color: rgba(255, 255, 255, .6); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 24px; left: 50%; z-index: 99; transform: translate(-50%, 16px);
  padding: 11px 18px; background: var(--ink); color: #fff; font-size: 13px; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .z-grid, .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ft-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  :root { --top: 96px; --header-h: 60px; }
  .zh { gap: 16px; padding: 14px var(--g) 12px; align-items: center; }
  .zh-logo img { height: 24px; }
  .zh-end, .zh.is-scrolled .zh-end { display: flex; align-items: center; gap: 16px; }
  .zh-search, .zh.is-scrolled .zh-search { min-width: 0; border: 0; padding: 0; }
  .zh-links, .zh.is-scrolled .zh-links { display: flex; gap: 16px; }
  .zh-links .zh-link:not(#cartBtn) { display: none; }   /* wishlist, help, language live in the menu */
  body[data-page="home"] .zh:not(.is-scrolled) .zh-logo { opacity: 1; pointer-events: auto; }
  .z-hero { height: 100vh; height: 100svh; min-height: 520px; }   /* the opening photo fills the whole phone screen */
  .z-hero__caption { bottom: calc(92vw / 2.99 + 7vh); }
  .z-story { display: block; padding: 10vh 0 2vh; }
  .z-story__text, .z-story__pair { padding-inline: var(--g); }
  .z-story__text { padding-top: 28px !important; }
  .z-story__pair { margin-top: 28px; }
  .z-grid, .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 6px; }
  .z-section { padding: 8vh var(--g) 4vh; }
  .z-index { padding: 8vh var(--g); }
  .z-info { grid-template-columns: 1fr; gap: 6px; }
  .pdp { grid-template-columns: 1fr; padding-bottom: 110px; }
  .gallery { margin-inline: calc(var(--g) * -1); }
  .gallery__track { grid-auto-flow: column; grid-auto-columns: 100%; grid-template-columns: none; gap: 0; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .gallery__track::-webkit-scrollbar { display: none; }
  .gallery__track .slide { scroll-snap-align: start; grid-column: auto !important; }
  .slide > .ph, .slide:first-child > .ph { aspect-ratio: 3 / 4; }
  .gallery__dots { display: flex; }
  .info { position: static; }
  .sticky-buy { display: flex; }
  .checkout { grid-template-columns: 1fr; }
  .summary { position: static; order: -1; }
  .about { grid-template-columns: 1fr; }
  .doc { grid-template-columns: 1fr; gap: 20px; }
  .doc-nav { position: static; display: flex; flex-wrap: wrap; gap: 6px 16px; }
  .ft-main { padding-block: 48px 36px; }
  .ft-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
  .ft-brand { grid-column: 1 / -1; }
  .ft-col a { display: inline-block; padding-block: 4px; }
  .ft-bar__row { justify-content: center; text-align: center; }
}
@media (max-width: 420px) {
  .row2 { grid-template-columns: 1fr; }
}
@media (max-width: 360px) {
  .ft-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- Real product photography ---------- */
.card__media > .ph, .slide > .ph, .slide:first-child > .ph, .line-item__img .ph { aspect-ratio: 3 / 4; }   /* photos are shot 3:4 */
.ph img { object-position: 50% 20%; }
.ph__alt { position: absolute; inset: 0; opacity: 0; transition: opacity .35s ease; }
@media (hover: hover) and (pointer: fine) { .card:hover .ph__alt { opacity: 1; } }
.ph--hero img { object-position: 50% 18%; }
.gallery__track .slide:only-child { grid-column: 1 / -1; max-width: 720px; }
.sizes { grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); }
:root { --top: 176px; } @media (max-width: 860px) { :root { --top: 96px; } }
.ph--hero img { object-position: 50% 4%; } /* keep the face in frame on wide screens */

/* =========================================================
   Mega menu — drops from the header; big category type, a photo that follows your hover
   ========================================================= */
.zh-menu path { transform-box: fill-box; transform-origin: center; transition: transform .45s var(--ease); }
body.menu-open .zh-menu .mb1 { transform: translateY(4px) rotate(14deg); }
body.menu-open .zh-menu .mb2 { transform: translateY(-4px) rotate(-14deg); }
body.menu-open .zh { background: #fff; box-shadow: none; }
body.menu-open .zh .zh-logo { opacity: 1; pointer-events: auto; }
.mscrim { z-index: 48; }
.mnav, html[dir="ltr"] .mnav {
  position: fixed; inset: 0 0 auto 0; z-index: 49; width: auto; height: auto; max-height: 100svh; overflow-y: auto;
  display: block; padding: calc(var(--header-h) + 40px) var(--g) 30px; background: #fff;
  border-bottom: 1px solid var(--line); transform: none; visibility: hidden;
  clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease), visibility .7s;
}
.mnav.open, html[dir="ltr"] .mnav.open { clip-path: inset(0 0 0 0); visibility: visible; transform: none; }
.mm { display: grid; grid-template-columns: 1.5fr .75fr .75fr minmax(220px, .85fr); gap: 36px clamp(24px, 4vw, 72px); align-items: start; }
.mm__col { display: grid; justify-items: start; align-content: start; gap: 2px; }
.mm__label { display: block; margin-bottom: 14px; font-size: 12px; color: var(--ink-3); }
html[lang="en"] .mm__label { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; }
.mm__link { display: inline-flex; align-items: flex-start; gap: 6px; color: var(--ink); transition: opacity .25s, transform .35s var(--ease); }
.mm__link span { font-size: 18px; line-height: 1.7; }
html[lang="en"] .mm__link span { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; line-height: 2.2; }
.mm__link--big span { font-family: var(--f-display); font-weight: 700; font-size: clamp(30px, 3.3vw, 54px); line-height: 1.12; }
html[lang="en"] .mm__link--big span { font-size: clamp(34px, 3.8vw, 62px); line-height: 1; letter-spacing: -.005em; }
.mm__link sup { position: relative; top: .5em; font-family: var(--f-en); font-size: 11px; color: var(--ink-3); }
.mm__col:hover .mm__link:not(:hover) { opacity: .3; }
.mm__link:hover { transform: translateX(-6px); }
html[dir="ltr"] .mm__link:hover { transform: translateX(6px); }
.mm__link.is-active span { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.mm__small { font-size: 14px; line-height: 2; color: var(--ink-2); text-align: start; }
html[lang="en"] .mm__small { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; line-height: 2.4; }
.mm__small:hover { color: var(--ink); }
.mm__lang { margin-top: 10px; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.mm__feature { display: grid; gap: 10px; }
.mm__img { display: block; aspect-ratio: 3 / 4; overflow: hidden; background: var(--frame); }
.mm__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; transition: opacity .16s ease, transform 1.4s var(--ease); }
.mm__img img.swap { opacity: 0; }
.mm__feature:hover .mm__img img { transform: scale(1.04); }
.mm__cap { font-size: 13px; color: var(--ink); }
html[lang="en"] .mm__cap { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.mnav__note { margin: 34px 0 0; font-size: 12px; color: var(--ink-3); }
/* opening choreography */
.mnav.open :is(.mm__link, .mm__small, .mm__label) { animation: mmIn .7s var(--ease) both; animation-delay: calc(var(--i, 0) * 32ms + 140ms); }
.mnav.open .mm__feature { animation: mmImg 1.1s .18s var(--ease) both; }
@keyframes mmIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes mmImg { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@media (max-width: 1024px) {
  .mm { grid-template-columns: 1.4fr 1fr 1fr; }
  .mm__feature { display: none; }
}
@media (max-width: 860px) {
  .mnav, html[dir="ltr"] .mnav { inset: 0; height: 100%; max-height: none; padding: calc(var(--header-h) + 22px) var(--g) calc(28px + env(safe-area-inset-bottom)); }
  .mm { grid-template-columns: 1fr 1fr; gap: 30px 20px; }
  .mm__col--shop { grid-column: 1 / -1; }
  .mm__link--big span { font-size: 34px; }
  html[lang="en"] .mm__link--big span { font-size: 38px; }
}

/* =========================================================
   Home motion — one calm intro, then reveals tied to scrolling
   ========================================================= */
.ln { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.ln > span { display: block; }

/* Hero intro (runs once the loader lifts) */
.z-hero__img { will-change: transform; }
.is-ready .z-hero__img img { animation: heroZoom 2.6s cubic-bezier(.2, .7, .2, 1) both; }
.is-ready .z-hero__logo { animation: logoRise 1.5s .25s var(--ease) both; }
.z-hero .ln > span { transform: translateY(105%); }
.is-ready .z-hero .ln > span { animation: lnUp 1s calc(.7s + var(--l, 0) * .1s) var(--ease) both; }
.z-hero__caption :is(.z-eyebrow, .z-link) { opacity: 0; }
.is-ready .z-hero__caption :is(.z-eyebrow, .z-link) { animation: fadeUp .9s 1s ease both; }
@keyframes heroZoom { from { transform: scale(1.12); } to { transform: none; } }
@keyframes logoRise { from { clip-path: inset(100% 0 0 0); transform: translateY(40px); } to { clip-path: inset(0 0 0 0); transform: none; } }
@keyframes lnUp { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Scroll reveals: the block itself stays put, its parts arrive in order */
[data-reveal] { opacity: 1; transform: none; }
[data-reveal] .ln > span { transform: translateY(105%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--l, 0) * 90ms + 120ms); }
[data-reveal].is-in .ln > span { transform: none; }
[data-reveal] .z-story__main .ph { clip-path: inset(0 0 100% 0); transition: clip-path 1.5s var(--ease); }
[data-reveal].is-in .z-story__main .ph { clip-path: inset(0 0 0 0); }
.z-story__main .ph img { transform: translate3d(0, var(--py, 0), 0) scale(1.12); }
[data-reveal] :is(.z-eyebrow, .z-story__lead, .z-story__text .z-link, .z-head) { opacity: 0; transform: translateY(14px); transition: opacity .9s ease .35s, transform .9s var(--ease) .35s; }
[data-reveal].is-in :is(.z-eyebrow, .z-story__lead, .z-story__text .z-link, .z-head) { opacity: 1; transform: none; }
[data-reveal] :is(.card, .z-index__item, .z-info p) { opacity: 0; transform: translateY(40px); transition: opacity .9s ease, transform 1.1s var(--ease); transition-delay: calc(var(--i, 0) * 80ms + 220ms); }
[data-reveal].is-in :is(.card, .z-index__item, .z-info p) { opacity: 1; transform: none; }
/* Testimonials: heading rises, the two ribbons slide in from opposite sides */
[data-reveal] .z-voices__head { opacity: 0; transform: translateY(24px); transition: opacity .9s ease .1s, transform 1s var(--ease) .1s; }
[data-reveal] .zv-row { opacity: 0; transform: translateX(80px); transition: opacity 1s ease .3s, transform 1.3s var(--ease) .3s; }
[data-reveal] .zv-row--b { transform: translateX(-80px); transition-delay: .45s; }
[data-reveal].is-in :is(.z-voices__head, .zv-row) { opacity: 1; transform: none; }
/* Scrolling back up: blocks re-enter from above, mirroring the way down */
[data-reveal][data-from="top"] .ln > span { transform: translateY(-105%); }
[data-reveal][data-from="top"] .z-story__main .ph { clip-path: inset(100% 0 0 0); }
[data-reveal][data-from="top"] :is(.z-eyebrow, .z-story__lead, .z-story__text .z-link, .z-head, .z-voices__head) { transform: translateY(-14px); }
[data-reveal][data-from="top"] :is(.card, .z-index__item, .z-info p) { transform: translateY(-40px); }
[data-reveal][data-from="top"].is-in :is(.ln > span, .z-eyebrow, .z-story__lead, .z-story__text .z-link, .z-head, .z-voices__head, .card, .z-index__item, .z-info p) { transform: none; }
[data-reveal][data-from="top"].is-in .z-story__main .ph { clip-path: inset(0 0 0 0); }

/* Card hover: photo eases in a touch */
.card__media .ph img { transition: transform 1.2s var(--ease), opacity .35s ease; }
@media (hover: hover) and (pointer: fine) { .card:hover .card__media .ph img { transform: scale(1.035); } }

/* Category hover preview that follows the pointer */
.zi-preview {
  position: fixed; top: 0; left: 0; z-index: 30; width: 220px; aspect-ratio: 3 / 4; overflow: hidden; pointer-events: none;
  opacity: 0; clip-path: inset(50% 0 50% 0); transition: opacity .3s ease, clip-path .5s var(--ease);
}
.zi-preview.show { opacity: 1; clip-path: inset(0 0 0 0); }
.zi-preview img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.z-index { position: relative; z-index: 31; }
.z-index__name { transition: color .3s, transform .5s var(--ease); display: inline-block; }
.z-index:hover .z-index__item:not(:hover) .z-index__name { color: var(--line); }

@media (prefers-reduced-motion: reduce) {
  .z-hero .ln > span, [data-reveal] .ln > span { transform: none; }
  .z-hero__caption :is(.z-eyebrow, .z-link), [data-reveal] :is(.z-eyebrow, .z-story__lead, .z-story__text .z-link, .z-head, .card, .z-index__item, .z-info p) { opacity: 1; transform: none; }
  [data-reveal] .z-story__main .ph { clip-path: none; }
  [data-reveal] :is(.z-voices__head, .zv-row) { opacity: 1; transform: none; }
  .zi-preview { display: none; }
}

/* Header bag acknowledges an add (shared by the bag animation and the reduced-motion path) */
#cartBtn.is-pulse { animation: bagPulse .5s ease; }
@keyframes bagPulse { 35% { transform: scale(1.12); } 100% { transform: none; } }

/* =========================================================
   Checkout — payment options, InstaPay, receipt upload
   ========================================================= */
.pay { display: grid; gap: 8px; }
.pay-opt { cursor: pointer; border-color: var(--line); transition: border-color .2s, background .2s; }
.pay-opt:has(input:checked) { border-color: var(--ink); background: #fff; box-shadow: inset 0 0 0 1px var(--ink); }
.pay-opt.is-off { cursor: not-allowed; opacity: .55; }
.ip { display: grid; gap: 14px; }
.ip__card { padding: 22px; background: #faf5f2; border: 1px solid var(--line); }
.ip__brand { margin: 0; font-family: var(--f-display-en); font-weight: 700; letter-spacing: .18em; color: var(--brand); }
.ip__sub { margin: 2px 0 16px; font-size: 12px; color: var(--ink-2); }
.ip__amount { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0; border-block: 1px solid var(--line); margin-bottom: 12px; }
.ip__amount b { font-family: var(--f-en); font-size: 20px; color: var(--brand); }
.ip__row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; padding: 6px 0; font-size: 13px; }
.ip__row > span:first-child { min-width: 9em; color: var(--ink-2); }
.ip__row code { font-family: var(--f-en); font-size: 14px; background: #fff; padding: 3px 8px; border: 1px solid var(--line); }
.ip__steps { margin: 12px 0 0; padding-inline-start: 1.2em; font-size: 13px; color: var(--ink-2); line-height: 1.9; }
.up h3 { font-size: 14px; margin-bottom: 4px; }
.up__drop { display: grid; justify-items: center; gap: 4px; padding: 22px 16px; border: 1px dashed var(--ink-3); text-align: center; cursor: pointer; transition: border-color .2s, background .2s; }
.up__drop:hover, .up__drop:focus-within { border-color: var(--ink); background: #faf5f2; }
.up__drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.up__drop span { font-size: 13.5px; text-decoration: underline; text-underline-offset: 4px; }
.up__drop small { font-size: 12px; color: var(--ink-3); }
.up__file { display: flex; gap: 14px; align-items: center; padding: 12px; border: 1px solid var(--line); }
.up__file img, .up__pdf { width: 64px; height: 84px; object-fit: cover; flex: none; background: var(--frame); }
.up__pdf { display: grid; place-items: center; font-family: var(--f-en); font-size: 12px; font-weight: 600; color: var(--brand); }
.up__meta { display: grid; gap: 2px; min-width: 0; font-size: 13px; }
.up__meta b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up__meta small { color: var(--ink-3); }
.up__acts { display: flex; gap: 16px; margin-top: 4px; }
.up__bar { height: 2px; background: var(--line); margin-top: 10px; }
.up__bar i { display: block; height: 100%; width: 0; background: var(--ink); transition: width .2s; }
#coSubmit:disabled { opacity: .6; cursor: progress; }

/* Order success */
.success--order { max-width: 720px; margin-inline: auto; }
.okd { width: 100%; margin: 10px 0 18px; border-top: 1px solid var(--line); text-align: start; }
.okd > div { display: grid; grid-template-columns: 9em 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.okd dt { color: var(--ink-2); }
.okd dd { margin: 0; }
.okd__total dd { font-weight: 600; font-family: var(--f-en); }

/* =========================================================
   Branded order receipt — screen, A4 print, 80mm thermal print
   ========================================================= */
.rc-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; max-width: 860px; margin: 0 auto 18px; }
.rc-tools .z-btn { width: auto; }
.rc-tools .note { flex-basis: 100%; margin: 0; }
.rc-tools__fmt { display: flex; border: 1px solid var(--ink); }
.rc-tools__fmt a { padding: 0 14px; line-height: 46px; font-family: var(--f-en); font-size: 12px; }
.rc-tools__fmt a.is-active { background: var(--ink); color: #fff; }
.rc { max-width: 860px; margin: 0 auto 12vh; padding: 56px 60px; background: #fff; border: 1px solid var(--line); color: #2b0610; font-size: 13.5px; line-height: 1.6; }
.rc__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding-bottom: 22px; border-bottom: 2px solid var(--brand); }
.rc__logo { height: 52px; width: auto; mix-blend-mode: multiply; }
.rc__title { text-align: end; }
.rc__title h1 { font-family: var(--f-display); font-weight: 700; font-size: 24px; color: var(--brand); }
html[lang="en"] .rc__title h1 { text-transform: uppercase; letter-spacing: .04em; }
.rc__title p { margin: 2px 0 0; font-size: 11.5px; color: var(--ink-3); }
.rc__meta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 18px 0; }
.rc__meta span, .rc__pay span, .rc__sum span:first-child { color: var(--ink-2); }
.rc__meta div { display: grid; }
.rc__sec { padding: 16px 0; border-top: 1px solid var(--line); }
.rc__sec h2 { margin-bottom: 10px; font-size: 13px; font-weight: 600; color: var(--brand); }
html[lang="en"] .rc__sec h2 { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.rc__sec p { margin: 0 0 2px; }
.rc__ltr { text-align: start; unicode-bidi: plaintext; }
.rc__muted { color: var(--ink-2); }
.rc__items { width: 100%; border-collapse: collapse; font-family: var(--f-body); font-size: 13px; }
.rc__items th, .rc__items td { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: start; white-space: normal; }
.rc__items th { font-weight: 500; color: var(--ink-2); font-size: 12px; }
.rc__items td:nth-child(n+3) { white-space: nowrap; }
.rc__sum div, .rc__pay div { display: flex; justify-content: space-between; gap: 16px; padding: 3px 0; }
.rc__grand { margin-top: 8px; padding-top: 10px !important; border-top: 2px solid var(--brand); font-size: 17px; font-weight: 700; color: var(--brand); }
.rc__pending { padding: 1px 8px; border: 1px solid var(--brand); color: var(--brand); }
html[lang="en"] .rc__pending { text-transform: uppercase; font-size: 11.5px; letter-spacing: .04em; }
.rc__foot { padding-top: 22px; border-top: 1px solid var(--line); text-align: center; }
.rc__foot p { margin: 0; }
.rc__tag { margin-top: 4px !important; font-family: var(--f-display-en); letter-spacing: .06em; color: var(--brand); }
/* 80mm thermal: one narrow column, each line item stacked with its labels */
.rc--thermal { max-width: 80mm; padding: 14px 12px; font-size: 11.5px; }
.rc--thermal .rc__head { flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.rc--thermal .rc__title { text-align: center; }
.rc--thermal .rc__logo { height: 34px; }
.rc--thermal .rc__title h1 { font-size: 17px; }
.rc--thermal .rc__meta { grid-template-columns: 1fr; gap: 6px; }
.rc--thermal .rc__items thead { display: none; }
.rc--thermal .rc__items tr { display: grid; grid-template-columns: 1fr 1fr; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.rc--thermal .rc__items td { padding: 1px 0; border: 0; font-size: 11px; }
.rc--thermal .rc__items td[data-l]::before { content: attr(data-l) ": "; color: var(--ink-2); }
.rc--thermal .rc__pname { grid-column: 1 / -1; font-weight: 600; }
.rc--thermal .rc__lt { grid-column: 1 / -1; text-align: end !important; font-weight: 600; }
.rc--thermal .rc__grand { font-size: 14px; }

@page { size: A4; margin: 14mm; }
@page thermal { size: 80mm auto; margin: 3mm; }
@media print {
  html, body { background: #fff !important; }
  body { padding: 0 !important; }
  .zh, .footer, .mnav, .mscrim, .toast, .splash, .drawer, .scrim, .search, .modal, .sticky-buy, .zi-preview, .bagfx, [data-noprint] { display: none !important; }
  #app { padding: 0 !important; min-height: 0; }
  .rc { max-width: none; margin: 0; padding: 0; border: 0; color: #000; }
  .rc, .rc * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .rc__items tr { break-inside: avoid; }
  body.print-thermal .rc { page: thermal; width: 74mm; }
}
.ip__open { margin: 4px 0 12px; }
.ip__test { margin: 12px 0 0; padding: 10px 12px; border: 1px dashed var(--brand); font-size: 12.5px; color: var(--brand); background: #fff; }

/* =========================================================
   Order success — top-view thermal printer
   The printer sits slot-up at the bottom; the paper rises out of the slot header-first.
   ========================================================= */
.pr { --pw: min(400px, 90vw); --ph: calc(var(--pw) * .62); --sy: calc(var(--ph) * .17); --paw: calc(var(--pw) * .66);
  display: grid; justify-items: center; max-width: 760px; margin-inline: auto; padding: 0 var(--g) 10vh; }
.pr__head { display: grid; justify-items: center; gap: 10px; margin-bottom: 40px; text-align: center; transition: opacity .9s ease, transform .9s var(--ease); }
.pr__head .lead { margin: 0; }
.pr__head .hero__ctas { margin-top: 8px; }
.pr.is-armed:not(.is-done) .pr__head { opacity: 0; transform: translateY(-12px); pointer-events: none; }

.pr__stage { position: relative; width: var(--pw); height: calc(var(--paper, 640px) + var(--ph) - var(--sy) + 30px); }

/* printer body — lit from the top-left, resting on the page */
.pr__printer {
  position: absolute; inset: auto 0 0 0; height: var(--ph); border-radius: 30px; z-index: 1;
  background: radial-gradient(130% 150% at 18% 0%, #fffaf7 0%, #f3e7e2 52%, #e6d4ce 100%);
  box-shadow: inset 0 1px 0 #fff, inset 0 -3px 0 rgba(43, 6, 16, .07), 0 1px 2px rgba(43, 6, 16, .16),
              0 30px 54px -28px rgba(43, 6, 16, .5), 0 12px 20px -14px rgba(43, 6, 16, .3);
  transition: transform .2s ease;
}
.pr__printer::after { content: ""; position: absolute; inset: auto 20% 0; height: 4px; border-radius: 4px 4px 0 0; background: var(--brand); opacity: .9; }
.pr__mouth { position: absolute; inset-inline: 11%; top: calc(var(--sy) - 7px); height: 14px; z-index: 0; }
.pr__slot { position: absolute; inset: 3px 0; border-radius: 6px; background: #1c0a10;
  box-shadow: inset 0 3px 4px rgba(0, 0, 0, .65), inset 0 -1px 0 rgba(255, 255, 255, .08), 0 1px 0 rgba(255, 255, 255, .85); }
.pr__cutter { position: absolute; inset-inline: -2%; top: 0; height: 4px; border-radius: 2px; z-index: 4;
  background: linear-gradient(180deg, #f4f0ef, #b9b0b1 60%, #8f8587); box-shadow: 0 1px 1px rgba(0, 0, 0, .25); }
.pr__lid { position: absolute; inset-inline: 7%; top: calc(var(--sy) + 18px); bottom: 27%; border-radius: 18px;
  background: linear-gradient(165deg, #fdf8f5, #efe2dc); box-shadow: inset 0 0 0 1px rgba(43, 6, 16, .07), inset 0 1px 0 #fff, 0 1px 0 rgba(255, 255, 255, .6); }
.pr__mark { position: absolute; left: 50%; top: 50%; width: 34%; height: auto; transform: translate(-50%, -50%); opacity: .2; mix-blend-mode: multiply; }
.pr__notch { position: absolute; left: 50%; bottom: -1px; width: 34px; height: 13px; transform: translateX(-50%); border-radius: 34px 34px 0 0;
  background: #e9d9d3; box-shadow: inset 0 2px 3px rgba(43, 6, 16, .18); }
.pr__panel { position: absolute; inset-inline: 9%; bottom: 9%; height: 12%; display: flex; align-items: center; justify-content: flex-end; gap: 12px; direction: ltr; }
.pr__led { width: 7px; height: 7px; border-radius: 50%; background: #cdbbbd; box-shadow: inset 0 1px 1px rgba(0, 0, 0, .2); transition: background .3s, box-shadow .3s; }
.pr__btn { width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(160deg, #fffaf7, #eadbd5); box-shadow: inset 0 0 0 1px rgba(43, 6, 16, .1), 0 1px 2px rgba(43, 6, 16, .2); }
.pr.is-on .pr__led, .pr.is-done .pr__led { background: var(--brand); box-shadow: 0 0 6px rgba(101, 10, 37, .55); }
.pr.is-printing .pr__led { animation: prLed .36s steps(2) infinite; }
.pr.is-printing .pr__printer { animation: prHum 90ms linear infinite; }
.pr.is-cut .pr__printer { animation: prKick .22s ease; }
@keyframes prLed { 50% { background: #cdbbbd; box-shadow: none; } }
@keyframes prHum { 50% { transform: translate(.3px, -.3px); } }
@keyframes prKick { 40% { transform: translateY(1.5px); } }

/* paper path: everything below the slot line is inside the printer (clipped) */
.pr__feed { position: absolute; z-index: 2; left: 50%; bottom: calc(var(--ph) - var(--sy)); width: calc(var(--paw) + 40px); height: var(--paper, 640px);
  padding-inline: 20px; overflow: hidden; transform: translateX(-50%);
  filter: drop-shadow(0 10px 12px rgba(43, 6, 16, .16)) drop-shadow(0 1px 1px rgba(43, 6, 16, .12));
  transition: transform .55s var(--ease); }
.pr__feed::after { /* paper curling up out of the slot catches less light */
  content: ""; position: absolute; inset-inline: 20px; bottom: 0; height: 30px; pointer-events: none;
  background: linear-gradient(to top, rgba(28, 10, 16, .26), rgba(28, 10, 16, 0)); transition: opacity .5s; }
.pr__paper { --z: 5px; background: #fffefc; transition: transform 70ms cubic-bezier(.3, .7, .3, 1); will-change: transform;
  -webkit-mask: conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / calc(2 * var(--z)) 51% repeat-x,
                conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(2 * var(--z)) 51% repeat-x;
          mask: conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / calc(2 * var(--z)) 51% repeat-x,
                conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(2 * var(--z)) 51% repeat-x; }
/* the cutter fires: the free receipt is pushed a few millimetres clear of the slot */
.pr.is-cut .pr__feed, .pr.is-done .pr__feed { transform: translateX(-50%) translateY(-16px); }
.pr.is-cut .pr__feed::after, .pr.is-done .pr__feed::after { opacity: 0; }

/* thermal print: black ink, monospace, dashed rules */
.tr { padding: 26px 18px 30px; color: #141012; font-family: "IBM Plex Mono", "IBM Plex Sans Arabic", ui-monospace, monospace; font-size: 12.5px; line-height: 1.55; }
html[lang="ar"] .tr { font-family: "IBM Plex Sans Arabic", "IBM Plex Mono", ui-monospace, monospace; }
.tr p { margin: 0; }
.tr__logo { display: block; width: 62%; height: auto; margin: 4px auto 8px; filter: grayscale(1) brightness(0); mix-blend-mode: multiply; }
.tr__center { text-align: center; }
.tr__small { font-size: 11px; color: #3a3336; }
.tr__label { margin-bottom: 4px !important; font-weight: 600; letter-spacing: .04em; }
.tr__rule { height: 0; margin: 10px 0 !important; border-top: 1px dashed #2a2326; }
.tr__rule--solid { border-top: 3px double #2a2326; }
.tr__row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.tr__row > span:last-child { text-align: end; white-space: nowrap; }
.tr__item { padding: 3px 0; }
.tr__total { font-size: 16px; font-weight: 600; }
.tr__pending { padding: 0 4px; border: 1px solid #141012; font-weight: 600; white-space: normal; }
.tr__tag { margin-top: 3px !important; font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 11px; letter-spacing: .02em; }
.tr__end { margin-top: 10px !important; letter-spacing: .4em; }

@media (max-width: 520px) {
  .pr { --pw: 92vw; --paw: 74vw; }
  .tr { font-size: 11.5px; padding: 22px 14px 26px; }
  .tr__total { font-size: 14.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .pr__head { opacity: 1 !important; transform: none !important; }
}
.pr__feed { display: flex; flex-direction: column; justify-content: flex-end; } /* paper is anchored to the slot line */

/* =========================================================
   TRACK ORDER — the ribbon journey
   ========================================================= */
.tk { --ivory: #f8f3ee; --blush: #f6e7e5; --satin: #650a25; padding-bottom: 110px; }

/* --- Find --- */
.tk-find { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 110px); align-items: center; }
.tk-find__title { margin: 6px 0 16px; font-family: var(--f-display); font-weight: 700; color: var(--ink); font-size: clamp(46px, 6vw, 98px); line-height: 1.04; }
html[lang="en"] .tk-find__title { text-transform: uppercase; font-size: clamp(54px, 7.2vw, 124px); line-height: .9; }
.tk-find__title .ln > span { animation: tkRise 1s var(--ease) both; animation-delay: calc(var(--l) * 110ms + 120ms); }
.tk-form { display: grid; gap: 22px; max-width: 440px; margin-top: 36px; }
.tk-form .z-btn { margin-top: 4px; }
.tk-form .note { margin: 0; }
.tk-form__err { min-height: 1.5em; margin: -6px 0 0; color: var(--err); font-size: 13px; }
.tk-form__local { padding-top: 14px; border-top: 1px solid var(--line); color: var(--ink-3); }
.tk-form.is-shake { animation: tkShake .42s ease; }
.tk-recent { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; max-width: 440px; margin-top: 30px; }
.tk-recent .z-eyebrow { width: 100%; margin: 0; }
.tk-recent__no { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 12.5px; padding: 2px 0; border-bottom: 1px solid var(--line); transition: border-color .2s; }
.tk-recent__no:hover { border-color: var(--ink); }
.tk-find__scene { position: relative; margin: 0; aspect-ratio: 4 / 5; display: grid; place-items: center; padding: 10% 11% 22%; background: var(--ivory); overflow: hidden; }
.tk-find__scene::before { content: ""; position: absolute; inset: 22px; border: 1px solid rgba(101, 10, 37, .12); pointer-events: none; }
.tk-find__scene .pk { max-width: 440px; }
.tk-route { position: absolute; inset-inline: 38px; bottom: 36px; display: flex; justify-content: space-between; gap: 8px; padding-top: 16px; border-top: 1px solid rgba(101, 10, 37, .25); }
.tk-route span { position: relative; font-size: 11px; color: var(--ink-2); line-height: 1.35; max-width: 9ch; animation: tkFade .8s ease both; animation-delay: calc(var(--i) * 90ms + 500ms); }
.tk-route span::before { content: ""; position: absolute; top: -20px; inset-inline-start: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--satin); }
html[lang="en"] .tk-route span { font-size: 10px; text-transform: uppercase; letter-spacing: .05em; }

/* --- Parcel illustration --- */
.pk { display: block; width: 100%; height: auto; overflow: visible; }
.pk * { transform-box: fill-box; }
.pk-shadow { fill: rgba(43, 6, 16, .08); transition: transform .8s var(--ease); transform-origin: center; }
.pk-inside { fill: #ead7d0; stroke: var(--ink); stroke-width: 1.1; stroke-linejoin: round; }
.pk-front, .pk-lid__top { fill: #fbf7f3; stroke: var(--ink); stroke-width: 1.1; }
.pk-garment rect { fill: #f2d2d1; stroke: var(--ink); stroke-width: 1.1; }
.pk-garment circle { fill: var(--ink); }
.pk-line { fill: none; stroke: var(--ink); stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; }
.pk-tissue path { fill: rgba(255, 255, 255, .94); stroke: #cfbdb7; stroke-width: 1; stroke-linejoin: round; }
.pk-band { fill: var(--satin); }
.pk-bow { fill: none; stroke: var(--satin); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.pk-string { fill: none; stroke: var(--ink-2); stroke-width: 1; }
.pk-card { fill: #fff; stroke: var(--ink); stroke-width: 1; stroke-linejoin: round; }
.pk-hole { fill: none; stroke: var(--ink); stroke-width: 1; }
.pk-seal circle { fill: var(--satin); }
.pk-seal text { fill: #fbf7f3; font: 700 10px var(--f-display-en); text-anchor: middle; }
.pk-heart { fill: var(--satin); }
.pk-road { stroke: var(--ink-3); stroke-width: 1.2; stroke-dasharray: 2 8; stroke-linecap: round; }
.pk-speed line { stroke: var(--ink-3); stroke-width: 1.3; stroke-linecap: round; }
.pk-speed { transform-box: view-box; transform-origin: 160px 0; }
html[dir="ltr"] .pk-speed { transform: scaleX(-1); } /* trails behind the direction of travel */
/* resting state: an empty open box */
.pk-garment, .pk-tissue, .pk-lid, .pk-band--front, .pk-seal, .pk-heart, .pk-road, .pk-speed { transition: transform .9s var(--ease), opacity .6s ease; }
.pk-garment { opacity: 0; transform: translateY(-46px); }
.pk-tissue { opacity: 0; transform: scaleY(.2); transform-origin: 50% 100%; }
.pk-lid { opacity: 0; transform: translateY(-70px); }
.pk-band--front { transform: scaleY(0); transform-origin: 50% 0; }
.pk-bow { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .9s .45s var(--ease); }
.pk-seal { opacity: 0; transform: scale(1.8); transform-origin: center; }
.pk-heart { opacity: 0; transform: translateY(16px) scale(.6); transform-origin: center; }
.pk-road, .pk-speed { opacity: 0; }
/* 1 · placed: the garment arrives, hovering over its box */
.pk--placed .pk-garment { opacity: 1; transform: translateY(-20px); }
/* 2 · paid: the wax seal stamps the tag */
.pk--paid .pk-seal { opacity: 1; transform: none; transition: transform .45s cubic-bezier(.3, 1.6, .5, 1), opacity .2s; }
/* 3 · preparing: settles into the box, tissue folds over */
.pk--preparing .pk-garment { transform: none; }
.pk--preparing .pk-tissue { opacity: 1; transform: none; }
/* 4 · packed: lid down, satin ribbon tied */
.pk--packed .pk-lid { opacity: 1; transform: none; }
.pk--packed .pk-band--front { transform: none; transition-delay: .3s; }
.pk--packed .pk-bow { stroke-dashoffset: 0; }
.pk--packed .pk-garment, .pk--packed .pk-tissue { opacity: 0; transition-delay: .5s; }
/* 5 · on its way */
.pk--shipped .pk-road, .pk--shipped .pk-speed { opacity: 1; }
.pk--shipped .pk-road { animation: tkRoad .9s linear infinite; }
.pk--shipped .pk-move { animation: tkSway 1.8s ease-in-out infinite; transform-box: view-box; transform-origin: 160px 230px; }
.pk--shipped .pk-speed line { animation: tkSpeed 1.2s ease-in-out infinite; }
.pk--shipped .pk-speed line:nth-child(2) { animation-delay: .2s; }
.pk--shipped .pk-speed line:nth-child(3) { animation-delay: .4s; }
html[dir="ltr"] .pk--shipped .pk-road { animation-direction: reverse; }
/* 6 · delivered: the lid lifts, tissue and a heart inside */
.pk--delivered .pk-road, .pk--delivered .pk-speed { opacity: 0; animation: none; }
.pk--delivered .pk-move { animation: none; }
.pk--delivered .pk-lid { transform: translate(-8px, -30px) rotate(-8deg); transform-origin: 0 100%; }
.pk--delivered .pk-tissue { opacity: 1; transform: none; transition-delay: .25s; }
.pk--delivered .pk-heart { opacity: 1; transform: translateY(-4px); transition-delay: .55s; }
.pk--delivered.is-settled .pk-heart { animation: tkBeat 2.6s ease-in-out 1s infinite; }
/* stopped journeys */
.pk.is-halt { filter: grayscale(.85); opacity: .55; }
.pk.is-halt .pk-move, .pk.is-halt .pk-road { animation: none !important; }
.pk.is-rejected .pk-seal { opacity: 1; transform: none; }
.pk.is-rejected .pk-seal circle { fill: #fff; stroke: var(--err); stroke-width: 1; stroke-dasharray: 3 2; }
.pk.is-rejected .pk-seal text { fill: var(--err); }
.pk--idle { animation: tkFloat 6s ease-in-out infinite; }

/* --- Result head --- */
.tk-preview { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 34px; padding-block: 14px; border-block: 1px dashed var(--brand); }
.tk-preview p { margin: 0; font-size: 12.5px; color: var(--brand); }
.tk-preview nav { display: flex; flex-wrap: wrap; gap: 6px; }
.tk-preview a { padding: 3px 10px; border: 1px solid var(--line); font: 11px "IBM Plex Mono", monospace; letter-spacing: .04em; }
.tk-preview a.is-active, .tk-preview a:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.tk-head { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(32px, 5.5vw, 96px); align-items: center; }
.tk-scene { position: relative; margin: 0; aspect-ratio: 5 / 4; display: grid; place-items: center; padding: 9% 13% 13%; background: var(--ivory); overflow: hidden; }
.tk-scene::before { content: ""; position: absolute; inset: 18px; border: 1px solid rgba(101, 10, 37, .12); pointer-events: none; }
.tk-scene .pk { max-width: 420px; }
.tk-scene__count { position: absolute; top: 34px; inset-inline-start: 36px; display: flex; align-items: baseline; gap: 6px; font: 11px "IBM Plex Mono", monospace; letter-spacing: .1em; color: var(--ink-2); direction: ltr; }
html[dir="rtl"] .tk-scene__count { direction: rtl; }
.tk-scene__count b { font: 700 46px/1 var(--f-display-en); letter-spacing: -.01em; color: var(--brand); }
.tk-scene__cap { position: absolute; bottom: 30px; inset-inline: 36px; display: flex; justify-content: space-between; font-size: 11.5px; color: var(--ink-2); }
.tk-scene__cap span[lang="en"] { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.tk-no { margin: 10px 0 0; font-size: 13px; color: var(--ink-2); }
.tk-no b { font-family: "IBM Plex Mono", ui-monospace, monospace; font-weight: 500; color: var(--ink); letter-spacing: .02em; }
.tk-title { margin: 12px 0 14px; font-family: var(--f-display); font-weight: 700; color: var(--ink); font-size: clamp(38px, 4.8vw, 78px); line-height: 1.06; animation: tkRise .9s var(--ease) .15s both; }
html[lang="en"] .tk-title { text-transform: uppercase; line-height: .94; font-size: clamp(42px, 5.4vw, 92px); }
.tk-head__copy .lead { max-width: 46ch; animation: tkFade .9s ease .3s both; }
.tk-delay { margin: 22px 0 0; padding: 14px 18px; max-width: 46ch; background: var(--blush); border-inline-start: 2px solid var(--brand); font-size: 13.5px; }
.tk-delay b { display: block; margin-bottom: 2px; color: var(--brand); }
.tk-meta { display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 22px 0 0; font-size: 12.5px; color: var(--ink-3); }
.tk-acts { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 26px; }
.tk-acts .z-link, .tk-small { font-size: 13px; }

/* --- Journey ribbon --- */
.tj { margin-top: clamp(64px, 8vw, 120px); }
.tj__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-bottom: 14px; margin-bottom: 30px; border-bottom: 1px solid var(--ink); }
.tj__head h2 { font-size: 13px; font-weight: 500; }
.tj__head span { font-size: 12px; color: var(--ink-3); }
html[lang="en"] .tj__head h2, html[lang="en"] .tj__head span { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.tj__track { position: relative; }
.tj__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.tj__base { fill: none; stroke: #d9cfd1; stroke-width: 1.4; stroke-dasharray: 1 6; stroke-linecap: round; }
.tj__fill { fill: none; stroke: var(--satin); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.tj__shine { fill: none; stroke: rgba(255, 255, 255, .5); stroke-width: 1; stroke-linecap: round; transform: translateY(-1px); }
.tj__list { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 0 18px; }
.tj__step { display: flex; flex-direction: column; min-width: 0; }
.tj__pin { position: relative; height: 66px; }
.tj__dot { position: absolute; top: 6px; inset-inline-start: 0; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--bg); border: 1px solid #d9cfd1; transition: background .4s, border-color .4s, transform .5s var(--ease); }
.tj__step:nth-child(even) .tj__dot { top: 36px; }
.tj__dot i { width: 6px; height: 6px; border-radius: 50%; background: transparent; transition: background .4s, transform .4s; }
.tj__txt { display: grid; gap: 3px; align-content: start; }
.tj__no { font: 11px "IBM Plex Mono", monospace; letter-spacing: .08em; color: var(--ink-3); }
.tj__name { font-size: 15px; font-weight: 600; line-height: 1.3; color: var(--ink-3); transition: color .4s; }
html[lang="en"] .tj__name { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.tj__when { font-size: 12px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.tj__desc { margin-top: 6px; max-width: 24ch; font-size: 12.5px; line-height: 1.55; color: var(--ink-3); opacity: .75; transition: opacity .4s, color .4s; }
/* lit milestones (the ribbon has reached them) */
.tj__step.is-lit .tj__name { color: var(--ink); }
.tj__step.is-lit .tj__desc { color: var(--ink-2); opacity: 1; }
.tj__step.is-lit.is-done .tj__dot { background: var(--satin); border-color: var(--satin); transform: scale(.82); }
.tj__step.is-lit.is-done .tj__dot i { background: #fbf7f3; }
.tj__step.is-lit.is-current .tj__dot { border: 1.5px solid var(--satin); transform: scale(1.12); }
.tj__step.is-lit.is-current .tj__dot i { background: var(--satin); width: 8px; height: 8px; }
.tj__step.is-lit.is-current .tj__name { color: var(--brand); }
.tj.is-drawn .tj__step.is-current .tj__dot { animation: tkPulse 2.4s ease-out infinite; }
.tj__step.is-lit.is-pending .tj__dot { border: 1.5px dashed var(--satin); }
.tj__step.is-lit.is-pending .tj__dot i { background: var(--satin); animation: tkBlink 1.6s ease-in-out infinite; }
.tj__step.is-lit.is-pending .tj__name { color: var(--brand); }
.tj__step.is-lit.is-halt .tj__dot { border: 1.5px solid var(--err); }
.tj__step.is-lit.is-halt .tj__dot i { width: 10px; height: 1.5px; border-radius: 0; background: var(--err); transform: rotate(45deg); box-shadow: none; }
.tj__step.is-lit.is-halt .tj__name, .tj__step.is-lit.is-halt .tj__when { color: var(--err); }

/* --- Details --- */
.tk-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 3.4vw, 56px); margin-top: clamp(72px, 8vw, 120px); }
.tk-card { padding-top: 16px; border-top: 1px solid var(--ink); }
.tk-card h2 { display: flex; justify-content: space-between; margin-bottom: 18px; font-size: 13px; font-weight: 500; }
.tk-card h2 span { color: var(--ink-3); font-variant-numeric: tabular-nums; }
html[lang="en"] .tk-card h2 { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.tk-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.tk-item { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.tk-item__img { display: block; aspect-ratio: 3 / 4; background: var(--frame); overflow: hidden; }
.tk-item__img .ph { height: 100%; }
.tk-item__img .ph__label { display: none; }
.tk-item__txt { display: grid; gap: 2px; min-width: 0; }
.tk-item__txt b { font-weight: 600; font-size: 14px; }
.tk-item__txt span, .tk-item__price { font-size: 12.5px; color: var(--ink-2); }
.tk-item__price { font-variant-numeric: tabular-nums; white-space: nowrap; }
.tk-sum { display: grid; gap: 6px; margin: 22px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; }
.tk-sum div, .tk-dl div { display: flex; justify-content: space-between; gap: 16px; }
.tk-sum dt { color: var(--ink-2); } .tk-sum dd { margin: 0; font-variant-numeric: tabular-nums; }
.tk-sum__total { margin-top: 4px; padding-top: 10px; border-top: 1px solid var(--line); font-weight: 600; font-size: 15px; }
.tk-sum__total dt { color: var(--ink); }
.tk-dl { display: grid; gap: 14px; margin: 0 0 18px; font-size: 13.5px; }
.tk-dl div { display: grid; gap: 2px; }
.tk-dl dt { font-size: 12px; color: var(--ink-3); }
.tk-dl dd { margin: 0; }
.tk-pill { display: inline-flex; align-items: center; gap: 7px; padding: 3px 11px 3px 10px; border: 1px solid currentColor; border-radius: 99px; font-size: 12px; }
.tk-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tk-pill--ok { color: var(--ok); } .tk-pill--bad { color: var(--err); } .tk-pill--cod { color: var(--ink); }
.tk-pill--wait { color: var(--brand); background: var(--blush); border-color: transparent; }
.tk-pill--wait::before { animation: tkBlink 1.6s ease-in-out infinite; }
.tk-due { margin: 0; padding: 12px 14px; background: var(--ivory); font-size: 13px; }

/* --- Help --- */
.tk-help { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px 40px; margin-top: clamp(64px, 7vw, 100px); padding-block: 34px; background: linear-gradient(var(--ivory), var(--ivory)) center / calc(100% - 2 * var(--g)) 100% no-repeat; }
.tk-help h2 { padding-inline: 32px; font-family: var(--f-display); font-weight: 700; font-size: clamp(24px, 2.4vw, 34px); }
html[lang="en"] .tk-help h2 { text-transform: uppercase; }
.tk-help div { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; padding-inline: 32px; }
.tk-help .z-btn { width: auto; padding-inline: 28px; }
.tk-fab { display: none; }

@keyframes tkRise { from { opacity: 0; transform: translateY(105%); } }
@keyframes tkFade { from { opacity: 0; transform: translateY(8px); } }
@keyframes tkShake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@keyframes tkFloat { 50% { transform: translateY(-8px); } }
@keyframes tkSway { 0%, 100% { transform: translateY(0) rotate(0); } 30% { transform: translateY(-2px) rotate(-.6deg); } 60% { transform: translateY(0) rotate(.4deg); } }
@keyframes tkRoad { to { stroke-dashoffset: -20; } }
@keyframes tkSpeed { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@keyframes tkPulse { 0% { box-shadow: 0 0 0 0 rgba(101, 10, 37, .35); } 70%, 100% { box-shadow: 0 0 0 12px rgba(101, 10, 37, 0); } }
@keyframes tkBlink { 50% { opacity: .25; } }
@keyframes tkBeat { 0%, 100% { transform: translateY(-4px) scale(1); } 12% { transform: translateY(-4px) scale(1.12); } 24% { transform: translateY(-4px) scale(1); } }

/* --- Tablet --- */
@media (max-width: 1080px) {
  .tk-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .tk-card--items { grid-column: 1 / -1; }
}

/* --- Mobile: the parcel becomes a full-bleed stage, the ribbon runs down the page --- */
@media (max-width: 760px) {
  .tk { padding-bottom: 120px; }
  .tk-find { grid-template-columns: 1fr; gap: 40px; }
  .tk-find__title { font-size: clamp(46px, 14vw, 64px); }
  html[lang="en"] .tk-find__title { font-size: clamp(50px, 15vw, 72px); }
  .tk-form { max-width: none; margin-top: 28px; }
  .tk-find__scene { order: -1; margin-inline: calc(var(--g) * -1); aspect-ratio: 1 / 1; padding: 12% 16% 24%; }
  .tk-route { inset-inline: 26px; bottom: 26px; }
  .tk-route span { max-width: 7ch; font-size: 10px; }

  .tk-head { grid-template-columns: 1fr; gap: 26px; }
  .tk-scene { margin-inline: calc(var(--g) * -1); aspect-ratio: 1 / .92; padding: 16% 14% 14%; }
  .tk-scene::before { inset: 12px; }
  .tk-scene__count { top: 26px; inset-inline-start: 26px; }
  .tk-scene__count b { font-size: 38px; }
  .tk-scene__cap { bottom: 22px; inset-inline: 26px; }
  .tk-head__copy .crumbs { display: none; }
  .tk-title { font-size: clamp(34px, 10.5vw, 46px); }
  html[lang="en"] .tk-title { font-size: clamp(38px, 12vw, 54px); }
  .tk-acts { gap: 10px 22px; }

  .tj__list { grid-template-columns: 1fr; gap: 0; }
  .tj__step { display: grid; grid-template-columns: 60px minmax(0, 1fr); padding-bottom: 28px; }
  .tj__step:last-child { padding-bottom: 0; }
  .tj__pin { height: auto; }
  .tj__dot, .tj__step:nth-child(even) .tj__dot { top: 1px; }
  .tj__step:nth-child(even) .tj__dot { inset-inline-start: 24px; }
  .tj__txt { grid-template-columns: auto minmax(0, 1fr); column-gap: 10px; align-items: baseline; }
  .tj__no { grid-row: 1; }
  .tj__when { grid-column: 2; }
  .tj__desc { grid-column: 2; display: none; max-width: none; }
  .tj__step.is-current .tj__desc, .tj__step.is-pending .tj__desc, .tj__step.is-halt .tj__desc { display: block; }
  .tj__step.is-current .tj__txt, .tj__step.is-pending .tj__txt { padding: 12px 14px; margin-top: -12px; background: var(--ivory); }

  .tk-grid { grid-template-columns: 1fr; gap: 40px; }
  .tk-help { flex-direction: column; align-items: stretch; background-size: 100% 100%; margin-inline: calc(var(--g) * -1); padding: 30px var(--g); }
  .tk-help h2, .tk-help div { padding-inline: 0; }
  .tk-help .z-btn { width: 100%; }
  .tk-fab {
    position: fixed; z-index: 40; bottom: calc(16px + env(safe-area-inset-bottom)); inset-inline-end: 16px;
    display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px 10px 14px; border-radius: 99px;
    background: var(--ink); color: #fff; font-size: 13px; box-shadow: 0 10px 30px rgba(43, 6, 16, .22);
    animation: tkFade .6s ease 1.6s both;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tk *, .tk *::before { animation: none !important; transition: none !important; }
}
/* =========================================================
   HOME — customer voices ("Worn & loved")
   Two ribbons of quote cards drift in opposite directions; hover or the toggle pauses them.
   ========================================================= */
.z-voices { --ivory: #f8f3ee; padding: 12vh 0 11vh; border-top: 1px solid var(--line); overflow: hidden; }
.z-voices__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; padding: 0 var(--g); margin-bottom: clamp(30px, 5vh, 54px); }
.z-voices__head .z-label { margin: 0 0 10px; color: var(--ink-2); }
.z-voices__title { font-family: var(--f-display); font-weight: 700; color: var(--ink); font-size: clamp(40px, 5.4vw, 92px); line-height: 1.05; }
html[lang="en"] .z-voices__title { text-transform: uppercase; line-height: .95; }
.z-voices__toggle { flex: none; padding-bottom: 4px; }
.z-voices__rows { display: grid; gap: 16px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.zv-row { overflow: hidden; }
.zv-track { display: flex; width: max-content; animation: zvLoop var(--dur, 56s) linear infinite; will-change: transform; }
html[dir="rtl"] .zv-track { animation-name: zvLoopRtl; }
.zv-row--b .zv-track { animation-direction: reverse; }
.zv-set { display: flex; gap: 16px; padding-inline-end: 16px; }
.zv-row:hover .zv-track, .z-voices.is-paused .zv-track { animation-play-state: paused; }
@keyframes zvLoop { to { transform: translateX(-50%); } }
@keyframes zvLoopRtl { to { transform: translateX(50%); } }

.zv-card { position: relative; flex: none; width: clamp(290px, 27vw, 400px); min-height: 250px; margin: 0; display: flex; flex-direction: column; gap: 14px; padding: 30px 30px 24px; background: var(--ivory); transition: background .35s ease; }
.zv-row--b .zv-card { background: var(--bg); border: 1px solid var(--line); }
.zv-card:hover { background: #f3e6e2; }
.zv-sample { position: absolute; top: 14px; inset-inline-end: 14px; padding: 1px 8px; border: 1px dashed var(--brand); color: var(--brand); font-size: 10.5px; letter-spacing: .04em; }
.zv-rate { display: flex; gap: 5px; }
.zv-rate i { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.zv-quote { position: relative; margin: 0; flex: 1; }
.zv-quote::before { content: "“"; display: block; height: 30px; margin-bottom: 4px; font: 700 64px/1 var(--f-display-en); color: var(--brand); }
html[dir="rtl"] .zv-quote::before { content: "”"; }
.zv-quote p { margin: 0; font-size: 18px; font-weight: 500; line-height: 1.6; color: var(--ink); }
html[lang="en"] .zv-quote p { font-size: 16.5px; line-height: 1.55; }
.zv-by { display: flex; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid rgba(43, 6, 16, .12); }
.zv-thumb { flex: none; width: 40px; aspect-ratio: 3 / 4; overflow: hidden; background: var(--frame); }
.zv-thumb img { width: 100%; height: 100%; object-fit: cover; }
.zv-by > span { display: grid; gap: 1px; min-width: 0; }
.zv-by b { font-size: 13px; font-weight: 600; }
.zv-by a { font-size: 12px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zv-by a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 760px) {
  .z-voices { padding: 9vh 0 8vh; }
  .z-voices__head { flex-direction: column; align-items: flex-start; }
  .z-voices__rows { gap: 12px; -webkit-mask-image: none; mask-image: none; }
  .zv-set { gap: 12px; padding-inline-end: 12px; }
  .zv-card { width: min(78vw, 300px); min-height: 220px; padding: 24px 22px 20px; }
  .zv-quote p { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .zv-track { animation: none; }
  .zv-row { overflow-x: auto; scroll-snap-type: x mandatory; padding-inline: var(--g); }
  .zv-set + .zv-set { display: none; }
  .zv-card { scroll-snap-align: start; }
}
/* ---------- Welcome note (after the loader, first visit of a session) ---------- */
.welcome { position: fixed; inset: 0; z-index: 1001; display: grid; place-content: center; justify-items: center; padding: 24px; text-align: center; pointer-events: none; visibility: hidden; }
.welcome.is-on { visibility: visible; }
.welcome.is-gone { display: none; }
.welcome p { margin: 0; }
.welcome .ln { display: block; overflow: hidden; padding-bottom: .08em; }
.welcome .ln > span { display: block; transform: translateY(105%); transition: transform 1.1s var(--ease); }
.welcome.is-on .ln > span { transform: none; }
.welcome__small .ln > span { transition-delay: .2s; }
.welcome__big .ln > span { transition-delay: .38s; }
.welcome__small { margin-bottom: 12px !important; font-family: var(--f-en); font-size: 12px; letter-spacing: .34em; text-transform: uppercase; color: var(--ink-2); }
.welcome__big { font: 700 clamp(46px, 8.6vw, 140px)/.92 var(--f-display-en); text-transform: uppercase; letter-spacing: -.005em; color: var(--brand); }
.welcome__rule { width: 120px; height: 1px; margin: 26px 0 16px; background: var(--brand); transform: scaleX(0); transition: transform 1.1s var(--ease) .95s; }
.welcome.is-on .welcome__rule { transform: none; }
.welcome__ar { font-family: var(--f-ar); font-size: 15px; color: var(--ink-2); opacity: 0; transform: translateY(8px); transition: opacity .9s ease 1.2s, transform .9s var(--ease) 1.2s; }
.welcome.is-on .welcome__ar { opacity: 1; transform: none; }
.welcome.is-out { opacity: 0; transform: translateY(-16px); transition: opacity .8s ease, transform 1.1s var(--ease); }
/* the logo and meter make way for the welcome */
.splash.is-welcome .splash__inner { opacity: 0; transform: scale(.94); transition: opacity .5s ease, transform .8s var(--ease); }
.splash.is-welcome.is-out { transition: opacity 1s ease .15s, visibility 1s .15s; }
/* the site rises in under the fading curtain */
body.is-entering #app, body.is-entering .zh { animation: siteIn 1.3s var(--ease) both; }
@keyframes siteIn { from { opacity: 0; transform: translateY(24px); } }
@media (max-width: 520px) { .welcome__small { font-size: 10.5px; letter-spacing: .26em; } }
@media (prefers-reduced-motion: reduce) {
  .welcome .ln > span, .welcome__rule, .welcome__ar { transform: none; transition: none; }
  .welcome__ar { opacity: 1; }
  .welcome.is-out { transform: none; transition: opacity .3s ease; }
  body.is-entering #app, body.is-entering .zh { animation: none; }
}
/* =========================================================
   HOME — shop by category
   Tall photo per category (a second piece fades in on hover), editorial caption underneath.
   The middle tile sits lower on desktop for rhythm; on phones the row becomes a swipeable strip.
   ========================================================= */
.z-cats { padding: 11vh var(--g) 4vh; }
.z-cats__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: clamp(26px, 4.5vh, 48px); }
.z-cats__head .z-eyebrow { margin: 0 0 10px; }
.z-cats__title { font-family: var(--f-display); font-weight: 700; color: var(--ink); font-size: clamp(36px, 4.8vw, 82px); line-height: 1.05; }
html[lang="en"] .z-cats__title { text-transform: uppercase; line-height: .95; }
.z-cats__row { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 14px; align-items: start; }
.z-cat { display: block; min-width: 0; color: var(--ink); }
.z-cat__media { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; background: var(--frame); }
.z-cat__media .ph__label { top: 50%; bottom: auto; text-align: center; }
.z-cat__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; transition: transform 1.6s var(--ease), opacity .7s ease; }
.z-cat__img--b { opacity: 0; }
.z-cat__cap { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: baseline; gap: 2px 14px; padding-top: 14px; }
.z-cat__no { font: 500 11px "IBM Plex Mono", ui-monospace, monospace; letter-spacing: .08em; color: var(--ink-3); }
.z-cat__name { font-family: var(--f-display); font-weight: 700; font-size: clamp(22px, 2vw, 32px); line-height: 1.15; }
html[lang="en"] .z-cat__name { text-transform: uppercase; letter-spacing: .01em; }
.z-cat__go { font-size: 13px; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; white-space: nowrap; }
html[lang="en"] .z-cat__go { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.z-cat__meta { grid-column: 2 / -1; font-size: 12.5px; color: var(--ink-2); }
@media (hover: hover) and (pointer: fine) {
  .z-cat:hover .z-cat__img { transform: scale(1.045); }
  .z-cat:hover .z-cat__img--b { opacity: 1; }
  .z-cat:hover .z-cat__go { text-decoration-thickness: 2px; }
}
.z-cat:focus-visible { outline: none; }
.z-cat:focus-visible .z-cat__media { outline: 2px solid var(--ink); outline-offset: 3px; }
@media (min-width: 861px) { .z-cats__row > .z-cat:nth-child(3n + 2) { margin-top: 7vh; } }

/* reveal: tiles rise in one after another, photos uncover from the bottom */
[data-reveal] .z-cats__head { opacity: 0; transform: translateY(18px); transition: opacity .9s ease .1s, transform 1s var(--ease) .1s; }
[data-reveal] .z-cat { opacity: 0; transform: translateY(40px); transition: opacity .9s ease, transform 1.1s var(--ease); transition-delay: calc(var(--i, 0) * 110ms + 200ms); }
[data-reveal] .z-cat__media { clip-path: inset(100% 0 0 0); transition: clip-path 1.3s var(--ease); transition-delay: calc(var(--i, 0) * 110ms + 260ms); }
[data-reveal].is-in :is(.z-cats__head, .z-cat) { opacity: 1; transform: none; }
[data-reveal].is-in .z-cat__media { clip-path: inset(0 0 0 0); }
[data-reveal][data-from="top"] :is(.z-cats__head, .z-cat) { transform: translateY(-30px); }
[data-reveal][data-from="top"] .z-cat__media { clip-path: inset(0 0 100% 0); }
[data-reveal][data-from="top"].is-in :is(.z-cats__head, .z-cat) { transform: none; }
[data-reveal][data-from="top"].is-in .z-cat__media { clip-path: inset(0 0 0 0); }

@media (max-width: 860px) {
  .z-cats { padding: 8vh 0 2vh; }
  .z-cats__head { padding: 0 var(--g); }
  .z-cats__row { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--g) 6px; scrollbar-width: none; }
  .z-cats__row::-webkit-scrollbar { display: none; }
  .z-cat { flex: 0 0 74vw; max-width: 340px; scroll-snap-align: start; scroll-margin-inline-start: var(--g); }
  .z-cat__name { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] :is(.z-cats__head, .z-cat) { opacity: 1; transform: none; }
  [data-reveal] .z-cat__media { clip-path: none; }
  .z-cat__img { transition: none; }
}

/* ---------- Live stock: sold out ---------- */
.card__sold { position: absolute; top: 10px; inset-inline-start: 10px; z-index: 2; padding: 3px 9px; background: rgba(255, 255, 255, .94); color: var(--ink); font-size: 12px; font-weight: 600; pointer-events: none; }
html[lang="en"] .card__sold { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; }
.card.is-sold .card__media .ph img { opacity: .62; filter: grayscale(.35); }
.card.is-sold .quick__toggle, .card.is-sold .quick { display: none; }
.sold-tag { display: inline-block; margin-inline-start: 10px; padding: 1px 8px; border: 1px solid var(--ink); font-size: 12px; vertical-align: middle; }
html[lang="en"] .sold-tag { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; }
.opt__left { min-height: 1.2em; margin: 6px 0 0; font-size: 12.5px; font-weight: 600; color: var(--brand); }
.perks .stock.is-out { color: var(--err); }
#addBtn:disabled, #stickyAdd:disabled { opacity: .45; cursor: not-allowed; }
