/* ==========================================================================
   Velan Foods — site.css
   Visual system derived from the Vetri packaging: jewel-tone fields, gold
   engraved capitals, cream arch panels, kolam line-work, block-print borders.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Colour — every value lifted from the printed bags */
  --paper:      #F7F0E0;   /* the cream panel on every bag            */
  --paper-2:    #EFE4CB;   /* shaded cream, for insets                */
  --paper-3:    #E3D5B6;   /* rule / border on cream                  */
  --ink:        #17231B;   /* near-black with green in it             */
  --ink-2:      #4A5A4C;   /* secondary text on cream                 */
  --field:      #123D2A;   /* Ponni forest green — primary brand      */
  --field-2:    #0B2A1C;   /* deeper green, footer + hero floor       */
  --field-3:    #1D5238;   /* lifted green, hover states              */
  --gold:       #C08A22;   /* foil gold                               */
  --gold-lt:    #E3B75A;   /* highlight on gold                       */
  --marigold:   #DD7B22;   /* Sona orange — decorative accent         */
  --cta:        #B3540F;   /* deepened Sona, so white type passes AA   */
  --cta-h:      #96450B;
  --gold-ink:   #8A5E12;   /* gold, darkened enough to read on cream   */
  --maroon:     #571A22;   /* Seeraga Samba                           */
  --indigo:     #1B2A4A;   /* Idli                                    */

  /* Semantic */
  --bg:         var(--paper);
  --text:       var(--ink);
  --muted:      var(--ink-2);
  --line:       var(--paper-3);
  --focus:      #0A66C2;

  /* Type */
  --display: 'Marcellus', 'Optima', 'Palatino Linotype', Georgia, serif;
  --body:    'Karla', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --note:    'Cormorant Garamond', Georgia, serif;

  --t-xs:   0.75rem;
  --t-sm:   0.8125rem;
  --t-base: 1rem;
  --t-md:   1.125rem;
  --t-lg:   1.375rem;
  --t-xl:   1.875rem;
  --t-2xl:  2.5rem;
  --t-3xl:  3.5rem;
  --t-4xl:  clamp(2.6rem, 5.6vw, 4.5rem);

  /* Space */
  --s1: 0.375rem;  --s2: 0.75rem;  --s3: 1.125rem;  --s4: 1.5rem;
  --s5: 2.25rem;   --s6: 3rem;     --s7: 4.5rem;    --s8: 7rem;

  /* Shell */
  --shell: 1220px;
  --gutter: clamp(1.125rem, 4vw, 3rem);

  --radius: 2px;              /* the packaging has almost no round corners */
  --shadow-lift: 0 22px 48px -22px rgba(11, 42, 28, .45);
  --shadow-deep: 0 34px 70px -28px rgba(11, 42, 28, .6);

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

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: var(--t-base);
  line-height: 1.6;
  font-feature-settings: 'kern' 1, 'liga' 1;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 1px;
}

::selection { background: var(--gold-lt); color: var(--field-2); }

.skip-link {
  position: absolute; left: var(--s3); top: -4rem; z-index: 200;
  background: var(--field); color: var(--paper);
  padding: var(--s2) var(--s3); font-weight: 700;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: var(--s3); }

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

/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */
.display {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: .005em;
}

.eyebrow {
  font-family: var(--body);
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin: 0 0 var(--s3);
  display: flex;
  align-items: center;
  gap: var(--s2);
}
.eyebrow::after {
  content: '';
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: .35;
  max-width: 5rem;
}
.eyebrow--center { justify-content: center; }
.eyebrow--center::before {
  content: ''; flex: 1; height: 1px; background: currentColor;
  opacity: .35; max-width: 5rem;
}

.note {
  font-family: var(--note);
  font-style: italic;
  font-size: var(--t-md);
  color: var(--muted);
  letter-spacing: .01em;
}

.lede {
  font-size: var(--t-md);
  line-height: 1.68;
  color: var(--muted);
  max-width: 56ch;
}

