/* ==========================================================================
   MYTHRAE — site.css
   Design system extracted from index.html. Shared across all pages.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Brand palette: #694039 chestnut · #b0cbb0 sage · #d6cfc2 greige · #232014 near-black */
  --cream:        #F1ECE3;   /* page background — lighter warm base (lifted from brand greige for airiness) */
  --warm-cream:   #D6CFC2;   /* brand greige — section / card backgrounds */
  --sage:         #B0CBB0;   /* brand sage — secondary accent, "open" states */
  --sage-soft:    #C6D6C6;   /* derived softer sage */
  --taupe:        #3A3128;   /* body text — warm dark brown */
  --gold:         #694039;   /* brand chestnut — small-text accent (eyebrows, links, rules) */
  --ochre:        #C2A068;   /* warm accent — CTAs, highlights, the "glow" (never small text) */
  --ochre-deep:   #A9854E;   /* ochre hover/pressed */
  --dark-taupe:   #232014;   /* brand near-black — headings, dark "evening" sections */
  --whisper:      rgba(35, 32, 20, 0.55);
  --hairline:     rgba(35, 32, 20, 0.12);

  --serif:        'Cormorant Garamond', Georgia, serif;
  --sans:         'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max:          1100px;
  --max-reading:  640px;
  --max-form:     400px;

  --radius:       0;
  --transition:   0.3s ease;
}

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

html, body {
  background: var(--cream);
  color: var(--taupe);
  font-family: var(--sans);
  font-weight: 300;
  min-height: 100%;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.65;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  /* fine paper grain (first layer, multiply) over the warm gradients */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23p)' opacity='0.08'/%3E%3C/svg%3E"),
    radial-gradient(ellipse at top, rgba(194, 160, 104, 0.07), transparent 60%),
    radial-gradient(ellipse at bottom, rgba(176, 203, 176, 0.06), transparent 60%);
  background-blend-mode: multiply, normal, normal;
  background-size: 160px 160px, auto, auto;
  background-repeat: repeat, no-repeat, no-repeat;
  background-attachment: fixed, scroll, scroll;
}

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

a { color: var(--taupe); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--hairline); transition: text-decoration-color var(--transition); }
a:hover { text-decoration-color: var(--gold); }

button { font: inherit; cursor: pointer; }

::selection { background: var(--gold); color: var(--cream); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 300; color: var(--dark-taupe); line-height: 1.2; }
h1 { font-size: 48px; font-style: italic; }
h2 { font-size: 36px; font-style: italic; }
h3 { font-size: 26px; font-style: italic; }
h4 { font-size: 20px; }
p  { font-family: var(--sans); font-size: 16px; line-height: 1.8; color: var(--taupe); }

.eyebrow {
  font-family: var(--sans);
  font-weight: 400;
  letter-spacing: 0.28em;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--gold);
  text-indent: 0.28em;
}
/* Larger eyebrow for section headers — the small kicker above an h2. */
.eyebrow--lg { font-size: 13px; letter-spacing: 0.3em; }

.lead {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 22px;
  line-height: 1.5;
  color: var(--dark-taupe);
}

.muted { color: var(--whisper); font-size: 13px; }

/* Subtle high-end emphasis inside running copy — a touch more weight and open
   tracking rather than a hard bold, so it lifts a phrase without shouting. */
.txt-em {
  font-weight: 500;
  letter-spacing: 0.015em;
  color: var(--dark-taupe);
}

/* ---------- Layout ---------- */
.wrap        { width: 100%; max-width: var(--max);         margin: 0 auto; padding: 0 24px; }
.wrap-narrow { width: 100%; max-width: var(--max-reading); margin: 0 auto; padding: 0 24px; }

.section { padding: 100px 0; }
.section--tight { padding: 60px 0; }
.section--first { padding-top: 60px; }

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

.hairline { border: 0; border-top: 1px solid var(--hairline); margin: 0; }

