/* =========================================================================
   APEX DESIGN SYSTEM  ·  v1
   A warm-clinical, editorial design language for the Apex platform.
   Visual north star: Function Health — warm ivory surfaces, editorial
   serif display, mono lab labels. Apex palette (2026-06): deep-forest ink,
   a sage/moss/eucalyptus green ramp for accents + gradients, and a gold
   tricolor "pop" reserved for emphasis.

   Everything here is reusable app-wide. Component classes are namespaced
   `fh-` so they never collide with the legacy Bootstrap/style.css cascade.
   Only :root tokens are global; nothing restyles a page until you opt in
   by using an `fh-` class.
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..600;1,9..144,300..500&family=Hanken+Grotesk:wght@400;500;600;700&family=DM+Mono:ital,wght@0,400;0,500;1,400&display=swap');

:root {
  /* ---- Surfaces (warm, never pure white) ---------------------------- */
  --fh-bg:           #F1EFE6;   /* page — warm ivory                     */
  --fh-surface:      #FBFAF4;   /* cards / raised — warm sand            */
  --fh-surface-2:    #F6F4EB;   /* subtle alt fill                       */
  --fh-surface-3:    #E6E3D6;   /* pressed / deep sand                   */
  --fh-border:       #D4D3C2;   /* hairline on cream — taupe             */
  --fh-border-soft:  #E3E1D3;   /* faintest divider                      */

  /* ---- Ink (warm, not cold black) ----------------------------------- */
  --fh-ink:          #2C3C2F;   /* primary text — deep forest          */
  --fh-ink-soft:     #54604C;   /* secondary text                        */
  --fh-ink-mute:     #76806C;   /* captions / meta                       */
  --fh-on-dark:      #F1EFE6;   /* text on dark surfaces                 */
  --fh-on-dark-soft: #AEB7A0;   /* secondary text on dark                */

  /* ---- Accent — earthy green ramp (sage · moss · eucalyptus) -------- */
  --fh-green-50:   #EFF1E9;
  --fh-green-100:  #E0E4D4;     /* pill / tag wash                       */
  --fh-green-200:  #D7DAC9;
  --fh-green-300:  #BFC6B0;
  --fh-green-400:  #A4AF94;     /* soft moss green — decor   */
  --fh-green-500:  #828E72;
  --fh-green-600:  #647158;     /* PRIMARY — button fill                 */
  --fh-green-700:  #4C573F;     /* links / accent text on cream / hover  */
  --fh-green-800:  #2C3C2F;
  --fh-green-900:  #1E2A20;     /* deepest                               */

  --fh-accent:        var(--fh-green-600);
  --fh-accent-hover:  var(--fh-green-700);
  --fh-accent-text:   var(--fh-green-700);
  --fh-accent-deep:   var(--fh-green-800);
  --fh-accent-bright: var(--fh-green-400);
  --fh-accent-wash:   var(--fh-green-100);

  /* ---- Gold "pop" — tricolor, clipped to text for emphasis ---------- */
  --fh-gold-shadow:   #8F7640;
  --fh-gold-mid:      #BEA671;
  --fh-gold-hi:       #DCC78F;
  --fh-gold-gradient: linear-gradient(100deg, var(--fh-gold-shadow), var(--fh-gold-mid) 52%, var(--fh-gold-hi));

  /* ---- Accent gradients (sage · moss · eucalyptus) ------------------ */
  --fh-green-gradient:      linear-gradient(135deg, var(--fh-green-600), var(--fh-green-400) 55%, var(--fh-green-200));
  --fh-green-gradient-deep: linear-gradient(135deg, var(--fh-green-800), var(--fh-green-600));

  /* ---- Dark section (charcoal olive, deepest dark neutral tone) ----- */
  --fh-dark:         #30302C;
  --fh-dark-2:       #272723;
  --fh-dark-border:  #45453E;

  /* ---- Supporting data-viz hues (used sparingly, true to FH) -------- */
  --fh-clay:   #B05A36;   /* warm terracotta — rare secondary data dot  */
  --fh-blue:   #4E83C4;   /* data line                                  */
  --fh-gold:   #BEA671;   /* data line                                  */
  --fh-danger: #C0492F;

  /* ---- Typography --------------------------------------------------- */
  --fh-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --fh-sans:  'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --fh-mono:  'DM Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  /* Fluid type scale — clamp(min, fluid, max) ------------------------- */
  --fh-fs-eyebrow: 0.78rem;
  --fh-fs-xs:   0.8125rem;
  --fh-fs-sm:   0.9375rem;
  --fh-fs-body: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --fh-fs-lead: clamp(1.15rem, 1.04rem + 0.55vw, 1.45rem);
  --fh-fs-h4:   clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem);
  --fh-fs-h3:   clamp(1.5rem, 1.28rem + 1.1vw, 2.1rem);
  --fh-fs-h2:   clamp(2.05rem, 1.55rem + 2.5vw, 3.4rem);
  --fh-fs-h1:   clamp(2.7rem, 1.9rem + 4vw, 5rem);
  --fh-fs-display: clamp(3.1rem, 1.5rem + 7.6vw, 8.25rem);

  --fh-lh-tight: 1.02;
  --fh-lh-snug:  1.12;
  --fh-lh-head:  1.18;
  --fh-lh-body:  1.62;

  /* ---- Space scale (8px rhythm) ------------------------------------- */
  --fh-s1: 0.25rem;  --fh-s2: 0.5rem;   --fh-s3: 0.75rem;  --fh-s4: 1rem;
  --fh-s5: 1.5rem;   --fh-s6: 2rem;     --fh-s7: 3rem;     --fh-s8: 4rem;
  --fh-s9: 6rem;     --fh-s10: 8rem;
  --fh-section: clamp(4.5rem, 3rem + 7vw, 9.5rem);
  --fh-gutter:  clamp(1.25rem, 0.4rem + 3vw, 3rem);
  --fh-container: 1240px;
  --fh-container-narrow: 880px;
  --fh-container-wide: 1440px;

  /* ---- Radius ------------------------------------------------------- */
  --fh-r-xs: 4px;
  --fh-r-sm: 8px;
  --fh-r-md: 14px;
  --fh-r-lg: clamp(16px, 12px + 1vw, 24px);
  --fh-r-xl: clamp(22px, 14px + 2vw, 40px);
  --fh-r-pill: 999px;

  /* ---- Elevation (soft, warm-tinted, restrained) -------------------- */
  --fh-shadow-xs: 0 1px 2px rgba(44, 60, 47, 0.05);
  --fh-shadow-sm: 0 2px 6px rgba(44, 60, 47, 0.06), 0 1px 2px rgba(44, 60, 47, 0.04);
  --fh-shadow-md: 0 16px 36px -18px rgba(44, 60, 47, 0.20);
  --fh-shadow-lg: 0 36px 70px -28px rgba(44, 60, 47, 0.30);
  --fh-ring: inset 0 0 0 1px var(--fh-border);

  /* ---- Motion ------------------------------------------------------- */
  --fh-ease:     cubic-bezier(0.22, 1, 0.36, 1);
  --fh-ease-out: cubic-bezier(0.16, 1, 0.30, 1);
  --fh-ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --fh-dur:   0.55s;
  --fh-dur-s: 0.28s;
}

