/* ============================================================
   TheStreetBrief — design system
   ============================================================ */

:root {
  /* Brand greens (sampled from @afinancebro logo) */
  --green:        #107030;
  --green-deep:   #0B3D2E;
  --green-darker: #06281D;
  --green-soft:   #E6EFE8;
  --green-tint:   #F0F5F0;

  /* Paper + ink */
  --paper:        #F5EFE2;
  --paper-2:      #FAF6EC;
  --paper-3:      #EEE6D3;
  --ink:          #141414;
  --ink-soft:     #2A2A2A;
  --ink-mute:     #6B6258;
  --rule:         rgba(20, 20, 20, 0.14);
  --rule-strong:  rgba(20, 20, 20, 0.32);

  /* Accent — brushed gold for luxury moments */
  --gold:         #B8923E;
  --gold-soft:    #D8B968;

  /* Market signals */
  --bull:         #107030;
  --bear:         #B83A2E;

  /* Type scale (fluid) */
  --fs-mono:      0.78rem;
  --fs-eyebrow:   0.72rem;
  --fs-body:      1.0rem;
  --fs-lede:      clamp(1.1rem, 1.0rem + 0.5vw, 1.35rem);
  --fs-h3:        clamp(1.4rem, 1.2rem + 0.8vw, 1.8rem);
  --fs-h2:        clamp(2.0rem, 1.6rem + 1.6vw, 3.0rem);
  --fs-h1:        clamp(2.8rem, 2.0rem + 4.5vw, 6.2rem);
  --fs-mega:      clamp(4rem, 2.5rem + 9vw, 11rem);

  /* Layout */
  --container:    1280px;
  --gutter:       clamp(20px, 4vw, 56px);
  --section-pad:  clamp(64px, 8vw, 128px);
}

/* Density tweak hook */
[data-density="airy"]    { --section-pad: clamp(96px, 12vw, 180px); }
[data-density="compact"] { --section-pad: clamp(40px, 5vw, 72px); }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Geist", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", sans-serif;
  font-size: var(--fs-body);
  line-height: 1.55;
  font-feature-settings: "ss01", "ss02", "cv11";
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* ---------- Typography primitives ---------- */
.serif      { font-family: "Playfair Display", "Times New Roman", serif; font-weight: 400; font-style: normal; }
.serif-i    { font-family: "Playfair Display", "Times New Roman", serif; font-weight: 400; font-style: italic; }
.mono       { font-family: "Geist Mono", "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace; }
.eyebrow {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
}
.eyebrow--green { color: var(--green); }

h1, h2, h3, h4 {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); line-height: 0.92; }
h2 { font-size: var(--fs-h2); line-height: 0.96; }
h3 { font-size: var(--fs-h3); line-height: 1.05; }

p { margin: 0; text-wrap: pretty; }

/* ---------- Layout ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container-wide { max-width: 1480px; margin: 0 auto; padding: 0 var(--gutter); }

section { padding: var(--section-pad) 0; position: relative; }

.hairline      { height: 1px; background: var(--rule); width: 100%; }
.hairline-ink  { height: 1px; background: var(--ink); width: 100%; }

/* ---------- Ticker tape ---------- */
.ticker {
  background: var(--paper);
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
  border-top: 1px solid var(--rule);
  overflow: hidden;
  position: relative;
  height: 42px;
  display: flex;
  align-items: center;
}
.ticker--dark {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.ticker__rail {
  display: inline-flex;
  gap: 0;
  white-space: nowrap;
  animation: tickerScroll 55s linear infinite;
  padding-left: 24px;
  font-family: "Geist Mono", monospace;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  align-items: center;
}
.ticker__rail:hover { animation-play-state: paused; }
.ticker__item {
  display: inline-flex;
  gap: 8px;
  align-items: baseline;
  padding: 0 22px;
  border-right: 1px solid var(--rule);
}
.ticker--dark .ticker__item { border-right-color: rgba(245,239,226,0.12); }
.ticker__sym { color: inherit; font-weight: 600; }
.ticker__up   { color: var(--green); }
.ticker__down { color: var(--bear); }
.ticker--dark .ticker__up   { color: #6BD68A; }
.ticker--dark .ticker__down { color: #F47A6F; }
.ticker__arrow { font-size: 0.72em; }

@keyframes tickerScroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--ink);
  border-bottom: 1px solid rgba(245,239,226,0.12);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
  gap: 32px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__mark {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--green);
  display: grid; place-items: center;
  color: var(--paper);
  font-family: "Playfair Display", serif;
  font-size: 14px;
  letter-spacing: -0.02em;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06), 0 0 0 1px rgba(20,20,20,0.04);
  position: relative; overflow: hidden;
}
.brand__mark::before {
  /* subtle marbled tint to echo the logo's texture, without copying it */
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.16), transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(0,0,0,0.18), transparent 55%);
}
.brand__mark span { position: relative; z-index: 1; }
.brand__name {
  font-family: "Playfair Display", serif;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--paper);
}
.brand__name em { font-style: italic; color: var(--green); }

