/* ============================================================================
   SHIVRAI BOTANICALS
   Design system — modern trading house.

   1.  Tokens
   2.  Reset & base
   3.  Typography
   4.  Layout
   5.  Buttons & links
   6.  Header & navigation
   7.  Hero & page headers
   8.  Media
   9.  Sections & editorial blocks
   10. Products & catalogue
   11. Sectors, process & specification tables
   12. Forms
   13. CTA band & footer
   14. Motion
   15. Responsive
   16. Preferences (reduced motion, print)
   ========================================================================= */


/* ---------------------------------------------------------------------------
   1. TOKENS
   ------------------------------------------------------------------------ */
:root {
  /* Paper */
  --ivory:      #F7F4EC;
  --ivory-2:    #F1ECE1;
  --ivory-3:    #E6DFD0;

  /* Ink */
  --ink:        #171B18;
  --ink-2:      #3A423C;
  --ink-3:      #5F675F;

  /* Botanical greens — anchor tones, used in mass only on dark panels */
  --forest:     #0D1F17;
  --forest-2:   #142E23;
  --forest-3:   #1F4433;

  /* Metal & earth accents */
  --brass:      #8A6C36;
  --brass-ink:  #6F5628;
  --brass-lite: #C3A468;
  --clay:       #7C6248;

  /* Lines */
  --line:       rgba(23, 27, 24, 0.14);
  --line-2:     rgba(23, 27, 24, 0.26);
  --line-dark:  rgba(247, 244, 236, 0.18);

  /* Type */
  --serif: "Cormorant Garamond", "Iowan Old Style", Garamond, Georgia, serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  /* Scale */
  --fs-display: clamp(2.9rem, 7vw, 6rem);
  --fs-h1:      clamp(2.3rem, 5vw, 4rem);
  --fs-h2:      clamp(1.9rem, 3.4vw, 2.9rem);
  --fs-h3:      clamp(1.3rem, 1.9vw, 1.6rem);
  --fs-lead:    clamp(1.05rem, 1.45vw, 1.24rem);
  --fs-body:    1rem;
  --fs-small:   0.875rem;
  --fs-label:   0.6875rem;

  /* Rhythm */
  --shell:      1320px;
  --gutter:     clamp(1.25rem, 5vw, 4rem);
  --section:    clamp(4.5rem, 11vw, 9rem);
  --header-h:   clamp(4.5rem, 7vw, 5.75rem);

  /* Motion */
  --ease:       cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io:    cubic-bezier(0.65, 0, 0.35, 1);
}


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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 2rem);
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.72;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Fine paper grain over the whole page — barely perceptible, adds warmth */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

body.is-locked { overflow: hidden; }

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

::selection { background: var(--forest-3); color: var(--ivory); }

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

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 200;
  background: var(--forest);
  color: var(--ivory);
  padding: 0.85rem 1.4rem;
  font-size: var(--fs-small);
  text-decoration: none;
}
.skip-link:focus { left: 1rem; top: 1rem; }

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


/* ---------------------------------------------------------------------------
   3. TYPOGRAPHY
   ------------------------------------------------------------------------ */
h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.005em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

.display  { font-size: var(--fs-display); line-height: 1.02; letter-spacing: -0.018em; }
.h1       { font-size: var(--fs-h1);      line-height: 1.06; letter-spacing: -0.012em; }
.h2       { font-size: var(--fs-h2);      line-height: 1.1; }
.h3       { font-size: var(--fs-h3);      line-height: 1.24; letter-spacing: 0; }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.62;
  color: var(--ink-2);
  max-width: 46ch;
}

.body-copy { max-width: 62ch; }
.body-copy p + p { margin-top: 0; }

/* Small uppercase label — the connective tissue of the whole system */
.label {
  display: block;
  font-family: var(--sans);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass-ink);
  margin: 0 0 1.5rem;
}
.label-index { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.label--light { color: var(--brass-lite); }

.serif-italic { font-family: var(--serif); font-style: italic; }

.rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}


