/*
 * styles.css — RedFern Herbal Extracts & Infusions
 * Parchment-and-amber apothecary editorial. Tokens from 03-design-theme.
 */

/* ============================================================
   Design Tokens
   ============================================================ */
:root {
  --color-primary: #5C7A4A;      /* Fern Green */
  --color-primary-dark: #3F5633; /* Deep Fern */
  --color-primary-light: #DDE5D0;/* Sage Wash */
  --color-secondary: #3A3028;    /* Rootbark Brown */
  --color-accent: #A84030;       /* Terracotta Fern */
  --color-accent-dark: #8E3526;
  --color-accent-light: #D98E72; /* terracotta tint for dark panels */
  --color-bg: #F6F1E5;           /* Parchment */
  --color-surface: #FFFDF7;      /* Warm White */
  --color-text: #2E2620;         /* Ink Brown */
  --color-text-secondary: #6B5F53; /* Faded Ink */
  --color-border: #D8CDB8;       /* Kraft Line */
  --color-border-deep: #C9BCA0;
  --font-primary: 'Fraunces', 'Georgia', serif;
  --font-secondary: 'Karla', 'Helvetica Neue', sans-serif;
  --font-size-base: 16px;
  --spacing-base: 8px;
  --measure: 58ch;
  --wrap: 1240px;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

/* ============================================================
   Base Reset
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: var(--font-size-base, 16px); scroll-behavior: smooth; }

body {
  font-family: var(--font-secondary);
  font-size: 1.03125rem; /* 16.5px */
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.65;
  padding-bottom: 42px; /* required — partner banner clearance */
}

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

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

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--color-secondary);
  color: var(--color-surface);
  padding: 10px 18px;
  font-family: var(--font-secondary);
  font-weight: 700;
}
.skip-link:focus { left: 0; }

.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;
}

/* ============================================================
   Typography
   ============================================================ */
h1, h2, h3 {
  font-family: var(--font-primary);
  font-weight: 540;
  line-height: 1.15;
  color: var(--color-text);
}
h1 { font-size: clamp(2.5rem, 4.5vw, 3.5rem); font-weight: 560; line-height: 1.08; }
h2 { font-size: clamp(1.9rem, 3vw, 2.375rem); }
h3 { font-size: 1.55rem; font-weight: 500; line-height: 1.25; }

.display {
  font-size: clamp(2.75rem, 6vw, 5.25rem);
  font-weight: 620;
  line-height: 1.02;
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 144;
}
.display em, h1 em, h2 em { font-style: italic; font-weight: inherit; }

.lead { font-size: 1.21875rem; line-height: 1.55; }

.eyebrow {
  display: block;
  font-family: var(--font-secondary);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-primary-dark);
  margin-bottom: 18px;
}

.small, .caption { font-size: 0.84375rem; color: var(--color-text-secondary); }

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

p + p { margin-top: 1.1em; }

.pull-line {
  font-family: var(--font-primary);
  font-size: 1.75rem;
  line-height: 1.3;
  color: var(--color-primary-dark);
  font-weight: 500;
}

/* Fern divider glyph */
.fern-divider { width: 22px; height: 37px; flex: none; }
.glyph-divider { display: flex; justify-content: center; margin-bottom: 26px; }
.glyph-divider img { width: 26px; height: 43px; }

/* ============================================================
   Buttons & links
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-secondary);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  text-decoration: none;
  padding: 15px 28px;
  border: none;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}
.btn-primary { background: var(--color-accent); color: var(--color-surface); }
.btn-primary:hover { background: var(--color-accent-dark); }
.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-text);
}
.btn-ghost:hover { border-color: var(--color-accent); color: var(--color-accent-dark); }
.btn-ghost--light { color: var(--color-surface); border-color: var(--color-surface); }
.btn-ghost--light:hover { color: var(--color-bg); border-color: var(--color-accent-light); }

.text-link {
  color: var(--color-accent-dark);
  font-weight: 700;
  text-decoration: none;
  background-image: linear-gradient(var(--color-accent), var(--color-accent));
  background-repeat: no-repeat;
  background-size: 0% 2px;
  background-position: 0 100%;
  transition: background-size 180ms ease;
  padding-bottom: 2px;
}
.text-link:hover, .text-link:focus-visible { background-size: 100% 2px; }

/* ============================================================
   Kraft swing tag — the site-wide price motif
   ============================================================ */