/* Waveform section divider — audio made visible (equaliser); motion via SMIL in the SVG */
.wave-divider { width: 100%; max-width: 620px; margin: 26px auto; line-height: 0; }
.wave-divider svg { display: block; width: 100%; height: 42px; overflow: visible; }
.wave-divider .wd-base { stroke: var(--hairline); stroke-width: 1; }
.wave-divider .wd-bar { fill: var(--gold); }

/* --- Subtle premium micro-motion ------------------------------------ */
/* Prose links: gold underline wipes in from the left on hover */
main :is(p, h1, h2, h3, .lead, .card__body) a:not(.card__link):not(.btn) {
  text-decoration: none;
  border-bottom: 1px solid var(--hairline);
  background-image: linear-gradient(var(--gold), var(--gold));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  transition: background-size .35s ease, color .2s ease, border-color .2s ease;
}
main :is(p, h1, h2, h3, .lead, .card__body) a:not(.card__link):not(.btn):hover { background-size: 100% 1px; border-color: transparent; color: var(--gold); }

/* Whole card is clickable (stretched link) — consistent across the site */
.card { position: relative; }
.card .card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card .card__link { position: static; }
/* Card eyebrow: label left, status badge flush-right so badges line up across cards */
.card__eyebrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card__eyebrow .badge { margin-left: 0; flex-shrink: 0; }

/* Hero images ease in on load */
.article-hero__art img { animation: mythSettle 900ms ease both; }
@keyframes mythSettle { from { opacity: 0; transform: scale(1.02); } to { opacity: 1; transform: none; } }

/* "First to open" — a soft, living dot that sits cleanly before the text */
.badge--open::before, .badge--testers::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: currentColor; vertical-align: middle; animation: mythDot 4s ease-in-out infinite; }
@keyframes mythDot { 0%, 100% { opacity: .35; transform: scale(.82); } 50% { opacity: 1; transform: scale(1); } }

/* Sections rise gently into view as you scroll (driven by site.js IntersectionObserver) */
.section.reveal-init { opacity: 0; transform: translateY(26px); }
.section.reveal-in { opacity: 1; transform: none; transition: opacity .7s cubic-bezier(.4, 0, .2, 1), transform .7s cubic-bezier(.4, 0, .2, 1); }

/* Mini equaliser — inline audio accent glyph */
.eq-mini { width: 20px; height: 14px; vertical-align: middle; margin-right: 8px; }
.eq-mini rect { fill: var(--gold); }

/* Lab featured-essay carousel */
.lab-carousel { position: relative; overflow: hidden; }
.lab-carousel__track { display: flex; }
.lab-carousel__track.is-ready { transition: transform .6s cubic-bezier(.4, 0, .2, 1); }
.lab-feature { flex: 0 0 100%; box-sizing: border-box; text-align: center; padding: 40px 24px 44px; text-decoration: none; color: var(--taupe); background: rgba(176, 203, 176, 0.10); border: 1px solid var(--hairline); border-radius: 12px; }
.lab-feature h3 { font-family: var(--serif); font-weight: 300; font-size: clamp(24px, 4vw, 32px); margin: 12px 0 14px; }
.lab-feature p { max-width: 560px; margin: 0 auto 22px; font-size: 16px; }
.lab-feature__cta { font-family: var(--sans); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); border-bottom: 1px solid var(--gold); padding-bottom: 3px; }
.lab-carousel__dots { display: flex; justify-content: center; gap: 9px; margin-top: 20px; }
.lab-carousel__dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: var(--hairline); cursor: pointer; transition: background .2s ease, transform .2s ease; }
.lab-carousel__dots button[aria-current="true"] { background: var(--gold); transform: scale(1.25); }

