/* ==========================================================================
   Human Performance Group — styles.css
   Design system for gohpg.com. Vanilla CSS, mobile-first, no build step.

   Contents
   01 Tokens            08 Sections & section heads   15 Team grid
   02 Reset             09 Cards                      16 Form
   03 Typography        10 Opportunity trio           17 Location block
   04 Layout            11 Step sequence              18 Buttons
   05 Header & nav      12 Flywheel                   19 Footer
   06 Hero              13 Point list                 20 Utilities
   07 Backgrounds       14 CTA band                   21 Motion / reveal
                                                      22 Reduced motion
                                                      23 Print
   Conventions
   - No !important. Breakpoints: 480 / 768 / 1024 / 1280 (min-width).
   - Component colours read scoped custom properties (--muted, --ice, --heading,
     --card-bg, ...) so the light ".section--relief" variant re-tokens them
     once instead of overriding every component.
   ========================================================================== */


/* --------------------------------------------------------------------------
   01 Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Palette */
  --bg: #070C16;
  --bg-2: #0C1424;
  --steel: #16325C;
  --blue: #1E6FD9;
  --blue-deep: #1558B8;   /* eyebrow / accent on the light relief section (6.3:1 on --relief) */
  --blue-hover: #1A63C4;  /* primary button hover (5.8:1 with white) */
  --ice: #4FA8F5;
  --pale: #CFE2F7;
  --chrome: #C3CBD4;
  --chrome-2: #8A939D;
  --white: #FFFFFF;
  --text: #E6EDF6;
  --muted: #A9B4C2;
  --relief: #F4F7FB;

  /* Scoped role tokens (re-tokened inside .section--relief) */
  --heading: var(--white);
  --hairline: rgba(255, 255, 255, .10);
  --hairline-strong: rgba(255, 255, 255, .18);
  --card-bg: var(--bg-2);
  --tile-bg: var(--bg);
  --field-bg: var(--bg);
  --btn2-border: var(--chrome);
  --num-a: #FFFFFF;
  --num-b: #C3CBD4;
  --num-c: #8A939D;
  --glow: 0 0 0 1px rgba(79, 168, 245, .35), 0 18px 40px rgba(30, 111, 217, .18);

  /* Type */
  --font-display: "Sora", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Shape & rhythm */
  --radius: 14px;
  --radius-sm: 10px;
  --header-h: 72px;
  --gutter: 16px;
  --container: 1200px;
  --section-pad: clamp(4rem, 9vw, 7.5rem);
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* Constellation mesh: thin lines + small nodes, white at ~7% / ~10%. Tiles at 420px. */
  --mesh: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='420' viewBox='0 0 420 420'%3E%3Cg fill='none' stroke='rgba(255,255,255,0.07)' stroke-width='1'%3E%3Cpath d='M52,74L178,38L266,128L386,86M178,38L142,202M266,128L236,268L388,292M142,202L236,268M142,202L38,350L236,268M388,292L306,392M38,350L146,404M386,86L388,292'/%3E%3C/g%3E%3Cg fill='rgba(255,255,255,0.10)'%3E%3Ccircle cx='52' cy='74' r='2'/%3E%3Ccircle cx='178' cy='38' r='2.5'/%3E%3Ccircle cx='266' cy='128' r='2'/%3E%3Ccircle cx='386' cy='86' r='2'/%3E%3Ccircle cx='142' cy='202' r='2.5'/%3E%3Ccircle cx='236' cy='268' r='2'/%3E%3Ccircle cx='388' cy='292' r='2'/%3E%3Ccircle cx='38' cy='350' r='2'/%3E%3Ccircle cx='306' cy='392' r='2.5'/%3E%3Ccircle cx='146' cy='404' r='2'/%3E%3C/g%3E%3C/svg%3E");
  /* Select chevron (stroke = --muted) */
  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M3 6l5 5 5-5' fill='none' stroke='%23A9B4C2' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

@media (min-width: 768px)  { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; } }