/* =========================================================================
   1 · SCOPED RESET
   The full reset applies only to `.fh-app--home` (the redesigned page) so
   every legacy page body stays byte-for-byte the same. The shared chrome
   (`.fh-nav` / `.fh-footer` / `.fh-cta`) carries its own minimal reset so it
   renders correctly when dropped onto a legacy page too.
   ========================================================================= */
.fh-app--home,
.fh-app--fh {
  background: var(--fh-bg);
  color: var(--fh-ink);
  font-family: var(--fh-sans);
  font-size: var(--fh-fs-body);
  line-height: var(--fh-lh-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'ss01', 'cv11';
}
/* :where() keeps the reset at zero added specificity so spacing utilities
   (.fh-mt-*) and component rules always win — without it,
   `.fh-app--home h2` (0,1,1) would beat `.fh-mt-3` (0,1,0). */
.fh-app--home :where(*, *::before, *::after),
.fh-app--fh   :where(*, *::before, *::after) { box-sizing: border-box; }
.fh-app--home :where(h1, h2, h3, h4, h5, h6, p, figure, ul, ol),
.fh-app--fh   :where(h1, h2, h3, h4, h5, h6, p, figure, ul, ol) { margin: 0; }
.fh-app--home :where(ul, ol),
.fh-app--fh   :where(ul, ol) { list-style: none; padding: 0; }
.fh-app--home :where(img, svg, video),
.fh-app--fh   :where(img, svg, video) { display: block; max-width: 100%; }
.fh-app--home :where(a),
.fh-app--fh   :where(a) { color: inherit; text-decoration: none; }
.fh-app--home :where(button),
.fh-app--fh   :where(button) { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
.fh-app--home :where(:focus-visible),
.fh-app--fh   :where(:focus-visible) {
  outline: 2px solid var(--fh-accent);
  outline-offset: 3px;
  border-radius: var(--fh-r-xs);
}
.fh-app--home ::selection,
.fh-app--fh   ::selection { background: var(--fh-green-200); color: var(--fh-ink); }

/* fh-article opts back in to the rich-text defaults the reset stripped */
.fh-app--home .fh-article :where(ul, ol),
.fh-app--fh   .fh-article :where(ul, ol) { list-style: revert; padding-left: 1.4rem; }
.fh-app--home .fh-article :where(a),
.fh-app--fh   .fh-article :where(a) {
  color: var(--fh-accent-text);
  border-bottom: 1px solid color-mix(in srgb, var(--fh-accent-text) 40%, transparent);
}

/* Self-contained reset for the shared chrome on ANY page ------------------ */
.fh-nav *, .fh-nav *::before, .fh-nav *::after,
.fh-footer *, .fh-footer *::before, .fh-footer *::after,
.fh-cta *, .fh-cta *::before, .fh-cta *::after { box-sizing: border-box; }
.fh-nav ul, .fh-footer ul { list-style: none; margin: 0; padding: 0; }
.fh-nav a, .fh-footer a { text-decoration: none; }
.fh-nav p, .fh-footer p, .fh-cta p,
.fh-nav h1, .fh-nav h2, .fh-footer h2, .fh-cta h2 { margin: 0; }
.fh-nav img, .fh-footer img { display: block; }
.fh-nav button { font: inherit; cursor: pointer; border: 0; background: none; }
.fh-nav :focus-visible, .fh-footer :focus-visible, .fh-cta :focus-visible {
  outline: 2px solid var(--fh-accent); outline-offset: 3px; border-radius: var(--fh-r-xs);
}

/* =========================================================================
   2 · LAYOUT
   ========================================================================= */
.fh-container {
  width: 100%;
  max-width: calc(var(--fh-container) + (var(--fh-gutter) * 2));
  margin-inline: auto;
  padding-inline: var(--fh-gutter);
}
.fh-container--narrow { max-width: calc(var(--fh-container-narrow) + (var(--fh-gutter) * 2)); }
.fh-container--wide   { max-width: calc(var(--fh-container-wide) + (var(--fh-gutter) * 2)); }

.fh-section { padding-block: var(--fh-section); position: relative; }
.fh-section--tight { padding-block: clamp(3rem, 2rem + 4vw, 5.5rem); }
.fh-section--flush-top { padding-top: 0; }

.fh-section--sand { background: var(--fh-surface); }
.fh-section--dark {
  background: var(--fh-dark);
  color: var(--fh-on-dark);
}
.fh-section--dark .fh-eyebrow { color: var(--fh-accent-bright); }
.fh-section--dark .fh-eyebrow::before { background: var(--fh-accent-bright); }
.fh-section--dark .fh-display,
.fh-section--dark .fh-h1,
.fh-section--dark .fh-h2,
.fh-section--dark .fh-h3,
.fh-section--dark .fh-h4 { color: var(--fh-on-dark); }
.fh-section--dark .fh-kicker { color: var(--fh-on-dark-soft); }

.fh-grid { display: grid; gap: var(--fh-s5); }
@media (min-width: 720px)  { .fh-grid--2 { grid-template-columns: repeat(2, 1fr); }
                             .fh-grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 980px)  { .fh-grid--3 { grid-template-columns: repeat(3, 1fr); }
                             .fh-grid--4 { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 719px)  { .fh-grid--2, .fh-grid--3, .fh-grid--4 { grid-template-columns: 1fr; } }

.fh-stack > * + * { margin-top: var(--fh-s4); }
.fh-stack--lg > * + * { margin-top: var(--fh-s6); }

/* =========================================================================
   3 · TYPOGRAPHY
   ========================================================================= */
.fh-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--fh-mono);
  font-size: var(--fh-fs-eyebrow);
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fh-accent-text);
}
.fh-eyebrow::before {
  content: "";
  width: 1.7em;
  height: 1px;
  background: var(--fh-accent);
  flex: none;
}
.fh-eyebrow--plain::before { display: none; }
.fh-eyebrow--center { justify-content: center; }

