/* ============================================================
   HUMAN FIRST — home-v4.css
   Single-page overlay on top of style-v3.css.
   ONLY new rules + token overrides live here. style-v3.css is
   never edited. Palette softened: light/airy, cool neutrals,
   orange used sparingly as an accent.
   ============================================================ */

/* ── PALETTE OVERRIDE (cool neutrals, brand tokens kept) ───── */
:root {
  /* brand tokens (--vv, --dc, fonts) inherited from style-v3.css */
  --surface-0: #FBFBFC;   /* near-white page surface */
  --surface-1: #F4F5F7;   /* cool light grey section */
  --hairline:  #E7E9ED;   /* cool hairline divider */
  --nav-h: 64px;

  /* darken body text scale for >= 4.5:1 contrast */
  --text-secondary: #4A4A4A;
  --text-muted:     #5E5E5E;
}

body { background: var(--surface-0); }

/* Re-map section surfaces to the cool neutrals */
.section--white { background: var(--surface-0); }
.section--grey  { background: var(--surface-1); }

/* Anchor targets clear the fixed nav */
#home, #about, #services, #team, #testimonials, #work, #contact {
  scroll-margin-top: var(--nav-h);
}

/* ── MOTION GATING (reveals only hide under html.js-motion) ── */
/* style-v3 sets .reveal{opacity:0} globally; neutralise that so
   content is visible without JS, then re-hide only when motion
   is on (matches motion.js contract). */
.reveal { opacity: 1; transform: none; }
html.js-motion .reveal { opacity: 0; transform: translateY(20px); }
html.js-motion .reveal.visible { opacity: 1; transform: none; }
html.js-motion [data-reveal-group] > * { opacity: 0; }

/* Hero: CSS keyframe is the no-JS fallback; only hide under js-motion */
html.js-motion .hero-animate { animation: none; opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  html.js-motion .reveal,
  html.js-motion [data-reveal-group] > *,
  html.js-motion .hero-animate { opacity: 1 !important; transform: none !important; }
  .hero-animate { animation: none !important; }
  [data-parallax] { transform: none !important; }
  * { scroll-behavior: auto !important; }
}

/* ============================================================
   HERO — light & airy (charcoal text on near-white)
   ============================================================ */
.hf-hero {
  background: var(--surface-0);
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  padding-block: clamp(72px, 12vh, 140px);
  position: relative;
  overflow: hidden;
}
/* faint cool wash, top-right — no orange tint */
.hf-hero::before {
  content: '';
  position: absolute;
  top: -30%; right: -10%;
  width: 680px; height: 680px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47,47,47,0.05) 0%, transparent 68%);
  pointer-events: none;
}
.hf-hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
  width: 100%;
}
.hf-hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.hf-hero-eyebrow::before {
  content: '';
  width: 30px; height: 2px;
  background: var(--vv);
  flex-shrink: 0;
}
.hf-hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 7.5vw, 5.6rem);
  line-height: 0.94;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--dc);
  margin: 0 0 28px;
  text-wrap: balance;
}
.hf-hero h1 .hf-glyph { color: var(--vv); }   /* the only orange glyph */
.hf-hero .lead {
  color: var(--text-secondary);
  font-size: clamp(1.125rem, 1.6vw, 1.4rem);
  line-height: 1.55;
  max-width: 46ch;
  margin: 0 0 36px;
}
.hf-hero .btn-group { margin-top: 0; }

/* Hero side card — truths, calm not loud */
.hf-hero-card {
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: clamp(28px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.hf-hero-truths {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.hf-hero-truth {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.hf-hero-truth-mark {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--vv);
  margin-top: 9px;
  flex-shrink: 0;
}
.hf-hero-truth-text {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--dc);
  line-height: 1.12;
}
.hf-hero-card-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
}
.hf-hero-card-note a { color: var(--vv); font-weight: 600; }

@media (max-width: 900px) {
  .hf-hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hf-hero { min-height: auto; }
}

/* ============================================================
   SECTION HEAD (shared, restrained — no eyebrow spam)
   ============================================================ */
.hf-section-head {
  max-width: 60ch;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.hf-section-head h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 0.96;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--dc);
  margin: 0 0 20px;
  text-wrap: balance;
}
.section--dark .hf-section-head h2 { color: var(--white); }
.hf-section-head p {
  color: var(--text-secondary);
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.6;
  max-width: 52ch;
}
.section--dark .hf-section-head p { color: rgba(255,255,255,0.82); }
.hf-accent { color: var(--vv); }

/* ============================================================
   ABOUT — story + asymmetric values + stat strip
   ============================================================ */