/* --------------------------------------------------------------------------
   02 Reset
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  color-scheme: dark;
}

/* No overflow guard on html/body on purpose: every component below is contained
   (the hero clips its own emblem, connectors live in grid gaps), and an overflow
   rule on the root would interfere with position: sticky and page scrolling. */
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
  min-height: 100vh;
}

img, svg, video { max-width: 100%; height: auto; vertical-align: middle; }
img { border-style: none; }

a { color: var(--ice); text-underline-offset: .15em; }
a:hover { color: var(--pale); }

button, input, select, textarea { font: inherit; color: inherit; margin: 0; }
button { cursor: pointer; }
address { font-style: normal; }
ul[role="list"], ol[role="list"] { list-style: none; margin: 0; padding: 0; }
hr { border: 0; border-top: 1px solid var(--hairline); margin: 0; }

::selection { background: var(--blue); color: var(--white); }

/* Anchor targets land below the sticky header */
[id] { scroll-margin-top: calc(var(--header-h) + 1rem); }

/* Focus: one rule for everything, always visible when keyboard-driven */
:focus-visible {
  outline: 2px solid var(--ice);
  outline-offset: 3px;
}
:focus:not(:focus-visible) { outline: none; }

/* Skip link (first element in <body>) */
.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: -100px;
  z-index: 300;
  padding: .75rem 1rem;
  background: var(--blue);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 1rem; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}


/* --------------------------------------------------------------------------
   03 Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--heading);
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.025em;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.9rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.02em;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.01em;
}

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

strong { font-weight: 600; }

.intro {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--muted);
}

/* Eyebrow: always preceded by the 18px HPG section mark */
.eyebrow {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin: 0 0 1rem;
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 600;
  line-height: 1.35;            /* long eyebrows wrap at 320px; keep the two lines apart */
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ice);
}
.section-mark {
  width: 18px;
  height: 18px;
  flex: none;
  opacity: .9;
}

/* Numerals (01 / 02 / 03): Sora with a chrome gradient fill */
.num {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--chrome);          /* fallback */
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .num {
    background: linear-gradient(180deg, var(--num-a) 0%, var(--num-b) 55%, var(--num-c) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }
}

/* Prose blocks (Mission/Vision/Device paragraphs) */
.prose { max-width: 44rem; }
.prose p { margin: 0 0 1.25rem; }
.prose p:last-child { margin-bottom: 0; }
.prose--lg { font-size: 1.125rem; line-height: 1.65; }

/* Closing line under a section body */
.closing-line {
  margin: clamp(2rem, 4vw, 3rem) 0 0;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--heading);
}
.closing-line--accent { color: var(--ice); }
.closing-line--center { text-align: center; }


/* --------------------------------------------------------------------------
   04 Layout
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + (var(--gutter) * 2));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
main { display: block; }
main:focus { outline: none; }

/* Content that is inert while the mobile menu is open (fallback for browsers
   without native `inert`; native support also blocks focus and AT access) */
[inert] { pointer-events: none; }

/* Split: head column + content column on desktop (prose sections).
   The grid gap alone spaces head and copy at every width. */
.split { display: grid; gap: 2rem; align-items: start; }
.split .section-head { margin-bottom: 0; }

@media (min-width: 1024px) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3rem; }
}


/* --------------------------------------------------------------------------
   05 Header & nav
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color .3s var(--ease), border-color .3s var(--ease);
}
.site-header.is-scrolled,
.nav-open .site-header {
  background: var(--bg);
  border-bottom-color: var(--hairline);
}
/* While the overlay is open the body is pinned (see body.nav-open), so the
   header is fixed to the viewport top to keep the brand + close button in view */
.nav-open .site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  position: relative;
  z-index: 2;                    /* same layer as .nav-toggle: stays above the open overlay */
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  min-height: 44px;
  color: var(--white);
  text-decoration: none;
  border-radius: 8px;
}
.brand img { width: 52px; height: 52px; flex: none; }
.brand-text {
  display: none;
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .01em;
  white-space: nowrap;
}