/* --------------------------------------------------------------------------
   4. Layout primitives
   -------------------------------------------------------------------------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.shell--wide { max-width: 1440px; }

.section { padding-block: var(--s8); position: relative; }
.section--tight { padding-block: var(--s7); }

.section--dark { background: var(--field); color: var(--paper); }
.section--dark .lede,
.section--dark .note { color: rgba(247, 240, 224, .72); }
.section--dark .eyebrow { color: var(--gold-lt); }

.section--deep { background: var(--field-2); color: var(--paper); }
.section--deep .lede { color: rgba(247, 240, 224, .72); }
.section--deep .eyebrow { color: var(--gold-lt); }

.section--maroon { background: var(--maroon); color: var(--paper); }
.section--maroon .lede { color: rgba(247, 240, 224, .74); }
.section--maroon .eyebrow { color: var(--gold-lt); }

.section-head { max-width: 62ch; margin-bottom: var(--s6); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head__title { font-size: var(--t-2xl); margin: 0 0 var(--s3); }

/* --------------------------------------------------------------------------
   5. Ornament — drawn from the packaging
   -------------------------------------------------------------------------- */

/* Block-print border band: the diamond/floret strip top & bottom of each bag */
.band {
  height: 13px;
  background-repeat: repeat-x;
  background-size: auto 13px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='13' viewBox='0 0 26 13'%3E%3Crect width='26' height='13' fill='%23C08A22'/%3E%3Cpath d='M13 1.6 18.4 6.5 13 11.4 7.6 6.5Z' fill='%23571A22'/%3E%3Cpath d='M13 4.2 15.3 6.5 13 8.8 10.7 6.5Z' fill='%23E3B75A'/%3E%3Cpath d='M0 0h1.4v13H0zM24.6 0H26v13h-1.4z' fill='%23571A22' opacity='.55'/%3E%3C/svg%3E");
}
.band--thin { height: 7px; background-size: auto 7px; }

/* Kolam — the white looped floor-drawing printed in the bag corners */
.kolam {
  position: absolute;
  width: 220px; height: 220px;
  pointer-events: none;
  opacity: .13;
  background-repeat: no-repeat;
  background-size: contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120' fill='none' stroke='%23F7F0E0' stroke-width='1.6'%3E%3Cg%3E%3Crect x='24' y='24' width='72' height='72' rx='22' transform='rotate(45 60 60)'/%3E%3Crect x='36' y='36' width='48' height='48' rx='15' transform='rotate(45 60 60)'/%3E%3Ccircle cx='60' cy='60' r='9'/%3E%3Cpath d='M60 6v14M60 100v14M6 60h14M100 60h14'/%3E%3Ccircle cx='18' cy='18' r='2.4'/%3E%3Ccircle cx='102' cy='18' r='2.4'/%3E%3Ccircle cx='18' cy='102' r='2.4'/%3E%3Ccircle cx='102' cy='102' r='2.4'/%3E%3Ccircle cx='60' cy='60' r='30' stroke-dasharray='3 7'/%3E%3C/g%3E%3C/svg%3E");
}
.kolam--tl { top: -40px;  left: -60px; }
.kolam--tr { top: -40px;  right: -60px; transform: scaleX(-1); }
.kolam--bl { bottom: -50px; left: -60px; transform: scaleY(-1); }
.kolam--br { bottom: -50px; right: -60px; transform: scale(-1); }

/* Gold hairline rule with a centred diamond — the bag's title divider */
.rule {
  display: flex; align-items: center; gap: var(--s2);
  color: var(--gold);
  margin: var(--s3) 0;
}
.rule::before, .rule::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, currentColor, transparent);
}
.rule__gem { width: 7px; height: 7px; background: currentColor; transform: rotate(45deg); }

/* --------------------------------------------------------------------------
   6. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .85em 1.7em;
  font-family: var(--body);
  font-size: var(--t-sm);
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color .22s var(--ease), color .22s var(--ease),
              border-color .22s var(--ease), transform .22s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.btn--primary { background: var(--cta); color: #fff; }
.btn--primary:hover { background: var(--cta-h); }

.btn--gold { background: var(--gold); color: var(--field-2); }
.btn--gold:hover { background: var(--gold-lt); }

.btn--ghost { border-color: currentColor; color: inherit; background: transparent; }

/* Never use currentColor for this background. It resolves against the `color`
   set in this same block, so the fill and the label come out the same colour
   and the text vanishes on hover. Both sides are stated explicitly. */