.nav { display: flex; align-items: center; gap: 28px; }
.site-logo { display: inline-flex; align-items: center; height: 22px; gap: 10px; }
.site-logo img { height: 100%; width: auto; display: block; }
.site-logo__mark { height: 34px !important; }
.nav__link {
  font-family: "Geist Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paper);
  position: relative;
  padding: 8px 0;
  transition: color .2s;
}
.nav__link:hover { color: var(--gold-soft); }
.nav__link[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--green);
}

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px;
  background: var(--green);
  color: var(--paper);
  font-family: "Geist Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--green);
  border-radius: 0;
  transition: all .18s ease;
  cursor: pointer;
}
.btn:hover { background: var(--green-deep); border-color: var(--green-deep); }
.btn .arrow { display: inline-block; transition: transform .18s ease; }
.btn:hover .arrow { transform: translateX(3px); }

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

.btn--gold {
  background: transparent;
  color: var(--ink);
  border-color: var(--gold);
}
.btn--gold:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }

/* ---------- Issue meta strip ---------- */
.issue-strip {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
  font-family: "Geist Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.issue-strip__group { display: flex; gap: 28px; }
.issue-strip__k { color: var(--ink); }

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 7vw, 110px) 0 clamp(56px, 8vw, 120px); position: relative; isolation: isolate; }
/* Wall Street undertone — edge-to-edge, faded, brand-tinted */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('assets/wallstreet-hero.png') center 30% / cover no-repeat;
  opacity: var(--hero-bg-opacity, 0.28);
  filter: grayscale(0.3) sepia(0.1) contrast(1.03);
  z-index: -2;
  pointer-events: none;
}
/* Cream wash on top so headline + form stay crisp (lighter now so image reads wider) */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(245,239,226,0.12) 0%,
    rgba(245,239,226,0.38) 55%,
    rgba(245,239,226,0.92) 100%);
  z-index: -1;
  pointer-events: none;
}
.hero__headline {
  font-size: var(--fs-h1);
  line-height: 0.92;
  letter-spacing: -0.025em;
}
.hero__headline em { font-style: italic; color: var(--green); }
.hero__lede {
  max-width: 580px;
  font-size: var(--fs-lede);
  color: var(--ink-soft);
  margin-top: 28px;
  line-height: 1.45;
}

/* ---------- Newsletter form ---------- */
.beehiiv-embed {
  margin: 24px auto 0;
  max-width: 540px;
  width: 100%;
  min-height: 60px;
  display: flex;
  justify-content: center;
  overflow: hidden;
  box-sizing: border-box;
}
.beehiiv-embed > div,
.beehiiv-embed iframe {
  margin: 0 auto !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}
.market-snapshot .beehiiv-embed { margin-left: auto; margin-right: auto; }
.brand-cta .beehiiv-embed { margin-left: auto; margin-right: auto; }
.beehiiv-embed iframe { margin: 0 auto !important; display: block !important; }
#subscribe .beehiiv-embed { margin-top: 12px; text-align: center; }
#subscribe .nl-form { margin-left: auto; margin-right: auto; margin-top: 22px; }

/* Desktop-only nudge to compensate for Beehiiv's internal iframe rendering
   narrower than our box on wider screens. Reset to 0 on mobile, where the
   iframe renders differently and the offset would push it off-center. */
@media (min-width: 601px) {
  #subscribe .beehiiv-embed { transform: translateX(65px); }
  .brand-cta .beehiiv-embed { transform: translateX(65px); }
}

/* Hero: swap long lede for a short one on mobile */
.hero-lede--short { display: none; }
@media (max-width: 600px) {
  .hero-lede--full { display: none; }
  .hero-lede--short { display: block; }
  #subscribe .beehiiv-embed,
  .market-snapshot .beehiiv-embed,
  .brand-cta .beehiiv-embed {
    max-width: 100%;
    width: 100%;
    padding: 0 8px;
  }
  .hero-h1 { font-size: 2rem !important; }
  .hero-h1 em { font-size: 1.35rem !important; margin-top: 8px !important; }
  #subscribe { padding-top: 18px !important; }
  #subscribe .nl-meta { margin-top: 14px !important; font-size: 0.72rem; }
}
.nl-form {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--ink);
  background: var(--paper-2);
  max-width: 540px;
  height: 56px;
}
.nl-form input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 0 18px;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  outline: none;
}
.nl-form input::placeholder { color: var(--ink-mute); }
.nl-form button {
  border: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0 26px;
  font-family: "Geist Mono", monospace;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .18s;
}
.nl-form button:hover { background: var(--green); }
.nl-form--success {
  border-color: var(--green);
  background: var(--green-soft);
  align-items: center;
  justify-content: center;
  font-family: "Geist Mono", monospace;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--green-deep);
}

