/* PoshEvolution: the page's own layer over the taste-skill kit (assets/kit/system.css).
   1. The palette and fonts (the kit reads these tokens).
   2. Page CSS for what the kit does not have: the catalog grid, filters, the product page,
      the sample label and the empty state.
   Colours: cool concrete-grey ground, charcoal ink, one deep slate-navy accent used sparingly. */

:root {
  --p-bg: #e6e5e1; --p-surface: #d6d5d0; --p-ink: #15171a; --p-muted: #52565b;
  --p-accent: #24364a; --p-accent-ink: #ffffff;
  --p-action: #15171a; --p-action-ink: #e6e5e1;
  --p-inv-bg: #15171a; --p-inv-surface: #202328; --p-inv-ink: #ecebe8; --p-inv-muted: #a2a6ab;
  --p-inv-accent: #b9c6d4; --p-inv-accent-ink: #15171a; --p-inv-action: #ecebe8; --p-inv-action-ink: #15171a;
  --font-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --font-text: "Figtree", "Segoe UI", system-ui, sans-serif;
  --display-weight: 600; --display-tracking: -0.025em;
}
body { background: var(--p-bg); color: var(--p-ink); }

/* inner pages (shop, product, policies): a section that grows with what it holds. A catalog's
   length is set by how many products there are, so it cannot be a fixed number of screens. */
main > section.flow { height: auto; min-height: calc(var(--h, 1) * 100svh); }
main > section.flow > .wrap { height: auto; }
.page-top { padding-top: calc(var(--nav) + var(--s-8)); }
@media (max-width: 639px) { .page-top { padding-top: calc(var(--nav) + var(--s-7)); } }
.crumbs { display: flex; flex-wrap: wrap; gap: var(--s-2); font-size: var(--t-small); color: var(--muted); margin-bottom: var(--s-5); }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---------------------------------------------------------------- catalog grid */
/* four across on desktop, two on a phone; one to three products stay on the grid's columns from the
   left edge, so a short category still lines up with the page instead of stretching or centring */
.catalog { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s-6) var(--s-4); }
@media (max-width: 1279px) { .catalog { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1023px) { .catalog { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px) { .catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6) var(--gutter); } }
.catalog--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 767px) { .catalog--three { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.product-card { text-decoration: none; color: inherit; }
.product-card .tile__media { --tile-ratio: 4 / 5; }
.product-card .tile__media > img { object-position: var(--pos, 50% 30%); }
.product-card:hover .tile__media > img { transform: scale(1.025); }
.product-card .tile__head > h3 { font-size: var(--t-body); }
.product-card .tile__price { font-size: var(--t-small); color: var(--muted); }
.product-card .tile__facts { margin-top: calc(-1 * var(--s-3)); }

/* the sample label: shows only on products marked placeholder: true in products.js, so it
   disappears by itself once the real products replace them */
.sample-tag { position: absolute; top: var(--s-3); left: var(--s-3); z-index: 1; display: inline-flex; align-items: center;
  height: 24px; padding: 0 var(--s-3); border-radius: 999px; font-size: var(--t-label); font-weight: 500;
  background: var(--p-bg); color: var(--p-ink); border: 1px solid color-mix(in oklab, var(--p-ink) 18%, transparent); }
.new-tag { color: var(--p-accent); font-weight: 500; }

/* filters and sort */
.shop-bar { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--s-5); margin-bottom: var(--s-7); }
.filters { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.filters .tab { min-height: 44px; }
.filters .tab[aria-pressed="true"] { background: var(--action); color: var(--action-ink); border-color: var(--action); }
.sort { display: grid; gap: var(--s-1); font-size: var(--t-small); }
.sort select { height: 48px; padding: 0 var(--s-4); font: 16px/1.2 var(--font-text); color: var(--ink);
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--r-sm); }
.count { color: var(--muted); font-size: var(--t-small); margin: 0 0 var(--s-5); }

/* the empty state: a category with nothing in it yet */
.empty { display: grid; gap: var(--s-4); justify-items: start; padding: var(--s-8) 0; border-top: 1px solid var(--line); }
.empty h2 { font-size: var(--t-h3); }
.empty p { max-width: 48ch; }

/* ---------------------------------------------------------------- product page */
.pdp { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); align-items: start; }
.pdp__gallery { grid-column: 1 / span 7; display: grid; gap: var(--s-3); }
.pdp__info { grid-column: 9 / span 4; position: relative; display: grid; gap: var(--s-5); }
@media (max-width: 1023px) { .pdp__gallery, .pdp__info { grid-column: 1 / -1; } }
.pdp__main { position: relative; aspect-ratio: 4 / 5; overflow: clip; border-radius: var(--r-lg); background: var(--surface); }
.pdp__main img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 30%); }
.pdp__thumbs { display: flex; gap: var(--s-3); }
.pdp__thumbs button { width: 80px; aspect-ratio: 4 / 5; padding: 0; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: clip; background: var(--surface); cursor: pointer; }
.pdp__thumbs button[aria-current="true"] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.pdp__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pdp__info h1 { font-size: var(--t-h2); line-height: 1.1; }
.pdp__price { font-size: var(--t-lead); }
.pdp__desc { max-width: 52ch; }