.btn--ghost:hover {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--field);
}

/* Ghost buttons sitting on the cream page instead of a dark field invert:
   fill green, label cream. */
.btn--ghost-light:hover {
  background: var(--field);
  border-color: var(--field);
  color: var(--paper);
}

.btn--dark { background: var(--field); color: var(--paper); }
.btn--dark:hover { background: var(--field-3); }

.btn--block { width: 100%; }
.btn--sm { padding: .6em 1.15em; font-size: var(--t-xs); }

/* --------------------------------------------------------------------------
   7. Announcement + header
   -------------------------------------------------------------------------- */
.announce {
  background: var(--field-2);
  color: var(--gold-lt);
  font-size: var(--t-xs);
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 600;
  text-align: center;
  padding: .6rem var(--gutter);
}
.announce strong { color: var(--paper); font-weight: 700; }

.header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(247, 240, 224, .93);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex; align-items: center; gap: var(--s4);
  min-height: 78px;
}
.header__logo { flex: none; }
.header__logo img { height: 46px; width: auto; }

.nav {
  display: flex; align-items: center; gap: var(--s4);
  margin-left: auto;
}
.nav__link {
  font-size: var(--t-sm);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .4rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.nav__link:hover { border-bottom-color: var(--gold); }
.nav__link.is-current { border-bottom-color: var(--cta); }

.header__actions { display: flex; align-items: center; gap: var(--s2); flex: none; }

.cart-btn {
  position: relative;
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--field); color: var(--paper);
  border: 0; border-radius: var(--radius);
  padding: .62rem 1rem;
  font-size: var(--t-xs); font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  cursor: pointer;
  transition: background-color .2s var(--ease);
}
.cart-btn:hover { background: var(--field-3); }
.cart-btn__icon { flex: none; }
.cart-btn__count {
  min-width: 1.35rem; height: 1.35rem;
  display: inline-grid; place-items: center;
  background: var(--cta); color: #fff;
  border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: 0;
  padding-inline: .3rem;
}

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .55rem .7rem; cursor: pointer;
}
.nav-toggle__bar {
  display: block; width: 20px; height: 2px; background: var(--ink);
  margin: 4px 0; transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   8. Hero — the bag's own construction: green field, cream arch panel
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--field);
  color: var(--paper);
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 80% at 18% 0%, rgba(29, 82, 56, .95), transparent 62%),
    radial-gradient(90% 70% at 92% 100%, rgba(11, 42, 28, .9), transparent 60%);
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding-block: clamp(3.5rem, 8vw, 7rem);
}

.hero__eyebrow {
  color: var(--gold-lt);
  font-size: var(--t-xs); font-weight: 700;
  letter-spacing: .26em; text-transform: uppercase;
  margin: 0 0 var(--s4);
}
.hero__title {
  font-size: var(--t-4xl);
  margin: 0 0 var(--s4);
  color: var(--paper);
}
.hero__title em {
  font-style: normal;
  color: var(--gold-lt);
  display: block;
}
.hero__lede {
  font-size: var(--t-md);
  line-height: 1.66;
  color: rgba(247, 240, 224, .76);
  max-width: 44ch;
  margin: 0 0 var(--s5);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--s2); }

.hero__proof {
  display: flex; flex-wrap: wrap; gap: var(--s5);
  margin-top: var(--s6);
  padding-top: var(--s4);
  border-top: 1px solid rgba(224, 183, 90, .28);
}
.hero__proof-item { max-width: 15ch; }
.hero__proof-key {
  font-family: var(--display);
  font-size: var(--t-lg);
  color: var(--gold-lt);
  display: block;
  line-height: 1.1;
}
.hero__proof-val {
  font-size: var(--t-xs);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(247, 240, 224, .72);
}