.hf-about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}
.hf-about-lead {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  line-height: 1.02;
  color: var(--dc);
  margin: 0;
}
.hf-about-body p {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  line-height: 1.78;
  margin: 0 0 20px;
}
.hf-about-body p:last-child { margin-bottom: 0; }
.hf-about-body strong { color: var(--dc); font-weight: 600; }

/* Stat strip — uses the existing data-target countup mechanism */
.hf-stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  overflow: hidden;
  margin-top: clamp(48px, 6vw, 80px);
}
.hf-stat {
  background: var(--surface-0);
  padding: clamp(28px, 3vw, 44px) clamp(20px, 2vw, 32px);
}
.hf-stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--vv);   /* stat numbers are orange */
}
.hf-stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-top: 12px;
  max-width: 22ch;
}

/* Asymmetric values — not three identical cards */
.hf-values {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  overflow: hidden;
  margin-top: clamp(40px, 5vw, 64px);
}
.hf-value {
  background: var(--surface-0);
  padding: clamp(28px, 3vw, 44px) clamp(24px, 2.5vw, 36px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 200px;
}
.hf-value:first-child { background: var(--dc); }
.hf-value-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--dc);
  line-height: 1;
  margin-bottom: 12px;
}
.hf-value:first-child .hf-value-title { color: var(--white); }
.hf-value-title .hf-glyph { color: var(--vv); }
.hf-value p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.hf-value:first-child p { color: rgba(255,255,255,0.78); }

@media (max-width: 900px) {
  .hf-about-grid { grid-template-columns: 1fr; }
  .hf-values { grid-template-columns: 1fr; }
  .hf-stat-strip { grid-template-columns: 1fr; }
}

/* ============================================================
   SERVICES — editorial rows (not a 6-up identical grid)
   ============================================================ */
.hf-services { display: flex; flex-direction: column; }
.hf-service-row {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(24px, 5vw, 80px);
  align-items: baseline;
  padding-block: clamp(28px, 3.2vw, 44px);
  border-top: 1px solid var(--hairline);
}
.hf-service-row:last-child { border-bottom: 1px solid var(--hairline); }
.hf-service-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
}
.hf-service-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--vv);     /* the service dot — orange */
  flex-shrink: 0;
  transform: translateY(-2px);
}
.hf-service-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--dc);
  line-height: 0.98;
}
.hf-service-tag {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.hf-service-desc {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  line-height: 1.7;
}

/* Interleaved parallax photo blocks */
.hf-service-photo {
  border-radius: 16px;
  overflow: hidden;
  margin-block: clamp(24px, 3vw, 40px);
  aspect-ratio: 21 / 9;
}
.hf-service-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 760px) {
  .hf-service-row { grid-template-columns: 1fr; gap: 14px; }
  .hf-service-photo { aspect-ratio: 16 / 9; }
}

/* ============================================================
   TEAM — director, grid, gallery, hiring  (modal CSS below)
   ============================================================ */
.hf-director {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  margin-bottom: clamp(56px, 7vw, 96px);
}
.hf-director-photo {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--surface-1);
}
.hf-director-photo img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  display: block;
}
.hf-director-tag {
  position: absolute;
  left: 16px; bottom: 16px;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--dc);
  padding: 8px 14px;
  border-radius: 6px;
}
.hf-director-name {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--dc);
  line-height: 1;
}
.hf-director-role {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--vv);
  margin: 8px 0 22px;
}
.hf-director-bio p {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  line-height: 1.75;
  margin: 0 0 18px;
}
.hf-director-bio strong { color: var(--dc); font-weight: 600; }
.hf-director-contact { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

@media (max-width: 820px) {
  .hf-director { grid-template-columns: 1fr; }
  .hf-director-photo { max-width: 360px; }
}

/* Team grid */
.hf-team-subhead {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 52ch;
  margin-bottom: clamp(32px, 4vw, 48px);
}
.hf-team-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 24px);
}
.team-card {
  background: var(--surface-0);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  overflow: hidden;
  padding: 0;
  display: flex;
  flex-direction: column;
  transition: transform 280ms var(--ease-out-quart), box-shadow 280ms var(--ease-out-quart);
  will-change: transform;
}
.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(47,47,47,0.10);
}
.team-card-photo {
  aspect-ratio: 4 / 5;
  background: var(--surface-1);
  position: relative;
  overflow: hidden;
}
.team-card-photo img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  display: block;
}
.team-card-photo--placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--dc);
}
.photo-initials {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 900;
  color: rgba(255,96,32,0.45);
  letter-spacing: 0.06em;
}
.photo-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}
.team-card-body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.team-card-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--dc);
  line-height: 1.05;
  margin-bottom: 6px;
}
.team-card-role {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--vv);
  line-height: 1.45;
  margin-bottom: 14px;
}
.team-card-bio {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.62;
  flex: 1;
}
/* read-more button defined in modal block below */

