/* Portfolio (Work) pages — case rows: client + facts + client voice, side by side.
   Layers on top of tech.css, which already supplies the hero, stat band and contact. */

.wk-list { margin-top: 8px; }

/* Three columns separated by hairlines, exactly as the case reads: who they are,
   what the engagement looked like, what they said about it. */
.wk-case { display: grid; grid-template-columns: 1.73fr 1fr 1fr; align-items: stretch; padding: 0 0 64px; margin-bottom: 64px; border-bottom: 1px solid var(--card-border); }
.wk-list .wk-case:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.wk-col { display: flex; flex-direction: column; min-width: 0; padding: 0 32px; }
.wk-col:first-child { padding-left: 0; }
.wk-col:last-child { padding-right: 0; }
.wk-col + .wk-col { border-left: 1px solid var(--card-border); }

/* the strip above the hairline: industry + country on the left column, platforms on the middle one */
/* Fixed height, not min-height: the three columns hold different things (text +
   flag / platform icons / nothing) and a min-height let each one settle at its own
   size, so the rule underneath sat lower in the first column than in the other two. */
.wk-cap { display: flex; align-items: center; gap: 8px; height: 44px; padding-bottom: 16px; margin-bottom: 32px; border-bottom: 1px solid var(--card-border); }
.wk-col:first-child .wk-cap { justify-content: space-between; }
.wk-tag { font-size: var(--fs-p-small); color: var(--ink); }
.wk-country { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-p-small); color: var(--ink); }
.wk-flag { width: 20px; height: 14px; border-radius: var(--r-pill); flex-shrink: 0; box-shadow: 0 0 0 1px rgba(4,17,58,0.10); }
.wk-plat { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.wk-preview { display: inline-flex; align-items: center; gap: var(--s-1); margin-left: auto;
  background: #fff; border-radius: var(--r-sm); padding: var(--s-1) var(--s-2);
  font-size: var(--fs-btn-sm); font-weight: 500; color: var(--ink); box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur), transform var(--dur) var(--ease); }
.wk-preview svg { width: 14px; height: 14px; flex-shrink: 0; transition: transform var(--dur-morph) var(--ease); }
.wk-preview:hover { box-shadow: var(--shadow); }
.wk-preview:hover svg { transform: rotate(45deg); }

.wk-col h3 { font-size: var(--fs-h2-bigger); font-weight: 400; line-height: var(--lh-h2-bigger); color: var(--ink); margin-bottom: 24px; overflow-wrap: break-word; }
.wk-col h3 + p { font-size: var(--fs-p-small); line-height: 1.65; color: var(--text); margin: 0; }

/* Facts — one row per number, hairline-separated so they scan like a spec sheet. */
.wk-fact { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--card-border); }
.wk-fact:last-child { border-bottom: none; padding-bottom: 0; }
/* the small tile of the same family: 24 in a 48px tile is 16 in a 32px one */
.wk-fact .wk-ic > svg { width: 16px; height: 16px; }
.wk-fact .wk-ic { width: 32px; height: 32px; flex-shrink: 0; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--amber-soft); color: var(--ink); }
.wk-fact p { font-size: var(--fs-p-small); line-height: 1.4; color: var(--text-dim); margin: 0; }
.wk-fact b { font-weight: 600; color: var(--ink); }

/* Client voice */
.wk-quote { font-size: var(--fs-p); font-style: italic; line-height: 1.55; color: var(--ink); margin: 0 0 auto; }
.wk-by { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--card-border); }
.wk-by b { display: inline-block; font-size: var(--fs-descriptor); font-weight: 700; color: var(--ink); margin-right: 8px; }
.wk-stars { display: inline-flex; align-items: center; gap: 2px; vertical-align: middle; }
/* Clutch's stars in Clutch's red, the same call the homepage and Work Master
   already took — amber here reads as our own accent rating our own work. */
.wk-stars svg { width: 13px; height: 12px; color: var(--clutch-red); }   /* the design's star is 11:10, not square */
.wk-stars svg.off { color: var(--light-border); }
.wk-stars small { margin-left: 7px; font-size: var(--fs-p-smallest); color: var(--muted); }
.wk-by > small { display: block; font-size: var(--fs-p-smallest); line-height: var(--lh-h6); color: var(--muted); margin-top: 4px; }