.swatches { display: flex; flex-wrap: wrap; gap: var(--s-3); border: 0; padding: 0; margin: 0; }
.swatches legend, .field-legend { font-size: var(--t-small); font-weight: 500; margin-bottom: var(--s-3); padding: 0; }
.swatch { position: relative; }
.swatch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.swatch span { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; padding: 0 var(--s-4) 0 var(--s-2);
  border: 1px solid var(--line-strong); border-radius: 999px; font-size: var(--t-small); }
.swatch span::before { content: ""; width: 24px; height: 24px; border-radius: 50%; background: var(--c, #ccc); border: 1px solid color-mix(in oklab, var(--p-ink) 20%, transparent); }
.swatch input:checked + span { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.swatch input:focus-visible + span { outline: 2px solid var(--action); outline-offset: 2px; }

.request { border-top: 1px solid var(--line); padding-top: var(--s-6); }
.request h2 { font-size: var(--t-h3); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4) var(--gutter); }
.form-grid > .field--wide { grid-column: 1 / -1; }
@media (max-width: 639px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }
.field textarea { min-height: 112px; }
.req-note { font-size: var(--t-small); color: var(--muted); }

/* ---------------------------------------------------------------- home */
.range-head { display: flex; align-items: end; justify-content: space-between; gap: var(--s-5); }
.edit-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gutter); }
@media (max-width: 767px) { .edit-pair { grid-template-columns: minmax(0, 1fr); } }
.edit-tile { position: relative; display: block; overflow: clip; border-radius: var(--r-lg); color: inherit; text-decoration: none; }
.edit-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.edit-tile:hover img { transform: scale(1.025); }
.edit-tile__media { aspect-ratio: 4 / 3; height: min(56vh, 520px); width: 100%; overflow: clip; border-radius: var(--r-lg); background: var(--surface); }
@media (max-width: 767px) { .edit-tile__media { height: auto; } }
.edit-tile__label { display: flex; justify-content: space-between; align-items: baseline; padding-top: var(--s-4); }
.edit-tile__label h3 { font: var(--display-weight) var(--t-h3)/1.2 var(--font-display); letter-spacing: var(--display-tracking); }

.studio { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); align-items: stretch; height: 100%; }
.studio__text { grid-column: 1 / span 5; display: grid; align-content: start; gap: var(--s-5); }
.studio__photo { grid-column: 7 / span 6; min-height: 0; overflow: clip; border-radius: var(--r-lg); }
.studio__photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 1023px) { .studio__text, .studio__photo { grid-column: 1 / -1; } .studio__photo { aspect-ratio: 4 / 3; } }

/* policy pages: readable text column */
.prose { max-width: 68ch; display: grid; gap: var(--s-4); }
.prose h2 { font-size: var(--t-h3); margin-top: var(--s-6); }
.prose ul { margin: 0; padding-left: 1.2em; display: grid; gap: var(--s-2); }