/* Hamburger (44px) */
.nav-toggle {
  position: relative;
  z-index: 2;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  transition: border-color .2s, background-color .2s;
}
.nav-toggle:hover { border-color: var(--ice); background: rgba(79, 168, 245, .08); }
.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile / tablet: full-screen dark overlay */
.site-nav {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: calc(var(--header-h) + 1.5rem) var(--gutter) 2rem;
  background-color: var(--bg);
  background-image: var(--mesh);
  overflow-y: auto;
  overscroll-behavior: contain;  /* no scroll chaining to the page behind */
  visibility: hidden;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s linear .3s;
}
.site-nav.is-open {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition-delay: 0s;
}
/* Scroll lock that iOS Safari honours: pin the body at its current offset
   (site.js sets body.style.top = -scrollY and restores the position on close) */
body.nav-open {
  position: fixed;
  inset-inline: 0;
  width: 100%;
  overflow: hidden;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.nav-list a {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: .5rem 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 6vw, 2rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--hairline);
}
.nav-list a:hover { color: var(--white); }
.nav-list a[aria-current="page"] { color: var(--ice); }
.nav-cta { align-self: flex-start; }

@media (min-width: 1024px) {
  .nav-toggle { display: none; }

  .site-nav {
    position: static;
    inset: auto;
    z-index: auto;
    flex-direction: row;
    align-items: center;
    gap: 1.25rem;
    padding: 0;
    background: none;
    overflow: visible;
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: none;
  }
  .nav-list { flex-direction: row; gap: .125rem; }
  .nav-list a {
    position: relative;
    min-height: 44px;
    padding: .5rem .7rem;
    font-family: var(--font-body);
    font-size: .9375rem;
    font-weight: 500;
    line-height: 1;
    color: var(--muted);
    border-bottom: 0;
    border-radius: 8px;
    transition: color .2s;
  }
  .nav-list a:hover { color: var(--white); }
  .nav-list a[aria-current="page"] { color: var(--white); }
  .nav-list a[aria-current="page"]::after {
    content: "";
    position: absolute;
    left: .7rem;
    right: .7rem;
    bottom: 4px;
    height: 2px;
    border-radius: 2px;
    background: var(--ice);
  }
  .nav-cta { align-self: auto; min-height: 44px; padding: .6rem 1.1rem; font-size: .9375rem; }
}
@media (min-width: 1280px) {
  .brand-text { display: inline; }
}


/* --------------------------------------------------------------------------
   06 Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  margin-top: calc(var(--header-h) * -1);   /* slide under the transparent header */
  padding-top: calc(var(--header-h) + 3.5rem);
  padding-bottom: 3.5rem;
  background-color: var(--bg);
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 46rem;
}
.hero .eyebrow { margin-bottom: 1.25rem; }
.hero h1 { margin-bottom: 1.25rem; }
.hero .sub {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 38rem;
  margin: 0 0 2rem;
}

/* Home hero: mesh, radial glow, large emblem behind the type.
   Only this hero has out-of-box children (emblem, glow), so only it clips —
   interior heroes stay unclipped so card hover glows are not cut off. */
.hero--home {
  display: flex;
  align-items: center;
  min-height: min(92vh, 860px);
  min-height: min(92svh, 860px);
  overflow: hidden;
  overflow: clip;
  background-image: var(--mesh);
}
.hero--home::before {
  content: "";
  position: absolute;
  z-index: 0;
  right: -20%;
  bottom: -30%;
  width: 70vw;
  height: 70vw;
  max-width: 900px;
  max-height: 900px;
  background: radial-gradient(closest-side, rgba(30, 111, 217, .22), transparent 72%);
  pointer-events: none;
}
.hero--home > .container { width: 100%; }
.hero-emblem {
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 50%;
  width: min(70vw, 512px);       /* never larger than the 512px source */
  height: auto;
  transform: translate(-50%, -50%);
  opacity: .14;
  pointer-events: none;
  user-select: none;
}
@media (min-width: 1024px) {
  .hero { padding-top: calc(var(--header-h) + 5rem); padding-bottom: 5rem; }
  .hero-emblem {
    left: auto;
    right: max(var(--gutter), calc((100vw - var(--container)) / 2 - 4rem));
    transform: translateY(-50%);
  }
}