/* Shown instead of a quote when the client did not leave one publicly. */
.wk-note { margin-top: auto; border: 1px solid var(--card-border); border-radius: var(--r); background: var(--grad-card); padding: 24px; }
.wk-note p { font-size: var(--fs-p-small); line-height: 1.5; color: var(--text); margin: 0 0 16px; }
.wk-note ul { display: flex; flex-wrap: wrap; gap: 7px; list-style: none; margin: 0; padding: 0; }
.wk-note li { font-size: var(--fs-p-smallest); font-weight: 500; color: var(--ink); background: #fff; border: 1px solid var(--card-border); border-radius: var(--r-pill); padding: 5px 16px; }
/* Roles, when the engagement is defined by the seniority we placed rather than a headcount. */
.wk-roles { display: flex; flex-wrap: wrap; gap: 7px; list-style: none; margin: 0; padding: 0; }
.wk-roles li { font-size: var(--fs-p-smallest); font-weight: 600; color: var(--ink); background: var(--amber-soft); border-radius: var(--r-pill); padding: 5px 16px; }

/* ══ Project showcases (tech / agency portfolios) ══════════════════════════ */

.wk-shot { display: block; background: var(--grad-card); overflow: hidden; }
.wk-shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
/* Where a project has a motion reel it takes the still's place in the same
   frame, so the grid keeps its rhythm whether a clip exists or not. */
.wk-shot video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }

/* Lead project: the story on the left, the product on the right. */
.wk-feat { display: grid; grid-template-columns: 0.92fr 1.18fr; gap: 48px; align-items: center; margin-bottom: 64px; }
.wk-feat .wk-shot { aspect-ratio: 16 / 10; border: 1px solid var(--card-border); border-radius: var(--r-lg); }
.wk-feat h2 { font-size: var(--fs-h2-bigger); font-weight: 400; line-height: var(--lh-h2-bigger); color: var(--ink); margin-bottom: 16px; }
.wk-feat > div > p { font-size: var(--fs-p-small); line-height: 1.65; color: var(--text); margin: 0 0 24px; }
.wk-feat .wk-quote { font-size: var(--fs-p-small); border-left: 2px solid var(--amber); padding-left: 24px; margin: 0 0 24px; }

.wk-projs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.wk-proj { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--card-border); border-radius: var(--r-lg); overflow: hidden;
  transition: box-shadow var(--dur) ease, transform var(--dur) ease; }
.wk-proj:hover { box-shadow: var(--shadow); }
.wk-proj .wk-shot { aspect-ratio: 16 / 10; border-bottom: 1px solid var(--card-border); }
.wk-proj-body { display: flex; flex-direction: column; flex: 1; padding: 24px 32px 32px; }
.wk-proj-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.wk-proj h3 { font-size: var(--fs-h4); font-weight: 500; line-height: var(--lh-h4); color: var(--ink); margin-bottom: 8px; }
.wk-proj p { font-size: var(--fs-p-small); line-height: 1.6; color: var(--text); margin: 0 0 24px; }
.wk-svc { display: flex; flex-wrap: wrap; gap: 7px; list-style: none; margin: auto 0 0; padding: 0; }
.wk-svc li { font-size: var(--fs-p-smallest); color: var(--muted-text); background: var(--off-white); border-radius: var(--r-pill); padding: 5px 16px; }

/* ══ Case studies hub ══════════════════════════════════════════════════════ */

/* The one engagement with published outcome numbers gets a panel of its own:
   the story on the left, what it actually moved on the right. */
/* ── The featured case (1354:119) ─────────────────────────────────────────────
   1280 at r24 over a hairline: an 902 article beside a 376 stats panel. The
   article holds a category/country row on a rule, the write-up, the client's
   review in the shared Clutch card, and the way through to the full study. */
.cs-hero-case { display: grid; grid-template-columns: minmax(0, 1fr) 376px; border: 1px solid var(--card-border); border-radius: var(--r-lg); background: #fff; overflow: hidden; }
.cs-hero-body { padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-4); }
.cs-case-info { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3);
  padding-bottom: var(--s-1); border-bottom: 1px solid var(--card-border); font-size: var(--fs-p-small); color: var(--ink); }
