/* ============================================================================
   NAMIEX CHEMICALS — website3 · "The Field Ledger"
   Light archival design language: ink on paper. Serif display, monospace
   specimen labels, hairline rules, grayscale plates. The reference points are
   herbarium sheets, survey ledgers and pharmacopoeia typography — the kind of
   documents a 1974 Himalayan extraction company actually produced.
   ========================================================================== */

:root {
  /* Paper */
  --bg:        #E6E2DA;   /* warm grey-stone ground (20 Nov 2026: darker, less cream) */
  --bg-raised: #EFECE6;   /* card / panel paper */
  --bg-deep:   #DAD5CB;   /* recessed panels */
  --ink:       #211D15;   /* near-black ink */
  --ink-mid:   #4C463A;
  --ink-dim:   #5F5849;   /* AA (4.8:1+) on every paper tone */
  --line:      #CDC7BB;   /* hairline rule */
  --line-lift: #B4AC9C;

  /* Accents — bottle-green ink and berberine amber */
  --green:      #2F4A3C;
  --green-deep: #24382E;
  --green-wash: rgba(47, 74, 60, 0.07);
  /* One shared gold/mustard for the entire site. */
  --gold:       #A8741F;
  --amber:      var(--gold);
  --amber-deep: var(--gold);
  --amber-wash: var(--bg-deep); /* neutral paper tint; no gold tints (one gold rule, 20 Nov 2026) */
  --sage:       #5F7361;

  /* Aliases some shared pages (login.html) reach for */
  --accent: var(--green);

  --f-display: 'Iowan Old Style', Charter, 'Charter', Georgia, 'Times New Roman', serif;
  --f-body:    'Iowan Old Style', Charter, Georgia, serif;
  --f-mono:    ui-monospace, 'SF Mono', 'Cascadia Mono', Menlo, Consolas, monospace;

  --pad: clamp(20px, 4vw, 48px);
  --max: 1200px;
}

/* ---------- Reset-ish ---------- */
* { box-sizing: border-box; margin: 0; }
/* No smooth scroll: animating through 10,000+ px of catalogue on a nav click
   flings every section past the eye and is genuinely disorienting. Nav links
   jump instantly and the destination fades up — see the scroll script. */
html { scroll-behavior: auto; scroll-padding-top: 90px; }
body {
  font-family: var(--f-body);
  background: var(--bg);
  color: var(--ink-mid);
  font-size: 16.5px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  /* Faint laid-paper texture: two ultra-low-contrast line screens */
  background-image:
    repeating-linear-gradient(0deg, rgba(33,29,21,0.012) 0 1px, transparent 1px 3px);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p a, .p-note a { color: var(--green); border-bottom: 1px solid var(--line-lift); }
p a:hover, .p-note a:hover { border-color: var(--green); }
h1, h2, h3 { font-family: var(--f-display); font-weight: 600; color: var(--ink); }
::selection { background: var(--amber-wash); color: var(--ink); }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

/* Section plate numbers — counted automatically, styled like ledger folios */
body { counter-reset: plate; }
.eyebrow {
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-dim); margin: 0 0 18px;
  display: flex; align-items: center; gap: 14px;
}
.section-head .eyebrow::before,
.cedar-band-copy .eyebrow::before,
.process-copy .eyebrow::before {
  counter-increment: plate;
  content: "PLATE 0" counter(plate);
  color: var(--amber);
  letter-spacing: 0.18em;
}
.eyebrow::after { content: ""; height: 1px; background: var(--line-lift); flex: 0 0 44px; order: -1; display: none; }
.section-head .eyebrow::before, .cedar-band-copy .eyebrow::before, .process-copy .eyebrow::before { content: none; }

/* ---------- Scroll reveal ---------- */
/* The hidden state lives on :not(.is-visible) so the un-hide can never lose a
   specificity fight against it — adding .is-visible always shows the element. */
html.js-anim .reveal {
  transition: opacity 520ms ease-out;
  will-change: opacity;
}
html.js-anim .reveal:not(.is-visible) { opacity: 0; }
.reveal.is-visible { opacity: 1; }
.reveal-d1 { transition-delay: 90ms; }
.reveal-d2 { transition-delay: 180ms; }
.reveal-d3 { transition-delay: 270ms; }
.reveal-d4 { transition-delay: 360ms; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .grade-card, .login-card { transform: none !important; animation: none !important; }
  .chroma-svg path[data-draw] { stroke-dasharray: none !important; stroke-dashoffset: 0 !important; }
}

/* ---------- Buttons: ruled, tracked, archival ---------- */
.btn {
  display: inline-block;
  font-family: var(--f-mono); font-size: 12px;
  letter-spacing: 0.16em; text-transform: uppercase;
  padding: 15px 26px; border-radius: 0;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
  cursor: pointer;
}
.btn-primary {
  background: var(--green); color: var(--bg-raised);
  border: 1px solid var(--green);
}
.btn-primary:hover { background: var(--ink); border-color: var(--ink); }
.btn-ghost {
  border: 1px solid var(--ink); color: var(--ink); background: transparent;
}
.btn-ghost:hover { background: var(--ink); color: var(--bg-raised); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 200ms ease;
}
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line-lift); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: 74px;
}
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img:not(.brand-mark) { width: 42px; height: 42px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: var(--f-display);
  font-size: 20px; font-weight: 600; letter-spacing: 0.02em; color: var(--ink);
}
.brand-sub {
  font-family: var(--f-mono);
  font-size: 8.5px; letter-spacing: 0.18em; color: var(--ink-dim); text-transform: uppercase;
}
.site-nav { display: flex; align-items: center; gap: 26px; }
.nav-links { display: contents; }
.site-nav a {
  color: var(--ink-mid); font-size: 12px; white-space: nowrap;
  font-family: var(--f-mono); letter-spacing: 0.14em; text-transform: uppercase;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a:not(.nav-cta):not(.nav-login) {
  border-bottom: 1px solid transparent; padding-bottom: 3px;
}
.site-nav a:not(.nav-cta):not(.nav-login):hover { border-color: var(--amber); }
.nav-cta {
  border: 1px solid var(--ink); color: var(--ink) !important;
  padding: 10px 18px;
  transition: background 160ms ease, color 160ms ease;
}
.nav-cta:hover { background: var(--ink); color: var(--bg-raised) !important; }
.nav-login {
  display: flex; align-items: center; gap: 6px;
  color: var(--ink-dim) !important;
  padding: 9px 2px;
  transition: color 160ms ease;
}
.nav-login:hover { color: var(--ink) !important; }
.nav-login svg { width: 14px; height: 14px; flex-shrink: 0; }

.lang-select {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.06em;
  color: var(--ink-mid); background: transparent;
  border: 1px solid var(--line-lift); border-radius: 0;
  padding: 8px 10px; cursor: pointer;
}
.lang-select:focus { outline: none; border-color: var(--ink); }

.nav-toggle { display: none; }

/* ---------- Hero: the survey plate ---------- */
.hero { border-bottom: 1px solid var(--line); }
.hero-plate {
  display: grid; grid-template-columns: 200px 1fr;
  gap: clamp(28px, 5vw, 72px);
  /* Top/bottom only — a padding shorthand here would reset the horizontal
     padding .wrap provides, pulling the hero text to the window edge. */
  padding-top: clamp(56px, 9vh, 110px);
  padding-bottom: clamp(40px, 6vh, 72px);
  align-items: start;
}
.hero-meta {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-dim); line-height: 2.2;
  border-top: 1px solid var(--ink); padding-top: 14px;
}
.hero-meta strong { color: var(--ink); font-weight: 500; display: block; }
.hero-inner h1 {
  font-size: clamp(40px, 6.2vw, 76px);
  line-height: 1.04; letter-spacing: -0.01em;
  font-weight: 500;
  margin: 0 0 26px;
  max-width: 17ch;
}
.hero-inner h1 .amber { color: var(--amber); font-style: italic; }
.hero-lede {
  font-size: clamp(17px, 1.6vw, 20px); line-height: 1.7;
  color: var(--ink-mid); max-width: 56ch; margin: 0 0 34px;
}
.hero-actions { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.hero-actions .btn-ghost {
  border: none; padding: 15px 4px;
  border-bottom: 1px solid var(--ink);
}
.hero-actions .btn-ghost:hover { background: transparent; color: var(--amber-deep); border-color: var(--amber-deep); }

/* Full-bleed plate below the headline, kept in colour with the saturation
   pulled back so it sits with the ivory page rather than shouting over it. */
.hero-plate-figure { margin: 0; position: relative; }
.hero-plate-figure img {
  width: 100%; height: clamp(320px, 52vh, 560px); object-fit: cover;
  /* The file is already cut to a panoramic that holds sky, peaks and ridges,
     so the band only trims a little width — no vertical crop to fight. */
  object-position: center;
  filter: saturate(0.62) contrast(1.04) brightness(1.01);
}

/* Caption overlays the plate's top-right. The photo is
   in colour and bright at the top, so legibility comes from a soft gradient
   across the whole top edge — a box drawn around the text read as a grey slab. */
.hero-plate-figure { margin: 0; position: relative; }

.hero-plate-figure figcaption {
  position: absolute; top: 18px; right: 22px;
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.16em;
  text-transform: uppercase; color: rgba(250,247,240,0.92);
  text-align: right; line-height: 2;
  text-shadow: 0 1px 8px rgba(0,0,0,0.45);
}


/* ---------- Stat strip: a ruled ledger row ---------- */
.hero-strip { border-bottom: 1px solid var(--line); background: var(--bg-raised); }
.strip-inner {
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.strip-cell {
  padding: 30px 24px 28px;
  border-left: 1px solid var(--line);
}
.strip-cell:first-child { border-left: none; padding-left: 0; }
.strip-num {
  font-family: var(--f-display); font-size: clamp(30px, 3.4vw, 44px);
  color: var(--ink); display: block; line-height: 1.1; font-weight: 500;
}
.strip-label {
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-dim); display: block; margin-top: 8px;
}

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 10vh, 120px) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vh, 56px); }
.section-head h2 {
  font-size: clamp(30px, 4vw, 48px); line-height: 1.12; font-weight: 500;
  letter-spacing: -0.005em; margin: 0 0 16px;
}
.section-head p { color: var(--ink-mid); max-width: 60ch; margin: 0; }

