/* ==========================================================================
   SHINA — Brand site stylesheet
   Design tokens derived from the SHINA brand system.
   ========================================================================== */

:root {
  /* Color — locked to the established SHINA brand palette */
  --sand: #E7DDC9;
  --paper: #F1EBDE;      /* lighter tint of sand, for card surfaces */
  --ink: #16150F;
  --loam: #2B2A22;
  --loam-2: #363429;     /* slightly lifted loam, for surfaces on dark */
  --murram: #A8562F;     /* accent — used sparingly, never as a large fill */
  --murram-deep: #7E3F22;
  --brass: #9A7B3F;      /* rule / label accent only — physical/light surfaces */
  --brass-on-dark: #C4A05F; /* lightened for AA contrast when set on Loam */
  --line: rgba(22, 21, 15, 0.14);
  --line-soft: rgba(22, 21, 15, 0.08);
  --line-dark: rgba(231, 221, 201, 0.18);

  /* Type */
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, monospace;

  /* Rhythm */
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --measure: 62ch;
  --radius: 3px;
  --speed: 240ms;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure { margin: 0; }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }
input { font: inherit; }
:focus-visible {
  outline: 2px solid var(--murram);
  outline-offset: 3px;
}

.wrap {
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Type scale ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--murram-deep);
}
.eyebrow--dark { color: var(--brass-on-dark); }

h1, .h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.4rem, 5.4vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
}
h2, .h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
}
h3, .h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.6;
  max-width: var(--measure);
  color: var(--ink);
}
.lede--muted { color: rgba(22,21,15,0.72); }
p.body { max-width: var(--measure); color: rgba(22,21,15,0.8); }

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

/* ---------- Buttons / links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.95em 1.5em;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  transition: background var(--speed) var(--ease), color var(--speed) var(--ease), border-color var(--speed) var(--ease);
  white-space: nowrap;
}
.btn:hover { background: var(--ink); color: var(--sand); }
.btn--primary { background: var(--ink); color: var(--sand); }
.btn--primary:hover { background: var(--murram-deep); border-color: var(--murram-deep); color: #fff; }
.btn--ghost { border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--on-dark { border-color: var(--line-dark); color: var(--sand); }
.btn--on-dark:hover { background: var(--sand); color: var(--loam); }

.text-link {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.15em;
  transition: border-color var(--speed) var(--ease), color var(--speed) var(--ease);
}
.text-link:hover { border-color: var(--murram); color: var(--murram-deep); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(231, 221, 201, 0.94);
  backdrop-filter: blur(10px) saturate(1.1);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
  border-bottom: 1px solid transparent;
  transition: border-color var(--speed) var(--ease), background var(--speed) var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.3rem;
  gap: 1.5rem;
}
.brand-mark {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.brand-mark img { height: 38px; width: auto; }
.brand-mark__type {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: rgba(22,21,15,0.64);
  padding-left: 0.75rem;
  border-left: 1px solid var(--line);
  white-space: nowrap;
}
@media (max-width: 640px) {
  .brand-mark img { height: 32px; }
  .brand-mark__type { display: none; }
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2.1rem;
}
.main-nav a {
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 3px;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 1px;
  background: var(--murram);
  transition: right var(--speed) var(--ease);
}
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { right: 0; }
.main-nav a[aria-current="page"] { color: var(--murram-deep); }

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 44px;
  min-height: 44px;
  margin-right: -10px; /* keep the icon visually aligned while the tap target grows */
}
.nav-toggle span { width: 20px; height: 1px; background: var(--ink); display: block; }

@media (max-width: 860px) {
  .main-nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    /* height (not inset/bottom) so the panel still spans the full viewport
       even though .site-header's backdrop-filter creates a new fixed-position
       containing block for this element, rooted at the header's own box */
    height: calc(100vh - 64px);
    height: calc(100dvh - 64px);
    background: var(--sand);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 2rem var(--gutter);
    gap: 1.4rem;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--speed) var(--ease), transform var(--speed) var(--ease);
  }
  .main-nav a { font-size: 0.95rem; }
  .main-nav.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-toggle { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  padding-block: clamp(3rem, 8vw, 6.5rem) clamp(3rem, 7vw, 5rem);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.85fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero__copy .eyebrow { margin-bottom: 1.1rem; display: block; }
.hero__copy h1 { margin-bottom: 1.3rem; }
.hero__copy .lede { margin-bottom: 2rem; }
.hero__actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }

.hero__figure {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__figure img {
  max-height: 420px;
  width: auto;
  margin-inline: auto;
}
.hero__tag {
  position: absolute;
  left: 1.1rem;
  bottom: 1.1rem;
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.55rem 0.8rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  line-height: 1.5;
  color: rgba(22,21,15,0.75);
}
.hero__tag strong { color: var(--ink); display: block; font-size: 0.72rem; letter-spacing: 0.08em;}

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  /* Message before image on small screens: the headline, copy and CTAs lead,
     so the value proposition lands inside the first viewport instead of
     being pushed below a full-height product photo. */
}

/* ---------- Section scaffolding ---------- */
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  flex-wrap: wrap;
}
.section-head .eyebrow { display: block; margin-bottom: 0.7rem; }
.on-dark { background: var(--loam); color: var(--sand); }
.on-dark .lede--muted { color: rgba(231,221,201,0.72); }
.on-dark .rule { border-top-color: var(--line-dark); }

/* ---------- Dual essence band ---------- */
.essence__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.essence__col {
  background: var(--paper);
  padding: clamp(1.75rem, 4vw, 2.75rem);
}
.essence__col h3 { font-family: var(--serif); font-size: 1.5rem; font-weight: 500; margin-bottom: 0.75rem; }
.essence__col .tag {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--murram-deep);
  display: block;
  margin-bottom: 1rem;
}
.essence__col p { color: rgba(22,21,15,0.75); max-width: 42ch; }
@media (max-width: 700px) { .essence__grid { grid-template-columns: 1fr; } }

/* ---------- The Ledger (signature interactive module) ---------- */
.ledger { position: relative; }
.ledger__intro { max-width: 46ch; margin-bottom: 2.25rem; }
.ledger__body {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
  min-height: 300px;
}
.ledger__list { border-right: 1px solid var(--line); }
.ledger__item {
  width: 100%;
  text-align: left;
  padding: 0.95rem 1.25rem;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: rgba(22,21,15,0.62);
  transition: background var(--speed) var(--ease), color var(--speed) var(--ease);
  position: relative;
}
.ledger__item:last-child { border-bottom: none; }
.ledger__item::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--murram);
  transform: scaleY(0);
  transition: transform var(--speed) var(--ease);
}
.ledger__item:hover { background: rgba(168,86,47,0.06); color: var(--ink); }
.ledger__item.is-active { color: var(--ink); background: rgba(168,86,47,0.09); }
.ledger__item.is-active::before { transform: scaleY(1); }

.ledger__panel { padding: clamp(1.5rem, 3vw, 2.5rem); display: flex; flex-direction: column; justify-content: center; color: var(--ink); }
.ledger__panel-name { font-family: var(--serif); font-weight: 600; font-size: 1.7rem; margin-bottom: 0.2rem; color: var(--ink); }
.ledger__panel-latin { font-style: italic; color: rgba(22,21,15,0.62); margin-bottom: 1.25rem; display: block; }
.ledger__record {
  font-family: var(--mono);
  font-size: 0.85rem;
  line-height: 1.6;
  color: rgba(22,21,15,0.85);
  border-top: 1px dashed var(--line);
  padding-top: 1rem;
}
.ledger__record span {
  display: grid;
  grid-template-columns: 8.5em 1fr;
  column-gap: 1rem;
  margin-bottom: 0.65rem;
}
.ledger__record span:last-child { margin-bottom: 0; }
.ledger__record .k { color: rgba(22,21,15,0.62); letter-spacing: 0.03em; }