/* Homepage hero feature — resting image with key benefits overlaid */
.hero-feature { position: relative; max-width: 1140px; margin: 0 auto; border-radius: 14px; overflow: hidden; }
.hero-feature > img { display: block; width: 100%; height: auto; }
/* Four benefits stay on ONE row and scale down together (fluid clamp sizing),
   rather than wrapping to a 2x2 grid on narrow screens. The three shared rows
   (icon / title / subtitle) are a subgrid so every icon, every title and every
   subtitle line up across the four columns even when a label wraps to two lines. */
.hero-feature__benefits { position: absolute; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: auto auto auto; column-gap: clamp(4px, 2vw, 46px); row-gap: clamp(4px, 1.1vw, 8px); padding: clamp(38px, 9vw, 72px) clamp(8px, 3vw, 24px) clamp(16px, 3vw, 28px); background: linear-gradient(0deg, rgba(28,22,16,.82) 0%, rgba(28,22,16,.4) 52%, rgba(28,22,16,0) 100%); }
.hb { display: grid; grid-row: span 3; grid-template-rows: subgrid; justify-items: center; align-items: end; text-align: center; min-width: 0; }
.hb svg { width: clamp(17px, 5vw, 27px); height: clamp(17px, 5vw, 27px); stroke: var(--cream); fill: none; stroke-width: 1.15; stroke-linecap: round; stroke-linejoin: round; opacity: .9; }
.hb__t { font-family: var(--sans); font-weight: 500; font-size: clamp(9.5px, 2.5vw, 13px); letter-spacing: .04em; color: var(--cream); line-height: 1.25; }
.hb__s { font-family: var(--sans); font-weight: 300; font-size: clamp(8.5px, 2.1vw, 12px); color: rgba(241,236,227,.7); line-height: 1.25; }

/* ---------- Header / nav (Aesop-style: centered wordmark, drawer from left) ---------- */
/* Header is now just a floating hamburger — no top bar, no lost screen space.
   It sits above the drawer so the same button morphs to an X to close. */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 120;
  background: transparent;
  border: none;
  pointer-events: none;
}
.site-header__inner {
  padding: 14px 16px;
  pointer-events: none;
}
/* Persistent wordmark bar removed — you reach Home from inside the drawer. */
.site-header__logo { display: none; }

/* Floating hamburger — always visible, on a soft cream pill so it reads
   over both the dark hero photo and light sections. */
.nav-toggle {
  pointer-events: auto;
  background: rgba(245, 240, 232, 0.82);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border: 1px solid var(--hairline);
  border-radius: 50%;
  width: 46px;
  height: 46px;
  position: relative;
  cursor: pointer;
  padding: 0;
  box-shadow: 0 2px 14px rgba(42, 31, 24, 0.16);
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
}
.nav-toggle:hover { transform: translateY(-1px); box-shadow: 0 4px 18px rgba(42, 31, 24, 0.22); }
.nav-toggle::before,
.nav-toggle::after,
.nav-toggle span {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--taupe);
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle::before { top: 17px; }
.nav-toggle span    { top: 22px; display: block; }
.nav-toggle::after  { top: 27px; }
.nav-toggle[aria-expanded="true"]::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"]::after  { transform: translateY(-5px) rotate(-45deg); }
.nav-toggle[aria-expanded="true"] span    { opacity: 0; }

/* Slide-out drawer from LEFT */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 380px;
  max-width: 86%;
  background: var(--cream);
  z-index: 110;
  transform: translateX(-100%);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 92px 36px 36px;
  border-right: 1px solid var(--hairline);
  overflow-y: auto;
  box-shadow: 4px 0 28px rgba(42, 31, 24, 0.08);
}

.site-nav[data-open="true"] { transform: translateX(0); }

.site-nav a {
  display: block;
  width: 100%;
  padding: 18px 0;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--taupe);
  border-bottom: 1px solid var(--hairline);
  transition: color var(--transition);
  text-indent: 0.24em;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--gold); }

