/* =====================================================================
   ENTHUSIAST PRODUCTS CORPORATION — enthusiastproducts.com
   main.css · v1.0 · April 2026
   ---------------------------------------------------------------------
   Family: Fraunces / Geist / JetBrains Mono · editorial-industrial.
   Palette rotation from EPC: forest + sage replaces navy + copper.
   Rhythm: more serif breathing room, more whitespace, longer headlines,
   less mono-density. Long-horizon tone — chemistry, not operations log.
   ===================================================================== */

/* ---------- DESIGN TOKENS ---------- */
:root {
  --forest:      #0e2218;
  --forest-2:    #14302a;
  --forest-soft: rgba(14, 34, 24, 0.78);
  --cream:       #f4ebd9;
  --cream-2:     #ece2cd;
  --cream-dim:   #e0d4ba;
  --sage:        #8aa48f;
  --sage-deep:   #6f8e7a;
  --sage-soft:   rgba(138, 164, 143, 0.55);
  --sage-line:   rgba(138, 164, 143, 0.22);
  --sage-faint:  rgba(138, 164, 143, 0.10);
  --brass:       #b5a878;       /* warm tertiary accent — used sparingly */
  --ink-on-dark: #f4ebd9;
  --ink-mute:    rgba(244, 235, 217, 0.62);
  --ink-faint:   rgba(244, 235, 217, 0.30);

  --serif:       'Fraunces', 'Times New Roman', serif;
  --sans:        'Geist', system-ui, -apple-system, sans-serif;
  --mono:        'JetBrains Mono', 'Menlo', 'Consolas', monospace;

  --hairline:    1px solid var(--sage-line);
  --rule-dark:   1px solid rgba(14, 34, 24, 0.18);

  --ease:        cubic-bezier(0.22, 1, 0.36, 1);
  --pad-x:       max(28px, 4vw);
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--cream);
  background: var(--forest);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'ss01', 'cv11';
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; background: none; border: 0; }
a { color: inherit; text-decoration: none; }

/* ---------- DECK LAYOUT — vertical scroll-snap ---------- */
.deck {
  scroll-snap-type: y mandatory;
  height: 100vh;
  overflow-y: scroll;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--sage-soft) transparent;
}
.deck::-webkit-scrollbar { width: 6px; }
.deck::-webkit-scrollbar-thumb { background: var(--sage-soft); border-radius: 3px; }
.deck::-webkit-scrollbar-track { background: transparent; }

.slide {
  scroll-snap-align: start;
  scroll-snap-stop: always;
  min-height: 100vh;
  position: relative;
  padding: 80px var(--pad-x) 56px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

@media (max-width: 768px) {
  .deck { scroll-snap-type: none; height: auto; overflow: visible; }
  .slide { min-height: auto; padding: 64px var(--pad-x) 48px; scroll-snap-align: none; }
}

/* ---------- ALTERNATING PALETTE — dark / light ---------- */
.slide.dark  { background: var(--forest); color: var(--cream);  }
.slide.light { background: var(--cream);  color: var(--forest); }

/* ---------- PERSISTENT NAV BAR ---------- */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--pad-x);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream);
  mix-blend-mode: difference;
  pointer-events: none;
}
.topbar a, .topbar button { pointer-events: auto; }
.topbar .brand { font-family: var(--serif); font-style: italic; font-size: 18px; letter-spacing: -0.01em; text-transform: none; font-weight: 400; }
.topbar .brand b { font-weight: 600; }
.topbar .nav-right { display: flex; gap: 28px; align-items: center; }
.topbar .nav-right a { opacity: 0.85; transition: opacity 0.2s var(--ease), color 0.2s var(--ease); }
.topbar .nav-right a:hover { opacity: 1; color: var(--sage); }
@media (max-width: 640px) {
  .topbar { padding: 14px var(--pad-x); }
  .topbar .nav-right { display: none; }
}

/* ---------- PROGRESS RAIL ---------- */
.rail {
  position: fixed;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  mix-blend-mode: difference;
  color: var(--cream);
}
.rail a {
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0.45;
  transition: opacity 0.25s var(--ease);
}
.rail a::before {
  content: '';
  width: 18px;
  height: 1px;
  background: currentColor;
  transition: width 0.25s var(--ease), background 0.25s var(--ease);
}
.rail a.is-active { opacity: 1; }
.rail a.is-active::before { width: 36px; background: var(--sage); }
.rail a:hover { opacity: 1; }
.rail .label { font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .rail { display: none; } }

