/* Website UI kit — component styles. Tokens come from ../../colors_and_type.css */

/* ---------- Lenis smooth-scroll setup ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-scrolling iframe { pointer-events: none; }

/* Hardware-accelerate hero media for parallax */
.fhg-hero__media, .fhg-pillar__img img { will-change: transform; }

/* ---------- BUTTONS ---------- */
.fhg-btn {
  font-family: var(--sans-body);
  font-size: 15px;
  font-weight: 500;
  padding: 13px 22px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 180ms var(--ease-standard);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}
.fhg-btn--primary { background: var(--fhg-ink); color: var(--fhg-ivory); }
.fhg-btn--primary:hover { background: #1b2a40; transform: translateY(-1px); }
.fhg-btn--primary:active { transform: scale(.99); }
.fhg-btn--secondary { background: transparent; color: var(--fhg-ink); border-color: var(--fhg-ink); }
.fhg-btn--secondary:hover { background: var(--fhg-ink); color: var(--fhg-ivory); }
.fhg-btn--ghost-light { background: transparent; color: var(--fhg-ivory); border: 1px solid rgba(247,243,236,.4); }
.fhg-btn--ghost-light:hover { background: rgba(247,243,236,.12); border-color: var(--fhg-ivory); }
.fhg-btn--sm { padding: 10px 16px; font-size: 14px; }
.fhg-arrow { transition: transform 180ms var(--ease-standard); display: inline-block; }
.fhg-btn:hover .fhg-arrow { transform: translateX(4px); }

/* ---------- CONTAINER + SECTION ---------- */
.fhg-container { max-width: var(--container); margin: 0 auto; padding: 0 var(--outer); }
.fhg-section { padding: var(--sp-9) 0; }
.fhg-section__head { margin-bottom: var(--sp-7); }
.fhg-section__head .fhg-eyebrow { margin-bottom: var(--sp-3); }

/* ---------- NAV ---------- */
.fhg-nav { position: sticky; top: 0; z-index: 50; padding: var(--sp-4) 0; transition: background var(--dur-base), box-shadow var(--dur-base); }
.fhg-nav.is-scrolled { background: rgba(247,243,236,.78); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: var(--shadow-nav); }
.fhg-nav__inner { max-width: var(--container); margin: 0 auto; padding: 0 var(--outer); display: flex; align-items: center; justify-content: space-between; gap: var(--sp-5); }
.fhg-nav__brand { display: flex; align-items: center; }
.fhg-nav__links { display: flex; gap: var(--sp-6); }
/* Default (over hero video): white links with subtle shadow for legibility */
.fhg-nav__links a {
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: color var(--dur-base);
  text-shadow: 0 1px 2px rgba(14,27,44,.45);
}
.fhg-nav__links a:hover { color: var(--fhg-brass); }
/* Scrolled (over ivory bg): dark links, no shadow */
.fhg-nav.is-scrolled .fhg-nav__links a { color: var(--fg-1); text-shadow: none; }
.fhg-nav.is-scrolled .fhg-nav__links a:hover { color: var(--fhg-brass); }
@media (max-width: 860px) { .fhg-nav__links { display: none; } }

/* ---------- HERO (dynamic, video-backed) ---------- */
.fhg-hero {
  position: relative; min-height: 100vh; display: flex; flex-direction: column;
  justify-content: flex-end; overflow: hidden;
  margin-top: -76px; padding: 140px 0 0;
  color: var(--fhg-ivory);
  isolation: isolate;
}
.fhg-hero__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.fhg-hero__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.06); animation: fhg-slow-zoom 24s ease-in-out infinite alternate;
  filter: saturate(.88) contrast(1.05);
}
.fhg-hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.06); animation: fhg-slow-zoom 24s ease-in-out infinite alternate;
  filter: saturate(.85) contrast(1.05);
}
@keyframes fhg-slow-zoom { 0% { transform: scale(1.04) translate(0,0);} 100% { transform: scale(1.12) translate(-1%, -1.5%);} }
.fhg-hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(14,27,44, calc(var(--hero-overlay, .55))) 0%, rgba(14,27,44, calc(var(--hero-overlay, .55) * .25)) 35%, rgba(14,27,44, calc(var(--hero-overlay, .55) * 1.5)) 100%),
    linear-gradient(90deg, rgba(14,27,44, calc(var(--hero-overlay, .55) * 1.1)) 0%, rgba(14,27,44,0) 60%);
}
.fhg-hero__grain {
  position: absolute; inset: 0; opacity: .12; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.6'/></svg>");
}