/* ---------------------------------------------------------------------------
   4. LAYOUT
   ------------------------------------------------------------------------ */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
  position: relative;
  z-index: 2;
}
.shell--narrow { max-width: 880px; }

.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section--alt { background: var(--ivory-2); }
.section--dark { background: var(--forest); color: rgba(247, 244, 236, 0.76); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--ivory); }

/* Editorial two-column: heading left, copy right */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
}

.section-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head .h2 { max-width: 20ch; }
.section-head .lead { margin-top: 1.5rem; }


/* ---------------------------------------------------------------------------
   5. BUTTONS & LINKS
   ------------------------------------------------------------------------ */
a { color: var(--brass-ink); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 1rem 1.9rem;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  background: none;
  cursor: pointer;
  transition: background-color 0.45s var(--ease), color 0.45s var(--ease),
              border-color 0.45s var(--ease), transform 0.45s var(--ease);
}

.btn--solid {
  background: var(--forest);
  border-color: var(--forest);
  color: var(--ivory);
}
.btn--solid:hover { background: var(--forest-3); border-color: var(--forest-3); }

.btn--outline {
  border-color: var(--line-2);
  color: var(--ink);
}
.btn--outline:hover { border-color: var(--forest); background: var(--forest); color: var(--ivory); }

.btn--brass {
  border-color: var(--brass);
  color: var(--brass-ink);
}
.btn--brass:hover { background: var(--brass); border-color: var(--brass); color: var(--ivory); }

.btn--light {
  border-color: rgba(247, 244, 236, 0.4);
  color: var(--ivory);
}
.btn--light:hover { background: var(--ivory); border-color: var(--ivory); color: var(--forest); }

/* Solid ivory — the single primary action on a dark panel */
.btn--ivory {
  background: var(--ivory);
  border-color: var(--ivory);
  color: var(--forest);
}
.btn--ivory:hover { background: var(--brass-lite); border-color: var(--brass-lite); color: var(--forest); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* Three equal enquiry actions on product pages — avoids a 2 + 1 wrap */
@media (min-width: 30em) {
  .btn-row--triple {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .btn-row--triple .btn {
    padding-inline: 0.6rem;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-align: center;
    white-space: nowrap;
  }
}

/* Understated text link with a rule that draws in on hover */
.link {
  display: inline-block;
  position: relative;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  padding-bottom: 0.45rem;
}
.link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}
.link:hover { color: var(--brass-ink); }
.link:hover::after { transform: scaleX(1); }
.link--light { color: var(--ivory); }
.link--light::after { background: var(--brass-lite); }

/* Inline prose links — the animated .link keeps its own underline treatment */
.body-copy a:not(.link), .prose a:not(.link) {
  color: var(--brass-ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  text-decoration-color: var(--line-2);
  transition: text-decoration-color 0.4s var(--ease);
}
.body-copy a:not(.link):hover, .prose a:not(.link):hover { text-decoration-color: var(--brass); }


/* ---------------------------------------------------------------------------
   6. HEADER & NAVIGATION
   ------------------------------------------------------------------------ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--ivory);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.5s var(--ease), border-color 0.5s var(--ease),
              transform 0.5s var(--ease);
}

/* Over a dark hero the header floats transparent until the page is scrolled */
.has-hero .site-header {
  background: transparent;
  border-bottom-color: transparent;
}
.has-hero .site-header .wordmark-main,
.has-hero .site-header .primary-nav a,
.has-hero .site-header .nav-toggle { color: var(--ivory); }
.has-hero .site-header .wordmark-sub { color: rgba(247, 244, 236, 0.66); }
.has-hero .site-header .btn--outline { border-color: rgba(247, 244, 236, 0.42); color: var(--ivory); }
.has-hero .site-header .btn--outline:hover { background: var(--ivory); border-color: var(--ivory); color: var(--forest); }
.has-hero .site-header .nav-toggle-bars i { background: var(--ivory); }

.has-hero .site-header.is-solid {
  background: var(--ivory);
  border-bottom-color: var(--line);
}
.has-hero .site-header.is-solid .wordmark-main,
.has-hero .site-header.is-solid .primary-nav a,
.has-hero .site-header.is-solid .nav-toggle { color: var(--ink); }
.has-hero .site-header.is-solid .wordmark-sub { color: var(--ink-3); }
.has-hero .site-header.is-solid .btn--outline { border-color: var(--line-2); color: var(--ink); }
.has-hero .site-header.is-solid .nav-toggle-bars i { background: var(--ink); }

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.wordmark {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  text-decoration: none;
  line-height: 1;
}
.wordmark-main {
  font-family: var(--serif);
  font-size: clamp(1.28rem, 1.9vw, 1.6rem);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  transition: color 0.5s var(--ease);
}
.wordmark-sub {
  font-size: 0.5625rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-3);
  transition: color 0.5s var(--ease);
}

.primary-nav { display: none; }
.primary-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 2.6vw, 2.75rem);
  list-style: none;
  margin: 0; padding: 0;
}
.primary-nav a {
  position: relative;
  display: block;
  padding: 0.4rem 0;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
  transition: color 0.4s var(--ease);
}
.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.55s var(--ease);
}
.primary-nav a:hover::after,
.primary-nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }

.header-cta { display: none; }

/* Mobile toggle — text label, no icon clichés */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0;
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  border: 0;
  background: none;
  cursor: pointer;
  transition: color 0.5s var(--ease);
}
.nav-toggle-bars {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 20px;
}
.nav-toggle-bars i {
  display: block;
  height: 1px;
  width: 100%;
  background: var(--ink);
  transition: transform 0.5s var(--ease), opacity 0.4s var(--ease), background-color 0.5s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:first-child { transform: translateY(2.5px) rotate(9deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:last-child  { transform: translateY(-2.5px) rotate(-9deg); }

/* Full-screen drawer */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--ivory);
  padding: calc(var(--header-h) + 3rem) var(--gutter) 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-1.25rem);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease), visibility 0.55s;
  overflow-y: auto;
}
.mobile-nav.is-open { opacity: 1; visibility: visible; transform: none; }

.mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav li { border-top: 1px solid var(--line); }
.mobile-nav li:last-child { border-bottom: 1px solid var(--line); }
.mobile-nav a {
  display: block;
  padding: 1.15rem 0;
  font-family: var(--serif);
  font-size: 1.85rem;
  font-weight: 400;
  color: var(--ink);
  text-decoration: none;
  opacity: 0;
  transform: translateY(0.75rem);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), color 0.35s var(--ease);
}
.mobile-nav.is-open a { opacity: 1; transform: none; }
.mobile-nav a:hover { color: var(--brass-ink); }
.mobile-nav-foot { margin-top: 3rem; }
.mobile-nav-foot .label { margin-bottom: 0.6rem; }
.mobile-nav-foot a {
  font-family: var(--sans);
  font-size: 1rem;
  padding: 0;
  opacity: 1;
  transform: none;
  color: var(--brass-ink);
}


/* ---------------------------------------------------------------------------
   7. HERO & PAGE HEADERS
   ------------------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: min(78vh, 720px);
  display: flex;
  align-items: flex-end;
  padding-block: calc(var(--header-h) + 5rem) clamp(3.5rem, 7vw, 6rem);
  overflow: hidden;
  background: var(--forest);
  isolation: isolate;
}
.hero-media {
  position: absolute;
  inset: -8% 0 -8% 0;   /* overscan gives the parallax room to move */
  z-index: -2;
  will-change: transform;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Colour treatment: a warm accent high right, deep botanical green anchoring
   the lower left behind the copy, and a soft vertical falloff over the whole
   frame. Layered rather than a single flat scrim, so the image keeps depth. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(72% 58% at 88% 6%, rgba(195, 164, 104, 0.15) 0%, rgba(195, 164, 104, 0) 62%),
    radial-gradient(118% 108% at 4% 96%, rgba(5, 17, 12, 0.97) 0%, rgba(5, 17, 12, 0.72) 38%, rgba(5, 17, 12, 0.18) 68%, rgba(5, 17, 12, 0) 86%),
    linear-gradient(180deg, rgba(5, 17, 12, 0.78) 0%, rgba(5, 17, 12, 0.34) 30%, rgba(5, 17, 12, 0.62) 72%, rgba(5, 17, 12, 0.95) 100%);
}

