:root {
  --home-ink: #242525;
  --home-muted: #646a68;
  --home-line: #daddd9;
  --home-paper: #ffffff;
  --home-soft: #f4f5f2;
  --home-sage: #e9efeb;
  --home-steel: #edf0f2;
  --home-gold: #b98525;
  --home-gold-dark: #8c6217;
}

.home-page {
  background: var(--home-paper);
}

.home-page #content {
  overflow: visible;
}

.home-section {
  padding: 76px 0;
}

.home-section-inner {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
}

.home-section-heading {
  display: flex;
  width: auto;
  height: auto;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 38px;
  background: transparent;
  box-shadow: none;
  line-height: normal;
}

.home-section-heading > div {
  min-width: 0;
}

.section-kicker {
  display: none;
}

.home-section-heading h1,
.home-section-heading h2 {
  color: var(--home-ink);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0;
}

.home-section-heading > p {
  max-width: 440px;
  color: var(--home-muted);
  font-size: 15px;
  line-height: 1.8;
  text-align: right;
}

.section-action,
.section-text-link,
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--home-gold-dark);
  font-weight: 600;
}

.section-action span,
.section-text-link span,
.card-link span {
  color: inherit;
  transition: transform 180ms ease;
}

.section-action:hover span,
.section-text-link:hover span,
.card-link:hover span {
  transform: translateX(4px);
}

.section-action {
  min-height: 44px;
  margin-top: 34px;
  padding: 0 22px;
  border: 1px solid var(--home-gold);
  border-radius: 4px;
  font-size: 15px;
}

.section-action:hover {
  background: var(--home-gold);
  color: #ffffff;
}

.section-text-link {
  flex: 0 0 auto;
  padding: 10px 0;
  font-size: 14px;
}

.home-section--products {
  background: var(--home-soft);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px 20px;
}

.product-grid > li {
  min-width: 0;
}

.product-grid > li > a {
  display: block;
  overflow: hidden;
  border: 1px solid var(--home-line);
  border-radius: 5px;
  background: var(--home-paper);
  transition: border-color 180ms ease, transform 180ms ease;
}

.product-grid > li > a:hover {
  border-color: var(--home-gold);
  transform: translateY(-3px);
}

.product-media {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--home-steel);
}

.product-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.product-grid > li > a:hover img {
  transform: scale(1.025);
}

.product-grid .product-title {
  min-height: 50px;
  box-sizing: border-box;
  overflow: hidden;
  padding: 13px 16px;
  color: var(--home-ink);
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-section--cases {
  background: var(--home-paper);
}

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

.case-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #d7dcde;
  border-radius: 5px;
  background: var(--home-paper);
}

.case-media {
  position: relative;
  display: grid;
  overflow: hidden;
  aspect-ratio: 10 / 7;
  place-items: center;
  background: var(--home-steel);
}

.case-media > span {
  color: #aab2b4;
  font-size: 38px;
  font-weight: 600;
}

.case-media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.case-media:hover img {
  transform: scale(1.025);
}

.case-card-body {
  padding: 24px;
}

.case-tag {
  margin-bottom: 10px;
  color: var(--home-gold-dark);
  font-size: 13px;
  font-weight: 600;
}

.case-card h3 {
  height: 58px;
  overflow: hidden;
  font-size: 19px;
  font-weight: 600;
  line-height: 29px;
}

.case-card h3 a {
  color: var(--home-ink);
}

.case-card h3 a:hover {
  color: var(--home-gold-dark);
}

.case-summary {
  display: -webkit-box;
  height: 78px;
  overflow: hidden;
  margin: 14px 0 20px;
  color: var(--home-muted);
  font-size: 14px;
  line-height: 26px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.card-link {
  font-size: 14px;
}

.home-section--capabilities {
  background: var(--home-sage);
}

.home-capability-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.capability-card {
  display: flex;
  min-width: 0;
  min-height: 320px;
  box-sizing: border-box;
  flex-direction: column;
  padding: 34px;
  border: 1px solid #d0d9d2;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.82);
}

.capability-card--profile {
  background: #ffffff;
}

.capability-index {
  margin-bottom: 22px;
  color: var(--home-gold-dark);
  font-size: 13px;
  font-weight: 600;
}

.capability-card h3 {
  color: var(--home-ink);
  font-size: 25px;
  font-weight: 600;
  line-height: 1.4;
}

.capability-copy {
  margin-top: 18px;
  color: var(--home-muted);
  font-size: 15px;
  line-height: 1.9;
}

.capability-card > .card-link {
  margin-top: auto;
  padding-top: 28px;
}

.home-section--news {
  background: var(--home-paper);
}

.home-news-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  grid-template-rows: repeat(5, 88px);
  gap: 12px 24px;
}

.home-news-card {
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
  border: 1px solid var(--home-line);
  border-radius: 5px;
  background: var(--home-paper);
}

.home-news-card:first-child {
  display: grid;
  grid-column: 1;
  grid-row: 1 / span 5;
  min-height: 0;
  grid-template-rows: 280px minmax(0, 1fr);
  border-color: #cfd5d7;
}

.home-news-card:not(:first-child) {
  grid-column: 2;
  min-height: 0;
}

.home-news-media {
  display: block;
  overflow: hidden;
  background: var(--home-steel);
}