/* ---------- About / founder ---------- */
.about { background: var(--bg-raised); border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: 280px 1fr; gap: clamp(36px, 5vw, 72px); align-items: start; }
.founder { margin: 0; }
.founder img {
  width: 100%; height: auto;
  border: 1px solid var(--line-lift);
  padding: 10px; background: #fff;
  box-shadow: 0 1px 0 var(--line-lift);
}
.founder figcaption {
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-dim); margin-top: 12px; text-align: center;
}
.about-copy p { margin: 0 0 18px; max-width: 66ch; }
.about-copy strong { color: var(--ink); font-weight: 600; }
.pull {
  font-family: var(--f-display); font-size: clamp(19px, 2vw, 23px); line-height: 1.5;
  color: var(--ink); font-style: italic;
  border-left: 2px solid var(--amber);
  padding: 4px 0 4px 24px; margin: 28px 0;
}
.about-facts {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  margin: 34px 0 0; border-top: 1px solid var(--line-lift);
}
.about-fact { padding: 18px 22px 18px 0; border-bottom: 1px solid var(--line); }
.about-fact:nth-child(even) { padding-left: 22px; border-left: 1px solid var(--line); }
.about-fact dt {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--amber-deep); margin-bottom: 6px;
}
.about-fact dd { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink-mid); }

/* ---------- Therapy areas ---------- */
.therapy-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.therapy-item {
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 30px 22px 26px; text-align: center;
  transition: background 200ms ease;
}
.therapy-item:hover { background: var(--bg-raised); }
.therapy-icon { display: inline-block; margin-bottom: 14px; }
.therapy-icon img {
  width: 64px; height: 64px; margin: 0 auto;
  /* 21 Nov 2026: no filter - the icons are exact brand gold #A8741F, the same as the logo */
}
.therapy-item h4 {
  font-family: var(--f-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink);
  line-height: 1.7;
}

/* ---------- Berberine ---------- */
.berberine { background: var(--bg-raised); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.grade-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--ink); }
.grade-card {
  padding: 34px 30px 30px; background: var(--bg-raised);
  border-left: 1px solid var(--line-lift);
  transform: perspective(800px) rotateX(0) rotateY(0);
  transition: transform 400ms cubic-bezier(.22,.61,.36,1), background 200ms ease;
  will-change: transform;
}
.grade-card:first-child { border-left: none; }
.grade-card.lead { background: var(--ink); }
.grade-card.lead .grade-pct { color: var(--bg); }
.grade-card.lead .grade-assay { color: var(--amber); }
.grade-card.lead p { color: #B8B0A0; }
.grade-pct {
  font-family: var(--f-display); font-size: clamp(44px, 5vw, 64px); font-weight: 500;
  color: var(--ink); line-height: 1; display: inline-block;
}
.grade-assay {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.16em;
  color: var(--amber-deep); display: inline-block; margin-left: 8px;
}
.grade-card p { margin: 14px 0 0; font-size: 14.5px; line-height: 1.65; color: var(--ink-mid); }

.salt-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: -1px; border: 1px solid var(--line-lift); border-top: none; }
.salt-card {
  padding: 18px 30px; background: var(--bg);
  border-left: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 3px;
}
.salt-card:first-child { border-left: none; }
.salt-card strong { font-family: var(--f-display); font-weight: 600; color: var(--ink); font-size: 15.5px; }
.salt-card span { font-family: var(--f-mono); font-size: 11px; color: var(--ink-dim); letter-spacing: 0.04em; }

.berberine-note {
  margin: 36px 0; max-width: 74ch;
  border-left: 2px solid var(--amber);
  padding-left: 24px;
  font-size: 16.5px; line-height: 1.7;
}
.berberine-note strong { color: var(--ink); font-weight: 600; }

/* Chromatogram — an instrument printout tipped into the ledger */
.chroma-panel {
  border: 1px solid var(--line-lift); background: var(--bg-raised);
  padding: 26px 28px 22px;
  box-shadow: 0 1px 0 var(--line-lift);
}
.chroma-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 18px; margin-bottom: 18px; flex-wrap: wrap;
  border-bottom: 1px solid var(--line); padding-bottom: 14px;
}
.chroma-label {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--amber-deep); display: block; margin-bottom: 4px;
}
.chroma-id strong { font-size: 17px; color: var(--ink); font-weight: 600; font-family: var(--f-display); }
.chroma-meta {
  display: flex; flex-direction: column; align-items: flex-end; gap: 2px;
  font-family: var(--f-mono); font-size: 11px; color: var(--ink-dim);
}
.chroma-svg { width: 100%; height: auto; display: block; }
html.js-anim .chroma-svg path[data-draw] {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
/* Peak label: rises and fades in only once the trace has finished drawing,
   the way an integrator prints the retention time after the peak elutes.
   .is-peaked is set by the scroll-scrub script when the draw completes. */
.chroma-fill { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .chroma-fill { opacity: 1 !important; } }

.chroma-peak {
  opacity: 0;
  transform: translateY(9px);
  transform-box: fill-box;
  transform-origin: center bottom;
  transition: opacity 520ms cubic-bezier(.22,.61,.36,1),
              transform 520ms cubic-bezier(.22,.61,.36,1);
}
.chroma-panel.is-peaked .chroma-peak { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .chroma-peak { opacity: 1 !important; transform: none !important; transition: none; }
}

.chroma-results {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin: 10px 0 0;
  background: var(--line); border: 1px solid var(--line);
}
.chroma-results > div { background: var(--bg); padding: 12px 14px; }
.chroma-results dt {
  font-family: var(--f-mono); font-size: 9.5px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-dim); margin-bottom: 4px;
}
.chroma-results dd { margin: 0; font-family: var(--f-mono); font-size: 14px; color: var(--ink); }
.chroma-results dd.accent { color: var(--amber-deep); }
.chroma-foot { font-size: 13px; color: var(--ink-dim); margin: 14px 0 0; max-width: 74ch; }