.cs-case-info .wk-country { display: inline-flex; align-items: center; gap: var(--s-1); font-size: var(--fs-p-small); color: var(--ink); }
.cs-hero-body h3 { line-height: var(--lh-h3); font-size: var(--fs-h3); font-weight: 400; color: var(--ink); margin: 0; }
.cs-hero-body > p { font-size: var(--fs-p-small); line-height: 1.8; color: var(--text-dim); margin: 0; }
/* the review is the Clutch card from base.css, without its border — the frame
   draws the panel on the tint alone (1354:119 › Review Content Container) */
.testi.cs-quote { border-color: transparent; }
.cs-hero-body .link-all { align-self: flex-start; font-size: var(--fs-p-small); }

/* the payoff column: "Improvements", then the three numbers the client reported */
.cs-res { display: flex; flex-direction: column; justify-content: center; gap: var(--s-5); padding: var(--s-5);
  background: var(--grad-card); border-left: 1px solid var(--card-border); text-align: center; }
.cs-res h3 { line-height: var(--lh-h3); font-size: var(--fs-h3); font-weight: 400; color: var(--ink); }
/* no tabular-nums here: it gives the comma and the plus a full digit advance,
   which at 72px reads as "15 , 000 +". The stat rows keep it because they
   animate and would jitter without it; this number does not move. */
.cs-res div b { display: block; line-height: 1; font-size: var(--fs-h2-big); font-weight: 500; color: var(--ink); }
.cs-res div span { display: block; margin-top: var(--s-1); font-size: var(--fs-p-small); line-height: 1.4; color: var(--ink); }

/* Filterable index of everything we have shipped. §10's consistency rule names
   category selectors explicitly, so this is the Segmented Navigation from
   base.css — it used to be a row of separately-bordered pills that filled navy
   when selected, which is the Secondary Button's hover state wearing a tab's job.
   Only the wrap behaviour is local: four labels, one of them long. */
.cs-filter { flex-wrap: wrap; margin-bottom: 32px; }
/* ── Everything, in one list (1354:391) ───────────────────────────────────────
   A table, not a card grid: a labelled header row on --light-bg over rows of
   Project / Services / Industry, inside one r24 hairline. */
.cs-index { border: 1px solid var(--card-border); border-radius: var(--r-lg); overflow: hidden; background: #fff; }
.cs-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.32fr) minmax(0, 0.65fr); align-items: center;
  gap: var(--s-3); padding: var(--s-3) var(--s-5); border-top: 1px solid var(--card-border); }
.cs-index > .cs-row:first-child { border-top: none; }
.cs-head { background: var(--light-bg); }