/* The arch panel — the ogee mandapam shape printed on every bag */
.arch {
  position: relative;
  padding: var(--s5) var(--s4) 0;
  background: var(--paper);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 130' preserveAspectRatio='none'%3E%3Cpath d='M0 130V33c9-1 19-6 28-13S46 5 50 0c4 5 13 13 22 20s19 12 28 13v97Z' fill='%23000'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 130' preserveAspectRatio='none'%3E%3Cpath d='M0 130V33c9-1 19-6 28-13S46 5 50 0c4 5 13 13 22 20s19 12 28 13v97Z' fill='%23000'/%3E%3C/svg%3E");
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.hero__stage { position: relative; display: grid; place-items: center; }
.hero__bag {
  width: min(100%, 420px);
  box-shadow: var(--shadow-deep);
  border: 1px solid rgba(224, 183, 90, .3);
}
.hero__seal {
  position: absolute;
  bottom: -18px; right: clamp(-6px, 2vw, 18px);
  background: var(--paper);
  color: var(--field);
  border: 2px solid var(--gold);
  padding: var(--s2) var(--s3);
  text-align: center;
  box-shadow: var(--shadow-lift);
  max-width: 11rem;
}
.hero__seal-top {
  font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold); font-weight: 700;
}
.hero__seal-main {
  font-family: var(--display);
  font-size: var(--t-md);
  line-height: 1.15;
  display: block;
}

/* --------------------------------------------------------------------------
   9. Product grid & cards
   -------------------------------------------------------------------------- */
/* Five varieties is the whole catalogue, so show all five in one row on a
   wide screen — the set reads as complete rather than as a grid with a gap. */
.grid-products {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--s3);
}
@media (max-width: 1180px) { .grid-products { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); } }
@media (max-width: 820px)  { .grid-products { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 430px)  { .grid-products { grid-template-columns: 1fr; } }

.pcard {
  display: flex; flex-direction: column;
  background: var(--paper);
  /* Set colour explicitly — cards also sit inside dark sections, where the
     inherited cream would leave the name invisible on the cream card. */
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease),
              border-color .3s var(--ease);
}
.pcard:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lift);
  border-color: var(--gold);
}

.pcard__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--card-color, var(--field));
}
.pcard__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.pcard:hover .pcard__media img { transform: scale(1.035); }

.pcard__flag {
  position: absolute; top: 0; left: 0;
  background: var(--gold); color: var(--field-2);
  font-size: 10px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  padding: .35rem .7rem;
}

.pcard__body { padding: var(--s3); display: flex; flex-direction: column; flex: 1; gap: .4rem; }
.pcard__name { font-family: var(--display); font-size: 1.25rem; margin: 0; line-height: 1.18; }
.pcard__trait {
  font-size: var(--t-xs); letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold-ink); font-weight: 700;
}
.pcard__foot {
  margin-top: auto; padding-top: var(--s3);
  display: grid; gap: var(--s2);
  border-top: 1px solid var(--line);
}
.pcard__price {
  font-family: var(--display); font-size: var(--t-lg); line-height: 1;
  white-space: nowrap;
}
.pcard__price span {
  font-family: var(--body); font-size: var(--t-xs);
  color: var(--muted); letter-spacing: .08em;
}

/* --------------------------------------------------------------------------
   10. Grain scale — the signature
   -------------------------------------------------------------------------- */
.scale { display: grid; gap: 0; }

.scale__head {
  display: grid;
  grid-template-columns: 12rem minmax(0, 1fr) 11rem;
  gap: var(--s4);
  padding-bottom: var(--s2);
  border-bottom: 1px solid rgba(224, 183, 90, .3);
  font-size: var(--t-xs);
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-lt); font-weight: 700;
}

.scale__row {
  display: grid;
  grid-template-columns: 12rem minmax(0, 1fr) 11rem;
  gap: var(--s4);
  align-items: center;
  padding: var(--s3) 0;
  border-bottom: 1px solid rgba(247, 240, 224, .1);
  transition: background-color .25s var(--ease);
}
.scale__row:hover { background: rgba(247, 240, 224, .045); }

.scale__name { font-family: var(--display); font-size: var(--t-md); line-height: 1.2; }
.scale__name a:hover { color: var(--gold-lt); }
.scale__class { font-size: var(--t-xs); color: rgba(247, 240, 224, .68); letter-spacing: .08em; }

/* The millimetre axis every grain is measured against */
.scale__row--ruler { padding: var(--s2) 0 var(--s1); border-bottom: 0; }
.scale__row--ruler:hover { background: none; }

