/* Brand cases reuse the master; only selected art-directed modules change. */
.and-project-story.and-brand-case .and-story-heading h1{font-size:clamp(76px,10vw,152px);letter-spacing:-.035em}
.and-brand-case>.and-layer-hero .and-layer-foreground{width:min(86vw,1260px,calc(clamp(460px,75svh,900px)*2.12));max-width:none}
.studio-project[data-project-client="bam-pay"] .and-layer-foreground{width:min(100vw,1300px);max-width:none}
.studio-project[data-project-client="bam-pay"] .studio-project-client{display:none}
.and-brand-case .and-bam-raw{background:#ff5959;margin-top:clamp(16px,2vw,28px)}
.and-brand-case .and-bam-raw img{max-height:840px;object-fit:contain}
.and-brand-case .and-bam-cream{background:#fff9d7}
.and-brand-case .and-bam-tablet{padding:clamp(28px,5vw,80px)}
.and-brand-case .and-bam-tablet img{max-height:800px;object-fit:contain}
.and-brand-case .and-bam-tablet+.and-story-pair{margin-top:clamp(16px,2vw,28px)}
.and-brand-case .and-bam-film{margin-top:clamp(16px,2vw,28px)}
.and-brand-case .and-bam-film video{max-height:none}
.and-brand-case .and-bam-social{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(12px,2vw,28px);max-width:1440px;margin-inline:auto}
.and-brand-case .and-bam-social>.wp-block-group__inner-container{display:contents}
.and-brand-case .and-bam-social img{width:100%;height:auto;display:block}
.and-brand-case .and-bam-caption{max-width:1440px;margin:24px auto 40px}
.and-brand-case .and-bam-caption p{font:12px/1.7 'ANEWDAY Roboto Mono',monospace;color:var(--muted);margin:0}
.and-brand-case .and-bam-packaging{margin-top:clamp(16px,2vw,28px)}
@media(max-width:760px){.and-project-story.and-brand-case .and-story-heading h1{font-size:clamp(64px,20vw,100px)}.and-brand-case>.and-layer-hero .and-layer-foreground{width:125vw}.and-brand-case .and-bam-social{grid-template-columns:1fr}.and-brand-case .and-bam-caption{margin:20px 0 28px}}
/* Keep an oversized SVG centred inside the hero instead of growing its grid tracks. */
.and-brand-case .and-layer-drift,.studio-project[data-project-client="bam-pay"] .and-layer-drift{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr)}

/* Header sits one small step inside the media grid, so the logo overlaps each visual. */
@media screen and (min-width:761px){.source-catalogue .toolbar.sticky-nav>.nav-inner{padding-inline:calc(var(--gutter,32px) + 28px)}}
/* Original mark and original product cutout, composed as independent motion layers. */
.and-bam-hero .and-layer-drift{display:block}
.and-bam-hero .and-layer-foreground{position:absolute;left:-3%;top:0;width:81%!important;max-width:none;height:100%;display:flex;align-items:center}
.and-bam-hero .and-layer-foreground svg{width:100%!important;max-height:100%;object-fit:contain}
.and-bam-hero .and-bam-hero-device{position:absolute;left:46%;top:6%;width:51%;height:88%;display:flex;align-items:center;justify-content:center;line-height:0}
.and-bam-hero-device img{display:block;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 22px 22px rgba(47,27,27,.2))}
.and-story-motion .and-bam-hero[data-and-build=pending] .and-bam-hero-piece{opacity:0}
.and-brand-case .and-bam-terminal{background:#ff5959}
.and-brand-case .and-bam-terminal img{max-height:760px;object-fit:contain}
.and-brand-case .and-bam-checkout{background:#ff5959;padding:0}
.and-brand-case .and-bam-checkout img{width:100%;height:auto;max-height:780px;object-fit:contain}
.and-brand-case .and-bam-checkout+.and-story-pair{margin-top:clamp(16px,2vw,28px)}
@media(max-width:760px){
 .and-bam-hero .and-layer-foreground{width:120%!important;left:-10%;top:-19%;height:90%}
 .and-bam-hero .and-bam-hero-device{left:16%;top:34%;width:86%;height:67%}
}
@media(prefers-reduced-motion:reduce){.and-story-motion .and-bam-hero[data-and-build=pending] .and-bam-hero-piece{opacity:1}}

.and-brand-case .and-bam-website{background:#ff5959;margin-bottom:clamp(16px,2vw,28px)}
.and-brand-case .and-bam-digital+.and-story-pair{margin-top:clamp(16px,2vw,28px)}

/* Website: one large lead image, then three native editable content views. */
.and-brand-case .and-bam-web-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(12px,2vw,28px);width:100%;max-width:1440px;margin-inline:auto}
.and-brand-case .and-bam-web-grid>.wp-block-group__inner-container{display:contents}
.and-brand-case .and-bam-web-grid img{display:block;width:100%;height:auto;object-fit:contain}
@media(max-width:760px){.and-brand-case .and-bam-web-grid{grid-template-columns:1fr;gap:16px}}

.and-layer-video-hero{background:#fd5857}
.and-layer-video-hero :is(video,.and-hero-still){position:absolute;left:0;top:-10%;width:100%;height:120%;object-fit:contain;max-width:none;pointer-events:none}
.and-layer-video-hero video{display:none}
.and-story-motion .and-layer-video-hero video{display:block}
.and-story-motion .and-layer-video-hero .and-hero-still{display:none}
.and-story-motion .and-layer-video-hero[data-and-video-state=still] video{display:none}
.and-story-motion .and-layer-video-hero[data-and-video-state=still] .and-hero-still{display:block}
.and-brand-case .and-bam-launch{margin-top:clamp(16px,2vw,28px)}
@media(max-width:760px){.and-layer-video-hero :is(video,.and-hero-still){left:-25%;top:0;width:150%;height:100%}}
@media(prefers-reduced-motion:reduce){.and-story-motion .and-layer-video-hero video{display:none}.and-story-motion .and-layer-video-hero .and-hero-still{display:block}}

.and-brand-case .and-bam-social-five{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:clamp(10px,1.5vw,22px);max-width:1440px;width:100%;margin:clamp(16px,2vw,28px) auto 0}
.and-brand-case .and-bam-social-five>.wp-block-group__inner-container{display:contents}
.and-brand-case .and-bam-social-five img{display:block;width:100%;height:auto;object-fit:contain}
@media(max-width:760px){.and-brand-case .and-bam-social-five{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}}
