/*
 * PATCH-3789 — shell for the Features page (features.html).
 *
 * The plain-document pattern the blog and legal pages use (see the header of
 * blog/blog.css): no design-system components, no DC runtime, and deliberately
 * NOT `_ds_bundle.css` / `styles.css`, which pin html/body to 100dvh with
 * overflow:hidden (PATCH-1098) and would clip this page. Only `fonts.css` is
 * pulled in, and `site-chrome.css` loads after this file.
 *
 * Tokens are the CURRENT home-page values (marketing/index.html :root), the
 * same set blog.css restates. Every colour below this block is a var(); keep
 * raw colours in :root.
 */

/* PATCH-7066: the space under the header and the kicker, shared with the films hub. */
@import url("page-top.css");

:root {
  /* PATCH-4131: the page behind everything is the Films page's #141413, so the
     cross-fade to and from /films/ keeps one colour. --bg-app stays the app's
     #1f1f1e for anything that is a surface. */
  --bg-page: #141413;
  --bg-app: #1f1f1e; --bg-rail: #1a1a19; --bg-raised: #221d1a; --bg-raised-2: #2b2520;
  /* PATCH-7062: the films' own ground since Cat's darker trailer look; the box
     a film plays in holds it, where the page's sections keep --bg-rail. */
  --film-ground: #120f0e;
  --text: #ece8e1; --text-secondary: #b8b3aa; --text-muted: #948e85;
  --accent: #d97757; --accent-hover: #e2876a; --accent-text: #f0a98e; --on-accent: #2a1208;
  --border-soft: rgba(255,253,247,0.055); --border-strong: rgba(255,253,247,0.16);
  --r-sm: 6px; --r-md: 9px; --r-lg: 13px;
  --font-ui: "Hanken Grotesk", "Hanken Grotesk Fallback", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0; background: var(--bg-page); color: var(--text);
  font-family: var(--font-ui); font-size: 16px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* PATCH-3827: the column is the header's, so the first heading starts under
   the logo: --chrome-width is site-chrome.css's, which every page that loads
   this file loads too, and the 24px is .site-nav's side padding.
   PATCH-4141 (owner ask 2026-10-15): what sits in the column now spans it,
   1132px, as the home page's How it works grid and the Films page do:
   the jump list, the features' dividers and the closing card.
   Running text keeps a reading width of its own, as How it works' intro
   does: a rule below that sets a narrower max-width still wins. */
main { max-width: var(--chrome-width); margin: 0 auto; padding: var(--page-top) 24px 56px; }
main > * { max-width: 1132px; }
.intro { margin: 0 0 32px; max-width: 640px; font-size: 18px; color: var(--text-secondary); }
/* PATCH-4225: on the pages with the rail, Features and Getting started, the
   heading area ends with one gap, the same in both stylesheets
   (test/page-heading-gap.test.mjs): 60px from 1000px wide, 40px on a phone.
   Below 1024px the "On this page" list keeps that gap below it too. Other
   pages that load this file keep the intro's 32px. */
.intro:has(+ .paged) { margin-bottom: clamp(40px,6vw,60px); }

/* ---- PATCH-4217: "On this page", a rail from 1024px ----------------------

   Below 1024px it is the list at the top, in phone-navigation.css's full-width
   rows (PATCH-6100). From
   1024px the page's sections sit in .paged-body beside it, and the list is a
   200px column that stays in view under the sticky header while they scroll
   by. It stops where .paged ends, before the closing card and the footer.
   1024px is where it starts to fit: the 976px column there leaves the text
   672px beside the rail, a readable line, and narrower than that the text
   would go under 600px. page-rail.js marks the link for the section being
   read with aria-current; the links work without it. The rail and the text
   together stay inside main's 1132px (PATCH-4141). Its 4px padding keeps the
   focus ring inside the rail's scroll box. */

.jump { list-style: none; margin: 0 0 clamp(40px,6vw,60px); padding: 0; }
.jump a { display: block; font-size: 14px; color: var(--text-secondary); }
.jump a:is(:hover, :focus-visible) { text-decoration: none; border-color: var(--border-strong); color: var(--text); }

/* Topic labels are named lists, not extra stops in the keyboard path. Below
   1024px phone-navigation.css stacks each group's links as full-width rows
   (PATCH-6100). */
.rail-group + .rail-group { margin-top: 20px; }
.rail-group-title {
  margin: 0 0 8px; font-size: 12px; font-weight: 600; line-height: 1.4;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent-text);
}
.rail-links { list-style: none; margin: 0; padding: 0; }
/* PATCH-7273 (Cat's M4): a label is its section's heading, so the longest
   ("Work goes down, reports come back up") is 250px of text in the 200px
   column. It wraps, balanced, to two lines at most at 1,024 and 1,440
   (measured); before, PATCH-5490's shortened labels each held one line. */
