/* =========================================================
   The Clay Arts: homepage and All Products page (Syllage layout)
   Tokens taken from the Syllage template; content from theclayarts.com
   ========================================================= */

:root {
  --bg: #EDEBE7;
  --ink: #030303;
  --muted: #404040;
  --light: #F7F6F2;
  --cream: #EDEBE7;
  --label: #B0B0B0;
  --placeholder: #7A7975;
  --line: rgba(122, 121, 117, .15);
  --line-strong: rgba(3, 3, 3, .12);
  --divider: rgb(138, 128, 110);

  --pad: 40px;
  --gap: 20px;
  --nav-pad-x: 40px;

  --serif: "Italiana", "Times New Roman", serif;
  --sans: "Satoshi", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: -.04em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

body.is-locked { overflow: hidden; }

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; letter-spacing: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; }
p, h1, h2, h3, h4, h5, h6, figure, blockquote { margin: 0; font-weight: inherit; }
input { font: inherit; letter-spacing: inherit; }

.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;
}

:focus-visible { outline: 1px solid currentColor; outline-offset: 3px; }

/* ---------- Type ---------- */
.h1 {
  font-family: var(--serif);
  font-size: 40px;
  line-height: 1.3;
  letter-spacing: -.02em;
  font-weight: 400;
}
.h2 {
  font-family: var(--serif);
  font-size: 36px;
  line-height: 1.3;
  letter-spacing: -.02em;
  font-weight: 400;
}
.h2 em, .h1 em { font-style: italic; }
.h1, .h2 { text-wrap: balance; }

/* Two-line headings, flush left (line breaks fixed on tablet and desktop) */
.stacked-title .l1, .stacked-title .l2 { display: block; white-space: nowrap; }

/* =========================================================
   NAVBAR
   ========================================================= */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: transform .55s var(--ease);
  will-change: transform;
}
.nav.is-hidden { transform: translateY(-100%); }

.nav-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 20px var(--nav-pad-x);
  color: var(--light);
  background-color: rgba(237, 235, 231, 0);
  transition: background-color .4s ease, color .4s ease;
}
.nav-inner::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: var(--line);
  opacity: 0;
  transition: opacity .4s ease;
}
.nav.is-solid .nav-inner { background-color: var(--bg); color: var(--ink); }
.nav.is-solid .nav-inner::after { opacity: 1; }

/* Drawn like the search / account / cart icons (21px, same stroke) in the same 31px button,
   so its lines sit as far from the left edge as the cart icon sits from the right */
.burger {
  justify-self: start;
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  transition: opacity .3s ease;
}
.burger:hover { opacity: .65; }
.burger svg { width: 21px; height: 21px; }

.logo { justify-self: center; display: block; line-height: 0; }
/* The badge file has transparent padding, so it is drawn larger with negative margins to keep the navbar height.
   White over the hero video (like Syllage's light wordmark), full colour once the navbar turns cream. */
.logo img {
  display: block;
  width: 72px;
  height: 72px;
  margin: -14px 0;
  filter: brightness(0) invert(1);
  transition: filter .4s ease;
}
.nav.is-solid .logo img { filter: brightness(1) invert(0); }

/* Right side: search, account, cart */
.nav-actions { justify-self: end; display: flex; align-items: center; gap: 16px; }
.nav-icon {
  position: relative;
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  transition: opacity .3s ease;
}
.nav-icon:hover { opacity: .65; }
.nav-icon svg { width: 21px; height: 21px; }
.cart-count {
  position: absolute;
  top: 0;
  right: -4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--light);
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: 0;
  text-align: center;
  transition: background-color .4s ease, color .4s ease, transform .3s var(--ease);
}
.cart-count[hidden] { display: none; }
.nav.is-solid .cart-count { background: var(--ink); color: var(--cream); }
.cart-count.is-bump { transform: scale(1.25); }

/* =========================================================
   HERO  (sticky; the next section slides over it)
   ========================================================= */
.hero-wrap { position: relative; }

.hero {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  color: var(--light);
  background: #2a2622;
  z-index: 0;
}

.hero-media {
  position: absolute;
  inset: 0;
  transform: scale(1.2);
  transition: transform 2.4s cubic-bezier(.16, 1, .3, 1) .1s;
}
.is-loaded .hero-media { transform: scale(1); }
.hero-media video, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero.is-video-off .hero-video { visibility: hidden; }

.hero-shade { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.hero-shade--top {
  background: linear-gradient(to bottom,
    rgba(0, 0, 0, .57) 0%,
    rgba(0, 0, 0, .37) 12%,
    rgba(0, 0, 0, .23) 17%,
    rgba(0, 0, 0, .09) 33%,
    rgba(0, 0, 0, 0) 45%);
}
.hero-shade--bottom {
  background: linear-gradient(to bottom,
    rgba(0, 0, 0, 0) 60%,
    rgba(0, 0, 0, .17) 67%,
    rgba(0, 0, 0, .41) 78%,
    rgba(0, 0, 0, .61) 89%,
    rgba(0, 0, 0, .61) 100%);
}

/* Short screens (phones held sideways): the text takes up more of the hero, so start the shade higher */
@media (max-height: 560px) {
  .hero-shade--bottom {
    background: linear-gradient(to bottom,
      rgba(0, 0, 0, 0) 22%,
      rgba(0, 0, 0, .3) 42%,
      rgba(0, 0, 0, .55) 65%,
      rgba(0, 0, 0, .66) 100%);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 5px;
  padding: var(--pad);
}
.hero-title { color: var(--light); }

.hero-sub {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
}
.hero-text { max-width: 300px; color: var(--cream); }

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--cream);
  text-transform: uppercase;
  white-space: nowrap;
}
.hero-cta svg { width: 16px; height: 16px; transition: transform .5s var(--ease); }
.hero-cta:hover svg { transform: translateY(3px); }