.tag {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-border-deep);
  clip-path: polygon(0 50%, 16px 0, 100% 0, 100% 100%, 16px 100%);
  padding: 9px 14px 9px 30px;
  font-family: var(--font-secondary);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text);
  line-height: 1.2;
  transform-origin: 4px 50%;
  transition: transform 220ms ease;
}
.tag::before {
  content: "";
  position: absolute;
  inset: 1px;
  background: var(--color-bg);
  clip-path: polygon(0 50%, 15.5px 0, 100% 0, 100% 100%, 15.5px 100%);
  z-index: 0;
}
.tag::after { /* punched twine hole */
  content: "";
  position: absolute;
  left: 13px;
  top: 50%;
  width: 7px;
  height: 7px;
  margin-top: -3.5px;
  border-radius: 50%;
  background: var(--color-border-deep);
  box-shadow: inset 0 0 0 1.5px var(--color-border-deep);
  z-index: 1;
}
.tag > * { position: relative; z-index: 1; }
.tag .num { color: var(--color-accent); }
.tag-swing:hover, .swing-on-hover:hover .tag { transform: rotate(2deg); }

button.tag, a.tag { cursor: pointer; border: none; text-decoration: none; }
.tag--submit { font-size: 0.875rem; padding: 14px 22px 14px 38px; color: var(--color-accent-dark); }
.tag--submit:hover { transform: rotate(2deg); }

/* ============================================================
   Announcement ribbon + split-seal header
   ============================================================ */
.ribbon {
  background: var(--color-primary);
  color: var(--color-surface);
  text-align: center;
  font-size: 0.78125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 9px 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 14px 88px 14px 32px;
}
.nav-half { display: flex; gap: 30px; align-items: center; min-width: 0; }
.nav-left { justify-content: flex-end; }
.nav-right { justify-content: flex-start; }
.nav-half a {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  white-space: nowrap;
  padding-bottom: 3px;
  background-image: linear-gradient(var(--color-accent), var(--color-accent));
  background-repeat: no-repeat;
  background-size: 0% 2px;
  background-position: 0 100%;
  transition: background-size 180ms ease;
}
.nav-half a:hover, .nav-half a:focus-visible { background-size: 100% 2px; }
.nav-half a[aria-current="page"] { background-size: 100% 2px; }

.seal { display: block; line-height: 0; }
.seal img {
  width: 96px;
  height: 96px;
  transition: width 240ms ease, height 240ms ease;
}
.site-header.scrolled .seal img { width: 52px; height: 52px; }
.site-header.scrolled .header-inner { padding-top: 8px; padding-bottom: 8px; }

.utilities {
  position: absolute;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 16px;
}
.utilities a {
  color: var(--color-text);
  font-size: 1.35rem;
  line-height: 1;
  text-decoration: none;
  transition: color 150ms ease;
}
.utilities a:hover { color: var(--color-accent); }

.menu-toggle {
  display: none;
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 1.7rem;
  color: var(--color-text);
  cursor: pointer;
  line-height: 1;
  padding: 6px;
}

/* Full-screen mobile panel — parchment with Fraunces links */
.mobile-panel {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--color-bg);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  text-align: center;
  padding: 48px 24px;
}
.mobile-panel.open { display: flex; }
.mobile-panel a {
  font-family: var(--font-primary);
  font-size: 1.75rem;
  font-weight: 560;
  color: var(--color-text);
  text-decoration: none;
}
.mobile-panel a:hover { color: var(--color-accent-dark); }
.mobile-panel a.mp-minor { font-size: 1.1rem; color: var(--color-text-secondary); }
.panel-close {
  position: absolute;
  top: 26px;
  right: 26px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.panel-close img { width: 30px; height: 50px; }

/* ============================================================
   Shared section scaffolding
   ============================================================ */
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 32px; padding-right: 32px; }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 600ms ease, transform 600ms ease; }
.reveal.in-view { opacity: 1; transform: none; }

/* ============================================================
   Home — hero
   ============================================================ */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 45fr 55fr;
  min-height: min(86svh, 880px);
}
.hero::after { /* 4% grain unifying photo and parchment */
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: 0.04;
  mix-blend-mode: multiply;
  pointer-events: none;
}
.hero-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(56px, 8vh, 120px) clamp(28px, 4.5vw, 72px) clamp(72px, 16vh, 180px);
  min-width: 0;
  overflow: clip; /* crops the edge-bleed watermark; text sits padded in normal flow */
}
.fern-watermark {
  position: absolute;
  left: -13%;
  bottom: -8%;
  height: 70vh;
  width: auto;
  opacity: 0.07;
  pointer-events: none;
  z-index: 0;
}
.hero-copy > :not(.fern-watermark) { position: relative; z-index: 1; }
.hero-copy .lead { max-width: 44ch; margin-top: 26px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 38px; align-items: center; }
.hero-media { position: relative; min-height: 320px; }
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
}