/* ---------- AXIS MARKS ---------- */
.axis {
  position: absolute;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.55;
  line-height: 1.5;
}
.axis.tl { top: 80px;    left: var(--pad-x); }
.axis.tr { top: 80px;    right: var(--pad-x); text-align: right; }
.axis.bl { bottom: 56px; left: var(--pad-x); }
.axis.br { bottom: 56px; right: var(--pad-x); text-align: right; }
.axis b { color: var(--sage); font-weight: 400; }

@media (max-width: 768px) {
  .axis { font-size: 9px; letter-spacing: 0.18em; }
  .axis.tl, .axis.tr { top: 64px; }
  .axis.bl, .axis.br { bottom: 32px; }
}

/* ---------- PLATE LABEL ---------- */
.plate {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 32px;
}
.plate::before {
  content: '';
  width: 36px;
  height: 1px;
  background: var(--sage);
}

/* ---------- TYPE SCALE — Products leans heavier into Fraunces ---------- */
.display {
  font-family: var(--serif);
  font-weight: 300;
  font-style: normal;
  letter-spacing: -0.025em;
  line-height: 0.98;
  font-variation-settings: 'opsz' 144, 'SOFT' 60;
}
.display em { font-style: italic; color: var(--sage); font-weight: 300; }

h1.display { font-size: clamp(48px, 7.6vw, 132px); }
h2.display { font-size: clamp(40px, 5.8vw, 92px); }
h3.display { font-size: clamp(28px, 3.4vw, 52px); }

.subhead {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(20px, 1.7vw, 26px);
  line-height: 1.45;
  letter-spacing: -0.005em;
  max-width: 60ch;
  opacity: 0.85;
}

.body-copy {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.65;
  max-width: 60ch;
}
.body-copy + .body-copy { margin-top: 1.1em; }
.body-copy em { font-style: italic; color: var(--sage); }

.eyebrow {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--sage);
}

.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ---------- HERO (Slide 01) ---------- */
.hero {
  background: var(--forest);
  color: var(--cream);
  padding-bottom: 110px;
}
.hero-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr auto;
  gap: 48px;
  align-items: end;
  margin-top: 60px;
  position: relative;
  z-index: 2;
}
.hero-content { max-width: 1100px; position: relative; z-index: 2; }
.hero-content h1 { margin-bottom: 32px; }
.hero-content .subhead { margin-bottom: 56px; }

.hero-cta { display: flex; gap: 14px; margin-top: 0; flex-wrap: wrap; margin-bottom: 24px; }

/* Hex pattern background — chemistry lattice */
.hex-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
}
.hex-bg svg { width: 100%; height: 100%; }

/* Molecular hero glyph — H₂ + N₂ → 2NH₃ stylized */
.hero-glyph {
  position: absolute;
  top: 50%;
  right: -4%;
  transform: translateY(-50%);
  width: min(720px, 56vw);
  aspect-ratio: 1;
  opacity: 0.92;
  z-index: 1;
}
.hero-glyph svg { width: 100%; height: 100%; }
@media (max-width: 1100px) {
  .hero-glyph { right: -18%; opacity: 0.45; width: 90vw; }
}

.hero-stats {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: var(--hairline);
  padding-top: 24px;
}
.hero-stat {
  padding: 0 24px 0 0;
  border-right: var(--hairline);
}
.hero-stat:last-child { border-right: 0; padding-right: 0; }
.hero-stat .value {
  font-family: var(--mono);
  font-size: clamp(20px, 2.1vw, 28px);
  font-weight: 500;
  color: var(--cream);
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin-bottom: 6px;
}
.hero-stat .value em { color: var(--sage); font-style: normal; }
.hero-stat .label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  line-height: 1.4;
}
@media (max-width: 768px) {
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 24px 0; padding-top: 18px; }
  .hero-stat { padding: 0 18px 0 0; }
  .hero-stat:nth-child(2n) { border-right: 0; padding-right: 0; }
  .hero-stat:nth-child(odd) { border-right: var(--hairline); }
  .hero-stat:nth-child(3), .hero-stat:nth-child(4) { padding-top: 18px; border-top: var(--hairline); }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid var(--sage);
  color: var(--cream);
  background: transparent;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.btn::after { content: '→'; transition: transform 0.25s var(--ease); }
