/* =========================================================
   Alvar Peptides — refined minimal / editorial-scientific
   ========================================================= */

:root {
  --paper: #f4f1ec;
  --paper-2: #ece7de;
  --ink: #0f1210;
  --ink-2: #1a1e1b;
  --stone: #6b6e68;
  --stone-2: #8a8d87;
  --hair: rgba(15, 18, 16, 0.14);
  --hair-strong: rgba(15, 18, 16, 0.28);
  --accent: #2e5d4a;
  --accent-2: #3a7559;

  --serif: "Fraunces", "Times New Roman", Georgia, serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue",
    Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --wrap: 1280px;
  --pad-x: clamp(20px, 4vw, 48px);
  --section-y: clamp(96px, 12vw, 160px);

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  font-feature-settings: "ss01", "cv11";
  overflow-x: hidden;
  position: relative;
}

/* subtle paper grain — inline SVG noise */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 200;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

section[id],
header[id] {
  scroll-margin-top: 88px;
}

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

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

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

p {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 400;
}

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

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

/* --- utility ---------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-inline: var(--pad-x);
}

.mono {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 500;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 14px;
  z-index: 100;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 10px;
  vertical-align: middle;
  transform: translateY(-1px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  color: var(--stone);
  margin-bottom: 24px;
}

.display {
  font-family: var(--serif);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.02;
  font-size: clamp(44px, 7.2vw, 96px);
}

.display em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}

.display--md {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.04;
}

.display--lg {
  font-size: clamp(48px, 8vw, 104px);
}

.lede {
  font-size: clamp(17px, 1.3vw, 20px);
  line-height: 1.55;
  color: var(--stone);
  max-width: 54ch;
  margin-top: 24px;
}

.lede--inverse {
  color: rgba(244, 241, 236, 0.7);
}

/* --- buttons / links -------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s var(--ease), background 0.2s var(--ease),
    color 0.2s var(--ease), border-color 0.2s var(--ease);
  will-change: transform;
}

.btn svg {
  width: 14px;
  height: 14px;
}

.btn--primary {
  background: var(--ink);
  color: var(--paper);
}

.btn--primary:hover {
  background: var(--accent);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--hair-strong);
}

.btn--ghost:hover {
  border-color: var(--ink);
}

.btn--outline {
  background: transparent;
  color: var(--paper);
  border-color: rgba(244, 241, 236, 0.35);
}

.btn--outline:hover {
  border-color: var(--paper);
  background: rgba(244, 241, 236, 0.06);
}

.link-underline {
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-size: 100% 1px;
  background-position: 0 100%;
  transition: background-size 0.3s var(--ease);
}

.link-underline:hover {
  background-size: 0 1px;
  background-position-x: 100%;
}

/* --- announce bar ----------------------------------------- */

.announce {
  border-bottom: 1px solid var(--hair);
  background: var(--paper);
  font-size: 13px;
}

.announce__row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  padding-block: 10px;
  color: var(--stone);
}

.announce__tag {
  color: var(--ink);
}

.announce__meta {
  color: var(--stone-2);
}

@media (max-width: 640px) {
  .announce__meta {
    display: none;
  }
}

/* --- nav -------------------------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--hair);
}

.nav__row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  height: 68px;
  gap: 32px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}

.logo__mark {
  width: 24px;
  height: 24px;
  color: var(--ink);
}

.logo__word {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: -0.01em;
}

.nav__list {
  display: flex;
  gap: 36px;
  justify-content: center;
  font-size: 14px;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.nav__list a {
  position: relative;
  padding: 6px 0;
}

.nav__list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav__list a:hover::after {
  transform: scaleX(1);
}

.nav__cta {
  display: flex;
  align-items: center;
  gap: 20px;
}

@media (max-width: 880px) {
  .nav__list {
    display: none;
  }
  .nav__cta .link-underline {
    display: none;
  }
  .nav__row {
    grid-template-columns: auto 1fr;
  }
  .nav__cta {
    justify-self: end;
  }
}

/* --- hero ------------------------------------------------- */

.hero {
  padding-top: clamp(64px, 8vw, 120px);
  padding-bottom: clamp(64px, 8vw, 120px);
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--hair);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}

@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }
}

.hero__copy {
  max-width: 680px;
}

.hero__ctas {
  margin-top: 40px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero__stats {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--hair);
  max-width: 560px;
}

.hero__stats dt {
  color: var(--stone);
  margin-bottom: 8px;
}

.hero__stats dd {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 36px);
  letter-spacing: -0.01em;
}

/* Specimen card */

.specimen {
  position: relative;
}

.specimen__card {
  background: var(--paper-2);
  border: 1px solid var(--hair);
  border-radius: 6px;
  padding: 22px;
  box-shadow: 0 1px 0 rgba(15, 18, 16, 0.02),
    0 24px 48px -24px rgba(15, 18, 16, 0.18);
  position: relative;
  overflow: hidden;
}

.specimen__card::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px dashed var(--hair-strong);
  border-radius: 3px;
  pointer-events: none;
  opacity: 0.45;
}

.specimen__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.specimen__pill {
  color: var(--accent);
  background: rgba(46, 93, 74, 0.08);
  padding: 4px 10px;
  border-radius: 999px;
}

.specimen__viz {
  background: var(--paper);
  border: 1px solid var(--hair);
  border-radius: 4px;
  color: var(--ink);
  padding: 14px;
  position: relative;
  z-index: 1;
}

.specimen__meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 24px;
  margin: 18px 0 0;
  position: relative;
  z-index: 1;
}

.specimen__meta dt {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 4px;
}

.specimen__meta dd {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
}

.specimen__caption {
  margin-top: 14px;
  color: var(--stone-2);
  text-align: right;
}

/* --- ticker ----------------------------------------------- */

.ticker {
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  overflow: hidden;
  background: var(--paper);
}

.ticker__track {
  display: flex;
  width: max-content;
  animation: ticker 60s linear infinite;
}

.ticker__row {
  display: flex;
  gap: 64px;
  padding: 18px 32px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--stone);
  white-space: nowrap;
}

.ticker__row b {
  color: var(--ink);
  font-weight: 500;
}

@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

/* --- sections --------------------------------------------- */