@media (max-width: 880px) { .hf-team-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .hf-team-cards { grid-template-columns: 1fr; } }

/* Draggable photo gallery */
.hf-gallery {
  margin-top: clamp(48px, 6vw, 80px);
}
.hf-gallery-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.hf-gallery-title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--dc);
}
.hf-gallery-hint {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--vv);   /* drag affordance — orange */
  white-space: nowrap;
}
.hf-gallery-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
}
.hf-gallery-track::-webkit-scrollbar { display: none; }
.hf-gallery-item {
  flex: 0 0 clamp(260px, 36vw, 380px);
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface-1);
  scroll-snap-align: start;
  user-select: none;
}
.hf-gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

/* Philosophy strip + hiring criteria */
.hf-philosophy {
  margin-top: clamp(56px, 7vw, 96px);
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  padding: clamp(32px, 4vw, 52px);
  background: var(--surface-1);
  border-radius: 16px;
}
.hf-philosophy p {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: var(--text-secondary);
  line-height: 1.65;
}
.hf-philosophy-stat { text-align: left; }
.hf-philosophy-num {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--vv);
  line-height: 0.9;
  display: block;
}
.hf-philosophy-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 8px;
  display: block;
}

.hf-hire {
  margin-top: clamp(48px, 6vw, 72px);
}
.hf-hire-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 36px);
  margin-top: clamp(28px, 3vw, 40px);
}
.hf-hire-item {
  padding-top: 22px;
  border-top: 2px solid var(--dc);
}
.hf-hire-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--dc);
  line-height: 1.05;
  margin-bottom: 12px;
}
.hf-hire-body {
  font-size: 0.97rem;
  color: var(--text-secondary);
  line-height: 1.68;
}

@media (max-width: 820px) {
  .hf-philosophy { grid-template-columns: 1fr; gap: 24px; }
  .hf-hire-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   TESTIMONIALS — slider + tasteful empty state
   ============================================================ */
.hf-tslider { max-width: 880px; }
.hf-tslider-live { min-height: 160px; }
.hf-tslider-quote {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--dc);
  margin: 0 0 24px;
}
.hf-tslider-name {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--dc);
}
.hf-tslider-context {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}
.hf-tslider-controls {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 36px;
}
.hf-tslider-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--hairline);
  background: var(--surface-0);
  color: var(--dc);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 200ms var(--ease-out-quart), color 200ms var(--ease-out-quart);
}
.hf-tslider-btn:hover { border-color: var(--vv); color: var(--vv); }
.hf-tslider-dots { display: flex; gap: 8px; margin-left: 4px; }
.tdot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--hairline);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 200ms var(--ease-out-quart), transform 200ms var(--ease-out-quart);
}
.tdot.is-active { background: var(--vv); transform: scale(1.25); }  /* active dot — orange */

.hf-tslider-empty {
  max-width: 56ch;
}
.hf-tslider-empty h3 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--dc);
  line-height: 1.02;
  margin-bottom: 18px;
}
.hf-tslider-empty p {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================================
   WORK WITH US — the single dark section
   ============================================================ */
.hf-work-qualities {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 16px;
  overflow: hidden;
}
.hf-work-quality {
  background: var(--dc);
  padding: clamp(28px, 3vw, 40px);
}
.section--dark .hf-work-quality-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--vv);     /* orange accent on titles (dark section) */
  line-height: 1;
  margin-bottom: 14px;
}
.section--dark .hf-work-quality-body {
  font-size: 0.97rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.68;
}
.hf-work-lists {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  margin-top: clamp(48px, 6vw, 80px);
}
.section--dark .hf-work-list-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 24px;
}
.hf-work-list { display: flex; flex-direction: column; gap: 14px; }
.hf-work-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 0.97rem;
  color: rgba(255,255,255,0.82);
  line-height: 1.55;
}
.hf-work-list li::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--vv);
  flex-shrink: 0;
  margin-top: 8px;
}
.hf-work-cta {
  margin-top: clamp(48px, 6vw, 80px);
  padding-top: clamp(40px, 5vw, 56px);
  border-top: 1px solid rgba(255,255,255,0.12);
}
.hf-work-cta h3 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 18px;
}
.hf-work-cta p {
  color: rgba(255,255,255,0.82);
  font-size: 1.0625rem;
  line-height: 1.7;
  max-width: 60ch;
  margin-bottom: 28px;
}
.section--dark .hf-work-cta-note {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.6);
}
.hf-work-cta-note a { color: var(--white); font-weight: 600; }

@media (max-width: 760px) {
  .hf-work-qualities { grid-template-columns: 1fr; }
  .hf-work-lists { grid-template-columns: 1fr; }
}

