/* =====================================================================
   joinhfg.com - loan officer recruiting site
   Palette and type come from assets/tokens.css (copied from
   lo-pages/assets/tokens.css at build). Never hardcode a brand hex here.
   Single-family Dunbar system: labels are Dunbar uppercase, never mono.
   ===================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px; line-height: 1.65;
  color: var(--hfg-ink); background: var(--hfg-white);
}
body.modal-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--hfg-teal-dark); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -0.015em; }
:focus-visible { outline: 3px solid var(--hfg-teal-dark); outline-offset: 2px; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--hfg-blue); color: #fff; padding: 12px 18px; z-index: 100; }
.skip:focus { left: 0; }

.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }

/* ---------- type helpers ---------- */
.eyebrow {
  font-family: var(--font-label); font-size: 12px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--hfg-teal-dark); margin: 0 0 12px;
}
.eyebrow-lime { color: var(--hfg-lime); }
.lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--hfg-gray-dark); max-width: 62ch; }
.h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; color: var(--hfg-blue); margin: 0 0 16px; max-width: 22ch; }
.h3 { font-size: clamp(20px, 2vw, 24px); font-weight: 700; color: var(--hfg-blue); margin: 0 0 10px; }
.center { text-align: center; }
.center .h2, .center .lede { margin-inline: auto; }
.mark { color: var(--hfg-lime); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 26px; border-radius: var(--radius-pill);
  font-family: var(--font-sans); font-weight: 700; font-size: 16px; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background .15s ease, transform .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-lg { padding: 16px 32px; font-size: 17px; }
.btn-lime { background: var(--hfg-lime); color: var(--hfg-ink); }
.btn-lime:hover { background: var(--hfg-lime-light); }
.btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; background: transparent; }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-outline { border-color: var(--hfg-blue); color: var(--hfg-blue); background: transparent; }
.btn-outline:hover { background: var(--hfg-off-white); }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }
.play-dot { width: 22px; height: 22px; border-radius: 50%; background: currentColor; position: relative; flex: none; }
.play-dot::after { content: ""; position: absolute; left: 8px; top: 6px; border-left: 8px solid var(--hfg-blue-deep); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.link-arrow { font-weight: 700; color: var(--hfg-blue); text-decoration: none; }
.link-arrow::after { content: " \2192"; transition: margin .15s; }
.link-arrow:hover::after { margin-left: 4px; }

/* ---------- header ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--hfg-line); backdrop-filter: saturate(1.4) blur(6px); }
.nav-in { width: min(var(--wrap), 100% - 48px); margin-inline: auto; display: flex; align-items: center; gap: 28px; min-height: 72px; }
.nav-logo { display: flex; align-items: center; gap: 12px; flex: none; text-decoration: none; }
.nav-logo img { width: 180px; height: auto; }
.nav-tag {
  font-family: var(--font-label); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--hfg-blue); border-left: 1px solid var(--hfg-line-strong); padding-left: 12px;
}
.nav-links { display: flex; gap: 24px; margin-left: auto; }
.nav-links a { color: var(--hfg-ink); text-decoration: none; font-weight: 500; font-size: 16px; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav-links a:hover { border-bottom-color: var(--hfg-teal); }
.nav-links a[aria-current="page"] { border-bottom-color: var(--hfg-lime); font-weight: 700; }
.nav-cta { flex: none; padding: 10px 22px; font-size: 15px; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; margin-left: auto; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--hfg-ink); margin: 5px 0; }
.nav-mobile { display: none; }

/* ---------- hero (home) and page hero ---------- */
.hero, .phero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 500px at 88% 10%, rgba(14,160,193,.35), transparent 60%),
    radial-gradient(700px 420px at 0% 100%, rgba(215,219,0,.10), transparent 60%),
    linear-gradient(160deg, var(--hfg-blue-deep) 0%, var(--hfg-blue) 70%, var(--hfg-blue-light) 100%);
}
.hero::after, .phero::after {
  content: ""; position: absolute; inset: auto -10% -1px -10%; height: 90px;
  background: var(--hfg-white); clip-path: ellipse(60% 100% at 50% 100%);
}
.hero-in { position: relative; z-index: 1; padding: clamp(70px, 10vw, 130px) 0 clamp(110px, 12vw, 160px); }
.hero h1 { font-size: clamp(40px, 7vw, 84px); font-weight: 800; line-height: 1.02; margin: 0 0 22px; max-width: 14ch; letter-spacing: -0.025em; }
.hero .lede, .phero .lede { color: #D3E2EE; }
.hero .lede { font-size: clamp(18px, 1.9vw, 22px); margin: 0 0 34px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.phero-in { position: relative; z-index: 1; padding: clamp(56px, 7vw, 96px) 0 clamp(100px, 10vw, 130px); }
.phero h1 { font-size: clamp(34px, 5.4vw, 64px); font-weight: 800; margin: 0 0 18px; max-width: 18ch; }
.phero .eyebrow { color: var(--hfg-lime); }
.phero .lede { margin: 0; }
.phero-points { list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 34px; max-width: 900px; }
.phero-points li { position: relative; padding-left: 30px; color: #E9F0F6; }
.phero-points li::before { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 9px; border-left: 3px solid var(--hfg-lime); border-bottom: 3px solid var(--hfg-lime); transform: rotate(-45deg); }

/* ---------- bands ---------- */
.band { padding: clamp(56px, 7vw, 96px) 0; }
.band-tint { background: var(--hfg-off-white); }
.band-dark { background: var(--hfg-blue-deep); color: #fff; }
.band-dark .h2, .band-dark .h3 { color: #fff; }
.band-dark .lede { color: #C8D6E2; }
.band-dark .eyebrow { color: var(--hfg-lime); }
/* Two plain white bands in a row read as one section, so the second drops its top padding. */
.band:not(.band-tint):not(.band-dark):not(.band-cta) + .band:not(.band-tint):not(.band-dark):not(.band-cta) { padding-top: 0; }

/* ---------- jump links ---------- */
.jump { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.jump a {
  display: inline-block; padding: 9px 18px; border-radius: var(--radius-pill);
  background: var(--hfg-white); border: 1px solid var(--hfg-line-strong);
  color: var(--hfg-blue); font-weight: 700; font-size: 14px; text-decoration: none;
}
.jump a:hover { border-color: var(--hfg-teal); }
.jump-bar { padding: 22px 0; border-bottom: 1px solid var(--hfg-line); }

/* ---------- quote ---------- */
.quote { margin: 0; max-width: 900px; }
.quote p { font-family: var(--font-display); font-size: clamp(22px, 2.8vw, 34px); line-height: 1.3; font-weight: 700; color: var(--hfg-blue); margin: 0 0 18px; }
.quote p::before { content: "\201C"; color: var(--hfg-lime-dark); }
.quote p::after { content: "\201D"; color: var(--hfg-lime-dark); }
.quote footer { font-weight: 700; color: var(--hfg-ink); }
.quote footer span { display: block; font-weight: 400; color: var(--hfg-gray-dark); font-size: 15px; }
.band-dark .quote p { color: #fff; }
.band-dark .quote footer { color: #fff; }
.band-dark .quote footer span { color: #A9BCCD; }

/* ---------- statement ---------- */
.statement { font-family: var(--font-display); font-weight: 800; font-size: clamp(30px, 4.6vw, 58px); line-height: 1.1; color: var(--hfg-blue); margin: 0 0 22px; letter-spacing: -0.02em; }
.statement span { display: block; }
.statement span:nth-child(n+2) { color: var(--hfg-teal-dark); }

/* ---------- pillars ---------- */
.pillars { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.pillar a {
  display: flex; flex-direction: column; height: 100%;
  padding: 26px 24px 24px; border-radius: var(--radius-lg);
  background: var(--hfg-white); border: 1px solid var(--hfg-line); box-shadow: var(--shadow-sm);
  text-decoration: none; color: var(--hfg-ink); transition: transform .18s ease, box-shadow .18s ease, border-color .18s;
}
.pillar a:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--hfg-teal); }
.pillar-n { font-family: var(--font-label); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--hfg-teal-dark); }
.pillar h3 { font-size: 22px; color: var(--hfg-blue); margin: 14px 0 10px; font-weight: 800; }
.pillar p { margin: 0 0 18px; font-size: 15.5px; color: var(--hfg-gray-dark); flex: 1; }
.pillar .link-arrow { font-size: 15px; }

/* ---------- split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split-r > :first-child { order: 2; }

/* ---------- checklist ---------- */
.checks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 34px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--hfg-lime);
}
.checks li::after { content: ""; position: absolute; left: 7px; top: 9px; width: 9px; height: 5px; border-left: 2px solid var(--hfg-ink); border-bottom: 2px solid var(--hfg-ink); transform: rotate(-45deg); }
.checks strong { display: block; color: var(--hfg-blue); }
.band-dark .checks strong { color: #fff; }

/* ---------- cards ---------- */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 30px; }
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { background: var(--hfg-white); border: 1px solid var(--hfg-line); border-radius: var(--radius); padding: 24px 24px 22px; }
.card h4 { font-size: 19px; font-weight: 800; color: var(--hfg-blue); margin: 0 0 8px; }
.card p { margin: 0; color: var(--hfg-gray-dark); font-size: 15.5px; }
.card-tag { display: inline-block; font-family: var(--font-label); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--hfg-teal-dark); margin-bottom: 8px; }
.band-tint .card { box-shadow: var(--shadow-sm); }

/* ---------- journey (MarTech) ---------- */
.stage { display: grid; grid-template-columns: 300px 1fr; gap: clamp(28px, 4vw, 60px); padding: clamp(40px, 5vw, 64px) 0; border-top: 1px solid var(--hfg-line); scroll-margin-top: 90px; }
.stage:first-of-type { border-top: 0; }
.stage-head { position: sticky; top: 100px; align-self: start; }
.stage-n { font-family: var(--font-display); font-weight: 800; font-size: 64px; line-height: 1; color: var(--hfg-line-strong); }
.stage-head h3 { font-size: clamp(28px, 3vw, 38px); color: var(--hfg-blue); margin: 8px 0 10px; font-weight: 800; }
.stage-head p { margin: 0; color: var(--hfg-gray-dark); }
.stage .cards { margin-top: 0; }
.flow { list-style: none; margin: 34px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: f; }
.flow li { position: relative; padding: 18px 20px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); color: #fff; font-weight: 700; }
.flow li:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.flow li:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
.flow li span { display: block; font-weight: 400; color: #C8D6E2; font-size: 14.5px; }
.flow a { color: #fff; text-decoration: none; }
.flow a:hover { color: var(--hfg-lime); }

/* ---------- numbered principles ---------- */
.principles { list-style: none; margin: 30px 0 0; padding: 0; counter-reset: p; display: grid; gap: 0; }
.principles li { counter-increment: p; display: grid; grid-template-columns: 70px 1fr; gap: 10px; padding: 20px 0; border-top: 1px solid var(--hfg-line); }
.principles li::before { content: counter(p, decimal-leading-zero); font-family: var(--font-display); font-weight: 800; font-size: 28px; color: var(--hfg-teal-dark); }
.principles strong { display: block; font-size: 19px; color: var(--hfg-blue); }
.principles span { color: var(--hfg-gray-dark); }
.band-dark .principles li { border-color: rgba(255,255,255,.14); }
.band-dark .principles li::before { color: var(--hfg-lime); }
.band-dark .principles strong { color: #fff; }
.band-dark .principles span { color: #C8D6E2; }

/* ---------- values ---------- */
.values { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.values li { padding: 10px 20px; border-radius: var(--radius-pill); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); color: #fff; font-weight: 700; letter-spacing: .02em; }

/* ---------- video ---------- */
.vid { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); background: var(--hfg-blue-deep); }
.vid iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vid-play {
  position: absolute; inset: 0; width: 100%; border: 0; cursor: pointer; color: #fff; text-align: left;
  display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(18px, 3vw, 30px);
  background:
    radial-gradient(600px 300px at 80% 0%, rgba(14,160,193,.45), transparent 60%),
    linear-gradient(150deg, var(--hfg-blue) 0%, var(--hfg-blue-deep) 100%);
  font-family: var(--font-sans);
}
.vid-icon {
  position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%);
  width: 78px; height: 78px; border-radius: 50%; background: var(--hfg-lime); box-shadow: 0 0 0 10px rgba(215,219,0,.18);
  transition: transform .18s ease, box-shadow .18s ease;
}
.vid-icon::after { content: ""; position: absolute; left: 31px; top: 24px; border-left: 22px solid var(--hfg-ink); border-top: 15px solid transparent; border-bottom: 15px solid transparent; }
.vid-play:hover .vid-icon { transform: translate(-50%, -50%) scale(1.06); box-shadow: 0 0 0 14px rgba(215,219,0,.22); }
.vid-label { font-family: var(--font-label); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--hfg-lime); }
.vid-title { font-weight: 700; font-size: clamp(17px, 1.8vw, 21px); margin-top: 4px; }

.vmodal { position: fixed; inset: 0; z-index: 200; background: rgba(3,39,64,.86); display: grid; place-items: center; padding: 24px; }
.vmodal[hidden] { display: none; }
.vmodal-box { position: relative; width: min(1100px, 100%); }
.vmodal-frame { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; }
.vmodal-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vmodal-x { position: absolute; right: 0; top: -48px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; color: var(--hfg-ink); font-size: 26px; line-height: 1; cursor: pointer; }

/* ---------- stories ---------- */
.stories { list-style: none; margin: 34px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.story {
  position: relative; display: flex; flex-direction: column; height: 100%; min-height: 200px;
  padding: 22px 22px 20px; border-radius: var(--radius); text-decoration: none; color: #fff;
  background:
    radial-gradient(300px 160px at 100% 0%, rgba(14,160,193,.5), transparent 70%),
    linear-gradient(160deg, var(--hfg-blue) 0%, var(--hfg-blue-deep) 100%);
  transition: transform .18s ease, box-shadow .18s ease;
}
.story:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.story-topic { font-family: var(--font-display); font-size: 21px; font-weight: 800; line-height: 1.2; flex: 1; }
.story-name { font-weight: 700; margin-top: 18px; }
.story-role { font-size: 14px; color: #C8D6E2; }
.story-go { position: absolute; right: 18px; bottom: 18px; font-size: 13px; font-weight: 700; color: var(--hfg-ink); background: var(--hfg-lime); border-radius: var(--radius-pill); padding: 5px 12px; }

/* ---------- executives ---------- */
.execs { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 30px 18px; }
.exec { text-align: center; }
.avatar { width: 112px; height: 112px; border-radius: 50%; margin: 0 auto 14px; object-fit: cover; }
.avatar-mono {
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 34px; color: #fff;
  background: linear-gradient(150deg, var(--hfg-teal-dark), var(--hfg-blue));
  box-shadow: inset 0 0 0 4px rgba(255,255,255,.25);
}
.exec-name { display: block; font-weight: 800; color: var(--hfg-blue); }
.exec-title { display: block; font-size: 14.5px; color: var(--hfg-gray-dark); line-height: 1.4; margin-top: 2px; }

/* ---------- testimonial pair ---------- */
.testis { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 36px; }
.testi { background: var(--hfg-white); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-sm); border: 1px solid var(--hfg-line); }
.testi p { margin: 0 0 18px; font-size: 18px; color: var(--hfg-ink); }
.testi footer { font-weight: 800; color: var(--hfg-blue); }
.testi footer span { display: block; font-weight: 400; color: var(--hfg-gray-dark); font-size: 14.5px; }

/* ---------- CTA band ---------- */
.band-cta { background: linear-gradient(140deg, var(--hfg-blue-deep), var(--hfg-blue)); color: #fff; }
.cta-in { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-in h2 { font-size: clamp(28px, 3.6vw, 44px); font-weight: 800; margin: 0 0 10px; max-width: 20ch; }
.cta-in .lede { color: #C8D6E2; margin: 0; }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(30px, 5vw, 70px); align-items: start; }
.contact-person { display: flex; gap: 18px; align-items: center; margin: 26px 0; }
.contact-person .avatar { width: 84px; height: 84px; margin: 0; font-size: 26px; }
.contact-person strong { display: block; color: var(--hfg-blue); font-size: 19px; }
.form { background: var(--hfg-white); border: 1px solid var(--hfg-line); border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 36px); box-shadow: var(--shadow); display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 700; font-size: 14.5px; color: var(--hfg-ink); }
.form .req { font-weight: 400; color: var(--hfg-gray); font-size: 12.5px; margin-left: 6px; }
.form input, .form textarea {
  font: inherit; font-weight: 400; font-size: 16px; padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--hfg-line-strong); background: var(--hfg-white); color: var(--hfg-ink);
}
.form input:focus, .form textarea:focus { outline: 3px solid rgba(14,160,193,.35); border-color: var(--hfg-teal-dark); }
.form .btn { justify-self: start; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; min-height: 1.4em; color: var(--hfg-gray-dark); font-size: 15px; }
.form-note { margin: 0; font-size: 13.5px; color: var(--hfg-gray); }
.form-done-h { font-family: var(--font-display); font-size: 26px; font-weight: 800; color: var(--hfg-blue); margin: 0 0 8px; }
.form-done { margin: 0; color: var(--hfg-gray-dark); }
.form-fallback { border: 1px dashed var(--hfg-line-strong); background: var(--hfg-off-white); border-radius: var(--radius); padding: 26px; }
.form-fallback p { margin: 0; }
.form-fallback .form-h { font-weight: 700; margin-bottom: 6px; }

/* ---------- embed pages ---------- */
.embed { position: relative; width: 100%; height: calc(100vh - 72px); min-height: 560px; border: 0; display: block; }
.device-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 30px; max-width: 720px; }
.device-pick a { display: block; padding: 34px 28px; border-radius: var(--radius-lg); border: 1px solid var(--hfg-line); background: var(--hfg-white); text-decoration: none; box-shadow: var(--shadow-sm); }
.device-pick a:hover { border-color: var(--hfg-teal); box-shadow: var(--shadow); }
.device-pick strong { display: block; font-family: var(--font-display); font-size: 26px; color: var(--hfg-blue); }
.device-pick span { color: var(--hfg-gray-dark); }

/* ---------- footer ---------- */
.foot { background: var(--hfg-blue-deep); color: #fff; }
.foot-in { width: min(var(--wrap), 100% - 48px); margin-inline: auto; display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1fr; gap: 34px; padding: clamp(44px, 5vw, 64px) 0 34px; }
.foot-logo { width: 180px; margin-bottom: 16px; }
.foot-addr { color: #C8D6E2; font-size: 15px; margin: 0 0 18px; }
.foot-ehl { width: 38px; }
.foot h5 { font-family: var(--font-label); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--hfg-lime); margin: 0 0 12px; font-weight: 700; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: 9px; }
.foot a { color: #D9E4EE; text-decoration: none; font-size: 15px; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot-social { display: grid; gap: 9px; margin: 0; }
.foot-legal { border-top: 1px solid rgba(255,255,255,.14); width: min(var(--wrap), 100% - 48px); margin-inline: auto; padding: 24px 0 40px; }
.legal { color: #A9BCCD; font-size: 12.5px; line-height: 1.6; margin: 0 0 10px; max-width: 110ch; }
.legal a { color: #C8D6E2; font-size: inherit; }
.legal-dim { color: #8FA4B7; }

/* ---------- error pages ---------- */
.err { padding: clamp(70px, 10vw, 140px) 0; }
.err h1 { font-size: clamp(34px, 5vw, 56px); color: var(--hfg-blue); margin: 0 0 14px; font-weight: 800; }

/* ---------- responsive ---------- */
@media (max-width: 1040px) {
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-links { gap: 18px; }
}
@media (max-width: 900px) {
  .split, .contact, .testis { grid-template-columns: 1fr; }
  .split-r > :first-child { order: 0; }
  .stage { grid-template-columns: 1fr; }
  .stage-head { position: static; }
  .cards-3 { grid-template-columns: 1fr 1fr; }
  .flow { grid-template-columns: 1fr 1fr; }
  .flow li, .flow li:first-child, .flow li:last-child { border-radius: 0; }
  .foot-in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .nav-mobile { display: block; padding: 10px 0 22px; border-top: 1px solid var(--hfg-line); }
  .nav-mobile[hidden] { display: none; }
  .nav-mobile a { display: block; padding: 12px 24px; color: var(--hfg-ink); text-decoration: none; font-weight: 500; }
  .nav-mobile a[aria-current="page"] { font-weight: 700; color: var(--hfg-blue); }
  .nav-mobile .btn { margin: 12px 24px 0; display: inline-flex; }
}
@media (max-width: 640px) {
  .wrap, .nav-in, .foot-in, .foot-legal { width: min(var(--wrap), 100% - 32px); }
  .pillars, .cards, .cards-3, .phero-points, .form-row, .device-pick, .flow { grid-template-columns: 1fr; }
  .nav-logo img { width: 150px; }
  .nav-tag { display: none; }
  .foot-in { grid-template-columns: 1fr; gap: 26px; }
  .principles li { grid-template-columns: 50px 1fr; }
  .hero-cta .btn { width: 100%; }
}
@media print {
  .nav, .nav-mobile, .skip, .vmodal { display: none; }
}

/* ---------- utilities (no inline styles: the CSP forbids them) ---------- */
.mt { margin-top: 24px; }
.mt-lg { margin-top: 40px; }
.m0 { margin: 0; }
.quote-sm p { font-size: clamp(19px, 2vw, 23px); }
.link-light { color: #fff; }
.link-light:hover { color: var(--hfg-lime); }
.narrow { max-width: 760px; }

/* ---------- testimonial photo ---------- */
.testi-who { display: flex; align-items: center; gap: 14px; }
.testi-who img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; }
.testi-name { font-weight: 800; color: var(--hfg-blue); }
.testi-name span { display: block; font-weight: 400; color: var(--hfg-gray-dark); font-size: 14.5px; }

/* ---------- President's Club ---------- */
.pc { border-top: 1px solid rgba(255,255,255,.14); padding-top: 40px; }
.pc-head { display: flex; align-items: baseline; gap: 18px 28px; flex-wrap: wrap; margin-bottom: 22px; }
.pc-head .eyebrow, .pc-head .h3 { margin: 0; }
.pc-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pc-grid li { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--hfg-blue); }
.pc-grid img { width: 100%; height: 100%; object-fit: cover; }
.pc-grid span { position: absolute; left: 12px; bottom: 12px; background: var(--hfg-lime); color: var(--hfg-ink); font-weight: 800; font-size: 13px; padding: 4px 12px; border-radius: var(--radius-pill); }
@media (max-width: 640px) { .pc-grid { grid-template-columns: 1fr; } }
.testi .testi-name { display: block; font-size: 16px; font-weight: 800; color: var(--hfg-blue); }
.testi .testi-name span { display: block; font-size: 14.5px; font-weight: 400; color: var(--hfg-gray-dark); }

/* =====================================================================
   Photography layer (2026-10-06). Images self-hosted from the old
   Squarespace site, converted to WebP, in src/img.
   ===================================================================== */

/* ---------- photo hero ---------- */
.hero-photo { background: var(--hfg-blue-deep); }
.hero-photo .hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%;
  filter: grayscale(1) contrast(1.05); opacity: .55; mix-blend-mode: luminosity;
}
.hero-photo::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(90deg, rgba(3,39,64,.96) 0%, rgba(3,39,64,.82) 42%, rgba(8,75,123,.35) 100%),
    radial-gradient(700px 400px at 85% 15%, rgba(14,160,193,.35), transparent 60%);
}
.hero-photo .hero-in, .hero-photo .phero-in { position: relative; z-index: 1; }
.hero-photo .hero-in { padding-top: clamp(90px, 12vw, 170px); padding-bottom: clamp(130px, 14vw, 200px); }

/* ---------- inner page hero with media ---------- */
.phero-split .phero-in { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.phero-split .phero-points { grid-template-columns: 1fr; }
.phero-media { position: relative; }
.phero-media::before {
  content: ""; position: absolute; inset: 8% 4% 0; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(14,160,193,.45), transparent); filter: blur(10px);
}
.phero-img { position: relative; width: 100%; height: auto; filter: drop-shadow(0 30px 40px rgba(0,0,0,.35)); }

/* ---------- framed photos ---------- */
.photo-frame { position: relative; }
.photo-frame::after {
  content: ""; position: absolute; inset: auto -14px -14px auto; width: 55%; height: 55%;
  border-radius: var(--radius-lg); background: var(--hfg-lime); z-index: -1;
}
.photo-frame { z-index: 0; }
.photo { width: 100%; height: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.photo-frame-dark::after { background: var(--hfg-teal); opacity: .5; }
.band-quote .quote p { font-size: clamp(24px, 2.6vw, 32px); }
.band-quote .testi-name { color: var(--hfg-blue); }

/* ---------- pillars with devices ---------- */
.pillar a { padding: 0 0 24px; overflow: hidden; }
.pillar-media {
  display: grid; place-items: center; height: 168px; margin-bottom: 20px; padding: 18px;
  background:
    radial-gradient(200px 120px at 50% 60%, rgba(14,160,193,.22), transparent 70%),
    linear-gradient(160deg, var(--hfg-off-white), #E6EEF4);
  border-bottom: 1px solid var(--hfg-line);
}
.pillar-img { max-height: 132px; width: auto; transition: transform .25s ease; }
.pillar a:hover .pillar-img { transform: scale(1.05) translateY(-3px); }
.pillar-n, .pillar h3, .pillar p, .pillar .link-arrow { margin-left: 24px; margin-right: 24px; }

/* ---------- photo band ---------- */
.band-photo { position: relative; overflow: hidden; }
.band-photo .band-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .16; filter: grayscale(1); }
.band-photo > .wrap { position: relative; }

/* ---------- MarTech card screenshots ---------- */
.card-shot {
  display: block; width: 100%; height: 170px; object-fit: contain; margin: -4px 0 18px;
  background: linear-gradient(160deg, var(--hfg-off-white), #E3ECF3); border-radius: var(--radius-sm); padding: 14px;
}

/* ---------- video poster ---------- */
.vid-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vid-has-poster .vid-play { background: none; }
.vid-has-poster .vid-play::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(3,39,64,.85) 0%, rgba(3,39,64,.1) 55%); }
.vid-has-poster .vid-label, .vid-has-poster .vid-title, .vid-has-poster .vid-icon { position: relative; z-index: 1; }
.vid-has-poster .vid-icon { position: absolute; }

/* ---------- stories with thumbnails (replaces the gradient tiles) ---------- */
.stories { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 22px; }
.story {
  min-height: 0; padding: 0; color: var(--hfg-ink); background: var(--hfg-white);
  border: 1px solid var(--hfg-line); box-shadow: var(--shadow-sm); overflow: hidden;
}
.story-media { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--hfg-blue); overflow: hidden; }
.story-img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.story:hover .story-img { transform: scale(1.04); }
.story-play { position: absolute; right: 14px; bottom: 14px; width: 44px; height: 44px; border-radius: 50%; background: var(--hfg-lime); box-shadow: 0 0 0 6px rgba(215,219,0,.25); }
.story-play::after { content: ""; position: absolute; left: 17px; top: 13px; border-left: 13px solid var(--hfg-ink); border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.story-body { display: block; padding: 16px 18px 18px; }
.story-name { display: block; margin: 0; font-weight: 800; color: var(--hfg-blue); font-size: 17px; }
.story-role { display: block; color: var(--hfg-gray-dark); font-size: 14px; }
.story-topic { display: block; margin-top: 8px; font-family: var(--font-label); font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--hfg-teal-dark); flex: none; }
.story-go { display: none; }

/* ---------- device picker icons ---------- */
.device-ico { height: 90px; width: auto; margin-bottom: 14px; }

@media (max-width: 900px) {
  .phero-split .phero-in { grid-template-columns: 1fr; }
  .phero-media { max-width: 420px; }
  .photo-frame::after { inset: auto -8px -8px auto; }
}
/* stacking: photo, then the blue wash, then the words */
.hero-photo .hero-img { z-index: 0; }
.hero-photo::before { z-index: 1; }
.hero-photo .hero-in, .hero-photo .phero-in { z-index: 2; }
.hero-photo::after { z-index: 3; }
.pillar-media { height: 184px; }
.pillar-img { max-height: 150px; }

/* ---------- homepage hero: light, one framed photo (chosen 2026-10-07) ---------- */
.hero-light { background: var(--hfg-off-white); overflow: hidden; }
.hero-light-in { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 5vw, 64px); align-items: center; padding: clamp(56px, 7vw, 96px) 0 clamp(72px, 8vw, 110px); }
.hero-light h1 { font-size: clamp(40px, 5.6vw, 72px); font-weight: 800; line-height: 1.02; letter-spacing: -0.025em; color: var(--hfg-blue); margin: 0 0 20px; }
.hero-light h1 .mark { color: var(--hfg-teal-dark); }
.hero-light .lede { margin: 0 0 30px; }
.hero-frame { position: relative; }
.hero-frame::before { content: ""; position: absolute; right: -20px; bottom: -20px; width: 60%; height: 60%; background: var(--hfg-lime); border-radius: var(--radius-lg); }
.hero-frame::after { content: ""; position: absolute; left: -16px; top: -16px; width: 84px; height: 84px; border: 3px solid var(--hfg-teal); border-radius: 50%; z-index: 2; }
.hero-frame-img { position: relative; z-index: 1; width: 100%; aspect-ratio: 1.85 / 1; object-fit: cover; object-position: 50% 30%; border-radius: var(--radius-lg); box-shadow: 0 30px 60px -25px rgba(3,39,64,.5); }
.play-dot-blue { color: var(--hfg-blue); }
.play-dot-blue::after { border-left-color: #fff; }
@media (max-width: 860px) {
  .hero-light-in { grid-template-columns: 1fr; }
  .hero-frame { margin-right: 12px; }
}
@media (max-width: 640px) { .hero-light .hero-cta .btn { width: 100%; } }
/* hero photo larger (2026-10-07): wider container for this band, photo column takes ~60% */
.hero-light-in { width: min(1320px, 100% - 48px); grid-template-columns: minmax(0, .85fr) minmax(0, 1.35fr); gap: clamp(32px, 4vw, 56px); }
.hero-light h1 { font-size: clamp(40px, 5vw, 66px); }
@media (max-width: 860px) { .hero-light-in { grid-template-columns: 1fr; width: min(1320px, 100% - 32px); } }
/* keep the words lined up with the logo; let the photo grow out toward the right edge */
.hero-light-in { width: min(var(--wrap), 100% - 48px); }
.hero-frame { margin-right: calc(-1 * max(0px, (100vw - var(--wrap)) / 2 - 40px)); }
@media (max-width: 860px) { .hero-frame { margin-right: 12px; } }

/* ---------- pillar cards: proof tops (2026-10-07, replaces device mockups) ---------- */
.pillar-top {
  display: grid; place-items: center; height: 168px; margin-bottom: 20px; padding: 16px;
  background: linear-gradient(160deg, var(--hfg-off-white), #E4EDF4); border-bottom: 1px solid var(--hfg-line);
}
.logo-wall { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; width: 100%; }
.logo-chip { display: grid; place-items: center; height: 36px; padding: 5px 8px; background: #fff; border-radius: 8px; box-shadow: 0 1px 3px rgba(3,39,64,.08); }
.logo-img { max-height: 22px; max-width: 100%; width: auto; height: auto; }
.stat-big { font-family: var(--font-display); font-weight: 800; font-size: 54px; line-height: 1; color: var(--hfg-blue); text-align: center; }
.stat-big small { display: block; margin-top: 10px; font-family: var(--font-label); font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--hfg-teal-dark); }
.chips { display: grid; gap: 7px; width: 100%; }
.chips > span { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: #fff; border-radius: 999px; padding: 7px 14px; box-shadow: 0 1px 3px rgba(3,39,64,.08); font-weight: 700; font-size: 13.5px; color: var(--hfg-blue); }
.chips b { font-weight: 700; font-size: 12px; color: var(--hfg-teal-dark); white-space: nowrap; }
.pillar a:hover .pillar-top { background: linear-gradient(160deg, #EAF3F8, #DAE8F1); }

/* MarTech page header: the full logo wall on a white card */
.phero-logos .logo-wall { background: rgba(255,255,255,.96); border-radius: var(--radius-lg); padding: 18px; gap: 10px; box-shadow: var(--shadow-lift); }
.phero-logos .logo-chip { height: 50px; box-shadow: none; background: var(--hfg-off-white); }
.phero-logos .logo-img { max-height: 28px; }
.phero-logos::before { display: none; }

/* Videos with a photo cover: play button moves to the bottom-right corner,
   next to the title, so it never sits on someone's face. */
.vid-has-poster .vid-icon { left: auto; top: auto; right: clamp(16px, 2.5vw, 26px); bottom: clamp(16px, 2.5vw, 26px); transform: none; width: 64px; height: 64px; box-shadow: 0 0 0 8px rgba(215,219,0,.25); }
.vid-has-poster .vid-icon::after { left: 25px; top: 19px; border-left-width: 18px; border-top-width: 13px; border-bottom-width: 13px; }
.vid-has-poster .vid-play:hover .vid-icon { transform: scale(1.06); }
.vid-has-poster .vid-label, .vid-has-poster .vid-title { padding-right: 90px; }
/* Leader video thumbnails already carry their title in the artwork. */
.vid-no-caption .vid-label, .vid-no-caption .vid-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.vid-no-caption .vid-play::before { display: none; }
@media (max-width: 640px) {
  .vid-has-poster .vid-icon { width: 50px; height: 50px; box-shadow: 0 0 0 6px rgba(215,219,0,.25); }
  .vid-has-poster .vid-icon::after { left: 19px; top: 15px; border-left-width: 15px; border-top-width: 10px; border-bottom-width: 10px; }
}
.pc-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.execs .avatar { filter: grayscale(1); } /* the leadership set is black and white; keeps a colour headshot from standing out */
/* President's Club: four years. A tile whose photo is not in src/img yet shows navy with the year. */
.pc-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pc-img { width: 100%; height: 100%; object-fit: cover; }
.pc-grid li { background: linear-gradient(150deg, var(--hfg-blue), var(--hfg-blue-deep)); border: 1px solid rgba(255,255,255,.12); }
@media (max-width: 900px) { .pc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Equal Housing Lender mark: footer uses equal-housing-lender-white.png, a white
   knockout of the dark-blue original, so it reads on navy. */
.foot-ehl { width: 56px; height: auto; }
.pc-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.pc-grid li { aspect-ratio: 3 / 4; }
@media (max-width: 1040px) { .pc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .pc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pc-grid li:first-child { grid-column: span 2; aspect-ratio: 16 / 9; } }

/* Logo wall: 6-column grid, each logo spans 2, so a short last row can sit centred. */
.logo-wall { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.logo-chip { grid-column: span 2; }
.logo-chip:nth-last-child(2):nth-child(3n+1) { grid-column: 2 / span 2; }
.logo-chip:last-child:nth-child(3n+1) { grid-column: 3 / span 2; }

/* ---------- screenshot pairs (Builders: Brief, custom pages) ---------- */
.shots { position: relative; padding: 0 0 18% 0; }
.shot { display: block; border-radius: 12px; box-shadow: var(--shadow); border: 1px solid var(--hfg-line); background: #fff; }
.shot-back { width: 82%; }
.shot-front { position: absolute; right: 0; bottom: 0; width: 70%; box-shadow: var(--shadow-lift); }
.shot-note { margin: 18px 0 0; font-size: 13.5px; color: var(--hfg-gray); }

/* ---------- Launch Pad 30-60-90 ---------- */
.runway { display: grid; grid-template-columns: 300px 1fr; gap: 28px; margin-top: 40px; padding: 26px; border-radius: var(--radius-lg); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); }
.runway h3, .phase h3 { color: #fff; font-size: 22px; font-weight: 800; margin: 8px 0 8px; }
.runway-head p { margin: 0; color: #C8D6E2; }
.runway-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.runway-list li { color: #D6E3EE; padding-left: 16px; border-left: 3px solid var(--hfg-lime); }
.runway-list strong { display: block; color: #fff; }
.phase-n { display: inline-block; font-family: var(--font-label); font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--hfg-ink); background: var(--hfg-lime); padding: 4px 10px; border-radius: 999px; }
.phases { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.phase { padding: 26px 24px; border-radius: var(--radius-lg); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); }
.phase > p { color: #C8D6E2; margin: 0 0 14px; }
.phase ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.phase ul li { position: relative; padding-left: 22px; color: #E6EEF5; font-size: 15.5px; }
.phase ul li::before { content: ""; position: absolute; left: 0; top: 7px; width: 11px; height: 6px; border-left: 2px solid var(--hfg-lime); border-bottom: 2px solid var(--hfg-lime); transform: rotate(-45deg); }
.cadence { margin-top: 18px; padding: 24px 26px; border-radius: var(--radius-lg); border: 1px dashed rgba(255,255,255,.25); }
.cadence ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.cadence li { color: #D6E3EE; font-size: 15px; }
.cadence b { display: block; color: var(--hfg-lime); font-weight: 800; }
@media (max-width: 900px) { .runway, .phases, .cadence ul { grid-template-columns: 1fr; } .cadence ul { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .cadence ul { grid-template-columns: 1fr; } }

/* ---------- MarTech: Homie Tools, your website ---------- */
.card-shot-logo { object-fit: contain; padding: 40px; }
.toolgroups { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; margin-top: 26px; }
.toolgroups h4 { margin: 0 0 6px; font-family: var(--font-label); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--hfg-teal-dark); }
.toolgroups ul { list-style: none; margin: 0; padding: 0; }
.toolgroups li { font-weight: 700; color: var(--hfg-blue); padding: 3px 0; }
.tools-visual { position: relative; }
.tools-fan { width: 100%; height: auto; filter: drop-shadow(0 30px 40px rgba(3,39,64,.25)); }
.device-pair { position: relative; padding-right: 14%; padding-bottom: 8%; }
.shot-desktop { width: 100%; }
.shot-phone { position: absolute; right: 0; bottom: 0; width: 24%; border-radius: 16px; border: 4px solid var(--hfg-ink); box-shadow: var(--shadow-lift); }

/* ---------- Coaching gallery ---------- */
.gallery { list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 220px; gap: 12px; }
.gallery li { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--hfg-blue); }
.gallery .g-wide { grid-column: span 2; grid-row: span 2; }
.g-img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery li:hover .g-img { transform: scale(1.03); }
.gallery span { position: absolute; left: 12px; bottom: 12px; background: rgba(3,39,64,.82); color: #fff; font-weight: 700; font-size: 13px; padding: 5px 12px; border-radius: 999px; }

/* ---------- Home: values photo ---------- */
.values-photo { border: 1px solid rgba(255,255,255,.15); }

@media (max-width: 900px) {
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; }
  .gallery .g-wide { grid-column: span 2; grid-row: span 2; }
}
@media (max-width: 640px) { .toolgroups { grid-template-columns: 1fr; } }
.gallery .g-span2 { grid-column: span 2; }
@media (max-width: 900px) { .gallery .g-span2 { grid-column: span 2; } }

/* ---------- Builders: marketing example cards ---------- */
.excards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 30px; }
.excard { background: #fff; border: 1px solid var(--hfg-line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.ex-media { display: block; height: 240px; overflow: hidden; background: linear-gradient(160deg, var(--hfg-off-white), #E4EDF4); border-bottom: 1px solid var(--hfg-line); }
.ex-img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .35s ease; }
.ex-top { object-position: top center; }
.excard:hover .ex-img { transform: scale(1.04); }
.excard h4 { font-size: 19px; font-weight: 800; color: var(--hfg-blue); margin: 18px 20px 6px; }
.excard p { margin: 0 20px 20px; color: var(--hfg-gray-dark); font-size: 15px; }
@media (max-width: 1040px) { .excards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .excards { grid-template-columns: 1fr; } .ex-media { height: 220px; } }
.ex-left { object-position: left center; }
.ex-kmh { object-position: 34% center; }

/* builders hero: framed hard-hat photo */
.phero-photo::before { display: none; }
.phero-shot { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); border: 4px solid rgba(255,255,255,.9); box-shadow: 0 30px 60px rgba(0,0,0,.35); }
@media (max-width: 900px) { .phero-photo { max-width: 520px; } }

/* jump links v2: one card tucked into the hero curve */
.jump-bar { position: relative; z-index: 3; padding: 0; border: 0; margin-top: clamp(-72px, -6vw, -44px); }
.jump-card { display: flex; align-items: center; gap: 18px; background: var(--hfg-white); border-radius: var(--radius-lg); box-shadow: 0 18px 40px rgba(7,36,56,.14); border: 1px solid var(--hfg-line); padding: 8px 10px 8px 24px; }
.jump-label { flex: none; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--hfg-teal); }
.jump { flex: 1; min-width: 0; flex-wrap: nowrap; gap: 2px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.jump::-webkit-scrollbar { display: none; }
.jump li { flex: none; }
.jump a { border: 0; background: transparent; border-radius: var(--radius-pill); padding: 10px 14px; font-size: 14.5px; white-space: nowrap; transition: background .2s, color .2s; }
.jump a:hover, .jump a:focus-visible { background: var(--hfg-off-white); color: var(--hfg-blue); }
@media (max-width: 900px) {
  .jump-card { flex-direction: column; align-items: stretch; gap: 4px; padding: 14px 0 8px; }
  .jump-label { padding: 0 18px; }
  .jump { padding: 0 8px; mask-image: linear-gradient(90deg, #000 85%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); }
}
.jump-bar { padding-bottom: 28px; }
@media (min-width: 901px) { .jump a { padding: 10px 10px; font-size: 14px; } .jump-card { gap: 12px; } }
@media (max-width: 900px) { .gallery .g-span2-m { grid-column: span 2; } }

/* ---------- pillar cards v3: color, depth, motion (2026-10-07) ---------- */
.pillar { position: relative; }
.pillar a { position: relative; isolation: isolate; border: 0; box-shadow: 0 2px 4px rgba(3,39,64,.04), 0 12px 32px rgba(3,39,64,.08); }
.pillar a::after { /* big watermark number */
  content: attr(data-n); position: absolute; right: 18px; bottom: 6px; z-index: -1;
  font-family: var(--font-display); font-weight: 800; font-size: 120px; line-height: 1; letter-spacing: -.04em;
  color: transparent; -webkit-text-stroke: 1.5px var(--hfg-line-strong); opacity: .7; transition: opacity .25s, transform .35s;
}
.pillar a:hover { transform: translateY(-6px); box-shadow: 0 4px 8px rgba(3,39,64,.06), 0 24px 48px rgba(3,39,64,.16); }
.pillar a:hover::after { opacity: 1; transform: translateY(-4px); }
.pillar-top { position: relative; overflow: hidden; height: 184px; border-bottom: 0; }
.pillar-top::before { /* soft dot grid */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.16) 1.2px, transparent 1.3px); background-size: 16px 16px;
  mask-image: linear-gradient(160deg, #000, transparent 75%); -webkit-mask-image: linear-gradient(160deg, #000, transparent 75%);
}
.pillar-top > * { position: relative; }
.pillar-top::after { /* accent strip under the media */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--acc, var(--hfg-teal));
}
/* 01 MarTech: light, teal accent */
.p1 { --acc: var(--hfg-teal); }
.pillar.p1 a .pillar-top { background: radial-gradient(120% 90% at 0% 0%, #FFFFFF, #E2EEF5); }
.p1 .pillar-top::before { background-image: radial-gradient(rgba(8,75,123,.10) 1.2px, transparent 1.3px); }
/* 02 Builders: deep navy, lime number */
.p2 { --acc: var(--hfg-lime); }
.pillar.p2 a .pillar-top { background: radial-gradient(90% 120% at 100% 0%, #0E6A93 0%, transparent 60%), linear-gradient(160deg, var(--hfg-blue) 0%, var(--hfg-blue-deep) 100%); }
.p2 .stat-big { color: #fff; }
.p2 .stat-num { display: inline-flex; align-items: baseline; gap: 10px; font-size: 76px; letter-spacing: -.03em; }
.p2 .stat-num em { font-style: normal; font-size: 30px; color: var(--hfg-lime); font-weight: 800; letter-spacing: 0; }
.p2 .stat-big small { color: #CFE3EF; }
/* 03 Coaching: teal */
.p3 { --acc: var(--hfg-lime); }
.pillar.p3 a .pillar-top { background: radial-gradient(100% 120% at 0% 100%, rgba(215,219,0,.22), transparent 55%), linear-gradient(150deg, var(--hfg-teal) 0%, var(--hfg-teal-dark) 55%, var(--hfg-blue) 100%); }
/* 04 Operations: blue */
.p4 { --acc: var(--hfg-teal-light); }
.pillar.p4 a .pillar-top { background: radial-gradient(100% 120% at 100% 100%, rgba(14,160,193,.45), transparent 60%), linear-gradient(160deg, var(--hfg-blue-light) 0%, var(--hfg-blue-dark) 100%); }
/* glass chips on the dark tops */
.p3 .chips > span, .p4 .chips > span {
  background: rgba(255,255,255,.12); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.22);
  backdrop-filter: blur(4px); padding-left: 12px; justify-content: flex-start;
}
.p3 .chips > span::before, .p4 .chips > span::before {
  content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%;
  background: var(--hfg-lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23032740' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
}
.p3 .chips b, .p4 .chips b { margin-left: auto; color: var(--hfg-lime-light); font-weight: 600; }
.pillar a:hover .chips > span { transform: translateX(2px); }
.chips > span { transition: transform .2s ease; }
.pillar a:hover .pillar-top { background-blend-mode: normal; filter: saturate(1.08); }
.pillar.p1 a:hover .pillar-top { background: radial-gradient(120% 90% at 0% 0%, #FFFFFF, #D8E9F2); filter: none; }
/* label with accent dot, CTA as pill */
.pillar-n { display: inline-flex; align-items: center; gap: 8px; }
.pillar-n::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--acc) 25%, transparent); }
.p2 .pillar-n::before, .p3 .pillar-n::before { background: var(--hfg-lime-dark); }
.pillar .link-arrow {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 8px 10px 18px; border-radius: 999px; background: var(--hfg-off-white); color: var(--hfg-blue);
  transition: background .2s, color .2s;
}
.pillar .link-arrow::after {
  content: "\2192"; display: grid; place-items: center; width: 28px; height: 28px; margin: 0; border-radius: 50%;
  background: var(--hfg-blue); color: #fff; font-size: 15px; transition: transform .2s, background .2s;
}
.pillar a:hover .link-arrow { background: var(--hfg-blue); color: #fff; }
.pillar a:hover .link-arrow::after { background: var(--hfg-lime); color: var(--hfg-blue-deep); transform: translateX(3px); margin: 0; }
@media (prefers-reduced-motion: reduce) { .pillar a, .pillar a::after, .chips > span, .pillar .link-arrow::after { transition: none; } }

.pillar.p2 a:hover .pillar-top, .pillar.p3 a:hover .pillar-top, .pillar.p4 a:hover .pillar-top { filter: saturate(1.12) brightness(1.04); }
.pillar a::after { font-size: 92px; bottom: auto; top: 196px; right: 14px; opacity: .5; }
.pillar a:hover::after { opacity: .85; }
.pillar-top { padding: 14px 12px; }
.p3 .chips > span, .p4 .chips > span { gap: 8px; padding: 7px 12px 7px 10px; font-size: 12.5px; white-space: nowrap; }
.p3 .chips b, .p4 .chips b { font-size: 11px; }
.p2 .stat-num em { margin: 0 2px; }
.pillar a::after { top: auto; bottom: 18px; right: 18px; font-size: 64px; opacity: .55; }
.pillar a::after { content: none; }

/* ---------- inner page heroes: light, matches the homepage (2026-10-07) ---------- */
.phero {
  color: var(--hfg-ink);
  background: radial-gradient(800px 500px at 95% 0%, #DCEBF4, transparent 65%), var(--hfg-off-white);
}
.phero::after { background: var(--hfg-white); }
.phero h1 { color: var(--hfg-blue); }
.phero .lede { color: var(--hfg-gray-dark); }
.phero .eyebrow { color: var(--hfg-teal-dark); }
.phero-points li { color: var(--hfg-ink); }
.phero-points li::before { border-color: var(--hfg-teal); }
.phero-shot { border-color: var(--hfg-white); box-shadow: 0 24px 50px rgba(3,39,64,.18); }
.phero-img { filter: drop-shadow(0 24px 30px rgba(3,39,64,.2)); }
.phero-media::before { opacity: .5; }
.phero-logos .logo-wall { background: var(--hfg-white); box-shadow: 0 24px 50px rgba(3,39,64,.14); }
.p3 .chips { gap: 5px; }
.p3 .chips > span { padding-top: 5px; padding-bottom: 5px; }
.foot-ehl { width: 34px; height: auto; }
.cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .cards-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .cards-4 { grid-template-columns: 1fr; } }
