/* REPLEN — brand tokens per Build Spec v1.1 §6 */
:root {
  --ink: #111111;
  --cream: #F6F1E7; /* open token — confirm against lockup images */
  --clay: #C1440E;  /* stamp mark ONLY */
  --leaf: #2D3D18;
  --stone: #8A8578;
  --radius: 12px;
  --font: "Archivo", "Inter", -apple-system, sans-serif;

  /* Modular type scale — every font-size on the site pulls from here.
     No inline font-size overrides; if a size is needed, it belongs here. */
  --step-xs: 0.8rem;
  --step-sm: 0.9rem;
  --step-base: 1rem;
  --step-md: clamp(1.05rem, 1.5vw, 1.15rem);
  --step-lg: clamp(1.2rem, 2.2vw, 1.35rem);
  --step-xl: clamp(1.4rem, 4.5vw, 2rem);
  --step-2xl: clamp(1.8rem, 5vw, 2.4rem);
  --step-3xl: clamp(2.1rem, 7vw, 3.4rem);

  /* Two container widths, used consistently: -text for reading columns,
     -media for anything holding imagery/grids. Nothing else. */
  --w-text: 640px;
  --w-media: 1440px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--font);
  background: var(--cream);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--ink); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.wrap { max-width: var(--w-text); margin: 0 auto; padding: 0 1.25rem; }
.wrap-wide { max-width: var(--w-media); margin: 0 auto; padding: 0 1.25rem; }

/* Utility text size — use this instead of inline font-size. */
.text-md { font-size: var(--step-md); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--cream);
  border-bottom: 1px solid rgba(17,17,17,0.12);
}
.nav-inner {
  max-width: var(--w-media); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.85rem 1.25rem;
}
.wordmark {
  font-weight: 800; letter-spacing: 0.02em; font-size: clamp(1.3rem, 4vw, 1.6rem);
  text-decoration: none; color: var(--ink); text-transform: uppercase;
}
.footer-wordmark {
  font-weight: 800; letter-spacing: 0.02em; font-size: clamp(1.3rem, 4vw, 1.7rem);
  text-transform: uppercase; margin: 0;
}
.nav-links { display: flex; gap: 1.4rem; list-style: none; align-items: center; }
.nav-links a {
  text-decoration: none; font-size: 0.95rem; font-weight: 500; white-space: nowrap;
  padding: 0.6rem 0.15rem; min-height: 44px; display: inline-flex; align-items: center;
  border-bottom: 2px solid transparent; transition: border-color 200ms;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { border-bottom-color: var(--ink); }
.nav-links a.nav-shop {
  background: var(--ink); color: var(--cream);
  border-radius: var(--radius); padding: 0.5rem 1rem;
  border-bottom-color: transparent !important;
}
.nav-links a.nav-shop:hover { background: #2b2b2b; }
.cart-link {
  display: inline-flex; align-items: center; position: relative;
  border-bottom-color: transparent !important;
}
.cart-link svg { display: block; }
.cart-count {
  display: none; position: absolute; top: 0.2rem; right: -0.5rem;
  min-width: 1.1rem; height: 1.1rem; padding: 0 0.3rem;
  border-radius: 999px; background: var(--ink); color: var(--cream);
  font-size: 0.65rem; font-weight: 700; align-items: center; justify-content: center;
}
.cart-count.is-visible { display: inline-flex; }

@media (max-width: 640px) {
  .nav-links { gap: 0.9rem; }
}

/* ---------- Cart drawer (global, injected by js/cart.js) ---------- */
.cart-overlay {
  position: fixed; inset: 0; background: rgba(17,17,17,0.4);
  opacity: 0; pointer-events: none; transition: opacity 220ms ease; z-index: 90;
}
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100vw);
  background: var(--cream); z-index: 91; box-shadow: -8px 0 24px rgba(17,17,17,0.15);
  transform: translateX(100%); transition: transform 260ms cubic-bezier(0.4,0,0.2,1);
  display: flex; flex-direction: column;
}
body.cart-open .cart-overlay { opacity: 1; pointer-events: auto; }
body.cart-open .cart-drawer { transform: translateX(0); }
body.cart-open { overflow: hidden; }
.cart-drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 1.25rem; border-bottom: 1px solid rgba(17,17,17,0.12);
}
.cart-drawer-header h2 { font-size: var(--step-lg); color: var(--ink); }
.cart-drawer-close {
  width: 36px; height: 36px; border: none; background: none; cursor: pointer;
  font-size: 1.4rem; line-height: 1; color: var(--ink);
}
.cart-drawer-body { flex: 1; overflow-y: auto; padding: 0.5rem 1.25rem; }
.cart-drawer-footer {
  padding: 1rem 1.25rem 1.25rem; border-top: 1px solid rgba(17,17,17,0.12);
}
.cart-drawer-total {
  display: flex; justify-content: space-between; font-weight: 700;
  font-size: var(--step-lg); margin-bottom: 0.9rem;
}
.cart-drawer-links { display: flex; gap: 0.8rem; margin-top: 0.7rem; }
.cart-drawer-links a { flex: 1; text-align: center; font-size: var(--step-sm); font-weight: 600; }

