/* ===== Xander Estin — Agency =====
   Talent-agency look: white page, black extended grotesque caps for the wordmark,
   nav and section titles; tight bold grotesque for names; Times-style serif for
   descriptions with italic for publications/credits. Fonts self-hosted:
   Archivo (variable wght + wdth, SIL OFL) and Tinos (Apache 2.0) from fontsource. */

@font-face {
  font-family: "Archivo";
  src: url("../assets/fonts/archivo-var-wdth.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Tinos";
  src: url("../assets/fonts/tinos-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Tinos";
  src: url("../assets/fonts/tinos-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --xa-bg: var(--bg, #fff);
  --xa-fg: var(--fg, #000);
  --xa-muted: var(--muted, #5f5f5f);
  --xa-ph: var(--surface, #f3f3f3);
  --xa-line: var(--border, rgba(0,0,0,.12));
  --xa-sans: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --xa-serif: "Tinos", "Times New Roman", Times, serif;
  --xa-gut: 12px;
  --xa-pb: 0px;            /* Tovu preview banner offset (set by preview-bar.js class) */
  --xa-head: 92px;         /* mobile header: wordmark row + nav row */
  --xa-ease: cubic-bezier(.57,.4,.55,1);
  --xa-expo: cubic-bezier(.16,1,.3,1);
}
@media (min-width: 840px) {
  :root { --xa-gut: 20px; --xa-head: 64px; }
}
.has-preview-bar { --xa-pb: 44px; }

html { scroll-padding-top: calc(var(--xa-head) + var(--xa-pb) + 8px); }
body.xa-body {
  margin: 0;
  background: var(--xa-bg);
  color: var(--xa-fg);
  font-family: var(--xa-serif);
  font-size: 15px;
  line-height: 1.25;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
.xa-body a { color: inherit; }
.xa-body img { display: block; max-width: none; }
.xa-sr {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.xa-skip {
  position: absolute; left: 12px; top: -60px; z-index: 300;
  background: #000; color: #fff; padding: 10px 14px;
  font: 700 13px/1 var(--xa-sans); text-decoration: none;
}
.xa-skip:focus { top: calc(8px + var(--xa-pb)); }
.xa-body :focus-visible { outline: 2px solid #000; outline-offset: 3px; }

/* ---------- type primitives ---------- */
.xa-caps {
  font-family: var(--xa-sans);
  font-stretch: 125%;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
  line-height: 1;
}
.xa-name { font-family: var(--xa-sans); font-weight: 700; letter-spacing: -.02em; }
.xa-serif { font-family: var(--xa-serif); font-weight: 400; }
.xa-title {
  margin: 0;
  font-family: var(--xa-sans);
  font-stretch: 125%;
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(26px, 3.6vw, 52px);
  line-height: 1;
  letter-spacing: -.005em;
}
.xa-sub { margin: 6px 0 0; font: italic 400 15px/1.2 var(--xa-serif); }

/* ---------- header ---------- */
.xa-header {
  position: sticky;
  top: var(--xa-pb);
  z-index: 100;
  background: var(--xa-bg);
  color: var(--xa-fg);
}
.xa-header-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 8px var(--xa-gut) 0;
  min-height: 52px;
}
.xa-wordmark {
  display: inline-block;
  text-decoration: none;
  font-family: var(--xa-sans);
  font-stretch: 125%;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 15px;
  line-height: .92;
  text-align: left;
  letter-spacing: 0;
}
.xa-wordmark span { display: block; }
.xa-header-row > .xa-wordmark { grid-column: 1; grid-row: 1; }
.xa-header-row > .xa-social { grid-column: 2; grid-row: 1; justify-self: end; margin-right: -12px; }
.xa-header-row > .xa-nav { grid-column: 1 / -1; grid-row: 2; padding: 0 0 4px; }
.xa-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 18px; }
.xa-nav a {
  position: relative;
  display: inline-flex; align-items: center; min-height: 28px;
  text-decoration: none;
  font-family: var(--xa-sans); font-stretch: 125%; font-weight: 700;
  text-transform: uppercase; font-size: 12px; letter-spacing: .01em;
}
/* underline slides in from the left, out to the right (transform only) */
.xa-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1.5px;
  background: currentColor; transform: scaleX(0); transform-origin: 100% 50%;
  transition: transform .45s var(--xa-expo);
}
.xa-nav a:hover::after, .xa-nav a:focus-visible::after, .xa-nav a[aria-current="true"]::after { transform: scaleX(1); transform-origin: 0 50%; }

.xa-social { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 0; }
.xa-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; color: inherit;
  transition: opacity .2s ease-in-out, transform .3s var(--xa-ease);
}
.xa-social a:hover { opacity: .55; }
.xa-social svg { width: 20px; height: 20px; display: block; }

@media (min-width: 840px) {
  .xa-header-row {
    grid-template-columns: 1fr auto 1fr;
    padding: 6px var(--xa-gut);
    min-height: var(--xa-head);
  }
  .xa-header-row > .xa-wordmark { grid-column: 2; grid-row: 1; text-align: center; font-size: 19px; }
  .xa-header-row > .xa-nav { grid-column: 1; grid-row: 1; padding: 0; }
  .xa-nav ul { gap: 34px; }
  .xa-nav a { font-size: 16px; min-height: 44px; }
  .xa-header-row > .xa-social { grid-column: 3; grid-row: 1; }
}

/* ---------- hero (full-bleed active image + numbered thumbnail strip) ---------- */
.xa-hero { position: relative; }
.xa-stage {
  position: relative;
  height: calc(100svh - var(--xa-head) - var(--xa-pb) - 150px);
  min-height: 420px;
  max-height: 980px;
  background: var(--xa-ph);
  overflow: hidden;
}
.xa-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity .6s ease-in-out;
}
.xa-slide.is-active { opacity: 1; }
.xa-slide img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.06);
  transition: transform 1.2s var(--xa-ease);
}
.xa-slide.is-active img { transform: scale(1); }
/* Bias hero crops to the top so heads/faces aren't cut off; zoom/parallax grow from the top edge too. */
.xa-slide img { object-position: 50% 0%; transform-origin: 50% 0%; }
.xa-slide { transform-origin: 50% 0%; }
.xa-body main p, .xa-body main li, .xa-footer p, .xa-footer li { color: var(--xa-fg); }
.xa-body main .xa-sub { color: var(--xa-muted); }
.xa-body main ul, .xa-body main ol { margin-top: 0; margin-bottom: 0; }
.xa-stage::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 34%;
  background: linear-gradient(to top, rgba(0,0,0,.42), rgba(0,0,0,0));
  pointer-events: none;
}
/* The wrapper is the positioned box, so a transform on it (scroll drift) can never
   re-anchor the caption outside the stage. */
.xa-hero-capwrap {
  position: absolute; left: var(--xa-gut); right: var(--xa-gut); bottom: 22px; z-index: 2;
}
.xa-hero-cap {
  position: relative;
  margin: 0; color: #fff; text-align: center;
  font: 400 15px/1.25 var(--xa-serif);
  text-shadow: 0 1px 12px rgba(0,0,0,.25);
}
.xa-hero-cap b { font-family: var(--xa-sans); font-weight: 700; letter-spacing: -.02em; }
@media (min-width: 840px) { .xa-hero-cap { font-size: 17px; } .xa-hero-capwrap { bottom: 30px; } }

.xa-hero .xa-strip {
  display: flex; gap: 17px;
  list-style: none; margin: 0; padding: 14px var(--xa-gut) 0;
  overflow-x: auto; scrollbar-width: none;
  scroll-snap-type: x proximity; scroll-padding-inline: var(--xa-gut);
}
.xa-strip::-webkit-scrollbar { display: none; }
.xa-strip li { flex: none; scroll-snap-align: start; }
.xa-thumb {
  display: block; padding: 0; margin: 0; border: 0; background: none; cursor: pointer;
  color: inherit; text-align: left; font: inherit;
}
.xa-thumb .num { display: block; font: 700 12px/1 var(--xa-sans); letter-spacing: -.01em; margin-bottom: 8px; }
.xa-thumb .ph { width: 120px; aspect-ratio: 177 / 110; }
.xa-thumb .ph img { transition: opacity .3s ease-in-out, scale .6s var(--xa-ease); }
.xa-thumb[aria-pressed="false"] .ph img { opacity: .55; }
.xa-thumb:hover .ph img { opacity: 1; scale: 1.04; }
.xa-thumb[aria-pressed="true"] .num { text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 840px) { .xa-thumb .ph { width: 177px; } }

/* ---------- shared image box: sized parent, absolutely filled image ---------- */
.ph { display: block; position: relative; overflow: hidden; background: var(--xa-ph); }
.xa-cap { display: block; }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.xa-js .ph img.xa-fade { opacity: 0; transition: opacity .5s ease-in-out, transform .6s var(--xa-ease); }
.xa-js .ph img.xa-fade.is-loaded { opacity: 1; }

/* ---------- sections ---------- */
.xa-section { padding: 96px 0 0; }
.xa-sec-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  padding: 0 var(--xa-gut) 18px;
}
.xa-arrows { display: none; gap: 4px; }
.xa-js .xa-arrows { display: flex; }
.xa-arrow {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid #000; background: #fff; color: #000; cursor: pointer;
  transition: background-color .2s ease-in-out, color .2s ease-in-out;
}
.xa-arrow:hover { background: #000; color: #fff; }
.xa-arrow svg { width: 18px; height: 18px; }
.xa-arrow:disabled { opacity: .3; cursor: default; background: #fff; color: #000; }
@media (min-width: 840px) { .xa-section { padding-top: 140px; } }

/* horizontal rows, like the reference's highlight carousels */
.xa-row {
  --rowh: 340px;
  display: flex; gap: 12px;
  list-style: none; margin: 0; padding: 0 var(--xa-gut) 6px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x proximity; scroll-padding: 0 var(--xa-gut);
  scrollbar-width: thin; scrollbar-color: #000 transparent;
}
.xa-row:focus-visible { outline-offset: -2px; }
.xa-row > li { flex: none; scroll-snap-align: start; }
@media (min-width: 840px) { .xa-row { --rowh: min(560px, 62vh); gap: 12px; } }
.xa-card { margin: 0; }
.xa-card a { display: block; text-decoration: none; }
.xa-card .ph { height: var(--rowh); aspect-ratio: var(--ar, 4 / 5); }
.xa-card .ph img, .xa-tile .ph img { transition: scale .8s var(--xa-expo), opacity .5s ease-in-out; }
.xa-card a:hover .ph img, .xa-tile a:hover .ph img { scale: 1.035; }
.xa-cap { padding: 12px 10px 0 0; font: 400 14px/1.25 var(--xa-serif); max-width: 34ch; }
.xa-cap b { font-family: var(--xa-sans); font-weight: 700; letter-spacing: -.02em; }
.xa-cap i { display: block; margin-top: 4px; }
@media (min-width: 840px) { .xa-cap { font-size: 15px; } }

/* archive: uniform numbered grid */
.xa-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px;
  list-style: none; margin: 0; padding: 0 var(--xa-gut);
}
@media (min-width: 700px) { .xa-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .xa-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 12px; } }
.xa-tile { margin: 0; }
.xa-tile a { display: block; text-decoration: none; }
.xa-tile .num { display: block; font: 700 12px/1 var(--xa-sans); letter-spacing: -.01em; margin-bottom: 8px; }
.xa-tile .ph { aspect-ratio: 4 / 5; }
.xa-tile .xa-cap { padding-top: 10px; }

