/* Who We Serve hub: wayfinding signage. Prefix: wh- (sections), wc (cards) */

/* ---------- 1. Hero ---------- */
.wh-hero { overflow: hidden; padding-bottom: clamp(56px, 7vw, 110px); min-height: min(92vh, 880px); display: flex; align-items: center; }
.wh-hero__strip { position: absolute; inset: 0; opacity: .25; overflow: hidden; }
.wh-hero__track { display: flex; width: max-content; height: 100%; animation: wh-drift 90s linear infinite; }
.wh-hero__set { display: flex; gap: 16px; padding-right: 16px; height: 100%; }
.wh-hero__set img { height: 100%; width: auto; aspect-ratio: 2 / 3; object-fit: cover; filter: grayscale(1); flex: none; }
.wh-hero__tile { flex: none; height: 100%; aspect-ratio: 2 / 3; background: var(--green-dark); }
@keyframes wh-drift { to { transform: translateX(-50%); } }
.wh-hero__scrim { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(12,19,16,.9) 0%, rgba(12,19,16,.62) 60%, rgba(12,19,16,.34) 100%), linear-gradient(0deg, var(--ink) 0%, rgba(12,19,16,0) 30%); }
.wh-hero__in { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(32px, 5vw, 88px); align-items: end; }
.wh-hero__copy .eyebrow { margin-bottom: 22px; }
.wh-hero__copy .d1 { font-size: clamp(2.6rem, 5.8vw, 5.2rem); max-width: 13ch; margin-bottom: 28px; }
.wh-hero__copy .lead { max-width: 34ch; }

.wh-signs { padding: clamp(18px, 2vw, 28px); }
.wh-signs__h { font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--lime); margin-bottom: 8px; }
.wh-signs ul { list-style: none; margin: 0; padding: 0; }
.wh-signs li + li { border-top: 1px solid var(--line-dark); }
.wh-signs a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 15px 4px; color: var(--on-dark); transition: color .3s var(--ease), padding .4s var(--ease); }
.wh-signs__i { font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--on-dark-2); min-width: 4.4em; }
.wh-signs__t { font-size: clamp(1.05rem, 1.5vw, 1.3rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.wh-signs a svg { transition: transform .4s var(--ease); color: var(--lime); }
.wh-signs a:hover { color: var(--lime); padding-left: 10px; }
.wh-signs a:hover svg { transform: translateX(6px); }

/* ---------- 2. Selector ---------- */
.wh-sel__head { margin-bottom: clamp(28px, 4vw, 56px); }
.wh-sel__head .eyebrow { margin-bottom: 14px; }
.wh-sel__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 72px); align-items: start; }
.wh-sel__list { display: grid; gap: 0; border-top: 1px solid var(--s-rule); }
.wh-opt { all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: 3.2rem minmax(0, 1fr) auto; gap: 12px; align-items: center;
  padding: 20px 14px; border-bottom: 1px solid var(--s-rule); color: var(--text); transition: background .35s var(--ease), color .35s var(--ease), padding .4s var(--ease); }
.wh-opt__no { font-size: 1.1rem; font-weight: 600; letter-spacing: -.02em; color: var(--text-2); }
.wh-opt__tx { display: grid; gap: 2px; }
.wh-opt__i { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--green-ink); }
.wh-opt__t { font-size: clamp(1.1rem, 1.7vw, 1.5rem); font-weight: 600; letter-spacing: -.025em; line-height: 1.2; }
.wh-opt__a { color: var(--green-ink); opacity: 0; transform: translateX(-10px); transition: opacity .3s var(--ease), transform .4s var(--ease); }
.wh-opt:hover { padding-left: 22px; }
.wh-opt:hover .wh-opt__a { opacity: 1; transform: none; }
.wh-opt:focus-visible { outline: 2px solid var(--green-ink); outline-offset: -2px; }
.wh-opt[aria-selected="true"] { background: var(--ink); color: var(--on-dark); padding-left: 22px; }
.wh-opt[aria-selected="true"] .wh-opt__no { color: var(--lime-hi); }
.wh-opt[aria-selected="true"] .wh-opt__i { color: var(--lime-hi); }
.wh-opt[aria-selected="true"] .wh-opt__a { opacity: 1; transform: none; color: var(--lime-hi); }

