/* Shared navigation on the homepage, projects and all inner pages. */
.project-menu{position:relative;color:#bcbcbf}
.project-menu summary{display:flex;align-items:center;gap:8px;cursor:pointer;list-style:none;padding:10px 17px;border-radius:25px;font-size:14px;min-height:44px}
.project-menu summary::-webkit-details-marker{display:none}
.project-menu summary:hover,.project-menu[open]>summary{background:#ffffff0b;color:#fff}
.project-menu summary svg{transition:transform .2s;flex:none}
.project-menu[open]>summary svg{transform:rotate(180deg)}
.project-menu-panel{position:absolute;top:calc(100% + 12px);left:0;width:360px;max-width:calc(100vw - 32px);padding:9px;border:1px solid #ffffff25;border-radius:15px;background:#141517;box-shadow:0 24px 70px #000b;max-height:calc(100dvh - 170px);overflow-y:auto;z-index:80}
.project-menu-panel>a{display:block;padding:11px 13px;border-radius:8px;font-size:14px;line-height:1.45;color:#c6c4c4;text-decoration:none}
.project-menu-panel>a:hover,.project-menu-panel>a[aria-current=page]{background:#ffffff09;color:#f0ac91}
.project-menu-panel .project-menu-all{display:flex;justify-content:space-between;border-bottom:1px solid #ffffff17;border-radius:0;padding-bottom:15px;margin-bottom:6px;color:#fff}
.project-menu summary:focus-visible,.project-menu-panel>a:focus-visible{outline:2px solid #ef9a76;outline-offset:2px}
.site-header .brand{position:relative;isolation:isolate;background:none;border-radius:0;--logo-edge:4.2vw}
.site-header .brand::before{content:"";position:absolute;z-index:-1;top:0;bottom:0;left:calc(-1 * var(--logo-edge));width:calc(100% + var(--logo-edge) + 95px);background:linear-gradient(90deg,#fff 0%,#fff calc(100% - 85px),#fff0 100%);pointer-events:none}
.project-heading{padding-top:52px;padding-bottom:44px;max-width:1440px;margin:0 auto}
.project-breadcrumbs{display:flex;flex-wrap:wrap;gap:9px 12px;align-items:center;color:#85868b;font-size:14px;margin-bottom:48px;line-height:1.6}
.project-breadcrumbs a{color:#c1bdbb;text-underline-offset:4px}
.project-breadcrumbs a:hover{text-decoration:underline;color:#f0ac91}
.project-heading-meta{display:flex;align-items:center;justify-content:space-between;gap:20px;color:#99979b;font-size:14px}
.project-heading-meta .eyebrow{margin:0;color:#d58970}
.project-heading h1{font-size:clamp(34px,4.8vw,72px);line-height:1.07;letter-spacing:-.045em;font-weight:500;max-width:1050px;margin:26px 0}
.project-heading-bottom{display:flex;align-items:flex-end;justify-content:space-between;gap:30px}
.project-heading-bottom>p,.project-heading>.lead{max-width:740px;font-size:18px;line-height:1.75;color:#aeadb2;margin:0}
.project-heading-bottom .text-link{flex:none;white-space:nowrap;font-size:14px}
.case-dialog.project-content{display:block;position:static;width:calc(100% - 12vw);max-width:1200px;max-height:none;margin:0 auto;overflow:visible;overscroll-behavior:auto;box-shadow:none;border:1px solid #ffffff1c;border-radius:14px;scroll-margin-top:135px}
.project-content>.case-player{border-radius:14px 14px 0 0;overflow:hidden}
.project-content>.case-video-disclosure{border-radius:14px 14px 0 0}
.project-content .case-story{padding:56px 6% 48px}
.project-pagination{display:grid;grid-template-columns:1fr auto 1fr;gap:32px;align-items:stretch;max-width:1440px;margin:auto;padding-block:60px 84px}
.project-pagination>a{display:flex;flex-direction:column;gap:12px;justify-content:center;padding:25px 0;border-top:1px solid #ffffff22;min-width:0}
.project-pagination>a:last-child{text-align:right}
.project-pagination>a>span{font-size:14px;color:#969499}
.project-pagination strong{font-size:clamp(16px,1.6vw,23px);font-weight:500;line-height:1.35}
.project-pagination a:hover strong,.project-pagination a:hover>span{color:#efa483}
.project-pagination .project-pagination-all{align-items:center;justify-content:center;padding-inline:20px}
.project-catalog{padding-top:0}
@media(max-width:1100px){.project-menu summary{padding-inline:12px}}
@media(max-width:760px){
 .mobile-nav{max-height:calc(100dvh - 130px);overflow-y:auto}
 .mobile-nav .project-menu>summary{padding:14px;font-size:21px;border-radius:8px;justify-content:space-between}
 .mobile-nav .project-menu-panel{position:static;width:auto;max-width:none;max-height:none;box-shadow:none;margin:3px 0 8px;padding:5px;background:#101113;border-radius:10px}
 .mobile-nav .project-menu-panel>a{font-size:14px;padding:11px 12px}
 .project-heading{padding-top:28px;padding-bottom:28px}
 .project-breadcrumbs{margin-bottom:30px;gap:6px 10px;font-size:14px}
 .project-heading-meta{align-items:flex-start}
 .project-heading-meta .eyebrow{font-size:14px;letter-spacing:.08em}
 .project-heading-meta>span{white-space:nowrap}
 .project-heading h1{font-size:clamp(32px,8.4vw,48px);margin:22px 0;overflow-wrap:anywhere}
 .project-heading-bottom{display:block}
 .project-heading-bottom>p,.project-heading>.lead{font-size:16px;line-height:1.65}
 .project-heading-bottom .text-link{display:inline-flex;margin-top:20px}
 .case-dialog.project-content{width:calc(100% - 28px);border-radius:10px;scroll-margin-top:120px}
 .project-content .case-story{padding:30px 16px}
 .project-pagination{grid-template-columns:1fr 1fr;gap:18px;padding-block:35px 48px}
 .project-pagination .project-pagination-all{grid-column:1/-1;grid-row:2;padding:16px;flex-direction:row}
 .project-pagination>a{padding-top:18px}
 .project-pagination strong{font-size:16px}
}

/* The logo treatment also matches the homepage in the shared footer. */
.footer-brand{width:137px;position:relative;isolation:isolate;background:none;border-radius:0;--logo-edge:6vw}
.footer-brand::before{content:"";position:absolute;z-index:-1;top:0;bottom:0;left:calc(-1 * var(--logo-edge));width:calc(100% + var(--logo-edge) + 95px);background:linear-gradient(90deg,#fff 0%,#fff calc(100% - 85px),#fff0 100%);pointer-events:none}
.home-footer-links .footer-brand{margin-right:80px;padding:9px 18px 9px 8px;box-shadow:none}
@media(max-width:760px){
 .site-header .brand{--logo-edge:23px}
 .site-header .brand::before{width:calc(100% + var(--logo-edge) + 12px);background:linear-gradient(90deg,#fff calc(100% - 20px),#fff0)}
 .home-footer-links .footer-brand{margin-right:45px;padding-right:14px}
 .footer-brand::before{width:calc(100% + var(--logo-edge) + 55px);background:linear-gradient(90deg,#fff calc(100% - 45px),#fff0)}
}
/* Native video dimensions must not expand a three-column gallery on mobile. */
.project-content .case-backstage>figure{width:100%;max-width:100%;min-width:0}
.project-content .case-backstage>figure figcaption{flex-wrap:wrap;gap:4px 10px;overflow-wrap:anywhere}
/* A video title already appears below each tile; keep the image and Play control clear. */
.project-content :is(.events-video-result,.product-video-result,.union-podcast-result,.marat-video-result) .case-video-caption{display:none}
.project-content :is(.events-video-result,.product-video-result,.union-podcast-result,.marat-video-result) .case-video-play{font-size:0;gap:0}
.project-content :is(.events-video-result,.product-video-result,.union-podcast-result,.marat-video-result) .case-video-play .icon{width:clamp(34px,4.5vw,58px);height:clamp(34px,4.5vw,58px);padding:clamp(10px,1.35vw,18px)}