.nl-meta {
  display: flex; align-items: center; gap: 14px;
  margin-top: 14px;
  font-family: "Geist Mono", monospace;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: var(--ink-mute);
}
.nl-meta__avatars {
  display: inline-flex;
}
.nl-meta__avatars span {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--paper);
  margin-left: -7px;
}
.nl-meta__avatars span:first-child { margin-left: 0; }
.nl-meta__avatars span:nth-child(1) { background: #8B5A3C; }
.nl-meta__avatars span:nth-child(2) { background: #C9A961; }
.nl-meta__avatars span:nth-child(3) { background: #1F4D3A; }
.nl-meta__avatars span:nth-child(4) { background: #2A2A2A; }
.nl-meta__avatars span:nth-child(5) { background: #6B7D8C; }

/* ---------- Stat block ---------- */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.stat {
  padding: 28px 24px;
  border-right: 1px solid var(--rule);
  display: flex; flex-direction: column; gap: 6px;
}
.stat:last-child { border-right: 0; }
.stat__num {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.4rem, 2rem + 1.5vw, 3.4rem);
  line-height: 1;
  color: var(--green);
  letter-spacing: -0.02em;
}
.stat__label {
  font-family: "Geist Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* ---------- Coverage / topic cards ---------- */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.coverage {
  padding: 40px 32px 48px;
  border-right: 1px solid var(--rule);
  display: flex; flex-direction: column; gap: 16px;
  background: var(--paper);
  transition: background .25s ease;
  position: relative;
}
.coverage:last-child { border-right: 0; }
.coverage:hover { background: var(--paper-3); }
.coverage__num {
  font-family: "Geist Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--green);
}
.coverage h3 { font-size: clamp(1.6rem, 1.3rem + 0.8vw, 2.1rem); line-height: 1; }
.coverage p { color: var(--ink-soft); }
.coverage__list {
  list-style: none; padding: 0; margin: 16px 0 0;
  display: flex; flex-direction: column; gap: 10px;
  font-family: "Geist Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.coverage__list li { display: flex; gap: 12px; align-items: baseline; }
.coverage__list li::before {
  content: "→"; color: var(--green); flex: none;
}

/* Featured channel card — deep green with gold accents */
.coverage--featured {
  background: var(--green-deep);
}
.coverage--featured:hover { background: var(--green-darker); }
.coverage--featured .coverage__num { color: var(--gold-soft); }
.coverage--featured h3 { color: var(--paper); }
.coverage--featured h3 em { color: var(--gold-soft); font-style: italic; }
.coverage--featured p { color: rgba(245,239,226,0.78); }
.coverage--featured .coverage__list { color: var(--paper); }
.coverage--featured .coverage__list li::before { color: var(--gold-soft); }
.coverage--featured .coverage__tag {
  position: absolute;
  top: 0; right: 0;
  background: var(--gold);
  color: var(--ink);
  font-family: "Geist Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 6px 12px;
}

/* ---------- Section headers ---------- */
.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
  padding-bottom: 48px;
}
.section-head h2 { font-size: var(--fs-h2); }
.section-head__meta {
  font-family: "Geist Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  max-width: 460px;
}

/* ---------- Issue preview card ---------- */
.issue-card {
  border: 1px solid var(--ink);
  background: var(--paper-2);
  padding: 32px;
  position: relative;
}
.issue-card__head {
  display: flex; justify-content: space-between;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 16px;
  margin-bottom: 24px;
  font-family: "Geist Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.issue-card__head strong { color: var(--green); }
.issue-card__title {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.6rem, 1.4rem + 1vw, 2.2rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0 0 14px;
}
.issue-card__dek {
  color: var(--ink-soft);
  font-size: 1rem;
  margin-bottom: 22px;
}
.issue-card__byline {
  font-family: "Geist Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--ink-mute);
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  display: flex; justify-content: space-between;
}

/* ---------- Pull quote ---------- */
.pullquote {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.8rem, 1.4rem + 1.6vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--ink);
  max-width: 920px;
  text-wrap: balance;
}
.pullquote em { color: var(--green); font-style: italic; }
.pullquote__cite {
  margin-top: 32px;
  display: flex; align-items: center; gap: 14px;
  font-family: "Geist Mono", monospace;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.pullquote__cite span {
  width: 32px; height: 1px; background: var(--ink-mute);
}

/* ---------- Logo wall ---------- */
.logo-wall {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.logo-wall__item {
  flex: 0 0 200px;
  padding: 36px 20px;
  display: grid; place-items: center;
  font-family: "Playfair Display", serif;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  text-align: center;
}
.logo-wall__item small {
  display: block;
  font-family: "Geist Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  color: var(--ink-mute);
  text-transform: uppercase;
  margin-top: 4px;
}
.logo-wall__logo {
  width: 60px; height: 60px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 16px;
  border: 1px solid var(--rule);
  display: block;
}
.logo-wall__more {
  text-align: center;
  margin-top: 22px;
  font-family: "Playfair Display", serif;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}
.logo-wall__more small {
  display: block;
  font-family: "Geist Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  color: var(--ink-mute);
  text-transform: uppercase;
  margin-top: 4px;
}

/* ---------- Big CTA band ---------- */
.cta-band {
  background: var(--green-deep);
  color: var(--paper);
  padding: clamp(80px, 10vw, 140px) 0;
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 80% 0%, rgba(255,255,255,0.06), transparent 50%),
    radial-gradient(ellipse at 0% 100%, rgba(0,0,0,0.3), transparent 60%);
  pointer-events: none;
}
.cta-band .container { position: relative; }
.cta-band h2 { color: var(--paper); }
.cta-band h2 em { color: var(--gold-soft); font-style: italic; }
.cta-band .nl-form {
  background: rgba(255,255,255,0.04);
  border-color: var(--paper);
}
.cta-band .nl-form input { color: var(--paper); }
.cta-band .nl-form input::placeholder { color: rgba(245,239,226,0.5); }
.cta-band .nl-form button { background: var(--paper); color: var(--ink); }
.cta-band .nl-form button:hover { background: var(--gold-soft); }
.cta-band__meta { color: rgba(245,239,226,0.7); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: 80px 0 32px;
}
.site-footer .container { display: grid; gap: 60px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer-col h4 {
  font-family: "Geist Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245,239,226,0.5);
  margin-bottom: 18px;
  font-weight: 500;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--paper); transition: color .2s; font-size: 0.92rem; }
.footer-col a:hover { color: var(--gold-soft); }

.footer-brand .brand__name { color: var(--paper); font-size: 1.4rem; }
.site-logo--footer { height: 26px; margin-bottom: 4px; gap: 12px; }
.site-logo--footer img { height: 100%; width: auto; }
.site-logo--footer .site-logo__mark { height: 38px !important; }
.footer-brand p { color: rgba(245,239,226,0.6); margin-top: 16px; max-width: 280px; font-size: 0.92rem; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 32px;
  border-top: 1px solid rgba(245,239,226,0.1);
  font-family: "Geist Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245,239,226,0.5);
}

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  padding: clamp(32px, 4vw, 56px) 0 clamp(40px, 6vw, 80px);
  border-bottom: 1px solid var(--rule);
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
/* Wall Street undertone on interior page heroes */
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('assets/wallstreet-hero.png') center 30% / cover no-repeat;
  opacity: var(--hero-bg-opacity, 0.28);
  filter: grayscale(0.3) sepia(0.1) contrast(1.03);
  z-index: -2;
  pointer-events: none;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(245,239,226,0.12) 0%,
    rgba(245,239,226,0.42) 55%,
    rgba(245,239,226,0.9) 100%);
  z-index: -1;
  pointer-events: none;
}
.page-hero__kicker {
  font-family: "Geist Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 24px;
}
.page-hero h1 {
  font-size: var(--fs-h1);
  line-height: 0.95;
  max-width: 12ch;
}
.page-hero h1 em { color: var(--green); font-style: italic; }

/* Split page hero — headline left, support text right (fills the blank space) */
.page-hero__split {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 40px 64px;
  align-items: end;
}
.page-hero__split h1 { max-width: 18ch; }
.page-hero__split--center { align-items: center; }
.page-hero__split--top { align-items: start; }

/* About page: tighter section rhythm */
body[data-page="about"] .page-hero { padding-bottom: clamp(28px, 3.5vw, 48px); }
body[data-page="about"] .section--green,
body[data-page="about"] section:not(.page-hero):not(.cta-band) {
  padding-top: clamp(40px, 5vw, 68px);
  padding-bottom: clamp(40px, 5vw, 68px);
}
body[data-page="about"] .cta-band { padding: clamp(52px, 6.5vw, 92px) 0; }

/* Partners page: tighter section rhythm */
body[data-page="partners"] .page-hero { padding-bottom: clamp(24px, 3vw, 40px); }
body[data-page="partners"] section:not(.page-hero):not(.brand-cta) {
  padding-top: clamp(36px, 4.5vw, 56px);
  padding-bottom: clamp(36px, 4.5vw, 56px);
}
body[data-page="partners"] .brand-cta { padding: clamp(48px, 6vw, 80px) 0; }

/* Services — "What we handle" numbered checklist card */
.handle-card {
  background: var(--paper);
  padding: 30px 34px 34px;
  box-shadow: 0 20px 50px rgba(6,40,29,0.25);
}
.handle-card__label {
  font-family: "Geist Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
  margin: 0 0 8px;
}
.handle-list { list-style: none; padding: 0; margin: 0; }
.handle-list li {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
}
.handle-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.handle-list__n {
  font-family: "Geist Mono", monospace;
  font-size: 0.8rem;
  color: var(--green);
  flex: none;
  min-width: 22px;
}
.handle-list__t {
  font-size: 1.02rem;
  color: var(--ink);
  line-height: 1.3;
}
.page-hero__split .page-hero__lede { margin-top: 0; }
@media (max-width: 860px) {
  .page-hero__split { grid-template-columns: 1fr; gap: 22px; align-items: start; }
}
.page-hero__lede {
  font-size: var(--fs-lede);
  color: var(--ink-soft);
  max-width: 640px;
  margin-top: 32px;
  line-height: 1.45;
}

/* ---------- Two-col content ---------- */
.twocol {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}
.twocol--reverse { grid-template-columns: 1.4fr 1fr; }

/* ---------- Pricing / offering cards ---------- */
.offer-card {
  border: 1px solid var(--ink);
  background: var(--paper-2);
  padding: 36px 32px 32px;
  display: flex; flex-direction: column; gap: 18px;
  position: relative;
  transition: transform .25s ease, box-shadow .25s ease;
}
.offer-card:hover { transform: translateY(-4px); box-shadow: 8px 8px 0 var(--ink); }
.offer-card--featured {
  background: var(--green-deep);
  color: var(--paper);
  border-color: var(--green-deep);
}
.offer-card--featured .offer-card__price { color: var(--gold-soft); }
.offer-card--featured .offer-card__list li { color: rgba(245,239,226,0.85); }
.offer-card--featured .offer-card__list li::before { color: var(--gold-soft); }
.offer-card--featured .offer-card__tag { background: var(--gold); color: var(--ink); }

.offer-card__tag {
  position: absolute;
  top: -1px; right: 24px;
  background: var(--ink); color: var(--paper);
  font-family: "Geist Mono", monospace;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 6px 12px;
}
.offer-card__eyebrow {
  font-family: "Geist Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
}
.offer-card--featured .offer-card__eyebrow { color: var(--gold-soft); }
.offer-card h3 { font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.9rem); }
.offer-card__price {
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 1.6rem + 1.4vw, 2.8rem);
  line-height: 1;
  color: var(--green);
}
.offer-card__price small {
  font-family: "Geist Mono", monospace;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--ink-mute);
  margin-left: 6px;
}
.offer-card--featured .offer-card__price small { color: rgba(245,239,226,0.6); }
.offer-card__list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
  font-size: 0.92rem;
  flex: 1;
}
.offer-card__list li { display: flex; gap: 10px; align-items: baseline; }
.offer-card__list li::before { content: "✓"; color: var(--green); flex: none; font-size: 0.85rem; }