/* ============================================================
   CONTACT — cards + form
   ============================================================ */
.hf-contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: clamp(48px, 6vw, 72px);
}
.hf-contact-card {
  background: var(--surface-0);
  padding: clamp(24px, 2.5vw, 36px);
}
.hf-contact-label {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--vv);
  margin-bottom: 10px;
}
.hf-contact-value {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--dc);
  line-height: 1.15;
  margin-bottom: 10px;
  word-break: break-word;
}
.hf-contact-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
}
.hf-contact-card a { color: inherit; }
.hf-contact-card a:hover { color: var(--vv); }

.hf-contact-form-wrap {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.hf-contact-form-intro h3 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--dc);
  line-height: 1.02;
  margin-bottom: 18px;
}
.hf-contact-form-intro p {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  line-height: 1.7;
}

@media (max-width: 4096px) { } /* no-op guard */
@media (max-width: 980px)  { .hf-contact-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px)  { .hf-contact-form-wrap { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 520px)  { .hf-contact-grid { grid-template-columns: 1fr; } }

/* Tighten focus rings to orange site-wide (accessibility + accent) */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--vv);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============================================================
   BIO MODAL  (ported verbatim from team.html, tokens intact)
   ============================================================ */
.team-card-readmore {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--vv);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color 200ms var(--ease-out-quart), gap 200ms var(--ease-out-quart);
}
.team-card-readmore:hover { color: var(--bo); gap: 10px; }

.bio-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.72);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  opacity: 0;
  transition: opacity 300ms var(--ease-out-quart);
  will-change: opacity;
}
.bio-modal-overlay.is-open { opacity: 1; }
.bio-modal-overlay[hidden] { display: none; }

.bio-modal-panel {
  background: var(--white);
  width: 100%;
  max-width: 960px;
  max-height: 92vh;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateY(40px);
  transition: transform 360ms var(--ease-out-expo);
  will-change: transform;
  position: relative;
}
.bio-modal-overlay.is-open .bio-modal-panel { transform: translateY(0); }

.bio-modal-close {
  position: absolute;
  top: 20px; right: 20px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(47,47,47,0.08);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dc);
  z-index: 10;
  transition: background 200ms var(--ease-out-quart);
}
.bio-modal-close:hover { background: rgba(47,47,47,0.16); }

.bio-modal-inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  overflow-y: auto;
  max-height: 92vh;
}

.bio-modal-photo-col {
  background: var(--dc);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  align-self: start;
  max-height: 92vh;
}
.bio-modal-photo-wrap {
  aspect-ratio: 3/4;
  overflow: hidden;
  flex-shrink: 0;
  max-height: 360px;
  background: rgba(255,255,255,0.04);
  display: flex;
  align-items: center;
  justify-content: center;
}
.bio-modal-photo-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.bio-modal-initials-placeholder {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  color: rgba(255,96,32,0.25);
  letter-spacing: 0.06em;
}
.bio-modal-values-section {
  padding: 28px 24px;
  flex: 1;
}
.bio-modal-values-label {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 12px;
}
.bio-modal-values-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.bio-modal-value-tag {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--vv);
  background: rgba(255,96,32,0.12);
  border-radius: 2px;
  padding: 5px 10px;
  text-transform: uppercase;
}

.bio-modal-content {
  padding: 48px 48px 56px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.bio-modal-name {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--dc);
  line-height: 1;
  margin-bottom: 4px;
}
.bio-modal-role {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--vv);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.bio-modal-body p {
  font-size: 0.975rem;
  line-height: 1.82;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.bio-modal-body p:last-child { margin-bottom: 0; }
.bio-modal-quals-label {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(47,47,47,0.28);
  margin-bottom: 8px;
}
.bio-modal-quals-text {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.bio-modal-pdf-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 12px 20px;
  background: var(--dc);
  color: var(--white);
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 220ms var(--ease-out-quart), transform 200ms var(--ease-out-quart);
  margin-top: 4px;
}
.bio-modal-pdf-btn:hover { background: #222; transform: translateY(-2px); }
.bio-modal-pdf-btn:active { transform: scale(0.97); }

@media (max-width: 720px) {
  .bio-modal-inner { grid-template-columns: 1fr; }
  .bio-modal-photo-col { position: static; flex-direction: row; max-height: none; }
  .bio-modal-photo-wrap { width: 120px; flex-shrink: 0; aspect-ratio: auto; height: 140px; max-height: 140px; }
  .bio-modal-values-section { padding: 16px 20px; }
  .bio-modal-content { padding: 28px 24px 40px; }
  .bio-modal-panel { border-radius: 12px 12px 0 0; }
}
