/* ==========================================================================
   pages — per-template sections
   ========================================================================== */

/* --- hero (front page) ---------------------------------------------------- */

.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

/* inset gives the parallax travel room */
.hero__media {
  position: absolute;
  inset: -8% 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 74% center;
  display: block;
  animation: kb 30s ease-in-out infinite alternate;
}

/* two stacked scrims: bottom-up, then left-in */
.hero__scrim {
  position: absolute;
  inset: 0;
  background: var(--scrim-hero-v), var(--scrim-hero-h);
}

.hero__content {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0 var(--pad-x-edge) clamp(28px, 4vw, 56px);
  color: var(--cream);
}

.hero__eyebrow {
  font-size: var(--t-caps);
  letter-spacing: var(--track-eyebrow);
  text-transform: uppercase;
  opacity: 0.85;
  animation: rise 800ms 100ms ease-out both;
}

.hero__title {
  margin: 10px 0 0;
  font-size: var(--t-hero);
  line-height: 0.8;
  letter-spacing: var(--track-display);
  text-transform: uppercase;
  animation: rise 900ms 200ms ease-out both;
}

.hero__title-alt {
  margin: 0;
  font-style: italic;
  font-size: var(--t-hero-alt);
  line-height: 0.86;
  animation: rise 900ms 320ms ease-out both;
}

.hero__body {
  margin: 14px 0 0;
  font-size: clamp(15px, 0.94vw, 26px);
  line-height: 1.7;
  max-width: 34ch;
  opacity: 0.92;
  animation: rise 900ms 460ms ease-out both;
}

.hero__cue {
  position: absolute;
  left: 50%;
  bottom: clamp(14px, 2vw, 26px);
  transform: translateX(-50%);
  color: var(--cream);
  font-size: clamp(9px, 0.56vw, 16px);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  opacity: 0.75;
  animation: bob 2.6s ease-in-out infinite;
}

/* --- split: "four / not forty" -------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  min-height: 92vh;
}

.split__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  padding: clamp(40px, 6vw, 90px) var(--pad-x);
}

.split__title {
  font-size: var(--t-d1);
  line-height: 0.94;
  letter-spacing: -0.005em;
  text-transform: uppercase;
}

.split__title em {
  font-style: italic;
  text-transform: none;
  display: block;
  margin-left: 0.06em;
  padding-bottom: 0.16em;
}

.split__body {
  font-size: var(--t-body-lg);
  line-height: 1.75;
  max-width: 38ch;
  opacity: 0.84;
}

.split__media { overflow: hidden; }

.split__media img {
  width: 100%;
  height: 100%;
  min-height: 60vh;
  object-fit: cover;
  display: block;
  transition: transform var(--dur-zoom) var(--ease);
}

.split__media:hover img { transform: scale(1.06); }

/* --- ritual tiles --------------------------------------------------------- */

.ritual {
  display: flex;
  flex-wrap: wrap;
  min-height: 96vh;
}

.ritual-tile {
  position: relative;
  flex: 1 1 300px;
  min-height: 52vh;
  overflow: hidden;
  display: block;
  color: var(--cream);
}

.ritual-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--dur-zoom) var(--ease);
}

.ritual-tile:hover img { transform: scale(1.07); }

.ritual-tile__scrim {
  position: absolute;
  inset: 0;
  background: var(--scrim-tile);
  pointer-events: none;
}

.ritual-tile__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: var(--gap-tile);
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.ritual-tile__num {
  font-size: var(--t-caps);
  letter-spacing: 0.3em;
  opacity: 0.8;
}

