/* Project stories share the portfolio's typography and line work. */
.nudge-project-story{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:64px!important;min-width:0;width:100%}
.nudge-project-story>*{margin:0;min-width:0;width:100%}
.nudge-project-story p,.nudge-project-story h2,.nudge-project-story h3{font-family:'Inter Display',Inter,Arial,sans-serif;color:#111212;text-transform:none;letter-spacing:-.02em;white-space:normal;overflow-wrap:break-word}
.nudge-project-story p{font-size:19px;font-weight:400;line-height:1.6;margin:0}
.nudge-project-story h2{font-size:32px;line-height:1.15;font-weight:500;margin:0 0 22px;max-width:24ch}
.nudge-project-story h3{font-size:22px;line-height:1.25;font-weight:500;margin:0 0 14px}
.nudge-story-contents{border-top:1px solid #111212;border-bottom:1px solid #111212;padding:20px 0;display:grid;gap:16px;font:12px/1.5 'DM Mono',monospace}
.nudge-story-contents>span{text-transform:uppercase;color:#555}
.nudge-story-contents>div{display:flex;flex-wrap:wrap;gap:8px}
.nudge-story-contents a{display:inline-flex;align-items:center;min-height:40px;max-width:100%;padding:8px 14px;border:1px solid #111212;border-radius:30px;text-decoration:none;transition:background-color .2s,color .2s}
.nudge-story-contents a:hover{background:#111212;color:#fff}
.nudge-project-story section[id]{scroll-margin-top:90px}
.nudge-project-story section[id]:focus{outline:none}
.nudge-project-story .nudge-story-lead{font-size:30px;line-height:1.35;max-width:40ch;letter-spacing:-.035em}
.nudge-story-text{max-width:76ch}
.nudge-story-columns,.nudge-story-steps{display:grid;grid-template-columns:repeat(var(--story-columns),minmax(0,1fr));gap:32px;margin:0;padding:0}
.nudge-story-columns>section,.nudge-story-steps>li{border-top:1px solid #111212;padding-top:22px;min-width:0}
.nudge-story-columns p,.nudge-story-steps p{font-size:17px}
.nudge-story-steps{list-style:none;counter-reset:story-step}
.nudge-story-steps>li{counter-increment:story-step}
.nudge-story-steps>li:before{content:counter(story-step,decimal-leading-zero);display:block;font:12px 'DM Mono',monospace;margin-bottom:22px}
.nudge-project-story .nudge-story-aside{border-left:3px solid #111212;padding:4px 0 4px 24px;max-width:72ch}
.nudge-story-aside p{font-size:16px}
.nudge-story-figure{display:block;margin:0}
.nudge-story-figure>a{display:block;border:1px solid #111212;background:#f5f5f3;line-height:0}
.nudge-story-figure img{display:block;width:100%;height:auto;max-width:100%;object-fit:contain}
.nudge-story-figure figcaption{font:12px/1.6 'DM Mono',monospace;margin-top:12px;max-width:90ch;color:#454545;overflow-wrap:anywhere}
.nudge-story-gallery-grid{display:grid;grid-template-columns:repeat(var(--gallery-columns),minmax(0,1fr));gap:24px;align-items:start}
.nudge-story-gallery-grid .nudge-story-figure{min-width:0}
@media(max-width:809px){.nudge-story-gallery-wide .nudge-story-gallery-grid{grid-template-columns:1fr}}
@media(max-width:650px){.nudge-story-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.nudge-story-gallery-wide .nudge-story-gallery-grid{grid-template-columns:1fr}}
@media(max-width:809px){.nudge-project-story{gap:40px!important}.nudge-project-story h2{font-size:26px;margin-bottom:16px}.nudge-project-story p{font-size:17px}.nudge-project-story .nudge-story-lead{font-size:24px}.nudge-story-columns,.nudge-story-steps{gap:24px}.nudge-story-columns p,.nudge-story-steps p{font-size:16px}.nudge-story-columns h3,.nudge-story-steps h3{font-size:20px}}
@media(max-width:650px){.nudge-story-columns,.nudge-story-steps{grid-template-columns:1fr}.nudge-project-story .nudge-story-aside{padding-left:16px}.nudge-story-figure figcaption{font-size:11px}}

/* A compact editorial selection uses the same type, rules and full images. */
.nudge-collection-cover{position:absolute;inset:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:16px;background:#f5f5f3;overflow:hidden}
.nudge-collection-cover img{position:static!important;display:block;width:100%!important;height:100%!important;min-width:0;object-fit:contain!important;border-radius:0!important;transform:none!important}
.nudge-collection-nav{display:flex;flex-wrap:wrap;gap:16px 28px;font:13px/1.5 'DM Mono',monospace}
.nudge-collection-nav a{text-decoration:underline;text-underline-offset:5px}
.nudge-collection-promoted{scroll-margin-top:90px;border-top:1px solid #111212;padding-top:24px}
.nudge-collection-promoted a{text-decoration:underline;text-underline-offset:5px}
.nudge-collection-group{scroll-margin-top:90px}
.nudge-collection-group>header{display:flex;align-items:baseline;gap:20px;margin-bottom:32px}
.nudge-collection-group>header>span{font:12px 'DM Mono',monospace}
.nudge-collection-group>header>h2{max-width:none;margin:0}
.nudge-collection-project{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:40px;align-items:start;padding:32px 0;border-top:1px solid #111212;scroll-margin-top:90px;min-width:0}
.nudge-collection-media{display:grid;gap:24px;min-width:0;width:100%}
.nudge-collection-project .nudge-collection-reference{font-size:13px!important;margin-top:16px}
.nudge-collection-reference a{text-decoration:underline;text-underline-offset:4px}
.nudge-collection-project h3{font-size:28px;margin:0 0 10px}
.nudge-collection-project .nudge-collection-context{font:12px/1.5 'DM Mono',monospace;margin:0 0 20px}
.nudge-collection-project .nudge-collection-copy>p:not(.nudge-collection-context){font-size:17px}
.nudge-collection-project .nudge-collection-copy>.nudge-collection-status{display:inline-block;margin-top:16px;padding:4px 8px;background:#f4e5ac;font:12px/1.5 'DM Mono',monospace}
@media(max-width:809px){.nudge-collection-project{grid-template-columns:1fr;gap:24px;padding:24px 0}.nudge-collection-group>header{gap:12px;margin-bottom:24px}.nudge-collection-project h3{font-size:25px}.nudge-collection-cover{padding:8px;gap:4px}.nudge-collection-nav{gap:12px 20px}}
[data-nudge-collection-title]{font-size:clamp(40px,6vw,80px)!important}
@media(max-width:809px){[data-nudge-collection-title]{font-size:clamp(28px,8vw,44px)!important}}

/* Keep source proportions and readable overviews without oversized screenshots. */
.nudge-project-story{gap:40px!important}
.nudge-story-figure{max-width:100%;min-width:0}
.nudge-story-figure>a{width:fit-content;max-width:100%;margin-inline:auto;background:#fafaf8}
.nudge-story-figure img{width:auto;height:auto;max-width:100%;max-height:min(68vh,600px);object-fit:contain}
.nudge-story-gallery-grid{justify-items:center;align-items:start;gap:20px}
.nudge-story-gallery-grid .nudge-story-figure{width:100%}
.nudge-story-gallery-grid img{max-height:520px}
.nudge-collection-media img{max-height:360px}
.nudge-collection-project{gap:28px;padding:24px 0}
.nudge-collection-group>header{margin-bottom:16px}
.nudge-collection-details{grid-column:1/-1;border-top:1px solid #d5d5d2;padding-top:16px}
.nudge-collection-details>summary{cursor:pointer;font:500 14px/1.5 'DM Mono',monospace;min-height:36px}
.nudge-collection-details>.nudge-project-story{padding-top:28px}
@media(max-width:809px){.nudge-project-story{gap:28px!important}.nudge-story-figure img{max-height:520px}.nudge-story-gallery-grid img{max-height:420px}.nudge-collection-project{gap:20px}.nudge-collection-media img{max-height:300px}}
/* Explicit source-based frame width also reserves space before lazy images load. */
.nudge-story-figure>a{width:min(100%,var(--media-width,100%));max-width:100%}
.nudge-story-figure img{width:100%;height:auto;max-height:none}
.nudge-story-gallery-grid img,.nudge-collection-media img{max-height:none}
.nudge-collection-media .nudge-story-figure>a{max-width:440px}

[data-project-story="cfg-bank"] .nudge-story-aside{border:0;padding:0}
[data-project-story="cfg-bank"] .nudge-story-aside p{font:13px/1.6 'DM Mono',monospace}
.nudge-cfg-links{padding:16px 0}
.nudge-cfg-links [href="#cfg-prototype"]{background:#111212;color:#fff}
.nudge-cfg-links [href="#cfg-prototype"]:hover{background:#fff;color:#111212}
[data-cfg-case]{width:100%;min-width:0;scroll-margin-top:90px}
