/* Shared visual components, 2026-10-25 evening round.
   Fewer walls of text, more for the eye. Pairs with /assets/visuals.js. */

.vx-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 48px; }
.vx-head-note { max-width: 380px; font-size: 19px; line-height: 1.5; opacity: .78; }
.red { color: var(--red); }

/* ---------------------------------------------------------------- photo cards */
.vx-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 8px; }
.vx-cards.four { grid-template-columns: repeat(4, 1fr); }
.vx-card { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; color: var(--white); text-decoration: none; background: var(--ink); isolation: isolate; }
.vx-card-media { position: absolute; inset: 0; margin: 0; z-index: -2; }
.vx-card-media picture, .vx-card-media img { display: block; width: 100%; height: 100%; }
.vx-card-media img { object-fit: cover; transition: transform 1.1s cubic-bezier(.2, .7, .2, 1), filter .6s ease; filter: saturate(.9); }
.vx-card::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(23,23,23,.15) 0%, rgba(23,23,23,.05) 35%, rgba(23,23,23,.88) 100%); transition: background .5s ease; }
.vx-card-num { position: absolute; top: 22px; left: 24px; font-family: var(--display); font-size: 22px; letter-spacing: .04em; }
.vx-card-body { position: absolute; left: 24px; right: 24px; bottom: 24px; display: grid; gap: 10px; }
.vx-card-kicker { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.vx-card-title { font-family: var(--display); font-size: clamp(30px, 2.8vw, 44px); line-height: 1; text-transform: uppercase; }
.vx-card-line { font-size: 17px; line-height: 1.45; opacity: .88; max-height: 0; overflow: hidden; transition: max-height .6s ease, opacity .6s ease; }
.vx-card-go { position: absolute; top: 18px; right: 18px; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.5); transition: background .3s ease, border-color .3s ease, transform .3s ease; }
.vx-card-go .arrow { margin: 0; }
.vx-card:hover .vx-card-media img, .vx-card:focus-visible .vx-card-media img { transform: scale(1.07); filter: saturate(1.05); }
.vx-card:hover .vx-card-line, .vx-card:focus-visible .vx-card-line { max-height: 140px; }
.vx-card:hover .vx-card-go, .vx-card:focus-visible .vx-card-go { background: var(--red); border-color: var(--red); transform: rotate(45deg); }
.vx-card:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; }
@media (hover: none) { .vx-card-line { max-height: 140px; } }

