/* Case study pages (Nov 14 2026, Anh: "less like a blog page, more emphasis on the assets"). Loaded only by
   /case-studies/<client>; the banner, lockup and facts strip stay in style.css. Modelled on how Pentagram, Locomotive
   and Beaucoup lay out a project: a label in the left column, one statement in place of paragraphs, and media that
   runs edge to edge in changing widths. Tokens come from style.css (coal, ink, hairlines, --ease, --nav-h). */

.cx-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.cx .wrap, .cx-bleed { width: min(1080px, calc(100% - 48px)); margin-inline: auto; }   /* one column for the whole page, narrower than the nav (Anh, Nov 16 2026: "everything looks too big, limit the width") */
.cx-sec { padding-top: clamp(72px, 8vw, 120px); }
.cx-sec:target, #film:target { scroll-margin-top: calc(var(--nav-h) + 16px); }

/* label left, content right: the grid every text block on the page sits on */
.cx-row { display: grid; grid-template-columns: minmax(170px, 3fr) 9fr; gap: 20px 32px; align-items: start; }
.cx-label { margin: 0; display: flex; gap: 14px; align-items: baseline; color: var(--ink); font-size: 17px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.3; }
.cx-label .n { color: var(--ink-3); font-size: 13px; font-weight: 400; font-variant-numeric: tabular-nums; }
.cx-row > .cx-label { position: sticky; top: calc(var(--nav-h) + 28px); }
.cx-statement { margin: 0; color: var(--ink); font-size: clamp(24px, 2.9vw, 40px); font-weight: 300; line-height: 1.1; letter-spacing: -0.03em; text-wrap: balance; }
.cx-statement strong { font-weight: 900; letter-spacing: -0.045em; }
.cx-lead { margin: 0; color: var(--ink); font-size: clamp(20px, 2vw, 26px); font-weight: 300; line-height: 1.2; letter-spacing: -0.02em; max-width: 30ch; text-wrap: balance; }
.cx-lead strong { font-weight: 900; letter-spacing: -0.035em; }
.cx-note { margin: 24px 0 0; color: var(--ink-2); font-size: 16px; font-weight: 300; line-height: 1.55; max-width: 58ch; }
.cx-note a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.35); }
.cx-note a:hover { text-decoration-color: currentColor; }
.cx-head { margin-bottom: clamp(32px, 4vw, 56px); }

