.home-banner {
  width: 100%;
  border-bottom: 1px solid var(--line);
}

.home-banner video {
  aspect-ratio: 16 / 9;
  max-height: 78vh;
}

.home-message {
  padding: 48px var(--gutter);
}

.home-message h1 {
  padding: 20px 0;
  font-size: var(--type-size-display-wide);
  font-family: var(--font-family-display);
  font-weight: var(--type-weight-display);
  font-stretch: var(--type-stretch-display);
  line-height: var(--type-line-display-tight);
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.typeword {
  display: inline-block;
  min-width: 9.2ch;
}

.typeword::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 0.78em;
  margin-left: 2px;
  background: currentColor;
  transform: translateY(0.08em);
  animation: cursor 1s steps(1) infinite;
}

@keyframes cursor {
  50% { opacity: 0; }
}

.home-grid,
.home-two-col-grid,
.testimonial-slider {
  border-bottom: 1px solid var(--line);
}

.home-grid--work {
  border-bottom: 0;
}

.home-grid {
  padding: var(--space-global-gutter) var(--gutter);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--column-gap);
}

.home-message + .home-grid--work {
  padding-top: 0;
}

.home-two-col-grid--services + .home-grid--work {
  padding-top: calc(var(--space-section-pad-y) + 20px);
}

.project-grid__copy {
  padding-top: 4px;
}

.home-card h2 {
  font-size: 30px;
  font-family: var(--font-family-display);
  font-weight: var(--type-weight-title);
  font-stretch: var(--type-stretch-title);
  line-height: var(--type-line-title);
  text-transform: uppercase;
}

.home-card p,
.testimonial-slide cite,
.field input,
.field textarea,
.submit-row {
  color: var(--muted);
  font-size: var(--type-size-copy-support);
}

.page--home .home-two-col-grid--services > .home-card > p {
  color: var(--muted);
  font-size: var(--type-size-copy-lead) !important;
  line-height: 1.35;
}

.page--home .home-two-col-grid--services > .home-card > .text-link {
  color: var(--muted);
  font-size: var(--type-size-link-utility) !important;
  line-height: 1.35;
}

.page--home .section-label--open {
  padding-top: var(--space-section-header-open-top);
  padding-bottom: var(--space-section-header-open-bottom);
}

.home-section-copy {
  padding: 0 var(--gutter) calc(var(--space-section-pad-y) - 4px);
}

.home-section-copy > *,
.home-section-copy [data-prototype-edit-target] > * {
  width: 100%;
  max-width: var(--layout-left-column-width);
}

.home-section-copy p,
.home-section-copy [data-prototype-edit-target] > p {
  color: var(--muted);
  font-size: var(--type-size-copy-lead);
  line-height: 1.35;
}

.home-two-col-grid {
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--column-gap);
}

.home-card {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 100%;
  padding: 22px 0 28px;
  border-top: 1px solid var(--line);
}

.home-two-col-grid--services {
  border-bottom: 0;
  padding-bottom: 24px;
  column-gap: var(--column-gap);
  row-gap: var(--space-stack-gap);
}

.home-two-col-grid--services .home-card {
  border-top: 0;
  padding-bottom: 16px;
}

.testimonial-slider {
  display: grid;
  gap: 18px;
  padding: 0 var(--gutter) 30px;
}

.testimonial-slider__viewport {
  position: relative;
  min-height: 320px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.testimonial-slide {
  position: absolute;
  inset: 28px 0 0;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 18px;
  width: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
  text-align: center;
}

.testimonial-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.testimonial-slide blockquote {
  max-width: 42ch;
  font-size: clamp(18px, 2vw, 30px);
  font-family: var(--font-family-display);
  font-weight: var(--type-weight-heading);
  font-stretch: var(--type-stretch-heading);
  line-height: 1.08;
  text-transform: uppercase;
}

.testimonial-slide blockquote::before {
  content: "\201C";
  margin-right: 0.08em;
}

.testimonial-slide blockquote::after {
  content: "\201D";
  margin-left: 0.08em;
}

.testimonial-slide cite {
  font-style: normal;
  text-transform: uppercase;
}

.testimonial-slider__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.testimonial-slider__controls button {
  min-width: 30px;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 18px;
}

.testimonial-slider__markers {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex: 1 1 auto;
}

.testimonial-marker {
  width: 30px;
  height: 1px;
  background: var(--line);
}

.testimonial-marker.is-active {
  background: var(--ink);
}

.section {
  border-bottom: 1px solid var(--line);
}

.logos {
  overflow: hidden;
  border-top: 1px solid var(--line);
  background: #f9f7f2;
}

.logo-track {
  display: flex;
  width: max-content;
  animation: logo-scroll 120s linear infinite;
}

@keyframes logo-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.logo-cell {
  display: grid;
  place-items: center;
  flex: 0 0 clamp(150px, 14vw, 240px);
  min-height: clamp(94px, 10vw, 150px);
  padding: clamp(18px, 3vw, 48px);
  border-right: 1px solid var(--line);
  background: #f9f7f2;
}

.logo-cell img {
  max-width: 145px;
  max-height: 48px;
  object-fit: contain;
  mix-blend-mode: multiply;
  background: transparent;
}

@media (max-width: 980px) {
  .home-grid,
  .home-two-col-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .home-banner video {
    max-height: none;
    aspect-ratio: 16 / 11;
  }

  .home-message h1 {
    white-space: normal;
  }

  .home-grid,
  .home-two-col-grid,
  .testimonial-slider {
    padding-left: var(--gutter);
    padding-right: var(--gutter);
  }

  .testimonial-slide blockquote {
    max-width: none;
  }

  .testimonial-slider__viewport {
    min-height: 380px;
  }
}