/* ---------- clients marquee (continuous, CSS-only) ---------- */
.xa-marquee { overflow: hidden; padding: 6px 0 4px; border-top: 1px solid #000; border-bottom: 1px solid #000; margin-top: 4px; }
.xa-marquee-track { display: flex; width: max-content; animation: xa-marquee 46s linear infinite; }
.xa-marquee:hover .xa-marquee-track,
.xa-marquee:focus-within .xa-marquee-track { animation-play-state: paused; }
.xa-marquee-list { display: flex; flex: none; list-style: none; margin: 0; padding: 0; }
.xa-marquee-list li {
  flex: none; padding: 0 .5em 0 0;
  font-family: var(--xa-sans); font-stretch: 125%; font-weight: 700; text-transform: uppercase;
  font-size: clamp(34px, 6.4vw, 96px); line-height: 1.08; white-space: nowrap;
}
.xa-marquee-list li::after { content: "/"; font-stretch: 100%; font-weight: 300; padding-left: .5em; }
@keyframes xa-marquee { from { transform: translate3d(0,0,0); } to { transform: translate3d(-50%,0,0); } }
@media (prefers-reduced-motion: reduce) {
  .xa-marquee-track { animation: none; width: auto; }
  .xa-marquee-list[aria-hidden="true"] { display: none; }
  .xa-marquee-list { flex-wrap: wrap; padding: 0 var(--xa-gut); }
  .xa-marquee-list li { font-size: clamp(26px, 4.4vw, 60px); }
}

/* ---------- info grid (about, services, agencies) — 4 column, like the reference footer ---------- */
.xa-info {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px;
  padding: 0 var(--xa-gut);
}
.xa-info > * { grid-column: span 4; }
@media (min-width: 840px) {
  .xa-info { gap: 64px; }
  .xa-info .xa-lead { grid-column: 1 / span 2; }
  .xa-info .xa-col { grid-column: span 1; }
}
.xa-lead p {
  margin: 0 0 1rem;
  font: 400 clamp(22px, 2.3vw, 32px)/1.08 var(--xa-serif);
  letter-spacing: -.01em;
}
.xa-lead p + p { font-size: 15px; line-height: 1.3; letter-spacing: 0; max-width: 60ch; }
@media (min-width: 840px) { .xa-lead p + p { font-size: 17px; } }
.xa-col h3 {
  margin: 0 0 14px;
  font-family: var(--xa-sans); font-stretch: 125%; font-weight: 700; text-transform: uppercase;
  font-size: 13px; line-height: 1;
}
.xa-col ul { list-style: none; margin: 0; padding: 0; }
.xa-col li {
  font: 700 15px/1.6 var(--xa-sans); letter-spacing: -.02em;
}
.xa-col p { margin: 0 0 .5rem; font: 400 15px/1.3 var(--xa-serif); }
@media (min-width: 840px) { .xa-col li { font-size: 17px; } }

/* ---------- contact ---------- */
.xa-contact { padding: 0 var(--xa-gut); }
.xa-mail {
  display: inline-block; margin-top: 10px;
  font: italic 400 clamp(26px, 5vw, 72px)/1.05 var(--xa-serif);
  letter-spacing: -.02em; text-decoration: none; overflow-wrap: anywhere;
  position: relative; padding-bottom: 2px;
}
.xa-mail::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform-origin: 0 50%;
  transition: transform .5s var(--xa-expo);
}
.xa-mail:hover::after, .xa-mail:focus-visible::after { transform: scaleX(0); transform-origin: 100% 50%; }
.xa-contact-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; margin-top: 18px; }
.xa-contact-meta p { margin: 0; font: 700 15px/1.3 var(--xa-sans); letter-spacing: -.02em; }
.xa-contact .xa-social { margin-left: -12px; }