.hero-inner { max-width: 64rem; }
.hero .display { color: var(--ivory); }

/* Eyebrow with a short brass rule */
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 clamp(1.5rem, 3vw, 2.25rem);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass-lite);
}
.hero-eyebrow i {
  display: block;
  width: clamp(1.75rem, 4vw, 3rem);
  height: 1px;
  background: var(--brass-lite);
  opacity: 0.7;
  flex: none;
}

/* Headline lines are masked so each rises from behind its own edge */
.display .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.06em;
}
.display .line-in { display: block; }

.display .line--sub {
  margin-top: 0.18em;
  font-size: 0.7em;
  line-height: 1.08;
  color: rgba(247, 244, 236, 0.7);
}

/* Foot of the hero: sector list on the left, scroll cue on the right */
.hero-foot {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.hero-scroll {
  display: none;
  align-items: center;
  gap: 0.85rem;
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(247, 244, 236, 0.5);
  flex: none;
}
.hero-scroll::after {
  content: "";
  display: block;
  width: 1px;
  height: 2.75rem;
  background: linear-gradient(180deg, rgba(247, 244, 236, 0.65), rgba(247, 244, 236, 0));
  animation: scrollCue 2.8s var(--ease-io) infinite;
}
@keyframes scrollCue {
  0%   { transform: scaleY(0); transform-origin: top; }
  45%  { transform: scaleY(1); transform-origin: top; }
  55%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
.hero-lede {
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
  max-width: 44ch;
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: rgba(247, 244, 236, 0.82);
}
.hero .btn-row { margin-top: clamp(2rem, 3.5vw, 3rem); }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2.25rem;
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(247, 244, 236, 0.6);
}

/* Interior page header */
.page-head {
  padding-block: calc(var(--header-h) + clamp(3.5rem, 7vw, 6rem)) clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line);
}
.page-head .h1 { max-width: 18ch; }
.page-head .lead { margin-top: clamp(1.5rem, 2.5vw, 2rem); }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.75rem;
  font-size: var(--fs-label);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.breadcrumb a { color: var(--ink-3); text-decoration: none; }
.breadcrumb a:hover { color: var(--brass-ink); }
.breadcrumb span[aria-hidden] { opacity: 0.5; }


/* ---------------------------------------------------------------------------
   8. MEDIA
   ------------------------------------------------------------------------ */
.media {
  position: relative;
  overflow: hidden;
  background: var(--ivory-3);
}
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.6s var(--ease);
}
.media--wide     { aspect-ratio: 16 / 10; }
.media--portrait { aspect-ratio: 4 / 5; }
.media--square   { aspect-ratio: 1 / 1; }
.media--tall     { aspect-ratio: 3 / 4; }

.figure-caption {
  margin-top: 1rem;
  font-size: var(--fs-small);
  color: var(--ink-3);
  max-width: 40ch;
}


/* ---------------------------------------------------------------------------
   9. SECTIONS & EDITORIAL BLOCKS
   ------------------------------------------------------------------------ */

/* Statement — oversized serif paragraph */
.statement {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.45rem);
  line-height: 1.28;
  color: var(--ink);
  max-width: 26ch;
  letter-spacing: -0.005em;
}

/* Three principles */
.pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}
.pillar {
  padding: clamp(2rem, 4vw, 2.75rem) 0;
  border-bottom: 1px solid var(--line);
}
.pillar .label { margin-bottom: 1rem; }
.pillar h3 { margin-bottom: 0.9rem; }
.pillar p { font-size: var(--fs-small); line-height: 1.7; max-width: 38ch; }

/* Alternating editorial rows */
.editorial {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}
.editorial + .editorial { margin-top: clamp(4rem, 8vw, 7rem); }
.editorial-body .h2 { margin-bottom: 1.5rem; }


