/* ============================================================
   PROOF LAYER

   Single scroll surface (Task #616/#617): proof pages scroll at
   document level — panes grow with their content. Never give a
   pane (or .screen--proof) a fixed height + overflow-y: auto;
   that recreates the nested double-scrollbar bug. Only the fixed
   chat shell is allowed an inner scroller.
   ============================================================ */
.screen--proof {
  flex-direction: column;
}

.proof-pane {
  display: none;
  padding: var(--sp-6) var(--sp-8) var(--sp-8);
  flex: 1;
}

.proof-pane.active { display: block; }

/* Legacy chat-first "work hero" block and the task #152 two-column
   side-panel layout (.work-hero*, .work-side*, .work-panel*,
   .proof-pane--work grid) were removed in Task #704 — the /work pane
   now renders the single-column .work-editorial chrome (task #353,
   styled in home.css) and no markup references those classes. */

/* Careers pane owns all its own padding via .careers-wrap — strip the
   base .proof-pane padding so the hero starts at the same 80px top /
   48px side offset as the About page (matching browse-page parity). */
.proof-pane.proof-pane--careers {
  padding: 0;
}

.work-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-6);
  padding-bottom: var(--sp-5);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* Sector chip filter rail (#357). The "All" chip stays neutral; each
   sector chip uses its --sec-* token for the text colour and a low
   alpha tint of the same token for the background, so the rail
   reads as a quick coloured legend at a glance. */
/* Shared filter family: retain both selectors for existing event handlers. */
.work-filter,
.insights-chip {
  font-family: var(--mono);
  font-size: var(--fs-eyebrow);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-nav);
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  background: transparent;
  padding: 7px 14px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r-full);
  cursor: pointer;
  transition: background 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.work-filter {
  transition: background 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease), transform 0.15s var(--ease);
}
.work-filter:focus-visible,
.insights-chip:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
}
.work-filter:hover:not(.is-active),
.insights-chip:hover:not(.is-active) {
  border-color: rgba(255,255,255,0.4);
  color: var(--white);
}
.work-filter.is-active,
.insights-chip.is-active {
  background: var(--yellow);
  color: var(--black);
  border-color: var(--yellow);
}

.work-filter[data-sector="hospitality"],
.insights-chip[data-sector="hospitality"] {
  color: var(--sec-hospitality);
  background: color-mix(in srgb, var(--sec-hospitality) 12%, transparent);
  border-color: color-mix(in srgb, var(--sec-hospitality) 35%, transparent);
}
.work-filter[data-sector="retail"],
.insights-chip[data-sector="retail"] {
  color: var(--sec-retail-light);
  background: color-mix(in srgb, var(--sec-retail-light) 12%, transparent);
  border-color: color-mix(in srgb, var(--sec-retail-light) 35%, transparent);
}
.work-filter[data-sector="finance"],
.insights-chip[data-sector="finance"] {
  color: var(--sec-finance-light, var(--sec-finance));
  background: color-mix(in srgb, var(--sec-finance) 14%, transparent);
  border-color: color-mix(in srgb, var(--sec-finance) 40%, transparent);
}
.work-filter[data-sector="technology"],
.insights-chip[data-sector="technology"] {
  color: var(--sec-technology-light);
  background: color-mix(in srgb, var(--sec-technology-light) 12%, transparent);
  border-color: color-mix(in srgb, var(--sec-technology-light) 35%, transparent);
}
/* Task #685: the formerly-neutral sectors now carry brand colours.
   Text uses the -light companions for AA on --ink; tint/border mix
   uses the base token like the other sectors above. */
