/* Shared layout contract: 1440px of usable content, excluding gutters. */
:root{--content-max:1440px;--page-gutter:48px}
.shell{box-sizing:border-box;width:100%;max-width:calc(var(--content-max) + var(--page-gutter)*2);margin-inline:auto;padding-inline:var(--page-gutter)}
nav.island-nav{width:min(var(--content-max),calc(100% - var(--page-gutter)*2))}
/* Keep the established compact island on scroll. */
nav.island-nav.compact{width:325px;max-width:calc(100% - var(--page-gutter)*2)}
.shell main,.shell main>section,.shell main>header{min-width:0}
.ux-intro,.play-intro,.case-hero,.detail{max-width:none;padding-inline:0}
.case-hero>p,.case-section>p,.case-summary p,.case-section h2,.story-heading,.challenge-list,.case-figure figcaption,.sitemap-motion figcaption,.about-copy p{max-width:none}
.shell main img,.shell main video,.shell main canvas{max-width:100%}
@media(max-width:1024px){:root{--page-gutter:32px}}
@media(max-width:760px){:root{--page-gutter:22px}}
@media(max-width:480px){:root{--page-gutter:16px}nav.island-nav.compact{width:310px}nav.island-nav:not(.compact){padding-inline:10px}.shell footer{flex-wrap:wrap}}

/* Project covers share a 16:9 canvas on every listing. */
.portfolio-cover-slot{aspect-ratio:16/9;width:100%;height:auto!important;min-height:0;max-height:none;position:relative;overflow:hidden}
.portfolio-cover-slot>img{display:block;position:absolute;inset:0;width:100%!important;height:100%!important;max-width:none;max-height:none!important;object-fit:cover!important;object-position:50% 30%;border-radius:0!important;box-shadow:none!important}

/* Phones: readable nav labels and finger-sized tap targets.
   Full nav wraps to two rows (logo, then links); compact island keeps its icons but gets room for its toggles. */
@media(max-width:480px){
nav.island-nav:not(.compact){flex-wrap:wrap;row-gap:4px!important;border-radius:22px!important;padding:8px 12px!important}
nav.island-nav:not(.compact)>.logo{margin-right:auto}
nav.island-nav:not(.compact) .navlinks{flex-basis:100%;order:3;justify-content:space-between!important;gap:0!important}
nav.island-nav:not(.compact) .navlinks a,nav.island-nav:not(.compact) .navlinks .nav-label,nav.island-nav:not(.compact) .navlinks .nav-label span{font-size:12.5px!important;white-space:nowrap}
nav.island-nav:not(.compact) .navlinks>a,nav.island-nav:not(.compact) .nav-dropdown>a{min-height:44px;display:inline-flex;align-items:center;padding:8px 0 8px 4px!important}
nav.island-nav .menu-toggle{width:22px!important;min-width:22px;flex-shrink:0;height:44px!important;padding:3px!important}
nav.island-nav.compact{width:min(346px,calc(100% - 28px))!important}
.nav-spacer{height:112px!important}
/* The first dropdown now sits at the nav's left edge: open menus from the left instead of centred, so they stay on screen. */
nav.island-nav .nav-dropdown:first-child .nav-menu{left:0}
nav.island-nav .nav-dropdown:first-child .nav-menu{translate:0 -5px}
nav.island-nav .nav-dropdown:first-child.menu-open .nav-menu{translate:0 0}
}
/* Narrower phones: drop the dropdown arrows in the full nav so labels stay on one line; the category pages list every project. */
@media(max-width:389px){nav.island-nav:not(.compact) .menu-toggle{display:none}}
@media(max-width:340px){nav.island-nav.compact .menu-toggle{display:none}nav.island-nav:not(.compact) .navlinks a,nav.island-nav:not(.compact) .navlinks .nav-label,nav.island-nav:not(.compact) .navlinks .nav-label span{font-size:11px!important}}