.ritual-tile__name {
  font-family: var(--font-display);
  font-size: var(--t-tile);
  line-height: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.ritual-tile__body {
  font-size: var(--t-body-sm);
  line-height: 1.65;
  max-width: 30ch;
  opacity: 0.9;
}

/* --- marquee -------------------------------------------------------------- */

.marquee {
  overflow: hidden;
  border-top: 1px solid var(--rule-on-sand);
  border-bottom: 1px solid var(--rule-on-sand);
  padding: clamp(10px, 1.4vw, 20px) 0;
  background: var(--sand);
}

.marquee__row {
  display: flex;
  width: max-content;
  animation: marq 34s linear infinite;
  font-family: var(--font-display);
  font-size: var(--t-marquee);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  opacity: 0.9;
}

.marquee__row span { padding-right: 52px; }
.marquee__row span.is-alt { font-style: italic; opacity: 0.45; }

/* --- inside / the whole label --------------------------------------------- */

.inside {
  position: relative;
  min-height: 96vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.inside img {
  position: absolute;
  inset: -8% 0;
  width: 100%;
  height: 116%;
  object-fit: cover;
  display: block;
}

.inside__scrim {
  position: absolute;
  inset: 0;
  background: var(--scrim-flat);
}

.inside__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: var(--pad-y) var(--pad-x);
  color: var(--cream);
}

.inside__title {
  margin: 0 0 clamp(30px, 4vw, 60px);
  font-size: var(--t-d2);
  line-height: 0.88;
  text-transform: uppercase;
  letter-spacing: var(--track-display);
}

.inside__title em {
  font-style: italic;
  text-transform: none;
  opacity: 0.7;
}

.inside__lede {
  margin: -24px 0 clamp(30px, 4vw, 60px);
  font-size: var(--t-body);
  line-height: 1.75;
  max-width: 44ch;
  opacity: 0.82;
}

.inside__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--gap-cols);
}

.ingredient {
  border-top: 1px solid var(--rule-on-ink);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.ingredient__num {
  font-size: var(--t-caps);
  letter-spacing: var(--track-nav);
  opacity: 0.75;
}

.ingredient__name {
  font-family: var(--font-display);
  font-size: var(--t-h-card);
  line-height: 1.1;
}

.ingredient__body {
  font-size: var(--t-body-sm);
  line-height: 1.7;
  opacity: 0.82;
}

/* --- shop strip ----------------------------------------------------------- */

.shop-strip__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: clamp(24px, 3vw, 44px);
}

.shop-strip__title {
  font-size: var(--t-d3);
  line-height: 0.9;
  text-transform: uppercase;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: var(--gap-grid);
}

/* --- maker quote ---------------------------------------------------------- */

.maker {
  background: var(--ink);
  color: var(--cream);
  padding: var(--pad-y-lg) var(--pad-x);
}

.maker__inner { max-width: 1400px; margin: 0 auto; }

.maker__quote {
  margin: 18px 0 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--t-quote);
  line-height: 0.94;
  letter-spacing: -0.005em;
  text-wrap: balance;
}

.maker__quote em { font-style: italic; opacity: 0.72; }

/* --- generic page shell (story, contact, 404, search) --------------------- */

.page-head {
  padding: calc(var(--pad-y) + clamp(80px, 9vw, 150px)) var(--pad-x) var(--pad-y);
  background: var(--ink);
  color: var(--cream);
}

.page-head__title {
  font-size: var(--t-d2);
  line-height: 0.9;
  text-transform: uppercase;
  letter-spacing: var(--track-display);
  margin: 14px 0 0;
}

.page-body { padding: var(--pad-y) var(--pad-x); }

.measure { max-width: 68ch; }

.entry-content p + p { margin-top: 1.2em; }
.entry-content a { border-bottom: 1px solid var(--amber); }
.entry-content h2 { font-size: var(--t-d3); line-height: 0.95; margin: 1.1em 0 0.4em; text-transform: uppercase; }
.entry-content h3 { font-size: var(--t-h-card); margin: 1.2em 0 0.4em; }
.entry-content ul, .entry-content ol { padding-left: 1.2em; }
.entry-content li + li { margin-top: 0.5em; }
.entry-content img { height: auto; }

/* --- story ---------------------------------------------------------------- */

.story-hero {
  position: relative;
  height: 88vh;
  min-height: 420px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.story-hero img {
  position: absolute;
  inset: -8% 0;
  width: 100%;
  height: 116%;
  object-fit: cover;
  object-position: 52% 42%;
  display: block;
  animation: kb 30s ease-in-out infinite alternate;
}

.story-hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(40,25,10,0.45) 0%, rgba(40,25,10,0.15) 45%, rgba(40,25,10,0.8) 100%);
}

.story-hero__inner {
  position: relative;
  z-index: 2;
  padding: 0 var(--pad-x) clamp(30px, 4vw, 66px);
  color: var(--cream);
  width: 100%;
}

.story-hero__eyebrow {
  font-size: var(--t-caps);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  opacity: 0.85;
  animation: rise 800ms 100ms ease-out both;
}

