/* Direct New Camp — concise Figma layout, 2503:57045. */
.case-page{--inset:64px}
.case-page .content,.case-page .header-inner{width:calc(100% - 2 * var(--inset));max-width:1360px}
.case-page .header-inner{padding:16px 0}
.case-page .case-content{display:flex;flex-direction:column;gap:64px;padding-top:48px;padding-bottom:64px}
.case-intro{display:flex;flex-direction:column;align-items:flex-start;gap:24px}
.back-link{color:var(--secondary);font-size:16px;line-height:28px}
.case-page #case-title{font-size:56px;font-weight:400;line-height:62px;letter-spacing:-3.0528px;max-width:1050px;margin:0;padding:0;text-wrap:balance;overflow-wrap:normal;word-break:normal}
.case-context{max-width:700px;font-size:18px;line-height:28px;color:var(--secondary)}
.case-section{display:flex;flex-direction:column;gap:20px;scroll-margin-top:96px;min-width:0}
.case-page .case-section h2{margin:0;font-size:36px;line-height:44px;font-weight:400;letter-spacing:-1.5232px}
.case-copy{max-width:950px;font-size:18px;line-height:28px}
.case-copy p~p{margin-top:28px}
.outcome-features{margin:20px 0 0;padding-left:1.25em;list-style:disc}
.outcome-features li+li{margin-top:12px}
.outcome-features strong{font-weight:600}
.case-figure{display:flex;flex-direction:column;gap:20px;margin:0;width:100%;min-width:0}
.case-figure>a{display:block;line-height:0}
.case-figure img{display:block;width:100%;height:auto;border-radius:14px}
.case-image-slot{width:100%;aspect-ratio:1152/310;background:var(--media);border-radius:14px}
.case-figure figcaption{min-height:24px;color:var(--secondary);font-size:14px;line-height:21px}
.case-return{display:flex;justify-content:space-between;gap:24px;padding:16px 0;font-size:16px;line-height:28px}
.case-page footer{margin:0;display:flex;flex-direction:column;align-items:flex-start;gap:32px;padding:48px 0 64px;border-top:1px solid var(--border)}
.case-page footer h2{font-size:48px;line-height:56px;letter-spacing:-1.44px;font-weight:400}
.case-page footer .metadata{line-height:20px}
.case-page footer .contact-actions{display:flex;flex-direction:row;flex-wrap:wrap;gap:16px;align-items:flex-start}
.case-build-note{padding:8px 0 0;width:100%;font-size:14px;line-height:21px;color:var(--secondary)}
@media(max-width:900px){.case-page{--inset:24px}.case-page #case-title{font-size:44px;line-height:50px;letter-spacing:-2px}.case-page .case-content{gap:48px}.case-page .case-section h2{font-size:32px;line-height:40px}}
@media(max-width:540px){.case-page #case-title{font-size:40px;line-height:44px;letter-spacing:-1.8px}.case-page .case-content{padding-top:32px;gap:40px}.case-copy,.case-context{font-size:16px;line-height:25px}.case-copy p~p{margin-top:25px}.case-page .case-section h2{font-size:30px;line-height:36px;letter-spacing:-1px}.case-image-slot{min-height:160px}.case-page footer{padding-bottom:64px}.case-page footer h2{font-size:40px;line-height:48px}.case-page footer .contact-actions{gap:12px}.case-return{gap:16px}.case-build-note{padding:8px 0 0}.case-page footer .metadata{font-size:14px;line-height:20px}}

.case-page #contacts>.metadata,.case-page #contacts>h2{text-align:left}

.case-video{display:block;width:100%;height:auto;border-radius:14px;background:var(--media)}

/* Match the homepage mobile breakpoint; keep captions aligned with body copy. */
@media(max-width:760px){
  .case-page .case-figure{width:calc(100% + 2 * var(--inset));margin-inline:calc(-1 * var(--inset))}
  .case-page .case-figure img,.case-page .case-video,.case-page .case-image-slot{border-radius:0}
  .case-page .case-figure figcaption{margin-inline:var(--inset)}
}

/* Shared case layout: section title, readable copy, then full-width media. */
.case-page .case-content{max-width:1200px}
@media(min-width:901px){
  .case-page .case-content{gap:88px}
  .case-section{display:grid;grid-template-columns:minmax(180px,1fr) minmax(0,700px);column-gap:64px;row-gap:32px;align-items:start}
  .case-section>h2{grid-column:1;grid-row:1}
  .case-section>.case-copy{grid-column:2;grid-row:1;max-width:700px;min-width:0}
  .case-section>.case-figure{grid-column:1 / -1}
}

@media(min-width:901px){
  #outcome>.case-figure{grid-row:1}
  #outcome>h2,#outcome>.case-copy{grid-row:2}
}


.case-label{font-size:14px;color:var(--secondary)}
.ai-hero{background:#eeeeea;border-radius:14px;display:flex;align-items:center;justify-content:center;gap:6%;padding:48px 6%;overflow:hidden;min-height:560px}
.ai-hero video{width:29%;max-height:620px;object-fit:contain;border-radius:30px;background:#f7f6f2;box-shadow:0 12px 36px #1112}
.rhythm{display:flex;flex-direction:column;align-items:center;width:26%;gap:18px;color:#1b1b1b;font-size:24px;letter-spacing:-.5px}
.rhythm img{width:100%;height:auto;object-fit:contain}.rhythm-slow{align-self:flex-end;margin-bottom:60px}.rhythm-pace{align-self:flex-start;margin-top:50px}
.screen-gallery{display:grid;grid-auto-flow:column;grid-auto-columns:max(220px,calc((100% - 72px)/4));gap:24px;background:#eeeee9;padding:32px;border-radius:14px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-padding-inline:32px;overscroll-behavior-x:contain}
.screen-gallery>.screen-card{scroll-snap-align:start}
.screen-card{padding:0;border:0;background:none;text-align:left;font:inherit;color:#282828;cursor:zoom-in;display:flex;flex-direction:column;gap:18px;min-width:0}.screen-card img{border-radius:22px;box-shadow:0 4px 20px #1111}.screen-card span{font-size:14px;line-height:20px}
.text-link,.source-links a{color:#2f73ff}.source-links{display:flex;flex-wrap:wrap;gap:24px;margin-top:28px}
.prototype-stage{background:#eeeee9;border-radius:14px;padding:40px;display:flex;justify-content:center}.prototype-stage iframe{width:402px;height:820px;border:0;border-radius:28px;background:white;max-width:100%;box-shadow:0 10px 40px #1112}
.case-feedback{margin:32px 0;padding:0 0 0 24px;border-left:2px solid var(--border);font-size:20px;line-height:30px}.case-feedback cite{display:block;margin-top:20px;font-size:14px;line-height:22px;color:var(--secondary);font-style:normal}
.screen-dialog{padding:40px 20px 20px;border:0;border-radius:20px;background:#eeeee9;max-height:94dvh;max-width:94vw;overflow:auto}.screen-dialog::backdrop{background:#111a;backdrop-filter:blur(5px)}.screen-dialog img{display:block;max-height:calc(94dvh - 70px);width:auto;max-width:100%;margin:auto}.dialog-close{position:sticky;top:0;float:right;margin-top:-32px;border:0;background:none;font-size:30px;cursor:pointer;color:#222;width:40px;height:32px}
body:has(.screen-dialog[open]){overflow:hidden}.screen-card:focus-visible,.dialog-close:focus-visible{outline:2px solid #2f73ff;outline-offset:6px}
@media(max-width:900px){.screen-gallery{padding:28px;scroll-padding-inline:28px}.ai-hero{min-height:400px;padding:32px 4%;gap:4%}.ai-hero video{width:38%}.rhythm{font-size:19px}.rhythm-slow{margin-bottom:20px}.rhythm-pace{margin-top:20px}}
@media(max-width:760px){.ai-hero,.screen-gallery,.prototype-stage{border-radius:0}.ai-hero{min-height:0;padding:32px 16px;position:relative}.ai-hero video{width:56%;border-radius:24px}.rhythm{width:18%;font-size:13px;gap:10px}.rhythm-pace{margin-top:24px}.rhythm-slow{margin-bottom:36px}.screen-gallery{padding:24px 20px;gap:16px;grid-auto-columns:min(260px,78vw);scroll-padding-inline:20px}.screen-card img{border-radius:16px}.prototype-stage{padding:24px 12px}.prototype-stage iframe{height:780px}.case-feedback{font-size:18px;line-height:28px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
@media(prefers-color-scheme:dark){.text-link,.source-links a{color:#8cb7ff}}
/* Crisp native interface walkthrough; the original video is no longer upscaled. */
.ai-hero .tour-device{width:29%;aspect-ratio:402/820;position:relative;overflow:hidden;border-radius:30px;background:#f6f4f1;box-shadow:0 12px 36px #1112;flex-shrink:0}
.tour-device iframe{position:absolute;left:0;top:0;width:402px;height:820px;border:0;transform-origin:top left;pointer-events:none}
#outcome>figure:first-child figcaption{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}
.tour-controls{display:flex;gap:16px;align-items:center}.tour-controls button,.tour-controls select{font:inherit;color:inherit;border:0;background:transparent;cursor:pointer;padding:8px 0}.tour-controls label{display:flex;align-items:center;gap:6px}
.outcome-links{display:flex;flex-wrap:wrap;gap:16px;margin-top:28px}
.case-page .screen-gallery .screen-card img{border-radius:8% / 3.68%;clip-path:inset(0 round 8% / 3.68%)}
.screen-dialog img{clip-path:inset(0 round 8% / 3.68%)}
#outcome>.presentation-figure{grid-row:3;margin-top:8px}
.pdf-deck{width:100%;overflow:hidden;border-radius:14px;background:#f4f2ec;color:#242520;touch-action:pan-y}
.case-page .pdf-deck>img{width:100%;height:auto;aspect-ratio:16/9;object-fit:contain;border-radius:0;display:block}
.pdf-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 20px;border-top:1px solid #24252020;font-size:14px;line-height:20px}
.pdf-pages,.pdf-actions{display:flex;align-items:center;gap:16px}.pdf-toolbar button{border:0;background:none;color:inherit;font:inherit;min-height:44px;min-width:44px;cursor:pointer}.pdf-pages button{font-size:24px}.pdf-toolbar button:disabled{opacity:.3;cursor:default}.pdf-actions a{color:inherit}.pdf-toolbar button:focus-visible,.tour-controls :focus-visible{outline:2px solid #2f73ff;outline-offset:2px}
.pdf-deck:fullscreen{display:flex;flex-direction:column;justify-content:center;border-radius:0;background:#eeeee9}.case-page .pdf-deck:fullscreen>img{max-height:calc(100dvh - 80px);object-fit:contain}.pdf-deck:fullscreen .pdf-toolbar{flex-shrink:0}
@media(max-width:900px){.ai-hero .tour-device{width:38%}}
@media(max-width:760px){.ai-hero .tour-device{width:56%;border-radius:24px}.pdf-deck{border-radius:0}.pdf-toolbar{padding:8px 12px;gap:8px}.pdf-toolbar>span{display:none}.pdf-pages,.pdf-actions{gap:8px}}

/* Evidence from the original Figma exploration and library. */
.process-directions,.process-refinement,.process-system{background:#eeeee9;color:#242520;padding:32px;border-radius:14px}
.process-directions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px}
.process-phone{height:480px;overflow:auto;border-radius:24px;background:#fff;scrollbar-width:thin}
.case-page .process-phone img{display:block;width:100%;height:auto;border-radius:0}
.process-directions p,.process-refinement p,.process-system p{font-size:14px;line-height:22px;margin:18px 0 0}
.process-refinement{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:32px;align-items:center}
.case-page .process-refinement img{width:100%;height:auto}
.process-system h3{font-size:24px;line-height:32px;margin:0 0 24px}
.process-system>img{width:100%;height:auto;display:block}
.process-system>h3:not(:first-child){margin-top:48px}
.token-table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:14px;line-height:22px;text-align:left}
.token-table caption{text-align:left;font-weight:600;padding:24px 0 12px}
.token-table th,.token-table td{padding:12px 0;border-bottom:1px solid #24252025;vertical-align:middle;overflow-wrap:anywhere}
.token-table th{font-weight:400;width:65%;padding-right:16px}.token-table thead th{font-weight:600}
.token-table td{font-variant-numeric:tabular-nums}.token-swatch{display:inline-block;width:20px;height:20px;border:1px solid #24252030;border-radius:50%;vertical-align:middle;margin-right:12px}
.token-details{margin-top:24px}.token-details summary{cursor:pointer;padding:12px 0;font-size:16px}.token-details summary:focus-visible{outline:2px solid #2f73ff;outline-offset:4px}
@media(max-width:760px){.process-directions,.process-refinement,.process-system{padding:24px;border-radius:0}.process-directions{gap:16px;grid-template-columns:repeat(3,minmax(220px,1fr));overflow-x:auto}.process-phone{height:420px;border-radius:18px}.process-refinement{grid-template-columns:1fr;gap:28px}.process-refinement>div:last-child{max-width:320px;margin:auto;width:100%}.token-table{font-size:12px;line-height:18px}.token-swatch{width:14px;height:14px;margin-right:6px}.token-table th{width:62%}}
/* Separate the exploration screens from their presentation surface. */
.process-directions{background:#f7f7f4}
.process-directions .process-phone{border:1px solid #24252038;box-shadow:0 8px 24px #1d26341f}

.process-story{row-gap:32px}.process-story>.case-copy{grid-row:auto}.process-story>.case-figure{grid-column:1/-1}.process-references{display:grid;gap:24px;padding:32px;background:#f7f7f4;border-radius:14px}.process-references img{width:100%;height:auto}.process-story>.case-copy:not(:first-of-type){margin-top:24px}@media(max-width:900px){.process-story>.case-copy{margin-bottom:24px}.process-story>.case-figure{margin-bottom:40px}}@media(max-width:760px){.process-references{padding:24px;border-radius:0;gap:24px}}
/* Keep exploration previews close to phone size and clip exported corners. */
.process-directions{grid-template-columns:repeat(3,minmax(0,240px));justify-content:center;gap:32px;padding:40px 32px}
.process-directions .process-phone{height:480px;border:0;border-radius:28px;clip-path:inset(0 round 28px);background:#eeece6;box-shadow:0 8px 24px #1d263414}
@media(max-width:760px){.process-directions{grid-template-columns:repeat(3,220px);justify-content:start;gap:20px;padding:24px}.process-directions .process-phone{height:420px;border-radius:24px;clip-path:inset(0 round 24px)}}

/* Pair references and app previews along the same top edge. */
.process-references{gap:32px}
.reference-pair{display:grid;grid-template-columns:minmax(0,1fr) 220px;gap:32px;align-items:start}
.case-page .reference-pair>img{display:block;width:100%;height:320px;object-fit:cover;object-position:top;border-radius:12px}
.reference-pair>.process-phone{height:320px;border-radius:24px;clip-path:inset(0 round 24px);background:#eeece6}
.case-page .reference-pair>.process-phone img{border-radius:0}
@media(max-width:760px){
.reference-pair{grid-template-columns:minmax(0,1fr) 160px;gap:20px}
.case-page .reference-pair>img,.reference-pair>.process-phone{height:260px}
.reference-pair>.process-phone{border-radius:18px;clip-path:inset(0 round 18px)}
}
@media(max-width:540px){
.process-references{padding:20px;gap:24px}
.reference-pair{grid-template-columns:minmax(0,1fr) 120px;gap:12px}
.case-page .reference-pair>img,.reference-pair>.process-phone{height:220px}
.case-page .reference-pair>img{object-position:top center;border-radius:8px}
.reference-pair>.process-phone{border-radius:14px;clip-path:inset(0 round 14px)}
}

/* Center illustrations within the side fields of the walkthrough. */
.ai-hero .rhythm{align-self:center;margin-top:0;margin-bottom:0}

.variables-preview{display:block;width:min(100%,720px);height:360px;margin:0 auto;padding:0;border:1px solid var(--border);border-radius:14px;overflow:hidden;background:#f7f7f4;cursor:zoom-in}
.case-page .variables-preview img{display:block;width:100%;height:auto;border-radius:0}
.screen-dialog:has(img[src*="figma-variables"]) img{clip-path:none;border-radius:0}
@media(max-width:760px){.variables-preview{width:calc(100% - 48px);height:260px}}

/* Section navigation follows the other portfolio cases. */
.case-page .case-section-nav{position:static;display:flex;flex-wrap:wrap;flex-direction:row;align-items:baseline;justify-content:flex-start;gap:4px;padding:0;margin-block:-32px;background:none;box-shadow:none;color:var(--secondary);font-size:16px;line-height:24px}
.case-section-nav-item{display:inline-flex;align-items:baseline;gap:4px}
.case-page .case-section-nav a{padding:0;width:auto;white-space:nowrap;text-decoration:none}
.case-page .case-section-nav a:hover,.case-page .case-section-nav a:focus-visible{color:#307bff}
@media(min-width:901px){.case-page .case-section-nav{margin-block:-56px}}
@media(max-width:900px){.case-page .case-section-nav{margin-block:-16px}}
@media(max-width:540px){.case-page .case-section-nav{margin-block:-8px}}

.effort-table{width:100%;border-collapse:collapse;margin:24px 0 40px;font-size:16px;line-height:24px;text-align:left}.effort-table caption{text-align:left;margin-bottom:12px;color:var(--secondary)}.effort-table th,.effort-table td{padding:10px 0;border-bottom:1px solid var(--border)}.effort-table tbody th{font-weight:400;padding-right:20px}.effort-table td:last-child,.effort-table thead th:last-child{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}.effort-table tfoot{font-weight:600}