/* ---- the hero: the client's own landing-page field, redrawn in orthogonal-hero.js; their ground, our type ------ */
.cx-hero { position: relative; isolation: isolate; overflow: hidden; display: grid; align-items: center; min-height: clamp(560px, 80vh, 740px); padding: calc(var(--nav-h) + 36px) 0 84px; background: linear-gradient(to bottom, #24201d 0%, #24201d 58%, rgba(36,32,29,0) 100%); }   /* their ground, thinning out so ours shows through at the foot */
.cx-field { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; -webkit-mask-image: linear-gradient(to bottom, #000 74%, transparent 98%); mask-image: linear-gradient(to bottom, #000 74%, transparent 98%); }
.cx-hero .wrap { position: relative; z-index: 3; }
.cx-hero-copy { max-width: 600px; }
.cx-hero .cs-top { justify-content: flex-start; gap: 12px 22px; }
.cx-hero .cs-tags { margin-top: 30px; }
.cx-hero .cs-when { color: var(--ink-2); }
.cx-hero h1 { margin: 18px 0 0; font-weight: 900; font-size: clamp(36px, 4.3vw, 58px); line-height: .97; letter-spacing: -0.045em; }
.cx-hero h1 .thin { font-weight: 300; letter-spacing: -0.03em; }
.cx-hero .lede { margin: 22px 0 0; color: var(--ink-2); font-size: clamp(16px, 1.3vw, 18px); font-weight: 300; line-height: 1.5; max-width: 46ch; }
/* the card the front node carries: their Most called card, in our fonts */
.cx-api { position: absolute; left: 0; top: 0; z-index: 2; width: 300px; padding: 14px 16px 14px; border-radius: 7px; background: #211d1a; border: 1px solid rgba(247,246,241,.22); color: #f7f6f1; opacity: 0; pointer-events: none; will-change: transform, opacity;
  font-family: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace; font-size: 10.5px; letter-spacing: .09em; text-transform: uppercase; }
.cx-api::before { content: ""; position: absolute; inset: -3px; z-index: -1; pointer-events: none;   /* four corner ticks showing past the rounded corners */
  background: linear-gradient(#f7f6f1, #f7f6f1) 0 0 / 6px 6px no-repeat, linear-gradient(#f7f6f1, #f7f6f1) 100% 0 / 6px 6px no-repeat, linear-gradient(#f7f6f1, #f7f6f1) 0 100% / 6px 6px no-repeat, linear-gradient(#f7f6f1, #f7f6f1) 100% 100% / 6px 6px no-repeat; }
.cx-api::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 6px; background: #211d1a; }
.cx-api .hd { display: flex; justify-content: space-between; color: #a9a39b; }
.cx-api .bd { display: flex; align-items: center; gap: 12px; margin: 12px 0 12px; padding-bottom: 13px; border-bottom: 1px solid rgba(247,246,241,.14); }
.cx-api .bd canvas { flex: none; width: 44px; height: 44px; background: rgba(247,246,241,.05); }
.cx-api .bd div { min-width: 0; }
.cx-api .bd b { display: block; font-family: "Satoshi", ui-sans-serif, sans-serif; font-size: 21px; font-weight: 500; letter-spacing: -0.02em; text-transform: none; line-height: 1.1; }
.cx-api .bd span { display: block; margin-top: 4px; color: #a9a39b; font-family: "Satoshi", ui-sans-serif, sans-serif; font-size: 12.5px; letter-spacing: 0; text-transform: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cx-api .ft { display: grid; grid-template-columns: 1fr auto; gap: 9px 12px; }
.cx-api .ft span:nth-child(even) { text-align: right; }
.cx-api .ft .cat::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 8px; background: #f7f6f1; vertical-align: 1px; }
.cx-api.is-swap .hd, .cx-api.is-swap .bd, .cx-api.is-swap .ft { animation: cx-swap .5s var(--ease) both; }
@keyframes cx-swap { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }
.cx-facts-row .cs-facts { margin-bottom: 44px; border-top: 0; padding-top: 6px; }
.cx .cta-band h2 { font-size: clamp(38px, 5.4vw, 72px); }

/* ---- the film: edge to edge, a silent teaser until someone presses play ---------------------------------------- */
.cx-film { padding-top: 0; }
.cx-stage { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: var(--device-black); border: 1px solid var(--line); }
.cx-stage video, .cx-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.cx-stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; transition: opacity .4s;
  background: linear-gradient(to top, rgba(12,12,13,.55), transparent 34%); }
.cx-play { position: absolute; inset: 0; z-index: 2; display: grid; place-items: end start; padding: clamp(14px, 2.2vw, 34px); background: none; border: 0; cursor: pointer; font: inherit; color: var(--coal); }
.cx-play .pill { display: inline-flex; align-items: center; gap: 10px; padding: 5px 16px 5px 5px; border-radius: 999px; background: var(--ink); font-size: 13.5px; font-weight: 700; letter-spacing: .02em; transition: transform .5s var(--ease), background .25s; }
.cx-play .disc { width: 34px; height: 34px; border-radius: 50%; background: var(--coal); color: var(--ink); display: grid; place-items: center; }
.cx-play .disc svg { width: 12px; height: 12px; fill: currentColor; margin-left: 2px; }
.cx-play .d { color: rgba(12,12,13,.58); font-weight: 500; font-variant-numeric: tabular-nums; }
.cx-play .pill { transform-origin: 0 100%; }
.cx-play:hover .pill { transform: scale(1.06); background: var(--ink-hover); }
a.cx-play { text-decoration: none; }   /* a film that lives on the client's own launch post opens there instead of playing here */
.cx-play:focus-visible { outline: none; }
.cx-play:focus-visible .pill { outline: 2px solid var(--ink); outline-offset: 5px; }
.cx-stage.is-playing::after, .cx-stage.is-playing .cx-play { opacity: 0; pointer-events: none; }
.cx-under { display: grid; gap: 0; margin-top: 28px; }
.cx-under .transcript { margin-top: 0; }
.cx-under .transcript p { color: var(--ink-2); max-width: 72ch; line-height: 1.6; }

/* ---- timeline: four dates on one hairline ------------------------------------------------------------------- */
.cx-timeline { list-style: none; margin: clamp(40px, 5vw, 72px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-strong); }
.cx-timeline li { position: relative; padding: 20px 16px 0 0; }
.cx-timeline li::before { content: ""; position: absolute; left: 0; top: -5px; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); }
.cx-timeline li:last-child::before { background: var(--grad); }   /* launch day wears the orb, as the Launch tag does */
.cx-timeline time { display: block; color: var(--ink); font-size: clamp(19px, 1.8vw, 24px); font-weight: 900; letter-spacing: -0.035em; line-height: 1; }
.cx-timeline span { display: block; margin-top: 8px; color: var(--ink-2); font-size: 14.5px; }

/* ---- frames: two rows of stills that slide against each other as the page scrolls (case-study.js) -------------- */
.cx-frames { padding-top: clamp(56px, 6vw, 96px); }
.cx-frames .cx-bleed { overflow: hidden; border-radius: var(--radius); -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent); }   /* the rows run inside the column and fade at its edges */
.cx-reel { display: flex; gap: 14px; width: max-content; margin: 0; padding: 0; list-style: none; will-change: transform; transform: translate3d(-4vw, 0, 0); }
.cx-reel + .cx-reel { margin-top: 14px; transform: translate3d(-34vw, 0, 0); }
.cx-reel li { flex: none; width: clamp(210px, 23vw, 330px); aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--coal-3); border: 1px solid var(--line); }
.cx-reel img, .cx-reel video { width: 100%; height: 100%; object-fit: cover; display: block; }   /* each tile is a short loop that plays a whole graphic and rests on its settled frame (Anh, Nov 16 2026: no mid-frame stills) */

/* ---- what we made: an index in display type; a still follows the pointer over each row ------------------------- */
.cx-index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.cx-index a { display: grid; grid-template-columns: 48px 1fr auto; gap: 16px; align-items: baseline; padding: clamp(16px, 1.7vw, 22px) 0; border-bottom: 1px solid var(--line); color: inherit; transition: opacity .3s var(--ease), padding-left .5s var(--ease); }
.cx-index .n { color: var(--ink-3); font-size: 13px; font-variant-numeric: tabular-nums; }
.cx-index .name { font-size: clamp(25px, 3.3vw, 44px); font-weight: 900; letter-spacing: -0.04em; line-height: 1; }
.cx-index .spec { color: var(--ink-2); font-size: 15px; text-align: right; }
.cx-index a:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 4px; }
@media (hover: hover) {
  .cx-index:has(a:hover) a:not(:hover) { opacity: .35; }
  .cx-index a:hover { padding-left: 14px; }
}
.cx-peek { position: fixed; left: 0; top: 0; z-index: 40; width: min(340px, 30vw); aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; pointer-events: none;
  border: 1px solid var(--line-strong); background: var(--coal-3); opacity: 0; transform: translate3d(var(--x, 0px), var(--y, 0px), 0) scale(.94); transition: opacity .25s var(--ease); }
.cx-peek.is-on { opacity: 1; }
.cx-peek img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---- end-to-end launch media support: a grid of four tiles, each a loop or a still with its name under it ------- */
.cx-quad { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 14px; }
.cx-quad figure { margin: 0; min-width: 0; }
.cx-tile { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--device-black); border: 1px solid var(--line); }
.cx-tile video, .cx-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.cx-quad figcaption small { display: block; margin-top: 8px; color: var(--ink-3); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-variant-numeric: tabular-nums; }

/* ---- founder-led interviews: two stages side by side, each swaps to its own player on press ----------------------- */
.cx-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cx-duo figure { margin: 0; min-width: 0; }
.cx-duo figcaption, .cx-quad figcaption { padding: 16px 2px 0; color: var(--ink-2); font-size: 15px; line-height: 1.5; max-width: 44ch; }
.cx-duo figcaption strong, .cx-quad figcaption strong { display: block; margin-bottom: 4px; color: var(--ink); font-size: 20px; font-weight: 900; letter-spacing: -0.03em; line-height: 1.1; }
.cx-duo .cx-play { padding: clamp(10px, 1.2vw, 14px); }
.cx-duo .cx-play .pill { gap: 8px; padding: 4px 13px 4px 4px; font-size: 12.5px; }   /* the half-width stages take a smaller pill (Anh, Nov 16 2026: "play button way too big") */
.cx-duo .cx-play .disc { width: 28px; height: 28px; }
.cx-duo .cx-play .disc svg { width: 10px; height: 10px; }

/* ---- benchmark cards: one large, four small; each opens full size ---------------------------------------------- */
.cx-bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cx-zoom { position: relative; display: block; border-radius: var(--radius); overflow: hidden; background: var(--coal-3); border: 1px solid var(--line); cursor: zoom-in; }
.cx-zoom img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s var(--ease); }
.cx-zoom:hover img { transform: scale(1.03); }
.cx-zoom:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.cx-bento .cx-zoom { aspect-ratio: 16 / 9; }
.cx-bento .cx-zoom:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }

/* ---- on set: one wide frame, then three columns that drift at different speeds --------------------------------- */
.cx-wide { position: relative; margin: 0; }
.cx-wide .cx-zoom { aspect-ratio: 21 / 9; }
.cx-wide .cx-zoom img { object-position: 50% 42%; }
.cx-wide figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 64px 22px 18px; background: linear-gradient(to top, rgba(12,12,13,.86), transparent); color: var(--ink); font-size: 15px; pointer-events: none; border-radius: 0 0 var(--radius) var(--radius); }
.cx-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: start; margin-top: 14px; padding-bottom: 40px; }
.cx-col { display: grid; gap: 14px; will-change: transform; }
.cx-col:nth-child(2) { margin-top: clamp(48px, 9vw, 150px); }
.cx-col:nth-child(3) { margin-top: clamp(16px, 3vw, 48px); }
.cx-shot { margin: 0; }
.cx-shot figcaption { padding: 12px 2px 0; color: var(--ink-3); font-size: 13px; line-height: 1.4; }

/* the set photos (Nov 16 2026): Anh's three first (one wide, two beside each other), then the earlier ones he asked to keep
   (three upright, two beside each other); no captions, each opens full size */
.cx-set { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.cx-set .cx-shot { grid-column: span 3; }
.cx-set .cx-zoom { aspect-ratio: 3 / 2; }
.cx-set .is-wide { grid-column: 1 / -1; }
.cx-set .is-wide .cx-zoom { aspect-ratio: 16 / 9; }
.cx-set .is-wide img { object-position: 50% 58%; }
.cx-set .is-tall { grid-column: span 2; }
.cx-set .is-tall .cx-zoom { aspect-ratio: 3 / 4; }

/* ---- numbers ----------------------------------------------------------------------------------------------- */
.cx-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 24px; margin: 0; padding-top: 28px; border-top: 1px solid var(--line-strong); }
.cx-nums div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 12px; margin: 0; }
.cx-nums dd { margin: 0; color: var(--ink); font-size: clamp(44px, 5.4vw, 76px); white-space: nowrap; font-weight: 900; letter-spacing: -0.055em; line-height: .86; font-variant-numeric: tabular-nums; }
.cx-nums dd small { margin-left: 8px; font-size: .26em; font-weight: 700; letter-spacing: -0.01em; color: var(--ink-2); }
.cx-nums dt { color: var(--ink-2); font-size: 15px; line-height: 1.4; max-width: 22ch; }
/* four across for a results row (Fastlane, Nov 16 2026): the total is the statement above, each medium gets a number */
.cx-nums.is-4 { grid-template-columns: repeat(4, 1fr); gap: 32px 20px; margin-top: clamp(36px, 4.5vw, 60px); }
.cx-nums.is-4 dd { font-size: clamp(34px, 3.7vw, 52px); letter-spacing: -0.05em; line-height: .9; }
.cx-nums.is-4 dd small { display: block; margin: 8px 0 0; font-size: 13px; font-weight: 500; letter-spacing: 0; }
.cx-nums.is-4 div { flex-direction: column; justify-content: flex-start; gap: 18px; }   /* the platform's mark on top, its number under it (Anh, Nov 16 2026: "use the logo") */
.cx-nums.is-4 dt { max-width: none; line-height: 0; display: flex; gap: 12px; }   /* a number counted on two platforms carries both marks */
.cx-logo { display: block; width: 26px; height: 26px; fill: var(--ink); }