/* =========================================================
   MINI ABOUT + BEST SELLERS
   ========================================================= */
.about {
  position: relative;
  z-index: 2;
  background: var(--bg);
  padding: var(--pad);
}
/* Section header: heading on the left, short text on the right (Syllage pattern) */
.section-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
}
.section-text {
  width: 410px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}
div.section-text { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  white-space: nowrap;
}
.text-link svg { width: 16px; height: 16px; transition: transform .5s var(--ease); }
.text-link:hover svg { transform: translateX(3px); }

.products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
  margin-top: 40px;
}
/* position: relative keeps the hidden button labels (.sr-only) inside the card, so they can't
   stick out of the swipeable New Arrivals row and widen the page on phones */
.product-card { position: relative; display: flex; flex-direction: column; gap: 14px; }
.pc-link { display: flex; flex-direction: column; gap: 10px; }
.pc-media {
  position: relative;
  aspect-ratio: 325 / 326;
  overflow: hidden;
  background: #dcd8d1;
  transition: transform .6s var(--ease);
}
.pc-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .6s var(--ease); }
.pc-media img + img { opacity: 0; }
.product-card:hover .pc-media { transform: scale(.99); }
.product-card:hover .pc-media img + img { opacity: 1; }

.pc-info { display: flex; flex-direction: column; gap: 5px; }
.pc-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; font-weight: 500; }
.pc-name { font-size: 16px; }
.pc-price { white-space: nowrap; }
.pc-desc { font-size: 14px; color: var(--muted); }

.pc-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  padding: 0 8px;
  background: var(--bg);
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
  line-height: 22px;
}

.atc {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 40px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  transition: background-color .3s ease, color .3s ease;
}
.atc:hover, .atc.is-added { background: var(--ink); color: var(--cream); }
.atc:disabled { opacity: .5; cursor: not-allowed; }

/* =========================================================
   COLLECTIONS
   ========================================================= */
.collections { position: relative; z-index: 2; background: var(--bg); padding: var(--pad); }
.coll-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}
.coll-head p { max-width: 410px; font-size: 14px; font-weight: 500; color: var(--muted); }

.coll-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
  margin-top: 40px;
}
.coll-card {
  position: relative;
  display: block;
  aspect-ratio: 440 / 515;
  overflow: hidden;
  overflow: clip;
  color: var(--cream);
  background: #3a342e;
}
.coll-media { position: absolute; inset: 0; transition: transform .9s var(--ease); }
.coll-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .7s var(--ease); }
.coll-media img + img { opacity: 0; }
.coll-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(3, 3, 3, .42) 0%, rgba(3, 3, 3, .16) 22%, rgba(3, 3, 3, 0) 42%),
    rgba(3, 3, 3, .03);
  transition: background-color .7s var(--ease);
}
.coll-card:hover .coll-media { transform: scale(1.05); }
.coll-card:hover .coll-media img + img { opacity: 1; }
.coll-card:hover .coll-shade { background-color: rgba(3, 3, 3, .13); }

.coll-label {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 15px;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.8;
}

/* =========================================================
   BENEFITS
   ========================================================= */