.section {
  padding-block: var(--section-y);
  border-bottom: 1px solid var(--hair);
}

.section--ink {
  background: var(--ink);
  color: var(--paper);
  border-bottom-color: transparent;
}

.section--ink .eyebrow {
  color: rgba(244, 241, 236, 0.55);
}

.section--ink .dot {
  background: #8fb8a5;
}

.section--paper {
  background: var(--paper-2);
}

.section__head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: end;
  margin-bottom: clamp(48px, 6vw, 80px);
}

.section__head .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.section__head h2 {
  grid-column: 1;
}

.section__head a {
  grid-column: 2;
  color: var(--stone);
}

.section__head a:hover {
  color: var(--ink);
}

@media (max-width: 700px) {
  .section__head {
    grid-template-columns: 1fr;
  }
  .section__head a {
    grid-column: 1;
    justify-self: start;
  }
}

/* --- catalog ---------------------------------------------- */

.catalog {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--hair);
  border-left: 1px solid var(--hair);
}

.product {
  padding: 28px;
  border-right: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--paper);
  position: relative;
  transition: background 0.25s var(--ease);
}

.product:hover {
  background: var(--paper-2);
}

.product--linked {
  cursor: pointer;
}

.product__anchor {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.product__anchor:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.product__foot a,
.product--linked .product__top {
  position: relative;
  z-index: 2;
}

.product:hover .product__name {
  color: var(--accent);
}

.product__top {
  display: flex;
  justify-content: space-between;
  color: var(--stone);
}

.product__cat {
  color: var(--stone);
}

.product__purity {
  color: var(--accent);
  font-weight: 500;
}

.product__name {
  font-family: var(--serif);
  font-size: 36px;
  letter-spacing: -0.01em;
  line-height: 1;
  transition: color 0.2s var(--ease);
}

.product__sub {
  color: var(--stone);
  text-transform: none;
  letter-spacing: 0;
  font-size: 12px;
}

.product__desc {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.55;
  max-width: 42ch;
}

.product__foot {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px dashed var(--hair);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--stone);
}

.product__foot a {
  color: var(--ink);
  font-weight: 500;
}

.product__foot a:hover {
  color: var(--accent);
}

@media (max-width: 960px) {
  .catalog {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .catalog {
    grid-template-columns: 1fr;
  }
}

/* --- quality ---------------------------------------------- */

.quality__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid rgba(244, 241, 236, 0.14);
  border-left: 1px solid rgba(244, 241, 236, 0.14);
}

.metrics li {
  padding: 28px;
  border-right: 1px solid rgba(244, 241, 236, 0.14);
  border-bottom: 1px solid rgba(244, 241, 236, 0.14);
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 220px;
}

.metric__tag {
  color: rgba(244, 241, 236, 0.4);
  margin-bottom: 8px;
}

.metrics h3 {
  font-family: var(--serif);
  font-size: 26px;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.metrics p {
  color: rgba(244, 241, 236, 0.65);
  font-size: 14px;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .quality__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .metrics {
    grid-template-columns: 1fr;
  }
}

/* --- process ---------------------------------------------- */

.process {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--hair);
}

.process li {
  padding: 36px 28px 40px;
  border-right: 1px solid var(--hair);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.process li:last-child {
  border-right: none;
}

.process__n {
  color: var(--accent);
  font-family: var(--serif);
  font-style: italic;
  font-size: 40px;
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1;
  text-transform: none;
}

.process h3 {
  font-family: var(--serif);
  font-size: 32px;
  letter-spacing: -0.01em;
}

.process p {
  color: var(--stone);
  max-width: 34ch;
  font-size: 15px;
}

.process__fig {
  margin: 12px 0 0;
  color: var(--stone);
  height: 60px;
}

@media (max-width: 800px) {
  .process {
    grid-template-columns: 1fr;
  }
  .process li {
    border-right: none;
    border-bottom: 1px solid var(--hair);
  }
  .process li:last-child {
    border-bottom: none;
  }
}

/* --- journal ---------------------------------------------- */

.journal {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--hair);
  border: 1px solid var(--hair);
}

.entry {
  background: var(--paper-2);
  padding: 32px 28px 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 280px;
  transition: background 0.25s var(--ease);
}

.entry:hover {
  background: var(--paper);
}

.entry__meta {
  color: var(--accent);
}

.entry h3 {
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  max-width: 20ch;
}

.entry p {
  color: var(--stone);
  font-size: 15px;
}

.entry__date {
  margin-top: auto;
  color: var(--stone-2);
}

@media (max-width: 900px) {
  .journal {
    grid-template-columns: 1fr;
  }
}

/* --- faq -------------------------------------------------- */

.faq__grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.faq {
  border-top: 1px solid var(--hair);
}

.faq details {
  border-bottom: 1px solid var(--hair);
  padding: 22px 0;
}

.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 24px);
  letter-spacing: -0.01em;
  transition: color 0.2s var(--ease);
}

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

.faq summary:hover {
  color: var(--accent);
}

.faq summary svg {
  width: 16px;
  height: 16px;
  color: var(--stone);
  transition: transform 0.3s var(--ease);
  flex-shrink: 0;
}

.faq details[open] summary svg {
  transform: rotate(180deg);
}

.faq__body {
  padding-top: 12px;
  max-width: 60ch;
  color: var(--stone);
  font-size: 15px;
  line-height: 1.65;
}

@media (max-width: 800px) {
  .faq__grid {
    grid-template-columns: 1fr;
  }
}

/* --- access tiers ----------------------------------------- */

.tiers {
  padding-block: var(--section-y);
}

.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

.tier {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--hair);
  border-radius: 4px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.tier:hover {
  border-color: var(--hair-strong);
  transform: translateY(-2px);
  box-shadow: 0 20px 50px -30px rgba(15, 18, 16, 0.2);
}

.tier--featured {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.tier--featured .tier__line,
.tier--featured .tier__list {
  color: rgba(244, 241, 236, 0.7);
}

.tier--featured .tier__list li {
  border-color: rgba(244, 241, 236, 0.14);
}

.tier--featured .tier__kicker {
  color: rgba(244, 241, 236, 0.45);
}

.tier__badge {
  position: absolute;
  top: -10px;
  left: 28px;
  background: var(--accent);
  color: var(--paper);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.06em;
}

.tier__head {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tier__kicker {
  color: var(--stone);
}

.tier__head h3 {
  font-family: var(--serif);
  font-size: clamp(28px, 2.6vw, 34px);
  letter-spacing: -0.01em;
  line-height: 1.05;
}

.tier__line {
  color: var(--stone);
  font-size: 14px;
  max-width: 28ch;
}

.tier__list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--hair);
  flex-grow: 1;
}