.btn:hover { background: var(--sage); color: var(--forest); }
.btn:hover::after { transform: translateX(4px); }
.btn.primary { background: var(--sage); color: var(--forest); }
.btn.primary:hover { background: transparent; color: var(--cream); }
.slide.light .btn { color: var(--forest); }
.slide.light .btn:hover { background: var(--sage-deep); color: var(--cream); border-color: var(--sage-deep); }
.slide.light .btn.primary { background: var(--sage-deep); color: var(--cream); border-color: var(--sage-deep); }
.slide.light .btn.primary:hover { background: transparent; color: var(--forest); border-color: var(--forest); }

/* ---------- THE IDEA (Slide 02) — chain of three ---------- */
.idea-block { flex: 1; display: flex; flex-direction: column; margin-top: 40px; }
.idea-block h2 { margin-bottom: 24px; max-width: 22ch; }
.idea-block .subhead { margin-bottom: 64px; }

.chain {
  display: grid;
  grid-template-columns: 1fr 40px 1fr 40px 1fr;
  gap: 0;
  align-items: stretch;
  margin-top: 24px;
}
.chain-link {
  border: var(--rule-dark);
  padding: 32px 28px 36px;
  background: rgba(14, 34, 24, 0.02);
  display: flex;
  flex-direction: column;
}
.slide.dark .chain-link { border: 1px solid rgba(244,235,217,0.16); background: rgba(244,235,217,0.02); }
.chain-link .lnum {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 18px;
  display: flex; align-items: center; gap: 12px;
}
.chain-link .lnum::before { content: ''; width: 28px; height: 1px; background: var(--sage); }
.chain-link h3 {
  font-family: var(--serif);
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin-bottom: 12px;
}
.chain-link h3 em { font-style: italic; color: var(--sage); }
.chain-link p {
  font-family: var(--sans);
  font-size: 13.5px;
  line-height: 1.55;
  opacity: 0.75;
}
.chain-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  color: var(--sage);
  font-size: 18px;
}
@media (max-width: 900px) {
  .chain { grid-template-columns: 1fr; gap: 16px; }
  .chain-arrow {
    height: 28px;
    transform: rotate(90deg);
  }
}

/* ---------- THE CHEMISTRY (Slide 03) — equation art ---------- */
.chem-layout {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 64px;
  margin-top: 40px;
  align-items: center;
}
.chem-content { display: flex; flex-direction: column; max-width: 56ch; }
.chem-content h2 { margin-bottom: 24px; }
.chem-content .body-copy { margin-bottom: 0; }

.chem-asset {
  width: 100%;
  position: relative;
  border: 1px solid rgba(244,235,217,0.18);
  background:
    radial-gradient(ellipse at 50% 50%, rgba(138,164,143,0.10), transparent 70%),
    var(--forest-2);
  min-height: 56vh;
  overflow: hidden;
  padding: 48px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.chem-equation {
  font-family: var(--serif);
  font-size: clamp(36px, 4.5vw, 64px);
  font-weight: 300;
  color: var(--cream);
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-align: center;
  font-variation-settings: 'opsz' 144;
}
.chem-equation .arrow { color: var(--sage); margin: 0 0.6em; }
.chem-equation .formula sub {
  font-size: 0.62em;
  vertical-align: -0.05em;
  letter-spacing: 0;
  margin-left: 0.04em;
  opacity: 0.85;
}
.chem-equation + .chem-equation { margin-top: 28px; }
.chem-cap {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage);
  margin-top: 36px;
  opacity: 0.85;
  text-align: center;
}

@media (max-width: 900px) {
  .chem-layout { grid-template-columns: 1fr; gap: 36px; }
  .chem-asset { min-height: 320px; padding: 40px 24px; order: 2; }
  .chem-content { order: 1; }
}

/* ---------- THE PRODUCTS (Slide 04) — 4 product cards ---------- */
.products-block { flex: 1; display: flex; flex-direction: column; margin-top: 40px; }
.products-block h2 { margin-bottom: 24px; max-width: 22ch; }
.products-block .body-copy { margin-bottom: 56px; }