.story-hero__title {
  margin: 12px 0 0;
  font-size: clamp(56px, 13vw, 320px);
  line-height: 0.84;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  animation: rise 900ms 200ms ease-out both;
}

.story-lede {
  padding: clamp(50px, 7vw, 130px) var(--pad-x);
  max-width: 1500px;
}

.story-lede p {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(26px, 3.4vw, 86px);
  line-height: 1.18;
  letter-spacing: -0.005em;
  text-wrap: balance;
}

.story-split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-items: stretch;
}

.story-split--founder { background: var(--sand-deep); }

.story-split__media { overflow: hidden; min-height: 56vh; }

.story-split__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--dur-zoom) var(--ease);
}

.story-split__media--founder img {
  object-position: 52% 22%;
  filter: saturate(0.86) sepia(0.08);
}

.story-split__media:hover img { transform: scale(1.05); }
.story-split__media--balm img { object-position: 62% center; }
.story-split__media--balm:hover img { transform: scale(1.07); }

.story-split__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(16px, 1.6vw, 30px);
  padding: clamp(40px, 6vw, 110px) var(--pad-x);
}

.story-split__title {
  font-size: clamp(38px, 5.6vw, 150px);
  line-height: 0.9;
  text-transform: uppercase;
}

.story-split__title em { font-style: italic; text-transform: none; }
.story-split--why .story-split__title { font-size: clamp(40px, 6.4vw, 168px); }
.story-split--why .story-split__title em { opacity: 0.78; }

.story-split__body {
  font-size: clamp(16px, 1.05vw, 28px);
  line-height: 1.75;
  max-width: 42ch;
  opacity: 0.84;
}

.story-sig { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }

.story-sig__name {
  font-family: var(--font-display);
  font-size: clamp(24px, 1.9vw, 46px);
  line-height: 1;
}

.story-sig__role {
  font-size: clamp(10px, 0.62vw, 17px);
  letter-spacing: var(--track-tagline);
  text-transform: uppercase;
  opacity: 0.75;
}

.story-process { padding: clamp(50px, 7vw, 130px) var(--pad-x); }

.story-process__head { margin-bottom: clamp(26px, 3vw, 58px); }

.story-process__title {
  margin: 14px 0 0;
  font-size: clamp(40px, 7vw, 190px);
  line-height: 0.88;
  text-transform: uppercase;
}

.story-process__title em { font-style: italic; text-transform: none; }

.story-process__grid,
.story-nevers__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(20px, 2.6vw, 52px);
}

.story-step {
  border-top: 1px solid rgba(42, 32, 24, 0.28);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.story-step__num {
  font-size: clamp(10px, 0.6vw, 16px);
  letter-spacing: var(--track-tagline);
  opacity: 0.75;
}

.story-step__title {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.3vw, 56px);
  line-height: 1.06;
}

.story-step__body {
  font-size: clamp(14px, 0.88vw, 22px);
  line-height: 1.7;
  opacity: 0.75;
}

.story-nevers {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.story-nevers img {
  position: absolute;
  inset: -8% 0;
  width: 100%;
  height: 116%;
  object-fit: cover;
  object-position: 50% 42%;
  display: block;
}

.story-nevers__scrim { position: absolute; inset: 0; background: rgba(36, 24, 14, 0.6); }

.story-nevers__inner {
  position: relative;
  z-index: 2;
  padding: clamp(46px, 6vw, 110px) var(--pad-x);
  color: var(--cream);
}

.story-nevers__grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  margin-top: clamp(22px, 2.4vw, 44px);
}

.story-never {
  border-top: 1px solid var(--rule-on-ink);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.story-never__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 2.6vw, 64px);
  line-height: 1.02;
}

.story-never__body {
  font-size: clamp(14px, 0.86vw, 21px);
  line-height: 1.7;
  opacity: 0.84;
}

.story-quote { padding: clamp(60px, 9vw, 160px) var(--pad-x); }
.story-quote__inner { max-width: 1500px; }

.story-quote__text {
  margin: 18px 0 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(34px, 6.6vw, 180px);
  line-height: 0.94;
  letter-spacing: -0.005em;
  text-wrap: balance;
}

.story-quote__text em { font-style: italic; opacity: 0.72; }