.fh-display,
.fh-h1, .fh-h2, .fh-h3, .fh-h4 {
  font-family: var(--fh-serif);
  font-weight: 380;
  color: var(--fh-ink);
  letter-spacing: -0.012em;
  font-optical-sizing: auto;
  text-wrap: balance;
}
.fh-display {
  font-size: var(--fh-fs-display);
  line-height: var(--fh-lh-tight);
  font-weight: 340;
  letter-spacing: -0.022em;
}
.fh-h1 { font-size: var(--fh-fs-h1); line-height: var(--fh-lh-snug); }
.fh-h2 { font-size: var(--fh-fs-h2); line-height: var(--fh-lh-head); }
.fh-h3 { font-size: var(--fh-fs-h3); line-height: var(--fh-lh-head); font-weight: 420; }
.fh-h4 {
  font-size: var(--fh-fs-h4); line-height: 1.3; font-weight: 600;
  font-family: var(--fh-sans); letter-spacing: -0.01em;
}

/* Accent emphasis word inside a serif headline — italic, gold "pop" */
.fh-em {
  font-style: italic;
  font-weight: 360;
  background: var(--fh-gold-gradient);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* A word the connective thread can "fill" on scroll */
.fh-fillword {
  background-image: var(--fh-gold-gradient);
  background-repeat: no-repeat;
  background-size: 0% 100%;
  transition: background-size 0.9s var(--fh-ease);
  color: var(--fh-ink);
  -webkit-background-clip: text; background-clip: text;
}
.fh-fillword.is-in { background-size: 100% 100%; color: transparent; }

/* Gold "pop" — emphasis word/phrase, gold tricolor clipped to text */
.fh-pop {
  background: var(--fh-gold-gradient);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.fh-pop--italic { font-style: italic; font-weight: 360; }

/* Decorative accent-gradient fills */
.fh-grad-green      { background: var(--fh-green-gradient); }
.fh-grad-green-deep { background: var(--fh-green-gradient-deep); }
.fh-grad-gold       { background: var(--fh-gold-gradient); }

.fh-lead {
  font-size: var(--fh-fs-lead);
  line-height: 1.5;
  color: var(--fh-ink-soft);
  font-weight: 400;
  text-wrap: pretty;
  max-width: 46ch;
}
.fh-lead--wide { max-width: 60ch; }
.fh-section--dark .fh-lead { color: var(--fh-on-dark-soft); }

.fh-prose { color: var(--fh-ink-soft); line-height: var(--fh-lh-body); }
.fh-prose p + p { margin-top: var(--fh-s4); }

/* fh-article — styles an arbitrary CMS-authored HTML blob (About / Terms / Privacy etc.)
   so admin-edited content inherits FH typography without needing structured fields. */
.fh-article { color: var(--fh-ink-soft); line-height: var(--fh-lh-body); max-width: 68ch; }
.fh-article > * + * { margin-top: var(--fh-s4); }
.fh-article h1, .fh-article h2, .fh-article h3, .fh-article h4 {
  font-family: var(--fh-serif); color: var(--fh-ink);
  font-weight: 440; letter-spacing: -0.015em; line-height: var(--fh-lh-head);
}
.fh-article h1 { font-size: var(--fh-fs-h2); margin-top: var(--fh-s7); }
.fh-article h2 { font-size: var(--fh-fs-h3); margin-top: var(--fh-s7); }
.fh-article h3 { font-size: var(--fh-fs-h4); margin-top: var(--fh-s6); }
.fh-article h4 { font-size: 1.125rem; margin-top: var(--fh-s5); }
.fh-article > *:first-child { margin-top: 0; }
.fh-article p { font-size: var(--fh-fs-body); }
.fh-article ul, .fh-article ol { padding-left: 1.4rem; }
.fh-article li + li { margin-top: var(--fh-s2); }
.fh-article a {
  color: var(--fh-accent-text); text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--fh-accent-text) 40%, transparent);
  transition: border-color var(--fh-dur-s) var(--fh-ease);
}
.fh-article a:hover { border-bottom-color: var(--fh-accent-text); }
.fh-article strong { color: var(--fh-ink); font-weight: 600; }
.fh-article em { font-style: italic; }
.fh-article blockquote {
  border-left: 2px solid var(--fh-accent);
  padding: var(--fh-s2) 0 var(--fh-s2) var(--fh-s5);
  font-family: var(--fh-serif); font-style: italic; font-size: var(--fh-fs-lead);
  color: var(--fh-ink);
}
.fh-article hr { border: 0; border-top: 1px solid var(--fh-border-soft); margin: var(--fh-s7) 0; }
.fh-article img { max-width: 100%; height: auto; border-radius: var(--fh-r-md); }
.fh-article code {
  font-family: var(--fh-mono); font-size: 0.92em;
  background: var(--fh-surface); padding: 0.1em 0.35em; border-radius: var(--fh-r-xs);
}