.benefits {
  position: relative;
  z-index: 2;
  background: var(--bg);
  padding: 0 var(--pad) var(--pad);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.benefit {
  flex: 1 1 0;
  min-width: 0;
  height: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.benefit svg {
  width: 33px;
  height: 33px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.benefit h3 { font-size: 18px; font-weight: 500; line-height: 1.8; }
.benefit p { max-width: 200px; font-size: 14px; line-height: 1.1; color: var(--muted); }

.divider { flex: none; width: 1px; height: 170px; background: var(--divider); opacity: .14; }

/* =========================================================
   WHY THE CLAY ARTS (USPs)
   ========================================================= */
.usp { position: relative; z-index: 2; background: var(--bg); padding: var(--pad); }
/* Header uses the Collections header layout (.coll-head) */

/* The four points use the Benefits row styles (.benefit / .divider) */
.usp-points { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 8px; }
.usp-points .benefit p { text-wrap: balance; }
.nowrap { white-space: nowrap; }

/* =========================================================
   STORY / GALLERY
   ========================================================= */
.story {
  position: relative;
  z-index: 2;
  background: var(--bg);
  padding: var(--pad);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--gap);
}
.story-left { display: flex; flex-direction: column; gap: 20px; min-height: 0; }
.story-text { display: flex; flex-direction: column; gap: 10px; }
.story-text p { font-size: 14px; font-weight: 500; color: var(--muted); }

.story-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: var(--gap);
}
.sg-item, .story-tall { position: relative; overflow: hidden; background: #dcd8d1; }
.sg-item img, .story-tall img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sg-wide { grid-column: 1 / -1; }
.story-tall { aspect-ratio: 670 / 742; }

/* =========================================================
   TESTIMONIALS  (Syllage quote style, as a slider)
   ========================================================= */
.testimonials {
  position: relative;
  z-index: 2;
  background: var(--bg);
  padding: 80px var(--pad);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}
.t-label { font-size: 14px; font-weight: 500; color: var(--muted); }
.t-track { display: grid; width: 100%; max-width: 960px; }
.t-slide {
  grid-area: 1 / 1;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .7s var(--ease), transform .7s var(--ease), visibility 0s linear .7s;
}
.t-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .7s var(--ease), transform .7s var(--ease), visibility 0s;
}
.t-slide blockquote { margin: 0; }
.t-by {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-family: "Inter", var(--sans);
  font-style: italic;
  font-size: 18px;
  color: var(--muted);
}
.t-meta { font-family: var(--sans); font-style: normal; font-size: 12px; color: var(--muted); opacity: .8; }

.t-controls { display: flex; align-items: center; gap: 18px; }
.t-arrow {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--ink);
  transition: background-color .3s ease, border-color .3s ease, color .3s ease;
}
.t-arrow svg { width: 16px; height: 16px; }
.t-arrow:hover { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.t-dots { display: flex; gap: 8px; }
.t-dots button { width: 6px; height: 6px; border-radius: 50%; background: var(--ink); opacity: .2; transition: opacity .3s ease, transform .3s ease; }
.t-dots button[aria-current="true"] { opacity: 1; transform: scale(1.15); }

/* =========================================================
   NEW ARRIVALS
   ========================================================= */
.arrivals { position: relative; z-index: 2; background: var(--bg); padding: var(--pad); }

/* =========================================================
   FAQ
   ========================================================= */
.faq {
  position: relative;
  z-index: 2;
  background: var(--bg);
  padding: 80px var(--pad);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 40px;
}
.faq-intro { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.faq-intro p { max-width: 340px; font-size: 14px; font-weight: 500; color: var(--muted); }

.faq-list { border-top: 1px solid var(--line-strong); }
.faq-item { border-bottom: 1px solid var(--line-strong); }
.faq-q button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 22px 0;
  text-align: left;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5;
}
.faq-icon { position: relative; flex: none; width: 14px; height: 14px; }
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 14px;
  height: 1px;
  background: currentColor;
  transition: transform .45s var(--ease);
}
.faq-icon::after { transform: rotate(90deg); }
.faq-item.is-open .faq-icon::after { transform: rotate(0deg); }

.faq-a { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .5s var(--ease); }
.js .faq-a { grid-template-rows: 0fr; }
.js .faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
/* Collapsed answers stay out of the tab order and screen reader view */
.js .faq-a > div { visibility: hidden; transition: visibility 0s linear .5s; }
.js .faq-item.is-open .faq-a > div { visibility: visible; transition: visibility 0s; }
.faq-a p { max-width: 620px; padding: 0 40px 22px 0; font-size: 14px; color: var(--muted); }
.faq-a a { text-decoration: underline; text-underline-offset: 3px; }

/* =========================================================
   SHOPPABLE VIDEOS
   ========================================================= */
.shop-videos { position: relative; z-index: 2; background: var(--bg); padding: var(--pad); }
.sv-arrows { display: flex; gap: 10px; }
.sv-arrows .t-arrow[aria-disabled="true"] { opacity: .3; cursor: default; background: transparent; border-color: var(--line-strong); color: var(--ink); }

.sv-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 3 * var(--gap)) / 4);
  gap: var(--gap);
  margin-top: 40px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.sv-track::-webkit-scrollbar { display: none; }

.sv-card { position: relative; aspect-ratio: 9 / 16; overflow: hidden; background: #2a2622; scroll-snap-align: start; }
.sv-media { position: absolute; inset: 0; transition: transform .9s var(--ease); }
.sv-poster, .sv-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* The video fades in over its poster once it is actually playing */
.sv-video { opacity: 0; transition: opacity .6s ease; }
.sv-card.is-playing .sv-video { opacity: 1; }
.sv-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(0, 0, 0, .42) 0%, rgba(0, 0, 0, 0) 34%);
}
.sv-card:hover .sv-media { transform: scale(1.03); }

.sv-open { position: absolute; inset: 0; z-index: 1; width: 100%; cursor: pointer; }
.sv-open:focus-visible { outline: 2px solid var(--cream); outline-offset: -6px; }

.sv-product {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: rgba(18, 16, 14, .42);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: #fff;
  pointer-events: none;
}
.sv-thumb { flex: none; width: 52px; height: 52px; object-fit: cover; background: #fff; }
.sv-meta { flex: 1; min-width: 0; }
.sv-name { font-size: 15px; font-weight: 500; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sv-price { font-size: 14px; line-height: 1.5; }
.sv-price s { margin-left: 6px; opacity: .65; }
.sv-add {
  pointer-events: auto;
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--ink);
  transition: background-color .3s ease, color .3s ease;
}
.sv-add:hover, .sv-add.is-added { background: var(--ink); color: var(--cream); }
.sv-add svg { width: 19px; height: 19px; }
.sv-add .i-check, .sv-add.is-added .i-bag { display: none; }
.sv-add.is-added .i-check { display: block; }

/* =========================================================
   NEWSLETTER
   ========================================================= */
.newsletter {
  position: relative;
  height: clamp(440px, 64vh, 620px);
  height: clamp(440px, 64svh, 620px);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  color: var(--cream);
  background: #2a2622;
}
.nl-media { position: absolute; inset: 0; }
.nl-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nl-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to bottom,
    rgba(0, 0, 0, .12) 0%,
    rgba(0, 0, 0, 0) 30%,
    rgba(0, 0, 0, .12) 60%,
    rgba(0, 0, 0, .45) 85%,
    rgba(0, 0, 0, .58) 100%);
}
.nl-content { position: relative; z-index: 2; width: 100%; padding: var(--pad); }
.nl-text { margin-top: 10px; font-size: 14px; line-height: 1.1; }