/* Interior hero: optional pillar emblem badge */
.hero--interior { padding-bottom: 3rem; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  height: var(--badge-h, 88px);
  margin-bottom: 1.5rem;
}
.hero-badge img {
  height: 100%;
  width: auto;
  max-width: min(100%, 320px);
  object-fit: contain;
  object-position: left center;
}
.hero-badge--wordmark { --badge-h: 64px; }
.hero-badge--tall { --badge-h: 120px; }
@media (min-width: 1024px) {
  .hero--interior { padding-bottom: 4rem; }
}


/* --------------------------------------------------------------------------
   07 Backgrounds
   -------------------------------------------------------------------------- */
.mesh { background-image: var(--mesh); }


/* --------------------------------------------------------------------------
   08 Sections & section heads
   -------------------------------------------------------------------------- */
.section {
  position: relative;
  padding-block: var(--section-pad);
}
.section--mesh {
  background-color: var(--bg-2);
  background-image: var(--mesh);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.section--line { border-top: 1px solid var(--hairline); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }

/* Light relief: re-token roles so every component adapts */
.section--relief {
  --heading: var(--bg-2);
  --muted: var(--steel);
  --ice: var(--blue-deep);
  --hairline: rgba(12, 20, 36, .12);
  --hairline-strong: rgba(12, 20, 36, .24);
  --card-bg: var(--white);
  --tile-bg: var(--white);
  --field-bg: var(--white);
  --btn2-border: var(--steel);
  --num-a: #16325C;
  --num-b: #0C1424;
  --num-c: #16325C;
  --glow: 0 0 0 1px rgba(30, 111, 217, .35), 0 18px 40px rgba(30, 111, 217, .14);
  background-color: var(--relief);
  color: var(--bg-2);
  color-scheme: light;
}
.section--relief a { color: var(--blue-deep); }
.section--relief a:hover { color: var(--steel); }
.section--relief .section-mark { opacity: 1; }
.section--relief ::selection { background: var(--blue); color: var(--white); }

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}
.section-head h2 { margin-bottom: 1rem; }
.section-head .intro { max-width: 40rem; margin: 0; }
.section-head--center {
  text-align: center;
  margin-inline: auto;
}
.section-head--center .eyebrow { justify-content: center; }
.section-head--center .intro { margin-inline: auto; }


/* --------------------------------------------------------------------------
   09 Cards
   -------------------------------------------------------------------------- */
.cards {
  display: grid;
  gap: 1.25rem;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--card-bg);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
@media (hover: hover) {
  .card:hover {
    transform: translateY(-4px);
    box-shadow: var(--glow);
    border-color: rgba(79, 168, 245, .35);
  }
}
.card:focus-within {
  box-shadow: var(--glow);
  border-color: rgba(79, 168, 245, .35);
}
.card-title {
  margin: 0 0 .6rem;
  font-size: 1.2rem;
  line-height: 1.3;              /* same rendering whether the title is an h2 or an h3 */
  letter-spacing: -.01em;
}
.card-title--caps {
  font-size: 1rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.card-body { margin: 0; color: var(--muted); }

/* Numbered card: big numeral above the title */
.card--numbered .card-num {
  display: block;
  margin-bottom: 1rem;
  font-size: clamp(2.25rem, 5vw, 3rem);
}

/* Pillar card: emblem, title, body, stretched link */
.card--pillar { min-height: 100%; }
.pillar-emblem {
  display: flex;
  align-items: center;
  height: 88px;
  margin-bottom: 1.5rem;
}
.pillar-emblem img {
  max-height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}
.card-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  align-self: flex-start;
  min-height: 44px;
  margin-top: auto;
  padding-top: 1rem;
  font-weight: 600;
  color: var(--ice);
  text-decoration: none;
  transition: gap .2s var(--ease);
}
.card-link::after { content: "\2192"; }
.card-link:hover { gap: .7rem; color: var(--pale); }
/* Whole pillar card is the tap target */
.card--pillar .card-link::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

