/* ==========================================================================
   Afsaneh Beauty — Direction B "Powder Editorial"
   Built 2026-11. Logical properties used throughout so an Arabic (RTL)
   version needs only dir="rtl" on <html> plus a font swap.
   ========================================================================== */

/* ---------- tokens ---------- */
:root {
  --paper:    #FBFAF8;
  --surface:  #FFFFFF;
  --stone:    #EDE6E2;
  --stone-2:  #F4F1EC;
  --ink:      #16161A;
  --muted:    #645F66;
  --line:     #E6E2DD;

  --rose:     #D9A7B4;
  --rose-pale:#F3E3E7;
  --powder:   #BFD6E6;
  --powder-pale:#E3ECF2;
  --plum:     #6E2A44;
  --plum-dark:#521E33;
  --ink-blue: #26506B;

  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Work Sans", system-ui, -apple-system, sans-serif;
  --font-script: "Parisienne", cursive;

  --s1: .5rem;  --s2: .875rem; --s3: 1.25rem;
  --s4: 2rem;   --s5: 3.25rem; --s6: 5rem;

  --wrap: 1240px;
  --radius: 0px;        /* editorial = square corners */
  --shadow: 0 1px 2px rgba(22,22,26,.04), 0 18px 40px -28px rgba(22,22,26,.3);
}

/* ---------- 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: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--ink-blue); }
a:hover { color: #163549; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--plum); outline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -.015em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 5.4vw, 4.25rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.4rem; }
p  { margin: 0; }

/* ---------- utilities ---------- */
.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
}
.band { padding-block: var(--s6); }
.band--tint { background: var(--stone-2); }
.band--paper { background: var(--surface); }
.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--plum);
  margin: 0;
}
.lede { color: var(--muted); font-size: 1.05rem; line-height: 1.75; max-width: 56ch; }
.num { font-variant-numeric: tabular-nums; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: var(--s3); flex-wrap: wrap; margin-bottom: var(--s4);
}
.link-more {
  font-size: 12px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; text-decoration: none; white-space: nowrap;
}
.link-more:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding-inline: 34px;
  font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn--solid { background: var(--plum); color: #fff; }
.btn--solid:hover { background: var(--plum-dark); color: #fff; }
.btn--line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--line:hover { background: var(--ink); color: #fff; }
.btn--sm { min-height: 44px; padding-inline: 20px; font-size: 11px; }
.btn--block { width: 100%; }

/* ---------- announcement ---------- */
.topbar {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  text-align: center; padding-block: 12px;
}
.topbar span { white-space: nowrap; }
.topbar .sep { margin-inline: 14px; color: var(--rose); }

/* ---------- header ---------- */
.site {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 40;
}
.site__row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--s3);
  padding-block: var(--s3) var(--s2);
}
.site__left, .site__right { display: flex; align-items: center; gap: 8px; }
.site__right { justify-content: flex-end; }

.brand { text-decoration: none; text-align: center; line-height: 1; display: block; }
.brand__script {
  display: block; font-family: var(--font-script);
  font-size: clamp(30px, 4vw, 42px); color: var(--plum);
}
.brand__sub {
  display: block; font-size: 9px; font-weight: 600;
  letter-spacing: .5em; color: var(--muted); margin-top: 5px;
  padding-inline-start: .5em;
}

.iconbtn {
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid var(--line); background: transparent; color: var(--ink);
  cursor: pointer; transition: border-color .18s ease;
}
.iconbtn:hover { border-color: var(--ink); }
.bagbtn {
  min-height: 44px; padding-inline: 18px; border: 1px solid var(--ink);
  background: transparent; color: var(--ink); cursor: pointer;
  font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
}
.bagbtn:hover { background: var(--ink); color: #fff; }

.nav {
  display: flex; justify-content: center; gap: clamp(18px, 3vw, 40px);
  flex-wrap: wrap; padding-bottom: var(--s3);
}
.nav a {
  font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink); text-decoration: none; padding-block: 4px;
  border-bottom: 1px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--plum); color: var(--plum); }

.navtoggle { display: none; }