.ruler { position: relative; height: 20px; }
.ruler__tick {
  position: absolute; top: 6px;
  width: 1px; height: 6px;
  background: rgba(224, 183, 90, .4);
}
.ruler__tick--major { top: 2px; height: 10px; background: rgba(224, 183, 90, .75); }
.ruler__tick i {
  position: absolute; top: -13px; left: 50%;
  transform: translateX(-50%);
  font-style: normal; font-size: 10px; letter-spacing: .04em;
  color: rgba(224, 183, 90, .7);
}

.scale__grain {
  position: relative;
  display: flex; align-items: center; min-height: 30px;
}
/* Faint gridlines carry the ruler down through every row */
.scale__grain::before {
  content: '';
  position: absolute; inset: -0.9rem 0;
  width: var(--scale-max, 0);
  background-image: repeating-linear-gradient(
    to right,
    rgba(247, 240, 224, .09) 0 1px,
    transparent 1px calc(26px * 2));
  pointer-events: none;
}
.scale__grain svg { overflow: visible; position: relative; }
.scale__mm {
  font-family: var(--display);
  font-size: var(--t-md);
  color: var(--gold-lt);
  margin-left: var(--s3);
  white-space: nowrap;
}
.scale__for { font-size: var(--t-sm); color: rgba(247, 240, 224, .72); }

.scale__note {
  margin-top: var(--s3);
  font-size: var(--t-xs);
  color: rgba(247, 240, 224, .62);
  letter-spacing: .04em;
}

/* --------------------------------------------------------------------------
   11. Sourcing chain — order carries real meaning here
   -------------------------------------------------------------------------- */
.chain { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }

.chain__step {
  position: relative;
  padding: var(--s4) var(--s4) var(--s4) 0;
  border-top: 2px solid var(--gold);
}
.chain__step + .chain__step { padding-left: var(--s4); }
.chain__step + .chain__step::before {
  content: '';
  position: absolute; left: 0; top: var(--s4); bottom: var(--s4);
  width: 1px; background: var(--line);
}
.chain__dot {
  position: absolute; top: -7px; left: 0;
  width: 12px; height: 12px; background: var(--gold);
  transform: rotate(45deg);
}
.chain__step + .chain__step .chain__dot { left: var(--s4); }
.chain__where {
  font-size: var(--t-xs); letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-ink); font-weight: 700; margin-bottom: var(--s1);
}
.chain__title { font-family: var(--display); font-size: var(--t-lg); margin: 0 0 var(--s2); }
.chain__text { font-size: var(--t-sm); color: var(--muted); margin: 0; line-height: 1.6; }
.section--dark .chain__text,
.section--deep .chain__text,
.section--maroon .chain__text { color: rgba(247, 240, 224, .72); }
.section--dark .chain__where,
.section--deep .chain__where,
.section--maroon .chain__where { color: var(--gold-lt); }
.section--dark .chain__step + .chain__step::before,
.section--deep .chain__step + .chain__step::before { background: rgba(247, 240, 224, .16); }

/* --------------------------------------------------------------------------
   12. Split feature blocks
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.split--narrow { grid-template-columns: 1.15fr .85fr; }
.split__media img { width: 100%; box-shadow: var(--shadow-lift); }

.facts { list-style: none; margin: var(--s4) 0 0; padding: 0; display: grid; gap: var(--s2); }
.facts li {
  display: grid; grid-template-columns: 1.15rem 1fr; gap: var(--s2);
  align-items: start; font-size: var(--t-sm); line-height: 1.55;
}
.facts li::before {
  content: ''; width: 7px; height: 7px; margin-top: .5rem;
  background: var(--gold); transform: rotate(45deg);
}

/* --------------------------------------------------------------------------
   13. Forms
   -------------------------------------------------------------------------- */
.form { display: grid; gap: var(--s3); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }

.field { display: grid; gap: .4rem; }
.field__label {
  font-size: var(--t-xs); font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
}
.field__hint { font-size: var(--t-xs); color: var(--muted); }
.section--maroon .field__hint,
.section--deep .field__hint { color: rgba(247, 240, 224, .6); }