.nl-form { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 20px; }
.nl-form input {
  width: 330px;
  height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 0;
  background: rgba(237, 235, 231, .1);
  color: var(--cream);
  font-size: 16px;
  outline: none;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.nl-form input::placeholder { color: var(--placeholder); opacity: 1; }
.nl-form input:focus { background: rgba(237, 235, 231, .16); }
.nl-form button {
  width: 150px;
  height: 40px;
  background: var(--cream);
  color: var(--ink);
  transition: background-color .3s ease;
}
.nl-form button:hover { background: #fff; }

.form-note { flex-basis: 100%; min-height: 0; font-size: 14px; line-height: 1.4; }
.form-note:empty { display: none; }

/* Light-photo variant (used with bright images like whitespeckled.png): dark text over a soft cream wash.
   Remove the newsletter--light class in index.html to go back to cream text on a dark gradient. */
.newsletter--light { color: var(--ink); }
/* Soft cream fade from the middle down, eased so it has no visible edge */
.newsletter--light .nl-shade {
  background: linear-gradient(to bottom,
    rgba(237, 235, 231, 0) 25%,
    rgba(237, 235, 231, .05) 33%,
    rgba(237, 235, 231, .14) 41%,
    rgba(237, 235, 231, .27) 50%,
    rgba(237, 235, 231, .42) 59%,
    rgba(237, 235, 231, .57) 68%,
    rgba(237, 235, 231, .7) 78%,
    rgba(237, 235, 231, .8) 89%,
    rgba(237, 235, 231, .86) 100%);
}
.newsletter--light .nl-form input { background: rgba(255, 255, 255, .7); color: var(--ink); }
.newsletter--light .nl-form input::placeholder { color: #57564f; }
.newsletter--light .nl-form input:focus { background: rgba(255, 255, 255, .85); }
.newsletter--light .nl-form button { background: var(--ink); color: var(--cream); }
.newsletter--light .nl-form button:hover { background: #2a2826; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  position: relative;
  z-index: 2;
  background: var(--ink);
  color: var(--cream);
  padding: var(--pad);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.f-top { display: flex; gap: 20px; }
.f-about { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.f-label { font-size: 12px; color: var(--label); }
.f-about-text { max-width: 400px; font-size: 18px; font-weight: 500; }

.f-cols { display: flex; gap: 10px; width: 440px; flex: none; }
.f-col { width: 140px; display: flex; flex-direction: column; gap: 5px; align-items: flex-start; }
.f-col a, .f-col span { transition: opacity .3s ease; }
.f-col a:hover { opacity: .6; }

.f-mark {
  display: block;
  overflow: hidden;
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -.02em;
  text-align: center;
  white-space: nowrap;
  font-size: 18vw;
}
.f-mark span { display: inline-block; }

.f-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; font-size: 14px; font-weight: 500; }

/* =========================================================
   MENU OVERLAY
   ========================================================= */
.menu, .cart, .popup, .sv-modal, .search, .quick-add {
  position: fixed;
  inset: 0;
  z-index: 100;
  visibility: hidden;
  opacity: 0;
  transition: opacity .45s var(--ease), visibility 0s linear .45s;
}
.menu.is-open, .cart.is-open, .popup.is-open, .sv-modal.is-open, .search.is-open, .quick-add.is-open {
  visibility: visible;
  opacity: 1;
  transition: opacity .45s var(--ease), visibility 0s;
}
.menu-backdrop, .cart-backdrop, .popup-backdrop, .search-backdrop, .qa-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .4); }

.menu-panel {
  position: relative;
  width: 800px;
  max-width: 100%;
  height: 100%;
  display: flex;
  gap: 10px;
  padding: 20px;
  background: #fff;
}
.menu-links {
  width: 247px;
  flex: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  overflow-y: auto;
}
/* Close buttons (menu, search, cart): the same 21px drawn icon and 31px button as the navbar icons */
.menu-close, .x-btn {
  flex: none;
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  color: var(--ink);
  transition: opacity .3s ease;
}
.menu-close:hover, .x-btn:hover { opacity: .65; }
.menu-close svg, .x-btn svg, .svm-close svg { width: 21px; height: 21px; }

.menu-group { display: flex; flex-direction: column; gap: 5px; }
.menu-group .label { font-size: 12px; color: var(--label); }
.menu-group a { color: var(--ink); transition: opacity .3s ease; align-self: flex-start; }
.menu-group a:hover { opacity: .55; }

.menu-feature {
  position: relative;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: var(--cream);
  background: #3a342e;
}
.menu-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.2s var(--ease); }
.menu-feature::after { content: ""; position: absolute; inset: 0; background: rgba(3, 3, 3, .38); }
.menu-feature span { position: relative; z-index: 1; padding: 5px; font-size: 24px; font-weight: 500; }
.menu-feature:hover img { transform: scale(1.1); }

/* =========================================================
   SEARCH PANEL (slides down from the top)
   ========================================================= */
.search-panel {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 28px var(--pad) 36px;
  background: var(--bg);
  transform: translateY(-100%);
  transition: transform .55s var(--ease);
}
.search.is-open .search-panel { transform: none; }
.search-row { display: flex; align-items: center; gap: 24px; }
.search-form {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--ink);
}
.search-glass { flex: none; width: 22px; height: 22px; color: var(--ink); }
.search-form input[type="search"] {
  flex: 1;
  min-width: 0;
  height: 64px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-size: 24px;
  letter-spacing: -.02em;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.search-form input[type="search"]::placeholder { color: var(--placeholder); opacity: 1; }
.search-form input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }
.search-submit {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--ink);
  transition: background-color .3s ease, color .3s ease;
}
.search-submit:hover { background: var(--ink); color: var(--cream); }
.search-submit svg { width: 18px; height: 18px; }
.search-close { flex: none; }