.story-cta {
  padding: clamp(50px, 7vw, 130px) var(--pad-x);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(24px, 3vw, 64px);
  align-items: center;
}

.story-cta__title {
  font-size: clamp(38px, 6vw, 150px);
  line-height: 0.92;
  text-transform: uppercase;
}

.story-cta__title em { font-style: italic; text-transform: none; }

.story-cta__body {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 1.4vw, 26px);
  align-items: start;
}

.story-cta__body p {
  font-size: clamp(16px, 1.05vw, 28px);
  line-height: 1.75;
  max-width: 42ch;
  opacity: 0.82;
}

.btn--lg { padding: 17px 34px; letter-spacing: 0.24em; font-size: clamp(11px, 0.64vw, 17px); }

/* --- contact -------------------------------------------------------------- */

.contact-hero {
  position: relative;
  height: 64vh;
  min-height: 340px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.contact-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  animation: kb 30s ease-in-out infinite alternate;
}

.contact-hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(40,25,10,0.4) 0%, rgba(40,25,10,0.18) 50%, rgba(40,25,10,0.78) 100%);
}

.contact-hero__inner {
  position: relative;
  z-index: 2;
  padding: 0 var(--pad-x) clamp(28px, 3.6vw, 60px);
  color: var(--cream);
  width: 100%;
}

.contact-hero__eyebrow {
  font-size: var(--t-caps);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  opacity: 0.85;
  animation: rise 800ms 100ms ease-out both;
}

.contact-hero__title {
  margin: 12px 0 0;
  font-size: clamp(56px, 13vw, 320px);
  line-height: 0.84;
  text-transform: uppercase;
  animation: rise 900ms 200ms ease-out both;
}

.contact-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: clamp(28px, 4vw, 90px);
  padding: clamp(44px, 6vw, 120px) var(--pad-x);
  align-items: start;
}

.contact-form-col {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 1.8vw, 32px);
}

.contact-form-col__title {
  font-size: clamp(34px, 4.6vw, 116px);
  line-height: 0.92;
  text-transform: uppercase;
}

.contact-sent {
  border: 1px solid rgba(42, 32, 24, 0.28);
  background: rgba(247, 239, 226, 0.6);
  padding: clamp(20px, 2vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-sent__title {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.2vw, 52px);
  line-height: 1.05;
}

.contact-sent__body {
  font-size: clamp(14px, 0.88vw, 22px);
  line-height: 1.7;
  opacity: 0.8;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 1.4vw, 26px);
}

.contact-form__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: clamp(14px, 1.4vw, 26px);
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.contact-form label.is-wide { grid-column: 1 / -1; }

.contact-form .field-label {
  font-size: clamp(10px, 0.6vw, 16px);
  letter-spacing: 0.24em;
  margin-bottom: 0;
}

.contact-form .field-line {
  border-bottom-color: rgba(42, 32, 24, 0.28);
  padding: 11px 2px;
  font-size: clamp(15px, 0.92vw, 24px);
}

.contact-form textarea {
  background: transparent;
  border: 1px solid rgba(42, 32, 24, 0.28);
  padding: 14px;
  font-family: inherit;
  font-weight: 300;
  font-size: clamp(15px, 0.92vw, 24px);
  line-height: 1.6;
  color: var(--ink);
  outline: none;
  resize: vertical;
  width: 100%;
}

.contact-form__actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.contact-form__error {
  font-size: clamp(12px, 0.74vw, 18px);
  color: #7A4718;
}

/* honeypot — off-screen, never shown, never announced */
.contact-form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-blocks {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 1.8vw, 34px);
}