/* ---------- hero ---------- */
.hero { padding-block: var(--s6) var(--s5); }
.hero__grid {
  display: flex; flex-wrap: wrap; gap: clamp(32px, 5vw, 64px); align-items: center;
}
.hero__media {
  flex: 1 1 400px; min-width: 0; position: relative;
  aspect-ratio: 4 / 5; background: var(--stone);
  display: grid; place-items: center; overflow: hidden;
}
.hero__media::before {
  content: ""; position: absolute; inset: 20px; border: 1px solid var(--paper);
  pointer-events: none; z-index: 2;
}
.hero__blob { position: absolute; border-radius: 999px; opacity: .55; }
.hero__blob--rose  { width: 46%; aspect-ratio: 1; background: var(--rose);   inset-block-start: -8%; inset-inline-start: -10%; }
.hero__blob--powder{ width: 54%; aspect-ratio: 1; background: var(--powder); inset-block-end: -12%; inset-inline-end: -10%; }
.hero__media img { position: relative; z-index: 1; width: 72%; height: auto; mix-blend-mode: multiply; }
/* The client's logo. It is a JPEG on a white background, so `multiply`
   (inherited from .hero__media img above) drops the white and leaves the
   artwork sitting directly on the tinted panel — no white box. */
.hero__logo { width: 88%; max-width: 440px; }
.hero__copy {
  flex: 999 1 440px; min-width: 0;
  display: flex; flex-direction: column; gap: var(--s3); align-items: flex-start;
}
.hero__copy h1 em { font-style: italic; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; padding-top: var(--s1); }

/* ---------- category rule row ---------- */
.catrow {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-block: 1px solid var(--line);
}
.catrow > a, .catrow > div {
  padding: var(--s3) var(--s3);
  text-decoration: none; color: var(--ink);
  border-inline-end: 1px solid var(--line);
  transition: background-color .18s ease;
}
.catrow > :last-child { border-inline-end: 0; }
.catrow > a:hover { background: var(--surface); }
.catrow .body {
  display: block; font-size: .95rem; line-height: 1.7;
  color: var(--muted); margin-top: 8px;
}
.catrow .t { display: block; font-family: var(--font-display); font-size: 1.7rem; }
.catrow .s { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }

/* ---------- product grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: clamp(20px, 2.4vw, 32px);
}
.card { display: flex; flex-direction: column; gap: 12px; }
.card__media {
  position: relative; aspect-ratio: 3 / 4; background: var(--stone);
  display: grid; place-items: center; overflow: hidden;
}
.card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.card:hover .card__media img { transform: scale(1.04); }
.card__media--rose   { background: var(--rose-pale); }
.card__media--powder { background: var(--powder-pale); }
.card__brand {
  font-size: 10px; font-weight: 600; letter-spacing: .2em;
  text-transform: uppercase; color: var(--muted);
}
.card__name {
  font-family: var(--font-display); font-size: 1.25rem; line-height: 1.3;
  color: var(--ink); text-decoration: none;
}
.card__name:hover { color: var(--plum); }
.card__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border-top: 1px solid var(--line); padding-top: 14px; margin-top: auto;
}
.card__price { font-size: .95rem; font-weight: 600; }
/* equipment is quoted, not shelf-priced */
.card__price--poa { font-weight: 500; font-size: .82rem; letter-spacing: .04em; color: var(--muted); }
.pdp__price--poa { font-size: 1.1rem; font-weight: 500; color: var(--muted); letter-spacing: .04em; }
.bagitem__price--poa { font-weight: 500; font-size: .85rem; color: var(--muted); }
.bagsum__poa { font-size: 1.05rem; font-weight: 500; color: var(--muted); }