/* ------------------------------------------------------------ flip the script */
.vx-flips .vx-head-note { color: var(--paper); }
.vx-flip-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.vx-flip { display: block; width: 100%; height: 250px; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; perspective: 1200px; }
.vx-flip-inner { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .75s cubic-bezier(.2, .8, .2, 1); }
.vx-flip[aria-pressed="true"] .vx-flip-inner { transform: rotateY(180deg); }
.vx-flip-face { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 26px; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.vx-flip-old { background: var(--ink-light); border: 1px solid var(--dark-line); color: var(--paper); }
.vx-flip-new { background: var(--red); color: var(--white); transform: rotateY(180deg); }
.vx-flip-tag { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
.vx-flip-text { font-family: var(--display); font-size: clamp(25px, 2.2vw, 33px); line-height: 1.08; text-transform: uppercase; }
.vx-flip-old .vx-flip-text { color: rgba(245,242,237,.82); }
.vx-flip-hint { font-size: 14px; font-weight: 600; display: inline-flex; gap: 8px; align-items: center; }
.vx-flip-hint::before { content: ''; width: 22px; height: 1px; background: currentColor; }
.vx-flip:hover .vx-flip-old { border-color: var(--red); }
.vx-flip:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; }
.vx-flip-count { margin-top: 26px; font-size: 15px; letter-spacing: .1em; text-transform: uppercase; opacity: .65; }

/* ------------------------------------------------------------- E + R = O lab */
.vx-ero-board { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 54px; position: relative; }
.vx-ero-step { position: relative; padding: 30px; border: 1px solid var(--line); background: var(--white); min-height: 330px; display: flex; flex-direction: column; gap: 18px; }
.vx-ero-step + .vx-ero-step::before { position: absolute; left: -42px; top: 50%; transform: translateY(-50%); font-family: var(--display); font-size: 40px; color: var(--red); content: '+'; }
.vx-ero-outcome::before { content: '=' !important; }
.vx-ero-letter { font-family: var(--display); font-size: 96px; line-height: .85; color: transparent; -webkit-text-stroke: 2px var(--red); }
.vx-ero-label { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.vx-chips { display: grid; gap: 10px; }
.vx-chip { text-align: left; padding: 14px 16px; border: 1px solid var(--line); background: transparent; font: inherit; font-size: 17px; font-weight: 600; cursor: pointer; transition: background .25s ease, color .25s ease, border-color .25s ease; color: var(--ink); }
.vx-chip:hover { border-color: var(--ink); }
.vx-chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.vx-toggle { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--ink); }
.vx-toggle button { padding: 14px; border: 0; background: transparent; font: inherit; font-size: 17px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; color: var(--ink); transition: background .25s ease, color .25s ease; }
.vx-toggle button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.vx-toggle button[data-ero-mode="respond"][aria-pressed="true"] { background: var(--red); color: var(--white); }
.vx-ero-response { font-size: 19px; line-height: 1.45; }
.vx-ero-outcome { transition: background .45s ease, color .45s ease, border-color .45s ease; }
.vx-ero-outcome[data-ero-tone="respond"] { background: var(--red); border-color: var(--red); color: var(--white); }
.vx-ero-outcome[data-ero-tone="respond"] .vx-ero-letter { -webkit-text-stroke-color: var(--white); }
.vx-ero-outcome[data-ero-tone="respond"] .vx-ero-label { color: rgba(255,255,255,.8); }
.vx-ero-outcome[data-ero-tone="react"] { background: var(--ink-light); border-color: var(--ink-light); color: var(--paper); }
.vx-ero-outcome[data-ero-tone="react"] .vx-ero-label { color: rgba(245,242,237,.6); }
.vx-ero-result { font-family: var(--display); font-size: clamp(32px, 3vw, 46px); line-height: 1.02; text-transform: uppercase; }
.vx-ero-result.is-changing, .vx-ero-response.is-changing { animation: vx-pop .45s ease; }
@keyframes vx-pop { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------- illustrated cards */
.vx-illos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.vx-illos.three { grid-template-columns: repeat(3, 1fr); }
.vx-illo figure { margin: 0 0 20px; aspect-ratio: 4 / 5; overflow: hidden; background: #161616; }
.vx-illo picture, .vx-illo img { display: block; width: 100%; height: 100%; }
.vx-illo img { object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.vx-illo:hover img { transform: scale(1.05); }
.vx-illo-num { font-family: var(--display); font-size: 18px; color: var(--red); letter-spacing: .06em; }
.vx-illo h3 { font-family: var(--display); font-size: clamp(26px, 2.2vw, 34px); line-height: 1.02; text-transform: uppercase; margin: 8px 0 10px; font-weight: 400; }
.vx-illo p { font-size: 17px; line-height: 1.5; opacity: .8; max-width: 34ch; }

/* ------------------------------------------------------------ episode strip */
.vx-eps { position: relative; display: grid; gap: 14px; align-content: start; }
.vx-mini-disc { position: absolute; right: -30px; top: -70px; width: 150px; height: 150px; border-radius: 50%; background: repeating-radial-gradient(circle, #111 0 2px, #262626 3px 4px); box-shadow: 0 20px 40px rgba(0,0,0,.25); animation: vx-spin 9s linear infinite; z-index: 0; }
.vx-mini-disc span { position: absolute; inset: 34%; border-radius: 50%; background: var(--red); }
.vx-mini-disc span::after { content: ''; position: absolute; inset: 42%; border-radius: 50%; background: var(--paper); }
@keyframes vx-spin { to { transform: rotate(360deg); } }
.vx-ep { position: relative; z-index: 1; display: grid; grid-template-columns: 180px 1fr; grid-template-rows: auto 1fr; column-gap: 20px; row-gap: 6px; align-items: start; padding: 12px; background: var(--white); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease; }
.vx-ep:hover, .vx-ep:focus-visible { transform: translateX(6px); border-color: var(--ink); box-shadow: -6px 0 0 var(--red); }
.vx-ep-thumb { grid-row: 1 / 3; position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink); }
.vx-ep-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vx-ep-play { position: absolute; inset: 0; margin: auto; width: 44px; height: 44px; border-radius: 50%; background: var(--red); color: var(--white); display: grid; place-items: center; font-size: 14px; }
.vx-ep-play svg { width: 16px; height: 16px; }
.vx-ep-meta { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--red); padding-top: 4px; }
.vx-ep-title { font-family: var(--display); font-size: 25px; line-height: 1.05; text-transform: uppercase; }

/* ------------------------------------------------------------ photo marquee */
.vx-marquee { overflow: hidden; padding: 18px 0; background: var(--ink); }
.vx-marquee-track { display: flex; width: max-content; animation: kinetic-scroll 70s linear infinite; }
.vx-marquee-track > div { display: flex; gap: 14px; padding-right: 14px; }
.vx-marquee figure { margin: 0; width: 320px; height: 230px; overflow: hidden; flex-shrink: 0; }
.vx-marquee picture, .vx-marquee img { display: block; width: 100%; height: 100%; }
.vx-marquee img { object-fit: cover; filter: grayscale(.25); transition: filter .4s ease; }
.vx-marquee figure:hover img { filter: none; }
.vx-marquee:hover .vx-marquee-track { animation-play-state: paused; }

/* ---------------------------------------------------------------- stat band */
.vx-stats { padding: 74px 0; }
.vx-stats-red { background: var(--red); color: var(--white); }
.vx-stats-ink { background: var(--ink); color: var(--paper); }
.vx-stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.vx-stat { display: grid; gap: 10px; align-content: start; border-top: 1px solid rgba(255,255,255,.35); padding-top: 22px; }
.vx-stat-num { font-family: var(--display); font-size: clamp(76px, 9vw, 140px); line-height: .85; }
.vx-stat-label { font-size: 20px; font-weight: 600; line-height: 1.3; max-width: 26ch; }
.vx-stat-source { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; opacity: .75; }

/* -------------------------------------------------------------------- films */
.vx-films { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.vx-films .film { aspect-ratio: 4 / 5; }
.vx-films .film video { width: 100%; height: 100%; object-fit: cover; }

/* --------------------------------------------------------- page placements */
.vx-section-dark-photo { position: relative; }
.service-photo { margin: 26px 0 0; aspect-ratio: 4 / 3; overflow: hidden; max-width: 460px; }
.service-photo picture, .service-photo img { display: block; width: 100%; height: 100%; }
.service-photo img { object-fit: cover; transition: transform 1.1s ease; }
.service-detail:hover .service-photo img { transform: scale(1.04); }
.contact-hero-photo { position: absolute; right: 0; top: 0; bottom: 0; width: 42%; margin: 0; z-index: 0; }
.contact-hero-photo picture, .contact-hero-photo img { display: block; width: 100%; height: 100%; }
.contact-hero-photo img { object-fit: cover; object-position: 50% 40%; }
.contact-hero-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ink) 0%, rgba(23,23,23,.35) 40%, rgba(23,23,23,0) 100%); }
.contact-hero { position: relative; overflow: hidden; }
.contact-hero .wrap { position: relative; z-index: 1; }
.program-art { margin: 34px 0 0; aspect-ratio: 16 / 9; overflow: hidden; }
.program-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pillar-illo { width: 86px; height: 86px; flex-shrink: 0; overflow: hidden; border-radius: 50%; margin: 0; border: 1px solid var(--dark-line); }
.pillar-illo picture, .pillar-illo img { display: block; width: 100%; height: 100%; }
.pillar-illo img { object-fit: cover; object-position: 50% 45%; transform: scale(1.35); }
.vx-section-head-center { text-align: left; }

/* ------------------------------------------------------- motion preferences */
.motion-paused .vx-marquee-track, .motion-paused .vx-mini-disc { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .vx-marquee-track, .vx-mini-disc { animation: none; }
  .vx-flip-inner { transition: none; transform: none !important; }
  .vx-flip-face { backface-visibility: visible; transform: none; transition: opacity .2s ease; }
  .vx-flip .vx-flip-new { opacity: 0; }
  .vx-flip[aria-pressed="true"] .vx-flip-new { opacity: 1; }
  .vx-flip[aria-pressed="true"] .vx-flip-old { opacity: 0; }
  .vx-card-media img, .vx-illo img { transition: none; }
  .vx-ero-result.is-changing, .vx-ero-response.is-changing { animation: none; }
}

/* ------------------------------------------------------------------ tablet */
@media (max-width: 1080px) {
  .vx-illos { grid-template-columns: repeat(2, 1fr); }
  .vx-cards.four { grid-template-columns: repeat(2, 1fr); }
  .vx-ero-board { grid-template-columns: 1fr; gap: 46px; }
  .vx-ero-step { min-height: 0; }
  .vx-ero-step + .vx-ero-step::before { left: 50%; top: -44px; transform: translateX(-50%); }
  .vx-flip-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ------------------------------------------------------------------- phone */
@media (max-width: 780px) {
  .vx-head { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 30px; }
  [data-vx-rail] { display: grid; grid-auto-flow: column; grid-template-columns: none !important; grid-auto-columns: 80%; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; padding-bottom: 14px; margin-inline: calc(var(--gutter, 20px) * -1); padding-inline: var(--gutter, 20px); scroll-padding-inline: var(--gutter, 20px); scrollbar-width: none; }
  [data-vx-rail]::-webkit-scrollbar { display: none; }
  [data-vx-rail] > * { scroll-snap-align: start; }
  .vx-flip { height: 230px; }
  .vx-stats { padding: 54px 0; }
  .vx-stats-grid { grid-template-columns: 1fr; gap: 30px; }
  .vx-films { grid-template-columns: 1fr; }
  .vx-films .film { aspect-ratio: 4 / 5; }
  .vx-ep { grid-template-columns: 130px 1fr; padding: 10px; column-gap: 14px; }
  .vx-ep-title { font-size: 21px; }
  .vx-mini-disc { width: 104px; height: 104px; top: -54px; right: -8px; }
  .vx-marquee figure { width: 230px; height: 170px; }
  .contact-hero-photo { position: relative; width: auto; height: 300px; margin: 0 calc(var(--gutter, 20px) * -1) 0; }
  .contact-hero-photo::after { background: linear-gradient(180deg, rgba(23,23,23,0) 40%, var(--ink) 100%); }
  .service-photo { max-width: none; }
  .vx-ero-letter { font-size: 72px; }
}

/* Review fixes */
.direction-section nav { margin-top: 52px; }
.vx-card::after { background: linear-gradient(180deg, rgba(23,23,23,.18) 0%, rgba(23,23,23,0) 28%, rgba(23,23,23,.55) 58%, rgba(23,23,23,.94) 100%); }
.vx-card-kicker { color: rgba(255,255,255,.88); display: inline-flex; align-items: center; gap: 10px; }
.vx-card-kicker::before { content: ''; width: 22px; height: 2px; background: var(--red); flex-shrink: 0; }
.vx-ero-step + .vx-ero-step::before { font-size: 56px; line-height: 1; }
.experience-title + .vx-cards, .about-body-work .vx-cards { margin-top: 48px; }