@media (max-width: 720px) {
  .ledger__body { grid-template-columns: 1fr; min-height: 0; }
  .ledger__list { border-right: none; border-bottom: 1px solid var(--line); display: flex; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .ledger__item { border-bottom: none; white-space: nowrap; flex: none; }
  .ledger__item::before { width: 100%; height: 2px; top: auto; bottom: 0; left: 0; transform: scaleX(0); }
  .ledger__item.is-active::before { transform: scaleX(1); }
}

/* ---------- Product grid (home featured + full range) ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1px, 0.2vw, 1px);
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--paper);
  padding: 1.75rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
}
.card__figure {
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  background: var(--sand);
  border-radius: var(--radius);
  overflow: hidden;
}
.card__figure picture { display: contents; }
.card__figure img { height: 92%; width: auto; object-fit: contain; }
.card h3 { margin-bottom: 0.15rem; }
.card .latin { font-style: italic; font-size: 0.85rem; color: rgba(22,21,15,0.62); display: block; margin-bottom: 0.7rem; overflow-wrap: break-word; }
.card p { font-size: 0.9rem; color: rgba(22,21,15,0.72); flex: 1; margin-bottom: 1rem; }
.card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line-soft);
}
.card__origin-toggle {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--murram-deep);
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
}
.card__origin-toggle::after { content: "+"; font-size: 1em; }
.card__origin-toggle[aria-expanded="true"]::after { content: "–"; }
.card__record {
  font-family: var(--mono);
  font-size: 0.76rem;
  line-height: 1.6;
  color: rgba(22,21,15,0.75);
  padding-top: 0.9rem;
  margin-top: 0.9rem;
  border-top: 1px dashed var(--line);
  display: none;
}
.card__record.is-open { display: block; }
.card__record span {
  display: grid;
  grid-template-columns: 7.4em 1fr;
  column-gap: 0.85rem;
  margin-bottom: 0.55rem;
}
.card__record span:last-child { margin-bottom: 0; }
.card__record .k { color: rgba(22,21,15,0.62); letter-spacing: 0.03em; }

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

/* ---------- What we won't say (dark band) ---------- */
.refuse__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}
.refuse__item {
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line-dark);
  display: flex;
  gap: 1.1rem;
  align-items: baseline;
}
.refuse__item:nth-child(odd) { padding-right: 2rem; }
.refuse__no {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--brass-on-dark);
  letter-spacing: 0.06em;
  flex-shrink: 0;
}
.refuse__item p { color: rgba(231,221,201,0.82); font-size: 0.98rem; max-width: 40ch; }
.refuse__item strong { color: var(--sand); }
@media (max-width: 700px) {
  .refuse__list { grid-template-columns: 1fr; }
  .refuse__item:nth-child(odd) { padding-right: 0; }
}

/* ---------- Values (about page) ---------- */
.values__list { display: flex; flex-direction: column; }
.value {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
  padding-block: 2rem;
  border-bottom: 1px solid var(--line);
}
.value:first-child { border-top: 1px solid var(--line); }
.value h3 { font-family: var(--serif); font-weight: 500; font-size: 1.4rem; }
.value p { color: rgba(22,21,15,0.75); max-width: 52ch; }
.value .behavior {
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--murram-deep);
  margin-top: 0.6rem;
  display: block;
}
@media (max-width: 700px) {
  .value { grid-template-columns: 1fr; gap: 0.6rem; }
}