/* ---------- Cart page ---------- */
.cart-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 1rem 0; border-bottom: 1px solid rgba(17,17,17,0.1);
}
.cart-row-info { flex: 1; }
.cart-row-name { font-weight: 700; }
.cart-row-unit { color: var(--stone); font-size: var(--step-xs); }
.cart-qty { display: flex; align-items: center; gap: 0.5rem; }
.cart-qty button {
  width: 32px; height: 32px; border: 1px solid rgba(17,17,17,0.25); background: none;
  border-radius: 6px; font-size: 1rem; font-weight: 700; cursor: pointer; line-height: 1;
}
.cart-qty button:hover { background: rgba(17,17,17,0.06); }
.cart-row-total { font-weight: 700; min-width: 5rem; text-align: right; }
.cart-remove {
  background: none; border: none; color: var(--stone); font-size: var(--step-xs);
  text-decoration: underline; cursor: pointer; padding: 0.4rem;
}
.cart-summary {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 1.2rem; padding-top: 1.2rem; border-top: 2px solid var(--ink);
  font-weight: 700; font-size: var(--step-lg);
}
.cart-empty { text-align: center; padding: 3rem 0; color: var(--stone); }

/* ---------- Checkout page ---------- */
.checkout-grid { display: grid; gap: 2rem; }
@media (min-width: 720px) { .checkout-grid { grid-template-columns: 1.3fr 1fr; align-items: start; } }
.checkout-summary {
  background: rgba(17,17,17,0.04); border-radius: var(--radius); padding: 1.25rem;
}
.checkout-summary-row {
  display: flex; justify-content: space-between; font-size: var(--step-sm);
  padding: 0.4rem 0;
}
.checkout-summary-total {
  display: flex; justify-content: space-between; font-weight: 700; font-size: var(--step-lg);
  margin-top: 0.6rem; padding-top: 0.6rem; border-top: 1px solid rgba(17,17,17,0.15);
}
.checkout-confirm { text-align: center; padding: 2rem 0; }
@media (max-width: 560px) {
  .nav-links { gap: 0.6rem; }
  .nav-links a { font-size: 0.8rem; }
  .nav-links a.nav-shop { padding: 0.5rem 0.7rem; }
}
@media (max-width: 340px) {
  .wordmark { font-size: 1.1rem; }
  .nav-links { gap: 0.4rem; }
  .nav-links a { font-size: 0.72rem; }
  .nav-links a.nav-shop { padding: 0.45rem 0.55rem; }
}

