/* Real screenshots retain their complete pixels and intrinsic proportions. */
.device-pair{display:grid;grid-template-columns:minmax(0,1fr) 264px;gap:34px;align-items:center;min-width:0}
.device-pair figure,.mobile-design-layout figure{margin:0;min-width:0}
.preview-enlarge{display:block;width:100%;padding:0;border:0;background:transparent;cursor:zoom-in;color:inherit;line-height:0}
.preview-enlarge img{display:block;width:100%;height:auto;max-width:100%;object-fit:contain;aspect-ratio:auto;border-radius:0}
.desktop-frame{border:1px solid #aeb5ba;border-radius:6px;background:#fff;box-shadow:0 12px 28px #15202a18}
.device-bar{display:flex;justify-content:space-between;gap:16px;padding:8px 12px;color:#424a52;background:#e9edef;border-radius:5px 5px 0 0;font:600 10px/1.5 'Open Sans',Arial,sans-serif}
.phone-frame{padding:8px;background:#20242a;border:1px solid #59616a;border-radius:14px;box-shadow:0 12px 25px #11182026}
.device-mobile{width:100%;max-width:360px;justify-self:center}
.device-pair figcaption,.mobile-design-layout figcaption{display:block;font-size:11px;line-height:1.75;color:var(--muted);padding-top:14px}
.preview-hint{display:block;font-size:10px;margin-top:3px;opacity:.9}
.preview-enlarge:focus-visible{outline:3px solid var(--red);outline-offset:5px}
.preview-enlarge:hover{box-shadow:0 0 0 2px #8e969d}
.home-direction .sf-project{grid-template-columns:1fr;gap:32px;padding:0 0 36px}
.home-direction .sf-project-copy{display:grid;grid-template-columns:1fr 1fr;column-gap:65px;align-items:start}
.home-direction .sf-project-copy>.sf-kicker{grid-column:1;grid-row:1}
.home-direction .sf-project-copy>h3{grid-column:1;grid-row:2}
.home-direction .sf-project-copy>p:not(.sf-kicker){grid-column:2;grid-row:1/4;margin:0;max-width:520px}
.home-direction .sf-project-copy>.sf-project-details{grid-column:1;grid-row:3;margin:0 0 20px}
.home-direction .sf-project-copy>.button{grid-column:1;grid-row:4;justify-self:start}
.home-direction .sf-project-copy>.sf-live-link{grid-column:2;grid-row:4;align-self:center;margin:0}
.home-direction .sf-project-fi{padding:36px;margin:35px 0 0}
.sf-project-fi .device-pair figcaption{color:#c1c9d0}
.sf-project-fi .preview-enlarge:focus-visible{outline-color:#fff}
.home-direction .sf-project-kp{margin-top:55px;padding-top:36px;border-top:1px solid var(--line)}
.kp-feature-notes article+article{border-top:1px solid var(--line);margin-top:26px;padding-top:26px}
.kp-feature-notes h3{font-size:24px;line-height:1.3;margin-bottom:12px}
.kp-feature-notes p{font-size:16px;line-height:1.8}
.work-page .work-entry-grid{grid-template-columns:1fr;gap:34px}
.work-page .work-entry-grid>div:first-child{max-width:780px}
.work-preview>.live-link{margin-top:22px}
.case-page .case-opening-preview .device-desktop{margin:0}
.case-page .case-opening-preview .device-desktop figcaption{font-size:12px;line-height:1.7;margin-top:12px;color:var(--muted)}
.mobile-design-section{background:var(--pale);border-block:1px solid var(--line)}
.mobile-design-layout{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:100px;align-items:center;max-width:1040px}
.mobile-design-copy h2{font-size:clamp(32px,3.5vw,48px);line-height:1.12;margin-bottom:26px}
.mobile-design-copy .lead{margin-bottom:22px}
.mobile-design-copy>p:last-child{font-size:15px;line-height:1.9;color:var(--text)}
.screenshot-open{overflow:hidden}
.screenshot-dialog.is-portrait{width:min(688px,calc(100% - 24px));max-height:94dvh}
.screenshot-dialog.is-portrait img{display:block;width:100%;max-width:620px;height:auto;max-height:none;aspect-ratio:auto;object-fit:contain;margin:0 auto}
.screenshot-dialog.is-portrait .screen-close{min-height:44px;box-shadow:0 3px 12px #0002}
@media(max-width:1000px){.device-pair{grid-template-columns:minmax(0,1fr) 228px;gap:24px}.mobile-design-layout{gap:45px;grid-template-columns:minmax(0,1fr) 300px}}
@media(max-width:800px){
 .device-pair{grid-template-columns:1fr;gap:30px;align-items:start}
 .device-mobile{max-width:360px}
 .home-direction .sf-project-copy{display:block}
 .home-direction .sf-project-copy>p:not(.sf-kicker){margin-bottom:20px}
 .home-direction .sf-project-copy>.sf-project-details{margin:20px 0 24px}
 .home-direction .sf-project-copy>.sf-live-link{margin-top:14px}
 .home-direction .sf-project-fi{padding:28px}
 .mobile-design-layout{grid-template-columns:1fr;gap:32px}
 .mobile-design-copy{max-width:640px}
}
@media(max-width:540px){
 .home-direction .sf-project-fi{padding:22px 16px 26px}
 .phone-frame{padding:6px;border-radius:12px}
 .device-pair figcaption,.mobile-design-layout figcaption{font-size:11px}
 .device-pair{gap:25px}
 .mobile-design-copy>p:last-child{font-size:14px}
}
/* Four projects share the same complete desktop and mobile screenshot treatment. */
.home-direction .sf-project-tunas{margin-top:55px;padding-top:36px;border-top:1px solid var(--line)}
.home-direction .sf-project-copy>.sf-project-status{grid-column:2;grid-row:4;align-self:center;font-size:14px;color:var(--muted)}
.project-status-note{margin-top:20px;font-size:14px;color:var(--muted)}
.project-status-grid{display:grid;grid-template-columns:1fr 1fr;gap:32px}
.project-status-grid article{padding:30px;background:#fff;border:1px solid var(--line);box-shadow:0 8px 22px #17202a0c}
.project-status-grid h3{font-size:27px;line-height:1.25;margin:12px 0 22px}
.project-status-grid p:not(.project-label){font-size:16px;line-height:1.8;margin-top:18px}
.implementation-note{font-size:14px;line-height:1.8;max-width:920px;margin-top:26px;color:var(--text)}
.early-results-summary,.results-panel{background:#fff;color:#25292d;border:1px solid #cbd0d4;box-shadow:0 8px 22px #17202a0c;padding:30px}
.early-results-summary{border-left:4px solid #b21f30;display:grid;grid-template-columns:1fr 1fr;gap:20px 40px;margin-top:4px}
.home-direction .early-results-summary h4{font:800 21px/1.3 Manrope,Arial,sans-serif;letter-spacing:-.02em;margin:0 0 12px}
.early-results-summary .results-period{font-size:14px;line-height:1.7;margin:0}
.result-metrics{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin:0}
.result-metrics>div{min-width:0;display:flex;flex-direction:column}
.result-metrics dt{font:700 14px/1.5 'Open Sans',Arial,sans-serif;color:#25292d}
.result-metrics dd{margin:6px 0 0}
.result-metrics strong{display:block;font:800 clamp(34px,4vw,52px)/1.1 Manrope,Arial,sans-serif;letter-spacing:-.04em;color:#a51e2c}
.result-metrics dd span{display:block;font:400 14px/1.6 'Open Sans',Arial,sans-serif;margin-top:9px;color:#424a52}
.results-source{font-size:14px;line-height:1.8;color:#525a62}
.early-results-summary>.results-source{grid-column:1/-1;margin:0}
.early-results-summary>.text-link{grid-column:1/-1;justify-self:start}
.lead-results-table{width:100%;border-collapse:collapse;margin-top:36px;font-size:16px;line-height:1.5;font-variant-numeric:tabular-nums}
.lead-results-table caption{text-align:left;font-size:14px;color:#525a62;margin-bottom:14px}
.lead-results-table th,.lead-results-table td{padding:16px 12px;border-bottom:1px solid #cbd0d4;text-align:right}
.lead-results-table th:first-child{text-align:left;padding-left:0}
.lead-results-table th{font-weight:700;color:#25292d}
.lead-results-table tbody tr:last-child{background:#f1f3f4;font-weight:700}
.lead-results-table tbody tr:last-child th{padding-left:12px}
.results-panel>.results-source{margin:22px 0 0}
.results-context{max-width:880px;margin-top:30px}
.results-context h3{font-size:27px;line-height:1.25;margin-bottom:16px}
.results-context h3:not(:first-child){margin-top:30px}
.results-context p{font-size:16px;line-height:1.8;margin-top:14px}
@media(max-width:800px){
 .project-status-grid{grid-template-columns:1fr;gap:22px}
 .home-direction .sf-project-copy>.sf-project-status{display:block;margin-top:16px}
 .early-results-summary{grid-template-columns:1fr;padding:24px;gap:24px}
 .results-panel{padding:24px}
 .home-direction .sf-project-tunas{margin-top:40px;padding-top:28px}
}
@media(max-width:540px){
 .early-results-summary,.results-panel,.project-status-grid article{padding:20px}
 .result-metrics{gap:18px}
 .result-metrics strong{font-size:35px}
 .result-metrics dt,.result-metrics dd span{font-size:14px}
 .lead-results-table{font-size:14px}
 .lead-results-table th,.lead-results-table td{padding:14px 7px}
 .lead-results-table th{width:33.333%}
}
