/* Shared homepage layout overrides. */
.section.section-hero,
.section-hero .container-hero {
  min-height: calc(100svh - clamp(20px, 4svh, 40px));
}

@media (max-height: 700px) {
  .section-hero .container-hero {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
}

@media (max-height: 700px) and (min-width: 768px) {
  .section-hero .container-hero {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
  }

  .hero-symbol {
    height: 64px;
    margin-bottom: 1.5rem;
  }
}

.section.company-strip {
  padding-top: 3rem;
  padding-bottom: 1.5rem;
  background: #fff;
}

.company-strip .company-strip-inner,
#projects.projects-proof .intro-container,
.client-testimonial .intro-container {
  width: min(100% - 48px, 1400px);
  max-width: none;
}

.company-strip .marquee-label,
.company-strip .marquee-proof {
  color: #000;
}

.company-strip .marquee-label { padding: 0; }

.company-strip .marquee-proof {
  padding: 1.5rem 0 0;
}

.company-strip .marquee-logo,
.company-strip .marquee-logo:hover {
  filter: brightness(0);
}

#projects.projects-proof {
  --proof-navy: #111;
  background: #fff;
  padding-top: 2.5rem;
}

#projects.projects-proof .projects-proof-fade {
  height: 30%;
  background: linear-gradient(
    to bottom,
    rgba(17, 17, 17, 0) 0%,
    rgba(17, 17, 17, 0.4) 42%,
    var(--proof-navy) 72%,
    var(--proof-navy) 100%
  );
}

@media (hover: hover) and (pointer: fine) {
  #projects.projects-proof .projects-proof-card:hover .projects-proof-fade {
    background: linear-gradient(
      to bottom,
      rgba(17, 17, 17, 0) 0%,
      rgba(17, 17, 17, 0.55) 38%,
      var(--proof-navy) 70%,
      var(--proof-navy) 100%
    );
  }
}

.featured-case-label {
  width: fit-content;
  margin: 0 0 1.5rem;
}

.featured-case {
  display: block;
  margin: 0 0 60px;
  color: #111;
  font-family: "Afacad Flux", sans-serif;
  text-decoration: none;
}

.featured-case-media:focus-visible,
.featured-case-summary:focus-visible {
  outline: 2px solid #111;
  outline-offset: 8px;
}

.featured-case-media,
.featured-case-summary {
  display: block;
  color: inherit;
  text-decoration: none;
}

.featured-case-media {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
}

.featured-case-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1.2;
  object-fit: cover;
  object-position: 50% 66%;
  transition: transform 600ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.featured-case-tags {
  position: absolute;
  left: 24px;
  bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: calc(100% - 48px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
}

.featured-case-tag {
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  color: #111;
  font-family: "Afacad Flux", sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
}

.featured-case:focus-within .featured-case-tags { opacity: 1; }

@media (hover: hover) and (pointer: fine) {
  .featured-case:is(:hover, :focus-within) .featured-case-image {
    transform: scale(1.025);
  }

  .featured-case:hover .featured-case-tags { opacity: 1; }
}

@media (hover: none), (pointer: coarse) {
  .featured-case-tags { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .featured-case-image,
  .featured-case:is(:hover, :focus-within) .featured-case-image {
    transform: none;
    transition: none;
  }

  .featured-case-tags {
    opacity: 1;
    transition: none;
  }
}

.featured-case-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  margin-top: 24px;
  text-align: left;
}

.featured-case-summary {
  flex: 1;
  min-width: 0;
}

.featured-case-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  min-height: 46px;
  padding: 8px 20px;
  border: 1px solid #111;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-family: "Afacad Flux", sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 300ms ease, background-color 300ms ease, color 300ms ease;
}

.featured-case-link:hover {
  background: transparent;
  color: #111;
}

.featured-case-link:focus-visible {
  outline: 2px solid #111;
  outline-offset: 5px;
}

@media (prefers-reduced-motion: reduce) {
  .featured-case-link { transition: none; }
}

.featured-case-name {
  margin: 0;
  color: #000;
  font-size: clamp(24px, 2vw, 30px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.featured-case-description {
  margin: 0.4rem 0 0;
  color: #555;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .section.company-strip { padding-top: 2rem; }
  .company-strip .company-strip-inner,
  #projects.projects-proof .intro-container,
  .client-testimonial .intro-container { width: min(100%, 1400px); }
  #projects.projects-proof { padding-top: 2rem; }

  .featured-case-image {
    aspect-ratio: 4 / 3;
    object-position: 50% 60%;
  }

  .featured-case-media { border-radius: 10px; }

  .featured-case-tags {
    left: 16px;
    bottom: 16px;
    max-width: calc(100% - 32px);
  }

  .featured-case-tag {
    padding: 5px 12px;
    font-size: 13px;
  }

  .featured-case-description { font-size: 18px; }

  .featured-case-caption {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

/* Client testimonial: layout stays reserved throughout its one-time reveal. */
.section.client-testimonial {
  padding: 56px 0 88px;
  background: #fff;
  font-family: "Afacad Flux", sans-serif;
}

@media (min-width: 769px) {
  html[lang="en"] .client-testimonial .intro-container {
    width: min(100% - 48px, 1520px);
  }
}

html[lang="en"] .client-testimonial .client-testimonial-list {
  font-family: "Afacad Flux", sans-serif;
}

.client-testimonial .client-testimonial-figure {
  margin: 0;
  text-align: left;
}

html[lang="en"] .client-testimonial-item + .client-testimonial-item {
  margin-top: 72px;
}

.client-testimonial .client-testimonial-divider {
  width: 100%;
  border-top: 1px solid #dedede;
}

.client-testimonial .client-testimonial-quote {
  max-width: 1100px;
  margin: 40px 0 36px;
  padding: 0;
  border: 0;
  color: #111;
  font-family: "Afacad Flux", sans-serif;
  font-size: 48px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.client-testimonial .client-testimonial-quote p {
  margin: 0;
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}

.client-testimonial .client-testimonial-attribution {
  margin-top: 24px;
  text-align: left;
  color: #555;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.5;
}

html[lang="en"] .client-testimonial .client-testimonial-name,
html[lang="en"] .client-testimonial .client-testimonial-location {
  display: block;
}

html[lang="en"] .client-testimonial .client-testimonial-attribution {
  font-family: "Afacad Flux", sans-serif;
  color: #222;
  font-size: 17px;
  font-weight: 500;
}

html[lang="en"] .client-testimonial .client-testimonial-name {
  color: #222;
  font-size: 17px;
  font-weight: 500;
}

html[lang="en"] .client-testimonial .client-testimonial-location {
  margin-top: 6px;
  color: #777;
  font-size: 14px;
  font-weight: 400;
}

html[lang="en"] .client-testimonial-item--offset .client-testimonial-quote,
html[lang="en"] .client-testimonial-item--offset .client-testimonial-attribution {
  width: 86%;
  margin-left: 14%;
}

html[lang="en"] .client-testimonial-item--offset .client-testimonial-quote {
  margin-top: 0;
}

@media (min-width: 1200px) {
  html[lang="en"] .client-testimonial-item--offset .client-testimonial-quote,
  html[lang="en"] .client-testimonial-item--offset .client-testimonial-attribution {
    width: 70%;
    margin-left: 30%;
  }
}

html[lang="en"] #Intro.section.intro {
  padding-top: 0;
}

.client-testimonial.testimonial-reveal-ready .client-testimonial-quote,
.client-testimonial.testimonial-reveal-ready .client-testimonial-attribution {
  opacity: 0;
  transform: translateY(12px);
}

.client-testimonial.testimonial-reveal-ready.is-visible .client-testimonial-quote,
.client-testimonial.testimonial-reveal-ready.is-visible .client-testimonial-attribution {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1), transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.client-testimonial.testimonial-reveal-ready.is-visible .client-testimonial-attribution {
  transition-delay: 120ms;
}

html[lang="en"] .client-testimonial-item.testimonial-reveal-ready .client-testimonial-quote,
html[lang="en"] .client-testimonial-item.testimonial-reveal-ready .client-testimonial-attribution {
  opacity: 0;
  transform: translateY(12px);
}

html[lang="en"] .client-testimonial-item.testimonial-reveal-ready.is-visible .client-testimonial-quote,
html[lang="en"] .client-testimonial-item.testimonial-reveal-ready.is-visible .client-testimonial-attribution {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1), transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

html[lang="en"] .client-testimonial-item.testimonial-reveal-ready.is-visible .client-testimonial-attribution {
  transition-delay: 120ms;
}

@media (min-width: 768px) and (max-width: 1199px) {
  .client-testimonial .client-testimonial-quote { font-size: 38px; }
}

@media (max-width: 767px) {
  .section.client-testimonial { padding: 16px 0; }

  html[lang="en"] .client-testimonial-item + .client-testimonial-item {
    margin-top: 48px;
  }

  .client-testimonial .client-testimonial-quote {
    margin: 24px 0 28px;
    font-size: 28px;
  }

  .client-testimonial .client-testimonial-attribution {
    margin-top: 20px;
    font-size: 16px;
  }

  html[lang="en"] .client-testimonial .client-testimonial-attribution {
    font-size: 17px;
  }

  html[lang="en"] .client-testimonial-item--offset .client-testimonial-quote,
  html[lang="en"] .client-testimonial-item--offset .client-testimonial-attribution {
    width: 100%;
    margin-left: 0;
  }

  html[lang="en"] .client-testimonial-item--offset .client-testimonial-quote {
    margin-top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .client-testimonial.testimonial-reveal-ready .client-testimonial-quote,
  .client-testimonial.testimonial-reveal-ready .client-testimonial-attribution,
  html[lang="en"] .client-testimonial-item.testimonial-reveal-ready .client-testimonial-quote,
  html[lang="en"] .client-testimonial-item.testimonial-reveal-ready .client-testimonial-attribution {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