@media (prefers-reduced-motion: no-preference) {
  .hero .fern-watermark { animation: fadeIn 1100ms ease both; }
  .hero h1 { animation: riseIn 700ms ease 250ms both; }
  .hero .lead, .hero .cta-row, .hero .eyebrow { animation: riseIn 700ms ease 450ms both; }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 0.07; } }
@keyframes riseIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ============================================================
   Home — welcome band (fern green, 66/33)
   ============================================================ */
.band-green { background: var(--color-primary); color: var(--color-surface); }
.welcome-grid {
  display: grid;
  grid-template-columns: 66fr 34fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
  padding-top: clamp(56px, 8vw, 88px);
  padding-bottom: clamp(64px, 9vw, 96px);
}
.welcome-grid h2 { color: var(--color-surface); }
.welcome-grid p { color: rgba(255, 253, 247, 0.9); max-width: 58ch; }
.band-green .eyebrow { color: var(--color-primary-light); }

.artifact-photo {
  position: relative;
  border: 6px solid var(--color-bg);
  transform: rotate(-1.2deg);
  box-shadow: 0 14px 34px rgba(46, 38, 32, 0.28);
}
.artifact-photo img { width: 100%; }
.artifact-photo figcaption.tag {
  position: absolute;
  right: -14px;
  bottom: -20px;
  transform: rotate(1.2deg);
  letter-spacing: 0.08em;
  font-size: 0.71875rem;
}

/* ============================================================
   Home — flagship Sun Shots
   ============================================================ */
.flagship { position: relative; padding: clamp(64px, 9vw, 110px) 0; }
.flagship-grid {
  display: grid;
  grid-template-columns: 58fr 42fr;
  align-items: center;
  max-width: var(--wrap);
  margin: 0 auto;
}
.flagship-media {
  position: relative;
  min-height: clamp(380px, 46vw, 560px);
}
.flagship-media > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  -webkit-mask-image: linear-gradient(to right, #000 72%, transparent 100%);
  mask-image: linear-gradient(to right, #000 72%, transparent 100%);
}
.flagship-product {
  position: absolute;
  right: -12%;
  bottom: 9%;
  width: clamp(200px, 22vw, 300px);
  border: 8px solid var(--color-bg);
  box-shadow: 0 16px 36px rgba(46, 38, 32, 0.3);
  z-index: 2;
  transition: transform 250ms ease;
}
.flagship-product:hover { transform: translateY(-4px); }
.flagship-product img { width: 100%; }
.flagship-copy { padding: 0 32px 0 clamp(120px, 11vw, 150px); min-width: 0; }
.flagship-copy h2 { font-size: 2.375rem; }
.flagship-copy p { margin-top: 18px; max-width: 46ch; }
.buy-row { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 30px; }
.buy-row:has(.btn-primary:hover) .tag { transform: rotate(2deg); }

/* ============================================================
   Home — shop galleries
   ============================================================ */
.shop { padding: clamp(72px, 9vw, 110px) 0 30px; }
.gallery { margin-bottom: clamp(64px, 8vw, 96px); }
.gallery-head {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 38px;
}
.gallery-head h2 { font-size: 2.125rem; white-space: nowrap; }
.gallery-head .rule { flex: 1; height: 1px; background: var(--color-border); min-width: 40px; }
.gallery-head--banded .gallery-head { margin-bottom: 0; }
.gallery-head--banded {
  position: relative;
  padding: 44px 30px;
  background-image:
    linear-gradient(rgba(221, 229, 208, 0.72), rgba(221, 229, 208, 0.72)),
    url("../images/7797450.jpeg");
  background-size: cover;
  background-position: center;
  margin-bottom: 38px;
}
.gallery-note { font-size: 0.9375rem; color: var(--color-text-secondary); max-width: 60ch; margin: -26px 0 34px; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  align-items: start; /* natural heights — gentle masonry rag */
}
.product-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 18px 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 200ms ease;
}
.product-card:hover { border-color: var(--color-primary-dark); }
.product-card img { width: 100%; transition: filter 200ms ease; }
.product-card:hover img { filter: brightness(1.03); }
.product-card:hover .tag { transform: rotate(2deg); }
.product-card h3 {
  font-family: var(--font-secondary);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
}
.card-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-secondary);
  font-size: 0.78125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-primary-dark);
  text-decoration: none;
  padding: 4px 0;
}
.card-cta i { color: var(--color-accent); font-size: 1.05rem; transition: transform 180ms ease; }
.card-cta:hover i { transform: translateX(4px); }