.work-filter[data-sector="public-sector"],
.insights-chip[data-sector="public-sector"] {
  color: var(--sec-public-sector-light, var(--sec-public-sector));
  background: color-mix(in srgb, var(--sec-public-sector) 14%, transparent);
  border-color: color-mix(in srgb, var(--sec-public-sector) 40%, transparent);
}
.work-filter[data-sector="media"],
.insights-chip[data-sector="media"] {
  color: var(--sec-media-light, var(--sec-media));
  background: color-mix(in srgb, var(--sec-media) 14%, transparent);
  border-color: color-mix(in srgb, var(--sec-media) 40%, transparent);
}
.work-filter[data-sector="professional-services"],
.insights-chip[data-sector="professional-services"] {
  color: var(--sec-professional-services-light, var(--sec-professional-services));
  background: color-mix(in srgb, var(--sec-professional-services) 14%, transparent);
  border-color: color-mix(in srgb, var(--sec-professional-services) 40%, transparent);
}
.work-filter[data-sector="energy-utilities"],
.insights-chip[data-sector="energy-utilities"] {
  color: var(--sec-energy-utilities-light, var(--sec-energy-utilities));
  background: color-mix(in srgb, var(--sec-energy-utilities) 14%, transparent);
  border-color: color-mix(in srgb, var(--sec-energy-utilities) 40%, transparent);
}
.work-filter[data-sector="industrial"],
.insights-chip[data-sector="industrial"] {
  color: var(--sec-industrial-light, var(--sec-industrial));
  background: color-mix(in srgb, var(--sec-industrial) 14%, transparent);
  border-color: color-mix(in srgb, var(--sec-industrial) 40%, transparent);
}
.work-filter[data-sector="education-research"],
.insights-chip[data-sector="education-research"] {
  color: var(--sec-education-research-light);
  background: color-mix(in srgb, var(--sec-education-research) 14%, transparent);
  border-color: color-mix(in srgb, var(--sec-education-research) 40%, transparent);
}
.work-filter[data-sector].is-active,
.insights-chip[data-sector].is-active {
  background: var(--yellow);
  color: var(--black);
  border-color: var(--yellow);
}

/* ============================================================
   /WORK INDEX — HYBRID LAYOUT (Task #425)
   1. .work-featured       admin-curated hero cards (3–5).
   2. .work-list--typographic  full portfolio as editorial rows.
   3. .work-foot-cta       shared element-entry inviting chat.

   The legacy positional `.work-tile--featured` modifier (1st +
   6th tile) and its dual-column-span CSS are gone — the
   .work-tile primitive is preserved for /work/:slug related
   strip and (transitionally) /home selected work.
   ============================================================ */

/* The legacy `.work-grid` alias (old editorial grid) was removed in
   Task #704 — /home's selected-work strip now uses .work-featured__grid
   flex layout via the shared .work-tile primitive. */

/* ── 1. Featured hero cards ─────────────────────────────────── */
.work-featured { margin: 0 0 var(--sp-14) 0; }
.work-featured[hidden] { display: none; }
.work-featured__grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-5);
}
.work-featured__grid > .work-tile {
  flex: 1 1 calc(33.333% - 14px);
  min-width: 280px;
  min-height: 320px;
}
.work-tile--hero { min-height: 340px; }
.work-tile--hero .work-tile__client {
  font-size: var(--fs-h1);
}
/* When a client-name label precedes the case title, zero the title's
   top margin — the label already carries 14px of space above it. */
.work-tile__client-name + .work-tile__client {
  margin-top: 2px;
}
/* Featured hero metric — DM Sans 900. Per Task #531, the metric
   inherits the tile's per-sector text colour so each card reads
   as one tonal block (dark ink on hospitality, paper white on the
   saturated sector tints). Yellow is still reserved for the dark
   --ink register (case-study hero, stats band) — NOT for cards on
   sector backgrounds. See docs/TYPOGRAPHY.md and
   docs/design-system/reference/featured-case-card.md.
   Metric is intentionally smaller than the case title (--fs-h2 < --fs-h1)
   so the hierarchy reads: title → metric, not metric ≈ title. */
.work-tile--hero .work-tile__metric {
  font-family: var(--serif);
  font-weight: var(--fw-display);
  font-size: var(--fs-h2);
  letter-spacing: var(--ls-body);
  color: inherit;
  text-transform: none;
}
@media (max-width: 767px) {
  .work-featured__grid > .work-tile { flex-basis: 100%; min-height: 260px; }
}

.work-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 280px;
  padding: var(--sp-5);
  border-radius: var(--r-sm);
  background: var(--ink-3);
  color: var(--paper);
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
}
.work-tile:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
}
.work-tile:hover,
.work-tile:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(0,0,0,0.32);
}

/* Sector backgrounds — same tokens that drive the case-renderer
   hero, so the tile reads as "owned" by its sector. */
