/* Shared brand lockup and page titles. Existing title colours are retained. */
header .brand>span{display:block;text-align:center;font-size:clamp(28px,3.2vw,46px);line-height:1.05;color:#fff;letter-spacing:1px}
header .brand small,.home-page header .brand small{display:block;text-align:center;color:#fff;font-size:clamp(9px,1vw,14px);line-height:1.5;letter-spacing:1.5px;margin-top:10px}
h1{text-align:center}
.home-page .hero h1{font-size:clamp(84px,10.8vw,164px);max-width:1100px;margin-inline:auto}
.gallery-hero>div{width:100%}.gallery-hero h1{font-size:clamp(88px,9vw,136px);max-width:none;margin-inline:auto}
.founder-hero h1{font-size:clamp(72px,7vw,108px);max-width:none}
.command-intro h1{font-size:clamp(70px,7.6vw,110px);max-width:none;overflow-wrap:anywhere}
@media(max-width:800px){header .brand{flex-direction:column;gap:12px;align-items:center}header .brand>span{font-size:28px}header .brand small,.home-page header .brand small{font-size:9px;letter-spacing:1px}.home-page header .brand{align-items:center}.home-page .hero h1{font-size:clamp(64px,11vw,100px)}.gallery-hero h1{font-size:clamp(68px,11vw,100px)}.founder-hero h1{font-size:clamp(64px,10vw,90px)}.command-intro h1{font-size:clamp(48px,8.7vw,76px)}}
@media(max-width:420px){header .brand>span,.home-page header .brand span{font-size:25px}header .brand small,.home-page header .brand small{font-size:8px;letter-spacing:.8px}header .brand{max-width:calc(100% - 95px)}}

/* Logo-only banner and left-aligned homepage title. */
.home-page .hero h1{text-align:left;margin-inline:0}

/* Mountain texture gives the masthead depth without competing with the logo. */
header,.subpage header,.home-page header{background:linear-gradient(90deg,rgba(17,18,16,.92),rgba(17,18,16,.78)),url('assets/mm-ridge.jpg') center 46%/cover;padding-top:8px;padding-bottom:8px}
header nav a{font-size:16px}header .menu-toggle{font-size:16px;padding:15px 20px}
@media(min-width:1200px){header nav{display:flex;position:static;flex-direction:row;align-items:center;gap:19px;padding:0;border:0;background:transparent}header nav a,header nav a:nth-child(-n+3){display:block;font-size:15px;padding:8px 0}header nav .nav-cta{padding:13px 15px}header .menu-toggle{display:none}}
.home-page .hero h1{font-size:clamp(92px,12vw,180px);max-width:1200px}
.gallery-hero h1{font-size:clamp(96px,10vw,150px)}
.founder-hero h1{font-size:clamp(80px,7.8vw,120px)}
.command-intro h1{font-size:clamp(76px,8.2vw,120px)}
@media(max-width:800px){.home-page .hero h1{font-size:clamp(68px,12vw,108px)}.gallery-hero h1{font-size:clamp(74px,12vw,110px)}.founder-hero h1{font-size:clamp(68px,11vw,98px)}.command-intro h1{font-size:clamp(48px,9.2vw,82px)}}
/* Prominent navigation fills the masthead alongside the logo. */
header,.subpage header,.home-page header{background:linear-gradient(90deg,rgba(17,18,16,.89),rgba(17,18,16,.73)),url('assets/mm-snow-landscape.jpg') center 58%/cover}
@media(min-width:1100px){header nav{display:grid;position:static;grid-template-columns:repeat(3,minmax(0,1fr));width:calc(100% - 305px);max-width:1050px;gap:20px 30px;padding:16px 0;align-items:center;border:0;background:transparent}header nav a,header nav a:nth-child(-n+3){display:block;font-family:'Barlow Condensed',sans-serif;font-size:clamp(26px,2.15vw,40px);font-weight:600;line-height:1.1;text-transform:uppercase;letter-spacing:.6px;padding:8px 0;text-wrap:balance}header nav .nav-cta{padding:13px 16px;grid-column:span 2;justify-self:start}header .menu-toggle{display:none}}
@media(max-width:1099px){header nav{display:none;position:absolute;top:100%;left:0;right:0;width:auto;max-width:none;background:#111210;padding:24px 6%;border-top:1px solid #4b5031}header nav.is-open{display:flex;flex-direction:column;align-items:stretch;gap:10px}header nav a,header nav a:nth-child(-n+3){display:block;font-family:'Barlow Condensed',sans-serif;font-size:28px;line-height:1.15;padding:12px 0;text-transform:uppercase}header .menu-toggle{display:flex;font-size:20px;padding:17px 22px}}
/* Navigation wraps as whole labels across one or two desktop rows. */
.nav-socials{display:flex;align-items:center;gap:16px;flex-shrink:0}
header nav .nav-social-icon{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;padding:6px;border:0;text-decoration:none;color:inherit;flex-shrink:0}
.nav-social-icon svg{display:block;width:30px;height:30px;fill:currentColor}
.nav-socials a:hover{color:#fff}
@media(min-width:1100px){header nav{display:flex;flex-wrap:wrap;flex-direction:row;justify-content:flex-end;align-content:center;align-items:center;gap:24px 26px;width:calc(100% - 305px);max-width:1100px}header nav>a,header nav>a:nth-child(-n+3){font-size:clamp(22px,1.85vw,32px);white-space:nowrap;text-wrap:nowrap;padding:8px 0}header nav .nav-cta{grid-column:auto;justify-self:auto;padding:12px 16px}.nav-socials{gap:12px}}
@media(max-width:1099px){.nav-socials{margin-top:8px;padding:8px 0;gap:20px}header nav .nav-social-icon{padding:6px;font-size:inherit}}
/* Paired Men & Mountains and No Man Left Behind marks. */
header{gap:30px}header .brand{flex-direction:row;gap:12px;flex-shrink:0;align-items:center;max-width:none}
header .brand-motto{display:block;width:132px;height:132px;object-fit:contain;flex-shrink:0}
.home-page header .brand-motto{width:264px;height:264px}
@media(min-width:1100px){header nav{flex:1;width:auto;min-width:0;max-width:none;justify-content:flex-start;gap:20px 24px}}
@media(min-width:1100px) and (max-width:1399px){.home-page header .brand-roundel,.home-page header .brand-motto{width:200px;height:200px}header{gap:24px}header nav>a,header nav>a:nth-child(-n+3){font-size:22px}}
@media(max-width:1099px){header .brand-roundel,header .brand-motto,.home-page header .brand-roundel,.home-page header .brand-motto{width:clamp(90px,16vw,150px);height:clamp(90px,16vw,150px)}header .brand,.home-page header .brand{flex-direction:row;flex:0 1 auto;gap:8px;align-items:center}header{gap:12px}header .menu-toggle{margin-left:auto}}
@media(max-width:420px){header .brand,.home-page header .brand{max-width:none}header .brand-roundel,header .brand-motto,.home-page header .brand-roundel,.home-page header .brand-motto{width:90px;height:90px}header .menu-toggle{font-size:16px;padding:12px}}
/* Preserve the original artwork while blending away its black backdrop. */
header .brand-motto{mix-blend-mode:screen}
header .brand-roundel{transform:scale(1.14);transform-origin:center}
header .brand{gap:18px}
@media(max-width:420px){header .brand{gap:12px}}
/* Two balanced rows: headings above, social icons and call to action below. */
.nav-primary,.nav-actions{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:20px}
.nav-actions{gap:28px;width:100%}
@media(min-width:1100px){header nav{display:flex;flex-direction:column;flex-wrap:nowrap;justify-content:center;align-items:stretch;gap:25px}.nav-primary{width:100%;gap:14px 20px}header nav .nav-primary>a{font-family:'Barlow Condensed',sans-serif;font-size:clamp(20px,1.65vw,29px);line-height:1.1;font-weight:600;text-transform:uppercase;white-space:nowrap;padding:8px 0;letter-spacing:.4px}header nav .nav-actions .nav-cta{font-family:'Barlow Condensed',sans-serif;font-size:clamp(22px,1.85vw,32px);font-weight:600;line-height:1.1;white-space:nowrap;text-transform:uppercase;padding:12px 16px}}
@media(max-width:1099px){.nav-primary{flex-direction:column;align-items:center;gap:8px}.nav-actions{justify-content:center;gap:20px;padding-top:15px}.nav-socials{margin:0;padding:0}}
/* Match the lower landing-banner captions to the introductory paragraph. */
.home-page .hero-bottom{font-family:'DM Sans',sans-serif;font-size:16px;font-weight:400;line-height:1.75;letter-spacing:normal;text-transform:none;gap:24px;align-items:center;flex-wrap:wrap;bottom:28px}
@media(max-width:800px){.home-page .hero-bottom{font-size:16px;gap:10px 24px}.home-page .hero{padding-bottom:145px}}
@media(max-width:520px){.home-page .hero-bottom{flex-direction:column;align-items:flex-start;gap:6px;bottom:24px}.home-page .hero-bottom span:last-child{display:block}.home-page .hero{padding-bottom:190px}}
/* Shared olive dividers and a lighter brand-green mountain masthead. */
:root{--brand-green:#4b5031}
main section{border-bottom:3px solid var(--brand-green)}
.home-page main>.story,.home-page main>.join{border-top:0}
header,.subpage header,.home-page header{background:linear-gradient(90deg,rgba(75,80,49,.72),rgba(75,80,49,.48)),url('assets/mm-snow-landscape.jpg') center 58%/cover;border-bottom:3px solid var(--brand-green)}
@media(max-width:1099px){header nav,header nav.is-open{background:#4b5031}}

/* Complete the mountain backdrop treatment on the remaining plain sections.
   All photographs are from the Men & Mountains collection. */
.home-page .story{background:linear-gradient(90deg,#111210db,#111210ed),url('assets/mm-snow-landscape.jpg') center 55%/cover no-repeat}
.home-page .places{background:linear-gradient(90deg,#e4decee8,#e4deceb3),url('assets/adventures-alpine-panorama.webp') center 60%/cover no-repeat}
.home-page .join{background:linear-gradient(90deg,#dedfcfe6,#dedfcfbf),url('assets/intro-community-mountains.webp') center 58%/cover no-repeat}
.home-page .social-section{background:linear-gradient(90deg,#4b5031eb,#4b5031b8),url('assets/gallery/trip-01.jpg') center 55%/cover no-repeat}
.home-page .faq{background:linear-gradient(90deg,#eee6d2e6,#eee6d2c7),url('assets/mm-snow-landscape.jpg') center 65%/cover no-repeat}
.command-intro{background:linear-gradient(90deg,#eee6d2e0,#eee6d2b3),url('assets/intro-community-mountains.webp') center 60%/cover no-repeat}
.command-list{background:linear-gradient(90deg,#eee6d2eb,#eee6d2cc),url('assets/adventures-alpine-panorama.webp') center/cover no-repeat}
.command-close{background:linear-gradient(90deg,#4b5031e6,#4b5031b8),url('assets/mm-snow-landscape.jpg') center 58%/cover no-repeat}
.gallery-intro{background:linear-gradient(90deg,#eee6d2eb,#eee6d2b8),url('assets/together-evening-mountains.webp') center 42%/cover no-repeat}
.gallery-collection{background:linear-gradient(90deg,#eee6d2ed,#eee6d2cc),url('assets/intro-community-mountains.webp') center/cover no-repeat}
.founder-page .invictus-story{background:linear-gradient(90deg,#111210e6,#111210d6),url('assets/adventures-alpine-panorama.webp') center/cover no-repeat}
.founder-page .invictus-photos{background:linear-gradient(90deg,#eee6d2eb,#eee6d2c2),url('assets/mm-snow-landscape.jpg') center/cover no-repeat}
.founder-page .founder-outdoors{background:linear-gradient(90deg,#e0dfcfe6,#e0dfcfcc),url('assets/intro-community-mountains.webp') center 60%/cover no-repeat}
@media(max-width:650px){.home-page .places,.command-list,.gallery-collection,.founder-page .invictus-photos{background-size:auto 100%;background-position:center}}

/* Personal MTA membership, separate from the Men & Mountains brand marks. */
.footer-membership{border-top:1px solid #ffffff26;margin-top:28px;padding-top:24px}.footer-membership>a{display:inline-flex;align-items:center;gap:24px;text-decoration:none;color:#eee6d2}.footer-membership img{display:block;width:210px;max-width:45vw;height:auto;object-fit:contain}.footer-membership span{font-size:13px}.footer-membership small{display:block;font-size:10px;line-height:1.6;color:#c8c5ac;margin-top:5px}
@media(max-width:520px){.footer-membership>a{flex-direction:column;align-items:flex-start;gap:15px}.footer-membership img{max-width:100%;width:190px}}

/* Transparent artwork sits above the masthead, in its original brand colours. */
header .brand{position:relative;z-index:1;isolation:isolate}
header .brand-motto{position:relative;z-index:2;mix-blend-mode:normal;opacity:1;filter:none}

/* Keep the banner invitation free of a button outline. */
header nav .nav-actions .nav-cta{border:0}

/* MTA membership sits beside the homepage welcome headline. */
.home-page .hero-title-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(210px,25%);align-items:start;gap:4%}
.home-page .hero-title-row h1{font-size:clamp(76px,8.9vw,156px);max-width:100%;min-width:0}
.hero-mta{display:flex;flex-direction:column;align-items:center;gap:15px;text-decoration:none;color:#eee6d2;justify-self:end;width:100%;max-width:340px;padding-top:20px}
.hero-mta img{display:block;width:100%;height:auto;object-fit:contain}
.hero-mta span{font-size:11px;line-height:1.6;text-align:center;color:#eee6d2}
@media(max-width:800px){.home-page .hero-title-row{grid-template-columns:1fr;gap:28px}.home-page .hero-title-row h1{font-size:clamp(64px,11vw,108px)}.hero-mta{justify-self:start;align-items:flex-start;width:230px;max-width:70%;padding-top:0;gap:10px}.hero-mta span{text-align:left}.home-page .hero{min-height:900px}}

/* Softer charcoal lets the masthead photograph connect with the homepage. */
header,.subpage header,.home-page header{background:linear-gradient(90deg,rgba(17,18,16,.76),rgba(17,18,16,.54)),url('assets/mm-snow-landscape.jpg') center 58%/cover;border-bottom:3px solid var(--brand-green)}
@media(max-width:1099px){header nav,header nav.is-open{background:#111210}}

/* Round separators inherit the navigation colour of each banner. */
@media(min-width:1100px){
 header nav .nav-primary>a{position:relative}
 header nav .nav-primary>a+a::before{content:"";position:absolute;left:-12px;top:50%;width:5px;height:5px;border-radius:50%;background:currentColor;transform:translateY(-50%);pointer-events:none}
}

/* News sits beside the social profiles in the banner action row. */
header nav .nav-actions .nav-news{font-family:"Barlow Condensed",sans-serif;font-size:clamp(22px,1.85vw,32px);font-weight:600;line-height:1.1;white-space:nowrap;text-transform:uppercase;letter-spacing:.4px;padding:12px 0}

/* Give each banner heading breathing room and separate the action groups. */
@media(min-width:1100px){
 .nav-primary{column-gap:38px;row-gap:14px}
 header nav .nav-primary>a+a::before{left:-22px;width:6px;height:6px}
}
.nav-actions .nav-divider{display:block;flex:0 0 6px;width:6px;height:6px;border-radius:50%;background:currentColor}
.nav-actions{column-gap:26px;row-gap:18px}
@media(max-width:560px){.nav-actions{column-gap:14px}.nav-socials{gap:8px}header nav .nav-social-icon{width:34px;height:34px;padding:4px}.nav-social-icon svg{width:26px;height:26px}header nav .nav-actions .nav-cta{font-size:22px;padding:10px 0}.nav-actions .nav-divider{flex-basis:5px;width:5px;height:5px}}