.rail-groups a { text-wrap: balance; }

@media (min-width: 1024px) {
  .paged { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 48px; align-items: start; }
  .rail {
    position: sticky; top: 76px; max-height: calc(100vh - 100px); overflow-y: auto;
    margin: 0 -4px; padding: 4px;
  }
  .rail-title {
    display: block; margin: 0 0 10px; padding-left: 14px;
    font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--text-muted);
  }
  .jump { margin: 0; }
  .jump a {
    padding: 6px 0 6px 12px; border: 0; border-left: 2px solid var(--border-soft); border-radius: 0;
    background: none; line-height: 1.4;
  }
  .jump a:is(:hover, :focus-visible) { border-left-color: var(--border-strong); }
  .jump a[aria-current] { border-left-color: var(--accent); color: var(--text); }
  .rail-group-title { padding-left: 14px; }
}

/* ---- One feature ---------------------------------------------------------- */

.feature {
  display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 6px 20px;
  padding: clamp(28px,4vw,40px) 0; border-top: 1px solid var(--border-soft);
  scroll-margin-top: calc(var(--chrome-header-h, 58px) + 18px);
}
/* PATCH-4225: a divider separates two features, so the first has none above
   it, and from 1024px its top is level with the rail's, as Getting started's
   first box is. */
.paged-body > .feature:first-child { padding-top: 0; border-top: 0; }
/* PATCH-3832: anything inside a feature that a link can land on clears the
   sticky header too. The home page's Why Patch cards land on list entries.
   PATCH-6044, PATCH-6051: 18px below the header's rendered height, which is
   58px until enlarged text wraps it. */
.feature [id] { scroll-margin-top: calc(var(--chrome-header-h, 58px) + 18px); }
.feature-icon {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--r-md);
  background: var(--bg-raised-2); color: var(--accent-text);
}
/* PATCH-3838: the feature a jump lands on holds the accent on its icon tile while
   the page scrolls there, then settles. Reduced motion: it stays. */
.feature:target .feature-icon {
  background-color: var(--accent); color: var(--on-accent);
  animation: landed calc(var(--motion-landed) * 0.3) var(--ease-out-soft) calc(var(--motion-landed) * 0.7) forwards;
}
@keyframes landed { to { background-color: var(--bg-raised-2); color: var(--accent-text); } }
.feature-body { max-width: 720px; }
.feature h2 {
  margin: 4px 0 10px; font-size: var(--chrome-h2-size); font-weight: 600;
  letter-spacing: -0.015em; line-height: 1.25; color: var(--text);
}
.feature p, .feature li { color: var(--text-secondary); }
.feature p { margin: 0 0 14px; }
.feature .lead { font-size: 17px; color: var(--text); }
.feature ul { margin: 0 0 14px; padding-left: 22px; }
.feature li { margin-bottom: 7px; }
.feature li::marker { color: var(--text-muted); }
/* PATCH-6044 (Cat's spec, 2026-11-04): on a phone the explanatory lists are
   reading text at 16px / 1.6, not the 15.5px body size the 560px rule below
   sets. Captions, badges and the needs line keep their sizes. */