.home-news-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.home-news-media:hover img {
  transform: scale(1.025);
}

.home-news-card:not(:first-child) .home-news-media {
  display: none;
}

.home-news-content {
  min-width: 0;
}

.home-news-card:first-child .home-news-content {
  overflow: hidden;
  padding: 18px 24px 20px;
}

.home-news-card:not(:first-child) .home-news-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-content: center;
  gap: 7px 20px;
  height: 100%;
  box-sizing: border-box;
  padding: 12px 18px;
}

.home-news-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.home-news-meta span,
.home-news-meta time {
  color: var(--home-muted);
  font-size: 12px;
}

.home-news-card h3 {
  font-weight: 600;
}

.home-news-card h3 a {
  color: var(--home-ink);
}

.home-news-card h3 a:hover {
  color: var(--home-gold-dark);
}

.home-news-card:first-child h3 {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 10px;
  font-size: 22px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.home-news-card:first-child .home-news-content > p {
  display: -webkit-box;
  overflow: hidden;
  margin: 10px 0 12px;
  color: var(--home-muted);
  font-size: 14px;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.home-news-card:not(:first-child) .home-news-meta {
  grid-column: 1 / -1;
}

.home-news-card:not(:first-child) h3 {
  min-width: 0;
  overflow: hidden;
  font-size: 16px;
  line-height: 24px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-news-card:not(:first-child) .home-news-content > p,
.home-news-card:not(:first-child) .home-news-content > .card-link {
  display: none;
}

.home-page .footer {
  width: min(1200px, calc(100% - 48px));
  display: grid;
  grid-template-columns: repeat(4, minmax(100px, 0.72fr)) minmax(340px, 1.6fr);
  gap: 28px 34px;
  align-items: start;
  padding: 48px 0 44px;
}

.home-page .footer dl {
  margin: 0;
}

.home-page .footer dl:last-child,
.home-page .footer-contact {
  max-width: none;
  min-width: 340px;
}

.home-page .footer-contact {
  padding-left: 34px;
  border-left: 1px solid #3a3b39;
}

.home-page .footer-company,
.home-page .footer-company span {
  color: #ffffff;
  white-space: nowrap;
}

.home-page .footer-company {
  margin-bottom: 4px;
  font-size: 16px;
  font-weight: 600;
}

.home-page .footer-address {
  max-width: 340px;
  line-height: 1.8;
}

.home-page .footer-email {
  color: #aaaaaa;
  font-size: 14px;
  line-height: 2;
}

.home-page .footer-email:hover {
  color: #ffffff;
}

@media screen and (max-width: 1100px) {
  .home-page .footer {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .home-page .footer dl:last-child,
  .home-page .footer-contact {
    grid-column: 1 / -1;
    min-width: 0;
    padding-top: 28px;
    padding-left: 0;
    border-top: 1px solid #3a3b39;
    border-left: 0;
  }
}

@media screen and (max-width: 900px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-grid > li:nth-child(n + 5) {
    display: none;
  }

  .case-grid,
  .home-capability-grid,
  .home-news-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-news-grid {
    grid-template-rows: none;
  }

  .case-grid {
    gap: 18px;
  }

  .home-news-card:first-child,
  .home-news-card:not(:first-child) {
    grid-column: 1;
    grid-row: auto;
  }

  .home-news-card:first-child {
    grid-template-rows: 260px auto;
  }

  .home-page .footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 768px) {
  .home-page .footer {
    display: none;
  }

  .home-section {
    padding: 52px 0;
  }

  .home-section-inner {
    width: calc(100% - 32px);
  }

  .home-section-heading {
    display: block;
    margin-bottom: 26px;
  }

  .home-section-heading h1,
  .home-section-heading h2 {
    font-size: 25px;
  }

  .home-section-heading > p {
    margin-top: 10px;
    font-size: 14px;
    text-align: left;
  }

  .home-section-heading--with-link {
    display: flex;
    align-items: end;
  }

  .product-grid {
    gap: 12px;
  }

  .product-grid .product-title {
    min-height: 44px;
    padding: 10px 12px;
    font-size: 14px;
    line-height: 22px;
  }

  .section-action {
    width: 100%;
    box-sizing: border-box;
    justify-content: center;
    margin-top: 24px;
  }

  .case-card-body,
  .capability-card {
    padding: 24px;
  }

  .case-card h3 {
    height: auto;
    font-size: 18px;
    line-height: 1.55;
  }

  .capability-card {
    min-height: 0;
  }

  .capability-card h3 {
    font-size: 22px;
  }

  .home-news-card:first-child {
    min-height: 0;
    grid-template-rows: 220px auto;
  }

  .home-news-card:first-child .home-news-content {
    padding: 22px;
  }

  .home-news-card:first-child h3 {
    font-size: 22px;
  }

  .home-news-card:not(:first-child) {
    display: block;
    min-height: 0;
  }

  .home-news-card:not(:first-child) .home-news-content {
    display: block;
    padding: 16px 18px;
  }

  .home-news-card:not(:first-child) .home-news-meta {
    margin-bottom: 8px;
  }

  .home-news-card:not(:first-child) h3 {
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-page *,
  .home-page *::before,
  .home-page *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