/* ---------- Partner cards (Partners page) ---------- */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.partner-card {
  border: 1px solid var(--ink);
  background: var(--paper-2);
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.partner-card:hover { transform: translateY(-4px); }
.partner-card__logo {
  aspect-ratio: 16 / 9;
  background: repeating-linear-gradient(135deg, var(--paper-3) 0 16px, var(--paper) 16px 32px);
  border-bottom: 1px solid var(--rule);
  display: grid;
  place-items: center;
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--ink-mute);
  letter-spacing: 0.02em;
}
.partner-card__body { padding: 28px 28px 30px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.partner-card__tag {
  font-family: "Geist Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
}
.partner-card__body h3 { font-size: clamp(1.4rem, 1.2rem + 0.6vw, 1.7rem); }
.partner-card__body p { color: var(--ink-soft); font-size: 0.95rem; line-height: 1.55; flex: 1; }
.partner-card__perk { color: var(--accent-green, #107030); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.01em; }
.partner-card__cta { margin-top: 6px; align-self: flex-start; }
@media (max-width: 980px) {
  .partner-grid { grid-template-columns: 1fr; }
}

/* ---------- Form ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-family: "Geist Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.field input, .field textarea, .field select {
  border: 0;
  border-bottom: 1px solid var(--ink);
  background: transparent;
  padding: 12px 0;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  outline: none;
  transition: border-color .2s;
  border-radius: 0;
}
.field textarea { resize: vertical; min-height: 120px; font-family: inherit; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--green); }

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 4px;
}
.radio-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
  cursor: pointer;
  font-size: 0.98rem;
  color: var(--ink);
}
.radio-option:last-child { border-bottom: 0; }
.radio-option input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
  cursor: pointer;
  flex: none;
}
.radio-option:hover { color: var(--green); }

/* ---------- About page bits ---------- */
.bio-card {
  border: 1px solid var(--rule);
  padding: 32px;
  background: var(--paper-2);
}
.bio-card__photo {
  aspect-ratio: 1 / 1;
  background:
    repeating-linear-gradient(45deg, var(--paper-3) 0 12px, var(--paper) 12px 24px);
  display: grid; place-items: center;
  font-family: "Geist Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 24px;
  border: 1px solid var(--rule);
}

.timeline {
  display: flex; flex-direction: column;
}
.timeline__item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
}
.timeline__item:last-child { border-bottom: 0; }
.timeline__year {
  font-family: "Geist Mono", monospace;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--green);
}
.timeline__body h4 {
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
  line-height: 1.1;
  margin-bottom: 8px;
}
.timeline__body p { color: var(--ink-soft); }

/* ---------- Audience demographics bar ---------- */
.demo-bar {
  display: grid; grid-template-columns: 1fr; gap: 14px;
}
.demo-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
}
.demo-row__bar {
  display: flex; align-items: center; gap: 14px;
  font-family: "Geist Mono", monospace;
  font-size: 0.82rem;
}
.demo-row__bar i {
  display: block; height: 6px; background: var(--green); border-radius: 0;
  min-width: 8px;
}
.demo-row__pct {
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
  color: var(--green);
  min-width: 70px; text-align: right;
}

