/* ==========================================================================
   CRINIÈRE — base stylesheet
   Tokens → reset → primitives → sections → templates
   RTL-first: physical left/right values are intentional and match the design.
   ========================================================================== */

/* --- Tokens --------------------------------------------------------------- */
:root {
  --ink: #1C1917;
  --paper: #FBFAF8;
  --sand: #F1ECE6;
  --white: #FFFFFF;

  --text-body: #4A433E;
  --text-meta: #6B625B;
  --text-meta-light: #8F857D;

  --on-dark: #F3EFEA;
  --on-dark-muted: #D6CEC6;
  --on-dark-dim: #B8ADA4;

  --line: #E7E2DC;
  --line-soft: #E1DBD4;
  --line-dark: #3A3431;
  --track-dark: #2E2926;

  --accent: #E8C9B8;
  --link-hover: #5A2620;

  --font-heading: 'Noto Sans Hebrew', system-ui, -apple-system, sans-serif;
  --font-body: 'Assistant', system-ui, -apple-system, sans-serif;
  --font-accent: 'Oswald', 'Assistant', system-ui, sans-serif;

  --page: 1440px;
  --gutter: clamp(16px, 4vw, 48px);
  --section-y: clamp(64px, 9vw, 128px);
  --head-gap: clamp(32px, 4vw, 56px);
  --grid-gap: clamp(12px, 1.6vw, 24px);

  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-offset: 110px;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--link-hover); }

button { font: inherit; color: inherit; background: transparent; border: 0; }

h1, h2, h3, h4, p, blockquote, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }

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

.skip-link {
  position: absolute;
  top: -60px;
  right: 16px;
  z-index: 60;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 20px;
  font-size: 15px;
  transition: top .2s;
}
.skip-link:focus { top: 8px; color: var(--paper); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --- Layout primitives ---------------------------------------------------- */
.page {
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--flush-bottom { padding-bottom: 0; }

/* Shopify placeholder SVGs, shown until a merchant picks a real image. */
.placeholder { width: 100%; height: 100%; background: var(--sand); fill: #CFC7BE; }
.formula__media > .placeholder { position: absolute; inset: 0; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: var(--head-gap);
}
.section-head__text { display: flex; flex-direction: column; gap: 14px; }
.section-head__aside {
  margin: 0;
  max-width: 380px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-body);
}

/* --- Type ----------------------------------------------------------------- */
.eyebrow {
  font-family: var(--font-accent);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--text-meta);
  direction: ltr;
  text-align: right;
}
.eyebrow--light { color: var(--on-dark-dim); }
.eyebrow--ink { color: var(--ink); }

.h1, .h2, .h3 {
  font-family: var(--font-heading);
  font-weight: 200;
  text-wrap: balance;
}
.h1 { font-size: clamp(44px, 6.4vw, 104px); line-height: 1; letter-spacing: -.01em; }
.h2 { font-size: clamp(34px, 4vw, 56px); line-height: 1.1; }
.h3 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.12; }

/* The "emphasis play": merchant bolds the key words in the richtext setting.
   inline_richtext emits <b>, richtext emits <strong> — both must land on 700. */
.h1 strong, .h2 strong, .h3 strong, .quote strong,
.h1 b, .h2 b, .h3 b, .quote b { font-weight: 700; }
.h1 p, .h2 p, .h3 p, .quote p { margin: 0; }

/* Latin product names sit right-aligned but read left-to-right. */
.latin { direction: ltr; text-align: right; }

.product-name {
  font-family: var(--font-accent);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: .08em;
  direction: ltr;
  text-align: right;
}

.lead { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.6; text-wrap: pretty; }
.body-muted { color: var(--text-body); line-height: 1.6; text-wrap: pretty; }
.meta { font-size: 14px; color: var(--text-meta); }

.link-underline {
  align-self: flex-start;
  font-size: 15px;
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
}

.rte > * + * { margin-top: 1em; }
.rte a { border-bottom: 1px solid currentColor; }
.rte ul { list-style: disc; padding-inline-start: 1.2em; }
.rte ol { list-style: decimal; padding-inline-start: 1.2em; }