.fhg-hero__content {
  position: relative; max-width: var(--container); width: 100%; margin: 0 auto;
  padding: 0 var(--outer) var(--sp-9);
}
.fhg-hero__row1 { display: inline-flex; align-items: center; gap: 10px; margin-bottom: var(--sp-5);
  padding: 6px 12px 6px 10px; background: rgba(247,243,236,.08); border: 1px solid rgba(247,243,236,.16);
  border-radius: 999px; backdrop-filter: blur(8px); }
.fhg-hero__eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(247,243,236,.85); }
.fhg-hero__pulse {
  width: 8px; height: 8px; border-radius: 999px; background: var(--fhg-brass);
  box-shadow: 0 0 0 0 rgba(176,138,74,.7);
  animation: fhg-pulse 1.8s ease-out infinite;
}
@keyframes fhg-pulse { 0% { box-shadow: 0 0 0 0 rgba(176,138,74,.6);} 100% { box-shadow: 0 0 0 12px rgba(176,138,74,0);} }

.fhg-hero__title { color: var(--fhg-ivory); max-width: 980px; margin: 0 0 var(--sp-5); }
.fhg-hero__title span { display: block; }
.fhg-hero__title em { font-style: italic; color: #EFE2C4; }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity 700ms var(--ease-standard), transform 700ms var(--ease-standard); transition-delay: var(--d, 0ms); }
.fhg-hero.is-in .reveal { opacity: 1; transform: translateY(0); }

.fhg-hero__sub { font-family: var(--sans-body); color: rgba(247,243,236,.88); max-width: 600px; font-size: 19px; line-height: 1.55; margin: 0 0 var(--sp-6); }
.fhg-hero__ctas { display: flex; gap: var(--sp-3); flex-wrap: wrap; align-items: center; }
.fhg-btn--brass { background: var(--fhg-brass); color: var(--fhg-ink) !important; border: none; font-weight: 600; box-shadow: 0 8px 24px rgba(176,138,74,.28); }
.fhg-btn--brass:hover { background: #c79c58; transform: translateY(-1px); }
.fhg-play { width: 28px; height: 28px; border-radius: 999px; background: rgba(247,243,236,.12); border: 1px solid rgba(247,243,236,.3); display:inline-flex; align-items:center; justify-content:center; }
.fhg-play::before { content:''; width: 0; height: 0; border-left: 7px solid var(--fhg-ivory); border-top: 4px solid transparent; border-bottom: 4px solid transparent; margin-left: 2px; }

.fhg-hero__meta { display: flex; gap: var(--sp-7); margin-top: var(--sp-7); padding-top: var(--sp-5); border-top: 1px solid rgba(247,243,236,.14); }
.fhg-hero__meta > div { display: flex; flex-direction: column; gap: 2px; }
.fhg-num-mini { font-family: var(--serif-display); font-weight: 500; font-size: 26px; line-height: 1; color: var(--fhg-ivory); font-feature-settings: "lnum","tnum"; letter-spacing: -.01em; }
.fhg-hero__meta span:last-child { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: rgba(247,243,236,.55); }

/* Marquee */
.fhg-hero__marquee {
  position: relative; z-index: 2; padding: 14px 0; border-top: 1px solid rgba(247,243,236,.1);
  background: rgba(14,27,44,.5); backdrop-filter: blur(10px); overflow: hidden;
}
.fhg-hero__marquee-track { display: flex; width: max-content; animation: fhg-marquee var(--marquee-dur, 40s) linear infinite; gap: 28px; }
.fhg-hero__marquee-set { display: flex; align-items: center; gap: 28px; font-family: var(--serif-display); font-style: italic; font-size: 18px; color: rgba(247,243,236,.85); white-space: nowrap; padding-right: 28px;}
.fhg-hero__marquee-set span:nth-child(2n) { color: var(--fhg-brass); font-style: normal; }
@keyframes fhg-marquee { from { transform: translateX(0);} to { transform: translateX(-50%);} }

/* Scroll indicator */
.fhg-hero__scroll { position: absolute; right: 32px; bottom: 96px; display:flex; flex-direction:column; align-items:center; gap: 8px; color: rgba(247,243,236,.7); text-decoration:none; }
.fhg-hero__scroll-line { width: 1px; height: 56px; background: rgba(247,243,236,.2); position: relative; overflow: hidden; }
.fhg-hero__scroll-line span { position: absolute; left: 0; top: -30%; width: 100%; height: 30%; background: var(--fhg-brass); animation: fhg-scroll 2s ease-in-out infinite; }
@keyframes fhg-scroll { 0% { top: -30%;} 100% { top: 100%;} }
.fhg-hero__scroll-text { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
@media (max-width: 760px) {
  .fhg-hero__meta { flex-wrap: wrap; gap: var(--sp-4);}
  .fhg-hero__scroll { display: none; }
}

/* ---------- STATS ---------- */
.fhg-stats { border-top: 1px solid var(--fhg-hairline); }
.fhg-stats__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--sp-7); margin-top: var(--sp-5); }
.fhg-stat { border-top: 1px solid var(--fhg-hairline); padding-top: var(--sp-4); }
.fhg-unit { color: var(--fhg-brass); font-size: .5em; margin-left: 2px; }
.fhg-stat .fhg-micro { margin-top: var(--sp-3); }
.fhg-stat p { margin-top: var(--sp-2); }
@media (max-width: 760px) { .fhg-stats__grid { grid-template-columns: 1fr; } }

/* ---------- WORKFLOW ---------- */
.fhg-workflow__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-7); }
.fhg-step__n { font-family: var(--serif-display); font-size: 56px; font-weight: 400; color: var(--fhg-brass); line-height: 1; font-feature-settings: "lnum","tnum"; }
.fhg-step__rule { height: 1px; background: var(--fhg-hairline); margin: var(--sp-4) 0; }
.fhg-step__t { font-family: var(--serif-display); font-weight: 500; font-size: 24px; color: var(--fg-1); margin: 0 0 var(--sp-2); letter-spacing: -.005em; line-height: 1.2; }
.fhg-step__d { font-size: 15px; color: var(--fg-2); line-height: 1.55; margin: 0; }
@media (max-width: 760px) { .fhg-workflow__grid { grid-template-columns: 1fr; gap: var(--sp-6); } }