.contact-block {
  border-top: 1px solid rgba(42, 32, 24, 0.24);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-block__label {
  font-size: clamp(10px, 0.6vw, 16px);
  letter-spacing: var(--track-tagline);
  text-transform: uppercase;
  opacity: 0.75;
}

.contact-block__title {
  font-family: var(--font-display);
  font-size: clamp(24px, 2vw, 48px);
  line-height: 1.1;
}

.contact-block__body {
  font-size: clamp(14px, 0.86vw, 21px);
  line-height: 1.7;
  opacity: 0.76;
}

.faq-section { padding: clamp(46px, 6vw, 120px) var(--pad-x); }

.faq-section__title {
  font-size: clamp(34px, 5.4vw, 140px);
  line-height: 0.92;
  text-transform: uppercase;
  margin-bottom: clamp(22px, 2.6vw, 50px);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(20px, 2.6vw, 52px);
}

.faq-item {
  border-top: 1px solid var(--rule-on-ink);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.faq-item__q {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.1vw, 52px);
  line-height: 1.08;
}

.faq-item__a {
  font-size: clamp(14px, 0.86vw, 21px);
  line-height: 1.7;
  opacity: 0.82;
}

/* --- shop ----------------------------------------------------------------- */

.shop-head { padding: clamp(34px, 5vw, 90px) var(--pad-x) clamp(20px, 2.6vw, 40px); }

.shop-head__row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.shop-head__title {
  font-size: clamp(56px, 12vw, 300px);
  line-height: 0.82;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  animation: rise 800ms ease-out both;
}

.shop-head__lede {
  margin: 0 0 clamp(6px, 1vw, 18px);
  font-size: var(--t-body);
  line-height: 1.7;
  max-width: 34ch;
  opacity: 0.8;
  animation: rise 800ms 140ms ease-out both;
}

.shop-filters {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(231, 216, 195, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(42, 32, 24, 0.14);
  border-bottom: 1px solid rgba(42, 32, 24, 0.14);
  padding: clamp(10px, 1vw, 18px) var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.shop-filters__set { display: flex; gap: clamp(8px, 0.9vw, 16px); flex-wrap: wrap; }

/*
 * The Shop prototype drew these chips with border-radius:100px, but both the
 * README and design-tokens.css state that no corner in this design is round.
 * Following the README, which the handoff names as the source of truth.
 */
.shop-filter {
  border: 1px solid var(--rule-on-sand);
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-weight: 300;
  font-size: clamp(10px, 0.6vw, 16px);
  letter-spacing: var(--track-btn);
  text-transform: uppercase;
  padding: 10px 18px;
  cursor: pointer;
  transition: background 240ms ease, color 240ms ease, border-color 240ms ease;
}

.shop-filter:hover { border-color: var(--ink); }

.shop-filter.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
}

.shop-filters__count {
  font-size: clamp(10px, 0.6vw, 16px);
  letter-spacing: var(--track-btn);
  text-transform: uppercase;
  opacity: 0.7;
}

.shop-grid-wrap { padding: clamp(28px, 3.4vw, 60px) var(--pad-x) clamp(50px, 6vw, 110px); }

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(clamp(230px, 19vw, 420px), 1fr));
  gap: clamp(18px, 2.2vw, 46px);
}

.shop-card { display: flex; flex-direction: column; }

.shop-card__media {
  position: relative;
  overflow: hidden;
  background: var(--sand-deep);
  display: block;
}

.shop-card__media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  display: block;
  mix-blend-mode: multiply;
  padding: clamp(14px, 1.4vw, 30px);
  transition: transform 800ms var(--ease);
}

.shop-card:hover .shop-card__media img { transform: scale(1.07); }

.shop-card__badge {
  position: absolute;
  top: 0; left: 0;
  background: var(--ink);
  color: var(--cream);
  font-size: clamp(9px, 0.55vw, 14px);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 7px 13px;
}

.shop-card__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: clamp(10px, 0.9vw, 18px);
}

.shop-card__name {
  font-family: var(--font-display);
  font-size: clamp(22px, 1.9vw, 44px);
  line-height: 1.06;
  color: var(--ink);
}

.shop-card__price {
  font-size: clamp(13px, 0.8vw, 21px);
  opacity: 0.7;
  white-space: nowrap;
}

.shop-card__blurb {
  margin: 6px 0 0;
  font-size: clamp(13px, 0.82vw, 20px);
  line-height: 1.6;
  opacity: 0.75;
}

.shop-card .btn { margin-top: clamp(10px, 1vw, 20px); }

.shop-card__notify {
  margin-top: clamp(10px, 1vw, 20px);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.shop-card__notify .field-line {
  flex: 1 1 150px;
  min-width: 0;
  width: auto;
  border-bottom-color: rgba(42, 32, 24, 0.4);
  padding: 11px 2px;
  font-size: clamp(13px, 0.8vw, 19px);
}

/* --- single product ------------------------------------------------------- */

.product-main { padding-top: clamp(90px, 11vw, 190px); }

.product-crumb {
  padding: 0 var(--pad-x);
  font-size: clamp(10px, 0.6vw, 16px);
  letter-spacing: var(--track-btn);
  text-transform: uppercase;
  opacity: 0.7;
}

.product-crumb a { border-bottom: 1px solid transparent; }
.product-crumb a:hover { border-bottom-color: var(--amber); }

.product-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(24px, 3vw, 70px);
  padding: clamp(20px, 2.6vw, 46px) var(--pad-x) clamp(40px, 5vw, 90px);
  align-items: start;
}

