html {
  overflow-x: hidden; /* Hide horizontal overflow of background images at viewport edge, but allow overflow within container */
}

:root {
  --clr-text: #201f21;
  --clr-bg-white: #ffffff;
  --clr-bg-green: #e6f5f3;
  --clr-bg-purple: #f0f1fa;
  --clr-bg-pink: #faf5f2;
  --clr-bg-yellow: #FAF7CC;
  --clr-bg-black: #0a0a0a;
  --clr-eyebrow: #737373; /* #595959;*/
  --clr-link: #8072eb;
  --clr-link-hover: #d73d77;
  --ff-primary: 'Nunito', sans-serif;
  --fw-regular: 400;
  --fw-semibold: 600;
  --fw-bold: 700;
}

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
header {
  overflow: hidden;
}
body {
  margin: 0;
  font-family: var(--ff-primary);
  font-size: 1.125rem;
  font-weight: var(--fw-regular);
  color: var(--clr-text);
  background-color: var(--clr-bg-light);
  line-height: 1.7;
  text-wrap: pretty;
  width: 100vw;
  overflow-x: hidden;
  position: relative;
}

h1,
h2,
h3,
h4 {
  font-family: var(--ff-primary);
  font-weight: var(--fw-semibold);
  line-height: 1.35;
  margin-top: 0;
  color: var(--clr-text);
}

h1 {
  font-size: 2.6rem;
  margin-bottom: 1.3rem;
  padding-bottom: 30px;
}
h2 {
  font-size: 2.2rem;
  margin-bottom: .8rem;
}
h3 {
  font-size: 1.75rem;
  margin-bottom: .75rem;
}
h4 { /* used as subtitles within Akamai ase study */
  font-size: 1.75rem;
  margin-bottom: 1.75rem;
}

p {
  max-width: 75ch;/** CHANGE THIS TO 65 or 75 BEFORE  FINALIZING */
  margin-top: 0;
  margin-bottom: 1rem;
}
ul {
  padding-left: 30px; 
  list-style: disc; 
}
li {
  margin-bottom: .8rem;
}

blockquote {
  color: #666;
  font-weight: var(--fw-regular);
}
.eyebrow {
  font-size: 1rem;
  font-weight: var(--fw-regular);
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--clr-eyebrow);
  margin-bottom: 1rem;
}

/* used on interior pages to create more spacing between sections */
.eyebrow.drop {
  padding-top: 1.75rem;
}

.eyebrow a {
  color: var(--clr-eyebrow);
  text-decoration: none;
}
.eyebrow a:hover {
  color: var(--clr-link-hover);
  text-decoration: underline;
}

.transparent {
    opacity: 0.35;
  }
.brands-title {
  color: #fff !important;
  max-width: 250px;
}
a {
  color: var(--clr-link);
  text-decoration: underline;
  text-decoration-skip-ink: auto;
  transition: color 0.2s ease-in-out;
}

a:hover {
  color: var(--clr-link-hover);
  text-decoration: none;
}

a.contact-links{
  color: var(--clr-link-hover);
  text-decoration: none;
  transition: color 0.2s ease-in-out;
  font-size: 1.4rem;
  font-weight: var(--fw-semibold);
}

a.contact-links:hover {
  text-decoration: underline;
}

.project-link {
  text-decoration: underline;
  text-decoration-skip-ink: auto;
  transition: color 0.2s ease-in-out;
  font-weight: var(--fw-semibold);
}

.project-link:hover {
  color: var(--clr-link-hover);
  text-decoration: none;
}
.next-story a {
  color: var(--clr-text);
}

.next-story a:hover {
  color: var(--clr-link-hover);
  text-decoration: none;
}

.project-link .arrow,
.next-story .arrow {
  text-decoration: none; /* Prevent underline on arrow */
  display: inline-block;
  margin-left: 0.25em;
  transition: transform 0.2s ease-in-out;
}

.project-link:hover .arrow,
.next-story .arrow:hover {
  transform: translateX(4px);
}
/* swapping out arrow colors on hover */
.arrow2.hover {
  display: none;
}

.next-story a:hover .default {
  display: none;
}

.next-story a:hover .hover {
  display: inline;
}

.emphasis-pink, 
.emphasis-green,
.emphasis-purple,
.emphasis-yellow {
  position: relative;
  display: inline-block;
}


.emphasis-pink::after,
.emphasis-green::after,
.emphasis-purple::after,
.emphasis-yellow::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 5px;
  height: 12px;
  width: 0; 
  z-index: -1;
  transition: width 0.6s ease-out;
}


.emphasis-pink::after {
  background-color: #FCEAE2;
  mix-blend-mode: multiply;
}

.emphasis-green::after {
  background-color: #A4DFD7;
  opacity: .35;
  mix-blend-mode: multiply;
}

.emphasis-purple::after {
  background-color: #8072EB;
  opacity: 0.18;
  mix-blend-mode: multiply;
}

.emphasis-yellow::after {
  background-color: var(--clr-bg-yellow);
  mix-blend-mode: multiply;
}