.tier__list li {
  padding: 12px 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-2);
  border-bottom: 1px solid var(--hair);
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 8px;
  align-items: baseline;
}

.tier--featured .tier__list li {
  color: rgba(244, 241, 236, 0.8);
}

.tier__list .mono {
  color: var(--stone);
  font-size: 10px;
}

.tier--featured .tier__list .mono {
  color: rgba(244, 241, 236, 0.45);
}

.tier__cta {
  align-self: flex-start;
  margin-top: 4px;
}

.tier--featured .btn--primary {
  background: var(--paper);
  color: var(--ink);
}

.tier--featured .btn--primary:hover {
  background: var(--accent);
  color: var(--paper);
}

@media (max-width: 900px) {
  .tier-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* --- cta -------------------------------------------------- */

.cta {
  padding-block: var(--section-y);
  background:
    radial-gradient(
      ellipse 60% 80% at 50% 0%,
      rgba(46, 93, 74, 0.08),
      transparent 70%
    ),
    var(--paper);
  border-bottom: 1px solid var(--hair);
}

.cta__inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.cta__inner .eyebrow {
  justify-content: center;
}

.cta__form {
  margin-top: 40px;
  display: flex;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--hair-strong);
  border-radius: 999px;
  background: var(--paper);
  max-width: 520px;
  margin-inline: auto;
  transition: border-color 0.2s var(--ease);
}

.cta__form:focus-within {
  border-color: var(--ink);
}

.cta__form input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 10px 18px;
  font-size: 15px;
  outline: none;
}

.cta__form input::placeholder {
  color: var(--stone-2);
}

.cta__fine {
  margin-top: 16px;
  color: var(--stone-2);
}

@media (max-width: 520px) {
  .cta__form {
    flex-direction: column;
    border-radius: 14px;
    padding: 10px;
  }
  .cta__form .btn {
    justify-content: center;
  }
}

/* --- footer ----------------------------------------------- */

.footer {
  background: var(--paper);
  padding-top: clamp(64px, 8vw, 96px);
  padding-bottom: 32px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: clamp(40px, 6vw, 80px);
  padding-bottom: 64px;
  border-bottom: 1px solid var(--hair);
}

.footer__tag {
  margin-top: 20px;
  color: var(--stone);
  font-size: 14px;
  max-width: 36ch;
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer__cols h4 {
  color: var(--stone);
  margin-bottom: 16px;
}

.footer__cols li {
  margin-bottom: 8px;
  font-size: 14px;
}

.footer__cols a {
  color: var(--ink-2);
}

.footer__cols a:hover {
  color: var(--accent);
}

.footer__base {
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: var(--stone-2);
  font-size: 11px;
}

@media (max-width: 900px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }
  .footer__cols {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer__base {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .footer__cols {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- journal article (long-form reading) ------------------ */

.article {
  padding-block: clamp(48px, 7vw, 96px);
}

.article__head {
  padding-bottom: clamp(40px, 5vw, 72px);
  border-bottom: 1px solid var(--hair);
  margin-bottom: clamp(40px, 5vw, 72px);
}

.article__meta {
  color: var(--stone);
  margin-bottom: 20px;
}

.article__title {
  font-size: clamp(36px, 5.5vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.015em;
  max-width: 22ch;
  margin-bottom: 24px;
}

.article__lede {
  max-width: 58ch;
  font-size: clamp(18px, 1.4vw, 22px);
  line-height: 1.5;
  color: var(--ink-2);
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
}

.article__lede em {
  font-style: normal;
  color: var(--accent);
}

.article__byline {
  margin-top: 32px;
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px dashed var(--hair);
}

.article__by {
  color: var(--stone);
}

.article__author {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  letter-spacing: -0.01em;
}

.article__role {
  color: var(--stone);
}

.article__body {
  max-width: 68ch;
  margin: 0 auto;
  padding-inline: 0;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
}

.article__body h2 {
  font-family: var(--serif);
  font-size: clamp(26px, 2.4vw, 34px);
  letter-spacing: -0.01em;
  line-height: 1.12;
  margin-top: 2.4em;
  margin-bottom: 0.6em;
  color: var(--ink);
}

.article__body h3 {
  font-family: var(--serif);
  font-size: clamp(20px, 1.8vw, 24px);
  letter-spacing: -0.01em;
  margin-top: 2em;
  margin-bottom: 0.5em;
  color: var(--ink);
}

.article__body p {
  margin: 0 0 1.4em;
}

.article__body p + p {
  margin-top: 0;
}

.article__body strong {
  color: var(--ink);
  font-weight: 600;
}

.article__body em {
  font-style: italic;
}

.article__body ul,
.article__body ol {
  margin: 0 0 1.4em;
  padding-left: 1.4em;
  list-style: disc;
}

.article__body ol {
  list-style: decimal;
}

.article__body li {
  margin-bottom: 0.5em;
  padding-left: 0.2em;
}

.article__body li::marker {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
}

.article__body blockquote {
  margin: 2em 0;
  padding: 0 0 0 32px;
  border-left: 2px solid var(--accent);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 1.8vw, 24px);
  line-height: 1.4;
  color: var(--ink);
}

.article__body blockquote p {
  margin: 0;
}

.article__body code,
.article__body .mono {
  font-family: var(--mono);
  font-size: 0.9em;
  background: var(--paper-2);
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: 0;
  text-transform: none;
}

.article__body a {
  color: var(--accent);
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-size: 100% 1px;
  background-position: 0 100%;
  transition: background-size 0.3s var(--ease);
}

.article__body a:hover {
  background-size: 0 1px;
  background-position-x: 100%;
}

.article__foot {
  margin-top: clamp(48px, 6vw, 96px);
  padding-top: 32px;
  border-top: 1px solid var(--hair);
}

.article__foot-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  color: var(--stone);
  font-size: 13px;
}

.a-more {
  background: var(--paper-2);
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
}

/* --- journal page ----------------------------------------- */

.j-hero {
  padding-block: clamp(80px, 12vw, 160px);
  border-bottom: 1px solid var(--hair);
}

.j-hero .display {
  max-width: 14ch;
  margin: 16px 0 32px;
}

.j-hero .lede {
  max-width: 58ch;
}

.j-feature {
  padding-block: clamp(64px, 9vw, 120px);
  border-bottom: 1px solid var(--hair);
  background: var(--paper-2);
}

.j-feature__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

.j-feature__tag {
  color: var(--accent);
  display: inline-block;
  margin-bottom: 18px;
}

.j-feature__copy .display {
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin-bottom: 20px;
}

.j-feature__copy a {
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-size: 0 1px;
  background-position: 0 100%;
  transition: background-size 0.4s var(--ease), color 0.2s var(--ease);
}

.j-feature__copy a:hover {
  background-size: 100% 1px;
  color: var(--accent);
}

.j-feature__copy .lede {
  color: var(--stone);
  margin-bottom: 28px;
  max-width: 50ch;
}

.j-feature__meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--stone);
  font-size: 11px;
}

.j-feature__viz {
  background: var(--paper);
  border: 1px solid var(--hair);
  border-radius: 4px;
  padding: 18px;
  color: var(--ink);
  box-shadow: 0 20px 40px -28px rgba(15, 18, 16, 0.25);
}

.j-feature__viz svg {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 900px) {
  .j-feature__grid {
    grid-template-columns: 1fr;
  }
}

.j-grid-wrap {
  padding-block: clamp(64px, 9vw, 120px);
}

.j-grid-wrap .section__head {
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
}

.j-count {
  color: var(--stone);
  justify-self: end;
}

@media (max-width: 700px) {
  .j-grid-wrap .section__head {
    grid-template-columns: 1fr;
  }
  .j-count {
    justify-self: start;
  }
}

.j-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--hair);
  border-left: 1px solid var(--hair);
  list-style: none;
  padding: 0;
  margin: 0;
}