.credits-list { display: grid; gap: var(--s-3); padding: 0; list-style: none; font-size: var(--t-small); }
.credits-list a { color: inherit; }

.about-split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); align-items: start; }
.about-split__text { grid-column: 1 / span 6; display: grid; gap: var(--s-5); }
.about-split__photo { grid-column: 8 / span 5; aspect-ratio: 4 / 5; overflow: clip; border-radius: var(--r-lg); }
.about-split__photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 1023px) { .about-split__text, .about-split__photo { grid-column: 1 / -1; } }

/* the inner pages' footer: the link columns only, as tall as they are (no close above them) */
footer.closing.closing--links { height: auto; min-height: 0; }
.range-head > .link { flex: none; white-space: nowrap; }
.range-head > h2 { max-width: 24ch; }
/* the kit's .form is a two-column grid; these forms lay out their own fields in .form-grid */
form[data-posh-form] > *, form[data-add-form] > *, form[data-checkout] > * { grid-column: 1 / -1; }
form[data-posh-form], form[data-add-form], form[data-checkout] { gap: var(--s-5); }
/* a phone: the bar holds the name and the menu only (the hero's own button is the main action there),
   so the bar never runs past the screen's right edge */
@media (max-width: 479px) { .nav:not(.is-open) .nav__actions { display: none; } .nav.nav--split:not(.is-open) .nav__actions + .nav__toggle { margin-left: auto; } }
/* stacked, the dark band's photograph takes its width from the column, never from the row's height */
@media (max-width: 1023px) {
  .studio { height: auto; grid-template-rows: auto; }
  .studio__photo { align-self: start; width: 100%; max-width: 100%; height: auto; }
  .studio__photo img { aspect-ratio: 4 / 3; height: auto; }
}

/* ---------------------------------------------------------------- brand logo (assets/img/brand/logo.png, cleaned from the client's file) */
.nav__logo { display: inline-flex; align-items: center; }
.nav__logo img.brand-logo { display: block; height: 54px; width: auto; }
@media (max-width: 639px) { .nav__logo img.brand-logo { height: 44px; } }
.footer .nav__logo img.brand-logo { height: 96px; }

/* ---------------------------------------------------------------- bag link in the header */
.nav__actions { display: flex; align-items: center; gap: var(--s-3); }
.bag-link { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; color: var(--ink); text-decoration: none; }
.bag-link:hover { background: color-mix(in oklab, var(--ink) 7%, transparent); }
.bag-link svg { width: 22px; height: 22px; }
.bag-count { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--p-ink); color: var(--p-bg); font: 600 11px/18px var(--font-text); text-align: center; }
/* a phone: the bar keeps the logo, the bag and the menu; only the "Shop new in" button steps out */
@media (max-width: 479px) {
  .nav:not(.is-open) .nav__actions { display: flex; margin-left: auto; }
  .nav:not(.is-open) .nav__actions .btn { display: none; }
  .nav.nav--split:not(.is-open) .nav__actions + .nav__toggle { margin-left: 0; }
}
.added a { color: inherit; font-weight: 500; text-underline-offset: 3px; }