.product-gallery__main {
  background: var(--sand-deep);
  overflow: hidden;
}

.product-gallery__main img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  display: block;
  mix-blend-mode: multiply;
  padding: clamp(18px, 2vw, 44px);
}

.product-gallery__thumbs {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.product-gallery__thumbs img {
  width: clamp(64px, 6vw, 110px);
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: var(--sand-deep);
  mix-blend-mode: multiply;
  padding: 8px;
  display: block;
}

.product-info { display: flex; flex-direction: column; gap: clamp(14px, 1.4vw, 26px); }

.product-info__eyebrow {
  font-size: clamp(9px, 0.55vw, 14px);
  letter-spacing: var(--track-nav);
  text-transform: uppercase;
  opacity: 0.75;
}

.product-info__title {
  font-size: clamp(42px, 5.2vw, 140px);
  line-height: 0.92;
  text-transform: uppercase;
}

.product-info__price {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.2vw, 52px);
  line-height: 1;
}

.product-info__blurb {
  font-size: clamp(16px, 1.05vw, 28px);
  line-height: 1.75;
  max-width: 44ch;
  opacity: 0.84;
}

.product-info .quantity input {
  background: transparent;
  border: 1px solid var(--rule-on-sand);
  padding: 12px;
  font-family: inherit;
  font-weight: 300;
  color: var(--ink);
  width: 5em;
}

/* Woo's variation selects, restyled into the tracked-caps vocabulary. */
.product-info table.variations th,
.product-info table.variations td { padding: 8px 0; text-align: left; }

.product-info table.variations label {
  font-size: clamp(10px, 0.6vw, 16px);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0.75;
}

.product-info select {
  background: transparent;
  border: 1px solid var(--rule-on-sand);
  padding: 11px 12px;
  font-family: inherit;
  font-weight: 300;
  font-size: clamp(13px, 0.8vw, 20px);
  color: var(--ink);
  width: 100%;
}

/* The add-to-cart button carries `single_add_to_cart_button button alt`, so
   Woo's (0,3,1) `.alt` rule applies to it. The `body`-prefixed selector reaches
   (0,3,2) and beats it; the bare `.product-info` copy is the fallback for a
   product rendered outside a Woo page, where the body class is absent. */
.product-info .single_add_to_cart_button,
body.woocommerce .product-info button.single_add_to_cart_button {
  background: var(--ink);
  color: var(--sand);
  border: 1px solid var(--ink);
  font-family: inherit;
  font-weight: 300;
  font-size: clamp(11px, 0.64vw, 17px);
  letter-spacing: 0.24em;
  line-height: 1.3;
  text-transform: uppercase;
  text-shadow: none;
  box-shadow: none;
  background-image: none;
  border-radius: 0;
  padding: 17px 34px;
  cursor: pointer;
  transition: background var(--dur-btn) ease, color var(--dur-btn) ease;
}

.product-info .single_add_to_cart_button:hover,
body.woocommerce .product-info button.single_add_to_cart_button:hover {
  background: var(--cream);
  color: var(--ink);
}

/* --- accordions ----------------------------------------------------------- */

.product-accordions { margin-top: clamp(10px, 1.4vw, 24px); }

.accordion { border-top: 1px solid var(--rule-on-sand); }
.accordion:last-child { border-bottom: 1px solid var(--rule-on-sand); }

.accordion > summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: clamp(11px, 0.68vw, 18px);
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.accordion > summary::-webkit-details-marker { display: none; }

.accordion > summary::after {
  content: '+';
  font-size: 1.4em;
  line-height: 1;
  opacity: 0.7;
}

.accordion[open] > summary::after { content: '−'; }

.accordion__body {
  padding: 0 0 20px;
  font-size: clamp(14px, 0.88vw, 22px);
  line-height: 1.7;
  opacity: 0.82;
}