.site-nav__cta {
  margin-top: 32px;
  padding: 16px 22px !important;
  border: 1px solid var(--taupe) !important;
  border-bottom: 1px solid var(--taupe) !important;
  text-align: center;
  font-size: 11px !important;
  letter-spacing: 0.26em !important;
  color: var(--taupe);
  transition: background var(--transition), color var(--transition);
}
.site-nav__cta:hover { background: var(--dark-taupe); color: var(--cream); }

/* Overlay backdrop when drawer is open */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(42, 31, 24, 0.36);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 100;
}
.nav-overlay[data-open="true"] {
  opacity: 1;
  pointer-events: auto;
}

/* Tighter header on mobile */
@media (max-width: 600px) {
  .site-header__inner { padding: 12px 14px; }
  .nav-toggle { width: 42px; height: 42px; }
  .nav-toggle::before { top: 15px; left: 13px; right: 13px; }
  .nav-toggle span    { top: 20px; left: 13px; right: 13px; }
  .nav-toggle::after  { top: 25px; left: 13px; right: 13px; }
  .site-nav { padding: 80px 28px 28px; width: 320px; }
}

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: 60px 24px 72px;
}
.hero__eyebrow { margin-bottom: 24px; }
.hero__title   { font-size: 56px; max-width: 760px; margin: 0 auto 28px; }
.hero__lead    { max-width: 580px; margin: 0 auto 40px; }
/* Very subtle, slow sway on the homepage headline — Aesop-restrained */
.hero__title--sway { animation: heroSway 9s ease-in-out infinite; will-change: transform; }
@keyframes heroSway { 0%, 100% { transform: translateX(-3px); } 50% { transform: translateX(3px); } }

/* ---------- Cards ---------- */
.card {
  border: 1px solid var(--hairline);
  padding: 36px 30px;
  background: rgba(255, 255, 255, 0.35);
  transition: border-color var(--transition), transform var(--transition);
  border-radius: 5px;
}
.card:hover { border-color: var(--gold); }

.card__eyebrow { margin-bottom: 14px; }
.card__title   { margin-bottom: 14px; font-size: 24px; }
.card__body    { font-size: 15px; }
.card__link {
  display: inline-block;
  margin-top: 22px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--gold);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 3px;
}
.card__link:hover { color: var(--dark-taupe); border-color: var(--dark-taupe); }

/* M-mark in the header */
.site-header__logo .logo-mark { height: 42px; width: auto; }
@media (max-width: 600px) { .site-header__logo .logo-mark { height: 36px; } }

/* Image-topped pillar / feature cards */
.card--media {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.35);
}
.card--media .card__media { display: block; aspect-ratio: 3 / 2; overflow: hidden; }
.card--media .card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.7s ease; }
.card--media:hover .card__media img { transform: scale(1.05); }
.card--media .card__inner { padding: 30px 28px; display: flex; flex-direction: column; flex: 1; }
.card--media .card__inner .card__body { flex: 1; }
.card--media--sage { border-color: rgba(176, 203, 176, 0.6); }
.card--media--sage .card__inner { background: rgba(176, 203, 176, 0.16); }

/* Whole-card click target: the card__link's ::after stretches over the entire
   card, so a click anywhere on the card follows that link. */
.card--media { position: relative; cursor: pointer; }
.card--media .card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card--media .card__media { z-index: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  padding: 16px 28px;
  text-decoration: none;
  text-indent: 0.28em;
  border: 1px solid var(--ochre);
  background: var(--ochre);
  color: var(--dark-taupe);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  border-radius: 3px;
}
.btn:hover { background: var(--ochre-deep); border-color: var(--ochre-deep); color: var(--dark-taupe); }

.btn--dark { background: var(--dark-taupe); border-color: var(--dark-taupe); color: var(--cream); }
.btn--dark:hover { background: var(--ochre); border-color: var(--ochre); color: var(--dark-taupe); }

.btn--ghost { background: transparent; color: var(--taupe); border-color: var(--taupe); }
.btn--ghost:hover { background: var(--dark-taupe); color: var(--cream); border-color: var(--dark-taupe); }