.fh-kicker {
  font-family: var(--fh-mono);
  font-size: var(--fh-fs-xs);
  letter-spacing: 0.06em;
  color: var(--fh-ink-mute);
}
.fh-measure { max-width: 62ch; }
.fh-center  { text-align: center; }
.fh-center .fh-lead { margin-inline: auto; }

/* =========================================================================
   4 · BUTTONS
   ========================================================================= */
.fh-btn {
  --_bg: var(--fh-ink);
  --_fg: var(--fh-on-dark);
  --_bd: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 0.95em 1.7em;
  font-family: var(--fh-sans);
  font-size: var(--fh-fs-sm);
  font-weight: 600;
  letter-spacing: 0.005em;
  line-height: 1;
  color: var(--_fg);
  background: var(--_bg);
  border: 1px solid var(--_bd);
  border-radius: var(--fh-r-pill);
  cursor: pointer;
  transition: transform var(--fh-dur-s) var(--fh-ease),
              background-color var(--fh-dur-s) var(--fh-ease),
              color var(--fh-dur-s) var(--fh-ease),
              box-shadow var(--fh-dur-s) var(--fh-ease);
  will-change: transform;
  text-align: center;
}
.fh-btn:hover { transform: translateY(-2px); }
.fh-btn:active { transform: translateY(0); }
.fh-btn .fh-btn__arrow { transition: transform var(--fh-dur-s) var(--fh-ease); }
.fh-btn:hover .fh-btn__arrow { transform: translateX(4px); }

.fh-btn--primary {
  --_bg: var(--fh-ink);
  --_fg: #FCFBF4;
  box-shadow: 0 10px 24px -12px rgba(44, 60, 47, 0.55);
}
.fh-btn--primary:hover { --_bg: var(--fh-green-700); box-shadow: 0 16px 30px -14px rgba(44, 60, 47, 0.6); }

.fh-btn--dark { --_bg: var(--fh-ink); --_fg: var(--fh-on-dark); }
.fh-btn--dark:hover { --_bg: #34362B; }

.fh-btn--ghost {
  --_bg: transparent;
  --_fg: var(--fh-ink);
  --_bd: var(--fh-border);
}
.fh-btn--ghost:hover { --_bd: var(--fh-ink); --_bg: rgba(37,39,31,0.03); }

.fh-section--dark .fh-btn--ghost { --_fg: var(--fh-on-dark); --_bd: var(--fh-dark-border); }
.fh-section--dark .fh-btn--ghost:hover { --_bd: var(--fh-on-dark); --_bg: rgba(255,255,255,0.06); }

.fh-btn--lg { padding: 1.15em 2.1em; font-size: var(--fh-fs-body); }
.fh-btn--block { display: flex; width: 100%; }

/* Inline text link with sliding arrow */
.fh-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-weight: 600;
  font-size: var(--fh-fs-sm);
  color: var(--fh-accent-text);
  padding-bottom: 2px;
  position: relative;
}
.fh-link::after {
  content: "";
  position: absolute; left: 0; right: 1.4em; bottom: 0;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--fh-dur-s) var(--fh-ease);
}
.fh-link:hover::after { transform: scaleX(1); }
.fh-link svg, .fh-link .fh-btn__arrow { transition: transform var(--fh-dur-s) var(--fh-ease); }
.fh-link:hover svg, .fh-link:hover .fh-btn__arrow { transform: translateX(4px); }
.fh-section--dark .fh-link { color: var(--fh-accent-bright); }

.fh-btn-row {
  display: flex; flex-wrap: wrap; gap: var(--fh-s3);
  align-items: center;
}

/* =========================================================================
   5 · PILLS · TAGS · BADGES
   ========================================================================= */
.fh-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.5em 1em;
  border-radius: var(--fh-r-pill);
  background: var(--fh-surface);
  border: 1px solid var(--fh-border);
  font-size: var(--fh-fs-xs);
  font-weight: 500;
  color: var(--fh-ink-soft);
  white-space: nowrap;
}
.fh-pill--accent {
  background: var(--fh-accent-wash);
  border-color: transparent;
  color: var(--fh-accent-deep);
}
.fh-pill--mono {
  font-family: var(--fh-mono);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.72rem;
}
.fh-pill__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--fh-accent); flex: none; }

.fh-badge {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: var(--fh-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fh-ink-mute);
}
.fh-badge__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--fh-accent-bright);
  box-shadow: 0 0 0 4px var(--fh-accent-wash);
}

/* =========================================================================
   6 · CARD
   ========================================================================= */