.wh-sel__stage { position: sticky; top: calc(var(--nav-h) + 24px); }
.wh-pan { position: relative; background: var(--ink); color: var(--on-dark); border-radius: 8px; padding: clamp(28px, 3.4vw, 52px); overflow: hidden; display: grid; gap: 14px; align-content: start; min-height: 480px; }
.wh-pan[hidden] { display: none; }
.wh-pan.is-active { animation: wh-in .55s var(--ease) both; }
@keyframes wh-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.wh-pan:focus-visible { outline: 2px solid var(--lime-hi); outline-offset: 3px; }
.wh-pan__no { font-size: clamp(5rem, 9vw, 8rem); font-weight: 600; letter-spacing: -.05em; line-height: .8; color: transparent; -webkit-text-stroke: 1.5px var(--lime-hi); }
.wh-pan__ph { position: absolute; top: clamp(24px, 3vw, 44px); right: clamp(24px, 3vw, 44px); width: clamp(96px, 11vw, 150px); aspect-ratio: 1; }
.wh-pan__ph--c { display: grid; place-items: center; border: 1.5px solid var(--lime-hi); color: var(--lime-hi); }
.wh-pan__ph--c svg { width: 80%; height: 80%; }
.wh-pan__t { font-size: clamp(1.6rem, 2.8vw, 2.4rem); font-weight: 600; letter-spacing: -.035em; line-height: 1.08; max-width: 16ch; margin-top: 12px; }
.wh-pan__d { font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.55; color: var(--on-dark-2); max-width: 40ch; }
.wh-pan__k { margin-top: 10px; font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--lime); }
.wh-pan__ls { list-style: none; margin: 0 0 10px; padding: 0; }
.wh-pan__ls li { border-bottom: 1px solid var(--line-dark); }
.wh-pan__ls li:first-child { border-top: 1px solid var(--line-dark); }
.wh-pan__ls a { display: flex; justify-content: space-between; align-items: center; padding: 13px 2px; font-size: 1.05rem; font-weight: 500; color: var(--on-dark); transition: color .3s var(--ease), padding .4s var(--ease); }
.wh-pan__ls a svg { color: var(--lime); transition: transform .4s var(--ease); }
.wh-pan__ls a:hover { color: var(--lime); padding-left: 8px; }
.wh-pan__ls a:hover svg { transform: translateX(5px); }
.wh-pan .btn { justify-self: start; margin-top: 6px; }

/* ---------- 3. Cards ---------- */
.wh-cards__h { margin-bottom: clamp(28px, 4vw, 52px); max-width: 16ch; }
.wh-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(440px, auto); gap: clamp(12px, 1.4vw, 20px); }
.wc { position: relative; display: grid; align-content: space-between; gap: 18px; padding: clamp(22px, 2.2vw, 34px); border-radius: 10px; overflow: hidden; min-width: 0;
  color: var(--text); isolation: isolate; transform-style: preserve-3d; }