@media (max-width: 639px) {
  .feature-body li { font-size: 16px; line-height: 1.6; }
}
.feature strong { color: var(--text); font-weight: 600; }
.feature code {
  font-family: var(--font-mono); font-size: 0.86em; color: var(--accent-text);
  background: var(--bg-raised); border: 1px solid var(--border-soft);
  border-radius: var(--r-sm); padding: 1px 5px;
}
/* What a feature needs from you before it works. Set apart so a condition is
   never read past (the claim audit's F5). */
.feature .needs, .case .needs {
  margin: 0; padding: 12px 16px; border-left: 2px solid var(--accent);
  background: var(--bg-rail); border-radius: 0 var(--r-md) var(--r-md) 0; font-size: 15px;
}

/* PATCH-6011: a section illustration, the figure the build writes from
   films/sections/ (scripts/section-spots.mjs; its own styles come with it),
   sits under its section's lead the way #needs-you's screenshot does: fluid
   to the 720px measure at every width, the column's full width on a phone
   (owner 2026-11-05, patch-cove:section-spot-full-width, which replaced Cat's
   two columns from 1,280px). The needs line follows the figure directly, so
   its conditions sit next to it. */
.feature-body > .section-spot { max-width: 720px; margin-bottom: 18px; }
.feature .section-spot + .needs { margin-bottom: 14px; }

/* PATCH-6016 (Cat's selections, 2026-11-04): the demo question under
   #needs-you's lead, fluid to the 720px measure; width/height reserve the
   shape. Two <picture>s, one a width (see the markup's note), so the hidden
   one is display:none and leaves the accessibility tree with it. No pins and
   no legend over it (owner 2026-11-05, patch-cove:question-shot-plain): its
   alt text and caption say what it is. The screenshot's pixels are the app's
   own: nothing here recolours or retimes them. */
.inbox-shot { margin: 0 0 18px; max-width: 720px; }
.inbox-shot-frame {
  position: relative; border: 1px solid var(--border-soft);
  border-radius: var(--r-lg); overflow: hidden;
}
.inbox-shot img { display: block; width: 100%; height: auto; }
.inbox-shot figcaption {
  margin: 10px 0 0; font-family: var(--font-mono); font-size: 13px; color: var(--text-muted);
}
@media (min-width: 640px) { .inbox-shot-phone { display: none; } }
@media (max-width: 639px) {
  .inbox-shot-wide { display: none; }
}

/* PATCH-6011 (owner 2026-11-05, patch-cove:question-shot-motion): the question
   screenshot arrives once, the home's reveal (PATCH-3839 B2): it fades in and
   rises 12px over --motion-reveal. `data-arrive` in the markup does nothing by
   itself; the script under the figure sets "wait" and then "in", and takes it
   off when the fade ends, so with no script nothing is hidden. Screen only, so
   print has it; motion.css's reduced-motion rule takes the movement out. */
@media screen {
  .inbox-shot[data-arrive="wait"] { opacity: 0; translate: 0 12px; }
}
.inbox-shot[data-arrive="in"] {
  transition: opacity var(--motion-reveal) var(--ease-out-soft), translate var(--motion-reveal) var(--ease-out-soft);
}

/* ---- PATCH-6233: the section chooser while reading, below 1024px --------

   Owner `patch-cove:features-phone-contents` (2026-11-05); Cat's hand-off is
   the spec. features-contents.js builds .features-contents, a strip fixed
   under the header, and .features-contents-panel, a native popover with the
   index's links copied. The strip is laid out from the start but hidden and
   inert until the index has passed the header, so its height is known before
   any landing; --features-nav-h is that height, measured, and
   --chrome-header-h stays the header's alone. The section scroll-margin
   below counts both bars only once the script has built the strip and marked
   the root data-features-contents, so with scripts off, without popovers or
   with a module that failed, a landing is 18px under the header, as before.
   The rows are phone-navigation.css's. */