.fh-card {
  position: relative;
  background: var(--fh-bg);
  border: 1px solid var(--fh-border);
  border-radius: var(--fh-r-lg);
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  transition: transform var(--fh-dur) var(--fh-ease),
              box-shadow var(--fh-dur) var(--fh-ease),
              border-color var(--fh-dur) var(--fh-ease);
}
.fh-card--raised { background: var(--fh-surface); border-color: transparent; }
.fh-card--hover:hover {
  transform: translateY(-6px);
  box-shadow: var(--fh-shadow-md);
  border-color: var(--fh-green-300);
}
.fh-card__num {
  font-family: var(--fh-mono);
  font-size: var(--fh-fs-xs);
  color: var(--fh-ink-mute);
  letter-spacing: 0.1em;
}
.fh-card__icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: var(--fh-r-md);
  background: var(--fh-accent-wash);
  color: var(--fh-accent-deep);
  margin-bottom: var(--fh-s5);
}
.fh-card__icon svg { width: 24px; height: 24px; }
.fh-card__title {
  font-family: var(--fh-serif);
  font-size: var(--fh-fs-h4);
  font-weight: 460;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}
.fh-card__text { color: var(--fh-ink-soft); font-size: var(--fh-fs-sm); line-height: 1.6; }

.fh-section--dark .fh-card {
  background: var(--fh-dark-2);
  border-color: var(--fh-dark-border);
}
.fh-section--dark .fh-card__title { color: var(--fh-on-dark); }
.fh-section--dark .fh-card__text { color: var(--fh-on-dark-soft); }
.fh-section--dark .fh-card__icon { background: rgba(121,189,139,0.14); color: var(--fh-accent-bright); }

/* =========================================================================
   7 · STAT
   ========================================================================= */
.fh-stat__num {
  font-family: var(--fh-serif);
  font-size: clamp(2.6rem, 1.8rem + 3vw, 4.4rem);
  font-weight: 340;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--fh-ink);
  font-feature-settings: 'tnum';
}
.fh-stat__num .fh-stat__unit { color: var(--fh-accent-text); }
.fh-stat__label {
  margin-top: 0.75rem;
  font-family: var(--fh-mono);
  font-size: var(--fh-fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fh-ink-mute);
}
.fh-section--dark .fh-stat__num { color: var(--fh-on-dark); }
.fh-section--dark .fh-stat__num .fh-stat__unit { color: var(--fh-accent-bright); }

/* =========================================================================
   8 · MARQUEE  (infinite scrolling token row)
   ========================================================================= */
.fh-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.fh-marquee__track {
  display: flex;
  width: max-content;
  gap: var(--fh-s3);
  animation: fh-marquee 46s linear infinite;
}
.fh-marquee:hover .fh-marquee__track { animation-play-state: paused; }
.fh-marquee--rev .fh-marquee__track { animation-direction: reverse; animation-duration: 58s; }
@keyframes fh-marquee { to { transform: translateX(-50%); } }

/* =========================================================================
   9 · RULE / CONNECTIVE THREAD
   ========================================================================= */
.fh-rule { height: 1px; background: var(--fh-border); border: 0; }
.fh-section--dark .fh-rule { background: var(--fh-dark-border); }

/* Vertical hairline that "draws" as it enters view */
.fh-thread {
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: 1px;
  background: var(--fh-border);
  overflow: hidden;
}
.fh-thread::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(var(--fh-accent), var(--fh-accent-bright));
  transform: scaleY(var(--fh-thread, 0));
  transform-origin: top;
  transition: transform 0.2s linear;
}

/* =========================================================================
   10 · NAVIGATION  (shared header)
   ========================================================================= */
.fh-nav {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--fh-bg) 80%, transparent);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
          backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--fh-dur-s) var(--fh-ease),
              background-color var(--fh-dur-s) var(--fh-ease);
}
.fh-nav.is-stuck {
  border-bottom-color: var(--fh-border);
  background: color-mix(in srgb, var(--fh-bg) 92%, transparent);
}
.fh-nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--fh-s5);
  height: 74px;
}
.fh-nav__brand { display: flex; align-items: center; gap: 0.6rem; flex: none; }
.fh-nav__brand img { height: 44px; width: auto; }
.fh-nav__brand-fallback {
  font-family: var(--fh-serif);
  font-size: 1.4rem; font-weight: 460; letter-spacing: -0.02em;
  color: var(--fh-ink);
}
/* Desktop: the menu wrapper must be a row that fills the bar, otherwise
   __links and __right stack vertically and wrap. */
.fh-nav__menu {
  display: flex;
  flex: 1;
  align-items: center;
  gap: var(--fh-s5);
  min-width: 0;
}
.fh-nav__links {
  display: flex; align-items: center; gap: clamp(1rem, 0.2rem + 1.6vw, 2.4rem);
  margin-inline: auto;
  white-space: nowrap;
}
.fh-nav__link {
  font-size: var(--fh-fs-sm);
  font-weight: 500;
  color: var(--fh-ink-soft);
  position: relative;
  padding-block: 0.4rem;
  transition: color var(--fh-dur-s) var(--fh-ease);
}
.fh-nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--fh-ink);
  transform: scaleX(0); transform-origin: right;
  transition: transform var(--fh-dur-s) var(--fh-ease);
}
.fh-nav__link:hover { color: var(--fh-ink); }
.fh-nav__link:hover::after { transform: scaleX(1); transform-origin: left; }
.fh-nav__right { display: flex; align-items: center; gap: var(--fh-s4); flex: none; }
.fh-nav__login {
  font-size: var(--fh-fs-sm); font-weight: 600; color: var(--fh-ink);
}
.fh-nav__login:hover { color: var(--fh-accent-text); }
.fh-nav__cta { padding: 0.75em 1.4em; }