/* ---------- SERVICES GRID ---------- */
.fhg-services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
.fhg-service { background: var(--fhg-white); border: 1px solid var(--fhg-hairline); border-radius: var(--r-3); overflow: hidden; transition: box-shadow var(--dur-slow) var(--ease-standard), transform var(--dur-slow) var(--ease-standard); }
.fhg-service:hover { box-shadow: var(--shadow-1); }
.fhg-service__img { aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--fhg-sand); }
.fhg-service__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 600ms var(--ease-standard); filter: saturate(.92); }
.fhg-service:hover .fhg-service__img img { transform: scale(1.04); }
.fhg-service__ph { font-family: var(--mono); font-size: 11px; color: var(--fg-3); letter-spacing: .08em; text-transform: uppercase; }
.fhg-service__body { padding: var(--sp-5) var(--sp-5) var(--sp-6); }
.fhg-service__t { font-family: var(--serif-display); font-weight: 500; font-size: 22px; color: var(--fg-1); margin: var(--sp-2) 0 var(--sp-2); letter-spacing: -.01em; line-height: 1.2; }
.fhg-service__d { font-size: 14px; color: var(--fg-2); line-height: 1.55; margin: 0; }
@media (max-width: 960px) { .fhg-services__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .fhg-services__grid { grid-template-columns: 1fr; } }