.j-entry {
  padding: 32px 28px 28px;
  border-right: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  background: var(--paper);
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 240px;
  transition: background 0.25s var(--ease);
}

.j-entry:hover {
  background: var(--paper-2);
}

.j-entry__top {
  display: flex;
  justify-content: space-between;
  color: var(--stone);
}

.j-entry__cat {
  color: var(--accent);
}

.j-entry__title {
  font-family: var(--serif);
  font-size: clamp(22px, 2.2vw, 28px);
  letter-spacing: -0.01em;
  line-height: 1.12;
  max-width: 24ch;
}

.j-entry__title a {
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-size: 0 1px;
  background-position: 0 100%;
  transition: background-size 0.4s var(--ease), color 0.2s var(--ease);
}

.j-entry:hover .j-entry__title a,
.j-entry__title a:hover {
  background-size: 100% 1px;
  color: var(--accent);
}

.j-entry p {
  color: var(--stone);
  font-size: 14px;
  line-height: 1.55;
}

.j-entry__foot {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px dashed var(--hair);
  display: flex;
  justify-content: space-between;
  color: var(--stone);
}

.j-entry__read {
  color: var(--stone-2);
}

@media (max-width: 700px) {
  .j-grid {
    grid-template-columns: 1fr;
  }
}

/* --- about page ------------------------------------------- */

.a-hero {
  padding-block: clamp(80px, 12vw, 160px);
  border-bottom: 1px solid var(--hair);
}

.a-hero .display {
  max-width: 16ch;
  margin: 16px 0 32px;
}

.a-hero .lede {
  max-width: 56ch;
}

.a-pillars__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--hair);
  border-left: 1px solid var(--hair);
  list-style: none;
  padding: 0;
  margin: 0;
}

.a-pillars__list li {
  padding: 36px 32px;
  border-right: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--paper);
}

.a-pillars__n {
  font-family: var(--serif);
  font-style: italic;
  font-size: 40px;
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--accent);
  text-transform: none;
}

.a-pillars__list h3 {
  font-family: var(--serif);
  font-size: clamp(22px, 2vw, 28px);
  letter-spacing: -0.01em;
  line-height: 1.1;
  max-width: 22ch;
}

.a-pillars__list p {
  color: var(--stone);
  font-size: 14px;
  line-height: 1.6;
  max-width: 42ch;
}

@media (max-width: 800px) {
  .a-pillars__list {
    grid-template-columns: 1fr;
  }
}

.a-origin__grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.a-origin__grid header .lede {
  margin-top: 24px;
}

.a-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--hair);
}

.a-timeline li {
  padding: 28px 0;
  border-bottom: 1px solid var(--hair);
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 24px;
  align-items: baseline;
}

.a-timeline__year {
  color: var(--accent);
}