/* ---- credits ----------------------------------------------------------------------------------------------- */
.cx-credits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 24px; margin: 0; }
.cx-credits div { margin: 0; padding-top: 16px; border-top: 1px solid var(--line); }
.cx-credits dt { color: var(--ink-3); font-size: 13px; }
.cx-credits dd { margin: 8px 0 0; color: var(--ink); font-size: 17px; font-weight: 700; line-height: 1.45; letter-spacing: -0.015em; }
.cx-credits dd a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.3); }
.cx-credits dd a:hover { text-decoration-color: currentColor; }
.cx-about { margin: 40px 0 0; color: var(--ink-2); font-size: 16px; font-weight: 300; line-height: 1.6; max-width: 70ch; }
.cx-about a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.35); }
.cx-faq { padding-top: clamp(72px, 8vw, 120px); }
.cx-faq .faq-item .q { font-size: clamp(20px, 2.3vw, 30px); }
.cx-faq .faq-item summary { padding: 22px 0; }
.cx-faq .faq { margin-top: 0; }
.cx-end { padding: clamp(64px, 7vw, 100px) 0 0; }
.cx-back { display: inline-flex; align-items: center; gap: 12px; color: var(--ink-2); font-size: 12.5px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; transition: color .25s; }
.cx-back:hover { color: var(--ink); }
.cx-back svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---- the image viewer --------------------------------------------------------------------------------------- */
.cx-lb { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(0,0,0,.94); color: var(--ink); }
.cx-lb::backdrop { background: rgba(0,0,0,.6); }
.cx-lb figure { margin: 0; height: 100%; display: grid; grid-template-rows: minmax(0, 1fr) auto; justify-items: center; align-items: center; padding: 64px 72px 22px; }
.cx-lb img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 16px; display: block; }
.cx-lb figcaption { padding-top: 14px; color: var(--ink-2); font-size: 14px; text-align: center; min-height: 1.4em; }
.cx-lb button { position: absolute; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; background: rgba(12,12,13,.6); color: var(--ink); border: 1px solid var(--line-strong); transition: border-color .25s, background .25s; }
.cx-lb button:hover { border-color: var(--ink); background: rgba(255,255,255,.06); }
.cx-lb button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cx-lb .x { top: 14px; right: 16px; }
.cx-lb .prev { left: 16px; top: 50%; margin-top: -22px; }
.cx-lb .next { right: 16px; top: 50%; margin-top: -22px; }