/* ---------- PILLAR BLOCK ---------- */
.fhg-pillar { padding: var(--sp-9) 0; border-top: 1px solid var(--fhg-hairline); }
.fhg-pillar__inner { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-8); align-items: center; }
.fhg-pillar.is-reverse .fhg-pillar__inner { direction: rtl; }
.fhg-pillar.is-reverse .fhg-pillar__inner > * { direction: ltr; }
.fhg-pillar__img { aspect-ratio: 5/4; border-radius: var(--r-3); overflow: hidden; background: var(--fhg-sand); }
.fhg-pillar__img img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.92); }
.fhg-pillar__t { margin: var(--sp-3) 0 var(--sp-5); max-width: 520px; }
.fhg-pillar__list { list-style: none; padding: 0; margin: var(--sp-5) 0 0; display: flex; flex-direction: column; gap: var(--sp-3); }
.fhg-pillar__list li { font-size: 15px; color: var(--fg-2); padding-left: var(--sp-4); position: relative; line-height: 1.5; }
.fhg-pillar__dot { color: var(--fhg-brass); position: absolute; left: 0; font-weight: 700; }
@media (max-width: 860px) { .fhg-pillar__inner { grid-template-columns: 1fr; gap: var(--sp-5); } .fhg-pillar.is-reverse .fhg-pillar__inner { direction: ltr; } }

/* ---------- QUOTE ---------- */
.fhg-quote-section { background: var(--fhg-ivory-2); }
.fhg-pullquote-block { margin: 0; border-left: 3px solid var(--fhg-brass); padding: var(--sp-3) 0 var(--sp-3) var(--sp-7); }
.fhg-pullquote-block p { font-family: var(--serif-display); font-weight: 400; font-style: italic; font-size: 34px; line-height: 1.3; color: var(--fg-1); margin: 0 0 var(--sp-5); letter-spacing: -.005em; }
.fhg-quote__meta { display: flex; align-items: center; gap: var(--sp-4); }
.fhg-quote__avatar { width: 48px; height: 48px; background: var(--fhg-ink); color: var(--fhg-ivory); border-radius: 2px; display: flex; align-items: center; justify-content: center; font-family: var(--serif-display); font-size: 16px; font-weight: 500; letter-spacing: .05em; border: 1px solid var(--fhg-brass); }
.fhg-quote__name { font-weight: 600; color: var(--fg-1); font-size: 15px; }
.fhg-quote__role { font-size: 13px; color: var(--fg-3); }

/* ---------- CONTACT ---------- */
.fhg-contact { background: var(--fhg-ink); color: var(--fhg-ivory); }
.fhg-contact .fhg-eyebrow { color: rgba(247,243,236,.6); }
.fhg-contact .fhg-display-2 { color: var(--fhg-ivory); margin: var(--sp-3) 0 var(--sp-6); }
.fhg-contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-8); align-items: start; }
.fhg-contact__list { list-style: none; padding: 0; margin: var(--sp-6) 0 0; display: flex; flex-direction: column; gap: var(--sp-5); }
.fhg-contact__list li { display: flex; gap: var(--sp-4); align-items: flex-start; }
.fhg-contact__list svg { color: var(--fhg-brass); width: 22px; height: 22px; flex-shrink: 0; margin-top: 2px; }
.fhg-contact__list .fhg-micro { color: rgba(247,243,236,.5); margin-bottom: 2px; }
.fhg-contact__v { color: var(--fhg-ivory); font-size: 17px; text-decoration: none; }
.fhg-contact__v.fhg-link { background-image: linear-gradient(var(--fhg-brass), var(--fhg-brass)); }
.fhg-contact__v.fhg-link:hover { color: var(--fhg-brass); }

