/* Case Study template -------------------------------------------------------
 * FedEx reference frames: 1440×4578 and 430×3483.
 * All selectors are scoped so approved pages remain unchanged.
 */
body.case-study-page {
  min-width: 320px;
  background: #000;
}

.case-study-shell {
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  background: linear-gradient(180deg, #000 0%, #6e0101 50%, #000 100%);
}

.case-study-content {
  width: 100%;
}

.case-intro {
  min-height: 875px;
  padding: 215px 32px 60px;
}

.case-intro-inner {
  width: min(1236px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 577px) minmax(0, 600px);
  align-items: center;
  gap: 36px;
}

.case-intro-copy {
  min-width: 0;
}

.case-intro-copy h2 {
  margin: 0 0 16px;
  color: #e6da78;
  font-size: 64px;
  font-weight: 500;
  line-height: 66px;
  letter-spacing: -3px;
  text-transform: uppercase;
}

.case-intro-text {
  width: min(564px, 100%);
  color: #a7a7a7;
  font-size: 16.734px;
  font-weight: 400;
  line-height: 30px;
}

.case-intro-text p {
  margin: 0;
}

.case-intro-text strong,
.case-intro-text b,
.case-intro-text h3 {
  color: #e6da78;
}

.case-intro-text b {
  color: inherit;
}

.case-intro-text h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  line-height: 50px;
  text-transform: uppercase;
}

.case-hero-media {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 24px;
}

.case-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-scope {
  min-height: 554px;
  padding: 95px 32px 81px;
}

.case-scope-title {
  width: min(1312px, 100%);
  height: 90px;
  margin: 0 auto;
  overflow: hidden;
  color: transparent;
  font-size: 1px;
  line-height: 1px;
}