.field__input,
.field__select,
.field__textarea {
  width: 100%;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--paper-3);
  border-radius: var(--radius);
  padding: .78rem .9rem;
  font-size: var(--t-base);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field__input:focus,
.field__select:focus,
.field__textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(192, 138, 34, .22);
  outline: none;
}
.field__textarea { resize: vertical; min-height: 7.5rem; }
.field__select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2317231B' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .9rem center; padding-right: 2.2rem; }

.form__status {
  padding: var(--s3);
  border-left: 3px solid var(--gold);
  background: rgba(247, 240, 224, .1);
  font-size: var(--t-sm);
}
.form__status--ok { border-left-color: #2E7D4F; }
.form__status--err { border-left-color: #C0392B; }
.form__status[hidden] { display: none; }

/* --------------------------------------------------------------------------
   14. Cart drawer & cart page
   -------------------------------------------------------------------------- */
.drawer-scrim {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(11, 42, 28, .55);
  opacity: 0; visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s var(--ease);
}
.drawer-scrim.is-open { opacity: 1; visibility: visible; }

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 101;
  width: min(420px, 100%);
  background: var(--paper);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .34s var(--ease);
  box-shadow: var(--shadow-deep);
}
.drawer.is-open { transform: none; }

.drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--s3) var(--s4);
  background: var(--field); color: var(--paper);
}
.drawer__title { font-family: var(--display); font-size: var(--t-lg); margin: 0; }
.drawer__close {
  background: none; border: 0; color: inherit; cursor: pointer;
  font-size: 1.6rem; line-height: 1; padding: .2rem .4rem;
}
.drawer__body { flex: 1; overflow-y: auto; padding: var(--s4); }
.drawer__foot { border-top: 1px solid var(--line); padding: var(--s4); display: grid; gap: var(--s3); }

.line {
  display: grid;
  grid-template-columns: 68px 1fr auto;
  gap: var(--s3);
  padding-bottom: var(--s3);
  margin-bottom: var(--s3);
  border-bottom: 1px solid var(--line);
}
.line:last-child { border-bottom: 0; margin-bottom: 0; }
.line__img { width: 68px; aspect-ratio: 4/5; object-fit: cover; border: 1px solid var(--line); }
.line__name { font-family: var(--display); font-size: var(--t-base); margin: 0 0 .15rem; line-height: 1.2; }
.line__meta { font-size: var(--t-xs); color: var(--muted); }
.line__price { font-weight: 700; text-align: right; white-space: nowrap; }
.line__remove {
  background: none; border: 0; padding: 0; cursor: pointer;
  font-size: var(--t-xs); color: var(--muted); text-decoration: underline;
  margin-top: .4rem;
}
.line__remove:hover { color: var(--maroon); }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--paper-3); border-radius: var(--radius); margin-top: .45rem; }
.qty__btn {
  width: 28px; height: 28px; background: none; border: 0; cursor: pointer;
  font-size: var(--t-base); line-height: 1; color: var(--muted);
}
.qty__btn:hover { color: var(--ink); background: var(--paper-2); }
.qty__val { min-width: 2rem; text-align: center; font-size: var(--t-sm); font-weight: 700; }

.totals { display: grid; gap: .5rem; font-size: var(--t-sm); }
.totals__row { display: flex; justify-content: space-between; gap: var(--s3); }
.totals__row--grand {
  padding-top: .6rem; border-top: 1px solid var(--line);
  font-family: var(--display); font-size: var(--t-lg);
}

.empty { text-align: center; padding: var(--s6) var(--s3); color: var(--muted); }
.empty__title { font-family: var(--display); font-size: var(--t-lg); color: var(--ink); margin: 0 0 var(--s2); }

/* --------------------------------------------------------------------------
   14b. Embedded Stripe payment form
   -------------------------------------------------------------------------- */
.checkout-pane { background: var(--paper-2); border-top: 1px solid var(--line); }
.checkout-pane[hidden] { display: none; }

.checkout-pane__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

/* Stripe renders the form inside its own iframe; give it a plain white card to
   sit on so the Studio appearance (white background) does not clash with the
   cream page. */
#checkout-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1rem, 3vw, 1.75rem);
  min-height: 12rem;
}