/* Form */
.fhg-form { background: rgba(247,243,236,.04); border: 1px solid rgba(247,243,236,.12); border-radius: var(--r-3); padding: var(--sp-6); display: flex; flex-direction: column; gap: var(--sp-4); }
.fhg-field { display: flex; flex-direction: column; gap: var(--sp-2); }
.fhg-field label { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: rgba(247,243,236,.6); }
.fhg-field input, .fhg-field select, .fhg-field textarea {
  background: rgba(14,27,44,.55); color: var(--fhg-ivory); border: 1px solid rgba(247,243,236,.2);
  border-radius: 6px; padding: 12px 14px; font-family: var(--sans-body); font-size: 15px; outline: none;
  transition: border-color var(--dur-base);
}
.fhg-field select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, rgba(247,243,236,.6) 50%), linear-gradient(135deg, rgba(247,243,236,.6) 50%, transparent 50%);
  background-position: calc(100% - 18px) center, calc(100% - 12px) center;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 34px;
}
.fhg-field select option { background: #0E1B2C; color: var(--fhg-ivory); }
.fhg-field input:focus, .fhg-field select:focus, .fhg-field textarea:focus { border-color: var(--fhg-brass); }
.fhg-field input::placeholder, .fhg-field textarea::placeholder { color: rgba(247,243,236,.35); }
.fhg-form .fhg-btn--primary { background: var(--fhg-brass); color: var(--fhg-ink); border: none; align-self: flex-start; margin-top: var(--sp-2); }
.fhg-form .fhg-btn--primary:hover { background: #c79c58; }
.fhg-form__sent { text-align: center; padding: var(--sp-7) 0; }
.fhg-form__sent svg { color: var(--fhg-brass); width: 40px; height: 40px; margin-bottom: var(--sp-4); }
.fhg-form__sent h3 { color: var(--fhg-ivory); margin: 0 0 var(--sp-2); }
.fhg-form__sent p { color: rgba(247,243,236,.7); margin: 0; }
@media (max-width: 860px) { .fhg-contact__grid { grid-template-columns: 1fr; gap: var(--sp-6); } }

/* ---------- FOOTER ---------- */
.fhg-footer { background: var(--fhg-ivory-2); padding: var(--sp-8) 0 var(--sp-5); }
.fhg-footer__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-8); padding-bottom: var(--sp-7); border-bottom: 1px solid var(--fhg-hairline); }
.fhg-footer__grid img { filter: none; }
.fhg-footer__tag { font-size: 14px; color: var(--fg-2); line-height: 1.55; margin-top: var(--sp-3); max-width: 360px; }
.fhg-footer__cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-6); }
.fhg-footer__h { color: var(--fg-3); margin-bottom: var(--sp-3); }
.fhg-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--sp-2); }
.fhg-footer ul li, .fhg-footer ul a { color: var(--fg-1); font-size: 14px; text-decoration: none; }
.fhg-footer ul a { cursor: pointer; transition: color var(--dur-base); }
.fhg-footer ul a:hover { color: var(--fhg-brass); }
.fhg-footer__legal { display: flex; justify-content: space-between; font-size: 12px; color: var(--fg-3); padding-top: var(--sp-4); }
/* fix: image in dark footer section — use on-ivory variant by default */
.fhg-footer__grid > div:first-child img { display: block; }
.fhg-footer__grid > div:first-child { color: var(--fg-1); }
.fhg-footer__grid > div:first-child img[src*="on-ink"] { filter: invert(1) contrast(.92) sepia(.02); }
@media (max-width: 760px) { .fhg-footer__grid { grid-template-columns: 1fr; } .fhg-footer__legal { flex-direction: column; gap: var(--sp-2); } }

/* ---------- MODAL ---------- */
.fhg-modal { position: fixed; inset: 0; z-index: 100; background: rgba(14,27,44,.5); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; padding: var(--sp-4); animation: fade-in .2s var(--ease-standard); }
.fhg-modal__card { background: var(--fhg-ivory); max-width: 560px; width: 100%; border-radius: var(--r-3); padding: var(--sp-7); position: relative; border: 1px solid var(--fhg-hairline); }
.fhg-modal__close { position: absolute; top: 16px; right: 16px; background: transparent; border: none; cursor: pointer; color: var(--fg-2); padding: 8px; border-radius: 999px; transition: background var(--dur-base); }
.fhg-modal__close:hover { background: var(--fhg-ivory-2); }
.fhg-modal__close svg { width: 20px; height: 20px; }
.fhg-modal__steps { list-style: none; padding: 0; margin: var(--sp-4) 0; display: flex; flex-direction: column; gap: var(--sp-4); counter-reset: step; }
.fhg-modal__steps li { position: relative; padding: var(--sp-3) 0 var(--sp-3) var(--sp-7); border-top: 1px solid var(--fhg-hairline); font-size: 15px; color: var(--fg-2); line-height: 1.55; counter-increment: step; }
.fhg-modal__steps li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 14px; font-family: var(--serif-display); font-size: 20px; color: var(--fhg-brass); font-feature-settings: "lnum","tnum"; }
.fhg-modal__steps li strong { color: var(--fg-1); font-weight: 600; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------- FADE-IN ON SCROLL ---------- */
.fhg-reveal { opacity: 0; transform: translateY(8px); transition: opacity 400ms var(--ease-standard), transform 400ms var(--ease-standard); }
.fhg-reveal.is-in { opacity: 1; transform: translateY(0); }