/* ---------- footer ---------- */
.xa-footer { margin-top: 160px; padding: 0 var(--xa-gut) 40px; }
@media (min-width: 840px) { .xa-footer { margin-top: 200px; } }
.xa-footer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.xa-footer-col { grid-column: span 2; }
@media (min-width: 840px) { .xa-footer-grid { gap: 64px; } .xa-footer-col { grid-column: span 1; } }
.xa-footer-col p, .xa-footer-col li, .xa-footer-col a {
  margin: 0; font: 700 12px/1.6 var(--xa-sans); letter-spacing: -.02em; text-decoration: none;
}
@media (min-width: 840px) { .xa-footer-col p, .xa-footer-col li, .xa-footer-col a { font-size: 15px; } }
.xa-footer-col ul { list-style: none; margin: 0; padding: 0; }
.xa-footer-col a:not(.xa-icon) {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .3s var(--xa-ease);
}
.xa-footer-col a:not(.xa-icon):hover { background-size: 100% 1px; }
.xa-footer .xa-social { margin-left: -12px; margin-top: -10px; }
.xa-footer .xa-mark {
  margin-top: 64px;
  font-family: var(--xa-sans); font-stretch: 125%; font-weight: 700; text-transform: uppercase;
  font-size: clamp(30px, 9.3vw, 176px) !important; line-height: .86 !important; letter-spacing: -.01em;
  white-space: nowrap; max-width: 100%; overflow: hidden;
}