/* ---------- Product catalogue ---------- */
.cat-group { margin-bottom: clamp(36px, 5vh, 52px); }
.cat-group h3 {
  font-size: clamp(20px, 2.4vw, 26px); font-weight: 600;
  padding-bottom: 12px; margin-bottom: 0;
  border-bottom: 1px solid var(--ink);
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
}
.cat-group h3 span {
  font-family: var(--f-mono); font-size: 11px; font-weight: 400;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-dim);
}
.product { border-bottom: 1px solid var(--line); }
.product summary {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: 1fr auto 20px;
  gap: 18px; align-items: baseline;
  padding: 17px 2px;
  transition: background 160ms ease;
}
.product summary::-webkit-details-marker { display: none; }
.product summary:hover { background: var(--bg-raised); }
.p-name { font-family: var(--f-display); font-size: 16.5px; color: var(--ink); font-weight: 600; }
.p-name em {
  display: block; font-family: var(--f-body); font-style: italic; font-weight: 400;
  font-size: 13.5px; color: var(--ink-dim); margin-top: 2px;
}
.p-cas { font-family: var(--f-mono); font-size: 11.5px; color: var(--ink-dim); letter-spacing: 0.04em; white-space: nowrap; }
.p-open { position: relative; width: 12px; height: 12px; align-self: center; }
.p-open::before, .p-open::after {
  content: ""; position: absolute; background: var(--ink-dim); inset: 0; margin: auto;
  transition: transform 240ms ease, background 160ms ease;
}
.p-open::before { width: 12px; height: 1px; }
.p-open::after { width: 1px; height: 12px; }
.product[open] .p-open::after { transform: rotate(90deg); }
.product[open] .p-open::before, .product[open] .p-open::after { background: var(--amber-deep); }
.p-body { padding: 4px 2px 24px; }
.p-note { max-width: 72ch; margin: 0 0 16px; font-size: 15px; color: var(--ink-mid); }
.spec-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.spec-table th, .spec-table td {
  text-align: left; padding: 9px 14px 9px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.spec-table th {
  font-family: var(--f-mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-dim); width: 220px;
}
.spec-table td { color: var(--ink); font-family: var(--f-mono); font-size: 13px; }
.formula sub { font-size: 9px; }

/* ---------- Cedar band: full-bleed grayscale plate ---------- */
.cedar-band { position: relative; overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cedar-band-media { position: absolute; inset: 0; }
.cedar-band-media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) brightness(0.5) contrast(1.1);
  will-change: transform; transform: scale(1.08);
}
.cedar-band::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(20,17,12,0.62) 0%, rgba(20,17,12,0.25) 60%, transparent 100%);
}
.cedar-band-copy {
  position: relative; z-index: 2;
  padding-top: clamp(76px, 13vh, 150px); padding-bottom: clamp(76px, 13vh, 150px);
}
.cedar-band-copy .eyebrow { color: rgba(250,247,240,0.75); }
.cedar-band-copy h2 {
  color: #FAF7F0; font-size: clamp(28px, 3.8vw, 46px); font-weight: 500;
  max-width: 18ch; line-height: 1.15; margin: 0 0 16px;
}
.cedar-band-copy p { color: rgba(250,247,240,0.85); max-width: 52ch; margin: 0 0 28px; }
.cedar-band-copy .btn-ghost { border-color: #FAF7F0; color: #FAF7F0; }
.cedar-band-copy .btn-ghost:hover { background: #FAF7F0; color: var(--ink); }

/* ---------- Resin comparison ---------- */
.resin-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.compare { border: 1px solid var(--line-lift); background: var(--bg-raised); }
.compare-row {
  display: flex; gap: 18px; padding: 26px 26px;
  border-bottom: 1px solid var(--line);
}
.compare-row:last-child { border-bottom: none; }
.compare-mark {
  flex: 0 0 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid currentColor;
}
.compare-mark svg { width: 14px; height: 14px; }
.compare-row.them .compare-mark { color: #9B5E45; }
.compare-row.us .compare-mark { color: var(--green); }
.compare-row h4 { font-family: var(--f-display); font-size: 17px; margin: 2px 0 8px; color: var(--ink); }
.compare-row p { margin: 0; font-size: 14.5px; line-height: 1.65; }
.resin-aside p { margin: 0 0 22px; max-width: 56ch; }
.capacity-note {
  border-left: 2px solid var(--green);
  padding: 4px 0 4px 22px; margin: 0 0 28px;
  font-size: 15.5px; line-height: 1.65;
}
.capacity-note strong { color: var(--ink); display: block; margin-bottom: 4px; }

/* ---------- Process band ---------- */
.process-band { position: relative; overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.process-media { position: absolute; inset: 0; }
.process-media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) brightness(0.42) contrast(1.12);
  will-change: transform; transform: scale(1.08);
}
.process-band::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(18,15,11,0.68) 0%, rgba(18,15,11,0.3) 55%, transparent 100%);
}
.process-copy { position: relative; z-index: 2; padding-top: clamp(76px, 13vh, 150px); padding-bottom: clamp(76px, 13vh, 150px); }
.process-copy .inner { max-width: 60ch; }
.process-copy .eyebrow { color: rgba(250,247,240,0.75); }
.process-copy h2 { color: #FAF7F0; font-size: clamp(28px, 3.8vw, 44px); font-weight: 500; line-height: 1.15; margin: 0 0 18px; }
.process-copy p { color: rgba(250,247,240,0.85); margin: 0 0 16px; }
.process-erp {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 14px; color: rgba(250,247,240,0.72) !important;
  border-top: 1px solid rgba(250,247,240,0.25); padding-top: 18px; margin-top: 26px;
}
.process-erp svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; color: var(--amber); }

/* ---------- EXIT ---------- */
.exit-section { background: var(--bg-raised); border-bottom: 1px solid var(--line); }
.exit-badge {
  display: inline-block; font-family: var(--f-mono); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  border: 1px solid var(--amber-deep); color: var(--amber-deep);
  padding: 6px 12px; margin-bottom: 18px;
}
.exit-lead {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 64px);
  align-items: center; margin-bottom: clamp(36px, 5vh, 52px);
}
.exit-lead h2 { color: var(--ink); font-weight: 500; }
.exit-lead p { color: var(--ink-mid) !important; }
.exit-hero-img { border: 1px solid var(--line-lift); background: #fff; padding: 18px; }
.exit-hero-img img { width: 100%; height: auto; }
.exit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line-lift); }
.exit-card { border-left: 1px solid var(--line); background: var(--bg-raised); display: flex; flex-direction: column; }
.exit-card:first-child { border-left: none; }
.exit-card-media {
  background: #fff; padding: 22px 18px;
  display: grid; place-items: center; border-bottom: 1px solid var(--line);
}
.exit-card-media img { width: 100%; max-width: 100%; height: 210px; object-fit: contain; transition: transform 240ms ease; }
.exit-card-body { padding: 18px 20px 22px; }
.exit-card h4 { font-family: var(--f-display); font-size: 16px; color: var(--ink); margin: 0 0 8px; }
.exit-card p { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--ink-mid); }

