@media (min-width: 1001px) {
  .desktop-motto-button { display: grid; place-items: center; width: 112px; min-height: 48px; padding: 5px; border: 0; border-radius: 0; background: transparent; box-shadow: none; cursor: pointer; }
  .desktop-motto-mark { position: relative; display: block; width: 100%; aspect-ratio: 2.07; overflow: hidden; }
  .desktop-motto-mark img { position: absolute; width: 117%; max-width: none; height: auto; left: -8%; top: -27%; }
  .desktop-motto-button:focus-visible, .desktop-motto-close:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
  .desktop-motto-dialog { box-sizing: border-box; width: calc(100% - 28px); max-width: 460px; max-height: calc(100dvh - 32px); margin: auto; padding: 0 20px 24px; overflow-y: auto; color: #fff; background: radial-gradient(ellipse at top,rgba(166,132,51,.16),transparent 60%),#03203e; border: 1px solid #a68433; border-radius: 20px; text-align: center; box-shadow: 0 24px 70px #0009; }
  .desktop-motto-dialog::backdrop { background: rgba(0,10,24,.8); backdrop-filter: blur(5px); }
  .desktop-motto-dialog form { position: sticky; top: 0; display: flex; justify-content: flex-end; margin: 0 -10px 8px; padding: 8px 0; background: #03203e; z-index: 1; }
  .desktop-motto-close { min-height: 44px; padding: 8px 12px; border: 1px solid #a68433; border-radius: 8px; background: #03203e; color: #fff; font: inherit; cursor: pointer; }
  .desktop-motto-dialog .eyebrow { font-size: .65rem; color: var(--gold-text); margin: 0 0 10px; ;font-weight:650;text-shadow:none;-webkit-text-fill-color:currentColor;}
  .desktop-motto-dialog h2 { font-size: clamp(1.35rem,6vw,1.9rem); line-height: 1.25; margin: 0 0 20px; white-space: nowrap; }
  .desktop-motto-dialog section { padding: 16px 0; border-top: 1px solid #a6843355; }
  .desktop-motto-dialog h3 { color: var(--gold-text); font-size: 1.2rem; margin: 0 0 8px; ;font-weight:650;text-shadow:none;-webkit-text-fill-color:currentColor;}
  .desktop-motto-dialog p { font-size: 1rem; line-height: 1.55; margin: 0; }
  .desktop-motto-dialog .desktop-motto-promise { padding-top: 12px; font-weight: 700; color: var(--gold-text); ;font-weight:650;text-shadow:none;-webkit-text-fill-color:currentColor;}
}

@media (min-width: 1001px) {
 .site-header.site-header { grid-template-columns: auto minmax(0,1fr) 112px auto; gap: clamp(.7rem,1.5vw,1.5rem); }
 .site-header.site-header nav { gap: clamp(.55rem,1.2vw,1.4rem); }
 .desktop-motto-button:hover { background: transparent; opacity: .85; }
 .desktop-motto-dialog { max-width: 640px; padding: 0 36px 28px; }
 .desktop-motto-dialog h2 { font-size: 2rem; }
 .desktop-motto-dialog p { font-size: 1.05rem; }
}

/* Recolor only the lower lettering, preserving the original transparent mark. */
@media (min-width: 1001px) {
  .desktop-motto-mark::after {
    content: ""; position: absolute; width: 117%; aspect-ratio: 2048 / 1365;
    left: -8%; top: -27%; pointer-events: none;
    background: #03203e;
    -webkit-mask: url('assets/be-great-do-great-original.png') center / 100% 100% no-repeat;
    mask: url('assets/be-great-do-great-original.png') center / 100% 100% no-repeat;
    clip-path: inset(50% 0 0);
  }
}

@media (min-width: 1001px) {
  .site-header > a.button.button-small { display: none; }
  .desktop-foundation-link { display: flex; align-items: center; justify-content: center; width: clamp(150px,14vw,210px); min-height: 48px; padding: 0; background: transparent; border: 0; box-shadow: none; }
  .desktop-foundation-link img { display: block; width: 100%; height: auto; max-height: 76px; object-fit: contain; }
  .desktop-foundation-link:focus-visible { outline: 2px solid #fff; outline-offset: 5px; border-radius: 4px; }
  .desktop-foundation-link:hover { opacity: .85; }
}

/* Larger, balanced desktop artwork with clear space above and below. */
@media (min-width: 1001px) {
  .site-header.site-header {
    background: #680f0e;
    grid-template-columns: minmax(150px,230px) minmax(max-content,1fr) minmax(112px,172px) minmax(170px,260px);
    gap: clamp(12px,1.3vw,24px);
    padding-inline: clamp(20px,2vw,40px);
  }
  .site-header.site-header .brand,
  .site-header .desktop-motto-button,
  .site-header .desktop-foundation-link {
    width: 100%; height: 100%; min-height: 0; padding: 12px 0;
    background: transparent; border: 0; box-shadow: none;
    display: flex; align-items: center; justify-content: center;
  }
  .site-header.site-header .brand img,
  .site-header .desktop-foundation-link img {
    width: 100%; height: 100%; max-height: calc(var(--desktop-header-height,112px) - 29px);
    object-fit: contain; filter: drop-shadow(0 3px 4px rgba(0,0,0,.45));
  }
  .desktop-motto-mark { filter: drop-shadow(0 3px 4px rgba(0,0,0,.4)); }
  .desktop-motto-mark::after { background: #a68433; }
  .site-header.site-header nav { gap: clamp(10px,1.2vw,22px); white-space: nowrap; }
}
@media (min-width: 1001px) and (max-width: 1300px) {
  .site-header.site-header { grid-template-columns: minmax(150px,190px) minmax(max-content,1fr) minmax(112px,140px) minmax(170px,210px); gap: 10px; padding-inline: 20px; }
  .site-header.site-header nav { gap: 10px; font-size: .76rem; }
}

/* Equal visible artwork heights, accounting for each file's transparent margins. */
@media (min-width: 1001px) {
  .site-header.site-header {
    --header-art-height: clamp(62px,5.6vw,72px);
    grid-template-columns: auto minmax(max-content,1fr) auto auto;
  }
  .site-header.site-header .brand,
  .site-header .desktop-foundation-link {
    position: relative; height: var(--header-art-height); padding: 0;
    overflow: hidden; align-self: center;
  }
  .site-header.site-header .brand { width: calc(var(--header-art-height) * 2.58837); }
  .site-header .desktop-foundation-link { width: calc(var(--header-art-height) * 3.20096); }
  .site-header.site-header .brand img {
    position: absolute; max-width: none; max-height: none;
    width: 103.7165%; height: 110.5145%; left: -2.2472%; top: -6.264%;
    object-fit: fill;
  }
  .site-header .desktop-foundation-link img {
    position: absolute; max-width: none; max-height: none;
    width: 102.0429%; height: 109.8884%; left: -.6976%; top: -5.7416%;
    object-fit: fill;
  }
  .site-header .desktop-motto-button {
    height: var(--header-art-height); width: calc(var(--header-art-height) * 2.07);
    padding: 0; align-self: center;
  }
  .desktop-motto-mark { height: 100%; width: 100%; }
}

@media (min-width: 1301px) {
  .site-header.site-header {
    --header-art-height: clamp(70px,6.2vw,88px);
  }
}

/* Keep the supporting Foundation and motto marks slightly smaller than Technologies. */
@media (min-width: 1001px) {
  .site-header .desktop-motto-button,
  .site-header .desktop-foundation-link {
    transform: scale(.92);
  }
}

/* A cinematic desktop motto story, with the approved artwork intact. */
@media (min-width: 1001px) {
 .desktop-motto-dialog { width: min(1120px,calc(100vw - 64px)); max-width: 1120px; max-height: calc(100dvh - 40px); padding: 0; border-radius: 22px; background: #03203e; border-color: #a68433; text-align: left; }
 .desktop-motto-dialog::backdrop { background: rgba(0,8,18,.86); backdrop-filter: blur(10px); }
 .desktop-motto-dialog form { position: sticky; top: 0; height: 0; margin: 0; padding: 0; z-index: 3; background: transparent; overflow: visible; }
 .desktop-motto-dialog .desktop-motto-close { position: absolute; right: 14px; top: 14px; background: rgba(3,32,62,.94); border-color: #ffffff44; font-size: .85rem; }
 .motto-cinema { display: grid; grid-template-columns: 44% 56%; }
 .motto-cinema-photo { position: relative; min-height: 660px; overflow: hidden; }
 .motto-cinema-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 36% center; }
 .motto-cinema-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg,transparent 35%,rgba(3,32,62,.25) 53%,#03203e 100%); }
 .motto-cinema-caption { position: absolute; z-index: 1; left: 30px; right: 24px; bottom: 36px; }
 .desktop-motto-dialog .motto-cinema-caption .eyebrow { color: #fff; font-size: .65rem; letter-spacing: .16em; margin-bottom: 14px; }
 .desktop-motto-dialog .motto-cinema-caption > p:not(.eyebrow) { font-size: clamp(1.6rem,2.4vw,2.3rem); line-height: 1.15; letter-spacing: -.03em; margin-bottom: 18px; }
 .motto-cinema-caption strong { color: #fff; }
 .motto-cinema-caption > span { color: #fff; font-size: .85rem; }
 .motto-cinema-copy { padding: 28px 36px 28px; background: radial-gradient(ellipse at 100% 0,rgba(166,132,51,.12),transparent 60%); text-align: center; }
 .motto-purpose-logo { width: 350px; max-width: 90%; height: 205px; object-fit: contain; margin: 0 auto 8px; }
 .desktop-motto-dialog .motto-cinema-copy h2 { font-size: 1.85rem; margin: 0 0 12px; letter-spacing: -.03em; }
 .desktop-motto-dialog .motto-cinema-intro { font-size: 1.05rem; line-height: 1.5; color: #fff; }
 .motto-cinema-values { display: grid; gap: 18px; margin: 24px 0; padding: 22px 0; border-block: 1px solid #a6843366; }
 .desktop-motto-dialog .motto-cinema-values h3 { font-size: 1.1rem; margin-bottom: 6px; color: var(--gold-text); ;font-weight:650;text-shadow:none;-webkit-text-fill-color:currentColor;}
 .desktop-motto-dialog .motto-cinema-values p { font-size: .96rem; line-height: 1.5; color: #fff; }
 .desktop-motto-dialog .motto-cinema-ending { font-size: 1.08rem; line-height: 1.5; margin-bottom: 20px; }
 .motto-cinema-cta { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 46px; padding: 10px 22px; background: #680f0e; border: 1px solid #a68433; border-radius: 8px; color: #fff; font-weight: 700; font-size: .92rem; }
 .motto-cinema-cta:hover { background: #811714; }
 .motto-cinema-cta:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
 .desktop-motto-dialog .motto-cinema-footer { font-size: .72rem; color: var(--gold-text); margin-top: 18px; ;font-weight:650;text-shadow:none;-webkit-text-fill-color:currentColor;}
}

/* Fit the entire desktop motto story within the available screen height. */
@media (min-width: 1001px) {
 .desktop-motto-dialog { height: min(740px,calc(100dvh - 32px)); max-height: calc(100dvh - 32px); overflow: hidden; }
 .motto-cinema { height: 100%; min-height: 0; }
 .motto-cinema-photo { min-height: 0; height: 100%; }
 .motto-cinema-copy { min-height: 0; height: 100%; padding: 18px 30px; display: flex; flex-direction: column; justify-content: center; align-items: stretch; gap: clamp(6px,1.1vh,12px); }
 .motto-purpose-logo { height: clamp(90px,20vh,170px); width: 310px; max-width: 85%; margin: 0 auto; flex: 0 1 auto; min-height: 0; }
 .desktop-motto-dialog .motto-cinema-copy h2 { font-size: clamp(1.3rem,3.2vh,1.85rem); line-height: 1.15; margin: 0; }
 .desktop-motto-dialog .motto-cinema-intro { font-size: clamp(.85rem,1.9vh,1.05rem); line-height: 1.35; }
 .motto-cinema-values { gap: clamp(8px,1.8vh,16px); margin: 0; padding: clamp(8px,1.7vh,16px) 0; }
 .desktop-motto-dialog .motto-cinema-values h3 { font-size: clamp(.95rem,2vh,1.1rem); line-height: 1.2; margin: 0 0 5px; }
 .desktop-motto-dialog .motto-cinema-values p { font-size: clamp(.82rem,1.8vh,.96rem); line-height: 1.35; }
 .desktop-motto-dialog .motto-cinema-ending { font-size: clamp(.9rem,2vh,1.08rem); line-height: 1.35; margin: 0; }
 .motto-cinema-cta { flex: none; min-height: 40px; padding: 8px 16px; align-self: center; }
 .desktop-motto-dialog .motto-cinema-footer { margin: 0; font-size: .7rem; line-height: 1.3; }
 .motto-cinema-caption { bottom: 26px; }
}
@media (min-width: 1001px) and (max-height: 600px) {
 .motto-cinema-copy { padding: 12px 24px; gap: 6px; }
 .motto-purpose-logo { height: 90px; }
 .motto-cinema-values { grid-template-columns: 1fr 1fr; gap: 14px; padding: 8px 0; }
 .desktop-motto-dialog .motto-cinema-values p { font-size: .8rem; }
 .desktop-motto-dialog .desktop-motto-close { min-height: 32px; padding: 4px 8px; top: 8px; right: 8px; }
}

/* Use the full copy panel with exactly 15pt of vertical padding. */
@media (min-width: 1001px) {
 .motto-cinema-copy { padding: 15pt 30px; justify-content: space-between; gap: 8px; }
 .desktop-motto-dialog .motto-section-label { color: var(--gold-text); font-size: clamp(.9rem,1.8vh,1.05rem); font-weight: 700; letter-spacing: .12em; line-height: 1.2; margin: 0; text-align: center; ;font-weight:650;text-shadow:none;-webkit-text-fill-color:currentColor;}
 .motto-purpose-logo { height: clamp(130px,26vh,220px); width: 410px; max-width: 88%; flex: 0 1 auto; margin: 0 auto; }
 .desktop-motto-dialog .motto-cinema-copy h2 { font-size: clamp(1.5rem,3.8vh,2.1rem); }
 .desktop-motto-dialog .motto-cinema-intro { font-size: clamp(.95rem,2.25vh,1.2rem); }
 .desktop-motto-dialog .motto-cinema-values h3 { font-size: clamp(1.05rem,2.5vh,1.3rem); }
 .desktop-motto-dialog .motto-cinema-values p { font-size: clamp(.92rem,2.1vh,1.1rem); line-height: 1.4; }
 .desktop-motto-dialog .motto-cinema-ending { font-size: clamp(1rem,2.4vh,1.25rem); }
 .desktop-motto-dialog .motto-cinema-footer { font-size: clamp(.75rem,1.7vh,.9rem); }
 .motto-cinema-cta { font-size: 1rem; }
}
@media (min-width: 1001px) and (max-height: 680px) {
 .motto-purpose-logo { height: 120px; width: 330px; }
 .motto-cinema-copy { gap: 5px; }
 .motto-cinema-values { grid-template-columns: 1fr 1fr; padding: 8px 0; gap: 14px; }
 .desktop-motto-dialog .motto-cinema-values p { font-size: .86rem; }
}

@media (min-width: 1001px) {
  .site-header.site-header { background: #03203e; }
}

/* Cinematic atmosphere behind the desktop motto copy. */
@media (min-width: 1001px) {
 .motto-cinema-copy {
   background:
     radial-gradient(ellipse at 90% 12%,rgba(166,132,51,.18),transparent 55%),
     linear-gradient(180deg,rgba(3,32,62,.28),rgba(3,32,62,.65) 55%,rgba(3,32,62,.88)),
     url('assets/journey/journey-wallpaper.png') 65% center / cover;
   text-shadow: 0 2px 9px rgba(0,0,0,.55);
   box-shadow: inset 1px 0 0 rgba(166,132,51,.35);
 }
 .motto-purpose-logo { filter: drop-shadow(0 4px 10px rgba(0,0,0,.4)); }
}

@media (min-width: 1001px) {
  .site-header nav a.desktop-hidden-why-link { display: none; }
}