/* ---------- lightbox ---------- */
.xa-lb {
  width: 100vw; height: 100vh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: #fff; color: #000;
}
.xa-lb::backdrop { background: #fff; }
.xa-lb[open] { display: grid; grid-template-rows: auto 1fr auto; }
.xa-lb-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(8px + var(--xa-pb)) var(--xa-gut) 8px;
}
.xa-lb-count { font: 700 13px/1 var(--xa-sans); letter-spacing: -.01em; }
.xa-lb-btn {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border: 0; background: none; color: #000; cursor: pointer;
}
.xa-lb-btn svg { width: 22px; height: 22px; }
.xa-lb-btn:hover { opacity: .55; }
.xa-lb-fig {
  position: relative; margin: 0; min-height: 0;
  display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 8px;
  padding: 0 var(--xa-gut);
}
.xa-lb-img { position: relative; height: 100%; min-height: 200px; }
.xa-lb-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.xa-lb-cap { padding: 12px var(--xa-gut) 20px; text-align: center; font: 400 15px/1.25 var(--xa-serif); }
.xa-lb-cap b { font-family: var(--xa-sans); font-weight: 700; letter-spacing: -.02em; }
@media (max-width: 600px) {
  .xa-lb-fig { grid-template-columns: 1fr; }
  .xa-lb-fig .xa-lb-prev, .xa-lb-fig .xa-lb-next { position: absolute; bottom: -52px; z-index: 2; }
  .xa-lb-fig .xa-lb-prev { left: var(--xa-gut); }
  .xa-lb-fig .xa-lb-next { right: var(--xa-gut); }
  .xa-lb-cap { padding: 12px 60px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .xa-slide, .xa-slide img, .ph img, .xa-social a, .xa-nav a, .xa-nav a::after, .xa-mail, .xa-mail::after { transition: none !important; }
  .xa-slide img { transform: none; }
  .xa-card a:hover .ph img, .xa-tile a:hover .ph img, .xa-thumb:hover .ph img { transform: none; scale: none; }
}

/* =====================================================================
   MOTION LAYER
   Every hidden/offset starting state below is gated on html.xa-motion, which
   scripts/agency.js adds only when JavaScript runs AND prefers-reduced-motion is
   not set. With JS off or reduced motion, the authored layout is fully visible.
   Masked reveals (titles, cards, tear sheets, footer wordmark, about lead) are
   gated on html.xa-reveal, added by scripts/agency.js once its observer runs.
   The About Services/Agencies lists use the vendored kUInetic runtime
   (data-kui fade-up + data-kui-stagger, rm:disable) in render/pages/index.html.
   Properties animated: transform / translate / scale, opacity, clip-path only.
   ===================================================================== */

/* page scroll-progress hairline (inside the sticky header) */
.xa-progress { display: none; }
.xa-motion .xa-progress {
  display: block; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: #000; transform: scaleX(0); transform-origin: 0 50%; pointer-events: none;
}

/* header: stacked wordmark condenses once the page scrolls */
.xa-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--xa-line); opacity: 0; transition: opacity .4s ease; pointer-events: none;
}
.xa-header.is-condensed::after { opacity: 1; }
.xa-wordmark { transform-origin: 0 50%; }
@media (min-width: 840px) { .xa-wordmark { transform-origin: 50% 50%; } }
.xa-motion .xa-wordmark { transition: transform .6s var(--xa-expo); }
.xa-motion .xa-header.is-condensed .xa-wordmark { transform: scale(.78); }