.checkout-pane__side {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 1.5rem;
  position: sticky;
  top: 6.5rem;
}

@media (max-width: 900px) {
  .checkout-pane__inner { grid-template-columns: 1fr; }
  .checkout-pane__side { position: static; order: -1; }
}

/* --------------------------------------------------------------------------
   15. Product detail
   -------------------------------------------------------------------------- */
.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.pdp__media {
  background: var(--pdp-color, var(--field));
  padding: var(--s4);
  position: sticky; top: 6.5rem;
}
.pdp__media img { width: 100%; box-shadow: var(--shadow-deep); }
.pdp__title { font-family: var(--display); font-size: var(--t-2xl); margin: 0 0 .25rem; line-height: 1.05; }
.pdp__price { font-family: var(--display); font-size: var(--t-xl); margin: var(--s3) 0 0; }
.pdp__price small { font-family: var(--body); font-size: var(--t-xs); color: var(--muted); letter-spacing: .08em; display: block; }
.pdp__buy { display: flex; gap: var(--s2); align-items: center; margin: var(--s4) 0; flex-wrap: wrap; }

.spec { width: 100%; border-collapse: collapse; font-size: var(--t-sm); }
.spec th, .spec td { text-align: left; padding: .55rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec th { font-weight: 700; width: 42%; color: var(--muted); font-size: var(--t-xs); letter-spacing: .08em; text-transform: uppercase; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: var(--s3) 0 0; display: grid; gap: var(--s3); }
.steps li {
  counter-increment: step;
  display: grid; grid-template-columns: 1.9rem 1fr; gap: var(--s3);
  font-size: var(--t-sm); line-height: 1.6;
}
.steps li::before {
  content: counter(step);
  font-family: var(--display); font-size: var(--t-base);
  color: var(--gold);
  border-top: 2px solid var(--gold);
  padding-top: .2rem;
}

.tags { display: flex; flex-wrap: wrap; gap: .45rem; margin: var(--s3) 0 0; padding: 0; list-style: none; }
.tags li {
  font-size: var(--t-xs); letter-spacing: .06em;
  border: 1px solid var(--line); border-radius: 999px;
  padding: .3rem .75rem; color: var(--muted);
}

/* --------------------------------------------------------------------------
   16. Page header (interior pages)
   -------------------------------------------------------------------------- */
.pagehead {
  position: relative;
  background: var(--field);
  color: var(--paper);
  padding-block: var(--s7);
  overflow: hidden;
}
.pagehead__title { font-size: var(--t-3xl); margin: 0 0 var(--s2); }
.pagehead__lede { color: rgba(247, 240, 224, .72); max-width: 54ch; margin: 0; font-size: var(--t-md); }
.crumb { font-size: var(--t-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-lt); margin-bottom: var(--s3); }
.crumb a:hover { text-decoration: underline; }

/* --------------------------------------------------------------------------
   17. Footer
   -------------------------------------------------------------------------- */
.footer { background: var(--field-2); color: rgba(247, 240, 224, .72); padding-block: var(--s7) var(--s4); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--s5); }
.footer__logo img { height: 58px; width: auto; margin-bottom: var(--s3); }
.footer__blurb { font-size: var(--t-sm); max-width: 32ch; line-height: 1.65; }
.footer__title {
  font-size: var(--t-xs); letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-lt); font-weight: 700; margin: 0 0 var(--s3);
}
.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; font-size: var(--t-sm); }
.footer__list a:hover { color: var(--paper); text-decoration: underline; }
.footer__bottom {
  margin-top: var(--s6); padding-top: var(--s3);
  border-top: 1px solid rgba(247, 240, 224, .13);
  display: flex; flex-wrap: wrap; gap: var(--s3); justify-content: space-between;
  font-size: var(--t-xs); color: rgba(247, 240, 224, .66);
}
.footer__compliance { font-size: var(--t-xs); line-height: 1.6; color: rgba(247, 240, 224, .64); margin-top: var(--s3); }

.veg-mark {
  display: inline-grid; place-items: center;
  width: 16px; height: 16px; border: 1.5px solid #2E7D4F;
  vertical-align: -3px; margin-right: .35rem;
}
.veg-mark::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #2E7D4F; }