.search-popular { margin-top: 22px; }
.search-label { font-size: 12px; color: var(--muted); }
.search-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.search-tags a {
  padding: 6px 14px;
  border: 1px solid var(--line-strong);
  font-size: 13px;
  line-height: 1.5;
  transition: background-color .25s ease, border-color .25s ease, color .25s ease;
}
.search-tags a:hover { background: var(--ink); border-color: var(--ink); color: var(--cream); }

/* =========================================================
   CART DRAWER
   ========================================================= */
.cart-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 400px;
  max-width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  transform: translateX(100%);
  transition: transform .55s var(--ease);
}
.cart.is-open .cart-panel { transform: none; }
.cart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}
.cart-head { flex: none; }

.cart-items { flex: 1; min-height: 0; overflow-y: auto; margin: 0; padding: 0 16px; list-style: none; }
.cart-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.cart-item img { width: 72px; height: 72px; object-fit: cover; background: #dcd8d1; }
.ci-name { display: block; font-size: 14px; font-weight: 500; line-height: 1.4; }
.ci-option { font-size: 12px; line-height: 1.5; color: var(--muted); }
.ci-qty { display: inline-flex; align-items: center; height: 30px; margin-top: 8px; border: 1px solid var(--line-strong); }
.ci-qty button { width: 28px; height: 100%; font-size: 14px; line-height: 1; }
.ci-qty button:hover { background: rgba(3, 3, 3, .05); }
.ci-qty span { min-width: 22px; font-size: 13px; text-align: center; }
.ci-side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; }
.ci-price { font-size: 14px; font-weight: 500; white-space: nowrap; }
.ci-remove { font-size: 12px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }

.cart-foot { flex: none; display: flex; flex-direction: column; gap: 10px; padding: 16px; border-top: 1px solid var(--line); }
.cart-foot[hidden] { display: none; }
.cart-subtotal { display: flex; justify-content: space-between; font-weight: 500; }
.cart-note { font-size: 12px; line-height: 1.5; color: var(--muted); }
.cart-checkout {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  transition: opacity .3s ease;
}
.cart-checkout:hover { opacity: .85; }

/* =========================================================
   SHOPPABLE VIDEO VIEWER
   ========================================================= */
.sv-modal { z-index: 105; display: flex; align-items: center; justify-content: center; }
.sv-modal-backdrop { position: absolute; inset: 0; background: rgba(12, 10, 9, .82); }
.svm-shell { position: relative; display: flex; align-items: center; gap: 24px; max-width: calc(100% - 32px); }
.svm-prev { order: -1; }
.svm-box {
  position: relative;
  display: flex;
  height: min(86vh, 820px);
  background: var(--bg);
  transform: translateY(24px) scale(.98);
  transition: transform .6s var(--ease);
}
.sv-modal.is-open .svm-box { transform: none; }