a.cs-row { color: inherit; transition: background var(--dur-fast) ease; }
a.cs-row:hover { background: var(--off-white); }
.cs-row[hidden] { display: none; }
.cs-row b { line-height: var(--lh-h5); font-size: var(--fs-h5); font-weight: 500; color: var(--ink); }
.cs-row span { font-size: var(--fs-subtitle); line-height: var(--lh-subtitle); color: var(--ink); }
/* after .cs-row span, not before it: same specificity, and the later rule wins */
.cs-head span { line-height: var(--lh-h5); font-size: var(--fs-h5); font-weight: 600; color: var(--ink); }
.cs-empty { padding: 48px 24px; background: #fff; text-align: center; color: var(--muted); grid-column: 1 / -1; }

/* Client voices */

@media (max-width: 940px) {
  .wk-feat { grid-template-columns: 1fr; gap: 32px; margin-bottom: 48px; }
  .wk-projs { grid-template-columns: 1fr; gap: 24px; }
  .cs-hero-case { grid-template-columns: 1fr; }
  .cs-hero-body { padding: 32px 32px; }
  .cs-res { padding: 32px 32px; border-left: none; border-top: 1px solid var(--card-border); }
  .cs-index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .cs-res { gap: 24px; }
  .cs-index { grid-template-columns: 1fr; }
  .wk-proj-body { padding: 24px 24px 24px; }
}

/* ══ Single case study ═════════════════════════════════════════════════════ */

/* A case study reads like a document, not a landing page — so the hero is
   left-aligned and the copy measure is capped, unlike the section heroes. */
/* Case hero: centred, like every other hero on the site.
   It used to be left-aligned inside a 1380px wrap with the h1 clamped to 15ch,
   so every title broke onto three lines and two thirds of the band sat empty
   for no reason a reader could see. Centring removes the empty side without
   adding anything, and matches the service and section heroes. */
/* ── Case study hero (1416:15) ────────────────────────────────────────────────
   The project's own artwork, full bleed, under the frame's navy scrim, with the
   client name, the lead and the two actions sitting on its lower left. It used to
   be a light centred hero carrying a breadcrumb, a tag, a flag, the client logo
   and a Clutch line; the frame keeps none of those and moves the breadcrumb out
   from under the nav to the top of the article. */
/* the index hero takes the same title role as the case pages it lists (1351:5) */
#top.hero .wrap h1.cs-title { line-height: 1; font-size: var(--fs-h1-hero); font-weight: 700; }
.hero.case-hero { display: flex; align-items: flex-end; min-height: 748px;
  padding: var(--s-8) 0 var(--s-5); text-align: left; background: var(--navy); }
.hero.case-hero > .wrap { width: 100%; }
/* The frame runs this template on a narrower column than the rest of the family:
   1200 for the article and the closing band (1416:27, 1416:16), 1220 for the hero
   copy (1416:61), against the 1280 the master pages use. tech.css opens .wrap to
   1428 for the whole family, so both have to be taken back here. */
.hero.case-hero > .wrap { max-width: 1268px; }
.case-sec > .wrap { max-width: 1248px; }
.case-hero-media { position: absolute; inset: 0; z-index: 0; }
.case-hero-media img, .case-hero-media video { display: block; width: 100%; height: 100%; object-fit: cover; }
/* The frame's stops are 10% at the top, 67% at two thirds, solid navy at the foot
   (1416:15) — drawn over one particular dark collage. Over the nine plates we
   actually ship, several of them near-white UI screenshots, that left the white
   headline at 3.59:1. §17 outranks the frame on contrast, so the shape is the
   frame's and the floor is raised until the worst plate clears 4.5:1. */
.case-hero-media::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(4,17,58,0.22) 0%, rgba(6,20,62,0.84) 58%, var(--navy) 100%); }
.hero.case-hero > .wrap { position: relative; z-index: 1; }
.case-hero h1 { max-width: none; margin: 0 0 var(--s-3); line-height: 1; font-size: var(--fs-h1-hero); font-weight: 700; color: #fff; }
.case-hero .lead { max-width: 789px; margin: 0 0 48px; font-size: var(--fs-subtitle); line-height: var(--lh-subtitle); color: #fff; }
.case-hero .lede-actions { justify-content: flex-start; }

/* The trail is its own row above the article now, not a line under the nav. */
.case-crumb { display: flex; align-items: center; gap: var(--s-1); margin-bottom: var(--s-3);
  font-size: var(--fs-p-small); line-height: 1.8; color: var(--text-dim); }
/* the global a { color: --ink } beats the row's inherited colour, so the links
   have to take it back — the frame paints the whole trail #667085 (1416:55) */
.case-crumb a { color: inherit; }
.case-crumb a:hover { color: var(--ink); text-decoration: underline; }
.case-crumb span { color: var(--light-border); }
.case-crumb b { font-weight: 400; color: var(--text-dim); }

/* The payoff sits directly under the hero, before anyone has to scroll for it. */
/* It used to ride up over the light hero by 48px. The frame puts the breadcrumb
   directly under the hero, so the pull-up now covers the trail — the band is a
   normal row inside the article. */
.case-results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px;
  background: var(--card-border); border: 1px solid var(--card-border); border-radius: var(--r-lg); overflow: hidden; margin-bottom: var(--s-4); box-shadow: var(--shadow); }
.case-results > div { background: #fff; padding: 32px 32px; }
.case-results b { display: block; font-size: var(--fs-h2-big); font-weight: 400; line-height: 1; color: var(--ink); }
.case-results span { display: block; margin-top: 16px; font-size: var(--fs-p-small); line-height: 1.45; color: var(--text-dim); }
.case-results small { display: block; margin-top: 8px; font-size: var(--fs-p-smallest); color: var(--muted); }

/* the article and its sticky "At a glance" card */
.case-split { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 64px; align-items: start; }
.case-body > section { padding-bottom: 48px; margin-bottom: 48px; border-bottom: 1px solid var(--card-border); }
.case-body > section:last-child { padding-bottom: 0; margin-bottom: 0; border-bottom: none; }
.case-body h2 { font-size: var(--fs-h3); font-weight: 400; line-height: var(--lh-h3); margin-bottom: var(--s-3); }
.case-body p { font-size: var(--fs-p-small); line-height: 1.8; color: var(--text-dim); margin-bottom: var(--s-3); }
.case-body p:last-child { margin-bottom: 0; }
/* the frame sets the closing line in navy at the same size, not as a rule-and-italic
   pull quote — it reads as the section's conclusion, which is what it is */
.case-body .case-pull { font-size: var(--fs-p-small); font-weight: 500; line-height: 1.8; color: var(--ink); margin: var(--s-3) 0 0; }
.case-body figure { margin: var(--s-5) 0 0; }
.case-body .case-shot { display: block; width: 100%; height: auto; aspect-ratio: 816 / 510; object-fit: cover;
  border: 1px solid var(--card-border); border-radius: var(--r-lg); }

/* Facts stay in view while the narrative scrolls past them. The frame draws the
   panel with no heading over it and no button under it (1416:27 › Key Info) —
   five label/value pairs, nothing else, on the approved card gradient. */
.case-meta { position: sticky; top: 114px; border: 1px solid var(--card-border); border-radius: var(--r-lg); background: var(--grad-card); padding: var(--s-4); }
.case-meta dl { display: grid; grid-template-columns: 1fr; gap: var(--s-4); margin: 0; }
.case-meta dl > div { display: grid; gap: var(--s-1); }
.case-meta dt { font-size: var(--fs-p-small); line-height: 1.2; color: var(--text-dim); }
.case-meta dd { margin: 0; line-height: var(--lh-subtitle); font-size: var(--fs-subtitle); font-weight: 500; color: var(--ink); }

/* ── The closing band (1416:16) ───────────────────────────────────────────────
   Two actions on the approved grey, in place of the "More of our work" trio and
   the full contact form the page used to end on. */
.case-cta { text-align: center; background: var(--grad-gray); }
.case-cta h2 { line-height: var(--lh-h2-bigger); font-size: var(--fs-h2-bigger); font-weight: 500; color: var(--ink); margin-bottom: var(--s-1); }
.case-cta p { font-size: var(--fs-subtitle); line-height: var(--lh-subtitle); color: var(--text-dim); margin-bottom: var(--s-4); }
.case-cta .lede-actions { justify-content: center; }

@media (max-width: 940px) {
  .hero.case-hero { padding-bottom: 64px; }
  .case-hero h1 { max-width: none; }
  .case-results { grid-template-columns: 1fr; }
  .case-results > div { padding: 24px 24px; }
  .case-split { grid-template-columns: 1fr; gap: 48px; }
  .case-meta { position: static; }
}

.wk-outro { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  border: 1px solid var(--card-border); border-radius: var(--r-lg); background: var(--grad-card); padding: 48px 48px; }
/* the frame gives this band the section-title role over the subtitle role,
   not an h3 over compact copy (1504:6098) */
.wk-outro h2 { line-height: var(--lh-h2); font-size: var(--fs-h2); font-weight: 400; margin-bottom: var(--s-1); }
.wk-outro p { font-size: var(--fs-subtitle); line-height: var(--lh-subtitle); color: var(--text-dim); margin: 0; }

/* ── Tablet: the client column takes the full width, facts and voice split below ── */
@media (max-width: 1023px) {
  .wk-case { grid-template-columns: 1fr 1fr; }
  .wk-col { padding: 0; }
  .wk-col + .wk-col { border-left: none; }
  .wk-col:first-child { grid-column: 1 / -1; padding-bottom: 32px; }
  .wk-col:nth-child(2), .wk-col:nth-child(3) { padding-top: 32px; border-top: 1px solid var(--card-border); }
  .wk-col:nth-child(3) { padding-left: 32px; margin-left: 32px; border-left: 1px solid var(--card-border); }
  .wk-col:nth-child(2) .wk-cap, .wk-col:nth-child(3) .wk-cap { display: none; }
}

/* ── Phone: one column, hairlines become the rhythm ── */
@media (max-width: 680px) {
  .wk-case { grid-template-columns: 1fr; padding-bottom: 48px; margin-bottom: 48px; }
  .wk-col:nth-child(3) { padding-left: 0; margin-left: 0; border-left: none; }
  .wk-col:first-child { padding-bottom: 24px; }
  .wk-col:nth-child(2), .wk-col:nth-child(3) { padding-top: 24px; }
  .wk-col:first-child .wk-cap { justify-content: flex-start; }
  .wk-col h3 { margin-bottom: 16px; }
  .wk-outro { padding: 32px 24px; }
}

/* Client mark above the name. Heights are normalised rather than widths, so marks
   with very different aspect ratios still read as one row of logos. */
.wk-logo { display: block; height: 38px; width: auto; max-width: 200px; object-fit: contain; object-position: left center; margin-bottom: 24px; }
/* Compact / stacked marks need more height than a wide wordmark to carry the same
   visual weight next to one another. */
.wk-logo-tall { height: 54px; }
/* Veilleurr only publishes their wordmark reversed out of navy — used as the plate it is. */
.wk-logo-plate { border-radius: var(--r-pill); }
@media (max-width: 680px) {
  .wk-logo { height: 32px; margin-bottom: 16px; }
  .wk-logo-tall { height: 44px; }
}

/* Case-study visuals — 760x475 frames from the design file, so a fixed 1.6 ratio. */
.case-shot { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border: 1px solid var(--card-border); border-radius: var(--r-lg); background: var(--grad-card); }
.case-body figure { margin: 24px 0 0; }
/* A clip carries its own proportions. The stills were all cut to 1.6; forcing a
   4:3 dashboard recording or a 16:9 render into that frame crops the subject
   out, so a video sizes from its own width/height attributes instead. */

/* ══ Motion reel — the portfolio in one scroll ═════════════════════════════ */

/* A grid, not a scroller: Victor wants all five visible at once. Each clip is
   about a megabyte, which is why this was a two-up reel — the weight is still
   handled, by shell.js loading a .js-video only when it scrolls into view, so
   the posters carry the section until then. */
.cs-reel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.reel-head { position: relative; }
.reel-head .sec-head { margin-bottom: var(--s-5); }
.cs-reel-nav { display: flex; gap: var(--s-1); flex-shrink: 0; justify-content: flex-end; }
.reel-head .cs-reel-nav { position: absolute; right: 0; bottom: var(--s-5); }
/* 40, as the frame draws them (1354:335) — 48 was ours. Raised back to 44 on a
   finger below, where the frame's number is under the minimum. */
.cs-reel-nav button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--card-border);
  background: #fff; color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: background var(--dur-fast) ease, border-color var(--dur-fast) ease, color var(--dur-fast) ease; }
.cs-reel-nav button:hover:not(:disabled) { background: var(--soft-hover); border-color: var(--navy); color: var(--navy); }
.cs-reel-nav button:disabled { cursor: default; background: var(--soft-hover); color: var(--muted-text); border-color: var(--light-border); }
@media (max-width: 940px) { .cs-reel { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) {
  .cs-reel { grid-template-columns: minmax(0, 1fr); }
  .cs-reel-nav { display: flex; gap: var(--s-1); flex-shrink: 0; display: none; }            /* the swipe is the control on touch */
}

/* Touch targets: these controls draw at the size the design file specifies,
   which is comfortable under a mouse and short of the 44px a finger needs.
   Adding a minimum height leaves the padding and the look untouched. */
@media (hover: none) and (pointer: coarse) {
  .case-crumb a, .case-crumb b { min-height: 44px; display: inline-flex; align-items: center; }
}

@media (hover: none) and (pointer: coarse) {
  .cs-reel-nav button { width: 44px; height: 44px; }
}