.work-tile[data-sector="hospitality"] { background: var(--sec-hospitality); color: var(--ink); }
.work-tile[data-sector="retail"]      { background: var(--sec-retail); color: var(--paper); }
.work-tile[data-sector="finance"]     { background: var(--sec-finance); color: var(--paper); }
.work-tile[data-sector="technology"]  { background: var(--sec-technology); color: var(--paper); }
/* Task #685: formerly-neutral sectors now use their brand tokens. */
.work-tile[data-sector="public-sector"] { background: var(--sec-public-sector); color: var(--paper); }
.work-tile[data-sector="media"]         { background: var(--sec-media); color: var(--paper); }
.work-tile[data-sector="professional-services"] { background: var(--sec-professional-services); color: var(--paper); }
.work-tile[data-sector="energy-utilities"]      { background: var(--sec-energy-utilities); color: var(--paper); }
.work-tile[data-sector="industrial"]            { background: var(--sec-industrial); color: var(--paper); }
.work-tile[data-sector="education-research"]    { background: var(--sec-education-research); color: var(--paper); }

.work-tile__eyebrow {
  font-family: var(--mono);
  font-size: var(--fs-eyebrow);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  opacity: 0.85;
  z-index: 2;
}

/* Small company-name label that sits above the case title. Only
   rendered when the title follows the "Client – Description" pattern. */
.work-tile__client-name {
  font-family: var(--sans);
  font-size: var(--fs-body);
  font-weight: var(--fw-bold);
  line-height: var(--lh-base);
  margin-top: 14px;
  margin-bottom: var(--sp-1);
  display: block;
  z-index: 2;
}

.work-tile__client {
  font-family: var(--display);
  font-weight: var(--fw-display);
  font-size: var(--fs-h1);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-headline);
  text-transform: uppercase;
  margin: 0 0 10px 0;
  color: inherit;
  word-break: break-word;
  z-index: 2;
}
.work-tile__headline {
  font-family: var(--sans);
  font-style: normal;
  font-weight: var(--fw-regular);
  font-size: var(--fs-body);
  line-height: var(--lh-base);
  margin: 0;
  max-width: 38ch;
  opacity: 0.92;
  z-index: 2;
  /* Headline is now rendered through BE.expandable; the component
     handles its own collapsed / expanded state (Read more / Read
     less). No CSS clamp is needed here. */
}

/* Metric-colour rule (docs/TYPOGRAPHY.md, Task #531): the metric
   inherits the tile's per-sector text colour so each card reads
   as one tonal block — dark ink on hospitality, paper white on
   the saturated sector tints. Yellow is reserved for the dark
   --ink register only. */
.work-tile__metric {
  align-self: stretch;
  font-family: var(--serif);
  font-size: var(--fs-h2);
  font-weight: var(--fw-display);
  letter-spacing: var(--ls-body);
  color: inherit;
  margin-top: auto;
  padding-top: var(--sp-3);
  border-top: 1px solid color-mix(in srgb, currentColor 30%, transparent);
  max-width: 32ch;
  transition: transform 0.25s ease, opacity 0.25s ease;
  z-index: 2;
}

.work-tile__arrow {
  /* Glyph affordance ("→"), not a text register — DM Mono at the 18px
     step sizes the arrow, deliberately off the mono micro register
     (docs/TYPOGRAPHY.md §Glyph affordances, Task #702). */
  position: absolute;
  bottom: 18px;
  right: 22px;
  font-family: var(--mono);
  font-size: var(--fs-h3);
  line-height: var(--lh-tight);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 3;
}
.work-tile:hover .work-tile__arrow,
.work-tile:focus-visible .work-tile__arrow {
  opacity: 1;
  transform: translateX(0);
}
.work-tile:hover .work-tile__metric,
.work-tile:focus-visible .work-tile__metric {
  transform: translateX(2px);
}

@media (prefers-reduced-motion: reduce) {
  .work-tile,
  .work-tile__arrow,
  .work-tile__metric { transition: none; }
  .work-tile:hover { transform: none; }
}

/* Task #522 — scope `.expandable__toggle` colour inside /work case
   cards. The shared toggle defaults to --be-yellow (correct on
   Expression A dark surfaces like team longBio + role panel deck),
   but Expression B sector-tinted cards must not leak yellow. The
   card already drives an ink/paper text colour per sector, so the
   toggle inherits that and stays legible on every tint without
   introducing a new token. Underline + weight treatment from the
   base rule still applies — only the colour changes. */
.work-tile .expandable__toggle {
  color: inherit;
  font-weight: var(--fw-bold);
}
.work-tile .expandable__toggle:focus-visible {
  outline-color: currentColor;
}

/* ============================================================
   FILTER-MISS EMPTY STATE — sector-coloured block.
   ============================================================ */