/* ---------- Email opt-in (shared component) ---------- */
.optin {
  max-width: var(--max-form);
  margin: 0 auto;
  text-align: left;
}
.optin__label {
  font-family: var(--sans);
  font-weight: 400;
  letter-spacing: 0.28em;
  font-size: 10px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  display: block;
  text-indent: 0.28em;
  text-align: center;
}
.optin__note {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 11px;
  color: var(--whisper);
  margin-top: 16px;
  line-height: 1.7;
  letter-spacing: 0.02em;
  text-align: center;
}
/* Success message shown in place of the form after a sign-up. */
.optin__success {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--gold);
  text-align: center;
  max-width: 460px;
  margin: 8px auto 0;
}
.section--evening .optin__success { color: var(--ochre); }
/* Prominent incentive line above the form — a real reason to sign up,
   larger and darker than the fine-print note. */
.optin__hook {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 15px;
  color: var(--taupe);
  line-height: 1.65;
  letter-spacing: 0.01em;
  text-align: center;
  max-width: 460px;
  margin: 0 auto 22px;
}
.optin__hook .txt-em { color: var(--gold); }
.optin__consent {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--whisper);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 14px 0;
  line-height: 1.6;
  cursor: pointer;
}
.optin__consent input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--dark-taupe);
}

/* Kit form overrides (forces brand styling onto Kit's defaults) */
.formkit-form { width: 100% !important; max-width: 100% !important; padding: 0 !important; margin: 0 !important; background: transparent !important; box-shadow: none !important; border: none !important; }
.formkit-fields { display: flex !important; flex-direction: column !important; margin: 0 !important; gap: 0 !important; }
.formkit-field, .formkit-submit { margin: 0 !important; flex: 1 0 100% !important; }
.formkit-input {
  width: 100% !important;
  padding: 18px 22px !important;
  border: 1px solid var(--taupe) !important;
  background: transparent !important;
  font-family: var(--sans) !important;
  font-weight: 300 !important;
  font-size: 14px !important;
  color: var(--taupe) !important;
  margin-bottom: 14px !important;
  letter-spacing: 0.04em !important;
  transition: border-color var(--transition) !important;
  border-radius: 3px !important;
  line-height: 1.4 !important;
}
.formkit-input:focus { outline: none !important; border-color: var(--gold) !important; }
.formkit-input::placeholder { color: var(--taupe) !important; opacity: 0.4 !important; }
.formkit-submit {
  position: relative !important;
  width: 100% !important;
  padding: 0 !important;
  background: var(--ochre) !important;
  color: var(--dark-taupe) !important;
  border: none !important;
  font-family: var(--sans) !important;
  font-weight: 500 !important;
  letter-spacing: 0.28em !important;
  text-transform: uppercase !important;
  font-size: 11px !important;
  cursor: pointer !important;
  transition: background var(--transition) !important;
  border-radius: 3px !important;
  margin: 0 !important;
  overflow: hidden !important;
}
.formkit-submit:hover, .formkit-submit:focus { background: var(--ochre-deep) !important; outline: none !important; }
.formkit-submit > span { display: block !important; padding: 18px 22px !important; text-indent: 0.28em !important; }

.formkit-spinner { display: flex !important; position: absolute !important; top: 0 !important; left: 0 !important; right: 0 !important; height: 0 !important; width: 0 !important; margin: 0 auto !important; overflow: hidden !important; text-align: center !important; transition: all 300ms ease-in-out !important; }
.formkit-submit[data-active] .formkit-spinner { opacity: 1 !important; height: 100% !important; width: 50px !important; align-items: center !important; }
.formkit-submit[data-active] .formkit-spinner ~ span { opacity: 0 !important; }
.formkit-spinner > div { margin: auto !important; width: 8px !important; height: 8px !important; background-color: var(--dark-taupe) !important; opacity: 0.6 !important; border-radius: 100% !important; display: inline-block !important; animation: mythrae-bounce 1.4s infinite ease-in-out both !important; }
.formkit-spinner > div:nth-child(1) { animation-delay: -0.32s !important; }
.formkit-spinner > div:nth-child(2) { animation-delay: -0.16s !important; }
@keyframes mythrae-bounce { 0%, 80%, 100% { transform: scale(0); } 40% { transform: scale(1); } }