.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--sage);
  border-bottom: 1px solid var(--sage);
}
.product {
  padding: 32px 28px 36px;
  border-right: var(--rule-dark);
  display: flex;
  flex-direction: column;
}
.slide.dark .product { border-right: 1px solid rgba(244,235,217,0.18); }
.product:last-child { border-right: 0; }
.product .pnum {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 18px;
}
.product .formula {
  font-family: var(--serif);
  font-size: clamp(40px, 4.5vw, 64px);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 12px;
  font-variation-settings: 'opsz' 144;
}
.product .formula sub {
  font-size: 0.5em;
  vertical-align: -0.05em;
}
.product .formula em { font-style: italic; color: var(--sage); }
.product .pname {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
  opacity: 0.85;
}
.product .pdesc {
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.55;
  opacity: 0.72;
  margin-bottom: 20px;
  flex: 1;
}
.product .pmkt {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage);
  padding-top: 16px;
  border-top: 1px solid var(--sage-line);
  opacity: 0.85;
}

@media (max-width: 900px) {
  .products { grid-template-columns: 1fr 1fr; }
  .product:nth-child(2n) { border-right: 0; }
  .product:nth-child(1), .product:nth-child(2) { border-bottom: var(--rule-dark); }
  .slide.dark .product:nth-child(1), .slide.dark .product:nth-child(2) { border-bottom: 1px solid rgba(244,235,217,0.18); }
}
@media (max-width: 540px) {
  .products { grid-template-columns: 1fr; }
  .product { border-right: 0 !important; border-bottom: var(--rule-dark); }
  .product:last-child { border-bottom: 0; }
}

/* ---------- THE POSITION (Slide 05) — value chain ---------- */
.position-layout {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 440px) 1fr;
  gap: 64px;
  margin-top: 40px;
  align-items: stretch;
}
.position-meta { display: flex; flex-direction: column; padding-top: 8px; }
.position-meta h2 { margin-bottom: 24px; max-width: 18ch; }
.position-meta .body-copy { margin-bottom: 32px; }

.position-asset {
  position: relative;
  border: 1px solid rgba(244,235,217,0.18);
  background:
    radial-gradient(ellipse at 50% 50%, rgba(138,164,143,0.08), transparent 70%),
    var(--forest);
  min-height: 60vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
}
.slide.light .position-asset { background: rgba(14,34,24,0.04); border: 1px solid rgba(14,34,24,0.18); }
.position-asset svg { width: 100%; height: 100%; }

@media (max-width: 900px) {
  .position-layout { grid-template-columns: 1fr; gap: 36px; }
  .position-asset { min-height: 320px; }
}

/* ---------- THE TIMELINE (Slide 06) — long horizon phase markers ---------- */
.timeline-block { flex: 1; display: flex; flex-direction: column; margin-top: 40px; }
.timeline-block h2 { margin-bottom: 24px; max-width: 22ch; }
.timeline-block .body-copy { margin-bottom: 56px; }

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 0; right: 0;
  height: 1px;
  background: var(--sage);
  opacity: 0.4;
}
.tl-phase {
  padding: 0 24px 0 0;
  position: relative;
  display: flex;
  flex-direction: column;
}
.tl-phase::before {
  content: '';
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--forest);
  border: 2px solid var(--sage);
  position: relative;
  margin-bottom: 32px;
  z-index: 1;
}
.slide.light .tl-phase::before { background: var(--cream); }
.tl-phase.active::before {
  background: var(--sage);
  box-shadow: 0 0 0 6px rgba(138,164,143,0.18);
}
.tl-phase .tl-when {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 12px;
}
.tl-phase .tl-what {
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin-bottom: 14px;
}
.tl-phase .tl-detail {
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.55;
  opacity: 0.75;
}

@media (max-width: 900px) {
  .timeline { grid-template-columns: 1fr; gap: 28px; }
  .timeline::before { display: none; }
  .tl-phase { padding-left: 28px; padding-right: 0; }
  .tl-phase::before { position: absolute; left: 0; top: 4px; margin-bottom: 0; }
}

/* ---------- CONTACT (Slide 07) ---------- */
.contact-block {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 400px) minmax(0, 1fr);
  gap: 64px;
  margin-top: 40px;
  align-items: start;
}
.contact-meta { padding-top: 8px; }
.contact-meta h2 { margin-bottom: 24px; }
.contact-meta .body-copy { margin-bottom: 24px; }
.contact-meta .meta-list {
  margin-top: 32px;
  padding-top: 24px;
  border-top: var(--hairline);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  line-height: 1.9;
  opacity: 0.78;
}
.contact-meta .meta-list b { color: var(--sage); font-weight: 400; }