/* Route card (contact): the title itself is the link, stretched over the card,
   so each link is named by its title and no extra label is needed */
.card--route .card-title a {
  color: inherit;
  text-decoration: none;
  transition: color .2s var(--ease);
}
.card--route .card-title a::before {
  content: "";
  position: absolute;
  inset: 0;
}
.card--route .card-title a::after {
  content: "\00a0\2192";
  color: var(--ice);
}
.card--route .card-title a:hover { color: var(--ice); }

@media (min-width: 768px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
}
@media (min-width: 1024px) {
  .cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}


/* --------------------------------------------------------------------------
   10 Opportunity trio  (item × item × item)
   -------------------------------------------------------------------------- */
.trio {
  display: grid;
  gap: 1.25rem;
  align-items: stretch;
}
.trio-x {
  display: none;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1;
  text-align: center;
  color: var(--chrome-2);
}
@media (min-width: 768px) {
  .trio {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 1.25rem;
  }
  .trio-x { display: block; }
}
@media (min-width: 1024px) {
  .trio { gap: 2rem; }
}


/* --------------------------------------------------------------------------
   11 Step sequence  (01 → 02 → 03 → 04)
   Vertical with a connecting line below 1024px; horizontal with arrows above.
   The connector lives in the grid gap and draws itself on reveal.
   -------------------------------------------------------------------------- */
.steps {
  --steps-gap: 2.75rem;
  --steps-cols: 4;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--steps-gap);
}
.steps--3 { --steps-cols: 3; }
.step { position: relative; }
.step-num {
  display: block;
  margin-bottom: .75rem;
  font-size: clamp(2rem, 4vw, 2.75rem);
}
.step-title {
  margin: 0 0 .5rem;
  font-size: 1rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.step-body { margin: 0; color: var(--muted); }

/* Vertical connector: from the bottom of one step to the top of the next */
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 1.25rem;
  top: 100%;
  width: 1px;
  height: var(--steps-gap);
  background: linear-gradient(180deg, var(--ice), rgba(79, 168, 245, .3));
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform .7s var(--ease) calc(var(--i, 0) * 80ms + 250ms);
}
.step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: calc(1.25rem - 3px);
  top: calc(100% + var(--steps-gap) - 10px);
  width: 7px;
  height: 7px;
  border-right: 1px solid var(--ice);
  border-bottom: 1px solid var(--ice);
  transform: rotate(45deg);
  opacity: 0;
  transition: opacity .3s var(--ease) calc(var(--i, 0) * 80ms + 850ms);
}
.step.is-visible::after, .is-visible .step::after { transform: scaleY(1); }
.step.is-visible::before, .is-visible .step::before { opacity: 1; }

@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(var(--steps-cols), minmax(0, 1fr)); }
  .step:not(:last-child)::after {
    left: 100%;
    top: 1.35rem;
    width: var(--steps-gap);
    height: 1px;
    background: linear-gradient(90deg, var(--ice), rgba(79, 168, 245, .3));
    transform: scaleX(0);
    transform-origin: left center;
  }
  .step:not(:last-child)::before {
    left: calc(100% + var(--steps-gap) - 10px);
    top: calc(1.35rem - 3px);
    transform: rotate(-45deg);
  }
  .step.is-visible::after, .is-visible .step::after { transform: scaleX(1); }
}


/* --------------------------------------------------------------------------
   12 Flywheel  (three items around a ring)
   Mobile: ring above a stacked list. Desktop: item 1 top-centre, items 3 and 2
   either side of the ring, which sits in the empty centre cell.
   -------------------------------------------------------------------------- */