/* --- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.2;
  padding: 16px 36px;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: background .25s, color .25s, border-color .25s;
}
.btn--solid-paper { background: var(--paper); color: var(--ink); }
.btn--solid-paper:hover { background: var(--ink); color: var(--paper); }

.btn--solid-ink { background: var(--ink); color: var(--paper); }
.btn--solid-ink:hover { background: transparent; color: var(--ink); border-color: var(--ink); }

.btn--outline-paper { border-color: var(--paper); color: var(--paper); padding: 15px 30px; }
.btn--outline-paper:hover { background: var(--paper); color: var(--ink); }

.btn--outline-ink {
  width: 100%;
  padding: 14px;
  border-color: var(--ink);
  background: transparent;
  color: var(--ink);
}
.btn--outline-ink:hover,
.btn--outline-ink.is-added { background: var(--ink); color: var(--paper); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn[disabled]:hover { background: transparent; color: var(--ink); }

/* --- Scroll reveal -------------------------------------------------------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 1s var(--ease), transform 1.1s var(--ease);
}
.js [data-reveal="img"] { transform: none; }
.js [data-reveal="img"] > img,
.js [data-reveal="img"] .reveal-img {
  transform: scale(1.08);
  transition: transform 1.6s var(--ease);
}
.js [data-reveal].is-revealed { opacity: 1; transform: none; }
.js [data-reveal="img"].is-revealed > img,
.js [data-reveal="img"].is-revealed .reveal-img { transform: scale(1); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .js [data-reveal="img"] > img,
  .js [data-reveal="img"] .reveal-img { transform: none; transition: none; }
}

/* ==========================================================================
   1. Announcement bar
   ========================================================================== */
.announcement {
  position: relative;
  height: 38px;
  overflow: hidden;
  background: var(--ink);
  color: var(--on-dark);
  font-size: 13px;
  letter-spacing: .04em;
  text-align: center;
}
.announcement__item {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity .6s ease, transform .6s var(--ease);
}
.announcement__item.is-current { opacity: 1; transform: translateY(0); }
.announcement__item.is-leaving { opacity: 0; transform: translateY(-100%); }
.announcement--static .announcement__item { position: static; opacity: 1; transform: none; }

/* ==========================================================================
   2. Header
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 250, 248, .94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  max-width: var(--page);
  margin-inline: auto;
  padding: 18px var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}
.header__nav { display: flex; gap: clamp(14px, 2.4vw, 32px); font-size: 15px; flex-wrap: wrap; }
.header__logo { display: block; justify-self: center; }
.header__logo img { height: var(--logo-height, clamp(22px, 2.6vw, 30px)); width: auto; }
.header__logo-text {
  font-family: var(--font-accent);
  font-size: clamp(18px, 2.2vw, 26px);
  letter-spacing: .22em;
  direction: ltr;
}
.header__start { display: flex; align-items: center; gap: 8px; }
.header__icons { display: flex; gap: 4px; justify-content: flex-end; align-items: center; }
.header__icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  cursor: pointer;
}
.header__burger { display: none; }
.cart-count {
  position: absolute;
  top: 2px;
  left: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-accent);
  font-size: 11px;
}
.cart-count[hidden] { display: none; }

/* Mobile drawer — slides in from the right over a 40% ink overlay. */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 50;
  visibility: hidden;
  pointer-events: none;
}
.drawer.is-open { visibility: visible; pointer-events: auto; }
.drawer__overlay {
  position: absolute;
  inset: 0;
  background: rgba(28, 25, 23, .4);
  opacity: 0;
  transition: opacity .4s ease;
}
.drawer.is-open .drawer__overlay { opacity: 1; }
.drawer__panel {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  z-index: 1;
  width: min(88vw, 400px);
  background: var(--paper);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .5s var(--ease);
  overflow-y: auto;
}
.drawer.is-open .drawer__panel { transform: translateX(0); }

.drawer__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
}
.drawer__top img { height: 22px; width: auto; }
.drawer__close { width: 44px; height: 44px; margin-left: -10px; }