.features-contents, .features-contents-panel { display: none; }
@media (max-width: 1023px) {
  [data-features-contents] .feature, [data-features-contents] .feature [id] { scroll-margin-top: calc(var(--chrome-header-h, 58px) + var(--features-nav-h, 56px) + 18px); }
}
@media (max-width: 1023px) {
  .features-contents {
    display: block; position: fixed; top: var(--chrome-header-h, 58px); left: 0; right: 0; z-index: 45;
    background: var(--bg-rail); border-bottom: 1px solid var(--border-strong);
  }
  .features-contents:not([data-active]) { visibility: hidden; }
  .features-contents-trigger {
    display: grid; grid-template-columns: minmax(0, 1fr) 16px; gap: 12px; align-items: center;
    width: 100%; min-height: 55px; margin: 0; padding: 7px 24px; border: 0; border-radius: 0;
    background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer;
  }
  .features-contents-trigger:hover { background: var(--bg-raised); }
  /* The ring sits inside the strip, so the viewport's edges never cut it. */
  .features-contents-trigger:focus-visible { outline-offset: -4px; }
  .features-contents-context {
    display: block; font-family: var(--font-mono); font-size: 12px; line-height: calc(16 / 12); color: var(--text-secondary);
  }
  .features-contents-current {
    display: block; font-family: var(--font-ui); font-size: 16px; font-weight: 600; line-height: 1.5;
    color: var(--text); overflow-wrap: anywhere;
  }
  .features-contents-chevron { width: 16px; height: 16px; }
  .features-contents-trigger[aria-expanded="true"] .features-contents-chevron { transform: rotate(180deg); }
  .features-contents-panel:popover-open {
    display: block; position: fixed; inset: calc(var(--chrome-header-h, 58px) + var(--features-nav-h, 56px)) 0 auto;
    width: 100%; max-width: none; height: auto; margin: 0;
    max-height: calc(100dvh - var(--chrome-header-h, 58px) - var(--features-nav-h, 56px) - 12px - env(safe-area-inset-bottom));
    padding: 16px 24px max(16px, env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain; scroll-padding: 8px 0;
    border: 0; border-bottom: 1px solid var(--border-strong); background: var(--bg-rail); color: var(--text);
  }
  .features-contents-panel .jump { margin: 0; }
  .features-contents-panel .jump a { flex-wrap: nowrap; column-gap: 8px; }
  .features-contents-panel .jump a[aria-current] { color: var(--accent-text); }
  .features-contents-check { display: none; flex: none; width: 16px; height: 16px; margin-left: auto; }
  .features-contents-panel .jump a[aria-current] .features-contents-check { display: block; }
}

/* ---- Closing call to action ---------------------------------------------- */

.closing {
  margin-top: clamp(12px,2vw,24px); padding: clamp(28px,4vw,44px);
  background: var(--bg-raised); border: 1px solid var(--border-soft); border-radius: var(--r-lg);
}
.closing h2 {
  margin: 0 0 10px; font-size: var(--chrome-h2-size); font-weight: 700;
  letter-spacing: -0.02em; line-height: 1.2; color: var(--text);
}
.closing p { margin: 0 0 22px; max-width: 560px; color: var(--text-secondary); }
/* PATCH-7272: its Request access is the site's one .button (site-chrome.css). */
.closing .fineprint { margin: 18px 0 0; font-family: var(--font-mono); font-size: 12.5px; color: var(--text-secondary); }
/* PATCH-6707 (owner `patch-cove:one-mac-site-correction`, 2026-11-10): Saul's
   availability statement A, under the intro and beside each Request access. */
.offer-note, .closing .offer-note { margin: 14px 0 0; max-width: 560px; font-size: 15px; line-height: 1.55; color: var(--text-secondary); }
.intro + .offer-note { margin: -16px 0 32px; max-width: 640px; }
.intro + .offer-note:has(+ .paged) { margin-bottom: clamp(40px,6vw,60px); }
.about .offer-note { margin: 0 0 18px; max-width: 640px; }

/* ---- PATCH-3792: the About page, plain paragraphs in the column ---------- */

.about p { margin: 0 0 18px; max-width: 640px; font-size: 17px; color: var(--text-secondary); }

/* ---- PATCH-4146: the use-case pages (marketing/for/), one template ------- */

.case h2 {
  margin: 0 0 16px; font-size: var(--chrome-h2-size); font-weight: 600;
  letter-spacing: -0.015em; line-height: 1.25; color: var(--text);
}
/* PATCH-4970 (owner 2026-10-22, "D as drawn, side by side from 1,180px"):
   the hero is .case-hero, the text (.case-hero-text: kicker, headline, intro)
   then the film slot, in that source order so Tab reaches the film's Pause
   after the intro. Below 1,180px it is one left-aligned column with the film
   the full column under the intro; from 1,180px, where main reaches its full
   1132px, the text is a column on the left and the film sits on the right at
   723px, never narrower than PATCH-4480's 720. The text is top-aligned with
   the film, never centred beside it, and nothing in the hero is centred at
   any width. PATCH-7272 (design review M1): its h1 is every inner page's
   (page-top.css), 46px at 1440; it no longer drops to 32px beside the film. */
.case-hero { margin-bottom: clamp(40px,6vw,64px); }
@media (min-width: 1180px) {
  .case-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); column-gap: 48px; align-items: start; }
  .case-hero-text { padding-top: 8px; }
  .case-hero-text .intro { font-size: 17px; margin-bottom: 0; }
}
/* The film slot: one still from the collection, linked to its film, or
   (PATCH-4147) the page's role film, below. */