.accordion__body ol { margin: 0; padding-left: 1.3em; }
.accordion__body li + li { margin-top: 6px; }

/* --- promises band + related ---------------------------------------------- */

.promises { padding: clamp(46px, 6vw, 120px) var(--pad-x); }

.promises__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: clamp(20px, 2.6vw, 52px);
}

.promise {
  border-top: 1px solid var(--rule-on-ink);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.promise__title {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.2vw, 52px);
  line-height: 1.05;
}

.promise__body {
  font-size: clamp(14px, 0.86vw, 21px);
  line-height: 1.7;
  opacity: 0.84;
}

.related-section { padding: clamp(46px, 6vw, 110px) var(--pad-x); }

.related-section__title {
  font-size: clamp(34px, 5vw, 120px);
  line-height: 0.92;
  text-transform: uppercase;
  margin-bottom: clamp(20px, 2.4vw, 44px);
}

/* --- woo cart / checkout --------------------------------------------------
   The handoff listed woocommerce/cart/cart.php and checkout/form-checkout.php
   as overrides. Copied Woo templates have to be re-synced on every Woo release
   or they silently break checkout, and the spec's stated priority is "an
   on-brand standard Woo checkout" rather than the prototype's three-stage
   flow. So Woo's own markup is kept and restyled here instead.
   -------------------------------------------------------------------------- */

.woocommerce-cart .site-main,
.woocommerce-checkout .site-main,
.woocommerce-account .site-main {
  padding: clamp(90px, 11vw, 190px) var(--pad-x) var(--pad-y);
}

.woocommerce-cart h1,
.woocommerce-checkout h1 {
  font-size: var(--t-d3);
  line-height: 0.9;
  text-transform: uppercase;
  margin-bottom: clamp(20px, 3vw, 44px);
}

.woocommerce table.shop_table {
  border: none;
  border-collapse: collapse;
  width: 100%;
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
  border: none;
  border-bottom: 1px solid var(--rule-on-sand);
  padding: 16px 8px;
  text-align: left;
}

.woocommerce table.shop_table th {
  font-family: var(--font-ui);
  font-weight: 300;
  font-size: var(--t-caps);
  letter-spacing: var(--track-nav);
  text-transform: uppercase;
  opacity: 0.75;
}

.woocommerce table.shop_table td.product-name a {
  font-family: var(--font-display);
  font-size: var(--t-name);
  line-height: 1.1;
}

.woocommerce .cart_totals h2,
.woocommerce-checkout h3 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(26px, 2.2vw, 52px);
  line-height: 1.05;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.woocommerce .quantity input,
.woocommerce input[type="text"],
.woocommerce input[type="email"],
.woocommerce input[type="tel"],
.woocommerce input[type="password"],
.woocommerce input[type="number"],
.woocommerce textarea,
.woocommerce select,
.woocommerce .select2-selection {
  background: transparent;
  border: 1px solid var(--rule-on-sand);
  padding: 12px;
  font-family: inherit;
  font-weight: 300;
  font-size: var(--t-body-sm);
  color: var(--ink);
  outline: none;
  width: 100%;
}

.woocommerce label {
  font-size: var(--t-caps);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0.75;
}

/* --- WooCommerce buttons ---------------------------------------------------
   woocommerce.css styles its primary button as `.woocommerce button.button.alt`
   — (0,3,1). A shorter selector loses on specificity no matter which stylesheet
   is enqueued last, which is why `.woocommerce .button` (0,2,0) left Add to Cart
   purple, bold and 3px-rounded. Every `.alt` selector below is prefixed with
   `body` to reach (0,3,2) and win outright, so none of this depends on load
   order. WooCommerce always puts the `woocommerce` class on <body> for shop,
   product, cart, checkout and account pages, which is the whole surface these
   rules cover. Woo sets font-weight, border, radius and text-shadow on the same
   rule, so those are reset here too.
   -------------------------------------------------------------------------- */

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce #place_order,
body.woocommerce a.button,
body.woocommerce button.button,
body.woocommerce input.button,
body.woocommerce a.button.alt,
body.woocommerce button.button.alt,
body.woocommerce input.button.alt,
body.woocommerce a.checkout-button.button,
body.woocommerce #respond input#submit,
body.woocommerce #respond input#submit.alt {
  background: var(--ink);
  background-color: var(--ink);
  background-image: none;
  color: var(--sand);
  border: 1px solid var(--ink);
  border-radius: 0;
  font-family: inherit;
  font-weight: 300;
  font-size: var(--t-caps);
  letter-spacing: var(--track-btn);
  line-height: 1.3;
  text-transform: uppercase;
  text-shadow: none;
  box-shadow: none;
  padding: 15px 28px;
  cursor: pointer;
  transition: background var(--dur-btn) ease, color var(--dur-btn) ease;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce #place_order:hover,