/* ============================================================
   Home — story strip + moss divider
   ============================================================ */
.story-grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
  padding-top: clamp(56px, 7vw, 90px);
  padding-bottom: clamp(56px, 7vw, 90px);
}
.story-grid figure { border: 6px solid var(--color-surface); box-shadow: 0 10px 28px rgba(46,38,32,.14); }
.story-copy { min-width: 0; }
.story-copy .pull-line { margin-bottom: 22px; }
.moss-divider {
  height: 160px;
  background-image: url("../images/1082365.jpeg");
  background-size: cover;
  background-position: center 60%;
  filter: saturate(0.8);
}

/* ============================================================
   Testimonial — rootbark brown
   ============================================================ */
.testimonial {
  background: var(--color-secondary);
  color: var(--color-surface);
  padding: clamp(76px, 10vw, 120px) 0;
}
.testimonial-inner {
  display: flex;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
  justify-content: space-between;
}
.testimonial-quote { margin-left: 12%; min-width: 0; }
.quote-glyph { width: 64px; height: 107px; margin-bottom: 28px; }
.testimonial blockquote {
  font-family: var(--font-primary);
  font-style: italic;
  font-size: clamp(1.4rem, 2.4vw, 1.875rem);
  line-height: 1.4;
  max-width: 28ch;
  color: var(--color-surface);
}
.testimonial cite {
  display: block;
  margin-top: 30px;
  font-family: var(--font-secondary);
  font-style: normal;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 253, 247, 0.7);
}
.testimonial-product {
  flex: none;
  width: 220px;
  text-align: center;
}
.testimonial-product .frame { border: 6px solid var(--color-bg); }
.testimonial-product .tag { margin-top: 18px; }

/* ============================================================
   Connect — sage wash band
   ============================================================ */
.connect { background: var(--color-primary-light); padding: clamp(68px, 9vw, 100px) 0; }
.connect h2 { margin-bottom: 10px; }
.connect-intro { max-width: 60ch; margin-bottom: 44px; }
.connect-grid {
  display: grid;
  grid-template-columns: 40fr 35fr 25fr;
  gap: clamp(32px, 4vw, 52px);
  align-items: start;
}
.connect-grid > * { min-width: 0; }

.contact-form { display: flex; flex-direction: column; gap: 18px; }
.contact-form label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-primary-dark);
  margin-bottom: 7px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 13px 15px;
  font-family: var(--font-secondary);
  font-size: 1rem;
  color: var(--color-text);
  transition: border-color 160ms ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--color-primary-dark);
  outline: 2px solid var(--color-primary-dark);
  outline-offset: 0;
}
.contact-form textarea { min-height: 130px; resize: vertical; }
.form-success {
  background: var(--color-surface);
  border: 1px solid var(--color-primary-dark);
  padding: 22px 24px;
  font-weight: 700;
  color: var(--color-primary-dark);
  display: flex;
  gap: 12px;
  align-items: center;
}

.map-frame { border: 1px solid var(--color-border-deep); background: var(--color-surface); padding: 6px; }
.map-frame iframe { width: 100%; height: 330px; border: 0; display: block; filter: sepia(0.18) saturate(0.92); }

.connect-aside h3 { font-size: 1.25rem; margin-bottom: 14px; }
.social-list { list-style: none; display: flex; flex-direction: column; gap: 14px; margin-bottom: 30px; }
.social-list a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text);
  font-weight: 700;
  text-decoration: none;
}
.social-list a i { color: var(--color-primary-dark); font-size: 1.3rem; }
.social-list a:hover { color: var(--color-accent-dark); }
.connect-notes { list-style: none; display: flex; flex-direction: column; gap: 12px; font-size: 0.9375rem; }
.connect-notes li { display: flex; gap: 10px; align-items: flex-start; }
.connect-notes i { color: var(--color-primary-dark); font-size: 1.15rem; margin-top: 2px; }

/* ============================================================
   Footer — rootbark brown, four columns
   ============================================================ */