.formkit-form .formkit-alert { font-family: var(--serif) !important; font-style: italic !important; font-size: 22px !important; line-height: 1.4 !important; padding: 28px 0 !important; margin: 0 !important; background: transparent !important; border: none !important; border-radius: 0 !important; text-align: center !important; list-style: none !important; }
.formkit-form .formkit-alert-success { color: var(--dark-taupe) !important; }
.formkit-form .formkit-alert-error { font-family: var(--sans) !important; font-style: normal !important; font-size: 13px !important; color: #8b3a2c !important; padding: 12px 0 !important; letter-spacing: 0.02em !important; }
.formkit-form .formkit-alert:empty { display: none !important; }
.formkit-powered-by-convertkit-container, .formkit-powered-by-convertkit { display: none !important; }

/* ---------- Article (Lab) ---------- */
.article-hero {
  text-align: center;
  padding: 60px 24px 40px;
  border-bottom: 1px solid var(--hairline);
}
.article-hero .eyebrow { margin-bottom: 20px; }
.article-hero h1 { font-size: 52px; max-width: 760px; margin: 0 auto 16px; }
.article-hero__meta { font-family: var(--sans); font-size: 12px; color: var(--whisper); letter-spacing: 0.08em; margin-top: 16px; }

/* Ingredient-collage hero art slot */
/* Photos sit clean and warm — soft corners, a whisper of shadow, no white frame (Aesop-clean) */
.article-hero__art {
  max-width: 760px;
  margin: 0 auto 44px;
  aspect-ratio: 21 / 9;
  overflow: hidden;
  position: relative;
  border-radius: 6px;
  box-shadow: 0 20px 46px -30px rgba(74, 59, 46, 0.24);
}
.article-hero__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.article-hero__art--placeholder {
  background: linear-gradient(135deg, rgba(105, 64, 57, 0.08), rgba(176, 203, 176, 0.12));
  border: 1px solid var(--hairline);
  box-shadow: none;
}
.article-hero__art--placeholder::before {
  content: "Ingredient collage — to add";
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--whisper);
  text-indent: 0.18em;
}

/* Inline mid-article ingredient figures */
.article-body figure.ingredient {
  margin: 52px auto;
  text-align: center;
  max-width: 560px;
}
.article-body figure.ingredient img {
  width: 100%;
  height: auto;
  display: block;
  box-shadow: 0 16px 48px -20px rgba(35, 32, 20, 0.30);
}
.article-body figure.ingredient figcaption {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--whisper);
  margin-top: 14px;
  text-indent: 0.22em;
}
.article-body figure.ingredient--placeholder {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, rgba(184, 153, 104, 0.10), rgba(176, 203, 176, 0.14));
  border: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: center;
}
.article-body figure.ingredient--placeholder::before {
  content: attr(data-label);
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--whisper);
  text-indent: 0.18em;
}

.article-body { padding: 60px 24px 80px; }
.article-body h2 { font-size: 30px; margin: 56px 0 18px; }
.article-body h3 { font-size: 22px; font-style: normal; font-family: var(--sans); font-weight: 500; margin: 40px 0 12px; letter-spacing: 0.02em; }
.article-body p  { margin-bottom: 22px; font-size: 17px; }
.article-body p:first-of-type::first-letter {
  font-family: var(--serif);
  font-style: italic;
  font-size: 64px;
  line-height: 0.85;
  float: left;
  padding: 6px 12px 0 0;
  color: var(--dark-taupe);
}
.article-body ul, .article-body ol { padding-left: 22px; margin-bottom: 22px; }
.article-body li { margin-bottom: 10px; line-height: 1.8; }
.article-body blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  line-height: 1.5;
  border-left: 2px solid var(--gold);
  padding: 14px 0 14px 24px;
  margin: 36px 0;
  color: var(--dark-taupe);
}
.article-body .references {
  font-size: 13px;
  color: var(--whisper);
  border-top: 1px solid var(--hairline);
  padding-top: 24px;
  margin-top: 56px;
}
.article-body .references h3 { font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); margin-top: 0; }
.article-body .references li { font-size: 13px; margin-bottom: 8px; }