.wc__no { font-size: clamp(3.4rem, 5.4vw, 5rem); font-weight: 600; letter-spacing: -.05em; line-height: .85; color: transparent; -webkit-text-stroke: 1.5px var(--green-ink); }
.wc__t { font-size: clamp(1.25rem, 1.9vw, 1.7rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.12; margin-bottom: 10px; }
.wc__d { font-size: 16px; line-height: 1.55; opacity: 1; }
.wc__go { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.wc__go svg { transition: transform .45s var(--ease); }
.wc:hover .wc__go svg { transform: translateX(10px); }
.wc__ph img { transition: filter .6s var(--ease), transform .8s var(--ease); }
.wc:hover .wc__ph img { filter: none; transform: scale(1.05); }
@media (hover: hover) { .wc__ph img { filter: grayscale(.9) contrast(1.02); } }
.wc:focus-visible { outline: 3px solid var(--green-ink); outline-offset: 3px; }

.wc--a { grid-column: span 2; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); grid-template-areas: "no ph" "tx ph" "go ph"; background: var(--mint-2); }
.wc--b { grid-column: span 1; background: var(--green-dark); color: var(--on-dark); }
.wc--c { grid-column: 4; grid-row: span 2; background: var(--sand-2); }
.wc--d { grid-column: 1; background: var(--ink); color: var(--on-dark); }
.wc--e { grid-column: span 2; grid-template-columns: minmax(0, 1fr) minmax(0, .7fr); grid-template-areas: "no ph" "tx ph" "go ph"; background: var(--sand); }
.wc--a .wc__no { grid-area: no; } .wc--a .wc__tx { grid-area: tx; align-self: end; } .wc--a .wc__go { grid-area: go; } .wc--a .wc__ph { grid-area: ph; }
.wc--e .wc__no { grid-area: no; } .wc--e .wc__tx { grid-area: tx; align-self: end; } .wc--e .wc__go { grid-area: go; } .wc--e .wc__ph { grid-area: ph; }
.wc--a .wc__ph { align-self: stretch; min-height: 300px; }
.wc--e .wc__ph { align-self: center; justify-self: center; width: min(100%, 300px); aspect-ratio: 1; }
.wc--b .wc__ph, .wc--d .wc__ph { width: 112px; aspect-ratio: 1; position: absolute; top: clamp(22px, 2.2vw, 34px); right: clamp(22px, 2.2vw, 34px); }
.wc--c { grid-template-rows: auto minmax(0, 1fr) auto auto; }
.wc--c .wc__ph { min-height: 0; margin-inline: auto; width: min(100%, 300px); height: 100%; max-height: 420px; }
.wc--b, .wc--d { grid-template-rows: auto 1fr auto; }
.wc--b .wc__tx, .wc--d .wc__tx { align-self: end; }
.wc--b .wc__no, .wc--d .wc__no { color: transparent; -webkit-text-stroke-color: var(--lime-hi); }
.wc--b .wc__go, .wc--d .wc__go { color: var(--lime-hi); }
.wc--a .wc__go, .wc--c .wc__go, .wc--e .wc__go { color: var(--green-ink); }
.wc--b:focus-visible, .wc--d:focus-visible { outline-color: var(--lime-hi); }
/* photo crops: each frame is shorter than the 2:3 source, so aim every crop at the subject's face (F7) */
.wc__ph img, .wh-pan__ph img { width: 100%; height: 100%; object-fit: cover; }
.wc__ph img[src*="serve-health"], .wh-pan__ph img[src*="serve-health"] { object-position: 50% 4%; }
.wc__ph img[src*="serve-business"], .wh-pan__ph img[src*="serve-business"] { object-position: 50% 18%; }
.wc__ph img[src*="serve-realtor"], .wh-pan__ph img[src*="serve-realtor"] { object-position: 50% 6%; }
.wc__ph img[src*="serve-family"], .wh-pan__ph img[src*="serve-family"] { object-position: 50% 22%; }
/* the retiree source has the subject at the right edge, so frame him with a zoom instead of the centre */
.wc__ph img[src*="serve-retiree"], .wh-pan__ph img[src*="serve-retiree"] { object-position: 100% 8%; scale: 1.45; transform-origin: 92% 20%; }
.wc.m-done:hover { box-shadow: 0 24px 50px -24px rgba(1,53,34,.45); }

/* ---------- 4. What they share ---------- */
.wh-share { overflow: hidden; }
.wh-share__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 96px); align-items: center; }
.wh-share__copy .eyebrow { margin-bottom: 18px; }
.wh-share__copy .d2 { margin-bottom: 26px; max-width: 14ch; }
.wh-share__copy .body-lg { max-width: 46ch; }
.wh-orb { position: relative; width: min(100%, 580px); aspect-ratio: 1; margin-inline: auto; }
.wh-orb__ring { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--on-dark-2); }
.wh-orb__core { position: absolute; left: 50%; top: 50%; width: 30%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; display: grid; place-items: center; text-align: center;
  background: var(--green); color: #fff; padding: 6%; font-size: clamp(13px, 1.3vw, 16px); font-weight: 600; line-height: 1.25; }
.wh-orb__n { position: absolute; width: 23%; aspect-ratio: 1; transform: translate(-50%, -50%); display: block; color: var(--on-dark); }
.wh-orb__n > span { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; border-radius: 50%;
  background: var(--green-deep); border: 1.5px solid var(--lime-hi); font-size: clamp(11.5px, 1.15vw, 14px); font-weight: 600; line-height: 1.15; padding: 4px;
  animation: wh-bob 6s ease-in-out infinite; transition: background .35s var(--ease), color .35s var(--ease); }
.wh-orb__n svg { width: 26%; height: auto; color: var(--lime-hi); transition: color .35s var(--ease); }
.wh-orb__n:hover > span { background: var(--lime-hi); color: var(--ink); }
.wh-orb__n:hover svg { color: var(--ink); }
.wh-orb__n:focus-visible { outline: 2px solid var(--lime-hi); outline-offset: 3px; border-radius: 50%; }
.wh-orb__n--1 { left: 50%; top: 14%; } .wh-orb__n--2 { left: 82%; top: 32%; } .wh-orb__n--3 { left: 82%; top: 68%; }
.wh-orb__n--4 { left: 50%; top: 86%; } .wh-orb__n--5 { left: 18%; top: 68%; } .wh-orb__n--6 { left: 18%; top: 32%; }
.wh-orb__n--2 > span { animation-delay: -1s; } .wh-orb__n--3 > span { animation-delay: -2s; } .wh-orb__n--4 > span { animation-delay: -3s; }
.wh-orb__n--5 > span { animation-delay: -4s; } .wh-orb__n--6 > span { animation-delay: -5s; }
@keyframes wh-bob { 0%, 100% { transform: translateY(-5px); } 50% { transform: translateY(5px); } }
.wh-orb__cap { position: absolute; right: 0; bottom: 0; font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-2); }

