/* Desktop correction sprint. Mobile remains on its approved stylesheet. */
@media (min-width: 1001px) {
  /* Match the wallpaper behind the homepage cards after its main row. */
  .serve-main > .serve-markets,
  .capability-main > .capability-overview {
    background-color: #dce8f0;
    background-image:
      linear-gradient(180deg, rgba(231, 241, 247, .28) 0%, rgba(212, 227, 238, .15) 42%, rgba(1, 12, 23, .5) 100%),
      url("assets/journey/journey-wallpaper-daylight.png");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
  }

  /* Match every capability card row to the full category menu width. */
  .capabilities-page .cap-category .capability-market-grid {
    width: 100%;
    max-width: none;
    margin-inline: 0;
  }
  .capabilities-page .cap-category .capability-image {
    height: auto;
    aspect-ratio: 2.15 / 1;
    flex: none;
  }
  .capabilities-page .cap-category .capability-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  /* Make the Impact page header match the rest of the site. */
  .impact-page .site-header nav { gap: clamp(.85rem, 1.5vw, 1.4rem); }
  .impact-page .site-header nav a { white-space: nowrap; }
  .impact-page .site-header > .button { white-space: nowrap; }

  /* Add cinematic depth to the commerce to community story. */
  .impact-page .impact-connection {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: min(760px, calc(100dvh - 112px));
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(3rem, 6vh, 5.5rem) clamp(1.5rem, 5vw, 5rem);
    border-top: 1px solid #d4b85d;
    background: linear-gradient(112deg, rgba(72, 12, 18, .92), rgba(3, 20, 39, .8)),
      url("assets/impact/story-connection.jpg") center 52% / cover no-repeat;
  }

  .impact-page .impact-connection::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(ellipse at 18% 20%, rgba(198, 151, 57, .22), transparent 38%),
      linear-gradient(0deg, rgba(2, 11, 21, .55), transparent 45%);
  }

  .impact-page .impact-connection > * { position: relative; z-index: 1; }
  .impact-page .impact-section-head {
    width: min(100%, 1480px);
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr);
    gap: .55rem clamp(2rem, 5vw, 5rem);
    margin: 0 auto clamp(1.8rem, 3vh, 2.6rem);
  }
  .impact-page .impact-section-head .eyebrow { color: var(--gold-text); ;font-weight:650;text-shadow:none;-webkit-text-fill-color:currentColor;}
  .impact-page .impact-section-head h2 {
    font-size: clamp(2.5rem, 4.2vw, 4.7rem);
    line-height: 1.04;
    text-wrap: balance;
  }
  .impact-page .impact-section-head > p:last-child {
    max-width: 580px;
    font-size: clamp(1.08rem, 1.45vw, 1.38rem);
  }
  .impact-page .impact-path {
    width: min(100%, 1480px);
    gap: clamp(1rem, 1.7vw, 1.65rem);
  }
  .impact-page .impact-path article {
    display: grid;
    min-height: clamp(230px, 28vh, 300px);
    align-content: start;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 1rem 1.25rem;
    padding: clamp(1.45rem, 2.2vw, 2.1rem);
    border: 1px solid rgba(230, 204, 120, .78);
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(8, 31, 56, .91), rgba(14, 23, 39, .9));
    color: #fff;
    box-shadow: 0 24px 54px rgba(0, 0, 0, .34), inset 0 1px 0 rgba(255, 255, 255, .16);
    backdrop-filter: blur(12px);
  }
  .impact-page .impact-path svg { width: 58px; height: 58px; stroke: #e6cc78; }
  .impact-page .impact-path h3 { align-self: center; color: #fff; font-size: clamp(1.4rem, 2vw, 2rem); }
  .impact-page .impact-path p {
    margin-top: .7rem;
    color: #f1f4f8;
    font-size: clamp(1rem, 1.3vw, 1.2rem);
    line-height: 1.55;
  }

  /* Fill the story image frame while keeping the people in view. */
  .impact-page .impact-mission-story figure img {
    object-fit: cover;
    object-position: right center;
  }

  /* Give Russ's quote the scale and breathing room of a featured testimonial. */
  .impact-page .impact-russ-quote {
    width: 100%;
    min-height: 220px;
    grid-template-columns: clamp(118px, 10vw, 152px) minmax(0, 1fr);
    gap: clamp(1rem, 2vw, 1.8rem);
    margin: clamp(1.4rem, 2.5vh, 2.1rem) 0 0;
    padding: clamp(1.15rem, 2vw, 1.8rem);
    border-radius: 20px;
    background: linear-gradient(120deg, rgba(3, 32, 62, .98), rgba(20, 39, 61, .97));
    box-shadow: 0 20px 44px rgba(3, 32, 62, .18), inset 0 1px 0 rgba(255, 255, 255, .12);
  }
  .impact-page .impact-russ-quote img { width: clamp(118px, 10vw, 152px); height: clamp(118px, 10vw, 152px); }
  .impact-page .impact-russ-quote .eyebrow { margin-bottom: .7rem; font-size: clamp(.72rem, .9vw, .88rem); }
  .impact-page .impact-russ-quote blockquote {
    font-size: clamp(1rem, 1.28vw, 1.24rem);
    line-height: 1.58;
  }

  /* Match the Foundation's cinematic three role section. */
  .impact-page .impact-foundation {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: min(900px, calc(100dvh - 112px));
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: clamp(1.3rem, 2.5vh, 2rem);
    padding: clamp(2rem, 4vh, 3.5rem) clamp(2rem, 4.2vw, 4.5rem);
    color: #fff;
    background: linear-gradient(105deg, rgba(1, 12, 24, .9), rgba(3, 32, 62, .9)),
      url("assets/impact/story-connection.jpg") center / cover no-repeat;
  }
  .impact-page .impact-foundation::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(ellipse at 85% 12%, rgba(27, 83, 128, .4), transparent 42%),
      linear-gradient(0deg, rgba(1, 9, 18, .38), transparent 45%);
  }
  .impact-page .impact-foundation > * { position: relative; z-index: 1; }
  .impact-page .foundation-intro { display: none; }
  .impact-page .foundation-cinematic-intro[hidden] {
    width: min(100%, 1500px);
    display: grid !important;
    justify-items: center;
    margin: 0 auto;
    text-align: center;
  }
  .impact-page .foundation-cinematic-intro > .eyebrow {
    margin: 0 0 .65rem;
    color: var(--gold-text);
    font-size: clamp(.82rem, 1vw, 1rem);
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
  ;font-weight:650;text-shadow:none;-webkit-text-fill-color:currentColor;}
  .impact-page .foundation-cinematic-intro h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(2.8rem, 4.5vw, 4.9rem);
    font-weight: 500;
    line-height: 1.02;
    letter-spacing: -.045em;
  }
  .impact-page .foundation-cinematic-intro h2 em { color: var(--gold-text); ;font-weight:650;text-shadow:none;-webkit-text-fill-color:currentColor;}
  .impact-page .foundation-partner-lede {
    width: 100%;
    margin: .95rem 0 0;
    padding-top: .8rem;
    border-top: 1px solid rgba(230, 204, 120, .72);
    color: #fff;
    font-size: clamp(1rem, 1.3vw, 1.22rem);
    font-weight: 700;
  }
  .impact-page .foundation-role-lines {
    display: grid;
    gap: .25rem;
    margin-top: .65rem;
  }
  .impact-page .foundation-role-lines p {
    margin: 0;
    color: #f3f5f8;
    font-size: clamp(.9rem, 1.12vw, 1.05rem);
    line-height: 1.4;
  }
  .impact-page .foundation-role-lines strong { color: var(--gold-text); ;font-weight:650;text-shadow:none;-webkit-text-fill-color:currentColor;}
  .impact-page .foundation-outcome-line {
    width: 100%;
    margin: .8rem 0 0;
    padding-top: .75rem;
    border-top: 1px solid rgba(230, 204, 120, .55);
    color: #fff;
    font-size: clamp(1.05rem, 1.4vw, 1.3rem);
    font-weight: 800;
  }
  .impact-page .foundation-outcome-line em { color: var(--gold-text); font-style: normal; ;font-weight:650;text-shadow:none;-webkit-text-fill-color:currentColor;}
  .impact-page .foundation-focus {
    width: min(100%, 1500px);
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(.8rem, 1.4vw, 1.4rem);
    margin: 0 auto;
  }
  .impact-page .foundation-focus article {
    position: relative;
    min-height: clamp(245px, 31vh, 330px);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    padding: clamp(1.1rem, 1.6vw, 1.65rem);
    border: 1px solid rgba(230, 204, 120, .78);
    border-radius: 20px;
    box-shadow: 0 22px 46px rgba(0, 0, 0, .32), inset 0 1px 0 rgba(255, 255, 255, .2);
    background-size: cover;
    background-position: center;
  }
  .impact-page .foundation-focus .focus-learn {
    background-image: linear-gradient(0deg, rgba(36, 8, 14, .96), rgba(65, 11, 17, .7) 58%, rgba(24, 10, 15, .24)), url("assets/impact/story-rosie-network-team.png");
    background-position: center, center 43%;
  }
  .impact-page .foundation-focus .focus-connect {
    color: #fff;
    background-image: linear-gradient(0deg, rgba(3, 23, 45, .97), rgba(3, 32, 62, .68) 58%, rgba(3, 32, 62, .18)), url("assets/impact/milstreet-resource-street.png");
    background-position: center, center 57%;
  }
  .impact-page .foundation-focus .focus-build {
    background-image: linear-gradient(0deg, rgba(2, 18, 36, .97), rgba(3, 32, 62, .68) 60%, rgba(3, 32, 62, .2)), url("assets/impact/story-stage.webp");
    background-position: center, center 48%;
  }
  .impact-page .foundation-focus article > .eyebrow,
  .impact-page .foundation-focus article > h3,
  .impact-page .foundation-focus article > p { display: none; }
  .impact-page .foundation-focus article > img {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: clamp(100px, 11vw, 150px);
    height: 58px;
    max-height: 58px;
    margin: 0;
    padding: 0;
    object-fit: contain;
    object-position: left top;
    border: 0;
    border-radius: 0;
    background: transparent;
    filter: drop-shadow(0 3px 8px rgba(0, 0, 0, .65));
  }
  .impact-page .focus-desktop-copy[hidden] {
    position: relative;
    z-index: 1;
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    gap: .45rem;
  }
  .impact-page .focus-desktop-copy .eyebrow {
    display: block;
    margin: 0;
    color: var(--gold-text);
    font-size: clamp(.67rem, .8vw, .78rem);
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
  ;font-weight:650;text-shadow:none;-webkit-text-fill-color:currentColor;}
  .impact-page .focus-desktop-copy h3 {
    display: block;
    margin: 0;
    color: #fff;
    font-size: clamp(1.2rem, 1.8vw, 1.75rem);
    line-height: 1.12;
    letter-spacing: -.025em;
  }
  .impact-page .focus-desktop-copy p:last-child {
    display: block;
    margin: 0;
    color: #fff;
    font-size: clamp(.8rem, 1vw, .95rem);
    line-height: 1.45;
  }

  /* Place the Hope image after the message and use a layered cinematic wallpaper. */
  .impact-page .impact-hope {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: min(760px, calc(100dvh - 112px));
    grid-template-columns: minmax(0, 1.1fr) minmax(340px, .9fr);
    gap: clamp(2rem, 5vw, 5rem);
    padding: clamp(3.5rem, 7vh, 6rem) clamp(2rem, 6vw, 7rem);
    border-top: 1px solid #a68433;
    background: linear-gradient(90deg, rgba(2, 16, 32, .96) 0%, rgba(3, 32, 62, .82) 54%, rgba(3, 32, 62, .68) 100%),
      url("assets/impact/story-connection.jpg") center 46% / cover no-repeat;
  }
  .impact-page .impact-hope::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(ellipse at 82% 48%, rgba(166, 132, 51, .28), transparent 34%),
      linear-gradient(0deg, rgba(1, 9, 18, .54), transparent 50%);
  }
  .impact-page .impact-hope > div { position: relative; z-index: 1; }
  .impact-page .impact-hope > .hope-visual { grid-column: 2; grid-row: 1; padding: 0; }
  .impact-page .impact-hope > div:not(.hope-visual) { grid-column: 1; grid-row: 1; }
  .impact-page .impact-hope .eyebrow { color: var(--gold-text); ;font-weight:650;text-shadow:none;-webkit-text-fill-color:currentColor;}
  .impact-page .impact-hope h2 { font-size: clamp(2.7rem, 4vw, 4.5rem); line-height: 1.08; }
  .impact-page .impact-hope p { font-size: clamp(1.05rem, 1.35vw, 1.25rem); }
  .impact-page .impact-hope .hope-visual img {
    width: min(100%, 620px);
    max-width: 620px;
    max-height: min(66vh, 610px);
    margin: auto;
    object-fit: contain;
    filter: drop-shadow(0 24px 32px rgba(0, 0, 0, .3));
  }
}

@media (min-width: 1001px) and (max-width: 1220px) {
  .site-header.site-header {
    grid-template-columns: 190px minmax(0, 1fr) auto;
    gap: 1rem;
    padding-inline: 1.2rem;
  }
  .site-header .brand img { width: 185px; max-height: 66px; }
  .site-header.site-header nav { gap: .55rem; font-size: .76rem; }
  .site-header > a.button.button-small { min-height: 48px; padding-inline: .85rem; font-size: .76rem; }
}