/* ---------------------------------------------------------------- bag page */
.bag { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); align-items: start; margin-top: var(--s-6); }
.bag__lines { grid-column: 1 / span 6; display: grid; gap: var(--s-5); }
.checkout { grid-column: 8 / span 5; border-top: 0; }
@media (max-width: 1023px) { .bag__lines, .checkout { grid-column: 1 / -1; } }
.checkout h2 { font-size: var(--t-h3); }
.bag-list { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--line); }
.bag-line { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: var(--s-5); padding: var(--s-5) 0; border-bottom: 1px solid var(--line); }
.bag-line__img { display: block; aspect-ratio: 4 / 5; overflow: clip; border-radius: var(--r-sm); background: var(--surface); }
.bag-line__img img, .bag-line__img video { width: 100%; height: 100%; object-fit: cover; display: block; }
.bag-line__info { display: grid; gap: var(--s-1); align-content: start; }
.bag-line__name { font-weight: 500; color: inherit; text-decoration: none; }
.bag-line__name:hover { text-decoration: underline; text-underline-offset: 3px; }
.bag-line__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4); margin-top: var(--s-3); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 999px; }
.qty button { width: 44px; height: 40px; border: 0; background: none; font: 500 18px/1 var(--font-text); color: var(--ink); cursor: pointer; border-radius: 999px; }
.qty button:disabled { color: var(--muted); opacity: .45; cursor: default; }
.qty span { min-width: 2ch; text-align: center; font-variant-numeric: tabular-nums; }
.link-btn { border: 0; background: none; padding: 0; min-height: 44px; font: inherit; font-size: var(--t-small); color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-btn:hover { color: var(--ink); }
.bag__total { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-3); margin: 0; font-size: var(--t-small); }
/* the hidden field bots fill in; people never see it */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.done:focus { outline: none; }

/* ---------------------------------------------------------------- motion (assets/js/motion-posh.js)
   Image reveal: a curtain opening upward (clip-path, strong ease-in-out) while the photo settles from a slight
   zoom (transform, strong ease-out). Only before the first paint does html.js-reveal hide the photos. */
:root { --ease-out: cubic-bezier(0.23, 1, 0.32, 1); --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1); }
@media (prefers-reduced-motion: no-preference) {
  html.js-reveal:not(.rv-safe) :is(.product-card .tile__media, .pdp__main, .edit-tile__media, .about-split__photo, .studio__photo):not(.is-in) { clip-path: inset(100% 0 0 0); }
  html.js-reveal:not(.rv-safe) :is(.product-card .tile__media, .pdp__main, .edit-tile__media, .about-split__photo, .studio__photo):not(.is-in) img { transform: scale(1.08); }
  :is(.product-card .tile__media, .pdp__main, .edit-tile__media, .about-split__photo, .studio__photo).is-in:not(.is-done) {
    clip-path: inset(0 0 0 0); transition: clip-path 900ms var(--ease-in-out) var(--rv-delay, 0ms); }
  :is(.product-card .tile__media, .pdp__main, .edit-tile__media, .about-split__photo, .studio__photo).is-in:not(.is-done) img {
    transform: scale(1); transition: transform 1200ms var(--ease-out) var(--rv-delay, 0ms); }
  /* the card's name and facts follow their photo in */
  html.js-reveal:not(.rv-safe) .product-card:has(.tile__media:not(.is-in)) :is(.tile__head, .tile__facts) { opacity: 0; transform: translateY(8px); }
  .product-card:has(.tile__media.is-in) :is(.tile__head, .tile__facts) { transition: opacity 500ms var(--ease-out) calc(var(--rv-delay, 0ms) + 350ms), transform 500ms var(--ease-out) calc(var(--rv-delay, 0ms) + 350ms); }
}
@media (prefers-reduced-motion: reduce) {
  /* fewer and gentler: the photos simply fade in, nothing moves */
  html.js-reveal :is(.product-card .tile__media, .pdp__main, .edit-tile__media, .about-split__photo, .studio__photo) img { animation: rv-fade 400ms linear both; }
}
@keyframes rv-fade { from { opacity: 0; } }

/* hover zoom only for a real pointer (a tap on a phone fires a false hover) */
.product-card:hover .tile__media > img, .edit-tile:hover img { transform: none; }
@media (hover: hover) and (pointer: fine) {
  .product-card .tile__media.is-done > img, .edit-tile__media.is-done img { transition: transform 600ms var(--ease-out); }
  .product-card:hover .tile__media.is-done > img, .edit-tile:hover .edit-tile__media.is-done img { transform: scale(1.04); }
}

/* the piece flying into the bag */
.fly-ghost { position: fixed; left: 0; top: 0; z-index: 1000; object-fit: cover; pointer-events: none; transform-origin: 0 0; will-change: transform, opacity;
  box-shadow: 0 12px 32px rgb(27 25 22 / 0.18); }