.fh-nav__burger {
  display: none;
  width: 44px; height: 44px;
  border-radius: var(--fh-r-pill);
  border: 1px solid var(--fh-border);
  align-items: center; justify-content: center;
}
.fh-nav__burger span,
.fh-nav__burger span::before,
.fh-nav__burger span::after {
  content: ""; display: block;
  width: 17px; height: 1.5px; background: var(--fh-ink);
  transition: transform var(--fh-dur-s) var(--fh-ease), opacity var(--fh-dur-s);
}
.fh-nav__burger span { position: relative; }
.fh-nav__burger span::before { position: absolute; top: -5px; }
.fh-nav__burger span::after  { position: absolute; top: 5px; }
.fh-nav.is-open .fh-nav__burger span { background: transparent; }
.fh-nav.is-open .fh-nav__burger span::before { transform: translateY(5px) rotate(45deg); }
.fh-nav.is-open .fh-nav__burger span::after  { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 940px) {
  /* backdrop-filter would make .fh-nav a containing block and trap the
     fixed menu inside the 74px bar — drop it on mobile so the overlay
     can cover the viewport. */
  .fh-nav, .fh-nav.is-stuck {
    -webkit-backdrop-filter: none; backdrop-filter: none;
    background: var(--fh-bg);
  }
  .fh-nav__burger { display: flex; }
  .fh-nav__menu {
    position: fixed; inset: 74px 0 0 0;
    z-index: 99;
    background: var(--fh-bg);
    overflow-y: auto;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
    padding: var(--fh-gutter);
    transform: translateY(-12px);
    opacity: 0; pointer-events: none;
    transition: opacity var(--fh-dur-s) var(--fh-ease), transform var(--fh-dur-s) var(--fh-ease);
    display: flex;
  }
  .fh-nav.is-open .fh-nav__menu { opacity: 1; transform: none; pointer-events: auto; }
  .fh-nav__links { flex-direction: column; align-items: stretch; width: 100%; gap: 0; }
  .fh-nav__link { padding-block: 1.1rem; border-bottom: 1px solid var(--fh-border-soft); font-size: 1.15rem; }
  .fh-nav__link::after { display: none; }
  .fh-nav__right { flex-direction: column; align-items: stretch; width: 100%; margin-top: var(--fh-s5); gap: var(--fh-s4); }
  .fh-nav__cta, .fh-nav__login { width: 100%; text-align: center; }
  .fh-nav__cta { padding: 1em 1.4em; }
}

/* =========================================================================
   11 · FOOTER  (shared)
   ========================================================================= */
.fh-footer {
  background: var(--fh-dark);
  color: var(--fh-on-dark-soft);
  padding-block: clamp(3.5rem, 2rem + 5vw, 6rem) 2.5rem;
}
.fh-footer__grid {
  display: grid;
  gap: var(--fh-s7) var(--fh-s5);
  grid-template-columns: 1.4fr repeat(3, 1fr);
}
@media (max-width: 880px) { .fh-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .fh-footer__grid { grid-template-columns: 1fr; } }
.fh-footer__brand-col > a { display: inline-block; }
.fh-footer__brand-col img {
  height: auto; width: auto;
  max-height: 56px; max-width: 190px;
  display: block;
}
.fh-footer__brand-name {
  font-family: var(--fh-serif); font-size: 1.5rem; color: var(--fh-on-dark); font-weight: 460;
}
.fh-footer__tag {
  margin-top: var(--fh-s4);
  max-width: 34ch;
  color: var(--fh-on-dark-soft);
  font-size: var(--fh-fs-sm);
  line-height: 1.6;
}
.fh-footer__col-title {
  font-family: var(--fh-mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fh-on-dark);
  margin-bottom: var(--fh-s5);
}
.fh-footer__links { display: flex; flex-direction: column; gap: 0.85rem; }
.fh-footer__links a, .fh-footer__contact li {
  font-size: var(--fh-fs-sm); color: var(--fh-on-dark-soft);
  transition: color var(--fh-dur-s) var(--fh-ease);
}
.fh-footer__links a:hover { color: var(--fh-on-dark); }
.fh-footer__contact { display: flex; flex-direction: column; gap: 0.85rem; }
.fh-footer__contact li { display: flex; gap: 0.6rem; align-items: flex-start; line-height: 1.5; }
.fh-footer__contact svg { width: 15px; height: 15px; margin-top: 3px; color: var(--fh-accent-bright); flex: none; }
.fh-footer__social { display: flex; gap: 0.6rem; margin-top: var(--fh-s5); }
.fh-footer__social a {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--fh-dark-border);
  color: var(--fh-on-dark-soft);
  transition: all var(--fh-dur-s) var(--fh-ease);
}
.fh-footer__social a:hover { color: var(--fh-dark); background: var(--fh-accent-bright); border-color: transparent; transform: translateY(-2px); }
.fh-footer__social svg { width: 15px; height: 15px; }
.fh-footer__bottom {
  margin-top: clamp(3rem, 2rem + 3vw, 5rem);
  padding-top: var(--fh-s5);
  border-top: 1px solid var(--fh-dark-border);
  display: flex; flex-wrap: wrap; gap: var(--fh-s4);
  align-items: center; justify-content: space-between;
  font-size: var(--fh-fs-xs); color: var(--fh-ink-mute);
}
.fh-footer__bottom a { color: var(--fh-on-dark-soft); }
.fh-footer__bottom a:hover { color: var(--fh-on-dark); }
.fh-footer__wordmark {
  font-family: var(--fh-serif);
  font-size: clamp(3.5rem, 6vw + 1rem, 9rem);
  line-height: 1; font-weight: 320;
  color: transparent;
  -webkit-text-stroke: 1px var(--fh-dark-border);
  letter-spacing: -0.02em;
  margin-top: clamp(2.5rem, 4vw, 4.5rem);
  user-select: none;
  text-align: center;
}