.svm-stage { position: relative; flex: none; height: 100%; aspect-ratio: 9 / 16; overflow: hidden; background: #000; }
.svm-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.svm-progress { position: absolute; top: 12px; left: 12px; right: 12px; z-index: 1; height: 2px; background: rgba(255, 255, 255, .3); }
.svm-progress span { display: block; height: 100%; background: #fff; transform-origin: 0 50%; transform: scaleX(0); }
.svm-sound {
  position: absolute;
  top: 26px;
  right: 12px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .38);
  color: #fff;
}
.svm-sound svg { width: 18px; height: 18px; }
.svm-sound .i-muted, .svm-sound.is-muted .i-sound { display: none; }
.svm-sound.is-muted .i-muted { display: block; }

.svm-close { position: absolute; top: 20px; right: 20px; z-index: 3; display: grid; place-items: center; width: 32px; height: 32px; color: var(--ink); }

.svm-panel { position: relative; width: 380px; padding: 72px 32px 32px; display: flex; flex-direction: column; gap: 18px; overflow-y: auto; }
.svm-head { display: flex; align-items: center; gap: 14px; }
.svm-thumb { flex: none; width: 64px; height: 64px; object-fit: cover; background: #fff; }
.svm-titles { min-width: 0; }
.svm-name { font-size: 18px; font-weight: 500; line-height: 1.35; }
.svm-price { margin-top: 2px; font-size: 15px; }
.svm-was { margin-left: 8px; color: var(--muted); }
.svm-was:empty { display: none; }
.svm-desc { font-size: 14px; line-height: 1.7; color: var(--muted); }

.svm-options { min-width: 0; margin: 0; padding: 0; border: 0; }
.svm-options legend { margin-bottom: 8px; padding: 0; font-size: 12px; color: var(--muted); }
.svm-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.svm-pill { position: relative; }
.svm-pill input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.svm-pill span { display: block; padding: 7px 12px; border: 1px solid var(--line-strong); font-size: 13px; line-height: 1.3; transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.svm-pill input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--cream); }
.svm-pill input:focus-visible + span { outline: 1px solid var(--ink); outline-offset: 2px; }

.svm-add { height: 46px; margin-top: 4px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 500; transition: opacity .3s ease; }
.svm-add:hover { opacity: .85; }
.svm-link { align-self: flex-start; }

.svm-nav {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 50%;
  color: #fff;
  transition: background-color .3s ease, border-color .3s ease, color .3s ease;
}
.svm-nav:hover { background: var(--cream); border-color: var(--cream); color: var(--ink); }
.svm-nav svg { width: 16px; height: 16px; }

/* =========================================================
   POPUP
   ========================================================= */
.popup { display: flex; align-items: center; justify-content: center; z-index: 110; }
.popup-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 800px;
  max-width: calc(100% - 40px);
  height: 420px;
  background: #fff;
  transform: translateY(24px) scale(.98);
  transition: transform .6s var(--ease);
}
.popup.is-open .popup-card { transform: none; }
.popup-body {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  padding: 40px;
}
.popup-close {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bg);
  color: var(--ink);
  transition: background-color .3s ease;
}
.popup-close:hover { background: #e2dfd9; }
.popup-close svg { width: 14px; height: 14px; }
.popup-title { font-size: 18px; font-weight: 500; }
.popup-form { display: flex; flex-direction: column; gap: 10px; }
.popup-form > * { flex: none; }
.popup-form input {
  height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 0;
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  outline: none;
}
.popup-form input::placeholder { color: var(--placeholder); opacity: 1; }
.popup-form button { height: 40px; background: var(--ink); color: #fff; font-size: 14px; transition: opacity .3s ease; }
.popup-form button:hover { opacity: .85; }
.popup-media { position: relative; overflow: hidden; background: #dcd8d1; }
.popup-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Viewer on tablets and phones: full-screen video with a product sheet */
@media (max-width: 999px) {
  .svm-shell { width: 100%; height: 100%; max-width: none; gap: 0; }
  .svm-box { width: 100%; height: 100%; background: #000; transform: none; }
  .sv-modal.is-open .svm-box { transform: none; }
  .svm-stage { position: absolute; inset: 0; height: auto; aspect-ratio: auto; }
  .svm-video { object-fit: contain; }
  .svm-progress { top: 8px; }
  .svm-close { top: 18px; right: 14px; width: 40px; height: 40px; border-radius: 50%; background: rgba(0, 0, 0, .38); color: #fff; }
  .svm-sound { top: 18px; right: auto; left: 14px; width: 40px; height: 40px; }
  .svm-panel {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    z-index: 2;
    width: auto;
    max-height: 58%;
    padding: 14px;
    gap: 12px;
    background: rgba(237, 235, 231, .95);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }
  .svm-thumb { width: 52px; height: 52px; }
  .svm-name { font-size: 16px; }
  .svm-desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .svm-add { margin-top: 0; }
  .svm-nav { position: absolute; top: 38%; z-index: 2; width: 40px; height: 40px; border-color: transparent; background: rgba(0, 0, 0, .38); }
  .svm-prev { left: 10px; }
  .svm-next { right: 10px; }
}
@media (max-width: 600px) {
  .svm-video { object-fit: cover; }
  .svm-desc { display: none; }
}

/* =========================================================
   ALL PRODUCTS PAGE  (Syllage store page: a photo banner with
   the page title, then the catalogue on cream)
   ========================================================= */
/* Banner: same height as the newsletter section; scrolls away (not sticky) */
.hero.hero--page {
  position: relative;
  height: clamp(440px, 64vh, 620px);
  height: clamp(440px, 64svh, 620px);
}
.hero--page .hero-content { gap: 10px; padding: 40px; }
/* Soft dark fade from the middle down behind the cream text (eased, so it has no visible edge),
   plus a gentle corner shade behind the title for the brighter photos */
.hero--page .hero-shade--bottom {
  background:
    radial-gradient(ellipse 55% 75% at 0% 100%, rgba(0, 0, 0, .3) 0%, rgba(0, 0, 0, .17) 45%, rgba(0, 0, 0, 0) 100%),
    linear-gradient(to bottom,
    rgba(0, 0, 0, 0) 30%,
    rgba(0, 0, 0, .03) 38%,
    rgba(0, 0, 0, .09) 46%,
    rgba(0, 0, 0, .18) 54%,
    rgba(0, 0, 0, .29) 62%,
    rgba(0, 0, 0, .41) 71%,
    rgba(0, 0, 0, .52) 80%,
    rgba(0, 0, 0, .6) 90%,
    rgba(0, 0, 0, .64) 100%);
}
/* Each category has its own photo; a new one fades in over the old (shop.js). --pos / --pos-m frame the crop */
.hero--page .hero-media img { opacity: 0; object-position: var(--pos, 50% 50%); transition: opacity .9s var(--ease); }
.hero--page .hero-media img.is-current { opacity: 1; }
.hero-intro { max-width: 540px; font-size: 18px; color: var(--cream); }
/* Replayed when the category (and so the intro text) changes */
.hero-intro.is-swapped { animation: intro-in .8s var(--ease) both; }
@keyframes intro-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.catalog { position: relative; z-index: 2; background: var(--bg); padding: 40px; }

/* Category filters and sorting (the catalogue is too long to browse without them) */
.catalog-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid var(--line-strong);
  font-size: 13px;
  line-height: 1.5;
  white-space: nowrap;
  transition: background-color .25s ease, border-color .25s ease, color .25s ease;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.chip-n { font-size: 11px; opacity: .6; }

.catalog-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.catalog-count { color: var(--muted); }
.catalog-sort { display: flex; align-items: center; gap: 8px; }
.catalog-sort label { color: var(--muted); }
.catalog-sort select {
  height: 32px;
  padding: 0 20px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%23030303' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right center / 14px;
  color: var(--ink);
  font: inherit;
  font-weight: 500;
  letter-spacing: inherit;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  field-sizing: content; /* as wide as the chosen option (shop.js sizes it where this isn't supported) */
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px var(--gap);
  margin-top: 20px;
}
.catalog-grid .product-card[hidden] { display: none; }

/* Sale price: current price with the regular price struck through beneath it */
.pc-price--sale { display: flex; flex-direction: column; align-items: flex-end; }
.pc-price s { font-size: 13px; font-weight: 400; line-height: 1.5; color: var(--muted); }

.catalog-more { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 60px; }
.catalog-more[hidden] { display: none; }
.catalog-progress { font-size: 14px; color: var(--muted); }
.catalog-track { width: 220px; height: 1px; background: var(--line-strong); }
.catalog-track span { display: block; height: 100%; background: var(--ink); transform-origin: 0 50%; transition: transform .6s var(--ease); }
.catalog-more-btn {
  width: 220px;
  height: 44px;
  margin-top: 8px;
  border: 1px solid var(--ink);
  font-size: 14px;
  font-weight: 500;
  transition: background-color .3s ease, color .3s ease;
}
.catalog-more-btn:hover { background: var(--ink); color: var(--cream); }

/* Quick add: pick an option (size, colour, set) without leaving the grid */
.quick-add { z-index: 105; display: flex; align-items: center; justify-content: center; }
.qa-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  width: 880px;
  max-width: calc(100% - 40px);
  height: min(500px, calc(100vh - 40px));
  height: min(500px, calc(100svh - 40px));
  background: var(--bg);
  transform: translateY(24px) scale(.98);
  transition: transform .6s var(--ease);
}
.quick-add.is-open .qa-card { transform: none; }
.qa-media { position: relative; overflow: hidden; background: #dcd8d1; }
.qa-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.qa-body { min-height: 0; display: flex; flex-direction: column; gap: 18px; padding: 72px 40px 40px; overflow-y: auto; }
/* Content sits at the bottom like the newsletter popup; margin-top:auto keeps it scrollable when long */
.qa-head { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.qa-thumb { display: none; flex: none; width: 64px; height: 64px; object-fit: cover; background: #dcd8d1; }
.qa-titles { min-width: 0; }
.qa-desc { font-size: 14px; line-height: 1.7; color: var(--muted); }
.qa-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--ink);
  transition: background-color .3s ease;
}
.qa-close:hover { background: #e2dfd9; }
.qa-close svg { width: 14px; height: 14px; }
.svm-pill input:disabled { cursor: not-allowed; }
.svm-pill input:disabled + span { color: var(--placeholder); text-decoration: line-through; }

@media (max-width: 1199px) {
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 809px) {
  /* On phones the title and intro fill about half the banner, so the fade starts higher */
  .hero--page .hero-shade--bottom {
    background: linear-gradient(to bottom,
      rgba(0, 0, 0, 0) 12%,
      rgba(0, 0, 0, .05) 22%,
      rgba(0, 0, 0, .14) 32%,
      rgba(0, 0, 0, .27) 42%,
      rgba(0, 0, 0, .4) 53%,
      rgba(0, 0, 0, .52) 65%,
      rgba(0, 0, 0, .61) 79%,
      rgba(0, 0, 0, .66) 100%);
  }
  .hero--page .hero-media img { object-position: var(--pos-m, var(--pos, 50% 50%)); }

  .catalog-grid { grid-template-columns: 1fr; }

  /* One swipeable row of filters on phones */
  .catalog-filters {
    flex-wrap: nowrap;
    margin: 0 -40px;
    padding: 0 40px 2px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .catalog-filters::-webkit-scrollbar { display: none; }
  .chip { flex: none; }

  .quick-add { align-items: flex-end; }
  .qa-card {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: none;
    height: auto;
    max-height: calc(100vh - 60px);
    max-height: calc(100svh - 60px);
    transform: translateY(100%);
  }
  .qa-media { display: none; }
  .qa-thumb { display: block; }
  .qa-body { padding: 20px 20px calc(20px + env(safe-area-inset-bottom, 0px)); gap: 14px; }
  .qa-head { padding-right: 44px; }
  .qa-close { top: 20px; right: 16px; background: var(--light); }
}

@media (max-width: 380px) {
  .catalog-sort label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* =========================================================
   ANIMATION STATES (only when JS is running)
   ========================================================= */
.js [data-split] .w {
  display: inline-block;
  opacity: .001;
  filter: blur(10px);
  transform: translateY(10px);
  transition:
    opacity .9s var(--ease),
    filter .9s var(--ease),
    transform .9s var(--ease);
  transition-delay: calc(var(--d, 0s) + var(--i, 0) * 55ms);
}
.js [data-split].in .w { opacity: 1; filter: blur(0); transform: none; }

.js [data-reveal] {
  opacity: 0;
  transform: translateY(var(--ry, 10px));
  transition:
    opacity 1s var(--ease) var(--rd, 0s),
    transform 1s var(--ease) var(--rd, 0s);
}
.js [data-reveal].in { opacity: var(--ro, 1); transform: none; }

.js [data-hero-fade] {
  opacity: .001;
  transform: translateY(28px);
  transition: opacity 1s var(--ease) .75s, transform 1s var(--ease) .75s;
}
.js.is-loaded [data-hero-fade] { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-split] .w,
  .js [data-reveal],
  .js [data-hero-fade] { opacity: var(--ro, 1) !important; filter: none !important; transform: none !important; transition: none !important; }
  .hero-media { transform: none !important; transition: none !important; }
  .hero-intro.is-swapped { animation: none; }
  .hero--page .hero-media img { transition: none; }
}

/* =========================================================
   TABLET  (810px – 1199px)
   ========================================================= */
@media (max-width: 1199px) {
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .coll-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq { grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); }
  .sv-track { grid-auto-columns: calc((100% - 2 * var(--gap)) / 3); }

  .story { grid-template-columns: 1fr; }
  .story-grid { display: none; }
  .story-tall { aspect-ratio: 920 / 1019; }

  .f-top { flex-direction: column; gap: 40px; }
  .f-cols { width: auto; }
}

/* =========================================================
   MOBILE  (< 810px)
   ========================================================= */
@media (max-width: 809px) {
  /* Navbar uses the same 20px margin as the page on phones, leaving room for three icons */
  :root { --pad: 20px; --nav-pad-x: 20px; }

  .nav-inner { padding-top: 16px; padding-bottom: 16px; }
  .nav-actions { gap: 6px; }
  .nav-icon, .burger { width: 30px; height: 30px; }
  .search-panel { padding: 16px var(--pad) 24px; }
  .search-row { gap: 14px; }
  .search-form input[type="search"] { height: 54px; font-size: 18px; }
  .logo img { width: 60px; height: 60px; margin: -12px 0; }

  .hero-title br { display: none; }

  .hero-sub { flex-direction: column; align-items: flex-start; gap: 20px; }

  .stacked-title .l1, .stacked-title .l2 { display: inline; white-space: normal; }

  .section-top { flex-direction: column; align-items: flex-start; gap: 20px; }
  .section-text { width: auto; }
  .products { grid-template-columns: 1fr; gap: 40px; }

  /* New arrivals: swipeable row on phones */
  .products--scroll {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 80%;
    gap: 16px;
    margin-left: calc(var(--pad) * -1);
    margin-right: calc(var(--pad) * -1);
    padding: 0 var(--pad) 4px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 var(--pad);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .products--scroll::-webkit-scrollbar { display: none; }
  .products--scroll > * { scroll-snap-align: start; }

  .coll-head { align-items: flex-start; text-align: left; }
  .coll-grid { grid-template-columns: 1fr; }

  .benefits, .usp-points { flex-direction: column; gap: 0; }
  .benefit { width: 100%; flex: none; height: 200px; }
  .divider { display: none; }

  .story-tall { aspect-ratio: 350 / 387; }


  /* Shoppable videos: swipeable row on phones */
  .sv-arrows { display: none; }
  .sv-track {
    grid-auto-columns: 72%;
    gap: 12px;
    margin-left: calc(var(--pad) * -1);
    margin-right: calc(var(--pad) * -1);
    padding: 0 var(--pad);
    scroll-padding: 0 var(--pad);
  }
  .sv-product { left: 8px; right: 8px; bottom: 8px; gap: 10px; padding: 8px; }
  .sv-thumb { width: 44px; height: 44px; }
  .sv-name { font-size: 14px; }
  .sv-price { font-size: 13px; }
  .sv-add { width: 34px; height: 34px; }

  .testimonials { padding: 60px var(--pad); }
  .testimonials .t-slide blockquote { font-size: 28px; }
  .t-by { font-size: 16px; }

  .faq { grid-template-columns: 1fr; gap: 30px; padding: 60px var(--pad); }
  .faq-q button { font-size: 16px; padding: 18px 0; }
  .faq-a p { padding-right: 24px; }

  .nl-form { gap: 10px; }
  /* On phones the text covers more of the photo, so the cream fade starts higher and ends stronger */
  .newsletter--light .nl-shade {
    background: linear-gradient(to bottom,
      rgba(237, 235, 231, 0) 12%,
      rgba(237, 235, 231, .07) 21%,
      rgba(237, 235, 231, .18) 30%,
      rgba(237, 235, 231, .33) 40%,
      rgba(237, 235, 231, .5) 51%,
      rgba(237, 235, 231, .65) 63%,
      rgba(237, 235, 231, .78) 76%,
      rgba(237, 235, 231, .86) 89%,
      rgba(237, 235, 231, .9) 100%);
  }
  .nl-form input, .nl-form button { width: 100%; }

  .f-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 10px; width: 100%; }
  .f-col { width: auto; }
  .f-col--legal { align-items: flex-end; text-align: right; }
  .f-bottom { align-items: flex-end; }
  .f-bottom p:first-child { max-width: 160px; }

  .menu-panel { width: 100%; }
  .menu-links { width: 100%; }
  .menu-feature { display: none; }

  .popup-card { grid-template-columns: 1fr; height: auto; }
  .popup-body { padding: 72px 24px 24px; }
  .popup-media { display: none; }
}