/* ---------- Order band ---------- */
.order-band {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(2rem, 5vw, 3.5rem);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.order-band__channels { display: flex; flex-direction: column; gap: 0.9rem; }
.channel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--sand);
  transition: border-color var(--speed) var(--ease), background var(--speed) var(--ease);
}
.channel:hover { border-color: var(--murram); background: #fff; }
.channel__label { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(22,21,15,0.64); }
.channel__value { font-size: 0.98rem; font-weight: 600; }
@media (max-width: 780px) { .order-band { grid-template-columns: 1fr; } }

/* ---------- Journal / About narrative ---------- */
.narrative { display: grid; grid-template-columns: 200px 1fr; gap: 2.5rem; }
.narrative__label { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(22,21,15,0.64); padding-top: 0.3rem; }
.narrative__body p { max-width: var(--measure); color: rgba(22,21,15,0.82); margin-bottom: 1.2rem; }
.narrative__body p:last-child { margin-bottom: 0; }
@media (max-width: 700px) { .narrative { grid-template-columns: 1fr; gap: 0.75rem; } }

.pull {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 500;
  line-height: 1.35;
  max-width: 22ch;
  color: var(--ink);
}

/* ---------- Formulations teaser ---------- */
.teaser-list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: var(--radius); overflow: hidden; }
.teaser-item { background: var(--loam-2); padding: 1.5rem 1.25rem; }
.teaser-item .eyebrow { margin-bottom: 0.6rem; display: block; }
.teaser-item h4 { font-family: var(--serif); font-size: 1.05rem; font-weight: 500; color: var(--sand); }
@media (max-width: 980px) { .teaser-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .teaser-list { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--loam); color: var(--sand); padding-block: 3.5rem 2rem; }
.footer__top {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 0.8fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line-dark);
}
.footer__brand img { height: 24px; margin-bottom: 1rem; }
.footer__brand p { color: rgba(231,221,201,0.65); max-width: 34ch; font-size: 0.92rem; }
.footer__heading { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brass-on-dark); margin-bottom: 1rem; }
.footer__col a, .footer__col span { display: block; color: rgba(231,221,201,0.82); font-size: 0.92rem; margin-bottom: 0.65rem; overflow-wrap: break-word; }
.footer__col a:hover { color: var(--sand); text-decoration: underline; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 1.5rem; gap: 1rem; flex-wrap: wrap; }
.footer__bottom p { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.04em; color: rgba(231,221,201,0.58); }
@media (max-width: 900px) { .footer__top { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .footer__top { grid-template-columns: 1fr; gap: 2rem; } }

/* ---------- Reveal-on-scroll ----------
   Gated behind .js-reveal (added by main.js on load) so that if JS never
   runs — disabled, blocked, or a failed script load — [data-reveal]
   elements simply render normally instead of staying invisible forever. */
.js-reveal [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.js-reveal [data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Products page specific ---------- */
.page-hero { padding-block: clamp(2.75rem, 6vw, 4.5rem) clamp(2rem, 4vw, 3rem); }
.page-hero .lede { margin-top: 1.1rem; }

.filter-note {
  font-family: var(--mono);
  font-size: 0.76rem;
  color: rgba(22,21,15,0.64);
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}

/* ---------- Honesty note (inline disclosure callout) ---------- */
.note {
  border-left: 2px solid var(--murram);
  background: var(--paper);
  padding: 1.1rem 1.4rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.92rem;
  color: rgba(22,21,15,0.8);
  max-width: 58ch;
}
.note strong { color: var(--ink); }
.on-dark .note { background: var(--loam-2); border-left-color: var(--brass-on-dark); color: rgba(231,221,201,0.85); }
.on-dark .note strong { color: var(--sand); }

/* ---------- Links / social page ---------- */
.links-top {
  padding-block: clamp(1.75rem, 5vw, 2.5rem) 0.25rem;
  text-align: center;
}
.links-top .brand-mark { display: inline-flex; }
.links-top .brand-mark img { height: 34px; width: auto; }

.links-hero {
  max-width: 600px;
  text-align: center;
  padding-block: 1.5rem clamp(2rem, 5vw, 3rem);
}
.links-hero .eyebrow { display: block; margin-bottom: 0.9rem; }
.links-hero h1 { font-size: clamp(2rem, 6vw, 2.75rem); margin-bottom: 1rem; }
.links-hero .lede { margin-inline: auto; }

.links-list {
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding-bottom: clamp(1.5rem, 4vw, 2rem);
}

.link-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.05rem 1.3rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color var(--speed) var(--ease), background var(--speed) var(--ease), transform var(--speed) var(--ease);
}
.link-card:hover, .link-card:focus-visible { border-color: var(--murram); background: #fff; transform: translateY(-1px); }
.link-card:active { transform: translateY(0); }

.link-card__icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sand);
  border-radius: 50%;
  color: var(--ink);
}
.link-card__icon svg { width: 21px; height: 21px; }

.link-card__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.2rem; }
.link-card__name { font-family: var(--serif); font-weight: 500; font-size: 1.15rem; color: var(--ink); }
.link-card__desc { font-size: 0.84rem; color: rgba(22,21,15,0.62); }