/* =========================================================================
   12 · CTA BLOCK  (shared footer CTA on non-landing pages)
   ========================================================================= */
.fh-cta {
  text-align: center;
  background: var(--fh-surface);
  border-radius: var(--fh-r-xl);
  padding: clamp(3rem, 2rem + 5vw, 6rem) var(--fh-gutter);
  position: relative;
  overflow: hidden;
}
.fh-cta__halo {
  position: absolute; inset: auto 50% -60% 50%;
  width: 120%; aspect-ratio: 2/1;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, var(--fh-accent-wash), transparent 62%);
  pointer-events: none;
}

/* =========================================================================
   13 · DECOR — soft halos, dotted grid, scan line
   ========================================================================= */
.fh-halo {
  position: absolute; border-radius: 50%;
  filter: blur(60px); opacity: 0.55; pointer-events: none; z-index: 0;
  background: radial-gradient(circle, var(--fh-accent-bright), transparent 68%);
}
.fh-dotgrid {
  background-image: radial-gradient(var(--fh-border) 1px, transparent 1.4px);
  background-size: 26px 26px;
}
.fh-relative { position: relative; z-index: 1; }

/* Background video — sits at z 0 inside a relative section, under an
   ivory scrim so fh-ink text keeps contrast. Content must be .fh-relative. */
.fh-video-bg {
  position: absolute; inset: 0;
  overflow: hidden; z-index: 0; pointer-events: none;
}
.fh-video-bg video {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.fh-video-bg::after {
  content: ""; position: absolute; inset: 0;
  background: color-mix(in srgb, var(--fh-bg) 82%, transparent);
}
.fh-video-bg--edge::after {
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--fh-bg) 96%, transparent) 0%,
    color-mix(in srgb, var(--fh-bg) 86%, transparent) 48%,
    color-mix(in srgb, var(--fh-bg) 58%, transparent) 100%
  );
}
@media (prefers-reduced-motion: reduce) {
  .fh-video-bg video { display: none; }
}

/* =========================================================================
   14 · SCROLL REVEAL
   ========================================================================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s var(--fh-ease), transform 0.9s var(--fh-ease);
  transition-delay: var(--fh-delay, 0ms);
}
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal="fade"] { transform: none; }
[data-reveal="scale"] { transform: scale(0.96); }
[data-reveal="scale"].is-in { transform: none; }

/* =========================================================================
   15 · FORM PRIMITIVES (system completeness — reusable app-wide)
   ========================================================================= */
.fh-field { display: flex; flex-direction: column; gap: 0.5rem; }
.fh-label {
  font-family: var(--fh-mono); font-size: 0.74rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--fh-ink-mute);
}
.fh-input {
  width: 100%;
  padding: 0.95em 1.1em;
  background: var(--fh-bg);
  border: 1px solid var(--fh-border);
  border-radius: var(--fh-r-md);
  font: inherit; font-size: var(--fh-fs-sm);
  color: var(--fh-ink);
  transition: border-color var(--fh-dur-s) var(--fh-ease), box-shadow var(--fh-dur-s) var(--fh-ease);
}
.fh-input::placeholder { color: var(--fh-ink-mute); }
.fh-input:focus {
  outline: none;
  border-color: var(--fh-accent);
  box-shadow: 0 0 0 4px var(--fh-accent-wash);
}
.fh-inline-form {
  display: flex; gap: var(--fh-s3);
  background: var(--fh-bg);
  border: 1px solid var(--fh-border);
  border-radius: var(--fh-r-pill);
  padding: 0.4rem 0.4rem 0.4rem 1.25rem;
  align-items: center;
}
.fh-inline-form .fh-input { border: 0; background: transparent; padding: 0.7em 0; }
.fh-inline-form .fh-input:focus { box-shadow: none; }
@media (max-width: 520px) {
  .fh-inline-form { flex-direction: column; border-radius: var(--fh-r-lg); padding: 0.6rem; }
  .fh-inline-form .fh-input { padding: 0.8em 1em; text-align: center; }
}

/* Textareas pick up fh-input but need a min-height + vertical resize. */
textarea.fh-input { min-height: 9rem; resize: vertical; line-height: 1.55; }

/* Multi-field row utility for forms — single column on narrow viewports. */
.fh-form-row {
  display: grid;
  grid-template-columns: repeat(var(--fh-cols, 2), 1fr);
  gap: var(--fh-s5);
}
@media (max-width: 640px) { .fh-form-row { grid-template-columns: 1fr; } }

/* Radio-pill group — segmented choice using <input type="radio"> + <label>. */
.fh-radio-group {
  display: grid;
  grid-template-columns: repeat(var(--fh-cols, 3), 1fr);
  gap: var(--fh-s3);
}
@media (max-width: 640px) { .fh-radio-group { grid-template-columns: 1fr; } }
.fh-radio-pill { position: relative; }
.fh-radio-pill input {
  position: absolute; opacity: 0; pointer-events: none;
}
.fh-radio-pill label {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.85rem 1rem;
  background: var(--fh-bg);
  border: 1px solid var(--fh-border);
  border-radius: var(--fh-r-md);
  font-size: var(--fh-fs-sm); color: var(--fh-ink-soft);
  cursor: pointer;
  transition: border-color var(--fh-dur-s) var(--fh-ease),
              background var(--fh-dur-s) var(--fh-ease),
              color var(--fh-dur-s) var(--fh-ease);
}
.fh-radio-pill label svg { width: 16px; height: 16px; color: var(--fh-accent-text); flex: none; }
.fh-radio-pill input:checked + label {
  border-color: var(--fh-accent);
  background: var(--fh-accent-wash);
  color: var(--fh-ink);
}
.fh-radio-pill input:focus-visible + label {
  outline: 2px solid var(--fh-accent); outline-offset: 2px;
}