.flywheel {
  position: relative;
  display: grid;
  gap: 2rem;
}
.flywheel-ring {
  display: block;
  width: min(60vw, 220px);
  height: auto;
  margin: 0 auto;
}
.ring-track { fill: none; stroke: var(--hairline-strong); stroke-width: 1; }
.ring-path {
  fill: none;
  stroke: var(--ice);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 503;
  stroke-dashoffset: 503;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  transition: stroke-dashoffset 1.4s var(--ease) .2s;
}
.ring-arrow {
  fill: none;
  stroke: var(--ice);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
  transition: opacity .4s var(--ease) 1.3s;
}
.ring-emblem { opacity: .85; }
.is-visible .ring-path, .flywheel-ring.is-visible .ring-path { stroke-dashoffset: 0; }
.is-visible .ring-arrow, .flywheel-ring.is-visible .ring-arrow { opacity: 1; }

.flywheel-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}
.flywheel-item {
  position: relative;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  background: var(--card-bg);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
}
.flywheel-item .num {
  display: block;
  margin-bottom: .75rem;
  font-size: 2rem;
}
.flywheel-path {
  margin: 0 0 .5rem;
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ice);
}
.flywheel-text { margin: 0; color: var(--muted); }

@media (min-width: 1024px) {
  .flywheel { display: block; }
  .flywheel-list {
    grid-template-columns: minmax(0, 1fr) 320px minmax(0, 1fr);
    grid-template-rows: auto minmax(320px, auto);
    grid-template-areas:
      ".     one   ."
      "three .     two";
    gap: 2rem;
    align-items: start;
  }
  .flywheel-item:nth-child(1) { grid-area: one; }
  .flywheel-item:nth-child(2) { grid-area: two; }
  .flywheel-item:nth-child(3) { grid-area: three; }
  .flywheel-ring {
    position: absolute;
    left: 50%;
    bottom: 20px;
    width: 280px;
    margin: 0;
    transform: translateX(-50%);
  }
}


/* --------------------------------------------------------------------------
   13 Point list  (title + one line)
   -------------------------------------------------------------------------- */
.points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem 2rem;
}
.point {
  position: relative;
  padding-top: 1rem;
  border-top: 1px solid var(--hairline-strong);
}
.point::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 2.5rem;
  height: 1px;
  background: var(--ice);
}
.point-title { margin: 0 0 .35rem; font-size: 1.05rem; }
.point-text { margin: 0; color: var(--muted); }

@media (min-width: 768px) {
  .points { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .points { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .points--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .points--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}


/* --------------------------------------------------------------------------
   14 CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: var(--section-pad);
  text-align: center;
  background: linear-gradient(180deg, var(--bg-2) 0%, #0E1E3A 100%);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--mesh);
}
.cta-band::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 50%;
  width: 70vw;
  height: 70vw;
  max-width: 800px;
  max-height: 800px;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(30, 111, 217, .2), transparent 72%);
  pointer-events: none;
}
.cta-band .eyebrow { justify-content: center; }
.cta-band h2 { max-width: 22ch; margin: 0 auto 1rem; }
.cta-band .sub {
  max-width: 40rem;
  margin: 0 auto 2rem;
  font-size: 1.125rem;
  color: var(--muted);
}
.cta-band .cta-row { justify-content: center; }

/* Row of buttons (hero, CTA band) */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1rem;
}
@media (max-width: 479px) {
  .cta-row .btn { width: 100%; }
}


/* --------------------------------------------------------------------------
   15 Team grid
   -------------------------------------------------------------------------- */
.team {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}
.team-card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
@media (hover: hover) {
  .team-card:hover { transform: translateY(-4px); box-shadow: var(--glow); border-color: rgba(79, 168, 245, .35); }
}
/* Monogram tile: initials over the emblem at 8% */
.team-mono {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin-bottom: 1.25rem;
  border-radius: 12px;
  background: var(--tile-bg);
  border: 1px solid var(--hairline);
  overflow: hidden;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--pale);
}
.section--relief .team-mono { color: var(--steel); }
.team-mono::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("assets/hpg-logo-160.png") center / 80% no-repeat;
  opacity: .08;
}
.section--relief .team-mono::before { opacity: .12; }
.team-name { margin: 0 0 .25rem; font-size: 1.15rem; }
.team-role {
  margin: 0 0 .75rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ice);
}
.team-bio { margin: 0; font-size: 1rem; line-height: 1.6; color: var(--muted); }