/* ---------------------------------------------------------------------------
   10. PRODUCTS & CATALOGUE
   ------------------------------------------------------------------------ */
.ingredient-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 4vw, 3rem);
}

.ingredient {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.ingredient .media { margin-bottom: 1.5rem; }
.ingredient:hover .media img { transform: scale(1.045); }
.ingredient-name {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  color: var(--ink);
  margin-bottom: 0.35rem;
}
.ingredient-botanical {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.02rem;
  color: var(--ink-3);
  margin-bottom: 1rem;
}
.ingredient-meta {
  display: flex;
  gap: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.ingredient .link { margin-top: 1.25rem; }
.ingredient:hover .link::after { transform: scaleX(1); }

/* Catalogue rows — editorial, deliberately not a shop grid */
.catalogue { border-top: 1px solid var(--line); }
.catalogue-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 3vw, 3rem);
  padding-block: clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line);
  align-items: start;
  text-decoration: none;
  color: inherit;
}
.catalogue-row:hover .media img { transform: scale(1.045); }
.catalogue-row:hover .link::after { transform: scaleX(1); }
.catalogue-index {
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.catalogue-body .h3 { margin-bottom: 0.4rem; }
.catalogue-body .ingredient-botanical { margin-bottom: 1.1rem; }
.catalogue-body p { font-size: var(--fs-small); max-width: 46ch; margin-bottom: 1.5rem; }

/* Product page key facts */
.factbar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: clamp(2rem, 4vw, 3rem);
}
.fact {
  background: var(--ivory);
  padding: 1.4rem 1.5rem;
}
.fact dt {
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 0.5rem;
}
.fact dd {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--ink);
}
.fact dd.italic { font-style: italic; }
.section--alt .fact { background: var(--ivory-2); }


/* ---------------------------------------------------------------------------
   11. SECTORS, PROCESS & SPECIFICATION TABLES
   ------------------------------------------------------------------------ */
.sectors { border-top: 1px solid var(--line); }
.sector {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding-block: clamp(2.5rem, 4.5vw, 3.5rem);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.6s var(--ease);
}
.sector-index {
  font-size: var(--fs-label);
  letter-spacing: 0.2em;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.sector h3 { margin-bottom: 0.75rem; }
.sector p { font-size: var(--fs-small); max-width: 52ch; }
.sector-uses {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.sector-uses li {
  font-size: var(--fs-label);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  border: 1px solid var(--line);
  padding: 0.5rem 0.85rem;
  white-space: nowrap;
}

/* Numbered process */
.process { counter-reset: step; border-top: 1px solid var(--line); }
.process-step {
  counter-increment: step;
  position: relative;
  padding: clamp(2rem, 4vw, 2.75rem) 0 clamp(2rem, 4vw, 2.75rem) 3.5rem;
  border-bottom: 1px solid var(--line);
}
.process-step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: clamp(2rem, 4vw, 2.75rem);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--brass-ink);
  font-variant-numeric: tabular-nums;
  line-height: 1.9;
}
.process-step h3 { margin-bottom: 0.75rem; }
.process-step p { font-size: var(--fs-small); max-width: 58ch; }

/* Specification / documentation table */
.spec { border-top: 1px solid var(--line-2); margin: 0; }

/* Group heading within a multi-part specification */
.spec-group-title {
  margin-top: clamp(3rem, 6vw, 4.25rem);
  margin-bottom: 1.4rem;
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
  color: var(--ink);
}
.spec-group-title:first-of-type { margin-top: 0; }
.spec-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.4rem;
  padding-block: 1.35rem;
  border-bottom: 1px solid var(--line);
}
.spec dd { line-height: 1.62; }
.spec dt {
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.spec dd { margin: 0; color: var(--ink); }
.spec dd.muted { color: var(--ink-3); font-style: italic; font-family: var(--serif); font-size: 1.05rem; }

/* Disclosure note — turns a constraint into a credibility signal */
.note {
  padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--ivory-2);
  border-left: 2px solid var(--brass);
  font-size: var(--fs-small);
  line-height: 1.7;
  color: var(--ink-2);
  max-width: 62ch;
}
.section--alt .note { background: var(--ivory); }
.note strong { color: var(--ink); font-weight: 500; }