/* buttons answer the press */
.btn:active, .qty button:active:not(:disabled) { transform: scale(0.97); transition: transform 120ms var(--ease-out); }

/* the bag stays in the bar on tablets and phones (the kit moves everything but the main button to the sheet) */
@media (max-width: 1023px) { .nav.nav:not(.is-open) .nav__actions > .bag-link { display: inline-grid; } }
@media (max-width: 639px) {
  :root:has(> body > nav.actionbar) .nav.nav:not(.is-open) .nav__actions { display: flex; margin-left: auto; }
  :root:has(> body > nav.actionbar) .nav.nav:not(.is-open) .nav__actions > .btn { display: none; }
  :root:has(> body > nav.actionbar) .nav.nav:not(.is-open) .nav__toggle { margin-left: 0; }
}

/* ---------------------------------------------------------------- looping clips (products.js "video") */
.tile__media > video, .pdp__main > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; background: var(--surface); }
.pdp__main > video[hidden] { display: none; }
.pdp__thumbs video { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  html.js-reveal:not(.rv-safe) :is(.product-card .tile__media, .pdp__main):not(.is-in) video { transform: scale(1.08); }
  :is(.product-card .tile__media, .pdp__main).is-in:not(.is-done) video { transform: scale(1); transition: transform 1200ms var(--ease-out) var(--rv-delay, 0ms); }
}
@media (hover: hover) and (pointer: fine) {
  .product-card .tile__media.is-done > video { transition: transform 600ms var(--ease-out); }
  .product-card:hover .tile__media.is-done > video { transform: scale(1.04); }
}

/* ---------------------------------------------------------------- saved pieces: the heart, top right of the photo */
.pc { position: relative; min-width: 0; }
.like { position: absolute; top: var(--s-3); right: var(--s-3); z-index: 2; display: inline-grid; place-items: center; width: 40px; height: 40px;
  padding: 0; border: 0; border-radius: 999px; background: color-mix(in oklab, var(--p-bg) 88%, transparent); color: var(--p-ink); cursor: pointer;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background-color 160ms ease, transform 120ms var(--ease-out); }
.like svg { width: 20px; height: 20px; fill: transparent; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round;
  transition: fill 160ms ease, stroke 160ms ease; }
.like[aria-pressed="true"] svg { fill: var(--p-accent); stroke: var(--p-accent); }
.like:active { transform: scale(0.92); }
.like:focus-visible { outline: 2px solid var(--p-ink); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .like:hover { background: var(--p-bg); } }
.like--lg { width: 48px; height: 48px; top: var(--s-4); right: var(--s-4); }
.like--lg svg { width: 24px; height: 24px; }
/* the heart waits for its photo's curtain, then fades in */
@media (prefers-reduced-motion: no-preference) {
  html.js-reveal:not(.rv-safe) .pc:has(.tile__media:not(.is-in)) > .like, html.js-reveal:not(.rv-safe) .pdp__main:not(.is-in) > .like { opacity: 0; }
  .pc > .like, .pdp__main > .like { transition: opacity 400ms var(--ease-out) 500ms, background-color 160ms ease, transform 120ms var(--ease-out); }
}
.tab--saved { display: inline-flex; align-items: center; gap: 6px; }
.tab--saved svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.tab--saved[aria-pressed="true"] svg { fill: currentColor; }
.swatch span.no-dot { padding-left: var(--s-4); }
.swatch span.no-dot::before { display: none; }