.site-footer {
  background: var(--color-secondary);
  color: rgba(255, 253, 247, 0.82);
  font-size: 0.875rem;
  padding-top: clamp(56px, 7vw, 80px);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: clamp(32px, 4vw, 56px);
  padding-bottom: 54px;
}
.footer-grid > * { min-width: 0; }
.footer-brand img { width: 104px; height: 104px; margin-bottom: 18px; }
.footer-brand p { max-width: 30ch; }
.footer-head {
  font-family: var(--font-secondary);
  font-size: 0.78125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-surface);
  margin-bottom: 18px;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-links a {
  color: rgba(255, 253, 247, 0.82);
  text-decoration: none;
  transition: color 150ms ease;
}
.footer-links a:hover { color: var(--color-accent-light); }
.footer-contact { list-style: none; display: flex; flex-direction: column; gap: 13px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact i { font-size: 1.1rem; margin-top: 2px; color: var(--color-accent-light); }
.footer-contact a { color: rgba(255, 253, 247, 0.82); text-decoration: none; }
.footer-contact a:hover { color: var(--color-accent-light); }
.footer-bottom {
  border-top: 1px solid rgba(246, 241, 229, 0.18);
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.footer-bottom img { width: 18px; height: 30px; opacity: 0.85; }

/* ============================================================
   Interior page heroes & shared editorial blocks
   ============================================================ */
.page-hero-typo {
  position: relative;
  overflow: clip;
  padding: clamp(72px, 10vw, 120px) 0 clamp(48px, 6vw, 76px);
}
.page-hero-typo .fern-watermark {
  left: auto;
  right: -9%;
  top: -12%;
  bottom: auto;
  height: 125%;
  opacity: 0.1;
}
.page-hero-typo h1 { font-size: clamp(2.6rem, 5vw, 3.5rem); position: relative; }
.page-hero-typo .lead {
  position: relative;
  max-width: var(--measure);
  margin-top: 30px;
  margin-left: 16%;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  padding-top: clamp(48px, 6vw, 80px);
  padding-bottom: clamp(48px, 6vw, 80px);
}
.split > * { min-width: 0; }
.split figure.plain { border: 6px solid var(--color-surface); box-shadow: 0 10px 26px rgba(46,38,32,.12); }
.split h2 { margin-bottom: 18px; }

.img-stair { background: var(--color-primary-light); padding: 30px; }
.img-stair .artifact-photo { width: 92%; }
.img-stair .stair-stock {
  width: 86%;
  margin: -26px 0 0 14%;
  border: 6px solid var(--color-surface);
  position: relative;
  box-shadow: 0 10px 26px rgba(46,38,32,.16);
}

.callout {
  background: var(--color-primary-light);
  padding: 26px 30px;
  margin-top: 26px;
}
.callout .eyebrow { margin-bottom: 10px; }
.callout p { font-size: 0.984375rem; }

.founder {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(64px, 9vw, 100px) 24px;
}
.founder-portrait {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 30%;
  border: 3px solid var(--color-accent);
  box-shadow: 0 0 0 9px var(--color-bg), 0 0 0 10px var(--color-border-deep);
  margin: 10px auto 38px;
}
.founder h2 { margin-bottom: 20px; }
.founder p { text-align: left; }

.cta-band {
  background: var(--color-primary);
  color: var(--color-surface);
  padding: clamp(44px, 6vw, 64px) 0;
}
.cta-band .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px 36px;
  text-align: center;
}
.cta-band p {
  font-family: var(--font-primary);
  font-size: 1.75rem;
  line-height: 1.25;
  color: var(--color-surface);
}

/* ============================================================
   FAQs
   ============================================================ */
.faq-hero {
  display: grid;
  grid-template-columns: 55fr 45fr;
  align-items: center;
  border-bottom: 1px solid var(--color-border);
}
.faq-hero-copy {
  padding: clamp(48px, 7vw, 96px) clamp(28px, 4.5vw, 72px);
  min-width: 0;
}
.faq-hero-copy .lead { max-width: 52ch; margin-top: 24px; }
.faq-hero-media { position: relative; max-height: 52vh; min-height: 300px; }
.faq-hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}

.faq-intro { max-width: 880px; margin: 0 auto; padding: clamp(48px, 6vw, 72px) 24px 8px; }
.faq-intro p { max-width: var(--measure); }