.work-empty {
  border-radius: var(--r-sm);
  padding: clamp(28px, 4vw, 44px); /* fluid clamp — raw endpoints deliberate (lint guard convention) */
  background: var(--ink-3);
  color: var(--paper);
}
.work-empty[data-sector="hospitality"] { background: var(--sec-hospitality); color: var(--ink); }
.work-empty[data-sector="retail"]      { background: var(--sec-retail); color: var(--paper); }
.work-empty[data-sector="finance"]     { background: var(--sec-finance); color: var(--paper); }
.work-empty[data-sector="technology"]  { background: var(--sec-technology); color: var(--paper); }
.work-empty[data-sector="public-sector"] { background: var(--sec-public-sector); color: var(--paper); }
.work-empty[data-sector="media"]         { background: var(--sec-media); color: var(--paper); }
.work-empty[data-sector="professional-services"] { background: var(--sec-professional-services); color: var(--paper); }
.work-empty[data-sector="energy-utilities"]      { background: var(--sec-energy-utilities); color: var(--paper); }
.work-empty[data-sector="industrial"]            { background: var(--sec-industrial); color: var(--paper); }
.work-empty[data-sector="education-research"]    { background: var(--sec-education-research); color: var(--paper); }
.work-empty__inner { width: 100%; }
.work-empty__eyebrow {
  display: block;
  font-family: var(--mono);
  font-size: var(--fs-eyebrow);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 14px;
}
.work-empty__body {
  font-family: var(--serif);
  font-weight: var(--fw-regular);
  font-size: var(--fs-h1);
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-body);
  margin: 0 0 var(--sp-5) 0;
  color: inherit;
}
.work-empty__body a { color: inherit; text-decoration: underline; text-underline-offset: 4px; }
.work-empty__cta {
  font-family: var(--mono);
  font-size: var(--fs-eyebrow);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-nav);
  text-transform: uppercase;
  color: inherit;
  background: transparent;
  border: 1px solid currentColor;
  padding: 11px 18px;
  border-radius: var(--r-full);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}
.work-empty__cta:hover {
  background: currentColor;
}
.work-empty__cta:hover { color: var(--ink); }
.work-empty[data-sector="hospitality"] .work-empty__cta:hover { color: var(--sec-hospitality); }
.work-empty[data-sector="retail"] .work-empty__cta:hover { color: var(--sec-retail); }
.work-empty[data-sector="finance"] .work-empty__cta:hover { color: var(--sec-finance); }
.work-empty[data-sector="technology"] .work-empty__cta:hover { color: var(--sec-technology); }
.work-empty[data-sector="public-sector"] .work-empty__cta:hover { color: var(--sec-public-sector); }
.work-empty[data-sector="media"] .work-empty__cta:hover { color: var(--sec-media); }
.work-empty[data-sector="professional-services"] .work-empty__cta:hover { color: var(--sec-professional-services); }
.work-empty[data-sector="energy-utilities"] .work-empty__cta:hover { color: var(--sec-energy-utilities); }
.work-empty[data-sector="industrial"] .work-empty__cta:hover { color: var(--sec-industrial); }
.work-empty[data-sector="education-research"] .work-empty__cta:hover { color: var(--sec-education-research); }
.work-empty__cta:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: 3px;
}

/* TEAM GRID */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--sp-5);
  perspective: 1400px;
}

.team-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: rgba(255,255,255,0.4);
  font-size: var(--fs-xs);
  padding: var(--sp-8) 0;
}

.team-card {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --parallax-x: 0px;
  --parallax-y: 0px;
  --companion-x: 0px;
  --companion-y: 0px;
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--r-md);
  overflow: hidden;
  background: linear-gradient(160deg, rgba(30,30,30,0.9), rgba(10,10,10,0.9));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 20px 60px rgba(0,0,0,0.45);
  transform-style: preserve-3d;
  transform: rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transition: transform 0.15s ease-out, border-color 0.25s ease, box-shadow 0.25s ease;
  will-change: transform;
}

.team-card:hover {
  border-color: rgba(255,194,23,0.35);
  box-shadow: 0 28px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,194,23,0.08);
}

.team-card--founder {
  border-color: rgba(255,194,23,0.22);
}

.team-card__stage {
  position: relative;
  height: 220px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(255,194,23,0.15), transparent 60%),
    radial-gradient(ellipse at 70% 80%, rgba(232,69,10,0.12), transparent 65%),
    var(--ink-2);
  transform-style: preserve-3d;
}