/* home: how ordering works, three numbered steps beside one photograph */
.order-split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gutter); align-items: stretch; }
.order-steps { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--line); }
.order-steps li { display: grid; grid-template-columns: 72px minmax(0, 1fr); column-gap: var(--s-5); padding: var(--s-6) 0; border-bottom: 1px solid var(--line); }
.order-steps__n { grid-row: span 2; font: var(--display-weight) clamp(28px, 3vw, 40px)/1 var(--font-display); letter-spacing: var(--display-tracking); color: var(--p-accent); }
.order-steps h3 { margin: 0 0 var(--s-2); font: var(--display-weight) var(--t-h3)/1.2 var(--font-display); letter-spacing: var(--display-tracking); }
.order-steps p { margin: 0; color: var(--muted); max-width: 52ch; }
.order-photo { margin: 0; overflow: clip; border-radius: var(--r-lg); min-height: 360px; }
.order-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 767px) { .order-split { grid-template-columns: minmax(0, 1fr); } .order-steps li { grid-template-columns: 52px minmax(0, 1fr); } .order-photo { min-height: 0; aspect-ratio: 4 / 3; } }
.statement__link { margin-top: var(--s-6); }
.home-marquee { margin-top: var(--s-8); }
.home-marquee.mo-mq .mo-mq__track { font: var(--display-weight) clamp(32px, 5vw, 72px)/1.1 var(--font-display); letter-spacing: var(--display-tracking); color: var(--p-ink); }
.home-marquee.mo-mq .mo-mq__track li:nth-child(even) { color: var(--p-accent); }

/* product page: the PoshEvolution logo across the front of the main picture: the P and E as a thin white outline
   (the #pe-thin filter, catalog.js), the logo's own small line masked out and set again as light text */