/* ---------------------------------------------------------------------------
   12. FORMS
   ------------------------------------------------------------------------ */
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 3vw, 2rem);
}
.field { display: flex; flex-direction: column; }
.field--full { grid-column: 1 / -1; }

.field label {
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 0.7rem;
}
.field .req { color: var(--brass-ink); }

.field input,
.field select,
.field textarea {
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-2);
  padding: 0.75rem 0;
  border-radius: 0;
  transition: border-color 0.45s var(--ease);
  width: 100%;
}
.field textarea { resize: vertical; min-height: 8rem; line-height: 1.7; }
.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%),
                    linear-gradient(135deg, var(--ink-3) 50%, transparent 50%);
  background-position: right 0.75rem center, right 0.4rem center;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 2rem;
  cursor: pointer;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--brass);
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); opacity: 0.65; }

.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-bottom-color: #9B3D2F; }
.field-error {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: #8A3527;
  min-height: 1rem;
}

.form-foot {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  justify-content: space-between;
}
.form-note { font-size: var(--fs-small); color: var(--ink-3); max-width: 40ch; }

.form-status {
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;
  border-left: 2px solid var(--brass);
  background: var(--ivory-2);
  font-size: var(--fs-small);
  color: var(--ink-2);
  display: none;
}
.form-status.is-visible { display: block; }

/* Honeypot — hidden from people, visible to naive bots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }


/* ---------------------------------------------------------------------------
   13. CTA BAND & FOOTER
   ------------------------------------------------------------------------ */
.cta-band {
  background: var(--forest);
  color: rgba(247, 244, 236, 0.78);
  padding-block: clamp(4rem, 9vw, 7rem);
  position: relative;
  overflow: hidden;
}
.cta-band .h2 { color: var(--ivory); max-width: 20ch; }
.cta-band p { margin-top: 1.5rem; max-width: 46ch; }
.cta-band .btn-row { margin-top: clamp(2rem, 4vw, 2.75rem); }
.cta-contact {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line-dark);
  font-size: var(--fs-small);
}
.cta-contact a {
  color: var(--brass-lite);
  text-decoration: none;
  border-bottom: 1px solid rgba(195, 164, 104, 0.4);
  padding-bottom: 2px;
  transition: border-color 0.4s var(--ease);
}
.cta-contact a:hover { border-bottom-color: var(--brass-lite); }

.site-footer {
  background: var(--forest);
  color: rgba(247, 244, 236, 0.62);
  padding-block: clamp(3.5rem, 7vw, 5rem) 2.5rem;
  border-top: 1px solid rgba(247, 244, 236, 0.09);
  font-size: var(--fs-small);
}
.cta-band + .site-footer { border-top: 1px solid var(--line-dark); }

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}
.footer-brand .wordmark-main { color: var(--ivory); }
.footer-brand .wordmark-sub { color: rgba(247, 244, 236, 0.5); }
.footer-brand p {
  margin-top: 1.5rem;
  max-width: 34ch;
  line-height: 1.7;
}
.footer-col-title {
  font-family: var(--sans);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass-lite);
  margin-bottom: 1.5rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 0.85rem; }
.footer-col a {
  color: rgba(247, 244, 236, 0.72);
  text-decoration: none;
  transition: color 0.4s var(--ease);
}
.footer-col a:hover { color: var(--ivory); }

.footer-legal {
  padding-top: 2rem;
  border-top: 1px solid rgba(247, 244, 236, 0.12);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.75rem;
  line-height: 1.7;
  color: rgba(247, 244, 236, 0.54); /* AA at this size against --forest */
}
.footer-legal p { margin: 0; max-width: 70ch; }


/* ---------------------------------------------------------------------------
   14. MOTION — scroll reveals, staggered by --d
   ------------------------------------------------------------------------ */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: var(--d, 0s);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Hairline rules that draw themselves in */