/* Form footer: helper text on one side, submit on the other. */
.fh-form-footer {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--fh-s4); margin-top: var(--fh-s6);
}
.fh-form-help {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--fh-mono); font-size: 0.72rem;
  letter-spacing: 0.04em; color: var(--fh-ink-mute);
}
.fh-form-help svg { width: 14px; height: 14px; color: var(--fh-accent-text); flex: none; }

/* =========================================================================
   17 · FAQ ACCORDION (native <details>/<summary> — no JS required)
   ========================================================================= */
.fh-faq { display: flex; flex-direction: column; gap: var(--fh-s3); }
.fh-faq__item {
  background: var(--fh-bg);
  border: 1px solid var(--fh-border);
  border-radius: var(--fh-r-md);
  overflow: hidden;
  transition: border-color var(--fh-dur-s) var(--fh-ease),
              box-shadow var(--fh-dur-s) var(--fh-ease);
}
.fh-faq__item[open] { border-color: var(--fh-accent); box-shadow: var(--fh-shadow-sm); }
.fh-faq__item > summary {
  list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: var(--fh-s4);
  padding: clamp(1rem, 0.75rem + 0.6vw, 1.4rem) clamp(1.1rem, 0.85rem + 0.7vw, 1.6rem);
  cursor: pointer;
  font-family: var(--fh-serif);
  font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.25rem);
  font-weight: 450;
  letter-spacing: -0.01em;
  color: var(--fh-ink);
  transition: color var(--fh-dur-s) var(--fh-ease);
}
.fh-faq__item > summary::-webkit-details-marker { display: none; }
.fh-faq__item > summary:hover { color: var(--fh-accent-text); }
.fh-faq__icon {
  flex: none; width: 32px; height: 32px; border-radius: 50%;
  background: var(--fh-surface);
  display: grid; place-items: center;
  color: var(--fh-ink-soft);
  transition: background var(--fh-dur-s) var(--fh-ease),
              color var(--fh-dur-s) var(--fh-ease),
              transform var(--fh-dur-s) var(--fh-ease);
}
.fh-faq__icon svg { width: 14px; height: 14px; }
.fh-faq__item[open] .fh-faq__icon {
  background: var(--fh-accent-wash);
  color: var(--fh-accent-text);
  transform: rotate(45deg);
}
.fh-faq__body {
  padding: 0 clamp(1.1rem, 0.85rem + 0.7vw, 1.6rem) clamp(1.1rem, 0.85rem + 0.7vw, 1.4rem);
  color: var(--fh-ink-soft); line-height: var(--fh-lh-body);
  max-width: 64ch;
}
.fh-faq__body > * + * { margin-top: var(--fh-s3); }
.fh-faq__empty {
  text-align: center; padding: var(--fh-s7) 0;
  font-family: var(--fh-mono); font-size: var(--fh-fs-sm); color: var(--fh-ink-mute);
}

/* =========================================================================
   16 · LEGACY FLASH MESSAGES (restyled, kept functional)
   ========================================================================= */
.fh-app .flash-container { position: fixed; top: 90px; right: 24px; z-index: 1000; display: flex; flex-direction: column; gap: 10px; }
.fh-app .flash {
  display: flex; align-items: center; gap: 0.75rem;
  background: var(--fh-bg);
  border: 1px solid var(--fh-border);
  border-left: 3px solid var(--fh-accent);
  border-radius: var(--fh-r-md);
  padding: 0.9rem 2.4rem 0.9rem 1rem;
  box-shadow: var(--fh-shadow-md);
  color: var(--fh-ink);
  font-size: var(--fh-fs-sm);
  position: relative; max-width: 360px;
}
.fh-app .flash.flash_error { border-left-color: var(--fh-danger); }
/* flash.css absolutely positions the icon over 70px left padding; this flex
   layout only pads 1rem, so make the icon a normal flex child. */
.fh-app .flash__icon { position: static; transform: none; flex: 0 0 auto; color: var(--fh-accent); }
.fh-app .flash.flash_error .flash__icon { color: var(--fh-danger); }
.fh-app .flash__close {
  position: absolute; right: 10px; top: 10px;
  color: var(--fh-ink-mute); font-size: 1.1rem; line-height: 1;
}
.fh-app .flash__progress { display: none; }

/* =========================================================================
   18 · UTILITIES
   ========================================================================= */
.fh-mt-0{margin-top:0}.fh-mt-3{margin-top:var(--fh-s4)}.fh-mt-5{margin-top:var(--fh-s6)}
.fh-mt-7{margin-top:var(--fh-s8)} .fh-mb-5{margin-bottom:var(--fh-s6)}
.fh-flex{display:flex}.fh-wrap{flex-wrap:wrap}.fh-items-center{align-items:center}
.fh-justify-between{justify-content:space-between}.fh-gap-3{gap:var(--fh-s4)}.fh-gap-5{gap:var(--fh-s6)}
.fh-hide-mobile{ } .fh-show-mobile{ display:none; }
@media (max-width: 720px){
  .fh-hide-mobile{ display:none !important; }
  .fh-show-mobile{ display:revert; }
}
.fh-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;
}

/* =========================================================================
   19 · MOTION SAFETY
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  .fh-app *,
  .fh-app *::before,
  .fh-app *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .fh-marquee__track { animation: none !important; }
}