.pdp__brand { position: absolute; left: 50%; top: 50%; z-index: 1; width: 88%; transform: translate(-50%, -50%); pointer-events: none; container-type: inline-size; }
.pdp__logo { display: block; width: 100%; height: auto; filter: url(#pe-thin) drop-shadow(0 1px 2px rgb(0 0 0 / .3));
  -webkit-mask-image: linear-gradient(#000 0 42%, transparent 42% 59%, #000 59%); mask-image: linear-gradient(#000 0 42%, transparent 42% 59%, #000 59%); }
.pdp__brand span { position: absolute; left: 0; right: 0; top: 50.5%; transform: translateY(-50%); text-align: center; white-space: nowrap;
  font: 300 7cqi/1 var(--font-text); letter-spacing: .32em; margin-right: -.32em; text-transform: uppercase; color: #fff; text-shadow: 0 1px 3px rgb(0 0 0 / .35); }

/* ---------------------------------------------------------------- home hero: the clothing rail (index.html, assets/js/hero-rail.js)
   After the client's two reference videos: a soft pastel ground, one long steel rail that bends away at both
   ends, and the pieces hanging from it: they move along by themselves, sway on their hooks, carry a small
   price tag, and turn round when tapped. The h1 is for screen readers; the only words are the small line at
   the bottom (the hint, and the name and price of the tapped piece). */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hero--rail { --rail-h: min(32svh, 320px); --rail-gap: clamp(20px, 2.6vw, 44px); position: relative; overflow: clip;
  background:
    radial-gradient(70% 60% at 50% 42%, #151824 0%, #0a0b12 55%, #050609 100%);
  color: #f2f1f6; }
/* the brand's mark, very large and faint, behind the pieces */
.rl__mark { position: absolute; inset: 0; z-index: 0; display: grid; place-items: center; pointer-events: none; }
.rl__mark img { width: min(92vw, 1180px); height: auto; filter: invert(1); mix-blend-mode: screen; opacity: .07; translate: 0 -4%; }
@media (max-width: 639px) { .rl__mark { place-items: start center; padding-top: 7svh; } .rl__mark img { width: 92vw; translate: none; opacity: .09; } }
/* the stars (assets/js/hero-space.js) fill the whole hero behind the pieces */
.rl__space { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; display: block; }
main > .hero.hero--rail { height: 100vh; height: 100svh; min-height: 560px; }
main > .hero.hero--rail > .wrap { position: relative; z-index: 1; width: 100%; height: 100%; max-width: none; padding-inline: 0; grid-template-rows: minmax(0, 1fr); }
.rl { height: 100%; display: grid; grid-template-rows: minmax(0, 1fr) auto auto; align-items: center; }
/* the brand's name in the free space under the pieces, spaced like the logo's middle line */
.rl__brand { position: relative; z-index: 2; margin: calc(-1 * (7vh + 110px)) 0 0; padding-left: .34em; text-align: center; pointer-events: none;
  font: 400 clamp(22px, 4.2vw, 64px)/1 var(--font-text); letter-spacing: .34em; text-transform: uppercase; color: rgb(242 241 246 / .9); }
@media (max-width: 639px) {
  .rl { grid-template-rows: minmax(0, 1.5fr) minmax(0, .5fr) auto; }
  .rl__stage { align-self: end; }
  .rl__brand { align-self: start; margin-top: -30px; font-size: 6.4vw; letter-spacing: .26em; padding-left: .26em; }
}
.rl__stage { position: relative; width: 100%; height: calc(var(--rail-h) + 7vh + 150px); padding-top: 14px; overflow: hidden; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.rl__stage.is-wait .rl__track { opacity: 0; }
.rl__track { transition: opacity .6s cubic-bezier(0.23, 1, 0.32, 1); position: relative; z-index: 1; display: flex; align-items: flex-start; column-gap: var(--rail-gap); width: max-content; padding-left: var(--rail-gap); will-change: transform; }
.rl__item { --w: calc(var(--rail-h) * 0.8); flex: none; width: var(--w); display: block; color: #24272b; text-decoration: none; cursor: pointer;
  transform-origin: 50% 0;
  transition: opacity .35s cubic-bezier(0.23, 1, 0.32, 1), filter .35s cubic-bezier(0.23, 1, 0.32, 1), translate .45s cubic-bezier(0.23, 1, 0.32, 1), scale .45s cubic-bezier(0.23, 1, 0.32, 1); }
/* the sway lives on the body, so the rail's bend (set on the item every frame) never fights it */
.rl__body { position: relative; display: block; transform-origin: 50% 0; animation: rl-sway var(--sway-d, 4s) ease-in-out var(--sway-delay, 0s) infinite alternate; }
@keyframes rl-sway { from { rotate: calc(var(--sway-a, 2deg) * -1); } to { rotate: var(--sway-a, 2deg); } }
/* the card's top edge sits on the rail; soft round corners all round */
.rl__pic { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 22px; background: var(--p-surface);
  box-shadow: 0 1px 0 rgb(255 255 255 / .6) inset, 0 22px 34px -18px rgb(20 22 26 / .45), 0 6px 10px -6px rgb(20 22 26 / .25);
  transition: box-shadow .45s cubic-bezier(0.23, 1, 0.32, 1); }
.rl__pic img, .rl__pic video { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; -webkit-user-drag: none; }
/* a cut-out: the piece itself on its own hanger, its hook on the rail; its width comes from the picture */
.rl__item--cut { --w: auto; width: auto; }
.rl__cut { display: block; height: calc(var(--rail-h) * 1.06); width: auto; max-width: none; margin-top: -2px; pointer-events: none; -webkit-user-drag: none;
  filter: drop-shadow(0 18px 16px rgb(20 22 26 / .2)) drop-shadow(0 3px 4px rgb(20 22 26 / .14)); }
/* the price tag: a small card on a short thread from the right clip */
.rl__tag { position: absolute; right: 9%; top: 26px; z-index: 3; padding: 5px 7px 4px; border-radius: 3px; background: #fbfaf7; color: #1d2024;
  font: 600 11px/1 var(--font-text); letter-spacing: .02em; box-shadow: 0 3px 6px -2px rgb(0 0 0 / .25); rotate: 8deg; transform-origin: 0 0; pointer-events: none; }
.rl__tag::before { content: ""; position: absolute; left: 6px; bottom: 100%; width: 1px; height: 18px; background: rgb(30 32 36 / .45); rotate: -24deg; transform-origin: bottom; }
/* the piece under the pointer (or the tapped one) lifts; the rest of the rail fades back */
.rl__stage.is-focus .rl__item { opacity: .42; filter: grayscale(.6); }
.rl__stage.is-focus .rl__item.is-on, .rl__item.is-active { opacity: 1; filter: none; }
.rl__stage.is-focus .rl__item.is-on .rl__body, .rl__item.is-active .rl__body { animation-play-state: paused; }
.rl__item.is-on, .rl__item.is-active { translate: 0 -8px; scale: 1.04; }
.rl__item.is-on .rl__pic { box-shadow: 0 1px 0 rgb(255 255 255 / .6) inset, 0 36px 50px -22px rgb(20 22 26 / .55), 0 10px 16px -8px rgb(20 22 26 / .3); }
.rl__item:focus-visible { outline: none; }
.rl__item:focus-visible .rl__pic, .rl__item--cut:focus-visible .rl__cut { outline: 2px solid #f2f1f6; outline-offset: 4px; }
.rl__stage.is-drag, .rl__stage.is-drag .rl__item { cursor: grabbing; }
.rl__stage.is-drag .rl__body { animation-play-state: paused; }

/* the small line at the bottom: the hint and the loop's progress on the left; the tapped piece on the right */
.rl__info { width: min(100% - 2 * var(--gut), var(--container)); margin: 0 auto; padding-bottom: var(--s-2); display: flex; align-items: end; justify-content: space-between; gap: var(--s-6); }
.rl__hint p { margin: 0 0 10px; font-size: 13px; color: rgb(242 241 246 / .72); }
.rl__progress { display: block; width: 120px; height: 2px; border-radius: 2px; background: rgb(255 255 255 / .18); overflow: hidden; }
.rl__progress i { display: block; height: 100%; background: #f2f1f6; transform-origin: left; transform: scaleX(0); }
.rl__now { text-align: right; display: grid; gap: 6px; justify-items: end; }
.rl__name { margin: 0; color: #f2f1f6; min-height: 1.3em; font: 600 clamp(15px, 1.2vw, 18px)/1.3 var(--font-display); letter-spacing: -0.01em; opacity: 0; translate: 0 6px;
  transition: opacity .3s cubic-bezier(0.23, 1, 0.32, 1), translate .3s cubic-bezier(0.23, 1, 0.32, 1); }
.rl__price { font-family: var(--font-text); font-weight: 500; color: rgb(242 241 246 / .7); margin-left: 6px; }
.has-pick .rl__name { opacity: 1; translate: 0 0; }
.rl__open { font-size: 14px; font-weight: 500; color: #f2f1f6; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }

@media (max-width: 639px) {
  .hero--rail { --rail-h: min(36svh, 60vw); --rail-gap: 14px; }
  .rl__stage { height: calc(var(--rail-h) + 90px); }
  .rl__hint p { max-width: 16ch; }
}
/* reduced motion: the rail stands straight and still and scrolls sideways by hand */
@media (prefers-reduced-motion: reduce) {
  .rl__body { animation: none; }
  .rl__stage { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
  .rl__stage::-webkit-scrollbar { display: none; }
  .rl__track { transform: none !important; padding-right: var(--rail-gap); }
  .rl__progress { display: none; }
}

/* the home page's header sits on the same dark ground as the space hero (kit .nav--tone gives the light words) */
.nav--space { --bg: #07080d; --line: rgb(255 255 255 / .07); }
.nav--space .nav__logo img.brand-logo { filter: invert(1); }
.nav--space .bag-link:hover { background: rgb(255 255 255 / .08); }

/* the discount code box in the bag (bag.html) */
.coupon { margin: var(--s-4, 16px) 0 var(--s-6, 28px); display: grid; gap: 6px; max-width: 420px; }
.coupon label { font-size: 14px; font-weight: 500; }
.coupon__row { display: flex; gap: 8px; }
.coupon__row input { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--line-strong, #c9c8c4); border-radius: 8px; background: transparent; color: inherit; font: inherit; text-transform: uppercase; letter-spacing: .06em; }
.coupon__status { margin: 0; min-height: 1.3em; font-size: 13px; color: var(--muted, #666); }
.coupon__status.is-bad { color: #b3261e; }
