/* Recruitment case study: a short narrative, one workflow, optional technical depth. */
.agent-case { --w: 78rem; --forest: #252d27; --sage: #d3df9b; }
.agent-case:focus { outline: none; }
.agent-case p { color: var(--muted); }
.agent-case strong { color: var(--ink); font-weight: 700; }
.agent-case h2 { font-size: clamp(1.8rem, 3.2vw, 2.65rem); line-height: 1.18; font-weight: 600; letter-spacing: -.045em; }
.case-eyebrow, .case-section-label { font: .65rem/1.8 var(--mono); letter-spacing: .075em; text-transform: uppercase; }
.agent-case .case-eyebrow { color: var(--accent); }
.case-hero { padding: 3.75rem 0 0; }
.case-hero > .case-eyebrow { display: flex; flex-wrap: wrap; gap: .8rem; color: var(--muted); }
.case-hero > .case-eyebrow > span { color: var(--accent); }
.case-intro { display: grid; grid-template-columns: minmax(0, 1fr) 17.5rem; grid-template-areas: "intro proof"; gap: 2.5rem 4rem; align-items: start; margin: 2.5rem 0; }
.intro-copy { grid-area: intro; }
.intro-actions { display: flex; flex-wrap: wrap; gap: .25rem 2rem; }
.intro-actions .case-text-link:last-child { color: var(--ink); }
.case-intro h1 { font-size: clamp(2.8rem, 4.7vw, 4.2rem); font-weight: 600; letter-spacing: -.06em; line-height: 1.08; text-wrap: initial; }
.case-intro h1 > span { color: var(--accent); }
.case-lede { font-size: 1.05rem; line-height: 1.85; max-width: 38rem; margin-top: 1.5rem; }
.case-text-link { display: inline-flex; align-items: center; gap: 1.2rem; font-size: .83rem; font-weight: 600; min-height: 44px; }
.case-intro .case-text-link { margin-top: 1rem; }
.case-proof { grid-area: proof; border-top: 2px solid var(--accent); padding: 1.1rem 0 0 1.5rem; border-left: 1px solid var(--line); }
.case-proof .case-eyebrow { font-size: .6rem; color: var(--muted); }
.agent-case .case-proof .proof-title { font-size: 1.8rem; line-height: 1.2; letter-spacing: -.04em; margin: .85rem 0; }
.case-proof > p { font-size: .82rem; line-height: 1.7; }
.case-proof a { display: inline-flex; align-items: center; gap: 1.5rem; font-size: .75rem; min-height: 44px; margin-top: .4rem; }
.proof-date { display: block; margin-top: .5rem; font: .55rem/1.8 var(--mono); color: var(--faint); }
.case-proof .proof-metric { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.proof-metric strong { font-size: 1.5rem; letter-spacing: -.04em; margin-right: .25rem; }
.proof-metric span { display: block; margin-top: .3rem; font-size: .65rem; color: var(--faint); }
.role-overview { grid-area: roles; display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 1.5rem; padding: 1.5rem; background: var(--surface); }
.visual-icon { display: block; font-size: 1.5rem; line-height: 1.4; margin-bottom: .55rem; }
.agent-case .role-overview h2 { font-size: .95rem; line-height: 1.4; letter-spacing: -.02em; }
.role-overview p { font-size: .78rem; margin-top: .35rem; }
.flow-arrow { color: var(--accent); font-size: 1.3rem; }
.case-nav { display: flex; flex-wrap: wrap; gap: 1rem 2.25rem; border-block: 1px solid var(--line); padding: .55rem 0; }
.case-nav a { display: flex; align-items: center; gap: .65rem; min-height: 44px; color: var(--accent); font: .65rem var(--mono); }
.case-nav a span { font: .75rem var(--sans); color: var(--muted); }
.case-nav a:hover span { color: var(--accent); }
.agent-case .case-section { padding: 4.5rem 0; border-top: 1px solid var(--line); }
.agent-case .case-context { border-top: 0; }
.case-context,.case-next { display: grid; grid-template-columns: 14rem minmax(0,1fr); gap: 2rem; }
.case-section-label { color: var(--faint); padding-top: .5rem; }
.case-copy { max-width: 45rem; }
.case-copy p { margin-top: 1.15rem; font-size: .95rem; line-height: 1.85; }
.case-section-heading { max-width: 43rem; margin-bottom: 2.25rem; }
.case-section-heading h2 { margin-top: 1rem; }
.case-section-heading > p:last-child:not(.case-eyebrow) { margin-top: 1.15rem; font-size: .95rem; line-height: 1.85; }

/* The diagram uses real text and an ordered list, reflowing vertically on small screens. */
.delivery-map { background: var(--forest); color: #f1f2e9; padding: 2.25rem; }
.delivery-input { display: flex; gap: 1.25rem; align-items: center; border-bottom: 1px solid #546052; padding-bottom: 1.75rem; }
.map-owner { flex-shrink: 0; padding: .3rem .8rem; border: 1px solid #8d9a7c; border-radius: 2rem; font: .6rem/1.7 var(--mono); color: var(--sage); }
.delivery-input h3 { font-size: 1rem; font-weight: 600; }
.delivery-input p { font-size: .78rem; color: #bec5b8; margin-top: .3rem; }
.input-arrow { margin-left: auto; color: var(--sage); font-size: 1.5rem; }
.delivery-stages { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 1.25rem; list-style: none; padding: 0; margin: 2rem 0; }
.delivery-stages li { position: relative; min-width: 0; }
.delivery-stages li:not(:last-child)::after { content: "→"; position: absolute; top: .15rem; left: 3rem; width: calc(100% - 2rem); text-align: right; color: #8d9a7c; border-bottom: 1px solid #546052; line-height: 1.2rem; }
.stage-number { display: grid; place-items: center; width: 2rem; height: 2rem; border: 1px solid #8d9a7c; border-radius: 50%; color: var(--sage); font: .65rem var(--mono); margin-bottom: 1.5rem; }
.stage-owner { display: block; color: #c5ccb9; font: .55rem/1.7 var(--mono); letter-spacing: .03em; text-transform: uppercase; }
.delivery-stages h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -.025em; margin: .45rem 0 .7rem; }
.delivery-stages p { font-size: .81rem; line-height: 1.8; color: #bec5b8; }
.delivery-stages h3 > span { font-size: 1.15rem; }
.delivery-exits { border-top: 1px solid #546052; padding-top: 1.3rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.delivery-exits p { font-size: .73rem; color: #bec5b8; }
.delivery-exits strong { color: #f1f2e9; display: inline; margin-right: .4rem; font-weight: 600; }
.delivery-exits p > span { color: var(--sage); margin-right: .5rem; font-size: 1rem; }
.delivery-map figcaption { margin-top: 1.2rem; font-size: .65rem; line-height: 1.7; color: #bec5b8; }
.workflow-boundary { display: grid; grid-template-columns: 14rem minmax(0,1fr); gap: 2rem; margin-top: 1.75rem; }
.workflow-boundary .case-eyebrow { color: var(--faint); }
.workflow-boundary p { font-size: .84rem; }

/* Show the judgement behind the implementation, without repeating the workflow. */
.decision { display: grid; grid-template-columns: 19rem minmax(0,1fr); gap: 3rem; padding: 2rem 0; border-top: 1px solid var(--line); }
.decision-number { font: .65rem var(--mono); color: var(--accent); }
.decision h3 { font-weight: 600; font-size: 1.5rem; line-height: 1.2; letter-spacing: -.035em; margin-top: .8rem; }
.decision-discipline { display: block; color: var(--faint); font: .6rem/1.7 var(--mono); margin-top: 1rem; }
.decision p { font-size: .9rem; line-height: 1.85; }
.decision .decision-evidence { margin-top: 1rem; padding-left: 1rem; border-left: 2px solid var(--line); font-size: .82rem; }
.decision:last-child { padding-bottom: 0; }
.problem-solution { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items: stretch; }
.problem-solution > div { padding: 1rem; background: var(--surface); }
.problem-solution > div:last-child { background: #e8ede2; }
.problem-solution .flow-arrow { align-self: center; }
.scenario-label { display: block; font: .55rem/1.7 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: .7rem; }
.problem-solution h4 { font-size: .9rem; font-weight: 600; line-height: 1.5; }
.evidence-checks { display: flex; flex-wrap: wrap; gap: .4rem 1rem; list-style: none; margin: .85rem 0 0; font-size: .7rem; color: var(--muted); }
.evidence-checks li::before { content: "✓"; color: #3c633f; margin-right: .35rem; }
.quoll-case { display: grid; grid-template-columns: 19rem minmax(0,1fr); gap: 3rem; padding: 2rem; background: var(--surface); }
.quoll-heading h3 { font-size: 3.5rem; font-weight: 600; letter-spacing: -.05em; margin-top: .7rem; line-height: 1.1; }
.quoll-heading h3 span { display: block; font: .86rem/1.7 var(--sans); letter-spacing: 0; margin-top: .65rem; }
.quoll-heading .case-text-link { margin-top: 1rem; }
.quoll-case p { font-size: .9rem; line-height: 1.85; }
.quoll-case p + p { margin-top: 1rem; }
.product-preview { margin: 2rem 0 2.5rem; }
.product-preview > a { display: block; background: #181a1b; }
.product-preview img { display: block; width: 100%; height: auto; }
.product-preview figcaption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1.5rem; padding-top: .75rem; font-size: .7rem; color: var(--faint); }
.product-preview figcaption a { display: inline-flex; align-items: center; min-height: 24px; gap: .5rem; }
.delivery-example { padding: 2rem 0; border-block: 1px solid var(--line); scroll-margin-top: 6rem; }
.quoll-case + .delivery-example { margin-top: 2rem; }
.example-heading { display: flex; align-items: start; justify-content: space-between; gap: 1.5rem; }
.example-heading h3 { font-size: 1.5rem; line-height: 1.35; letter-spacing: -.03em; font-weight: 600; margin-top: .6rem; }
.example-date { flex-shrink: 0; font: .6rem/1.8 var(--mono); color: var(--faint); padding-top: .25rem; }
.example-steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 2rem; list-style: none; margin: 1.75rem 0; padding: 0; }
.example-steps li { padding-top: 1rem; border-top: 1px solid var(--line); }
.example-steps h4 { font-size: .95rem; font-weight: 600; }
.example-steps p { font-size: .85rem; margin-top: .5rem; line-height: 1.8; }
.example-followup { display: flex; align-items: start; gap: 1rem; padding: 1.2rem; background: var(--surface); }
.example-followup .visual-icon { margin: 0; flex-shrink: 0; }
.example-followup p { font-size: .85rem; line-height: 1.8; }
.example-sources { display: flex; flex-wrap: wrap; gap: .5rem 2rem; margin-top: .75rem; }
.example-sources .case-text-link { font-size: .75rem; }
.platform-intro { margin: 2.5rem 0 1.5rem; }
.platform-intro h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: -.02em; }
.platform-intro p { font-size: .85rem; margin-top: .5rem; }
.platform-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 2rem; }
.platform-grid > div { border-top: 1px solid var(--line); padding-top: 1rem; }
.platform-grid h4 { font-size: .95rem; font-weight: 600; margin-top: .6rem; }
.platform-grid h4 > span { margin-right: .4rem; }
.input-output { margin-top: 1.25rem; }
.input-output > div { position: relative; padding-left: 1rem; border-left: 1px solid var(--line); }
.input-output > div + div { margin-top: 1rem; }
.input-output > div + div::before { content: "↓"; position: absolute; left: -.3rem; top: -.9rem; background: var(--bg); color: var(--accent); font-size: .75rem; }
.input-output dt { font: .6rem/1.7 var(--mono); text-transform: uppercase; color: var(--faint); }
.input-output dd { font-size: .85rem; margin-top: .3rem; }
.input-output > div:last-child dd { font-weight: 600; }
.platform-grid p { font-size: .82rem; margin-top: .6rem; }
.test-proof { margin-top: 1.2rem; padding: .25rem 1rem 1rem; background: var(--surface); }
.test-proof strong, .test-proof span { display: block; }
.test-proof span { margin-top: .25rem; font-size: .8rem; }
.engineering-details { border-top: 1px solid var(--line); }
.engineering-details details { border-bottom: 1px solid var(--line); scroll-margin-top: 8rem; }
.engineering-details summary { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.3rem .25rem; cursor: pointer; list-style: none; }
.engineering-details summary::-webkit-details-marker { display: none; }
.engineering-details summary strong { display: block; font-size: 1rem; font-weight: 600; }
.engineering-details summary small { display: block; color: var(--faint); font-size: .8rem; margin-top: .2rem; }
.engineering-details summary:hover strong { color: var(--accent); }
.engineering-details summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.detail-toggle { width: 1.5rem; height: 1.5rem; position: relative; flex-shrink: 0; }
.detail-toggle::before,.detail-toggle::after { content: ""; position: absolute; top: 50%; left: 25%; width: 50%; height: 1px; background: var(--accent); }
.detail-toggle::after { transform: rotate(90deg); }
details[open] .detail-toggle::after { transform: rotate(0); }
.detail-body { max-width: 48rem; padding: 0 .25rem 1.5rem; }
.detail-body p { margin-top: .9rem; font-size: .9rem; line-height: 1.85; }
.detail-body code { font: .78rem var(--mono); overflow-wrap: anywhere; background: var(--surface); padding: .1rem .3rem; }
.measurement-list { margin-top: 1.25rem; }
.measurement-list > div { display: grid; grid-template-columns: 15rem 1fr; gap: 1.5rem; border-top: 1px solid var(--line); padding: .8rem 0; font-size: .8rem; }
.measurement-list dt { font-weight: 600; }
.measurement-list dd { color: var(--muted); }
.case-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; margin-top: 1.75rem; }
.case-contact { display: inline-flex; align-items: center; gap: 2rem; min-height: 44px; padding: .6rem 1.2rem; background: var(--ink); color: var(--bg); border-radius: 2rem; font-size: .85rem; }
.case-contact:hover { color: white; background: var(--accent); }
.agent-case .case-footer { padding: 1.5rem 0 2rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem 2rem; }
.agent-case .case-footer > p { font-size: .65rem; margin: 0; border: 0; padding: 0; }

@media (max-width: 1050px) {
  .case-intro { gap: 2.5rem; grid-template-columns: minmax(0,1fr) 14rem; }
  .case-intro h1 { font-size: 3.25rem; }
  .case-context,.case-next,.workflow-boundary { grid-template-columns: 11rem minmax(0,1fr); }
  .decision,.quoll-case { grid-template-columns: 14rem minmax(0,1fr); gap: 2rem; }
  .delivery-map { padding: 1.75rem; }
  .delivery-stages { gap: 1rem; }
}
@media (max-width: 850px) {
  .role-overview { gap: .8rem; padding: 1.25rem; }
  .problem-solution { gap: .6rem; }
  .problem-solution > div { padding: .8rem; }
  .case-intro { grid-template-columns: minmax(0,1fr); grid-template-areas: "intro" "proof"; }
  .case-intro h1 { font-size: clamp(2.4rem,6.8vw,3.6rem); }
  .case-proof { padding: 1.25rem 0 0; border-left: 0; max-width: 38rem; }
  .case-context,.case-next { grid-template-columns: 1fr; gap: 1.25rem; }
  .delivery-stages { grid-template-columns: 1fr; gap: 0; margin: 1.5rem 0; }
  .delivery-stages li { padding: 0 0 1.8rem 3.5rem; }
  .delivery-stages li:last-child { padding-bottom: 0; }
  .stage-number { position: absolute; left: 0; top: 0; }
  .delivery-stages li:not(:last-child)::after { content: ""; width: 1px; height: calc(100% - 2.5rem); left: 1rem; top: 2.25rem; background: #546052; border: 0; }
  .delivery-stages h3 { margin: .2rem 0 .4rem; }
  .delivery-stages p { max-width: 32rem; }
  .decision { grid-template-columns: 12rem minmax(0,1fr); }
  .quoll-case { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .example-heading { flex-direction: column; gap: .75rem; }
  .example-steps { grid-template-columns: 1fr; gap: 1.25rem; }
  .example-steps li { display: grid; grid-template-columns: 2rem 1fr; column-gap: .75rem; }
  .example-steps .visual-icon { grid-row: span 2; }
  .example-steps p { grid-column: 2; }
  .role-overview { grid-template-columns: 1fr; gap: .75rem; }
  .role-overview > div { display: grid; grid-template-columns: 2rem 1fr; column-gap: .75rem; }
  .role-overview .visual-icon { grid-row: span 2; margin-bottom: 0; }
  .role-overview > .flow-arrow { padding-left: .5rem; line-height: 1; transform: rotate(90deg); width: 2rem; text-align: center; }
  .role-overview > .flow-arrow:nth-of-type(2) { transform: none; }
  .case-hero { padding-top: 2rem; }
  .case-hero > .case-eyebrow { font-size: .53rem; gap: .5rem; }
  .case-intro { margin-top: 1.75rem; gap: 1.75rem; }
  .case-intro h1 { font-size: clamp(2rem,8vw,3rem); }
  .case-lede { font-size: .95rem; }
  .case-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 0 .5rem; }
  .agent-case .case-section { padding-block: 3rem; }
  .case-copy p,.case-section-heading > p:last-child:not(.case-eyebrow) { font-size: .9rem; }
  .delivery-map { padding: 1.4rem; }
  .delivery-input { flex-wrap: wrap; gap: .75rem; }
  .delivery-input > div { flex: 1 1 12rem; }
  .input-arrow { display: none; }
  .delivery-input h3 { font-size: .95rem; }
  .delivery-exits { grid-template-columns: 1fr; gap: .8rem; }
  .workflow-boundary { grid-template-columns: 1fr; gap: .5rem; }
  .decision { grid-template-columns: 1fr; gap: 1.25rem; }
  .decision h3 br { display: none; }
  .decision-discipline { margin-top: .5rem; }
  .quoll-case { padding: 1.4rem; gap: 1.5rem; }
  .platform-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .engineering-details summary strong { font-size: .9rem; }
  .engineering-details summary small { font-size: .75rem; }
  .measurement-list > div { grid-template-columns: 1fr; gap: .35rem; }
}
@media (max-width: 380px) {
  .problem-solution { grid-template-columns: 1fr; }
  .problem-solution .flow-arrow { justify-self: center; transform: rotate(90deg); line-height: 1; }
}
@media print {
  .case-nav,.case-actions,.case-text-link { display: none; }
  .case-hero { padding-top: 0; }
  .agent-case .case-section { padding-block: 1.5rem; }
  .delivery-map { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .decision,.case-proof { break-inside: avoid; }
}