.team-card__glow {
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle at 50% 40%, rgba(255,194,23,0.18), transparent 55%);
  transform: translate3d(var(--parallax-x), var(--parallax-y), 0);
  transition: transform 0.2s ease-out;
  pointer-events: none;
}

.team-card__avatar {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  transform: translate3d(calc(var(--parallax-x) * -0.4), calc(var(--parallax-y) * -0.4), 40px);
  transition: transform 0.2s ease-out;
}

.team-card__avatar-img {
  width: 68%;
  max-height: 100%;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 14px 24px rgba(0,0,0,0.55));
}

.team-card__avatar-initials {
  font-family: var(--display);
  font-size: var(--fs-display);
  font-weight: var(--fw-display);
  letter-spacing: var(--ls-body);
  color: rgba(255,194,23,0.85);
}

.team-card__companion {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 78px;
  height: 78px;
  object-fit: contain;
  transform: translate3d(var(--companion-x), var(--companion-y), 60px);
  transition: transform 0.2s ease-out;
  filter: drop-shadow(0 8px 14px rgba(0,0,0,0.5));
  pointer-events: none;
}

.team-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-family: var(--display);
  font-size: var(--fs-eyebrow);
  font-weight: var(--fw-display);
  letter-spacing: var(--ls-nav);
  text-transform: uppercase;
  color: var(--black);
  background: var(--yellow);
  padding: var(--sp-1) var(--sp-2);
  border-radius: 3px;
  transform: translateZ(70px);
}

.team-card__body {
  padding: 18px var(--sp-5) var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.team-card__name {
  font-size: var(--fs-body);
  font-weight: var(--fw-medium);
  color: var(--white);
  letter-spacing: var(--ls-body);
}

.team-card__role {
  font-size: var(--fs-eyebrow);
  text-transform: uppercase;
  letter-spacing: var(--ls-nav);
  color: rgba(255,194,23,0.75);
}

.team-card__bio {
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.62);
  line-height: var(--lh-body);
}

.team-card__human {
  font-size: var(--fs-xs);
  font-style: italic;
  color: rgba(255,255,255,0.38);
  line-height: var(--lh-base);
  border-left: 2px solid rgba(255,194,23,0.65);
  padding-left: 10px;
  margin-top: 2px;
}

.team-card__cta {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: var(--yellow);
  color: var(--black);
  border: none;
  border-radius: var(--r-full);
  padding: 9px var(--sp-4);
  font-family: var(--display);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-nav);
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 20px rgba(255,194,23,0.2);
}

.team-card__cta:hover {
  transform: translateY(-1px);
  background: var(--be-yellow);
  box-shadow: 0 14px 28px rgba(255,194,23,0.3);
}

.team-card__cta-arrow {
  transition: transform 0.2s ease;
}

.team-card__cta:hover .team-card__cta-arrow {
  transform: translateX(3px);
}

@media (prefers-reduced-motion: reduce) {
  .team-card { transition: none; transform: none !important; }
  .team-card__glow, .team-card__avatar, .team-card__companion { transform: none !important; transition: none; }
}

/* The old boxed AI-OPS pane styles (.ai-hero*, .ai-cards / .ai-card*,
   .ai-how*, .ai-steps / .ai-step*) were removed in Task #704 — the
   pane was rebuilt in Task #532 as the .aiops sections styled in
   aiops.css, and no markup references the old classes. */

/* Responsive */
@media (max-width: 639px) {
  .proof-pane { padding: var(--sp-4) var(--sp-5); }
  .team-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   CAREERS PANE — redesigned
   ============================================================ */
.careers-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--sp-20) var(--sp-12) var(--sp-20);
  display: flex;
  flex-direction: column;
  gap: var(--sp-8);
}
@media (max-width: 767px) {
  .careers-wrap { padding: var(--sp-14) var(--sp-5) var(--sp-14); }
}

.careers-hero {
  /* The wrap stacks children with `gap: 2rem` (32px). Add 48px below
     the hero so the visible space from deck → next section reaches
     ~80px, matching the About page's hero-to-next-section rhythm
     (Brand Manual v2.0 / Design System v1.1). */
  margin-bottom: var(--sp-12);
}
/* Canonical editorial eyebrow per the brand manual: DM Mono, 11px,
   --ls-caps tracking (0.18em since Task #696), uppercase, yellow, with a 24px yellow rule before
   it. This rule used to live in the April 2026 override block below;
   it was promoted up here so the careers hero typography lives in a
   single source instead of being layered. */