/* ---------- Type ---------- */
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-size: var(--step-3xl); font-weight: 800; }
h1.h1-compact { font-size: var(--step-2xl); }
h2 { font-size: var(--step-xl); font-weight: 700; color: var(--leaf); }
h3 { font-size: var(--step-lg); font-weight: 700; }
.lead-text { font-size: var(--step-lg); }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.18em;
  font-size: 0.75rem; font-weight: 600; color: var(--stone);
}
.fine { color: var(--stone); font-size: 0.85rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0.8rem 2rem;
  background: var(--ink); color: var(--cream);
  border: 1px solid var(--ink); border-radius: var(--radius);
  font-family: var(--font); font-size: 1rem; font-weight: 600;
  text-decoration: none; cursor: pointer;
  transition: background 200ms, color 200ms;
}
.btn:hover { background: #2b2b2b; }
.btn-block { width: 100%; }

/* ---------- Stamp (clay lives here, nowhere else) ---------- */
.stamp {
  display: inline-block;
  color: var(--clay);
  border: 2.5px solid var(--clay);
  padding: 0.25rem 0.7rem;
  text-transform: uppercase; letter-spacing: 0.14em;
  font-weight: 800; font-size: 0.8rem;
  transform: rotate(-3deg);
}

/* ---------- Sections ---------- */
.section { padding: 3.5rem 0; }
.section + .section { border-top: 1px solid rgba(17,17,17,0.08); }

/* Ink register — high-emphasis dark band, max 1–2 per page */
.section-ink {
  background: var(--ink); color: var(--cream);
  border-top: none !important;
}
.section-ink + .section { border-top: none; }
.section-ink h2 { color: var(--cream); }
.section-ink a { color: var(--cream); }
.section-ink .eyebrow { color: rgba(246,241,231,0.55); }
.section-ink .fine { color: rgba(246,241,231,0.55); }
.section-ink .btn {
  background: var(--cream); color: var(--ink); border-color: var(--cream);
}
.section-ink .btn:hover { background: #e9e2d2; }
.section-ink input {
  background: rgba(246,241,231,0.08); color: var(--cream);
  border-color: rgba(246,241,231,0.35);
}
.section-ink input::placeholder { color: rgba(246,241,231,0.45); }
.section-ink input:focus-visible { outline-color: var(--cream); }
.section-ink .form-msg-success { color: #b9d18a; }
.section-ink .form-msg-error { color: #f0977a; }

/* ---------- Hero ----------
   Mobile: stacked rows, text then a big full-bleed image.
   Desktop: side by side, text left / large image right — image still
   runs edge-to-edge on its side (no right-hand gutter). */
.hero { padding: 2.5rem 0 0; text-align: left; }
.hero-text-row {
  max-width: var(--w-text); margin: 0 auto; padding: 0 1.25rem 2rem;
}
.hero-image-row { width: 100%; line-height: 0; }
.hero-image-row img {
  width: 100%; height: auto; display: block;
  max-height: 60vh; object-fit: cover;
}
@media (min-width: 900px) {
  .hero { padding: 0; }
  .hero-top { display: flex; align-items: center; }
  .hero-text-row {
    flex: 1 1 45%; max-width: 640px; padding: 0 3rem; text-align: left;
  }
  .hero-text-row .lead { margin-left: 0; margin-right: 0; }
  .hero-image-row { flex: 1 1 55%; align-self: stretch; }
  .hero-image-row img { width: 100%; height: 100%; max-height: none; min-height: 520px; object-fit: cover; }
}
.hero .tagline {
  text-transform: uppercase; letter-spacing: 0.22em;
  font-size: 0.8rem; font-weight: 600; margin-top: 0.5rem;
}
.hero p.lead { font-size: var(--step-lg); margin: 1.4rem 0 2rem; max-width: 30ch; }

/* ---------- Marquee (scrolling highlight strip) ----------
   Sits flush against the section below — no bottom margin/padding on the
   hero, breathing room instead lives inside the marquee itself. No fade
   mask on the edges, by deliberate choice: a hard clip reads cleaner
   against the flush border than a soft fade would. */
.marquee {
  overflow: hidden; width: 100%; padding: 1rem 0;
}
.marquee-track {
  display: flex; align-items: center; gap: 2.5rem; width: max-content;
  animation: marquee-scroll 34s linear infinite;
}
.marquee-track span {
  white-space: nowrap; font-size: var(--step-sm); font-weight: 600;
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.marquee-track span::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--leaf); flex-shrink: 0;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; overflow-x: auto; }
}

.ratio-4x5 { aspect-ratio: 4 / 5; }
.ratio-3x4 { aspect-ratio: 3 / 4; }

.photo-real { width: 100%; object-fit: cover; border-radius: 4px; display: block; }

/* ---------- Product gallery ---------- */
.gallery-main img { width: 100%; border-radius: 4px; }
.gallery-thumbs { display: flex; gap: 0.6rem; margin-top: 0.6rem; }
.gallery-thumbs button {
  flex: 0 0 auto; width: 64px; height: 64px; padding: 0;
  border: 2px solid transparent; border-radius: 4px; cursor: pointer;
  background: none; overflow: hidden;
}
.gallery-thumbs button img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-thumbs button[aria-current="true"] { border-color: var(--ink); }
/* A single-thumbnail strip reads as a broken carousel control, not a
   deliberate single-image state — hide the strip entirely until there's
   more than one image to switch between. */
.gallery-thumbs:has(button:only-child) { display: none; }

/* ---------- Stock status ----------
   Manually set today, since there is no real inventory/checkout system yet.
   Exactly one of these is ever shown at a time — swap the class on
   .stock-badge (and the matching CTA copy) the moment there's a real state
   to report. Never show a state that isn't true, and never invent a count
   ("3 left") without a real inventory source behind it. */
.stock-badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: var(--step-xs); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; padding: 0.3rem 0.7rem; border-radius: 999px;
  margin-bottom: 0.6rem;
}
.stock-badge::before {
  content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%;
}
.stock-prelaunch { background: rgba(138,133,120,0.15); color: var(--stone); }
.stock-prelaunch::before { background: var(--stone); }
.stock-in { background: #1f8a3d; color: #ffffff; }
.stock-in::before { background: #ffffff; }
.stock-low { background: rgba(138,74,31,0.12); color: #8a4a1f; }
.stock-low::before { background: #8a4a1f; }
.stock-out { background: rgba(17,17,17,0.08); color: var(--ink); }
.stock-out::before { background: var(--ink); }

/* ---------- Size variant selector (value ladder) ----------
   Three tiers, styled so the eye naturally travels toward 1kg without
   making 250g/500g feel like traps — savings badges are real math
   (computed from actual prices), never invented numbers. */
.size-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; margin: 0.8rem 0 1rem; }
.size-card { position: relative; }
.size-card input {
  position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer;
}
.size-card label {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.15rem;
  margin: 0; padding: 0.9rem 0.5rem 0.7rem; min-height: 44px;
  border: 1.5px solid rgba(17,17,17,0.2); border-radius: var(--radius);
  cursor: pointer; transition: border-color 150ms, background 150ms, transform 150ms;
  position: relative;
}
.size-card .size-name { font-weight: 700; font-size: var(--step-sm); }
.size-card .size-price { font-weight: 700; font-size: var(--step-md); }
.size-card .size-servings-note {
  font-size: var(--step-xs); color: var(--stone);
}
.size-card .size-save {
  font-size: var(--step-xs); font-weight: 700; color: var(--leaf); margin-top: 0.1rem;
}

/* Photo-bearing size cards (homepage "Pick your size") — clickable links
   through to the product page, with a hover lift to signal interactivity. */
.size-cards-photo { max-width: 900px; margin-left: auto; margin-right: auto; gap: 1.25rem; }
.size-card-link {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  text-decoration: none; color: var(--ink); padding: 0; padding-bottom: 0.9rem;
  border: 1.5px solid rgba(17,17,17,0.2); border-radius: var(--radius);
  overflow: hidden; position: relative; cursor: pointer; height: 100%;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}
.size-card-link:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 28px rgba(17,17,17,0.14);
  border-color: var(--ink);
}
.size-card-link:hover .size-card-img { transform: scale(1.04); }
.size-card-img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 0;
  margin-bottom: 0.7rem; transition: transform 300ms ease;
}
.size-cards-photo .size-name { margin-top: 0.1rem; }
.size-cards-photo .size-price,
.size-cards-photo .size-servings-note,
.size-cards-photo .size-save { padding: 0 0.6rem; }
.size-nudge {
  font-size: var(--step-xs); font-style: italic; color: var(--stone);
  padding: 0 0.6rem; margin-top: 0.25rem;
}
@media (max-width: 640px) {
  .size-cards-photo { grid-template-columns: repeat(2, 1fr); }
  .size-cards-photo .size-card:nth-child(3) {
    grid-column: 1 / -1; max-width: calc(50% - 0.625rem); margin: 0 auto;
  }
}

/* ---------- Quantity stepper ---------- */
.qty-stepper {
  display: inline-flex; align-items: stretch; margin-top: 1rem;
  border: 1.5px solid rgba(17,17,17,0.25); border-radius: var(--radius); overflow: hidden;
}
.qty-stepper button {
  width: 44px; min-height: 44px; border: none; background: none;
  font-size: 1.1rem; font-weight: 700; cursor: pointer; color: var(--ink);
}
.qty-stepper button:hover { background: rgba(17,17,17,0.06); }
.qty-stepper input {
  width: 3rem; min-height: 44px; border: none; border-left: 1.5px solid rgba(17,17,17,0.2);
  border-right: 1.5px solid rgba(17,17,17,0.2); text-align: center;
  font-family: var(--font); font-size: 1rem; font-weight: 600; color: var(--ink);
  -moz-appearance: textfield; padding: 0;
}
.qty-stepper input::-webkit-outer-spin-button,
.qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.size-card input:checked + label {
  border-color: var(--ink); border-width: 2px; background: rgba(17,17,17,0.04);
}
.size-card input:focus-visible + label { outline: 2px solid var(--ink); outline-offset: 2px; }
.size-card .size-ribbon {
  position: absolute; top: -0.7rem; left: 50%; transform: translateX(-50%);
  background: var(--leaf); color: var(--cream); font-size: 0.65rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em; padding: 0.3rem 0.7rem; border-radius: 999px;
  white-space: nowrap; border: 1.5px solid var(--cream);
  box-shadow: 0 2px 6px rgba(17,17,17,0.25);
  animation: ribbon-pulse 2.2s ease-in-out infinite;
}
@keyframes ribbon-pulse {
  0%, 100% { box-shadow: 0 2px 6px rgba(17,17,17,0.25), 0 0 0 0 rgba(45,61,24,0.5); }
  50% { box-shadow: 0 2px 6px rgba(17,17,17,0.25), 0 0 0 6px rgba(45,61,24,0); }
}
/* Corner overlay treatment for the photo-bearing cards — badge sits pinned
   to the image's top-right corner instead of straddling the card's top edge.
   Must come after the base .size-card .size-ribbon rule above: both
   selectors are equal specificity, so source order decides the winner. */
.size-cards-photo .size-ribbon {
  top: 0.7rem; right: 0.7rem; left: auto; transform: none; z-index: 2;
}
@media (max-width: 420px) {
  .size-cards { gap: 0.4rem; }
  .size-card label { padding: 0.7rem 0.3rem 0.55rem; }
  .size-card .size-name { font-size: var(--step-xs); }
  .size-card .size-price { font-size: var(--step-sm); }
  .size-card .size-servings-note, .size-card .size-save { font-size: 0.68rem; }
  .size-card .size-ribbon { font-size: 0.58rem; padding: 0.15rem 0.4rem; top: -0.55rem; }
}

/* ---------- Allergen callout ---------- */
.allergen-box {
  display: flex; gap: 0.9rem; align-items: flex-start; margin-top: 1.2rem;
  padding: 1rem 1.1rem; border: 1.5px solid #b5651d; border-radius: var(--radius);
  background: rgba(181,101,29,0.06);
}
.allergen-box svg { flex-shrink: 0; margin-top: 0.15rem; color: #b5651d; }
.allergen-box p { margin: 0; font-size: var(--step-sm); }

/* ---------- Icon list (how to take it) ---------- */
.icon-list { margin-top: 1rem; display: flex; flex-direction: column; gap: 1.1rem; }
.icon-list-row { display: flex; gap: 0.9rem; align-items: flex-start; }
.icon-list-row svg { flex-shrink: 0; color: var(--leaf); margin-top: 0.1rem; }
.icon-list-row p { margin: 0; }

/* ---------- Nutrition table (bordered card) ---------- */
.nutrition-table {
  margin-top: 0.8rem; width: 100%; max-width: 26rem;
  border: 1px solid rgba(17,17,17,0.15); border-radius: var(--radius);
  border-collapse: separate; border-spacing: 0; overflow: hidden;
}
.nutrition-table td { padding: 0.6rem 1rem; border-bottom: 1px solid rgba(17,17,17,0.12); }
.nutrition-table tr:last-child td { border-bottom: none; }
.nutrition-table td:last-child { text-align: right; font-weight: 600; }

/* ---------- Benefit list (above-the-fold, product page) ---------- */
.benefit-list { list-style: none; margin-top: 1rem; }
.benefit-list li {
  position: relative; padding: 0.25rem 0 0.25rem 1.5rem;
  font-size: var(--step-sm); color: var(--ink);
}
.benefit-list li::before {
  content: ""; position: absolute; left: 0; top: 0.55rem;
  width: 0.9rem; height: 0.45rem;
  border-left: 2px solid var(--leaf); border-bottom: 2px solid var(--leaf);
  transform: rotate(-45deg);
}

/* ---------- Product ---------- */
.price { font-size: 1.5rem; font-weight: 700; margin: 0.5rem 0; }
.trust-points { list-style: none; margin: 1rem 0; }
.trust-points li { padding: 0.45rem 0 0.45rem 1.4rem; position: relative; }
.trust-points li::before {
  content: ""; position: absolute; left: 0; top: 0.95rem;
  width: 0.55rem; height: 0.55rem; background: var(--leaf); border-radius: 50%;
}
.section-ink .trust-points li::before { background: var(--cream); }

/* sticky mobile add-to-cart bar */
.sticky-cta {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
  background: var(--cream); border-top: 1px solid rgba(17,17,17,0.15);
  padding: 0.7rem 1.25rem calc(0.7rem + env(safe-area-inset-bottom));
  display: flex; gap: 1rem; align-items: center; justify-content: space-between;
}
.sticky-cta .btn { flex: 1; max-width: 320px; }
.sticky-cta.is-hidden { display: none; }
#notify { scroll-margin-top: 5rem; }
@media (min-width: 720px) { .sticky-cta { display: none; } }
body.has-sticky { padding-bottom: 5.5rem; }
@media (min-width: 720px) { body.has-sticky { padding-bottom: 0; } }

/* ---------- FAQ accordion ---------- */
details {
  border-bottom: 1px solid rgba(17,17,17,0.12);
}
summary {
  cursor: pointer; font-weight: 600; padding: 1rem 0;
  min-height: 44px; display: flex; align-items: center; justify-content: space-between;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.3rem; font-weight: 400; }
details[open] summary::after { content: "\2212"; }
details p { padding: 0 0 1.2rem; max-width: 60ch; }

/* ---------- Forms ---------- */
label { display: block; font-weight: 600; font-size: 0.9rem; margin: 1.1rem 0 0.35rem; }
input, textarea, select {
  width: 100%; padding: 0.75rem 0.9rem; min-height: 48px;
  font-family: var(--font); font-size: 1rem;
  background: #fff; color: var(--ink);
  border: 1px solid rgba(17,17,17,0.35); border-radius: var(--radius);
}
textarea { min-height: 8rem; resize: vertical; }
select { max-width: 100%; }

/* ---------- Async form feedback ---------- */
.form-msg { min-height: 1.2rem; margin-top: 0.8rem; font-size: 0.9rem; font-weight: 500; }
.form-msg-success { color: var(--leaf); }
.form-msg-error { color: #8a2f1f; }

/* ---------- Lead capture (notify form) ---------- */
.lead-form { display: flex; gap: 0.6rem; max-width: 28rem; margin-top: 1rem; flex-wrap: wrap; }
.lead-form input[type="email"] { flex: 1 1 12rem; min-width: 0; margin: 0; }
.lead-form button { flex: 0 0 auto; }
.lead-note { margin-top: 0.9rem; }

/* ---------- Grids ---------- */
.grid-2 { display: grid; gap: 1.5rem; }
.grid-3 { display: grid; gap: 1rem; }
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: 1fr 1fr; align-items: center; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* Full-width image row, wider than the text column but not flush against
   the screen edge — a little breathing room left/right on desktop too */
.grid-3-bleed { padding: 0 1.25rem; }
@media (min-width: 720px) {
  .grid-3-bleed { gap: 0; padding: 0 2.5rem; }
  .grid-3-bleed .photo-real { border-radius: 0; }
}

/* ---------- Footer ----------
   Dark ink band (mirrors .section-ink elsewhere) with a brand column and
   two link columns on desktop; every interactive element gets a deliberate
   hover animation rather than a flat color swap. */
footer {
  background: var(--ink); color: var(--cream);
  border-top: 3px solid var(--leaf);
  padding: 3.5rem 0 2rem; margin-top: 0;
}
footer .wrap { display: grid; grid-template-columns: 1fr; gap: 0.2rem; }
footer .footer-wordmark { color: var(--cream); }
footer > .wrap > .fine:nth-child(2) { color: rgba(246,241,231,0.6); }
footer a { color: var(--cream); text-decoration: none; }

footer nav { margin-top: 1.6rem; display: flex; flex-wrap: wrap; gap: 2.5rem 3rem; }
footer nav ul { list-style: none; display: flex; flex-direction: column; gap: 0.15rem; margin: 0; }
footer nav a {
  position: relative; display: inline-block; width: fit-content;
  font-size: 0.9rem; padding: 0.4rem 0;
}
footer nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0.3rem;
  width: 100%; height: 1.5px; background: var(--cream);
  transform: scaleX(0); transform-origin: left;
  transition: transform 220ms ease;
}
footer nav a:hover::after { transform: scaleX(1); }
.footer-legal a { color: rgba(246,241,231,0.6); font-size: 0.8rem; }
.footer-legal a::after { background: rgba(246,241,231,0.6); }

.footer-social { margin: 1rem 0 0.4rem; display: flex; gap: 1rem; }
.footer-social a {
  font-weight: 600; display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.5rem 0.8rem 0.5rem 0.55rem; border-radius: 999px;
  border: 1px solid rgba(246,241,231,0.25);
  transition: background 200ms ease, border-color 200ms ease, transform 200ms ease;
}
.footer-social a:hover {
  background: rgba(246,241,231,0.1); border-color: rgba(246,241,231,0.5);
  transform: translateY(-2px);
}
.footer-social a:hover svg { transform: scale(1.1); }
.footer-social svg { flex-shrink: 0; transition: transform 200ms ease; }

footer > .wrap > .fine:last-child {
  margin-top: 2.2rem; padding-top: 1.4rem;
  border-top: 1px solid rgba(246,241,231,0.15);
  color: rgba(246,241,231,0.5);
}
@media (min-width: 720px) {
  footer .wrap {
    grid-template-columns: 1.3fr auto; column-gap: 3rem; align-items: start;
  }
  footer .wrap > .footer-wordmark { grid-column: 1; grid-row: 1; }
  footer .wrap > .fine:nth-child(2) { grid-column: 1; grid-row: 2; }
  footer .wrap > .footer-social { grid-column: 1; grid-row: 3; }
  footer .wrap > nav { grid-column: 2; grid-row: 1 / span 3; margin-top: 0.3rem; }
  footer .wrap > .fine:last-child { grid-column: 1 / -1; }
}

/* ---------- Our Story: chapters, pull-quotes, sell blocks ---------- */
.story-chapter { padding: 3.5rem 0; }
.story-chapter + .story-chapter { border-top: 1px solid rgba(17,17,17,0.08); }
.story-chapter.section-ink .chapter-label { color: rgba(246,241,231,0.6); }
.chapter-label {
  display: block; text-transform: uppercase; letter-spacing: 0.16em;
  font-size: var(--step-xs); font-weight: 700; color: var(--stone); margin-bottom: 0.5rem;
}
.chapter-title { font-size: var(--step-2xl); font-weight: 800; color: inherit; margin-bottom: 1.2rem; }
.story-chapter.section-ink .chapter-title { color: var(--cream); }
.story-photo { margin: 1.5rem 0; max-width: 360px; }
.pull-quote {
  font-size: var(--step-xl); font-weight: 700; line-height: 1.3;
  margin: 2rem 0; padding-left: 1.2rem; border-left: 4px solid var(--leaf);
  max-width: 26ch;
}
.story-chapter.section-ink .pull-quote { border-left-color: var(--cream); }
.story-sell {
  display: flex; align-items: center; gap: 1.1rem; margin-top: 2rem;
  padding: 1rem; border: 1px solid rgba(17,17,17,0.15); border-radius: var(--radius);
  background: rgba(17,17,17,0.03); max-width: 32rem;
}
.story-chapter.section-ink .story-sell {
  background: rgba(246,241,231,0.08); border-color: rgba(246,241,231,0.25);
}
.story-sell img { width: 52px; height: 52px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.story-sell-text { flex: 1; font-size: var(--step-sm); }
.story-sell-text strong { display: block; font-size: var(--step-sm); margin-bottom: 0.1rem; }
.story-sell .btn { flex-shrink: 0; padding: 0.6rem 1.1rem; min-height: 40px; font-size: var(--step-sm); }
@media (max-width: 480px) {
  .story-sell { flex-wrap: wrap; }
  .story-sell img { display: none; }
  .story-sell-text { flex-basis: 100%; }
  .story-sell .btn { flex: 1; text-align: center; margin-top: 0.3rem; }
}

/* ---------- Prose (policies, story) ---------- */
.prose h2 { margin: 2.2rem 0 0.8rem; }
.prose h3 { margin: 1.6rem 0 0.5rem; }
.prose p, .prose ul, .prose ol { margin-bottom: 1rem; max-width: 65ch; }
.prose ul, .prose ol { padding-left: 1.3rem; }
