/* ============================================================================
   Anamorphics — homepage only (index.php)
   Loaded after tokens -> kit -> site. Everything shared with case-studies.php
   lives in site.css; only the Concept-B hero is genuinely page-specific.
   ========================================================================= */

/* ---- Concept B: image-driven hero, backed by the smoke field ---- */
.heroB { position: relative; height: 100vh; min-height: 720px; overflow: hidden;
  border-bottom: 1px solid var(--line); }
.heroB__scrim { position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(to top, rgba(16,13,11,0.90) 0%, rgba(16,13,11,0.28) 46%, rgba(16,13,11,0.50) 100%); }
.heroB__top { position: absolute; top: 0; left: 0; right: 0; z-index: 2;
  display: flex; justify-content: space-between; padding: calc(var(--s-7) + 24px) var(--gutter) 0; }
.heroB__inner { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 0 var(--gutter) var(--s-8); }
.heroB__inner-wrap { max-width: var(--maxw); margin: 0 auto; }
.heroB__title { max-width: 18ch; margin-bottom: 28px; }
.heroB__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px;
  border-top: 1px solid var(--line); padding-top: 26px; }
.heroB__lede { font-family: var(--font-serif); font-style: italic; font-weight: 300;
  font-size: var(--fs-lg); line-height: 1.45; color: var(--fg); max-width: 44ch; }
.heroB__scroll { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--fg-3); white-space: nowrap; display: inline-flex; gap: 10px; align-items: center; }
.heroB__scroll .ln { width: 30px; height: 1px; background: var(--line-strong);
  display: inline-block; }
@media (max-width: 860px) {
  .heroB__row { flex-direction: column; align-items: flex-start; gap: 18px; }
}

/* Studio: the person. Same 1fr / 2fr split as the section heads above it, so
   the name sits under the eyebrows and the text under the headlines. */
/* The row of service-page links under the three Studio columns: same left edge as the columns. */
.am-wwd__more { padding: var(--s-7) var(--gutter) 0; }
.am-bio { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; padding: var(--s-8) var(--gutter) 0; margin-top: var(--s-8); border-top: 1px solid var(--line); }
.am-bio__who { display: flex; flex-direction: column; gap: 10px; }
.am-bio__name { font-family: var(--font-display); font-weight: 300; font-size: 36px; letter-spacing: -0.02em; margin: var(--s-3) 0 0; }
.am-bio__role { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--fg-2); }
.am-bio__body { max-width: 62ch; display: flex; flex-direction: column; gap: var(--s-4); }
.am-bio__body p { margin: 0; font-size: 16px; line-height: 1.65; color: var(--fg); }
.am-bio__body .am-bio__lede { font-family: var(--font-serif); font-style: italic; font-weight: 300; font-size: 24px; line-height: 1.4; }
@media (max-width: 980px) { .am-bio { grid-template-columns: 1fr; gap: 24px; } }

/* Clients: the full roll. Every name,
   alphabetical, in columns; a name with a Showcase page is a link and reads
   at full contrast. */
.am-roll { list-style: none; margin: 0; padding: 0 var(--gutter); columns: 4; column-gap: var(--s-7); }
.am-roll li { break-inside: avoid; padding: 9px 0; border-top: 1px solid var(--line);
  font-family: var(--font-display); font-weight: 300; font-size: 17px; line-height: 1.3; color: var(--fg-2); }
.am-roll a { color: var(--fg); text-decoration: none; display: flex; justify-content: space-between; gap: 12px;
  transition: color var(--dur-fast) var(--ease-out); }
.am-roll a span { color: var(--accent-500); transition: transform var(--dur-base) var(--ease-out); }
.am-roll a:hover { color: var(--accent-500); }
.am-roll a:hover span { transform: translateX(4px); }
/* The scroll-played cascade (js/client-roll.js sets --p arrival and --g glow on
   each name). Only under .am-roll--live, which the script adds when motion is on;
   without it the roll above is the whole story. The rule is redrawn as a ::before
   so it can draw in left to right and warm to the accent in the glow band. */
.am-roll--live li { --p: 0; --g: 0; position: relative; border-top-color: transparent;
  opacity: var(--p); transform-origin: 0 100%;
  transform: translate3d(0, calc((1 - var(--p)) * 54px), 0) scale(calc(0.92 + 0.08 * var(--p)));
  filter: blur(calc((1 - var(--p)) * 9px));
  color: color-mix(in oklab, var(--fg) calc(var(--g) * 100%), var(--fg-2)); }
.am-roll--live li::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px;
  background: color-mix(in oklab, var(--accent-500) calc(var(--g) * 85%), var(--line));
  transform: scaleX(var(--p)); transform-origin: 0 0; }
.am-roll--live a { color: color-mix(in oklab, var(--accent-500) calc(var(--g) * 100%), var(--fg)); }
.am-roll--live a:hover { color: var(--accent-500); }
@media (max-width: 1100px) { .am-roll { columns: 3; } }
@media (max-width: 760px)  { .am-roll { columns: 2; column-gap: var(--s-5); } .am-roll li { font-size: 15px; } }

/* Studio columns: the heading and a phrase in the copy link to the service page.
   The heading keeps its own look and gains an arrow; the copy links are underlined. */
.am-wwd__col-title a { color: inherit; text-decoration: none; }
.am-wwd__col-title a::after { content: "\2192"; display: inline-block; margin-left: 12px; font-size: 0.5em; vertical-align: middle;
  color: var(--fg-3); transition: transform var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out); }
.am-wwd__col-title a:hover { color: var(--accent); }
.am-wwd__col-title a:hover::after { color: var(--accent); transform: translateX(4px); }
.am-wwd__col-body a { color: var(--fg); }