.case-film { margin: 0; }
.case-film a {
  display: block; overflow: hidden; background: var(--bg-rail);
  border: 1px solid var(--border-soft); border-radius: var(--r-lg);
}
.case-film > a:is(:hover, :focus-visible) { border-color: var(--border-strong); }
/* PATCH-6976 (owner 2026-11-13): a video card never underlines, hovered or
   focused; the page-wide a:hover underline stops at the card. Ordinary links
   keep theirs. */
.case-film > a:is(:hover, :focus-visible), .case-trailer:is(:hover, :focus-visible) { text-decoration: none; }
.case-film picture, .case-film img { display: block; width: 100%; height: auto; }
/* PATCH-7272 (design review M3): the phone's still links its film, so it
   carries every film card's play glyph (site-chrome.css's .film-play), centred. */
.case-film > a { position: relative; }
.case-film figcaption { margin-top: 10px; font-size: 14px; color: var(--text-muted); }
.case-film figcaption strong { color: var(--text-secondary); font-weight: 600; }
/* PATCH-4147: a role film, played by role-film.js the way the home page plays
   its hero (PATCH-3793). The film fills the frame (its copy carries the hero's
   fill rule, so nothing inside it scrolls); the box positions the frame and
   the two buttons laid over it, shown from the state role-film.js sets on the
   box: Pause while it plays, Replay once it has ended. */
.role-film {
  position: relative; aspect-ratio: 1200 / 724; overflow: hidden; background: var(--film-ground);
  border: 1px solid var(--border-soft); border-radius: var(--r-lg);
}
.role-film iframe {
  display: block; width: 100%; height: 100%; border: 0;
  opacity: 0; transition: opacity var(--motion-enter) var(--ease-enter);
}
/* PATCH-4583: the film fades in once, with the films page's own fade, when
   role-film.js has parked it on the frame the visitor sees first. Until then
   the box holds the film's ground (--film-ground). */
.role-film[data-film-state] iframe { opacity: 1; }
/* PATCH-5618 (owner ask 2026-10-29): the buttons are the home page's hero's
   row (PATCH-4511): Pause (Play, Replay) then Fullscreen, in the corner, shown
   only while the visitor wants them. Hidden is not drawn and not hit, but
   still a <button> Tab reaches and a screen reader names, so the WCAG 2.2.2
   pause control never leaves the page: display:none is not used for it.
   role-film.js sets `data-film-controls` on the box while a mouse is over the
   film and for 3 s after a tap; a control with keyboard focus shows the whole
   row, and :focus-visible rather than :focus, so a button the mouse has just
   pressed does not keep the row up once the pointer has gone. The border is
   --text-muted, 5.1:1 on the pill, as the hero's. The layer is what lets the
   page see the pointer over the iframe. */
