/* Shared case studies: website captures and clearly labelled system illustrations. */
.case-portfolio { background: linear-gradient(180deg,var(--bg),#111725); border-block: 1px solid var(--border); }
.case-portfolio .section-head { max-width: 800px; }
.case-card-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px; }
.case-card { min-width: 0; border: 1px solid #344057; border-radius: 16px; background: var(--bg); overflow: hidden; }
.case-card-link { display: flex; flex-direction: column; height: 100%; color: var(--text); }
.case-card-link:hover { color: var(--text); }
.case-card-link:focus-visible { outline-offset: -4px; outline-width: 3px; }
.case-card-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 1px solid var(--border); background: #fff; }
.case-card-image { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .3s ease; }
.case-card-link:hover .case-card-image { transform: scale(1.025); }
.case-card-index { position: absolute; bottom: 12px; right: 14px; display: grid; place-items: center; width: 36px; height: 36px; color: var(--gold-light); background: #0a0e1aee; border: 1px solid #d4a94a66; border-radius: 50%; font-size: .72rem; }
.case-card-copy { padding: 28px; display: flex; flex-direction: column; flex: 1; }
.case-tag { display: block; color: var(--gold-light); font-size: .7rem; letter-spacing: .07em; text-transform: uppercase; line-height: 1.7; }
.case-card h3 { font-size: clamp(1.7rem,3vw,2.2rem); letter-spacing: -.035em; margin: 10px 0 16px; }
.case-card-copy p { color: #b9c1d2; font-size: .94rem; line-height: 1.85; margin-bottom: 26px; }
.case-card-read { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: auto; padding-top: 20px; border-top: 1px solid var(--border); color: var(--gold-light); font-size: .84rem; font-weight: 600; }
.case-card-read span { font-size: 1.2rem; }
.case-card-exitsignal { grid-column: 1 / -1; border-color: #665438; background: linear-gradient(120deg,#141d2e,#101725); }
.case-card-exitsignal .case-card-link { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,1fr); align-items: stretch; }
.case-card-exitsignal .case-card-media { aspect-ratio: auto; min-height: 300px; background: #0a0e1a; border-bottom: 0; border-right: 1px solid #344057; }
.case-card-exitsignal .case-card-image { object-fit: contain; object-position: center; }
.case-card-exitsignal .case-card-copy { padding: 32px; }
.case-card-exitsignal .case-card-copy p { margin-bottom: 18px; }
.case-card-state { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; border: 1px solid #78643f; border-radius: 100px; padding: 5px 11px; font-size: .7rem; line-height: 1.5; color: #efd69d; margin-bottom: 22px; }
.case-card-state::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: #d4a94a; }
.case-hero { padding: 38px 0 64px; background: radial-gradient(ellipse at 90% 0%,#d4a94a0c,transparent 60%); }
.case-back { display: inline-block; color: #b9c1d2; font-size: .8rem; padding: 8px 0; margin-bottom: 42px; }
.case-hero-grid { display: grid; grid-template-columns: minmax(0,1fr) 280px; gap: 64px; align-items: start; }
.case-hero h1 { font-size: clamp(2.1rem,4.1vw,3.5rem); line-height: 1.12; letter-spacing: -.045em; margin-bottom: 24px; overflow-wrap: break-word; }
.case-hero .lead { font-size: 1.08rem; line-height: 1.9; color: #b9c1d2; }
.case-site-link { display: inline-flex; gap: 16px; align-items: center; padding: 12px 0; margin-top: 16px; font-size: .9rem; }
.case-status { padding: 18px 20px; margin-top: 24px; border: 1px solid #645337; border-left: 2px solid var(--gold); border-radius: 0 8px 8px 0; background: #d4a94a07; }
.case-status > span { display: block; color: var(--gold-light); font-size: .73rem; font-weight: 600; margin-bottom: 8px; }
.case-status p { color: #d2d7e1; font-size: .88rem; line-height: 1.75; }
.case-private-note { margin-top: 14px; color: #a6b1c4; font-size: .78rem; line-height: 1.8; }
.case-role { background: #111827; border: 1px solid #3e392d; border-top: 2px solid var(--gold); border-radius: 0 0 12px 12px; padding: 26px; }
.case-role-label { color: var(--muted); font-size: .68rem; text-transform: uppercase; letter-spacing: .09em; line-height: 1.7; display: block; }
.case-person { font-size: 1.85rem; font-weight: 600; line-height: 1.1; letter-spacing: -.04em; margin: 22px 0; }
.case-person-rule { display: block; width: 35px; height: 2px; background: var(--gold); margin-top: 22px; }
.case-role ul { list-style: none; display: grid; gap: 10px; }
.case-role li { font-size: .82rem; color: #ccd2de; }
.case-role-domain { display: block; border-top: 1px solid var(--border); margin-top: 24px; padding-top: 18px; color: var(--gold-light); font-size: .78rem; }
.case-showcase { padding: 0 0 60px; }
.case-section-label { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-bottom: 18px; }
.case-section-label h2 { margin: 0; font-size: .8rem; font-weight: 500; color: var(--muted); }
.case-section-label > span { color: var(--gold-light); font-size: .76rem; }
.case-browser-bar { display: flex; justify-content: space-between; align-items: center; padding: 10px 18px; background: #1a2233; border: 1px solid #344057; border-radius: 12px 12px 0 0; color: #b6bed0; font-size: .69rem; }
.case-browser-dots { color: #667187; letter-spacing: 4px; font-size: .55rem; }
.case-screen-image { width: 100%; height: auto; background: #fff; border: 1px solid #344057; border-top: 0; border-radius: 0 0 8px 8px; }
.case-showcase figcaption { padding-top: 16px; color: #b9c1d2; font-size: .77rem; line-height: 1.8; }
.case-showcase figcaption small { display: block; color: var(--muted); font-size: .7rem; margin-top: 5px; }
.case-story { border-top: 1px solid var(--border); padding: 60px 0 0; }
.case-story-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.case-story-intro h2 { font-size: clamp(1.7rem,3vw,2.4rem); letter-spacing: -.035em; }
.case-story-intro > p { font-size: 1rem; line-height: 1.9; color: #b9c1d2; }
.case-steps-heading { font-size: .8rem; color: var(--muted); font-weight: 500; margin: 48px 0 20px; }
.case-steps { list-style: none; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 26px; }
.case-steps li { border-top: 1px solid #49505e; padding-top: 22px; }
.case-step-number { color: var(--gold-light); font-size: .74rem; font-variant-numeric: tabular-nums; }
.case-steps h3 { margin: 18px 0 12px; font-size: 1.1rem; }
.case-steps p { color: #b9c1d2; line-height: 1.85; font-size: .89rem; }
.case-outcome { margin-top: 50px; padding: 30px 34px; background: #151c2e; border-left: 2px solid var(--gold); }
.case-outcome .eyebrow { font-size: .7rem; }
.case-outcome > p { font-size: clamp(1.1rem,2.4vw,1.35rem); line-height: 1.7; max-width: 960px; }
.case-extra { padding: 60px 0 0; }
.case-workflow,.case-automation { padding: 60px 0 0; }
.case-workflow .section-head,.case-automation .section-head { max-width: 820px; margin-bottom: 28px; }
.case-workflow h2,.case-automation h2 { font-size: clamp(1.7rem,3vw,2.4rem); letter-spacing: -.035em; }
.case-workflow .section-head p,.case-automation .section-head p { margin-top: 16px; color: #b9c1d2; font-size: .95rem; line-height: 1.85; }
.case-workflow-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.case-workflow-grid li { min-width: 0; display: flex; gap: 16px; padding: 24px 20px; border: 1px solid #344057; border-radius: 10px; background: #111827; }
.case-workflow-number { flex: 0 0 auto; color: var(--gold-light); font-size: .78rem; line-height: 1.7; font-variant-numeric: tabular-nums; }
.case-workflow-grid h3 { font-size: 1rem; line-height: 1.4; margin-bottom: 12px; }
.case-workflow-grid p { color: #b9c1d2; font-size: .87rem; line-height: 1.8; }
.case-automation-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; }
.case-automation-panel { min-width: 0; border: 1px solid #344057; border-top: 2px solid #637894; border-radius: 0 0 12px 12px; padding: 28px; background: #111827; }
.case-human-panel { border-color: #645337; border-top-color: var(--gold); background: linear-gradient(130deg,#d4a94a08,transparent),#111827; }
.case-automation-panel h3 { margin-bottom: 22px; font-size: 1.1rem; line-height: 1.5; }
.case-human-panel h3 { color: var(--gold-light); }
.case-automation-panel ul { list-style: none; padding: 0; display: grid; gap: 16px; }
.case-automation-panel li { position: relative; padding-left: 18px; color: #c7cedb; font-size: .9rem; line-height: 1.8; }
.case-automation-panel li::before { content: ''; position: absolute; left: 0; top: .7em; width: 5px; height: 5px; border-radius: 50%; background: #879bb9; }
.case-human-panel li::before { background: var(--gold); }
.case-extra .section-head { margin-bottom: 28px; max-width: 820px; }
.case-extra h2 { font-size: clamp(1.7rem,3vw,2.4rem); letter-spacing: -.035em; }
.case-decisions { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; }
.case-decision { padding: 26px; border: 1px solid #344057; border-radius: 12px; background: #111827; }
.case-decision h3 { font-size: 1.05rem; margin: 18px 0 12px; }
.case-decision p,.case-system-foundation p { font-size: .89rem; line-height: 1.85; color: #b9c1d2; }
.case-system-foundation { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); gap: 48px; margin-top: 38px; padding-top: 30px; border-top: 1px solid #344057; }
.case-system-foundation h3 { font-size: 1.05rem; margin-bottom: 14px; }
.case-stack ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 9px; }
.case-stack li { padding: 8px 11px; border: 1px solid #46516a; border-radius: 7px; color: #d2d7e1; font-size: .75rem; line-height: 1.5; }
.case-contact { padding: 60px 0; }
.case-contact-box { padding: 42px; text-align: center; border: 1px solid #3e392d; border-radius: 14px; background: radial-gradient(ellipse at 50% 0%,#d4a94a15,transparent 75%),#111827; }
.case-contact-box h2 { font-size: clamp(1.6rem,3vw,2.2rem); max-width: 750px; margin: 0 auto 24px; }
.case-contact-box > p { font-size: .73rem; color: var(--muted); margin-top: 16px; }
.case-contact-link { gap: 32px; }
.case-related { display: flex; align-items: center; gap: 24px; padding: 30px 0 4px; color: var(--text); }
.case-related > span:first-child { color: var(--muted); font-size: .8rem; }
.case-related strong { margin-left: auto; font-size: 1.15rem; }
.case-related-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 30px; }
.case-related-grid .case-related { flex-wrap: wrap; gap: 10px; }
.case-related-grid .case-related > span:first-child { flex-basis: 100%; }
.case-related-grid .case-related strong { margin-left: 0; margin-right: auto; }
@media (max-width: 900px) {
 .case-hero-grid { grid-template-columns: minmax(0,1fr) 240px; gap: 30px; }
 .case-hero h1 { font-size: 2.4rem; }
 .case-card-copy { padding: 22px; }
 .case-story-intro { gap: 32px; }
 .case-card-exitsignal .case-card-copy { padding: 24px; }
 .case-decisions { grid-template-columns: minmax(0,1fr); }
 .case-workflow-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .case-system-foundation { gap: 28px; }
}
@media (max-width: 640px) {
 .case-card-grid,.case-hero-grid,.case-story-intro,.case-steps { grid-template-columns: minmax(0,1fr); }
 .case-portfolio { padding: 54px 0; }
 .case-card-grid { gap: 24px; }
 .case-card-exitsignal .case-card-link,.case-system-foundation,.case-related-grid { grid-template-columns: minmax(0,1fr); }
 .case-card-exitsignal .case-card-media { aspect-ratio: 16 / 9; min-height: 0; border-right: 0; border-bottom: 1px solid #344057; }
 .case-card-exitsignal .case-card-copy { padding: 22px; }
 .case-extra { padding-top: 38px; }
 .case-workflow,.case-automation { padding-top: 38px; }
 .case-workflow-grid,.case-automation-grid { grid-template-columns: minmax(0,1fr); }
 .case-workflow-grid li { padding: 22px; }
 .case-automation-panel { padding: 22px; }
 .case-decision { padding: 22px; }
 .case-related-grid { gap: 0; }
 .case-hero { padding: 24px 0 40px; }
 .case-back { margin-bottom: 25px; }
 .case-hero h1 { font-size: clamp(1.9rem,7.5vw,2.55rem); }
 .case-hero .eyebrow { font-size: .7rem; }
 .case-hero .lead { font-size: 1rem; }
 .case-role { padding: 22px; }
 .case-person { font-size: 1.5rem; margin: 16px 0; }
 .case-person br { display: none; }
 .case-person br::after { content: ' '; }
 .case-person-rule { margin-top: 16px; }
 .case-showcase { padding-bottom: 36px; }
 .case-story { padding-top: 38px; }
 .case-story-intro { gap: 16px; }
 .case-steps { gap: 24px; }
 .case-steps h3 { margin-top: 10px; }
 .case-outcome { margin-top: 34px; padding: 24px; }
 .case-contact { padding-top: 40px; }
 .case-contact-box { padding: 28px 20px; }
 .case-related { gap: 14px; flex-wrap: wrap; }
 .case-related > span:first-child { flex-basis: 100%; }
 .case-related strong { margin-left: 0; margin-right: auto; }
}
@media (prefers-reduced-motion: reduce) { .case-card-image { transition: none; } .case-card-link:hover .case-card-image { transform: none; } }
@media (min-width: 1100px) {
 .case-card-copy { padding: 26px 28px; }
}