/* .careers-hero__eyebrow is aliased onto the .eyebrow / .eyebrow--rule
   primitives in main.css (Task #458). No page-local override needed. */
.careers-hero__title {
  font-family: var(--serif);
  font-size: var(--fs-display);
  font-weight: var(--fw-light);
  letter-spacing: var(--ls-headline);
  color: var(--white);
  line-height: var(--lh-tight);
  margin: 0 0 var(--sp-8);
  display: block;
}
.careers-hero__title em {
  font-style: italic;
  font-weight: var(--fw-light);
  color: var(--be-yellow);
}
.careers-hero__deck {
  font-family: var(--sans);
  font-size: var(--fs-sublede);
  font-weight: var(--fw-regular);
  color: var(--text-mute);
  line-height: var(--lh-base);
  margin: 0;
}

.careers-section__label {
  font-size: var(--fs-eyebrow);
  font-weight: var(--fw-regular);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--text-faint);
  padding-bottom: var(--sp-2);
  border-bottom: 0.5px solid rgba(255,255,255,0.08);
  margin-bottom: var(--sp-5);
}

/* Principles — 4-up editorial list (`.list-row` family).
   Top rule on the section is supplied by the section label's
   border-bottom; per-row bottom rule comes from `.list-row`. No
   fill, no radius — matches the About → Six Disciplines treatment
   so the two pages read as the same family. */
.careers-principles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0 var(--sp-8);
}
.careers-principle {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding: var(--sp-6) 0;
  border-bottom: 1px solid var(--ink-line);
}
.careers-principle__num {
  font-family: var(--display);
  font-weight: var(--fw-display);
  font-size: var(--fs-h1);
  color: var(--yellow);
  line-height: var(--lh-tight);
  margin-bottom: 6px;
}
.careers-principle__title {
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  color: var(--text);
  margin-bottom: 5px;
}
/* .careers-principle__body — see .browse-body alias in main.css
   (Task #458). Page-local typography removed. */

/* ── Roles — typographic-list pattern (Task #552) ──────────────
   Mirrors the `.insights-row` / `.work-list__row` treatment used
   on /work and /insights: no card chrome, just a serif title with
   a pillar pill above, italic deck below, and a mono meta line.
   Each row remains expandable in place — clicking the header
   button reveals `.careers-row__body`, which keeps the existing
   prose/meta/footer interior chrome. */
.careers-rows {
  display: flex;
  flex-direction: column;
}
.careers-row {
  display: block;
  border-bottom: 1px solid var(--ink-line);
}
.careers-row:first-child .careers-row__toggle { padding-top: var(--sp-2); }

.careers-row__toggle {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: var(--sp-8) 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: color 0.18s ease;
}
.careers-row__toggle:hover .careers-row__title,
.careers-row__toggle:focus-visible .careers-row__title { color: var(--be-yellow); }
.careers-row__toggle:focus-visible {
  outline: 2px solid var(--be-yellow);
  outline-offset: 4px;
}
.careers-row.open .careers-row__title { color: var(--be-yellow); }

.careers-row__pillar {
  display: inline-block;
  margin-bottom: 14px;
  /* Task #735: faint fallback matches .insights-row__pillar and
     .work-list__sector so unmapped departments read like the other
     lists' neutral labels. */
  color: var(--text-faint);
}
/* Task #728: department pillars carry the same sector accent as their
   filter chip (DEPT_ACCENTS in proof.js emits data-sector). Per-sector
   colours come from the shared pillar-label recipe in main.css
   (Task #731); unmapped departments keep the yellow fallback above. */
.careers-row__title {
  display: block;
  /* Task #735: same title register as .insights-row__title /
     .work-list__client — display medium at sublede. */
  font-family: var(--display);
  font-weight: var(--fw-medium);
  font-size: var(--fs-sublede);
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-headline);
  color: var(--text);
  margin: 0 0 10px;
  transition: color 0.18s ease;
}
.careers-row__deck {
  font-family: var(--display);
  font-style: italic;
  font-weight: var(--fw-light);
  font-size: var(--fs-body);
  line-height: var(--lh-base);
  color: var(--text-mute);
  margin: 0 0 14px;
  /* Spans the full list container — matches .insights-row__deck
     (no reading-measure cap; Task #735). */
}
.careers-row__meta {
  font-family: var(--mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-nav);
  text-transform: uppercase;
  color: var(--text-faint);
}
.careers-row__meta span { opacity: 0.5; }