/* hero: stage wipes up and the image scales down into place on load.
   html.xa-motion is set by a tiny head script before first paint, so nothing flashes. */
.xa-motion .xa-stage { animation: xa-wipe 1.25s var(--xa-expo) both; }
.xa-motion .xa-slide.is-active img { animation: xa-settle 1.9s var(--xa-expo) both; }
@keyframes xa-wipe { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes xa-settle { from { transform: scale(1.16); } to { transform: scale(1); } }

/* hero caption: words rise out of line masks. A one-shot keyframe animation with
   fill-mode backwards: the offset exists only during its short delay/run and the
   resting (authored) state is always fully visible; no class or timer can strand it.
   Opacity is never touched by the intro. */
.xa-motion .xa-hero-cap .xa-w {
  display: inline-block; overflow: hidden; vertical-align: bottom;
  padding: 0 .04em .12em; margin: 0 -.04em -.12em;
}
.xa-motion .xa-hero-cap .xa-w > span {
  display: inline-block;
  animation: xa-rise 1.1s var(--xa-expo) backwards;
  animation-delay: calc(80ms + var(--i, 0) * 55ms);
}
@keyframes xa-rise { from { transform: translateY(115%); } to { transform: none; } }
.xa-hero-capwrap { will-change: transform, opacity; }

/* thumbnails: progress bar under the active thumbnail */
.xa-thumb .xa-bar {
  display: block; height: 2px; margin-top: 8px; background: var(--xa-line); overflow: hidden;
}
.xa-thumb .xa-bar > span {
  display: block; height: 100%; background: #000;
  transform: scaleX(0); transform-origin: 0 50%;
}
.xa-thumb[aria-pressed="true"] .xa-bar > span { transform: scaleX(1); }
.xa-hero.is-auto .xa-thumb[aria-pressed="true"] .xa-bar > span {
  animation: xa-bar var(--xa-auto, 6500ms) linear both;
}
.xa-hero.is-hold .xa-thumb .xa-bar > span,
.xa-hero.is-paused .xa-thumb .xa-bar > span { animation-play-state: paused; }
@keyframes xa-bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* visible slideshow pause/play control */
.xa-autoplay {
  position: absolute; top: 14px; right: var(--xa-gut); z-index: 3;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px;
  background: #000; color: #fff; cursor: pointer;
  font: 700 11px/1 var(--xa-sans); font-stretch: 125%; text-transform: uppercase; letter-spacing: .02em;
}
.xa-autoplay svg { width: 10px; height: 10px; display: block; }
.xa-autoplay:focus-visible { outline: 2px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 4px #000; }

/* staggered mask reveals (thumbnails, row cards, tear sheets, about lists).
   html.xa-reveal is added by scripts/agency.js itself, only once its observer is
   running; --d is the per-batch stagger delay it assigns. */
.xa-reveal .xa-strip li .ph,
.xa-reveal .xa-card .ph,
.xa-reveal .xa-tile .ph {
  clip-path: inset(0 0 0 0); /* explicit end value so clip-path interpolates */
  transition: clip-path 1.15s var(--xa-expo) var(--d, 0ms), opacity .45s ease;
}
.xa-reveal .xa-strip li:not(.is-in) .ph,
.xa-reveal .xa-card:not(.is-in) .ph,
.xa-reveal .xa-tile:not(.is-in) .ph { clip-path: inset(100% 0 0 0); }
.xa-reveal .xa-tile .ph img { transition: scale 1.5s var(--xa-expo) var(--d, 0ms), opacity .5s ease-in-out; }
.xa-reveal .xa-tile:not(.is-in) .ph img { scale: 1.12; }
.xa-reveal .xa-row .xa-card .ph img { transition: scale 1.5s var(--xa-expo) var(--d, 0ms), opacity .5s ease-in-out; }
.xa-reveal .xa-row .xa-card:not(.is-in) .ph img { scale: 1.34; }
.xa-reveal .xa-tile .num {
  transition: translate .8s var(--xa-expo) calc(var(--d, 0ms) + 180ms), opacity .6s ease calc(var(--d, 0ms) + 180ms);
}
.xa-reveal .xa-tile:not(.is-in) .num { translate: -16px 0; opacity: 0; }

/* text masks (split by JS): section titles + footer wordmark by character, about
   lead by rendered line. */
.xa-reveal .xa-split .xa-m {
  display: inline-block; overflow: hidden; vertical-align: top;
  padding: 0 .04em .1em; margin: 0 -.04em -.1em;
}
.xa-reveal .xa-split .xa-c {
  display: inline-block;
  transition: transform 1s var(--xa-expo) calc(var(--d, 0ms) + var(--c, 0) * 26ms);
}
.xa-reveal .xa-lead .xa-split .xa-c { transition-delay: calc(var(--d, 0ms) + var(--c, 0) * 110ms); transition-duration: 1.1s; }
.xa-reveal .xa-footer .xa-mark .xa-c { transition-duration: 1.2s; transition-delay: calc(var(--d, 0ms) + var(--c, 0) * 40ms); }
.xa-reveal .xa-rv:not(.is-in) .xa-c { transform: translateY(108%); }
/* the giant wordmark keeps its own nowrap/overflow; masks must not add width */
.xa-footer .xa-mark .xa-split { white-space: nowrap; }

/* sideways rows: parallax inside each card (individual translate/scale props, so
   the hover zoom and the scroll parallax never fight over one transform) */
.xa-motion .xa-row .xa-card .ph img { scale: 1.16; will-change: translate; }
.xa-motion .xa-row .xa-card a:hover .ph img { scale: 1.2; }

/* "View" cursor bubble (pointer:fine only; element is created by JS) */
.xa-cursor {
  position: fixed; left: 0; top: 0; z-index: 150;
  width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%;
  display: grid; place-items: center;
  background: #000; color: #fff; pointer-events: none;
  font: 700 11px/1 var(--xa-sans); font-stretch: 125%; text-transform: uppercase; letter-spacing: .04em;
  scale: 0; transition: scale .4s var(--xa-expo);
}
.xa-cursor.is-on { scale: 1; }

/* tear sheets: hovering (desktop pointer) or keyboard-focusing one dims its siblings */
.xa-grid .xa-tile .ph { transition: clip-path 1.15s var(--xa-expo) var(--d, 0ms), opacity .45s ease; }
@media (hover: hover) and (pointer: fine) {
  .xa-grid:has(.xa-tile a:hover) .xa-tile a:not(:hover) .ph { opacity: .28; }
}
.xa-grid:has(.xa-tile a:focus-visible) .xa-tile a:not(:focus-visible) .ph { opacity: .28; }

/* marquee: JS skews the lists with scroll velocity */
.xa-marquee-list { will-change: transform; }

/* contact email letter roll (letters are built by JS only when motion is on) */
.xa-mail .xa-roll { display: inline; }
.xa-mail .xa-l {
  display: inline-block; overflow: hidden; vertical-align: bottom;
  padding: 0 .06em; margin: 0 -.06em;
}
.xa-mail .xa-l-in {
  display: block; position: relative;
  transition: transform .55s var(--xa-expo);
  transition-delay: calc(var(--i, 0) * 14ms);
}
.xa-mail .xa-l-in::after { content: attr(data-c); position: absolute; left: 0; top: 100%; }
.xa-mail:hover .xa-l-in, .xa-mail:focus-visible .xa-l-in { transform: translateY(-100%); }

/* odometer numbers: reserve their width so rolling digits never shift text */
.xa-idx-n, .xa-count { display: inline-block; font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  .xa-cursor, .xa-autoplay { display: none !important; }
  .xa-hero.is-auto .xa-thumb[aria-pressed="true"] .xa-bar > span { animation: none; transform: scaleX(1); }
  .xa-grid .xa-tile .ph { transition: none; }
}