.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 20px;
}
.field { display: flex; flex-direction: column; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 8px;
}
.field input, .field select, .field textarea {
  font-family: var(--sans);
  font-size: 15px;
  padding: 12px 14px;
  background: rgba(244,235,217,0.04);
  border: 1px solid rgba(244,235,217,0.18);
  color: var(--cream);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
  outline: none;
  border-radius: 0;
  -webkit-appearance: none;
}
.slide.light .field input, .slide.light .field select, .slide.light .field textarea {
  background: rgba(14,34,24,0.04);
  border: 1px solid rgba(14,34,24,0.18);
  color: var(--forest);
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--sage);
  background: rgba(138,164,143,0.08);
}
.field textarea { resize: vertical; min-height: 120px; line-height: 1.55; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='none' stroke='%238aa48f' stroke-width='1.5' d='M1 1l5 5 5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}
.honeypot { position: absolute; left: -10000px; opacity: 0; pointer-events: none; }

.form-submit {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  gap: 16px;
  flex-wrap: wrap;
}
.form-msg {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.form-msg.show { opacity: 1; }
.form-msg.ok { color: var(--sage); }
.form-msg.err { color: #d4593c; }

@media (max-width: 900px) {
  .contact-block { grid-template-columns: 1fr; gap: 36px; }
  .form { grid-template-columns: 1fr; }
}

/* ---------- FOOTER ---------- */
.foot {
  background: var(--forest);
  color: var(--cream);
  min-height: auto;
  padding-top: 80px;
  padding-bottom: 32px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 56px;
  border-top: var(--hairline);
  padding-top: 56px;
  margin-top: 40px;
}
.foot-brand { display: flex; flex-direction: column; gap: 18px; max-width: 36ch; }
.foot-brand .mark {
  font-family: var(--serif);
  font-style: italic;
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.foot-brand .mark b { font-weight: 600; }
.foot-brand .tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  opacity: 0.62;
  text-transform: uppercase;
  line-height: 1.7;
}
.foot-col h5 {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 16px;
  font-weight: 400;
}
.foot-col ul { list-style: none; }
.foot-col li { margin-bottom: 9px; font-size: 13px; }
.foot-col a {
  opacity: 0.78;
  transition: opacity 0.2s var(--ease), color 0.2s var(--ease);
}
.foot-col a:hover { opacity: 1; color: var(--sage); }

.foot-rule {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  margin-top: 56px;
  border-top: var(--hairline);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.55;
  flex-wrap: wrap;
  gap: 16px;
}
.foot-rule a { transition: opacity 0.2s var(--ease); }
.foot-rule a:hover { opacity: 1; color: var(--sage); }

@media (max-width: 900px) {
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 540px) {
  .foot-grid { grid-template-columns: 1fr; gap: 32px; }
  .foot-rule { flex-direction: column; align-items: flex-start; }
}

/* ---------- REVEALS ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.95s var(--ease), transform 0.95s var(--ease);
}
.reveal.is-in { opacity: 1; transform: translateY(0); }
.reveal.delay-1 { transition-delay: 0.10s; }
.reveal.delay-2 { transition-delay: 0.20s; }
.reveal.delay-3 { transition-delay: 0.30s; }
.reveal.delay-4 { transition-delay: 0.40s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .deck { scroll-behavior: auto; }
  html { scroll-behavior: auto; }
}

/* ---------- SELECTION ---------- */
::selection { background: var(--sage); color: var(--forest); }

/* ═══════════════════════════════════════════════════════════════════════════
   v2.0 — Inline figure blocks for Visuals Pack v1.0
   Used by FIG-02A/02B (Idea), FIG-03 (Chemistry — via .chem-asset),
   FIG-04A (Products), FIG-06A (Timeline).
   The SVGs themselves carry their own typography via embedded <style> blocks.
   These rules govern the OUTER container only.
   ═══════════════════════════════════════════════════════════════════════════ */
.fig-block {
  width: 100%;
  max-width: 100%;
  margin-top: 56px;
  position: relative;
}
.fig-block svg {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}
.fig-block-anchor {
  margin-top: 24px;
  margin-bottom: 56px;
}
.fig-cap-top {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage);
  opacity: 0.65;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.fig-cap-top::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--sage);
  opacity: 0.5;
}

/* Make sure fig-rxn fills its chem-asset container without padding fighting */
.chem-asset svg {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  align-self: stretch;
}

@media (max-width: 900px) {
  .fig-block { margin-top: 36px; }
  .fig-cap-top { font-size: 9px; letter-spacing: 0.16em; }
}