.article-disclaimer {
  background: rgba(176, 203, 176, 0.08);
  padding: 18px 24px;
  font-size: 13px;
  color: var(--taupe);
  line-height: 1.65;
  margin: 36px auto 0;
  max-width: var(--max-reading);
  border-left: 2px solid var(--sage);
}

/* ---------- Lab hub ---------- */
.lab-filter {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 0 auto 48px;
  flex-wrap: wrap;
}

.lab-filter__chip {
  background: none;
  border: 1px solid var(--hairline);
  padding: 11px 20px;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--taupe);
  cursor: pointer;
  text-indent: 0.24em;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  border-radius: 3px;
}

.lab-filter__chip:hover { border-color: var(--gold); }
.lab-filter__chip[aria-current="true"] {
  background: var(--dark-taupe);
  color: var(--cream);
  border-color: var(--dark-taupe);
}
.lab-filter__chip:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.lab-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 24px;
}
.lab-tile {
  border: 1px solid var(--hairline);
  padding: 36px 32px;
  text-decoration: none;
  color: var(--taupe);
  transition: border-color var(--transition), background var(--transition);
  display: block;
}
.lab-tile:hover { border-color: var(--gold); background: rgba(255,255,255,0.4); text-decoration: none; }
.lab-tile .eyebrow { margin-bottom: 14px; }
.lab-tile h3 { font-size: 24px; margin-bottom: 12px; }
.lab-tile p { font-size: 14px; color: var(--whisper); margin: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--warm-cream);
  border-top: 1px solid var(--hairline);
  padding: 60px 24px 28px;
  margin-top: auto;
}
.site-footer__inner { max-width: var(--max); margin: 0 auto; }
.site-footer__cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.site-footer__col h4 { font-family: var(--sans); font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); font-weight: 400; font-style: normal; margin-bottom: 18px; }
.site-footer__col ul { list-style: none; }
.site-footer__col li { margin-bottom: 10px; }
.site-footer__col a { font-family: var(--sans); font-size: 13px; color: var(--taupe); text-decoration: none; }
.site-footer__col a:hover { color: var(--gold); }

.site-footer__disclaimer {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--whisper);
  line-height: 1.7;
  max-width: 720px;
  margin-bottom: 24px;
}

.site-footer__bottom {
  border-top: 1px solid var(--hairline);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.site-footer__bottom p { font-family: var(--sans); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--whisper); margin: 0; }
.site-footer__bottom a { font-size: 11px; color: var(--whisper); letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none; margin-left: 18px; }
.site-footer__bottom a:hover { color: var(--gold); }