.drawer__nav { display: flex; flex-direction: column; padding: 12px 20px; }
.drawer__nav a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 26px;
  line-height: 1.1;
  /* Staggered entrance; --d is set per link by the section. */
  opacity: 0;
  transform: translateX(24px);
  transition: opacity .5s ease, transform .6s var(--ease);
}
.drawer.is-open .drawer__nav a {
  opacity: 1;
  transform: none;
  transition-delay: var(--d, 0ms);
}
.drawer__nav .en {
  font-family: var(--font-accent);
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--text-meta-light);
  direction: ltr;
}

.drawer__foot {
  margin-top: auto;
  padding: 24px 20px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 15px;
  border-top: 1px solid var(--line);
}
.drawer__foot a { display: flex; align-items: center; gap: 10px; }

@media (prefers-reduced-motion: reduce) {
  .drawer__nav a { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   3. Hero video
   ========================================================================== */
.hero {
  position: relative;
  height: min(92vh, 900px);
  min-height: 560px;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
}
.hero__media, .hero__media video, .hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20, 16, 14, .62) 0%, rgba(20, 16, 14, .12) 45%, rgba(20, 16, 14, 0) 70%);
}
.hero__inner {
  position: relative;
  height: 100%;
  max-width: var(--page);
  margin-inline: auto;
  padding: clamp(28px, 5vw, 72px) var(--gutter);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 24px;
}
.hero__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}
.hero__row p { max-width: 460px; }
.hero__buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.hero a:hover { color: inherit; }

/* ==========================================================================
   4. Product grid — THE RITUAL
   ========================================================================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: var(--grid-gap);
}
.card { display: flex; flex-direction: column; gap: 16px; }
.card__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  background: var(--white);
  overflow: hidden;
}
.card__media:hover { color: inherit; }
.card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: opacity .5s ease, transform 1.2s ease;
}
.card__img--secondary { opacity: 0; }
.card:hover .card__img { transform: scale(1.03); }
.card--swap:hover .card__img--primary { opacity: 0; }
.card--swap:hover .card__img--secondary { opacity: 1; }
.card__step {
  position: absolute;
  top: 14px;
  right: 14px;
  font-family: var(--font-accent);
  font-size: 12px;
  letter-spacing: .18em;
  color: var(--ink);
}
.card__head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.card__titles { display: flex; flex-direction: column; gap: 4px; }
.card__role { font-size: 14px; color: var(--text-meta); }
.card__price { font-size: 16px; white-space: nowrap; }
.card__price s { color: var(--text-meta-light); margin-inline-start: 8px; }
.card__desc { font-size: 15px; line-height: 1.55; color: var(--text-body); text-wrap: pretty; }
.card__cta { margin-top: auto; }
.card__form { margin-top: auto; }

/* ==========================================================================
   5. Faces
   ========================================================================== */
/* Column count comes from the block count as --faces-cols, so the mobile
   media query can still override it (an inline grid-template would not). */