.emphasis-pink.in-view::after, 
.emphasis-green.in-view::after,
.emphasis-purple.in-view::after,
.emphasis-yellow.in-view::after {
  width: 100%;
  z-index: 1;
}

/* Main content blocks */
.project-showcase {
  min-height: 220px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-showcase.shift-right.hero-container {
  background: none;
  position: relative;
  margin-top: 0 !important;
}

.project-showcase.shift-right.hero-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 100%;
   background-color: var(--clr-bg-green);
  z-index: -1;
  pointer-events: none;
}

/* Aligns project images correctly */
.project-image {
  flex: 1 1 0;
  max-width: 450px;
  min-width: 0;
}

.project-image.centered { /* used in interior pages */
  justify-content: center;
  justify-items: center; /* when used in paragraph content, image size constrained by content-img-static */
  align-items: center;
  max-width: 100%;
}

.project-image.right { /* used in interior page footer */
  justify-items: right;
  max-width: 200px;
}

.project-image img {
  width: 100%;
  height: auto;
  display: block;
  z-index: 0;
}

.hero-interior .shadow{
  box-shadow: 1px 1px 10px rgba(0, 0, 0, 0.1);
}

.content-img-static.shadow2 {
  box-shadow: 1px 1px 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
  border-radius: 15px;

}
.content-img-static.shadow {
  box-shadow: 1px 1px 10px rgba(0, 0, 0, 0.1);
  padding: 0px;
  border-radius: 10px;

}
.project-image-group {
  position: relative;
  width: 100%;
  max-width: 450px;
  min-width: 0;
}

.project-image-group.centered { /* used in interior page heros */
  justify-self: center;
  max-width: 670px;
}

.project-image-group-footer {
  position: relative;
  width: 100%;
  max-width: 185px;
  max-height: 185px;
  min-width: 0;
}
.project-image-bg {
  position: absolute;
  top: -175px; /*Default position, can be overridden by .bg-pos-# classes */ 
  left: 180px;
  width: 120%;   /* >100% lets it overflow the group */
  height: auto;
  z-index: -1;
  mix-blend-mode: multiply;
  pointer-events: none; /* so it doesn't block mouse events */
}

.project-image-group-footer .bg-pos-3{
  top: -80px;
  left: 75px;
  height: 60%;
}
.project-image-group-footer .bg-pos-4{
  top: -105px;
  left: -50px;
  height: 60%;
}
/* Image scales on hover effect */
.image-hover-effect {
  transition: transform 0.3s ease-in-out; 
}

.image-hover-effect:hover {
  transform: scale(1.05); 
}

/* Custom background positions for multiple images */
.bg-pos-1 {
  top: -175px;
  left: 180px;
  width: 104% !important; /* 375px relative to 432px container + 20% overflow */
}
.bg-pos-2 {
  top: calc(760px - 45vh); /*  top: calc(460px - 40vh);*/
  left: -30px;
  width: 68% !important;
  /* width: 73% !important; 264px relative to 432px container + 20% overflow */
}
.bg-pos-2b {
  top: -115px;
  left: -10px;
  width: 55% !important;
}
.bg-pos-2c {
  top: -85px;
  left: 120px;
  width: 55% !important;
}
.bg-pos-3 {
  top: calc(580px - 50vh); /*  top: calc(280px - 50vh); */
  left: 152px;
  width: 101% !important; /* 364px relative to 432px container + 20% overflow */
}
.bg-pos-4 {
  top: calc(630px - 50vh); /*  top: calc(330px - 50vh);*/
  left: -165px;
  width: 62% !important; /* 225px relative to 432px container + 20% overflow */
}

.bg-pos-va-connectedapps {
  top: 10px;
  left: -60px;
  width: 132% !important;
}
.bg-pos-va-developer {
  top: -40px;
  left: -60px;
  width: 122% !important;
}

.bg-pos-akamai {
  top: -169px;
  left: -240px;
  width: 160% !important;
}

.bg-pos-yakima {
  top: -220px;
  left: -250px;
  width: 180% !important;
}
/* End of Aligns project images correctly */
.additional-stories, 
.brands-section, 
.contact-section,
.hero-interior,
.footer-interior {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  /*padding: 40px;*/
  padding: 60px 40px;
}
.hero-interior {
  text-align: center;
  align-content: center;
  padding: 40px 40px 0 40px; /* Top, right, bottom, left */
}
.additional-stories {
  background: var(--clr-bg-purple);
}
.brands-section {
  background: var(--clr-bg-black);
  color: var(--clr-bg-white);
}
.contact-section {
  background: var(--clr-bg-pink);
}

.hero-interior.bg-yellow,
.footer-interior.bg-yellow {
  background: var(--clr-bg-yellow);
}
.hero-interior.bg-pink,
.footer-interior.bg-pink {
  background: var(--clr-bg-pink);
}
.hero-interior.bg-green,
.footer-interior.bg-green {
  background: var(--clr-bg-green);
}
.hero-interior.bg-purple,
.footer-interior.bg-purple {
  background: var(--clr-bg-purple);
}

