/* About (/about-us/): the page's own layout for its photo header, the story of the agency's sites, the chapter's
   scene and the reviews; every shared look is in components.css. */

/* the header: a real photo that moves (adv-since drifts it), the words on its calm left, the card low on the right
   under the owner's face */
.about-head__media img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: var(--focus, 50% 50%); will-change: transform; }
.about__since { container-type: normal; }
@media (min-width: 901px) {
  .about-head .about__since { align-self: end; justify-self: end; margin-bottom: clamp(0px, 2vw, 24px); }
}
@media (max-width: 900px) {
  .about-head { display: flex; flex-direction: column; }
  .about-head .vhero__in { display: contents; }
  .about-head .vhero__grade { display: none; }
  .about-head .vhero__copy { order: 1; position: relative; z-index: 4; padding: clamp(40px, 10vw, 64px) var(--gutter) var(--space-5); }
  .about-head .vhero__stop { order: 2; position: relative; inset: auto; top: 12px; align-self: flex-end; margin: 0 12px -44px 0; }
  .about-head .about-head__media { order: 3; position: relative; inset: auto; height: 120vw; overflow: clip; }
  .about-head .about-head__media img { object-position: var(--focus-phone, var(--focus, 50% 50%)); }
  .about-head .about-head__media::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, var(--c-ink) 0%, transparent 22%, transparent 60%, color-mix(in srgb, var(--c-ink) 60%, transparent) 100%); }
  .about-head .about__since { order: 4; position: relative; z-index: 4; margin-top: -70px; padding: 0 var(--gutter) var(--space-5); }
}

/* the story: the agency's sites along the ring's arc, which draws as the part scrolls by, each screen lighting as it
   reaches it; sideways slides on the phone */
.story { position: relative; overflow: clip; }
.story > .wrap { position: relative; z-index: 1; }
.story__arc { position: absolute; left: -6%; top: 6%; width: 112%; height: 100%; max-width: none; pointer-events: none; overflow: visible; }
.story__arc path { fill: none; stroke: color-mix(in srgb, var(--c-brand) 55%, transparent); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 1 2; stroke-dashoffset: 0; vector-effect: non-scaling-stroke; }
.story__list { list-style: none; margin: var(--space-5) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2vw, 28px); }
.story__card { display: grid; }
.story__card a { display: grid; gap: 8px; align-content: start; padding: 10px 10px 18px; border-radius: 20px; background: var(--c-paper); box-shadow: 0 0 0 1px var(--c-line), var(--shadow-m); color: var(--c-ink); text-decoration: none; }
.story__card a > span:not(.story__shot) { margin-inline: 8px; }
.story__shot { display: block; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; background: var(--c-paper-alt); box-shadow: 0 0 0 1px var(--c-line); }
.story__shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.story__name { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font: 700 1.15rem/1.2 var(--font-ui); }
.story__line { color: var(--c-ink-soft); }
.story__when { justify-self: start; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--c-accent) 18%, var(--c-paper)); color: var(--c-ink); font: 700 0.85rem/1.2 var(--font-ui); }
.story__card a:hover .story__name, .story__card a:focus-visible .story__name { color: var(--c-brand-text); }
@supports (animation-timeline: view()) {
  @media (min-width: 761px) and (prefers-reduced-motion: no-preference) {
    .story__arc path { stroke-dasharray: 1 2; animation: story-draw linear both; animation-timeline: view(); animation-range: entry 10% cover 65%; }
    .story__card { animation: story-light linear both; animation-timeline: view(); animation-range: entry 5% cover 35%; }
    .story__card .story__shot img { animation: story-shot linear both; animation-timeline: view(); animation-range: entry 5% cover 35%; }
  }
}
@keyframes story-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes story-light { from { transform: translateY(28px); } to { transform: none; } }
@keyframes story-shot { from { filter: grayscale(0.7) brightness(0.8); } to { filter: none; } }
@media (max-width: 1100px) { .story__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .story__arc { display: none; }
  .story__list { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 12px; scroll-padding-inline: var(--gutter); }
  .story__card { flex: 0 0 80%; scroll-snap-align: start; }
}

/* how the team works: the four cards on the photo's calm left (her face is at about 60 % across, in its top third) */
.about__how { align-self: center; }
@media (max-width: 900px) { .page-about #how { --chapter-media-h: 140vw; --chapter-overlap: 220px; } }

/* the reviews */
.about-reviews__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2vw, 28px); margin-top: var(--space-5); align-items: start; }
@media (max-width: 900px) { .about-reviews__list { grid-template-columns: 1fr; } }