.a-timeline h3 {
  font-family: var(--serif);
  font-size: clamp(22px, 2vw, 26px);
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.a-timeline p {
  color: var(--stone);
  font-size: 14px;
  max-width: 56ch;
}

@media (max-width: 800px) {
  .a-origin__grid {
    grid-template-columns: 1fr;
  }
  .a-timeline li {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

.a-team__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.a-member {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.a-member__portrait {
  margin: 0;
  border: 1px solid var(--hair);
  background: var(--paper);
  padding: 6px;
  border-radius: 2px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.a-member__portrait svg {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 1px;
}

.a-member h3 {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: -0.01em;
}

.a-member__role {
  color: var(--accent);
  margin: 4px 0 10px;
}

.a-member p {
  color: var(--stone);
  font-size: 13px;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .a-team__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .a-team__grid {
    grid-template-columns: 1fr;
  }
}

.a-loc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  list-style: none;
}

.a-loc {
  border: 1px solid rgba(244, 241, 236, 0.18);
  padding: 32px;
  border-radius: 4px;
  background: rgba(244, 241, 236, 0.03);
}

.a-loc__tag {
  color: rgba(244, 241, 236, 0.55);
  margin-bottom: 12px;
  display: inline-block;
}

.a-loc h3 {
  font-family: var(--serif);
  font-size: clamp(32px, 3vw, 44px);
  letter-spacing: -0.01em;
  margin-bottom: 24px;
  color: var(--paper);
}

.a-loc dl {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.a-loc dl > div {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(244, 241, 236, 0.12);
}

.a-loc dl > div:last-child {
  border-bottom: none;
}

.a-loc dt {
  color: rgba(244, 241, 236, 0.55);
  font-size: 13px;
}

.a-loc dd {
  margin: 0;
  color: rgba(244, 241, 236, 0.85);
  font-size: 14px;
}

@media (max-width: 800px) {
  .a-loc-grid {
    grid-template-columns: 1fr;
  }
}

/* --- catalog page ----------------------------------------- */

.c-hero {
  padding-block: clamp(64px, 10vw, 144px);
  border-bottom: 1px solid var(--hair);
}

.c-hero .display {
  max-width: 14ch;
  margin-top: 16px;
}

.c-hero .lede {
  max-width: 58ch;
}

.c-stats {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--hair);
  max-width: 720px;
}

.c-stats dt {
  color: var(--stone);
  margin-bottom: 6px;
}

.c-stats dd {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(26px, 2.6vw, 32px);
  letter-spacing: -0.01em;
}

@media (max-width: 640px) {
  .c-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

.c-controls {
  position: sticky;
  top: 68px;
  z-index: 40;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--hair);
}

.c-controls__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 16px;
  flex-wrap: wrap;
}

.c-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.c-chip {
  appearance: none;
  background: transparent;
  border: 1px solid var(--hair-strong);
  color: var(--ink);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.c-chip:hover {
  border-color: var(--ink);
}

.c-chip.is-active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.c-search {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--hair-strong);
  border-radius: 999px;
  padding: 8px 16px;
  background: var(--paper);
  min-width: 260px;
  transition: border-color 0.2s var(--ease);
}

.c-search:focus-within {
  border-color: var(--ink);
}

.c-search svg {
  width: 14px;
  height: 14px;
  color: var(--stone);
  flex-shrink: 0;
}

.c-search input {
  flex: 1;
  border: 0;
  background: transparent;
  outline: none;
  font-size: 14px;
}

@media (max-width: 640px) {
  .c-search {
    width: 100%;
    min-width: 0;
  }
}

.c-grid-wrap {
  padding-block: clamp(48px, 7vw, 96px);
}

.c-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--hair);
  border-left: 1px solid var(--hair);
}

@media (max-width: 960px) {
  .c-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .c-grid {
    grid-template-columns: 1fr;
  }
}

.c-card {
  padding: 28px;
  border-right: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--paper);
  position: relative;
  transition: background 0.25s var(--ease);
}

.c-card:hover {
  background: var(--paper-2);
}

.c-card:hover .product__name {
  color: var(--accent);
}

.c-stock {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.c-stock--in_stock {
  color: var(--accent);
}

.c-stock--low {
  color: #b8853a;
}

.c-stock--reserve {
  color: var(--stone);
}

.c-empty,
.c-error {
  padding: 64px 0;
  text-align: center;
  color: var(--stone);
  font-family: var(--serif);
  font-size: 20px;
  font-style: italic;
}

.c-error code {
  font-family: var(--mono);
  font-size: 13px;
  font-style: normal;
  background: var(--paper-2);
  padding: 2px 8px;
  border-radius: 4px;
}

/* --- product detail page ---------------------------------- */

.crumb {
  padding-block: 20px;
  border-bottom: 1px solid var(--hair);
  background: var(--paper);
}

.crumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: var(--stone);
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.crumb a {
  color: var(--stone);
  transition: color 0.2s var(--ease);
}

.crumb a:hover {
  color: var(--ink);
}

.crumb [aria-current="page"] {
  color: var(--ink);
}

.p-hero {
  padding-block: clamp(64px, 9vw, 128px);
  border-bottom: 1px solid var(--hair);
}

.p-hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}

.p-hero__title {
  font-size: clamp(64px, 9vw, 128px);
  line-height: 0.95;
  margin: 12px 0 16px;
}

.p-hero__sub {
  color: var(--stone);
  text-transform: none;
  letter-spacing: 0;
  font-size: 13px;
  margin-bottom: 28px;
}

.p-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 40px 0 0;
  padding: 20px 0;
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
}

.p-stats dt {
  color: var(--stone);
  margin-bottom: 4px;
}

.p-stats dd {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(22px, 2vw, 28px);
  letter-spacing: -0.01em;
}

.p-hero__ctas {
  margin-top: 32px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.p-trust {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: var(--stone);
}

.p-trust li {
  display: flex;
  align-items: center;
}

.p-hero__visual {
  position: sticky;
  top: 88px;
}

.p-vial {
  margin: 0;
  background: var(--paper-2);
  border: 1px solid var(--hair);
  border-radius: 4px;
  padding: 18px;
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 0 rgba(15, 18, 16, 0.02),
    0 24px 50px -28px rgba(15, 18, 16, 0.2);
}

.p-vial svg {
  width: 100%;
  height: 100%;
}

@media (max-width: 900px) {
  .p-hero__grid {
    grid-template-columns: 1fr;
  }
  .p-hero__visual {
    position: static;
    max-width: 380px;
  }
  .p-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

.p-jump {
  position: sticky;
  top: 68px;
  z-index: 40;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--hair);
}

.p-jump__row {
  display: flex;
  gap: 32px;
  padding-block: 14px;
  font-size: 13px;
  overflow-x: auto;
  scrollbar-width: none;
}

.p-jump__row::-webkit-scrollbar {
  display: none;
}

.p-jump__row a {
  position: relative;
  color: var(--stone);
  padding: 4px 0;
  white-space: nowrap;
  transition: color 0.2s var(--ease);
}

.p-jump__row a:hover {
  color: var(--ink);
}

.p-section {
  scroll-margin-top: 140px;
}

.p-section--paper {
  background: var(--paper-2);
}

.p-two {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}

.p-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 64ch;
}

.p-body p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-2);
}

.p-bullets {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 12px;
  border-top: 1px solid var(--hair);
}

.p-bullets li {
  padding: 14px 0;
  border-bottom: 1px solid var(--hair);
  font-size: 14px;
  color: var(--ink-2);
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 8px;
}

.p-bullets .mono {
  color: var(--stone);
  font-size: 10px;
  padding-top: 1px;
}