@media (max-width: 820px) {
  .cx-row { grid-template-columns: 1fr; }
  .cx-facts-row .cs-facts { grid-template-columns: 1fr 1fr; gap: 20px 18px; }
  .cx-hero { display: block; min-height: 0; padding: calc(var(--nav-h) + 28px) 0 470px; }   /* the field sits under the copy on a phone */
  .cx-hero-copy { max-width: none; }
  .cx-row > .cx-label { position: static; }
  .cx-timeline { grid-template-columns: repeat(2, 1fr); row-gap: 34px; border-top: 0; }
  .cx-timeline li { border-top: 1px solid var(--line-strong); }
  .cx-index a { grid-template-columns: 30px 1fr; }
  .cx-index .spec { grid-column: 2; text-align: left; }
  .cx-quad { grid-template-columns: 1fr; gap: 26px; }
  .cx-duo { grid-template-columns: 1fr; gap: 28px; }
  .cx-set { gap: 8px; }
  .cx-set .is-wide .cx-zoom { aspect-ratio: 4 / 3; }
  .cx-bento { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cx-wide .cx-zoom { aspect-ratio: 4 / 3; }
  .cx-cols { display: block; columns: 2; column-gap: 10px; margin-top: 10px; padding-bottom: 0; }
  .cx-col { display: contents; }
  .cx-shot { break-inside: avoid; margin: 0 0 10px; }
  .cx-nums { grid-template-columns: repeat(2, 1fr); }
  .cx-nums.is-4 { grid-template-columns: repeat(2, 1fr); }
  .cx-credits { grid-template-columns: 1fr; }
  .cx-lb figure { padding: 64px 12px 18px; }
  .cx-lb .prev, .cx-lb .next { top: auto; bottom: 14px; margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .cx-zoom img, .cx-play .pill, .cx-index a { transition: none; }
  .cx-api.is-swap .hd, .cx-api.is-swap .bd, .cx-api.is-swap .ft { animation: none; }
}

/* ---- the list row, second pass (Anh, Nov 16 2026): no arrow, the client's marks top right, a clip for the thumbnail,
   and the client's own field fading in from the right (orthogonal-hero.js mounts it on canvas[data-ortho-field]) ---- */
.cs-row { grid-template-columns: minmax(240px, 36%) 1fr; position: relative; isolation: isolate; overflow: hidden; }
.cs-row > .cs-thumb, .cs-row > .cs-body { position: relative; z-index: 1; }
.cs-field { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: .5; transition: opacity .6s var(--ease);
  -webkit-mask-image: linear-gradient(to right, transparent 54%, #000 100%); mask-image: linear-gradient(to right, transparent 54%, #000 100%); }
.cs-row:hover .cs-field, .cs-row:focus-visible .cs-field { opacity: .85; }
.cs-thumb video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
/* vignette over the looping thumb: darkens the edges so the frame sits into the card; the duration pill stays above it */
.cs-thumb::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; border-radius: inherit;
  background: radial-gradient(ellipse 75% 70% at 50% 45%, transparent 45%, rgba(0,0,0,.55) 100%); box-shadow: inset 0 0 40px rgba(0,0,0,.35); }
.cs-thumb .cs-dur { z-index: 2; }
.cs-head { display: flex; align-items: center; justify-content: space-between; gap: 10px 18px; flex-wrap: wrap; }
.cs-lock { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); }
.cs-lock img { height: 24px; width: auto; display: block; }
.cs-lock .wm { font-weight: 700; font-size: 16px; letter-spacing: -0.01em; line-height: 1; }
.cs-lock .yc { flex: none; width: 15px; height: 15px; border-radius: 2px; display: block; }
@media (max-width: 820px) {
  .cs-row { grid-template-columns: 1fr; }
  .cs-field { -webkit-mask-image: linear-gradient(to bottom, transparent 50%, #000 100%); mask-image: linear-gradient(to bottom, transparent 50%, #000 100%); }
}

/* ---- pieces the second case study needed (Fastlane, Nov 16 2026): three dates on the hairline when a job has three,
   and shorts as a row of four upright stages. Each client's own look lives in theme-<client>.css, loaded after this. ---- */
.cx-timeline.is-3 { grid-template-columns: repeat(3, 1fr); }
.cx-quad.is-shorts { grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cx-quad.is-shorts .cx-stage { aspect-ratio: 9 / 16; border-radius: var(--radius); }
.cx-quad.is-shorts .cx-play { padding: 10px; }
.cx-quad.is-shorts .cx-play .pill { gap: 8px; padding: 4px 12px 4px 4px; font-size: 12.5px; }
.cx-quad.is-shorts .cx-play .disc { width: 28px; height: 28px; }
.cx-quad.is-shorts .cx-play .disc svg { width: 10px; height: 10px; }
.cx-quad.is-shorts figcaption { font-size: 14px; }
.cx-quad.is-shorts figcaption strong { font-size: 17px; }
/* the Fastlane list card: their lockup is one image (mark and wordmark), and their light comes in from the top right, kept low */
.cs-row.is-fastlane .cs-lock img { height: 17px; }
.cs-row.is-fastlane .cs-field { opacity: .5; }
.cs-row.is-fastlane:hover .cs-field, .cs-row.is-fastlane:focus-visible .cs-field { opacity: .75; }
@media (max-width: 820px) {
  .cx-quad.is-shorts { grid-template-columns: 1fr 1fr; gap: 22px 10px; }
  .cx-timeline.is-3 { grid-template-columns: repeat(3, 1fr); row-gap: 0; border-top: 1px solid var(--line-strong); }
  .cx-timeline.is-3 li { border-top: 0; }
}

/* ---- the Fastlane hero (Nov 16 2026). Only the hero takes the client's look; the page under it is ours (Anh: "go back
   to what it was before with Lyra, and only themed hero", "only subtle"). Their landing page is white and hot pink, which
   was too bright here, so the hero borrows their footer instead ("use their footer for now until they come up with new
   landing page"): the dark cap with a pink arc under it, the car, the ghost of their mark, on their plum, which thins
   out so our ground shows at the foot. Our type on top and the client's words under the lede; nothing on the right
   but their mark (Anh took the deck of swiping cards out the same day). footer-car and mark-ghost are their files. ---- */
.cx-hero.fl-hero { display: block; min-height: 0; padding: calc(var(--nav-h) + clamp(170px, 19.5vw, 280px)) 0 clamp(36px, 4.5vw, 64px);
  background: linear-gradient(to bottom, #1a0a1e 0%, #1a0a1e 56%, rgba(26,10,30,0) 100%); }
.fl-scene { position: absolute; inset: 0 0 auto 0; z-index: 0; height: clamp(440px, 47vw, 680px); overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 54%, transparent 96%); mask-image: linear-gradient(to bottom, #000 0, #000 54%, transparent 96%); }
.fl-scene-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; opacity: .9; filter: saturate(.8) sepia(.15) hue-rotate(-25deg) brightness(.86); }
.fl-scene-mark { position: absolute; right: max(-60px, calc(50% - 800px)); top: 54%; width: clamp(340px, 44vw, 720px); height: auto; transform: translateY(-50%); opacity: .12; mix-blend-mode: overlay; filter: drop-shadow(0 0 40px rgba(255,255,255,.4)); }
.fl-scene::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to bottom, rgba(26,10,30,.3) 0%, rgba(26,10,30,.42) 30%, rgba(26,10,30,.8) 52%, rgba(26,10,30,.93) 76%, rgba(26,10,30,.95) 100%); }
.fl-scene-cap { position: absolute; left: 50%; z-index: 2; width: 160%; height: 560px; top: calc(var(--nav-h) + clamp(30px, 4vw, 58px) - 560px); transform: translateX(-50%); border-radius: 50%; background: #0c0a0e;
  box-shadow: 0 1.5px 2px rgba(255,160,222,.85), 0 6px 18px 1px rgba(255,0,135,.55), 0 18px 46px 2px rgba(255,0,135,.22), 0 30px 80px 6px rgba(238,124,30,.1); }   /* the arc, at about half the strength of theirs */
.fl-hero .cs-brand { padding: 9px 15px; }
.fl-hero .cs-brand img { height: 15px; }
/* the client's words in the hero, under the lede (Anh, Nov 16 2026: "add Anish's testimony at the top") */
.cx-hero-quote { margin: 26px 0 0; padding: 20px 0 0; max-width: 54ch; border-top: 1px solid var(--line-strong); }   /* plain text under a hairline, not a card (Anh, Nov 16 2026: "this doesnt need to be in a card") */
.cx-hero-quote blockquote { margin: 0; }
.cx-hero-quote blockquote p { margin: 0; color: var(--ink); font-size: 16px; font-weight: 400; line-height: 1.5; text-wrap: pretty; }
.cx-hero-quote figcaption { display: flex; align-items: center; gap: 11px; margin-top: 14px; color: var(--ink-2); font-size: 13.5px; line-height: 1.3; }
.cx-hero-quote figcaption img { flex: none; width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line-strong); }
.cx-hero-quote figcaption b { display: block; color: var(--ink); font-size: 14.5px; font-weight: 700; }
@media (max-width: 820px) {
  .cx-hero.fl-hero { padding: calc(var(--nav-h) + 150px) 0 32px; }
  .fl-scene { height: 430px; }
  .fl-scene-bg { object-position: 22% 38%; }
  .fl-scene-mark { right: -90px; top: 46%; width: 300px; }
  .fl-scene-cap { width: 230%; }
}

/* ---- the list page hero: a slow nebula in the Studio's own colours behind the title (Anh, Nov 16 2026: "can the hero
   page for this have a nebula like effect"); nebula.js draws it, the mask lets it die away before the cards ---- */
.cs-hero { position: relative; isolation: isolate; overflow: hidden; }
.cs-nebula { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; display: block; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 52%, transparent 100%); mask-image: linear-gradient(to bottom, #000 0%, #000 52%, transparent 100%); }
.cs-hero .wrap { position: relative; }
.cs-hero.page-hero { padding-bottom: 96px; }