.faces__grid { display: grid; grid-template-columns: repeat(var(--faces-cols, 4), minmax(0, 1fr)); gap: 4px; }
.faces__cell { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: #F4F1EE; }
.faces__cell img { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
   6. Formula (dark)
   ========================================================================== */
.formula {
  background: var(--ink);
  color: var(--on-dark);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
}
.formula__media {
  position: relative;
  min-height: clamp(420px, 60vw, 820px);
  overflow: hidden;
}
.formula__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.formula__body {
  padding: clamp(56px, 8vw, 128px) clamp(20px, 5vw, 88px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(36px, 4vw, 56px);
}
.formula__head { display: flex; flex-direction: column; gap: 20px; }
.formula__figure { display: flex; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.formula__number {
  font-family: var(--font-accent);
  font-weight: 400;
  font-size: clamp(110px, 14vw, 220px);
  line-height: .8;
  direction: ltr;
  color: var(--accent);
}
.formula__caption {
  font-size: 17px;
  line-height: 1.5;
  color: var(--on-dark-muted);
  max-width: 220px;
  padding-bottom: 8px;
}
.formula__bars { display: flex; flex-direction: column; gap: 18px; }
.bar { display: flex; flex-direction: column; gap: 8px; }
.bar__label { display: flex; justify-content: space-between; font-size: 14px; }
.bar__label strong { font-weight: 600; }
.bar__value { font-family: var(--font-accent); direction: ltr; }
.bar__track { height: 6px; background: var(--track-dark); }
.bar__fill { height: 100%; background: var(--accent); width: 100%; }
.bar--muted .bar__label { color: var(--text-meta-light); }
.bar--muted .bar__fill { background: var(--text-meta-light); width: 2px; }
.formula__note { font-size: 14px; color: var(--on-dark-dim); }
.formula__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line-dark);
}
.formula__list li { padding: 20px 0; font-size: 17px; border-bottom: 1px solid var(--line-dark); }
/* Strip the hairline from the final row only — works for odd and even counts. */
.formula__list li:last-child,
.formula__list li:nth-last-child(2):nth-child(odd) { border-bottom: 0; }

/* ==========================================================================
   7. Results (interactive tabs)
   ========================================================================== */
.results__layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.results__list { display: flex; flex-direction: column; border-top: 1px solid var(--ink); }
.results__row {
  position: relative;
  display: flex;
  gap: clamp(16px, 2vw, 28px);
  align-items: baseline;
  width: 100%;
  text-align: right;
  border-bottom: 1px solid var(--line-soft);
  padding: clamp(20px, 2.4vw, 32px) 0;
  cursor: pointer;
  color: var(--ink);
  font-family: var(--font-body);
}
.results__n {
  font-family: var(--font-accent);
  font-size: 13px;
  letter-spacing: .18em;
  color: var(--on-dark-dim);
  transition: color .3s;
}
.results__rowbody { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.results__title {
  font-family: var(--font-heading);
  font-size: clamp(26px, 3vw, 44px);
  line-height: 1.1;
  font-weight: 200;
  color: var(--text-meta-light);
  transition: color .3s;
}
.results__text {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows .5s var(--ease), opacity .4s ease;
}
.results__text > span {
  display: block;
  overflow: hidden;
  min-height: 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-body);
  max-width: 440px;
}
.results__row[aria-selected="true"] .results__n { color: var(--ink); }
.results__row[aria-selected="true"] .results__title { font-weight: 600; color: var(--ink); }
.results__row[aria-selected="true"] .results__text { grid-template-rows: 1fr; opacity: 1; }
.results__progress {
  position: absolute;
  bottom: -1px;
  right: 0;
  height: 1px;
  width: 0;
  background: var(--ink);
}
.results__figure {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--sand);
}
.results__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity .8s ease, transform 1.6s var(--ease);
}
.results__img.is-active { opacity: 1; transform: scale(1); }
.results__tag {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: var(--paper);
  color: var(--ink);
  padding: 10px 16px;
  font-family: var(--font-accent);
  font-size: 12px;
  letter-spacing: .2em;
  direction: ltr;
}
/* No-JS / reduced-motion fallback: everything legible, first item open. */
.no-js .results__text { grid-template-rows: 1fr; opacity: 1; }
.no-js .results__title { color: var(--ink); }
.no-js .results__img:first-child { opacity: 1; transform: none; }

/* ==========================================================================
   8. Sets
   ========================================================================== */
.sets { background: var(--sand); }
.sets__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: var(--grid-gap);
}
.set-card { display: flex; flex-direction: column; background: var(--white); }
.set-card:hover { color: var(--ink); }
.set-card__media {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.set-card__media img { width: 100%; height: 100%; transition: transform 1.2s ease; }
.set-card:hover .set-card__media img { transform: scale(1.03); }
.set-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid #EFEAE4;
}
.set-card__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.set-card__price { font-size: 16px; white-space: nowrap; }
.set-card__desc { font-size: 15px; line-height: 1.55; color: var(--text-body); }

/* ==========================================================================
   9. Founder story
   ========================================================================== */