/* ---------- Quality ---------- */
.q-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 48px); }
.q-rule { height: 1px; background: var(--ink); margin-bottom: 20px; position: relative; }
.q-rule::after {
  content: ""; position: absolute; left: 0; top: -2px;
  width: 44px; height: 3px; background: var(--amber);
}
.q-item h3 { font-size: 19px; margin: 0 0 10px; font-weight: 600; }
.q-item p { margin: 0; font-size: 15px; line-height: 1.7; }

/* ---------- Contact ---------- */
.contact-band { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.contact-media { position: absolute; inset: 0; }
.contact-media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) brightness(1.04) contrast(0.96) opacity(0.16);
  will-change: transform; transform: scale(1.08);
}
.contact-band-inner { position: relative; z-index: 2; padding-top: clamp(64px, 10vh, 110px); padding-bottom: clamp(64px, 10vh, 110px); }
.contact-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(36px, 6vw, 80px); }

.enquiry-form { display: grid; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field label {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-dim);
}
.field label span { color: var(--amber-deep); }
.field input, .field select, .field textarea {
  font-family: var(--f-body); font-size: 15.5px; color: var(--ink);
  background: var(--bg-raised);
  border: 1px solid var(--line-lift); border-radius: 0;
  padding: 12px 14px; width: 100%;
  transition: border-color 160ms ease, background 160ms ease;
}
.field textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.field select { appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-dim) 50%),
                    linear-gradient(135deg, var(--ink-dim) 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
  padding-right: 40px;
}
.field select option, .field select optgroup { background: var(--bg-raised); color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--ink); background: #fff;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-dim); opacity: 0.7; }
.enquiry-form .btn { justify-self: start; }
.enquiry-form .btn[disabled] { opacity: 0.6; cursor: default; }
.form-note { font-size: 13px; color: var(--ink-dim); margin: 0; }

