/* B10 vertical portfolio pilots — exact approved applications, native editorial text. */
.project-scene{--scene-ground:#18354b;--scene-ink:#f5f5ef;--scene-muted:#b8ccd7;background:var(--scene-ground);color:var(--scene-ink);font-family:'Hanken Grotesk',sans-serif;overflow:hidden}
.project-scene.butter{--scene-ground:#f8f3e6;--scene-ink:#123d2b;--scene-muted:#4f6657}
.project-composition{position:relative;isolation:isolate;overflow:hidden}
.project-composition .scene-ground{position:absolute;z-index:-1;left:0;bottom:0;width:100%;height:auto;max-width:none;display:block;mask-image:linear-gradient(transparent,#000 20%);pointer-events:none}
.project-heading{position:relative;padding:38px 30px 16px;z-index:1}
.project-eyebrow{font:400 10px/1.6 'Martian Mono',monospace;letter-spacing:.035em;margin:0 0 20px;max-width:38ch;color:var(--scene-muted)}
.project-heading :is(h1,h3){font:500 clamp(32px,4.4vw,48px)/1.08 'Source Serif 4',serif;letter-spacing:-.025em;margin:0 0 20px;max-width:19ch;hyphens:none;overflow-wrap:normal}
.project-intro{font:400 17px/1.5 'Hanken Grotesk',sans-serif;margin:0;max-width:38ch}
.project-application{position:relative;display:flex;align-items:flex-start;justify-content:center;margin:0;padding:28px 0 40px;min-width:0}
.project-application .complete-art{position:relative;display:block;width:69%;max-width:440px;transform:rotate(-2deg);line-height:0;box-shadow:5px 9px 16px #0005,1px 2px 2px #0004;outline-offset:6px;background:#f4f7f9}
.project-application .complete-art img{display:block;width:100%;height:auto;max-width:100%;object-fit:contain;aspect-ratio:4/5}
.butter .project-application{padding:36px 0 110px}
.butter .complete-art{width:88%;max-width:640px;transform:rotate(2deg);box-shadow:4px 7px 10px #503c2529,1px 2px 2px #503c2533;background:#fbf8ef}
.butter .complete-art img{aspect-ratio:16/9}
.project-narrative{position:relative;padding:24px 30px 18px;background:var(--scene-ground)}
.project-narrative:before{content:'';position:absolute;left:0;right:0;top:-24px;height:24px;background:linear-gradient(transparent,var(--scene-ground));pointer-events:none}
.project-caption{font:400 12px/1.5 'Hanken Grotesk',sans-serif;color:var(--scene-muted);margin:0 0 20px;max-width:62ch}
.project-contribution{font:400 18px/1.5 'Hanken Grotesk',sans-serif;margin:0 0 18px;max-width:54ch}
.project-status{font:400 12px/1.5 'Hanken Grotesk',sans-serif;color:var(--scene-muted);margin:0;max-width:58ch}
.sample-link{display:inline-flex;align-items:center;min-height:44px;font:400 13px/1.5 'Hanken Grotesk',sans-serif;color:inherit;text-underline-offset:4px;margin-top:10px}
.case-card.is-editorial-case{padding:0!important;border:0!important;gap:0;overflow:visible!important;box-shadow:none!important}
.is-editorial-case .case-visual{margin:0!important;overflow:visible!important}
.is-editorial-case>.case-meta,.is-editorial-case>.case-title,.is-editorial-case>.case-thesis,.is-editorial-case>.case-teaser{display:none!important}
.is-editorial-case>.case-footer,.preview-case-footer{margin:0!important;padding:0 30px 28px!important;border:0!important;background:#18354b;color:#f5f5ef;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap}
.scene-butter>.case-footer,.scene-butter>.preview-case-footer{background:#f8f3e6;color:#123d2b}
.is-editorial-case .case-footer .case-metric{display:none}
.is-editorial-case .case-footer .case-open-btn,.preview-case-footer a{font:400 14px/1.4 'Hanken Grotesk',sans-serif;color:inherit!important;border-bottom:1px solid currentColor;padding:12px 0;min-height:44px;text-decoration:none}
.is-editorial-case .web-piece{font-size:16px;overflow:visible}
.is-editorial-case a:focus-visible,.is-editorial-case button:focus-visible{outline:3px solid currentColor;outline-offset:5px;box-shadow:none}
@media(max-width:920px){.case-grid{grid-template-columns:minmax(0,1fr)!important;gap:48px!important}.case-card.is-editorial-case{grid-column:1/-1!important}.case-card.is-editorial-case .project-heading{padding:42px clamp(26px,6vw,54px) 12px}.case-card.is-editorial-case .project-narrative{padding-left:clamp(26px,6vw,54px);padding-right:clamp(26px,6vw,54px)}.case-card.is-editorial-case>.case-footer{padding-left:clamp(26px,6vw,54px)!important;padding-right:clamp(26px,6vw,54px)!important}}
@media(min-width:600px){.project-heading{padding:48px 50px 12px}.project-eyebrow{font-size:11px;max-width:none}.project-intro{font-size:20px;max-width:42ch}.project-heading :is(h1,h3){font-size:48px}.project-application{padding:36px 0 60px}.butter .project-application{padding:56px 0 210px}.project-narrative{padding:30px 50px 20px}.project-contribution{font-size:20px}.project-caption,.project-status{font-size:14px}.sample-link{font-size:15px}.preview-case-footer{padding:0 50px 38px!important}}
@media(max-width:420px){.project-heading :is(h1,h3){font-size:34px}.project-heading{padding:32px 26px 10px}.project-eyebrow{font-size:9px}.project-intro{font-size:16px}.project-application .complete-art{width:72%}.butter .project-application .complete-art{width:88%}.butter .project-application{padding-bottom:110px}.project-narrative{padding:24px 26px 14px}.project-contribution{font-size:17px}.preview-case-footer{padding-left:26px!important;padding-right:26px!important}}
.vertical-preview{margin:0;background:#f7f5f1}.vertical-preview *{box-sizing:border-box}.preview-nav{height:64px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 22px;background:#1a1a17;color:#f7f5f1;font:400 11px/1.4 'Martian Mono',monospace}.preview-nav a{color:inherit;min-height:44px;display:flex;align-items:center;text-decoration:none}.preview-nav span{font-size:9px}.vertical-review{max-width:768px;margin:auto}.preview-case-footer a{color:inherit}.vertical-preview figure{margin:0}

@media(max-width:920px){#casos .case-grid{grid-template-columns:minmax(0,1fr)!important}}

/* R5: complete collection. Each scene preserves its own materials and approved object. */
.project-scene.amez{--scene-ground:#d6d7d9;--scene-ink:#162239;--scene-muted:#354658}
.project-scene.stone{--scene-ground:#e9e3d7;--scene-ink:#233238;--scene-muted:#535c5b}
.project-scene.don{--scene-ground:#edf0f4;--scene-ink:#182436;--scene-muted:#45526b}
.project-links{display:flex;gap:12px 28px;align-items:center;flex-wrap:wrap}
.scene-amez>.case-footer,.scene-amez>.preview-case-footer{background:#d6d7d9;color:#162239}
.scene-stone>.case-footer,.scene-stone>.preview-case-footer{background:#e9e3d7;color:#233238}
.scene-don>.case-footer,.scene-don>.preview-case-footer{background:#edf0f4;color:#182436}
.case-card.is-editorial-case,.case-card.case-lead.is-editorial-case{display:flex!important;flex-direction:column!important;grid-column:1/-1!important;gap:0!important;min-height:0!important}
.case-card.is-editorial-case .case-visual{margin:0!important;min-height:0!important;width:100%!important}
#casos .case-grid{grid-template-columns:minmax(0,1fr)!important;gap:56px!important}
.amez .project-application{padding:12px 0 110px;overflow:hidden}
.amez .complete-art{width:120%;max-width:none;flex-shrink:0;transform:none;box-shadow:none;background:transparent;mask-image:linear-gradient(to right,transparent,#000 13%,#000 87%,transparent),linear-gradient(to bottom,transparent,#000 5%,#000 95%,transparent);mask-composite:intersect}
.amez .complete-art img{aspect-ratio:3/2}
.stone .project-application{padding:18px 0 42px}
.stone .complete-art{width:72%;max-width:420px;transform:none;box-shadow:none;background:transparent}
.stone .complete-art img{aspect-ratio:1;filter:drop-shadow(2px 7px 5px #5044321a)}
.don .project-application{justify-content:flex-start;padding:24px 0 36px}
.don .complete-art{width:62%;max-width:none;margin-left:6%;transform:none;background:#0e1117;box-shadow:3px 6px 9px #16223930,1px 2px 2px #16223930}
.don .complete-art img{aspect-ratio:4/5}
@media(max-width:599px){.amez .project-application{padding-bottom:90px}.stone .project-application{padding-bottom:32px}.don .project-heading :is(h1,h3){font-size:32px}.don .complete-art{width:62%!important}.amez .complete-art{width:120%!important}}
@media(min-width:600px) and (max-width:920px){.amez .project-application{padding-bottom:190px}.don .project-application{padding-bottom:64px}.stone .project-application{padding-bottom:72px}}
/* A desktop section is a horizontal editorial scene, not a stretched mobile card. */
@media(min-width:921px){
.case-card.is-editorial-case .project-composition{display:grid;grid-template-columns:44% 56%;min-height:520px;align-items:center}
.case-card.is-editorial-case .project-heading{grid-column:1;grid-row:1;align-self:center;padding:48px 20px 48px 48px}
.case-card.is-editorial-case .project-heading :is(h1,h3){font-size:clamp(36px,3.3vw,48px);max-width:18ch}
.case-card.is-editorial-case .project-intro{font-size:19px;max-width:32ch}
.case-card.is-editorial-case .project-composition>.scene-ground{width:56%;left:auto;right:0;bottom:0;mask-image:linear-gradient(to right,transparent,#000 18%);height:auto}
.case-card.is-editorial-case .project-application{grid-column:2;grid-row:1;width:100%;align-self:end;padding:60px 0 70px}
.case-card.is-editorial-case .finance .complete-art{width:67%;max-width:370px}
.case-card.is-editorial-case .butter .project-application{padding:80px 0 210px}
.case-card.is-editorial-case .butter .complete-art{width:86%;max-width:600px}
.case-card.is-editorial-case .amez .project-application{padding:70px 0 180px}
.case-card.is-editorial-case .amez .complete-art{width:110%;max-width:none}
.case-card.is-editorial-case .stone .project-application{padding:70px 0 44px}
.case-card.is-editorial-case .stone .complete-art{width:70%;max-width:380px}
.case-card.is-editorial-case .don .project-application{padding:50px 0 44px}
.case-card.is-editorial-case .don .complete-art{width:61%;margin-left:5%;max-width:390px}
.case-card.is-editorial-case .project-narrative{padding:26px 48px 16px;display:grid;grid-template-columns:1fr 1fr;column-gap:48px;align-items:start}
.case-card.is-editorial-case .project-caption{grid-column:1/-1;margin-bottom:20px}
.case-card.is-editorial-case .project-contribution{grid-column:1;grid-row:2/4;font-size:19px;margin:0}
.case-card.is-editorial-case .project-status{grid-column:2;grid-row:2;font-size:13px;margin:0}
.case-card.is-editorial-case .project-links,.case-card.is-editorial-case .project-narrative>.sample-link{grid-column:2;grid-row:3}
.case-card.is-editorial-case>.case-footer{padding:0 48px 32px!important}
}

/* Fade the environmental floor into the native canvas; preserve the complete artwork. */
.don .project-composition>.scene-ground{mask-image:linear-gradient(transparent,#000 20%),linear-gradient(to bottom,#000 91%,transparent 96%);mask-composite:intersect}
@media(min-width:921px){.case-card.is-editorial-case .don .project-composition>.scene-ground{mask-image:linear-gradient(to right,transparent,#000 18%),linear-gradient(to bottom,#000 91%,transparent 96%);mask-composite:intersect}}

.don .project-composition>.scene-ground{clip-path:polygon(0 0,100% 0,100% 94%,94% 94%,94% 100%,0 100%)}

/* R6 owner refinement: vertical environments span the viewport; copy retains safe insets. */
@media(max-width:920px){
  #casos>.section-shell{max-width:none!important;padding-left:0!important;padding-right:0!important}
  #casos>.section-shell>:not(.case-grid){margin-left:clamp(20px,5.5vw,42px)!important;margin-right:clamp(20px,5.5vw,42px)!important}
  #casos .case-grid{width:100%;max-width:none;margin-left:0!important;margin-right:0!important}
  #casos .case-card.is-editorial-case{border-radius:0!important;width:100%!important}
  #casos .project-scene,#casos .project-composition{width:100%;max-width:none}
}