/* ---------- filters ---------- */
.filters {
  display: flex; gap: 10px; flex-wrap: wrap;
  padding-bottom: var(--s4);
}
.filters button {
  min-height: 44px; padding-inline: 20px;
  border: 1px solid var(--line); background: transparent; color: var(--ink);
  font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  cursor: pointer;
}
.filters button:hover { border-color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- brand strip ---------- */
.brands {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: clamp(20px, 4vw, 56px);
  border-block: 1px solid var(--line); padding-block: var(--s4);
}
.brands span {
  font-family: var(--font-display); font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: var(--muted); letter-spacing: .06em;
}

/* ---------- split feature ---------- */
.split { display: flex; flex-wrap: wrap; gap: clamp(32px, 5vw, 64px); align-items: center; }
.split__media {
  flex: 1 1 380px; min-width: 0; aspect-ratio: 1; background: var(--powder-pale);
  display: grid; place-items: center; position: relative; overflow: hidden;
}
.split__media img { width: 70%; height: auto; mix-blend-mode: multiply; }
.split__copy { flex: 999 1 400px; min-width: 0; display: flex; flex-direction: column; gap: var(--s3); align-items: flex-start; }

/* ---------- journal (typographic list — no thumbnails until there are real ones) ---------- */
.readlist { list-style: none; margin: 0; padding: 0; }
.readlist li {
  display: grid; grid-template-columns: 4.5rem 1fr; gap: var(--s3);
  padding-block: var(--s3); border-top: 1px solid var(--line); align-items: baseline;
}
.readlist li:last-child { border-bottom: 1px solid var(--line); }
.readlist .idx { font-family: var(--font-display); font-size: 1.75rem; color: var(--rose); }
.readlist .date { display: block; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.readlist h3 { font-size: 1.6rem; }
.readlist h3 a { color: var(--ink); text-decoration: none; }
.readlist h3 a:hover { color: var(--plum); }
.readlist p { margin-top: 8px; }
@media (max-width: 560px) {
  .readlist li { grid-template-columns: 1fr; gap: 6px; }
  .readlist .idx { font-size: 1.2rem; }
}

/* ---------- newsletter ---------- */
.news { text-align: center; display: flex; flex-direction: column; align-items: center; gap: var(--s3); }
.news form { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; width: 100%; max-width: 520px; }
.news input {
  flex: 999 1 240px; min-width: 0; min-height: 52px; padding-inline: 16px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit;
}
.news input:focus { border-color: var(--plum); outline: none; }

/* ---------- forms ---------- */
.form { display: grid; gap: var(--s2); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); }
.form label { display: grid; gap: 6px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.form input, .form textarea, .form select {
  min-height: 52px; padding: 14px 16px; font: inherit; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); width: 100%;
}
.form textarea { min-height: 150px; resize: vertical; }
.form input:focus, .form textarea:focus, .form select:focus { border-color: var(--plum); outline: none; }

/* ---------- contact lines ---------- */
.lines { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); }
.lines .k { display: block; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.lines .v { display: block; font-size: 1.05rem; margin-top: 4px; }
.lines a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.lines a:hover { border-bottom-color: var(--plum); color: var(--plum); }

/* ---------- product detail ---------- */
.pdp { display: flex; flex-wrap: wrap; gap: clamp(32px, 5vw, 72px); align-items: flex-start; }
.pdp__media { flex: 1 1 380px; min-width: 0; aspect-ratio: 3/4; background: var(--stone); display: grid; place-items: center; overflow: hidden; }
.pdp__media img { width: 100%; height: 100%; object-fit: cover; }
.pdp__info { flex: 999 1 380px; min-width: 0; display: flex; flex-direction: column; gap: var(--s3); align-items: flex-start; }
.pdp__price { font-size: 1.5rem; font-weight: 600; }
.pdp__meta { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; width: 100%; border-top: 1px solid var(--line); padding-top: var(--s3); }
.pdp__meta li { display: flex; justify-content: space-between; gap: 16px; font-size: .9rem; }
.pdp__meta .k { color: var(--muted); }

/* ---------- shelves that are not open yet ----------
   Set by products.js from the trade licence. A locked shelf must read as
   "coming", not as broken, and must never look purchasable. */

/* nav */
.nav a[data-locked] { color: var(--muted); }
.nav a[data-locked]:hover { color: var(--ink); border-bottom-color: var(--line); }
.nav a[data-locked]::after {
  content: "soon"; margin-inline-start: 7px; font-size: 8px; letter-spacing: .12em;
  color: var(--rose); vertical-align: 2px;
}

/* home tiles */
.catrow [data-locked] { background: var(--stone-2); }
.catrow [data-locked] .t { color: var(--muted); }
.catrow [data-locked] .s { color: var(--rose); }

/* shop filters */
.filters button[data-locked] { color: var(--muted); border-style: dashed; }
.filters button .soon {
  font-size: 8px; letter-spacing: .12em; color: var(--rose);
  margin-inline-start: 6px; vertical-align: 2px; text-transform: uppercase;
}

/* the panel shown in place of a grid */
.shelfnote {
  border: 1px dashed var(--line); background: var(--surface);
  padding: clamp(32px, 5vw, 64px) clamp(24px, 4vw, 48px);
  text-align: center; display: grid; gap: var(--s3); justify-items: center;
}
.shelfnote h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
.shelfnote p { color: var(--muted); max-width: 48ch; margin: 0; line-height: 1.8; }
.shelfnote--inline {
  width: 100%; text-align: start; justify-items: start;
  padding: var(--s3) var(--s3) var(--s4);
  border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: transparent; gap: var(--s2);
}
.shelfnote--inline h3 { font-size: 1.4rem; }

/* ---------- quantity stepper ---------- */
.qty { display: inline-flex; align-items: stretch; border: 1px solid var(--ink); background: var(--surface); }
.qty button {
  width: 46px; min-height: 52px; border: 0; background: transparent;
  color: var(--ink); font-size: 18px; line-height: 1; cursor: pointer;
}
.qty button:hover { background: var(--stone-2); }
.qty button:disabled { color: var(--line); cursor: default; background: transparent; }
.qty input {
  width: 54px; border: 0; border-inline: 1px solid var(--line); text-align: center;
  font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  background: transparent; -moz-appearance: textfield;
}
.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ---------- product page: buy row ---------- */
.pdp__buy { display: flex; flex-wrap: wrap; gap: var(--s2); width: 100%; align-items: center; }
.pdp__buy .btn { flex: 1 1 210px; }
.pdp__note { font-size: .82rem; color: var(--muted); line-height: 1.7; }
.pdp__note a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.pdp__note a:hover { color: var(--plum); border-bottom-color: var(--plum); }
.btn .wa { width: 17px; height: 17px; margin-inline-end: 10px; flex: none; }
.pdp__added {
  width: 100%; font-size: .85rem; color: var(--plum);
  border-top: 1px solid var(--line); padding-top: var(--s2);
}

/* ---------- bag page ---------- */
.bag { display: grid; grid-template-columns: minmax(0,1fr) 370px; gap: clamp(32px, 4vw, 64px); align-items: start; }

.bagitems { list-style: none; margin: 0; padding: 0; }
.bagitems li {
  display: grid; grid-template-columns: 92px minmax(0,1fr) auto; gap: var(--s3);
  padding-block: var(--s3); border-top: 1px solid var(--line); align-items: start;
}
.bagitems li:last-child { border-bottom: 1px solid var(--line); }
.bagitems img { width: 92px; aspect-ratio: 3/4; object-fit: cover; background: var(--stone); display: block; }
.bagitem__brand { display: block; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.bagitem__name { display: block; font-family: var(--font-display); font-size: 1.35rem; line-height: 1.25; margin-top: 5px; color: var(--ink); text-decoration: none; }
.bagitem__name:hover { color: var(--plum); }
.bagitem__row { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; margin-top: var(--s2); }
.bagitem__row .qty button { min-height: 42px; width: 38px; font-size: 15px; }
.bagitem__row .qty input { width: 44px; font-size: .95rem; }
.bagitem__remove {
  background: none; border: 0; padding: 0; cursor: pointer;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); border-bottom: 1px solid var(--line);
}
.bagitem__remove:hover { color: var(--plum); border-bottom-color: var(--plum); }
.bagitem__price { font-weight: 600; white-space: nowrap; text-align: end; }
.bagitem__each { display: block; font-size: .8rem; font-weight: 400; color: var(--muted); margin-top: 4px; }

.bagsum { background: var(--surface); border: 1px solid var(--line); padding: clamp(24px, 3vw, 32px); display: grid; gap: var(--s3); }
.bagsum h2 { font-size: 1.6rem; }
.bagsum__row { display: flex; justify-content: space-between; gap: 16px; font-size: .95rem; color: var(--muted); }
.bagsum__row b { color: var(--ink); font-weight: 500; }
.bagsum__total {
  display: flex; justify-content: space-between; gap: 16px; align-items: baseline;
  border-top: 1px solid var(--line); padding-top: var(--s3);
  font-size: 1.3rem; font-weight: 600;
}
.bagsum label { display: block; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.bagsum textarea {
  width: 100%; min-height: 86px; resize: vertical; padding: 12px 14px;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: .95rem; line-height: 1.6;
}
.bagsum textarea:focus { outline: 2px solid var(--powder); outline-offset: 1px; }
.bagsum .fine { font-size: .82rem; color: var(--muted); line-height: 1.7; margin: 0; }

.bagempty { text-align: center; padding-block: var(--s6); border-block: 1px solid var(--line); }
.bagempty p { color: var(--muted); margin-bottom: var(--s3); }

@media (max-width: 900px) {
  .bag { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 560px) {
  .bagitems li { grid-template-columns: 72px minmax(0,1fr); }
  .bagitems img { width: 72px; }
  .bagitem__price { grid-column: 2; text-align: start; }
  .pdp__buy .btn { flex: 1 1 100%; }
}

/* ---------- breadcrumb ---------- */
.crumb { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-block: var(--s3); }
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--ink); }

/* ---------- footer ---------- */
.foot { background: var(--stone-2); border-top: 1px solid var(--line); padding-block: var(--s5) var(--s4); }
.foot__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: clamp(24px, 3vw, 48px); }
.foot h4 { font-family: var(--font-body); font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--s2); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { color: var(--ink); text-decoration: none; font-size: .92rem; }
/* Contact rows: each icon in its own brand colour.
   The row is a flex pair — icon, then text — so a long address wraps
   inside its own column instead of dropping underneath the icon. */