.link-card__cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--murram-deep);
  white-space: nowrap;
}
.link-card__cta svg { width: 13px; height: 13px; transition: transform var(--speed) var(--ease); }
.link-card:hover .link-card__cta svg, .link-card:focus-visible .link-card__cta svg { transform: translateX(3px); }

.links-secondary {
  max-width: 600px;
  display: flex;
  justify-content: center;
  gap: 1.75rem;
  flex-wrap: wrap;
  padding-bottom: clamp(3rem, 6vw, 4rem);
}

.links-footer { text-align: center; padding-block: 2rem; border-top: 1px solid var(--line); }
.links-footer p { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.04em; color: rgba(22,21,15,0.64); }

@media (max-width: 380px) {
  .link-card { padding: 0.9rem 1rem; gap: 0.7rem; }
  .link-card__icon { width: 40px; height: 40px; }
  .link-card__icon svg { width: 18px; height: 18px; }
  .link-card__cta span { display: none; }
}

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.stack { display: flex; flex-direction: column; gap: 1rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- Analytics consent banner ---------- */
.consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  background: var(--loam);
  color: var(--sand);
  border-top: 1px solid var(--line-dark);
  padding: 1.1rem var(--gutter);
}
.consent-banner__inner {
  max-width: 1240px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.consent-banner__inner p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.55;
  color: rgba(231,221,201,0.88);
  max-width: 62ch;
}
.consent-banner__inner .text-link { color: var(--brass-on-dark); }
.consent-banner__actions { display: flex; gap: 0.75rem; flex-shrink: 0; }
.consent-banner .btn { padding: 0.6rem 1.2rem; font-size: 0.82rem; }
.consent-banner .btn--ghost { border-color: var(--line-dark); color: var(--sand); }
.consent-banner .btn--ghost:hover { border-color: var(--sand); background: transparent; color: var(--sand); }
.consent-banner .btn--primary { background: var(--sand); color: var(--ink); }
.consent-banner .btn--primary:hover { background: var(--brass-on-dark); color: var(--ink); }

@media (max-width: 640px) {
  .consent-banner__inner { flex-direction: column; align-items: stretch; }
  .consent-banner__actions { justify-content: flex-end; }
}

/* ---------- Order builder: quantity stepper (shared control) ---------- */
.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}
.qty-stepper__btn {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 1rem;
  color: var(--ink);
  transition: background var(--speed) var(--ease);
}
.qty-stepper__btn:hover { background: var(--sand); }
.qty-stepper__value {
  min-width: 2.25rem;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}
.qty-stepper--sm .qty-stepper__btn { width: 2rem; height: 2rem; font-size: 0.9rem; }
.qty-stepper--sm .qty-stepper__value { min-width: 1.75rem; font-size: 0.8rem; }

/* ---------- Order builder: control on a product page ---------- */
.order-builder {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-top: 1.75rem;
}
.order-builder__add { min-width: 9.5rem; justify-content: center; }
.order-builder__note {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--murram-deep);
}

/* ---------- Grid card quick-add ---------- */
.card__add {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--murram-deep);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.45rem 0.7rem;
  transition: border-color var(--speed) var(--ease), background var(--speed) var(--ease), color var(--speed) var(--ease);
  white-space: nowrap;
}
.card__add:hover { border-color: var(--murram); background: #fff; }
.card__add.is-added { border-color: var(--murram); color: var(--ink); background: #fff; }

/* ---------- Floating cart pill ---------- */
.cart-pill {
  position: fixed;
  right: clamp(1rem, 3vw, 1.75rem);
  bottom: clamp(1rem, 3vw, 1.75rem);
  z-index: 55;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: var(--ink);
  color: var(--sand);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(22,21,15,0.28);
  transition: bottom var(--speed) var(--ease), background var(--speed) var(--ease), transform var(--speed) var(--ease);
}
.cart-pill:hover { background: var(--murram-deep); transform: translateY(-1px); }
.cart-pill svg { width: 22px; height: 22px; }
.cart-pill__count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 1.3rem;
  height: 1.3rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: var(--murram);
  color: #fff;
  font-family: var(--mono);
  font-size: 0.68rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--sand);
  font-variant-numeric: tabular-nums;
}
.cart-pill__count[hidden] { display: none; }
.cart-pill--lifted { bottom: clamp(5.5rem, 14vw, 6.5rem); }

