/* about-us.css: the page's own layout (plan.md "## About Us"). Only places and sizes its parts, with system.css's
   tokens; the components (header base, prints, close) come from components.css. */

/* ---------- 1. the header: the words left on cream; right, the family's own prints coming up like an album inside
   the loop's ring (scene develop) ---------- */
.ahero { padding: 0; }
.ahero__in { box-sizing: border-box; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); gap: clamp(1.5rem, 0.5rem + 3.4vw, 4.5rem); align-items: center; max-width: calc(var(--max-w) + 2 * var(--gutter)); margin-inline: auto; padding: clamp(1.5rem, 1rem + 2vw, 3rem) var(--gutter) clamp(2rem, 1rem + 2.4vw, 3.5rem); }
.ahero__copy { gap: 1rem; }
.ahero__copy .ihero__title { max-width: 15ch; }
.ahero__copy .cta-row { margin-top: 0.4rem; }
.ahero__sign { margin: 0.3rem 0 0; font-family: var(--font-display); font-style: italic; font-size: 1.15rem; color: var(--c-brand-text); }
.ahero__stage { position: relative; height: clamp(440px, 40vw, 560px); border-radius: var(--radius-l); background: var(--c-paper-alt); }
.ahero__stage > .loop { --loop-inset: 14px; --loop-r: 22px; }
.ahero__print { position: absolute; z-index: 2; margin: 0; padding: 8px 8px 10px; }
.ahero__photo { display: block; background: var(--c-paper); border-radius: 2px; overflow: hidden; }
.ahero__photo img { display: block; width: 100%; height: auto; }
.ahero__print figcaption { margin-top: 0.4rem; font-size: 13px; }
.ahero__print--a { width: min(46%, 250px); left: 7%; top: 9%; }
.ahero__print--b { width: min(28%, 150px); left: 57%; top: 6%; }
.ahero__print--c { width: min(48%, 270px); right: 6%; bottom: 8%; z-index: 3; }
.ahero__print--d { width: min(48%, 270px); left: 6%; bottom: 7%; z-index: 4; }
.ahero__scene { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.ahero__stop { position: absolute; top: 14px; right: 14px; z-index: 7; }
@media (max-width: 899px) {
  .ahero__in { grid-template-columns: minmax(0, 1fr); }
  .ahero__copy .ihero__title { max-width: none; }
  .ahero__stage { height: clamp(420px, 92vw, 560px); }
}
@media (max-width: 679px) {
  .ahero__copy .ihero__title { font-size: clamp(2rem, 1.4rem + 3vw, 3rem); }
  .ahero__copy .cta-row { flex-direction: column; align-items: stretch; }
  .ahero__stage { height: 430px; }
  .ahero__print--a { width: 52%; left: 5%; top: 6%; }
  .ahero__print--b { width: 30%; left: auto; right: 6%; top: 5%; }
  .ahero__print--c { width: 52%; right: 4%; bottom: 7%; }
  .ahero__print--d { width: 52%; left: 4%; bottom: 13%; }
}

/* ---------- 2. Rusty's career: the map of the lower 48 with the places he trained dogs, the route home to Maurice,
   and a card that reads the place tapped ---------- */
.career__head { margin-bottom: clamp(1.25rem, 1rem + 1vw, 2rem); }
.career__tool { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, 300px); gap: clamp(1.25rem, 1rem + 1.5vw, 2.5rem); align-items: center; }
.career__map { position: relative; aspect-ratio: 960 / 600; }
.career__svg { display: block; width: 100%; height: 100%; overflow: visible; }
.career__states .us-state { fill: var(--c-paper-alt); stroke: var(--c-white); stroke-width: 1.2; }
.career__states .us-state[data-fips="22"] { fill: color-mix(in srgb, var(--c-cobalt) 18%, var(--c-paper-alt)); }
.career__route-halo { fill: none; stroke: var(--c-white); stroke-width: 9; stroke-opacity: 0.8; stroke-linecap: round; }
.career__route { fill: none; stroke: var(--c-cobalt); stroke-width: 3.2; stroke-dasharray: 0.012 0.009; stroke-dashoffset: 0; stroke-linecap: round; }
.career__home-label { font: var(--fw-ui) 18px var(--font-text); fill: var(--c-brand-text); paint-order: stroke; stroke: var(--c-white); stroke-width: 5px; stroke-linejoin: round; }
.career__pin { position: absolute; z-index: 2; display: grid; place-items: center; width: 34px; height: 34px; margin: -17px 0 0 -17px; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.career__pin span { display: block; width: 16px; height: 16px; box-sizing: border-box; border-radius: 50%; background: var(--c-white); box-shadow: 0 0 0 4px var(--c-cobalt), 0 4px 10px color-mix(in srgb, var(--c-ink) 30%, transparent); transition: transform 0.2s ease, background 0.2s ease; }
.career__pin:hover span, .career__pin[aria-current="true"] span { transform: scale(1.25); background: var(--c-accent); }
.career__pin:focus-visible { outline: 3px solid var(--c-cobalt); outline-offset: 2px; }
.career__pin--home { z-index: 3; }
.career__pin--home span { width: 22px; height: 22px; background: var(--c-cobalt); box-shadow: 0 0 0 4px var(--c-white), 0 0 0 7px var(--c-cobalt), 0 6px 14px color-mix(in srgb, var(--c-ink) 30%, transparent); }
.career__abroad { display: flex; gap: 10px; align-items: flex-start; margin-top: 0.35rem; padding: 12px 14px; border-radius: var(--radius-m); background: var(--c-white); border: 1px solid var(--c-line); }
.career__abroad .icon { flex: none; font-size: 22px; color: var(--c-cobalt); margin-top: 2px; }
.career__abroad p { margin: 0; font-size: var(--fs-small); line-height: 1.4; color: var(--c-ink); }
.career__abroad b { display: block; font-family: var(--font-ui); font-weight: var(--fw-ui); }
.career__side { display: grid; gap: 0.9rem; align-content: center; }
.career__card { padding: 18px 20px; border-radius: var(--radius-l); background: var(--c-brand-tint); min-height: 9.5rem; box-sizing: border-box; }
.career__place { margin: 0 0 0.35rem; font-family: var(--font-display); font-size: 1.45rem; line-height: 1.2; color: var(--c-ink); }
.career__line { margin: 0; color: var(--c-ink); line-height: 1.5; }
.career__hint { margin: 0; font-size: var(--fs-small); color: var(--c-ink-soft); }
.career__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.career__chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px 7px 9px; border: 1px solid var(--c-line); border-radius: var(--radius-pill); background: var(--c-white); font: var(--fw-ui) var(--fs-small) var(--font-ui); color: var(--c-ink); cursor: pointer; }
.career__chip .icon { color: var(--c-cobalt); font-size: 16px; }
.career__chip[aria-pressed="true"] { background: var(--c-cobalt); border-color: var(--c-cobalt); color: var(--c-on-brand); }
.career__chip[aria-pressed="true"] .icon { color: var(--c-on-brand); }
.career__chip:focus-visible { outline: 3px solid var(--c-cobalt); outline-offset: 2px; }
/* the opening, once in view: the pins pop one after another, the route draws home, the home pin and its label last */
.career__tool:not([data-on]) .career__pin span { transform: scale(0); }
.career__tool:not([data-on]) .career__route { stroke-dasharray: 0 1; }
.career__tool:not([data-on]) .career__home-label, .career__tool:not([data-on]) .career__abroad { opacity: 0; }
.career__tool[data-on] .career__pin span { animation: career-pop 0.5s var(--ease-out) both; animation-delay: calc(var(--i) * 0.28s); }
.career__tool[data-on] .career__route { animation: career-route 2.2s var(--ease-out) 2.2s both; }
.career__tool[data-on] .career__home-label { animation: career-in 0.6s ease 4.2s both; }
.career__tool[data-on] .career__abroad { animation: career-in 0.6s ease 1.6s both; }
@keyframes career-pop { from { transform: scale(0); } 70% { transform: scale(1.3); } to { transform: scale(1); } }
@keyframes career-route { from { stroke-dasharray: 0 1; } 99% { stroke-dasharray: 1 0; } to { stroke-dasharray: 0.012 0.009; } }
@keyframes career-in { from { opacity: 0; translate: 0 8px; } to { opacity: 1; translate: 0 0; } }
@media (prefers-reduced-motion: reduce) { .career__tool[data-on] * { animation: none !important; } .career__tool .career__pin span { transform: none; } .career__tool .career__route { stroke-dasharray: 0.012 0.009; } .career__tool .career__home-label, .career__tool .career__abroad { opacity: 1; } }
@media (max-width: 899px) { .career__tool { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 679px) {
  .career__home-label { display: none; }
  .career__pin { width: 26px; height: 26px; margin: -13px 0 0 -13px; }
  .career__pin span { width: 11px; height: 11px; box-shadow: 0 0 0 3px var(--c-cobalt); }
  .career__pin--home span { width: 15px; height: 15px; box-shadow: 0 0 0 3px var(--c-white), 0 0 0 5px var(--c-cobalt); }
}

/* ---------- 3. the man who comes: the van, large, and Rusty at a customer's home ---------- */
.himself__media { position: relative; padding: 0 0 3.5rem; }
.himself__van { width: min(92%, 560px); }
.himself__van .loop { --loop-inset: -14px; --loop-r: 16px; }
.himself__visit { position: absolute; right: 0; bottom: 0; z-index: 2; width: min(44%, 250px); }
@media (max-width: 679px) { .himself__media { padding-bottom: 4.5rem; } .himself__van { width: 94%; } .himself__visit { width: 50%; } .himself__van figcaption { text-align: left; padding-left: 4px; } }

/* ---------- 4. ask your neighbors: the referrals card over neighbors at their fence ---------- */
.neighbors__head { margin-bottom: clamp(1.5rem, 1rem + 1.6vw, 2.5rem); }
.neighbors__stage { aspect-ratio: 2 / 1; box-shadow: var(--shadow-m); }
.neighbors__img { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; object-position: 50% 45%; }
.neighbors__scene { position: absolute; inset: 0; z-index: 2; }
@media (max-width: 679px) {
  .neighbors__stage { aspect-ratio: 4 / 5.6; --rf-compact: 1; }
  .neighbors__img { object-position: 88% 50%; }
  .neighbors__stage .stop--on-media { top: auto; bottom: 14px; }
}

/* ---------- 5. the close: the business's own print of Rusty with a tiny customer, beside the form ---------- */
.aclose__media { display: grid; justify-items: center; }
.aclose__print { width: min(100%, 420px); }
.aclose__print .loop { --loop-inset: -14px; --loop-r: 16px; }
@media (max-width: 899px) { .aclose__print { width: min(80%, 380px); margin-bottom: 1rem; } }