.case-scope-grid {
  width: min(1312px, 100%);
  margin: 40px auto 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.case-scope-card,
.case-result-card {
  border: 1px solid rgba(255,255,255,.05);
  border-radius: 32px;
  background: rgba(0,0,0,.5);
}

.case-scope-card {
  min-width: 0;
  height: 248px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 48px;
}

.case-scope-card img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.case-scope-card h3 {
  margin: 16px 0 0;
  color: #fff;
  font-size: 23.438px;
  font-weight: 900;
  line-height: 36px;
  text-transform: uppercase;
}

.case-showcase {
  min-height: 1549px;
  padding: 128px 32px 91px;
}

.case-showcase-heading {
  width: min(1280px, 100%);
  height: 90px;
  margin: 0 auto 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.case-showcase-heading h2,
.case-results-heading h2 {
  margin: 0;
  color: #fff;
  font-size: 60px;
  font-weight: 500;
  line-height: 90px;
  letter-spacing: -3px;
  text-transform: uppercase;
}

.case-showcase-heading > a {
  min-width: 201px;
  height: 55px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 40px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 21px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}

.case-showcase-heading > a:hover,
.case-showcase-heading > a:focus-visible {
  border-color: #e6da78;
  outline: 0;
  background: #e6da78;
  color: #6e0101;
}

.case-showcase-desktop {
  position: relative;
  width: min(1280px, 100%);
  aspect-ratio: 1280 / 1160;
  margin: 0 auto;
}

.case-showcase-desktop img {
  position: absolute;
  display: block;
  border-radius: 16px;
  object-fit: cover;
}

.showcase-banner { top: 0; left: 0; width: 28.515625%; height: 17.241379%; }
.showcase-tower { top: 19.741379%; left: 0; width: 28.515625%; height: 43.965517%; }
.showcase-center { top: 0; left: 30.625%; width: 38.75%; height: 44.051724%; }
.showcase-right { top: .086207%; left: 71.5625%; width: 28.4375%; height: 43.965517%; }
.showcase-wide { top: 46.551724%; left: 30.625%; width: 69.375%; height: 17.241379%; }
.showcase-bottom { top: 66.293103%; left: 0; width: 100%; height: 33.706897%; }

.case-showcase-mobile {
  display: none;
}

.case-results {
  min-height: 476px;
  padding: 0 32px 40px;
}

.case-results-heading,
.case-results-grid {
  width: min(1280px, 100%);
  margin-inline: auto;
}

.case-results-heading {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.case-results-heading h2 {
  letter-spacing: -2.4px;
}

.case-results-heading p {
  width: 282px;
  margin: 0;
  color: rgba(255,255,255,.5);
  font-size: 15.125px;
  line-height: 26px;
}

.case-results-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.case-result-card {
  min-width: 0;
  height: 306px;
  padding: 48px;
}

.case-result-card > img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.case-result-card h3 {
  margin: 16px 0;
  color: #fff;
  font-size: 23.438px;
  font-weight: 900;
  line-height: 36px;
  text-transform: uppercase;
}

.case-result-card div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.case-result-card strong {
  color: #fff;
  font-size: 36px;
  font-weight: 700;
  line-height: 40px;
}

.case-result-card span {
  color: rgba(255,255,255,.4);
  font-size: 12px;
  font-weight: 900;
  line-height: 16px;
  letter-spacing: 1.2px;
}

.case-cta {
  height: 409px;
  margin: 97px 0 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  background: rgba(0,0,0,.5);
}

.case-cta h2 {
  width: min(824px, 100%);
  margin: 0;
  color: #e6da78;
  font-size: 64px;
  font-weight: 500;
  line-height: normal;
  text-align: center;
  text-transform: uppercase;
}

.case-cta h2 span {
  display: block;
}

.case-cta .gold-button {
  height: 61px;
  border-radius: 30px;
}

.case-study-shell > .site-footer {
  width: 100%;
  height: 522px;
  margin: 0;
}

@media (min-width: 1100px) and (max-width: 1439px) {
  .case-intro { padding-inline: 5vw; }
  .case-scope,
  .case-showcase,
  .case-results { padding-inline: 5vw; }
  .case-scope-card { padding: 3.2vw; }
  .case-scope-card h3 { font-size: clamp(17px, 1.62vw, 23.438px); line-height: 1.35; }
}

@media (min-width: 768px) and (max-width: 1099px) {
  body.case-study-page .site-header {
    top: 24px;
    width: calc(100% - 40px);
    height: 88px;
    border-radius: 12px;
  }
  body.case-study-page .header-logo { left: 36px; width: 72px; height: 72px; }
  body.case-study-page .menu-toggle { right: 44px; width: 54px; height: 40px; }

  .case-intro {
    min-height: 700px;
    padding: 154px 40px 72px;
  }
  .case-intro-inner { grid-template-columns: minmax(0, 1fr) minmax(300px, .9fr); gap: 30px; }
  .case-intro-copy h2 { font-size: 48px; line-height: 52px; }
  .case-intro-text { font-size: 14px; line-height: 23px; }
  .case-intro-text h3 { font-size: 17px; line-height: 38px; }

  .case-scope { min-height: 0; padding: 72px 40px 88px; }
  .case-scope-title { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; color: inherit; clip: rect(0,0,0,0); white-space: nowrap; }
  .case-scope-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 0; }
  .case-scope-card { height: 210px; padding: 36px; }
  .case-scope-card h3 { font-size: 20px; line-height: 30px; }

  .case-showcase { min-height: 0; padding: 96px 40px 72px; }
  .case-showcase-heading { height: auto; margin-bottom: 56px; }
  .case-showcase-heading h2,
  .case-results-heading h2 { font-size: 46px; line-height: 1.2; }
  .case-showcase-heading > a { min-width: 170px; height: 48px; padding-inline: 28px; font-size: 12px; }

  .case-results { min-height: 0; padding: 0 40px 56px; }
  .case-results-grid { gap: 16px; margin-top: 32px; }
  .case-result-card { height: 250px; padding: 30px; }
  .case-result-card h3 { font-size: 18px; line-height: 28px; }
  .case-result-card strong { font-size: 28px; }

  .case-cta { height: 340px; margin: 72px 0; }
  .case-cta h2 { font-size: 48px; }

  body.case-study-page .site-footer { min-height: 522px; padding-inline: 32px; }
  body.case-study-page .footer-links { width: min(970px, 100%); gap: 16px 24px; font-size: 16px; }
  body.case-study-page .footer-main { width: min(970px, 100%); gap: 48px; }
  body.case-study-page .footer-copy { width: min(535px, 60%); }
  body.case-study-page .footer-copy p { width: 100%; }
  body.case-study-page .footer-identity { flex: 0 0 210px; }
  body.case-study-page .footer-rule,
  body.case-study-page .legal { width: 100%; }
}

@media (max-width: 767px) {
  .case-study-shell {
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .case-study-content {
    display: flex;
    flex-direction: column;
    gap: 64px;
  }

  .case-intro {
    min-height: 0;
    padding: 109px 25px 6px;
  }

  .case-intro-inner {
    width: min(380px, 100%);
    display: flex;
    flex-direction: column;
    gap: 32px;
  }

  .case-intro-copy h2 {
    margin-bottom: 8px;
    font-size: 40px;
    line-height: 49px;
    letter-spacing: -3px;
  }

  .case-intro-copy {
    min-height: 303px;
  }

  .case-intro-text {
    width: 100%;
    font-size: 12px;
    line-height: 18px;
  }

  .case-intro-text h3 {
    margin-top: 0;
    font-size: 12px;
    font-weight: 700;
    line-height: 26px;
  }

  .case-hero-media {
    width: 100%;
    max-width: 380px;
    border-radius: 24px;
  }

  .case-scope {
    min-height: 0;
    padding: 16px 19px 17px;
  }

  .case-scope-title {
    width: auto;
    height: 53px;
    margin: 0 auto 16px;
    overflow: visible;
    color: #fff;
    font-size: clamp(30px, 8.372vw, 36px);
    font-weight: 500;
    line-height: 53px;
    letter-spacing: -2.4px;
    text-align: center;
    text-transform: uppercase;
  }

  .case-scope-grid {
    width: min(392px, 100%);
    margin: 0 auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .case-scope-card {
    height: 132px;
    gap: 16px;
    padding: 24px;
  }

  .case-scope-card img { width: 30px; height: 30px; }
  .case-scope-card h3 { margin: 0; font-size: 12px; line-height: 19px; }
  .scope-media { order: 1; }
  .scope-strategy { order: 2; }
  .scope-communication { order: 3; }
  .scope-social { order: 4; }

  .case-showcase {
    min-height: 0;
    padding: 0;
  }

  .case-showcase-heading {
    width: min(380px, calc(100% - 50px));
    height: 77px;
    margin: 0 auto 16px;
  }

  .case-showcase-heading h2 {
    font-size: clamp(28px, 8.372vw, 36px);
    line-height: 77px;
    letter-spacing: -3px;
    white-space: nowrap;
  }

  .case-showcase-heading > a { display: none; }
  .case-showcase-desktop { display: none; }
  .case-showcase-mobile { display: block; width: 100%; overflow: hidden; }

  .case-showcase-track {
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 0 25px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 25px;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
    touch-action: pan-x pan-y;
    -webkit-overflow-scrolling: touch;
  }

  .case-showcase-track::-webkit-scrollbar { display: none; }
  .case-showcase-track:focus-visible { outline: 2px solid #e6da78; outline-offset: -2px; }

  .case-showcase-track figure {
    flex: 0 0 auto;
    width: fit-content;
    height: 331px;
    margin: 0;
    overflow: hidden;
    border-radius: 16px;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .case-showcase-track img {
    display: block;
    width: auto;
    max-width: min(365px, calc(100vw - 50px));
    height: 100%;
    object-fit: contain;
    border-radius: 16px;
  }

  .case-showcase-track figure:first-child {
    flex-basis: min(365px, calc(100vw - 50px));
    width: min(365px, calc(100vw - 50px));
    height: auto;
  }

  .case-showcase-track figure:first-child img {
    width: 100%;
    max-width: none;
    height: auto;
    object-fit: contain;
  }

  .case-results {
    min-height: 0;
    padding: 0 24px 39px;
  }

  .case-results-heading {
    min-height: 0;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    text-align: center;
  }

  .case-results-heading h2 {
    font-size: 36px;
    line-height: 45px;
    letter-spacing: -2.4px;
  }

  .case-results-heading p {
    width: min(306px, 100%);
    font-size: 12px;
    line-height: 16px;
  }

  .case-results-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 24px;
  }

  .case-result-card {
    height: 139px;
    display: grid;
    grid-template-columns: 30px 76px minmax(0, 1fr);
    align-items: center;
    gap: 32px;
    padding: 32px;
    background: rgba(0,0,0,.2);
  }

  .case-result-card > img { width: 30px; height: 30px; }
  .case-result-card h3 { margin: 0; font-size: 16px; line-height: 24px; }
  .case-result-card strong { font-size: 24px; line-height: 40px; white-space: nowrap; }
  .case-result-card span { font-size: 10px; line-height: 16px; }

  .case-cta {
    height: 300px;
    margin: 0;
    gap: 22px;
  }

  .case-cta h2 {
    width: 100%;
    font-size: 24px;
    text-transform: none;
  }

  .case-cta .gold-button {
    width: 125px;
    height: 29px;
    padding: 0;
    border-radius: 30px;
    font-size: 12px;
  }

  .case-study-shell > .site-footer {
    flex: 0 0 694px;
    height: 694px;
    margin: 0;
  }
}

@media (max-width: 359px) {
  body.case-study-page .footer-links {
    width: calc(100% - 40px);
    max-width: none;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 27px;
    gap: 16px 8px;
    font-size: 10px;
    text-align: center;
  }

  body.case-study-page .footer-links a {
    position: static;
    min-width: 0;
    text-align: center;
  }

  body.case-study-page .footer-identity {
    width: calc(100% - 40px);
    max-width: none;
    justify-content: center;
    gap: 24px;
  }

  body.case-study-page .footer-logo {
    width: 110px;
    height: 41px;
    transform: scale(1.2);
  }

  body.case-study-page .socials { gap: 16px; }
  body.case-study-page .socials img { width: 24px; height: 24px; }

  body.case-study-page .footer-copy,
  body.case-study-page .legal {
    width: calc(100% - 40px);
    max-width: none;
  }

  body.case-study-page .legal { font-size: 6.5px; }
  body.case-study-page .legal > img { width: 20px; height: 20px; }
  body.case-study-page .legal > div { gap: 10px; }
}

@media (max-width: 389px) {
  .case-study-content { gap: 56px; }
  .case-intro { padding-inline: 20px; }
  .case-intro-copy h2 { font-size: 36px; }
  .case-scope { padding-inline: 16px; }
  .case-scope-card { height: 140px; padding: 20px; }
  .case-scope-card h3 { font-size: 10px; line-height: 16px; }
  .case-showcase-heading { width: calc(100% - 40px); }
  .case-showcase-track { padding-inline: 20px; scroll-padding-inline: 20px; }
  .case-showcase-track figure { flex-basis: auto; }
  .case-showcase-track img { max-width: calc(100vw - 40px); }
  .case-showcase-track figure:first-child {
    flex-basis: calc(100vw - 40px);
    width: calc(100vw - 40px);
  }
  .case-results { padding-inline: 20px; }
  .case-result-card { grid-template-columns: 28px 68px minmax(0, 1fr); gap: 18px; padding: 24px; }
  .case-result-card h3 { font-size: 14px; line-height: 20px; }
  .case-result-card strong { font-size: 21px; }
  .case-result-card span { font-size: 9px; letter-spacing: .8px; }

  body.case-study-page .footer-links,
  body.case-study-page .footer-copy,
  body.case-study-page .legal { max-width: calc(100% - 40px); }
  body.case-study-page .footer-identity { max-width: calc(100% - 54px); gap: 34px; }
  body.case-study-page .socials { gap: 20px; }
}

@media (max-width: 340px) {
  .case-scope-title,
  .case-showcase-heading h2 { font-size: 27px; }
  .case-scope-card { padding: 18px; }
  .case-result-card { grid-template-columns: 26px 62px minmax(0, 1fr); gap: 14px; padding: 20px; }
  .case-result-card h3 { font-size: 12px; }
  .case-result-card strong { font-size: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  .case-showcase-track { scroll-behavior: auto; }
  .case-showcase-heading > a { transition: none; }
}

/* Match the approved Career footer spacing without changing the shared footer
   or any approved page. The 430px composition remains the mobile source of
   truth; narrower phones scale that complete composition proportionally. */
@media (max-width: 767px) {
  .case-study-shell > .site-footer {
    flex-basis: 709px;
    height: 709px;
    min-height: 709px;
  }

  body.case-study-page .footer-identity {
    width: calc(100% - 48px);
    max-width: none;
    justify-content: center;
    gap: clamp(16px, 8vw, 32px);
  }

  body.case-study-page .footer-logo {
    flex: 0 1 134px;
    width: 134px;
    transform: none;
  }
}

@media (max-width: 430px) {
  .case-study-shell > .site-footer {
    align-self: flex-start;
    width: 430px;
    min-width: 430px;
    max-width: none;
    zoom: calc(100vw / 430px);
  }
}

@media (max-width: 413px) {
  body.case-study-page .footer-links {
    top: 44px;
    left: 24px;
    width: calc(100% - 48px);
    max-width: none;
    height: 143px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(3, auto);
    grid-auto-rows: auto;
    gap: 16px 8px;
    align-content: space-between;
    padding: 0;
    font-size: 13px;
    text-align: center;
    transform: none;
  }

  body.case-study-page .footer-links a {
    position: static;
    min-width: 0;
    justify-self: center;
    text-align: center;
  }
}

@media (max-width: 360px) {
  body.case-study-page .footer-identity {
    gap: 32px;
  }

  body.case-study-page .footer-logo {
    flex-basis: 120px;
    width: 120px;
  }

  body.case-study-page .socials {
    gap: 16px;
  }

  body.case-study-page .socials img {
    width: 26px;
    height: 26px;
  }
}

@media (max-width: 340px) {
  body.case-study-page .footer-links {
    font-size: 12px;
  }
}