.role-film-layer { position: absolute; inset: 0; }
.role-film-controls {
  position: absolute; right: 12px; bottom: 12px; display: flex; gap: 8px;
  opacity: 0; pointer-events: none; transition: opacity var(--motion-fast) var(--ease-out-soft);
}
.role-film[data-film-controls] .role-film-controls, .role-film-controls:has(:focus-visible) { opacity: 1; pointer-events: auto; }
.role-film-pause, .role-film-replay, .role-film-full { display: none; }
/* Fullscreen is in the row where the browser can make the film fullscreen
   (`element`, from film or ended), and on an iPhone, where it plays the film's
   MP4 (`video`), on the still too. */
.role-film[data-film-state="film"] .role-film-pause,
.role-film[data-film-state="ended"] .role-film-replay,
.role-film[data-film-can-fullscreen]:is([data-film-state="film"], [data-film-state="ended"]) .role-film-full,
.role-film[data-film-can-fullscreen="video"][data-film-state="still"] .role-film-full {
  display: block; min-height: 28px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--text-muted);
  background: var(--bg-raised); font-family: var(--font-mono); font-size: 12px; color: var(--text-secondary); cursor: pointer;
}
.role-film-controls button:hover { color: var(--accent-text); }
/* A finger is wider than a pointer: the pills grow to 36px on a touch screen. */
@media (pointer: coarse) { .role-film-controls button { min-height: 36px; padding: 8px 14px; } }
/* One button holds both words, and `data-film-paused` on the box shows one: a
   hidden word is out of the button's accessible name too, so the name is what
   the button will do. */
.role-film-pause { min-width: 64px; text-align: center; }
.role-film[data-film-paused] .role-film-pause-pause,
.role-film:not([data-film-paused]) .role-film-pause-play { display: none; }
/* Under reduced motion the film never moves, so there is nothing to pause or
   replay, and (as on the hero) no control shows. */
@media (prefers-reduced-motion: reduce) {
  .role-film-controls { display: none; }
}
/* PATCH-5618: fullscreen is the box, so the controls go with it, and so is the
   in-page full-window view that stands in on an iPhone whose MP4 will not play
   (`data-film-theater`, over the page, which role-film.js makes inert). The film
   sits centred at its own shape on its own ground, with no border, no rounding
   and nothing to scroll, uncropped even where the page shows the phone's still.
   While the controls are hidden there the cursor is too. */
.role-film[data-film-full] {
  display: grid; place-items: center; width: 100%; height: 100%; aspect-ratio: auto;
  border: 0; border-radius: 0; background: var(--film-ground);
}
.role-film[data-film-full] iframe { position: static; width: min(100%, calc(100dvh * 1200 / 724)); height: auto; aspect-ratio: 1200 / 724; }
.role-film[data-film-theater] { position: fixed; inset: 0; z-index: 1000; }
html[data-film-theater] { overflow: hidden; }
.role-film[data-film-full]:not([data-film-controls]) { cursor: none; }
.role-film[data-film-full]:focus { outline: none; }
/* Below 640px a still, as on the home page (PATCH-1158): a 680x515 crop of the
   film's 1200x724 frame, 260 across and 140 down, which holds the closing line
   and the mark. The query is POSTER_QUERY in role-film.js. */
@media (max-width: 639px) {
  .role-film { aspect-ratio: 680 / 515; }
  .role-film iframe {
    position: absolute; left: calc(-100% * 260 / 680); top: calc(-100% * 140 / 515);
    width: calc(100% * 1200 / 680); height: calc(100% * 724 / 515);
  }
}
/* PATCH-4770: a slot that also holds the collection's linked still (the
   Development, Marketing and Operations pages) shows that still below 640px,
   where tapping it plays the film on /films/, and hides the film and its
   buttons; from 640px it shows the film alone. /for/sales holds no still,
   so its crop above stands (/for/executives, the other, left the site in
   PATCH-5835). The same query as above. */