.field-error {
  font-family: var(--f-mono); font-size: 11px; color: #9B4A33;
  display: none;
}
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #9B4A33; }
.field.has-error .field-error { display: block; }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-banner {
  padding: 16px 20px; margin-bottom: 26px; font-size: 15px;
  border-left: 2px solid var(--green); background: var(--bg-raised); color: var(--ink);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); border-right: 1px solid var(--line);
}
.form-banner.is-error { border-left-color: #9B4A33; }
.form-banner strong { display: block; margin-bottom: 3px; }

.contact-aside { display: grid; gap: 28px; align-content: start; border-left: 1px solid var(--line-lift); padding-left: clamp(24px, 3vw, 44px); }
.contact-block h3 {
  font-family: var(--f-mono); font-size: 10px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--amber-deep); margin: 0 0 10px;
}
.contact-block p { margin: 0; font-size: 15.5px; line-height: 1.8; color: var(--ink-mid); }
.contact-block a:hover { color: var(--ink); }
.indiamart { display: inline-block; background: #fff; border: 1px solid var(--line); padding: 6px 10px; }
.indiamart img { display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #B6AE9E; }
.site-footer .wrap { padding-top: clamp(44px, 7vh, 72px); padding-bottom: 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 0.8fr 1fr; gap: clamp(30px, 5vw, 72px); margin-bottom: 44px; }
.footer-brand .brand-name { font-size: 21px; margin-bottom: 3px; white-space: nowrap; color: #F3EEE3; }
.footer-brand .brand-sub {
  font-size: 9.5px; line-height: 1.7;
  display: block; width: 100%;
  text-align: left; letter-spacing: 0.22em; color: #857C6D;
}
.site-footer p { font-size: 14.5px; line-height: 1.75; margin: 0 0 18px; }
.site-footer h4 {
  font-family: var(--f-mono); font-size: 10px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; color: #8A8171; margin: 4px 0 14px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a:hover { color: #F3EEE3; }
.footer-bottom {
  border-top: 1px solid rgba(243,238,227,0.14);
  padding-top: 20px;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.1em; color: #857C6D;
}

/* ---------- Google Translate cleanup ---------- */
#google_translate_element { position: absolute; left: -9999px; top: -9999px; height: 0; overflow: hidden; }
.goog-te-banner-frame, .skiptranslate iframe { display: none !important; }
body { top: 0 !important; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero-plate { grid-template-columns: 1fr; gap: 26px; align-items: start; }

  .hero-meta { border-top: none; border-bottom: 1px solid var(--ink); padding: 0 0 14px; display: flex; gap: 26px; flex-wrap: wrap; line-height: 1.9; }
  .therapy-grid { grid-template-columns: repeat(2, 1fr); }
  .exit-grid { grid-template-columns: repeat(2, 1fr); }
  .exit-card:nth-child(3) { border-left: none; }
  .exit-card:nth-child(1), .exit-card:nth-child(2) { border-bottom: 1px solid var(--line); }
  .resin-grid { grid-template-columns: 1fr; }
  .q-list { grid-template-columns: 1fr; gap: 30px; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-aside { border-left: none; padding-left: 0; border-top: 1px solid var(--line-lift); padding-top: 34px; }
  .chroma-results { grid-template-columns: repeat(2, 1fr); }
  .chroma-meta { align-items: flex-start; }
  .exit-lead { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-grid .founder { max-width: 240px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: grid; place-items: center;
    width: 44px; height: 44px;
    background: transparent; border: 1px solid var(--line-lift); border-radius: 0;
    cursor: pointer;
  }
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
    content: ""; display: block; width: 18px; height: 1.5px; background: var(--ink);
    position: relative; transition: transform 200ms ease;
  }
  .nav-toggle span::before { position: absolute; top: -6px; }
  .nav-toggle span::after { position: absolute; top: 6px; }

  .site-nav {
    position: fixed; inset: 74px 0 auto 0; z-index: 55;
    background: var(--bg-raised);
    border-bottom: 1px solid var(--line-lift);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 0 18px;
    transform: translateY(-130%);
    transition: transform 260ms cubic-bezier(.22,.61,.36,1);
  }
  .site-nav.is-open { transform: none; }
  .nav-links { display: contents; }
  .site-nav a {
    padding: 14px var(--pad); font-size: 13px;
    border-bottom: 1px solid var(--line);
  }
  .site-nav a.nav-cta { border-bottom: none; }
  .nav-login { padding-left: var(--pad); }
  .nav-cta {
    margin: 14px var(--pad) 0; text-align: center;
    border: 1px solid var(--ink);
  }
  .lang-select { margin: 14px var(--pad) 0; width: calc(100% - var(--pad) * 2); }

  .strip-inner { grid-template-columns: 1fr 1fr; }
  .strip-cell { padding: 22px 18px; }
  .strip-cell:nth-child(odd) { border-left: none; padding-left: 0; }
  .strip-cell:nth-child(-n+2) { border-bottom: 1px solid var(--line); }

  .grade-grid { grid-template-columns: 1fr; }
  .grade-card { border-left: none; border-top: 1px solid var(--line-lift); }
  .grade-card:first-child { border-top: none; }
  .salt-row { grid-template-columns: 1fr; }
  .salt-card { border-left: none; border-top: 1px solid var(--line); }
  .salt-card:first-child { border-top: none; }
}

@media (max-width: 620px) {
  body { font-size: 15.5px; }
  .therapy-grid { grid-template-columns: 1fr 1fr; }
  .exit-grid { grid-template-columns: 1fr; }
  .exit-card { border-left: none; border-top: 1px solid var(--line); }
  .exit-card:first-child { border-top: none; }
  .field-row { grid-template-columns: 1fr; }
  .enquiry-form .btn { justify-self: stretch; text-align: center; }
  .spec-table th { width: 130px; }
  .chroma-results { grid-template-columns: 1fr 1fr; }
  .chroma-panel { padding: 16px 14px 14px; }
  .footer-grid { grid-template-columns: 1fr; }
  .product summary { grid-template-columns: 1fr 20px; }
  .p-cas { display: none; }
  .brand img:not(.brand-mark) { width: 36px; height: 36px; }
  .brand-name { font-size: 17px; }
  .hero-plate-figure figcaption { position: static; color: var(--ink-dim); text-shadow: none; text-align: left; padding-top: 10px; }
}

/* The grade row and the salt row sit in the same 3-column rhythm, which read as
   though 97/80/60 belonged to HCl/Sulphate/Tannate respectively. They do not —
   all three grades are Hydrochloride. These labels and the extra gap say so. */
.row-label {
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-dim);
  margin: 0 0 12px;
}
.salt-row { margin-top: 0 !important; border-top: 1px solid var(--line-lift) !important; }
.grade-grid + .row-label, .row-label + .salt-row { margin-top: 0; }
.grade-grid { margin-bottom: 34px; }


/* ============================================================================
   Motion pass — the instrument comes to life in the right order:
   grid → baseline → trace → peak label. Everything else gets calmer,
   more deliberate easing rather than more movement.
   ========================================================================== */

/* 1. Chromatogram grid: rules sweep in before the trace is drawn, the way
      graph paper is laid down before the pen touches it. */
html.js-anim .chroma-svg g[stroke] line {
  opacity: 0;
  transition: opacity 620ms cubic-bezier(.22,.61,.36,1);
}
html.js-anim .chroma-panel.is-gridded .chroma-svg g[stroke] line { opacity: 1; }
/* Vertical rules follow the horizontals, left to right. */
html.js-anim .chroma-svg g[stroke]:nth-of-type(2) line:nth-child(1) { transition-delay: 60ms; }
html.js-anim .chroma-svg g[stroke]:nth-of-type(2) line:nth-child(2) { transition-delay: 110ms; }
html.js-anim .chroma-svg g[stroke]:nth-of-type(2) line:nth-child(3) { transition-delay: 160ms; }
html.js-anim .chroma-svg g[stroke]:nth-of-type(2) line:nth-child(4) { transition-delay: 210ms; }
html.js-anim .chroma-svg g[stroke]:nth-of-type(2) line:nth-child(5) { transition-delay: 260ms; }

/* Axis numerals and units arrive with the grid, not before it. */
html.js-anim .chroma-svg text {
  opacity: 0;
  transition: opacity 700ms ease 220ms;
}
html.js-anim .chroma-panel.is-gridded .chroma-svg text { opacity: 1; }
/* The peak label is driven separately by .is-peaked — never by the grid. */
html.js-anim .chroma-peak text { transition: none; }
html.js-anim .chroma-panel.is-gridded .chroma-peak text { opacity: 1; }

/* 2. Product rows: the open/close chevron and row itself respond more crisply. */
/* Product rows need real breathing room on the left — the compound name should
   not sit hard against the panel edge. The hover indent moves from that base. */
.product summary { padding-left: 20px; padding-right: 20px;
  transition: background 200ms ease, padding-left 220ms cubic-bezier(.22,.61,.36,1); }
.product summary:hover { padding-left: 28px; }
.product[open] > summary { padding-left: 28px; }
.p-body { padding-left: 20px; padding-right: 20px; }

/* 3. Spec tables: rows tint on hover so a long column of numbers stays trackable. */
.spec-table tr { transition: background 160ms ease; }
.spec-table tr:hover { background: var(--amber-wash, rgba(0,0,0,0.03)); }

/* 4. Therapy tiles and EXIT cards lift with a shadow rather than only moving. */
.therapy-item, .exit-card {
  transition: transform 260ms cubic-bezier(.22,.61,.36,1),
              border-color 220ms ease, box-shadow 260ms ease, background 220ms ease;
}
.exit-card:hover .exit-card-media img { transform: translateY(-4px) scale(1.04); }

/* 5. Stat strip figures settle in with the count-up rather than snapping. */
.strip-num { transition: color 300ms ease; }
.strip-cell { transition: background 240ms ease; }

/* 6. Section headings: a hairline draws out under the eyebrow as it reveals. */
.section-head .eyebrow { position: relative; }

/* 7. Images in the photo bands ease their scale as well as their drift. */
.cedar-band-media img, .process-media img, .contact-media img {
  transition: none;
}

@media (prefers-reduced-motion: reduce) {
  html.js-anim .chroma-svg g[stroke] line,
  html.js-anim .chroma-svg text { opacity: 1 !important; transition: none !important; }
  .product summary:hover, .product[open] > summary { padding-left: 0; }
  .exit-card:hover .exit-card-media img { transform: none; }
}

/* Keeps a spec like "95–102% assay" from breaking across lines at the dash. */
.nowrap { white-space: nowrap; }

/* Login page tokens — the shared login.html reads these so it follows each
   site's palette instead of hardcoding one theme's colours. */
:root {
  --login-filter: grayscale(1) brightness(1.02) contrast(1.04);
  --login-scrim: linear-gradient(180deg, color-mix(in srgb, var(--bg) 72%, transparent) 0%, color-mix(in srgb, var(--bg) 90%, transparent) 60%, color-mix(in srgb, var(--bg) 97%, transparent) 100%);
  --login-card-bg: color-mix(in srgb, var(--bg-raised) 94%, transparent);
  --login-input-bg: var(--bg);
  --login-btn-bg: var(--ink);
  --login-btn-bg-hover: var(--green-deep);
  --login-btn-text: var(--bg-raised);
  --login-accent: var(--amber);
  --login-radius: 0px;
}


/* ---------- Footer contrast ----------
   The footer sits on the dark ink colour, but the global link rule paints
   links in the dark accent — which is close to invisible down here. These
   rules lift body copy and links to readable weights on the dark ground. */
.site-footer p, .site-footer li { color: #DCD4C4; }
.site-footer a { color: #DCD4C4; transition: color 160ms ease, border-color 160ms ease; }
.site-footer a:hover { color: #fff; }
.site-footer p a {
  color: #DCD4C4;
  border-bottom: 1px solid var(--gold);
}
.site-footer p a:hover { color: #fff; border-bottom-color: #fff; }
.site-footer h4 { color: var(--gold); }
.footer-bottom { color: #DCD4C4; opacity: 0.75; }
.site-footer .brand-sub { color: #DCD4C4; opacity: 0.7; }
/* IndiaMART badge keeps its own light chip so the logo stays legible. */
.site-footer .indiamart { background: #F2ECE2; border-radius: 3px; padding: 6px 10px; display: inline-block; }

/* ---------- Wordmark ----------
   The script wordmark stands alone in the header. The <title>, H1 and JSON-LD
   all still carry "Namiex Chemicals", so search engines and screen readers are
   not relying on the image for that. */
.brand { display: flex; align-items: center; gap: 12px; }
.brand img.brand-mark { height: 46px; width: auto; display: block; }
.brand-word {
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--ink-dim);
  padding-left: 12px; border-left: 1px solid var(--line-lift);
  white-space: nowrap;
}
/* Footer lockup stacks: wordmark, then the full legal name beneath it. */
.footer-brand { margin-bottom: 18px; flex-direction: column; align-items: flex-start; gap: 8px; }
.footer-brand img.brand-mark { height: 54px; }
.footer-brand .brand-word {
  /* Set in the display serif, like the section headings — the tracked mono
     read as a system label rather than part of the brand lockup. */
  border-left: none; padding-left: 0;
  font-family: var(--f-display);
  font-size: 16px; letter-spacing: 0.01em;
  text-transform: none; white-space: normal;
}
@media (max-width: 900px) {
  .brand img.brand-mark { height: 34px; }
  /* the footer has room even on a phone — keep the wordmark readable there */
  .footer-brand img.brand-mark { height: 46px; }
  .brand-word { font-size: 9px; letter-spacing: 0.14em; padding-left: 9px; }
  .footer-brand .brand-word { display: inline; }
}

/* The wordmark's companion text sits on the dark footer, so it needs the
   footer's light ink rather than the page's dim ink. */
.site-footer .brand-word { color: #DCD4C4; opacity: 0.9; }

/* ---------- Mobile monogram ----------
   At phone widths the wordmark shrinks to ~34px tall, where the "Estd. 1974"
   line is too small to read and stops earning its space. The gold monogram —
   the same art as the favicon — is legible at that size and reinforces the
   mark the visitor already sees in their browser tab. */
.brand-mono { display: none; }
@media (max-width: 620px) {
  .brand-mono { display: block; width: 40px; height: 40px; }
  .site-header .brand img.brand-mark { display: none; }
}

/* ---------- Section arrival ----------
   After an instant jump the destination lifts in briefly, so the eye is told
   where it landed without any travel through the page in between. */
@keyframes jumpIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.jump-flash { animation: jumpIn 380ms cubic-bezier(.22,.61,.36,1); }
@media (prefers-reduced-motion: reduce) { .jump-flash { animation: none; } }

/* ---------- Scroll-scrubbed sequences ----------
   Apple-style: the animation is tied 1:1 to scroll position, so it advances and
   reverses exactly as the reader moves. Because the motion follows the hand it
   does not cause the drift that free-running scroll animations do. JS writes
   --scrub (0 to 1) onto each element every frame. */
.scrub { --scrub: 1; }
html.js-anim .scrub { --scrub: 0; }

/* Hero recedes as you leave it */
.scrub-hero {
  opacity: calc(1 - var(--scrub) * 0.85);
  transform: scale(calc(1 - var(--scrub) * 0.04)) translateY(calc(var(--scrub) * -18px));
}

/* Grade cards rise in sequence as the berberine section arrives */
.scrub-card {
  opacity: var(--scrub);
  transform: translateY(calc((1 - var(--scrub)) * 26px));
}

@media (prefers-reduced-motion: reduce) {
  .scrub-hero, .scrub-card { opacity: 1 !important; transform: none !important; }
}

/* ============================================================================
   Multi-page build — repaired 19 Nov 2026 (Claude, after the Codex split).
   One shared header, one shared footer, one gold (--gold #A8741F).
   ========================================================================== */

/* ---------- Brand lock-up: gold script, thin rule, company name ---------- */
.brand { display: flex; align-items: center; gap: 14px; flex-shrink: 0; min-height: 44px; }
.brand img.brand-mark { height: 50px; width: auto; display: block; }
.brand-lockup {
  display: inline-grid; justify-items: stretch; line-height: 1;
  padding-left: 14px; border-left: 1px solid var(--gold);
  color: var(--gold);
}
.brand-company {
  font-family: var(--f-display); font-weight: 600;
  font-size: 15px; letter-spacing: 0.16em; text-transform: uppercase; white-space: nowrap;
  margin-right: -0.16em; /* the tracking after the last letter must not widen the block */
}
.brand-legal {
  display: flex; justify-content: space-between;
  font-family: var(--f-display); font-size: 8.5px; letter-spacing: 0.42em;
  text-transform: uppercase; margin-top: 6px; white-space: nowrap;
}
.brand-legal span:last-child { margin-right: -0.42em; }

/* ---------- Header navigation ---------- */
.site-nav { gap: 24px; }
.site-nav .nav-links { display: flex; align-items: center; gap: 26px; }
.site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--gold) !important; }

/* Language picker: themed select, custom chevron 12 px inside the border */
.lang-wrap { position: relative; display: inline-flex; }
.lang-select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.06em;
  color: var(--ink-mid); background-color: transparent;
  border: 1px solid var(--line-lift); border-radius: 0;
  height: 38px; padding: 0 34px 0 12px; cursor: pointer; min-width: 96px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23A8741F' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 10px 6px;
}
.lang-select:hover { border-color: var(--gold); }
.lang-select:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

@media (max-width: 1060px) {
  .nav-toggle {
    display: grid; place-items: center;
    width: 44px; height: 44px;
    background: transparent; border: 1px solid var(--line-lift); border-radius: 0;
    cursor: pointer; color: var(--ink);
  }
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
    content: ""; display: block; width: 18px; height: 1.5px; background: var(--ink);
    position: relative; transition: transform 200ms ease;
  }
  .nav-toggle span::before { position: absolute; top: -6px; }
  .nav-toggle span::after { position: absolute; top: 6px; }
  .nav-toggle[aria-expanded="true"] span { background: transparent; }
  .nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 55;
    background: var(--bg-raised);
    border-bottom: 1px solid var(--line-lift);
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    padding: 6px 0 22px;
    max-height: calc(100vh - 74px); overflow-y: auto;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 0s linear 180ms;
  }
  .site-nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity 180ms ease, transform 180ms ease; }
  .site-nav .nav-links { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav .nav-links a {
    display: flex; align-items: center; min-height: 52px;
    padding: 0 var(--pad); font-size: 13px;
    border-bottom: 1px solid var(--line) !important;
  }
  .site-nav .nav-links a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--gold); }
  .lang-wrap { margin: 16px var(--pad) 0; }
  .lang-select { width: 100%; height: 46px; font-size: 12px; }
  .site-nav .nav-login { min-height: 48px; padding: 0 var(--pad); margin-top: 4px; }
  .site-nav .nav-cta { margin: 10px var(--pad) 0; text-align: center; min-height: 48px; display: flex; align-items: center; justify-content: center; }
}
@media (max-width: 620px) {
  .header-inner { min-height: 66px; gap: 10px; }
  .brand { gap: 10px; }
  .brand img.brand-mark { height: 36px; display: block !important; }
  .brand-mono { display: none !important; }
  .brand-lockup { padding-left: 10px; }
  .brand-company { font-size: 11.5px; letter-spacing: 0.12em; margin-right: -0.12em; }
  .brand-legal { font-size: 7px; letter-spacing: 0.34em; margin-top: 5px; }
  .brand-legal span:last-child { margin-right: -0.34em; }
  .site-nav { max-height: calc(100vh - 66px); }
}
@media (max-width: 360px) {
  .brand img.brand-mark { height: 30px; }
  .brand-company { font-size: 10.5px; letter-spacing: 0.08em; margin-right: -0.08em; }
  .brand-legal { letter-spacing: 0.26em; }
  .brand-legal span:last-child { margin-right: -0.26em; }
}

/* ---------- Page heads (inner pages) ---------- */
.page-hero { border-bottom: 1px solid var(--line); }
.page-hero .wrap { padding-top: clamp(56px, 9vh, 104px); padding-bottom: clamp(40px, 6vh, 64px); }
.page-hero h1 { font-size: clamp(38px, 5.6vw, 68px); line-height: 1.06; font-weight: 500; max-width: 18ch; margin: 0 0 22px; }
.page-hero .lede { font-size: clamp(17px, 1.5vw, 19.5px); max-width: 60ch; margin: 0 0 30px; }
.page-hero .hero-actions { margin-top: 4px; }

/* ---------- CPHI band (kept: the owner likes this one) ---------- */
.event-note { background: var(--green); color: var(--bg-raised); border-bottom: 1px solid var(--green-deep); }
.event-note .wrap { display: flex; gap: 14px 22px; align-items: center; flex-wrap: wrap; padding-top: 16px; padding-bottom: 16px; }
.event-note strong { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.1em; font-weight: 600; color: #fff; }
.event-note strong em { font-style: normal; color: #fff; }
.event-note span { font-size: 15px; color: rgba(250,247,240,0.88); }
.event-note a { margin-left: auto; color: #fff; border-bottom: 1px solid rgba(255,255,255,0.6); padding: 10px 0; }
.event-note a:hover { border-color: #fff; }

/* ---------- Home: about teaser ---------- */
.about-teaser .about-grid { grid-template-columns: 220px 1fr; }
.text-link {
  display: inline-flex; align-items: center; min-height: 44px;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink); border-bottom: 1px solid var(--gold);
}
.text-link:hover { color: var(--gold); }

/* ---------- Berberine grade cards: JP + three HPLC grades ---------- */
.grade-grid.four { grid-template-columns: repeat(4, 1fr); }
.grade-card.api { background: var(--green); }
.grade-card.api .grade-pct { color: #fff; }
.grade-card.api .grade-assay { color: #fff; opacity: .8; }
.grade-card.api p { color: rgba(250,247,240,0.85); }
.berberine-links { display: flex; flex-wrap: wrap; gap: 14px 26px; margin-top: 30px; align-items: center; }

/* ---------- Cedarwood product cards ---------- */
.cedar-cards { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line-lift); background: var(--bg-raised); }
.cedar-card { border-left: 1px solid var(--line); display: flex; flex-direction: column; }
.cedar-card:first-child { border-left: none; }
.cedar-card-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-deep); }
.cedar-card-media img { width: 100%; height: 100%; object-fit: cover; }
.cedar-card-media.resin { display: grid; place-items: center; background: linear-gradient(160deg, #3A2614, #1E140B); }
.cedar-card-media.resin span { font-family: var(--f-display); font-style: italic; color: var(--gold); font-size: 22px; }
.cedar-card-body { padding: 18px 20px 22px; }
.cedar-card h3 { font-size: 18px; font-weight: 600; margin: 0 0 6px; }
.cedar-card h3 small { font-weight: 400; font-style: italic; color: var(--ink-dim); font-size: 14px; }
.cedar-card p { font-size: 14.5px; line-height: 1.6; margin: 0 0 10px; }
.cedar-card .spec { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.08em; color: var(--gold); text-transform: uppercase; }
.cedar-wrap { padding-top: clamp(48px, 7vh, 80px); }

/* ---------- Category overview ---------- */
.route-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-lift); border-left: 1px solid var(--line-lift); }
.route-grid a {
  border-right: 1px solid var(--line-lift); border-bottom: 1px solid var(--line-lift);
  padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 8px; min-height: 170px;
  background: var(--bg-raised); transition: background 180ms ease;
}
.route-grid a:hover { background: var(--amber-wash); }
.route-grid strong { font: 600 21px/1.15 var(--f-display); color: var(--ink); }
.route-grid .count { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.route-grid .eg { font-size: 14px; line-height: 1.55; color: var(--ink-mid); }
.route-grid a.route-all { background: var(--ink); }
.route-grid a.route-all strong { color: #fff; }
.route-grid a.route-all .eg { color: rgba(250,247,240,0.8); }
.route-grid a.route-all:hover { background: var(--green-deep); }
.count-note { font-size: 14px; color: var(--ink-dim); margin-top: 16px; max-width: 70ch; }

/* ---------- Why Namiex / quality ---------- */
.why { background: var(--bg-raised); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- Closing call to action ---------- */
.cta-band .wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: end; }
.cta-band .section-head { margin-bottom: 0; }
.cta-actions { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.cta-actions .btn { text-align: center; }
.btn-gold { background: var(--gold); border: 1px solid var(--gold); color: #fff; }
.btn-gold:hover { background: var(--ink); border-color: var(--ink); }
.btn { min-height: 48px; }

/* ---------- Products page ---------- */
.catalogue-tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 0 0 30px; }
.catalogue-tools button {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.06em;
  background: transparent; border: 1px solid var(--line-lift); color: var(--ink);
  min-height: 44px; padding: 0 14px; cursor: pointer;
}
.catalogue-tools button.is-active, .catalogue-tools button:hover { background: var(--green); border-color: var(--green); color: var(--bg-raised); }
.cat-group { margin-bottom: 44px; }
.cat-group h3 {
  display: flex; justify-content: space-between; align-items: baseline; gap: 14px; flex-wrap: wrap;
  font-size: clamp(21px, 2.2vw, 26px); font-weight: 600;
  border-bottom: 1px solid var(--ink); padding-bottom: 12px; margin-bottom: 0;
}
.cat-group h3 span { font-family: var(--f-mono); font-size: 11px; font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.cat-group .cat-note { font-size: 14px; color: var(--ink-dim); margin: 10px 0 0; }
.p-name em { display: block; }
.salt-row .salt-card span.cas { color: var(--gold); }
.exit-section { border-top: 1px solid var(--line); }
.pdf-note { font-size: 13.5px; color: var(--ink-dim); margin: 12px 0 0; }

/* ---------- Contact page ---------- */
.contact-band { border-top: none; }
.contact-block p a { color: var(--ink); border-bottom: 1px solid var(--line-lift); }

/* ---------- Footer ---------- */
.site-footer .wrap.footer-main { padding-top: clamp(52px, 8vh, 80px); padding-bottom: 0; }
.footer-grid { grid-template-columns: 1.35fr 0.7fr 1fr 1fr; gap: clamp(28px, 4vw, 60px); margin-bottom: 46px; }
.footer-lockup { margin-bottom: 20px; }
.footer-lockup img.brand-mark { height: 58px; }
.site-footer .brand-lockup { color: var(--gold); }
.site-footer h4 { color: var(--gold); }
.site-footer ul li a { display: inline-flex; min-height: 32px; align-items: center; }
.site-footer address { font-style: normal; font-size: 14.5px; line-height: 1.75; color: #DCD4C4; margin: 0 0 14px; }
.site-footer .contact-lines a { color: #DCD4C4; border-bottom: 1px solid var(--gold); }
.site-footer .contact-lines a:hover { color: #fff; border-color: #fff; }
.site-footer .contact-lines { font-size: 14.5px; line-height: 2; margin: 0; }
.site-footer .footer-bottom { padding-top: 22px; padding-bottom: 28px; }
.footer-estd { color: var(--gold); }

/* ---------- Responsive for the new blocks ---------- */
@media (max-width: 1060px) {
  .grade-grid.four { grid-template-columns: 1fr 1fr; }
  .grade-grid.four .grade-card { border-left: 1px solid var(--line-lift); border-top: 1px solid var(--line-lift); }
  .cedar-cards { grid-template-columns: 1fr 1fr; }
  .cedar-card:nth-child(3) { border-left: none; }
  .cedar-card:nth-child(n+3) { border-top: 1px solid var(--line); }
  .route-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-band .wrap { grid-template-columns: 1fr; align-items: start; }
  .cta-actions { flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 900px) {
  .grade-grid.four { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .grade-grid.four { grid-template-columns: 1fr; }
  .cedar-cards { grid-template-columns: 1fr; }
  .cedar-card { border-left: none !important; border-top: 1px solid var(--line); }
  .cedar-card:first-child { border-top: none; }
  .route-grid { grid-template-columns: 1fr; }
  .route-grid a { min-height: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .about-teaser .about-grid { grid-template-columns: 1fr; }
  .event-note a { margin-left: 0; }
  .cta-actions { flex-direction: column; }
  .strip-label { letter-spacing: 0.08em; }
  .hero-actions .btn { text-align: center; }
}
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--ink); color: var(--bg-raised); padding: 12px 16px; }
.skip-link:focus { left: 12px; top: 12px; }
.footer-grid { grid-template-columns: minmax(380px, 1.5fr) 0.7fr 1fr 1fr; }
.footer-lockup img.brand-mark { height: 52px; }
.site-footer li { margin-bottom: 2px; }
.footer-bottom { opacity: 1; color: #A99F8C; }
@media (max-width: 1060px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .footer-grid { grid-template-columns: 1fr; } .footer-lockup img.brand-mark { height: 44px; } }
@media (max-width: 620px) { .cedar-card-media { aspect-ratio: 16 / 9; } }
@media (max-width: 1060px) {
  .site-nav .lang-select { margin: 0; width: 100%; }
  .site-nav a.nav-login { border-bottom: none; padding-top: 0; padding-bottom: 0; }
  .site-nav a.nav-cta { border: 1px solid var(--ink) !important; padding: 0 18px; }
  .site-nav { box-shadow: 0 18px 30px -18px rgba(33,29,21,0.35); }
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23A8741F' stroke-width='1.4'/%3E%3C/svg%3E");
  background-position: right 12px center; background-size: 10px 6px; padding-right: 36px;
}
/* Login: same theme — gold lock-up, deep green button turning gold on hover */
:root { --login-btn-bg: var(--green); --login-btn-bg-hover: var(--gold); --login-accent: var(--gold); }

/* ---------- Lock-up matched to the CPHI leaflet v7 (19 Nov 2026, 22:07 ask) ----------
   Leaflet: name in Palatino-style serif, regular weight, tracking .14em; the legal line at
   0.56 of the name size with .95em tracking so PRIVATE and LIMITED nearly fill the line. */
.brand-lockup { font-family: 'P052', 'Palatino Linotype', Palatino, 'URW Palladio L', 'Book Antiqua', Georgia, serif; }
.brand-company { font-family: inherit; font-weight: 400; font-size: 17px; letter-spacing: 0.14em; margin-right: -0.14em; }
.brand-legal { font-family: inherit; font-size: 9.5px; letter-spacing: 0.95em; margin-top: 5px; }
.brand-legal span:last-child { margin-right: -0.95em; }
.footer-lockup .brand-company { font-size: 18px; }
.footer-lockup .brand-legal { font-size: 10px; }
@media (max-width: 620px) {
  .brand-company { font-size: 12.5px; letter-spacing: 0.12em; margin-right: -0.12em; }
  .brand-legal { font-size: 7px; letter-spacing: 0.95em; margin-top: 4px; }
  .brand-legal span:last-child { margin-right: -0.95em; }
  .footer-lockup .brand-company { font-size: 15px; }
  .footer-lockup .brand-legal { font-size: 8.4px; }
}
@media (max-width: 360px) {
  .brand-company { font-size: 11px; letter-spacing: 0.08em; margin-right: -0.08em; }
  .brand-legal { font-size: 6.2px; }
}
.other-req { font-family: var(--f-display); font-style: italic; font-size: 17px; color: var(--ink); border-top: 1px solid var(--gold); padding-top: 16px; margin-top: 8px; }
@media (min-width: 1061px) { .route-grid a.route-all { grid-column: span 2; } }

/* ---------- 20 Nov 2026: no scroll-in or hover motion (owner: the JP / grade row looked broken
   while scrolling). Everything renders in place, fully opaque; hover only tints a background. ---------- */
html.js-anim .reveal, html.js-anim .reveal:not(.is-visible), .reveal { opacity: 1 !important; transition: none !important; }
.scrub, html.js-anim .scrub { --scrub: 1 !important; }
.scrub-hero, .scrub-card { opacity: 1 !important; transform: none !important; }
.grade-grid.four {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line-lift); border: 1px solid var(--ink); margin-bottom: 34px;
}
.grade-grid.four .grade-card {
  border: 0 !important; transform: none !important; transition: background 160ms ease; will-change: auto;
  opacity: 1 !important; margin: 0;
}
.grade-grid.four .grade-card:not(.api):hover { background: var(--bg); }
.product summary:hover, .product[open] > summary { padding-left: 20px; }
.exit-card:hover .exit-card-media img { transform: none; }
.cedar-band-media img, .process-media img, .contact-media img { transform: none !important; }
@media (max-width: 1060px) { .grade-grid.four { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .grade-grid.four { grid-template-columns: 1fr; } }

/* Cedarwood cards: whole product visible, nothing cropped */
.cedar-card-media.contain { background: #fff; }
.cedar-card-media.contain img { object-fit: contain; padding: 8px; }
/* Home teasers */
.teaser-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.teaser-grid figure { margin: 0; }
.teaser-grid img { width: 100%; height: 100%; max-height: 380px; object-fit: cover; border: 1px solid var(--line-lift); }
@media (max-width: 860px) { .teaser-grid { grid-template-columns: 1fr; } }
/* Green identical to the leaflet (--forest #1f4d3a) */
:root { --green: #1F4D3A; --green-deep: #173B2C; --green-wash: rgba(31, 77, 58, 0.07); }
/* Chromatogram: grid and axes always visible; only the trace itself draws with scroll */
html.js-anim .chroma-svg g[stroke] line, html.js-anim .chroma-svg text { opacity: 1 !important; transition: none !important; }
/* Home founder teaser: small portrait beside two lines */
.about-teaser .teaser-grid { grid-template-columns: 220px 1fr; align-items: center; }
.about-teaser .founder img { max-height: none; height: auto; }
@media (max-width: 860px) { .about-teaser .teaser-grid { grid-template-columns: 1fr; } .about-teaser .founder { max-width: 200px; } }

/* ---------- One brand gold (Nipun, 20 Nov 2026): the footer logo's gold, #A8741F, everywhere.
   See /home/ubuntu/claude/approved/BRAND-COLOUR.md. Gold button label: white, semibold,
   13px (white on #A8741F = 4.05:1). ---------- */
:root { --gold: #A8741F; --amber: #A8741F; --amber-deep: #A8741F; }
.btn-gold { color: #FFFFFF; font-weight: 600; font-size: 13px; }

/* ---------- 20 Nov 2026 (AIT-02870): grey-stone paper. Gold #A8741F is 3.1:1 on --bg, enough for large
   headings and the logo but not for small text, so small labels that were gold are now dark ink. ---------- */
.chroma-results dd.accent, .field label span, .cedar-card .spec, .route-grid .count,
.cat-group h3 span, .salt-row .salt-card span.cas { color: var(--ink-mid); }
/* Home and About: company photograph (de-oiled cedarwood chips) in place of the founder portrait */
.founder.teaser-photo img { aspect-ratio: 41 / 28; object-fit: cover; max-height: none; height: auto; }
.about-teaser .teaser-grid { grid-template-columns: 300px 1fr; }
@media (max-width: 860px) { .about-teaser .teaser-grid { grid-template-columns: 1fr; } .about-teaser .founder, .about-grid .founder { max-width: 340px; } }

/* ---------- Spacing audit, 21 November 2026 (spacing only) ---------- */
/* Two plain sections on the same ground stacked their paddings into one ~200px hole. */
#cedarwood + #catalogue, #specification + .section { padding-top: 0; }
/* The enquiry band had .section padding plus its own inner padding (double). The contact page already uses the inner padding alone. */
.section.contact-band { padding: 0; }
/* Privacy: paragraphs ran into the next paragraph and into the list (global margin reset). */
.legal p { margin: 0 0 14px; }
/* Phone: the hero photo caption drops below the photo and sat on the window edge. */
@media (max-width: 620px) { .hero-plate-figure figcaption { padding-left: var(--pad); padding-right: var(--pad); } }