.faq-list { max-width: 880px; margin: 0 auto; padding: clamp(40px, 5vw, 64px) 24px; }
.faq-item { position: relative; padding-left: 112px; margin-bottom: clamp(44px, 6vw, 64px); }
.faq-num {
  position: absolute;
  left: 0;
  top: -14px;
  font-family: var(--font-primary);
  font-size: 4rem;
  font-weight: 560;
  color: var(--color-accent);
  opacity: 0.3;
  transition: opacity 700ms ease;
  line-height: 1;
}
.faq-item.in-view .faq-num { opacity: 1; }
.faq-item h3 { font-size: 1.625rem; max-width: 30ch; }
.faq-answer {
  background: var(--color-primary-light);
  padding: 24px 28px;
  max-width: var(--measure);
  margin-top: 16px;
}

.howto {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
}
.howto-grid {
  display: grid;
  grid-template-columns: 40fr 60fr;
  gap: clamp(36px, 5vw, 64px);
  align-items: center;
  padding-top: clamp(48px, 6vw, 72px);
  padding-bottom: clamp(48px, 6vw, 72px);
}
.howto-grid > * { min-width: 0; }
.tag-line {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
  margin-top: 30px;
}
.tag-line::before { /* the implied twine line */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: var(--color-border-deep);
}
.tag-line .tag { z-index: 1; }
.tag-line .tag i { color: var(--color-primary-dark); font-size: 1.05rem; }

.cta-dark {
  position: relative;
  overflow: clip;
  background: var(--color-secondary);
  color: var(--color-surface);
  padding: clamp(64px, 9vw, 96px) 0;
  text-align: left;
}
.cta-dark .fern-watermark { opacity: 0.05; height: 130%; top: -15%; bottom: auto; left: auto; right: -6%; }
.cta-dark .wrap { position: relative; }
.cta-dark p.lead-line {
  font-family: var(--font-primary);
  font-style: italic;
  font-size: 1.75rem;
  line-height: 1.35;
  max-width: 34ch;
  color: var(--color-surface);
}
.cta-dark .cta-row { margin-top: 34px; }

/* ============================================================
   Customer stories
   ============================================================ */
.stories-hero { max-width: 920px; margin: 0 auto; padding: clamp(60px, 8vw, 96px) 24px clamp(40px, 5vw, 64px); }
.stories-hero h1 { font-size: 1.875rem; font-weight: 540; color: var(--color-text-secondary); margin-bottom: 8px; }
.stories-hero .lead { max-width: var(--measure); margin-bottom: 44px; }
.lead-quote blockquote {
  font-family: var(--font-primary);
  font-style: italic;
  font-size: clamp(1.875rem, 3.4vw, 2.75rem);
  line-height: 1.25;
  max-width: 30ch;
}
.lead-quote .quote-glyph { width: 54px; height: 90px; margin-bottom: 22px; }
.lead-quote cite {
  display: block;
  margin-top: 26px;
  font-family: var(--font-secondary);
  font-style: normal;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
}

.letters { columns: 2; column-gap: 32px; max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.letter {
  break-inside: avoid;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 30px 32px;
  margin-bottom: 32px;
  transition: transform 220ms ease, box-shadow 220ms ease;
}
.letter:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(46,38,32,.1); }
.initial-ring {
  width: 56px;
  height: 56px;
  border: 2px solid var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-primary);
  font-size: 1.2rem;
  color: var(--color-accent-dark);
  margin-bottom: 18px;
}
.initial-ring img { width: 16px; height: 27px; }
.letter h3 { font-size: 1.25rem; font-style: italic; font-weight: 500; margin-bottom: 12px; }
.letter p { font-size: 0.984375rem; }
.letter cite {
  display: block;
  margin-top: 16px;
  font-style: normal;
  font-size: 0.78125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
}
.stories-breaker { max-width: 1080px; margin: 8px auto 40px; padding: 0 24px; }
.stories-breaker figure { border: 6px solid var(--color-surface); box-shadow: 0 10px 26px rgba(46,38,32,.12); }
.stories-closing { max-width: 880px; margin: 0 auto; padding: clamp(40px, 5vw, 64px) 24px; }
.stories-closing p { max-width: var(--measure); }

.tiein { background: var(--color-primary-light); padding: clamp(52px, 7vw, 76px) 0; }
.tiein-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
}
.tiein-grid figure { width: 200px; flex: none; border: 6px solid var(--color-bg); }
.tiein-copy { flex: 1; min-width: 260px; }
.tiein-copy .pull-line { margin-bottom: 24px; }

.quiz-cta { text-align: center; max-width: 680px; margin: 0 auto; padding: clamp(64px, 9vw, 100px) 24px; }
.quiz-cta p.q {
  font-family: var(--font-primary);
  font-size: 1.625rem;
  line-height: 1.3;
  margin-bottom: 30px;
}

