/* Valley Agents: agent feature page. Editorial register on the house dark/gold palette. */
.va { --va-gap: clamp(1rem, 2.2vw, 1.75rem); }
.va em { font-style: italic; color: var(--gold); }
.va-narrow { max-width: 820px; }
.va-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.section--tight { padding: 2.25rem 0 0; }

/* Preview ribbon */
.va-preview { background: #1a160d; border-bottom: 1px solid var(--gold-border); margin-top: var(--nav-h); }
.va-preview__inner { display: flex; gap: .75rem; align-items: center; padding-top: .7rem; padding-bottom: .7rem; }
.va-preview p { margin: 0; font-size: .82rem; color: var(--text-3); line-height: 1.5; }
.va-preview strong { color: var(--gold); font-weight: 500; }
.va-preview__dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(201,169,110,.15); }

/* Breadcrumbs (public pages) */
.va-crumbs { margin-top: var(--nav-h); border-bottom: 1px solid var(--border); }
.va-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem .6rem; margin: 0; padding: .8rem 0; font-size: .78rem; letter-spacing: .06em; color: var(--text-5); }
.va-crumbs li + li::before { content: "/"; margin-right: .6rem; color: var(--text-6); }
.va-crumbs a { color: var(--text-3); text-decoration: none; display: inline-block; padding: .35rem 0; }
.va-crumbs a:hover { color: var(--gold); }
.va-crumbs [aria-current] { color: var(--text-2); padding: .35rem 0; }

/* Hero */
.va-hero { position: relative; min-height: min(92svh, 980px); display: flex; align-items: flex-end; overflow: clip; isolation: isolate; }
.va-hero__media { position: absolute; inset: 0; margin: 0; z-index: -2; }
.va-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 62%; }
.va-hero__shade { position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(180deg, rgba(13,13,11,.35) 0%, rgba(13,13,11,0) 28%, rgba(13,13,11,0) 48%, rgba(13,13,11,.88) 100%),
  linear-gradient(90deg, rgba(13,13,11,.55) 0%, rgba(13,13,11,0) 55%); }
.va-hero__content { padding-bottom: clamp(3.5rem, 8vw, 6.5rem); padding-top: 8rem; }
.va-hero__kicker { display: flex; gap: 1rem; align-items: center; margin: 0 0 1.1rem; font-size: .74rem; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); }
.va-hero__kicker a { color: inherit; text-decoration: none; padding: .5rem 0; }
.va-hero__kicker a:hover { color: var(--text-1); }
.va-hero__name { font-family: var(--font-display); font-weight: 400; font-size: clamp(4rem, 13vw, 11.5rem); line-height: .86; letter-spacing: -.035em; color: var(--text-1); margin: 0; text-shadow: 0 2px 40px rgba(0,0,0,.35); }
.va-hero__name em { color: var(--text-1); }
.va-hero__role { margin: 1.4rem 0 0; font-size: clamp(.95rem, 1.4vw, 1.1rem); color: var(--text-2); letter-spacing: .02em; }
.va-br { display: none; }
.va-hero__caption { position: absolute; right: clamp(1rem, 3vw, 2.5rem); bottom: clamp(1rem, 3vw, 2rem); margin: 0; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); writing-mode: vertical-rl; transform: rotate(180deg); }

/* Intro */
.va-intro__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; align-items: center; }
.va-portrait { margin: 0; }
.va-portrait img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; border-radius: 2px; }
.va-portrait__ph { aspect-ratio: 4 / 5; display: grid; place-content: center; gap: .8rem; padding: 2rem; text-align: center; border: 1px dashed rgba(201,169,110,.5); border-radius: 2px; background: var(--bg-card); color: var(--text-3); }
.va-portrait__ph p { margin: 0; max-width: 24ch; justify-self: center; }
.va-portrait__ph p:first-child { font: 400 1.6rem/1.2 var(--font-display, inherit); color: var(--text-1, inherit); }
.va-portrait__ph::after { content: "Awaiting your photo"; justify-self: center; padding: .15rem .55rem; border: 1px dashed var(--gold-dim); border-radius: 2px; font: 500 .64rem/1.6 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.va-portrait figcaption { margin-top: .7rem; font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--text-5); }
.va-intro__copy h2 { margin: 0 0 1.4rem; }
.va-intro__copy p:not(.eyebrow) { font-size: 1rem; color: var(--text-3); line-height: 1.85; margin: 0 0 1.1rem; max-width: 60ch; }