.careers-row__body {
  padding: var(--sp-1) 0 var(--sp-8);
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}
.careers-row__body[hidden] { display: none; }

@media (max-width: 767px) {
  .careers-row__toggle { padding: var(--sp-6) 0; }
  .careers-row__title { font-size: var(--fs-h3); }
  .careers-row__body { padding-bottom: var(--sp-6); }
}

/* ── Role-row interior styles (kept — Task #704 audit) ──────
   The legacy boxed-card wrapper/head styles (.careers-roles,
   .careers-role, __head*, __dept, __title, __loc, __arrow,
   __summary, __body, __section*, __list, __tags/__tag) were
   deprecated by Task #552 and deleted in Task #704. The
   body-internal styles below (`.careers-role__prose`,
   `.careers-role__meta*`, `.careers-role__footer`,
   `.careers-role__contact`, `.careers-role__avatar*`,
   `.careers-role__poc`, `.careers-role__apply`) are still
   rendered inside `.careers-row__body`, so they stay. */
.careers-role__meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.875rem var(--sp-5);
  margin: 0;
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--ink-line);
}
.careers-role__meta-item {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  min-width: 0;
}
.careers-role__meta-label {
  font-size: var(--fs-eyebrow);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-nav);
  text-transform: uppercase;
  color: rgba(255,255,255,0.32);
  margin: 0;
}
.careers-role__meta-value {
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.78);
  line-height: var(--lh-base);
  margin: 0;
  word-wrap: break-word;
}
.careers-role__prose {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.careers-role__prose p {
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.65);
  line-height: var(--lh-body);
  margin: 0;
}
.careers-role__footer {
  padding-top: var(--sp-4);
  border-top: 1px solid var(--ink-line);
}
.careers-role__contact {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
}
.careers-role__avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: var(--fs-xs);
  font-weight: var(--fw-display);
  color: var(--ink);
  flex-shrink: 0;
  overflow: hidden;
}
.careers-role__avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.careers-role__poc {
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.5);
  flex: 1;
  min-width: 160px;
}
.careers-role__poc strong { color: var(--text); }
.careers-role__apply {
  background: var(--yellow);
  border: none;
  padding: var(--sp-2) 18px;
  font-size: var(--fs-eyebrow);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-nav);
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.15s;
  white-space: nowrap;
}
.careers-role__apply:hover { background: var(--text); }

.careers-empty {
  color: rgba(255,255,255,0.5);
  font-style: italic;
  padding: var(--sp-2) 0;
}

/* The "Who you'll talk to" sub-block (.careers-who*, Task #431) and
   the legacy careers invite banner (.careers-invite*) were removed in
   Task #704 — no markup renders those classes; the /careers foot CTA
   now uses the shared .element-entry primitive directly. */

@media (max-width: 767px) {
  .careers-principles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 639px) {
  .careers-principles { grid-template-columns: 1fr; }
}

/* ============================================================
   CAREERS — Path C prototype refresh (April 2026)
   Layered AFTER the base careers rules above so wins on cascade.
   Hero typography lives in the base block (Task #252); container
   primitives (panel / list-row / element-entry) live in main.css
   (Task #348). Only the typography + label adjustments remain here.
   ============================================================ */
.careers-section__label {
  font-family: var(--mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--text-faint);
  padding-bottom: var(--sp-4);
  margin-bottom: var(--sp-8);
  border-bottom: 1px solid var(--ink-line);
}
.careers-principle__num {
  font-family: var(--display);
  font-weight: var(--fw-display);
  font-size: var(--fs-display);
  line-height: var(--lh-tight);
  color: var(--be-yellow);
  margin-bottom: var(--sp-4);
}
.careers-principle__title {
  font-family: var(--serif);
  font-weight: var(--fw-regular);
  font-size: var(--fs-h2);
  letter-spacing: var(--ls-body);
  color: var(--text);
  margin-bottom: var(--sp-3);
}
/* .careers-principle__body inherits font-family/size/weight/line-height
   from the .browse-body alias in main.css (Task #458). No page-local
   typography needed; keep this rule empty as a documentation anchor. */
.careers-principle__body { /* see .browse-body in main.css */ }
/* The April 2026 overrides for the legacy boxed role cards
   (.careers-role__head / __title / __dept) were removed in Task #704
   along with the base rules they layered over. */