@media (min-width: 768px) {
  .team { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
}
@media (min-width: 1024px) {
  .team { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
  .team-role { font-size: .9375rem; }
}
@media (min-width: 1280px) {
  .team { gap: 1.5rem; }
}


/* --------------------------------------------------------------------------
   16 Form
   -------------------------------------------------------------------------- */
.form {
  display: grid;
  gap: 1.25rem;
  max-width: 44rem;
}
.form-row { display: grid; gap: 1.25rem; }
.field { display: grid; gap: .5rem; }
.field label {
  font-size: 1rem;
  font-weight: 500;
  color: var(--heading);
}
.field .req { color: var(--ice); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: .75rem 1rem;
  background: var(--field-bg);
  color: var(--text);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color .2s, box-shadow .2s;
}
.section--relief .field input,
.section--relief .field select,
.section--relief .field textarea { color: var(--bg-2); }
.field input::placeholder,
.field textarea::placeholder { color: var(--chrome-2); opacity: 1; }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--chrome-2); }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  border-color: var(--ice);
  outline-offset: 2px;
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.75rem;
  background-image: var(--chevron);
  background-repeat: no-repeat;
  background-position: right 1rem center;
  cursor: pointer;
}
.field select option { background: var(--bg-2); color: var(--text); }
.field textarea { min-height: 160px; resize: vertical; }
.field input:user-invalid,
.field select:user-invalid,
.field textarea:user-invalid {
  border-color: #F08A8A;
  box-shadow: 0 0 0 1px #F08A8A;   /* heavier edge: a cue that is not colour alone */
}
.form-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.form-note { margin: 0; font-size: 1rem; color: var(--muted); }
.form-status {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--pale);
}
.form-status:empty { display: none; }

@media (min-width: 768px) {
  .form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .field label, .form-note, .form-status { font-size: .9375rem; }
}


/* --------------------------------------------------------------------------
   17 Location block
   -------------------------------------------------------------------------- */
.location {
  display: grid;
  gap: 1.25rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--card-bg);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
}
.location address {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--heading);
}
@media (min-width: 768px) {
  .location {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
}


/* --------------------------------------------------------------------------
   18 Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 48px;
  padding: .75rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease),
              transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28);
}
.btn-primary:hover {
  background: var(--blue-hover);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 10px 24px rgba(30, 111, 217, .28);
}
.btn-secondary {
  background: transparent;
  border-color: var(--btn2-border);
  color: var(--text);
}
.section--relief .btn-secondary { color: var(--bg-2); }
.btn-secondary:hover {
  border-color: var(--ice);
  background: rgba(79, 168, 245, .08);
  color: var(--white);
  transform: translateY(-1px);
}
.section--relief .btn-secondary:hover { color: var(--bg-2); background: rgba(30, 111, 217, .08); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline-offset: 3px; }


/* --------------------------------------------------------------------------
   19 Footer
   -------------------------------------------------------------------------- */
.site-footer {
  padding-block: 3.5rem 2rem;
  background: var(--bg-2);
  border-top: 1px solid var(--hairline);
  color: var(--muted);
  font-size: 1rem;               /* running text never below 16px on phones */
}
.footer-grid {
  display: grid;
  gap: 2.5rem;
}
.footer-logo {
  display: inline-flex;
  border-radius: 8px;
}
.footer-logo img { width: 64px; height: 64px; }
.footer-name {
  margin: 1rem 0 .5rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}
.footer-desc { max-width: 30rem; margin: 0 0 .75rem; }
.footer-address { margin: 0; }
.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .125rem;
}
.footer-nav a,
.footer-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  min-width: 44px;
  color: var(--text);
  text-decoration: none;
  transition: color .2s;
}
.footer-nav a:hover,
.footer-link:hover { color: var(--ice); text-decoration: underline; }
.footer-nav a[aria-current="page"],
.footer-link[aria-current="page"] { color: var(--ice); }
/* Privacy link + copyright share the second legal column */
.footer-meta { display: grid; justify-items: start; }
.footer-legal {
  display: grid;
  gap: .5rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--hairline);
}
.footer-legal p { margin: 0; }

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 2rem; }
  .footer-legal { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: end; }
}
@media (min-width: 1024px) {
  .site-footer { font-size: .9375rem; }
}