.footer-interior {
  padding: 20px;
}


.logo-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: 1000px; /* or whatever fits 4 logos per row */
  align-items: center;
  justify-content: center;
}

.logo-grid img {
  flex: 1 0 22%; /* 4 per row with some gap */
  opacity: 85%;
  max-width: 200px;
  min-width: 150px; /* 100px */
  height: auto;
  padding-left: 30px;
  padding-right: 30px;
  padding-top: 10px;
  padding-bottom: 10px;
}

/* Container for content-flex - creates staggering effect because it is wider than its child */
.project-showcase {
  max-width: 1440px;
  margin: 40px auto; /* Centered with auto margins */
  padding: 40px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Flex layout for content inside each box */
.content-flex {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  max-width: 1440px;
  width: 100%;
  margin-left: 0;
  margin-right: auto;
  margin-top: 40px; /* Space between content and top of the box */
  margin-bottom: 40px; /* Space between content and bottom of the box */
  justify-content: flex-start;
}

.content-flex.reverse {
  flex-direction: row-reverse;
  margin-left: auto;
  margin-right: 0;
  justify-content: flex-end;
}

.project-showcase .content-flex {
  max-width: 1100px; /** controls how wide homepage projects will be. Less than size of parent creates staggar effect.*/
}

.content-flex.centered {
  max-width: 800px;
  margin: auto;
}

/* Center the content-flex inside parent container */
.additional-stories .content-flex,
.brands-section .content-flex,
.contact-section .content-flex,
.hero-interior .content-flex {
  margin-left: auto;
  margin-right: auto;
  justify-content: center;
}
.hero-interior .content-flex {
  margin-bottom: 0;
}
.content-img, .project-image-bg {
  transform: translateY(0);
  transition: transform 0.4s ease-out;
  will-change: transform; /* Hints to browser to optimize */
}

.content-img {
  flex: 1 1 0; /* image will be responsive */
  max-width: 432px;
  min-width: 0;
  object-fit: scale-down; 
}

.content-img-static {
  position: relative;
  flex: 1 1 0; /* image will be responsive */
  max-width: 900px;
  object-fit: scale-down; 
}

.contact-illustration-img {
  width: 215px; /* Adjusted for contact illustration */
  height: auto;
  display: block;
  padding-right: 40px;
}

.content-text {
  flex: 1 1 0;
  min-width: 0;
}
.content-text.centered {
  justify-items: center;
  text-align: center;
}

.contact-links-row {
  color: #999;
}

/* Center blocks when there's enough space */
@media (max-width: 1000px) { 
  .contact-illustration-img {
    padding-right: 0px;
    padding-bottom: 20px;
  }
  .footer-interior .project-image-group-footer img {
    display: none;
  }

  .footer-interior h3 {
   margin: 0px;
  }
  .contact-section h3 {
   text-align: center;
  }
  .footer-interior .content-flex  {
    padding-top: 32px;
    padding-bottom: 32px;
   }

  .project-image.centered.body {
    /*display: flex !important;
    justify-content: center !important;*/
    margin-left: 12px; 
    margin-right: 12px;
  }
}

@media (max-width: 770px) {
  .content-flex,
  .content-flex.reverse {
    flex-direction: column !important;
    gap: 1.2rem;
    text-align: left;
    padding-top: 15px;
    padding-bottom: 15px;
  }

  .content-flex.centered-hero,
  .hero-interior .content-flex {
    text-align: center;
    padding-bottom: 0px;
  }

  .content-img {
    width: 100%;
    max-width: 240px;
    height: auto;
    margin: 0 auto;
  }
  .project-image-bg {
  top: calc(-22%);    /* negative lets it bleed above */
 }
  .bg-pos-1 {
    top: -105px;
    left: 105px;
  }
  .bg-pos-2 {
    top: 70px;
    left: -25px;
  }
  .bg-pos-3 {
    top: -65px;
    left: 90px;
  }
  .bg-pos-4 {
    top: -40px;
    left: -85px;
}
 .brands-title {
    text-align: center;
    display: block;
    width: 100%;  
  }
  .contact-links-row .contact-links {
    display: block;
    text-align: center;
  }
  .contact-separator {
    display: none;
  }
  /* Main content blocks: full width, less padding */
  .project-showcase,
  .brands-section,
  .additional-stories,
  .contact-section,
  .hero-interior,
  .footer-interior {
    width: 100vw;
    margin-left: 0;
    margin-right: 0;
    padding-left: 12px;
    padding-right: 12px;
    padding-top: 0px; 
    padding-bottom: 0px;
  } 
  .footer-interior .content-text{
    text-align: center; 
    justify-items: center;
    justify-content: center;
    width: 100%;
  }

  .footer-interior .content-flex  {
    padding-top: 32px;
    padding-bottom: 16px;
   }
  .footer-links .eyebrow {
  font-size: .82rem;
}
  .hero-interior {
    padding-top: 16px; 
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}