@media (max-width: 800px) {
  .p-two {
    grid-template-columns: 1fr;
  }
}

.p-handling {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
}

.p-handling__card {
  background: var(--paper);
  border: 1px solid var(--hair);
  border-radius: 4px;
  padding: 28px;
}

.p-handling__title {
  color: var(--stone);
  margin-bottom: 18px;
}

.p-handling__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-bottom: 14px;
}

.p-handling__table th,
.p-handling__table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--hair);
}

.p-handling__table th {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--stone);
  font-weight: 500;
}

.p-handling__table tr:last-child td {
  border-bottom: none;
}

.p-handling__note {
  color: var(--stone);
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.5;
}

.p-handling__dl {
  margin: 0;
}

.p-handling__dl > div {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--hair);
  align-items: baseline;
}

.p-handling__dl > div:last-child {
  border-bottom: none;
}

.p-handling__dl dt {
  color: var(--stone);
  font-size: 13px;
}

.p-handling__dl dd {
  margin: 0;
  font-size: 14px;
}

@media (max-width: 800px) {
  .p-handling {
    grid-template-columns: 1fr;
  }
}

.p-research {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--hair);
  border-left: 1px solid var(--hair);
  margin-bottom: 24px;
}

.p-area {
  padding: 28px;
  border-right: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--paper);
}

.p-area__tag {
  color: var(--accent);
}

.p-area h3 {
  font-family: var(--serif);
  font-size: 26px;
  letter-spacing: -0.01em;
}

.p-area p {
  color: var(--stone);
  font-size: 14px;
}

.p-area__keys {
  margin-top: auto;
  color: var(--stone-2);
  text-transform: none;
  letter-spacing: 0;
  font-size: 11px;
}

.p-research__fine {
  color: var(--stone);
  font-size: 11px;
}

@media (max-width: 800px) {
  .p-research {
    grid-template-columns: 1fr;
  }
}

.p-spec__table {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
  border: 1px solid var(--hair);
  border-radius: 4px;
  overflow: hidden;
}

.p-spec__table th,
.p-spec__table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--hair);
  font-size: 14px;
  text-align: left;
  vertical-align: top;
}

.p-spec__table th {
  width: 34%;
  color: var(--stone);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  background: var(--paper-2);
  border-right: 1px solid var(--hair);
}

.p-spec__table tr:last-child td,
.p-spec__table tr:last-child th {
  border-bottom: none;
}

.p-coa {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.p-coa__ctas {
  margin-top: 32px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.p-coa__thumb {
  margin: 0;
  color: var(--ink);
  transform: rotate(-1.5deg);
  transition: transform 0.3s var(--ease);
  width: 100%;
  max-width: 360px;
  justify-self: center;
}

.p-coa__thumb svg {
  width: 100%;
  height: auto;
}

.p-coa__thumb:hover {
  transform: rotate(0deg) scale(1.02);
}

.p-coa__thumb svg {
  filter: drop-shadow(0 20px 30px rgba(15, 18, 16, 0.12));
}

@media (max-width: 800px) {
  .p-coa {
    grid-template-columns: 1fr;
  }
}

.p-related__grid {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 900px) {
  .p-related__grid {
    grid-template-columns: 1fr;
  }
}

/* --- coa (certificate of analysis) ------------------------ */

.coa {
  padding-block: var(--section-y);
  background: var(--paper-2);
  border-bottom: 1px solid var(--hair);
  position: relative;
}

.coa__intro {
  margin-bottom: clamp(40px, 5vw, 72px);
  max-width: 760px;
}

.coa__doc {
  background: var(--paper);
  border: 1px solid var(--hair-strong);
  border-radius: 4px;
  box-shadow:
    0 1px 0 rgba(15, 18, 16, 0.04),
    0 30px 70px -40px rgba(15, 18, 16, 0.35);
  overflow: hidden;
  position: relative;
  max-width: 1180px;
  margin-inline: auto;
}

.coa__doc::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid var(--hair);
  pointer-events: none;
  border-radius: 2px;
}

.coa__head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  padding: 32px 36px 24px;
  border-bottom: 1px solid var(--hair);
  align-items: start;
}

.coa__brand {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.coa__logo {
  width: 32px;
  height: 32px;
  margin-top: 4px;
}

.coa__kicker {
  color: var(--stone);
  margin-bottom: 4px;
}

.coa__head h3 {
  font-family: var(--serif);
  font-size: clamp(26px, 2.4vw, 32px);
  letter-spacing: -0.01em;
}

.coa__ref {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 28px;
  margin: 0;
  text-align: right;
}

.coa__ref dt {
  color: var(--stone);
  margin-bottom: 4px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.coa__ref dd {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  font-family: var(--mono);
}

.coa__body {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 0;
}

.coa__panel {
  padding: 28px 36px;
  border-bottom: 1px solid var(--hair);
}

.coa__panel--meta {
  border-right: 1px solid var(--hair);
}

.coa__panel--struct {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.coa__panel--trace {
  grid-column: 1 / -1;
  border-right: none;
}

.coa__panel--table {
  grid-column: 1 / -1;
  border-bottom: none;
}

.coa__panel-title {
  color: var(--stone);
  margin-bottom: 18px;
  display: block;
}

.coa__dl {
  margin: 0;
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 12px 20px;
}

.coa__dl dt {
  color: var(--stone);
  font-size: 13px;
  padding-top: 1px;
}

.coa__dl dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}

.coa__dl dd.mono,
.coa__dl .mono {
  font-size: 12px;
  letter-spacing: 0.02em;
}

.coa__struct {
  color: var(--ink);
  background: var(--paper-2);
  border: 1px solid var(--hair);
  border-radius: 3px;
  padding: 12px;
}

.coa__trace-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.coa__trace-meta {
  color: var(--stone);
}

.coa__trace {
  width: 100%;
  color: var(--ink);
  background: var(--paper-2);
  border: 1px solid var(--hair);
  border-radius: 3px;
  padding: 10px;
}

.coa__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.coa__table th,
.coa__table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--hair);
}

.coa__table th {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--stone);
  font-weight: 500;
  background: var(--paper-2);
  border-top: 1px solid var(--hair);
}

.coa__table tr:last-child td {
  border-bottom: none;
}