/* --------------------------------------------------------------------------
   20 Utilities  (only what the pages use)
   -------------------------------------------------------------------------- */
.mt-3 { margin-top: 3rem; }


/* --------------------------------------------------------------------------
   21 Motion / scroll reveal
   Hidden state only applies under html.js. The inline head script adds that class;
   if site.js then fails to load, its onerror handler (partials/page.html) removes the
   class again, so content is never left hidden. Uses the `translate` property so it never fights
   the transform-based hover lift on cards.
   -------------------------------------------------------------------------- */
.js [data-reveal] {
  --d: calc(var(--i, 0) * 80ms);
  opacity: 0;
  translate: 0 24px;
  transition:
    opacity .6s var(--ease) var(--d),
    translate .6s var(--ease) var(--d),
    transform .35s var(--ease),
    box-shadow .35s var(--ease),
    border-color .35s var(--ease);
}
.js [data-reveal].is-visible {
  opacity: 1;
  translate: none;
}


/* --------------------------------------------------------------------------
   22 Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .js [data-reveal] {
    translate: none;
    transition: opacity .4s ease var(--d), box-shadow .2s, border-color .2s;
  }

  .card:hover, .team-card:hover, .btn:hover, .btn-primary:hover, .btn-secondary:hover { transform: none; }

  .step:not(:last-child)::after { transform: none; transition: none; }
  .step:not(:last-child)::before { opacity: 1; transition: none; }
  .ring-path { stroke-dashoffset: 0; transition: none; }
  .ring-arrow { opacity: 1; transition: none; }

  .site-nav { transition: opacity .2s ease, visibility 0s linear .2s; transform: none; }
  .site-nav.is-open { transition-delay: 0s; }
  .nav-toggle-bar { transition: none; }
  .skip-link { transition: none; }
}


/* --------------------------------------------------------------------------
   23 Print
   -------------------------------------------------------------------------- */
@media print {
  :root { --heading: #000; --muted: #333; --ice: #1558B8; --hairline: #bbb; --hairline-strong: #999; --card-bg: #fff; }
  html { scroll-behavior: auto; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .site-header { position: static; background: #fff; border-bottom: 1px solid #bbb; }
  .nav-toggle, .site-nav, .skip-link, .hero-emblem, .hero--home::before, .cta-band::before, .cta-band::after, .flywheel-ring { display: none; }
  .hero { margin-top: 0; padding-top: 2rem; min-height: 0; background: #fff; }
  .section, .section--mesh, .section--relief, .cta-band, .site-footer { background: #fff; color: #000; padding-block: 1.5rem; page-break-inside: avoid; }
  .card, .team-card, .flywheel-item, .location { border: 1px solid #bbb; box-shadow: none; page-break-inside: avoid; }
  .js [data-reveal] { opacity: 1; translate: none; transition: none; }
  .num { color: #000; background: none; -webkit-text-fill-color: initial; }
  .btn { border: 1px solid #000; color: #000; background: none; box-shadow: none; }
  a { color: #000; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .85em; }
  .steps, .flywheel-list { display: block; }
  .step, .flywheel-item { margin-bottom: 1rem; }
  .step::before, .step::after { display: none; }
}