/* ---------- Cart drawer ---------- */
.cart-drawer {
  position: fixed;
  right: clamp(1rem, 3vw, 1.75rem);
  bottom: clamp(4.75rem, 10vw, 5.5rem);
  z-index: 56;
  width: min(360px, calc(100vw - 2rem));
  max-height: min(520px, calc(100vh - 8rem));
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 44px rgba(22,21,15,0.22);
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  transition: opacity var(--speed) var(--ease), transform var(--speed) var(--ease), bottom var(--speed) var(--ease);
}
.cart-drawer.is-open { opacity: 1; transform: translateY(0) scale(1); }
.cart-drawer[hidden] { display: none; }
.cart-drawer--lifted { bottom: clamp(9.25rem, 22vw, 10.25rem); }
.cart-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--line);
}
.cart-drawer__title { font-family: var(--serif); font-size: 1.1rem; font-weight: 500; }
.cart-drawer__close { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; color: rgba(22,21,15,0.6); }
.cart-drawer__close:hover { color: var(--ink); }
.cart-drawer__close svg { width: 15px; height: 15px; }
.cart-drawer__empty { padding: 1.5rem 1.25rem; font-size: 0.88rem; color: rgba(22,21,15,0.68); max-width: none; }
.cart-drawer__items { overflow-y: auto; padding: 0.25rem 1.25rem; }
.cart-drawer__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.25rem 1.25rem;
  border-top: 1px solid var(--line);
}
.cart-drawer__foot .btn { font-size: 0.72rem; padding: 0.75em 1.1em; }
.cart-drawer__send { flex: 1; justify-content: center; text-align: center; }

.cart-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line-soft);
}
.cart-item:last-child { border-bottom: none; }
.cart-item__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.1rem; }
.cart-item__name { font-size: 0.9rem; font-weight: 600; }
.cart-item__format { font-family: var(--mono); font-size: 0.68rem; color: rgba(22,21,15,0.6); }
.cart-item__remove { width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; color: rgba(22,21,15,0.45); flex-shrink: 0; }
.cart-item__remove:hover { color: var(--murram); }
.cart-item__remove svg { width: 13px; height: 13px; }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  color: rgba(22,21,15,0.55);
}
.breadcrumb a { color: rgba(22,21,15,0.55); transition: color var(--speed) var(--ease); }
.breadcrumb a:hover { color: var(--murram-deep); }
.breadcrumb span[aria-hidden] { color: rgba(22,21,15,0.35); }
.breadcrumb .is-current { color: var(--ink); }

/* ---------- Product detail hero ---------- */
.product-hero { padding-block: clamp(1.5rem, 3vw, 2.25rem) clamp(2.5rem, 5vw, 4rem); }
.product-hero__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  margin-top: 1.75rem;
}
.product-hero__figure {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  aspect-ratio: 2 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: sticky;
  top: 6.5rem;
}
.product-hero__figure img { height: 88%; width: auto; object-fit: contain; }
.product-hero__latin { font-style: italic; color: rgba(22,21,15,0.62); display: block; margin: 0.6rem 0 1.1rem; }
.product-hero__lede { margin-bottom: 1.5rem; }
.product-hero__spec {
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.6;
  color: rgba(22,21,15,0.82);
  border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
  padding-block: 1rem;
  margin-top: 1.75rem;
}
.product-hero__spec span {
  display: grid;
  grid-template-columns: 8em 1fr;
  column-gap: 1rem;
  margin-bottom: 0.5rem;
}
.product-hero__spec span:last-child { margin-bottom: 0; }
.product-hero__spec .k { color: rgba(22,21,15,0.6); letter-spacing: 0.03em; }

@media (max-width: 860px) {
  .product-hero__grid { grid-template-columns: 1fr; }
  .product-hero__figure { position: static; max-width: 320px; margin-inline: auto; }
}

/* ---------- Related products heading spacing reuse ---------- */
.related .section-head { margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }
