/* NSTA editorial case file — direction 02 replication, loaded last. */
.home-page .work-section {
  --nsta-editorial-edge-gap: 28px;
  padding-bottom: var(--nsta-editorial-edge-gap);
}

.home-page .work-section .featured-work--nsta {
  width: min(100%, 1500px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

.home-page .work-section .featured-work--nsta .nsta-project-index {
  grid-column: 1;
  grid-row: 1;
  min-height: 48px;
  padding: 0 22px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  align-items: center;
  gap: 24px;
  border: 1px solid #0b0b0b;
  background: #0b0b0b;
  color: rgba(237, 235, 231, .7);
  font: 700 9px/1 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.home-page .work-section .featured-work--nsta .nsta-project-index strong {
  color: #edebe7;
  font: inherit;
  text-align: center;
}

.home-page .work-section .featured-work--nsta .nsta-project-index > span:nth-of-type(2) {
  text-align: center;
}

.home-page .work-section .featured-work--nsta .nsta-project-index > .case-study-cta {
  width: auto;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  padding: 0 2px;
  display: grid !important;
  border: 0;
  border-bottom: 1px solid #cc6437;
  border-radius: 0;
  background: transparent !important;
  color: #cc6437 !important;
  box-shadow: none;
}

.home-page .work-section .featured-work--nsta .nsta-project-index .case-study-cta__content,
.home-page .work-section .featured-work--nsta .nsta-project-index > .case-study-cta:is(:hover, :focus-visible) .case-study-cta__content {
  color: #cc6437 !important;
}

.home-page .work-section .featured-work--nsta .nsta-project-index > .case-study-cta:is(:hover, :focus-visible) {
  border-bottom-color: #edebe7;
  background: transparent !important;
  transform: translateX(3px);
}

.home-page .work-section .featured-work--nsta .project-stage {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  width: calc(100% - 48px);
  margin: 58px 24px 0;
  overflow: visible;
}

.home-page .work-section .featured-work--nsta .nsta-live-hint {
  position: absolute;
  z-index: 10;
  top: -42px;
  left: 50%;
  max-width: calc(100% - 24px);
  margin: 0;
  padding: 9px 13px;
  translate: -50% 0;
  border: 1px solid rgba(11, 11, 11, .3);
  background: #edebe7;
  color: rgba(11, 11, 11, .72);
  box-shadow: 0 8px 22px rgba(25, 19, 15, .09);
  font: 700 9px/1.3 var(--mono);
  letter-spacing: .08em;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
}

.home-page .work-section .featured-work--nsta .nsta-live-hint::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 8px;
  height: 8px;
  translate: -50% 0;
  rotate: 45deg;
  border-right: 1px solid rgba(11, 11, 11, .3);
  border-bottom: 1px solid rgba(11, 11, 11, .3);
  background: #edebe7;
}

.home-page .work-section .featured-work--nsta .project-stage::before {
  content: 'PUBLIC WEBSITE + SECURE PORTAL';
  position: absolute;
  z-index: 8;
  top: 68px;
  left: -38px;
  width: 38px;
  height: 304px;
  display: grid;
  place-items: center;
  writing-mode: vertical-rl;
  rotate: 180deg;
  background: #cc6437;
  color: #edebe7;
  font: 700 9px/1 var(--mono);
  letter-spacing: .14em;
}

.home-page .work-section .featured-work--nsta .project-window {
  padding: 8px;
  border: 1px solid #0b0b0b;
  border-radius: 3px;
  background: #0b0b0b;
  box-shadow: 0 18px 34px rgba(25, 19, 15, .16);
}

.home-page .work-section .featured-work--nsta .project-capture {
  height: clamp(520px, 43vw, 680px);
}

.home-page .work-section .featured-work--nsta .project-details {
  grid-column: 1;
  grid-row: 2;
  width: calc(100% - 48px);
  min-height: 0;
  margin: 24px 24px 0;
  display: grid;
  grid-template-columns: minmax(260px, 1.08fr) minmax(0, 3fr);
  grid-template-rows: auto;
  gap: 0;
  overflow: visible;
  border: 0;
  border-bottom: 1px solid rgba(11, 11, 11, .24);
  background: transparent;
  color: #0b0b0b;
}

.home-page .work-section .featured-work--nsta .project-details > .project-client-bio {
  grid-column: 1;
  grid-row: 1;
  align-self: stretch;
  max-width: none;
  margin: 0;
  padding: 22px 34px 28px 0;
  border-right: 1px solid rgba(11, 11, 11, .24);
  color: rgba(11, 11, 11, .74);
  font: 400 clamp(16px, 1.05vw, 18px)/1.62 var(--body);
}

.home-page .work-section .featured-work--nsta .case-study-copy {
  grid-column: 2;
  grid-row: 1;
  height: auto;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 0;
}

.home-page .work-section .featured-work--nsta .case-study-copy section,
.home-page .work-section .featured-work--nsta .case-study-copy section + section,
.home-page .work-section .featured-work--nsta .case-study-copy section:first-child {
  min-width: 0;
  margin: 0;
  padding: 22px clamp(22px, 2vw, 34px) 28px;
  display: block;
  border: 0;
  border-right: 1px solid rgba(11, 11, 11, .24);
  background: transparent;
}

.home-page .work-section .featured-work--nsta .case-study-copy section:last-child {
  border-right: 0;
}

.home-page .work-section .featured-work--nsta .case-study-copy section::before {
  display: none;
}

.home-page .work-section .featured-work--nsta .case-study-copy h3 {
  margin: 0 0 18px;
  color: #a6421c;
  font: 700 10px/1.3 var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
}

.home-page .work-section .featured-work--nsta .case-study-copy p {
  max-width: 32ch;
  margin: 0;
  color: rgba(11, 11, 11, .72);
  font: 400 15px/1.6 var(--body);
}

.home-page .work-section .nsta-testimonial {
  width: min(calc(100% - 48px), 1452px);
  min-height: 0;
  margin: var(--nsta-editorial-edge-gap) auto 0;
  padding: clamp(26px, 3vw, 42px) 0;
  display: block;
  overflow: visible;
  border: 0;
  border-top: 0;
  border-bottom: 0;
  background: transparent;
  color: #0b0b0b;
}

.home-page .work-section .nsta-testimonial::before,
.home-page .work-section .nsta-testimonial::after {
  display: none;
}

.home-page .work-section .nsta-testimonial > header {
  width: min(100%, 980px);
  margin: 0 auto 18px;
  padding-left: 0;
  display: block;
  text-align: center;
}

.home-page .work-section .nsta-testimonial > header h3 {
  margin: 0;
  color: #a6421c;
  font: 700 10px/1.3 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.home-page .work-section .nsta-testimonial > header h3::before {
  content: none;
}

.home-page .work-section .nsta-testimonial__quote {
  position: relative;
  min-height: 0;
  width: min(100%, 980px);
  margin-inline: auto;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  justify-items: center;
  gap: 22px 0;
  border: 0;
  background: transparent;
  text-align: center;
}

.home-page .work-section .nsta-testimonial__quote::before {
  content: '“';
  grid-column: 1;
  grid-row: 1;
  justify-self: center;
  color: #cc6437;
  font: 700 58px/.8 var(--display);
}

.home-page .work-section .nsta-testimonial__quote > blockquote {
  grid-column: 1;
  grid-row: 2;
  width: 100%;
  margin: 0;
}

.home-page .work-section .nsta-testimonial__quote > blockquote > p {
  max-width: 64ch;
  margin: 0 auto;
  color: rgba(11, 11, 11, .82);
  font: 400 clamp(18px, 1.35vw, 22px)/1.52 var(--body);
  letter-spacing: -.01em;
  text-wrap: pretty;
}

.home-page .work-section .nsta-testimonial__quote > blockquote > p::before,
.home-page .work-section .nsta-testimonial__quote > blockquote > p::after {
  content: none;
}

.home-page .work-section .nsta-testimonial__quote > figcaption {
  grid-column: 1;
  grid-row: 3;
  width: min(100%, 360px);
  min-width: 0;
  margin-inline: auto;
  padding: 18px 0 0;
  display: grid;
  justify-items: center;
  gap: 6px;
  border: 0;
  border-top: 1px solid rgba(11, 11, 11, .24);
  text-align: center;
}

.home-page .work-section .nsta-testimonial__quote strong {
  margin: 0;
  color: #0b0b0b;
  font: 700 clamp(20px, 1.45vw, 24px)/1.05 var(--display);
  letter-spacing: -.02em;
  text-transform: uppercase;
}

.home-page .work-section .nsta-testimonial__quote span {
  max-width: none;
  margin: 0;
  color: #a6421c;
  font: 700 10px/1.4 var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
}

.home-page .work-section .nsta-testimonial__quote strong::before {
  content: none;
}

@media (prefers-reduced-motion: no-preference) {
  .motion-ready .home-page .work-section .nsta-testimonial__quote::before {
    opacity: .58;
    transform: translateY(5px);
  }

  .motion-ready .home-page .work-section .nsta-testimonial.is-signal-visible .nsta-testimonial__quote::before {
    animation: nsta-editorial-quote-settle 360ms cubic-bezier(.16, 1, .3, 1) both;
  }
}

@keyframes nsta-editorial-quote-settle {
  from { opacity: .58; transform: translateY(5px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 980px) {
  .home-page .work-section .featured-work--nsta .nsta-project-index {
    grid-template-columns: 1fr auto;
  }

  .home-page .work-section .featured-work--nsta .nsta-project-index strong,
  .home-page .work-section .featured-work--nsta .nsta-project-index > span:nth-of-type(2) {
    display: none;
  }

  .home-page .work-section .featured-work--nsta .project-stage::before {
    top: -28px;
    left: 0;
    width: auto;
    height: 28px;
    padding-inline: 12px;
    writing-mode: horizontal-tb;
    rotate: 0deg;
  }

  .home-page .work-section .featured-work--nsta .project-details {
    grid-template-columns: 1fr;
  }

  .home-page .work-section .featured-work--nsta .project-details > .project-client-bio,
  .home-page .work-section .featured-work--nsta .case-study-copy {
    grid-column: 1;
    grid-row: auto;
  }

  .home-page .work-section .featured-work--nsta .project-details > .project-client-bio {
    padding: 22px 0 26px;
    border-right: 0;
    border-bottom: 1px solid rgba(11, 11, 11, .24);
  }

  .home-page .work-section .nsta-testimonial__quote {
    align-items: start;
    gap: 20px 0;
  }

  .home-page .work-section .nsta-testimonial__quote::before {
    font-size: 46px;
  }

}

@media (max-width: 720px) {
  .home-page .work-section {
    --nsta-editorial-edge-gap: 20px;
  }

  .home-page .work-section .featured-work--nsta .nsta-project-index {
    min-height: 54px;
    padding-inline: 14px;
  }

  .home-page .work-section .featured-work--nsta .nsta-project-index > span:first-child {
    font-size: 8px;
  }

  .home-page .work-section .featured-work--nsta .nsta-project-index > .case-study-cta {
    min-height: 42px;
    font-size: 8px;
  }

  .home-page .work-section .featured-work--nsta .project-stage,
  .home-page .work-section .featured-work--nsta .project-details {
    width: 100%;
    margin-inline: 0;
  }

  .home-page .work-section .featured-work--nsta .project-stage {
    margin-top: 54px;
  }

  .home-page .work-section .featured-work--nsta .nsta-live-hint {
    top: -40px;
    width: max-content;
    max-width: calc(100% - 16px);
    padding: 8px 10px;
    font-size: 8px;
    white-space: normal;
  }

  .home-page .work-section .featured-work--nsta .project-capture {
    height: clamp(360px, 112vw, 520px);
  }

  .home-page .work-section .featured-work--nsta .project-details {
    margin-top: 18px;
  }

  .home-page .work-section .featured-work--nsta .case-study-copy {
    grid-template-columns: 1fr;
  }

  .home-page .work-section .featured-work--nsta .case-study-copy section,
  .home-page .work-section .featured-work--nsta .case-study-copy section + section,
  .home-page .work-section .featured-work--nsta .case-study-copy section:first-child {
    padding: 20px 0;
    border-right: 0;
    border-bottom: 1px solid rgba(11, 11, 11, .2);
  }

  .home-page .work-section .nsta-testimonial {
    width: 100%;
    margin-top: var(--nsta-editorial-edge-gap);
    padding-block: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-page .work-section .featured-work--nsta .nsta-project-index > .case-study-cta {
    transition: none;
  }
}