/* Stats */
.va-stats { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-alt); }
.va-stats__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.va-stat { padding: 2.2rem 1rem 2rem; border-left: 1px solid var(--border); display: flex; flex-direction: column; gap: .6rem; }
.va-stat:nth-child(odd) { border-left: 0; }
.va-stat:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
.va-stat__n { font-family: var(--font-display); font-size: clamp(3rem, 7vw, 5.5rem); line-height: 1; color: var(--gold); font-variant-numeric: lining-nums tabular-nums; }
.va-stat__l { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-4); line-height: 1.5; max-width: 22ch; }

/* Work */
.va-work__head { margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.va-work__head h2 { margin: 0 0 .8rem; }
.va-tile { display: block; width: 100%; padding: 0; border: 0; background: var(--bg-card); cursor: zoom-in; overflow: hidden; border-radius: 2px; }
.va-tile img { display: block; width: 100%; height: 100%; object-fit: cover; transition: scale 1.1s var(--ease-out), filter .6s var(--ease-out); }
.va-tile:hover img { scale: 1.035; filter: brightness(1.06); }
.va-tile:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.va-proj { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.6rem; margin-bottom: clamp(3.5rem, 8vw, 7rem); }
.va-proj .va-tile { aspect-ratio: 3 / 2; }
.va-proj__no { font-family: var(--font-display); font-style: italic; font-size: 1.1rem; color: var(--gold); margin: 0 0 .4rem; }
.va-proj__text h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.9rem, 3.4vw, 2.8rem); line-height: 1.05; color: var(--text-1); margin: 0 0 .5rem; }
.va-proj__town { font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--text-5); margin: 0 0 1.1rem; }
.va-proj__text p:last-child { font-size: .95rem; color: var(--text-4); line-height: 1.85; margin: 0; max-width: 46ch; }
.va-cmp { aspect-ratio: 3 / 2; border-radius: 2px; }

.va-mosaic { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--va-gap); row-gap: 2.4rem; }
.va-cell { margin: 0; }
.va-cell .va-tile { aspect-ratio: 3 / 2; }
.va-cell__cap { margin: .9rem 0 0; font-size: .86rem; color: var(--text-4); line-height: 1.6; max-width: 52ch; }
.va-cell__cap span { font-family: var(--font-display); font-style: italic; color: var(--gold); margin-right: .45rem; }