/* ---------- Service / process steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.step {
  padding: 36px 24px;
  border-right: 1px solid var(--rule);
  display: flex; flex-direction: column; gap: 14px;
}
.step:last-child { border-right: 0; }
.step__n {
  font-family: "Playfair Display", serif;
  font-size: 3rem;
  line-height: 0.9;
  color: var(--green);
}
.step h4 {
  font-family: "Playfair Display", serif;
  font-size: 1.3rem;
  line-height: 1.05;
}
.step p { font-size: 0.92rem; color: var(--ink-soft); }

/* ---------- Marquee ribbon (light, for sections) ---------- */
.ribbon {
  background: var(--green);
  color: var(--paper);
  padding: 14px 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(1.4rem, 1.2rem + 0.6vw, 1.8rem);
  letter-spacing: -0.01em;
  overflow: hidden;
  white-space: nowrap;
}
.ribbon__rail {
  display: inline-flex; gap: 36px; animation: tickerScroll 50s linear infinite;
}
.ribbon__rail span { display: inline-flex; align-items: center; gap: 36px; }
.ribbon__rail em { font-style: italic; color: var(--gold-soft); }
.ribbon__rail svg { width: 18px; height: 18px; flex: none; }

/* ---------- Article cards (Latest Posts) ---------- */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.post-card {
  display: flex;
  flex-direction: column;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  cursor: pointer;
}
.post-card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(20,20,20,0.08); border-color: var(--rule-strong); }
.post-card__media {
  position: relative;
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
  line-height: 0;
}
.post-card__media img { display: block; width: 100%; height: auto; }
.post-card__media:not(:has(img)) {
  aspect-ratio: 1200 / 675;
  background: repeating-linear-gradient(135deg, var(--paper-3) 0 18px, var(--paper) 18px 36px);
  display: grid; place-items: center;
}
.post-card__media:not(:has(img))::after {
  content: "hero image · 1200px wide";
  font-family: "Geist Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  background: var(--paper-2);
  padding: 4px 8px;
  border: 1px solid var(--rule);
}
.post-card__category {
  position: absolute;
  top: 16px; left: 16px;
  background: var(--green);
  color: var(--paper);
  font-family: "Geist Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 14px 16px;
  font-weight: 500;
  z-index: 2;
}
.post-card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card__date {
  font-family: "Geist Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--ink-mute);
}
.post-card__title {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
}
.post-card__dek { font-size: 0.92rem; color: var(--ink-soft); line-height: 1.55; flex: 1; }
.post-card__foot {
  display: flex; align-items: center; gap: 10px;
  padding-top: 16px;
  margin-top: 8px;
  border-top: 1px solid var(--rule);
  font-family: "Geist Mono", monospace;
  font-size: 0.74rem;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
}
.post-card__foot img {
  width: 22px; height: 22px; object-fit: contain;
}