.coa__table tr:hover td {
  background: rgba(46, 93, 74, 0.035);
}

.coa__table strong {
  color: var(--accent);
  font-weight: 600;
}

.coa__pass {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(46, 93, 74, 0.08);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.coa__foot {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 32px;
  align-items: center;
  padding: 28px 36px;
  border-top: 1px solid var(--hair);
  background: var(--paper-2);
}

.coa__release {
  color: var(--stone);
  margin-bottom: 4px;
}

.coa__sig {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  letter-spacing: -0.01em;
  margin: 4px 0;
}

.coa__stamp {
  width: 96px;
  height: 96px;
  color: var(--accent);
  opacity: 0.85;
  transform: rotate(-8deg);
  justify-self: center;
}

.coa__actions {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-self: end;
}

@media (max-width: 900px) {
  .coa__head {
    grid-template-columns: 1fr;
  }
  .coa__ref {
    text-align: left;
  }
  .coa__body {
    grid-template-columns: 1fr;
  }
  .coa__panel--meta {
    border-right: none;
  }
  .coa__foot {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .coa__stamp {
    justify-self: center;
  }
  .coa__actions {
    justify-self: center;
  }
}

@media (max-width: 600px) {
  .coa__head,
  .coa__panel,
  .coa__foot {
    padding: 20px 22px;
  }
  .coa__ref {
    grid-template-columns: 1fr 1fr;
    gap: 14px 20px;
  }
  .coa__dl {
    grid-template-columns: 1fr;
    gap: 4px 0;
  }
  .coa__dl > div {
    margin-bottom: 10px;
  }
  .coa__table {
    font-size: 13px;
  }
  .coa__table th,
  .coa__table td {
    padding: 10px 8px;
  }
}

/* --- mobile menu ------------------------------------------ */

.nav__toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--hair-strong);
  border-radius: 999px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}

.nav__toggle span {
  width: 14px;
  height: 1px;
  background: var(--ink);
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}

.nav__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(2.5px) rotate(45deg);
}

.nav__toggle[aria-expanded="true"] span:nth-child(2) {
  transform: translateY(-2.5px) rotate(-45deg);
}

.mobile-menu {
  border-top: 1px solid var(--hair);
  background: var(--paper);
}

.mobile-menu ul {
  padding: 8px var(--pad-x) 20px;
}

.mobile-menu li {
  border-bottom: 1px solid var(--hair);
}

.mobile-menu li:last-child {
  border-bottom: none;
}

.mobile-menu a {
  display: block;
  padding: 16px 0;
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: -0.01em;
}

body.is-menu-open {
  overflow: hidden;
}

@media (max-width: 880px) {
  .nav__toggle {
    display: inline-flex;
  }
}

/* --- partners --------------------------------------------- */

.partners {
  padding-block: clamp(48px, 7vw, 88px);
  border-bottom: 1px solid var(--hair);
  background: var(--paper);
}

.partners .eyebrow {
  margin-bottom: 32px;
}

.partners__row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--hair);
  border: 1px solid var(--hair);
}

.partners__row li {
  background: var(--paper);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  transition: background 0.25s var(--ease);
}

.partners__row li:hover {
  background: var(--paper-2);
}

.partners__mark {
  font-family: var(--serif);
  font-size: clamp(20px, 1.8vw, 26px);
  letter-spacing: -0.01em;
  color: var(--ink);
}

.partners__mark i {
  font-style: italic;
  color: var(--accent);
}

.partners__meta {
  color: var(--stone);
}

@media (max-width: 900px) {
  .partners__row {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 560px) {
  .partners__row {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- founder letter --------------------------------------- */

.letter {
  padding-block: var(--section-y);
  background: var(--paper-2);
  position: relative;
  border-bottom: 1px solid var(--hair);
}

.letter__grid {
  display: grid;
  grid-template-columns: minmax(200px, 260px) 1fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
  padding-inline: var(--pad-x);
  width: 100%;
}

.letter__aside .eyebrow {
  margin-bottom: 24px;
}

.letter__portrait {
  margin: 0;
  border: 1px solid var(--hair);
  background: var(--paper);
  padding: 10px;
  border-radius: 2px;
  box-shadow: 0 20px 40px -28px rgba(15, 18, 16, 0.25);
}

.letter__portrait figcaption {
  margin-top: 10px;
  color: var(--stone);
  text-align: center;
}

.letter__quote {
  margin: 0;
  max-width: 820px;
  position: relative;
}

.quote-mark {
  font-family: var(--serif);
  font-size: 120px;
  line-height: 0.7;
  color: var(--accent);
  opacity: 0.45;
  margin-bottom: 8px;
  font-style: italic;
}

.letter__quote h2 {
  font-weight: 300;
  letter-spacing: -0.015em;
  line-height: 1.12;
  font-size: clamp(28px, 3.2vw, 44px);
}

.letter__sig {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--hair-strong);
  display: flex;
  align-items: baseline;
  gap: 18px;
  flex-wrap: wrap;
}

.letter__name {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  letter-spacing: -0.01em;
}

.letter__title {
  color: var(--stone);
}

@media (max-width: 800px) {
  .letter__grid {
    grid-template-columns: 1fr;
  }
  .letter__portrait {
    max-width: 200px;
  }
}

/* --- coverage --------------------------------------------- */

.coverage__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}

.coverage__stats {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--hair);
  max-width: 480px;
}

.coverage__stats dt {
  color: var(--stone);
  margin-bottom: 8px;
}

.coverage__stats dd {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(24px, 2.6vw, 32px);
  letter-spacing: -0.01em;
}

.coverage__map {
  margin: 0;
  border: 1px solid var(--hair);
  background: var(--paper);
  padding: 24px 20px 16px;
  border-radius: 4px;
  color: var(--stone);
  position: relative;
}

.coverage__map figcaption {
  margin-top: 12px;
  text-align: right;
  color: var(--stone-2);
}

.coverage__nodes circle {
  transform-origin: center;
}

@media (prefers-reduced-motion: no-preference) {
  .coverage__nodes g > circle:nth-child(1) {
    animation: pulse 3s var(--ease) infinite;
  }
  .coverage__nodes g > circle:nth-child(2) {
    animation: pulse 3s var(--ease) infinite 1.2s;
  }
}