/* Zoom */
.va-zoom .m-zoom-frame::after { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 60% at 50% 50%, rgba(13,13,11,.62), rgba(13,13,11,.25)); pointer-events: none; }
.va-zoom .m-zoom-title { position: relative; z-index: 2; font-family: var(--font-display); font-weight: 400; color: #fff; text-shadow: 0 2px 6px rgba(0,0,0,.55), 0 4px 40px rgba(0,0,0,.7); }
.va-zoom .m-zoom-title em { color: #e9cf9c; }

/* Map */
.va-map__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; align-items: center; }
.va-map__copy h2 { margin: 0 0 1.2rem; }
.va-map__copy > p:not(.eyebrow) { font-size: .98rem; color: var(--text-3); line-height: 1.85; margin: 0 0 1.6rem; }
.va-towns { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.va-towns li { display: flex; justify-content: space-between; gap: 1.5rem; padding: .8rem 0; border-bottom: 1px solid var(--border); font-size: .9rem; color: var(--text-3); }
.va-towns b { font-family: var(--font-display); font-weight: 400; color: var(--gold); white-space: nowrap; }
.va-map__fig { margin: 0; max-width: 520px; justify-self: center; width: 100%; }
.va-map__fig svg { width: 100%; height: auto; display: block; overflow: visible; }
.va-ridge { fill: none; stroke: rgba(201,169,110,.55); stroke-width: 3; stroke-dasharray: 2 10; stroke-linecap: round; }
.va-ridge--far { stroke: rgba(242,237,224,.12); }
.va-ridge__label { fill: rgba(201,169,110,.6); font: 500 20px var(--font-body); letter-spacing: .4em; }
/* Interstates (like the Friendly City Plumbing map): two colours, and every road carries a labelled shield so colour is never the only cue. */
.va-road { fill: none; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; opacity: .8; }
.va-road--81 { stroke: #7fa7cf; }
.va-road--64 { stroke: #d08a63; }
.va-shield rect { stroke: rgba(10,10,10,.55); stroke-width: 3; }
.va-shield--81 rect { fill: #7fa7cf; }
.va-shield--64 rect { fill: #d08a63; }
.va-shield text { fill: #111; font: 700 24px var(--font-body); letter-spacing: .04em; }
.va-labels text { paint-order: stroke; stroke: var(--bg); stroke-width: 8px; stroke-linejoin: round; }
.va-pins circle { fill: rgba(201,169,110,.2); stroke: var(--gold); stroke-width: 2; }
.va-labels text { fill: var(--text-3); font: 400 32px var(--font-body); }
.va-labels .va-lbl--big { fill: var(--text-1); font: 400 40px var(--font-display); font-style: italic; }

/* Words */
.va-quote { margin: 1rem 0 3rem; padding: 0; border: 0; }
.va-quote p { font-family: var(--font-display); font-style: italic; font-size: clamp(1.6rem, 3.4vw, 2.5rem); line-height: 1.3; color: var(--text-1); margin: 0 0 1.2rem; }
.va-quote p::before { content: "\201C"; color: var(--gold); margin-right: .05em; }
.va-quote footer { font-size: .76rem; letter-spacing: .2em; text-transform: uppercase; color: var(--text-5); }
.va-qa { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--border); }
.va-qa > div { padding: 1.5rem 0; border-bottom: 1px solid var(--border); display: grid; gap: .5rem; }
.va-qa dt { font-family: var(--font-display); font-size: 1.3rem; color: var(--text-1); }
.va-qa dd { margin: 0; font-size: .95rem; color: var(--text-3); line-height: 1.8; }
.va-qa__p { margin: 0; }
.va-qa__fig { margin: 1.4rem 0 .4rem; }
.va-qa__fig .va-tile { aspect-ratio: 3 / 2; }
.va-qa__fig figcaption { margin: .9rem 0 0; font-size: .86rem; color: var(--text-4); line-height: 1.6; }
.va-qa__fig figcaption span { font-family: var(--font-display); font-style: italic; color: var(--gold); margin-right: .45rem; }
.va-pending { position: relative; }
.va-qa dd.va-pending, .va-quote.va-pending p { color: var(--text-5); }
.va-pending::after { content: "Awaiting your words"; display: inline-block; margin-left: .7rem; padding: .15rem .55rem; border: 1px dashed var(--gold-dim); border-radius: 2px; font: 500 .64rem/1.6 var(--font-body); font-style: normal; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); vertical-align: middle; }
.va-quote.va-pending::after { margin: 0 0 1rem; }

/* CTA */
.va-cta { padding: var(--space-2xl) 0; border-top: 1px solid var(--border); background:
  radial-gradient(80% 120% at 0% 0%, rgba(201,169,110,.08), transparent 55%), var(--bg); }
.va-cta__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3rem; }
.va-cta h2 { margin: 0 0 1rem; }
.va-cta p:not(.eyebrow) { color: var(--text-3); line-height: 1.8; max-width: 52ch; }
.va-cta__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.va-cta__agents { border: 1px solid var(--gold-border); padding: 1.8rem; align-self: end; }
.va-cta__agents a:not(.btn) { color: var(--gold); }

/* Lightbox */
.va-lb { border: 0; padding: 0; margin: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; background: rgba(8,8,6,.96); color: var(--text-2); }
.va-lb::backdrop { background: rgba(0,0,0,.6); }
.va-lb figure { margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; padding: 3.5rem 1rem 2rem; }
.va-lb img { max-width: 100%; max-height: calc(100dvh - 8rem); object-fit: contain; }
.va-lb figcaption { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-4); text-align: center; }
.va-lb__btn, .va-lb__close { position: absolute; background: rgba(13,13,11,.6); border: 1px solid var(--gold-border); color: var(--text-1); width: 48px; height: 48px; border-radius: 50%; font-size: 1.8rem; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.va-lb__btn:hover, .va-lb__close:hover { border-color: var(--gold); }
.va-lb__prev { left: 1rem; top: 50%; translate: 0 -50%; }
.va-lb__next { right: 1rem; top: 50%; translate: 0 -50%; }
.va-lb__close { right: 1rem; top: 1rem; }

@media (min-width: 640px) {
  .va-stats__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .va-stat, .va-stat:nth-child(odd) { border-left: 1px solid var(--border); border-bottom: 0; }
  .va-stat:first-child { border-left: 0; }
  .va-stat:nth-child(-n+2) { border-bottom: 0; }
  .va-stat { padding: 2.8rem 1.5rem 2.6rem; }
  .va-mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .va-cell--a, .va-cell--d { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .va-br { display: none; }
  .va-intro__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 5rem; }
  .va-proj { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 3.5rem; align-items: end; }
  .va-proj--compare { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
  .va-mosaic { grid-template-columns: repeat(12, minmax(0, 1fr)); row-gap: 3.5rem; }
  .va-cell--a { grid-column: 1 / span 7; }
  .va-cell--b { grid-column: 9 / span 4; margin-top: 6rem; }
  .va-cell--b .va-tile { aspect-ratio: 4 / 5; }
  .va-cell--c { grid-column: 2 / span 4; }
  .va-cell--c .va-tile { aspect-ratio: 4 / 5; }
  .va-cell--d { grid-column: 6 / span 7; margin-top: 8rem; }
  .va-cell--e { grid-column: 1 / span 5; }
  .va-cell--f { grid-column: 7 / span 6; margin-top: 4rem; }
  .va-map__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 5rem; }
  .va-cta__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 4rem; }
}
@media (max-width: 639px) {
  .va-portrait { max-width: 72%; }
  .va-br { display: inline; }
  .va-hero__role span { display: none; }
  .va-hero__caption { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .va-tile img { transition: none; }
}

/* Wide screens: show the whole hero frame at its true 3:2 shape, centered, sides fading into the page. */
@media (min-width: 1024px) {
  .va-hero__media { left: 50%; right: auto; width: auto; height: 100%; aspect-ratio: 3 / 2; translate: -50% 0;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 16%, #000 84%, transparent 100%);
            mask-image: linear-gradient(to right, transparent 0, #000 16%, #000 84%, transparent 100%); }
  .va-hero .va-hero__media[data-m] > img { object-position: center; transform: translate3d(0, calc(var(--py, 0%) * .15), 0) scale(1.06); }
}
/* Heroes whose photo is 4:3 rather than 3:2. */
@media (min-width: 1024px) { .va-hero--43 .va-hero__media { aspect-ratio: 4 / 3; } }

/* /agents/ index */
.va-ix-head { padding: clamp(4rem, 9vw, 7.5rem) 0 clamp(2rem, 4vw, 3rem); }
.va-ix-head h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(3.6rem, 11vw, 9rem); line-height: .9; letter-spacing: -.035em; color: var(--text-1); margin: 0 0 1.6rem; }
.va-ix-head__lede { max-width: 46ch; font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.7; color: var(--text-3); margin: 0; }
.va-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); padding: clamp(1rem, 3vw, 2rem) 0 clamp(3rem, 6vw, 5rem); }
.va-card { display: grid; gap: .55rem; color: inherit; text-decoration: none; max-width: 460px; }
.va-card__media { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 2px; background: var(--bg-card); margin-bottom: .8rem; }
.va-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .9s var(--ease-out), scale 1.2s var(--ease-out); }
/* Portraits are 4:5 with faces in the top third: anchor to the top by default so a wider frame never cuts off heads. */
.va-card__portrait { object-position: 50% 0; }
/* Per-agent focal point (agents.mjs cardFocus), since CSP forbids inline styles. */
.va-card__portrait[data-y="5"] { object-position: 50% 5%; }
.va-card__portrait[data-y="10"] { object-position: 50% 10%; }
.va-card__portrait[data-y="15"] { object-position: 50% 15%; }
.va-card__portrait[data-y="20"] { object-position: 50% 20%; }
.va-card__portrait[data-y="25"] { object-position: 50% 25%; }
.va-card__portrait[data-y="30"] { object-position: 50% 30%; }
.va-card__portrait[data-y="35"] { object-position: 50% 35%; }
.va-card__portrait[data-y="40"] { object-position: 50% 40%; }
.va-card__portrait[data-y="45"] { object-position: 50% 45%; }
.va-card__portrait[data-y="50"] { object-position: 50% 50%; }
.va-card__home { opacity: 0; }
.va-card:hover .va-card__home, .va-card:focus-visible .va-card__home { opacity: 1; }
.va-card:hover .va-card__portrait, .va-card:focus-visible .va-card__portrait { scale: 1.04; }
.va-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 6px; }
.va-card__name { font-family: var(--font-display); font-size: clamp(1.7rem, 3vw, 2.2rem); line-height: 1.1; color: var(--text-1); }
.va-card__meta { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.va-card__line { font-size: .92rem; line-height: 1.7; color: var(--text-4); max-width: 42ch; }
.va-ix-body h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.9rem, 3.6vw, 2.8rem); line-height: 1.15; color: var(--text-1); margin: 0 0 1.2rem; }
.va-ix-body p { font-size: .98rem; line-height: 1.85; color: var(--text-3); margin: 0 0 1.2rem; }
.va-ix-body a { color: var(--gold); }
.va-ix-cols { display: grid; gap: clamp(2rem, 5vw, 4rem); }
.va-ix-list { list-style: none; margin: 0 0 1.2rem; padding: 0; border-top: 1px solid var(--border); }
.va-ix-list li { padding: 1rem 0; border-bottom: 1px solid var(--border); font-size: .95rem; line-height: 1.7; color: var(--text-3); }
.va-ix-list strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.2rem; color: var(--text-1); margin-bottom: .2rem; }
@media (min-width: 900px) {
  .va-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .va-ix-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  /* Two agents: two equal columns, so no empty third column. */
  .va-cards:has(> .va-card:nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .va-cards:has(> .va-card:nth-child(2):last-child) .va-card { max-width: none; }
  .va-cards:has(> .va-card:nth-child(2):last-child) .va-card__media { aspect-ratio: 4 / 3; }
  /* One agent so far: a full-width feature, portrait beside their best listing. */
  .va-card:only-child { grid-column: 1 / -1; max-width: none; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); column-gap: clamp(1.5rem, 3vw, 2.5rem); row-gap: .55rem; align-content: start; }
  .va-card:only-child .va-card__media { display: contents; }
  .va-card:only-child .va-card__media img { position: static; height: auto; border-radius: 2px; }
  .va-card:only-child .va-card__portrait { grid-column: 1; grid-row: 1 / span 5; aspect-ratio: 4 / 5; }
  .va-card:only-child .va-card__home { grid-column: 2; grid-row: 1; aspect-ratio: 3 / 2; opacity: 1; margin-bottom: 1rem; }
  .va-card:only-child > span:not(.va-card__media) { grid-column: 2; }
  .va-card:only-child .va-card__name { font-size: clamp(2.2rem, 3.6vw, 3.2rem); }
}
@media (prefers-reduced-motion: reduce) { .va-card__media img { transition: none; } }