@media (min-width: 640px) {
  .case-film > a { display: none; }
}
@media (max-width: 639px) {
  .case-film > a + .role-film { display: none; }
}
.jobs {
  list-style: none; margin: 0 0 clamp(40px,6vw,64px); padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px;
}
.jobs li {
  padding: 24px; background: var(--bg-raised);
  border: 1px solid var(--border-soft); border-radius: var(--r-lg);
}
.jobs h3 { margin: 0 0 8px; font-size: 18px; font-weight: 600; line-height: 1.35; color: var(--text); }
.jobs p { margin: 0; font-size: 15px; color: var(--text-secondary); }
/* PATCH-6537: a trailer's poster card after "Three jobs for the team" (Cat's
   §4): one link, a still with a play mark, its title and length. A modest card
   from the logo's edge, at most 560px wide; full width below 768px.
   PATCH-6950: two cards, the game trailer's then Building Patch with Patch's,
   side by side at equal widths from 768px, posters top-aligned, each still at
   most 560px; stacked full width below, the game trailer first. The section's
   margin is the row's, so the space before "What does the work" is as it was. */
.case-trailers {
  display: grid; grid-template-columns: repeat(2, minmax(0, 560px)); gap: 24px; align-items: start;
  margin: 0 0 clamp(40px,6vw,64px);
}
.case-trailer { display: flex; flex-direction: column; gap: 4px; max-width: 560px; color: var(--text); }
.case-trailer-poster {
  position: relative; display: block; overflow: hidden; margin-bottom: 8px; background: var(--bg-rail);
  border: 1px solid var(--border-soft); border-radius: var(--r-lg);
}
.case-trailer:is(:hover, :focus-visible) .case-trailer-poster { border-color: var(--border-strong); }
.case-trailer img { display: block; width: 100%; height: auto; }
/* PATCH-7272 (design review M3): the play glyph and the length badge are every
   film card's (site-chrome.css's .film-play and .film-duration), over the poster. */
.case-trailer-title { font-size: 18px; font-weight: 600; line-height: 1.35; }
.case-trailer-meta { font: 12px/1.5 var(--font-mono); color: var(--text-muted); }
@media (max-width: 767px) {
  .case-trailers { grid-template-columns: minmax(0, 1fr); }
  .case-trailer { max-width: none; }
}
/* PATCH-6732 (owner 2026-11-11, an iPhone in landscape; Cat's design): on a
   short, wide screen a full-column film was taller than the room under the
   header, so its bottom and its controls were never on screen together. There
   each trailer card's poster and the role film are capped by the screen's
   height, the header and 2rem for the gaps, at their own ratios (a card
   never past its 560px; PATCH-6950's two cards side by side are narrower); both stay left-aligned, as this page's hero is at
   every width (PATCH-4970). The same query as the home hero's. */
@media (min-width: 640px) and (max-height: 500px) {
  .case-trailer { max-width: min(560px, calc((100svh - var(--chrome-header-h, 58px) - 2rem) * 16 / 9)); }
  .case-film { max-width: calc((100svh - var(--chrome-header-h, 58px) - 2rem) * 1200 / 724); }
}
/* PATCH-4970: below the hero every section spans the column from the logo's
   edge. "What does the work" reads down two columns from 861px, the left one
   filled first so Tab follows reading order; its three rows hold each page's
   six features (test/use-cases.test.mjs pins six). The needs note spans the
   column with its line held near 820px, as the closing card's text is
   narrower than its box. */
.case-features {
  list-style: none; margin: 0 0 24px; padding: 0; border-top: 1px solid var(--border-soft);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(3, auto); grid-auto-flow: column; column-gap: 48px;
}
.case-features li { padding: 14px 0; border-bottom: 1px solid var(--border-soft); color: var(--text-secondary); }
.case-features a { font-weight: 600; }
.case .needs { margin-bottom: clamp(40px,6vw,64px); padding-right: max(16px, 100% - 820px); }

@media (max-width: 860px) {
  .jobs { grid-template-columns: minmax(0, 1fr); }
  .case-features { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-auto-flow: row; }
  .case .needs { padding-right: 16px; }
}
@media (max-width: 560px) {
  body { font-size: 15.5px; }
  .intro { font-size: 16px; }
  .feature { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