.story {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.story__media { aspect-ratio: 4 / 5; overflow: hidden; background: #EDEAE6; }
.story__media img { width: 100%; height: 100%; object-fit: cover; }
.story__body { display: flex; flex-direction: column; gap: 28px; max-width: 560px; }
.quote {
  font-family: var(--font-heading);
  font-weight: 200;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.25;
  text-wrap: pretty;
}
.story__name { display: flex; flex-direction: column; gap: 2px; }
.story__name b { font-size: 17px; font-weight: 600; }

/* ==========================================================================
   10. Image banner
   ========================================================================== */
.banner {
  position: relative;
  min-height: min(80vh, 760px);
  overflow: hidden;
  background: var(--white);
  display: flex;
  align-items: flex-end;
}
.banner__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner__inner {
  position: relative;
  width: 100%;
  max-width: var(--page);
  margin-inline: auto;
  padding: clamp(24px, 4vw, 56px) var(--gutter);
  display: flex;
  justify-content: flex-start;
}
.banner__card {
  background: var(--paper);
  padding: clamp(28px, 3vw, 44px);
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ==========================================================================
   11. FAQ
   ========================================================================== */
.faq {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.faq__intro {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: var(--header-offset);
}
.faq__intro p { max-width: 380px; }
.faq__intro a:not(.link-underline) { border-bottom: 1px solid currentColor; }
.faq__list { display: flex; flex-direction: column; border-top: 1px solid var(--ink); }
.faq__item { border-bottom: 1px solid var(--line-soft); }
.faq__q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
  cursor: pointer;
  text-align: right;
  font-family: var(--font-heading);
  font-size: clamp(17px, 1.4vw, 20px);
  font-weight: 400;
  color: var(--ink);
  transition: font-weight .2s;
}
.faq__q[aria-expanded="true"] { font-weight: 600; }
.faq__sign {
  font-family: var(--font-accent);
  font-size: 24px;
  font-weight: 300;
  flex: none;
  width: 20px;
  text-align: center;
  transition: transform .35s ease;
}
.faq__q[aria-expanded="true"] .faq__sign { transform: rotate(45deg); }
.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows .45s var(--ease), opacity .35s ease;
}
.faq__q[aria-expanded="true"] + .faq__a { grid-template-rows: 1fr; opacity: 1; }
.faq__a > div { overflow: hidden; min-height: 0; }
.faq__a p {
  padding: 0 0 26px 44px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-body);
  text-wrap: pretty;
}
.no-js .faq__a { grid-template-rows: 1fr; opacity: 1; }

/* ==========================================================================
   12. Newsletter
   ========================================================================== */
.newsletter { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.newsletter__inner {
  max-width: var(--page);
  margin-inline: auto;
  padding: clamp(56px, 7vw, 96px) var(--gutter);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 32px;
  align-items: end;
}
.newsletter__text { display: flex; flex-direction: column; gap: 12px; }
.newsletter__form { display: flex; border-bottom: 1px solid var(--ink); }
.newsletter__form input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font-family: var(--font-body);
  font-size: 17px;
  padding: 14px 0;
  outline: none;
  color: var(--ink);
}
.newsletter__form input::placeholder { color: var(--text-meta-light); }
.newsletter__form button {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  padding: 14px 0 14px 4px;
  color: var(--ink);
}
.newsletter__ok { font-size: 17px; padding: 14px 0; border-bottom: 1px solid var(--ink); }
.newsletter__error { font-size: 15px; color: var(--link-hover); padding-top: 8px; }

/* ==========================================================================
   13. Footer
   ========================================================================== */
.footer {
  max-width: var(--page);
  margin-inline: auto;
  padding: clamp(48px, 6vw, 80px) var(--gutter) 32px;
  display: flex;
  flex-direction: column;
  gap: 56px;
}
.footer__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 32px 24px;
  font-size: 15px;
}
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__col--text { max-width: 280px; }
.footer__title {
  font-family: var(--font-accent);
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-meta);
  direction: ltr;
  text-align: right;
}
.footer__wordmark { width: 100%; height: auto; opacity: .95; }
.footer__wordmark-text {
  font-family: var(--font-accent);
  font-size: clamp(42px, 13vw, 200px);
  line-height: .9;
  letter-spacing: .06em;
  text-align: center;
  direction: ltr;
  opacity: .95;
}
.footer__legal {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-meta);
}
.footer__payment { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.footer__payment svg { height: 24px; width: auto; }

/* ==========================================================================
   Cart toast
   ========================================================================== */
.toast {
  position: fixed;
  bottom: 16px;
  left: 16px;
  max-width: calc(100% - 32px);
  z-index: 40;
  background: var(--ink);
  color: var(--paper);
  padding: 16px 22px;
  font-size: 15px;
  display: flex;
  gap: 16px;
  align-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .3s ease, transform .4s var(--ease);
  pointer-events: none;
}
.toast.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.toast a { color: var(--paper); border-bottom: 1px solid var(--paper); }
.toast a:hover { color: var(--paper); }
/* ==========================================================================
   Ritual slider progress (mobile only — hidden at desktop widths)
   ========================================================================== */
.slider-progress { display: none; align-items: center; gap: 16px; margin-top: 20px; }
.slider-progress__track { flex: 1; height: 1px; background: var(--line-soft); position: relative; }
.slider-progress__thumb {
  position: absolute;
  top: 0;
  right: 0;
  height: 1px;
  background: var(--ink);
  transition: right .2s ease;
}
.slider-progress__label {
  font-family: var(--font-accent);
  font-size: 12px;
  letter-spacing: .18em;
  direction: ltr;
}

/* ==========================================================================
   Mobile — single breakpoint at 859px, per the design handoff
   ========================================================================== */
@media (max-width: 859px) {
  /* Header: nav becomes a hamburger, account moves into the drawer. */
  .header__nav { display: none; }
  .header__burger { display: flex; width: 44px; height: 44px; margin-right: -10px; }
  .header__icon--account { display: none; }

  /* THE RITUAL: the grid becomes a scroll-snap slider that bleeds to the
     screen edges. Scoped to --slider so collection grids stay grids. */
  .product-grid--slider {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
    padding-bottom: 8px;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .product-grid--slider::-webkit-scrollbar { display: none; }
  .product-grid--slider > .card {
    flex: 0 0 78%;
    scroll-snap-align: start;
    gap: 14px;
  }
  .product-grid--slider .card__desc { display: none; }
  .slider-progress { display: flex; }

  /* No hover swap on touch. */
  .card--swap:hover .card__img--primary { opacity: 1; }
  .card--swap:hover .card__img--secondary { opacity: 0; }
  .card:hover .card__img { transform: none; }
  .set-card:hover .set-card__media img { transform: none; }

  .card .product-name { font-size: 16px; }
  .btn--outline-ink { min-height: 48px; }

  /* Faces: two columns. */
  .faces__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* Results: image above the list, square. */
  .results__figure { order: -1; aspect-ratio: 1 / 1; }

  /* FAQ: a sticky intro would ride over the accordion in one column. */
  .faq__intro { position: static; }
  .faq__a p { padding-left: 0; }
}

/* ==========================================================================
   Inner templates (product / collection / cart / page / blog / search)
   ========================================================================== */
.pagehead { display: flex; flex-direction: column; gap: 14px; margin-bottom: var(--head-gap); }

/* Product */
.product {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.product__gallery { display: flex; flex-direction: column; gap: 4px; }
.product__gallery-main { aspect-ratio: 4 / 5; background: var(--white); overflow: hidden; }
.product__gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.product__thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 4px; }
.product__thumb { aspect-ratio: 1 / 1; background: var(--white); overflow: hidden; cursor: pointer; padding: 0; }
.product__thumb img { width: 100%; height: 100%; object-fit: contain; }
.product__thumb.is-active { outline: 1px solid var(--ink); outline-offset: -1px; }
.product__info { display: flex; flex-direction: column; gap: 24px; max-width: 560px; }
.product__title { font-family: var(--font-accent); font-weight: 500; font-size: clamp(26px, 3vw, 38px); letter-spacing: .06em; direction: ltr; text-align: right; }
.product__price { font-size: 22px; }
.product__price s { color: var(--text-meta-light); font-size: 17px; margin-inline-start: 10px; }
.product__variants { display: flex; flex-direction: column; gap: 16px; }
.product__variant-group { display: flex; flex-direction: column; gap: 10px; }
.product__variant-options { position: relative; display: flex; gap: 8px; flex-wrap: wrap; }
.product__variant-options label {
  border: 1px solid var(--line-soft);
  padding: 10px 18px;
  font-size: 15px;
  cursor: pointer;
  transition: border-color .2s, background .2s, color .2s;
}
.product__variant-options input { position: absolute; opacity: 0; pointer-events: none; }
.product__variant-options input:checked + label { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.product__qty { display: flex; align-items: center; border: 1px solid var(--ink); width: max-content; }
.product__qty button { width: 44px; height: 46px; cursor: pointer; font-size: 18px; }
.product__qty input { width: 52px; height: 46px; border: 0; text-align: center; font-family: var(--font-body); font-size: 16px; background: transparent; }
.product__buy { display: flex; flex-direction: column; gap: 10px; }
.product__meta { display: flex; flex-direction: column; border-top: 1px solid var(--line-soft); }
.product__meta > div { padding: 16px 0; border-bottom: 1px solid var(--line-soft); font-size: 15px; display: flex; justify-content: space-between; gap: 16px; }

/* Collection */
.collection__toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--head-gap);
  font-size: 15px;
}
.collection__toolbar select {
  font-family: var(--font-body);
  font-size: 15px;
  border: 1px solid var(--line-soft);
  background: transparent;
  padding: 10px 14px;
  color: var(--ink);
}
.pagination { display: flex; gap: 14px; justify-content: center; padding-top: var(--head-gap); font-size: 15px; }
.pagination span[aria-current] { border-bottom: 1px solid var(--ink); }

/* Cart */
.cart__row {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 20px;
  align-items: start;
  padding: 24px 0;
  border-bottom: 1px solid var(--line-soft);
}
.cart__row:first-child { border-top: 1px solid var(--ink); }
.cart__row img { width: 110px; aspect-ratio: 1/1; object-fit: contain; background: var(--white); }
.cart__lines { display: flex; flex-direction: column; }
.cart__foot {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-end;
  padding-top: 32px;
}
.cart__total { display: flex; gap: 24px; font-size: 20px; align-items: baseline; }
.cart__note { font-size: 14px; color: var(--text-meta); }

/* Generic empty / 404 state */
.state {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  padding-block: clamp(48px, 8vw, 120px);
}

/* Blog */
.articles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: clamp(24px, 3vw, 48px); }
.article-card { display: flex; flex-direction: column; gap: 14px; }
.article-card__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand); }
.article-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }
.article-card:hover .article-card__media img { transform: scale(1.04); }
.article-card h3 { font-family: var(--font-heading); font-weight: 400; font-size: 22px; line-height: 1.3; }
.article-body { max-width: 760px; margin-inline: auto; }
.article-body h2 { font-family: var(--font-heading); font-weight: 400; font-size: 30px; margin-top: 1.4em; }

/* Customer account pages */
.account { max-width: 560px; display: flex; flex-direction: column; gap: 24px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; color: var(--text-meta); }
.field input, .field textarea, .field select {
  font-family: var(--font-body);
  font-size: 17px;
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
}
.form-errors { border: 1px solid var(--link-hover); color: var(--link-hover); padding: 14px 18px; font-size: 15px; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { text-align: right; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.table th { font-weight: 600; border-bottom-color: var(--ink); }

/* shopis-fluid-faq-v1: stable text metrics and one height animation. */
.faq { overflow-anchor: none; }
.faq__q, .faq__q[aria-expanded="true"] { font-weight: 500; }
[data-faq-motion] .faq__a {
  display: block;
  overflow: hidden;
  opacity: 1;
  transition: none;
}
[data-faq-motion] .faq__a > div { display: flow-root; }
.faq__sign { transition: transform 240ms cubic-bezier(.2,.7,.2,1); }
@media (prefers-reduced-motion: reduce) {
  .faq__sign { transition: none; }
}