.js [data-reveal-line] {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.2s var(--ease);
  transition-delay: var(--d, 0s);
}
.js [data-reveal-line].is-in { transform: scaleX(1); }

/* Hero copy rises on load */
.js .hero [data-hero] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
  transition-delay: var(--d, 0s);
}
/* Headline lines travel their full height behind the mask edge */
.js .hero .line-in {
  opacity: 1;
  transform: translateY(105%);
  transition: transform 1.25s var(--ease);
  transition-delay: var(--d, 0s);
}
.js.is-ready .hero .line-in { transform: none; }
.js.is-ready .hero [data-hero] { opacity: 1; transform: none; }

/* Hero image settles from a slight scale */
.js .hero-media img {
  transform: scale(1.08);
  transition: transform 2.4s var(--ease);
}
.js.is-ready .hero-media img { transform: scale(1); }


/* ---------------------------------------------------------------------------
   15. RESPONSIVE
   ------------------------------------------------------------------------ */
@media (min-width: 40em) {
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-legal { flex-direction: row; justify-content: space-between; align-items: baseline; }
  .factbar { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  /* Narrower label rail so the value still reads well inside a half-width column */
  .spec-row { grid-template-columns: minmax(9rem, 15rem) 1fr; gap: 1.5rem; align-items: baseline; }
}

@media (min-width: 48em) {
  .hero { min-height: min(94vh, 900px); }
  .hero-scroll { display: inline-flex; }
  .ingredient-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 3.5rem); }
  .pillar { border-bottom: 0; }

  /* Index in a fixed rail, heading and detail stacked beside it */
  .sector { grid-template-columns: 4rem minmax(0, 1fr); gap: 0.75rem 2rem; }
  .sector-index  { grid-column: 1; grid-row: 1 / span 2; }
  .sector .h3    { grid-column: 2; }
  .sector-detail { grid-column: 2; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.2fr; }
  .catalogue-row { grid-template-columns: 3rem 1fr; }
}

@media (min-width: 64em) {
  .primary-nav { display: block; }
  .header-cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .mobile-nav { display: none; }

  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(3rem, 6vw, 6rem); }
  .split--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .editorial { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(3rem, 6vw, 5.5rem); }
  .editorial--reverse .editorial-media { order: 2; }

  .catalogue-row { grid-template-columns: 3rem minmax(0, 4fr) minmax(0, 6fr); align-items: center; }
  .catalogue-row .media { aspect-ratio: 4 / 3; }

  .section-head--split {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(3rem, 6vw, 6rem);
    align-items: end;
  }
  .section-head--split .lead { margin-top: 0; }

  /* Three columns: index rail, heading, detail. The heading column is kept
     tight so the description can use the remaining measure rather than
     leaving a gap down the middle of the row. */
  .sector {
    grid-template-columns: 3.5rem minmax(0, 3fr) minmax(0, 7fr);
    gap: 2rem clamp(2rem, 3.5vw, 3rem);
    align-items: start;
  }
  .sector-index  { grid-row: 1; }
  .sector .h3    { grid-column: 2; grid-row: 1; }
  .sector-detail { grid-column: 3; grid-row: 1; }
  .sector p { max-width: 62ch; }

  .cta-band-inner {
    display: grid;
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: clamp(3rem, 6vw, 6rem);
    align-items: center;
  }
}


/* ---------------------------------------------------------------------------
   16. PREFERENCES
   ------------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
  [data-reveal], .hero [data-hero] { opacity: 1 !important; transform: none !important; }
  .hero .line-in { transform: none !important; }
  .hero-scroll::after { animation: none !important; transform: none !important; }
  [data-reveal-line] { transform: scaleX(1) !important; }
  .hero-media img { transform: none !important; }
  .hero-media { transform: none !important; }
}

@media print {
  .site-header, .mobile-nav, .cta-band, .hero-media, .nav-toggle { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .hero, .site-footer, .section--dark { background: #fff !important; color: #000 !important; }
  .hero .display, .site-footer a { color: #000 !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  a { text-decoration: none; color: #000; }
}