.foot__contact a {
  display: flex; align-items: flex-start; gap: 10px;
  line-height: 1.5;
}
.foot__contact .ico {
  width: 17px; height: 17px; flex: none;
  margin-top: 1px;                 /* sits on the first line, not between lines */
  transition: opacity .18s ease;
}
.foot__contact a:hover .ico { opacity: .72; }
.foot__contact span { min-width: 0; word-break: break-word; }

.ico--wa  { color: #25D366; }      /* WhatsApp green */
.ico--tel { color: var(--plum); }  /* no brand of its own — use ours */
.foot a:hover { color: var(--plum); }
.foot__legal {
  margin-top: var(--s5); padding-top: var(--s3); border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 8px var(--s3); justify-content: space-between;
  font-size: 12px; color: var(--muted);
}
.foot__legal p { max-width: 70ch; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .catrow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catrow > :nth-child(2) { border-inline-end: 0; }
  .catrow > :nth-child(1), .catrow > :nth-child(2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 760px) {
  :root { --s5: 2.5rem; --s6: 3.25rem; }
  .site__row { grid-template-columns: auto 1fr auto; gap: 10px; }
  .brand { text-align: start; }
  .site__right .iconbtn { display: none; }
  .bagbtn { padding-inline: 14px; font-size: 10px; letter-spacing: .1em; }
  .nav {
    display: none; flex-direction: column; align-items: stretch; gap: 0;
    padding-bottom: var(--s2);
  }
  .nav.is-open { display: flex; }
  .nav a { padding-block: 14px; border-bottom: 1px solid var(--line); }
  .navtoggle { display: grid; }
  .topbar .sep { margin-inline: 8px; }
  .topbar span:nth-child(n+3) { display: none; }
  .form .row { grid-template-columns: 1fr; }
  .foot__grid { grid-template-columns: 1fr; }
}

/* ---------- motion ----------
   Restrained on purpose. Direction B sells calm, so everything here is a
   short rise and fade — never a bounce, a slide across the screen, or a
   spin. Nothing moves more than 20px. The whole block is switched off
   under prefers-reduced-motion at the bottom of this file.

   Elements are tagged with data-reveal by main.js (initMotion), so no
   markup carries animation classes. If JavaScript never runs, the
   `html.js` guard below means nothing is hidden. */

:root { --ease-out: cubic-bezier(.22, .61, .36, 1); }

html.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .75s var(--ease-out), transform .75s var(--ease-out);
}
html.js [data-reveal].is-in { opacity: 1; transform: none; }

/* hero — runs on load rather than on scroll */
html.js .hero__copy > * { opacity: 0; transform: translateY(20px); }
html.js .is-ready .hero__copy > * {
  opacity: 1; transform: none;
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
html.js .is-ready .hero__copy > :nth-child(1) { transition-delay: .10s; }
html.js .is-ready .hero__copy > :nth-child(2) { transition-delay: .20s; }
html.js .is-ready .hero__copy > :nth-child(3) { transition-delay: .32s; }
html.js .is-ready .hero__copy > :nth-child(4) { transition-delay: .44s; }

html.js .hero__media { opacity: 0; transform: scale(.985); }
html.js .is-ready .hero__media {
  opacity: 1; transform: none;
  transition: opacity 1s var(--ease-out), transform 1.3s var(--ease-out);
}

/* the two blobs settle into place a beat after the hero lands */
.hero__blob { transition: transform 1.8s var(--ease-out) .3s; }
.is-ready .hero__blob--rose   { transform: translate(7px, 9px); }
.is-ready .hero__blob--powder { transform: translate(-9px, -7px); }

/* header condenses once you scroll away from the top */
.site { transition: box-shadow .3s ease; }
.site__row { transition: padding-block .35s var(--ease-out); }
.nav { transition: padding-bottom .35s var(--ease-out); }
.brand__script { transition: font-size .35s var(--ease-out); }
.brand__sub {
  max-height: 22px; overflow: hidden;
  transition: opacity .25s ease, max-height .35s var(--ease-out), margin-top .35s var(--ease-out);
}

.site.is-compact { box-shadow: 0 1px 16px rgba(22, 22, 26, .07); }
.site.is-compact .site__row { padding-block: 10px 4px; }
.site.is-compact .nav { padding-bottom: 10px; }
.site.is-compact .brand__script { font-size: clamp(22px, 2.6vw, 28px); }
.site.is-compact .brand__sub { opacity: 0; max-height: 0; margin-top: 0; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  /* never leave anything stuck invisible when motion is switched off */
  html.js [data-reveal],
  html.js .hero__copy > *,
  html.js .hero__media { opacity: 1 !important; transform: none !important; }
}