/* ---------- Market snapshot panel ---------- */
.market-snapshot {
  background: var(--green-deep);
  color: var(--paper);
  padding: clamp(48px, 6vw, 84px) 0;
  position: relative;
  overflow: hidden;
}
.market-snapshot::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 90% 10%, rgba(255,255,255,0.05), transparent 55%),
    radial-gradient(ellipse at 0% 100%, rgba(0,0,0,0.35), transparent 60%);
  pointer-events: none;
}
.market-snapshot__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 72px;
  align-items: center;
}
.market-snapshot h2 {
  color: var(--paper);
  font-size: clamp(2.4rem, 1.8rem + 2.2vw, 4rem);
  line-height: 0.96;
}
.market-snapshot h2 em { color: var(--gold-soft); font-style: italic; }
.market-snapshot__dek { color: rgba(245,239,226,0.7); margin-top: 24px; max-width: 420px; font-size: 1.02rem; line-height: 1.55; }
.market-snapshot .nl-form {
  background: var(--paper);
  border-color: var(--paper);
  margin-top: 36px;
}
.market-snapshot .nl-form input { color: var(--ink); }
.market-snapshot .nl-form button { background: var(--ink); color: var(--paper); }
.market-snapshot .nl-form button:hover { background: var(--gold); color: var(--ink); }
.market-snapshot__meta {
  margin-top: 18px;
  font-family: "Geist Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: rgba(245,239,226,0.55);
}
.snapshot-table {
  background: var(--green-darker);
  border: 1px solid rgba(245,239,226,0.08);
  padding: 8px 0;
}
.snapshot-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 16px 26px;
  border-bottom: 1px solid rgba(245,239,226,0.06);
}
.snapshot-row:last-child { border-bottom: 0; }
.snapshot-row__sym {
  font-family: "Geist Mono", monospace;
  font-size: 0.94rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--paper);
}
.snapshot-row__name {
  font-family: "Geist Mono", monospace;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: rgba(245,239,226,0.55);
  margin-top: 4px;
}
.snapshot-row__val {
  font-family: "Geist Mono", monospace;
  font-size: 0.96rem;
  color: var(--paper);
  text-align: right;
  font-weight: 500;
}
.snapshot-row__chg {
  font-family: "Geist Mono", monospace;
  font-size: 0.78rem;
  text-align: right;
  margin-top: 4px;
}
.snapshot-row__chg--up   { color: #6BD68A; }
.snapshot-row__chg--down { color: #F47A6F; }

/* ---------- Closing brand CTA (full-bleed green) ---------- */
.brand-cta {
  background: var(--green-deep);
  color: var(--paper);
  padding: clamp(56px, 7vw, 96px) 0 clamp(52px, 6vw, 88px);
  position: relative;
  overflow: hidden;
  text-align: center;
  border-top: 1px solid rgba(245,239,226,0.08);
}
.brand-cta::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 15% 30%, rgba(255,255,255,0.04), transparent 35%),
    radial-gradient(circle at 85% 70%, rgba(255,255,255,0.04), transparent 35%);
  pointer-events: none;
}
.brand-cta__ornaments {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
}
.brand-cta__orn {
  position: absolute;
  font-family: "Playfair Display", serif;
  color: rgba(184, 146, 62, 0.10);
  font-size: clamp(140px, 22vw, 360px);
  line-height: 1;
  font-style: italic;
  user-select: none;
}
.brand-cta__orn--l { top: -8%; left: -3%; }
.brand-cta__orn--r { bottom: -10%; right: -3%; transform: rotate(8deg); }
.brand-cta .container { position: relative; z-index: 1; }
.brand-cta h2 {
  color: var(--paper);
  font-size: clamp(3rem, 2rem + 5vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
}
.brand-cta h2 em { color: var(--gold-soft); font-style: italic; }
.brand-cta__dek {
  color: rgba(245,239,226,0.7);
  margin: 36px auto 0;
  max-width: 560px;
  font-size: 1.05rem;
  line-height: 1.5;
}
.brand-cta .nl-form {
  background: var(--paper);
  border-color: var(--paper);
  margin: 40px auto 0;
}
.brand-cta .nl-form input { color: var(--ink); }
.brand-cta .nl-form button { background: var(--ink); color: var(--paper); }
.brand-cta .nl-form button:hover { background: var(--gold); color: var(--ink); }
.brand-cta__meta {
  margin-top: 18px;
  font-family: "Geist Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: rgba(245,239,226,0.45);
  text-transform: uppercase;
}

/* ---------- Section header (simple, left-aligned) ---------- */
.simple-head {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-bottom: 36px;
  gap: 32px;
  flex-wrap: wrap;
}
.simple-head h2 {
  font-size: clamp(1.8rem, 1.4rem + 1.3vw, 2.6rem);
  letter-spacing: -0.015em;
}
.simple-head a {
  font-family: "Geist Mono", monospace;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  display: inline-flex; gap: 8px; align-items: center;
}
.simple-head a:hover { color: var(--green-deep); }

/* ---------- Contributor desks grid (About) ---------- */
.desk-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}
.desk {
  padding: 32px 28px 36px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  display: flex; flex-direction: column; gap: 12px;
  transition: background .25s ease;
}
.desk:hover { background: var(--paper-3); }
.desk__num {
  font-family: "Geist Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--green);
  text-transform: uppercase;
}
.desk h4 {
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--gold);
}
.desk p { color: var(--ink-soft); font-size: 0.94rem; line-height: 1.55; }