@keyframes pulse {
  0% {
    opacity: 0.55;
    r: 8;
  }
  70% {
    opacity: 0;
    r: 22;
  }
  100% {
    opacity: 0;
    r: 22;
  }
}

@media (max-width: 900px) {
  .coverage__grid {
    grid-template-columns: 1fr;
  }
}

/* --- reveal animations ------------------------------------ */

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

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

/* --- form notification banners + price-on-request pill ---- */

.alvar-form-note {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  margin: 0 0 16px;
  font-size: 11px;
  letter-spacing: 0.06em;
}

.alvar-form-note--ok {
  background: rgba(46, 93, 74, 0.08);
  color: var(--accent);
  border: 1px solid rgba(46, 93, 74, 0.2);
}

.alvar-form-note--err {
  background: rgba(184, 133, 58, 0.1);
  color: #b8853a;
  border: 1px solid rgba(184, 133, 58, 0.25);
}

.alvar-price-request {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--stone);
  background: var(--paper-2);
  padding: 4px 10px;
  border-radius: 999px;
  display: inline-block;
}

/* --- request-access page ---------------------------------- */

.ra__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
  padding-top: clamp(32px, 5vw, 72px);
}

.ra__aside .display {
  margin: 16px 0 28px;
}

.ra__promises {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--stone);
  font-size: 14px;
}

.ra__form-wrap {
  background: var(--paper);
  border: 1px solid var(--hair);
  border-radius: 4px;
  padding: clamp(24px, 4vw, 48px);
  box-shadow: 0 1px 0 rgba(15, 18, 16, 0.04),
    0 24px 48px -32px rgba(15, 18, 16, 0.2);
}

.ra__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ra__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ra__field label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--stone);
}

.ra__field input,
.ra__field select,
.ra__field textarea {
  padding: 12px 14px;
  border: 1px solid var(--hair-strong);
  border-radius: 4px;
  background: var(--paper);
  font: inherit;
  color: var(--ink);
  transition: border-color 0.2s var(--ease);
}

.ra__field input:focus,
.ra__field select:focus,
.ra__field textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.ra__field textarea {
  resize: vertical;
  min-height: 96px;
  font-family: var(--sans);
}

.ra__submit {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.ra__fine {
  color: var(--stone);
  max-width: 48ch;
}

.ra__done {
  text-align: left;
}

@media (max-width: 900px) {
  .ra__grid { grid-template-columns: 1fr; }
}

/* --- WooCommerce cart / checkout / account polish --------- */

.woocommerce-page .woocommerce,
.woocommerce {
  max-width: 1100px;
  margin: 0 auto;
  padding-block: 48px;
}

.woocommerce .cart-empty,
.woocommerce-info,
.woocommerce-message {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: -0.01em;
  background: var(--paper-2);
  border: 1px solid var(--hair);
  border-left: 3px solid var(--accent);
  padding: 18px 22px;
  color: var(--ink);
  margin-bottom: 24px;
  border-radius: 2px;
}

.woocommerce .button,
.woocommerce button.button,
.woocommerce a.button,
.woocommerce input.button {
  background: var(--ink) !important;
  color: var(--paper) !important;
  border-radius: 999px !important;
  padding: 12px 20px !important;
  font-family: var(--sans) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  border: 1px solid transparent !important;
  box-shadow: none !important;
}

.woocommerce .button:hover {
  background: var(--accent) !important;
}

.woocommerce table.shop_table {
  border: 1px solid var(--hair);
  border-radius: 4px;
  overflow: hidden;
  font-size: 14px;
}

.woocommerce table.shop_table th {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--stone);
  background: var(--paper-2);
  padding: 14px 16px;
}

.woocommerce table.shop_table td {
  padding: 14px 16px;
  border-top: 1px solid var(--hair);
}

.woocommerce form .form-row label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--stone);
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
  padding: 12px 14px;
  border: 1px solid var(--hair-strong);
  border-radius: 4px;
  background: var(--paper);
  font-family: var(--sans);
}

.woocommerce-store-notice,
.demo_store {
  background: var(--ink) !important;
  color: var(--paper) !important;
  font-family: var(--mono) !important;
  font-size: 12px !important;
}

.woocommerce ul.products li.product .price,
.woocommerce div.product .price,
.woocommerce-page ul.products li.product .price {
  color: var(--accent);
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
}

/* --- mini cart in nav ------------------------------------- */

.alvar-cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--hair-strong);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.alvar-cart:hover {
  border-color: var(--ink);
  background: var(--paper-2);
}

.alvar-cart.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.alvar-cart.is-active:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.alvar-cart__count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  line-height: 18px;
  text-align: center;
  letter-spacing: 0;
  text-transform: none;
  box-shadow: 0 0 0 2px var(--paper);
}

/* Hide the count when cart is empty */
.alvar-cart:not(.is-active) .alvar-cart__count {
  display: none;
}

/* --- mobile above-the-fold tightening (v0.20.1) ----------- */

/* Hide the "NOTICE 01" tag on narrow screens — it eats ~80px
   of width and forces the compliance text to wrap to 3 lines. */
@media (max-width: 640px) {
  .announce__tag { display: none; }
  .announce__row {
    grid-template-columns: 1fr;
    gap: 0;
    padding-block: 8px;
  }
  .announce p { font-size: 12px; line-height: 1.45; }
}

/* On narrow screens the nav right-cluster is
   [Browse catalog] [cart] [hamburger] — three controls + logo
   wrap onto two rows. Hide the pill; catalog is reachable from
   both the hamburger menu and the cart icon's click target. */
@media (max-width: 720px) {
  .nav__cta > .btn--primary { display: none; }
}

/* Hero breathes too much on mobile — eyebrow is gone already,
   headline was pushed ~400px down because of chrome. */
@media (max-width: 640px) {
  .hero { padding-top: clamp(24px, 5vw, 48px); }
  .hero__ctas { margin-top: 24px; }
  .hero__stats { margin-top: 36px; }
}

/* Bug: on mobile the <nav aria-label="Primary"> wrapper remains a grid item
   even with .nav__list { display:none }, which pushes .nav__cta onto a 2nd row. */
@media (max-width: 880px) {
  .nav__row > nav { display: none; }
}