/* ---------- 5. Statement ---------- */
.wh-state { padding-block: clamp(80px, 11vw, 170px); }
.wh-state__big { font-size: clamp(3rem, 8.6vw, 8.4rem); color: var(--green-deep); max-width: 14ch; }

/* ---------- 6. CTA ---------- */
.wh-cta { overflow: hidden; padding-block: clamp(80px, 10vw, 150px); }
.wh-cta__in { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(32px, 5vw, 96px); align-items: center; }
.wh-cta__copy .eyebrow { margin-bottom: 20px; }
.wh-cta__copy .d1 { font-size: clamp(2.2rem, 4.6vw, 4rem); margin-bottom: 26px; max-width: 20ch; }
.wh-cta__copy .lead { max-width: 40ch; margin-bottom: 34px; }
.wh-cta__btns { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }
.wh-cta__tel { font-size: 1.05rem; font-weight: 500; color: var(--on-dark); border-bottom: 1px solid var(--lime); padding-bottom: 2px; }
.wh-cta__tel:hover { color: var(--lime); }
.wh-cta__art { width: min(100%, 420px); aspect-ratio: 1; margin-inline: auto; border-radius: 50%; border: 1.5px solid var(--line-dark); background: radial-gradient(circle at 50% 50%, rgba(0,132,78,.28), rgba(0,132,78,0) 70%); }
.wh-cta__art .lt { width: 100%; height: 100%; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .wh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wc--a, .wc--e { grid-column: span 2; }
  .wc--b, .wc--d { grid-column: span 1; }
  .wc--c { grid-column: span 1; grid-row: span 1; }
  .wc--c .wc__ph { height: 240px; }
}
@media (max-width: 899px) {
  .wh-hero { min-height: 0; align-items: flex-start; }
  .wh-hero__in, .wh-share__in, .wh-cta__in { grid-template-columns: minmax(0, 1fr); }
  .wh-hero__scrim { background: linear-gradient(0deg, rgba(12,19,16,.9), rgba(12,19,16,.7)); }
  .wh-hero__strip { opacity: .2; }
  .wh-hero__copy .d1 { max-width: none; }
  .wh-sel__grid { grid-template-columns: minmax(0, 1fr); }
  .wh-sel__stage { position: static; }
  .wh-sel__list { border-top: 0; gap: 0; }
  .wh-sel__list .wh-pan { margin: 0 0 12px; min-height: 0; }
  .wh-pan__ph { width: 84px; }
  .wh-pan__t { max-width: calc(100% - 96px); font-size: 1.5rem; }
  .wh-state__big { max-width: none; }
  .wh-cta__art { width: min(78%, 320px); }
  .wh-orb { aspect-ratio: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; width: 100%; }
  .wh-orb__ring { display: none; }
  .wh-orb__core { position: static; transform: none; grid-column: 1 / -1; width: auto; aspect-ratio: auto; border-radius: 999px; padding: 14px 20px; }
  .wh-orb__n { position: static; transform: none; width: auto; }
  .wh-orb__n > span { border-radius: 14px; aspect-ratio: 1; height: auto; font-size: 12.5px; }
  .wh-orb__n svg { width: 24px; }
  .wh-orb__cap { position: static; grid-column: 1 / -1; text-align: right; }
}
@media (max-width: 600px) {
  .wh-grid { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; }
  .wc, .wc--a, .wc--b, .wc--c, .wc--d, .wc--e { grid-column: span 1; grid-row: span 1; min-height: 320px; }
  .wc--a, .wc--e { grid-template-columns: minmax(0, 1fr); grid-template-areas: "no" "ph" "tx" "go"; }
  .wc--a .wc__ph { min-height: 0; aspect-ratio: 4 / 3; }
  .wc--e .wc__ph { width: 200px; }
  .wc--c .wc__ph { height: 280px; }
  .wc--c { grid-template-rows: auto; }
  .wc--b .wc__ph, .wc--d .wc__ph { width: 92px; }
  .wh-signs a { grid-template-columns: minmax(0, 1fr) auto; }
  .wh-signs__i { grid-column: 1 / -1; min-width: 0; margin-bottom: -10px; }
  .wh-signs__t { grid-column: 1; }
  .wh-signs a svg { grid-column: 2; grid-row: 2; }
}

@media (prefers-reduced-motion: reduce) {
  .wh-hero__track, .wh-orb__n > span, .wh-pan.is-active { animation: none; }
  .wh-hero__strip { overflow-x: auto; }
  .wh-opt, .wh-opt__a, .wc__ph img, .wc__go svg { transition: none; }
}

/* portrait cards: rounded rectangle instead of the arch (client: arches read as headstones) */
.wc__ph--rr { border-radius: 12px; overflow: hidden; }