@media (max-width: 980px) {
  .desk-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .desk-grid { grid-template-columns: 1fr; }
}

/* Green backdrop section (reusable) */
.section--green {
  background: var(--green-deep);
  color: var(--paper);
  border-top: 1px solid var(--green-darker);
  border-bottom: 1px solid var(--green-darker);
}
.section--green h2 { color: var(--paper); }
.section--green .eyebrow,
.section--green .eyebrow--green { color: var(--gold-soft); }
.section--green .section-head__meta { color: rgba(245,239,226,0.72); }
.section--green h2 span { color: var(--gold-soft) !important; }

/* ---------- Product cards (Shop) ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.product-card {
  display: flex;
  flex-direction: column;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  text-decoration: none; color: inherit;
}
.product-card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(20,20,20,0.08); border-color: var(--rule-strong); }
.product-card__media {
  position: relative;
  aspect-ratio: 4 / 5;
  background:
    repeating-linear-gradient(135deg, var(--paper-3) 0 18px, var(--paper) 18px 36px);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
}
.product-card__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.product-card__placeholder {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: "Playfair Display", serif;
  font-size: 5rem;
  color: var(--green);
  letter-spacing: -0.02em;
}
.product-card__badge {
  position: absolute;
  top: 16px; left: 16px;
  background: var(--ink); color: var(--paper);
  font-family: "Geist Mono", monospace;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 7px 12px;
  font-weight: 500;
  z-index: 2;
}
.product-card__badge--sale  { background: var(--bear); }
.product-card__badge--gold  { background: var(--gold); color: var(--ink); }
.product-card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; }
.product-card__title {
  font-family: "Playfair Display", serif;
  font-size: 1.3rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
}
.product-card__price {
  font-family: "Geist Mono", monospace;
  font-size: 0.92rem;
  color: var(--green);
  letter-spacing: 0.02em;
}
.product-card__price--was {
  color: var(--ink-mute);
  text-decoration: line-through;
  margin-right: 8px;
}
.product-card__buy {
  margin-top: 14px;
  padding: 12px 14px;
  background: var(--ink); color: var(--paper);
  border: 1px solid var(--ink);
  font-family: "Geist Mono", monospace;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  transition: background .18s, color .18s;
  display: block; width: 100%;
}
.product-card__buy:hover { background: var(--green); border-color: var(--green); }

/* Split card: our title/tagline on top + one unified Shopify block below
   (image, price, color options, and Add to cart all share live state, so
   picking a color updates the shown image in real time). */
.product-card--split { display: flex; flex-direction: column; position: relative; background: #FFFFFF; }
.product-card--split > .product-card__badge { position: absolute; top: 16px; left: 16px; z-index: 3; }
.product-card__info { display: flex; flex-direction: column; }
.product-card__info--top { padding: 14px 18px 6px; }
.product-card__info--bottom { padding: 8px 18px 16px; }
.product-card--split .product-card__title {
  margin-top: 0;
  margin-bottom: 0;
  font-size: 1.15rem;
  line-height: 1.2;
  min-height: 2.4em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card__tagline {
  font-family: "Geist", ui-sans-serif, system-ui, sans-serif;
  font-size: 0.92rem;
  line-height: 1.35;
  color: var(--ink-mute);
  margin-top: 0;
  margin-bottom: 0;
  min-height: 2.7em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-wrap: pretty;
}
.product-card__unified-shopify { margin-top: 0; }
.custom-gallery { display: flex; align-items: center; justify-content: center; gap: 4px; padding: 0 4px; margin-bottom: 6px; }
.custom-gallery__img { width: 100%; max-width: 340px; aspect-ratio: 1 / 1; object-fit: contain; margin: 0 auto; }
.custom-gallery__arrow { background: none; border: none; cursor: pointer; font-size: 30px; line-height: 1; color: #b3aa9c; padding: 6px; flex: 0 0 auto; font-family: Georgia, serif; }
.custom-gallery__arrow:hover { color: #107030; }

/* Shopify-rendered product cards (real photo + title + price + button) */
.product-card--shopify { position: relative; padding-bottom: 20px; }
.product-card--shopify > .product-card__badge { position: absolute; top: 16px; left: 16px; z-index: 3; }
.product-card--shopify .shopify-buy__product { padding: 0 !important; }
.product-card--shopify .shopify-buy__product__title,
.product-card--shopify .shopify-buy__product__price { padding-left: 22px !important; padding-right: 22px !important; }
.product-card--shopify .shopify-buy__btn-wrapper { padding: 14px 22px 0 !important; }
.product-card--shopify .shopify-buy__product-img-wrapper { margin-bottom: 18px !important; }

/* Where Shopify Lite Buy Buttons get embedded — keep them looking native */
.shopify-buy-frame { width: 100% !important; }
.shopify-buy__btn {
  background: var(--ink) !important;
  color: var(--paper) !important;
  font-family: "Geist Mono", monospace !important;
  font-size: 0.74rem !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  border-radius: 0 !important;
  padding: 14px !important;
}

@media (max-width: 980px) { .product-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (max-width: 540px) { .product-grid { grid-template-columns: 1fr; } }

/* ---------- Shop hero meta strip ---------- */
.shop-meta {
  display: flex; gap: 28px; flex-wrap: wrap;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  font-family: "Geist Mono", monospace;
  font-size: 0.78rem;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
}

/* Shop page: tighter hero so products sit higher */
body[data-page="shop"] .page-hero { padding-top: clamp(28px, 4vw, 48px); padding-bottom: clamp(24px, 3vw, 36px); }
body[data-page="shop"] .page-hero__lede { margin-top: 18px; }
body[data-page="shop"] .shop-meta { justify-content: center; }
body[data-page="shop"] .brand-cta { padding: clamp(48px, 6vw, 80px) 0 clamp(44px, 5vw, 72px); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  /* Mobile header: logo + CTA on row 1, nav links on a centered row 2 */
  .site-header__inner {
    flex-wrap: wrap;
    height: auto;
    padding: 12px 0;
    gap: 12px 16px;
  }
  .nav {
    order: 3;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 20px;
    padding-top: 12px;
    border-top: 1px solid rgba(245,239,226,0.14);
  }
  .nav__link { padding: 4px 0; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .cards-3 { grid-template-columns: 1fr; }
  .coverage { border-right: 0; border-bottom: 1px solid var(--rule); }
  .coverage:last-child { border-bottom: 0; }
  .section-head { grid-template-columns: 1fr; gap: 24px; }
  .twocol, .twocol--reverse { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(2n) { border-right: 0; }
  .form-grid { grid-template-columns: 1fr; }
  .posts-grid { grid-template-columns: 1fr; gap: 20px; }
  .market-snapshot__grid { grid-template-columns: 1fr; gap: 40px; }
  .timeline__item { grid-template-columns: 1fr; gap: 8px; }
}
@media (max-width: 540px) {
  .stat-row { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--rule); }
  .stat:last-child { border-bottom: 0; }
  .nl-form { height: auto; flex-direction: column; }
  .nl-form input { padding: 16px 18px; }
  .nl-form button { padding: 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 14px; text-align: center; }
}

/* ---------- Mobile polish (interior page heroes, CTAs, spacing) ---------- */
@media (max-width: 600px) {
  :root { --section-pad: clamp(44px, 10vw, 72px); }

  /* Interior page heroes: smaller headline, tighter, single column */
  .page-hero { padding: 20px 0 30px; }
  .page-hero__kicker { margin-bottom: 14px; font-size: 0.72rem; }
  .page-hero h1 { font-size: 2rem; line-height: 1.04; max-width: 100%; }
  .page-hero__lede { font-size: 1rem; margin-top: 14px; line-height: 1.5; }
  .page-hero__split { gap: 16px; }

  /* Hero action buttons: full-width, stacked, easy tap targets */
  .page-hero .btn { width: 100%; justify-content: center; padding: 15px 20px; }

  /* Section headers with a trailing link: allow wrap */
  .simple-head { flex-direction: column; align-items: flex-start; gap: 10px; padding-bottom: 28px; }

  /* Shop meta strip: two tidy columns, centered */
  .shop-meta { gap: 10px 24px; margin-top: 22px; padding-top: 20px; justify-content: center; text-align: left; }

  /* Services / contact inquire block: stack form under copy */
  .cta-inquire { grid-template-columns: 1fr !important; gap: 32px !important; }
  .cta-band { padding: clamp(48px, 11vw, 80px) 0; }

  /* Section head (two-col intro) tighter */
  .section-head { padding-bottom: 28px; }

  /* Pull quotes / big display type: rein in on small screens */
  .pullquote { font-size: 1.5rem; }

  /* Logo wall: 2 across on phones */
  .logo-wall__item { flex: 0 0 45%; padding: 22px 10px; font-size: 0.95rem; }
  .logo-wall__logo { width: 48px; height: 48px; margin-bottom: 10px; }
}