/* ============================================================
   Herbal potentials
   ============================================================ */
.hp-hero { position: relative; margin-bottom: clamp(80px, 10vw, 130px); }
.hp-hero > img {
  width: 100%;
  height: 60vh;
  min-height: 380px;
  object-fit: cover;
  object-position: center 55%;
}
.plaque {
  position: absolute;
  left: clamp(20px, 7vw, 96px);
  bottom: 0;
  transform: translateY(50%);
  background: var(--color-bg);
  border: 1px solid var(--color-border-deep);
  padding: clamp(24px, 3.5vw, 40px) clamp(26px, 4vw, 48px);
  max-width: min(620px, calc(100% - 40px));
  box-shadow: 0 16px 36px rgba(46, 38, 32, 0.22);
}
.plaque h1 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }

.teaching { max-width: 920px; margin: 0 auto; padding: 0 24px clamp(56px, 7vw, 88px); }
.teaching .single { max-width: var(--measure); }
.dropcap::first-letter {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 3.4em;
  line-height: 0.82;
  float: left;
  padding: 6px 12px 0 0;
  color: var(--color-primary-dark);
}
.broadsheet {
  columns: 2 32ch;
  column-gap: 48px;
  column-rule: 1px solid var(--color-border);
  margin: 34px 0;
  padding: 34px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.broadsheet p + p { margin-top: 1em; }

.soundwave { background: var(--color-secondary); color: var(--color-surface); padding: clamp(64px, 9vw, 100px) 0; }
.soundwave-grid {
  display: grid;
  grid-template-columns: 45fr 55fr;
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
}
.soundwave-grid > * { min-width: 0; }
.soundwave h2 { color: var(--color-surface); margin-bottom: 20px; }
.soundwave p { color: rgba(255, 253, 247, 0.88); max-width: 52ch; }
.soundwave .eyebrow { color: var(--color-primary-light); }
.duotone { background: var(--color-bg); overflow: hidden; }
.duotone img {
  width: 100%;
  filter: grayscale(1) contrast(1.02);
  mix-blend-mode: multiply;
  opacity: 0.92;
}
.guide-row { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; margin-top: 34px; }
.guide-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  padding: 18px;
  width: 240px;
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 220ms ease;
}
.guide-card:hover { transform: translateY(-4px); }
.guide-card h3 { font-family: var(--font-secondary); font-size: 1.05rem; font-weight: 700; line-height: 1.35; }

.tea-grid {
  display: grid;
  grid-template-columns: 45fr 55fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  padding-top: clamp(56px, 7vw, 90px);
  padding-bottom: clamp(56px, 7vw, 90px);
}
.tea-grid > * { min-width: 0; }
.tea-grid figure { border: 6px solid var(--color-surface); box-shadow: 0 10px 26px rgba(46,38,32,.12); }

.dual-cta { background: var(--color-primary-light); padding: clamp(48px, 7vw, 72px) 0; }
.dual-cta .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 26px 44px;
}
.dual-cta a {
  font-family: var(--font-primary);
  font-size: 1.625rem;
  color: var(--color-primary-dark);
  text-decoration: none;
  background-image: linear-gradient(var(--color-accent), var(--color-accent));
  background-repeat: no-repeat;
  background-size: 0% 2px;
  background-position: 0 100%;
  transition: background-size 200ms ease;
  padding-bottom: 4px;
}
.dual-cta a:hover, .dual-cta a:focus-visible { background-size: 100% 2px; }
.dual-cta img { width: 24px; height: 40px; }

/* ============================================================
   Workshops
   ============================================================ */
.ws-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  border-bottom: 1px solid var(--color-border);
}
.ws-hero-copy { padding: clamp(48px, 7vw, 96px) clamp(28px, 4.5vw, 72px); min-width: 0; }
.ws-hero-copy .lead { max-width: 48ch; margin-top: 24px; }
.ws-hero-media { position: relative; min-height: 320px; max-height: 62vh; }
.ws-hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.ledger { max-width: 880px; margin: 0 auto; padding: clamp(56px, 7vw, 88px) 24px; }
.ledger h2 { margin-bottom: 38px; }
.ledger-row { position: relative; border-top: 1px solid var(--color-border-deep); padding: 30px 0 30px 44px; }
.ledger-row:last-of-type { border-bottom: 1px solid var(--color-border-deep); }
.ledger-row > img { position: absolute; left: 0; top: 24px; width: 20px; height: 33px; }
.ledger-row h3 { font-size: 1.625rem; margin-bottom: 8px; }
.ledger-row p { max-width: var(--measure); }