@media (max-width: 700px) {
  .site-footer__cols { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- Coming-soon badge ---------- */
.badge {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 6px 13px;
  border: 1px solid var(--gold);
  color: var(--gold);
  margin-left: 12px;
  vertical-align: middle;
  border-radius: 2px;
}
/* Three status states: outlined .badge = "Coming soon"; .badge--testers = opening to testers; .badge--open = live now */
.badge--open {
  background: var(--sage);
  border-color: var(--sage);
  color: var(--dark-taupe);
}
.badge--testers { background: rgba(176, 203, 176, 0.30); border-color: var(--sage); color: var(--dark-taupe); }

/* ---------- Evening band (Founders Club anchor) ---------- */
.section--evening {
  background: var(--dark-taupe);
  background-image:
    radial-gradient(ellipse at 50% 0%, rgba(194, 160, 104, 0.16), transparent 62%),
    radial-gradient(ellipse at bottom, rgba(176, 203, 176, 0.06), transparent 60%);
  border-top: 1px solid rgba(194, 160, 104, 0.35);
  border-bottom: 1px solid rgba(194, 160, 104, 0.35);
}
.section--evening h2, .section--evening h3 { color: var(--cream); }
.section--evening .eyebrow { color: var(--ochre); }
.section--evening p { color: rgba(241, 236, 227, 0.82); }
/* Emphasised phrases lift in warm ochre on the dark band (the default --dark-taupe would be unreadable) */
.section--evening .txt-em { color: var(--ochre); }
.section--evening .optin__consent { color: rgba(241, 236, 227, 0.6); }
.section--evening .scarcity { color: var(--ochre); font-style: italic; font-family: var(--serif); font-size: 18px; }
/* Legible email input on the dark band */
.section--evening .formkit-input { border-color: rgba(241,236,227,0.5) !important; background: rgba(241,236,227,0.06) !important; color: var(--cream) !important; }
.section--evening .formkit-input::placeholder { color: var(--cream) !important; opacity: 0.5 !important; }
.section--evening .formkit-input:focus { border-color: var(--ochre) !important; }

.founder-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 44px;
  max-width: 780px;
  margin: 40px auto 8px;
  text-align: left;
  list-style: none;
}
.founder-list li {
  position: relative;
  padding-left: 22px;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  color: rgba(241, 236, 227, 0.82);
}
.founder-list li::before { content: "\2014"; position: absolute; left: 0; color: var(--ochre); }
.founder-list strong { color: var(--cream); font-weight: 500; }

/* ---------- Territory strip (products) ---------- */
.territory { padding: 56px 0; border-top: 1px solid var(--hairline); }
.territory__head { text-align: center; max-width: 620px; margin: 0 auto 40px; }
.territory--mind   { background: rgba(176, 203, 176, 0.10); }
.territory--moment { background: rgba(214, 207, 194, 0.28); }
.territory--memory { background: rgba(194, 160, 104, 0.10); }

/* ---------- Compact per-card capture ---------- */
.capture { margin-top: 22px; }
.capture .optin__consent { font-size: 11px; margin: 12px 0 0; }
.card--coming { background: rgba(255, 255, 255, 0.22); }
.card--coming .card__title { color: var(--taupe); }

/* ---------- Mobile / responsive ---------- */
@media (max-width: 860px) {
  h1 { font-size: 36px; }
  h2 { font-size: 28px; }
  h3 { font-size: 22px; }
  .hero__title { font-size: 38px; }
  .article-hero h1 { font-size: 36px; }
  .section { padding: 60px 0; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; gap: 32px; }
  .lab-grid { grid-template-columns: 1fr; gap: 20px; }
  .founder-list { grid-template-columns: 1fr; gap: 16px; }
  .article-body p { font-size: 16px; }
  .article-body p:first-of-type::first-letter { font-size: 48px; padding: 4px 10px 0 0; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  /* These few subtle brand motions stay alive even under reduce-motion (deliberate house style) */
  .article-hero__art img { animation: mythSettle 900ms ease both !important; }
  .badge--open::before, .badge--testers::before { animation: mythDot 4s ease-in-out infinite !important; }
  .hero__title--sway { animation: heroSway 9s ease-in-out infinite !important; }
  main :is(p, h1, h2, h3, .lead, .card__body) a:not(.card__link):not(.btn) { transition: background-size .35s ease, color .2s ease, border-color .2s ease !important; }
}
@media (prefers-reduced-motion: reduce) {
  .section.reveal-in { transition: opacity .7s ease, transform .7s ease !important; }
}

/* ---------- Focus styles (a11y) ---------- */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
