/* cases.css — the rules of styles/components.css that only cases.html uses, moved out of the shared file
   (2026-09-30) in their original order. Loaded right after components.css on cases.html only; a rule that another
   page or a prototype in claude-design-blocks/ can use stays in components.css. */

.cases-intro { max-width: 58ch; margin: 28px 0 0; font-size: 16px; line-height: 1.6; color: var(--text-muted); }

/* status legend — replaces a per-card "In production" label: mark the exceptions, not the rule */
.cases-legend { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-muted); margin: -6px 0 22px; }
/* ---- FLAGSHIP band ---- */
.cases-flagwrap { margin-bottom: 18px; }
.case-flag {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 44px; align-items: center;
  padding: 40px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid color-mix(in srgb, var(--accent) 32%, var(--border));
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(var(--card-blur)); -webkit-backdrop-filter: blur(var(--card-blur));
  transition: border-color 0.4s var(--ease), box-shadow 0.5s var(--ease);
}
.case-flag::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(120% 100% at 100% 0%, color-mix(in srgb, var(--accent) 15%, transparent), transparent 60%); }
.case-flag:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); box-shadow: var(--shadow-hover); }
.cf-eyebrow { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-text); display: flex; align-items: center; gap: 11px; }
.cf-eyebrow .pip { width: 20px; height: 1px; background: linear-gradient(90deg, var(--accent), transparent); }
.case-flag h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(26px, 2.6vw, 36px);
  letter-spacing: -0.03em; line-height: 1.05; margin-top: 16px; }
.cf-desc { color: var(--text-muted); font-size: 15px; line-height: 1.6; max-width: 50ch; margin-top: 14px; }
.cf-big { display: flex; align-items: baseline; gap: 15px; margin-top: 26px; }
.cf-big .n { font-family: var(--font-display); font-weight: 600; font-size: clamp(52px, 6vw, 84px);
  line-height: 0.9; letter-spacing: -0.04em; }
.cf-big .nl { font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); max-width: 17ch; line-height: 1.4; }
.cf-stack { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 24px; }
.cf-stack span { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-muted);
  border: 1px solid var(--border); border-radius: 7px; padding: 5px 9px; }
.cf-cap { font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); letter-spacing: 0.04em;
  display: flex; justify-content: space-between; margin-bottom: 10px; }
.cf-area { width: 100%; height: auto; display: block; }
.cf-axis { stroke: var(--border-strong); stroke-width: 1; }
.cf-ar { fill: url(#cfArea); opacity: 0; transition: opacity 1s var(--ease) 0.6s; }
.cf-ln { fill: none; stroke: var(--accent-2); stroke-width: 2.2;
  filter: drop-shadow(0 0 8px color-mix(in srgb, var(--accent-2) 55%, transparent));
  stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.1s var(--ease) 0.2s; }
.cf-area .dot { fill: var(--bg); stroke: var(--accent-2); stroke-width: 2; }
.cf-area text { font-family: var(--font-mono); font-size: 9px; fill: var(--text-faint); }
/* the labels are in viewBox units (440 wide): they grow as the chart narrows, so none renders under 11px */
.cf-chart { container-type: inline-size; }
@container (width < 538px) { .cf-area text { font-size: 11px; } }
@container (width < 440px) { .cf-area text { font-size: 13.75px; } }
@container (width < 352px) { .cf-area text { font-size: 16px; } }
@container (width < 302px) { .cf-area text { font-size: 18.5px; } }
/* from here the edge labels outgrow the viewBox: let them overhang into the card padding */
@container (width < 262px) { .cf-area { overflow: visible; } .cf-area text { font-size: 22px; } }
@container (width < 220px) { .cf-area text { font-size: 26px; } .cf-area text:nth-of-type(even) { display: none; } }
.case-flag.in .cf-ln { stroke-dashoffset: 0; }
.case-flag.in .cf-ar { opacity: 1; }
/* ---- capability groups ---- */
.cap-group { margin-top: 52px; }
.cap-group.group-hidden { display: none; }
/* h2 tag for outline order; the element carries no text of its own (children set
   their own font), but neutralize the global h1,h2,h3 rule so nothing changes visually */
.cap-head { display: flex; align-items: center; gap: 16px; margin-bottom: 22px;
  font: inherit; letter-spacing: normal; text-wrap: initial; }
.cap-t { font-family: var(--font-display); font-weight: 500; font-size: 19px; letter-spacing: -0.01em; color: var(--text); }
.cap-ln { flex: 1; height: 1px; background: var(--border); }
.cap-ct { font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); white-space: nowrap; }
/* /services pages link to a card by its id (ZEN-337): the jump stops below the sticky header */
.case-card[id], .case-flag[id] { scroll-margin-top: 110px; }
/* "Pilot delivered" is a factual status, not a warning — neutral, sentence case, no amber */
.case-status.pilot { color: var(--text-muted); text-transform: none; letter-spacing: 0.01em; }
.case-flag.reveal { transition: opacity .6s var(--ease), transform .6s var(--ease), border-color 0.4s var(--ease), box-shadow 0.5s var(--ease); }
.cases-empty { margin-top: 36px; text-align: center; font-family: var(--font-mono); font-size: 13px; color: var(--text-faint); }
/* ---- two-row filter bar ---- */
.case-filterbar { display: flex; flex-direction: column; gap: 12px; margin: 0 0 8px; }
.ff-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ff-label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.02em; text-transform: none;
  color: var(--text-faint); width: 92px; flex-shrink: 0; }
.ff-chips { display: flex; flex-wrap: wrap; gap: 8px; }
/* ---- filter show/hide ---- */
.case-card.is-hidden, .case-flag.is-hidden { display: none; }
.case-card.is-hiding { opacity: 0; transform: scale(0.985); pointer-events: none; transition: opacity 0.22s var(--ease), transform 0.22s var(--ease); }
@keyframes caseShow { from { opacity: 0; transform: translateY(12px) scale(0.99); } to { opacity: 1; transform: none; } }
.case-card.case-show { animation: caseShow 0.5s var(--ease) both; }
@media (prefers-reduced-motion: reduce) {
  .case-card.case-show { animation: none; }
  .case-card.is-hiding { transition: none; }
  .cf-ln { stroke-dashoffset: 0; } .cf-ar { opacity: 1; }
}
@media (max-width: 1024px) {
  .case-flag { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 680px) {
  .ff-label { width: auto; }
}
@media (max-width: 640px) {
  /* the desktop break ("…measured in / production") strands "in" on its own line at
     phone width; drop it */
  .cases-h1 br { display: none; }
}