.calendar { background: var(--color-primary-light); padding: clamp(56px, 7vw, 84px) 0; }
.calendar-grid {
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: clamp(36px, 5vw, 64px);
  align-items: start;
}
.calendar-grid > * { min-width: 0; }
.chalk-list { list-style: none; margin-top: 24px; display: flex; flex-direction: column; }
.chalk-list li {
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 14px 2px;
  border-bottom: 1px dashed var(--color-border-deep);
  font-variant-numeric: tabular-nums;
}
.chalk-list i { color: var(--color-primary-dark); }
.calendar .product-card { max-width: 330px; }

.ask-band { text-align: center; max-width: 640px; margin: 0 auto; padding: clamp(60px, 8vw, 92px) 24px; }
.ask-band p.q { font-family: var(--font-primary); font-size: 1.5rem; line-height: 1.35; margin-bottom: 28px; }

/* ============================================================
   Disclaimer — quiet typographic page
   ============================================================ */
.quiet-page { max-width: 660px; margin: 0 auto; padding: clamp(72px, 10vw, 110px) 24px; }
.quiet-page h1 { font-size: 2.25rem; text-align: center; margin-bottom: 36px; }
.quiet-page p { font-size: 1.0625rem; line-height: 1.7; }

/* ============================================================
   404
   ============================================================ */
.notfound { text-align: center; max-width: 640px; margin: 0 auto; padding: clamp(80px, 12vw, 140px) 24px; }
.notfound h1 { margin-bottom: 18px; }
.notfound p { max-width: 44ch; margin: 0 auto 34px; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1100px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .header-inner { gap: 20px; }
  .nav-half { gap: 18px; }
}

@media (max-width: 1020px) {
  /* split nav collapses: centered seal + hamburger, full-screen parchment panel */
  .nav-half, .utilities { display: none; }
  .menu-toggle { display: block; }
  .header-inner { grid-template-columns: 1fr; justify-items: center; padding: 12px 64px; }
  .seal img { width: 68px; height: 68px; }
  .connect-grid { grid-template-columns: 1fr 1fr; }
  .connect-aside { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .flagship-product { right: 4%; }
}

@media (max-width: 860px) {
  /* Hero flips: photo above type, watermark crops off the bottom-left */
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-media { order: -1; height: 52vh; min-height: 300px; }
  .fern-watermark { left: -22%; bottom: -12%; height: 58vh; }
  .hero-copy { padding-bottom: 88px; }

  .welcome-grid { grid-template-columns: 1fr; }
  .welcome-grid .artifact-photo { max-width: 440px; }

  .flagship-grid { grid-template-columns: 1fr; }
  .flagship-media { min-height: 0; }
  .flagship-media > img {
    position: relative;
    height: 56vw;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .flagship-product { right: 6%; bottom: -10%; width: 38vw; max-width: 240px; }
  .flagship-copy { padding: 80px 32px 0; }

  .story-grid, .split, .tea-grid, .soundwave-grid, .howto-grid, .calendar-grid { grid-template-columns: 1fr; }
  .split--rev > figure { order: -1; }
  .faq-hero, .ws-hero { grid-template-columns: 1fr; }
  .faq-hero-media, .ws-hero-media { order: -1; height: 42vh; }
  .testimonial-inner { flex-direction: column; align-items: flex-start; }
  .testimonial-quote { margin-left: 0; }
  .letters { columns: 1; }
  .page-hero-typo .lead { margin-left: 0; }
  .img-stair { max-width: 520px; }
}

@media (max-width: 760px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
}

@media (max-width: 640px) {
  /* Headlines gain weight rather than only shrinking */
  .display { font-weight: 660; }
  h1 { font-weight: 620; }
  .gallery-head h2 { white-space: normal; }
  .faq-item { padding-left: 0; padding-top: 8px; }
  .faq-num { position: static; display: block; font-size: 2.6rem; margin-bottom: 6px; }
  .footer-grid { grid-template-columns: 1fr; }
  .connect-grid { grid-template-columns: 1fr; }
  .ribbon { font-size: 0.71875rem; letter-spacing: 0.1em; }
}

@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr; }
  .product-card { max-width: 360px; margin: 0 auto; width: 100%; }
  .cta-row .btn { width: 100%; justify-content: center; }
  .tag-line { flex-direction: column; align-items: flex-start; }
  .tag-line::before { left: 18px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