/* --------------------------------------------------------------------------
   18. Prose (policies, about)
   -------------------------------------------------------------------------- */
.prose { max-width: 68ch; }
.prose h2 { font-family: var(--display); font-size: var(--t-xl); margin: var(--s6) 0 var(--s3); font-weight: 400; }
.prose h3 { font-family: var(--display); font-size: var(--t-lg); margin: var(--s5) 0 var(--s2); font-weight: 400; }
.prose p { margin: 0 0 var(--s3); line-height: 1.72; }
.prose ul { margin: 0 0 var(--s3); padding-left: 1.1rem; }
.prose li { margin-bottom: .45rem; line-height: 1.65; }
.prose a { color: var(--field); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--cta); }
.prose > h2:first-child { margin-top: 0; }

/* --------------------------------------------------------------------------
   19. Motion
   -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); }
.reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-in:nth-child(2) { transition-delay: .06s; }
.reveal.is-in:nth-child(3) { transition-delay: .12s; }
.reveal.is-in:nth-child(4) { transition-delay: .18s; }
.reveal.is-in:nth-child(5) { transition-delay: .24s; }

/* Grains draw themselves out to length as each row scrolls in */
.scale__row .grain-shape { transform-origin: left center; }
.scale__row.reveal .grain-shape { transform: scaleX(.03); }
.scale__row.reveal.is-in .grain-shape {
  transform: none;
  transition: transform .85s var(--ease) .1s;
}
.scale__row.reveal .scale__mm { opacity: 0; }
.scale__row.reveal.is-in .scale__mm { opacity: 1; transition: opacity .5s var(--ease) .6s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}
.hero__copy > * { animation: rise .8s var(--ease) both; }
.hero__copy > *:nth-child(1) { animation-delay: .05s; }
.hero__copy > *:nth-child(2) { animation-delay: .14s; }
.hero__copy > *:nth-child(3) { animation-delay: .23s; }
.hero__copy > *:nth-child(4) { animation-delay: .32s; }
.hero__copy > *:nth-child(5) { animation-delay: .41s; }
.hero__stage { animation: rise 1s var(--ease) both .2s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .scale__row.reveal .grain-shape { transform: none; }
  .scale__row.reveal .scale__mm { opacity: 1; }
}

/* --------------------------------------------------------------------------
   20. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .chain { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--s5); }
}

@media (max-width: 900px) {
  :root { --s8: 4.5rem; --s7: 3.25rem; }

  .nav-toggle { display: block; order: 3; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: var(--s2) var(--gutter) var(--s4);
    margin-left: 0;
    display: none;
    box-shadow: var(--shadow-lift);
  }
  .nav.is-open { display: flex; }
  .nav__link { padding: .85rem 0; border-bottom: 1px solid var(--line); }
  .nav__link:hover { border-bottom-color: var(--line); color: var(--cta); }
  .header__inner { position: relative; }
  .header__actions { margin-left: auto; }

  .hero__inner { grid-template-columns: 1fr; }
  .hero__stage { order: -1; }
  .hero__bag { width: min(78%, 330px); }
  .hero__seal { right: 4%; }

  .split, .split--narrow, .pdp { grid-template-columns: 1fr; }
  .pdp__media { order: -1; position: static; }

  .scale__head { display: none; }
  .scale__row { grid-template-columns: 1fr; gap: var(--s2); padding: var(--s4) 0; }
  .scale__mm { margin-left: var(--s2); }

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

@media (max-width: 620px) {
  :root { --t-2xl: 2rem; --t-3xl: 2.5rem; }
  .chain { grid-template-columns: 1fr; }
  .chain__step, .chain__step + .chain__step { padding-left: 0; padding-right: 0; }
  .chain__step + .chain__step::before { display: none; }
  .chain__step + .chain__step .chain__dot { left: 0; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__proof { gap: var(--s4); }
  .grid-products { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
  .header__logo img { height: 38px; }
  .cart-btn__label { display: none; }
}

@media print {
  .header, .footer, .announce, .drawer, .drawer-scrim, .btn { display: none !important; }
  body { background: #fff; color: #000; }
}