/* ============================================================
   /WORK INDEX — TYPOGRAPHIC LIST + FOOT CTA (Task #425)
   The full portfolio rendered as editorial list rows (numbering
   removed in Task #748 — rows match the Insights/Careers recipe).
   Hover lifts the client name to --be-yellow (colour-only — the
   old 8px hover shift was removed in Task #735). Sector eyebrow
   sits above the title in mono.
   ============================================================ */
.work-list--typographic {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  /* No border-top: the chip rail above already draws the single
     divider between the filters and the list (task #688). */
}
.work-list__row {
  /* Task #748: the index number column is gone — rows are plain
     blocks matching the .insights-row / .careers-row recipe (sector
     eyebrow above, then the content column, no left gutter). */
  display: block;
  /* Task #735: row rhythm matches the /insights canonical list —
     32px vertical padding, first row normalised, no hover shift. */
  padding: var(--sp-8) 0;
  border-bottom: 1px solid var(--ink-line);
  text-decoration: none;
  color: inherit;
}
.work-list__row:first-child { padding-top: var(--sp-2); }
.work-list__row:focus-visible {
  outline: 2px solid var(--be-yellow);
  outline-offset: 4px;
}
.work-list__content { display: block; min-width: 0; }
.work-list__client {
  display: block;
  /* Task #735: same title register as .insights-row__title /
     .careers-row__title — display medium at sublede, headline caps. */
  font-family: var(--display);
  font-weight: var(--fw-medium);
  font-size: var(--fs-sublede);
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-headline);
  color: var(--text);
  transition: color 0.18s ease;
}
.work-list__row:hover .work-list__client,
.work-list__row:focus-visible .work-list__client {
  color: var(--be-yellow);
}
/* Sub-line under each work-list row. Color is --text-mute per the v1.1
   spec so the muted prose tracks the canonical "secondary text on dark"
   register rather than a paper-with-opacity approximation. Task #488
   Phase 3. */
.work-list__sub {
  display: block;
  margin-top: 6px;
  /* Task #735: deck register matches .insights-row__deck /
     .careers-row__deck (display italic light). */
  font-family: var(--display);
  font-style: italic;
  font-weight: var(--fw-light);
  font-size: var(--fs-body);
  line-height: var(--lh-base);
  color: var(--text-mute);
  /* Spans the full content column (Task #680) — no reading-measure cap. */
}
.work-list__pills {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.work-list__pill {
  font-family: var(--mono);
  font-size: var(--fs-label);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-nav);
  text-transform: uppercase;
  padding: 2px var(--sp-2);
  border: 1px solid var(--ink-line);
  border-radius: var(--r-full);
  color: var(--text-mute);
}
/* Sector eyebrow above the title (task #688) — mirrors the Insights
   row pillar placement (.insights-row__pillar). */
.work-list__sector {
  display: inline-block;
  margin-bottom: 14px;
  /* Task #735: same label recipe as the .eyebrow pillar labels on
     /insights and /careers (mono, eyebrow size, caps tracking, faint
     fallback). Per-sector colours come from the shared pillar-label
     recipe in main.css (Task #731) via the row's data-sector. */
  font-family: var(--mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--text-faint);
  white-space: nowrap;
}
@media (max-width: 767px) {
  .work-list__row {
    padding: var(--sp-6) 0;
  }
  .work-list__client { font-size: var(--fs-h3); }
}
@media (prefers-reduced-motion: reduce) {
  .work-list__row,
  .work-list__client { transition: none; }
}

/* Foot CTA — shared element-entry primitive sits beneath the
   index, inviting the visitor into a discovery conversation. */
.work-foot-cta {
  margin-top: 72px;
  padding-top: var(--sp-10);
  border-top: 1px solid var(--ink-line);
  display: flex;
  justify-content: center;
}

/* Load-more — progressive disclosure beneath /work index.
   Sits flush against the typographic list; clicking reveals the
   next batch (12) in place. */
.work-more {
  display: flex;
  justify-content: center;
  margin: var(--sp-8) 0 var(--sp-2);
}
.work-more[hidden] { display: none; }
.work-more__btn:focus-visible { outline: 2px solid var(--paper); outline-offset: 3px; }
.work-more__btn {
  font-family: var(--mono);
  font-size: var(--fs-eyebrow);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  padding: var(--sp-3) var(--sp-5);
  background: transparent;
  color: var(--paper);
  border: 1px solid var(--ink-line);
  border-radius: var(--r-full);
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}
.work-more__btn:hover { border-color: var(--paper); background: rgba(255,255,255,0.04); }
.work-more__remaining { opacity: 0.6; margin-left: 6px; }
