/* Both navigation rows share a compact right-aligned frame and column edges. */
@media(min-width:1151px){
 body.journey-home .site-header{grid-template-columns:clamp(220px,20vw,280px) minmax(0,1fr);column-gap:2rem}
 body.journey-home .site-header nav.header-primary,
 body.journey-home .site-header nav.header-secondary{width:min(100%,980px);max-width:980px;justify-self:end;justify-content:stretch;grid-template-columns:repeat(5,minmax(0,1fr));gap:.5rem;margin:0;padding:0}
 body.journey-home .site-header nav.header-primary>a,
 body.journey-home .site-header nav.header-secondary>a,
 body.journey-home .site-header nav.header-secondary>.header-more{width:100%!important;max-width:100%!important;min-width:0;margin:0!important;justify-self:stretch}
 body.journey-home .site-header nav.header-primary .language-picker{width:100%!important;padding:0;margin:0;justify-self:stretch}
 body.journey-home .site-header nav.header-primary .language-picker select{display:block;width:100%;max-width:100%;box-sizing:border-box;margin:0}
 body.journey-home .site-header nav.header-secondary .header-more>summary{width:100%;max-width:100%;box-sizing:border-box;margin:0}
}
/* One identity footer: logo, statement and the person behind RAI. */
body.journey-home footer#contact.rai-identity-footer{display:grid;grid-template-columns:minmax(210px,300px) minmax(0,540px);justify-content:center;align-items:center;gap:1.75rem 3rem;padding:3rem clamp(1.25rem,4vw,4rem) 1.5rem;background:#101a18;color:#fff8ee;scroll-margin-top:calc(var(--header-height,180px) + 1rem)}
body.journey-home footer#contact .footer-identity-brand{display:block;min-width:0;width:100%;max-width:300px;margin:0;padding:0;background:transparent;border:0;box-shadow:none}
body.journey-home footer#contact .footer-identity-logo{display:block;width:100%;height:auto;max-height:155px;object-fit:contain}
body.journey-home footer#contact>.footer-identity-right{margin:0;width:100%;max-width:none;min-width:0}
body.journey-home footer#contact .footer-identity-statement{margin:0 0 1.25rem;color:#ead9b5;font:600 clamp(1rem,1.3vw,1.2rem)/1.5 var(--sans,system-ui);max-width:36rem;overflow-wrap:normal}
body.journey-home footer#contact .footer-founder-group{display:grid;grid-template-columns:150px minmax(0,1fr);gap:1.25rem;align-items:center;min-width:0}
body.journey-home footer#contact .founder-portrait{display:block;width:150px;max-width:100%;height:auto;aspect-ratio:1;object-fit:cover;justify-self:start;border-radius:10px;border:1px solid #a88752}
body.journey-home footer#contact .founder-profile{margin:0;width:100%;max-width:none;min-width:0}
body.journey-home footer#contact .founder-profile .eyebrow{margin:0 0 .45rem;font-size:1.35rem!important;line-height:1.3;color:#d7b56d;letter-spacing:.08em}
body.journey-home footer#contact .founder-profile h2{margin:0 0 .4rem;font-size:2.25rem;line-height:1.1;color:#fff8ee;text-shadow:none}
body.journey-home footer#contact .founder-brand{margin:0 0 .8rem;font:500 .95rem/1.4 var(--sans,system-ui);color:#e8ddc5}
body.journey-home footer#contact .founder-contacts{display:flex;gap:.6rem;justify-content:flex-start}
body.journey-home footer#contact .founder-contact-icon{width:44px;min-width:44px;height:44px;padding:10px;margin:0}
body.journey-home footer#contact .footer-copyright{grid-column:1/-1;margin:0;padding-top:1rem;border-top:1px solid #d7b56d33;width:100%;max-width:none;text-align:center;color:#c8d1c9;font:.8rem/1.5 var(--sans,system-ui)}
@media(max-width:1150px){body.journey-home footer#contact.rai-identity-footer{scroll-margin-top:1rem;grid-template-columns:minmax(180px,240px) minmax(0,500px);column-gap:2rem}}
@media(max-width:700px){
 body.journey-home footer#contact.rai-identity-footer{grid-template-columns:minmax(0,1fr);justify-items:center;gap:1.5rem;padding:2.25rem 1.25rem 1.25rem}
 body.journey-home footer#contact .footer-identity-brand{max-width:240px}
 body.journey-home footer#contact>.footer-identity-right{max-width:440px}
 body.journey-home footer#contact .footer-identity-statement{text-align:center;margin-bottom:1.25rem}
 body.journey-home footer#contact .footer-founder-group{grid-template-columns:120px minmax(0,1fr);gap:1rem}
 body.journey-home footer#contact .founder-portrait{width:120px}
 body.journey-home footer#contact .founder-profile .eyebrow{font-size:1.2rem!important}
 body.journey-home footer#contact .founder-profile h2{font-size:2rem}
 body.journey-home footer#contact .founder-brand{font-size:.85rem}
 body.journey-home footer#contact .founder-contacts{gap:.4rem}
}
@media(max-width:360px){body.journey-home footer#contact .footer-founder-group{grid-template-columns:100px minmax(0,1fr);gap:.75rem}body.journey-home footer#contact .founder-portrait{width:100px}}
/* Scale the brand into the available header height; keep the menus at the right. */
@media(min-width:1151px){
 body.journey-home .site-header{grid-template-columns:clamp(270px,28vw,400px) minmax(0,1fr);column-gap:1.5rem}
 body.journey-home .site-header .brand{width:100%;height:auto;min-height:172px;max-height:176px;align-self:center;justify-content:flex-start}
 body.journey-home .site-header .brand-logo{width:100%;max-width:100%;height:auto;max-height:172px;object-fit:contain;object-position:left center}
}
/* Symmetric outer margins frame the larger logo and the founder block. */
@media(min-width:701px){
 body.journey-home footer#contact.rai-identity-footer{grid-template-columns:minmax(0,1fr) minmax(0,1fr);justify-content:stretch;column-gap:clamp(2rem,5vw,5rem);padding-inline:clamp(1.5rem,4vw,4rem)}
 body.journey-home footer#contact .footer-identity-brand{width:100%;max-width:520px;justify-self:start}
 body.journey-home footer#contact .footer-identity-logo{width:100%;height:auto;max-height:240px;object-fit:contain;object-position:left center}
 body.journey-home footer#contact>.footer-identity-right{width:100%;max-width:540px;justify-self:end;margin:0}
 body.journey-home footer#contact .footer-identity-statement{max-width:none}
}
@media(min-width:701px) and (max-width:1000px){
 body.journey-home footer#contact.rai-identity-footer{grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);column-gap:1.5rem}
 body.journey-home footer#contact .footer-founder-group{grid-template-columns:120px minmax(0,1fr);gap:1rem}
 body.journey-home footer#contact .founder-portrait{width:120px}
}
@media(max-width:700px){body.journey-home footer#contact .footer-identity-brand{max-width:300px}body.journey-home footer#contact .footer-identity-logo{max-height:160px}}

/* Compact, centered mobile navigation and founder identity. */
@media(max-width:700px){
 body.journey-home .site-header>.language-picker{grid-column:1;grid-row:1;display:flex;justify-content:center;align-items:center;gap:.65rem;justify-self:center;width:auto;min-height:44px;height:auto;margin:0}
 body.journey-home .site-header .brand{grid-row:2}
 body.journey-home .site-header nav.header-primary{grid-row:3;align-items:stretch}
 body.journey-home .site-header nav.header-secondary{grid-row:4;align-items:stretch}
 body.journey-home .site-header .header-primary>.header-more{grid-column:2!important;grid-row:2!important;width:100%;min-width:0;margin:0;position:relative}
 body.journey-home .site-header .header-primary>.header-more>summary{display:flex;align-items:center;justify-content:center;min-height:64px;height:100%;box-sizing:border-box;border:1px solid #9caea6;border-radius:7px;padding:.65rem .5rem;font-size:.8rem;letter-spacing:0}
 body.journey-home .site-header .header-primary>.header-more>nav{inset-inline-end:0;max-width:calc(100vw - 2rem)}
 body.journey-home .site-header .header-secondary>a.js-cta{grid-column:1/-1!important;min-height:52px;font-size:1rem!important;padding:.8rem!important}
 body.journey-home footer#contact .footer-identity-right{max-width:360px;justify-self:center;text-align:center}
 body.journey-home footer#contact .footer-identity-statement{font-size:.95rem;line-height:1.55;margin:0 auto 1.5rem;max-width:320px}
 body.journey-home footer#contact .footer-founder-group{display:grid;grid-template-columns:minmax(0,1fr);justify-items:center;gap:.85rem;max-width:300px;margin-inline:auto;text-align:center}
 body.journey-home footer#contact .founder-portrait{width:96px;justify-self:center;border-radius:10px}
 body.journey-home footer#contact .founder-profile .eyebrow{font-size:.8rem!important;margin:0 0 .3rem;letter-spacing:.1em}
 body.journey-home footer#contact .founder-profile h2{font-size:1.6rem;line-height:1.2;margin:0 0 .35rem}
 body.journey-home footer#contact .founder-brand{font-size:.8rem;line-height:1.5;margin:0 0 .75rem}
 body.journey-home footer#contact .founder-contacts{justify-content:center;gap:.6rem}
 body.journey-home footer#contact .founder-contacts .founder-contact-icon{width:44px;min-width:44px;height:44px;padding:10px}
 body.journey-home footer#contact .founder-contact-icon svg{width:22px;height:22px}
}
@media(max-width:700px){
 body.journey-home .site-header>.language-picker{max-width:none}
 body.journey-home .site-header>.language-picker select{width:150px;max-width:150px;flex:none}
 body.journey-home .site-header .header-primary>.header-more{display:block;padding:0;border:0}
 body.journey-home .site-header .header-primary>.header-more>summary{margin:0;width:100%}
}
/* Mobile: logo first, Contact directly beneath, then language and menus. */
@media(max-width:700px){
 body.journey-home .site-header .brand{grid-column:1;grid-row:1}
 body.journey-home .site-header>.header-contact{grid-column:1;grid-row:2;display:flex;align-items:center;justify-content:center;justify-self:center;width:min(100%,300px);min-height:44px;box-sizing:border-box;margin:0;padding:.65rem 1rem;border:1px solid #9baea5;border-radius:7px;background:#f7f4ea;color:#123b35;font:650 .875rem/1.4 var(--sans,system-ui);text-align:center}
 body.journey-home .site-header>.language-picker{grid-row:3}
 body.journey-home .site-header nav.header-primary{grid-row:4}
 body.journey-home .site-header nav.header-secondary{grid-row:5}
 body.journey-home .site-header .header-primary>.header-more{grid-column:1/-1!important}
 body.journey-home .site-header .header-primary>.header-more>summary{min-height:44px}
}
@media(max-width:700px){
 body.journey-home .site-header>.mobile-identity-row{grid-column:1;grid-row:2;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem;width:100%;align-items:stretch}
 body.journey-home .site-header .mobile-identity-row>.header-more{display:block;position:relative;width:100%;min-width:0;margin:0;padding:0;border:0}
 body.journey-home .site-header .mobile-identity-row>.header-more>summary,
 body.journey-home .site-header .mobile-identity-row>.header-contact{display:flex;align-items:center;justify-content:center;gap:.5rem;width:100%;min-height:48px;height:100%;box-sizing:border-box;margin:0;padding:.65rem .5rem;border:1px solid #9baea5;border-radius:7px;background:#f7f4ea;color:#123b35;font:650 .875rem/1.4 var(--sans,system-ui);text-align:center;letter-spacing:0}
 body.journey-home .site-header .mobile-identity-row>.header-more>nav{inset-inline-start:0;inset-inline-end:auto;max-width:calc(100vw - 2rem)}
}
/* Info pair first, About RAI and Contact together immediately below it. */
@media(max-width:700px){
 body.journey-home .site-header>.language-picker{grid-row:2}
 body.journey-home .site-header nav.header-primary{grid-row:3}
 body.journey-home .site-header nav.header-secondary{grid-row:4}
 body.journey-home .site-header nav.header-primary>.header-more{display:block;grid-column:1!important;grid-row:2!important;margin:0;padding:0;position:relative;border:0}
 body.journey-home .site-header nav.header-primary>a.header-contact{grid-column:2!important;grid-row:2!important}
 body.journey-home .site-header nav.header-primary>.header-more>summary{min-height:48px;height:100%;width:100%;box-sizing:border-box;margin:0}
}