body.woocommerce a.button:hover,
body.woocommerce button.button:hover,
body.woocommerce input.button:hover,
body.woocommerce a.button.alt:hover,
body.woocommerce button.button.alt:hover,
body.woocommerce input.button.alt:hover,
body.woocommerce a.checkout-button.button:hover,
body.woocommerce #respond input#submit:hover,
body.woocommerce #respond input#submit.alt:hover {
  background: var(--cream);
  background-color: var(--cream);
  color: var(--ink);
}

/* Woo dims disabled buttons by swapping the colour; keep the palette and dim
   with opacity instead so a greyed-out button still reads as the same button. */
body.woocommerce a.button.disabled,
body.woocommerce button.button.disabled,
body.woocommerce input.button.disabled,
body.woocommerce a.button.alt.disabled,
body.woocommerce button.button.alt.disabled,
body.woocommerce input.button.alt.disabled,
body.woocommerce button.button:disabled,
body.woocommerce button.button:disabled[disabled] {
  background: var(--ink);
  background-color: var(--ink);
  color: var(--sand);
  opacity: 0.4;
  cursor: not-allowed;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border: 1px solid var(--rule-on-sand);
  border-top-width: 2px;
  background: rgba(247, 239, 226, 0.6);
  padding: 16px 18px;
  font-size: var(--t-body-sm);
  list-style: none;
  margin: 0 0 24px;
}

.woocommerce-error { border-top-color: #7A4718; }

/* Woo hangs an icon-font glyph off each notice at `left: 1.5em` and reserves
   room for it with `padding-left: 3.5em`. The theme's padding is tighter, so
   the glyph would land on top of the text. Drop it; the 2px top rule already
   carries the meaning, and the glyph's green is off-palette anyway. */
.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before,
body.woocommerce .woocommerce-message::before,
body.woocommerce .woocommerce-info::before,
body.woocommerce .woocommerce-error::before { content: none; }

/* `.woocommerce .quantity .qty` (three classes) out-ranks the input rules
   above, so Woo's 3.631em width wins. Under the global border-box that leaves
   almost nothing between the 12px paddings and the number gets clipped. */
.woocommerce .quantity input.qty,
.woocommerce .product-info .quantity input.qty,
.product-info .quantity input.qty {
  width: 5em;
  min-width: 5em;
  text-align: center;
  border-radius: 0;
}

/* No radius anywhere is a design rule; these are the places Woo sets one. */
.woocommerce table.shop_table,
.woocommerce .select2-selection,
.woocommerce .select2-dropdown,
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select { border-radius: 0; }

.woocommerce .cart-collaterals .cart_totals,
.woocommerce-checkout-review-order {
  background: var(--sand-deep);
  padding: clamp(20px, 2.4vw, 40px);
}

/* Temperature-sensitive notice on tallow product pages. */
.product-note {
  border-left: 2px solid var(--amber);
  padding: 10px 0 10px 14px;
  font-size: clamp(13px, 0.8vw, 20px);
  line-height: 1.6;
  opacity: 0.8;
}

.product-info__subtitle {
  font-size: clamp(10px, 0.6vw, 16px);
  letter-spacing: var(--track-tagline);
  text-transform: uppercase;
  opacity: 0.75;
  margin-top: -6px;
}

.product-info__notify { display: flex; flex-direction: column; gap: 10px; }

.product-info__notify-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.product-info__notify-row .field-line { flex: 1 1 200px; width: auto; }

/* Blurbs vary from a few words to a full paragraph, so the card clamps to
   three lines — a long one no longer stretches its row taller than the rest. */
.shop-card__blurb {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Keep the button on the same baseline across a row whatever the blurb length. */
.shop-card { height: 100%; }
.shop-card .btn { margin-top: auto; }
.shop-grid { align-items: stretch; }
